摘要:
功能:采用存储过程、type组合来实现批量入库,以节省系统开销,提高效率。sql脚本: 1)View Code 1 CREATE OR REPLACE TYPE WANGCHY.t_cableLine_point AS OBJECT2 (3 ID NUMBER(10),4 CABLELINEID NUMBER(10),5 ROADPOINTID NUMBER(10),6 ORDERNUM NUMBER(10),7 REMARK NUMBER(10)8 ) 2)View Code 1 CREATE OR REPLACE TYPE WANGCHY.ARRAY_cableL... 阅读全文
摘要:
View Code 1 package com.test.suanfa; 2 3 public class BinaryTreeTest{ 4 public static void main(String args[]){ 5 6 BinaryTreeTest b = new BinaryTreeTest(); 7 int data[] = { 12, 11, 34, 45, 67, 89, 56, 43, 22, 98 }; 8 BinaryTree root = new BinaryTree(data[0]); ... 阅读全文
摘要:
View Code 1 package com.test.suanfa; 2 3 public class Maopao { 4 public static void main(String[] args) { 5 Maopao sort = new Maopao(); 6 int[] arr= new int[]{7,22,11,5,400,99,20,22,5}; 7 sort.sort(arr); 8 for(int i : arr) 9 System.out.print(i+",");1... 阅读全文
摘要:
View Code 1 package com.test.suanfa; 2 3 public class QuickSoft { 4 5 private void swap(int a[], int i, int j) { 6 int tmp = a[i]; 7 a[i] = a[j]; 8 a[j] = tmp; 9 }10 11 private int partition(int a[], int p, int r) {12 int point = a[r];13 // 将小于等... 阅读全文