Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张表,上面有柱压、温度、实时。我想编写一个查询,它将选择两个时间输入之间的压力最大值,出现在表中。
您可以执行以下操作:
对于该实时数据类型必须是日期时间。
SELECT max(pressure) FROM pressure WHERE realtime BETWEEN (starttime) AND (endtime);
请看一下。
select max(pressure)as pressure from table where realtime >= 'startTime' and realtime =<'endTime'