Executing SQL Query From Command Line

Tagged with: , , , ,

Print out the result of an SQL query directly from the database using the mysql command


mysql -u root Project_Tiker -sNe 'SELECT Task.name FROM Task LIMIT 0,1'

Leave a Reply