MySQL DELETE with a Max() Subquery
Here is another nifty way to use a Subquery when deleting a record from your MySQL table.
View Code MYSQL
DELETE FROM table1 WHERE id = '1' && saleid='345' && slot = (SELECT MAX(slot) FROM table1) |
|
November 3, 2009MySQL DELETE with a Max() SubqueryHere is another nifty way to use a Subquery when deleting a record from your MySQL table. View Code MYSQL
Leave a Reply |
|
| © - Digital Epiphany Designs, Online Portfolio for Web Design, Custom Programming, Grapic Design and Game Design. | ||