seeway

导航

java mybatis后台判断表是否存在mysql

<select id="isTableExist" parameterType="string" resultType="int">
    select count(*) from information_schema.TABLES where table_name = #{tableName}
</select>

 

posted on 2018-04-04 15:02  seeway  阅读(13148)  评论(0编辑  收藏  举报