sql server - How can I transfer data from one table to another, overwriting old data? -


i need transfering data 1 table another.

enter image description here

as can see there 2 databases.

i transfer table datas "pinterset" located in database contrinex.gpo in table "printerset" located in database contrinex.gpoqa.

there datas in table "printerset" of contrinex.gpoqa overwrite , put datas "printerset" of contrinex.gpo.

so how can ?

here code..

truncate table contrinex.gpoqa.dbo.printerset go insert contrinex.gpoqa.dbo.printerset select * contrinex.gpo.dbo.printerset 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -