{"id":8,"date":"2005-11-11T16:47:14","date_gmt":"2005-11-11T16:47:14","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=8"},"modified":"2006-06-16T21:07:19","modified_gmt":"2006-06-16T21:07:19","slug":"truncation","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=8","title":{"rendered":"Truncation"},"content":{"rendered":"<p>Assume the following has completed correctly:<\/p>\n<p><code>CREATE TABLE test (<br \/>\n   charField varchar(5)<br \/>\n);<br \/>\n<\/code><\/p>\n<p>What is the end difference between the following two statements?<\/p>\n<p><code>INSERT INTO test (charField) VALUES (\"123456\");<br \/>\nINSERT INTO test (charField) VALUES (\"12345 \");<\/code><br \/>\n<spoiler 'Show Answer' 'Hide Answer'>Answer: In both cases, the inserted value is trimmed to &#8216;12345&#8217;. For the first, a warning is issued. For the second, only whitespace is trimmed, so no warning.<\/spoiler><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assume the following has completed correctly: CREATE TABLE test ( charField varchar(5) ); What is the end difference between the following two statements? INSERT INTO test (charField) VALUES (&#8220;123456&#8221;); INSERT INTO test (charField) VALUES (&#8220;12345 &#8220;); Answer: In both cases, the inserted value is trimmed to &#8216;12345&#8217;. For the first, a warning is issued. For [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-gotchas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-8","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}