Native SQL - How to set the schema and database names

Posted by icelobber on Stack Overflow See other posts from Stack Overflow or by icelobber
Published on 2010-03-18T08:43:55Z Indexed on 2010/03/18 8:51 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

Im using Native SQL from ABAP language. The query to get data is something like this

SELECT COUNT(ROWID) 
FROM <SCHEMANAME>.<TABLENAME>;@<DATABASENAME> 
INTO :localvariable

I want to somehow set the schemaname and database name as default so that i do not need to use them in the SELECTs later. Then i can only use the table name in the SELECT.

thanks !!

© Stack Overflow or respective owner

Related posts about native

Related posts about sql