if exists (select * from syscolumns where name='level' and id=object_id('urgentlevel')) exec('update UrgentLevel set grade = level where grade is null') else print '不存在'