Oracle·ÖÒ³´æ´¢¹ý³Ì¼°javaµÄ¾ßÌåµ÷Ó÷½·¨
--°ü
create or replace package pkg_query as
type cur_query is ref cursor;
end pkg_query;
--¹ý³Ì
CREATE OR REPLACE PROCEDURE "PRC_QUERY" (p_tableName
in varchar2, --±íÃû
p_strWhere in varchar2, --²éѯÌõ¼þ
p_orderColumn in varchar2, --ÅÅÐòµÄÁÐ
p_orderStyle in varchar2, --ÅÅÐò·½Ê½
p_curPage in out Number, --µ±Ç°Ò³
p_pageSize in out Number, --ÿҳÏÔʾ¼Ç¼ÌõÊý
p_totalRecords out Number, --×ܼǼÊý
p_totalPages out Number, --×ÜÒ³Êý
v_cur out pkg_query.cur_query) --·µ»ØµÄ½á¹û¼¯
IS
v_sql VARCHAR2(1000) := ''; --sqlÓï¾ä
v_startRecord Number(4); --¿ªÊ¼ÏÔʾµÄ¼Ç¼ÌõÊý
v_endRecord Number(4); --½áÊøÏÔʾµÄ¼Ç¼ÌõÊý
BEGIN
--¼Ç¼ÖÐ×ܼǼÌõÊý
v_sql := 'SELECT TO_NUMBER(COUNT(*)) from ' || p_tableName || ' WHERE 1=1';
IF p_strWhere IS NOT NULL or p_strWhere <> '' THEN
v_sql := v_sql || p_strWhere;
END
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
/*import javax.swing.JFrame;*/
/*import javax.swing.JOptionPane;*/
public class TestFrame{
public static void main(String[] args) throws Exception{
/*JFrame frame1 = new JFrame();
frame1.setTitle("Windows 1");
frame1.setSize(200,150);
frame1.setLocation(200,100);
frame1.setD ......
javaÖÐÏà¶Ô·¾¶£¬¾ø¶Ô·¾¶ÎÊÌâ×ܽá
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡————bohemia(³Ç)
ǰÑÔ£º
ǰһ¶Îʱ¼ä£¬ÓÉÓÚÔÚ´¦ÀíWebÓ¦ÓÃϵÄÎļþ´´½¨ÓëÒÆ¶¯µÈ£¬Òò´ËÉæ¼°µ½ºÜ¶à¹ØÓÚjava
ÖÐÏà¶Ô·¾¶£¬¾ø¶Ô·¾¶µÈÎÊÌ⡣ͬʱ£¬¶ÔÓÚWebÓ¦ÓÃÖеÄÏà¶Ô·¾¶£¬¾ø¶Ô·¾¶£¬ÒÔ¼°Java.io.File
ÀàѧϰÁËһϡ ......
ÌùÔÚÎÒÃǶàÏß³Ì Java ±à³ÌÂÛ̳ÉÏ×î³£¼ûµÄÎÊÌâÖ®Ò»ÊÇ“ÔõÑù´´½¨Ï̳߳أ¿”¡£¼¸ºõÔÚÿ¸ö·þÎñÆ÷Ó¦ÓóÌÐòÖж¼»á³öÏÖÏ̳߳غ͹¤×÷¶ÓÁÐÎÊÌâ¡£±¾ÎÄÖУ¬Brian Goetz ̽ÌÖÁËÏ̳߳ص͝»ú¡¢Ò»Ð©»ù±¾ÊµÏֺ͵÷Óż¼ÊõÒÔ¼°Ò»Ð©Òª±ÜÃâµÄ³£¼ûΣÏÕ¡£
ΪʲôҪÓÃÏ̳߳أ¿
ÖîÈç Web
·þÎñÆ÷¡¢Êý¾Ý¿â·þÎñÆ÷¡¢Îļþ·þÎñÆ÷»òÓÊ ......
×î½üÔÚCSDN£¬¿´µ½ÁËÒ»µÀȤζÌ⣺123456789Õâ¾Å¸ö°´Ë³ÐòÅÅÁеÄÊý£¬ÒªÇóÔÚËüÃÇÖ®¼ä²åÈëÈô¸É¸ö+£¬-£¬*£¬/ £¬Ê¹Æä½á¹ûÕýºÃµÈÓÚ
100È磺1*2*3*4+5+6+7*8+9=100¡£
¿´ÁËÌâÄ¿ºó£¬Ë¼¿¼Èç¹ûÓÃjavaÈçºÎʵÏÖ¡£ÒÔÏÂÊÇÎҵĽâÌâ˼·£º
˼Ïë±È½Ï¼òµ¥£¬ÏȽ«²åÈë+£¬-£¬*£¬/ºóµÄËùÓÐ×Ö·û´®¶¼Çî¾Ù³öÀ´£¬È»ºó¼ÆËãÄÄЩ×Ö·û´®µÈÓÚ100¡£
Õ ......