我在2个不同表格中插入了3个存储程序。
Table 1 Table 2
idPerson idProduct
name productName
phoneNumber productdescription
FK-idProduct
表1
create procedure test1 create procedure test2
WITH WITH
EXECUTE as caller EXECUTE as caller
AS AS
declare declare
@idPerson int, @idProduct int,
@name varchar(20), @productName varchar(50),
@phone varchar(20) @productoDescription varchar(50)
SET nocount on; SET nocount on;
Begin Begin
insert into table1( insert into table2(
idPerson, idProduct,
name, productName,
phone) productDescription)
values( values(
@idPerson, @idProduct,
@name, @productName,
@phone) @productDescription)
end end
我需要从所储存的程序测试1中发出储存程序测试2,并在表1中插入科索沃信托公司。