I would like to see a auto refreshing MySQL query result in my linux console.
something like this:
while [ 1 ]
do
clear
//some special way of executing 'select id from updates order by id desc limit 1'
sleep 1
done
Thanks
To access the Refresh from Database dialog box, right-click an object in MySQL Metadata Explorer and click Refresh from Database.
SQL commands are instructions, coded into SQL statements, which are used to communicate with the database to perform specific tasks, functions and queries with data.
The simplest way for creating a sequence in MySQL is by defining the column as AUTO_INCREMENT during table creation, which should be a primary key column.
Something like the following should work:
watch -n 1 "mysql -e 'select id from updates order by id desc limit 1' your_db"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With