当前位置:网站首页>How to select several hard coded SQL rows- How to select several hardcoded SQL rows?
How to select several hard coded SQL rows- How to select several hardcoded SQL rows?
2022-07-06 20:13:00 【Technology feast】
problem :
If you execute this query If you execute this query
SELECT 'test-a1' AS name1, 'test-a2' AS name2the result will be a one row-selection with two columns having these values: The result will be a single row selection of two columns with the following values :
test-a1, test-a2How can I modify the above query to have a selection with several rows, eg How to modify the above query to select multiple rows , for example
test-a1, test-a2test-b1, test-b2test-c1, test-c2I know how to do this with UNION but I feel that there exists a more simple way to do it. I know how to use UNION Do this , But I think there is a simpler way to do this .
PS. Note appended .Sorry for such a basic question, it is very hard to google it. I'm sorry , Such a basic problem , It's hard to Google .
Solution :
Reference resources : https://stackoom.com/en/question/Qcmx边栏推荐
- 爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
- 信息系统项目管理师---第八章 项目质量管理
- Redisson bug analysis
- B-杰哥的树(状压树形dp)
- Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
- Guangzhou's first data security summit will open in Baiyun District
- 精彩编码 【进制转换】
- Information System Project Manager - Chapter VIII project quality management
- (3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
- Microservice architecture debate between radical technologists vs Project conservatives
猜你喜欢

某东短信登录复活 安装部署教程

语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
腾讯T4架构师,android面试基础

BUUCTF---Reverse---easyre

信息系统项目管理师---第八章 项目质量管理

BUUCTF---Reverse---easyre

Continuous test (CT) practical experience sharing

An East SMS login resurrection installation and deployment tutorial

【计网】第三章 数据链路层(3)信道划分介质访问控制

Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
随机推荐
Method keywords deprecated, externalprocname, final, forcegenerate
In simple terms, interview surprise Edition
Recursive implementation of department tree
【Yann LeCun点赞B站UP主使用Minecraft制作的红石神经网络】
Tencent T3 Daniel will teach you hand-in-hand, the internal information of the factory
Guangzhou's first data security summit will open in Baiyun District
颜色(color)转换为三刺激值(r/g/b)(干股)
PHP and excel phpexcel
Alibaba data source Druid visual monitoring configuration
mod_wsgi + pymssql通路SQL Server座
Appx code signing Guide
Tencent cloud database public cloud market ranks top 2!
Synchronization of data create trigger synchronization table for each site
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
腾讯T2大牛亲自讲解,跳槽薪资翻倍
5. Wireless in vivo nano network: top ten "feasible?" problem
8086 instruction code summary (table)
JVM_常见【面试题】
It's enough to read this article to analyze the principle in depth
Introduction to enterprise lean management system