Re: [pgadmin-support] hi
От | Hepworth, Mike |
---|---|
Тема | Re: [pgadmin-support] hi |
Дата | |
Msg-id | 560796A29B821F40A277973FB5EA3004034AC9@slexc1a.server.power.bellhow.com обсуждение исходный текст |
Список | pgsql-sql |
-----Original Message-----
From: lz John [mailto:oceanlz@yahoo.com.cn]
Sent: Thursday, October 17, 2002 1:07 AM
To: pgsql-sql-owner@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: [pgadmin-support] hii don't send mail to pgsql-sql@postgresql.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!?
"发短信赢手机,快来参加雅虎巨星秀!"
В списке pgsql-sql по дате отправления: