postgresql + navicat
想更新表a的某一行数据,结果忘加where条件了。
结果就是全部行都被update成了相同数据
这样还有救么?有撤销这次操作的方法吗??
晕死了。。
PHPz2017-04-18 09:07:17
The default log path is generally in /var/lib/pgsql/9.5/data/pg_log, and the default log level is ddl. Please find it quickly.
PHPz2017-04-18 09:07:17
Learn your lesson.
The database prohibits destructive operations such as DELETE and UPDATE, and uses CREATE, INSERT, RENAME, version control, etc. instead.
阿神2017-04-18 09:07:17
Yes, pgsql should have the ability to write statement logs, just roll back. If mysql has it, pgsql should also have it
阿神2017-04-18 09:07:17
Log recovery. Log recovery. Log recovery. Log recovery. Log recovery. Log recovery.