1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-07 16:31: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>Patients</code></p>\n\n<pre>\n+--------------+---------+\n| Column Name | Type |\n+--------------+---------+\n| patient_id | int |\n| patient_name | varchar |\n| conditions | varchar |\n+--------------+---------+\n在 SQL 中patient_id (患者 ID是该表的主键。\n'conditions' (疾病)包含 0 个或以上的疾病代码,以空格分隔。\n这个表包含医院中患者的信息。</pre>\n\n<p>&nbsp;</p>\n\n<p>查询患有 I 类糖尿病的患者&nbsp;ID patient_id、患者姓名patient_name以及其患有的所有疾病代码conditions。I 类糖尿病的代码总是包含前缀&nbsp;<code>DIAB1</code>&nbsp;。</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<code><strong>输入:\n</strong>Patients表</code>\n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 1 | Daniel &nbsp;| YFEV COUGH |\n| 2 &nbsp; | Alice | &nbsp; |\n| 3 &nbsp; | Bob &nbsp;| DIAB100 MYOP&nbsp;|\n| 4 &nbsp; | George &nbsp;| ACNE DIAB100&nbsp;|\n| 5 &nbsp; | Alain &nbsp;| DIAB201 &nbsp;|\n+------------+--------------+--------------+\n<strong>输出:</strong>\n+------------+--------------+--------------+\n| patient_id | patient_name | conditions |\n+------------+--------------+--------------+\n| 3 &nbsp; | Bob &nbsp;| DIAB100 MYOP&nbsp;|\n| 4 &nbsp; | George &nbsp; | ACNE DIAB100&nbsp;| \n+------------+--------------+--------------+\n<strong>解释:</strong>Bob 和 George 都患有代码以 DIAB1 开头的疾病。</pre>\n",
"isPaidOnly": false,
"difficulty": "Easy",
"likes": 102,
"likes": 115,
"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\": \"65.6K\", \"totalSubmission\": \"140.1K\", \"totalAcceptedRaw\": 65632, \"totalSubmissionRaw\": 140101, \"acRate\": \"46.8%\"}",
"stats": "{\"totalAccepted\": \"86.9K\", \"totalSubmission\": \"187.3K\", \"totalAcceptedRaw\": 86907, \"totalSubmissionRaw\": 187272, \"acRate\": \"46.4%\"}",
"hints": [],
"solution": null,
"status": null,
@@ -77,7 +77,7 @@
"insert into Patients (patient_id, patient_name, conditions) values ('5', 'Alain', 'DIAB201')"
],
"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,