table
record
field
datatype
create table student ( SID char(8))
drop table student
insert into student (sid) values ('961225')
update student set nm='張三' where sid='961225'
delete from student where nm='張三'
select distinct sid from student
select sid 學號, nm 姓名 from student
select sid, nm, tall*1.1 身高 from student
select * from student where sid='95'
select * from student where tall>170
select * from student where nm like '%張%'
select nm from student where dptcd not in ('C507','C302')
select nm from student where tall between 170 and 180
select nm from student where substring(sid,2,2)='95'
select sid, nm from student order by nm, sid DESC
select dptcd from student group by dptcd
select s.sid, s.nm, d.dptnm from student s, department d where s.dptcd=d.dptcd