-
Notifications
You must be signed in to change notification settings - Fork 440
Parameters
Rene Saarsoo edited this page Jan 25, 2025
·
11 revisions
Parameter placeholder markers used in prepared statements.
Note: Apache Hive, SingleStoreDB, Snowflake and Spark don't support prepared statements.
These come in the form of single question mark (?), supported by:
-
MariaDB:
:1,:2, ...2 -
N1QL:
$1,$2, ... -
PL/SQL:
:1,:2, ... -
PostgreSQL:
$1,$2, ... -
Redshift:
$1,$2, ... -
SQLite:
?1,?2, ...
-
BigQuery:
@followed by identifier (either quoted or unquoted) -
DB2: colon (
:) followed by name (the name can include letters, numbers, and the symbols@,#,$, and_) -
DB2i: colon (
:) followed by name. -
N1QL:
$followed by unquoted identifier -
PL/SQL: colon (
:) followed by identifier. (The linked documentation says only alphanumeric chars are allowed, but issue 822 says that$and#characters are also supported like in normal identifiers.) -
SQLite:
$,@or:followed by unquoted identifier -
Transact-SQL:
@or:3 followed by identifier (either quoted or unquoted)
- When using ODBC or OLE DB driver
- When SQL_MODE=ORACLE enabled.
- When using Oracle driver.