Hi every one . I'm beginner in
VB . I want to delete a column in my DataBase(DB2) , and write this command for delete
Dim conn As DB2Connection = New DB2Connection("database=tut8;UID=;PWD=")
Dim myCommand As New DB2Command
Dim sql1 As String
sql1 = "delete from student where id = ('" & TextBox1.Text & "')"
conn.Open()
myCommand.Connection = conn
myCommand.CommandText = sql1
myCommand.ExecuteNonQuery()
conn.Close()
my problem this when i want to delete this command, just delete last row that i enter with command insert