Re: help!

From: Horst Herb <subscriptions(at)gnumed(dot)net>
To: "John Geng" <lanlz(at)sina(dot)com>
Subject: Re: help!
Date: 2002-10-19 00:22:44
Message-ID: 200210191022.44280.subscriptions@gnumed.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, 16 Oct 2002 19:15, John Geng wrote:
> how to migrate sql from MS sql server to postgresql?
> i'd like to tranfer sql schema from MS server
> Example:
> *******************1*********************************
> if exists (select * from sysobjects
> where id = object_id(N'[admin].[test]') and
> OBJECTPROPERTY(id, N'IsUserTable') = 1)
> drop table [admin].[test]

if exists (select * from pg_tables where tablename = '<your table name goes
here')

might be what you are looking for

Horst

In response to

  • help! at 2002-10-16 09:15:19 from John Geng

Browse pgsql-sql by date

  From Date Subject
Next Message jm 2002-10-19 02:16:04 Re: isAutoIncrement and Postgres
Previous Message Roberto Mello 2002-10-18 22:29:11 Re: functions that return a dataset or set of rows