Quick BI创建sql数据集报语法错误
更新时间:
问题描述
使用adb3.0的数据源创建sql数据集,报错如下:
[201] [20002, 2021122916572301019019208210453936092] : line 1:1: syntax error, error in :'from mkt_cust_detail_brand 'BI' = ', expect ), actual =, pos 289, line 12, column 7, token =
原始sql如下:
select * from mkt_cust_detail_brand where cust_code = '${cust_code}' and license_code = '${license_code}'
解决方案
因为查询的表名末尾存在"and"关键字,将表名用引号引起来即可正常查询,修改后的sql如下:
select * from `mkt_cust_detail_brand` where cust_code = '${cust_code}' and license_code = '${license_code}'
适用于
- Quick BI-数据集
反馈
- 本页导读
文档反馈