执行以下脚本
use xlhhis
if col_length('hiszy_outhosp','image1') is null
alter table hiszy_outhosp add image1 varchar(50)
if col_length('hiszy_inhosp','image1') is null
alter table hiszy_inhosp add image1 varchar(50)
执行以下脚本
use xlhhis
if col_length('hiszy_outhosp','image1') is null
alter table hiszy_outhosp add image1 varchar(50)
if col_length('hiszy_inhosp','image1') is null
alter table hiszy_inhosp add image1 varchar(50)
转载于:https://www.cnblogs.com/cwfsoft/archive/2010/06/14/1758207.html