【发布时间】:2012-04-29 07:50:41
【问题描述】:
我需要检查一个条件。即:
if (condition)> 0 then
update table
else do not update
end if
是否需要使用 select into 将结果存储到变量中?
例如:
declare valucount integer
begin
select count(column) into valuecount from table
end
if valuecount > o then
update table
else do
not update
【问题讨论】: