Positional parameters and provided types
Stay organized with collections
Save and categorize content based on your preferences.
Run a query with positional parameters and provided parameter types.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis page demonstrates how to run a BigQuery SQL query using positional parameters with specified data types in both Java and Node.js.\u003c/p\u003e\n"],["\u003cp\u003eThe provided examples showcase querying the \u003ccode\u003ebigquery-public-data.samples.shakespeare\u003c/code\u003e dataset using positional parameters for a list of words, a corpus name, and a minimum word count.\u003c/p\u003e\n"],["\u003cp\u003eThe Java code utilizes the \u003ccode\u003eQueryJobConfiguration\u003c/code\u003e to set positional parameters with specific data types like \u003ccode\u003eSTRING\u003c/code\u003e and \u003ccode\u003eINT64\u003c/code\u003e, while the Node.js example uses the \u003ccode\u003equeryOptions\u003c/code\u003e to do so.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for both language examples is required via Application Default Credentials.\u003c/p\u003e\n"]]],[],null,[]]