22 lines
684 B
XML
22 lines
684 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="net.geedge.dao.SqlDao">
|
|
|
|
<select id="allTables" resultType="java.lang.String">
|
|
show tables
|
|
</select>
|
|
|
|
<select id="allRemoveCopyTables" resultType="java.lang.String">
|
|
select CONCAT( 'drop table ', table_name, ';' ) FROM information_schema.tables Where table_name LIKE '%_copy'
|
|
</select>
|
|
|
|
<select id="execute">
|
|
${sql}
|
|
</select>
|
|
|
|
<select id="allTriggers" resultType="java.lang.String">
|
|
select trigger_name FROM information_schema.`TRIGGERS` where trigger_schema = #{databaseName}
|
|
</select>
|
|
</mapper>
|