{"id":80,"date":"2006-04-20T21:19:37","date_gmt":"2006-04-21T02:19:37","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/index.php\/2006\/04\/20\/show-sql-tables\/"},"modified":"2012-07-18T11:28:21","modified_gmt":"2012-07-18T18:28:21","slug":"show-sql-tables","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2006\/04\/20\/show-sql-tables\/","title":{"rendered":"Show SQL Tables"},"content":{"rendered":"<p>When working with a database sometimes you will want to look up all the available database tables.  To show the available tables in SQL Server you can do the following:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nselect * from information_schema.tables;\r\n<\/pre>\n<p>In Oracle you can use any of the following statements:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nselect * from user_tables;\r\nselect * from all_tables;\r\n<\/pre>\n<p>In MySQL I have been using the following since MySQL 3:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nshow tables;\r\n<\/pre>\n<p>But in MySQL 5 you can use the following:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nselect * from information_schema.tables;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When working with a database sometimes you will want to look up all the available database tables. To show the available tables in SQL Server you can do the following: select * from information_schema.tables; In Oracle you can use any of the following statements: select * from user_tables; select * from all_tables; In MySQL I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[23,3],"tags":[414,774,773,534,807,557],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-1i","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/80"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=80"}],"version-history":[{"count":2,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":1663,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/80\/revisions\/1663"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}