Skip to Content
author's profile photo Former Member
Former Member

simple sql syntax

hi.

I'd like to use external server's tables.

and DB connection has made.

but I don't know how to specify external table on sql in 'from' blank.

suppose oracle sid is "oracle1" and target table is "t_table".

how to make simple select SQL query?

if not possible specify target table with that name what other information need to be known?

data :aaa type string.

EXEC SQL select field1 into :aaa from ENDEXEC.

Thank you in advance

park.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2007 at 08:31 AM

    SELECT * FROM ZTABLE INTO TABLE ITAB CONNECTION CON_NAME.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      thanks

      but external server is not SAP server so there is NO ordinary connection name

      DB connection is made by unix parameter

      anyway I only can use native SQL not open SQL.

      I know external server's oracle SID and target table name. in that situation how to specify non-sap server's table to 'from' of native SQL query?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.