Private Sub DGVemploie_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGVemploie.CellContentClick ouvrircnx() cmd = New OracleCommand("SELECT *FROM salle s, FULL JOIN groupe g ON s.codesalle = g.codegroupe ", cnx) da = New OracleDataAdapter(cmd) da.Fill(ds, "salle") DGVemploie.DataSource = ds.Tables("salle,groupe") fermercnx() End Sub
Измените команду с этого:
"SELECT *FROM salle s, FULL JOIN groupe g ON s.codesalle = g.codegroupe "
К этому:
SELECT * FROM TABLE1 UNION ALL SELECT * FROM TABLE2 UNION ALL SELECT * FROM TABLE3
* Замените имена таблиц фактическими именами таблиц.