[求助]如何写这个查询语句?
有一组数据(kkk,bbb,ddd,ccc,......) ,查询在表A(Name)中是否包含,如果有满足条件则退出。while not exists( select * from A where A.Name=
你试试这样行不行
declare @count int
declare @i int
set @count=0
while @count=0
begin
set @count=(select count(*) from A where Name like '%,%')
end