On Feb 21, 2011, at 1:39 PM, Yan Cheng CHEOK wrote: > INSERT INTO backup_table SELECT * FROM unit_11 WHERE status = 1; You can try something like, INSERT INTO backup_table select unit_id, 99, status, value from unit_11 where status=1; Thanks & Regards, Vibhor Kumar EnterpriseDB Corporation The Enterprise PostgreSQL Company Cell: +91-932-568-2279 vibhor.kumar@xxxxxxxxxxxxxxxx Blog:http://vibhork.blogspot.com -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general