doc-exports/docs/ddm/umn/ddm_03_0040.html
Hasko, Vladimir a5cc543164 reverting ddm umn to state before last commit in #613
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2024-01-17 13:06:49 +00:00

1.4 KiB

Specifying a Shard Using a Hint When Executing a SQL Statement

Command Format:

/*+db=<physical_db_name>*/ <your query>;

Description:

Specify a shard by configuring <physical_db_name> and execute a SQL statement on the shard.

Example:

/*+db=test_0000*/ select * from t1;

Restrictions:

  • The hint is valid only for SELECT, DML, and TRUNCATE statements.
  • The hint works only under the text protocol, rather than the Prepare protocol.