
数据库笔记
文章平均质量分 69
iteye_3789
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PLSQL(简单)
create or replace procedure xxx is maxrecords constant int := 2500000; i int := 1; begin for i in 1 .. maxrecords loop insert into LOYALTY_ACCOUNT (LOYALTY_ACCOUNT_NBR, ...原创 2011-06-20 20:33:00 · 168 阅读 · 0 评论 -
ORACLE
declare cursor emp_cursor is select empname,salary from employee for update; emp_record emp_cursor%rowtype; begin open emp_cursor; loop fetch emp_cursor into emp_r...原创 2011-12-22 13:25:04 · 89 阅读 · 0 评论 -
PostgreSQL
ORACLE 与 PostgreSQL 相异点 NO 问题点 Oracle PostgreSQL 1 DUAL SELECT 1+1 FROM DUAL SELECT 1+1 或者 CREATE VIEW dual AS SELECT 'X'::VARCHAR(1) AS DUMMY 再 SELECT 1+1 FROM DUAL 2 NEXTVAL SE...原创 2012-01-31 10:29:13 · 107 阅读 · 0 评论 -
SQLSERVER AND ORACLE
将公司系统从SqlServer 2K移植到Oracle 10g中的简要总结 时间: 2009-01-15 08:34来源: 博客园 阿修罗一平 点击: 次 公司有一个系统是基于SqlServer 2k,现在,应客户要求,移植到Oracle 10g数据库。代码的扩展极其easy,三下五除二,搞定。就是 在将数据从SqlServer 2k导入到Oracle 10g数据库中...原创 2012-03-09 10:34:50 · 106 阅读 · 0 评论 -
JDBC连接各种数据库的字符串大同小异,在此总结一下,备忘。
JDBC连接各种数据库的字符串大同小异,在此总结一下,备忘。 oracle driverClass:oracle.jdbc.driver.OracleDriver url:jdbc:oracle:thin:@127.0.0.1:1521:dbnamemysql driverClass:com.mysql.jdbc.Driver PS:有的时候,mysql的驱动类也也...原创 2014-05-04 19:20:12 · 80 阅读 · 0 评论 -
定位SQL出错位置
beginselect*from emp as t1 , dept t2where t1.COMM is not null exception when others do RAISE_APPLICATION_ERROR(-20601,'过程出错,出错记录'||相关的记录信息||Sqlerrm);end ;原创 2014-08-20 02:59:52 · 1834 阅读 · 0 评论 -
实验3种JDBC插入数据效率
[原]实验3种JDBC插入数据效率 import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; public class...原创 2015-01-13 18:44:05 · 126 阅读 · 0 评论