标签:like SQ img where server com name info color
因最近在清理系统中的脏数据,需要查询某个字段是否包含中文/英文字符/数字的数据,
比较简单,仅以此篇博客做一个简单总结,方便以后查阅。
SELECT * FROM dbo.Channel_ShopCommodity WHERE Disabled = 0 AND StoreCode LIKE ‘%[吖-座]%‘;
SELECT * FROM dbo.Channel_ShopCommodity WHERE Disabled = 0 AND StoreCode LIKE ‘%[a-z]%‘;
SELECT * FROM dbo.Channel_ShopCommodity WHERE Disabled = 0 AND ShopCommodityName LIKE ‘%[0-9]%‘;
SQL Server判断某个字段是否包含中文/英文字符/数字
标签:like SQ img where server com name info color
原文地址:https://www.cnblogs.com/zwwhnly/p/8981767.html