当前位置:首页 > 数据库 > 正文

postgresql新建插入存储过程

2020-03-02 数据库

begin

declare i int; 

i :=1;

for i in 1..10 loop

insert into table_name values (i,now());

i=i 1;

end loop;

end;

 

 

补充:

字符串变整数

ONVERT(‘123‘,SIGNED);

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/22790.html