Jump to content

Mysql Update where value = AnyNumber


Recommended Posts

Posted

Is it possible to use UPDATE and set the WHERE to only UPDATE where the value = ANYNUMBER?

 

For Example:

 

UPDATE user_accounts set password_reset = 1 where user_ID = NumericValue?

Posted

If it's a User_ID, and the column type is INT, then all rows in the table should be numeric?

 

If some rows are null for this field, then you can use:

 

UPDATE user_accounts SET password_reset = 1 WHERE user_id IS NOT NULL;

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...