11 2021 档案

摘要:一、一次插入多个对象 <insert id="addList"> insert into user (name,age,mobilephone,sex,birthday,email) values <foreach collection="contactInfos" item="item" open 阅读全文
posted @ 2021-11-19 14:56 Mrs.Third 阅读(746) 评论(0) 推荐(0)
摘要:':用于包裹搜索条件,需转为\'; %:用于代替任意数目的任意字符,需转换为\%; _:用于代替一个任意字符,需转换为\_; \:转义符号,需转换为\\\\。 1,搜索a'b... SELECT * FROM user WHERE name LIKE 'a\'b%'; 2,搜索a%b... SELE 阅读全文
posted @ 2021-11-04 17:07 Mrs.Third 阅读(847) 评论(0) 推荐(0)