Question : Sorting Column names while viewing data in TOAD

I have a dataset with over 256 columns (probably like 500).  I would like to be able to sort the colmn names in alphabetical order when looking at the data view.

Can Sql order the column names AND show the data contained within the columns?  

Note:  Im not trying to sort the data itself, just the column or "field" names

I'm using Toad

Answer : Sorting Column names while viewing data in TOAD

sql itself cannot do that.
however, you could "generate" your query with a query:

select column_name from all_tables
where table_name = 'yourtablename'
order by column_name

and use that output to build your query with the columns alphabetically.

there is nothing automatic...
you might consider to create a view on the table, if you want to "view" the data like that often.
Random Solutions  
 
programming4us programming4us