-1

我是 VB Net., 的新手。我有两个表.,.,., 即.,., studentsrecords 和 Faculty 他们都有课程字段.,.,. 我只想检查该课程是否=其他表的课程。,.,

Dim con As New OleDbConnection
    Dim dr As OleDbDataReader
    Dim arrImage() As Byte
    Dim myMS As New IO.MemoryStream
    Dim cmd As New OleDbCommand
    Dim strcourse As String
    Dim strcourse1

    Dim da As New OleDb.OleDbDataAdapter

    con = New OleDbConnection(Get_Constring)
    con.Open()

    strcourse = "select Course from facultynew where FacultyID"
    strcourse1 = "select Course from studentsrecords where IDNumber"

    da = New OleDb.OleDbDataAdapter(strcourse, con)
    da = New OleDb.OleDbDataAdapter(strcourse1, con)

strcourse=strcourse1
4

1 回答 1

2

您可能正在寻找INNER JOIN

于 2013-10-02T12:36:43.613 回答