Inserting values in a oracle databse using oledb in vb .net, VS 2008

断了今生、忘了曾经 提交于 2019-12-02 10:21:20

Use question (?) placeholder instead of named parameters because you're using System.Data.OleDb. I'd suggest to download ODP.NET - Oracle Data Provider for .NET.

For instance,

query = "insert into APPLICANTS(APPLICANT_ID,FIRST_NAME) values(?,?)"
cmd.Parameters.Add("?", OleDb.OleDbType.VarChar,30).Value = TextBox7.Text
cmd.Parameters.Add("?", OleDb.OleDbType.LongVarChar,40).Value = TextBox1.Text
....
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!