'Declaration Public ReadOnly Property OrderBy As SelectColumnCollection
public SelectColumnCollection OrderBy {get;}
'Declaration Public ReadOnly Property OrderBy As SelectColumnCollection
public SelectColumnCollection OrderBy {get;}
DB2SelectStatement stmt = new DB2SelectStatement(); SelectColumn empName = new SelectColumn("ENAME"); stmt.Columns.Add(empName); stmt.Tables.Add(new SelectTable("emp")); stmt.OrderBy.Add(empName); //select ENAME from emp order by ENAME DB2Command command = new DB2Command(stmt.ToString());
Dim stmt As New DB2SelectStatement Dim empName As New SelectColumn("ENAME") stmt.Columns.Add(empName) stmt.Tables.Add(New SelectTable("emp")) stmt.OrderBy.Add(empName) 'select ENAME from emp order by ENAME Dim command5 As New DB2Command(stmt.ToString)