日期:2014-05-17 浏览次数:20462 次
CREATE PROC test ( @name VARCHAR(10) , @number INT ) AS DECLARE @Bid INT INSERT INTO B ( Number ) VALUES ( @number ) SELECT @Bid = @@IDENTITY INSERT INTO A ( personID, name ) VALUES ( @Bid, @name )