标签:
strSQL = "INSERT INTO tablename (name) VALUES (@name);SELECT @@Identity" SQLCommand.CommandText = strSQL Id = SQLCommand.ExecuteScalar()
插入一条新数据,如何返回主键值id,id是自动增长的
原文地址:http://www.cnblogs.com/qi123/p/4883877.html