
mysql
刘弘扬
编程吧
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql随机查询出一条 符合条件的数据
select c.userCrowd_user_id from tab_usercrowd c where c.userCrowd_Id=’6755f9a4-e27f-48fc-88e2-59c1de9c9247’ order by rand() limit 1原创 2017-08-29 11:57:13 · 4178 阅读 · 0 评论 -
mysql 对查询为null的值赋默认值
查询两张表 并且对为空的值做默认值 select u.User_pictureUrl,u.User_phone,u.ID as userId,u.user_nickname,IFNULL(f.userFriend_status,3)as status ,IFNULL(f.userFriend_comment,' ')as userFriend_comment,IFNULL(f.userF原创 2017-08-14 15:45:00 · 24601 阅读 · 0 评论