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

oracle Íâ¼üÔ¼Êø¼Ó´¥·¢Æ÷ÎÊÌ⣿ - Oracle / ¸ß¼¶¼¼Êõ

SQL code:

create table user_file (
userID int not null,
userName VARCHAR2(10),
userPwd VARCHAR2(10),
primary key (userID)
);

create table articletype (
magazineType int not null,
magazienTypeName VARCHAR2(20) not null,
primary key (magazineType)
);

create table article (
authorID int not null,
artcleName VARCHAR2(20) not null,
reportDate DATE,
magazine VARCHAR2(20),
magazineType int,
authorOrder int,
extend VARCHAR2(100),
foreign key (authorID) references user_file(userID)on delete

cascade,
foreign key (magazineType) references articletype(magazineType) on

delete cascade
);

create table log_file (
userID int not null,
operater VARCHAR2(10),
operaterDest VARCHAR2(20),
operaterDate DATE,
foreign key (userID) references user_file(userID)
);



Ç°ÃæÊÇÎÒ½¨µÄ±í£¬ÏÂÃæÊÇÎÒ½¨µÄ´¥·¢Æ÷
SQL code:


--ÂÛÎĸüд¥·¢Æ÷
CREATE OR REPLACE TRIGGER article_log_file
BEFORE INSER


Ïà¹ØÎÊ´ð£º

oracle 10g webµÇ½EMµÄÎÊÌ⣿ - Oracle / »ù´¡ºÍ¹ÜÀí

°²×°ÁËOracle 10g£¬Ä¬Èϰ²×°ÁËorclÊý¾Ý¿â£¬Õâ¸öÊý¾Ý¿âÄܲ»ÄÜɾ³ý°¡£¬»¹ÓÐÎÒÈç¹ûн¨ÁËÆäËûÊý¾Ý¿â£¬Ôõô֪µÀÔÚwebÖеǽ²»Í¬Êý¾Ý¿âµÄµØÖ·°¡£¿

1
¿ÉÒÔɾ³ý
2
ÔÚWEBµØÖ·À¸ÖÐÊäÈëµØÖ·µÄʱºòÖ¸¶¨Ð´´½¨µÄÊý¾Ý¿âµÄIP ......

javaÔõôÁ¬½ÓOracle£¬¼±°¡ - Java / JavaÏà¹Ø

private static final String URL = "jdbc:oracle:thin:@localhost:1521:orcl";
private static final String USERNAME = "sys";
private static final String PASSWORD = "s ......

JavaÖ®¸¸À뿪Oracle£¬±¯Í´°¡£¡£¡ - Java / ·Ç¼¼ÊõÇø

¿´µ½ÓÐÒ»¸öSUNµÄÔªÀÏ´ÓOracle¹«Ë¾´ÇÖ°£¬¶øÇÒÊÇJava´´Ê¼ÈË——´óÃû¶¦¶¦µÄJames Gosling£¬
ÐÄÖÐÏ൱ÊÜ´ò»÷£¡ºÜ±¯Í´£¡
OrableÕâÊÇÔõôÁË£¬ÄѵÀÕâ¾ÍÊÇËùνµÄÈںϣ¨Ö«½â£¬·Ö»¯£¬Ïûʧ£©Âð£¿
SUNµÄÒ»°ïÀÏÔ±¹¤¶ ......

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ºÅ