select *
from customer
where UPPER(cname) LIKE 'J%G';
答案 0 :(得分:1)
如果您希望以G结尾,请使用此
select *
from customer
where UPPER(cname) LIKE '%G';
如果它似乎没有完成试试这个:
select *
from (
select top 1000 *
from customer with #nolock
) X
where UPPER(cname) LIKE '%G';