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

list into query

Guest
May 15, 2007 May 15, 2007

Copy link to clipboard

Copied

I have a list of checkbox values. I am checked multiple checkbox and I want to pass this value in my query.
I used preservesinglequote but it didn't put quotes.

How can i build list and then pass in query

for example IN ('A','B')

thanks
TOPICS
Advanced techniques

Views

180

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
Advocate ,
May 15, 2007 May 15, 2007

Copy link to clipboard

Copied

LATEST
use <cfqueryparam>:

WHERE myField in (<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#Form.myCheckbox#" 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
Resources
Documentation