안녕하세요..조복기입니다..
제가 예전에 답변했던 질문이군요..찾아보니까..
델파이헬프 및 델파이메뉴얼에 나와있는 내용입니다..
참고하시기 바랍니다.
질문하시기 전에 기존 데이타를 조회하는 습관을 가지시길 바랍니다..
좋은하루되세요..
--------------------------------------------------------------
안녕하세요..
제가 예전에 델파이메뉴얼에서 본게 기억이나서 헬프를 찾았더니
자세하게 예제까기 나와있네요..
참고로 다른DB안의 table조인은 앨리어스를 가지고
조인을 한답니다. 참고가 되셨는지..
--------------------------------------------------------------
헬프색인 : Heterogeneous joins
Joins two tables from different databases.
SELECT column_list
FROM ":database_reference:table_reference", ":database_reference:table_reference" [,":database_reference:table_reference"...]
WHERE predicate [AND predicate...]
Description
Use a heterogeneous join to join two tables that reside in different databases. The joined tables may be of different types (like dBASE to Paradox or Paradox to InterBase), but you can only join tables whose database types are accessible through the BDE (local, ODBC, or SQL Links). A hetergeneous join may be any of the joins supported by local SQL. The difference is in the syntax for the table reference: the database containing each table is specified in the table reference, surrounded by colons and the whole reference enclosed in quotation marks. The database specified as part of the table reference may be a drive and directory reference (for local tables) or a BDE alias.
SELECT *
FROM ":DBDEMOS:customer.db" C, ":BCDEMOS:orders.db" O
WHERE (C.custno = O.custno)
--------------------------------------------------------------
하윤철 께서 말씀하시기를...
> Oracle에 있는 테이블의 A 필드를 참조해서 MSSQL에서 조회를 해야 하거든요....
>
> Select AAA.*
> From AAA, BBB // 여기서 AAA : MSSQL BBB : Oracle
> Where AAA.B = BBB.B
> and BBB.A = '델파이'
>
> 보기는 간단하지요??
> 바로 되면 정말 좋겠고요... 안되면 ClientDB를 써서 한다리 건너서라도...
> 아이디어 좀 주세요...
>
Word화일이나 다른 문서화일로도 첨부가 가능한지요.
문서화일은 텍스트와 이미지또는 다른내용이 포함될수 있습니다.