就用like关键字撒,like后面跟字符串,字符串里边'%'匹配任意长度的字符(包括空),'-' 匹配一个任意字符,
找A开头的就是like 'A%' ,找B在第二个位置的就是 like '_B%' ,很简单的咯~
like 'A%'
like 通配符查询。
select * from yourtable where title like 'a%'
SELECT * FROM [Table1] WHERE [Column1] LIKE 'A%' SELECT * FROM [Table1] WHERE LEFT([Column1],1)='A' SELECT * FROM [Table1] WHERE SUBSTRING([Column1],1,1)='A'