hi,
I created two tables like
create Table A (pid bigint, pname varchar, psource varchar(10))
create Table #temp (id bigint, name varchar, source varchar(10))
table A having lakhs of rows and table #temp having lakhs of rows
i want to check the records based on #temp table and insert into Table A.
how to check the records before insert values from #temp table to table A
insert into A
(pid,
pname,
psource
)
select
id,
name,
source
from #temp
Please give me the solution for the above query.

Vinay SinghRank #604 · 4K reputationPosted Jul 18, 2016, 10:37 PM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Jul 18, 2016, 9:32 PM EDT
vijay reddy13 reputationPosted Jul 18, 2016, 11:06 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 18, 2016, 11:10 PM EDT
vijay reddy13 reputationPosted Jul 18, 2016, 11:16 PM EDT
Jisny AvRank #4,868 · 321 reputationPosted Aug 11, 2016, 2:55 AM EDT
Vishal JadavRank #1,691 · 901 reputationPosted Aug 12, 2016, 12:20 AM EDT
Sanjeev Sriramoju153 reputationPosted Aug 30, 2016, 4:37 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Aug 30, 2016, 12:36 PM EDT