0
當在Excel中的Microsoft查詢中使用SQL CTE以如下參數:SQL CTE在Excel中使用微軟的查詢參數
;with cte1 as (SELECT ID ,Item.ItemLookupCode
FROM Item
where item.Notes like '%'+?+'%'),
cte2 as (select ItemID from Trans
where Time between ? and ?)
select cte1.ItemLookupCode,cte2.
,cte2.ItemID
from cte1 join cte2
on cte1.ID = cte2 .ItemID
我收到以下錯誤
[微軟] [ODBC SQL Server驅動程序]無效的參數編號
[微軟] [ODBC SQL Server驅動程序]無效的描述符索引
有人能幫助我嗎?