Re: Insert error

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: Insert error
Дата
Msg-id 20100623103501.GL4289@a-kretschmer.de
обсуждение исходный текст
Ответ на Insert error  (Atif Jung <atifjung@gmail.com>)
Список pgsql-novice
In response to Atif Jung :
> The following lines inserts a row into table pending_file
>  
>  +1757          /* Add a row to pending_file */
>  +1758          EXEC SQL INSERT INTO pending_file
>  +1759          (submission_no, orc, terminal_id, initials, user_id,
> output_to_file, output_path, item_id)
>  +1760          VALUES (:sSubNo, :sORC, :sTermID, :sInit, :sUserID, "1",
>  
> The error being recorded by sqlca.sqlerrm.sqlerrmc is:
>  
> column "1" does not exist on line 1758.

You should use " for identifier, nor for constants. You want to insert
an constant, so you should use ' instead of ".


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99

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

Предыдущее
От: Atif Jung
Дата:
Сообщение: Insert error
Следующее
От: Mladen Gogala
Дата:
Сообщение: Re: Insert error