pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to use the template table  in postgresql
2+ messages / 2 participants
[nested] [flat]

* How to use the template table  in postgresql
@ 2001-05-30 09:01  stone <stone@hiperfect.com>
  0 siblings, 1 reply; 2+ messages in thread

From: stone @ 2001-05-30 09:01 UTC (permalink / raw)
  To: pgsql-sql

Hello:
I'm new user of postgresql. My problem is that:
1. How to create template table? Is it right of ' Create temptable
test(......)'?
2.My application is Client/Server, can  I has some workstations create the
same template table name on the same time? If I could, How can I do with it?
    Thanks for your help.        Stone.





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to use the template table  in postgresql
@ 2001-05-30 09:15  Hans-Jürgen Schönig <hs@cybertec.at>
  parent: stone <stone@hiperfect.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Hans-Jürgen Schönig @ 2001-05-30 09:15 UTC (permalink / raw)
  To: pgsql-sql

stone schrieb:

> Hello:
> I'm new user of postgresql. My problem is that:
> 1. How to create template table? Is it right of ' Create temptable
> test(......)'?
> 2.My application is Client/Server, can  I has some workstations create the
> same template table name on the same time? If I could, How can I do with it?
>     Thanks for your help.        Stone.

If you want to find out more about the syntax of a command you can use \h as
shown below:

myodbc=# \h create table
Command:     CREATE TABLE
Description: Creates a new table
Syntax:
CREATE [ TEMPORARY | TEMP ] TABLE table_name (
    { column_name type [ column_constraint [ ... ] ]
      | table_constraint }  [, ... ]
    ) [ INHERITS ( parent_table [, ... ] ) ]


Temporary tables are only visible for the user who created the table - you need
not worry that something evil happens.
A temporary table is killed as soon as the session is closed.

    Hans




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-05-30 09:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 09:01 How to use the template table  in postgresql stone <stone@hiperfect.com>
2001-05-30 09:15 ` Hans-Jürgen Schönig <hs@cybertec.at>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox