sql查询 一个表里面有字段 id,sum 要求查询的时候 添加一列s varchar型,如果sum>60,s就为通过 反之则不通过 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id,sum,s=case when sum>60 then '通过' else '不通过' end from [Table] select id,[sum],s=case when sum>60 then '通过' else '不通过' end from tb select id,[sum],case when sum>60 then '通过' else '不通过' end as s from tb select id,[sum],s=(case when sum>60 then '通过' else '不通过'end) from tb SQL codeselect id,[sum],case when sum>60 then '通过' else '不通过' end as s from tb 求一语句 mysql数据库中几个小问题 触发器~~~ 如何将一个大字段按某个分隔符号分隔值后插入新的表中? SQL统计结果问题 企业管理器 灾难性故障 问题 !!! 全文检索和字符串问题 求一个SQL语句 汤子瀛的 <<计算机操作系统>> 第三版,这本书很不错呀,哈哈, 我的MS-SQL SERVER为什么启动不了? 数据分类 前N条 如何用事件探查器跟踪一个表?
select id,[sum],s=(case when sum>60 then '通过' else '不通过'end) from tb