开发者

Select Query without Tablespace reference

开发者 https://www.devze.com 2023-03-10 03:47 出处:网络
HI In TOAD when I write SELECT * FROM EMPLOYEES I get error \"table or view does not exist\". But when I write

HI

In TOAD when I write

SELECT * FROM EMPLOYEES

I get error "table or view does not exist". But when I write

SELECT 开发者_如何学Go* FROM DEP.EMPLOYEES

it works fine. how do I query a table without referencing the tablespace. i know it is definitely possible but I cannot find how.


Assuming you are using Oracle, you can alter the session this way: ALTER SESSION SET CURRENT SCHEMA = DEP

For DB2: SET SCHEMA='DEP'

0

精彩评论

暂无评论...
验证码 换一张
取 消