当前位置:网站首页>[MySQL] SQL aliases the table
[MySQL] SQL aliases the table
2022-07-29 02:03:00 【CAFE~BABE】
occasionally , When operating on tables in the database , It is found that the table name is rather lengthy , At this time, we need to create an alias for the table , The keyword of alias is as( Or you can skip it ) .
Now there is a student surface , The structure is as follows :
Now I think student Is too long. I don't want to fight all the time .
sql The statement is as follows
select a.Sno,a.Sname,a.Sage from student as a (as Can be removed )
give the result as follows :
We're right student Took an alias called a
Of course, we don't need to do this when we have a watch , But it is very useful for multiple tables and tables to connect with themselves
author : Xiaoyao happy
source :CSDN
original text :https://blog.csdn.net/hxy19971101/article/details/53239979
Copyright notice : This article is an original blog article , Please attach a link to the blog post !
边栏推荐
- 使用POI,实现excel文件导出,图片url导出文件,图片和excel文件导出压缩包
- Network security litigation risk: four issues that chief information security officers are most concerned about
- 覆盖接入2w+交通监测设备,EMQ为深圳市打造交通全要素数字化新引擎
- 【流放之路-第二章】
- Golang startup error [resolved]
- Lua third-party byte stream serialization and deserialization module --lpack
- Introduction to shared data center agent
- leetcode/和为k的连续子数组个数
- How to find the right agent type? Multi angle analysis for you!
- [10:00 public class]: application exploration of Kwai gpu/fpga/asic heterogeneous platform
猜你喜欢
移动通信——基于卷积码的差错控制系统仿真模型
Wonderful use of data analysis
MPEG音频编码三十年
(arxiv-2018) 重新审视基于视频的 Person ReID 的时间建模
Stonedb invites you to participate in the open source community monthly meeting!
[7.21-26] code source - [sports festival] [Dan fishing war] [maximum weight division]
druid. IO custom real-time task scheduling policy
[observation] ranked first in SaaS of pure public cloud in three years, and yonsuite's "flywheel effect"
ciscn 2022 华中赛区 misc
The brutal rule of blackmail software continues, and attacks increase by 105%
随机推荐
Google Cloud Spanner的实践经验
Nine days later, we are together to focus on the new development of audio and video and mystery technology
Network security litigation risk: four issues that chief information security officers are most concerned about
JS 定时器setInterval clearInterval 延时器setTimeOut 异步 动画
【7.21-26】代码源 - 【平方计数】【字典序最小】【“Z”型矩阵】
LM13丨形态量化-动量周期分析
[7.21-26] code source - [square count] [dictionary order minimum] [Z-type matrix]
StoneDB 邀请您参与开源社区月会!
golang run时报undefined错误【已解决】
Leetcode 112: path sum
数学建模——带相变材料的低温防护服御寒仿真模拟
DSP vibration seat
[golang] synchronization lock mutex
[the road of Exile - Chapter 2]
Day01 job
[public class preview]: application exploration of Kwai gpu/fpga/asic heterogeneous platform
Lua log implementation -- print table
[10:00 public class]: application exploration of Kwai gpu/fpga/asic heterogeneous platform
How to deal with the DDoS attack on the game server and how to defend it?
Internship: tool class writing for type judgment