field字段错位手动更改方法

update tbprotocolex set field=‘1‘ where name=‘ICMP‘;
update tbprotocolex set field=‘1‘ where name=‘DNS‘;
update tbprotocolex set field=‘2‘ where name=‘HTTP‘;
update tbprotocolex set field=‘2‘ where name=‘HTTP_Proxy‘;
update tbprotocolex set field=‘2‘ where name=‘HTTP_Connect‘;
update tbprotocolex set field=‘2‘ where name=‘QQ‘;
update tbprotocolex set field=‘2‘ where name=‘RTP‘;
update tbprotocolex set field=‘2‘ where name=‘RDP‘;
update tbprotocolex set field=‘2‘ where name=‘VNC‘;
update tbprotocolex set field=‘2‘ where name=‘STUN‘;
update tbprotocolex set field=‘2‘ where name=‘微信视频聊天‘;
update tbprotocolex set field=‘2‘ where name=‘qq视频聊天‘;
update tbprotocolex set field=‘2‘ where name=‘UDP垃圾包‘;
update tbprotocolex set field=‘2‘ where name=‘TCP垃圾包‘;
update tbprotocolex set field=‘2‘ where name=‘UDP下载及视频‘;
update tbprotocolex set field=‘2‘ where name=‘UDP应用交互‘;
update tbprotocolex set field=‘2‘ where name=‘TCP下载及视频‘;
update tbprotocolex set field=‘2‘ where name=‘TCP应用交互‘;
update tbprotocolex set field=‘0‘ where name=‘SSL_No_Cert‘;
update tbprotocolex set field=‘0‘ where name=‘SSL(HTTPS)‘;
update tbprotocolex set field=‘0‘ where name=‘SSH‘;
update tbprotocolex set field=‘0‘ where name=‘Skype‘;
update tbprotocolex set field=‘3‘ where name=‘HTTP 分片下载‘;
update tbprotocolex set field=‘3‘ where name=‘风行视频p2p‘;
update tbprotocolex set field=‘3‘ where name=‘暴风影音‘;
update tbprotocolex set field=‘3‘ where name=‘酷狗音乐p2p‘;
update tbprotocolex set field=‘3‘ where name=‘360急速下载‘;
update tbprotocolex set field=‘3‘ where name=‘RTMFP‘;
update tbprotocolex set field=‘3‘ where name=‘电骡‘;
update tbprotocolex set field=‘3‘ where name=‘迅雷‘;
update tbprotocolex set field=‘3‘ where name=‘电驴‘;

update tbprotocolex set field=‘0‘ where field=‘60‘;

然后./reloadrule.py脚本

时间: 2024-08-28 06:51:39

field字段错位手动更改方法的相关文章

python Django教程 之 模型(数据库)、自定义Field、数据表更改、QuerySet API

python  Django教程  之 模型(数据库).自定义Field.数据表更改.QuerySet API 一.Django 模型(数据库) Django 模型是与数据库相关的,与数据库相关的代码一般写在 models.py 中,Django 支持 sqlite3, MySQL, PostgreSQL等数据库,只需要在settings.py中配置即可,不用更改models.py中的代码,丰富的API极大的方便了使用. 本节的代码:(Django 1.6, Python 2.7 测试环境) 大

[.net 面向对象编程基础] (9) 类的成员(字段、属性、方法)

[.net 面向对象编程基础] (9) 类的成员(字段.属性.方法) 前面定义的Person的类,里面的成员包括:字段.属性.方法.事件等,此外,前面说的嵌套类也是类的成员. a.类的成员为分:静态成员(static)和非静态成员 b.静态成员用static标识,不标识则默认为非静态成员 c.静态成员属于类所有,动态成员则属于实例所有,即对象 d.静态成员为类所有实例共享,无论类有多少实例或副本,静态成员只占用存中一块区域.非静态成员则在类的每个实例,都创建一个内存域. 下面主要说明一下类的主要

thinkphp获取特定字段的两种方法

thinkphp getField( )和field( ) 2014年10月05日 ⁄ 综合 ⁄ 共 1509字 ⁄ 字号 小 中 大 ⁄ 评论关闭 做数据库查询的时候,比较经常用到这两个,总是查手册,记不住,现在把它总结下,希望以后用的时候不查手册了. 不管是用select 查询数据集,还是用find 查询数据,常配合连贯操作where.field.order等一起使用.  field():用于定义要查询的字段(支持字段排除) 用法:field($field , $except=false)

《Java虚拟机原理图解》1.4 class文件中的字段表集合--field字段在class文件中是怎样组织的

0.前言 了解JVM虚拟机原理是每一个Java程序员修炼的必经之路.但是由于JVM虚拟机中有很多的东西讲述的比较宽泛,在当前接触到的关于JVM虚拟机原理的教程或者博客中,绝大部分都是充斥的文字性的描述,很难给人以形象化的认知,看完之后感觉还是稀里糊涂的. 感于以上的种种,我打算把我在学习JVM虚拟机的过程中学到的东西,结合自己的理解,总结成<Java虚拟机原理图解> 这个系列,以图解的形式,将抽象的JVM虚拟机的知识具体化,希望能够对想了解Java虚拟机原理的的Java程序员 提供点帮助. 读

C# 常量,变量,字段,属性,方法

常量:指在程序编译时已经存在且在程序生命周期内不会发生改变的值,用const定义一个常量. private class TestA     --定义一个类时后边不加() { private const double Pi=3.14; private double GetPi()   --输出pi值得方法,后边带() { double t=pi; return t; } } 变量: 变量本身被用来存储特定类型的数据,可以根据需要随时改变变量中所存储的数据值.变量具有名称.类型和值.变量名是变量在程

lucene如何通过docId快速查找field字段以及最近距离等信息?

1 问题描述 我们的检索排序服务往往需要结合个性化算法来进行重排序,一般来说分两步:1)进行粗排序,这一过程由检索引擎快速完成:2)重排序,粗排序后将排名靠前的结果发送给个性化服务引擎,由个性化服务引擎进行深度排序.在我们的业务场景下检索引擎除了传递doc列表,还要传业务字段如商家id以及用户位置与该doc的最近距离. 我们的检索引擎基于lucene,而lucene查询的结果只包含docId以及对应的score,并未直接提供我们要传给个性化服务的业务字段列表以及对应的距离,因此本文要解决的问题是

mysql增量ID 启动值更改方法

在mysql很多朋友感到场AUTO_INCREMENT增量型ID值它不能被改变,其实这种认识是错误的,这里mysql增量ID开始值更改和设置. 设置自动递增字段的通常的方法: 格时加入: create table table1(id int auto_increment primary key,...) 创建表格后加入: alter table table1 add id int auto_increment primary key 自增字段.一定要设置为primary key. 很多时候希望t

hibernate update 只更新部分字段的3种方法(其实我只想说第二种)

hibernate 中如果直接使用Session.update(Object o);会把这个表中的所有字段更新一遍. 比如: public class Teacher Test { @Test public void update(){ Session session = HibernateUitl.getSessionFactory().getCurrentSession(); session.beginTransaction(); Teacher t = (Teacher) session.

mongoose中给字段添加索引的方法

mongoose中给字段添加索引的方法有两种,一种通过在定义schema的时候配置,如: 1 var animalSchema = new Schema({ 2 name: String, 3 type: String, 4 tags: { type: [String], index: true } 另一种通过index方法添加索引,如给name和type字段添加索引(1和-1分别表示升序索引和降序索引): animalSchema.index({ name: 1, type: -1 });