在使用动态sql的时候,可以将多种数据库格式写进去,方便扩展 <if test="id!= null and id!= ''"> AND tg.id LIKE <if test="dbName == 'oracle'">