[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-572798-105":3,"detail-sidebar-cat-1-en-105":81,"doc-detail-572798-en":126},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","mysql-cheat-sheet-cbse-class-12","MySQL Cheat Sheet - CBSE Class 12","","This document serves as a comprehensive MySQL reference guide tailored for Class 12 students under the CBSE curriculum. It provides a concise summary of essential SQL commands, covering Data Query Language (DQL) with SELECT statements, including operators like DISTINCT, BETWEEN, IN, and LIKE. Additionally, it details Data Manipulation Language (DML) operations for INSERT, UPDATE, and DELETE, as well as Data Definition Language (DDL) commands for creating, modifying, altering, and dropping tables with various integrity constraints. The guide acts as a practical quick-reference tool for students to review syntax for database management and query construction during their studies. It is structured for efficient learning and rapid lookup of database operations fundamental to the computer science syllabus.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/general/","General",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/mysql-cheat-sheet-cbse-class-12/572798/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/mysql-cheat-sheet-cbse-class-12/572798.png","ImageObject",442,249,{"name":42,"@type":43},"404brain","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-20","2026-10-13",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the DISTINCT keyword do in a SELECT statement?","Question",{"text":63,"@type":64},"The DISTINCT keyword is used to remove duplicate results from a query's output, ensuring each returned row is unique.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do you add a new column to an existing table in MySQL?",{"text":68,"@type":64},"To add a new column, you use the ALTER TABLE tablename ADD columnname datatype; statement.",{"name":70,"@type":61,"acceptedAnswer":71},"What is the syntax for inserting multiple rows in a single INSERT statement?",{"text":72,"@type":64},"You can insert multiple rows by listing the values in parentheses separated by commas after the VALUES keyword, following the initial column definition.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},572798,1792083792,{"code":4,"msg":82,"data":83},"success",[84,89,94,99,104,109,114,119,123],{"id":85,"doc_module":22,"doc_module_name":25,"category_name":86,"show_sort_weight":87,"slug":88},11,"Presentations",90,"presentations",{"id":90,"doc_module":22,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},12,"Resumes",80,"resumes",{"id":95,"doc_module":22,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},14,"Invoices",70,"invoices",{"id":100,"doc_module":22,"doc_module_name":25,"category_name":101,"show_sort_weight":102,"slug":103},15,"Posters",60,"posters",{"id":105,"doc_module":22,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},16,"Social Media",50,"social-media",{"id":110,"doc_module":22,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},17,"Forms",40,"forms",{"id":115,"doc_module":22,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},18,"Letters",30,"letters",{"id":120,"doc_module":22,"doc_module_name":25,"category_name":121,"show_sort_weight":55,"slug":122},21,"Paper Templates","papers-templates",{"id":124,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":4,"slug":125},158,"general-158",{"code":4,"msg":82,"data":127},{"doc_id":79,"user_id":128,"nickname":42,"user_avatar":129,"doc_module":22,"category_id":124,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":22,"language":135,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":12,"update_tm":139,"read_time":4},1099529839291,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","MySQL Cheat Sheet  \nSELECT Statement  \nSELECT col1, col2 FROM table JOIN table2 ON table1 .col =  table2 .col WHERE condition  \nGROUP BY column_name HAVING condition ORDER BY col1 ASC |DESC;  \nSELECT Keywords  \nDISTINCT: Removes duplicate results  \nSELECT DISTINCT product_name FROM  product;  \nBETWEEN: Matches a value between two other values (inclusive)  \nSELECT product_name FROM product  WHERE price BETWEEN 50 AND 100 ;  \nIN: Matches to any of the values in a list  \nSELECT product_name FROM product  WHERE category IN ( 'Electronics' , 'Furniture' );  \nLIKE: Performs wildcard matches using _ or %  \nSELECT product_name FROM product  WHERE product_name LIKE '%Desk%\";  \nINSERT Statements  \nA single row  \nINSERT INTO tablename (col1, col2   ) VALUES (val1, val2 . . .);  \nMultiple rows  \nINSERT INTO tablename (col1, col2…) VALUES  \n(valA1, valB1),  \n(valA2, valB2),  \n(valA3, valB3);  \nUPDATE Statement  \nUPDATE tablename SET col1 = val1  WHERE condition;  \nCREATE Statement  \nCREATE TABLE tablename ( column_name data_type,  \ncolumn_name data_type,  \ncolumn_name data_type,);  \nCreate Table with Constraints  \nCREATE TABLE tablename (  \ncol1 data_type constraints ,  \ncol2 data_type NOT NULL ,  \ncol3 data_type PRIMARY KEY ,  \ncol4 data_type UNIQUE ,  \ncol5 data_type CHECK (conditions));  \nDrop Table  \nDROP TABLE tablename;  \nALTER Statement  \nAdd Column  \nALTER TABLE tablename ADD  columnname datatype;  \nDrop Column  \nALTER TABLE tablename DROP COLUMN  columnname;  \nModify Column  \nALTER TABLE tablename CHANGE columnname newcolumnname  newdatatype;  \nRename Column  \nALTER TABLE tablename CHANGE COLUMN currentname TO newname;  \nDrop Constraint  \nALTER TABLE tablename DROP constraint_type constraintname;  \nRename Table  \nALTER TABLE tablename RENAME TO newtablename;  \nDELETE Statement  \nDELETE FROM tablename WHERE  condition;  \nCBSE – Class 12 – MySQL Cheat Sheet [kanth.tech/class12](kanth.tech/class12)","cbCaigEiac9XzcKb","https://ap.wps.com/l/cbCaigEiac9XzcKb","pdf",66260,"English","# SELECT Statement\n## SELECT Keywords\n# INSERT Statements\n# UPDATE Statement\n# CREATE Statement\n## Create Table with Constraints\n## Drop Table\n# ALTER Statement\n# DELETE Statement","[{\"question\":\"What does the DISTINCT keyword do in a SELECT statement?\",\"answer\":\"The DISTINCT keyword is used to remove duplicate results from a query's output, ensuring each returned row is unique.\"},{\"question\":\"How do you add a new column to an existing table in MySQL?\",\"answer\":\"To add a new column, you use the ALTER TABLE tablename ADD columnname datatype; statement.\"},{\"question\":\"What is the syntax for inserting multiple rows in a single INSERT statement?\",\"answer\":\"You can insert multiple rows by listing the values in parentheses separated by commas after the VALUES keyword, following the initial column definition.\"}]","MySQL Cheat Sheet - CBSE Class 12 | PDF",1791929305]