How can I combine this two update statements :
update Special_quota set Status=0,Additional_msg_quota=0 where User_id not in(\'1\',\'2\',\'3\')
update Special
You can use CASE expression like this:
UPDATE Special_quota
set Status = CASE WHEN User_ID IN('1','2','3') then 1 else 0 end,
additional_msg_quota = CASE WHEN User_ID IN('1','2','3') then 30 else 0 end
UPDATE Special_quota
set Status = CASE WHEN User_ID IN('1','2','3') then 1 else 0 end,
Additional_msg_quota = CASE WHEN User_ID IN('1','2','3') then 30 else 0 end