时间:2021-07-01 10:21:17 帮助过:2人阅读
\d tablename
\d+ tablename
q
create table REL_CROSS_NODE(ID integer, CROSS_ID integer);
drop table REL_CROSS_NODE;
alter table [表名] add column [字段名] [类型];
alter table [表名] rename column [旧字段名] to [新字段名];
alter table [表名] drop column [字段名];
insert into [表名] (字段1,字段2) values (值1,值2);
delete from [表名] where [该行特征];
update [表名] set [目标字段名]=[目标值] where [该行特征]
drop table [表名];
\q
(select node_id from node where node_id=1 or node_id=2) except (select node_id from node where node_id=1); node_id --------- 2 (1 row)
postgreSql 入门常用命令
标签: