Skip to main content
Known Participant
April 6, 2008
Answered

column alias works in MySQL, but not in cfoutput

  • April 6, 2008
  • 1 reply
  • 408 views
I have the attached query that works fine in MySQL, but throws an error "1stpay not a valid identifier name" - like it doesn't recognize the aliases. However, it's recognizing my 2 aliases above. So is it the "if" lines that it's not liking? Ultimately, I'd like to also create a column that adds the values in "1stpay" and "2ndpay", but haven't figured that one out yet in MySQL.

Thanks,
Richard
This topic has been closed for replies.
Correct answer Dan_Bracuk
This is a guess. Column aliases can't start with numbers.

1 reply

Dan_BracukCorrect answer
Inspiring
April 6, 2008
This is a guess. Column aliases can't start with numbers.
wfu_kingAuthor
Known Participant
April 6, 2008
That did it.....I should have tried that already!

Thanks Dan!!!