如何找到所有大写字母的列值?喜欢LastName = 'SMITH'而不是'Smith'
LastName = 'SMITH'
'Smith'
这是我正在尝试的…
SELECT * FROM MyTable WHERE FirstName = UPPER(FirstName)
您可以强制区分大小写的排序规则;
select * from T where fld = upper(fld) collate SQL_Latin1_General_CP1_CS_AS