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.
我有一个表,其中有一个名为“backfill_target”的列,其值为 1,但我需要将所有 300 行的值更改为 20,我该怎么做?
编辑:
这是我的表格的简化版本
ID|name |backfill_target|first_record|second_record 0 | test| 1 |52 |54
尝试,
UPDATE tableName SET backfill_target = 20 WHERE backfill_target = 1
假设您要更新每一行。
UPDATE table SET backfill_target = 20