PostgeSQL

[PostgreSQL] DELETE

성엽이 2014. 2. 5. 14:10

DELETE

-- deleting all table rows
DELETE FROM stock_backup;

-- deleting rows
DELETE FROM stock WHERE stock=0;

 

-- deleting optional rows

DELETE FROM stock WHERE stock='1234' and std_code='MAN200001';