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.
我在数据库中有值为 null 的列,我希望该列的所有现有记录都用默认值 1 填充。
请帮助
update yourtable set yourcolumn = 1 where yourcolumn is null;