I have this table with lot of parameters :
idPumpParam|Type |Version|A10A|A11A|A12A|A13A|A14A|...
1 |Pump1 |DL cons|1 |32 |45 |6 |67 |...
2 |Pump2 |DL var |2 |65 |8 |37 |43 |...
For search the parameter with my automation, I would like to create a procedure in MySQL Workbench 5.7:
CREATE DEFINER = `root`@`localhost`
PROCEDURE `procReadParam`(IN Param VARCHAR(20),
IN TypePpe VARCHAR(20),
IN Version VARCHAR(20))
BEGIN
SELECT Param FROM pumpparameters.pumpparam
WHERE Type1 LIKE TypePpe AND Version=Version AND Frequence=Freq;
END
The procedure is good, no error message.
I test the procedure in MySQL Workbench:
call pumpparameters.procReadParam(A12A, 'Pump1', 'DL cons')
There are this error message:
Error Code: 1054. Unknown column 'A12A' in 'field list'
Can you help me for this error message please?