Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
808 views
in Technique[技术] by (71.8m points)

google bigquery - write Legacy views in Standard SQL format

I wish to update my big query table :

FROM [myProject.Mydataset.ga_sessions_20171129]

I can update it to a standard SQL format:

 FROM `myProject.Mydataset.ga_sessions_20171129`

ga_sessions_20171129 is my table id and the last part of its name shows the last date that the table is updated, so the next table for the next day will be 20171130

How do I write something like that?

from `ga_sessions_*` where _TABLE_SUFFIX=TODAY

That updates the date every day to today's date

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...