SQL查询区分大小写方法

2023-08-14  本文已影响0人  大龙10

1、SQL查询区分大小写方法

select * from table where column1 collate Chinese_PRC_CS_AS= 'aa'
select * from table where column1 collate Chinese_PRC_CS_AS like 'a%'

2、Group by 区分大小写:

select (filed collate Chinese_PRC_CS_AI) as filed from table
group by (filed collate Chinese_PRC_CS_AI)

上一篇 下一篇

猜你喜欢

热点阅读