delete hash from users where email='emailaddress@hotmail.com';
Why is the above line not working? I want to delete the value in the hash column in the row the contains the specified email.
delete hash from users where email='emailaddress@hotmail.com';
Why is the above line not working? I want to delete the value in the hash column in the row the contains the specified email.
That should be:
UPDATE users SET hash = '' WHERE email = 'emailaddress@hotmail.com'
DELETE FROM
is used to delete entire rows.
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.