【SQL-LIKE】

1.从上面的 "Persons" 表中选取居住在以 "N" 开头的城市里的人:

select * from Persons where city like 'N%';

2.从“Persons”中选取居住在以"g"结尾的城市里的人:

select * from Persons where City like '%g';

3.从 "Persons" 表中选取居住在包含 "lon" 的城市里的人:

select * from Persons where City like '%lon%';

猜你喜欢

转载自www.cnblogs.com/bashaowei/p/9207018.html
今日推荐