Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Ò»¸ö¼òµ¥µÄ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);

ÒýÓÃ
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.s¡­¡­

°Ñuser_b.È«²¿È¥µô

ÒýÓÃ

ÒýÓÃÂ¥Ö÷ liukai_happy µÄ»Ø¸´:
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
);

-------------¡­¡­

ÕâÑù¿ÉÒÔÁ˰ɣ¿
˳±ã˵Ï Ö÷¼üĬÈϾÍÓÐindexµÄ û±ØÒªÐ½¨indexµÄ

ÒýÓÃ
create table user_b.abcd
( a number constraint abc_pk primary key
using index<


Ïà¹ØÎÊ´ð£º

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

oracle³õѧÕßÄãÇë½Ì - Oracle / »ù´¡ºÍ¹ÜÀí

--½¨Á¢Ò»¸ö°üÒÔ¶¨ÒåÒ»¸öÓαê
create or replace package PK_test 
as 
type cur_test is ref cursor;
end PK_test;
--½¨Á¢Ò»¸ö¹ý³Ì,ͨ¹ýÊäÈëJOBID£¬·µ»ØÒ»¸ö±í¼Ç¼£¨Óα꣩!
create or replace ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ