1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-12-17 17:52:34 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -12,7 +12,7 @@
"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+--------------+---------+\npatient_id (患者 ID是该表的主键。\n'conditions' (疾病)包含 0 个或以上的疾病代码,以空格分隔。\n这个表包含医院中患者的信息。</pre>\n\n<p>&nbsp;</p>\n\n<p>写一条&nbsp;SQL 语句,查询患有 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": 11,
"likes": 24,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -47,7 +47,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"4.8K\", \"totalSubmission\": \"9.9K\", \"totalAcceptedRaw\": 4777, \"totalSubmissionRaw\": 9870, \"acRate\": \"48.4%\"}",
"stats": "{\"totalAccepted\": \"9.4K\", \"totalSubmission\": \"19.2K\", \"totalAcceptedRaw\": 9372, \"totalSubmissionRaw\": 19238, \"acRate\": \"48.7%\"}",
"hints": [],
"solution": null,
"status": null,