sql语句 在test 不表中计算名字位‘diego’的用户的数量,如果超过10个,显示一个虚拟的字段v_type为‘large’,否则显示该虚拟字段为‘small’; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SELECT ( case when count(*) > 10 then ''large'' when count(*) <= 10 then ''small'' end ) FROM testwhere name = 'diego' select decode(trunc(count(*)/10),0,'small','large') v_type from test where 用户名='diego' oracle调用webservice返回xml oracle中有byte类型么? 不显示删除回复显示所有回复显示星级回复显示得分回复 创建触发器时报ORA-04098: 触发器 'DANNY.DE_TRI' 无效且未通过重新确认的错 ibatis内 动态sql SQL 效率问题 sql 顺序问题 排序问题 这个查询的SQL怎么写? oracle 汉字乱码 求解决办法 请高手看看这个sql脚本那里的问题?谢谢 请问怎么转换字符串为时间 求一简单SQL~ 存储过程可不可以用字段做参数。。。
case
when count(*) > 10
then ''large''
when count(*) <= 10
then ''small''
end )
FROM test
where name = 'diego'
from test
where 用户名='diego'