我正在sybase中运行以下sql代码
Declare @cp int
select @cp = count(*) from syscolumns where id = object_id('activ') and name = 'pending'
if (@cp = 0 )
begin
execute("
ALTER TABLE activ ADD pending char(1) DEFAULT 'Y'
")
print 'pending added '
end
当我第一次运行时,我得到一个“警告:表Activ的模式已更改。在该表上使用if update子句删除并重新创建每个触发器”
在随后的运行中,我不再收到此警告。有什么方法可以避免第一次收到此警告?
我经历了一些有用的链接。 1 Information about the error itself。我仍然不知道如何删除该错误/警告。