我寫了一個查詢,轉換MS SQL Server查詢在MySQL查詢
SELECT dbo.boat.boatno, dbo.boat.boattype, dbo.staff.staffFirstName, dbo.staff.staffLastName,
dbo.branch.branchAddress
FROM dbo.boat INNER JOIN
dbo.BoatOwner ON dbo.boat.OwnerNo = dbo.BoatOwner.OwnerNo INNER JOIN
dbo.branch ON dbo.boat.BranchNo = dbo.branch.branchno INNER JOIN
dbo.staff ON dbo.branch.branchno = dbo.staff.Branchno
WHERE (dbo.branch.branchAddress LIKE '%LONDON%')
但它不會在MySQL查詢工作
我怎麼能轉換成MySQL查詢呢?
最新錯誤? – user1336827
#1142 - 表'boat'的用戶'@'localhost'被拒絕的SELECT命令 – user2164535
看起來好像你需要SELECT權限給你的用戶,在這種情況下是「@localhot」。 – user1336827