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


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: (view raw or whole 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
if exists (select * from sysobjects 
where id = object_id(N'[admin].[test]') and 
OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [admin].[test] 
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 other words,
i want to know how to check if a table exist in postgresql
  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-2015 The PostgreSQL Global Development Group