当前位置:网站首页>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边栏推荐
- js获取浏览器系统语言
- 新一代垃圾回收器—ZGC
- Tencent architects first, 2022 Android interview written examination summary
- 句号压缩过滤器
- mod_ WSGI + pymssql path SQL server seat
- js实现力扣71题简化路径
- 激进技术派 vs 项目保守派的微服务架构之争
- Node.js: express + MySQL实现注册登录,身份认证
- Method keywords deprecated, externalprocname, final, forcegenerate
- JS get browser system language
猜你喜欢
5. 無線體內納米網:十大“可行嗎?”問題
Jupyter launch didn't respond after Anaconda was installed & the web page was opened and ran without execution
Redisson bug analysis
Microservice architecture debate between radical technologists vs Project conservatives
BUUCTF---Reverse---easyre
01 基础入门-概念名词
【GET-4】
Standardized QCI characteristics
Ideas and methods of system and application monitoring
rt-thread i2c 使用教程
随机推荐
腾讯T3手把手教你,真的太香了
golang的超时处理使用技巧
精彩编码 【进制转换】
An East SMS login resurrection installation and deployment tutorial
[network planning] Chapter 3 data link layer (4) LAN, Ethernet, WLAN, VLAN
Guangzhou's first data security summit will open in Baiyun District
腾讯T2大牛亲自讲解,跳槽薪资翻倍
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
Digital triangle model acwing 1018 Minimum toll
AsyncHandler
RT-Thread 组件 FinSH 使用时遇到的问题
Method keywords deprecated, externalprocname, final, forcegenerate
广州首个数据安全峰会将在白云区开幕
永磁同步电机转子位置估算专题 —— 基波模型与转子位置角
Continuous test (CT) practical experience sharing
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
BUUCTF---Reverse---easyre
新一代垃圾回收器—ZGC
Is it difficult for small and micro enterprises to make accounts? Smart accounting gadget quick to use