常量like数据库表中的列

select * from  城市列表的table  where '863302' like CityId+'%'
是在city中检索包含在常量'863302'中的字符串

select * from  城市列表的table  where '863302' like CityId+'%'

上面sql语句查询出来的结果如下:

原文地址:https://www.cnblogs.com/Minghao_HU/p/2298824.html