dbTalk Databases Forums  

problem copying a table

comp.databases.postgresql comp.databases.postgresql


Discuss problem copying a table in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
HansH
 
Posts: n/a

Default Re: problem copying a table - 10-11-2006 , 08:52 AM






"Laurenz Albe" <invite (AT) spam (DOT) to.invalid> schreef in bericht
news:1160550550.964123 (AT) proxy (DOT) dienste.wien.at...
Quote:
HansH <hans (AT) somewhere (DOT) invalid> wrote:
Or it's a typo -( misplaced -: try
CREATE TABLE MyTable LIKE ( MyOldTable );

Your are guessing, right?
NO, and wrong the more :-(

CREATE TABLE new ( LIKE old ) INHERIT ( other, another )

This additon -per version 7.4- to CREATE TABLE does has its first ( placed
_before_ a keyword.
At first sight that looks odd, however these () normally enclose column
definition and that's what 'like ...' does here too.

ISC

HansH




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.