Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

delete all records from table except sql

DELETE FROM my_table WHERE col1 > 2;
DELETE FROM my_table WHERE col1 IS NOT NULL;
 
PREVIOUS NEXT
Tagged: #delete #records #table #sql
ADD COMMENT
Topic
Name
4+7 =