2
我有一張桌子,我想用一個特定的值填充一列。在PostgreSQL中填充具有特定值的表的所有列?
樣品表: 它包括溫度欄是空的,我想用4.56填充相關欄的所有行。
+------------+------------------+ |temperature |dt | +------------+------------------+ | |9/15/2007 12:12:12| | |9/15/2007 12:14:16| | |9/15/2007 12:16:02| | |9/15/2007 12:18:23| | |9/15/2007 12:21:01| +------------+------------------+
結果:
+------------+------------------+ |temperature |dt | +------------+------------------+ | 4.56 |9/15/2007 12:12:12| | 4.56 |9/15/2007 12:14:16| | 4.56 |9/15/2007 12:16:02| | 4.56 |9/15/2007 12:18:23| | 4.56 |9/15/2007 12:21:01| +------------+------------------+