在添加新记录的时候,如果要取得当前新生成的主键ID的值 可以set @newid=@@IDENTITY align="center" marginwidth="0" marginheight="0" src="http://www.maimaifu.com/WebTemplet/468.htm" frameborder="0" width="468" scrolling="no" height="60">