how insert selected column only ?
Answers were Sorted based on User's Feedback
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 |
Answer / srinivas
insert into <table_name> ( <col1> ,<col3>) values ( val1,val2)
Is This Answer Correct ? | 1 Yes | 0 No |
How to delete duplicate records based on single column from a table?
0 Answers Petranics Solutions,
What is Index ? Explain its Types?
how many layers of tcp/ip protocol combined of? : Sql server database administration
How to sort the query output with order by clauses in ms sql server?
How do I view a stored procedure in sql server query?
Normalization and denormalization
How to defragment indexes with alter index ... Reorganize?
What are the differences between UNION and JOINS?
3 Answers CarrizalSoft Technologies,
Explain what is the difference between union and union all?
What is the purpose of sql profiler in sql server?
What is the difference between osql and query analyzer?
What is oltp (online transaction processing)?