sql = slect count(*) as account, account>0?'有':'无' as '状态' from a where a.type ='A'
不过不能用:(
求大虾帮忙,先谢谢了。
...全文
654打赏收藏
sql语句如何写,在线等
表(a)的内容如下 type color A red A green B yellow 想得到对于A的结果集: account 状态 2 有 或者 对于C的结果集: account 状态 C 无 写了一语句, sql = slect count(*) as account, account>0?'有':'无' as '状态' from a where a.type ='A' 不过不能用:( 求大虾帮忙,先谢谢了。