From: | lz John <oceanlz(at)yahoo(dot)com(dot)cn> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | hi |
Date: | 2002-10-16 03:11:42 |
Message-ID: | 20021016031142.34492.qmail@web15106.mail.bjs.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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 and must need the fuction that can check data table.
create table test(
test_name char (50) not null,
test_value int not null
)
thanks for any advice!!
---------------------------------
Do You Yahoo!?
雅虎娱乐新鲜到底,电子周报快乐到家!
From | Date | Subject | |
---|---|---|---|
Next Message | Nelson Yong | 2002-10-16 06:57:50 | How to create secondary key!! |
Previous Message | Tom Lane | 2002-10-15 21:06:58 | Re: int id's helpful for indexing, or just use text names? |