Mysql Trigger to select and delete -


Is it possible, a trigger in mysql can be selected first and then there is a delete based on its result. Could? Both on the same table.

It is struggling to correct.

There are duplicate entries in a table, I should have a trigger that chooses and then deletes.

Any thoughts or thoughts will really be helpful.

You can delete records based on your selection, you can see it here: < / P>

A simple example is:

  Remove from 'tblname` where' id` (select `id` with` tblname` where `field` = 'must_be_deleted')  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -