首页 > 解决方案 > 如何在 Data Studio 自定义查询中配置数据库标志?

问题描述

我正在尝试通过 Data Studio 从我的数据库中获取使用 aes-256-ecb 加密的数据,问题是我的 Cloud Sql 数据库默认具有 aes-128-ecb 并且我无法更改加密模式,因为Cloud Sql 没有允许更改此配置。

有没有办法使用我在查询中配置标志的 Data Studio 进行自定义查询?

SET block_encryption_mode = 'aes-256-ecb';
SELECT cast(Aes_decrypt(From_base64('BLS6mf+5dlvYO3dxQF5GIQ=='),'Secret') as  char(50));

标签: google-cloud-platformgoogle-cloud-sqlgoogle-data-studio

解决方案


推荐阅读