基本上就像主题所说的那样。
这是该表的模式:
这是一些额外的文字,因为Stack Exchange认为我没有足够的文字,因为我有太多的代码。
truncate table "Account" restart identity cascade;
insert into "Account" ("name", "enabled") values ("test", 1);
select * from "Account";
输出:
accountId | name | enabled
-----------+------+---------
14 | test | 1
(1 row)
这是该表的模式:
Table "public.Account"
Column | Type | Modifiers
-----------+------------------------+---------------------------------------------------------------
accountId | integer | not null default nextval('"Account_accountId_seq"'::regclass)
name | character varying(255) | not null
enabled | integer | not null
Indexes:
"Account_pkey" PRIMARY KEY, btree ("accountId")
Referenced by:
TABLE ""AccountPropertyAccess"" CONSTRAINT "AccountPropertyAccess_accountId_fkey" FOREIGN KEY ("accountId") REFERENCES "Account"("accountId")
TABLE ""User"" CONSTRAINT "User_accountId_fkey" FOREIGN KEY ("accountId") REFERENCES "Account"("accountId")
这是一些额外的文字,因为Stack Exchange认为我没有足够的文字,因为我有太多的代码。
\d "Account"
- Clodoaldo Neto“test”
表示列而不是值。 - user330315