账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    mysql 模糊查询
    27
    0

    sql语句:

    select case ISNULL(case ISNULL(CA.ip) when true then C.crsIp else CA.ip  end) when true then '该设备已被删除' else (case ISNULL(CA.ip) when true then C.crsIp else CA.ip  end) end as ip,case ISNULL(case ISNULL(CA.cameraName) when true then C.crsName else CA.cameraName end) when true then '该设备已被删除' else (case ISNULL(CA.cameraName) when true then C.crsName else CA.cameraName end) end as devname,F.faultCode,F.memo,F.isLock,F.startTime,F.endTime from fault_list as F left join crossing as C on F.faultCode=C.crsCode left join camera as CA on F.faultCode=CA.cameraCode where F.isLock=1
    

    现在我想用devname或ip进行模糊查询 该怎么写 说明一下 我在sql字段中用了条件语句

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部