标签:span code 好友 sql sel from friend [1] where
//好友数量 $user_id = $user->id; $sql = "select count(*) as total from `user_friend` where `status` = ? and( ( `user_id` = {$user_id} ) or ( `friend_user_id` = {$user_id} ))"; $my_friend = DB::select($sql,[1]);
标签:span code 好友 sql sel from friend [1] where
原文地址:https://www.cnblogs.com/sgm4231/p/10559335.html