I am using a Cold Fusion front end and I can't figure out how to use the LAST_INSERT_ID() method in my CF application. When I place the method within a <cfquery> I always get an invalid syntax error.
<cfquery datasource="#request.main_dsn#" name="insertMem">
<!--- Insert...
I'm trying to use the LAST_INSERT_ID() function to return the last generated ID for a tuple but it won't work within a <cfquery> tag. Can the Last_Insert_id method be used in conjunction with Cold Fusion? I've put my code bellow. Thanks.
<!---Query the DB and insert member information--->...
I've gotten rid of the LOCK TABLES but when I try to run the LAST_INSERT_ID through a <cfquery> I get a SYNTAX error. Can I use the LAST_INSERT_ID function with cold fusion?
I am running MySQL in junction with Cold Fusion on a Windows 2000 platform. In order to create an enviroment that assures that an INSERT followed by a SELECT will return the last created ID, I used a LOCK TABLE statement but now the server always returns that table as locked. I tried to run an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.