sql多表联合多条件模糊查询

qq_35839519 2016-08-10 04:01:05
要求输入框里任意输入姓名或者代码 都可以查询出来 求大师解答
...全文
2018 7 打赏 收藏 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_43766301 2018-11-22
  • 打赏
  • 举报
回复
SELECT * from
experts e,sx s,classification c where e.e_id=s.e_id1 and s.cl_id1= c.cl_id and e.e_name LIKE '%张%'


welkin-lau 2018-11-22
  • 打赏
  • 举报
回复
select a.字段1,a.字段2,a.字段3,b.字段1,b.字段2,c.字段1 from table1 a left join table2 b on a.关联字段= b.关联字段 left join table3 c on a.关联字段= c.关联字段 where a.字段1 like '%模糊值%' or a.字段2 like '%模糊值%'
xuzuning 2016-08-10
  • 打赏
  • 举报
回复
select * from 表 where 姓名 + 代码 like '%传入值%'
lausfs 2016-08-10
  • 打赏
  • 举报
回复
select * from table1 t1 left join table2 t2 on t1.name=t2.sex where s.name like '%王%' or ......其他條件
qq_28053691 2016-08-10
  • 打赏
  • 举报
回复
select * from table1 t1 left join table2 t2 on t1.t2Id=t2.id where s.name like '%王%'
qq_28053691 2016-08-10
  • 打赏
  • 举报
回复
select * from table1 t1 left join table2 t2 on t1.name=t2.sex where s.name like '%王%'
ealing 2016-08-10
  • 打赏
  • 举报
回复
select * from 表名 where 姓名 like '%值%' or 代码 like '%值%'

111,128

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧