当前位置:网站首页>Using union to sort MySQL
Using union to sort MySQL
2022-07-26 20:51:00 【xixiyuguang】
EXPLAIN SELECT * from (
select * from ( SELECT
*
FROM
article
WHERE
top_start_time <= now() AND top_end_time >= now()
AND show_status = 1
AND top_status = 1
AND mark > 0 ORDER BY top_sort_num asc limit 100000 )
as t1
UNION
select * from (
SELECT
*
FROM
article
WHERE
show_status = 1
AND mark > 0 ) as t2
) as t
ORDER BY create_time desc
LIMIT 100
边栏推荐
- Establishment of APP automation testing framework (VIII) -- establishment of ATX server2 multi device cluster environment
- 884. Uncommon words in two sentences - hash table
- Buu brush inscription 2
- tkinter使用wpf控件
- Do employees have to compensate the company for losses when they resign? The 34 year old captain resigned and was claimed 10.66 million yuan by the company
- 韩国计划每年砸1万亿韩元,研发半导体材料及设备
- Chapter 2: encounter obstacles! Bypass WAF filtering! [SQL injection attack]
- LeetCode链表问题——24.两两交换链表中的结点(一题一文学会链表)
- 如何组装一个注册中心?
- Tinui development history
猜你喜欢

执行上下文与词法环境

消息队列——引入的问题:重复消费&顺序消费&分布式事务

BGP的路由黑洞和防环

Tinui development history
![Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function](/img/3d/d7276d2010f1d77a3bd572cc66eced.png)
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function

TinUI发展历程

Experiment 6 BGP federal comprehensive experiment

APP自动化测试框架搭建(八)--ATX Server2多设备集群环境搭建

81. (cesium home) cesium modifies the gray background (default blue)

CentOS7关于Oracle RAC 11GR2部署磁盘分区问题
随机推荐
How to create a static object variable of its own class?
BUU刷题记4
Keepalived高可用介绍与配置详解
Centos7 about Oracle RAC 11gr2 deployment disk partition
Google's new programming language is called carbon
What is the role of cache in the storage system of data blocks?
单核A7玩转人脸识别,恩智浦“跨界处理器”又玩出新花样!
连接池快速入门
How to obtain Cu block partition information in HM and draw with MATLAB
QT signal and slot connection (loose coupling)
YGG cooperates with my pet hooligan, AMGI's flagship NFT project, to enter the rabbit hole
Use Baidu PaddlePaddle easydl to complete garbage classification
Hello, how are you
Robin Lee was "poured cold water" enthusiasm! Baidu allied with Huawei Kirin to release "Honghu" chip
tkinter使用wpf控件
Bean注入和生命周期
Beginner experience of safety testing
ST表、带权并查集
Easycvr device management list page, paging data does not display problem repair
twenty million two hundred and twenty thousand seven hundred and twenty-six