本文介绍了它在WHERE pk.remarks ='free'中显示错误,你能给我任何建议吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
CREATE VIEW viewinstallinfo
AS
SELECT i.installid, i.customerid, i.username, iu.internetpassword, i.installdate, i.installmiti, i.billdate, i.billmiti, i.entrydate, i.entrymiti, i.billno, pk.packagesalesid AS freepackagerateid, i.purchasepackageid, si.salesid, i.installcharge, i.total, i.other, i.discount, i.netamount, i.remarks
FROM tblinstallinfo AS i
JOIN tblinternetuser AS iu ON i.username = iu.internetusername
JOIN tblsalesinfo AS si ON i.installid = si.installid
JOIN tblpackagesales AS pk ON i.freepackageid = pk.packagerateid, i.installid = pk.installid
WHERE pk.remarks = 'free'
推荐答案
JOIN tblpackagesales AS pk ON i.freepackageid = pk.packagerateid, i.installid = pk.installid
应该是:
Should be:
JOIN tblpackagesales AS pk ON i.freepackageid = pk.packagerateid and i.installid = pk.installid
这篇关于它在WHERE pk.remarks ='free'中显示错误,你能给我任何建议吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!