I would like to ask how to declare a table in MySQL. I tried using this code but I am getting the error below:
DECLARE @TBL VARCHAR(20)
SET @TBL = 'A171107001';
select APPLICATION, count(JOB_NAME) as 'JOB COUNT' from @TBL
Error Message:
Java::JavaSql::SQLException: Must declare the table variable "@TBL".: DECLARE @TBL VARCHAR(20)