本文介绍了使用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列从表格中选择最大日期
发布评论