擅长:python、mysql、java
<p>听起来您希望将最新的测量值写入<code>CoreTemperature</code>。您可以使用<a href="https://docs.influxdata.com/influxdb/v1.7/query_language/functions/#last" rel="nofollow noreferrer">^{<cd2>} selector</a>来获得:</p>
<blockquote>
<p><strong>LAST()</strong><br/>
Returns the field value with the most recent timestamp.</p>
</blockquote>
<p>像这样:</p>
<pre><code>SELECT LAST(*) FROM CoreTemperature
</code></pre>