WordPress database error: [Disk full (/tmp/#sql-temptable-1-261c50-1781.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]SHOW FULL COLUMNS FROM `markjacobsen_options`
If you run a select statement and get the following error… <\/p>\n
\"SQLSTATE 01517: A character that could not be converted was \r\nreplaced with a substitute character.\"<\/pre>\n… you can use the TRANSLATE function to strip away printable chars, and compare that to a zero length string like so… <\/p>\n
SELECT * \r\nFROM XX.TBL \r\nWHERE TRANSLATE(UPPER(FIELD_X),'','ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+\/\\{}[];:.,<>? ') <> '' \r\nFOR READ ONLY WITH UR;<\/code><\/pre>\nPlease remember to subscribe to the newsletter<\/a> to stay up to date!<\/i>
\n
\nYou or someone you know looking to buy or sell?<\/i>\n<\/a>
\nDisclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...<\/small><\/i>","protected":false},"excerpt":{"rendered":"If you run a select statement and get the following error… “SQLSTATE 01517: A character that could not be converted was replaced with a substitute character.” … you can use the TRANSLATE function to strip away printable chars, and compare that to a zero length string like so… SELECT * FROM XX.TBL WHERE TRANSLATE(UPPER(FIELD_X),”,’ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()-=+\/\\{}[];:.,? ‘) … Continue reading DB2: How to find records with non-printable characters (SQLSTATE 01517)<\/span>