oracleÈçºÎʵÏÖ´ø²ÎÊýµÄ·ÖÒ³²éѯ
ÇëÎÊÔÚoracleÖÐÈçºÎʵÏÖЧ¹û¾ÍÏñÔÚSQL ServerÖÐ"select top " + pageSize + " * from tb_user where id not in (select top " + curPage*pageSize + " id from tb_user) and units_id=1"Õâ¸ö¾ÍÄÜÈ¡³ö·ûºÏÌõ¼þµÄÇ°pageSizeÌõÐÅÏ¢(pageSizeÿҳÏÔʾÌõÊý£¬curPageµ±Ç°Ò³Êý)
Âé·³ËÄÜ°ïÎÒд¸öÀý×ÓÂð£¿Ð»Ð»ÁË
http://bbs.inthirties.com/thread-155-1-1.html
ÎÒÊÇÒªÔÚVS2005Àï²Ù×÷oracle£¬È»ºóÔÚÍøÒ³É϶¯Ì¬ÏÔʾ£¬ÕâÑùµÄ»°²éѯӦ¸ÃÔõôдÄØ£¿
°ÝÍÐÁË£¬°ÝÍÐÁË
select * from tb where rownum <=@rowCount order by ziduan desc
Ïà¹ØÎÊ´ð£º
ÎÒÏÖÔÚÓÐһЩsasÉÏÃæµÄÊý¾ÝÎļþ ÏÖÔÚÎÒÐèÒª°Ñsasµ¼Èëµ½oracle
ÏÖÔÚ°ÑÒ»¸ösasÎļþµ¼Èëµ½Ò»¸öoracleÖеÄÒ»¸ö±íÖÐÎÒÒѾ֪µÀÔõôŪÁË
µ«ÊÇ ÎÒÏÖÔÚÐèÒª°ÑsasÖеÄÁíÒ»¸öÎļþ×·¼Óµ½oracleÖеÄÒ»¸öÓÐÊý¾ÝµÄÒ»¸ö±íÉÏà ......
ÔÚlomboz eclipseÖеÄwindow->show view->others->ÖеÄÔõÑù¼ÓÈëconnectivityÖеÄdata sourceÖÐÁ¬½ÓoracleʱֻÓÐ8,9,10ÕâÈý¸ö°æ±¾£¬ÔõÑù²ÅÄÜÁ¬½Óoracle11Õâ¸ö°æ±¾ÄØ£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿£¿
¸½Í¼Æ¬ ......
¸÷´óÀÏʦºÃ£¬Çë½ÌÒ»¸öÎÊÌ⣮
ÎÒÉèÖÃÁËÒ»¸öoracle×ֶΣ¬varchar(3000),È»ºó²åÈëÒ»ÌõÊý¾Ý³¤¶È²Å1000,¾Í±¨´íÁË£®È磺net.sf.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
Caused ......
±¾À´ÒªÐ´¸öupdateÓï¾ä
update table_a A
set A.flag=1
where A.id in (select B.id from table_b B)
½á¹ûÎóд³É
update table_a A
set A.flag=1
where ......