Insert news (cat) values (3); Select @@IDENTITY 在dotNet中取得该值:int tID = Convert.ToInt32(cmd.ExecuteScalar());注意:不能通过(int)转换。 相关文章: