当前模型类为活动表id,关联评论表的type_id,条件是评论表的type要等于2public function getComment(){ return $this->hasMany(Comment::className(),['type_id'=>'id'])->onCondition([Comment::tableName().'.type'=>2]);}…
oracle触发器加条件判断,如果某个字段,isnode=0,那么不执行下面的方法,数据如下: create or replace trigger tr_basestation_insert_emp before insert on BJLT.BASESTATION REFERENCING NEW AS new_val OLD AS old_val --在这里设置名字,然后可引用新值,旧值 for each row ) declare --local variables here begin i…
表t_a id name 1 a1 2 a2 表t_b a1_id name num 2 b2 1 3 b3 100 left join 后加查询条件 select a.* from t_a a left join t_b b on a.id=b.a1_id and b.num>10 where 1=1 结果:2条数据 where后面加查询条件 select a.* from t_a a left join t_b b on a.id=b.a1_id where b.num>10 结果1条数据…
刚才尝试使用tcp_probe来查看tcp的窗口的变化,最初按照tcpprobe | The Linux Foundation的步骤进行设置,但是iperf之后tcp_probe并没有输出结果.按照tcp_probe module does no output中的回答先modprobe -r tcp_probe后加载就好了. google过程中发现对于tcp_probe的使用和源码分析还两个不错的参考材料 mscom_network_start [Digitale Elektronik und…