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

Using a created list in a SQL IN query

Enthusiast ,
Mar 07, 2012 Mar 07, 2012

Copy link to clipboard

Copied

I've solved this before but can't remember how, know it's going to be a simple one

I've created a list from a CFLOOP, let's say it's MYLIST="us,ca,au,fr"

I need to run a SQL CFQUERY on this list, WHERE xyz IN (MYLIST)

The problem is that it won't read it correctly. Can anybody tell me the right command to make the sql read the list correctly on an individual item basis

Thanks

Mark

TOPICS
Database access

Views

888

Translate

Translate

Report

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 , Mar 10, 2012 Mar 10, 2012

cfqueryparam list="yes"

Votes

Translate

Translate
LEGEND ,
Mar 10, 2012 Mar 10, 2012

Copy link to clipboard

Copied

cfqueryparam list="yes"

Votes

Translate

Translate

Report

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
Enthusiast ,
Mar 13, 2012 Mar 13, 2012

Copy link to clipboard

Copied

LATEST

Ahhh. I remember using that before now that you mention it

Once again, thanks Dan

Mark

Votes

Translate

Translate

Report

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
Documentation