I'm using a trigger that triggers AFTER INSERT, when the user inserts data into the the table i want to be able to use the information that was just inserted into the table in my trigger.
Is there any way to do this?
Use the special variable new to get the data for the new added row(s), as described in the manual at 13.1.22 CREATE TRIGGER Statement
Within the trigger body, you can refer to columns in the subject table (the table associated with the trigger) by using the aliases
OLDandNEW.OLD.col_namerefers to a column of an existing row before it is updated or deleted.NEW.col_namerefers to the column of a new row to be inserted or an existing row after it is updated.