pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
CREATE TABLE docs question
3+ messages / 2 participants
[nested] [flat]

* CREATE TABLE docs question
@ 2009-02-17 11:37  Michael Monnerie <michael.monnerie@is.it-management.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Monnerie @ 2009-02-17 11:37 UTC (permalink / raw)
  To: pgsql-admin

http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html

Reading the docs, the following should work:

CREATE TABLE messageblks like dbmail_messageblks;

but it says:
ERROR:  syntax error at or near "like"
ZEILE 1: CREATE TABLE messageblks like dbmail_messageblks;
                                  ^

What's my error?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0660 / 415 65 31                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net                  Key-ID: 1C1209B4

Attachments:

  signature.asc (application/pgp-signature, 196B) download

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

* Re: CREATE TABLE docs question
@ 2009-02-17 11:57  Milen A. Radev <milen@radev.net>
  parent: Michael Monnerie <michael.monnerie@is.it-management.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Milen A. Radev @ 2009-02-17 11:57 UTC (permalink / raw)
  To: pgsql-admin

Michael Monnerie написа:
> http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html
> 
> Reading the docs, the following should work:
> 
> CREATE TABLE messageblks like dbmail_messageblks;
> 
> but it says:
> ERROR:  syntax error at or near "like"
> ZEILE 1: CREATE TABLE messageblks like dbmail_messageblks;
>                                   ^
> 
> What's my error?


Should be "CREATE TABLE messageblks (like dbmail_messageblks);"

-- 
Milen A. Radev




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

* Re: CREATE TABLE docs question
@ 2009-02-17 13:49  Michael Monnerie <michael.monnerie@is.it-management.at>
  parent: Milen A. Radev <milen@radev.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Monnerie @ 2009-02-17 13:49 UTC (permalink / raw)
  To: pgsql-admin

"Milen A. Radev" <milen@radev.net> schrieb:
> Should be "CREATE TABLE messageblks (like dbmail_messageblks);"

Thanks, works. Ah, and now I found the bracket in the docs. There are so
many I overlooked it, maybe also because that command looks a bit strange
(like patched);

mfg zmi





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


end of thread, other threads:[~2009-02-17 13:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-02-17 11:37 CREATE TABLE docs question Michael Monnerie <michael.monnerie@is.it-management.at>
2009-02-17 11:57 ` Milen A. Radev <milen@radev.net>
2009-02-17 13:49   ` Michael Monnerie <michael.monnerie@is.it-management.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