-1
    INSERT INTO MINING STRUCTURE [Market Basket]
(
   [OrderNumber],[Product] (SKIP, [Model])
)
SHAPE {
  OPENQUERY([ContosoRetailDW],'SELECT OrderNumber
            FROM V Online Sales Order ORDER BY OrderNumber')}
APPEND
( 
  {OPENQUERY([ContosoRetailDW],'SELECT OrderNumber, Model FROM 
    dbo.V_OnlineSalesOrder ORDER BY OrderNumber, Model')
}
RELATE OrderNumber to OrderNumber 
) AS [Product]

它给出了那个错误信息——

OLE DB 错误:OLE DB 或 ODBC 错误:“销售”附近的语法不正确。;42000。

怎么了??

4

1 回答 1

0

您的 SQL 语法错误。

靠近“销售”一词。您可能拼错了关系名称。

于 2018-05-06T07:51:52.927 回答