<?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="com.yssh.mapper.CommonMapper">
|
<select id="checkTableExistsWithSchema" resultType="java.lang.Integer">
|
SELECT COUNT(1) FROM information_schema.tables WHERE
|
table_schema=#{tableSchema} AND table_name = #{tableName}
|
</select>
|
|
<select id="checkTableExistsWithShow" parameterType="String" resultType="java.util.Map">
|
show tables like #{tableName}
|
</select>
|
</mapper>
|