我有 1 张长桌和 1 张短桌:
长桌是这样的:
LongTable:
+--------------+----------+----------+----------+
| Kabelnummer | GL |more data |even more |
+--------------+----------+----------+----------+
| 1 | 850 | x | x |
+--------------+----------+----------+----------+
| 2 | 850 | x | x |
+--------------+----------+----------+----------+
| 3 | 1300 | x | x |
+--------------+----------+----------+----------+
| 4 | 1300 | x | x |
+--------------+----------+----------+----------+
和
ShortTable:
+--------------+----------+----------+----------+
| data | GL |more data |numericVal|
+--------------+----------+----------+----------+
| x | 850 | x | 0.2345 |
+--------------+----------+----------+----------+
| x | 1300 | x | 0.2849 |
+--------------+----------+----------+----------+
我想要一个将列“numericVal”复制到表“LongTable”中的查询,其中 GL.Longtable 与 GL.shorttable 相同:
LongTable:
+--------------+----------+----------+----------+----------+
| Kabelnummer | GL |more data |even more |numericVal|
+--------------+----------+----------+----------+----------+
| 1 | 850 | x | x | 0.2345 |
+--------------+----------+----------+----------+----------+
| 2 | 850 | x | x | 0.2345 |
+--------------+----------+----------+----------+----------+
| 3 | 1300 | x | x | 0.2849 |
+--------------+----------+----------+----------+----------+
| 4 | 1300 | x | x | 0.2849 |
+--------------+----------+----------+----------+----------+
我该怎么做呢?