在 pgadmin sql 编辑器中创建表?

发布于 2024-09-06 01:59:26 字数 362 浏览 2 评论 0原文

我无法通过 PGadmin III SQL 编辑器创建表 - 即使语法是由前端生成的:

CREATE TABLE testtable
(
   id integer, 
   "name" character varying(100)
) 
WITH (
  OIDS = FALSE
)
;

错误消息是德语,但基本上说应该存在语法错误..

FEHLER:  Syntaxfehler bei »integer«
ZEILE 3:    id integer, 
                ^

********** Fehler **********

有什么想法吗?

I am failing in creating tables via the PGadmin III SQL editor - even if the syntax is generated by the frontend:

CREATE TABLE testtable
(
   id integer, 
   "name" character varying(100)
) 
WITH (
  OIDS = FALSE
)
;

Error message is in german, but basically says that there's supposed to be a syntax error..

FEHLER:  Syntaxfehler bei »integer«
ZEILE 3:    id integer, 
                ^

********** Fehler **********

Any ideas ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌酱 2024-09-13 01:59:26

对我来说效果很好。

但是我看到错误显示在第 11 行。是否有可能前面的语句没有正确终止并且解释器选择了这一点放弃?

Works fine for me.

However I see the error is indicated at line 11. Is it possible the previous statement was not properly terminated and the interpreter chooses this point to give up?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文