SELECT users.name,
phone_info.phone_num,
FROM users LEFT OUTER JOIN phone_info
ON users.user_id = phone_info.user_id
I have 2 tables in my db users
and phone_info
. I want to use left join to execute the users who have numbers. However I get an error like this
Static analysis:
1 errors were found during analysis.
An expression was expected. (near "FROM" at position 43)
SQL query: Documentation
SELECT users.name, phone_info.phone_num, FROM users LEFT JOIN phone_info ON
users.user_id = phone_info.user_id
MySQL said: Documentation
#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
'FROM users LEFT JOIN phone_info
ON users.user_id = phone_info.user_id' at line 3