When I run a mysql query at the command line, the output is encapsulated with hyphens, or bars and plus signs...
mysql -h myhost -u me -pmypw -N thedb -e "select 1 from table1"
I get...
+---+
| 1 |
+---+
How can I get rid of the hyphens, or bars and plus signs ?
Thanks !
Bonus points if you can tell me how to escape backticks in the command as they are needed to specify a column name that someone decided to name with a reserve word...
mysql -h myhost -u me -pmypw -N thedb -e "select `trigger` from table1"
I tried \ and `` and '`' and whatever else I could think of. No luck.
I got around this (sort of) by creating a view of the table that used a non-reserve word in place of 'trigger'