I have a error in my SQL:
"SELECT * FROM tireOverview FULL OUTER JOIN tirePrice ON tireOverview.ID=tirePrice.IDtire"
Where i get this error:
Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OUTER JOIN tirePrice ON tireOverview.ID=tirePrice.IDtire ORDER BY tireOvervie...' at line 1 in /var/www/html/webscraper/scraper/include.php:158 Stack trace: #0 /var/www/html/webscraper/scraper/include.php(158): PDOStatement->execute() #1 /var/www/html/webscraper/scraper/index.php(34): tireReadOut(Object(PDO)) #2 {main} thrown in /var/www/html/webscraper/scraper/include.php on line 158
My Database consists of 2 tables:
tireOverview -> ID, EAN, ProductName, Date, URLAutoweek
tirePrice -> ID, IDtire (fk tireOverview.ID), Seller(fk Sellers.ID), PriceAutoweek, PositionAutoweek, PriceJSON, LastChanged
I want to get all the data from where tireOverview.ID matches tirePrice.IDtire.
Database is mariaDB, with PHPMyAdmin. Server is Debian 10 (Buster). PHP is version 7.3.
If you need more info, just comment!