php - is it possible to automatically delete a row in a table if a certain condition is met? -


is possible automatically delete row in table if condition met?

for example products table

pid     pname     quantity 1       shoes     5 

now condition must if quantity equal 0 whole row must deleted

issue query delete table quantity = 0 , rows satisfying condition deleted.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -