so far this is what I came up with.. it's very simple. I was just wondering if i can do multiple insert statement at once? like run "INSERT INTO..." 3x in the temp_query string and just have it run once.
'temp_array() = {"joe, pizza, blue, football",
' "katy, toca, purple, tennis",
' "mike, steak, red, basketball"}
For i As Integer = 0 To temp_array.Length - 1
temp_dbcon = New MySqlConnection(temp_connection)
temp_query = "INSERT INTO " & shipping_method & " VALUES(" & temp_array(i) & ")"
temp_cmd = New MySqlCommand(temp_query, temp_dbcon)
temp_dbcon.Open()
temp_dr = temp_cmd.ExecuteReader
temp_dbcon.Close()
Next

New Topic/Question
Reply




MultiQuote




|