当前位置:网站首页>Mysql database - single table query (II)
Mysql database - single table query (II)
2022-04-23 19:42:00 【X heart】
The first 1 Turn off : belt LIKE Character matching query for
USE Company;
######### Begin #########
select Name ,Salary
from tb_emp
where Name like 'C%';
######### End #########
The first 2 Turn off : Querying null values and removing duplicate results
USE Company;
######### Begin #########
select *
from tb_emp
where DeptId IS NULL;
######### End #########
######### Begin #########
select distinct Name
from tb_emp;
######### End #########
The first 3 Turn off : belt AND And OR Multi criteria query of
USE Company;
######### Begin #########
select *
from tb_emp
where DeptId='301' and Salary>3000;
######### End #########
######### Begin #########
select *
from tb_emp
where DeptId='301' OR DeptId='303';
######### End #########
版权声明
本文为[X heart]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231927030885.html
边栏推荐
- A simple (redisson based) distributed synchronization tool class encapsulation
- 数据库查询 - 选课系统
- Distinction between pointer array and array pointer
- 深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
- 如何在BNB链上创建BEP-20通证
- Class loading process of JVM
- 仓库管理数据库系统设计
- Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
- Use test of FFT and IFFT library functions of TI DSP
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
猜你喜欢

Scrum Patterns之理解各种团队模式

精简CUDA教程——CUDA Driver API

Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies

Esp8266 - beginner level Chapter 1

Class loading mechanism

优先使用组合而不使用继承

An idea of rendering pipeline based on FBO

NiO related Basics

Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions

基于pytorch搭建GoogleNet神经网络用于花类识别
随机推荐
一个简单的(基于redisson的)分布式同步工具类封装
Translation of audio signal processing and coding: Preface
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
Pit encountered using camera x_ When onpause, the camera is not released, resulting in a black screen when it comes back
山大网安靶场实验平台项目-个人记录(五)
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
什么是消息队列
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
JVM的类加载过程
Speex维纳滤波与超几何分布的改写
Codeforces Round #783 (Div. 2) D题解
@Analysis of conditional on Web Application
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
视频理解-Video Understanding
Hot reload debugging
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
A simple (redisson based) distributed synchronization tool class encapsulation
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
Main differences between go and PHP