SQL Query to count the number of columns

View: New views
4 Messages — Rating Filter:   Alert me  

SQL Query to count the number of columns

by Koushik Ghosh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

SQl Query to count(find) the number of columns present in a table()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:3095
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.6

Re: SQL Query to count the number of columns

by James Holmes-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://www.catb.org/~esr/faqs/smart-questions.html

For example, which DB platform are you on?

On Tue, Jun 17, 2008 at 3:58 PM, Koushik Ghosh <koushikranaID@...> wrote:
> SQl Query to count(find) the number of columns present in a table()
>

--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:3096
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.6

Re: SQL Query to count the number of columns

by Scott Doc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>SQl Query to count(find) the number of columns present in a table()

Select * in a query called "Results"

Then: ListLen(Results.columnList)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/sql/message.cfm/messageid:3149
Subscription: http://www.houseoffusion.com/groups/sql/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.6

RE: SQL Query to count the number of columns

by Raymond Thompson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Select top 1 * so that only one row is returned. You don't want to return
the entire table.

Ray Thompson
Tau Beta Pi (www.tbp.org)
The Engineering Honor Society
865-546-4578

-----Original Message-----
From: Scott OConnell [mailto:scott@...]
Sent: Wednesday, November 19, 2008 11:25 PM
To: sql
Subject: Re: SQL Query to count the number of columns

>SQl Query to count(find) the number of columns present in a table()

Select * in a query called "Results"

Then: ListLen(Results.columnList)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/sql/message.cfm/messageid:3153
Subscription: http://www.houseoffusion.com/groups/sql/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.6