Global Travel-盛开的夕阳,走向家的方向

c/c++/c#/.net/ajax/英文技术文章/系统架构/项目管理

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  SqlServer

摘要:sql语句string SqlStr=@"insert into table(……)values(……) select SCOPE_IDENTITY() as 'myNewId'";执行sqlSqlDataReader myDr=用ExecuteReader方法执行你的SQL语句获得IDmyDr.GetValue(0).ToString()注:/* 对于想要得到一... 阅读全文
posted @ 2006-10-07 19:14 Seraph's Zone(WelCome) 阅读(303) 评论(0) 推荐(0)