How do I run queries in the MySQL console? When I try to run a select statement, all I get is a "->" prompt. I've verified that the tables I'm querying exits in the database.
How do I run queries in the MySQL console? When I try to run a select statement, all I get is a "->" prompt. I've verified that the tables I'm querying exits in the database.
sounds like you forgot to put a semicolon at the end of the query.
Yup, sounds that way. Or instead of a semicolon you can use \G
which presents the data in a more verbose form - useful for tables with a lot of columns, but takes up many more rows.
I'm an idiot. Thank you.
The \G
switch is nice to know about. Cheers Cartroo.