peixue-dev/Archive/[一次性]检查growth_record表时长字段-2026-01-30.sql

21 lines
405 B
SQL

-- 检查growth_record表的时长相关字段
SELECT
id,
order_id,
student_id,
record_date,
start_time,
end_time,
duration,
service_duration,
TIMESTAMPDIFF(MINUTE, start_time, end_time) as calculated_duration_minutes,
content,
create_time
FROM growth_record
WHERE teacher_id = 1
ORDER BY record_date DESC
LIMIT 10;
-- 查看表结构
DESCRIBE growth_record;