pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedZero length delimited identifier
2+ messages / 2 participants
[nested] [flat]
* Zero length delimited identifier
@ 2003-05-05 17:05 Tom Haddon <tom@betterhealthfoundation.org>
0 siblings, 1 reply; 2+ messages in thread
From: Tom Haddon @ 2003-05-05 17:05 UTC (permalink / raw)
To: pgsql-admin
Hi,
I'm wondering if someone can help me out with an error message that I'm
not sure how to decipher/avoid:
The sql is:
INSERT INTO agency_contact_info
(organization, department, address, address2, address3, city, state, zip, contact_prefix, contact_first, contact_last, salutation, contact_title, telephone, fax, hotline, email, internet, record_state, guideregion)
VALUES
("Breast Cancer Advocate","","421 Woodbine Lane","","","Danville","CA","94526","Ms.","Jane","Parish","Ms. Parish","","","(925) 820-2880","","","","i",8);
Error: zero length delimited identifier
All the fields are VARCHAR(255), with the exception of record_state,
which is VARCHAR(1) and guideregion, which is INT4. There is an id field
that is the serial primary key.
Thanks, Tom
--
________________________________
Tom Haddon
IT Director
The Better Health Foundation
414 Thirteenth Street, Suite 450
Oakland, CA 94612
(510) 444-5096
(510) 444-5085 FAX
www.betterhealthfoundation.org
________________________________
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Zero length delimited identifier
@ 2003-05-05 17:37 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: Tom Haddon <tom@betterhealthfoundation.org>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2003-05-05 17:37 UTC (permalink / raw)
To: Tom Haddon <tom@betterhealthfoundation.org>; +Cc: pgsql-admin
On 5 May 2003, Tom Haddon wrote:
> Hi,
>
> I'm wondering if someone can help me out with an error message that I'm
> not sure how to decipher/avoid:
>
> The sql is:
>
> INSERT INTO agency_contact_info (organization, department, address,
> address2, address3, city, state, zip, contact_prefix, contact_first,
> contact_last, salutation, contact_title, telephone, fax, hotline,
> email, internet, record_state, guideregion) VALUES ("Breast Cancer
> Advocate","","421 Woodbine
> Lane","","","Danville","CA","94526","Ms.","Jane","Parish","Ms.
> Parish","","","(925) 820-2880","","","","i",8);
You want single quotes not double quotes around strings, double quotes
make delimited identifiers, and "" isn't a meaningful identifier.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-05 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-05 17:05 Zero length delimited identifier Tom Haddon <tom@betterhealthfoundation.org>
2003-05-05 17:37 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox