1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-08 00:41: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>表: <code>Employees</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| employee_id | int |\n| name | varchar |\n+-------------+---------+\nemployee_id 是该表中具有唯一值的列。\n每一行表示雇员的 id 和他的姓名。\n</pre>\n\n<p>表: <code>Salaries</code></p>\n\n<pre>\n+-------------+---------+\n| Column Name | Type |\n+-------------+---------+\n| employee_id | int |\n| salary | int |\n+-------------+---------+\nemployee_id 是该表中具有唯一值的列。\n每一行表示雇员的 id 和他的薪水。\n</pre>\n\n<p>&nbsp;</p>\n\n<p>编写解决方案,找到所有 <strong>丢失信息</strong> 的雇员 id。当满足下面一个条件时就被认为是雇员的信息丢失</p>\n\n<ul>\n\t<li>雇员的 <strong>姓名</strong> 丢失了,或者</li>\n\t<li>雇员的 <strong>薪水信息</strong> 丢失了</li>\n</ul>\n\n<p>返回这些雇员的 id &nbsp;<code>employee_id</code>&nbsp;&nbsp;<strong>从小到大排序&nbsp;</strong>。</p>\n\n<p>查询结果格式如下面的例子所示。</p>\n\n<p>&nbsp;</p>\n\n<p><strong>示例 1</strong></p>\n\n<pre>\n<strong>输入:</strong>\nEmployees table:\n+-------------+----------+\n| employee_id | name |\n+-------------+----------+\n| 2 | Crew |\n| 4 | Haven |\n| 5 | Kristian |\n+-------------+----------+\nSalaries table:\n+-------------+--------+\n| employee_id | salary |\n+-------------+--------+\n| 5 | 76071 |\n| 1 | 22517 |\n| 4 | 63539 |\n+-------------+--------+\n<strong>输出:</strong>\n+-------------+\n| employee_id |\n+-------------+\n| 1 |\n| 2 |\n+-------------+\n<strong>解释:</strong>\n雇员 1245 都在这个公司工作。\n1 号雇员的姓名丢失了。\n2 号雇员的薪水信息丢失了。</pre>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 91,
"likes": 105,
"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\": \"49.6K\", \"totalSubmission\": \"70K\", \"totalAcceptedRaw\": 49623, \"totalSubmissionRaw\": 69972, \"acRate\": \"70.9%\"}",
"stats": "{\"totalAccepted\": \"58K\", \"totalSubmission\": \"81.6K\", \"totalAcceptedRaw\": 58037, \"totalSubmissionRaw\": 81578, \"acRate\": \"71.1%\"}",
"hints": [],
"solution": null,
"status": null,
@@ -80,7 +80,7 @@
"insert into Salaries (employee_id, salary) values ('4', '63539')"
],
"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,