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

Can we linked SharePoint to a SQL database?

742


Tell me what is de-normalization and what are some of the examples of it?

759


Define outer join?

743


Explain for xml explicit mode?

733


What is difference between count (*) and count column?

658






Does union all remove duplicates?

797


How to convert a unicode strings to non-unicode strings?

737


Do you know what is similarity and difference between truncate and delete in sql?

757


How to create user defined functions with parameters?

834


What does null mean?

752


What is collation sensitivity? Explain different types.

713


Benefits of Stored Procedures?

712


What are the elements of dbms?

709


What are the dis_advantages of stored procedures, triggers, indexes?

1916


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

840