在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
SqlConnection conn = new SqlConnection(); conn.ConnectionString = ""; conn.Open(); SqlCommand cmd = new SqlCommand(); cmd.Connection = conn; cmd.CommandText = " if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[user]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[user] create table user(id int,name nvarchar(8) )"; cmd.ExecuteNonQuery(); |
请发表评论