我只是想确定一下,因为我不想弄乱任何东西,因为这即将投入生产,我不确定。
我们为用户1、2、3设置了3个角色,默认情况下,所有用户都是角色1,但是,我需要向一个用户添加角色2和3。
I am worried that if I use just UPDATE that it will just overwrite the default role.
UPDATE Users
SET UserRole = 2
WHERE UserID = 26;
would outcome of this be user role 1,2?
还是我应该使用插入?