2011年4月2日
摘要: 如果想查找“_cs”结尾的的账户select * from [user] where loginname like '%_cs'是不行的,_ 被认为是任意的字符,所以需要转义字符,有两种写法:select * from [user] where loginname like '%[_]cs'select * from [user] where loginname like '%/_cs' escape'/'通配符含义%包含零个或更多字符的任意字符串。_任何单个字符。[ ]指定范围(例如 [a-f])或集合(例如 [abcdef]) 阅读全文
posted @ 2011-04-02 17:21 一粒沙 阅读(990) 评论(0) 推荐(0) 编辑