create stored proc in SQL7.0
' ------------------------------------------- '
create proc Update_3_tables
as
declare @prod char(...) or int ''whatever you need
@prod = SELECT (last_productid)+ 1 FROM Product
INSERT INTO Comment (prod, nature, comments) VALUES (@prod, suggestions, blah...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.