--查询列 Select t.sname,t.ssex,t.class from student t --t 别名; Select *from student t; --* 代表查询表内所有数据 '; --规定判断条件t.sclass='95031',用where连接 '; --将列名翻译成汉文 ' or t.ssex='女'; --||代表将查询数据连接 --升降续查询 select * from STUDENT t order by sclass; --order by 升序排列, 默认的加…
--删除 drop table dianfei; --创建表 create table dianfei ( uon ) not null, mmonth ) not null, ddf ,) not null, djftime date not null, djfzt ) not null, dsyjf date not null ); --注释 comment on table dianfei is '电表'; comment on column dianfei.uon is '用户编号(从键…