Skip to content
Advertisement

What is the correct syntax?

I wrote a sql query to update data of ‘tbl_products’. Here is the query

But it gives me the following error “#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 tbl_products join tbl_order_details on tbl_order_details.product_id = tbl_p’ at line 1”

Whats wrong here?

Advertisement

Answer

In MySQL, the correct syntax is:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement