摘要: 在Yii的Model里进行查询的时候 where是必不可少的。Where方法声明为static where( $condition )其中参数 $condition类型为字符串或者数组1、字符串字符串是最简单的,直接按sql中的where条件写就可以,如$condition = 'name=\'zh... 阅读全文
posted @ 2015-08-06 10:44 Echo正在输入 阅读(304) 评论(0) 推荐(0)