sql server - INSERT a new column into an existing SQL table -


i have "source data" table columns a,b,c,d,e,f

i use table populate live table using

insert livetable     select *     sourcedatatable 

recently, new column (c1) added livetable

all want insert c1 column sourcedatatable between c , d a,b,c,c1,d,e,f. there no need populate data livetable accepts nulls

is there easy solution?

edit - missing information

this table 1 of many , approach using insert due having use dynamic sql (for various other reasons) cannot specify column names

there reason mantra "i shall not use select *" , ran straight it. add column sourcedatatable (if necessary) , enumerate columns in select clause using null new one.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -