pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Charles Hauser <chauser@duke.edu>
To: PSQL_list <pgsql-sql@postgresql.org>
Subject: stored procedures: sybase -> postgreSQL ?
Date: 09 Sep 2002 14:15:53 -0400
Message-ID: <1031595353.774.55.camel@pandorina.biology.duke.edu> (raw)

I am trying to port a Sybase table create script to one usable for
postgreSQL.

(note I am not a DBA)

In particular I am not well versed on how to use/recode the stored
procedures such as that in the example below.

ALTER TABLE DnaFragment
        ADD PRIMARY KEY (dna_fragment_id)
go
 
 exec sp_primarykey DnaFragment,
       dna_fragment_id
go
 
 exec sp_bindrule DnaFragment_type_rule, 'DnaFragment.type'
 exec sp_bindefault Set_To_Current_Date,
'DnaFragment.date_last_modified'
 exec sp_bindefault Set_to_False, 'DnaFragment.is_obsolete'
go



regards,

Charles





view thread (3+ messages)  latest in thread

Message-ID: <1031595353.774.55.camel@pandorina.biology.duke.edu>
Permalink:  ../1031595353.774.55.camel@pandorina.biology.duke.edu/
Also on:    postgresql.org/message-id/1031595353.774.55.camel@pandorina.biology.duke.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: chauser@duke.edu
  Subject: Re: stored procedures: sybase -> postgreSQL ?
  In-Reply-To: <1031595353.774.55.camel@pandorina.biology.duke.edu>
  References: <1031595353.774.55.camel@pandorina.biology.duke.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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