随笔分类 -  sql

SMO相关操作资料
摘要:http://blog.csdn.net/zhoufoxcn/article/details/7593135=========================================================================================using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SqlServer.Management.Smo.RegisteredServers;//在microsoft 阅读全文

posted @ 2012-09-21 14:17 jack_Meng 阅读(744) 评论(0) 推荐(0)

SQL数据库查询使用正则表达式查询中文
摘要:-- unicode(expression)函数返回字符串类型的unicode码--中文对应的unicode码大致为(应该是精确的):19968-40869declare @tb table([a] varchar(50))insert @tbselect '客' union allselect '客' union allselect '中' union allselect 'a' union allselect '/' union allselect '.' union allselect  阅读全文

posted @ 2012-06-28 12:07 jack_Meng 阅读(7714) 评论(0) 推荐(0)

SQL 模糊查询,正则查询
摘要:SQL 模糊查询 在进行数据库查询时,有完整查询和模糊查询之分。一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式:1,% :表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(% 阅读全文

posted @ 2012-06-28 11:58 jack_Meng 阅读(2337) 评论(0) 推荐(0)

导航