当前位置:网站首页>Mysql 基本操作指南之mysql查询语句
Mysql 基本操作指南之mysql查询语句
2022-08-02 13:07:00 【InfoQ】
show database;
show tables;
create database 数据库名称;
select * from 表名;
select id,name,price from 表名 order by name,price;
select id,name,price from 表名 order by name desc,price;
select id,name,price from 表名 order by name desc,price limit 1,3;
select id,name,price from 表名 where name=' ';
select id,name,price from 表名 where name IS NULL;
select id,name,price from 表名 where id IN () order by name;
select id,name,price from 表名 where name LIKE '%na%';
select name from 表名 where name REGEXP ' 正则表达式 ' order by name;
select Concat(Tom,'(',jimmy,')') from table order by name;
select pro_name,price*num as total from table where id=1;
边栏推荐
- How to turn off hardware acceleration [easy to understand]
- How to create short images and short videos from the media?How to make the click volume reach 10W?
- Name conventions in FreeRTOS
- 【C语言】虐打循环练习题(2)
- RESTful style (detailed introduction + case implementation)
- In-depth analysis and use of Ribbon load balancing
- Openlayers Quick Start Tutorial
- 路由-Tab切换页面
- 你知道图论的spfa吗?
- 移动端适配,华为浏览器底色无法正常显示
猜你喜欢
86.(cesium之家)cesium叠加面接收阴影效果(gltf模型)
tinymce-plugins
this的绑定指向详细解答
Js scratchable latex style draw plug-in
自媒体创作怎样提高原创度,打造爆款作品?
图论之Floyd,多源图最短路如何暴力美学?
LeetCode_377_Combination Sum IV
【C语言】明解数组(1)
SQL Server 2019 installation error 0 x80004005 service there is no timely response to the start or control request a detailed solution
FreeRTOS--stack experiment
随机推荐
嵌入式系统驱动初级【2】——字符设备驱动基础上_基础框架
Basic operations of openGauss database (super detailed)
PHP+MYSQL [Student Information Management System] (Minimalist Edition)
Closures in JS
Intouch Historian历史曲线配置导入导出
【C语言】剖析函数递归(2)
PGSQL database to realize the import and export
Detailed explanation of network flow (what information can the flow network diagram generally reflect)
Custom mvc framework review
RISC-V instruction format and 6 basic integer instructions
How to create short images and short videos from the media?How to make the click volume reach 10W?
暑假集训-week2图论
Cannot determine loading status from target frame detached when selenium chrome driver is running
为什么IDEA连接mysql Unable to resolve table 编译报错但是可以运行
Get out of the machine learning world forever!
ThinkPHP 5.1反序列化分析和poc
【C语言】细品分支结构——if-else语句
定了!2022世界VR产业大会将继续在南昌召开
RestTemplate use: set request header, request body
Taurus.MVC V3.0.3 microservice open source framework released: Make the evolution of .NET architecture easier in large concurrency.