为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:8
【操作系统】:linux7.4
【CPU】:常见cpu非国产化cpu
【问题描述】*:寻求部分mysql替代函数,或者相关集成方案
对接代码自动生成需要用到几个函数
- select column_name, (case when (is_nullable = ‘no’ <![CDATA[ && ]]> column_key != ‘PRI’) then ‘1’ else null end) as is_required, (case when column_key = ‘PRI’ then ‘1’ else ‘0’ end) as is_pk, ordinal_position as sort, column_comment, (case when extra = ‘auto_increment’ then ‘1’ else ‘0’ end) as is_increment, column_type
from information_schema.columns where table_schema = (select database()) and table_name = (#{tableName})
代码不完整,最好具体的给出需要替代的函数名。从代码片段中可以看到一个 database() 查询数据库名。
达梦可以通过
select INSTANCE_NAME from v$instance
通过v$instance 动态试图来查询。