Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim cmd1 As MySqlCommand = New MySqlCommand("INSERT INTO table1(id, col1, col2, col3, col4) VALUES (@id, @col1, @col2, @col3, @col4)" _
- & "SET @id = LAST_INSERT_ID() " _
- & "INSERT INTO table2 (id, col11, col12, col13) VALUES (@id, @col11, @col12, @col13)", Conn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement