User Tools

Site Tools


mysql:debugging_messages

MySQL - Debugging messages

select concat ("Updated ", row_count(), " rows") as '';
#DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*10) DAY));
select concat ("Random date: ", DATE(DATE_SUB(NOW(), INTERVAL ROUND(RAND(1)*100) DAY))) as '';

Examples

Output a random date:

select addtime(concat_ws(' ','1964-12-25' + interval rand()*20000 day ,'00:00:00'),sec_to_time(floor(0 + (rand() * 86401)))) as '';
mysql/debugging_messages.txt · Last modified: 2020/07/15 10:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki