如何从数据集中执行插入、更新、删除,特别是从数据集中,然后在对数据集进行 CRUD 操作后更新数据库.....
If you have tables on the database this is what you do:
INSERT INTO [tblMGT247FeeAccruals] ([PortfolioID], [TransactionDate], [SettlementDate], [TransactionValue])
VALUES (@PortfolioID, @TransactionDate, @SettlementDate, @TransactionValue); SCOPE_IDENTITY())
UPDATE [tblMGT247FeeAccruals]
SET [PortfolioID] = @PortfolioID, [TransactionDate] = @TransactionDate, [SettlementDate] = @SettlementDate, [TransactionValue] = @TransactionValue
WHERE AccruedFeeID = @AccruedFeeID
DELETE
FROM tblMGT247FeeAccruals
Where AccruedFeeID = @AccruedFeeID
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.