Well, I found out the answer to that.
It seems that you cannot use two mySql statements in the same query.
Simple lesson, won't forget it soon. :)
- J
User Profile
Collapse
-
setting MySql variables in a cfquery (coldFusion 7)
Hi,
I'm trying us mySql user defined variables in a cfquery tag, but I keep getting an error.
I know the statement should work because I've tested it a mySQL GUI without problems.
Coldfusion is taking issue with the SET @var=0; part of my statement.
Here is the statement in full;
...Code:SET @pos=0; CREATE TEMPORARY TABLE photoRank SELECT @pos:=@pos+1 as rank, sum(rating)/count(*)
No activity results to display
Show More
Leave a comment: