SELECT * FROM TBL_USERSAGENT INSERT INTO TBL_USERSAGENT (SMAINPORTALMAC,SMAINPORTALMACNAME,IDBELONGM) VALUES (’00-00-00-00-00-09′,’wmsjhappy9′,’0′); DROP TABLE TBL_USERSAGENT; CREATE TABLE “MYDRADIUS”.”TBL_USERSAGENT” ( “IUSERSAGENTID” INT NOT NULL primary key, “SMAINPORTALMAC” VARCHAR2(30), “IDBELONGM” VARCHAR2(20), “SDEPUTPORTALMAC” VARCHAR2(30), “SDESCRIPTTABLE” VARCHAR2(20), “SMAINPORTALMACNAME” VARCHAR2(20), “SDEPUTPORTALMACNAME” VARCHAR2(20) ); create OR REPLACE sequence SEQ_TBL_USERSAGENT minvalue 1 –最小值 nomaxvalue –不设置最大值 start with 1 –从1开始计数 increment by 1 –每次加1个 nocycle –一直累加,不循环 nocache; CREATE OR REPLACE TRIGGER TG_TBL_USERSAGENT BEFORE INSERT ON TBL_USERSAGENT FOR EACH ROW WHEN (new.IUSERSAGENTID is null) begin select SEQ_TBL_USERSAGENT.nextval into:new.IUSERSAGENTID from dual; end; SELECT * FROM TBL_USERSAGENT SELECT * FROM TBL_USERSINFO SELECT * FROM TBL_USERS; SELECT TUINFO.SUSERNAME,TUS.ITYPE,TUS.SPASSWORD FROM TBL_USERSINFO TUINFO,TBL_USERS TUS WHERE TUINFO.SFAX= ’00-00-00-00-00-07′ AND TUINFO.SUSERNAME=TUS.SUSERNAME DELETE FROM TBL_USERSAGENT WHERE IUSERSAGENTID=’11′ UPDATE TBL_USERS SET SCALLINGNO=’00-00-00-00-00-08′,ITYPE=’3′ WHERE SUSERNAME=’wmsjhappy8′ SELECT SUSERNAME,ITYPE,SPASSWORD FROM TBL_USERS WHERE SCALLINGNO= ’00-00-00-00-00-07′ SELECT sUserName,sPassWord,iType FROM TBL_USERS WHERE sCallingNO=00-00-00-00-00-07 SELECT * FROM TBL_USERS SELECT * FROM TBL_USERSAGENT DELETE FROM TBL_USERSAGENT WHERE IUSERSAGENTID=’12′; DELETE FROM TBL_USERSAGENT WHERE IUSERSAGENTID=’20′; DELETE FROM TBL_USERSAGENT WHERE IUSERSAGENTID=’22′; DELETE FROM TBL_USERSAGENT WHERE IUSERSAGENTID=’30′; SELECT ITYPE FROM TBL_USERS WHERE SCALLINGNO=’00-00-00-00-00-05′ SELECT * FROM TBL_USERSINFO; SELECT SUSERNAME , SCALLINGNO,SPASSWORD,ITYPE FROM TBL_USERS WHERE ITYPE=’3′ AND SUSERNAME=(SELECT SUSERNAME FROM TBL_USERSINFO WHERE STELE LIKE ‘%;13693357267%’); SELECT * FROM TBL_USERSAGENT UPDATE TBL_USERSAGENT SET IDBELONGM=’wmsjhappy9′ WHERE SDEPUTPORTALMACNAME=’wmsjhappy8′ AND SDEPUTPORTALMAC=’00-00-00-00-00-08′; SELECT * FROM TBL_USERSAGENT WHERE IDBELONGM=’wmsjhappy9′ and SDEPUTPORTALMAC=’00-00-00-00-00-08′ AND SDEPUTPORTALMACNAME=’wmsjhappy8′ SELECT SUSERNAME , SCALLINGNO FROM TBL_USERS WHERE ITYPE=’3′ AND SUSERNAME=(SELECT SUSERNAME FROM TBL_USERSINFO WHERE STELE LIKE ‘%;13693357269%’) SELECT SUSERNAME FROM TBL_USERSINFO WHERE STELE LIKE ‘%;13693357269%’ SELECT tu.SUSERNAME , tu.SCALLINGNO FROM TBL_USERS tu WHERE ITYPE=’3′ AND tu.SUSERNAME=(SELECT SUSERNAME FROM TBL_USERSINFO WHERE STELE LIKE ‘%13693357260%’) SELECT SUSERNAME , SCALLINGNO FROM TBL_USERS WHERE ITYPE=’3′ AND SUSERNAME=(SELECT SUSERNAME FROM TBL_USERSINFO WHERE STELE LIKE ‘%13693357260%’) UPDATE TBL_USERS SET SPERMITPERIOD=’0000:2350′ WHERE SUSERNAME =’wmsjhappy2′ and SCALLINGNO=’00-00-00-00-00-05′; INSERT INTO tbl_Menu VALUES(207,2, ‘网吧登陆界面设置’, ‘wblogin’, ‘page=Portal/portalSetWb’, 12, 200, 1); INSERT INTO tbl_GroupMenu VALUES(1, 207); DROP TABLE tbl_UsersAgent1; CREATE TABLE tbl_UsersAgent1 ( iUsersAgentID NUMBER(38) PRIMARY KEY, sMainPortalMac VARCHAR2(255), iDbelongm VARCHAR2(255), sDeputPortalMac VARCHAR2(255), sDescriptTable VARCHAR2(255), sMainPortalMacName VARCHAR2(255), sDeputPortalMacName VARCHAR2(255) ); DROP SEQUENCE seq_usersagent1; CREATE SEQUENCE seq_usersagent1 START WITH 1 INCREMENT BY 1 CACHE 1024 ORDER; CREATE OR REPLACE TRIGGER trg_usersagent1 BEFORE INSERT ON tbl_UsersAgent1 FOR EACH ROW BEGIN SELECT seq_usersagent1.NEXTVAL INTO :NEW.iUsersAgentID FROM DUAL; END; delete from TBL_GROUPPRIV insert into TBL_GROUPPRIV VALUES(’5′,’188′); insert into TBL_GROUPPRIV VALUES(’2′,’188′); insert into TBL_GROUPPRIV VALUES(’3′,’187′); insert into TBL_GROUPPRIV VALUES(’6′,’188′); insert into TBL_GROUPPRIV VALUES(’2′,’187′); insert into TBL_GROUPPRIV VALUES(’3′,’188′); insert into TBL_GROUPPRIV VALUES(’5′,’187′); insert into TBL_GROUPPRIV VALUES(’6′,’187′); CREATE OR REPLACE TRIGGER TG_TBL_USERSAGENTGOOGLE BEFORE INSERT ON TBL_USERSAGENTGOOGLE FOR EACH ROW WHEN (new.IUSERSAGENTGOOGLEID is null) begin select SEQ_TBL_USERSAGENTGOOGLE.nextval into:new.IUSERSAGENTGOOGLEID from dual; end; DROP TABLE TBL_USERSAGENTGOOGLE; CREATE TABLE “MYDRADIUS”.”TBL_USERSAGENTGOOGLE” ( “IUSERSAGENTGOOGLEID” INT NOT NULL primary key, “SUSERSNAME” VARCHAR2(30), “DLNG” number(*,12), “DLAT” number(*,12), “SAGENTTYPE” VARCHAR2(20), “ILEVLE” number(5), “IUAG1″ number(5), “IUAG2″ number(5), “SUAG1″ VARCHAR2(20), “SUAG2″ VARCHAR2(20) ); DROP sequence SEQ_TBL_USERSAGENTGOOGLE; create sequence SEQ_TBL_USERSAGENTGOOGLE minvalue 1 –最小值 nomaxvalue –不设置最大值 start with 1 –从1开始计数 increment by 1 –每次加1个 nocycle –一直累加,不循环 nocache; CREATE OR REPLACE TRIGGER TG_TBL_USERSAGENTGOOGLE BEFORE INSERT ON TBL_USERSAGENTGOOGLE FOR EACH ROW WHEN (new.IUSERSAGENTGOOGLEID is null) begin select SEQ_TBL_USERSAGENTGOOGLE.nextval into:new.IUSERSAGENTGOOGLEID from dual; end; CREATE OR REPLACE TRIGGER TG_TBL_USERSAGENTGOOGLE BEFORE INSERT ON TBL_USERSAGENTGOOGLE FOR EACH ROW BEGIN SELECT seq_usersagent1.NEXTVAL INTO :NEW.IUSERSAGENTGOOGLEID FROM DUAL; END; DROP TABLE TBL_USERAGENTGOOGLE; CREATE TABLE “MYDRADIUS”.”TBL_USERAGENTGOOGLE” ( iUserAgentGoogleID INT NOT NULL primary key, sUsername VARCHAR2(50), sClass number(2), iLevle number(5), sPostion VARCHAR2(50), sLogoImg VARCHAR2(50), dLng number(*,12), dLat number(*,12), sRadius number(2), IUAG1 number(5), IUAG2 number(5), SUAG1 VARCHAR2(20), SUAG2 VARCHAR2(20) ); DROP sequence SEQ_TBL_USERAGENTGOOGLE; create sequence SEQ_TBL_USERAGENTGOOGLE minvalue 1 –最小值 nomaxvalue –不设置最大值 start with 1 –从1开始计数 increment by 1 –每次加1个 nocycle –一直累加,不循环 nocache; CREATE OR REPLACE TRIGGER TG_TBL_USERAGENTGOOGLE BEFORE INSERT ON TBL_USERAGENTGOOGLE FOR EACH ROW BEGIN SELECT SEQ_TBL_USERAGENTGOOGLE.NEXTVAL INTO :NEW.IUSERAGENTGOOGLEID FROM DUAL; END; insert into tbl_useragentgoogle (sUsername) values (‘wmsjhappy’); ————————————————————活动发布 DROP TABLE TBL_USERSAGENTACTIVE; CREATE TABLE “MYDRADIUS”.”TBL_USERSAGENTACTIVE” ( iUserAgentActiveID INT NOT NULL primary key, sUserName VARCHAR2(50), sContents VARCHAR2(2000), dCreateTime date, IUAA1 number(5), IUAA2 number(5), SUAA1 VARCHAR2(20), SUAA2 VARCHAR2(20) ); DROP sequence SEQ_TBL_USERSAGENTACTIVE; create sequence SEQ_TBL_USERSAGENTACTIVE minvalue 1 –最小值 nomaxvalue –不设置最大值 start with 1 –从1开始计数 increment by 1 –每次加1个 nocycle –一直累加,不循环 nocache; CREATE OR REPLACE TRIGGER TG_TBL_USERSAGENTACTIVE BEFORE INSERT ON TBL_USERSAGENTACTIVE FOR EACH ROW WHEN (new.iUserAgentActiveID is null) begin select SEQ_TBL_USERSAGENTACTIVE.nextval into:new.iUserAgentActiveID from dual; end; ————————————————————活动发布 desc tbl_usersagentgoogle create or replace procedure pro_tb_padd ( spname in varchar2,spsex in varchar2, ipage in number, spnation in varchar2,dpbirth in date, spaddress in varchar2,spoccupation in varchar2,iptele in number, ipmobile in number,spmarriage in varchar2, ipheight in number, ipidcard in number, sppolitical in varchar2,spgraduate in varchar2, speducation in varchar2, spemail in varchar2,ipzipcode in number, spnowworking in varchar2, spexpertise in varchar2, spachievements in varchar2, dpcreatedatetime in date, dplastdatetime in date,ipblacklist in number, ipsticsky in number, spadmin in varchar2, iplooktimes in number) is begin insert into tb_personresumes ( tb_spname ,tb_spsex ,tb_ipage ,tb_spnation ,tb_dpbirth ,tb_spaddress , tb_spoccupation ,tb_iptele ,tb_ipmobile ,tb_spmarriage ,tb_ipheight,tb_ipidcard , tb_sppolitical ,tb_spgraduate,tb_speducation ,tb_spemail ,tb_ipzipcode, tb_spnowworking,tb_spexpertise ,tb_spachievements ,tb_dpcreatedatetime , tb_dplastdatetime ,tb_ipblacklist ,tb_ipsticsky,tb_spadmin,tb_iplooktimes) values ( spname,spsex ,ipage ,spnation ,dpbirth ,spaddress , spoccupation ,iptele ,ipmobile ,spmarriage ,ipheight ,ipidcard , sppolitical ,spgraduate ,speducation ,spemail ,ipzipcode , spnowworking ,spexpertise ,spachievements,dpcreatedatetime, dplastdatetime ,ipblacklist ,ipsticsky ,spadmin ,iplooktimes); end; exec pro_tb_padd( ‘wmsjhappy’,'man’,25,’hanzu’,19880706,’pingquan chengde china’, ‘misrcsoft’,13693357261,13693357261,’not’,174,130823198804022513, ‘not’,'china’,'big’,'[email protected]’,100010,’beijing’, ‘lanqiu,dianzi,miscrsoft’,'nothing’,20110927,20110927,0,1,’admin’,100 ); select * from tb_personresumes;