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

Oracle ÈÕÆÚº¯Êýto_char

Select to_char(sysdate,'ss') from dual;--È¡µ±Ç°Ê±¼äÃ벿·Ö
Select to_char(sysdate,'mi') from dual;--È¡µ±Ç°Ê±¼ä·ÖÖÓ²¿·Ö
Select to_char(sysdate,'HH24') from dual;--È¡µ±Ç°Ê±¼äÃëСʱ²¿·Ö
Select to_char(sysdate,'DD') from dual;--È¡µ±Ç°Ê±¼äÈÕÆÚ²¿·Ö
Select to_char(sysdate,'MM') from dual;--È¡µ±Ç°Ê±¼äÔ²¿·Ö
Select to_char(sysdate,'YYYY') from dual;--È¡µ±Ç°Ê±¼äÄ겿·Ö
Select to_char(sysdate,'w') from dual;--È¡µ±Ç°Ê±¼äÊÇÒ»¸öÔÂÖеĵڼ¸ÖÜ(´Ó1ÈÕ¿ªÊ¼Ëã)
Select to_char(sysdate,'ww') from dual;--È¡µ±Ç°Ê±¼äÊÇÒ»ÄêÖеĵڼ¸ÖÜ£¨´Ó1.1¿ªÊ¼Ë㣩
Select to_char(sysdate,'iw') from dual;--È¡µ±Ç°Ê±¼äÊÇÒ»ÄêÖеĵڼ¸ÖÜ£¨°´Êµ¼ÊÈÕÀúµÄ£©
Select to_char(sysdate,'d') from dual;--È¡µ±Ç°Ê±¼äÊÇÒ»Öܵĵڼ¸Ì죬´ÓÐÇÆÚÌ쿪ʼ£¬ÖÜÁù½áÊø
Select to_char(sysdate,'day') from dual;--È¡µ±Ç°ÈÕÊÇÐÇÆÚ¼¸£¬ºÍÊý¾Ý¿âÉèÖõÄ×Ö·û¼¯Óйأ¬»áÊä³ö'Tuesday'
Select to_char(sysdate,'ddd') from dual;--µ±Ç°ÈÕÊÇÒ»ÄêÖеĵڼ¸Ìì


Ïà¹ØÎĵµ£º

ÏÖÔÚ½«javaµ÷ÓÃoracle´æ´¢¹ý³ÌµÄʾÀý×ܽáÈçÏÂ


ѧÉúÔÚѧϰjdbcµÄʱºò£¬»áÎʵ½Ôõôµ÷Óô洢¹ý³Ì£¬ÏÖÔÚ½«javaµ÷ÓÃoracle´æ´¢¹ý³ÌµÄʾÀý×ܽáÈçÏ¡££¨¹ØÓÚµ÷ÓÃsqlserverµÄ´æ´¢¹ý³Ì½«ÔÚÏ´νøÐÐС½áÇë¹Ø×¢£©
Ò»£ºÎÞ·µ»ØÖµµÄ´æ´¢¹ý³Ì
´æ´¢¹ý³ÌΪ£º
•         create or replace procedure adddept(deptno number,dname varc ......

sqlserverºÍoracle³£Óú¯Êý¶Ô±È

sqlserverºÍoracle³£Óú¯Êý¶Ô±È
Êýѧº¯Êý
¡¡¡¡1.¾ø¶ÔÖµ
¡¡¡¡S:select abs(-1) value
¡¡¡¡O:select abs(-1) value from dual
¡¡¡¡2.È¡Õû(´ó)
¡¡¡¡S:select ceiling(-1.001) value
¡¡¡¡O:select ceil(-1.001) value from dual
¡¡¡¡3.È¡Õû£¨Ð¡£©
¡¡¡¡S:select floor(-1.001) value
¡¡¡¡O:select floor(-1.0 ......

oracle manager database control invalid¡¡start

Æô¶¯“OracleDBConsole”ʱ£­£­£­³öÏÖ“Agent process exited abnormally during initialization.”
ÔÚÔËÐÐ"emctl start dbconsole "¡¡·¢ÏÖÊÇÕÒ²»µ½Ö¸¶¨Îļþ,ÔÚÍøÉÏÕÒÁËÒ»ÏÂÔ­Òò, ¸ü¸ÄµÄÖ¸¶¨Îļþ¼ÐµÄÃû³Æ£¬µ«»¹ÊDz»ÄÜÆô¶¯·þÎñ£¬½á¹ûÈÏÕæ¿´ÁËһϣ¬ÊÇCTRL+C,CTRL+V È»ºó²ÅÆô¶¯³É¹¦£¬ËùÒÔÌض¨Ð´ÏÂÀ´£¬¼Ç ......

oracle dbms_stats °ü

    oracle 8i ÒÔºó¼Ó´¦µÄ¹¦ÄÜ£¬Oracleר¼Ò¿Éͨ¹ýÒ»ÖÖ¼òµ¥µÄ·½Ê½À´ÎªCBOÊÕ¼¯Í³¼ÆÊý¾Ý¡£Ä¿Ç°£¬ÒѾ­²»ÔÙÍƼöÄãʹÓÃÀÏʽµÄ·ÖÎö±íºÍdbms_utility·½·¨À´Éú³ÉCBOͳ¼ÆÊý¾Ý¡£ÄÇЩ¹ÅÀϵķ½Ê½ÉõÖÁÓпÉÄÜΣ¼°SQLµÄÐÔÄÜ£¬ÒòΪËüÃDz¢·Ç×ÜÊÇÄܹ»²¶×½µ½ÓйرíºÍË÷ÒýµÄ¸ßÖÊÁ¿ÐÅÏ¢¡£ CBOʹÓöÔÏóͳ¼Æ£¬ÎªËùÓÐSQLÓï¾äÑ¡Ôñ×î¼Ñµ ......

Oracle CURSORµÄ¼òµ¥Ó÷¨

Ç°ÑÔ£º
 OracleµÄ¶Ô±í²Ù×÷ÖÐÓÐÒ»ÖÖÀàËÆÓÚDataSetµÄ¶ÔÏó²Ù×÷·½·¨CURSOR£¬Ëü¿ÉÒÔͨ¹ý½¨Á¢±íµÄ²Ù×÷¶ÔÏó»òÕß˵±íµÄÖ¸Õë¶ÔÏóÀ´´ïµ½´Ó±íÀïÃæÌáÈ¡Êý¾ÝµÄ²Ù×÷¡£
˵Ã÷£º
 Ò»°ãͨ¹ýSQLÓïÑÔ¿ÉÒÔÕë¶Ôij¸ö±íµÄijһÐлò¶àÐÐÊý¾Ý½øÐвÙ×÷±ÈÈç˵SELECT£¬UPDATEµÈ¡£ÕâЩ²Ù×÷±ØÐëÒÔSQLÓï¾äµÄÓï·¨¸ñʽÀ´±»½âÊÍÆ÷½âÊͲ¢Ö´ÐС£ÔÚʵ¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ