---
title: "mybatis 解决特殊参数（\" ,'）输入报错"
author: "beiqi"
date: "2014-12-06T00:10:02Z"
tags: ["SQL"]
categories: ["编程语言"]
slug: "mybatis"
draft: false
lastmod: "2014-12-08T14:57:59Z"
id: 2163540
url: "https://beiqi.iteye.com/blog/2163540"
---

sql 为：


添加concat 函数解决查询输入框输入特殊字符报错的问题,例如单引号

name like concat('%',#{name},'%') 