<br />
<b>Notice</b>:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>breadcrumb-navxt</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in <b>/home/devtools/public_html/blog/wp-includes/functions.php</b> on line <b>6131</b><br />
{"id":470,"date":"2012-11-26T12:21:00","date_gmt":"2012-11-26T15:21:00","guid":{"rendered":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/"},"modified":"2021-09-04T18:17:51","modified_gmt":"2021-09-04T21:17:51","slug":"sintaxe-alternativa-ao-select-from","status":"publish","type":"post","link":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/","title":{"rendered":"Sintaxe alternativa ao Select * From"},"content":{"rendered":"<p>O comando mais utilizado pelos analistas de banco de dados sem sombra de d\u00favidas \u00e9 o <i>Select * From, <\/i>este comando at\u00e9 pode ser muito criticado, pois, existem estudos que comprovam a queda de performance em seu uso em rela\u00e7\u00e3o a especifica\u00e7\u00e3o dos campos no select.<\/p>\n<p>Mas pensando na economia de linhas de c\u00f3digos digitados, nosso colega elefante disponibiliza nativamente o comando <i>Table<\/i>, que pode substituir o <i>Select * From<\/i>.<\/p>\n<p>Vejamos um exemplo de uso do comando table:<\/p>\n<pre style=\"background-image: url('http:\/\/2.bp.blogspot.com\/_z5ltvMQPaa8\/SjJXr_U2YBI\/AAAAAAAAAAM\/46OqEP32CJ8\/s320\/codebg.gif'); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\"> Table paposql.pessoa;  \n<\/code><\/pre>\n<pre style=\"background-image: url('http:\/\/2.bp.blogspot.com\/_z5ltvMQPaa8\/SjJXr_U2YBI\/AAAAAAAAAAM\/46OqEP32CJ8\/s320\/codebg.gif'); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;\"><code style=\"color: black; word-wrap: normal;\"> id nome sobrenome dt_nascimento  \n  1 Papo Sql       2012-01-01  \n<\/code><\/pre>\n<p>Veja que o resultado \u00e9 o mesmo do comando <i>Select * From<\/i>. O uso do comando n\u00e3o reflete ganho de performance (Ao menos nos testes com o explain que fiz), \u00e9 somente um &#8216;economizador de c\u00f3digo&#8217; que pode ajudar muito, imagina quem digita 50 vezes por dia <i>Select * From<\/i>? S\u00e3o 400 caracteres digitados a menos por dia.<\/p>\n<p>Um observa\u00e7\u00e3o a ser feita \u00e9 que, o comando \u00e9 nativo somente a partir da vers\u00e3o 8.4 do PostgreSQL<\/p>\n<p>Fica a dica, abra\u00e7os a todos e at\u00e9 a pr\u00f3xima.<i><\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O comando mais utilizado pelos analistas de banco de dados sem sombra de d\u00favidas \u00e9 o Select * From, este comando at\u00e9 pode ser muito criticado, pois, existem estudos que comprovam a queda de performance em seu uso em rela\u00e7\u00e3o a especifica\u00e7\u00e3o dos campos no select. Mas pensando na economia de linhas de c\u00f3digos digitados, &#8230; <a title=\"Sintaxe alternativa ao Select * From\" class=\"read-more\" href=\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\" aria-label=\"More on Sintaxe alternativa ao Select * From\">Ler mais<\/a><\/p>\n","protected":false},"author":1,"featured_media":793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272,31],"tags":[],"class_list":["post-470","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-banco-de-dados","category-postgresql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Sintaxe alternativa ao Select * From<\/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:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sintaxe alternativa ao Select * From\" \/>\n<meta property=\"og:description\" content=\"O comando mais utilizado pelos analistas de banco de dados sem sombra de d\u00favidas \u00e9 o Select * From, este comando at\u00e9 pode ser muito criticado, pois, existem estudos que comprovam a queda de performance em seu uso em rela\u00e7\u00e3o a especifica\u00e7\u00e3o dos campos no select. Mas pensando na economia de linhas de c\u00f3digos digitados, ... Ler mais\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\" \/>\n<meta property=\"og:site_name\" content=\"Devtools\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-26T15:21:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-04T21:17:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fabiano Abreu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabiano Abreu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\"},\"author\":{\"name\":\"Fabiano Abreu\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"headline\":\"Sintaxe alternativa ao Select * From\",\"datePublished\":\"2012-11-26T15:21:00+00:00\",\"dateModified\":\"2021-09-04T21:17:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\"},\"wordCount\":169,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"image\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png\",\"articleSection\":[\"Banco de Dados\",\"PostgreSQL\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\",\"url\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\",\"name\":\"Sintaxe alternativa ao Select * From\",\"isPartOf\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png\",\"datePublished\":\"2012-11-26T15:21:00+00:00\",\"dateModified\":\"2021-09-04T21:17:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage\",\"url\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png\",\"contentUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png\",\"width\":200,\"height\":200,\"caption\":\"postgresql\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/devtools.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sintaxe alternativa ao Select * From\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#website\",\"url\":\"https:\/\/devtools.com.br\/blog\/\",\"name\":\"Devtools\",\"description\":\"Sua caixa de ferramentas online\",\"publisher\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devtools.com.br\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\",\"name\":\"Fabiano Abreu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png\",\"contentUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png\",\"width\":184,\"height\":184,\"caption\":\"Fabiano Abreu\"},\"logo\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/devtools.com.br\/blog\"],\"url\":\"https:\/\/devtools.com.br\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sintaxe alternativa ao Select * From","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:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/","og_locale":"pt_BR","og_type":"article","og_title":"Sintaxe alternativa ao Select * From","og_description":"O comando mais utilizado pelos analistas de banco de dados sem sombra de d\u00favidas \u00e9 o Select * From, este comando at\u00e9 pode ser muito criticado, pois, existem estudos que comprovam a queda de performance em seu uso em rela\u00e7\u00e3o a especifica\u00e7\u00e3o dos campos no select. Mas pensando na economia de linhas de c\u00f3digos digitados, ... Ler mais","og_url":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/","og_site_name":"Devtools","article_published_time":"2012-11-26T15:21:00+00:00","article_modified_time":"2021-09-04T21:17:51+00:00","og_image":[{"width":200,"height":200,"url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png","type":"image\/png"}],"author":"Fabiano Abreu","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Fabiano Abreu","Est. tempo de leitura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#article","isPartOf":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/"},"author":{"name":"Fabiano Abreu","@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"headline":"Sintaxe alternativa ao Select * From","datePublished":"2012-11-26T15:21:00+00:00","dateModified":"2021-09-04T21:17:51+00:00","mainEntityOfPage":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/"},"wordCount":169,"commentCount":2,"publisher":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"image":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage"},"thumbnailUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png","articleSection":["Banco de Dados","PostgreSQL"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/","url":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/","name":"Sintaxe alternativa ao Select * From","isPartOf":{"@id":"https:\/\/devtools.com.br\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage"},"image":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage"},"thumbnailUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png","datePublished":"2012-11-26T15:21:00+00:00","dateModified":"2021-09-04T21:17:51+00:00","breadcrumb":{"@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#primaryimage","url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png","contentUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2011\/06\/postgresql-1.png","width":200,"height":200,"caption":"postgresql"},{"@type":"BreadcrumbList","@id":"https:\/\/devtools.com.br\/blog\/sintaxe-alternativa-ao-select-from\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/devtools.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Sintaxe alternativa ao Select * From"}]},{"@type":"WebSite","@id":"https:\/\/devtools.com.br\/blog\/#website","url":"https:\/\/devtools.com.br\/blog\/","name":"Devtools","description":"Sua caixa de ferramentas online","publisher":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devtools.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":["Person","Organization"],"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed","name":"Fabiano Abreu","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/","url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png","contentUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png","width":184,"height":184,"caption":"Fabiano Abreu"},"logo":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/devtools.com.br\/blog"],"url":"https:\/\/devtools.com.br\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":2,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"predecessor-version":[{"id":1336,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/470\/revisions\/1336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/media\/793"}],"wp:attachment":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}