Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

mysqlºÍoracle·ÖÒ³×¢Òâµã

ÕâÀïÊ×ÏÈ˵ÏÂoracle·ÖÒ³²»Ïñmysql·ÖÒ³ÄÇô¼òµ¥Ö±½Ólimit ¾Í¿ÉÒÔÁË.
mysql£ºsql ="select * from talbe limit 0,10";
µÚÒ»¸öÊý±íʾϱ꣬¾ÍÊÇ´ÓµÚ¼¸ÌõÊý¾Ý¿ªÊ¼£¬
µÚ¶þ¸öÊý±íʾÿҳÏÔʾ¶àÉÙÌõÊý¾Ý£¬¿ÉÒÔ˵Êǵ±ÄãÈ·¶¨Ã¿Ò³ÏÔʾ¶àÉÙÐÐʱºò£¬Ëü¾ÍÊÇÒ»¸ö¹Ì¶¨µÄÊý¡£
ÕâÀïÐèҪעÒâµÄÊÇ£¬mysqlµÄ·ÃÎÊϱêÊÇ´Ó0¿ªÊ¼µÄ¡£Õâ¸öÒ»¶¨Òª¼Çס¡£
ÏÂÃæ˵˵oracle£¬oracleµÄ·ÖÒ³¾Í±È½ÏÂ鷳ЩÁË.
oracleÊÇûÓÐid×ÔÔö³¤µÄ£¬ÎÒÃÇÒªÊ×ÏÈÒª¶ÔÎÒÃÇ×Ô¼ºÔÚ±í×Ô½¨µÄid´´½¨¸öÐòÁÐ
select * from table(Book) order by B_id //µÚÒ»²½Ê²Ã´ÄØ£¿
ÎÒoracle±íÖеÄB_idÏÈ
°´ÕÕarder by ÅÅÐòÏ£¬¾ÍÊÇÔÚoracleÖÐÊÇûÓÐid×ÔÔö³¤µÄ£¬ÖмäÈÝÒ׳öÏֶϲã
µÚ¶þ²½
ÎÒÃÇ°ÑÉÏÃæµÄµÚÒ»¸öµÄÓï¾ä×÷Ϊһ¸öÌõ¼þÓÃÀ¨»¡À¨ÆðÀ´,ÄÇôµÚÒ»¸ösqlÓï¾äÏ൱ÓÚÒ»¸öÊÓͼ£¬ÎÒÃÇΪÁË·½±ã£¬ÔÚ¸øËûÒ»¸ö±ðÃû¡£m¾ÍÊÇÕâ¸öÊÓͼµÄ±ðÃû,
ÕâÀïÎÒÃÇÖªµÀoracleÀïÃæÅÅÐòʱͨ¹ý“rownum”µÄ¹Ø¼ü×Ö£¬ÎÒÃÇÒ²¸øËûÆð¸ö±ðÃû½Ðrn,¾ÍÊǺóÃæαÁеÄÃû×Ö£»
ÕâÑùÎÒÃÇÖ´ÐÐÏÂÃæµÄÓï¾ä£¬»á²úÉúÒ»¸öαÁУ¬rn£¬µ±È»Ò»¸öαÁкÍB_idÊDz»Ò»ÑùµÄ
B_id»á³öÏÖÁÑ·ì,¶Ï²ã,µ«ÊÇÕâ¸öαÁÐÊDz»»áµÄ¡£¼´±ãB_idÖмä¶Ï²ã£¬rnÕâ¸öαÁÐÓÀÔ¶
ÊÇ°´ÕÕ1,2,3,...10....ÅÅÐòµÄ£¬¶øÇÒÊÇ×ÔÔö³¤µÄ¡£
ÆäʵÔÚoracleÀïÃæ½øÐÐÕæ·ÖÒ³£¬oracle¾ÍÊÇ°´ÕÕαÁÐʵÏֵġ£
select m.*,ROWNUM rn from (select * from table(Book) order by B_id ) m
µÚÈý²½
ÎÒÃÇÒª×öµÄ»¹ÊǺ͵ڶþ²½µÄ²î²»¶à£¬ÎÒÃÇ»¹ÊÇÒª°Ñ¸Õ²ÅµÄÓï¾ä×÷Ϊһ¸öÌõ¼þ£¬ÓÃÀ¨»¡
À¨ÆðÀ´,ºóÃæ¼ÓwhereÌõ¼þ between and αÁдÓÄǵ½ÄÇ,Õâ¸öÖ÷Òª¶ÔrnαÁеIJÙ×÷¡£
ÕâÀïºÍmysqlÇø±ðÊÇÓеã´óµÄ¡£
select * from (select m.*,ROWNUM rn from (select * from table(Book) order by B_id ) m)rn where between 1 and 10;
µ±È»Ð´·¨ºÜ¶à²»Ö»Ò»ÖÖ
select * from (select m.*,ROWNUM rn from (select * from table(Book) order by B_id ) m where ROWNUM <=10)where rn>=1 ;
ºóÃæµÄËã·¨Òª¸ßЩ¡£
¸öÈ˱ʼDz»¶Ï¸ÄÉÆ....лл


Ïà¹ØÎĵµ£º

ORACLE Êý¾Ý¿â×Ô¶¯±¸·Ý½Å±¾

#! /bin/bash
if  [ -f ~/.bashrc ];then
. ~/.bash_profile
fi
export script=/home/oracle/script
export bakdata_destination=/u02/rman_backup/data
export baklog_destination=/u02/rman_backup/log
export datadir=`date +'%Y_%m_%d'`
export days=`date +'%w'`
if ! test -d $script
then
 &nb ......

¸÷λÀ´¿´¿´£ºMySQL´´Ê¼ÈË·¢ÓʼþÑ°ÇóÖйú°ïÖú!

ÔÚJavaEye¿´µ½ÒÔϵÄÄÚÈÝ£¬Á´½ÓµØÖ·£ºhttp://www.javaeye.com/news/13062-mysql£¬Ï£Íûϲ°®MySqlµÄÅóÓÑÃÇÒ»ÆðÖ§³Ö¡£
ÇëÔ¸ÊéµØÖ·£ºhttp://helpmysql.org/cn/petition
Ç×°®µÄÕü¾ÈMySQLµÄÖйúÇ©ÃûÖ§³ÖÕß:
    Å·ÃË¿ÉÄÜÎÞ·¨Õü¾ÈMySQL, ÖйúºÍ¶íÂÞ˹¿ÉÄÜÊÇÕü¾ÈMySQLµÄÏ£ÍûÖ®ËùÔÚ¡£ÖйúÓµÓÐÇ¿´ó¡¢¶ÀÁ¢ÒÔ¼°×ÔÐŵ ......

Quick Test Setup of MySQL Cluster


To familiarize you with the basics, we will describe the simplest
possible configuration for a functional MySQL Cluster. After this,
you should be able to design your desired setup from the
information provided in the other relevant sections of this
chapter.
......

MySQL Cluster Configuration — Basic Example


To support MySQL Cluster, you will need to update
my.cnf
as shown in the following example.
You may also specify these parameters on the command line when
invoking the executables.

Note
The options shown here should not be confused with thos ......

¹ØÓÚMysqlÊÇ·ñÂú×ãC2¼¶µÄÌÖÂÛ


====================================================
Òý×Ô£ºhttp://blog.sina.com.cn/s/blog_538a9d1901008f9g.html
ʲôÊÇC2¼¶°²È«ÐÔ£¿°²È«ÐԵķÖÀàÊÇÔõÑùµÄ£¿(2008-01-30 17:04:39)
  
DÀࣺ×îµÍ±£»¤£¬±£Áô¸ø²»ÄÜͨ¹ý¸ü¸ß¼¶±ð¼ì²éµÄϵͳ
C1£º½÷É÷±£»¤£¬ÒªÇóÓлùÓÚÓû§¼¶±ðµÄ¿ØÖÆÀ´±£»¤Êý¾Ý£¬Ö÷Òª·ÀÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ