When I run this query
UPDATE tblPlayer
SET Salary = NULL,
Status = "1"
WHERE PlayerId=123
Instead of updating salary to NULL the it updates to an empty value
How do I get NULL instead of empty value?
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.
Your code is working fine with me
I bet your
SALARYhas default value''To alter the column, try this DDL