{"id":252,"date":"2007-04-08T19:07:50","date_gmt":"2007-04-09T00:07:50","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/index.php\/2007\/04\/08\/desc-sql-tables-2\/"},"modified":"2007-04-08T19:07:50","modified_gmt":"2007-04-09T00:07:50","slug":"desc-sql-tables-2","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2007\/04\/08\/desc-sql-tables-2\/","title":{"rendered":"Desc SQL Tables"},"content":{"rendered":"<p>When working with Oracle, SQL Server, or MySQL you might need to remind yourself the names of the columns for a table, I know I do.  To describe the details of a table you can execute the following from a Oracle or MySQL client.<\/p>\n<p>[source:sql]<br \/>\ndesc &lt;table_name&gt;<br \/>\n[\/source]<\/p>\n<p>And just like everything else that Microsoft does, SQL Server does not follow the conventions or standards of other vendors and instead uses a different keyword to describe a given table.  In SQL Server you display detailed information about a table use the sp_help command.<\/p>\n<p>[source:sql]<br \/>\nsp_help &lt;table_name&gt;<br \/>\n[\/source]<\/p>\n<p>If you are interested in listing all the available tables in a database, for either Oracle, SQL Server, or MySQL, then you might want to take a look at the <a href=\"http:\/\/www.juixe.com\/techknow\/index.php\/2006\/04\/20\/show-sql-tables\/\">Show SQL Tables<\/a> post.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/desc\" rel=\"tag\">desc<\/a>, <a href=\"http:\/\/technorati.com\/tag\/oracle\" rel=\"tag\"> oracle<\/a>, <a href=\"http:\/\/technorati.com\/tag\/mysql\" rel=\"tag\"> mysql<\/a>, <a href=\"http:\/\/technorati.com\/tag\/sqlserver\" rel=\"tag\"> sqlserver<\/a>, <a href=\"http:\/\/technorati.com\/tag\/sp_help\" rel=\"tag\"> sp_help<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When working with Oracle, SQL Server, or MySQL you might need to remind yourself the names of the columns for a table, I know I do. To describe the details of a table you can execute the following from a Oracle or MySQL client. [source:sql] desc &lt;table_name&gt; [\/source] And just like everything else that Microsoft [&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":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-44","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/252"}],"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=252"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}