Files
wecom_it_smart_desk/scripts/debug/temp_query.sql
T
2026-08-11 14:15:36 +08:00

7 lines
179 B
SQL

SELECT id, created_at, message_type, sender_type, content
FROM messages
WHERE content LIKE '%余额%'
AND created_at > NOW() - INTERVAL '7 days'
ORDER BY created_at DESC
LIMIT 5;