zoukankan      html  css  js  c++  java
  • 8/30 sql脚本

    SELECT * FROM content_organization_top
    update content_organization_top set uuid = UUID() where id =id
    update content_organization_top set uuid = REPLACE(uuid,'-','')
    UPDATE content_organization_top t, content_organization_department d set d.source_uuid = t.uuid where d.source = t.departName
    update lbb_content_organzation_top_extension t, lbb_content_organzation_discipline_extension d set d.source_uuid = t.uuid where d.source = t.depart_name

    SELECT * FROM lbb_content_organzation_top_extension where discipline_inspection != ''

    update lbb_department_and_employee de, lbb_content_organzation_department_extension d, lbb_content_organzation_employee_extension e set de. where d.source = t.depart_name

    select a.uuid,b.uuid from lbb_content_organzation_employee_extension a,lbb_content_organzation_department_extension b where a.department=b.depart_name and a.source = b.source

    SELECT count() FROM lbb_department_and_employee
    SELECT count(
    ) FROM lbb_content_organzation_employee_extension

    select a.uuid,b.uuid from lbb_content_organzation_employee_extension a,lbb_content_organzation_top_extension b where a.source = b.depart_name

    SELECT * from lbb_content_organzation_employee_extension a where uuid not in (SELECT employee_uuid FROM lbb_department_and_employee de)

    SELECT source,uuid from lbb_content_organzation_employee_extension a where uuid not in (SELECT employee_uuid FROM lbb_department_and_employee de)

    SELECT depart_name,uuid from lbb_content_organzation_top_extension a where depart_name in (SELECT source from lbb_content_organzation_employee_extension a where uuid not in (SELECT employee_uuid FROM lbb_department_and_employee de))

    select a.uuid,b.uuid from lbb_content_organzation_employee_extension a,lbb_content_organzation_top_extension b where a.source = b.depart_name

    select a.uuid,b.uuid from lbb_content_organzation_employee_extension a,lbb_content_organzation_department_extension b where a.department=b.depart_name and a.source = b.source

  • 相关阅读:
    ASP.NET Zero--后端应用程序
    ASP.NET Zero--前期要求
    ASP.NET Zero--解决方案结构(层)
    ASP.NET Zero--开发指南
    Pos终端中的主密钥、工作密钥、pin密钥、mac密钥
    location.origin不兼容IE8解决方案
    一些常用的meta标签
    c#核心基础-委托
    springBoot项目启动去掉多余的启动日志
    如何发行自己的TRC20代币,并上线JustSwap去中心化交易所
  • 原文地址:https://www.cnblogs.com/shink1117/p/9560320.html
Copyright © 2011-2022 走看看