(本文档仅供参考)
问题说明
在原生sql中,查询了两张表的字段。其中两张表中都有一个字段叫做"opreator_name",在sql中同时查了这两个字段,但是as 别名是不一样的。结果发现在输出结果集的时候,输出字段始终只有一个。
如下:
![](/download/attachments/76677990/image2018-9-21%2014%3A18%3A40.png?version=1&modificationDate=1537510822000&api=v2)
解决方案
该问题是因为使用的数据库是mysql数据库,且数据源中的连接字符串不正确。
必须保证关系数据源中的链接字符串如下格式:
jdbc:mysql://192.168.1.10:3060/dw?useOldAliasMetadataBehavior=true&useUnicode=true&characterEncoding=GBK&zeroDateTimeBehavior=convertToNull
![](/download/attachments/76677990/image2018-9-21%2014%3A20%3A18.png?version=1&modificationDate=1537510822000&api=v2)
Viewtracker License Missing
There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.
授权码细节