DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Arrays / Lists — Example 46

Quick explanation + ready code for: Arrays / Lists.

SQL Arrays / Lists Back to examples
Back to language
Syntax: Arrays / Lists in SQL. ID: #46

Code

SELECT * FROM users WHERE id IN (21, 22, 23);

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.