[ ADO . NET ] CommandType . TableDirect 예제 , 오라클 EMP 테이블 데이터 SELECTusing System ; using System . Collections . Generic ; using System . Linq ; using System . Text ; using System . Data ; using System . Data . OleDb ; namespace ConsoleApplication 20 {     class Program     {         static void Main ( string [ ] args )         {             OleDbConnection myOleDbConnection =                  new OleDbConnection ( " Provider = MSDAORA ; data source = onj ; User ID = scott ; Password = tiger ");              OleDbCommand myOleDbCommand = myOleDbConnection . CreateCommand ( ) ;              / / CommendText 에 직접 테이블 명 을 기술 하 겠 다는 의미             myOleDbCommand . CommandType = CommandType . TableDirect ;               myOleDbCommand . CommandText = " EMP "; / / 테이블 명 이 다 .              myOleDbConnection . Open ( ) ;              OleDbDataReader myOleDbDataReader = myOleDbCommand . ExecuteReader ( ) ;             / / 전체 EMP 테이블 의 데이터 중 2 건 만 출력 하 자 .             for ( int count = 1 ; count <= 2 ; count ++) {                  myOleDbDataReader . Read ( ) ;                 Console . WriteLine ( " myOleDbDataReader [ \" EMPNO \"] = " + myOleDbDataReader [ " EMPNO "]);                 Console . WriteLine ( " myOleDbDataReader [ \" ENAME \"] = " + myOleDbDataReader [ " ENAME "]);                 Console . WriteLine ( " myOleDbDataReader [ \" SAL \"] = " + myOleDbDataReader [ " SAL "]);             }              myOleDbDataReader . Close ( ) ;              myOleDbConnection . Close ( ) ;         }     }}[ 결과 ] myOleDbDataReader [ " EMPNO "] = 2141 myOleDbDataReader [ " ENAME "] = 홍길동 myOleDbDataReader [ " SAL "] = myOleDbDataReader [ " EMPNO "] = 2142 myOleDbDataReader [ " ENAME "] = Cary 2 myOleDbDataReader [ " SAL "] =  