I want to create table from
selecting records from another table In sql server 7.0
e.g
create table tablename
as
select * from another table/view.
How is it possible ??
Thanx in Advance.Hi To create a new table use
SELECT *
INTO fred
FROM bill
IT will fail if fred already exists
To empty and reuse then use
Truncate fred
INSERT INTO fred
SELECT *
FROM bill
Did I get the question right ?
Gerry|||I want to create table from
selecting records from another table In sql server 7.0
e.g
create table tablename
as
select * from another table/view.
How is it possible ??
Thanx in Advance.
WOW, you sound like a DB2 person...
Just don't use SELECT * if it's for Production.....|||Quite right about the "*" of course... I'm just a lazy typer :)
As for the DB2 guess:- not even close !|||Gerry, not you...dbtechzala
The syntax is close to a DB2 syntax....
Be careful of the TRUNCATE though...it'll mark every page as being deleted...
no where clause there....
Showing posts with label asselect. Show all posts
Showing posts with label asselect. Show all posts
Subscribe to:
Posts (Atom)