Dim cmd As New SQLCommand Dim dt As DataTable
cmd.CommandText = "select * fr om {表A} a inner join {表C} c on a.a = c.a unio n Select * fr om {表B} b inner join {表C} c on b.a = c.a"
dt = cmd.ExecuteReader()
Output.Show(dt.DataRows.Count)