使用todate列从表格中选择最大日期

编程入门 行业动态 更新时间:2024-10-27 06:23:25
本文介绍了使用todate列从表格中选择最大日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好 我想使用todate列从表中选择最大日期.我想从最近发生的交易中选择此日期. 请帮助.

Hello I want to select max date from the table using todate column. and i want to select this todate from last transaction happen. Plz help.

推荐答案

有两种方法可以解决您的问题 there is two method which will solve your problem select top 1 ToDate from UrTable order by ToDate desc select max(ToDate) from UrTable

试试这个: Try This : "SELECT fileds FROM tablename WHERE (date=(SELECT MAX(date) FROM tablenmae ))";

希望对您有帮助..

hope this will help you..

更多推荐

使用todate列从表格中选择最大日期

本文发布于:2023-10-16 20:26:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1498647.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   日期   todate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!