1

Is there a way to do what the USE statement does in SQL? All the examples I have seen follow the format project:dataset.table, or sometimes just dataset.table .

I'm hoping to be able to USE dataset or USE project:dataset then just specify the table name in the SELECT.

1 Answer 1

1

There's currently no way to do this in SQL. But at the API level, you can specify the defaultDataset config option to get the same effect.

https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.query.defaultDataset

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.