我正在尝试将数据保存在访问数据库中,但出现错误“异常:INSERT INTO 语句中的语法错误。”
con.Open();
OleDbCommand cmd = new OleDbCommand("INSERT INTO UserDetails (Username,Email,Password) VALUES (@username,@email,@password)", con);
cmd.Parameters.AddWithValue("@username", RegisterUsernameText.Text);
cmd.Parameters.AddWithValue("@email", EmailTextbox.Text);
cmd.Parameters.AddWithValue("@password", PasswordReapettextbox.Text);
cmd.ExecuteNonQuery();
con.Close();