这个select怎么写? select 'ccc',(select count(*) from A where charindex('ccc',a)>0) from Aunion select 'ddd',(select count(*) from A where charindex('ddd',a)>0) from A 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 agree happydreamer(偶很菜) select 'CCC',(select count(*) from A where desc like '%CCC%') from Aunion allselect 'DDD',(select count(*) from A where desc like '%DDD%') from A 黑DD如果单独运行select 'ccc',(select count(*) from A where charindex('ccc',a)>0) from A的结果会出现多行,是什么意思啊? 比较理解 SophiaWang(Angel)的语句。如果明天还没有新的答案,就结贴了 :) 请教各位了,我们公司要让一家软件公司写一个软件,对方要从我们的数据库里做一个接口接入抽取数据.我明天要去那个公司做一个测试的数据库,但不想让对方看到我们的数据资 请问怎样在已建立表中进行增加主键? telnet连接不上主机 请教各位前辈: Bulk insert倒入文本数据的奇怪问题??十万火急!!!先谢啦! 求一条批量删除数据表的语句 数据查询 远程备份方案,有些问题,请邹老大帮忙 数据库表导出问题 基本问题,我该用哪个版本呢? 数据丢失! 怎么样才能处理字段中的NULL值呢??请帮忙,谢谢!! 存储过程中变量累加时遇到NULL时该怎么办啊??
union all
select 'DDD',(select count(*) from A where desc like '%DDD%') from A
如果单独运行
select 'ccc',(select count(*) from A where charindex('ccc',a)>0) from A
的结果会出现多行,是什么意思啊?
如果明天还没有新的答案,就结贴了 :)