Delimiter //
/**

**/

drop function if exists CASH_LOADER_GET_INFO //

Create Function CASH_LOADER_GET_INFO(
		info_name varchar(50)
		, batch_num Int unsigned
	)
	returns varchar(255)
Begin
	return (
			Select 
				LI.LOADER_INFO_VALUE 
			From LOADER_INFO LI 
			where LI.LOADER_INFO_BATCH_NUM = batch_num 
				And LI.LOADER_INFO_NAME = info_name
			Limit 1
		)
	;
End //
Delimiter ;
