mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 08:21:41 +08:00
批量更新数据
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": true,
|
||||
"difficulty": "Medium",
|
||||
"likes": 59,
|
||||
"likes": 62,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -28,27 +28,27 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"14.5K\", \"totalSubmission\": \"21.5K\", \"totalAcceptedRaw\": 14547, \"totalSubmissionRaw\": 21511, \"acRate\": \"67.6%\"}",
|
||||
"stats": "{\"totalAccepted\": \"16.1K\", \"totalSubmission\": \"24K\", \"totalAcceptedRaw\": 16067, \"totalSubmissionRaw\": 24038, \"acRate\": \"66.8%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
"sampleTestCase": "{\"headers\":{\"Events\":[\"business_id\",\"event_type\",\"occurences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
|
||||
"metaData": "{\"mysql\":[\"Create table If Not Exists Events (business_id int, event_type varchar(10), occurences int)\"],\"mssql\":[\"Create table Events (business_id int, event_type varchar(10), occurences int)\"],\"oraclesql\":[\"Create table Events (business_id int, event_type varchar(10), occurences int)\"],\"database\":true,\"name\":\"active_businesses\",\"pythondata\":[\"Events = pd.DataFrame([], columns=['business_id', 'event_type', 'occurences']).astype({'business_id':'Int64', 'event_type':'object', 'occurences':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Events (business_id int, event_type varchar(10), occurences int)\"],\"database_schema\":{\"Events\":{\"business_id\":\"INT\",\"event_type\":\"VARCHAR(10)\",\"occurences\":\"INT\"}}}",
|
||||
"sampleTestCase": "{\"headers\":{\"Events\":[\"business_id\",\"event_type\",\"occurrences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
|
||||
"metaData": "{\"mysql\":[\"Create table If Not Exists Events (business_id int, event_type varchar(10), occurrences int)\"],\"mssql\":[\"Create table Events (business_id int, event_type varchar(10), occurrences int)\"],\"oraclesql\":[\"Create table Events (business_id int, event_type varchar(10), occurrences int)\"],\"database\":true,\"name\":\"active_businesses\",\"pythondata\":[\"Events = pd.DataFrame([], columns=['business_id', 'event_type', 'occurences']).astype({'business_id':'Int64', 'event_type':'object', 'occurrences':'Int64'})\"],\"postgresql\":[\"\\nCreate table If Not Exists Events (business_id int, event_type varchar(10), occurrences int)\"],\"database_schema\":{\"Events\":{\"business_id\":\"INT\",\"event_type\":\"VARCHAR(10)\",\"occurrences\":\"INT\"}}}",
|
||||
"judgerAvailable": true,
|
||||
"judgeType": "large",
|
||||
"mysqlSchemas": [
|
||||
"Create table If Not Exists Events (business_id int, event_type varchar(10), occurences int)",
|
||||
"Create table If Not Exists Events (business_id int, event_type varchar(10), occurrences int)",
|
||||
"Truncate table Events",
|
||||
"insert into Events (business_id, event_type, occurences) values ('1', 'reviews', '7')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('3', 'reviews', '3')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('1', 'ads', '11')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('2', 'ads', '7')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('3', 'ads', '6')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('1', 'page views', '3')",
|
||||
"insert into Events (business_id, event_type, occurences) values ('2', 'page views', '12')"
|
||||
"insert into Events (business_id, event_type, occurrences) values ('1', 'reviews', '7')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('3', 'reviews', '3')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('1', 'ads', '11')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('2', 'ads', '7')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('3', 'ads', '6')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('1', 'page views', '3')",
|
||||
"insert into Events (business_id, event_type, occurrences) values ('2', 'page views', '12')"
|
||||
],
|
||||
"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,
|
||||
@@ -56,7 +56,7 @@
|
||||
"editorType": "CKEDITOR",
|
||||
"ugcQuestionId": null,
|
||||
"style": "LEETCODE",
|
||||
"exampleTestcases": "{\"headers\":{\"Events\":[\"business_id\",\"event_type\",\"occurences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
|
||||
"exampleTestcases": "{\"headers\":{\"Events\":[\"business_id\",\"event_type\",\"occurrences\"]},\"rows\":{\"Events\":[[1,\"reviews\",7],[3,\"reviews\",3],[1,\"ads\",11],[2,\"ads\",7],[3,\"ads\",6],[1,\"page views\",3],[2,\"page views\",12]]}}",
|
||||
"__typename": "QuestionNode"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user