人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

May 26, 2006

Create Table

Filed under: SQL&DB Accessing

IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N’[dbo].[_MyTable]’) AND type in (N’U'))

IF not exists (select * from dbo.sysobjects where id = OBJECT_ID(N’[dbo].[_MyTable]’) and OBJECTPROPERTY(id, N’IsUserTable’) = 1)
DROP TABLE [dbo].[_MyTable]
GO

CREATE TABLE [dbo].[_MyTable]
(
 [Test] [varchar](32)
)
GO

 

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/05/26/create-table/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham