Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql delete last row

DELETE FROM my_table WHERE my_col_id = (SELECT MAX(my_col_id) FROM my_table);
 
PREVIOUS NEXT
Tagged: #sql #delete #row
ADD COMMENT
Topic
Name
7+1 =