Ò»¸ö¼òµ¥µÄsqlÓï¾ä - Oracle / ¿ª·¢
create table user_b.abcd
( a number constraint abc_pk primary key
using index
(create index abc_index on user_b.abcd(a) tablespace users),
b number
);
------------------
SQL> @h:\code\6.sql
(create index abc_index on user_b.abcd(a) tablespace users),
*
µÚ 4 ÐгöÏÖ´íÎó:
ORA-00903: ±íÃûÎÞЧ
Óï¾äÓÐʲôÎÊÌ⣿£¿£¿£¿£¿£¿
±í»¹Ã»Óд´½¨³É¹¦¡£Äã¿ÉÒÔÏȽ¨±í£¬ÔÙ½¨Ë÷Òý
create table user_b.abcd
( a number );
alter table TGL_user_b.abcd
add
constraint abc_pk primary key (a) tablespace users);
°Ñuser_b.È«²¿È¥µô
ÕâÑù¿ÉÒÔÁ˰ɣ¿
˳±ã˵Ï Ö÷¼üĬÈϾÍÓÐindexµÄ û±ØÒªÐ½¨indexµÄ
Ïà¹ØÎÊ´ð£º
ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......
--½¨Á¢Ò»¸ö°üÒÔ¶¨ÒåÒ»¸öÓαê
create or replace package PK_test
as
type cur_test is ref cursor;
end PK_test;
--½¨Á¢Ò»¸ö¹ý³Ì,ͨ¹ýÊäÈëJOBID£¬·µ»ØÒ»¸ö±í¼Ç¼£¨Óα꣩!
create or replace ......