I will delete data from 2 tables. I will do it as follow:
DELETE FROM dc_mail_users u, dc_mail_user_data d WHERE u.i_id_pk = 3 AND d.i_id_ut = u.i_id_pk
But this will return a SQL syntax error. How can I fix this whit the SQL AS statement? Just like the example below.
SELECT first_name.last_name AS name WHERE name="John Doe"
1 Answer