{"id":74,"date":"2013-10-01T00:03:25","date_gmt":"2013-10-01T04:03:25","guid":{"rendered":"http:\/\/access-diva.com\/blog\/?p=74"},"modified":"2018-07-04T19:33:34","modified_gmt":"2018-07-04T23:33:34","slug":"field-names-in-all-caps","status":"publish","type":"post","link":"https:\/\/access-diva.com\/blog\/?p=74","title":{"rendered":"Field Names in ALL CAPS"},"content":{"rendered":"<p>There will be times when inherit a database and the <strong>Field Names<\/strong> are all in capital letters.\u00a0\u00a0You want to convert them to <span style=\"color: #000000;\"><strong>Camel<\/strong><\/span><span style=\"color: #0000ff;\"><strong>Case<\/strong><\/span> but when you try they revert back to all capital letters.\u00a0 Here are two different ways to handle that&#8230;1.<br \/>\na. Change the <strong>Field Name<\/strong> by adding a letter to the end of the existing Field Name, Save.<br \/>\nb. Then change the <strong>Field Name<\/strong> to <strong><span style=\"color: #000000;\">Camel<\/span><span style=\"color: #0000ff;\">Case <\/span><\/strong><span style=\"color: #000000;\">and Save<\/span><\/p>\n<p>OR<\/p>\n<p>Make sure that <strong>Enable design changes for tables in Datasheet view<\/strong> is checked n order for this to work.<\/p>\n<p>2.<br \/>\n<strong>\u00a0\u00a0\u00a0 <\/strong>a.<strong> Open<\/strong> the Table in <strong>Datasheet View<\/strong> and the <strong>Fields Ribbon<\/strong> will appear, see below<\/p>\n<div id=\"attachment_75\" style=\"width: 999px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-75\" class=\"wp-image-75 size-full\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldsRibbon.png\" alt=\"Fields Ribbon\" width=\"989\" height=\"138\" srcset=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldsRibbon.png 989w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldsRibbon-300x41.png 300w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldsRibbon-150x20.png 150w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldsRibbon-400x55.png 400w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><p id=\"caption-attachment-75\" class=\"wp-caption-text\">Fields Ribbon<\/p><\/div>\n<p>b. From here select <strong>Name &amp; Caption<\/strong> and adjust the Name, click <strong>OK<\/strong> and continue until you have adjusted all the <strong>Field Names<\/strong> in the Table&#8230;<\/p>\n<div id=\"attachment_76\" style=\"width: 410px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-76\" class=\"wp-image-76 size-full\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldProperties.png\" alt=\"Name &amp; Caption\" width=\"400\" height=\"149\" srcset=\"https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldProperties.png 400w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldProperties-300x111.png 300w, https:\/\/access-diva.com\/blog\/wp-content\/uploads\/2013\/09\/FieldProperties-150x55.png 150w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><p id=\"caption-attachment-76\" class=\"wp-caption-text\">Name &amp; Caption<\/p><\/div>\n<p><strong>Note<\/strong>:\u00a0 From here you can set the same <strong>Field Properties<\/strong> that you\u00a0set if the <strong>Table<\/strong> was in <strong>Design Mode<\/strong>.<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_74\" class=\"pvc_stats all  \" data-element-id=\"74\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There will be times when inherit a database and the Field Names are all in capital letters. You want to convert them to CamelCase but when you try they revert back to all capital letters. Here are two different ways to handle that&#8230;1. a. Change the Field Name by adding a letter to the end [&#8230;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_74\" class=\"pvc_stats all  \" data-element-id=\"74\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/access-diva.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,28],"tags":[75,54],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-database-design","category-tables","tag-fields","tag-table-design","odd"],"_links":{"self":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":4,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions\/440"}],"wp:attachment":[{"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/access-diva.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}