sql server 2008 - Variation of SELECT * - all columns except those explicitly referenced -


is there way convert 1 column , able reference other columns without naming them explicitly?

normally this:

select       ,[id]       ,[name]       ,convert(varchar(10),[createdate], 104) [createdate]    customers 

what in perfect world be:

select       *       ,convert(varchar(10),[createdate], 104) [createdate]    customers 

where * mean columns not explicitly stated in query.

is there keyword enables 1 or there other way? please keep in mind has doable in query - no changing tables, making views, sps or else.

there isn't programmatic way "all columns except one" unless wanted build dynamic sql sys.columns based on list provide query (it very difficult derive list of referenced columns query dynamically, introduce joins, clauses, etc).

but there pretty trivial way without typing them all. expand table in object explorer, , drag "columns" node onto query editor window. remove createdate column list.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -