--定义变量
a numeric;
方式一:
select sqla into a from table1 where b = '1' ; --这是sql语句赋值
方式二:
sql1:= 'select a from table1 where b = ' '1' ' ';
execute sql1 into a; --这是执行存储函数赋值
postgresql存储函数/存储过程用sql语句来给变量赋值
阅读 134
2022-11-24
--定义变量
a numeric;
方式一:
select sqla into a from table1 where b = '1' ; --这是sql语句赋值
方式二:
sql1:= 'select a from table1 where b = ' '1' ' ';
execute sql1 into a; --这是执行存储函数赋值
相关推荐
精彩评论(0)