I have got an error in running this query in phpMyadmin. The query is to update a table using inner join .Pls help me
My tables are :
userpswd
- ID
- password
- Name
- Col 4
- Col 5
- index
- oncampus_present ( the colum I want to update )
oncampus
- index
- ID
I already have gone through most of the threads given here regarding the same and none seem to work.
UPDATE userpswd
SET oncampus_present='yes'
FROM userpswd
INNER JOIN oncampus
ON userpswd.ID=oncampus.ID
WHERE userpswd.oncampus_present=NULL