Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgadmin-supportpgsql-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!?
"发短信赢手机,快来参加雅虎巨星秀!"

pgadmin-support by date

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

pgsql-general by date

Next:From: Brett ElliottDate: 2002-10-17 07:31:29
Subject: Re: Tutorial on postgreSQL
Previous:From: Skip QueenDate: 2002-10-17 06:05:51
Subject: Tutorial on postgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group