• customer.sql


    ------------------------------------------------------------------------白名单----------------------------------------------------------------

    --------------------------------------------------------------查询审核中的白名单用户--------------------------------------------------
    --1.查询所有在审核中的用户
    select * from loan_customers where status = 2 and cus_name not in
    --2.查询所有黑名单用户
    (select cus.cus_name from loan_customers cus,loan_black_lists bla
    where cus.identity_no = bla.identity_no)

    ------------------------------------------------------更新白名单审核中的数据状态为【0】-------------------------------------------
    update loan_customers set status = 0 where cus_id in
    --查询审核中的白名单用户
    --1.查询所有在审核中的用户
    (select cus_id from loan_customers where status = 2 and cus_name not in
    --2.查询所有黑名单用户
    (select cus.cus_name from loan_customers cus,loan_black_lists bla
    where cus.identity_no = bla.identity_no))

    ------------------------------------------------------------------------黑名单----------------------------------------------------------------


    --------------------------------------------------------------查询审核中的黑名单用户--------------------------------------------------
    --1.查询所有在审核中的用户
    select * from loan_customers where status = 2 and cus_name in
    --2.查询所有黑名单用户
    (select cus.cus_name from loan_customers cus,loan_black_lists bla
    where cus.identity_no = bla.identity_no)

    ------------------------------------------------------更新白名单审核中的数据状态为【1】------------------------------------------
    update loan_customers set status = 1 where cus_id in
    --查询审核中的黑名单用户
    --1.查询所有在审核中的用户
    (select cus_id from loan_customers where status = 2 and cus_name in
    --2.查询所有黑名单用户
    (select cus.cus_name from loan_customers cus,loan_black_lists bla
    where cus.identity_no = bla.identity_no))

  • 相关阅读:
    线性筛素数
    m个苹果放入n个盘子问题
    幸运的袋子
    [HNOI2013]消毒
    [SDOI2016]数字配对
    [SCOI2015]小凸玩矩阵
    [JLOI2008]将军
    [HEOI2016/TJOI2016]游戏
    [洛谷4329/COCI2006-2007#1] Bond
    [BZOJ1324]Exca王者之剑
  • 原文地址:https://www.cnblogs.com/anjunshuang/p/9298484.html
Copyright © 2020-2023  润新知