Convert from Mysql to Postgresql - Mailing list pgsql-novice

From Brian Johnson
Subject Convert from Mysql to Postgresql
Date
Msg-id 00fa01c1b346$8ba7d800$3200a8c0@jecinc.on.ca
Whole thread Raw
Responses Re: Convert from Mysql to Postgresql  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-novice
Could someone tell me the SQL for an equivalent table in PostgreSQL?

CREATE TABLE palm_addressbook (
  cal_id int(11) NOT NULL default '0',
  account_id int(11) NOT NULL default '0',
  palm_rec_id int(11) NOT NULL default '0',
  PRIMARY KEY  (cal_id,account_id),
  UNIQUE KEY account_id (account_id,palm_rec_id)
) TYPE=MyISAM;


I think it would be

CREATE TABLE palm_addressbook (
  cal_id int4 NOT NULL default '0',
  account_id int4 NOT NULL default '0',
  palm_rec_id int4 NOT NULL default '0',
  PRIMARY KEY  (cal_id,account_id)
  );




pgsql-novice by date:

Previous
From: btt@nethouse.com
Date:
Subject: Re: C Function Question
Next
From: "Josh Berkus"
Date:
Subject: Re: Convert from Mysql to Postgresql