[{"data":1,"prerenderedAt":108},["ShallowReactive",2],{"term-i\u002Finsert":3,"related-i\u002Finsert":91},{"id":4,"title":5,"acronym":6,"body":7,"category":71,"description":72,"difficulty":73,"extension":74,"letter":75,"meta":76,"navigation":77,"path":78,"related":79,"seo":85,"sitemap":86,"stem":89,"subcategory":6,"__hash__":90},"terms\u002Fterms\u002Fi\u002Finsert.md","INSERT",null,{"type":8,"value":9,"toc":65},"minimark",[10,15,19,23,26,30,54,58,61],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"INSERT is how you add new data to a database. It is the 'Create' in CRUD. You tell it which table, which columns, and what values to put in. One INSERT = one new row added to the table.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"INSERT is the SQL statement for adding new rows to a table. It specifies the target table, column names, and corresponding values. It can insert a single row or multiple rows in one statement. It triggers any DEFAULT values and validates all constraints.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","INSERT INTO users (name, email, created_at)\nVALUES ('Alex', 'alex@example.com', NOW());\n","sql","",[38,39,40,48],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"INSERT INTO users (name, email, created_at)\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"VALUES ('Alex', 'alex@example.com', NOW());\n",[11,55,57],{"id":56},"when-youll-hear-this","When You'll Hear This",[16,59,60],{},"\"INSERT a new row when the user submits the signup form.\" \u002F \"Bulk insert 1000 rows at once for performance.\"",[62,63,64],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":66},[67,68,69,70],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":56,"depth":50,"text":57},"database","INSERT is how you add new data to a database. It is the 'Create' in CRUD. You tell it which table, which columns, and what values to put in.","beginner","md","i",{},true,"\u002Fterms\u002Fi\u002Finsert",[80,81,82,83,84],"SELECT","UPDATE","DELETE","CRUD","Row",{"title":5,"description":72},{"changefreq":87,"priority":88},"weekly",0.7,"terms\u002Fi\u002Finsert","Kk1fcGPn0Mt-mwASggWbhm6QRl9_Z0yKiGLhHkZ566E",[92,96,99,102,105],{"title":83,"path":93,"acronym":94,"category":71,"difficulty":73,"description":95},"\u002Fterms\u002Fc\u002Fcrud","Create, Read, Update, Delete","CRUD is the four things you can do to data: Create it, Read it, Update it, Delete it. Literally every app ever made is just CRUD in a trenchcoat.",{"title":82,"path":97,"acronym":6,"category":71,"difficulty":73,"description":98},"\u002Fterms\u002Fd\u002Fdelete","DELETE removes rows from a table. It is the 'Delete' in CRUD. Like UPDATE, you MUST use a WHERE clause — without it, you delete everything in the table.",{"title":84,"path":100,"acronym":6,"category":71,"difficulty":73,"description":101},"\u002Fterms\u002Fr\u002Frow","A row is one single record in a table. If your users table has 500 users, it has 500 rows.",{"title":80,"path":103,"acronym":6,"category":71,"difficulty":73,"description":104},"\u002Fterms\u002Fs\u002Fselect","SELECT is how you ask a database to give you data. It is the 'Read' in CRUD.",{"title":81,"path":106,"acronym":6,"category":71,"difficulty":73,"description":107},"\u002Fterms\u002Fu\u002Fupdate","UPDATE changes existing data in a table. It is the 'Update' in CRUD.",1776518287853]