<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>My-Sql on 庞玉栋个人博客</title><link>https://pangyd.com/tags/my-sql/</link><description>Recent content in My-Sql on 庞玉栋个人博客</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Wed, 16 Aug 2017 20:21:42 +0800</lastBuildDate><atom:link href="https://pangyd.com/tags/my-sql/index.xml" rel="self" type="application/rss+xml"/><item><title>MySQL多关键字多字段模糊查询</title><link>https://pangyd.com/post/61-mysql/</link><pubDate>Wed, 16 Aug 2017 20:18:48 +0800</pubDate><guid>https://pangyd.com/post/61-mysql/</guid><description>&lt;pre lay-lang="Java" class="layui-code" skin="notepad">sql="select *,teacher.teacherID as teacherName, "
					+ "department.depID as depName "
					+ "from teacher,article,department "
					+ "where teacher.teacherID=article.teacherID and department.depID=article.depID and articleName like '%"+f2+"%' "//查询关键字
					+ "and teacherName like '%"+f3+"%' "
					+ "and year like '%"+f6+"%' "
					+ "and depName like '%"+f9+"%' "
					+ "order by articleID";&lt;/pre></description></item></channel></rss>