From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Insert error |
Date: | 2010-06-23 10:35:01 |
Message-ID: | 20100623103501.GL4289@a-kretschmer.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Mladen Gogala | 2010-06-23 12:40:32 | Re: Insert error |
Previous Message | Atif Jung | 2010-06-23 10:23:55 | Insert error |