已采纳回答 / inverted_demon
set serveroutput ondeclarecursor guangbiao01 is select to_char(hiredate,'yyyy') FROM emp;hiredata VARCHAR2(4);a80 number:=0;a81 number:=0;a82 number:=0;a87 number:=0;beginopen guangbiao01;LOOPfetch guangbiao01 INTO hiredata;EXIT when guangbiao01%notfound...
2016-04-05
已采纳回答 / Lifing
1.检查哪些表的外键引用了要删除的表的唯一/主键. select A.* from user_constraints A, user_constraints B WHERE b.table_name = 'MYTEST' and a.constraint_type = 'R' and a.r_constraint_name = b.constraint_name;2.生成所有引用要删除表的外键的创建语句. select 'select...
2016-03-21
最新回答 / Go_勇往直前
试试这个,不用登录账号http://www.oracle.com/technetwork/cn/developer-tools/sql-developer/downloads/index.html
2016-03-18
已采纳回答 / 夕阳朝阳
计数器只初始化一次,光标是一个集合。在loop循环里边,每次循环取出一条记录,比如第一次循环,取出的记录是1980年的,那么count1就+1(由于count1初始值为0,所以此时count1的值1),然后就执行下一次循环(执行了if就不执行elsif和else了),第二次循环如果取出的还是1980年的,那count1就+1(此时count1的值为2).其它的计数器就不加。以此类推,一共循环14次。循环结束后,四个计数器都有值了
2016-03-17
最赞回答 / JesonWu
因为%notfound是根据最后一次fetch来判断的,因此当输出最后一条记录后,还会在输出最一条记录,即最后一条记录将输出2遍 最后一次循环将处理在"结果集最后一行"的下一行,该行为NULL,当fetch的时候PL/SQL将不会抛出异常,并且不会覆盖最后一次循环中赋予tempName的值,即tempName会保留最后一次被赋予的值。
2016-01-21
最新回答 / 刘康宁
Windows 8 (x64) - DVD 简体中文版文件名: cn_windows_8_x64_dvd_915407.isoSHA1: A87C4AA85D55CD83BAE9160560D1CB3319DD675Ced2k://|file|cn_windows_8_x64_dvd_915407.iso|3652950016|5C7F8C212BD3A1827866563773A431C2|/Windows 8.1 简体中文专业版64位SHA1:F79E0093DDEDD488F40D4AE6B6F0F...
2016-01-14