how insert selected column only ?

Answer Posted / rajkumar

Format
------
Inser into <tablename> (column name) select (column name)
from <tablename> where <Condition>

Example
--------
INSERT INTO emp (empname) SELECT empname from employe WHERE
empid=5

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are “lost updates”?

611


what is a check constraint?

638


do you know how to configure db2 side of the application? : Sql server database administration

594


How do I get Report Builder to generate a parameter that can be set by users viewing the report?

100


Distinguish between nested subquery and correlated subquery?

545






Characterize join and name diverse sorts of joins?

526


What are the types of joins in sql?

561


How to install sql server 2005 express edition?

590


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2207


what stored procedure would you use to view lock information? : Sql server administration

578


What is bulkcopy in sql?

559


How can I know what locks are running on which resource?

503


what's new in sql server 2016?

557


Is it possible in sql table to have more than one foreign key?

610


How can we use ConnectorJ JDBC Driver with MS SQL?

566