亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: gz_xuhaoz
打印 上一主題 下一主題

求助:光標(biāo)中如何使用同義詞 [復(fù)制鏈接]

論壇徽章:
0
11 [報(bào)告]
發(fā)表于 2007-09-10 14:28 |只看該作者
原帖由 numenhuang 于 2007-9-10 11:27 發(fā)表
xxxx,yyyy前分別帶上schema名稱,再測(cè)試


  加上了也不行。

論壇徽章:
0
12 [報(bào)告]
發(fā)表于 2007-09-10 15:11 |只看該作者
create or replace procedure test
as
cursor cc is select * from YYYY;
begin
null;
end;
/

能否創(chuàng)建

論壇徽章:
0
13 [報(bào)告]
發(fā)表于 2007-09-10 15:47 |只看該作者
原帖由 numenhuang 于 2007-9-10 15:11 發(fā)表
create or replace procedure test
as
cursor cc is select * from YYYY;
begin
null;
end;
/

能否創(chuàng)建



不能創(chuàng)建

Warning: Procedure created with compilation errors.

SQL> show errors
Errors for PROCEDURE TEST:

LINE/COL ERROR
-------- -----------------------------------------------------------------
3/14     PL/SQL: SQL Statement ignored
3/28     PL/SQL: ORA-00942: table or view does not exist



SQL> select count(*) from YYYY;

  COUNT(*)
----------
     10423

論壇徽章:
0
14 [報(bào)告]
發(fā)表于 2007-09-10 15:51 |只看該作者
sqlplus system
sql>select * from dba_synonyms where synonym_name='YYYY'
貼出來看看

create or replace procedure test
as
cursor cc is select * from 同義詞基表用戶.同義詞基表;
begin
null;
end;

論壇徽章:
0
15 [報(bào)告]
發(fā)表于 2007-09-10 16:04 |只看該作者
原帖由 numenhuang 于 2007-9-10 15:51 發(fā)表
sqlplus system
sql>select * from dba_synonyms where synonym_name='YYYY'
貼出來看看

create or replace procedure test
as
cursor cc is select * from 同義詞基表用戶.同義詞基表;
begin
null;
end;



SQL> SHOW USER
USER is "FSZW_LSGJ"

select * from dba_synonyms where synonym_name='IM_PR_NOSECT'

OWNER                          TABLE_OWNER
------------------------------ ------------------------------
TABLE_NAME
------------------------------
FSZW_LSGJ                      COMMON_LSGJ
IM_PR_NOSECT


SQL>
SQL> create or replace procedure test
  2  as
  3  cursor cc is select * from COMMON_LSGJ.IM_PR_NOSECT;
  4  begin
  5  null;
  6  end;
  7  /

Warning: Procedure created with compilation errors.

SQL> SHOW ERRORS
Errors for PROCEDURE TEST:

LINE/COL ERROR
-------- -----------------------------------------------------------------
3/14     PL/SQL: SQL Statement ignored
3/40     PL/SQL: ORA-00942: table or view does not exist

論壇徽章:
0
16 [報(bào)告]
發(fā)表于 2007-09-10 16:08 |只看該作者
SQL> SHOW USER
USER is "FSZW_LSGJ"

sql>select * from COMMON_LSGJ.IM_PR_NOSECT where rownum<10;

如果報(bào)錯(cuò)
connect system
grant select on COMMON_LSGJ.IM_PR_NOSECT to FSZW_LSGJ;

論壇徽章:
0
17 [報(bào)告]
發(fā)表于 2007-09-10 16:09 |只看該作者

回復(fù) #16 numenhuang 的帖子

SQL> select count(*) from  COMMON_LSGJ.IM_PR_NOSECT;

  COUNT(*)
----------
     10423

SQL>

論壇徽章:
0
18 [報(bào)告]
發(fā)表于 2007-09-10 16:11 |只看該作者
sql>select * from COMMON_LSGJ.IM_PR_NOSECT where rownum<10;

論壇徽章:
0
19 [報(bào)告]
發(fā)表于 2007-09-10 16:13 |只看該作者

回復(fù) #18 numenhuang 的帖子

可以的,沒有問題。

論壇徽章:
0
20 [報(bào)告]
發(fā)表于 2007-09-10 16:16 |只看該作者
原帖由 gz_xuhaoz 于 2007-9-10 16:13 發(fā)表
可以的,沒有問題。


如果這樣的話
SQL> create or replace procedure test
  2  as
  3  cursor cc is select * from COMMON_LSGJ.IM_PR_NOSECT;
  4  begin
  5  null;
  6  end;
  7  /
還會(huì)報(bào)錯(cuò)?
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP