I have an SQL statement in my C# program that looks like:
SELECT * FROM XXX.dbo.XXX
WHERE Source = OH
AND partnum = 1231202085
ORDER BY partnum, Packaging, Quantity
When running this query in SQL Server Management, the results are ordered as expected. My first 3 results have the same partnum and Packaging with Quantities of 32.0, 50.8, and 51.0.
然而,当我从我的节目中解答时,最初要退还的产值为50.8。 数量数据类型为少数(18.9)。 我曾尝试过,这似乎是一个数据类型的问题。
我很想知道,为什么要达到中间数量。
我在我的C#代码,而不是 s子中发现我的问题。
After getting the query results I hade:
if (PurchOrder.Read())
while (PurchOrder.Read())
如果看一看看看看一看我的第一个结果,那是谁却取得了我的第二个结果。
Ive replace the if statement with:
if (PurchOrder). HasRows=真实的
一切都看着罚款。
再次感谢您的回复。 处理误导问题。
- 同居