select /*+index_ffs(tn codeË÷ÒýÃû)*/ count(1) from t_tablename tn where tn.code like dep.depcode || '%' and round(to_number(tn.date1-tn.date2)* 1440) > 10 and tn.date1 < to_date('2009-12-30', 'yyyy-MM-dd') + 1 and tn.date1>= to_date('2009-12-1', 'yyyy-MM-dd')
ÎÒÔÚdate1ºÍcode2¸ö×Ö¶ÎÉ϶¼½¨ÓÐË÷Òý£¬¿ÉΪʲô£¬ËûÖ»×ßdate1Ë÷Òý£¬²»×ßcodeµÄË÷ÒýÄØ¡£ Èç¹ûÎÒ°Ñround(to_number(tn.date1-tn.date2)* 1440) > 10£¬Õâ¸öÌõ¼þ¸øÈ¥µô£¬Ëû¾Í»á×ßcodeºÍdate1Ë÷Òý¡£ tn.code like dep.depcode || '%'ÎÒÔÚд²âÊÔÓï¾äµÄʱºò£¬ÊÇÓÃtn.code like ¡®xx%¡¯µ«ÊÇÒ²²»ÐС£
ϸöOracle for vista °æ±¾µÄ°²×°ÊÔÊÔ 10GºÍ11GµÄ http://www.oracle.com/technology/software/products/database/index.html ------------------------------------------- ......
²éÁËÒ»ÌìµÄblob£¬»¹ÊÇûÀí½âµ½£¬ÎÒÏëÔÚVCÏ´æÈ¡¶þ½øÖƵÄÎļþ£¬Ê¹ÓõÄÊÇoo4o£¬ÕÕ×ŰïÖúÎĵµÉÏÃæµÄдÁËдÈëÊý¾Ý¿âµÄ´úÂ룬»¹ÊÇûд¶Ô£¬´íÎóÌáʾÊÇthis operation is not permitted on a empty LOB£¬ÕâÊÇʲôÒâ˼°¡£¿ÕÕ ......
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......