前端之家收集整理的这篇文章主要介绍了
自用的oracle数据库基础知识,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
oracle 的一些基础知识@H_404_1@
declare
i number := 0;
begin
for i in 1 .. 1000
loop
insert into REPORTROLE_PBS
values(to_char(i),'角色' || to_char(i),to_date('2017-1-7','yyyy-MM-dd'));
end loop;
commit;
end;
to_date('date',format);//
to_char(i) //装换为字符
to_number(i)//装换为数字