题解 | #查找某个年龄段的用户信息#

查找某个年龄段的用户信息

http://www.nowcoder.com/practice/be54223075cc43ceb20e4ce8a8e3e340

两种方法

  • 使用between限制在哪个范围内查询
  • 使用and求两个查询范围的交集
##select device_id,gender,age from user_profile where age>=20 and age<=23;
SELECT device_id,gender,age from user_profile where age between 20 and 23;
全部评论

相关推荐

牛客36400893...:我不是这个专业的,但是简历确实没有吸引我的亮点,而且废话太多没耐心看
0offer是寒冬太冷还...
点赞 评论 收藏
分享
2025-12-22 16:31
已编辑
桂林电子科技大学 Python
很奥的前端仔:如果你接了offer 临时又说不去 hr确实要多做一些工作。 当然如果是接offer之前当我没说
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务