{ "data": { "question": { "questionId": "1686", "questionFrontendId": "1543", "categoryTitle": "Database", "boundTopicId": 366675, "title": "Fix Product Name Format", "titleSlug": "fix-product-name-format", "content": null, "translatedTitle": "产品名称格式修复", "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 19, "dislikes": 0, "isLiked": null, "similarQuestions": "[]", "contributors": [], "langToValidPlayground": null, "topicTags": [ { "name": "Database", "slug": "database", "translatedName": "数据库", "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"6.1K\", \"totalSubmission\": \"11.1K\", \"totalAcceptedRaw\": 6148, \"totalSubmissionRaw\": 11137, \"acRate\": \"55.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_name\", \"sale_date\"]}, \"rows\": {\"Sales\": [[1, \"LCPHONE\", \"2000-01-16\"], [2, \"LCPhone\", \"2000-01-17\"], [3, \"LcPhOnE\", \"2000-02-18\"], [4, \"LCKeyCHAiN\", \"2000-02-19\"], [5, \"LCKeyChain\", \"2000-02-28\"], [6, \"Matryoshka\", \"2000-03-31\"]]}}", "metaData": "{\"mysql\":[\"Create table If Not Exists Sales (sale_id int, product_name varchar(30), sale_date date)\\n\"],\"mssql\":[\"Create table Sales (sale_id int, product_name varchar(30), sale_date date)\\n\"],\"oraclesql\":[\"Create table Sales (sale_id int, product_name varchar(30), sale_date date)\\n\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\\n\"],\"database\":true,\"name\":\"fix_name_format\",\"pythondata\":[\"Sales = pd.DataFrame([], columns=['sale_id', 'product_name', 'sale_date']).astype({'sale_id':'Int64', 'product_name':'object', 'sale_date':'datetime64[ns]'})\"],\"database_schema\":{\"Sales\":{\"sale_id\":\"INT\",\"product_name\":\"VARCHAR(30)\",\"sale_date\":\"DATE\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Sales (sale_id int, product_name varchar(30), sale_date date)\n", "Truncate table Sales", "insert into Sales (sale_id, product_name, sale_date) values ('1', 'LCPHONE', '2000-01-16')", "insert into Sales (sale_id, product_name, sale_date) values ('2', 'LCPhone', '2000-01-17')", "insert into Sales (sale_id, product_name, sale_date) values ('3', 'LcPhOnE', '2000-02-18')", "insert into Sales (sale_id, product_name, sale_date) values ('4', 'LCKeyCHAiN', '2000-02-19')", "insert into Sales (sale_id, product_name, sale_date) values ('5', 'LCKeyChain', '2000-02-28')", "insert into Sales (sale_id, product_name, sale_date) values ('6', 'Matryoshka', '2000-03-31')" ], "enableRunCode": true, "envInfo": "{\"mysql\":[\"MySQL\",\"
\\u7248\\u672c\\uff1a mssql server 2019.<\\/p>\"],\"oraclesql\":[\"Oracle\",\" Oracle Sql 11.2.<\\/p>\"],\"pythondata\":[\"Pandas\",\" Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\/p>\"]}",
"book": null,
"isSubscribed": false,
"isDailyQuestion": false,
"dailyRecordStatus": null,
"editorType": "CKEDITOR",
"ugcQuestionId": null,
"style": "LEETCODE",
"exampleTestcases": "{\"headers\": {\"Sales\": [\"sale_id\", \"product_name\", \"sale_date\"]}, \"rows\": {\"Sales\": [[1, \"LCPHONE\", \"2000-01-16\"], [2, \"LCPhone\", \"2000-01-17\"], [3, \"LcPhOnE\", \"2000-02-18\"], [4, \"LCKeyCHAiN\", \"2000-02-19\"], [5, \"LCKeyChain\", \"2000-02-28\"], [6, \"Matryoshka\", \"2000-03-31\"]]}}",
"__typename": "QuestionNode"
}
}
}MySQL 8.0<\\/code><\\/p>\"],\"mssql\":[\"MS SQL Server\",\"