{"id":75011,"date":"2026-02-11T08:11:31","date_gmt":"2026-02-11T00:11:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/75011.html"},"modified":"2026-02-11T08:11:31","modified_gmt":"2026-02-11T00:11:31","slug":"oracle-10g-%e5%ae%89%e8%a3%85%e5%8f%8a%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/75011.html","title":{"rendered":"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60"},"content":{"rendered":"<p>&#x1f4da;<font color=\"red\">Oracle\u5b66\u4e60\u8bb0\u5f55&#xff0c;\u9646\u7eed\u66f4\u65b0<\/font><\/p>\n<h3>1.Oracle\u6570\u636e\u5e93\u7684\u5b89\u88c5\u548c\u914d\u7f6e<\/h3>\n<p>Oracle\u6570\u636e\u5e93\u662f\u4e00\u79cd\u7f51\u7edc\u4e0a\u7684\u6570\u636e\u5e93, \u5b83\u5728\u7f51\u7edc\u4e0a\u652f\u6301\u591a\u7528\u6237, \u652f\u6301<font color=\"red\">\u670d\u52a1\u5668\/\u5ba2\u6237\u673a<\/font>\u7b49\u90e8\u7f72(\u6216\u914d\u7f6e)<\/p>\n<p>\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u673a\u662f\u8f6f\u4ef6\u6982\u5ff5, \u5b83\u4eec\u4e0e\u8ba1\u7b97\u673a\u786c\u4ef6\u4e0d\u5b58\u5728\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb. \u5373: \u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u65e2\u53ef\u4ee5\u5145\u5f53\u670d\u52a1\u5668\u53c8\u53ef\u4ee5\u5145\u5f53\u5ba2\u6237\u673a, \u6216\u8005, \u4e00\u53f0\u8ba1\u7b97\u673a\u53ea\u5145\u5f53\u670d\u52a1\u5668\u6216\u53ea\u5145\u5f53\u5145\u5f53\u5ba2\u6237\u673a.<\/p>\n<p>Oracle \u6570\u636e\u5e93\u4f53\u7cfb\u7ed3\u6784\u7b80\u4ecb<br \/>\n\u5e73\u5e38\u6240\u8bf4\u7684 Oracle \u6216 Oracle \u6570\u636e\u5e93\u6307\u7684\u662f Oracle \u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf. Oracle \u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u662f\u7ba1\u7406\u6570\u636e\u5e93\u8bbf\u95ee\u7684\u8ba1\u7b97\u673a\u8f6f\u4ef6(Oracle database manager system). \u5b83\u7531<font color=\"blue\"> Oracle \u6570\u636e\u5e93<\/font>\u548c<font color=\"blue\">  Oracle \u5b9e\u4f8b<\/font>(instance)\u6784\u6210.<\/p>\n<p>Oracle \u6570\u636e\u5e93: \u4e00\u4e2a\u76f8\u5173\u7684\u64cd\u4f5c\u7cfb\u7edf\u6587\u4ef6(\u5373\u5b58\u50a8\u5728\u8ba1\u7b97\u673a\u786c\u76d8\u4e0a\u7684\u6587\u4ef6)\u96c6\u5408,\u8fd9\u4e9b\u6587\u4ef6\u7ec4\u7ec7\u5728\u4e00\u8d77, \u6210\u4e3a\u4e00\u4e2a\u903b\u8f91\u6574\u4f53, \u5373\u4e3a Oracle \u6570\u636e\u5e93.<br \/>\n<font color=\"red\">Oracle \u7528\u5b83\u6765\u5b58\u50a8\u548c\u7ba1\u7406\u76f8\u5173\u7684\u4fe1\u606f.Oracle\u6570\u636e\u5e93\u5fc5\u987b\u8981\u4e0e\u5185\u5b58\u91cc\u5b9e\u4f8b\u5408\u4f5c&#xff0c;\u624d\u80fd\u5bf9\u5916\u63d0\u4f9b\u6570\u636e\u7ba1\u7406\u670d\u52a1\u3002<\/font><\/p>\n<p>Oracle \u5b9e\u4f8b: \u4f4d\u4e8e\u7269\u7406\u5185\u5b58\u91cc\u7684\u6570\u636e\u7ed3\u6784&#xff0c;\u5b83\u7531\u64cd\u4f5c\u7cfb\u7edf\u7684\u591a\u4e2a\u540e\u53f0\u8fdb\u7a0b\u548c\u4e00\u4e2a\u5171\u4eab\u7684\u5185\u5b58\u6c60\u6240\u7ec4\u6210,\u5171\u4eab\u7684\u5185\u5b58\u6c60\u53ef\u4ee5\u88ab\u6240\u6709\u8fdb\u7a0b\u8bbf\u95ee.<br \/>\n<font color=\"red\">Oracle \u7528\u5b83\u4eec\u6765\u7ba1\u7406\u6570\u636e\u5e93\u8bbf\u95ee<\/font>.\u7528\u6237\u5982\u679c\u8981\u5b58\u53d6\u6570\u636e\u5e93(\u4e5f\u5c31\u662f\u786c\u76d8\u4e0a\u7684\u6587\u4ef6) \u91cc\u7684\u6570\u636e, \u5fc5\u987b\u901a\u8fc7Oracle\u5b9e\u4f8b\u624d\u80fd\u5b9e\u73b0, \u4e0d\u80fd\u76f4\u63a5\u8bfb\u53d6\u786c\u76d8\u4e0a\u7684\u6587\u4ef6.<br \/>\n\u5b9e\u9645\u4e0a, Oracle \u5b9e\u4f8b\u5c31\u662f\u5e73\u5e38\u6240\u8bf4\u7684<font color=\"red\">\u6570\u636e\u5e93\u670d\u52a1(service)<\/font> .<\/p>\n<p>\u533a\u522b&#xff1a;\u5b9e\u4f8b\u53ef\u4ee5\u64cd\u4f5c\u6570\u636e\u5e93&#xff1b;\u5728\u4efb\u4f55\u65f6\u523b\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u80fd\u4e0e\u4e00\u4e2a\u6570\u636e\u5e93\u5173\u8054&#xff0c;\u8bbf\u95ee\u4e00\u4e2a\u6570\u636e\u5e93&#xff0c;\u7c7b\u4f3c\u7528\u6237&#xff1b;\u800c\u540c\u4e00\u4e2a\u6570\u636e\u5e93\u53ef\u7531\u591a\u4e2a\u5b9e\u4f8b\u8bbf\u95ee&#xff08;RAC&#xff09;<\/p>\n<h4>1.1\u670d\u52a1\u7aef\u5b89\u88c5<\/h4>\n<p>\u5b89\u88c5\u7c7b\u578b&#xff1a;\u4f01\u4e1a\u7248<br \/>\n\u5168\u5c40\u6570\u636e\u5e93\u540d&#xff1a;\u81ea\u5df1\u8bbe\u7f6e&#xff0c;\u8bbe\u7f6e\u4e3a&#xff1a;<font color=\"red\">orcl<\/font><br \/>\n\u6570\u636e\u5e93\u53e3\u4ee4&#xff08;\u5bc6\u7801&#xff09;&#xff1a;\u81ea\u5df1\u8bbe\u7f6e&#xff0c;\u8bbe\u7f6e\u4e3a&#xff1a;<font color=\"red\">orcl<\/font><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001126-698bc92e01d15.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001126-698bc92e7d295.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001126-698bc92ed389f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92f07f2a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6570\u636e\u5e93\u7684\u521b\u5efa&#xff0c;\u65f6\u95f4\u82b1\u8d39\u8f83\u591a<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92f2e92b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92f4fec0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5c55\u793a\u6240\u6709\u7684\u9ed8\u8ba4\u7684\u7528\u6237&#xff0c;\u5176\u4e2dSYS\u3001SYSTEM\u9ed8\u8ba4\u662f\u4e0d\u9501\u5b9a\u7684\u3002<br \/>\n\u89e3\u9501\u540e\u9762\u7684SCOTT\u7528\u6237&#xff0c;\u4e4b\u540e\u7684\u5b66\u4e60\u90fd\u4f7f\u7528SCOTT\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92f7384f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92faa979.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u4efb\u52a1\u7ba1\u7406\u5668\u7684\u670d\u52a1\u91cc\u9762\u4f1a\u65b0\u589e\u51e0\u9879Oracle\u7684\u670d\u52a1<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001127-698bc92fc97e5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001128-698bc93002030.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5b89\u88c5\u6587\u4ef6\u6bd4\u8f83\u5927&#xff0c;\u5b89\u88c5\u4e4b\u540e\u670d\u52a1\u4e00\u76f4\u4fdd\u6301\u5f00\u542f\u7684\u8bdd\u6bd4\u8f83\u8017\u8d39\u8d44\u6e90<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001128-698bc93029d98.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8017\u8d39\u8d44\u6e90\u592a\u591a&#xff0c;\u5b66\u4e60\u65f6\u53ea\u9700\u8981\u5f00\u542f&#xff08;\u624b\u52a8&#xff09;\u4ee5\u4e0b\u4e24\u9879\u670d\u52a1&#xff0c;\u5176\u4ed6\u4e09\u9879\u670d\u52a1\u7981\u7528<br \/>\nOracleServiceORDL<br \/>\nOracleOraDb10g_home1TNSListener&#xff1a;\u76d1\u542c\u5668&#xff0c;\u8fde\u63a5\u670d\u52a1\u7aef<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001128-698bc93053e2f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u670d\u52a1\u7aef\u5b89\u88c5\u5b8c\u6bd5&#xff01;<\/p>\n<h4>1.2\u5ba2\u6237\u7aef\u5b89\u88c5<\/h4>\n<p>\u8981\u4ece\u5c40\u57df\u7f51\u5185\u7684\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u8bbf\u95ee\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u7684 Oracle \u670d\u52a1. \u9700\u8981\u5728\u6b64\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u80fd\u901a\u8fc7\u5c40\u57df\u7f51\u8bbf\u95ee\u53e6\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u7684 Oracle \u670d\u52a1\u7684\u5ba2\u6237\u673a.<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc93136247.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc93159060.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5b89\u88c5\u7c7b\u578b\u9009\u62e9\u7ba1\u7406\u5458<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc9317c14f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u9996\u6b21\u5b89\u88c5\u7684\u8def\u5f84\u4e3a&#xff1a;client_1<br \/>\n\u7b2c\u4e8c\u6b21\u5b89\u88c5\u8def\u5f84\u4e3a&#xff1a;client_2&#xff0c;\u4ee5\u6b64\u7c7b\u63a8<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc9319f3ee.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc931c53be.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001129-698bc931f3d11.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u670d\u52a1\u540dorcl<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001130-698bc932210dc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001130-698bc9323b525.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e3b\u673a\u540d\u6dfb\u52a0\u8bbf\u95ee\u670d\u52a1\u7aef\u7684IP<br \/>\n\u7aef\u53e3\u53f7\u4e3a\u9ed8\u8ba4\u7684Oracle\u7aef\u53e3\u53f7&#xff1a;1521<br \/>\n<img decoding=\"async\" src=\"2026-02-11ftk1lf3dssu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8fdb\u884c\u6d4b\u8bd5<br \/>\n<img decoding=\"async\" src=\"2026-02-11rcrt13iz0a5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u66f4\u6539\u767b\u5f55&#xff1a;\u8f93\u5165\u5b89\u88c5\u670d\u52a1\u7aef\u65f6\u8bbe\u7f6e\u7684\u7cfb\u7edf\u7528\u6237\u5bc6\u7801&#xff0c;\u8fd9\u91cc\u662f&#xff1a;orcl<br \/>\n<img decoding=\"async\" src=\"2026-02-11m3w5aozfrra.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-114dmorayumm4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-02-11tjpq00ctuwc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11kup4cng1mja.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e00\u76f4\u4e0b\u4e00\u6b65&#xff0c;\u6700\u540e\u5b8c\u6210<br \/>\n<img decoding=\"async\" src=\"2026-02-11j5v2fv2gihf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>1.3\u6d4b\u8bd5\u8fde\u63a5\u4e0d\u6210\u529f<\/h4>\n<p><font color=\"red\">\u82e5\u6d4b\u8bd5\u6210\u529f&#xff0c;\u5219\u5ffd\u7565\u6b64\u6b65\u3002<\/font><\/p>\n<p>\u5982\u679c\u6d4b\u8bd5\u4e0d\u6210\u529f&#xff0c;\u9700\u8981\u64cd\u4f5c\u5982\u4e0b&#xff1a;<br \/>\n\u901a\u8fc7\u5f00\u59cb-\u670d\u52a1\u7aef\u9009\u9879\u7684\u201c\u914d\u7f6e\u548c\u79fb\u690d\u5de5\u5177\u201d-net manager\u6765\u914d\u7f6e\u76d1\u542c\u6587\u4ef6&#xff0c;\u5e76\u91cd\u542f\u670d\u52a1-homeListener<br \/>\n\u901a\u8fc7\u5f00\u59cb-\u670d\u52a1\u7aef\u9009\u9879\u7684\u201c\u914d\u7f6e\u548c\u79fb\u690d\u5de5\u5177\u201d-net configuration assitant\u6765\u52a0\u8f7d\u76d1\u542c\u5668\u548c\u672c\u5730Net\u670d\u52a1\u8fde\u63a5\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11r4uzz553gv5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u672c\u5730&gt;\u76d1\u542c\u7a0b\u5e8f&gt;\u914d\u7f6e\u76d1\u542c\u7a0b\u5e8f&#xff1a;LISTENER<br \/>\n<img decoding=\"async\" src=\"2026-02-11fk44mqy1p2a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n1.\u6dfb\u52a0\u5730\u5740<br \/>\n2.\u4e3b\u673a&#xff1a;127.0.0.1<br \/>\n3.\u7aef\u53e3&#xff1a;1521<br \/>\n4.\u76d1\u542c\u4f4d\u7f6e&#xff1a;\u6570\u636e\u5e93\u670d\u52a1<br \/>\n<img decoding=\"async\" src=\"2026-02-11yw2zuptz1oe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n1.\u9009\u62e9\u6570\u636e\u5e93\u670d\u52a1\u4e4b\u540e\u70b9\u51fb\u6dfb\u52a0\u6570\u636e\u5e93<br \/>\n2.\u5168\u5c40\u6570\u636e\u5e93\u540d&#xff1a;\u4e3a\u5b89\u88c5\u670d\u52a1\u7aef\u65f6\u7684\u7b2c\u4e00\u4e2a\u9875\u9762\u586b\u5199\u7684\u5168\u5c40\u6570\u636e\u5e93\u540d&#xff0c;\u8fd9\u91cc\u662f&#xff1a;orcl<br \/>\n3.Oracle\u4e3b\u76ee\u5f55&#xff1a;\u5b89\u88c5\u7684Oracle\u6570\u636e\u5e93\u4f4d\u7f6e&#xff0c;\u9009\u4e2ddb_1<br \/>\n<img decoding=\"async\" src=\"2026-02-11njn2gfflxll.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6587\u4ef6&gt;\u4fdd\u5b58\u7f51\u7edc\u4f4d\u7f6e<br \/>\n<img decoding=\"async\" src=\"2026-02-11lncm0z4itse.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u91cd\u542fListenet<br \/>\n<img decoding=\"async\" src=\"2026-02-11ehhvwbu5iua.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u7ba1\u7406\u5458\u8fd0\u884c\u5ba2\u6237\u7aef\u7684Net Configuration Assistant<br \/>\n<img decoding=\"async\" src=\"2026-02-11g4hij422ent.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11ewc44ikxpk1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-113i3zj3wim2b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5220\u9664\u76d1\u542c\u7a0b\u5e8f&#xff0c;\u76f4\u63a5\u4e0b\u4e00\u6b65<br \/>\n<img decoding=\"async\" src=\"2026-02-11vugbxozf2rl.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e4b\u540e\u91cd\u65b0\u914d\u7f6e\u4e00\u4e2a\u76d1\u542c\u7a0b\u5e8f&#xff0c;\u70b9\u51fb\u6dfb\u52a0<br \/>\n<img decoding=\"async\" src=\"2026-02-11vtk2wx2x5au.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11i5gr3bxjzzg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-02-114yqbw3nlimu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-113cqlcbr114t.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5148\u5220\u9664\u4e4b\u524d\u6709\u7684\u672c\u5730Net\u670d\u52a1<br \/>\n\u76f4\u63a5\u4e0b\u4e00\u6b65&#xff0c;\u5220\u9664\u5b8c&#xff0c;\u76f4\u5230\u9664\u4e86\u6dfb\u52a0\u6309\u94ae\u5176\u4ed6\u6309\u94ae\u5168\u4e3a\u7070\u8272<br \/>\n<img decoding=\"async\" src=\"2026-02-11oup0bhiwpou.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11f2t13md1xsi.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u670d\u52a1\u540d&#xff1a;orcl<br \/>\n<img decoding=\"async\" src=\"2026-02-11lx41cfa423q.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u9009\u62e9TCP<br \/>\n<img decoding=\"async\" src=\"2026-02-11a1q0kq1kmme.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11tbiuhnoo1x0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11ylo0ql41lnz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e4b\u540e\u8fdb\u884c\u6d4b\u8bd5\u8f93\u5165\u53e3\u4ee4&#xff1a;orcl<br \/>\n<img decoding=\"async\" src=\"2026-02-11pmfdqc5ha2z.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e4b\u540e\u4e00\u76f4\u4e0b\u4e00\u6b65\u5230\u5b8c\u6210<\/p>\n<h4>1.4\u5b89\u88c5\u6210\u529f\u786e\u8ba4<\/h4>\n<p><img decoding=\"async\" src=\"2026-02-114ahel3eknbi.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11g3eq1r53s5j.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8f93\u5165\u53e3\u4ee4&#xff1a;orcl<br \/>\n\u8f93\u5165\u4e3b\u673a\u5b57\u7b26\u4e32&#xff1a;orcl<\/p>\n<p><img decoding=\"async\" src=\"2026-02-115e0a4tyr4l3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8fde\u63a5\u6210\u529f\u65f6\u8f93\u5165&#xff1a;select sysdate from dual<br \/>\n\u80fd\u67e5\u5230\u7cfb\u7edf\u65f6\u95f4\u8bf4\u660e\u6210\u529f<br \/>\n<img decoding=\"async\" src=\"2026-02-1125ul1n43l0m.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>1.5Oracle\u6570\u636e\u5e93\u7684\u5378\u8f7d<\/h4>\n<p><img decoding=\"async\" src=\"2026-02-11zd2ttrj5nnz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11wqaahsgrfpa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11mgc4eyfyplx.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11e1qgj4n5w5v.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-1102sqhx0yf1b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11tuxry4q0xxq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-110uz35adr2yb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u4ee5\u4e0a\u53ea\u662f\u7b80\u5355\u7684\u5c06Oracle\u5378\u8f7d\u6389\u4e86&#xff0c;\u8fd8\u5b66\u8981\u5bf9\u6ce8\u518c\u8868\u8fdb\u884c\u4fee\u6539<\/li>\n<li>\u4fee\u6539\u6ce8\u518c\u8868&#xff0c;\u5728\u5f00\u59cb-\u8fd0\u884c\u4e2d\u6267\u884cregedit\u547d\u4ee4&#xff0c;\u8fdb\u5165\u6ce8\u518c\u8868&#xff0c;\u5bf9\u6ce8\u518c\u8868\u4e2d\u7684\u952e\u503c\u8fdb\u884c\u4fee\u6539<br \/>\n1.\u5c06HKEY_CLASS_ROOT\u4e0b\u6240\u6709\u4ee5ORACLE\u6216\u8005ORAL\u5f00\u5934\u7684\u6ce8\u518c\u8868\u9879\u5220\u9664<br \/>\n2.\u5c06HKEY_LOCAL_MACHINE\\\\SOFTWARE\u4e0bORACLE\u6ce8\u518c\u8868\u9879\u5220\u9664<br \/>\n3.\u5c06HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Service\u4e0b\u7684\u4ee5Oracle\u5f00\u5934\u7684\u6ce8\u518c\u8868\u9879\u5220\u9664<\/li>\n<li>\u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a<\/li>\n<li>\u5220\u9664 c:\\\\Program Files\\\\Oracle\u76ee\u5f55<\/li>\n<\/ul>\n<p><font color=\"red\">\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u624d\u6b63\u771f\u7684\u5b8c\u6210\u4e86Oracle\u7684\u5378\u8f7d&#xff0c;\u6b64\u65f6\u53ef\u4ee5\u5b89\u88c5\u65b0\u7684Oracle<\/font><\/p>\n<h3>2.Oracle\u6570\u636e\u5e93\u7ba1\u7406<\/h3>\n<h4>2.1plsqldev\u4f7f\u7528<\/h4>\n<p>\u4f7f\u7528plsqldev&#xff0c;\u4f18\u4e8esqlplus&#xff0c;\u76f4\u63a5\u5b89\u88c5\u5c31\u884c<br \/>\n\u9700\u8981\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c<br \/>\n<img decoding=\"async\" src=\"2026-02-11swqhfgtqgtd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e0a\u9762\u8bbe\u7f6e\u7684\u5bc6\u7801<br \/>\nDatabase&#xff1a;ORCL<br \/>\n<img decoding=\"async\" src=\"2026-02-113yfhexrow43.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11aomngddabrw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-02-11xou51mrphfs.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8f93\u5165&#xff1a;select sysdate from dual;<br \/>\n\u663e\u793a\u65f6\u95f4<br \/>\n<img decoding=\"async\" src=\"2026-02-11nglltnpkw0x.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5bfc\u5165\u8868&#064;\u76d8\u7b26:\/\u6587\u4ef6\u540d;<br \/>\n\u4f8b\u5982\u4f9d\u6b21\u8f93\u5165<br \/>\n&#064;d:\/del_data.sql;<br \/>\n&#064;d:\/hr_cre.sql;<br \/>\n&#064;d:\/hr_popul.sql<\/p>\n<p>\u5bfc\u5165\u4e4b\u540eselect\u67e5\u8be2\u5bfc\u5165\u7684\u6570\u636e\u6761\u6570\u662f\u5426\u6b63\u5e38&#xff0c;\u9700\u8981\u6309\u7167\u4e0a\u65b9\u7684\u987a\u5e8f\u5bfc\u5165<br \/>\n<img decoding=\"async\" src=\"2026-02-11trb0qygtd1j.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>2.2Oracle \u4f01\u4e1a\u7ba1\u7406\u5668<\/h4>\n<p>\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u5ba2\u6237\u7aef\u7684\u4f01\u4e1a\u7ba1\u7406\u5668<br \/>\n<img decoding=\"async\" src=\"2026-02-111stsimsr43s.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u9996\u6b21\u6253\u5f00\u9700\u8981\u6dfb\u52a0\u6570\u636e\u5e93\u4fe1\u606f&#xff0c;\u8fd9\u91cc\u4f7f\u7528\u5df2\u7ecf\u5b58\u5728\u7684\u6570\u636e\u5e93orcl<br \/>\n<img decoding=\"async\" src=\"2026-02-11ornuhazh5wp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4f7f\u7528\u7cfb\u7edf\u7528\u6237\u767b\u5f55<br \/>\n\u7528\u6237\u540d&#xff1a;system&#xff0c;\u53e3\u4ee4orcl<br \/>\n<img decoding=\"async\" src=\"2026-02-11yp32sozbvc2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6216\u8005\u4e0d\u8f93\u5165\u4f7f\u7528SYSDBA\u767b\u5f55<br \/>\n<img decoding=\"async\" src=\"2026-02-11ojws4yzu0t4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u7528\u6237\u7684\u8be6\u7ec6\u4fe1\u606f: \u7528\u6237\u540d, \u8d26\u6237\u72b6\u6001, \u5931\u6548\u65e5\u671f\u2026\u2026<br \/>\n\u65b0\u7528\u6237\u521b\u5efa<\/p>\n<p><img decoding=\"async\" src=\"2026-02-11rvbgymwexxe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8f93\u5165\u540d\u79f0\u548c\u53e3\u4ee4&#xff0c;\u5176\u4ed6\u9ed8\u8ba4<br \/>\n\u6982\u8981\u6587\u4ef6\u91cc\u6709\u8f93\u5165\u5bc6\u7801\u6b21\u6570\u8fc7\u591a\u7684\u9501\u5b9a\u4fe1\u606f<br \/>\n<img decoding=\"async\" src=\"2026-02-11ccykal4qpcf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4f7f\u7528\u65b0\u521b\u5efa\u7684\u7528\u6237\u767b\u5f55<br \/>\n<img decoding=\"async\" src=\"2026-02-11iywo3enklxt.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e00\u4e2a\u7528\u6237\u521b\u5efa\u7684\u8868&#xff0c;\u53e6\u4e00\u4e2a\u7528\u6237\u8bbf\u95ee\u4e0d\u5230<br \/>\n\u5728SCOTT\u4e2d\u521b\u5efa\u7684\u8868&#xff0c;ATGUIGU\u4e0d\u80fd\u8bbf\u95ee<br \/>\n<img decoding=\"async\" src=\"2026-02-11b5gaenmrkta.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5bf9\u8c61&#xff1a;Oracle\u4e2d\u7684\u5404\u4e2a\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"2026-02-11dwz4jtwisgf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u627e\u5230ATGUIGU\u7684\u5bf9\u8c61\u91cc\u9762\u7684SCOTT\u7528\u6237<br \/>\n<img decoding=\"async\" src=\"2026-02-11dvhzh5kmy1b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6253\u5f00SCOTT\u7528\u6237\u4e0b\u7684\u8868&#xff0c;\u6dfb\u52a0seclet\u529f\u80fd<br \/>\n\u67e5\u8be2\u65f6\u8f93\u5165&#xff1a;select * from scott.employees&#xff1b;\u53ef\u4ee5\u67e5\u8be2\u5230<br \/>\n<img decoding=\"async\" src=\"2026-02-11n10kjfhvctp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u521b\u5efa\u8868&#xff0c;\u8f93\u5165ed\u56de\u8f66&#xff0c;\u5f39\u51fa\u8f93\u5165\u6846<br \/>\n\u8f93\u5165\u5efa\u8868\u8bed\u53e5<br \/>\n\u8f93\u5165\/\u56de\u8f66<br \/>\n<img decoding=\"async\" src=\"2026-02-11hbdl15shneu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6253\u5f00\u521b\u5efa\u8868\u7684\u6743\u9650<br \/>\n\u540e\u9762\u7684\u7ba1\u7406\u9009\u9879\u00d7\u548c\u221a\u3002\u00d7\u4ee3\u8868\u53ea\u80fd\u81ea\u5df1\u7528&#xff0c;\u221a\u4ee3\u8868\u6743\u9650\u53ef\u4ee5\u8d4b\u7ed9\u522b\u4eba<br \/>\n<img decoding=\"async\" src=\"2026-02-11zbhcpodg4tt.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-113wbhbajb2d3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\u4e4b\u540e&#xff0c;\u53ef\u4ee5\u5efa\u8868\u6210\u529f<br \/>\n<img decoding=\"async\" src=\"2026-02-11rlzdbuphpcg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u53ef\u4ee5\u83b7\u53d6\u5176\u4ed6\u7528\u6237\u7684\u6743\u9650&#xff0c;\u6bd4\u5982\u5efa\u8868\u548c\u67e5\u8be2<br \/>\n\u8d4b\u4e88\u5176\u4ed6\u89d2\u8272\u4e4b\u540e\u8fdb\u884c\u91cd\u542f\u4e4b\u540e\u5373\u53ef\u8fdb\u884c\u67e5\u8be2\u548c\u5efa\u8868<br \/>\n<img decoding=\"async\" src=\"2026-02-115mdehr5ibzr.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\nOracle \u7684(\u8d44\u6e90\u9650\u5236)\u6982\u8981\u6587\u4ef6<\/p>\n<ul>\n<li>\u4e3a\u4e86\u63a7\u5236\u7cfb\u7edf\u8d44\u6e90\u7684\u4f7f\u7528, \u53ef\u4ee5\u5229\u7528\u8d44\u6e90\u9650\u5236\u6982\u8981\u6587\u4ef6.<\/li>\n<li>\u8d44\u6e90\u9650\u5236\u6982\u8981\u6587\u4ef6\u662f Oracle \u5b89\u5168\u7b56\u7565\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206, \u5229\u7528\u8d44\u6e90\u9650\u5236\u6982\u8981\u6587\u4ef6\u53ef\u4ee5\u5bf9\u6570\u636e\u5e93\u7528\u6237\u8fdb\u884c\u57fa\u672c\u7684\u8d44\u6e90\u9650\u5236, \u800c\u4e14\u8fd8\u53ef\u4ee5\u5bf9\u7528\u6237\u7684\u53e3\u4ee4\u8fdb\u884c\u7ba1\u7406.<\/li>\n<li>\u4f7f\u7528\u8d44\u6e90\u9650\u5236\u6982\u8981\u6587\u4ef6\u53ef\u4ee5\u9650\u5236\u4e0b\u5217\u8d44\u6e90\u7684\u4f7f\u7528<br \/>\n\u6bcf\u4e2a\u4f1a\u8bdd\u6216\u6bcf\u4e2a\u8bed\u53e5\u7684 CPU \u65f6\u95f4(\u4ee5\u767e\u5206\u4e4b\u4e00\u79d2\u8ba1)<br \/>\n\u6bcf\u4e2a\u7528\u6237\u7684\u5e76\u53d1\u6570\u636e\u5e93\u4f1a\u8bdd<br \/>\n\u6bcf\u4e2a\u4f1a\u8bdd\u7684\u6700\u5927\u94fe\u63a5\u4e8b\u4ef6\u548c\u7a7a\u95f2\u65f6\u95f4(\u4ee5\u5206\u8ba1)<br \/>\n\u53ef\u4f9b\u591a\u7ebf\u7a0b\u670d\u52a1\u5668\u4f1a\u8bdd\u4f7f\u7528\u7684\u6700\u5927\u7684\u670d\u52a1\u5668\u5185\u5b58.<\/li>\n<li>\u4f7f\u7528\u8d44\u6e90\u9650\u5236\u6982\u8981\u6587\u4ef6\u53ef\u4ee5\u5bf9\u6bcf\u4e2a\u6307\u5b9a\u6b64\u6982\u8981\u6587\u4ef6\u7684\u7528\u6237\u8d26\u53f7\u8fdb\u884c\u4e00\u4e0b\u8bbe\u7f6e<br \/>\n\u5141\u8bb8\u7528\u6237\u8fde\u7eed\u8f93\u5165\u9519\u8bef\u53e3\u4ee4\u7684\u6b21\u6570, \u5728\u6b64\u4e4b\u540e Oracle \u5c06\u9501\u5b9a\u8d26\u6237<br \/>\n\u53e3\u4ee4\u7684\u8fc7\u671f\u65f6\u95f4(\u4ee5\u5929\u8ba1)<br \/>\n\u5141\u8bb8\u7528\u6237\u4f7f\u7528\u4e00\u4e2a\u5230\u671f\u53e3\u4ee4\u7684\u5929\u6570, \u8fd9\u4e4b\u540e Oracle \u5c06\u9501\u5b9a\u8d26\u53f7<br \/>\n\u662f\u5426\u68c0\u67e5\u4e00\u4e2a\u8d26\u53f7\u53e3\u4ee4\u7684\u590d\u6742\u6027, \u4ee5\u9632\u6b62\u8d26\u53f7\u4f7f\u7528\u660e\u663e\u7684\u53e3\u4ee4<\/li>\n<\/ul>\n<p>Oracle \u6570\u636e\u5e93\u7684\u9ed8\u8ba4\u6982\u8981\u6587\u4ef6<\/p>\n<ul>\n<li>\u6bcf\u4e2a Oracle \u6570\u636e\u5e93\u90fd\u6709\u4e00\u4e2a\u9ed8\u8ba4\u7684\u8d44\u6e90\u6982\u8981\u6587\u4ef6, \u540d\u4e3a DEFAULT<\/li>\n<li>\u5f53\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u5e93\u7528\u6237\u4e14\u4e0d\u5bf9\u7528\u6237\u5206\u914d\u4e00\u4e2a\u7279\u5b9a\u7684\u6982\u8981\u6587\u4ef6\u65f6, Oracle \u81ea\u52a8\u7ed9\u7528\u6237\u5206\u914d\u6570\u636e\u5e93\u7684 DEFAULT \u6982\u8981\u6587\u4ef6. \u9ed8\u8ba4\u65f6,\u6570\u636e\u5e93 DEFAULT \u6982\u8981\u6587\u4ef6\u7684\u6240\u6709\u8d44\u6e90\u9650\u5236\u8bbe\u7f6e\u4e3a\u65e0\u9650\u5236\u7684.<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2026-02-11vyc0mpkvlxf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11oqllvacubvd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8fdb\u884c\u767b\u5f55\u8d26\u6237\u9519\u8bef\u6b21\u6570\u8fc7\u591a\u65f6\u7684\u89e3\u9501<br \/>\n<img decoding=\"async\" src=\"2026-02-110ihxswui5dw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6a21\u5f0f(schema)<\/p>\n<ul>\n<li>\u6a21\u5f0f: \u7ec4\u7ec7\u76f8\u5173\u6570\u636e\u5e93\u5bf9\u8c61\u7684\u4e00\u4e2a\u903b\u8f91\u6982\u5ff5, \u4e0e\u6570\u636e\u5e93\u5bf9\u8c61\u7684\u7269\u7406\u5b58\u50a8\u65e0\u5173. \u4e00\u4e2a\u6a21\u5f0f\u53ea\u80fd\u5c5e\u4e8e\u4e00\u4e2a\u6570\u636e\u5e93\u7528\u6237, \u800c\u4e14\u6a21\u5f0f\u7684\u540d\u79f0\u4e0e\u7528\u6237\u7684\u540d\u79f0\u76f8\u540c.<\/li>\n<li>Oracle \u6570\u636e\u5e93\u7684\u6bcf\u4e2a\u7528\u6237\u90fd\u62e5\u6709\u552f\u4e00\u7684\u6a21\u5f0f. \u9ed8\u8ba4\u60c5\u51b5\u4e0b, \u7528\u6237\u6240\u521b\u5efa\u7684\u6240\u6709\u6a21\u5f0f\u5bf9\u8c61\u90fd\u4fdd\u5b58\u5728\u81ea\u5df1\u7684\u6a21\u5f0f\u4e2d.\u5728 Oracle \u6570\u636e\u5e93\u4e2d\u6a21\u5f0f\u4e0e\u7528\u6237\u8d26\u53f7\u4e3a\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb<\/li>\n<li>\u5982\u679c\u8981\u4ece\u4e00\u4e2a\u6a21\u5f0f\u4e2d\u5f15\u7528\u53e6\u4e00\u4e2a\u6a21\u5f0f\u4e2d\u7684\u5bf9\u8c61, \u53ef\u4ee5\u4f7f\u7528 \u70b9\u8868\u793a\u6cd5. \u4e0d\u540c\u6a21\u5f0f\u4e2d\u7684\u5bf9\u8c61\u540d\u53ef\u4ee5\u91cd\u590d.<\/li>\n<li>atguigu\u8981\u8bbf\u95ee scott \u7528\u6237\u7684 emp \u8868, scott.emp<\/li>\n<\/ul>\n<p>\u6a21\u5f0f\u5bf9\u8c61\u548c\u975e\u6a21\u5f0f\u5bf9\u8c61<\/p>\n<ul>\n<li>\u80fd\u5305\u542b\u5728\u6a21\u5f0f\u4e2d\u7684\u5bf9\u8c61\u79f0\u4e3a\u6a21\u5f0f\u5bf9\u8c61.<\/li>\n<li>Oracle \u6570\u636e\u5e93\u4e2d\u6709\u8bb8\u591a\u7c7b\u578b\u7684\u5bf9\u8c61, \u4f46\u4e0d\u662f\u6240\u6709\u7684\u5bf9\u8c61\u90fd\u53ef\u4ee5\u7ec4\u7ec7\u5728\u6a21\u5f0f\u4e2d. \u53ef\u4ee5\u7ec4\u7ec7\u5728\u6a21\u5f0f\u4e2d\u7684\u5bf9\u8c61\u6709: \u8868, \u7d22\u5f15, \u89e6\u53d1\u5668\u7b49.<\/li>\n<li>\u6709\u4e00\u4e9b\u4e0d\u5c5e\u4e8e\u4efb\u4f55\u6a21\u5f0f\u7684\u6570\u636e\u5e93\u5bf9\u8c61, \u79f0\u4e3a\u975e\u6a21\u5f0f\u5bf9\u8c61. \u5982: \u8868\u7a7a\u95f4, \u7528\u6237\u8d26\u53f7, \u89d2\u8272, \u6982\u8981\u6587\u4ef6\u7b49.<\/li>\n<\/ul>\n<p>\u7528\u6237\u7684\u9ed8\u8ba4\u8868\u7a7a\u95f4<\/p>\n<ul>\n<li>\u8868\u7a7a\u95f4\u662f\u6570\u636e\u5e93\u7684\u903b\u8f91\u5b58\u50a8\u8bbe\u5907, \u5b83\u628a\u6570\u636e\u5e93\u4fe1\u606f\u7ec4\u7ec7\u6210\u7269\u7406\u5b58\u50a8\u7a7a\u95f4.<\/li>\n<li>\u8868\u7a7a\u95f4\u7531\u6570\u636e\u6587\u4ef6\u7ec4\u6210.\u7528\u6237\u7684\u5404\u79cd\u6a21\u5f0f\u5bf9\u8c61(\u5982\u8868, \u7d22\u5f15, \u8fc7\u7a0b, \u89e6\u53d1\u5668\u7b49) \u90fd\u662f\u653e\u5728\u8868\u7a7a\u95f4\u4e2d.<\/li>\n<li>\u5bf9\u6bcf\u4e2a\u6570\u636e\u5e93\u7528\u6237, \u90fd\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u9ed8\u8ba4\u8868\u7a7a\u95f4. \u5f53\u7528\u6237\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u5e93\u5bf9\u8c61(\u5982\u8868), \u5e76\u4e14\u4e0d\u660e\u786e\u5730\u4e3a\u6b64\u5bf9\u8c61\u6307\u5b9a\u8868\u7a7a\u95f4\u65f6, Oracle \u4f1a\u628a\u6240\u521b\u5efa\u7684\u8fd9\u4e2a\u65b0\u6570\u636e\u5e93\u5bf9\u8c61\u5b58\u653e\u5230\u7528\u6237\u9ed8\u8ba4\u7684\u8868\u7a7a\u95f4\u4e2d.<\/li>\n<li>\u5982\u679c\u4e0d\u7ed9\u7528\u6237\u6307\u5b9a\u9ed8\u8ba4\u8868\u7a7a\u95f4, \u5219\u7528\u6237\u7684\u9ed8\u8ba4\u8868\u7a7a\u95f4\u4e3a USERS \u8868\u7a7a\u95f4.<\/li>\n<\/ul>\n<p>\u7528\u6237\u7684\u4e34\u65f6\u8868\u7a7a\u95f4<\/p>\n<ul>\n<li>\u4e00\u822c, SQL \u8bed\u53e5\u5728\u5b8c\u6210\u4efb\u52a1\u65f6\u9700\u8981\u4e34\u65f6\u5de5\u4f5c\u7a7a\u95f4. \u4f8b\u5982&#xff1a;\u4e00\u4e2a\u7528\u6765\u8fde\u63a5\u548c\u6392\u5e8f\u5927\u91cf\u7684\u67e5\u8be2\u9700\u8981\u4e34\u65f6\u5de5\u4f5c\u7a7a\u95f4\u6765\u5b58\u653e\u7ed3\u679c. \u9664\u975e\u53e6\u5916\u6307\u5b9a, \u4e00\u822c\u60c5\u51b5\u4e0b, \u7528\u6237\u7684\u4e34\u65f6\u8868\u7a7a\u95f4\u662f TEMP \u8868\u7a7a\u95f4.<\/li>\n<li>\u82e5\u6570\u636e\u5e93\u4e2d\u6ca1\u6709\u521b\u5efa TEMP \u8868\u7a7a\u95f4, \u5219\u7528\u6237\u7684\u4e34\u65f6\u8868\u7a7a\u95f4\u4e3a SYSTEM \u8868\u7a7a\u95f4.<\/li>\n<li>\u56e0\u4e3a SYSTEM \u8868\u7a7a\u95f4\u662f\u7528\u6765\u4fdd\u5b58\u6570\u636e\u5e93\u7cfb\u7edf\u4fe1\u606f(\u6570\u636e\u5e93\u81ea\u8eab\u4fe1\u606f\u7684\u5185\u90e8\u7cfb\u7edf\u8868\u548c\u89c6\u56fe &#8212;- \u6570\u636e\u5b57\u5178; \u6240\u6709 PL\/SQL \u7a0b\u5e8f\u7684\u6e90\u4ee3\u7801 &#8212;- \u5305\u62ec\u51fd\u6570, \u89e6\u53d1\u5668\u7b49)\u7684. \u5982\u679c\u7528\u6237\u5927\u91cf\u4f7f\u7528\u6b64\u8868\u7a7a\u95f4\u5b58\u50a8\u81ea\u5df1\u7684\u6570\u636e, \u5c06\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u6267\u884c\u6548\u7387. \u56e0\u6b64\u4e00\u822c\u4e0d\u5efa\u8bae\u7528\u6237\u4f7f\u7528 SYSTEM \u8868\u7a7a\u95f4<\/li>\n<\/ul>\n<p>\u6743\u9650\u7ba1\u7406<br \/>\n\u4e3a\u4e00\u4e2a Oracle \u6570\u636e\u5e93\u7cfb\u7edf\u521b\u5efa\u7528\u6237\u4e4b\u540e, \u8fd9\u4e9b\u7528\u6237\u65e2\u4e0d\u80fd\u4e0e\u6570\u636e\u5e93\u670d\u52a1\u5668\u8fde\u63a5, \u4e5f\u4e0d\u80fd\u505a\u4efb\u4f55\u4e8b\u60c5, \u9664\u975e\u4ed6\u4eec\u5177\u6709\u6267\u884c\u7279\u5b9a\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u6743\u9650.<\/p>\n<p>Oracle \u4e2d\u7684\u6570\u636e\u5e93\u8bbf\u95ee\u6743\u9650\u7c7b\u578b\u5171\u6709\u4e24\u79cd:<br \/>\n\u7cfb\u7edf\u6743\u9650: \u4e00\u79cd\u529f\u80fd\u5f88\u5f3a\u7684\u6743\u9650, \u4ed6\u5411\u7528\u6237\u63d0\u4f9b\u4e86\u6267\u884c\u67d0\u4e00\u79cd\u6216\u67d0\u4e00\u7c7b\u578b\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u7684\u80fd\u529b.<br \/>\n\u5bf9\u8c61\u6743\u9650: \u63a7\u5236\u7528\u6237\u662f\u5426\u80fd\u5728\u7279\u5b9a\u6570\u636e\u5e93\u5bf9\u8c61(\u5982\u8868, \u89c6\u56fe\u6216\u5b58\u50a8\u8fc7\u7a0b) \u4e0a\u6267\u884c\u7279\u5b9a\u7c7b\u578b\u7684\u64cd\u4f5c.<\/p>\n<p><img decoding=\"async\" src=\"2026-02-110piatchcxb5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4f7f\u7528\u7cfb\u7edf\u6743\u9650<\/p>\n<ul>\n<li>\u7528\u6237\u8fde\u63a5\u5230\u6570\u636e\u5e93\u5fc5\u987b\u5177\u5907 create session \u6743\u9650.<\/li>\n<li>\u5982\u679c\u7528\u6237\u5177\u6709 create any procedure \u7cfb\u7edf\u6743\u9650, \u5219\u80fd\u591f\u521b\u5efa, \u4fee\u6539, \u5220\u9664\u6216\u6267\u884c\u4efb\u4f55\u5b58\u50a8\u8fc7\u7a0b, \u7a0b\u5e8f\u5305\u548c\u51fd\u6570<\/li>\n<li>\u5982\u679c\u7528\u6237\u5177\u6709 create any table \u7cfb\u7edf\u6743\u9650, \u5219\u80fd\u591f\u5728\u81ea\u5df1\u7684\u6a21\u5f0f\u4e2d\u521b\u5efa, \u4fee\u6539, \u5220\u9664\u6216\u67e5\u8be2\u4efb\u4f55\u8868<\/li>\n<li>\u5f00\u53d1\u4eba\u5458\u4e00\u822c\u9700\u8981 create table, create view \u548c create type \u7cfb\u7edf\u6743\u9650.<br \/>\n<img decoding=\"async\" src=\"2026-02-11buh4stt0nbj.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11324wmjq2b03.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5229\u7528\u89d2\u8272\u8fdb\u884c\u6743\u9650\u7ba1\u7406<\/li>\n<li>\u6570\u636e\u5e93\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u8981\u7684\u7cfb\u7edf\u6743\u9650\u548c\u5bf9\u8c61\u6743\u9650\u5f88\u591a. \u4e3a\u4e86\u4f7f \u201d\u5b89\u5168\u7ba1\u7406\u201d \u6210\u4e3a\u6bd4\u8f83\u5bb9\u6613\u7684\u5de5\u4f5c, \u53ef\u4ee5\u5229\u7528\u89d2\u8272<\/li>\n<li>\u89d2\u8272(role): \u7cfb\u7edf\u6743\u9650\u548c\u5bf9\u8c61\u6743\u9650\u7684\u4e00\u4e2a\u96c6\u5408. \u53ef\u4ee5\u5c06\u89d2\u8272\u6388\u4e88 \u7528\u6237, \u88ab\u6388\u4e88\u89d2\u8272\u7684\u7528\u6237\u4f1a\u81ea\u52a8\u62e5\u6709\u89d2\u8272\u6240\u5177\u6709\u7684\u6743\u9650. \u5982\u679c\u4fee\u6539\u4e86\u89d2\u8272\u6240\u62e5\u6709\u7684\u6743\u9650, \u5219\u88ab\u6388\u4e88\u89d2\u8272\u7684\u7528\u6237\u7684\u6743\u9650\u4e5f\u4f1a\u968f\u4e4b\u81ea\u52a8\u4fee\u6539.<\/li>\n<\/ul>\n<h3>3.SELECT\u8bed\u53e5<\/h3>\n<h4>3.1SQL\u521d\u6b65<\/h4>\n<p>SQL\u8bed\u53e5\u5206\u4e3a\u4ee5\u4e0b\u4e09\u79cd\u7c7b\u578b&#xff1a;<br \/>\nDML: Data Manipulation Language \u6570\u636e\u64cd\u7eb5\u8bed\u8a00<br \/>\nDDL:  Data Definition Language \u6570\u636e\u5b9a\u4e49\u8bed\u8a00<br \/>\nDCL:  Data Control Language \u6570\u636e\u63a7\u5236\u8bed\u8a00<\/p>\n<p>DML\u7528\u4e8e\u67e5\u8be2\u4e0e\u4fee\u6539\u6570\u636e\u8bb0\u5f55&#xff0c;\u5305\u62ec\u5982\u4e0bSQL\u8bed\u53e5&#xff1a;<br \/>\nINSERT&#xff1a;\u6dfb\u52a0\u6570\u636e\u5230\u6570\u636e\u5e93\u4e2d<br \/>\nUPDATE&#xff1a;\u4fee\u6539\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e<br \/>\nDELETE&#xff1a;\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e<br \/>\nSELECT&#xff1a;\u9009\u62e9&#xff08;\u67e5\u8be2&#xff09;\u6570\u636e&#xff0c;SELECT\u662fSQL\u8bed\u8a00\u7684\u57fa\u7840&#xff0c;\u6700\u4e3a\u91cd\u8981\u3002<\/p>\n<p>DDL\u7528\u4e8e\u5b9a\u4e49\u6570\u636e\u5e93\u7684\u7ed3\u6784&#xff0c;\u6bd4\u5982\u521b\u5efa\u3001\u4fee\u6539\u6216\u5220\u9664\u6570\u636e\u5e93\u5bf9\u8c61&#xff0c;\u5305\u62ec\u5982\u4e0bSQL\u8bed\u53e5&#xff1a;<br \/>\nCREATE TABLE&#xff1a;\u521b\u5efa\u6570\u636e\u5e93\u8868<br \/>\nALTER  TABLE&#xff1a;\u66f4\u6539\u8868\u7ed3\u6784\u3001\u6dfb\u52a0\u3001\u5220\u9664\u3001\u4fee\u6539\u5217\u957f\u5ea6<br \/>\nDROP TABLE&#xff1a;\u5220\u9664\u8868<br \/>\nCREATE INDEX&#xff1a;\u5728\u8868\u4e0a\u5efa\u7acb\u7d22\u5f15<br \/>\nDROP INDEX&#xff1a;\u5220\u9664\u7d22\u5f15<\/p>\n<p>DCL\u7528\u6765\u63a7\u5236\u6570\u636e\u5e93\u7684\u8bbf\u95ee&#xff0c;\u5305\u62ec\u5982\u4e0bSQL\u8bed\u53e5&#xff1a;<br \/>\nGRANT&#xff1a;\u6388\u4e88\u8bbf\u95ee\u6743\u9650<br \/>\nREVOKE&#xff1a;\u64a4\u9500\u8bbf\u95ee\u6743\u9650<br \/>\nCOMMIT&#xff1a;\u63d0\u4ea4\u4e8b\u52a1\u5904\u7406<br \/>\nROLLBACK&#xff1a;\u4e8b\u52a1\u5904\u7406\u56de\u9000<br \/>\nSAVEPOINT&#xff1a;\u8bbe\u7f6e\u4fdd\u5b58\u70b9<br \/>\nLOCK&#xff1a;\u5bf9\u6570\u636e\u5e93\u7684\u7279\u5b9a\u90e8\u5206\u8fdb\u884c\u9501\u5b9a<\/p>\n<h4>3.2SELECT\u8bed\u53e5<\/h4>\n<p>SELECT&#xff1a;\u6807\u8bc6\u9009\u62e9\u54ea\u4e9b\u5217\u3002<br \/>\nFROM&#xff1a;\u6807\u8bc6\u4ece\u54ea\u4e2a\u8868\u4e2d\u9009\u62e9\u3002<\/p>\n<p>\u6ce8\u610f<br \/>\n1.SQL \u8bed\u8a00\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u3002<br \/>\n2.SQL \u53ef\u4ee5\u5199\u5728\u4e00\u884c\u6216\u8005\u591a\u884c<br \/>\n3.\u5173\u952e\u5b57\u4e0d\u80fd\u88ab\u7f29\u5199\u4e5f\u4e0d\u80fd\u5206\u884c<br \/>\n4.\u5404\u5b50\u53e5\u4e00\u822c\u8981\u5206\u884c\u5199\u3002<br \/>\n5.\u4f7f\u7528\u7f29\u8fdb\u63d0\u9ad8\u8bed\u53e5\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<p><font color=\"red\">\u6570\u5b57\u548c\u65e5\u671f<\/font>\u4f7f\u7528\u7684\u7b97\u672f\u8fd0\u7b97\u7b26\u3002<\/p>\n<table>\n<tr>\u64cd\u4f5c\u7b26\u63cf\u8ff0<\/tr>\n<tbody>\n<tr>\n<td>&#043;<\/td>\n<td>\u52a0<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u51cf<\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u4e58<\/td>\n<\/tr>\n<tr>\n<td>\/<\/td>\n<td>\u9664<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u64cd\u4f5c\u7b26\u4f18\u5148\u7ea7<br \/>\n\u4e58\u9664\u7684\u4f18\u5148\u7ea7\u9ad8\u4e8e\u52a0\u51cf\u3002<br \/>\n\u540c\u4e00\u4f18\u5148\u7ea7\u8fd0\u7b97\u7b26\u4ece\u5de6\u5411\u53f3\u6267\u884c\u3002<br \/>\n\u62ec\u53f7\u5185\u7684\u8fd0\u7b97\u5148\u6267\u884c\u3002<\/p>\n<p>\u7a7a\u503c<br \/>\n\u7a7a\u503c\u662f\u65e0\u6548\u7684&#xff0c;\u672a\u6307\u5b9a\u7684&#xff0c;\u672a\u77e5\u7684\u6216\u4e0d\u53ef\u9884\u77e5\u7684\u503c<br \/>\n\u7a7a\u503c\u4e0d\u662f\u7a7a\u683c\u6216\u80050\u3002<br \/>\n\u5305\u542b\u7a7a\u503c\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u7684\u503c\u90fd\u4e3a\u7a7a\u503c<\/p>\n<p>\u5217\u7684\u522b\u540d<br \/>\n1.\u91cd\u547d\u540d\u4e00\u4e2a\u5217\u3002<br \/>\n2.\u4fbf\u4e8e\u8ba1\u7b97\u3002<br \/>\n3.\u7d27\u8ddf\u5217\u540d&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u5217\u540d\u548c\u522b\u540d\u4e4b\u95f4\u52a0\u5165\u5173\u952e\u5b57\u2018AS\u2019&#xff0c;<font color=\"blue\">\u522b\u540d\u4f7f\u7528\u53cc\u5f15\u53f7<\/font>&#xff0c;\u4ee5\u4fbf\u5728\u522b\u540d\u4e2d\u5305\u542b\u7a7a\u683c\u6216\u7279\u6b8a\u7684\u5b57\u7b26\u5e76\u533a\u5206\u5927\u5c0f\u5199\u3002<\/p>\n<p>\u8fde\u63a5\u7b26<br \/>\n\u628a\u5217\u4e0e\u5217&#xff0c;\u5217\u4e0e\u5b57\u7b26\u8fde\u63a5\u5728\u4e00\u8d77\u3002<br \/>\n\u7528 <font color=\"red\">\u2018||\u2019<\/font>\u8868\u793a\u3002<br \/>\n\u53ef\u4ee5\u7528\u6765\u2018\u5408\u6210\u2019\u5217\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11slnru0z111x.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5b57\u7b26\u4e32<br \/>\n1.\u5b57\u7b26\u4e32\u53ef\u4ee5\u662f SELECT \u5217\u8868\u4e2d\u7684\u4e00\u4e2a\u5b57\u7b26,\u6570\u5b57,\u65e5\u671f\u3002<br \/>\n2.\u65e5\u671f\u548c\u5b57\u7b26\u53ea\u80fd\u5728<font color=\"blue\">\u5355\u5f15\u53f7<\/font>\u4e2d\u51fa\u73b0\u3002<br \/>\n3.\u6bcf\u5f53\u8fd4\u56de\u4e00\u884c\u65f6&#xff0c;\u5b57\u7b26\u4e32\u88ab\u8f93\u51fa\u4e00\u6b21\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11e4dd5udqp3z.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5728 SELECT \u5b50\u53e5\u4e2d\u4f7f\u7528\u5173\u952e\u5b57<font color=\"red\"> \u2018DISTINCT\u2019<\/font> \u5220\u9664\u91cd\u590d\u884c&#xff08;\u53bb\u91cd&#xff09;\u3002<\/p>\n<h4>3.3SQL \u548c SQL*Plus<\/h4>\n<p><img decoding=\"async\" src=\"2026-02-11p2ahxwhq3yu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\nSQL\u8bed\u53e5 \u4e0e SQL*Plus\u547d\u4ee4\u5bf9\u6bd4<br \/>\n<img decoding=\"async\" src=\"2026-02-11b5o2wewbq1i.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4f7f\u7528SQL*Plus\u53ef\u4ee5:<br \/>\n1.\u63cf\u8ff0\u8868\u7ed3\u6784\u3002<br \/>\n2.\u7f16\u8f91 SQL \u8bed\u53e5\u3002<br \/>\n3.\u6267\u884c SQL\u8bed\u53e5\u3002<br \/>\n4.\u5c06 SQL \u4fdd\u5b58\u5728\u6587\u4ef6\u4e2d\u5e76\u5c06SQL\u8bed\u53e5\u6267\u884c\u7ed3\u679c\u4fdd\u5b58\u5728\u6587\u4ef6\u4e2d\u3002<br \/>\n5.\u5728\u4fdd\u5b58\u7684\u6587\u4ef6\u4e2d\u6267\u884c\u8bed\u53e5\u3002<br \/>\n6.\u5c06\u6587\u672c\u6587\u4ef6\u88c5\u5165 SQL*Plus\u7f16\u8f91\u7a97\u53e3\u3002<\/p>\n<p>\u4f7f\u7528 DESCRIBE \u547d\u4ee4&#xff0c;\u663e\u793a\u8868\u7ed3\u6784\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-114vsjvzigtgi.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>5.\u8fc7\u6ee4\u548c\u6392\u5e8f\u6570\u636e<\/h3>\n<p>\u8fc7\u6ee4<br \/>\n\u4f7f\u7528WHERE \u5b50\u53e5&#xff0c;\u5c06\u4e0d\u6ee1\u8db3\u6761\u4ef6\u7684\u884c\u8fc7\u6ee4\u6389\u3002<br \/>\nWHERE \u5b50\u53e5\u7d27\u968f FROM \u5b50\u53e5<\/p>\n<p>\u5b57\u7b26\u548c\u65e5\u671f<br \/>\n\u5b57\u7b26\u548c\u65e5\u671f\u8981\u5305\u542b\u5728<font color=\"blue\">\u5355\u5f15\u53f7<\/font>\u4e2d\u3002<br \/>\n\u5b57\u7b26\u5927\u5c0f\u5199\u654f\u611f&#xff0c;\u65e5\u671f\u683c\u5f0f\u654f\u611f\u3002<br \/>\n\u9ed8\u8ba4\u7684\u65e5\u671f\u683c\u5f0f\u662f DD-MON\u6708-RR\u3002<\/p>\n<p>\u6bd4\u8f83\u8fd0\u7b97<\/p>\n<table>\n<tr>\u64cd\u4f5c\u7b26\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">&#061;<\/td>\n<td align=\"left\">\u7b49\u4e8e (\u4e0d\u662f &#061;&#061;)&#xff0c;\u4e5f\u53ef\u4ee5\u8d4b\u503c<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">&gt;<\/td>\n<td align=\"left\">\u5927\u4e8e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">&gt;&#061;<\/td>\n<td align=\"left\">\u5927\u4e8e\u3001\u7b49\u4e8e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">&lt;<\/td>\n<td align=\"left\">\u5c0f\u4e8e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">&lt;&#061;<\/td>\n<td align=\"left\">\u5c0f\u4e8e\u3001\u7b49\u4e8e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">&lt;&gt;<\/td>\n<td align=\"left\">\u4e0d\u7b49\u4e8e (\u4e5f\u53ef\u4ee5\u662f !&#061;)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">BETWEEN\u2026AND\u2026<\/td>\n<td align=\"left\">\u5728\u4e24\u4e2a\u503c\u4e4b\u95f4 (\u5305\u542b\u8fb9\u754c)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">IN(set)<\/td>\n<td align=\"left\">\u7b49\u4e8e\u503c\u5217\u8868\u4e2d\u7684\u4e00\u4e2a<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">LIKE<\/td>\n<td align=\"left\">\u6a21\u7cca\u67e5\u8be2<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">IS (NOT) NULL<\/td>\n<td align=\"left\">\u5224\u65ad\u7a7a\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>LIKE<br \/>\n1.\u4f7f\u7528 LIKE \u8fd0\u7b97\u9009\u62e9\u7c7b\u4f3c\u7684\u503c<br \/>\n2.\u9009\u62e9\u6761\u4ef6\u53ef\u4ee5\u5305\u542b\u5b57\u7b26\u6216\u6570\u5b57:<br \/>\n3.% \u4ee3\u8868\u96f6\u4e2a\u6216\u591a\u4e2a\u5b57\u7b26(\u4efb\u610f\u4e2a\u5b57\u7b26)\u3002<br \/>\n4._ \u4ee3\u8868\u4e00\u4e2a\u5b57\u7b26\u3002<br \/>\n5.\u2018%\u2019\u548c\u2018-\u2019\u53ef\u4ee5\u540c\u65f6\u4f7f\u7528<br \/>\n6.\u53ef\u4ee5\u4f7f\u7528 <font color=\"red\">ESCAPE<\/font> \u6807\u8bc6\u7b26 \u9009\u62e9\u2018%\u2019\u548c \u2018_\u2019 \u7b26\u53f7\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-02-115ghhuihpxxj.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u903b\u8f91\u8fd0\u7b97<\/p>\n<table>\n<tr>\u64cd\u4f5c\u7b26\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>AND<\/td>\n<td align=\"left\">\u903b\u8f91\u5e76&#xff0c;\u8981\u6c42\u5e76\u7684\u5173\u7cfb\u4e3a\u771f<\/td>\n<\/tr>\n<tr>\n<td>OR<\/td>\n<td align=\"left\">\u903b\u8f91\u6216&#xff0c;\u8981\u6c42\u6216\u5173\u7cfb\u4e3a\u771f<\/td>\n<\/tr>\n<tr>\n<td>NOT<\/td>\n<td align=\"left\">\u903b\u8f91\u5426<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4f18\u5148\u7ea7<br \/>\n\u53ef\u4ee5\u4f7f\u7528\u62ec\u53f7\u6539\u53d8\u4f18\u5148\u7ea7\u987a\u5e8f<\/p>\n<table>\n<tr>\u4f18\u5148\u7ea7<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td align=\"left\">\u7b97\u672f\u8fd0\u7b97\u7b26<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td align=\"left\">\u8fde\u63a5\u7b26<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td align=\"left\">\u6bd4\u8f83\u7b26<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td align=\"left\">IS [NOT] NULL, LIKE, [NOT] IN<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td align=\"left\">[NOT] BETWEEN<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td align=\"left\">NOT<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td align=\"left\">AND<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td align=\"left\">OR<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>ORDER BY\u5b50\u53e5\u6392\u5e8f<br \/>\nASC&#xff08;ascend&#xff09;: \u5347\u5e8f&#xff08;\u9ed8\u8ba4&#xff09;&#xff0c;\u4e0a\u5c0f\u4e0b\u5927<br \/>\nDESC&#xff08;descend&#xff09;: \u964d\u5e8f&#xff0c;\u4e0a\u5927\u4e0b\u5c0f<br \/>\nORDER BY \u5b50\u53e5\u5728SELECT\u8bed\u53e5\u7684\u7ed3\u5c3e\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-1130qrv0iiq4a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>6.\u5355\u884c\u51fd\u6570<\/h3>\n<p><img decoding=\"async\" src=\"2026-02-11ggodh3qodqk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11mupenug4ww3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5355\u884c\u51fd\u6570<br \/>\n1.\u64cd\u4f5c\u6570\u636e\u5bf9\u8c61<br \/>\n2.\u63a5\u53d7\u53c2\u6570\u8fd4\u56de\u4e00\u4e2a\u7ed3\u679c<br \/>\n3.<font color=\"red\">\u53ea\u5bf9\u4e00\u884c\u8fdb\u884c\u53d8\u6362<\/font><br \/>\n4.<font color=\"red\">\u6bcf\u884c\u8fd4\u56de\u4e00\u4e2a\u7ed3\u679c<\/font><br \/>\n5.\u53ef\u4ee5\u8f6c\u6362\u6570\u636e\u7c7b\u578b<br \/>\n6.\u53ef\u4ee5\u5d4c\u5957<br \/>\n7.\u53c2\u6570\u53ef\u4ee5\u662f\u4e00\u5217\u6216\u4e00\u4e2a\u503c<br \/>\n<img decoding=\"async\" src=\"2026-02-11d5522tc12sk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11xfvdlifbtdz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5b57\u7b26\u51fd\u6570<\/h4>\n<p>\u5927\u5c0f\u5199\u63a7\u5236\u51fd\u6570<br \/>\n\u8fd9\u7c7b\u51fd\u6570\u6539\u53d8\u5b57\u7b26\u7684\u5927\u5c0f\u5199\u3002<\/p>\n<table>\n<tr>\u51fd\u6570\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">LOWER(\u2018SQL Course\u2019)<\/td>\n<td align=\"left\">sql course<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">UPPER(\u2018SQL Course\u2019)<\/td>\n<td align=\"left\">SQL COURS<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">INITCAP(\u2018SQL Course\u2019)<\/td>\n<td align=\"left\">Sql Course<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b57\u7b26\u63a7\u5236\u51fd\u6570<\/p>\n<table>\n<tr>\u4f5c\u7528\u51fd\u6570\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u62fc\u63a5<\/td>\n<td align=\"left\">CONCAT(\u2018Hello\u2019, \u2018World\u2019)<\/td>\n<td align=\"left\">HelloWorld<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u622a\u53d6<\/td>\n<td align=\"left\">SUBSTR(\u2018HelloWorld\u2019,1,5)<\/td>\n<td align=\"left\">Hello<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6c42\u957f\u5ea6<\/td>\n<td align=\"left\">LENGTH(\u2018HelloWorld\u2019)<\/td>\n<td align=\"left\">10<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6c42\u7b2c\u51e0\u4f4d<\/td>\n<td align=\"left\">INSTR(\u2018HelloWorld\u2019, \u2018W\u2019)<\/td>\n<td align=\"left\">6<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><\/td>\n<td align=\"left\">LPAD(salary,10,\u2018*\u2019)<\/td>\n<td align=\"left\">*****24000<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><\/td>\n<td align=\"left\">RPAD(salary, 10, \u2018*\u2019)<\/td>\n<td align=\"left\">24000*****<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><\/td>\n<td align=\"left\">TRIM(\u2018H\u2019 FROM \u2018HelloWorld\u2019)<\/td>\n<td align=\"left\">elloWorld<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><\/td>\n<td align=\"left\">REPLACE(\u2018abcd\u2019,\u2019b\u2019,\u2019m\u2019)<\/td>\n<td align=\"left\">amcd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6570\u5b57\u51fd\u6570<\/p>\n<table>\n<tr>\u4f5c\u7528\u51fd\u6570\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u56db\u820d\u4e94\u5165<\/td>\n<td align=\"left\">ROUND(45.926, 2)<\/td>\n<td align=\"left\">45.93<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u622a\u65ad<\/td>\n<td align=\"left\">TRUNC(45.926, 2)<\/td>\n<td align=\"left\">45.92<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6c42\u4f59<\/td>\n<td align=\"left\">MOD(1600, 300)<\/td>\n<td align=\"left\">100<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>DUAL \u662f\u4e00\u4e2a\u2018\u4f2a\u8868\u2019&#xff0c;\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5\u51fd\u6570\u548c\u8868\u8fbe\u5f0f<\/p>\n<h4>\u65e5\u671f\u51fd\u6570<\/h4>\n<p>Oracle \u4e2d\u7684\u65e5\u671f\u578b\u6570\u636e\u5b9e\u9645\u542b\u6709\u4e24\u4e2a\u503c: \u65e5\u671f\u548c\u65f6\u95f4\u3002<br \/>\n\u5728\u65e5\u671f\u4e0a\u52a0\u4e0a\u6216\u51cf\u53bb\u4e00\u4e2a\u6570\u5b57\u7ed3\u679c\u4ecd\u4e3a\u65e5\u671f\u3002<br \/>\n<font color=\"red\">\u4e24\u4e2a\u65e5\u671f\u76f8\u51cf\u8fd4\u56de\u65e5\u671f\u4e4b\u95f4\u76f8\u5dee\u7684\u5929\u6570\u3002<\/font><br \/>\n\u65e5\u671f\u4e0d\u5141\u8bb8\u505a\u52a0\u6cd5\u8fd0\u7b97&#xff0c;\u65e0\u610f\u4e49<br \/>\n\u53ef\u4ee5\u7528\u6570\u5b57\u966424\u6765\u5411\u65e5\u671f\u4e2d\u52a0\u4e0a\u6216\u51cf\u53bb\u5929\u6570<\/p>\n<table>\n<tr>\u51fd\u6570\u63cf\u8ff0<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">MONTHS_BETWEEN<\/td>\n<td align=\"left\">\u4e24\u4e2a\u65e5\u671f\u76f8\u5dee\u7684\u6708\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">ADD_MONTHS<\/td>\n<td align=\"left\">\u5411\u6307\u5b9a\u65e5\u671f\u4e2d\u52a0\u4e0a\u82e5\u5e72\u6708\u6570<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">NEXT_DAY<\/td>\n<td align=\"left\">\u6307\u5b9a\u65e5\u671f\u7684\u4e0b\u4e00\u4e2a\u661f\u671f * \u5bf9\u5e94\u7684\u65e5\u671f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">LAST_DAY<\/td>\n<td align=\"left\">\u672c\u6708\u7684\u6700\u540e\u4e00\u5929<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">ROUND<\/td>\n<td align=\"left\">\u65e5\u671f\u56db\u820d\u4e94\u5165<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">TRUNC<\/td>\n<td align=\"left\">\u65e5\u671f\u622a\u65ad<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u8f6c\u6362\u51fd\u6570<\/h4>\n<p><img decoding=\"async\" src=\"2026-02-11njxi40jj2vp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u9690\u5f0f\u6570\u636e\u7c7b\u578b\u8f6c\u6362<br \/>\nOracle \u81ea\u52a8\u5b8c\u6210\u4e0b\u5217\u8f6c\u6362&#xff1a;<br \/>\n<img decoding=\"async\" src=\"2026-02-114qqsd4nzbby.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u663e\u5f0f\u6570\u636e\u7c7b\u578b\u8f6c\u6362<br \/>\n<img decoding=\"async\" src=\"2026-02-11ee1fvijgm3m.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11lftqhlrzusw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11mbopobpm0oi.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"2026-02-112pkwfjh4hh0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11x5355adnhrw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11c14o2fxa3rh.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-114l2tumupapv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11czhrtnt4xi2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u901a\u7528\u51fd\u6570<\/h4>\n<p>\u8fd9\u4e9b\u51fd\u6570<font color=\"red\">\u9002\u7528\u4e8e\u4efb\u4f55\u6570\u636e\u7c7b\u578b&#xff0c;\u540c\u65f6\u4e5f\u9002\u7528\u4e8e\u7a7a\u503c&#xff1a;<\/font><br \/>\nNVL (expr1, expr2)<br \/>\nNVL2 (expr1, expr2, expr3)<br \/>\nNULLIF (expr1, expr2)<br \/>\nCOALESCE (expr1, expr2, \u2026, exprn)<\/p>\n<p><img decoding=\"async\" src=\"2026-02-115fyymwbztmw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-115wwucxcv0eq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11gro1numizz0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11syuyxvpkwkk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f7f\u7528 COALESCE \u51fd\u6570<br \/>\nCOALESCE \u4e0e NVL \u76f8\u6bd4\u7684\u4f18\u70b9\u5728\u4e8e COALESCE \u53ef\u4ee5\u540c\u65f6\u5904\u7406\u4ea4\u66ff\u7684\u591a\u4e2a\u503c\u3002<br \/>\n\u5982\u679c\u7b2c\u4e00\u4e2a\u8868\u8fbe\u5f0f\u4e3a\u7a7a,\u5219\u8fd4\u56de\u4e0b\u4e00\u4e2a\u8868\u8fbe\u5f0f&#xff0c;\u5bf9\u5176\u4ed6\u7684\u53c2\u6570\u8fdb\u884cCOALESCE \u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11kijuan5p4uo.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u6761\u4ef6\u8868\u8fbe\u5f0f<\/h4>\n<p>\u5728 SQL \u8bed\u53e5\u4e2d\u4f7f\u7528IF-THEN-ELSE \u903b\u8f91<br \/>\n\u4f7f\u7528\u4e24\u79cd\u65b9\u6cd5:<br \/>\nCASE \u8868\u8fbe\u5f0f<br \/>\nDECODE \u51fd\u6570<\/p>\n<p><img decoding=\"async\" src=\"2026-02-11ezn5ioy0lex.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11e4wgh0jpinf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11bjrlioztcbc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-114zwl1yhzlh0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11yy2eqvj3ups.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5d4c\u5957\u51fd\u6570<\/h4>\n<p><img decoding=\"async\" src=\"2026-02-112djkwa2b4qz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-113fng3qabm0c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>7.\u591a\u8868\u67e5\u8be2<\/h3>\n<p><font color=\"red\">\u7b1b\u5361\u5c14\u96c6\u4f1a\u5728\u4e0b\u9762\u6761\u4ef6\u4e0b\u4ea7\u751f:<\/font><br \/>\n\u7701\u7565\u8fde\u63a5\u6761\u4ef6<br \/>\n\u8fde\u63a5\u6761\u4ef6\u65e0\u6548<br \/>\n\u6240\u6709\u8868\u4e2d\u7684\u6240\u6709\u884c\u4e92\u76f8\u8fde\u63a5<\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u7b1b\u5361\u5c14\u96c6&#xff0c; \u53ef\u4ee5\u5728 WHERE \u52a0\u5165<font color=\"blue\">\u6709\u6548<\/font>\u7684\u8fde\u63a5\u6761\u4ef6\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11yrp2gye1gmf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u7b49\u503c\u8fde\u63a5<\/p>\n<p><span class=\"token keyword\">SELECT<\/span> employees<span class=\"token punctuation\">.<\/span>employee_id<span class=\"token punctuation\">,<\/span> employees<span class=\"token punctuation\">.<\/span>last_name<span class=\"token punctuation\">,<\/span><br \/>\n       employees<span class=\"token punctuation\">.<\/span>department_id<span class=\"token punctuation\">,<\/span> departments<span class=\"token punctuation\">.<\/span>department_id<span class=\"token punctuation\">,<\/span><br \/>\n       departments<span class=\"token punctuation\">.<\/span>location_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<span class=\"token punctuation\">,<\/span> departments<br \/>\n<span class=\"token keyword\">WHERE<\/span>  employees<span class=\"token punctuation\">.<\/span>department_id <span class=\"token operator\">&#061;<\/span> departments<span class=\"token punctuation\">.<\/span>department_id<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u533a\u5206\u91cd\u590d\u7684\u5217\u540d<br \/>\n<font color=\"red\">\u4f7f\u7528\u8868\u540d\u524d\u7f00\u5728\u591a\u4e2a\u8868\u4e2d\u533a\u5206\u76f8\u540c\u7684\u5217\u3002<\/font><br \/>\n\u5728\u4e0d\u540c\u8868\u4e2d\u5177\u6709\u76f8\u540c\u5217\u540d\u7684\u5217\u53ef\u4ee5\u7528<font color=\"red\">\u8868\u7684\u522b\u540d<\/font>\u52a0\u4ee5\u533a\u5206\u3002<\/p>\n<p>\u8fde\u63a5\u591a\u4e2a\u8868<br \/>\n\u8fde\u63a5 n\u4e2a\u8868,\u81f3\u5c11\u9700\u8981 n-1\u4e2a\u8fde\u63a5\u6761\u4ef6\u3002 \u4f8b\u5982&#xff1a;\u8fde\u63a5\u4e09\u4e2a\u8868&#xff0c;\u81f3\u5c11\u9700\u8981\u4e24\u4e2a\u8fde\u63a5\u6761\u4ef6\u3002<\/p>\n<p>\u975e\u7b49\u503c\u8fde\u63a5<\/p>\n<p><span class=\"token keyword\">SELECT<\/span> e<span class=\"token punctuation\">.<\/span>last_name<span class=\"token punctuation\">,<\/span> e<span class=\"token punctuation\">.<\/span>salary<span class=\"token punctuation\">,<\/span> j<span class=\"token punctuation\">.<\/span>grade_level<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees e<span class=\"token punctuation\">,<\/span> job_grades j<br \/>\n<span class=\"token keyword\">WHERE<\/span>  e<span class=\"token punctuation\">.<\/span>salary<br \/>\n       <span class=\"token operator\">BETWEEN<\/span> j<span class=\"token punctuation\">.<\/span>lowest_sal <span class=\"token operator\">AND<\/span> j<span class=\"token punctuation\">.<\/span>highest_sal<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8211;salary \u5728j.lowest_sal\u548cj.highest_sal\u4e4b\u95f4<\/span><\/p>\n<p>\u5185\u8fde\u63a5\u548c\u5916\u8fde\u63a5<br \/>\n\u5185\u8fde\u63a5: \u5408\u5e76\u5177\u6709\u540c\u4e00\u5217\u7684\u4e24\u4e2a\u4ee5\u4e0a\u7684\u8868\u7684\u884c, \u7ed3\u679c\u96c6\u4e2d\u4e0d\u5305\u542b\u4e00\u4e2a\u8868\u4e0e\u53e6\u4e00\u4e2a\u8868\u4e0d\u5339\u914d\u7684\u884c<br \/>\n\u5916\u8fde\u63a5: \u4e24\u4e2a\u8868\u5728\u8fde\u63a5\u8fc7\u7a0b\u4e2d\u9664\u4e86\u8fd4\u56de\u6ee1\u8db3\u8fde\u63a5\u6761\u4ef6\u7684\u884c\u4ee5\u5916\u8fd8\u8fd4\u56de\u5de6&#xff08;\u6216\u53f3&#xff09;\u8868\u4e2d\u4e0d\u6ee1\u8db3\u6761\u4ef6\u7684\u884c &#xff0c;\u8fd9\u79cd\u8fde\u63a5\u79f0\u4e3a\u5de6&#xff08;\u6216\u53f3&#xff09; \u5916\u8fde\u63a5\u3002\u6ca1\u6709\u5339\u914d\u7684\u884c\u65f6, \u7ed3\u679c\u8868\u4e2d\u76f8\u5e94\u7684\u5217\u4e3a\u7a7a(NULL). \u5916\u8fde\u63a5\u7684 WHERE \u5b50\u53e5\u6761\u4ef6\u7c7b\u4f3c\u4e8e\u5185\u90e8\u8fde\u63a5, \u4f46<font color=\"blue\">\u8fde\u63a5\u6761\u4ef6\u4e2d\u6ca1\u6709\u5339\u914d\u884c\u7684\u8868\u7684\u5217\u540e\u9762<\/font>\u8981\u52a0\u5916\u8fde\u63a5\u8fd0\u7b97\u7b26, \u5373\u7528\u5706\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u52a0\u53f7<font color=\"blue\">(&#043;). <\/font><br \/>\n<img decoding=\"async\" src=\"2026-02-110tnxnz3ngii.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>8.\u5206\u7ec4\u51fd\u6570<\/h3>\n<h3>9.\u5b50\u67e5\u8be2<\/h3>\n<p><img decoding=\"async\" src=\"2026-02-11524cdu0va5t.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>\u5b50\u67e5\u8be2\u8bed\u6cd5<\/p>\n<p><span class=\"token keyword\">SELECT<\/span>select_list<br \/>\n<span class=\"token keyword\">FROM<\/span><span class=\"token keyword\">table<\/span><br \/>\n<span class=\"token keyword\">WHERE<\/span>expr operator<br \/>\n <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">SELECT<\/span>select_list <span class=\"token keyword\">FROM<\/span> <span class=\"token keyword\">table<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><font color=\"red\">\u5b50\u67e5\u8be2 (\u5185\u67e5\u8be2) \u5728\u4e3b\u67e5\u8be2\u4e4b\u524d\u4e00\u6b21\u6267\u884c\u5b8c\u6210\u3002<br \/>\n\u5b50\u67e5\u8be2\u7684\u7ed3\u679c\u88ab\u4e3b\u67e5\u8be2(\u5916\u67e5\u8be2)\u4f7f\u7528 \u3002<\/font><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> last_name<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">WHERE<\/span><br \/>\nsalary <span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">SELECT<\/span> salary <span class=\"token keyword\">FROM<\/span>   employees <span class=\"token keyword\">WHERE<\/span>  last_name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;Abel&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">&#8211;11000<\/span><br \/>\n<span class=\"token comment\">&#8211;\u5b9e\u9645\u4e0a\u4e3asalary &gt;11000<\/span><\/p>\n<p>\u6ce8\u610f\u4e8b\u9879<br \/>\n<font color=\"red\">\u5b50\u67e5\u8be2\u8981\u5305\u542b\u5728\u62ec\u53f7\u5185\u3002<br \/>\n\u5c06\u5b50\u67e5\u8be2\u653e\u5728\u6bd4\u8f83\u6761\u4ef6\u7684\u53f3\u4fa7\u3002<\/font><br \/>\n\u5355\u884c\u64cd\u4f5c\u7b26\u5bf9\u5e94\u5355\u884c\u5b50\u67e5\u8be2&#xff0c;\u591a\u884c\u64cd\u4f5c\u7b26\u5bf9\u5e94\u591a\u884c\u5b50\u67e5\u8be2\u3002<\/p>\n<p>\u5b50\u67e5\u8be2\u7c7b\u578b<br \/>\n<img decoding=\"async\" src=\"2026-02-11wiog0qwtebk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5355\u884c\u5b50\u67e5\u8be2<br \/>\n\u53ea\u8fd4\u56de\u4e00\u884c&#xff0c;\u4f7f\u7528\u5355\u884c\u6bd4\u8f83\u64cd\u4f5c\u7b26<\/p>\n<p><span class=\"token comment\">&#8211;\u9898\u76ee&#xff1a;\u8fd4\u56dejob_id\u4e0e141\u53f7\u5458\u5de5\u76f8\u540c&#xff0c;salary\u6bd4143\u53f7\u5458\u5de5\u591a\u7684\u5458\u5de5\u59d3\u540d&#xff0c;job_id \u548c\u5de5\u8d44<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> last_name<span class=\"token punctuation\">,<\/span> job_id<span class=\"token punctuation\">,<\/span> salary<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">WHERE<\/span>  job_id <span class=\"token operator\">&#061;<\/span><br \/>\n                <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">SELECT<\/span> job_id<br \/>\n                 <span class=\"token keyword\">FROM<\/span>   employees<br \/>\n                 <span class=\"token keyword\">WHERE<\/span>  employee_id <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">141<\/span><span class=\"token punctuation\">)<\/span><span class=\"token comment\">&#8211;ST_CLERK<\/span><\/p>\n<p><span class=\"token operator\">AND<\/span>    salary <span class=\"token operator\">&gt;<\/span><br \/>\n                <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">SELECT<\/span> salary<br \/>\n                 <span class=\"token keyword\">FROM<\/span>   employees<br \/>\n                 <span class=\"token keyword\">WHERE<\/span>  employee_id <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">143<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">&#8211;2600<\/span><\/p>\n<p><span class=\"token comment\">&#8211;\u9898\u76ee&#xff1a;\u8fd4\u56de\u516c\u53f8\u5de5\u8d44\u6700\u5c11\u7684\u5458\u5de5\u7684last_name,job_id\u548csalary<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> last_name<span class=\"token punctuation\">,<\/span> job_id<span class=\"token punctuation\">,<\/span> salary<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">WHERE<\/span>  salary <span class=\"token operator\">&#061;<\/span><br \/>\n                <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">SELECT<\/span> <span class=\"token function\">MIN<\/span><span class=\"token punctuation\">(<\/span>salary<span class=\"token punctuation\">)<\/span><br \/>\n                 <span class=\"token keyword\">FROM<\/span>   employees<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><span class=\"token comment\">&#8211;\u6700\u5c0f\u5de5\u8d44&#xff1a;2500<\/span><\/p>\n<p>\u5b50\u67e5\u8be2\u4e2d\u7684 HAVING \u5b50\u53e5<br \/>\n\u9996\u5148\u6267\u884c\u5b50\u67e5\u8be2\u3002<br \/>\n\u5411\u4e3b\u67e5\u8be2\u4e2d\u7684HAVING \u5b50\u53e5\u8fd4\u56de\u7ed3\u679c\u3002<br \/>\n<img decoding=\"async\" src=\"2026-02-11buuuvoa4a20.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11jt24fzc0zvr.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11ubl225syxif.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u591a\u884c\u5b50\u67e5\u8be2<br \/>\n\u8fd4\u56de\u591a\u884c\u3002<br \/>\n\u4f7f\u7528\u591a\u884c\u6bd4\u8f83\u64cd\u4f5c\u7b26<\/p>\n<table>\n<tr>\u64cd\u4f5c\u7b26\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>IN<\/td>\n<td>\u7b49\u4e8e\u5217\u8868\u4e2d\u7684\u4efb\u610f\u4e00\u4e2a<\/td>\n<\/tr>\n<tr>\n<td>ANY<\/td>\n<td>\u548c\u5b50\u67e5\u8be2\u8fd4\u56de\u7684\u67d0\u4e00\u4e2a\u503c\u6bd4\u8f83<\/td>\n<\/tr>\n<tr>\n<td>ALL<\/td>\n<td>\u548c\u5b50\u67e5\u8be2\u8fd4\u56de\u7684\u6240\u6709\u503c\u6bd4\u8f83<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img decoding=\"async\" src=\"2026-02-11vpq4rmm3xu0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11fcowqm54ptx.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>10.\u521b\u5efa\u548c\u7ba1\u7406\u8868<\/h3>\n<h3>11.\u6570\u636e\u5904\u7406<\/h3>\n<h3>12.\u7ea6\u675f<\/h3>\n<h3>13.\u89c6\u56fe<\/h3>\n<h3>14.\u5176\u5b83\u6570\u636e\u5e93\u5bf9\u8c61<\/h3>\n<h3>30.SET\u8fd0\u7b97\u7b26\u53ca\u7ec3\u4e60<\/h3>\n<p>\u5404\u79cdSET \u64cd\u4f5c\u7b26<br \/>\n<img decoding=\"async\" src=\"2026-02-11l5mylxcvnx3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4f7f\u7528 SET \u64cd\u4f5c\u7b26\u6ce8\u610f\u4e8b\u9879<\/p>\n<ul>\n<li>\u5728SELECT \u5217\u8868\u4e2d\u7684\u5217\u540d\u548c\u8868\u8fbe\u5f0f\u5728\u6570\u91cf\u548c\u6570\u636e\u7c7b\u578b\u4e0a\u8981\u76f8\u5bf9\u5e94<\/li>\n<li>\u62ec\u53f7\u53ef\u4ee5\u6539\u53d8\u6267\u884c\u7684\u987a\u5e8f<\/li>\n<li>ORDER BY \u5b50\u53e5&#xff1a;\u53ea\u80fd\u5728\u8bed\u53e5\u7684\u6700\u540e\u51fa\u73b0&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e00\u4e2a\u67e5\u8be2\u4e2d\u7684\u5217\u540d, \u522b\u540d\u6216\u76f8\u5bf9\u4f4d\u7f6e<\/li>\n<li>\u7cfb\u7edf\u5c06\u7b2c\u4e00\u4e2a\u67e5\u8be2\u7684\u5217\u540d\u663e\u793a\u5728\u8f93\u51fa\u4e2d<\/li>\n<li>\u9664 UNION ALL\u4e4b\u5916&#xff0c;\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5c06\u91cd\u590d\u7684\u8bb0\u5f55\u5220\u9664<\/li>\n<li>\u9664 UNION ALL\u4e4b\u5916&#xff0c;\u7cfb\u7edf\u81ea\u52a8\u6309\u7167\u7b2c\u4e00\u4e2a\u67e5\u8be2\u4e2d\u7684\u7b2c\u4e00\u4e2a\u5217\u7684\u5347\u5e8f\u6392\u5217<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2026-02-11sbhffktge3z.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">UNION<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   job_history<span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"2026-02-11vqwwmng2hik.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11ji5zy2zwqna.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<span class=\"token punctuation\">,<\/span> department_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">UNION<\/span> <span class=\"token keyword\">ALL<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<span class=\"token punctuation\">,<\/span> department_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   job_history<br \/>\n<span class=\"token keyword\">ORDER<\/span> <span class=\"token keyword\">BY<\/span>  employee_id<span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"2026-02-11afocdmqrnel.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11vc2aqfgfscz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\n<span class=\"token keyword\">INTERSECT<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span> job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   job_history<span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"2026-02-11ybo0frnqrer.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-111njw333ox14.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span>job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   employees<br \/>\nMINUS<br \/>\n<span class=\"token keyword\">SELECT<\/span> employee_id<span class=\"token punctuation\">,<\/span>job_id<br \/>\n<span class=\"token keyword\">FROM<\/span>   job_history<span class=\"token punctuation\">;<\/span><\/p>\n<p><img decoding=\"async\" src=\"2026-02-115c35nbksaqb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11q0qi50m0edf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"2026-02-11f4gnqpwkk5y.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f4da;Oracle\u5b66\u4e60\u8bb0\u5f55&#xff0c;\u9646\u7eed\u66f4\u65b0<br \/>\n1.Oracle\u6570\u636e\u5e93\u7684\u5b89\u88c5\u548c\u914d\u7f6e<br \/>\nOracle\u6570\u636e\u5e93\u662f\u4e00\u79cd\u7f51\u7edc\u4e0a\u7684\u6570\u636e\u5e93, \u5b83\u5728\u7f51\u7edc\u4e0a\u652f\u6301\u591a\u7528\u6237, \u652f\u6301\u670d\u52a1\u5668\/\u5ba2\u6237\u673a\u7b49\u90e8\u7f72(\u6216\u914d\u7f6e)<br \/>\n\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u673a\u662f\u8f6f\u4ef6\u6982\u5ff5, \u5b83\u4eec\u4e0e\u8ba1\u7b97\u673a\u786c\u4ef6\u4e0d\u5b58\u5728\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb. \u5373: \u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u65e2\u53ef\u4ee5\u5145\u5f53\u670d\u52a1\u5668\u53c8\u53ef\u4ee5\u5145\u5f53\u5ba2\u6237\u673a, \u6216\u8005, \u4e00\u53f0\u8ba1\u7b97\u673a\u53ea\u5145\u5f53\u670d\u52a1\u5668\u6216\u53ea\u5145\u5f53\u5145\u5f53\u5ba2\u6237\u673a.<br \/>\nOracle \u6570\u636e\u5e93\u4f53\u7cfb\u7ed3\u6784\u7b80\u4ecb<br \/>\n\u5e73\u5e38\u6240\u8bf4\u7684 Oracle \u6216 Oracle \u6570\u636e\u5e93\u6307\u7684\u662f Oracle<\/p>\n","protected":false},"author":2,"featured_media":74991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[604,100,43],"topic":[],"class_list":["post-75011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-oracle","tag-100","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/75011.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f4da;Oracle\u5b66\u4e60\u8bb0\u5f55&#xff0c;\u9646\u7eed\u66f4\u65b0 1.Oracle\u6570\u636e\u5e93\u7684\u5b89\u88c5\u548c\u914d\u7f6e Oracle\u6570\u636e\u5e93\u662f\u4e00\u79cd\u7f51\u7edc\u4e0a\u7684\u6570\u636e\u5e93, \u5b83\u5728\u7f51\u7edc\u4e0a\u652f\u6301\u591a\u7528\u6237, \u652f\u6301\u670d\u52a1\u5668\/\u5ba2\u6237\u673a\u7b49\u90e8\u7f72(\u6216\u914d\u7f6e) \u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u673a\u662f\u8f6f\u4ef6\u6982\u5ff5, \u5b83\u4eec\u4e0e\u8ba1\u7b97\u673a\u786c\u4ef6\u4e0d\u5b58\u5728\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb. \u5373: \u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u65e2\u53ef\u4ee5\u5145\u5f53\u670d\u52a1\u5668\u53c8\u53ef\u4ee5\u5145\u5f53\u5ba2\u6237\u673a, \u6216\u8005, \u4e00\u53f0\u8ba1\u7b97\u673a\u53ea\u5145\u5f53\u670d\u52a1\u5668\u6216\u53ea\u5145\u5f53\u5145\u5f53\u5ba2\u6237\u673a. Oracle \u6570\u636e\u5e93\u4f53\u7cfb\u7ed3\u6784\u7b80\u4ecb \u5e73\u5e38\u6240\u8bf4\u7684 Oracle \u6216 Oracle \u6570\u636e\u5e93\u6307\u7684\u662f Oracle\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/75011.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-11T00:11:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001126-698bc92e01d15.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75011.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/75011.html\",\"name\":\"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-11T00:11:31+00:00\",\"dateModified\":\"2026-02-11T00:11:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/75011.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/75011.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/75011.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/75011.html","og_locale":"zh_CN","og_type":"article","og_title":"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f4da;Oracle\u5b66\u4e60\u8bb0\u5f55&#xff0c;\u9646\u7eed\u66f4\u65b0 1.Oracle\u6570\u636e\u5e93\u7684\u5b89\u88c5\u548c\u914d\u7f6e Oracle\u6570\u636e\u5e93\u662f\u4e00\u79cd\u7f51\u7edc\u4e0a\u7684\u6570\u636e\u5e93, \u5b83\u5728\u7f51\u7edc\u4e0a\u652f\u6301\u591a\u7528\u6237, \u652f\u6301\u670d\u52a1\u5668\/\u5ba2\u6237\u673a\u7b49\u90e8\u7f72(\u6216\u914d\u7f6e) \u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u673a\u662f\u8f6f\u4ef6\u6982\u5ff5, \u5b83\u4eec\u4e0e\u8ba1\u7b97\u673a\u786c\u4ef6\u4e0d\u5b58\u5728\u4e00\u4e00\u5bf9\u5e94\u7684\u5173\u7cfb. \u5373: \u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u65e2\u53ef\u4ee5\u5145\u5f53\u670d\u52a1\u5668\u53c8\u53ef\u4ee5\u5145\u5f53\u5ba2\u6237\u673a, \u6216\u8005, \u4e00\u53f0\u8ba1\u7b97\u673a\u53ea\u5145\u5f53\u670d\u52a1\u5668\u6216\u53ea\u5145\u5f53\u5145\u5f53\u5ba2\u6237\u673a. Oracle \u6570\u636e\u5e93\u4f53\u7cfb\u7ed3\u6784\u7b80\u4ecb \u5e73\u5e38\u6240\u8bf4\u7684 Oracle \u6216 Oracle \u6570\u636e\u5e93\u6307\u7684\u662f Oracle","og_url":"https:\/\/www.wsisp.com\/helps\/75011.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-11T00:11:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260211001126-698bc92e01d15.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/75011.html","url":"https:\/\/www.wsisp.com\/helps\/75011.html","name":"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-11T00:11:31+00:00","dateModified":"2026-02-11T00:11:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/75011.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/75011.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/75011.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Oracle 10g \u5b89\u88c5\u53ca\u5b66\u4e60"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=75011"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/75011\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/74991"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=75011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=75011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=75011"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=75011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}