得到id号:如何自动获得id号
不是数据库处理的,如何自动获得id号
请教各位,~``
--------------------编程问答-------------------- 我从来都是将插入语句写成存储过程,然后在存储过程中返回ID的。 --------------------编程问答-------------------- 不是数据库处理的是什么意思?
======
--------------------编程问答-------------------- strSQL = "insert into 表;select @@identity"
拿这个fillDataSet就可.
--------------------编程问答-------------------- 专门建表 t1( order int)
create prc
@o varchar
as
update order=@o=order+1 --------------------编程问答-------------------- 不是用SQL语句,建表时处理,用DGI什么的处理
--------------------编程问答-------------------- 是用GDI来做
补充:.NET技术 , ASP.NET