oracle和mysql的一些区别

1、分页查询语句的区别

2、字符串拼接的区别,oracle不支持三个字符串的拼接,mysql支持三个字符串的拼接,在mybatis中,连接的是oracle数据库,字符串的拼接需要如下语句:

<select id="search" parameterType="string" resultType="Standard">
select * from standard
<where>
<if test="_parameter!=null and _parameter!=''">
and zhname like concat(concat('%',#{std_zhname}),'%') or std_um like concat(concat('%',#{std_zhname}),'%')
</if>
</where>
</select>

3、在进行mybatis的xml进行主键自增插入语句时的区别一定要注意。

原文地址:https://www.cnblogs.com/xiaoyao-001/p/8453638.html