I'm using mysql as database . I use odbc connector to use the database , it's working fine with select statements ,but when I use insert statement with parameter it is not working. may I know if the command parameter property works with mysql or it only works with mssql.
arkaitsolutions 0 Newbie Poster
Recommended Answers
Jump to PostI had read somewhere that either MySQl or ODBC does not accept named parameter.
Let update query be:
Dim cmd As New OdbcCommand("insert into table2(name) values (?)", con) cmd.Parameters.AddWithValue("?", TextBox1.Text) 'PS: I also try it with putting only ? in the insert sql and put a …
All 3 Replies
sknake 1,622 Senior Poster Featured Poster
arkaitsolutions 0 Newbie Poster
samir_ibrahim 58 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.