I am trying to source simple mysql statement from a file. But it is giving an error. Below is my code -
@srcpath='/home/work/onlinemarket/databaseScripts/';
SET @c = CONCAT(@srcpath, 'adtype.sql');
source @c;
And it is giving following error,
Failed to open file ''@c'', error: 2
any pointer to resolve this error will be appreciated.
thanks.