hi

From: lz John <oceanlz(at)yahoo(dot)com(dot)cn>
To: pgsql-sql-owner(at)postgresql(dot)org
Cc: pgsql-general(at)postgresql(dot)org
Subject: hi
Date: 2002-10-17 07:06:52
Message-ID: 20021017070652.93224.qmail@web15101.mail.bjs.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general


i don't send mail to pgsql-sql(at)postgresql(dot)org,but i need help

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]
go
*******************2*********************************
CREATE TABLE [admin].[test] (
[test_name] [char] (50) NOT NULL ,
[test_value] [int] NOT NULL
)
i can only realize part 2. i don't know how to realize part 1.in other words,
i want to know how to check if a table exist in postgresql
*******************2*********************************
create table test(
test_name char (50) not null,
test_value int not null
)
thanks for any advice!!

---------------------------------
Do You Yahoo!?
"发短信赢手机,快来参加雅虎巨星秀!"

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2002-10-18 13:39:43 Re: Trying To Use Migration Wizard...
Previous Message Ross J. Reedstrom 2002-10-16 16:10:32 Re: [ADMIN] Fast Deletion For Large Tables

Browse pgsql-general by date

  From Date Subject
Next Message Brett Elliott 2002-10-17 07:31:29 Re: Tutorial on postgreSQL
Previous Message Skip Queen 2002-10-17 06:05:51 Tutorial on postgreSQL