how insert selected column only ?

Answers were Sorted based on User's Feedback



how insert selected column only ?..

Answer / manoj

insert into <table_name> (<col1>,<col3>)
values(<val1, val3)

Is This Answer Correct ?    11 Yes 0 No

how insert selected column only ?..

Answer / 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

how insert selected column only ?..

Answer / srinivas

insert into <table_name> ( <col1> ,<col3>) values ( val1,val2)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Which command is used for user defined error messages?

0 Answers  


Explain partitioned view?

0 Answers  


how to overcome kernel isssues

0 Answers   Fortune,


Benefits of Stored Procedures?

0 Answers   Wipro,


what is difference between having and where clause ?

3 Answers  






What is data source view or dsv? : sql server analysis services, ssas

0 Answers  


Why functions are used in sql server?

0 Answers  


What are the different authentication modes in sql server? How can it be changed?

0 Answers  


How to end a stored procedure properly in ms sql server?

0 Answers  


How to know the NAME of the Database and SIZE of the Database at the client node in Sql Server 2005

1 Answers  


What is the maximum length of an alert name?

0 Answers  


What is the use of MOVE keyword in restore command

3 Answers   IBM,


Categories