【发布时间】:2020-11-26 21:49:49
【问题描述】:
这是我的确切查询
CREATE Table Publisher
(Publisher_Id Int primary key not null,
Name varchar(20) not null,
Address varchar(50) not null,
Phone Int(10),
Isbn varchar(13) references books (Isbn) not null
)
任何帮助将不胜感激。
【问题讨论】:
-
Int(10)应该是intas documented in the manual -
电话号码不是整数。你不用他们做算术。 char(10) 更有意义。
-
@HoneyboyWilson don't use char
-
是的,我听说过。是否已弃用?
标签: sql postgresql create-table