zoukankan      html  css  js  c++  java
  • replace批量替换、表删除数据查询用法

    一.

    select * from baec_file where bacti='1'order by baec01;

    select baec02,REPLACE(baec02,'白班','A班') from baec_file where bacti='1';

    ---对于没有sql无撤回功能,一定要先查出要替换的记录数,确认无误再执行替换

    update baec_file
    set baec02=REPLACE(baec02,'晚班','B班')
    where bacti='1' ;

    二.

     select * from qcs_file  as of timestamp sysdate-1/24  where qcs01='320-KT21121500'     ----1/24表示过去的一小时内,这个sql针对单张表

  • 相关阅读:
    Grails
    Grails
    Grails
    Grails
    Grails
    Grails
    PG
    TopShelf安装多实例
    Js 实现自定义事件
    HttpContext未null处理
  • 原文地址:https://www.cnblogs.com/mylive/p/15683257.html
Copyright © 2011-2022 走看看