我需要更新一列,并根据旧值,更新第二列。 1 | | 1 | 1 | 1 | 1 | 1 |UPDATE table t1, table t2 SETmysql手册指出:
The second assignment in the following statement sets col2 to the current (update
下面是这个的示例 select distinct Salary from Employee order by Salary Desc limit 1 offset 1在我看来,select(...) as second看起来很混乱,因为我从未见过查询集而不是列名可以用作SELECT的参数。有人对如何理解这样的嵌套select子句有想法吗?有关于这个特性的教程吗?