1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-08 17:01:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -12,12 +12,12 @@
"translatedContent": "<p>表:&nbsp;<code>Customer</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| id | int |\n| name | varchar |\n| referee_id | int |\n+-------------+---------+\n在 SQL 中id 是该表的主键列。\n该表的每一行表示一个客户的 id、姓名以及推荐他们的客户的 id。</pre>\n\n<p>找出那些 <strong>没有被</strong> <code>id = 2</code> 的客户 <strong>推荐</strong> 的客户的姓名。</p>\n\n<p>以 <strong>任意顺序</strong> 返回结果表。</p>\n\n<p>结果格式如下所示。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<b>输入:</b> \nCustomer 表:\n+----+------+------------+\n| id | name | referee_id |\n+----+------+------------+\n| 1 | Will | null |\n| 2 | Jane | null |\n| 3 | Alex | 2 |\n| 4 | Bill | null |\n| 5 | Zack | 1 |\n| 6 | Mark | 2 |\n+----+------+------------+\n<b>输出:</b>\n+------+\n| name |\n+------+\n| Will |\n| Jane |\n| Bill |\n| Zack |\n+------+</pre>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 238,
"likes": 295,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
"contributors": [],
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false}",
"langToValidPlayground": "{\"cpp\": false, \"java\": false, \"python\": false, \"python3\": false, \"mysql\": false, \"mssql\": false, \"oraclesql\": false, \"c\": false, \"csharp\": false, \"javascript\": false, \"typescript\": false, \"bash\": false, \"php\": false, \"swift\": false, \"kotlin\": false, \"dart\": false, \"golang\": false, \"ruby\": false, \"scala\": false, \"html\": false, \"pythonml\": false, \"rust\": false, \"racket\": false, \"erlang\": false, \"elixir\": false, \"pythondata\": false, \"react\": false, \"vanillajs\": false, \"postgresql\": false, \"cangjie\": false}",
"topicTags": [
{
"name": "Database",
@@ -59,7 +59,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"185.5K\", \"totalSubmission\": \"281.9K\", \"totalAcceptedRaw\": 185535, \"totalSubmissionRaw\": 281922, \"acRate\": \"65.8%\"}",
"stats": "{\"totalAccepted\": \"274.3K\", \"totalSubmission\": \"404K\", \"totalAcceptedRaw\": 274275, \"totalSubmissionRaw\": 404027, \"acRate\": \"67.9%\"}",
"hints": [
"Be careful of the NULL value"
],
@@ -72,15 +72,15 @@
"mysqlSchemas": [
"Create table If Not Exists Customer (id int, name varchar(25), referee_id int)",
"Truncate table Customer",
"insert into Customer (id, name, referee_id) values ('1', 'Will', 'None')",
"insert into Customer (id, name, referee_id) values ('2', 'Jane', 'None')",
"insert into Customer (id, name, referee_id) values ('1', 'Will', NULL)",
"insert into Customer (id, name, referee_id) values ('2', 'Jane', NULL)",
"insert into Customer (id, name, referee_id) values ('3', 'Alex', '2')",
"insert into Customer (id, name, referee_id) values ('4', 'Bill', 'None')",
"insert into Customer (id, name, referee_id) values ('4', 'Bill', NULL)",
"insert into Customer (id, name, referee_id) values ('5', 'Zack', '1')",
"insert into Customer (id, name, referee_id) values ('6', 'Mark', '2')"
],
"enableRunCode": true,
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
"envInfo": "{\"mysql\":[\"MySQL\",\"<p>\\u7248\\u672c\\uff1a<code>MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"<p>mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\"<p>Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\"<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4<\\/p>\"],\"postgresql\":[\"PostgreSQL\",\"<p>PostgreSQL 16<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,