database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
ㆍCache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
Cache Q&A 1057 게시물 읽기
No. 1057
[펌]Intersystems Cache Table 목록 가져오기
작성자
하늘나라펌
작성일
2009-12-23 10:09
조회수
7,594

Table 목록 가져오는 저장 프로시저는 ODBC 에서 다음과 같이 호출하면 됩니다. %Dictionary.TableDefinition 에서 제공하는 Query 중에 "SubclassOf" 라는 것이 있습니다. 이것을 이용하면 됩니다.

예를 들어, 가져오려는 Table 이 User(패키지명 포함)로 시작하는 경우

  call %Dictionary.ClassDefinition_SubclassOf '%Library.Persistent' 'User'

 

만일, 이 저장프로시저를 Caché Terminal 에서 호출하려면, 다음과 같이 하시면 됩니다.

  do ##class(%ResultSet).RunQuery("%Dictionary.ClassDefinition","SubclassOf","%Library.Persistent","User")

 

추가 질문 있으면 멜 날리세요. ^^;

 

[Top]
No.
제목
작성자
작성일
조회
1061ODBC 연결시 Connection String 예시
CacheODBC
2010-02-08
7423
1060오브젝트 컬렉션을 SQL에서 쿼리하려면
오브젝트모델링
2010-02-02
6393
1059Cache에서 오류 이해하기
오류맨
2010-02-02
6503
1057[펌]Intersystems Cache Table 목록 가져오기
하늘나라펌
2009-12-23
7594
1056Cache Security-CCC
보안관
2009-12-17
7238
1051CacheODBC 로그 남기기
CacheSQL
2009-12-15
6562
1050cache database to Oracle Migration? [1]
HIT
2009-12-14
6942
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2023 DSN, All rights reserved.
작업시간: 0.050초, 이곳 서비스는
	PostgreSQL v16.1로 자료를 관리합니다