摘要: package com.castalia.market.blh.impl;import java.io.Serializable;import java.net.URL;import java.sql.Timestamp;import java.util.ArrayList;import java.... 阅读全文
posted @ 2015-07-20 16:43 linbl 阅读(743) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE PROCEDURE ASSIGN_package_prize(arr in varchar_array, oldtypeid in varchar_array, CID NUMBER,numArr in varchar_array,FLAG NUMBER,Serv... 阅读全文
posted @ 2015-07-20 16:40 linbl 阅读(194) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE PROCEDURE Campaignprize_hash( ServerNum number, RETVAL OUT VARCHAR2) ISRNum number(6);SIndex number(2);hashcodd VARCHAR2(8);flag num... 阅读全文
posted @ 2015-07-20 16:39 linbl 阅读(205) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE PROCEDURE Campaignprize_range( CampaignIdd NUMBER,PrizeTypeIdd NUMBER,ServerIndex VARCHAR2, RETVAL OUT VARCHAR2) IS hashcoded VARCH... 阅读全文
posted @ 2015-07-20 16:36 linbl 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Oracle数组类型Oracle的数组类型,范例:Sql代码 create or replace function my_test(p_str varchar2) return number as--普通变量 v_var varchar2(1000); --固定长度数组 type v_ar is v... 阅读全文
posted @ 2015-07-13 15:14 linbl 阅读(776) 评论(0) 推荐(0) 编辑
摘要: CREATE OR REPLACE PROCEDURE Campaignprize_range( CampaignIdd NUMBER,PrizeTypeIdd NUMBER,ServerIndex VARCHAR2, RETVAL OUT VARCHAR2) IS hashcoded VARCH... 阅读全文
posted @ 2015-07-09 17:14 linbl 阅读(1495) 评论(0) 推荐(0) 编辑
摘要: 大型网站面临的问题:海量数据处理大型网站每天的数据量可能上百万,甚至上千万或更多。如果存在设计不好的多对多关系,在前期可能没有任何问题,但是随着用户增长,数据量会以几何级数增加。此时,对于一个表的select和update(还不用说多表联合查询)的成本是非常高的。数据并发处理死锁在高并发情况下存在的... 阅读全文
posted @ 2015-06-17 17:49 linbl 阅读(720) 评论(0) 推荐(0) 编辑
摘要: declare --类型定义 strsql string(500); type prizeinfo is record( prizecode VARCHAR2(200), prizetypeid number, prizenam... 阅读全文
posted @ 2015-06-11 13:33 linbl 阅读(353) 评论(0) 推荐(0) 编辑
摘要: declare --类型定义 strsql string(500); v_ErrorCode NUMBER; -- Variable to hold the error message code v_ErrorText VARCHAR2(200); -- Variable to hold the ... 阅读全文
posted @ 2015-06-10 12:56 linbl 阅读(911) 评论(0) 推荐(0) 编辑
摘要: declareforInt number(18);seqnum number(18);begin for forInt in 1..20000 loop select seq_forum.nextval into seqnum from dual; insert into frm_answer (... 阅读全文
posted @ 2015-06-10 11:24 linbl 阅读(387) 评论(0) 推荐(0) 编辑