Answer Posted / mohammadali.info
*SELECT...INTO essentially combines CREATE TABLE and SELECT in a single statement. The AS clause can be used to change the column labels and thus control the column names in the new table. The other commands in the figure show the new table's structure and contents.
-SELECT firstname, lastname, city, state
INTO newfriend
FROM friend;
-SELECT...INTO tablename can also be written as CREATE TABLE tablename AS SELECT.... The preceding query can then be rewritten as
CREATE TABLE newfriend AS SELECT firstname, lastname, city, state FROM friend.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is 3nf normalization?
what is an index? : Sql server database administration
What is a non-clustered index?
What is the federation in sql azure?
Does partitioning ssd reduce performance?
What is a subquery in a select query statement in ms sql server?
How do you trace the traffic hitting a sql server?
Explain external key management in sql server 2008
Can a database be shrunk with users active?
Does partitioning improve performance?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration
Tell me what are cursors and when they are useful?
What will be the maximum number of indexes per table?
i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?