摘要:
StrSql = "Insert into AAA(Name) Values('hello');Select @ID=@@IDENTITY"
m_Command = new SqlCommand( StrSql, m_Connection );
int newid = Convert.ToInt32( m_Command.ExecuteScalar() );
阅读全文
StrSql = "Insert into AAA(Name) Values('hello');Select @ID=@@IDENTITY"
m_Command = new SqlCommand( StrSql, m_Connection );
int newid = Convert.ToInt32( m_Command.ExecuteScalar() );
阅读全文
posted @ 2006-01-24 14:32 Kevin 阅读(61) 评论(0) 编辑

