即使在调试器中检查loc
值是否正确后,我仍然从查询中返回一个空值。我做错了什么?
{
myCommand.CommandText = "select idkooilist FROM locatie where id = @IDOP";
myCommand.Parameters.Add("@IDOP", MySqlDbType.Int64).Value = loc;
{
var count = myCommand.ExecuteScalar();
lockooid = Convert.ToInt64(count);
}
}