|
nigelrivett
Flowing Fount of Yak Knowledge
United Kingdom
3328 Posts |
Posted - 06/21/2011 : 10:11:21
|
In sql server you would generate an error/rollback the transaction to abort the update. Why do you want to delete the row with UM_master_id=1? It says that's the row being inserted (or one of them) I think. Does mysql have the concept of instead of or before triggers?
Isn't that if statement a waste of time? The current row will be in the table so row_count will always be at least 1. Could be an if exists to save the count.
========================================== Cursors are useful if you don't know sql. SSIS can be used in a similar way. Beer is not cold and it isn't fizzy. |
Edited by - nigelrivett on 06/21/2011 10:11:54 |
 |
|