0
if 1=(select oneTimePayClass from tblClass where [email protected])
print 'True';
else
(select h.FeeHeadId,h.FeeHeadName,d.amount,d.FeeDefaultId
from tblFeeHead as h inner join tblFeeDefault as d on h.feeHeadId=d.feeHeadId
where [email protected] and [email protected] and [email protected] and [email protected] and [email protected]
order by h.orderNr);
當我刪除order by h.orderNr
然後查詢成功運行。SQL服務器查詢顯示錯誤語法錯誤附近的順序
但是當我添加order by h.orderNr
那就表明:近的順序
錯誤不正確的語法
從最終的SQL語句 –