in reply to using dbi to set database variables
I would need to be able to perform the following in perlCREATE TRIGGER bar AFTER INSERT ON foo FOR EACH ROW BEGIN DECLARE x INT; SET x = NEW.i; SET @a = x; -- set user variable outside trigger END//
Can i perform a select @a using the standard dbi methods? What would i use to issue the SET command. Could i just use a sth execute call? I will look at this now. By asking the question I have helped myself answer it i thinkSET @a = 0; SELECT @a;
|
|---|