Im try to update value (level) in in table people if userid exist in users table
in table
IF EXISTS (SELECT userid FROM users)
UPDATE people SET level='1'
What i am missing ! to get errors ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From your comment “i need to update level column if userid exist in both table with value 1”, it seems you need this :