oracleÔõÑùÉó²é´æ´¢Àú³ÌÄÚÈÝ
ÔÚ oracle Êý¾Ý¿âÖÐÉó²é´æ´¢Àú³ÌµÄÄÚÈÝ£¬¿ÉÒÔͨ¹ý£º1. ÅþÁ¬µ½Êý¾Ý¿â£»2. Ö´ÐÐ select text from user_source where name = ”; ÅÌÎÊ¡£Ê¾Àý£ºÈôÒªÉó²é my_procedure µÄÔ´´úÂ룬ִÐÐ select text from user_source where name = ‘my_procedure’;¡£
ÔõÑùÉó²é Oracle ´æ´¢Àú³ÌµÄÄÚÈÝ
ÔÚ Oracle Êý¾Ý¿âÖÐÉó²é´æ´¢Àú³ÌµÄÄÚÈÝ¿ÉÒÔͨ¹ýÒÔÏ°취£º
ÅþÁ¬µ½Êý¾Ý¿â£ºÊ¹ÓÃÄúϲ»¶µÄ SQL ¿Í»§¶Ë£¬ÀýÈç SQL*Plus¡¢Oracle SQL Developer »ò DBeaver£¬ÅþÁ¬µ½ÒªÉó²é´æ´¢Àú³ÌµÄÊý¾Ý¿â¡£
»ñÈ¡´æ´¢Àú³ÌµÄÔ´´úÂ룺ִÐÐÒÔÏÂÅÌÎÊÒÔ»ñÈ¡´æ´¢Àú³ÌµÄÔ´´úÂ룺
SELECT text FROM user_source WHERE name = '';
µÇ¼ºó¸´ÖÆ
ÆäÖÐÊÇÄúÒªÉó²éÔ´´úÂëµÄ´æ´¢Àú³ÌµÄÃû³Æ¡£
¼ì²éÊä³ö£ºÅÌÎÊЧ¹û½«ÏÔʾ´æ´¢Àú³ÌµÄÔ´´úÂë¡£
ʾÀý
ÀýÈ磬ҪÉó²éÃûΪ my_procedure µÄ´æ´¢Àú³ÌµÄÔ´´úÂ룬ÇëÖ´ÐÐÒÔÏÂÅÌÎÊ£º
SELECT text FROM user_source WHERE name = 'my_procedure';
µÇ¼ºó¸´ÖÆ
Õ⽫·µ»Ø my_procedure ´æ´¢Àú³ÌµÄÔ´´úÂ룬ÆäÖаüÀ¨½¨Éè´æ´¢Àú³ÌµÄ SQL Óï¾ä¡£
ÒÔÉϾÍÊÇoracleÔõÑùÉó²é´æ´¢Àú³ÌÄÚÈݵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡