I have a table users. I wish to update the column email based on some condition only.
update users set email='$email' where uid='$uid'
(I wish to update the table users only if there is no other record containing the same email id)
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.
While creating the table you need to make the email coloumn as an unique such that it will not allow you to insert duplicate values.Now you can use the above query such that there will be no email repeated in the table email coloumn