OracleÖÐINSTR,SUBSTR·½·¨
INSTR·½·¨µÄ¸ñʽΪ
INSTR(Ô´×Ö·û´®, Ä¿±ê×Ö·û´®, ÆðʼλÖÃ, Æ¥ÅäÐòºÅ)
ÀýÈ磺INSTR('CORPORATE FLOOR','OR', 3, 2)ÖУ¬Ô´×Ö·û´®Îª'CORPORATE FLOOR', Ä¿±ê×Ö·û´®Îª'OR'£¬ÆðʼλÖÃΪ3£¬È¡µÚ2¸öÆ¥ÅäÏîµÄλÖá£
ĬÈϲéÕÒ˳ÐòΪ´Ó×óµ½ÓÒ¡£µ±ÆðʼλÖÃΪ¸ºÊýµÄʱºò£¬´ÓÓұ߿ªÊ¼²éÕÒ¡£
ËùÒÔSELECT INSTR('CORPORATE FLOOR', 'OR', -1, 1) "Instring" from DUALµÄÏÔʾ½á¹ûÊÇ
Instring
——————
14
oracleµÄsubstrº¯ÊýµÄÓ÷¨
È¡µÃ×Ö·û´®ÖÐÖ¸¶¨ÆðʼλÖúͳ¤¶ÈµÄ×Ö·û´® substr( string, start_position, [ length ] )
Èç:
substr('This is a test', 6, 2) would return 'is'
substr('This is a test', 6) would return 'is a test'
substr('TechOnTheNet', -3, 3) would return 'Net'
substr('TechOnTheNet', -6, 3) would return 'The'select substr('Thisisatest', -4, 2) value from dual
Ïà¹ØÎĵµ£º
ѧϰOracle DBAÒ²°ë¸ö¶àѧÆÚÁË£¬½ñÌìÃÍÈ»²Å·¢ÏÖ£¬ÔÀ´ÎÒµÄÊ黹ÊǺÜеģ¬ÉϿβÙ×÷ʱºòÒ²Ö»ÊÇÖªµÀ´ó¸ÅÔõô×ö£¬µ«ÊÇÒªÕæµÄÈ«²¿×Ô¼º×ö£¬¶ø²»È¥·Ê黹ÊÇÓÐÒ»¶¨µÄÄѶȵģ¬ËùÒÔÄØ£¬½ñÌ쿪ʼ½«DBA´ÓÍ·¸´Ï°Ò»±é£¬Í¬Ê±ÔÙ²Ù×÷Ò»±é¡£
µÚÒ»Õ£¬Ñ§µÄÊÇOracleµÄÌåϵ½á¹¹£ ......
Ò»¡¢¸ÅÄî
1. Êý¾Ý¿â (Database)
ʲôÊÇÊý¾Ý¿â£¿
Êý¾Ý¿âÊÇÒÀÕÕijÖÖÊý¾ÝÄ£ÐÍ×éÖ¯ÆðÀ´²¢´æ·Å¶þ¼¶´æ´¢Æ÷ÖеÄÊý¾Ý¼¯ºÏ¡£ÕâÖÖÊý¾Ý¼¯ºÏ¾ßÓÐÈçÏÂÌص㣺¾¡¿ÉÄܲ»Öظ´£¬ÒÔ×îÓÅ·½Ê½ÎªÄ³¸öÌض¨×éÖ¯µÄ¶àÖÖÓ¦Ó÷þÎñ£¬ÆäÊý¾Ý½á¹¹¶ÀÁ¢ÓÚʹÓÃËüµÄÓ¦ÓóÌÐò£¬¶ÔÊý¾ÝµÄÔö¡¢É¾¡¢¸ÄºÍ¼ìË÷ÓÉͳһÈí¼þ½øÐйÜÀíº ......
Ò»¡¢ oracle»ù´¡ÖªÊ¶
a¡¢ CRUD²Ù×÷ create read update delete
b¡¢ Êý¾Ý¿â¶ÔÏó
c¡¢ Êý¾Ý¿âÉè¼Æ
d¡¢ Êý¾Ý¿â½á¹¹ÌåϵÓÅ»¯£¨DBA£©
oracleÖдæÔÚËÄÕÅÁ·Ï°±í emp dept slmgad bonus ÕâËÄÕÅ±í£¬»¹ÓÐÒ»ÕÅdual±íÁ·Ï°±í±íÖÐÖ»ÓÐÒ»¸ö×Ö¶ÎÒ»¸öÊý ......
1.Ê×ÏȽ«Òªµ¼ÈëµÄÊý¾ÝÉú³ÉexcelÎļþ¸ñʽ£¬×îÇ°Ãæ¿ÕÒ»¸ñ¡£
2.ÓÃPL/SQLÁ¬½ÓÒªµ¼ÈëµÄÊý¾Ý¿â£¬ÊäÈëÓï¾ä select * from ±íÃû for update
3.µã»÷СËø£¨±à¼Êý¾Ý£©£¬Ñ¡ÖÐÒ»Ðн«excel¸´ÖÆÊý¾ÝÕ³Ìùµ½±íÖÐ
ÒÔinformixÊý¾Ýµ¼³öΪÀý£¬Ê×ÏÈʹÓÃSecureCRT¹¤¾ß½øÈëÖնˡ£ÊäÈëÃüÁîdbaccessºóÖ´ÐУ¬Ñ¡ÖÐÊý¾Ý¿âNEWÒ»ÏÂSQLÓï¾äÊäÈëÃüÁunl ......
Õâ¶Îʱ¼ä£¬½ÓµÄ¶àÊÇRACµÄά»¤ºÍ»Ö¸´ÎÊÌâ¡£ËùÒÔÿÌ춼ÊÇÔÚºÍRAC´ò½»µÀ¡£
RACÕæµÄºÜºÃÍæ¡£
´ó¼ÒÓжÔRAC¸ÐÐËȤµÄÓÐÎÊÌâµÄ£¬»òÕßÊÇÓöµ½RACά»¤ÉÏÃæµÄ³öÏÖÎÊÌâµÄ£¬¿ÉÒÔ·¢ÓʼþÖÁinthirties@gmail.comÒ»Æð½»Á÷Ñо¿¡£
ÕæµÄºÜÏ£ÍûÍæOracle ......