我在我的.xsd文件,如下更新查詢:更新查詢適用於所有列,除了一個
UPDATE Factors
SET CodeFactor = @CodeFactor, Date = @Date, MobileNumber = @MobileNumber,
Description= @Description, TotalPrice = @TotalPrice,
ShouldPayPrice = @ShouldPayPrice
WHERE ID = @Original_ID;
SELECT ID, CodeFactor, Date, PersonName, MobileNumber, Description, TotalPrice,
ShouldPayPrice, PaidPrice, Settlement, Kind
FROM Factors
WHERE ID = @Original_ID
ORDER BY Date DESC;
我用它在我的形式之一如下:
Fact.UpdateQuery(txtShomareFactor.Text.Trim(), fdpDate.Text.Trim(),
txtMobile.Text.Trim(), txtSharheKharid.Text,
Convert.ToInt64(txtJameKol.Text.Replace(",", "").Trim()),
Convert.ToInt64(txtMablagheGhabelePardakht.Text.Replace(",", "").Trim()),
IDFactorTOShowDetails);
它會更新除說明列以外的所有列!
IN []像[移動電話號碼] = @MobileNumber – 1Mayur
我做到了,但它並沒有再工作TRY封育字段名。 :(任何其他建議? –
更新時'@ description'有一些值嗎?嘗試調試。它是描述列的有效值嗎? – nawfal