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 |
What is a table called, if it has neither cluster nor non-cluster index? What is it used for?
How to use old values to define new values in update statements in ms sql server?
How to set a database state to offline in ms sql server?
How to get a list of all tables with "sys.tables" view in ms sql server?
Difference between Triggers and Stored Procedure
23 Answers Claimat, HCL, Protech, Silgate,
What are the properties of sub-query?
What do I need to start working with sql studio? : sql server management studio
How to filter records of table in SQL SERVER?
0 Answers Petranics Solutions,
Can we return Data from 4(more than 1) tables in stored procedure?
Explain external key management in sql server 2008
What stored by the msdb? : sql server database administration
How many types of schemas are there?
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)