SELECT*
FROM student NATURAL JOIN teaches
17:16:44 FAILED [SELECT* - 0 rows, 0.023 secs] [Code: 102, SQL State: 42000] Falsche Syntax in der Nähe von "teaches".
I really don't see the Syntax Error, what Problem could this be? Thanks in advance!
SELECT*
FROM student NATURAL JOIN teaches
17:16:44 FAILED [SELECT* - 0 rows, 0.023 secs] [Code: 102, SQL State: 42000] Falsche Syntax in der Nähe von "teaches".
I really don't see the Syntax Error, what Problem could this be? Thanks in advance!
Copyright © 2021 Jogjafile Inc.
Just don't use
natural join. Apparently, you have a database that doesn't support it. So, use explicitjoinsyntax:The main problem with
NATURAL JOINis that it uses columns with the same name, rather than properly declared foreign key relationships. The secondary problems are that the keys are not in the query -- making problems hard to debug. Unexpected keys could be used for the join, and you can't even see what they are. Be explicit on the keys you are using, by including them in anONorUSINGclause.