Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行这个查询
UPDATE tblPlayer SET Salary = NULL, Status = "1" WHERE PlayerId=123
而不是将薪水NULL更新为它,而是将其更新为空值
NULL
我如何获得NULL而不是空值?
你的代码对我来说很好用
UPDATE tblPlayer SET Salary = NULL, Status = '1' WHERE PlayerId = 123
我打赌你SALARY有默认值''
SALARY
''
要更改列,请尝试此 DDL
ALTER TABLE tblPlayer MODIFY Salary VARCHAR(15) NULL DEFAULT NULL;