当前位置:网站首页>mysql使用union 排序问题
mysql使用union 排序问题
2022-07-26 19:08: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
边栏推荐
猜你喜欢

猎聘问卷星,成为微信「寄生虫」

Use of load balancing

Canvas graphics

2022年下半年(软考高级)信息系统项目管理师报名条件

上半年住户存款增加10.33万亿元,平均每天约571亿存款涌向银行

千亿酸奶赛道,乳企巨头和新品牌打响拉锯战

Server memory failure prediction can actually do this
![[internship experience] exception handling and URL result response data processing](/img/ed/05622fad0d3d8dcf17ce7069340669.jpg)
[internship experience] exception handling and URL result response data processing

Leetcode daily practice - 26. Delete duplicates in an ordered array

直播预约有奖| 高级咨询顾问徐雁斐:效能度量如何助力高效精细的外包管理
随机推荐
数据库笔记(来自老社)
Ijcai2022 meeting! Brescia et al. Tutorial of evidential reasoning and learning, describing its latest progress, with 96 slides attached
[internship experience] date verification
Excel-VBA 快速上手(十一、字符串常用操作)
Linear algebra Chapter 3 vector
Kingbases SQL language reference manual of Jincang database (15. SQL statement: create materialized view to create schema)
Decompile jar files (idea environment)
计算机网络常见面试题目总结,含答案
Excel-VBA 快速上手(十二、Like 比较的常见用法)
LeetCode每日一练 —— 27. 移除元素
徽商期货开户安全吗?请问徽商期货开户应该注意什么呢?
plsql包
安全团队:近期Windows版Coremail邮件客户端存在RCE漏洞,可能导致钱包私钥泄露
使用ECS和OSS搭建个人网盘
ShardingSphere-JDBC 关键字问题
Openstack virtual machine network card is renamed cirename0
知识管理系统是什么?你需要知道这些
Kingbasees SQL language reference manual of Jincang database (12. SQL statement: alter language to alter subscription)
ipad下载的文件在哪里可以找到
eadiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to c