{"id":649,"date":"2010-03-05T13:35:40","date_gmt":"2010-03-05T13:35:40","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=649"},"modified":"2023-05-14T10:23:18","modified_gmt":"2023-05-14T10:23:18","slug":"ideas-for-select-all-columns-but-one-mysql-stored-procedure","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure","title":{"rendered":"Ideas for select all columns but one mysql stored procedure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Assume we&#8217;ve a table with 100 rows and we need to select all columns but one.<br>The problem is headache of actually typing out all 99 required columns!! In this blog we will see how can we select all columns but one from the table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Solutions \/ Ideas to above problem are:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ignorance is bliss. Select all(*) and ignore the column.<\/li>\n\n\n\n<li>Manually type column names or manage it with copy paste!<\/li>\n\n\n\n<li>Create a view from original table and drop the unnecessary column!<\/li>\n\n\n\n<li>MySQL Database command \/ syntax that allows us to do this; which is not there unfortunately.<\/li>\n\n\n\n<li>Use my stored procedure to select all but one columns:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">No need to explain why all such hacks are initiated with the help of information_schema!! \ud83d\ude42<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The idea:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Prepare column list to be selected from COLUMNS table of information_schema database for specified database name and table name. Thus we can select all columns but one and prepare sql statement and execute.<br>It can be further extended for select all but SOME; instead of &#8220;column_name&lt;&gt;in_colm_nm&#8221; one can use &#8220;column_name not in &#8230;&#8221; to prepare the column list to be selected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here you go with the code: [Download selectAllButOne.sql\u00a0at the end of the page.]<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DELIMITER $$\n<em>DROP PROCEDURE IF EXISTS `selectAllButOne` $$\nCREATE DEFINER=`root`@`localhost` PROCEDURE `selectAllButOne`(in_db_nm varchar(20),in_tbl_nm varchar(20),in_colm_nm varchar(20))\nBEGIN<\/em>\nSET @stmnt= CONCAT('SELECT ',(SELECT GROUP_CONCAT(column_name) FROM information_schema.columns WHERE table_name=in_tbl_nm AND table_schema=in_db_nm AND column_name&lt;>in_colm_nm), ' FROM ',in_db_nm,'.',in_tbl_nm,';');\nPREPARE stmnt FROM @stmnt;\nEXECUTE stmnt;\nEND $$\nDELIMITER ;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As one of the ideas, #4 says about MySQL syntax come to our rescue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wish if MySQL can ease out us with syntax as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM TABLENAME EXCEPT COLUMN COLUMNNAME&#91;,COLUMNNAME...]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">But until then we have this quick work around<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><b>Download <a href=\"http:\/\/kedar.nitty-witty.com\/wp-content\/uploads\/2010\/03\/selectallbutone.sql_.txt\" target=\"_blank\" rel=\"noopener\">Select all but one mysql stored procedure.<\/a><br><\/b><br>Any other ideas?<\/p>\n","protected":false},"excerpt":{"rendered":"Assume we&#8217;ve a table with 100 rows and we need to select all columns but one.The problem is headache of actually typing out all 99 required columns!! In this blog&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,378],"tags":[52,427,587,588,104,108],"class_list":["post-649","post","type-post","status-publish","format-standard","category-mysql","category-mysql-scripts-mysql","tag-ideas","tag-mysql","tag-mysql-select-columns","tag-procedure-to-select-all-but-one","tag-select-all-but-one","tag-stored-procedure"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"MySQL stored procedure that will help you select all but one columns from a table.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Kedar\"\/>\n\t<meta name=\"google-site-verification\" content=\"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA\" \/>\n\t<meta name=\"msvalidate.01\" content=\"116B62074CBCA1BA99B8CCE09CCF2FB8\" \/>\n\t<meta name=\"keywords\" content=\"mysql,select all but one,select all except one,column,select,query,stored procedure,ideas,mysql select columns,procedure to select all but one\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Change Is Inevitable | Kedar Vaijanapurkar&#039;s Blog for MySQL, technology and various subjects\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable\" \/>\n\t\t<meta property=\"og:description\" content=\"MySQL stored procedure that will help you select all but one columns from a table.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-03-05T13:35:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-05-14T10:23:18+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable\" \/>\n\t\t<meta name=\"twitter:description\" content=\"MySQL stored procedure that will help you select all but one columns from a table.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#article\",\"name\":\"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable\",\"headline\":\"Ideas for select all columns but one mysql stored procedure\",\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"},\"datePublished\":\"2010-03-05T13:35:40+00:00\",\"dateModified\":\"2023-05-14T10:23:18+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage\"},\"articleSection\":\"MySQL, MySQL-Scripts, ideas, MySQL, MySQL Select Columns, Procedure to select all but one, select all but one, stored procedure\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"position\":2,\"name\":\"MySQL\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql#listItem\",\"name\":\"MySQL-Scripts\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql#listItem\",\"position\":3,\"name\":\"MySQL-Scripts\",\"item\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#listItem\",\"name\":\"Ideas for select all columns but one mysql stored procedure\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql#listItem\",\"name\":\"MySQL\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#listItem\",\"position\":4,\"name\":\"Ideas for select all columns but one mysql stored procedure\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/category\\\/mysql\\\/mysql-scripts-mysql#listItem\",\"name\":\"MySQL-Scripts\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin\",\"name\":\"Kedar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Kedar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure\",\"name\":\"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable\",\"description\":\"MySQL stored procedure that will help you select all but one columns from a table.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/author\\\/admin#author\"},\"datePublished\":\"2010-03-05T13:35:40+00:00\",\"dateModified\":\"2023-05-14T10:23:18+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/\",\"name\":\"..::CHANGE is INEVITABLE::..\",\"description\":\"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/kedar.nitty-witty.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable","description":"MySQL stored procedure that will help you select all but one columns from a table.","canonical_url":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure","robots":"max-image-preview:large","keywords":"mysql,select all but one,select all except one,column,select,query,stored procedure,ideas,mysql select columns,procedure to select all but one","webmasterTools":{"google-site-verification":"_Bu1h5r0PxIC0D2jBVdmYN45RTeG9ogcX85XLkbG1qA","msvalidate.01":"116B62074CBCA1BA99B8CCE09CCF2FB8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#article","name":"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable","headline":"Ideas for select all columns but one mysql stored procedure","author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"},"datePublished":"2010-03-05T13:35:40+00:00","dateModified":"2023-05-14T10:23:18+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage"},"isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage"},"articleSection":"MySQL, MySQL-Scripts, ideas, MySQL, MySQL Select Columns, Procedure to select all but one, select all but one, stored procedure"},{"@type":"BreadcrumbList","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/kedar.nitty-witty.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","position":2,"name":"MySQL","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql#listItem","name":"MySQL-Scripts"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql#listItem","position":3,"name":"MySQL-Scripts","item":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql","nextItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#listItem","name":"Ideas for select all columns but one mysql stored procedure"},"previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql#listItem","name":"MySQL"}},{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#listItem","position":4,"name":"Ideas for select all columns but one mysql stored procedure","previousItem":{"@type":"ListItem","@id":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql#listItem","name":"MySQL-Scripts"}}]},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"Person","@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author","url":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin","name":"Kedar","image":{"@type":"ImageObject","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/be1f7021485c325d92cc4c5d961accb9c1af72b1b11281a790f7f4f066ef10d3?s=96&d=mm&r=g","width":96,"height":96,"caption":"Kedar"}},{"@type":"WebPage","@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#webpage","url":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure","name":"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable","description":"MySQL stored procedure that will help you select all but one columns from a table.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure#breadcrumblist"},"author":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"creator":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/author\/admin#author"},"datePublished":"2010-03-05T13:35:40+00:00","dateModified":"2023-05-14T10:23:18+00:00"},{"@type":"WebSite","@id":"https:\/\/kedar.nitty-witty.com\/blog\/#website","url":"https:\/\/kedar.nitty-witty.com\/blog\/","name":"..::CHANGE is INEVITABLE::..","description":"Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","inLanguage":"en-US","publisher":{"@id":"https:\/\/kedar.nitty-witty.com\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Change Is Inevitable | Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects","og:type":"article","og:title":"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable","og:description":"MySQL stored procedure that will help you select all but one columns from a table.","og:url":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure","article:published_time":"2010-03-05T13:35:40+00:00","article:modified_time":"2023-05-14T10:23:18+00:00","twitter:card":"summary","twitter:title":"Ideas for select all columns but one mysql stored procedure | Change Is Inevitable","twitter:description":"MySQL stored procedure that will help you select all but one columns from a table."},"aioseo_meta_data":{"post_id":"649","title":"Ideas for select all columns but one mysql stored procedure | #site_title","description":"MySQL stored procedure that will help you select all but one columns from a table.","keywords":[{"label":"MySQL","value":"MySQL"},{"label":"select all but one","value":"select all but one"},{"label":"select all except one","value":"select all except one"},{"label":"column","value":"column"},{"label":"select","value":"select"},{"label":"query","value":"query"},{"label":"stored procedure","value":"stored procedure"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-24 17:44:27","updated":"2025-08-16 19:04:27","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\" title=\"MySQL\">MySQL<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql\" title=\"MySQL-Scripts\">MySQL-Scripts<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIdeas for select all columns but one mysql stored procedure\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/kedar.nitty-witty.com\/blog"},{"label":"MySQL","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql"},{"label":"MySQL-Scripts","link":"https:\/\/kedar.nitty-witty.com\/blog\/category\/mysql\/mysql-scripts-mysql"},{"label":"Ideas for select all columns but one mysql stored procedure","link":"https:\/\/kedar.nitty-witty.com\/blog\/ideas-for-select-all-columns-but-one-mysql-stored-procedure"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=649"}],"version-history":[{"count":5,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/649\/revisions"}],"predecessor-version":[{"id":2893,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/649\/revisions\/2893"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}