Using the list cited with in()

I can't get this query to return results unless I manually put in a list of postcodes ('80918', '80917', '80920', '80902', '80922' ', 80907',' 80909 ', ' 80919')

When I have the same fed list in a SQL variable adds additional quotes to the list and I get no results. What should I do to prevent this?

declare
@ZipCodes varchar (300)


SELECT
StoreName,
Address,
City,
StateAbbreviation,
Zip code
Telephone number,
Adresse_web
Of
CatholicStores
JOIN THE
States
WE
State_Pk = State_Fk
WHERE
PostalCode IN (@zipcodes)
ORDER BY
Zip code
StoreName

cfqueryparam handles quoting for you. delete all single quotes in: #attributes.zipcodelist # and use

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • LabVIEW FPGA bitstream encryption?

    Hi all Can anyone provide any advice or experience on FPGA bitstream encryption to protect intellectual property using LabVIEW? Thank you P

  • Envy of HP dv6 7210tx dynamic BONE (Win8) issue after partitioning

    Hi Guyz, Hope I could find a solution for this soon. I recently bought the model above Sri Lanka.  A few days back that I split a partition (not the recovery part) since I needed it for one of my requirements.  From the day I did that the operating s

  • Time zones

    Okay - I'm pulling my hair out and going nowhere, even after research and reading on this for a few hours. Any advice would be appreciated. I need to get the current time in the United Kingdom - with summer time. My current code is: Zone londonZone =

  • . What's wrong? COMPUTER WILL NOT STOP UNTIL I hit Cancel or end of program. What program?

    When I hit the stop icon, to turn the laptop off a window notification window notification saying-end-support from the framework programme. Program does not, click on cancel or end of program. Computer does not stop until I have click on program ends

  • Change the User Manager api for the update

    Hi allI'm trying to change some attributes using the UserManager change call.I get the exception below-Caused by: oracle.iam.platform.kernel.ValidationFailedException: this attribute is not supported for the change of the bulk operation.at oracle.iam