簡體   English   中英

沒有子查詢時,子查詢返回的值超過1

[英]Subquery returned more than 1 value when there is no Subquery

Dapper拋出Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.' Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.' 沒有子查詢時。 Innerexception也為null。

我的查詢是SELECT * FROM dbo.someTable ,我使用了Dappers Query<T>方法。

任何人看起來都熟悉嗎?

更新:我在MSSQL Server Management Studio中運行查詢時遇到相同的錯誤。 這很古怪。 我會繼續更新。

更新2:很抱歉遇到麻煩。 這是一個很好的隱藏視圖。

起初我以為這是Dapper的錯誤,但后來我意識到我的查詢目標是視圖。 如果我犯了這個錯誤,其他人也可以。 留在這里。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM