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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

spaces in a field name

Status
Not open for further replies.

kingjjx

Programmer
Sep 18, 2001
181
US
Is it possible to have a field name with spaces ?
Example: Last Name

If yes, how do i call the field ?
 
If you are designing the database, then I would highly recommend NOT using a space, but if you already have a field with it, you can usually put it in brackets and alias it.

e.g

Select [Last Name] as LastName from myTable, etc.

 
Hey King,

Here's some additional info that may help.

<cfquery name=&quot;q1&quot; datasource=&quot;myDS&quot;>
select &quot;field one&quot; from main
</cfquery>

<cfoutput query=&quot;q1&quot;>#q1[&quot;field one&quot;][currentrow]#<p></cfoutput>

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

Part and Inventory Search

Sponsor

Back
Top