7 lines
179 B
SQL
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;
|