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 |
two tables with table name ship(name,year) and battle (name,year),how to find the latest added year in the table ship
Explain hostprotectionattribute in sql server 2005?
What is bcp? When does it use?
How can we improve performance by using SQL Server profiler?
Define model database?
How to verify a user name with sqlcmd tool?
How will you hide an attribute? : sql server analysis services, ssas
How to return the second 5 rows in ms sql server?
Does partitioning ssd reduce performance?
Suppose you want to implement the following relationships while designing tables. How would you do it?a.) One-to-oneb.) One-to-manyc.) Many-to-many
What are the types of model in sql server and explain
how can you attach more than 20 ldf files in sql server
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)