摘要:
当我们使用某个表达式作为输出的一列时,我们无法再Where条件中直接使用该列作判断条件. 例如下面的SQL语句: select id, (c1 + c2) as s from t1 where s > 100 SQL Server 报错: "列名 s 无效" 当然,写成 select id, (c1 + c2) as s from t1 where (c1 + c2) > 100 就没... 阅读全文
posted @ 2013-09-07 23:46
笨笨丁
阅读(24711)
评论(0)
推荐(2)
浙公网安备 33010602011771号