mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-11 10:21:43 +08:00
批量更新数据
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
| content | varchar |
|
||||
+----------------+---------+
|
||||
tweet_id is the primary key (column with unique values) for this table.
|
||||
content consists of characters on an American Keyboard, and no other special characters.
|
||||
This table contains all the tweets in a social media app.
|
||||
</pre>
|
||||
|
||||
@@ -25,12 +26,12 @@ This table contains all the tweets in a social media app.
|
||||
<pre>
|
||||
<strong>Input:</strong>
|
||||
Tweets table:
|
||||
+----------+----------------------------------+
|
||||
| tweet_id | content |
|
||||
+----------+----------------------------------+
|
||||
| 1 | Vote for Biden |
|
||||
| 2 | Let us make America great again! |
|
||||
+----------+----------------------------------+
|
||||
+----------+-----------------------------------+
|
||||
| tweet_id | content |
|
||||
+----------+-----------------------------------+
|
||||
| 1 | Let us Code |
|
||||
| 2 | More than fifteen chars are here! |
|
||||
+----------+-----------------------------------+
|
||||
<strong>Output:</strong>
|
||||
+----------+
|
||||
| tweet_id |
|
||||
@@ -38,6 +39,6 @@ Tweets table:
|
||||
| 2 |
|
||||
+----------+
|
||||
<strong>Explanation:</strong>
|
||||
Tweet 1 has length = 14. It is a valid tweet.
|
||||
Tweet 2 has length = 32. It is an invalid tweet.
|
||||
Tweet 1 has length = 11. It is a valid tweet.
|
||||
Tweet 2 has length = 33. It is an invalid tweet.
|
||||
</pre>
|
||||
|
Reference in New Issue
Block a user