Published in: SQL
INSERT INTO users (firstName, lastName, email ) VALUES ( '#FORM.LastName#', '#FORM.LastName#', '#FORM.email#' ); SELECT thisID = @@identity ---------------------------------------------------------------------- The PRIMARY KEY IS then referenced AS Q_QueryName.thisID "thisID" can be renamed TO whatever you LIKE I USE this code IN ColdFusion, I assume it works IN any LANGUAGE that supports SQL querying.
You need to login to post a comment.
