今天,在客户端的生产系统中,我发现了一个包含不熟悉语法的SQL Server查询.在下面的例子中,*=运营商做了什么?我在MSDN上找不到它.查询执行并返回数据.据我所知,自从他们使用SQL Server 2000以来,它一直存在于系统中,但它们现在正在运行2005.
declare @nProduct int
declare @iPricingType int
declare @nMCC int
set @nProduct = 4
set @iPricingType = 2
set @nMCC = 230
--Build SQL for factor matrix
Select distinct
base.uiBase_Price_ID,
base.nNoteRate,
base.sDeliveryOpt,
IsNull(base.nPrice,0) as nPrice,
IsNull(base.nPrice,0) + Isnull(fact.nFactor,0) as nAdjPrice,
base.iProduct_ID,
fact.iPosition as fiPosition,
base.iPosition,
CONVERT(varchar(20), base.dtDate_Updated, 101) + ' ' + CONVERT(varchar(20), base.dtDate_Updated, 108) as 'dtDate_Updated',
fact.nFactor,
fact.nTreasFactor,
product.sProduct_txt ,
pfi.sPFI_Name,
mccprod.nServicing_Fee,
fact.nNoteRate as fNoteRate,
mcc.nLRA_Charge as nLRA
From
tbl_Base_Prices base, tbl_Factors …Run Code Online (Sandbox Code Playgroud) 我有一些旧的(破碎的)代码,使用*=连接
table1.ID *= table2.ID
Run Code Online (Sandbox Code Playgroud)
这是左外连接还是右外连接?(我的错误消息表明它是其中之一)