当前位置:网站首页>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 name2
the 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-a2
How 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-c2
I 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边栏推荐
- SSH connection denied
- AddressSanitizer 技术初体验
- After solving 2961 user feedback, I made such a change
- Continuous test (CT) practical experience sharing
- js实现力扣71题简化路径
- BUUCTF---Reverse---easyre
- 爬虫(14) - Scrapy-Redis分布式爬虫(1) | 详解
- 广州首个数据安全峰会将在白云区开幕
- HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
- Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
猜你喜欢
5. 無線體內納米網:十大“可行嗎?”問題
信息系统项目管理师---第八章 项目质量管理
redisson bug分析
腾讯T4架构师,android面试基础
OceanBase社区版之OBD方式部署方式单机安装
22-07-05 upload of qiniu cloud storage pictures and user avatars
Standardized QCI characteristics
Digital triangle model acwing 1018 Minimum toll
Crawler (14) - scrape redis distributed crawler (1) | detailed explanation
【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
随机推荐
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Digital triangle model acwing 1018 Minimum toll
腾讯云数据库公有云市场稳居TOP 2!
报错分析~csdn反弹shell报错
In simple terms, interview surprise Edition
【计网】第三章 数据链路层(4)局域网、以太网、无线局域网、VLAN
String length limit?
Tencent T2 Daniel explained in person and doubled his job hopping salary
Example of shutter text component
腾讯T3手把手教你,真的太香了
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
8086 instruction code summary (table)
AddressSanitizer 技术初体验
JVM_常见【面试题】
腾讯T4架构师,android面试基础
Tencent Android development interview, basic knowledge of Android Development
系统与应用监控的思路和方法
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
[cloud native and 5g] micro services support 5g core network
Cesium 点击绘制圆形(动态绘制圆形)