Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
SQL Server 2000/2005/2008, Express, Access, MySQL, Oracle
Problema trigger ERROR 1442
giovedì 11 febbraio 2010 - 12.42
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
violetFairy
Profilo
| Newbie
1
messaggi | Data Invio:
gio 11 feb 2010 - 12:42
Ciao a tutti,
vorrei attivare un trigger del genere:
CREATE TRIGGER myTrigger
AFTER INSERT ON T1
FOREACH ROW
DELETE FROM T1
WHERE a= NEW.a
and b = 0;
ma dal momento in cui vado a fare un inserimento nella tabella T1 mi da questo errore:
ERROR 1442 (HY000): Can't update table 'T1' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
Come faccio ad attivare un trigger del genere?
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !