宗小宗-PHP程序猿

欢迎各位朋友前来,如果我的文章中有不对的地方,还望指正;如需转载,请注明原处

10 2016 档案

摘要:update op_system.ops_system_user a,msip_bhu_core.t_vas_users b set a.bid=b.id where a.username=b.mobileno and a.bid is null; update ops_device_flow a,ops_device_flow b set a.next_uid=b.to_uid,a.st... 阅读全文
posted @ 2016-10-31 14:45 宗小宗 阅读(859) 评论(0) 推荐(0)
摘要:MySQL字段联合去重sql 例如数据 id,name1,name2 1 a x 2 a y 3 b x 4 a y 5 a x 联合去重name1,name2的结果为 id,name1,name2 1 a x 2 a y 3 b x 的SQL为 select * from table group 阅读全文
posted @ 2016-10-24 11:25 宗小宗 阅读(8820) 评论(0) 推荐(0)
摘要:laravel中怎么实现下面的SQL select sum('profit'),sum('order_count') from pro where......; 参考 阅读全文
posted @ 2016-10-11 15:54 宗小宗 阅读(12124) 评论(0) 推荐(1)