I have to do several updates based in a select result, today i do this:
//this will return an array... or no :-)
result = SELECT * FROM <table> where <condicion>
foreach (result as value){
UPDATE <table> SET <column> = <something> WHERE <column> = value
}
Well, i want to pass the responsibility for the integrity (yes, this is important to this software) to database, i have been studied 'triggers','storage procedures' and 'transaction' but i didn't solved my issue, is that even possible?