在关键字“ AS”附近我一直收到错误的语法
我尝试了以下语句 这给了我关于“ +”号和存储位置的错误 notull(ltrim(ltrim(cast([supplyingplant] as varchar)as supplyPlant)),, ltrim(cast(cast([ReceivingPlant] as varchar)as ReceivingPlant))+'-'+ ltrim(cast(StorageLocation as varchar)as storageLocation))作为DEST
这给我一个关于关键字“ AS”的错误消息 isull((ltrim(cast([supplyingplant] as varchar)as supplyPlant)),ltrim(cast([ReceivingPlant] as varchar)as ReceivingPlant)+'-'+ ltrim(cast(StorageLocation as varchar)as storageLocation))作为目的地
这也给我一个关于关键字“ AS”的错误消息。 notull((ltrim(cast([supplyingplant] as varchar)as supplyPlant)),ltrim(cast([ReceivingPlant] as varchar)as ReceivingPlant))+'-'+ ltrim(cast(StorageLocation as varchar)as storageLocation)as dest
(选择不同的[购买订单]
isnull((ltrim(cast([supplyingplant] as supplyPlant)as供应工厂)),ltrim(cast([ReceivingPlant] as varchar)as ReceivingPlant))+'-'+ ltrim(cast(cast(StorageLocation as varchar)as as storageLocation) )作为目标
--isnull((ltrim(cast([supplyingplant] as varchar) as supplyPlant)),ltrim(cast([ReceivingPlant] as varchar) as ReceivingPlant) + '-'+ltrim(cast(StorageLocation as varchar) as storageLocation)) as dest
-isnull(ltrim(cast([supplyingplant] as supply)as supplyPlant)),ltrim(cast([ReceivingPlant] as varchar)as ReceivingPlant))+'-'+ ltrim(cast(castLocation,as varchar)as storageLocation))作为DEST 进入#ekpo 来自[dq]。[sap_ekpo])
第156条消息,第15级,州际10,第86行 关键字“ AS”附近的语法不正确。