Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace in an SQL Statement??

Status
Not open for further replies.

PDL

IS-IT--Management
Dec 11, 2000
36
US
I have tried:

SELECT Test, Replace(ItemName," ","_","ALL") AS Description

in orer to get rid of SPACES in the contents of the variable ItemName. Keep getting errors. Any ideas?
 
I think you're just mising the # in your statement. Try this:

SELECT Test, #Replace(ItemName," ","_","ALL")# AS Description

Inside <cfquery> tags, all CF variables and functions need #s around them.

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top