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

null in cfqueryparam

New Here ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

in sql stamement i have where name is null, how do i put it in the cfqueryparam

where name = <cfqueryparam type="cf_sql_char" value ="" is NUll />?

thanks

TOPICS
Advanced techniques

Views

717

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
Valorous Hero ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

Do you mean you wish to find records where the name is NULL? If so, you do not need to use cfqueryparam. Just use the keywords IS NULL:

        WHERE Name IS NULL

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
New Here ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

thanks,

so if i am passing specify value not the variables from the form then i don't need the cfqueryparam right?

example,

in sql statement i have: where work='p' then i don't think i need to put in in the cfqueryparam like

<Cfqueryparam type="sql_char" value ="p">?

thanks again

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
Guide ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

That is correct. CFQueryparam is for variables, so if it's not going to change it doesn't need one.

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
New Here ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

LATEST

thanks all

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