|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Appending to a table
Ok lets see if I can explain this clear enough. I have a table with 6 columns in it. I need the results from all 6 columns put into one. I also need these to be distinct. At frist I was running a query on each individual clumns> copy and pasting it into an excel spreadsheet and then importing that table. Is there any other way to do this?
|
|
#2
|
|||
|
|||
|
Is there a way to Insert into a column the results of a query?
|
|
#3
|
||||
|
||||
|
yes, use the INSERT SELECT syntax
INSERT INTO tablename [ ( columnlist ) ] SELECT columnlist FROM ... |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Appending to a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|