SQL语句如何查询首字母大写?

比如名字名字是英文把首字母大写的名字都查询出来,语句怎么血?

select * from 表 where 字段 collate chinese_prc_cs_as_ws like 'A%' (查大写 )
select * from 表 where 字段 collate chinese_prc_cs_as_ws like 'a%' (查小写 )
--就是在字段名后加 collate chinese_prc_cs_as_ws
温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2017-09-08
SELECT * FROM tablename WHERE (ASCII(SUBSTRING(fieldname, 1, 1)) > 64) AND (ASCII(SUBSTRING(fieldname, 1, 1)) < 91)本回答被提问者采纳
第2个回答  2013-08-18
where substring(field,1,1) between 'A" and 'Z'