mysql 怎样查询所有用户在记录里面最新的并满足一定条件的一条信息呢?

如果最新一条记录是最大的id 的话,可以这样查 select column from user_table where 条件=(select 条件列 from record_table order by id desc limit 1 )
mysql 怎样查询所有用户在记录里面最新的并满足一定条件的一条信息呢?
如果最新一条记录是最大的id 的话,可以这样查
select column from user_table where 条件=(
select 条件列 from record_table order by id desc limit 1

)2016-08-24
mengvlog 阅读 7 次 更新于 2025-07-20 16:15:29 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部