使用最广泛的radius的linux的源码

源代码在线查看: badusers.sql

软件大小: 3428 K
上传用户: qq448792326
关键词: radius linux 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 * $Id: badusers.sql,v 1.4 2005/03/21 17:05:18 kkalev Exp $				 *				 */								/*				 * Table structure for table 'radcheck'				 */								CREATE TABLE badusers (					id		INT PRIMARY KEY,					username	VARCHAR(30) DEFAULT '' NOT NULL,					incidentdate	TIMESTAMP WITH TIME ZONE DEFAULT sysdate NOT NULL,					reason		VARCHAR(128) DEFAULT '' NOT NULL,					admin		VARCHAR(128) DEFAULT '-' NOT NULL				);				CREATE SEQUENCE badusers_seq START WITH 1 INCREMENT BY 1;				CREATE INDEX badusers_incidentdate_idx ON badusers (incidentdate);				CREATE INDEX badusers_username_idx ON badusers (username);								/* Trigger to emulate a serial # on the primary key */				CREATE OR REPLACE TRIGGER badusers_serialnumber				        BEFORE INSERT OR UPDATE OF id ON badusers				        FOR EACH ROW				        BEGIN				                if ( :new.id = 0 or :new.id is null ) then				                        SELECT badusers_seq.nextval into :new.id from dual;				                end if;				        END;				/											

相关资源