带in关头字的调集查询
方式/步调
- 1
只查询ID为2,4,6的信息
select username from user where id in (2,4,6);
- 2
除了不查询ID为2,4,6的信息外,其他的信息
select username from user where not id in (2,4,6);
- 3
查询sex中开首为w的信息
select username,age from user where sex like 'w%';
- 4
查询address中中心有u的信息,'_'的利用
select username,age from user where address like '_u%';
查询address中含有a的信息
select username,age from user where address like '%a%';
- 5
按春秋排序
select*from user order by age asc;(升序)
select*from user order by age desc;(j降序)
- 6
limit的利用
限制查询前5个信息
来源:百闻(微信/QQ号:9397569),转载请保留出处和链接!
本文链接:https://www.ibaiwen.com/web/240134.html
- 上一篇: 电脑有哪些实用快捷键,怎么使用,功能是啥
- 下一篇: 怎么下载并安装360安全卫士
- 热门文章
-
WB蒙特利尔(WB Montreal)——欧美十大最差视频游戏开发商
迅猛龙(Velociraptor)——欧美史前十大死亡动物
什么是果酱猫(What Marmalade Cats)?
神奇蜘蛛侠2(The Amazing Spider-Man 2)——欧美最佳蜘蛛侠电影
希瑟(Heather)——欧美十大最佳柯南灰歌
二人梭哈
faceu激萌怎么把瘦脸开到最大
奥兹奥斯本(Ozzy Osbourne)——欧美十大高估歌手
什么是小脑前下动脉(Anterior Inferior Cerebellar Artery)?
我应该知道康涅狄格州的什么(What Should I Know About Connecticut)?
- 热评文章
- 最新评论
-
- 最近访客
-
- 站点信息
-
- 文章总数:200248
- 页面总数:9
- 分类总数:1
- 标签总数:0
- 评论总数:0
- 浏览总数:497