摘要: 问题: select * from A left join f on e.cust=f.account_id where f.status='0' 与 select * from A left join f on e.cust=f.account_id and f.status='0' 的区别 在做外连查询的时候ON里面的条件是在外连执行之前筛选的的 where后的查询条件在外联之后执行 上面哪个... 阅读全文
posted @ 2009-06-18 15:44 Burt 阅读(263) 评论(0) 推荐(0) 编辑
摘要: sql 日期格式转换(convert用法)SQL Server中,Convert可以将日期转换成不同格式,格式控制是由CONVERT (data_type[(length)], expression [, style])中的style来完成的。下面列出了style取各种值时的效果: 在表中,左侧的两列表示将 datetime 或 smalldatetime 转换为字符数据的 style 值。给 s... 阅读全文
posted @ 2009-06-18 13:54 Burt 阅读(330) 评论(0) 推荐(0) 编辑