Skip to content
Local

Developer

SQL IN Clause Generator

Paste a list of values, one per line or separated by commas, and get a quoted, deduplicated SQL IN (...) clause.

Runs in your browser. Nothing leaves this device.

How to use SQL IN Clause Generator

  1. 1Paste the values, one per line or separated by commas.
  2. 2Type the column name and pick how values are quoted.
  3. 3Copy the clause into your query.

Questions

When are values quoted?

On Auto, a list of only numbers stays unquoted and anything else is quoted as text. Single quotes inside a value are doubled, so O'Brien becomes 'O''Brien'.

Why split every 1,000 values?

Oracle allows at most 1,000 items in one IN list. The split joins several IN lists with OR, which every database accepts.

Can I paste a column from a spreadsheet?

Yes. Line breaks, commas, semicolons and tabs all separate values, and blank lines are skipped.

Is my list sent anywhere?

No. It stays in your browser.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc