摘要:
如果有各种动物,比如Dogs/Cats/Cows/...,都有不同的Age方法,若想从其基类用相同的方法ShowAge来显示这些不同的Age,自然就可以借用基类Animal的virtual函数,比如:public class Animal
{ public virtual Age { get {....} set {....} } public ShowAge() { Show(Age); }
} public class Dog : Animal
{ public override Ag... 阅读全文
摘要:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><?php include("./conn.php"); include("./init.inc.php"); include("./FCKeditor/fckeditor.php"); session_start();//从PHP文件分配标量模板变量 $page_title="新闻管理系统"; $tpl->assign 阅读全文
摘要:
CREATE OR REPLACE TRIGGER TRI_FOR_SITE BEFORE INSERT ON SITE FOR EACH ROWDECLAREBEGIN SELECT SEQ_SITE.NEXTVAL INTO:NEW.ID FROM DUAL;END TRI_FOR_SITE;CREATE OR REPLACE TRIGGER TRI_FOR_SITE1 BEFORE INSERT ON SITE1 FOR EACH ROWDECLAREBEGIN SELECT SEQ_SITE1.NEXTVAL INTO:NEW.ID FROM DUAL;END TRI_FOR_SITE 阅读全文
摘要:
1-开启归档功能,使数据库处于归档模式下先关闭数据库:shutdown immediate启动到mount状态:startup mount开启归档功能:alter database archivelog;打开数据库:alter database open;2-开启闪回flashback功能(归档下才可开启数据库闪回)查看flashback是否开启:select name,flashback_on from v$database;查看闪回恢复区及大小是否设置:show parameter db_recovery;先设置闪回恢复区的大小:alter system set db_recovery_f 阅读全文