Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Dim cmd1 As MySqlCommand = New MySqlCommand("INSERT INTO table1(id, col1, col2, col3, col4) VALUES (@id, @col1, @col2, @col3, @col4)" _
  2. & "SET @id = LAST_INSERT_ID() " _
  3. & "INSERT INTO table2 (id, col11, col12, col13) VALUES (@id, @col11, @col12, @col13)", Conn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement