liveBook · Manning

Insert

An insertion is an operation that adds an element, record, or key-value association to a collection or data store, with placement and replacement behavior determined by the target.

How 2 Manning books explain it

Grokking Data Structures

Insertion is the operation of adding a new element to a collection while placing it in the position required by the collection's ordering.

How it is used
Shows how adding an element follows a collection’s ordering, priority, or placement rules.
How deep it goes
Works through Python insertion methods for sorted arrays and BSTs, including placement steps and running-time considerations.
Examples
Uses insertion of 3 into a sorted array and a priority-9 bug report bubbling up a heap.
What you can do after
Build it from scratch: implement sorted-array shifting or BST branch traversal to place a new value.

Read how Grokking Data Structures explains insert →

Build Python Web Apps with Streamlit

INSERT INTO is a SQL statement that adds one or more rows to a table.

How it is used
Adds users and haikus to tables while building a CRUD application.
How deep it goes
Explains syntax, column mapping, defaults, escape strings, and foreign-key requirements through worked inserts.
Examples
Uses users and haikus, including Alice's account and two multiline haiku rows.
What you can do after
Builds populated users and haikus tables with explicit values and database-generated fields.

Read how Build Python Web Apps with Streamlit explains insert →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.