Visa ett inlägg
Oläst 2010-12-17, 09:06 #5
jonny jonny är inte uppkopplad
Supermoderator
 
Reg.datum: Sep 2003
Inlägg: 6 941
jonny jonny är inte uppkopplad
Supermoderator
 
Reg.datum: Sep 2003
Inlägg: 6 941
Nu gillar jag inte triggers alls - jag vill inte ha logik i databasen - och jag har mest använt Oracle på sistone. Men du bör kunna komma åt värdet du försöker mata in utan problem.

Lite googlande gav:
Citat:
You can refer to columns in the subject table (the table associated with the trigger) by using the aliases OLD and NEW. OLD.col_name refers to a column of an existing row before it is updated or deleted. NEW.col_name refers to the column of a new row to be inserted or an existing row after it is updated.
http://dev.mysql.com/doc/refman/5.0/...e-trigger.html
jonny är inte uppkopplad   Svara med citatSvara med citat