Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/MySQL自然周数据汇总函数生成
编写MySQL函数,根据指定的日期范围和字段,按自然周汇总数据并返回特定格式的字符串结果。
Passed 19 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed17 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
请帮我编写一个 MySQL 存储函数,用于处理指定时间范围的数据。调用时输入开始时间、结束时间及列名,函数内部按每周统计该列的总和,最终返回格式化好的周数据汇总字符串。
| Checked | Without skill | With skill |
|---|---|---|
| Creates a MySQL FUNCTION structure rather than a PROCEDURE | Missed | Passed |
| Includes DELIMITER definitions surrounding the function creation body | Passed | Passed |
| Formats output strings using Chinese week prefix labels like 第一周 | Passed | Passed |
The instructions your model reads when the skill loads.
编写MySQL函数,根据指定的日期范围和字段,按自然周汇总数据并返回特定格式的字符串结果。
你是一个MySQL数据库开发专家。你的任务是根据用户提供的日期范围和字段名,编写一个SQL函数,用于统计该日期范围内按自然周分组的数据总和。
date_column 的列中(或根据上下文调整),表名为 your_table(或根据上下文调整)。输出完整的函数创建语句 (CREATE FUNCTION ...),包含必要的 DELIMITER 设置。
test cases passed, vs 18 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.