当前位置:网站首页>[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 !
边栏推荐
- [WesternCTF2018]shrine
- [the road of Exile - Chapter III]
- DSP vibration seat
- JS timer setinterval clearinterval delayer setTimeout asynchronous animation
- Planning mathematics final simulation exam I
- LeetCode 113:路径总和 II
- [golang] synchronization lock mutex
- MySQL high performance optimization notes (including 578 pages of notes PDF document), collected
- Dynamic memory and smart pointer
- leetcode/0和1个数相同的连续子数组
猜你喜欢

Tda75610-i2c-determination of I2C address of analog power amplifier
![About df['a column name'] [serial number]](/img/e2/179fb4eda695726e87bb483f65e04e.png)
About df['a column name'] [serial number]

Why does stonedb dare to call it the only open source MySQL native HTAP database in the industry?

How to protect WordPress website from network attack? It is essential to take safety measures

基于 ICA 与 DL 的语音信号盲分离
![[UE4] replay game playback for ue4.26](/img/c3/1c7b30797f46dbd323cac4d158600f.png)
[UE4] replay game playback for ue4.26

The basic concept of transaction and the implementation principle of MySQL transaction

What are the common cyber threats faced by manufacturers and how do they protect themselves

MySQL high performance optimization notes (including 578 pages of notes PDF document), collected

Leetcode 112: path sum
随机推荐
【10点公开课】:快手GPU/FPGA/ASIC异构平台的应用探索
规划数学期末考试模拟二
(CVPR-2019)选择性的内核网络
剑指offer专项突击版第13天
The solution of reducing the sharpness of pictures after inserting into word documents
druid. io kill -9 index_ Realtime traceability task
Web crawler API Quick Start Guide
数学建模——永冻土层上关于路基热传导问题
How companies make business decisions -- with the help of data-driven marketing
druid. IO custom real-time task scheduling policy
使用POI,实现excel文件导出,图片url导出文件,图片和excel文件导出压缩包
Code reading - ten C open source projects
[7.21-26] code source - [good sequence] [social circle] [namonamo]
Event express | Apache Doris Performance Optimization Practice Series live broadcast course is open at the beginning. You are cordially invited to participate!
【流放之路-第三章】
What is browser fingerprint recognition
Promise解决异步
Comprehensive explanation of "search engine crawl"
[网鼎杯 2020 朱雀组]Nmap
Semiconductor chip industry chain