That is a fairly loose statement... "your shouldn't ever...." what if there is a need? There is not founding in you stating you shouldn't ever use it.
-----Original Message----- From: Al Everett [mailto:[EMAIL PROTECTED] Sent: 20 July 2005 15:50 To: CF-Talk Subject: Re: CFQuery and SQLBase - alternative to using asterisk You shouldn't ever use SELECT *. Name the columns you want. For the other, try PHONE##. On 7/20/05, Perez, Percy <[EMAIL PROTECTED]> wrote: > Hello, > > I am having problems doing a simple SQL select. > > When I enter: SELECT * from TABLE1, I get an error message that the > asterisk is an invalid character. However, if I used dreamweaver to > view data, I get all the columns and records. If I do a select listing > some of the fields it works. > > Also, the original database creators added a "PHONE#" field. Of course > the # sign is not well liked by coldfusion. I trying using a bracket to > escape the special character but no go. > > Unfortunately, I can not alter the table since it is provided by ADP > (Payroll Company) and there is a GUI interface provided by them. > > Any suggestions? > > Thank you in advanced. > > Percy > > Systems Administrator > Versa Products Company Inc > 22 Spring Valley Road > Paramus NJ 07652 > Ph:201.843.2400 > Fx: 201.843.2931 > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212315 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

