2010-03-05 4 views

답변

3

select * from user_tab_columns 

이 오라클에 고유하지만, 더 일반적인 방식이있다 스키마 정보 검색 :

schema_owner = "the_owner"; // or null 
table_name = "the_table"; // or null 
column_name = "the_column"; // or null 
DataTable columns = connection.GetSchema("Columns", new string[] { schema_owner, table_name, column_name }); 

resultin g 테이블에는 기준과 일치하는 사용 가능한 모든 열 정보가 들어 있습니다.

사용 가능한 모든 스키마 메타 데이터 목록을 보려면 GetSchemaDbMetaDataCollectionNames.MetaDataCollections으로 매개 변수로 호출 할 수 있습니다.

+0

감사합니다. 나는 그 일반 클래스를 어쨌든 사용할 것이라고 말조차하지 않았다. :) –

관련 문제