POReceiptLine包含一个名为MfrPartNbr的字段。 我希望用户能够查找POReceiptLine.MfrPartNbr等于输入值的所有POReceipts。POReceipt.ReceiptNbr IN ( SELECT ReceiptNbr FROM dbo.POReceiptLine WHERE MfrPartNbr = 'MY_ENTERED_PART_NBR‘) 你知道怎么写BQL语句吗?
我试过了:SET @pass = 'bar';PREPARE stmt FROM $sql;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to us