sql
stringlengths
6
1.05M
DROP TABLE IF EXISTS ts_events CASCADE;
<reponame>microsoft/AzureSynapseScriptsAndAccelerators -- Query for: 26. Applications SELECT AppId, COUNT(*) AS Queries FROM pdcrinfo.dbqlogtbl_hst where StartTime >= CURRENT_TIMESTAMP - INTERVAL '7' DAY and StartTime < CURRENT_TIMESTAMP GROUP BY AppId;
create table ability ( id bigint not null auto_increment, color varchar(255), description varchar(255), name varchar(255), member_id bigint, parent_id bigint, primary key (id) ) engine=InnoDB; create table ability_graph ( id bigint not null auto_increment, report_id bigint, primary key (id) ) engine=InnoDB; create table ability_relationship ( id bigint not null auto_increment, source_id bigint, target_id bigint, primary key (id) ) engine=InnoDB; create table graph_ability ( id bigint not null auto_increment, is_present bit, weight bigint not null, ability_id bigint not null, ability_graph_id bigint not null, primary key (id) ) engine=InnoDB; create table report ( id bigint not null auto_increment, description varchar(255), is_represent bit, title varchar(255), graph_id bigint not null, member_id bigint not null, primary key (id) ) engine=InnoDB; create table reported_studylog ( id bigint not null auto_increment, studylog_id bigint, report_id bigint not null, primary key (id) ) engine=InnoDB; create table reported_studylog_ability ( id bigint not null auto_increment, ability_id bigint not null, reported_studylog_id bigint not null, primary key (id) ) engine=InnoDB; alter table ability add constraint FK_ABILITY_MEMBER foreign key (member_id) references member (id); alter table ability add constraint FK_ABILITY_PARENT foreign key (parent_id) references ability (id); alter table ability_graph add constraint FK_ABILITY_GRAPH_REPORT foreign key (report_id) references report (id); alter table ability_relationship add constraint FK_ABILITY_RELATIONSHIP_SOURCE foreign key (source_id) references ability (id); alter table ability_relationship add constraint FK_ABILITY_RELATIONSHIP_TARGET foreign key (target_id) references ability (id); alter table graph_ability add constraint FK_GRAPH_ABILITY_ABILITY foreign key (ability_id) references ability (id); alter table graph_ability add constraint FK_GRAPH_ABILITY_ABILITY_GRAPH foreign key (ability_graph_id) references ability_graph (id); alter table report add constraint FK_REPORT_ABILITY_GRAPH foreign key (graph_id) references ability_graph (id); alter table report add constraint FK_REPORT_MEMBER foreign key (member_id) references member (id); alter table reported_studylog add constraint FK_REPORTED_STUDYLOG_REPORT foreign key (report_id) references report (id); alter table reported_studylog_ability add constraint FK_REPORTED_STUDYLOG_ABILITY_ABILITY foreign key (ability_id) references ability (id); alter table reported_studylog_ability add constraint FK_REPORTED_STUDYLOG_ABILITY_REPORTED_STUDYLOG foreign key (reported_studylog_id) references reported_studylog (id);
DECLARE exit handler for sqlexception begin select 1; end;
-- 2018-01-08T12:37:27.630 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Window (AD_Client_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDefault,IsOneInstanceOnly,IsSOTrx,Name,Processing,Updated,UpdatedBy,WindowType,WinHeight,WinWidth) VALUES (0,0,540395,TO_TIMESTAMP('2018-01-08 12:37:27','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.material.cockpit','Y','N','N','N','Y','Material Cockpit Detail','N',TO_TIMESTAMP('2018-01-08 12:37:27','YYYY-MM-DD HH24:MI:SS'),100,'M',0,0) ; -- 2018-01-08T12:37:27.631 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Window_Trl (AD_Language,AD_Window_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Window_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Window t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Window_ID=540395 AND NOT EXISTS (SELECT 1 FROM AD_Window_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Window_ID=t.AD_Window_ID) ; -- 2018-01-08T12:37:47.269 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2018-01-08 12:37:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540893 ; -- 2018-01-08T12:38:15.562 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsCheckParentsChanged,IsGenericZoomTarget,IsGridModeOnly,IsInfoTab,IsInsertRecord,IsQueryOnLoad,IsReadOnly,IsRefreshAllOnActivate,IsSearchActive,IsSearchCollapsed,IsSingleRow,IsSortTab,IsTranslationTab,MaxQueryRecords,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,540981,540893,540395,TO_TIMESTAMP('2018-01-08 12:38:15','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.material.cockpit','N','N','Y','N','Y','N','N','N','Y','Y','N','N','Y','Y','N','N','N',0,'Beleg Detail','N',10,0,TO_TIMESTAMP('2018-01-08 12:38:15','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:38:15.563 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=540981 AND NOT EXISTS (SELECT 1 FROM AD_Tab_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Tab_ID=t.AD_Tab_ID) ; -- 2018-01-08T12:39:31.236 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558515,187,0,30,540893,'N','C_BPartner_ID',TO_TIMESTAMP('2018-01-08 12:39:31','YYYY-MM-DD HH24:MI:SS'),100,'N','Bezeichnet einen Geschäftspartner','de.metas.material.cockpit',10,'Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Geschäftspartner',0,0,TO_TIMESTAMP('2018-01-08 12:39:31','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-08T12:39:31.237 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558515 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2018-01-08T12:40:21.787 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=53458, AD_Reference_Value_ID=138, ColumnName='DropShip_BPartner_ID', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.', Name='Lieferempfänger',Updated=TO_TIMESTAMP('2018-01-08 12:40:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558515 ; -- 2018-01-08T12:40:21.788 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Lieferempfänger', Description='Business Partner to ship to', Help='If empty the business partner will be shipped to.' WHERE AD_Column_ID=558515 ; -- 2018-01-08T12:40:37.212 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN DropShip_BPartner_ID NUMERIC(10)') ; -- 2018-01-08T12:40:37.223 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator ALTER TABLE MD_Cockpit_DocumentDetail ADD CONSTRAINT DropShipBPartner_MDCockpitDocu FOREIGN KEY (DropShip_BPartner_ID) REFERENCES public.C_BPartner DEFERRABLE INITIALLY DEFERRED ; -- 2018-01-08T12:41:05.612 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558499,561310,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,'Mandant für diese Installation.',10,'de.metas.material.cockpit','Ein Mandant ist eine Firma oder eine juristische Person. Sie können keine Daten über Mandanten hinweg verwenden. .','Y','Y','N','N','N','N','N','Mandant',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.614 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561310 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.671 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558500,561311,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,'Organisatorische Einheit des Mandanten',10,'de.metas.material.cockpit','Eine Organisation ist ein Bereich ihres Mandanten - z.B. Laden oder Abteilung. Sie können Daten über Organisationen hinweg gemeinsam verwenden.','Y','Y','N','N','N','N','N','Sektion',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.672 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561311 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.729 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558503,561312,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,'Der Eintrag ist im System aktiv',1,'de.metas.material.cockpit','Es gibt zwei Möglichkeiten, einen Datensatz nicht mehr verfügbar zu machen: einer ist, ihn zu löschen; der andere, ihn zu deaktivieren. Ein deaktivierter Eintrag ist nicht mehr für eine Auswahl verfügbar, aber verfügbar für die Verwendung in Berichten. Es gibt zwei Gründe, Datensätze zu deaktivieren und nicht zu löschen: (1) Das System braucht den Datensatz für Revisionszwecke. (2) Der Datensatz wird von anderen Datensätzen referenziert. Z.B. können Sie keinen Geschäftspartner löschen, wenn es Rechnungen für diesen Geschäftspartner gibt. Sie deaktivieren den Geschäftspartner und verhindern, dass dieser Eintrag in zukünftigen Vorgängen verwendet wird.','Y','Y','N','N','N','N','N','Aktiv',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.730 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561312 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.788 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558506,561313,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.material.cockpit','Y','N','N','N','N','N','N','N','DocumentDetails',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.789 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561313 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.844 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558509,561314,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,'Auftrag',10,'de.metas.material.cockpit','The Order is a control document. The Order is complete when the quantity ordered is the same as the quantity shipped and invoiced. When you cloase an order, unshipped (backordered) quantities are cancelled.','Y','Y','N','N','N','N','N','Auftrag',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.845 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561314 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.902 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558510,561315,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,'Auftragsposition',10,'de.metas.material.cockpit','"Auftragsposition" bezeichnet eine einzelne Position in einem Auftrag.','Y','Y','N','N','N','N','N','Auftragsposition',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.903 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561315 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:05.957 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558511,561316,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.material.cockpit','Y','Y','N','N','N','N','N','Materialcockpit',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:05.958 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561316 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:06.015 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558513,561317,0,540981,TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.material.cockpit','Y','Y','N','N','N','N','N','Pauschale - Vertragsperiode',TO_TIMESTAMP('2018-01-08 12:41:05','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:06.016 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561317 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:06.070 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558514,561318,0,540981,TO_TIMESTAMP('2018-01-08 12:41:06','YYYY-MM-DD HH24:MI:SS'),100,10,'de.metas.material.cockpit','Y','Y','N','N','N','N','N','Abo-Verlauf',TO_TIMESTAMP('2018-01-08 12:41:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:06.071 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561318 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:41:06.124 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,558515,561319,0,540981,TO_TIMESTAMP('2018-01-08 12:41:06','YYYY-MM-DD HH24:MI:SS'),100,'Business Partner to ship to',10,'de.metas.material.cockpit','If empty the business partner will be shipped to.','Y','Y','N','N','N','N','N','Lieferempfänger',TO_TIMESTAMP('2018-01-08 12:41:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-08T12:41:06.127 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561319 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-08T12:43:03.962 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Help='this table shal be shown not via menu etc, but via a quick action from the material cockpit window',Updated=TO_TIMESTAMP('2018-01-08 12:43:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540395 ; -- 2018-01-08T12:43:12.627 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Name='MD_Cockpit_DocumentDetail',Updated=TO_TIMESTAMP('2018-01-08 12:43:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540893 ; -- 2018-01-08T12:43:28.577 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Name='Materialcockpit Detail',Updated=TO_TIMESTAMP('2018-01-08 12:43:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540395 ; -- 2018-01-08T12:43:40.033 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Help='This window shall be shown not via menu etc, but via a quick action from the material cockpit window.',Updated=TO_TIMESTAMP('2018-01-08 12:43:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540395 ; -- 2018-01-08T12:43:47.955 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET AD_Window_ID=540395, IsDeleteable='N',Updated=TO_TIMESTAMP('2018-01-08 12:43:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540893 ; -- 2018-01-08T12:43:54.516 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET IsInsertRecord='N',Updated=TO_TIMESTAMP('2018-01-08 12:43:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540981 ; -- 2018-01-08T12:43:57.108 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-08 12:43:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540981 ; -- 2018-01-08T12:44:54.888 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Name='MD_Cockpit',Updated=TO_TIMESTAMP('2018-01-08 12:44:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540863 ; -- 2018-01-08T12:46:04.757 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,IsUseBPartnerLanguage,LockWaitTimeout,Name,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('7',0,0,540910,'Y','de.metas.ui.web.material.cockpit.process.MD_Cockpit_DocumentDetail_Display','N',TO_TIMESTAMP('2018-01-08 12:46:04','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.material.cockpit','Y','N','N','N','N','N','N','Y',0,'Belegdetails','N','Y','Java',TO_TIMESTAMP('2018-01-08 12:46:04','YYYY-MM-DD HH24:MI:SS'),100,'MD_Cockpit_DocumentDetail_Display') ; -- 2018-01-08T12:46:04.759 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=540910 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID) ; -- 2018-01-08T12:47:53.039 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,540910,540863,TO_TIMESTAMP('2018-01-08 12:47:53','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.material.cockpit','Y',TO_TIMESTAMP('2018-01-08 12:47:53','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y') ; -- 2018-01-08T13:59:27.824 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=187, ColumnName='C_BPartner_ID', Description='Bezeichnet einen Geschäftspartner', Help='Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.', Name='Geschäftspartner',Updated=TO_TIMESTAMP('2018-01-08 13:59:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558515 ; -- 2018-01-08T13:59:27.826 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Geschäftspartner', Description='Bezeichnet einen Geschäftspartner', Help='Ein Geschäftspartner ist jemand, mit dem Sie interagieren. Dies kann Lieferanten, Kunden, Mitarbeiter oder Handelsvertreter umfassen.' WHERE AD_Column_ID=558515 ; -- 2018-01-08T13:59:31.841 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN C_BPartner_ID NUMERIC(10)') ; -- 2018-01-08T14:00:05.298 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET DDL_NoForeignKey='Y',Updated=TO_TIMESTAMP('2018-01-08 14:00:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558515 ; CREATE INDEX IF NOT EXISTS MD_Cockpit_DocumentDetail_MD_Cockpit_ID ON public.MD_Cockpit_DocumentDetail USING btree (MD_Cockpit_ID); -- 2018-01-08T15:59:07.851 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558516,500221,0,30,540893,'N','M_ShipmentSchedule_ID',TO_TIMESTAMP('2018-01-08 15:59:07','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.material.cockpit',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Lieferdisposition',0,0,TO_TIMESTAMP('2018-01-08 15:59:07','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-08T15:59:07.853 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558516 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2018-01-08T15:59:14.048 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN M_ShipmentSchedule_ID NUMERIC(10)') ; -- 2018-01-08T15:59:32.733 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558517,542202,0,30,540893,'N','M_ReceiptSchedule_ID',TO_TIMESTAMP('2018-01-08 15:59:32','YYYY-MM-DD HH24:MI:SS'),100,'Y','de.metas.material.cockpit',10,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Wareneingangsdisposition',0,0,TO_TIMESTAMP('2018-01-08 15:59:32','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-08T15:59:32.735 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558517 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2018-01-08T15:59:36.435 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN M_ReceiptSchedule_ID NUMERIC(10)') ; DROP TABLE IF EXISTS MD_Cockpit_DocumentDetail; -- 2018-01-08T17:18:31.934 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='MD_Cockpit_DocumentDetail_ID', Name='DocumentDetail', PrintName='DocumentDetail',Updated=TO_TIMESTAMP('2018-01-08 17:18:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=543743 ; -- 2018-01-08T17:18:31.935 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnName='MD_Cockpit_DocumentDetail_ID', Name='DocumentDetail', Description=NULL, Help=NULL WHERE AD_Element_ID=543743 ; -- 2018-01-08T17:18:31.948 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='MD_Cockpit_DocumentDetail_ID', Name='DocumentDetail', Description=NULL, Help=NULL, AD_Element_ID=543743 WHERE UPPER(ColumnName)='MD_COCKPIT_DOCUMENTDETAIL_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2018-01-08T17:18:31.949 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process_Para SET ColumnName='MD_Cockpit_DocumentDetail_ID', Name='DocumentDetail', Description=NULL, Help=NULL WHERE AD_Element_ID=543743 AND IsCentrallyMaintained='Y' ; -- 2018-01-08T17:18:31.950 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='DocumentDetail', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=543743) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 543743) ; -- 2018-01-08T17:18:31.971 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_PrintFormatItem pi SET PrintName='DocumentDetail', Name='DocumentDetail' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=543743) ; -- 2018-01-08T17:19:03.777 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ CREATE TABLE public.MD_Cockpit_DocumentDetail (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, C_BPartner_ID NUMERIC(10), C_Flatrate_Term_ID NUMERIC(10), C_Order_ID NUMERIC(10), C_OrderLine_ID NUMERIC(10), Created TIMESTAMP WITH TIME ZONE NOT NULL, CreatedBy NUMERIC(10) NOT NULL, C_SubscriptionProgress_ID NUMERIC(10), IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL, MD_Cockpit_DocumentDetail_ID NUMERIC(10) NOT NULL, MD_Cockpit_ID NUMERIC(10) NOT NULL, M_ReceiptSchedule_ID NUMERIC(10), M_ShipmentSchedule_ID NUMERIC(10), Updated TIMESTAMP WITH TIME ZONE NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT MD_Cockpit_DocumentDetail_Key PRIMARY KEY (MD_Cockpit_DocumentDetail_ID), CONSTRAINT MDCockpit_MDCockpitDocumentDet FOREIGN KEY (MD_Cockpit_ID) REFERENCES public.MD_Cockpit DEFERRABLE INITIALLY DEFERRED) ; CREATE SEQUENCE public.MD_Cockpit_DocumentDetail_seq INCREMENT 1 MINVALUE 0 MAXVALUE 2147483647 START 1000000 CACHE 1; -- 2018-01-08T17:29:19.065 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558518,526,0,29,540893,'N','Qty',TO_TIMESTAMP('2018-01-08 17:29:18','YYYY-MM-DD HH24:MI:SS'),100,'N','Menge','de.metas.material.cockpit',10,'Menge bezeichnet die Anzahl eines bestimmten Produktes oder Artikels für dieses Dokument.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Menge',0,0,TO_TIMESTAMP('2018-01-08 17:29:18','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-08T17:29:19.067 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558518 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2018-01-08T17:40:32.732 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=531, ColumnName='QtyOrdered', Description='Bestellte Menge', Help='Die "Bestellte Menge" bezeichnet die Menge einer Ware, die bestellt wurde.', Name='Bestellte Menge',Updated=TO_TIMESTAMP('2018-01-08 17:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:40:32.733 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Bestellte Menge', Description='Bestellte Menge', Help='Die "Bestellte Menge" bezeichnet die Menge einer Ware, die bestellt wurde.' WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:40:54.900 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET Name='Bestellte/Beauftragte Menge',Updated=TO_TIMESTAMP('2018-01-08 17:40:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:40:54.901 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Bestellte/Beauftragte Menge', Description='Bestellte Menge', Help='Die "Bestellte Menge" bezeichnet die Menge einer Ware, die bestellt wurde.' WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:41:01.398 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET Name='Bestellte Menge',Updated=TO_TIMESTAMP('2018-01-08 17:41:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:41:01.400 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Bestellte Menge', Description='Bestellte Menge', Help='Die "Bestellte Menge" bezeichnet die Menge einer Ware, die bestellt wurde.' WHERE AD_Column_ID=558518 ; -- 2018-01-08T17:41:04.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN QtyOrdered NUMERIC') ; -- 2018-01-08T17:41:15.634 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsRangeFilter,IsSelectionColumn,IsShowFilterIncrementButtons,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,558519,532,0,29,540893,'N','QtyReserved',TO_TIMESTAMP('2018-01-08 17:41:15','YYYY-MM-DD HH24:MI:SS'),100,'N','Reservierte Menge','de.metas.material.cockpit',10,'Die "Reservierte Menge" bezeichnet die Menge einer Ware, die zur Zeit reserviert ist.','Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N','Reservierte Menge',0,0,TO_TIMESTAMP('2018-01-08 17:41:15','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2018-01-08T17:41:15.636 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=558519 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2018-01-08T17:41:18.625 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ SELECT public.db_alter_table('MD_Cockpit_DocumentDetail','ALTER TABLE public.MD_Cockpit_DocumentDetail ADD COLUMN QtyReserved NUMERIC') ; -- 2018-01-09T07:19:06.589 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,558518,561321,0,540981,0,TO_TIMESTAMP('2018-01-09 07:19:06','YYYY-MM-DD HH24:MI:SS'),100,'Bestellte Menge',0,'de.metas.material.cockpit','Die "Bestellte Menge" bezeichnet die Menge einer Ware, die bestellt wurde.',0,'Y','Y','Y','N','N','N','N','N','Bestellte Menge',10,10,0,1,1,TO_TIMESTAMP('2018-01-09 07:19:06','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-09T07:19:06.591 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561321 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-09T07:19:24.204 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,558519,561322,0,540981,0,TO_TIMESTAMP('2018-01-09 07:19:24','YYYY-MM-DD HH24:MI:SS'),100,'Reservierte Menge',0,'de.metas.material.cockpit','Die "Reservierte Menge" bezeichnet die Menge einer Ware, die zur Zeit reserviert ist.',0,'Y','Y','Y','N','N','N','N','N','Reservierte Menge',20,20,0,1,1,TO_TIMESTAMP('2018-01-09 07:19:24','YYYY-MM-DD HH24:MI:SS'),100) ; -- 2018-01-09T07:19:24.206 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=561322 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) ; -- 2018-01-09T08:42:49.947 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='Y', IsSelectionColumn='Y', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-09 08:42:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558515 ; -- 2018-01-09T08:42:59.365 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='N',Updated=TO_TIMESTAMP('2018-01-09 08:42:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558515 ; -- 2018-01-09T08:43:29.805 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2018-01-09 08:43:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561312 ; -- 2018-01-09T08:43:44.214 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2018-01-09 08:43:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561316 ; -- 2018-01-09T08:54:07.965 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561321 ; -- 2018-01-09T08:54:08.365 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561322 ; -- 2018-01-09T08:54:08.908 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561314 ; -- 2018-01-09T08:54:09.387 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561315 ; -- 2018-01-09T08:54:09.755 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561310 ; -- 2018-01-09T08:54:10.147 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561311 ; -- 2018-01-09T08:54:10.635 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561317 ; -- 2018-01-09T08:54:11.003 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561318 ; -- 2018-01-09T08:54:11.412 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561319 ; -- 2018-01-09T08:54:11.797 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561316 ; -- 2018-01-09T08:54:12.196 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561312 ; -- 2018-01-09T08:54:13.294 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2018-01-09 08:54:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=561313 ; -- 2018-01-09T09:55:21.881 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsUpdateable='N',Updated=TO_TIMESTAMP('2018-01-09 09:55:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558518 ; -- 2018-01-09T09:55:25.050 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsUpdateable='N',Updated=TO_TIMESTAMP('2018-01-09 09:55:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558519 ; -- 2018-01-09T09:57:54.908 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='Y', IsUpdateable='N', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-09 09:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558506 ; -- 2018-01-09T09:58:05.468 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='Y', IsUpdateable='N', SeqNo=20,Updated=TO_TIMESTAMP('2018-01-09 09:58:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=558511 ; -- 2018-01-09T10:01:04.466 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsIdentifier='Y', IsUpdateable='N', SeqNo=10,Updated=TO_TIMESTAMP('2018-01-09 10:01:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=557949 ;
<gh_stars>0 -- Adminer 4.7.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpApp`$$ CREATE PROCEDURE `ezpApp`( IN `app` VARCHAR(64) CHARSET ascii ) BEGIN SELECT SUM(`ezp_estimate`.`hours`) AS `Total_Estimated` ,ROUND(SUM(`ezp_estimate`.`hours`*(100-`ezp_component`.`progress_pct`)/100),1) AS `Total_Remaining` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package` LIKE CONCAT(app,'-%') ; SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,`ezp_component`.`handle` ,`ezp_component`.`devtype` ,`ezp_difficulty`.`difficulty` AS `Difficulty_Level` ,`ezp_estimate`.`hours` AS `Estimated_Hours` ,ROUND(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100),1) AS `Hours_Remaining` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package` LIKE CONCAT(app,'-%') ORDER BY `ezp_component`.`devtype`,`ezp_component`.`package`,`ezp_component`.`handle` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpJobs`$$ CREATE PROCEDURE `ezpJobs`( IN `developer` VARCHAR(64) CHARSET ascii ) BEGIN SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,`ezp_component`.`handle` ,`ezp_component`.`devtype` ,`ezp_difficulty`.`difficulty` AS `Difficulty_Level` ,`ezp_estimate`.`hours` AS `Estimated_Hours` ,ROUND(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100),1) AS `Hours_Remaining` ,`ezp_component`.`required_by` ,`ezp_component`.`notes` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`developer`=developer AND `ezp_component`.`progress_pct`<100 ORDER BY `ezp_component`.`required_by` IS NULL,`ezp_component`.`required_by` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpPackage`$$ CREATE PROCEDURE `ezpPackage`( IN `pkg` VARCHAR(64) CHARSET ascii ) BEGIN SELECT SUM(`ezp_estimate`.`hours`) AS `Total_Estimated` ,ROUND(SUM(`ezp_estimate`.`hours`*(100-`ezp_component`.`progress_pct`)/100),1) AS `Total_Remaining` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package`=pkg ; SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,`ezp_component`.`handle` ,`ezp_component`.`devtype` ,`ezp_difficulty`.`difficulty` AS `Difficulty_Level` ,`ezp_estimate`.`hours` AS `Estimated_Hours` ,ROUND(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100),1) AS `Hours_Remaining` ,`ezp_component`.`notes` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package`=pkg ORDER BY `ezp_component`.`devtype`,`ezp_component`.`handle` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpSummary`$$ CREATE PROCEDURE `ezpSummary`( ) BEGIN SELECT SUM(`ezp_estimate`.`hours`) AS `Total_Estimated` ,ROUND(SUM(`ezp_estimate`.`hours`*(100-`ezp_component`.`progress_pct`)/100),1) AS `Total_Remaining` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE 1 ; SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,SUM(`ezp_estimate`.`hours`) AS `Estimated_Hours` ,ROUND(SUM(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100)),1) AS `Hours_Remaining` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE 1 GROUP BY `ezp_component`.`package` ORDER BY `ezp_component`.`package` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpTimesheet`$$ CREATE PROCEDURE `ezpTimesheet`( IN `yearEndDateOrEmptyForAll` date ,IN `monthOrEmptyForAll` char(7) charset ascii ,IN `weekEndedSundayOrEmptyForAll` date ,IN `developerOrEmptyForAll` varchar(64) charset ascii ,IN `projectOrEmptyForAll` varchar(64) charset ascii ,IN `projectStartsWithOrEmptyForAll` varchar(64) charset ascii ) BEGIN SELECT CONCAT('Results restricted to those after ',ezpConfig('timeSheetLimitToAfter'),' where data is complete') AS `Notice:` UNION SELECT 'To include earlier results, use ezpTimesheetUnrestricted()' ; SELECT CONCAT(SUM(`hours`),' hours') AS `grand_total` FROM `ezp_timesheet` WHERE `day`>ezpConfig('timeSheetLimitToAfter') AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) ; SELECT SUM(`hours`) AS `total_hours` ,`developer` ,`project` FROM `ezp_timesheet` WHERE `day`>ezpConfig('timeSheetLimitToAfter') AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) GROUP BY `project`,`developer` ORDER BY `project`,`developer` ; SELECT `id` ,`day` ,DAYNAME(`day`) AS `dow` ,`hours` ,`developer` ,`project` ,`comment` ,`vendor` ,`package` ,`handle` FROM `ezp_timesheet` WHERE `day`>ezpConfig('timeSheetLimitToAfter') AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) ORDER BY `day`,`project`,`developer`,`id` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpTimesheetUnrestricted`$$ CREATE PROCEDURE `ezpTimesheetUnrestricted`( IN `yearEndDateOrEmptyForAll` date ,IN `monthOrEmptyForAll` char(7) charset ascii ,IN `weekEndedSundayOrEmptyForAll` date ,IN `developerOrEmptyForAll` varchar(64) charset ascii ,IN `projectStartsWithOrEmptyForAll` varchar(64) charset ascii ) BEGIN SELECT CONCAT('Unrestricted results are incomplete up to and including ',ezpConfig('timeSheetLimitToAfter')) AS `Notice:` ; SELECT CONCAT(SUM(`hours`),' hours') AS `grand_total` FROM `ezp_timesheet` WHERE 1 AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) ; SELECT SUM(`hours`) AS `total_hours` ,`developer` ,`project` FROM `ezp_timesheet` WHERE 1 AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) GROUP BY `project`,`developer` ORDER BY `project`,`developer` ; SELECT `id` ,`day` ,DAYNAME(`day`) AS `dow` ,`hours` ,`developer` ,`project` ,`comment` ,`vendor` ,`package` ,`handle` FROM `ezp_timesheet` WHERE 1 AND ( yearEndDateOrEmptyForAll IS NULL OR yearEndDateOrEmptyForAll='' OR yearEndDateOrEmptyForAll='0000-00-00' OR ( `day`>DATE_SUB(yearEndDateOrEmptyForAll,INTERVAL 1 YEAR) AND `day`<=yearEndDateOrEmptyForAll ) ) AND ( monthOrEmptyForAll IS NULL OR monthOrEmptyForAll='' OR monthOrEmptyForAll='0000-00' OR `day` LIKE CONCAT(monthOrEmptyForAll,'-__') ) AND ( weekEndedSundayOrEmptyForAll IS NULL OR weekEndedSundayOrEmptyForAll='' OR weekEndedSundayOrEmptyForAll='0000-00-00' OR ( DAYOFWEEK(weekEndedSundayOrEmptyForAll)=1 AND `day`>DATE_SUB(weekEndedSundayOrEmptyForAll,INTERVAL 1 WEEK) AND `day`<=weekEndedSundayOrEmptyForAll ) ) AND ( projectOrEmptyForAll IS NULL OR projectOrEmptyForAll='' OR `project`=projectOrEmptyForAll ) AND ( projectStartsWithOrEmptyForAll IS NULL OR projectStartsWithOrEmptyForAll='' OR `project` LIKE CONCAT(projectStartsWithOrEmptyForAll,'%') ) AND ( developerOrEmptyForAll IS NULL OR developerOrEmptyForAll='' OR `developer`=developerOrEmptyForAll ) ORDER BY `day`,`project`,`developer`,`id` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpUnassigned`$$ CREATE PROCEDURE `ezpUnassigned`( IN `app` VARCHAR(64) CHARSET ascii ) BEGIN SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,`ezp_component`.`handle` ,`ezp_component`.`devtype` ,`ezp_difficulty`.`difficulty` AS `Difficulty_Level` ,`ezp_estimate`.`hours` AS `Estimated_Hours` ,ROUND(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100),1) AS `Hours_Remaining` ,`ezp_component`.`required_by` ,`ezp_component`.`notes` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package` LIKE CONCAT(app,'-%') AND `ezp_component`.`developer` IS NULL ORDER BY `ezp_component`.`devtype`,`ezp_component`.`handle` ; END$$ DELIMITER $$ DROP PROCEDURE IF EXISTS `ezpUnscheduled`$$ CREATE PROCEDURE `ezpUnscheduled`( IN `app` VARCHAR(64) CHARSET ascii ) BEGIN SELECT `ezp_component`.`vendor` ,`ezp_component`.`package` ,`ezp_component`.`handle` ,`ezp_component`.`devtype` ,`ezp_difficulty`.`difficulty` AS `Difficulty_Level` ,`ezp_estimate`.`hours` AS `Estimated_Hours` ,ROUND(`ezp_estimate`.`hours`*((100-`ezp_component`.`progress_pct`)/100),1) AS `Hours_Remaining` ,`ezp_component`.`developer` ,`ezp_component`.`notes` FROM `ezp_component` JOIN `ezp_difficulty` ON `ezp_difficulty`.`difficulty`=`ezp_component`.`difficulty` JOIN `ezp_estimate` ON `ezp_estimate`.`difficulty`=`ezp_difficulty`.`difficulty` AND `ezp_estimate`.`devtype`=`ezp_component`.`devtype` WHERE `ezp_component`.`package` LIKE CONCAT(app,'-%') AND `ezp_component`.`required_by` IS NULL ORDER BY `ezp_component`.`devtype`,`ezp_component`.`handle` ; END$$ DELIMITER ; -- 2020-01-02 17:09:09
<filename>integration_tests/models/generic_tests/test_equal_rowcount.sql with data as (select * from {{ ref("data_test_equal_rowcount") }}) select field from data
<filename>database/mkcms.sql # Host: 127.0.0.1:33060 (Version 5.7.22-0ubuntu18.04.1) # Date: 2019-03-20 11:44:07 # Generator: MySQL-Front 6.1 (Build 1.26) # # Structure for table "mkcms_category" # CREATE TABLE `mkcms_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL DEFAULT '' COMMENT '分类名称', `subtitle` varchar(255) NOT NULL DEFAULT '' COMMENT '副标题', `siteid` int(11) DEFAULT '1' COMMENT '站点id', `pid` int(11) NOT NULL DEFAULT '0' COMMENT '上级分类', `mid` int(11) NOT NULL COMMENT '所属模型', `pic` varchar(255) NOT NULL DEFAULT '' COMMENT '封面照片', `seo_title` varchar(255) NOT NULL DEFAULT '' COMMENT 'SEO标题', `seo_keywords` varchar(255) NOT NULL DEFAULT '' COMMENT 'SEO关键词', `seo_description` varchar(512) NOT NULL DEFAULT '' COMMENT 'SEO描述', `jumpurl` varchar(255) NOT NULL DEFAULT '' COMMENT '外部链接', `tpl_cover` varchar(128) NOT NULL DEFAULT '' COMMENT '封面模版', `tpl_list` varchar(128) NOT NULL DEFAULT '' COMMENT '列表模版', `tpl_show` varchar(128) NOT NULL DEFAULT '' COMMENT '内容模版', `sort` int(6) NOT NULL DEFAULT '9' COMMENT '排序', `status` int(1) NOT NULL DEFAULT '1' COMMENT '0不显示 1显示', `target` int(1) NOT NULL DEFAULT '0' COMMENT '0当前 1新窗口', `nav` int(1) NOT NULL DEFAULT '0' COMMENT '0不显示 1主导航 2尾导航 3都显示', `description` text COMMENT '栏目简介', `content` text COMMENT '栏目内容', `type` int(1) NOT NULL DEFAULT '0' COMMENT '栏目类型:0列表 1频道', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8 COMMENT='内容栏目'; # # Data for table "mkcms_category" # INSERT INTO `mkcms_category` VALUES (20,'关于我们','ABOUT US',1,0,37,'/uploads/image/20170929/9c945b7db7641940eeb9ac0f9e9b303a.jpg','','','','','','list_page.html','',1,1,1,1,'<p>1创立于2000年, 经过多年的不懈努力,公司现已经成为一家专业从事IT产品开发、生产和销售的高科技企业。公司成立几年来,一直致力于工控/服务器机箱及各种非标箱体的开发与生产,产品现广泛应用于计算机网络、监控、安防、广电、通讯和仪器设备等多种行业</p>','<p>深圳市**科技有限公司位于美百度丽富饶的中国广东省深圳市松岗溪头工业区,主要从事精密模具开发及制造,专业冲压精密五金电子电器零配件等.产品已通过ISO--9001:2000国际标准品质体系认证,以满足各种客户的多层次需求,全体职员本着“以人为本,以质取胜,持续改进,永续经营”的企业生产理念,产品直销日本,美国,欧洲及东南亚其它国家。我们承诺:为客户提供价格合理,质量优良的产品及服务,以期提高市场的竞争力,成为你最值得信赖的供应商。主要产品:机箱,机蕊,汽车音箱,传真机,打印机,复印机,手机,摄像头,',1),(21,'产品展示','',1,0,34,'','','','','','','list_product.html','show_product.html',2,1,0,1,'<p>某某有限公司位于美丽富饶的中国广东省深圳市松岗溪头工业区,主要从事精密模具开发及制造,专业冲压精密五金电子电器零配件等.产品已通过ISO--9001:2000国际标准品质体系认证,以满足各种客户的多层次需求,全体职员本着“以人为本,以质取胜,持续改进,永续经营”的企业生产理念,产品直销日本,美国,欧洲及东南亚其它国家。我们承诺:为客户提供价格合理,质量优良的产品及服务,以期提高市场的竞争力,成为你最值得信赖的供应商。主要产品:机箱,机蕊,汽车音箱,传真机,打印机,复印机,手机,摄像头,外壳及配件,各','',1),(22,'建筑装饰五金','',1,21,40,'','','','','','','list_product_diy.html','show_product.html',1,1,0,0,'<p>建筑五金建筑物或构筑物中装用的金属和非金属制品、配件的总称。一般具有实用和装饰双重效果。</p>','',0),(24,'手动工具','',1,21,34,'','','','','','','list_product.html','show_product.html',3,1,0,0,'','',0),(27,'其他五金','',1,21,34,'','','','','','','list_product.html','show_product.html',6,1,0,0,'','',0),(35,'建筑五金','',1,22,40,'','','','','','','list_product_diy.html','show_product.html',0,1,0,0,'<p>建筑五金建筑物或构筑物中装用的金属和非金属制品、配件的总称。一般具有实用和装饰双重效果。</p>','',0),(36,'装饰五金','',1,22,40,'','','','','','','list_product_diy.html','show_product.html',0,1,0,0,'','',0),(68,'更多分站','',1,0,37,'','','','','','','list_map.html','',0,1,0,0,'','',1),(73,'在线留言','',1,0,37,'','测试11在线留言SEO标题','测试22在线留言SEO关键词','测试33在线留言SEO描述','','','list_page_book.html','',0,1,0,0,'','',1),(83,'测试栏目','测试栏目',1,28,41,'/uploads/image/20170929/981f6de833848af6d8cb62f6d744e3af.jpg','','','','','','list_picture.html','show_product.html',0,1,0,1,'<p>测试栏目</p>','<p>测试栏目</p>',0),(86,'测试产品栏目','测试产品栏目',1,21,2,'20190314/af917a9586c1e8c1250223291fecfcc3.jpg','测试产品栏目','测试产品栏目','测试产品栏目','','','','',50,1,0,0,NULL,NULL,0),(87,'新闻','行业新闻',1,0,0,'20190314/a18c5b7dff4ce0ebae861d19964e84d6.jpg','行业新闻','','','','','','',50,0,0,0,NULL,NULL,0),(88,'测试栏目','测试栏目',1,0,0,'20190314/9bcadc12da06efb423ae362e77d3402a.jpg','测试栏目','','','','','','',6,1,0,0,NULL,NULL,0); # # Structure for table "mkcms_content" # CREATE TABLE `mkcms_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) NOT NULL DEFAULT '0' COMMENT '栏目ID', `mid` int(11) NOT NULL COMMENT '所属模型ID', `content_id` int(11) NOT NULL COMMENT '所属模型内容ID', `siteid` int(11) NOT NULL DEFAULT '1' COMMENT '站点id', `title` varchar(200) NOT NULL DEFAULT '' COMMENT '内容标题', `etitle` varchar(255) NOT NULL DEFAULT '' COMMENT '内容副标题', `jumpurl` varchar(255) NOT NULL DEFAULT '' COMMENT '外部链接', `pic` varchar(255) NOT NULL DEFAULT '' COMMENT '缩略图', `description` text NOT NULL COMMENT '内容简介', `seo_title` varchar(255) NOT NULL DEFAULT '' COMMENT 'SEO标题', `seo_keywords` varchar(255) NOT NULL DEFAULT '' COMMENT 'SEO关键词', `seo_description` varchar(512) NOT NULL DEFAULT '' COMMENT 'SEO描述', `sort` int(6) NOT NULL DEFAULT '9' COMMENT '排序', `status` int(1) NOT NULL DEFAULT '0' COMMENT '0未发布 1发布', `istop` int(1) NOT NULL DEFAULT '0' COMMENT '头条 0不推荐 1推荐', `tag` varchar(255) NOT NULL DEFAULT '' COMMENT '标签', `clicks` int(9) NOT NULL DEFAULT '0' COMMENT '点击次数', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='内容主表'; # # Data for table "mkcms_content" # # # Structure for table "mkcms_field" # CREATE TABLE `mkcms_field` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mid` int(11) NOT NULL COMMENT '所属模型ID', `siteid` int(11) NOT NULL DEFAULT '1' COMMENT '站点id', `title` varchar(60) NOT NULL DEFAULT '' COMMENT '字段名称', `field` varchar(30) NOT NULL DEFAULT '' COMMENT '字段', `values` text COMMENT '字段可选值', `class` varchar(20) DEFAULT NULL COMMENT '字段类型', `default_value` varchar(255) DEFAULT NULL COMMENT '默认值', `isrequire` int(1) NOT NULL DEFAULT '0' COMMENT '0非必填 1必填', `type` int(1) NOT NULL DEFAULT '1' COMMENT '1用户字段 2系统字段', `maxlength` int(3) NOT NULL COMMENT '字段长度', `sort` int(6) NOT NULL DEFAULT '9' COMMENT '排序', `remark` varchar(255) NOT NULL DEFAULT '0' COMMENT '提示', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='模型字段表'; # # Data for table "mkcms_field" # # # Structure for table "mkcms_form_article" # CREATE TABLE `mkcms_form_article` ( `id` int(10) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "mkcms_form_article" # # # Structure for table "mkcms_form_image" # CREATE TABLE `mkcms_form_image` ( `id` int(10) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "mkcms_form_image" # # # Structure for table "mkcms_form_page" # CREATE TABLE `mkcms_form_page` ( `id` int(10) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "mkcms_form_page" # # # Structure for table "mkcms_form_product" # CREATE TABLE `mkcms_form_product` ( `id` int(10) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "mkcms_form_product" # # # Structure for table "mkcms_migrations" # CREATE TABLE `mkcms_migrations` ( `version` bigint(20) NOT NULL, `migration_name` varchar(100) DEFAULT NULL, `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `breakpoint` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "mkcms_migrations" # INSERT INTO `mkcms_migrations` VALUES (20180928122842,'Rbac','2019-03-07 16:04:38','2019-03-07 16:04:38',0),(20190226053124,'Users','2019-03-07 16:04:38','2019-03-07 16:04:38',0),(20190226055910,'Log','2019-03-07 16:04:38','2019-03-07 16:04:38',0),(20190312003748,'Category','2019-03-12 10:02:01','2019-03-12 10:02:01',0),(20190312030116,'RoleHasCategories','2019-03-12 11:08:19','2019-03-12 11:08:19',0),(20190312055914,'Sites','2019-03-12 14:36:26','2019-03-12 14:36:26',0),(20190315010253,'Models','2019-03-15 11:04:54','2019-03-15 11:04:55',0),(20190315021702,'Contents','2019-03-15 11:10:18','2019-03-15 11:10:18',0),(20190319004723,'Fields','2019-03-19 09:25:49','2019-03-19 09:25:49',0); # # Structure for table "mkcms_model" # CREATE TABLE `mkcms_model` ( `id` int(11) NOT NULL AUTO_INCREMENT, `siteid` int(11) NOT NULL DEFAULT '0' COMMENT '站点id', `title` varchar(60) NOT NULL DEFAULT '' COMMENT '模型名称', `table_name` varchar(50) NOT NULL DEFAULT '' COMMENT '表名称', `description` varchar(255) NOT NULL DEFAULT '' COMMENT '简介', `type` int(1) NOT NULL DEFAULT '1' COMMENT '类别 1用户模型 2系统模型', `sort` int(6) NOT NULL DEFAULT '9' COMMENT '排序', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='模型表'; # # Data for table "mkcms_model" # INSERT INTO `mkcms_model` VALUES (1,1,'文章模型','article','文章模型',1,2),(2,1,'产品模型','product','产品模型',1,2),(3,1,'图片模型','image','图片模型',1,3),(4,1,'单页模型','page','空模型',1,3),(5,2,'文章模型','article_en','文章模型',1,2),(6,2,'产品模型','product_en','产品模型',1,2),(7,2,'图片模型','image_en','图片模型',1,3),(8,2,'单页模型','page_en','空模型',1,3); # # Structure for table "mkcms_option_log" # CREATE TABLE `mkcms_option_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', `user_id` int(11) NOT NULL COMMENT '用户ID', `module` varchar(20) NOT NULL DEFAULT '' COMMENT '模块', `controller` varchar(20) NOT NULL DEFAULT '' COMMENT '控制器', `action` varchar(20) NOT NULL DEFAULT '' COMMENT '方法', `option` varchar(50) NOT NULL DEFAULT '' COMMENT '操作', `method` varchar(15) NOT NULL DEFAULT '' COMMENT '请求方法', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4012 DEFAULT CHARSET=utf8 COMMENT='操作日志表'; # # Data for table "mkcms_option_log" # INSERT INTO `mkcms_option_log` VALUES (1,'admin',1,'admin','User','index','用户管理','GET','2019-03-07 08:18:53'),(2,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:18:53'),(3,'admin',1,'admin','User','create','创建用户','GET','2019-03-07 08:18:57'),(4,'admin',1,'admin','User','create','创建用户','POST','2019-03-07 08:19:14'),(5,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:19:14'),(6,'admin',1,'admin','User','index','用户管理','GET','2019-03-07 08:19:18'),(7,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:19:18'),(8,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-07 08:19:20'),(9,'admin',1,'admin','User','edit','编辑用户','POST','2019-03-07 08:19:32'),(10,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:19:32'),(11,'admin',1,'admin','User','create','创建用户','GET','2019-03-07 08:19:34'),(12,'admin',1,'admin','User','create','创建用户','POST','2019-03-07 08:19:49'),(13,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:19:49'),(14,'admin',1,'admin','User','delete','删除用户','POST','2019-03-07 08:19:55'),(15,'admin',1,'admin','User','index','用户管理','GET','2019-03-07 08:19:59'),(16,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:19:59'),(17,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:03'),(18,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:10'),(19,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:11'),(20,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:12'),(21,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:12'),(22,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:20:17'),(23,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 08:20:22'),(24,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:20:22'),(25,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 08:20:25'),(26,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:20:25'),(27,'admin',1,'admin','Role','create','创建角色','GET','2019-03-07 08:20:26'),(28,'admin',1,'admin','Role','create','创建角色','POST','2019-03-07 08:20:39'),(29,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:20:39'),(30,'admin',1,'admin','Role','create','创建角色','GET','2019-03-07 08:20:40'),(31,'admin',1,'admin','Role','create','创建角色','POST','2019-03-07 08:20:52'),(32,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:20:52'),(33,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-07 08:20:57'),(34,'admin',1,'admin','Role','edit','编辑角色','POST','2019-03-07 08:21:14'),(35,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:21:15'),(36,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 08:21:40'),(37,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:21:40'),(38,'admin',1,'admin','Role','delete','删除角色','POST','2019-03-07 08:21:43'),(39,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 08:21:45'),(40,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:21:45'),(41,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 08:21:46'),(42,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 08:21:46'),(43,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 08:42:31'),(44,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 08:43:03'),(45,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 08:44:03'),(46,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:44:03'),(47,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 08:45:36'),(48,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 08:45:37'),(49,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:07:46'),(50,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:07:56'),(51,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:11:23'),(52,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:11:39'),(53,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:13:17'),(54,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 09:14:24'),(55,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 09:14:25'),(56,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:15:54'),(57,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 09:45:05'),(58,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 09:45:06'),(59,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:46:43'),(60,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:10'),(61,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:11'),(62,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:12'),(63,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:12'),(64,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:12'),(65,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:12'),(66,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:13'),(67,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:48:17'),(68,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 09:48:23'),(69,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 09:48:23'),(70,'admin',1,'admin','User','index','用户管理','GET','2019-03-07 09:48:28'),(71,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-07 09:48:28'),(72,'admin',1,'admin','User','create','创建用户','GET','2019-03-07 09:48:59'),(73,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:50:08'),(74,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:50:09'),(75,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 09:50:10'),(76,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:07:37'),(77,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:08:38'),(78,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:12:29'),(79,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:12:31'),(80,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:12:32'),(81,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-07 10:14:19'),(82,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:14:31'),(83,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:15'),(84,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:17'),(85,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:17'),(86,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:17'),(87,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:18'),(88,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:18'),(89,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:18'),(90,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:25'),(91,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:16:52'),(92,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:17:56'),(93,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:48'),(94,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:50'),(95,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:55'),(96,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:56'),(97,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:56'),(98,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:21:59'),(99,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:23:13'),(100,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:24:11'),(101,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:25:24'),(102,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:27:55'),(103,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:27:56'),(104,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-07 10:29:32'),(105,'admin',1,'admin','Role','index','角色管理','GET','2019-03-07 10:29:54'),(106,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-07 10:29:54'),(107,'admin',1,'admin','Role','create','创建角色','GET','2019-03-07 10:31:36'),(108,'admin',1,'admin','User','create','创建用户','GET','2019-03-07 10:31:40'),(109,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:11:33'),(110,'admin',1,'admin','User','create','创建用户','GET','2019-03-08 00:11:36'),(111,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:17:25'),(112,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:17:45'),(113,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:18:39'),(114,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:18:40'),(115,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:18:41'),(116,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:19:15'),(117,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:19:50'),(118,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:20:19'),(119,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 00:25:03'),(120,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 00:25:03'),(121,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 00:25:05'),(122,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 00:25:06'),(123,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 00:25:49'),(124,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 00:25:49'),(125,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 00:25:52'),(126,'admin',1,'admin','Role','create','创建角色','GET','2019-03-08 00:25:55'),(127,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 00:25:58'),(128,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 00:25:58'),(129,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-08 00:26:01'),(130,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-08 00:26:04'),(131,'admin',1,'admin','User','create','创建用户','GET','2019-03-08 00:26:08'),(132,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:26:12'),(133,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 00:27:11'),(134,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 00:27:11'),(135,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 00:27:14'),(136,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 00:27:15'),(137,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 00:28:26'),(138,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 00:28:26'),(139,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 00:28:32'),(140,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 00:28:33'),(141,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 00:28:34'),(142,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 00:28:34'),(143,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:15'),(144,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:17'),(145,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:19'),(146,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:20'),(147,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:21'),(148,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:31'),(149,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:40:37'),(150,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:02'),(151,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:03'),(152,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:04'),(153,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:04'),(154,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:05'),(155,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:05'),(156,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:05'),(157,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:06'),(158,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:08'),(159,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:08'),(160,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:08'),(161,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:42:08'),(162,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:44:38'),(163,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:48:43'),(164,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:48:43'),(165,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:49:28'),(166,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:49:28'),(167,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:49:30'),(168,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:49:30'),(169,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:53:58'),(170,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:53:58'),(171,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:54:08'),(172,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:54:09'),(173,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:54:53'),(174,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:55:18'),(175,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:55:30'),(176,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:55:31'),(177,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:55:41'),(178,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:55:41'),(179,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:56:07'),(180,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:56:08'),(181,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:56:09'),(182,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:56:10'),(183,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 00:57:00'),(184,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 00:57:01'),(185,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:02:21'),(186,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:02:23'),(187,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:02:37'),(188,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:02:44'),(189,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:22'),(190,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:23'),(191,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:23'),(192,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:23'),(193,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:24'),(194,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:03:36'),(195,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:04:21'),(196,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:04:21'),(197,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:04:38'),(198,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:04:38'),(199,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:04:59'),(200,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 01:18:36'),(201,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 01:18:36'),(202,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 01:18:41'),(203,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 01:18:41'),(204,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:18:46'),(205,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:18:47'),(206,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:19:46'),(207,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:19:47'),(208,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:23:18'),(209,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:23:19'),(210,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:23:20'),(211,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:23:20'),(212,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:23:21'),(213,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:23:22'),(214,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:23:46'),(215,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:23:46'),(216,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:24:57'),(217,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:24:57'),(218,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:29:18'),(219,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:29:18'),(220,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:29:24'),(221,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:29:25'),(222,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:30:36'),(223,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:30:37'),(224,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:30:41'),(225,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:30:42'),(226,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:30:43'),(227,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:30:43'),(228,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:32:02'),(229,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:32:02'),(230,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:32:06'),(231,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:32:06'),(232,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:32:07'),(233,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:32:07'),(234,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:32:08'),(235,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:32:08'),(236,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:34:52'),(237,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:34:53'),(238,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:35:30'),(239,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:35:30'),(240,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:35:43'),(241,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:35:44'),(242,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:35:57'),(243,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:35:57'),(244,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:36:39'),(245,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:44:04'),(246,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:44:05'),(247,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:44:05'),(248,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:46:58'),(249,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:46:58'),(250,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:46:59'),(251,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:48:44'),(252,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:48:44'),(253,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:48:45'),(254,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:49:31'),(255,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:52:00'),(256,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:52:00'),(257,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:52:01'),(258,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:52:25'),(259,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:52:25'),(260,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:52:26'),(261,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:52:44'),(262,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 01:52:47'),(263,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 01:52:48'),(264,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:52:48'),(265,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 01:53:11'),(266,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:04:28'),(267,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:05:34'),(268,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:06:29'),(269,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:06:29'),(270,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:06:38'),(271,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:06:38'),(272,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:10:34'),(273,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:11:57'),(274,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:11:57'),(275,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:11:58'),(276,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:11:59'),(277,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:12:00'),(278,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:12:44'),(279,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:12:44'),(280,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:12:45'),(281,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:13:06'),(282,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:13:06'),(283,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:13:07'),(284,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:14:01'),(285,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:14:48'),(286,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:15:01'),(287,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:15:01'),(288,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:15:03'),(289,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:15:08'),(290,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:15:08'),(291,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:15:09'),(292,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:15:40'),(293,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:15:40'),(294,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:15:41'),(295,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:18:56'),(296,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:18:56'),(297,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:18:57'),(298,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:19:44'),(299,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:19:45'),(300,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:20:00'),(301,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:23:46'),(302,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:23:47'),(303,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:26:05'),(304,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:27:24'),(305,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:29:07'),(306,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:30:56'),(307,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:30:56'),(308,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:30:57'),(309,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:31:08'),(310,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:31:08'),(311,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:33:26'),(312,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:33:27'),(313,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:33:27'),(314,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:33:33'),(315,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:33:34'),(316,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:34:00'),(317,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:34:43'),(318,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:34:43'),(319,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:35:25'),(320,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:35:25'),(321,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:35:26'),(322,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:36:06'),(323,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:36:52'),(324,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:37:23'),(325,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:37:23'),(326,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:40:38'),(327,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:40:38'),(328,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:40:40'),(329,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:41:07'),(330,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:41:07'),(331,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:44:48'),(332,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:44:49'),(333,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:44:49'),(334,'admin',1,'admin','Role','create','创建角色','GET','2019-03-08 02:45:36'),(335,'admin',1,'admin','User','create','创建用户','GET','2019-03-08 02:45:41'),(336,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-08 02:45:51'),(337,'admin',1,'admin','User','edit','编辑用户','POST','2019-03-08 02:45:54'),(338,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 02:45:54'),(339,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-08 02:45:56'),(340,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 02:48:38'),(341,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 02:48:39'),(342,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:48:43'),(343,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:48:43'),(344,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:48:44'),(345,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:56:36'),(346,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:56:36'),(347,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:56:43'),(348,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:56:43'),(349,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:56:44'),(350,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 02:58:03'),(351,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:58:03'),(352,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 02:58:05'),(353,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 02:59:44'),(354,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 02:59:45'),(355,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:01:37'),(356,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:05:54'),(357,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:05:54'),(358,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:05:56'),(359,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:07:14'),(360,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:07:14'),(361,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:07:16'),(362,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:07:26'),(363,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:07:26'),(364,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 03:07:27'),(365,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:07:30'),(366,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:09:52'),(367,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:11:51'),(368,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:11:51'),(369,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:11:52'),(370,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:12:47'),(371,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:12:55'),(372,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:13:39'),(373,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:15:02'),(374,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:15:20'),(375,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:15:34'),(376,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:18:34'),(377,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:18:37'),(378,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:18:37'),(379,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:18:38'),(380,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:18:59'),(381,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:18:59'),(382,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:19:01'),(383,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:20:12'),(384,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:20:13'),(385,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:20:14'),(386,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:20:38'),(387,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:20:38'),(388,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:20:40'),(389,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:20:50'),(390,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:20:58'),(391,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:21:07'),(392,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:21:11'),(393,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:21:19'),(394,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:21:26'),(395,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:21:38'),(396,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:22:38'),(397,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:22:45'),(398,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:22:55'),(399,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:23:15'),(400,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:23:19'),(401,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:24:14'),(402,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:24:14'),(403,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:24:16'),(404,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:24:21'),(405,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:24:31'),(406,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:24:38'),(407,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:27:54'),(408,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:27:54'),(409,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:27:56'),(410,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:28:10'),(411,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:28:10'),(412,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:28:12'),(413,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:28:18'),(414,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:28:18'),(415,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:28:21'),(416,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:28:32'),(417,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:28:53'),(418,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:29:30'),(419,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:31:09'),(420,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:31:09'),(421,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:31:15'),(422,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:19'),(423,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:31:19'),(424,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:31:23'),(425,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:38'),(426,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:40'),(427,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:41'),(428,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:41'),(429,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:41'),(430,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:42'),(431,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:42'),(432,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:42'),(433,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:42'),(434,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:42'),(435,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:43'),(436,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:43'),(437,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:43'),(438,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:31:52'),(439,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:33:02'),(440,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:33:04'),(441,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:34:14'),(442,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:34:21'),(443,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:34:21'),(444,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:34:22'),(445,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:34:22'),(446,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:34:22'),(447,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:34:22'),(448,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:34:22'),(449,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:34:23'),(450,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:34:23'),(451,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 03:34:23'),(452,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:34:28'),(453,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:34:30'),(454,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:34:30'),(455,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:35:32'),(456,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:35:32'),(457,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:35:37'),(458,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:35:39'),(459,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:35:39'),(460,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:37:01'),(461,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:37:02'),(462,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:37:05'),(463,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:37:19'),(464,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:37:19'),(465,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:37:34'),(466,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:37:34'),(467,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:37:36'),(468,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:37:44'),(469,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:37:44'),(470,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:37:47'),(471,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 03:37:51'),(472,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:37:51'),(473,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:38:13'),(474,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:38:14'),(475,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:33'),(476,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:34'),(477,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:35'),(478,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:35'),(479,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:36'),(480,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:37'),(481,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:37'),(482,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:37'),(483,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:55'),(484,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:56'),(485,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:39:57'),(486,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:39:57'),(487,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:41:46'),(488,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:41:46'),(489,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:42:36'),(490,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:42:37'),(491,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:42:38'),(492,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:42:38'),(493,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:49:39'),(494,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:49:43'),(495,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-08 03:50:47'),(496,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 03:50:49'),(497,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 03:50:49'),(498,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 03:50:58'),(499,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:32:01'),(500,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:32:02'),(501,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:32:57'),(502,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:00'),(503,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:33:01'),(504,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:33:03'),(505,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:06'),(506,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:07'),(507,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:08'),(508,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:09'),(509,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:09'),(510,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:09'),(511,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:14'),(512,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:14'),(513,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:15'),(514,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:22'),(515,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:27'),(516,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:30'),(517,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:33:36'),(518,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:33:36'),(519,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:33:55'),(520,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:34:23'),(521,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:34:26'),(522,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:36:28'),(523,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:36:31'),(524,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:36:32'),(525,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:36:36'),(526,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:36:39'),(527,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:37:22'),(528,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:37:22'),(529,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:37:57'),(530,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:37:59'),(531,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:37:59'),(532,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:38:26'),(533,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:38:27'),(534,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:43:26'),(535,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:43:26'),(536,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 05:43:28'),(537,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 05:44:04'),(538,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:46:23'),(539,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:46:24'),(540,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:49:02'),(541,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:49:03'),(542,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:49:11'),(543,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:49:46'),(544,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:49:46'),(545,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:50:03'),(546,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:50:03'),(547,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:51:02'),(548,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:51:02'),(549,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:51:03'),(550,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:51:03'),(551,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 05:51:06'),(552,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 05:54:15'),(553,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:54:15'),(554,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 05:54:31'),(555,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-08 05:55:08'),(556,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:55:08'),(557,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:55:14'),(558,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-08 05:55:21'),(559,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 05:55:21'),(560,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 05:56:14'),(561,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 05:56:14'),(562,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 05:58:28'),(563,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 05:58:28'),(564,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 05:59:10'),(565,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 05:59:10'),(566,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 05:59:13'),(567,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 05:59:13'),(568,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 05:59:35'),(569,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 06:02:43'),(570,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 06:02:43'),(571,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 06:02:44'),(572,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 06:02:45'),(573,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 06:02:46'),(574,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 06:02:46'),(575,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:50'),(576,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:50'),(577,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:51'),(578,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:51'),(579,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:52'),(580,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:52'),(581,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:52'),(582,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:53'),(583,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:53'),(584,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:54'),(585,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:02:54'),(586,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:02:55'),(587,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:03:36'),(588,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:03:36'),(589,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:03:39'),(590,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:03:39'),(591,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:03:40'),(592,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:03:40'),(593,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:28'),(594,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:28'),(595,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:30'),(596,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:30'),(597,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:30'),(598,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:31'),(599,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:42'),(600,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:43'),(601,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:44'),(602,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:44'),(603,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:45'),(604,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:45'),(605,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:45'),(606,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:46'),(607,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:46'),(608,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:47'),(609,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:47'),(610,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:48'),(611,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:06:48'),(612,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:06:49'),(613,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:11:54'),(614,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:11:54'),(615,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:15:26'),(616,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:15:26'),(617,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 06:15:28'),(618,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 06:15:38'),(619,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:18:42'),(620,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:18:45'),(621,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:18:46'),(622,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:19:00'),(623,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:19:01'),(624,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 06:19:05'),(625,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 06:19:15'),(626,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:19:39'),(627,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:19:39'),(628,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:19:40'),(629,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:19:40'),(630,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 06:19:41'),(631,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:30:08'),(632,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:30:08'),(633,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','GET','2019-03-08 06:30:09'),(634,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:32:23'),(635,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:32:24'),(636,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','GET','2019-03-08 06:32:25'),(637,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:34:18'),(638,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:34:19'),(639,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 06:34:20'),(640,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:34:57'),(641,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:34:58'),(642,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:34:58'),(643,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:34:59'),(644,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 06:35:00'),(645,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:35:40'),(646,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:35:41'),(647,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 06:35:42'),(648,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:35:55'),(649,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:35:56'),(650,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 06:35:57'),(651,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:58:12'),(652,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:58:13'),(653,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 06:58:14'),(654,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 06:58:14'),(655,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 06:58:15'),(656,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:01:41'),(657,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:01:42'),(658,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:01:43'),(659,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:01:44'),(660,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:01:49'),(661,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:01:50'),(662,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:03:57'),(663,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:03:58'),(664,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:03:59'),(665,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:03:59'),(666,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:06:57'),(667,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:06:57'),(668,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:06:59'),(669,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:06:59'),(670,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:07:12'),(671,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:07:12'),(672,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:07:13'),(673,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:07:14'),(674,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:10:42'),(675,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:10:43'),(676,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:10:52'),(677,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:10:52'),(678,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:10:53'),(679,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:10:54'),(680,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:13:13'),(681,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:13:14'),(682,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:13:19'),(683,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:13:19'),(684,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:13:21'),(685,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:13:21'),(686,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:16:19'),(687,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:16:19'),(688,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:16:22'),(689,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:16:22'),(690,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:16:29'),(691,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:16:29'),(692,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:23:33'),(693,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:23:34'),(694,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:23:42'),(695,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:23:43'),(696,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:23:44'),(697,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:23:44'),(698,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:23:49'),(699,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:23:49'),(700,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:25:43'),(701,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:25:43'),(702,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:26:54'),(703,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:26:54'),(704,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:31:42'),(705,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:31:43'),(706,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:31:48'),(707,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:31:48'),(708,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:31:50'),(709,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:31:50'),(710,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:32:24'),(711,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:32:25'),(712,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:32:25'),(713,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:32:26'),(714,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:32:27'),(715,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:32:27'),(716,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:32:30'),(717,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:32:30'),(718,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:32:32'),(719,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:32:32'),(720,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 07:32:44'),(721,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 07:32:45'),(722,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 07:32:52'),(723,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 07:33:21'),(724,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 07:33:21'),(725,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 07:33:22'),(726,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:33:29'),(727,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:33:29'),(728,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:33:31'),(729,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:33:31'),(730,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:33:36'),(731,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:33:36'),(732,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:34:47'),(733,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:34:48'),(734,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:34:49'),(735,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:34:49'),(736,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:34:56'),(737,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:34:56'),(738,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:34:57'),(739,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:34:58'),(740,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:35:00'),(741,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:35:00'),(742,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:38:08'),(743,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:38:08'),(744,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:38:09'),(745,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:38:09'),(746,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:38:17'),(747,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:38:17'),(748,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:38:18'),(749,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:38:18'),(750,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:38:20'),(751,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:38:20'),(752,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:40:00'),(753,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:40:01'),(754,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:40:02'),(755,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:40:02'),(756,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-08 07:40:58'),(757,'admin',1,'admin','Role','create','创建角色','GET','2019-03-08 07:41:08'),(758,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:42:29'),(759,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:42:30'),(760,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:42:31'),(761,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:42:31'),(762,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:42:32'),(763,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:42:33'),(764,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:42:35'),(765,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:42:35'),(766,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:43:41'),(767,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:43:42'),(768,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:43:43'),(769,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:43:43'),(770,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:43:45'),(771,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:43:45'),(772,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 07:46:46'),(773,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 07:46:46'),(774,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 07:46:51'),(775,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 07:46:56'),(776,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 07:47:02'),(777,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 07:47:05'),(778,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 07:47:15'),(779,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:49:59'),(780,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:49:59'),(781,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:50:00'),(782,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:50:01'),(783,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:50:02'),(784,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:50:02'),(785,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:50:48'),(786,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:50:48'),(787,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:50:49'),(788,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:50:49'),(789,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:50:50'),(790,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:50:51'),(791,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:51:17'),(792,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:51:17'),(793,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:51:18'),(794,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:51:19'),(795,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:51:19'),(796,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:51:20'),(797,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:51:21'),(798,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:51:21'),(799,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:53:26'),(800,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:53:26'),(801,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:53:27'),(802,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:53:28'),(803,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:53:29'),(804,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:53:30'),(805,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:56:09'),(806,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:56:09'),(807,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:56:11'),(808,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:56:11'),(809,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:56:12'),(810,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:56:12'),(811,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:57:59'),(812,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:57:59'),(813,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:58:00'),(814,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:58:08'),(815,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:58:11'),(816,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:58:26'),(817,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:58:26'),(818,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:58:28'),(819,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:58:50'),(820,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:58:51'),(821,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:58:52'),(822,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:59:19'),(823,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:59:19'),(824,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:59:20'),(825,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:59:21'),(826,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 07:59:40'),(827,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 07:59:40'),(828,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:59:41'),(829,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 07:59:42'),(830,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 07:59:43'),(831,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 07:59:43'),(832,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:00:37'),(833,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:00:38'),(834,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:00:39'),(835,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:11:27'),(836,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:11:27'),(837,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:11:29'),(838,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:11:29'),(839,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:11:30'),(840,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:11:30'),(841,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:11:49'),(842,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:11:49'),(843,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:11:50'),(844,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:11:50'),(845,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:11:57'),(846,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:11:57'),(847,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:18:34'),(848,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:18:34'),(849,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 08:18:38'),(850,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:19:15'),(851,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:19:15'),(852,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:19:16'),(853,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:19:16'),(854,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:20:00'),(855,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:20:01'),(856,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:20:01'),(857,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:20:02'),(858,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:20:03'),(859,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:20:03'),(860,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:20:18'),(861,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:20:19'),(862,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:20:19'),(863,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:20:20'),(864,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:20:21'),(865,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:20:21'),(866,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:21:01'),(867,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:21:02'),(868,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:21:03'),(869,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:21:03'),(870,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:21:05'),(871,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:21:05'),(872,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:21:27'),(873,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:21:27'),(874,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:22:07'),(875,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:22:07'),(876,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:22:09'),(877,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:22:09'),(878,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:22:10'),(879,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:22:10'),(880,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:26:11'),(881,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:26:11'),(882,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:26:12'),(883,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:26:12'),(884,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:26:14'),(885,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:26:14'),(886,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:27:08'),(887,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:27:08'),(888,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:27:09'),(889,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:27:10'),(890,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:27:11'),(891,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:27:11'),(892,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:31:52'),(893,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:31:53'),(894,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:31:58'),(895,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:31:58'),(896,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:32:01'),(897,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:32:01'),(898,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:32:04'),(899,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:32:04'),(900,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:33:08'),(901,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:33:09'),(902,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:33:10'),(903,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:33:10'),(904,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:33:12'),(905,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:33:12'),(906,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:33:37'),(907,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:33:37'),(908,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:33:42'),(909,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:33:42'),(910,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:33:43'),(911,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:33:43'),(912,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:33:45'),(913,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:33:45'),(914,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:36:33'),(915,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:36:34'),(916,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:36:48'),(917,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:36:48'),(918,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:37:45'),(919,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:37:45'),(920,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:37:46'),(921,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:37:46'),(922,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:37:48'),(923,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:50:47'),(924,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:50:47'),(925,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:50:49'),(926,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:50:49'),(927,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:50:50'),(928,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:50:51'),(929,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:50:51'),(930,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:51:09'),(931,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:51:09'),(932,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:51:11'),(933,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:51:11'),(934,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:51:30'),(935,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:51:30'),(936,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:51:31'),(937,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:51:31'),(938,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:51:33'),(939,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:51:33'),(940,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:51:35'),(941,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:51:35'),(942,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:51:35'),(943,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:52:49'),(944,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:52:49'),(945,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:52:50'),(946,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:52:51'),(947,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:52:52'),(948,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:52:52'),(949,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:52:52'),(950,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:55:08'),(951,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:55:08'),(952,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:55:09'),(953,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:55:09'),(954,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:55:11'),(955,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:55:11'),(956,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 08:57:37'),(957,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 08:57:38'),(958,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 08:57:39'),(959,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 08:57:39'),(960,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:57:46'),(961,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 08:57:46'),(962,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:00:33'),(963,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:00:33'),(964,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:00:35'),(965,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:00:35'),(966,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:00:37'),(967,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:00:37'),(968,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:02:59'),(969,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:02:59'),(970,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:03:01'),(971,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:03:02'),(972,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:03:04'),(973,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:03:04'),(974,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:04:06'),(975,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:04:06'),(976,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:04:08'),(977,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:04:08'),(978,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:04:10'),(979,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:04:10'),(980,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:06:06'),(981,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:06:06'),(982,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:06:11'),(983,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:06:11'),(984,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:06:12'),(985,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:06:12'),(986,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:06:14'),(987,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:06:14'),(988,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:09:48'),(989,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:09:48'),(990,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:09:51'),(991,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:09:51'),(992,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:09:52'),(993,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:09:53'),(994,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:09:54'),(995,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:09:55'),(996,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:10:54'),(997,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:10:54'),(998,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:10:58'),(999,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:10:58'),(1000,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:10:59'),(1001,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:11:00'),(1002,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:11:01'),(1003,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:11:01'),(1004,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:26:25'),(1005,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:26:26'),(1006,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:26:27'),(1007,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:26:27'),(1008,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:26:29'),(1009,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:26:29'),(1010,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:27:48'),(1011,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:27:49'),(1012,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:27:50'),(1013,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:27:50'),(1014,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:27:52'),(1015,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:27:52'),(1016,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:27:55'),(1017,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:27:55'),(1018,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:28:25'),(1019,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:28:25'),(1020,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:28:28'),(1021,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:28:28'),(1022,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:28:31'),(1023,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:28:32'),(1024,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:28:35'),(1025,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:28:36'),(1026,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:28:42'),(1027,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:28:42'),(1028,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:28:45'),(1029,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:28:45'),(1030,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:29:16'),(1031,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:29:16'),(1032,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:29:17'),(1033,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:29:17'),(1034,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:29:18'),(1035,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:29:19'),(1036,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:29:41'),(1037,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:29:41'),(1038,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:32:03'),(1039,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:32:03'),(1040,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:35:14'),(1041,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:35:14'),(1042,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:35:16'),(1043,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:35:17'),(1044,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:35:19'),(1045,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:35:19'),(1046,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:37:14'),(1047,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:37:15'),(1048,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:41:29'),(1049,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:41:30'),(1050,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:41:31'),(1051,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:41:31'),(1052,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:41:33'),(1053,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:41:33'),(1054,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:41:41'),(1055,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:41:41'),(1056,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:42:16'),(1057,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:42:16'),(1058,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:42:18'),(1059,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:42:18'),(1060,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:42:21'),(1061,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:42:21'),(1062,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:45:44'),(1063,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:45:44'),(1064,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:45:45'),(1065,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:45:45'),(1066,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:45:48'),(1067,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:45:48'),(1068,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:46:33'),(1069,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:46:34'),(1070,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:46:35'),(1071,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:46:35'),(1072,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:46:37'),(1073,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:46:37'),(1074,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 09:47:01'),(1075,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 09:47:01'),(1076,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 09:47:02'),(1077,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 09:47:02'),(1078,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:47:05'),(1079,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 09:47:05'),(1080,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:13:00'),(1081,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:13:01'),(1082,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:13:02'),(1083,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:13:03'),(1084,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:13:06'),(1085,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:13:06'),(1086,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:13:31'),(1087,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:13:31'),(1088,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:13:32'),(1089,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:13:32'),(1090,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:13:35'),(1091,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:13:35'),(1092,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:14:00'),(1093,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:14:00'),(1094,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:14:01'),(1095,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:14:02'),(1096,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:14:04'),(1097,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:14:04'),(1098,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:14:35'),(1099,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:14:36'),(1100,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:14:37'),(1101,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:14:37'),(1102,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:14:39'),(1103,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:14:39'),(1104,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:15:00'),(1105,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:15:00'),(1106,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:15:02'),(1107,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:15:02'),(1108,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:15:06'),(1109,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:15:06'),(1110,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:25:46'),(1111,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:25:46'),(1112,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:25:47'),(1113,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:25:47'),(1114,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:25:50'),(1115,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:25:50'),(1116,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:27:44'),(1117,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:27:44'),(1118,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:27:47'),(1119,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:27:47'),(1120,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:29:12'),(1121,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:29:12'),(1122,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:29:14'),(1123,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:29:14'),(1124,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:29:17'),(1125,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:29:17'),(1126,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:31:41'),(1127,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:31:41'),(1128,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:31:42'),(1129,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:31:43'),(1130,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:31:45'),(1131,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:31:45'),(1132,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:33:14'),(1133,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:33:14'),(1134,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:33:16'),(1135,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:33:16'),(1136,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:33:26'),(1137,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:33:26'),(1138,'admin',1,'admin','Role','index','角色管理','GET','2019-03-08 10:33:54'),(1139,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-08 10:33:54'),(1140,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:33:55'),(1141,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:33:55'),(1142,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:33:58'),(1143,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-08 10:33:58'),(1144,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:34:35'),(1145,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:34:35'),(1146,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 10:36:29'),(1147,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 10:36:30'),(1148,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-08 10:36:35'),(1149,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-08 10:36:36'),(1150,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 10:36:38'),(1151,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 10:36:40'),(1152,'admin',1,'admin','User','index','用户管理','GET','2019-03-08 10:36:49'),(1153,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-08 10:36:49'),(1154,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:36:51'),(1155,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:36:52'),(1156,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-08 10:36:57'),(1157,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-08 10:37:00'),(1158,'admin',1,'admin','Log','index','日志记录','GET','2019-03-08 10:37:12'),(1159,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-08 10:37:23'),(1160,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-08 10:37:23'),(1161,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:25:10'),(1162,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:25:10'),(1163,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 00:34:12'),(1164,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:34:58'),(1165,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:34:59'),(1166,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 00:36:05'),(1167,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:36:41'),(1168,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:36:41'),(1169,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:39:41'),(1170,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:40:00'),(1171,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:40:00'),(1172,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:40:05'),(1173,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:40:05'),(1174,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 00:40:06'),(1175,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:42:27'),(1176,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:42:27'),(1177,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 00:42:29'),(1178,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:42:55'),(1179,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:42:56'),(1180,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:47:33'),(1181,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:47:34'),(1182,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-09 00:47:42'),(1183,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:47:46'),(1184,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:47:46'),(1185,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 00:47:51'),(1186,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:47:57'),(1187,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:48:04'),(1188,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:48:11'),(1189,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:48:59'),(1190,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:48:59'),(1191,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:50:43'),(1192,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:50:43'),(1193,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 00:50:45'),(1194,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 00:50:46'),(1195,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 00:50:47'),(1196,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 00:50:47'),(1197,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 00:50:48'),(1198,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 00:50:49'),(1199,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:50:55'),(1200,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 00:50:55'),(1201,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:52:01'),(1202,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:52:01'),(1203,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-09 00:52:08'),(1204,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:52:10'),(1205,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:52:10'),(1206,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 00:52:14'),(1207,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 00:52:14'),(1208,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 00:52:18'),(1209,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 00:52:18'),(1210,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:52:22'),(1211,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 00:52:22'),(1212,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:53:07'),(1213,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:53:07'),(1214,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-09 00:58:35'),(1215,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:58:37'),(1216,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:58:37'),(1217,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:58:38'),(1218,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:58:38'),(1219,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:58:43'),(1220,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:58:43'),(1221,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 00:58:48'),(1222,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 00:58:48'),(1223,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-09 00:58:53'),(1224,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 00:58:53'),(1225,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 00:58:57'),(1226,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 00:58:57'),(1227,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 00:59:12'),(1228,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:02:38'),(1229,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:02:38'),(1230,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:02:39'),(1231,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:02:39'),(1232,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:02:40'),(1233,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:02:40'),(1234,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:02:44'),(1235,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:02:44'),(1236,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:02:45'),(1237,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:02:45'),(1238,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:02:46'),(1239,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:02:46'),(1240,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:02:47'),(1241,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:02:47'),(1242,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:02:50'),(1243,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:02:50'),(1244,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-09 01:03:00'),(1245,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:03:03'),(1246,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:03:03'),(1247,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:03:16'),(1248,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:03:16'),(1249,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:03:19'),(1250,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:03:19'),(1251,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:03:23'),(1252,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:03:23'),(1253,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:03:59'),(1254,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:03:59'),(1255,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:09:24'),(1256,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:09:25'),(1257,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:09:26'),(1258,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:09:26'),(1259,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:09:31'),(1260,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:09:32'),(1261,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:11:10'),(1262,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:11:10'),(1263,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:11:20'),(1264,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:11:20'),(1265,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:11:21'),(1266,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:11:22'),(1267,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:11:25'),(1268,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:11:26'),(1269,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:12:30'); INSERT INTO `mkcms_option_log` VALUES (1270,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:12:31'),(1271,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:12:32'),(1272,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:12:32'),(1273,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:12:35'),(1274,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:12:35'),(1275,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:13:14'),(1276,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:13:14'),(1277,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:13:16'),(1278,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:13:16'),(1279,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:13:20'),(1280,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:13:21'),(1281,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:15:16'),(1282,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:15:16'),(1283,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:15:18'),(1284,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:15:18'),(1285,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:15:20'),(1286,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:15:20'),(1287,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:24'),(1288,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:26'),(1289,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:27'),(1290,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:27'),(1291,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:27'),(1292,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:28'),(1293,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:28'),(1294,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:28'),(1295,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:28'),(1296,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:29'),(1297,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:29'),(1298,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:29'),(1299,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:30'),(1300,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:30'),(1301,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:31'),(1302,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:31'),(1303,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:31'),(1304,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:31'),(1305,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:31'),(1306,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:32'),(1307,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:32'),(1308,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:32'),(1309,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:32'),(1310,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:32'),(1311,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:33'),(1312,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:33'),(1313,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:33'),(1314,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:33'),(1315,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:33'),(1316,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:34'),(1317,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:34'),(1318,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:34'),(1319,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:34'),(1320,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:34'),(1321,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:35'),(1322,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:35'),(1323,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:35'),(1324,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:35'),(1325,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:35'),(1326,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:36'),(1327,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:36'),(1328,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:36'),(1329,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:36'),(1330,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:36'),(1331,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:37'),(1332,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:37'),(1333,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:37'),(1334,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:37'),(1335,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:38'),(1336,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:38'),(1337,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:38'),(1338,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:38'),(1339,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:38'),(1340,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:39'),(1341,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:39'),(1342,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:39'),(1343,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:39'),(1344,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:39'),(1345,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:40'),(1346,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:40'),(1347,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:40'),(1348,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:40'),(1349,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:41'),(1350,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:41'),(1351,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:41'),(1352,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:41'),(1353,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:41'),(1354,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:42'),(1355,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:42'),(1356,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:42'),(1357,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:42'),(1358,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:43'),(1359,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:43'),(1360,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:43'),(1361,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:44'),(1362,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:44'),(1363,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:44'),(1364,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:44'),(1365,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:44'),(1366,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:45'),(1367,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:45'),(1368,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:53'),(1369,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:15:56'),(1370,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:15:56'),(1371,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:15:59'),(1372,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:16:01'),(1373,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:16:02'),(1374,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:16:04'),(1375,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:16:06'),(1376,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:16:07'),(1377,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:16:15'),(1378,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:16:16'),(1379,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:16:17'),(1380,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:16:17'),(1381,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:16:21'),(1382,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:18:35'),(1383,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:18:36'),(1384,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:18:38'),(1385,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:18:38'),(1386,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:18:41'),(1387,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:21:25'),(1388,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:21:26'),(1389,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:21:27'),(1390,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:21:27'),(1391,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:21:32'),(1392,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:23:16'),(1393,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:23:17'),(1394,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:23:17'),(1395,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:23:18'),(1396,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:23:18'),(1397,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:23:19'),(1398,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:23:21'),(1399,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:23:26'),(1400,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:23:26'),(1401,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:23:29'),(1402,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:23:31'),(1403,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:23:32'),(1404,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:24:21'),(1405,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:24:21'),(1406,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:24:22'),(1407,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:24:23'),(1408,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:24:30'),(1409,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:28:56'),(1410,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:28:56'),(1411,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:28:57'),(1412,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:28:57'),(1413,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:28:58'),(1414,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:28:59'),(1415,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:29:01'),(1416,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:29:06'),(1417,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:32:09'),(1418,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:32:09'),(1419,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:32:10'),(1420,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:32:10'),(1421,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:32:11'),(1422,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:32:30'),(1423,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:32:30'),(1424,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:32:34'),(1425,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:32:34'),(1426,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:32:38'),(1427,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:33:06'),(1428,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:33:06'),(1429,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:33:09'),(1430,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:33:09'),(1431,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:33:11'),(1432,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:33:48'),(1433,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:33:49'),(1434,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:33:51'),(1435,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:33:51'),(1436,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:33:53'),(1437,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:34:25'),(1438,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:34:26'),(1439,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:34:28'),(1440,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:34:28'),(1441,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:34:30'),(1442,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:37:11'),(1443,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:37:11'),(1444,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:37:14'),(1445,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:37:15'),(1446,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:37:17'),(1447,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:37:51'),(1448,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:37:51'),(1449,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:37:52'),(1450,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:37:52'),(1451,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:38:09'),(1452,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:38:10'),(1453,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:38:15'),(1454,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:38:15'),(1455,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:38:22'),(1456,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:38:22'),(1457,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:38:30'),(1458,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:38:31'),(1459,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:39:34'),(1460,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:39:34'),(1461,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:39:38'),(1462,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:39:39'),(1463,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:39:40'),(1464,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:39:40'),(1465,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:39:51'),(1466,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:39:51'),(1467,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:40:40'),(1468,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:40:40'),(1469,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:40:42'),(1470,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:40:43'),(1471,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:40:59'),(1472,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:41:00'),(1473,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:41:45'),(1474,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:41:45'),(1475,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:41:46'),(1476,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:41:46'),(1477,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:41:48'),(1478,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:41:53'),(1479,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:41:53'),(1480,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:41:55'),(1481,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:41:59'),(1482,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:41:59'),(1483,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:42:01'),(1484,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:50:26'),(1485,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:50:26'),(1486,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:50:28'),(1487,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:52:47'),(1488,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:52:47'),(1489,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:52:48'),(1490,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:52:48'),(1491,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 01:52:51'),(1492,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:53:28'),(1493,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:53:28'),(1494,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 01:53:32'),(1495,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 01:53:55'),(1496,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:04'),(1497,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:54:04'),(1498,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1499,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1500,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1501,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1502,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1503,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:05'),(1504,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 01:54:06'),(1505,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:54:06'),(1506,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 01:54:08'),(1507,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-09 01:54:11'),(1508,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 01:54:12'),(1509,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 01:54:16'),(1510,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:57:33'),(1511,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:57:34'),(1512,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:57:35'),(1513,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:58:33'),(1514,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:58:33'),(1515,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:58:34'),(1516,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:58:35'),(1517,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 01:58:38'),(1518,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:59:06'),(1519,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:59:06'),(1520,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 01:59:07'),(1521,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 01:59:07'),(1522,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 01:59:09'),(1523,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 01:59:09'),(1524,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:01:40'),(1525,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:01:40'),(1526,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:01:48'),(1527,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:01:48'),(1528,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:01:49'),(1529,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:01:49'),(1530,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 02:01:59'),(1531,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:02:08'),(1532,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:02:08'),(1533,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:02:09'),(1534,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:02:09'),(1535,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:02:53'),(1536,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:02:53'),(1537,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:02:55'),(1538,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:02:55'),(1539,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-09 02:02:57'),(1540,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:07:04'),(1541,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:07:04'),(1542,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:07:06'),(1543,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:07:07'),(1544,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:07:59'),(1545,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:07:59'),(1546,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:08:00'),(1547,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:08:00'),(1548,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:08:19'),(1549,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:08:19'),(1550,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-09 02:08:55'),(1551,'admin',1,'admin','Role','edit','编辑角色','POST','2019-03-09 02:08:56'),(1552,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:08:56'),(1553,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-09 02:08:58'),(1554,'admin',1,'admin','Role','edit','编辑角色','POST','2019-03-09 02:08:59'),(1555,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:09:00'),(1556,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:09:01'),(1557,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:09:01'),(1558,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 02:09:06'),(1559,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:09:06'),(1560,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:09:18'),(1561,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:09:46'),(1562,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:09:46'),(1563,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:09:47'),(1564,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:10:05'),(1565,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:10:05'),(1566,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:13:04'),(1567,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:13:04'),(1568,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:13:06'),(1569,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:13:06'),(1570,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:15:16'),(1571,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:15:17'),(1572,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:15:18'),(1573,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:16:07'),(1574,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:16:07'),(1575,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:16:08'),(1576,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:16:08'),(1577,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:16:13'),(1578,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:16:14'),(1579,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 02:17:34'),(1580,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:17:34'),(1581,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 02:19:08'),(1582,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:19:08'),(1583,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-09 02:19:12'),(1584,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-09 02:19:13'),(1585,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:20:14'),(1586,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:20:14'),(1587,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:31:41'),(1588,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 02:32:02'),(1589,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:32:02'),(1590,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 02:32:49'),(1591,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 02:32:53'),(1592,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-09 02:32:55'),(1593,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:32:55'),(1594,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 02:32:57'),(1595,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-09 02:32:59'),(1596,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:32:59'),(1597,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-09 02:33:01'),(1598,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-09 02:33:02'),(1599,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:33:02'),(1600,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-09 02:33:04'),(1601,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:41:35'),(1602,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:41:35'),(1603,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:41:35'),(1604,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:48:42'),(1605,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:48:42'),(1606,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:48:42'),(1607,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:49:06'),(1608,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:49:06'),(1609,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:49:06'),(1610,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:49:31'),(1611,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:49:32'),(1612,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:49:32'),(1613,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 02:49:50'),(1614,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 02:49:50'),(1615,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 02:49:52'),(1616,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 02:49:52'),(1617,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:51:11'),(1618,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:53:21'),(1619,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:53:40'),(1620,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:55:08'),(1621,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:55:08'),(1622,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:55:08'),(1623,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:55:12'),(1624,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:55:13'),(1625,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:55:13'),(1626,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:56:27'),(1627,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:56:27'),(1628,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:56:27'),(1629,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:56:32'),(1630,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 02:59:34'),(1631,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 02:59:35'),(1632,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:59:35'),(1633,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 02:59:39'),(1634,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:01:59'),(1635,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:01:59'),(1636,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:00'),(1637,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:02:03'),(1638,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:02:04'),(1639,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:04'),(1640,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:07'),(1641,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:11'),(1642,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:21'),(1643,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:22'),(1644,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:22'),(1645,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:22'),(1646,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:33'),(1647,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:36'),(1648,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:42'),(1649,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:02:43'),(1650,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:04:33'),(1651,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:04:33'),(1652,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:04:38'),(1653,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:04:46'),(1654,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:04:46'),(1655,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:05:07'),(1656,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:05:08'),(1657,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:05:12'),(1658,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:06:12'),(1659,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:06:12'),(1660,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:06:16'),(1661,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:06:25'),(1662,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:06:25'),(1663,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:06:29'),(1664,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:06:34'),(1665,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:06:44'),(1666,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:08:17'),(1667,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:08:17'),(1668,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:08:24'),(1669,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:08:25'),(1670,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:08:52'),(1671,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:10:02'),(1672,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:11'),(1673,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:19'),(1674,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:20'),(1675,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:20'),(1676,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:20'),(1677,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:21'),(1678,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:21'),(1679,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:22'),(1680,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:14:37'),(1681,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:37'),(1682,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:39'),(1683,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:40'),(1684,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:46'),(1685,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:52'),(1686,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:53'),(1687,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:54'),(1688,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:57'),(1689,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:58'),(1690,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:59'),(1691,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:14:59'),(1692,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:15:00'),(1693,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:15:10'),(1694,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:15:15'),(1695,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:15:15'),(1696,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:15:16'),(1697,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:18:28'),(1698,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:31:56'),(1699,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:31:56'),(1700,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:00'),(1701,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:04'),(1702,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:06'),(1703,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:10'),(1704,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:32:29'),(1705,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:29'),(1706,'admin',1,'admin','Log','index','日志记录','GET','2019-03-09 03:32:42'),(1707,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:43'),(1708,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:49'),(1709,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:32:56'),(1710,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:04'),(1711,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:08'),(1712,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:20'),(1713,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:21'),(1714,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:24'),(1715,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:33:25'),(1716,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:49:09'),(1717,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:49:10'),(1718,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:49:13'),(1719,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:49:15'),(1720,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-09 03:49:19'),(1721,'admin',1,'admin','User','index','用户管理','GET','2019-03-09 03:49:27'),(1722,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-09 03:49:27'),(1723,'admin',1,'admin','Role','index','角色管理','GET','2019-03-09 03:49:29'),(1724,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-09 03:49:30'),(1725,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 03:49:38'),(1726,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 03:49:39'),(1727,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 03:51:09'),(1728,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 03:51:09'),(1729,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-09 03:51:10'),(1730,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-09 03:51:11'),(1731,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-09 03:51:51'),(1732,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:26:15'),(1733,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:26:15'),(1734,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-11 03:26:18'),(1735,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-11 03:28:02'),(1736,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:28:02'),(1737,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:28:21'),(1738,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:28:21'),(1739,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-11 03:28:38'),(1740,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-11 03:29:57'),(1741,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:29:57'),(1742,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:30:04'),(1743,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:30:19'),(1744,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:30:48'),(1745,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:30:58'),(1746,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:31:15'),(1747,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:31:31'),(1748,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:31:31'),(1749,'admin',1,'admin','Log','index','日志记录','GET','2019-03-11 03:33:53'),(1750,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-11 03:33:54'),(1751,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:33:56'),(1752,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:33:56'),(1753,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:34:01'),(1754,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:34:10'),(1755,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:34:10'),(1756,'admin',1,'admin','User','index','用户管理','GET','2019-03-11 03:34:17'),(1757,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-11 03:34:18'),(1758,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:34:20'),(1759,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:34:20'),(1760,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:34:28'),(1761,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:34:36'),(1762,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:34:36'),(1763,'admin',1,'admin','Role','index','角色管理','GET','2019-03-11 03:43:15'),(1764,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-11 03:43:16'),(1765,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:43:17'),(1766,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:43:17'),(1767,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-11 03:43:20'),(1768,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-11 03:43:20'),(1769,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-11 03:43:23'),(1770,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:44:04'),(1771,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:44:04'),(1772,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:44:23'),(1773,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:44:23'),(1774,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:44:34'),(1775,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:44:37'),(1776,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:44:37'),(1777,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-11 03:44:58'),(1778,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:44:58'),(1779,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:45:13'),(1780,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:45:18'),(1781,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:45:18'),(1782,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-11 03:46:11'),(1783,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-11 03:47:34'),(1784,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:47:35'),(1785,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-11 03:47:38'),(1786,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:49:11'),(1787,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:49:15'),(1788,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:49:24'),(1789,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:49:31'),(1790,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:49:31'),(1791,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-11 03:49:45'),(1792,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-11 03:50:03'),(1793,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-11 03:50:04'),(1794,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 02:04:52'),(1795,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 02:04:52'),(1796,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 02:04:54'),(1797,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 02:04:54'),(1798,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 02:04:57'),(1799,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 02:04:58'),(1800,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 02:05:18'),(1801,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 02:05:19'),(1802,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 02:05:36'),(1803,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:05:37'),(1804,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-12 02:05:53'),(1805,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-12 02:06:14'),(1806,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:06:14'),(1807,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 02:06:29'),(1808,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:06:30'),(1809,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-12 02:06:36'),(1810,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 02:06:44'),(1811,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 02:06:45'),(1812,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 02:06:46'),(1813,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 02:06:47'),(1814,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 02:06:51'),(1815,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 02:08:30'),(1816,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 02:08:30'),(1817,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 02:08:35'),(1818,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 02:08:35'),(1819,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 02:08:37'),(1820,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:08:37'),(1821,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 02:38:29'),(1822,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:38:30'),(1823,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-12 02:38:35'),(1824,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 02:38:41'),(1825,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 02:38:41'),(1826,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 02:38:43'),(1827,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 02:38:43'),(1828,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 02:38:49'),(1829,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 02:42:17'),(1830,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 02:42:17'),(1831,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 02:42:18'),(1832,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 02:42:18'),(1833,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 02:42:18'),(1834,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 02:42:19'),(1835,'admin',1,'admin','Log','index','日志记录','GET','2019-03-12 02:42:19'),(1836,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-12 02:42:19'),(1837,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 06:49:21'),(1838,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 06:49:21'),(1839,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 06:49:25'),(1840,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 06:49:25'),(1841,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 07:05:19'),(1842,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 07:05:20'),(1843,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-12 07:05:24'),(1844,'admin',1,'admin','User','edit','编辑用户','POST','2019-03-12 07:05:26'),(1845,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 07:05:26'),(1846,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 08:28:31'),(1847,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 08:28:31'),(1848,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 08:28:35'),(1849,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 08:28:35'),(1850,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 08:28:37'),(1851,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 08:28:37'),(1852,'admin',1,'admin','Log','index','日志记录','GET','2019-03-12 08:28:38'),(1853,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-12 08:28:39'),(1854,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:40:21'),(1855,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:41:36'),(1856,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:42:51'),(1857,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:42:53'),(1858,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:42:53'),(1859,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:42:54'),(1860,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:44:17'),(1861,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:44:31'),(1862,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:44:57'),(1863,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:45:12'),(1864,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:48'),(1865,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:49'),(1866,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:49'),(1867,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:49'),(1868,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:50'),(1869,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:46:50'),(1870,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:49:52'),(1871,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:51:05'),(1872,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:55:16'),(1873,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:55:39'),(1874,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:56:48'),(1875,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:57:04'),(1876,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 08:57:39'),(1877,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 09:08:10'),(1878,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 09:12:02'),(1879,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 09:12:07'),(1880,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 09:13:15'),(1881,'admin',1,'admin','Role','index','角色管理','GET','2019-03-12 10:02:01'),(1882,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-12 10:02:01'),(1883,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:02:03'),(1884,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:02:03'),(1885,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 10:02:08'),(1886,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:02:12'),(1887,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:02:13'),(1888,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 10:02:15'),(1889,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:02:27'),(1890,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:02:28'),(1891,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:02:38'),(1892,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:02:39'),(1893,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:02:42'),(1894,'admin',1,'admin','Log','index','日志记录','GET','2019-03-12 10:02:46'),(1895,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-12 10:02:46'),(1896,'admin',1,'admin','User','index','用户管理','GET','2019-03-12 10:03:24'),(1897,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 10:03:24'),(1898,'admin',1,'admin','User','edit','编辑用户','GET','2019-03-12 10:03:28'),(1899,'admin',1,'admin','User','create','创建用户','GET','2019-03-12 10:03:53'),(1900,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-12 10:04:05'),(1901,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:04:11'),(1902,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:04:11'),(1903,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:08:25'),(1904,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-12 10:08:25'),(1905,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-12 10:08:41'),(1906,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:08:42'),(1907,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:11:15'),(1908,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:11:15'),(1909,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:13:58'),(1910,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:00'),(1911,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:01'),(1912,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:01'),(1913,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:01'),(1914,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:02'),(1915,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:05'),(1916,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:06'),(1917,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:22'),(1918,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:14:33'),(1919,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:21:10'),(1920,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:21:10'),(1921,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:21:18'),(1922,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:21:19'),(1923,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:25:17'),(1924,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:25:20'),(1925,'admin',1,'admin','Category','index','栏目列表','GET','2019-03-12 10:25:37'),(1926,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-12 10:26:16'),(1927,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-12 10:26:37'),(1928,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:26:37'),(1929,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-12 10:26:42'),(1930,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-12 10:27:16'),(1931,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-12 10:27:16'),(1932,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:27:19'),(1933,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:27:20'),(1934,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 10:27:24'),(1935,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-12 10:27:27'),(1936,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-12 10:27:28'),(1937,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-12 10:27:30'),(1938,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:27:37'),(1939,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:27:38'),(1940,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:29:09'),(1941,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:29:10'),(1942,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:29:56'),(1943,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:29:57'),(1944,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:31:38'),(1945,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:31:38'),(1946,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:31:51'),(1947,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:31:52'),(1948,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:41'),(1949,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:32:41'),(1950,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:52'),(1951,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:54'),(1952,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:55'),(1953,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:55'),(1954,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:32:55'),(1955,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:34:26'),(1956,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:35:30'),(1957,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:35:32'),(1958,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:46'),(1959,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:47'),(1960,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:48'),(1961,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:49'),(1962,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:49'),(1963,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:36:49'),(1964,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:40:06'),(1965,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:40:53'),(1966,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:29'),(1967,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:30'),(1968,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:31'),(1969,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:31'),(1970,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:31'),(1971,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:32'),(1972,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:32'),(1973,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:32'),(1974,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:32'),(1975,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:32'),(1976,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:32'),(1977,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:42:33'),(1978,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-12 10:42:33'),(1979,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:43:31'),(1980,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:44:32'),(1981,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-12 10:45:15'),(1982,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:17:18'),(1983,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:19:24'),(1984,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:23:45'),(1985,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:24:07'),(1986,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:05'),(1987,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:07'),(1988,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:10'),(1989,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:18'),(1990,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:21'),(1991,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:21'),(1992,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:22'),(1993,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:22'),(1994,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:22'),(1995,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:23'),(1996,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:23'),(1997,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:23'),(1998,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:31'),(1999,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:25:33'),(2000,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:26:06'),(2001,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:27:11'),(2002,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:27:12'),(2003,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:27:13'),(2004,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:27:13'),(2005,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:27:13'),(2006,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:28:05'),(2007,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:28:46'),(2008,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:29:23'),(2009,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:30:51'),(2010,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:30:53'),(2011,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:30:54'),(2012,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:30:54'),(2013,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:30:54'),(2014,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:31:19'),(2015,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:31:31'),(2016,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:33:07'),(2017,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:33:26'),(2018,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:33:30'),(2019,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:33:54'),(2020,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:34:36'),(2021,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:35:19'),(2022,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:35:47'),(2023,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:38:44'),(2024,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:38:47'),(2025,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:41:24'),(2026,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:46:01'),(2027,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:46:23'),(2028,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:46:53'),(2029,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:47:37'),(2030,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:48:05'),(2031,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:49:24'),(2032,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:49:44'),(2033,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:50:21'),(2034,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:51:49'),(2035,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:52:19'),(2036,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:53:11'),(2037,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:55:51'),(2038,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:25'),(2039,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:27'),(2040,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:27'),(2041,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:28'),(2042,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:28'),(2043,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:54'),(2044,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:56'),(2045,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:57'),(2046,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:57'),(2047,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:56:57'),(2048,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:13'),(2049,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:28'),(2050,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:29'),(2051,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:29'),(2052,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:30'),(2053,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:57:30'),(2054,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:40'),(2055,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:41'),(2056,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:41'),(2057,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:42'),(2058,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:42'),(2059,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:42'),(2060,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:43'),(2061,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:44'),(2062,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:58:45'),(2063,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:06'),(2064,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:07'),(2065,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:07'),(2066,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:07'),(2067,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:07'),(2068,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 00:59:58'),(2069,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:00:33'),(2070,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:01:11'),(2071,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:03:27'),(2072,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:04:23'),(2073,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:09:36'),(2074,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:11:16'),(2075,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:14:53'),(2076,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:15:36'),(2077,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 01:15:37'),(2078,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:33:12'),(2079,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 01:33:13'),(2080,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:33:25'),(2081,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 01:33:25'),(2082,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 01:33:49'),(2083,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 01:33:49'),(2084,'admin',1,'admin','User','index','用户管理','GET','2019-03-13 02:10:44'),(2085,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-13 02:10:44'),(2086,'admin',1,'admin','Role','index','角色管理','GET','2019-03-13 02:10:45'),(2087,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-13 02:10:45'),(2088,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 02:10:46'),(2089,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 02:10:46'),(2090,'admin',1,'admin','User','index','用户管理','GET','2019-03-13 02:10:59'),(2091,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-13 02:10:59'),(2092,'admin',1,'admin','User','index','用户管理','GET','2019-03-13 02:17:56'),(2093,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-13 02:17:57'),(2094,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 03:03:44'),(2095,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 03:03:44'),(2096,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 03:36:32'),(2097,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 03:36:33'),(2098,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 03:41:31'),(2099,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 03:41:31'),(2100,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 03:52:30'),(2101,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 03:52:31'),(2102,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:37:37'),(2103,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:37:37'),(2104,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:41:56'),(2105,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:41:56'),(2106,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:43:38'),(2107,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:43:38'),(2108,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:45:40'),(2109,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:45:41'),(2110,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:46:09'),(2111,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:46:09'),(2112,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:46:39'),(2113,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:46:39'),(2114,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 05:46:40'),(2115,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 05:46:41'),(2116,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:48:49'),(2117,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 06:48:49'),(2118,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:48:54'),(2119,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 06:48:54'),(2120,'admin',1,'admin','Role','index','角色管理','GET','2019-03-13 06:50:22'),(2121,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-13 06:50:22'),(2122,'admin',1,'admin','Role','edit','编辑角色','GET','2019-03-13 06:50:24'),(2123,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 06:50:28'),(2124,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 06:50:28'),(2125,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-13 06:50:30'),(2126,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:52:13'),(2127,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:52:35'),(2128,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:00'),(2129,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:01'),(2130,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:32'),(2131,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:33'),(2132,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:34'),(2133,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:36'),(2134,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:36'),(2135,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:36'),(2136,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:37'),(2137,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:37'),(2138,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:37'),(2139,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:53:37'),(2140,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:54:54'),(2141,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:55:49'),(2142,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:57:06'),(2143,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:57:17'),(2144,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:58:07'),(2145,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 06:58:26'),(2146,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 06:58:26'),(2147,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:03:23'),(2148,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:03:24'),(2149,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:03:37'),(2150,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:03:38'),(2151,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:04:17'),(2152,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:04:17'),(2153,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:04:42'),(2154,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:04:42'),(2155,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:07:05'),(2156,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:07:05'),(2157,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:07:34'),(2158,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:07:34'),(2159,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:08:15'),(2160,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:08:16'),(2161,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:08:43'),(2162,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:08:44'),(2163,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:09:08'),(2164,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:09:08'),(2165,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:09:59'),(2166,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:10:00'),(2167,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:18:17'),(2168,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:19:21'),(2169,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:19:25'),(2170,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:19:26'),(2171,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:19:53'),(2172,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:19:53'),(2173,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:20:35'),(2174,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:20:36'),(2175,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:21:04'),(2176,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:21:36'),(2177,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:21:59'),(2178,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:22:11'),(2179,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:23:49'),(2180,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:24:14'),(2181,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:24:15'),(2182,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:30:44'),(2183,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:30:44'),(2184,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:34'),(2185,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:37'),(2186,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:38'),(2187,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:38'),(2188,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:38'),(2189,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:33:42'),(2190,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:34:03'),(2191,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:35:08'),(2192,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:35:55'),(2193,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:35:56'),(2194,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:36:12'),(2195,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:36:12'),(2196,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:36:54'),(2197,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:36:54'),(2198,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-13 07:38:06'),(2199,'admin',1,'admin','User','index','用户管理','GET','2019-03-13 07:52:11'),(2200,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-13 07:52:12'),(2201,'admin',1,'admin','User','index','用户管理','GET','2019-03-13 07:52:19'),(2202,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-13 07:52:20'),(2203,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 07:52:21'),(2204,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 07:52:22'),(2205,'admin',1,'admin','Role','index','角色管理','GET','2019-03-13 07:52:22'),(2206,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-13 07:52:23'),(2207,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-13 07:52:24'),(2208,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-13 07:52:24'),(2209,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-13 07:52:40'),(2210,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:59:13'),(2211,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:59:13'),(2212,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 07:59:14'),(2213,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 07:59:14'),(2214,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-13 07:59:15'),(2215,'admin',1,'admin','Role','index','角色管理','GET','2019-03-13 07:59:32'),(2216,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-13 07:59:32'),(2217,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-13 07:59:36'),(2218,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-13 07:59:36'),(2219,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:01:49'),(2220,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:01:49'),(2221,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:01:50'),(2222,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:01:50'),(2223,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:02:49'),(2224,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:02:50'),(2225,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-13 08:02:58'),(2226,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 08:02:58'),(2227,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-13 08:03:14'),(2228,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-13 08:03:55'),(2229,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-13 08:03:55'),(2230,'admin',1,'admin','Role','index','角色管理','GET','2019-03-13 08:04:20'),(2231,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-13 08:04:21'),(2232,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-13 08:04:22'),(2233,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-13 08:04:22'),(2234,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-13 08:04:24'),(2235,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:04:32'),(2236,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:04:33'),(2237,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:04:33'),(2238,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:05:30'),(2239,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:05:30'),(2240,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:05:34'),(2241,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:10:54'),(2242,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:10:55'),(2243,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:10:56'),(2244,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:13:22'),(2245,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:13:23'),(2246,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:13:24'),(2247,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:13:46'),(2248,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:13:46'),(2249,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:13:47'),(2250,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:14:37'),(2251,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:14:38'),(2252,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:14:39'),(2253,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:33:58'),(2254,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:33:58'),(2255,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:33:59'),(2256,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:34:50'),(2257,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:34:50'),(2258,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:34:51'),(2259,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:38:20'),(2260,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:38:21'),(2261,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:38:21'),(2262,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:39:45'),(2263,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:39:45'),(2264,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:39:46'),(2265,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:40:16'),(2266,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:40:16'),(2267,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:40:16'),(2268,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:43:01'),(2269,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:43:01'),(2270,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:43:02'),(2271,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:44:18'),(2272,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:44:18'),(2273,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:44:19'),(2274,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:44:33'),(2275,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:44:34'),(2276,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:44:34'),(2277,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:44:43'),(2278,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:45:03'),(2279,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:45:03'),(2280,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:45:04'),(2281,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:46:19'),(2282,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:46:19'),(2283,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:46:20'),(2284,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:48:10'),(2285,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:48:11'),(2286,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:48:12'),(2287,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:48:33'),(2288,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:48:34'),(2289,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:48:34'),(2290,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:49:03'),(2291,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:49:03'),(2292,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:49:04'),(2293,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:49:04'),(2294,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:49:04'),(2295,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:49:55'),(2296,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:49:56'),(2297,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:49:56'),(2298,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:50:33'),(2299,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:50:33'),(2300,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:50:34'),(2301,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:53:45'),(2302,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 08:57:54'),(2303,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 08:57:55'),(2304,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 08:57:55'),(2305,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 09:00:12'),(2306,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 09:00:13'),(2307,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 09:00:13'),(2308,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 09:00:13'),(2309,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 09:00:14'),(2310,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-13 09:00:57'),(2311,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-13 09:00:58'),(2312,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-13 09:00:59'),(2313,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 00:28:57'),(2314,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 00:28:57'),(2315,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 00:29:31'),(2316,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 00:47:33'),(2317,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:47:34'),(2318,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 00:51:57'),(2319,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-14 00:53:29'),(2320,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:53:29'),(2321,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 00:53:50'),(2322,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-14 00:54:33'),(2323,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:54:34'),(2324,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 00:54:53'),(2325,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 00:54:56'),(2326,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:54:57'),(2327,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 00:55:57'),(2328,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 00:55:58'),(2329,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-14 00:55:59'),(2330,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-14 00:56:00'),(2331,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 00:56:03'),(2332,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-14 00:56:07'),(2333,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-14 00:56:08'),(2334,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 00:56:10'),(2335,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 00:56:14'),(2336,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 00:57:19'),(2337,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:57:19'),(2338,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 00:57:24'),(2339,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 00:57:28'),(2340,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 00:57:28'),(2341,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 00:57:48'),(2342,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 00:57:48'),(2343,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 00:57:49'),(2344,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 00:59:21'),(2345,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 00:59:22'),(2346,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 00:59:23'),(2347,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 00:59:23'),(2348,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 00:59:24'),(2349,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 00:59:41'),(2350,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 00:59:41'),(2351,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 00:59:42'),(2352,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:00:45'),(2353,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:00:45'),(2354,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:00:47'),(2355,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:02:59'),(2356,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:02:59'),(2357,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:03:00'),(2358,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:05:51'),(2359,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:05:52'),(2360,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:05:54'),(2361,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:10:44'),(2362,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:10:44'),(2363,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:10:45'),(2364,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:12:56'),(2365,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:12:57'),(2366,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:13:04'),(2367,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:13:04'),(2368,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:13:05'),(2369,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:15:08'),(2370,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:15:09'),(2371,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:15:10'),(2372,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:15:15'),(2373,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:15:15'),(2374,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:15:16'),(2375,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:17:01'),(2376,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:17:02'),(2377,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:17:03'),(2378,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:17:07'),(2379,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:18:03'),(2380,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:18:03'),(2381,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:18:06'),(2382,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:18:07'),(2383,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:18:07'),(2384,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:18:10'),(2385,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:18:47'),(2386,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:18:48'),(2387,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:18:49'),(2388,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:18:52'),(2389,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:21:30'),(2390,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:21:30'),(2391,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:21:35'),(2392,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:21:35'),(2393,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:21:37'),(2394,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:21:37'),(2395,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:21:38'),(2396,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:21:41'),(2397,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:23:02'),(2398,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:23:02'),(2399,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:23:05'),(2400,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:23:05'),(2401,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:23:06'),(2402,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:23:08'),(2403,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:24:18'),(2404,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:24:19'),(2405,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:24:23'),(2406,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:24:24'),(2407,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:24:24'),(2408,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:24:27'),(2409,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:27:38'),(2410,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:27:39'),(2411,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:27:40'),(2412,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:27:44'),(2413,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:29:02'),(2414,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:29:03'),(2415,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:29:04'),(2416,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:29:07'),(2417,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:32:33'),(2418,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:32:34'),(2419,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:32:35'),(2420,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:32:39'),(2421,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:40:27'),(2422,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:40:27'),(2423,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:40:29'),(2424,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:40:55'),(2425,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:41:00'),(2426,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:42:29'),(2427,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:44:39'),(2428,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:45:24'),(2429,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:46:49'),(2430,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:46:49'),(2431,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:47:12'),(2432,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:47:13'),(2433,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 01:47:23'),(2434,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:47:27'),(2435,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 01:47:46'),(2436,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 01:47:50'),(2437,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:47:51'),(2438,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:49:53'),(2439,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:49:53'),(2440,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 01:52:08'),(2441,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 01:52:09'),(2442,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 01:52:11'),(2443,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 01:52:12'),(2444,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:53:22'),(2445,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:53:22'),(2446,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 01:53:35'),(2447,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 01:59:44'),(2448,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 01:59:44'),(2449,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 01:59:49'),(2450,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:00:01'),(2451,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 02:01:19'),(2452,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 02:01:20'),(2453,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 02:01:21'),(2454,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:05:31'),(2455,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:05:31'),(2456,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:05:32'),(2457,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:06:06'),(2458,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:06:21'),(2459,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:06:21'),(2460,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:06:24'),(2461,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:07:16'),(2462,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:07:17'),(2463,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:07:18'),(2464,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:07:24'),(2465,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:08:54'),(2466,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:08:54'),(2467,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:08:56'),(2468,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:09:17'),(2469,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:09:17'),(2470,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:12:06'),(2471,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:12:07'),(2472,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:12:11'),(2473,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:12:11'),(2474,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:12:13'),(2475,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:14:11'),(2476,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:14:12'),(2477,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:14:13'),(2478,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:14:52'),(2479,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:14:52'),(2480,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:14:53'),(2481,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:14:58'),(2482,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:16:31'),(2483,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:16:31'),(2484,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:16:33'),(2485,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:17:20'),(2486,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:17:21'),(2487,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:17:22'),(2488,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:18:03'),(2489,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:18:04'),(2490,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:18:05'),(2491,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:18:49'),(2492,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:18:50'),(2493,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:18:51'),(2494,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:18:55'),(2495,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:20:18'),(2496,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:20:18'),(2497,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:20:20'),(2498,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:22:18'),(2499,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:22:19'),(2500,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:22:20'),(2501,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 02:23:30'),(2502,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 02:24:05'),(2503,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 02:24:10'),(2504,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:24:11'),(2505,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:25:14'),(2506,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:25:15'),(2507,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 02:25:35'),(2508,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 02:25:35'),(2509,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:08:05'),(2510,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:08:06'),(2511,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:08:18'),(2512,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:08:18'),(2513,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 03:08:38'),(2514,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 03:08:38'),(2515,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:08:41'),(2516,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:08:41'),(2517,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:08:46'),(2518,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:08:46'),(2519,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 03:09:08'),(2520,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-14 03:09:57'),(2521,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:09:58'),(2522,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-14 03:10:04'),(2523,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-14 03:10:04'),(2524,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 03:10:07'),(2525,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-14 03:10:10'),(2526,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-14 03:10:11'),(2527,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 03:10:13'),(2528,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:10:22'),(2529,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:10:22'),(2530,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:10:35'),(2531,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:11:20'),(2532,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:11:20'),(2533,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:11:23'),(2534,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:11:24'),(2535,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:11:28'),(2536,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:12:58'),(2537,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:13:11'); INSERT INTO `mkcms_option_log` VALUES (2538,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:13:11'),(2539,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:13:55'),(2540,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:13:55'),(2541,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:14:01'),(2542,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:14:28'),(2543,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:14:40'),(2544,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:14:40'),(2545,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:19:37'),(2546,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:19:38'),(2547,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:19:45'),(2548,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:19:54'),(2549,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:19:55'),(2550,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:21:12'),(2551,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:21:13'),(2552,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:21:19'),(2553,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:21:49'),(2554,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:21:50'),(2555,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:21:54'),(2556,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:22:24'),(2557,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:22:24'),(2558,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:22:28'),(2559,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:23:02'),(2560,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:23:02'),(2561,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:23:05'),(2562,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:23:26'),(2563,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:23:26'),(2564,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:23:30'),(2565,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:24:26'),(2566,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:24:27'),(2567,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:24:29'),(2568,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:26:03'),(2569,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:26:04'),(2570,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:26:07'),(2571,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:28:41'),(2572,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:28:41'),(2573,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:28:45'),(2574,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 03:28:51'),(2575,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 03:29:31'),(2576,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 03:29:40'),(2577,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:29:40'),(2578,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:30:14'),(2579,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:30:14'),(2580,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 03:32:54'),(2581,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 03:32:54'),(2582,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:32:59'),(2583,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:33:10'),(2584,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:33:36'),(2585,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 03:33:43'),(2586,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:49:20'),(2587,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:49:21'),(2588,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-14 03:49:30'),(2589,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:49:36'),(2590,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:49:37'),(2591,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:49:51'),(2592,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:49:51'),(2593,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-14 03:49:54'),(2594,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:49:56'),(2595,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:49:57'),(2596,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 03:51:54'),(2597,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 03:51:54'),(2598,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 03:51:56'),(2599,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 03:51:56'),(2600,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-14 03:52:00'),(2601,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 04:09:08'),(2602,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 04:09:09'),(2603,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 04:09:10'),(2604,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 04:09:11'),(2605,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-14 04:09:14'),(2606,'admin',1,'admin','User','index','用户管理','GET','2019-03-14 04:09:35'),(2607,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-14 04:09:35'),(2608,'admin',1,'admin','Permission','delete','删除菜单','POST','2019-03-14 04:09:39'),(2609,'admin',1,'admin','Log','index','日志记录','GET','2019-03-14 04:09:42'),(2610,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-14 04:09:42'),(2611,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 04:09:46'),(2612,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 04:09:46'),(2613,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 04:09:49'),(2614,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 04:09:55'),(2615,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 05:31:03'),(2616,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 05:31:03'),(2617,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:07'),(2618,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:11'),(2619,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 05:31:14'),(2620,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 05:31:14'),(2621,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:18'),(2622,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:23'),(2623,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:26'),(2624,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:30'),(2625,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:34'),(2626,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:37'),(2627,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:40'),(2628,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:52'),(2629,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-14 05:31:55'),(2630,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 05:31:58'),(2631,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 05:31:58'),(2632,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 05:41:35'),(2633,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 05:41:41'),(2634,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-14 05:41:50'),(2635,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:41:50'),(2636,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-14 05:47:50'),(2637,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-14 05:48:34'),(2638,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:48:34'),(2639,'admin',1,'admin','Role','index','角色管理','GET','2019-03-14 05:48:42'),(2640,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-14 05:48:42'),(2641,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-14 05:48:44'),(2642,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-14 05:48:44'),(2643,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-14 05:48:47'),(2644,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 05:49:16'),(2645,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 05:49:25'),(2646,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:49:25'),(2647,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 05:49:30'),(2648,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 05:49:34'),(2649,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:49:34'),(2650,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 05:49:42'),(2651,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 05:49:46'),(2652,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:49:46'),(2653,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 05:49:52'),(2654,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-14 05:50:01'),(2655,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-14 05:50:01'),(2656,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-14 05:51:12'),(2657,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 05:51:24'),(2658,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 05:55:22'),(2659,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 05:55:22'),(2660,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 05:55:25'),(2661,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 05:57:22'),(2662,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 05:57:22'),(2663,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 05:57:25'),(2664,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 05:57:29'),(2665,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 05:57:35'),(2666,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:02:12'),(2667,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:02:12'),(2668,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:02:14'),(2669,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:03:28'),(2670,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:03:28'),(2671,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:03:31'),(2672,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:05:18'),(2673,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:05:18'),(2674,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:05:21'),(2675,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:05:22'),(2676,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:05:32'),(2677,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:08:56'),(2678,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:10:22'),(2679,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:10:22'),(2680,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:10:24'),(2681,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:10:33'),(2682,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:12:03'),(2683,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 06:12:44'),(2684,'admin',1,'admin','Upload','image','图片上传','POST','2019-03-14 06:13:14'),(2685,'admin',1,'admin','Category','create','创建栏目','POST','2019-03-14 06:13:20'),(2686,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:13:20'),(2687,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:14:46'),(2688,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:14:46'),(2689,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:14:50'),(2690,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:14:54'),(2691,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:16:06'),(2692,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:06'),(2693,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:08'),(2694,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:09'),(2695,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:09'),(2696,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:12'),(2697,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:15'),(2698,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:16'),(2699,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:18'),(2700,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:31'),(2701,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:32'),(2702,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:33'),(2703,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:42'),(2704,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:43'),(2705,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:45'),(2706,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:47'),(2707,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:47'),(2708,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:49'),(2709,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:16:51'),(2710,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:16:51'),(2711,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:16:56'),(2712,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:17:00'),(2713,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:17:00'),(2714,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:17:02'),(2715,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:17:03'),(2716,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:17:04'),(2717,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:17:06'),(2718,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:17:07'),(2719,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:17:07'),(2720,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 06:20:59'),(2721,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:20:59'),(2722,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:21:00'),(2723,'admin',1,'admin','Category','edit','编辑栏目','POST','2019-03-14 06:21:03'),(2724,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 06:21:03'),(2725,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 06:21:05'),(2726,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-14 09:52:11'),(2727,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-14 09:52:12'),(2728,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-14 09:52:20'),(2729,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 09:52:43'),(2730,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-14 09:52:48'),(2731,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-15 00:32:25'),(2732,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-15 00:32:26'),(2733,'admin',1,'admin','User','index','用户管理','GET','2019-03-15 00:32:32'),(2734,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-15 00:32:32'),(2735,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 00:32:34'),(2736,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 00:32:34'),(2737,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 00:32:36'),(2738,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 00:32:37'),(2739,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 00:37:39'),(2740,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 00:37:39'),(2741,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-15 00:40:04'),(2742,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-15 00:40:26'),(2743,'admin',1,'admin','Category','create','创建栏目','GET','2019-03-15 00:40:28'),(2744,'admin',1,'admin','Category','delete','删除栏目','POST','2019-03-15 00:40:50'),(2745,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-15 00:41:00'),(2746,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-15 00:41:00'),(2747,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-15 00:41:34'),(2748,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-15 00:48:11'),(2749,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 00:48:11'),(2750,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 00:48:23'),(2751,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 00:48:23'),(2752,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 00:48:25'),(2753,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 00:48:25'),(2754,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 00:48:28'),(2755,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 00:48:40'),(2756,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 00:48:40'),(2757,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 00:49:34'),(2758,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 00:49:34'),(2759,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-15 00:49:37'),(2760,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-15 00:50:03'),(2761,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 00:50:03'),(2762,'admin',1,'admin','User','index','用户管理','GET','2019-03-15 00:50:25'),(2763,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-15 00:50:25'),(2764,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 00:50:26'),(2765,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 00:50:26'),(2766,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 00:50:26'),(2767,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 00:50:27'),(2768,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 00:50:27'),(2769,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 00:50:28'),(2770,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:30:39'),(2771,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:30:52'),(2772,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:33:27'),(2773,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 03:34:30'),(2774,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 03:34:30'),(2775,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:49:34'),(2776,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:49:50'),(2777,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:49:52'),(2778,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:49:53'),(2779,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 03:49:53'),(2780,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:14:14'),(2781,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:14:54'),(2782,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 06:15:10'),(2783,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 06:15:10'),(2784,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-15 06:15:12'),(2785,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-15 06:16:03'),(2786,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 06:16:03'),(2787,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 06:16:09'),(2788,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 06:16:09'),(2789,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 06:16:10'),(2790,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 06:16:11'),(2791,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 06:16:16'),(2792,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:16:27'),(2793,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:16:27'),(2794,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:16:42'),(2795,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:16:42'),(2796,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:20:25'),(2797,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:20:26'),(2798,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:21:12'),(2799,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:21:13'),(2800,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:26:16'),(2801,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:26:17'),(2802,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:40:06'),(2803,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:40:06'),(2804,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-15 06:40:13'),(2805,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-15 06:40:49'),(2806,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 06:40:49'),(2807,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 06:40:52'),(2808,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 06:40:53'),(2809,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 06:41:46'),(2810,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-15 06:41:53'),(2811,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-15 06:41:53'),(2812,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:41:56'),(2813,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:46:46'),(2814,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:46:46'),(2815,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:46:47'),(2816,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:47:12'),(2817,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:48:13'),(2818,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:48:13'),(2819,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:48:13'),(2820,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:50:03'),(2821,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:50:04'),(2822,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:50:05'),(2823,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:50:12'),(2824,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:50:12'),(2825,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:50:13'),(2826,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 06:50:18'),(2827,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 06:50:19'),(2828,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 06:50:20'),(2829,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 06:50:21'),(2830,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:52:48'),(2831,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:53:38'),(2832,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:53:38'),(2833,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:53:39'),(2834,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:53:40'),(2835,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:53:41'),(2836,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:54:30'),(2837,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:54:30'),(2838,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:54:31'),(2839,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:55:35'),(2840,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:55:35'),(2841,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:55:36'),(2842,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:56:15'),(2843,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:56:16'),(2844,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:56:16'),(2845,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:56:35'),(2846,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:56:36'),(2847,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:56:37'),(2848,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 06:57:55'),(2849,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 06:57:55'),(2850,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 06:57:56'),(2851,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:00:20'),(2852,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:00:21'),(2853,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:00:21'),(2854,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:01:22'),(2855,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:01:22'),(2856,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:01:23'),(2857,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:01:44'),(2858,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:01:44'),(2859,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:01:51'),(2860,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:01:51'),(2861,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:03:10'),(2862,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:03:26'),(2863,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:03:26'),(2864,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:06:09'),(2865,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:06:09'),(2866,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:06:09'),(2867,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:06:15'),(2868,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:06:15'),(2869,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:06:35'),(2870,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:12:00'),(2871,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:12:01'),(2872,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:12:02'),(2873,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:20:52'),(2874,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:26:14'),(2875,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:26:14'),(2876,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:26:15'),(2877,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:26:26'),(2878,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:28:11'),(2879,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:28:11'),(2880,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:28:12'),(2881,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:28:20'),(2882,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:30:18'),(2883,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:30:19'),(2884,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:30:20'),(2885,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:30:25'),(2886,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:36:30'),(2887,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:36:30'),(2888,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:36:31'),(2889,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:37:02'),(2890,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:38:21'),(2891,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:38:22'),(2892,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:39:02'),(2893,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:39:03'),(2894,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:39:04'),(2895,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:39:04'),(2896,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:39:05'),(2897,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:39:28'),(2898,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:44:45'),(2899,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:44:45'),(2900,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:44:51'),(2901,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:44:51'),(2902,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 07:47:44'),(2903,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 07:47:56'),(2904,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:47:56'),(2905,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 07:48:05'),(2906,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 07:48:05'),(2907,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:02:06'),(2908,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:02:07'),(2909,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 08:02:28'),(2910,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 08:02:28'),(2911,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-15 08:02:31'),(2912,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-15 08:03:11'),(2913,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 08:03:11'),(2914,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 08:03:14'),(2915,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 08:03:14'),(2916,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 08:03:16'),(2917,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 08:03:17'),(2918,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 08:03:21'),(2919,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:03:28'),(2920,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 08:03:53'),(2921,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:04:15'),(2922,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:04:15'),(2923,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 08:04:16'),(2924,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:05:01'),(2925,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:05:02'),(2926,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:05:03'),(2927,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:05:08'),(2928,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:05:09'),(2929,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:05:10'),(2930,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:05:42'),(2931,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:05:43'),(2932,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:05:45'),(2933,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:05:45'),(2934,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:05:49'),(2935,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:05:57'),(2936,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 08:13:59'),(2937,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 08:14:00'),(2938,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:29:16'),(2939,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:29:17'),(2940,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:29:19'),(2941,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:29:28'),(2942,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:30:08'),(2943,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:30:08'),(2944,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:30:12'),(2945,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:30:16'),(2946,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:42:12'),(2947,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:45:18'),(2948,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:45:34'),(2949,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:45:34'),(2950,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:45:37'),(2951,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:45:38'),(2952,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:45:40'),(2953,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:45:45'),(2954,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:45:45'),(2955,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:45:49'),(2956,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:45:49'),(2957,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:45:52'),(2958,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:45:53'),(2959,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:45:53'),(2960,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:46:05'),(2961,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:46:12'),(2962,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:46:51'),(2963,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:46:51'),(2964,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:47:58'),(2965,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:48:01'),(2966,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:48:03'),(2967,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:48:04'),(2968,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 08:48:11'),(2969,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:48:11'),(2970,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:48:13'),(2971,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:48:18'),(2972,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:51:36'),(2973,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:51:36'),(2974,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:52:20'),(2975,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:52:26'),(2976,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:53:05'),(2977,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:53:06'),(2978,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 08:53:08'),(2979,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 08:53:12'),(2980,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 08:53:12'),(2981,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 09:07:35'),(2982,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:07:36'),(2983,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 09:07:38'),(2984,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 09:07:39'),(2985,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:07:40'),(2986,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 09:54:41'),(2987,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:54:41'),(2988,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 09:54:54'),(2989,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 09:54:54'),(2990,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-15 09:54:55'),(2991,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-15 09:55:36'),(2992,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 09:55:36'),(2993,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 09:55:51'),(2994,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 09:55:52'),(2995,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 09:55:53'),(2996,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 09:55:53'),(2997,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 09:55:57'),(2998,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 09:58:46'),(2999,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:58:47'),(3000,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 09:59:00'),(3001,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:59:00'),(3002,'admin',1,'admin','Model','delete','删除模型','POST','2019-03-15 09:59:04'),(3003,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 09:59:50'),(3004,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 09:59:50'),(3005,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 10:00:16'),(3006,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 10:00:49'),(3007,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:00:49'),(3008,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 10:00:54'),(3009,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:00:54'),(3010,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 10:00:56'),(3011,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 10:01:00'),(3012,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:01:00'),(3013,'admin',1,'admin','Model','delete','删除模型','POST','2019-03-15 10:01:18'),(3014,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 10:05:42'),(3015,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:05:42'),(3016,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 10:17:17'),(3017,'admin',1,'admin','Log','index','日志记录','GET','2019-03-15 10:17:54'),(3018,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-15 10:17:55'),(3019,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 10:17:56'),(3020,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 10:17:56'),(3021,'admin',1,'admin','Role','index','角色管理','GET','2019-03-15 10:18:00'),(3022,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-15 10:18:00'),(3023,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-15 10:18:03'),(3024,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-15 10:18:04'),(3025,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-15 10:18:12'),(3026,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-15 10:18:42'),(3027,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-15 10:18:42'),(3028,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-15 10:20:31'),(3029,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-15 10:20:31'),(3030,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-15 10:20:39'),(3031,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 10:21:12'),(3032,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:21:12'),(3033,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 10:21:21'),(3034,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 10:21:27'),(3035,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 10:25:46'),(3036,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:25:46'),(3037,'admin',1,'admin','Model','create','创建模型','GET','2019-03-15 10:25:52'),(3038,'admin',1,'admin','Model','create','创建模型','POST','2019-03-15 10:26:17'),(3039,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:26:17'),(3040,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 10:26:20'),(3041,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 10:26:23'),(3042,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:26:23'),(3043,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-15 10:26:42'),(3044,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-15 10:26:45'),(3045,'admin',1,'admin','Model','index','模型管理','GET','2019-03-15 10:26:49'),(3046,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-15 10:26:49'),(3047,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 00:36:38'),(3048,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 00:36:38'),(3049,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 01:31:38'),(3050,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 01:31:38'),(3051,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 01:31:41'),(3052,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-19 01:33:04'),(3053,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 01:33:04'),(3054,'admin',1,'admin','Role','index','角色管理','GET','2019-03-19 01:33:13'),(3055,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-19 01:33:14'),(3056,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-19 01:33:15'),(3057,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-19 01:33:15'),(3058,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-19 01:33:21'),(3059,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 01:33:27'),(3060,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:33:27'),(3061,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 01:59:19'),(3062,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:19'),(3063,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 01:59:22'),(3064,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:22'),(3065,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 01:59:24'),(3066,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:24'),(3067,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 01:59:39'),(3068,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:40'),(3069,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 01:59:54'),(3070,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:55'),(3071,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 01:59:56'),(3072,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 01:59:56'),(3073,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-19 02:00:21'),(3074,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:02:02'),(3075,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:02:02'),(3076,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:02:43'),(3077,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:02:43'),(3078,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:02:56'),(3079,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:02:56'),(3080,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:03:22'),(3081,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:03:23'),(3082,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:05:18'),(3083,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:05:18'),(3084,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:05:20'),(3085,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:05:20'),(3086,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:05:40'),(3087,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:05:40'),(3088,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:05:44'),(3089,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:05:48'),(3090,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:05:49'),(3091,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:05:49'),(3092,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:12:05'),(3093,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:12:06'),(3094,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:12:07'),(3095,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:13:09'),(3096,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:13:09'),(3097,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:13:10'),(3098,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:13:51'),(3099,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:13:52'),(3100,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:13:53'),(3101,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 02:14:16'),(3102,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:14:17'),(3103,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 02:14:35'),(3104,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-19 02:15:26'),(3105,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:15:26'),(3106,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-19 02:15:34'),(3107,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-19 02:15:41'),(3108,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:15:41'),(3109,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:15:46'),(3110,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:15:47'),(3111,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:15:47'),(3112,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:15:48'),(3113,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:15:49'),(3114,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:16:02'),(3115,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:16:02'),(3116,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 02:16:09'),(3117,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:16:09'),(3118,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 02:16:21'),(3119,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-19 02:16:49'),(3120,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-19 02:16:52'),(3121,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:16:52'),(3122,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:16:58'),(3123,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:17:04'),(3124,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:17:04'),(3125,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:17:09'),(3126,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:21:30'),(3127,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:21:30'),(3128,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:21:36'),(3129,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:24:27'),(3130,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:24:30'),(3131,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:24:43'),(3132,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:24:43'),(3133,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 02:24:48'),(3134,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:24:49'),(3135,'admin',1,'admin','Permission','edit','编辑菜单','GET','2019-03-19 02:25:03'),(3136,'admin',1,'admin','Permission','edit','编辑菜单','POST','2019-03-19 02:25:10'),(3137,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:25:10'),(3138,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 02:25:21'),(3139,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-19 02:26:00'),(3140,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:26:00'),(3141,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:26:20'),(3142,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:26:20'),(3143,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:27:15'),(3144,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:30:23'),(3145,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:30:23'),(3146,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:30:24'),(3147,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 02:30:29'),(3148,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 02:30:30'),(3149,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 02:30:30'),(3150,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:30:30'),(3151,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 02:30:33'),(3152,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-19 02:31:04'),(3153,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 02:31:05'),(3154,'admin',1,'admin','Role','index','角色管理','GET','2019-03-19 02:31:09'),(3155,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-19 02:31:09'),(3156,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-19 02:31:11'),(3157,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-19 02:31:11'),(3158,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-19 02:31:18'),(3159,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 02:31:26'),(3160,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 02:31:27'),(3161,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 02:31:36'),(3162,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:06:06'),(3163,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:06:06'),(3164,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:06:08'),(3165,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:06:08'),(3166,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:06:11'),(3167,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:08:13'),(3168,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:08:14'),(3169,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:08:14'),(3170,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:09:04'),(3171,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:09:05'),(3172,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:09:07'),(3173,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:10:44'),(3174,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:10:44'),(3175,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:10:45'),(3176,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:12:16'),(3177,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:12:16'),(3178,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:12:17'),(3179,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:12:18'),(3180,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:12:19'),(3181,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:12:34'),(3182,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:12:34'),(3183,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:12:35'),(3184,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:13:03'),(3185,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:13:04'),(3186,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:13:04'),(3187,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:17:02'),(3188,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:17:03'),(3189,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:17:03'),(3190,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 03:32:44'),(3191,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 03:32:44'),(3192,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-19 03:32:45'),(3193,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-19 03:33:57'),(3194,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 03:33:57'),(3195,'admin',1,'admin','Role','index','角色管理','GET','2019-03-19 03:34:00'),(3196,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-19 03:34:00'),(3197,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-19 03:34:01'),(3198,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-19 03:34:02'),(3199,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-19 03:34:05'),(3200,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:34:15'),(3201,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:34:20'),(3202,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:35:48'),(3203,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:35:48'),(3204,'admin',1,'admin','Model','create','创建模型','GET','2019-03-19 03:35:49'),(3205,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:35:53'),(3206,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:35:53'),(3207,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:35:54'),(3208,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:35:59'),(3209,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:05'),(3210,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:12'),(3211,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:16'),(3212,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:19'),(3213,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:22'),(3214,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:28'),(3215,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:32'),(3216,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:35'),(3217,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:37'),(3218,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:39'),(3219,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:41'),(3220,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:44'),(3221,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:46'),(3222,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:49'),(3223,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:52'),(3224,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:55'),(3225,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:36:58'),(3226,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:37:01'),(3227,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:37:03'),(3228,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:37:26'),(3229,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:37:27'),(3230,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:37:29'),(3231,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:37:29'),(3232,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:37:31'),(3233,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:37:34'),(3234,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:37:37'),(3235,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:37:55'),(3236,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:37:56'),(3237,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:37:58'),(3238,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:37:58'),(3239,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:38:01'),(3240,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:06'),(3241,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:09'),(3242,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:12'),(3243,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:14'),(3244,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:17'),(3245,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:19'),(3246,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:21'),(3247,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:23'),(3248,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:26'),(3249,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:30'),(3250,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:32'),(3251,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:39'),(3252,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:43'),(3253,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:47'),(3254,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:49'),(3255,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:51'),(3256,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:53'),(3257,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:56'),(3258,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:38:58'),(3259,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:39:00'),(3260,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:39:04'),(3261,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:44:20'),(3262,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:44:21'),(3263,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:44:21'),(3264,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:44:50'),(3265,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:44:50'),(3266,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:44:51'),(3267,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:44:55'),(3268,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 03:47:59'),(3269,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:48:03'),(3270,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:48:05'),(3271,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 03:48:07'),(3272,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:48:24'),(3273,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:48:24'),(3274,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:48:29'),(3275,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:48:29'),(3276,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:48:31'),(3277,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:48:31'),(3278,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:51:30'),(3279,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:51:30'),(3280,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:51:39'),(3281,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:51:40'),(3282,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 03:51:46'),(3283,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 03:51:46'),(3284,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 03:51:48'),(3285,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 03:51:48'),(3286,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 05:57:11'),(3287,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 05:57:12'),(3288,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 05:57:15'),(3289,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 05:57:15'),(3290,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 05:59:01'),(3291,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 05:59:01'),(3292,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 05:59:03'),(3293,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 05:59:03'),(3294,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 05:59:32'),(3295,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 05:59:33'),(3296,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 05:59:57'),(3297,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 05:59:57'),(3298,'admin',1,'admin','Model','create','创建模型','GET','2019-03-19 06:00:03'),(3299,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:00:06'),(3300,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:00:07'),(3301,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:00:12'),(3302,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:00:12'),(3303,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:03:19'),(3304,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:03:19'),(3305,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:03:21'),(3306,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:03:22'),(3307,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:03:24'),(3308,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:03:53'),(3309,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:03:53'),(3310,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:05:05'),(3311,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:06:54'),(3312,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:06:55'),(3313,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:07:37'),(3314,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:07:38'),(3315,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:07:46'),(3316,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:07:46'),(3317,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:07:47'),(3318,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:07:47'),(3319,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:07:49'),(3320,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:09:27'),(3321,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:09:28'),(3322,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:09:29'),(3323,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:10:03'),(3324,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:10:47'),(3325,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:10:47'),(3326,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:10:48'),(3327,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:12:38'),(3328,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:12:38'),(3329,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:12:39'),(3330,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:15:21'),(3331,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:15:22'),(3332,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:15:23'),(3333,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:15:23'),(3334,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:15:24'),(3335,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:15:24'),(3336,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:15:25'),(3337,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:15:43'),(3338,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:17:27'),(3339,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:17:28'),(3340,'admin',1,'admin','Model','create','创建模型','GET','2019-03-19 06:17:31'),(3341,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:17:40'),(3342,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:17:41'),(3343,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:17:42'),(3344,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 06:18:18'),(3345,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 06:18:18'),(3346,'admin',1,'admin','Role','index','角色管理','GET','2019-03-19 06:18:35'),(3347,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-19 06:18:35'),(3348,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-19 06:18:36'),(3349,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-19 06:18:36'),(3350,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:18:45'),(3351,'admin',1,'admin','Role','index','角色管理','GET','2019-03-19 06:21:03'),(3352,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-19 06:21:03'),(3353,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:21:07'),(3354,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:21:14'),(3355,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:21:50'),(3356,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:21:51'),(3357,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:21:52'),(3358,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:21:52'),(3359,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:21:53'),(3360,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:22:55'),(3361,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:22:56'),(3362,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:22:58'),(3363,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:22:58'),(3364,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:23:00'),(3365,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:23:50'),(3366,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:23:51'),(3367,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:23:52'),(3368,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:23:53'),(3369,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:23:53'),(3370,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:24:22'),(3371,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 06:24:25'),(3372,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 06:24:28'),(3373,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 06:24:32'),(3374,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:25:57'),(3375,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:25:58'),(3376,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:28:32'),(3377,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:28:32'),(3378,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:29:12'),(3379,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:29:13'),(3380,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:30:33'),(3381,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:30:34'),(3382,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:30:36'),(3383,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:30:36'),(3384,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:33:21'),(3385,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:33:22'),(3386,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:33:23'),(3387,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:33:23'),(3388,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:34:01'),(3389,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:34:02'),(3390,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:34:03'),(3391,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:34:03'),(3392,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:35:53'),(3393,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:35:54'),(3394,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:35:55'),(3395,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:35:55'),(3396,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:37:03'),(3397,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:37:04'),(3398,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:37:05'),(3399,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:37:06'),(3400,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:37:07'),(3401,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:37:08'),(3402,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:37:10'),(3403,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:37:10'),(3404,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:37:11'),(3405,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:37:12'),(3406,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:37:14'),(3407,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:37:14'),(3408,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:37:40'),(3409,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:38:09'),(3410,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:38:09'),(3411,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:39:33'),(3412,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:39:33'),(3413,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:39:52'),(3414,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:39:52'),(3415,'admin',1,'admin','Log','index','日志记录','GET','2019-03-19 06:39:54'),(3416,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-19 06:39:55'),(3417,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:40:02'),(3418,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:40:03'),(3419,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:40:04'),(3420,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:40:05'),(3421,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:40:57'),(3422,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:40:57'),(3423,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:40:59'),(3424,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:40:59'),(3425,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 06:41:10'),(3426,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 06:41:10'),(3427,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 06:41:13'),(3428,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 06:41:17'),(3429,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 06:49:20'),(3430,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 06:49:20'),(3431,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:09:34'),(3432,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:09:34'),(3433,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:09:41'),(3434,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:09:41'),(3435,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:09:44'),(3436,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:09:47'),(3437,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:09:49'),(3438,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:10:01'),(3439,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:10:01'),(3440,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:10:02'),(3441,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:10:18'),(3442,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:10:19'),(3443,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:10:20'),(3444,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:10:20'),(3445,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:10:21'),(3446,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:10:29'),(3447,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:10:43'),(3448,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:10:44'),(3449,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:10:45'),(3450,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:10:45'),(3451,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:10:46'),(3452,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:10:49'),(3453,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:10:52'),(3454,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:11:02'),(3455,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:11:02'),(3456,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:11:03'),(3457,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:11:05'),(3458,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:11:16'),(3459,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:11:16'),(3460,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:11:17'),(3461,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:11:20'),(3462,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:11:22'),(3463,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:36:07'),(3464,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:36:11'),(3465,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:36:22'),(3466,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:36:22'),(3467,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:37:33'),(3468,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:37:33'),(3469,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:37:34'),(3470,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:37:34'),(3471,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:37:35'),(3472,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:37:46'),(3473,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:37:46'),(3474,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:37:50'),(3475,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:37:50'),(3476,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:37:52'),(3477,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:37:54'),(3478,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:38:03'),(3479,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:38:04'),(3480,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:41:20'),(3481,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:41:21'),(3482,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:41:22'),(3483,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:41:25'),(3484,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:41:33'),(3485,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:41:34'),(3486,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:41:39'),(3487,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:41:41'),(3488,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:41:55'),(3489,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:41:55'),(3490,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:42:07'),(3491,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:42:16'),(3492,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:44:21'),(3493,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:44:21'),(3494,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:44:22'),(3495,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:44:25'),(3496,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:44:54'),(3497,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:47:31'),(3498,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:47:36'),(3499,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:47:48'),(3500,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:49:41'),(3501,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:50:05'),(3502,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:50:05'),(3503,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:50:20'),(3504,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:50:20'),(3505,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:50:21'),(3506,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:50:24'),(3507,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:50:44'),(3508,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:53:13'),(3509,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:53:18'),(3510,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:55:08'),(3511,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 07:56:17'),(3512,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 07:56:17'),(3513,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 07:56:19'),(3514,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 07:56:19'),(3515,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 07:56:20'),(3516,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 07:56:22'),(3517,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 07:56:32'),(3518,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 08:00:16'),(3519,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 08:00:17'),(3520,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 08:01:25'),(3521,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 08:03:30'),(3522,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:03:30'),(3523,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:04:00'),(3524,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:04:01'),(3525,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:04:45'),(3526,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:04:46'),(3527,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:04:50'),(3528,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:04:50'),(3529,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:04:57'),(3530,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:04:57'),(3531,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:05:02'),(3532,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:05:02'),(3533,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:16'),(3534,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:16'),(3535,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:18'),(3536,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:18'),(3537,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:22'),(3538,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:23'),(3539,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:25'),(3540,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:25'),(3541,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:27'),(3542,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:27'),(3543,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:28'),(3544,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:28'),(3545,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:30'),(3546,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:31'),(3547,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:32'),(3548,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:32'),(3549,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:34'),(3550,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:34'),(3551,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:35'),(3552,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:35'),(3553,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:37'),(3554,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:37'),(3555,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:23:38'),(3556,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:23:39'),(3557,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:23:40'),(3558,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:23:40'),(3559,'admin',1,'admin','User','index','用户管理','GET','2019-03-19 08:26:13'),(3560,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-19 08:26:14'),(3561,'admin',1,'admin','User','getlist','用户列表','GET','2019-03-19 08:26:16'),(3562,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:28:47'),(3563,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:28:47'),(3564,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:28:49'),(3565,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:28:50'),(3566,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:28:56'),(3567,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:28:56'),(3568,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:28:59'),(3569,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:28:59'),(3570,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:01'),(3571,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:01'),(3572,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:29:02'),(3573,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:29:02'),(3574,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:03'),(3575,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:04'),(3576,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:29:05'),(3577,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:29:05'),(3578,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:06'),(3579,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:06'),(3580,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:29:07'),(3581,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:29:08'),(3582,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:09'),(3583,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:09'),(3584,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:29:10'),(3585,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:29:11'),(3586,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:12'),(3587,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:12'),(3588,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:29:34'),(3589,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:29:35'),(3590,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:29:37'),(3591,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:08'),(3592,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:08'),(3593,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:10'),(3594,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:10'),(3595,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:21'),(3596,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:22'),(3597,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:23'),(3598,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:23'),(3599,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:25'),(3600,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:25'),(3601,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:28'),(3602,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:28'),(3603,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:31'),(3604,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:31'),(3605,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:32'),(3606,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:33'),(3607,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:35'),(3608,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:35'),(3609,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:36'),(3610,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:37'),(3611,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:30:38'),(3612,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:30:39'),(3613,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:30:40'),(3614,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:30:40'),(3615,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:31:39'),(3616,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:31:40'),(3617,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:31:41'),(3618,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:31:41'),(3619,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:31:44'),(3620,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:31:44'),(3621,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:31:46'),(3622,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:31:47'),(3623,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:31:49'),(3624,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:31:49'),(3625,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:31:50'),(3626,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:31:50'),(3627,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:32:50'),(3628,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:32:50'),(3629,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:32:53'),(3630,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:32:53'),(3631,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:32:55'),(3632,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:32:56'),(3633,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:32:57'),(3634,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:32:57'),(3635,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:33:01'),(3636,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:33:01'),(3637,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:34:37'),(3638,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:34:37'),(3639,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:36:22'),(3640,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:36:22'),(3641,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:36:24'),(3642,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:36:57'),(3643,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:36:57'),(3644,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:37:08'),(3645,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:37:08'),(3646,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:37:11'),(3647,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:37:11'),(3648,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:38:40'),(3649,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:38:40'),(3650,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:38:42'),(3651,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:39:35'),(3652,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:39:35'),(3653,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:39:36'),(3654,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:39:37'),(3655,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:41:31'),(3656,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:41:31'),(3657,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:41:33'),(3658,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:42:11'),(3659,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:42:11'),(3660,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:42:13'),(3661,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:43:23'),(3662,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:43:24'),(3663,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:43:25'),(3664,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:43:26'),(3665,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:44:45'),(3666,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:44:45'),(3667,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:44:46'),(3668,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:45:15'),(3669,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:45:15'),(3670,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:45:17'),(3671,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:45:28'),(3672,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:45:28'),(3673,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:45:30'),(3674,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:46:38'),(3675,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:46:38'),(3676,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:46:40'),(3677,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:46:40'),(3678,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:47:31'),(3679,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:50:35'),(3680,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:50:36'),(3681,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:50:38'),(3682,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:56:50'),(3683,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:56:50'),(3684,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:57:00'),(3685,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:57:21'),(3686,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:57:21'),(3687,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:57:23'),(3688,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:57:32'),(3689,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:57:32'),(3690,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:57:34'),(3691,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:57:34'),(3692,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:59:40'),(3693,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:59:40'),(3694,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:59:42'),(3695,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:59:42'),(3696,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 08:59:47'),(3697,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 08:59:47'),(3698,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 08:59:48'),(3699,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 08:59:49'),(3700,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 09:00:12'),(3701,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 09:00:13'),(3702,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 09:00:15'),(3703,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:00:15'),(3704,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:00:17'),(3705,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:00:19'),(3706,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:00:36'),(3707,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:04:30'),(3708,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 09:08:05'),(3709,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 09:08:05'),(3710,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 09:08:15'),(3711,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:08:15'),(3712,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:08:18'),(3713,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:08:26'),(3714,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:08:48'),(3715,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 09:10:41'),(3716,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 09:10:41'),(3717,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 09:10:44'),(3718,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:10:44'),(3719,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:10:46'),(3720,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:10:49'),(3721,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:11:00'),(3722,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:11:00'),(3723,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 09:12:32'),(3724,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 09:12:32'),(3725,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 09:12:34'),(3726,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:12:34'),(3727,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:12:36'),(3728,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:12:39'),(3729,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:12:56'),(3730,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:12:56'),(3731,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:13:25'),(3732,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:13:27'),(3733,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:13:40'),(3734,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:13:40'),(3735,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 09:13:44'),(3736,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-19 09:13:52'),(3737,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:14:05'),(3738,'admin',1,'admin','Field','create','创建字段','POST','2019-03-19 09:15:11'),(3739,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:15:11'),(3740,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 09:47:12'),(3741,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 09:47:12'),(3742,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 09:47:16'),(3743,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 09:47:16'),(3744,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 10:03:40'),(3745,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 10:03:40'),(3746,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 10:03:43'),(3747,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 10:04:24'),(3748,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 10:04:25'),(3749,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 10:04:27'),(3750,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 10:04:27'),(3751,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 10:08:41'),(3752,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 10:08:41'),(3753,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 10:08:42'),(3754,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 10:08:43'),(3755,'admin',1,'admin','Model','index','模型管理','GET','2019-03-19 10:09:00'),(3756,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-19 10:09:00'),(3757,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 10:09:07'),(3758,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 10:09:07'),(3759,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-19 10:09:29'),(3760,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-19 10:09:30'),(3761,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-19 10:09:37'),(3762,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-19 10:09:38'),(3763,'admin',1,'admin','Category','edit','编辑栏目','GET','2019-03-19 10:09:57'),(3764,'admin',1,'admin','Field','index','字段管理','GET','2019-03-19 10:10:25'),(3765,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-19 10:10:25'),(3766,'admin',1,'admin','Field','create','创建字段','GET','2019-03-19 10:11:52'),(3767,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 00:33:48'),(3768,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 00:33:49'),(3769,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 00:33:54'),(3770,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 00:33:55'),(3771,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 00:34:42'),(3772,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 00:34:42'),(3773,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 00:35:25'),(3774,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 00:35:25'),(3775,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 00:35:58'),(3776,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 00:35:59'),(3777,'admin',1,'admin','Permission','index','菜单管理','GET','2019-03-20 00:36:06'),(3778,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-20 00:36:07'),(3779,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-20 00:36:09'),(3780,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-20 00:37:20'),(3781,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-20 00:37:20'),(3782,'admin',1,'admin','Permission','create','创建菜单','GET','2019-03-20 00:37:24'),(3783,'admin',1,'admin','Permission','create','创建菜单','POST','2019-03-20 00:38:24'),(3784,'admin',1,'admin','Permission','getlist','菜单列表','GET','2019-03-20 00:38:25'),(3785,'admin',1,'admin','Role','index','角色管理','GET','2019-03-20 00:38:41'),(3786,'admin',1,'admin','Role','getlist','角色列表','GET','2019-03-20 00:38:42'),(3787,'admin',1,'admin','Role','givepermissions','分配权限','GET','2019-03-20 00:38:43'),(3788,'admin',1,'admin','Role','getpermissionsofrole','获取角色权限','POST','2019-03-20 00:38:44'),(3789,'admin',1,'admin','Role','givepermissions','分配权限','POST','2019-03-20 00:38:55'),(3790,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:02:31'),(3791,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:02:31'),(3792,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:02:33'),(3793,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:02:33'),(3794,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-20 01:02:37'),(3795,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-20 01:02:37'),(3796,'admin',1,'admin','Category','index','栏目设置','GET','2019-03-20 01:02:38'),(3797,'admin',1,'admin','Category','getlist','栏目列表','GET','2019-03-20 01:02:38'),(3798,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:02:47'),(3799,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:02:47'),(3800,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:02:53'),(3801,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:02:55'),(3802,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:03:00'),(3803,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:03:01'),(3804,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:03:42'),(3805,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:03:42'),(3806,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:03:43'),(3807,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:03:43'),(3808,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:03:48'),(3809,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:05:20'),(3810,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:05:21'),(3811,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:05:22'),(3812,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:05:22'),(3813,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:05:26'),(3814,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:05:26'),(3815,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:05:27'),(3816,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:05:28'),(3817,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:05:32'),(3818,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:05:45'),(3819,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:05:46'),(3820,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:08:11'),(3821,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:08:11'),(3822,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:08:15'),(3823,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:09:09'),(3824,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:11:54'),(3825,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:11:54'),(3826,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:12:15'),(3827,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:12:15'),(3828,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:12:18'),(3829,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:12:18'),(3830,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:12:20'),(3831,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:12:20'),(3832,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:13:04'),(3833,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:13:04'),(3834,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:13:10'),(3835,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:13:10'),(3836,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:13:11'),(3837,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:13:12'),(3838,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:13:15'); INSERT INTO `mkcms_option_log` VALUES (3839,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:16:22'),(3840,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:16:23'),(3841,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:16:25'),(3842,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:16:29'),(3843,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:16:29'),(3844,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 01:16:32'),(3845,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:16:38'),(3846,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:16:38'),(3847,'admin',1,'admin','Field','create','创建字段','GET','2019-03-20 01:16:42'),(3848,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-20 01:16:53'),(3849,'admin',1,'admin','Field','create','创建字段','POST','2019-03-20 01:17:35'),(3850,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:17:35'),(3851,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:17:39'),(3852,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:18:28'),(3853,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:18:28'),(3854,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:18:30'),(3855,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:18:30'),(3856,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:25:58'),(3857,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:25:59'),(3858,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:26:01'),(3859,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:26:01'),(3860,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:26:02'),(3861,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:26:02'),(3862,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 01:26:03'),(3863,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 01:26:06'),(3864,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 01:26:08'),(3865,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 01:26:09'),(3866,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:26:10'),(3867,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 01:26:12'),(3868,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 01:26:15'),(3869,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:26:15'),(3870,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 01:26:54'),(3871,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:40:51'),(3872,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:40:51'),(3873,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:40:52'),(3874,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:40:53'),(3875,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:40:54'),(3876,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:43:02'),(3877,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 01:43:20'),(3878,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 01:43:21'),(3879,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:43:22'),(3880,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:43:23'),(3881,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:43:24'),(3882,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:45:37'),(3883,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:45:37'),(3884,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:45:39'),(3885,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:47:06'),(3886,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:47:06'),(3887,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:47:07'),(3888,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:49:39'),(3889,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:49:40'),(3890,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:49:41'),(3891,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:51:35'),(3892,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:51:35'),(3893,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:51:36'),(3894,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:56:42'),(3895,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:56:43'),(3896,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 01:56:43'),(3897,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 01:56:43'),(3898,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:56:45'),(3899,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-20 01:59:14'),(3900,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-20 01:59:16'),(3901,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-20 01:59:19'),(3902,'admin',1,'admin','Field','defaultvalue','取字段默认值','POST','2019-03-20 01:59:23'),(3903,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 01:59:38'),(3904,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:00:36'),(3905,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:00:36'),(3906,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:00:37'),(3907,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:07:12'),(3908,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:07:12'),(3909,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:07:13'),(3910,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:09:41'),(3911,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:09:42'),(3912,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:09:43'),(3913,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:17:41'),(3914,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:17:42'),(3915,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:17:43'),(3916,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:18:11'),(3917,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:18:11'),(3918,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:18:12'),(3919,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 02:19:49'),(3920,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:19:50'),(3921,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:20:00'),(3922,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:20:00'),(3923,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 02:21:05'),(3924,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 02:21:05'),(3925,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:21:06'),(3926,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:21:07'),(3927,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:21:08'),(3928,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 02:42:20'),(3929,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:42:21'),(3930,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 02:42:45'),(3931,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 02:42:46'),(3932,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:42:50'),(3933,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:42:50'),(3934,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:42:58'),(3935,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 02:43:19'),(3936,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:43:20'),(3937,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:43:33'),(3938,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:44:59'),(3939,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:45:00'),(3940,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:45:00'),(3941,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:45:01'),(3942,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:45:02'),(3943,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 02:45:11'),(3944,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:45:11'),(3945,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 02:45:48'),(3946,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 02:45:57'),(3947,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:45:57'),(3948,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:47:14'),(3949,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:47:14'),(3950,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 02:47:24'),(3951,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 02:47:27'),(3952,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 02:47:28'),(3953,'admin',1,'admin','Log','index','日志记录','GET','2019-03-20 02:47:29'),(3954,'admin',1,'admin','Log','getlist','日志列表','GET','2019-03-20 02:47:30'),(3955,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 02:47:41'),(3956,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 02:47:41'),(3957,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:15:37'),(3958,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:15:37'),(3959,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:15:41'),(3960,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:15:45'),(3961,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:27:27'),(3962,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:27:27'),(3963,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:27:28'),(3964,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:27:30'),(3965,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:27:30'),(3966,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:28:36'),(3967,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:28:37'),(3968,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:28:58'),(3969,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:29:00'),(3970,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:29:00'),(3971,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:29:03'),(3972,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:29:04'),(3973,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:29:04'),(3974,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:29:20'),(3975,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:29:21'),(3976,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:29:21'),(3977,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:29:45'),(3978,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:29:46'),(3979,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:29:46'),(3980,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:30:06'),(3981,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:30:07'),(3982,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 03:31:33'),(3983,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 03:31:33'),(3984,'admin',1,'admin','Field','edit','编辑字段','GET','2019-03-20 03:31:44'),(3985,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:46'),(3986,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:48'),(3987,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:49'),(3988,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:49'),(3989,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:49'),(3990,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:49'),(3991,'admin',1,'admin','Field','edit','编辑字段','POST','2019-03-20 03:31:49'),(3992,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:19'),(3993,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:20'),(3994,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:21'),(3995,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:21'),(3996,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:21'),(3997,'admin',1,'admin','Field','delete','删除字段','POST','2019-03-20 03:34:21'),(3998,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 03:34:24'),(3999,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 03:34:25'),(4000,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 03:34:25'),(4001,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 03:34:25'),(4002,'admin',1,'admin','Field','index','字段管理','GET','2019-03-20 03:34:26'),(4003,'admin',1,'admin','Field','getlist','字段列表','GET','2019-03-20 03:34:26'),(4004,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:34:52'),(4005,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:34:52'),(4006,'admin',1,'admin','Model','edit','编辑模型','GET','2019-03-20 03:34:55'),(4007,'admin',1,'admin','Model','edit','编辑模型','POST','2019-03-20 03:34:57'),(4008,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:34:57'),(4009,'admin',1,'admin','Model','delete','删除模型','POST','2019-03-20 03:35:04'),(4010,'admin',1,'admin','Model','index','模型管理','GET','2019-03-20 03:39:23'),(4011,'admin',1,'admin','Model','getlist','模型列表','GET','2019-03-20 03:39:23'); # # Structure for table "mkcms_permissions" # CREATE TABLE `mkcms_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '菜单名称', `icon` varchar(50) NOT NULL DEFAULT '' COMMENT '菜单图标', `pid` smallint(6) NOT NULL COMMENT '父级菜单ID', `module` varchar(50) NOT NULL DEFAULT '' COMMENT '模块名称', `controller` varchar(50) NOT NULL DEFAULT '' COMMENT '控制器名称', `action` varchar(50) DEFAULT NULL COMMENT '方法名称', `is_show` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 展示 2 隐藏', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8; # # Data for table "mkcms_permissions" # INSERT INTO `mkcms_permissions` VALUES (1,'系统管理','layui-icon-auz',0,'admin','admin','index',1,'2019-03-15 00:50:03','2019-03-15 00:50:03'),(2,'用户管理','',1,'admin','user','index',1,'2019-03-11 03:45:18','2019-03-11 03:45:18'),(3,'角色管理','',1,'admin','role','index',1,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(4,'菜单管理','',1,'admin','permission','index',1,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(5,'创建用户','',2,'admin','user','create',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(6,'编辑用户','',2,'admin','user','edit',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(7,'删除用户','',2,'admin','user','delete',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(8,'创建角色','',3,'admin','role','create',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(9,'编辑角色','',3,'admin','role','edit',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(10,'删除角色','',3,'admin','role','delete',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(11,'获取角色权限','',3,'admin','role','getPermissionsOfRole',2,'2019-03-08 05:37:22','2019-03-07 16:04:41'),(12,'分配权限','',3,'admin','role','givePermissions',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(13,'分配角色','',2,'admin','user','giveRoles',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(14,'创建菜单','',4,'admin','permission','create',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(15,'编辑菜单','',4,'admin','permission','edit',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(16,'删除菜单','',4,'admin','permission','delete',2,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(17,'日志记录','',1,'admin','Log','index',1,'2019-03-07 16:04:41','2019-03-07 16:04:41'),(18,'用户列表','',2,'admin','user','getList',2,'2019-03-08 01:18:16','2019-03-07 16:04:41'),(19,'角色列表','',3,'admin','role','getList',2,'2019-03-08 01:18:04','0000-00-00 00:00:00'),(20,'菜单列表','',4,'admin','permission','getList',2,'2019-03-08 01:18:09','2019-03-08 08:47:00'),(22,'日志列表','',17,'admin','log','getList',2,'2019-03-08 05:55:08','0000-00-00 00:00:00'),(23,'内容管理','layui-icon-app',0,'admin','content','index',1,'2019-03-14 00:57:28','2019-03-14 00:57:28'),(24,'栏目设置','',23,'admin','category','index',1,'2019-03-12 10:26:37','2019-03-12 10:26:37'),(25,'管理内容','',23,'admin','content','index',1,'2019-03-12 02:06:14','2019-03-12 02:06:14'),(26,'栏目列表','',24,'admin','category','getList',2,'2019-03-14 05:49:25','2019-03-14 05:49:25'),(27,'创建栏目','',24,'admin','category','create',2,'2019-03-14 05:49:34','2019-03-14 05:49:34'),(28,'设置','layui-icon-set',0,'admin','upload',NULL,1,'2019-03-14 00:55:48','2019-03-14 00:55:48'),(29,'图片上传','',28,'admin','upload','image',2,'2019-03-14 00:54:33','2019-03-14 00:54:33'),(30,'删除栏目','',24,'admin','category','delete',2,'2019-03-14 05:49:46','2019-03-14 05:49:46'),(31,'编辑栏目','',24,'admin','category','edit',2,'2019-03-14 05:50:01','2019-03-14 05:50:01'),(32,'模型管理','',1,'admin','model','index',1,'2019-03-15 00:48:11','2019-03-15 00:48:11'),(33,'模型列表','',32,'admin','model','getList',2,'2019-03-15 06:16:03','2019-03-15 06:16:03'),(34,'创建模型','',32,'admin','model','create',2,'2019-03-15 06:40:49','2019-03-15 06:40:49'),(35,'编辑模型','',32,'admin','model','edit',2,'2019-03-15 08:03:11','2019-03-15 08:03:11'),(36,'删除模型','',32,'admin','model','delete',2,'2019-03-15 09:55:36','2019-03-15 09:55:36'),(37,'字段管理','',1,'admin','field','index',2,'2019-03-19 02:25:10','2019-03-19 02:25:10'),(38,'字段列表','',37,'admin','field','getList',2,'2019-03-19 02:26:00','2019-03-19 02:26:00'),(39,'创建字段','',37,'admin','field','create',2,'2019-03-19 02:31:04','2019-03-19 02:31:04'),(40,'取字段默认值','',37,'admin','field','defaultValue',2,'2019-03-19 03:33:57','2019-03-19 03:33:57'),(41,'编辑字段','',37,'admin','field','edit',2,'2019-03-20 00:37:20','2019-03-20 00:37:20'),(42,'删除字段','',37,'admin','field','delete',2,'2019-03-20 00:38:24','2019-03-20 00:38:24'); # # Structure for table "mkcms_role_has_categories" # CREATE TABLE `mkcms_role_has_categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL COMMENT '角色ID', `category_id` int(11) NOT NULL COMMENT '栏目ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='角色拥有的栏目权限'; # # Data for table "mkcms_role_has_categories" # INSERT INTO `mkcms_role_has_categories` VALUES (1,1,20),(2,1,21),(3,1,22),(5,1,24),(8,1,27),(13,1,35),(14,1,36),(24,1,68),(25,1,73),(26,1,83),(29,1,86),(30,1,87),(31,1,88); # # Structure for table "mkcms_role_has_permissions" # CREATE TABLE `mkcms_role_has_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) NOT NULL COMMENT '角色ID', `permission_id` int(11) NOT NULL COMMENT '权限ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2731 DEFAULT CHARSET=utf8; # # Data for table "mkcms_role_has_permissions" # INSERT INTO `mkcms_role_has_permissions` VALUES (2543,2,1),(2544,2,2),(2545,2,5),(2546,2,6),(2547,2,7),(2548,2,13),(2549,2,18),(2550,2,3),(2551,2,8),(2552,2,9),(2553,2,10),(2554,2,11),(2555,2,12),(2556,2,19),(2557,2,4),(2558,2,14),(2559,2,15),(2560,2,16),(2561,2,20),(2562,2,17),(2563,2,22),(2564,2,32),(2565,2,33),(2566,2,34),(2567,2,35),(2568,2,36),(2569,2,23),(2570,2,24),(2571,2,26),(2572,2,27),(2573,2,30),(2574,2,25),(2575,2,28),(2576,2,29),(2690,1,1),(2691,1,2),(2692,1,5),(2693,1,6),(2694,1,7),(2695,1,13),(2696,1,18),(2697,1,3),(2698,1,8),(2699,1,9),(2700,1,10),(2701,1,11),(2702,1,12),(2703,1,19),(2704,1,4),(2705,1,14),(2706,1,15),(2707,1,16),(2708,1,20),(2709,1,17),(2710,1,22),(2711,1,32),(2712,1,33),(2713,1,34),(2714,1,35),(2715,1,36),(2716,1,37),(2717,1,38),(2718,1,39),(2719,1,40),(2720,1,41),(2721,1,42),(2722,1,23),(2723,1,24),(2724,1,26),(2725,1,27),(2726,1,30),(2727,1,31),(2728,1,25),(2729,1,28),(2730,1,29); # # Structure for table "mkcms_roles" # CREATE TABLE `mkcms_roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '角色名称', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; # # Data for table "mkcms_roles" # INSERT INTO `mkcms_roles` VALUES (1,'超级管理员','2019-03-07 16:04:41','2019-03-07 16:04:41'),(2,'管理员','2019-03-07 08:20:39','0000-00-00 00:00:00'); # # Structure for table "mkcms_site" # CREATE TABLE `mkcms_site` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(60) NOT NULL DEFAULT '' COMMENT '站点名称', `logo` varchar(255) DEFAULT '' COMMENT '站点Logo', `seo_title` varchar(255) DEFAULT '' COMMENT 'SEO标题', `seo_keywords` varchar(255) DEFAULT '' COMMENT 'SEO关键词', `seo_description` varchar(512) DEFAULT '' COMMENT 'SEO描述', `domain` varchar(128) DEFAULT '' COMMENT '绑定域名', `mark` varchar(128) NOT NULL DEFAULT '' COMMENT 'en、zh、cn、guangzhou', `default_style` varchar(128) NOT NULL DEFAULT '' COMMENT '站点风格', `dirname` varchar(30) DEFAULT '' COMMENT '站点目录', `code` text COMMENT '统计代码', `notice` text COMMENT '站点公告', `setting` text COMMENT '其他配置', `sort` int(6) NOT NULL DEFAULT '9' COMMENT '排序', `status` int(1) NOT NULL DEFAULT '1' COMMENT '0关闭站点 1启用站点', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='站点设置'; # # Data for table "mkcms_site" # INSERT INTO `mkcms_site` VALUES (1,'简体中文','','默认站点','默认站点','默认站点','mkcms.test','cn','default','',NULL,NULL,NULL,1,1),(2,'English','','English','English','English','mkcms.test','en','default','',NULL,NULL,NULL,2,1); # # Structure for table "mkcms_user_has_roles" # CREATE TABLE `mkcms_user_has_roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL COMMENT '用户ID', `role_id` int(11) NOT NULL COMMENT '角色ID', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; # # Data for table "mkcms_user_has_roles" # INSERT INTO `mkcms_user_has_roles` VALUES (4,2,1),(5,2,2),(6,1,1),(7,1,2); # # Structure for table "mkcms_users" # CREATE TABLE `mkcms_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', `email` varchar(255) NOT NULL DEFAULT '' COMMENT '邮箱', `password` varchar(255) NOT NULL DEFAULT '' COMMENT '密码', `remember_token` varchar(255) NOT NULL DEFAULT '' COMMENT '记住token', `login_ip` varchar(50) NOT NULL DEFAULT '' COMMENT '登录IP', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', `login_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '最近登录时间', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`,`email`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='用户表'; # # Data for table "mkcms_users" # INSERT INTO `mkcms_users` VALUES (1,'admin','<EMAIL>','$2<PASSWORD>v.','<KEY>','192.168.10.1','2019-03-07 16:04:41','2019-03-20 08:33:07'),(2,'star','<EMAIL>','<PASSWORD>','','','2019-03-07 08:19:14','0000-00-00 00:00:00');
INSERT INTO person (address,first_name,gender,last_name) VALUES ('Joinville','Miguel','Male','Bertemes'); INSERT INTO person (address,first_name,gender,last_name) VALUES ('Joinville','Rogeria','Female','Bertemes'); INSERT INTO person (address,first_name,gender,last_name) VALUES ('Joinville','Reginaldo','Male','Costa');
<reponame>angujo/ETL-CDMBuilder<filename>source/org.ohdsi.cdm.framework.etl/org.ohdsi.cdm.framework.etl.optumpanther/ETL/OPTUMPANTHER/CdmSource.sql truncate table {sc}.CDM_SOURCE; truncate table {sc}.CDM_DOMAIN_META; INSERT INTO {sc}.CDM_SOURCE (CDM_SOURCE_NAME ,CDM_SOURCE_ABBREVIATION ,CDM_HOLDER ,SOURCE_DESCRIPTION ,SOURCE_DOCUMENTATION_REFERENCE ,CDM_ETL_REFERENCE ,SOURCE_RELEASE_DATE ,CDM_RELEASE_DATE ,CDM_VERSION ,VOCABULARY_VERSION) VALUES ( 'Optum’s Integrated Claims-Clinical Dataset (EHR Data Only)', 'Optum EHR Only', 'Janssen R&D', 'Optum© de-identified Electronic Health Record Dataset represents Humedica’s Electronic Health Record data a medical records database. The medical record data includes clinical information, inclusive of prescriptions as prescribed and administered, lab results, vital signs, body measurements, diagnoses, procedures, and information derived from clinical Notes using Natural Language Processing (NLP).', 'https://catalog.rwe.jnj.com/index#jnjsearches?dataSetUri=%2Fdataset%2F4c6c9253-7625-4055-b33e-6fda9b1bc57e.xml', 'http://www.ohdsi.org/web/wiki/doku.php?id=documentation:example_etls', '{0}', '{3}', 'V5.2.0', '{1}' )
<filename>src/app/voltdb/voltdb_src/tests/testprocs/org/voltdb_testprocs/regressionsuites/fixedsql/fixed-sql-ddl.sql CREATE TABLE VarcharBYTES( ID INTEGER DEFAULT 0 NOT NULL, var2 VARCHAR(2 BYTES), var80 VARCHAR(80 BYTES), PRIMARY KEY (ID) ); CREATE TABLE VarcharTB ( ID INTEGER DEFAULT 0 NOT NULL, var2 VARCHAR(2), var80 VARCHAR(80), PRIMARY KEY (ID) ); CREATE TABLE VarLength ( ID INTEGER DEFAULT 0 NOT NULL, var1 VARCHAR(10), var2 VARCHAR(80), bin1 VARBINARY(10), bin2 VARBINARY(80), PRIMARY KEY (ID) ); CREATE TABLE P1 ( ID INTEGER DEFAULT 0 NOT NULL, DESC VARCHAR(300), NUM INTEGER, RATIO FLOAT, PRIMARY KEY (ID) ); PARTITION TABLE P1 ON COLUMN ID; CREATE TABLE R1 ( ID INTEGER DEFAULT 0 NOT NULL, DESC VARCHAR(300), NUM INTEGER, RATIO FLOAT, PRIMARY KEY (ID) ); CREATE PROCEDURE R1_PROC1 AS SELECT NUM + 0.1 FROM R1; CREATE PROCEDURE R1_PROC2 AS SELECT NUM + 1.0E-1 FROM R1; CREATE TABLE P2 ( ID INTEGER DEFAULT 0 NOT NULL, DESC VARCHAR(300), NUM INTEGER NOT NULL, RATIO FLOAT NOT NULL, CONSTRAINT P2_PK_TREE PRIMARY KEY (ID) ); PARTITION TABLE P2 ON COLUMN ID; CREATE TABLE R2 ( ID INTEGER DEFAULT 0 NOT NULL, DESC VARCHAR(300), NUM INTEGER NOT NULL, RATIO FLOAT NOT NULL, CONSTRAINT R2_PK_TREE PRIMARY KEY (ID) ); CREATE TABLE R3 ( ID INTEGER DEFAULT 0 NOT NULL, NUM INTEGER ); create index idx1 on R3 (id); create unique index idx2 on R3 (id,num); -- not suppose to define index on this table CREATE TABLE R4 ( ID INTEGER DEFAULT 0 NOT NULL, NUM INTEGER ); CREATE TABLE P1_DECIMAL ( ID INTEGER DEFAULT 0 NOT NULL, CASH DECIMAL NOT NULL, CREDIT DECIMAL NOT NULL, RATIO FLOAT NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE R1_DECIMAL ( ID INTEGER DEFAULT 0 NOT NULL, CASH DECIMAL NOT NULL, CREDIT DECIMAL NOT NULL, RATIO FLOAT NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE COUNT_NULL ( TRICKY TINYINT, ID INTEGER DEFAULT 0 NOT NULL, NUM INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE OBJECT_DETAIL ( OBJECT_DETAIL_ID INTEGER NOT NULL, NAME VARCHAR(256) NOT NULL, DESCRIPTION VARCHAR(1024) NOT NULL, PRIMARY KEY (OBJECT_DETAIL_ID) ); PARTITION TABLE OBJECT_DETAIL ON COLUMN OBJECT_DETAIL_ID; CREATE TABLE ASSET ( ASSET_ID INTEGER NOT NULL, OBJECT_DETAIL_ID INTEGER NOT NULL, PRIMARY KEY (ASSET_ID) ); PARTITION TABLE ASSET ON COLUMN ASSET_ID; CREATE TABLE STRINGPART ( NAME VARCHAR(9) NOT NULL, VAL1 INTEGER NOT NULL, VAL2 INTEGER ASSUMEUNIQUE, PRIMARY KEY(VAL1, NAME) ); PARTITION TABLE STRINGPART ON COLUMN NAME; CREATE TABLE test_ENG1232 ( id bigint NOT NULL, PRIMARY KEY (id) ); CREATE TABLE ENG1850 ( cid INTEGER not null, aid INTEGER, pid INTEGER, attr INTEGER, constraint pk_cid primary key (cid) ); PARTITION TABLE ENG1850 ON COLUMN cid; create index eng1850_tree_pid_aid on ENG1850 ( pid, aid ); CREATE TABLE DEFAULT_NULL ( ID INTEGER NOT NULL, num1 INTEGER DEFAULT NULL, num2 INTEGER , ratio FLOAT DEFAULT NULL, num3 INTEGER DEFAULT NULL, desc VARCHAR(300) DEFAULT NULL, PRIMARY KEY (ID) ); create index idx_num3 on DEFAULT_NULL (num3); CREATE TABLE NO_JSON ( ID INTEGER NOT NULL, var1 VARCHAR(300), var2 VARCHAR(300), var3 VARCHAR(300), PRIMARY KEY (ID) ); CREATE INDEX test_field ON NO_JSON (var2, field(var3,'color')); CREATE TABLE P3 ( ID INTEGER NOT NULL, WAGE SMALLINT, DEPT SMALLINT, AGE SMALLINT, RENT SMALLINT, PRIMARY KEY (ID) ); PARTITION TABLE P3 ON COLUMN ID; -- to test inline varchar. CREATE TABLE PWEE ( ID INTEGER DEFAULT '0' NOT NULL, WEE VARCHAR(3), NUM INTEGER, RATIO FLOAT, PRIMARY KEY (ID) ); PARTITION TABLE PWEE ON COLUMN ID; CREATE TABLE PWEE_WITH_INDEX ( ID INTEGER DEFAULT 0 NOT NULL, WEE VARCHAR(3), NUM INTEGER, PRIMARY KEY (ID) ); CREATE INDEX my_num_idx ON PWEE_WITH_INDEX(NUM); -- CREATE VIEW V_P3 (V_G1, V_G2, V_CNT, V_sum_age, V_sum_rent) AS SELECT wage, dept, count(*), sum(age), sum(rent) FROM P3 GROUP BY wage, dept; -- ENG6870 CREATE TABLE ENG6870 ( C0 BIGINT NOT NULL, C1 INTEGER, C2 INTEGER, C3 INTEGER, C4 INTEGER, C5 BIGINT, C6 INTEGER, C7 SMALLINT, C8 TINYINT, C9 TINYINT, C10 TINYINT, C11 TINYINT, C12 INTEGER, C13 INTEGER, C14 TINYINT ); PARTITION TABLE ENG6870 ON COLUMN C0; CREATE INDEX SIX_TreeIdx ON ENG6870 (C5); CREATE INDEX FOURTEEN_TreeIdx ON ENG6870 (C14); -- ENG-6926 CREATE TABLE ENG6926_IPUSER ( IP VARCHAR(128) NOT NULL UNIQUE, COUNTRYCODE VARCHAR(4), COUNTRY VARCHAR(128), PROVINCECODE VARCHAR(4), PROVINCE VARCHAR(128), CITY VARCHAR(128), CITYCODE VARCHAR(8), LATITUDE FLOAT, LONGITUDE FLOAT, UPDATED TIMESTAMP DEFAULT NOW, PRIMARY KEY (IP) ); CREATE TABLE ENG6926_HITS ( IP VARCHAR(128) NOT NULL, HITCOUNT BIGINT, WEEK BIGINT NOT NULL, PRIMARY KEY (WEEK, IP) ); PARTITION TABLE ENG6926_HITS ON COLUMN WEEK; -- ************************* -- -- Begin tables for ENG-7041 -- CREATE TABLE transaction( txn_id BIGINT NOT NULL, acc_no BIGINT NOT NULL, txn_amt FLOAT NOT NULL, txn_state VARCHAR(5) NOT NULL, txn_city VARCHAR(50) NOT NULL, txn_ts TIMESTAMP NOT NULL, vendor_id INTEGER, PRIMARY KEY (acc_no, txn_ts, txn_id) ); PARTITION TABLE transaction ON COLUMN acc_no; CREATE STREAM offers_given_exp PARTITION ON COLUMN acc_no ( acc_no BIGINT NOT NULL, vendor_id INTEGER, offer_ts TIMESTAMP NOT NULL, offer_text VARCHAR(200) ); CREATE VIEW acct_vendor_totals AS SELECT acc_no, vendor_id, COUNT(*) as total_visits, SUM(txn_amt) as total_spend FROM transaction GROUP BY acc_no, vendor_id; -- End tables for ENG-7041 -- -- ************************* -- -- ************************* -- -- Table for ENG-7349 -- create table sm_idx_tbl( ti1 tinyint, ti2 tinyint, bi bigint ); create index sm_idx on sm_idx_tbl(ti1, ti2); -- End table for ENG-7349 -- -- ************************* -- -- ****************************** -- -- Stored procedures for ENG-7354 -- create procedure one_list_param as select id from P1 where ID in ? order by id; create procedure one_string_list_param as select id from P1 where desc in ? order by id; create procedure one_scalar_param as select id from P1 where ID in (?) order by id; create procedure one_string_scalar_param as select id from P1 where desc in (?) order by id; -- End stored procedures for ENG-7354 -- -- ********************************** -- -- ********************************** -- -- Stored procedure for ENG-7724 -- CREATE TABLE product_changes ( location VARCHAR(12) NOT NULL, product_id VARCHAR(18) NOT NULL, start_date TIMESTAMP, safety_time_promo SMALLINT, safety_time_base SMALLINT, POQ SMALLINT, case_size INTEGER, multiple INTEGER, lead_time SMALLINT, supplier VARCHAR(12), facings INTEGER, minimum_deep FLOAT, maximum_deep INTEGER, backroom_sfty_stck INTEGER, cost FLOAT, selling_price FLOAT, model VARCHAR(12), assortment_adj FLOAT, safety_stock_days SMALLINT ); PARTITION TABLE product_changes ON COLUMN location; CREATE INDEX product_changes_sku ON product_changes (location, product_id); CREATE PROCEDURE voltdbSelectProductChanges AS SELECT location, product_id, start_date, facings, minimum_deep, maximum_deep, backroom_sfty_stck, supplier, safety_time_base, selling_price, cost, supplier, safety_stock_days FROM product_changes WHERE location = ? AND product_id = ? ORDER by location, product_id, start_date; PARTITION PROCEDURE voltdbSelectProductChanges ON TABLE product_changes COLUMN location PARAMETER 0; -- ********************************** -- -- ENG-9032, ENG-9389 CREATE TABLE t1( a INTEGER, b integer); create index t1_idx1 on t1 (a); create index t1_idx2 on t1 (b); CREATE TABLE t2( b INTEGER, d integer); create unique index t2_idx1 on t2 (b); CREATE TABLE t3( a INTEGER, x INTEGER, d integer); create unique index t3_idx1 on t3 (a); create unique index t3_idx2 on t3 (d); CREATE TABLE t3_no_index ( a INTEGER, x INTEGER, d integer); -- ENG-9533 CREATE TABLE test1_eng_9533 ( id bigint not null, primary key (id) ); PARTITION TABLE test1_eng_9533 ON COLUMN ID; CREATE TABLE test2_eng_9533 ( T_ID bigint NOT NULL, T_CHAR_ID1 varchar(128), T_CHAR_ID2 varchar(128), T_INT integer, PRIMARY KEY (T_ID, T_CHAR_ID1, T_CHAR_ID2) ); PARTITION TABLE test2_eng_9533 ON COLUMN T_ID; CREATE TABLE ENG_12105 ( ID INTEGER NOT NULL, TINY TINYINT, SMALL SMALLINT, INT INTEGER, BIG BIGINT, NUM FLOAT, DEC DECIMAL, VCHAR VARCHAR(500), VCHAR_INLINE_MAX VARCHAR(63 BYTES), VCHAR_INLINE VARCHAR(14), TIME TIMESTAMP, VARBIN VARBINARY(100), PRIMARY KEY (ID) ); CREATE TABLE ENG_539 ( ID INTEGER NOT NULL, VARBIN VARBINARY(3), BIG BIGINT, PRIMARY KEY (ID) ); create table swapper_table_foo ( i integer, j varchar(32), primary key (i) ); create table swapper_table_bar ( i integer, j varchar(32), primary key (i) ); -- Tables for reproducer for ENG-13852 CREATE TABLE ENG_13852_P5 ( ID INTEGER NOT NULL, TINY TINYINT NOT NULL, SMALL SMALLINT NOT NULL, INT INTEGER NOT NULL, BIG BIGINT NOT NULL, NUM FLOAT NOT NULL, DEC DECIMAL NOT NULL, VCHAR_INLINE VARCHAR(42 BYTES) NOT NULL, VCHAR_INLINE_MAX VARCHAR(15) NOT NULL, VCHAR_OUTLINE_MIN VARCHAR(16) NOT NULL, VCHAR VARCHAR NOT NULL, VCHAR_JSON VARCHAR(4000 BYTES) NOT NULL, TIME TIMESTAMP NOT NULL, VARBIN VARBINARY(100) NOT NULL, POINT GEOGRAPHY_POINT NOT NULL, POLYGON GEOGRAPHY, IPV4 VARCHAR(15), IPV6 VARCHAR(60), VBIPV4 VARBINARY(4), VBIPV6 VARBINARY(16) NOT NULL, PRIMARY KEY (VCHAR, ID) ); PARTITION TABLE ENG_13852_P5 ON COLUMN ID; CREATE UNIQUE INDEX IDX_P5_IV ON ENG_13852_P5 (ID, VCHAR) WHERE ID >= 0; CREATE ASSUMEUNIQUE INDEX IDX_P5_VSI ON ENG_13852_P5 (VCHAR_INLINE, SMALL, INT) WHERE VCHAR_INLINE_MAX < 'a'; CREATE INDEX IDX_P5_IVI ON ENG_13852_P5 (INT, VCHAR_INLINE_MAX) WHERE INT >= 0 AND VCHAR_INLINE IS NOT NULL; CREATE TABLE ENG_13852_R11 ( ID INTEGER NOT NULL PRIMARY KEY, TINY TINYINT, SMALL SMALLINT, INT INTEGER, BIG BIGINT, NUM FLOAT, DEC DECIMAL, VCHAR_INLINE VARCHAR(42 BYTES), VCHAR_INLINE_MAX VARCHAR(15), VCHAR_OUTLINE_MIN VARCHAR(16), VCHAR VARCHAR, VCHAR_JSON VARCHAR(4000 BYTES), TIME TIMESTAMP, VARBIN VARBINARY(100), POINT GEOGRAPHY_POINT, POLYGON GEOGRAPHY, IPV4 VARCHAR(15), IPV6 VARCHAR(60), VBIPV4 VARBINARY(4), VBIPV6 VARBINARY(16) ); CREATE VIEW ENG_13852_VR5 (SMALL, VCHAR, TINY, ID, INT, BIG, NUM, DEC, VCHAR_INLINE, VCHAR_INLINE_MAX, VCHAR_OUTLINE_MIN, VCHAR_JSON, TIME -- Will not work with SqlCoverage/PostgreSQL: , VARBIN, POINT, POLYGON , IPV4, IPV6, VBIPV4, VBIPV6 ) AS SELECT SMALL, VCHAR, TINY, COUNT(*), COUNT(TIME), COUNT(POINT), SUM(NUM), SUM(DEC), MIN(VCHAR_INLINE), MAX(VCHAR_INLINE_MAX), MIN(VCHAR_OUTLINE_MIN), MAX(VCHAR_JSON), MIN(TIME) -- Will not work with SqlCoverage/PostgreSQL: , MAX(VARBIN), MIN(POINT), MAX(POLYGON) , MIN(IPV4), MAX(IPV6), MIN(VBIPV4), MAX(VBIPV6) FROM ENG_13852_R11 WHERE TINY < 64 GROUP BY SMALL, VCHAR, TINY; CREATE INDEX IDX_ENG_13852_VR5_SVT ON ENG_13852_VR5 (SMALL, VCHAR, TINY) WHERE SMALL >= 0; CREATE INDEX IDX_ENG_13852_VR5_VID ON ENG_13852_VR5 (VCHAR_INLINE, INT, DEC) WHERE VCHAR_INLINE < 'a'; CREATE INDEX IDX_ENG_13852_VR5_VS ON ENG_13852_VR5 (VCHAR_INLINE_MAX, SMALL) WHERE SMALL >= 0 AND VCHAR_INLINE_MAX IS NOT NULL; CREATE VIEW ENG_13852_VP5 (SMALL, VCHAR, TINY, ID, INT, BIG, NUM, DEC, VCHAR_INLINE, VCHAR_INLINE_MAX, VCHAR_OUTLINE_MIN, VCHAR_JSON, TIME , VARBIN, POINT, POLYGON , IPV4, IPV6, VBIPV4, VBIPV6 ) AS SELECT SMALL, VCHAR, TINY, COUNT(*), COUNT(VARBIN), COUNT(POLYGON), SUM(NUM), SUM(DEC), MIN(VCHAR_INLINE), MAX(VCHAR_INLINE_MAX), MIN(VCHAR_OUTLINE_MIN), MAX(VCHAR_JSON), MIN(TIME) , MAX(VARBIN), MIN(POINT), MAX(POLYGON) , MIN(IPV4), MAX(IPV6), MIN(VBIPV4), MAX(VBIPV6) FROM ENG_13852_P5 WHERE TINY < 64 GROUP BY SMALL, VCHAR, TINY; CREATE INDEX IDX_VP5_SVT ON ENG_13852_VP5 (SMALL, VCHAR, TINY) WHERE SMALL >= 0; CREATE INDEX IDX_VP5_VID ON ENG_13852_VP5 (VCHAR_INLINE, INT, DEC) WHERE VCHAR_INLINE < 'a'; CREATE INDEX IDX_VP5_VS ON ENG_13852_VP5 (VCHAR_INLINE_MAX, SMALL) WHERE SMALL >= 0 AND VCHAR_INLINE_MAX IS NOT NULL;
<gh_stars>0 -- @testpoint:opengauss关键字checked(非保留),作为用户名 --关键字checked作为用户名不带引号,创建成功 drop user if exists checked; CREATE USER checked PASSWORD '<PASSWORD>'; --清理环境 drop user checked; --关键字checked作为用户名加双引号,创建成功 drop user if exists "checked"; CREATE USER "checked" PASSWORD '<PASSWORD>'; --清理环境 drop user "checked"; --关键字checked作为用户名加单引号,合理报错 CREATE USER 'checked' PASSWORD '<PASSWORD>'; --关键字checked作为用户名加反引号,合理报错 CREATE USER `checked` PASSWORD '<PASSWORD>';
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.7.27-log - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 11.0.0.5919 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Дамп структуры базы данных server DROP DATABASE IF EXISTS `server`; CREATE DATABASE IF NOT EXISTS `server` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `server`; -- Дамп структуры для таблица server.chats DROP TABLE IF EXISTS `chats`; CREATE TABLE IF NOT EXISTS `chats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` int(11) NOT NULL COMMENT '1 - обычный чат; 2 - груповой чат', `name` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT 'название чата ( только для групового )', `description` varchar(50) CHARACTER SET latin1 DEFAULT NULL COMMENT 'описание чата ( только для групового )', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='таблица чатов пользователей'; -- Дамп данных таблицы server.chats: ~2 rows (приблизительно) DELETE FROM `chats`; /*!40000 ALTER TABLE `chats` DISABLE KEYS */; INSERT INTO `chats` (`id`, `type`, `name`, `description`) VALUES (1, 1, NULL, NULL), (2, 2, 'Test', 'Test desc'); /*!40000 ALTER TABLE `chats` ENABLE KEYS */; -- Дамп структуры для таблица server.groups DROP TABLE IF EXISTS `groups`; CREATE TABLE IF NOT EXISTS `groups` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Ключ группы', `name` varchar(50) NOT NULL COMMENT 'Название для вывода на сайте', `description` varchar(100) DEFAULT NULL COMMENT 'Описание', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; -- Дамп данных таблицы server.groups: ~3 rows (приблизительно) DELETE FROM `groups`; /*!40000 ALTER TABLE `groups` DISABLE KEYS */; INSERT INTO `groups` (`id`, `name`, `description`) VALUES (1, 'Администратор', 'Максимальные права'), (2, 'Модератор', 'Права администрирования системой'), (3, 'Пользователи', 'Обычные права'); /*!40000 ALTER TABLE `groups` ENABLE KEYS */; -- Дамп структуры для представление server.list_chats DROP VIEW IF EXISTS `list_chats`; -- Создание временной таблицы для обработки ошибок зависимостей представлений CREATE TABLE `list_chats` ( `id` INT(11) NOT NULL, `type` INT(11) NOT NULL COMMENT '1 - обычный чат; 2 - груповой чат', `name` VARCHAR(50) NULL COMMENT 'название чата ( только для групового )' COLLATE 'latin1_swedish_ci', `description` VARCHAR(50) NULL COMMENT 'описание чата ( только для групового )' COLLATE 'latin1_swedish_ci', `client` INT(11) NULL, `id_user` INT(11) NULL, `mail` VARCHAR(50) NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки' COLLATE 'utf8_general_ci', `id_message` INT(11) NULL, `f` VARCHAR(50) NULL COMMENT 'Фамилия' COLLATE 'utf8_general_ci', `i` VARCHAR(50) NULL COMMENT 'Имя' COLLATE 'utf8_general_ci', `o` VARCHAR(50) NULL COMMENT 'Отчество' COLLATE 'utf8_general_ci', `dt_add` VARCHAR(21) NULL COLLATE 'utf8mb4_general_ci', `body` VARCHAR(500) NULL COMMENT 'тело сообщения' COLLATE 'utf8_general_ci', `status` INT(1) NULL, `dt_edited` DATETIME NULL COMMENT 'время редактирования', `dt_deleted` DATETIME NULL COMMENT 'время удаления', `edited` INT(11) NULL COMMENT 'флаг редактирования', `deleted` INT(11) NULL COMMENT 'флаг удаления' ) ENGINE=MyISAM; -- Дамп структуры для представление server.list_chat_messages DROP VIEW IF EXISTS `list_chat_messages`; -- Создание временной таблицы для обработки ошибок зависимостей представлений CREATE TABLE `list_chat_messages` ( `id_chat` INT(11) NOT NULL, `client` INT(11) NULL, `id_message` INT(11) NULL, `dt_add` DATETIME NULL COMMENT 'дата и время сообщения', `body` VARCHAR(500) NULL COMMENT 'тело сообщения' COLLATE 'utf8_general_ci', `id_user` INT(11) NULL, `mail` VARCHAR(50) NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки' COLLATE 'utf8_general_ci', `f` VARCHAR(50) NULL COMMENT 'Фамилия' COLLATE 'utf8_general_ci', `i` VARCHAR(50) NULL COMMENT 'Имя' COLLATE 'utf8_general_ci', `o` VARCHAR(50) NULL COMMENT 'Отчество' COLLATE 'utf8_general_ci', `status` INT(1) NULL, `dt_edited` DATETIME NULL COMMENT 'время редактирования', `dt_deleted` DATETIME NULL COMMENT 'время удаления', `edited` INT(11) NULL COMMENT 'флаг редактирования', `deleted` INT(11) NULL COMMENT 'флаг удаления' ) ENGINE=MyISAM; -- Дамп структуры для представление server.list_chat_users DROP VIEW IF EXISTS `list_chat_users`; -- Создание временной таблицы для обработки ошибок зависимостей представлений CREATE TABLE `list_chat_users` ( `id_chat` INT(11) NOT NULL, `id_user` INT(11) NULL, `mail` VARCHAR(50) NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки' COLLATE 'utf8_general_ci', `f` VARCHAR(50) NULL COMMENT 'Фамилия' COLLATE 'utf8_general_ci', `i` VARCHAR(50) NULL COMMENT 'Имя' COLLATE 'utf8_general_ci', `o` VARCHAR(50) NULL COMMENT 'Отчество' COLLATE 'utf8_general_ci', `dt_birth` DATE NULL COMMENT 'Дата рождения' ) ENGINE=MyISAM; -- Дамп структуры для представление server.list_messages DROP VIEW IF EXISTS `list_messages`; -- Создание временной таблицы для обработки ошибок зависимостей представлений CREATE TABLE `list_messages` ( `id_message` INT(11) NOT NULL, `dt_add` DATETIME NOT NULL COMMENT 'дата и время сообщения', `body` VARCHAR(500) NOT NULL COMMENT 'тело сообщения' COLLATE 'utf8_general_ci', `id_chat` INT(11) NOT NULL, `id_user` INT(11) NULL, `mail` VARCHAR(50) NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки' COLLATE 'utf8_general_ci', `f` VARCHAR(50) NULL COMMENT 'Фамилия' COLLATE 'utf8_general_ci', `i` VARCHAR(50) NULL COMMENT 'Имя' COLLATE 'utf8_general_ci', `o` VARCHAR(50) NULL COMMENT 'Отчество' COLLATE 'utf8_general_ci', `dt_birth` DATE NULL COMMENT 'Дата рождения', `dt_edited` DATETIME NULL COMMENT 'время редактирования', `dt_deleted` DATETIME NULL COMMENT 'время удаления', `edited` INT(11) NULL COMMENT 'флаг редактирования', `deleted` INT(11) NULL COMMENT 'флаг удаления' ) ENGINE=MyISAM; -- Дамп структуры для представление server.list_users DROP VIEW IF EXISTS `list_users`; -- Создание временной таблицы для обработки ошибок зависимостей представлений CREATE TABLE `list_users` ( `id_user` INT(11) NOT NULL, `mail` VARCHAR(50) NOT NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки' COLLATE 'utf8_general_ci', `f` VARCHAR(50) NOT NULL COMMENT 'Фамилия' COLLATE 'utf8_general_ci', `i` VARCHAR(50) NOT NULL COMMENT 'Имя' COLLATE 'utf8_general_ci', `o` VARCHAR(50) NULL COMMENT 'Отчество' COLLATE 'utf8_general_ci', `dt_birth` VARCHAR(10) NULL COLLATE 'utf8mb4_general_ci', `id_avatar` INT(11) NULL ) ENGINE=MyISAM; -- Дамп структуры для таблица server.messages_status DROP TABLE IF EXISTS `messages_status`; CREATE TABLE IF NOT EXISTS `messages_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user_messages` int(11) NOT NULL, `id_user` int(11) NOT NULL, `dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `FK_user_messages` (`id_user_messages`), KEY `FK___user` (`id_user`), CONSTRAINT `FK___user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`), CONSTRAINT `FK_user_messages` FOREIGN KEY (`id_user_messages`) REFERENCES `user_messages` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Статус просмотра сообщений'; -- Дамп данных таблицы server.messages_status: ~0 rows (приблизительно) DELETE FROM `messages_status`; /*!40000 ALTER TABLE `messages_status` DISABLE KEYS */; INSERT INTO `messages_status` (`id`, `id_user_messages`, `id_user`, `dt`) VALUES (1, 1, 1, '2021-03-22 14:45:17'); /*!40000 ALTER TABLE `messages_status` ENABLE KEYS */; -- Дамп структуры для таблица server.sessions DROP TABLE IF EXISTS `sessions`; CREATE TABLE IF NOT EXISTS `sessions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL COMMENT 'id пользователя сессии', `browser` varchar(50) NOT NULL COMMENT 'Название браузера', `os` varchar(50) NOT NULL COMMENT 'ОС', `platform` varchar(50) NOT NULL COMMENT 'Платформа системы', `ip` varchar(50) NOT NULL COMMENT 'IP-адрес каким его видит express.js', `iat` datetime NOT NULL COMMENT 'Кода выдан', `exp` datetime NOT NULL COMMENT 'Срок действия', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `FK_sessions_users` (`id_user`), CONSTRAINT `FK_sessions_users` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=200 DEFAULT CHARSET=utf8 COMMENT='Таблица сессий пользователей'; -- Дамп данных таблицы server.sessions: ~0 rows (приблизительно) DELETE FROM `sessions`; /*!40000 ALTER TABLE `sessions` DISABLE KEYS */; INSERT INTO `sessions` (`id`, `id_user`, `browser`, `os`, `platform`, `ip`, `iat`, `exp`) VALUES (126, 2, 'YaBrowser', 'Windows 10.0', 'Microsoft Windows', '::1', '2020-12-06 14:07:03', '2020-12-06 15:07:16'), (198, 1, 'YaBrowser', 'Windows 10.0', 'Microsoft Windows', '::ffff:192.168.1.71', '2021-04-06 20:39:34', '2021-04-06 21:41:51'), (199, 2, 'YaBrowser', 'Windows 10.0', 'Microsoft Windows', '::ffff:192.168.1.71', '2021-04-06 20:41:34', '2021-04-06 21:42:17'); /*!40000 ALTER TABLE `sessions` ENABLE KEYS */; -- Дамп структуры для таблица server.users DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mail` varchar(50) NOT NULL COMMENT 'Почта пользователя, используется для авторизации и почтовой рассылки', `hash_password` varchar(500) NOT NULL COMMENT 'Хешированный пароль', `f` varchar(50) NOT NULL COMMENT 'Фамилия', `i` varchar(50) NOT NULL COMMENT 'Имя', `o` varchar(50) DEFAULT NULL COMMENT 'Отчество', `dt_birth` date NOT NULL COMMENT 'Дата рождения', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), UNIQUE KEY `mail` (`mail`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='Таблица пользователей'; -- Дамп данных таблицы server.users: ~2 rows (приблизительно) DELETE FROM `users`; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `mail`, `hash_password`, `f`, `i`, `o`, `dt_birth`) VALUES (1, '<EMAIL>', '<PASSWORD>', 'Админов', 'Админ', NULL, '2009-04-06'), (2, '<EMAIL>', '<PASSWORD>ff53d8406c6ad864195ed144ab5c87621b6c233b548baeae6956df346ec8c17f5ea10f35ee3cbc514797ed7ddd3145464e2a0bab413', 'Тестов', 'Тест', NULL, '2017-04-18'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; -- Дамп структуры для таблица server.user_chats DROP TABLE IF EXISTS `user_chats`; CREATE TABLE IF NOT EXISTS `user_chats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_chat` int(11) NOT NULL, `id_user` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `FK_chat` (`id_chat`), KEY `FK_user` (`id_user`), CONSTRAINT `FK_chat` FOREIGN KEY (`id_chat`) REFERENCES `chats` (`id`), CONSTRAINT `FK_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='привязка пользователей к чатам'; -- Дамп данных таблицы server.user_chats: ~4 rows (приблизительно) DELETE FROM `user_chats`; /*!40000 ALTER TABLE `user_chats` DISABLE KEYS */; INSERT INTO `user_chats` (`id`, `id_chat`, `id_user`) VALUES (1, 1, 1), (2, 1, 2), (3, 2, 2), (4, 2, 1); /*!40000 ALTER TABLE `user_chats` ENABLE KEYS */; -- Дамп структуры для таблица server.user_files DROP TABLE IF EXISTS `user_files`; CREATE TABLE IF NOT EXISTS `user_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `type` int(11) NOT NULL COMMENT 'Тип ресурса ( 1 - Фотографии пользователей )', `filename` varchar(100) NOT NULL COMMENT 'Название файла', `encoding` varchar(100) NOT NULL COMMENT 'Кодировка', `mimetype` varchar(100) NOT NULL COMMENT 'Mime тип', `buffer` longblob NOT NULL COMMENT 'Тело файла', `size` int(11) NOT NULL COMMENT 'Размер файла', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COMMENT='Таблица хранит файлы пользователей'; -- Дамп данных таблицы server.user_files: ~0 rows (приблизительно) DELETE FROM `user_files`; /*!40000 ALTER TABLE `user_files` DISABLE KEYS */; /*!40000 ALTER TABLE `user_files` ENABLE KEYS */; -- Дамп структуры для таблица server.user_friends DROP TABLE IF EXISTS `user_friends`; CREATE TABLE IF NOT EXISTS `user_friends` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user1` int(11) NOT NULL COMMENT 'Пользователь 1', `id_user2` int(11) NOT NULL COMMENT 'Пользователь 2', `confirm_user1` int(1) NOT NULL DEFAULT '1' COMMENT 'Подтверждение пользователя 1', `confirm_user2` int(1) DEFAULT NULL COMMENT 'Подтверждение пользователя 2', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `FK_user_friends_id_user1` (`id_user1`), KEY `FK_user_friends_id_user2` (`id_user2`), CONSTRAINT `FK_user_friends_id_user1` FOREIGN KEY (`id_user1`) REFERENCES `users` (`id`), CONSTRAINT `FK_user_friends_id_user2` FOREIGN KEY (`id_user2`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Если пользователь 1 и 2 подтвердят запись, то они являются друзьями'; -- Дамп данных таблицы server.user_friends: ~0 rows (приблизительно) DELETE FROM `user_friends`; /*!40000 ALTER TABLE `user_friends` DISABLE KEYS */; INSERT INTO `user_friends` (`id`, `id_user1`, `id_user2`, `confirm_user1`, `confirm_user2`) VALUES (1, 1, 2, 1, 1); /*!40000 ALTER TABLE `user_friends` ENABLE KEYS */; -- Дамп структуры для таблица server.user_groups DROP TABLE IF EXISTS `user_groups`; CREATE TABLE IF NOT EXISTS `user_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `id_group` int(11) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `id_user` (`id_user`), KEY `id_group` (`id_group`), CONSTRAINT `FK__groups` FOREIGN KEY (`id_group`) REFERENCES `groups` (`id`), CONSTRAINT `FK__users` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='Таблица связывания пользователя с группами'; -- Дамп данных таблицы server.user_groups: ~5 rows (приблизительно) DELETE FROM `user_groups`; /*!40000 ALTER TABLE `user_groups` DISABLE KEYS */; INSERT INTO `user_groups` (`id`, `id_user`, `id_group`) VALUES (1, 1, 1), (2, 1, 2), (3, 1, 3), (4, 2, 2), (5, 2, 3); /*!40000 ALTER TABLE `user_groups` ENABLE KEYS */; -- Дамп структуры для таблица server.user_messages DROP TABLE IF EXISTS `user_messages`; CREATE TABLE IF NOT EXISTS `user_messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_chat` int(11) NOT NULL, `id_user` int(11) NOT NULL, `dt_add` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'дата и время сообщения', `dt_edited` datetime DEFAULT NULL COMMENT 'время редактирования', `dt_deleted` datetime DEFAULT NULL COMMENT 'время удаления', `body` varchar(500) NOT NULL COMMENT 'тело сообщения', `edited` int(11) DEFAULT NULL COMMENT 'флаг редактирования', `deleted` int(11) DEFAULT NULL COMMENT 'флаг удаления', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`), KEY `FK_chat1` (`id_chat`), KEY `FK_user1` (`id_user`), CONSTRAINT `FK_chat1` FOREIGN KEY (`id_chat`) REFERENCES `chats` (`id`), CONSTRAINT `FK_user1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=138 DEFAULT CHARSET=utf8 COMMENT='таблица сообщений пользователя'; -- Дамп данных таблицы server.user_messages: ~0 rows (приблизительно) DELETE FROM `user_messages`; /*!40000 ALTER TABLE `user_messages` DISABLE KEYS */; INSERT INTO `user_messages` (`id`, `id_chat`, `id_user`, `dt_add`, `dt_edited`, `dt_deleted`, `body`, `edited`, `deleted`) VALUES (135, 1, 1, '2021-04-06 20:40:46', NULL, NULL, 'Привет!', NULL, NULL), (136, 2, 1, '2021-04-06 20:40:59', NULL, NULL, 'Привет!', NULL, NULL), (137, 2, 2, '2021-04-06 20:41:51', NULL, NULL, 'Ку!', NULL, NULL); /*!40000 ALTER TABLE `user_messages` ENABLE KEYS */; -- Дамп структуры для представление server.list_chats DROP VIEW IF EXISTS `list_chats`; -- Удаление временной таблицы и создание окончательной структуры представления DROP TABLE IF EXISTS `list_chats`; CREATE ALGORITHM=MERGE SQL SECURITY DEFINER VIEW `list_chats` AS select `c`.`id` AS `id`,`c`.`type` AS `type`,`c`.`name` AS `name`,`c`.`description` AS `description`,`uc`.`id_user` AS `client`,`l_m`.`id_user` AS `id_user`,`l_m`.`mail` AS `mail`,`l_m`.`id_message` AS `id_message`,`l_m`.`f` AS `f`,`l_m`.`i` AS `i`,`l_m`.`o` AS `o`,date_format(`l_m`.`dt_add`,'%d.%m.%Y %H:%i') AS `dt_add`,`l_m`.`body` AS `body`,(case when (`ms`.`id` is not null) then 1 else NULL end) AS `status`,`l_m`.`dt_edited` AS `dt_edited`,`l_m`.`dt_deleted` AS `dt_deleted`,`l_m`.`edited` AS `edited`,`l_m`.`deleted` AS `deleted` from (((`server`.`chats` `c` left join `server`.`user_chats` `uc` on((`c`.`id` = `uc`.`id_chat`))) left join (select `um`.`id` AS `id_message`,`um`.`id_chat` AS `id_chat`,`u`.`id` AS `id_user`,`u`.`mail` AS `mail`,`u`.`f` AS `f`,`u`.`i` AS `i`,`u`.`o` AS `o`,`um`.`dt_add` AS `dt_add`,`um`.`body` AS `body`,`um`.`dt_edited` AS `dt_edited`,`um`.`dt_deleted` AS `dt_deleted`,`um`.`edited` AS `edited`,`um`.`deleted` AS `deleted` from (`server`.`user_messages` `um` left join `server`.`users` `u` on((`um`.`id_user` = `u`.`id`))) where (`um`.`dt_add` = (select max(`server`.`user_messages`.`dt_add`) from `server`.`user_messages` where ((`server`.`user_messages`.`id_chat` = `um`.`id_chat`) and isnull(`um`.`deleted`))))) `l_m` on((`c`.`id` = `l_m`.`id_chat`))) left join `server`.`messages_status` `ms` on(((`uc`.`id_user` = `ms`.`id_user`) and (`l_m`.`id_message` = `ms`.`id_user_messages`)))); -- Дамп структуры для представление server.list_chat_messages DROP VIEW IF EXISTS `list_chat_messages`; -- Удаление временной таблицы и создание окончательной структуры представления DROP TABLE IF EXISTS `list_chat_messages`; CREATE ALGORITHM=MERGE SQL SECURITY DEFINER VIEW `list_chat_messages` AS select `uc`.`id_chat` AS `id_chat`,`c`.`id` AS `client`,`um`.`id` AS `id_message`,`um`.`dt_add` AS `dt_add`,`um`.`body` AS `body`,`u`.`id` AS `id_user`,`u`.`mail` AS `mail`,`u`.`f` AS `f`,`u`.`i` AS `i`,`u`.`o` AS `o`,(case when (`ms`.`id` is not null) then 1 else NULL end) AS `status`,`um`.`dt_edited` AS `dt_edited`,`um`.`dt_deleted` AS `dt_deleted`,`um`.`edited` AS `edited`,`um`.`deleted` AS `deleted` from ((((`user_chats` `uc` left join `users` `c` on((`uc`.`id_user` = `c`.`id`))) left join `user_messages` `um` on((`uc`.`id_chat` = `um`.`id_chat`))) left join `users` `u` on((`um`.`id_user` = `u`.`id`))) left join `messages_status` `ms` on(((`c`.`id` = `ms`.`id_user`) and (`um`.`id` = `ms`.`id_user_messages`)))) order by `uc`.`id_chat`,`c`.`id`,`um`.`id` desc; -- Дамп структуры для представление server.list_chat_users DROP VIEW IF EXISTS `list_chat_users`; -- Удаление временной таблицы и создание окончательной структуры представления DROP TABLE IF EXISTS `list_chat_users`; CREATE ALGORITHM=MERGE SQL SECURITY DEFINER VIEW `list_chat_users` AS select `c`.`id` AS `id_chat`,`u`.`id` AS `id_user`,`u`.`mail` AS `mail`,`u`.`f` AS `f`,`u`.`i` AS `i`,`u`.`o` AS `o`,`u`.`dt_birth` AS `dt_birth` from ((`chats` `c` left join `user_chats` `uc` on((`uc`.`id_chat` = `c`.`id`))) left join `users` `u` on((`u`.`id` = `uc`.`id_user`))); -- Дамп структуры для представление server.list_messages DROP VIEW IF EXISTS `list_messages`; -- Удаление временной таблицы и создание окончательной структуры представления DROP TABLE IF EXISTS `list_messages`; CREATE ALGORITHM=MERGE SQL SECURITY DEFINER VIEW `list_messages` AS select `um`.`id` AS `id_message`,`um`.`dt_add` AS `dt_add`,`um`.`body` AS `body`,`um`.`id_chat` AS `id_chat`,`u`.`id` AS `id_user`,`u`.`mail` AS `mail`,`u`.`f` AS `f`,`u`.`i` AS `i`,`u`.`o` AS `o`,`u`.`dt_birth` AS `dt_birth`,`um`.`dt_edited` AS `dt_edited`,`um`.`dt_deleted` AS `dt_deleted`,`um`.`edited` AS `edited`,`um`.`deleted` AS `deleted` from (`user_messages` `um` left join `users` `u` on((`um`.`id_user` = `u`.`id`))); -- Дамп структуры для представление server.list_users DROP VIEW IF EXISTS `list_users`; -- Удаление временной таблицы и создание окончательной структуры представления DROP TABLE IF EXISTS `list_users`; CREATE ALGORITHM=MERGE SQL SECURITY DEFINER VIEW `list_users` AS select `u`.`id` AS `id_user`,`u`.`mail` AS `mail`,`u`.`f` AS `f`,`u`.`i` AS `i`,`u`.`o` AS `o`,date_format(`u`.`dt_birth`,'%d.%m.%Y') AS `dt_birth`,`a`.`id` AS `id_avatar` from (`server`.`users` `u` left join (select `uf`.`id` AS `id`,`uf`.`id_user` AS `id_user`,`uf`.`type` AS `type`,`uf`.`filename` AS `filename`,`uf`.`encoding` AS `encoding`,`uf`.`mimetype` AS `mimetype`,`uf`.`buffer` AS `buffer`,`uf`.`size` AS `size` from `server`.`user_files` `uf` where ((`uf`.`type` = 1) and (`uf`.`id` = (select max(`server`.`user_files`.`id`) from `server`.`user_files` where (`server`.`user_files`.`id_user` = `uf`.`id_user`))))) `a` on((`u`.`id` = `a`.`id_user`))); /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
<gh_stars>0 USE linkServicesGroup; INSERT INTO OtherLanguages (languageName) VALUES ('Indigenous Australian'), ('Torres Strait Islander'), ('Arabic'), ('Bengali'), ('Cantonese'), ('Croatian'), ('Czech'), ('French'), ('German'), ('Greek'), ('Hebrew'), ('Hindi'), ('Hungarian'), ('Indonesian'), ('Italian'), ('Japanese'), ('Korean'), ('Macedonian'), ('Maltese'), ('Mandarin'), ('Maori'), ('Netherlandic'), ('Persian'), ('Polish'), ('Portugese'), ('Punjabi'), ('Romanian'), ('Russian'), ('Serbian'), ('Sinhalese'), ('Samoan'), ('Somali'), ('Spanish'), ('Tagalog (Fillipino)'), ('Tamil'), ('Thai'), ('Turkish'), ('Urdu'), ('Vietnamese'), ('Other'); INSERT INTO CulturalBackground (culturalBackgroundName) VALUES ('Australian'), ('Aboriginal Australian'), ('Australian South-East Islander'), ('Torres Strait Islander'), ('New Zelander'), ('Pacific Islander'), ('West European'), ('North European'), ('South European'), ('East European'), ('Middle Eastern'), ('North Asian'), ('South Asian'), ('East Asian'), ('West Asian'), ('North American'), ('South American'), ('Central American'), ('Carribbean'), ('South African'), ('West African'), ('East African'), ('North African'), ('Other');
<gh_stars>0 CREATE TABLE IF NOT EXISTS commands ( id int(11) NOT NULL AUTO_INCREMENT, ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=45202 ;
<gh_stars>0 set serveroutput on; -- Drop Tables drop table toll_rate cascade constraints; drop table exit_road cascade constraints; drop table discount_rate cascade constraints; drop table message cascade constraints; drop table video_bill cascade constraints; drop table payment cascade constraints; drop table trip cascade constraints; drop table road cascade constraints; drop table vehicle cascade constraints; drop table account cascade constraints; drop table transponder cascade constraints; -- Delete Sequence drop sequence account_id_updation; drop sequence trip_id_updation; drop sequence veh_seq; drop sequence Transponder_id_seq; drop sequence Bill_Id; drop sequence message_id_seq; drop sequence payment_id_seq; -- Create Sequence create sequence account_id_updation start with 6 increment by 1 order; create sequence trip_id_updation start with 20 increment by 1 order; create sequence Veh_seq start with 7; create sequence Transponder_id_seq start with 8; create sequence Bill_Id start with 3006; create sequence message_id_seq start with 4006; create sequence payment_id_seq start with 2010; / -- Create Table -- Account Table -- create table Account( Account_id int not null Primary Key, Account_Name varchar(30) Not Null, Email varchar(30) Not Null, Address varchar(100), Balance int, password_ varchar(20) Not Null); -- Transponder Table -- create table Transponder( Transponder_id int not null Primary Key, Size_Code int Not Null, Sort_Order int, Account_id int, Foreign key(Account_id) references Account(Account_id)); -- Vehicle -- create table Vehicle( Vehicle_Id int not null Primary Key, Account_Id int, License_Platenumber varchar(10) Not Null, Vehicle_State varchar(5) Not Null, Vehicle_class int, Owner_Address varchar(30), Foreign Key(Account_Id) references Account(Account_Id)); -- Road -- create table road( Road_Id varchar(5) not null Primary Key, Road_Name varchar(30) Not Null); -- Exit -- create table exit_road( Exit_Number int not null Primary Key, Road_Id varchar(5) Not Null, Description varchar(30), Foreign Key(Road_Id) references Road(Road_Id)); -- Toll_Rate -- create table Toll_Rate( Toll_Id int not null Primary Key, Road_Id varchar(5) Not Null, Start_EId int Not Null, End_EId int Not Null, Direction varchar(10), Toll_Starttime date not null, Toll_Endtime date not null, Car_Tollrate int not null, Truck_Tollrate int not null, Foreign Key(Road_Id) references Road(Road_Id), Foreign Key(Start_EId) references exit_road(exit_number), Foreign Key(End_EId) references exit_road(exit_number)); -- Trip -- create table Trip( Trip_Id int not null Primary Key, Account_Id int, Transponder_Id int, Vehicle_Id int, Road_Id varchar(5) Not null, Entering_ExitId int Not Null, Exiting_ExitId int Not Null, Entrance_Time Timestamp Not Null, trip_Status int Not Null, Toll_Deducted int Not Null, Toll float Not Null, Trip_direction varchar(10), Foreign Key(Account_Id) references Account(Account_Id), Foreign Key(Transponder_Id) references Transponder(Transponder_Id), Foreign Key(Vehicle_Id) references Vehicle(Vehicle_Id), Foreign Key(Road_Id) references Road(Road_Id)); -- Payment -- create table payment( Payment_id int Not Null Primary Key, Account_Id int Not Null, Payment_Date date not null, Amount float, Foreign Key(Account_Id) references Account(Account_Id)); -- Video Bill -- create table video_bill( Bill_Id int not null Primary Key, Trip_Id int Not Null, Bill_Date date Not Null, Status int Not Null, Foreign Key(Trip_Id) references Trip(Trip_Id)); -- Message -- create table Message( Message_Id int not null Primary Key, Account_Id int, Message_Time DATE, Message_Body varchar(100) Not Null, Foreign Key(Account_Id) references Account(Account_Id)); -- Discount_rate -- create table Discount_rate( DiscountRate float Not Null, Video_toll int Not Null, Admin_fee int Not Null); insert into account values(1,'abc','<EMAIL>','1001 Courtney', 5,'abc@1' ); insert into account values(2,'def','<EMAIL>','1002 Courtney', 10,'def@2' ); insert into account values(3,'ghi','<EMAIL>','1003 Courtney', 15,'ghi@3' ); insert into account values(4,'jkl','<EMAIL>','1004 Courtney', 8,'jkl@4' ); insert into account values(5,'mno','<EMAIL>','1005 Courtney', 10,'mno@5' ); insert into transponder values(1,101,201,1); insert into transponder values(2,102,202,2); insert into transponder values(3,103,203,3); insert into transponder values(4,104,204,4); insert into transponder values(5,105,205,5); insert into transponder values(7,105,205,null); insert into vehicle values(1,1,'z123','MD','1','1001 Courtney' ); insert into vehicle values(2,2,'y123','VA','2','1002 Courtney' ); insert into vehicle values(3,3,'x123','DC','1','1003 Courtney' ); insert into vehicle values(4,null,'w123','CA','2','1004 Courtney' ); insert into vehicle values(5,5,'v123','MA','1','1005 Courtney' ); insert into vehicle values(6,null,'z1234','MA','1','1005 Courtney' ); insert into road values('I95', 'Baltimore Highway' ); insert into road values('I96', 'DC Highway' ); insert into road values('I97', 'New York Road' ); insert into road values('I98', 'Philadelphia Road' ); insert into road values('I495', 'National Highway' ); insert into exit_road values(143,'I95','Baltimore Juncture Exit 143'); insert into exit_road values(149,'I95','Baltimore Juncture Exit 149'); insert into exit_road values(152,'I95','Baltimore Juncture Exit 152'); insert into exit_road values(155,'I96','DC Juncture Exit 155'); insert into exit_road values(157,'I96','DC Juncture Exit 157'); insert into exit_road values(159,'I96','DC Juncture Exit 159'); insert into exit_road values(165,'I97','New York Juncture Exit 165'); insert into exit_road values(168,'I97','New York Juncture Exit 168'); insert into exit_road values(170,'I97','New York Juncture Exit 170'); insert into exit_road values(135,'I98','Virgina Jucture Exit 135'); insert into exit_road values(130,'I98','Virgina Jucture Exit 130'); insert into exit_road values(125,'I98','Virgina Jucture Exit 125'); insert into exit_road values(120,'I495','National Highway Thru 120'); insert into exit_road values(110,'I495','National Highway Thru 110'); insert into exit_road values(100,'I495','National Highway Thru 100'); insert into toll_rate values(1,'I95',143,149,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',1,6); insert into toll_rate values(2,'I95',149,152,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',3,2); insert into toll_rate values(3,'I95',149,143,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',5,1); insert into toll_rate values(4,'I95',152,149,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',8,3); insert into toll_rate values(5,'I96',155,157,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',2,7); insert into toll_rate values(6,'I96',157,159,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',3,1); insert into toll_rate values(7,'I96',157,155,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',5,2); insert into toll_rate values(8,'I96',159,157,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',6,4); insert into toll_rate values(9,'I97',165,168,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',4,5); insert into toll_rate values(10,'I97',168,170,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',6,6); insert into toll_rate values(11,'I97',168,165,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',7,8); insert into toll_rate values(12,'I97',170,168,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',3,6); insert into toll_rate values(13,'I98',125,130,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',8,4); insert into toll_rate values(14,'I98',130,135,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',6,2); insert into toll_rate values(15,'I98',130,125,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',9,3); insert into toll_rate values(16,'I98',135,130,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',6,1); insert into toll_rate values(17,'I495',100,110,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',3,8); insert into toll_rate values(18,'I495',110,120,'North',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',9,9); insert into toll_rate values(19,'I495',110,100,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',2,10); insert into toll_rate values(20,'I495',120,110,'South',timestamp '2018-05-01 10:00:00',timestamp '2018-12-31 12:00:00',7,1); insert into trip values(1,1,1,1,'I95',143,149,TO_DATE('2018/08/10 11:00:00','yyyy/mm/dd hh:mi:ss'),1,1,1,'North'); insert into trip values(2,1,1,1,'I95',149,152,TO_DATE('2018/08/10 11:05:00','yyyy/mm/dd hh:mi:ss'),1,1,3,'North'); insert into trip values(3,1,1,1,'I96',155,157,TO_DATE('2018/08/10 11:15:00','yyyy/mm/dd hh:mi:ss'),1,0,2,'North'); insert into trip values(6,2,2,2,'I96',157,159,TO_DATE('2018-08-10 11:10:00','yyyy/mm/dd hh:mi:ss'),1,0,3,'North'); insert into trip values(4,1,1,1,'I96',157,159,TO_DATE('2018-08-10 11:20:00','yyyy/mm/dd hh:mi:ss'),1,0,3,'North'); insert into trip values(5,null,null,5,'I495',120,110,TO_DATE('2018-08-10 11:15:00','yyyy/mm/dd hh:mi:ss'),3,0,12,'South'); insert into trip values(8,4,2,4,'I495',120,110,TO_DATE('2018-08-10 11:25:00','yyyy/mm/dd hh:mi:ss'),1,1,7,'South'); insert into trip values(7,3,3,3,'I97',168,165,TO_DATE('2018-08-10 11:10:00','yyyy/mm/dd hh:mi:ss'),1,1,7,'South'); insert into trip values(9,null,null,5,'I98',130,135,TO_DATE('2018-11-28 12:15:00','yyyy/mm/dd hh:mi:ss'),3,0,11,'North'); insert into trip values(10,null,null,6,'I98',130,135,TO_DATE('2018-11-28 12:25:00','yyyy/mm/dd hh:mi:ss'),3,0,11,'North'); insert into trip values(11,null,null,5,'I97',170,168,TO_DATE('2018-10-25 01:15:00','yyyy/mm/dd hh:mi:ss'),3,0,8,'South'); insert into trip values(12,null,null,5,'I495',110,120,TO_DATE('2018-09-10 11:15:00','yyyy/mm/dd hh:mi:ss'),3,0,14,'North'); insert into trip values(13,null,7,6,'I495',110,120,TO_DATE('2018-09-10 11:15:00','yyyy/mm/dd hh:mi:ss'),2,0,9,'North'); insert into trip values(14,null,7,2,'I495',110,120,TO_DATE('2018-09-10 11:15:00','yyyy/mm/dd hh:mi:ss'),2,0,9,'North'); insert into trip values(15,2,2,2,'I495',110,120,TO_DATE('2018-09-10 11:15:00','yyyy/mm/dd hh:mi:ss'),1,0,9,'North'); insert into trip values(16,1,1,1,'I495',110,120,TO_DATE('2018-09-10 11:15:00','yyyy/mm/dd hh:mi:ss'),1,0,9,'North'); insert into payment values(2001,1,date '2018-08-11',1); insert into payment values(2002,1,date '2018-08-12',3); insert into payment values(2003,4,date '2018-08-12',7); insert into payment values(2004,3,date '2018-08-12',7); insert into video_bill values(3001,5,date '2018-08-10',2); insert into video_bill values(3002,9,date '2018-11-28',2); insert into video_bill values(3003,10,date '2018-11-28',1); insert into video_bill values(3004,11,date '2018-10-25',2); insert into video_bill values(3005,12,date '2018-09-10',2); insert into message values(4001,1,date '2018-10-01','You have no message'); insert into message values(4002,2,date '2018-10-02','You have no message'); insert into message values(4003,3,date '2018-10-03','You have no message'); insert into message values(4004,4,date '2018-10-04','You have no message'); insert into message values(4005,5,date '2018-10-05','You have no message'); insert into discount_rate values(0.5,1,5); --Feature Code --Feature 1 create or replace procedure feature_1(username varchar,e_email varchar,p_password varchar, a_address varchar, b_balance int) is check_username account.account_name%type; check_email account.email%type; cursor c1 is select account_name from account where account_name=username; Cursor c2 is select email from account where email=e_email; begin open c1; open c2; loop fetch c1 into check_username; fetch c2 into check_email; exit when c1%notfound and c2%notfound; end loop; if check_username like username then dbms_output.put_line('Username exists'); elsif check_email like e_email then dbms_output.put_line('Email exists'); else insert into account(account_id,account_name,email,password_,address, balance) values (account_id_updation.nextval,username, e_email, p_password,a_address,b_balance); dbms_output.put_line('Hello '||username||'!'||' Account created.'); end if; close c1; close c2; end; / --Feature 2 create or replace procedure feature_2 (e_email in varchar, p_password in varchar) is cursor c1 is select email, password_ from account where email=e_email and password_=<PASSWORD>; check_email account.email%type; check_password account.password_%type; begin open c1; loop fetch c1 into check_email, check_password; exit when c1%notfound; end loop; if c1%rowcount=1 then dbms_output.put_line('Login Sucessful'); else dbms_output.put_line('Login Unsucessful'); end if; close c1; end; / --Feature 3 create or replace procedure feature_3(a_account_id int, m_message_time date) as a_id message.account_id%type; m_time message.message_time%type; m_body message.message_body%type; check_account account.account_id%type; cursor c1 is select account_id, message_time, message_body into a_id, m_time, m_body from message where account_id=a_account_id and message_time>=m_message_time; begin select count(*) into check_account from account where account.account_id=a_account_id; if check_account=0 then dbms_output.put_line('Invalid Account'); else open c1; loop fetch c1 into a_id, m_time, m_body; if c1%rowcount=0 then dbms_output.put_line('No Mesasges to Display'); end if; exit when c1%notfound; dbms_output.put_line('Account Id: '||a_id||' Message time: '||m_time||' Message: '||m_body); end loop; close c1; end if; end; / -----Feature 4------ ----Add Vehicle---- create or replace procedure feature_4_add(Acc_Id in int,license in varchar,V_state in varchar,address in varchar,V_class in int) AS car_count account.account_id%type; t_transponder_id transponder.transponder_id%type; acc_count int; begin select count(*) into car_count from vehicle v where v.account_id=Acc_Id and v.license_platenumber=license and vehicle_state=v.vehicle_state; select count(*) into acc_count from account where account_id=acc_id; if car_count = 0 and acc_count=1 then select transponder_id into t_transponder_id from transponder where account_id=acc_id; insert into vehicle values(Veh_seq.nextval,Acc_Id,license,V_state,V_class,address); insert into message values(message_id_seq.nextval,Acc_Id,sysdate,'Vehicle has been added'); dbms_output.put_line('Vehicle Added'); elsif car_count=0 and acc_count=0 then insert into vehicle values(Veh_seq.nextval,null,license,V_state,V_class,address); insert into message values(message_id_seq.nextval,null,sysdate,'Vehicle has been added'); dbms_output.put_line('Vehicle Added'); else dbms_output.put_line('The vehicle exists'); update vehicle set vehicle_class=V_class, owner_address=address where Account_id=Acc_Id; end if; Exception When no_data_found then dbms_output.put_line('No data found'); end; --Deletion of Vehicle / create or replace procedure feature_4_delete(Acc_Id in int,license in varchar,V_state in varchar) as A_id int; O_license int; O_state int; V_id int; T_id int; begin -- check if valid account id select count(*) into A_id from vehicle v where v.account_id=Acc_Id; if A_id = 0 then dbms_output.put_line('Account id is invalid'); else -- check if license plate matches select count(*) into O_license from vehicle v where v.License_Platenumber=license; if O_license=0 then dbms_output.put_line('License does not match'); else select count(*) into O_state from vehicle v where v.Vehicle_State=V_state; if O_state=0 then dbms_output.put_line('State does not match'); else select v.Account_Id into A_id from vehicle v where v.Account_Id=Acc_Id and v.License_Platenumber=license and v.Vehicle_state=V_state; select v.vehicle_id into V_id from vehicle v where v.account_id=Acc_id and v.license_platenumber=license and v.Vehicle_state=V_state; if A_id <> 0 and V_id <> 0 then -- Delete references delete from video_bill vb where vb.Trip_Id in (select t.Trip_Id from trip t where Account_id=A_id and vehicle_id=V_id); delete from trip where Account_id=A_id and vehicle_id=V_id; -- delet from vehicle delete from vehicle where Account_id=A_id and License_Platenumber=license; insert into message values(Message_id_seq.nextval,Acc_Id,sysdate,'Vehicle has been deleted'); end if; end if; end if; end if; Exception when no_data_found then dbms_output.put_line('No data found'); end; / --Feature 5 -- Add Transponder create or replace procedure feature_5_add(Acc_id in int,T_id in int) as check_Tid number; check_Aid number; begin select count(*) into check_Tid from Transponder t where t.transponder_id = T_id and t.Account_id = Acc_id; select count(*) into check_Aid from Account where Account.Account_id=Acc_id; if check_Tid = 0 then if check_Aid = 1 then insert into Transponder values(T_id,106,206,Acc_id); insert into Message values(Message_id_seq.nextval,Acc_id,sysdate,'Transponder has been added'); else dbms_output.put_line('Invalid Account'); end if; else dbms_output.put_line('Account_id already exists'); end if; Exception When no_data_found then dbms_output.put_line('No data found'); end; / --Deletion of Transponder create or replace procedure feature_5_delete(Acc_id in int,Transpond_id in int) as A_id int; T_id int; begin -- check if valid account id select count(*) into A_id from account a where a.account_id=Acc_Id; if A_id = 0 then dbms_output.put_line('Account id is invalid'); else -- check if license plate matches select count(*) into T_id from Transponder t where t.transponder_id = Transpond_id and t.Account_id = Acc_id; if T_id=0 then dbms_output.put_line('Transponder does not match any existing transponder in that account.'); else if A_id <> 0 and T_id <> 0 then -- Delete references delete from video_bill vb where vb.Trip_Id in (select t.Trip_Id from trip t where Account_id=A_id and transponder_id=Transpond_id); delete from trip where Account_id=A_id and Transponder_Id=Transpond_id; delete from transponder where Account_id=A_id and transponder_id=transpond_id; insert into message values(Message_id_seq.nextval,Acc_Id,sysdate,'Transponder has been deleted'); end if; end if; end if; Exception when no_data_found then dbms_output.put_line('No data found'); end; / --Feature 6 create or replace function feature_6_function(trans_id int, licence_p varchar, state_s varchar) return int is t_transponder_id transponder.transponder_id%type; l_license vehicle.License_Platenumber%type; s_state vehicle.Vehicle_State%type; a_account_id account.account_id%type; v_vehicle_id vehicle.vehicle_id%type; vehicle_check int; all_ok int; begin select count(*) into a_account_id from account,vehicle where account.account_id=vehicle.account_id and vehicle.license_platenumber=licence_p and vehicle.vehicle_state=state_s; select account_id into vehicle_check from vehicle where vehicle.license_platenumber=licence_p and vehicle.vehicle_state=state_s; select count(*) into all_ok from transponder where account_id=vehicle_check and transponder_id=trans_id; select count(*) into t_transponder_id from transponder where transponder.transponder_id=trans_id; select count(*) into l_license from vehicle where vehicle.license_platenumber=licence_p and vehicle.vehicle_state=state_s; select count(*) into s_state from vehicle where vehicle.license_platenumber=licence_p and vehicle.vehicle_state=state_s; if all_ok=1 then return 1; end if; if (trans_id is null or t_transponder_id=0) and a_account_id=1 and (l_license=1 and s_state=1) then return 2; end if; if (trans_id is null or t_transponder_id=0) and a_account_id=0 and (l_license=1 and s_state=1) then return 3; else return 0; end if; end; / create or replace procedure feature_6_procedure(trans_id int, licence_p varchar, state_s varchar) is t_transponder_id transponder.transponder_id%type; l_license vehicle.License_Platenumber%type; s_state vehicle.Vehicle_State%type; a_account_id account.account_id%type; v_vehicle_id vehicle.vehicle_id%type; return_val varchar(10); begin return_val:=feature_6_function(trans_id, licence_p, state_s); if return_val=1 then select vehicle_id,account.account_id into v_vehicle_id,a_account_id from vehicle, account where account.account_id=vehicle.account_id and License_Platenumber=licence_p and vehicle_state=state_s; dbms_output.put_line('Account Id: '||a_account_id||' ,Vehicle Id: '||v_vehicle_id||' ,Status: 1'); elsif return_val=2 then select vehicle_id,account.account_id into v_vehicle_id,a_account_id from vehicle, account where account.account_id=vehicle.account_id and License_Platenumber=licence_p and vehicle_state=state_s; dbms_output.put_line('Account Id: '||a_account_id||' ,Vehicle Id: '||v_vehicle_id||' ,Status: 2'); elsif return_val=0 then insert into message values(message_id_seq.nextval, a_account_id, sysdate, 'Vehicle is not associated with any account but transponder is used'); dbms_output.put_line('Vehicle is not associated with any account but transponder is used'); else select vehicle_id into v_vehicle_id from vehicle where License_Platenumber=licence_p and vehicle_state=state_s; dbms_output.put_line('Vehicle Id: '||v_vehicle_id||' ,Status: 3'); end if; end; / --Feature 7 create or replace procedure feature_7(trans_id int, licence_p varchar, state_s varchar, road_id_inp varchar, enter_exit_id int, exit_exit_id int, enter_time date) is a_account_id account.account_id%type; v_vehicle_id vehicle.vehicle_id%type; t_toll_status trip.trip_status%type; vehicle_discount float; v_vehicle_class vehicle.vehicle_class%type; computed_toll float; admin_fee_val float; t_transponder_id transponder.transponder_id%type; return_val int; s_start_eid int; e_end_id int; d_direction varchar(10); Cursor c1 is select start_eid, end_eid, direction from toll_rate where road_id=road_id_inp and start_eid>=enter_exit_id and end_eid<=exit_exit_id and start_eid<end_eid; Cursor c2 is select start_eid, end_eid, direction from toll_rate where road_id=road_id_inp and start_eid<=enter_exit_id and end_eid>=exit_exit_id and start_eid>end_eid; begin return_val := feature_6_function(trans_id, licence_p, state_s); select vehicle_class into v_vehicle_class from vehicle where license_platenumber=licence_p and vehicle_state=state_s; select vehicle_id into v_vehicle_id from vehicle where license_platenumber=licence_p and vehicle_state=state_s; if(return_val=1 or return_val=2) then select discountrate into vehicle_discount from discount_rate; if return_val=1 then if(v_vehicle_class=1) then select account_id into a_account_id from transponder where transponder_id=trans_id; if(enter_exit_id<exit_exit_id) then open c1; loop fetch c1 into s_start_eid, e_end_id, d_direction; exit when c1%notfound; computed_toll:=0; select sum(car_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid>=s_start_eid and end_eid<=e_end_id and start_eid<end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, trans_id,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c1; else open c2; loop fetch c2 into s_start_eid, e_end_id, d_direction; exit when c2%notfound; computed_toll:=0; select sum(car_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid<=s_start_eid and end_eid>=e_end_id and start_eid>end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, trans_id,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c2; end if; else if(enter_exit_id<exit_exit_id) then open c1; loop fetch c1 into s_start_eid, e_end_id, d_direction; exit when c1%notfound; computed_toll:=0; select sum(truck_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid>=s_start_eid and end_eid<=e_end_id and start_eid<end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, trans_id,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c1; else open c2; loop fetch c2 into s_start_eid, e_end_id, d_direction; exit when c2%notfound; computed_toll:=0; select sum(truck_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid<=s_start_eid and end_eid>=e_end_id and start_eid>end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, trans_id,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c2; end if; end if; else if(v_vehicle_class=1) then select vehicle_id into v_vehicle_id from vehicle where license_platenumber=licence_p and vehicle_state=state_s; select account_id into a_account_id from vehicle where vehicle_id=v_vehicle_id; select discountrate into vehicle_discount from discount_rate; if(enter_exit_id<exit_exit_id) then open c1; loop fetch c1 into s_start_eid, e_end_id, d_direction; exit when c1%notfound; computed_toll:=0; select sum(car_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid>=s_start_eid and end_eid<=e_end_id and start_eid<end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c1; else open c2; loop fetch c2 into s_start_eid, e_end_id, d_direction; exit when c2%notfound; computed_toll:=0; select sum(car_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid<=s_start_eid and end_eid>=e_end_id and start_eid>end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c2; end if; else if(enter_exit_id<exit_exit_id) then open c1; loop fetch c1 into s_start_eid, e_end_id, d_direction; exit when c1%notfound; computed_toll:=0; select sum(truck_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid>=s_start_eid and end_eid<=e_end_id and start_eid<end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c1; else open c2; loop fetch c2 into s_start_eid, e_end_id, d_direction; exit when c2%notfound; computed_toll:=0; select sum(truck_tollrate) into computed_toll from toll_rate where road_id=road_id_inp and start_eid<=s_start_eid and end_eid>=e_end_id and start_eid>end_eid group by road_id; computed_toll:=computed_toll*vehicle_discount; insert into trip values(trip_id_updation.nextval, a_account_id, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c2; end if; end if; end if; else select video_toll,admin_fee into vehicle_discount,admin_fee_val from discount_rate; if(enter_exit_id<exit_exit_id) then open c1; loop fetch c1 into s_start_eid, e_end_id, d_direction; exit when c1%notfound; computed_toll:=0; select car_tollrate into computed_toll from toll_rate where road_id=road_id_inp and start_eid>=s_start_eid and end_eid<=e_end_id and start_eid<end_eid; computed_toll:=computed_toll*vehicle_discount+admin_fee_val; insert into trip values(trip_id_updation.nextval, null, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c1; else open c2; loop fetch c2 into s_start_eid, e_end_id, d_direction; exit when c2%notfound; computed_toll:=0; select car_tollrate into computed_toll from toll_rate where road_id=road_id_inp and start_eid<=s_start_eid and end_eid>=e_end_id and start_eid>end_eid; computed_toll:=computed_toll*vehicle_discount+admin_fee_val; insert into trip values(trip_id_updation.nextval, null, null,v_vehicle_id,road_id_inp,s_start_eid,e_end_id,enter_time,return_val,0,computed_toll,d_direction); end loop; close c2; end if; end if; end; / --Feature 8 create or replace function compute_video_toll(t_trip_id int, entering_id int, exiting_id int) return float is e_entering int; e_exiting int; computed_toll float; admin_fee_val float; vehicle_discount float; e_entrance_time trip.entrance_time%type; tripid int; vehi int; acc_id int; v_vehicle_class int; Begin select entrance_time into e_entrance_time from trip where trip_id=t_trip_id; select account_id into acc_id from trip where trip_id=t_trip_id; select vehicle_class into v_vehicle_class from vehicle where account_id=acc_id; if(entering_id<exiting_id) then select entering_exitid,exiting_exitid,entrance_time into e_entering,e_exiting,e_entrance_time from trip where trip_id=t_trip_id; select car_tollrate into computed_toll from toll_rate where start_eid=e_entering and end_eid=e_exiting and toll_starttime<=e_entrance_time and toll_endtime>=e_entrance_time; select video_toll,admin_fee into vehicle_discount,admin_fee_val from discount_rate; computed_toll:=(computed_toll*vehicle_discount)+admin_fee_val; else select entering_exitid,exiting_exitid,entrance_time into e_entering,e_exiting,e_entrance_time from trip where trip_id=t_trip_id; select car_tollrate into computed_toll from toll_rate where start_eid=e_exiting and end_eid=e_entering and toll_starttime<=e_entrance_time and toll_endtime>=e_entrance_time; computed_toll:=(computed_toll*vehicle_discount)+admin_fee_val; end if; return computed_toll; end; / create or replace procedure feature_8 (tripID int) As TollDeducted trip.toll_deducted%type; tripStatus trip.trip_status%type; Account_balance Account.balance%type; TollApplied trip.toll%type; AccountId account.account_id%type; toll_compute float; e_entering int; e_exiting int; Begin select t.toll_deducted into TollDeducted from trip t where t.trip_id=tripId; select entering_exitid, exiting_exitid into e_entering, e_exiting from trip where trip_id=tripID; if TollDeducted = 1 then dbms_output.put_line('The toll has been deducted'); else select t.trip_status into tripStatus from trip t where t.trip_id=tripId; if tripStatus in (1,2) then select a.balance,t.toll,a.account_id into Account_balance,TollApplied,AccountId from account a,trip t where a.account_id=t.account_id and t.trip_id=6; if Account_balance >= TollApplied then update Account set balance = balance-tollapplied where Account_id=AccountId; update trip set toll_deducted=1 where trip_id=tripid; else toll_compute := compute_video_toll(tripid,e_entering,e_exiting); update trip set toll=toll_compute,trip_status=3 where trip_id=tripId; insert into video_bill values(Bill_Id.nextval,tripID,sysdate,1); insert into message values(message_id_seq.nextval,AccountId,sysdate,'Please replenish your account'); dbms_output.put_line('Please replenish your account'); end if; ELSIF tripStatus = 3 then insert into video_bill values(Bill_Id.nextval,tripID,sysdate,1); dbms_output.put_line('Video Bill Generated'); end if; end if; end; / --Feature 9 create or replace procedure feature_9(acc_id in int,Amt in int) is check_aid integer; check_payment integer; begin --check if valid account id-- select count(*) into check_aid from Account where Account_id=acc_id; if check_aid = 0 then dbms_output.put_line('The account cannot be found'); else --insert into payment table and message table-- insert into payment values(payment_id_seq.nextval, Acc_id,sysdate,Amt); insert into message values(message_id_seq.nextval,Acc_id,sysdate,'payment recieved'); dbms_output.put_line('Payment Received'); end if; end; / --Feature 10 create or replace procedure feature_10(Vbill_id varchar,New_status int) IS v_status int; check_bill int; begin --Check for valid bill id select count(*) into check_bill from video_bill where bill_id=Vbill_id; if check_bill=0 then dbms_output.put_line('Invalid Bill id'); else select vb.status into v_status from video_bill vb, trip t where vb.trip_id=t.trip_id and vb.bill_id=Vbill_id; if v_status=1 then update video_bill set status=New_status where bill_id=Vbill_id; dbms_output.put_line('The status has been changed'); else dbms_output.put_line('No video bill to update'); end if; end if; end; / --Feature 11 create or replace procedure feature_11 (aa_id in integer,mindate in date, maxdate in date ) is cursor c1 is select trip.Transponder_id,License_Platenumber, Road_id, Entering_ExitId,Exiting_ExitId, trip.Entrance_Time, toll from trip, vehicle,transponder where transponder.account_id=trip.account_id and vehicle.account_id=trip.account_id and trip.account_id=aa_id and entrance_time>=mindate and maxdate>=entrance_time; cursor c2 is select payment_id, payment_date,amount from payment where account_id=aa_id and payment_date>=mindate and maxdate>=payment_date; trans_ponder_id transponder.transponder_id%type; license_pno vehicle.license_platenumber%type; r_oad_name road.road_name%type; en_id trip.Entering_ExitId%type; ex_id trip.Exiting_ExitId%type; en_time trip.Entrance_Time%type; toll_d trip.toll_deducted%type; payment_d payment.payment_date%type; amountpaid payment.amount%type; pay_id int; a_id integer; begin --Check if valid Account Id select count(*) into a_id from account where account_id=aa_id; if a_id=0 then dbms_output.put_line('Entered account id is not valid'); else open c1; loop fetch c1 into trans_ponder_id,license_pno,r_oad_name,en_id,ex_id,en_time,amountpaid; exit when c1%notfound; dbms_output.put_line('Transponder id: '|| trans_ponder_id|| ' , license platenumber: '|| license_pno || ' , Road Name: '||r_oad_name|| ' , Entering Exit Id: ' ||en_id||' , Exit Exit id: ' ||ex_id|| ' , Entering Time: ' ||en_time||' , Amount Paid: ' ||amountpaid); end loop; close c1; DBMS_OUTPUT.NEW_LINE; open c2; loop fetch c2 into pay_id,payment_d,amountpaid; exit when c2%notfound; dbms_output.put_line('Payment id: ' || pay_id || ' payment date: ' || payment_d || ' Amount: ' || amountpaid); end loop; close c2; end if; end; / --Feature 12 create or replace procedure feature_12(acc_id int, last_date date) is total_toll float; total_payment float; check_acc int; check_trip int; begin select count(*) into check_acc from account where account_id=acc_id; ----Check if valid Account or trip exists if check_acc=0 then dbms_output.put_line('Account not found'); elsif check_trip=0 then dbms_output.put_line('Trip not found'); else -- Call Feature 11 feature_11(acc_id,last_date,last_date + interval '30' DAY); DBMS_OUTPUT.NEW_LINE; --Get total Toll for the account id & date range mentioned select sum(toll) into total_toll from trip where account_id=acc_id and entrance_time>last_date and entrance_time<=last_date+interval '30' DAY; dbms_output.put_line('Total toll: ' || total_toll); DBMS_OUTPUT.NEW_LINE; --Calculate Total Payment for the account id & date range mentioned select sum(amount) into total_payment from payment where account_id=acc_id and payment_date>last_date and payment_date<=last_date+interval '30' DAY; if total_payment is null then total_payment:=0; end if; dbms_output.put_line('Total Payment: ' || total_payment); end if; end; / --Feature 13 create or replace procedure feature_13(date_range1 date, date_range2 date) as --Get Road name and sum in the given date range cursor c1 is select r.road_name as roadName, sum(t.toll) from road r, trip t where t.entrance_time <= date_range2 and t.entrance_time >=date_range1 and t.road_id=r.road_id group by r.road_name order by sum(t.toll) desc; x int; R_name varchar(50); total_toll_deducted int; begin ---Get count of trips select count(*) into x from trip where entrance_time<= date_range2 and entrance_time>=date_range1; Open c1; loop fetch c1 into R_name,total_toll_deducted; exit when c1%Notfound; dbms_output.put_line('Total Toll for Road Name : ' || R_name ||' Total toll : ' || total_toll_deducted ); end loop; close c1; dbms_output.put_line(' Total Number of trips: '|| x ); end; / --Feature 14 create or replace procedure feature_14(date_range1 date, date_range2 date,roadId varchar) as cursor c1 is select entering_exitid,count(*) from trip where exiting_exitid > entering_exitid and trunc(entrance_time) > date_range1 and trunc(entrance_time) < date_range2 and road_id = roadId group by exiting_exitid, entering_exitid order by count(*) desc; -- This is in descending order cursor c2 is select entering_exitid,count(*) from trip where exiting_exitid < entering_exitid and trunc(entrance_time) > date_range1 and trunc(entrance_time) < date_range2 and road_id = roadId group by exiting_exitid, entering_exitid order by count(*) desc; x int; R_name varchar(50); Entering_id int; exiting_id int; exiting_exitid int; total_trips int; direction varchar(20); RoadIdcount int; begin --Get road count matching the given road id select count(*) into RoadIdcount from trip where road_id=roadId; --Check for invalid road Id if RoadIdcount = 0 then dbms_output.put_line('Invalid Road Id'); else open c1; loop fetch c1 into Entering_id, total_trips; exit when c1%notfound; dbms_output.put_line('Exit Id : ' || Entering_id || ', Direction : '|| ', Increasing Exit Id '||', Total Trips ' ||total_trips); end loop; close c1; open c2; loop fetch c2 into exiting_id, total_trips; exit when c2%notfound; dbms_output.put_line('Exit Id : ' || Exiting_Id || ', Direction : '|| ' Decresing Exit Id '||', Total Trips ' ||total_trips); end loop; Close c2; end if; end; / --Feature 15 create or replace procedure Feature_15(start_date in date,end_date in date,k in VARCHAR) AS Cursor c1 is select * from (select account.Account_id,sum(toll),count(trip_id),trip.vehicle_id from account,trip where trip.Account_id = account.Account_id and trunc(entrance_time) > start_date and trunc(entrance_time) < end_date group by account.Account_id, trip.vehicle_id order by sum(toll) desc) where rownum <= k; Cursor c2 is select * from (select trip.vehicle_id, sum(toll),count(toll) from trip,vehicle where trip.vehicle_id=vehicle.vehicle_id and trunc(entrance_time) > start_date and trunc(entrance_time) < end_date and trip.trip_status = 3 group by trip.vehicle_id order by count(trip.trip_id) desc) where rownum <= k; account_id account.Account_id%type; total_toll number; count_trips number; veh_ID vehicle.vehicle_id%type; total_toll1 number; count_trips1 number; vehicle1 number; vehicle2 number; BEGIN open c1; dbms_output.put_line('Toll Bill'); Loop fetch c1 into account_id,total_toll,count_trips,vehicle1; exit when c1%NOTFOUND; dbms_output.put_line('Account ID: '||account_id||' '||'Toll: '||total_toll||' Number of Trips: '||count_trips || 'Vehicle ID: '||vehicle1); end loop; close c1; open c2; dbms_output.put_line('--------------'); dbms_output.put_line('Video Toll Bill'); Loop fetch c2 into veh_ID,total_toll,count_trips; exit when c2%NOTFOUND; dbms_output.put_line('Vehicle ID: '||veh_ID||' '||'Total Toll: '||total_toll||' Number of Trips: '||count_trips); end loop; close c2; Exception when no_data_found then dbms_output.put_line( 'No data found'); END; / --Feature 16 create or replace procedure feature_16 (mindate in date, maxdate in date ) as cursor c1 is select t1.vehicle_id, t2.vehicle_id, t1.road_id, t1.entering_exitid, t1.exiting_exitid, t1.entrance_time ,t2.entrance_time from trip t1, trip t2 where t1.trip_id <> t2.trip_id and t1.road_id=t2.road_id and t1.entering_exitid=t2.entering_exitid and t1.exiting_exitid=t2.exiting_exitid and (t1.entrance_time<=t2.entrance_time+interval '30' minute and t1.entrance_time >= t2.entrance_time - interval '30' minute) and t1.vehicle_id>t2.vehicle_id and trunc(t1.entrance_time) >= mindate and trunc(t1.entrance_time) <= maxdate; v_ehicle_id1 trip.vehicle_id%type; v_ehicle_id2 trip.vehicle_id%type; r_oad_id trip.road_id%type; e_ntering_exitid trip.entering_exitid%type; e_xiting_exitid trip.exiting_exitid%type; e_ntrance_time1 trip.entrance_time%TYPE; e_ntrance_time2 trip.entrance_time%TYPE; begin open c1; loop fetch c1 into v_ehicle_id1,v_ehicle_id2,r_oad_id,e_ntering_exitid,e_xiting_exitid,e_ntrance_time1,e_ntrance_time2; exit when c1%notfound; dbms_output.put_line(' Vehicle id1 : '|| v_ehicle_id1|| ' , Vehicle id2 : '|| v_ehicle_id2|| ', Road id: '|| r_oad_id|| ', Entering Exit Id: '|| e_ntering_exitid||' ,Exiting Exit Id: ' || e_xiting_exitid || ', Entrance Time 1: '|| e_ntrance_time1 ||', Entrance Time 2: '|| e_ntrance_time2 ); end loop; close c1; EXCEPTION when no_data_found then dbms_output.put_line(' No pairs of cars travelled during the range of time mentioned '); end;
<gh_stars>1-10 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[AnswerChoice]( [Id] [nvarchar](128) NOT NULL, [QuestionId] [nvarchar](128) NOT NULL, [Text] [nvarchar](max) NULL, [Points] [tinyint] NOT NULL CONSTRAINT [DF_AnswerChoice_Points] DEFAULT ((0)), CONSTRAINT [PK_AnswerChoice] PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO ALTER TABLE [dbo].[AnswerChoice] WITH CHECK ADD CONSTRAINT [FK_AnswerChoice_Question] FOREIGN KEY([QuestionId]) REFERENCES [dbo].[Question] ([Id]) ON DELETE CASCADE GO ALTER TABLE [dbo].[AnswerChoice] CHECK CONSTRAINT [FK_AnswerChoice_Question] GO
CREATE TABLE short_url ( pk_id_shorturl smallserial NOT NULL, modified_at timestamp NOT NULL, remote_ip inet NOT NULL, local_ip inet NOT NULL, local_port integer DEFAULT(1337), instance_id uuid NOT NULL );
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 03, 2016 at 03:07 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `job_board` -- -- -------------------------------------------------------- -- -- Table structure for table `jobs` -- CREATE TABLE IF NOT EXISTS `jobs` ( `job_id` int(11) NOT NULL, `title` varchar(100) NOT NULL, `company` varchar(50) NOT NULL, `location` varchar(20) NOT NULL, `description` text NOT NULL, `responsibilities` text NOT NULL, `skills` text NOT NULL, `perks` text NOT NULL, `salary_min` int(11) NOT NULL, `salary_max` int(11) NOT NULL, `duration` enum('Full time','Part time') NOT NULL, `expires` date NOT NULL, `created_by` int(11) NOT NULL, `deleted` enum('no','yes') NOT NULL, `date_created` datetime NOT NULL, `date_modified` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `jobs` -- INSERT INTO `jobs` (`job_id`, `title`, `company`, `location`, `description`, `responsibilities`, `skills`, `perks`, `salary_min`, `salary_max`, `duration`, `expires`, `created_by`, `deleted`, `date_created`, `date_modified`) VALUES (1, 'Associate Software Engineer', 'Infosys Pvt Ltd', 'Ahmedabad', 'Ability to code right solutions starting with broadly defined problems, Understand basic Algorithm fundamentals Development of code in object oriented languages like Java or Ruby (ROR) and build, test, deploy large scale robust distributed systems.', '<ul class=''bullets''><li>Development of code in object oriented languages like Java or Ruby (ROR) and build, test, deploy large scale robust distributed systems.</li><li>Web designing with mockups.</li></ul>', '<ul class=''bullets''><li>A solid grounding in Computer Science fundamentals (based on a BS or MS in CS or related field)</li><li>Understanding of the tools of the trade, including an understanding of any of modern programming languages (Java / JavaScript / C/C++).</li><li>Proven educational track record with sound data structure and algorithm knowledge.</li></ul>', '<ul class=''bullets''><li>Apple gear upon joining ( MacBook )</li><li>Flexible work hours.</li></ul>', 400000, 1200000, 'Full time', '2016-11-08', 1, 'no', '2016-07-12 00:26:26', '0000-00-00 00:00:00'), (2, 'Software Engineer', 'Surya Software Systems', 'Chandigarh', 'JavaScript and front-end development (Ember.js, AngularJS and Bootstrap)\r\n.Net developer, who can work on our next generation product. ', '<ul class=''bullets''><li>We’re looking for enthusiastic engineers, for whom building great software goes beyond a job, and is a passion.We’re looking for people who thrive in an aggressive, competitive environment, and like swimming in the deep end.</li></ul>', '<ul class=''bullets''><li>We’re looking for people who thrive in an aggressive, competitive environment, and like swimming in the deep end.We’re looking for people who don’t just see this as work, but as their life’s work.</li></ul>', '<ul class=''bullets''><li>Saturday - Sunday Off.</li><li>Apple gear upon joining ( MacBook )Flexible work hours.</li></ul>', 350000, 700000, 'Full time', '2016-11-15', 1, 'no', '2016-07-12 00:29:10', '2016-07-12 00:38:15'), (3, 'De-identification Statistician, Data Sciences', 'Madgigs Corp', 'Bangalore', 'Janssen Pharmaceuticals is currently recruiting for a De-identification Statistician, Data Sciences. This position can be located in Raritan, NJ; Titusville, NJ; or Spring House, PA. Occasional travel to the NJ/PA sites will be required. Additional travel up to 15% may be required.', '<ul class=''bullets''><li>Ensure solutions are consistent with business objectives or business strategy.</li><li>Make decisions regarding resource alignment/dedication and prioritization (people resources, dollars/funding, project criticality) and communicate rationale back to the business and project management.</li><li>Contribute to the strategic planning process and long-term direction for the Privacy and De-identification team and aligns plans between stakeholders.</li></ul>', '<ul class=''bullets''><li>Strong understanding of technology trends and the potential impact on the security of clinical data.</li><li>Strong understanding of the business and its operating environment (e.g., trends, competitors, compliance landscape, and regulatory environment).</li><li>Strong expertise in health informatics, including familiarity with health outcomes databases, clinical trial registries Understanding of IT resource and cost drivers for a franchise or business unit.</li></ul>', '<ul class=''bullets''><li>We provide a compensation of INR700,000 - 900,000 with bonuses.</li><li>Apple gear upon joining ( MacBook )</li></ul>', 700000, 900000, 'Full time', '2016-12-17', 1, 'no', '2016-07-12 00:33:41', '0000-00-00 00:00:00'), (4, 'Junior PHP Developer', 'Krazy Mantra IT Pvt Ltd', 'Ahmedabad', 'Looking for freshers who are extremely passionate about joining an early stage product start-up.. ', '<ul class=''bullets''><li>Degree in Computer Science and/or related field is a must.</li><li>Excellent communication skills ( both written and verbal ) is a must.</li><li>Basic knowledge of HTML/CSS/Javascript is a must.</li><li>Experience in building web applications using PHP would be a plus.</li><li>Experience in testing web applications would be a plus.</li></ul>', '<ul class=''bullets''><li>Experience in building web applications using PHP would be a plus.</li><li>Experience in testing web applications would be a plus.</li><li>Must be willing to work with a small team and must have the ability to adapt to a fast-paced development environment quickly.</li></ul>', '<ul class=''bullets''><li>Flexible work hours.</li><li>Anti-Dry Fridays sponsored by company, twice a month. ( we like to party every time a new product/feature is released, typically happens once in two weeks )</li></ul>', 200000, 450000, 'Full time', '2016-12-08', 2, 'no', '2016-07-12 00:37:43', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(11) NOT NULL, `email` varchar(45) CHARACTER SET latin1 COLLATE latin1_general_cs NOT NULL, `password` varchar(64) NOT NULL, `name` varchar(50) NOT NULL, `date_created` datetime NOT NULL, `date_modified` datetime NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `email`, `password`, `name`, `date_created`, `date_modified`) VALUES (1, '<EMAIL>', '<PASSWORD>', '<NAME>', '2016-07-12 00:34:51', '0000-00-00 00:00:00'), (2, '<EMAIL>', '<PASSWORD>', '<NAME>', '2016-07-12 00:42:20', '0000-00-00 00:00:00'); -- -- Indexes for dumped tables -- -- -- Indexes for table `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`job_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `email` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `jobs` MODIFY `job_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- DATA IMPORT SET IDENTITY_INSERT dbo.location ON INSERT INTO dbo.location (id,location_name,active) VALUES (1,'Murfreesboro',1); INSERT INTO dbo.location (id,location_name,active) VALUES (2,'Shelbyville',1); INSERT INTO dbo.location (id,location_name,active) VALUES (3,'Smyrna',1); SET IDENTITY_INSERT dbo.location OFF SET IDENTITY_INSERT dbo.job_type ON INSERT INTO dbo.job_type (id,job_type,active) VALUES (1,'General',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (2,'Web / IT',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (3,'One-Time Special Event',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (4,'LRC (Learning Resource Center)',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (5,'Kid&#39;s Cafe',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (6,'Internship',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (7,'Fundraiser',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (8,'Teen Center',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (9,'Gamesroom',1); INSERT INTO dbo.job_type (id,job_type,active) VALUES (10,'Arts',1); SET IDENTITY_INSERT dbo.job_type OFF SET IDENTITY_INSERT dbo.user_type ON INSERT INTO dbo.user_type (id,user_type) VALUES (1,'admin'); INSERT INTO dbo.user_type (id,user_type) VALUES (2,'staff'); INSERT INTO dbo.user_type (id,user_type) VALUES (3,'intern'); INSERT INTO dbo.user_type (id,user_type) VALUES (4,'volunteer'); SET IDENTITY_INSERT dbo.user_type OFF -- Default Event for all regular volunteers SET IDENTITY_INSERT dbo.event ON INSERT INTO dbo.event (id,event_name,event_date,active) VALUES (1,'General','2020-01-01',1); SET IDENTITY_INSERT dbo.event OFF -- Setup Default volunteers - Staff and Devs SET IDENTITY_INSERT dbo.volunteer ON INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(1,'Shalonda','','Brown','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(2,'Chelsey','','Curtis','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(3,'Jeremiah','D','Weeden-Wright','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(4,'Carson','','Kuhl','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(5,'Emily','','Collins','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(6,'Raja','','Karnati','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(7,'Adam','','Alvis','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(8,'Kishan','','Patel','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(9,'Karla','','Ramirez','','<EMAIL>','615-111-1111','20000101','','','','',1,1); SET IDENTITY_INSERT dbo.volunteer OFF -- Setup Staff and Dev Addresses INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(1,'101 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(2,'105 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(3,'105 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(4,'107 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(5,'101 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(6,'105 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(7,'105 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(8,'107 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(9,'101 N 1st','','Nashville','TN','37215'); -- Setup Staff and Dev Emergency Contacts INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(1,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(2,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(3,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(4,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(5,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(6,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(7,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(8,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(9,'Emergency','Contact','615-333-3333'); -- Setup Staff Dev admins INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,1,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,2,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,3,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,4,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,5,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,6,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,7,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,8,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',1,9,1); -- Setup Volunteers/Interns SET IDENTITY_INSERT dbo.volunteer ON INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(10,'Jonathan','','Beverly','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(11,'Sarah','','Burchyett','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(12,'Suzanne','','Eubank','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(13,'Cheri','','Frame','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(14,'Yolanda','','Greene','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(15,'Mekayla','','Hartsell','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(16,'William','','Hickman','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(17,'James','','Lakes','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(18,'Sonya','','Leeman','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(19,'Melinda','','Mallette','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(20,'Celeste','','Middleton','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(21,'Lisa','','Moore','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(22,'Sharron','','Northern','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(23,'Betty','','Oliver','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(24,'Mike','','Panesi','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(25,'Jimmy','','Pitts','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(26,'Dwight','','Robinson','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(27,'Harold','','Segroves','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(28,'Tanya','','Singh','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(29,'Valerie','','Smith','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(30,'Patrick','','Snipes','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(31,'Brian','','Sullivan','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(32,'Richard','','Thomas','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(33,'Julie','','Thure','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(34,'Rebecca','','Upton','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(35,'Gina','','Urban','','<EMAIL>','111-111-1111','19900101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(36,'Marta','','<NAME>','','<EMAIL>','111-111-1111','19900101','','','','',1,1); SET IDENTITY_INSERT dbo.volunteer OFF -- Setup Volunteer / Intern Addresses INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(10,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(11,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(12,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(13,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(14,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(15,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(16,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(17,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(18,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(19,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(20,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(21,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(22,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(23,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(24,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(25,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(26,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(27,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(28,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(29,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(30,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(31,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(32,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(33,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(34,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(35,'802 Jones Blvd','','Murfreesboro','TN','37129'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(36,'802 Jones Blvd','','Murfreesboro','TN','37129'); -- Setup Volunteer / Intern Emergency Contacts INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(10,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(11,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(12,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(13,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(14,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(15,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(16,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(17,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(18,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(19,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(20,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(21,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(22,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(23,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(24,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(25,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(26,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(27,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(28,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(29,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(30,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(31,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(32,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(33,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(34,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(35,'REPLACE','ME','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(36,'REPLACE','ME','615-333-3333'); -- Setup Volunteer / Intern admins INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,10,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,11,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,12,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,13,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,14,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',3,15,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,16,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,17,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,18,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,19,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,20,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,21,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,22,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,23,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,24,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,25,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,26,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,27,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,28,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,29,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,30,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,31,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,32,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,33,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,34,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,35,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester','2021-01-04',4,36,1); /* TESTING DATA -- Insert Test Intern SET IDENTITY_INSERT dbo.volunteer ON INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(100,'Intern','','VonTern','','<EMAIL>','615-111-1111','20000101','','','','',1,1); SET IDENTITY_INSERT dbo.volunteer OFF -- Setup Addresses INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(100,'101 N 1st','','Nashville','TN','37215'); -- Setup Emergency Contacts INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(100,'Emergency','Contact','615-333-3333'); -- Setup Default admins INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',3,100,1); -- Insert Vol and Intern Data SET IDENTITY_INSERT dbo.volunteer ON INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(21,'Intern','','VonTern','','<EMAIL>','615-111-1111','20000101','','','','',1,1); INSERT INTO dbo.volunteer (id,first_name,middle_name,last_name,suffix,email,phone,dob,skills,interests,availability,find_out_about_us,include_email_dist,active) VALUES(22,'Volunteer','','McVol','','<EMAIL>','615-111-1111','20000101','','','','',1,1); SET IDENTITY_INSERT dbo.volunteer OFF -- Setup Addresses INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(21,'101 N 1st','','Nashville','TN','37215'); INSERT INTO dbo.address (volunteer_id, street_one,street_two,city,state,zip) VALUES(22,'105 N 1st','','Nashville','TN','37215'); -- Setup Emergency Contacts INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(21,'Emergency','Contact','615-333-3333'); INSERT INTO dbo.emergency_contact (volunteer_id, first_name,last_name,phone) VALUES(22,'Emergency','Contact','615-333-3333'); -- Setup Default admins INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',3,21,1); INSERT INTO dbo.app_user (username, password, date_added, user_type_id, volunteer_id, active) VALUES ('<EMAIL>','tester', '2020-10-16',4,22,1); -- Setup Volunteer Periods -- 'Intern' Periods - 10/12 - 10/26 INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-12 12:00:00.0', '2020-10-12 16:00:00.0', 4, NULL, 1, 1, 1, 0, 4, 1, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-13 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 4, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-14 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 6, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-15 12:30:00.0', '2020-10-12 14:30:00.0', 4, NULL, 1, 1, 1, 0, 6, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-16 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-17 12:00:00.0', '2020-10-12 16:00:00.0', 4, NULL, 1, 1, 1, 0, 4, 1, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-18 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 4, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-19 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 6, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-20 12:30:00.0', '2020-10-12 14:30:00.0', 4, NULL, 1, 1, 1, 0, 6, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-21 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-22 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-23 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 4, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-24 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 6, 2, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-25 12:30:00.0', '2020-10-12 14:00:30.0', 4, NULL, 1, 1, 1, 0, 6, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-26 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 3, 1, NULL, 21, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-27 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 3, 1, NULL, 21, NULL); -- 'Volunteer' Periods - 10/14 - 10/28 INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-14 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 5, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-15 12:30:00.0', '2020-10-12 14:30:00.0', 4, NULL, 1, 1, 1, 0, 5, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-16 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 2, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-17 12:00:00.0', '2020-10-12 16:00:00.0', 4, NULL, 1, 1, 1, 0, 2, 3, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-18 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 5, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-19 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 5, 3, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-20 12:30:00.0', '2020-10-12 14:30:00.0', 4, NULL, 1, 1, 1, 0, 2, 2, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-21 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 2, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-22 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 6, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-23 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 6, 3, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-24 11:00:00.0', '2020-10-12 14:00:00.0', 3, NULL, 1, 1, 1, 0, 6, 3, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-25 12:30:00.0', '2020-10-12 14:30:00.0', 4, NULL, 1, 1, 1, 0, 2, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-26 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 1, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-27 10:00:00.0', '2020-10-12 12:00:00.0', 2, NULL, 1, 1, 1, 0, 10, 2, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-28 12:00:00.0', '2020-10-12 16:00:00.0', 4, NULL, 1, 1, 1, 0, 3, 2, 1, NULL, 22, NULL); INSERT INTO dbo.volunteer_period (check_in_time, check_out_time, hours, affiliation, health_release, photo_release, liability_release, first_time, job_type_id, location_id, event_id, community_service_hours, volunteer_id, feedback_id) VALUES('2020-10-29 11:30:00.0', '2020-10-12 16:00:00.0', 5.5, NULL, 1, 1, 1, 0, 3, 1, 1, NULL, 22, NULL); */
UPDATE item SET `USERCHANGABLE` = 1;
<filename>5-Mybatis/SQL/mybatis-procedure1.sql -- get all user info by user_id CREATE PROCEDURE select_user_by_id @userId BIGINT, @userName VARCHAR(50) Output, @userPassword VARCHAR(50) Output, @userEmail VARCHAR(50) Output, @userInfo TEXT Output, @headImg TEXT Output, @createTime DATETIME Output AS BEGIN SELECT @userName=user_name, @userPassword=<PASSWORD>, @userEmail=user_email, @userInfo=user_info, @headImg=head_img, @createTime=create_time FROM sys_user WHERE id=@userId; END
connect 'jdbc:derby://localhost:1527/city_aaa;create=true'; drop table cities; create table cities (id varchar(10), name varchar(20), population int, date_mod date); commit; quit;
<reponame>DzonnyDZ/Caps ALTER TABLE [dbo].[StoredImage] ADD CONSTRAINT [PK_StoredImage] PRIMARY KEY CLUSTERED ([StoredImageID] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF);
<reponame>vinterra/portal-distribution create index IX_A9B43C55 on SyncDLFileVersionDiff (expirationDate); create index IX_F832A75D on SyncDLFileVersionDiff (fileEntryId); create unique index IX_AC4C7667 on SyncDLFileVersionDiff (fileEntryId, sourceFileVersionId, targetFileVersionId); create index IX_980323CB on SyncDLObject (modifiedTime, repositoryId); create index IX_8D4FDC9F on SyncDLObject (modifiedTime, repositoryId, event); create index IX_A3ACE372 on SyncDLObject (modifiedTime, repositoryId, parentFolderId); create index IX_F174AD48 on SyncDLObject (repositoryId, parentFolderId); create index IX_3BE7BB8D on SyncDLObject (repositoryId, parentFolderId, type_); create index IX_57F62914 on SyncDLObject (repositoryId, type_); create unique index IX_E3F57BD6 on SyncDLObject (type_, typePK); create index IX_28CD54BB on SyncDLObject (type_, version); create index IX_1CCA3B5 on SyncDLObject (version, type_);
INSERT INTO `foodie`.`image` VALUES ('1', 'Deals icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/deals.png'); INSERT INTO `foodie`.`category` VALUES (1, 'Deals', 1, 'Deals', '1'); INSERT INTO `foodie`.`image` VALUES ('2', 'Top Eats icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/top_eats.png'); INSERT INTO `foodie`.`category` VALUES (2, 'Top Eats', 1, 'Top Eats', '2'); INSERT INTO `foodie`.`image` VALUES ('3', 'Sushi icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/sushi.png'); INSERT INTO `foodie`.`category` VALUES (3, 'Sushi', 1, 'Sushi', '3'); INSERT INTO `foodie`.`image` VALUES ('4', 'Asian icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/asian.png'); INSERT INTO `foodie`.`category` VALUES (4, 'Asian', 1, 'Asian', '4'); INSERT INTO `foodie`.`image` VALUES ('5', 'American icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/american.png'); INSERT INTO `foodie`.`category` VALUES (5, 'American', 1, 'American', '5'); INSERT INTO `foodie`.`image` VALUES ('6', 'Fast Food icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/fastfood.png'); INSERT INTO `foodie`.`category` VALUES (6, 'Fast Food', 1, 'Fast Food', '6'); INSERT INTO `foodie`.`image` VALUES ('7', 'Japanese icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/japanese.png'); INSERT INTO `foodie`.`category` VALUES (7, 'Japanese', 1, 'Japanese', '7'); INSERT INTO `foodie`.`image` VALUES ('8', 'Italian icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/italian.png'); INSERT INTO `foodie`.`category` VALUES (8, 'Italian', 1, 'Italian', '8'); INSERT INTO `foodie`.`image` VALUES ('9', 'Pizza icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/pizza.png'); INSERT INTO `foodie`.`category` VALUES (9, 'Pizza', 1, 'Pizza', '9'); INSERT INTO `foodie`.`image` VALUES ('10', 'Chinese icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/chinese.png'); INSERT INTO `foodie`.`category` VALUES (10, 'Chinese', 1, 'Chinese', '10'); INSERT INTO `foodie`.`image` VALUES ('11', 'Bubble Tea icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/bubbletea.png'); INSERT INTO `foodie`.`category` VALUES (11, 'Bubble Tea', 1, 'Bubble Tea', '11'); INSERT INTO `foodie`.`image` VALUES ('12', 'Comfort food icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/comfortfood.png'); INSERT INTO `foodie`.`category` VALUES (12, 'Comfort food', 1, 'Comfort food', '12'); INSERT INTO `foodie`.`image` VALUES ('13', 'Sandwich icon', 'https://d4p17acsd5wyj.cloudfront.net/shortcuts/cuisines/sandwich.png'); INSERT INTO `foodie`.`category` VALUES (13, 'Sandwich', 1, 'Sandwich', '13');
create function dbo.fn_CLR_ShouldntTriggerUnusedParameterWarnings(@StringToProperCase [nvarchar](4000), @TreatAsName [nchar](1)) returns [nvarchar](4000) with execute as caller as external name [ProperCase].[ProperCase.Functions].[ProperCase]
<filename>sql/users.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : tp5 Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-04-21 22:24:06 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account` varchar(255) NOT NULL COMMENT '账号', `password` varchar(255) NOT NULL COMMENT '密码', `roleid` int(11) NOT NULL DEFAULT '0' COMMENT '用户角色', `nickname` varchar(255) NOT NULL COMMENT '昵称', `head_img` varchar(255) NOT NULL COMMENT '头像', `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '用户状态 1正常 2禁用', `create_at` datetime NOT NULL COMMENT '创建时间', `update_at` datetime NOT NULL COMMENT '更新时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT; -- ---------------------------- -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('1', 'admin', '<PASSWORD>', '1', 'admin', 'http://localtp5.com\\static\\admin\\images\\headimg.jpg', '1', '2018-04-11 11:39:22', '2018-04-11 11:39:22'); INSERT INTO `users` VALUES ('5', 'tom', '<PASSWORD>', '1', 'tom', 'http://localtp5.com\\uploads\\20180412\\4f007fffc1b9f57830a4d1c4f7af3884.jpg', '1', '2018-04-11 11:39:22', '2018-04-12 21:18:24'); INSERT INTO `users` VALUES ('6', 'blucks', '84a4d80510236aa29c7be34ebffd54b5', '0', 'blucks', 'http://localtp5.com\\uploads\\20180412\\965e46ebbe802e4d8cd9dc6a2f42d275.jpg', '1', '2018-04-11 11:39:22', '2018-04-12 21:18:21'); INSERT INTO `users` VALUES ('8', 'lijun', '61b3151941bb43fad57005524d1a967c', '2', 'lijun', 'http://localtp5.com\\uploads\\20180412\\de733238f526ca07cce2f22145307812.png', '1', '2018-04-12 16:10:35', '2018-04-12 22:43:47'); SET FOREIGN_KEY_CHECKS=1;
<reponame>device42/DOQL_scripts_examples /* - Name: cloud storage - Purpose: provides details on discovered Cloud storage services. - Date Created: 10/01/20 - Updated - 4/15/21 - Change view_device_v1 to view_device_v2 */ Select DISTINCT ci.cloudinfrastructure_name "Cloud Infrastructure Name" ,ci.account_id "Account ID" ,ci.organization "Organization" ,d.name "Name" ,r2.resource_name "Resource Name" ,r2.identifier "Resource ID" ,unnest(r2.category) "Resource Category" ,r2.vendor_resource_subtype "Resource Subtype" ,r2.region "Resource Region" ,unnest(r2.zones) "Resource Zones" ,r2.vendor_resource_type "Type" From view_resource_v2 r2 Left Join view_cloudinfrastructure_v2 ci On ci.cloudinfrastructure_pk = r2.cloudinfrastructure_fk Left Join view_deviceresource_v1 dr On dr.resource_fk = r2.resource_pk Left Join view_device_v2 d On d.device_pk = dr.device_fk
<reponame>Eroschang/ranger -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use this file except in compliance with -- the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO IF EXISTS ( SELECT type_desc, type FROM sys.procedures WITH(NOLOCK) WHERE NAME = 'alterSortOrderColumn' AND type = 'P' ) BEGIN PRINT 'Proc exist with name dbo.alterSortOrderColumn' DROP PROCEDURE dbo.alterSortOrderColumn PRINT 'Proc dropped dbo.alterSortOrderColumn' END GO CREATE PROCEDURE dbo.alterSortOrderColumn @tablename nvarchar(100) AS BEGIN IF EXISTS(select * from INFORMATION_SCHEMA.columns where table_name = @tablename and column_name = 'sort_order' and DATA_TYPE='tinyint') BEGIN DECLARE @ObjectName VARCHAR(100); DECLARE @stmt VARCHAR(100); SELECT @ObjectName = OBJECT_NAME([default_object_id]) FROM SYS.COLUMNS WHERE [object_id] = OBJECT_ID('[dbo].[' + @tablename + ']') AND [name] = 'sort_order'; IF @ObjectName IS NOT NULL BEGIN SET @stmt = 'ALTER TABLE [dbo].[' + @tablename + '] DROP CONSTRAINT ' + @ObjectName EXEC (@stmt); END IF NOT EXISTS(select name from SYS.sysobjects where parent_obj in (select id from SYS.sysobjects where name=@tablename) and name=@ObjectName) BEGIN SET @stmt = 'ALTER TABLE [dbo].[' + @tablename + '] ALTER COLUMN [sort_order] [int]' EXEC (@stmt); END END END GO EXEC dbo.alterSortOrderColumn 'x_service_config_def' GO EXEC dbo.alterSortOrderColumn 'x_resource_def' GO EXEC dbo.alterSortOrderColumn 'x_access_type_def' GO EXEC dbo.alterSortOrderColumn 'x_policy_condition_def' GO EXEC dbo.alterSortOrderColumn 'x_context_enricher_def' GO EXEC dbo.alterSortOrderColumn 'x_enum_element_def' GO EXEC dbo.alterSortOrderColumn 'x_policy_resource_map' GO EXEC dbo.alterSortOrderColumn 'x_policy_item' GO EXEC dbo.alterSortOrderColumn 'x_policy_item_access' GO EXEC dbo.alterSortOrderColumn 'x_policy_item_condition' GO EXEC dbo.alterSortOrderColumn 'x_policy_item_user_perm' GO EXEC dbo.alterSortOrderColumn 'x_policy_item_group_perm' GO EXEC dbo.alterSortOrderColumn 'x_datamask_type_def' GO EXIT
DELETE FROM search_osm WHERE id IN (SELECT -- search3.id_link, -- search3.type_link, -- search3.district, search3.id FROM (SELECT search2.id, search2.id_link, search2.type_link, search2.district, -- search1.region, bool_and(ST_Disjoint(search1.geom, search2.geom)) as ifdelete FROM search_osm as search1, search_osm AS search2 WHERE search1.addr_type='region' -- AND search2.addr_type='district' GROUP BY search2.id, search2.id_link, search2.type_link, search2.district) as search3 WHERE search3.ifdelete) --RETURNING * ;
<reponame>frankarinze/onepipe<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 30, 2019 at 03:06 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `onepipedb` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_one` -- DROP TABLE IF EXISTS `tb_one`; CREATE TABLE IF NOT EXISTS `tb_one` ( `userId` int(11) NOT NULL, `fullname` varchar(100) NOT NULL, `answer` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_one` -- INSERT INTO `tb_one` (`userId`, `fullname`, `answer`) VALUES (1, 'Frank', 'Making a life worth living is something we all should learn to do'); -- -------------------------------------------------------- -- -- Table structure for table `tb_two` -- DROP TABLE IF EXISTS `tb_two`; CREATE TABLE IF NOT EXISTS `tb_two` ( `userId` int(8) NOT NULL, `fullname` varchar(100) NOT NULL, `answer` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_two` -- INSERT INTO `tb_two` (`userId`, `fullname`, `answer`) VALUES (1, 'Kunle', 'Making a life worth living is something we all should learn to do'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>seckill.sql<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : seckill Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-07-19 10:07:46 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `goods` -- ---------------------------- DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `num` int(10) unsigned NOT NULL, `price` double(8,2) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of goods -- ---------------------------- INSERT INTO `goods` VALUES ('1', '冰箱', '0', '1200.00', '2018-06-12 06:33:50', '2018-06-14 07:11:33'); -- ---------------------------- -- Table structure for `migrations` -- ---------------------------- DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of migrations -- ---------------------------- INSERT INTO `migrations` VALUES ('1', '2014_10_12_000000_create_users_table', '1'); INSERT INTO `migrations` VALUES ('2', '2014_10_12_100000_create_password_resets_table', '1'); INSERT INTO `migrations` VALUES ('3', '2018_06_12_060327_goods_migration', '1'); -- ---------------------------- -- Table structure for `order` -- ---------------------------- DROP TABLE IF EXISTS `order`; CREATE TABLE `order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `order_num` int(10) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL, `goods_id` int(10) unsigned NOT NULL, `order_price` double(8,2) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of order -- ---------------------------- INSERT INTO `order` VALUES ('51', '1806142718', '654', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('52', '1806146630', '54', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('53', '1806149063', '99', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('54', '1806146095', '663', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('55', '1806148478', '61', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('56', '1806141853', '193', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('57', '1806143776', '276', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('58', '1806143771', '719', '1', '1200.00', null, null); INSERT INTO `order` VALUES ('59', '1806144404', '199', '1', '1200.00', null, null); -- ---------------------------- -- Table structure for `password_resets` -- ---------------------------- DROP TABLE IF EXISTS `password_resets`; CREATE TABLE `password_resets` ( `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of password_resets -- ---------------------------- -- ---------------------------- -- Table structure for `users` -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `users_email_unique` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of users -- ----------------------------
<filename>sql/create_table_distance.sql<gh_stars>0 -- ========== ========== ========== ========== ========== -- DROP TABLE `distance` DROP TABLE IF EXISTS distance; -- ========== ========== ========== ========== ========== -- CREATE TABLE `distance` CREATE TABLE `distance` ( `odo_id` INTEGER PRIMARY KEY AUTOINCREMENT, `odo_date` TEXT NOT NULL, `odo_km` INTEGER NOT NULL UNIQUE ); -- ========== ========== ========== ========== ========== -- INSERT INTO `distance` -- Sample Data INSERT INTO distance (odo_date, odo_km) VALUES ("2010-09-22 00:00:00.000", 618); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-10-05 00:00:00.000", 1032); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-10-18 00:00:00.000", 1414); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-10-28 00:00:00.000", 1727); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-11-06 00:00:00.000", 1989); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-11-15 00:00:00.000", 2316); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-11-23 00:00:00.000", 2664); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-12-04 00:00:00.000", 2993); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-12-20 00:00:00.000", 3326); INSERT INTO distance (odo_date, odo_km) VALUES ("2010-12-31 00:00:00.000", 3684); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-01-14 00:00:00.000", 4016); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-01-25 00:00:00.000", 4400); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-02-04 00:00:00.000", 4678); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-02-17 00:00:00.000", 5022); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-03-03 00:00:00.000", 5412); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-03-16 00:00:00.000", 5783); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-03-28 00:00:00.000", 6144); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-04-07 00:00:00.000", 6527); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-04-20 00:00:00.000", 6931); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-05-06 00:00:00.000", 7326); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-05-19 00:00:00.000", 7682); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-06-02 00:00:00.000", 8098); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-06-16 00:00:00.000", 8509); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-06-30 00:00:00.000", 8912); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-07-09 00:00:00.000", 9305); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-07-21 00:00:00.000", 9698); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-08-01 00:00:00.000", 10065); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-08-14 00:00:00.000", 10306); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-08-15 00:00:00.000", 10339); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-08-16 00:00:00.000", 10369); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-08-31 00:00:00.000", 10699); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-09-10 00:00:00.000", 11057); INSERT INTO distance (odo_date, odo_km) VALUES ("2011-09-21 00:00:00.000", 11282);
/* Problem 9. *Peaks in Rila */ USE "Geography"; SELECT m.MountainRange, p.PeakName, p.Elevation FROM "Peaks" AS p INNER JOIN "Mountains" AS m ON p.MountainId = m.Id WHERE p.MountainId = 17 ORDER BY Elevation DESC;
select peak_name from peaks order by peak_name;
<reponame>joelbd/nvsbl -- DROP TABLE `images_tags`; -- DROP TABLE `images`; -- DROP TABLE `tags`; CREATE TABLE `images` ( `id` varchar(32) NOT NULL, -- MD5 `fileName` varchar(100) NOT NULL, `fileType` int NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; CREATE TABLE `tags` ( `tag` varchar(100) NOT NULL, PRIMARY KEY (`tag`) ) ENGINE=InnoDB; CREATE TABLE `images_tags` ( `tag` varchar(100) NOT NULL, `images_id` varchar(32) NOT NULL, PRIMARY KEY (`tag`,`images_id`), KEY `images_id` (`images_id`,`tag`), CONSTRAINT `fk_images` FOREIGN KEY (`images_id`) REFERENCES `images` (`id`) ON DELETE CASCADE, CONSTRAINT `fk_tags` FOREIGN KEY (`tag`) REFERENCES `tags` (`tag`) ON DELETE CASCADE ) ENGINE=InnoDB; INSERT INTO tags (`tag`) VALUES ('Angry'); INSERT INTO tags (`tag`) VALUES ('Animated'); INSERT INTO tags (`tag`) VALUES ('Approval'); INSERT INTO tags (`tag`) VALUES ('Bizarre'); INSERT INTO tags (`tag`) VALUES ('Cats'); INSERT INTO tags (`tag`) VALUES ('Celebrate'); INSERT INTO tags (`tag`) VALUES ('Dogs'); INSERT INTO tags (`tag`) VALUES ('Funny'); INSERT INTO tags (`tag`) VALUES ('Futurama'); INSERT INTO tags (`tag`) VALUES ('Surprise'); INSERT INTO tags (`tag`) VALUES ('Technology'); INSERT INTO tags (`tag`) VALUES ('TwinPeaks'); <?php $tags = mysqli_query($mysqli, "SELECT tag FROM tags ORDER BY tag"); define('COLS', 3); // number of columns $col = 0; // number of the last column filled echo '<table>'; echo '<tr>'; while($row = mysqli_fetch_array($tags)) { $col++; echo "\n<td><input type=\"checkbox\" name=\"tag\" value=\"" . "{$row['tag']}" . "\" id=\"" . "{$row['tag']}" . "\">" . "{$row['tag']}" . "</td>"; if ($col == COLS) // have filled the last row { $col = 0; echo '</tr><tr>'; // start a new one } } echo '</tr>'; echo '</table>'; ?>
INSERT INTO Makes(name) VALUES("Acura"),("<NAME>"),("<NAME>"), ("BMW"),("Buick"),("Cadillac"), ("Chevrolet"),("Chrysler"),("Dodge"),("Ferrari"), ("Fiat"),("Ford"),("GMC"),("Honda"),("Infiniti"),("Jaguar"),("Jeep"), ("Lamborghini"),("<NAME>"),("Lexus"),("Maserati"), ("McLaren"),("Mitsubishi"),("Porsche"),("RAM"), ("<NAME>"),("Subaru"),("Tesla"),("Toyota"), ("Volkswagen"),("Volvo"); INSERT INTO Models(name, makeId) VALUES("ILX", 1),("RDX", 1),("RLX", 1),("MDX", 1), ("NSX", 1),("TLX", 1), ("Spider", 2),("Stelvio", 2), ("DB11", 3),("Vantage", 3),("Flying Spur", 3), ("230i", 4),("328d", 4),("330e", 4),("330i", 4), ("340i", 4),("430i", 4),("440i", 4),("M240i", 4), ("M3", 4),("M4", 4),("M5", 4), ("LaCrosse", 5),("Regal", 5), ("CTS", 6),("ATS", 6),("XTS", 6), ("Camaro", 7),("Corvette", 7),("Cruze",7), ("Impala", 7),("Malibu", 7),("Silverado", 7), ("300", 8),("Pacifica", 8), ("Challenger", 9),("Durango", 9), ("Charger", 9), ("Portofino", 10),("488 GTB", 10), ("812 Superfast", 10), ("500c", 11),("500x", 11), ("Fiesta", 12),("Focus", 12),("Fusion", 12),("Mustang", 12), ("Acadia", 13), ("Accord", 14),("Civic", 14),("CR-V", 14),("HR-V", 14), ("Q50", 15),("Q60", 15),("Q70", 15), ("XE", 16),("XF", 16),("F-TYPE", 16), ("Wrangler", 17),("Compass", 17),("Grand Cherokee", 17), ("Aventador", 18),("Huracan", 18), ("Range Rover", 19), ("RC", 20),("LC", 20), ("GranTurismo", 21),("Levante", 21),("Ghibli", 21), ("720S", 22),("570S", 22), ("Eclipse", 23),("Mirage", 23),("Outlander", 23), ("911", 24),("Cayenne", 24),("Panamera",24), ("1500", 25),("2500", 25),("3500", 25), ("Ghost", 26),("Phantom", 26),("Wraith", 26), ("BRZ", 27),("WRX", 27),("Impreza", 27),("Outback", 27), ("Model 3", 28),("Model S", 28),("Model X", 28), ("Camry", 29),("Corolla", 29),("86", 29), ("Golf", 30),("Passat", 30),("Beetle", 30), ("S60", 31),("S90", 31),("XC90", 31) --this is all the data in our tables, this information is used to populate the drop down menu --we used the foreign key method to match all models with their proper make --once its selected and the user clicks enter, it is then pushed to the url for the api we used
DROP TABLE IF EXISTS `knoten_lauenburg`; CREATE TABLE `knoten_lauenburg` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `routername` varchar(500) NULL DEFAULT NULL UNIQUE, `email` varchar(500) NULL DEFAULT NULL, `key` varchar(500) NULL DEFAULT NULL UNIQUE, `location` varchar(500) NULL DEFAULT NULL, `edit` INTEGER UNSIGNED NULL DEFAULT "0", `delhash` varchar(500) NULL DEFAULT NULL UNIQUE, PRIMARY KEY (`id`) );
ALTER TABLE public.redirect_log DROP COLUMN ip_addr; ALTER TABLE public.redirect_log DROP COLUMN country; ALTER TABLE public.redirect_log DROP COLUMN referer;
<reponame>flpoliveira/obi -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 28-Fev-2020 às 04:28 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Banco de dados: `obi` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `arquivos` -- CREATE TABLE `arquivos` ( `id` int(11) NOT NULL, `nome` varchar(255) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `arquivos` -- INSERT INTO `arquivos` (`id`, `nome`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 'ProvaOBI2005Prog1.pdf', '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (2, 'Campo_de_Minhocas.pdf', '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (3, 'Duende_Perdido.pdf', '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (4, 'Frota_de_Táxi.pdf', '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (5, 'Trilhas.pdf', '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `categorias` -- CREATE TABLE `categorias` ( `id` int(11) NOT NULL, `descricao` varchar(255) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `categorias` -- INSERT INTO `categorias` (`id`, `descricao`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 'Gráfos', '2020-02-27 15:34:01', '2020-02-28 01:39:41', 1), (2, 'Iniciante', '2020-02-28 01:38:32', '2020-02-28 01:38:32', 1), (3, 'Matemática', '2020-02-28 01:40:10', '2020-02-28 01:40:10', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `dificuldades` -- CREATE TABLE `dificuldades` ( `id` int(11) NOT NULL, `descricao` varchar(255) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `dificuldades` -- INSERT INTO `dificuldades` (`id`, `descricao`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 'Fácil', '2020-02-27 15:34:28', '2020-02-28 01:39:28', 1), (2, 'Médio', '2020-02-28 01:38:44', '2020-02-28 01:38:44', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `modalidades` -- CREATE TABLE `modalidades` ( `id` int(11) NOT NULL, `descricao` varchar(255) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `modalidades` -- INSERT INTO `modalidades` (`id`, `descricao`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 'Modalidade Iniciação - Nível Júnior', '2020-02-26 21:12:26', '2020-02-26 21:12:26', 1), (2, 'Modalidade Iniciação - Nível 1', '2020-02-26 21:12:26', '2020-02-26 21:12:26', 1), (3, 'Modalidade Iniciação - Nível 2', '2020-02-26 21:13:08', '2020-02-26 21:13:08', 1), (4, 'Modalidade Programação - Nível Júnior', '2020-02-26 21:13:08', '2020-02-26 21:13:08', 1), (5, 'Modalidade Programação - Nível 1', '2020-02-26 21:13:50', '2020-02-26 21:13:50', 1), (6, 'Modalidade Programação - Nível 2', '2020-02-26 21:13:50', '2020-02-26 21:13:50', 1), (7, 'Modalidade Programação - Nível Sênior', '2020-02-26 21:14:13', '2020-02-26 21:14:13', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `provas` -- CREATE TABLE `provas` ( `id` int(11) NOT NULL, `ano` year(4) NOT NULL, `descricao` varchar(255) DEFAULT NULL, `modalidades_id` int(11) NOT NULL, `arquivos_id` int(11) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `provas` -- INSERT INTO `provas` (`id`, `ano`, `descricao`, `modalidades_id`, `arquivos_id`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 2005, '', 5, 1, '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1); -- -------------------------------------------------------- -- -- Estrutura da tabela `questoes` -- CREATE TABLE `questoes` ( `id` int(11) NOT NULL, `titulo` varchar(255) NOT NULL, `provas_id` int(11) NOT NULL, `categorias_id` int(11) NOT NULL, `dificuldades_id` int(11) NOT NULL, `arquivos_id` int(11) NOT NULL, `dataHoraInsercao` timestamp NOT NULL DEFAULT current_timestamp(), `dataHoraAtualizacao` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `ativo` tinyint(1) NOT NULL DEFAULT 1 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `questoes` -- INSERT INTO `questoes` (`id`, `titulo`, `provas_id`, `categorias_id`, `dificuldades_id`, `arquivos_id`, `dataHoraInsercao`, `dataHoraAtualizacao`, `ativo`) VALUES (1, 'Campo de Minhocas', 1, 2, 2, 2, '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (2, '<NAME>', 1, 1, 1, 3, '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (3, '<NAME>', 1, 2, 1, 4, '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1), (4, 'Trilhas', 1, 3, 1, 5, '2020-02-28 01:43:03', '2020-02-28 01:43:03', 1); -- -- Índices para tabelas despejadas -- -- -- Índices para tabela `arquivos` -- ALTER TABLE `arquivos` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `categorias` -- ALTER TABLE `categorias` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `dificuldades` -- ALTER TABLE `dificuldades` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `modalidades` -- ALTER TABLE `modalidades` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `provas` -- ALTER TABLE `provas` ADD PRIMARY KEY (`id`), ADD KEY `categorias_id` (`modalidades_id`), ADD KEY `arquivos_id` (`arquivos_id`); -- -- Índices para tabela `questoes` -- ALTER TABLE `questoes` ADD PRIMARY KEY (`id`), ADD KEY `provas_id` (`provas_id`), ADD KEY `categorias_id` (`categorias_id`), ADD KEY `dificuldades_id` (`dificuldades_id`), ADD KEY `arquivos_id` (`arquivos_id`); -- -- AUTO_INCREMENT de tabelas despejadas -- -- -- AUTO_INCREMENT de tabela `arquivos` -- ALTER TABLE `arquivos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT de tabela `categorias` -- ALTER TABLE `categorias` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de tabela `dificuldades` -- ALTER TABLE `dificuldades` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de tabela `modalidades` -- ALTER TABLE `modalidades` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT de tabela `provas` -- ALTER TABLE `provas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de tabela `questoes` -- ALTER TABLE `questoes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Restrições para despejos de tabelas -- -- -- Limitadores para a tabela `provas` -- ALTER TABLE `provas` ADD CONSTRAINT `provas_ibfk_1` FOREIGN KEY (`modalidades_id`) REFERENCES `modalidades` (`id`), ADD CONSTRAINT `provas_ibfk_2` FOREIGN KEY (`arquivos_id`) REFERENCES `arquivos` (`id`); -- -- Limitadores para a tabela `questoes` -- ALTER TABLE `questoes` ADD CONSTRAINT `questoes_ibfk_1` FOREIGN KEY (`arquivos_id`) REFERENCES `arquivos` (`id`), ADD CONSTRAINT `questoes_ibfk_2` FOREIGN KEY (`categorias_id`) REFERENCES `categorias` (`id`), ADD CONSTRAINT `questoes_ibfk_3` FOREIGN KEY (`dificuldades_id`) REFERENCES `dificuldades` (`id`), ADD CONSTRAINT `questoes_ibfk_4` FOREIGN KEY (`provas_id`) REFERENCES `provas` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>Phelipe-Sempreboni/databases -- Comando para verificação infos de owner, tablename, tablespace, cluster, etc. -- DBA_TABLES - Contem as informações sobre todas as tabelas do banco de dados. SELECT * FROM DBA_TABLES;
-- Crime max by year select max(*) max from crimes whee date_part('year', occurred_at) = :year -- Crime count by ward for year. select ward, count(*) from crimes where date_part('year', occurred_at) = 2011 and trim(ward) != '' group by ward order by ward::integer; -- Crime count by date for year and ward. select date(occurred_at), count(*) from crimes where date_part('year', occurred_at) = 2011 and ward = '26' group by date(occurred_at) order by date(occurred_at); -- Crime count by year for ward. -- Slower than other because goes across all years. select date_part('year',occurred_at) as "year", count(*) from crimes where ward = '26' group by date_part('year', occurred_at) order by "year"; -- Crime count by month for year and ward. select date_part('month',occurred_at) as "month", count(*) from crimes where date_part('year', occurred_at) = 2011 and ward = '26' group by "month" order by "month"; -- Crime count by month for year and month and ward -- For % comparison to month of previous year select date_part('month',occurred_at) as "month", count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('month', occurred_at) = 7 and ward = '26' group by "month" order by "month"; -- Crime count by day of week for year and ward. select date_part('dow',occurred_at) as "dow", count(*) from crimes where date_part('year', occurred_at) = 2011 and ward = '26' group by "dow" order by "dow"; -- Crime count by day of week for year and day of week and ward -- For % comparison to day of week of previous year select date_part('dow',occurred_at) as "dow", count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('dow', occurred_at) = 3 and ward = '26' group by "dow" order by "dow"; -- Crime count by date for year and month and ward select date(occurred_at) as "day", count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('month', occurred_at) = 7 and ward = '26' group by "day" order by "day"; -- Crime count by date for date and ward -- For % comparison to date of previous year select date(occurred_at) as "day", count(*) from crimes where date(occurred_at) = '07/11/2011' and ward = '26' group by "day"; -- Crime count by hour for year and ward. select date_part('hour',occurred_at) as "hour", count(*) from crimes where date_part('year', occurred_at) = 2011 and ward = '26' group by "hour" order by "hour"; -- Crime count by hour for year and month and ward. select date_part('hour',occurred_at) as "hour", count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('month', occurred_at) = 7 and ward = '26' group by "hour" order by "hour"; -- Crime count by hour for year and day of week and ward. select date_part('hour',occurred_at) as "hour", count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('dow', occurred_at) = 3 and ward = '26' group by "hour" order by "hour"; -- Crime count by hour for date and ward. select date_part('hour',occurred_at) as "hour", count(*) from crimes where date(occurred_at) = '07/11/2011' and ward = '26' group by "hour" order by "hour"; -- Crime count by type for year and ward limit 5 select primary_type, count(*) from crimes where date_part('year', occurred_at) = 2011 and ward = '26' group by primary_type order by count(*) desc limit 5; -- Crime count by type for year and month and ward limit 5 select primary_type, count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('month', occurred_at) = 7 and ward = '26' group by primary_type order by count(*) desc limit 5; -- Crime count by type for year and day of week and ward limit 5 select primary_type, count(*) from crimes where date_part('year', occurred_at) = 2011 and date_part('dow', occurred_at) = 3 and ward = '26' group by primary_type order by count(*) desc limit 5; -- Crime count by type for date and ward limit 5 select primary_type, count(*) from crimes where date(occurred_at) = '07/11/2011' and ward = '26' group by primary_type order by count(*) desc limit 5; -- Crime count by primary_type, year and month for ward select primary_type, date_part('year', occurred_at) as "year", date_part('month', occurred_at) as month, count(*) from crimes where ward = '26' group by primary_type, date_part('year', occurred_at), "month" order by primary_type, year, month; -- Crime count by primary_type, year and month for ward -- For sparklines on ward page select primary_type, year, month, crime_count from crimes_for_month where ward = '42' and year > 2001 order by primary_type, year, month; -- Monthly min, monthly avg, monthly max and total crime count by primary type for ward select primary_type, min(crime_count), avg(crime_count)::integer, max(crime_count), sum(crime_count) from crimes_for_month where ward = '28' and year > 2001 group by primary_type; -- Crime count by subcategory for ward and primary_type select * from crimes_per_subcategory where ward = '28' and category = 'THEFT' order by crime_count desc; -- Database size SELECT pg_size_pretty(pg_database_size('chicago_crime'));
<filename>typescript/db/migrations/20211022143500_store_stripe_customer_id_in_the_workspace_rather_than_the_subscription/migration.sql /* Warnings: - You are about to drop the column `stripeSubscriptionId` on the `Workspace` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Workspace" DROP COLUMN "stripeSubscriptionId", ADD COLUMN "stripeCustomerId" TEXT;
DROP DATABASE IF EXISTS employee_trackerDB; CREATE DATABASE employee_trackerDB; USE employee_trackerDB; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, PRIMARY KEY(id) ); CREATE TABLE role( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary DECIMAL(10, 3), department_id INT, PRIMARY KEY(id) ); CREATE TABLE employee( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NULL, manager_id INT NULL, PRIMARY KEY(id) ); CREATE TABLE manager( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, PRIMARY KEY(id) ); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Matt", "Ward", 1, 1); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Morgan", "Ward", 2, 1); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Carson", "Ward", 3, 2); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Alexis", "Chen", 4, 2); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Richard", "Hendrix", 5, 3); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Molly", "Armstrong", 6, 3); INSERT INTO employee(first_name, last_name, role_id, manager_id) VALUES("Julia", "Rhymes", 7, 4); INSERT INTO role (title, salary, department_id) VALUES("Sales Lead", 100000, 1); INSERT INTO role (title, salary, department_id) VALUES("Salesperson", 80000, 1); INSERT INTO role (title, salary, department_id) VALUES("Lead Engineer", 200000, 2); INSERT INTO role (title, salary, department_id) VALUES("Software Engineer", 155000, 2); INSERT INTO role (title, salary, department_id) VALUES("Account Manager", 110000, 3); INSERT INTO role (title, salary, department_id) VALUES("Accountant", 70000, 3); INSERT INTO role (title, salary, department_id) VALUES("Legal Team Lead", 175000, 4); -- DELETE FROM role WHERE `id` = '14' -- UPDATE role SET department_id = "4" WHERE id = 7 INSERT INTO department (name) VALUES("Sales"); INSERT INTO department (name) VALUES("Engineering"); INSERT INTO department (name) VALUES("Finance"); INSERT INTO department (name) VALUES("Legal"); INSERT INTO manager(name) VALUES("<NAME>"); INSERT INTO manager(name) VALUES("<NAME>"); INSERT INTO manager(name) VALUES("<NAME>"); INSERT INTO manager(name) VALUES("<NAME>"); -- SELECT employee.first_name, employee.last_name, department.name FROM employee JOIN role ON employee.role_id = role.id JOIN department ON department.id = role.department_id; SELECT * FROM employee JOIN role ON employee.role_id = role.id JOIN department ON department.id = role.department_id WHERE ?
<filename>sqlserver/scripts/sakila/store.sql SET IDENTITY_INSERT store ON Insert into store (store_id,manager_staff_id,address_id,last_update) Values ('1','1','1','2006-02-15T04:57:12.000') ; Insert into store (store_id,manager_staff_id,address_id,last_update) Values ('2','2','2','2006-02-15T04:57:12.000') ; SET IDENTITY_INSERT store OFF
<reponame>mihai-constantin/ACS SELECT id_dep "Nr. departament", nume, functie, salariu, data_ang AS "Data Angajarii" FROM angajati WHERE LOWER(functie) = 'manager' ORDER BY id_dep;
set names utf8; drop table if exists t; create table t(s1 string collate utf8_ko_cs, s2 string collate utf8_ko_cs_uca); insert into t values('a','a'); select collation('a'||s1),collation(s2) from t; select 'a'||s1||s2 from t; select s1||'a'||s2 from t; select s1||s2||'a' from t; select s1 collate utf8_ko_cs || s2 || 'a' from t; select s1 + s2 collate utf8_ko_cs + 'a' from t; drop t; set names iso88591;
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2022 at 06:46 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tugas-skripsi` -- -- -------------------------------------------------------- -- -- Table structure for table `dosens` -- CREATE TABLE `dosens` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `dosens` -- INSERT INTO `dosens` (`id`, `nama`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'axel', '<EMAIL>', NULL, '$2y$10$/b/KHvOzqzIK2d3X5ap7te451EeAHN6wUEj8dEj7DDnrsXRxRfWZ6', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (2, 'irwandi', '<EMAIL>', NULL, '$2y$10$t.XJCBMdl3KXdYBTBMFl7uGGyE01jWkYYmRUmTEfaSld2gALwNpuO', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (3, 'tom', '<EMAIL>', NULL, '$2y$10$EVJz8I3OTlAV/YR8is3JleI3g9UmvQauzwjXuBMTFB5PQTtIDJG4e', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'); -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `fakultas` -- CREATE TABLE `fakultas` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `fakultas` -- INSERT INTO `fakultas` (`id`, `nama`, `created_at`, `updated_at`) VALUES (1, 'Teknik', '2022-03-22 00:18:02', '2022-03-22 00:18:02'), (2, 'Ekonomi dan Ilmu Sosial', '2022-03-22 00:18:02', '2022-03-22 00:18:02'); -- -------------------------------------------------------- -- -- Table structure for table `haris` -- CREATE TABLE `haris` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `haris` -- INSERT INTO `haris` (`id`, `nama`, `created_at`, `updated_at`) VALUES (1, 'Senin', '2022-03-22 00:18:02', '2022-03-22 00:18:02'), (2, 'Selasa', '2022-03-22 00:18:02', '2022-03-22 00:18:02'), (3, 'Rabu', '2022-03-22 00:18:02', '2022-03-22 00:18:02'); -- -------------------------------------------------------- -- -- Table structure for table `kelas` -- CREATE TABLE `kelas` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kelas` -- INSERT INTO `kelas` (`id`, `nama`, `created_at`, `updated_at`) VALUES (1, 'Teknik Elektro 1', '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (2, 'Teknik Elektro 2', '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (3, 'Teknik Elektro 3', '2022-03-22 00:18:01', '2022-03-22 00:18:01'); -- -------------------------------------------------------- -- -- Table structure for table `mahasiswas` -- CREATE TABLE `mahasiswas` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nim` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `matakuliah_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `mahasiswas` -- INSERT INTO `mahasiswas` (`id`, `nama`, `nim`, `matakuliah_id`, `created_at`, `updated_at`) VALUES (5, '<NAME>', '172022101811', 'bc0513a4-075e-4a0f-9e6f-3c990c9c83f9', '2022-03-22 00:54:20', '2022-03-22 00:54:20'); -- -------------------------------------------------------- -- -- Table structure for table `matakuliahs` -- CREATE TABLE `matakuliahs` ( `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, `ruangan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jam` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `namaMatakuliah` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jumlahPertemuan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `kelas` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggalMulai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggalSelesai` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `matakuliahs` -- INSERT INTO `matakuliahs` (`uuid`, `ruangan`, `jam`, `namaMatakuliah`, `jumlahPertemuan`, `kelas`, `tanggalMulai`, `tanggalSelesai`, `created_at`, `updated_at`) VALUES ('5fa83099-50ed-427c-b2bb-8e454ee0b843', 'Quam dolore nostrud', '20:14', 'Magni laboriosam au', 'Ducimus est cupidit', 'Minima et est simil', '1992-01-26', '1974-10-12', '2022-03-22 00:18:12', '2022-03-22 00:18:12'), ('bc0513a4-075e-4a0f-9e6f-3c990c9c83f9', 'Sed et tenetur ea nu', '09:57', 'Dicta expedita vitae', 'Esse illo omnis culp', 'Cillum alias aperiam', '1990-04-05', '1979-11-09', '2022-03-22 00:28:57', '2022-03-22 00:28:57'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_12_14_000001_create_personal_access_tokens_table', 1), (5, '2022_03_18_064510_create_matakuliahs_table', 1), (6, '2022_03_18_070433_create_dosens_table', 1), (7, '2022_03_19_092545_create_kelas_table', 1), (8, '2022_03_19_092900_create_ruangans_table', 1), (9, '2022_03_19_093022_create_real_matakuliahs_table', 1), (10, '2022_03_19_093039_create_fakultas_table', 1), (11, '2022_03_19_093057_create_haris_table', 1), (12, '2022_03_19_093124_create_pertemuans_table', 1), (13, '2022_03_21_061848_create_relasi_models_table', 1), (14, '2022_03_22_080307_create_mahasiswas_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `pertemuans` -- CREATE TABLE `pertemuans` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pertemuans` -- INSERT INTO `pertemuans` (`id`, `nama`, `created_at`, `updated_at`) VALUES (1, '1', '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (2, '2', '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (3, '3', '2022-03-22 00:18:02', '2022-03-22 00:18:02'); -- -------------------------------------------------------- -- -- Table structure for table `real_matakuliahs` -- CREATE TABLE `real_matakuliahs` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `real_matakuliahs` -- INSERT INTO `real_matakuliahs` (`id`, `nama`, `created_at`, `updated_at`) VALUES (1, 'Bahasa Indonesia', '2022-03-22 00:18:02', '2022-03-22 00:18:02'), (2, 'Matematika', '2022-03-22 00:18:02', '2022-03-22 00:18:02'), (3, 'Programming', '2022-03-22 00:18:02', '2022-03-22 00:18:02'); -- -------------------------------------------------------- -- -- Table structure for table `relasi_models` -- CREATE TABLE `relasi_models` ( `id` bigint(20) UNSIGNED NOT NULL, `matakuliah_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, `dosen_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `relasi_models` -- INSERT INTO `relasi_models` (`id`, `matakuliah_id`, `dosen_id`, `created_at`, `updated_at`) VALUES (1, '5fa83099-50ed-427c-b2bb-8e454ee0b843', 3, '2022-03-22 00:18:13', '2022-03-22 00:18:13'), (2, 'bc0513a4-075e-4a0f-9e6f-3c990c9c83f9', 1, '2022-03-22 00:28:57', '2022-03-22 00:28:57'), (3, 'bc<PASSWORD>', 3, '2022-03-22 00:28:57', '2022-03-22 00:28:57'); -- -------------------------------------------------------- -- -- Table structure for table `ruangans` -- CREATE TABLE `ruangans` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `nama`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', NULL, '$2y$10$IYQeyRtkQgUGb15WtWppvOZI76/B0LjwMUyY8.MLLyIbRox.cayem', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$eYNucosGDPEEUFtWzeBOfePbfpI5ug4BSYGzvzoxWQ5bo0zd2fI3K', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'), (3, '<NAME>', '<EMAIL>', NULL, '$2y$10$wwfTUbpZMQ4c85eouBinh.UgfjLpss5b5xKF0KGDnPxxVoWB8Org2', NULL, '2022-03-22 00:18:01', '2022-03-22 00:18:01'); -- -- Indexes for dumped tables -- -- -- Indexes for table `dosens` -- ALTER TABLE `dosens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `dosens_email_unique` (`email`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `fakultas` -- ALTER TABLE `fakultas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `haris` -- ALTER TABLE `haris` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kelas` -- ALTER TABLE `kelas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mahasiswas` -- ALTER TABLE `mahasiswas` ADD PRIMARY KEY (`id`); -- -- Indexes for table `matakuliahs` -- ALTER TABLE `matakuliahs` ADD UNIQUE KEY `matakuliahs_uuid_unique` (`uuid`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `pertemuans` -- ALTER TABLE `pertemuans` ADD PRIMARY KEY (`id`); -- -- Indexes for table `real_matakuliahs` -- ALTER TABLE `real_matakuliahs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `relasi_models` -- ALTER TABLE `relasi_models` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ruangans` -- ALTER TABLE `ruangans` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `dosens` -- ALTER TABLE `dosens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `fakultas` -- ALTER TABLE `fakultas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `haris` -- ALTER TABLE `haris` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `kelas` -- ALTER TABLE `kelas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `mahasiswas` -- ALTER TABLE `mahasiswas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pertemuans` -- ALTER TABLE `pertemuans` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `real_matakuliahs` -- ALTER TABLE `real_matakuliahs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `relasi_models` -- ALTER TABLE `relasi_models` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `ruangans` -- ALTER TABLE `ruangans` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>geophile/sql-layer CREATE TABLE binaryformat( id INT NOT NULL PRIMARY KEY, bin1 char(32) FOR BIT DATA, bin2 varchar(32) FOR BIT DATA );
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 09 Feb 2020 pada 16.44 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `userlogin` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `usertable` -- CREATE TABLE `usertable` ( `id` int(100) NOT NULL, `email` varchar(120) NOT NULL, `password` varchar(120) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `usertable` -- INSERT INTO `usertable` (`id`, `email`, `password`) VALUES (1, '<EMAIL>', <PASSWORD>'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `usertable` -- ALTER TABLE `usertable` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `usertable` -- ALTER TABLE `usertable` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>DanielGuerrero94/atyc alter table alumnos.funciones add column updated_at date; alter table alumnos.funciones add column created_at date; alter table pac.pacs_destinatarios drop constraint fk_destinatario; alter table pac.pacs_destinatarios add constraint fk_destinatario foreign key (id_destinatario) references alumnos.funciones (id_funcion) MATCH FULL; drop table pac.destinatarios; drop table pac.tipos_accion; drop table pac.tematicas;
<gh_stars>0 /** * Author: <NAME> * Created: 26 nov. 2021 * Last Modify: 26 nov. 2021 */ /* Creo la base de datos DAW2xxxDBDepartamentos */ create database if not exists DB219DWESLoginLogoutTema5; /* Creo el usuario */ -- create user if not exists 'user219DWESLoginLogoutTema5'@'%' identified by 'paso'; /* Usuario en maquina virtual casa */ create user if not exists 'user219DWESLoginLogoutTema5'@'%' identified by 'P@ssw0rd'; /* Damos permisos al usuario sobre la base de datos DB219DWESProyectoTema5 */ grant all privileges on DB219DWESLoginLogoutTema5.* to 'user219DWESLoginLogoutTema5'@'%'; /* Pongo en uso la base de datos creada en script DB219DWESProyectoTema5 */ use DB219DWESLoginLogoutTema5; /* Creo la tabla Usuarios si no existe */ create table if not exists T01_Usuario( T01_CodUsuario varchar(8) primary key not null, T01_Password varchar(255), T01_DescUsuario varchar(255), T01_NumConexiones int default 0, T01_FechaHoraUltimaConexion int, T01_Perfil enum('usuario','administrador') default 'usuario', T01_ImagenUsuario mediumblob) engine=innodb; /* Creo la tabla Departamentos si no existe */ create table if not exists T02_Departamento( T02_CodDepartamento varchar(3) primary key not null, T02_DescDepartamento varchar(255), T02_FechaCreacionDepartamento timestamp default current_timestamp, T02_VolumenDeNegocio float, T02_FechaBajaDepartamento date) engine=innodb;
<reponame>hjsu/forum DELETE FROM POSTS; DELETE FROM TOPICS; DELETE FROM FORUMS; DELETE FROM CATEGORIES; DELETE FROM USERS;
EXEC sp_rename 'dbo.Kore_Plugins_Google_Sitemap', 'Kore_SitemapConfig'; GO ALTER TABLE Kore_Blog ADD MetaKeywords nvarchar(255) NULL GO ALTER TABLE Kore_Blog ADD MetaDescription nvarchar(255) NULL GO
<filename>src/main/resources/db/migration/V190__Add_Instructor_Role.sql<gh_stars>1-10 INSERT INTO `Roles` (`Name`) VALUES ('instructor');
ALTER TABLE webpage_webpage ADD COLUMN sortIndex SMALLINT; UPDATE webpage_webpage SET sortIndex = (ctid::text::point)[1]::smallint;
CREATE TABLE IF NOT EXISTS Storedsearch ( _id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT , user_id int(11) NOT NULL, createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, updatedAt datetime DEFAULT NULL, name VARCHAR(255) NOT NULL, search TEXT NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE Storedsearch ADD FOREIGN KEY (user_id) REFERENCES Users(_id);
<reponame>Shuttl-Tech/antlr_psql -- file:polymorphism.sql ln:717 expect:true select * from dfunc(a := 'Hello', c := 100)
-- Name: TABLE events; Type: ACL; Schema: public; Owner: - -- GRANT ALL ON TABLE public.events TO client; --
<reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5502735_sys_gh4652-app_migrate_AD_Field_Trl_to_AD_Element_Trl.sql<gh_stars>1000+ ALTER TABLE AD_Element_Trl ADD COLUMN AD_Field_Saved_ID numeric(10,0); ALTER TABLE AD_Field_Trl ADD COLUMN IsSaved character(1) DEFAULT 'N'; DROP VIEW IF EXISTS AD_Field_Trl_to_save_V CASCADE; CREATE VIEW AD_Field_Trl_to_save_V AS SELECT * FROM ( -- collect element and field via AD_Field.AD_Name_ID SELECT et.AD_Element_ID, ft.AD_Field_ID, et.AD_Language, 'AD_Name_ID' AS IsLinkVia, ft.IsSaved AS ft_IsSaved, et.Name AS et_name, ft.Name AS ft_name, et.Description AS et_Description, ft.Description AS ft_Description, et.help AS et_help, ft.help AS ft_help, et.IsTranslated AS et_IsTranslated, ft.IsTranslated AS ft_IsTranslated FROM AD_Element_Trl et JOIN AD_Field f ON et.AD_Element_ID = f.AD_Name_ID JOIN AD_Field_Trl ft ON f.AD_Field_ID = ft.AD_Field_ID AND ft.AD_Language=et.AD_Language UNION -- collect element and field via AD_Column SELECT et.AD_Element_ID, ft.AD_Field_ID, et.AD_Language, 'AD_Column_ID' AS IsLinkVia, ft.IsSaved AS ft_IsSaved, et.Name AS et_name, ft.Name AS ft_name, et.Description AS et_Description, ft.Description AS ft_Description, et.help AS et_help, ft.help AS ft_help, et.IsTranslated AS et_IsTranslated, ft.IsTranslated AS ft_IsTranslated FROM AD_Element_Trl et JOIN AD_Column c ON c.AD_Element_ID=et.AD_Element_ID JOIN AD_Field f ON f.AD_Column_ID = c.AD_Column_ID AND /*important:*/f.AD_Name_ID IS NULL JOIN AD_Field_Trl ft ON f.AD_Field_ID = ft.AD_Field_ID AND ft.AD_Language=et.AD_Language ) data WHERE ft_IsTranslated='Y' AND ( /*the columns are non-empty, and have a different value than the respective AD_Element's columns */ (TRIM(COALESCE(ft_Name,''))!='' AND ft_Name!=et_name) OR (TRIM(COALESCE(ft_Description,''))!='' AND ft_Description!=et_Description) OR (TRIM(COALESCE(ft_help,''))!='' AND ft_help!=ft_help OR et_IsTranslated != et_IsTranslated) ) ; --select count(*) from AD_Field_Trl_to_save_V; --1406 --select count(distinct AD_Element_ID) from AD_Field_Trl_to_save_V --1014 --- AD_Field_Trls to save where more than one AD_Field_Trls refer to the same AD_Element_Trl -- this view is more for diagnostics, we won't really use it DROP VIEW IF EXISTS AD_Field_Trl_with_missing_AD_Element_v; CREATE VIEW AD_Field_Trl_with_missing_AD_Element_v AS select AD_Element_ID, AD_Language, et_Name, et_IsTranslated, array_agg(distinct AD_Field_ID) AS AD_Field_IDs, Count(distinct AD_Field_ID) as AD_Field_ID_count, array_agg(distinct ft_name) AS ft_names, Count(distinct ft_name) as ft_name_count, array_agg(distinct ft_description) AS ft_descriptions, Count(distinct ft_description) as ft_description_count, array_agg(distinct ft_help) AS ft_helps, Count(distinct ft_help) as ft_help_count from AD_Field_Trl_to_save_V GROUP BY AD_Element_ID, AD_Language, et_IsTranslated, et_Name HAVING Count(distinct ft_name) > 1 OR Count(distinct ft_description) > 1 OR Count(distinct ft_help) > 1 OR Count(distinct AD_Field_ID) > 1 ORDER BY Count(distinct ft_name) desc; --192 AD_Element_IDs are affected --UPDATE AD_Element_Trl SET AD_Field_Saved_ID = null; --UPDATE AD_Field_Trl SET IsSaved = 'N'; -- create a function to copy the AD_Field_Trls to existing AD_Element_Trls -- The respecitve update also sets AD_Element_ID.AD_Field_Saved_ID CREATE OR REPLACE FUNCTION migrate() RETURNS VOID AS $$ DECLARE field_trl RECORD; updated_element_trl RECORD; BEGIN FOR field_trl IN SELECT * FROM AD_Field_Trl_to_save_V WHERE ft_IsSaved='N' /*AND AD_Element_ID=348 LIMIT 2*/ LOOP RAISE NOTICE 'Processing field_trl with AD_Field_ID=% and lang=%', field_trl.AD_Field_ID, field_trl.AD_Language; UPDATE AD_Element_Trl et SET Name = field_trl.ft_Name, Description = field_trl.ft_Description, Help = field_trl.ft_Help, AD_Field_Saved_ID = field_trl.AD_Field_ID, IsTranslated = field_trl.ft_IsTranslated, Updated=now(), UpdatedBy=99 WHERE et.AD_Element_ID = field_trl.AD_Element_ID AND et.AD_Language = field_trl.AD_Language AND et.AD_Field_Saved_ID IS NULL RETURNING * INTO updated_element_trl; IF FOUND THEN UPDATE AD_Field_Trl ft SET IsSaved='Y' WHERE ft.AD_Field_ID=field_trl.AD_Field_ID AND ft.AD_Language = field_trl.AD_Language; RAISE NOTICE 'Successfully migrated field_trl=%', field_trl; ELSE -- Note: for many records this is not a problem; -- if their name, description and help are equal to the one that AD_Element_Trl was updated from, then they are also fine now. RAISE NOTICE 'another AD_Field_Trl was already migrated to AD_Element_Trl; field_trl=%s', field_trl; END IF; END LOOP; END; $$ LANGUAGE plpgsql; select migrate(); -- -- Now deal with the cases where AD_Field_Trls with different name, description or help refer to the same AD_Element. -- For these AD_Field_Trls, we create new AD_Element records and link them with AD_Field.AD_Name_ID. -- When that's done, we create AD_Element_Trl records for the respective preexisting AD_Field_Trls and newly added AD_Elements. --drop table ad_element_migrate; CREATE TEMP TABLE ad_element_migrate AS SELECT nextval('ad_element_seq') AS AD_Element_new_ID, ad_field_id, name, description, help, entitytype FROM AD_Field f WHERE EXISTS (select 1 from AD_Field_Trl_to_save_V v WHERE v.AD_Field_ID=f.AD_Field_ID) ; INSERT INTO AD_Element ( ad_element_id, -- numeric(10,0) NOT NULL, ad_client_id, -- numeric(10,0) NOT NULL, ad_org_id, -- numeric(10,0) NOT NULL, isactive, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar, created, -- timestamp with time zone NOT NULL, createdby, -- numeric(10,0) NOT NULL, updated, -- timestamp with time zone NOT NULL DEFAULT now(), updatedby, -- numeric(10,0) NOT NULL, columnname, -- character varying(60) COLLATE pg_catalog."default", entitytype, -- character varying(512) COLLATE pg_catalog."default" NOT NULL DEFAULT 'D'::character varying, name, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, printname, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, description, -- character varying(2000) COLLATE pg_catalog."default", help, -- character varying(2000) COLLATE pg_catalog."default", po_name, -- character varying(60) COLLATE pg_catalog."default", po_printname, -- character varying(60) COLLATE pg_catalog."default", po_description, -- character varying(255) COLLATE pg_catalog."default", po_help, -- character varying(2000) COLLATE pg_catalog."default", widgetsize -- character varying(50) COLLATE pg_catalog."default", ) SELECT AD_Element_new_ID AS ad_element_id, -- numeric(10,0) NOT NULL, 0 AS ad_client_id, -- numeric(10,0) NOT NULL, 0 AS ad_org_id, -- numeric(10,0) NOT NULL, 'Y' AS isactive, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar, now() AS created, -- timestamp with time zone NOT NULL, 99 AS createdby, -- numeric(10,0) NOT NULL, now() AS updated, -- timestamp with time zone NOT NULL DEFAULT now(), 99 AS updatedby, -- numeric(10,0) NOT NULL, NULL AS columnname, -- character varying(60) COLLATE pg_catalog."default", f.entitytype, -- character varying(512) COLLATE pg_catalog."default" NOT NULL DEFAULT 'D'::character varying, f.name, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, f.Name AS printname, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, f.description, -- character varying(2000) COLLATE pg_catalog."default", f.help, -- character varying(2000) COLLATE pg_catalog."default", NULL AS po_name, -- character varying(60) COLLATE pg_catalog."default", NULL AS po_printname, -- character varying(60) COLLATE pg_catalog."default", NULL AS po_description, -- character varying(255) COLLATE pg_catalog."default", NULL AS po_help, -- character varying(2000) COLLATE pg_catalog."default", NULL AS widgetsize -- character varying(50) COLLATE pg_catalog."default", FROM ad_element_migrate f; UPDATE AD_Field f SET AD_Name_ID=AD_Element_new_ID FROM ad_element_migrate m WHERE f.AD_Field_ID=m.AD_Field_ID; INSERT INTO AD_Element_Trl ( ad_element_id, -- numeric(10,0) NOT NULL, ad_language, -- character varying(6) COLLATE pg_catalog."default" NOT NULL, ad_client_id, -- numeric(10,0) NOT NULL, ad_org_id, -- numeric(10,0) NOT NULL, isactive, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar, created, -- timestamp with time zone NOT NULL DEFAULT now(), createdby, -- numeric(10,0) NOT NULL, updated, -- timestamp with time zone NOT NULL DEFAULT now(), updatedby, -- numeric(10,0) NOT NULL, name, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, printname, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, description, -- character varying(2000) COLLATE pg_catalog."default", help, -- character varying(2000) COLLATE pg_catalog."default", po_name, -- character varying(60) COLLATE pg_catalog."default", po_printname, -- character varying(60) COLLATE pg_catalog."default", po_description, -- character varying(255) COLLATE pg_catalog."default", po_help, -- character varying(2000) COLLATE pg_catalog."default", istranslated, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'N'::bpchar, ad_field_saved_id -- numeric(10,0), ) SELECT m.AD_Element_new_ID AS ad_element_id, -- numeric(10,0) NOT NULL, ft.ad_language, -- character varying(6) COLLATE pg_catalog."default" NOT NULL, 0 AS ad_client_id, -- numeric(10,0) NOT NULL, 0 AS ad_org_id, -- numeric(10,0) NOT NULL, ft.isactive, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar, now() AS created, -- timestamp with time zone NOT NULL DEFAULT now(), 99 AS createdby, -- numeric(10,0) NOT NULL, now() AS updated, -- timestamp with time zone NOT NULL DEFAULT now(), 99 AS updatedby, -- numeric(10,0) NOT NULL, ft.name, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, ft.name AS printname, -- character varying(60) COLLATE pg_catalog."default" NOT NULL, ft.description, -- character varying(2000) COLLATE pg_catalog."default", ft.help, -- character varying(2000) COLLATE pg_catalog."default", NULL AS po_name, -- character varying(60) COLLATE pg_catalog."default", NULL AS po_printname, -- character varying(60) COLLATE pg_catalog."default", NULL AS po_description, -- character varying(255) COLLATE pg_catalog."default", NULL AS po_help, -- character varying(2000) COLLATE pg_catalog."default", 'Y' AS istranslated, -- character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'N'::bpchar, ft.AD_Field_ID AS ad_field_saved_id -- numeric(10,0), FROM ad_element_migrate m JOIN AD_Field_Trl ft ON ft.AD_Field_Id=m.AD_Field_ID AND ft.IsTranslated='Y' ; -- with this, insert done -- SELECT * FROM AD_Field_Trl_to_save_V --should return no results anymore --cleanup COMMIT; DROP VIEW AD_Field_Trl_to_save_V CASCADE; ALTER TABLE AD_Element_Trl DROP COLUMN AD_Field_Saved_ID; ALTER TABLE AD_Field_Trl DROP COLUMN IsSaved;
<reponame>LukeChow1018/weixin DELETE FROM `wp_attribute` WHERE model_id = (SELECT id FROM wp_model WHERE `name`='youaskservice_group' ORDER BY id DESC LIMIT 1); DELETE FROM `wp_model` WHERE `name`='youaskservice_group' ORDER BY id DESC LIMIT 1; DROP TABLE IF EXISTS `wp_youaskservice_group`; DELETE FROM `wp_attribute` WHERE model_id = (SELECT id FROM wp_model WHERE `name`='youaskservice_keyword' ORDER BY id DESC LIMIT 1); DELETE FROM `wp_model` WHERE `name`='youaskservice_keyword' ORDER BY id DESC LIMIT 1; DROP TABLE IF EXISTS `wp_youaskservice_keyword`; DELETE FROM `wp_attribute` WHERE model_id = (SELECT id FROM wp_model WHERE `name`='youaskservice_user' ORDER BY id DESC LIMIT 1); DELETE FROM `wp_model` WHERE `name`='youaskservice_user' ORDER BY id DESC LIMIT 1; DROP TABLE IF EXISTS `wp_youaskservice_user`;
/* ** Copyright (c) 2008-2009, by the California Institute of Technology. ** ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged. ** ** $Id: load_oco_policy.sql 4686 2010-04-02 00:02:50Z gangl $ */ /* ** This script loads the OCO dataset policy for the Inventory schema. */ /* ** Collection */ INSERT INTO collection (collection_id, short_name, long_name, type, description) VALUES (collection_id_seq.nextval, 'OCO', 'Orbiting Carbon Observatory', 'PROJECT', 'This collection references all of the datasets associated with the OCO project.'); /* ** Project */ INSERT INTO project (project_id, short_name, long_name) VALUES (project_id_seq.nextval, 'OCO', 'Orbiting Carbon Observatory'); /* ** Provider */ INSERT INTO provider (provider_id, short_name, long_name, type) VALUES (provider_id_seq.nextval, 'OCO MOS', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'DATA-PROVIDER'); INSERT INTO provider_resource (provider_id, path) VALUES (provider_id_seq.currval, 'http://oco.jpl.nasa.gov/'); INSERT INTO contact (contact_id, role, first_name, middle_name, last_name, email, phone, fax, address, provider_id, notify_type) VALUES (contact_id_seq.nextval, 'User Services Contact', 'OCO Data Center', NULL, 'User Services', '<EMAIL>', NULL, NULL, 'MS 300-320, 4800 Oak Grove Dr, Pasadena, CA 91109-8099', provider_id_seq.currval, NULL); INSERT INTO contact (contact_id, role, first_name, middle_name, last_name, email, phone, fax, address, provider_id, notify_type) VALUES (contact_id_seq.nextval, 'Investigator Contact', 'David', NULL, 'Crisp', '<EMAIL>', '818-354-2224', '818-354-0966', '4800 Oak Grove Drive Pasadena, CA 91109-8099', provider_id_seq.currval, NULL); INSERT INTO contact (contact_id, role, first_name, middle_name, last_name, email, phone, fax, address, provider_id, notify_type) VALUES (contact_id_seq.nextval, 'Science Contact', 'Charles', 'E', 'Miller', '<EMAIL>', '818-393-6294', '818-354-5148', '4800 Oak Grove Drive Pasadena, CA 91109-8099', provider_id_seq.currval, NULL); /* ** Source and Sensor ** ** Short and long names don't necessarily match GCMD valids. */ INSERT INTO source (source_id, short_name, long_name, type, orbit_period, incl_angle, description) VALUES (source_id_seq.nextval, 'OCO', 'Orbiting Carbon Observatory', 'SPACECRAFT', 98.88, 98, 'The Orbiting Carbon Observatory (OCO) is a dedicated spacecraft that carries a single instrument comprised of three high-resolution grating spectrometers. The instrument, developed by Hamilton Sundstrand Sensor Systems, will acquire the most precise measurements of atmospheric CO2 ever made from space. The spacecraft, developed by Orbital Sciences Corporation, is based upon the LeoStar-2 architecture. The Observatory will be launched from the Vandenberg Air Force Base in California on a dedicated Taurus XL rocket in February 2009. The Observatory will fly in a near polar orbit that enables the instrument to observe most of the Earth''s surface at least once every sixteen days.'); INSERT INTO sensor (sensor_id, short_name, long_name, swath_width, description) VALUES (sensor_id_seq.nextval, 'OCO', 'Orbiting Carbon Observatory', NULL, 'OCO uses three high-resolution grating spectrometers. Each spectrometer measures light in one specific region of the spectrum. The spectrometers are designed to measure the absorption of reflected sunlight at near-infrared wavelengths by CO2 and molecular oxygen (O2) in the Earth''s atmosphere. The space-based instrument will acquire spatially and temporally coincident measurements of reflected sunlight in the CO2 bands centered at wavelengths near 1.61 mm and 2.06 mm and in the O2 A-band centered near 0.76 mm.'); /* ** Datasets */ /* ** OCO_ACS */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_ACS', 'OCO Attitude Control System (ACS)', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_ACS', '0', 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PRIVATE', 'file:///store/oco/private/acs/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_Anc */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_Anc', 'OCO Ancillary', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_Anc', '0', 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'RAW', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PRIVATE', 'file:///store/oco/private/anc/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_FTS_Anc */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_FTS_Anc', 'OCO Fourier Transform Spectrometer (FTS) Ancillary', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_FTS_Anc', '0', 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'RAW', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PRIVATE', 'file:///store/oco/private/fts_anc/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_FTS_Igram */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_FTS_Igram', 'OCO Fourier Transform Spectrometer (FTS) Interferogram', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_FTS_Igram', '1', 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'RAW', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PRIVATE', 'file:///store/oco/private/fts_igram/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_FTS_Spectra */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_FTS_Spectra', 'OCO Fourier Transform Spectrometer (FTS) Spectral', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_FTS_Spectra', '2', 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-DIST', NULL, NULL, NULL, 'RESTRICTED', 'YEAR-DOY', 'RAW', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/fts_spectra/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_L1A */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_L1A', 'OCO Level 1A', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_L1A', '1A', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-DIST', NULL, NULL, NULL, 'RESTRICTED', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'BACKTRACK', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/L1A/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_L1B */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_L1B', 'OCO Level 1B', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_L1B', '1B', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-DIST', NULL, NULL, NULL, 'RESTRICTED', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'BACKTRACK', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/L1B/data'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PUBLIC', 'file:///store/oco/public/L1B/data'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'LOCAL-FTP', 'ftp://podaac.jpl.nasa.gov/pub/atmosphere/oco/L1B/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_L2 */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_L2', 'OCO Level 2 Apparent Optical Path Difference (AOPD)', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_L2_AOPD', '2', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-DIST', NULL, NULL, NULL, 'RESTRICTED', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'BACKTRACK', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/L2_AOPD/data'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PUBLIC', 'file:///store/oco/public/L2_AOPD/data'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'LOCAL-FTP', 'ftp://podaac.jpl.nasa.gov/pub/atmosphere/oco/L2_AOPD/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_L2_FullPhysics */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_L2_FullPhysics', 'OCO Level 2 Full Physics', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_L2_FullPhysics', '2', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ROLLING-STORE', NULL, NULL, 180, 'RESTRICTED', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'BACKTRACK', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/L2_FULL/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_MOC */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_MOC', 'OCO Meridional Overturning Circulation (MOC)', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_MOC', NULL, 'Global', NULL, 'TBD', 'TBD', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/moc/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_RICA */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_RICA', 'OCO Level 1A Residual Image Correction Algorithm (RICA)', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_RICA', '1A', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-DIST', NULL, NULL, NULL, 'RESTRICTED', 'YEAR-DOY', 'HDF', 'NONE', 'MD5', 'BACKTRACK', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-RESTRICTED', 'file:///store/oco/restricted/RICA/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'equatorCrossingLongitude' OR short_name = 'equatorCrossingTime' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; /* ** OCO_Telem */ INSERT INTO dataset (dataset_id, provider_id, short_name, long_name, original_provider, provider_dataset_name, processing_level, region, region_detail, latitude_resolution, longitude_resolution, horizontal_resolution_range, altitude_resolution, depth_resolution, temporal_resolution, temporal_resolution_range, ellipsoid_type, projection_type, projection_detail, reference, description) VALUES (dataset_id_seq.nextval, provider_id_seq.currval, 'OCO_Telem', 'OCO Science and Housekeeping Telemetry', 'Orbiting Carbon Observatory (OCO) Mission Operations System (MOS)', 'OCO_Telem', '0', 'Global', NULL, '2.25 km', '1.29 km', NULL, NULL, NULL, '0.333 seconds', NULL, NULL, NULL, NULL, NULL, 'TBD'); INSERT INTO dataset_contact (dataset_id, contact_id) VALUES (dataset_id_seq.currval, contact_id_seq.currval); INSERT INTO dataset_coverage (dataset_id, start_time_long, stop_time_long, north_lat, south_lat, east_lon, west_lon, min_altitude, max_altitude, min_depth, max_depth) VALUES (dataset_id_seq.currval, inventory.timestampToLong(SYSDATE), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO dataset_meta_history (dataset_id, version_id, creation_date_long, last_revision_date_long, revision_history) VALUES (dataset_id_seq.currval, 1, inventory.timestampToLong(SYSDATE), inventory.timestampToLong(SYSDATE), 'Initial entry into the PO.DAAC system.'); INSERT INTO dataset_policy (dataset_id, data_class, data_frequency, data_volume, data_duration, access_type, base_path_append_type, data_format, compress_type, checksum_type, spatial_type, access_constraint, use_constraint) VALUES (dataset_id_seq.currval, 'ARCHIVE-ONLY', NULL, NULL, NULL, 'PRIVATE', 'YEAR-DOY', 'RAW', 'NONE', 'MD5', 'NONE', 'TBD', 'TBD'); INSERT INTO dataset_location_policy (dataset_id, type, base_path) VALUES (dataset_id_seq.currval, 'ARCHIVE-PRIVATE', 'file:///store/oco/private/telem/data'); INSERT INTO dataset_parameter (dataset_id, category, topic, term, variable, variable_detail) VALUES (dataset_id_seq.currval, 'Earth Science', 'Atmosphere', 'Atmospheric Chemistry', 'Carbon and Hydrocarbon Compounds', 'Carbon Dioxide'); INSERT INTO dataset_project (dataset_id, project_id) VALUES (dataset_id_seq.currval, project_id_seq.currval); INSERT INTO dataset_project (dataset_id, project_id) SELECT dataset_id_seq.currval, project_id FROM project WHERE short_name = 'EOSDIS'; INSERT INTO dataset_source (dataset_id, source_id, sensor_id) VALUES (dataset_id_seq.currval, source_id_seq.currval, sensor_id_seq.currval); INSERT INTO dataset_version (dataset_id, version_id, version, version_date_long, description) VALUES (dataset_id_seq.currval, 1, 'TBD', inventory.timestampToLong(SYSDATE), 'Initial version.'); INSERT INTO granule_element (dataset_id, element_id, obligation_flag) SELECT dataset_id_seq.currval, element_id, 'O' FROM element_dd WHERE short_name = 'batch' OR short_name = 'version'; INSERT INTO collection_dataset (collection_id, dataset_id, granule_flag) SELECT collection_id, dataset_id_seq.currval, 'A' FROM collection WHERE short_name = 'OCO'; COMMIT;
<gh_stars>1-10 rem usage notes: rem sqlplus sys/change_on_install@orcl @db/create-lucene-role.sql rem run on the server machine, because it use dbms_java.loadjava set long 10000 lines 140 pages 50 timing on echo off set serveroutput on size 1000000 -- Drops DECLARE TYPE obj_arr IS TABLE OF VARCHAR2(30); DRP_STMT VARCHAR2(4000) := 'drop role '; obj_list obj_arr := obj_arr('LUCENEUSER'); BEGIN FOR I IN OBJ_LIST.FIRST..OBJ_LIST.LAST LOOP begin EXECUTE IMMEDIATE DRP_STMT||OBJ_LIST(I); EXCEPTION WHEN OTHERS THEN NULL; end; end loop; END; / create role LUCENEUSER; -- Oracle 18c/19c/20c schema-only user account -- ALTER USER LUCENE NO AUTHENTICATION; -- required for parallel processing DBMS_PARALLEL_EXECUTE.run_task grant create job to LUCENEUSER; declare vHostName varchar2(4000); begin SELECT SYS_CONTEXT('USERENV','SERVER_HOST') INTO vHostName FROM dual; dbms_java.grant_permission( 'LUCENEUSER','SYS:java.lang.RuntimePermission', 'getClassLoader', '' ); dbms_java.grant_permission( 'LUCENEUSER','SYS:java.util.logging.LoggingPermission', 'control', '' ); dbms_java.grant_permission( 'LUCENEUSER','SYS:java.lang.RuntimePermission', 'accessDeclaredMembers', '' ); dbms_java.grant_permission( 'LUCENEUSER', 'SYS:java.net.SocketPermission', 'localhost:1024-', 'resolve,connect' ); dbms_java.grant_permission( 'LUCENEUSER','SYS:java.net.SocketPermission', vHostName||':1024-', 'resolve,connect' ); dbms_java.grant_permission( 'LUCENEUSER', 'SYS:java.net.NetPermission','setDefaultAuthenticator', '' ); commit; end; / exit
-- name: create-table-builds CREATE TABLE IF NOT EXISTS builds ( build_id INTEGER PRIMARY KEY AUTOINCREMENT ,build_repo_id INTEGER ,build_trigger TEXT ,build_number INTEGER ,build_parent INTEGER ,build_status TEXT ,build_error TEXT ,build_event TEXT ,build_action TEXT ,build_link TEXT ,build_timestamp INTEGER ,build_title TEXT ,build_message TEXT ,build_before TEXT ,build_after TEXT ,build_ref TEXT ,build_source_repo TEXT ,build_source TEXT ,build_target TEXT ,build_author TEXT ,build_author_name TEXT ,build_author_email TEXT ,build_author_avatar TEXT ,build_sender TEXT ,build_deploy TEXT ,build_params TEXT ,build_started INTEGER ,build_finished INTEGER ,build_created INTEGER ,build_updated INTEGER ,build_version INTEGER ,UNIQUE(build_repo_id, build_number) --,FOREIGN KEY(build_repo_id) REFERENCES repos(repo_id) ON DELETE CASCADE ); -- name: create-index-builds-repo CREATE INDEX IF NOT EXISTS ix_build_repo ON builds (build_repo_id); -- name: create-index-builds-author CREATE INDEX IF NOT EXISTS ix_build_author ON builds (build_author); -- name: create-index-builds-sender CREATE INDEX IF NOT EXISTS ix_build_sender ON builds (build_sender); -- name: create-index-builds-ref CREATE INDEX IF NOT EXISTS ix_build_ref ON builds (build_repo_id, build_ref); -- name: create-index-build-incomplete CREATE INDEX IF NOT EXISTS ix_build_incomplete ON builds (build_status) WHERE build_status IN ('pending', 'running'); -- name: alter-table-builds-add-column-debug ALTER TABLE builds ADD COLUMN build_debug BOOLEAN NOT NULL DEFAULT 0;
-- Name: GetUploadStatistics -- Schema: posda_files -- Columns: ['import_type', 'latest', 'earliest', 'num_import_events', 'num_files'] -- Args: [] -- Tags: ['statistics'] -- Description: Get Summary of import events -- select distinct import_type, max(import_time) as latest, min(import_time) as earliest, count(distinct import_event_id) as num_import_events, count(distinct file_id) as num_files from import_event natural join file_import group by import_type order by latest desc
CREATE DATABASE IF NOT EXISTS hideout; CREATE TABLE IF NOT EXISTS hideout.m_users ( m_user_id INT(3) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'ユーザID', m_user_username VARCHAR(100) NOT NULL COMMENT 'ユーザ名称', m_user_hashed_password VARCHAR(256) NOT NULL COMMENT '<PASSWORD>スワード' ) engine=InnoDB COMMENT='ユーザマスタ'; INSERT INTO hideout.m_users(m_user_id, m_user_username, m_user_hashed_password) VALUES ('1', 'admin', SHA2('admin', 256)); CREATE TABLE IF NOT EXISTS hideout.m_link_categories ( m_link_category_id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'リンクカテゴリID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_link_category_name VARCHAR(100) NOT NULL COMMENT 'リンクカテゴリ名称', m_link_category_display_order INT(3) NOT NULL COMMENT 'リンクカテゴリ表示順序' ) engine=InnoDB COMMENT='リンクカテゴリマスタ'; ALTER TABLE hideout.m_link_categories ADD CONSTRAINT m_user_id FOREIGN KEY (m_user_id) REFERENCES m_users(m_user_id) ON DELETE CASCADE ON UPDATE CASCADE; CREATE TABLE IF NOT EXISTS hideout.m_links ( m_link_id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'リンクID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_link_category_id INT(4) NOT NULL COMMENT 'リンクカテゴリID', m_link_site_name VARCHAR(100) NOT NULL COMMENT 'リンク名称', m_link_url VARCHAR(200) NOT NULL COMMENT 'リンク名URL', m_link_display_order INT(3) NOT NULL COMMENT 'リンク表示順序' ) engine=InnoDB COMMENT='リンクマスタ'; #ALTER TABLE hideout.m_links ADD CONSTRAINT m_user_id FOREIGN KEY (m_user_id) REFERENCES m_users(m_user_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE hideout.m_links ADD CONSTRAINT m_link_category_id FOREIGN KEY (m_link_category_id) REFERENCES m_link_categories(m_link_category_id) ON DELETE CASCADE ON UPDATE CASCADE; CREATE TABLE IF NOT EXISTS hideout.m_languages ( m_language_id TINYINT(2) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '言語ID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_language_name VARCHAR(50) NOT NULL COMMENT '名称' ) engine=InnoDB COMMENT='言語'; #ALTER TABLE hideout.m_languages ADD CONSTRAINT m_user_id FOREIGN KEY (m_user_id) REFERENCES m_users(m_user_id) ON DELETE CASCADE ON UPDATE CASCADE; CREATE TABLE IF NOT EXISTS hideout.t_words ( t_word_id INT(8) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '単語ID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_language_id TINYINT(2) NOT NULL COMMENT '言語ID', t_word_spell VARCHAR(50) NOT NULL COMMENT '綴り', t_word_explanation VARCHAR(1000) NOT NULL COMMENT '説明', t_word_pronunciation VARCHAR(50) NOT NULL DEFAULT '' COMMENT '発音', t_word_is_learned TINYINT(1) NOT NULL DEFAULT 0 COMMENT '習得済みフラグ 0: 未習得、1:習得済み', t_word_note VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '備考', t_word_created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登録日' ) engine=InnoDB COMMENT='単語'; CREATE TABLE IF NOT EXISTS hideout.m_account_titles ( m_account_title_id INT(4) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '勘定科目ID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_account_title_name VARCHAR(20) NOT NULL COMMENT '勘定科目', m_account_title_classification_type TINYINT(1) NOT NULL COMMENT '勘定科目分類区分 1: 資産, 2: 負債, 3: 資本, 4:費用, 5:収益' ) engine=InnoDB COMMENT='勘定科目'; CREATE TABLE IF NOT EXISTS hideout.t_journal_entries ( t_journal_entry_id INT(8) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '仕訳ID', m_user_id INT(3) NOT NULL COMMENT 'ユーザID', m_account_title_id INT(4) NOT NULL DEFAULT 0 COMMENT '勘定科目ID 0:未確定', t_journal_entry_transaction_date DATETIME NOT NULL COMMENT '取引日付', t_journal_entry_note VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '備考', t_journal_entry_created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登録日' ) engine=InnoDB COMMENT='仕訳';
<gh_stars>0 CREATE TABLE [portal].[ModuleHistory] ( [Id] INT IDENTITY (1, 1) NOT NULL, [ModuleId] INT NOT NULL, [Time] DATETIME2(3) DEFAULT SYSDATETIME() NOT NULL, [Change] NVARCHAR(MAX) NOT NULL, CONSTRAINT [PK_ModuleHistory_Id] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [UQ_ModuleHistory_ModuleId] FOREIGN KEY ([ModuleId]) REFERENCES [portal].[Module] ([Id]) ON DELETE CASCADE );
alter table if exists Dataset drop constraint if exists FKtnwjerv439jr4lmc37uvdp6ha; alter table if exists Rule drop constraint if exists FKmf1c6t4ld9isrgivjddortper; drop table if exists Dataset cascade; drop table if exists File cascade; drop table if exists Job cascade; drop table if exists Rule cascade; drop table if exists Session cascade; create table Dataset ( datasetId uuid not null, sessionId uuid not null, created timestamp, metadataFiles jsonb, name varchar(255), notes oid, sourceJob uuid, x int4, y int4, fileId uuid, primary key (datasetId, sessionId) ); create table File ( fileId uuid not null, checksum varchar(255), fileCreated timestamp, size int8 not null, storage varchar(255), primary key (fileId) ); create table Job ( jobId uuid not null, sessionId uuid not null, comp varchar(255), created timestamp, createdBy varchar(255), endTime timestamp, inputs jsonb, memoryUsage int8, metadataFiles jsonb, module varchar(255), parameters jsonb, screenOutput oid, sourceCode oid, startTime timestamp, state int4, stateDetail oid, storageUsage int8, toolCategory varchar(255), toolDescription oid, toolId varchar(255), toolName varchar(255), primary key (jobId, sessionId) ); create table Rule ( ruleId uuid not null, created timestamp, readWrite boolean not null, sharedBy varchar(255), username varchar(255), sessionId uuid, primary key (ruleId) ); create table Session ( sessionId uuid not null, accessed timestamp, created timestamp, name varchar(255), notes oid, state int4, primary key (sessionId) ); create index dataset_fileid_index on Dataset (fileId); create index dataset_sessionid_index on Dataset (sessionId); create index job_sessionid_index on Job (sessionId); create index rule_username_index on Rule (username); create index rule_sessionid_index on Rule (sessionId); create index rule_sharedby_index on Rule (sharedBy); alter table if exists Dataset add constraint FKtnwjerv439jr4lmc37uvdp6ha foreign key (fileId) references File; alter table if exists Rule add constraint FKmf1c6t4ld9isrgivjddortper foreign key (sessionId) references Session;
USE [Monopoly] GO /****** Object: Table [Player].[UtilityHistory] Script Date: 2/19/2022 10:18:42 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [Player].[UtilityHistory]( [rowid] [int] IDENTITY(1,1) NOT NULL, [utility] [varchar](50) NOT NULL, [original_owner] [int] NOT NULL, [new_owner] [int] NULL, [original_acquisition_method] [varchar](20) NOT NULL, CONSTRAINT [PK_UtilityHistory] PRIMARY KEY CLUSTERED ( [rowid] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [Player].[UtilityHistory] WITH CHECK ADD CONSTRAINT [FK_UtilityHistory_Players_new] FOREIGN KEY([new_owner]) REFERENCES [Player].[Players] ([rowid]) GO ALTER TABLE [Player].[UtilityHistory] CHECK CONSTRAINT [FK_UtilityHistory_Players_new] GO ALTER TABLE [Player].[UtilityHistory] WITH CHECK ADD CONSTRAINT [FK_UtilityHistory_Players_original] FOREIGN KEY([original_owner]) REFERENCES [Player].[Players] ([rowid]) GO ALTER TABLE [Player].[UtilityHistory] CHECK CONSTRAINT [FK_UtilityHistory_Players_original] GO ALTER TABLE [Player].[UtilityHistory] WITH CHECK ADD CONSTRAINT [FK_UtilityHistory_Utilities] FOREIGN KEY([utility]) REFERENCES [Game].[Utilities] ([name]) GO ALTER TABLE [Player].[UtilityHistory] CHECK CONSTRAINT [FK_UtilityHistory_Utilities] GO ALTER TABLE [Player].[UtilityHistory] WITH CHECK ADD CONSTRAINT [CK_UtilityHistory_acquisition] CHECK (([original_acquisition_method]='PURCHASED FROM BANK' OR [original_acquisition_method]='WON AT AUCTION' OR [original_acquisition_method]='TRADED' OR [original_acquisition_method]='BANKRUPTCY TRANSFER')) GO ALTER TABLE [Player].[UtilityHistory] CHECK CONSTRAINT [CK_UtilityHistory_acquisition] GO
<reponame>boualimabrouk/tsql-scripts<gh_stars>0 ----------------------------------------------------------------- -- Use dm_io_virtual_file_stats to get IO stall statistics per -- database and file -- <EMAIL>, go ahead license ----------------------------------------------------------------- SELECT CAST(SYSDATETIME() as DATETIME2(0)) as [Date], mf.type_desc as [type], [io_stall_read_ms] / NULLIF([num_of_reads], 0) as [ReadLatency], [io_stall_write_ms] / NULLIF([num_of_writes], 0) as [WriteLatency], [num_of_bytes_read] / NULLIF([num_of_reads], 0) as [AvgBPerRead], [num_of_bytes_written] / NULLIF([num_of_writes], 0) as [AvgBPerWrite], LEFT([mf].[physical_name],2) [Drive], DB_NAME([vfs].[database_id]) [DB], --[vfs].[database_id], --[vfs].[file_id], [vfs].[sample_ms] / 1000 / 60 / 60 / 24 as [sample_days], [vfs].[num_of_reads], [vfs].[num_of_writes], [vfs].[size_on_disk_bytes]/1024/1024 as [size_on_disk_MB], --[mf].[physical_name], RIGHT([mf].[physical_name], CHARINDEX(N'\',REVERSE([mf].[physical_name]))-1) as file_name FROM [sys].[dm_io_virtual_file_stats](NULL,NULL) AS vfs JOIN [sys].[master_files] [mf] ON [vfs].[database_id] = [mf].[database_id] AND [vfs].[file_id] = [mf].[file_id] WHERE DB_NAME([vfs].[database_id]) NOT IN (N'master', N'model') ORDER BY [DB], [type] DESC;
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- 主機: 127.0.0.1 -- 產生時間: 2015-10-01: 14:29:58 -- 伺服器版本: 5.6.24 -- PHP 版本: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- 資料庫: `dloygtw` -- -- -------------------------------------------------------- -- -- 資料表結構 `article` -- CREATE TABLE IF NOT EXISTS `article` ( `article_id` int(3) NOT NULL, `category_id` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `title` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `subheading` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `img_s` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `img_b` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `write_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `content` text COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 資料表的匯出資料 `article` -- INSERT INTO `article` (`article_id`, `category_id`, `title`, `subheading`, `img_s`, `img_b`, `write_time`, `content`) VALUES (1, '3', '關於創作', '', 'CreationS.jpg', 'CreationB.jpg', '2015-09-09 07:17:26', '<p>\r\n [老姐在高中時的作品]<br />\r\n <br />\r\n 還記得以前姐姐高中時候老是喜歡在房間裡架著畫架,地上總是灑滿畫筆與顏料,然而一整晚水彩筆繞著水桶裡的漩渦,一面在彩色盤上不同的顏色來回著,一面在畫布上東塗塗西抹抹,桌上的音響總是開著飛碟電台的聲音。而當作品完成一部分時,總會呼喊我的名字到她房裡並要我給她一些意見。那時候家裡一年寒暑就這樣充滿著文藝的氣氛。還記得。<br />\r\n <br />\r\n <span class="fullpost">開始Blog後讓我留意到創作這回事。想起從前國中作文課時,老師在黑板上訂了個題目。有些同學在反射這樣的題目後,腦海裡開始不斷泉湧很多的靈感很快地下筆,而有些同學則空了白紙開始癡呆地等待。約略半節課後,開始有同學四處張望,瞧一瞧旁邊已經寫了將近一半文章的同學。才恍然,啊!原來這樣的題目要這樣寫喔?!結果一個班級四十份作文紙,文章結構、大意內容、用詞遣字感覺好像都是一個模式出來的。然而班上可能只有少數的同學的作文能夠拿出來參加學校比賽,那些同學可能不是飽讀詩書,要不然就是每天回家懂得拿起報紙,也有可能老在書包裡藏著幾本課外讀物。<br />\r\n <br />\r\n 有時候自己在寫文章時,總會不經意而模仿起別人的筆觸,可能是書裡面的一段文字,也可能是與別人談吐的幾句話。然而若是真切地要自己在電腦桌前去奮力擠出一些從沒有的東西,那彷彿就像用咖啡苦了腦袋瓜的神經元一般而止住不前。無法激發。往往只有在自己拖著下巴發起呆滯的號誌時,交織著某種旋律的音樂,腦海裡的思考就像平靜的呼吸,一升一降,很快的,思緒流暢地刻劃出一頁很密密麻麻自我談話的文字。然而正當捏緊拳頭放開雙手,是摩拳擦掌也是信誓旦旦地很以為可以敲打出一篇自己的想法,才發現。<br />\r\n <br />\r\n 忘掉了。<br />\r\n <br />\r\n 搞什麼?真的恨不得想在頭上多差一兩支幾G的記憶體,或是加大幾瓦電源供應器。記憶終究是個片面的東西。然後就會開始像很多人說的一樣─「這是寫作者的焦躁」。那如同在椅子底下放個暖爐,臀部刺痛程度乾脆起身去倒杯開水,並且告訴自己這樣會清醒一點。但這樣的舉動其實又像個「繼續」與「停止」在天秤上的搖擺而已。最後慵懶的個性還是抓到了自己,順勢地按了按鍵盤上的Ctrl+S,接著,就在電腦裡黃色的資料夾多留了一個未完成的word檔。<br />\r\n <br />\r\n 說到這,我又跑去倒了一杯開水。<br />\r\n <br />\r\n 昨天跟一位朋友互相分享最近生活的音樂,我特別傳了這陣子聽的「甜梅號」樂團其中一首「體育」給這位朋友聽。這個樂團創作的音樂很特別的地方是,沒有主唱、沒有歌詞,有的只是樂器的旋律和簡單卻有點怪異的歌名。像這樣的音樂我一直覺得可以放開聆聽者的想像空間,確實是。很妙的事情,當朋友聽完音樂開始描述對音樂的感覺時,我才發現這是我一直所缺乏的部份。當她一面聽著一面闔上雙眼,腦子裡勾出一幅跑跳的現象。或許「體育」的字眼牽引她到從前童年在操場上奔跑的景象,那是打球、嬉鬧、玩耍、溜滑梯、鞦韆。然而當下我總覺得自己也有類似的感覺,但卻沒有辦法用文字表達出來,如同覺得這首音樂好聽,但我卻說不出為什麼,又或者它硬生生地在我記憶裡加深了某種印象。<br />\r\n <br />\r\n 只能說,終究還是得這麼形容這位朋友─「想像力豐富的怪腳」。<br />\r\n <br />\r\n 創作本身就是這麼有趣的事情。作者總是和觀賞者在作品之間相互反應著,而模糊的距離卻又讓彼此加大聯想,那種把玩的程度跟進入汪洋大海而漫無止盡游著實在沒什麼不同。但相對地,這又好似說明人類感官世界是多麼獨一無二的。懶人Sylvie曾在她的第一本書《沒有了皮囊》寫了這麼一段感覺:「人類的情緒與感覺複雜的難以分類,我對你笑,你接受到的是什麼樣的訊息?說不定你認為我只是和你打哈哈,但事實上,那可是我用盡全身的真誠所發出的一枚笑容。」我們總是從主觀跳到客觀,從第三人稱跑到第一人稱。而在這些移轉的過程裡,存在著猜想、憶想,可能是善解人意,也似自己的不解風情。人類的情感絲絲扣住人之間往來的氛圍。然而這樣的狀況也同時發生在我們聆聽音樂時。<br />\r\n <br />\r\n 電腦文字不斷閃爍的遊飄移到這裡,再次發出寫作者的呢喃,靈感這回事並不是一杯水再一杯逼得我直呼想不到能夠填滿的,所以我想對於創作的著墨就在這邊停止了,反正自己目前就像桌上的杯子一樣乾枯見底無法從文字中繼續引發。但唯一欣慰的是對於創作力來自過去知識經驗累積的標準,還能夠在自己的文章裡尋找到一些從沒有的東西。</span></p>\r\n'), (2, '2', '喝杯咖啡,我和你聊李屏賓', '創作就是激發你懂與不懂', 'MarkLeeS.jpg', 'MarkLeeB.jpg', '2015-09-09 07:13:59', '<br />\r\n<br />\r\n\r\n每個人在不同的領域上多少都有個啟蒙老師,不多不少,一個領域差不多就一個。好多時候,不少如我輩也說過,人生二十五來歲才開始,思想漸開,熟與不熟的事情,過了這樣的年紀,每個人其實都是一樣的。而我常覺得,自己總是晚了幾步拿了張成人票,來到了大人世界的入口處,面與微笑地,一步一伐慢步走進,不瀟灑卻很誠懇。<br />\r\n<span class="fullpost"><br />李屏賓─電影攝影師,曾入圍金馬獎最佳攝影九次提名,拿下其中的五座─是我今年才認識的攝影師。粗獷的體魄一系黑色皮膚,蓄短腮巴鬍,像是個挑磚大漢,但這外表之下卻有著對光影捕捉的一份細膩及藝術的感悟力。而工作的態度總讓人覺得不卑不亢,可以幽默令人舒適,可以專注而認真,可以不停的觀察不停的拍。與他合作過的香港導演王家衛,日本導演行定勳與台灣的侯孝賢都如此描述他們眼中的李屏賓-<NAME>。<br /><br />對於攝影的領域像是一束光從頭上掠過,影像如同意境如同氣氛感覺,如同意義。光線的反差,色彩的層次,那些微妙的多一點與少一點;這是知道攝影師李屏賓的故事之後,並且約略看完去年十一月底他自己出版<a href="http://www.eslite.com/product.aspx?pgid=1001121581909230" target="_blank">《A Poet of Light and Shadow》(光影詩人 李屏賓)</a>的書所有的小心得。<br /><br /><img alt="Photoed by <NAME>" border="0" src="http://kevin91745.myweb.hinet.net/blogpictures/andrea.jpg" style="float: right; margin: 10px 0px 8px 8px; width: 250px;" />當然,在談他之前,還是不得不提及最初唯一讓我特別感動的德國攝影師─<NAME>,至少至今無法忘記第一次在看到他的作品(右方)之後,整整幾個小時不由自主的,情緒像被那是很搖遠手都無法觸及的世界縮成一小照攝孔,模不清也朦朦朧朧的。觀賞他的作品彷彿他的那一內心地帶不屬於我所看到的,華麗而寫實。然而,他依然離我搖遠。<br /><br />李屏賓的攝影記事裡頭我所沾染的電影並不多,迄今他一共參予了五十三部電影攝影部份。如果以六、七年級生來看,較為印象的是八零年代的《魯冰花》、《蹈草人》,九零年代的《女人四十》、《海上花》,而最值得矚目的是零一年的《花樣年華》。眾所皆知的,這部電影連得三座坎城影展、金馬獎、亞太影展最佳攝影大獎,使得李屏賓蹤身一躍成了許多導演爭相邀請的攝影師。<br /><br />果不其然的,現在細細回想,我對《花樣年華》電影欣賞之處,其實不是王家衛電影裡頭的梁朝偉與張曼玉是什麼樣情感佳人,也不是1962年的香港,由一棟聚居上海人的大廈的生活文化如何。而是這部電影深植我心的是復古的場景與李屏賓的所捉到氛圍影像,那像是個味道,經由影像聞到那一時代的生活氣味,他抓到了繁華似水香港中的上海,更真正營造了時間流動過後才能體現的影像視覺。我以為,這是否為影像的魅力,傳達觸動人心的媒介。<br /><br /><span style="color: #ffff66;">藝術就是順勢而為</span><br /><br />太過俗常的言語就是天時、地利、人和;這不僅用在開啟戀愛中相交歡的人們,藝術也是一樣。李屏賓拍片時所遇到的資金問題、行程問題、租約問題,堪稱一絕的就是天候問題:當他想拍綠油油的山巒,大青小草的牧地,老天就給他一個雪天;當他需要靜止醇厚的田野,老天就給他一個風婆婆,讓他不笑自知,一笑整個攝影組人仰馬翻。所以他常說:「跟預期不一樣的天氣,那就拍吧,老天送的機會怎麼不拍呢?」<br /><br />漸漸也讓我發現,我們不能完美以暇任何創作的可能,不論退一步或進一步都能有個平衡點存在,我們得發現那個地方在哪。<br /><img alt="" border="0" src="http://kevin91745.myweb.hinet.net/blogpictures/inthemoodoflove.jpg" style="float: left; margin: 10px 0px 8px 8px; width: 400px;" /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #ffff66;">自言自語的凝視</span><br /><br />攝影就像是用影像說話,不斷反芻自身的孤獨,把思緒全然投進一面影像裡,由影像說話,影像溝通,影像透露,影像宣洩,即便成了一種無助的狀態,影像都能天馬行空走一遭,讓孤獨的人有了出口。李屏賓:「在國外拍片,有時候你沒有說話的對象,只有自語自語,所以隨手拍一些東西是一種情緒一種紓解,一種紀錄。而大部份的時間都是孤獨的。」<br /><br /><span style="color: #ffff66;">家人永遠是最後的掛念</span><br /><br />2008年李屏賓在異地拍新片子時,一個忙錄的下午之後,看見手機裡有二十幾通未顯示來電號碼的電話,接著突如其來的焦慮脹滿他的心裡,他一直以為是不是家人發生什麼急事,從未這樣感到憂慮惶恐。緊接著再次接到電話時,才得知他被頒獲了<a href="http://www.ncafroc.org.tw/Content/award-history.asp?Prize_year=2008&amp;Prize_no=%A4Q%A4G" target="_blank">第十二屆國家文藝獎</a>。伴隨而來的喜愉與榮譽讓他真切的明白,其實,家人一直是他最後的掛念。<br /><br /><span style="color: #ffff66;">A Poet of Light and Shadow</span><br />我不知道<NAME>接下來的人生要如何走去,即使他花了大半輩子時間用光影呼吸,成了光影詩人。走了巴黎,漫遊紐約,腳落過上海;《紅氣球》、《千禧曼波》、《挪威的森林》;光線的霧氣,鏡頭的言語,聚光與泛光,無論如何,我會記得他是我第一個攝影領域的啟蒙先驅,讓我知道那個幻眩的世界,確實存在。<br /><br />嗯,我喝完這口咖啡,故事也說完了,希望你們會愉快。<br /></span><br />\r\n<blockquote>\r\n<span class="fullpost"><span style="color: #ffcc66;"><br />創作就是激發你懂與不懂,<br />或者是在瞬間你對這個世界的一種角度與看法、一種風險、一種嘗試在裡面。<br /><br />The process of creation challenges what you know and what you don’t.<br />In an instant,<br />it makes you look at the world from a certain perspective,<br />with a certain risk and sense of experiment.<br /><br />                    <NAME> 李屏賓</span></span></blockquote>\r\n<span class="fullpost"><br /><br /><object height="385" width="500"><param name="movie" value="http://www.youtube.com/v/QeRjpGIPqok&amp;hl=zh_TW&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/QeRjpGIPqok&hl=zh_TW&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="385"></embed></object><br />2010/05/31</span>'), (3, '2', '我的藍梅夜', '每一次的反射都讓我更愛自己一點', 'MyBlueBerryNightsS.jpg', 'MyBlueBerryNightsB.jpg', '2015-09-09 07:14:07', '<p>\r\n 2008年我坐在電影院裡的沙發座上屈指可數,彷彿像窮人家小孩口袋裡零星數得出來的銅幣聲響;反視音樂,若實體一張挨著一張購入算起,去年每月至少平均有五張音樂專輯流入黃色資料夾,雖不甚多,但能像積木搭起CD音樂盒的城堡也可見一般。這年,也是聆聽音樂記錄的頭一年。</p>\r\n<p>\r\n <br />\r\n <span class="fullpost">這部電影著實讓我反轉拉了進度軸許多回。頭幾次用中文字幕觀影,再轉換以英文作旁白,最後捨了字幕上的陪襯,電影成了真實生活的立體鏡頭。在這交錯的方式觀賞,每回悟出的心得都不盡相同。王家衛的電影要說的思維一向不簡單,雖然我曾一人觀賞《花樣年華》悶到整個看不懂也頭痛,不過想起那才二十郎當初蒙昧的年記,領略感知的熱度像是電影院剛開啟的爆米花機一樣怎麼也爆不出香味來。但卻好像也從不介意自己那樣子過。然而《我的藍梅夜》像是翻版於94年的《重慶森林》以用最普實簡單的劇本,鋪陳了關乎愛情世界裡的距離與時間。<br />\r\n <br />\r\n 影像回盪在《重慶森林》編號633巡邏警察(梁朝偉飾)習慣對著東西說話,以填滿空曠的內心世界;阿菲(王菲飾)總是扭大音響音量,伴隨著鼓譟的搖滾樂築起小小世界,只有她在裡面。想起這都市愛情,反於《我的藍梅夜》Jeremy卻用無止盡的漫長等待,拉近了Beth的旅途距離,一字一跡反覆的Postcard和一把仍不願隨意丟棄的鑰匙。愛情中,無法遮掩的美好,仍舊如此。<br />\r\n <br />\r\n 片中穿插一覺醒來沒感覺甩掉酗酒警察Arnie的<NAME>,戀人們的繩索太過緊束總讓人窒息;和Fuck You Very Much的女賭徒,賭桌上卻藏不住真切想愛父親的堅強;每段小故事都讓Elizabeth重新看待自己,不論旅行何處,自然回到最原點,也找到自己不再茫然若失的去向。<br />\r\n <br />\r\n <span style="color: #cc9933;">In the last few days, I&rsquo;ve been learning how to not trust people and I&rsquo;m glad I failed. Sometimes we depend on other people as a mirror. To define us and tell us who we are. And each reflection makes me like myself a little more.<br />\r\n <br />\r\n 在最後的日子裡,我學著如何不去相信人們,但很高興我失敗了。有時我們把人們當作一面鏡子,去定義自己與告訴,我們是什麼樣的人。而每一次的反射都讓我更愛自己一點。</span><br />\r\n <a class="highslide" href="http://kevin91745.myweb.hinet.net/blogpictures/stagephotoB.jpg" id="thumb1" onclick="return hs.expand(this,{captionld:''caption1'',align:''center''})"><img alt="Highslide JS" height="134" src="http://kevin91745.myweb.hinet.net/blogpictures/stagephotoS.jpg" title="Click to enlarge" width="200" /></a> </span></p>\r\n<div class="highslide-caption" id="caption1">\r\n <br />\r\n <span class="fullpost">我的藍梅派</span></div>\r\n<br />\r\n<p>\r\n <span class="fullpost">這段像是廣漠無邊的公路式電影所萌出的被我視為的佳句,好一段時間以它為生活重心。曾幾何時我們都像Beth那樣的天真與純粹,相信所有的良善能帶給人們所有適切般的美好。這力量,這意識足以摧擊社會體制下爛腔濫調的虛偽面具,跨越既壓抑又激亢的媚俗世代,而回到那樣多愁善感的鄉土種子。在大多時候,我們是這樣。<br />\r\n <br />\r\n 於是,等待與憧憬成了我觀賞這部電影的主軸,擺著一幅披著壁紙的畫依靠在長方型的石坐椅旁,背後不清楚有幾張電影宣傳海報,暗色晝明,燈光斜斜打入,我坐著那,聽著音樂。假草地遍及四周,一杯咖啡還在桌上冒煙,鐵欄竿門外人群穿梭來去。<br />\r\n <br />\r\n 等待那份憧憬的出現。<br />\r\n -------------------<br />\r\n <br />\r\n 9/17/09</span></p>\r\n'), (4, '1', '一間唱片行的夢想', '『和這個世界過不去』的寂寞', 'RecordStoreS.jpg', 'RecordStoreB.jpg', '2015-09-09 07:14:13', '<p>\r\n 懶人說,Live House的樂團可是沒有開場的,當第一個音落下時,他們的表演就開始了。</p>\r\n<p>\r\n 中秋節快結束的夜晚匆匆忙忙往展演廳奔去,手扶梯才把我推到六樓,蕭青陽大哥設計的音樂枝巢一片映入眼簾,而那家每個人心目中的唱片行只隔著一塊落地玻璃的距離,坐落在我眼前。</p>\r\n<p>\r\n 我走進裡頭,一疊疊黑膠放置在木箱隔間。對於我這遲來的外來客,準備打洋的店員們只說音符棒棒糖五十元,並在我面前表演了像是魔術方塊三折式的宣傳卡片。而每人臉上漾起的笑容像是又過了一場美好的音樂饗宴。</p>\r\n<p>\r\n 環顧四周,仔細地看著存放在這十天唱片行裡的每一樣物品。屋內中間拉下幾盞直落落的舊式燈泡,似乎同時也照亮了每一張舊時代的黑膠唱片;唱機放置在放銀檯旁,以透明殼蓋上,卻蓋不住愛樂者的聲音;而牆上貼著那些我似而熟卻不陌生的樂團獨白,我找不到需要離開的理由。走出唱片行,步了幾步距離,看到它的全貌,也同時看見被放進的美術指導郭志達先生的理想。</p>\r\n<p>\r\n 記得郭先生曾說,當你有夢想時,記得要一條條把它寫在一張白紙上,每一時刻都要提醒自己。多年之後,你就會慢慢發現當初的理想,已漸漸實現。對他而言,我想這唱片行便是其中之一。</p>\r\n<p>\r\n [陳德政20歲的搖滾帳棚]</p>\r\n<p>\r\n 陳德政詭異要睡在這一夜的帳篷在另一旁,那是他在二十歲的那年夏天,唯一一個東方人參加英國V99與Read Festival兩場音樂祭所陪伴的帳棚,裡頭還掛著一個夜間小燈。他把當時旅途上的火車票根,Blur樂團海報、所有紀念小物都展示出來,標題列著─「二十歲的搖滾夢」。牆壁上留著他的文字,他的青春也從此留住了。</p>\r\n<p>\r\n 回繞在另一旁,馬世芳的記憶卡帶,一捲交著一捲排疊起來,引文摘錄了我所熟悉的那本《地下鄉愁藍調》裡關於那美麗寂寞的噪音─「搖滾樂其實是很矛盾的。看似熱鬧,實則無處不浸透著寂寞。它的核心往往就是『和這個世界過不去』的寂寞。而那撼動了整個世代的、真正了不起的搖滾樂,便是找到了那條紐帶,把千千萬萬的寂寞和蕭條,串織在一塊兒。」我讀到此,倏然而至的寂寞,再也找不到。</p>\r\n<p>\r\n 當所有展演廳的工作人員隨著下班離去時,就連後來才知道的吉他手小白的衣杉留在舞台上忘了帶回,只剩我一個人站在廳裡中央,一片靜寂,燈光暗下。望著舞台去,我見不著甜梅號的身影,他們前一個小時已表演完,可是想像力似乎停留在氛圍裡,我將雙眼微微閉上,彷彿他們剛在台上演出的影像卻如一格格幻燈片在腦海中浮現而不斷翻頁。對於一直伏在角落這些的音樂人,其實他們沒有需要過多的投射燈去放亮這些心中小事。</p>\r\n<p>\r\n 雖然和小白擦肩而過,也忘了感謝他那首曾讓我勾起一幅在操場跑跳景象的「體育」的音樂,陪伴過我一段時間,這台灣最具潛力的後搖樂團。</p>\r\n<p>\r\n 無論如何,我們的搖滾夢從這一間唱片行開始。</p>\r\n'), (5, '2', 'Into The Wild', '阿拉斯加之死', 'IntoTheWildS.jpg', 'IntoTheWildB.jpg', '2015-09-09 07:14:19', '<p>\r\n 不予否認的,我在初讀《阿拉斯加之死》這本小說的年紀,正巧與書中主角克里斯多弗的年齡相仿,正值生命歲月裡最豐沛的冒險時期─二十二歲。但那時兀自於腦海中對曠野那般夢幻卻殘酷的田畝,我並未像克里斯能填滿勇氣走訪一遭窺探一二。</p>\r\n<p>\r\n 人們總是對社會佈滿虛假、矯柔造作、言不由衷有著過份的反彈,卻矛盾至入其內無法抽身。能夠引領另一嚮往的內心世界,除了逢人闔上嘴角不苟言笑,就是擁抱托爾斯泰或是傑克倫敦的書籍把自己丟置廣漠無邊的荒野中反視著人類的愚拙,這嚴然是一種謬世的孤獨態度。但不可不說的是,這同時也能的得到另一種自我心靈的解放。</p>\r\n<p>\r\n 書中主角克里斯當屬這類的人。他來自豐沃富裕的家庭,大學成績優異的程度足以進入哈佛法律系就讀。他天資聰穎與人相處活崩亂跳的開朗個性,像是個永停不下腳步人見人愛的大男孩。與他旅程中相肩而過的Jam和Rainey情侶;教他割草豪爽的漢子Wayne;在大峽谷湍急的河流露營的Mads和Sonja;一次愛上他的十六歲音樂少女Tracy T;大半生駐守軍隊裡孤獨老人Ron Franz。人們總是在際遇的交織下,尋找自己的生命原鄉。也同樣的克里斯在這奇遇的旅人之路,開啟自身存在的價值探索。 生命就像一趟奇幻冒險的旅程。</p>\r\n<p>\r\n 依稀記得這本小說擺置在書桌上,捧在手裡不時地翻頁的那個夏日時節,是與家人一同到郊外山區旅行,那是記憶中的兩日一夜。當天夜裡,我獨自一人散步至門口前像是戶外咖啡木製座椅旁,聳立在眼前的是一片望無邊際的針葉林地帶,帶點秋天涼意的山區高度,微微的。凝視向下行徑在旅館前的道路分別站著兩旁間隔稍遠的路燈,延伸挺多容下一車半的道路的東西向,一格一格漸行漸遠。如果能夠在地表上尋覓到昏暗柔和的發光點,我想就只有這寬大的別墅旅館停歇站。</p>\r\n<p>\r\n 絲毫不忘那時的心境有多貼近書中的克里斯,像是童年的他在面對父母爭吵離異牢牢抱緊妹妹Carine所帶來的無力感,驚恐與害怕。也從未而想過那樣的傷痕裂縫裡的判逆種子會在未來的某一刻萌芽成長。我獨自窩在旅館房間床鋪上,釋手翻著每一頁,置身克里斯離群索居的心靈曠野中,儘管旅館樓下大聽裡充滿溫馨和諧的人群來往悅耳的聲音,但我仍過份的激情想脫離這一切遠遠奔走。人們總是在某種環境下容易被一些事物主導著,又或者從回憶的殘缺旁白裡,被一些微弱的呼吸聲推促著,走上另一條未知崎嶇的道路。</p>\r\n<p>\r\n 孤獨裡有時候會包含一種完美主義的個性,像是一段長久時間把自己置入某種程度黑暗的角落,無法敞開心胸去崇向外面的太陽,那些所散發出渾然發燙炙熱的一根根細針,每根細針彷彿帶有世人所有邪惡的個性,刺痛自己的皮膚,情願愛上孤獨的夜晚。</p>\r\n<p>\r\n 這部電影同時也讓人一再想起《小太陽的願望》(Liitle Miss Sunshine)。劇中Hoover Family 的兒子Dwayne為了成就自己成為飛行員的夢想,決定關起嘴巴,不說話已經九個月,當他的Uncle Frank第一次和Dwayne碰面時,打招呼地寒暄問他平常和誰玩在一起,Dwayne率性地拿出筆記本寫著:「我憎恨所有的人。」</p>\r\n<p>\r\n 來自Dwayne的恨意是所有世人間的偽善,那些包裝過的善言善語,不切真實所有表面化的事情。縱使在Dwayne得知自己有色盲的病症致使他無法成為飛行員,壓抑在內心深處的滿滿情緒一併而發,隨著粗氣的文字爆裂在通往加州的公路旁。原來面對孤獨的人,在心靈世界裡其實還有一塊脆弱地帶。</p>\r\n<p>\r\n 無獨有偶,小說書本中的克理斯最後想起疼愛的母親;電影裡的克理斯最後在魔法巴士留下的遺言:「Happiness only real when shared.」。其實在孤獨之後,我們還有著更多的溫暖埋藏在自己的內心深處,不是嗎?</p>\r\n<p>\r\n 電影的劇末與小說結尾句點並無二致,都是停留在魔法巴士的最後一慕由影像緩緩拉至上空,巴士逐漸縮小,最後消失隱密在廣大的阿拉斯加草原河畔。片尾曲拉上黑色的屏幕,想起友人的一席話:「把片尾曲聽完是對電影的一種尊敬。」耳間傳來Hard Sun的音樂,腦海裡反覆著克里斯留在相機裡的僅存的一張照片。不論對電影、配樂、製作敬意與否,克里斯傳奇探險於北美阿拉斯加的色彩故事,都深深觸動每個坐在螢幕下的觀賞者。   </p>\r\n<p>\r\n 因為那是最美麗的旅人記憶。 ----------------------------- 11/6/08</p>\r\n'), (6, '1', '單純的事交給陳綺貞的純綷', '', 'EcoleCafeS.jpg', 'EcoleCafeB.jpg', '2015-09-09 07:14:24', '<p>\r\n 座落在師大校園附近,在旁的新生國小的PU跑道操場,一條路燈照著晦暗的巷弄,獨獨亮著橘色招牌的&rsquo;Ecole。</p>\r\n<p>\r\n 這是我第一次走進學校咖啡館。</p>\r\n<p>\r\n 打開門,看見馬世芳老師與葉雲平就坐在距門口跨過三、四個圓桌,他們似乎在為等會的講座交談著。進了門,在吧台前的桌子,拉開椅子坐下,我拿起手上的破報攤放在桌上,店員湊身過來詢問我是不是來參加講座的?我點了點頭,隨著她拿給我的menu點了一杯尼羅河綠茶並且跟我說七點五十分才能下樓。我低著頭繼續瞧看報上過份爛漫無謂的文字,尋著是否有讓我足夠測試黃香李試驗的好音樂。</p>\r\n<p>\r\n 對於這次《台灣流行音樂200張最佳專輯》一書終於殺青,儘管這本舊作百大被喻為台灣很多愛樂者的聆聽啟蒙,儘管是樂史上重要文獻參考,但仍然激不起我太多的好奇共鳴。一面翻閱著報紙,心裡卻還想著近日看的《地下鄉愁藍調》,那些五顏六色、詭譎怪誕的龐客;馬老師口述的1969年美國小鎮烏茲塔克(Woodstock)音樂季軼事,<NAME>在四十萬擁潮的人前唱著〈Joe Hill〉六○年代愛與和平的歌聲,或是<NAME>像個瞎盲的瘋子一樣狂飆《I&#39;m going home》以及那張披頭四《White Album》裡被老師說成「真是一首很荒唐的歌」的〈Birthday〉,心升讓我下回辦生日派對「就用這首吧!」的回響。還有,宇宙塑膠人(Plastic Peolple of the Universe)樂團如何以「間接」的方式唱跨一個政權。</p>\r\n<p>\r\n 店員提醒著散坐在一樓的人群時間已到,隨之窩蜂擁進往地下一樓的方向走去,下樓前還瞥見牆上一個男孩斜瞄女孩的怪異塗鴉,那是個地方。我挨著螺旋梯的扶手走下去。下樓之後,前方DJ助手正整理著手頭上的CD,喇叭的響座卻放著陳綺貞的〈和你在一起〉。店員在下樓處發放著資料和問券。拿著紙張,看著散在兩旁的座位,依照我的個性一定選柔軟的沙發座。</p>\r\n<p>\r\n 馬世芳老師這回與葉雲平的論點範疇幾乎在分析過往的台灣「民歌」影響。從戒嚴時代抗議十足台灣民歌之父胡德夫開始,到影響兩岸三地羅大佑、崔健,與從身歌手與製作人以形象工程帶出不少當紅藝人的李宗盛等。用一首接著一首民謠歌曲解釋著過去大時代背景對彼時社會或後續衍生出來的效應影響。</p>\r\n<p>\r\n 大多時候我無法理解這些深邃的論述存在的意義。但能讓現場觀眾對這原先只籌辦一小時講座卻被兩位評論人口橫沫般超時到兩小時只專注而無法分心,我想是在馬世芳老師對文字的駕馭而引人入勝的表達方式,再加以一些動人卻不絕俗的幽默穿插,讓我只能用最簡單方式描述─「聽他說話真是一種愉快的享受!」。更讓我明白對於作為一廣播人是如何以文字與音樂為生。用詞如何謹慎,見解精闢。</p>\r\n<p>\r\n 很可惜,對於現在的馬世芳而言,研究取向似乎多半是提倡本土音樂為主,西洋搖滾樂似乎已是他鮮少著墨的主題。對於被張鐵志曾在《Sounds and Fury》一書中譽為「高中時代就可以成為全國研究披頭四+鮑伯狄倫(<NAME>)+滾石合唱團(<NAME>)的第一高手」。回想這番話,對於青年時期迷戀麥克‧喬丹(<NAME>)那般太過灑汗水的我彷彿是種遺憾,應譇望自己當時多一點時間分出去。(但其實也換了一大筆健康)</p>\r\n<p>\r\n 然而值得一提的是,原本存在心中關於「音樂與商業化之間關係」的問題,似乎也稍稍找到答案。馬老師引了縱貫線Superband成立産生過多的輿論的例子來說明音樂人主要的職責─「讓作品說話」。對於其他餘事,就由其他學家評論分析,也期望聆聽的觀眾朝向這樣的方向走去。</p>\r\n<p>\r\n 整整兩個小時一首首台灣民謠歌曲播放,最後一個音符落在伍佰的吉他弦上。我把桌上最後一口尼羅河綠茶以拇指翻開封口喝下,提著背包走出&rsquo;Ecole,有點像剛上完課的大小孩。雖然今晚這些對我有些已是模糊腿色舊時代的音樂,沒有太多能勾起我的情緒的耀動。或者說,能說的, 我只記起陳綺貞的單純,一個純綷的夜晚。</p>\r\n'), (7, '1', '再度敲響的鐘,謝謝你提醒我', '詹姆仕的秋天', 'SugarPlumFerryS.jpg', 'SugarPlumFerryB.jpg', '2015-09-09 07:14:31', '<p>\r\n 我遺忘了這次旅行的目的地,直到咬筆桿的這刻仍然記不起它是往哪裡去,只記得兩天一夜耳朵側旁總是被這首《敲響的鐘》的聲音圍繞著。</p>\r\n<p>\r\n 忽然之間,我想起來怎麼認識他們的,那個開始。</p>\r\n<p>\r\n 甜梅號第三張專輯《腦海群島》早在今年2月13日就上市。起初最讓我動容而手心冒汗直至腳底發麻的,是&lt;黃昏鹿場&gt;這一首曲。爾後,我聽不出&lt;敲響的鐘&gt;任何敏銳地帶,對於小白想說甚麼,鼓手孟諺想敲甚麼,始終不及那片寂靜之聲。但是我們得明白,他們的音樂一直是屬於後勁強悍,是越聽越飽滿的。只不過怎麼也沒想到,這首曲敲響的時間竟是往後半年之久。</p>\r\n<p>\r\n 還記得那個開始,是大學畢業後夏天的事,那是認識幾個伏在角落音樂人之後的事了,是在Nipples《詹姆仕的秋天》之後的事。而Nipples專輯現在仍舊擱在家裡書櫃上。</p>\r\n<p>\r\n 對我來說Nipples是個楔點,是開始認識後搖這個名詞,是漸漸明白搖滾樂其實不一定要有聲唱。從Nipples之後,我知道還有一個後搖樂團存在,他們的團名很特別,樂風很脫俗,帶點緩飄,表演時低調的很。那時沒有人介紹,沒有樂評的引述,沒有任何的共鳴泛響,只在偶然之下瞥見團名。從那一刻起,我就知道他們會是我喜歡的樂團,這樣的認識是很冥冥之中的際遇,所以在我心目中,甜梅號的地位是很唯一無二的。</p>\r\n<p>\r\n 成團十餘年過去,鼓手孟諺即將在〈屋頂音樂節〉之後出國深造錄音工程,甜梅號終究要暫歇一陣子。即便如此,我始終無法忘記第一次近距離瞧見孟諺時的景像;髮長及肩,紮綁馬尾,他是先喝了一口調酒,拴緊瓶蓋,便在黑膠上的封面寫下他的名字。之後和我說聲謝謝,我卻忘了回應他那一晚的演出,想告訴他,那是我見過最曼妙的鼓法,肢體最藝術的模樣,那紛沓而來的從容感動,是讓人難以忘懷的。</p>\r\n<p>\r\n 傳說他的鼓點太過準確,以致其他團員不容易跟上他的節奏,也曾說他是可以把Smashing Pumpkins的《Siamese Dreams》整張專輯的鼓從頭打到尾。如今,伴隨他的暫別,甜梅號不知何時才會再重逢,然後再次的提醒,再次的消失,再一次的敲響。屋頂音樂節之後,我們重新來過,青春被丟在後頭,因為甜梅號的一路陪伴,模糊的記憶裡面,有著最好的禮物。</p>\r\n<p>\r\n 謝謝你提醒了我,甜梅號。</p>\r\n'), (8, '3', '單純且不單純,來不及寫的二十八', '從音樂裡解放', 'reliefcafeS.jpg', 'reliefcafeB.jpg', '2015-09-09 07:17:13', '<div>\r\n 就如同工作時穿著一樣,一件牛件褲,一件T-Shirt,一雙休閒鞋,這是我所喜歡的穿著。坦白說,我不太熱愛西裝領帶皮鞋,所以會喜歡陳綺貞那類的音樂人,往往是她們一襲輕便身衣,一把清脆的木吉他,然後簡簡單單唱出她們的心中小事。或像馬世芳及陳德政他們出席講座一樣,不太著重華麗的衣著。言談之間,也是如此。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 我不知道如何去述說二十八的到來,這兩三年時間,文藝軼事開了閘道,頭上的外太空訊號,接收力越來越清晰,認識許許多多好像本來就會主動認識的人群;是流浪詩人也好,披頭青年也是,是革命左派也罷,那個老談六四怎麼個偉大烈士。人生劇本好像是自己的,這樣寫,情節線是這麼鋪。當然,這一切的一切幾年前我完全沒有一個想法。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 來到二十八,讓人最有體悟即是「中心思想」、「光明性」,及不可或缺的「企圖心」,若是人生是否走得瀟灑。然而我們攀爬在每天生活文化的版塊上,有太多太多回首與仰望的事情,也太多且多的挫折低迴在身旁,仍不變的是,我們都得持續往前走,不論身形疲倦,或是大步闊伐,或是喜悅滿懷,我們都顛簸搖搖愰愰的留下些甚麼。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 早上起床,也許有個簡約的廚具,煎個火腿夾蛋配上一杯鮮奶,中式早餐感覺不容易自己作,下樓有對和藹奶奶與爺爺開著燒餅油條店。或許對街還有著不一樣的西式餐店,和他們道聲西方用語,他們給你一份文化涵養豐盛的早餐,來自他們的家園。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 之後,你滿意懷喜的去上班,隨著今天的工作量可以激發你自己多少創意,能夠和共同擁有理想熱情的夥伴共事,成為你生活有所幸福的事,或許有點忙錄,但樂此不彼。況且回到家中你還有個科學實驗室,它雖沒有像貝爾實驗室有多來得多有名,能自創多少發明。至少它有個Steel Rack,也有台OA,可能最新的Intel i9 Core CPU,VGA是GTX 590;你會用Super Pi 計算performance到達幾秒,還有3D Mark,執行 3維度的AA鉅齒狀況。另一台是Linux OS,他是主要開發程式端語言,在Open resource的情況下,我們與網路另一端的Hacker較勁。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 當我理性羅輯思考多了,我會走至另一間房,裡頭牆上掛置Nirvana的Nevermind專輯的海報,或者是Velvet Underground的Andy Warhol計設的大香蕉;又或者學著「艾倫金斯堡」敲著打字機專注的模樣,在電腦桌前把自己昇華成頹廢的詩人。而桌旁另一頭也放著一台廉價老味的唱機,買張不知名的黑膠,從音樂裡解放,從那些詩句字裡行間獲得心靈的填補,知道真正的自由在哪方。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 除此之外,我會拿起畫筆,拉好畫架,從一線一彎的筆畫裡,管他是畢卡索還是莫內,這都不是我要模仿的,我的畫作有主題似無主題,畫好了便一毛也不值,拿去和乞丐兜售一塊麵包,咬啐之後飽裹肚子,吃不完的再當橡皮擦用。梵谷的左耳帶來更多的寂靜思考。</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 於是走了大半圈,繞了大段路,好像那一座安穩的居所才隱約浮現。然而人生悠悠漠然走過,經歷與所知道的,我們無法在同一個方位架起筆直的航海線,掌著舵,乘著風,逐浪而去;那些無可避免的剩下,留著記憶,在未著陸之前&hellip;&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n<div>\r\n 這仍是我所希望的事。&nbsp;</div>\r\n<div>\r\n &nbsp;</div>\r\n'); -- -------------------------------------------------------- -- -- 資料表結構 `category` -- CREATE TABLE IF NOT EXISTS `category` ( `category_id` int(11) NOT NULL, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `parent_id` int(11) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 資料表的匯出資料 `category` -- INSERT INTO `category` (`category_id`, `image`, `parent_id`, `status`) VALUES (1, NULL, 0, 0), (2, NULL, 0, 0), (3, NULL, 0, 0), (4, NULL, 0, 0); -- -------------------------------------------------------- -- -- 資料表結構 `category_description` -- CREATE TABLE IF NOT EXISTS `category_description` ( `category_id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 資料表的匯出資料 `category_description` -- INSERT INTO `category_description` (`category_id`, `name`, `description`) VALUES (1, '音樂', ''), (2, '電影', ''), (3, '寫字', ''); -- -------------------------------------------------------- -- -- 資料表結構 `home` -- CREATE TABLE IF NOT EXISTS `home` ( `id` int(11) NOT NULL, `title` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(128) COLLATE utf8_unicode_ci NOT NULL, `text` text COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 資料表的匯出資料 `home` -- INSERT INTO `home` (`id`, `title`, `slug`, `text`) VALUES (1, 'test1234', 'how', 'i am charisma'); -- -------------------------------------------------------- -- -- 資料表結構 `user` -- CREATE TABLE IF NOT EXISTS `user` ( `user_id` int(11) NOT NULL, `username` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `salt` varchar(9) COLLATE utf8_unicode_ci NOT NULL, `firstname` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `lastname` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(96) COLLATE utf8_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 已匯出資料表的索引 -- -- -- 資料表索引 `article` -- ALTER TABLE `article` ADD PRIMARY KEY (`article_id`), ADD UNIQUE KEY `article_id` (`article_id`); -- -- 資料表索引 `category` -- ALTER TABLE `category` ADD PRIMARY KEY (`category_id`); -- -- 資料表索引 `category_description` -- ALTER TABLE `category_description` ADD PRIMARY KEY (`category_id`); -- -- 資料表索引 `home` -- ALTER TABLE `home` ADD PRIMARY KEY (`id`), ADD KEY `slug` (`slug`); -- -- 資料表索引 `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`user_id`); -- -- 在匯出的資料表使用 AUTO_INCREMENT -- -- -- 使用資料表 AUTO_INCREMENT `article` -- ALTER TABLE `article` MODIFY `article_id` int(3) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9; -- -- 使用資料表 AUTO_INCREMENT `category` -- ALTER TABLE `category` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- 使用資料表 AUTO_INCREMENT `home` -- ALTER TABLE `home` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE PROCEDURE usp_raise_salary_by_id(id int) BEGIN START TRANSACTION; IF((SELECT count(employee_id) FROM employees WHERE employee_id like id)<>1) THEN ROLLBACK; ELSE UPDATE employees AS e SET salary = salary + salary*0.05 WHERE e.employee_id = id; END IF; END
<reponame>lgcarrier/AFW<gh_stars>1-10 SET DEFINE OFF; ALTER TABLE AFW_12_GROUP_UTILS ADD ( CONSTRAINT AFW_12_GROUP_UTILS_FK1 FOREIGN KEY (REF_PRODT) REFERENCES AFW_11_PRODT (SEQNC) ON DELETE CASCADE ENABLE VALIDATE) /
CREATE TABLE [dbo].[Course] ( [Id] INT IDENTITY (1, 1) NOT NULL, [CatalogNumber] NVARCHAR (MAX) NULL, [Name] NVARCHAR (MAX) NULL, [Organization_Id] INT NULL, CONSTRAINT [PK_dbo.Course] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_dbo.Course_dbo.Organization_Organization_Id] FOREIGN KEY ([Organization_Id]) REFERENCES [dbo].[Organization] ([Id]) ); GO CREATE NONCLUSTERED INDEX [IX_Organization_Id] ON [dbo].[Course]([Organization_Id] ASC);
<reponame>matortheeternal/mod-picker<filename>setup/old/setup.sql<gh_stars>1-10 /* TEXT TYPE REFERENCE (max length) * ------------------------------------------------------ * TINYTEXT = 2^8 bytes = 255 char (ascii) * TEXT = 2^16 bytes = 65,535 char (ascii) * MEDIUMTEXT = 2^24 bytes = 16,777,215 char (ascii) * LONGTEXT = 2^32 bytes = 4 gigabytes (wtf) * * NUMERIC TYPE REFERENCE * ------------------------------------------------------ * TINYINT UNSIGNED MAX = 255 * SMALLINT UNSIGNED MAX = 65,535 * MEDIUMINT UNSIGNED MAX = 16,777,215 * INT UNSIGNED MAX = 4,294,967,295 * BIGINT UNSIGNED MAX = 18,446,744,073,709,551,615 * ------------------------------------------------------ */ /* ------------------------------------------------------ */ /* site mod info tables */ /* ------------------------------------------------------ */ CREATE TABLE nexus_infos ( nm_id INT UNSIGNED NOT NULL AUTO_INCREMENT, uploaded_by TINYTEXT, authors TINYTEXT, date_released DATE, date_updated DATE, endorsements INT UNSIGNED, total_downloads INT UNSIGNED, unique_downloads INT UNSIGNED, views BIGINT UNSIGNED, /* bigint because 4 billion views isn't entirely implausible */ posts_count INT UNSIGNED, videos_count SMALLINT UNSIGNED, images_count SMALLINT UNSIGNED, files_count SMALLINT UNSIGNED, articles_count SMALLINT UNSIGNED, nexus_category SMALLINT, changelog TEXT, PRIMARY KEY(nm_id) ); CREATE TABLE workshop_infos ( ws_id INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(ws_id) ); CREATE TABLE lover_infos ( ll_id INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(ll_id) ); /* ------------------------------------------------------ */ /* mod tables */ /* ------------------------------------------------------ */ /* mods available on the site */ CREATE TABLE mods ( mod_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ game TINYTEXT, name TINYTEXT, aliases TINYTEXT, is_utility BOOLEAN, category SMALLINT, has_adult_content BOOLEAN, nm_id INT UNSIGNED, ws_id INT UNSIGNED, ll_id INT UNSIGNED, PRIMARY KEY(mod_id), FOREIGN KEY(nm_id) REFERENCES nexus_infos(nm_id), FOREIGN KEY(ws_id) REFERENCES workshop_infos(ws_id), FOREIGN KEY(ll_id) REFERENCES lover_infos(ll_id) ); /* versions of mods available on the site */ CREATE TABLE mod_versions ( mv_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ mod_id INT UNSIGNED, nxm_file_id INT UNSIGNED, /* max ~4 billion, should be big enough */ released DATE, /* override date from site infos, may be unused */ obsolete BOOLEAN, dangerous BOOLEAN, PRIMARY KEY(mv_id), FOREIGN KEY(mod_id) REFERENCES mods(mod_id) ); /* all mod asset files we ever encounter, no duplicate file paths */ CREATE TABLE mod_asset_files ( maf_id INT UNSIGNED NOT NULL AUTO_INCREMENT, filepath VARCHAR(128) NOT NULL UNIQUE, PRIMARY KEY(maf_id) ); /* maps asset files to mod versions */ CREATE TABLE mod_version_file_map ( mv_id INT UNSIGNED, maf_id INT UNSIGNED, FOREIGN KEY(mv_id) REFERENCES mod_versions(mv_id), FOREIGN KEY(maf_id) REFERENCES mod_asset_files(maf_id) ); /* plugins that we have informaton on */ CREATE TABLE plugins ( pl_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ mv_id INT UNSIGNED, filename TINYTEXT, author TINYTEXT, description TEXT, hash VARCHAR(8), /* crc32 hash */ PRIMARY KEY(pl_id), FOREIGN KEY(mv_id) REFERENCES mod_versions(mv_id) ); CREATE TABLE masters ( mst_id INT UNSIGNED NOT NULL AUTO_INCREMENT, pl_id INT UNSIGNED, /* 4 bytes */ PRIMARY KEY(mst_id), FOREIGN KEY(pl_id) REFERENCES plugins(pl_id) ); /* override records associated with a plugin */ /* By my estimation, there will be >100,000 override records total for all skyrim plugins. */ /* Depending on the average name length, the size of a record in this table could be between 35 bytes (16 character name), and 83 bytes (64 character name). I think the average name length will be around 30 characters, making the average record size 49 bytes.*/ /* == SCALING NOTES == Table of 100,000 records = 4.67 MB Table of 1,000,000 records = 46.73 MB Table of 10,000,000 records = 467.3 MB */ CREATE TABLE plugin_override_map ( pl_id INT UNSIGNED, /* 4 bytes */ mst_id INT UNSIGNED, /* 4 bytes */ form_id INT UNSIGNED, /* 4 bytes -- FormID max is 2^(32) = $FFFFFFFF */ sig VARCHAR(4), /* 4 bytes */ name TINYTEXT, /* UP TO 255 CHARACTERS */ is_itm BOOLEAN, /* 1 bit */ is_itpo BOOLEAN, /* 1 bit */ is_udr BOOLEAN, /* 1 bit */ FOREIGN KEY(pl_id) REFERENCES plugins(pl_id), FOREIGN KEY(mst_id) REFERENCES masters(mst_id) ); /* record groups associated with a plugin */ CREATE TABLE plugin_record_groups ( pl_id INT UNSIGNED, /* 4 bytes */ sig VARCHAR(4), name TINYTEXT, new_records INT UNSIGNED, override_records INT UNSIGNED, FOREIGN KEY(pl_id) REFERENCES plugins(pl_id) ); /* mod lists created by users */ CREATE TABLE mod_lists ( ml_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ game TINYTEXT, created_by INT UNSIGNED, is_collection BOOLEAN, is_public BOOLEAN, has_adult_content BOOLEAN, status ENUM('Planned', 'Under Construction', 'Testing', 'Complete'), created DATE, completed DATE, description TEXT, /* bbcode description */ /* frontend restriction: 0 <= length <= 20,000 */ PRIMARY KEY(ml_id) ); /* plugins in mod lists */ CREATE TABLE mod_list_plugins ( ml_id INT UNSIGNED, pl_id INT UNSIGNED, active BOOLEAN, load_order SMALLINT UNSIGNED, /* max ~65,535 */ FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(pl_id) REFERENCES plugins(pl_id) ); /* custom plugins in mod lists */ CREATE TABLE mod_list_custom_plugins ( ml_id INT UNSIGNED, active BOOLEAN, load_order SMALLINT UNSIGNED, /* max ~65,535 */ title VARCHAR(64), description TEXT, /* restrict user from entering more than 1,024 characters here */ FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id) ); /* mods in mod lists */ CREATE TABLE mod_list_mods ( ml_id INT UNSIGNED, mod_id INT UNSIGNED, active BOOLEAN, install_order SMALLINT UNSIGNED, /* max ~65,535 */ FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(mod_id) REFERENCES mods(mod_id) ); /* ------------------------------------------------------ */ /* user tables */ /* ------------------------------------------------------ */ /* users registered on the site */ CREATE TABLE users ( user_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ username VARCHAR(32), user_level ENUM('guest', 'banned', 'user', 'author', 'vip', 'moderator', 'admin'), title VARCHAR(32), avatar TINYTEXT, /* max 255 ascii characters */ joined DATE, active_ml_id INT UNSIGNED, active_mc_id INT UNSIGNED, PRIMARY KEY(user_id), FOREIGN KEY(active_ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(active_mc_id) REFERENCES mod_lists(ml_id) ); /* user biographies - connections to other sites */ CREATE TABLE user_bios ( bio_id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED, nexus_username VARCHAR(32), nexus_verified BOOLEAN, lover_username VARCHAR(32), lover_verified BOOLEAN, steam_username VARCHAR(32), steam_verified BOOLEAN, PRIMARY KEY(bio_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* the settings associated with a particular user */ CREATE TABLE user_settings ( set_id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED, show_notifications BOOLEAN, show_tooltips BOOLEAN, email_notifications BOOLEAN, email_public BOOLEAN, allow_adult_content BOOLEAN, allow_nexus_mods BOOLEAN, allow_lovers_lab BOOLEAN, allow_steam_workshop BOOLEAN, timezone TINYTEXT, udate_format TINYTEXT, utime_format TINYTEXT, PRIMARY KEY(set_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* the reputation associated with a particular user */ CREATE TABLE user_reputations ( rep_id INT UNSIGNED NOT NULL AUTO_INCREMENT, user_id INT UNSIGNED, overall FLOAT, offset FLOAT, audiovisual_design FLOAT, plugin_design FLOAT, utility_design FLOAT, script_design FLOAT, PRIMARY KEY(rep_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* reputation that's been given */ CREATE TABLE reputation_map ( from_rep_id INT UNSIGNED, to_rep_id INT UNSIGNED, FOREIGN KEY(from_rep_id) REFERENCES user_reputations(rep_id), FOREIGN KEY(to_rep_id) REFERENCES user_reputations(rep_id) ); /* ------------------------------------------------------ */ /* many to many mappings between users and mods */ /* ------------------------------------------------------ */ /* stars users have given to mods */ CREATE TABLE user_mod_star_map ( mod_id INT UNSIGNED, user_id INT UNSIGNED, FOREIGN KEY(mod_id) REFERENCES mods(mod_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* stars users have given to mod lists */ CREATE TABLE user_mod_list_star_map ( ml_id INT UNSIGNED, user_id INT UNSIGNED, FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* users that have authored mods */ CREATE TABLE user_mod_author_map ( mod_id INT UNSIGNED, user_id INT UNSIGNED, FOREIGN KEY(mod_id) REFERENCES mods(mod_id), FOREIGN KEY(user_id) REFERENCES users(user_id) ); /* need to update mod_lists to reference users as a foreign key for the created_by column */ ALTER TABLE mod_lists ADD FOREIGN KEY(created_by) REFERENCES users(user_id); /* ------------------------------------------------------ */ /* user submission tables */ /* ------------------------------------------------------ */ /* comments submitted by users */ CREATE TABLE comments ( c_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ parent_comment INT UNSIGNED, submitted_by INT UNSIGNED, hidden BOOLEAN, submitted DATE, edited DATE, text_body TEXT, /* restriction 2 <= length <= 5,000 */ PRIMARY KEY(c_id), FOREIGN KEY(parent_comment) REFERENCES comments(c_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id) ); /* mod reviews submitted by users */ CREATE TABLE reviews ( r_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ submitted_by INT UNSIGNED, mod_id INT UNSIGNED, hidden BOOLEAN, rating1 TINYINT, rating2 TINYINT, rating3 TINYINT, rating4 TINYINT, rating5 TINYINT, submitted DATE, edited DATE, text_body TEXT, /* frontend restriction: 150 <= length <= 10,000 */ PRIMARY KEY(r_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id), FOREIGN KEY(mod_id) REFERENCES mods(mod_id) ); /* installation notes submitted by users */ CREATE TABLE installation_notes ( in_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ submitted_by INT UNSIGNED, mv_id INT UNSIGNED, always BOOLEAN, /* if true, this installation note will always be shown */ note_type ENUM('Download Option', 'FOMOD Option'), submitted DATE, edited DATE, text_body TEXT, /* frontend restriction: 50 <= length <= 1,000 */ PRIMARY KEY(in_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id), FOREIGN KEY(mv_id) REFERENCES mod_versions(mv_id) ); /* compatibility notes submitted by users */ CREATE TABLE compatibility_notes ( cn_id INT UNSIGNED NOT NULL AUTO_INCREMENT, /* max ~4 billion */ submitted_by INT UNSIGNED, mod_mode ENUM('Any', 'All'), compatibility_patch INT UNSIGNED, compatibility_status ENUM('Incompatible', 'Partially Compatible', 'Patch Available', 'Make Custom Patch', 'Soft Incompatibility', 'Installation Note'), in_id INT UNSIGNED, submitted DATE, edited DATE, text_body TEXT, /* frontend restriction: 50 <= length <= 1,000 */ PRIMARY KEY(cn_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id), FOREIGN KEY(compatibility_patch) REFERENCES plugins(pl_id), FOREIGN KEY(in_id) REFERENCES installation_notes(in_id) ); /* comments on mods */ CREATE TABLE mod_comments ( mod_id INT UNSIGNED, c_id INT UNSIGNED, FOREIGN KEY(mod_id) REFERENCES mods(mod_id), FOREIGN KEY(c_id) REFERENCES comments(c_id) ); /* comments on mod_lists */ CREATE TABLE mod_list_comments ( ml_id INT UNSIGNED, c_id INT UNSIGNED, FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(c_id) REFERENCES comments(c_id) ); /* comments on user profiles */ CREATE TABLE user_comments ( user_id INT UNSIGNED, c_id INT UNSIGNED, FOREIGN KEY(user_id) REFERENCES users(user_id), FOREIGN KEY(c_id) REFERENCES comments(c_id) ); /* review, compatibility note, and installation note helpful/unhelpful marks */ /* see stackoverflow on polymorphic associations http://stackoverflow.com/questions/441001/ */ CREATE TABLE helpful_marks ( r_id INT UNSIGNED, cn_id INT UNSIGNED, in_id INT UNSIGNED, submitted_by INT UNSIGNED, helpful BOOLEAN, FOREIGN KEY(r_id) REFERENCES reviews(r_id), FOREIGN KEY(cn_id) REFERENCES compatibility_notes(cn_id), FOREIGN KEY(in_id) REFERENCES installation_notes(in_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id) ); /* incorrect notes for reviews, compatibility notes, and installation notes */ /* see stackoverflow on polymorphic associations http://stackoverflow.com/questions/441001/ */ CREATE TABLE incorrect_notes ( inc_id INT UNSIGNED NOT NULL AUTO_INCREMENT, r_id INT UNSIGNED, cn_id INT UNSIGNED, in_id INT UNSIGNED, submitted_by INT UNSIGNED, reason TEXT, /* frontend restriction: 50 <= length <= 1,000 */ PRIMARY KEY(inc_id), FOREIGN KEY(r_id) REFERENCES reviews(r_id), FOREIGN KEY(cn_id) REFERENCES compatibility_notes(cn_id), FOREIGN KEY(in_id) REFERENCES installation_notes(in_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id) ); /* agreement marks for incorrect notes */ CREATE TABLE agreement_marks ( inc_id INT UNSIGNED, submitted_by INT UNSIGNED, agree BOOLEAN, FOREIGN KEY(inc_id) REFERENCES incorrect_notes(inc_id), FOREIGN KEY(submitted_by) REFERENCES users(user_id) ); /* installation notes that have been resolved or ignored by the user for a particular mod list */ /* Total record size: 9 bytes. */ /* == SCALING NOTES == With 200,000 mod lists, an average of 255 mods per modlist, and an average of 1 installation note per mod, all of which are resolved or ignored: Number of records = 51 million Table size = 437.74 MB */ CREATE TABLE mod_list_installation_notes ( ml_id INT UNSIGNED, /* 4 bytes */ in_id INT UNSIGNED, /* 4 bytes */ status ENUM('Resolved', 'Ignored'), /* 1 byte */ FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(in_id) REFERENCES installation_notes(in_id) ); /* compatibility notes that have been resolved or ignored by the user for a particular mod list */ /* Total record size: 9 bytes. */ /* == SCALING NOTES == With 200,000 mod lists, an average of 255 mods per modlist, and an average of 1 compatibility note per mod, all of which are resolved or ignored: Number of records = 51 million Table size = 437.74 MB */ CREATE TABLE mod_list_compatibility_notes ( ml_id INT UNSIGNED, /* 4 bytes */ cn_id INT UNSIGNED, /* 4 bytes */ status ENUM('Resolved', 'Ignored'), /* 1 byte */ FOREIGN KEY(ml_id) REFERENCES mod_lists(ml_id), FOREIGN KEY(cn_id) REFERENCES compatibility_notes(cn_id) );
<gh_stars>1-10 create or replace table `dataline-integration-testing`.test_normalization.`exchange_rate` partition by timestamp_trunc(_airbyte_emitted_at, day) cluster by _airbyte_emitted_at OPTIONS() as ( -- Final base SQL model select id, currency, date, timestamp_col, HKD_special___characters, HKD_special___characters_1, NZD, USD, _airbyte_ab_id, _airbyte_emitted_at, CURRENT_TIMESTAMP() as _airbyte_normalized_at, _airbyte_exchange_rate_hashid from `dataline-integration-testing`._airbyte_test_normalization.`exchange_rate_ab3` -- exchange_rate from `dataline-integration-testing`.test_normalization._airbyte_raw_exchange_rate where 1 = 1 );
<reponame>spiderbbc/QuorumTicket -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 27-08-2016 a las 19:29:16 -- Versión del servidor: 10.0.25-MariaDB-0ubuntu0.16.04.1 -- Versión de PHP: 7.0.8-0ubuntu0.16.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `qtelecom` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `afectado` -- CREATE TABLE `afectado` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `afectado` -- INSERT INTO `afectado` (`id`, `nombre`) VALUES (1, 'Ningun Usuario y solo Uno'), (2, 'Varios Afectados'), (3, 'Ningun Usuario y solo Uno'), (4, 'Varios Afectados'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `departamentos` -- CREATE TABLE `departamentos` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `departamentos` -- INSERT INTO `departamentos` (`id`, `nombre`) VALUES (1, 'Sala tecnica'), (2, 'Sistemas'), (3, 'Medios'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gravedad` -- CREATE TABLE `gravedad` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `gravedad` -- INSERT INTO `gravedad` (`id`, `nombre`) VALUES (1, 'Un Fallo Menor'), (2, 'No hay Servicio Disponible'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `group` -- CREATE TABLE `group` ( `id` int(11) NOT NULL, `name` varchar(20) NOT NULL, `permissions` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `group` -- INSERT INTO `group` (`id`, `name`, `permissions`) VALUES (1, 'Standar User', ''), (2, 'Manager', '{"departamento_id":1,\r\n "admin":1}'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `perfiles` -- CREATE TABLE `perfiles` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `id_departamento` int(11) NOT NULL, `nombre` varchar(50) NOT NULL, `cargo` varchar(50) NOT NULL, `ext` varchar(10) NOT NULL, `img` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `perfiles` -- INSERT INTO `perfiles` (`id`, `user_id`, `id_departamento`, `nombre`, `cargo`, `ext`, `img`) VALUES (1, 32, 1, 'xavier', 'Operador Tecnico', '0130', ''), (2, 45, 2, 'Username test', 'Desconocido', '0000', ''), (3, 43, 1, '<NAME>', 'Supervisor Departamento Tecnico', '0101', ''), (4, 41, 3, '<NAME>', 'Supervisor Medios', '0000', ''); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `respuestas` -- CREATE TABLE `respuestas` ( `id` int(11) NOT NULL, `uuid` varchar(11) NOT NULL, `user_id` int(11) NOT NULL, `msg` text NOT NULL, `date_added` datetime NOT NULL, `date_update` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `respuestas` -- INSERT INTO `respuestas` (`id`, `uuid`, `user_id`, `msg`, `date_added`, `date_update`) VALUES (1, '10000', 3, 'Entendido', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (2, '57', 41, '<p>esto es una prueba</p>\r\n', '2016-08-27 11:57:30', '2016-08-27 11:57:30'), (3, '57', 41, '<p>hola hola</p>\r\n', '2016-08-27 12:02:27', '2016-08-27 12:02:27'), (4, '57', 32, '<p>todos tiene el mismo uuid</p>\r\n', '2016-08-27 19:26:18', '2016-08-27 19:26:18'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `resp_img` -- CREATE TABLE `resp_img` ( `id_ticket` int(11) NOT NULL, `path` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicios` -- CREATE TABLE `servicios` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `servicios` -- INSERT INTO `servicios` (`id`, `nombre`) VALUES (1, 'Telefonia/Central Telefonica'), (2, 'Internet/Conectividad'), (3, 'Impresora/Conectividad'), (4, 'Red/Carpetas'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `status` -- CREATE TABLE `status` ( `id` int(11) NOT NULL, `nombre` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `status` -- INSERT INTO `status` (`id`, `nombre`) VALUES (1, 'Abierto'), (2, 'Cerrado'), (3, 'Pendiente'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tickets` -- CREATE TABLE `tickets` ( `id` int(11) NOT NULL, `uuid` varchar(11) NOT NULL, `user_id` int(11) NOT NULL, `id_afectado` int(11) NOT NULL, `id_gravedad` int(11) NOT NULL, `id_servicios` int(11) NOT NULL, `titulo` varchar(150) NOT NULL, `msg` text NOT NULL, `date_added` datetime NOT NULL, `date_update` datetime NOT NULL, `date_closed` datetime NOT NULL, `id_status` int(1) NOT NULL, `private` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `tickets` -- INSERT INTO `tickets` (`id`, `uuid`, `user_id`, `id_afectado`, `id_gravedad`, `id_servicios`, `titulo`, `msg`, `date_added`, `date_update`, `date_closed`, `id_status`, `private`) VALUES (1, '57c1bb26002', 41, 3, 2, 3, 'Extra Extra Linux Mint a llegado', '<p>jejejejejeje</p>\r\n', '2016-08-27 12:09:09', '2016-08-27 12:09:09', '0000-00-00 00:00:00', 1, 0), (2, '57c1bb60ced', 41, 3, 2, 2, 'Extra Extra Linux Mint a llegado', '<p>jejejejejejeje</p>\r\n', '2016-08-27 12:10:08', '2016-08-27 12:10:08', '0000-00-00 00:00:00', 1, 0), (3, '57c21875c2a', 41, 1, 1, 1, 'probando ando -----------------', '<p>jejejejejeejjeje</p>\r\n', '2016-08-27 18:47:17', '2016-08-27 18:47:17', '0000-00-00 00:00:00', 1, 0), (4, '57c21938248', 41, 3, 2, 3, 'asi andamos todos', '<p>jejejejejejej</p>\r\n', '2016-08-27 18:50:32', '2016-08-27 18:50:32', '0000-00-00 00:00:00', 1, 0), (5, '57c219a7d2f', 41, 3, 2, 3, 'probando ando -----------------', '<p>jejejejejeje</p>\r\n', '2016-08-27 18:52:23', '2016-08-27 18:52:24', '0000-00-00 00:00:00', 1, 0), (6, '57c21e0e13d', 41, 3, 2, 3, 'Extra Extra Linux Mint a llegado', '<p>jejejejejej</p>\r\n', '2016-08-27 19:11:10', '2016-08-27 19:11:10', '0000-00-00 00:00:00', 1, 0), (7, '57c21eba83f', 41, 3, 2, 2, 'Enviando desde Linux Mint', '<p>jejejejejejejejej</p>\r\n', '2016-08-27 19:14:02', '2016-08-27 19:14:02', '0000-00-00 00:00:00', 1, 0), (8, '57c2208be35', 32, 3, 2, 3, 'probando ando -----------------', '<p>jejejejejejej</p>\r\n', '2016-08-27 19:21:47', '2016-08-27 19:21:47', '0000-00-00 00:00:00', 1, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ticket_img` -- CREATE TABLE `ticket_img` ( `id` int(11) NOT NULL, `path` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ticket_users` -- CREATE TABLE `ticket_users` ( `id` int(11) NOT NULL, `id_ticket` int(11) NOT NULL, `id_user` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `ticket_users` -- INSERT INTO `ticket_users` (`id`, `id_ticket`, `id_user`) VALUES (1, 1, 41), (2, 2, 41), (3, 2, 32), (4, 3, 41), (5, 3, 32), (6, 4, 41), (7, 5, 41), (8, 6, 41), (9, 6, 32), (10, 7, 41), (11, 7, 43), (12, 8, 32); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(64) NOT NULL, `salt` binary(32) NOT NULL, `email` varchar(50) NOT NULL, `joined` datetime NOT NULL, `grupo` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `username`, `password`, `salt`, `email`, `joined`, `grupo`) VALUES (32, 'xavier', '<PASSWORD>', 0xb252b2970df242a71c3ef2ce71a88a0eca612682a055499fdd22df5<PASSWORD>b, '<EMAIL>', '2016-07-29 23:58:07', 1), (41, 'thais', '<PASSWORD>', 0xea4ea54d485ca6c6fec5e493c4a9a676dedfac80257a1f9fe42f3fc074a08551, '<EMAIL>', '2016-07-30 15:21:13', 2), (42, 'chateing', '<PASSWORD>', 0xf4f64d58eef852091ee0b14c617f8f445635e89eb8cd74ed17cf33651500b4c5, '<EMAIL>', '2016-07-30 15:23:14', 1), (43, 'rpiedra', 'a0a8f03420418a0511d05a92fcdf0c627b77ffd561657f6dd91944075a68fed3', 0xea2652cd83592685a23fed8ba45b71f088a0d156197da13c6aebe2740a8ad4d2, '<EMAIL>', '2016-07-30 15:32:43', 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users_sessions` -- CREATE TABLE `users_sessions` ( `id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `hash` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `afectado` -- ALTER TABLE `afectado` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `departamentos` -- ALTER TABLE `departamentos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `gravedad` -- ALTER TABLE `gravedad` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `group` -- ALTER TABLE `group` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `perfiles` -- ALTER TABLE `perfiles` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `respuestas` -- ALTER TABLE `respuestas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `resp_img` -- ALTER TABLE `resp_img` ADD PRIMARY KEY (`id_ticket`); -- -- Indices de la tabla `servicios` -- ALTER TABLE `servicios` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `status` -- ALTER TABLE `status` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `tickets` -- ALTER TABLE `tickets` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `ticket_img` -- ALTER TABLE `ticket_img` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `ticket_users` -- ALTER TABLE `ticket_users` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `users_sessions` -- ALTER TABLE `users_sessions` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `afectado` -- ALTER TABLE `afectado` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `departamentos` -- ALTER TABLE `departamentos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `gravedad` -- ALTER TABLE `gravedad` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `group` -- ALTER TABLE `group` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `perfiles` -- ALTER TABLE `perfiles` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `respuestas` -- ALTER TABLE `respuestas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `resp_img` -- ALTER TABLE `resp_img` MODIFY `id_ticket` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `servicios` -- ALTER TABLE `servicios` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `status` -- ALTER TABLE `status` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `tickets` -- ALTER TABLE `tickets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de la tabla `ticket_img` -- ALTER TABLE `ticket_img` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `ticket_users` -- ALTER TABLE `ticket_users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; -- -- AUTO_INCREMENT de la tabla `users_sessions` -- ALTER TABLE `users_sessions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
DROP TABLE IF EXISTS Users GO create table Users ( UserId varchar(50) primary key, Age varchar(50), Address varchar(50), Gender varchar(50), UserType varchar(50) ) DROP TABLE IF EXISTS Activities GO create table Activities ( [Column0] bigint, TransactionId bigint primary key, TransactionTime datetime, UserId varchar(50), ItemId bigint, Quantity bigint, Val real, Location varchar(50), ProductCategory varchar(50) ) DROP TABLE IF EXISTS ChurnVars GO create table ChurnVars ( ChurnPeriod int, ChurnThreshold int ) insert into ChurnVars (ChurnPeriod,ChurnThreshold) values (21, 0) DROP TABLE IF EXISTS ChurnModelR GO create table ChurnModelR ( model varbinary(max) not null ) DROP TABLE IF EXISTS ChurnModelRx GO create table ChurnModelRx ( model varbinary(max) not null ) DROP TABLE IF EXISTS ChurnPredictR GO create table ChurnPredictR ( UserId varchar(50), Tag varchar(10), TagId char(1), Score float, Auc float ) DROP TABLE IF EXISTS ChurnPredictRx GO create table ChurnPredictRx ( UserId varchar(50), Tag varchar(10), TagId char(1), Score float, Auc float ) go
<filename>SQL/cart.sql create table FOOD ( FID INT NOT NULL AUTO_INCREMENT, Fname VARCHAR(100) NOT NULL, Fprice FLOAT NOT NULL, Primary key (FID) ); create table CUSTOMER ( CID INT NOT NULL AUTO_INCREMENT, Username VARCHAR(100) NOT NULL, Pnum VARCHAR(100) NOT NULL, Password VARCHAR(100) NOT NULL, Primary key (CID) ); create table DELIVERY_GROUP ( LocID INT NOT NULL AUTO_INCREMENT, Lname VARCHAR(100) NOT NULL, Primary key (LocID) ); create table ORDERS ( Onum INT NOT NULL AUTO_INCREMENT, Time DATETIME NOT NULL, Addr TEXT NOT NULL, CID INT NOT NULL, LocID INT NOT NULL, Primary key (Onum), foreign key (LocID) references DELIVERY_GROUP(LocID) ON DELETE RESTRICT on update RESTRICT , foreign key (CID) references CUSTOMER(CID) ON DELETE CASCADE ON UPDATE CASCADE ); create table ITEM ( Onum INT NOT NULL, FID INT NOT NULL, Quantity INT NOT NULL, foreign key (Onum) references ORDERS(Onum) on delete CASCADE ON UPDATE CASCADE , foreign key (FID) references FOOD(FID) ON DELETE RESTRICT ON UPDATE RESTRICT , Primary key (Onum, FID) );
<reponame>FortySix-NTwo/spring-crud-api CREATE TABLE users ( _id MEDIUMINT NOT NULL AUTO_INCREMENT, user_name CHAR(30) NOT NULL, user_email varchar(25) NOT NULL, user_pass varchar(50), PRIMARY KEY (_id) );
drop TABLE `customer`;
<gh_stars>10-100 alter table apple_push_credentials alter column apns_key drop not null; alter table apple_push_credentials add column bundle_id varchar(255);
<gh_stars>1-10 create table EMAILTEMPLATES_EMLTPTE_FDLINK ( EMAIL_TEMPLATE_ID varchar2(32), FILE_DESCRIPTOR_ID varchar2(32), primary key (EMAIL_TEMPLATE_ID, FILE_DESCRIPTOR_ID) )^
<gh_stars>1-10 DROP TABLE IF EXISTS test_entity; CREATE TABLE test_entity ( id INT AUTO_INCREMENT PRIMARY KEY, attribute VARCHAR(250) NOT NULL ); INSERT INTO test_entity (attribute) VALUES ('test1'), ('test2'), ('test3');
/* Copyright 2011 tSQLt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ GO CREATE PROC RegExTests.[test an expression used ...] AS BEGIN DECLARE @re RegEx, @bin VARBINARY(MAX),@s NVARCHAR(MAX); SET @re = RegEx::Expr(N'??MyRegex').CaseSen; -- insertAspect>@re = CAST(CAST(... EXEC tSQLt.assert END ------------ GO -- @n,@n2,@n3=(0,33,8),(1,13,9) CREATE PROC RegExTests.[test an expression used ...] @n INT,@n2 INT,@n3 INT AS OR -- @n=[0..1] CREATE PROC RegExTests.[test an expression used ...] @n INT AS BEGIN DECLARE @re RegEx, @bin VARBINARY(MAX),@s NVARCHAR(MAX); EXEC dbo.CreateExp (@n, 'RegEx::Expr(N''??MyRegex'').CaseSen',@re OUT); EXEC tSQLt.assert END -- SELECT * FROM (VALUES(1,2))x(a,b) @n INT,@n2 INT,@n3 INT VALUES(0,33,8),(1,13,9) DECLARE @n INT,@n2 INT,@n3 INT DECLARE cur CURSOR FAST_FORWARD FOR SELECT * FROM (VALUES(0,33,8),(1,13,9))x([@n],[@n2],[@n3]) OPEN cur; FETCH NEXT FROM cur INTO @n,@n2,@n3 WHILE(@@FETCH_STATUS = 0) BEGIN SELECT @n,@n2,@n3; --exec test case FETCH NEXT FROM cur INTO @n,@n2,@n3 END CLOSE cur; DEALLOCATE cur;
<reponame>Emiya0306/mdx-kylin -- 虚拟数据,用于测试 slicer 重复情况 WITH MEMBER [KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].[Slicer_0] AS 'Aggregate({[KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].&[0], [KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].&[1]})' SELECT NON EMPTY Hierarchize(AddCalculatedMembers({DrilldownLevel({DrilldownLevel({[KYLIN_CAL_DT].[cal_dt-Hierarchy].[All]})},[KYLIN_CAL_DT].[cal_dt-Hierarchy].[YEAR_BEG_DT])})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM ( SELECT ({[KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[CN],[KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[US]}) ON COLUMNS FROM [learn_kylin] WHERE ([Measures].[SUM_PRICE]) ) WHERE ([Measures].[SUM_PRICE],[KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[JP]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS -- MDX -- WITH MEMBER [KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].[Slicer_0] AS 'Aggregate({[KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].&[0], [KYLIN_ACCOUNT].[ACCOUNT_BUYER_LEVEL].&[1]})' MEMBER [KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].[Slicer_0] AS 'Aggregate({[KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[CN], [KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[US], [KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].&[JP]})' SELECT NON EMPTY Hierarchize(AddCalculatedMembers({DrilldownLevel({DrilldownLevel({[KYLIN_CAL_DT].[cal_dt-Hierarchy].[All]})},[KYLIN_CAL_DT].[cal_dt-Hierarchy].[YEAR_BEG_DT])})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS FROM [learn_kylin] WHERE ([Measures].[SUM_PRICE],[KYLIN_ACCOUNT].[ACCOUNT_COUNTRY].[Slicer_0]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
-- phpMyAdmin SQL Dump -- version 4.4.15.10 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2017-08-22 11:46:17 -- 服务器版本: 5.6.36-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `blog` -- -- -------------------------------------------------------- -- -- 表的结构 `article_content` -- CREATE TABLE IF NOT EXISTS `article_content` ( `id` int(11) NOT NULL, `content_id` int(11) DEFAULT NULL, `content` text COLLATE utf8_unicode_ci ) ENGINE=MyISAM AUTO_INCREMENT=164 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- 转存表中的数据 `article_content` -- INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (24, 230, '<p> <span style="color: rgb(255, 0, 0);">分布式缓存出于如下考虑,首先是缓存本身的水平线性扩展问题,其次是缓存大并发下的本身的性能问题,再次避免缓存的单点故障问题(多副本和副本一致性)。分布式缓存的核心技术包括首先是内存本身的管理问题,包括了内存的分配,管理和回收机制。其次是分布式管理和分布式算法,其次是缓存键值管理和路由。</span></p><p>原文:<a href="http://wenku.baidu.com/view/8686d46c7e21af45b307a8c3.html" target="_blank">http://wenku.baidu.com/view/8686d46c7e21af45b307a8c3.html</a></p><p>什么是Memcached</p><p>许多Web应用程序都将数据保存到RDBMS中,应用服务器从中读取数据并在浏览器中显示。但随着数据量的增大,访问的集中,就会出现REBMS的负担加重,数据库响应恶化,网站显示延迟等重大影响。Memcached是高性能的分布式内存缓存服务器。一般的使用目的是通过缓存数据库查询结果,减少数据库的访问次数,以提高动态Web应用的速度、提高扩展性。如图:</p><p>&nbsp;<img width="442" height="351" alt="分布式缓存-Memcached" src="http://s13.sinaimg.cn/middle/493a8455tbc5dfbbcb90c&amp;690"></p><p>Memcached作为高速运行的分布式缓存服务器具有以下特点。</p><ul><li>协议简单:memcached的服务器客户端通信并不使用复杂的MXL等格式,而是使用简单的基于文本的协议。</li><li>基于libevent的事件处理:libevent是个程序库,他将Linux的epoll、BSD类操作系统的kqueue等时间处理功能封装成统一的接口。memcached使用这个libevent库,因此能在Linux、BSD、Solaris等操作系统上发挥其高性能。</li><li>内置内存存储方式:为了提高性能,memcached中保存的数据都存储在memcached内置的内存存储空间中。由于数据仅存在于内存中,因此重启memcached,重启操作系统会导致全部数据消失。另外,内容容量达到指定的值之后memcached回自动删除不适用的缓存。</li><li>Memcached不互通信的分布式:memcached尽管是“分布式”缓存服务器,但服务器端并没有分布式功能。各个memcached不会互相通信以共享信息。他的分布式主要是通过客户端实现的。</li></ul><p>Memcached的内存管理</p><p>&nbsp;&nbsp;&nbsp;</p><p>最近的memcached默认情况下采用了名为SlabAllocatoion的机制分配,管理内存。在改机制出现以前,内存的分配是通过对所有记录简单地进行malloc和free来进行的。但是这中方式会导致内存碎片,加重操作系统内存管理器的负担。</p><p>Slab Allocator的基本原理是按照预先规定的大小,将分配的内存分割成特定长度的块,已完全解决内存碎片问题。SlabAllocation&nbsp;的原理相当简单。将分配的内存分割成各种尺寸的块(chucnk),并把尺寸相同的块分成组(chucnk的集合)如图:</p><p><img width="368" height="265" alt="分布式缓存-Memcached" src="http://s5.sinaimg.cn/middle/493a8455tbc5dfe9eab04&amp;690"></p><p>而且slab allocator 还有重复使用已分配内存的目的。也就是说,分配到的内存不会释放,而是重复利用。</p><p>Slab Allocation 的主要术语</p><ul><li>&nbsp;&nbsp; &nbsp;Page:分配给Slab 的内存空间,默认是1MB。分配给Slab 之后根据slab 的大小切分成chunk.</li><li>&nbsp;&nbsp; &nbsp;Chunk :用于缓存记录的内存空间。</li><li>&nbsp;&nbsp; &nbsp;SlabClass:特定大小的chunk 的组。</li></ul><p>在Slab 中缓存记录的原理</p><p>Memcached根据收到的数据的大小,选择最合适数据大小的Slab (图2)memcached中保存着slab内空闲chunk的列表,根据该列表选择chunk,然后将数据缓存于其中。</p><p>&nbsp;</p><p><img width="313" height="228" alt="分布式缓存-Memcached" src="http://s7.sinaimg.cn/middle/493a8455tbc5e029298d6&amp;690"></p><p>Memcached在数据删除方面有效里利用资源</p><p>&nbsp;&nbsp;&nbsp;</p><p>Memcached删除数据时数据不会真正从memcached中消失。Memcached不会释放已分配的内存。记录超时后,客户端就无法再看见该记录(invisible透明),其存储空间即可重复使用。</p><p>LazyExpriationmemcached内部不会监视记录是否过期,而是在get时查看记录的时间戳,检查记录是否过期。这种技术称为lazyexpiration.因此memcached不会再过期监视上耗费CPU时间。</p><p><span style="color: rgb(255, 0, 0);">对于缓存存储容量满的情况下的删除需要考虑多种机制,一方面是按队列机制,一方面应该对应缓存对象本身的优先级,根据缓存对象的优先级进行对象的删除。</span></p><p>LRU:从缓存中有效删除数据的原理</p><p>&nbsp;&nbsp;&nbsp;</p><p>Memcached会优先使用已超时的记录空间,但即使如此,也会发生追加新纪录时空间不足的情况。此时就要使用名为LeastRecently Used(LRU)机制来分配空间。这就是删除最少使用的记录的机制。因此当memcached的内存空间不足时(无法从slabclass)获取到新空间时,就从最近未使用的记录中搜索,并将空间分配给新的记录。</p><p>Memcached分布式</p><p>Memcached虽然称为“分布式“缓存服务器,但服务器端并没有“分布式”的功能。Memcached的分布式完全是有客户端实现的。现在我们就看一下memcached是怎么实现分布式缓存的。</p><p>例如下面假设memcached服务器有node1~node3三台,应用程序要保存键名为“tokyo”“kanagawa”“chiba”“saitama”“gunma”的数据。</p><p>&nbsp;</p><p>首先向memcached中添加“tokyo”。将“tokyo”传给客户端程序库后,客户端实现的算法就会根据“键”来决定保存数据的memcached服务器。服务器选定后,即命令它保存“tokyo”及其值。</p><p>&nbsp;</p><p>同样,“kanagawa”“chiba”“saitama”“gunma”都是先选择服务器再保存。</p><p>接下来获取保存的数据。获取时也要将要获取的键“tokyo”传递给函数库。函数库通过与数据保存时相同的算法,根据“键”选择服务器。使用的算法相同,就能选中与保存时相同的服务器,然后发送get命令。只要数据没有因为某些原因被删除,就能获得保存的值。</p><p>&nbsp;<img width="412" height="422" alt="分布式缓存-Memcached" src="http://s15.sinaimg.cn/middle/493a8455tbc5e06fbbcde&amp;690"></p><p>这样,将不同的键保存到不同的服务器上,就实现了memcached的分布式。memcached服务器增多后,键就会分散,即使一台memcached服务器发生故障无法连接,也不会影响其他的缓存,系统依然能继续运行。</p><p>Memcached的缓存分布策略:<a href="http://blog.csdn.net/bintime/article/details/6259133" target="_blank">http://blog.csdn.net/bintime/article/details/6259133</a></p><p>ConsistentHashing的简单说明</p><p>Consistent Hashing如下所示:首先求出memcached服务器(节点)的哈希值,并将其配置到0~232的圆(continuum)上。 然后用同样的方法求出存储数据的键的哈希值,并映射到圆上。然后从数据映射到的位置开始顺时针查找,将数据保存到找到的第一个服务器上。如果超过232仍然找不到服务器,就会保存到第一台memcached服务器上。</p><p><img width="518" height="439" alt="分布式缓存-Memcached" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif"></p><p>从上图的状态中添加一台memcached服务器。余数分布式算法由于保存键的服务器会发生巨大变化而影响缓存的命中率,但Consistent Hashing中,只有在continuum上增加服务器的地点逆时针方向的第一台服务器上的键会受到影响。</p><p><img width="518" height="439" alt="分布式缓存-Memcached" src="http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif"></p><p>因此,Consistent Hashing最大限度地抑制了键的重新分布。 而且,有的ConsistentHashing的实现方法还采用了虚拟节点的思想。 使用一般的hash函数的话,服务器的映射地点的分布非常不均匀。因此,使用虚拟节点的思想,为每个物理节点(服务器) 在continuum上分配100~200个点。这样就能抑制分布不均匀,最大限度地减小服务器增减时的缓存重新分布。</p><p>缓存多副本</p><p>缓存多副本主要是用于在缓存数据存放时存储缓存数据的多个副本,以防止缓存失效。缓存失效发生在以下几种情况:</p><ul><li>1.&nbsp;&nbsp;&nbsp;缓存超时被移除(正常失效)</li><li>2.&nbsp;&nbsp;&nbsp;缓存由于存储空间限制被移除(异常失效)</li><li>3.&nbsp;&nbsp;&nbsp;由于缓存节点变化而导致的缓存失效(异常失效)</li></ul><p>在缓存多副本的情况下,需要重新考虑缓存的分布式分布策略。其次缓存的多个副本实际本身是可能的多个读的节点,可以做为分布式的并行读,这是另外一个可以考虑的问题。</p><p>缓存数据的一致性问题</p><p>缓存数据尽量只读,因此缓存本身是不适合大量写和更新操作的数据场景的。对于读的情况下,如果存在数据变化,一种是同时更新缓存和数据库。一种是直接对缓存数据进行失效处理。</p><p> </p>'), (23, 229, '<p> </p><pre><code><span class="hljs-keyword"><span class="hljs-keyword">var</span></span>&nbsp;num&nbsp;=&nbsp;[<span class="hljs-number"><span class="hljs-number">1</span></span>,<span class="hljs-number"><span class="hljs-number">10</span></span>,<span class="hljs-number"><span class="hljs-number">13</span></span>,<span class="hljs-number"><span class="hljs-number">5</span></span>,<span class="hljs-number"><span class="hljs-number">9</span></span>];\r\nnum.<span class="hljs-built_in"><span class="hljs-built_in">sort</span></span>();\r\nalert(num.<span class="hljs-built_in"><span class="hljs-built_in">toString</span></span>());&nbsp;<span class="hljs-comment"><span class="hljs-comment">//错误的排序1,10,13,5,9</span></span>\r\nnum.<span class="hljs-built_in"><span class="hljs-built_in">sort</span></span>(compare);\r\nalert(num.<span class="hljs-built_in"><span class="hljs-built_in">toString</span></span>());&nbsp;<span class="hljs-comment"><span class="hljs-comment">//正确的排序13,10,9,5,1</span></span>\r\n\r\n<span class="hljs-comment"><span class="hljs-comment">//比较函数</span></span>\r\nfunction&nbsp;compare(value1,value2){\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">if</span></span>(value1&nbsp;==&nbsp;value2)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">return</span></span>&nbsp;<span class="hljs-number"><span class="hljs-number">0</span></span>;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">if</span></span>(value1&nbsp;&gt;&nbsp;value2)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">return</span></span>&nbsp;-<span class="hljs-number"><span class="hljs-number">1</span></span>;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">if</span></span>(value1&nbsp;&lt;&nbsp;value2)&nbsp;{\r\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword"><span class="hljs-keyword">return</span></span>&nbsp;<span class="hljs-number"><span class="hljs-number">1</span></span>;\r\n&nbsp;&nbsp;&nbsp;&nbsp;}\r\n}</code></pre><p>&nbsp;</p><p>说明:数组排序sort本身会对数组每一项调用toSring()方法,所以比较数字时,数组中每一项数字都会被转化为为字符串,sort()根据字符串来排序,所以会出现13比5小的情况,正确的做法是使用一个比较函数做为参数</p><p>&nbsp;sort()返回值是经过排序后的数组<br></p><p> </p>'), (20, 226, '<p><a href="/sites/vQZRB3" target="_blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><p> <i>原文</i>&nbsp; <a href="http://blog.csdn.net/magicharvey/article/details/21372813?utm_source=tuicool&amp;utm_medium=referral">http://blog.csdn.net/magicharvey/article/details/21372813</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><pre><code>mysql&gt; select * from test;\r\n+----+-------+------+-------+\r\n| id | name | age | <span class="class"><span class="keyword">class</span> |\r\n+----+-------+------+-------+\r\n| 1 | <span class="title">qiu</span> | 22 | 1 | \r\n| 2 | <span class="title">liu</span> | 42 | 1 | \r\n| 4 | <span class="title">zheng</span> | 20 | 2 | \r\n| 3 | <span class="title">qian</span> | 20 | 2 | \r\n| 0 | <span class="title">wang</span> | 11 | 3 | \r\n| 6 | <span class="title">li</span> | 33 | 3 | \r\n+----+-------+------+-------+\r\n6 <span class="title">rows</span> <span class="title">in</span> <span class="title">set</span> (0.00 <span class="title">sec</span>)</span></code></pre><p>如果想找到每个class里面的最大的age,则需要使用group by和max。</p><p>&nbsp;如下的sql语句,则输出结果有错误:</p><pre><code>mysql&gt; select id,name,max(age),<span class="class"><span class="keyword">class</span> <span class="title">from</span> <span class="title">test</span> <span class="title">group</span> <span class="title">by</span> <span class="title">class</span>;\r\n+----+-------+----------+-------+\r\n| <span class="title">id</span> | <span class="title">name</span> | <span class="title">max</span>(<span class="title">age</span>) | <span class="title">class</span> |\r\n+----+-------+----------+-------+\r\n| 1 | <span class="title">qiu</span> | 42 | 1 | \r\n| 4 | <span class="title">zheng</span> | 20 | 2 | \r\n| 0 | <span class="title">wang</span> | 33 | 3 | \r\n+----+-------+----------+-------+\r\n3 <span class="title">rows</span> <span class="title">in</span> <span class="title">set</span> (0.00 <span class="title">sec</span>)</span></code></pre><p> 虽然找到的age是最大的age,但是与之匹配的用户信息却不是真实的信息,而是group by分组后的第一条记录的基本信息。 </p><p>如果我使用以下的语句进行查找,则可以返回真实的结果。</p><pre><code>mysql&gt; <span class="operator"><span class="keyword">select</span> * <span class="keyword">from</span> (\r\n<span class="indent"> </span>-&gt; <span class="keyword">select</span> * <span class="keyword">from</span> test <span class="keyword">order</span> <span class="keyword">by</span> age <span class="keyword">desc</span>) <span class="keyword">as</span> b\r\n<span class="indent"> </span>-&gt; <span class="keyword">group</span> <span class="keyword">by</span> class;</span>\r\n+<span class="comment">----+-------+------+-------+</span>\r\n| id | name | age | class |\r\n+<span class="comment">----+-------+------+-------+</span>\r\n| 2 | liu | 42 | 1 | \r\n| 4 | zheng | 20 | 2 | \r\n| 6 | li | 33 | 3 | \r\n+<span class="comment">----+-------+------+-------+</span>\r\n3 rows in <span class="operator"><span class="keyword">set</span> (<span class="number">0.00</span> sec)</span></code></pre><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>'), (21, 227, '<p><a href="#">?</a></p><table><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<br>29<br>30<br>31<br>32<br>33<br>34<br>35<br>36<br>37<br>38<br>39<br>40<br>41<br>42<br>43<br>44<br>45<br>46<br>47<br>48<br>49<br>50<br>51<br>52<br>53<br>54<br>55<br></td><td><code class="javascript plain">(</code><code class="javascript keyword">function</code><code class="javascript plain">($) {</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">$.extend({</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">myTime: {</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">/**</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* 当前时间戳</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @return &lt;int&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unix时间戳(秒)&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">*/</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">CurTime: </code><code class="javascript keyword">function</code><code class="javascript plain">(){</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">return</code> <code class="javascript plain">Date.parse(</code><code class="javascript keyword">new</code> <code class="javascript plain">Date())/1000;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">},</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">/**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* 日期 转换为 Unix时间戳 </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @param &lt;string&gt; 2014-01-01 20:20:20&nbsp; 日期格式&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @return &lt;int&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unix时间戳(秒)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">*/</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">DateToUnix: </code><code class="javascript keyword">function</code><code class="javascript plain">(string) {</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">var</code> <code class="javascript plain">f = string.split(</code><code class="javascript string">'' ''</code><code class="javascript plain">, 2);</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">var</code> <code class="javascript plain">d = (f[0] ? f[0] : </code><code class="javascript string">''''</code><code class="javascript plain">).split(</code><code class="javascript string">''-''</code><code class="javascript plain">, 3);</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">var</code> <code class="javascript plain">t = (f[1] ? f[1] : </code><code class="javascript string">''''</code><code class="javascript plain">).split(</code><code class="javascript string">'':''</code><code class="javascript plain">, 3);</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">return</code> <code class="javascript plain">(</code><code class="javascript keyword">new</code> <code class="javascript plain">Date(</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">parseInt(d[0], 10) || </code><code class="javascript keyword">null</code><code class="javascript plain">,</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">(parseInt(d[1], 10) || 1) - 1,</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">parseInt(d[2], 10) || </code><code class="javascript keyword">null</code><code class="javascript plain">,</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">parseInt(t[0], 10) || </code><code class="javascript keyword">null</code><code class="javascript plain">,</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">parseInt(t[1], 10) || </code><code class="javascript keyword">null</code><code class="javascript plain">,</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">parseInt(t[2], 10) || </code><code class="javascript keyword">null</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">)).getTime() / 1000;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">},</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">/**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* 时间戳转换日期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @param &lt;int&gt; unixTime&nbsp;&nbsp;&nbsp; 待时间戳(秒)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @param &lt;bool&gt; isFull&nbsp;&nbsp;&nbsp; 返回完整时间(Y-m-d 或者 Y-m-d H:i:s)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">* @param &lt;int&gt;&nbsp; timeZone&nbsp;&nbsp; 时区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript comments">*/</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">UnixToDate: </code><code class="javascript keyword">function</code><code class="javascript plain">(unixTime, isFull, timeZone) {</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">if</code> <code class="javascript plain">(</code><code class="javascript keyword">typeof</code> <code class="javascript plain">(timeZone) == </code><code class="javascript string">''number''</code><code class="javascript plain">)</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">{</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">unixTime = parseInt(unixTime) + parseInt(timeZone) * 60 * 60;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">}</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">var</code> <code class="javascript plain">time = </code><code class="javascript keyword">new</code> <code class="javascript plain">Date(unixTime * 1000);</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">var</code> <code class="javascript plain">ymdhis = </code><code class="javascript string">""</code><code class="javascript plain">;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += time.getUTCFullYear() + </code><code class="javascript string">"-"</code><code class="javascript plain">;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += (time.getUTCMonth()+1) + </code><code class="javascript string">"-"</code><code class="javascript plain">;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += time.getUTCDate();</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">if</code> <code class="javascript plain">(isFull === </code><code class="javascript keyword">true</code><code class="javascript plain">)</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">{</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += </code><code class="javascript string">" "</code> <code class="javascript plain">+ time.getUTCHours() + </code><code class="javascript string">":"</code><code class="javascript plain">;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += time.getUTCMinutes() + </code><code class="javascript string">":"</code><code class="javascript plain">;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">ymdhis += time.getUTCSeconds();</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">}</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript keyword">return</code> <code class="javascript plain">ymdhis;</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">}</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">}</code><br><code class="javascript spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="javascript plain">});</code><br><code class="javascript plain">})(jQuery); </code><br><br></td></tr></tbody></table><p>  </p><p>使用方法</p><p>console.log($.myTime.DateToUnix(''2014-5-15 20:20:20''));<br>console.log($.myTime.UnixToDate(1325347200));</p>'), (19, 225, '<p>很多朋友在用github管理项目的时候,都是直接使用https url克隆到本地,当然也有有些人使用 SSH url 克隆到本地。然而,为什么绝大多数人会使用https url克隆呢?</p><p>这是因为,使用https url克隆对初学者来说会比较方便,复制https url 然后到 <a href="http://lib.csdn.net/base/git" target="_blank">Git</a> Bash 里面直接用clone命令克隆到本地就好了。而使用 SSH url 克隆却需要在克隆之前先配置和添加好 SSH key 。</p><p>因此,如果你想要使用 SSH url 克隆的话,你必须是这个项目的拥有者。否则你是无法添加 SSH key 的。</p><p>&nbsp;</p><h2>https 和 SSH 的区别:</h2><p><span style="color: rgb(153, 51, 0);">1、</span>前者可以随意克隆github上的项目,而不管是谁的;而后者则是你必须是你要克隆的项目的拥有者或管理员,且需要先添加 SSH key ,否则无法克隆。</p><p><span style="color: rgb(153, 51, 0);">2、</span>https url 在push的时候是需要验证用户名和密码的;而 SSH 在push的时候,是不需要输入用户名的,如果配置SSH key的时候设置了密码,则需要输入密码的,否则直接是不需要输入密码的。</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><h2>在 github 上添加 SSH key 的步骤:</h2><h4>1、首先需要检查你电脑是否已经有 SSH key&nbsp;</h4><p>运行 git Bash 客户端,输入如下代码:</p><pre><code>$ cd ~/<span style="margin: 0px; padding: 0px; line-height: 1.5;">.ssh\r\n$ ls</span></code></pre><p>这两个命令就是检查是否已经存在 id_rsa.pub 或 id_dsa.pub 文件,如果文件已经存在,那么你可以跳过步骤2,直接进入步骤3。</p><p>&nbsp;</p><h4>2、创建一个 SSH key&nbsp;</h4><pre><code>$ ssh-keygen -t rsa -C <span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">"</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;"><EMAIL></span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">"</span></code></pre><p>代码参数含义:</p><p>-t 指定密钥类型,默认是 rsa ,可以省略。<br>-C 设置注释文字,比如邮箱。<br>-f 指定密钥文件存储文件名。</p><p>以上代码省略了 -f 参数,因此,运行上面那条命令后会让你输入一个文件名,用于保存刚才生成的 SSH key 代码,如:</p><pre><code>Generating <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">public</span>/<span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">private</span><span style="margin: 0px; padding: 0px; line-height: 1.5;"> rsa key pair.\r\n# Enter file </span><span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">in</span> which to save the key (/c/Users/you/.ssh/id_rsa): [Press enter]</code></pre><p>当然,你也可以不输入文件名,使用默认文件名(推荐),那么就会生成 id_rsa 和 id_rsa.pub 两个秘钥文件。</p><p>&nbsp;</p><p>接着又会提示你输入两次密码(该密码是你push文件的时候要输入的密码,而不是github管理者的密码),</p><p>当然,你也可以不输入密码,直接按回车。那么push的时候就不需要输入密码,直接提交到github上了,如:</p><pre><code>Enter passphrase (empty <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">for</span><span style="margin: 0px; padding: 0px; line-height: 1.5;"> no passphrase): \r\n# Enter same passphrase again:</span></code></pre><p>接下来,就会显示如下代码提示,如:</p><pre><code>Your identification has been saved <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">in</span> /c/Users/you/.ssh/<span style="margin: 0px; padding: 0px; line-height: 1.5;">id_rsa.\r\n# Your </span><span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">public</span> key has been saved <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">in</span> /c/Users/you/.ssh/<span style="margin: 0px; padding: 0px; line-height: 1.5;">id_rsa.pub.\r\n# The key fingerprint </span><span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">is</span><span style="margin: 0px; padding: 0px; line-height: 1.5;">:\r\n# </span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">01</span>:0f:f4:3b:ca:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">85</span>:d6:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">17</span>:a1:7d:f0:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">68</span>:9d:f0:a2:db <EMAIL></code></pre><p>当你看到上面这段代码的收,那就说明,你的 SSH key 已经创建成功,你只需要添加到github的SSH key上就可以了。</p><p>&nbsp;</p><h4>3、添加你的 SSH key 到 github上面去</h4><p><span style="color: rgb(153, 51, 0);">a、</span>首先你需要拷贝 id_rsa.pub 文件的内容,你可以用编辑器打开文件复制,也可以用git命令复制该文件的内容,如:</p><pre><code>$ clip &lt; ~/.ssh/id_rsa.pub</code></pre><p><span style="color: rgb(153, 51, 0);">b、</span>登录你的github账号,从又上角的设置(&nbsp;<a href="https://github.com/settings" target="_blank">Account Settings</a>&nbsp;)进入,然后点击菜单栏的 SSH key 进入页面添加 SSH key。</p><p><span style="color: rgb(153, 51, 0);">c、</span>点击 Add SSH key 按钮添加一个 SSH key 。把你复制的 SSH key 代码粘贴到 key 所对应的输入框中,记得 SSH key 代码的前后不要留有空格或者回车。当然,上面的 Title 所对应的输入框你也可以输入一个该 SSH key 显示在 github 上的一个别名。默认的会使用你的邮件名称。</p><p>&nbsp;</p><h3>4、测试一下该SSH key</h3><p>在git Bash 中输入以下代码</p><pre><code>$ ssh -T git@github.com</code></pre><p>当你输入以上代码时,会有一段警告代码,如:</p><pre><code>The authenticity of host <span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">github.com (172.16.17.32)</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span> can<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">t be established.</span>\r\n# RSA key fingerprint <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">is</span> <span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">16</span>:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">27</span>:ac:a5:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">76</span>:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">28</span>:2d:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">36</span>:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">63</span>:1b:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">56</span>:4d:eb:df:a6:<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 128); line-height: 1.5;">48</span><span style="margin: 0px; padding: 0px; line-height: 1.5;">.\r\n# Are you sure you want to </span><span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">continue</span> connecting (yes/no)?</code></pre><p>这是正常的,你输入 yes 回车既可。如果你创建 SSH key 的时候设置了密码,接下来就会提示你输入密码,如:</p><pre><code>Enter passphrase <span style="margin: 0px; padding: 0px; color: rgb(0, 0, 255); line-height: 1.5;">for</span> key <span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">/c/Users/Administrator/.ssh/id_rsa</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span>:</code></pre><p>当然如果你密码输错了,会再要求你输入,知道对了为止。</p><p>注意:输入密码时如果输错一个字就会不正确,使用删除键是无法更正的。</p><p>密码正确后你会看到下面这段话,如:</p><pre><code>Hi username! You<span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">''</span><span style="margin: 0px; padding: 0px; color: rgb(128, 0, 0); line-height: 1.5;">ve successfully authenticated, but GitHub does not</span>\r\n# provide shell access.</code></pre><p>如果用户名是正确的,你已经成功设置SSH密钥。如果你看到 “access denied” ,者表示拒绝访问,那么你就需要使用 https 去访问,而不是 SSH 。</p><p>&nbsp;</p><p>如果你有什么疑问或指正,请留言。</p><p>&nbsp;</p><p>产考文档:<a href="https://help.github.com/articles/generating-ssh-keys" rel="nofollow">https://help.github.com/articles/generating-ssh-keys</a></p><p> </p>'), (16, 222, '<p>var intDiff = parseInt(60);//倒计时总秒数量</p><p>function timer(intDiff){ </p><p>&nbsp;&nbsp; window.setInterval(function(){ </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; var day=0, hour=0, minute=0, second=0;//时间默认值 </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(intDiff &gt; 0){</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; day = Math.floor(intDiff / (60 * 60 * 24)); </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hour = Math.floor(intDiff / (60 * 60)) - (day * 24); </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60); </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }</p><p>&nbsp;&nbsp;&nbsp; if (minute &lt;= 9) minute = ''0'' + minute;</p><p>&nbsp;&nbsp;&nbsp; if (second &lt;= 9) second = ''0'' + second; </p><p>&nbsp;&nbsp; $(''#day_show'').html(day+"天"); </p><p>&nbsp;&nbsp; $(''#hour_show'').html(''&lt;s id="h"&gt;&lt;/s&gt;''+hour+''时''); </p><p>&nbsp;&nbsp; $(''#minute_show'').html(''&lt;s&gt;&lt;/s&gt;''+minute+''分''); </p><p>&nbsp;&nbsp; $(''#second_show'').html(''&lt;s&gt;&lt;/s&gt;''+second+''秒''); intDiff--; }, 1000);</p><p>}</p><p>&nbsp;$(function(){ timer(intDiff);}); </p>'), (17, 223, '<p> <a href="http://blog.csdn.net/MONKEY_D_MENG/article/details/6647488" target="_blank">http://blog.csdn.net/MONKEY_D_MENG/article/details/6647488</a></p>'), (18, 224, '<p>&nbsp;Yii Framework使用spl_autoload_register实现类的自动加载,这个很大的方便我们不用每次都要手动的去include一些类和函数。不过这样会导致一些问题,比如说,有一些extension,如,使用taobao,它自己内部也使用了spl_autoload_register来实现自动加载类,由于在框架的执行顺序里面,首先是执行了spl_autoload_register(array(''YiiBase'',''autoload'')),这样会导致smarty里面的spl_autoload_register不会执行,这样就会出现使用taobao过程中,找不到它里面的类。这种情况解决方法有两种</p><p>&nbsp;1. 先卸载yii的,再注册yii的autoload,如以下代码,修改taobao的SDK的 Autoloader.php文件</p><p>&nbsp;&nbsp;spl_autoload_unregister(array(''YiiBase'',''autoload''));</p><p>&nbsp;spl_autoload_register(array($this, "loadClass"));</p><p>&nbsp;spl_autoload_register(array(''YiiBase'',''autoload''));</p><p>不过这种方法是要修改taobao的代码的,这样不利于taobao的升级,这时候,可以考虑使用第二种情况。</p><p>&nbsp;</p><p>2. 优先注册了自己的autoload,如以下代码,是加在index.php里面的。</p><p>require_once(dirname(__FILE__).''/protected/extensions/taobao/TopSdk.php'');</p><p>require_once($yii);</p><p>Yii::createWebApplication($config)-&gt;run();</p><p>&nbsp;</p><p>这样的话,所有的autoload都会优先使用taobao的autoloader,可以避免找不到taobao的类,不过这样会导致一些性能上的小损失。</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; </p><p>&nbsp;</p><p>&nbsp;</p>'), (13, 219, '<h4>create a new repository on the command line</h4><p>echo “# test” &gt;&gt; README.md<br>git init<br>git add README.md<br>git commit -m “first commit”<br>git remote add origin <a href="https://github.com/wuzhc/test.git">https://github.com/wuzhc/test.git</a><br>git push -u origin master</p><h4>push an existing repository from the command line</h4><p>git remote add origin <a href="https://github.com/wuzhc/test.git">https://github.com/wuzhc/test.git</a><br>git push -u origin master</p><h4>import code from another repository</h4><p>You can initialize this repository with code from a Subversion, Mercurial, or TFS project.</p>'), (14, 220, '<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.重启 apache</strong></p><p>  service httpd restrat</p><p>  /etc/init.d/httpd stop</p><p>  /etc/init.d/httpd start</p><p>  <strong>2.重启 mysql</strong></p><p>  service mysql restart</p><p>  /etc/init.d/mysqld stop</p><p>  /etc/init.d/mysqld start</p><p>  <strong>3.重启Nginx</strong></p><p>  service nginx restart</p><p>  /etc/init.d/nginx stop</p><p>  /etc/init.d/nginx start</p>'), (15, 221, '<p><code class="html plain">定义和用法:</code></p><p><code class="html plain">error_reporting() 设置 PHP 的报错级别并返回当前级别。</code></p><p>&nbsp;</p><p><code class="html plain">函数语法:</code></p><p><code class="html plain">error_reporting(report_level)</code></p><p>&nbsp;</p><p><code class="html plain">如果参数 level 未指定,当前报错级别将被返回。下面几项是 level 可能的值:</code></p><p><code class="html plain">值 常量 描述</code></p><p><code class="html plain">1 E_ERROR 致命的运行错误。错误无法恢复,暂停执行脚本。</code></p><p><code class="html plain">2 E_WARNING 运行时警告(非致命性错误)。非致命的运行错误,脚本执行不会停止。</code></p><p><code class="html plain">4 E_PARSE 编译时解析错误。解析错误只由分析器产生。</code></p><p><code class="html plain">8 E_NOTICE 运行时提醒(这些经常是你代码中的bug引起的,也可能是有意的行为造成的。)</code></p><p><code class="html plain">16 E_CORE_ERROR PHP启动时初始化过程中的致命错误。</code></p><p><code class="html plain">32 E_CORE_WARNING PHP启动时初始化过程中的警告(非致命性错)。</code></p><p><code class="html plain">64 E_COMPILE_ERROR 编译时致命性错。这就像由Zend脚本引擎生成了一个E_ERROR。</code></p><p><code class="html plain">128 E_COMPILE_WARNING 编译时警告(非致命性错)。这就像由Zend脚本引擎生成了一个E_WARNING警告。</code></p><p><code class="html plain">256 E_USER_ERROR 用户自定义的错误消息。这就像由使用PHP函数trigger_error(程序员设置E_ERROR)</code></p><p><code class="html plain">512 E_USER_WARNING 用户自定义的警告消息。这就像由使用PHP函数trigger_error(程序员设定的一个E_WARNING警告)</code></p><p><code class="html plain">1024 E_USER_NOTICE 用户自定义的提醒消息。这就像一个由使用PHP函数trigger_error(程序员一个E_NOTICE集)</code></p><p><code class="html plain">2048 E_STRICT 编码标准化警告。允许PHP建议如何修改代码以确保最佳的互操作性向前兼容性。</code></p><p><code class="html plain">4096 E_RECOVERABLE_ERROR 开捕致命错误。这就像一个E_ERROR,但可以通过用户定义的处理捕获(又见set_error_handler())</code></p><p><code class="html plain">8191 E_ALL 所有的错误和警告(不包括 E_STRICT) (E_STRICT will be part of E_ALL as of PHP 6.0)</code></p><p>&nbsp;</p><p>例子:<br>任意数目的以上选项都可以用“或”来连接(用 OR 或 |),这样可以报告所有需要的各级别错误。<br>例如,下面的代码关闭了用户自定义的错误和警告,执行了某些操作,然后恢复到原始的报错级别:</p><p><code class="php plain">&lt;?php</code></p><p><code class="php comments">//禁用错误报告</code></p><p><code class="php functions">error_reporting</code><code class="php plain">(0);</code></p><p>&nbsp;<code class="php comments">//报告运行时错误</code></p><p><code class="php functions">error_reporting</code><code class="php plain">(E_ERROR | E_WARNING | E_PARSE);</code></p><p><code class="php comments">//报告所有错误</code></p><p><code class="php functions">error_reporting</code><code class="php plain">(E_ALL);</code></p><p><code class="php plain">?&gt;</code></p>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (26, 232, '<blockquote><p>原文:SamarRizvi&nbsp;</p><p>译文:ictlyh</p><p>网址:linux.cn/article-5868-1.html</p></blockquote><p><span style="color: rgb(255, 0, 0);"><strong>简介</strong></span></p><p>要提供互联网服务,当你在开发代码的时候必须时刻保持安全意识。可能大部分 PHP 脚本都对安全问题都不在意,这很大程度上是因为有大量的无经验程序员在使用这门语言。但是,没有理由让你因为对你的代码的不确定性而导致不一致的安全策略。当你在服务器上放任何涉及到钱的东西时,就有可能会有人尝试破解它。创建一个论坛程序或者任何形式的购物车,被攻击的可能性就上升到了无穷大。</p><p><span style="color: rgb(255, 0, 0);"><strong>背景</strong></span></p><p>为了确保你的 web 内容安全,这里有一些常规的安全准则:</p><p><strong>别相信表单</strong></p><p>攻击表单很简单。通过使用一个简单的 JavaScript 技巧,你可以限制你的表单只允许在评分域中填写 1 到 5 的数字。如果有人关闭了他们浏览器的 JavaScript 功能或者提交自定义的表单数据,你客户端的验证就失败了。</p><p>用户主要通过表单参数和你的脚本交互,因此他们是最大的安全风险。你应该学到什么呢?在 PHP 脚本中,总是要验证 传递给任何 PHP 脚本的数据。在本文中,我们向你演示了如何分析和防范跨站脚本(XSS)攻击,它可能会劫持用户凭据(甚至更严重)。你也会看到如何防止会玷污或毁坏你数据的 MySQL 注入攻击。</p><p><strong>别相信用户</strong></p><p>假定你网站获取的每一份数据都充满了有害的代码。清理每一部分,即便你相信没有人会尝试攻击你的站点。</p><p><strong>关闭全局变量</strong></p><p>你可能会有的最大安全漏洞是启用了 register_globals 配置参数。幸运的是,PHP 4.2 及以后版本默认关闭了这个配置。如果打开了 register_globals,你可以在你的 php.ini 文件中通过改变 register_globals 变量为 Off 关闭该功能:</p><blockquote><p>register_globals = Off</p></blockquote><p>新手程序员觉得注册全局变量很方便,但他们不会意识到这个设置有多么危险。一个启用了全局变量的服务器会自动为全局变量赋任何形式的参数。为了了解它如何工作以及为什么有危险,让我们来看一个例子。</p><p>假设你有一个称为 process.php 的脚本,它会向你的数据库插入表单数据。初始的表单像下面这样:</p><blockquote><p>&lt;input name="username" type="text" size="15" maxlength="64"&gt;</p></blockquote><p>运行 process.php 的时候,启用了注册全局变量的 PHP 会将该参数赋值到 $username 变量。这会比通过 $_POST[‘username’]或 $_GET[‘username’] 访问它节省击键次数。不幸的是,这也会给你留下安全问题,因为 PHP 会设置该变量的值为通过 GET 或 POST 的参数发送到脚本的任何值,如果你没有显示地初始化该变量并且你不希望任何人去操作它,这就会有一个大问题。</p><p>看下面的脚本,假如 $authorized 变量的值为 true,它会给用户显示通过验证的数据。正常情况下,只有当用户正确通过了这个假想的 authenticated_user() 函数验证,$authorized 变量的值才会被设置为真。但是如果你启用了 register_globals,任何人都可以发送一个 GET 参数,例如 authorized=1 去覆盖它:</p><blockquote><p><span style="">&lt;?php</span></p><p><span style="">// Define $authorized = true only if user is authenticated</span></p><p>if<span style=""> </span><span style="">(</span><span style="">authenticated_user</span><span style="">())</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$authorized</span><span style=""> = </span><span style="">true</span><span style="">;</span></p><p><span style="">}</span></p><p><span style="">?&gt;</span></p></blockquote><p>这个故事的寓意是,你应该从预定义的服务器变量中获取表单数据。所有通过 post 表单传递到你 web 页面的数据都会自动保存到一个称为 $_POST 的大数组中,所有的 GET 数据都保存在 $_GET 大数组中。文件上传信息保存在一个称为 $_FILES 的特殊数据中。另外,还有一个称为 $_REQUEST 的复合变量。</p><p>要从一个 POST 方法表单中访问 username 字段,可以使用 $_POST[‘username’]。如果 username 在 URL 中就使用$_GET[‘username’]。如果你不确定值来自哪里,用 $_REQUEST[‘username’]。</p><blockquote><p><span style="">&lt;?php</span></p><p><span style="">$post_value</span><span style=""> = </span><span style="">$_POST</span><span style="">[</span><span style="">''post_value''</span><span style="">];</span></p><p><span style="">$get_value</span><span style=""> = </span><span style="">$_GET</span><span style="">[</span><span style="">''get_value''</span><span style="">];</span></p><p><span style="">$some_variable</span><span style=""> = </span><span style="">$_REQUEST</span><span style="">[</span><span style="">''some_value''</span><span style="">];</span><span style=""> </span></p><p><span style="">?&gt;</span></p></blockquote><p>$_REQUEST 是 $_GET、$_POST、和 $_COOKIE 数组的结合。如果你有两个或多个值有相同的参数名称,注意 PHP 会使用哪个。默认的顺序是 cookie、POST、然后是 GET。</p><p><strong>推荐安全配置选项</strong></p><p>这里有几个会影响安全功能的 PHP 配置设置。下面是一些显然应该用于生产服务器的:</p><ul><li><p>register_globals 设置为 off</p></li><li><p>safe_mode 设置为 off</p></li><li><p>error_reporting 设置为 off。如果出现错误了,这会向用户浏览器发送可见的错误报告信息。对于生产服务器,使用错误日志代替。开发服务器如果在防火墙后面就可以启用错误日志。(LCTT 译注:此处据原文逻辑和常识,应该是“开发服务器如果在防火墙后面就可以启用错误报告,即 on。”)</p></li><li><p>停用这些函数:system()、exec()、passthru()、shell_exec()、proc_open()、和 popen()。</p></li><li><p>open_basedir 为 /tmp(以便保存会话信息)目录和 web 根目录,以便脚本不能访问这些选定区域外的文件。</p></li><li><p>expose_php 设置为 off。该功能会向 Apache 头添加包含版本号的 PHP 签名。</p></li><li><p>allow_url_fopen 设置为 off。如果你能够注意你代码中访问文件的方式-也就是你验证所有输入参数,这并不严格需要。</p></li><li><p>allow_url_include 设置为 off。对于任何人来说,实在没有明智的理由会想要访问通过 HTTP 包含的文件。</p></li></ul><p>一般来说,如果你发现想要使用这些功能的代码,你就不应该相信它。尤其要小心会使用类似 system() 函数的代码-它几乎肯定有缺陷。</p><p>启用了这些设置后,让我们来看看一些特定的攻击以及能帮助你保护你服务器的方法。</p><p><span style="color: rgb(255, 0, 0);"><strong>SQL 注入攻击</strong></span></p><p>由于 PHP 传递到 MySQL 数据库的查询语句是用强大的 SQL 编程语言编写的,就有了某些人通过在 web 查询参数中使用 MySQL 语句尝试 SQL 注入攻击的风险。通过在参数中插入有害的 SQL 代码片段,攻击者会尝试进入(或破坏)你的服务器。</p><p>假如说你有一个最终会放入变量 $product 的表单参数,你使用了类似下面的 SQL 语句:</p><blockquote><p>$sql = "select * from pinfo where product = ''$product''";</p></blockquote><p>如果参数是直接从表单中获得的,应该使用 PHP 自带的数据库特定转义函数,类似:</p><blockquote><p><span style="">$</span><span style="">sql</span><span style=""> = </span><span style="">''Select * from pinfo where product = ''"'' </span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql_real_escape_string($product) . ''"</span>''<span style="">;</span></p></blockquote><p>如果不这样做的话,有人也许会把下面的代码段放到表单参数中:</p><blockquote><p>39''; DROP pinfo; SELECT ''FOO</p></blockquote><p>那么 $sql 的结果就是:</p><blockquote><p>select product from pinfo where product = ''39''; DROP pinfo; SELECT ''FOO''</p></blockquote><p>由于分号是 MySQL 的语句分隔符,数据库会运行下面三条语句:</p><blockquote><p><span style="">select *</span><span style=""> </span><span style="">from pinfo where </span><span style="">product</span><span style=""> = </span><span style="">''39''</span></p><p><span style="">DROP pinfo</span></p><p>SELECT<span style=""> </span><span style="">''FOO''</span></p></blockquote><p>好了,你丢失了你的表。</p><p>注意实际上 PHP 和 MySQL 不会运行这种特殊语法,因为 mysql_query() 函数只允许每个请求处理一个语句。但是,一个子查询仍然会生效。</p><p>要防止 SQL 注入攻击,做这两件事:</p><ul><li><p>总是验证所有参数。例如,如果需要一个数字,就要确保它是一个数字。</p></li><li><p>总是对数据使用 mysql_real_escape_string() 函数转义数据中的任何引号和双引号。</p></li></ul><p>注意:要自动转义任何表单数据,可以启用魔术引号(Magic Quotes)。</p><p>一些 MySQL 破坏可以通过限制 MySQL 用户权限避免。任何 MySQL 账户可以限制为只允许对选定的表进行特定类型的查询。例如,你可以创建只能选择行的 MySQL 用户。但是,这对于动态数据并不十分有用,另外,如果你有敏感的用户信息,可能某些人能访问其中一些数据,但你并不希望如此。例如,一个访问账户数据的用户可能会尝试注入访问另一个人的账户号码的代码,而不是为当前会话指定的号码。</p><p><span style="color: rgb(255, 0, 0);"><strong>防止基本的 XSS 攻击</strong></span></p><p>XSS 表示跨站脚本。不像大部分攻击,该漏洞发生在客户端。XSS 最常见的基本形式是在用户提交的内容中放入 JavaScript 以便偷取用户 cookie 中的数据。由于大部分站点使用 cookie 和 session 验证访客,偷取的数据可用于模拟该用户-如果是一个常见的用户账户就会深受麻烦,如果是管理员账户甚至是彻底的惨败。如果你不在站点中使用 cookie 和 session ID,你的用户就不容易被攻击,但你仍然应该明白这种攻击是如何工作的。</p><p>不像 MySQL 注入攻击,XSS 攻击很难预防。Yahoo、eBay、Apple、以及 Microsoft 都曾经受 XSS 影响。尽管攻击不包含 PHP,但你可以使用 PHP 来剥离用户数据以防止攻击。为了防止 XSS 攻击,你应该限制和过滤用户提交给你站点的数据。正是因为这个原因,大部分在线公告板都不允许在提交的数据中使用 HTML 标签,而是用自定义的标签格式代替,例如 [b] 和 [linkto]。</p><p>让我们来看一个如何防止这类攻击的简单脚本。对于更完善的解决办法,可以使用 SafeHTML,本文的后面部分会讨论到。</p><blockquote><p><span style="">function</span><span style=""> </span><span style="">transform_HTML</span><span style="">(</span><span style="">$string</span><span style="">,</span><span style=""> </span><span style="">$length</span><span style=""> = </span><span style="">null</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">// Helps prevent XSS attacks</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">// Remove dead space.</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">trim</span><span style="">(</span><span style="">$string</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">// Prevent potential Unicode codec problems.</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">utf8_decode</span><span style="">(</span><span style="">$string</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">// HTMLize HTML-specific characters.</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">htmlentities</span><span style="">(</span><span style="">$string</span><span style="">,</span><span style=""> </span><span style="">ENT_NOQUOTES</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">str_replace</span><span style="">(</span><span style="">"#"</span><span style="">,</span><span style=""> </span><span style="">"#"</span><span style="">,</span><span style=""> </span><span style="">$string</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">str_replace</span><span style="">(</span><span style="">"%"</span><span style="">,</span><span style=""> </span><span style="">"%"</span><span style="">,</span><span style=""> </span><span style="">$string</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$length</span><span style=""> = </span><span style="">intval</span><span style="">(</span><span style="">$length</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span>if<span style=""> </span><span style="">(</span><span style="">$length</span><span style=""> &gt; </span><span style="">0</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$string</span><span style=""> = </span><span style="">substr</span><span style="">(</span><span style="">$string</span><span style="">,</span><span style=""> </span><span style="">0</span><span style="">,</span><span style=""> </span><span style="">$length</span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">}</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">return</span><span style=""> </span><span style="">$string</span><span style="">;</span></p><p><span style="">}</span></p></blockquote><p>这个函数将 HTML 特定的字符转换为 HTML 字面字符。一个浏览器对任何通过这个脚本的 HTML 以非标记的文本呈现。例如,考虑下面的 HTML 字符串:</p><blockquote><p>&lt;STRONG&gt;Bold Text&lt;/STRONG&gt;</p></blockquote><p>一般情况下,HTML 会显示为:Bold Text</p><p>但是,通过 transform_HTML() 后,它就像原始输入一样呈现。原因是处理的字符串中的标签字符串转换为 HTML 实体。transform_HTML() 的结果字符串的纯文本看起来像下面这样:</p><blockquote><p>&lt;STRONG&gt;Bold Text&lt;/STRONG&gt;</p></blockquote><p>该函数的实质是 htmlentities() 函数调用,它会将 &lt;、&gt;、和 &amp; 转换为 &amp;lt;、&amp;gt;、和 &amp;amp;。尽管这会处理大部分的普通攻击,但有经验的 XSS 攻击者有另一种把戏:用十六进制或 UTF-8 编码恶意脚本,而不是采用普通的 ASCII 文本,从而希望能绕过你的过滤器。他们可以在 URL 的 GET 变量中发送代码,告诉浏览器,“这是十六进制代码,你能帮我运行吗?” 一个十六进制例子看起来像这样:</p><blockquote><p>&lt;a href="<a href="http://host/a.php?variable=%22%3e" rel="nofollow">http://host/a.php?variable=%22%3e</a> %3c%53%43%52%49%50%54%3e%44%6f%73%6f%6d%65%74%68%69%6e%67%6d%61%6c%69%63%69%6f%75%73%3c%2f%53%43%52%49%50%54%3e"&gt;</p></blockquote><p>浏览器渲染这个信息的时候,结果就是:</p><blockquote><p>&lt;a href="<a href="http://host/a.php?variable=" rel="nofollow">http://host/a.php?variable=</a>"&gt; &lt;SCRIPT&gt;Dosomethingmalicious&lt;/SCRIPT&gt;</p></blockquote><p>为了防止这种情况,transform_HTML() 采用额外的步骤把 # 和 % 符号转换为它们的实体,从而避免十六进制攻击,并转换 UTF-8 编码的数据。</p><p>最后,为了防止某些人用很长的输入超载字符串从而导致某些东西崩溃,你可以添加一个可选的 $length 参数来截取你指定最大长度的字符串。</p><p><strong>使用 SafeHTML</strong></p><p>之前脚本的问题比较简单,它不允许任何类型的用户标记。不幸的是,这里有上百种方法能使 JavaScript 跳过用户的过滤器,并且要从用户输入中剥离全部 HTML,还没有方法可以防止这种情况。</p><p>当前,没有任何一个脚本能保证无法被破解,尽管有一些确实比大部分要好。有白名单和黑名单两种方法加固安全,白名单比较简单而且更加有效。</p><p>一个白名单解决方案是 PixelApes 的 SafeHTML 反跨站脚本解析器。</p><p>SafeHTML 能识别有效 HTML,能追踪并剥离任何危险标签。它用另一个称为 HTMLSax 的软件包进行解析。</p><p>按照下面步骤安装和使用 SafeHTML:</p><ol><li><p>到 <a href="http://pixel-apes.com/safehtml/?page=safehtml" rel="nofollow">http://pixel-apes.com/safehtml/?page=safehtml</a> 下载最新版本的 SafeHTML。</p></li><li><p>把文件放到你服务器的类文件夹。该文件夹包括 SafeHTML 和 HTMLSax 功能所需的所有东西。</p></li><li><p>在脚本中 include SafeHTML 类文件(safehtml.php)。</p></li><li><p>创建一个名为 $safehtml 的新 SafeHTML 对象。</p></li><li><p>用 $safehtml-&gt;parse() 方法清理你的数据。</p></li></ol><p>这是一个完整的例子:</p><blockquote><p><span style="">&lt;?php</span></p><p><span style="">/* If you''re storing the HTMLSax3.php in the /classes directory, along</span></p><p><span style="">&nbsp;&nbsp; with the safehtml.php script, define XML_HTMLSAX3 as a null string. */</span></p><p><span style="">define</span><span style="">(</span>XML_HTMLSAX3<span style="">,</span><span style=""> </span><span style="">''''</span><span style="">);</span></p><p><span style="">// Include the class file.</span></p><p><span style="">require_once</span><span style="">(</span><span style="">''classes/safehtml.php''</span><span style="">);</span></p><p><span style="">// Define some sample bad code.</span></p><p><span style="">$data</span><span style=""> = </span><span style="">"This data would raise an alert &lt;script&gt;alert(''XSS Attack'')&lt;/script&gt;"</span><span style="">;</span></p><p><span style="">// Create a safehtml object.</span></p><p><span style="">$safehtml</span><span style=""> = </span>new<span style=""> </span><span style="">safehtml</span><span style="">();</span></p><p><span style="">// Parse and sanitize the data.</span></p><p><span style="">$safe_data</span><span style=""> = </span><span style="">$safehtml</span><span style="">-&gt;</span><span style="">parse</span><span style="">(</span><span style="">$data</span><span style="">);</span></p><p><span style="">// Display result.</span></p><p><span style="">echo</span><span style=""> </span><span style="">''The sanitized data is &lt;br /&gt;''</span><span style=""> </span><span style="">.</span><span style=""> </span><span style="">$safe_data</span><span style="">;</span></p><p><span style="">?&gt;</span></p></blockquote><p>如果你想清理脚本中的任何其它数据,你不需要创建一个新的对象;在你的整个脚本中只需要使用 $safehtml-&gt;parse() 方法。</p><p><strong>什么可能会出现问题?</strong></p><p>你可能犯的最大错误是假设这个类能完全避免 XSS 攻击。SafeHTML 是一个相当复杂的脚本,几乎能检查所有事情,但没有什么是能保证的。你仍然需要对你的站点做参数验证。例如,该类不能检查给定变量的长度以确保能适应数据库的字段。它也不检查缓冲溢出问题。</p><p>XSS 攻击者很有创造力,他们使用各种各样的方法来尝试达到他们的目标。可以阅读 RSnake 的 XSS 教程<a href="http://ha.ckers.org/xss.html" rel="nofollow">http://ha.ckers.org/xss.html</a> ,看一下这里有多少种方法尝试使代码跳过过滤器。SafeHTML 项目有很好的程序员一直在尝试阻止 XSS 攻击,但无法保证某些人不会想起一些奇怪和新奇的方法来跳过过滤器。</p><p>注意:XSS 攻击严重影响的一个例子 <a href="http://namb.la/popular/tech.html" rel="nofollow">http://namb.la/popular/tech.html</a>,其中显示了如何一步一步创建一个让 MySpace 服务器过载的 JavaScript XSS 蠕虫。</p><p><span style="color: rgb(255, 0, 0);"><strong>用单向哈希保护数据</strong></span></p><p>该脚本对输入的数据进行单向转换,换句话说,它能对某人的密码产生哈希签名,但不能解码获得原始密码。为什么你希望这样呢?应用程序会存储密码。一个管理员不需要知道用户的密码,事实上,只有用户知道他/她自己的密码是个好主意。系统(也仅有系统)应该能识别一个正确的密码;这是 Unix 多年来的密码安全模型。单向密码安全按照下面的方式工作:</p><ol><li><p>当一个用户或管理员创建或更改一个账户密码时,系统对密码进行哈希并保存结果。主机系统会丢弃明文密码。</p></li><li><p>当用户通过任何方式登录到系统时,再次对输入的密码进行哈希。</p></li><li><p>主机系统丢弃输入的明文密码。</p></li><li><p>当前新哈希的密码和之前保存的哈希相比较。</p></li><li><p>如果哈希的密码相匹配,系统就会授予访问权限。</p></li></ol><p>主机系统完成这些并不需要知道原始密码;事实上,原始密码完全无所谓。一个副作用是,如果某人侵入系统并盗取了密码数据库,入侵者会获得很多哈希后的密码,但无法把它们反向转换为原始密码。当然,给足够时间、计算能力,以及弱用户密码,一个攻击者还是有可能采用字典攻击找出密码。因此,别轻易让人碰你的密码数据库,如果确实有人这样做了,让每个用户更改他们的密码。</p><p><strong>加密 Vs 哈希</strong></p><p>技术上来来说,哈希过程并不是加密。哈希和加密是不同的,这有两个理由:</p><p>不像加密,哈希数据不能被解密。</p><p>是有可能(但非常罕见)两个不同的字符串会产生相同的哈希。并不能保证哈希是唯一的,因此别像数据库中的唯一键那样使用哈希。</p><blockquote><p><span style="">function</span><span style=""> </span><span style="">hash_ish</span><span style="">($</span><span style="">string</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span>return<span style=""> </span><span style="">md5</span><span style="">($</span><span style="">string</span><span style="">);</span></p><p><span style="">}</span></p></blockquote><p>上面的 md5() 函数基于 RSA 数据安全公司的消息摘要算法(即 MD5)返回一个由 32 个字符组成的十六进制串。然后你可以将那个 32 位字符串插入到数据库中和另一个 md5 字符串相比较,或者直接用这 32 个字符。</p><p><strong>破解脚本</strong></p><p>几乎不可能解密 MD5 数据。或者说很难。但是,你仍然需要好的密码,因为用一整个字典生成哈希数据库仍然很简单。有一些在线 MD5 字典,当你输入 06d80eb0c50b49a509b49f2424e8c805 后会得到结果 “dog”。因此,尽管技术上 MD5 不能被解密,这里仍然有漏洞,如果某人获得了你的密码数据库,你可以肯定他们肯定会使用 MD5 字典破译。因此,当你创建基于密码的系统的时候尤其要注意密码长度(最小 6 个字符,8 个或许会更好)和包括字母和数字。并确保这个密码不在字典中。</p><p><span style="color: rgb(255, 0, 0);"><strong>用 Mcrypt 加密数据</strong></span></p><p>如果你不需要以可阅读形式查看密码,采用 MD5 就足够了。不幸的是,这里并不总是有可选项,如果你提供以加密形式存储某人的信用卡信息,你可能需要在后面的某个地方进行解密。</p><p>最早的一个解决方案是 Mcrypt 模块,这是一个用于允许 PHP 高速加密的插件。Mcrypt 库提供了超过 30 种用于加密的计算方法,并且提供口令确保只有你(或者你的用户)可以解密数据。</p><p>让我们来看看使用方法。下面的脚本包含了使用 Mcrypt 加密和解密数据的函数:</p><blockquote><p><span style="">&lt;?php</span></p><p><span style="">$data</span><span style=""> = </span><span style="">"Stuff you want encrypted"</span><span style="">;</span></p><p><span style="">$key</span><span style=""> = </span><span style="">"Secret passphrase used to encrypt your data"</span><span style="">;</span></p><p><span style="">$cipher</span><span style=""> = </span><span style="">"MCRYPT_SERPENT_256"</span><span style="">;</span></p><p><span style="">$mode</span><span style=""> = </span><span style="">"MCRYPT_MODE_CBC"</span><span style="">;</span></p><p><span style="">function</span><span style=""> </span><span style="">encrypt</span><span style="">(</span><span style="">$data</span><span style="">,</span><span style=""> </span><span style="">$key</span><span style="">,</span><span style=""> </span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">// Encrypt data</span></p><p><span style="">return</span><span style=""> </span><span style="">(</span><span style="">string</span><span style="">)</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">base64_encode</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">(</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">mcrypt_encrypt</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">(</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$cipher</span><span style="">,</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">substr</span><span style="">(</span><span style="">md5</span><span style="">(</span><span style="">$key</span><span style="">),</span><span style="">0</span><span style="">,</span><span style="">mcrypt_get_key_size</span><span style="">(</span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">)),</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$data</span><span style="">,</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$mode</span><span style="">,</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">substr</span><span style="">(</span><span style="">md5</span><span style="">(</span><span style="">$key</span><span style="">),</span><span style="">0</span><span style="">,</span><span style="">mcrypt_get_block_size</span><span style="">(</span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">))</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">)</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">);</span></p><p><span style="">}</span></p><p><span style="">function</span><span style=""> </span><span style="">decrypt</span><span style="">(</span><span style="">$data</span><span style="">,</span><span style=""> </span><span style="">$key</span><span style="">,</span><span style=""> </span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">// Decrypt data</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">return</span><span style=""> </span><span style="">(</span><span style="">string</span><span style="">)</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">mcrypt_decrypt</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">(</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$cipher</span><span style="">,</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">substr</span><span style="">(</span><span style="">md5</span><span style="">(</span><span style="">$key</span><span style="">),</span><span style="">0</span><span style="">,</span><span style="">mcrypt_get_key_size</span><span style="">(</span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">)),</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">base64_decode</span><span style="">(</span><span style="">$data</span><span style="">),</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$mode</span><span style="">,</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">substr</span><span style="">(</span><span style="">md5</span><span style="">(</span><span style="">$key</span><span style="">),</span><span style="">0</span><span style="">,</span><span style="">mcrypt_get_block_size</span><span style="">(</span><span style="">$cipher</span><span style="">,</span><span style=""> </span><span style="">$mode</span><span style="">))</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">);</span></p><p><span style="">}</span></p><p><span style="">?&gt;</span></p></blockquote><p>mcrypt() 函数需要几个信息:</p><ul><li><p>需要加密的数据</p></li><li><p>用于加密和解锁数据的口令,也称为键。</p></li><li><p>用于加密数据的计算方法,也就是用于加密数据的算法。该脚本使用了 MCRYPT_SERPENT_256,但你可以从很多算法中选择,包括 MCRYPT_TWOFISH192、MCRYPT_RC2、MCRYPT_DES、和 MCRYPT_LOKI97。</p></li><li><p>加密数据的模式。这里有几个你可以使用的模式,包括电子密码本(Electronic Codebook) 和加密反馈(Cipher Feedback)。该脚本使用 MCRYPT_MODE_CBC 密码块链接。</p></li><li><p>一个 初始化向量-也称为 IV 或者种子,用于为加密算法设置种子的额外二进制位。也就是使算法更难于破解的额外信息。</p></li><li><p>键和 IV 字符串的长度,这可能随着加密和块而不同。使用 mcrypt_get_key_size() 和 mcrypt_get_block_size() 函数获取合适的长度;然后用 substr() 函数将键的值截取为合适的长度。(如果键的长度比要求的短,别担心,Mcrypt 会用 0 填充。)</p></li></ul><p>如果有人窃取了你的数据和短语,他们只能一个个尝试加密算法直到找到正确的那一个。因此,在使用它之前我们通过对键使用md5() 函数增加安全,就算他们获取了数据和短语,入侵者也不能获得想要的东西。</p><p>入侵者同时需要函数,数据和口令,如果真是如此,他们可能获得了对你服务器的完整访问,你只能大清洗了。</p><p>这里还有一个数据存储格式的小问题。Mcrypt 以难懂的二进制形式返回加密后的数据,这使得当你将其存储到 MySQL 字段的时候可能出现可怕错误。因此,我们使用 base64encode() 和 base64decode() 函数转换为和 SQL 兼容的字母格式和可检索行。</p><p><strong>破解脚本</strong></p><p>除了实验多种加密方法,你还可以在脚本中添加一些便利。例如,不用每次都提供键和模式,而是在包含的文件中声明为全局常量。</p><p><span style="color: rgb(255, 0, 0);"><strong>生成随机密码</strong></span></p><p>随机(但难以猜测)字符串在用户安全中很重要。例如,如果某人丢失了密码并且你使用 MD5 哈希,你不可能,也不希望查找回来。而是应该生成一个安全的随机密码并发送给用户。为了访问你站点的服务,另外一个用于生成随机数字的应用程序会创建有效链接。下面是创建密码的一个函数:</p><blockquote><p><span style="">&lt;?php</span></p><p><span style=""> </span><span style="">function</span><span style=""> </span><span style="">make_password</span><span style="">(</span><span style="">$num_chars</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span>if<span style=""> </span><span style="">((</span><span style="">is_numeric</span><span style="">(</span><span style="">$num_chars</span><span style="">))</span><span style=""> &amp;&amp;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">(</span><span style="">$num_chars</span><span style=""> &gt; </span><span style="">0</span><span style="">)</span><span style=""> &amp;&amp;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">(</span><span style="">! </span><span style="">is_null</span><span style="">(</span><span style="">$num_chars</span><span style="">)))</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$password</span><span style=""> = </span><span style="">''''</span><span style="">;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$accepted_chars</span><span style=""> = </span><span style="">''abcdefghijklmnopqrstuvwxyz1234567890''</span><span style="">;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">// Seed the generator if necessary.</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">srand</span><span style="">(((</span><span style="">int</span><span style="">)((</span><span style="">double</span><span style="">)</span><span style="">microtime</span><span style="">()</span><span style="">*</span><span style="">1000003</span><span style="">))</span><span style=""> </span><span style="">);</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>for<span style=""> </span><span style="">(</span><span style="">$i</span><span style="">=</span><span style="">0</span><span style="">;</span><span style=""> </span><span style="">$i</span><span style="">&lt;=</span><span style="">$num_chars</span><span style="">;</span><span style=""> </span><span style="">$i</span><span style="">++</span><span style="">)</span><span style=""> </span><span style="">{</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$random_number</span><span style=""> = </span><span style="">rand</span><span style="">(</span><span style="">0</span><span style="">,</span><span style=""> </span><span style="">(</span><span style="">strlen</span><span style="">(</span><span style="">$accepted_chars</span><span style="">)</span><span style=""> -</span><span style="">1</span><span style="">));</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">$password</span><span style=""> </span><span style="">.</span><span style="">= </span><span style="">$accepted_chars</span><span style="">[</span><span style="">$random_number</span><span style="">]</span><span style=""> </span><span style="">;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">}</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="">return</span><span style=""> </span><span style="">$password</span><span style="">;</span></p><p><span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="">}</span></p><p><span style="">}</span></p><p><span style="">?&gt;</span></p></blockquote><p><strong>使用脚本</strong></p><p>make_password() 函数返回一个字符串,因此你需要做的就是提供字符串的长度作为参数:</p><blockquote><p><span style="">&lt;?php</span></p><p><span style="">$fifteen_character_password</span><span style=""> = </span><span style="">make_password</span><span style="">(</span><span style="">15</span><span style="">);</span></p><p><span style="">?&gt;</span></p></blockquote><p>函数按照下面步骤工作:</p><ul><li><p>函数确保 $num_chars 是非零的正整数。</p></li><li><p>函数初始化 $accepted_chars 变量为密码可能包含的字符列表。该脚本使用所有小写字母和数字 0 到 9,但你可以使用你喜欢的任何字符集合。(LCTT 译注:有时候为了便于肉眼识别,你可以将其中的 0 和 O,1 和 l 之类的都去掉。)</p></li><li><p>随机数生成器需要一个种子,从而获得一系列类随机值(PHP 4.2 及之后版本中并不需要,会自动播种)。</p></li><li><p>函数循环 $num_chars 次,每次迭代生成密码中的一个字符。</p></li><li><p>对于每个新字符,脚本查看 $accepted_chars 的长度,选择 0 和长度之间的一个数字,然后添加 $accepted_chars中该数字为索引值的字符到 $password。</p></li><li><p>循环结束后,函数返回 $password。</p></li></ul>'), (27, 233, '<p>使用关键字 <span style="color: rgb(0, 128, 0);"><strong>typedef</strong></span> 可以为类型起一个新的别名,语法格式为:typedef &nbsp;oldName &nbsp;newName;</p><p>typedef char ARRAY20[20];表示 ARRAY20 是类型<code>char [20]</code>的别名</p><p>它等价于:</p><p> char a1[20], a2[20], s1[20], s2[20];</p><p>C语言允许为一个数据类型起一个新的别名,就像给人起“绰号”一样。</p><p>起别名的目的不是为了提高程序运行效率,而是为了编码方便。例如有一个结构体的名字是 stu,要想定义一个结构体变量就得这样写:</p><p> struct stu stu1;</p><p>struct 看起来就是多余的,但不写又会报错。如果为 struct stu 起了一个别名 STU,书写起来就简单了:</p><p> STU stu1;</p><p>这种写法更加简练,意义也非常明确,不管是在标准头文件中还是以后的编程实践中,都会大量使用这种别名。</p><p>使用关键字 <span style="color: rgb(0, 128, 0);"><strong>typedef</strong></span> 可以为类型起一个新的别名,语法格式为:</p><p> typedef &nbsp;oldName &nbsp;newName;</p><p>oldName 是类型原来的名字,newName 是类型新的名字。例如:</p><pre><code><ol class="snippet-num"><li><span class="sh_keyword">typedef</span> <span class="sh_type">int</span> INTEGER<span class="sh_symbol">;</span></li><li><span class="sh_usertype">INTEGER</span><span class="sh_normal"> </span>a<span class="sh_symbol">,</span> b<span class="sh_symbol">;</span></li><li>a <span class="sh_symbol">=</span> <span class="sh_number">1</span><span class="sh_symbol">;</span></li><li>b <span class="sh_symbol">=</span> <span class="sh_number">2</span><span class="sh_symbol">;</span></li></ol></code></pre><p><code>INTEGER a, b;</code>等效于<code>int a, b;</code>。</p><p>typedef 还可以给数组、指针、结构体等类型定义别名。先来看一个给数组类型定义别名的例子:</p><p> typedef char ARRAY20[20];</p><p>表示 ARRAY20 是类型<code>char [20]</code>的别名。它是一个长度为 20 的数组类型。接着可以用 ARRAY20 定义数组:</p><p> ARRAY20 a1, a2, s1, s2;</p><p>它等价于:</p><p> char a1[20], a2[20], s1[20], s2[20];</p><p>注意,数组也是有类型的。例如<code>char a1[20];</code>定义了一个数组 a1,它的类型就是 char [20],这一点已在VIP教程《<a href="http://c.biancheng.net/cpp/html/3244.html" target="_blank">数组和指针绝不等价,数组是另外一种类型</a>》中讲解过。</p><p>又如,为结构体类型定义别名:</p><pre><code><ol class="snippet-num"><li><span class="sh_keyword">typedef</span> <span class="sh_keyword">struct</span><span class="sh_normal"> </span><span class="sh_classname">stu</span><span class="sh_cbracket">{</span></li><li> <span class="sh_type">char</span> name<span class="sh_symbol">[</span><span class="sh_number">20</span><span class="sh_symbol">];</span></li><li> <span class="sh_type">int</span> age<span class="sh_symbol">;</span></li><li> <span class="sh_type">char</span> sex<span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span> STU<span class="sh_symbol">;</span></li></ol></code></pre><p>STU 是 struct stu 的别名,可以用 STU 定义结构体变量:</p><p> STU body1,body2;</p><p>它等价于:</p><p> struct stu body1, body2;</p><p>再如,为指针类型定义别名:</p><p> typedef&nbsp;int (*PTR_TO_ARR)[4];</p><p>表示 PTR_TO_ARR 是类型<code>int * [4]</code>的别名,它是一个二维数组指针类型。接着可以使用 PTR_TO_ARR 定义二维数组指针:</p><p> PTR_TO_ARR p1, p2;</p><p>按照类似的写法,还可以为函数指针类型定义别名:</p><p> typedef int (*PTR_TO_FUNC)(int, int);<br> PTR_TO_FUNC pfunc;</p><p>【示例】为指针定义别名。</p><pre><code><ol class="snippet-num"><li><span class="sh_preproc">#include</span> <span class="sh_string">&lt;stdio.h&gt;</span></li><li><br></li><li><span class="sh_keyword">typedef</span> <span class="sh_type">char</span> <span class="sh_symbol">(*</span>PTR_TO_ARR<span class="sh_symbol">)[</span><span class="sh_number">30</span><span class="sh_symbol">];</span></li><li><span class="sh_keyword">typedef</span> <span class="sh_type">int</span> <span class="sh_symbol">(*</span>PTR_TO_FUNC<span class="sh_symbol">)(</span><span class="sh_type">int</span><span class="sh_symbol">,</span> <span class="sh_type">int</span><span class="sh_symbol">);</span></li><li><br></li><li><span class="sh_type">int</span> <span class="sh_function">max</span><span class="sh_symbol">(</span><span class="sh_type">int</span> a<span class="sh_symbol">,</span> <span class="sh_type">int</span> b<span class="sh_symbol">)</span><span class="sh_cbracket">{</span></li><li> <span class="sh_keyword">return</span> a<span class="sh_symbol">&gt;</span>b <span class="sh_symbol">?</span> a <span class="sh_symbol">:</span> b<span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span></li><li><br></li><li><span class="sh_type">char</span> str<span class="sh_symbol">[</span><span class="sh_number">3</span><span class="sh_symbol">][</span><span class="sh_number">30</span><span class="sh_symbol">]</span> <span class="sh_symbol">=</span> <span class="sh_cbracket">{</span></li><li> <span class="sh_string">"http://c.biancheng.net"</span><span class="sh_symbol">,</span></li><li> <span class="sh_string">"C语言中文网"</span><span class="sh_symbol">,</span></li><li> <span class="sh_string">"C-Language"</span></li><li><span class="sh_cbracket">}</span><span class="sh_symbol">;</span></li><li><br></li><li><span class="sh_type">int</span> <span class="sh_function">main</span><span class="sh_symbol">()</span><span class="sh_cbracket">{</span></li><li> <span class="sh_usertype">PTR_TO_ARR</span><span class="sh_normal"> </span>parr <span class="sh_symbol">=</span> str<span class="sh_symbol">;</span></li><li> <span class="sh_usertype">PTR_TO_FUNC</span><span class="sh_normal"> </span>pfunc <span class="sh_symbol">=</span> max<span class="sh_symbol">;</span></li><li> <span class="sh_type">int</span> i<span class="sh_symbol">;</span></li><li> </li><li> <span class="sh_function">printf</span><span class="sh_symbol">(</span><span class="sh_string">"max: %d</span><span class="sh_specialchar">\\n</span><span class="sh_string">"</span><span class="sh_symbol">,</span> <span class="sh_symbol">(*</span>pfunc<span class="sh_symbol">)(</span><span class="sh_number">10</span><span class="sh_symbol">,</span> <span class="sh_number">20</span><span class="sh_symbol">));</span></li><li> <span class="sh_keyword">for</span><span class="sh_symbol">(</span>i<span class="sh_symbol">=</span><span class="sh_number">0</span><span class="sh_symbol">;</span> i<span class="sh_symbol">&lt;</span><span class="sh_number">3</span><span class="sh_symbol">;</span> i<span class="sh_symbol">++)</span><span class="sh_cbracket">{</span></li><li> <span class="sh_function">printf</span><span class="sh_symbol">(</span><span class="sh_string">"str[%d]: %s</span><span class="sh_specialchar">\\n</span><span class="sh_string">"</span><span class="sh_symbol">,</span> i<span class="sh_symbol">,</span> <span class="sh_symbol">*(</span>parr<span class="sh_symbol">+</span>i<span class="sh_symbol">));</span></li><li> <span class="sh_cbracket">}</span></li><li><br></li><li> <span class="sh_keyword">return</span> <span class="sh_number">0</span><span class="sh_symbol">;</span></li><li><span class="sh_cbracket">}</span></li></ol></code></pre><p>运行结果:</p><p>max: 20</p><p>str[0]: <a href="http://c.biancheng.net" rel="nofollow">http://c.biancheng.net</a></p><p>str[1]: C语言中文网</p><p>str[2]: C-Language</p><p><span style="color: rgb(178, 34, 34);">需要强调的是,typedef 是赋予现有类型一个新的名字,而不是创建新的类型。为了“见名知意”,请尽量使用含义明确的标识符,并且尽量大写。</span></p><h2> typedef 和 #define 的区别</h2><p>typedef 在表现上有时候类似于 #define,但它和宏替换之间存在一个关键性的区别。正确思考这个问题的方法就是把 typedef 看成一种彻底的“封装”类型,声明之后不能再往里面增加别的东西。</p><p>1) 可以使用其他类型说明符对宏类型名进行扩展,但对 typedef 所定义的类型名却不能这样做。如下所示:</p><p> #define INTERGE int<br> unsigned INTERGE n; &nbsp;//没问题<br> <br> typedef int INTERGE;<br> unsigned INTERGE n; &nbsp;//错误,不能在 INTERGE 前面添加 unsigned</p><p>2) 在连续定义几个变量的时候,typedef 能够保证定义的所有变量均为同一类型,而 #define 则无法保证。例如:</p><p> #define PTR_INT int *<br> PTR_INT p1, p2;</p><p>经过宏替换以后,第二行变为:</p><p> int *p1, p2;</p><p>这使得 p1、p2 成为不同的类型:p1 是指向 int 类型的指针,p2 是 int 类型。</p><p>相反,在下面的代码中:</p><p> typedef int *&nbsp;PTR_INT<br> PTR_INT p1, p2;</p><p>p1、p2 类型相同,它们都是指向 int 类型的指针。</p>'), (28, 234, '<pre><code><span class="hljs-preprocessor">#include &lt;stdio.h&gt;</span>\r\n<span class="hljs-preprocessor">#include &lt;malloc.h&gt;</span>\r\n<span class="hljs-preprocessor">#include &lt;stdlib.h&gt;</span>\r\n<span class="hljs-preprocessor">#include &lt;stdbool.h&gt;</span>\r\n<span class="hljs-keyword">typedef</span> <span class="hljs-keyword">struct</span> Arr{\r\n<span class="hljs-keyword">int</span> len;\r\n<span class="hljs-keyword">int</span> num;\r\n<span class="hljs-keyword">int</span> *head;\r\n}A;\r\n<span class="hljs-keyword">void</span> initArr(A *arr,<span class="hljs-keyword">int</span> len){\r\n arr-&gt;head=(<span class="hljs-keyword">int</span> *)<span class="hljs-built_in">malloc</span>(<span class="hljs-keyword">sizeof</span>(<span class="hljs-keyword">int</span>)*len);\r\n <span class="hljs-keyword">if</span>(NULL==arr){\r\n <span class="hljs-built_in">printf</span>(<span class="hljs-string">"Dynamic storage fail to distribute!"</span>);\r\n <span class="hljs-built_in">exit</span>(-<span class="hljs-number">1</span>);\r\n }\r\n arr-&gt;len=len;\r\n arr-&gt;num=<span class="hljs-number">0</span>;\r\n <span class="hljs-keyword">return</span>;\r\n}\r\n<span class="hljs-keyword">bool</span> isFull(A *arr){\r\n <span class="hljs-keyword">if</span>(arr-&gt;num&gt;=arr-&gt;len){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n }\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n}\r\n<span class="hljs-keyword">bool</span> isEmpty(A *arr){\r\n <span class="hljs-keyword">if</span>(arr-&gt;num==<span class="hljs-number">0</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n }\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n\r\n\r\n}\r\n<span class="hljs-keyword">bool</span> insert(A *arr,<span class="hljs-keyword">int</span> index,<span class="hljs-keyword">int</span> val){\r\n <span class="hljs-keyword">if</span>(isFull(arr)){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n <span class="hljs-keyword">if</span>(index&lt;<span class="hljs-number">0</span>&amp;&amp;index&gt;arr-&gt;len-<span class="hljs-number">1</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n\r\n <span class="hljs-keyword">int</span> temp=arr-&gt;len;\r\n <span class="hljs-keyword">while</span>(temp&gt;index){\r\n arr-&gt;head[temp]=arr-&gt;head[temp-<span class="hljs-number">1</span>];\r\n --temp;\r\n }\r\n arr-&gt;head[index]=val;\r\n arr-&gt;num++;\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n}\r\n<span class="hljs-keyword">bool</span> append(A *arr,<span class="hljs-keyword">int</span> val){\r\n <span class="hljs-keyword">if</span>(isFull(arr)){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }<span class="hljs-keyword">else</span>{\r\n arr-&gt;head[arr-&gt;num]=val;\r\n (arr-&gt;num)++;\r\n }\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n}\r\n<span class="hljs-keyword">bool</span> remove_arr(A *arr,<span class="hljs-keyword">int</span> index){\r\n <span class="hljs-keyword">if</span>(arr-&gt;num&lt;=<span class="hljs-number">0</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n <span class="hljs-keyword">if</span>(index&lt;<span class="hljs-number">0</span>&amp;&amp;index&gt;arr-&gt;num-<span class="hljs-number">1</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n <span class="hljs-keyword">int</span> temp=index;\r\n <span class="hljs-keyword">while</span>(temp&lt;arr-&gt;num-<span class="hljs-number">1</span>){\r\n arr-&gt;head[temp]=arr-&gt;head[temp+<span class="hljs-number">1</span>];\r\n temp++;\r\n }\r\n --arr-&gt;num;\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n}\r\n<span class="hljs-keyword">void</span> show_arr(A *arr){\r\n <span class="hljs-keyword">int</span> i;\r\n <span class="hljs-keyword">for</span>(i=<span class="hljs-number">0</span>;i&lt;arr-&gt;num;i++){\r\n <span class="hljs-built_in">printf</span>(<span class="hljs-string">"%d "</span>,arr-&gt;head[i]);\r\n }\r\n <span class="hljs-built_in">printf</span>(<span class="hljs-string">"\\n"</span>);\r\n\r\n}\r\n<span class="hljs-keyword">bool</span> inverse(A *arr){\r\n <span class="hljs-keyword">if</span>(arr-&gt;num&lt;=<span class="hljs-number">0</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n <span class="hljs-keyword">int</span> temp=<span class="hljs-number">0</span>;\r\n <span class="hljs-keyword">int</span> temp2=arr-&gt;num;\r\n <span class="hljs-keyword">while</span>(temp!=temp2){\r\n <span class="hljs-keyword">int</span> x=arr-&gt;head[temp];\r\n arr-&gt;head[temp]=arr-&gt;head[temp2-<span class="hljs-number">1</span>];\r\n arr-&gt;head[temp2-<span class="hljs-number">1</span>]=x;\r\n temp++;\r\n temp2--;\r\n }\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n}\r\n<span class="hljs-keyword">bool</span> replace(A * arr,<span class="hljs-keyword">int</span> index,<span class="hljs-keyword">int</span> val){\r\n <span class="hljs-keyword">if</span>(arr-&gt;num&lt;=<span class="hljs-number">0</span> || index&lt;<span class="hljs-number">0</span> ||index &gt;arr-&gt;num-<span class="hljs-number">1</span>){\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">false</span>;\r\n }\r\n arr-&gt;head[index]=val;\r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">true</span>;\r\n}\r\n<span class="hljs-keyword">int</span> main(<span class="hljs-keyword">void</span>){\r\n A arr;\r\n initArr(&amp;arr,<span class="hljs-number">6</span>);\r\n append(&amp;arr,<span class="hljs-number">4</span>);\r\n append(&amp;arr,<span class="hljs-number">2</span>);\r\n append(&amp;arr,<span class="hljs-number">3</span>);\r\n append(&amp;arr,<span class="hljs-number">1</span>);\r\n append(&amp;arr,<span class="hljs-number">1</span>);\r\n insert(&amp;arr,<span class="hljs-number">0</span>,<span class="hljs-number">5</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n remove_arr(&amp;arr,<span class="hljs-number">0</span>);\r\n append(&amp;arr,<span class="hljs-number">0</span>);\r\n append(&amp;arr,<span class="hljs-number">2</span>);\r\n append(&amp;arr,<span class="hljs-number">30</span>);\r\n append(&amp;arr,<span class="hljs-number">23</span>);\r\n inverse(&amp;arr);\r\n replace(&amp;arr,<span class="hljs-number">3</span>,<span class="hljs-number">8</span>);\r\n\r\n show_arr(&amp;arr);\r\n\r\n}</code></pre>'), (29, 235, '<p>修改php配置文件中的session.gc_maxlifetime。如果想了解更多session回收机制,继续阅读。(本文环境php5.2)</p><p>概述:每一次php请求,会有1/100的概率(默认值)触发“session回收”。如果“session回收”发生,那就会检查/tmp/sess_*的文件,如果最后的修改时间到现在超过了1440秒(gc_maxlifetime的值),就将其删除,意味着这些session过期失效。</p><p>1. session在server端(一般是Apache with PHP module)如何存在的?</p><p>默认的,php会将session保存在/tmp目录下,文件名为这个样子:sess_01aab840166fd1dc253e3b4a3f0b8381。每一个文件对应了一个session(会话)。</p><p>more /tmp/sess_01aab840166fd1dc253e3b4a3f0b8381</p><p>username|s:9:”jiangfeng”;admin|s:1:”0″;</p><p>#变量名|类型:长度:值</p><p>删除这里的session文件,就表示对应的session失效了。</p><p>2. session在client端(一般是浏览器)如何存在的?</p><p>session在浏览器端,只需要保存session ID(由server端生成的唯一ID)就可以了。有两种保存方式:在cookie中、在url里面。如果cookie中保存session ID,就可以看到浏览器的cookie中有一个PHPSESID变量。如果是URL传递的,就可以看到形如:</p><p>index.php?PHPSESID=01aab840166fd1dc253e3b4a3f0b8381的URL。(在server端通过session.use_cookies来控制使用哪一种方式)</p><p>3. 在server端,php如何判断session文件是否过期?</p><p>如果”最后的修改时间”到”现在”超过了gc_maxlifetime(默认是1440)秒,这个session文件就被认为是过期了,在下一次session回收的时候,如果这个文件仍然没有被更改过,这个session文件就会被删除(session就过期了)。</p><p>简单的说,如果我登录到某网站,如果在1440秒(默认值)内没有操作过,那么对应的session就认为是过期了。</p><p>所以,修改php.ini文件中的gc_maxlifetime变量就可以延长session的过期时间了:(例如,我们把过期时间修改为86400秒)</p><p>session.gc_maxlifetime = 86400</p><p>然后,重启你的web服务(一般是apache)就可以了。</p><p>注意:php5里面session过期使用了回收机制。这里设置时间为86400秒,如果session在86400秒内没有被修改过,那么在下一次“回收”时才真的被删除。</p><p>3. session“回收”何时发生?</p><p>默认情况下,每一次php请求,就会有1/100的概率发生回收,所以可能简单的理解为“每100次php请求就有一次回收发生”。这个概率是通过以下参数控制的</p><p>#概率是gc_probability/gc_divisor</p><p>session.gc_probability = 1</p><p>session.gc_divisor = 100</p><p>注意1:假设这种情况gc_maxlifetime=120,如果某个session文件最后修改时间是120秒之前,那么在下一次回收(1/100的概率)发生前,这个session仍然是有效的。</p><p>注意2:如果你的session使用session.save_path中使用别的地方保存session,session回收机制有可能不会自动处理过期session文件。这时需要定时手动(或者crontab)的删除过期的session:cd /path/to/sessions; find -cmin +24 | xargs rm</p>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (30, 236, '<p>本文介绍了PHP会话控制,主要阐述以下几点内容:</p><p>• 会话控制的产生背景/概念<br>• cookie的维护与生命周期(有效时间)<br>• session的维护与生命周期(回收机制)<br>• cookie与session之间的区别与联系<br>• 问题1:禁用cookie后session为什么会失效?<br>• 问题2:IE浏览器下丢失session,每次刷新页面,都会生成新的sessionID(Firefox浏览器正常)<br>• session、cookie简单实例</p><p><strong>理解会话控制的概念</strong></p><p>理解一个概念就需要理解他的背景及产生的原因,这里引入WEB环境及其HTTP协议。会话控制产生的背景:<br>阅读过HTTP协议相关资料的同学都会知道HTTP协议是WEB服务器与客户端(浏览器)相互通信的协议,它是一种无状态协议,所谓无状态,指的是不会维护http请求数据,http请求是独立的,不持久的。也就是说HTTP协议没有一个内建的机制来维护两个事务之间的状态或者说是关系吧。当一个用户在请求一个页面后再去请求另外一个页面时,HTTP将无法告诉我们这两个请求是否来自同一个用户。</p><p>由此我们就会觉得很奇怪了,平时我们在论坛逛帖子或电商网站购物时,只要我们在这个站点内,不论我们怎么跳转,从一个页面跑到另一个页面,网站总会记得我是谁,比如告诉你购买了哪些东西。这是怎么做到的呢,估计大家猜到了,这就是运用了HTTP会话控制。在网站中跟踪一个变量,通过对变量的跟踪,使多个请求事物之间建立联系,根据授权和用户身份显示不同的内容、不同页面。</p><p><strong>PHP Session会话控制:</strong></p><p>PHP的session会话是通过唯一的会话ID来驱动的,会话ID是一个加密的随机数字,由PHP生成,在会话的生命周期中都会保存在客户端。我们知道客户端(也就是浏览器)保存数据的地方只有cookie,所以PHP的会话ID一般保存在用户机器的cookie中。了解cookie后我们知道,浏览器是可以禁用cookie的,这样会话就会失效。所以PHP会话控制还有一种模式,就是在URL中传递会话ID。如果在浏览网站时我们稍加留心的话,有些URL中有一串看起来像随机数字的字符串,那么其实很有可能就是URL形式的会话控制。</p><p>讲到这里,有些人可能会有疑问了,客户端只是保存一个会话ID,那么会话控制中保存的会话变量比如你购物时买的物品列表等,它们是存放在哪个地方的呢?很显然,会话变量是在服务器端使用的,那么这些会话变量必定存放在服务器端。默认情况下,会话变量保存在服务器的普通文件中(也可以自己配置使用数据库来保存,可以Google一下),会话ID的作用就像是一把钥匙,在服务器端保存会话的文件中找到该会话ID对应的会话变量,比如购买物品的列表。</p><p>那么会话控制的整个过程可能就像这个样子,用户登录或者第一次浏览某个站点的页面时,该站点会生成一个PHP的会话ID并通过cookie发送到客户端(浏览器)。当用户点击该站点的另一个页面时,浏览器开始连接这个URL。在连接之前,浏览器会先搜索本地保存的cookie,如果在cookie中有任何与正在连接的URL相关的cookie,就将它提交到服务器。而刚好在登陆或第一次连接时,已经产生了一个与该网站URL相关的cookie(保存的会话ID),所以当用户再次连接这个站点时,站点就可以通过这个会话ID识别出用户,从服务器的会话文件中取出与这个会话ID相关的会话变量,从而保持事务之间的连续。</p><p>接下来我们了解下两个重要的概念:cookie和session</p><p><strong>关于cookie的维护与生命周期</strong></p><p>cookie是在服务器端被创建并写回到客户端浏览器,浏览器接到响应头中关于写cookie的指令则在本地临时文件夹中。</p><p>创建了一个cookie文件,其中保存了你的cookie内容,cookie内容的存储是键值对的方式,键和值都只能是字符串。例如:<br>文件:Cookie:administrator@localhost/<br>内容格式:voteID100101localhost/15361167667230343893360385046430343691*</p><p>cookie的创建:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>setcookie()函数设置cookie,函数原型如下</p><p>setcookie(name, value, expire, path, domain);</p><p>注释:cookie标题头必须在发送其他标题头之前发送,否则就无效(这是cookie的限制,而不是PHP的限制)。在发送 cookie 时,cookie 的值会自动进行 URL 编码,在取回时进行自动解码(为防止 URL 编码,请使用 setrawcookie() 取而代之)。</p><p>cookie的维护:</p><p>cooke有四个标识符:cookie的name,domain,path,secure标记。要想在将来改变这个cookie的值,需要发送另一个具有相同cookie name,domain,path的Set-Cookie消息头,这将以一个新</p><p>的值来覆盖原来cookie的值。然而,如果仅仅只是改变这些选项的某一个也会创建一个完全不同的cookie,如只是更改了name值。</p><p>cookie失效时间:</p><p>可以设置过期时间,如果不设置则是会话级别的,即关闭浏览器就会消失。当cookie创建时包含了失效日期,这个失效日期则关联了以name-domain-path-secure为标识的cookie。要改变一个cookie的失效日期,你必须指定同样的组合。当改变一个cookie的值时,你不必每次都设置失效日期,因为它不是cookie标识信息的组成部分。例如:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>setcookie(vote ,$id+1,time()+3600*24);</p><p>setcookie(vote,$id);</p><p>在cookie上的失效日期并没有改变,因为cookie的标识符是相同的。实际上,只有你手工的改变cookie的失效日期,否则其失效日期不会改变。这意味着在同一个会话中,一个会话cookie可以变成一个持久化cookie(一个可以在多个会话中存在的),反之则不可。为了要将一个持久化cookie变为一个会话cookie,你必须删除这个持久化cookie,这只要设置它的失效日期为过去某个时间之后再创建一个同名的会话cookie就可以实现。</p><p>需要记得的是失效日期是以浏览器运行的电脑上的系统时间为基准进行核实的。没有任何办法来来验证这个系统时间是否和服务器的时间同步,所以当服务器时间和浏览器所处系统时间存在差异时这样的设置会出现错误。</p><p>cookie自动删除:</p><p>cookie会被浏览器自动删除,通常存在以下几种原因:<br>会话cooke(Session cookie)在会话结束时(浏览器关闭)会被删除<br>持久化cookie(Persistent cookie)在到达失效日期时会被删除,如:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>setcookie("vote", "", time()-3600);</p><p>如果浏览器中的cookie限制到达,那么cookies会被删除以为新建cookies创建空间。</p><p><strong>关于session的维护与生命周期</strong></p><p>Session是由应用服务器维持的一个服务器端的存储空间,用户在连接服务器时,会由服务器创建生成一个唯一的sessionID,用该sessionID为标识符来存取服务器端的Session存储空间,在会话期间,分配给客户端的唯一sessionID,用来标识当前用户,与其他用户进行区分。通过SessionID接受每一次访问的请求,从而识别当前用户,跟踪和保持用户的具体资料,以及session变量,可在session中存储数字或文字资料.比如session_name.这些信息都保存在服务器端。当然,sessionID也可以作为会话信息保存到数据库中,进行session持久化。这样可以跟踪用户的登陆次数、在线与否、在线时间等从而维护HTTP无状态事物之间的关系。session的内容存储是键值对的列表,键是字符串类型,session的存储更方便,值可以是对象。</p><p>在session会话期间,session会分别保存在客户端和服务器端两个文件,客户端可以是cookie方式保存的sessionID(默认的保存方式)或通过url字符串形式传递。服务器端一般以文本的形式保存在指定的session目录中。在服务器端我们可以通过session.use_cookies来控制客户端使用哪一种保存方式。如果定义为cookie保存方式,我们可以通过session.cookie_lifetime(默认值0,闭浏览器就清除)来控制被保存在client上的cookie的有效期。而如果客户端用cookie方式保存的sessionID,则使用“临时”的cookie保存(cookie的名称为PHPSESSID,通过Firebug你可以了解到详细的信息,该名称你可以通过php.ini session.name进行更改),用户提交页面时,会将这一SessionID提交到服务器端,来存取session数据。这一过程,是不用开发人员干预的。</p><p>Session的创建:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>session_start()&nbsp; //开始一个会话及返回已经存在会话</p><p>功能:初始化Session,也标识着session生命周期的开始。要使用session,必须初始化一个session环境,有点类似于OOP概念中调用构造函数构创建对象实例一样。session初始化操作,声明一个全局数组$_SESSION,映射寄存在内存的session数据。如果session文件已经存在,并且保存有session数据,session_start()则会读取session数据,填入$_SESSION中,开始一个新的session生命周期。</p><p>说明:这个函数没有参数,且返回值为true,如果使用基于cookie的sessin,那么在session_satrt()之前不能有任何的输出,包括空白<br>如果在php.ini中session.auto_start=1开启,则在每个页面执行session_start(),不需要手工设置,该选项默认为关闭状态,开启后不能将对象放入session中。</p><p>Session ID:</p><p>用户session唯一标识符,随机生成的一串字符串,具有唯一性,随机性。主要用于区分其它用户的session数据。用户第一次访问web页面的时候,php的session初始化函数调用会分配给当前来访用户一个唯一的ID,也称之为session_id。</p><p>获得session_id():</p><p><a><u>复制代码</u></a> 代码如下:</p><p>echo $_COOKIE[''PHPSESSID''].''&lt;br/&gt;'';</p><p>echo $_COOKIE[session_name()].''&lt;br/&gt;'';</p><p>echo session_id().''&lt;br/&gt;'';</p><p>session数据:</p><p>我们把需要通过session保存的用户状态信息,称为用户session数据,也称为session data。一般是在当前session生命周期内,相应的$_SESSION数据。一旦调用了session_start()初始化session,就意味着开始了一个session生命周期。也就是宣布了,可以使用相关函数操作$_SESSION来管理session数据。这个session生命周期产生的数据并没有实时地写入session文件,而是通过$_SESSION变量寄存在内存中。$_SESSION是一个全局变量,类型是Array,映射了session生命周期的session数据,寄存在内存中。在session初始化的时候,从session文件中读取数据,填入该变量中。在session(生命周期)结束时,将$_SESSION数据写回session文件。</p><p>注册一个会话变量:</p><p>从PHP4.1以后,会话变量保存在超级全局数组$_SESSION中。要创建一会话变量,只需要在数组中设置一个元素,如:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>$_SESSION[''domain''] = blog.jb51.net;</p><p>$_SESSION[''poll'']=$_SESSION[poll] + 1;</p><p>使用一个会话变量:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>echo $_SESSION[''blogdomain''];&nbsp;&nbsp; //打印出blog.jb51.net,使用会话前必须先使用session_start()函数启动一个会话</p><p>注销Session变量/销毁会话:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>unset($_SESSION);&nbsp; //销毁单个会话变量</p><p>如:unset($_SESSION[''blogdomain'']);</p><p>#unset($_SESSION)这个函数会将全局变量$_SESSION销毁,而且还没有可行的办法将其恢复。用户也不再可以注册$_SESSION变量,所以此函数千万不可使用。</p><p>session_unset(); //多项释放。将所有登陆在session文件里的变量释放出来<br>#在session生命周期,从当前session中注销全部session数据,让$_SESSION成为一个空数组。它与unset($_SESSION)的区别在于:unset直接删除$_SESSION变量,释放内存资源;另一个区别在于,session_unset()仅在session生命周期能够操作$_SESSION数组,而unset()则在整个页面(page)生命周期都能操作$_SESSION数组。session_unset()同样不进行任何IO操作,只影响$_SESSION数组。</p><p>$_SESSION=array();&nbsp; //多项释放,释放所有登录在$_SESSION参数里的变量</p><p>session_destroy(); <br>#当使用完一个会话后,首先应该注销所有的变量,然后再调用该函数结束当前的会话,并清空会话中的所有资源,删除服务器上的session文件.该函数不会unset(释放)和当前session相关的全局变量,也不会删除客户端的session cookie<br>#如果说session_start()初始化一个session的话,而它则注销一个session。意味着session生命周期结束了。在session生命周期结整后, session_unset, $_SESSION[''domain''] 都将不能操作$_SESSION数组,而$_SESSION数组依然可以被unset()等函数操作。这时,session意味着是未定义的,而$_SESSION依然是一个全局变量,他们脱离了关映射关系。<br>通过session_destroy()注销session,除了结束session生命周期外,它还会删除sesion文件,但不会影响当前$_SESSION变量。即它会产生一个IO操作。<br></p><p>备注:</p><p>1、php默认的session是基于cookie的,如果要删除cookie的话,必须借助setcookie()函数<br>2、session_unset()和unset()函数区别:</p><p>在session生命周期,session_unset()从当前session中注销全部session数据,让$_SESSION成为一个空数组。它与unset($_SESSION)的区别在于:unset直接删除$_SESSION变量,释放内存资源;另一个区别在于,session_unset()仅在session生命周期能够操作$_SESSION数组,而unset()则在整个页面(page)生命周期都能操作$_SESSION数组。session_unset()同样不进行任何IO操作,只影响$_SESSION数组。</p><p>Session生命周期(session lifetime):Session失效时间与过期回收机制<br>我们把初始化session开始,直到注销session这段期间,称为session生命周期<br>默认的,php会将session保存在php.ini配置中session.save_path设定的目录下,文件名为这个样子:sess_ves0d7uvdsab9k6sig73mnn592。每一个文件对应了一个session(会话)。session文件格式大致如下:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>poll_200|i:1;poll_100|i:3;&nbsp;&nbsp; //#变量名|类型:长度:值</p><p>设置SESSION的生命周期:</p><p>php session是基于cookie的,所以要设置session的生命周期,首先要设置cookie的失效时间。因为在客户端(如浏览器)登录网站时,SESSION 是否有用,首先找客户端是否有 COOKIE,通过COOKIE 中的 SESSION ID 去找服务器上的文件。<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>session_start(); </p><p>$lifeTime = 24 * 3600; // 保存一天 </p><p>setcookie(session_name(), session_id(), time() + $lifeTime, "/"); </p><p>其实PHP5 Session还提供了一个函数 session_set_cookie_params(); 来设置PHP5 Session的生存期的,该函数必须在 session_start() 函数调用之前调用:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>$lifeTime = 24 * 3600; // 保存一天 </p><p>session_set_cookie_params($lifeTime); </p><p>session_start(); </p><p>在服务器端,php如何判断session文件是否过期?<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>session.gc_maxlifetime = 1440 (初始值)</p><p>#设置session存活时间,单位是秒。每次GC启动后, 会通过stat得到session文件最后访问的unix时间,通过现在时间减去文件最后访问时间之间大于session.gc_maxlifetime,则会删除该文件。</p><p>如果"最后的修改时间"到"现在"超过了session.gc_maxlifetime(默认是1440)秒,也就是说在这里设置的时间内,该文件没有被修改过,这个session文件就被认为是过期了,由于php5的session采用被动的回收机制,过期的session文件不会自己消失,而是通过触发“回收”来处理过期的session,那么在下一次session回收的时候,如果这个文件仍然没有被更改过,这个session文件就会被删除(session就过期了)。</p><p>session回收何时发生?</p><p>默认情况下,每一次php请求,就会有1%的概率发生回收,所以可能简单的理解为“每100次php请求就可能有一次回收概率发生”。这个概率是通过以下参数控制的:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>session.gc_probability = 1 (初始值)</p><p>session.gc_divisor = 100 (初始值)</p><p>#由这二个函数决定了启用GC的概率,默认是1/1000。也就是说,每一千次用户请求中有一次会启动GC回收session。启动GC进程不宜过于频繁。过于频繁访问的网站,并发量大的网站,可减小PHP GC的启动频率。PHP GC回收session会降低php的执行效率。</p><p>这两个合起来就是启动Gabadge Collection(gc)进程管理概率的,在session初使化时(session_start())。Gabadge Collection启动后跟踪session信息文件。其启动概率为session.gc_probability/session.gc_divisor。也就是说不是每个session信息文件都有100%的被系统当作垃圾来处理的。如果直接关闭浏览器的话,session信息文件很多情况下都是留在了服务器上,如果把概率改成了100%,虽然Gabadge Collection百分之百被启动了,但是这会对服务器添加负荷,也就失去了GC本身的意义了。</p><p>补充说明:</p><p>1、假设这种情况session.gc_maxlifetime=1440,如果某个session文件最后修改时间是1440秒之前,那么在下一次回收(1/100的概率)发生前,这个session仍然是有效的;</p><p>2、如果你的session使用session.save_path中使用别的地方保存session,session回收机制有可能不会自动处理过期session文件。这时需要定时手动(或者crontab)的删除过期的session:cd /path/to/sessions; find -cmin +24 | xargs rm;</p><p>3、注意,当服务器端session文件数量没有得到有效的回收,逐渐增长到GB或更大级别时可能你的站点在存取session时就会越来越缓慢,多见于站点登入登出会受到影响;</p><p>4、写日志、周报、月报等时候我们最后提交的关头,有时会出现”无效的操作,请登陆后重试”等消息,其原因也不言而喻,可能就是session失效,gc清除那些已经“超时”的session文件。</p><p>一些特殊情况:</p><p>因为回收机制会检查文件的“最后修改时间”,所以如果某个会话是活跃的,但是session的内容没有改变过,那么对应的session文件也就没有改变过,回收机制会认为这是一个长时间没有活跃的session而将其删除。这是我们不愿看到的,可以通过增加如下的简单代码解决这个问题:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>&lt;?php</p><p>if(!isset($_SESSION[''last_access''])||(time()-$_SESSION[''last_access''])&gt;120)</p><p>&nbsp;&nbsp;$_SESSION[''last_access''] = time(); </p><p>?&gt;&nbsp;&nbsp; //代码会每隔120秒,尝试修改修改一次session</p><p><strong>了解cookie与session之间的区别与联系</strong></p><p>相同点:都可以在解决HTTP无状态的问题,使同一个客户端在访问网站的多次请求中,可以保存,设置信息,并且在请求事物之间建立联系。</p><p>不同点:简单的说cookie的信息保存在客户端,session的信息保存在服务器端。</p><p>Session采用键值对,也就是说ID存放客户端,而值放在服务器端,是通过用户的ID去找服务器上对应的值,这种方式值放置在服务器端,有个时间限制,时间到则服务器自动回收/释放。</p><p>Cookies则有两种方法,一种方法是把值保存在浏览器的变量中,当浏览器关闭时结束,另一种方法是保存在硬盘中,只要时间不过期,下次还可使用。</p><p>联系:当客户端使用基于Cookie方式保存的SessionID时,SessionID一般保存在cookie中。</p><p>备注:cookie在相同内核的浏览器之间是共享的,不同内核浏览器是不共享的例如火狐和IE(存放位置都不同,当然不共享)。不同内核浏览器不能共享cookie,也会产生不同sessionid。</p><p><strong>问题1:禁用cookie后session为什么会失效?</strong></p><p>首先说明一点:session不一定必须依赖cookie,只是php默认客户端sessionid基于cookie方式保存。</p><p>到此,我想你也应该了解了php默认的session客户端保存方式是基于cookie的,所以一旦客户端禁用Cookie,那么session跨页将会失效,不知道这么描述是否合适,通俗的说无状态的东西要变的有状态,只能两边都进行比对,如果用cookie方式保存的SessionID,客户端这边的比对条件就放到cookie里,所以客户端禁用cookie,session便也会随之失效。php的session客户端ID一般有两种保存方式:cookie和url方式。如果是cookie中保存session ID,就可以看到浏览器的cookie中有一个PHPSESID变量(可以通过firefox查看)。如果是URL传递的(建议使用隐藏表单传递),就可以看到形如:index.php?PHPSESID=ves0d7uvdsab9k6sig73mnn592的URL。例如:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>demo1.php</p><p>&lt;?php</p><p>session_start();</p><p>$_SESSION[''blog'']=''<a href="http://blog.jb51.net" rel="nofollow">http://blog.jb51.net</a>'';</p><p>echo "&lt;a href=''demo2.php''&gt;test2&lt;/a&gt;";</p><p>?&gt;</p><p>demo2.php<br>&lt;?php<br>session_start();<br>echo ''session值为''.$_SESSION[''blog''];<br>?&gt;<br></p><p>运行上面的代码,在客户端cookie正常情况下,我么可以在demo2.php中打印出$_SESSION[''blog'']的值为:<a href="http://blog.jb51.net" rel="nofollow">http://blog.jb51.net</a>。但是,现在如果你手动禁用客户端的cookie,再运行该实例,可能就得不到结果了。因为默认的客户端sessionid保存方式在跨页后,读取不到前一页的sessionid,当执行session_start();将又会产生一个session文件,与之对应产生相应的session id,用这个session id是取不出前面提到的第一个session文件中的变量的,因为这个session id不是打开它的“钥匙”。如果在session_start();之前加代码session_id($sessionid);将不产生新的session文件,直接读取与这个id对应的session文件。简单的说就是在前一页取得session id,然后想办法传递到下一页,在下一页的session_start();代码之前加代码session_id(传过来的sessionid); 例如:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>demo.php</p><p>&lt;?php</p><p>$sid = $_GET[''sid''];</p><p>if(!empty($sid)){</p><p>&nbsp;&nbsp;session_id($sid);</p><p>&nbsp;&nbsp;session_start();</p><p>}else{</p><p>&nbsp;&nbsp;session_start();</p><p>&nbsp;&nbsp;$sid = session_id();</p><p>}</p><p>?&gt;</p><p>&lt;form action="demo2.php?sid=&lt;?php echo $sid ?&gt;" method="post"&gt;</p><p>&lt;input type="text" name="id" value="100" /&gt;</p><p>&lt;input type="submit" value="提交"/&gt;</p><p>&lt;/form&gt;</p><p>demo2.php<br>&lt;?php<br>$sid = $_GET[''sid''];<br>if(!empty($sid)){<br>&nbsp;&nbsp;session_id($sid);<br>&nbsp;&nbsp;session_start();<br>}else{<br>&nbsp;&nbsp;session_start();<br>&nbsp;&nbsp;$sid = session_id();<br>}<br>$id = $_POST[''id''];<br>$key = ''poll_''.$id;<br>if($id!=''''){<br>&nbsp;&nbsp;echo $key = ''poll''.$id;<br>&nbsp;&nbsp;if(!empty($_SESSION[$key])){<br>&nbsp;&nbsp;&nbsp;&nbsp;$_SESSION[$key]=$_SESSION[$key] + 1;<br>&nbsp;&nbsp;}else{<br>&nbsp;&nbsp;&nbsp;&nbsp;$_SESSION[$key]=1;<br>&nbsp;&nbsp;&nbsp;&nbsp;setcookie($key ,$id+1,time()+3600*24);<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;echo ''&lt;script&gt;alert("success");javascript:location.href="demo.php?sid=''.$sid.''";&lt;/script&gt;'';<br>}else{<br>&nbsp;&nbsp;echo ''&lt;script&gt;alert("failed!ID Null");javascript:history.back(-1);&lt;/script&gt;'';<br>}<br>?&gt;<br></p><p>除此之外,我们还可以将客户端PHPSESID存放到文件中,如:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>demo.php</p><p>session_start();</p><p>$_SESSION[''blogdomain'']= ''<a href="http://blog.jb51.net" rel="nofollow">http://blog.jb51.net</a>'';</p><p>$sid=session_id();</p><p>$fp=fopen("D:\\tmp\\websid.txt","w+");</p><p>fwrite($fp,$sid);</p><p>fclose($fp);</p><p>echo ''&lt;a href="demo2.php"&gt;demo2&lt;/a&gt;'';</p><p>demo2.php<br>$fp=fopen("D:\\tmp\\websid.txt","r");<br>$sid=fread($fp,1024);<br>fclose($fp);<br>session_id($sid);<br>session_start();<br>print_r($_SESSION);<br></p><p>当客户端禁用cookie,可以通过以下几种方式改变session对客户端cookie的依赖,使session抛开客户端cookie:</p><p>1、设置php.ini中的session.use_trans_sid = 1或者编译时打开打开了--enable-trans-sid选项,让PHP自动跨页传递session id。当session.use_trans_sid为有效时,ession.use_only_cookies一定要设置为无效0。</p><p>2、手动通过URL传值、隐藏表单传递session id。</p><p>3、用文件、数据库等形式保存session_id,在跨页过程中手动调用。</p><p>PHP也提供一个函数:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>output_add_rewrite_var&nbsp; ( string $name , string $value ) # 变量名 变量值</p><p>说明:此函数给URL重写机制添加名/值对。 这种名值对将被添加到URL(以GET参数的形式)和表单(以input隐藏域的形式),当透明URL重写用 session.use_trans_sid 开启时同样可以添加到session ID。 要注意,绝对URL(<a href="http://jb51.net/.." rel="nofollow">http://jb51.net/..</a>)不能被重写。此函数的行为由url_rewriter.tags php.ini 参数控制。</p><p><a><u>复制代码</u></a> 代码如下:</p><p>&lt;?</p><p>session_start();</p><p>output_add_rewrite_var(''PHPSESSID'',session_id ());</p><p>echo ''&lt;a href="demo2.php"&gt;demo&lt;/a&gt;'';</p><p>?&gt;</p><p>这样sessionID会跟在URL后面而且from中会出现sessionID的hidden值。</p><p>改变session客户端ID保存方式:</p><p>session.use_cookies //控制客户端保存SessionID时使用哪一种方式,当它为“1”时,就说明启动了session cookie(初始值为1)<br>可以使用上面我们提到的函数来查询得到目前的session id:echo $_COOKIE["PHPSESSID"];<br>但是,如果client的浏览器不支持cookie的话,即使session.use_cookies这个参数的值等于“1”,用上述的查询也只会得到null。</p><p>php.ini中两个和该选项相关的配置参数:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>session.use_cookies = 1&nbsp; //是否使用cookies(默认值为1)</p><p>session.use_only_cookies=1&nbsp; //为1时只使用cookie;为0时可使用cookie和其它方式,这时如果客户端cookie可用,则session还是默认用cookie(默认值为1)</p><p>注意:如果客户的浏览器是支持cookie的,强烈推荐“session.use_only_cookies = 1”,当session.use_only_cookies为有效时,即使想通过URL来传递session id也会被认为无效,这样可以减少通过sessionid被攻击的可能性。上面两个配置,在php代码页面中设置方式:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>ini_set(''session.use_cookies'',''1'');</p><p>ini_set(''session.use_only_cookies'',''1'');</p><p>IE下丢失session,每次刷新页面,都会生成新的sessionID(Firefox浏览器都正常)</p><p>如果你的服务器或站点出现这种问题,请正确配置session.cookie_path网站域,如果配置错误可能会引起以下常见故障:</p><p>(1)客户端的每个PHPSESSID在服务器端都会一对一的对应生成一个独立的session记录存储在服务器端,故服务器端session文件冗余将会增多(GC回收机制异常时、站点访问量较大时)</p><p>(2)使用session记录相关信息的站点可能在除Firefox(Chrome未测试)之外的浏览器下访问出现问题,例如:购物车无法记录选购项目、站点登录失败等</p><p><a><u>复制代码</u></a> 代码如下:</p><p>session.cookie_path 是指 session 生效的网站域;</p><p>session.save_path 是指存储 session 临时文件的路径。</p><p>例如:session.cookie_path= /&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //cookie的有效路径</p><p>补充:如果所有浏览器访问刷新产生新sessionID,请检查客户端是否禁用了cookie。</p><p><strong>session简单实例</strong></p><p>使用session防止表单重复提交:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>&lt;?php</p><p>session_start();</p><p>$_SESSION["num"] = 0;</p><p>if(isset($_POST["action"] &amp;&amp; $_POST["action"]=="post")){</p><p>if($_SESSION["num"] == 0){</p><p>&nbsp;&nbsp;&nbsp;&nbsp;echo "提交成功!";</p><p>&nbsp;&nbsp; $_SESSION["num"] = 1;</p><p>}else{</p><p>&nbsp;&nbsp; echo "请勿重复提交!";</p><p>}</p><p>}</p><p>?&gt;</p><p>使用session方式的登录验证实例代码:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>&lt;?php</p><p>session_start();//启动session,必须放在第一句,否则会出错。</p><p>if($_GET[''out'']){</p><p>unset($_SESSION[''id'']);</p><p>unset($_SESSION[''pass'']);</p><p>}</p><p>if($_POST[''name'']&amp;&amp;$_POST[''password'']){</p><p>&lt;span style="font-family: 微软雅黑;"&gt;&lt;span style="font-size: 16px;line-height:2.5em;"&gt;//用于设置session&lt;/span&gt;&lt;/span&gt;</p><p>$_SESSION[''id'']=$_POST[''name''];</p><p>$_SESSION[''pass'']=$_POST[''password''];</p><p>}</p><p>if($_SESSION[''id'']&amp;&amp;$_SESSION[''pass'']){</p><p>echo "登录成功!</p><p>用户ID:".$_SESSION[''id'']."&lt;br /&gt;用户密码:".$_SESSION[''pass''];</p><p>echo "&lt;br /&gt;";</p><p>echo "&lt;a href=''login.php?out=out''&gt;注销session&lt;/a&gt;";</p><p>}</p><p>&nbsp;</p><p>?&gt;</p><p>&lt;form action="login.php" method="post"&gt;</p><p>用户ID:&lt;input type="text" name="name" /&gt;</p><p>密码:&lt;input type="password" name="password" /&gt;</p><p>&lt;br /&gt;</p><p>&lt;input type="submit" name="submit"&gt;</p><p>&lt;/form&gt;</p><p>使用cookie方式的登录验证实例代码:<br></p><p><a><u>复制代码</u></a> 代码如下:</p><p>if($_GET[''out'']){ //用于注销cookies</p><p>setcookie(''id'',"");</p><p>setcookie(''pass'',"");</p><p>echo "&lt;script&gt;location.href=''login.php''&lt;/script&gt;"; //因为cookies不是及时生效的,只有你再次刷新时才生效,所以,注销后让页面自动刷新。</p><p>}</p><p>if($_POST[''name'']&amp;&amp;$_POST[''password'']) //如果变量用户名和密码存在时,在下面设置cookies</p><p>{ //用于设置cookies</p><p>setcookie(''id'',$_POST[''name''],time()+3600);</p><p>setcookie(''pass'',$_POST[''password''],time()+3600);</p><p>echo "&lt;script&gt;location.href=''login.php''&lt;/script&gt;"; //让cookies及时生效</p><p>}</p><p>if($_COOKIE[''id'']&amp;&amp;$_COOKIE[''pass'']){ //cookies设置成功后,用于显示cookies</p><p>echo "登录成功!&lt;br /&gt;用户名:".$_COOKIE[''id'']."</p><p>密码:".$_COOKIE[''pass''];</p><p>echo "&lt;br /&gt;";</p><p>echo "&lt;a href=''login.php?out=out''&gt;注销cookies&lt;/a&gt;"; </p><p>}</p><p>?&gt;</p><p>&lt;form action="" method="post"&gt;</p><p>用户ID:&lt;input type="text" name="name" /&gt;</p><p>密 码:&lt;input type="password" name="password" /&gt;</p><p>&lt;br /&gt;</p><p>&lt;input type="submit" name="submit"&gt;</p><p>&lt;/form&gt;</p><p>使用session随机码验证投票合法性:</p><p><a><u>复制代码</u></a> 代码如下:</p><p>list.php 选项页面</p><p>session_start();</p><p>$tokenKey = md5(rand(1,100));</p><p>$_SESSION[''tokenKey''] = $tokenKey;</p><p>注意:在传值时同时传入随机码$tokenKeyvote.php&nbsp;&nbsp;投票动作执行页面</p><p>$tokenKey = $_SESSION[''tokenKey''];</p><p>if($_POST[''tokenKey''] !=&nbsp;&nbsp;$tokenKey){&nbsp;&nbsp;&nbsp;&nbsp; //判断随机码是否和上一页相同</p><p>&nbsp;&nbsp;echo "&lt;script&gt;alert(''请重新投票!'');location.href=''list.php'';&lt;/script&gt;";&nbsp;&nbsp; //随机码无效</p><p>&nbsp;&nbsp;exit;</p><p>}else{</p><p>&nbsp;&nbsp;执行投票操作;</p><p>&nbsp;&nbsp;清空session存储的随机码</p><p>}</p><h1><br></h1>'), (31, 237, '<p>这几个宏是为了进行条件编译。一般情况下,源程序中所有的行都参加编译。但是有时希望对其中一部分内容只在满足一定条件才进行编译,也就是对一部分内容指定编译的条件,这就是“条件编译”。有时,希望当满足某条件时对一组语句进行编译,而当条件不满足时则编译另一组语句。 </p><p>&nbsp;&nbsp;&nbsp; 条件编译命令最常见的形式为: </p><p>&nbsp;&nbsp;&nbsp; #ifdef 标识符 </p><p>&nbsp;&nbsp;&nbsp; 程序段1 </p><p>&nbsp;&nbsp;&nbsp; #else </p><p>&nbsp;&nbsp;&nbsp; 程序段2 </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 它的作用是:当标识符已经被定义过(一般是用#define命令定义),则对程序段1进行编译,否则编译程序段2。 </p><p>&nbsp;&nbsp;&nbsp; 其中#else部分也可以没有,即: </p><p>&nbsp;&nbsp;&nbsp; #ifdef </p><p>&nbsp;&nbsp;&nbsp; 程序段1 </p><p>&nbsp;&nbsp;&nbsp; #denif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 这里的“程序段”可以是语句组,也可以是命令行。这种条件编译可以提高C源程序的通用性。如果一个C源程序在不同计算机系统上系统上运行,而不同的计算机又有一定的差异。例如,我们有一个数据类型,在Windows平台中,应该使用long类型表示,而在其他平台应该使用float表示,这样往往需要对源程序作必要的修改,这就降低了程序的通用性。可以用以下的条件编译: </p><p>&nbsp;&nbsp;&nbsp; #ifdef WINDOWS </p><p>&nbsp;&nbsp;&nbsp; #define MYTYPE long </p><p>&nbsp;&nbsp;&nbsp; #else </p><p>&nbsp;&nbsp;&nbsp; #define MYTYPE float </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 如果在Windows上编译程序,则可以在程序的开始加上 </p><p>&nbsp;&nbsp;&nbsp; #define WINDOWS </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 这样则编译下面的命令行: </p><p>&nbsp;&nbsp;&nbsp; #define MYTYPE long </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 如果在这组条件编译命令之前曾出现以下命令行: </p><p>&nbsp;&nbsp;&nbsp; #define WINDOWS 0 </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 则预编译后程序中的MYTYPE都用float代替。这样,源程序可以不必作任何修改就可以用于不同类型的计算机系统。当然以上介绍的只是一种简单的情况,可以根据此思路设计出其它的条件编译。 </p><p>&nbsp;&nbsp;&nbsp; 例如,在调试程序时,常常希望输出一些所需的信息,而在调试完成后不再输出这些信息。可以在源程序中插入以下的条件编译段: </p><p>&nbsp;&nbsp;&nbsp; #ifdef DEBUG </p><p>&nbsp;&nbsp;&nbsp; print ("device_open(%p)/n", file); </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 如果在它的前面有以下命令行: </p><p>&nbsp;&nbsp;&nbsp; #define DEBUG </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 则在程序运行时输出file指针的值,以便调试分析。调试完成后只需将这个define命令行删除即可。有人可能觉得不用条件编译也可达此目的,即在调试时加一批printf语句,调试后一一将printf语句删除去。的确,这是可以的。但是,当调试时加的printf语句比较多时,修改的工作量是很大的。用条件编译,则不必一一删改printf语句,只需删除前面的一条“#define DEBUG”命令即可,这时所有的用DEBUG作标识符的条件编译段都使其中的printf语句不起作用,即起统一控制的作用,如同一个“开关”一样。 </p><p>&nbsp;&nbsp;&nbsp; 有时也采用下面的形式: </p><p>&nbsp;&nbsp;&nbsp; #ifndef 标识符 </p><p>&nbsp;&nbsp;&nbsp; 程序段1 </p><p>&nbsp;&nbsp;&nbsp; #else </p><p>&nbsp;&nbsp;&nbsp; 程序段2 </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 只是第一行与第一种形式不同:将“ifdef”改为“ifndef”。它的作用是:若标识符未被定义则编译程序段1,否则编译程序段2。这种形式与第一种形式的作用相反。 </p><p>&nbsp;&nbsp;&nbsp; 以上两种形式用法差不多,根据需要任选一种,视方便而定。 </p><p>&nbsp;&nbsp;&nbsp; 还有一种形式,就是#if后面的是一个表达式,而不是一个简单的标识符: </p><p>&nbsp;&nbsp;&nbsp; #if 表达式 </p><p>&nbsp;&nbsp;&nbsp; 程序段1 </p><p>&nbsp;&nbsp;&nbsp; #else </p><p>&nbsp;&nbsp;&nbsp; 程序段2 </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 它的作用是:当指定的表达式值为真(非零)时就编译程序段1,否则编译程序段2。可以事先给定一定条件,使程序在不同的条件下执行不同的功能。 </p><p>&nbsp;&nbsp;&nbsp; 例如:输入一行字母字符,根据需要设置条件编译,使之能将字母全改为大写输出,或全改为小写字母输出。 </p><p>&nbsp;&nbsp;&nbsp; #define LETTER 1 </p><p>&nbsp;&nbsp;&nbsp; main() </p><p>&nbsp;&nbsp;&nbsp; { </p><p>&nbsp;&nbsp;&nbsp; char str[20]="C Language",c; </p><p>&nbsp;&nbsp;&nbsp; int i="0"; </p><p>&nbsp;&nbsp;&nbsp; while((c=str[i])!=''/0''){ </p><p>&nbsp;&nbsp;&nbsp; i++; </p><p>&nbsp;&nbsp;&nbsp; #if LETTER </p><p>&nbsp;&nbsp;&nbsp; if(c&gt;=''a''&amp;&amp;c&lt;=''z'') c="c-32"; </p><p>&nbsp;&nbsp;&nbsp; #else </p><p>&nbsp;&nbsp;&nbsp; if(c&gt;=''A''&amp;&amp;c&lt;=''Z'') c="c"+32; </p><p>&nbsp;&nbsp;&nbsp; #endif </p><p>&nbsp;&nbsp;&nbsp; printf("%c",c); </p><p>&nbsp;&nbsp;&nbsp; } </p><p>&nbsp;&nbsp;&nbsp; } </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 运行结果为:C LANGUAGE </p><p>&nbsp;&nbsp;&nbsp; 现在先定义LETTER为1,这样在预处理条件编译命令时,由于LETTER为真(非零),则对第一个if语句进行编译,运行时使小写字母变大写。如果将程序第一行改为: </p><p>&nbsp;&nbsp;&nbsp; #define LETTER 0 </p><p>&nbsp;&nbsp;&nbsp;&nbsp; </p><p>&nbsp;&nbsp;&nbsp; 则在预处理时,对第二个if语句进行编译处理,使大写字母变成小写字母(大写字母与相应的小写字母的ASCII代码差32)。此时运行情况为: </p><p>&nbsp;&nbsp;&nbsp; c language </p><p>&nbsp;&nbsp;&nbsp; 有人会问:不用条件编译命令而直接用if语句也能达到要求,用条件编译命令有什么好处呢?的确,此问题完全可以不用条件编译处理,但那样做目标程序长(因为所有语句都编译),而采用条件编译,可以减少被编译的语句,从而减少目标的长度。当条件编译段比较多时,目标程序长度可以大大减少。</p><p><br><strong><span style="color: rgb(0, 0, 128);">浅谈#ifdef在软件开发中的妙用</span></strong></p><p>  笔者从事UNIX环境下某应用软件的开发与维护工作,用户分布于全国各地,各用户需要的基本功能都是一样的,但在某些功能上要随着需求变化,不断加以升级,要想实现全国各地用户的升级工作是很困难的,而我们则只是利用E-mail发送补丁程序给用户,这些补丁程序都是在一套软件的基础上不断地修改与扩充而编写的,并由不同的标志文件转入到不同的模块,虽然程序体积在不断扩大,但丝毫不影响老用户的功能,这主要是得益于C程序的 #ifdef/#else/#endif的作用。</p><p>&nbsp;<br>  我们主要使用以下几种方法,假设我们已在程序首部定义#ifdef DEBUG与#ifdef TEST:</p><p>  1.利用#ifdef/#endif将某程序功能模块包括进去,以向某用户提供该功能。</p><p>  在程序首部定义#ifdef HNLD:</p><p>  #ifdef HNLD</p><p>  include"n166_hn.c"</p><p>  #endif</p><p>  如果不许向别的用户提供该功能,则在编译之前将首部的HNLD加一下划线即可。</p><p>  2.在每一个子程序前加上标记,以便追踪程序的运行。</p><p>  #ifdef DEBUG</p><p>  printf(" Now is in hunan !");</p><p>  #endif</p><p>  3.避开硬件的限制。有时一些具体应用环境的硬件不一样,但限于条件,本地缺乏这种设备,于是绕过硬件,直接写出预期结果。具体做法是:</p><p>  #ifndef TEST</p><p>  i=dial(); </p><p>  //程序调试运行时绕过此语句</p><p>  #else </p><p>  i=0;</p><p>  #endif</p><p>  调试通过后,再屏蔽TEST的定义并重新编译,即可发给用户使用了。 </p><p><strong><span style="color: rgb(0, 0, 128);"># ifdef&nbsp; #ifndef 等用法(转)</span></strong></p><p>  头件的中的#ifndef,这是一个很关键的东西。比如你有两个C文件,这两个C文件都include了同一个头文件。而编译时,这两个C文件要一同编译成一个可运行文件,于是问题来了,大量的声明冲突。 </p><p>还是把头文件的内容都放在#ifndef和#endif中吧。不管你的头文件会不会被多个文件引用,你都要加上这个。一般格式是这样的: </p><p>#ifndef &lt;标识&gt; <br>#define &lt;标识&gt; </p><p>...... <br>...... </p><p>#endif </p><p>&lt;标识&gt;在理论上来说可以是自由命名的,但每个头文件的这个“标识”都应该是唯一的。标识的命名规则一般是头文件名全大写,前后加下划线,并把文件名中的“.”也变成下划线,如:stdio.h </p><p>#ifndef _STDIO_H_ <br>#define _STDIO_H_ </p><p>...... </p><p>#endif </p><p>2.在#ifndef中定义变量出现的问题(一般不定义在#ifndef中)。</p><p>#ifndef AAA<br>#define AAA<br>...<br>int i;<br>...<br>#endif<br>里面有一个变量定义<br>在vc中链接时就出现了i重复定义的错误,而在c中成功编译。</p><p>结论:</p><p>(1).当你第一个使用这个头的.cpp文件生成.obj的时候,int i 在里面定义了当另外一个使用这个的.cpp再次[单独]生成.obj的时候,int i 又被定义然后两个obj被另外一个.cpp也include 这个头的,连接在一起,就会出现重复定义.</p><p>(2).把源程序文件扩展名改成.c后,VC按照C语言的语法对源程序进行编译,而不是C++。在C语言中,若是遇到多个int i,则自动认为其中一个是定义,其他的是声明。</p><p>(3).C语言和C++语言连接结果不同,可能(猜测)时在进行编译的时候,C++语言将全局<br>变量默认为强符号,所以连接出错。C语言则依照是否初始化进行强弱的判断的。(参考)</p><p>解决方法:</p><p>(1).把源程序文件扩展名改成.c。</p><p>(2).推荐解决方案:<br>.h中只声明 extern int i;在.cpp中定义</p><p>&lt;x.h&gt;<br>#ifndef __X_H__<br>#define __X_H__<br>extern int i;<br>#endif //__X_H__<br>&lt;x.c&gt;<br>int i;</p><p>注意问题:</p><p>(1).变量一般不要定义在.h文件中。</p>'), (32, 238, '<p>MySQL服务器的连接数并不是要达到最大的100%为好,还是要具体问题具体分析,下面就对<a href="http://database.51cto.com/art/201010/229528.htm">MySQL</a>服务器最大连接数的合理设置进行了详尽的分析,供您参考。</p><p>我们经常会遇见“MySQL: ERROR 1040: Too many connections”的情况,一种是访问量确实很高,MySQL服务器抗不住,这个时候就要考虑增加从服务器分散读压力,另外一种情况是MySQL配置文件中max_connections值过小:</p><p>mysql&gt; show variables like ''max_connections'';<br>+-----------------+-------+<br>| Variable_name | Value |<br>+-----------------+-------+<br>| max_connections | 256 |<br>+-----------------+-------+</p><p>这台MySQL服务器最大连接数是256,然后查询一下服务器响应的最大连接数:</p><p>mysql&gt; show global status like ''Max_used_connections'';</p><p>MySQL服务器过去的最大连接数是245,没有达到服务器连接数上限256,应该没有出现1040错误,比较理想的设置是:</p><p>Max_used_connections / max_connections * 100% ≈ 85%</p><p>最大连接数占上限连接数的85%左右,如果发现比例在10%以下,MySQL服务器连接上线就设置得过高了。</p><p><br></p><p><br></p><pre><code>mysql中查看最大连接数max方法:<br>命令: show status;<br>命令:show status like ''%下面变量%'';<br>其中:Max_used_connections 同时使用的连接的最大数目。 <br><br>其它状态说明:<br>Aborted_clients 由于客户没有正确关闭连接已经死掉,已经放弃的连接数量。 <br>Aborted_connects 尝试已经失败的MySQL服务器的连接的次数。 <br>Connections 试图连接MySQL服务器的次数。 <br>Created_tmp_tables 当执行语句时,已经被创造了的隐含临时表的数量。 <br>Delayed_insert_threads 正在使用的延迟插入处理器线程的数量。 <br>Delayed_writes 用INSERT DELAYED写入的行数。 <br>Delayed_errors 用INSERT DELAYED写入的发生某些错误(可能重复键值)的行数。 <br>Flush_commands 执行FLUSH命令的次数。 <br>Handler_delete 请求从一张表中删除行的次数。 <br>Handler_read_first 请求读入表中第一行的次数。 <br>Handler_read_key 请求数字基于键读行。 <br>Handler_read_next 请求读入基于一个键的一行的次数。 <br>Handler_read_rnd 请求读入基于一个固定位置的一行的次数。 <br>Handler_update 请求更新表中一行的次数。 <br>Handler_write 请求向表中插入一行的次数。 <br>Key_blocks_used 用于关键字缓存的块的数量。 <br>Key_read_requests 请求从缓存读入一个键值的次数。 <br>Key_reads 从磁盘物理读入一个键值的次数。 <br>Key_write_requests 请求将一个关键字块写入缓存次数。 <br>Key_writes 将一个键值块物理写入磁盘的次数。 <br>Max_used_connections 同时使用的连接的最大数目。 <br>Not_flushed_key_blocks 在键缓存中已经改变但是还没被清空到磁盘上的键块。 <br>Not_flushed_delayed_rows 在INSERT DELAY队列中等待写入的行的数量。 <br>Open_tables 打开表的数量。 <br>Open_files 打开文件的数量。 <br>Open_streams 打开流的数量(主要用于日志记载) <br>Opened_tables 已经打开的表的数量。 <br>Questions 发往服务器的查询的数量。 <br>Slow_queries 要花超过long_query_time时间的查询数量。 <br>Threads_connected 当前打开的连接的数量。 <br>Threads_running 不在睡眠的线程数量。 <br>Uptime 服务器工作了多少秒。</code></pre>'), (33, 239, '<p><a href="http://www.example.com" target="_blank">http://blog.csdn.net/e421083458/article/details/38342051</a></p>'), (34, 240, '<p><a href="http://www.example.com" target="_blank">http://www.cnblogs.com/Bozh/archive/2013/01/22/2871545.html</a></p><p>安装MySQL后,配置文件my.cnf在 /MySQL安装目录/share/mysql目录中,该目录中还包含多个配置文件可供参考,有my-large.cnf ,my-huge.cnf, &nbsp;my-medium.cnf,my-small.cnf,分别对应大中小型数据库应用的配置。win环境下即存在于MySQL安装目录中的.ini文件。</p><p>&nbsp;</p><p>下面列出了对性能优化影响较大的主要变量,主要分为连接请求的变量和缓冲区变量。</p><p><strong>1.&nbsp;&nbsp;&nbsp;</strong><strong>连接请求的变量:</strong></p><h2>1)&nbsp;&nbsp;&nbsp;&nbsp; max_connections</h2><p>MySQL的最大连接数,增加该值增加mysqld 要求的文件描述符的数量。如果服务器的并发连接请求量比较大,建议调高此值,以增加并行连接数量,当然这建立在机器能支撑的情况下,因为如果连接数越多,介于MySQL会为每个连接提供连接缓冲区,就会开销越多的内存,所以要适当调整该值,不能盲目提高设值。</p><p>数值过小会经常出现ERROR 1040: Too many connections错误,可以过’conn%’通配符查看当前状态的连接数量,以定夺该值的大小。</p><p>show variables like ‘max_connections’ 最大连接数</p><p>show&nbsp; status like ‘max_used_connections’响应的连接数</p><p>如下:</p><p>mysql&gt; show variables like ‘max_connections‘;</p><p>+———————–+——-+</p><p>| Variable_name | Value |</p><p>+———————–+——-+</p><p>| max_connections | 256  |</p><p>+———————–+——-+</p><p>mysql&gt; show status like ‘max%connections‘;</p><p>+———————–+——-+</p><p>| Variable_name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Value |</p><p>+—————————-+——-+</p><p>| max_used_connections | 256|</p><p>+—————————-+——-+</p><p>max_used_connections / max_connections * 100% (理想值≈ 85%)&nbsp;</p><p>如果max_used_connections跟max_connections相同 那么就是max_connections设置过低或者超过服务器负载上限了,低于10%则设置过大。</p><h2>2)&nbsp;&nbsp;&nbsp;&nbsp; back_log</h2><p>MySQL能暂存的连接数量。当主要MySQL线程在一个很短时间内得到非常多的连接请求,这就起作用。如果MySQL的连接数据达到max_connections时,新来的请求将会被存在堆栈中,以等待某一连接释放资源,该堆栈的数量即back_log,如果等待连接的数量超过back_log,将不被授予连接资源。</p><p>back_log值指出在MySQL暂时停止回答新请求之前的短时间内有多少个请求可以被存在堆栈中。只有如果期望在一个短时间内有很多连接,你需要增加它,换句话说,这值对到来的TCP/IP连接的侦听队列的大小。</p><p>当观察你主机进程列表(mysql&gt; show full processlist),发现大量264084 | unauthenticated user | xxx.xxx.xxx.xxx | NULL | Connect | NULL | login | NULL 的待连接进程时,就要加大back_log 的值了。</p><p>默认数值是50,可调优为128,对于<a href="http://www.2cto.com/os/linux/" target="_blank">Linux</a>系统设置范围为小于512的整数。&nbsp;</p><h2>3)&nbsp;&nbsp;&nbsp;&nbsp; interactive_timeout</h2><p>一个交互连接在被服务器在关闭前等待行动的秒数。一个交互的客户被定义为对mysql_real_connect()使用CLIENT_INTERACTIVE 选项的客户。&nbsp;</p><p>默认数值是28800,可调优为7200。&nbsp;</p><p><strong>2.&nbsp;&nbsp;&nbsp;</strong><strong>缓冲区变量</strong></p><p><strong>全局缓冲:</strong></p><h2>4)&nbsp;&nbsp;&nbsp;&nbsp; key_buffer_size</h2><p>key_buffer_size指定索引缓冲区的大小,它决定索引处理的速度,尤其是索引读的速度。通过检查状态值Key_read_requests和Key_reads,可以知道key_buffer_size设置是否合理。比例key_reads / key_read_requests应该尽可能的低,至少是1:100,1:1000更好(上述状态值可以使用SHOW STATUS LIKE ‘key_read%’获得)。</p><p>key_buffer_size只对MyISAM表起作用。即使你不使用MyISAM表,但是内部的临时磁盘表是MyISAM表,也要使用该值。可以使用检查状态值created_tmp_disk_tables得知详情。</p><p>举例如下:</p><p>mysql&gt; show variables like ‘key_buffer_size‘;</p><p>+——————-+————+</p><p>| Variable_name | Value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</p><p>+———————+————+</p><p>| key_buffer_size | 536870912 |</p><p>+———— ———-+————+</p><p>key_buffer_size为512MB,我们再看一下key_buffer_size的使用情况:</p><p>mysql&gt; show global status like ‘key_read%‘;</p><p>+————————+————-+</p><p>| Variable_name &nbsp; | Value&nbsp;&nbsp; &nbsp;|</p><p>+————————+————-+</p><p>| Key_read_requests| 27813678764 |</p><p>| Key_reads   | &nbsp;6798830 &nbsp; &nbsp;&nbsp;&nbsp;|</p><p>+————————+————-+</p><p>一共有27813678764个索引读取请求,有6798830个请求在内存中没有找到直接从硬盘读取索引,计算索引未命中缓存的概率:</p><p>key_cache_miss_rate =Key_reads / Key_read_requests * 100%,设置在1/1000左右较好</p><p>默认配置数值是8388600(8M),主机有4GB内存,可以调优值为268435456(256MB)。</p><h2>5)&nbsp;&nbsp;&nbsp;&nbsp; query_cache_size</h2><p>使用查询缓冲,MySQL将查询结果存放在缓冲区中,今后对于同样的SELECT语句(区分大小写),将直接从缓冲区中读取结果。</p><p>通过检查状态值Qcache_*,可以知道query_cache_size设置是否合理(上述状态值可以使用SHOW STATUS LIKE ‘Qcache%’获得)。如果Qcache_lowmem_prunes的值非常大,则表明经常出现缓冲不够的情况,如果Qcache_hits的值也非常大,则表明查询缓冲使用非常频繁,此时需要增加缓冲大小;如果Qcache_hits的值不大,则表明你的查询重复率很低,这种情况下使用查询缓冲反而会影响效率,那么可以考虑不用查询缓冲。此外,在SELECT语句中加入SQL_NO_CACHE可以明确表示不使用查询缓冲。</p><p>&nbsp;</p><p>与查询缓冲有关的参数还有query_cache_type、query_cache_limit、query_cache_min_res_unit。</p><p>&nbsp;</p><p>query_cache_type指定是否使用查询缓冲,可以设置为0、1、2,该变量是SESSION级的变量。</p><p>query_cache_limit指定单个查询能够使用的缓冲区大小,缺省为1M。</p><p>query_cache_min_res_unit是在4.1版本以后引入的,它指定分配缓冲区空间的最小单位,缺省为4K。检查状态值Qcache_free_blocks,如果该值非常大,则表明缓冲区中碎片很多,这就表明查询结果都比较小,此时需要减小query_cache_min_res_unit。</p><p>举例如下:</p><p>mysql&gt; show global status like ‘qcache%‘;</p><p>+——————————-+—————–+</p><p>| Variable_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Value &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</p><p>+——————————-+—————–+</p><p>| Qcache_free_blocks &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 22756 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</p><p>| Qcache_free_memory &nbsp;&nbsp;&nbsp; | 76764704&nbsp;&nbsp;&nbsp; |</p><p>| Qcache_hits     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 213028692 |</p><p>| Qcache_inserts    &nbsp;&nbsp;&nbsp;&nbsp; | 208894227&nbsp;&nbsp; |</p><p>| Qcache_lowmem_prunes&nbsp;&nbsp; | 4010916&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</p><p>| Qcache_not_cached | 13385031&nbsp;&nbsp;&nbsp; |</p><p>| Qcache_queries_in_cache | 43560 |</p><p>| Qcache_total_blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 111212 &nbsp;&nbsp;&nbsp;&nbsp; |</p><p>+——————————-+—————–+</p><p>mysql&gt; show variables like ‘query_cache%‘;</p><p>+————————————–+————–+</p><p>| Variable_name     &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; | Value &nbsp;&nbsp;&nbsp;&nbsp; |</p><p>+————————————–+———–+</p><p>| query_cache_limit     &nbsp;&nbsp;&nbsp; | 2097152 &nbsp;&nbsp;&nbsp; |</p><p>| query_cache_min_res_unit &nbsp;&nbsp;&nbsp;&nbsp; | 4096  &nbsp; |</p><p>| query_cache_size     &nbsp;&nbsp;&nbsp; | 203423744 |</p><p>| query_cache_type     &nbsp;&nbsp; | ON &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |</p><p>| query_cache_wlock_invalidate | OFF &nbsp; |</p><p>+————————————–+—————+</p><p>查询缓存碎片率= Qcache_free_blocks / Qcache_total_blocks * 100%</p><p>如果查询缓存碎片率超过20%,可以用FLUSH QUERY CACHE整理缓存碎片,或者试试减小query_cache_min_res_unit,如果你的查询都是小数据量的话。</p><p>查询缓存利用率= (query_cache_size – Qcache_free_memory) / query_cache_size * 100%</p><p>查询缓存利用率在25%以下的话说明query_cache_size设置的过大,可适当减小;查询缓存利用率在80%以上而且Qcache_lowmem_prunes &gt; 50的话说明query_cache_size可能有点小,要不就是碎片太多。</p><p>查询缓存命中率= (Qcache_hits – Qcache_inserts) / Qcache_hits * 100%</p><p>示例服务器查询缓存碎片率=20.46%,查询缓存利用率=62.26%,查询缓存命中率=1.94%,命中率很差,可能写操作比较频繁吧,而且可能有些碎片。</p><p><strong>每个连接的缓冲</strong></p><h2>6)&nbsp;&nbsp;&nbsp;&nbsp;record_buffer_size</h2><p>每个进行一个顺序扫描的线程为其扫描的每张表分配这个大小的一个缓冲区。如果你做很多顺序扫描,你可能想要增加该值。</p><p>默认数值是131072(128K),可改为16773120 (16M)</p><h2>7)&nbsp;&nbsp;&nbsp;&nbsp; read_rnd_buffer_size</h2><p>随机读缓冲区大小。当按任意顺序读取行时(例如,按照排序顺序),将分配一个随机读缓存区。进行排序查询时,MySQL会首先扫描一遍该缓冲,以避免磁盘搜索,提高查询速度,如果需要排序大量数据,可适当调高该值。但MySQL会为每个客户连接发放该缓冲空间,所以应尽量适当设置该值,以避免内存开销过大。</p><p>一般可设置为16M&nbsp;</p><h2>8)&nbsp;&nbsp;&nbsp;&nbsp; sort_buffer_size</h2><p>每个需要进行排序的线程分配该大小的一个缓冲区。增加这值加速ORDER BY或GROUP BY操作。</p><p>默认数值是2097144(2M),可改为16777208 (16M)。</p><h2>9)&nbsp;&nbsp;&nbsp;&nbsp; join_buffer_size</h2><p>联合查询操作所能使用的缓冲区大小</p><p><strong>record_buffer_size</strong><strong>,read_rnd_buffer_size,sort_buffer_size,join_buffer_size为每个线程独占,也就是说,如果有100个线程连接,则占用为16M*100</strong></p><h2>10)&nbsp; table_cache</h2><p>表高速缓存的大小。每当MySQL访问一个表时,如果在表缓冲区中还有空间,该表就被打开并放入其中,这样可以更快地访问表内容。<strong>通过检查峰值时间的状态值</strong>Open_tables<strong>和</strong>Opened_tables<strong>,可以决定是否需要增加</strong>table_cache<strong>的值。</strong>如果你发现open_tables等于table_cache,并且opened_tables在不断增长,那么你就需要增加table_cache的值了(上述状态值可以使用SHOW STATUS LIKE ‘Open%tables’获得)。注意,不能盲目地把table_cache设置成很大的值。如果设置得太高,可能会造成文件描述符不足,从而造成性能不稳定或者连接失败。</p><p>1G内存机器,推荐值是128-256。内存在4GB左右的服务器该参数可设置为256M或384M。</p><h2>11)&nbsp; max_heap_table_size</h2><p>用户可以创建的内存表(memory table)的大小。这个值用来计算内存表的最大行数值。这个变量支持动态改变,即set @max_heap_table_size=#</p><p>这个变量和tmp_table_size一起限制了内部内存表的大小。如果某个内部heap(堆积)表大小超过tmp_table_size,MySQL可以根据需要自动将内存中的heap表改为基于硬盘的MyISAM表。</p><h2>12)&nbsp; tmp_table_size</h2><p>通过设置tmp_table_size选项来增加一张临时表的大小,例如做高级GROUP BY操作生成的临时表。如果调高该值,MySQL同时将增加heap表的大小,可达到提高联接查询速度的效果,<strong>建议尽量优化查询,要确保查询过程中生成的临时表在内存中,避免临时表过大导致生成基于硬盘的MyISAM表</strong>。</p><p>mysql&gt; show global status like ‘created_tmp%‘;</p><p>+——————————–+———+</p><p>| Variable_name  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Value |</p><p>+———————————-+———+</p><p>| Created_tmp_disk_tables | 21197&nbsp; |</p><p>| Created_tmp_files   | 58  |</p><p>| Created_tmp_tables  | 1771587 |</p><p>+——————————–+———–+</p><p>每次创建临时表,Created_tmp_tables增加,如果临时表大小超过tmp_table_size,则是在磁盘上创建临时表,Created_tmp_disk_tables也增加,Created_tmp_files表示MySQL服务创建的临时文件文件数,比较理想的配置是:</p><p>Created_tmp_disk_tables / Created_tmp_tables * 100% &lt;= 25%比如上面的服务器Created_tmp_disk_tables / Created_tmp_tables * 100% =1.20%,应该相当好了</p><p>默认为16M,可调到64-256最佳,线程独占,太大可能内存不够I/O堵塞</p><h2>13)&nbsp;&nbsp;thread_cache_size</h2><p>可以复用的保存在中的线程的数量。如果有,新的线程从缓存中取得,当断开连接的时候如果有空间,客户的线置在缓存中。如果有很多新的线程,为了提高性能可以这个变量值。</p><p>通过比较 Connections和Threads_created状态的变量,可以看到这个变量的作用。</p><p>默认值为110,可调优为80。&nbsp;</p><h2>14)&nbsp; thread_concurrency</h2><p>推荐设置为服务器&nbsp;CPU核数的2倍,例如双核的CPU, 那么thread_concurrency的应该为4;2个双核的cpu,&nbsp;thread_concurrency的值应为8。默认为8</p><h2>15)&nbsp; wait_timeout</h2><p>指定一个请求的最大连接时间,对于4GB左右内存的服务器可以设置为5-10。</p><p>&nbsp;</p><p>3.&nbsp;&nbsp;&nbsp;&nbsp;配置InnoDB的几个变量</p><p><strong>innodb_buffer_pool_size</strong></p><p>对于InnoDB表来说,innodb_buffer_pool_size的作用就相当于key_buffer_size对于MyISAM表的作用一样。InnoDB使用该参数指定大小的内存来缓冲数据和索引。对于单独的MySQL<a href="http://www.2cto.com/database/" target="_blank">数据库</a>服务器,最大可以把该值设置成物理内存的80%。</p><p>根据MySQL手册,对于2G内存的机器,推荐值是1G(50%)。</p><p>&nbsp;</p><p><strong>innodb_flush_log_at_trx_commit</strong></p><p>主要控制了innodb将log buffer中的数据写入日志文件并flush磁盘的时间点,取值分别为0、1、2三个。0,表示当事务提交时,不做日志写入操作,而是每秒钟将log buffer中的数据写入日志文件并flush磁盘一次;1,则在每秒钟或是每次事物的提交都会引起日志文件写入、flush磁盘的操作,确保了事务的ACID;设置为2,每次事务提交引起写入日志文件的动作,但每秒钟完成一次flush磁盘操作。</p><p>实际测试发现,该值对插入数据的速度影响非常大,设置为2时插入10000条记录只需要2秒,设置为0时只需要1秒,而设置为1时则需要229秒。因此,MySQL手册也建议尽量将插入操作合并成一个事务,这样可以大幅提高速度。</p><p>根据MySQL手册,在允许丢失最近部分事务的危险的前提下,可以把该值设为0或2。</p><p>&nbsp;</p><p><strong>innodb_log_buffer_size</strong></p><p>log缓存大小,一般为1-8M,默认为1M,对于较大的事务,可以增大缓存大小。</p><p>可设置为4M或8M。</p><p>&nbsp;</p><p><strong>innodb_additional_mem_pool_size</strong></p><p>该参数指定InnoDB用来存储数据字典和其他内部数据结构的内存池大小。缺省值是1M。通常不用太大,只要够用就行,应该与表结构的复杂度有关系。如果不够用,MySQL会在错误日志中写入一条警告信息。</p><p>根据MySQL手册,对于2G内存的机器,推荐值是20M,可适当增加。</p><p>&nbsp;</p><p><strong>innodb_thread_concurrency=8</strong></p><p>推荐设置为&nbsp;2*(NumCPUs+NumDisks),默认一般为8</p><p><a href="http://www.example.com" target="_blank"><br></a></p>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (35, 241, '<h2><span style="color: rgb(0, 0, 0);"><strong>一般模式: 移动光标的方法</strong></span></h2><p><br></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">h <span style="color: rgb(0, 0, 0);">或 向左方向键<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">←<span style="color: rgb(0, 0, 0);">) <span style="color: rgb(0, 0, 0);">光标向左移动一个字符<br><span style="color: rgb(0, 0, 0);">j <span style="color: rgb(0, 0, 0);">或 向下方向键<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">↓<span style="color: rgb(0, 0, 0);">) <span style="color: rgb(0, 0, 0);">光标向下移动一个字符<br><span style="color: rgb(0, 0, 0);">k <span style="color: rgb(0, 0, 0);">或 向上方向键<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">↑<span style="color: rgb(0, 0, 0);">) <span style="color: rgb(0, 0, 0);">光标向上移动一个字符<br><span style="color: rgb(0, 0, 0);">l <span style="color: rgb(0, 0, 0);">或 向右方向键<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">→<span style="color: rgb(0, 0, 0);">) <span style="color: rgb(0, 0, 0);">光标向右移动一个字符</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">0<span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">:移动到这一行的最前面字符处 <span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">常用<span style="color: rgb(0, 0, 0);">)<br><span style="color: rgb(0, 0, 0);">$ <span style="color: rgb(0, 0, 0);">移动到这一行的最后面字符处<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">常用<span style="color: rgb(0, 0, 0);">)<br><span style="color: rgb(0, 0, 0);">H <span style="color: rgb(0, 0, 0);">光标移动到这个屏幕的最上方那一行<br><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">L <span style="color: rgb(0, 0, 0);">光标移动到这个屏幕的最下方那一行<br><span style="color: rgb(0, 0, 0);">G <span style="color: rgb(0, 0, 0);">移动到这个档案的最后一行<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">常用<span style="color: rgb(0, 0, 0);">)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>n&lt;space&gt;</strong><br><span style="color: rgb(0, 0, 0);">那个 <span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">表示『数字』,例如 <span style="color: rgb(0, 0, 0);">20 <span style="color: rgb(0, 0, 0);">。按下数字后再按空格键,光标<span style="color: rgb(0, 0, 0);">会向右移动这一行的 <span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">个字符。例如 <span style="color: rgb(0, 0, 0);">20&lt;space&gt; <span style="color: rgb(0, 0, 0);">则光标会向后面<span style="color: rgb(0, 0, 0);">移动 <span style="color: rgb(0, 0, 0);">20 <span style="color: rgb(0, 0, 0);">个字符距离。</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>n&lt;Enter&gt;</strong></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">为数字。光标向下移动 <span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">行<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">常用<span style="color: rgb(0, 0, 0);">)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>nG</strong><br><span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">为数字。移动到这个档案的第 <span style="color: rgb(0, 0, 0);">n <span style="color: rgb(0, 0, 0);">行。例如 <span style="color: rgb(0, 0, 0);">20G <span style="color: rgb(0, 0, 0);">则会移动到这个<span style="color: rgb(0, 0, 0);">档案的第 <span style="color: rgb(0, 0, 0);">20 <span style="color: rgb(0, 0, 0);">行<span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">可配合 <span style="color: rgb(0, 0, 0);">:set nu)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>/word</strong><br><span style="color: rgb(0, 0, 0);">向光标之下寻找一个字符串名称为 <span style="color: rgb(0, 0, 0);">word <span style="color: rgb(0, 0, 0);">的字符串。</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>?word</strong></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">&nbsp;<span style="color: rgb(0, 0, 0);">向光标之上寻找一个字符串名称为 <span style="color: rgb(0, 0, 0);">word <span style="color: rgb(0, 0, 0);">的字符串。</span></span></span></span></span></span></span></span><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></span></span></span></span><br></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><strong>:n1,n2s/word1/word2/g</strong><br><span style="color: rgb(0, 0, 0);">n1 <span style="color: rgb(0, 0, 0);">与 <span style="color: rgb(0, 0, 0);">n2 <span style="color: rgb(0, 0, 0);">为数字。在第 <span style="color: rgb(0, 0, 0);">n1 <span style="color: rgb(0, 0, 0);">与 <span style="color: rgb(0, 0, 0);">n2 <span style="color: rgb(0, 0, 0);">行之间寻找 <span style="color: rgb(0, 0, 0);">word1 <span style="color: rgb(0, 0, 0);">这个字符<span style="color: rgb(0, 0, 0);">串,并将该字符串取代为 <span style="color: rgb(0, 0, 0);">word2 <span style="color: rgb(0, 0, 0);">!举例来说,在 <span style="color: rgb(0, 0, 0);">100 <span style="color: rgb(0, 0, 0);">到 <span style="color: rgb(0, 0, 0);">200 <span style="color: rgb(0, 0, 0);">行<span style="color: rgb(0, 0, 0);">之间搜寻 <span style="color: rgb(0, 0, 0);">vbird <span style="color: rgb(0, 0, 0);">并取代为 <span style="color: rgb(0, 0, 0);">VBIRD <span style="color: rgb(0, 0, 0);">则:<span style="color: rgb(0, 0, 0);">『 <span style="color: rgb(0, 0, 0);">:100,200s/vbird/VBIRD/g<span style="color: rgb(0, 0, 0);">』。 <span style="color: rgb(0, 0, 0);">(<span style="color: rgb(0, 0, 0);">常用<span style="color: rgb(0, 0, 0);">)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p><p><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></p><p><strong>&nbsp;:1,$s/word1/word2/g</strong></p><p>从第一行到最后一行寻找 word1 字符串,并将该字符串取代为word2 ! (常用)</p><p><br></p><p><strong>x, X</strong></p><p>在一行字当中, x 为向后删除一个字符 (相当于 [del] 按键), X为向前删除一个字符(相当于 [backspace] 亦即是退格键) (常用)</p><p><br></p><p><strong>nx</strong></p><p>n 为数字,连续向后删除 n 个字符。举例来说,我要连续删除 10个字符, 『 10x』。</p><p><br></p><p><strong>dd</strong> </p><p>删除游标所在的那一整行(常用)</p><p><br></p><p><strong>ndd</strong></p><p>n 为数字。删除光标所在的向下 n 列,例如 20dd 则是删除 行(常用)</p><p><br></p><p><strong>p, P</strong></p><p>p 为将已复制的数据在光标下一行贴上, P 则为贴在游标上一行!举例来说,我目前光标在第 20 行,且已经复制了 10 行数据。则按下 p 后, 那 10 行数据会贴在原本的 20 行之后,亦即由 21行开始贴。但如果是按下 P 呢? 那么原本的第 20 行会被推到变成 30 行。 (常用)</p><p><br></p><p><strong>u</strong> </p><p>复原前一个动作。 (常用)</p><p><br></p><p><strong>[Ctrl]+r</strong></p><p>&nbsp;重做上一个动作。 (常用)</p><p><br></p><h2><strong>编辑模式</strong></h2><p><br></p><p><strong>a, A</strong></p><p>a 为『从目前光标所在的下一个字符处开始插入』, A 为『从光标所在行的最后一个字符处开始插入』。 (常用)</p><p><br></p><p><strong>o, O</strong></p><p>这是英文字母 o 的大小写。 o 为『在目前光标所在的下一行处插入新的一行』; O 为在目前光标所在处的上一行插入新的一行!(常用)</p><p><br></p><h2><strong>指令模式</strong></h2><p><br></p><p><span style="color: rgb(0, 0, 0);"></span><p><strong>:e!</strong> </p><p>将档案还原到最原始的状态!</p><p><br></p><p><strong>:w [filename]</strong> </p><p>将编辑的数据储存成另一个档案(类似另存新档)</p><p><br></p><p><strong>:set nu</strong></p><p>&nbsp;显示行号,设定之后,会在每一行的前缀显示该行的行号</p><p><br></p><p><strong>:set nonu</strong> </p><p>与 set nu 相反,为取消行号!</p>'), (36, 242, '<p>1. 如同前面 bash command 提到的,指令与参数间的多个空白会被忽略掉;</p><p>2. 而空白行也将被忽略掉!,并且 [tab] 也是不会被理会的!</p><p>3. 如果读取到一个 Enter 符号 ( CR )),就尝试开始执行该行命令;</p><p>4. 至于如果一行的内容太多,则可以使用 \\[Enter] 来延伸至下一行;</p><p>5. 此外,使用最多的 # 可做为批注!任何加在 # 后面的字,将全部被视为批注文字而被忽略!</p><p>来源:鸟哥私房菜</p>'), (37, 243, '<pre><code class="lang-bash">#!/bin/sh\r\n\r\nPATH=$PATH:/home/dmtsai/bin\r\nPATH="$PATH":/home/dmtsai/bin<br></code></pre>'), (60, 266, '<pre><code>#include &lt;stdio.h&gt;\r\n#include &lt;malloc.h&gt;\r\n#include &lt;stdbool.h&gt;\r\n\r\n//定义一个链表节点\r\ntypedef struct Node {\r\n int data;\r\n struct Node * pNext;\r\n} NODE, * PNODE;\r\n\r\n//定义一个栈\r\ntypedef struct stack {\r\n PNODE pTop;\r\n PNODE pBottom;\r\n} STACK, * PSTACK;\r\n\r\n//初始化栈\r\nvoid init(PSTACK);\r\n//入栈\r\nvoid push(PSTACK,int);\r\n//出栈\r\nvoid pop(PSTACK,int *);\r\n//遍历栈\r\nvoid traverse(PSTACK);\r\n//栈是否为空\r\nbool isEmpty(PSTACK);\r\n//清空栈\r\nvoid clear(PSTACK);\r\n\r\n\r\nmain()\r\n{\r\n //定义栈\r\n STACK stack;\r\n\r\n //初始化栈\r\n init(&amp;stack);\r\n\r\n //入栈\r\n push(&amp;stack,45);\r\n push(&amp;stack,56);\r\n push(&amp;stack,77);\r\n\r\n //遍历栈\r\n printf("栈内容为:");\r\n traverse(&amp;stack);\r\n printf("\\n");\r\n\r\n //出栈\r\n int val;\r\n pop(&amp;stack,&amp;val);\r\n printf("\\n");\r\n\r\n //清空栈\r\n //clear(&amp;stack);\r\n\r\n //遍历栈\r\n printf("出栈后内容为:");\r\n traverse(&amp;stack);\r\n printf("\\n");\r\n}\r\n\r\n//初始化栈\r\nvoid init(PSTACK pStack)\r\n{\r\n pStack-&gt;pTop=(PNODE)malloc(sizeof(NODE));\r\n if (pStack-&gt;pTop == NULL) {\r\n printf("创建内存失败!\\n");\r\n exit(-1);\r\n }\r\n\r\n pStack-&gt;pBottom=pStack-&gt;pTop;\r\n pStack-&gt;pBottom-&gt;pNext = NULL;\r\n}\r\n\r\n//入栈\r\nvoid push(PSTACK pStack, int val)\r\n{\r\n PNODE pNew;\r\n pNew=(PNODE)malloc(sizeof(NODE));\r\n pNew-&gt;data=val;\r\n pNew-&gt;pNext=pStack-&gt;pTop;\r\n pStack-&gt;pTop=pNew;\r\n}\r\n\r\n//栈是否为空\r\nbool isEmpty(PSTACK pStack)\r\n{\r\n return pStack-&gt;pTop == pStack-&gt;pBottom ? true : false;\r\n}\r\n\r\n//遍历栈\r\nvoid traverse(PSTACK pStack)\r\n{\r\n if (isEmpty(pStack))\r\n {\r\n printf("当前栈为空!\\b");\r\n exit(-1);\r\n }\r\n\r\n PNODE p;\r\n p = pStack-&gt;pTop;\r\n while(p != pStack-&gt;pBottom)\r\n {\r\n printf("%d ",p-&gt;data);\r\n p=p-&gt;pNext;\r\n }\r\n printf("\\n");\r\n}\r\n\r\n//出栈\r\nvoid pop(PSTACK pStack,int * val)\r\n{\r\n if (isEmpty(pStack))\r\n {\r\n printf("当前栈为空!\\n");\r\n exit(-1);\r\n }\r\n\r\n PNODE p;\r\n p = pStack-&gt;pTop;\r\n val = p-&gt;data;\r\n pStack-&gt;pTop=p-&gt;pNext;\r\n free(p);\r\n printf("出栈的元素为:%d\\n",val);\r\n}\r\n\r\n//清空栈\r\nvoid clear(PSTACK pStack)\r\n{\r\n PNODE pNew = NULL;\r\n while (pStack-&gt;pTop != pStack-&gt;pBottom) {\r\n pNew = pStack-&gt;pTop;\r\n pStack-&gt;pTop = pStack-&gt;pTop-&gt;pNext;\r\n free(pNew);\r\n }\r\n}\r\n<br></code></pre>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (38, 244, '<p>mongodb设置后台运行</p><p>我们要在mongodb下面创建data目录和logs目录,用于存放data和logs。</p><p>设置好了之后,我们通常通过</p><pre style=""><code><span class="pln">mongod </span><span class="pun">--</span><span class="pln">dbpath </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">mongo</span><span class="pun">db/</span><span class="pln">data</span></code></pre><p>让mongodb启动。</p><p>但是我们关闭shell,mongodb就停止运行了。<strong>如果想在后台运行,启动时只需添加 --fork函数即可。可以在日志路径后面添加--logappend,防止日志被删除。</strong></p><p>代码如下:</p><p> mongod --fork --dbpath=/usr/local/mongodb/data --logpath=/usr/local/mongodb/logs/mongodb2.log --logappend</p><p>这样,你关闭shell,在打开shell,照常可以允许mongo了!</p><h2>mongodb设置开机启动。</h2><p>当我们把服务器关闭,重启之后,发现mongodb又停止了,有没有开机就启动的方法呢?我们把上面代码放到/etc/rc.local,中,就可以了。</p><p>具体操作步骤:</p><pre style=""><code><span class="pln">vim </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">rc</span><span class="pun">.</span><span class="kwd">local</span></code></pre><p>添加上面启动代码:</p><pre style=""><code><span class="str">/usr/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">mongodb</span><span class="pun">/</span><span class="pln">bin</span><span class="pun">/</span><span class="pln">mongod </span><span class="pun">--</span><span class="pln">fork </span><span class="pun">--</span><span class="pln">dbpath</span><span class="pun">=</span><span class="str">/usr/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">mongodb</span><span class="pun">/</span><span class="pln">data </span><span class="pun">--</span><span class="pln">logpath</span><span class="pun">=</span><span class="str">/usr/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">mongodb</span><span class="pun">/</span><span class="pln">logs</span><span class="pun">/</span><span class="pln">mongodb2</span><span class="pun">.</span><span class="pln">log </span><span class="pun">--</span><span class="pln">logappend</span></code></pre><p>下次重启就可以直接运行mongodb了!</p><p>关于linux的rc.local也是一个重点,我下节课给大家讲讲!具体可以看<a href="http://www.haorooms.com/post/linux_path_commond" target="_blank">http://www.haorooms.com/post/linux_path_commond</a></p><h2>关闭mongodb</h2><p>有开启就有关闭,上面方法会永久开启mongodb,那么如何关闭其运行呢?</p><p>1、普通命令</p><pre style=""><code><span class="pln">$ </span><span class="pun">./</span><span class="pln">mongod\r\n</span><span class="pun">&gt;</span><span class="pln"> </span><span class="kwd">use</span><span class="pln"> admin\r\n</span><span class="pun">&gt;</span><span class="pln"> db</span><span class="pun">.</span><span class="pln">shutdownServer</span><span class="pun">()</span></code></pre><p>2、如果没有up-to-date 从Mongodb且你想强制关闭服务,可以通过添加force:true;命令如下</p><pre style=""><code><span class="pun">&gt;</span><span class="pln"> db</span><span class="pun">.</span><span class="pln">adminCommand</span><span class="pun">({</span><span class="pln">shutdown </span><span class="pun">:</span><span class="pln"> </span><span class="lit">1</span><span class="pun">,</span><span class="pln"> force </span><span class="pun">:</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">})</span><span class="pln">\r\n</span><span class="pun">&gt;</span><span class="pln"> </span><span class="com">//or</span><span class="pln">\r\n</span><span class="pun">&gt;</span><span class="pln"> db</span><span class="pun">.</span><span class="pln">shutdownServer</span><span class="pun">({</span><span class="pln">force </span><span class="pun">:</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">})</span></code></pre><p>3、指定特定超时时间的关闭服务器,命令同上,另外加上一个timeoutsec:参数</p><pre style=""><code><span class="pun">&gt;</span><span class="pln"> db</span><span class="pun">.</span><span class="pln">adminCommand</span><span class="pun">(</span><span class="pln">shutdown </span><span class="pun">:</span><span class="pln"> </span><span class="lit">1</span><span class="pun">,</span><span class="pln"> force </span><span class="pun">:</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">,</span><span class="pln"> timeoutsec </span><span class="pun">:</span><span class="pln"> </span><span class="lit">5</span><span class="pun">)</span><span class="pln">\r\n</span><span class="pun">&gt;</span><span class="pln"> </span><span class="com">//or</span><span class="pln">\r\n</span><span class="pun">&gt;</span><span class="pln"> db</span><span class="pun">.</span><span class="pln">shutdownServer</span><span class="pun">({</span><span class="pln">force </span><span class="pun">:</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">,</span><span class="pln"> timeoutsec </span><span class="pun">:</span><span class="pln"> </span><span class="lit">5</span><span class="pun">})</span></code></pre><p><br></p><p><br></p><p><a href="http://www.haorooms.com/post/linux_mongo_backupgo">http://www.haorooms.com/post/linux_mongo_backupgo</a><br></p>'), (39, 245, '<p><strong>grep -v ''^$'' /etc/filename.conf | grep -v ''^#''&nbsp; </strong></p><p>过滤空白行与开头为 #的文本</p><p>&nbsp;</p><p><strong>cat filename</strong> </p><p>一次显示整个文件</p><p><strong>cat &gt; filename</strong></p><p>创建文件</p><p><strong>cat file1 file2 &gt; file</strong></p><p>将几个文件合并为一个文件</p><p><strong>cat /etc/passwd |&nbsp; sed -e ''4d'' -e ''6c no six line'' &gt; /tmp/test/passwd</strong></p><p>将 /etc/passwd 的内容,将第四行删除, 第六行则取代成为『 no six line』,新的档案放置到 /tmp/test 里面</p><p>&nbsp;</p><p><strong>nl /etc/passwd | sed ''2,5d'' </strong></p><p>将 /etc/passwd 的内容列出,并且我需要打印行号,同时,请将第 2~5 行删除!</p><p><strong>&nbsp;nl /etc/passwd | sed -n ''5,7p''</strong></p><p>仅列出第 5-7 行</p><p><strong>ifconfig eth0 | grep ''inet '' | sed ''s/^.*addr://g'' |&nbsp; sed ''s/Bcast.*$//g''</strong></p><p>我们可以使用 ifconfig 来列出 IP ,仅要 eth0 的 IP </p><p><strong>nl /etc/passwd | sed ''2,5c No 2-5 number''</strong></p><p>将第 2-5 行的内容取代成为『No 2-5 number』</p><p>&nbsp;</p><p><strong>&nbsp;last | awk ''{print $1 "\\t" $3}''</strong></p><p>取出账号与登入者的 IP ,且账号与 IP 之间以 [tab] 隔开</p><p><strong>cat /etc/passwd | awk ''{FS=":"} $3&lt;10 {print $1 "\\t" $3}''</strong></p><p> /etc/passwd 当中是以冒号 ":" 来作为字段的分隔,那假设我要查阅,第三栏小于 10 以下的数据,并且仅列出账号与第三栏</p><p><strong>awk运算</strong></p><p>&nbsp;cat pay.txt |&nbsp; awk ''NR==1{printf "%10s %10s %10s %10s %10s\\n",$1,$2,$3,$4,"Total" } NR&gt;=2 {total = $2 + $3 + $4 printf &nbsp;"%10s %10d %10d %10d %10.2f\\n", $1, $2, $3, $4, total}''</p><p>&nbsp;PS: awk的三个内建变量 NF 每一行 ($0) 拥有的字段总数, NR 目前 awk 所处理的是『第几行』数 , FS 目前的分隔字符,预设是空格键</p><p>&nbsp;</p><p><strong>mkdir -m 777 -p dirname</strong></p><p>创建目录</p>'), (40, 246, '<p> PHP中两个小于号“&lt;&lt;”表示的php中的位运算符,&lt;&lt;表示的是向左移动,&gt;&gt;表示的是向右移动,这个我们可以通过一个例子更加容易的来理解位运算: </p><p> </p><pre><code><span class="php"><span class="hljs-meta"><span class="php"><span class="hljs-meta">&lt;?php</span></span></span><span class="php">&nbsp;&nbsp;\r\n</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//定义权限&nbsp;&nbsp;</span></span></span><span class="php">\r\ndefine(</span><span class="hljs-string"><span class="php"><span class="hljs-string">''READ''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-number"><span class="php"><span class="hljs-number">1</span></span></span><span class="php">&lt;&lt;&nbsp;</span><span class="hljs-number"><span class="php"><span class="hljs-number">0</span></span></span><span class="php">);&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//&nbsp;把可读权限放在最右边&nbsp;&nbsp;</span></span></span><span class="php">\r\ndefine(</span><span class="hljs-string"><span class="php"><span class="hljs-string">''WRITE''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-number"><span class="php"><span class="hljs-number">1</span></span></span><span class="php">&lt;&lt;</span><span class="hljs-number"><span class="php"><span class="hljs-number">1</span></span></span><span class="php">);&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//&nbsp;可读权限向左移一位&nbsp;&nbsp;</span></span></span><span class="php">\r\ndefine(</span><span class="hljs-string"><span class="php"><span class="hljs-string">''EXCUTE''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-number"><span class="php"><span class="hljs-number">1</span></span></span><span class="php">&lt;&lt;</span><span class="hljs-number"><span class="php"><span class="hljs-number">2</span></span></span><span class="php">);&nbsp;&nbsp;&nbsp;</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//&nbsp;可执行权限向左移两位&nbsp;&nbsp;</span></span></span><span class="php">\r\n&nbsp;&nbsp;\r\n</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//赋予权限&nbsp;&nbsp;</span></span></span><span class="php">\r\n$user_permission&nbsp;=&nbsp;READ&nbsp;|&nbsp;WRITE;&nbsp;&nbsp;\r\n&nbsp;&nbsp;\r\n</span><span class="hljs-comment"><span class="php"><span class="hljs-comment">//验证权限&nbsp;&nbsp;</span></span></span><span class="php">\r\n</span><span class="hljs-keyword"><span class="php"><span class="hljs-keyword">echo</span></span></span><span class="php">&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''可读:''</span></span></span><span class="php">,&nbsp;($user_permission&nbsp;&amp;&nbsp;READ)&nbsp;?&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''Yes''</span></span></span><span class="php">&nbsp;:&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''No''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">"\\n"</span></span></span><span class="php">;&nbsp;&nbsp;\r\n</span><span class="hljs-keyword"><span class="php"><span class="hljs-keyword">echo</span></span></span><span class="php">&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''可写:''</span></span></span><span class="php">,&nbsp;($user_permission&nbsp;&amp;&nbsp;WRITE)&nbsp;?&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''Yes''</span></span></span><span class="php">&nbsp;:&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''No''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">"\\n"</span></span></span><span class="php">;&nbsp;&nbsp;\r\n</span><span class="hljs-keyword"><span class="php"><span class="hljs-keyword">echo</span></span></span><span class="php">&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''可执行:''</span></span></span><span class="php">,&nbsp;($user_permission&nbsp;&amp;&nbsp;EXCUTE)&nbsp;?&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''Yes''</span></span></span><span class="php">&nbsp;:&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">''No''</span></span></span><span class="php">,&nbsp;</span><span class="hljs-string"><span class="php"><span class="hljs-string">"\\n"</span></span></span><span class="php">;&nbsp;&nbsp;\r\n</span><span class="hljs-meta"><span class="php"><span class="hljs-meta">?&gt;</span></span></span></span></code></pre><p> </p><p> 通过位运算,我们能更加方便的控制权限。 </p><p> </p><p> <br> </p><p> </p><pre><code><pre class="best-text mb-10"><code><span class="hljs-string"><span class="hljs-string">"&amp;"</span></span> 按位与运算\r\n 按位与运算符<span class="hljs-string"><span class="hljs-string">"&amp;"</span></span>是<a href="https://www.baidu.com/s?wd=%E5%8F%8C%E7%9B%AE%E8%BF%90%E7%AE%97%E7%AC%A6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1Y3rHKhnvN9njR4PHfsnHPW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtznj03nWcvrjf" target="_blank" rel="nofollow">双目运算符</a>。其功能是参与运算的两数各对应的二进位相与。只有对应的两个二进位均为<span class="hljs-number"><span class="hljs-number">1</span></span>时,结果\r\n位才为<span class="hljs-number"><span class="hljs-number">1</span></span>,否则为<span class="hljs-number"><span class="hljs-number">0</span></span>。参与运算的数以补码方式出现。\r\n\r\n例如:<span class="hljs-number"><span class="hljs-number">9</span></span>&amp;<span class="hljs-number"><span class="hljs-number">5</span></span>可写算式如下:\r\n\r\n <span class="hljs-number"><span class="hljs-number">00001001</span></span> (<span class="hljs-number"><span class="hljs-number">9</span></span>的二进制补码)\r\n\r\n &amp;<span class="hljs-number"><span class="hljs-number">00000101</span></span> (<span class="hljs-number"><span class="hljs-number">5</span></span>的二进制补码)\r\n\r\n <span class="hljs-number"><span class="hljs-number">00000001</span></span> (<span class="hljs-number"><span class="hljs-number">1</span></span>的二进制补码)\r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">9</span></span>;\r\n$b = <span class="hljs-number"><span class="hljs-number">5</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%b"</span></span>, $a&amp;$b);\r\n<span class="hljs-meta"><span class="hljs-meta">?&gt;</span></span>\r\n\r\n<span class="hljs-string"><span class="hljs-string">"|"</span></span> 按位或运算\r\n按位或运算符“|”是<a href="https://www.baidu.com/s?wd=%E5%8F%8C%E7%9B%AE%E8%BF%90%E7%AE%97%E7%AC%A6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1Y3rHKhnvN9njR4PHfsnHPW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtznj03nWcvrjf" target="_blank" rel="nofollow">双目运算符</a>。其功能是参与运算的两数各对应的二进位相或。只要对应的二个二进位有一个为<span class="hljs-number"><span class="hljs-number">1</span></span>时,结果位\r\n就为<span class="hljs-number"><span class="hljs-number">1</span></span>。参与运算的两个数均以补码出现。\r\n\r\n例如:<span class="hljs-number"><span class="hljs-number">9</span></span>|<span class="hljs-number"><span class="hljs-number">5</span></span>可写算式如下:\r\n\r\n <span class="hljs-number"><span class="hljs-number">00001001</span></span>\r\n\r\n |<span class="hljs-number"><span class="hljs-number">00000101</span></span>\r\n\r\n <span class="hljs-number"><span class="hljs-number">00001101</span></span> (十进制为<span class="hljs-number"><span class="hljs-number">13</span></span>)可见<span class="hljs-number"><span class="hljs-number">9</span></span>|<span class="hljs-number"><span class="hljs-number">5</span></span>=<span class="hljs-number"><span class="hljs-number">13</span></span>\r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">9</span></span>;\r\n$b = <span class="hljs-number"><span class="hljs-number">5</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%b"</span></span>, $a|$b).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//二进制</span></span>\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%d"</span></span>, $a|$b).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//十进制</span></span>\r\n\r\n<span class="hljs-string"><span class="hljs-string">"^"</span></span> 按位异或运算\r\n 按位异或运算符“^”是<a href="https://www.baidu.com/s?wd=%E5%8F%8C%E7%9B%AE%E8%BF%90%E7%AE%97%E7%AC%A6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZ<KEY>" target="_blank" rel="nofollow">双目运算符</a>。其功能是参与运算的两数各对应的二进位相异或,当两对应的二进位相异时,结果为<span class="hljs-number"><span class="hljs-number">1</span></span>。\r\n参与运算数仍以补码出现,例如<span class="hljs-number"><span class="hljs-number">9</span></span>^<span class="hljs-number"><span class="hljs-number">5</span></span>可写成算式如下:\r\n\r\n <span class="hljs-number"><span class="hljs-number">00001001</span></span>\r\n\r\n ^<span class="hljs-number"><span class="hljs-number">00000101</span></span> \r\n\r\n <span class="hljs-number"><span class="hljs-number">00001100</span></span> (十进制为<span class="hljs-number"><span class="hljs-number">12</span></span>)\r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">9</span></span>;\r\n$b = <span class="hljs-number"><span class="hljs-number">5</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%b"</span></span>, $a^$b).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//二进制</span></span>\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%d"</span></span>, $a^$b).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//十进制</span></span>\r\n\r\n<span class="hljs-string"><span class="hljs-string">"~"</span></span> 求反运算\r\n求反运算符~为单目运算符,具有右结合性。其功能是对参与运算的数的各二进位按位求反。\r\n\r\n例如~<span class="hljs-number"><span class="hljs-number">9</span></span>的运算为:\r\n\r\n ~(<span class="hljs-number"><span class="hljs-number">0000000000001001</span></span>)结果为:<span class="hljs-number"><span class="hljs-number">1111111111110110</span></span>\r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">9</span></span>;\r\n$b = <span class="hljs-number"><span class="hljs-number">5</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%b"</span></span>, ~$a).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//二进制</span></span>\r\n\r\n<span class="hljs-string"><span class="hljs-string">"〈〈"</span></span> 左移运算\r\n左移运算符“&lt;&lt;”是双目运算符。其功能把“&lt;&lt; ”左边的运算数的各二进位全部左移若干位,由“&lt;&lt;”右边的数指定移动的位数,\r\n高位丢弃,低位补<span class="hljs-number"><span class="hljs-number">0</span></span>。\r\n\r\n例如:\r\n\r\n a&lt;&lt;<span class="hljs-number"><span class="hljs-number">4</span></span>\r\n\r\n指把a的各二进位向左移动<span class="hljs-number"><span class="hljs-number">4</span></span>位。如a=<span class="hljs-number"><span class="hljs-number">00000011</span></span>(十进制<span class="hljs-number"><span class="hljs-number">3</span></span>),左移<span class="hljs-number"><span class="hljs-number">4</span></span>位后为<span class="hljs-number"><span class="hljs-number">00110000</span></span>(十进制<span class="hljs-number"><span class="hljs-number">48</span></span>)。 \r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">3</span></span>;\r\n$temp = $a&lt;&lt;<span class="hljs-number"><span class="hljs-number">4</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%d"</span></span>, $temp).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//十进制</span></span>\r\n\r\n“&gt;&gt;” 右移运算 <a href="https://www.baidu.com/s?wd=%E5%8F%B3%E7%A7%BB%E8%BF%90%E7%AE%97%E7%AC%A6&amp;tn=44039180_cpr&amp;fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1Y3rHKhnvN9njR4PHfsnHPW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtznj03nWcvrjf" target="_blank" rel="nofollow">右移运算符</a>“&gt;&gt;”是双目运算符。其功能是把“&gt;&gt; ”左边的运算数的各二进位全部右移若干位,“&gt;&gt;”右边的数\r\n指定移动的位数。\r\n\r\n例如:\r\n\r\n设 a=<span class="hljs-number"><span class="hljs-number">48</span></span>,\r\n\r\na&gt;&gt;<span class="hljs-number"><span class="hljs-number">4</span></span>\r\n\r\n表示把<span class="hljs-number"><span class="hljs-number">00110000</span></span>右移为<span class="hljs-number"><span class="hljs-number">00000011</span></span>(十进制<span class="hljs-number"><span class="hljs-number">3</span></span>)。\r\n\r\n应该说明的是,对于有符号数,在右移时,符号位将随同移动。当为正数时,最高位补<span class="hljs-number"><span class="hljs-number">0</span></span>,而为负数时,符号位为<span class="hljs-number"><span class="hljs-number">1</span></span>,最高位是 补<span class="hljs-number"><span class="hljs-number">0</span></span>或是补<span class="hljs-number"><span class="hljs-number">1</span></span> 取决于编译系统的规定\r\n\r\n<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span>\r\n$a = <span class="hljs-number"><span class="hljs-number">48</span></span>;\r\n$temp = $a&gt;&gt;<span class="hljs-number"><span class="hljs-number">4</span></span>;\r\n<span class="hljs-keyword"><span class="hljs-keyword">echo</span></span> sprintf(<span class="hljs-string"><span class="hljs-string">"%d"</span></span>, $temp).<span class="hljs-string"><span class="hljs-string">"\\n"</span></span>; <span class="hljs-comment"><span class="hljs-comment">//十进制</span></span></code></pre></code></pre>'), (41, 247, '<p>0&nbsp; &lt;&lt; 1 = 0</p><p>1 &lt;&lt; 1 = 2</p><p>1 &lt;&lt; 0 = 1</p><p>可用于条件判断</p><p><br></p><p>n &gt;&gt; 1 相当于 floor(n/2)<br></p>'), (42, 248, '<p><span style="line-height: 25.2px;">flush()函数实时把程序的所有输出发送到用户的游览器,但实际上不会这样</span></p><p><span style="line-height: 25.2px;">例如:</span></p><pre style="max-width: 100%;"><code class="php hljs" codemark="1"><span class="hljs-keyword">for</span> ($i=<span class="hljs-number">0</span>;$i&lt;<span class="hljs-number">10</span>;$i++) {\r\n flush();\r\n <span class="hljs-keyword">echo</span> $i;\r\n sleep(<span class="hljs-number">1</span>);\r\n}\r\n</code></pre><p><span style="line-height: 25.2px;">这段代码按道理应该是每一秒会输出一个数,但是可能要等10秒后所有输出才同时呈现出来</span></p><p><span style="line-height: 25.2px;">这个原因是因为php会把程序的输出给缓存起来,查看php.ini,output_buffering就是用来</span></p><p><span style="line-height: 25.2px;">设置输出缓存,如果想要实时输出数据就必须释放缓存,或者把output_buffering设置足够小的值,</span></p><p><span style="line-height: 25.2px;">否则程序没达到output_buffering的值或者脚本结束,输出是不会被发送出去</span></p><p><span style="line-height: 25.2px;"><br></span></p><p><span style="line-height: 25.2px;">ob_flush() : 冲刷出(送出)输出缓冲区中的内容</span></p><p><span style="line-height: 25.2px;">ob_end_clean() : 清空(擦除)缓冲区并关闭输出缓冲</span></p><p><span style="line-height: 25.2px;">ob_end_flush() : 冲刷出(送出)输出缓冲区内容并关闭缓冲</span></p><p><span style="line-height: 25.2px;">ob_implicit_flush() : 打开/关闭绝对刷送,每次输出调用后有一次刷送操作,以便不再需要对 flush() 的显式调用</span></p><p><br></p><pre style="max-width: 100%;"><code class="php hljs" codemark="1">改进后的程序:\r\n\r\n第一种:\r\nob_implicit_flush(<span class="hljs-keyword">true</span>) <span class="hljs-comment">/* 每一次有输出都会把输出发送到游览器 */</span>\r\n<span class="hljs-keyword">for</span> ($i=<span class="hljs-number">0</span>;$i&lt;<span class="hljs-number">10</span>;$i++) {\r\n <span class="hljs-keyword">echo</span> $i;\r\n ob_flush(); <span class="hljs-comment">/* 释放缓存内容 */</span>\r\n sleep(<span class="hljs-number">1</span>);\r\n}\r\n\r\n第二种:\r\n<span class="hljs-keyword">for</span> ($i=<span class="hljs-number">0</span>;$i&lt;<span class="hljs-number">10</span>;$i++) {\r\n <span class="hljs-keyword">echo</span> $i;\r\n ob_flush(); <span class="hljs-comment">/* 释放缓存内容 */</span>\r\n flush(); <span class="hljs-comment">/* 把输出内容发送到游览器 */</span>\r\n sleep(<span class="hljs-number">1</span>);\r\n}\r\n\r\n第三种:\r\nob_end_clean(); <span class="hljs-comment">/* 清空缓存区,并且关闭输出缓存 */</span>\r\n<span class="hljs-keyword">for</span> ($i=<span class="hljs-number">0</span>;$i&lt;<span class="hljs-number">10</span>;$i++) {\r\n <span class="hljs-keyword">echo</span> $i;\r\n flush();\r\n sleep(<span class="hljs-number">1</span>);\r\n}\r\n\r\n第四种:\r\nob_end_clean(); <span class="hljs-comment">/* 清空缓存区,并且关闭输出缓存 */</span>\r\nob_implicit_flush(<span class="hljs-keyword">true</span>); <span class="hljs-comment">/* 每一次有输出都会把输出发送到游览器 */</span>\r\n<span class="hljs-keyword">for</span> ($i=<span class="hljs-number">0</span>;$i&lt;<span class="hljs-number">10</span>;$i++) {\r\n <span class="hljs-keyword">echo</span> $i;\r\n sleep(<span class="hljs-number">1</span>);\r\n}</code></pre><p><br></p>'), (43, 249, '<h4><strong>grep全称是Global Regular Expression Print</strong>&nbsp;</h4><p> </p><p><br>-c:只输出匹配行的计数。<br>-i:不区分大 小写(只适用于单字符)。<br>-h:查询多文件时不显示文件名。<br>-l:查询多文件时只输出包含匹配字符的文件名。<br>-n:显示匹配行及 行号。(常用)<br>-s:不显示不存在或无匹配文本的错误信息。<br>-v:显示不包含匹配文本的所有行。(常用)</p><p><br></p><p><strong>例如:</strong></p><p>grep -i pattern files :不区分大小写地搜索。默认情况区分大小写,</p><p>grep -l pattern files :只列出匹配的文件名,</p><p>grep -L pattern files :列出不匹配的文件名,</p><p>grep -w pattern files :只匹配整个单词,而不是字符串的一部分(如匹配’magic’,而不是’magical’),</p><p>grep -C number pattern files :匹配的上下文分别显示[number]行,</p><p>grep pattern1 | pattern2 files :显示匹配 pattern1 或 pattern2 的行,</p><p>grep pattern1 files | grep pattern2 :显示既匹配 pattern1 又匹配 pattern2 的行。</p><p>grep -n pattern files&nbsp; 即可显示行号信息</p><p>grep -c pattern files&nbsp; 即可查找总行数</p><p><br></p><p> </p><p><strong>简单实例:</strong></p><p><span style="color: rgb(0, 0, 0);">$ grep -A1 -B3 --color=auto&nbsp; ''<span style="color: rgb(0, 0, 0);">word<span style="color: rgb(0, 0, 0);">'' filename</span></span></span></p><p>从filename显示包含word的行,并显示前三行和后一行,高亮显示</p><p><strong></strong><br>$ grep ''test'' d*<br>显示所有以d开头的文件中包含 test的行。</p><p><br>$ grep ''test'' aa bb cc<br>显示在aa,bb,cc文件中匹配test的行。</p><p><br>$ grep ''[a-z]\\{5\\}'' aa (注意{}需要逃逸字符)<br>显示所有包含每个字符串至少有5个连续小写字符的字符串的行。</p><p><br>$ grep ‘w\\(es\\)t.*\\1′ aa<br>如果west被匹配,则es就被存储到内存中,并标记为1,然后搜索任意个字符(.*),这些字符后面紧跟着 另外一个es(\\1),找到就显示该行。如果用egrep或grep -E,就不用”\\”号进行转义,直接写成’w(es)t.*\\1′就可以了。</p><p><br></p><p> </p><p>用于搜索的特殊符号:<br>\\&lt; 和 \\&gt; 分别标注单词的开始与结尾。<br>例如:<br>grep man * 会匹配 ‘Batman’、’manic’、’man’等,<br>grep ‘\\&lt;man’ * 匹配’manic’和’man’,但不是’Batman’,<br>grep ‘\\&lt;man\\&gt;’ 只匹配’man’,而不是’Batman’或’manic’等其他的字符串。</p><p><br></p><p><strong>特殊字符:<br></strong>[[:upper:]]&nbsp; &nbsp;[A-Z]<br> [[:lower:]]&nbsp; &nbsp;[a-z]<br> [[:digit:]]&nbsp; &nbsp;[0-9]<br> [[:alnum:]]&nbsp; &nbsp;[0-9a-zA-Z]<br> [[:space:]]&nbsp; &nbsp;空格或tab<br> [[:alpha:]]&nbsp; &nbsp;[a-zA-Z]<br><strong>&nbsp;<br></strong></p>'), (73, 279, '<p>nl test1.txt | sed ''15,$d'' 显示test1.txt文本并删除15到最后一行</p><p>nl test1.txt&nbsp; | sed ''2,5c hello word'' test1.txt文本2到5行替换成hello word</p><p>nl test1.txt | sed ''3a hello word'' test1.txt文本第三行后增加hello world,增加多行用 “ \\ ”隔开</p><p>nl test1.txt | sed -n ''5,7p'' 只显示5到7行数据</p>'), (74, 280, '<pre><code class="lang-sql">SELECT name\r\n FROM random AS r1 JOIN\r\n (SELECT CEIL(RAND() *\r\n (SELECT MAX(id)\r\n FROM random)) AS id)\r\n AS r2\r\n WHERE r1.id &gt;= r2.id\r\n ORDER BY r1.id ASC\r\n LIMIT 1<br></code></pre><p><br></p><p><br></p><p><a href="http://stackoverflow.com/questions/4329396/mysql-select-10-random-rows-from-600k-rows-fast" rel="nofollow">http://stackoverflow.com/questions/4329396/mysql-select-10-random-rows-from-600k-rows-fast</a><br></p>'), (75, 281, '<h2 style="font-size: 21px; line-height: 1.5; color: rgb(0, 0, 0); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;"><span style="line-height: 1.5; font-size: 14pt;">awk内置变量</span></h2><pre style="max-width: 100%;"><code class="apache hljs" codemark="1"><span class="hljs-attribute">ARGC</span> 命令行参数个数\r\n<span class="hljs-attribute">ARGV</span> 命令行参数排列\r\n<span class="hljs-attribute">ENVIRON</span> 支持队列中系统环境变量的使用\r\n<span class="hljs-attribute">FILENAME</span> awk浏览的文件名\r\n<span class="hljs-attribute">FNR</span> 浏览文件的记录数\r\n<span class="hljs-attribute">FS</span> 设置输入域分隔符,等价于命令行 -F选项\r\n<span class="hljs-attribute">NF</span> 浏览记录的域的个数\r\n<span class="hljs-attribute">NR</span> 已读的记录数\r\n<span class="hljs-attribute">OFS</span> 输出域分隔符\r\n<span class="hljs-attribute">ORS</span> 输出记录分隔符\r\n<span class="hljs-attribute">RS</span> 控制记录分隔符</code></pre><p>&nbsp;\r\n\r\n</p><pre style="max-width:100%;overflow-x:auto;"><code codemark="1" class="bash hljs">cat /etc/passwd | awk <span class="hljs-string">''BEGIN {FS=":"} $3 &lt; 10 {print $1 "\\t" $3}''</span> #显示第三栏小于10 以下的数据\r\n\r\nlast -n 5 | awk <span class="hljs-string">''{print $1 "\\t lines: " NR "\\t columns: " NF}''</span> #最后五行登录信息\r\n\r\n\r\ncat pay.txt | awk <span class="hljs-string">''NR==1{printf "%10s %10s %10s %10s\\n",$1,$2,$3,"total"} \\\r\n\r\nNR&gt;=2{total = $2+$3\r\n\r\nprintf "%10s %10s %10s %10s\\n",$1,$2,$3,total}''</span></code></pre><p><br></p><p></p><p>参考:<a href="http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html" target="_blank">http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html</a></p><p></p><p><br></p>'), (76, 282, '<p> </p><p>作者: <a href="http://www.ruanyifeng.com">阮一峰</a></p><p> </p><p>日期: <a href="http://www.ruanyifeng.com/blog/2011/08/">2011年8月16日</a></p><p> </p><p> </p><p><a href="http://jquery.com/" target="_blank">jQuery</a>的开发速度很快,几乎每半年一个大版本,每两个月一个小版本。</p><p> </p><p>每个版本都会引入一些新功能。今天我想介绍的,就是从jQuery 1.5.0版本开始引入的一个新功能----<a href="http://api.jquery.com/category/deferred-object/" target="_blank">deferred对象</a>。</p><p>这个功能很重要,未来将成为jQuery的核心方法,它彻底改变了如何在jQuery中使用ajax。为了实现它,jQuery的全部ajax代码都被改写了。但是,它比较抽象,初学者很难掌握,网上的教程也不多。所以,我把自己的学习笔记整理出来了,希望对大家有用。</p><p>本文不是初级教程,针对的读者是那些已经具备jQuery使用经验的开发者。如果你想了解jQuery的基本用法,请阅读我编写的<a href="http://www.ruanyifeng.com/blog/2011/07/jquery_fundamentals.html" target="_blank">《jQuery设计思想》</a>和<a href="http://www.ruanyifeng.com/blog/2011/08/jquery_best_practices.html" target="_blank">《jQuery最佳实践》</a>。</p><p>======================================</p><p><strong>jQuery的deferred对象详解</strong></p><p>作者:阮一峰</p><p><img src="http://image.beekka.com/blog/201108/bg2011081601.jpg"></p><p><strong>一、什么是deferred对象?</strong></p><p>开发网站的过程中,我们经常遇到某些耗时很长的javascript操作。其中,既有异步的操作(比如ajax读取服务器数据),也有同步的操作(比如遍历一个大型数组),它们都不是立即能得到结果的。</p><p>通常的做法是,为它们指定回调函数(callback)。即事先规定,一旦它们运行结束,应该调用哪些函数。</p><p>但是,在回调函数方面,jQuery的功能非常弱。为了改变这一点,jQuery开发团队就设计了<a href="http://api.jquery.com/category/deferred-object/" target="_blank">deferred对象</a>。</p><p><strong>简单说,deferred对象就是jQuery的回调函数解决方案。</strong>在英语中,defer的意思是"延迟",所以deferred对象的含义就是"延迟"到未来某个点再执行。</p><p>它解决了如何处理耗时操作的问题,对那些操作提供了更好的控制,以及统一的编程接口。它的主要功能,可以归结为四点。下面我们通过示例代码,一步步来学习。</p><p><strong>二、ajax操作的链式写法</strong></p><p>首先,回顾一下jQuery的ajax操作的传统写法:</p><blockquote><p>  $.ajax({</p><p>    url: "test.html",</p><p>    success: function(){<br>      alert("哈哈,成功了!");<br>    },</p><p>    error:function(){<br>      alert("出错啦!");<br>    }</p><p>  });</p><p>(运行<a href="http://jsfiddle.net/ruanyf/pdQYH/" target="_blank">代码示例1</a>)</p></blockquote><p>在上面的代码中,$.ajax()接受一个对象参数,这个对象包含两个方法:success方法指定操作成功后的回调函数,error方法指定操作失败后的回调函数。</p><p>$.ajax()操作完成后,如果使用的是低于1.5.0版本的jQuery,返回的是XHR对象,你没法进行链式操作;如果高于1.5.0版本,返回的是deferred对象,可以进行链式操作。</p><p>现在,新的写法是这样的:</p><blockquote><p>  $.ajax("test.html")</p><p>  <strong>.done(function(){ alert("哈哈,成功了!"); })</strong></p><p>  <strong>.fail(function(){ alert("出错啦!"); });</strong></p><p>(运行<a href="http://jsfiddle.net/ruanyf/dYKLJ/" target="_blank">代码示例2</a>)</p></blockquote><p>可以看到,<a href="http://api.jquery.com/deferred.done/" target="_blank">done()</a>相当于success方法,<a href="http://api.jquery.com/deferred.fail/" target="_blank">fail()</a>相当于error方法。采用链式写法以后,代码的可读性大大提高。</p><p><strong>三、指定同一操作的多个回调函数</strong></p><p>deferred对象的一大好处,就是它允许你自由添加多个回调函数。</p><p>还是以上面的代码为例,如果ajax操作成功后,除了原来的回调函数,我还想再运行一个回调函数,怎么办?</p><p>很简单,直接把它加在后面就行了。</p><blockquote><p>  $.ajax("test.html")</p><p>  .done(function(){ alert("哈哈,成功了!");} )</p><p>  .fail(function(){ alert("出错啦!"); } )</p><p>  <strong>.done(function(){ alert("第二个回调函数!");} );</strong></p><p>(运行<a href="http://jsfiddle.net/ruanyf/sQYjs/" target="_blank">代码示例3</a>)</p></blockquote><p>回调函数可以添加任意多个,它们按照添加顺序执行。</p><p><strong>四、为多个操作指定回调函数</strong></p><p>deferred对象的另一大好处,就是它允许你为多个事件指定一个回调函数,这是传统写法做不到的。</p><p>请看下面的代码,它用到了一个新的方法<a href="http://api.jquery.com/jQuery.when/" target="_blank">$.when()</a>:</p><blockquote><p>  <strong>$.when($.ajax("test1.html"), $.ajax("test2.html"))</strong></p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/ruanyf/CdKjn/" target="_blank">代码示例4</a>)</p></blockquote><p>这段代码的意思是,先执行两个操作$.ajax("test1.html")和$.ajax("test2.html"),如果都成功了,就运行done()指定的回调函数;如果有一个失败或都失败了,就执行fail()指定的回调函数。</p><p><strong>五、普通操作的回调函数接口(上)</strong></p><p>deferred对象的最大优点,就是它把这一套回调函数接口,从ajax操作扩展到了所有操作。也就是说,任何一个操作----不管是ajax操作还是本地操作,也不管是异步操作还是同步操作----都可以使用deferred对象的各种方法,指定回调函数。</p><p>我们来看一个具体的例子。假定有一个很耗时的操作wait:</p><blockquote><p>  var wait = function(){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>    };</p><p>    setTimeout(tasks,5000);</p><p>  };</p></blockquote><p>我们为它指定回调函数,应该怎么做呢?</p><p>很自然的,你会想到,可以使用$.when():</p><blockquote><p>  $.when(wait())</p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/5wzrt/" target="_blank">代码示例5</a>)</p></blockquote><p>但是,这样写的话,done()方法会立即执行,起不到回调函数的作用。原因在于$.when()的参数只能是deferred对象,所以必须对wait()进行改写:</p><blockquote><p>  var dtd = $.Deferred(); // 新建一个deferred对象</p><p>  var wait = function(dtd){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      <strong>dtd.resolve();</strong> // 改变deferred对象的执行状态</p><p>    };</p><p>    setTimeout(tasks,5000);</p><p>    <strong>return dtd;</strong></p><p>  };</p></blockquote><p>现在,wait()函数返回的是deferred对象,这就可以加上链式操作了。</p><blockquote><p>  $.when(wait(dtd))</p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/gfFPj/" target="_blank">代码示例6</a>)</p></blockquote><p>wait()函数运行完,就会自动运行done()方法指定的回调函数。</p><p><strong>六、deferred.resolve()方法和deferred.reject()方法</strong></p><p>如果仔细看,你会发现在上面的wait()函数中,还有一个地方我没讲解。那就是<a href="http://api.jquery.com/deferred.resolve" target="_blank">dtd.resolve()</a>的作用是什么?</p><p>要说清楚这个问题,就要引入一个新概念"执行状态"。jQuery规定,deferred对象有三种执行状态----未完成,已完成和已失败。如果执行状态是"已完成"(resolved),deferred对象立刻调用done()方法指定的回调函数;如果执行状态是"已失败",调用fail()方法指定的回调函数;如果执行状态是"未完成",则继续等待,或者调用<a href="http://api.jquery.com/deferred.progress/" target="_blank">progress()</a>方法指定的回调函数(jQuery1.7版本添加)。</p><p>前面部分的ajax操作时,deferred对象会根据返回结果,自动改变自身的执行状态;但是,在wait()函数中,这个执行状态必须由程序员手动指定。dtd.resolve()的意思是,将dtd对象的执行状态从"未完成"改为"已完成",从而触发done()方法。</p><p>类似的,还存在一个<a href="http://api.jquery.com/deferred.reject" target="_blank">deferred.reject()</a>方法,作用是将dtd对象的执行状态从"未完成"改为"已失败",从而触发fail()方法。</p><blockquote><p>  var dtd = $.Deferred(); // 新建一个Deferred对象</p><p>  var wait = function(dtd){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      <strong>dtd.reject(); // 改变Deferred对象的执行状态</strong></p><p>    };</p><p>    setTimeout(tasks,5000);</p><p>    return dtd;</p><p>  };</p><p>  $.when(wait(dtd))</p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/bhDjd/" target="_blank">代码示例7</a>)</p></blockquote><p><strong>七、deferred.promise()方法</strong></p><p>上面这种写法,还是有问题。那就是dtd是一个全局对象,所以它的执行状态可以从外部改变。</p><p>请看下面的代码:</p><blockquote><p>  var dtd = $.Deferred(); // 新建一个Deferred对象</p><p>  var wait = function(dtd){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      dtd.resolve(); // 改变Deferred对象的执行状态</p><p>    };</p><p>    setTimeout(tasks,5000);</p><p>    return dtd;</p><p>  };</p><p>  $.when(wait(dtd))</p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>  <strong>dtd.resolve(); </strong></p><p>(运行<a href="http://jsfiddle.net/nBFse/" target="_blank">代码示例8</a>)</p></blockquote><p>我在代码的尾部加了一行dtd.resolve(),这就改变了dtd对象的执行状态,因此导致done()方法立刻执行,跳出"哈哈,成功了!"的提示框,等5秒之后再跳出"执行完毕!"的提示框。</p><p>为了避免这种情况,jQuery提供了<a href="http://api.jquery.com/deferred.promise/" target="_blank">deferred.promise()</a>方法。它的作用是,在原来的deferred对象上返回另一个deferred对象,后者只开放与改变执行状态无关的方法(比如done()方法和fail()方法),屏蔽与改变执行状态有关的方法(比如resolve()方法和reject()方法),从而使得执行状态不能被改变。</p><p>请看下面的代码:</p><blockquote><p>  var dtd = $.Deferred(); // 新建一个Deferred对象</p><p>  var wait = function(dtd){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      dtd.resolve(); // 改变Deferred对象的执行状态</p><p>    };<br> <br>    setTimeout(tasks,5000);</p><p>    <strong>return dtd.promise(); // 返回promise对象</strong></p><p>  };</p><p>  <strong>var d = wait(dtd); // 新建一个d对象,改为对这个对象进行操作</strong></p><p>  $.when(d)</p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>  <strong>d.resolve(); // 此时,这个语句是无效的</strong></p><p>(运行<a href="http://jsfiddle.net/Yur4R/" target="_blank">代码示例9</a>)</p></blockquote><p>在上面的这段代码中,wait()函数返回的是promise对象。然后,我们把回调函数绑定在这个对象上面,而不是原来的deferred对象上面。这样的好处是,无法改变这个对象的执行状态,要想改变执行状态,只能操作原来的deferred对象。</p><p>不过,更好的写法是<a href="http://blog.allenm.me/2012/01/jquery_deferred_promise_method/" target="_blank">allenm</a>所指出的,将dtd对象变成wait()函数的内部对象。</p><blockquote><p>  var wait = function(dtd){</p><p>    <strong>var dtd = $.Deferred(); //在函数内部,新建一个Deferred对象</strong></p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      dtd.resolve(); // 改变Deferred对象的执行状态</p><p>    };<br> <br>    setTimeout(tasks,5000);</p><p>    return dtd.promise(); // 返回promise对象</p><p>  };</p><p>  <strong>$.when(wait())</strong></p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/q9TvT/" target="_blank">代码示例10</a>)</p></blockquote><p><strong>八、普通操作的回调函数接口(中)</strong></p><p>另一种防止执行状态被外部改变的方法,是使用deferred对象的建构函数$.Deferred()。</p><p>这时,wait函数还是保持不变,我们直接把它传入$.Deferred():</p><blockquote><p>  <strong>$.Deferred(wait)</strong></p><p>  .done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>(运行<a href="http://jsfiddle.net/ruanyf/CucGp/" target="_blank">代码示例11</a>)</p></blockquote><p>jQuery规定,$.Deferred()可以接受一个函数名(注意,是函数名)作为参数,$.Deferred()所生成的deferred对象将作为这个函数的默认参数。</p><p><strong>九、普通操作的回调函数接口(下)</strong></p><p>除了上面两种方法以外,我们还可以直接在wait对象上部署deferred接口。</p><blockquote><p>  var dtd = $.Deferred(); // 生成Deferred对象</p><p>  var wait = function(dtd){</p><p>    var tasks = function(){</p><p>      alert("执行完毕!");</p><p>      dtd.resolve(); // 改变Deferred对象的执行状态</p><p>    };</p><p>    setTimeout(tasks,5000);</p><p>  };</p><p>  <strong>dtd.promise(wait);</strong></p><p>  wait.done(function(){ alert("哈哈,成功了!"); })</p><p>  .fail(function(){ alert("出错啦!"); });</p><p>  wait(dtd);</p><p>(运行<a href="http://jsfiddle.net/ruanyf/PF7Xf/" target="_blank">代码示例12</a>)</p></blockquote><p>这里的关键是dtd.promise(wait)这一行,它的作用就是在wait对象上部署Deferred接口。正是因为有了这一行,后面才能直接在wait上面调用done()和fail()。</p><p><strong>十、小结:deferred对象的方法</strong></p><p>前面已经讲到了deferred对象的多种方法,下面做一个总结:</p><p>  (1) <a href="http://api.jquery.com/category/deferred-object/" target="_blank">$.Deferred()</a> 生成一个deferred对象。</p><p>  (2) <a href="http://api.jquery.com/deferred.done/" target="_blank">deferred.done()</a> 指定操作成功时的回调函数</p><p>  (3) <a href="http://api.jquery.com/deferred.fail/" target="_blank">deferred.fail()</a> 指定操作失败时的回调函数</p><p>  (4) <a href="http://api.jquery.com/deferred.promise/" target="_blank">deferred.promise()</a> 没有参数时,返回一个新的deferred对象,该对象的运行状态无法被改变;接受参数时,作用为在参数对象上部署deferred接口。</p><p>  (5) <a href="http://api.jquery.com/deferred.resolve/" target="_blank">deferred.resolve()</a> 手动改变deferred对象的运行状态为"已完成",从而立即触发done()方法。</p><p>  (6)<a href="http://api.jquery.com/deferred.reject/" target="_blank">deferred.reject()</a> 这个方法与deferred.resolve()正好相反,调用后将deferred对象的运行状态变为"已失败",从而立即触发fail()方法。</p><p>  (7) <a href="http://api.jquery.com/jQuery.when/" target="_blank">$.when()</a> 为多个操作指定回调函数。</p><p>除了这些方法以外,deferred对象还有二个重要方法,上面的教程中没有涉及到。</p><p>  (8)<a href="http://api.jquery.com/deferred.then/" target="_blank">deferred.then()</a></p><p>有时为了省事,可以把done()和fail()合在一起写,这就是then()方法。</p><blockquote><p>  $.when($.ajax( "/main.php" ))</p><p>  <strong>.then(successFunc, failureFunc );</strong></p></blockquote><p>如果then()有两个参数,那么第一个参数是done()方法的回调函数,第二个参数是fail()方法的回调方法。如果then()只有一个参数,那么等同于done()。</p><p>  (9)<a href="http://api.jquery.com/deferred.always/" target="_blank">deferred.always()</a></p><p>这个方法也是用来指定回调函数的,它的作用是,不管调用的是deferred.resolve()还是deferred.reject(),最后总是执行。</p><blockquote><p>  $.ajax( "test.html" )</p><p>  .always( function() { alert("已执行!");} );</p></blockquote><p>(致谢:本文第一稿发表后,<a href="http://blog.allenm.me/" target="_blank">allenm</a>来信指出原文对promise()的理解是错的。现在的第二稿是根据<a href="http://blog.allenm.me/2012/01/jquery_deferred_promise_method/" target="_blank">他的文章</a>修改的,在此我表示衷心感谢。)</p><p>(完)</p><p><br></p><pre style="max-width:100%;overflow-x:auto;"><code class="javascript hljs" codemark="1"><span class="hljs-keyword">var</span> ajaxRequest = <span class="hljs-literal">null</span>;\r\n $(<span class="hljs-string">"#username"</span>).blur(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{\r\n ajaxRequest = $.ajax({\r\n url: <span class="hljs-string">"&lt;?= \\yii\\helpers\\Url::to([''test/defer'']);?&gt;"</span>,\r\n type: <span class="hljs-string">"POST"</span>,\r\n beforeSend:<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{\r\n\r\n },\r\n success:<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">data</span>)</span>{\r\n alert(data);\r\n },\r\n error:<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{\r\n\r\n }\r\n });\r\n });\r\n\r\n $(<span class="hljs-string">"#submit"</span>).click(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{\r\n $.when(ajaxRequest) <span class="hljs-comment">/* if ajaxRequest is not a deferred object, the function done will perform immediately */</span>\r\n .done(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{ alert(<span class="hljs-string">"哈哈,成功了!"</span>); })\r\n .fail(<span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{ alert(<span class="hljs-string">"出错啦!"</span>); });\r\n });</code></pre><p><br></p><p><a href="http://www.ruanyifeng.com/blog/2011/08/a_detailed_explanation_of_jquery_deferred_object.html" rel="nofollow">http://www.ruanyifeng.com/blog/2011/08/a_detailed_explanation_of_jquery_deferred_object.html</a><br></p><p><br></p>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (44, 250, '<p>php的引用(就是在变量或者函数、对象等前面加上&amp;符号)<br><br>在PHP 中引用的意思是:不同的名字访问同一个变量内容。<br>与C语言中的指针是有差别的.C语言中的指针里面存储的是变量的内容,在内存中存放的地址。<br><br><strong>1.变量的引用</strong><br><br>PHP 的引用允许你用两个变量来指向同一个内容<br></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);"><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ABC</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出:ABC</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出:ABC</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EFG</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里$a的值变为EFG&nbsp;所以输出EFG</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出EFG</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>&nbsp;</p><p><br><strong>2.函数的引用传递(传址调用</strong>)<br></p><p>&nbsp;</p><p>传址调用我就不多说了 下面直接给出代码<br></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;test(</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">)<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">100</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">输出1</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;test(</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里$b传递给函数的其实是$b的变量内容所处的内存地址,通过在函数里改变$a的值 就可以改变$b的值了</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&lt;br&gt;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">输出101</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><br>要注意的是,在这里test(1);的话就会出错,原因自己去想。</p><p>&nbsp;</p><p><strong>注意:</strong></p><p>&nbsp;&nbsp;&nbsp; 上面的“&nbsp;test(<span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">);&nbsp;”&nbsp;中的<span style="color: rgb(128, 0, 128);">$b</span>前面不要加</span> <span style="color: red;">&amp;</span> 符号,但是在函数“<span style="color: rgb(0, 0, 255);"><strong>call_user_func_array</strong></span>”中,若要引用传参,就得需要&nbsp;<span style="color: red;">&amp;</span> 符号,如下代码所示:</p><p>&nbsp;</p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br><br></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;a(</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">;<br>}<br></span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;<br><br></span><span style="color: rgb(0, 128, 128);">call_user_func_array</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">a</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 255);">array</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">));<br><br></span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">;<br><br></span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">输出&nbsp;1</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><br><br><strong>3.函数的引用返回</strong><br></p><p>&nbsp;</p><p>先看代码<br></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(0, 0, 0);">test()<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">static</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">申明一个静态变量</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;<br>}<br><br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">test();</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这条语句会输出 $b的值 为1</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">test();</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这条语句会输出 $b的值 为2</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);"><br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">test();</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这条语句会输出 $b的值 为3</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">test();</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这条语句会输出 $b的值 为6</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><br>下面解释下: <br>通过这种方式$a=test();得到的其实不是函数的引用返回,这跟普通的函数调用没有区别 至于原因: 这是PHP的规定<br>PHP规定通过$a=&amp;test(); 方式得到的才是函数的引用返回<br>至于什么是引用返回呢(PHP手册上说:引用返回用在当想用函数找到引用应该被绑定在哪一个变量上面时。) 这句狗屁话 害我半天没看懂<br><br>用上面的例子来解释就是<br>$a=test()方式调用函数,只是将函数的值赋给$a而已, 而$a做任何改变 都不会影响到函数中的$b<br>而通过$a=&amp;test()方式调用函数呢, 他的作用是 将return $b中的 $b变量的内存地址与$a变量的内存地址 指向了同一个地方<br>即产生了相当于这样的效果($a=&amp;$b;) 所以改变$a的值 也同时改变了$b的值 所以在执行了<br>$a=&amp;test();<br>$a=5;<br>以后,$b的值变为了5<br><br>这里是为了让大家理解函数的引用返回才使用静态变量的,其实函数的引用返回多用在对象中<br><br></p><p>另附一个php官方例子: <br></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">This&nbsp;is&nbsp;the&nbsp;way&nbsp;how&nbsp;we&nbsp;</span><span style="color: rgb(0, 0, 255);">use</span><span style="color: rgb(0, 0, 0);">&nbsp;pointer&nbsp;to&nbsp;access&nbsp;variable&nbsp;inside&nbsp;the&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br></span><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br></span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;talker{<br><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$data</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">Hi</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;get(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">data;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;out(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">data;<br>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;<br><br>}<br><br></span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;talker();<br></span><span style="color: rgb(128, 0, 128);">$d</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">get();<br><br></span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">out();<br></span><span style="color: rgb(128, 0, 128);">$d</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">How</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">out();<br></span><span style="color: rgb(128, 0, 128);">$d</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">Are</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">out();<br></span><span style="color: rgb(128, 0, 128);">$d</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">You</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$aa</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">out();<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span><span style="color: rgb(0, 0, 0);"><br><br>the&nbsp;output&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">HiHowAreYou</span><span style="color: rgb(0, 0, 0);">"</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>&nbsp;</p><p>&nbsp;</p><p><strong>4.对象的引用</strong><br></p><p>&nbsp;</p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;a{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$abc</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ABC</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;a;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">abc;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出ABC</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">abc;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出ABC</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">abc</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">DEF</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$c</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">abc;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">这里输出DEF</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>以上代码是在PHP5中的运行效果</p><p>&nbsp;</p><p>在PHP5中 对象的赋值是个引用的过程。上列中$b=new a; $c=$b; 其实等效于$b=new a; $c=&amp;$b;<br>PHP5中默认就是通过引用来调用对象, 但有时你可能想建立一个对象的副本,并希望原来的对象的改变不影响到副本 . 为了这样的目的,PHP5定义了一个特殊的方法,称为__clone。</p><p>自 PHP 5 起,new 自动返回引用,因此在此使用 =&amp; 已经过时了并且会产生 E_STRICT 级别的消息。</p><p>&nbsp;</p><p>&nbsp;</p><p>在php4中,对象的赋值是个拷贝过程,</p><p>如:$b=new a,其中new a产生的是一个匿名的a对象实例,而此时的$b是对这个匿名对象的拷贝。同理$c=$b,也是对$b内容的一个拷贝。所以在php4中,为了节省内存空间,$b=new a 一般会改成引用的模式,即 $b=&amp; new a。<br></p><p>&nbsp;</p><p>下面再来个 官方 提供的例子:</p><p>&nbsp;在php5中,你不需要额外添加什么东西就可到达“对象引用”的功能:</p><p>&nbsp; <br></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br></span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;foo{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$name</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__construct(</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__toString(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">my&nbsp;name&nbsp;is&nbsp;"</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">name&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">"&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;"</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">__CLASS__</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">".</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;setName(</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">name&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br><br></span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterOne{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$foo</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__construct(</span><span style="color: rgb(128, 0, 128);">$f</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$f</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__toString(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">Master:&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">__CLASS__</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;|&nbsp;foo:&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;setFooName(</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">setName(&nbsp;</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br><br></span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterTwo{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">protected</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$foo</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__construct(</span><span style="color: rgb(128, 0, 128);">$f</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$f</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;__toString(){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">Master:&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(255, 0, 255);">__CLASS__</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;|&nbsp;foo:&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo&nbsp;</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;setFooName(</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">setName(&nbsp;</span><span style="color: rgb(128, 0, 128);">$str</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br><br></span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;foo(</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Only&nbsp;Created&nbsp;\\$bar&nbsp;and&nbsp;printing&nbsp;\\$bar\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Now&nbsp;\\$baz&nbsp;is&nbsp;referenced&nbsp;to&nbsp;\\$bar&nbsp;and&nbsp;printing&nbsp;\\$bar&nbsp;and&nbsp;\\$baz\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Now&nbsp;Creating&nbsp;MasterOne&nbsp;and&nbsp;Two&nbsp;and&nbsp;passing&nbsp;\\$bar&nbsp;to&nbsp;both&nbsp;constructors\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$m1</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterOne(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterTwo(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m1</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Now&nbsp;changing&nbsp;value&nbsp;of&nbsp;\\$bar&nbsp;and&nbsp;printing&nbsp;\\$bar&nbsp;and&nbsp;\\$baz\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">setName(</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">baz</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Now&nbsp;printing&nbsp;again&nbsp;MasterOne&nbsp;and&nbsp;Two\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m1</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Now&nbsp;changing&nbsp;MasterTwo''s&nbsp;foo&nbsp;name&nbsp;and&nbsp;printing&nbsp;again&nbsp;MasterOne&nbsp;and&nbsp;Two\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">setFooName(&nbsp;</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">MasterTwo\\''s&nbsp;Foo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m1</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br><br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Also&nbsp;printing&nbsp;\\$bar&nbsp;and&nbsp;\\$baz\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 255);">print</span><span style="color: rgb(0, 0, 0);">(&nbsp;</span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>&nbsp;</p><p>输出:</p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">Only&nbsp;Created&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;printing&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);"><br>my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br>Now&nbsp;</span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);">&nbsp;is&nbsp;referenced&nbsp;to&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;printing&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;</span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);"><br>my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br>Now&nbsp;Creating&nbsp;MasterOne&nbsp;and&nbsp;Two&nbsp;and&nbsp;passing&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;to&nbsp;both&nbsp;constructors<br>Master</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterOne&nbsp;</span><span style="color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);">&nbsp;foo</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br>Master</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterTwo&nbsp;</span><span style="color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);">&nbsp;foo</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br><br>Now&nbsp;changing&nbsp;value&nbsp;of&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;printing&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;</span><span style="color: rgb(128, 0, 128);">$baz</span><span style="color: rgb(0, 0, 0);"><br>my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">baz</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br>my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">baz</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br>Now&nbsp;printing&nbsp;again&nbsp;MasterOne&nbsp;and&nbsp;Two<br>Master</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterOne&nbsp;</span><span style="color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);">&nbsp;foo</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">baz</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br>Master</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterTwo&nbsp;</span><span style="color: rgb(0, 0, 0);">|</span><span style="color: rgb(0, 0, 0);">&nbsp;foo</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">&nbsp;my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">baz</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);"><br><br><br>Now&nbsp;changing&nbsp;MasterTwo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">s&nbsp;foo&nbsp;name&nbsp;and&nbsp;printing&nbsp;again&nbsp;MasterOne&nbsp;and&nbsp;Two<br>Master:&nbsp;MasterOne&nbsp;|&nbsp;foo:&nbsp;my&nbsp;name&nbsp;is&nbsp;"MasterTwo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">s&nbsp;Foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.<br><br>Master:&nbsp;MasterTwo&nbsp;|&nbsp;foo:&nbsp;my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MasterTwo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">s&nbsp;Foo"&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;"foo".<br><br>Also&nbsp;printing&nbsp;$bar&nbsp;and&nbsp;$baz<br>my&nbsp;name&nbsp;is&nbsp;"MasterTwo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">s&nbsp;Foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">foo</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.<br>my&nbsp;name&nbsp;is&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">MasterTwo</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">s&nbsp;Foo"&nbsp;and&nbsp;I&nbsp;live&nbsp;in&nbsp;"foo".</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>&nbsp;</p><p>上个例子解析:</p><p><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;foo(</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">bar</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$m1</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterOne(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);<br></span><span style="color: rgb(128, 0, 128);">$m2</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;MasterTwo(&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">&nbsp;);</span></p><p>实例对象$m1与$m2中的$bar是对实例$bar的引用,而非拷贝,这是php5中,对象引用的特点,也就是说</p><p>1.$m1或$m2内部,任何对$bar的操作都会影响外部对象实例$bar的相关值。</p><p>2.外部对象实例$bar的改变也会影响$m1和$m2内部的$bar的引用相关值。</p><p>&nbsp;</p><p>在php4中,要实现如上述的 用一个对象实例去当着另外一个对象的属性时,其等价代码(即引用调用)类似如下:</p><p><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);">&nbsp;foo{<br>&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$bar</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;setBar(</span><span style="color: rgb(0, 0, 0);">&amp;</span><span style="color: rgb(128, 0, 128);">$newBar</span><span style="color: rgb(0, 0, 0);">){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$this</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0);">bar&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;newBar;<br>&nbsp;&nbsp;&nbsp;}<br>}</span></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>5.引用的作用</strong><br>&nbsp;&nbsp;&nbsp;&nbsp; 如果程序比较大,引用同一个对象的变量比较多,并且希望用完该对象后手工清除它,个人建议用 "&amp;" 方式,然后用$var=null的方式清除. 其它时候还是用php5的默认方式吧. 另外, php5中对于大数组的传递,建议用 "&amp;" 方式, 毕竟节省内存空间使用。<br><br><br><strong>6.取消引用</strong><br><span style="color: rgb(0, 0, 255);">当你 unset 一个引用,只是断开了变量名和变量内容之间的绑定。这并不意味着变量内容被销毁了</span>。例如: <br><br></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">unset</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp; <br></span></p><p><br><br>不会 unset $b,只是 $a。 <br><br><br><strong>7.global 引用</strong><br>当用 global $var 声明一个变量时实际上建立了一个到全局变量的引用。也就是说和这样做是相同的: <br></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$var</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$GLOBALS</span><span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">var</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">];<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp; <br></span></p><p><br>这意味着,例如,unset $var 不会 unset 全局变量。 <br><br></p><p>&nbsp;</p><p>&nbsp;</p><p>如果在一个函数内部给一个声明为 global 的变量赋于一个引用,该引用只在函数内部可见。可以通过使用 <a href="http://www.php.net/manual/zh/reserved.variables.globals.php">$GLOBALS</a> 数组避免这一点。 </p><p><strong>Example&nbsp; 在函数内引用全局变量</strong></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br></span><span style="color: rgb(128, 0, 128);">$var1</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Example&nbsp;variable</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(128, 0, 128);">$var2</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br><br></span><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);">&nbsp;global_references(</span><span style="color: rgb(128, 0, 128);">$use_globals</span><span style="color: rgb(0, 0, 0);">)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">global</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$var1</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$var2</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">!</span><span style="color: rgb(128, 0, 128);">$use_globals</span><span style="color: rgb(0, 0, 0);">)&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$var2</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$var1</span><span style="color: rgb(0, 0, 0);">;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;visible&nbsp;only&nbsp;inside&nbsp;the&nbsp;function</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);">&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$GLOBALS</span><span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">var2</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">]&nbsp;</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$var1</span><span style="color: rgb(0, 0, 0);">;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;visible&nbsp;also&nbsp;in&nbsp;global&nbsp;context</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br><br>global_references(</span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">var2&nbsp;is&nbsp;set&nbsp;to&nbsp;''</span><span style="color: rgb(128, 0, 128);">$var2</span><span style="color: rgb(0, 0, 0);">''\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;var2&nbsp;is&nbsp;set&nbsp;to&nbsp;''''</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">global_references(</span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">var2&nbsp;is&nbsp;set&nbsp;to&nbsp;''</span><span style="color: rgb(128, 0, 128);">$var2</span><span style="color: rgb(0, 0, 0);">''\\n</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;&nbsp;</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">&nbsp;var2&nbsp;is&nbsp;set&nbsp;to&nbsp;''Example&nbsp;variable''</span><span style="color: rgb(0, 128, 0);"><br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><img src="http://common.cnblogs.com/images/copycode.gif" alt="复制代码"></p><p>把 global $var; 当成是 $var =&amp; $GLOBALS[''var'']; 的简写。从而将其它引用赋给 $var 只改变了本地变量的引用。 </p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p><strong>8.$this</strong><br>在一个对象的方法中,$this 永远是调用它的对象的引用。<br><br><br>//下面再来个小插曲<br>php中对于地址的指向(类似指针)功能不是由用户自己来实现的,是由Zend核心实现的,php中引用采用的是“写时拷贝”的原理,就是除非发生写操作,指向同一个地址的变量或者对象是不会被拷贝的。<br><br>通俗的讲<br>1:如果有下面的代码<br></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);"><br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ABC</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br>&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">=&amp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><br>其实此时 $a与$b都是指向同一内存地址 而并不是$a与$b占用不同的内存<br><br>2:如果在上面的代码基础上再加上如下代码<br></p><p><span style="color: rgb(0, 0, 0);">&lt;?</span><span style="color: rgb(0, 0, 0);">php<br>&nbsp;&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EFG</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br></span><span style="color: rgb(0, 0, 0);">?&gt;</span></p><p><br>由于$a与$b所指向的内存的数据要重新写一次了,此时Zend核心会自动判断 自动为$b生产一个$a的数据拷贝,重新申请一块内存进行存储<br><br></p><p>php的引用(就是在变量或者函数、对象等前面加上&amp;符号)是个高级话题,新手多注意,正确的理解php的引用很重要,对性能有较大影响,而且理解错误可能导致程序错误!</p><p>很 多人误解php中的引用跟C当中的指针一样,事实上并非如此,而且很大差别。C语言中的指针除了在数组传递过程中不用显式申明外,其他都需要使用*进行定 义,而php中对于地址的指向(类似指针)功能不是由用户自己来实现的,是由Zend核心实现的,php中引用采用的是“写时拷贝”的原理,就是除非发生 写操作,指向同一个地址的变量或者对象是不会被拷贝的,比如下面的代码:</p><p>&nbsp;</p><p><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">array</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">a</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">c</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">...</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">n</span><span style="color: rgb(0, 0, 0);">''</span><span style="color: rgb(0, 0, 0);">);<br></span><span style="color: rgb(128, 0, 128);">$b</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(128, 0, 128);">$a</span><span style="color: rgb(0, 0, 0);">;</span></p><p>如 果程序仅执行到这里,$a和$b是相同的,但是并没有像C那样,$a和$b占用不同的内存空间,而是指向了同一块内存,这就是php和c的差别,并不需要 写成$b=&amp;$a才表示$b指向$a的内存,zend就已经帮你实现了引用,并且zend会非常智能的帮你去判断什么时候该这样处理,什么时候不 该这样处理。</p><p>'); INSERT INTO `article_content` (`id`, `content_id`, `content`) VALUES (45, 251, '<p><b>$(selector).after(content)</b></p><p>after() 方法在selector后插入指定的content</p><p><br></p><p><b>$(selector).append(content)</b></p><p>append() 方法在selector的结尾插入指定内容(插入的内容是在selector的标签内结尾)。</p>'), (46, 252, '<p>设计模式就是解决问题的方案或者说是模板<br></p>'), (47, 253, '<p>查看远程库信息:git remote -v(Note:参数v表示详细信息)</p><p>推送分支:git push &lt;remote&gt; &lt;name&gt;</p><p>查看分支:git branch</p><p>创建分支:git branch &lt;name&gt;</p><p>切换分支:git checkout &lt;name&gt;</p><p>创建+切换分支:git checkout -b &lt;name&gt; (Note:命令加上-b参数表示创建并切换)</p><p>创建远程分支:git checkout -b &lt;name&gt; git push origin &lt;name&gt;</p><p>本地合并某分支到当前分支:git merge &lt;name&gt;</p><p>删除分支:git branch -d &lt;name&gt;</p><p>删除远程分支:git push origin :&lt;name&gt;</p><p>查看远程分支:git branch -r</p><p>查看所有分支:git branch -a</p><p>查看日志(单行显示):git log --pretty=oneline </p><p>查看日志(分支合并图显示):git log --graph --pretty=oneline --abbrev-commit</p><p>撤销暂存区文件:git reset HEAD -- file</p><p>撤销工作区文件:git checkout -- file</p><p>从远程获取最新版本到本地:git fetch(Note:不会自动merge,后续git merge origin/master)</p><p>从远程获取最新版本到本地:git pull(Note:从远程获取最新版本并merge到本地)</p><p>从远程库checkout文件:git checkout origin/master file(如果本地仓库文件被删除,可以使用该命令重新获取远程库最新文件)</p><p>回退版本到上一个版本:git reset --hard HEAD^</p><p>回退到指定版本:git reset --hard &lt;commit_id&gt;</p>'), (48, 254, '<pre style="max-width:100%;overflow-x:auto;"><code class="php hljs" codemark="1"><span class="hljs-meta">&lt;?php</span>\r\n\r\n<span class="hljs-comment">/**\r\n\r\n * 所有观察者必须实现的接口\r\n\r\n * Interface Observer\r\n\r\n */</span>\r\n\r\n<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">Observer</span> </span>{\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">update</span><span class="hljs-params">()</span></span>;\r\n\r\n}\r\n\r\n<span class="hljs-comment">/**\r\n\r\n * 观察者1\r\n\r\n * Class sendEmail\r\n\r\n */</span>\r\n\r\n<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SendEmail</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">Observer</span> </span>{\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">update</span><span class="hljs-params">()</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">echo</span> <span class="hljs-string">''the email has been send &lt;br&gt;''</span>;\r\n\r\n }\r\n\r\n}\r\n\r\n<span class="hljs-comment">/**\r\n\r\n * 观察者2\r\n\r\n * Class SaveName\r\n\r\n */</span>\r\n\r\n<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">SaveName</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">Observer</span> </span>{\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">update</span><span class="hljs-params">()</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">echo</span> <span class="hljs-string">''the name has been save &lt;br&gt;''</span>;\r\n\r\n }\r\n\r\n}\r\n\r\n<span class="hljs-comment">/**\r\n\r\n * 被观察者接口\r\n\r\n * Interface Observered\r\n\r\n */</span>\r\n\r\n<span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">Observered</span> </span>{\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">attach</span><span class="hljs-params">($object)</span></span>;\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">delete</span><span class="hljs-params">($object)</span></span>;\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">notify</span><span class="hljs-params">()</span></span>;\r\n\r\n}\r\n\r\n<span class="hljs-comment">/**\r\n\r\n * 被观察者\r\n\r\n * Class User\r\n\r\n */</span>\r\n\r\n<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">User</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">Observered</span> </span>{\r\n\r\n <span class="hljs-keyword">public</span> $observers = <span class="hljs-keyword">array</span>();\r\n\r\n <span class="hljs-comment">/**\r\n\r\n * 注册观察者\r\n\r\n * <span class="hljs-doctag">@param</span> $object\r\n\r\n */</span>\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">attach</span><span class="hljs-params">($object)</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">if</span> (!is_object($object)) {\r\n\r\n <span class="hljs-keyword">exit</span>(<span class="hljs-string">''it is not an object''</span>);\r\n\r\n }\r\n\r\n <span class="hljs-keyword">if</span> ($object <span class="hljs-keyword">instanceof</span> Observer) {\r\n\r\n <span class="hljs-keyword">if</span> (!in_array($object,$this-&gt;observers)) {\r\n\r\n $this-&gt;observers[] = $object;\r\n\r\n }\r\n\r\n } <span class="hljs-keyword">else</span> {\r\n\r\n <span class="hljs-keyword">echo</span> get_class($object) . <span class="hljs-string">'' is disable &lt;br&gt;''</span>;\r\n\r\n }\r\n\r\n }\r\n\r\n <span class="hljs-comment">/**\r\n\r\n * 删除观察者\r\n\r\n * <span class="hljs-doctag">@param</span> $object\r\n\r\n */</span>\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">delete</span><span class="hljs-params">($object)</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">if</span> (in_array($object,$this-&gt;observers)) {\r\n\r\n $index = array_search($object,$this-&gt;observers);\r\n\r\n <span class="hljs-keyword">unset</span>($this-&gt;observers[$index]);\r\n\r\n }\r\n\r\n }\r\n\r\n <span class="hljs-comment">/**\r\n\r\n * 通知所有观察者\r\n\r\n */</span>\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">notify</span><span class="hljs-params">()</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">foreach</span> ($this-&gt;observers <span class="hljs-keyword">as</span> $val) {\r\n\r\n $val-&gt;update();\r\n\r\n }\r\n\r\n }\r\n\r\n <span class="hljs-comment">/**\r\n\r\n * 被观察者自己的业务\r\n\r\n */</span>\r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">printName</span><span class="hljs-params">()</span>\r\n\r\n </span>{\r\n\r\n <span class="hljs-keyword">echo</span> <span class="hljs-string">''I have been observing &lt;br&gt;''</span>;\r\n\r\n }\r\n\r\n}\r\n\r\n $object = <span class="hljs-keyword">new</span> User();\r\n\r\n $object-&gt;attach(<span class="hljs-keyword">new</span> SendEmail()); <span class="hljs-comment">//注册观察者1</span>\r\n\r\n $object-&gt;attach(<span class="hljs-keyword">new</span> SaveName()); <span class="hljs-comment">//注册观察者2</span>\r\n\r\n $object-&gt;printName(); <span class="hljs-comment">//被观察者自己的业务</span>\r\n\r\n $object-&gt;notify(); <span class="hljs-comment">//通知所有的观察者</span></code></pre><p><br></p>'), (50, 256, '<h2>引入 highlight.js 文件</h2><p>我们需要在页面中同时引入一个 js 文件和一个 css 文件(&nbsp;<a href="http://open.bootcss.com/">CDN</a>&nbsp;链接,既简单又提升加载速度):</p><pre><code class="lang-css"><font size="3">&lt;link href="http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet"&gt; \r\n&lt;script src="http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"&gt;&lt;/script&gt; \r\n</font></code></pre><p>第一个文件是样式文件,我们采用 sublime 编辑器类似的样式;第二个文件是 highlight.js 的核心文件,就是它解析代码的。</p><pre><code class="lang-js"><font size="3">&lt;script &gt;hljs.initHighlightingOnLoad();&lt;/script&gt; </font></code></pre><p>初始化加载,OK</p><p><br></p><p>另外,也可以自己的网站引入js和css</p><p><a href="http://pan.baidu.com/s/1mgIQjH2"><font color="#333333">下载地址:</font>http://pan.baidu.com/s/1mgIQjH2</a><br></p>'), (51, 257, '<p><strong>单例模式的要点有三个:<br></strong><font>一、只能有一个实例;<br>二、自行创建这个实例;<br>三、向整个系统提供这个实例。</font></p><p><br></p><p><strong><font color="#ff0000">优点:</font></strong></p><ol><li>单例模式可以避免大量的new操作,因为每一次new操作都会消耗内存资源和系统资源(例如所有的应用情景只应有一个数据库句柄资源)</li><li>使用类来全局控制系统的配置信息,例如Yii中的Yii::app()</li></ol><p><br></p><p><strong><font>缺点:</font></strong></p><p>众所周知,PHP语言是一种解释型的脚本语言,这种运行机制使得每个PHP页面被解释执行后,所有的相关资源都会被回收。也就是说,PHP在语言级别上没有办法让某个对象常驻内存,这和asp.net、Java等编译型是不同的,比如在Java中单例会一直存在于整个应用程序的生命周期里,变量是跨页面级的,真正可以做到这个实例在应用程序生命周期中的唯一性。然而在PHP中,所有的变量无论是全局变量还是类的静态成员,都是页面级的,每次页面被执行时,都会重新建立新的对象,都会在页面执行完毕后被清空,这样似乎PHP单例模式就没有什么意义了,所以PHP单例模式我觉得只是针对单次页面级请求时出现多个应用场景并需要共享同一对象资源时是非常有意义的。</p><pre style="-ms-overflow-x: auto; max-width: 100%;"><code class="php hljs" codemark="1"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">Singleton</span></span>{ \r\n\r\n <span class="hljs-comment">//保存类的实例 </span>\r\n <span class="hljs-keyword">private</span> <span class="hljs-keyword">static</span> $_instance; \r\n\r\n <span class="hljs-comment">//设置为private,防止外部实例化对象</span>\r\n <span class="hljs-keyword">private</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">__construct</span><span class="hljs-params">()</span></span>{ \r\n <span class="hljs-keyword">echo</span> <span class="hljs-string">"This is a Constructed method;"</span>; \r\n } \r\n\r\n <span class="hljs-comment">//防止对象被克隆 </span>\r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">__clone</span><span class="hljs-params">()</span></span>{ \r\n trigger_error(<span class="hljs-string">''Clone is not allow !''</span>,E_USER_ERROR); \r\n } \r\n\r\n <span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">getInstance</span><span class="hljs-params">()</span></span>{ \r\n <span class="hljs-keyword">if</span>(!(<span class="hljs-keyword">self</span>::$_instance <span class="hljs-keyword">instanceof</span> <span class="hljs-keyword">self</span>)){ \r\n <span class="hljs-keyword">self</span>::$_instance = <span class="hljs-keyword">new</span> <span class="hljs-keyword">self</span>; \r\n } \r\n <span class="hljs-keyword">return</span> <span class="hljs-keyword">self</span>::$_instance; \r\n } \r\n \r\n <span class="hljs-keyword">public</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">test</span><span class="hljs-params">()</span></span>{ \r\n <span class="hljs-keyword">echo</span> <span class="hljs-string">''调用方法成功''</span>; \r\n } \r\n} \r\n\r\n<span class="hljs-comment">//正确的调用方法 </span>\r\n$singleton = Singleton::getInstance(); \r\n$singleton-&gt;test(); \r\n\r\n$singleton_clone = <span class="hljs-keyword">clone</span> $singleton; \r\n\r\n</code></pre><p><br></p><p><a href="https://www.douban.com/group/topic/47722220/?author=1" rel="nofollow">https://www.douban.com/group/topic/47722220/?author=1</a><br></p><p><br></p>'), (52, 258, '<p>require文件不存在时,程序中断,并报致命错误</p><p>include文件不存在时,程序不中断,但会抛出警告<br></p>'), (53, 259, '<p><b>ls&nbsp; &gt;&nbsp; filelist.txt</b></p><p>"&gt;" 是输出到文件中, 如果文件存在, 则原来的内容被清空, 不存在则创建文件</p><p><br></p><p><b>ls&nbsp; &gt;&gt;&nbsp; filelist.txt</b></p><p>"&gt;&gt;"是把输出追加到文件中, 如果文件存在, 追加到末尾, 不存在则创建文件<br></p><p><br></p><p><b>ps -ef |grep abc </b><br></p><p>查看含有"abc"的活动进程</p><p><br></p><p><b>ps -ef |grep -v abc </b><br></p><p>查看不含abc的活动进程</p><p><br></p><p><b>清空整个文档</b><br></p><p>&nbsp;gg 这里是跳至文件首行 再执行:dG 这样就清空了整个文件<br></p>'), (54, 260, '<p>cat命令主要用来查看文件内容,创建文件,文件合并,追加文件内容等功能。</p><p>&nbsp;</p><p>A:查看文件内容主要用法:</p><p>1、cat f1.txt,查看f1.txt文件的内容。</p><p>2、cat -n f1.txt,查看f1.txt文件的内容,并且由1开始对所有输出行进行编号。</p><p>3、cat -b f1.txt,查看f1.txt文件的内容,用法与-n相似,只不过对于空白行不编号。</p><p>4、cat -s&nbsp;f1.txt,当遇到有连续两行或两行以上的空白行,就代换为一行的空白行。</p><p>5、cat -e&nbsp;f1.txt,在输出内容的每一行后面加一个$符号。</p><p>6、cat&nbsp;f1.txt&nbsp;f2.txt,同时显示f1.txt和f2.txt文件内容,注意文件名之间以空格分隔,而不是逗号。</p><p>7、cat -n f1.txt&gt;f2.txt,对f1.txt文件中每一行加上行号后然后写入到f2.txt中,会覆盖原来的内容,文件不存在则创建它。</p><p>8、cat -n f1.txt&gt;&gt;f2.txt,对f1.txt文件中每一行加上行号后然后追加到f2.txt中去,不会覆盖原来的内容,文件不存在则创建它。</p><p>&nbsp;</p><p>B:创建文件以及写入文件内容的用法:</p><p><img src="file:///C:/Users/L/AppData/Local/YNote/data/549241301@qq.com/ed7bcfe9e5b94a53a37faa6c39883b1d/20130608203711.jpg" alt=""></p><p>注意:创建文件的时候要设置文件结束标志,也就是&lt;&lt;EOF,可以把EOF换成别的字符,注意是大小写敏感的,当文件内容写完之后要输入结束标志EOF,这时命令会正确结束,表示成功创建文件并且写进内容。</p><p>&nbsp;<img src="http://images.cnitblog.com/blog/352319/201411/061948276112586.jpg" alt=""></p><p>&nbsp;</p><p>&nbsp;C:追加文件内容的用法:</p><p><img src="file:///C:/Users/L/AppData/Local/YNote/data/549241301@qq.com/6b2e8b1a65f24a2b8bb48851eaa22a90/20130608204344.jpg" alt=""></p><p>注意:与创建文件内容不同的是符号单边号&gt;变成了双边号&gt;&gt;。</p><p><img src="http://images.cnitblog.com/blog/352319/201411/061949161747450.jpg" alt=""></p><p>&nbsp;</p><p>D:文件合并的用法</p><p><img src="http://images.cnitblog.com/blog/352319/201411/061949574247848.jpg" alt=""></p><p><img src="file:///C:/Users/L/AppData/Local/YNote/data/549241301@qq.com/1d824936f69a4dd3aec00d3876ced303/20130608205024.jpg" alt=""></p><p>把文件f2.txt,f3.txt,f4.txt的文件内容写入到f1.txt中,如果f1.txt文件以前有内容,则先会清除它们然后再写入合并后的内容。</p><p>如果不想清除文件内容,则可以把单边号&gt;变成了双边号&gt;&gt;,如下图所示:</p><p><img src="http://images.cnitblog.com/blog/352319/201411/061950394083388.jpg" alt=""></p><p>&nbsp;</p><p><span style="color: rgb(255, 0, 0);">附:</span></p><p><span style="color: rgb(255, 0, 0);">cat命令的全称:</span></p><p><span style="color: rgb(255, 0, 0);">concatenate files and print on the standard output</span></p><p><br></p><p><br></p><p><a href="http://www.cnblogs.com/fabulousyoung/p/4079759.html" rel="nofollow">http://www.cnblogs.com/fabulousyoung/p/4079759.html</a><br></p>'), (55, 261, '<p>管道符号,是unix一个很强大的功能,符号为一条竖线:"|"。</p><p>用法: command 1 | command 2 他的功能是把第一个命令command 1执行的结果作为command2的输入传给command </p>'), (56, 262, '<p><b>$$&nbsp;</b></p><p>Shell本身的PID(ProcessID)&nbsp;</p><p><b>$!&nbsp;</b></p><p>Shell最后运行的后台Process的PID&nbsp;</p><p><b>$?&nbsp;</b></p><p>最后运行的命令的结束代码(返回值)&nbsp;</p><p><b>$-&nbsp;</b></p><p>使用Set命令设定的Flag一览&nbsp;</p><p><b>$*&nbsp;</b></p><p>所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出所有参数。&nbsp;</p><p><b>$@</b>&nbsp;</p><p>所有参数列表。如"$@"用「"」括起来的情况、以"$1" "$2" … "$n" 的形式输出所有参数。&nbsp;</p><p><b>$#&nbsp;</b></p><p>添加到Shell的参数个数&nbsp;</p><p><b>$0&nbsp;</b></p><p>Shell本身的文件名&nbsp;</p><p><b>$1~$n&nbsp;</b></p><p>添加到Shell的各参数值。$1是第1参数、$2是第2参数…。 </p><p><br></p><p><br></p><p><a href="http://www.cnblogs.com/fhefh/archive/2011/04/15/2017613.html" rel="nofollow">http://www.cnblogs.com/fhefh/archive/2011/04/15/2017613.html</a><br></p>'), (57, 263, '<p> <b>command&nbsp; &gt; out.file &nbsp; 2&gt;&amp;1 &amp;</b></p><p><b><br></b></p><p>2&gt;&amp;前面的2表示错误输出,如果是1&gt;表示表示标准输出,这个1可以省略掉</p><p><br></p><p>&gt;out.file&nbsp; 是将command的输出重定向到out.file文件,即输出内容不打印到屏幕上,而是输出到out.file文件中。</p><p><br></p><p>2&gt;&amp;1&nbsp;&nbsp; 是将标准出错重定向到标准输出,这里的标准输出已经重定向到了out.file文件,即将标准出错也输出到out.file文件中<br></p><p><br></p><p>最后一个&amp;, 是让该命令在后台执行。</p><p><br></p><p><br></p><p>测试例子</p><pre><code class="lang-bash">#!/bin/sh\r\n \r\nls 2&gt;1测试一下,不会报没有2文件的错误,但会输出一个空的文件1;\r\n\r\nls xxx 2&gt;1测试,没有xxx这个文件的错误输出到了1中;\r\n\r\nls xxx 2&gt;&amp;1测试,不会生成1这个文件了,不过错误跑到标准输出了;\r\n\r\nls xxx &gt;out.txt 2&gt;&amp;1, 实际上可换成 ls xxx 1&gt;out.txt 2&gt;&amp;1;重定向符号&gt;默认是1,错误和输出都传到out.txt了。<br><br></code></pre>'), (58, 264, '<p>把/dev/null看作"黑洞". 它非常等价于一个只写文件. 所有写入它的内容都会永远丢失. 而尝试从它那儿读取内容则什么也读不到. 然而,/dev/null对命令行和脚本都非常的有用.</p><p>禁止标准输出.</p><table><colgroup></colgroup><tbody><tr><td><pre><code>1 cat $filename &gt;/dev/null\r\n 2 # 文件内容丢失,而不会输出到标准输出.</code></pre></td></tr></tbody></table><p>禁止标准错误 </p><table><colgroup></colgroup><tbody><tr><td><pre><code>1 rm $badname 2&gt;/dev/null\r\n2 # 这样错误信息[标准错误]就被丢到太平洋去了.</code></pre></td></tr></tbody></table><p>禁止标准输出和标准错误的输出.</p><table><colgroup></colgroup><tbody><tr><td><pre><code>1 cat $filename 2&gt;/dev/null &gt;/dev/null\r\n2 # 如果"$filename"不存在,将不会有任何错误信息提示.\r\n3 # 如果"$filename"存在, 文件的内容不会打印到标准输出.\r\n4 # 因此Therefore, 上面的代码根本不会输出任何信息.\r\n5 # 当只想测试命令的退出码而不想有任何输出时非常有用。\r\n6 #-----------测试命令的退出 begin ----------------------#\r\n7 # ls dddd 2&gt;/dev/null 8 \r\n8 # echo $? //输出命令退出代码:0为命令正常执行,1-255为有出错。 \r\n9 #-----------测试命令的退出 end-----------# \r\n10# cat $filename &amp;&gt;/dev/null \r\n11 # 也可以, 由 <NAME> 指出.</code></pre></td></tr></tbody></table><p>清除日志文件内容</p><table><colgroup></colgroup><tbody><tr><td><pre><code>1 cat /dev/null &gt; /var/log/messages\r\n2 # : &gt; /var/log/messages 有同样的效果, 但不会产生新的进程.(因为:是内建的)\r\n3 \r\n4 cat /dev/null &gt; /var/log/wtmp</code></pre></td></tr></tbody></table><p><strong>例子 28-1. 隐藏cookie而不再使用</strong></p><table><colgroup></colgroup><tbody><tr><td><pre><code>1 if [ -f ~/.netscape/cookies ] # 如果存在则删除.\r\n2 then\r\n3 rm -f ~/.netscape/cookies\r\n4 fi\r\n5 \r\n6 ln -s /dev/null ~/.netscape/cookies\r\n7 # 现在所有的cookies都会丢入黑洞而不会保存在磁盘上了.</code></pre></td></tr></tbody></table><p><br></p><pre><code class="lang-bash">&gt; /dev/null表示把标准输出重定向到/dev/null,也就是不在屏幕上输出标准输出\r\n\r\n&gt;&amp; /dev/null表示把标准输出和错误输出重定向到/dev/null,程序不在屏幕上输出<br></code></pre><p><br></p><p><br></p><p><a href="http://blog.csdn.net/kaiwii/article/details/7308729">http://blog.csdn.net/kaiwii/article/details/7308729</a><br></p>'), (59, 265, '<p>mysql查询缓存保存查询返回的完整结果,一旦命中该缓存,mysql会跳过解析,优化,执行阶段直接返回结果</p><p><br></p><p>缓存是放在一个引用表,通过一个哈希值引用(包括查询本身,数据库,版本等等)来匹配缓存,如果sql语句存在不确定的数据(例如NOW())则不会被缓存,所以,写代码时最好是把计算结果传到到sql语句,而不是在sql语句使用数据库内置函数</p><p><br></p><p>问题:</p><p>查询缓存对读和写有额外的开销</p><p>查询缓存是一个加锁排他操作</p><p><br></p><p>查询缓存完全存储在内存中</p><p><br></p><p>判断查询缓存是否有效的直接数据是命中率,就是查询缓存的时间占总查询比率(命中率 = Qcache_hits/(Qcache_hits+Com_select))</p><p>可以用过show status like ''qcache_hits'' 和 show status like ''Com_select'' 查看数值</p><p><br></p><p><b><span style="color: rgb(0, 0, 0);">mysql<span style="color: rgb(0, 0, 204);">&gt;</span> <span style="color: rgb(255, 0, 0);">SHOW</span> STATUS <span style="color: rgb(0, 0, 255);">LIKE</span> <span style="color: rgb(255, 0, 255);">''qcache%''</span><span style="color: rgb(0, 0, 204);">;</span></span><br></b></p><p><b>MySQL&nbsp;<font>查询缓存变量 说明</font></b><br></p><p></p><p>Qcache_free_blocks</p><p>缓存中相邻内存块的个数。数目大说明可能有碎片。<font>FLUSH&nbsp;QUERY&nbsp;CACHE&nbsp;</font><font>会对缓存中的碎片进行整理,从而得到一个空闲块。</font></p><p>Qcache_free_memory</p><p>缓存中的空闲内存。</p><p>Qcache_hits</p><p>每次查询在缓存中命中时就增大。</p><p>Qcache_inserts</p><p>每次插入一个查询时就增大。</p><p>Qcache_lowmem_prunes</p><p>缓存出现内存不足并且必须要进行清理以便为更多查询提供空间的次数。这个数字最好长时间来看;如果这个数字在不断增长,就表示可能碎片非常严重,或者内存很少。</p><p>Qcache_not_cached</p><p>不适合进行缓存的查询的数量,通常是由于这些查询不是&nbsp;<font>SELECT&nbsp;</font><font>语句。</font></p><p>Qcache_queries_in_cache &nbsp; <br></p><p>&nbsp;当前缓存的查询(和响应)的数量。</p><p><br></p><p><span style="color: rgb(0, 0, 0);">mysql<span style="color: rgb(0, 0, 204);">&gt;</span> <span style="color: rgb(255, 0, 0);">SHOW</span> VARIABLES <span style="color: rgb(0, 0, 255);">LIKE</span> <span style="color: rgb(255, 0, 255);">''%query_cache%''</span><span style="color: rgb(0, 0, 204);">;</span></span><br></p>'), (61, 267, '<pre><code class="lang-c++">#include &lt;stdio.h&gt;\r\n#include &lt;stdlib.h&gt;\r\n#include &lt;malloc.h&gt;\r\n#include &lt;stdbool.h&gt;\r\n\r\n/*节点结构体*/\r\ntypedef struct Node {\r\n int data;\r\n struct Node * pNext;\r\n}NODE, * PNODE;\r\n\r\n//创建联表\r\nPNODE create_list();\r\n//显示链表\r\nvoid traverse_list(PNODE pHead);\r\n//链表是否为空\r\nbool is_empty(PNODE pHead);\r\n//链表长度\r\nint list_length(PNODE pHead);\r\n//删除指定位置的节点\r\nint delete_node(PNODE pHead, int pos);\r\n//插入新节点\r\nbool insert_node(PNODE pHead, int pos, int val);\r\n//链表向前移动一位\r\nvoid left_shift_one(PNODE pHead);\r\n//链表向前移动pos位\r\nvoid left_rotate_string(PNODE pHead, int pos);\r\n//翻转链表\r\nvoid reverse_string(PNODE pHead, int from, int to);\r\n//在某个位置翻转链表\r\nvoid rotate_string(PNODE pHead, int pos);\r\n//根据位置获取节点\r\nPNODE get_node_by_pos(PNODE pHead, int pos);\r\n//是否为回文链表\r\nbool is_palindrome(PNODE pHead);\r\n\r\n\r\nmain()\r\n{\r\n PNODE pHead;\r\n\r\n //创建链表\r\n pHead = create_list();\r\n\r\n //打印链表\r\n traverse_list(pHead);\r\n\r\n //判断链表长度\r\n printf("链表创建成功,长度为:%d\\n", list_length(pHead));\r\n\r\n //回文链表判断\r\n if (is_palindrome(pHead)) {\r\n printf("这是一个回文链表\\n\\n");\r\n } else {\r\n printf("这不是一个回文链表\\n\\n");\r\n }\r\n\r\n //翻转链表(暴力翻转)\r\n int start;\r\n printf("请输入从第几位开始翻转链表:");\r\n scanf("%d", &amp;start);\r\n printf("------------------从第%d位置开始翻转链表后的变化-----------------\\n", start);\r\n rotate_string(pHead, start);\r\n traverse_list(pHead);\r\n printf("当前链表的长度:%d\\n", list_length(pHead));\r\n\r\n //插入新节点\r\n int pos,val;\r\n printf("请输入新插入节点位置:");\r\n scanf("%d", &amp;pos);\r\n printf("请输入新节点数值:");\r\n scanf("%d", &amp;val);\r\n printf("------------------新插入节点后的变化-----------------\\n");\r\n insert_node(pHead, pos, val);\r\n printf("新插入的节点是%d,位置是%d\\n", val, pos);\r\n traverse_list(pHead);\r\n printf("当前链表的长度:%d\\n\\n", list_length(pHead));\r\n\r\n //删除链表节点\r\n int delPos;\r\n printf("请输入删除节点的位置:");\r\n scanf("%d", &amp;delPos);\r\n int hasDel = delete_node(pHead, delPos);\r\n printf("------------------删除节点后的变化-----------------\\n");\r\n printf("删除的节点是%d,位置是%d\\n", hasDel, delPos);\r\n traverse_list(pHead);\r\n printf("当前链表的长度:%d\\n\\n", list_length(pHead));\r\n\r\n}\r\n\r\n//创建联表\r\nPNODE create_list()\r\n{\r\n int i;int len;int val;\r\n PNODE pHead; //链表首地址\r\n PNODE pNew; //新增加的节点\r\n PNODE pLast; //链表最后一个节点\r\n\r\n //先分配表头\r\n pHead = (PNODE)malloc(sizeof(NODE));\r\n if (NULL == pHead) {\r\n printf("创建表头失败!\\n");\r\n exit(-1);\r\n }\r\n\r\n //创建一个节点的指针变量,用来保存链表的最后一个节点\r\n pLast = pHead;\r\n pLast-&gt;pNext = NULL;\r\n\r\n printf("请输入链表个数:");\r\n scanf("%d", &amp;len);\r\n\r\n for(i=0;i&lt;len;i++) {\r\n printf("请输入第%d个值:", i+1);\r\n scanf("%d", &amp;val);\r\n\r\n pNew = (PNODE)malloc(sizeof(NODE));\r\n if (NULL == pNew) {\r\n printf("链表分配内存失败!\\n");\r\n exit(-1);\r\n }\r\n pNew-&gt;data = val;\r\n pLast-&gt;pNext = pNew;\r\n pNew-&gt;pNext = NULL;\r\n pLast = pNew; //将新节点作为最后一个节点\r\n }\r\n\r\n return pHead;\r\n}\r\n\r\n//打印链表\r\nvoid traverse_list(PNODE pHead)\r\n{\r\n PNODE p = pHead-&gt;pNext; //首节点(第一个有效节点)\r\n while (p != NULL) {\r\n printf("%d\\n",p-&gt;data);\r\n p = p-&gt;pNext;\r\n }\r\n}\r\n\r\n//链表是否为空\r\nbool is_empty(PNODE pHead)\r\n{\r\n return pHead-&gt;pNext == NULL;\r\n}\r\n\r\n//链表长度\r\nint list_length(PNODE pHead)\r\n{\r\n int len = 0;\r\n PNODE p = pHead-&gt;pNext; //首节点(第一个有效节点)\r\n while (p != NULL) {\r\n ++len;\r\n p = p-&gt;pNext;\r\n }\r\n return len;\r\n}\r\n\r\n//插入新节点\r\nbool insert_node(PNODE pHead, int pos, int val)\r\n{\r\n int i = 0;\r\n PNODE p = pHead;\r\n while (i&lt;pos-1 &amp;&amp; p != NULL) {\r\n p = p-&gt;pNext;\r\n i++;\r\n }\r\n\r\n int len = list_length(pHead);\r\n if (pos&lt;i || pos&gt;len+1) {\r\n return false;\r\n }\r\n\r\n PNODE pNew = (PNODE)malloc(sizeof(NODE));\r\n if (NULL == pNew) {\r\n printf("分配内存失败!\\n");\r\n exit(-1);\r\n }\r\n pNew-&gt;data = val;\r\n pNew-&gt;pNext = p-&gt;pNext;\r\n p-&gt;pNext = pNew;\r\n}\r\n\r\n//删除节点\r\nint delete_node(PNODE pHead, int pos)\r\n{\r\n int i = 0;\r\n PNODE p = pHead;\r\n while (i&lt;pos-1 &amp;&amp; p != NULL) {\r\n p = p-&gt;pNext;\r\n i++;\r\n }\r\n\r\n if (pos&lt;i || pos&gt;list_length(pHead)) {\r\n return 0;\r\n }\r\n\r\n PNODE nextNode = p-&gt;pNext;\r\n int val = nextNode-&gt;data;\r\n p-&gt;pNext = nextNode-&gt;pNext;\r\n free(nextNode);\r\n return val;\r\n}\r\n\r\n//翻转链表\r\nvoid reverse_string(PNODE pHead, int from, int to)\r\n{\r\n int t;\r\n PNODE pFrom,pTo;\r\n pFrom = get_node_by_pos(pHead, from);\r\n pTo = get_node_by_pos(pHead, to);\r\n\r\n while(from&lt;to){\r\n t=pFrom-&gt;data;\r\n pFrom-&gt;data=pTo-&gt;data;\r\n pTo-&gt;data = t;\r\n pFrom = pFrom-&gt;pNext;\r\n pTo = get_node_by_pos(pHead, to-1); //单向拿不到上一个节点,只能通过循环找出来\r\n from++;\r\n to--;\r\n }\r\n}\r\n\r\n//是否为回文链表\r\nbool is_palindrome(PNODE pHead)\r\n{\r\n int front = 0;\r\n int back = list_length(pHead) - 1;\r\n PNODE pFront, pBack;\r\n\r\n pFront = get_node_by_pos(pHead, front);\r\n pBack = get_node_by_pos(pHead, back);\r\n\r\n while(front&lt;back)\r\n {\r\n if (pFront-&gt;data != pBack-&gt;data) {\r\n return false;\r\n }\r\n\r\n pFront = pFront-&gt;pNext;\r\n pBack = get_node_by_pos(pHead, back - 1); //单向拿不到上一个节点,只能通过循环找出来\r\n front++;\r\n back--;\r\n }\r\n return true;\r\n}\r\n\r\n//根据位置找出节点\r\nPNODE get_node_by_pos(PNODE pHead, int pos)\r\n{\r\n int i = 0;\r\n PNODE p = pHead-&gt;pNext;\r\n\r\n while(p!=NULL &amp;&amp; i&lt;pos){\r\n p = p-&gt;pNext;\r\n ++i;\r\n }\r\n return p;\r\n}\r\n\r\n//链表翻转。给出一个链表和一个数k,比如,链表为1→2→3→4→5→6,k=2,则翻转后2→1→6→5→4→3\r\nvoid rotate_string(PNODE pHead, int pos)\r\n{\r\n int n;\r\n int len = list_length(pHead);\r\n\r\n pos %= len;\r\n reverse_string(pHead, 0, pos-1);\r\n\r\n //traverse_list(pHead);exit(-1);\r\n if(pos&lt;len){\r\n reverse_string(pHead,pos,len-1);\r\n }\r\n\r\n}\r\n<br></code></pre>'), (62, 268, '<p>php-mongo扩展下载地址:<br></p><p><a href="https://pecl.php.net/package/mongodb/1.1.9/windows">https://pecl.php.net/package/mongodb/1.1.9/windows</a></p><p><br></p><p>Yii2.0-mongodb地址:<br></p><p><a href="https://github.com/yiisoft/yii2-mongodb/tree/38590d631d121051646c123459e9345bd4eba406/docs/guide">https://github.com/yiisoft/yii2-mongodb/tree/38590d631d121051646c123459e9345bd4eba406/docs/guide</a></p><p><br></p><p>注意问题:<br></p><p> (1)yii2-mongodb 2.1.x 不再支持 mongo 扩展,需要改用 mongodb 1.0 以上版本.</p><p>(2)php -m 查看的是CLI下的扩展,如果和php-fpm分开使用配置文件是不会生效的.具体看phpinfo()是否开启.</p><p>(3)如果是wamp环境下,注意有两个php.ini文件,一个在php目录下,一个在apache目录下,这两个文件都需要开启扩展:extension=php_mongodb.dll <br></p>'), (63, 269, '<pre><code class="lang-bash"><span class="hljs-comment"># 下载composer.phar </span>\r\n<span class="hljs-title">curl</span> -sS <span class="hljs-url">https://getcomposer.org/installer</span> | php\r\n\r\n<span class="hljs-comment"># 把composer.phar移动到环境下让其变成可执行 </span>\r\nmv composer.phar /usr/local/bin/composer\r\n\r\n<span class="hljs-comment"># 测试</span>\r\ncomposer -V \r\n<span class="hljs-comment"># 输出:Composer version 1.0-dev (e64470c987fdd6bff03b85eed823eb4b865a4152) 2015-05-28 14:52:12</span></code></pre><p><br></p><p><br></p><p><a href="https://segmentfault.com/a/1190000004627398">https://segmentfault.com/a/1190000004627398</a><br></p>'), (64, 270, '<p>网站下载coreseek-4.1-beta.tar.gz安装包,并上传到服
<reponame>OpenMPDK/SMDK -- Loads and creates the test UDF's (user-defined functions) defined in -- UserDefinedTestFunctions.java, using various data types, and with -- various numbers of arguments. -- First, drop all the test UDF's (user-defined functions), and remove the class -- containing them, in case they were loaded and created previously DROP FUNCTION add2Tinyint IF EXISTS; DROP FUNCTION add2Smallint IF EXISTS; DROP FUNCTION add2Integer IF EXISTS; DROP FUNCTION add2Bigint IF EXISTS; DROP FUNCTION add2Float IF EXISTS; DROP FUNCTION add2TinyintBoxed IF EXISTS; DROP FUNCTION add2SmallintBoxed IF EXISTS; DROP FUNCTION add2IntegerBoxed IF EXISTS; DROP FUNCTION add2BigintBoxed IF EXISTS; DROP FUNCTION add2FloatBoxed IF EXISTS; DROP FUNCTION add2Decimal IF EXISTS; DROP FUNCTION add2Varchar IF EXISTS; DROP FUNCTION add2Varbinary IF EXISTS; DROP FUNCTION add2VarbinaryBoxed IF EXISTS; DROP FUNCTION addYearsToTimestamp IF EXISTS; DROP FUNCTION add2GeographyPoint IF EXISTS; DROP FUNCTION addGeographyPointToGeography IF EXISTS; DROP FUNCTION getByteArrayOfSize IF EXISTS; DROP FUNCTION add2TinyintWithoutNullCheck IF EXISTS; DROP FUNCTION add2SmallintWithoutNullCheck IF EXISTS; DROP FUNCTION add2IntegerWithoutNullCheck IF EXISTS; DROP FUNCTION add2BigintWithoutNullCheck IF EXISTS; DROP FUNCTION add2FloatWithoutNullCheck IF EXISTS; DROP FUNCTION add2TinyintBoxedWithoutNullCheck IF EXISTS; DROP FUNCTION add2SmallintBoxedWithoutNullCheck IF EXISTS; DROP FUNCTION add2IntegerBoxedWithoutNullCheck IF EXISTS; DROP FUNCTION add2BigintBoxedWithoutNullCheck IF EXISTS; DROP FUNCTION add2FloatBoxedWithoutNullCheck IF EXISTS; DROP FUNCTION piUdf IF EXISTS; DROP FUNCTION piUdfBoxed IF EXISTS; DROP FUNCTION absTinyint IF EXISTS; DROP FUNCTION absSmallint IF EXISTS; DROP FUNCTION absInteger IF EXISTS; DROP FUNCTION absBigint IF EXISTS; DROP FUNCTION absFloat IF EXISTS; DROP FUNCTION absTinyintBoxed IF EXISTS; DROP FUNCTION absSmallintBoxed IF EXISTS; DROP FUNCTION absIntegerBoxed IF EXISTS; DROP FUNCTION absBigintBoxed IF EXISTS; DROP FUNCTION absFloatBoxed IF EXISTS; DROP FUNCTION absDecimal IF EXISTS; DROP FUNCTION reverse IF EXISTS; DROP FUNCTION numRings IF EXISTS; DROP FUNCTION numPointsUdf IF EXISTS; DROP FUNCTION modTinyint IF EXISTS; DROP FUNCTION modSmallint IF EXISTS; DROP FUNCTION modInteger IF EXISTS; DROP FUNCTION modBigint IF EXISTS; DROP FUNCTION modFloat IF EXISTS; DROP FUNCTION modTinyintBoxed IF EXISTS; DROP FUNCTION modSmallintBoxed IF EXISTS; DROP FUNCTION modIntegerBoxed IF EXISTS; DROP FUNCTION modBigintBoxed IF EXISTS; DROP FUNCTION modFloatBoxed IF EXISTS; DROP FUNCTION modDecimal IF EXISTS; DROP FUNCTION btrim IF EXISTS; DROP FUNCTION btrimBoxed IF EXISTS; DROP FUNCTION concat2Varchar IF EXISTS; DROP FUNCTION concat3Varchar IF EXISTS; DROP FUNCTION concat4Varchar IF EXISTS; -- Create the 'add...' test UDF's, which throw all kinds of exceptions, and -- return various flavors of VoltDB 'null' values, when given certain special -- input values (generally from -100 to -120): CREATE FUNCTION add2Tinyint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Tinyint; CREATE FUNCTION add2Smallint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Smallint; CREATE FUNCTION add2Integer FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Integer; CREATE FUNCTION add2Bigint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Bigint; CREATE FUNCTION add2Float FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Float; CREATE FUNCTION add2TinyintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2TinyintBoxed; CREATE FUNCTION add2SmallintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2SmallintBoxed; CREATE FUNCTION add2IntegerBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2IntegerBoxed; CREATE FUNCTION add2BigintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2BigintBoxed; CREATE FUNCTION add2FloatBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2FloatBoxed; CREATE FUNCTION add2Decimal FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Decimal; CREATE FUNCTION add2Varchar FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Varchar; CREATE FUNCTION add2Varbinary FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2Varbinary; CREATE FUNCTION add2VarbinaryBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2VarbinaryBoxed; CREATE FUNCTION addYearsToTimestamp FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.addYearsToTimestamp; CREATE FUNCTION add2GeographyPoint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2GeographyPoint; CREATE FUNCTION addGeographyPointToGeography FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.addGeographyPointToGeography; CREATE FUNCTION getByteArrayOfSize FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.getByteArrayOfSize; -- Create the 'add...WithoutNullCheck' test UDF's, which are just like (some of) -- the ones above (they throw all kinds of exceptions, and return various flavors -- of VoltDB 'null' values, when given certain special input values, generally -- from -100 to -120); but these functions do no null checking: CREATE FUNCTION add2TinyintWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2TinyintWithoutNullCheck; CREATE FUNCTION add2SmallintWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2SmallintWithoutNullCheck; CREATE FUNCTION add2IntegerWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2IntegerWithoutNullCheck; CREATE FUNCTION add2BigintWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2BigintWithoutNullCheck; CREATE FUNCTION add2FloatWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2FloatWithoutNullCheck; CREATE FUNCTION add2TinyintBoxedWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2TinyintBoxedWithoutNullCheck; CREATE FUNCTION add2SmallintBoxedWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2SmallintBoxedWithoutNullCheck; CREATE FUNCTION add2IntegerBoxedWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2IntegerBoxedWithoutNullCheck; CREATE FUNCTION add2BigintBoxedWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2BigintBoxedWithoutNullCheck; CREATE FUNCTION add2FloatBoxedWithoutNullCheck FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.add2FloatBoxedWithoutNullCheck; -- Create simple test UDF's with 0 or 1 arguments (these, and the ones below, -- unlike the ones above, are 'compatible' with PostgreSQL, and do not go out -- of their way to throw exceptions or return VoltDB null values, so they could -- be used by SqlCoverage): CREATE FUNCTION piUdf FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.piUdf; CREATE FUNCTION piUdfBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.piUdfBoxed; CREATE FUNCTION absTinyint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absTinyint; CREATE FUNCTION absSmallint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absSmallint; CREATE FUNCTION absInteger FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absInteger; CREATE FUNCTION absBigint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absBigint; CREATE FUNCTION absFloat FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absFloat; CREATE FUNCTION absTinyintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absTinyintBoxed; CREATE FUNCTION absSmallintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absSmallintBoxed; CREATE FUNCTION absIntegerBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absIntegerBoxed; CREATE FUNCTION absBigintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absBigintBoxed; CREATE FUNCTION absFloatBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absFloatBoxed; CREATE FUNCTION absDecimal FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.absDecimal; CREATE FUNCTION reverse FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.reverse; CREATE FUNCTION numRings FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.numRings; CREATE FUNCTION numPointsUdf FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.numPointsUdf; -- Create simple test UDF's with 2 arguments CREATE FUNCTION modTinyint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modTinyint; CREATE FUNCTION modSmallint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modSmallint; CREATE FUNCTION modInteger FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modInteger; CREATE FUNCTION modBigint FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modBigint; CREATE FUNCTION modFloat FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modFloat; CREATE FUNCTION modTinyintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modTinyintBoxed; CREATE FUNCTION modSmallintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modSmallintBoxed; CREATE FUNCTION modIntegerBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modIntegerBoxed; CREATE FUNCTION modBigintBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modBigintBoxed; CREATE FUNCTION modFloatBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modFloatBoxed; CREATE FUNCTION modDecimal FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.modDecimal; CREATE FUNCTION btrim FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.btrim; CREATE FUNCTION btrimBoxed FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.btrimBoxed; CREATE FUNCTION concat2Varchar FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.concat2Varchar; -- Create simple test UDF's with 3+ arguments CREATE FUNCTION concat3Varchar FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.concat3Varchar; CREATE FUNCTION concat4Varchar FROM METHOD org.voltdb_testfuncs.UserDefinedTestFunctions.concat4Varchar;
<filename>src/test/regress/sql/gpi_clean_wait.sql drop table if exists test_gpi_more_invalid; create table test_gpi_more_invalid(a int, b int, c int) partition by range(a) (partition p1 values less than (1001), partition p2 values less than (2001), partition p3 values less than (3001)); insert into test_gpi_more_invalid select r,r,100 from generate_series(1,1000) as r; insert into test_gpi_more_invalid select r,r,200 from generate_series(1001,2000) as r; insert into test_gpi_more_invalid select r,r,300 from generate_series(2001,3000) as r; create index global_index_gpi_more_invalid_b on test_gpi_more_invalid (a) global; create index global_index_gpi_more_invalid_c on test_gpi_more_invalid (c) global; create unique index global_index_gpi_more_invalid_a on test_gpi_more_invalid (b) global; create index local_index_gpi_more_invalid_a_b on test_gpi_more_invalid (a,b) local; create index global_index_gpi_more_invalid_a_b_c on test_gpi_more_invalid(a,b,c) global; vacuum analyze test_gpi_more_invalid; start transaction; alter table test_gpi_more_invalid add partition p6 values less than (4001); update test_gpi_more_invalid set a = 3000 + a where a <= 100; select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; explain (costs off) select * from test_gpi_more_invalid where a >= 3000; --100 rows select count(*) from test_gpi_more_invalid where a > 3000; abort; -- delete 100 delete test_gpi_more_invalid where b % 10 = 0 and c = 100; -- delete 100 delete test_gpi_more_invalid where b % 10 = 0 and c = 200; -- delete 100 delete test_gpi_more_invalid where b % 10 = 0 and c = 300; -- after select's where condition insert into test_gpi_more_invalid values(10, 100000, 100); insert into test_gpi_more_invalid values(1020, 200000, 200); insert into test_gpi_more_invalid values(2030, 300000, 300); explain (costs off) select count(*) from test_gpi_more_invalid where a <= 100 and b = 100000; explain (costs off) select count(*) from test_gpi_more_invalid where a > 3000; -- 1 rows select count(*) from test_gpi_more_invalid where a <= 100 and b = 100000; -- 0 rows select count(*) from test_gpi_more_invalid where a >= 3000; -- test_gpi_more_invalid have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; vacuum analyze test_gpi_more_invalid; -- test_gpi_more_invalid have wait_clean_gpi=n select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; explain (costs off) select count(*) from test_gpi_more_invalid where a <= 100; explain (costs off) select count(*) from test_gpi_more_invalid where a >= 4000; -- 91 rows select count(*) from test_gpi_more_invalid where a <= 100; -- 0 rows select count(*) from test_gpi_more_invalid where a >= 4000; explain (costs off) select count(*) from test_gpi_more_invalid where c = 100; -- 900 rows select count(*) from test_gpi_more_invalid where c = 100; explain (costs off) select count(*) from test_gpi_more_invalid where c = 200; -- 900 rows select count(*) from test_gpi_more_invalid where c = 200; explain (costs off) select count(*) from test_gpi_more_invalid where c = 300; -- 900 rows select count(*) from test_gpi_more_invalid where c = 300; explain (costs off) delete test_gpi_more_invalid where b%5 != 0 and (c = 100 or c = 200 or c = 300); delete test_gpi_more_invalid where b%5 != 0 and (c = 100 or c = 200 or c = 300); start transaction; alter table test_gpi_more_invalid add partition p6 values less than (4001); insert into test_gpi_more_invalid select r,r,300 from generate_series(3001,4000) as r; --failed update test_gpi_more_invalid set b = 1001 where c = 200; commit; -- test_gpi_more_invalid have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; set enable_seqscan = off; -- rows 100 explain (costs off) select count(*) from test_gpi_more_invalid where c = 200; select count(*) from test_gpi_more_invalid where c = 200; explain (costs off) select count(*) from test_gpi_more_invalid where c = 300; select count(*) from test_gpi_more_invalid where c = 300; explain (costs off) update test_gpi_more_invalid set a = a - 500 where a < 1500 and a >= 1000; update test_gpi_more_invalid set a = a - 500 where a < 1500 and a >= 1000; explain (costs off) update test_gpi_more_invalid set a = a + 500 where a < 1000 and a >= 500; update test_gpi_more_invalid set a = a + 500 where a < 1000 and a >= 500; explain (costs off) select count(*) from test_gpi_more_invalid where a < 1500 and a >= 1000; select count(*) from test_gpi_more_invalid where a < 1500 and a >= 1000; explain (costs off) select count(*) from test_gpi_more_invalid where a <= 1000; select count(*) from test_gpi_more_invalid where a <= 1000; set force_bitmapand = on; -- partition 1 explain (costs off) select * from test_gpi_more_invalid where b = 100000 and c = 100; select * from test_gpi_more_invalid where b = 100000 and c = 100; --partition 2 explain (costs off) select * from test_gpi_more_invalid where b = 200000 and c = 200; select * from test_gpi_more_invalid where b = 200000 and c = 200; reset force_bitmapand; alter table test_gpi_more_invalid DISABLE ROW MOVEMENT; update test_gpi_more_invalid set a = a - 500 where a < 2000 and a > 1500; -- failed update test_gpi_more_invalid set a = a - 500 where a <= 1500; alter table test_gpi_more_invalid ENABLE ROW MOVEMENT; set force_bitmapand = on; --partition 2 explain (costs off) select * from test_gpi_more_invalid where b = 200000 and c = 200; select * from test_gpi_more_invalid where b = 200000 and c = 200; reset force_bitmapand; start transaction; alter table test_gpi_more_invalid add partition p5 values less than (4001); select * from test_gpi_more_invalid where b = 300000 and c = 700 for update; update test_gpi_more_invalid set a = a + 1000 where a > 1000 or a < 500; select count(*) from test_gpi_more_invalid where c = 100 and b = 2000; -- test_gpi_more_invalid/p5 have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; abort; --failed set xc_maintenance_mode = on; vacuum full pg_partition; set xc_maintenance_mode = off; -- test_gpi_more_invalid have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; vacuum analyze test_gpi_more_invalid; -- test_gpi_more_invalid have wait_clean_gpi=n select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; -- success set xc_maintenance_mode = on; vacuum full pg_partition; set xc_maintenance_mode = off; set force_bitmapand = on; -- partition 1 explain (costs off) select * from test_gpi_more_invalid where b = 100000 and c = 100; select * from test_gpi_more_invalid where b = 100000 and c = 100; --partition 2 explain (costs off) select * from test_gpi_more_invalid where b = 200000 and c = 200; select * from test_gpi_more_invalid where b = 200000 and c = 200; --partition 3 explain (costs off) select * from test_gpi_more_invalid where b = 300000 and c = 300; select * from test_gpi_more_invalid where b = 300000 and c = 300; reset force_bitmapand; start transaction; alter table test_gpi_more_invalid add partition p5 values less than (4001); update test_gpi_more_invalid set a = a + 1000 where a > 1000 or a < 500; alter table test_gpi_more_invalid drop partition p5; commit; -- all global index unusuable select c.relname, i.indisusable from pg_index i join pg_class c on i.indexrelid = c.oid where i.indrelid = 'test_gpi_more_invalid'::regclass ORDER BY c.relname; -- test_gpi_more_invalid have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; vacuum full test_gpi_more_invalid; -- all global index unusuable select c.relname, i.indisusable from pg_index i join pg_class c on i.indexrelid = c.oid where i.indrelid = 'test_gpi_more_invalid'::regclass ORDER BY c.relname; -- test_gpi_more_invalid have wait_clean_gpi=y select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'test_gpi_more_invalid' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; alter index local_index_gpi_more_invalid_a_b unusable; reindex table test_gpi_more_invalid; -- all global index unusuable select c.relname, i.indisusable from pg_index i join pg_class c on i.indexrelid = c.oid where i.indrelid = 'test_gpi_more_invalid'::regclass ORDER BY c.relname; alter index global_index_gpi_more_invalid_a rebuild; alter index global_index_gpi_more_invalid_a_b_c rebuild; alter index global_index_gpi_more_invalid_b rebuild; alter index global_index_gpi_more_invalid_c rebuild; -- all global index usuable select c.relname, i.indisusable from pg_index i join pg_class c on i.indexrelid = c.oid where i.indrelid = 'test_gpi_more_invalid'::regclass ORDER BY c.relname; reset enable_seqscan; drop table test_gpi_more_invalid; drop table if exists interval_normal_date; CREATE TABLE interval_normal_date (logdate date not null, b int, c int) PARTITION BY RANGE (logdate) INTERVAL ('1 day') ( PARTITION interval_normal_date_p1 VALUES LESS THAN ('2020-03-01'), PARTITION interval_normal_date_p2 VALUES LESS THAN ('2020-05-01'), PARTITION interval_normal_date_p3 VALUES LESS THAN ('2020-06-01') ); create index global_interval_index on interval_normal_date(b) global; insert into interval_normal_date select '2020-6-01', 1000,r from generate_series(0, 10000) as r; vacuum interval_normal_date; start transaction; insert into interval_normal_date select '2020-6-02', r,r from generate_series(0,500) as r; explain (costs off) select count(*) from interval_normal_date where b <= 500; select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'interval_normal_date' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; alter table interval_normal_date drop partition sys_p2; commit; select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'interval_normal_date' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; vacuum analyze interval_normal_date; select a.relname,a.parttype,a.reloptions from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'interval_normal_date' and a.reloptions[3] like '%wait_clean_gpi=y%' order by 1,2,3; drop table if exists interval_partition_table_vacuum; create table interval_partition_table_vacuum ( c1 int, c2 int, logdate date not null, PRIMARY KEY(c2,logdate) ) partition by range (logdate) INTERVAL ('1 day') ( PARTITION interval_partition_table_004_p0 VALUES LESS THAN ('2020-03-01'), PARTITION interval_partition_table_004_p1 VALUES LESS THAN ('2020-04-01'), PARTITION interval_partition_table_004_p2 VALUES LESS THAN ('2020-05-01') ); create index global_index_interval_partition_table_vacuum_a on interval_partition_table_vacuum(c1) global; \parallel on insert into interval_partition_table_vacuum values (generate_series(1,10), generate_series(1,10), generate_series(TO_DATE('1990-01-01', 'YYYY-MM-DD'),TO_DATE('2020-12-01', 'YYYY-MM-DD'),'1 day')); vacuum interval_partition_table_vacuum; vacuum interval_partition_table_vacuum; vacuum analyze interval_partition_table_vacuum; \parallel off set enable_bitmapscan = off; explain (costs off) select count(*) from interval_partition_table_vacuum where c1 = 1; -- 11293 rows select count(*) from interval_partition_table_vacuum where c1 = 1; -- all new add partition have wait_clean_gpi=y return true select true from (select count(*) as count from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'interval_partition_table_vacuum' and a.reloptions[3] like '%wait_clean_gpi=y%') wait_clean_gpi where wait_clean_gpi.count = 0 or wait_clean_gpi.count = 216; vacuum analyze interval_partition_table_vacuum; -- 0 rows select count(*) from pg_partition a, pg_class b where a.parentid = b.oid and b.relname = 'interval_partition_table_vacuum' and a.reloptions[3] like '%wait_clean_gpi=y%'; reset enable_bitmapscan; -- clean table drop table interval_partition_table_vacuum; drop table interval_normal_date; drop table test_gpi_more_invalid;
# New columns alter table InputPattern add datatype varchar(255) NULL DEFAULT "LSST_TEST_TYPE" COMMENT 'used in cataloging when type is filepath' after maxV; alter table ActivityFinalStatus add isFinal bool DEFAULT '1' COMMENT 'default is final' after name; alter table TravelerType modify state ENUM('NEW', 'ACTIVE', 'DEACTIVATED', 'SUPERSEDED') NULL; alter table TravelerType modify reason text COMMENT 'purpose of travleler or of this version'; # New tables CREATE TABLE TravelerTypeState ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, createdBy varchar(50) NOT NULL, creationTS timestamp NULL, PRIMARY KEY (id), CONSTRAINT ix36 UNIQUE (name) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Possible states for process traveler type'; CREATE TABLE TravelerTypeStateHistory ( id int NOT NULL AUTO_INCREMENT, reason varchar(255) COMMENT "why the state change", travelerTypeId int NOT NULL, travelerTypeStateId int NOT NULL, createdBy varchar(50) NOT NULL, creationTS timestamp NULL, PRIMARY KEY(id), CONSTRAINT fk250 FOREIGN KEY(travelerTypeId) REFERENCES TravelerType(id), CONSTRAINT fk251 FOREIGN KEY(travelerTypeStateId) REFERENCES TravelerTypeState(id), INDEX ix250 (travelerTypeId), INDEX ix251 (travelerTypeStateId) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Keep track of all traveler type state updates'; # to be copied to process-traveler_infra.sql insert into ActivityFinalStatus set name="new", isFinal=0, createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into ActivityFinalStatus set name="skipped", isFinal=1, createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into ActivityFinalStatus set name="paused",isFinal=0, createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into ActivityFinalStatus set name="inProgress", isFinal=0, createdBy='jrb', creationTS=UTC_TIMESTAMP(); update ActivityFinalStatus set isFinal='0' where name='stopped'; insert into TravelerTypeState set name="new", createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into TravelerTypeState set name="active", createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into TravelerTypeState set name="deactivated", createdBy='jrb', creationTS=UTC_TIMESTAMP(); insert into TravelerTypeState set name="superseded", createdBy='jrb', creationTS=UTC_TIMESTAMP(); INSERT into DbRelease (major, minor, patch, status, createdBy, creationTS, lastModTS, remarks) values (0, 6, 2, 'TEST', 'jrb', UTC_TIMESTAMP(), UTC_TIMESTAMP(), 'Add InputPattern.datatype; TravelerTypeState and TravelerTypeStateHistory tables; insert into TravelerTypeState, ActivityFinalStatus '); update DbRelease set remarks='Add InputPattern.datatype; TravelerTypeState and TravelerTypeStateHistory tables; insert into TravelerTypeState, ActivityFinalStatus ' where major=0 and minor=6 and patch=2;
<filename>my.sql -- MySQL dump 10.13 Distrib 5.5.52, for linux2.6 (x86_64) -- -- Host: localhost Database: main -- ------------------------------------------------------ -- Server version 5.5.52-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `menu` -- DROP TABLE IF EXISTS `menu`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `menu` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `pid` tinyint(3) DEFAULT NULL COMMENT '父ID', `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '标题', `url` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '链接', `icon` varchar(255) DEFAULT NULL COMMENT 'class图标', `sort` tinyint(2) NOT NULL COMMENT '排序', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='标题 链接表'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `menu` -- LOCK TABLES `menu` WRITE; /*!40000 ALTER TABLE `menu` DISABLE KEYS */; INSERT INTO `menu` VALUES (1,0,'今日头条','/new',NULL,1,'2016-11-16 20:21:58'),(2,0,'动漫','/manga',NULL,2,'2016-11-16 20:22:00'),(3,0,'音乐','/music',NULL,3,'2016-11-16 20:23:34'),(4,0,'读书','/book',NULL,4,'2016-11-16 20:23:57'); /*!40000 ALTER TABLE `menu` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `top_news` -- DROP TABLE IF EXISTS `top_news`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `top_news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '标题', `desc` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '描述', `content` text COLLATE utf8_unicode_ci COMMENT '内容', `url` varchar(200) CHARACTER SET latin1 DEFAULT NULL COMMENT '链接', `pic_url` varchar(255) CHARACTER SET latin1 DEFAULT NULL COMMENT '图片链接', `sort` tinyint(3) DEFAULT NULL COMMENT '排序', `category` int(11) DEFAULT NULL COMMENT '类别', `status` tinyint(1) DEFAULT '1' COMMENT '状态 0:不可用,1:可用', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `sign` tinyint(2) DEFAULT NULL COMMENT '标志 头部 中部 底部', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `top_news` -- LOCK TABLES `top_news` WRITE; /*!40000 ALTER TABLE `top_news` DISABLE KEYS */; INSERT INTO `top_news` VALUES (19,'DDanted to show a little in-progr','I created for my Stranger Things piece!','gogogo','/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/07/ChMkJ1bKy0aIY1KaAA3JYVGTfY8AALIogGF2ZkADcl5805.jpg',1,1,1,'2016-11-17 10:58:15',1),(20,'如果川普当选总统,对美国是福是祸?如果川普当选总统,对美国是福是祸?如果川普当选总统,对美国是福是祸?','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/04/ChMkJlbKyB2IZe7QAAOmwThzhfkAALH9QPTUVsAA6bZ565.jpg',2,1,1,'2016-11-17 10:58:15',1),(21,'911之前的美国是什么样的?','I created for my Stranger Things piece!','<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/06e3fa43695635.57f90c038795d.jpg\" />\r\n<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/15716143695635.57fa2fdeac791.jpg\" />\r\n<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/fc43b243695635.57fa2fdead8ae.jpg\" />\r\n<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/06e3fa43695635.57f90c038795d.jpg\" />\r\n<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/1400/60897043695635.57fa2fdeae8ee.jpg\" />\r\n<img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/06e3fa43695635.57f90c038795d.jpg\" />','/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/0A/ChMkJ1ZucGmILUw6AAQNq9c8baYAAGJygBD568ABA3D317.jpg',3,1,1,'2016-11-17 10:58:15',2),(22,'看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?','I created for my Stranger Things piece!','<p><br></p><p><b><font color=\"#808000\">老司机要开车啦</font></b></p><p><img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/3e7fbc43695635.57f90c0389365.jpg\"></p><p><img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/3e7fbc43695635.57f90c0389365.jpg\"></p><p><br></p><p><img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/max_1200/3e7fbc43695635.57f90c0389365.jpg\"></p><p><img src=\"https://mir-s3-cdn-cf.behance.net/project_modules/1400/60897043695635.57fa2fdeae8ee.jpg\"></p><p><br></p><p><br></p>','/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/0A/ChMkJ1ZucGiIROKiAAUovnd-nKYAAGJyQNh-yEABSjW785.jpg',4,1,1,'2016-11-17 10:58:15',2),(23,'2016 年美国大选,希拉里输在哪儿','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/06/08/ChMkJ1ZXvYuIBgwTAAS3zVB-lRIAAFZcgEg_uUABLfl181.jpg',5,1,1,'2016-11-17 10:58:15',2),(24,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/0A/ChMkJ1bKz4CIWn4HAA_ZwkdCYBcAALJVwJoxTYAD9na337.jpg',6,1,1,'2016-11-17 10:58:15',3),(25,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/0A/ChMkJlbKz4GIEpDQAAj1iyFKGfYAALJVwM4n2sACPWj637.jpg',7,1,1,'2016-11-17 10:58:15',3),(26,'看新闻写到「年薪百万要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/08/01/ChMkJlafP7iIXRYsAAna0Ao0MSoAAHfYgLjwaoACdro013.jpg',8,1,1,'2016-11-17 10:58:15',3),(27,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s144x90c5/g5/M00/08/01/ChMkJlafP8SIMkhKAAmVsOrMLxQAAHfZQA0YBcACZXI618.jpg',9,1,1,'2016-11-17 10:58:15',3),(28,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/04/05/ChMkJ1aV4paIGXfNABBEtvSyR_4AAHQXwM2Jr8AEETO469.jpg',10,1,1,'2016-11-17 10:58:15',3),(29,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/04/05/ChMkJlaV4oWINNUsABNOz1FJqh8AAHQXQIMp_QAE07n970.jpg',11,1,1,'2016-11-17 10:58:15',3),(30,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/04/05/ChMkJlaV4pOINkt-ABEo20GIjyEAAHQXwGqnIIAESjz205.jpg',12,1,1,'2016-11-17 10:58:15',3),(31,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g2/M00/00/0C/Cg-4WVVBxnmIL6v4AAreM2GH6UEAACmxQNDmXcACt5L912.jpg',13,1,1,'2016-11-17 10:58:15',3),(32,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/08/ChMkJ1bKzQWISybgAChD35IcftgAALI8QGkmpEAKEP3605.jpg',14,1,1,'2016-11-17 10:58:15',3),(33,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/07/ChMkJ1bKy46ISNbxAAlkfNgt6XwAALIsgBzhmYACWSU050.jpg',15,1,1,'2016-11-17 10:58:15',3),(34,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/02/00/ChMkJlbKw_6ICsBtAArgvekH7-oAALG_wF9tx8ACuDV426.jpg',16,1,1,'2016-11-17 10:58:15',3),(35,'Wanted to show a little in-progr','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/01/0F/ChMkJ1bKwsCIM77EAA9knoGV1JgAALGsgPufYgAD2S2338.jpg',17,1,1,'2016-11-17 10:58:15',3),(36,'看新闻写到「年薪百万要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/08/01/ChMkJlafP7iIXRYsAAna0Ao0MSoAAHfYgLjwaoACdro013.jpg',18,1,1,'2016-11-17 10:58:15',3),(37,'看新闻写到「年薪百万要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/08/01/ChMkJlafP7iIXRYsAAna0Ao0MSoAAHfYgLjwaoACdro013.jpg',19,1,1,'2016-11-17 10:58:15',3),(38,'看新闻写到「年薪百万要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?看新闻写到「年薪百万,要交 40 多万的税」,这一说法是否准确?','I created for my Stranger Things piece!',NULL,'/top','http://desk.fd.zol-img.com.cn/t_s960x600c5/g5/M00/08/01/ChMkJlafP7iIXRYsAAna0Ao0MSoAAHfYgLjwaoACdro013.jpg',8,1,1,'2016-11-17 10:58:15',3); /*!40000 ALTER TABLE `top_news` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-11-19 12:25:27
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Versão do servidor: 5.7.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Banco de dados: `celke` -- -- -------------------------------------------------------- -- -- Estrutura para tabela `usuarios` -- CREATE TABLE `usuarios` ( `id` int(11) NOT NULL, `nome` varchar(220) NOT NULL, `email` varchar(220) NOT NULL, `created` datetime NOT NULL, `modified` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Fazendo dump de dados para tabela `usuarios` -- INSERT INTO `usuarios` (`id`, `nome`, `email`, `created`, `modified`) VALUES (1, 'Cesar', '<EMAIL>', '2017-11-12 22:35:47', NULL), (2, 'Cesar1', '<EMAIL>', '2017-11-12 22:37:15', NULL), (3, 'Cesar2', '<EMAIL>', '2017-11-12 22:39:14', NULL), (4, 'Cesar4', '<EMAIL>', '2017-11-12 22:41:21', NULL), (5, 'Cesar5', '<EMAIL>', '2017-11-12 22:42:49', NULL), (6, 'Cesar6', '<EMAIL>', '2017-11-12 22:48:27', NULL); -- -- Índices de tabelas apagadas -- -- -- Índices de tabela `usuarios` -- ALTER TABLE `usuarios` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de tabelas apagadas -- -- -- AUTO_INCREMENT de tabela `usuarios` -- ALTER TABLE `usuarios` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>titiscms/oficina DROP TABLE IF EXISTS TB_DEFEITO; DROP TABLE IF EXISTS TB_PECA; DROP TABLE IF EXISTS TB_VEICULO; DROP TABLE IF EXISTS TB_REGISTRO; DROP TABLE IF EXISTS TB_DEFEITO_PECA; DROP TABLE IF EXISTS TB_PECA_VEICULO; -- DEFEITO -- CREATE TABLE IF NOT EXISTS TB_DEFEITO ( id INT AUTO_INCREMENT PRIMARY KEY, descricao VARCHAR(250) NOT NULL UNIQUE ); -- PEÇA -- CREATE TABLE IF NOT EXISTS TB_PECA ( id INT AUTO_INCREMENT PRIMARY KEY, descricao VARCHAR(250) NOT NULL UNIQUE ); -- VEICULO -- CREATE TABLE IF NOT EXISTS TB_VEICULO ( id INT AUTO_INCREMENT PRIMARY KEY, tipo VARCHAR(250) NOT NULL UNIQUE ); -- REGISTRO -- CREATE TABLE IF NOT EXISTS TB_REGISTRO ( id INT AUTO_INCREMENT PRIMARY KEY, cliente VARCHAR(250) NOT NULL, data_inclusao TIMESTAMP NOT NULL, id_defeito INT NOT NULL, id_peca INT NOT NULL, id_veiculo INT NOT NULL, FOREIGN KEY (id_defeito) REFERENCES TB_DEFEITO (id), FOREIGN KEY (id_peca) REFERENCES TB_PECA (id), FOREIGN KEY (id_veiculo) REFERENCES TB_VEICULO (id) ); -- ASSOCIAR DEFEITO A PEÇA -- CREATE TABLE IF NOT EXISTS TB_DEFEITO_PECA ( id INT AUTO_INCREMENT PRIMARY KEY, id_peca INT NOT NULL, id_defeito INT NOT NULL, FOREIGN KEY (id_peca) REFERENCES TB_PECA (id), FOREIGN KEY (id_defeito) REFERENCES TB_DEFEITO (id) ); -- ASSOCIAR PECA A VEICULO -- CREATE TABLE IF NOT EXISTS TB_PECA_VEICULO ( id INT AUTO_INCREMENT PRIMARY KEY, id_peca INT NOT NULL, id_veiculo INT NOT NULL, FOREIGN KEY (id_peca) REFERENCES TB_PECA (id), FOREIGN KEY (id_veiculo) REFERENCES TB_VEICULO (id) ); -- INSERÇAO DADOS DEFEITO -- INSERT INTO TB_DEFEITO (descricao) VALUES ('Furo'), ('Ferrugem'), ('Risco'), ('Vazamento Gás'); -- INSERÇAO DADOS PEÇA -- INSERT INTO TB_PECA (descricao) VALUES ('Roda'), ('Motor'), ('Para-choque'), ('Mangueira'), ('Ar condicionado'); -- INSERÇAO DADOS VEICULO -- INSERT INTO TB_VEICULO (tipo) VALUES ('Carro'), ('Lancha'), ('Moto'); -- INSERÇAO DADOS REGISTRO -- INSERT INTO TB_REGISTRO (cliente, data_inclusao, id_defeito, id_peca, id_veiculo) VALUES ('<NAME>', '2020-12-12T00:00:00', 2, 2, 1), ('<NAME>', '2020-12-13T00:10:00', 4, 5, 1), ('<NAME>', '2020-12-14T00:20:00', 1, 1, 2), ('<NAME>', '2020-12-15T00:20:00', 2, 1, 3), ('<NAME>', '2020-12-16T00:20:00', 1, 2, 2); -- INSERÇAO ASSOCIAR DEFEITO A PEÇA -- INSERT INTO TB_DEFEITO_PECA (id_peca, id_defeito) VALUES (1, 1), (2, 2), (3, 2), (3, 3), (4, 1), (4, 4); -- INSERÇAO ASSOCIAR PECA A VEICULO -- -- INSERT INTO TB_PECA_VEICULO (id_peca, id_veiculo) VALUES (1, 1), (2, 1), (3, 2), (1, 3);
<reponame>benmoumene/Online-Movies-Sharing-In-Codeigniter-Version3x<filename>databases/ci_movies.sql<gh_stars>0 /* SQLyog Enterprise v12.09 (64 bit) MySQL - 5.5.48 : Database - online_movies ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /*Table structure for table `gf_actor` */ DROP TABLE IF EXISTS `gf_actor`; CREATE TABLE `gf_actor` ( `actor_id` int(11) NOT NULL AUTO_INCREMENT, `actor_name` varchar(400) DEFAULT NULL, KEY `actor_id` (`actor_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_actor` */ /*Table structure for table `gf_country` */ DROP TABLE IF EXISTS `gf_country`; CREATE TABLE `gf_country` ( `country_code` varchar(100) DEFAULT NULL, `country_name` varchar(400) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_country` */ /*Table structure for table `gf_director` */ DROP TABLE IF EXISTS `gf_director`; CREATE TABLE `gf_director` ( `director_id` int(11) NOT NULL AUTO_INCREMENT, `director_name` varchar(400) DEFAULT NULL, PRIMARY KEY (`director_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_director` */ /*Table structure for table `gf_film` */ DROP TABLE IF EXISTS `gf_film`; CREATE TABLE `gf_film` ( `film_id` int(11) NOT NULL AUTO_INCREMENT, `film_name` varchar(400) DEFAULT NULL, `film_plot` text, `film_release_date` datetime DEFAULT NULL, `film_post_link` text, `original_poster_url` text, `website_poster_url` text, `film_genre_value` varchar(400) DEFAULT NULL, `film_actor_value` varchar(400) DEFAULT NULL, `film_director_value` varchar(400) DEFAULT NULL, `imdb_link` text, `trailer` text, `film_feature` varchar(1) DEFAULT NULL, `film_post_date` datetime DEFAULT NULL, `film_modify` datetime DEFAULT NULL, PRIMARY KEY (`film_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_film` */ /*Table structure for table `gf_film_comment` */ DROP TABLE IF EXISTS `gf_film_comment`; CREATE TABLE `gf_film_comment` ( `film_id` int(11) NOT NULL AUTO_INCREMENT, `comment_msg` text, `comment_post_by` int(11) DEFAULT NULL, PRIMARY KEY (`film_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_film_comment` */ /*Table structure for table `gf_genre` */ DROP TABLE IF EXISTS `gf_genre`; CREATE TABLE `gf_genre` ( `genre_id` int(11) NOT NULL AUTO_INCREMENT, `genre_name` varchar(400) DEFAULT NULL, PRIMARY KEY (`genre_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_genre` */ /*Table structure for table `gf_user` */ DROP TABLE IF EXISTS `gf_user`; CREATE TABLE `gf_user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `email` varchar(400) DEFAULT NULL, `birth_day` varchar(200) DEFAULT NULL, `gender` varchar(200) DEFAULT NULL, `hear_from` text, `registration_date` datetime DEFAULT NULL, `reset_password_code` text, `reset_password_code_until` timestamp NULL DEFAULT NULL, `country` varchar(400) DEFAULT NULL, `about_me` text, `hobbies` text, `pm_notify_mail` varchar(50) DEFAULT NULL, `view_content_to` varchar(100) DEFAULT NULL, `view_recent_visit` varchar(400) DEFAULT NULL, `photo_tagging` text, `avatar` text, `status` varchar(10) DEFAULT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*Data for the table `gf_user` */ /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- ***** PRODUCT OVERVIEW SCHEMA DESIGN **** drop schema if exists public cascade; grant usage on schema public to public; grant create on schema public to public; create schema public; CREATE TABLE IF NOT EXISTS products ( id INT NOT NULL , product_title text NOT NULL, vendor_name varchar(50) NOT NULL, review_average DECIMAL, review_count int DEFAULT 0, answered_questions int, list_price varchar(15) NOT NULL, discount varchar(4), price varchar(15) NOT NULL, prime BOOLEAN NOT NULL, description text, PRIMARY KEY (id), CONSTRAINT unique_id UNIQUE(id); ); CREATE TABLE IF NOT EXISTS photos ( photo_id SERIAL PRIMARY KEY, main_url varchar(255) NOT NULL, zoom_url varchar(255) NOT NULL, product_id int, main_photo BOOLEAN NOT NULL, FOREIGN KEY (product_id) REFERENCES products(id) ); CREATE INDEX product_id ON photos (product_id); CREATE INDEX main_id ON products (id);
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 02, 2018 at 01:54 PM -- Server version: 5.7.21 -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `schoolstuff` -- -- -------------------------------------------------------- -- -- Table structure for table `academic_session` -- DROP TABLE IF EXISTS `academic_session`; CREATE TABLE IF NOT EXISTS `academic_session` ( `academicSessionID` int(12) NOT NULL AUTO_INCREMENT, `year` varchar(45) NOT NULL, `semister` varchar(45) NOT NULL, `opening_date` varchar(45) NOT NULL, `closing_date` varchar(45) NOT NULL, `status` varchar(45) NOT NULL, PRIMARY KEY (`academicSessionID`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `academic_session` -- INSERT INTO `academic_session` (`academicSessionID`, `year`, `semister`, `opening_date`, `closing_date`, `status`) VALUES (1, '2014/2015', '1', '2014-12-08', '2014-14-12', 'Active'), (2, '2014/2015', '2', '2015-27-01', '2015-31-05', 'Inactive'); -- -------------------------------------------------------- -- -- Table structure for table `auth` -- DROP TABLE IF EXISTS `auth`; CREATE TABLE IF NOT EXISTS `auth` ( `id` int(11) NOT NULL, `session_id` varchar(45) DEFAULT NULL, `logIn_timestamp` varchar(45) DEFAULT NULL, `logOut_timestamp` varchar(45) DEFAULT NULL, `ipaddress` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `college` -- DROP TABLE IF EXISTS `college`; CREATE TABLE IF NOT EXISTS `college` ( `collegeId` int(11) NOT NULL AUTO_INCREMENT, `fullname` varchar(200) NOT NULL, `shortname` varchar(10) NOT NULL, PRIMARY KEY (`collegeId`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `college` -- INSERT INTO `college` (`collegeId`, `fullname`, `shortname`) VALUES (1, 'College of Computing & Informatics Science', 'COCIS'), (5, 'Education and languages', 'EDUC '); -- -------------------------------------------------------- -- -- Table structure for table `courseunit` -- DROP TABLE IF EXISTS `courseunit`; CREATE TABLE IF NOT EXISTS `courseunit` ( `courseunitID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `courseunitCode` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `semesterOffered` varchar(45) DEFAULT NULL, `yearOffered` varchar(45) DEFAULT NULL, `isTraining` varchar(45) DEFAULT NULL, `creditUnits` varchar(45) DEFAULT NULL, `programme_programmeID` int(10) UNSIGNED NOT NULL, `action` varchar(45) NOT NULL, PRIMARY KEY (`courseunitID`,`programme_programmeID`), KEY `fk_courseunit_programme1_idx` (`programme_programmeID`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; -- -- Dumping data for table `courseunit` -- INSERT INTO `courseunit` (`courseunitID`, `courseunitCode`, `name`, `semesterOffered`, `yearOffered`, `isTraining`, `creditUnits`, `programme_programmeID`, `action`) VALUES (1, 'BSC3100', 'Modeling and Simulation', '1', '1', NULL, '4.0', 1, 'y'), (2, 'BSC31005', 'Intelligent Systems', '1', '1', NULL, '2.0', 1, 'y'), (3, 'BSC3106', 'Business Process Management', '1', '1', NULL, '4.0', 1, ''), (4, 'BSC3107', 'Computer Literacy', '1', '1', NULL, '4.0', 1, ''), (5, 'BSC5530', 'Computer Literacy extended', '2', '1', 'No', '5.0', 1, 'y'); -- -------------------------------------------------------- -- -- Table structure for table `department` -- DROP TABLE IF EXISTS `department`; CREATE TABLE IF NOT EXISTS `department` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `code` varchar(45) NOT NULL, `college_collegeId` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `department` -- INSERT INTO `department` (`id`, `name`, `code`, `college_collegeId`) VALUES (2, 'department of networks', 'DON', 1), (4, 'Information Systems', 'BIS', 5), (5, 'Information Systems', 'COMPSCI', 1); -- -------------------------------------------------------- -- -- Table structure for table `ethusiast` -- DROP TABLE IF EXISTS `ethusiast`; CREATE TABLE IF NOT EXISTS `ethusiast` ( `id` int(11) NOT NULL AUTO_INCREMENT, `s_key` varchar(45) NOT NULL, `computer_name` varchar(45) NOT NULL, `ip_address` varchar(45) NOT NULL, `s_status` varchar(2) NOT NULL, `validity` varchar(9) NOT NULL, `i_date` varchar(10) NOT NULL, `e_date` varchar(45) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `s_key` (`s_key`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8; -- -- Dumping data for table `ethusiast` -- INSERT INTO `ethusiast` (`id`, `s_key`, `computer_name`, `ip_address`, `s_status`, `validity`, `i_date`, `e_date`) VALUES (56, 'AE5F-37BE-D3F5-9A08', '', '', 'T', '30', 'SunSun/May', ''), (57, 'ACE3-820E-0ECB-D2C1', '', '', 'T', '30', '', ''), (58, '48E1-1364-821E-B26D', '', '', 'T', '30', '27/05/18', ''), (59, 'D17B-2170-6478-8FCA', '', '', 'T', '30', '27/05/1818', ''), (60, 'E92C-164F-6D7A-5CB8', '', '', 'T', '30', '', ''), (61, 'FD3E-5903-18C6-D6BF', '', '', 'T', '30', '27/05/18', ''), (62, '20DB-5367-0D6C-6109', '', '', 'A', '30', '', ''), (63, 'BD65-0276-5DA2-6B32', '', '', 'T', '30', '', ''), (64, 'CFE4-68DA-EF95-053D', '', '', 'A', '30', '', ''), (65, '20DE-53C7-25DF-6724', '', '', 'A', '30', '', ''), (66, '7E1D-CF8B-F296-869B', '', '', 'A', '30', '', ''), (67, '92FA-D8C9-7B69-BD56', '', '', 'A', '60', '', ''), (68, '5A1C-476C-5D04-32F6', '', '', 'A', '60', '', ''), (69, 'C594-EF9A-C52E-D1CB', '', '', 'A', '60', '', ''), (70, '1278-D715-3E29-F958', '', '', 'A', '60', '', ''), (71, '683F-9CD4-147E-4621', '', '', 'A', '60', '', ''), (72, 'B804-BC5E-9A40-F13E', '', '', 'A', '60', '', ''), (73, 'EFBC-8E0F-01CD-C304', '', '', 'A', '60', '', ''), (74, 'A4D6-729A-1D3C-36F7', '', '', 'A', '60', '', ''), (75, '9CD8-50A2-D875-5C61', '', '', 'A', '60', '', ''), (76, '9F18-3618-46EF-E374', '', '', 'A', '60', '', ''), (77, '52B0-36A8-5879-D5B1', '', '', 'A', '60', '', ''), (78, '04A3-20FC-21B3-526D', '', '', 'A', '120', '', ''), (79, '1043-B60F-A1F9-AE59', '', '', 'A', '120', '', ''), (80, '0C2A-CBA6-C8B3-48DE', '', '', 'A', '120', '', ''), (81, '1486-A7CE-49D1-A9DF', '', '', 'A', '120', '', ''), (82, '3106-1AC8-F45B-D0F3', '', '', 'A', '120', '', ''), (83, '7615-D04C-86EF-E94F', '', '', 'A', '120', '', ''), (84, 'D7A6-DC19-FE37-2034', '', '', 'A', '120', '', ''), (85, '93D8-372B-C8D4-5BC1', '', '', 'A', '120', '', ''), (86, '9BA8-D7F4-F4A3-B9D6', '', '', 'A', '120', '', ''), (87, '2C16-3D47-8D56-1D42', '', '', 'A', '120', '', ''), (88, '7D6E-86D5-59AC-3B04', '', '', 'A', '120', '', ''), (89, '085A-E0B8-EA29-B671', '', '', 'A', '365', '', ''), (90, 'F6E9-E104-586D-793E', '', '', 'A', '365', '', ''), (91, 'A90B-7C2D-04BD-63BC', '', '', 'A', '365', '', ''), (92, '81F0-71D8-9430-271B', '', '', 'A', '365', '', ''), (93, '94FD-CD03-736E-963E', '', '', 'A', '365', '', ''), (94, '8DE7-9BC1-830B-243C', '', '', 'A', '365', '', ''), (95, 'FCE2-2180-9C42-F2BA', '', '', 'A', '365', '', ''), (96, 'AC95-DA48-A0D6-E4B0', '', '', 'A', '365', '', ''), (97, 'C13A-0193-20BD-83B7', '', '', 'A', '365', '', ''), (98, 'BE80-FAD4-8135-5279', '', '', 'A', '365', '', ''), (99, 'C0FB-15EA-1352-D19A', '', '', 'A', '365', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `grading` -- DROP TABLE IF EXISTS `grading`; CREATE TABLE IF NOT EXISTS `grading` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `from` varchar(45) DEFAULT NULL, `to` varchar(45) DEFAULT NULL, `grade` varchar(45) DEFAULT NULL, `gp` varchar(10) NOT NULL, `comment` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8; -- -- Dumping data for table `grading` -- INSERT INTO `grading` (`id`, `from`, `to`, `grade`, `gp`, `comment`) VALUES (1, '90', '100', 'A+', '5.0', 'Exceptional'), (2, '80', '89', 'A', '5', 'Excellent'), (3, '75', '79', 'B+', '4.5', 'Very Good'), (4, '70', '74', 'B', '4', 'Good'), (5, '65', '69', 'C+', '3.5', 'Fairly Good'), (6, '60', '64', 'C', '3', 'Fair'), (7, '55', '59', 'D+', '2.5', 'Pass'), (8, '50', '54', 'D', '2', 'Marginal Pass'), (9, '45', '49', 'E', '1.5', 'Marginal Fail'), (10, '40', '45', 'E-', '1', 'Clear Fail'), (11, '39', '0', 'F', '0', 'Bad Fail'); -- -------------------------------------------------------- -- -- Table structure for table `institute` -- DROP TABLE IF EXISTS `institute`; CREATE TABLE IF NOT EXISTS `institute` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `institute_name` varchar(45) DEFAULT NULL, `institute_no` varchar(10) NOT NULL, `poBox` varchar(45) DEFAULT NULL, `address` varchar(45) DEFAULT NULL, `telno1` varchar(45) DEFAULT NULL, `telno2` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `type` varchar(45) DEFAULT NULL, `logo` varchar(45) DEFAULT NULL, `entryDate` datetime DEFAULT NULL, `updated_On` varchar(20) NOT NULL, `pro_key` varchar(70) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; -- -- Dumping data for table `institute` -- INSERT INTO `institute` (`id`, `institute_name`, `institute_no`, `poBox`, `address`, `telno1`, `telno2`, `email`, `type`, `logo`, `entryDate`, `updated_On`, `pro_key`) VALUES (1, 'Team University', '3243', '444', 'Kampala, Kyebando, Kla', '+256700392854', '+256700392854', '<EMAIL>', 'University', 'a', NULL, '2018/05/23 13:12:03', ''); -- -------------------------------------------------------- -- -- Table structure for table `lecturer` -- DROP TABLE IF EXISTS `lecturer`; CREATE TABLE IF NOT EXISTS `lecturer` ( `lecturerId` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `department_departmentId` int(11) NOT NULL, PRIMARY KEY (`lecturerId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `login_attempts` -- DROP TABLE IF EXISTS `login_attempts`; CREATE TABLE IF NOT EXISTS `login_attempts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `login_attempts` varchar(45) DEFAULT NULL, `time` varchar(45) DEFAULT NULL, `users_id` int(11) NOT NULL, `users_institute_instituteID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`id`,`users_id`,`users_institute_instituteID`), KEY `fk_login_attempts_users1_idx` (`users_id`,`users_institute_instituteID`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; -- -- Dumping data for table `login_attempts` -- INSERT INTO `login_attempts` (`id`, `login_attempts`, `time`, `users_id`, `users_institute_instituteID`) VALUES (8, NULL, '1533716020', 5, 1), (9, NULL, '1533716320', 5, 1), (10, NULL, '1533716336', 6, 1), (11, NULL, '1540449760', 2, 1), (14, NULL, '1540822646', 1, 1); -- -------------------------------------------------------- -- -- Table structure for table `marks` -- DROP TABLE IF EXISTS `marks`; CREATE TABLE IF NOT EXISTS `marks` ( `markID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `mark` varchar(45) DEFAULT NULL, `grade` varchar(45) DEFAULT NULL, `gp` varchar(10) NOT NULL, `remarks` varchar(45) DEFAULT NULL, `semester` varchar(45) DEFAULT NULL, `otherRemarks` varchar(45) DEFAULT NULL, `yearOfOffering` varchar(45) DEFAULT NULL, `trainingHrs` varchar(45) DEFAULT NULL, `yearPart` varchar(45) DEFAULT NULL, `toMove` varchar(45) DEFAULT NULL, `yearEntered` varchar(45) DEFAULT NULL, `dateEntered` varchar(45) DEFAULT NULL, `examMonth` varchar(45) DEFAULT NULL, `enteredBy` varchar(45) DEFAULT NULL, `reasonForChange` varchar(45) DEFAULT NULL, `courseunit_courseunitID` int(10) UNSIGNED NOT NULL, `courseunit_programme_programmeID` int(10) UNSIGNED NOT NULL, `student_studentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`markID`,`courseunit_courseunitID`,`courseunit_programme_programmeID`,`student_studentID`), KEY `fk_marks_courseunit1_idx` (`courseunit_courseunitID`,`courseunit_programme_programmeID`), KEY `fk_marks_student1_idx` (`student_studentID`) ) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8; -- -- Dumping data for table `marks` -- INSERT INTO `marks` (`markID`, `mark`, `grade`, `gp`, `remarks`, `semester`, `otherRemarks`, `yearOfOffering`, `trainingHrs`, `yearPart`, `toMove`, `yearEntered`, `dateEntered`, `examMonth`, `enteredBy`, `reasonForChange`, `courseunit_courseunitID`, `courseunit_programme_programmeID`, `student_studentID`) VALUES (38, '45', 'E', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 1, 1, 100), (39, '90', 'A', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 2, 1, 100), (42, '85', 'A', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 3, 1, 100), (43, '65', 'C+', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 4, 1, 100), (44, '98', 'A+', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 1, 1, 100), (45, '60', 'C', '', '', '2', '', '1', '', '', '', '', '', '', '<NAME>', '', 5, 1, 101), (46, '90', 'A', '', '', '2', '', '1', '', '', '', '', '', '', '<NAME>', '', 5, 1, 101), (47, '80', 'A', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 1, 1, 101), (48, '90', 'none', '', '', '1', '', '1', '', '', '', '', '', '', '<NAME>', '', 1, 1, 101); -- -------------------------------------------------------- -- -- Table structure for table `parent` -- DROP TABLE IF EXISTS `parent`; CREATE TABLE IF NOT EXISTS `parent` ( `parentID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `type` varchar(45) NOT NULL, `surname` varchar(45) DEFAULT NULL, `firstname` varchar(45) DEFAULT NULL, `address` varchar(45) DEFAULT NULL, `telno1` varchar(45) DEFAULT NULL, `telno2` varchar(45) DEFAULT NULL, `alive` varchar(45) DEFAULT NULL, `career` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `studentID` int(10) UNSIGNED DEFAULT NULL, `student_studentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`parentID`,`student_studentID`), KEY `fk_parent_student1_idx` (`student_studentID`) ) ENGINE=InnoDB AUTO_INCREMENT=235 DEFAULT CHARSET=utf8; -- -- Dumping data for table `parent` -- INSERT INTO `parent` (`parentID`, `type`, `surname`, `firstname`, `address`, `telno1`, `telno2`, `alive`, `career`, `email`, `studentID`, `student_studentID`) VALUES (203, 'father', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 2, 100), (204, 'mother', '', NULL, '', '', NULL, NULL, '', '', NULL, 100), (205, 'guardian', '', NULL, '', '', NULL, NULL, '', '', NULL, 100), (206, 'nok', '', NULL, '', '', NULL, NULL, '', '', NULL, 100), (219, 'father', 'Ronald', NULL, '', '', NULL, NULL, '', '', NULL, 101), (220, 'mother', '', NULL, '', '', NULL, NULL, '', '', NULL, 101), (221, 'guardian', '', NULL, '', '', NULL, NULL, '', '', NULL, 101), (222, 'nok', '', NULL, '', '', NULL, NULL, '', '', NULL, 101), (223, 'father', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (224, 'mother', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (225, 'guardian', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (226, 'nok', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (231, 'father', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (232, 'mother', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (233, 'guardian', '', NULL, '', '', NULL, NULL, '', '', NULL, 102), (234, 'nok', '', NULL, '', '', NULL, NULL, '', '', NULL, 102); -- -------------------------------------------------------- -- -- Table structure for table `programme` -- DROP TABLE IF EXISTS `programme`; CREATE TABLE IF NOT EXISTS `programme` ( `programmeID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `category` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `duration` varchar(45) DEFAULT NULL, `gradLoad` varchar(45) DEFAULT NULL, `action` varchar(12) NOT NULL, `code` varchar(45) NOT NULL, `department_departmentId` int(11) NOT NULL, PRIMARY KEY (`programmeID`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8; -- -- Dumping data for table `programme` -- INSERT INTO `programme` (`programmeID`, `category`, `name`, `duration`, `gradLoad`, `action`, `code`, `department_departmentId`) VALUES (1, 'Degree', 'Bachelor of Computer Science', '3', '31', 'y', 'BSC', 1), (14, 'Degree', 'Bachelors of Mass Communication', '4', '1', 'y', 'BMS', 1), (15, 'Degree', 'Bachelors of Medicine and Surgery', '5', '1', 'y', 'BaMS', 1); -- -------------------------------------------------------- -- -- Table structure for table `sponsor` -- DROP TABLE IF EXISTS `sponsor`; CREATE TABLE IF NOT EXISTS `sponsor` ( `sponsorid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `surname` varchar(45) DEFAULT NULL, `firstname` varchar(45) DEFAULT NULL, `type` varchar(45) DEFAULT NULL, `telno` varchar(45) DEFAULT NULL, `student_studentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`sponsorid`,`student_studentID`), KEY `fk_sponsor_student1_idx` (`student_studentID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `student` -- DROP TABLE IF EXISTS `student`; CREATE TABLE IF NOT EXISTS `student` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `regNo` varchar(45) DEFAULT NULL, `username` varchar(45) NOT NULL, `dwp` varchar(100) NOT NULL, `institute_instituteID` int(11) NOT NULL, `academicSessionID` int(12) DEFAULT NULL, `studentNo` varchar(45) DEFAULT NULL, `surname` varchar(45) DEFAULT NULL, `firstName` varchar(45) DEFAULT NULL, `gender` varchar(45) DEFAULT NULL, `maritalStatus` varchar(45) DEFAULT NULL, `photo` varchar(45) DEFAULT NULL, `dob` varchar(45) DEFAULT NULL, `nationality` varchar(45) DEFAULT NULL, `hallOfResidence` varchar(45) DEFAULT NULL, `religion` varchar(45) DEFAULT NULL, `notes` varchar(45) DEFAULT NULL, `medicalProblem` varchar(45) DEFAULT NULL, `medicalInformation` varchar(45) DEFAULT NULL, `telNo` varchar(45) DEFAULT NULL, `address` varchar(45) DEFAULT NULL, `yearOfStudy` varchar(45) DEFAULT NULL, `placeOfResidence` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `academicyearEntry` varchar(45) DEFAULT NULL, `dateOfAdmission` varchar(45) DEFAULT NULL, `gradDate` varchar(45) DEFAULT NULL, `entryScheme` varchar(45) NOT NULL, `dateofcompletion` varchar(45) DEFAULT NULL, `program` varchar(45) DEFAULT NULL, `student_status` varchar(45) DEFAULT NULL, `uceSchool` varchar(45) DEFAULT NULL, `uaceSchool` varchar(45) DEFAULT NULL, `uceAggregates` varchar(45) DEFAULT NULL, `uacePoints` varchar(45) DEFAULT NULL, `formerInstitution` varchar(45) DEFAULT NULL, `formerQualification` varchar(45) DEFAULT NULL, `formerYearCourse` varchar(45) NOT NULL, `formerRegNo` varchar(45) NOT NULL, `promotionalStatus` varchar(45) DEFAULT NULL, `courseDuration` varchar(45) DEFAULT NULL, `reason` varchar(45) DEFAULT NULL, `uceIndex` varchar(45) DEFAULT NULL, `uaceIndex` varchar(45) DEFAULT NULL, `institutionReg` varchar(45) DEFAULT NULL, `yearOfCourse` varchar(45) DEFAULT NULL, `yearOfUace` varchar(45) DEFAULT NULL, `yearOfUCE` varchar(45) NOT NULL, `sponsorshipType` varchar(45) DEFAULT NULL, `enteredOn` varchar(45) NOT NULL, `enteredBy` varchar(45) NOT NULL, `updatedOn` varchar(45) NOT NULL, `updatedBy` varchar(45) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8; -- -- Dumping data for table `student` -- INSERT INTO `student` (`id`, `regNo`, `username`, `dwp`, `institute_instituteID`, `academicSessionID`, `studentNo`, `surname`, `firstName`, `gender`, `maritalStatus`, `photo`, `dob`, `nationality`, `hallOfResidence`, `religion`, `notes`, `medicalProblem`, `medicalInformation`, `telNo`, `address`, `yearOfStudy`, `placeOfResidence`, `email`, `academicyearEntry`, `dateOfAdmission`, `gradDate`, `entryScheme`, `dateofcompletion`, `program`, `student_status`, `uceSchool`, `uaceSchool`, `uceAggregates`, `uacePoints`, `formerInstitution`, `formerQualification`, `formerYearCourse`, `formerRegNo`, `promotionalStatus`, `courseDuration`, `reason`, `uceIndex`, `uaceIndex`, `institutionReg`, `yearOfCourse`, `yearOfUace`, `yearOfUCE`, `sponsorshipType`, `enteredOn`, `enteredBy`, `updatedOn`, `updatedBy`) VALUES (100, '18/U/0001/PS', '18/U/0001/PS', '$2y$10$PMqeRW/3aBkioO18ksjF2OLGCcIHpaaZ.sglG2Q6LfVG21C7AWcgK', 1, 1, '21490786', 'Kalule', 'John', 'Male', 'Single', '', '1992-08-07', 'Ugandan', 'Nkuruma', 'Christian', '', '', '', '', '', '1', '', '<EMAIL>', '2014/2015', '', '', '', '', '1', 'Active', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'root', '', ''), (101, '14/U/1020/PS', '14/U/1020/PS', '$2y$10$PMqeRW/3aBkioO18ksjF2OLGCcIHpaaZ.sglG2Q6LfVG21C7AWcgK', 1, NULL, '21342323', 'Mutebi', 'Ronald', 'Male', 'Single', '', '2018-08-07', '', 'Kabojja', '', '', '', '', '', '', '1', 'Kabojja', 'johnkalung<EMAIL>', '2014/2015', '2018-08-13', '2018-08-09', 'Privatelysss', '', '1', 'Inactive', 'St <NAME>', 'dd', '', '', 'Makerere University', 'Diploma', '2012', 'u188', '', '', '', 'f', 'dd', '', '', 'dd', 'f', '', '', 'root', '', ''), (102, '', '', '', 0, NULL, '55555', '', '', '', '', '.jpg', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', '', 'Direct Entry', NULL, '', '', '', '', NULL, NULL, '', 'Makerere University', 'Diploma', '2013', 'u188', NULL, NULL, '', '', NULL, '', '', '', '', '', '', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `uace` -- DROP TABLE IF EXISTS `uace`; CREATE TABLE IF NOT EXISTS `uace` ( `uaceID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `subject` varchar(45) DEFAULT NULL, `p1` varchar(45) DEFAULT NULL, `p2` varchar(45) DEFAULT NULL, `p3` varchar(45) DEFAULT NULL, `p4` varchar(45) DEFAULT NULL, `p5` varchar(45) DEFAULT NULL, `p6` varchar(45) DEFAULT NULL, `result` varchar(45) DEFAULT NULL, `parent_parentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`uaceID`,`parent_parentID`), KEY `fk_uace_parent1_idx` (`parent_parentID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `uace_results` -- DROP TABLE IF EXISTS `uace_results`; CREATE TABLE IF NOT EXISTS `uace_results` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subject` varchar(45) DEFAULT NULL, `result` varchar(45) DEFAULT NULL, `student_studentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`id`,`student_studentID`), KEY `fk_uceresults_student1_idx` (`student_studentID`) ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=latin1; -- -- Dumping data for table `uace_results` -- INSERT INTO `uace_results` (`id`, `subject`, `result`, `student_studentID`) VALUES (16, '', '', 100), (17, '', '', 100), (18, '', '', 100), (19, '', '', 100), (20, '', '', 100), (31, '', '', 0), (32, '', '', 0), (33, '', '', 0), (34, '', '', 0), (35, '', '', 0), (36, '', '', 0), (37, '', '', 0), (38, '', '', 0), (39, '', '', 0), (40, '', '', 0), (41, 'History', 'D2', 101), (42, 'Economics', 'C3', 101), (43, 'Literature in English', 'C5', 101), (44, 'French', 'C3', 101), (45, 'Biology', 'C5', 101), (46, '', '', 102), (47, '', '', 102), (48, '', '', 102), (49, '', '', 102), (50, '', '', 102), (56, '', '', 102), (57, '', '', 102), (58, '', '', 102), (59, '', '', 102), (60, '', '', 102); -- -------------------------------------------------------- -- -- Table structure for table `uace_subjects` -- DROP TABLE IF EXISTS `uace_subjects`; CREATE TABLE IF NOT EXISTS `uace_subjects` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `code` varchar(30) NOT NULL, `category` varchar(30) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=latin1; -- -- Dumping data for table `uace_subjects` -- INSERT INTO `uace_subjects` (`id`, `name`, `code`, `category`) VALUES (1, 'General Paper', '', 'General Paper'), (2, 'History', 'P210', 'Humanities'), (3, 'Economics', 'P220', 'Humanities'), (4, 'Islamic Religious Education', 'P235', 'Humanities'), (5, 'Christian Religious Education', 'P245', 'Humanities'), (6, 'Geography', 'P250', 'Humanities'), (7, 'Literature in English', '310', 'Languages'), (8, 'Kiswahili', 'P320', 'Languages'), (9, 'French', 'P330', 'Languages'), (10, 'German', 'P340', 'Languages'), (11, 'Latin', 'P350', 'Languages'), (12, ' Luganda', 'P360', 'Languages'), (13, 'Arabic', 'P370', 'Languages'), (14, ' Mathematics', 'P425 ', 'Mathematical Subjects'), (15, 'Mathematics (subsidiary)', 'S475', 'Mathematical Subjects'), (16, 'Physics', 'P510', 'Science Subjects'), (17, 'Agriculture', 'P515', 'Science Subjects'), (18, 'Chemistry', 'P525', 'Science Subjects'), (19, 'Biology', 'P530', 'Science Subjects'), (20, 'Art', '610', 'Cultural Subjects and Others'), (21, ' Music', '621', ' Cultural Subjects and Others'), (22, 'Health Education', '631', ' Cultural Subjects and Others'), (23, ' Clothing and Textiles', '652', ' Cultural Subjects and Others'), (24, 'Foods & Nutrition', '662', ' Cultural Subjects and Others'), (25, ' Home Management', '672', ' Cultural Subjects and Others'), (26, ' Woodwork', '732 ', 'Technical Subjects'), (27, 'Technical Drawing', '735', 'Technical Subjects'), (28, ' Metalwork', '742', 'Technical Subjects'), (29, ' Building Construction', '743', 'Technical Subjects'), (30, 'Electricity & Electronics', '751', 'Technical Subjects'), (31, 'Power & Energy', '752', 'Technical Subjects'), (32, 'Commerce', '800', 'Business Studies'), (33, 'Principles of Accounts', '810 ', 'Business Studies'), (34, 'Shorthand', '820', 'Business Studies'), (35, 'Typewriting', '831', 'Business Studies'), (36, 'Office Practice', '835', 'Business Studies'), (37, 'Computer Studies', '840', 'Business Studies'), (38, 'Entrepreneurship Skills', '845 ', 'Business Studies'); -- -------------------------------------------------------- -- -- Table structure for table `uceresults` -- DROP TABLE IF EXISTS `uceresults`; CREATE TABLE IF NOT EXISTS `uceresults` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subject` varchar(45) DEFAULT NULL, `result` varchar(45) DEFAULT NULL, `student_studentID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`id`,`student_studentID`), KEY `fk_uceresults_student1_idx` (`student_studentID`) ) ENGINE=InnoDB AUTO_INCREMENT=359359 DEFAULT CHARSET=utf8; -- -- Dumping data for table `uceresults` -- INSERT INTO `uceresults` (`id`, `subject`, `result`, `student_studentID`) VALUES (359262, '', '', 100), (359263, '', '', 100), (359264, '', '', 100), (359265, '', '', 100), (359266, '', '', 100), (359267, '', '', 100), (359268, '', '', 100), (359269, '', '', 100), (359270, '', '', 100), (359271, '', '', 100), (359292, '', '', 0), (359293, '', '', 0), (359294, '', '', 0), (359295, '', '', 0), (359296, '', '', 0), (359297, '', '', 0), (359298, '', '', 0), (359299, '', '', 0), (359300, '', '', 0), (359301, '', '', 0), (359302, '', '', 0), (359303, '', '', 0), (359304, '', '', 0), (359305, '', '', 0), (359306, '', '', 0), (359307, '', '', 0), (359308, '', '', 0), (359309, '', '', 0), (359310, '', '', 0), (359311, '', '', 0), (359312, 'Literature in English', 'D1', 101), (359313, 'Fasihi ya Kiswahili', 'D2', 101), (359314, ' Islamic Religious Education', 'D2', 101), (359315, ' Islamic Religious Education', 'C3', 101), (359316, 'Music', 'C3', 101), (359317, 'Math', 'C3', 101), (359318, 'Music', 'D2', 101), (359319, 'German', 'C3', 101), (359320, 'Music', 'C3', 101), (359321, 'Clothing and Textiles', 'P8', 101), (359322, '', '', 102), (359323, '', '', 102), (359324, '', '', 102), (359325, '', '', 102), (359326, '', '', 102), (359327, '', '', 102), (359328, '', '', 102), (359329, '', '', 102), (359330, '', '', 102), (359331, '', '', 102), (359342, '', '', 102), (359343, '', '', 102), (359344, '', '', 102), (359345, '', '', 102), (359346, '', '', 102), (359347, '', '', 102), (359348, '', '', 102), (359349, '', '', 102), (359350, '', '', 102), (359351, '', '', 102), (359352, '', '', 0), (359353, '', '', 0), (359354, '', '', 0), (359355, '', '', 0), (359356, '', '', 0), (359357, '', '', 0), (359358, '', '', 0); -- -------------------------------------------------------- -- -- Table structure for table `uce_subjects` -- DROP TABLE IF EXISTS `uce_subjects`; CREATE TABLE IF NOT EXISTS `uce_subjects` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `code` varchar(30) NOT NULL, `category` varchar(30) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=latin1; -- -- Dumping data for table `uce_subjects` -- INSERT INTO `uce_subjects` (`id`, `name`, `code`, `category`) VALUES (1, 'English Language', '112', 'c'), (2, 'Literature in English', '208', 'o'), (3, 'Fasihi ya Kiswahili', '218 ', 'o'), (4, 'CRE ', '223', 'o'), (5, ' Islamic Religious Education', '225 ', 'o'), (6, ' History', '241 ', 'c'), (7, 'Geography', '273', 'c'), (8, ' Political Education', '285', 'o'), (9, 'Latin', '301', 'o'), (10, 'German', '309', 'o'), (11, ' French', '314', 'o'), (12, 'Luganda', '335', 'o'), (13, 'Lugha ya Kiswahili', '336', 'o'), (14, 'Arabic', '337', 'o'), (15, 'Mathematics', '456', 'c'), (16, 'Additional Mathematics', '475 ', 'o'), (17, 'General Science', '500', 'o'), (18, 'Agriculture', '527 ', 'o'), (19, 'Physics', '535', 'c'), (20, 'Chemistry', '545', 'c'), (21, 'Biology', '553', 'c'), (22, 'Art', '610', 'o'), (23, 'Music', '621', 'o'), (24, 'Health Education', '631', 'o'), (25, 'Clothing and Textiles', '652', 'o'), (26, ' Foods & Nutrition', '662 ', 'Cultural Subjects and Others'), (27, 'Home Management', '672', 'Cultural Subjects and Others'), (28, ' Woodwork', '732', 'Technical Subjects'), (29, 'Technical Drawing', '735', 'Technical Subjects'), (30, 'Metalwork', '742', 'Technical Subjects'), (31, 'Building Construction', '743', 'Technical Subjects'), (32, 'Electricity & Electronics', '751', 'Technical Subjects'), (33, 'Power & Energy', '752', 'Technical Subjects'), (34, 'Commerce', '800', 'Business Studies'), (35, 'Principles of Accounts', '810', 'Business Studies'), (36, 'Shorthand', '820', 'Business Studies'), (37, 'Typewriting', '831', 'Business Studies'), (38, 'Office Practice', '835', 'Business Studies'), (39, 'Computer Studies', '840', 'Business Studies'), (40, 'Entrepreneurship Skills', '845', 'Business Studies'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `accNo` varchar(45) DEFAULT NULL, `username` varchar(45) DEFAULT NULL, `accountName` varchar(45) DEFAULT NULL, `gender` varchar(45) DEFAULT NULL, `sname` varchar(45) DEFAULT NULL, `fname` varchar(45) DEFAULT NULL, `designation` varchar(45) DEFAULT NULL, `dob` varchar(45) NOT NULL, `photoName` varchar(45) DEFAULT NULL, `dwp` varchar(300) DEFAULT NULL, `group` varchar(45) DEFAULT NULL, `accStatus` varchar(45) DEFAULT NULL, `entryDate` varchar(45) DEFAULT NULL, `updated_On` varchar(45) NOT NULL, `phone1` varchar(45) DEFAULT NULL, `phone2` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `institute_instituteID` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`id`,`institute_instituteID`), KEY `fk_users_institute1_idx` (`institute_instituteID`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `accNo`, `username`, `accountName`, `gender`, `sname`, `fname`, `designation`, `dob`, `photoName`, `dwp`, `group`, `accStatus`, `entryDate`, `updated_On`, `phone1`, `phone2`, `email`, `institute_instituteID`) VALUES (1, '3245a', 'root', 'a', 'Female', 'Mubiru', 'John Baptist', 'Headteacher', '2018-05-02', 'a', '$2y$10$PMqeRW/3aBkioO18ksjF2OLGCcIHpaaZ.sglG2Q6LfVG21C7AWcgK', 'user', 'Activea', 'a', '2018/05/26 23:32:14', '+256700392854', '+256700392854', '<EMAIL>', 1), (2, '7198', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', '', 'w', 'w', 'w', 1), (5, 'USR528', 'Violet', NULL, '', '', 'Violet', '', '', NULL, '1234@team', '', '--Select--', '', '', '', '', '', 1), (6, 'USR657', 'hannah', NULL, 'Female', 'nyende', 'violet', '', '', NULL, 'edward', '', '--Select--', '', '', '', '', '', 1), (7, 'USR630', 'violet.nyende', NULL, 'Female', 'Nyende', 'Violet', '', '2018-08-08', NULL, '$2y$10$BY6AuuNyqhb1capUc9UYOO1qSbDoEud4q4nphgjiBXxFAWo3jgam2', '', '--Select--', '', '', '', '', '', 1); -- -- Constraints for dumped tables -- -- -- Constraints for table `courseunit` -- ALTER TABLE `courseunit` ADD CONSTRAINT `fk_courseunit_programme1` FOREIGN KEY (`programme_programmeID`) REFERENCES `programme` (`programmeID`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `login_attempts` -- ALTER TABLE `login_attempts` ADD CONSTRAINT `fk_login_attempts_users1` FOREIGN KEY (`users_id`,`users_institute_instituteID`) REFERENCES `users` (`id`, `institute_instituteID`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `marks` -- ALTER TABLE `marks` ADD CONSTRAINT `fk_marks_courseunit1` FOREIGN KEY (`courseunit_courseunitID`,`courseunit_programme_programmeID`) REFERENCES `courseunit` (`courseunitID`, `programme_programmeID`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_marks_student1` FOREIGN KEY (`student_studentID`) REFERENCES `student` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `parent` -- ALTER TABLE `parent` ADD CONSTRAINT `fk_parent_student1` FOREIGN KEY (`student_studentID`) REFERENCES `student` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `sponsor` -- ALTER TABLE `sponsor` ADD CONSTRAINT `fk_sponsor_student1` FOREIGN KEY (`student_studentID`) REFERENCES `student` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `uace` -- ALTER TABLE `uace` ADD CONSTRAINT `fk_uace_parent1` FOREIGN KEY (`parent_parentID`) REFERENCES `parent` (`parentID`) ON DELETE NO ACTION ON UPDATE NO ACTION; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 CREATE TABLE badminto_finalf.t_tip_um LIKE avban.t_tip_um; ALTER TABLE badminto_finalf.t_tip_um CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; INSERT INTO badminto_finalf.t_tip_um SELECT * from avban.t_tip_um; ALTER TABLE badminto_finalf.t_tip_um CHANGE COLUMN id_tipm id INT UNSIGNED NOT NULL ; ALTER TABLE badminto_finalf.t_tip_um CHANGE COLUMN id id INT UNSIGNED NOT NULL AUTO_INCREMENT , ADD UNIQUE INDEX uix_id (id ASC) VISIBLE;
<reponame>DavinaLeong/Colours-Repo<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.9 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.3.0.4984 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for colours_db DROP DATABASE IF EXISTS `colours_db`; CREATE DATABASE IF NOT EXISTS `colours_db` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `colours_db`; -- Dumping structure for table colours_db.ci_sessions DROP TABLE IF EXISTS `ci_sessions`; CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `data` blob NOT NULL, KEY `ci_sessions_timestamp` (`timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table colours_db.ci_sessions: ~132 rows (approximately) /*!40000 ALTER TABLE `ci_sessions` DISABLE KEYS */; INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4cdac08aea132a869b0f69f2e20636d369d61fa9', '::1', 1472783113, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738333038323B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('66f8391a54e9b3e76ee130be24c3c1cf11ac53b4', '192.168.3.11', 1472783522, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738333339303B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('40530637f69816d5770b9732c6e1156fc0877c8d', '192.168.3.11', 1472784230, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738343232353B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('f04b1bbda9bd6e8ab61d25d47644e982b4e347b4', '::1', 1472784490, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738343233363B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B), ('1d33c5d7b813e86f6e888cd32f2f7674bc9a4c9b', '::1', 1472784746, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738343539373B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('ef7bce7ac1ef6f688891f6f31a4cd92be262e9f1', '192.168.3.11', 1472784794, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738343739343B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('1d0929fc9b3c14dc69e0f332c7627f5ae398095d', '::1', 1472784915, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738343839393B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B), ('ee80110d3aef01ca835bc3528b89ddda9a504af1', '172.16.31.10', 1472785085, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738353035353B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('f55da03fe5be597a76461cc331b66055c38f1b89', '192.168.3.11', 1472785944, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738353932323B757365725F69647C733A313A2232223B6163636573737C733A313A2241223B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('6bdd8a8ab26a2957c8ddb328f388bc855cbf72d9', '::1', 1472786243, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738353935393B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('30beca8e27d796b52f222b3fe5baf2e4dd0e4520', '192.168.3.11', 1472785989, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738353936363B757365725F69647C733A313A2232223B6163636573737C733A313A2241223B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('711f5cd49e50b0a8eaab80de68877601d74dd078', '172.16.31.10', 1472786138, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738363130343B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('3776ac74a7b7cabb437965019588142013aafc60', '::1', 1472786386, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738363337373B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B), ('9729d3ba70029f4151ae0759aab8a4dd14f62206', '::1', 1472789174, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738393137333B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('a877878cdcd92024741461e161130b3fa43cbef7', '192.168.3.11', 1472789308, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738393139353B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B), ('4a850eba386308f3304aecdee32544c8a065cf2c', '192.168.3.11', 1472789433, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738393139363B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '192.168.3.11', 1472789789, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738393535383B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B), ('2a5804a1077737a776b61e1dad1d0f4147f71c9b', '192.168.3.11', 1472789987, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323738393837303B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('2f1f4b811c1650a6ad2582a42c9bd865d0e8a9c3', '192.168.127.12', 1472790031, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323739303030363B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('2de89362b85573e625069fd890bac827d9e1431e', '192.168.127.12', 1472796395, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323739363339353B), ('6c94506266be3b8f15f1bd559e7ac6a1de44f95c', '192.168.127.12', 1472796395, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323739363339353B), ('f29c366934cde2f781af6e5a278075f1fd30e746', '192.168.127.12', 1472806630, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363630363B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('a0c5d5ab14ded6612e0470371df8cc3594cde3dc', '192.168.127.12', 1472806646, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363630373B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('8410b2465f5f3f8b2980a1b92508485aed24324c', '172.16.31.10', 1472806644, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363631313B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('8e99c632ad4066336ddff6cfbf379cb473271434', '172.16.31.10', 1472806642, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363631393B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('8dc2b1a92ba9df102d22365648bc45fd2136027b', '172.16.31.10', 1472806655, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363632303B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('5db6a954d6cb40fc3f553551f9c9fd4109ee18f8', '192.168.127.12', 1472806657, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363632343B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('670d13214e13ec144891bd8b119da49310caafe8', '192.168.3.11', 1472806814, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363738393B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('d40b7597607e3d8d4f0fd818803b8a9bbecb25f5', '192.168.3.11', 1472806826, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363738393B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('8a53ae9cd5cbdc4350902fbe2408d0ea451b7b1e', '192.168.127.12', 1472806818, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363738393B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('<KEY>', '192.168.3.11', 1472806825, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363738393B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('<KEY>', '172.16.31.10', 1472806824, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363739303B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('f8c06bf852fa6efdb8f96eab1322867a7fd7ce70', '172.16.31.10', 1472806829, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363739303B757365726E616D657C733A383A2267695F61646D696E223B6E616D657C733A383A2247492041646D696E223B), ('eeccea635779fe2e20ebf367d0423205e6efb0e6', '192.168.127.12', 1472806831, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363739363B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('873e62186c698a5100d80523ccbc8f46432b714f', '192.168.3.11', 1472807067, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323830363939323B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '172.16.31.10', 1472872211, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323837323231313B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('e57c62fac6f6022db47d3b25fd678d996d53e68a', '172.16.31.10', 1472872212, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323837323231323B), ('<KEY>', '172.16.17.32', 1472888155, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323838383135353B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('af94dee16a38c6469da3cdab2ad8988c9dbb66e7', '172.16.17.32', 1472888156, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323838383135363B), ('339ba90daa1ef32a512a00ca0b278b25919f2d3c', '192.168.3.11', 1472900107, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130373B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('b4559cc79d61435dfe66726f8848ecfa94330544', '192.168.3.11', 1472900107, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130373B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('<KEY>', '192.168.3.11', 1472900107, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130373B), ('763a848e0d9a78fbe0376457e2af12f0baea1a98', '192.168.3.11', 1472900108, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130383B), ('fa0c5eda2c157fb844a9919881d4078d226b4059', '192.168.3.11', 1472900108, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130383B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('<KEY>', '192.168.3.11', 1472900108, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130383B), ('074a9615f3d9b25857a4b61470d3b10b4fc65da1', '192.168.3.11', 1472900108, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130383B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('1e0b0968fe4e6537bca33f13a1c49d66eca886d2', '192.168.3.11', 1472900109, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323930303130393B), ('ce5b72ff043f18660be7358e7f3341d5084273b9', '172.16.31.10', 1472978897, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323937383839373B), ('5806ea57fb2b874a9bd7fceaf304963d05a771ea', '172.16.17.32', 1472981915, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437323938313931353B), ('fc5f97e80e753766b14430a9668f2d34edb48aee', '6172.16.58.3', 1473069816, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333036393831363B), ('c90b041282ff42e7bd9a20ab03ceb52e4b6ee043', '192.168.3.11', 1473077425, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333037373432353B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('3642796ae24b6d60c5a0b0db74e8f168a287b451', '192.168.3.11', 1473077425, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333037373432353B), ('38a4d596f3f66addce7c7f82a35e368c42c95dbe', '172.16.17.32', 1473210042, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303034323B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('173394016962df6ef9e5642cbfdf3f12571bb102', '172.16.17.32', 1473210042, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303034323B), ('947b87a2ada406cf7955fb8015418f1e9aa0d3f7', '192.168.127.12', 1473210656, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303635363B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('0527c28dbfe170972db90183f2184ad8641d090b', '192.168.127.12', 1473210657, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303635373B), ('403dc45588a949a322deb71478ed647a986756c1', '192.168.127.12', 1473210657, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303635373B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('1e3da86ae3299ffe3f97efe022582dccb02fb6df', '192.168.127.12', 1473210658, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333231303635383B), ('e0db051baf2f26a30d9b1892e461c9e45badb157', '172.16.17.32', 1473225094, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333232353039343B), ('f7621c2e75fcefd11a49745701b93af2f0f15af1', '172.16.58.3', 1473279140, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333237393134303B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('29113c0577ebfadb8115d44b2e178d09319eb085', '172.16.58.3', 1473279140, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333237393134303B), ('42cd8c7b57237494da6dad353634f4372aca04c1', '192.168.3.11', 1473293074, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037343B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('d095060361b8935f8596b144e6e5dbbf22a9c580', '192.168.3.11', 1473293074, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037343B), ('763a7b0a890d2658764008ccfd3811abbfa51097', '192.168.3.11', 1473293074, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037343B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('ace1f027c9908799e4ffabfa9e9b66151d25ca24', '192.168.3.11', 1473293074, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037343B), ('c1edab18e5d91070a59fb2965e7bf8225c1066aa', '192.168.3.11', 1473293074, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037343B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('de8d40fcd50859ac65a6ce5ea7576ddbbd2f07d9', '192.168.3.11', 1473293075, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037353B), ('8e13b2645eae2786c7e051feb43418c7cc9a9d2c', '192.168.3.11', 1473293075, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037353B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('b8cedc98b68ad8484288f2d41df1b9c57b28f285', '192.168.3.11', 1473293075, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333239333037353B), ('2297ab6ef9f515609bb0fd08b389ae62dfa7e896', '192.168.3.11', 1473448927, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333434383932373B), ('30aa5ca890756d71d14329d030988abc46d944d5', '192.168.3.11', 1473450469, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333435303436393B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('78598fa76cedd62d699170bfd337483c3a22c316', '192.168.3.11', 1473450469, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333435303436393B), ('959320eeda2e83ff1652724959d0275177fc0afa', '192.168.3.11', 1473450470, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333435303437303B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('c4dedb6a586d548b0c2c631395989b7a7edaf35d', '192.168.3.11', 1473450471, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333435303437313B), ('04e8f447b3a9befa208a0c2f7d4362e577c58e44', '192.168.127.12', 1473531771, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333533313737313B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('3b394ce23392d73a130f1f95303e10576fd148a2', '192.168.127.12', 1473531771, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333533313737313B), ('c65bad1db74ad7864f0c7784a5305452ee56c2b2', '192.168.127.12', 1473531772, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333533313737323B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('c01f0c53893185172bb687d1ccb479c6c1cadce3', '192.168.127.12', 1473531772, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333533313737323B), ('fb2c502fefe74b6a0dc898545f1ca889b2e0550e', '172.16.58.3', 1473670368, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333637303336363B), ('217109e4de5a15469899f52c94edb3ebd5d654ce', '172.16.58.3', 1473670369, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333637303336383B), ('bf99ce87a38d6f8073f9d4c4fd1ede10ad02ce60', '192.168.3.11', 1473830495, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333833303432373B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '192.168.3.11', 1473833468, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333833333232363B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('8163f53dac8547fbbb4eb5c8028f3d2c14175c70', '192.168.3.11', 1473834826, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333833343533313B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('8ad085d4b7e84e8b48254e61f7446a2c8b809636', '172.16.17.32', 1473906184, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333930363138343B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('5d6a3a0d9160b4970cc64367406ab569b11d76d1', '172.16.17.32', 1473906184, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333930363138343B), ('565dd5bd0b44aefddba157faafa182a7f887c0f0', '172.16.58.3', 1473966670, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333936363637303B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('d20140e1542db66c0f3af4483cdbac8c204e74fb', '172.16.58.3', 1473966671, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437333936363637313B), ('f09ced6ce6da4b23d7cf330869a823e87850c069', '192.168.3.11', 1474126207, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343132363230373B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('b691f8071cbc1ac5c770ee32b4dd293fce4f97fc', '192.168.3.11', 1474126208, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343132363230383B), ('f3c6f3db62aa3b18536815f56c00396a73c93310', '172.16.31.10', 1474230525, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343233303532353B), ('c03e9e08c0c5c81a9b8fbca730a0046dedc7640b', '172.16.17.32', 1474259289, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343235393238303B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('023cf4c520c8d6a9ad9ec24ba6aeac1da66edc76', '172.16.17.32', 1474260450, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236303435303B), ('04eb872308f120129638d4ce5bfa714ee587f689', '::1', 1474266134, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236353930313B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('026d84e281b917ac3b8015195ad2a6654ef84aed', '172.16.17.32', 1474266014, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236363030343B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('387523d4977eaf11cc61b071bea249a18c1a78d4', '172.16.17.32', 1474267847, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236363339333B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('5acae866adfc47f5a23991c2dcf1e4f9d675257e', '::1', 1474266428, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236363431383B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('c5372c6e3ab878c0a3a75c0c8c44cfb887a7bb09', '172.16.17.32', 1474267953, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236373838343B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('e0992d849369ef897c39c5b42222094fdbeb20dd', '172.16.17.32', 1474268468, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236383139313B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '::1', 1474269487, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236383333393B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('29e2317d882c0485bcf1c584e138a68167eba587', '172.16.17.32', 1474269477, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236383631313B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('d44103e1d8ddb55892975b64045a47cf7f09fece', '::1', 1474269763, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236393732353B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('eea7d08e9bd7ef7b5ab9182cda4947ddaece9bd0', '172.16.17.32', 1474269893, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343236393839333B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('6521e1baf62e0648603e79607d3dde2a4e6c1967', '::1', 1474272216, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343237323231343B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('9739cd621b6b5b392d9e3dd424331cb3edee47d4', '172.16.17.32', 1474274519, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343237343439353B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('da432a1efa3fdf9b124311871b8b97277db49cb6', '172.16.17.32', 1474279384, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343237393336383B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('b8be17adc9685ff1951c166edd7ff8e2fda4540a', '172.16.17.32', 1474280145, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343237393835303B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('71178e43b9e537bf7d122d62a9c49581fe27ef7a', '172.16.17.32', 1474281094, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343238313037353B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('9fb71cea958a5b9b0100ca283abeb9a052eff741', '172.16.17.32', 1474307597, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343330373539373B), ('deac646410f001eb0141e435d2126cb2bf87eaac', '::1', 1474340091, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343334303039313B), ('80dec7b4f35926573a9eefddaf2b61d6df48699d', '::1', 1474342182, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343334323138323B), ('24d99f38568e0406fc9744c05f4bb2a66dc3742b', '192.168.3.11', 1474407410, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343430373431303B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('65165269488d98e216c111fb0a1459a71502ca46', '192.168.3.11', 1474407410, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343430373431303B), ('c17b2a4b3d42e87f24dc54d2c70aadcd56f71428', '172.16.17.32', 1474454251, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343435343232353B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('d67e63247944373b89e7b0e5a84aa69d3116f29a', '192.168.127.12', 1474455529, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343435353532393B), ('00b7f262999a2a4949c216c7d5f91d3cd2e157e3', '172.16.31.10', 1474463581, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343436333538313B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('37aae393194335f117d3e7249960bf29fe9df1c6', '172.16.31.10', 1474463582, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343436333538323B), ('69edb4aa03cd26caf55a3d6489399d53fbfe30e1', '192.168.3.11', 1474542578, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343534323537383B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('4cf1befa3327cc73df700c1761ca61b1f64a288b', '192.168.3.11', 1474542578, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343534323537383B), ('48f0461aa2ffe04f049ff2518aeee199231ad251', '192.168.3.11', 1474542582, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343534323538323B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('43e2ecb73ab986e678f94207a5ebd5c2cc81ba08', '192.168.3.11', 1474542582, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343534323538323B), ('53c66c43cbee4f074f24024da67afcf7bb36c305', '::1', 1474602270, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343630323236303B), ('<KEY>', '::1', 1474606366, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343630363336363B), ('<KEY>', '172.16.31.10', 1474615449, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631353431313B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('071d253106e7516d30f435760245d670341ceb96', '172.16.31.10', 1474615993, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631353734333B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('d2afd77ef0fab0c937bfc3f0427e841c569e134a', '172.16.31.10', 1474616333, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631363036373B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '172.16.31.10', 1474616592, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631363435373B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('<KEY>', '172.16.31.10', 1474616906, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631363930363B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('93c729e86ec321c5463713d5c7e5716225d91b9c', '172.16.31.10', 1474619824, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343631393831383B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('6e44840fab24b2e4206c1a0e4ac9bf76c7152d37', '172.16.31.10', 1474621014, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343632303939393B757365725F69647C733A313A2231223B6163636573737C733A313A2241223B757365726E616D657C733A353A2261646D696E223B6E616D657C733A31333A2244656661756C742041646D696E223B), ('41134f3a5522f2cfdc184898b2acd092d30271dc', '172.16.17.32', 1474633739, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343633333639333B), ('cb2d543e45a948b0ff9a096392e14b6766700546', '172.16.17.32', 1474639546, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343633393534363B6D6573736167657C733A34383A2254686973207573657220646F6573206E6F74206861766520616E792076616C696420616363657373207269676874732E223B), ('c1226387b0280af640f72bdc54854294f29db451', '172.16.17.32', 1474639546, _binary 0x5F5F63695F6C6173745F726567656E65726174657C693A313437343633393534363B); /*!40000 ALTER TABLE `ci_sessions` ENABLE KEYS */; -- Dumping structure for table colours_db.user DROP TABLE IF EXISTS `user`; CREATE TABLE IF NOT EXISTS `user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(512) NOT NULL, `password_hash` varchar(512) NOT NULL, `name` varchar(512) DEFAULT NULL, `access` varchar(512) NOT NULL, `status` varchar(30) NOT NULL, `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- Dumping data for table colours_db.user: 1 rows /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` (`user_id`, `username`, `password_hash`, `name`, `access`, `status`, `last_updated`) VALUES (1, 'admin', <PASSWORD>', 'Default Admin', 'A', 'Active', '2016-08-10 16:03:31'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; -- Dumping structure for table colours_db.user_log DROP TABLE IF EXISTS `user_log`; CREATE TABLE IF NOT EXISTS `user_log` ( `ulid` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `message` text NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`ulid`) ) ENGINE=MyISAM AUTO_INCREMENT=35 DEFAULT CHARSET=latin1; -- Dumping data for table colours_db.user_log: 34 rows /*!40000 ALTER TABLE `user_log` DISABLE KEYS */; INSERT INTO `user_log` (`ulid`, `user_id`, `message`, `timestamp`) VALUES (1, 1, 'User logged in.', '2016-09-28 11:25:50'), (2, 1, 'User is logged out.', '2016-09-28 11:26:46'), (3, 1, 'User logged in.', '2016-09-28 11:33:19'), (4, 1, 'User is logged out.', '2016-09-28 11:33:25'), (5, 1, 'User logged in.', '2016-09-28 11:34:21'), (6, 1, 'User is logged out.', '2016-09-28 11:44:12'), (7, 1, 'User logged in.', '2016-09-28 11:49:41'), (8, 1, 'User is logged out.', '2016-09-28 11:57:35'), (9, 1, 'User logged in.', '2016-09-30 22:31:29'), (10, 1, 'User is logged out.', '2016-10-01 00:01:11'), (11, 1, 'User logged in.', '2016-10-01 01:09:56'), (12, 1, 'User logged in.', '2016-10-01 23:08:10'), (13, 1, 'User is logged out.', '2016-10-01 23:36:59'), (14, 1, 'User logged in.', '2016-10-02 01:25:28'), (15, 1, 'User is logged out.', '2016-10-02 01:58:37'), (16, 1, 'User logged in.', '2016-10-02 02:20:11'), (17, 1, 'User is logged out.', '2016-10-02 03:58:12'), (18, 1, 'User logged in.', '2016-10-02 13:15:50'), (19, 1, 'User logged in.', '2016-10-02 18:21:04'), (20, 1, 'User logged in.', '2016-10-02 22:55:02'), (21, 1, 'New Web Safe Colour CREATED. | colour_id: 1', '2016-10-02 23:15:03'), (22, 1, 'New Web Safe Colour CREATED. | colour_id: 2', '2016-10-02 23:19:09'), (23, 1, 'New Web Safe Colour CREATED. | colour_id: 3', '2016-10-02 23:19:54'), (24, 1, 'User is logged out.', '2016-10-02 23:20:13'), (25, 1, 'User logged in.', '2016-10-06 22:06:45'), (26, 1, 'User is logged out.', '2016-10-06 23:01:11'), (27, 1, 'User logged in.', '2016-10-08 00:55:49'), (28, 1, 'User is logged out.', '2016-10-08 01:25:15'), (29, 1, 'User logged in.', '2016-10-08 09:51:23'), (30, 1, 'User is logged out.', '2016-10-08 09:54:47'), (31, 1, 'User logged in.', '2016-10-08 09:54:52'), (32, 1, 'User logged in.', '2016-10-08 15:10:37'), (33, 1, 'User is logged out.', '2016-10-08 15:46:37'), (34, 1, 'User logged in.', '2016-10-08 16:41:34'); /*!40000 ALTER TABLE `user_log` ENABLE KEYS */; -- Dumping structure for table colours_db.web_safe_colour DROP TABLE IF EXISTS `web_safe_colour`; CREATE TABLE IF NOT EXISTS `web_safe_colour` ( `colour_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `colour_name` varchar(512) DEFAULT NULL, `colour_selector` varchar(512) DEFAULT NULL, `red_255` int(10) unsigned DEFAULT NULL, `green_255` int(10) unsigned DEFAULT NULL, `blue_255` int(10) unsigned DEFAULT NULL, `red_ratio` decimal(10,3) unsigned DEFAULT NULL, `green_ratio` decimal(10,3) unsigned DEFAULT NULL, `blue_ratio` decimal(10,3) unsigned DEFAULT NULL, `hex` varchar(7) DEFAULT NULL, `colour_type` varchar(512) DEFAULT NULL, `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`colour_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- Dumping data for table colours_db.web_safe_colour: 3 rows /*!40000 ALTER TABLE `web_safe_colour` DISABLE KEYS */; INSERT INTO `web_safe_colour` (`colour_id`, `colour_name`, `colour_selector`, `red_255`, `green_255`, `blue_255`, `red_ratio`, `green_ratio`, `blue_ratio`, `hex`, `colour_type`, `date_added`, `last_updated`) VALUES (1, 'Black', 'Black', 0, 0, 0, 0.000, 0.000, 0.000, '#000000', 'Default', '2016-10-02 23:15:03', '2016-10-02 23:15:03'), (2, 'White', 'White', 255, 255, 255, 1.000, 1.000, 1.000, '#FFFFFF', 'Default', '2016-10-02 23:19:09', '2016-10-02 23:19:09'), (3, 'Red', 'Red', 255, 0, 0, 1.000, 0.000, 0.000, '#FF0000', 'Default', '2016-10-02 23:19:54', '2016-10-02 23:19:54'); /*!40000 ALTER TABLE `web_safe_colour` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2019 at 03:13 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `smartmom` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `kd_admin` int(4) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`kd_admin`, `username`, `password`) VALUES (1, 'admin', '<PASSWORD>'); -- -------------------------------------------------------- -- -- Table structure for table `datapasien` -- CREATE TABLE `datapasien` ( `kd_datapasien` int(11) NOT NULL, `nama_ibu` varchar(50) NOT NULL, `umur_ibu` varchar(50) NOT NULL, `agama_ibu` varchar(50) NOT NULL, `pendidikan_ibu` varchar(50) NOT NULL, `pekerjaan_ibu` varchar(50) NOT NULL, `alamat_ibu` varchar(50) NOT NULL, `telepon_ibu` varchar(50) NOT NULL, `pertama_haid` varchar(50) NOT NULL, `tafsiran_persalinan` varchar(50) NOT NULL, `hamil_direncanakan` varchar(50) NOT NULL, `kontrol` varchar(50) NOT NULL, `transportasi` varchar(50) NOT NULL, `gol_darah` varchar(50) NOT NULL, `lila` varchar(50) NOT NULL, `tb` varchar(50) NOT NULL, `berat_badan` varchar(50) NOT NULL, `riwayat_penyakit` varchar(50) NOT NULL, `riwayat_alergi` varchar(50) NOT NULL, `riwayat_kontrasepsi` varchar(50) NOT NULL, `nama_bapak` varchar(50) NOT NULL, `umur_bapak` varchar(50) NOT NULL, `agama_bapak` varchar(50) NOT NULL, `pendidikan_bapak` varchar(50) NOT NULL, `pekerjaan_bapak` varchar(50) NOT NULL, `alamat_bapak` varchar(50) NOT NULL, `telepon_bapak` varchar(50) NOT NULL, `riwayat_perkawinan` varchar(50) NOT NULL, `lama_perkawinan` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `hasildiagnosa` -- CREATE TABLE `hasildiagnosa` ( `kd_hasil` int(11) NOT NULL, `nama` varchar(50) NOT NULL, `no_hp` varchar(50) NOT NULL, `tds` varchar(50) NOT NULL, `tdd` varchar(50) NOT NULL, `kbb` varchar(50) NOT NULL, `uk` varchar(50) NOT NULL, `ui` varchar(50) NOT NULL, `edema` varchar(50) NOT NULL, `proteinuria` varchar(50) NOT NULL, `hasil_diagnosa` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `hasildiagnosa` -- INSERT INTO `hasildiagnosa` (`kd_hasil`, `nama`, `no_hp`, `tds`, `tdd`, `kbb`, `uk`, `ui`, `edema`, `proteinuria`, `hasil_diagnosa`) VALUES (3, 'divi', 'divi', 'normal', 'normal', 'normal', 'trimester1', 'muda', 'iya', 'positif', 'preeklampsia'), (4, 'kiki', 'kiki', 'normal', 'tinggi', 'normal', 'trimester1', 'muda', 'iya', 'negatif', 'hamil normal'), (5, 'sugeng', 'sugeng', 'normal', 'tinggi', 'normal', 'trimester1', 'muda', 'iya', 'negatif', 'hamil normal'), (6, 'fico', 'fico', 'normal', 'tinggi', 'normal', 'trimester1', 'tua', 'iya', 'negatif', 'preeklampsia'), (7, 'veni', 'veni', 'normal', 'tinggi', 'normal', 'trimester1', 'ideal', 'iya', 'negatif', 'hamil normal'), (8, 'gen', 'gen', 'normal', 'tinggi', 'tinggi', 'trimester2', 'ideal', 'iya', 'negatif', 'hamil normal'), (9, 'ki', 'ki', 'normal', 'tinggi', 'normal', 'trimester3', 'ideal', 'iya', 'negatif', 'hamil normal'), (10, 'ken', 'ken', 'tinggi', 'tinggi', 'normal', 'trimester3', 'ideal', 'iya', 'negatif', 'preeklampsia'), (11, 's', 's', 'tinggi', 'tinggi', 'normal', 'trimester3', 'ideal', 'tidak', 'negatif', 'hamil normal'), (12, 'su', 'su', 'tinggi', 'tinggi', 'tinggi', 'trimester3', 'ideal', 'tidak', 'negatif', 'preeklampsia'); -- -------------------------------------------------------- -- -- Table structure for table `riwayat` -- CREATE TABLE `riwayat` ( `kd_riwayat` int(5) NOT NULL, `partus` varchar(5) NOT NULL, `jk` varchar(10) NOT NULL, `bbl` varchar(5) NOT NULL, `penolong` varchar(25) NOT NULL, `jenis_persalinan` varchar(10) NOT NULL, `uk` varchar(25) NOT NULL, `keadaan_bersalin` varchar(25) NOT NULL, `laktasi` varchar(25) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`kd_admin`); -- -- Indexes for table `datapasien` -- ALTER TABLE `datapasien` ADD PRIMARY KEY (`kd_datapasien`); -- -- Indexes for table `hasildiagnosa` -- ALTER TABLE `hasildiagnosa` ADD PRIMARY KEY (`kd_hasil`); -- -- Indexes for table `riwayat` -- ALTER TABLE `riwayat` ADD PRIMARY KEY (`kd_riwayat`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `kd_admin` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `datapasien` -- ALTER TABLE `datapasien` MODIFY `kd_datapasien` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `hasildiagnosa` -- ALTER TABLE `hasildiagnosa` MODIFY `kd_hasil` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `riwayat` -- ALTER TABLE `riwayat` MODIFY `kd_riwayat` int(5) NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;