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

  • 相关阅读:
    NYOJ-开灯问题
    cocos2dx 3.0 飞机大战
    Java 实现享元(Flyweight)模式
    MongoDB 操作手冊CRUD查询指针
    均值滤波
    cxf调用c#的webservice
    SharePoint 2013 术语和术语集介绍
    Unity3d 网络编程(二)(Unity3d内建网络各项參数介绍)
    linux服务器在运行210天左右宕机
    好的用户界面-界面设计的一些技巧
  • 原文地址:https://www.cnblogs.com/shink1117/p/9560320.html
Copyright © 2011-2022 走看看