我怎樣才能執行一個存儲過程在MySQL數據庫? 我必須傳遞參數並從存儲過程中捕獲結果。mysql stored proc
1
A
回答
3
+0
SqlConnection conn =新的SqlConnection(「數據源= GANGA; InitialCatalog = eMpratik;集成安全=真」); SqlCommand command = new SqlCommand(「Primarykey」,conn); command.CommandType = CommandType.StoredProcedure; command.Parameters.Add(「@ village」,SqlDbType.VarChar); command.Parameters [「@ village」]。Value = village; conn.Open(); SqlDataReader reader = command.ExecuteReader(); 這是我爲sqlserver.now編寫的代碼,我想爲我的sql helpme編寫相同的代碼! – srinivas 2009-07-09 07:58:38
相關問題
- 1. mysql stored proc truncate table
- 2. Mysql Stored Proc不返回VARCHAR輸出參數
- 3. 無法查看Stored Proc的列表
- 4. 在Sql Server中刪除Stored Proc Deadlock
- 5. 如何獲得Stored Proc返回的字段列表?
- 6. 如何導出到Stored Proc中的文件?
- 7. 我們應該更喜歡使用Stored Proc還是Prepared語句
- 8. 如何將SELECT語句的結果傳遞給Stored Proc
- 9. Stored Proc返回一行,記錄集或輸出參數?
- 10. stored-proc-outbound-gateway參數和結果處理
- 11. Concat所有參數並在Stored Proc中創建字符串?
- 12. 無法在Stored Proc中將變量聲明爲TVP類型
- 13. 執行Stored Proc時發生運行時異常java.lang.ClassNotFoundException
- 14. stored-proc-outbound-gateway中的參數個數不定
- 15. SqlCommand.ExecuteReader使用輸出參數使用Stored Proc不返回任何行
- 16. 使用SqlCommandBuilder(不使用Stored Proc)插入時可能檢索IDENTITY列值?
- 17. Stored Proc將所有代碼都返回,但單行時手動觸發
- 18. 在事務中包裝每個sql/stored proc調用有什麼好處?
- 19. 最好使用SQL + JOINS或Stored Proc來結合多個查詢的結果?
- 20. ODBC Api如果Stored Proc更新或選擇,則調用SQLMoreResults時會調用?
- 21. Permission denied with Perl Stored
- 22. VB.Net/ASP.Net Datatable not stored values
- 23. Linq to SQL with Stored Procedures
- 24. 使用Microsoft.SqlServer.SMO創建一個Alter Stored Procedure sql腳本?
- 25. 問題2005 PROC
- 26. Stored程序1064錯誤我的SQL
- 27. 當從Powershell腳本調用Stored Proc時,更大的數據庫(10GB +)保留在「還原掛起」狀態
- 28. 使用Proc Logistic/Proc GAM
- 29. Bulkload w/Proc Append
- 30. From Performance Wise:Class Computed Property vs Stored Property
使用完整qurestion。因此,一票.. – Sagotharan 2011-07-30 10:25:54