做数据库,做表,做数据准备工作等

来源:互联网 发布:java判断对象为空 编辑:程序博客网 时间:2024/04/29 12:04

1.判断表、临时表是否存在

1.1
if object_id(N'cf_bossitem',N'U') is not null print '存在' else print '不存在'
1.2
if object_id(N'tempdb..#temp1',N'U') is not null print '存在' else print '不存在'


2.修改列数据类型

alter table cf_bossitem alter column CreateUserID nvarchar(50) not null

0 0
原创粉丝点击