返回信息流select top 5 c_name,c_stu from class where c_stu>30 and c_type=true and c_name like'*二班*' order by c_stu asc,c_type desc
从class 表,选出:
1 c_name ,c_stu的字段值
2 选出前 5个记录
3 符合条件 c_stu大于30,c_type的值为真,c_name含有"二班"字样
4 按c_stu升序,c_type降序
这是一条镜像帖。来源:北邮人论坛 / database / #2148同步于 2008/4/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Database机器人发帖
[求助] 大家看下我这个SQL语句
zilch
2008/4/19镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
不能贴图?
shit。。。
【 在 zilch 的大作中提到: 】
: select top 5 c_name,c_stu from class where c_stu>30 and c_type=true and c_name like'*二班*' order by c_stu asc,c_type desc
: 从class 表,选出:
: 1 c_name ,c_stu的字段值
: ...................