A web app shows a login form. When someone submits it, the app builds a database query by gluing the typed name and password into a text template, then sends the finished text to the database. The database reads that text as SQL, the language for asking questions of tables.
For ordinary input this works: typing ana and x7 produces a query that matches one row. The code is simplified here (a real app compares password hashes, as in Passwords & Hashing), and every name is made up. The weak point is that the typed text is pasted in raw, with nothing marking it as data.
💡Good to know
Whenever input is joined into a query or command with + or string formatting, ask who controls that text.