第1关:创建表

gsql -d postgres -U gaussdb -W 'passwd123@123'
create database testdb;
\c testdb;
passwd123@123
create table test_table (test_id integer not null,test_info char(36));

第2关:修改表 

gsql -d testsb -U gaussdb -W 'passwd123@123'
alter table test_table alter column test_id drop not null;
alter table test_table add timestamp integer not null;

第3关:删除表 

gsql -d testdb -U gaussdb -W 'passwd123@123'
drop table test_table;

 

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐