СµÜÓÐÈçϱí½á¹¹£¬ÏÖҪͳ¼ÆʵÏÖÈçϽá¹ûµÄ¹¦ÄÜ£¬ÔÚ±í½á¹¹Ï·½¡£
ID NUMBER(18) N PK: SEQ_BROWSE_LOGIN
BROWSE_ AMOUNT NUMBER N
LOGIN_AMOUNT NUMBER N
USER_TYPE NUMBER(1) N 1¡¢ ¹Ü¾ÖÓû§
2¡¢ Ç°ÖÃÓû§
......
ͨ¹ýNAME×Ö¶ÎÌõ¼þ²éѯһ¸öÊý¾Ý±í£¬¼ÙÉèÎÒÓÐ100¸öÐÕÃû£¬ÓÐÒÔÏÂÁ½¸ö·½·¨£¬
·½·¨1£º
°Ñ100¸öName ×é³ÉÒ»¸öSQLÓï¾ä£¬±ÈÈç Select * from tmp_table where Name='ÕÅÈý' or Name ='ÀîËÄ' Or ...Or Name='µÚÒ»°Ù¸öÐÕÃû'
·½·¨2£º
ͨ¹ýÑ»·100´Î£¬Ã¿´ÎÖ´ÐÐÒ»¸öNameÌõ¼þ£¬Ö´ÐÐ100¸öSQLÓï¾ä
Select * from tmp_table where Name=' ......
ÒýÓÃ
1. Adding a slash to the end of each statement was a bad choice because sqlplus treats slash as a buffer flush. For procedure/triggers/functions it is a must: because content of if is stored in the buffer and is not executed. However, for all other statements it means executing the same statem ......
ÐèÒª×öһ̨±¸·ÝµÄ·þÎñÆ÷.Êý¾ÝÍêÈ«¸úÕýʽ·þÎñÆ÷ͬ²½,µ±Õýʽ·þÎñÆ÷³öÏÖÎÊÌâµÄʱºòÇе½±¸·Ý·þÎñÆ÷ÉϾÍÄÜÓÃ.
ÔõôÑù×öµ½ÕâÁ½¸öÊý¾Ý¿âµÄÊý¾ÝÍêÈ«Ò»Ñù.
Çë¸ø³öÒ»¸öÏêϸһµãµÄ½â¾ö·½°¸.
Êý¾Ý¿âͬ²½½â¾ö·½°¸£¡
http://www.wavetop.com.cn/solution/sl_db.asp
......
VARCHAR2(<size>) varchar2Êý¾ÝÀàÐÍÊÇÒ»Öֿɱ䳤¶ÈµÄ¡¢ÓÐ×î´ó³¤¶ÈµÄ×ÖĸÊý×ÖÐÍÊý¾Ý¡£Varchar2ÀàÐ͵Ä×ֶγ¤¶È¿ÉÒÔ´ïµ½4000×Ö½Ú£¬Varchar2ÀàÐ͵ıäÁ¿³¤¶È¿ÉÒÔ´ïµ½32676×Ö½Ú¡£
ËÄÜ°ïÎÒ½âÊÍһϣ¬¸ÃÔõôÀí½â£¿Ð»Ð»
-- Ding
ÔÚ¶¨Òå±íʱ£¬×î´ó³¤¶ÈΪ4000
È磺
create table test(a varchar2(4000))
ÔÚpl/sq ......
±àдPL/SQL³ÌÐò¿éShowInfo£¬¸ø¶¨Ò»¸öÔ±¹¤ºÅ¾Í¿ÉÒÔÏÔʾÆäÐÕÃû¡¢ÐÔ±ðµÈÐÅÏ¢,
Èç¹û¸ÃÔ±¹¤²»´æÔÚÔòÏÔʾ¡®¶Ô²»Æð£¬Ã»ÓдËÔ±¹¤£¡¡¯
ÇëÎÊÉÏÃæÕâµÀÌâÕâôд£¿£¿¸Õѧoracle¶ÔºÜ¶à¶¼²»ÊǺܶ®£¬Ï£ÍûÄܹ»Ïêϸ½âÊÍ£¡Ð»Ð»
if(v is not null)then
dbms_output.put_line('¸ÃÔ±¹¤²»´æÔÚ');
Õâ¸öÎÊÌâ¼ÇµÃÇ°¼¸ÌìÓÐÈËÎʹý
×Ô¼ ......