问题
I am using Zapier to add rows to SQL Server tables. However, I have needed to use the find row via custom query and create specific INSERT statements
However, Zapier will only work if there is select statement at the start of the query. The insert works but the flow fails as Zapier can only process one query / statement.
My query is
insert into Table_A (EntryID, FirstName)
output inserted.EntryID, inserted.FirstName into Table_B (EntryID, Firstname)
values (102, 'Fred')
select *
from ILR_Test
where EntryID = 102
Is there a way of making the insert activity part of a select statement through a subquery or some other way.
Thanks
来源:https://stackoverflow.com/questions/53352315/select-statement-nested-query