当前位置:网站首页>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;
边栏推荐
猜你喜欢
随机推荐
js array recursively use
Wireless vibrating wire acquisition instrument remote modification method
鲁大师7月新机性能/流畅榜:骁龙8+正面对决天玑9000+,性能跑分突破123万!
MFC入门教程(深入浅出MFC)
【C语言】细品分支结构——switch语句
二进制中1的个数
移动端适配,华为浏览器底色无法正常显示
FreeRTOS experiment -- delete task
How to create short images and short videos from the media?How to make the click volume reach 10W?
Article 48 - Analysis of timestamp2 parameters【2022-08-01】
Taurus.MVC V3.0.3 microservice open source framework released: Make the evolution of .NET architecture easier in large concurrency.
自动生成代码器推荐-code-gen
网络流详解(流网图一般能够反映什么信息)
【C语言】细品分支结构——if-else语句
Summer training camp-week2 graph theory
Intouch Historian历史曲线配置导入导出
svg balloon rises explosion js special effect
C语言结构体(入门)
Object.entries()
动态组件-component