▥ UTILIZABLE
Tools / SQL Tools

SQL IN Generator

値のリストを、そのまま使えるIN句へ。

● Browser-only processing — 入力データをサーバに送信せず、このブラウザ内で処理します。

値の前後の空白は除去します。CSVのヘッダも値として扱います。文字列中のシングルクォートはエスケープし、数値は数値表記のみ許可します。

NULL判定は大文字・小文字を区別しません。NULL除外をOFFにするとSQLのNULLとして出力します。IN (NULL) はNULL検索には使えません。NULL検索には IS NULL を使用してください。大量の値にはDB・バージョンごとの制限があります。

How to use SQL IN Generator

  1. Paste one value per line, or paste CSV data to use every cell.
  2. Select string or numeric output and choose whether to remove duplicates, blank values, or NULL.
  3. Generate the list, review the result, and copy it into an IN clause.

What SQL IN Generator does

It converts lists and CSV cells into a comma-separated SQL value list. String values are quoted and embedded quotes are escaped; numeric mode checks that each retained value is numeric.

Useful for

  • Turning spreadsheet values into an IN list
  • Removing repeated IDs before a query
  • Preparing quoted text values safely and consistently

Supported input and limitations

Input can be line-separated text or CSV. Whitespace is trimmed, CSV headers are treated as values, and NULL matching is case-insensitive when removal is enabled. Check the IN-list limits and syntax of your database before running a generated query.

Privacy

Conversion runs in your browser, and pasted values are not sent to an application server. Anonymous page-access analytics are described in the Privacy Policy.