首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

SQL 模糊查询(like)「建议收藏」

下面这句查询字符串是我以前写的,根据变量 zipcode_key 在邮政编码表 zipcode 中查询对应的数据,这句是判断变量 zipcode_key 为非数字时的查询语句,用 % 来匹配任意长度的字符串...sql = “select * from zipcode where (address like’%” & zipcode_key & “%’) or (city like’%” & zipcode_key...& “%’) or (province like’%” & zipcode_key & “%’)order by province,city,address” 详细介绍: 一般模糊查询语句:...————————————————- 下 面这句查询字符串是我以前写的,根据变量 zipcode_key 在邮政编码表 zipcode 中查询对应的数据,这句是判断变量zipcode_key 为非数字时的查询语句...sql = “select * from zipcode where (address like’%”& zipcode_key & “%’) or (city like’%” & zipcode_key

4K40
领券