谁来给做下这道题???

来源:百度知道 编辑:UC知道 时间:2024/07/02 17:17:18
http://www.pconline.com.cn/pcedu/videoedu/asp/0606/other/060626fifasp633.html

select top 5 c_name,c_stu from class where c_stu>30 and cype=true and c_name like '二班' order by c_stu ASC c_type DESC 这是我的答案 不过怎么都通过不了啊!!! 大虾们帮帮忙啊!!!
那个题得去做一下 这么写是没问题 但是在网上就怎么也通过不了

select top 5 c_name,c_stu from class where c_stu>30 and cype=true and c_name like '二班' order by c_stu ASC c_type DESC

你的语句排序的时候要有','号
order by c_stu ASC,c_type DESC

其他的对不对还没看题.你语句这里首先就有问题了

排序字段间没有加逗点
select top 5 c_name,c_stu from class where c_stu>30 and cype=1 and c_name like '二班' order by c_stu ASC,c_type DESC
CYPE=1 不要用CYPE=TRUE
您的网站我登录不上去,您还是自已再试一下吧,您写的这个语句在本机也调试不通啊

不要研究哪个语句怎么写才能对了,那个测试太死板了,多一个空格少一个都会不正确,另外那个ctype没有描述类型,鬼知道它是什么类型的

不过可以给你提示下你写的,SQL server里没有 列名=true 这种写法
另外like '%二班%' 必须这样才是模糊匹配,另外就是逗号了