Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to rename a column name while copying it from another table

$
0
0

Hi All,

I am copying rows between two table TableA to TableB

but I wanted to insert data in he column name (username) in tableA to a column named (NewUser) in tableB

How do I go about that?

insert into TableB
select Username
from TableA

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>