この Microsoft SQL Server トリガーを変換したい
ALTER TRIGGER [dbo].[trg_EliminoItems]
ON [dbo].[PedidosEncabezado]
INSTEAD OF DELETE
AS
BEGIN
SET NOCOUNT ON;
insert into HistPedidosEncabezado select * from PedidosEncabezado where PedidosID in ( select PedidosID from deleted )
insert into HistPedidosItems select * from PedidosItems where PedidosID in ( select PedidosID from deleted )
delete from PedidosItems where PedidosID in ( select PedidosID from deleted )
delete from PedidosEncabezado where PedidosID in ( select PedidosID from deleted )
END
SQLiteに。