RE: ERROR when inserting csv values into sql table

Поиск
Список
Период
Сортировка
От David Raymond
Тема RE: ERROR when inserting csv values into sql table
Дата
Msg-id VI1PR07MB5792CC504D19198B54AA7EC087EF0@VI1PR07MB5792.eurprd07.prod.outlook.com
обсуждение исходный текст
Ответ на Re: ERROR when inserting csv values into sql table  (Cravan <savageapple850@gmail.com>)
Список pgsql-novice
LINE 1: INSERT INTO movies(title, year, runtime, 'imdbID', 'imdbRati...

You used single quotes for the part with column names. Double quotes are for identifies, single quotes are string
literals.So it looks like it need to be
 

insert_statement = sqlalchemy.text('INSERT INTO movies(title, year, runtime, "imdbID", "imdbRating") VALUES (:title,
:year,:runtime, :imdbID, :imdbRating)')
 

В списке pgsql-novice по дате отправления:

Предыдущее
От: Bzzzz
Дата:
Сообщение: Re: ERROR when inserting csv values into sql table
Следующее
От: "Anthony E. Greene"
Дата:
Сообщение: Re: ERROR when inserting csv values into sql table