来源:自学PHP网 时间:2015-02-03 17:41 作者: 阅读:次
[导读] oblog_4.6_SQL 语句...
NEWSZW_HZH_BEGIN-->
复制代码 代码如下: if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ob_calendar]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[ob_calendar] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Oblog_Verifiydata]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[Oblog_Verifiydata] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oBlog_usertags]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oBlog_usertags] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_Album]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_Album] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_AlbumComment]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_AlbumComment] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_Special]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_Special] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_SpecialList]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_SpecialList] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_admin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_admin] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_argue]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_argue] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_arguelist]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_arguelist] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_blogstar]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_blogstar] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_blogteam]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_blogteam] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_calendar]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_calendar] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_comment]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_comment] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_config]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_config] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_digg]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_digg] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_friend]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_friend] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_friendurl]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_friendurl] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_groups]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_groups] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_log]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_log] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_logclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_logclass] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_logvotes]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_logvotes] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_message]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_message] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_myurl]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_myurl] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_notdownload]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_notdownload] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_obcodes]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_obcodes] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_pm]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_pm] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_roles]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_roles] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_setup]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_setup] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_skinclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_skinclass] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_subject]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_subject] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_syslog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_syslog] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_sysskin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_sysskin] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_tags]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_tags] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_team]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_team] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_teampost]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_teampost] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_teamskin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_teamskin] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_teamusers]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_teamusers] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_trackback]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_trackback] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_upfile]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_upfile] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_url]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_url] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_user]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_user] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_userclass]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_userclass] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_userdigg]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_userdigg] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_userdir]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_userdir] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[oblog_userskin]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[oblog_userskin] GO CREATE TABLE [dbo].[Oblog_Verifiydata] ( [id] [int] IDENTITY (1, 1) NOT NULL , [ask] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [answer] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [addtime] [smalldatetime] NULL , [isP] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oBlog_usertags] ( [UserTagid] [int] IDENTITY (1, 1) NOT NULL , [TagId] [int] NULL , [Userid] [int] NULL , [logid] [int] NULL , [iNum] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_Album] ( [photoID] [int] IDENTITY (1, 1) NOT NULL , [userID] [int] NULL , [photo_Name] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [photo_path] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [photo_size] [int] NULL , [photo_Title] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [photo_Readme] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [TeamID] [int] NULL , [isBigHead] [int] NULL , [isHide] [int] NULL , [sysClassId] [int] NULL , [userClassId] [int] NULL , [photo_width] [int] NULL , [photo_height] [int] NULL , [addtime] [smalldatetime] NULL , [fileID] [int] NULL , [commentnum] [int] NULL , [isencomment] [int] NULL , [views] [int] NULL , [Is_Album_default] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_AlbumComment] ( [mainid] [int] NULL , [comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [comment_user] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [commenttopic] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [userid] [int] NULL , [addip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [homepage] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [isguest] [int] NULL , [iState] [int] NULL , [isdel] [int] NULL , [teamid] [int] NULL , [commentid] [int] IDENTITY (1, 1) NOT NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_Special] ( [specialid] [int] IDENTITY (1, 1) NOT NULL , [s_name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [s_ico] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [s_count] [int] NULL , [s_abstract] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [s_creater] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [s_addtime] [datetime] NULL , [isActive] [int] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_SpecialList] ( [id] [int] IDENTITY (1, 1) NOT NULL , [SpecialId] [int] NULL , [UserId] [int] NULL , [author] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [logid] [int] NULL , [topic] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [abstract] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [ispass] [int] NULL , [istop] [int] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_admin] ( [id] [int] IDENTITY (1, 1) NOT NULL , [username] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [password] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [lastloginip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [lastlogintime] [datetime] NULL , [logintimes] [int] NULL , [roleid] [int] NULL , [userid] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_argue] ( [argueid] [int] IDENTITY (1, 1) NOT NULL , [a_ico] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [topic] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [abstract] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [content] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [action1] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [action2] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [ico1] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [ico2] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [userid] [int] NULL , [idays] [int] NULL , [istate] [int] NULL , [finishtime] [datetime] NULL , [finish_content] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [users] [int] NULL , [pass_manager] [int] NULL , [pass_time] [datetime] NULL , [over_manager] [int] NULL , [over_time] [datetime] NULL , [over_contet] [nvarchar] (200) COLLATE Chinese_PRC_CI_AS NULL , [over_score] [int] NULL , [system_overivew] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [actions] [int] NULL , [actions1] [int] NULL , [actions2] [int] NULL , [actions3] [int] NULL , [istop] [int] NULL , [username] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_arguelist] ( [id] [int] IDENTITY (1, 1) NOT NULL , [argueid] [int] NULL , [userid] [int] NULL , [author] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [content] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [action] [int] NULL , [addtime] [datetime] NULL , [addip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [rejoin] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_blogstar] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [userid] [int] NULL , [userurl] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [picurl] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [info] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [blogname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [ispass] [int] NULL , [username] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [usernickname] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_blogteam] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [mainuserid] [int] NULL , [otheruserid] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_calendar] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [userid] [int] NULL , [calendar_month] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_comment] ( [commentid] [int] IDENTITY (1, 1) NOT NULL , [mainid] [int] NULL , [comment] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [comment_user] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [commenttopic] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [userid] [int] NULL , [addip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [homepage] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [isguest] [int] NULL , [iState] [int] NULL , [ubbedit] [int] NULL , [isdel] [int] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_config] ( [id] [int] NOT NULL , [ob_value] [ntext] COLLATE Chinese_PRC_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_digg] ( [did] [int] IDENTITY (1, 1) NOT NULL , [userID] [int] NULL , [diggid] [int] NULL , [addtime] [smalldatetime] NULL , [logid] [int] NULL , [addip] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [isguest] [int] NULL , [authorid] [int] NULL , [username] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [diggtype] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_friend] ( [id] [int] IDENTITY (1, 1) NOT NULL , [userid] [int] NULL , [friendid] [int] NULL , [addtime] [datetime] NULL , [isblack] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_friendurl] ( [urlid] [int] IDENTITY (1, 1) NOT NULL , [userid] [int] NULL , [urlname] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [ordernum] [int] NULL , [urlType] [int] NULL , [url] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [logo] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_groups] ( [groupid] [int] IDENTITY (1, 1) NOT NULL , [g_name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_level] [int] NULL , [g_points] [int] NULL , [g_autoupdate] [int] NULL , [g_style] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_seconddomain] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_domain] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_obcodes] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_classes] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_post_day] [int] NULL , [g_post_chk] [int] NULL , [g_post_script] [int] NULL , [g_skins] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_skin_edit] [int] NULL , [g_skin_script] [int] NULL , [g_qq_number] [int] NULL , [g_mod_address] [int] NULL , [g_mod_zhai] [int] NULL , [g_mod_argue] [int] NULL , [g_mod_note] [int] NULL , [g_mod_meet] [int] NULL , [g_up_types] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [g_up_size] [int] NULL , [g_up_space] [int] NULL , [g_up_watermark] [int] NULL , [g_is_password] [int] NULL , [g_pm_numbers] [int] NULL , [g_ad_sys] [int] NULL , [g_ad_user] [int] NULL , [g_members] [int] NULL , [is_code_addblog] [int] NULL , [oneday_update] [int] NULL , [in_group] [int] NULL , [g_mailpost] [int] NULL , [g_download] [int] NULL , [g_getpwd] [int] NULL ) ON [PRIMARY] GO CREATE TABLE [dbo].[oblog_log] ( [logid] [int] IDENTITY (1, 1) NOT NULL , [topic] [nvarchar] (255) COLLATE Chinese_PRC_CI_AS NULL , [logtext] [ntext] COLLATE Chinese_PRC_CI_AS NULL , [userid] [int] NULL , [authorid] [int] NULL , [author] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [addtime] [datetime] NULL , [truetime] [datetime] NULL , [addip] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [iis] [int] NULL , [face] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [commentnum] [int] NULL , [classid] [int] NULL , [subjectid] [int] NULL , [showword] [int] NULL , [ishide] [int] NULL , [ispassword] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [trackbacknum] [int] NULL , [passcheck] [int] NULL , [istop] [int] NULL , [isbest] [int] NULL , [isencomment] [int] NULL , [blog_password] [int] NULL , [tbUrl] [ntext] COLLATE&nbs |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com