Hi Folks,
Does any one know of any function in SQL that lets me format the output returned from a SELECT query ? From the output below,id like to get anything that is to the left of '-'. I can do this in a programming language butid like to try this through SQL.
Quote:
mysql> select post from table where col like 'z%';
+-------------+
| post |
+-------------+
| Z01-C3 |
| Z101-ZZ1 |
| Z21-PG4 |
| Z8202-G21 |
----------------
Intended output:
Z01
Y101
R21
|