Tables Property (SelectStatement)
Contains list of tables and subqueries used in the FROM clause of the current
SelectStatement object.
Property Value
A
SelectTableCollection that represents list of tables and subqueries used in the FROM clause.
The following example demonstrates how to use the
Tables property.
private void RefreshStatement(PgSqlSelectStatement stmt)
{
stmt.Clear();
stmt.Columns.Add(new SelectColumn("ENAME"));
stmt.Columns.Add(new SelectColumn("", "emp", "JOB", "j"));
stmt.Columns.Add(new SelectColumn("test", "", "emp", "HIREDATE", "hd"));
stmt.Tables.Add(new SelectTable("emp"));
//select ENAME,emp.JOB j,Test.emp.HIREDATE hd from emp
string queryText = stmt.ToString();
}
Private Sub RefreshStatement(ByVal stmt As PgSqlSelectStatement)
stmt.Clear()
stmt.Columns.Add(New SelectColumn("ENAME"))
stmt.Columns.Add(New SelectColumn("", "emp", "JOB", "j"))
stmt.Columns.Add(New SelectColumn("test", "", "emp", "HIREDATE", "hd"))
stmt.Tables.Add(New SelectTable("emp"))
'select ENAME,emp.JOB j,Test.emp.HIREDATE hd from emp
Dim queryText As String = stmt.ToString
End Sub