matthew Zhang

慢慢学习,慢慢进步!
posts - 34, comments - 4, trackbacks - 0, articles - 12
  博客园 :: 首页 :: 新随笔 ::  :: 订阅 订阅 :: 管理

公告

2008年11月17日

摘要: SQL中的模糊查询 一般来说使用模糊查询,大家都会想到LIKE select * from table where a like '%字符%' 如果一个SQL语句中用多个 like模糊查询,并且记录条数很大,那速度一定会很慢。 下面两种方法也可实现模糊查询: select * from table where patindex('%字符%',字段名)>0 select * from table where charindex('字符',字段名)>0 其中,>0表示:字符在字段中存在 经测试这两种方法比LIKE速度要快。 阅读全文

posted @ 2008-11-17 22:12 matthewZhang 阅读(325) 评论(0) 编辑

posted @ 2008-11-17 22:09 matthewZhang 阅读(170) 评论(0) 编辑

摘要: --示例一,使用证书加密数据. 阅读全文

posted @ 2008-11-17 21:55 matthewZhang 阅读(236) 评论(0) 编辑