Я пытаюсь получить информацию из столбцов в базе данных, используя python.
код:
import pyodbc
conn = pyodbc.connect(r'DSN=MACCD')
cursor = conn.cursor()
cursor.execute('SELECT first,second,third,fourth,fifth * FROM Test')
for column in cursor.fetchall():
print(column)
ошибка:
Traceback (most recent call last):
File "C:\Users\jgp22\Desktop\Python\GrabDatas.py", line 5, in <module>
cursor.execute('SELECT first,second,third,fourth,fifth * FROM Test')
pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Microsoft
Access Driver] Syntax error (missing operator) in query expression 'fifth
*'. (-3100) (SQLExecDirectW)")