1. --610007570320-610007571319 1000
  2.  
  3. delete from (select t.*
  4. from (select t1.bill_code, t1.bind_code, t1.use_flag
  5. from t_mm_section_sl t1
  6. where t1.bill_code like '6100075%') t
  7. where TO_NUMBER(bill_code) >= 610007570320
  8. and TO_NUMBER(bill_code) <= 610007571319);
  9.  
  10. delete from (select t.*
  11. from (select t1.bill_code, t1.bind_code, t1.use_flag
  12. from t_mm_section_sl t1
  13. where t1.bill_code like '6100075%') t
  14. where TO_NUMBER(bill_code) >= 610007570320
  15. and TO_NUMBER(bill_code) <= 610007571319);
  16. -- 610007572320-610007573319 1000
  17.  
  18. delete from (select t.*
  19. from (select t1.bill_code, t1.bind_code, t1.use_flag
  20. from t_mm_section_sl t1
  21. where t1.bill_code like '6100075%') t
  22. where TO_NUMBER(bill_code) >= 610007572320
  23. and TO_NUMBER(bill_code) <= 610007573319);
  24. --610007571320-610007572319 1000
  25. delete from (select t.*
  26. from (select t1.bill_code, t1.bind_code, t1.use_flag
  27. from t_mm_section_sl t1
  28. where t1.bill_code like '6100075%') t
  29. where TO_NUMBER(bill_code) >= 610007571320
  30. and TO_NUMBER(bill_code) <= 610007572319);
  31. --610007585320-610007586319 1000
  32. delete from (select t.*
  33. from (select t1.bill_code, t1.bind_code, t1.use_flag
  34. from t_mm_section_sl t1
  35. where t1.bill_code like '6100075%') t
  36. where TO_NUMBER(bill_code) >= 610007585320
  37. and TO_NUMBER(bill_code) <= 610007586319);
  38. -- 610007582320-610007583319 1000
  39. delete from (select t.*
  40. from (select t1.bill_code, t1.bind_code, t1.use_flag
  41. from t_mm_section_sl t1
  42. where t1.bill_code like '6100075%') t
  43. where TO_NUMBER(bill_code) >= 610007582320
  44. and TO_NUMBER(bill_code) <= 610007583319);
  45. --610007575320-610007576319 1000
  46. delete from (select t.*
  47. from (select t1.bill_code, t1.bind_code, t1.use_flag
  48. from t_mm_section_sl t1
  49. where t1.bill_code like '6100075%') t
  50. where TO_NUMBER(bill_code) >= 610007575320
  51. and TO_NUMBER(bill_code) <= 610007576319);
  52. -- 610007568320-610007569319 1000
  53. delete from (select t.*
  54. from (select t1.bill_code, t1.bind_code, t1.use_flag
  55. from t_mm_section_sl t1
  56. where t1.bill_code like '6100075%') t
  57. where TO_NUMBER(bill_code) >= 610007568320
  58. and TO_NUMBER(bill_code) <= 610007569319);
  59. --610007578320-610007579319 1000
  60. delete from (select t.*
  61. from (select t1.bill_code, t1.bind_code, t1.use_flag
  62. from t_mm_section_sl t1
  63. where t1.bill_code like '6100075%') t
  64. where TO_NUMBER(bill_code) >= 610007578320
  65. and TO_NUMBER(bill_code) <= 610007579319);
  66. --610007586320-610007587319 1000
  67.  
  68. delete from (select t.*
  69. from (select t1.bill_code, t1.bind_code, t1.use_flag
  70. from t_mm_section_sl t1
  71. where t1.bill_code like '6100075%') t
  72. where TO_NUMBER(bill_code) >= 610007586320
  73. and TO_NUMBER(bill_code) <= 610007587319);
  74. --610007550320-610007551319 1000
  75.  
  76. delete from (select t.*
  77. from (select t1.bill_code, t1.bind_code, t1.use_flag
  78. from t_mm_section_sl t1
  79. where t1.bill_code like '6100075%') t
  80. where TO_NUMBER(bill_code) >= 610007550320
  81. and TO_NUMBER(bill_code) <= 610007551319);
  82. --610007558940-610007559319 380
  83.  
  84. delete from (select t.*
  85. from (select t1.bill_code, t1.bind_code, t1.use_flag
  86. from t_mm_section_sl t1
  87. where t1.bill_code like '6100075%') t
  88. where TO_NUMBER(bill_code) >= 610007558940
  89. and TO_NUMBER(bill_code) <= 610007559319);
  90. --610007556320-610007557319 1000
  91. delete from (select t.*
  92. from (select t1.bill_code, t1.bind_code, t1.use_flag
  93. from t_mm_section_sl t1
  94. where t1.bill_code like '6100075%') t
  95. where TO_NUMBER(bill_code) >= 610007556320
  96. and TO_NUMBER(bill_code) <= 610007557319);
  97. --610007589320-610007590319 1000
  98.  
  99. delete from (select t.*
  100. from (select t1.bill_code, t1.bind_code, t1.use_flag
  101. from t_mm_section_sl t1
  102. where t1.bill_code like '6100075%') t
  103. where TO_NUMBER(bill_code) >= 610007589320
  104. and TO_NUMBER(bill_code) <= 610007590319);
  105. --610007564320-610007565319 1000
  106.  
  107. delete from (select t.*
  108. from (select t1.bill_code, t1.bind_code, t1.use_flag
  109. from t_mm_section_sl t1
  110. where t1.bill_code like '6100075%') t
  111. where TO_NUMBER(bill_code) >= 610007564320
  112. and TO_NUMBER(bill_code) <= 610007565319);
  113. --610007581320-610007582319 1000
  114.  
  115. delete from (select t.*
  116. from (select t1.bill_code, t1.bind_code, t1.use_flag
  117. from t_mm_section_sl t1
  118. where t1.bill_code like '6100075%') t
  119. where TO_NUMBER(bill_code) >= 610007581320
  120. and TO_NUMBER(bill_code) <= 610007582319);
  121. --610007569320-610007570319 1000
  122.  
  123. delete from (select t.*
  124. from (select t1.bill_code, t1.bind_code, t1.use_flag
  125. from t_mm_section_sl t1
  126. where t1.bill_code like '6100075%') t
  127. where TO_NUMBER(bill_code) >= 610007569320
  128. and TO_NUMBER(bill_code) <= 610007570319);
  129.  
  130. --610007552320-610007553319 1000
  131. delete from (select t.*
  132. from (select t1.bill_code, t1.bind_code, t1.use_flag
  133. from t_mm_section_sl t1
  134. where t1.bill_code like '6100075%') t
  135. where TO_NUMBER(bill_code) >= 610007552320
  136. and TO_NUMBER(bill_code) <= 610007553319);
  137. --610007558460-610007558819 360
  138. delete from (select t.*
  139. from (select t1.bill_code, t1.bind_code, t1.use_flag
  140. from t_mm_section_sl t1
  141. where t1.bill_code like '6100075%') t
  142. where TO_NUMBER(bill_code) >= 610007558460
  143. and TO_NUMBER(bill_code) <= 610007558819);
  144. commit;

注:开始的时候写的下面的,一直报错,原因是bill_code的值有是字母的,所以后来就过滤掉那些不是纯数字的单号,再用to_number就好了

  1.  

sql模糊查询,解除绑定的单号的更多相关文章

  1. sql模糊查询

    SQL 模糊查询 在进行数据库查询时,有完整查询和模糊查询之分. 一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: ...

  2. SQL 模糊查询

    在进行数据库查询时,有完整查询和模糊查询之分.一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式:1,%:表示任意0个 ...

  3. SQL 模糊查询(like)

    在进行数据库查询时,有完整查询和模糊查询之分. SQL模糊查询,使用like比较字,加上SQL里的通配符,请参考以下: 1.LIKE'Mc%' 将搜索以字母 Mc 开头的所有字符串(如 McBadde ...

  4. [转]SQL 模糊查询

      在进行数据库查询时,有完整查询和模糊查询之分. 一般模糊查询语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: 1,% :表 ...

  5. 8.mybatis动态SQL模糊查询 (多参数查询,使用parameterType)

    多参数查询,使用parameterType.实例: 用户User[id, name, age] 1.mysql建表并插入数据 2.Java实体类 public class User { public ...

  6. SQL模糊查询与删除多条语句复习

    string IDlist="1,2,3"; 批量删除数据 StringBuilder strsql=new StringBuilder(); strSql.Append(&quo ...

  7. Jmeter中JDBC Request和BeanShell PostProcessor的结合使用(SQL模糊查询)

    [前言] 今天记录一下Jmeter中JDBC Request和BeanShell PostProcessor的结合使用的方法(SQL模糊查询) [步骤] 1.下载对应数据库的驱动包到jmeter安装目 ...

  8. SQL模糊查询条件的四种匹配模式

    执行数据库查询时,有完整查询和模糊查询之分. 一般模糊语句格式如下: SELECT 字段 FROM 表 WHERE 某字段 LIKE 条件 其中关于条件,SQL提供了四种匹配模式: 1.% :表示任意 ...

  9. 有关SQL模糊查询

    执行 数据库查询时,有完整查询和模糊查询之分. 一般模糊语句如下: SELECT 字段 FROM 表 WHERE 某字段 Like 条件 其中关于条件,SQL提供了四种匹配模式: 1,%:表示任意0个 ...

随机推荐

  1. linux中用户组和用户

    linux中用户组和用户 1.介绍 在我们的linux系统,有很多用户组,也可以手动创建用户组,不同的用户组下面有很多的用户. 2.创建用户组及有关的命令 groupadd phpzu:创建一个php ...

  2. Java项目的命名规则

    Java类的命名规范如下: 1. 项目名全部小写 2. 包名全部小写 3. 类名首字母大写,如果类名由多个单词组成,每个单词的首字母都要大写. 如:public class MyFirstClass{ ...

  3. Linux下文件权限的设置

    文件/目录权限设置命令:chmod 这是Linux系统管理员最常用到的命令之一,它用于改变文件或目录的访问权限.该命令有两种用法: 用包含字母和操作符表达式的文字设定法 ) 其语法格式为:chmod ...

  4. hihocoder1079 离散化

    思路:线段树 + 离散化. 测试用例: 3 10 1 10 1 3 6 10 实现: #include <bits/stdc++.h> using namespace std; typed ...

  5. css:段落文本两端对齐

    效果图: Css:

  6. Oracle ORA

    ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常. ORA-00017: 请求会话以设置跟踪事件 ORA-00018: 超出最大会话数 OR ...

  7. pocket API学习笔记

    最近安装了pocket离线阅读软件. 为了收藏需要的URL,每次都要打开浏览器.然后按google工具条上的pocket+. 网页多的时候,这个过程就非常缓慢. 根据pocket网站的API介绍,我可 ...

  8. RSA2

    进行签名的加密 package com.goboosoft.common.pay.util; import java.io.ByteArrayInputStream; import java.io.I ...

  9. roi pooling层

    roi pooling是先进行roi projection(即映射)然后再池化 映射是把用来训练的图片的roi映射到最后一层特征层(即卷积层).方法其实很简单,图片经过特征提取后,到最后一层卷积层时, ...

  10. MFC中EDIT控件实现换行

    \n是C下的回撤换行.在MFC下得用\r\n.