| | |
| | | select max(${field}) from ${schema}.${table} |
| | | </select> |
| | | <select id="existTable" resultType="java.lang.String"> |
| | | select |
| | | table_name |
| | | from `INFORMATION_SCHEMA`.`TABLES` |
| | | select distinct table_name |
| | | from INFORMATION_SCHEMA.TABLES |
| | | where table_name = #{tableName} |
| | | and TABLE_SCHEMA = #{dbName} |
| | | </select> |
| | | <select id="getTableListLike" resultType="java.lang.String"> |
| | | select |
| | | table_name |
| | | from `INFORMATION_SCHEMA`.`TABLES` |
| | | select distinct table_name |
| | | from INFORMATION_SCHEMA.TABLES |
| | | where TABLE_SCHEMA = #{dbName} |
| | | and table_name like concat(#{tableLike},'%') |
| | | </select> |