Parameter '@myLeft' must be defined

后端 未结 4 1730
南方客
南方客 2020-12-17 14:47

My question is quite similar to already answered ones but yet not. I\'d like some help sorting this out.

I\'m trying to add data to a database table but I get keepin

4条回答
  •  不思量自难忘°
    2020-12-17 15:25

    Can you try:

    objCmdInsert.Parameters.Add("@myLeft", MySqlDbType.Int).Value = 1212;
    

    You probably have to do it for EACH occurrence of that parameter.

    It's not clear to me what's the meaning of SET @myLeft := lft; (You are trying to assign column value to parameter)

提交回复
热议问题