sql模糊查询,解除绑定的单号
--610007570320-610007571319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007570320
and TO_NUMBER(bill_code) <= 610007571319); delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007570320
and TO_NUMBER(bill_code) <= 610007571319);
-- 610007572320-610007573319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007572320
and TO_NUMBER(bill_code) <= 610007573319);
--610007571320-610007572319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007571320
and TO_NUMBER(bill_code) <= 610007572319);
--610007585320-610007586319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007585320
and TO_NUMBER(bill_code) <= 610007586319);
-- 610007582320-610007583319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007582320
and TO_NUMBER(bill_code) <= 610007583319);
--610007575320-610007576319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007575320
and TO_NUMBER(bill_code) <= 610007576319);
-- 610007568320-610007569319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007568320
and TO_NUMBER(bill_code) <= 610007569319);
--610007578320-610007579319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007578320
and TO_NUMBER(bill_code) <= 610007579319);
--610007586320-610007587319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007586320
and TO_NUMBER(bill_code) <= 610007587319);
--610007550320-610007551319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007550320
and TO_NUMBER(bill_code) <= 610007551319);
--610007558940-610007559319 380张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007558940
and TO_NUMBER(bill_code) <= 610007559319);
--610007556320-610007557319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007556320
and TO_NUMBER(bill_code) <= 610007557319);
--610007589320-610007590319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007589320
and TO_NUMBER(bill_code) <= 610007590319);
--610007564320-610007565319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007564320
and TO_NUMBER(bill_code) <= 610007565319);
--610007581320-610007582319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007581320
and TO_NUMBER(bill_code) <= 610007582319);
--610007569320-610007570319 1000张 delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007569320
and TO_NUMBER(bill_code) <= 610007570319); --610007552320-610007553319 1000张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007552320
and TO_NUMBER(bill_code) <= 610007553319);
--610007558460-610007558819 360张
delete from (select t.*
from (select t1.bill_code, t1.bind_code, t1.use_flag
from t_mm_section_sl t1
where t1.bill_code like '6100075%') t
where TO_NUMBER(bill_code) >= 610007558460
and TO_NUMBER(bill_code) <= 610007558819);
commit;
注:开始的时候写的下面的,一直报错,原因是bill_code的值有是字母的,所以后来就过滤掉那些不是纯数字的单号,再用to_number就好了
sql模糊查询,解除绑定的单号的更多相关文章
- sql模糊查询
SQL 模糊查询 在进行数据库查询时,有完整查询和模糊查询之分. 一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: ...
- SQL 模糊查询
在进行数据库查询时,有完整查询和模糊查询之分.一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式:1,%:表示任意0个 ...
- SQL 模糊查询(like)
在进行数据库查询时,有完整查询和模糊查询之分. SQL模糊查询,使用like比较字,加上SQL里的通配符,请参考以下: 1.LIKE'Mc%' 将搜索以字母 Mc 开头的所有字符串(如 McBadde ...
- [转]SQL 模糊查询
在进行数据库查询时,有完整查询和模糊查询之分. 一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: 1,% :表 ...
- 8.mybatis动态SQL模糊查询 (多参数查询,使用parameterType)
多参数查询,使用parameterType.实例: 用户User[id, name, age] 1.mysql建表并插入数据 2.Java实体类 public class User { public ...
- SQL模糊查询与删除多条语句复习
string IDlist="1,2,3"; 批量删除数据 StringBuilder strsql=new StringBuilder(); strSql.Append(&quo ...
- Jmeter中JDBC Request和BeanShell PostProcessor的结合使用(SQL模糊查询)
[前言] 今天记录一下Jmeter中JDBC Request和BeanShell PostProcessor的结合使用的方法(SQL模糊查询) [步骤] 1.下载对应数据库的驱动包到jmeter安装目 ...
- SQL模糊查询条件的四种匹配模式
执行数据库查询时,有完整查询和模糊查询之分. 一般模糊语句格式如下: SELECT 字段 FROM 表 WHERE 某字段 LIKE 条件 其中关于条件,SQL提供了四种匹配模式: 1.% :表示任意 ...
- 有关SQL模糊查询
执行 数据库查询时,有完整查询和模糊查询之分. 一般模糊语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: 1,%:表示任意0个 ...
随机推荐
- EXBSGS
http://210.33.19.103/problem/2183 参考:https://blog.csdn.net/frods/article/details/67639410(里面代码好像不太对) ...
- 1-9方法的重写(override)
什么是重写? 重写,也叫做覆盖,当父类中的方法无法满足子类需求时,子类可以将父类的方法进行重写编写来满足需求.比如孩子继承了父亲的房子,可以将房子重新装修. 方法重写的条件: 两个类必须是继承关系 必 ...
- h5-16-插入SVG图片
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...
- “玲珑杯”ACM比赛 Round #5 H -- Variance 简单树状数组
可以把每个公式都化简,然后得到要维护的东西就是平方和,和前缀和,两个bit即可 不能cin,超时.IOS后都不行. scanf用lld #include <cstdio> #include ...
- 非常强大的前端插件:emmet
安装 Emmet 也有快速生成文件头的功能啊,而且更强大啊输入下边加粗的缩写,然后Tab,就OK了啊http://docs.emmet.io/cheat-sheet/ html:4t <!DOC ...
- iOS逆向实战与工具使用(微信添加好友自动确认)
iOS逆向实战与工具使用(微信添加好友自动确认) 原文链接 源码地址 WeChatPlugin-iOS Mac OS 版微信小助手(远程控制.消息防撤回.自动回复.微信多开) 一.前言 本篇主要实现在 ...
- innerHTML引起IE的内存泄漏
内存泄漏常见的原因有三种: 1. 闭包 2. 未解除事件绑定 3. 循环引用DOM元素 除此之外,还有一种泄漏原因少有人知,它和innerHTML有关,不过很容易解决. 出现这种内存泄漏需要有三个 ...
- C#读取web.config配置文件内容
1.对配置文件的访问. 方法一: string myConn =System.Configuration.ConfigurationManager.ConnectionStrings["sq ...
- 洛谷 P1507 NASA的食物计划
题目背景 NASA(美国航空航天局)因为航天飞机的隔热瓦等其他安 全技术问题一直大伤脑筋,因此在各方压力下终止了航天 飞机的历史,但是此类事情会不会在以后发生,谁也无法 保证,在遇到这类航天问题时,解 ...
- 聊聊JavaScript和Scala的表达式 Expression
我们先看下面这段简单的JavaScript代码. 我在第10行调用了函数f,其中传入的第二个和第三个参数都是一个逗号表达式. 函数f的实现,会检查这两个参数的类型,如果是函数,则执行函数调用,再打印其 ...