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语句 –