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 |
Which one is faster delete/truncate? Why?
What are the different types of replication? How are they used?
how to insert the values in 5 table at a time Using any single statement ?
6 Answers Infosys, Value Labs,
How do I view views in sql server?
What is resultset concur_updatable?
plz send every query in sql server2000
What are the fixed server level roles? : sql server security
What is the command used to get the version of sql server?
Can we call future method from queueable?
Explain syntax for dropping triggers?
What is default port number for sql server 2000?
How to find the service pack installed? : sql server database administration
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)