语法错误SQL Server?

时间:2016-02-05 10:46:40

标签: sql sql-server

我是SQL Server Management Studio的新手,我在这里看不到语法错误?

@JobNo int

AS
SELECT     
    FittingTimeSlots.dtmActualStart, Fitters.strFitterDesc, 
    Orders.lngSageInvoiceNumber, FittingTimeSlots.strScheduleType, 
    FittingTimeSlots.blnRemedial, FittingTimeSlots.intSlotNumber, 
    Orders.strCustomerName, Orders.strContactName, 
    sqs.dbo.Customers.TelOffice, Orders.strDeliveryName, 
    Orders.strDeliveryAddress1, Orders.strDeliveryAddress2, 
    Orders.strDeliveryAddressTown, Orders.strDeliveryAddressCounty, 
    Orders.strDeliveryAddressPostCode, Orders.strDeliveryAddressCountry, 
    sqs.dbo.[Quote Worktop Labels].Specification, 
    Orders.strSageCustomerOrderCode, OrderLog.strLogMemo
FROM
    Orders 
INER JOIN
    FittingItems ON Orders.lngOrderID = FittingItems.lngOrderID 
INER JOIN
    FittingTimeSlots ON FittingItems.lngScheduleItemID = FittingTimeSlots.lngScheduleItemID 
INER JOIN
    Fitters ON FittingTimeSlots.lngResourceID = Fitters.lngFitterID 
INER JOIN
    sqs.dbo.[Quote Worktop Labels] ON Orders.lngSQSQuoteID = sqs.dbo.[Quote Worktop Labels].QuoteID 
INER JOIN
    sqs.dbo.Customers ON Orders.lngCustomerID = sqs.dbo.Customers.CustomerID 
INER JOIN
    OrderLog ON OrderLog.strLogMemo = OrderLog.strLogMemo
WHERE     
    (Orders.lngSageInvoiceNumber = @Jobno)

我正在尝试将注释(strlogmemo)添加到创建报告的存储过程(Excel)

1 个答案:

答案 0 :(得分:0)

首先,将 NSOperationQueue *opQueue=[NSOperationQueue new]; NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(getAccessToAddressBook) object:nil]; [opQueue addOperation:op ]; 替换为INER

另一个......(不确定你是否错过了复制的东西)

INNER