08 2020 档案

摘要:eg:goods数据字段id | name 新增 type 指定固定值 区分来自不同goods$goods1 = Goods::find()->select('id','name') ->addSelect(new Expression("0 as type")) $goods2 = Goods:: 阅读全文
posted @ 2020-08-24 16:00 百事可口 阅读(357) 评论(0) 推荐(0)
摘要:$query1 = Class1::find()->where($where); $query2 = Class1::find()->alias('a')->join('left join', Class2::tableName() . 'as b', 'b.id = a.objId') ->sel 阅读全文
posted @ 2020-08-20 14:07 百事可口 阅读(721) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示