zhibo/测试关注插入.sql
2026-01-03 15:32:31 +08:00

26 lines
600 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.

USE zhibo;
-- 测试手动插入一条关注记录
INSERT INTO eb_follow_record (
follower_id,
follower_nickname,
follower_phone,
followed_id,
followed_nickname,
followed_phone,
follow_status,
is_deleted
) VALUES (
120, -- 关注者ID你的测试用户
'测试用户',
'18888888888',
44, -- 被关注者ID主播
'主播',
'15637617378',
'关注', -- 明确设置为'关注'
0
);
-- 查看刚插入的记录
SELECT * FROM eb_follow_record WHERE follower_id = 120 AND followed_id = 44 ORDER BY create_time DESC LIMIT 1;