test=> create table test (x int);
CREATE
test=> insert into test values (1);
INSERT 
test=> insert into test values (2);
INSERT 19787 1
test=> select * from test;
x
-
2
(1 row)

test=> drop table test;
DROP
test=> select * from test;
x
-
1
(1 row)

test=> drop table test;
DROP

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Thu, 28 Jan 1999 18:18:45 -0500 (EST)
Bruce Momjian <maillist@candle.pha.pa.us>
Another TEMP table trick
I don't know how I posted this, but it is wrong.  I have added the
missing lines.

> test=> create table test (x int);
> CREATE
> test=> insert into test values (1);
> INSERT 
> test=> create temp table test (x int);  <--
> CREATE                                  <--
> test=> insert into test values (2);
> INSERT 19787 1
> test=> select * from test;
> x
> -
> 2
> (1 row)
> 
> test=> drop table test;
> DROP
> test=> select * from test;
> x
> -
> 1
> (1 row)
> 
> test=> drop table test;
> DROP
> 
> -- 
>   Bruce Momjian                        |  http://www.op.net/~candle
>   maillist@candle.pha.pa.us            |  (610) 853-3000
>   +  If your life is a hard drive,     |  830 Blythe Avenue
>   +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Thu, 28 Jan 1999 18:32:01 -0500 (EST)
Bruce Momjian <maillist@candle.pha.pa.us>
Re: [HACKERS] Another TEMP table trick