Skip to content
Advertisement

Why does my procedure have error when I’m trying to do loop?

i try to do loop to load data in MySQL Workbench 8.0. but it keep error and i cannot figure it out.

here is my code

Advertisement

Answer

You cant use VARCHAR() in CAST(). You need to change that to CHAR() and with length defined. Try this:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement