zhibo/complete_test_data_121.sql

23 lines
767 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- =====================================================
-- 为用户"道玄"ID: 121创建完整测试数据
-- 确保与后端查询逻辑一致
-- =====================================================
-- 先检查现有数据
SELECT '=== 检查现有数据 ===' as ;
-- 1. 检查直播间表名和结构
SHOW TABLES LIKE '%room%';
-- 2. 检查作品表
SELECT COUNT(*) as FROM eb_works;
-- 3. 检查用户表中的测试用户
SELECT uid, nickname FROM eb_user WHERE uid IN (100, 101, 102, 103, 104, 105, 121) LIMIT 10;
-- =====================================================
-- 创建测试直播间数据(如果不存在)
-- =====================================================
-- 先检查直播间表结构
DESCRIBE eb_room;