zoukankan      html  css  js  c++  java
  • DML数据操纵语言

    delete t_hq_bm where lianxdh ='10086';                                                        删除电话为10086的列

    truncate table t_hq_bm2;                                                                            删除表bm2

    create table t_hq_bm2 as select * from t_hq_bm;                                           复制表 bm

    create table t_hq_bm2 as select * from t_hq_bm where 1 > 2 ;                                            只复制结构不复制数据

    insert into t_hq_bm2(bumbm) select bumbm from t_hq_bm where bumbm = '101';                复制数据

    修改一列

    update t_hq_bm set lianxdh = '10086';                                                                                                   将电话全列改为10086

    update t_hq_bm set bummc ='营业部' where bumbm = '108';                                                                    将108改为营业部

    update t_hq_bm t set t.bummc = '企划部',t.lianxdh = '12345' where bumbm = '106';                                  将106改为企划部电话12345

    update t_hq_bm t set t.lianxdh = '23231' where t.bumbm >= '101' and  t.bumbm < '103';                         将101-102电话改为23231

    update t_hq_bm t set t.lianxdh = '23231' where t.bumbm = '105'or t.bumbm = '104' or t.bumbm = '103';   将103-105电话改为23231

  • 相关阅读:
    TF-IDF
    线性回归梳理
    snappy 在linux安装及使用
    Hbase 写入机制详解与MVCC机制
    phoenix二级索引源码阅读
    利用SET工具制造钓鱼网站
    jQuery框架漏洞全总结及开发建议
    DDE注入(CSV)漏洞原理及实战案例全汇总
    burp插件大全 漏洞扫描 waf绕过 sql XSS 命令注入 fuzzer
    点击劫持(ClickJacking)漏洞挖掘及实战案例全汇总
  • 原文地址:https://www.cnblogs.com/chenning/p/4913093.html
Copyright © 2011-2022 走看看