zoukankan      html  css  js  c++  java
  • 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))

  • 相关阅读:
    Coursera台大机器学习课程笔记8 -- Linear Regression
    近两年跟踪速度较快的算法小结(转)
    hdu 4278 Faulty Odometer
    hdu 2571 命运
    hdu 6168 Numbers
    Codeforces 888C:K-Dominant Character
    poj 3061 Subsequence
    poj 1852 Ants
    1115. Counting Nodes in a BST (30)
    1064. Complete Binary Search Tree (30)
  • 原文地址:https://www.cnblogs.com/anjunshuang/p/9298484.html
Copyright © 2011-2022 走看看