30 lines
886 B
SQL
30 lines
886 B
SQL
-- 查询系统配置中的文件路径配置
|
||
-- 请在MySQL客户端中执行此SQL,查看当前系统的文件路径配置
|
||
|
||
-- 1. 查询sys_config表中的文件相关配置
|
||
SELECT config_id, config_name, config_key, config_value, remark
|
||
FROM sys_config
|
||
WHERE config_key LIKE '%path%'
|
||
OR config_key LIKE '%upload%'
|
||
OR config_key LIKE '%file%'
|
||
OR config_key LIKE '%profile%'
|
||
ORDER BY config_key;
|
||
|
||
-- 2. 查询课件表,看看实际存储的文件路径格式
|
||
SELECT id, title, file_url, file_path, file_size, file_type, create_time
|
||
FROM courseware
|
||
ORDER BY create_time DESC
|
||
LIMIT 10;
|
||
|
||
-- 3. 如果有视频表,查询视频路径
|
||
SELECT id, video_title, video_url, video_path, create_time
|
||
FROM video
|
||
ORDER BY create_time DESC
|
||
LIMIT 5;
|
||
|
||
-- 4. 查询课程表中的图片路径
|
||
SELECT id, course_name, image_url, create_time
|
||
FROM course
|
||
ORDER BY create_time DESC
|
||
LIMIT 5;
|