Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / March 2006



Tip: Looking for answers? Try searching our database.

Select Database Colunm Headers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
umuayo - 31 Mar 2006 19:29 GMT
Is there a way you select only the colunm headers of a database eg MS SQL server 2000
Sojovi - 31 Mar 2006 19:38 GMT
Column header ? Column names you mean ? And of a table, not of a database.
You can retrieve the column names using Columnlist in Coldfusion
<CFQUERY NAME="query_name"..>
SELECT * FROM Table
</CFQUERY>

query_name.columnlist (A comma-delimited list of the query columns)

Or

SELECT column_name FROM information_schema.columns
WHERE Table_Name='Your table name'

Regards
umuayo - 31 Mar 2006 20:00 GMT
Thanks, I meant to ask if I could use the colunm headers to populate a select Dropdown since it will come a comma delimited.
Do I need to strip the comma.
umuayo - 31 Mar 2006 20:28 GMT
Never Mind I got it working.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.