请教sql语句 select id,case when cash is null then 'N' else 'Y' end as cashfrom tablename 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select id,case when isnull(cash,0) > 0 then 'Y' else 'N' end cashfrom yourTable select id,case when cash is null then 'N' when cash = '' then 'N' else 'Y' end as cashfrom tablename select id,case when cash>'' then 'y' ELSE 'N' end as cashfrom tablename 最简单的写法select id,case when cash >'' then 'Y' else 'N' end as cashfrom tablename SQLserver中类似MYSQL中的libmysql.lib的第三方库 请大家给我看看这条语句 数据库数据覆盖 请问SQL Server的查询语句中,日期时间类型的数据怎么表示啊 请问 SQL2000企业管理器如何注册连接SQL2005的服务器端?? 求一SQL语句 请教筛选查询 离现在最近的星期日 【怎样从几个表中取出数据进行排序?】 更新数据问题。。请大虾帮忙看看 送分,请问access可以象ms sql那样使用sql语言建立表吗 類似Access的功能
from yourTable
from tablename
from tablename
select id,case when cash >'' then 'Y' else 'N' end as cash
from tablename