You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haojing/classbean/com/weaver/mapper/FunctionUpgradeMapper.xml

13 lines
674 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="com.weaver.mapper.FunctionUpgradeMapper">
<select id="checkMenuControlList" resultType="int" databaseId="mysql">
select 1 from information_schema.tables where table_name='MENUCONTROLLIST' and table_schema = database()
</select>
<select id="checkMenuControlList" resultType="int" databaseId="oracle">
select 1 from user_tables where table_name='MENUCONTROLLIST'
</select>
<select id="checkMenuControlList" resultType="int">
SELECT 1 FROM sysobjects WHERE name='menucontrollist'
</select>
</mapper>