1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-10 18:48:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/无效的推文 [invalid-tweets].html
2023-12-09 18:53:53 +08:00

45 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>表:<code>Tweets</code></p>
<pre>
+----------------+---------+
| Column Name | Type |
+----------------+---------+
| tweet_id | int |
| content | varchar |
+----------------+---------+
在 SQL 中tweet_id 是这个表的主键。
这个表包含某社交媒体 App 中所有的推文。</pre>
<p>&nbsp;</p>
<p>查询所有无效推文的编号ID。当推文内容中的字符数<strong>严格大于</strong> <code>15</code> 时,该推文是无效的。</p>
<p><strong>任意顺序</strong>返回结果表。</p>
<p>查询结果格式如下所示:</p>
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre>
<strong>输入:</strong>
Tweets 表:
+----------+----------------------------------+
| tweet_id | content |
+----------+----------------------------------+
| 1 | Vote for Biden |
| 2 | Let us make America great again! |
+----------+----------------------------------+
<strong>输出:</strong>
+----------+
| tweet_id |
+----------+
| 2 |
+----------+
<strong>解释:</strong>
推文 1 的长度 length = 14。该推文是有效的。
推文 2 的长度 length = 32。该推文是无效的。
</pre>