我有如下查询:
UPDATE prog_fatt
SET fat_prg = (SELECT MAX(VALUE)
FROM (SELECT 0 AS VALUE
UNION
SELECT fat_prg - 1 AS VALUE) AS T1)
在 SQL Server 上工作,但给出:
ERROR 1054 (42S22): Unknown column 'fat_prg' in 'field list'
MySQL 上的错误,有没有办法让它在 MySQL 下工作?