Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
s = "delete MAX(id) from emp"; cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); GridView1.DataBind();
错误:'(' 附近的语法不正确。
当我尝试在运行时在错误显示上方执行此查询时......enter code here
enter code here
更正您的查询。
s= "delete from emp where id = (select max(id) from emp)";