它是有效的SQLite查询吗?

它是有效的SQLite查询吗?,sqlite,exception,syntax,Sqlite,Exception,Syntax,出于某种原因,我有一个未处理的异常,它的语法正确吗 command.CommandText = "INSERT INTO tblUsers (Username, UserEmail, FirstName, LastName) VALUES (@Username, @UserEmail, @FirstName, @LastName)"; command.Parameters.AddWithValue("@UserEmail", user.Email); command.Parameters.Ad

出于某种原因,我有一个未处理的异常,它的语法正确吗

command.CommandText = "INSERT INTO tblUsers (Username, UserEmail, FirstName, LastName) VALUES (@Username, @UserEmail, @FirstName, @LastName)";

command.Parameters.AddWithValue("@UserEmail", user.Email);
command.Parameters.AddWithValue("@Username",  user.UserName);
command.Parameters.AddWithValue("@FirstName", user.FName);
command.Parameters.AddWithValue("@LastName",  user.LName);

您是否使用某种高级语言来构建查询?确切的错误是什么?使用C#,也许我应该把整个代码放进去。我临时用Tcl来回答这个问题,并说:不,您所做的一切都是错误的,在Tcl中,您必须做不同的事情。@juergend未处理的异常错误,当我将其放入try{}and catch(exception ex){}它只是因为某种原因没有显示任何错误。