Google cloud platform Google大查询中的Oracle虚拟列
我在Oracle中有一个仓库,其中有些表具有虚拟列。 如果我们想将这个仓库迁移到Google Big Query,那么Oracle虚拟列有哪些选项 问候,,Google cloud platform Google大查询中的Oracle虚拟列,google-cloud-platform,google-bigquery,Google Cloud Platform,Google Bigquery,我在Oracle中有一个仓库,其中有些表具有虚拟列。 如果我们想将这个仓库迁移到Google Big Query,那么Oracle虚拟列有哪些选项 问候,, Sreekanth您可以使用逻辑视图模拟虚拟列。例如,假设表project.dataset.transactions具有列transaction\u date和transaction\u id,但您希望具有transaction\u year(作为INT64)和transaction\u week(作为INT64)的虚拟列。您可以创建逻辑视
Sreekanth您可以使用逻辑视图模拟虚拟列。例如,假设表
project.dataset.transactions
具有列transaction\u date
和transaction\u id
,但您希望具有transaction\u year
(作为INT64)和transaction\u week
(作为INT64)的虚拟列。您可以创建逻辑视图,例如:
CREATE VIEW `project.dataset.transactions_view` AS
SELECT
transaction_date,
transaction_id,
EXTRACT(ISOYEAR FROM transaction_date) AS transaction_year,
EXTRACT(ISOWEEK FROM transaction_date) AS transaction_week
FROM `project.dataset.transactions`;