[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572800-105":53,"doc-detail-572800-en":127},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","mysql-cheat-sheet","MySQL Cheat Sheet","","MySQL Cheat Sheet by Dave Child is a compact reference of MySQL knowledge for common day-to-day SQL work. It lists MySQL data types with typical value ranges and formats, plus key conversion and grouping functions. The sheet also summarizes mathematical, string, date and time, control flow, and miscellaneous functions, presenting them as quick lookup tables with the most frequently used function names.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/mysql-cheat-sheet/572800/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/mysql-cheat-sheet/572800.png","ImageObject",442,249,{"name":88,"@type":89},"noah","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",6,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"What MySQL data types are included in the cheat sheet?","Question",{"text":109,"@type":110},"It provides a table of MySQL data types such as CHAR, VARCHAR, TEXT, BLOB variants, numeric integer types (with ranges), floating types, DATE/DATETIME/TIMESTAMP/TIME, and ENUM/SET.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How does the cheat sheet cover type conversion in MySQL?",{"text":114,"@type":110},"It lists core conversion approaches, including BINARY with a string, CAST(expression AS datatype), and CONVERT(expression, datatype) for changing data types.",{"name":116,"@type":107,"acceptedAnswer":117},"Which MySQL function groups are summarized?",{"text":118,"@type":110},"The sheet groups functions into categories such as grouping functions (AVG, MAX, COUNT, SUM, etc.), mathematical functions (ABS, COS, ROUND, POW, etc.), string functions (LENGTH, REPLACE, CONCAT, etc.), date/time functions (DATE_FORMAT, NOW, DATE_ADD, etc.), control flow functions (IFNULL, IFNULL/IF), and miscellaneous functions (encryption and system-related helpers).","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572800,1792254661,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":9},1099529839121,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","MySQL Cheat Sheet  \nby Dave Child (DaveChild)[via](via cheatography.com/1/cs/16/)[ cheatography.com/1/cs/16/](via cheatography.com/1/cs/16/)  \nMySQL Data Types  \n\n| CHAR | String (0-255) |\n| --- | --- |\n| VARCHAR | String (0-255) |\n| TINYTEXT | String (0-255) |\n| TEXT | String (0-65535) |\n| BLOB | String (0-65535) |\n| MEDIUMTEXT String (0-16777215) |  |\n| MEDIUMBLOB String (0-16777215) |  |\n| LONGTEXT | String (0-4294967295) |\n| LONGBLOB | String (0-4294967295) |\n| TINYINT x | Integer (-128 to 127) |\n| SMALLINT x | Integer (-32768 to 32767) |\n| MEDIUMINT x | Integer (-8388608 to 8388607) |\n| INT x | Integer (-2147483648 to 2147483647) |\n| BIGINT x | Integer (-9223372036854‐ 775808 to 922337203‐\u003Cbr>6854775807) |\n| FLOAT | Decimal (precise to 23 digits) |\n| DOUBLE | Decimal (24 to 53 digits) |\n| DECIMAL | \"DOUBLE\" stored as\u003Cbr>string |\n| DATE | YYYY-MM-DD |\n| DATETIME | YYYY-MM-DD HH:MM:SS |\n| TIMESTAMP | YYYYMMDDHHMMSS |\n| TIME | HH:MM:SS |\n| ENUM | One of preset options |\n| SET | Selection of preset options |\n| Integers (marked x) that are \"UNSIGNED\"have the same range of values but start from 0 (i.e. , an UNSIGNED TINYINT can have any value from 0 to 255) . |  |\n|  |  |\n\nBy Dave Child (DaveChild)  \n[cheatography.com/davechild/](cheatography.com/davechild/)[ ](cheatography.com/davechild/)[aloneonahill.com](aloneonahill.com)  \n\n| MySQL Type Conversion |  |\n| --- | --- |\n| \u003Cbr>BINARY 'string'\u003Cbr>CAST (expression AS datatype)\u003Cbr>\u003Cbr>CONVERT (expression , datatype) |  |\n| MySQL Grouping Functions |  |\n| \u003Cbr>AVG MAX BIT_AND STD BIT_OR STDDEV COUNT SUM GROUP_CONCAT VARIANCE\u003Cbr>MIN\u003Cbr>MySQL Mathematical Functions |  |\n| ABS | COS |\n| SIGN | SIN |\n| MOD | TAN |\n| FLOOR | ACOS |\n| CEILING | ASIN |\n| ROUND | ATAN , ATAN2 |\n| DIV | COT |\n| EXP | RAND |\n| LN | LEAST |\n| LOG , LOG2 , LOG10 | GREATEST |\n| POW | DEGREES |\n| POWER | RADIANS |\n| \u003Cbr>SQRT\u003Cbr>PI | \u003Cbr>TRUNCATE |\n| MySQL String Functions |  |\n| ASCII SUBSTRING ORD MID CONV SUBSTRING_INDEX BIN LTRIM OCT RTRIM HEX TRIM CHAR SOUNDEX CONCAT SPACE CONCAT_WS REPLACE |  |\n\nPublished 19th October, 2011.  \nLast updated 25th February , 2020. Page 1 of 2.  \nMySQL String Functions (cont)  \n| LENGTH | REPEAT |\n| --- | --- |\n| CHAR_LENGTH | REVERSE |\n| BIT_LENGTH | INSERT |\n| LOCATE | ELT |\n| INSTR | FIELD |\n| LPAD | LCASE |\n| RPAD | UCASE |\n| LEFT | LOAD_FILE |\n| RIGHT | QUOTE |\n\nMySQL Date and Time Functions  \n| DAYOFWEEK | DATE_SUB |\n| --- | --- |\n| WEEKDAY | ADDDATE |\n| DAYOFMONTH | SUBDATE |\n| DAYOFYEAR | EXTRACT |\n| MONTH | TO_DAYS |\n| DAYNAME | FROM_DAYS |\n| MONTHNAME | DATE_FORMAT |\n| QUARTER | TIME_FORMAT |\n| WEEK | CURRENT_DATE |\n| YEAR | CURRENT_TIME |\n| YEARWEEK | NOW |\n| HOUR | SYSDATE |\n| MINUTE | UNIX_TIMESTAMP |\n| SECOND | FROM_UNIXTIME |\n| PERIOD_ADD | SEC_TO_TIME |\n| PERIOD_DIFF | TIME_TO_SEC |\n| DATE_ADD |  |\n\nMySQL Control Flow Functions  \nIF NULLIF  \nIFNULL  \nSponsored by ApolloPad.com Everyone has a novel in them. Finish Yours!  \n[https://apollopad.com](https://apollopad.com)  \nMySQL Cheat Sheet  \nby Dave Child (DaveChild)[via](via cheatography.com/1/cs/16/)[ cheatography.com/1/cs/16/](via cheatography.com/1/cs/16/)  \nMySQL Miscellaneous Functions  \n\n| BIT_COUNT | DES_ENCRYPT |\n| --- | --- |\n| DATABASE | DES_DECRYPT |\n| USER | LAST_INSERT_ID |\n| SYSTEM_USER | FORMAT |\n| SESSION_USER | VERSION |\n| CURRENT_USER | CONNECTION_ID |\n| PASSWORD | GET_LOCK |\n| OLD_PASSWORD | RELEASE_LOCK |\n| ENCRYPT | IS_FREE_LOCK |\n| DECODE | BENCHMARK |\n| MD5 | INET_NTOA |\n| SHA1 | INET_ATON |\n| AES_ENCRYPT | FOUND_ROWS |\n| AES_DECRYPT | STRCMP |\n\nBy Dave Child (DaveChild)  \n[cheatography.com/davechild/](cheatography.com/davechild/)[ ](cheatography.com/davechild/)[aloneonahill.com](aloneonahill.com)  \nPublished 19th October, 2011.  \nLast updated 25th February , 2020. Page 2 of 2.  \nSponsored by ApolloPad.com Everyone has a novel in them. Finish Yours!  \n[https://apollopad.com](https://apollopad.com)","cbCaigFDmKSovUG8","https://ap.wps.com/l/cbCaigFDmKSovUG8","pdf",48525,"English","# MySQL Data Types\n# MySQL Type Conversion\n# MySQL Grouping Functions\n# MySQL Mathematical Functions\n# MySQL String Functions\n# MySQL Date and Time Functions\n# MySQL Control Flow Functions\n# MySQL Miscellaneous Functions","[{\"question\":\"What MySQL data types are included in the cheat sheet?\",\"answer\":\"It provides a table of MySQL data types such as CHAR, VARCHAR, TEXT, BLOB variants, numeric integer types (with ranges), floating types, DATE/DATETIME/TIMESTAMP/TIME, and ENUM/SET.\"},{\"question\":\"How does the cheat sheet cover type conversion in MySQL?\",\"answer\":\"It lists core conversion approaches, including BINARY with a string, CAST(expression AS datatype), and CONVERT(expression, datatype) for changing data types.\"},{\"question\":\"Which MySQL function groups are summarized?\",\"answer\":\"The sheet groups functions into categories such as grouping functions (AVG, MAX, COUNT, SUM, etc.), mathematical functions (ABS, COS, ROUND, POW, etc.), string functions (LENGTH, REPLACE, CONCAT, etc.), date/time functions (DATE_FORMAT, NOW, DATE_ADD, etc.), control flow functions (IFNULL, IFNULL/IF), and miscellaneous functions (encryption and system-related helpers).\"}]","MySQL Cheat Sheet | PDF",1791929307]