SQLRepair:识别和修复学生创作的SQL文档中的错误
SQLRepair: Identifying and Repairing Mistakes in Student-Authored SQL Queries
摘要:
计算机科学教育工作者试图了解学生在学习一门新的(编程)语言时所犯的错误类型,以便他们能够帮助学生在未来避免这些错误。虽然教育工作者知道学生在使用C和Python等语言时经常会犯什么错误,但学生在使用SQL时会遇到困难,并且在使用SQL时经常会犯错误。我们分析了学生在第一次使用SQL时所犯的错误,对引入的错误类型进行了分类,并提供了如何避免这些错误的建议。此外,我们提出了一个自动化的工具,SQLRepair,这是能够修复错误的本科生程序员编写SQL查询时引入的。我们的研究结果表明,学生发现我们的工具产生的维修可比的可理解性查询写自己或其他学生,这表明SQL修复工具可能是有用的教育背景下。我们还向社区提供了一个由我们研究中的学生编写的SQL查询基准,我们用于评估SQLRepair。
英文摘要:
Computer science educators seek to understand the types of mistakes that students make when learning a new (programming) language so that they can help students avoid those mistakes in the future. While educators know what mistakes students regularly make in languages such as C and Python, students struggle with SQL and regularly make mistakes when working with it. We present an analysis of mistakes that students made when first working with SQL, classify the types of errors introduced, and provide suggestions on how to avoid them going forward. In addition, we present an automated tool, SQLRepair, that is capable of repairing errors introduced by undergraduate programmers when writing SQL queries. Our results show that students find repairs produced by our tool comparable in understandability to queries written by themselves or by other students, suggesting that SQL repair tools may be useful in an educational context. We also provide to the community a benchmark of SQL queries written by the students in our study that we used for evaluation of SQLRepair.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。