0

我正在尝试更新表tarRecurInvcLineDS中存在的表tciSTran中的记录

这是我写的查询...

 update [mas500_test_app].[dbo].[tciSTaxTran] 
 set STaxSchdKey = 310
 where STaxTranKey in
 (select STaxTranKey  from [mas500_test_app].[dbo].[tarRecurInvcLineDs] 

我收到此错误

Unable to update the tciSTaxTran record because it is trying to reference a record in tciSTaxSchedule that does not exist.

4

1 回答 1

1

似乎您在 tciSTaxTran.STaxSchdKey 和 tciSTaxSchedule 表之间有一个外键。tciSTaxSchedule 表是否有主键为 的行310

于 2012-12-26T19:22:41.303 回答