Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfloop list error

New Here ,
Jul 25, 2008 Jul 25, 2008
Hi,

I am trying to loop over a list and get results matching that list however, I get the following error:

[Macromedia][Oracle JDBC Driver][Oracle]ORA-00904: "1": invalid identifier

The error occurred in E:\ColdFusion8\wwwroot\MidWiferyLottery\test2.cfm: line 11

9 : <cfquery name='test1' datasource='t_test'>
10 : SELECT ID, FIRSTCHOICE FROM TBL_LOTTERY
11 : WHERE FIRSTCHOICE="#i#"
12 : </cfquery>
13 : </cfloop>

I have attached the code I am using.

Thanks in advance.

TOPICS
Getting started
355
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 25, 2008 Jul 25, 2008
Your error is caused by using double quotes.

Your approach is horrifically inefficient. You only need 1 query.
Translate
LEGEND ,
Jul 25, 2008 Jul 25, 2008
Your error is caused by using double quotes.

Your approach is horrifically inefficient. You only need 1 query.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 28, 2008 Jul 28, 2008
LATEST
Thank you, the quotes were the problem. As for the method, I am working on making it more efficient.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources