oracle,达梦数据库获取表字段sql修复
This commit is contained in:
@@ -46,11 +46,11 @@
|
|||||||
<!-- 获取表字段集合 -->
|
<!-- 获取表字段集合 -->
|
||||||
<select id="getTableColumnList" resultMap="TableColumnDescDtoMap">
|
<select id="getTableColumnList" resultMap="TableColumnDescDtoMap">
|
||||||
select t.TABLE_NAME,t.COLUMN_NAME,t.DATA_TYPE,case t.NULLABLE when 'Y' then '1' when 'N' then '0' end NULLABLE, c.COMMENTS,
|
select t.TABLE_NAME,t.COLUMN_NAME,t.DATA_TYPE,case t.NULLABLE when 'Y' then '1' when 'N' then '0' end NULLABLE, c.COMMENTS,
|
||||||
s.POSITION as primaryKey from user_tab_columns t
|
s.POSITION as primaryKey from all_tab_columns t
|
||||||
left join user_col_comments c on t.COLUMN_NAME = c.COLUMN_NAME and t.TABLE_NAME = c.TABLE_NAME
|
left join user_col_comments c on t.COLUMN_NAME = c.COLUMN_NAME and t.TABLE_NAME = c.TABLE_NAME
|
||||||
left join user_cons_columns s on t.COLUMN_NAME = s.COLUMN_NAME and t.TABLE_NAME = s.TABLE_NAME and s.POSITION = 1
|
left join user_cons_columns s on t.COLUMN_NAME = s.COLUMN_NAME and t.TABLE_NAME = s.TABLE_NAME and s.POSITION = 1
|
||||||
<where>
|
<where>
|
||||||
t.table_name in (select table_name from all_tables where owner = #{dbName} )
|
t.owner = #{dbName}
|
||||||
<if test="tableName != null"> and t.TABLE_NAME = #{tableName}</if>
|
<if test="tableName != null"> and t.TABLE_NAME = #{tableName}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -46,11 +46,11 @@
|
|||||||
<!-- 获取表字段集合 -->
|
<!-- 获取表字段集合 -->
|
||||||
<select id="getTableColumnList" resultMap="TableColumnDescDtoMap">
|
<select id="getTableColumnList" resultMap="TableColumnDescDtoMap">
|
||||||
select t.TABLE_NAME,t.COLUMN_NAME,t.DATA_TYPE,case t.NULLABLE when 'Y' then '1' when 'N' then '0' end NULLABLE, c.COMMENTS,
|
select t.TABLE_NAME,t.COLUMN_NAME,t.DATA_TYPE,case t.NULLABLE when 'Y' then '1' when 'N' then '0' end NULLABLE, c.COMMENTS,
|
||||||
s.POSITION as primaryKey from user_tab_columns t
|
s.POSITION as primaryKey from all_tab_columns t
|
||||||
left join user_col_comments c on t.COLUMN_NAME = c.COLUMN_NAME and t.TABLE_NAME = c.TABLE_NAME
|
left join user_col_comments c on t.COLUMN_NAME = c.COLUMN_NAME and t.TABLE_NAME = c.TABLE_NAME
|
||||||
left join user_cons_columns s on t.COLUMN_NAME = s.COLUMN_NAME and t.TABLE_NAME = s.TABLE_NAME and s.POSITION = 1
|
left join user_cons_columns s on t.COLUMN_NAME = s.COLUMN_NAME and t.TABLE_NAME = s.TABLE_NAME and s.POSITION = 1
|
||||||
<where>
|
<where>
|
||||||
t.table_name in (select table_name from all_tables where owner = #{dbName} )
|
t.owner = #{dbName}
|
||||||
<if test="tableName != null"> and t.TABLE_NAME = #{tableName}</if>
|
<if test="tableName != null"> and t.TABLE_NAME = #{tableName}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon-db.png"><title>数据库文档管理</title><link href="css/chunk-vendors.2fa4c9b3.css" rel="preload" as="style"><link href="css/index.d21f0fdb.css" rel="preload" as="style"><link href="js/chunk-vendors.6270548d.js" rel="preload" as="script"><link href="js/index.5feed82e.js" rel="preload" as="script"><link href="css/chunk-vendors.2fa4c9b3.css" rel="stylesheet"><link href="css/index.d21f0fdb.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zyplayer-db-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.6270548d.js"></script><script src="js/index.5feed82e.js"></script></body></html>
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon-db.png"><title>数据库文档管理</title><link href="css/chunk-vendors.2fa4c9b3.css" rel="preload" as="style"><link href="css/index.88462938.css" rel="preload" as="style"><link href="js/chunk-vendors.6270548d.js" rel="preload" as="script"><link href="js/index.dada83b9.js" rel="preload" as="script"><link href="css/chunk-vendors.2fa4c9b3.css" rel="stylesheet"><link href="css/index.88462938.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zyplayer-db-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.6270548d.js"></script><script src="js/index.dada83b9.js"></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@
|
|||||||
<el-form-item label="分组">
|
<el-form-item label="分组">
|
||||||
<el-select v-model="searchParam.groupName" placeholder="分组">
|
<el-select v-model="searchParam.groupName" placeholder="分组">
|
||||||
<el-option value="">全部</el-option>
|
<el-option value="">全部</el-option>
|
||||||
<el-option :value="item" v-for="item in datasourceGroupList"></el-option>
|
<el-option :value="item" v-for="(item,index) in datasourceGroupList" :key="index"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<el-select v-model="newDatasource.groupName" placeholder="请选择或输入新的分组名字"
|
<el-select v-model="newDatasource.groupName" placeholder="请选择或输入新的分组名字"
|
||||||
style="width: 100%" filterable allow-create>
|
style="width: 100%" filterable allow-create>
|
||||||
<el-option value="">未分组</el-option>
|
<el-option value="">未分组</el-option>
|
||||||
<el-option :value="item" v-for="item in datasourceGroupList"></el-option>
|
<el-option :value="item" v-for="(item,index) in datasourceGroupList" :key="index"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="数据源名称:">
|
<el-form-item label="数据源名称:">
|
||||||
|
|||||||
Reference in New Issue
Block a user