You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
581 B

-- 检查角色表中的数据
SELECT
COUNT(*) as total_roles,
MIN(id) as min_id,
MAX(id) as max_id
FROM roles;
-- 查看所有角色数据
SELECT
id,
name,
code,
description,
created_at,
updated_at
FROM roles
ORDER BY id ASC
LIMIT 20;
-- 检查是否有足够的角色数据来测试分页
SELECT
CASE
WHEN COUNT(*) > 10 THEN '有足够数据测试分页'
WHEN COUNT(*) > 0 THEN '数据不足,需要添加更多角色'
ELSE '没有角色数据'
END as data_status,
COUNT(*) as role_count
FROM roles;