{"id":15827,"date":"2023-12-04T22:58:35","date_gmt":"2023-12-04T14:58:35","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=15827"},"modified":"2023-12-04T23:17:36","modified_gmt":"2023-12-04T15:17:36","slug":"oracle-zhong-ddl-he-dml-fen-bie-dai-biao-shen-me","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/04\/oracle-zhong-ddl-he-dml-fen-bie-dai-biao-shen-me\/","title":{"rendered":"Oracle \u4e2d DDL \u548c DML \u5206\u522b\u4ee3\u8868\u4ec0\u4e48\uff1f"},"content":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0cDDL \u548c DML \u662f\u4e24\u4e2a\u4e0d\u540c\u7684SQL\u8bed\u8a00\u7c7b\u522b\uff0c\u7528\u4e8e\u6267\u884c\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u3002<\/p>\n<ol>\n<li><strong>DDL\uff08Data Definition Language\uff09\uff1a<\/strong>\n<ul>\n<li>DDL \u662f\u7528\u4e8e\u5b9a\u4e49\u6570\u636e\u5e93\u7ed3\u6784\u548c\u6a21\u5f0f\u7684\u8bed\u8a00\u3002<\/li>\n<li>DDL \u5305\u62ec\u521b\u5efa\u3001\u4fee\u6539\u548c\u5220\u9664\u6570\u636e\u5e93\u5bf9\u8c61\uff08\u5982\u8868\u3001\u7d22\u5f15\u3001\u89c6\u56fe\u3001\u7528\u6237\u7b49\uff09\u7684\u8bed\u53e5\u3002<\/li>\n<li>\u5e38\u89c1\u7684 DDL \u547d\u4ee4\u5305\u62ec <code>CREATE<\/code>\u3001<code>ALTER<\/code> \u548c <code>DROP<\/code>\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-sql  line-numbers\">CREATE TABLE employees (\n  employee_id NUMBER(5) PRIMARY KEY,\n  first_name VARCHAR2(50),\n  last_name VARCHAR2(50)\n);\n<\/code><\/pre>\n<p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>CREATE TABLE<\/code> \u662f\u4e00\u4e2aDDL\u8bed\u53e5\uff0c\u7528\u4e8e\u521b\u5efa\u540d\u4e3a <code>employees<\/code> \u7684\u8868\u3002<\/p>\n<\/li>\n<li>\n<p><strong>DML\uff08Data Manipulation Language\uff09\uff1a<\/strong><\/p>\n<ul>\n<li>DML \u662f\u7528\u4e8e\u64cd\u4f5c\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u6570\u636e\u7684\u8bed\u8a00\u3002<\/li>\n<li>DML \u5305\u62ec\u63d2\u5165\u3001\u66f4\u65b0\u548c\u5220\u9664\u6570\u636e\u7684\u8bed\u53e5\u3002<\/li>\n<li>\u5e38\u89c1\u7684 DML \u547d\u4ee4\u5305\u62ec <code>SELECT<\/code>\u3001<code>INSERT<\/code>\u3001<code>UPDATE<\/code> \u548c <code>DELETE<\/code>\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-sql  line-numbers\">INSERT INTO employees (employee_id, first_name, last_name)\nVALUES (1, 'John', 'Doe');\n<\/code><\/pre>\n<p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>INSERT INTO<\/code> \u662f\u4e00\u4e2aDML\u8bed\u53e5\uff0c\u7528\u4e8e\u5411\u540d\u4e3a <code>employees<\/code> \u7684\u8868\u63d2\u5165\u6570\u636e\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u603b\u4f53\u800c\u8a00\uff0cDDL \u7528\u4e8e\u5b9a\u4e49\u6570\u636e\u5e93\u7ed3\u6784\uff0c\u800c DML \u7528\u4e8e\u5bf9\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u64cd\u4f5c\u3002\u5728\u5b9e\u9645\u7684\u6570\u636e\u5e93\u7ba1\u7406\u548c\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0cDDL \u548c DML \u901a\u5e38\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u4fbf\u521b\u5efa\u548c\u7ef4\u62a4\u6570\u636e\u5e93\u5bf9\u8c61\uff0c\u5e76\u5bf9\u8fd9\u4e9b\u5bf9\u8c61\u4e2d\u7684\u6570\u636e\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0cDDL \u548c DML \u662f\u4e24\u4e2a\u4e0d\u540c\u7684SQL\u8bed\u8a00\u7c7b\u522b\uff0c\u7528\u4e8e\u6267\u884c\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u3002 D [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-15827","post","type-post","status-publish","format-standard","hentry","category-oracel"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=15827"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15827\/revisions"}],"predecessor-version":[{"id":15828,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15827\/revisions\/15828"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=15827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=15827"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=15827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}