Showing posts with label SELECT. Show all posts
Showing posts with label SELECT. Show all posts

Thursday, April 30, 2009

Select Statement : Common Usage

Opening all columns from a Table sorted by specified Column

SELECT * FROM TargetTable ORDER BY ColumnName

How to copy a table ?

Make a copy of an existing table

SELECT * INTO TargetTable FROM SourceTable


Make a copy of the structure of an existing table

SELECT * INTO
TargetTable FROM SourceTable WHERE 1=0