我在PostgreSQL插入请求中有一些想法是不正确的.当我执行:
INSERT INTO data
( Email ,
Email_MD5 ,
Date_In ,
Tel_mobile ,
Tel_fixe ,
Gender ,
Title ,
FirstName ,
LastName ,
DateOfBirth ,
YearOfBirth ,
AgeGroupe ,
Adresse_1 ,
Adresse_2 ,
CP ,
Ville ,
Domain ,
Groupe_Domaine ,
Last_Date_R ,
Last_Date_O ,
Last_Date_C ,
Pression ,
Activity ,
R
)
VALUES ( "000090@voila.fr" ,
"b6ffc0c54f2c35866c4ccc4a7218472c" ,
NULL ,
"" ,
"5789332" ,
"MLLE" ,
"" ,
"Lydia" ,
"Le Port" ,
NULL ,
NULL ,
"26 - 35" ,
"56" ,
"56" ,
"56400" ,
"AURAY" ,
"Bretagne" ,
"" ,
NULL ,
NULL ,
NULL ,
"" ,
"" ,
""
);
Run Code Online (Sandbox Code Playgroud)
PostgreSQL说:
SQLSTATE[42601]: Syntax error: 7 ERREUR:
identifiant délimité de longueur nulle sur ou près de « "" » LINE 5: "", ^
(Syntax error: 7 ERROR: syntax error at or near "")
Run Code Online (Sandbox Code Playgroud)
我不明白为什么?是不正确的 ?
双引号(")用于标识符.'对值使用单引号()
VALUES('000090@voila.fr', ...
Run Code Online (Sandbox Code Playgroud)
http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
| 归档时间: |
|
| 查看次数: |
7392 次 |
| 最近记录: |