所以我们正在从Informix迁移到Sql Server.我注意到在Informix中,查询是以这种方式编写的:
select [col1],[col2],[col3],[col4],[col5]
from tableA, tableB
where tableA.[col1] = table.[gustavs_custom_chrome_id]
Run Code Online (Sandbox Code Playgroud)
我在SQL Server中编写的所有查询都写成:
select [col1],[col2],[col3],[col4],[col5]
from tableA
inner join tableB on tableA.[col1] = table.[gustavs_custom_chrome_id]
Run Code Online (Sandbox Code Playgroud)
现在,我的第一个想法是:第一个查询很糟糕.它可能会创建这个巨大的记录集然后使用Where子句与实际记录集相关联.因此,它对性能不利.而且它是非ansi.所以这是双重的坏事.
然而,经过一些谷歌搜索,似乎它们在理论上几乎是一样的.它们都符合ANSI标准.
所以我的问题是: