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

insert values

$
0
0

i need to insert value like this

insert into emp1

select 1,'code1',0

union all

select 2,'code1',0

union all

select 1,'code2',0

union all

select 2,'code2',0

i dotn want multiple union all statement,

how can i just 1 temp table which has all id(1,2) and then join it ,if i do cross apply its

not working


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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