易截截图软件、单文件、免安装、纯绿色、仅160KB

mssql 关于where语句的位置

例如:select a.* from (select id,code from b left join c on b.id=c.id)a where id=1
这里的where 在执行的时候, where 会优化是否进入到小括号里面执行?????
SQL code:
select id,code from b left join c on b.id=c.id
where id=1


引用
SQL codeselect id,codefrom bleftjoin con b.id=c.idwhere id=1

晕你的语句中 id和code要指定是哪个表的。如:b.id c.code:
select id,code from b left join c on b.id=c.id where id=1


如:
select b.id,c.code from b left join c on b.id=c.id
where b.id=1


SQL code:
select B.id,B.code from b left join c on b.id=c.id AND B.id=1
SQL code:
select B.id,B.code from b left join c on b.id=c.id WHERE B.id=1


SQL code:
又涉及到where和and的问题



相关问答:

150分求vbscript中判断mssql语法错误

在vbscript中不用on error resume next如何判断mssql语法错误!
TRY CATCH?


或者使用流程控制语句
if 
else


不用on error 用那个我就不需要在这里寻找答案

引用
不用on error 用那个我就不需 ......

MSSQL如何转为ORACLE

刚开始学习存储过程,写了个MSSQL的,不太熟悉ORACLE的该怎么写。希望各位大侠帮忙
SQL code:

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[proc_getTotal]--<getTotal, gjj ......

FCKeditor 更新数据库(mssql)的问题

用了FCKeditor的编辑器,存入普通文章后,可以更新。当存入word的那种表格格式的文章时候,就出现无法更新的问题。 <httpRuntime maxRequestLength="2097151" executionTimeout="43200"/&g ......

mssql 触发器

我正在做一个排行榜表(T_hist)
表内有 qid(外键) 日排行榜(dhits) 周排行榜(whits)  月排行榜(mhits)  总排行榜(hits)  都是int类型
我现在想做个触发器  每日零点把所有行的dhits字段清 ......

mssql 2005数据库 模糊查询 急。。

mssql 2005 是英语正版的。
不知道为什么例如
select content_cn,content_ru  from table where content_cn like '%中文%'
select content_cn,content_ru  from table where content_ru ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号