雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

数据库

Posted on 2011-03-15 15:05  huhuuu  阅读(128)  评论(0编辑  收藏  举报
View Code
SELECT snum,sname,ssex,sbirth,dnum
FROM s
--where snum='S006'
WHERE dnum='d02'

SELECT score,snum
from sc
where score>=60 and score<=85

SELECT snum,sname
from s
where sname like '王_'

SELECT cnum,score*1.5
from sc
where cnum='c01'and score is not null

select distinct snum
from sc

select snum,score
from sc
where cnum='c01'
order by score asc

select s.snum,s.sname,sc.cnum,sc.score
from s,sc

select distinct s.sname,c.cname,c.cfreq
from s,c

select s.snum,s.sname,sc.score
from s,sc
where cnum='c02' and score>=85