{"id":77,"date":"2008-06-18T11:28:16","date_gmt":"2008-06-18T15:28:16","guid":{"rendered":"http:\/\/www.dev-notes.com\/blog\/2008\/06\/18\/drop-columns-in-an-oracle-table\/"},"modified":"2008-06-18T11:28:16","modified_gmt":"2008-06-18T15:28:16","slug":"drop-columns-in-an-oracle-table","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2008\/06\/18\/drop-columns-in-an-oracle-table\/","title":{"rendered":"Drop columns in an Oracle table"},"content":{"rendered":"<p>The following example demonstrates how it could be done.<\/p>\n<p class=\"code\">alter table schema1.my_table drop column unused_field;<\/p>\n<p>There is also an alternative syntax that could be used to drop multiple fields at once.<\/p>\n<pre class=\"code\">\nalter table schema1.my_table drop (unused_field); -- Dropping one field only\nalter table schema1.my_table drop (unused_field1, unused_field2); -- Dropping two fields\n<\/pre>\n<p>In the second example, if you need to drop more than two fields, just keep adding them within the parenthesis, separated by commas.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;alter table&#8221; command in Oracle can be used to drop columns that you no longer need to use.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-oracle"],"_links":{"self":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":0,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}