社区
C#
帖子详情
sql多表联合多条件模糊查询
qq_35839519
2016-08-10 04:01:05
要求输入框里任意输入姓名或者代码 都可以查询出来 求大师解答
...全文
2018
7
打赏
收藏
sql多表联合多条件模糊查询
要求输入框里任意输入姓名或者代码 都可以查询出来 求大师解答
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用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 '%值%'
个人常用
sql
语句
不定时补充!!!
SQL
Server
sql
语句的
模糊查询
: select * from 表名 where 列表名 like ‘%筛选
条件
%’,例如 select * from zixun where beizhu like '%img%'
SQL
Server
sql
语句的多
条件
查询: select * from 表名 where 列表名 = ‘筛选
条件
’and 列...
常用的
SQL
语句
1、全查 select * from yingXiong select表示查询 *表示查询全部字段 from 表示查询哪一张表(来自) yingXiong 表名称 2、查询某一个字段的值(不是全查) select y_name from yingXiong y_name表示当前表中要查询的字段 3、查询多个字段的值 Select y_name,y_type from yingXiong 注意:要查...
SQL
语言(二):数据查询
SQL
中的数据查询语言
My
sql
查询语句汇总
-my
sql
查询语句汇总
My
SQL
DQL 查询
单表查询 select <column> from <table> ;
多表
联合
查询 select (<column>,<column>,<column>,...) from <table> ; 如果需要查询该表的所有字段内容,可以使用 ‘ * ’ select * from stu; where 子句 在删除、修改、查询的时候都可以使用 where 子句,用于筛选满足特定
条件
的添加的数据进行删除、修改、查...
C#
111,128
社区成员
642,533
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章