sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001'
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6Ã룬ȥµôÈÎÒâÒ»Ìõ¼þºó£¬ÈçÏ£º
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 '
Õâ¸öÖ´ÐÐʱ¼ä0.015Ãë¡£
×¢£ºÉÏÃæµÄSQLÓï¾äÊÇhibernate×Ô¶¯Éú³ÉµÄ¡£
ÔÙ¿´¿´ÕâÑùÒ»¸öSQL,×Ô¼ºÐ´µÄ¡£²éѯ½á¹ûÓëµÚÒ»¾äSQLÍêÈ«Ò»Ñù¡£µ«²éѯʱ¼äÏà¹ØÉõÔ¶¡£
select * from fx_returnbookchecklist where returnid='00025.S0000001' and bookid='164'
Õâ¸öÖ»Ðè0.031Ãë¡£
Çë´ó¼Ò°ïæ·ÖÎöÕâÊÇʲôÔÒòµ¼Öµģ¿£¿ÊDz»ÊÇhibernate?
returnbookchecklist ±íÓжàÉټǼ£¿
Âú×ãÌõ¼þreturnid='00025.S0000001' and bookid='164'ÓжàÉټǼ£¿
returnbookchecklistÓÐÊý¾Ý70¶àÍò£¬Âú×ãÌõ¼þreturnid='00025.S0000001' and bookid='164'ÓÐ1Ìõ¼Ç¼£¬Õâ¸öÎÊÌâÒѽâ¾ö£¬¿Õ¸ñÔì³É£¬µ«ÊÇеÄÒ»¸öÎÊÌâÓÖ³öÀ´ÁË¡£
select b.returnid
from fx_returnbookchecklist b
where b.returnid='00025.S0000001'
ÕâÑùÒ»¸öSQL²éѯËÙ¶È0.047Ã룬
select b.scale
from fx_returnbookchecklist b
where b.returnid='00025.S0000001'
ÏÖÔÚÖ»ÊDzéÁËÏàͬ±íÖÐÁíÒ»¸ö×Ö¶ÎscaleÖ´ÐÐʱ¼ä2.578Ã룬±¾ÒÔΪÊÇË÷ÒýµÄÔÒò£¬ÓÖ×öÁËÒ»¸ö²âÊÔÈ¡Âú×ãÌõ¼þÐеÄÖ÷¼üÖµ
select b.id
from fx_returnbookchecklist b
where b.returnid='00025.S0000001'
ͬÑùÖ´ÐÐÁË2.641Ãë¡£Ö»ÓÐÒ»¸ö×Ö¶ÎËüµÄ²éѯËÙ¶ÁºÜ¿ì¡£ÆäËû¶¼ºÜÂý¡£
select b.scale,b.netamo
Ïà¹ØÎÊ´ð£º
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
¿ÉÄÜÒòΪ¹¤×÷µÄÔÒò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......
½ñÌì×öÁËÒ»¸ö´æ´¢¹ý³Ì »·¾³ÊÇSQL2000Êý¾Ý¿â
´óÖÂÈçÏÂ
½¨Á¢ÁÙʱ±í
¶¨ÒåÔ±¹¤Óαê
Ñ»·Ô±¹¤£¨ÊôÓÚ1¸ö¹«Ë¾)
......
²éÁËÒ»ÌìµÄblob£¬»¹ÊÇûÀí½âµ½£¬ÎÒÏëÔÚVCÏ´æÈ¡¶þ½øÖƵÄÎļþ£¬Ê¹ÓõÄÊÇoo4o£¬ÕÕ×Å°ïÖúÎĵµÉÏÃæµÄдÁËдÈëÊý¾Ý¿âµÄ´úÂ룬»¹ÊÇûд¶Ô£¬´íÎóÌáʾÊÇthis operation is not permitted on a empty LOB£¬ÕâÊÇʲôÒâ˼°¡£¿ÕÕ ......
¼ÙÉètable01 ÖÐÓÐ ÒÔÏÂ×ÊÁÏ
emp_no emp_name
------- ------------
0001 TOM
0002 JOHN
0003 MARY
³£Óõ绰
¶øÎÒÃÇÒªµÃµ½ÒÔϵÄOUTPUT (»òÊǸ÷ÖÖÆäËûµÄoutput)
0001,TOM
0002,JOHN
......