WebLinuxStudy

导航

 

2022年8月12日

摘要: 1、查询一条方式 例如: $user = DB::table('user') ->select(['*']) ->where('user_id', $userId) ->first(); //判断查询结果是否为空 if ($user) { echo '不空'; } else { echo '空'; 阅读全文
posted @ 2022-08-12 14:15 WebLinuxStudy 阅读(1277) 评论(0) 推荐(0)