bq Verified for current stable LTS

Bq Command: Run Parameterized Query

Use for run parameterized query with Bq. Exact CLI syntax to run parameterized query using Bq.

When to use this: Use for run parameterized query with Bq.

Command Syntax

bq query --use_legacy_sql=false --parameter='ts_value:TIMESTAMP:2016-12-07 08:00:00' 'SELECT TIMESTAMP_ADD(@ts_value, INTERVAL 1 HOUR'

Command Breakdown

--use_legacy_sql=false
Command Option
Tool-specific option used by this command invocation.
--parameter='ts_value:TIMESTAMP:2016-12-07
Command Option
Tool-specific option used by this command invocation.

FAQ

Purpose: Exact syntax to run parameterized query using Bq.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Bq directory