[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572771-105":53,"doc-detail-572771-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","sqlite3-cheat-sheet-quick-reference-for-common-sql-operations","SQLite3 Cheat Sheet - quick reference for common SQL operations","","SQLite3 Cheat Sheet provides a compact reference for key SQLite basics, including how to open or create a database, define tables and fields, and perform core data manipulation. It covers inserting and updating rows, altering table structure by adding columns, and inspecting schemas. The sheet also summarizes joins, basic SELECT patterns (filtering by rowid, limiting, sorting), view creation and deletion, plus column constraints and common data types like TEXT, INTEGER, REAL, BLOB, and NULL.",{"@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":51,"@type":70,"position":76},"https://docshare.wps.com/template/general/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/sqlite3-cheat-sheet-quick-reference-for-common-sql-operations/572771/",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/sqlite3-cheat-sheet-quick-reference-for-common-sql-operations/572771.png","ImageObject",442,249,{"name":88,"@type":89},"Ben ","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-20","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",7,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do you open a SQLite database file?","Question",{"text":109,"@type":110},"Use the .open command followed by the database filename, for example .open example.db.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"How do you create a table and define primary key constraints in SQLite?",{"text":114,"@type":110},"Create the table with CREATE TABLE IF NOT EXISTS and include an id field such as (Id INTEGER PRIMARY KEY) in the definition.",{"name":116,"@type":107,"acceptedAnswer":117},"How can you query data with joins and sorting?",{"text":118,"@type":110},"Use SELECT with INNER JOIN / LEFT JOIN / CROSS JOIN and the ON clause to match columns, then add ORDER BY to sort results by a chosen column.","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},572771,1792083789,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":50,"category_name":51,"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},2336478951081,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","SQLite3 Cheat Sheet  \nSQLite is a public domain C-language library implementing a small, fast, self-contained, reliabile, and full-featured, SQL database engine.  \n Manipulating data   \nCreate database > .open example.db ;  \nCreate table and define fields > CREATE TABLE IF NOT EXISTS mytable (  \n→ foo TEXT NOT NULL);  \nView tables in database > .tables  \nInsert data into a table > INSERT INTO mytable (foo)  \n→ VALUES ('aaa'), ('bbb'),('ccc');  \nView table schema > .schema mytable  \nAdd a new column to mytable > ALTER TABLE mytable ADD bar INTEGER;  \nUpdate data in a table > UPDATE mytable SET bar = 123  \n→ WHERE foo=’aaa’;  \nJoins  \nDisplay an inner join  \nDisplay a left join  \nDisplay a cross join  \n> SELECT * FROM mytable → INNER JOIN othertable  \n→ ON [mytable.rowid=othertable.foo](mytable.rowid=othertable.foo) ;> SELECT * FROM mytable LEFT JOIN → ON [mytable.id=othertable.foo](mytable.id=othertable.foo) ;  \n> SELECT * FROM mytable → CROSS JOIN othertable;  \nData types Some SQLite functions  \nTEXT  \nINTEGER  \nREAL  \nBLOB  \nNULL  \nText data  \nWhole number Fleating point number Binary data  \nNull value  \nabs() max() min() upper() lower() length()  \nrandom ()  \nAbsolute value  \nMaximum and minimum values Convert case of string Length of string  \n(Pseudo) random integer  \n[opensource.com](opensource.com) Twitter @opensourceway • [Fosstodon.org/@osdc](Fosstodon.org/@osdc) CC BY-SA 4.0  \nSQLite3 Cheat Sheet  \nSelect  \nDisplay all data > SELECT * FROM mytable;  \nDisplay data of the third row > SELECT * FROM mytable  \n→ WHERE rowid=3;  \nDisplay foo and bar columns > SELECT foo,bar FROM mytable;  \nDisplay first 10 results > SELECT * FROM mytable LIMIT 10;  \nSort by column foo > SELECT * FROM mytable ORDER BY foo;  \nViews  \nA view is a virtual table providing a template for displaying the results of a specific query.  \nCreate a new view > CREATE VIEW myview AS  \n→ SELECT foo FROM mytable → WHERE example > 10;  \nShow existing views > .tables  \nDisplay data with a view > SELECT * FROM myview;  \nDelete (drop) a view > DROP VIEW myview;  \nColumn constraints  \nSet default text for a field Enforce unique value  \nDesignate a column as a unique identifier  \nPointer to a primary key of a different table Impose a condition for validation  \nPrevent NULL values  \nDEFAULT ‘default text’  \nUNIQUE  \nPRIMARY KEY  \n> CREATE TABLE mytable → (Id INTEGER PRIMARY KEY); FOREIGN KEY  \nCHECK  \n> CREATE TABLE mytable → (CHECK(condition>0), bar TEXT); NOT NULL  \n[opensource.com](opensource.com) Twitter @opensourceway • [Fosstodon.org/@osdc](Fosstodon.org/@osdc) CC BY-SA 4.0","cbCaicrbmSMO8TSn","https://ap.wps.com/l/cbCaicrbmSMO8TSn","pdf",449942,"English","# Manipulating data\n## Create database and tables\n## Insert and update data\n## Alter tables and view schemas\n# Joins\n## INNER, LEFT, and CROSS joins\n# Data types and functions\n## TEXT, INTEGER, REAL, BLOB, NULL\n## String and numeric functions\n# Select\n## Filtering, limiting, and ordering\n# Views\n## Create, show, display, and drop views\n# Column constraints\n## DEFAULT, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, NOT NULL","[{\"question\":\"How do you open a SQLite database file?\",\"answer\":\"Use the .open command followed by the database filename, for example .open example.db.\"},{\"question\":\"How do you create a table and define primary key constraints in SQLite?\",\"answer\":\"Create the table with CREATE TABLE IF NOT EXISTS and include an id field such as (Id INTEGER PRIMARY KEY) in the definition.\"},{\"question\":\"How can you query data with joins and sorting?\",\"answer\":\"Use SELECT with INNER JOIN / LEFT JOIN / CROSS JOIN and the ON clause to match columns, then add ORDER BY to sort results by a chosen column.\"}]","SQLite3 Cheat Sheet - quick reference for common SQL operations | PDF",1791929204]