判断数据库中是否存在某表以及表书否存在某字段的sql语句:
--检查数据库是否存在表 --1.0 select * from sys.tables where name='流程实例表'; --2.0 select * from dbo.sysobjects where id = object_id(N'流程实例表')and OBJECTPROPERTY(id, N'IsUserTable') = 1; --检查数据库是否存在字段 --1.0 select * from syscolumns where id=object_id('流程实例表') and name='流程实例编号'; --2.0 select * from information_schema.columns where table_name='流程实例表' and column_name='流程实例编号';