oracle clob 和blob问题的解决
oracle clob 和blob问题的解决
整理了oracle clob 和blob问题的解决办法:
1:建议使用oracle 10的ojdbc14.jar,否则当保存clob的时候可能会出现套接字错误;
2:spring配置如下:
java代码:
<bean id="sessionFactory" >
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="configLocation">
<value>classpath:hibernate.cfg
相关文档:
一、SQL的使用
CREATE、ALTER和DROP是主要的3种DDL语句,这些语句被用于在数据库中添加、修改或删除对象。
DCL语句包括GRANT和REVOKE命令,它们可以被用于为用户或角色授予或取消权限,可以被授予和取消的两种权限是系统权限和对象权限。取决于不同的对象类型,对象权限可能不同。
操纵或检索数据都需要使用DML语句。D ......
关键字
概念
类型
异常处理
一 概念
游标是SQL的一个内存工作区,由系统或用户以变量的形式定义。游标的作用就是用于临时存储从数据库中提取的数据块。在某些情况下,需要把数据从存放在磁盘的表中调到计算机内存中进行处理,最后将处理结果显示出来或最 ......
创建表的语法
-创建表格语法:
create table 表名(
字段名1 字段类型(长度) 是否为空,
字段名2 字段类型 是否为空
);
-增加主键
alter table 表名 add constraint 主键名 primary key (字段名1);
-增加外键:
alter table 表名
  ......
alter table Tablename add(column1 varchar2(20),column2 number(7,2)...)
比如:
已有表A,结构如下
字段名 类型
------------ -------------
A VARCHAR2(10)
B NUMBER
现在要增加 ......
原文:ORA-00600 internal error code, arguments: [string], [string], [string], [string], [string], [string], [string], [string]
Cause This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition. Causes of t ......