# SQL Injection

*noun*

say it: **“SEE-kwul in-JEK-shun”** **/ˈsiːkwəl ɪnˈdʒɛkʃən/**

An attack where someone types SQL into an input box so that it becomes part of your query.

## What is **SQL Injection** in a relational database?

**SQL Injection** — A vulnerability where untrusted input changes the intended structure of a SQL statement.

```sql
SELECT customer_id, email
FROM customer
WHERE email = ?;
```

## In a sentence

- “Joining the user's text into the query left it open to **SQL injection**.”

Level: Journeyman · [More Database terms at this level](https://www.ask-codey.com/glossary?category=database&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/sql-injection
