摘要:
Set serveroutput on; declare type my_ref_cur is ref cursor; tmp_cur my_ref_cur; sqlStr varchar2(500); v_row xuesheng%rowtype;begin sq... 阅读全文
摘要:
1. Set Serveroutput on; declare Cursor tem_cursor is select * from xuesheng xs; v_row tem_cursor%rowtype;begin open tem_... 阅读全文
摘要:
1.(隐式游标)从学生表里面查询xing_ming为1的找到就打印the Policy is updated successfully.否则打印the policy is updated failed.Set Serveroutput on; begin update xueshe... 阅读全文
摘要:
1,什么是游标?①从表中检索出结果集,从中每次指向一条记录进行交互的机制。②关系数据库中的操作是在完整的行集合上执行的。 由 SELECT 语句返回的行集合包括满足该语句的 WHERE 子句所列条件的所有行。由该语句返回完整的行集合叫做结果集。 应用程序,尤其是互动和在线应用程序,把完整的结... 阅读全文
摘要:
--建表create table xuesheng(id integer, xing_ming varchar2(25), yu_wen number, shu_xue number);insert into xuesheng values(1,'zhangsan',80,90);insert in... 阅读全文