Exp*_* be 3 postgresql timestamp
我尝试向日志表插入一行,但它会抛出一条错误消息.> <
该log表的结构是这样的:
no integer NOT NULL nextval('log_no_seq'::regclass)
ip character varying(50)
country character varying(10)
region character varying(10)
city character varying(50)
postalCode character varying(10)
taken numeric
date date
Run Code Online (Sandbox Code Playgroud)
和我的查询:
INSERT INTO log (ip,country,region,city,postalCode,taken,date) VALUES
("24.24.24.24","US","NY","Binghamton","11111",1,"2011-11-09")
Run Code Online (Sandbox Code Playgroud)
=> ERROR: column "postalcode" of relation "log" does not exist
第二次尝试查询:(没有邮政编码)
INSERT INTO log (ip,country,region,city,taken,date) VALUES
("24.24.24.24","US","NY","11111",1,"2011-11-09")
Run Code Online (Sandbox Code Playgroud)
=> ERROR: column "24.24.24.24" does not exist
我不知道我做错了什么......
PostgreSQL没有日期时间类型?(2011-11-09 11:00:10)
C. *_*yer 10
试试单引号(例如'2011-11-09')
| 归档时间: |
|
| 查看次数: |
28475 次 |
| 最近记录: |