Oracle学习笔记6
一.游标
1)--do while循环
Declare
Cursor c is select * from emp;
V_emp c%rowtype;
Begin
Open c;
loop
Fetch c into v_emp;
Exit when (c%notfound);
Dbms_output.put_line(v_emp.ename);
End loop;
Close c;
End;
2)--while 循环
Declare
Cursor c is select * from emp;
V_emp c%rowtype;
Begin
Open c;
Fetch c into v_emp;
While (c%found) loop
&
相关文档:
SQL*PLus> desc emp;
名称 &nbs ......
自己在做这个程序的时候看过很多的资料,上网也查了不少的资料,可是多半说的是出神入化,云里雾里...不光看了不明白,而且是有明白一点的人,看了也变的有些模糊了。
这里我掩饰一套完整的java jdbc 连接Oracle9i的范例。
package com.lxh.dbcon;//打包
import ......
mysql 大对象存取:
类型一般应该用mediumblod,
blob只能存2的16次方个byte,
mediumblod是24次方,
一般来说够用了.longblob是32次方有些大.
MYSQL默认配置只能存1M大小的文件,要修改配置,WIN版本的在mysql.ini文件中
修改max_allowed_packet,net_buffer_length等几个参数,或直接SET GLOBAL va ......
我在把oracle数据导入sqlserver中时,发现在oracle中字段定义为唯一索引时,不同记录的此字段如果为空不被认为是重复的,但在sqlserver中如果此字段为唯一索引字段,不允许有2个以上的空值。郁闷。所以只好将sqlserver中的唯一索引字段手工修改为几个非空的值,但这样程序肯定要进行修改了。需要在程序中为此字段设置不重复 ......