Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to delete last row in sql

DELETE FROM my_table WHERE my_col_id = (SELECT MAX(my_col_id) FROM my_table);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #row #sql
ADD COMMENT
Topic
Name
9+5 =