SELECT INTO Statement drop table
SELECT INTO Statement
This SQL
Server tutorial explains how to use the SELECT INTO statement in SQL Server
(Transact-SQL) with syntax and examples.
Description
The SQL
Server (Transact-SQL) SELECT INTO statement is used to create a table from an
existing table by copying the existing table's columns.
It is
important to note that when creating a table in this way, the new table will be
populated with the records from the existing table (based on the SELECT Statement).
SELECT id,name
INTO
nrdata1(new table )
FROM nrdata
(old table )
WHERE sal>500;
DROP TABLE Statement
This SQL
Server tutorial explains how to use the DROP TABLE statement in SQL
Server (Transact-SQL) with syntax and examples.
Description
The SQL
Server (Transact-SQL) DROP TABLE statement allows you to remove or delete a table
from the SQL Server database.
DROP TABLE employees;
Comments
Post a Comment