dynamic sql generation is not supported against multiple base tables(多个基表不支持动态 sql 生成)
问题描述
我尝试向 SQL DB 中的表添加新行,但遇到了问题:
I tried to add a new row to a Table in an SQL DB, but I had a problem :
不支持对多个基表进行动态 sql 生成
dynamic sql generation is not supported against multiple base tables
这是我尝试过的代码:
推荐答案
更改您的选择查询并使用内部联接添加 distinct.
Change your select query and add distinct with inner join.
例如有两个查询,您可以从中了解我想告诉您的内容
For example there are two query from which you can understand that what I want to tell you
查询错误
正确查询
这篇关于多个基表不支持动态 sql 生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!