日期:2014-05-19 浏览次数:20664 次
//String sql = "select count(*) from "+tableName; //int count = tableService.table_isExist(sql);
<select id="table_isExist" resultType="int" parameterType="java.lang.String"> $sql$ </select>
//String tableName = req.getString("tableName"); //int count = tableService.table_isExist(tableName);
<select id="table_isExist" resultType="int" parameterType="java.lang.String"> select count(*) from ${tableName}</select>