Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Create temporary table from select statement without using Create Table

0

72 views

Is it possible to create a temporary (session only) table from a select statement without using a create table statement and specifying each column type? I know derived tables are capable of this, but those are super-temporary (statement-only) and I want to re-use.

It would save time if I did not have to write up a create table command and keep the column list and type list matched up.

asked May 2, 2011 11:03 am CDT
posted via StackOverflow

1 Answer

0
 

CREATE TABLE table2 AS (SELECT * FROM table1)

answered May 2, 2011 11:23 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Create table in hbase
February 22, 2011
SHOW CREATE TABLE
April 23, 2011
Create table mysql
April 15, 2011
MySQL create table
April 13, 2011