Обсуждение: Zero length delimited identifier

Поиск
Список
Период
Сортировка

Zero length delimited identifier

От
Tom Haddon
Дата:
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
________________________________


Re: Zero length delimited identifier

От
Stephan Szabo
Дата:
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.