I’m already aware of USER(). How do I just get the username – i.e the stuff before @
+------------------+
| USER() |
+------------------+
| billy@localhost |
+------------------+
I want simple billy. This will be used in a TRIGGER.
Thanks
See: Information Functions: USER()