列表 ,用指定字段, 模糊匹配的数据,
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
ALTER proc P_存过名字
@TiaoJian nvarchar(50), @AgentId int
as
select * from es_Agents
where BelongsAgentOrgID=@AgentId and (
AgentsName like '%'+@TiaoJian+'%'
or CellPhone like '%'+@TiaoJian+'%' )
注意点: 1. 模糊查询拼接参数 ,2 一个and 匹配多尔or 需要把 or 括起来

更多精彩