I’m executing the following query, to update the data in my database:
mysql -u root -ppassword -e "UPDATE table SET data = 1 WHERE id = 5"
Is there a way to execute the same query, but with the SELECT statement ? Of course there is, but how can I fetch the returned value then? Is that even possible?
1 Answer