Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use system variable in mysql

Tags:

mysql

How can I use system(operating system) variables like JAVA_HOME In my own mysql stored procedure.

like image 341
Satish Sharma Avatar asked Oct 25 '12 09:10

Satish Sharma


Video Answer


1 Answers

Guess you may need to use an external library such as UDF Repository for MySQL to do this. A reference to the library can be found here. There should be a sys_get() function call that may serve the purpose.

like image 173
Ronald Yeung Avatar answered Oct 08 '22 09:10

Ronald Yeung