[英]postgresql table fails to create
create table users (
id VARCHAR(50) NOT NULL UNIQUE,
email VARCHAR(100) NOT NULL,
password VARCHAR(50) NOT NULL,
);
gokitexample=# \i /Users/henryhudson/OneDrive/Henry/Programming/Go/go-kit/account/users.sql
psql:/Users/henryhudson/OneDrive/Henry/Programming/Go/go-kit/account/users.sql:5:
ERROR: syntax error at or near ")"
LINE 5: );
The error is quite explicit.错误非常明显。 There is an additional comma at the end of the last column.
在最后一列的末尾有一个额外的逗号。 It should be like that:
应该是这样的:
create table users (
id VARCHAR(50) NOT NULL UNIQUE,
email VARCHAR(100) NOT NULL,
password VARCHAR(50) NOT NULL
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.