daixinet

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

06 2013 档案

摘要:SQL 语句优化: 1、union 为Bak的 分开写Where语句,Where后再union 2、union 换为union all 3、Select * 换成具体字段 3、有参数的,用参数列表,AnsiString对应的char,varchar,string对应的nchar,nvarcha... 阅读全文
posted @ 2013-06-28 09:20 daixinet.com 阅读(187) 评论(0) 推荐(0)

摘要:方法:1、not In2、Left join3、select * from tmptable1where (select count(1) from tmptable2 where tmptable1.agentid = tmptable2.agentid and tmptable1.phone = tmptable2.phone)=0 阅读全文
posted @ 2013-06-27 13:23 daixinet.com 阅读(1423) 评论(0) 推荐(0)