From spreadsheet column to WHERE clause
It comes up constantly: someone hands you a CSV of order numbers or user emails and asks you to “check these in the database.” This tool does the tedious middle step. It parses the CSV with a proper RFC 4180 parser (quoted fields and embedded commas survive), lets you pick the column you care about, and emits a col IN ('a', 'b', 'c') clause with values escaped, duplicates removed and — if you ask — the list split into chunks that Oracle will accept.
The delimiter is auto-detected (comma, semicolon, tab or pipe) and the header row is guessed from the data, but both are overridable. If your values arrive as JSON instead of CSV, the JSON Array to SQL IN Statement tool is the same idea for arrays and API responses.
How to build a SQL IN clause from CSV
- Paste your CSV — a full export is fine, you only pick one column.
- Check the detected delimiter and header setting, then choose the column.
- Set quoting (auto handles most cases), optionally type a column name, and pick a chunk size if the list is long.
- Copy the SQL straight into your query.
Quoting, duplicates and the 1000-item wall
Three details separate a clean IN clause from a broken one. Quoting must match the column type — quoted numbers against an integer column can stop the database using its index. Duplicates are legal but noisy, so they are removed by default. And Oracle flatly refuses lists longer than 1000 items (ORA-01795); the chunking option rewrites the clause as (col IN (…) OR col IN (…)) so it runs anyway. Everything happens locally in your browser, so production identifiers never leave your machine.