文章分类 -  数据库相关

关于数据库方面的资料
C# DBHelper模型
摘要:using System;using System.Data;using System.Data.Common;using System.Configuration; public class DbHelper { private static string dbProvi... 阅读全文

posted @ 2014-02-26 10:28 solowind 阅读(155) 评论(0) 推荐(0)

sqlserver通配符转义
摘要:如果想查找“_cs”结尾的的账户select * from [user] where loginname like '%_cs'是不行的,_ 被认为是任意的字符。sqlserver中包含以下通配符:通配符含义%包含零个或更多字符的任意字符串。_任何单个字符。[ ]指定范围(例如 [a-f])或集合(例如 [abcdef])内的任何单个字符。[^]不在指定范围(例如 [^a - f])或集合(例如 [^abcdef])内的任何单个字符所以需要转义字符,有两种写法:select * from [user] where loginname like '%[_]cs's 阅读全文

posted @ 2014-02-26 09:58 solowind 阅读(1894) 评论(0) 推荐(0)