Why does the MySQL query below give error 1066 (Not unique table/alias: 'customer') ?
1066 (Not unique table/alias: 'customer')
SELECT customer.id, customer.firstName, account.id FROM customer, account INNER JOIN customer ON customer.id = account.customerId ORDER BY customer.id
You have specified the customer table twice in your FROM expression. Here's the fixed version:
customer
FROM
SELECT customer.id, customer.firstName, account.id FROM account INNER JOIN customer ON customer.id = account.customerId ORDER BY customer.id
Source: https://habr.com/ru/post/1305162/More articles:to make apache and django add trailing slash - djangoReading the value at - c ++Is it possible to avoid reloading the page after accepting the activex object - reloadPerl DBI does not save MySQL stored procedure results - mysqlINSERT INTO Instruction, New Entry: How to create an autooid number? - vbaopenDatabase Hello World - javascriptFailed to remove package from Delphi 2005 - delphiPrint dialog box Does not appear in Crystal Report Viewer on 64-bit machine - vb.netSelenium tests: html vs code? - seleniumHow to fix the fake NHibernate boot error "session or session not closed"? - asp.net-mvcAll Articles