当前位置:网站首页>Basic query
Basic query
2022-06-26 04:37:00 【Lili demon_】
Basic query
grammar :select Query list from Table name ;
Query list : Field 、 Constant values 、 expression 、 function
1. A single field in a query table
select last_name from employees;
2. Multiple fields in the query table
select last_name,salary,email from employees;
3. Query all fields in the table
select * from employees;
4. Query constant value 、 expression 、 function
SELECT 100;
SELECT 20%6 result ;
SELECT VERSION();
5. names
SELECT 20%6 AS result ;
SELECT 20%6 result ;
6. duplicate removal
SELECT DISTINCT employee_id FROM employees;
7. Join fields
SELECT CONCAT(last_name,first_name) AS full name FROM employees;
8. IFNULL
SELECT IFNULL(commission_pct,0) AS Bonus FROM employees;
# Selection field , If the value in the field is NULL Output custom content
边栏推荐
- What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
- 1.16 learning summary
- Laravel framework Alipay payment fails to receive asynchronous callback request [original]
- Solution to composer error could not find package
- 2022 talent strategic transformation under the development trend of digital economy
- Analysis report on development trend and market demand of global and Chinese molecular diagnostics industry from 2022 to 2028
- Multipass中文文档-使用Multipass服务授权客户端
- 1.13 learning summary
- Guide de la pompe de données Oracle
- redis集群的方式
猜你喜欢

Modify the number of Oracle connections

Your requirements could not be resolved

1.20 learning summary
![[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface](/img/37/84b7d59818e854dac71d6f06700cde.jpg)
[H5 development] 03- take you hand in hand to improve H5 development - single submission vs batch submission with a common interface

Dameng database backup and restore

35 year old programmer fired Luna millions of assets and returned to zero in three days. Netizen: it's the same as gambling

记录一次循环引用的问题
![[Qunhui] this suite requires you to start PgSQL adapter service](/img/fb/1aea7eb833afc1a24531b612a98400.jpg)
[Qunhui] this suite requires you to start PgSQL adapter service

Install dbeaver and connect Clickhouse

Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
随机推荐
BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
Microsoft prohibits Russian users from downloading and installing win10/11
Redis cache message queue
0622-马棕榈跌9%
Analysis report on development trend and market demand of global and Chinese molecular diagnostics industry from 2022 to 2028
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
numpy 随机数
Database design (I)
企业的产品服务怎么进行口碑营销?口碑营销可以找人代做吗?
08_SpingBoot 集成Redis
Tips for using idea
1.13 learning summary
Report on operation mode and future development trend of China's refining and chemical market 2022-2028
Development trend and prospect forecast report of China's financial industry 2022-2028 Edition
Multipass中文文档-使用Packer打包Multipass镜像
Composer version rollback version switching
Nabicat连接:本地Mysql&&云服务Mysql以及报错
Construction of art NFT trading platform | NFT mall
35 year old programmer fired Luna millions of assets and returned to zero in three days. Netizen: it's the same as gambling
LISP programming language