sql 如何判断一个表是否存在
IF EXISTS(SELECT * FROM sysobjects WHERE id=object_id('catelement') AND OBJECTPROPERTY(id,'IsUserTable') = 1)
SELECT ' yes 'ELSE
SELECT 'no'
创建新表
create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)
增加一个列
Alter table tabname add column col type