|
|
|
date: Thu, 7 Aug 2008 15:25:50 -0300,
group: microsoft.public.sqlserver.server
back
Re: Alphabetical order
If the table has 50 fields the only way is writing one by one?
"Select FieldA,FieldB,FieldC,FieldC, ..., ... from Table" ???????
"Aaron Bertrand [SQL Server MVP]" <ten.xoc@dnartreb.noraa> escreveu na
mensagem news:C4C0B9D4.EBDD%ten.xoc@dnartreb.noraa...
> Why don't you just create a view that hard-codes the columns in that
> order?
> You can do this with dynamic SQL of course, but columns are just columns,
> and order shouldn't matter, so SQL Server doesn't have a magic flag to say
> structure the resultset with the columns in this or that order...
>
>
>
>
>
> On 8/7/08 2:25 PM, in article uHNq2tL#IHA.5056@TK2MSFTNGP06.phx.gbl,
> "Paulo"
> wrote:
>
>> Hi, if I have a table with the columns:
>>
>> NAME CODE SUPPORTCODE ADDRESS CUSTOMERNAME ... ... ...
>>
>> Can I do a select that will return me the columns on alphabetical
>> order???
>>
>> ADDRESS CODE CUSTOMER NAME SUPPORTCODE ....
>>
>>
>
date: Thu, 7 Aug 2008 15:46:53 -0300
author: Paulo
|
|