天天看點

PGADMIN4建立、删除、修改表

作者:kkh123

1、建立表

//建立TEST表,由id及test字段組成

CREATE TABLE TEST (

id int4,

test character(10)

)

結果

PGADMIN4建立、删除、修改表

2、插入資料

insert into test("id","test") values(1,'a');

insert into test("id","test") values(2,'b')

結果

PGADMIN4建立、删除、修改表

3、更新特定資料

更新ID=1的字段TEST=d

update test set test='d' where id=1

結果

PGADMIN4建立、删除、修改表

4、删除表内容

delete from test

4、删除表

drop table test