I want to remove the first 500 records from my table without any conditions.
The table definition is as follows:
CREATE TABLE txn_log
(
txn_log_timestamp timestamp without time zone NOT NULL,
txn_log_pgm_id character(6)
)
WITH (OIDS=FALSE);
I do not have a primary key. I tried to remove using
DELETE FROM txn_log LIMIT 500
but he throws an error:
ERROR: syntax error in or near "LIMIT": REMOVE FROM TXN_LOG LIMIT 5000 ^
********** Error **********
ERROR: syntax error at or near "LIMIT"
Can someone suggest me a way to do this?
source
share