摘要: 在项目开发过程中我们常会遇到这样的情况:往数据库中插入了一条新数据后,需要知道这条新数据的唯一标识,比如ID 1.Oracle int id = MyDB.ExecSql("select TableName_seq.nextval from dual"); //表TableName的序列TableName_seq string sqlStr = String.Format(" insert i... 阅读全文
posted @ 2008-11-20 15:59 baiyicug 阅读(894) 评论(5) 推荐(0) 编辑