Is it possible to use shell variable in a mysql query via command line? What I want to do is :
$ var='test'
$ mysql -e 'INSERT INTO table (text) VALUE ($var);' database
It didn't seems to work, even when I use ${var}
Any idea of how I can do something like that?
I have to stay in the shell, as I am running this through a jenkins 'execute shell'