sql
stringlengths
6
1.05M
SELECT name FROM world WHERE name LIKE 'Y%'
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.33) # Datenbank: cur # Erstellt am: 2017-01-29 13:05:52 +0000 # ************************************************************ /*!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 */; /*!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 */; # Export von Tabelle accept_terms # ------------------------------------------------------------ DROP TABLE IF EXISTS `accept_terms`; CREATE TABLE `accept_terms` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) unsigned NOT NULL, `status` int(11) unsigned DEFAULT '0' COMMENT '0 = abgelehnt / noch nicht akzeptiert; 1 = akzeptiert', `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `rel_ac_user` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle block # ------------------------------------------------------------ DROP TABLE IF EXISTS `block`; CREATE TABLE `block` ( `id` bigint(10) NOT NULL AUTO_INCREMENT, `block` varchar(40) NOT NULL DEFAULT '', `visible` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='contains all installed blocks'; LOCK TABLES `block` WRITE; /*!40000 ALTER TABLE `block` DISABLE KEYS */; INSERT INTO `block` (`id`, `block`, `visible`) VALUES (1,'html',1), (2,'moodle',1); /*!40000 ALTER TABLE `block` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle block_instances # ------------------------------------------------------------ DROP TABLE IF EXISTS `block_instances`; CREATE TABLE `block_instances` ( `id` bigint(10) NOT NULL AUTO_INCREMENT, `block_id` bigint(10) NOT NULL DEFAULT '0', `name` varchar(40) NOT NULL DEFAULT '', `context_id` bigint(10) NOT NULL, `region` varchar(16) NOT NULL DEFAULT '', `weight` bigint(10) NOT NULL, `configdata` longtext, `institution_id` int(11) unsigned NOT NULL COMMENT '0 == all institutions', `role_id` int(11) unsigned DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table stores block instances.'; LOCK TABLES `block_instances` WRITE; /*!40000 ALTER TABLE `block_instances` DISABLE KEYS */; INSERT INTO `block_instances` (`id`, `block_id`, `name`, `context_id`, `region`, `weight`, `configdata`, `institution_id`, `role_id`) VALUES (3,1,'Allgmeine Informationen',11,'',3,'<strong>Datenschutzerklärung und Nutzungsbedingungen</strong><br>Die Datenschutzerklärung und Nutzungsbedingungen für diese Lernplattform können Sie <a href=\"http://www.curriculumonline.de\">hier</a> einsehen. <br><br><strong>Ansprechpartner</strong><br>Die Ansprechpartner für diese Zertifizierungsplattform können Sie unter folgender Emailadresse <EMAIL> erreichen.<br> <br><strong>Impressum</strong><br>Das Impressum dieses System können Sie <a href=\"http://joachimdieterich.de/index.php/impressum\">hier</a> einsehen.',0,0), (4,1,'Hilfe',11,'',0,'<div class=\"text-center\"> <a href=\"https://vimeo.com/user48533307/collections\" target=\"_blank\">Video-Tutorials</a>\n</div>',0,0); /*!40000 ALTER TABLE `block_instances` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle bulletinBoard # ------------------------------------------------------------ DROP TABLE IF EXISTS `bulletinBoard`; CREATE TABLE `bulletinBoard` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `institution_id` int(11) unsigned NOT NULL, `title` varchar(400) DEFAULT NULL, `text` text, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_bb_user` (`creator_id`), KEY `rel_bb_institution` (`institution_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `bulletinBoard` WRITE; /*!40000 ALTER TABLE `bulletinBoard` DISABLE KEYS */; INSERT INTO `bulletinBoard` (`id`, `institution_id`, `title`, `text`, `creation_time`, `creator_id`) VALUES (1,56,'Digitale Unterstützung bei der Kompetenzorientierung an Schule und Hochschule','<div>\n<div>\n<div>\n<div>\n<p>Halle 1 | school@LEARNTEC-Forum<br>\n27.01.2016 15:30 - 16:00 Uhr</p>\n</div>\n</div>\n\n<div>\n<p> </p>\n\n<p>Wie lassen sich Kompetenzen dokumentieren und zertifizieren? In diesem Beitrag wird die Plattform curriculum (OpenSource) vorgestellt die genau das versucht. Mit ihr lassen sich einfache Kompetenzraster erstellen. Die Plattform bietet Lerner und Lehrperson eine Übersicht über den aktuellen Kompetenzstand einer Lerngruppe bzw. eines Lernenden. Noch nicht erworbene Kompetenzen können somit klar benannt und besser gefördert werden. Die einzelnen Kompetenzfelder / Ziele können zudem mit Materialien - z. B. aus bestehenden Lernplattformen - verknüpft werden. Curriculum wurde im Rahmen einer Laptopklasse entwickelt und erprobt. Daneben wurde die Plattform auch an der Universität Landau eingesetzt.</p>\n\n<p> </p>\n</div>\n</div>\n</div>\n\n<p> </p>\n','2016-06-09 10:09:13',532); /*!40000 ALTER TABLE `bulletinBoard` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle capabilities # ------------------------------------------------------------ DROP TABLE IF EXISTS `capabilities`; CREATE TABLE `capabilities` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `capability` varchar(240) NOT NULL DEFAULT '', `name` varchar(100) NOT NULL, `description` varchar(2048) DEFAULT NULL, `type` varchar(50) DEFAULT NULL, `component` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `capabilities` WRITE; /*!40000 ALTER TABLE `capabilities` DISABLE KEYS */; INSERT INTO `capabilities` (`id`, `capability`, `name`, `description`, `type`, `component`) VALUES (2,'menu:readInstitution','Institutionsmenü anzeigen','Ability to see institution menu','read','curriculum'), (3,'menu:readObjectives','Lernstandmenü anzeigen','Ability to see progress menu inside of institution menu','read','curriculum'), (4,'menu:readCurriculum','Lehrplanmenü anzeigen','Ability to see curricula menu inside of institution menu','read','curriculum'), (5,'menu:readUser','Benutzerverwaltungsmenü anzeigen','Ability to see useradministration menu inside of institution menu','read','curriculum'), (6,'menu:readGrade','Klassenstufenmenü anzeigen','Ability to see grade menu inside of institution menu','read','curriculum'), (7,'menu:readSubject','Fächermenü anzeigen','Ability to see subject menu inside of institution menu','read','curriculum'), (8,'menu:readSemester','Lernzeitraummenü anzeigen','Ability to see semester menu inside of institution menu','read','curriculum'), (9,'menu:readBackup','Backupmenü anzeigen','Ability to see backup menu inside of institution menu','read','curriculum'), (10,'menu:readConfirm','Freigabemenü anzeigen','Ability to see confirm menu inside of institution menu','read','curriculum'), (14,'menu:readGroup','Gruppenmenü anzeigen','Ability to see group-menu','read','curriculum'), (15,'menu:readLog','Logdaten anzeigen','Ability to see log page','read','curriculum'), (17,'menu:readRole','Rollenmenü anzeigen','Ability to see Role menu','read','curriculum'), (20,'user:addUser','Benuzter hinzufügen','Ability to add user profiles','write','curriculum'), (21,'user:updateUser','Benuzter bearbeiten','Ability to update user profiles','write','curriculum'), (23,'user:updateRole','Benuzterrolle aktualisieren','Ability to update user roles','write','curriculum'), (24,'user:delete','Benuzter löschen','Ability to delete users','write','curriculum'), (25,'user:changePassword','Eigenes Benutzerpasswort ändern','Ability to change own userpassoword','write','curriculum'), (27,'user:getGroupMembers','Mitglieder aus einer Lerngruppe anzeigen','Ability to read groupmembers','read','curriculum'), (28,'user:listNewUsers','Neue Benutzer auflisten','Ability to list new registered users','read','curriculum'), (29,'user:enroleToInstitution','Benutzer in Institution einschreiben','Ability to enrole users to an institution','write','curriculum'), (30,'user:enroleToGroup','Benutzer in Lerngruppe einschreiben','Ability to enrole users to group','write','curriculum'), (31,'user:expelFromGroup','Benutzer in Lerngruppe ausschreiben','Ability to expel users from group','write','curriculum'), (32,'menu:readuserImport','Benutzerliste (csv) importieren','Ability to import csv-userlist','write','curriculum'), (33,'user:userList','Benutzerliste anzeigen','Ability to see userlist','read','curriculum'), (35,'user:resetPassword','<PASSWORD> zurücksetzen','Ability to reset password','write','curriculum'), (36,'user:getUsers','Lerngruppenliste (Lehrplanbezogen) anzeigen','Ability to get Grouplist (depending on curriculum)','read','curriculum'), (38,'user:confirmUser','Neue Benutzer bestätigen','Ability to confirm new users','write','curriculum'), (39,'install:dedicate','Nur für die Installation! ','Only for installation purposes','write','curriculum'), (40,'mail:loadMail','Emails laden','Ability to load messages','read','mail'), (41,'mail:postMail','Emails schreiben','Ability to write messages','write','mail'), (42,'mail:loadInbox','Posteingang anzeigen ','Ability to load the inbox(mails)','read','mail'), (43,'mail:loadOutbox','Postausgang anzeigen ','Ability to load the outbox(mails)','read','mail'), (44,'mail:loadDeletedMessages','Gelöschte Mails anzeigen ','Ability to load deleted mails','read','mail'), (45,'file:solutionUpload','Lösungen einreichen ','Ability to upload solutions','write','file'), (46,'file:loadMaterial','Material laden ','Ability to see materials','read','file'), (47,'backup:add','Backup erstellen ','Ability to add backup','write','curriculum'), (49,'backup:delete','Backup löschen ','Ability to delete backup','write','curriculum'), (50,'objectives:setStatus','Lernstand setzen ','Ability to set status of objectives','write','curriculum'), (51,'file:upload','Dateien hochladen','Ability to upload files','write','curriculum'), (53,'file:uploadURL','URL hochladen','Ability to upload URLs','write','curriculum'), (54,'file:lastFiles','Zuletzt hochgeladene Dateien anzeigen','Ability to see last uploaded files','read','curriculum'), (55,'file:curriculumFiles','Dateien des Lehrplanes anzeigen','Ability to see files of current curriculum','read','curriculum'), (56,'file:solution','Lösungen im Dateifenster anzeigen','Ability to see solutionfiles','read','curriculum'), (57,'file:myFiles','Meine Dateien im Dateifenster anzeigen','Ability to see my files','read','curriculum'), (58,'file:myAvatars','Meine Avatars im Dateifenster anzeigen','Ability to see my avatar files','read','curriculum'), (59,'objectives:addTerminalObjective','Themen hinzufügen','Ability to add terminal Objectives','write','curriculum'), (61,'objectives:updateTerminalObjectives','Themen bearbeiten','Ability to edit and update terminal Objectives','write','curriculum'), (62,'objectives:deleteTerminalObjectives','Themen löschen','Ability to delete terminal Objectives','write','curriculum'), (63,'objectives:addEnablingObjective','Ziele hinzufügen','Ability to add enabling Objectives','write','curriculum'), (64,'objectives:updateEnablingObjectives','Ziele bearbeiten','Ability to edit and update enabling Objectives','write','curriculum'), (65,'objectives:deleteEnablingObjectives','Ziele löschen','Ability to delete enabling Objectives','write','curriculum'), (66,'subject:add','Fach hinzufügen','Ability to add subjects','write','curriculum'), (67,'subject:update','Fach editieren','Ability to edit and update subjects','write','curriculum'), (68,'subject:delete','Fach löschen','Ability to delete subjects','write','curriculum'), (69,'semester:add','Lernzeitrum hinzufügen','Ability to add semester','write','curriculum'), (70,'semester:update','Lernzeitrum editieren','Ability to edit and update semester','write','curriculum'), (71,'semester:delete','Lernzeitrum löschen','Ability to delete semester','write','curriculum'), (72,'schooltype:add','Schultyp hinzufügen','Ability to add schooltype','write','curriculum'), (73,'schooltype:update','Schultyp ändern','Ability to edit and update schooltype','write','curriculum'), (74,'schooltype:delete','Schultyp löschen','Ability to delete schooltype','write','curriculum'), (75,'log:getLogs','Log-Daten einsehen','Ability to see log data','read','curriculum'), (76,'institution:add','Institution hinzufügen','Ability to add institution','write','curriculum'), (77,'institution:delete','Institution löschen','Ability to delete institution','write','curriculum'), (78,'institution:update','Institution ändern','Ability to edit and update institution','write','curriculum'), (79,'groups:add','Gruppe hinzufügen','Ability to add group','write','curriculum'), (80,'groups:update','Gruppe ändern','Ability to edit and update group','write','curriculum'), (81,'groups:delete','Gruppe löschen','Ability to delete groups','write','curriculum'), (82,'groups:expel','Lerngruppe aus Lehrplan ausschreiben ','Ability to enrole groups','write','curriculum'), (83,'groups:enrol','Lerngruppe in Lehrplan einschreiben ','Ability to enrole groups','write','curriculum'), (84,'groups:changeSemester','Lernzeitrum der Lerngruppe ändern ','Ability to change semster of groups','write','curriculum'), (85,'grade:add','Klassenstufe hinzufügen ','Ability to add grade','write','curriculum'), (86,'grade:update','Klassenstufe ändern ','Ability to edit and update grade','write','curriculum'), (87,'grade:delete','Klassenstufe löschen ','Ability to delete grade','write','curriculum'), (88,'file:update','Datei(beschreibungen)en ändern','Ability to edit files','write','curriculum'), (89,'file:delete','Dateien löschen','Ability to delete files','write','curriculum'), (90,'file:getSolutions','Benutzerlösungen einsehen','Ability to see user solutions','read','curriculum'), (91,'curriculum:add','Lehrplan anlegen','Ability to add curriculum','write','curriculum'), (92,'curriculum:update','Lehrplan ändern','Ability to edit curriculum','write','curriculum'), (93,'curriculum:delete','Lehrplan löschen','Ability to delete curriculum','write','curriculum'), (94,'role:add','Rolle hinzufügen','Ability to add user role','write','curriculum'), (95,'role:update','Rolle ändern','Ability to edit and update user role','write','curriculum'), (96,'role:delete','Rolle löschen','Ability to delete user role','write','curriculum'), (97,'backup:getMyBackups','Backups meiner Kurse anzeigen','Ability to get my backups','read','curriculum'), (98,'backup:getAllBackups','Backups aller Kurse anzeigen','Ability to get all backups','read','curriculum'), (101,'dashboard:globalAdmin','Informationen für globale Administratoren anzeigen','Ability to see Info for global Admins','read','curriculum'), (102,'dashboard:institutionalAdmin','Informationen für Administratoren (Institution) anzeigen','Ability to see Info for institutional Admins','read','curriculum'), (103,'menu:readCertificate','Menü Zertifikate einrichten anzeigen','Ability to see certificate menu','read','curriculum'), (104,'user:getGroups','Lerngruppe eines Benutzers anzeigen','Ability to see group Groups of a user','read','curriculum'), (105,'user:getCurricula','Lehrpläne eines Benuzters anzeigen','Ability to see curiccula of a user','read','curriculum'), (108,'menu:readMessages','Mitteilungen (Postfach) anzeigen','Ability to see message page','read','menu'), (109,'page:showAdminDocu','Dokumentation zur Plattform auf Startseite anzeigen','Ability to see docu pdf on dasboard','read','page'), (110,'page:showStudentDocu','Dokumentation zur Plattform auf Startseite anzeigen','Ability to see docu pdf on dasboard','read','page'), (111,'page:showTeacherDocu','Dokumentation zur Plattform auf Startseite anzeigen','Ability to see docu pdf on dasboard','read','page'), (112,'page:showCronjob','Zeigt auf der Startseite an, wann cronjobs zuletzt gestartet wurden','Ability to see cronjob execution time on dasboard','read','page'), (115,'user:getHelp','Benutzer anzeigen, die Ziel erfolgreich abgschlossen haben','Ability to see user who accomplished objective','read','curriculum'), (116,'groups:showAccomplished','Anzeigen wie viele Gruppenteilnehmer ein Ziel abgeschlossen haben','Ability to see percentage of users who has accomplished a objective','read','curriculum'), (117,'file:editMaterial','Material editieren','Ability to edit material','write','curriculum'), (118,'groups:showCurriculumEnrolments','Lehrpläne der Lerngruppe anzeigen','Show curricula of groups','read','curriculum'), (120,'user:confirmUserSidewide','Benutzer global freigeben','Confirm user sidewide','write','curriculum'), (122,'menu:readMyInstitution','Menüblock \"Meine Institution\" anzeigen','Read menublock \"my institutions\"','read','curriculum'), (123,'user:expelFromInstitution','Benutzer aus Institution ausschreiben','Expel user from institution','write','curriculum'), (124,'user:userListComplete','Alle Benutzer (Instanz!) sehen','See all user','read','curriculum'), (125,'user:getInstitution','Institutionszugehörigkeit eines Benuzters anzeigen','See institution enrolments of a user','read','curriculum'), (128,'mail:delete','Mitteilungen löschen','Delete messages','write','curriculum'), (129,'certificate:add','Vorlage eines Zertifikates hinzufügen','Ability to add certificate template','write','curriculum'), (130,'certificate:update','Vorlage eines Zertifikates editieren','Ability to update certificate templates','write','certificate'), (131,'certificate:delete','Vorlage eines Zertifikates löschen','Ability to delete certificate templates','write','certificate'), (132,'menu:readbadgeview','Badges-Ansicht anzeigen','Ability to see badgeview','read','menu'), (133,'file:load','Benutzer darf Dateien laden',NULL,'read','file'), (134,'user:update','Eigenes Benutzerprofil bearbeiten','Eigenes Benutzerprofil bearbeiten','write','user'), (135,'course:setAccomplishedStatus','Lernstand setzen','Lernstand eines Benutzers setzen','write','course'), (136,'user:userListInstitution','Alle Benutzer der Institution anzeigen','','read','curriculum'), (137,'user:userListGroup','Alle Benutzer der eigenen Lerngruppen anzeigen','','read','curriculum'), (138,'file:uploadAvatar','Profilbilder hochladen','Nutzer darf Profilbilder hochladen','write','curriculum'), (141,'menu:readOnlineUsers','Benutzer online','Anzahl der Benutzer anzeigen, die gerade online sind','read','menu'), (142,'plugin:useEmbeddableGoogleDocumentViewer','Benutzer darf Dateien über Google Document Embedder einbinden ','Dateien werden direkt im Browser über den Google Document Embedder eingebunden','read','plugin'), (143,'file:showHits','Benutzer darf sehen, wie oft eine Datei abgerufen wurde','Benutzer darf sehen, wie oft eine Datei abgerufen wurde','read','file'), (144,'quiz:showQuiz','Benutzer darf Quiz sehen','Benutzer darf Quiz sehen','read','quiz'), (145,'dashboard:editBulletinBoard','Benutzer darf Pinnwand editieren','Benutzer darf Pinnwand editieren','write','dashboard'), (146,'curriculum:import','Benutzer darf Lehrpläne importieren','Benutzer darf Lehrpläne importieren','write','curriculum'), (147,'curriculum:showAll','Benutzer darf alle Lehrpläne einsehen','Benutzer','read','curriculum'), (148,'menu:readCourseBook','Kursbuch anzeigen','Ability to see coursebook menu inside of institution menu','read','curriculum'), (149,'coursebook:add','Kursbucheintrag hinzufügen','Add coursebook entry','write','coursebook'), (150,'coursebook:update','Kursbucheintrag editieren','Edit coursebook entry','write','coursebook'), (151,'event:add','Termin hinzufügen','Add event','write','coursebook'), (152,'event:update','Termin editieren','Edit event','write','coursebook'), (153,'task:add','Aufgabe hinzufügen','Add task','write','task'), (154,'task:update','Aufgabe editieren','Edit task','write','task'), (155,'task:delete','Aufgabe löschen','Delete task','write','task'), (156,'event:delete','Termin löschen','Delete event','write','coursebook'), (157,'coursebook:delete','Kursbucheintrag löschen','Delete coursebook entry','write','coursebook'), (158,'task:enrol','Aufgabe zuweisen','Subscribe task','write','task'), (159,'absent:add','Abwesenheitsliste eintragen','Add absent persons','write','curriculum'), (160,'absent:update','Abwesenheitsliste bearbeiten','Edit absent list','write','curriculum'), (161,'block:add','Blöcke hinzufügen','Add blocks','write','block'), (162,'block:update','Blöcke editieren','Edit blocks','write','block'), (163,'help:add','Hilfe-Dateien anlegen','Add help files','write','help'), (164,'help:update','Hilfe-Dateien bearbeiten','Edit help files','write','help'), (165,'help:delete','Hilfe-Dateien löschen','Delete help files','write','help'), (166,'course:selfAssessment','Selbsteinschätzung abgeben','Benutzer darf sich selbst einschäten','write','course'), (167,'content:add','Inhaltsseiten hinzufügen','Add Content','write','content'), (168,'content:update','Inhaltsseiten bearbeiten','Update Content','write','content'), (169,'content:delete','Inhaltsseiten löschen','Delete Content','write','content'), (170,'wallet:add','Sammelmappe anlegen','Add wallet','write','wallet'), (171,'wallet:update','Sammelmappe bearbeiten','Edit wallet','write','wallet'), (172,'wallet:delete','Sammelmappe löschen','Delete wallet','write','wallet'), (173,'menu:readWallet','Sammelmappe im Menü anzeigen','Show wallen in menü','read','menu'), (174,'wallet:workon','Sammelmappeninhalt bearbeiten','Work on wallet','write','wallet'), (175,'wallet:share','Sammelmappeninhalt teilen','Share wallet','write','wallet'), (176,'comment:add','Kommentare schreiben','Write comments','write','comment'), (177,'comment:update','Kommentare bearbeiten','Update comments','write','comment'), (178,'comment:delete','Kommentare löschen','Delete comments','write','comment'); (179,'user:shortUserList','vereinfachte Benutzerliste anzeigen (Login und Name)','Ability to see short userlist (login and name)','read','curriculum'); /*!40000 ALTER TABLE `capabilities` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle certificate # ------------------------------------------------------------ DROP TABLE IF EXISTS `certificate`; CREATE TABLE `certificate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `certificate` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `template` mediumtext, `logo_id` int(11) unsigned NOT NULL DEFAULT '0', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `institution_id` int(11) unsigned NOT NULL, `curriculum_id` int(11) unsigned DEFAULT '0', PRIMARY KEY (`id`), KEY `rel_ct_logo` (`logo_id`), KEY `rel_ct_user` (`creator_id`), KEY `rel_ct_institution` (`institution_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `certificate` WRITE; /*!40000 ALTER TABLE `certificate` DISABLE KEYS */; INSERT INTO `certificate` (`id`, `certificate`, `description`, `template`, `logo_id`, `creation_time`, `creator_id`, `institution_id`, `curriculum_id`) VALUES (1,'Medienkompass','Vorlage f. Medienkompass Sek. I','<div class=\"center cleaner\" style=\"text-align: center;\"><img src=\"../share/accessfile.php?file=badges/logo.png\" alt=\"\" width=\"150px\" /></div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">curriculumonline.de</div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">&nbsp;</div><div class=\"section\">\r\n<div class=\"section\">\r\n<div class=\"layoutArea\">\r\n<div class=\"column\">\r\n<p style=\"text-align: center;\">&nbsp;</p>\r\n<h2>Medienkompass&nbsp;Sek I</h2>\r\n<p>&nbsp;</p>\r\n<h3><!--Vorname--> <!--Nachname--></h3>\r\n<p>hat erfolgreich die folgenden Ziele des Lehrplanes abgeschlossen.</p>\r\n<!--Start-->\r\n<table style=\"width: 100%; padding-bottom: 10px;\" border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 70%; border-bottom: 1px solid silver;\">Ich kann&nbsp;</td>\r\n<td style=\"width: 15%; border-bottom: 1px solid silver;\">mit Hilfe</td>\r\n<td style=\"width: 15%; border-bottom: 1px solid silver;\">selbstst&auml;ndig</td>\r\n</tr>\r\n<tr>\r\n<td><strong><!--Thema--></strong></td>\r\n<td>&nbsp;</td>\r\n<td>&nbsp;</td>\r\n</tr>\r\n<!--Ziel_Start-->\r\n<tr style=\"border-bottom: 1px solid silver;\">\r\n<td style=\"width: 70%; border-bottom: 1px solid silver;\"><!--Ziel--></td>\r\n<td style=\"width: 15%; border-bottom: 1px solid silver;\"><!--Ziel_mit_Hilfe_erreicht--></td>\r\n<td style=\"width: 15%; border-bottom: 1px solid silver;\"><!--Ziel_erreicht--></td>\r\n</tr>\r\n<!--Ziel_Ende--></tbody>\r\n</table>\r\n<!--Ende--></div>\r\n</div>\r\n</div>\r\n</div>\r\n<p>&nbsp;</p>\r\n<div class=\"column\">\r\n<p>Meine Stadt, <!--Datum--></p>\r\n<p>&nbsp;</p>\r\n<p>__________________________________</p>\r\n<p>Mein Name</p>\r\n</div>',0,'2015-01-02 08:27:35',532,56,0), (4,'Medienkompass farbig','Farbiges Zertifikat','<div class=\"center cleaner\" style=\"text-align: center;\"><img src=\"../share/accessfile.php?file=badges/logo.png\" alt=\"\" width=\"150px\" /></div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">curriculumonline.de</div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">&nbsp;</div>\r\n<h2>MEDIENKOMP@SS</h2>\r\n<p>Sekundarstufe I</p>\r\n<h3><!--Vorname--> <!--Nachname--></h3>\r\n<p>hat erfolgreich die folgenden Module des Medienkom@sses abgeschlossen.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<!--Start-->\r\n<div class=\"topic\"><!--Thema--></div>\r\n<!--Ziel_Start-->\n<ziel status=\"1\" class=\"objective_green row\"></ziel>\n<ziel status=\"2\" class=\"objective_orange row\"></ziel>\n<ziel status=\"3\" class=\"row\"></ziel>\n<ziel status=\"0\" class=\"objective_red row\"></ziel>\r\n<!--Ziel_Ende--><br><!--Ende-->\r\n<p>Landau, <!--Datum--></p>\r\n<p>&nbsp;</p>\r\n<div>__________________________________</div>\r\n<div><!--Unterschrift--></div>',0,'2015-01-19 15:46:16',532,56,0), (5,'Medienkompass Badges neu','Medienkompass','<div class=\"center cleaner\" style=\"text-align: center;\"><img src=\"../share/accessfile.php?file=badges/logo.png\" alt=\"\" width=\"150px\" /></div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">curriculumonline.de</div>\r\n<div class=\"center cleaner\" style=\"text-align: center;\">&nbsp;</div>\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<h2 style=\"text-align:center\"><strong><!--Vorname-->&nbsp;<!--Nachname--></strong></h2>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p style=\"text-align:center\">hat erfolgreich die folgenden Module des Medienkomp@ss Sek I. (Erwartungshorizont 8. Klasse) abgeschlossen.</p>\r\n\r\n<p style=\"text-align:center\">&nbsp;</p>\r\n<!--Start-->\r\n\r\n<p style=\"text-align:center\"><!--Bereich{324,325,326,327}--><img alt=\"\" src=\"../share/accessfile.php?file=badges/Badge01ortho.png\" style=\"width:100px\" /><!--/Bereich--><!--Bereich{328,329,330,331}--><img alt=\"\" src=\"../share/accessfile.php?file=badges/Badge02ortho.png\" style=\"width:100px\" /><!--/Bereich--><!--Bereich{332,333,334,335}--><img alt=\"\" src=\"../share/accessfile.php?file=badges/Badge03ortho.png\" style=\"width:100px\" /><!--/Bereich--><!--Bereich{336,337,338,339}--><img alt=\"\" src=\"../share/accessfile.php?file=badges/Badge04ortho.png\" style=\"width:100px\" /><!--/Bereich--><!--Bereich{340,341,342,343}--><img alt=\"\" src=\"../share/accessfile.php?file=badges/Badge05ortho.png\" style=\"width:100px\" /><!--/Bereich--></p>\r\n<!--Ende-->\r\n\r\n<p style=\"text-align:center\">&nbsp;</p>\r\n\r\n<p style=\"text-align:center\">Landau, den <!--Datum--></p>\r\n\r\n<p style=\"text-align:center\">&nbsp;</p>\r\n\r\n<p style=\"text-align:center\">&nbsp;</p>\r\n\r\n<p style=\"text-align:left\">_________________________ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;_________________________</p>\r\n\r\n<p style=\"text-align:left\">(Klassenleitung) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(Schulleitung) &nbsp; &nbsp;&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>Weitere Informationen zu diesem Zertifikate erhalten sie online &uuml;ber den QR-Code.<img alt=\"\" src=\"../share/accessfile.php?file=badges/qr-code.png\" style=\"float:right; height:60px; width:60px\" /></p>\r\n',0,'2015-05-18 19:57:04',532,56,0); /*!40000 ALTER TABLE `certificate` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle comments # ------------------------------------------------------------ DROP TABLE IF EXISTS `comments`; CREATE TABLE `comments` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `reference_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned NOT NULL, `text` text, `parent_id` int(11) unsigned DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle config # ------------------------------------------------------------ DROP TABLE IF EXISTS `config`; CREATE TABLE `config` ( `id` bigint(10) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `value` longtext NOT NULL, `context_id` int(11) unsigned NOT NULL, `reference_id` int(11) unsigned NOT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='curriculum configuration variables'; LOCK TABLES `config` WRITE; /*!40000 ALTER TABLE `config` DISABLE KEYS */; INSERT INTO `config` (`id`, `name`, `value`, `context_id`, `reference_id`, `timestamp`) VALUES (1, 'auth', 'shibboleth', 19, 0, '2017-01-30 08:53:02'), (2, 'repository', 'omega', 19, 0, '2017-01-30 08:53:04'), (3, 'template', 'Bootflat-2.0.4', 19, 0, '2017-01-30 08:53:16'), (4, 'messaging', 'email', 19, 0, '2017-02-03 13:27:04'); /*!40000 ALTER TABLE `config` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle config_plugins # ------------------------------------------------------------ DROP TABLE IF EXISTS `config_plugins`; CREATE TABLE `config_plugins` ( `id` bigint(10) NOT NULL AUTO_INCREMENT, `plugin` varchar(100) NOT NULL DEFAULT '', `name` varchar(100) NOT NULL DEFAULT '', `value` longtext NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `confplug_plunam_uix` (`plugin`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='curriculum modules and plugins configuration variables'; LOCK TABLES `config_plugins` WRITE; /*!40000 ALTER TABLE `config_plugins` DISABLE KEYS */; INSERT INTO `config_plugins` (`id`, `plugin`, `name`, `value`) VALUES (1133,'auth/shibboleth','user_attribute','uusername'), (1134,'auth/shibboleth','organization_selection','urn:mace:organization1:providerID, Example Organization 1\r\nhttps://another.idp-id.com/shibboleth, Other Example Organization, /Shibboleth.sso/DS/SWITCHaai\r\nurn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/SWITCHaai'), (1135,'auth/shibboleth','logout_handler',''), (1136,'auth/shibboleth','logout_return_url',''), (1137,'auth/shibboleth','login_name','<NAME>'), (1138,'auth/shibboleth','convert_data',''), (1139,'auth/shibboleth','auth_instructions','Klicken Sie auf den Shibboleth-Button um sich über diesen Dienst anzumelden, wenn Ihr Unternehmen dies unterstützt. <br />Sonst verwenden Sie das normale hier angezeigte Loginformular.'), (1140,'auth/shibboleth','changepasswordurl',''), (1141,'auth/shibboleth','field_map_firstname','ufirstname'), (1142,'auth/shibboleth','field_updatelocal_firstname','oncreate'), (1143,'auth/shibboleth','field_lock_firstname','unlocked'), (1144,'auth/shibboleth','field_map_lastname','ulastname'), (1145,'auth/shibboleth','field_updatelocal_lastname','oncreate'), (1146,'auth/shibboleth','field_lock_lastname','unlocked'), (1147,'auth/shibboleth','field_map_email','uemail'), (1148,'auth/shibboleth','field_updatelocal_email','oncreate'), (1149,'auth/shibboleth','field_lock_email','unlocked'), (1168,'auth/shibboleth','field_map_institution','uinstitution'), (1169,'auth/shibboleth','field_updatelocal_institution','oncreate'), (1170,'auth/shibboleth','field_lock_institution','unlocked'); /*!40000 ALTER TABLE `config_plugins` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle content # ------------------------------------------------------------ DROP TABLE IF EXISTS `content`; CREATE TABLE `content` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `content` text, `timecreated` timestamp NULL DEFAULT NULL, `timemodified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `content` WRITE; /*!40000 ALTER TABLE `content` DISABLE KEYS */; INSERT INTO `content` (`id`, `title`, `content`, `timecreated`, `timemodified`, `creator_id`) VALUES (1,'Datenschutzerklärung und Nutzungsbedingungen für curriculum (Nutzungsvereinbarung)','<p><h3>1 Datenschutzerklärung</h3></p>\r<p><h4>1.1 Hinweise zum Datenschutz und Einwilligung zur Verarbeitung personenbezogener Daten.</h4></p>\rDie Nutzung von curriculum ist freiwillig. Auf curriculum werden ab der Registrierung als Nutzerin oder Nutzer von Ihnen eingegebene oder mit Ihrer Nutzung anfallende Daten automatisch verarbeitet. Soweit diese auf Ihre Person und nicht nur auf eine fingierte Identität verweisen, handelt es sich um personenbezogene Daten gemäß § 3 BDSG (Bundesdatenschutzgesetz). Darum gelten auch für curriculum datenschutzrechtliche Regelungen des BDSG, die die automatische Verarbeitung personenbezogener Daten beinhalten (§ 4, §6 und §13 BDSG). Diese verlangen die eingehende Information der Betroffenen über Art und Umfang der Erhebung ihrer personenbezogenen Daten und die Art und Weise ihrer weiteren Verarbeitung.\rÜber die in der Anmeldung angegebenen, teils automatisch anfallenden, teils vom Nutzer zusätzlich eingegebenen Informationen hinaus protokolliert curriculum in einer Datenbank, zu welcher Zeit welche Nutzer/innen auf welche Bestandteile der Lehrangebote bzw. Profile anderer Nutzer/innen zugreifen. Protokolliert wird ferner unter anderem, je nach Ausgestaltung des einzelnen Lehrangebots, ob Teilnehmerinnen und Teilnehmern gestellte Aufgaben erledigt haben.\rAll diese Daten sind der Administration von curriculum und der Leitung der jeweiligen Institution/ Lerngruppe zugänglich, nicht jedoch anderen Nutzerinnen und Nutzern. Sie dienen der Durchführung des jeweiligen Kompetenz-Zertifizierung.\rSofern im Rahmen von curriculum auf externe Quellen (z. B. Mediensammlungen) zugegriffen wird, können diesbezüglich anonymisierte Nutzungsdaten zu statistischen Zwecken erhoben werden. Eine darüber hinaus gehende Datenweitergabe findet nicht statt.\r<p><h4>1.2 Einwilligung</h4></p>\rMit der Registrierung und Nutzung von curriculum auf curriculumonline.de (kurz curriculum) geben Sie, in Kenntnis dieser Erläuterungen, Ihre Einwilligung zu der bezeichneten Datenerhebung und - verwendung. Diese Einwilligung ist jederzeit frei widerruflich durch entsprechende Erklärung gegenüber dem Betreuer von curriculum an der jeweiligen Bildungseinrichtung. Bei einem Widerruf wird Ihr Nutzungszugang auf curriculumonline.de gelöscht.\rTeilnehmer räumen mit der Unterzeichnung dieser Erklärung ihrer Institution das Nutzungsrecht an ihren Lösungseinreichungen etc. ein.\r<p><h3>2 Benutzerordnung</h3></p>\rDiese Nutzerordnung regelt die Arbeit mit curriculum auf curriculumonline.de\r<p><h4>2.1 Geltungsbereich und Inkrafttreten</h4></p>\rDiese Nutzungsordnung tritt am 01.12.2015 in Kraft. Sie gilt für die Gesamtheit aller mit curriculum verbundenen Systeme und Dienste.\rNutzungs- und Weisungsberechtigung\rNutzungsberechtigt sind Lehrerinnen und Lehrer, Schülerinnen und Schüler sowie mit der Betreuung des Systems beauftragte Personen, die sich bei curriculum mit ihrem echten Vor- und Nachnamen sowie unter Angabe einer gültigen E-Mail- Adresse registriert oder von Ihrer Bildungseinrichtung einen entsprechenden Zugang erhalten haben. Der Zugang zu den Lernbereichen wird durch die Administrator(en) / Manager geregelt. Weisungsberechtigt sind die jeweiligen Manager sowie die mit der Administration der Plattform beauftragten Personen. In Ausnahmefällen können verantwortungsbewusste Teilnehmerinnen oder Teilnehmer von einem Manager als zusätzliche Trainer eingesetzt werden.\r<p><h4>2.2 Arbeiten auf curriculum</h4></p>\rDie Lernplattform und sämtliche dort zugänglichen Dienste und Dateien dürfen nur ohne finanzielle\nund politische Interessen bzw. Absichten im Rahmen von Bildungskontexten genutzt werden und grundsätzlich nicht über den Teilnehmerkreis hinaus verbreitet werden.\rInsbesondere dürfen Kopien von Dateien und Medien oder selbsterstellte Materialien, die in wesentlichen Teilen auf diesen Dateien beruhen, nicht Personen außerhalb des Nutzerkreises von curriculum zur Verfügung gestellt, öffentlich vorgeführt oder veröffentlicht werden (Das Veröffentlichungsverbot betrifft damit Plattformen, wie z.B. YouTube, ebenso wie Lehrertauschbörsen und öffentlich zugängliche Schulhomepages.)\rWerden Inhalte oder Ausschnitte von Dateien in eigenen Werken (z.B. Präsentationen oder Arbeitsblättern) genutzt, so ist die Quelle (möglichst Herausgeber bzw. Urheber, Jahr, Titel, zumindest aber Titel, Link-URL und Zeitsignatur) anzugeben.\rVeränderungen der Installation und Konfiguration curriculum auf curriculumonline.de sowie Manipulationen an der Serversoftware sind grundsätzlich untersagt.\r<p><h5>2.2.1 Benutzerkonten und Profile</h5></p>\rEine Nutzerin oder ein Nutzer hat sich auf curriculum nur unter dem ihr/ihm zugewiesenen Nutzernamen anzumelden. Der Nutzer ist für alle Aktivitäten, die unter diesem Nutzernamen ablaufen, verantwortlich. Die Arbeitsstation, an der sich eine Nutzerin oder ein Nutzer bei curriculum angemeldet hat, darf nicht von diesem unbeaufsichtigt gelassen werden. Nach dem Beenden der Nutzung hat sich eine Nutzerin/ein Nutzer von curriculum abzumelden.\rDie Benutzerkonten sind durch sinnvoll gewählte Passwörter, die den Standardvorgaben entsprechen, gegen unbefugten Zugriff zu sichern. Die Passwörter sind geheim zu halten. Jede Nutzerin/jeder Nutzer ist dafür verantwortlich, dass nur er oder sie alleine seine/ihre persönlichen Passwörter kennt und zugewiesene Passwörter nicht weitergibt.\rDas Ausprobieren, das Ausforschen und die Benutzung fremder Zugriffsberechtigungen und sonstiger Authentifizierungsmittel sind, wie der Zugriff auf fremde Lernbereiche und Daten, unzulässig. Der Einsatz von sog. \"Spyware\" (z.B. Sniffer) oder Schadsoftware (z.B. Viren, Würmer) ist auf curriculum strengstens untersagt.\r<p><h5>2.2.2 Umgang mit E-Mail</h5></p>\rJede Nutzerin bzw. jeder Nutzer ist selbst für den Erhalt und die Verarbeitung von Nachrichten in curriculum verantwortlich. Die Angabe einer ungültigen E-Mail-Adresse ist nicht zulässig. Das Abschalten der E-Mail-Funktion in den Profileinstellungen entbindet nicht von der Pflicht, sich selbständig über alle aktuellen Vorgänge im Lernbereich / auf curriculum und Anweisungen der Manager / Trainer / Administration zu informieren. In der BETA Version erfolgt kein Versand von Emails. Es wird vorerst ausschließlich das interne Nachrichtensystem angeboten.\r<p><h5>2.2.3 Lehrpläne und Trainer</h5></p>\rAlle Trainer (Lehrerinnen und Lehrer) können in ihren Lernbereichen die Daten der Nutzerinnen und Nutzer einsehen und sind ihnen gegenüber auf Nachfrage darüber auskunftspflichtig (§19 BDSG). Sie geben derartige Daten zu keinem Zeitpunkt an Dritte weiter und nutzen diese ausschließlich zu pädagogischen Zwecken im vorgesehenen dienstlichen Kontext.\r<p><h5>2.2.4 Datenschutz und Datensicherheit</h5></p>\rAlle auf curriculum befindlichen Daten unterliegen dem Zugriff der Systemadministratoren von curriculumonline.de. Diese können bei dringendem Handlungsbedarf unangemeldet Daten einsehen, löschen oder verändern. Die Nutzerin bzw. der Nutzer wird über einen solchen Eingriff - notfalls nachträglich - angemessen informiert. Die Kontaktdaten der Administratoren sind über die Startseite (Impressum) zu erfahren.\rDavon unberührt besteht der Rechtsanspruch auf den Schutz persönlicher Daten vor unbefugten Zugriffen.\rEin Rechtsanspruch auf die Sicherung, Speicherung und Verfügbarkeit persönlicher Daten (auch:\r\nLehrpläne oder Teile hiervon) besteht gegenüber dem Betreiber nicht.\r<p><h5>2.2.5 Informationsübertragung in das Internet</h5></p>\rDer Trainer (Lehrer und Lehrerin) ist verantwortlich für das Angebot in seinem/ihrem Lernbereich. Eine Geheimhaltung von Daten, die über das Internet übertragen werden, wird über die derzeit technisch möglichen Sicherheitsmechanismen (z.B. verschlüsselte Übertragung per https) vom Betreiber gewährleistet.\rEs ist untersagt, curriculum zur Verbreitung von Informationen zu verwenden, die dazu geeignet sind, dem Ansehen der Plattform curriculum Schaden zuzufügen.\rEs ist verboten, Informationen zur Verfügung zu stellen, die rechtlichen Grundsätzen widersprechen. Dies gilt insbesondere für rassistische, ehrverletzende, beleidigende oder aus anderen Gründen gegen geltendes Recht verstoßende Inhalte. Die Bestimmungen des Bundesdatenschutzgesetzes sind einzuhalten. Dies gilt insbesondere für die Bekanntgabe von Namen und Adressdaten oder die Veröffentlichung von Fotografien ohne die ausdrückliche Genehmigung der davon betroffenen Personen bzw. des Rechteinhabers. Grundsätze, wie sie beispielhaft in der Netiquette, dem „Knigge“ im Bereich der Datenkommunikation, beschrieben sind, sind einzuhalten.\r<p><h5>2.2.6 Sonstige Regelungen</h5></p>\rDer Zugang zu fragwürdigen Informationen im Internet kann aus verschiedenen Gründen nicht immer verhindert werden. Die Trainer (Lehrerin oder Lehrer) kommen ihrer Aufsichtspflicht gegenüber Minderjährigen durch regelmäßige Kontrolle in angemessenen Zeitabständen der in ihren Lernbereich zur Verfügung gestellten Module (Lehrpläne etc.) nach. Sie haben die Verpflichtung, bei Bekanntwerden von Regelverstößen die Regelverletzung unverzüglich zu beenden.\rDie Nutzung der Plattform zum Tauschen von oder Verlinken auf lizenzrechtlich geschützte Daten und Dateien ist verboten, soweit nicht die Rechte für den jeweiligen Nutzungskontext und den im jeweiligen Kurs agierenden Nutzerkreis erworben wurden bzw. durch Dritte gewährt werden.\rEs ist verboten, Daten (auch Links), die rechtlichen Grundsätzen in der Bundesrepublik Deutschland widersprechen, auf curriculum zur Verfügung zu stellen. Das gilt insbesondere für Daten mit Gewalt verherrlichendem, pornographischem oder nationalsozialistischem Inhalt.\r<p><h4>2.3 Datenvolumen</h4></p>\rUnnötiges Datenaufkommen durch Laden und Versenden von großen Dateien (z.B. Grafiken, Videos oder Audiodateien) über curriculum ist zu vermeiden. Sollte eine Nutzerin oder ein Nutzer unberechtigt größere Datenmengen in seinem Arbeitsbereich ablegen, so sind die Administratorinnen und Administratoren nach Vorankündigung berechtigt, diese Daten zu löschen. Lehrkräften wird empfohlen größere Mediendateien soweit als möglich über Spezialplattformen zu veröffentlichen bzw. über die entsprechenden Funktionen in curriculum einzubinden.\rZuwiderhandlungen gegen diese Nutzungsbedingungen oder ein Missbrauch des Zugangs zu curriculum können, neben dem Entzug der Nutzungsberechtigung für die curriculum, auch Zivil- und strafrechtliche Konsequenzen nach sich ziehen.\r<p><h3>3 Schlussbedingung</h3></p>\rSollten einzelne Bestimmungen dieser Nutzungsbedingungen ganz oder teilweise unwirksam sein oder werden, berührt dies nicht die Wirksamkeit der übrigen Bestimmungen.<br>Stand: 01.12.2015',NULL,'2017-01-29 13:10:33',532); /*!40000 ALTER TABLE `content` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle content_subscriptions # ------------------------------------------------------------ DROP TABLE IF EXISTS `content_subscriptions`; CREATE TABLE `content_subscriptions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `content_id` int(11) NOT NULL, `context_id` int(11) NOT NULL, `file_context` int(11) NOT NULL, `reference_id` int(11) NOT NULL, `timecreated` timestamp NULL DEFAULT NULL, `timemodified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, `status` int(11) NOT NULL DEFAULT '1', `creator_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `content_subscriptions` WRITE; /*!40000 ALTER TABLE `content_subscriptions` DISABLE KEYS */; INSERT INTO `content_subscriptions` (`id`, `content_id`, `context_id`, `file_context`, `reference_id`, `timecreated`, `timemodified`, `status`, `creator_id`) VALUES (1,1,14,1,0,NULL,'2017-01-29 13:33:56',1,532); /*!40000 ALTER TABLE `content_subscriptions` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle context # ------------------------------------------------------------ DROP TABLE IF EXISTS `context`; CREATE TABLE `context` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `context` varchar(100) DEFAULT NULL, `context_id` int(11) unsigned NOT NULL, `path` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `path` (`path`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `context` WRITE; /*!40000 ALTER TABLE `context` DISABLE KEYS */; INSERT INTO `context` (`id`, `context`, `context_id`, `path`) VALUES (1, 'userFiles', 1, 'user/'), (2, 'curriculum', 2, 'curriculum/'), (3, 'avatar', 3, 'user/'), (4, 'solution', 4, 'solutions/'), (5, 'subjectIcon', 5, 'subjects/'), (6, 'badge', 6, 'badges/'), (7, 'editor', 7, 'user/'), (8, 'backup', 8, 'backups/'), (9, 'institution', 9, 'institution/'), (10, 'courseBook', 10, 'coursebook/'), (11, 'dashboard', 11, NULL), (12, 'enabling_objective', 12, NULL), (13, 'task', 13, NULL), (14, 'terms', 14, NULL), (15, 'content', 15, NULL), (16, 'group', 16, NULL), (17, 'course', 17, NULL), (18, 'wallet', 18, NULL), (19, 'config', 19, NULL); /*!40000 ALTER TABLE `context` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle countries # ------------------------------------------------------------ DROP TABLE IF EXISTS `countries`; CREATE TABLE `countries` ( `code` char(2) NOT NULL, `en` varchar(50) NOT NULL DEFAULT '', `de` varchar(50) NOT NULL DEFAULT '', `id` int(11) unsigned NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), KEY `de` (`de`), KEY `en` (`en`), KEY `code` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `countries` WRITE; /*!40000 ALTER TABLE `countries` DISABLE KEYS */; INSERT INTO `countries` (`code`, `en`, `de`, `id`) VALUES ('AD','Andorra','Andorra',1), ('AE','United Arab Emirates','Vereinigte Arabische Emirate',2), ('AF','Afghanistan','Afghanistan',3), ('AG','Antigua and Barbuda','Antigua und Barbuda',4), ('AI','Anguilla','Anguilla',5), ('AL','Albania','Albanien',6), ('AM','Armenia','Armenien',7), ('AN','Netherlands Antilles','Niederländische Antillen',8), ('AO','Angola','Angola',9), ('AQ','Antarctica','Antarktis',10), ('AR','Argentina','Argentinien',11), ('AS','American Samoa','Amerikanisch-Samoa',12), ('AT','Austria','Österreich',13), ('AU','Australia','Australien',14), ('AW','Aruba','Aruba',15), ('AX','Aland Islands','Aland',16), ('AZ','Azerbaijan','Aserbaidschan',17), ('BA','Bosnia and Herzegovina','Bosnien und Herzegowina',18), ('BB','Barbados','Barbados',19), ('BD','Bangladesh','Bangladesch',20), ('BE','Belgium','Belgien',21), ('BF','Burkina Faso','Burkina Faso',22), ('BG','Bulgaria','Bulgarien',23), ('BH','Bahrain','Bahrain',24), ('BI','Burundi','Burundi',25), ('BJ','Benin','Benin',26), ('BM','Bermuda','Bermuda',27), ('BN','Brunei','Brunei Darussalam',28), ('BO','Bolivia','Bolivien',29), ('BR','Brazil','Brasilien',30), ('BS','Bahamas','Bahamas',31), ('BT','Bhutan','Bhutan',32), ('BV','Bouvet Island','Bouvetinsel',33), ('BW','Botswana','Botswana',34), ('BY','Belarus','Belarus (Weißrussland)',35), ('BZ','Belize','Belize',36), ('CA','Canada','Kanada',37), ('CC','Cocos (Keeling) Islands','Kokosinseln (Keelinginseln)',38), ('CD','Congo (Kinshasa)','Kongo',39), ('CF','Central African Republic','Zentralafrikanische Republik',40), ('CG','Congo (Brazzaville)','Republik Kongo',41), ('CH','Switzerland','Schweiz',42), ('CI','Ivory Coast','Elfenbeinküste',43), ('CK','Cook Islands','Cookinseln',44), ('CL','Chile','Chile',45), ('CM','Cameroon','Kamerun',46), ('CN','China','China, Volksrepublik',47), ('CO','Colombia','Kolumbien',48), ('CR','Costa Rica','Costa Rica',49), ('CS','Serbia And Montenegro','Serbien und Montenegro',50), ('CU','Cuba','Kuba',51), ('CV','Cape Verde','Kap Verde',52), ('CX','Christmas Island','Weihnachtsinsel',53), ('CY','Cyprus','Zypern',54), ('CZ','Czech Republic','Tschechische Republik',55), ('DE','Germany','Deutschland',56), ('DJ','Djibouti','Dschibuti',57), ('DK','Denmark','Dänemark',58), ('DM','Dominica','Dominica',59), ('DO','Dominican Republic','Dominikanische Republik',60), ('DZ','Algeria','Algerien',61), ('EC','Ecuador','Ecuador',62), ('EE','Estonia','Estland (Reval)',63), ('EG','Egypt','Ägypten',64), ('EH','Western Sahara','Westsahara',65), ('ER','Eritrea','Eritrea',66), ('ES','Spain','Spanien',67), ('ET','Ethiopia','Äthiopien',68), ('FI','Finland','Finnland',69), ('FJ','Fiji','Fidschi',70), ('FK','Falkland Islands','Falklandinseln (Malwinen)',71), ('FM','Micronesia','Mikronesien',72), ('FO','Faroe Islands','Färöer',73), ('FR','France','Frankreich',74), ('GA','Gabon','Gabun',75), ('GB','United Kingdom','Großbritannien und Nordirland',76), ('GD','Grenada','Grenada',77), ('GE','Georgia','Georgien',78), ('GF','French Guiana','Französisch-Guayana',79), ('GG','Guernsey','Guernsey (Kanalinsel)',80), ('GH','Ghana','Ghana',81), ('GI','Gibraltar','Gibraltar',82), ('GL','Greenland','Grönland',83), ('GM','Gambia','Gambia',84), ('GN','Guinea','Guinea',85), ('GP','Guadeloupe','Guadeloupe',86), ('GQ','Equatorial Guinea','Äquatorialguinea',87), ('GR','Greece','Griechenland',88), ('GS','South Georgia and the South Sandwich Islands','Südgeorgien und die Südl. Sandwichinseln',89), ('GT','Guatemala','Guatemala',90), ('GU','Guam','Guam',91), ('GW','Guinea-Bissau','Guinea-Bissau',92), ('GY','Guyana','Guyana',93), ('HK','Hong Kong S.A.R., China','Hongkong',94), ('HM','Heard Island and McDonald Islands','Heard- und McDonald-Inseln',95), ('HN','Honduras','Honduras',96), ('HR','Croatia','Kroatien',97), ('HT','Haiti','Haiti',98), ('HU','Hungary','Ungarn',99), ('ID','Indonesia','Indonesien',100), ('IE','Ireland','Irland',101), ('IL','Israel','Israel',102), ('IM','Isle of Man','Insel Man',103), ('IN','India','Indien',104), ('IO','British Indian Ocean Territory','Britisches Territorium im Indischen Ozean',105), ('IQ','Iraq','Irak',106), ('IR','Iran','Iran',107), ('IS','Iceland','Island',108), ('IT','Italy','Italien',109), ('JE','Jersey','Jersey (Kanalinsel)',110), ('JM','Jamaica','Jamaika',111), ('JO','Jordan','Jordanien',112), ('JP','Japan','Japan',113), ('KE','Kenya','Kenia',114), ('KG','Kyrgyzstan','Kirgisistan',115), ('KH','Cambodia','Kambodscha',116), ('KI','Kiribati','Kiribati',117), ('KM','Comoros','Komoren',118), ('KN','Saint Kitts and Nevis','St. Kitts und Nevis',119), ('KP','North Korea','Nordkorea',120), ('KR','South Korea','Südkorea',121), ('KW','Kuwait','Kuwait',122), ('KY','Cayman Islands','Kaimaninseln',123), ('KZ','Kazakhstan','Kasachstan',124), ('LA','Laos','Laos',125), ('LB','Lebanon','Libanon',126), ('LC','Saint Lucia','St. Lucia',127), ('LI','Liechtenstein','Liechtenstein',128), ('LK','Sri Lanka','Sri Lanka',129), ('LR','Liberia','Liberia',130), ('LS','Lesotho','Lesotho',131), ('LT','Lithuania','Litauen',132), ('LU','Luxembourg','Luxemburg',133), ('LV','Latvia','Lettland',134), ('LY','Libya','Libyen',135), ('MA','Morocco','Marokko',136), ('MC','Monaco','Monaco',137), ('MD','Moldova','Moldawien',138), ('MG','Madagascar','Madagaskar',139), ('MH','Marshall Islands','Marshallinseln',140), ('MK','Macedonia','Mazedonien',141), ('ML','Mali','Mali',142), ('MM','Myanmar','Myanmar (Burma)',143), ('MN','Mongolia','Mongolei',144), ('MO','Macao S.A.R., China','Macao',145), ('MP','Northern Mariana Islands','Nördliche Marianen',146), ('MQ','Martinique','Martinique',147), ('MR','Mauritania','Mauretanien',148), ('MS','Montserrat','Montserrat',149), ('MT','Malta','Malta',150), ('MU','Mauritius','Mauritius',151), ('MV','Maldives','Malediven',152), ('MW','Malawi','Malawi',153), ('MX','Mexico','Mexiko',154), ('MY','Malaysia','Malaysia',155), ('MZ','Mozambique','Mosambik',156), ('NA','Namibia','Namibia',157), ('NC','New Caledonia','Neukaledonien',158), ('NE','Niger','Niger',159), ('NF','Norfolk Island','Norfolkinsel',160), ('NG','Nigeria','Nigeria',161), ('NI','Nicaragua','Nicaragua',162), ('NL','Netherlands','Niederlande',163), ('NO','Norway','Norwegen',164), ('NP','Nepal','Nepal',165), ('NR','Nauru','Nauru',166), ('NU','Niue','Niue',167), ('NZ','New Zealand','Neuseeland',168), ('OM','Oman','Oman',169), ('PA','Panama','Panama',170), ('PE','Peru','Peru',171), ('PF','French Polynesia','Französisch-Polynesien',172), ('PG','Papua New Guinea','Papua-Neuguinea',173), ('PH','Philippines','Philippinen',174), ('PK','Pakistan','Pakistan',175), ('PL','Poland','Polen',176), ('PM','Saint Pierre and Miquelon','St. Pierre und Miquelon',177), ('PN','Pitcairn','Pitcairninseln',178), ('PR','Puerto Rico','Puerto Rico',179), ('PS','Palestinian Territory','Palästinensische Autonomiegebiete',180), ('PT','Portugal','Portugal',181), ('PW','Palau','Palau',182), ('PY','Paraguay','Paraguay',183), ('QA','Qatar','Katar',184), ('RE','Reunion','Reunion',185), ('RO','Romania','Rumänien',186), ('RU','Russia','Russische Föderation',187), ('RW','Rwanda','Ruanda',188), ('SA','Saudi Arabia','Saudi-Arabien',189), ('SB','Solomon Islands','Salomonen',190), ('SC','Seychelles','Seychellen',191), ('SD','Sudan','Sudan',192), ('SE','Sweden','Schweden',193), ('SG','Singapore','Singapur',194), ('SH','<NAME>','St. Helena',195), ('SI','Slovenia','Slowenien',196), ('SJ','Svalbard and <NAME>','Svalbard und <NAME>',197), ('SK','Slovakia','Slowakei',198), ('SL','Sierra Leone','Sierra Leone',199), ('SM','San Marino','San Marino',200), ('SN','Senegal','Senegal',201), ('SO','Somalia','Somalia',202), ('SR','Suriname','Suriname',203), ('ST','Sao Tome and Principe','Sao Tome und PrÃincipe',204), ('SV','El Salvador','El Salvador',205), ('SY','Syria','Syrien',206), ('SZ','Swaziland','Swasiland',207), ('TC','Turks and Caicos Islands','Turks- und Caicosinseln',208), ('TD','Chad','Tschad',209), ('TF','French Southern Territories','Französische Süd- und Antarktisgebiete',210), ('TG','Togo','Togo',211), ('TH','Thailand','Thailand',212), ('TJ','Tajikistan','Tadschikistan',213), ('TK','Tokelau','Tokelau',214), ('TL','East Timor','Timor-Leste',215), ('TM','Turkmenistan','Turkmenistan',216), ('TN','Tunisia','Tunesien',217), ('TO','Tonga','Tonga',218), ('TR','Turkey','Türkei',219), ('TT','Trinidad and Tobago','Trinidad und Tobago',220), ('TV','Tuvalu','Tuvalu',221), ('TW','Taiwan','Taiwan',222), ('TZ','Tanzania','Tansania',223), ('UA','Ukraine','Ukraine',224), ('UG','Uganda','Uganda',225), ('UM','United States Minor Outlying Islands','Amerikanisch-Ozeanien',226), ('US','United States','Vereinigte Staaten von Amerika',227), ('UY','Uruguay','Uruguay',228), ('UZ','Uzbekistan','Usbekistan',229), ('VA','Vatican','Vatikanstadt',230), ('VC','Saint Vincent and the Grenadines','St. Vincent und die Grenadinen',231), ('VE','Venezuela','Venezuela',232), ('VG','British Virgin Islands','Britische Jungferninseln',233), ('VI','U.S. Virgin Islands','Amerikanische Jungferninseln',234), ('VN','Vietnam','Vietnam',235), ('VU','Vanuatu','Vanuatu',236), ('WF','Wallis and Futuna','Wallis und Futuna',237), ('WS','Samoa','Samoa',238), ('YE','Yemen','Jemen',239), ('YT','Mayotte','Mayotte',240), ('ZA','South Africa','Südafrika',241), ('ZM','Zambia','Sambia',242), ('ZW','Zimbabwe','Simbabwe',243); /*!40000 ALTER TABLE `countries` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle course_book # ------------------------------------------------------------ DROP TABLE IF EXISTS `course_book`; CREATE TABLE `course_book` ( `cb_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `topic` text, `description` text, `creation_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned DEFAULT NULL, `course_id` int(11) unsigned NOT NULL COMMENT 'id of curriculum_entrolment', `timestart` timestamp NULL DEFAULT NULL, `timeend` timestamp NULL DEFAULT NULL, PRIMARY KEY (`cb_id`), KEY `rel_cb_user` (`creator_id`), KEY `rel_cb_course` (`course_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle cronjobs # ------------------------------------------------------------ DROP TABLE IF EXISTS `cronjobs`; CREATE TABLE `cronjobs` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `cronjob` varchar(200) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) NOT NULL, `log` varchar(2048) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle curriculum # ------------------------------------------------------------ DROP TABLE IF EXISTS `curriculum`; CREATE TABLE `curriculum` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `curriculum` text, `grade_id` int(11) unsigned NOT NULL, `subject_id` int(11) unsigned NOT NULL, `schooltype_id` int(11) unsigned NOT NULL, `state_id` int(11) unsigned NOT NULL, `description` text, `country_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `icon_id` int(11) unsigned NOT NULL DEFAULT '0', `color` char(9) NOT NULL DEFAULT '#3c8dbc99', PRIMARY KEY (`id`), KEY `rel_cu_user` (`creator_id`), KEY `rel_cu_icon` (`icon_id`), KEY `rel_cu_country` (`country_id`), KEY `rel_cu_state` (`state_id`), KEY `rel_cu_schooltype` (`schooltype_id`), KEY `rel_cu_subject` (`subject_id`), KEY `rel_cu_grade` (`grade_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `curriculum` WRITE; /*!40000 ALTER TABLE `curriculum` DISABLE KEYS */; INSERT INTO `curriculum` (`id`, `curriculum`, `grade_id`, `subject_id`, `schooltype_id`, `state_id`, `description`, `country_id`, `creation_time`, `creator_id`, `icon_id`, `color`) VALUES (109,'Medienkompass Sek I',48,12,1,11,'Erwartungshorizont Klasse 8',56,'2016-01-14 20:13:29',532,124,'#3c8dbc99'); /*!40000 ALTER TABLE `curriculum` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle curriculum_enrolments # ------------------------------------------------------------ DROP TABLE IF EXISTS `curriculum_enrolments`; CREATE TABLE `curriculum_enrolments` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'used by course book', `status` int(11) NOT NULL DEFAULT '0', `curriculum_id` int(11) unsigned NOT NULL, `group_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `expel_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_ce_curriculum` (`curriculum_id`), KEY `rel_ce_group` (`group_id`), KEY `rel_ce_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `curriculum_enrolments` WRITE; /*!40000 ALTER TABLE `curriculum_enrolments` DISABLE KEYS */; INSERT INTO `curriculum_enrolments` (`id`, `status`, `curriculum_id`, `group_id`, `creation_time`, `expel_time`, `creator_id`) VALUES (1,1,109,1,'2016-12-15 22:15:45','0000-00-00 00:00:00',102); /*!40000 ALTER TABLE `curriculum_enrolments` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle enablingObjectives # ------------------------------------------------------------ DROP TABLE IF EXISTS `enablingObjectives`; CREATE TABLE `enablingObjectives` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `enabling_objective` text, `description` text, `curriculum_id` int(11) unsigned NOT NULL, `terminal_objective_id` int(11) unsigned NOT NULL DEFAULT '0', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `repeat_interval` int(11) unsigned NOT NULL DEFAULT '0', `order_id` tinyint(4) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `rel_eo_curriculum` (`curriculum_id`), KEY `rel_eo_terminal_objective` (`terminal_objective_id`), KEY `rel_eo_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `enablingObjectives` WRITE; /*!40000 ALTER TABLE `enablingObjectives` DISABLE KEYS */; INSERT INTO `enablingObjectives` (`id`, `enabling_objective`, `description`, `curriculum_id`, `terminal_objective_id`, `creation_time`, `creator_id`, `repeat_interval`, `order_id`) VALUES (1,'vorgegebene Lesetechniken und –strategien anwenden und Ergebnisse mit digitalen Werkzeugen strukturieren und sichern','<p>z.B. navigierendes Lesen, kursorisches Lesen; Tag Clouds, Votings, Likes auswerten und Ergebnisse festhalten, tempor&auml;re Lernnetzwerke gezielt nutzen und auswerten</p>',109,324,'2016-01-14 20:13:29',532,0,1), (2,'unter Anleitung Suchstrategien beim Umgang mit digitalen Quellen anwenden','<p>z.B. erweiterte Suchoptionen von Suchmaschinen nutzen, Aufgaben in Lernportalen (z.B Planet Schule, lernen online.rlp) bearbeiten</p>',109,324,'2016-01-14 20:13:29',532,0,2), (3,'digitale Wissensquellen kennen und begleitet mit ihnen umgehen','<p class=\"p1\"><span class=\"s1\">z.B. digitale, interaktiv und multi-<span class=\"Apple-converted-space\">&nbsp; </span>sowie cross-medial gestaltete Angebote; digitale Lernmaterialien (z.B. auf dem OMEGA-Server),<span class=\"Apple-converted-space\">&nbsp; </span>Internetdienste, Lernportale,&hellip;</span></p>',109,324,'2016-01-14 20:13:29',532,0,3), (4,'die Glaubwürdigkeit und Seriosität digitaler Quellen anhand vorgegebener Kriterien bewerten und relevant erscheinende neue Quellen nach diesen Kriterien erschließen','<p class=\"p1\"><span class=\"s1\">z.B. Votings, Likes, Kommentarfunktionen und Bewertungstools bei digitalen Quellen, Blogs und Foren kritisch bewerten; Impressumsangaben kritisch lesen</span></p>',109,324,'2016-01-14 20:13:29',532,0,4), (5,'Grundzüge des Urheberrechts benennen und beachten','<p class=\"p1\"><span class=\"s1\">Umgang mit (digitalen) Texten, T&ouml;nen, Bildern, Filmzitaten (z.B. Teaser, Trailer)</span></p>',109,325,'2016-01-14 20:13:29',532,0,1), (6,'Nach Vorgabe digitale Informationsquellen und Zitate korrekt kennzeichnen','',109,325,'2016-01-14 20:13:29',532,0,2), (7,'Folgen der Urheberrechtsverletzung korrekt einschätzen und danach handeln','<p class=\"p1\"><span class=\"s1\">klicksafe: Nicht alles, was geht, ist auch erlaubt; respect copyrights</span></p>',109,325,'2016-01-14 20:13:29',532,0,3), (8,'Auf der Grundlage eines Beurteilungsrasters spezifische Eigenschaften verschiedener, insbesondere digitaler Informationsquellen kennen und benennen','<p class=\"p1\"><span class=\"s1\">z.B. St&auml;rken, Grenzen, Tendenzen digitaler Informationsangebote einordnen </span></p>',109,326,'2016-01-14 20:13:29',532,0,1), (9,'Funktionen von digitalen Informationsquellen und medialen Texten anhand von Kriterien erkennen, benennen und angemessen beurteilen','<p class=\"p1\"><span class=\"s1\">z.B. Nachrichtenvergleich (z.B. Second Screen), Formen der Inszenierung bzgl. Sachinformation, Unterhaltung, Kommentar, Werbung&hellip;</span></p>',109,326,'2016-01-14 20:13:29',532,0,2), (10,'Sich unter vorgegebenen Leitfragen kritisch mit Wirkungen der Mediengestaltung und der Konstruktion von Wirklichkeit auseinandersetzen','<p class=\"p1\"><span class=\"s1\">z.B. Pr&auml;sentationsformen, Effekte, Zielrichtung, Adressaten wie z.B. beim Aufbau von Webseiten</span></p>',109,326,'2016-01-14 20:13:29',532,0,3), (11,'Angeleitet aus vorgegebenen digitalen Informationsquellen und in angemessener Zeit Informationen gewinnen, Aussagen wiedergeben, Fakten zielgerichtet auswählen','<p class=\"p1\"><span class=\"s1\">s. TK2 (Zitate korrekt kennzeichnen)</span></p>',109,327,'2016-01-14 20:13:29',532,0,1), (12,'Die getroffene Auswahl an Informationen mit Blick auf die Ziel- bzw. Aufgabenstellung begründen','',109,327,'2016-01-14 20:13:29',532,0,2), (13,'Informationen mit Hilfestellung neu anordnen und kategorisieren, mit eigenen Worten wiedergeben','',109,327,'2016-01-14 20:13:29',532,0,3), (14,'Bei der Aufbereitung anhand vorgegebener Kriterien Quellenangaben, Bild- und Persönlichkeitsrechte beachten','',109,327,'2016-01-14 20:13:29',532,0,4), (15,'Eine begründete Auswahl aus synchronen und asynchronen elektronischen Kommunikationswegen treffen, Vor- und Nachteile benennen','<p>z.B. E-Mail, Messenger, Chat, Foren, Wikis, Blogs&hellip;; konkrete Anwendung s. TK 3</p>',109,328,'2016-01-14 20:13:29',532,0,1), (16,'Elektronische Kommunikationswege zum Austausch von Informationen angeleitet nutzen','<p>z.B. auch&nbsp; innerhalb digitaler Lernumgebungen</p>',109,328,'2016-01-14 20:13:29',532,0,2), (17,'Anhand von Leifragen Ablauf und Ergebnisse der Kommunikation kritisch reflektieren und angemessen darstellen','',109,328,'2016-01-14 20:13:29',532,0,3), (18,'Vorgegebene Lernsoftware, Internetdienste, Portalangebote, Podcasts, Wikis, Learning-Apps, Knowledge-Blogs, RSS-Feeds etc. zum Wissenserwerb und zur Wissenserweiterung für sich und andere nutzen','<p>z.B. Mobile Learning, Gamebased Learning, gesicherte Clouds einbeziehen</p>',109,328,'2016-01-14 20:13:29',532,0,4), (19,'Einstellungen zu Berechtigungen oder zur Privatsphäre festlegen und ändern','<p>Informationen in sozialen Netzwerken anzeigen oder verbergen, Schreibzugriff, Einladungen oder Anfragen annehmen und ablehnen</p>',109,329,'2016-01-14 20:13:29',532,0,1), (20,'Bei unerwünschten Informationen und Datenmissbrauch situationsgerecht handeln','<p>z.B. Newsletter, Werbemails abbestellen</p>',109,329,'2016-01-14 20:13:29',532,0,2), (21,'die virtuelle Identität präsentieren und mitteilen (Identitätsmanagement)','',109,329,'2016-01-14 20:13:29',532,0,3), (22,'private Daten als schützenswert erkennen und behandeln','',109,329,'2016-01-14 20:13:29',532,0,4), (23,'beachten, dass private Daten zu unterschiedlichen Zwecken erhoben, verarbeitet, weitergegeben werden, welche Folgen sich daraus ergeben können und sich entsprechend verhalten','<p>Tracking, Scoring, Profilbildung</p>',109,329,'2016-01-14 20:13:29',532,0,5), (24,'erkennen, welche Folgen sich aus der Veröffentlichung privater Daten ergeben können','',109,329,'2016-01-14 20:13:29',532,0,6), (25,'Mit Hilfestellungen Inhalte gliedern, nach ihrer Relevanz ordnen und sie mit eigenen Worten beschreiben','<p>z.B. Audioscript, Storyboard</p>',109,330,'2016-01-14 20:13:29',532,0,1), (26,'Verschiedene Gestaltungsvarianten persönlicher Mitteilungen erschließen und Wirkungsabsichten berücksichtigen','<p>z.B. Instant Messaging; Postings in Sozialen Netzwerken;&nbsp; s. TK1;</p>\r\n<p>s. TK1, TK2 &bdquo;Produzieren und Pr&auml;sentieren&ldquo;</p>',109,330,'2016-01-14 20:13:29',532,0,2), (27,'Rechtliche Grundlage der freien Meinungsäußerung definieren und dem eigenen Handeln zugrunde legen','<p>z.B. n&auml;here Betrachtung Art. 5 GG</p>',109,330,'2016-01-14 20:13:29',532,0,3), (28,'Einen respektvollen Umgang bei der digitalen Kommunikation miteinander pflegen (Medienethik)','<p>z.B. Netiquette, Chatiquette, ad&auml;quate Darstellungsformen beurteilen bzw. selbst w&auml;hlen; in angemessener Zeit reagieren</p>',109,331,'2016-01-14 20:13:29',532,0,1), (29,'Adressatengerechte Botschaften verfassen','<p>z.B. Mail-Adresse in passender Form, unangemessene K&uuml;rzel, Symbole; korrekte Rechtschreibung</p>',109,331,'2016-01-14 20:13:29',532,0,2), (30,'Kommunikationsanlässe und Verfasserabsichten erkennen und angemessen reagieren','',109,331,'2016-01-14 20:13:29',532,0,3), (31,'Planvoll an ein überschaubares, begleitetes Produktionsvorhaben herangehen und gegebenenfalls eine digitale Veröffentlichung planen','<p>vorgegebene Arbeitsabl&auml;ufe und Umsetzungsschritte ber&uuml;cksichtigen und festhalten (siehe auch TK4), Rollenverteilung definieren,&nbsp; Inhalte und Dramaturgie skizzieren und festhalten (s.a. TK3 &bdquo;Kommunizieren und Kooperieren&ldquo;),&nbsp;</p>',109,332,'2016-01-14 20:13:29',532,0,1), (32,'Möglichkeiten und Grenzen der geplanten Produktion realistisch einschätzen und das eigene Vorgehen begründen','<p>z.B. Ressourcen pr&uuml;fen (Zeit, Personal, Technik)</p>',109,332,'2016-01-14 20:13:29',532,0,2), (33,'Die Planungsschritte einer überschaubaren Medienproduktion und -präsentation im vorgegebenen Rahmen festlegen und einhalten','<p>z.B. f&uuml;r ein digitales Portfolio</p>',109,333,'2016-01-14 20:13:29',532,0,1), (34,'Vorgegebene formale, ästhetische und informationstechnische Kriterien anwenden','',109,333,'2016-01-14 20:13:29',532,0,2), (35,'Einfache Medienelemente erstellen, bearbeiten und einbinden','<p>z.B. Bildbearbeitung, einfache, m&ouml;glichst lizenzfreie Audio- und Videobearbeitung;</p>\r\n<p>s. TK 4 &bdquo;Bedienen und Anwenden&ldquo;)</p>',109,333,'2016-01-14 20:13:29',532,0,3), (36,'Verschiedene Gestaltungsvarianten erschließen und ausprobieren, die Wirkungsabsichten der Auswahl begründen','',109,333,'2016-01-14 20:13:30',532,0,4), (37,'Inhalte ergänzend kommentieren, erläutern, veranschaulichen','<p>nicht 1:1 vorlesen; z.B. Projektion/Standbild/Still mit &bdquo;Live&ldquo;-Kommentierung, dynamischer Ablauf und interaktive Bild-Text-Pr&auml;sentation, z.B. mithilfe eines Interaktiven Whiteboards</p>',109,334,'2016-01-14 20:13:30',532,0,1), (38,'Zielgruppengerecht präsentieren und selbstständig Feedback geben, wahrnehmen und einholen','<p>z.B. Reaktionen aufnehmen, sachliche R&uuml;ckmeldung geben</p>',109,334,'2016-01-14 20:13:30',532,0,2), (39,'Rhetorische, mimische und gestische Gestaltungsmöglichkeiten einsetzen','',109,334,'2016-01-14 20:13:30',532,0,3), (40,'Die zum Produkt passende Veröffentlichungsform unter Anleitung auswählen und gemäß der Publikationsbestimmungen handeln','<p>z.B. neben externen Publikationswegen auch schuleigene M&ouml;glichkeiten, wie etwa eine Lernplattform oder die Homepage, nutzen (z.B. Audio -&gt; Podcasting, Film-/Videobeitrag &rarr; Online-Plattformen, &hellip;)</p>',109,335,'2016-01-14 20:13:30',532,0,1), (41,'Zwischen kostenpflichtigen und freien Lizenzierungsmodellen anhand vorgegebener Informationsquellen und Unterlagen unterscheiden können, sie passend auswählen und Bedingungen bzgl. Freigabe, Weitergabe und Reichweite beachten','<p>z.B. Open Content, CC-Lizenzen</p>',109,335,'2016-01-14 20:13:30',532,0,2), (42,'Einfluss und Bedeutung digitaler Medien und ihrer spezifischen Darstellungsformen im Alltag beschreiben','<p>insbesondere Massenmedien und cross-medial gestaltete Angebote</p>',109,336,'2016-01-14 20:13:30',532,0,1), (43,'Die eigene Medienbiografie reflektieren und beschreiben sowie Motive der Mediennutzung (auch der eigenen) benennen und reflektieren','',109,336,'2016-01-14 20:13:30',532,0,2), (44,'Stilmittel der Bild- und Filmsprache erkennen','<p>z.B. Einstellungsgr&ouml;&szlig;en, Kameraperspektiven, Tonebene &hellip;</p>',109,336,'2016-01-14 20:13:30',532,0,3), (45,'Veränderungen der Medienwelt analysieren und in Beziehung zu Schule, Berufs- und Lebenswelt setzen','<p>z.B. Wechselwirkungen von technischer und gesellschaftlicher Entwicklung</p>',109,336,'2016-01-14 20:13:30',532,0,4), (46,'Nach vorgegebenen Kriterien Manipulationsmechanismen beschreiben, kritisch bewerten und einschätzen','<p>z.B. Intentionen von Medienanbietern und &bdquo;Medienmachern&ldquo; bestimmter Medienformate, Web-Services, medialer Dienstleitungen</p>',109,337,'2016-01-14 20:13:30',532,0,1), (47,'Vor- und Leitbilder der Medien beschreiben, Stereotype erkennen, untersuchen und bewerten','<p>z.B. in Casting-Shows; Idole und Trivialmythen</p>',109,337,'2016-01-14 20:13:30',532,0,2), (48,'Inszenierungsformen erkennen und benennen','<p>Wie wird mir was pr&auml;sentiert? Z.B. Bildausschnitt, Perspektive</p>',109,337,'2016-01-14 20:13:30',532,0,3), (49,'Den eigenen Wechsel zwischen virtueller und realer Welt erkennen und den Einfluss die eigene Person reflektieren und beschreiben','<p>z.B. auchSelbstinszenierung und deren Risiken</p>',109,338,'2016-01-14 20:13:30',532,0,1), (50,'Chancen und Risiken der rezeptiven und produktiven Mediennutzung einschätzen, beschreiben und bewerten','<p>z.B. hoher Verbreitungsgrad, versteckte Kosten, backtracking/zielgruppen- und nutzerorientierte Werbung, &bdquo;Datenkraken&ldquo;, In-App-K&auml;ufe</p>',109,338,'2016-01-14 20:13:30',532,0,2), (51,'Kritisch zu problematischen Inhalten und Darstellungen Stellung nehmen','<p>z.B. Extremismus, Pornographie, Gewalt (p&auml;dagogisch begleitet)</p>',109,338,'2016-01-14 20:13:30',532,0,3), (52,'Die wichtigsten Anlaufstellen und Beratungsangebote kennen und im Bedarfsfall nutzen ','',109,338,'2016-01-14 20:13:30',532,0,4), (53,'Informationen zu Technisierung, Kommerzialisierung und Virtualisierung des Alltags beschreiben und bewerten','<p>z.B. Schule/Beruf, Lebenswelt</p>',109,339,'2016-01-14 20:13:30',532,0,1), (54,'Veränderungen von Berufsbildern kennen und kritisch einschätzen','<p>z.B. Mechanisierung und Beschleunigung von Arbeitsabl&auml;ufen, IT-Anwendungen im Einzelhandel, Abbau von Arbeitspl&auml;tzen; Bezug zur Berufsorientierung</p>',109,339,'2016-01-14 20:13:30',532,0,2), (55,'Nach entsprechender Einführung Berufsbilder im Medienbereich kennen und beschreiben','<p>z.B. Arbeit von Online-Redaktionen, Medienberufe in Presse, Film und Fernsehen/H&ouml;rfunk; Bezug zur Berufsorientierung</p>',109,339,'2016-01-14 20:13:30',532,0,3), (56,'Die Möglichkeiten der demokratischen Teilhabe durch Medien einschätzen, deren Unüberschaubarkeit und Manipulationsmechanismen mit Blick auf die eigenen altersspezifischen Mediengewohnheiten angemessen einschätzen','',109,339,'2016-01-14 20:13:30',532,0,4), (57,'Kinoproduktionen und Filme als Teil kulturellen und gesellschaftlichen Lebens beschreiben und beurteilen','<p>z. B. transportierte Normen- und Wertesysteme, Distributionswege und Verwertungsformen, &nbsp;</p>',109,339,'2016-01-14 20:13:30',532,0,5), (58,'Mit Hilfestellung Systembestandteile und deren Funktionsweisen (Festplatte, Arbeitsspeicher, Prozessor, Laufwerke ...) kennen und benennen','',109,340,'2016-01-14 20:13:30',532,0,1), (59,'ein vorkonfiguriertes Betriebssystem verwenden (Standard und erweiterte Funktionen, z.B. sich im vorgegebenen Menü bewegen, Symbolleisten und Verzeichnisstrukturen kennen und der Arbeit zugrunde legen….)','',109,340,'2016-01-14 20:13:30',532,0,2), (60,'Browsereinstellungen kennen und nach Anleitung anpassen (Cookies, Cache, Favoriten, Verlauf, Pop Ups…)','',109,340,'2016-01-14 20:13:30',532,0,3), (61,'nach Vorgaben Installationen, Erweiterungen und Anpassungen vornehmen (z.B. Software installieren, Funktionalitäten nutzerorientiert einschränken, Dateiverwaltung anlegen und verwenden…)','',109,340,'2016-01-14 20:13:30',532,0,4), (62,'Daten in vorgegebenen Ordnerstrukturen verwalten','',109,340,'2016-01-14 20:13:30',532,0,5), (63,'sich in einem vorgegebenen Rahmen mit den Eigenschaften, Möglichkeiten und Grenzen mobiler und virtueller Datenspeicherung vertraut machen, diese anwenden und z.B. Daten übertragen und sichern','',109,340,'2016-01-14 20:13:30',532,0,6), (64,'unter Anleitung stationäre und mobile Endgeräte in ein Netzwerk einbinden (LAN und W-LAN) und Sicherheitsregeln beachten','',109,340,'2016-01-14 20:13:30',532,0,7), (65,'einfache Hardwareprobleme (Anschluss und Verkabelung, Papierstau etc.) erkennen und beheben','',109,340,'2016-01-14 20:13:30',532,0,8), (66,'Hilfsfunktionen und Vorlagen verwenden und gestalten (z.B Tastenkombinationen, Assistenten, Layoutvorlagen…)','',109,341,'2016-01-14 20:13:30',532,0,1), (67,'Formale Einstellungen vornehmen (Rahmen, Absätze, Seitenränder, Umbrüche, Einzüge und Spalten, Gliederung, Nummerierung …)','',109,341,'2016-01-14 20:13:30',532,0,2), (68,'Tabellen in Dokumente einfügen','',109,341,'2016-01-14 20:13:30',532,0,3), (69,'Serienbriefe aus (selbst erstellten) Datenquellen erzeugen (9/10)','',109,341,'2016-01-14 20:13:30',532,0,4), (70,'normierte Schreiben (DIN 5008) erstellen','',109,341,'2016-01-14 20:13:30',532,0,5), (71,'benutzerdefinierte Animationen in eine Präsentation einbinden ','',109,341,'2016-01-14 20:13:30',532,0,6), (72,'selbst erstellte Objekte in Präsentationen einbinden','',109,341,'2016-01-14 20:13:30',532,0,7), (73,'Formatierung eines Tabellenblatts vornehmen und den Druckbereich einstellen','',109,342,'2016-01-14 20:13:30',532,0,1), (74,'Einbindung von (selbst erstellten) Objekten vornehmen ','',109,342,'2016-01-14 20:13:30',532,0,2), (75,'den relativen und absoluten Zellbezug herstellen ','',109,342,'2016-01-14 20:13:30',532,0,3), (76,'mathematische Grundfunktionen beherrschen (und diese anwenden)','',109,342,'2016-01-14 20:13:30',532,0,4), (77,'Basisfunktionen (erweiterte Funktionen) digitaler Aufzeichnungs- und Wiedergabegeräte beherrschen (z.B. Tablets, Foto- und Videokamera, Voice-Recorder, Handys und Smartphones als multimediale Werkzeuge im definierten unterrichtlichen Kontext kompetent einsetzen...)','',109,342,'2016-01-14 20:13:30',532,0,5), (78,'mit (freier) Text-, Bild-, Ton-, Videobearbeitungssoftware arbeiten und einfache Präsentationen, Mindmaps und andere mediale Produkte erstellen','',109,342,'2016-01-14 20:13:30',532,0,6), (3870,'<p>Buchstaben schreiben</p>\n','',203,1504,'2016-11-16 13:37:01',532,0,1), (3871,'<p>Buchstaben lesen</p>\n','',203,1504,'2016-11-16 13:37:06',532,0,2), (3872,'<p>Buchstaben aussprechen</p>\n','',203,1504,'2016-11-16 13:37:13',532,0,3), (3873,'<p>Alphabet kennen</p>\n','',203,1504,'2016-11-16 13:37:19',532,0,4), (3874,'<p>Individuelle Handschrift</p>\n','',203,1504,'2016-11-16 13:37:28',532,0,5), (3875,'<p>Regeln des ordentlichen, sauberen und gegliederten Schreibens anwenden</p>\n','',203,1504,'2016-11-16 13:37:39',532,0,6), (3883,'<p>Ich kann vertraute Wörter und ganz einfache Sätze verstehen.</p>\n','',203,1505,'2016-11-16 13:40:13',532,0,1), (3884,'<p>Ich kann alltägliche Äußerungen, die sich auf einfache und konkrete alltägliche Bedürfnisse beziehen, verstehen, wenn langsam, deutlich und mit Wiederholungen gesprochen wird.</p>\n','',203,1505,'2016-11-16 13:40:22',532,0,2), (3886,'<p>Ich kann einem Gespräch folgen, wenn sehr langsam und deutlich gesprochen wird und wenn lange Pausen es mir ermöglichen, das Gesagte zu verstehen.</p>\n','',203,1505,'2016-11-16 13:40:29',532,0,3), (3888,'<p>Ich kann Fragen und Anweisungen verstehen und kurzen, einfachen Weisungen folgen.</p>\n','',203,1505,'2016-11-16 13:40:40',532,0,4), (3889,'<p>Ich kann Zahlen, Preise und Zeitangaben verstehen.</p>\n','',203,1505,'2016-11-16 13:40:47',532,0,5), (3891,'<p>Ich kann Gefühle und Reaktionen beschreiben.</p>\n','',203,1506,'2016-11-16 13:41:17',532,0,1), (3893,'<p>Ich verstehe das Wesentliche von kurzen, klaren und einfachen Mitteilungen und Durchsagen.</p>\n','',203,1506,'2016-11-16 13:41:26',532,0,2), (3897,'<p>Ich kann unkomplizierte Sachinformationen über Themen aus dem persönlichen und gesellschaftlichen Bereich sowie dem Bildungsbereich und Einzelinformationen verstehen, wenn deutlich und in Standardsprache gesprochen wird.</p>\n','',203,1507,'2016-11-16 13:42:00',532,0,1), (3898,'<p>Ich kann längeren Redebeiträgen in Diskussionen in den Hauptpunkten folgen.</p>\n','',203,1507,'2016-11-16 13:42:07',532,0,2), (3900,'<p>Ich kann den Informationsgehalt kurzer Vorträge sowie medialer Sendungen vom persönlichem Interesse verstehen und wiedergeben.</p>\n','',203,1507,'2016-11-16 13:42:17',532,0,3), (3901,'<p>Ich kann über Erfahrungen und Erlebnisse berichten.</p>\n','',203,1507,'2016-11-16 13:42:25',532,0,4), (3902,'<p>Ich kann einzelne Sätze und die gebräuchlichsten Wö rter verstehen, wenn es um für ihn/sie wichtige Dinge geht (z.B. sehr einfache Inform ationen zur Person und zur Familie, Einkaufen, Arbeit, nähere Umgebung).</p>\n','',203,1507,'2016-11-16 13:42:35',532,0,5), (3903,'<p>Ich kann im direkten Kontakt und in den Medien Gespräche, längere Redebeiträge und Vorträge, denen er im privaten, offiziellen, beruflichen Bereich sowie in der Ausbildung begegnet, verstehen, wenn Standardsprache gesprochen wird.</p>\n','',203,1508,'2016-11-16 13:43:18',532,0,1), (3904,'<p>Ich kann auch komplexer Argumentation folgen, wenn das Thema vertraut ist.</p>\n','',203,1508,'2016-11-16 13:43:28',532,0,2), (3905,'<p>Ich kann mich auf einfache Art verständigen.</p>\n','',203,1509,'2016-11-16 13:46:40',532,0,1), (3906,'<p>Ich kann einfache Fragen stellen und beantworten.</p>\n','',203,1509,'2016-11-16 13:46:46',532,0,2), (3907,'<p>Ich kann einfache Wendungen und Sätze gebrauchen, um Leute, die ich kenne, zu beschreiben und um zu beschreiben, wo ich wohne.</p>\n','',203,1509,'2016-11-16 13:46:56',532,0,3), (3908,'<p>Ich kann Fragen zur Person stellen und auf entsprechende Fragen Antwort geben. Kann sich auf einfache Art verständigen, doch ist die Kommunikation völlig davon abhängig, dass etwas langsamer wiederholt, umformuliert oder korrigiert wird.</p>\n','',203,1509,'2016-11-16 13:47:07',532,0,4), (3909,'<p>Ich kann ganz kurze, isolierte, weitgehend vorgefertigte Äußerungen benutzen; braucht viele Pausen, um nach Ausdrücken zu suchen, weniger vertraute Wörter zu artikulieren oder um Verständigungsprobleme zu beheben.</p>\n','',203,1509,'2016-11-16 13:47:21',532,0,5), (3910,'<p>Ich habe ein sehr begrenztes Repertoire an Wörtern und Wendungen, die sich auf Informationen zur Person und einzelne konkrete Situationen beziehen.</p>\n','',203,1509,'2016-11-16 13:47:32',532,0,6), (3911,'<p>Ich kann mich in einfachen, routinemäßigen Situationen verständigen, in denen es um einen einfachen und direkten Austausch von Informat ionen über vertraute und geläufige Dinge geht.</p>\n','',203,1511,'2016-11-16 13:48:01',532,0,1), (3912,'<p>Ich kann mit einfachen Mitteln die eigene Herkunft und Ausbildung, die direkte Umgebung und Dinge im Zusammenhang mit unmittelbaren Bedürfnissen beschreiben.</p>\n','',203,1511,'2016-11-16 13:48:13',532,0,2), (3913,'<p>Ich kann ein sehr kurzes Kontaktgespräch führen, versteht aber normalerweise nicht genug, um selbst das Gespräch in Gang zu halten.</p>\n','',203,1511,'2016-11-16 13:48:21',532,0,3), (3914,'<p>Ich kann mit einer Reihe von Sätzen und mit einfachen Mitteln z.B. seine/ihre Familie, andere Leute, seine/ihre Wohnsituation, seine/ihre Ausbildung und seine/ihre gegenwärtige oder letzt berufliche Tätigkeit beschreiben.</p>\n','',203,1511,'2016-11-16 13:49:00',532,0,4), (3919,'<p>Ich kann relativ flüssig und ohne Vorbereitung ein Gespräch mit Muttersprachlern zu vertrauten Themen beginnen, in Gang halten und beenden.</p>\n','',203,1512,'2016-11-16 13:50:18',532,0,1), (3920,'<p>Ich kann an formellen Diskussionen zu Themen des alltäglichen, beruflichen und öffentlichen Lebensbereiches sowie aus dem eigenen Interessen- und Fachgebiet teilnehmen, Sachinformationen austauschen und Lösungen für praktische Probleme diskutieren.</p>\n','',203,1512,'2016-11-16 13:50:27',532,0,2), (3921,'<p>Über eigene Erfahrungen kann ich detailliert berichten und Gefühle und Reaktionen beschreiben.</p>\n','',203,1512,'2016-11-16 13:50:37',532,0,3), (3922,'<p>Meine Aussprache ist gut verständlich.</p>\n','',203,1512,'2016-11-16 13:50:44',532,0,4), (3923,'<p>Ich kann mich spontan und fließend verständigen, so dass ein normales Gespräch mit Muttersprachlern ohne größere Anstrengung gut möglich ist.</p>\n','',203,1513,'2016-11-16 13:51:11',532,0,1), (3924,'<p>Ich kann mich zu einem breiten Themenspektrum klar und deutlich ausdrücken, Standpunkte erläutern und begründen, Vor- und Nachteile angeben und sich an Diskussionen und längeren Gesprächen über die meisten Themen von allgemeinem Interesse aktiv beteiligen und über Themen des eigenen Fachgebietes sprechen.</p>\n','',203,1513,'2016-11-16 13:51:28',532,0,2), (3925,'<p>Ich kann meine Gesprächspartner verstehen, wenn Standardsprache gesprochen wird.</p>\n','',203,1513,'2016-11-16 13:51:37',532,0,3), (3926,'<p>Ich verfüge über eine klare, natürliche Aussprache.</p>\n','',203,1513,'2016-11-16 13:51:59',532,0,4), (3927,'<p>Ich kann Sätze und häufig gebrauchte Ausdrücke verstehen, die mit Bereichen von ganz unmittelbarer Bedeutung zusammenhängen (z.B. Informationen zur Person und zur Familie, Einkaufen, Arbeit, nähere Umgebung).</p>\n','',203,1513,'2016-11-16 13:52:12',532,0,5), (3928,'<p>Ich kann kurze einfach Texte schreiben/ etwas auf Formularen eintragen.</p>\n','',203,1514,'2016-11-16 13:52:49',532,0,1), (3929,'<p>Ich kann einfache Mitteilungen an Freunde schreiben.</p>\n','',203,1514,'2016-11-16 13:52:55',532,0,2), (3930,'<p>Ich kann beschreiben, wo ich wohne.</p>\n','',203,1514,'2016-11-16 13:53:03',532,0,3), (3931,'<p>Ich kann auf Formularen meine persönlichen Daten eintragen.</p>\n','',203,1514,'2016-11-16 13:53:12',532,0,4), (3932,'<p>Ich kann einzelne, einfache Ausdrücke und Sätze schreiben.</p>\n','',203,1514,'2016-11-16 13:53:19',532,0,5), (3933,'<p>Ich kann eine kurze, einfache Postkarte schreiben.</p>\n','',203,1514,'2016-11-16 13:53:26',532,0,6), (3934,'<p>Ich kann mit Hilfe eines Wörterbuches kurze Briefe und Mitteilungen schreiben.</p>\n','',203,1514,'2016-11-16 13:53:33',532,0,7), (3935,'<p>Ich kann kurze, einfache Notizen und Mitteilungen schreiben.</p>\n','',203,1516,'2016-11-16 13:53:59',532,0,1), (3936,'<p>Ich kann einen ganz einfachen persönlichen Brief schreiben, z.B. um sich für etwas zu bedanken.</p>\n','',203,1516,'2016-11-16 13:54:05',532,0,2), (3937,'<p>Ich kann unkomplizierte, zusammenhängende Texte zu Themen von allgemeinem Interesse und zu Themen aus seinen Interessengebieten schreiben.</p>\n','',203,1517,'2016-11-16 13:54:35',532,0,1), (3938,'<p>Ich kann Textteile linear verbinden.</p>\n','',203,1517,'2016-11-16 13:54:42',532,0,2), (3939,'<p>Ich kann Sachinformationen darstellen.</p>\n','',203,1517,'2016-11-16 13:54:48',532,0,3), (3940,'<p>Ich kann und Vor- und Nachteile darlegen und Stellung dazu beziehen.</p>\n','',203,1517,'2016-11-16 13:54:57',532,0,4), (3941,'<p>Ich kann über eine Vielzahl von Themen aus seinen Interessengebieten klare und detaillierte Texte schreiben.</p>\n','',203,1518,'2016-11-16 13:55:23',532,0,1), (3942,'<p>Ich kann in einem Aufsatz oder Bericht Informationen zu einem wissenschaftsorientierten Kontext zusammenhängend und strukturiert wiedergeben, Argumente darlegen, etwas systematisch erörtern und Problemlösungen gegeneinander abwägen.</p>\n','',203,1518,'2016-11-16 13:55:31',532,0,2), (3943,'<p>Ich kann Informationen und Argumente aus verschiedenen Quellen zusammenführen und dazu Stellung nehmen.</p>\n','',203,1518,'2016-11-16 13:55:42',532,0,3), (3944,'<p>Ich kann Wörter oder Wortgruppen durch einfache Konnektoren wie \"und\" oder \"dann\" verbinden.</p>\n','',203,1519,'2016-11-16 13:56:16',532,0,1), (3945,'<p>Ich zeige nur eine begrenzte Beherrschung von einigen wenigen einfachen grammatischen Strukturen und Satzmustern in einem auswendig gelernten Repertoire.</p>\n','',203,1519,'2016-11-16 13:56:25',532,0,2), (3946,'<p>Ich Ich kann ein sehr kurzes Kontaktgespräch führen, verstehe aber normalerweise nicht genug, um selbst das Gespräch in Gang zu halten.</p>\n','',203,1520,'2016-11-16 13:56:49',532,0,1), (3947,'<p>Ich verfüge über eine gute Beherrschung der grammatischen Strukturen und des Grundwortschatzes im mündlichen und schriftlichen Sprachgebrauch.</p>\n','',203,1521,'2016-11-16 13:57:14',532,0,1), (3948,'<p>Ich erkenne und verwende grammatische Regeln und kann nach grammatischen Prinzipien Ausdrücke und Sätze ausreichend korrekt produzieren.</p>\n','',203,1521,'2016-11-16 13:57:24',532,0,2), (3949,'<p>Ich erkenne und verwende grammatische Regeln und kann nach grammatischen Prinzipien Ausdrücke und Sätze korrekt produzieren.</p>\n','',203,1522,'2016-11-16 13:57:49',532,0,1), (3950,'<p>Ich beherrsche die Grammatik im mündlichen und schriftlichen Sprachgebrauch.</p>\n','',203,1522,'2016-11-16 13:58:02',532,0,2), (3951,'<p>Ich kann die Grundaussage eines einfachen Informationstextes und kurzer einfacher Beschreibungen verstehen, insbesondere wenn diese Bilder enthalten, die den Text erklären.</p>\n','',203,1523,'2016-11-16 13:58:35',532,0,1), (3952,'<p>Ich kann sehr kurze, einfache Texte mit bekannten Namen, Wörtern und grundlegenden Redewendungen verstehen, wenn ich zum Beispiel Teile des Textes noch einmal lese.</p>\n','',203,1523,'2016-11-16 13:58:44',532,0,2), (3953,'<p>Ich kann kurzen, einfach geschriebenen Anleitungen folgen, insbesondere wenn sie Bilder enthalten.</p>\n','',203,1523,'2016-11-16 13:58:51',532,0,3), (3954,'<p>Ich kann bekannte Namen, Wörter und sehr einfache Redewendungen in einfachen Mitteilungen in den häufigsten Alltagssituationen erkennen.</p>\n','',203,1523,'2016-11-16 13:59:04',532,0,4), (3955,'<p>Ich kann kurze, einfache Mitteilungen, z. B. auf Postkarten, verstehen.</p>\n','',203,1523,'2016-11-16 13:59:12',532,0,5), (3956,'<p>Ich kann einzelne vertraute Namen, Wörter und ganz einfache Sätze verstehen, z. B. auf Schildern, Plakaten oder in Katalogen.</p>\n','',203,1523,'2016-11-16 13:59:24',532,0,6), (3957,'<p>Ich kann ganz kurze, einfache Texte lesen.</p>\n','',203,1524,'2016-11-16 13:59:47',532,0,1), (3958,'<p>Ich kann in einfachen Alltagstexten (z.B. Anzeigen, Prospekt en, Speisekarten oder Fahrplänen) konkrete, vorhersehbare Informationen auffinden und k ann kurze, einfache persönliche Briefe verstehen.</p>\n','',203,1524,'2016-11-16 14:00:00',532,0,2), (3959,'<p>Ich kann unkomplizierte Sachtexte zu konkreten und abstrakten Themen in den Hauptpunkten und in Einzelinformationen verstehen sowie die Textstruktur und die Textgliederung erkennen.</p>\n','',203,1525,'2016-11-16 14:00:27',532,0,1), (3960,'<p>Ich kann aus längeren, klar strukturierten Texten zu Themen des alltäglichen, beruflichen und gesellschaftlichen Lebensbereiches sowie aus dem eigenen Interessen- und Fachgebiet schnell wichtige Einzelinformationen zusammentragen, bestimmte Aufgaben dazu lösen, Kernaussagen zuordnen und treffende Überschriften formulieren.</p>\n','',203,1525,'2016-11-16 14:00:37',532,0,2), (3961,'<p>Ich kann Hauptinhalte komplexer Texte zu konkreten und abstrakten Themen verstehen, Fragen dazu beantworten und die Textstruktur und die Textgliederung erkennen.</p>\n','',203,1526,'2016-11-16 14:01:04',532,0,1), (3962,'<p>Ich kann aus längeren und komplexen Texten schnell wichtige Einzelinformationen finden und den Inhalt erfassen.</p>\n','',203,1526,'2016-11-16 14:01:11',532,0,2), (3963,'<p>Teilnahme am Regelunterricht in der Klasse</p>\n','',203,1527,'2016-11-16 14:01:35',532,0,1), (3964,'<p>Teilnahme an AGs</p>\n','',203,1527,'2016-11-16 14:01:40',532,0,2), (3976,'<p>K1: Mathematische Argumentationen entwickeln </p>\n','',202,1528,'2016-11-16 14:18:40',532,0,1), (3977,'<p>K3: Den Bereich oder die Situation, die modelliert werden soll, in mathematische Begriffe, Strukturen und Relationen übersetzen </p>\n','',202,1528,'2016-11-16 14:19:11',532,0,2), (3978,'<p>K3: Ergebnisse in dem entsprechenden Bereich oder der entsprechenden Situation interpretieren und prüfen </p>\n','',202,1528,'2016-11-16 14:19:32',532,0,3), (3979,'<p>K6: Die Fachsprache adressatengerecht verwenden </p>\n','',202,1528,'2016-11-16 14:19:50',532,0,4), (3980,'<p>K1: Mathematische Argumentationen entwickeln </p>\n','',202,1528,'2016-11-16 14:20:07',532,0,5), (3981,'<p>K6: Überlegungen, Lösungswege und Ergebnisse dokumentieren, verständlich darstellen und präsentieren, auch unter Nutzung geeigneter Medien </p>\n','',202,1528,'2016-11-16 14:20:36',532,0,6), (3982,'<p>K4: Beziehungen zwischen Darstellungsformen erkennen und zwischen ihnen wechseln </p>\n','',202,1529,'2016-11-16 14:24:52',532,0,1), (3983,'<p>K5: Mathematische Werkzeuge sinnvoll und verständig einsetzen </p>\n','',202,1529,'2016-11-16 14:25:05',532,0,2), (4106,'<p style=\"text-align:center;\">Männlich</p>\n\n<p style=\"text-align:center;\">ذكر</p>\n\n<p style=\"text-align:center;\">male</p>\n','',205,1573,'2016-11-16 20:50:24',532,0,1), (4107,'<p style=\"text-align:center;\">Weiblich</p>\n\n<p style=\"text-align:center;\">أنثى</p>\n\n<p style=\"text-align:center;\">female</p>\n','',205,1573,'2016-11-16 20:50:45',532,0,2), (4108,'<p style=\"text-align:center;\">1998</p>\n','',205,1574,'2016-11-16 20:51:36',532,0,1), (4109,'<p style=\"text-align:center;\">1999</p>\n','',205,1574,'2016-11-16 20:51:47',532,0,2), (4110,'<p style=\"text-align:center;\">2000</p>\n','',205,1574,'2016-11-16 20:51:59',532,0,3), (4111,'<p style=\"text-align:center;\">2001</p>\n','',205,1574,'2016-11-16 20:52:12',532,0,4), (4112,'<p style=\"text-align:center;\">2002</p>\n','',205,1574,'2016-11-16 20:52:22',532,0,5), (4113,'<p style=\"text-align:center;\">2003</p>\n','',205,1574,'2016-11-16 20:52:30',532,0,6), (4114,'<p style=\"text-align:center;\">2004</p>\n','',205,1574,'2016-11-16 20:52:40',532,0,7), (4115,'<p style=\"text-align:center;\">2005</p>\n','',205,1574,'2016-11-16 20:52:49',532,0,8), (4116,'<p style=\"text-align:center;\">2016</p>\n','',205,1575,'2016-11-16 20:53:37',532,0,1), (4117,'<p style=\"text-align:center;\">2015</p>\n','',205,1575,'2016-11-16 20:53:48',532,0,2), (4118,'<p style=\"text-align:center;\">2014</p>\n','',205,1575,'2016-11-16 20:53:57',532,0,3), (4119,'<p style=\"text-align:center;\">2013</p>\n','',205,1575,'2016-11-16 20:54:06',532,0,4), (4120,'<p>Syrien</p>\n','',205,1576,'2016-11-16 21:04:47',532,0,1), (4121,'<p>Irak (Nordirak)</p>\n','',205,1576,'2016-11-16 21:04:56',532,0,2), (4122,'<p>Irak</p>\n','',205,1576,'2016-11-16 21:05:02',532,0,3), (4123,'<p>Afghanistan</p>\n','',205,1576,'2016-11-16 21:05:10',532,0,4), (4124,'<p>Eritrea</p>\n','',205,1576,'2016-11-16 21:05:18',532,0,5), (4125,'<p>Armenien</p>\n','',205,1576,'2016-11-16 21:05:26',532,0,6), (4126,'<p>Pakistan</p>\n','',205,1576,'2016-11-16 21:05:33',532,0,7), (4127,'<p>Türkei</p>\n','',205,1576,'2016-11-16 21:05:56',532,0,8), (4128,'<p>Iran</p>\n','',205,1576,'2016-11-16 21:06:03',532,0,9), (4129,'<p>Tschetschenien</p>\n','',205,1576,'2016-11-16 21:06:09',532,0,10), (4130,'<p>Bulgarien</p>\n','',205,1576,'2016-11-16 21:06:15',532,0,11), (4131,'<p>Kosovo</p>\n','',205,1576,'2016-11-16 21:06:22',532,0,12), (4132,'<p>Mutter</p>\n','',205,1577,'2016-11-16 21:06:57',532,0,1), (4133,'<p>Vater</p>\n','',205,1577,'2016-11-16 21:07:02',532,0,2), (4134,'<p>Familie</p>\n','',205,1577,'2016-11-16 21:07:09',532,0,3), (4135,'<p>Geschwister</p>\n','',205,1577,'2016-11-16 21:07:15',532,0,4), (4136,'<p>Allein</p>\n','',205,1577,'2016-11-16 21:07:21',532,0,5), (4137,'<p>Cousine</p>\n','',205,1577,'2016-11-16 21:07:26',532,0,6), (4138,'<p>Cousin</p>\n','',205,1577,'2016-11-16 21:07:32',532,0,7), (4139,'<p>Arabisch - Syrien</p>\n','',205,1578,'2016-11-16 21:08:04',532,0,1), (4140,'<p>Arabisch - Irak</p>\n','',205,1578,'2016-11-16 21:08:26',532,0,2), (4141,'<p>Arabisch - Ägypten</p>\n','',205,1578,'2016-11-16 21:08:33',532,0,3), (4142,'<p>Arabisch - andere Länder</p>\n','',205,1578,'2016-11-16 21:08:40',532,0,4), (4143,'<p>Urdu</p>\n','',205,1578,'2016-11-16 21:08:46',532,0,5), (4144,'<p>Dari</p>\n','',205,1578,'2016-11-16 21:08:53',532,0,6), (4145,'<p>Persisch</p>\n','',205,1578,'2016-11-16 21:08:59',532,0,7), (4146,'<p>Armenisch</p>\n','',205,1578,'2016-11-16 21:09:05',532,0,8), (4147,'<p>Türkisch</p>\n','',205,1578,'2016-11-16 21:09:12',532,0,9), (4148,'<p>Kurdisch - Irak</p>\n','',205,1578,'2016-11-16 21:09:19',532,0,10), (4149,'<p>Kurdisch - Syrien</p>\n','',205,1578,'2016-11-16 21:09:28',532,0,11), (4150,'<p>Italienisch</p>\n','',205,1578,'2016-11-16 21:09:36',532,0,12), (4151,'<p>Russisch</p>\n','',205,1578,'2016-11-16 21:09:43',532,0,13), (4152,'<p>Albanisch</p>\n','',205,1579,'2016-11-16 21:09:54',532,0,1), (4153,'<p>Arabisch</p>\n','',205,1580,'2016-11-16 21:10:21',532,0,1), (4154,'<p>Englisch</p>\n','',205,1580,'2016-11-16 21:10:26',532,0,2), (4155,'<p>Französisch</p>\n','',205,1580,'2016-11-16 21:10:32',532,0,3), (4156,'<p>Italienisch</p>\n','',205,1580,'2016-11-16 21:10:40',532,0,4), (4157,'<p>Türkisch</p>\n','',205,1580,'2016-11-16 21:10:46',532,0,5), (4158,'<p>Grundschule 1 Jahr</p>\n','',205,1581,'2016-11-16 21:11:10',532,0,1), (4159,'<p>Grundschule 2 Jahre</p>\n','',205,1581,'2016-11-16 21:11:17',532,0,2), (4160,'<p>Grundschule 3 Jahre</p>\n','',205,1581,'2016-11-16 21:11:24',532,0,3), (4161,'<p>Grundschule 4 Jahre</p>\n','',205,1581,'2016-11-16 21:11:32',532,0,4), (4162,'<p>Sek 1 - 1 Jahr</p>\n','',205,1581,'2016-11-16 21:11:38',532,0,5), (4163,'<p>Sek 1 - 2 Jahre</p>\n','',205,1581,'2016-11-16 21:11:44',532,0,6), (4164,'<p>Sek 1 - 3 Jahre</p>\n','',205,1581,'2016-11-16 21:11:53',532,0,7), (4165,'<p>Sek 1 - 4 Jahre</p>\n','',205,1581,'2016-11-16 21:11:59',532,0,8), (4166,'<p>Sek 1 - 5 Jahre</p>\n','',205,1581,'2016-11-16 21:12:08',532,0,9), (4167,'<p>Sek 1 - 6 Jahre</p>\n','',205,1581,'2016-11-16 21:12:15',532,0,10), (4168,'<p>Sek 2 - 1 Jahr</p>\n','',205,1581,'2016-11-16 21:12:23',532,0,11), (4169,'<p>Sek 2 - 2 Jahre</p>\n','',205,1581,'2016-11-16 21:12:30',532,0,12), (4170,'<p>Lateinisch</p>\n','',205,1582,'2016-11-16 21:13:05',532,0,1), (4171,'<p>Arabisch</p>\n','',205,1582,'2016-11-16 21:13:10',532,0,2), (4172,'<p>Kyrillisch</p>\n','',205,1582,'2016-11-16 21:13:17',532,0,3), (4173,'<p>Armenisch</p>\n','',205,1582,'2016-11-16 21:13:24',532,0,4); /*!40000 ALTER TABLE `enablingObjectives` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle event # ------------------------------------------------------------ DROP TABLE IF EXISTS `event`; CREATE TABLE `event` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `event` varchar(2048) DEFAULT NULL, `description` text, `course_id` int(11) unsigned NOT NULL, `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `repeat_id` int(11) DEFAULT NULL, `context_id` int(11) unsigned NOT NULL DEFAULT '1', `timestart` timestamp NULL DEFAULT NULL, `timeend` timestamp NULL DEFAULT NULL, `status` tinyint(4) DEFAULT NULL COMMENT '0 = disabled, 1 = active', `creator_id` int(11) unsigned NOT NULL, `sequence` smallint(11) DEFAULT NULL, `creation_time` timestamp NULL DEFAULT NULL, `reminder_interval` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_ev_creator` (`creator_id`), KEY `rel_ev_context` (`context_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle event_subscriptions # ------------------------------------------------------------ DROP TABLE IF EXISTS `event_subscriptions`; CREATE TABLE `event_subscriptions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `url` varchar(255) DEFAULT NULL, `course_id` int(11) unsigned NOT NULL, `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `creation_time` timestamp NULL DEFAULT NULL, `event_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_es_course` (`course_id`), KEY `rel_es_group` (`group_id`), KEY `rel_es_use` (`user_id`), KEY `rel_es_event` (`event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle file_context # ------------------------------------------------------------ DROP TABLE IF EXISTS `file_context`; CREATE TABLE `file_context` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `context` varchar(100) DEFAULT NULL, `description` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `file_context` WRITE; /*!40000 ALTER TABLE `file_context` DISABLE KEYS */; INSERT INTO `file_context` (`id`, `context`, `description`) VALUES (1,'curriculum','Globale Dateien'), (2,'institution','Dateien meiner Instution(en)'), (3,'group','Dateien meiner Gruppe(n)'), (4,'user','Meine Dateien'); /*!40000 ALTER TABLE `file_context` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle file_license # ------------------------------------------------------------ DROP TABLE IF EXISTS `file_license`; CREATE TABLE `file_license` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `license` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `file_license` WRITE; /*!40000 ALTER TABLE `file_license` DISABLE KEYS */; INSERT INTO `file_license` (`id`, `license`) VALUES (1,'Sonstige'), (2,'Alle Rechte vorbehalten'), (3,'Public Domain'), (4,'CC'), (5,'CC - keine Bearbeitung'), (6,'CC - keine kommerzielle Nutzung - keine Bearbeitung'), (7,'CC - keine kommerzielle Nutzung'), (8,'CC - keine kommerzielle Nutzung - Weitergabe unter gleichen Bedingungen'), (9,'CC - Weitergabe unter gleichen Bedingungen'); /*!40000 ALTER TABLE `file_license` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle file_token # ------------------------------------------------------------ DROP TABLE IF EXISTS `file_token`; CREATE TABLE `file_token` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `file_id` int(10) unsigned NOT NULL, `token` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_ft` (`file_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle files # ------------------------------------------------------------ DROP TABLE IF EXISTS `files`; CREATE TABLE `files` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `context_id` int(10) unsigned DEFAULT NULL, `path` varchar(255) NOT NULL DEFAULT '', `filename` varchar(255) NOT NULL DEFAULT '', `author` varchar(255) NOT NULL DEFAULT '', `license` int(11) unsigned NOT NULL, `creator_id` int(10) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `type` varchar(6) DEFAULT NULL COMMENT 'Dateierweiterung kann 5 Zeichen + Punkt lang sein', `cur_id` int(11) unsigned DEFAULT NULL, `ena_id` int(11) unsigned DEFAULT NULL, `ter_id` int(11) unsigned DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `title` text, `file_context` int(11) unsigned NOT NULL DEFAULT '1', `hits` int(11) unsigned DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `files` WRITE; /*!40000 ALTER TABLE `files` DISABLE KEYS */; INSERT INTO `files` (`id`, `context_id`, `path`, `filename`, `author`, `license`, `creator_id`, `creation_time`, `type`, `cur_id`, `ena_id`, `ter_id`, `description`, `title`, `file_context`, `hits`) VALUES (0,3,'','noprofile.jpg','<NAME>',2,532,'2015-11-11 12:55:22','.jpg',0,0,0,'Platzhalter','Standard',1,0), (122,5,'','Colouring_pencils__MichaelMaggs_CC-BY-SA_3.0.jpg','',2,532,'2012-12-30 22:04:34','.png',0,0,0,NULL,'Kunst',1,0), (123,5,'','PianoKeyboard4_CC0.jpg','',2,532,'2012-12-30 22:08:06','.jpg',0,0,0,NULL,'Musik',1,0), (124,5,'','Informatik.png','',2,532,'2012-12-30 22:28:39','.png',0,0,0,NULL,'Informatik',1,0), (125,5,'','Calculator.jpg','',2,532,'2012-12-30 22:42:18','.jpg',0,0,0,NULL,'Mathematik',1,0), (126,5,'','Informatik.png','<NAME>',4,532,'2012-12-30 22:43:55','.png',0,0,0,NULL,'Informatik',1,0), (127,5,'','Reichstagsgebäude_-_Westansicht.jpg','',2,532,'2012-12-30 22:45:23','.jpg',0,0,0,NULL,'Deutsch',1,0), (128,5,'','Dorogobuj_Globe.JPG','',2,532,'2012-12-30 22:46:42','.jpg',0,0,0,NULL,'Geografie',1,0), (129,5,'','column-head-1696163_1920.jpg','',2,532,'2012-12-30 22:47:45','.jpg',0,0,0,NULL,'Geschichte',1,0), (130,5,'','test-214185_1280.jpg','',2,532,'2012-12-30 22:49:21','.jpg',0,0,0,NULL,'Chemie',1,0), (131,5,'','gears-1666499_1920.jpg','',2,532,'2012-12-30 22:49:53','.jpg',0,0,0,NULL,'Physik',1,0), (132,5,'','Dna-163466.jpg','',2,532,'2012-12-30 22:50:18','.jpg',0,0,0,NULL,'Biologie',1,0), (391,6,'/','RP_HKS__MBWJK__PLI_cmyk.jpg','<NAME>',2,532,'2015-05-18 19:50:48','.jpg',0,0,0,'PL Logo','PL Logo',1,0), (392,6,'/','zertlogo.png','<NAME>',2,532,'2015-05-18 19:52:51','.png',0,0,0,'logo','zertifikat logo',1,0), (393,6,'/','Badge01ortho.png','<NAME>',2,532,'2015-05-18 19:55:31','.png',0,0,0,'b1','B1',1,0), (394,6,'/','Badge02ortho.png','<NAME>',2,532,'2015-05-18 19:55:52','.png',0,0,0,'b2','b2',1,0), (395,6,'/','Badge03ortho.png','<NAME>',2,532,'2015-05-18 19:56:12','.png',0,0,0,'b3','b3',1,0), (396,6,'/','Badge04ortho.png','<NAME>',2,532,'2015-05-18 19:56:30','.png',0,0,0,'b4','b4',1,0), (397,6,'/','Badge05ortho.png','<NAME>',2,532,'2015-05-18 19:56:49','.png',0,0,0,'b5','b5',1,0), (398,6,'/','qr-code.png','<NAME>',2,532,'2015-05-18 20:06:43','.png',0,0,0,'qr','qr',1,0), (566,6,'/','Badge01ortho.png','<NAME>',2,532,'2015-08-16 17:22:00','.png',0,0,0,'Badge01','Badge1',1,0), (576,6,'/','Badge01ortho-1.png','<NAME>',2,532,'2015-08-17 10:21:37','.png',0,0,0,'TEst2','Testbadge',1,0), (2207,5,'','London-Eye-2009.JPG','',2,532,'2012-12-30 22:46:42','.jpg',0,0,0,NULL,'Englisch',1,0); /*!40000 ALTER TABLE `files` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle grade # ------------------------------------------------------------ DROP TABLE IF EXISTS `grade`; CREATE TABLE `grade` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `grade` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `institution_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_gr_creator` (`creator_id`), KEY `rel_gr_institution` (`institution_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `grade` WRITE; /*!40000 ALTER TABLE `grade` DISABLE KEYS */; INSERT INTO `grade` (`id`, `grade`, `description`, `creation_time`, `creator_id`, `institution_id`) VALUES (1,'1. Klasse','1. Klassenstufe (Grundschule)','0000-00-00 00:00:00',532,56), (2,'2. Klasse','2. Klassenstufe (Grundschule)','0000-00-00 00:00:00',532,56), (3,'3. Klasse','3. Klassenstufe (Grundschule)','0000-00-00 00:00:00',532,56), (4,'4. Klasse','4. Klassenstufe (Grundschule)','0000-00-00 00:00:00',532,56), (5,'5. Klasse','5. Klassenstufe (Orientierungsstufe)','0000-00-00 00:00:00',532,56), (6,'6. Klasse','6. Klassenstufe (Orientierungsstufe)','0000-00-00 00:00:00',532,56), (7,'7. Klasse','7. Klassenstufe (Sek. I)','0000-00-00 00:00:00',532,56), (8,'8. Klasse','8. Klassenstufe (Sek. I)','0000-00-00 00:00:00',532,56), (9,'9. Klasse','9. Klassenstufe (Sek. I)','0000-00-00 00:00:00',532,56), (10,'10. Klasse','10. Klassenstufe (Sek. I)','0000-00-00 00:00:00',532,56), (11,'11. Klasse','11. Klassenstufe (Sek. II)','0000-00-00 00:00:00',532,56), (12,'12. Klasse','12. Klassenstufe (Sek. II)','0000-00-00 00:00:00',532,56), (13,'13. Klasse','13. Klassenstufe (Sek. II)','0000-00-00 00:00:00',532,56), (48,'Sekundarstufe 1','Sek I. ','2015-03-09 08:47:49',532,56), (53,'Uni','Uni','2016-08-10 13:42:03',532,56), (145,'Erwachsenenbildung','Eb','2016-10-14 08:12:43',532,56); /*!40000 ALTER TABLE `grade` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle groups # ------------------------------------------------------------ DROP TABLE IF EXISTS `groups`; CREATE TABLE `groups` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `groups` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `grade_id` int(11) unsigned NOT NULL, `semester_id` int(11) unsigned NOT NULL, `institution_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_gp_grade` (`grade_id`), KEY `rel_gp_semester` (`semester_id`), KEY `rel_gp_institution` (`institution_id`), KEY `rel_gp_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `groups` WRITE; /*!40000 ALTER TABLE `groups` DISABLE KEYS */; INSERT INTO `groups` (`id`, `groups`, `description`, `grade_id`, `semester_id`, `institution_id`, `creation_time`, `creator_id`) VALUES (1,'10D','RS+ Landau',10,30,56,'2016-01-20 08:52:35',532); /*!40000 ALTER TABLE `groups` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle groups_enrolments # ------------------------------------------------------------ DROP TABLE IF EXISTS `groups_enrolments`; CREATE TABLE `groups_enrolments` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `status` int(11) NOT NULL DEFAULT '0', `group_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `expel_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_ge_group` (`group_id`), KEY `rel_ge_user` (`user_id`), KEY `rel_ge_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `groups_enrolments` WRITE; /*!40000 ALTER TABLE `groups_enrolments` DISABLE KEYS */; INSERT INTO `groups_enrolments` (`id`, `status`, `group_id`, `user_id`, `creation_time`, `expel_time`, `creator_id`) VALUES (2,1,1,374,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (3,1,1,375,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (4,1,1,376,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (5,1,1,377,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (6,1,1,378,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (7,1,1,379,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (8,1,1,380,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (9,1,1,381,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (10,1,1,382,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (11,1,1,383,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (12,1,1,384,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (13,1,1,385,'2016-12-15 22:15:55','0000-00-00 00:00:00',532), (14,1,1,386,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (15,1,1,387,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (16,1,1,388,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (17,1,1,389,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (18,1,1,390,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (19,1,1,391,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (20,1,1,392,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (21,1,1,393,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (22,1,1,394,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (23,1,1,395,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (24,1,1,396,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (25,1,1,397,'2016-12-15 22:15:56','0000-00-00 00:00:00',532), (26,1,1,531,'2016-12-15 22:38:01','0000-00-00 00:00:00',532); /*!40000 ALTER TABLE `groups_enrolments` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle help # ------------------------------------------------------------ DROP TABLE IF EXISTS `help`; CREATE TABLE `help` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` tinytext, `description` text, `category` tinytext, `file_id` int(11) DEFAULT NULL, `creation_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle institution # ------------------------------------------------------------ DROP TABLE IF EXISTS `institution`; CREATE TABLE `institution` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `confirmed` int(11) NOT NULL DEFAULT '1', `institution` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `schooltype_id` int(11) unsigned NOT NULL, `country_id` char(2) NOT NULL DEFAULT '56', `state_id` int(11) unsigned NOT NULL DEFAULT '11', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `paginator_limit` smallint(6) DEFAULT NULL, `std_role` smallint(6) DEFAULT NULL, `csv_size` int(10) DEFAULT NULL, `avatar_size` int(10) DEFAULT NULL, `material_size` int(10) DEFAULT NULL, `acc_days` smallint(6) DEFAULT NULL, `timeout` int(11) NOT NULL DEFAULT '10', `semester_id` int(10) unsigned DEFAULT NULL, `file_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_ins_schooltype` (`schooltype_id`), KEY `rel_ins_state` (`state_id`), KEY `rel_ins_creator` (`creator_id`), KEY `rel_ins_semester` (`semester_id`), KEY `rel_ins_file` (`file_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `institution` WRITE; /*!40000 ALTER TABLE `institution` DISABLE KEYS */; INSERT INTO `institution` (`id`, `confirmed`, `institution`, `description`, `schooltype_id`, `country_id`, `state_id`, `creation_time`, `creator_id`, `paginator_limit`, `std_role`, `csv_size`, `avatar_size`, `material_size`, `acc_days`, `timeout`, `semester_id`, `file_id`) VALUES (0,1,'globaler Datensatz','globaler Datensatz',0,'DE',11,'2016-10-26 10:38:07',532,NULL,NULL,NULL,NULL,NULL,NULL,10,NULL,NULL), (56,1,'UIINSTIUTION','STraße',1,'56',11,'2013-09-07 09:48:50',532,10,0,1048576,1048576,1048576,7,7,30,126); /*!40000 ALTER TABLE `institution` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle institution_enrolments # ------------------------------------------------------------ DROP TABLE IF EXISTS `institution_enrolments`; CREATE TABLE `institution_enrolments` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `status` int(11) NOT NULL DEFAULT '0', `institution_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `expeled_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `creator_id` int(11) unsigned NOT NULL, `role_id` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `IDX_INSTITUTION_ID` (`institution_id`), KEY `IDX_USER_ID` (`user_id`), KEY `rel_ie_creator` (`creator_id`), KEY `rel_ie_role` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `institution_enrolments` WRITE; /*!40000 ALTER TABLE `institution_enrolments` DISABLE KEYS */; INSERT INTO `institution_enrolments` (`id`, `status`, `institution_id`, `user_id`, `creation_time`, `expeled_time`, `creator_id`, `role_id`) VALUES (774,1,56,374,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (775,1,56,375,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (776,1,56,376,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (777,1,56,377,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (778,1,56,379,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (779,1,56,380,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (780,1,56,381,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (781,1,56,382,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (782,1,56,383,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (783,1,56,384,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (784,1,56,385,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (785,1,56,386,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (786,1,56,387,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (787,1,56,388,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (788,1,56,389,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (789,1,56,390,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (790,1,56,391,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (791,1,56,392,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (792,1,56,393,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (793,1,56,394,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (794,1,56,395,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (795,1,56,396,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (796,1,56,397,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (797,1,56,378,'2016-12-15 22:16:27','0000-00-00 00:00:00',532,0), (798,1,56,531,'2016-12-15 22:37:57','0000-00-00 00:00:00',532,8), (799,1,56,532,'2017-01-27 13:31:20','0000-00-00 00:00:00',532,1); /*!40000 ALTER TABLE `institution_enrolments` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle log # ------------------------------------------------------------ DROP TABLE IF EXISTS `log`; CREATE TABLE `log` ( `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `user_id` int(11) unsigned NOT NULL, `ip` varchar(45) NOT NULL, `action` varchar(40) NOT NULL, `url` varchar(250) NOT NULL, `info` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `rel_lo_user` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle message # ------------------------------------------------------------ DROP TABLE IF EXISTS `message`; CREATE TABLE `message` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `sender_id` int(11) unsigned NOT NULL DEFAULT '0', `receiver_id` int(11) unsigned NOT NULL DEFAULT '0', `subject` text, `message` mediumtext, `sender_status` smallint(1) DEFAULT '0' COMMENT '0 = ungelesen, 1 = gelesen, -1 = gelöscht', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `receiver_status` smallint(1) DEFAULT '0' COMMENT '0 = ungelesen, 1 = gelesen, -1 = gelöscht', PRIMARY KEY (`id`), KEY `rel_me_sender` (`sender_id`), KEY `rel_me_receiver` (`receiver_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle quiz_answers # ------------------------------------------------------------ DROP TABLE IF EXISTS `quiz_answers`; CREATE TABLE `quiz_answers` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `answer` mediumtext, `correct` tinyint(1) DEFAULT '0', `question_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_qa_question` (`question_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle quiz_questions # ------------------------------------------------------------ DROP TABLE IF EXISTS `quiz_questions`; CREATE TABLE `quiz_questions` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `question` mediumtext, `type` int(11) DEFAULT NULL COMMENT '0 = true/false; 1 = Multiple choice; 2=shortanswer', `objective_id` int(11) unsigned DEFAULT NULL, `objective_type` int(10) unsigned DEFAULT NULL COMMENT '0 = terminal objective; 1= enabling objective', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle repeat_interval # ------------------------------------------------------------ DROP TABLE IF EXISTS `repeat_interval`; CREATE TABLE `repeat_interval` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `repeat_interval` int(11) unsigned NOT NULL DEFAULT '1', `description` varchar(240) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `repeat_interval` WRITE; /*!40000 ALTER TABLE `repeat_interval` DISABLE KEYS */; INSERT INTO `repeat_interval` (`id`, `repeat_interval`, `description`) VALUES (1,1,'täglich'), (2,7,'wöchentlich'), (3,30,'<NAME>'), (4,182,'<NAME>'), (5,365,'jedes Jahr'), (6,0,'keine Wiederholung'); /*!40000 ALTER TABLE `repeat_interval` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle role_capabilities # ------------------------------------------------------------ DROP TABLE IF EXISTS `role_capabilities`; CREATE TABLE `role_capabilities` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `role_id` int(11) unsigned NOT NULL, `capability` varchar(240) NOT NULL, `permission` tinyint(1) NOT NULL DEFAULT '0', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_rc_role` (`role_id`), KEY `rel_rc_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `role_capabilities` WRITE; /*!40000 ALTER TABLE `role_capabilities` DISABLE KEYS */; INSERT INTO `role_capabilities` (`id`, `role_id`, `capability`, `permission`, `creation_time`, `creator_id`) VALUES (8,1,'menu:readInstitution',1,'2013-10-14 11:01:07',532), (12,1,'menu:readObjectives',1,'2013-10-14 11:03:03',532), (15,1,'menu:readCurriculum',1,'2013-10-14 11:09:50',532), (18,1,'menu:readGroup',1,'2013-10-14 11:12:49',532), (20,1,'menu:readUser',1,'2013-10-14 11:33:23',532), (23,1,'menu:readGrade',1,'2013-10-14 11:34:07',532), (25,1,'menu:readSubject',1,'2013-10-14 11:36:37',532), (27,1,'menu:readSemester',1,'2013-10-14 11:37:27',532), (29,1,'menu:readBackup',1,'2013-10-14 11:37:53',532), (42,1,'menu:readLog',1,'2013-10-25 06:50:56',532), (52,1,'menu:readRole',1,'2013-11-17 19:09:23',532), (218,1,'user:addUser',1,'2014-02-02 18:23:35',532), (223,1,'user:updateUser',1,'2014-02-02 18:26:20',532), (228,1,'user:updateRole',1,'2014-02-06 08:54:58',532), (233,1,'user:delete',1,'2014-02-06 08:58:59',532), (238,1,'user:changePassword',1,'2014-02-06 09:14:03',532), (248,1,'user:getGroupMembers',1,'2014-02-06 09:24:55',532), (253,1,'user:listNewUsers',1,'2014-02-06 09:30:33',532), (258,1,'user:enroleToInstitution',1,'2014-02-06 09:37:11',532), (263,1,'user:enroleToGroup',1,'2014-02-06 09:41:28',532), (268,1,'user:expelFromGroup',1,'2014-02-06 09:44:04',532), (273,1,'menu:readuserImport',1,'2014-02-06 09:46:27',532), (278,1,'user:userList',1,'2014-02-06 09:56:33',532), (283,1,'user:resetPassword',1,'2014-02-06 10:16:43',532), (288,1,'user:getUsers',1,'2014-02-06 10:26:57',532), (298,1,'user:confirmUser',1,'2014-02-06 10:37:18',532), (303,1,'user:dedicate',0,'2014-02-06 10:41:32',532), (325,1,'mail:loadMail',1,'2014-04-02 16:59:25',532), (330,1,'mail:postMail',1,'2014-04-02 18:45:34',532), (335,1,'mail:loadInbox',1,'2014-04-02 18:53:56',532), (340,1,'mail:loadOutbox',1,'2014-04-02 18:56:10',532), (345,1,'mail:loadDeletedMessages',1,'2014-04-02 18:57:13',532), (350,1,'file:solutionUpload',1,'2014-04-03 15:11:13',532), (355,1,'file:loadMaterial',1,'2014-04-03 15:22:20',532), (360,1,'backup:add',1,'2014-04-06 15:18:21',532), (370,1,'backup:delete',1,'2014-04-06 15:24:09',532), (375,1,'objectives:setStatus',1,'2014-04-06 18:37:30',532), (380,1,'file:upload',1,'2014-04-16 08:03:40',532), (385,1,'file:uploadURL',1,'2014-04-16 08:04:37',532), (390,1,'file:lastFiles',1,'2014-04-16 08:12:35',532), (395,1,'file:curriculumFiles',1,'2014-04-16 08:20:37',532), (400,1,'file:solution',1,'2014-04-16 08:24:42',532), (405,1,'file:myFiles',1,'2014-04-16 08:26:26',532), (410,1,'file:myAvatars',1,'2014-04-16 08:28:40',532), (415,1,'objectives:addTerminalObjective',1,'2014-04-16 09:48:53',532), (425,1,'objectives:updateTerminalObjectives',1,'2014-04-16 09:56:18',532), (430,1,'objectives:deleteTerminalObjectives',1,'2014-04-16 09:57:53',532), (435,1,'objectives:addEnablingObjective',1,'2014-04-16 10:03:38',532), (440,1,'objectives:updateEnablingObjectives',1,'2014-04-16 10:07:16',532), (445,1,'objectives:deleteEnablingObjectives',1,'2014-04-16 10:09:18',532), (455,1,'subject:add',1,'2014-04-16 10:46:18',532), (460,1,'subject:update',1,'2014-04-16 10:47:09',532), (465,1,'subject:delete',1,'2014-04-16 14:10:43',532), (470,1,'semester:add',1,'2014-04-16 14:16:56',532), (475,1,'semester:update',1,'2014-04-16 14:18:31',532), (480,1,'semester:delete',1,'2014-04-16 14:20:19',532), (485,1,'schooltype:add',1,'2014-04-16 14:23:38',532), (490,1,'schooltype:update',1,'2014-04-16 14:24:23',532), (495,1,'schooltype:delete',1,'2014-04-16 14:25:27',532), (500,1,'log:getLogs',1,'2014-04-16 14:28:38',532), (505,1,'institution:add',1,'2014-04-16 14:31:57',532), (510,1,'institution:delete',1,'2014-04-16 14:32:43',532), (515,1,'institution:update',1,'2014-04-16 14:35:27',532), (520,1,'groups:add',1,'2014-04-16 14:39:56',532), (525,1,'groups:update',1,'2014-04-16 14:41:44',532), (530,1,'groups:delete',1,'2014-04-16 14:44:35',532), (535,1,'groups:expel',1,'2014-04-16 14:47:34',532), (540,1,'groups:enrol',1,'2014-04-16 14:48:53',532), (545,1,'groups:changeSemester',1,'2014-04-16 14:51:09',532), (550,1,'grade:add',1,'2014-04-16 14:54:58',532), (555,1,'grade:update',1,'2014-04-16 14:55:53',532), (560,1,'grade:delete',1,'2014-04-16 14:57:13',532), (565,1,'file:update',1,'2014-04-16 15:01:04',532), (570,1,'file:delete',1,'2014-04-16 15:02:54',532), (575,1,'file:getSolutions',1,'2014-04-16 15:06:03',532), (580,1,'curriculum:add',1,'2014-04-16 15:09:35',532), (585,1,'curriculum:update',1,'2014-04-16 15:11:48',532), (590,1,'curriculum:delete',1,'2014-04-16 15:13:01',532), (595,1,'role:add',1,'2014-04-17 07:41:02',532), (600,1,'role:delete',1,'2014-04-17 07:43:37',532), (605,1,'backup:getMyBackups',1,'2014-04-17 07:51:17',532), (610,1,'backup:getAllBackups',1,'2014-04-17 07:53:10',532), (625,1,'dashboard:globalAdmin',1,'2014-04-17 08:16:12',532), (630,1,'dashboard:institutionalAdmin',1,'2014-04-17 08:18:00',532), (731,1,'role:update',1,'2014-04-27 10:09:51',532), (738,1,'groups:add',1,'2014-09-14 14:34:51',532), (836,1,'menu:readCertificate',1,'2014-10-03 13:43:49',532), (841,1,'user:getGroups',1,'2014-10-03 15:36:55',532), (846,1,'user:getCurricula',1,'2014-10-03 15:41:35',532), (861,1,'menu:readMessages',1,'2014-10-03 17:29:12',532), (968,1,'page:showAdminDocu',1,'2014-10-03 20:34:19',532), (973,1,'page:showTeacherDocu',1,'2014-10-03 20:37:49',532), (978,1,'page:showStudentDocu',1,'2014-10-03 20:38:16',532), (983,1,'page:showCronjob',1,'2014-10-03 20:42:03',532), (998,1,'user:getHelp',1,'2014-10-12 16:43:04',532), (1003,1,'groups:showAccomplished',1,'2014-10-12 16:49:22',532), (1008,1,'file:editMaterial',1,'2014-10-12 17:03:36',532), (1023,1,'user:confirmUserSidewide',1,'2014-10-12 20:22:22',532), (1034,1,'menu:readMyInstitution',1,'2014-10-13 11:26:41',532), (1039,1,'user:expelFromInstitution',1,'2014-10-14 10:00:06',532), (1044,1,'user:userListComplete',1,'2014-10-14 10:40:44',532), (1049,1,'user:getInstitution',1,'2014-10-14 10:53:25',532), (1182,1,'groups:showCurriculumEnrolments',1,'2014-10-21 14:13:11',532), (1184,1,'mail:delete',1,'2014-12-08 10:54:23',532), (1189,1,'certificate:add',1,'2014-12-28 09:55:04',532), (1194,1,'certificate:update',1,'2015-01-02 08:41:45',532), (1199,1,'certificate:delete',1,'2015-01-02 08:42:44',532), (1203,5,'backup:add',0,'2015-03-10 11:07:26',532), (1204,5,'backup:delete',0,'2015-03-10 11:07:26',532), (1205,5,'backup:getAllBackups',0,'2015-03-10 11:07:26',532), (1206,5,'backup:getMyBackups',0,'2015-03-10 11:07:26',532), (1208,5,'certificate:add',1,'2015-03-10 11:07:26',532), (1209,5,'certificate:delete',1,'2015-03-10 11:07:26',532), (1210,5,'certificate:update',1,'2015-03-10 11:07:26',532), (1213,5,'curriculum:add',1,'2015-03-10 11:07:26',532), (1215,5,'curriculum:delete',1,'2015-03-10 11:07:26',532), (1216,5,'curriculum:update',1,'2015-03-10 11:07:26',532), (1217,5,'dashboard:globalAdmin',1,'2015-03-10 11:07:26',532), (1218,5,'dashboard:institutionalAdmin',1,'2015-03-10 11:07:26',532), (1219,5,'file:curriculumFiles',1,'2015-03-10 11:07:26',532), (1220,5,'file:delete',1,'2015-03-10 11:07:26',532), (1221,5,'file:editMaterial',1,'2015-03-10 11:07:26',532), (1222,5,'file:getSolutions',1,'2015-03-10 11:07:26',532), (1223,5,'file:lastFiles',1,'2015-03-10 11:07:26',532), (1224,5,'file:loadMaterial',1,'2015-03-10 11:07:26',532), (1225,5,'file:myAvatars',1,'2015-03-10 11:07:26',532), (1226,5,'file:myFiles',1,'2015-03-10 11:07:26',532), (1227,5,'file:solution',1,'2015-03-10 11:07:26',532), (1228,5,'file:solutionUpload',1,'2015-03-10 11:07:26',532), (1229,5,'file:update',1,'2015-03-10 11:07:26',532), (1230,5,'file:upload',1,'2015-03-10 11:07:26',532), (1231,5,'file:uploadURL',1,'2015-03-10 11:07:26',532), (1232,5,'grade:add',1,'2015-03-10 11:07:26',532), (1233,5,'grade:delete',1,'2015-03-10 11:07:26',532), (1234,5,'grade:update',1,'2015-03-10 11:07:26',532), (1235,5,'groups:add',1,'2015-03-10 11:07:26',532), (1236,5,'groups:changeSemester',1,'2015-03-10 11:07:26',532), (1237,5,'groups:delete',1,'2015-03-10 11:07:26',532), (1238,5,'groups:enrol',1,'2015-03-10 11:07:26',532), (1239,5,'groups:expel',1,'2015-03-10 11:07:26',532), (1240,5,'groups:showAccomplished',1,'2015-03-10 11:07:26',532), (1241,5,'groups:showCurriculumEnrolments',1,'2015-03-10 11:07:26',532), (1242,5,'groups:update',1,'2015-03-10 11:07:26',532), (1243,5,'institution:add',1,'2015-03-10 11:07:26',532), (1244,5,'institution:delete',0,'2015-03-10 11:07:26',532), (1245,5,'institution:update',1,'2015-03-10 11:07:26',532), (1246,5,'log:getLogs',0,'2015-03-10 11:07:26',532), (1247,5,'mail:delete',1,'2015-03-10 11:07:26',532), (1248,5,'mail:loadDeletedMessages',1,'2015-03-10 11:07:26',532), (1249,5,'mail:loadInbox',1,'2015-03-10 11:07:26',532), (1250,5,'mail:loadMail',1,'2015-03-10 11:07:26',532), (1251,5,'mail:loadOutbox',1,'2015-03-10 11:07:26',532), (1252,5,'mail:postMail',1,'2015-03-10 11:07:26',532), (1253,5,'menu:readBackup',0,'2015-03-10 11:07:26',532), (1254,5,'menu:readCertificate',1,'2015-03-10 11:07:26',532), (1257,5,'menu:readCurriculum',1,'2015-03-10 11:07:26',532), (1258,5,'menu:readGrade',1,'2015-03-10 11:07:26',532), (1259,5,'menu:readGroup',1,'2015-03-10 11:07:26',532), (1260,5,'menu:readInstitution',0,'2015-03-10 11:07:26',532), (1262,5,'menu:readLog',0,'2015-03-10 11:07:26',532), (1263,5,'menu:readMessages',1,'2015-03-10 11:07:26',532), (1265,5,'menu:readMyInstitution',1,'2015-03-10 11:07:26',532), (1267,5,'menu:readObjectives',1,'2015-03-10 11:07:26',532), (1272,5,'menu:readRole',0,'2015-03-10 11:07:26',532), (1273,5,'menu:readSemester',1,'2015-03-10 11:07:26',532), (1274,5,'menu:readSubject',1,'2015-03-10 11:07:26',532), (1275,5,'menu:readUser',1,'2015-03-10 11:07:26',532), (1276,5,'menu:readuserImport',1,'2015-03-10 11:07:26',532), (1277,5,'objectives:addEnablingObjective',1,'2015-03-10 11:07:26',532), (1278,5,'objectives:addTerminalObjective',1,'2015-03-10 11:07:26',532), (1279,5,'objectives:deleteEnablingObjectives',1,'2015-03-10 11:07:26',532), (1280,5,'objectives:deleteTerminalObjectives',1,'2015-03-10 11:07:26',532), (1282,5,'objectives:setStatus',1,'2015-03-10 11:07:26',532), (1283,5,'objectives:updateEnablingObjectives',1,'2015-03-10 11:07:26',532), (1284,5,'objectives:updateTerminalObjectives',1,'2015-03-10 11:07:26',532), (1285,5,'page:showAdminDocu',1,'2015-03-10 11:07:26',532), (1286,5,'page:showCronjob',1,'2015-03-10 11:07:26',532), (1288,5,'page:showStudentDocu',1,'2015-03-10 11:07:26',532), (1289,5,'page:showTeacherDocu',1,'2015-03-10 11:07:26',532), (1290,5,'role:add',0,'2015-03-10 11:07:26',532), (1291,5,'role:delete',0,'2015-03-10 11:07:26',532), (1292,5,'role:update',0,'2015-03-10 11:07:26',532), (1293,5,'schooltype:add',1,'2015-03-10 11:07:26',532), (1294,5,'schooltype:delete',1,'2015-03-10 11:07:26',532), (1295,5,'schooltype:update',1,'2015-03-10 11:07:26',532), (1296,5,'semester:add',1,'2015-03-10 11:07:26',532), (1297,5,'semester:delete',1,'2015-03-10 11:07:26',532), (1298,5,'semester:update',1,'2015-03-10 11:07:26',532), (1299,5,'subject:add',1,'2015-03-10 11:07:26',532), (1300,5,'subject:delete',1,'2015-03-10 11:07:26',532), (1301,5,'subject:update',1,'2015-03-10 11:07:26',532), (1302,5,'user:addUser',1,'2015-03-10 11:07:26',532), (1303,5,'user:changePassword',1,'2015-03-10 11:07:26',532), (1304,5,'user:confirmUser',1,'2015-03-10 11:07:26',532), (1305,5,'user:confirmUserSidewide',1,'2015-03-10 11:07:26',532), (1306,5,'user:dedicate',1,'2015-03-10 11:07:26',532), (1307,5,'user:delete',1,'2015-03-10 11:07:26',532), (1308,5,'user:enroleToGroup',1,'2015-03-10 11:07:26',532), (1309,5,'user:enroleToInstitution',1,'2015-03-10 11:07:26',532), (1310,5,'user:expelFromGroup',1,'2015-03-10 11:07:26',532), (1311,5,'user:expelFromInstitution',1,'2015-03-10 11:07:26',532), (1312,5,'user:getCurricula',1,'2015-03-10 11:07:26',532), (1313,5,'user:getGroupMembers',1,'2015-03-10 11:07:26',532), (1314,5,'user:getGroups',1,'2015-03-10 11:07:26',532), (1315,5,'user:getHelp',1,'2015-03-10 11:07:26',532), (1316,5,'user:getInstitution',1,'2015-03-10 11:07:26',532), (1319,5,'user:getUsers',1,'2015-03-10 11:07:26',532), (1320,5,'user:listNewUsers',1,'2015-03-10 11:07:26',532), (1321,5,'user:resetPassword',1,'2015-03-10 11:07:26',532), (1322,5,'user:updateRole',1,'2015-03-10 11:07:26',532), (1323,5,'user:updateUser',1,'2015-03-10 11:07:26',532), (1324,5,'user:userList',1,'2015-03-10 11:07:26',532), (1325,5,'user:userListComplete',0,'2015-03-10 11:07:26',532), (1326,6,'backup:add',0,'2015-03-10 11:07:57',532), (1327,6,'backup:delete',0,'2015-03-10 11:07:57',532), (1328,6,'backup:getAllBackups',0,'2015-03-10 11:07:57',532), (1329,6,'backup:getMyBackups',0,'2015-03-10 11:07:57',532), (1331,6,'certificate:add',0,'2015-03-10 11:07:57',532), (1332,6,'certificate:delete',0,'2015-03-10 11:07:57',532), (1333,6,'certificate:update',0,'2015-03-10 11:07:57',532), (1336,6,'curriculum:add',0,'2015-03-10 11:07:57',532), (1338,6,'curriculum:delete',0,'2015-03-10 11:07:57',532), (1339,6,'curriculum:update',0,'2015-03-10 11:07:57',532), (1340,6,'dashboard:globalAdmin',0,'2015-03-10 11:07:57',532), (1341,6,'dashboard:institutionalAdmin',0,'2015-03-10 11:07:57',532), (1342,6,'file:curriculumFiles',0,'2015-03-10 11:07:57',532), (1343,6,'file:delete',1,'2015-03-10 11:07:57',532), (1344,6,'file:editMaterial',0,'2015-03-10 11:07:57',532), (1345,6,'file:getSolutions',1,'2015-03-10 11:07:57',532), (1346,6,'file:lastFiles',1,'2015-03-10 11:07:57',532), (1347,6,'file:loadMaterial',1,'2015-03-10 11:07:57',532), (1348,6,'file:myAvatars',1,'2015-03-10 11:07:57',532), (1349,6,'file:myFiles',1,'2015-03-10 11:07:57',532), (1350,6,'file:solution',1,'2015-03-10 11:07:57',532), (1351,6,'file:solutionUpload',0,'2015-03-10 11:07:57',532), (1352,6,'file:update',1,'2015-03-10 11:07:57',532), (1353,6,'file:upload',0,'2015-03-10 11:07:57',532), (1354,6,'file:uploadURL',1,'2015-03-10 11:07:57',532), (1355,6,'grade:add',0,'2015-03-10 11:07:57',532), (1356,6,'grade:delete',0,'2015-03-10 11:07:57',532), (1357,6,'grade:update',0,'2015-03-10 11:07:57',532), (1358,6,'groups:add',0,'2015-03-10 11:07:57',532), (1359,6,'groups:changeSemester',0,'2015-03-10 11:07:57',532), (1360,6,'groups:delete',0,'2015-03-10 11:07:57',532), (1361,6,'groups:enrol',0,'2015-03-10 11:07:57',532), (1362,6,'groups:expel',0,'2015-03-10 11:07:57',532), (1363,6,'groups:showAccomplished',1,'2015-03-10 11:07:57',532), (1364,6,'groups:showCurriculumEnrolments',0,'2015-03-10 11:07:57',532), (1365,6,'groups:update',0,'2015-03-10 11:07:57',532), (1366,6,'institution:add',0,'2015-03-10 11:07:57',532), (1367,6,'institution:delete',0,'2015-03-10 11:07:57',532), (1368,6,'institution:update',0,'2015-03-10 11:07:57',532), (1369,6,'log:getLogs',0,'2015-03-10 11:07:57',532), (1370,6,'mail:delete',1,'2015-03-10 11:07:57',532), (1371,6,'mail:loadDeletedMessages',1,'2015-03-10 11:07:57',532), (1372,6,'mail:loadInbox',1,'2015-03-10 11:07:57',532), (1373,6,'mail:loadMail',1,'2015-03-10 11:07:57',532), (1374,6,'mail:loadOutbox',1,'2015-03-10 11:07:57',532), (1375,6,'mail:postMail',1,'2015-03-10 11:07:57',532), (1376,6,'menu:readBackup',0,'2015-03-10 11:07:57',532), (1377,6,'menu:readCertificate',0,'2015-03-10 11:07:57',532), (1380,6,'menu:readCurriculum',0,'2015-03-10 11:07:57',532), (1381,6,'menu:readGrade',1,'2015-03-10 11:07:57',532), (1382,6,'menu:readGroup',1,'2015-03-10 11:07:57',532), (1383,6,'menu:readInstitution',0,'2015-03-10 11:07:57',532), (1385,6,'menu:readLog',0,'2015-03-10 11:07:57',532), (1386,6,'menu:readMessages',1,'2015-03-10 11:07:57',532), (1388,6,'menu:readMyInstitution',1,'2015-03-10 11:07:57',532), (1390,6,'menu:readObjectives',1,'2015-03-10 11:07:57',532), (1395,6,'menu:readRole',0,'2015-03-10 11:07:57',532), (1396,6,'menu:readSemester',0,'2015-03-10 11:07:57',532), (1397,6,'menu:readSubject',0,'2015-03-10 11:07:57',532), (1398,6,'menu:readUser',1,'2015-03-10 11:07:57',532), (1399,6,'menu:readuserImport',1,'2015-03-10 11:07:57',532), (1400,6,'objectives:addEnablingObjective',0,'2015-03-10 11:07:57',532), (1401,6,'objectives:addTerminalObjective',0,'2015-03-10 11:07:57',532), (1402,6,'objectives:deleteEnablingObjectives',0,'2015-03-10 11:07:57',532), (1403,6,'objectives:deleteTerminalObjectives',0,'2015-03-10 11:07:57',532), (1405,6,'objectives:setStatus',1,'2015-03-10 11:07:57',532), (1406,6,'objectives:updateEnablingObjectives',0,'2015-03-10 11:07:57',532), (1407,6,'objectives:updateTerminalObjectives',0,'2015-03-10 11:07:57',532), (1408,6,'page:showAdminDocu',1,'2015-03-10 11:07:57',532), (1409,6,'page:showCronjob',0,'2015-03-10 11:07:57',532), (1411,6,'page:showStudentDocu',1,'2015-03-10 11:07:57',532), (1412,6,'page:showTeacherDocu',0,'2015-03-10 11:07:57',532), (1413,6,'role:add',0,'2015-03-10 11:07:57',532), (1414,6,'role:delete',0,'2015-03-10 11:07:57',532), (1415,6,'role:update',0,'2015-03-10 11:07:57',532), (1416,6,'schooltype:add',0,'2015-03-10 11:07:57',532), (1417,6,'schooltype:delete',0,'2015-03-10 11:07:57',532), (1418,6,'schooltype:update',0,'2015-03-10 11:07:57',532), (1419,6,'semester:add',0,'2015-03-10 11:07:57',532), (1420,6,'semester:delete',0,'2015-03-10 11:07:57',532), (1421,6,'semester:update',0,'2015-03-10 11:07:57',532), (1422,6,'subject:add',0,'2015-03-10 11:07:57',532), (1423,6,'subject:delete',0,'2015-03-10 11:07:57',532), (1424,6,'subject:update',0,'2015-03-10 11:07:57',532), (1425,6,'user:addUser',1,'2015-03-10 11:07:57',532), (1426,6,'user:changePassword',1,'2015-03-10 11:07:57',532), (1427,6,'user:confirmUser',0,'2015-03-10 11:07:57',532), (1428,6,'user:confirmUserSidewide',0,'2015-03-10 11:07:57',532), (1429,6,'user:dedicate',0,'2015-03-10 11:07:57',532), (1430,6,'user:delete',1,'2015-03-10 11:07:57',532), (1431,6,'user:enroleToGroup',1,'2015-03-10 11:07:57',532), (1432,6,'user:enroleToInstitution',1,'2015-03-10 11:07:57',532), (1433,6,'user:expelFromGroup',0,'2015-03-10 11:07:57',532), (1434,6,'user:expelFromInstitution',0,'2015-03-10 11:07:57',532), (1435,6,'user:getCurricula',1,'2015-03-10 11:07:57',532), (1436,6,'user:getGroupMembers',1,'2015-03-10 11:07:57',532), (1437,6,'user:getGroups',1,'2015-03-10 11:07:57',532), (1438,6,'user:getHelp',0,'2015-03-10 11:07:57',532), (1439,6,'user:getInstitution',0,'2015-03-10 11:07:57',532), (1442,6,'user:getUsers',1,'2015-03-10 11:07:57',532), (1443,6,'user:listNewUsers',1,'2015-03-10 11:07:57',532), (1444,6,'user:resetPassword',1,'2015-03-10 11:07:57',532), (1445,6,'user:updateRole',1,'2015-03-10 11:07:57',532), (1446,6,'user:updateUser',1,'2015-03-10 11:07:57',532), (1447,6,'user:userList',1,'2015-03-10 11:07:57',532), (1448,6,'user:userListComplete',0,'2015-03-10 11:07:57',532), (1449,7,'backup:add',0,'2015-03-10 11:08:32',532), (1450,7,'backup:delete',0,'2015-03-10 11:08:32',532), (1451,7,'backup:getAllBackups',0,'2015-03-10 11:08:32',532), (1452,7,'backup:getMyBackups',0,'2015-03-10 11:08:32',532), (1454,7,'certificate:add',0,'2015-03-10 11:08:32',532), (1455,7,'certificate:delete',0,'2015-03-10 11:08:32',532), (1456,7,'certificate:update',0,'2015-03-10 11:08:32',532), (1459,7,'curriculum:add',0,'2015-03-10 11:08:32',532), (1461,7,'curriculum:delete',0,'2015-03-10 11:08:32',532), (1462,7,'curriculum:update',0,'2015-03-10 11:08:32',532), (1463,7,'dashboard:globalAdmin',0,'2015-03-10 11:08:32',532), (1464,7,'dashboard:institutionalAdmin',1,'2015-03-10 11:08:32',532), (1465,7,'file:curriculumFiles',1,'2015-03-10 11:08:32',532), (1466,7,'file:delete',1,'2015-03-10 11:08:32',532), (1467,7,'file:editMaterial',1,'2015-03-10 11:08:32',532), (1468,7,'file:getSolutions',1,'2015-03-10 11:08:32',532), (1469,7,'file:lastFiles',1,'2015-03-10 11:08:32',532), (1470,7,'file:loadMaterial',1,'2015-03-10 11:08:32',532), (1471,7,'file:myAvatars',1,'2015-03-10 11:08:32',532), (1472,7,'file:myFiles',1,'2015-03-10 11:08:32',532), (1473,7,'file:solution',1,'2015-03-10 11:08:32',532), (1474,7,'file:solutionUpload',1,'2015-03-10 11:08:32',532), (1475,7,'file:update',1,'2015-03-10 11:08:32',532), (1476,7,'file:upload',1,'2015-03-10 11:08:32',532), (1477,7,'file:uploadURL',1,'2015-03-10 11:08:32',532), (1478,7,'grade:add',0,'2015-03-10 11:08:32',532), (1479,7,'grade:delete',0,'2015-03-10 11:08:32',532), (1480,7,'grade:update',0,'2015-03-10 11:08:32',532), (1481,7,'groups:add',0,'2015-03-10 11:08:32',532), (1482,7,'groups:changeSemester',0,'2015-03-10 11:08:32',532), (1483,7,'groups:delete',0,'2015-03-10 11:08:32',532), (1484,7,'groups:enrol',0,'2015-03-10 11:08:32',532), (1485,7,'groups:expel',0,'2015-03-10 11:08:32',532), (1486,7,'groups:showAccomplished',1,'2015-03-10 11:08:32',532), (1487,7,'groups:showCurriculumEnrolments',0,'2015-03-10 11:08:32',532), (1488,7,'groups:update',0,'2015-03-10 11:08:32',532), (1489,7,'institution:add',0,'2015-03-10 11:08:32',532), (1490,7,'institution:delete',0,'2015-03-10 11:08:32',532), (1491,7,'institution:update',0,'2015-03-10 11:08:32',532), (1492,7,'log:getLogs',0,'2015-03-10 11:08:32',532), (1493,7,'mail:delete',1,'2015-03-10 11:08:32',532), (1494,7,'mail:loadDeletedMessages',1,'2015-03-10 11:08:32',532), (1495,7,'mail:loadInbox',1,'2015-03-10 11:08:32',532), (1496,7,'mail:loadMail',1,'2015-03-10 11:08:32',532), (1497,7,'mail:loadOutbox',1,'2015-03-10 11:08:32',532), (1498,7,'mail:postMail',1,'2015-03-10 11:08:32',532), (1499,7,'menu:readBackup',0,'2015-03-10 11:08:32',532), (1500,7,'menu:readCertificate',0,'2015-03-10 11:08:32',532), (1503,7,'menu:readCurriculum',0,'2015-03-10 11:08:32',532), (1504,7,'menu:readGrade',0,'2015-03-10 11:08:32',532), (1505,7,'menu:readGroup',0,'2015-03-10 11:08:32',532), (1506,7,'menu:readInstitution',0,'2015-03-10 11:08:32',532), (1508,7,'menu:readLog',0,'2015-03-10 11:08:32',532), (1509,7,'menu:readMessages',1,'2015-03-10 11:08:32',532), (1511,7,'menu:readMyInstitution',1,'2015-03-10 11:08:32',532), (1513,7,'menu:readObjectives',1,'2015-03-10 11:08:32',532), (1518,7,'menu:readRole',0,'2015-03-10 11:08:32',532), (1519,7,'menu:readSemester',0,'2015-03-10 11:08:32',532), (1520,7,'menu:readSubject',0,'2015-03-10 11:08:32',532), (1521,7,'menu:readUser',1,'2015-03-10 11:08:32',532), (1522,7,'menu:readuserImport',0,'2015-03-10 11:08:32',532), (1523,7,'objectives:addEnablingObjective',0,'2015-03-10 11:08:32',532), (1524,7,'objectives:addTerminalObjective',0,'2015-03-10 11:08:32',532), (1525,7,'objectives:deleteEnablingObjectives',0,'2015-03-10 11:08:32',532), (1526,7,'objectives:deleteTerminalObjectives',0,'2015-03-10 11:08:32',532), (1528,7,'objectives:setStatus',1,'2015-03-10 11:08:32',532), (1529,7,'objectives:updateEnablingObjectives',0,'2015-03-10 11:08:32',532), (1530,7,'objectives:updateTerminalObjectives',0,'2015-03-10 11:08:32',532), (1531,7,'page:showAdminDocu',0,'2015-03-10 11:08:32',532), (1532,7,'page:showCronjob',0,'2015-03-10 11:08:32',532), (1534,7,'page:showStudentDocu',1,'2015-03-10 11:08:32',532), (1535,7,'page:showTeacherDocu',1,'2015-03-10 11:08:32',532), (1536,7,'role:add',0,'2015-03-10 11:08:32',532), (1537,7,'role:delete',0,'2015-03-10 11:08:32',532), (1538,7,'role:update',0,'2015-03-10 11:08:32',532), (1539,7,'schooltype:add',0,'2015-03-10 11:08:32',532), (1540,7,'schooltype:delete',0,'2015-03-10 11:08:32',532), (1541,7,'schooltype:update',0,'2015-03-10 11:08:32',532), (1542,7,'semester:add',0,'2015-03-10 11:08:32',532), (1543,7,'semester:delete',0,'2015-03-10 11:08:32',532), (1544,7,'semester:update',0,'2015-03-10 11:08:32',532), (1545,7,'subject:add',0,'2015-03-10 11:08:32',532), (1546,7,'subject:delete',0,'2015-03-10 11:08:32',532), (1547,7,'subject:update',0,'2015-03-10 11:08:32',532), (1548,7,'user:addUser',0,'2015-03-10 11:08:32',532), (1549,7,'user:changePassword',1,'2015-03-10 11:08:32',532), (1550,7,'user:confirmUser',0,'2015-03-10 11:08:32',532), (1551,7,'user:confirmUserSidewide',0,'2015-03-10 11:08:32',532), (1552,7,'user:dedicate',0,'2015-03-10 11:08:32',532), (1553,7,'user:delete',0,'2015-03-10 11:08:32',532), (1554,7,'user:enroleToGroup',0,'2015-03-10 11:08:32',532), (1555,7,'user:enroleToInstitution',0,'2015-03-10 11:08:32',532), (1556,7,'user:expelFromGroup',0,'2015-03-10 11:08:32',532), (1557,7,'user:expelFromInstitution',0,'2015-03-10 11:08:32',532), (1558,7,'user:getCurricula',1,'2015-03-10 11:08:32',532), (1559,7,'user:getGroupMembers',1,'2015-03-10 11:08:32',532), (1560,7,'user:getGroups',1,'2015-03-10 11:08:32',532), (1561,7,'user:getHelp',0,'2015-03-10 11:08:32',532), (1562,7,'user:getInstitution',1,'2015-03-10 11:08:32',532), (1565,7,'user:getUsers',1,'2015-03-10 11:08:32',532), (1566,7,'user:listNewUsers',1,'2015-03-10 11:08:32',532), (1567,7,'user:resetPassword',1,'2015-03-10 11:08:32',532), (1568,7,'user:updateRole',0,'2015-03-10 11:08:32',532), (1569,7,'user:updateUser',1,'2015-03-10 11:08:32',532), (1570,7,'user:userList',1,'2015-03-10 11:08:32',532), (1571,7,'user:userListComplete',0,'2015-03-10 11:08:32',532), (1580,1,'file:load',1,'2015-08-15 22:24:40',532), (1581,5,'file:load',1,'2015-08-15 22:24:40',532), (1582,6,'file:load',1,'2015-08-15 22:24:40',532), (1583,7,'file:load',1,'2015-08-15 22:24:40',532), (1586,1,'user:update',1,'2015-08-16 09:40:01',532), (1587,5,'user:update',1,'2015-08-16 09:40:01',532), (1588,6,'user:update',1,'2015-08-16 09:40:01',532), (1589,7,'user:update',1,'2015-08-16 09:40:01',532), (1592,7,'menu:readConfirm',0,'2015-08-16 17:40:56',532), (1715,5,'menu:readConfirm',0,'2015-08-17 09:13:50',532), (1716,5,'course:setAccomplishedStatus',1,'2015-08-17 09:13:50',532), (1718,1,'course:setAccomplishedStatus',1,'2015-08-17 09:13:50',532), (1719,6,'course:setAccomplishedStatus',1,'2015-08-17 09:13:50',532), (1720,7,'course:setAccomplishedStatus',1,'2015-08-17 09:13:50',532), (1722,1,'user:userListInstitution',1,'2015-08-16 20:47:01',532), (1723,5,'user:userListInstitution',1,'2015-08-16 20:47:01',532), (1724,6,'user:userListInstitution',0,'2015-08-16 20:47:01',532), (1725,7,'user:userListInstitution',0,'2015-08-16 20:47:01',532), (1727,1,'user:userListGroup',1,'2015-08-16 20:47:01',532), (1728,5,'user:userListGroup',1,'2015-08-16 20:47:01',532), (1729,6,'user:userListGroup',1,'2015-08-16 20:47:01',532), (1730,7,'user:userListGroup',1,'2015-08-16 20:47:01',532), (1731,6,'menu:readUser',1,'2015-03-10 11:08:32',532), (1732,6,'menu:readMyInstitution',1,'2015-03-10 11:08:32',532), (1733,6,'menu:readMyInstitution',1,'2015-03-10 11:07:26',532), (1735,1,'file:uploadAvatar',1,'2015-03-10 11:07:26',532), (1736,5,'file:uploadAvatar',1,'2015-03-10 11:07:26',532), (1737,6,'file:uploadAvatar',1,'2015-03-10 11:07:26',532), (1738,7,'file:uploadAvatar',1,'2015-03-10 11:07:26',532), (1756,1,'plugin:useEmbeddableGoogleDocumentViewer',1,'2015-03-10 11:07:26',532), (1757,5,'plugin:useEmbeddableGoogleDocumentViewer',1,'2015-03-10 11:07:26',532), (1758,6,'plugin:useEmbeddableGoogleDocumentViewer',1,'2015-03-10 11:07:26',532), (1759,1,'file:showHits',1,'2015-03-10 11:07:26',532), (1761,5,'file:showHits',0,'2015-03-10 11:07:26',532), (1762,6,'file:showHits',0,'2015-03-10 11:07:26',532), (1763,7,'file:showHits',1,'2015-03-10 11:07:26',532), (1764,1,'menu:readConfirm',0,'2015-12-20 13:17:40',532), (1766,1,'quiz:showQuiz',1,'0000-00-00 00:00:00',532), (1767,5,'quiz:showQuiz',0,'0000-00-00 00:00:00',532), (1768,6,'quiz:showQuiz',0,'0000-00-00 00:00:00',532), (1769,7,'quiz:showQuiz',1,'0000-00-00 00:00:00',532), (1771,1,'dashboard:editBulletinBoard',1,'0000-00-00 00:00:00',532), (1772,5,'dashboard:editBulletinBoard',1,'0000-00-00 00:00:00',532), (1773,6,'dashboard:editBulletinBoard',1,'0000-00-00 00:00:00',532), (1774,7,'dashboard:editBulletinBoard',1,'0000-00-00 00:00:00',532), (1776,1,'curriculum:import',1,'0000-00-00 00:00:00',532), (1777,5,'curriculum:import',1,'0000-00-00 00:00:00',532), (1778,6,'curriculum:import',0,'0000-00-00 00:00:00',532), (1779,7,'curriculum:import',0,'0000-00-00 00:00:00',532), (1781,1,'curriculum:showAll',1,'0000-00-00 00:00:00',532), (1782,5,'curriculum:showAll',0,'0000-00-00 00:00:00',532), (1783,6,'curriculum:showAll',0,'0000-00-00 00:00:00',532), (1784,7,'curriculum:showAll',0,'0000-00-00 00:00:00',532), (1785,7,'menu:readCourseBook',0,'0000-00-00 00:00:00',532), (1786,1,'menu:readCourseBook',1,'0000-00-00 00:00:00',532), (1788,5,'menu:readCourseBook',1,'0000-00-00 00:00:00',532), (1789,6,'menu:readCourseBook',1,'0000-00-00 00:00:00',532), (1790,1,'coursebook:add',1,'0000-00-00 00:00:00',532), (1792,5,'coursebook:add',1,'0000-00-00 00:00:00',532), (1793,6,'coursebook:add',1,'0000-00-00 00:00:00',532), (1794,7,'coursebook:add',1,'0000-00-00 00:00:00',532), (1795,1,'coursebook:update',1,'0000-00-00 00:00:00',532), (1797,5,'coursebook:update',1,'0000-00-00 00:00:00',532), (1798,6,'coursebook:update',1,'0000-00-00 00:00:00',532), (1799,7,'coursebook:update',1,'0000-00-00 00:00:00',532), (1800,7,'event:add',1,'0000-00-00 00:00:00',532), (1802,1,'event:add',1,'0000-00-00 00:00:00',532), (1803,5,'event:add',1,'0000-00-00 00:00:00',532), (1804,6,'event:add',1,'0000-00-00 00:00:00',532), (1806,1,'event:update',1,'0000-00-00 00:00:00',532), (1807,5,'event:update',1,'0000-00-00 00:00:00',532), (1808,6,'event:update',1,'0000-00-00 00:00:00',532), (1809,7,'event:update',1,'0000-00-00 00:00:00',532), (1811,1,'task:add',1,'0000-00-00 00:00:00',532), (1812,5,'task:add',1,'0000-00-00 00:00:00',532), (1813,6,'task:add',1,'0000-00-00 00:00:00',532), (1814,7,'task:add',1,'0000-00-00 00:00:00',532), (1816,1,'task:update',1,'0000-00-00 00:00:00',532), (1817,5,'task:update',1,'0000-00-00 00:00:00',532), (1818,6,'task:update',1,'0000-00-00 00:00:00',532), (1819,7,'task:update',1,'0000-00-00 00:00:00',532), (1827,1,'coursebook:delete',1,'0000-00-00 00:00:00',532), (1828,5,'coursebook:delete',1,'0000-00-00 00:00:00',532), (1829,6,'coursebook:delete',1,'0000-00-00 00:00:00',532), (1830,7,'coursebook:delete',1,'0000-00-00 00:00:00',532), (1832,1,'event:delete',1,'0000-00-00 00:00:00',532), (1833,5,'event:delete',1,'0000-00-00 00:00:00',532), (1834,6,'event:delete',1,'0000-00-00 00:00:00',532), (1835,7,'event:delete',1,'0000-00-00 00:00:00',532), (1837,1,'task:delete',1,'0000-00-00 00:00:00',532), (1838,5,'task:delete',1,'0000-00-00 00:00:00',532), (1839,6,'task:delete',1,'0000-00-00 00:00:00',532), (1840,7,'task:delete',1,'0000-00-00 00:00:00',532), (1841,1,'task:enrol',1,'0000-00-00 00:00:00',532), (1842,5,'task:enrol',1,'0000-00-00 00:00:00',532), (1843,6,'task:enrol',1,'0000-00-00 00:00:00',532), (1845,7,'task:enrol',1,'0000-00-00 00:00:00',532), (1848,1,'absent:add',1,'2016-05-25 10:16:24',532), (1849,5,'absent:add',1,'2016-05-25 10:16:24',532), (1850,6,'absent:add',1,'2016-05-25 10:16:24',532), (1851,7,'absent:add',1,'2016-05-25 10:16:24',532), (1852,0,'absent:update',0,'2016-05-25 10:16:24',532), (1853,1,'absent:update',1,'2016-05-25 10:16:24',532), (1854,5,'absent:update',1,'2016-05-25 10:16:24',532), (1855,6,'absent:update',1,'2016-05-25 10:16:24',532), (1856,7,'absent:update',1,'2016-05-25 10:16:24',532), (1857,1,'block:add',1,'2016-06-17 10:56:40',532), (1858,5,'block:add',1,'2016-06-17 10:56:40',532), (1859,6,'block:add',1,'2016-06-17 10:56:40',532), (1860,7,'block:add',1,'2016-06-17 10:56:40',532), (1861,8,'block:add',0,'2016-06-17 10:56:40',532), (1862,8,'block:update',0,'2016-06-17 10:56:40',532), (1863,1,'block:update',1,'2016-06-17 10:56:40',532), (1864,5,'block:update',1,'2016-06-17 10:56:40',532), (1865,6,'block:update',1,'2016-06-17 10:56:40',532), (1866,7,'block:update',1,'2016-06-17 10:56:40',532), (1868,0,'mail:loadOutbox',1,'2015-08-16 20:47:01',532), (1869,0,'mail:loadMail',1,'2015-08-16 20:47:01',532), (1870,0,'mail:loadInbox',1,'2015-08-16 20:47:01',532), (1871,0,'mail:loadDeletedMessages',0,'2015-08-16 20:47:01',532), (1872,0,'mail:delete',1,'2015-08-16 20:47:01',532), (1873,0,'log:getLogs',0,'2015-08-16 20:47:01',532), (1874,0,'institution:update',0,'2015-08-16 20:47:01',532), (1875,0,'institution:delete',0,'2015-08-16 20:47:01',532), (1876,0,'institution:add',0,'2015-08-16 20:47:01',532), (1877,0,'groups:update',0,'2015-08-16 20:47:01',532), (1878,0,'groups:showCurriculumEnrolments',0,'2015-08-16 20:47:01',532), (1879,0,'groups:showAccomplished',1,'2015-08-16 20:47:01',532), (1880,0,'groups:expel',0,'2015-08-16 20:47:01',532), (1881,0,'groups:enrol',0,'2015-08-16 20:47:01',532), (1882,0,'mail:postMail',1,'2015-08-16 20:47:01',532), (1883,0,'menu:readBackup',0,'2015-08-16 20:47:01',532), (1887,0,'menu:readObjectives',0,'2015-08-16 20:47:01',532), (1888,0,'menu:readMyInstitution',0,'2015-08-16 20:47:01',532), (1890,0,'menu:readMessages',1,'2015-08-16 20:47:01',532), (1891,0,'menu:readLog',0,'2015-08-16 20:47:01',532), (1892,0,'menu:readInstitution',0,'2015-08-16 20:47:01',532), (1893,0,'menu:readGroup',0,'2015-08-16 20:47:01',532), (1894,0,'menu:readGrade',0,'2015-08-16 20:47:01',532), (1895,0,'menu:readCurriculum',0,'2015-08-16 20:47:01',532), (1896,0,'page:showTeacherDocu',0,'2015-08-16 20:47:01',532), (1897,0,'menu:readConfirm',0,'2015-08-16 20:47:01',532), (1898,0,'menu:readCertificate',0,'2015-08-16 20:47:01',532), (1899,0,'groups:delete',0,'2015-08-16 20:47:01',532), (1900,0,'groups:changeSemester',0,'2015-08-16 20:47:01',532), (1901,0,'groups:add',0,'2015-08-16 20:47:01',532), (1902,0,'dashboard:globalAdmin',0,'2015-08-16 20:47:01',532), (1903,0,'curriculum:update',0,'2015-08-16 20:47:01',532), (1904,0,'curriculum:delete',0,'2015-08-16 20:47:01',532), (1906,0,'curriculum:add',0,'2015-08-16 20:47:01',532), (1907,0,'certificate:update',0,'2015-08-16 20:47:01',532), (1908,0,'certificate:delete',0,'2015-08-16 20:47:01',532), (1909,0,'certificate:add',0,'2015-08-16 20:47:01',532), (1911,0,'backup:getMyBackups',0,'2015-08-16 20:47:01',532), (1912,0,'backup:getAllBackups',0,'2015-08-16 20:47:01',532), (1913,0,'backup:deleteBackup',0,'2015-08-16 20:47:01',532), (1914,0,'backup:addBackup',0,'2015-08-16 20:47:01',532), (1915,0,'user:update',1,'2015-08-16 09:40:01',532), (1916,0,'dashboard:institutionalAdmin',0,'2015-08-16 20:47:01',532), (1917,0,'file:curriculumFiles',1,'2015-08-16 20:47:01',532), (1918,0,'file:delete',0,'2015-08-16 20:47:01',532), (1919,0,'grade:update',0,'2015-08-16 20:47:01',532), (1920,0,'grade:delete',0,'2015-08-16 20:47:01',532), (1921,0,'grade:add',0,'2015-08-16 20:47:01',532), (1922,0,'file:uploadURL',1,'2015-08-16 20:47:01',532), (1923,0,'file:upload',1,'2015-08-16 20:47:01',532), (1924,0,'file:update',1,'2015-08-16 20:47:01',532), (1925,0,'file:solutionUpload',1,'2015-08-16 20:47:01',532), (1926,0,'file:solution',1,'2015-08-16 20:47:01',532), (1927,0,'file:myFiles',1,'2015-08-16 20:47:01',532), (1928,0,'file:myAvatars',0,'2015-08-16 20:47:01',532), (1929,0,'file:loadMaterial',1,'2015-08-16 20:47:01',532), (1930,0,'file:lastFiles',1,'2015-08-16 20:47:01',532), (1931,0,'file:getSolutions',1,'2015-08-16 20:47:01',532), (1932,0,'file:editMaterial',0,'2015-08-16 20:47:01',532), (1933,0,'file:load',1,'2015-08-15 22:24:40',532), (1934,0,'user:dedicate',0,'2015-08-16 20:47:01',532), (1936,0,'user:getInstitution',0,'2015-08-16 20:47:01',532), (1937,0,'user:getHelp',1,'2015-08-16 20:47:01',532), (1938,0,'user:getGroups',0,'2015-08-16 20:47:01',532), (1939,0,'user:getGroupMembers',1,'2015-08-16 20:47:01',532), (1940,0,'user:getCurricula',0,'2015-08-16 20:47:01',532), (1941,0,'user:expelFromInstitution',0,'2015-08-16 20:47:01',532), (1942,0,'user:expelFromGroup',0,'2015-08-16 20:47:01',532), (1943,0,'user:enroleToInstitution',0,'2015-08-16 20:47:01',532), (1944,0,'user:enroleToGroup',0,'2015-08-16 20:47:01',532), (1945,0,'user:delete',0,'2015-08-16 20:47:01',532), (1946,0,'user:confirmUserSidewide',0,'2015-08-16 20:47:01',532), (1947,0,'user:getUsers',1,'2015-08-16 20:47:01',532), (1948,0,'user:listNewUsers',0,'2015-08-16 20:47:01',532), (1949,0,'user:resetPassword',1,'2015-08-16 20:47:01',532), (1950,0,'plugin:useEmbeddableGoogleDocumentViewer',0,'2015-03-10 11:07:26',532), (1954,0,'file:uploadAvatar',1,'2015-03-10 11:07:26',532), (1955,0,'user:userListGroup',0,'2015-08-16 20:47:01',532), (1956,0,'user:userListInstitution',0,'2015-08-16 20:47:01',532), (1957,0,'course:setAccomplishedStatus',0,'2015-08-17 09:13:50',532), (1958,0,'user:userListComplete',0,'2015-08-16 20:47:01',532), (1959,0,'user:userList',1,'2015-08-16 20:47:01',532), (1960,0,'user:updateUser',1,'2015-08-16 20:47:01',532), (1961,0,'user:updateRole',0,'2015-08-16 20:47:01',532), (1962,0,'user:confirmUser',0,'2015-08-16 20:47:01',532), (1963,0,'user:changePassword',1,'2015-08-16 20:47:01',532), (1964,0,'menu:readRole',0,'2015-08-16 20:47:01',532), (1965,0,'page:showAdminDocu',0,'2015-08-16 20:47:01',532), (1966,0,'objectives:updateTerminalObjectives',0,'2015-08-16 20:47:01',532), (1967,0,'objectives:updateEnablingObjectives',0,'2015-08-16 20:47:01',532), (1968,0,'objectives:setStatus',0,'2015-08-16 20:47:01',532), (1970,0,'objectives:deleteTerminalObjectives',0,'2015-08-16 20:47:01',532), (1971,0,'objectives:deleteEnablingObjectives',0,'2015-08-16 20:47:01',532), (1972,0,'objectives:addTerminalObjective',0,'2015-08-16 20:47:01',532), (1973,0,'objectives:addEnablingObjective',0,'2015-08-16 20:47:01',532), (1974,0,'menu:readuserImport',0,'2015-08-16 20:47:01',532), (1975,0,'menu:readUser',0,'2015-08-16 20:47:01',532), (1976,0,'menu:readSubject',0,'2015-08-16 20:47:01',532), (1977,0,'menu:readSemester',0,'2015-08-16 20:47:01',532), (1978,0,'page:showCronjob',0,'2015-08-16 20:47:01',532), (1979,0,'page:showStudentDocu',1,'2015-08-16 20:47:01',532), (1980,0,'subject:update',0,'2015-08-16 20:47:01',532), (1981,0,'semester:update',0,'2015-08-16 20:47:01',532), (1982,0,'user:addUser',0,'2015-08-16 20:47:01',532), (1983,0,'semester:delete',0,'2015-08-16 20:47:01',532), (1984,0,'semester:add',0,'2015-08-16 20:47:01',532), (1985,0,'subject:delete',0,'2015-08-16 20:47:01',532), (1986,0,'schooltype:update',0,'2015-08-16 20:47:01',532), (1987,0,'schooltype:delete',0,'2015-08-16 20:47:01',532), (1988,0,'schooltype:add',0,'2015-08-16 20:47:01',532), (1989,0,'role:update',0,'2015-08-16 20:47:01',532), (1990,0,'role:delete',0,'2015-08-16 20:47:01',532), (1991,0,'role:add',0,'2015-08-16 20:47:01',532), (1992,0,'subject:add',0,'2015-08-16 20:47:01',532), (2119,7,'plugin:useEmbeddableGoogleDocumentViewer',1,'2015-03-10 11:07:26',532), (2120,1,'help:add',1,'2016-10-24 08:27:14',532), (2121,1,'help:delete',1,'2016-10-24 08:27:14',532), (2122,1,'help:update',1,'2016-10-24 08:27:14',532), (2123,8,'file:loadMaterial',1,'2016-11-13 13:23:01',532), (2124,8,'groups:showAccomplished',0,'2016-11-13 13:23:01',532), (2125,1,'course:selfAssessment',1,'2016-11-14 13:34:52',532), (2126,0,'course:selfAssessment',1,'2016-11-15 08:22:13',532), (2127,1,'content:add',1,'2016-11-11 11:47:07',532), (2128,1,'content:update',1,'2016-11-11 11:47:07',532), (2129,1,'content:delete',1,'2016-11-11 11:47:07',532), (2130,5,'content:add',1,'2016-11-11 11:47:07',532), (2131,5,'content:update',1,'2016-11-11 11:47:07',532), (2132,5,'content:delete',1,'2016-11-11 11:47:07',532), (2133,0,'wallet:add',0,'2016-11-11 11:47:07',532), (2134,8,'wallet:add',0,'2016-11-11 11:47:07',532), (2135,1,'wallet:add',1,'2016-11-11 11:47:07',532), (2136,5,'wallet:add',1,'2016-11-11 11:47:07',532), (2137,6,'wallet:add',1,'2016-11-11 11:47:07',532), (2138,7,'wallet:add',1,'2016-11-11 11:47:07',532), (2139,0,'wallet:update',0,'2016-11-11 11:47:07',532), (2140,8,'wallet:update',0,'2016-11-11 11:47:07',532), (2141,1,'wallet:update',1,'2016-11-11 11:47:07',532), (2142,5,'wallet:update',1,'2016-11-11 11:47:07',532), (2143,6,'wallet:update',1,'2016-11-11 11:47:07',532), (2144,7,'wallet:update',1,'2016-11-11 11:47:07',532), (2145,0,'wallet:delete',0,'2016-11-11 11:47:07',532), (2146,8,'wallet:delete',0,'2016-11-11 11:47:07',532), (2147,1,'wallet:delete',1,'2016-11-11 11:47:07',532), (2148,5,'wallet:delete',0,'2016-11-11 11:47:07',532), (2149,6,'wallet:delete',0,'2016-11-11 11:47:07',532), (2150,7,'wallet:delete',0,'2016-11-11 11:47:07',532), (2151,0,'wallet:workon',1,'2016-11-11 11:47:07',532), (2152,8,'wallet:workon',0,'2016-11-11 11:47:07',532), (2153,1,'wallet:workon',1,'2016-11-11 11:47:07',532), (2154,5,'wallet:workon',1,'2016-11-11 11:47:07',532), (2155,6,'wallet:workon',1,'2016-11-11 11:47:07',532), (2156,7,'wallet:workon',1,'2016-11-11 11:47:07',532), (2157,0,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2158,1,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2159,5,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2160,6,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2161,7,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2162,8,'menu:readWallet',1,'2016-11-11 11:47:07',532), (2163,1,'wallet:share',1,'2016-11-11 11:47:07',532), (2164,1,'comment:add',1,'2016-11-11 11:47:07',532), (2165,1,'comment:update',1,'2016-11-11 11:47:07',532), (2166,1,'comment:delete',1,'2016-11-11 11:47:07',532), (2167,1,'install:dedicate',1,'2016-11-11 11:47:07',532); /*!40000 ALTER TABLE `role_capabilities` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle roles # ------------------------------------------------------------ DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `role` varchar(250) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `order_id` tinyint(4) unsigned DEFAULT '99', PRIMARY KEY (`id`), KEY `rel_ro_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `roles` WRITE; /*!40000 ALTER TABLE `roles` DISABLE KEYS */; INSERT INTO `roles` (`id`, `role`, `description`, `creation_time`, `creator_id`, `order_id`) VALUES (0,'Schüler','Schülerrolle','2015-08-14 19:40:11',532,4), (1,'Administrator','Benutzer hat alle Rechte','2013-08-09 07:06:00',532,0), (5,'Creator','Erstellt Lehrpläne','2015-03-10 11:07:26',532,1), (6,'Schuladmin','Verwaltet Zugänge an der eigenen Institution','2015-03-10 11:07:57',532,2), (7,'Lehrer','Lehrer an einer Institution','2015-03-10 11:08:32',532,3), (8,'Gast','Gast','2016-11-13 13:23:01',532,99); /*!40000 ALTER TABLE `roles` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle schooltype # ------------------------------------------------------------ DROP TABLE IF EXISTS `schooltype`; CREATE TABLE `schooltype` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `schooltype` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `country_id` char(2) NOT NULL DEFAULT '56', `state_id` int(11) unsigned NOT NULL DEFAULT '11', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_sc_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `schooltype` WRITE; /*!40000 ALTER TABLE `schooltype` DISABLE KEYS */; INSERT INTO `schooltype` (`id`, `schooltype`, `description`, `country_id`, `state_id`, `creation_time`, `creator_id`) VALUES (1,'Realschule plus','Realschule plus','56',11,'0000-00-00 00:00:00',532), (2,'IGS','Integrierte Gesamtschule','56',11,'0000-00-00 00:00:00',532), (3,'Gymnasium','Gymnasium','56',11,'0000-00-00 00:00:00',532), (5,'Förderschule','','56',11,'0000-00-00 00:00:00',532), (6,'Hauptschule','Hauptschule','56',11,'0000-00-00 00:00:00',532), (8,'Universität','Koblenz-Landau','56',11,'0000-00-00 00:00:00',532), (9,'Pädagogisches Landesinstitut','56','DE',11,'2015-08-14 20:42:56',532), (10,'Gesamtschule','Gesamtschule','56',11,'2016-01-25 14:46:41',532), (12,'Einrichtung','Medienbildung','56',11,'2016-07-07 09:20:42',532), (13,'Grundschule','Grundschule','56',11,'2016-11-13 13:57:12',532); /*!40000 ALTER TABLE `schooltype` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle semester # ------------------------------------------------------------ DROP TABLE IF EXISTS `semester`; CREATE TABLE `semester` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `semester` varchar(64) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `begin` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `end` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `institution_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_se_institution` (`institution_id`), KEY `rel_se_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `semester` WRITE; /*!40000 ALTER TABLE `semester` DISABLE KEYS */; INSERT INTO `semester` (`id`, `semester`, `description`, `begin`, `end`, `creation_time`, `creator_id`, `institution_id`) VALUES (30,'Schuljahr 2015/16','Medienkompass','2015-08-27 00:00:00','2016-02-24 00:00:00','2015-08-16 21:34:23',532,56); /*!40000 ALTER TABLE `semester` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle state # ------------------------------------------------------------ DROP TABLE IF EXISTS `state`; CREATE TABLE `state` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `state` varchar(200) DEFAULT '', `country_code` char(2) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `rel_st_country` (`country_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `state` WRITE; /*!40000 ALTER TABLE `state` DISABLE KEYS */; INSERT INTO `state` (`id`, `state`, `country_code`, `creation_time`) VALUES (2,'Bayern','DE','2013-08-09 09:05:18'), (3,'Berlin','DE','2013-08-09 09:05:18'), (4,'Brandenburg','DE','2013-08-09 09:05:18'), (5,'Bremen','DE','2013-08-09 09:05:18'), (6,'Hamburg','DE','2013-08-09 09:05:18'), (7,'Hessen','DE','2013-08-09 09:05:18'), (8,'Mecklenburg-Vorpommern','DE','2013-08-09 09:05:18'), (9,'Niedersachsen','DE','2013-08-09 09:05:18'), (10,'Nordrhein-Westfalen','DE','2013-08-09 09:05:18'), (11,'Rheinland-Pfalz','DE','2013-08-09 09:05:18'), (12,'Saarland','DE','2013-08-09 09:05:18'), (13,'Sachsen','DE','2013-08-09 09:05:18'), (14,'Sachsen-Anhalt','DE','2013-08-09 09:05:18'), (15,'Schleswig-Holstein','DE','2013-08-09 09:05:18'), (17,'Thueringen','DE','2013-08-09 09:05:18'), (18,'Baden-Wuerttemberg','DE','2013-08-09 09:05:18'), (19,'Burgenland','AT','2013-08-09 09:05:18'), (20,'Kärnten','AT','2013-08-09 09:05:18'), (21,'Niederösterreich','AT','2013-08-09 09:05:18'), (22,'Oberösterreich','AT','2013-08-09 09:05:18'), (23,'Salzburg','AT','2013-08-09 09:05:18'), (24,'Steiermark','AT','2013-08-09 09:05:18'), (25,'Tirol','AT','2013-08-09 09:05:18'), (26,'Voralberg','AT','2013-08-09 09:05:18'), (27,'Wien','AT','2013-08-09 09:05:18'); /*!40000 ALTER TABLE `state` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle subjects # ------------------------------------------------------------ DROP TABLE IF EXISTS `subjects`; CREATE TABLE `subjects` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `subject` varchar(200) DEFAULT NULL, `description` varchar(2048) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `institution_id` int(10) unsigned NOT NULL, `subject_short` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_su_creator` (`creator_id`), KEY `rel_su_institution` (`institution_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `subjects` WRITE; /*!40000 ALTER TABLE `subjects` DISABLE KEYS */; INSERT INTO `subjects` (`id`, `subject`, `description`, `creation_time`, `creator_id`, `institution_id`, `subject_short`) VALUES (1,'Mathematik','Unterrichtsfach Mathematik','2013-08-09 09:05:42',532,56,'MA'), (2,'Deutsch','Unterrichtsfach Deutsch','2013-08-09 09:05:42',532,56,'DE'), (3,'Englisch','Unterrichtsfach Englisch','2013-08-09 09:05:42',532,56,'EN'), (5,'Musik','Unterrichtsfach Musik','2013-08-09 09:05:42',532,56,'MU'), (6,'Physik','Unterrichtsfach Physik','2013-08-09 09:05:42',532,56,'PH'), (7,'Biologie','Unterrichtsfach Biologie','2013-08-09 09:05:42',532,56,'BIO'), (8,'Chemie','Unterrichtsfach Chemie','2013-08-09 09:05:42',532,56,'CH'), (9,'Erdkunde','Unterrichtsfach Erdkunde','2013-08-09 09:05:42',532,56,'EK'), (10,'Sozialkunde','Unterrichtsfach Sozialkunde','2013-08-09 09:05:42',532,56,'SOZ'), (11,'Geschichte','Unterrichtsfach Geschichte','2013-08-09 09:05:42',532,56,'G'), (12,'Medienbildung','Medienkompass Rheinland-Pfalz','2013-08-09 09:05:42',532,56,'INF'), (13,'Kunst','Unterrichtsfach Bildende Kunst','2013-08-09 09:05:42',532,56,'BK'), (14,'Sport','Unterrichtsfach Sport','2013-08-09 09:05:42',532,56,'SP'), (16,'Französisch','Unterrichtsfach Französisch','2013-08-09 09:05:42',532,56,'FR'), (17,'Erdkunde - Geschichte - Sozialkunde','Gemeinsames Unterrichtsfach Erdkunde - Geschichte - Sozialkunde','2013-08-09 09:05:42',532,56,'EGS'), (36,'Naturwissenschaften','Gemeinsames Unterrichtsfach Biologie - Physik - Chemie','2013-08-17 17:06:20',532,56,'NAWI'); /*!40000 ALTER TABLE `subjects` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle task # ------------------------------------------------------------ DROP TABLE IF EXISTS `task`; CREATE TABLE `task` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `task` varchar(2048) DEFAULT '', `description` text, `creation_time` timestamp NULL DEFAULT NULL, `timestart` timestamp NULL DEFAULT NULL, `timeend` timestamp NULL DEFAULT NULL, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_ta_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle task_enrolments # ------------------------------------------------------------ DROP TABLE IF EXISTS `task_enrolments`; CREATE TABLE `task_enrolments` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `task_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned NOT NULL, `reference_id` int(11) unsigned DEFAULT NULL, `status` int(11) DEFAULT NULL, `creator_id` int(11) unsigned NOT NULL, `creation_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_te_task` (`task_id`), KEY `rel_te_contex` (`context_id`), KEY `rel_te_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle terminalObjectives # ------------------------------------------------------------ DROP TABLE IF EXISTS `terminalObjectives`; CREATE TABLE `terminalObjectives` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `terminal_objective` text, `description` text, `curriculum_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `order_id` tinyint(4) NOT NULL DEFAULT '0', `repeat_interval` int(11) unsigned NOT NULL DEFAULT '0', `color` char(9) DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_to_curriculum` (`curriculum_id`), KEY `rel_to_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `terminalObjectives` WRITE; /*!40000 ALTER TABLE `terminalObjectives` DISABLE KEYS */; INSERT INTO `terminalObjectives` (`id`, `terminal_objective`, `description`, `curriculum_id`, `creation_time`, `creator_id`, `order_id`, `repeat_interval`, `color`) VALUES (324,'Informieren und Recherchieren - TK 1 Fundierte Medienrecherchen durchführen und neue Informationsquellen erschließen','<p>TK 1 Fundierte Medienrecherchen durchf&uuml;hren und neue Informationsquellen erschlie&szlig;en</p>\r\n<p>- Rahmenplan IB: nutzen gezielt verschiedene Dienste im Internet, stellen Entstehung, Strukturen und aktuelle Entwicklungen des Internets dar. - erl&auml;utern technische Grundvoraussetzungen des Internetzugangs.(B&amp;A)</p>',109,'2016-01-14 20:13:29',532,1,0,'#4A88CB'), (325,'Informieren und Recherchieren - TK 2 Unter Beachtung des Urheberrechtes korrekt mit Zitaten und Quellen umgehen','<p>TK 2 Unter Beachtung des Urheberrechtes korrekt mit Zitaten und Quellen umgehen</p>',109,'2016-01-14 20:13:29',532,2,0,'#4a88cb'), (326,'Informieren und Recherchieren - TK 3 Inhalt, Struktur, Darstellung und Zielrichtung von digitalen Informationsquellen vergleichen, analysieren und bewerten','<p>TK 3 Inhalt, Struktur, Darstellung und Zielrichtung von digitalen Informationsquellen vergleichen, analysieren und bewerten</p>\r\n<p>Bezug: Rahmenplan IB RLP 7/8</p>',109,'2016-01-14 20:13:29',532,3,0,'#4a88cb'), (327,'Informieren und Recherchieren - TK 4 Themenrelevante Informationen filtern, strukturieren und unter Beachtung der Rechte aufbereiten','<p>TK 4 Themenrelevante Informationen filtern, strukturieren und unter Beachtung der Rechte aufbereiten</p>',109,'2016-01-14 20:13:29',532,4,0,'#4a88cb'), (328,'Kommunizieren und Kooperieren - TK 1 Verschiedene Kommunikationswege und –werkzeuge kennen und für die eigenen Zwecke und Ziele nutzen','<p>TK 1 Verschiedene Kommunikationswege und &ndash;werkzeuge kennen und f&uuml;r die eigenen Zwecke und Ziele nutzen</p>',109,'2016-01-14 20:13:29',532,5,0,'#DBECD0'), (329,'Kommunizieren und Kooperieren - TK 2 Empfehlungen und Regeln zum Schutz der eigenen Daten und zur Achtung von Persönlichkeitsrechten anwenden','<p>TK 2 Empfehlungen und Regeln zum Schutz der eigenen Daten und zur Achtung von Pers&ouml;nlichkeitsrechten anwenden</p>',109,'2016-01-14 20:13:29',532,6,0,'#DBECD0'), (330,'Kommunizieren und Kooperieren TK 3 Nachrichten und komplexe Botschaften verfassen und versenden / veröffentlichen','<p>TK 3 Nachrichten und komplexe Botschaften verfassen und versenden / ver&ouml;ffentlichen</p>',109,'2016-01-14 20:13:29',532,7,0,'#DBECD0'), (331,'Kommunizieren und Kooperieren TK 4 Kommunikationsregeln anwenden, Botschaften auswerten und angemessen Rückmeldung geben.','<p>TK 4 Kommunikationsregeln anwenden, Botschaften auswerten und angemessen R&uuml;ckmeldung geben.</p>',109,'2016-01-14 20:13:29',532,8,0,'#DBECD0'), (332,'Produzieren und Präsentieren - TK 1 Medienproduktionen angeleitet planen','<p>TK 1 Medienproduktionen angeleitet planen</p>',109,'2016-01-14 20:13:29',532,9,0,'#F4BE9C'), (333,'Produzieren und Präsentieren TK 2 Ein Medienprodukt angeleitet erstellen und unterschiedliche Gestaltungselemente bewusst und zielgruppenorientiert einsetzen','<p>TK 2 Ein Medienprodukt angeleitet erstellen und unterschiedliche Gestaltungselemente bewusst und zielgruppenorientiert einsetzen</p>',109,'2016-01-14 20:13:29',532,10,0,'#F4BE9C'), (334,'Produzieren und Präsentieren TK 3 Passende Präsentationsform aus einem vorgegebenen Repertoire auswählen und anwenden, Präsentationsregeln beachten','<p>TK 3 Passende Pr&auml;sentationsform aus einem vorgegebenen Repertoire ausw&auml;hlen und anwenden, Pr&auml;sentationsregeln beachten</p>',109,'2016-01-14 20:13:30',532,11,0,'#F4BE9C'), (335,'Produzieren und Präsentieren TK 4 Möglichkeiten einer digitalen Veröffentlichung kennen und mit Hilfestellung nutzen','<p>TK 4 M&ouml;glichkeiten einer digitalen Ver&ouml;ffentlichung kennen und mit Hilfestellung nutzen</p>',109,'2016-01-14 20:13:30',532,12,0,'#F4BE9C'), (336,'Analysieren und Reflektieren TK 1 Einfluss und Wirkung typischer Darstellungsformen und Stilmittel analysieren und bewerten','<p>TK 1 Einfluss und Wirkung typischer Darstellungsformen und Stilmittel analysieren und bewerten</p>',109,'2016-01-14 20:13:30',532,13,0,'#99C87B'), (337,'Analysieren und Reflektieren TK 2 Durch Medien vermittelte Werte, Rollen- und Wirklichkeitsvorstellungen analysieren und hinterfragen','<p>TK 2 Durch Medien vermittelte Werte, Rollen- und Wirklichkeitsvorstellungen analysieren und hinterfragen</p>',109,'2016-01-14 20:13:30',532,14,0,'#99C87B'), (338,'Analysieren und Reflektieren TK 3 Sich die eigene Mediennutzung bewusst machen, hinterfragen, einordnen und im Bedarfsfall Beratungsangebote nutzen','<p>TK 3 Sich die eigene Mediennutzung bewusst machen, hinterfragen, einordnen und im Bedarfsfall Beratungsangebote nutzen</p>',109,'2016-01-14 20:13:30',532,15,0,'#99C87B'), (339,'Analysieren und Reflektieren TK 4 Entwicklung und wirtschaftliche, gesellschaftliche und politische Bedeutung der Massenmedien und reflektieren','<p>TK 4 Entwicklung und wirtschaftliche, gesellschaftliche und politische Bedeutung der Massenmedien und reflektieren</p>',109,'2016-01-14 20:13:30',532,16,0,'#99C87B'), (340,'Bedienen und Anwenden TK 1 Ein Betriebssystem bedienen und konfigurieren (Installation von Software, Dateiverwaltung)','<p>TK 1 Ein Betriebssystem bedienen und konfigurieren (Installation von Software, Dateiverwaltung)</p>',109,'2016-01-14 20:13:30',532,17,0,'#D0D0D0'), (341,'Bedienen und Anwenden TK 2 Erweiterte Funktionen von Textverarbeitungs-, Präsentations- und Bildbearbeitungsprogrammen anwenden','<p>TK 2 Erweiterte Funktionen von Textverarbeitungs-, Pr&auml;sentations- und Bildbearbeitungsprogrammen anwenden</p>\r\n<p>Bezug: Rahmenplan IB RLP 7/8</p>',109,'2016-01-14 20:13:30',532,18,0,'#D0D0D0'), (342,'Bedienen und Anwenden TK 3 Tabellenkalkulationsprogramme anwenden','<p>TK 3 Tabellenkalkulationsprogramme anwenden</p>\r\n<p>Bezug: Rahmenplan IB RLP 7/8</p>',109,'2016-01-14 20:13:30',532,19,0,'#D0D0D0'); /*!40000 ALTER TABLE `terminalObjectives` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle user_absent # ------------------------------------------------------------ DROP TABLE IF EXISTS `user_absent`; CREATE TABLE `user_absent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `cb_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `reason` varchar(2048) DEFAULT '', `done` timestamp NULL DEFAULT NULL, `status` int(11) DEFAULT '0', `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_ub_coursebook` (`cb_id`), KEY `rel_ub_user` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle user_accomplished # ------------------------------------------------------------ DROP TABLE IF EXISTS `user_accomplished`; CREATE TABLE `user_accomplished` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `reference_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `status_id` char(2) DEFAULT NULL COMMENT '0=rot, 1 = grün, 2 = orange, 3 = weiß', `accomplished_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `rel_ua_enabling_objective` (`reference_id`), KEY `rel_ua_user` (`user_id`), KEY `rel_ua_creator` (`creator_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle user_list # ------------------------------------------------------------ DROP TABLE IF EXISTS `user_list`; CREATE TABLE `user_list` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `reference_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `status` int(11) DEFAULT NULL COMMENT '0 = not present; 1 = present / active', `context_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `rel_ul_user` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle users # ------------------------------------------------------------ DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(250) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `last_login` timestamp NULL DEFAULT NULL, `last_action` timestamp NULL DEFAULT NULL, `email` text NOT NULL, `confirmed` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1 = User kann sich Anmelden
2 = nicht benutzt
3 = Passwort ändern 
4 = User noch nicht von Admin freigegeben', `firstname` text NOT NULL, `lastname` text NOT NULL, `postalcode` text, `city` text, `state_id` int(11) unsigned DEFAULT NULL, `country_id` int(11) unsigned DEFAULT NULL, `avatar_id` int(11) unsigned DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, `paginator_limit` smallint(6) DEFAULT NULL, `acc_days` smallint(6) DEFAULT NULL, `semester_id` int(10) unsigned DEFAULT NULL, `token` varchar(32) DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_USER_ID` (`id`), KEY `rel_us_state` (`state_id`), KEY `rel_us_country` (`country_id`), KEY `rel_us_avatar` (`avatar_id`), KEY `rel_us_creator` (`creator_id`), KEY `rel_us_semester` (`semester_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` (`id`, `username`, `password`, `last_login`, `last_action`, `email`, `confirmed`, `firstname`, `lastname`, `postalcode`, `city`, `state_id`, `country_id`, `avatar_id`, `creation_time`, `creator_id`, `paginator_limit`, `acc_days`, `semester_id`, `token`) VALUES (374,'michaellang','PW will be set during install','2016-11-16 09:17:52','2016-11-16 08:55:10','<EMAIL>',1,'Michaeld','Lang','','',11,56,0,'2016-01-26 22:53:17',532,30,7,NULL,'32CFB961B757452731EDEA1299816CDD'), (375,'nataschajessen','PW will be set during install','2016-12-14 19:42:07','2016-12-14 19:36:17','<EMAIL>',1,'Natascha','Jessen','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,30,'86B34781658993C8928C6FD87BF06978'), (376,'elkesieburg','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Elke','Sieburg','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (377,'guentherrohe','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Günther','Rohe','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (378,'margarethesixtus','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Margarethe','Sixtus','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (379,'mathiasaustrup','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Mathias','Austrup','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (380,'baerbeltretter','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Bärbel','Tretter','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (381,'miriammengel','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Miriam','Mengel','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (382,'hellastoffers','PW will be set during install','2016-11-16 09:27:14','2016-11-16 09:31:36','<EMAIL>',1,'Hella','Stoffers','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,'6F6D1C09C158587B8E65F0D4B6D6A276'), (383,'gretakreimer','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Greta','Kreimer','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (384,'steffenbierig','PW will be set during install','2016-05-26 08:49:24','2016-05-26 08:49:58','<EMAIL>',1,'Steffen','Bierig','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,'37FA708EB28E13806994DEDFC609ED64'), (385,'moniquekunert','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Monique','Kunert','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (386,'tabeafrohn','PW will be set during install','2016-03-01 12:49:02','2016-03-01 12:49:02','<EMAIL>',1,'Tabea','Frohn','','',11,56,0,'2016-03-25 10:23:17',532,30,7,30,'99077633691B05F26DDA41C768559612'), (387,'kathrinarendt','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Kathrin','Arendt','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (388,'helgaroehr','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Helga','Röhr','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (389,'stevenpape','PW will be set during install','2016-12-07 09:34:29','2016-12-07 09:07:03','<EMAIL>',1,'Steven','Pape','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,30,'FDFAAF2CFA32712680519E9F5E3D259B'), (390,'wilhelmstrehlow','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Wilhelm','Strehlow','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (391,'kristamellinghoff','PW will be set during install','2016-12-07 09:39:47','2016-12-07 09:11:16','<EMAIL>',1,'Krista','Mellinghoff','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,30,'3AEA235EA11636700307193C7EBFCAAE'), (392,'franzrothermel','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Franz','Rothermel','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (393,'heinzjochmann','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Heinz','Jochmann','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (394,'anjamutschler','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Anja','Mutschler','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (395,'jasperneufeld','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Jasper','Neufeld','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (396,'timonwilliams','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Timon','Williams','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (397,'brittastuber','PW will be set during install',NULL,NULL,'<EMAIL>',1,'Britta','Stuber','','',11,56,0,'2016-01-26 22:53:17',532,NULL,NULL,NULL,NULL), (531,'gast','PW will be set during install','2016-12-15 22:38:05','2016-12-15 22:31:33','<EMAIL>',1,'Demo','Zugang','','',11,56,0,'2016-11-13 13:24:38',532,30,7,NULL,'F5E634A88A22435F5E7D46F34C0BC17D'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; # Export von Tabelle wallet # ------------------------------------------------------------ DROP TABLE IF EXISTS `wallet`; CREATE TABLE `wallet` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` char(255) DEFAULT NULL, `description` text, `file_id` int(11) unsigned DEFAULT NULL, `course_id` int(11) unsigned DEFAULT NULL, `user_list_id` int(11) unsigned DEFAULT NULL, `subject_id` int(11) DEFAULT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `timestart` timestamp NULL DEFAULT NULL, `timeend` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle wallet_content # ------------------------------------------------------------ DROP TABLE IF EXISTS `wallet_content`; CREATE TABLE `wallet_content` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` char(25) DEFAULT NULL, `wallet_id` int(11) unsigned NOT NULL, `user_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned NOT NULL, `reference_id` int(11) unsigned NOT NULL, `width_class` char(255) NOT NULL DEFAULT 'col-xs-12', `position` char(255) NOT NULL, `order_id` tinyint(4) unsigned NOT NULL DEFAULT '0', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle wallet_objectives # ------------------------------------------------------------ DROP TABLE IF EXISTS `wallet_objectives`; CREATE TABLE `wallet_objectives` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `wallet_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned NOT NULL, `reference_id` int(11) unsigned NOT NULL, `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # Export von Tabelle wallet_sharing # ------------------------------------------------------------ DROP TABLE IF EXISTS `wallet_sharing`; CREATE TABLE `wallet_sharing` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `wallet_id` int(11) unsigned NOT NULL, `reference_id` int(11) unsigned NOT NULL, `context_id` int(11) unsigned NOT NULL, `permission` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0 = read; 1= comment; 2 = write', `creation_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `timestart` timestamp NULL DEFAULT NULL, `timeend` timestamp NULL DEFAULT NULL, `creator_id` int(11) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
-- Add features type column to atlas collection. See AtlasCollection#featuresType for details. ALTER TABLE `atlas`.`atlascollection` ADD COLUMN `featuresType` VARCHAR(45) NOT NULL AFTER `definition`;
<reponame>ulkeba/openolat -- eportfolio arteafcts create table o_ep_artefact ( artefact_id int8 not null, artefact_type varchar(32) not null, version int4 not null, creationdate timestamp, collection_date timestamp, title varchar(512), description varchar(4000), signature int8 default 0, businesspath varchar(2048), fulltextcontent text, reflexion text, source varchar(2048), add_prop1 varchar(2048), add_prop2 varchar(2048), add_prop3 varchar(2048), fk_struct_el_id int8, fk_artefact_auth_id int8 not null, primary key (artefact_id) ); alter table o_ep_artefact add constraint FKF26C8375236F28X foreign key (fk_artefact_auth_id) references o_bs_identity (id); -- eportfolio collect restrictions create table o_ep_collect_restriction ( collect_id int8 not null, version int4 not null, creationdate timestamp, artefact_type varchar(256), amount int4 not null default -1, restriction varchar(32), pos int4 not null default 0, fk_struct_el_id int8, primary key (collect_id) ); -- eportfolio structure element create table o_ep_struct_el ( structure_id int8 not null, structure_type varchar(32) not null, version int4 not null, creationdate timestamp, returndate timestamp default null, copydate timestamp default null, lastsyncheddate timestamp default null, deadline timestamp default null, title varchar(512), description varchar(2048), struct_el_source int8, target_resname varchar(50), target_resid int8, target_ressubpath varchar(2048), target_businesspath varchar(2048), style varchar(128), status varchar(32), viewmode varchar(32), fk_struct_root_id int8, fk_struct_root_map_id int8, fk_map_source_id int8, fk_ownergroup int8, fk_olatresource int8 not null, primary key (structure_id) ); alter table o_ep_struct_el add constraint FKF26C8375236F26X foreign key (fk_olatresource) references o_olatresource (resource_id); alter table o_ep_struct_el add constraint FKF26C8375236F29X foreign key (fk_ownergroup) references o_bs_secgroup (id); alter table o_ep_struct_el add constraint FK4ECC1C8D636191A1 foreign key (fk_map_source_id) references o_ep_struct_el (structure_id); alter table o_ep_struct_el add constraint FK4ECC1C8D76990817 foreign key (fk_struct_root_id) references o_ep_struct_el (structure_id); alter table o_ep_struct_el add constraint FK4ECC1C8D76990818 foreign key (fk_struct_root_map_id) references o_ep_struct_el (structure_id); alter table o_ep_artefact add constraint FKA0070D12316A97B4 foreign key (fk_struct_el_id) references o_ep_struct_el (structure_id); alter table o_ep_collect_restriction add constraint FKA0070D12316A97B5 foreign key (fk_struct_el_id) references o_ep_struct_el (structure_id); -- eportfolio structure to structure link create table o_ep_struct_struct_link ( link_id int8 not null, version int4 not null, creationdate timestamp, pos int4 not null default 0, fk_struct_parent_id int8 not null, fk_struct_child_id int8 not null, primary key (link_id) ); alter table o_ep_struct_struct_link add constraint FKF26C8375236F22X foreign key (fk_struct_parent_id) references o_ep_struct_el (structure_id); alter table o_ep_struct_struct_link add constraint FKF26C8375236F23X foreign key (fk_struct_child_id) references o_ep_struct_el (structure_id); -- eportfolio structure to artefact link create table o_ep_struct_artefact_link ( link_id int8 not null, version int4 not null, creationdate timestamp, pos int4 not null default 0, reflexion text, fk_auth_id int8, fk_struct_id int8 not null, fk_artefact_id int8 not null, primary key (link_id) ); alter table o_ep_struct_artefact_link add constraint FKF26C8375236F24X foreign key (fk_struct_id) references o_ep_struct_el (structure_id); alter table o_ep_struct_artefact_link add constraint FKF26C8375236F25X foreign key (fk_artefact_id) references o_ep_artefact (artefact_id); alter table o_ep_struct_artefact_link add constraint FKF26C8375236F26Y foreign key (fk_auth_id) references o_bs_identity (id); -- invitation create table o_bs_invitation ( id int8 not null, version int4 not null, creationdate timestamp, token varchar(64) not null, first_name varchar(64), last_name varchar(64), mail varchar(128), fk_secgroup int8, primary key (id) ); alter table o_bs_invitation add constraint FKF26C8375236F27X foreign key (fk_secgroup) references o_bs_secgroup (id); -- tagging create table o_tag ( tag_id int8 not null, version int4 not null, creationdate timestamp, tag varchar(128) not null, resname varchar(50) not null, resid int8 not null, ressubpath varchar(2048), businesspath varchar(2048), fk_author_id int8 not null, primary key (tag_id) ); alter table o_tag add constraint FK6491FCA5A4FA5DC foreign key (fk_author_id) references o_bs_identity (id); -- update policy alter table o_bs_policy add column apply_from timestamp default null; alter table o_bs_policy add column apply_to timestamp default null; -- eliminate ORACLE reserved words alter table o_repositoryentry rename column access to accesscode; alter table o_checkpoint rename column mode to modestring; drop index access_idx; create index access_idx on o_repositoryentry (accesscode); -- info messages create table o_info_message ( info_id int8 NOT NULL, version int4 NOT NULL, creationdate timestamp, modificationdate timestamp, title varchar(2048), message varchar(2048), resname varchar(50) NOT NULL, resid int8 NOT NULL, ressubpath varchar(2048), businesspath varchar(2048), fk_author_id int8, fk_modifier_id int8, primary key (info_id) ); create index imsg_resid_idx on o_info_message (resid); create index imsg_author_idx on o_info_message (fk_author_id); alter table o_info_message add constraint FKF85553465A4FA5DC foreign key (fk_author_id) references o_bs_identity (id); create index imsg_modifier_idx on o_info_message (fk_modifier_id); alter table o_info_message add constraint FKF85553465A4FA5EF foreign key (fk_modifier_id) references o_bs_identity (id); --projectbroker.project.title was too short for title with äöü alter table o_projectbroker_project alter title type varchar(150);
<reponame>imajou/IU-F18-DMD<gh_stars>0 /* 3.1 */ select car.car_id from cars as car, orders as o, transactions as t, customers as c where c.name = (%s) AND c.customer_id = t.customer_id AND t.transaction_id = o.transaction_id AND car.car_id = o.car_id AND car.color = (%s) AND car.plate_number like (%s);
<filename>AMDM_SQLITE/create_tables.sql<gh_stars>0 CREATE TABLE IF NOT EXISTS USER( USER_PR INTEGER PRIMARY KEY AUTOINCREMENT, USER_ARMYNUMBER CHAR(100) NOT NULL, USER_NAME CHAR(100) NOT NULL, PASSWORD CHAR(100) NOT NULL, USER_DISCHARGEDATE DATETIME, UPDATEDATE DATETIME NOT NULL ); CREATE TABLE IF NOT EXISTS PHONE( PHONE_PR INTEGER PRIMARY KEY AUTOINCREMENT, USER_UNIQUENUM INTEGER NOT NULL, PHONE_IP CHAR(100) NOT NULL, IS_LOCK INTEGER NOT NULL DEFAULT 0, CONSTRAINT UNIQUENUM FOREIGN KEY(USER_UNIQUENUM) REFERENCES USER(USER_PR) ); CREATE TABLE IF NOT EXISTS PHONECASE( PHONECASE_PR INTEGER PRIMARY KEY AUTOINCREMENT, IS_LOCK INTEGER NOT NULL, PHONE1_ID INTEGER, PHONE2_ID INTEGER, PHONE3_ID INTEGER, PHONE4_ID INTEGER, CONSTRAINT PHONESTRAINT1 FOREIGN KEY(PHONE1_ID) REFERENCES PHONE(PHONE_PR), CONSTRAINT PHONESTRAINT1 FOREIGN KEY(PHONE2_ID) REFERENCES PHONE(PHONE_PR), CONSTRAINT PHONESTRAINT1 FOREIGN KEY(PHONE3_ID) REFERENCES PHONE(PHONE_PR), CONSTRAINT PHONESTRAINT1 FOREIGN KEY(PHONE4_ID) REFERENCES PHONE(PHONE_PR) ); CREATE TABLE IF NOT EXISTS LOCKMANAGE( LOCKMANAGE_PR INTEGER PRIMARY KEY AUTOINCREMENT, PHONE_UNIQUENUM INTEGER NOT NULL, MANAGETIME DATETIME NOT NULL, IS_LOCK INTEGER NOT NULL, CONSTRAINT MANAGESTRAINT1 FOREIGN KEY(PHONE_UNIQUENUM) REFERENCES PHONE(PHONE_PR) );
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : smart_info Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-05-30 15:41:10 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for activity_member -- ---------------------------- DROP TABLE IF EXISTS `activity_member`; CREATE TABLE `activity_member` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '编号', `activity_id` int(11) DEFAULT NULL COMMENT '活动编号', `customer_id` int(11) DEFAULT NULL COMMENT '客户编号', `invited` int(11) DEFAULT '0' COMMENT '已邀请', `confirm` int(11) DEFAULT '0' COMMENT '已确认', `reject` int(11) DEFAULT '0' COMMENT '已拒绝', `seats` int(11) DEFAULT '0' COMMENT '预留人数', `appear` int(11) DEFAULT '0' COMMENT '到场人数', `comment` varchar(256) DEFAULT NULL COMMENT '备注', PRIMARY KEY (`id`), UNIQUE KEY `idx_act_cus` (`activity_id`,`customer_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<reponame>pcstout/study-explorer<filename>hbgd_data_store_server/data/sql/002_update_studies_studyfield.sql UPDATE studies_studyfield SET label = 'Study ID', field_type = 'str', big_order = -1, lil_order = -1 WHERE field_name = 'Study_ID'; UPDATE studies_studyfield SET label = 'Short Description', field_type = 'str', big_order = 1, lil_order = -1 WHERE field_name = 'Short_Description'; UPDATE studies_studyfield SET label = 'Study Description', field_type = 'str', big_order = 2, lil_order = 1 WHERE field_name = 'Study_Description'; UPDATE studies_studyfield SET label = 'Alternate ID', field_type = 'str', big_order = 3, lil_order = 7 WHERE field_name = 'Alternate_ID'; UPDATE studies_studyfield SET label = 'Subject Count', field_type = 'int', big_order = 4, lil_order = 6 WHERE field_name = 'Subject_Count'; UPDATE studies_studyfield SET label = 'Data Status', field_type = 'str', big_order = 5, lil_order = 8 WHERE field_name = 'Data_Status'; UPDATE studies_studyfield SET label = 'Country', field_type = 'list', big_order = 6, lil_order = 3 WHERE field_name = 'Country'; UPDATE studies_studyfield SET label = 'Study Type', field_type = 'str', big_order = 7, lil_order = 4 WHERE field_name = 'Study_Type'; UPDATE studies_studyfield SET label = 'Intervention Type', field_type = 'str', big_order = 8, lil_order = 5 WHERE field_name = 'Intervention_Type'; UPDATE studies_studyfield SET label = 'Enrollment Age Lower Limit', field_type = 'str', big_order = 9, lil_order = 9 WHERE field_name = 'Age_Lower_Limit'; UPDATE studies_studyfield SET label = 'Enrollment Age Upper Limit', field_type = 'str', big_order = 11, lil_order = 10 WHERE field_name = 'Age_Upper_Limit'; UPDATE studies_studyfield SET label = 'Start Year', field_type = 'int', big_order = 13, lil_order = -1 WHERE field_name = 'Start_Year'; UPDATE studies_studyfield SET label = 'Population', field_type = 'str', big_order = 14, lil_order = 2 WHERE field_name = 'Population'; UPDATE studies_studyfield SET label = 'Stop Year', field_type = 'int', big_order = 14, lil_order = -1 WHERE field_name = 'Stop_Year'; UPDATE studies_studyfield SET label = 'Repository Subfolder', field_type = 'str', big_order = 15, lil_order = -1 WHERE field_name = 'Repository_Subfolder'; UPDATE studies_studyfield SET label = 'Repository Name', field_type = 'str', big_order = 16, lil_order = -1 WHERE field_name = 'Repository_Name'; UPDATE studies_studyfield SET label = 'Study Website', field_type = 'str', big_order = 17, lil_order = 11 WHERE field_name = 'Study_URL';
USE library; DELETE FROM author; INSERT INTO author (id, first_names, last_name) VALUES (1, '<NAME>.', 'Montgomery'), (2, 'George', 'Eliot'), (3, 'Nathaniel', 'Philbrick'), (4, 'Oscar', 'Wilde'), (5, '<NAME>.', 'Lewis'), (6, 'Bill', 'Bryson'), (7, 'Lee', 'Child'), (8, 'Robert', 'Galbraith'), (9, '<NAME>.', 'Rowling'); DELETE FROM publisher; INSERT INTO publisher (id, name) VALUES (1, 'Diamond Books'), (2, 'Bantam Books'), (3, '<NAME>an'), (4, 'Penguin Group'), (5, 'Puffin Books'), (6, 'Sphere'), (7, 'Bloomsbury Publishing'), (8, '<NAME>'); DELETE FROM book; INSERT INTO book (isbn, title, author_id, publisher_id, year_published, pages) VALUES ('978-0-14-143957-0', 'The Picture of Dorian Gray', 4, 4, '2003', 253), ('978-0-060-65293-4', 'The Screwtape Letters', 5, 8, '2001', 209), ('978-0-261-66794-7', '<NAME>', 5, 1, '1996', 190), ('978-0-261-66702-0', 'The Lion, the Witch and the Wardrobe', 5, 1, '1996', 171), ('978-0-261-66795-5', 'The Voyage of the Dawn Treader', 5, 1, '1996', 189), ('978-0-552-99702-1', 'A Walk in the Woods', 6, 3, '1998', 350), ('978-0-857-50005-2', 'Die Trying', 7, 2, '2010', 557), ('978-0-553-82616-6', 'Killing Floor', 7, 2, '2010', 525), ('978-0-7515-4925-6', 'The Cuckoo\'s Calling', 8, 6, '2014', 550), ('978-0-14-311197-9', 'Mayflower', 3, 4, '2007', 415), ('978-0-14-030945-4', 'Anne of Green Gables', 1, 5, '1984', 253), ('978-0-14-062101-6', '<NAME>', 2, 4, '1994', 507), ('978-0-7475-6940-1', '<NAME> and the Order of the Phoenix', 9, 7, '2003', 766); INSERT INTO member (id, first_name, last_name, email_address, phone_number) VALUES (1, 'Darren', 'Franks', '<EMAIL>', '555-819-2756'), (2, 'Ned', 'England', '<EMAIL>', '555-764-9898'), (3, 'Lindsey', 'Hale', '<EMAIL>', NULL), (4, 'Enid', 'Spence', '<EMAIL>', '555-812-0891'), (5, 'Nichola', 'Brock', '<EMAIL>', NULL), (6, 'Douglas', 'Spence', '<EMAIL>', '555-812-0891'); INSERT INTO loan (id, member_id, book_isbn, date_loaned, date_due, date_returned) VALUES (1, 2, '978-0-060-65293-4', '2019-07-13 11-47-12', '2019-08-03', '2019-08-12 12-12-35'), (2, 1, '978-0-552-99702-1', '2019-03-02 15-21-08', '2019-03-23', '2019-03-18 16-04-18'), (3, 5, '978-0-14-030945-4', '2019-10-08 10-07-54', '2019-10-29', '2020-10-30 09-14-26'), (4, 3, '978-0-553-82616-6', '2019-11-26 12-32-16', '2019-12-17', '2019-12-17 10-24-31'), (5, 4, '978-0-261-66702-0', '2019-12-28 14-07-13', '2020-01-18', '2020-01-10 13-43-12'), (6, 5, '978-0-14-062101-6', '2020-02-14 13-00-09', '2020-03-06', '2020-03-09 13-12-01'), (7, 2, '978-0-7515-4925-6', '2020-02-29 09-26-32', '2020-03-21', '2020-04-17 15-54-28'), (8, 3, '978-0-261-66702-0', '2020-03-16 16-01-45', '2020-03-30', '2020-03-18 08-59-17'), (9, 4, '978-0-552-99702-1', '2020-04-30 16-48-03', '2020-05-21', '2020-05-20 11-17-44'), (10, 1, '978-0-261-66795-5', '2020-05-13 11-46-32', '2020-06-03', '2020-06-01 16-58-20'), (11, 4, '978-0-261-66794-7', '2020-06-09 10-49-18', '2020-06-30', '2020-06-30 10-12-16'), (12, 4, '978-0-261-66795-5', '2020-06-09 10-49-20', '2020-06-30', '2020-06-30 10-12-28'), (13, 1, '978-0-7475-6940-1', '2020-07-23 13-31-13', '2020-08-13', '2020-08-14 11-18-47'), (14, 3, '978-0-7515-4925-6', '2020-08-16 14-07-03', '2020-09-06', NULL), (15, 2, '978-0-552-99702-1', '2020-09-17 09-34-16', '2020-10-08', '2020-10-08 17-16-38'), (16, 4, '978-0-060-65293-4', '2020-10-20 16-12-59', '2020-11-10', '2020-11-01 09-12-47'), (17, 3, '978-0-14-143957-0', '2020-11-12 10-37-16', '2020-12-03', '2020-12-03 16-34-08'), (18, 2, '978-0-14-062101-6', '2021-01-11 10-54-11', '2021-02-01', '2020-01-27 10-11-06'), (19, 2, '978-0-14-311197-9', '2021-01-11 10-54-13', '2021-02-01', '2020-01-27 10-11-14'), (20, 4, '978-0-552-99702-1', '2021-02-09 15-17-08', '2021-03-02', '2020-03-01 11-41-49'), (21, 1, '978-0-14-030945-4', '2021-03-23 11-56-01', '2021-04-13', '2021-04-17 16-28-11'), (22, 3, '978-0-7475-6940-1', '2021-05-04 09-01-17', '2021-05-25', '2021-05-31 09-18-17'), (23, 4, '978-0-7515-4925-6', '2021-06-21 13-36-12', '2021-07-12', '2021-07-08 13-11-26'), (24, 3, '978-0-060-65293-4', '2021-07-16 14-04-37', '2021-08-05', NULL), (25, 2, '978-0-553-82616-6', '2021-07-26 12-48-11', '2021-08-16', NULL), (26, 4, NULL, '2021-07-26 09-16-38', '2021-08-16', NULL );
CREATE TABLE default.math_test (`dt` Float64, `sensor_id` String, `value_float` Float32, `loco_num` Int32, `section` String, `upload_id` String) ENGINE = MergeTree() PARTITION BY toMonday(toDateTime(dt)) ORDER BY (loco_num, section, upload_id, sensor_id, dt) SAMPLE BY dt SETTINGS index_granularity = 8192
DROP TABLE `selfservice_recovery_requests`
set enable_incremental to off; set tpch_updates to 'customer,orders,lineitem,supplier'; set max_parallel_workers_per_gather to 0; set work_mem to 1000000; set enable_nestloop to off; set enable_indexscan to off; set enable_mergejoin to off; set dbt_query to 'q5'; set enable_dbtoaster to on; select q5_name, sum(q5_extendedprice * (1 - q5_discount)) as revenue from q5 group by q5_name order by revenue desc;
CREATE TABLE TABLE_INT_PARTITION ( id bigint NOT NULL, value_string varchar(50) NOT NULL, value_number1 bigint NOT NULL, value_number2 bigint NOT NULL ); PARTITION TABLE TABLE_INT_PARTITION ON COLUMN value_number1; CREATE TABLE TABLE_STRING_PARTITION ( id bigint NOT NULL, value_string varchar(50) NOT NULL, value_number1 bigint NOT NULL, value_number2 bigint NOT NULL ); PARTITION TABLE TABLE_STRING_PARTITION ON COLUMN value_string; CREATE PROCEDURE PARTITION ON TABLE TABLE_INT_PARTITION COLUMN value_number1 FROM CLASS org.voltdb.client.PartitionIntegerTestProc; CREATE PROCEDURE PARTITION ON TABLE TABLE_STRING_PARTITION COLUMN value_string FROM CLASS org.voltdb.client.PartitionStringTestProc; CREATE PROCEDURE PARTITION ON TABLE TABLE_INT_PARTITION COLUMN value_number1 PARAMETER 1 FROM CLASS org.voltdb.client.PartitionedTestProcNonZeroPartitioningParam; CREATE PROCEDURE FROM CLASS org.voltdb.client.MultiPartitionProcedureSample; CREATE PROCEDURE PARTITION ON TABLE TABLE_INT_PARTITION COLUMN value_number1 FROM CLASS org.voltdb.client.PartitionFailureTestProc; CREATE PROCEDURE DIRECTED FROM CLASS org.voltdb.client.PartitionedTestProc; CREATE PROCEDURE PartitionedSQLTestProc DIRECTED AS SELECT COUNT(*) FROM TABLE_INT_PARTITION;
create table if not exists cursos ( nome varchar(30) not null unique, descricao text, carga int unsigned, totaulas int unsigned, ano year default '2016' ) default charset=utf8; alter table cursos add column idcurso int first; alter table cursos add primary key (idcurso); insert into cursos values ('1', 'HTML5', 'Curso de HTML5', '40', '37', '2014'), ('2', 'Algoritmos', 'Logica de programacao', '20', '15', '2014'), ('3', 'Photoshop', 'Dicas de Photoshop CC', '10', '8', '2014'), ('4', 'PHP', 'Curso de PHP para iniciantes', '40', '20', '2010'), ('5', 'Java', 'Introducao a linguagem Java', '40', '29', '2000'), ('6', 'MySQL', 'Banco de dados MySQL', '30', '15', '2016'), ('7', 'Word', 'Curso completo de Word', '40', '30', '2016'); update cursos set ano = '2015' where idcurso ='4' limit 1; select * from cursos;
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: bookstore -- ------------------------------------------------------ -- Server version 5.5.5-10.1.10-MariaDB /*!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 `book` -- DROP TABLE IF EXISTS `book`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `book` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `editor_id` int(10) unsigned NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `editor` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `year` int(11) NOT NULL, `edition` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `book_editor_id_foreign` (`editor_id`), CONSTRAINT `book_editor_id_foreign` FOREIGN KEY (`editor_id`) REFERENCES `editor` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `book` -- LOCK TABLES `book` WRITE; /*!40000 ALTER TABLE `book` DISABLE KEYS */; INSERT INTO `book` VALUES (1,1,'Book 1','',2016,'1',NULL,NULL,NULL),(2,2,'Book 2','',2016,'3',NULL,NULL,NULL),(3,3,'Book 3','',2016,'5',NULL,NULL,NULL),(4,4,'Book 4','',2016,'2',NULL,NULL,NULL),(5,5,'Book 5','',2016,'10',NULL,NULL,NULL),(6,6,'Book 6','',2016,'4',NULL,NULL,NULL),(7,7,'Book 7','',2016,'7',NULL,NULL,NULL),(8,8,'Book 8','',2016,'9',NULL,NULL,NULL),(9,9,'Book 9','',2016,'6',NULL,NULL,NULL),(10,10,'Book 10','',2016,'8',NULL,NULL,NULL); /*!40000 ALTER TABLE `book` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `editor` -- DROP TABLE IF EXISTS `editor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `editor` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `editor` -- LOCK TABLES `editor` WRITE; /*!40000 ALTER TABLE `editor` DISABLE KEYS */; INSERT INTO `editor` VALUES (1,'Editor 1',NULL,NULL),(2,'Editor 2',NULL,NULL),(3,'Editor 3',NULL,NULL),(4,'Editor 4',NULL,NULL),(5,'Editor 5',NULL,NULL),(6,'Editor 6',NULL,NULL),(7,'Editor 7',NULL,NULL),(8,'Editor 8',NULL,NULL),(9,'Editor 9',NULL,NULL),(10,'Editor 10',NULL,NULL); /*!40000 ALTER TABLE `editor` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `migrations` -- DROP TABLE IF EXISTS `migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `migrations` -- LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; INSERT INTO `migrations` VALUES ('2014_10_12_000000_create_users_table',1),('2014_10_12_100000_create_password_resets_table',1),('2016_05_05_191542_create_editor_table',1),('2016_05_05_191622_create_book_table',1); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `password_resets` -- DROP TABLE IF EXISTS `password_resets`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, KEY `password_resets_email_index` (`email`), KEY `password_resets_token_index` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `password_resets` -- LOCK TABLES `password_resets` WRITE; /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */; /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'uncle_bob','$2y$10$iVNutBW.eWNXhvFW3dgcNOyE8IDqW.v2Kn0fNjOBe1MO8RAGTrlYm',NULL,NULL,NULL); /*!40000 ALTER TABLE `user` 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-06-16 17:04:06
INSERT INTO "question" ("id", "value","date_created",active) VALUES (1, 'Which racing driver won the Formula One Belgian Grandprix Tournament?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (2, 'What is the market capitalisation (m-cap) to GDP ratio of India, as of 2021?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (3, 'What is the approximate number of transactions done through UPI, in the month of August?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (4, 'Which state has reported cases of Fever identified as ‘Scrub Typhus’?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (5, 'Which country has introduced the concept of ‘Vaccinated Travel Lane (VTL)’?',NOW(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (6, 'The C.1.2 variant of the Coronavirus disease, was first reported in which country?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (7, 'Which country holds the presidency of the Council of the European Union?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (8, 'Which e-Commerce platform has announced the launch of ‘Kisan’ store?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (9, 'Which State / UT has adopted snow leopard and black-necked crane as state animal and bird?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (10, 'Under whose leadership, a Parliamentary committee on finance has been constituted, on separation of the debt management function from the RBI?',now(),true);
<reponame>nateclind/coal_study create table news_tbl ( storeid bigint primary key, full_text varchar ); create table news_meta_tbl ( title varchar, abstract varchar, storeid bigint primary key, articletype char(25), authors varchar, coden char(25), companies varchar, copyright varchar, documenttype char(25), entrydate date, issn char(10), language char(25), languageofsummary char(25), pages char(10), placeofpublication char(25), pubdate date, pubtitle char(25), year int, permalink varchar, startpage char(10), subjectterms varchar, subjects varchar, findacopy varchar, database char(50) ); copy news_meta_tbl from '...\meta\new_york_times_meta_1_of_4.txt' with (format csv, header); copy news_meta_tbl from '...\meta\new_york_times_meta_2_of_4.txt' with (format csv, header); copy news_meta_tbl from '...\meta\new_york_times_meta_3_of_4.txt' with (format csv, header); copy news_meta_tbl from '...\meta\new_york_times_meta_4_of_4.txt' with (format csv, header); copy news_meta_tbl from '...\meta\usa_today_meta_1_of_1.txt' with (format csv, header); copy news_meta_tbl from '...\meta\wall_street_journal_meta_1_of_2.txt' with (format csv, header); copy news_meta_tbl from '...\meta\wall_street_journal_meta_2_of_2.txt' with (format csv, header); create view news_vw as ( select distinct ns.storeid, mt.title, mt.abstract, ns.full_text, mt.articletype, mt.authors, mt.coden, mt.companies, mt.copyright, mt.documenttype, mt.entrydate, mt.issn, mt.language, mt.languageofsummary, mt.pages, mt.placeofpublication, mt.pubdate, mt.pubtitle, mt.year, mt.permalink, mt.startpage, coalesce(mt.subjectterms, mt.subjects) as subjects, mt.findacopy, mt.database from news_tbl as ns inner join news_meta_tbl as mt on ns.storeid = mt.storeid ); create table congress_meta_tbl ( id serial primary key, pubdate date, permalink varchar ); create table congress_tbl ( id serial primary key, title varchar, committee varchar, meta varchar, full_text varchar, permalink varchar ); create view congress_vw as ( select distinct cg.id, cg.title, cg.committee, cg.meta, cg.full_text, cg.permalink, extract(year from mt.pubdate) as year from congress_tbl as cg inner join congress_meta_tbl as mt on cg.id = mt.id and cg.full_text is not null );
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 01, 2021 at 06:06 PM -- Server version: 10.3.28-MariaDB -- PHP Version: 7.4.21 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: os_monitor -- -- CREATE DATABASE IF NOT EXISTS os_monitor DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; -- USE os_monitor; -- -------------------------------------------------------- -- -- Table structure for table config -- DROP TABLE IF EXISTS config; CREATE TABLE config ( param varchar(64) NOT NULL, value varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table links -- DROP TABLE IF EXISTS links; CREATE TABLE links ( linkid int(11) NOT NULL, base_url varchar(128) NOT NULL, osdd text DEFAULT NULL, granule text DEFAULT NULL, fk_source varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table monitor -- DROP TABLE IF EXISTS monitor; CREATE TABLE monitor ( id int(11) NOT NULL, request_type enum('osdd','granule') NOT NULL, http_status int(11) NOT NULL, total_time float DEFAULT NULL, elapsed_time float DEFAULT NULL, http_message text DEFAULT NULL, parsed varchar(16) DEFAULT NULL, error text DEFAULT NULL, timestamp timestamp NOT NULL DEFAULT current_timestamp(), fk_source varchar(10) NOT NULL, url text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `source` -- DROP TABLE IF EXISTS source; CREATE TABLE `source` ( sourceid int(11) NOT NULL, source varchar(10) NOT NULL, label varchar(64) NOT NULL, status enum('ACTIVE','INACTIVE','UNKNOWN','') NOT NULL DEFAULT 'ACTIVE', ping enum('up','down') ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table config -- ALTER TABLE config ADD UNIQUE KEY param (param); -- -- Indexes for table links -- ALTER TABLE links ADD PRIMARY KEY (linkid), ADD KEY fk_linksource (fk_source); -- -- Indexes for table monitor -- ALTER TABLE monitor ADD PRIMARY KEY (id), ADD KEY fk_sourcename (fk_source); -- -- Indexes for table `source` -- ALTER TABLE `source` ADD PRIMARY KEY (sourceid), ADD KEY source (source); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table links -- ALTER TABLE links MODIFY linkid int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table monitor -- ALTER TABLE monitor MODIFY id int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `source` -- ALTER TABLE `source` MODIFY sourceid int(11) NOT NULL AUTO_INCREMENT; -- -- Constraints for dumped tables -- -- -- Constraints for table links -- ALTER TABLE links ADD CONSTRAINT fk_linksource FOREIGN KEY (fk_source) REFERENCES source (source); -- -- Constraints for table monitor -- ALTER TABLE monitor ADD CONSTRAINT fk_sourcename FOREIGN KEY (fk_source) REFERENCES source (source); 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 */;
create table Talk_comments ( id serial primary key, talk_id integer not null references talks(id), title text not null, content text not null, author varchar(100) not null );
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS `user_contribution_sound_details` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `user_contribution_id` BIGINT NOT NULL COMMENT 'UserContributionID', `priority` INT COMMENT 'Priority', `talk_type` INT COMMENT 'TalkType', `body` VARCHAR(256) COMMENT 'Body', `body_sound` VARCHAR(256) COMMENT 'BodyReadAloud', `voice_type` INT COMMENT 'SoundType', `created_at` DATETIME NULL COMMENT 'Created At', `updated_at` DATETIME NULL COMMENT 'Updated At', `deleted_at` DATETIME NULL COMMENT 'Deleted At', PRIMARY KEY (`id`), INDEX `user_contribution_id_priority_index` (user_contribution_id, priority) ) ENGINE = InnoDB; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back DROP TABLE `user_contribution_sound_details`;
drop database if exists grouptalkdb; create database grouptalkdb; use grouptalkdb; CREATE TABLE users ( id BINARY(16) NOT NULL, loginid VARCHAR(15) NOT NULL UNIQUE, password BINARY(16) NOT NULL, email VARCHAR(255) NOT NULL, fullname VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE user_roles ( userid BINARY(16) NOT NULL, role ENUM ('registered','admin'), FOREIGN KEY (userid) REFERENCES users (id) on delete cascade, PRIMARY KEY (userid, role) ); CREATE TABLE auth_tokens ( userid BINARY(16) NOT NULL, token BINARY(16) NOT NULL, FOREIGN KEY (userid) REFERENCES users (id) on delete cascade, PRIMARY KEY (token) ); CREATE TABLE groups ( id BINARY(16) NOT NULL, theme VARCHAR(100) NOT NULL, description VARCHAR(500) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE comments( id BINARY(16) NOT NULL, groupid BINARY(16) NOT NULL, creator BINARY(16) NOT NULL, title VARCHAR(100) NOT NULL, comment VARCHAR(500) NOT NULL, last_modified TIMESTAMP NOT NULL, creation_timestamp DATETIME not null default current_timestamp, FOREIGN Key (groupid) REFERENCES groups(id) on delete cascade, FOREIGN KEY (creator) REFERENCES users (id) on delete cascade, PRIMARY KEY (id) ); CREATE TABLE added_groups( userid BINARY(16) NOT NULL, groupid BINARY(16) NOT NULL, FOREIGN KEY (userid) REFERENCES users (id) on delete cascade, FOREIGN KEY (groupid) REFERENCES groups (id) on delete cascade, PRIMARY KEY (userid, groupid) );
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Aug 03, 2017 at 03:24 PM -- Server version: 5.6.28 -- PHP Version: 7.0.10 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: `laravelIEUD` -- -- -------------------------------------------------------- -- -- 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, '2017_08_03_064945_create_students_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(100) 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 `students` -- CREATE TABLE `students` ( `id` int(10) UNSIGNED NOT NULL, `FirstName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `LastName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `Gender` tinyint(1) NOT NULL, `DOB` date NOT NULL, `POB` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `Phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `SubjectName` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `Price` decimal(8,2) NOT NULL, `Shift` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `Year` tinyint(1) NOT NULL, `Level` 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 `students` -- INSERT INTO `students` (`id`, `FirstName`, `LastName`, `Gender`, `DOB`, `POB`, `Phone`, `SubjectName`, `Price`, `Shift`, `Year`, `Level`, `created_at`, `updated_at`) VALUES (2, '<NAME>', 'Htun', 0, '2016-04-07', 'Mandalay', '098344546567', 'Inquiry for android class', '90.00', 'Morning', 4, 'Diploma in Software Engineering', '2017-08-03 02:10:23', '2017-08-03 03:04:18'), (3, 'Cho Thazin', 'Win', 0, '2017-05-05', 'Pyay', '09420954887', 'Job position apply', '100.00', 'Evening', 4, 'Master in Software Engineering Course', '2017-08-03 02:59:14', '2017-08-03 03:04:45'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(100) COLLATE utf8mb4_unicode_ci NOT 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; -- -- Indexes for dumped tables -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD UNIQUE KEY `password_resets_email_unique` (`email`); -- -- Indexes for table `students` -- ALTER TABLE `students` 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 `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `students` -- ALTER TABLE `students` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED 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 DATABASE IF EXISTS employee_db; CREATE database employee_db; USE employee_db; CREATE TABLE dept_table ( dept_id INT AUTO_INCREMENT NOT NULL, dept_name VARCHAR(30) NOT NULL, PRIMARY KEY (dept_id) ); CREATE TABLE role_table ( role_id INT AUTO_INCREMENT NOT NULL, title VARCHAR(30) NOT NULL, salary DECIMAL NOT NULL, dept_id INT NOT NULL, PRIMARY KEY (role_id), FOREIGN KEY (dept_id) REFERENCES dept_table(dept_id) ); CREATE TABLE employee_table ( employee_id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NOT NULL, manager_id INT, PRIMARY KEY (employee_id), FOREIGN KEY (role_id) REFERENCES role_table (role_id), FOREIGN KEY (manager_id) REFERENCES employee_table (employee_id) )
CREATE PROCEDURE SProc_Pessoa_Delete ( @Id uniqueidentifier ) AS Delete from tblPessoas Where Id = @Id
CREATE procedure [dbo].[RegisterNewIncident]( @type int, @people varchar(max), @date datetime, @branch int, @value decimal(12,2) = null, @description varchar(max) = null, @new_people varchar(max) = null, @register_closed bit = 0, @responsible_id int = null, @card_id int = null, @register_treated bit = 0, @start_activity bit = 0, @title varchar(400) = null, @add_to_ownernership bit = null, @new_owner_id int = null, @new_support_id int = null, @ownership_id int = null, @fund_value decimal(12,2) = null, @location_id int = null ) as begin declare @incidents table (id int) declare @people_incidents table(person_id int) declare @need_fund_value bit = 0, @financial_type bit = 0 select @need_fund_value = need_fund_value, @financial_type = financial_type from enum_incident_type eit where eit.id = @type if(@fund_value is null and @need_fund_value = 1) set @fund_value = (select cast(value as decimal(12,2)) from configuration where id = 6) if(@ownership_id is null) begin select top 1 @ownership_id = i.id from incident i where incident_type = 36 and cancelled = 0 and cast(date as date) = cast(@date as date) and date <= @date and end_date >= @date and ((@location_id is null and i.branch_id = @branch) or (@location_id is not null and (i.location_id = @location_id or i.branch_id = @branch) ) ) order by date end if(@branch is null) begin select top 1 @branch = branch_id from person p join dbo.Split(@people, ',') sp on sp.Item = p.id end if(len(isnull(@people, '')) > 0) begin insert into @people_incidents(person_id) select p.Item from dbo.Split(@people, ',') p end if(len(isnull(@new_people, '')) > 0) begin select distinct ltrim(rtrim(item)) [name] into #new_people from dbo.Split(@new_people, ',') while(exists(select 1 from #new_people)) begin declare @name varchar(200) = (select top 1 [name] from #new_people) insert into person([name], is_interested) values (@name, 1) declare @new_person int = @@identity insert into person_role(person_id, role_id) values (@new_person, 4) insert into @people_incidents(person_id) values (@new_person) delete from #new_people where [name] = @name end end if(@add_to_ownernership = 1 and @new_owner_id > 0) begin insert into incident( responsible_id, incident_type, [date], branch_id, [description], [value], title, closed, closed_by, closed_on, scheduled, card_id, treated, started_on, started_by, ownership_id, define_fund_value, fund_value, location_id ) values ( @responsible_id, 36, @date, @branch, @description, @value, @title, case when @register_closed = 1 or @register_treated = 1 then 1 else 0 end, case when @register_closed = 1 or @register_treated = 1 then @responsible_id else null end, case when @register_closed = 1 or @register_treated = 1 then dbo.getCurrentDateTime() end, cast((case when @date < dbo.getCurrentDateTime() then 1 else 0 end) as bit), @card_id, @register_treated, case when @start_activity = 1 then dbo.getCurrentDateTime() else null end, case when @start_activity = 1 then @responsible_id else null end, null, -- if the children need fund value, this ownership will define fund value case when exists(select 1 from enum_incident_type where need_fund_value = 1 and id = @type) then 1 else 0 end, @fund_value, @location_id ) set @ownership_id = @@IDENTITY insert into @incidents(id) values (@ownership_id) if(@new_support_id > 0) begin insert into incident( responsible_id, incident_type, [date], branch_id, [description], [value], title, closed, closed_by, closed_on, scheduled, card_id, treated, started_on, started_by, ownership_id, location_id ) values ( @responsible_id, 39, @date, @branch, @description, @value, @title, case when @register_closed = 1 or @register_treated = 1 then 1 else 0 end, case when @register_closed = 1 or @register_treated = 1 then @responsible_id else null end, case when @register_closed = 1 or @register_treated = 1 then dbo.getCurrentDateTime() end, cast((case when @date < dbo.getCurrentDateTime() then 1 else 0 end) as bit), @card_id, @register_treated, case when @start_activity = 1 then dbo.getCurrentDateTime() else null end, case when @start_activity = 1 then @responsible_id else null end, @ownership_id, @location_id ) insert into person_incident(person_id, participation_type, incident_id) values (@new_support_id, 1, @@IDENTITY) insert into @incidents(id) values (@@IDENTITY) end insert into person_incident(person_id, participation_type, incident_id) values (@new_owner_id, 1, @ownership_id) end while exists(select 1 from @people_incidents) begin declare @person_incident int = (select top 1 person_id from @people_incidents) insert into incident( responsible_id, incident_type, [date], branch_id, [description], [value], title, closed, closed_by, closed_on, scheduled, card_id, treated, started_on, started_by, ownership_id, fund_value, location_id ) values ( @responsible_id, @type, @date, @branch, @description, @value, @title, case when @register_closed = 1 or @register_treated = 1 then 1 else 0 end, case when @register_closed = 1 or @register_treated = 1 then @responsible_id else null end, case when @register_closed = 1 or @register_treated = 1 then dbo.getCurrentDateTime() end, cast((case when @date < dbo.getCurrentDateTime() then 1 else 0 end) as bit), @card_id, @register_treated, case when @start_activity = 1 then dbo.getCurrentDateTime() else null end, case when @start_activity = 1 then @responsible_id else null end, @ownership_id, null, @location_id ) declare @incident int = @@identity insert into @incidents(id) values (@incident) insert into person_incident(person_id, participation_type, incident_id) values (@person_incident, 1, @incident) delete from @people_incidents where person_id = @person_incident end if(@need_fund_value = 1 and @financial_type = 0 and @new_owner_id > 0) begin declare @payment_owner int, @payment_description varchar(400) set @payment_description = 'Vida kung fu ''' + @title + ''' em ' + FORMAT(@date, 'MM/dd HH:mm') select top 1 @payment_owner = person_id from person_incident where incident_id = @ownership_id exec RegisterNewIncident @type = 41, @people = @payment_owner, @date = @date, @branch = @branch, @title = @title, @description = @payment_description, @responsible_id = @responsible_id, @ownership_id = @ownership_id, @fund_value = @fund_value, @location_id = null end select i.* from vwLightIncident i join @incidents ii on ii.id = i.id for json path end
<gh_stars>0 set feedback off set heading off set pagesize 5000 set linesize 5000 set trim on set trimspool on set wrap on set serveroutput on size 1000000 alter session set NLS_DATE_FORMAT = 'yyyy-mm-dd hh24:mi:ss'; set numformat 99999999999.99 def _editor = 'vi' -- prompt undefine usr db col usr new_value usr col db new_value db set termout off select upper(user) usr, upper(sys_context('userenv','db_name')) db from dual / set termout on set sqlprompt '&&usr.@&&db.> ' set feedback on set heading on set timing on
update tbl1 set col1 = col2; update tbl1 as set set col1 = col2;
-- MS SQL -- Database Name: Fiesta -- ------------------------------------------------------ -- DROP DATABASE IF EXISTS FiestaDB; USE master; GO CREATE DATABASE FiestaDB GO -- -- Table structure for table `products` -- DROP TABLE IF EXISTS [Products]; CREATE TABLE Products ( [id] INT PRIMARY KEY IDENTITY (1, 1), [product_name] varchar(255) NOT NULL, [product_price] decimal(5,2) NOT NULL, [product_image_url] varchar(max) NOT NULL, [product_comment] varchar(255) DEFAULT NULL, ); GO -- -- Dumping data for table `products` -- INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('12 large ballons',2.30,'https://cdn.shopify.com/s/files/1/1832/6341/products/BLOON_MET_GOLD__01_1000x.jpg?v=1571327220','On back order'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Single Banquet Chair Cover',2.99,'https://cdn.shopify.com/s/files/1/1832/6341/products/SASH_71_046_D04_0a16a508-5cd5-422f-ab7d-45acee11f6d1_1000x.jpg?v=1571323936','Vendor in on Wednesdays only.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('90x132 Rectangle Table Cloth',24.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/TAB_02_5454_SILV__02_7bb66485-2943-489e-a7c7-8d3f2d810fc5.progressive.jpg?v=1571325198','Table cloth quality issues. Need to talk to vendor.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('120" Round Table Cloth',14.00,'https://cdn.shopify.com/s/files/1/1832/6341/products/TAB_120_WHT-2_1000x.jpg?v=1571323057','Need double order next time.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('5 Pack Linen Napkins',5.25,'https://cdn.shopify.com/s/files/1/1832/6341/products/NAP_OSC_WHT_1000x.jpg?v=1571323239','Dont buy the gray ones. Only Beige or white colors sell.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('12"x108" Inch Table Runner',2.42,'https://cdn.shopify.com/s/files/1/1832/6341/products/RUN_STN_CHMP-2_large.progressive.jpg?v=1571323435','Vendor is discontinuing these July 2020.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('21 FT Table Skirt',15.00,'https://cdn.shopify.com/s/files/1/1832/6341/products/SKT_POLY_WHT_21__01_1000x.jpg?v=1571323258','Get more variety from vendor as per customers feedback. '); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Pretty Flowers Center Piece',25.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/PROP_CUPK_001__02_1000x.jpg?v=1571323944',NULL); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('10 Champagne Flutes',4.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/PLST_CU0071_GOLD_1000x.jpg?v=1571325883','Place an order with vendor of 24 packets by next Saturday.'); INSERT INTO Products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Confetti Squares',3.99,'https://cdn.shopify.com/s/files/1/1832/6341/products/BOTT_GLIT_002_GOLD__02_1000x.jpg?v=1571327289','On back order.'); GO -- -- Table structure for table `stores` -- DROP TABLE IF EXISTS [Stores]; CREATE TABLE Stores ( [id] INT PRIMARY KEY IDENTITY (1, 1), [store_name] varchar(255) NOT NULL, [store_city] varchar(255) NOT NULL, [store_state] varchar(255) NOT NULL, ) ; GO -- -- Dumping data for table `stores` -- INSERT INTO Stores ([store_name],[store_city],[store_state]) VALUES ('Party Xtravaganza','Durham','NC'); INSERT INTO Stores ([store_name],[store_city],[store_state]) VALUES ('Party Xperience','San Jose','CA'); INSERT INTO Stores ([store_name],[store_city],[store_state]) VALUES ('Party with Us','New York','NY'); INSERT INTO Stores ([store_name],[store_city],[store_state]) VALUES ('IneXpensive Party','Northboro','Iowa'); GO -- -- Table structure for table `inventory` -- DROP TABLE IF EXISTS [InventoryRecords]; CREATE TABLE InventoryRecords ( [id] INT PRIMARY KEY IDENTITY (1, 1), [product_id] int NOT NULL, [product_name] varchar(255) NOT NULL, [store_id] int NOT NULL, [store_name] varchar(255) NOT NULL, [quantity] int DEFAULT '0', [local_price] decimal(5,2) NOT NULL, [comment] varchar(max) ); GO -- -- Dumping data for table `inventory` -- INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (2,'Single Banquet Chair Cover',1,'Party Xtravaganza',30,4.05,'These chair cover sell a lot in beige and dont sell enough in other colors. '); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (3,'90x132 Rectangle Table Cloth',1,'Party Xtravaganza',100,29.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (5,'5 Pack Linen Napkins',1,'Party Xtravaganza',10,6.99,'The best napkins, believe me. '); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (7,'21 FT Table Skirt',1,'Party Xtravaganza',56,17.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (8,'Pretty Flowers Center Piece',1,'Party Xtravaganza',100,29.99,'If not sold within first 24 hrs. Advertise as 50% off.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (9,'10 Champagne Flutes',1,'Party Xtravaganza',98,7.99,'Clear Plastic.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (1,'12 large ballons',2,'Party Xperience',47,2.99,'The biggest ballons'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (2,'Single Banquet Chair Cover',2,'Party Xperience',16,3.66,'Stretchy kind.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (3,'90x132 Rectangle Table Cloth',2,'Party Xperience',60,25.95,'These table cloths are not popular in this store.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (4,'120" Round Table Cloth',2,'Party Xperience',1,15.99,'Good quality materials. popular product. Re-order.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (5,'5 Pack Linen Napkins',2,'Party Xperience',100,5.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (6,'12"x108" Inch Table Runner',2,'Party Xperience',23,3.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (7,'21 FT Table Skirt',2,'Party Xperience',0,18.99,'Sold out'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (8,'Pretty Flowers Center Piece',2,'Party Xperience',2,29.99,'If not sold within first 24 hrs. Advertise as 50% off.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (9,'10 Champagne Flutes',2,'Party Xperience',100,7.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (1,'12 large ballons',3,'Party with Us',100,3.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (2,'Single Banquet Chair Cover',3,'Party with Us',100,4.99,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (3,'90x132 Rectangle Table Cloth',3,'Party with Us',100,20.00,'On sale, discontinuing product.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (4,'120" Round Table Cloth',3,'Party with Us',3,15.95,'Popular item.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (5,'5 Pack Linen Napkins',3,'Party with Us',64,4.99,'Order only light beige color next time.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (6,'12"x108" Inch Table Runner',3,'Party with Us',0,5.99,'Sold out. '); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (7,'21 FT Table Skirt',3,'Party with Us',100,0.00,''); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (8,'Pretty Flowers Center Piece',3,'Party with Us',3,25.99,'If not sold within first 24 hrs. Advertize as 50% off.'); INSERT INTO inventoryRecords ([product_id],[product_name],[store_id],[store_name],[quantity],[local_price],[comment]) VALUES (9,'10 Champagne Flutes',3,'Party with Us',87,5.99,'Clear Plastic'); GO
<gh_stars>1-10 CREATE TABLE [dbo].[LINK_LINK_CHANGE_ACTIONS] ( Id bigint identity(1,1) NOT NULL primary key, SessionGroupUniqueId uniqueidentifier NOT NULL, SessionUniqueId uniqueidentifier NOT NULL, SourceId uniqueidentifier NOT NULL, ActionId uniqueidentifier NOT NULL, ArtifactLinkId int NOT NULL, --IsDeferred bit NOT NULL, Status int NOT NULL, -- 1: DeltaComputed; 2. Translated; 3. ReadyForMigration; 4. Completed LinkChangeGroupId bigint NULL, ExecutionOrder int NULL, Conflicted bit NOT NULL );
--1. inner join: select records that match between two tables --2. left join: select all recors from the left table --3. right join: select all records from the right table select [customer name], quantity, total, o.orderid from customers$ as c right join orders$ as o on c.orderid=o.orderid --1. from, on, select
CREATE TABLE [ExpressionsOfInterest]( [Id] [uniqueidentifier] NOT NULL DEFAULT NEWID(), [Email] [nvarchar](256) NOT NULL, [ContactName] [nvarchar](250) NULL, [ContactPhone] [nvarchar](250) NULL, [OrganisationName] [nvarchar](250) NOT NULL, [StandardReference] [nvarchar](10) NULL, [Status] [nvarchar](20) NOT NULL DEFAULT 'New', [CreatedAt] [datetime2](7) NOT NULL DEFAULT GETDATE(), CONSTRAINT [PK_ExpressionsOfInterest] PRIMARY KEY ( [Id] ASC ) )
drop table if exists JSONB_ENTITIES cascade; create table JSONB_ENTITIES ( id uuid not null, documents jsonb, version int8, primary key (id) );
ALTER TABLE db_version CHANGE COLUMN required_11501_01_mangos_spell_proc_event required_11501_02_mangos_spell_bonus_data bit; DELETE FROM spell_bonus_data WHERE entry IN (64569); INSERT INTO spell_bonus_data VALUES (64569, 0, 0, 0, 0, 'Item - Blood Reserve');
<reponame>ptrick/hdfs-hive-sql-playground<filename>bin/apache-hive-3.1.2-bin/scripts/metastore/upgrade/oracle/hive-txn-schema-2.3.0.oracle.sql<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:d37a74115723a33f28b5bc159090873f37f2c67859853146999cca46138235a5 size 3931
--liquibase formatted sql --changeset platform:create-registry-schema create schema if not exists registry; alter schema registry owner to ${regOwnerName}; alter database ${dbName} set search_path to "$user", registry, public; --changeset platform:registry-schema-grants grant usage on schema registry to public; --changeset platform:create-registry-schema-on-workers select run_command_on_workers('create schema if not exists registry'); select run_command_on_workers('alter schema registry owner to ${regOwnerName}'); select run_command_on_workers('alter database ${dbName} set search_path to "$user", registry, public'); --changeset platform:registry-schema-grants-on-workers select run_command_on_workers('grant usage on schema registry to public');
-- Revert awesome:constantfdw from pg BEGIN; DROP FOREIGN TABLE IF EXISTS api.constant; DROP SERVER IF EXISTS awesome_constant; COMMIT;
REFRESH MATERIALIZED VIEW email_to_primary_email_booster;
<gh_stars>1-10 CREATE TABLE zitadel.projections.orgs ( id TEXT, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, resource_owner TEXT, org_state SMALLINT, sequence BIGINT, domain TEXT, name TEXT, PRIMARY KEY (id) ); CREATE TABLE zitadel.projections.org_owners_orgs ( id TEXT, name TEXT, creation_date TIMESTAMPTZ, PRIMARY KEY (id) ); CREATE TABLE zitadel.projections.org_owners_users ( org_id TEXT, owner_id TEXT, language VARCHAR(10), email TEXT, first_name TEXT, last_name TEXT, gender INT2, PRIMARY KEY (owner_id, org_id), CONSTRAINT fk_org FOREIGN KEY (org_id) REFERENCES projections.org_owners_orgs (id) ON DELETE CASCADE ); CREATE VIEW zitadel.projections.org_owners AS ( SELECT o.id AS org_id, o.name AS org_name, o.creation_date, u.owner_id, u.language, u.email, u.first_name, u.last_name, u.gender FROM projections.org_owners_orgs o JOIN projections.org_owners_users u ON o.id = u.org_id ); CREATE TABLE zitadel.projections.projects ( id TEXT, name TEXT, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, owner_id TEXT, creator_id TEXT, state INT2, PRIMARY KEY (id) );
<filename>sql/yjbb/600986.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2017-09-30',@EPS = N'0.35',@EPSDeduct = N'0',@Revenue = N'64.76亿',@RevenueYoy = N'31.87',@RevenueQoq = N'22.73',@Profit = N'3.20亿',@ProfitYoy = N'5.90',@ProfiltQoq = N'8.50',@NAVPerUnit = N'6.1461',@ROE = N'6.15',@CashPerUnit = N'-0.1993',@GrossProfitRate = N'12.29',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2017-09-30',@EPS = N'0.35',@EPSDeduct = N'0',@Revenue = N'64.76亿',@RevenueYoy = N'31.87',@RevenueQoq = N'22.73',@Profit = N'3.20亿',@ProfitYoy = N'5.90',@ProfiltQoq = N'8.50',@NAVPerUnit = N'6.1461',@ROE = N'6.15',@CashPerUnit = N'-0.1993',@GrossProfitRate = N'12.29',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2017-06-30',@EPS = N'0.23',@EPSDeduct = N'0.19',@Revenue = N'37.70亿',@RevenueYoy = N'28.25',@RevenueQoq = N'40.77',@Profit = N'2.04亿',@ProfitYoy = N'34.44',@ProfiltQoq = N'10.41',@NAVPerUnit = N'6.0941',@ROE = N'4.23',@CashPerUnit = N'-0.1803',@GrossProfitRate = N'12.83',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-07-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2016-09-30',@EPS = N'0.35',@EPSDeduct = N'0',@Revenue = N'49.11亿',@RevenueYoy = N'320.84',@RevenueQoq = N'-3.12',@Profit = N'3.03亿',@ProfitYoy = N'301.83',@ProfiltQoq = N'7.48',@NAVPerUnit = N'4.7292',@ROE = N'7.60',@CashPerUnit = N'0.4617',@GrossProfitRate = N'15.78',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2016-06-30',@EPS = N'0.17',@EPSDeduct = N'0.16',@Revenue = N'29.40亿',@RevenueYoy = N'516.31',@RevenueQoq = N'124.72',@Profit = N'1.52亿',@ProfitYoy = N'951.36',@ProfiltQoq = N'1102.41',@NAVPerUnit = N'4.5837',@ROE = N'3.89',@CashPerUnit = N'0.0181',@GrossProfitRate = N'15.88',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-07-29' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2017-03-31',@EPS = N'0.11',@EPSDeduct = N'0',@Revenue = N'15.66亿',@RevenueYoy = N'72.97',@RevenueQoq = N'-25.95',@Profit = N'9702.92万',@ProfitYoy = N'732.15',@ProfiltQoq = N'-14.29',@NAVPerUnit = N'4.9717',@ROE = N'2.27',@CashPerUnit = N'-0.2459',@GrossProfitRate = N'13.26',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2015-12-31',@EPS = N'0.23',@EPSDeduct = N'0.17',@Revenue = N'24.17亿',@RevenueYoy = N'116.68',@RevenueQoq = N'81.19',@Profit = N'1.17亿',@ProfitYoy = N'118.79',@ProfiltQoq = N'-31.21',@NAVPerUnit = N'4.4089',@ROE = N'6.49',@CashPerUnit = N'0.5480',@GrossProfitRate = N'17.63',@Distribution = N'10派0.3',@DividenRate = N'0.18',@AnnounceDate = N'2017-04-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2015-06-30',@EPS = N'0.04',@EPSDeduct = N'0.006',@Revenue = N'4.77亿',@RevenueYoy = N'31.51',@RevenueQoq = N'47.61',@Profit = N'1444.43万',@ProfitYoy = N'17.24',@ProfiltQoq = N'450.34',@NAVPerUnit = N'2.3199',@ROE = N'1.87',@CashPerUnit = N'0.2487',@GrossProfitRate = N'17.17',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2015-03-31',@EPS = N'0.01',@EPSDeduct = N'0',@Revenue = N'1.93亿',@RevenueYoy = N'191.85',@RevenueQoq = N'-53.97',@Profit = N'222.10万',@ProfitYoy = N'150.80',@ProfiltQoq = N'-59.46',@NAVPerUnit = N'2.2834',@ROE = N'0.29',@CashPerUnit = N'0.1370',@GrossProfitRate = N'19.81',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2014-12-31',@EPS = N'0.16',@EPSDeduct = N'0.13',@Revenue = N'11.15亿',@RevenueYoy = N'22.85',@RevenueQoq = N'25.18',@Profit = N'5354.29万',@ProfitYoy = N'36.66',@ProfiltQoq = N'-84.67',@NAVPerUnit = N'2.2768',@ROE = N'7.27',@CashPerUnit = N'0.0187',@GrossProfitRate = N'16.36',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-03-12' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2014-09-30',@EPS = N'0.14',@EPSDeduct = N'0',@Revenue = N'6.97亿',@RevenueYoy = N'40.64',@RevenueQoq = N'12.67',@Profit = N'4806.42万',@ProfitYoy = N'40.18',@ProfiltQoq = N'114.12',@NAVPerUnit = N'2.2605',@ROE = N'6.55',@CashPerUnit = N'0.2393',@GrossProfitRate = N'19.86',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2014-06-30',@EPS = N'0.04',@EPSDeduct = N'0.065',@Revenue = N'3.63亿',@RevenueYoy = N'16.74',@RevenueQoq = N'349.50',@Profit = N'1232.08万',@ProfitYoy = N'11.43',@ProfiltQoq = N'481.81',@NAVPerUnit = N'2.1539',@ROE = N'1.65',@CashPerUnit = N'-0.1497',@GrossProfitRate = N'18.80',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2014-03-31',@EPS = N'-0.01',@EPSDeduct = N'0',@Revenue = N'6600.42万',@RevenueYoy = N'-25.51',@RevenueQoq = N'-83.99',@Profit = N'-437.21万',@ProfitYoy = N'-21.53',@ProfiltQoq = N'-189.33',@NAVPerUnit = N'2.1041',@ROE = N'-0.62',@CashPerUnit = N'0.1125',@GrossProfitRate = N'19.65',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2013-12-31',@EPS = N'0.12',@EPSDeduct = N'-0.03',@Revenue = N'9.08亿',@RevenueYoy = N'-39.81',@RevenueQoq = N'123.02',@Profit = N'3918.05万',@ProfitYoy = N'92.27',@ProfiltQoq = N'-78.93',@NAVPerUnit = N'2.1171',@ROE = N'5.59',@CashPerUnit = N'-1.5158',@GrossProfitRate = N'12.39',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-02-06' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2013-09-30',@EPS = N'0.1',@EPSDeduct = N'0',@Revenue = N'4.96亿',@RevenueYoy = N'-49.58',@RevenueQoq = N'-16.74',@Profit = N'3428.64万',@ProfitYoy = N'15.48',@ProfiltQoq = N'58.52',@NAVPerUnit = N'2.1003',@ROE = N'4.87',@CashPerUnit = N'-1.0925',@GrossProfitRate = N'10.94',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-30' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2015-09-30',@EPS = N'0.19',@EPSDeduct = N'0',@Revenue = N'11.67亿',@RevenueYoy = N'67.42',@RevenueQoq = N'142.62',@Profit = N'7529.29万',@ProfitYoy = N'56.65',@ProfiltQoq = N'397.81',@NAVPerUnit = N'4.3545',@ROE = N'6.67',@CashPerUnit = N'0.1991',@GrossProfitRate = N'19.28',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2013-06-30',@EPS = N'0.03',@EPSDeduct = N'0.03',@Revenue = N'3.11亿',@RevenueYoy = N'-42.48',@RevenueQoq = N'150.63',@Profit = N'1105.68万',@ProfitYoy = N'-70.31',@ProfiltQoq = N'507.36',@NAVPerUnit = N'2.0807',@ROE = N'1.60',@CashPerUnit = N'-1.5621',@GrossProfitRate = N'18.32',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-06' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2013-03-31',@EPS = N'-0.01',@EPSDeduct = N'-0.01',@Revenue = N'8861.07万',@RevenueYoy = N'-66.82',@RevenueQoq = N'-83.14',@Profit = N'-359.74万',@ProfitYoy = N'-108.21',@ProfiltQoq = N'61.37',@NAVPerUnit = N'2.0370',@ROE = N'-0.53',@CashPerUnit = N'-0.2149',@GrossProfitRate = N'17.49',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-22' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2012-12-31',@EPS = N'0.06',@EPSDeduct = N'0.06',@Revenue = N'15.08亿',@RevenueYoy = N'15.47',@RevenueQoq = N'18.74',@Profit = N'2037.77万',@ProfitYoy = N'-22.02',@ProfiltQoq = N'-23.28',@NAVPerUnit = N'2.0478',@ROE = N'3.01',@CashPerUnit = N'0.2114',@GrossProfitRate = N'13.07',@Distribution = N'10派0.5',@DividenRate = N'1.20',@AnnounceDate = N'2014-04-22' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2012-06-30',@EPS = N'0.11',@EPSDeduct = N'0.11',@Revenue = N'5.40亿',@RevenueYoy = N'-2.10',@RevenueQoq = N'2.28',@Profit = N'3724.30万',@ProfitYoy = N'84.03',@ProfiltQoq = N'-114.96',@NAVPerUnit = N'2.0991',@ROE = N'5.38',@CashPerUnit = N'-0.3790',@GrossProfitRate = N'20.45',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-17' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2012-03-31',@EPS = N'0.13',@EPSDeduct = N'0.13',@Revenue = N'2.67亿',@RevenueYoy = N'83.21',@RevenueQoq = N'-42.83',@Profit = N'4379.32万',@ProfitYoy = N'4356.74',@ProfiltQoq = N'1129.66',@NAVPerUnit = N'2.1200',@ROE = N'6.36',@CashPerUnit = N'-0.0031',@GrossProfitRate = N'33.39',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2012-09-30',@EPS = N'0.09',@EPSDeduct = N'0.09',@Revenue = N'9.83亿',@RevenueYoy = N'17.10',@RevenueQoq = N'62.09',@Profit = N'2968.97万',@ProfitYoy = N'31.55',@ProfiltQoq = N'-15.31',@NAVPerUnit = N'2.0782',@ROE = N'4.26',@CashPerUnit = N'0.0653',@GrossProfitRate = N'14.66',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2011-12-31',@EPS = N'0.08',@EPSDeduct = N'0.07',@Revenue = N'13.06亿',@RevenueYoy = N'36.66',@RevenueQoq = N'62.44',@Profit = N'2613.04万',@ProfitYoy = N'116.70',@ProfiltQoq = N'52.74',@NAVPerUnit = N'1.9870',@ROE = N'4.00',@CashPerUnit = N'-1.5267',@GrossProfitRate = N'12.87',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-04-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2011-09-30',@EPS = N'0.067',@EPSDeduct = N'0.064',@Revenue = N'8.39亿',@RevenueYoy = N'36.67',@RevenueQoq = N'-29.17',@Profit = N'2256.90万',@ProfitYoy = N'341.50',@ProfiltQoq = N'-87.89',@NAVPerUnit = N'1.9800',@ROE = N'3.47',@CashPerUnit = N'-0.3317',@GrossProfitRate = N'10.84',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2011-06-30',@EPS = N'0.0604',@EPSDeduct = N'0.0584',@Revenue = N'5.52亿',@RevenueYoy = N'82.22',@RevenueQoq = N'178.54',@Profit = N'2023.73万',@ProfitYoy = N'1649.64',@ProfiltQoq = N'1859.51',@NAVPerUnit = N'1.9700',@ROE = N'3.11',@CashPerUnit = N'-0.1044',@GrossProfitRate = N'10.70',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2011-03-31',@EPS = N'0.003',@EPSDeduct = N'0.003',@Revenue = N'1.46亿',@RevenueYoy = N'123.49',@RevenueQoq = N'-37.08',@Profit = N'98.26万',@ProfitYoy = N'15.55',@ProfiltQoq = N'104.55',@NAVPerUnit = N'1.9100',@ROE = N'0.15',@CashPerUnit = N'-0.0104',@GrossProfitRate = N'10.23',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2010-12-31',@EPS = N'0.04',@EPSDeduct = N'0.03',@Revenue = N'9.56亿',@RevenueYoy = N'33.40',@RevenueQoq = N'-25.77',@Profit = N'1205.86万',@ProfitYoy = N'-79.21',@ProfiltQoq = N'-507.33',@NAVPerUnit = N'1.9090',@ROE = N'1.90',@CashPerUnit = N'0.5349',@GrossProfitRate = N'6.88',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-04-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2010-09-30',@EPS = N'0.015',@EPSDeduct = N'0.1',@Revenue = N'6.14亿',@RevenueYoy = N'51.53',@RevenueQoq = N'-10.07',@Profit = N'511.19万',@ProfitYoy = N'213.31',@ProfiltQoq = N'-79.85',@NAVPerUnit = N'1.9700',@ROE = N'5.09',@CashPerUnit = N'0.3939',@GrossProfitRate = N'7.09',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-31' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2010-06-30',@EPS = N'0.0035',@EPSDeduct = N'0.077',@Revenue = N'3.03亿',@RevenueYoy = N'41.61',@RevenueQoq = N'432.10',@Profit = N'115.67万',@ProfitYoy = N'148.92',@ProfiltQoq = N'2992.92',@NAVPerUnit = N'1.9500',@ROE = N'4.23',@CashPerUnit = N'0.1632',@GrossProfitRate = N'8.53',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2010-03-31',@EPS = N'0.003',@EPSDeduct = N'0.001',@Revenue = N'6521.63万',@RevenueYoy = N'-11.73',@RevenueQoq = N'-72.67',@Profit = N'85.04万',@ProfitYoy = N'320.95',@ProfiltQoq = N'-98.20',@NAVPerUnit = N'1.8800',@ROE = N'0.14',@CashPerUnit = N'-0.0181',@GrossProfitRate = N'14.47',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2016-12-31',@EPS = N'0.48',@EPSDeduct = N'0.45',@Revenue = N'70.25亿',@RevenueYoy = N'190.67',@RevenueQoq = N'7.28',@Profit = N'4.16亿',@ProfitYoy = N'254.90',@ProfiltQoq = N'-24.87',@NAVPerUnit = N'4.8600',@ROE = N'10.32',@CashPerUnit = N'0.8069',@GrossProfitRate = N'14.89',@Distribution = N'10派0.35',@DividenRate = N'0.26',@AnnounceDate = N'2017-04-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2009-09-30',@EPS = N'0.03',@EPSDeduct = N'0.0314',@Revenue = N'4.78亿',@RevenueYoy = N'17.33',@RevenueQoq = N'-13.97',@Profit = N'1073.87万',@ProfitYoy = N'36.15',@ProfiltQoq = N'-101.58',@NAVPerUnit = N'1.7500',@ROE = N'-',@CashPerUnit = N'1.0174',@GrossProfitRate = N'18.13',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2009-06-30',@EPS = N'0.033',@EPSDeduct = N'0.0317',@Revenue = N'2.91亿',@RevenueYoy = N'13.26',@RevenueQoq = N'194.03',@Profit = N'1090.82万',@ProfitYoy = N'34.22',@ProfiltQoq = N'5199.54',@NAVPerUnit = N'1.7550',@ROE = N'1.85',@CashPerUnit = N'0.9439',@GrossProfitRate = N'21.78',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2009-12-31',@EPS = N'0.17',@EPSDeduct = N'0.06',@Revenue = N'7.17亿',@RevenueYoy = N'50.28',@RevenueQoq = N'27.67',@Profit = N'5800.15万',@ProfitYoy = N'497.87',@ProfiltQoq = N'27989.07',@NAVPerUnit = N'1.8700',@ROE = N'9.60',@CashPerUnit = N'1.1453',@GrossProfitRate = N'21.43',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2009-03-31',@EPS = N'0.001',@EPSDeduct = N'0.0012',@Revenue = N'7388.02万',@RevenueYoy = N'-7.92',@RevenueQoq = N'6.38',@Profit = N'20.20万',@ProfitYoy = N'-25.31',@ProfiltQoq = N'100.90',@NAVPerUnit = N'3.5100',@ROE = N'-',@CashPerUnit = N'1.0080',@GrossProfitRate = N'27.04',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2008-09-30',@EPS = N'0.0235',@EPSDeduct = N'0',@Revenue = N'4.07亿',@RevenueYoy = N'-13.33',@RevenueQoq = N'-14.95',@Profit = N'788.75万',@ProfitYoy = N'-27.89',@ProfiltQoq = N'-103.05',@NAVPerUnit = N'3.4900',@ROE = N'-',@CashPerUnit = N'0.4323',@GrossProfitRate = N'20.24',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2008-06-30',@EPS = N'0.0242',@EPSDeduct = N'0.05',@Revenue = N'2.57亿',@RevenueYoy = N'-3.06',@RevenueQoq = N'120.37',@Profit = N'812.68万',@ProfitYoy = N'3.06',@ProfiltQoq = N'2804.60',@NAVPerUnit = N'3.4900',@ROE = N'1.39',@CashPerUnit = N'0.6330',@GrossProfitRate = N'21.37',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2008-03-31',@EPS = N'0.0016',@EPSDeduct = N'0.002',@Revenue = N'8023.11万',@RevenueYoy = N'12.01',@RevenueQoq = N'-57.14',@Profit = N'27.05万',@ProfitYoy = N'-10.57',@ProfiltQoq = N'105.94',@NAVPerUnit = N'3.4400',@ROE = N'-',@CashPerUnit = N'0.6868',@GrossProfitRate = N'28.29',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2007-12-31',@EPS = N'0.05',@EPSDeduct = N'0.03',@Revenue = N'6.57亿',@RevenueYoy = N'32.02',@RevenueQoq = N'-8.65',@Profit = N'797.10万',@ProfitYoy = N'4.03',@ProfiltQoq = N'-249.27',@NAVPerUnit = N'3.4400',@ROE = N'1.39',@CashPerUnit = N'0.6718',@GrossProfitRate = N'21.39',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-04-08' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2007-06-30',@EPS = N'0.05',@EPSDeduct = N'0.06',@Revenue = N'2.65亿',@RevenueYoy = N'-12.59',@RevenueQoq = N'170.17',@Profit = N'788.58万',@ProfitYoy = N'-6.32',@ProfiltQoq = N'2407.35',@NAVPerUnit = N'4.1500',@ROE = N'1.36',@CashPerUnit = N'0.4176',@GrossProfitRate = N'24.02',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2016-03-31',@EPS = N'0.01',@EPSDeduct = N'0',@Revenue = N'9.05亿',@RevenueYoy = N'369.96',@RevenueQoq = N'-27.58',@Profit = N'1166.01万',@ProfitYoy = N'424.99',@ProfiltQoq = N'-72.14',@NAVPerUnit = N'4.4223',@ROE = N'0.30',@CashPerUnit = N'-0.1487',@GrossProfitRate = N'11.56',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-26' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2007-09-30',@EPS = N'0.07',@EPSDeduct = N'0.07',@Revenue = N'4.70亿',@RevenueYoy = N'7.54',@RevenueQoq = N'5.89',@Profit = N'1093.86万',@ProfitYoy = N'-14.74',@ProfiltQoq = N'-59.74',@NAVPerUnit = N'3.4600',@ROE = N'-',@CashPerUnit = N'0.5724',@GrossProfitRate = N'21.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2006-12-31',@EPS = N'0.04',@EPSDeduct = N'0.03',@Revenue = N'4.98亿',@RevenueYoy = N'-8.08',@RevenueQoq = N'-54.59',@Profit = N'613.44万',@ProfitYoy = N'62.99',@ProfiltQoq = N'188.56',@NAVPerUnit = N'4.0000',@ROE = N'1.52',@CashPerUnit = N'0.3537',@GrossProfitRate = N'24.65',@Distribution = N'10转2派0.2',@DividenRate = N'0.20',@AnnounceDate = N'2008-04-16' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2007-03-31',@EPS = N'0.002',@EPSDeduct = N'0',@Revenue = N'7162.77万',@RevenueYoy = N'13.40',@RevenueQoq = N'17.93',@Profit = N'30.24万',@ProfitYoy = N'116.34',@ProfiltQoq = N'-97.62',@NAVPerUnit = N'4.1000',@ROE = N'-',@CashPerUnit = N'0.4299',@GrossProfitRate = N'29.52',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2006-06-30',@EPS = N'0.06',@EPSDeduct = N'0',@Revenue = N'3.03亿',@RevenueYoy = N'17.12',@RevenueQoq = N'280.23',@Profit = N'841.74万',@ProfitYoy = N'-37.68',@ProfiltQoq = N'654.68',@NAVPerUnit = N'4.0000',@ROE = N'1.52',@CashPerUnit = N'0.4315',@GrossProfitRate = N'24.19',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-08-17' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2006-03-31',@EPS = N'-0.013',@EPSDeduct = N'0',@Revenue = N'6316.40万',@RevenueYoy = N'-4.58',@RevenueQoq = N'-51.54',@Profit = N'-185.13万',@ProfitYoy = N'-132.59',@ProfiltQoq = N'79.41',@NAVPerUnit = N'3.9300',@ROE = N'-',@CashPerUnit = N'-0.3076',@GrossProfitRate = N'27.25',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-04-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2005-12-31',@EPS = N'0.11',@EPSDeduct = N'0',@Revenue = N'5.42亿',@RevenueYoy = N'-2.51',@RevenueQoq = N'-17.35',@Profit = N'1568.41万',@ProfitYoy = N'-44.57',@ProfiltQoq = N'-180.50',@NAVPerUnit = N'3.9400',@ROE = N'2.89',@CashPerUnit = N'-1.6047',@GrossProfitRate = N'28.04',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-04-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'4.11亿',@RevenueYoy = N'3.40',@RevenueQoq = N'-18.20',@Profit = N'2467.52万',@ProfitYoy = N'-8.63',@ProfiltQoq = N'42.72',@NAVPerUnit = N'4.0000',@ROE = N'-',@CashPerUnit = N'-0.2674',@GrossProfitRate = N'23.07',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-28' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2005-06-30',@EPS = N'0.1',@EPSDeduct = N'0',@Revenue = N'2.59亿',@RevenueYoy = N'18.06',@RevenueQoq = N'191.26',@Profit = N'1350.65万',@ProfitYoy = N'-2.19',@ProfiltQoq = N'37.76',@NAVPerUnit = N'3.9200',@ROE = N'2.49',@CashPerUnit = N'-0.4687',@GrossProfitRate = N'22.82',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-07-18' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2006-09-30',@EPS = N'0.09',@EPSDeduct = N'0',@Revenue = N'4.37亿',@RevenueYoy = N'6.29',@RevenueQoq = N'-44.31',@Profit = N'1283.02万',@ProfitYoy = N'-48.00',@ProfiltQoq = N'-57.03',@NAVPerUnit = N'4.0300',@ROE = N'-',@CashPerUnit = N'0.3329',@GrossProfitRate = N'24.46',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-27' EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2008-12-31',@EPS = N'-0.04',@EPSDeduct = N'-0.09',@Revenue = N'4.77亿',@RevenueYoy = N'-27.45',@RevenueQoq = N'-53.81',@Profit = N'-1457.81万',@ProfitYoy = N'-282.89',@ProfiltQoq = N'-9288.46',@NAVPerUnit = N'3.5000',@ROE = N'1.80',@CashPerUnit = N'1.3282',@GrossProfitRate = N'18.09',@Distribution = N'10转5送5派0.6',@DividenRate = N'0.87',@AnnounceDate = N'2010-04-28'
<gh_stars>0 INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (1, '2018-11-25 13:31:12', 'atuando', 1, 1); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (2, '2018-11-25 13:31:26', 'resolvendo', 1, 1); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (3, '2018-11-25 13:49:08', 'impressora xyz sala 5', 8, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (4, '2018-11-25 13:51:07', 'atualizando para verificação', 9, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (5, '2018-11-25 13:51:19', 'usuário não está', 9, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (6, '2018-11-25 13:51:33', 'usuário entrou em contato, reativando chamado', 9, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (7, '2018-11-25 13:51:42', 'atribuindo ao nome', 9, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (8, '2018-11-25 13:52:07', 'passando para resolução', 9, 65); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (9, '2018-11-25 14:33:42', 'atualizando para verificação', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (10, '2018-11-25 14:33:43', 'usuário não está', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (11, '2018-11-25 14:33:44', 'usuário entrou em contato, reativando chamado', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (12, '2018-11-25 14:33:45', 'atribuindo ao nome', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (13, '2018-11-25 14:34:15', 'atualizando para verificação', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (14, '2018-11-25 14:34:16', 'usuário não está', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (15, '2018-11-25 14:34:17', 'usuário entrou em contato, reativando chamado', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (16, '2018-11-25 14:34:19', 'atribuindo ao nome', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (17, '2018-11-25 14:35:02', 'atualizando para verificação', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (18, '2018-11-25 14:35:03', 'usuário não está', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (19, '2018-11-25 14:35:04', 'usuário entrou em contato, reativando chamado', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (20, '2018-11-25 14:35:05', 'atribuindo ao nome', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (21, '2018-11-25 14:36:03', 'passando para resolução', 9, 83); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (22, '2018-11-25 14:37:00', 'atualizando para verificação', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (23, '2018-11-25 14:37:01', 'usuário não está', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (24, '2018-11-25 14:37:02', 'usuário entrou em contato, reativando chamado', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (25, '2018-11-25 14:37:04', 'atribuindo ao nome', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (26, '2018-11-25 14:37:36', 'atualizando para verificação', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (27, '2018-11-25 14:37:37', 'usuário não está', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (28, '2018-11-25 14:37:38', 'usuário entrou em contato, reativando chamado', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (29, '2018-11-25 14:37:40', 'atribuindo ao nome', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (30, '2018-11-25 14:38:24', 'passando para resolução', 9, 84); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (31, '2018-11-25 14:39:14', 'atualizando para verificação', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (32, '2018-11-25 14:39:16', 'usuário não está', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (33, '2018-11-25 14:39:17', 'usuário entrou em contato, reativando chamado', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (34, '2018-11-25 14:39:18', 'atribuindo ao nome', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (35, '2018-11-25 14:40:01', 'atualizando para verificação', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (36, '2018-11-25 14:40:02', 'usuário não está', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (37, '2018-11-25 14:40:03', 'usuário entrou em contato, reativando chamado', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (38, '2018-11-25 14:40:05', 'atribuindo ao nome', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (39, '2018-11-25 14:40:07', 'passando para resolução', 9, 85); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (40, '2018-11-25 14:41:53', 'Cancelado', 1, 29); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (41, '2018-11-25 14:42:00', 'Cancelado', 1, 30); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (42, '2018-11-25 14:42:07', 'Cancelado', 1, 34); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (43, '2018-11-25 14:42:09', 'Cancelado', 1, 35); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (44, '2018-11-25 14:42:13', 'Cancelado', 1, 37); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (45, '2018-11-25 14:42:16', 'Cancelado', 1, 39); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (46, '2018-11-25 14:42:20', 'Cancelado', 1, 8); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (47, '2018-11-25 14:46:24', 'Atribuindo', 1, 79); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (48, '2018-11-25 14:46:43', 'resolvendo', 1, 79); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (49, '2018-11-25 14:46:54', 'atribuindo', 1, 74); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (50, '2018-11-25 14:47:13', 'resolvendo', 1, 74); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (51, '2018-11-25 14:47:22', 'atribuindo ', 1, 75); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (52, '2018-11-25 14:47:35', 'resolvendo', 1, 75); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (53, '2018-11-25 14:47:51', 'atribuindo ', 1, 71); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (54, '2018-11-25 14:47:57', 'cancelando', 1, 71); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (55, '2018-11-25 14:49:10', 'Pendente Usuario', 1, 68); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (56, '2018-11-25 14:49:24', 'atribuindo ', 1, 67); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (57, '2018-11-25 14:49:43', 'atribuindo ', 1, 66); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (58, '2018-11-25 14:49:49', 'pendente', 1, 66); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (59, '2018-11-25 14:51:10', 'att', 1, 81);
<reponame>johanbudiman/CrudSKKNI<filename>db.sql CREATE DATABASE `dbsertifikasi` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `t_data_pribadi` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `nik` CHAR(16) NOT NULL, `nama` VARCHAR(50) NOT NULL, `nohp` VARCHAR(12) NOT NULL, `tmptlahir` VARCHAR(25) NOT NULL, `tgllahir` DATE NOT NULL, `email` VARCHAR(50) NOT NULL, PRIMARY KEY `pk_t_data_pribadi`(`id`) ) ENGINE = InnoDB; CREATE TABLE IF NOT EXISTS `tru_skema` ( `kd` CHAR(2) NOT NULL, `skema` VARCHAR(50), PRIMARY KEY `pk_tru_skema`(`kd`) ) ENGINE = InnoDB; INSERT INTO `tru_skema` VALUES ('01','programming'), ('02','networking'), ('03','multimedia') ; CREATE TABLE IF NOT EXISTS `tru_tmptujikom` ( `kd` CHAR(2) NOT NULL, `tmptujikom` VARCHAR(50), PRIMARY KEY `tru_tmptujikom`(`kd`) ) ENGINE = InnoDB; INSERT INTO `tru_tmptujikom` VALUES ('01','jambi'), ('02','banda aceh'), ('03','padang'), ('04','bandar lampung') ; CREATE TABLE IF NOT EXISTS `t_sertifikasi` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `skema` CHAR(2) NOT NULL, `tmptujikom` CHAR(2) NOT NULL, `rekomendasi` VARCHAR(100) NOT NULL, `ttsertifikasi` DATE NOT NULL, `organisasi` VARCHAR(100) NOT NULL, `id_data_pribadi` BIGINT UNSIGNED NOT NULL, PRIMARY KEY `pk_t_sertifikasi`(`id`), CONSTRAINT `fk_the_sertifikasi_far_data_pribadi` FOREIGN KEY (`id_data_pribadi`) REFERENCES `t_data_pribadi` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_the_sertifikasi_far_skema` FOREIGN KEY (`skema`) REFERENCES `tru_skema` (`kd`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_sertifikasi_far_tmptujikom` FOREIGN KEY (`tmptujikom`) REFERENCES `tru_tmptujikom` (`kd`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB; CREATE TABLE IF NOT EXISTS `t_admin` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `usrname` VARCHAR(25) NOT NULL, `passw` VARCHAR(50) NOT NULL, `nama` VARCHAR(50) NOT NULL, PRIMARY KEY `pk_t_admin`(`id`) ) ENGINE = InnoDB; INSERT INTO `t_admin` (`usrname`,`passw`,`nama`) VALUES ('admin', md5('admin'),'admin') ;
<filename>database/schema.sql DROP DATABASE IF EXISTS express_cc; CREATE DATABASE express_cc; USE express_cc; CREATE TABLE users( userID INT NOT NULL AUTO_INCREMENT, username VARCHAR(15) NOT NULL, email VARCHAR(100) NOT NULL, password VARCHAR(60), CONSTRAINT users_uc UNIQUE (username, email), PRIMARY KEY (userID) ); CREATE TABLE posts( postID INT NOT NULL AUTO_INCREMENT, userID INT NOT NULL, postTitle VARCHAR(255) NOT NULL, category VARCHAR(255) NOT NULL, postBody TEXT(1000), link TEXT(1000), postTitle VARCHAR(100) NOT NULL, category VARCHAR(100) NOT NULL, upvotes INT NULL, downvotes INT NULL, PRIMARY KEY (postID), FOREIGN KEY (userID) REFERENCES users(userID), ts TIMESTAMP ); CREATE TABLE comments( commentID INT NOT NULL AUTO_INCREMENT, userID INT NOT NULL, postID INT NOT NULL, comment VARCHAR(1000) NOT NULL, upvotes INT NULL, downvotes INT NULL, PRIMARY KEY (commentID), FOREIGN KEY (userID) REFERENCES users(userID), FOREIGN KEY (postID) REFERENCES posts(postID), ts TIMESTAMP );
<filename>migrations/2018-06-19-091723_create_abac_object_list_function/up.sql create function abac_object_list(_attrs abac_attribute[], _offset integer, _limit integer) returns setof abac_attribute as $$ begin case array_length(_attrs, 1) when 1 then return query select (t.inbound).* from abac_object as t where t.outbound = _attrs[1] order by t.created_at offset _offset limit _limit; when 2 then return query select (t1.inbound).* from abac_object as t1 inner join abac_object as t2 on t1.inbound = t2.inbound where t1.outbound = _attrs[1] and t2.outbound = _attrs[2] order by t1.created_at offset _offset limit _limit; when 3 then return query select (t1.inbound).* from abac_object as t1 inner join abac_object as t2 on t1.inbound = t2.inbound inner join abac_object as t3 on t1.inbound = t3.inbound where t1.outbound = _attrs[1] and t2.outbound = _attrs[2] and t3.outbound = _attrs[3] order by t1.created_at offset _offset limit _limit; else raise exception 'bad argument' using detail = 'array length should be less or equal to 3'; end case; end $$ language plpgsql stable;
/* ******************************************************************************/ /* QACS -- Oracle script for creating tables and relationships */ /* ******************************************************************************/ CREATE TABLE CUSTOMER( CustomerID Int NOT NULL, LastName Char(25) NOT NULL, FirstName Char(25) NOT NULL, Address Char(35) NULL, City Char(35) NULL, State Char(2) NULL, ZIP Char(10) NULL, Phone Char(12) NOT NULL, Email VarChar(100) NULL, CONSTRAINT CUSTOMER_PK PRIMARY KEY(CustomerID) ); CREATE SEQUENCE seqCID INCREMENT BY 1 START WITH 1; CREATE TABLE EMPLOYEE( EmployeeID Int NOT NULL, LastName Char(25) NOT NULL, FirstName Char(25) NOT NULL, Phone Char(12) NULL, Email VarChar(100) NOT NULL UNIQUE, CONSTRAINT EMPLOYEE_PK PRIMARY KEY(EmployeeID) ); CREATE SEQUENCE seqEID INCREMENT BY 1 START WITH 1; CREATE TABLE VENDOR( VendorID Int NOT NULL, CompanyName Char(100) NULL, ContactLastName Char(25) NOT NULL, ContactFirstName Char(25) NOT NULL, Address Char(35) NULL, City Char(35) NULL, State Char(2) NULL, ZIP Char(10) NULL, Phone Char(12) NOT NULL, Fax Char(12) NULL, Email VarChar(100) NULL, CONSTRAINT VENDOR_PK PRIMARY KEY(VendorID) ); CREATE SEQUENCE seqVID INCREMENT BY 1 START WITH 1; CREATE TABLE ITEM( ItemID Int NOT NULL, ItemDescription VarChar(255) NOT NULL, PurchaseDate Date NOT NULL, ItemCost Numeric(9,2) NOT NULL, ItemPrice Numeric(9,2) NOT NULL, VendorID Int NOT NULL, CONSTRAINT ITEM_PK PRIMARY KEY (ItemID), CONSTRAINT ITEM_VENDOR_FK FOREIGN KEY (VendorID) REFERENCES VENDOR(VendorID)); CREATE SEQUENCE seqIID INCREMENT BY 1 START WITH 1; CREATE TABLE SALE( SaleID Int NOT NULL, CustomerID Int NOT NULL, EmployeeID Int NOT NULL, SaleDate Date NOT NULL, SubTotal Numeric(15,2) NULL, Tax Numeric(15,2) NULL, Total Numeric(15,2) NULL, CONSTRAINT SALE_PK PRIMARY KEY (SaleID), CONSTRAINT SALE_CUSTOMER_FK FOREIGN KEY (CustomerID) REFERENCES CUSTOMER(CustomerID), CONSTRAINT SALE_EMPLOYEE_FK FOREIGN KEY(EmployeeID) REFERENCES EMPLOYEE(EmployeeID)); CREATE SEQUENCE seqSID INCREMENT BY 1 START WITH 1; CREATE TABLE SALE_ITEM( SaleID Int NOT NULL, SaleItemID Int NOT NULL, ItemID Int NOT NULL, ItemPrice Numeric(9,2) NOT NULL, CONSTRAINT SALE_ITEM_PK PRIMARY KEY (SaleID, SaleItemID), CONSTRAINT SALE_ITEM_SALE_FK FOREIGN KEY (SaleID) REFERENCES SALE(SaleID) ON DELETE CASCADE, CONSTRAINT SALE_ITEM_ITEM_FK FOREIGN KEY (ItemID) REFERENCES ITEM(ItemID) );
CREATE FUNCTION CalcTotalEmployeeInTeam(@PK INT) RETURNS INT AS BEGIN DECLARE @RET INT = ( SELECT COUNT(*) AS TotalEmployee FROM tblTeam T JOIN tblTeamEmployee TE ON T.TeamID = TE.TeamID JOIN tblEmployee E on TE.EmployeeID = E.EmployeeID WHERE T.TeamID = @PK ) RETURN @RET END
<gh_stars>0 create table if not exists event ( event_id INTEGER PRIMARY KEY AUTOINCREMENT, event_type TEXT, event_time TEXT );
<gh_stars>1-10 /* Author: This code was generated by DALGen version 1.1.0.0 available at https://github.com/H0r53/DALGen Date: 12/27/2017 Description: Creates the order table and respective stored procedures */ USE applicationtemplate; -- ------------------------------------------------------------ -- Drop existing objects -- ------------------------------------------------------------ DROP TABLE IF EXISTS `applicationtemplate`.`order`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_Load`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_LoadAll`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_Add`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_Update`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_Delete`; DROP PROCEDURE IF EXISTS `applicationtemplate`.`usp_order_Search`; -- ------------------------------------------------------------ -- Create table -- ------------------------------------------------------------ CREATE TABLE `applicationtemplate`.`order` ( Id INT AUTO_INCREMENT, CustomerId INT, OrderStatusTypeId INT, OrderDate DATETIME, StripeCharge VARCHAR(255), StripeCustomer VARCHAR(255), StripeCard VARCHAR(255), StripeAmount DECIMAL(9), CONSTRAINT pk_order_Id PRIMARY KEY (Id), CONSTRAINT fk_order_CustomerId_customer_Id FOREIGN KEY (CustomerId) REFERENCES customer (Id), CONSTRAINT fk_order_OrderStatusTypeId_orderstatustype_Id FOREIGN KEY (OrderStatusTypeId) REFERENCES orderstatustype (Id) ); -- ------------------------------------------------------------ -- Create default SCRUD sprocs for this table -- ------------------------------------------------------------ DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_Load` ( IN paramId INT ) BEGIN SELECT `order`.`Id` AS `Id`, `order`.`CustomerId` AS `CustomerId`, `order`.`OrderStatusTypeId` AS `OrderStatusTypeId`, `order`.`OrderDate` AS `OrderDate`, `order`.`StripeCharge` AS `StripeCharge`, `order`.`StripeCustomer` AS `StripeCustomer`, `order`.`StripeCard` AS `StripeCard`, `order`.`StripeAmount` AS `StripeAmount` FROM `order` WHERE `order`.`Id` = paramId; END // DELIMITER ; DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_LoadAll` () BEGIN SELECT `order`.`Id` AS `Id`, `order`.`CustomerId` AS `CustomerId`, `order`.`OrderStatusTypeId` AS `OrderStatusTypeId`, `order`.`OrderDate` AS `OrderDate`, `order`.`StripeCharge` AS `StripeCharge`, `order`.`StripeCustomer` AS `StripeCustomer`, `order`.`StripeCard` AS `StripeCard`, `order`.`StripeAmount` AS `StripeAmount` FROM `order`; END // DELIMITER ; DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_Add` ( IN paramCustomerId INT, IN paramOrderStatusTypeId INT, IN paramOrderDate DATETIME, IN paramStripeCharge VARCHAR(255), IN paramStripeCustomer VARCHAR(255), IN paramStripeCard VARCHAR(255), IN paramStripeAmount DECIMAL(9) ) BEGIN INSERT INTO `order` (CustomerId,OrderStatusTypeId,OrderDate,StripeCharge,StripeCustomer,StripeCard,StripeAmount) VALUES (paramCustomerId, paramOrderStatusTypeId, paramOrderDate, paramStripeCharge, paramStripeCustomer, paramStripeCard, paramStripeAmount); -- Return last inserted ID as result SELECT LAST_INSERT_ID() as id; END // DELIMITER ; DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_Update` ( IN paramId INT, IN paramCustomerId INT, IN paramOrderStatusTypeId INT, IN paramOrderDate DATETIME, IN paramStripeCharge VARCHAR(255), IN paramStripeCustomer VARCHAR(255), IN paramStripeCard VARCHAR(255), IN paramStripeAmount DECIMAL(9) ) BEGIN UPDATE `order` SET CustomerId = paramCustomerId ,OrderStatusTypeId = paramOrderStatusTypeId ,OrderDate = paramOrderDate ,StripeCharge = paramStripeCharge ,StripeCustomer = paramStripeCustomer ,StripeCard = paramStripeCard ,StripeAmount = paramStripeAmount WHERE `order`.`Id` = paramId; END // DELIMITER ; DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_Delete` ( IN paramId INT ) BEGIN DELETE FROM `order` WHERE `order`.`Id` = paramId; END // DELIMITER ; DELIMITER // CREATE PROCEDURE `applicationtemplate`.`usp_order_Search` ( IN paramId INT, IN paramCustomerId INT, IN paramOrderStatusTypeId INT, IN paramOrderDate DATETIME, IN paramStripeCharge VARCHAR(255), IN paramStripeCustomer VARCHAR(255), IN paramStripeCard VARCHAR(255), IN paramStripeAmount DECIMAL(9) ) BEGIN SELECT `order`.`Id` AS `Id`, `order`.`CustomerId` AS `CustomerId`, `order`.`OrderStatusTypeId` AS `OrderStatusTypeId`, `order`.`OrderDate` AS `OrderDate`, `order`.`StripeCharge` AS `StripeCharge`, `order`.`StripeCustomer` AS `StripeCustomer`, `order`.`StripeCard` AS `StripeCard`, `order`.`StripeAmount` AS `StripeAmount` FROM `order` WHERE COALESCE(`order`.`Id`,0) = COALESCE(paramId,`order`.`Id`,0) AND COALESCE(`order`.`CustomerId`,0) = COALESCE(paramCustomerId,`order`.`CustomerId`,0) AND COALESCE(`order`.`OrderStatusTypeId`,0) = COALESCE(paramOrderStatusTypeId,`order`.`OrderStatusTypeId`,0) AND COALESCE(CAST(`order`.`OrderDate` AS DATE), CAST(NOW() AS DATE)) = COALESCE(CAST(paramOrderDate AS DATE),CAST(`order`.`OrderDate` AS DATE), CAST(NOW() AS DATE)) AND COALESCE(`order`.`StripeCharge`,'') = COALESCE(paramStripeCharge,`order`.`StripeCharge`,'') AND COALESCE(`order`.`StripeCustomer`,'') = COALESCE(paramStripeCustomer,`order`.`StripeCustomer`,'') AND COALESCE(`order`.`StripeCard`,'') = COALESCE(paramStripeCard,`order`.`StripeCard`,'') AND COALESCE(`order`.`StripeAmount`,0) = COALESCE(paramStripeAmount,`order`.`StripeAmount`,0); END // DELIMITER ;
<gh_stars>1-10 --- !Ups CREATE TABLE users ( user_id SERIAL PRIMARY KEY, oauth_id VARCHAR UNIQUE NOT NULL ); CREATE INDEX idx_oauth_id ON users(oauth_id); CREATE TABLE tokens ( token UUID PRIMARY KEY, user_id INT REFERENCES users(user_id) ON DELETE CASCADE ); --- !Downs DROP TABLE IF EXISTS tokens; DROP TABLE IF EXISTS users;
<filename>__tests__/assets/cosmo-example-1.sql SELECT * FROM Families f WHERE 1=1 AND f.id = "WakefieldFamily"
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `dopt` DEFAULT CHARACTER SET latin1 ; USE `dopt` ; -- ----------------------------------------------------- -- Table `dopt`.`assignment` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`assignment` ( `assignmentID` INT(11) NOT NULL AUTO_INCREMENT , `assignmentName` VARCHAR(512) NOT NULL , `sense` INT(2) NOT NULL DEFAULT '0' , PRIMARY KEY (`assignmentID`) ) ENGINE = MyISAM AUTO_INCREMENT = 7 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`problem` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`problem` ( `problemID` INT(11) NOT NULL AUTO_INCREMENT , `partID` VARCHAR(64) NOT NULL , `partNumber` INT(5) NOT NULL , `problemName` VARCHAR(512) NOT NULL , `problemNameLong` VARCHAR(512) NOT NULL , `grade1` INT(11) NOT NULL , `grade2` INT(11) NOT NULL , PRIMARY KEY (`problemID`) ) ENGINE = MyISAM AUTO_INCREMENT = 51 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`leader` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`leader` ( `ID` BIGINT(20) NOT NULL AUTO_INCREMENT , `courseraUserID` INT(11) NOT NULL , `assignmentID` INT(11) NOT NULL , `partID` VARCHAR(64) NOT NULL , `quality` DOUBLE NOT NULL , `proof` INT(3) NOT NULL , `time` DOUBLE NOT NULL , `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP , PRIMARY KEY (`ID`) , INDEX `sort` (`quality` ASC, `proof` ASC, `timestamp` ASC) , INDEX `parts` (`partID` ASC) , INDEX `assignments` (`assignmentID` ASC) ) ENGINE = MyISAM AUTO_INCREMENT = 199101 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`leader_2` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`leader_2` ( `ID` BIGINT(20) NOT NULL AUTO_INCREMENT , `courseraUserID` INT(11) NOT NULL , `assignmentID` INT(11) NOT NULL , `partID` VARCHAR(64) NOT NULL , `fileName` VARCHAR(64) NOT NULL , `quality` DOUBLE NOT NULL , `proof` INT(3) NOT NULL , `time` DOUBLE NOT NULL , `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP , PRIMARY KEY (`ID`) , INDEX `sort` (`quality` ASC, `proof` ASC, `timestamp` ASC) , INDEX `parts` (`partID` ASC) , INDEX `assignments` (`assignmentID` ASC) , INDEX `files` (`fileName` ASC) ) ENGINE = MyISAM AUTO_INCREMENT = 199101 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`submission` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`submission` ( `submissionID` BIGINT(20) NOT NULL AUTO_INCREMENT , `courseraUserID` INT(11) NOT NULL , `assignmentID` INT(11) NOT NULL , `partID` VARCHAR(64) NOT NULL , `subtime` INT(16) NOT NULL , `feedbackCode` INT(11) NOT NULL , `grade` INT(11) NOT NULL , `leaderID` BIGINT(20) NULL DEFAULT NULL , `quality` DOUBLE NULL DEFAULT NULL , `proof` INT(3) NULL DEFAULT NULL , `time` DOUBLE NULL DEFAULT NULL , `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`submissionID`) , INDEX `userassignmentpart` (`courseraUserID` ASC, `assignmentID` ASC, `partID` ASC) , INDEX `user` (`courseraUserID` ASC) , INDEX `assignments` (`assignmentID` ASC) , INDEX `parts` (`partID` ASC) ) ENGINE = MyISAM AUTO_INCREMENT = 471639 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`submission_2` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`submission_2` ( `submissionID` BIGINT(20) NOT NULL AUTO_INCREMENT , `courseraUserID` INT(11) NOT NULL , `assignmentID` INT(11) NOT NULL , `partID` VARCHAR(64) NOT NULL , `fileName` VARCHAR(64) NOT NULL , `subtime` INT(16) NOT NULL , `feedbackCode` INT(11) NOT NULL , `grade` INT(11) NOT NULL , `leaderID` BIGINT(20) NULL DEFAULT NULL , `quality` DOUBLE NULL DEFAULT NULL , `proof` INT(3) NULL DEFAULT NULL , `time` DOUBLE NULL DEFAULT NULL , `timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`submissionID`) , INDEX `userassignmentpart` (`courseraUserID` ASC, `assignmentID` ASC, `partID` ASC, `fileName` ASC) , INDEX `user` (`courseraUserID` ASC) , INDEX `assignments` (`assignmentID` ASC) , INDEX `parts` (`partID` ASC) , INDEX `files` (`fileName` ASC) ) ENGINE = MyISAM AUTO_INCREMENT = 471639 DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table `dopt`.`user` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dopt`.`user` ( `userID` INT(11) NOT NULL AUTO_INCREMENT , `courseraUserID` INT(11) NOT NULL , `userName` VARCHAR(128) NOT NULL , PRIMARY KEY (`userID`) ) ENGINE = MyISAM AUTO_INCREMENT = 44944 DEFAULT CHARACTER SET = utf8; USE `dopt` ; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; -- ----------------------------------------------------- -- Data for table `dopt`.`assignment` -- ----------------------------------------------------- START TRANSACTION; USE `dopt`; INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (1, 'Knapsack', 1); INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (2, 'Graph Coloring', 0); INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (3, 'Traveling Salesman', 0); INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (4, 'Warehouse Location', 0); INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (5, 'Vehicle Routing', 0); INSERT INTO `dopt`.`assignment` (`assignmentID`, `assignmentName`, `sense`) VALUES (6, 'Puzzle Challenge', 1); COMMIT; -- ----------------------------------------------------- -- Data for table `dopt`.`problem` -- ----------------------------------------------------- START TRANSACTION; USE `dopt`; INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (1, 'UB1HKrQ7', 1, 'Knapsack 1', 'Knapsack Problem 1', 92000, 99798); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (2, 'u6sleLfT', 2, 'Knapsack 2', 'Knapsack Problem 2', 141956, 142156); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (3, 'DLtBFO66', 3, 'Knapsack 3', 'Knapsack Problem 3', 100062, 100236); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (4, 'zVGvzWRJ', 4, 'Knapsack 4', 'Knapsack Problem 4', 3966813, 3967028); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (5, 'yD06cKUp', 5, 'Knapsack 5', 'Knapsack Problem 5', 109869, 109899); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (6, 'MLjl5jzP', 6, 'Knapsack 6', 'Knapsack Problem 6', 1099870, 1099881); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (7, 'upNcCDtk', 1, 'Coloring 1', 'Coloring Problem 1', 8, 6); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (8, 'Cy6WMCm7', 2, 'Coloring 2', 'Coloring Problem 2', 20, 17); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (9, 'UOKSlXMq', 3, 'Coloring 3', 'Coloring Problem 3', 21, 16); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (10, 'ecjBwfpP', 4, 'Coloring 4', 'Coloring Problem 4', 95, 78); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (11, 'a10G1b1U', 5, 'Coloring 5', 'Coloring Problem 5', 18, 16); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (12, 'pIzekcCG', 6, 'Coloring 6', 'Coloring Problem 6', 124, 100); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (13, 'WdrlJtJq', 1, 'TSP 1', 'Traveling Salesman Problem 1', 482, 430); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (14, 'dTewhF6o', 2, 'TSP 2', 'Traveling Salesman Problem 2', 23433, 20800); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (15, 'OlJBvw72', 3, 'TSP 3', 'Traveling Salesman Problem 3', 35985, 30000); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (16, 'KZQYdfck', 4, 'TSP 4', 'Traveling Salesman Problem 4', 40000, 37600); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (17, 'vViyejW4', 5, 'TSP 5', 'Traveling Salesman Problem 5', 378069, 323000); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (18, 'vLKzhJhP', 6, 'TSP 6', 'Traveling Salesman Problem 6', 78478868, 67700000); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (19, '8zVuNh0L', 1, 'WLP 1', 'Warehouse Location Problem 1', 1727125, 976740); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (20, 'eaOs8z3l', 2, 'WLP 2', 'Warehouse Location Problem 2', 1248144, 796650); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (21, 'pxIsuCQe', 3, 'WLP 3', 'Warehouse Location Problem 3', 1153610, 793441); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (22, 'clCLq0Vb', 4, 'WLP 4', 'Warehouse Location Problem 4', 26311921, 17765203); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (23, '2gHetJOV', 5, 'WLP 5', 'Warehouse Location Problem 5', 3897, 2688); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (24, 'ASSX0Lq4', 6, 'WLP 6', 'Warehouse Location Problem 6', 4485, 2610); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (25, 'OXs89Owz', 7, 'WLP 7', 'Warehouse Location Problem 7', 9094, 6120); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (26, 'AO0FA8y8', 8, 'WLP 8', 'Warehouse Location Problem 8', 17378, 13000); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (27, 'AbP3LXz3', 0, 'VRP 1', 'Vehicle Routing Problem 1', 387, 280); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (28, 'qUskNlyI', 1, 'VRP 2', 'Vehicle Routing Problem 2', 1019, 630); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (29, 'WrJzs7t7', 2, 'VRP 3', 'Vehicle Routing Problem 3', 713, 540); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (30, 'Fhfahwgd', 3, 'VRP 4', 'Vehicle Routing Problem 4', 1193, 830); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (31, 'i5cdcvuF', 4, 'VRP 5', 'Vehicle Routing Problem 5', 3719, 1400); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (32, 'kIKqylL1', 5, 'VRP 6', 'Vehicle Routing Problem 6', 2392, 2000); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (33, '1SxQohvJ', 0, 'N-Queens', 'N-Queens', -100, 32768); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (34, 's8Mt3ofs', 1, 'All Interval Series', 'All Interval Series', -100, 1048576); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (35, 'MfTvElXE', 2, 'Magic Series', 'Magic Series', -100, 1048576); INSERT INTO `dopt`.`problem` (`problemID`, `partID`, `partNumber`, `problemName`, `problemNameLong`, `grade1`, `grade2`) VALUES (36, 'mBtMalnR', 3, 'Magic Square', 'Magic Square', -1, 1024); COMMIT; START TRANSACTION; CREATE USER 'coursera'@'%' IDENTIFIED BY 'optimization is fun'; GRANT SELECT ON `dopt`.* TO 'coursera'@'%'; GRANT INSERT, UPDATE ON `dopt`.`leader` TO 'coursera'@'%'; GRANT INSERT, UPDATE ON `dopt`.`leader_2` TO 'coursera'@'%'; GRANT INSERT, UPDATE ON `dopt`.`submission` TO 'coursera'@'%'; GRANT INSERT, UPDATE ON `dopt`.`submission_2` TO 'coursera'@'%'; GRANT INSERT, UPDATE ON `dopt`.`user` TO 'coursera'@'%'; COMMIT;
<reponame>DataHandwerk/DataHandwerk-toolkit-mssql  Create View ssas.[model_json_31111_tables_columns_descriptions_StrAgg] As Select T1.databasename , T1.tables_name , T1.tables_columns_name , T1.RepoObject_guid , T1.RepoObjectColumn_guid , descriptions_StrAgg = String_Agg ( Value, Char ( 13 ) + Char ( 10 )) Within Group(Order By [key]) From ssas.model_json_3111_tables_columns_descriptions_multiline As T1 Group By T1.databasename , T1.tables_name , T1.tables_columns_name , T1.RepoObject_guid , T1.RepoObjectColumn_guid GO EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = '1bff988b-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'ecdfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'tables_name'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'eddfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'tables_columns_name'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'efdfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'RepoObjectColumn_guid'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'eedfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'RepoObject_guid'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'f0dfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = 'ebdfd191-480b-ec11-8516-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'databasename'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'is_ssas', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'is_repo_managed', @value = N'0', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'AntoraReferencingList', @value = N'* xref:repo.RepoObjectColumn_gross.adoc[]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'AntoraReferencedList', @value = N'* xref:ssas.model_json_3111_tables_columns_descriptions_multiline.adoc[]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline].[tables_name]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'tables_name'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline].[tables_columns_name]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'tables_columns_name'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline].[RepoObjectColumn_guid]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'RepoObjectColumn_guid'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline].[RepoObject_guid]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'RepoObject_guid'; GO EXECUTE sp_addextendedproperty @name = N'ReferencedObjectColumnList', @value = N'* [ssas].[model_json_3111_tables_columns_descriptions_multiline].[databasename]', @level0type = N'SCHEMA', @level0name = N'ssas', @level1type = N'VIEW', @level1name = N'model_json_31111_tables_columns_descriptions_StrAgg', @level2type = N'COLUMN', @level2name = N'databasename';
DROP TABLE messages_day_stat;
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/create/86de5a05.sql -- file:insert_conflict.sql ln:196 expect:true create unique index fruit_index on insertconflicttest(fruit)
-- -- DELIMITER $$ DROP function IF EXISTS _split_get_columns_count $$ CREATE function _split_get_columns_count() returns TINYINT UNSIGNED DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER COMMENT '' BEGIN declare return_value TINYINT UNSIGNED; select count(*) from _split_column_names_table into @_return_value ; set return_value=@_return_value; return return_value; END $$ DELIMITER ;
-- +----------------------------------------------------------------------------+ -- | <NAME> | -- | <EMAIL> | -- | www.idevelopment.info | -- |----------------------------------------------------------------------------| -- | Copyright (c) 1998-2011 <NAME>. All rights reserved. | -- |----------------------------------------------------------------------------| -- | DATABASE : Oracle | -- | FILE : perf_performance_snapshot.sql | -- | CLASS : Tuning | -- | PURPOSE : This script will generate a small performance overview report | -- | checking all key database performance indicators. | -- | NOTE : As with any code, ensure to test this script in a development | -- | environment before attempting to run it in production. | -- +----------------------------------------------------------------------------+ SET LINESIZE 145 SET PAGESIZE 9999 SET VERIFY off PROMPT PROMPT +-----------------------------------+ PROMPT | Database Startup Date/Time | PROMPT +-----------------------------------+ PROMPT SELECT instance "Instance Name" , open_time "Open Date/Time" FROM v$thread / PROMPT PROMPT +-----------------------------------+ PROMPT | Buffer Cache Hit Ratio | PROMPT +-----------------------------------+ PROMPT SELECT TRUNC( ( 1 - ( SUM(decode(name,'physical reads',value,0)) / ( SUM(DECODE(name,'db block gets',value,0)) + (SUM(DECODE(name,'consistent gets',value,0))) ) ) ) * 100 ) "Buffer Hit Ratio" FROM v$sysstat / SELECT a.value + b.value "Logical reads" , c.value "Physical Reads" , d.value "Physical Writes" , ROUND (100 * ( (a.value+b.value)-c.value) / (a.value+b.value) ) "Buffer Hit Ratio" , ROUND(c.value * 100 / (a.value + b.value)) "% Missed" FROM v$sysstat a , v$sysstat b , v$sysstat c , v$sysstat d WHERE a.statistic#=37 AND b.statistic#=38 AND c.statistic#=39 AND d.statistic#=40 / PROMPT PROMPT +-----------------------------------+ PROMPT | Data Dictionary Hit Ratio | PROMPT +-----------------------------------+ PROMPT SELECT SUM(gets) "Data Dict. Gets" , SUM(getmisses) "Data Dict. Cache Misses" , ROUND((1-(sum(getmisses)/SUM(gets)))*100) "Data Dict Cache Hit Ratio" , ROUND(SUM(getmisses)*100/SUM(gets)) "% Missed" FROM v$rowcache / PROMPT PROMPT +-----------------------------------+ PROMPT | Library Cache Miss Ratio | PROMPT +-----------------------------------+ PROMPT SELECT SUM(pins) "Executions" , SUM(reloads) "Cache Misses" , ROUND((1-(SUM(reloads)/SUM(pins)))*100) "Library Cache Hit Ratio" , ROUND(SUM(reloads)*100/SUM(pins)) "% Missed" FROM v$librarycache / SELECT namespace "Namespace" , TRUNC(gethitratio*100) "Hit Ratio" , TRUNC(pinhitratio*100) "Pin Hit Ratio" , reloads "Reloads" , invalidations "Invalidations" FROM v$librarycache / PROMPT PROMPT +-----------------------------------+ PROMPT | Redo Log Buffer | PROMPT +-----------------------------------+ PROMPT SELECT SUBSTR(name,1,30) "Name" , TO_CHAR(value, '999,999') "Bytes" FROM v$sysstat WHERE name ='redo log space requests' / SELECT name "Name" , TO_CHAR(bytes, '999,999,999,999') "Bytes" FROM v$sgastat WHERE name ='free memory' / SELECT TO_CHAR(SUM(executions), '999,999,999,999,999,999') "Tot SQL since startup" , TO_CHAR(SUM(users_executing), '999,999,999,999,999') "SQL executing now" FROM v$sqlarea / PROMPT PROMPT +--------------------------------------------------------+ PROMPT | If miss_ratio or immediate_miss_ratio > 1 then latch | PROMPT | contention exists, decrease LOG_SMALL_ENTRY_MAX_SIZE | PROMPT +--------------------------------------------------------+ PROMPT SELECT SUBSTR(ln.name,1,30) "Name" , (misses/(gets+.001)) * 100 "Miss Ratio" , (immediate_misses/(immediate_gets+.001)) * 100 "Immd. Miss Ratio" FROM v$latch l , v$latchname ln WHERE l.latch# = ln.latch# AND ( (( misses / (gets+.001)) * 100 > .1 ) OR (( immediate_misses / (immediate_gets+.001)) * 100 > .1) ) ORDER BY ln.name / PROMPT PROMPT +--------------------------------------------------------+ PROMPT | If these are < 1% of Total Number of requests for data | PROMPT | then extra rollback segments are needed. | PROMPT +--------------------------------------------------------+ PROMPT SELECT class "Class" , count "Count" FROM v$waitstat WHERE class IN ( 'free list' , 'system undo header' , 'system undo block' , 'undo header' , 'undo block') GROUP BY class , count / PROMPT PROMPT +-----------------------------------+ PROMPT | Total Number of Requests for Data | PROMPT +-----------------------------------+ PROMPT SELECT TO_CHAR(SUM(value), '999,999,999,999,999') "Total Requests" FROM v$sysstat WHERE name IN ('db block gets','consistent gets') /
<reponame>ytyaru/Sqlite3.NewsApi.CreateTable.20190917143552<filename>src/news_images.sql create table images( news_id integer, -- どの記事に対応した画像か url text, -- 拡張子も含めているはず。これ重要 image blob -- バイナリ );
<gh_stars>10-100 -- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. -- PostgreSQL database for the validation module, version 1.0.0 SET client_encoding = 'UTF8'; SET default_with_oids = FALSE; CREATE TABLE IF NOT EXISTS "validation_dashboard" ( "dashboard_id" serial PRIMARY KEY, "owner_id" bigint NOT NULL, "name" character varying(255) NOT NULL, "description" text NOT NULL, "truthfolder_id" bigint DEFAULT NULL, "testingfolder_id" bigint DEFAULT NULL, "trainingfolder_id" bigint DEFAULT NULL, "min" double precision DEFAULT NULL, "max" double precision DEFAULT NULL, "metric_id" bigint DEFAULT NULL ); CREATE TABLE IF NOT EXISTS "validation_dashboard2folder" ( "dashboard2folder_id" serial PRIMARY KEY, "dashboard_id" bigint NOT NULL, "folder_id" bigint NOT NULL ); CREATE TABLE IF NOT EXISTS "validation_dashboard2scalarresult" ( "dashboard2scalarresult_id" serial PRIMARY KEY, "dashboard_id" bigint NOT NULL, "scalarresult_id" bigint NOT NULL ); CREATE TABLE IF NOT EXISTS "validation_scalarresult" ( "scalarresult_id" serial PRIMARY KEY, "folder_id" bigint NOT NULL, "item_id" bigint NOT NULL, value double precision DEFAULT NULL );
<gh_stars>0 UPDATE ACCOUNT SET Lname = 'Swift' WHERE Email = '<EMAIL>'; UPDATE POST SET Content = 'Life is so tough :<' WHERE PostID = 21; UPDATE POST SET Content = 'nvm DELL fixed my laptop for me. yay!' WHERE PostID = 23; UPDATE POST SET Content = 'oops! you saw nothing!' WHERE PostID = 24; UPDATE [MESSAGE] SET Content = 'gotchu babe' WHERE ThreadID = 25 AND Sender = '<EMAIL>' AND MsgDate = '03/01/2017' AND MsgTime = '17:04:21';
<reponame>arturskk/FitApka2 CREATE CACHED TABLE PUBLIC.WEIGHT( ID INT AUTO_INCREMENT, DATE DATE NOT NULL, KILOGRAMS FLOAT8 NOT NULL, USER_ID INT ); ALTER TABLE PUBLIC.WEIGHT ADD CONSTRAINT PUBLIC.CONSTRAINT_9 PRIMARY KEY(ID); ALTER TABLE PUBLIC.WEIGHT ADD CONSTRAINT PUBLIC.UK_R4KY9E01CP3060J1HGMMQO220 UNIQUE(USER_ID, DATE); CREATE CACHED TABLE PUBLIC.FITNESS_USER( ID INT AUTO_INCREMENT, ACTIVITY_LEVEL FLOAT8 NOT NULL, BIRTHDATE DATE NOT NULL, CREATED_TIME TIMESTAMP NOT NULL, EMAIL VARCHAR(100) NOT NULL, FIRST_NAME VARCHAR(20) NOT NULL, GENDER VARCHAR(6) NOT NULL, HEIGHT_IN_CM FLOAT8 NOT NULL, LAST_NAME VARCHAR(20) NOT NULL, LAST_UPDATED_TIME TIMESTAMP NOT NULL, PASSWORD_HASH VARCHAR(100), TIMEZONE VARCHAR(50) NOT NULL DEFAULT 'America/New_York' ); ALTER TABLE PUBLIC.FITNESS_USER ADD CONSTRAINT PUBLIC.CONSTRAINT_1 PRIMARY KEY(ID); ALTER TABLE PUBLIC.WEIGHT ADD CONSTRAINT PUBLIC.FK_RUS9MPSDMIJSL6FUJHHUD5PGU FOREIGN KEY(USER_ID) REFERENCES PUBLIC.FITNESS_USER(ID) NOCHECK;
CREATE TABLE Productos ( IDProductos int IDENTITY(1,1) PRIMARY KEY, Titulo varchar(255) NOT NULL, Descripcion varchar(255), PrecioUnitario Decimal(7,2) NOT NULL, Existencias int NOT NULL ); CREATE TABLE Ventas ( IDVentas int IDENTITY(1,1) PRIMARY KEY, IDProductos int FOREIGN KEY REFERENCES Productos(IDProductos), CantidadVendida int, Fecha datetime2 NOT NULL ); INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Maestro Limpio 1L' ,'Limpiador multiusos.' ,18 ,1000) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Cloralex 1L.' , 'Cloro para limpieza general.' ,14.50 ,500) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('<NAME>illas 10 Unidades' ,'Cloro en pastillas para desinfección de inodoro.' ,120.80 ,90) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Pinol 1L.' ,'Limpiador Multiusos.' ,21.50 ,425) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Siempre Limpio 300 Bolsas.' ,'Bolsas para basura biodegradables.' ,150.80 ,125) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('El Reluciente. 2 Kilos.' ,'Jabon para lavado de trastes.' ,16.70 ,225) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('El suavecito. Paquete 4 rollos.' ,'Papel Higienico.' ,60 ,673) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Cesto Papelero. Capacidad de 1L cubico' ,'Cesto papelero.' ,70 ,23) GO INSERT INTO [dbo].[Productos] ([Titulo] ,[Descripcion] ,[PrecioUnitario] ,[Existencias]) VALUES ('Toallitas Resplandor. Paquete 70 toallitas.' ,'Toallitas desinfectantes.' ,113 ,825) GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 2 ,5 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 3 ,500 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 4 ,78 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 2 ,250 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 8 ,700 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 5 ,96 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 1 ,500 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 9 ,550 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 4 ,763 ,'01-08-2017 11:25:57') GO INSERT INTO [dbo].[Ventas] ([IDProductos] ,[CantidadVendida] ,[Fecha]) VALUES( 4 ,298 ,'01-08-2017 11:25:57') GO
<filename>section_007/db/scripts/update_002.sql CREATE table if not exists vacancies( id serial primary key, header character varying(2000), href text, date Timestamp );
<reponame>zenhomes/dbt_stripe_source<filename>models/stg_stripe_invoice.sql {{ config(enabled=var('using_invoices', True)) }} with invoice as ( select * from {{ var('invoice') }} ), fields as ( select id as invoice_id, amount_due, amount_paid, amount_remaining, attempt_count, auto_advance, billing_reason, charge_id, created as created_at, currency, customer_id, description, due_date, number, paid as is_paid, receipt_number, status, subtotal, tax, tax_percent, total from invoice where not coalesce(is_deleted, false) ) select * from fields
<reponame>Duan-You/Java<filename>fc/flipped_classroom.sql /* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : flipped_classroom Target Server Type : MySQL Target Server Version : 80019 File Encoding : 65001 Date: 10/06/2020 14:00:00 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for answer_record -- ---------------------------- DROP TABLE IF EXISTS `answer_record`; CREATE TABLE `answer_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `student_id` int(0) NULL DEFAULT NULL, `teacher_id` int(0) NULL DEFAULT NULL, `answerer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `answer` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `answer_date` datetime(0) NULL DEFAULT NULL, `question_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `student_id`(`student_id`) USING BTREE, INDEX `teacher_id`(`teacher_id`) USING BTREE, INDEX `question_id`(`question_id`) USING BTREE, CONSTRAINT `answer_record_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `student` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `answer_record_ibfk_2` FOREIGN KEY (`teacher_id`) REFERENCES `teacher` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `answer_record_ibfk_3` FOREIGN KEY (`question_id`) REFERENCES `question_record` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of answer_record -- ---------------------------- INSERT INTO `answer_record` VALUES (1, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 1); INSERT INTO `answer_record` VALUES (2, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 2); INSERT INTO `answer_record` VALUES (3, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 3); INSERT INTO `answer_record` VALUES (4, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 4); INSERT INTO `answer_record` VALUES (5, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 5); INSERT INTO `answer_record` VALUES (6, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 6); INSERT INTO `answer_record` VALUES (7, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 7); INSERT INTO `answer_record` VALUES (8, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 8); INSERT INTO `answer_record` VALUES (9, 1, 1, '学生', '答案1', '2020-05-25 11:16:39', 9); INSERT INTO `answer_record` VALUES (10, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 10); INSERT INTO `answer_record` VALUES (11, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 11); INSERT INTO `answer_record` VALUES (12, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 12); INSERT INTO `answer_record` VALUES (13, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 13); INSERT INTO `answer_record` VALUES (14, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 14); INSERT INTO `answer_record` VALUES (15, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 15); INSERT INTO `answer_record` VALUES (16, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 16); INSERT INTO `answer_record` VALUES (17, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 17); INSERT INTO `answer_record` VALUES (18, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 18); INSERT INTO `answer_record` VALUES (19, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 19); INSERT INTO `answer_record` VALUES (20, 1, 1, '教师', '答案1', '2020-05-25 11:16:39', 20); INSERT INTO `answer_record` VALUES (21, 1, 1, '学生', '答案如下', '2020-05-30 18:31:01', 1); INSERT INTO `answer_record` VALUES (22, 1, 1, '学生', '教师答案', '2020-06-01 13:58:24', 1); INSERT INTO `answer_record` VALUES (23, 1, 1, '学生', '回答教师的答案如下', '2020-06-02 19:32:14', 1); INSERT INTO `answer_record` VALUES (24, 1, 1, '学生', '回答老师提出的问题', '2020-06-02 19:35:17', 1); -- ---------------------------- -- Table structure for course -- ---------------------------- DROP TABLE IF EXISTS `course`; CREATE TABLE `course` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `category` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `detail` varchar(511) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `school` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `point_system` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of course -- ---------------------------- INSERT INTO `course` VALUES (1, '数据结构', '计算机', '/static/img/computer_ds.jpg', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (2, '离散数学', '计算机', '/static/img/computer_maths.jpg', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (3, '计算机网络', '计算机', '/static/img/computer_net.jpg', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (4, '计算机组成原理', '计算机', '/static/img/computer_composition.jpg', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (5, '数据库', '计算机', '/static/img/computer_database.jpg', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (6, '操作系统', '计算机', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (7, '高等数学', '数学', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (8, '大学英语', '英语', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (9, '线性代数', '数学', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (10, '计算机图形学', '计算机', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (11, 'OpenGL', '计算机', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (16, '数据库', '计算机', '/static/img/default_course.png', '暂无', '陕西理工大学', '百分制'); INSERT INTO `course` VALUES (20, '开设课程', '计算机', NULL, '暂无', '陕西理工大学', '百分制'); -- ---------------------------- -- Table structure for course_record -- ---------------------------- DROP TABLE IF EXISTS `course_record`; CREATE TABLE `course_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `course_id` int(0) NULL DEFAULT NULL, `teacher_id` int(0) NULL DEFAULT NULL, `record_date` datetime(0) NOT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `course_id`(`course_id`) USING BTREE, INDEX `teacher_id`(`teacher_id`) USING BTREE, CONSTRAINT `course_record_ibfk_1` FOREIGN KEY (`course_id`) REFERENCES `course` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `course_record_ibfk_2` FOREIGN KEY (`teacher_id`) REFERENCES `teacher` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of course_record -- ---------------------------- INSERT INTO `course_record` VALUES (1, 1, 1, '2020-05-23 17:33:41'); INSERT INTO `course_record` VALUES (2, 2, 1, '2020-05-23 17:35:41'); INSERT INTO `course_record` VALUES (3, 3, 1, '2020-05-23 17:35:54'); INSERT INTO `course_record` VALUES (4, 4, 1, '2020-05-23 17:36:05'); INSERT INTO `course_record` VALUES (5, 5, 1, '2020-05-23 17:36:19'); INSERT INTO `course_record` VALUES (9, 20, 1, '2020-06-02 19:37:40'); -- ---------------------------- -- Table structure for learning_record -- ---------------------------- DROP TABLE IF EXISTS `learning_record`; CREATE TABLE `learning_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `student_id` int(0) NULL DEFAULT NULL, `course_record_id` int(0) NULL DEFAULT NULL, `score` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `record_date` datetime(0) NOT NULL, `learning_time` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `student_id`(`student_id`) USING BTREE, INDEX `course_id`(`course_record_id`) USING BTREE, CONSTRAINT `learning_record_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `student` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `learning_record_ibfk_2` FOREIGN KEY (`course_record_id`) REFERENCES `course_record` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of learning_record -- ---------------------------- INSERT INTO `learning_record` VALUES (1, 1, 3, '60', '2020-05-23 21:48:35', 30); INSERT INTO `learning_record` VALUES (2, 1, 1, '100', '2020-05-23 21:48:42', 30); INSERT INTO `learning_record` VALUES (3, 1, 2, '80', '2020-05-23 21:48:46', 30); INSERT INTO `learning_record` VALUES (5, 1, 4, '20', '2020-05-23 22:55:46', 30); INSERT INTO `learning_record` VALUES (6, 2, 1, '30', '2020-06-01 10:24:55', 30); INSERT INTO `learning_record` VALUES (7, 3, 1, '66', '2020-06-01 10:25:06', 30); INSERT INTO `learning_record` VALUES (8, 4, 1, '88', '2020-06-01 10:25:15', 30); INSERT INTO `learning_record` VALUES (9, 5, 1, '77', '2020-06-01 10:25:25', 30); INSERT INTO `learning_record` VALUES (10, 6, 1, '99', '2020-06-01 10:25:35', 30); INSERT INTO `learning_record` VALUES (11, 7, 1, '78', '2020-06-01 10:25:44', 30); INSERT INTO `learning_record` VALUES (12, 8, 1, '45', '2020-06-01 10:25:55', 30); INSERT INTO `learning_record` VALUES (13, 21, 1, NULL, '2020-06-02 18:34:37', NULL); -- ---------------------------- -- Table structure for question_record -- ---------------------------- DROP TABLE IF EXISTS `question_record`; CREATE TABLE `question_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `teacher_id` int(0) NULL DEFAULT NULL, `student_id` int(0) NULL DEFAULT NULL, `questioner` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `question` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `question_date` datetime(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `teacher_id`(`teacher_id`) USING BTREE, INDEX `student_id`(`student_id`) USING BTREE, CONSTRAINT `question_record_ibfk_1` FOREIGN KEY (`teacher_id`) REFERENCES `teacher` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `question_record_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of question_record -- ---------------------------- INSERT INTO `question_record` VALUES (1, 1, 1, '教师', '问题1?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (2, 1, 1, '教师', '问题2?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (3, 1, 1, '教师', '问题3?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (4, 1, 1, '教师', '问题4?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (5, 1, 1, '教师', '问题5?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (6, 1, 1, '教师', '问题6?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (7, 1, 1, '教师', '问题7?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (8, 1, 1, '教师', '问题8?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (9, 1, 1, '教师', '问题9?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (10, 1, 1, '教师', '问题10?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (11, 1, 1, '学生', '问题1?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (12, 1, 1, '学生', '问题2?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (13, 1, 1, '学生', '问题3?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (14, 1, 1, '学生', '问题4?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (15, 1, 1, '学生', '问题5?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (16, 1, 1, '学生', '问题6?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (17, 1, 1, '学生', '问题7?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (18, 1, 1, '学生', '问题8?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (19, 1, 1, '学生', '问题9?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (20, 1, 1, '学生', '问题10?', '2020-05-25 11:16:13'); INSERT INTO `question_record` VALUES (21, 1, 1, '学生', '数据结构主要内容?', '2020-05-30 17:59:27'); INSERT INTO `question_record` VALUES (22, 1, 1, '学生', '拓扑排序算法?', '2020-06-01 13:54:18'); INSERT INTO `question_record` VALUES (23, 1, 1, '学生', '关键路径是什么?', '2020-06-02 19:31:40'); INSERT INTO `question_record` VALUES (24, 1, 1, '学生', '拓扑排序的实现?', '2020-06-02 19:34:49'); -- ---------------------------- -- Table structure for resource -- ---------------------------- DROP TABLE IF EXISTS `resource`; CREATE TABLE `resource` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `category` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `res_date` datetime(0) NOT NULL, `course_record_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `course_id`(`course_record_id`) USING BTREE, CONSTRAINT `resource_ibfk_1` FOREIGN KEY (`course_record_id`) REFERENCES `course_record` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of resource -- ---------------------------- INSERT INTO `resource` VALUES (1, '数据结构第一章', '文档', '/static/document/default_resource.docx', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (2, '数据结构第二章', '视频', '/static/video/default_resource.mp4', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (3, '数据结构第三章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (4, '数据库第一章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (5, '操作系统第一章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (6, '计算机网络第一章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (7, '人工智能第一章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (8, '算法设计与分析第一章', '图片', '/static/img/default_resource.jpg', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (11, '数据结构第一章', '文档', '/static/document/default_resource.docx', '2020-05-22 22:01:08', 1); INSERT INTO `resource` VALUES (12, 'dxl', '文档', '答辩提纲.docx', '2020-05-31 15:14:36', 1); INSERT INTO `resource` VALUES (13, '测试文档', '文档', '需求分析.docx', '2020-06-01 13:29:42', 1); INSERT INTO `resource` VALUES (14, '新资料', '文档', '测试.docx', '2020-06-02 22:09:45', 1); -- ---------------------------- -- Table structure for resource_record -- ---------------------------- DROP TABLE IF EXISTS `resource_record`; CREATE TABLE `resource_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `res_id` int(0) NULL DEFAULT NULL, `student_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `res_id`(`res_id`) USING BTREE, INDEX `student_id`(`student_id`) USING BTREE, CONSTRAINT `resource_record_ibfk_1` FOREIGN KEY (`res_id`) REFERENCES `resource` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `resource_record_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of resource_record -- ---------------------------- INSERT INTO `resource_record` VALUES (1, '已下载', 1, 1); -- ---------------------------- -- Table structure for school -- ---------------------------- DROP TABLE IF EXISTS `school`; CREATE TABLE `school` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `introduction` varchar(511) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `cell` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of school -- ---------------------------- INSERT INTO `school` VALUES (1, '陕西理工大学', '/fc/static/img/default_school', '/fc/static/img/default_school_logo', '暂无', '123', '123'); INSERT INTO `school` VALUES (2, '北京大学', '/fc/static/img/default_school', '/fc/static/img/default_school_logo', '暂无', '12345678901', '123'); INSERT INTO `school` VALUES (3, '安徽大学', '/fc/static/img/default_school', '/fc/static/img/default_school_logo', '暂无', '12345678901', '123'); INSERT INTO `school` VALUES (4, '清华大学', '/fc/static/img/default_school', '/fc/static/img/default_school_logo', '暂无', '12345678901', '123'); INSERT INTO `school` VALUES (5, '上海交通大学', '/fc/static/img/default_school', '/fc/static/img/default_school_logo', '暂无', '12345678901', '123'); -- ---------------------------- -- Table structure for student -- ---------------------------- DROP TABLE IF EXISTS `student`; CREATE TABLE `student` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `gender` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `cell` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 21 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of student -- ---------------------------- INSERT INTO `student` VALUES (1, '段小龙', '男', '/fc/static/img/login-img.png', '123', '123'); INSERT INTO `student` VALUES (2, '段小龙2', '男', '/fc/static/img/login-img.png', '1232', '123'); INSERT INTO `student` VALUES (3, '段小龙3', '男', '/fc/static/img/login-img.png', '1233', '123'); INSERT INTO `student` VALUES (4, '段小龙4', '男', '/fc/static/img/login-img.png', '1234', '123'); INSERT INTO `student` VALUES (5, '段小龙5', '男', '/fc/static/img/login-img.png', '1235', '123'); INSERT INTO `student` VALUES (6, '段小6', '男', '/fc/static/img/login-img.png', '1236', '123'); INSERT INTO `student` VALUES (7, '段小龙7', '男', '/fc/static/img/login-img.png', '1237', '123'); INSERT INTO `student` VALUES (8, '段小龙8', '男', '/fc/static/img/login-img.png', '1238', '123'); INSERT INTO `student` VALUES (9, '段小龙', '男', '/fc/static/img/login-img.png', '1239', '123'); INSERT INTO `student` VALUES (10, '段小龙', '男', '/fc/static/img/login-img.png', '1230', '123'); INSERT INTO `student` VALUES (11, '段小龙', '男', '/fc/static/img/login-img.png', '12311', '123'); INSERT INTO `student` VALUES (12, '段小龙', '男', '/fc/static/img/login-img.png', '12312', '123'); INSERT INTO `student` VALUES (13, '段小龙', '男', '/fc/static/img/login-img.png', '12313', '123'); INSERT INTO `student` VALUES (14, '段小龙', '男', '/fc/static/img/login-img.png', '12314', '123'); INSERT INTO `student` VALUES (15, '段小龙', '男', '/fc/static/img/login-img.png', '12315', '123'); INSERT INTO `student` VALUES (16, '段小龙', '男', '/fc/static/img/login-img.png', '12316', '123'); INSERT INTO `student` VALUES (17, '段小龙', '男', '/fc/static/img/login-img.png', '12317', '123'); INSERT INTO `student` VALUES (18, '段小龙', '男', '/fc/static/img/login-img.png', '12318', '123'); INSERT INTO `student` VALUES (19, '段小龙', '男', '/fc/static/img/login-img.png', '12319', '123'); INSERT INTO `student` VALUES (21, '测试学生', '男', NULL, '12345678910', '123'); -- ---------------------------- -- Table structure for teacher -- ---------------------------- DROP TABLE IF EXISTS `teacher`; CREATE TABLE `teacher` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `gender` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `school_id` int(0) NULL DEFAULT NULL, `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `introduction` varchar(511) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `cell` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `school_id`(`school_id`) USING BTREE, CONSTRAINT `teacher_ibfk_1` FOREIGN KEY (`school_id`) REFERENCES `school` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 113 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of teacher -- ---------------------------- INSERT INTO `teacher` VALUES (1, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '123', '123'); INSERT INTO `teacher` VALUES (11, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1231', '123'); INSERT INTO `teacher` VALUES (12, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1232', '123'); INSERT INTO `teacher` VALUES (13, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1233', '123'); INSERT INTO `teacher` VALUES (14, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1234', '123'); INSERT INTO `teacher` VALUES (15, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '12345', '123'); INSERT INTO `teacher` VALUES (16, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1236', '123'); INSERT INTO `teacher` VALUES (17, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1237', '123'); INSERT INTO `teacher` VALUES (18, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1238', '123'); INSERT INTO `teacher` VALUES (19, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '1239', '123'); INSERT INTO `teacher` VALUES (112, '张三', '男', 1, '讲师', '暂无', '/fc/static/img/default_teacher.png', '123', '123'); INSERT INTO `teacher` VALUES (113, '段老师', '男', NULL, '讲师', NULL, NULL, '12312312312', '123456'); -- ---------------------------- -- Table structure for work -- ---------------------------- DROP TABLE IF EXISTS `work`; CREATE TABLE `work` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `start_date` datetime(0) NOT NULL, `dead_date` datetime(0) NOT NULL, `course_record_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `course_id`(`course_record_id`) USING BTREE, CONSTRAINT `work_ibfk_1` FOREIGN KEY (`course_record_id`) REFERENCES `course_record` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of work -- ---------------------------- INSERT INTO `work` VALUES (1, '数据结构', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (2, '线性表', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (3, '二叉树', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (4, '队列', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (5, '栈', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (6, '邻接矩阵', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (7, '邻接表', '/static/document/default_resource.docx', '2020-05-22 22:01:42', '2020-05-22 22:01:44', 1); INSERT INTO `work` VALUES (8, '毕设', '/static/document/1618014074_段小龙_任务书.doc', '2020-05-30 00:00:00', '2020-05-30 00:00:00', 1); INSERT INTO `work` VALUES (9, '作业1', '测试.docx', '2020-05-30 00:00:00', '2020-05-30 00:00:00', 9); INSERT INTO `work` VALUES (10, '作业1', NULL, '2020-05-30 00:00:00', '2020-05-30 00:00:00', 1); INSERT INTO `work` VALUES (11, '作业2', NULL, '2020-05-30 00:00:00', '2020-05-30 00:00:00', 1); -- ---------------------------- -- Table structure for work_record -- ---------------------------- DROP TABLE IF EXISTS `work_record`; CREATE TABLE `work_record` ( `id` int(0) NOT NULL AUTO_INCREMENT, `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `score` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `work_id` int(0) NULL DEFAULT NULL, `student_id` int(0) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `work_id`(`work_id`) USING BTREE, INDEX `student_id`(`student_id`) USING BTREE, CONSTRAINT `work_record_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `student` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT, CONSTRAINT `work_record_ibfk_3` FOREIGN KEY (`work_id`) REFERENCES `work` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT ) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of work_record -- ---------------------------- INSERT INTO `work_record` VALUES (1, '批改完成', '90', 1, 1); INSERT INTO `work_record` VALUES (2, '批改完成', '90', 2, 1); INSERT INTO `work_record` VALUES (3, '未批改', '', 3, 1); INSERT INTO `work_record` VALUES (4, '未下载', '', 4, 1); INSERT INTO `work_record` VALUES (5, '批改完成', '70', 5, 1); INSERT INTO `work_record` VALUES (6, '批改完成', '80', 6, 1); INSERT INTO `work_record` VALUES (7, '批改完成', '90', 7, 1); SET FOREIGN_KEY_CHECKS = 1;
<filename>db.sql<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.14.04.1 /*!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 */; -- -- Current Database: `employees` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `employees` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `employees`; -- -- Table structure for table `departments` -- DROP TABLE IF EXISTS `departments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `departments` ( `dept_no` char(4) NOT NULL, `dept_name` varchar(40) NOT NULL, PRIMARY KEY (`dept_no`), UNIQUE KEY `dept_name` (`dept_name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `departments` -- LOCK TABLES `departments` WRITE; /*!40000 ALTER TABLE `departments` DISABLE KEYS */; INSERT INTO `departments` VALUES ('d009','Customer Service'),('d005','Development'),('d002','Finance'),('d003','Human Resources'),('d001','Marketing'),('d004','Production'),('d006','Quality Management'),('d008','Research'),('d007','Sales'); /*!40000 ALTER TABLE `departments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dept_emp` -- DROP TABLE IF EXISTS `dept_emp`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dept_emp` ( `emp_no` int(11) NOT NULL, `dept_no` char(4) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, PRIMARY KEY (`emp_no`,`dept_no`), KEY `emp_no` (`emp_no`), KEY `dept_no` (`dept_no`), CONSTRAINT `dept_emp_ibfk_1` FOREIGN KEY (`emp_no`) REFERENCES `employees` (`emp_no`) ON DELETE CASCADE, CONSTRAINT `dept_emp_ibfk_2` FOREIGN KEY (`dept_no`) REFERENCES `departments` (`dept_no`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dept_emp` -- LOCK TABLES `dept_emp` WRITE; /*!40000 ALTER TABLE `dept_emp` DISABLE KEYS */; INSERT INTO `dept_emp` VALUES (10001,'d005','1986-06-26','9999-01-01'),(10002,'d007','1996-08-03','9999-01-01'),(10003,'d004','1995-12-03','9999-01-01'),(10004,'d004','1986-12-01','9999-01-01'),(10005,'d003','1989-09-12','9999-01-01'),(10006,'d005','1990-08-05','9999-01-01'),(10007,'d008','1989-02-10','9999-01-01'),(10008,'d005','1998-03-11','2000-07-31'),(10009,'d006','1985-02-18','9999-01-01'),(10010,'d004','1996-11-24','2000-06-26'),(10010,'d006','2000-06-26','9999-01-01'),(10011,'d009','1990-01-22','1996-11-09'),(10012,'d005','1992-12-18','9999-01-01'),(10013,'d003','1985-10-20','9999-01-01'),(10014,'d005','1993-12-29','9999-01-01'),(10015,'d008','1992-09-19','1993-08-22'),(10016,'d007','1998-02-11','9999-01-01'),(10017,'d001','1993-08-03','9999-01-01'),(10018,'d004','1992-07-29','9999-01-01'),(10018,'d005','1987-04-03','1992-07-29'),(10019,'d008','1999-04-30','9999-01-01'),(10020,'d004','1997-12-30','9999-01-01'),(10021,'d005','1988-02-10','2002-07-15'),(10022,'d005','1999-09-03','9999-01-01'),(10023,'d005','1999-09-27','9999-01-01'),(10024,'d004','1998-06-14','9999-01-01'),(10025,'d005','1987-08-17','1997-10-15'),(10026,'d004','1995-03-20','9999-01-01'),(10027,'d005','1995-04-02','9999-01-01'),(10028,'d005','1991-10-22','1998-04-06'),(10029,'d004','1991-09-18','1999-07-08'),(10029,'d006','1999-07-08','9999-01-01'),(10030,'d004','1994-02-17','9999-01-01'),(10031,'d005','1991-09-01','9999-01-01'),(10032,'d004','1990-06-20','9999-01-01'),(10033,'d006','1987-03-18','1993-03-24'),(10034,'d007','1995-04-12','1999-10-31'),(10035,'d004','1988-09-05','9999-01-01'),(10036,'d003','1992-04-28','9999-01-01'),(10037,'d005','1990-12-05','9999-01-01'),(10038,'d009','1989-09-20','9999-01-01'),(10039,'d003','1988-01-19','9999-01-01'),(10040,'d005','1993-02-14','2002-01-22'),(10040,'d008','2002-01-22','9999-01-01'),(10041,'d007','1989-11-12','9999-01-01'),(10042,'d002','1993-03-21','2000-08-10'),(10043,'d005','1990-10-20','9999-01-01'),(10044,'d004','1994-05-21','9999-01-01'),(10045,'d004','1996-11-16','9999-01-01'),(10046,'d008','1992-06-20','9999-01-01'),(10047,'d004','1989-03-31','9999-01-01'),(10048,'d005','1985-02-24','1987-01-27'),(10049,'d009','1992-05-04','9999-01-01'),(10050,'d002','1990-12-25','1992-11-05'),(10050,'d007','1992-11-05','9999-01-01'),(10051,'d004','1992-10-15','9999-01-01'),(10052,'d008','1997-01-31','9999-01-01'),(10053,'d007','1994-11-13','9999-01-01'),(10054,'d003','1995-07-29','9999-01-01'),(10055,'d001','1992-04-27','1995-07-22'),(10056,'d005','1990-02-01','9999-01-01'),(10057,'d005','1992-01-15','9999-01-01'),(10058,'d001','1988-04-25','9999-01-01'),(10059,'d002','1991-06-26','9999-01-01'),(10060,'d007','1989-05-28','1992-11-11'),(10060,'d009','1992-11-11','9999-01-01'),(10061,'d007','1989-12-02','9999-01-01'),(10062,'d005','1991-08-30','9999-01-01'),(10063,'d004','1989-04-08','9999-01-01'),(10064,'d008','1985-11-20','1992-03-02'),(10065,'d005','1998-05-24','9999-01-01'),(10066,'d005','1986-02-26','9999-01-01'),(10067,'d006','1987-03-04','9999-01-01'),(10068,'d007','1987-08-07','9999-01-01'),(10069,'d004','1992-06-14','9999-01-01'),(10070,'d005','1985-10-14','1995-10-18'),(10070,'d008','1995-10-18','9999-01-01'),(10071,'d003','1995-08-05','9999-01-01'),(10072,'d005','1989-05-21','9999-01-01'),(10073,'d006','1998-02-02','1998-02-22'),(10074,'d005','1990-08-13','9999-01-01'),(10075,'d005','1988-05-17','2001-01-15'),(10076,'d005','1996-07-15','9999-01-01'),(10077,'d003','1994-12-23','9999-01-01'),(10078,'d005','1994-09-29','9999-01-01'),(10079,'d005','1995-12-13','9999-01-01'),(10080,'d002','1994-09-28','1997-07-09'),(10080,'d003','1997-07-09','9999-01-01'),(10081,'d004','1986-10-30','9999-01-01'),(10082,'d008','1990-01-03','1990-01-15'),(10083,'d004','1987-03-31','9999-01-01'),(10084,'d004','1995-12-15','9999-01-01'),(10085,'d004','1994-04-09','9999-01-01'),(10086,'d003','1992-02-19','9999-01-01'),(10087,'d007','1997-05-08','2001-01-09'),(10088,'d007','1988-09-02','1992-03-21'),(10088,'d009','1992-03-21','9999-01-01'),(10089,'d007','1989-01-10','9999-01-01'),(10090,'d005','1986-03-14','1999-05-07'),(10091,'d005','1992-11-18','9999-01-01'),(10092,'d005','1996-04-22','9999-01-01'),(10093,'d007','1997-06-08','9999-01-01'),(10094,'d008','1987-04-18','1997-11-08'),(10095,'d007','1994-03-10','9999-01-01'),(10096,'d004','1999-01-23','9999-01-01'),(10097,'d008','1990-09-15','9999-01-01'),(10098,'d004','1985-05-13','1989-06-29'),(10098,'d009','1989-06-29','1992-12-11'),(10099,'d007','1988-10-18','9999-01-01'),(10100,'d003','1987-09-21','9999-01-01'),(10101,'d007','1998-10-14','2000-09-23'),(10102,'d004','1995-01-02','9999-01-01'),(10103,'d005','1998-01-12','9999-01-01'),(10104,'d008','1987-04-16','9999-01-01'),(10105,'d003','1999-05-17','2001-06-11'),(10106,'d004','1991-10-27','9999-01-01'),(10107,'d007','1999-03-30','9999-01-01'),(10108,'d001','1999-12-06','2001-10-20'),(10108,'d003','1999-03-20','1999-12-06'),(10109,'d004','1993-06-16','9999-01-01'),(10110,'d003','1986-08-22','9999-01-01'),(10111,'d006','1988-12-19','9999-01-01'),(10112,'d009','1998-05-01','9999-01-01'),(10113,'d004','1998-09-14','9999-01-01'),(10114,'d008','1992-07-17','9999-01-01'),(10115,'d009','1988-03-03','1992-05-24'),(10116,'d005','1994-02-27','1995-12-03'),(10116,'d008','1995-12-03','1998-11-01'),(10117,'d004','1992-03-19','9999-01-01'),(10118,'d005','1992-02-02','9999-01-01'),(10119,'d004','1993-12-09','1997-10-30'),(10120,'d004','1996-07-06','9999-01-01'),(10121,'d005','1989-05-03','9999-01-01'),(10122,'d005','1998-08-06','9999-01-01'),(10123,'d004','1993-01-15','9999-01-01'),(10124,'d004','1991-09-05','1999-06-06'),(10124,'d006','1999-06-06','9999-01-01'),(10125,'d007','1990-10-26','1996-03-25'),(10126,'d009','1985-09-08','9999-01-01'),(10127,'d005','1991-05-17','9999-01-01'),(10128,'d009','1988-06-06','9999-01-01'),(10129,'d005','1996-01-16','9999-01-01'),(10130,'d004','1988-06-21','9999-01-01'),(10131,'d004','1999-09-17','1999-12-06'),(10132,'d002','1997-06-18','9999-01-01'),(10133,'d004','1985-12-15','9999-01-01'),(10134,'d004','1993-12-02','9999-01-01'),(10134,'d005','1987-12-12','1993-12-02'),(10135,'d004','1990-01-04','9999-01-01'),(10136,'d007','1988-06-13','1999-09-20'),(10137,'d009','1985-02-18','9999-01-01'),(10138,'d006','1992-03-03','9999-01-01'),(10139,'d005','1998-03-15','9999-01-01'),(10140,'d001','1991-03-14','9999-01-01'),(10141,'d008','1998-07-23','9999-01-01'),(10142,'d005','1993-10-28','9999-01-01'),(10143,'d005','1988-09-30','9999-01-01'),(10144,'d002','1985-10-14','1988-09-02'),(10144,'d003','1988-09-02','1993-08-10'),(10145,'d005','1999-11-03','9999-01-01'),(10146,'d002','1988-06-28','1990-09-07'),(10147,'d002','1987-12-18','9999-01-01'),(10148,'d007','1996-07-15','9999-01-01'),(10149,'d007','1994-01-28','1996-08-27'),(10150,'d005','1986-11-16','9999-01-01'),(10151,'d007','1992-12-12','9999-01-01'),(10152,'d006','1986-01-27','1987-08-03'),(10153,'d005','2000-01-08','9999-01-01'),(10154,'d009','1996-10-23','9999-01-01'),(10155,'d004','1990-07-12','9999-01-01'),(10155,'d008','1990-01-05','1990-07-12'),(10156,'d006','1993-05-14','9999-01-01'),(10157,'d005','1997-12-10','9999-01-01'),(10158,'d004','1987-06-04','9999-01-01'),(10159,'d006','1996-06-12','9999-01-01'),(10160,'d007','1993-12-06','9999-01-01'),(10161,'d004','1991-06-09','1994-01-05'),(10162,'d004','1998-05-27','9999-01-01'),(10163,'d003','1992-02-02','9999-01-01'),(10164,'d004','1990-10-19','2000-05-31'),(10164,'d009','2000-05-31','9999-01-01'),(10165,'d002','1988-05-17','9999-01-01'),(10166,'d005','1996-09-02','9999-01-01'),(10167,'d004','1992-04-04','9999-01-01'),(10168,'d008','1986-12-06','9999-01-01'),(10169,'d005','1998-06-28','9999-01-01'),(10170,'d004','1986-01-02','1989-02-06'),(10171,'d004','1996-08-05','9999-01-01'),(10172,'d005','1998-02-04','1998-10-01'),(10172,'d008','1998-10-01','9999-01-01'),(10173,'d002','1992-03-21','9999-01-01'),(10174,'d004','1987-06-01','9999-01-01'),(10175,'d001','1988-09-24','1995-05-24'),(10176,'d009','1994-12-22','9999-01-01'),(10177,'d002','1993-02-06','1994-03-17'),(10178,'d007','1994-03-21','9999-01-01'),(10179,'d005','2000-01-25','9999-01-01'),(10180,'d002','1994-07-01','9999-01-01'),(10181,'d005','1988-06-22','9999-01-01'),(10182,'d005','1990-09-02','1999-01-05'),(10182,'d008','1999-01-05','9999-01-01'),(10183,'d009','1996-08-11','9999-01-01'),(10184,'d009','1997-12-26','9999-01-01'),(10185,'d007','1986-03-01','9999-01-01'),(10186,'d002','1996-12-25','1997-08-16'),(10187,'d002','1991-06-01','9999-01-01'),(10188,'d004','1987-08-27','9999-01-01'),(10189,'d005','1992-09-13','1993-06-29'),(10190,'d004','1986-06-23','9999-01-01'),(10191,'d005','1986-04-10','9999-01-01'),(10192,'d004','1999-08-09','9999-01-01'),(10192,'d006','1988-06-13','1999-08-09'),(10193,'d005','1996-09-21','9999-01-01'),(10194,'d002','1997-02-14','9999-01-01'),(10195,'d004','1985-02-15','2001-04-14'),(10196,'d002','1999-01-31','9999-01-01'),(10197,'d005','1994-06-28','9999-01-01'),(10198,'d005','1985-08-31','9999-01-01'),(10199,'d007','1998-02-07','9999-01-01'),(10200,'d004','1994-02-17','2000-10-03'),(10200,'d006','2000-10-03','9999-01-01'),(10201,'d005','1992-11-10','9999-01-01'),(10202,'d005','1991-10-06','9999-01-01'),(10203,'d008','1989-04-06','9999-01-01'),(10204,'d005','1998-12-18','1999-03-08'),(10205,'d004','1993-08-23','9999-01-01'),(10206,'d005','1988-04-19','9999-01-01'),(10207,'d005','1992-10-11','9999-01-01'),(10208,'d001','1995-02-05','1999-05-15'),(10209,'d002','1991-11-23','1999-08-07'),(10209,'d007','1999-08-07','9999-01-01'),(10210,'d009','1996-02-24','9999-01-01'),(10211,'d005','1991-11-22','9999-01-01'),(10212,'d005','1996-01-28','9999-01-01'),(10213,'d009','1994-10-06','9999-01-01'),(10214,'d007','1988-02-29','9999-01-01'),(10215,'d007','1991-11-23','9999-01-01'),(10216,'d008','1987-10-30','9999-01-01'),(10217,'d004','1986-05-12','1993-08-05'),(10218,'d004','1997-01-31','9999-01-01'),(10219,'d005','1994-10-23','9999-01-01'),(10219,'d009','1993-03-31','1994-10-23'),(10220,'d002','1997-09-16','9999-01-01'),(10221,'d004','1988-06-08','2000-10-04'),(10222,'d004','1986-06-08','9999-01-01'),(10223,'d005','1998-04-01','9999-01-01'),(10224,'d004','1988-01-09','9999-01-01'),(10225,'d009','1995-12-14','9999-01-01'),(10226,'d007','1996-01-29','9999-01-01'),(10227,'d005','1994-11-01','9999-01-01'),(10228,'d001','1993-01-28','9999-01-01'),(10228,'d007','1992-12-22','1993-01-28'),(10229,'d006','1996-02-20','2000-06-30'),(10230,'d008','1996-06-16','9999-01-01'),(10231,'d009','1998-09-09','9999-01-01'),(10232,'d007','1992-06-04','9999-01-01'),(10233,'d003','1994-04-29','9999-01-01'),(10234,'d007','1990-11-19','1999-08-06'),(10235,'d004','1995-04-06','9999-01-01'),(10236,'d007','1996-08-30','9999-01-01'),(10237,'d007','1989-08-11','2000-02-21'),(10238,'d005','1995-03-31','1996-05-25'),(10238,'d008','1996-05-25','9999-01-01'),(10239,'d001','1996-05-04','9999-01-01'),(10240,'d006','1998-10-06','9999-01-01'),(10241,'d002','1988-06-12','9999-01-01'),(10242,'d004','1988-01-18','9999-01-01'),(10243,'d007','1986-06-07','9999-01-01'),(10244,'d005','1999-09-16','9999-01-01'),(10245,'d008','1994-04-21','1995-02-20'),(10246,'d004','1991-02-01','9999-01-01'),(10247,'d004','1992-08-14','9999-01-01'),(10248,'d007','1991-08-13','9999-01-01'),(10249,'d005','1991-12-08','1998-04-13'),(10249,'d008','1998-04-13','9999-01-01'),(10250,'d006','1992-08-30','9999-01-01'),(10251,'d008','1992-06-25','9999-01-01'),(10252,'d004','1990-11-08','9999-01-01'),(10253,'d007','1985-02-21','1994-03-20'),(10254,'d007','1990-06-14','9999-01-01'),(10255,'d004','1993-05-12','1999-11-14'),(10256,'d007','1985-10-12','9999-01-01'),(10257,'d004','1997-07-16','9999-01-01'),(10258,'d005','1985-05-17','9999-01-01'),(10259,'d001','1987-07-25','1994-08-15'),(10259,'d009','1994-08-15','1999-01-06'),(10260,'d004','1993-02-01','9999-01-01'),(10261,'d005','1996-09-11','1999-02-23'),(10262,'d007','1996-01-22','9999-01-01'),(10263,'d002','1996-12-21','9999-01-01'),(10264,'d005','1997-07-16','9999-01-01'),(10265,'d006','1997-09-12','9999-01-01'),(10266,'d004','1990-05-25','9999-01-01'),(10267,'d004','1997-04-26','9999-01-01'),(10268,'d004','1988-04-15','1990-08-17'),(10268,'d005','1986-12-17','1988-04-15'),(10269,'d004','1988-07-24','9999-01-01'),(10270,'d007','1991-09-26','9999-01-01'),(10271,'d005','1986-05-23','9999-01-01'),(10272,'d002','1997-10-23','9999-01-01'),(10273,'d007','1985-11-06','9999-01-01'),(10274,'d005','1997-02-02','9999-01-01'),(10275,'d005','1987-09-08','9999-01-01'),(10276,'d005','1986-10-19','2000-02-04'),(10277,'d007','1985-06-16','9999-01-01'),(10278,'d005','1993-07-02','1997-02-14'),(10279,'d004','1995-04-26','1999-07-11'),(10279,'d009','1999-07-11','9999-01-01'),(10280,'d003','1995-01-27','9999-01-01'),(10281,'d006','1994-12-03','9999-01-01'),(10282,'d004','1996-05-02','9999-01-01'),(10283,'d005','1988-05-25','9999-01-01'),(10284,'d004','1999-07-06','9999-01-01'),(10285,'d008','1995-05-25','9999-01-01'),(10286,'d009','1994-12-24','1999-01-24'),(10287,'d005','1997-09-05','9999-01-01'),(10287,'d008','1992-12-28','1997-09-05'),(10288,'d004','1994-08-29','9999-01-01'),(10289,'d005','1993-03-12','2002-01-31'),(10290,'d005','1991-09-18','9999-01-01'),(10291,'d007','1987-03-30','9999-01-01'),(10292,'d007','1989-06-05','9999-01-01'),(10293,'d004','1992-12-12','9999-01-01'),(10294,'d005','1999-01-30','1999-05-04'),(10295,'d002','1995-06-19','9999-01-01'),(10296,'d007','1989-09-16','9999-01-01'),(10297,'d004','1986-05-28','9999-01-01'),(10298,'d004','2002-05-05','9999-01-01'),(10298,'d008','1999-04-27','2002-05-05'),(10299,'d007','1990-01-10','9999-01-01'),(10300,'d004','1991-05-17','9999-01-01'),(10301,'d002','1988-05-23','9999-01-01'),(10302,'d007','1986-07-22','1999-11-09'),(10303,'d004','1990-02-05','2000-11-15'),(10304,'d007','1992-11-16','2002-05-08'),(10305,'d005','1988-10-31','1992-06-02'),(10306,'d007','1993-09-06','9999-01-01'),(10307,'d004','1999-10-16','2000-01-21'),(10307,'d006','2000-01-21','9999-01-01'),(10308,'d007','1992-12-29','9999-01-01'),(10309,'d005','1997-05-02','9999-01-01'),(10310,'d004','1990-10-24','2001-07-26'),(10311,'d005','1998-11-04','9999-01-01'),(10312,'d004','1986-08-28','9999-01-01'),(10313,'d008','1994-10-10','9999-01-01'),(10314,'d007','1986-01-16','9999-01-01'),(10315,'d005','1987-08-28','9999-01-01'),(10316,'d006','1990-12-18','1991-01-02'),(10317,'d004','2000-07-05','9999-01-01'),(10317,'d008','1999-01-24','2000-07-05'),(10318,'d005','1987-03-23','9999-01-01'),(10319,'d007','1994-06-18','9999-01-01'),(10320,'d007','1988-11-03','2001-12-23'),(10321,'d007','1995-07-24','1999-08-14'),(10322,'d005','1990-01-29','9999-01-01'),(10323,'d004','1991-06-06','9999-01-01'),(10324,'d005','1999-07-19','9999-01-01'),(10325,'d003','1990-09-20','9999-01-01'),(10326,'d008','1998-09-02','9999-01-01'),(10327,'d005','1987-09-18','1988-05-10'),(10327,'d008','1988-05-10','1993-05-22'),(10328,'d005','1998-07-17','9999-01-01'),(10329,'d004','1986-01-20','9999-01-01'),(10330,'d007','1993-10-08','9999-01-01'),(10331,'d007','1986-10-29','9999-01-01'),(10332,'d004','1988-10-20','1997-03-07'),(10333,'d005','1993-01-16','9999-01-01'),(10334,'d009','1998-02-15','9999-01-01'),(10335,'d007','1992-04-06','1999-11-07'),(10335,'d009','1999-11-07','9999-01-01'),(10336,'d008','1996-09-27','9999-01-01'),(10337,'d004','1998-04-25','9999-01-01'),(10338,'d009','1999-12-29','9999-01-01'),(10339,'d004','1989-11-30','9999-01-01'),(10340,'d001','1988-03-30','9999-01-01'),(10341,'d004','1987-04-29','1998-11-11'),(10342,'d005','1987-07-25','9999-01-01'),(10343,'d006','1997-10-03','9999-01-01'),(10344,'d004','1999-04-19','2001-11-11'),(10344,'d006','2001-11-11','9999-01-01'),(10345,'d005','1993-11-08','9999-01-01'),(10346,'d007','1992-01-17','1996-04-20'),(10347,'d008','1998-02-20','9999-01-01'),(10348,'d004','1995-10-22','9999-01-01'),(10349,'d009','1991-09-28','9999-01-01'),(10350,'d004','1991-05-11','1998-01-16'),(10351,'d002','1995-05-01','9999-01-01'),(10352,'d005','1998-12-16','9999-01-01'),(10353,'d001','1989-08-24','9999-01-01'),(10354,'d002','1999-03-03','2000-03-03'),(10354,'d003','2000-03-03','2002-01-01'),(10355,'d007','1996-01-26','9999-01-01'),(10356,'d008','1995-06-26','9999-01-01'),(10357,'d006','1994-04-04','9999-01-01'),(10358,'d005','1991-02-19','9999-01-01'),(10359,'d005','1998-07-20','9999-01-01'),(10360,'d003','1996-09-04','9999-01-01'),(10361,'d007','1986-10-23','9999-01-01'),(10362,'d003','1990-11-02','1997-07-16'),(10363,'d004','1985-09-11','1987-05-18'),(10363,'d006','1987-05-18','1993-02-12'),(10364,'d004','1985-11-14','9999-01-01'),(10365,'d008','1987-10-22','1992-04-04'),(10366,'d005','1997-08-15','9999-01-01'),(10367,'d001','1991-06-24','9999-01-01'),(10368,'d004','1996-05-16','9999-01-01'),(10369,'d007','1994-09-05','9999-01-01'),(10370,'d007','1992-04-18','9999-01-01'),(10371,'d004','1989-11-28','9999-01-01'),(10372,'d004','1985-07-30','9999-01-01'),(10373,'d005','1997-04-26','9999-01-01'),(10374,'d007','1993-12-08','1995-04-25'),(10374,'d009','1995-04-25','1996-03-29'),(10375,'d007','1994-05-29','9999-01-01'),(10376,'d004','1990-12-08','9999-01-01'),(10377,'d004','1996-08-24','9999-01-01'),(10378,'d007','1992-08-31','9999-01-01'),(10379,'d005','1996-07-15','9999-01-01'),(10380,'d007','1985-03-19','9999-01-01'),(10381,'d004','1991-12-04','9999-01-01'),(10382,'d004','1998-07-01','1999-05-07'),(10382,'d009','1999-05-07','2000-10-27'),(10383,'d004','1991-06-19','9999-01-01'),(10384,'d001','1986-01-16','9999-01-01'),(10385,'d004','1992-12-20','1998-01-23'),(10386,'d005','1985-08-02','9999-01-01'),(10387,'d009','1994-01-07','9999-01-01'),(10388,'d007','1999-05-28','9999-01-01'),(10389,'d005','1999-05-13','9999-01-01'),(10390,'d006','1989-05-17','9999-01-01'),(10391,'d005','1993-01-28','9999-01-01'),(10392,'d004','1992-03-01','1997-08-09'),(10392,'d006','1997-08-09','9999-01-01'),(10393,'d004','1989-06-23','9999-01-01'),(10394,'d005','1991-03-14','1991-08-25'),(10395,'d005','1998-08-10','2001-08-13'),(10396,'d005','1986-01-11','9999-01-01'),(10397,'d004','1993-05-21','9999-01-01'),(10398,'d007','1990-10-12','9999-01-01'),(10399,'d007','2000-01-26','9999-01-01'),(10400,'d007','1993-10-17','9999-01-01'),(10401,'d006','1999-10-25','2001-04-25'),(10402,'d006','1987-01-02','9999-01-01'),(10403,'d002','1991-09-13','1995-03-07'),(10403,'d007','1995-03-07','2001-06-15'),(10404,'d005','1988-08-28','9999-01-01'),(10405,'d006','1998-09-26','2000-12-05'),(10406,'d006','1996-01-26','9999-01-01'),(10407,'d007','1999-10-30','9999-01-01'),(10408,'d007','1998-10-07','9999-01-01'),(10409,'d005','1997-09-26','9999-01-01'),(10410,'d007','1993-10-16','1996-07-21'),(10411,'d007','1989-09-02','9999-01-01'),(10412,'d004','1991-11-21','2000-05-19'),(10412,'d009','2000-05-19','9999-01-01'),(10413,'d003','1991-12-27','9999-01-01'),(10414,'d005','1990-05-30','1994-12-02'),(10415,'d005','1993-10-25','9999-01-01'),(10416,'d002','1989-03-24','9999-01-01'),(10417,'d007','1999-06-27','9999-01-01'),(10418,'d001','1996-10-04','9999-01-01'),(10419,'d008','1992-04-25','2002-07-06'),(10420,'d008','1988-01-17','2000-07-09'),(10421,'d009','1990-04-07','9999-01-01'),(10422,'d004','1995-01-03','1997-09-30'),(10422,'d006','1997-09-30','9999-01-01'),(10423,'d008','1999-05-27','9999-01-01'),(10424,'d005','1989-08-07','9999-01-01'),(10425,'d004','1995-05-07','2002-05-06'),(10426,'d005','1985-07-06','9999-01-01'),(10427,'d007','1994-10-03','9999-01-01'),(10428,'d003','1992-06-04','9999-01-01'),(10429,'d005','1988-09-23','9999-01-01'),(10430,'d004','1998-07-05','1999-07-17'),(10430,'d009','1999-07-17','9999-01-01'),(10431,'d007','1987-10-08','9999-01-01'),(10432,'d009','1990-08-13','9999-01-01'),(10433,'d006','1992-11-26','9999-01-01'),(10434,'d004','1995-06-27','2002-06-22'),(10435,'d005','1996-06-08','9999-01-01'),(10436,'d003','1988-01-30','9999-01-01'),(10437,'d006','1996-04-12','9999-01-01'),(10438,'d004','1990-01-19','9999-01-01'),(10439,'d005','1993-05-01','9999-01-01'),(10440,'d005','1997-04-04','2000-01-30'),(10440,'d008','2000-01-30','9999-01-01'),(10441,'d004','1988-07-12','9999-01-01'),(10442,'d007','1992-02-12','2001-03-13'),(10443,'d005','1989-08-01','2002-07-06'),(10444,'d007','1994-10-23','9999-01-01'),(10445,'d005','1987-11-04','9999-01-01'),(10446,'d005','1996-12-25','9999-01-01'),(10447,'d006','1988-12-29','2000-11-15'),(10448,'d007','1992-03-12','9999-01-01'),(10449,'d001','1996-03-12','9999-01-01'),(10449,'d007','1987-03-28','1996-03-12'),(10450,'d005','1997-08-24','9999-01-01'),(10451,'d004','1988-03-12','9999-01-01'),(10452,'d005','1995-11-12','2001-10-11'),(10453,'d009','1985-04-02','9999-01-01'),(10454,'d007','1989-04-16','9999-01-01'),(10455,'d007','1995-02-19','9999-01-01'),(10456,'d002','2000-01-06','9999-01-01'),(10457,'d006','1999-10-23','9999-01-01'),(10458,'d007','1994-07-05','9999-01-01'),(10459,'d002','1998-06-14','9999-01-01'),(10459,'d003','1997-06-28','1998-06-14'),(10460,'d005','1999-06-30','2001-04-15'),(10461,'d007','1987-08-03','9999-01-01'),(10462,'d004','1996-03-25','9999-01-01'),(10463,'d007','1994-02-17','9999-01-01'),(10464,'d003','1991-05-21','9999-01-01'),(10465,'d009','1994-12-11','9999-01-01'),(10466,'d009','1997-08-22','2000-08-15'),(10467,'d003','1992-05-22','1999-11-01'),(10468,'d007','1991-05-28','9999-01-01'),(10469,'d005','1985-06-05','1992-12-26'),(10469,'d008','1992-12-26','9999-01-01'),(10470,'d004','1989-09-19','9999-01-01'),(10471,'d006','1990-11-18','9999-01-01'),(10472,'d007','1999-12-01','2002-01-02'),(10473,'d004','1997-09-23','9999-01-01'),(10474,'d004','1987-02-21','9999-01-01'),(10475,'d004','1992-05-13','1994-12-30'),(10476,'d008','1987-09-20','9999-01-01'),(10477,'d005','1997-05-26','9999-01-01'),(10478,'d005','1993-02-10','9999-01-01'),(10478,'d009','1992-06-09','1993-02-10'),(10479,'d004','1993-07-24','9999-01-01'),(10480,'d002','1988-05-18','1989-06-03'),(10481,'d004','1989-10-03','9999-01-01'),(10482,'d005','1996-02-26','9999-01-01'),(10483,'d006','1993-11-10','9999-01-01'),(10484,'d003','1996-12-20','9999-01-01'),(10485,'d005','1996-01-21','9999-01-01'),(10486,'d006','1987-10-08','9999-01-01'),(10487,'d004','1992-08-14','9999-01-01'),(10488,'d005','1994-07-09','1996-11-18'),(10488,'d008','1996-11-18','9999-01-01'),(10489,'d005','1989-09-10','1989-10-06'),(10490,'d007','1992-11-22','9999-01-01'),(10491,'d001','1990-01-17','9999-01-01'),(10492,'d005','1988-04-29','9999-01-01'),(10493,'d007','1998-10-29','9999-01-01'),(10494,'d004','1991-12-18','9999-01-01'),(10495,'d004','1989-09-24','9999-01-01'),(10496,'d002','1995-08-29','1999-01-26'),(10497,'d004','1992-01-22','9999-01-01'),(10498,'d004','1994-03-09','9999-01-01'),(10499,'d001','1996-07-31','1998-03-16'),(10499,'d007','1998-03-16','9999-01-01'),(10500,'d005','1996-12-16','9999-01-01'),(10501,'d005','1988-09-08','9999-01-01'),(10502,'d006','1993-03-04','9999-01-01'),(10503,'d004','1997-03-13','9999-01-01'),(10504,'d007','1999-10-19','9999-01-01'),(10505,'d007','1985-07-23','1998-03-26'),(10506,'d005','1996-12-01','9999-01-01'),(10507,'d003','1990-09-30','9999-01-01'),(10508,'d004','1991-05-01','9999-01-01'),(10509,'d007','1992-10-06','9999-01-01'),(10510,'d007','1990-04-20','1992-09-21'),(10510,'d009','1992-09-21','9999-01-01'),(10511,'d004','1992-01-27','9999-01-01'),(10512,'d003','1989-11-28','9999-01-01'),(10513,'d002','1991-04-02','9999-01-01'),(10514,'d008','1992-04-29','1995-04-02'),(10515,'d007','1990-01-06','1998-07-21'),(10516,'d005','1985-10-19','9999-01-01'),(10517,'d007','1990-12-25','9999-01-01'),(10518,'d005','1993-09-03','9999-01-01'),(10519,'d005','1994-02-09','2001-10-13'),(10519,'d008','1992-12-05','1994-02-09'),(10520,'d004','1996-09-05','9999-01-01'),(10521,'d007','1989-05-11','9999-01-01'),(10522,'d003','1986-12-12','9999-01-01'),(10523,'d004','1989-12-23','9999-01-01'),(10524,'d004','1985-10-09','9999-01-01'),(10525,'d007','1990-07-08','1995-12-20'),(10526,'d004','1988-02-27','9999-01-01'),(10527,'d005','1996-01-25','9999-01-01'),(10528,'d005','1993-10-28','9999-01-01'),(10529,'d004','1999-06-12','9999-01-01'),(10529,'d005','1997-07-04','1999-06-12'),(10530,'d005','1987-09-23','9999-01-01'),(10531,'d003','1995-03-16','9999-01-01'),(10532,'d007','1986-05-18','9999-01-01'),(10533,'d007','1990-08-17','9999-01-01'),(10534,'d008','1998-01-26','2001-03-03'),(10535,'d009','1991-08-22','9999-01-01'),(10536,'d007','1988-10-07','9999-01-01'),(10537,'d007','1996-09-25','9999-01-01'),(10538,'d004','1991-09-22','1998-12-13'),(10538,'d005','1987-07-23','1991-09-22'),(10539,'d007','1990-06-05','9999-01-01'),(10540,'d004','1994-05-03','9999-01-01'),(10541,'d007','1986-02-28','1986-10-01'),(10542,'d005','1992-02-07','9999-01-01'),(10543,'d002','1998-11-24','9999-01-01'),(10544,'d008','1995-04-29','9999-01-01'),(10545,'d004','1990-06-30','9999-01-01'),(10546,'d008','1991-04-14','9999-01-01'),(10547,'d005','1988-02-14','1989-06-19'),(10548,'d001','1991-10-04','9999-01-01'),(10548,'d007','1986-07-04','1991-10-04'),(10549,'d005','1996-10-11','9999-01-01'),(10550,'d006','1985-02-03','9999-01-01'),(10551,'d006','1988-08-06','9999-01-01'),(10552,'d004','1998-08-31','9999-01-01'),(10553,'d005','1990-07-22','9999-01-01'),(10554,'d005','1990-11-28','9999-01-01'),(10555,'d007','1992-05-22','1993-01-19'),(10556,'d002','1992-04-15','9999-01-01'),(10557,'d005','1992-09-18','1994-08-25'),(10557,'d008','1994-08-25','9999-01-01'),(10558,'d004','1992-04-22','9999-01-01'),(10559,'d007','1999-04-05','9999-01-01'),(10560,'d005','1996-09-03','9999-01-01'),(10561,'d007','1997-06-30','9999-01-01'),(10562,'d005','1997-07-24','9999-01-01'),(10563,'d005','1992-09-29','2002-01-01'),(10564,'d004','1995-11-23','9999-01-01'),(10565,'d004','1996-08-05','9999-01-01'),(10566,'d005','1990-08-23','1997-10-26'),(10567,'d001','1997-02-17','9999-01-01'),(10567,'d007','1992-10-18','1997-02-17'),(10568,'d007','1995-07-08','9999-01-01'),(10569,'d008','1987-03-13','9999-01-01'),(10570,'d007','1986-06-16','2000-03-25'),(10571,'d005','1985-02-24','9999-01-01'),(10572,'d004','1988-02-16','9999-01-01'),(10573,'d007','1999-08-20','9999-01-01'),(10574,'d003','1999-11-15','9999-01-01'),(10575,'d004','1988-10-04','2000-11-22'),(10576,'d002','1991-01-03','9999-01-01'),(10577,'d004','2001-08-01','9999-01-01'),(10577,'d008','1993-07-02','2001-08-01'),(10578,'d005','1989-11-24','9999-01-01'),(10579,'d005','1991-06-02','9999-01-01'),(10580,'d009','1991-03-02','9999-01-01'),(10581,'d004','1994-04-13','9999-01-01'),(10582,'d005','1995-11-06','9999-01-01'),(10583,'d004','1985-02-14','1998-05-29'),(10584,'d005','1986-02-17','9999-01-01'),(10585,'d005','1991-01-09','1994-08-24'),(10585,'d008','1994-08-24','9999-01-01'),(10586,'d004','1992-02-04','9999-01-01'),(10587,'d005','1991-11-20','9999-01-01'),(10588,'d004','1988-07-25','9999-01-01'),(10589,'d002','1994-01-26','9999-01-01'),(10590,'d008','1986-04-09','9999-01-01'),(10591,'d001','1987-06-18','1988-09-20'),(10592,'d007','1993-09-27','9999-01-01'),(10593,'d004','2000-03-29','9999-01-01'),(10593,'d005','1990-09-12','2000-03-29'),(10594,'d005','1988-04-02','9999-01-01'),(10595,'d004','1989-11-24','9999-01-01'),(10596,'d007','1996-05-23','9999-01-01'),(10597,'d007','1990-04-01','9999-01-01'),(10598,'d004','1998-06-22','2000-09-27'),(10599,'d005','1991-11-17','9999-01-01'),(10600,'d007','1992-04-27','9999-01-01'),(10601,'d009','1999-07-24','2002-05-09'),(10602,'d001','1989-04-23','1993-11-06'),(10603,'d007','1995-07-20','9999-01-01'),(10604,'d004','2002-07-29','9999-01-01'),(10604,'d005','1990-04-07','2002-07-29'),(10605,'d006','1993-07-01','9999-01-01'),(10606,'d005','1987-05-02','9999-01-01'),(10607,'d005','1996-01-13','9999-01-01'),(10608,'d004','1986-05-25','1991-06-02'),(10609,'d005','1994-12-03','9999-01-01'),(10610,'d005','1997-03-30','9999-01-01'),(10611,'d005','1989-09-16','9999-01-01'),(10612,'d004','1991-09-02','9999-01-01'),(10613,'d003','1997-10-13','9999-01-01'),(10614,'d004','1990-03-03','1997-02-27'),(10614,'d009','1997-02-27','9999-01-01'),(10615,'d002','1996-03-10','9999-01-01'),(10616,'d007','1996-11-07','9999-01-01'),(10617,'d009','1991-10-30','2001-10-03'),(10618,'d004','1994-10-07','9999-01-01'),(10619,'d007','1993-04-09','9999-01-01'),(10620,'d005','1990-11-10','9999-01-01'),(10621,'d005','1992-02-10','9999-01-01'),(10622,'d004','1989-05-15','9999-01-01'),(10623,'d005','1992-01-15','1996-02-11'),(10623,'d008','1996-02-11','9999-01-01'),(10624,'d004','1990-05-07','9999-01-01'),(10625,'d005','1986-07-15','1995-01-13'),(10626,'d003','1996-12-03','9999-01-01'),(10627,'d003','1995-03-13','9999-01-01'),(10628,'d005','1987-03-14','9999-01-01'),(10629,'d007','1999-10-20','2001-12-07'),(10630,'d004','1997-01-13','9999-01-01'),(10631,'d005','1994-10-18','9999-01-01'),(10632,'d005','1985-07-25','1987-11-20'),(10633,'d007','1997-05-16','9999-01-01'),(10634,'d005','1990-11-11','1994-04-02'),(10634,'d008','1994-04-02','9999-01-01'),(10635,'d004','1991-09-22','1999-12-20'),(10636,'d003','1996-09-25','9999-01-01'),(10637,'d007','1993-07-11','2000-01-19'),(10638,'d007','1994-11-10','9999-01-01'),(10639,'d005','1992-10-25','9999-01-01'),(10640,'d007','1992-12-04','9999-01-01'),(10641,'d005','1993-03-21','9999-01-01'),(10642,'d005','1998-10-05','9999-01-01'),(10643,'d005','1987-11-11','9999-01-01'),(10644,'d002','1985-05-29','1995-07-19'),(10644,'d007','1995-07-19','1995-08-25'),(10645,'d004','1988-03-01','9999-01-01'),(10646,'d009','1996-01-31','9999-01-01'),(10647,'d004','1997-09-03','9999-01-01'),(10648,'d005','1988-02-16','9999-01-01'),(10649,'d009','1998-06-23','9999-01-01'),(10650,'d005','1992-10-04','9999-01-01'),(10651,'d008','1996-01-08','9999-01-01'),(10652,'d008','1990-02-12','1992-01-13'),(10653,'d005','1987-04-30','9999-01-01'),(10654,'d004','1990-03-25','9999-01-01'),(10655,'d002','1997-07-04','2000-11-22'),(10655,'d007','2000-11-22','9999-01-01'),(10656,'d004','1988-06-21','9999-01-01'),(10657,'d002','1992-03-26','9999-01-01'),(10658,'d001','1994-04-29','9999-01-01'),(10659,'d005','1995-06-01','9999-01-01'),(10660,'d005','1988-08-12','1991-07-12'),(10661,'d001','1988-01-12','9999-01-01'),(10662,'d004','1999-12-17','9999-01-01'),(10663,'d004','1999-02-12','9999-01-01'),(10663,'d005','1993-01-23','1999-02-12'),(10664,'d004','1989-12-24','9999-01-01'),(10665,'d005','1988-01-23','2000-07-13'),(10666,'d002','1989-05-20','9999-01-01'),(10667,'d009','1999-07-28','9999-01-01'),(10668,'d002','1997-11-28','1999-09-03'),(10669,'d009','1996-11-17','9999-01-01'),(10670,'d007','1988-03-23','9999-01-01'),(10671,'d003','1995-09-14','9999-01-01'),(10672,'d004','1991-09-29','1996-04-19'),(10673,'d005','1994-07-29','1997-11-18'),(10673,'d008','1997-11-18','1998-01-14'),(10674,'d005','1999-03-17','9999-01-01'),(10675,'d002','1993-02-02','9999-01-01'),(10676,'d005','1999-09-04','9999-01-01'),(10677,'d005','1999-10-13','9999-01-01'),(10678,'d005','1987-08-02','9999-01-01'),(10679,'d003','1990-05-13','9999-01-01'),(10680,'d005','1992-11-21','1998-12-08'),(10681,'d001','2002-01-08','9999-01-01'),(10681,'d007','1995-10-02','2002-01-08'),(10682,'d009','1990-11-09','9999-01-01'),(10683,'d004','1997-06-23','9999-01-01'),(10684,'d004','1999-10-28','9999-01-01'),(10685,'d002','1995-12-27','1996-10-20'),(10686,'d005','1987-05-17','9999-01-01'),(10687,'d008','1990-03-13','9999-01-01'),(10688,'d002','1986-04-13','9999-01-01'),(10689,'d003','1988-08-05','9999-01-01'),(10690,'d004','1995-10-04','9999-01-01'),(10690,'d005','1989-08-22','1995-10-04'),(10691,'d005','1989-09-17','9999-01-01'),(10692,'d007','1993-03-22','9999-01-01'),(10693,'d009','1986-01-08','9999-01-01'),(10694,'d001','1988-01-26','2001-07-11'),(10695,'d004','1998-05-19','9999-01-01'),(10696,'d005','1991-09-09','9999-01-01'),(10697,'d009','1999-08-29','9999-01-01'),(10698,'d005','1994-12-08','9999-01-01'),(10699,'d006','1985-11-17','9999-01-01'),(10700,'d005','1998-04-14','2002-06-27'),(10701,'d007','1986-10-27','1989-10-07'),(10701,'d009','1989-10-07','9999-01-01'),(10702,'d005','1991-01-14','9999-01-01'),(10703,'d004','1996-05-12','9999-01-01'),(10704,'d008','1995-02-17','9999-01-01'),(10705,'d007','1990-07-18','9999-01-01'),(10706,'d004','1994-05-03','2001-04-08'),(10707,'d005','1990-12-24','9999-01-01'),(10708,'d008','1999-11-09','9999-01-01'),(10709,'d005','1986-02-02','1988-02-21'),(10709,'d008','1988-02-21','9999-01-01'),(10710,'d007','1995-07-09','9999-01-01'),(10711,'d005','1991-06-21','9999-01-01'),(10712,'d005','1994-08-18','9999-01-01'),(10713,'d008','1986-04-26','2001-02-21'),(10714,'d005','1999-11-24','9999-01-01'),(10715,'d004','1999-10-28','9999-01-01'),(10716,'d005','1987-08-12','9999-01-01'),(10717,'d003','1991-09-13','9999-01-01'),(10718,'d005','1988-07-21','9999-01-01'),(10719,'d005','1995-09-05','1999-07-31'),(10720,'d004','2001-08-05','9999-01-01'),(10720,'d008','1996-06-26','2001-08-05'),(10721,'d009','1999-07-15','9999-01-01'),(10722,'d001','1989-01-17','2000-04-14'),(10723,'d004','1997-07-14','9999-01-01'),(10724,'d004','1995-12-07','9999-01-01'),(10725,'d007','1990-09-08','9999-01-01'),(10726,'d005','1992-02-25','9999-01-01'),(10727,'d002','1991-01-08','2000-06-06'),(10728,'d006','1989-12-09','9999-01-01'),(10729,'d004','1986-04-20','9999-01-01'),(10730,'d004','1996-05-27','1998-06-07'),(10730,'d005','1996-05-14','1996-05-27'),(10731,'d002','1987-02-20','2000-10-09'),(10732,'d004','1994-12-21','9999-01-01'),(10733,'d009','1996-02-20','9999-01-01'),(10734,'d004','1995-12-19','9999-01-01'),(10735,'d009','1985-10-29','9999-01-01'),(10736,'d006','1991-09-26','9999-01-01'),(10737,'d004','1999-06-22','9999-01-01'),(10738,'d005','1991-04-30','1992-01-06'),(10738,'d008','1992-01-06','9999-01-01'),(10739,'d005','1985-03-30','9999-01-01'),(10740,'d005','1996-04-30','2002-03-17'),(10741,'d001','1989-01-06','9999-01-01'),(10742,'d005','1997-04-03','9999-01-01'),(10743,'d002','1999-11-05','9999-01-01'),(10744,'d007','1985-12-29','1992-06-03'),(10745,'d004','1988-01-23','9999-01-01'),(10746,'d005','1990-08-31','9999-01-01'),(10747,'d004','1990-10-08','1999-09-20'),(10748,'d002','1990-08-14','1992-04-04'),(10748,'d003','1992-04-04','9999-01-01'),(10749,'d004','1985-09-26','9999-01-01'),(10750,'d005','1998-11-06','9999-01-01'),(10751,'d005','1999-12-14','2000-12-05'),(10752,'d006','1993-05-28','9999-01-01'),(10753,'d004','1985-05-17','1999-08-25'),(10754,'d007','1988-01-11','9999-01-01'),(10755,'d005','1995-04-01','2001-11-13'),(10756,'d004','2000-12-16','9999-01-01'),(10756,'d005','1997-10-07','2000-12-16'),(10757,'d005','1986-01-06','1991-10-18'),(10758,'d004','1999-07-01','9999-01-01'),(10759,'d004','1991-12-04','9999-01-01'),(10760,'d002','1997-08-22','9999-01-01'),(10761,'d002','1992-05-30','1999-01-04'),(10762,'d008','1992-01-21','9999-01-01'),(10763,'d004','1987-02-23','9999-01-01'),(10764,'d005','1989-11-27','9999-01-01'),(10765,'d001','1994-05-08','1994-05-11'),(10765,'d007','1994-05-07','1994-05-08'),(10766,'d003','1999-09-18','9999-01-01'),(10767,'d007','1997-07-15','9999-01-01'),(10768,'d004','1985-07-04','9999-01-01'),(10769,'d005','1991-08-30','9999-01-01'),(10770,'d007','1987-12-25','1989-02-27'),(10771,'d009','1996-04-01','9999-01-01'),(10772,'d005','1990-02-22','9999-01-01'),(10773,'d009','1997-02-09','1997-11-29'),(10774,'d004','1990-01-26','9999-01-01'),(10775,'d004','1994-12-30','1999-03-17'),(10775,'d009','1999-03-17','9999-01-01'),(10776,'d005','1986-03-16','9999-01-01'),(10777,'d004','1990-03-17','2001-03-27'),(10778,'d001','1986-07-04','9999-01-01'),(10779,'d009','1988-01-11','9999-01-01'),(10780,'d004','1994-08-01','1996-08-18'),(10781,'d009','1991-02-04','9999-01-01'),(10782,'d008','1997-07-06','2002-03-30'),(10783,'d003','1994-05-15','9999-01-01'),(10784,'d005','1998-10-14','9999-01-01'),(10785,'d006','1994-11-11','9999-01-01'),(10786,'d004','1997-06-06','2001-12-10'),(10786,'d006','2001-12-10','9999-01-01'),(10787,'d001','1991-07-19','2002-07-27'),(10788,'d007','1998-05-29','9999-01-01'),(10789,'d009','1998-01-26','9999-01-01'),(10790,'d004','1999-03-02','9999-01-01'),(10791,'d005','1988-07-30','9999-01-01'),(10792,'d005','1985-08-10','1993-12-20'),(10793,'d005','1990-09-18','9999-01-01'),(10794,'d008','1994-05-24','9999-01-01'),(10795,'d007','1993-05-03','9999-01-01'),(10796,'d006','1990-11-08','9999-01-01'),(10797,'d004','1997-06-02','9999-01-01'),(10797,'d005','1988-08-21','1997-06-02'),(10798,'d004','1996-09-21','9999-01-01'),(10799,'d005','1989-03-01','9999-01-01'),(10800,'d004','1993-05-20','9999-01-01'),(10801,'d004','1998-04-07','2001-01-15'),(10802,'d004','1985-08-24','9999-01-01'),(10803,'d006','1988-04-20','2002-04-02'),(10804,'d007','1997-06-09','9999-01-01'),(10805,'d008','1987-05-26','9999-01-01'),(10806,'d002','1993-04-25','1994-04-08'),(10806,'d003','1994-04-08','9999-01-01'),(10807,'d007','1999-10-19','9999-01-01'),(10808,'d005','1987-03-07','9999-01-01'),(10809,'d005','1988-02-25','9999-01-01'),(10810,'d007','1994-09-07','9999-01-01'),(10811,'d004','1997-07-08','9999-01-01'),(10812,'d004','1996-09-20','1997-10-06'),(10813,'d007','1990-04-27','9999-01-01'),(10814,'d007','1993-07-17','9999-01-01'),(10815,'d003','1994-04-19','9999-01-01'),(10816,'d009','1991-05-22','9999-01-01'),(10817,'d007','1990-12-26','2000-01-24'),(10817,'d009','2000-01-24','9999-01-01'),(10818,'d003','1998-04-09','9999-01-01'),(10819,'d004','1986-08-02','1999-12-28'),(10820,'d001','1992-06-26','9999-01-01'),(10821,'d005','1988-10-06','1990-04-17'),(10822,'d005','1986-01-11','9999-01-01'),(10823,'d003','1999-08-19','9999-01-01'),(10824,'d001','1995-08-01','9999-01-01'),(10825,'d004','2000-06-03','9999-01-01'),(10825,'d005','1993-12-04','2000-06-03'),(10826,'d005','1993-01-22','9999-01-01'),(10827,'d002','1996-11-07','9999-01-01'),(10828,'d007','1986-02-14','1990-03-30'),(10829,'d003','1993-07-21','1993-11-29'),(10830,'d001','1991-08-24','9999-01-01'),(10831,'d005','1998-02-22','9999-01-01'),(10832,'d007','1986-10-11','9999-01-01'),(10833,'d006','1998-12-23','9999-01-01'),(10834,'d004','1990-11-24','9999-01-01'),(10835,'d004','1995-08-22','9999-01-01'),(10836,'d007','1987-08-10','1991-07-01'),(10836,'d009','1991-07-01','9999-01-01'),(10837,'d007','1986-01-14','2002-02-22'),(10838,'d006','1994-04-26','9999-01-01'),(10839,'d004','1996-12-30','9999-01-01'),(10840,'d004','1993-06-04','9999-01-01'),(10841,'d009','1992-01-22','9999-01-01'),(10842,'d005','1986-07-14','1998-06-27'),(10843,'d005','1990-04-26','9999-01-01'),(10844,'d005','1997-04-25','9999-01-01'),(10845,'d005','1997-01-25','9999-01-01'),(10846,'d005','1995-01-17','1997-04-03'),(10846,'d008','1997-04-03','9999-01-01'),(10847,'d008','1986-07-25','9999-01-01'),(10848,'d004','1985-04-20','9999-01-01'),(10849,'d005','1995-06-25','9999-01-01'),(10850,'d002','1990-04-22','1995-05-11'),(10851,'d008','1994-11-21','9999-01-01'),(10852,'d004','1999-08-21','9999-01-01'),(10853,'d006','1993-05-03','9999-01-01'),(10854,'d005','1998-07-13','9999-01-01'),(10855,'d002','1993-03-29','1997-03-02'),(10855,'d007','1997-03-02','9999-01-01'),(10856,'d009','1986-12-31','1990-06-18'),(10857,'d007','1990-04-04','9999-01-01'),(10858,'d005','1997-01-01','9999-01-01'),(10859,'d001','1996-05-21','9999-01-01'),(10860,'d006','1998-01-22','9999-01-01'),(10861,'d005','1989-06-10','1992-04-12'),(10862,'d007','1985-07-23','9999-01-01'),(10863,'d004','1985-12-25','9999-01-01'),(10864,'d007','1986-09-25','9999-01-01'),(10865,'d007','1993-05-29','1993-07-03'),(10865,'d009','1993-07-03','1993-09-19'),(10866,'d002','1990-12-27','9999-01-01'),(10867,'d004','1997-03-23','2002-03-22'),(10868,'d004','1990-03-20','9999-01-01'),(10869,'d009','1997-09-04','1998-10-15'),(10870,'d004','1988-01-13','9999-01-01'),(10871,'d009','1999-06-16','9999-01-01'),(10872,'d002','1990-09-06','9999-01-01'),(10873,'d002','1994-03-23','9999-01-01'),(10874,'d004','1986-04-22','1997-12-28'),(10874,'d006','1997-12-28','9999-01-01'),(10875,'d006','1988-05-19','9999-01-01'),(10876,'d007','1995-01-29','1999-09-14'),(10877,'d001','1986-06-06','9999-01-01'),(10878,'d007','1997-04-25','9999-01-01'),(10879,'d005','1985-08-15','9999-01-01'),(10880,'d004','1992-01-11','9999-01-01'),(10881,'d004','1997-02-18','1998-10-25'),(10882,'d005','1999-04-29','9999-01-01'),(10883,'d004','1996-12-28','9999-01-01'),(10884,'d005','1993-04-15','9999-01-01'),(10885,'d001','1997-09-29','9999-01-01'),(10885,'d007','1991-08-19','1997-09-29'),(10886,'d005','1995-03-26','9999-01-01'),(10887,'d005','1989-03-17','9999-01-01'),(10888,'d005','1987-06-28','1989-09-11'),(10889,'d007','1987-08-11','9999-01-01'),(10890,'d007','1990-03-10','9999-01-01'),(10891,'d005','1995-10-06','9999-01-01'),(10892,'d003','1990-04-11','9999-01-01'),(10893,'d001','1989-08-23','9999-01-01'),(10894,'d004','1995-12-05','9999-01-01'),(10895,'d007','1986-04-26','1986-12-25'),(10895,'d009','1986-12-25','1987-04-13'),(10896,'d004','1997-11-27','9999-01-01'),(10897,'d007','1986-04-09','9999-01-01'),(10898,'d004','1993-01-08','9999-01-01'),(10899,'d001','1990-04-05','9999-01-01'),(10900,'d005','1995-09-07','9999-01-01'),(10901,'d002','1998-08-05','9999-01-01'),(10902,'d005','1990-06-11','1990-09-25'),(10903,'d009','1989-02-14','9999-01-01'),(10904,'d005','1993-04-16','9999-01-01'),(10905,'d004','1985-02-28','1986-03-07'),(10906,'d002','1998-10-18','2001-04-25'),(10906,'d007','2001-04-25','9999-01-01'),(10907,'d003','1988-12-25','9999-01-01'),(10908,'d003','1986-04-05','9999-01-01'),(10909,'d005','1993-12-26','9999-01-01'),(10910,'d009','1989-09-02','9999-01-01'),(10911,'d004','1988-06-25','9999-01-01'),(10912,'d002','1986-04-23','1999-09-26'),(10913,'d002','1998-10-25','9999-01-01'),(10914,'d007','1998-03-24','1998-09-01'),(10915,'d004','1999-10-28','9999-01-01'),(10916,'d004','1998-10-02','9999-01-01'),(10916,'d005','1998-03-12','1998-10-02'),(10917,'d005','1993-01-30','9999-01-01'),(10918,'d002','1990-01-29','1990-10-10'),(10919,'d001','1999-10-30','9999-01-01'),(10920,'d003','1992-02-24','9999-01-01'),(10921,'d004','1986-07-27','9999-01-01'),(10922,'d007','1996-02-02','1999-01-16'),(10923,'d007','1990-04-09','9999-01-01'),(10924,'d007','1988-08-14','9999-01-01'),(10925,'d004','1991-06-11','9999-01-01'),(10926,'d004','1990-04-30','1992-11-04'),(10926,'d009','1992-11-04','9999-01-01'),(10927,'d001','1986-09-12','9999-01-01'),(10928,'d001','1991-04-07','9999-01-01'),(10929,'d001','1991-04-15','9999-01-01'),(10930,'d004','1991-11-22','9999-01-01'),(10931,'d004','1992-06-14','1999-09-19'),(10932,'d005','1994-09-09','9999-01-01'),(10933,'d004','1993-08-02','9999-01-01'),(10934,'d002','1995-09-17','9999-01-01'),(10935,'d002','1994-10-17','9999-01-01'),(10936,'d003','1990-05-09','9999-01-01'),(10937,'d004','1991-05-03','9999-01-01'),(10937,'d005','1988-06-16','1991-05-03'),(10938,'d001','1985-09-24','9999-01-01'),(10939,'d006','1997-12-11','9999-01-01'),(10940,'d005','1997-06-30','1999-12-02'),(10941,'d001','1993-08-22','9999-01-01'),(10942,'d005','1996-01-21','9999-01-01'),(10943,'d005','1993-05-22','9999-01-01'),(10944,'d004','1995-09-07','9999-01-01'),(10945,'d004','1993-04-04','9999-01-01'),(10946,'d009','1996-10-26','9999-01-01'),(10947,'d009','1995-11-16','9999-01-01'),(10948,'d005','1996-09-30','1997-04-29'),(10948,'d008','1997-04-29','1997-06-23'),(10949,'d002','1990-06-29','9999-01-01'),(10950,'d004','1996-06-08','1998-01-13'),(10951,'d002','1989-07-06','9999-01-01'),(10952,'d005','1986-07-22','1988-04-26'),(10953,'d007','1987-02-12','9999-01-01'),(10954,'d009','1995-12-14','9999-01-01'),(10955,'d007','1986-09-27','9999-01-01'),(10956,'d004','1997-02-10','9999-01-01'),(10956,'d005','1995-12-02','1997-02-10'),(10957,'d007','1990-10-01','9999-01-01'),(10958,'d005','1988-11-27','9999-01-01'),(10959,'d007','1994-03-01','1996-04-12'),(10960,'d007','1995-07-07','9999-01-01'),(10961,'d005','1993-11-04','9999-01-01'),(10962,'d007','1986-12-16','9999-01-01'),(10963,'d005','1988-01-14','1995-04-10'),(10964,'d002','1991-05-05','9999-01-01'),(10965,'d007','1986-07-29','9999-01-01'),(10966,'d004','1999-11-12','9999-01-01'),(10966,'d008','1997-02-05','1999-11-12'),(10967,'d005','1993-08-01','9999-01-01'),(10968,'d007','1985-08-11','9999-01-01'),(10969,'d005','1994-05-12','9999-01-01'),(10970,'d004','1995-11-14','9999-01-01'),(10971,'d005','1991-07-30','1998-10-24'),(10972,'d005','1987-06-06','9999-01-01'),(10973,'d005','1989-03-05','9999-01-01'),(10974,'d005','1999-05-17','9999-01-01'),(10975,'d004','1992-03-30','1997-01-14'),(10975,'d009','1997-01-14','9999-01-01'),(10976,'d004','1998-10-31','9999-01-01'),(10977,'d007','1987-08-10','1987-10-01'),(10978,'d004','1985-05-18','9999-01-01'),(10979,'d004','1986-01-27','9999-01-01'),(10980,'d005','1989-01-04','9999-01-01'),(10981,'d007','1992-07-07','9999-01-01'),(10982,'d008','1989-11-11','9999-01-01'),(10983,'d004','1988-02-22','9999-01-01'),(10984,'d004','1988-07-09','1993-05-14'),(10985,'d005','1999-02-11','1999-02-27'),(10985,'d008','1999-02-27','1999-03-10'),(10986,'d005','1985-10-11','9999-01-01'),(10987,'d005','1997-05-21','9999-01-01'),(10988,'d005','1985-06-19','9999-01-01'),(10989,'d002','1985-07-20','9999-01-01'),(10990,'d005','1990-08-06','9999-01-01'),(10991,'d005','1999-07-13','9999-01-01'),(10992,'d005','1997-04-27','9999-01-01'),(10993,'d006','1992-05-29','9999-01-01'),(10994,'d004','1987-11-13','1989-05-24'),(10994,'d005','1987-06-29','1987-11-13'),(10995,'d001','1997-07-19','9999-01-01'),(10996,'d007','1990-02-07','9999-01-01'),(10997,'d004','2000-01-04','9999-01-01'),(10998,'d007','1996-08-07','9999-01-01'),(10999,'d005','1996-03-05','1997-04-19'),(11000,'d005','1996-01-28','9999-01-01'); /*!40000 ALTER TABLE `dept_emp` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dept_manager` -- DROP TABLE IF EXISTS `dept_manager`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dept_manager` ( `dept_no` char(4) NOT NULL, `emp_no` int(11) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, PRIMARY KEY (`emp_no`,`dept_no`), KEY `emp_no` (`emp_no`), KEY `dept_no` (`dept_no`), CONSTRAINT `dept_manager_ibfk_1` FOREIGN KEY (`emp_no`) REFERENCES `employees` (`emp_no`) ON DELETE CASCADE, CONSTRAINT `dept_manager_ibfk_2` FOREIGN KEY (`dept_no`) REFERENCES `departments` (`dept_no`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dept_manager` -- LOCK TABLES `dept_manager` WRITE; /*!40000 ALTER TABLE `dept_manager` DISABLE KEYS */; /*!40000 ALTER TABLE `dept_manager` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `employees` -- DROP TABLE IF EXISTS `employees`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `employees` ( `emp_no` int(11) NOT NULL, `birth_date` date NOT NULL, `first_name` varchar(14) NOT NULL, `last_name` varchar(16) NOT NULL, `gender` enum('M','F') NOT NULL, `hire_date` date NOT NULL, PRIMARY KEY (`emp_no`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `employees` -- LOCK TABLES `employees` WRITE; /*!40000 ALTER TABLE `employees` DISABLE KEYS */; INSERT INTO `employees` VALUES (10001,'1953-09-02','Georgi','Facello','M','1986-06-26'),(10002,'1964-06-02','Bezalel','Simmel','F','1985-11-21'),(10003,'1959-12-03','Parto','Bamford','M','1986-08-28'),(10004,'1954-05-01','Chirstian','Koblick','M','1986-12-01'),(10005,'1955-01-21','Kyoichi','Maliniak','M','1989-09-12'),(10006,'1953-04-20','Anneke','Preusig','F','1989-06-02'),(10007,'1957-05-23','Tzvetan','Zielinski','F','1989-02-10'),(10008,'1958-02-19','Saniya','Kalloufi','M','1994-09-15'),(10009,'1952-04-19','Sumant','Peac','F','1985-02-18'),(10010,'1963-06-01','Duangkaew','Piveteau','F','1989-08-24'),(10011,'1953-11-07','Mary','Sluis','F','1990-01-22'),(10012,'1960-10-04','Patricio','Bridgland','M','1992-12-18'),(10013,'1963-06-07','Eberhardt','Terkki','M','1985-10-20'),(10014,'1956-02-12','Berni','Genin','M','1987-03-11'),(10015,'1959-08-19','Guoxiang','Nooteboom','M','1987-07-02'),(10016,'1961-05-02','Kazuhito','Cappelletti','M','1995-01-27'),(10017,'1958-07-06','Cristinel','Bouloucos','F','1993-08-03'),(10018,'1954-06-19','Kazuhide','Peha','F','1987-04-03'),(10019,'1953-01-23','Lillian','Haddadi','M','1999-04-30'),(10020,'1952-12-24','Mayuko','Warwick','M','1991-01-26'),(10021,'1960-02-20','Ramzi','Erde','M','1988-02-10'),(10022,'1952-07-08','Shahaf','Famili','M','1995-08-22'),(10023,'1953-09-29','Bojan','Montemayor','F','1989-12-17'),(10024,'1958-09-05','Suzette','Pettey','F','1997-05-19'),(10025,'1958-10-31','Prasadram','Heyers','M','1987-08-17'),(10026,'1953-04-03','Yongqiao','Berztiss','M','1995-03-20'),(10027,'1962-07-10','Divier','Reistad','F','1989-07-07'),(10028,'1963-11-26','Domenick','Tempesti','M','1991-10-22'),(10029,'1956-12-13','Otmar','Herbst','M','1985-11-20'),(10030,'1958-07-14','Elvis','Demeyer','M','1994-02-17'),(10031,'1959-01-27','Karsten','Joslin','M','1991-09-01'),(10032,'1960-08-09','Jeong','Reistad','F','1990-06-20'),(10033,'1956-11-14','Arif','Merlo','M','1987-03-18'),(10034,'1962-12-29','Bader','Swan','M','1988-09-21'),(10035,'1953-02-08','Alain','Chappelet','M','1988-09-05'),(10036,'1959-08-10','Adamantios','Portugali','M','1992-01-03'),(10037,'1963-07-22','Pradeep','Makrucki','M','1990-12-05'),(10038,'1960-07-20','Huan','Lortz','M','1989-09-20'),(10039,'1959-10-01','Alejandro','Brender','M','1988-01-19'),(10040,'1959-09-13','Weiyi','Meriste','F','1993-02-14'),(10041,'1959-08-27','Uri','Lenart','F','1989-11-12'),(10042,'1956-02-26','Magy','Stamatiou','F','1993-03-21'),(10043,'1960-09-19','Yishay','Tzvieli','M','1990-10-20'),(10044,'1961-09-21','Mingsen','Casley','F','1994-05-21'),(10045,'1957-08-14','Moss','Shanbhogue','M','1989-09-02'),(10046,'1960-07-23','Lucien','Rosenbaum','M','1992-06-20'),(10047,'1952-06-29','Zvonko','Nyanchama','M','1989-03-31'),(10048,'1963-07-11','Florian','Syrotiuk','M','1985-02-24'),(10049,'1961-04-24','Basil','Tramer','F','1992-05-04'),(10050,'1958-05-21','Yinghua','Dredge','M','1990-12-25'),(10051,'1953-07-28','Hidefumi','Caine','M','1992-10-15'),(10052,'1961-02-26','Heping','Nitsch','M','1988-05-21'),(10053,'1954-09-13','Sanjiv','Zschoche','F','1986-02-04'),(10054,'1957-04-04','Mayumi','Schueller','M','1995-03-13'),(10055,'1956-06-06','Georgy','Dredge','M','1992-04-27'),(10056,'1961-09-01','Brendon','Bernini','F','1990-02-01'),(10057,'1954-05-30','Ebbe','Callaway','F','1992-01-15'),(10058,'1954-10-01','Berhard','McFarlin','M','1987-04-13'),(10059,'1953-09-19','Alejandro','McAlpine','F','1991-06-26'),(10060,'1961-10-15','Breannda','Billingsley','M','1987-11-02'),(10061,'1962-10-19','Tse','Herber','M','1985-09-17'),(10062,'1961-11-02','Anoosh','Peyn','M','1991-08-30'),(10063,'1952-08-06','Gino','Leonhardt','F','1989-04-08'),(10064,'1959-04-07','Udi','Jansch','M','1985-11-20'),(10065,'1963-04-14','Satosi','Awdeh','M','1988-05-18'),(10066,'1952-11-13','Kwee','Schusler','M','1986-02-26'),(10067,'1953-01-07','Claudi','Stavenow','M','1987-03-04'),(10068,'1962-11-26','Charlene','Brattka','M','1987-08-07'),(10069,'1960-09-06','Margareta','Bierman','F','1989-11-05'),(10070,'1955-08-20','Reuven','Garigliano','M','1985-10-14'),(10071,'1958-01-21','Hisao','Lipner','M','1987-10-01'),(10072,'1952-05-15','Hironoby','Sidou','F','1988-07-21'),(10073,'1954-02-23','Shir','McClurg','M','1991-12-01'),(10074,'1955-08-28','Mokhtar','Bernatsky','F','1990-08-13'),(10075,'1960-03-09','Gao','Dolinsky','F','1987-03-19'),(10076,'1952-06-13','Erez','Ritzmann','F','1985-07-09'),(10077,'1964-04-18','Mona','Azuma','M','1990-03-02'),(10078,'1959-12-25','Danel','Mondadori','F','1987-05-26'),(10079,'1961-10-05','Kshitij','Gils','F','1986-03-27'),(10080,'1957-12-03','Premal','Baek','M','1985-11-19'),(10081,'1960-12-17','Zhongwei','Rosen','M','1986-10-30'),(10082,'1963-09-09','Parviz','Lortz','M','1990-01-03'),(10083,'1959-07-23','Vishv','Zockler','M','1987-03-31'),(10084,'1960-05-25','Tuval','Kalloufi','M','1995-12-15'),(10085,'1962-11-07','Kenroku','Malabarba','M','1994-04-09'),(10086,'1962-11-19','Somnath','Foote','M','1990-02-16'),(10087,'1959-07-23','Xinglin','Eugenio','F','1986-09-08'),(10088,'1954-02-25','Jungsoon','Syrzycki','F','1988-09-02'),(10089,'1963-03-21','Sudharsan','Flasterstein','F','1986-08-12'),(10090,'1961-05-30','Kendra','Hofting','M','1986-03-14'),(10091,'1955-10-04','Amabile','Gomatam','M','1992-11-18'),(10092,'1964-10-18','Valdiodio','Niizuma','F','1989-09-22'),(10093,'1964-06-11','Sailaja','Desikan','M','1996-11-05'),(10094,'1957-05-25','Arumugam','Ossenbruggen','F','1987-04-18'),(10095,'1965-01-03','Hilari','Morton','M','1986-07-15'),(10096,'1954-09-16','Jayson','Mandell','M','1990-01-14'),(10097,'1952-02-27','Remzi','Waschkowski','M','1990-09-15'),(10098,'1961-09-23','Sreekrishna','Servieres','F','1985-05-13'),(10099,'1956-05-25','Valter','Sullins','F','1988-10-18'),(10100,'1953-04-21','Hironobu','Haraldson','F','1987-09-21'),(10101,'1952-04-15','Perla','Heyers','F','1992-12-28'),(10102,'1959-11-04','Paraskevi','Luby','F','1994-01-26'),(10103,'1953-11-26','Akemi','Birch','M','1986-12-02'),(10104,'1961-11-19','Xinyu','Warwick','M','1987-04-16'),(10105,'1962-02-05','Hironoby','Piveteau','M','1999-03-23'),(10106,'1952-08-29','Eben','Aingworth','M','1990-12-19'),(10107,'1956-06-13','Dung','Baca','F','1994-03-22'),(10108,'1952-04-07','Lunjin','Giveon','M','1986-10-02'),(10109,'1958-11-25','Mariusz','Prampolini','F','1993-06-16'),(10110,'1957-03-07','Xuejia','Ullian','F','1986-08-22'),(10111,'1963-08-29','Hugo','Rosis','F','1988-06-19'),(10112,'1963-08-13','Yuichiro','Swick','F','1985-10-08'),(10113,'1963-11-13','Jaewon','Syrzycki','M','1989-12-24'),(10114,'1957-02-16','Munir','Demeyer','F','1992-07-17'),(10115,'1964-12-25','Chikara','Rissland','M','1986-01-23'),(10116,'1955-08-26','Dayanand','Czap','F','1985-05-28'),(10117,'1961-10-24','Kiyotoshi','Blokdijk','F','1990-05-28'),(10118,'1957-03-29','Zhonghui','Zyda','F','1990-09-13'),(10119,'1960-12-01','Domenick','Peltason','M','1986-03-14'),(10120,'1960-03-26','Armond','Fairtlough','F','1996-07-06'),(10121,'1962-07-14','Guoxiang','Ramsay','M','1989-05-03'),(10122,'1965-01-19','Ohad','Esposito','M','1992-12-23'),(10123,'1962-05-12','Hinrich','Randi','M','1993-01-15'),(10124,'1962-05-23','Geraldo','Marwedel','M','1991-09-05'),(10125,'1957-09-13','Syozo','Hiltgen','F','1990-10-26'),(10126,'1954-08-07','Kayoko','Valtorta','M','1985-09-08'),(10127,'1952-02-24','Subir','Baja','F','1989-01-14'),(10128,'1958-02-15','Babette','Lamba','F','1988-06-06'),(10129,'1955-12-02','Armond','Peir','M','1985-12-10'),(10130,'1955-04-27','Nishit','Casperson','M','1988-06-21'),(10131,'1952-02-19','Magdalena','Eldridge','M','1994-11-17'),(10132,'1956-12-15','Ayakannu','Skrikant','M','1994-10-30'),(10133,'1963-12-12','Giri','Isaak','M','1985-12-15'),(10134,'1953-04-15','Diederik','Siprelle','M','1987-12-12'),(10135,'1956-12-23','Nathan','Monkewich','M','1988-02-19'),(10136,'1961-09-14','Zissis','Pintelas','M','1986-02-11'),(10137,'1959-07-30','Maren','Hutton','M','1985-02-18'),(10138,'1955-04-24','Perry','Shimshoni','M','1986-09-18'),(10139,'1963-03-03','Ewing','Foong','F','1998-03-15'),(10140,'1957-03-11','Yucel','Auria','F','1991-03-14'),(10141,'1960-01-17','Shahaf','Ishibashi','F','1993-05-06'),(10142,'1956-08-29','Tzvetan','Hettesheimer','M','1993-10-28'),(10143,'1961-07-16','Sakthirel','Bakhtari','M','1988-09-30'),(10144,'1959-06-17','Marla','Brendel','M','1985-10-14'),(10145,'1956-03-30','Akemi','Esposito','F','1987-08-01'),(10146,'1959-01-12','Chenyi','Syang','M','1988-06-28'),(10147,'1964-10-13','Kazuhito','Encarnacion','M','1986-08-21'),(10148,'1957-10-04','Douadi','Azumi','M','1995-10-10'),(10149,'1953-05-20','Xiadong','Perry','F','1986-11-05'),(10150,'1955-01-29','Zhenbing','Perng','F','1986-11-16'),(10151,'1959-03-06','Itzchak','Lichtner','M','1990-04-10'),(10152,'1954-12-01','Jaques','Munro','F','1986-01-27'),(10153,'1955-12-15','Heekeun','Majewski','M','1987-04-08'),(10154,'1957-01-17','Abdulah','Thibadeau','F','1990-12-12'),(10155,'1959-12-07','Adas','Nastansky','M','1990-01-05'),(10156,'1964-09-19','Sumali','Fargier','M','1985-03-10'),(10157,'1954-04-23','Nigel','Aloisi','M','1985-11-02'),(10158,'1958-04-01','Khedija','Mitsuhashi','M','1986-01-29'),(10159,'1955-03-03','Serif','Buescher','M','1991-05-29'),(10160,'1953-10-18','Debatosh','Khasidashvili','M','1989-01-30'),(10161,'1953-04-06','Hairong','Mellouli','F','1988-04-03'),(10162,'1957-10-05','Florina','Eugenio','M','1991-05-01'),(10163,'1952-09-17','Karsten','Szmurlo','M','1989-07-19'),(10164,'1956-01-19','Jagoda','Braunmuhl','M','1985-11-12'),(10165,'1960-06-16','Miyeon','Macedo','M','1988-05-17'),(10166,'1953-05-10','Samphel','Siegrist','F','1993-01-01'),(10167,'1958-05-23','Duangkaew','Rassart','M','1992-04-04'),(10168,'1964-09-11','Dharmaraja','Stassinopoulos','M','1986-12-06'),(10169,'1961-05-03','Sampalli','Snedden','F','1992-07-24'),(10170,'1960-10-03','Kasturi','Jenevein','F','1986-01-02'),(10171,'1957-09-11','Herbert','Trachtenberg','M','1989-07-22'),(10172,'1957-03-25','Shigeu','Matzen','F','1995-10-13'),(10173,'1962-10-28','Shrikanth','Mahmud','M','1992-03-21'),(10174,'1959-05-15','Badri','Furudate','M','1987-06-01'),(10175,'1960-01-11','Aleksandar','Ananiadou','F','1988-01-11'),(10176,'1957-01-24','Brendon','Lenart','F','1994-12-22'),(10177,'1954-11-08','Pragnesh','Iisaka','M','1993-02-06'),(10178,'1963-03-13','Valery','Litvinov','M','1986-10-07'),(10179,'1961-11-25','Deniz','Duclos','F','1990-10-04'),(10180,'1956-01-29','Shaw','Wendorf','M','1986-02-25'),(10181,'1963-01-22','Sibyl','Nooteboom','M','1988-06-22'),(10182,'1961-02-04','Moriyoshi','Merey','F','1990-09-02'),(10183,'1954-10-17','Mechthild','Bonifati','M','1996-08-11'),(10184,'1957-05-22','Mihalis','Lowrie','M','1987-10-29'),(10185,'1959-12-05','Duro','Sidhu','F','1986-03-01'),(10186,'1953-07-16','Shigehito','Kropatsch','M','1986-03-28'),(10187,'1961-05-26','Tommaso','Narwekar','F','1991-06-01'),(10188,'1956-07-13','Christ','Muchinsky','F','1987-08-27'),(10189,'1955-11-12','Khalid','Erva','M','1989-10-05'),(10190,'1964-12-11','Arve','Fairtlough','F','1986-06-23'),(10191,'1959-04-08','Zdislav','Nastansky','M','1986-04-10'),(10192,'1960-09-16','Mohua','Falck','M','1988-06-13'),(10193,'1960-06-29','Masaru','Cheshire','M','1991-07-28'),(10194,'1954-01-29','Josyula','Hofmeyr','F','1989-05-15'),(10195,'1963-11-13','Annemarie','Redmiles','M','1985-02-15'),(10196,'1954-01-27','Marc','Hellwagner','M','1994-11-16'),(10197,'1963-08-06','Kasidit','Krzyzanowski','F','1993-11-22'),(10198,'1953-05-28','Pranav','Furedi','M','1985-08-31'),(10199,'1959-04-07','Kazuhisa','Ranta','M','1997-04-29'),(10200,'1961-12-31','Vidya','Awdeh','M','1985-10-16'),(10201,'1956-12-15','Idoia','Kavraki','F','1986-11-22'),(10202,'1956-01-05','Greger','Lichtner','M','1991-10-06'),(10203,'1955-07-27','Steen','Escriba','M','1989-04-06'),(10204,'1956-12-09','Nevio','Ritcey','F','1986-12-04'),(10205,'1953-05-20','Mabhin','Leijenhorst','F','1993-08-23'),(10206,'1960-09-19','Alassane','Iwayama','F','1988-04-19'),(10207,'1955-05-28','Girolamo','Anandan','F','1992-10-11'),(10208,'1960-01-02','Xiping','Klerer','M','1991-12-23'),(10209,'1956-12-12','Yolla','Ellozy','F','1991-11-23'),(10210,'1958-01-24','Yuping','Alpin','M','1994-05-10'),(10211,'1964-08-05','Vishu','Strehl','F','1989-11-18'),(10212,'1959-05-09','Divier','Esteva','M','1990-07-11'),(10213,'1964-05-24','Jackson','Kakkad','M','1992-11-06'),(10214,'1962-04-14','Tadahiko','Ciolek','M','1988-02-29'),(10215,'1954-04-02','Xiaobin','Duclos','M','1987-10-19'),(10216,'1958-07-16','Amstein','Ghemri','M','1987-10-30'),(10217,'1954-07-07','Yongmin','Roison','F','1986-05-12'),(10218,'1958-12-07','Zhenhua','Magalhaes','M','1997-01-15'),(10219,'1952-05-02','Genta','Kolvik','M','1993-03-31'),(10220,'1958-05-25','Kish','Fasbender','F','1992-06-25'),(10221,'1957-01-03','Yucai','Granlund','M','1988-06-08'),(10222,'1962-09-21','Tze','Nourani','M','1986-06-08'),(10223,'1963-09-17','Carrsten','Schmiedel','F','1985-11-18'),(10224,'1954-05-17','Leon','Trogemann','M','1988-01-09'),(10225,'1957-02-13','Kellie','Chinen','F','1986-06-19'),(10226,'1964-12-28','Xinglin','Plessier','M','1989-10-27'),(10227,'1957-07-04','Anneli','Kaiser','M','1994-04-24'),(10228,'1953-04-21','Karoline','Cesareni','F','1991-08-26'),(10229,'1952-02-10','Ulises','Takanami','M','1987-11-22'),(10230,'1955-09-11','Clyde','Vernadat','M','1996-06-16'),(10231,'1963-07-21','Shaowen','Desikan','F','1996-04-13'),(10232,'1956-03-11','Marko','Auria','F','1992-06-04'),(10233,'1954-04-01','Lein','Vendrig','F','1985-07-05'),(10234,'1961-01-18','Arunachalam','Bakhtari','M','1990-11-19'),(10235,'1958-03-27','Susanta','Roccetti','F','1995-04-06'),(10236,'1960-03-26','Susumu','Bade','F','1996-08-30'),(10237,'1952-09-22','Yannis','Mandell','F','1989-08-11'),(10238,'1964-11-02','Mototsugu','Gire','F','1986-11-19'),(10239,'1955-03-31','Nikolaos','Llado','F','1995-05-08'),(10240,'1952-04-01','Remko','Maccarone','M','1998-10-06'),(10241,'1958-07-01','Ortrud','Murillo','M','1988-06-12'),(10242,'1964-02-22','Lunjin','Ozeri','M','1988-01-18'),(10243,'1960-12-22','Wonhee','Pouyioutas','M','1985-11-24'),(10244,'1961-10-24','Foong','Flasterstein','M','1985-12-23'),(10245,'1962-08-23','Ramalingam','Gente','F','1985-04-26'),(10246,'1962-06-23','Basem','Teitelbaum','M','1987-07-12'),(10247,'1964-06-30','Heon','Riefers','F','1992-08-14'),(10248,'1955-09-24','Frederique','Tempesti','F','1991-08-13'),(10249,'1954-06-10','Marie','Boreale','M','1991-12-08'),(10250,'1958-08-12','Serap','Etalle','M','1992-08-30'),(10251,'1957-04-25','Alair','Rosenbaum','M','1992-06-25'),(10252,'1961-01-30','Shirish','Wegerle','F','1990-11-08'),(10253,'1964-11-12','Zsolt','Salinas','F','1985-02-21'),(10254,'1959-12-07','Shen','Brattka','M','1990-06-14'),(10255,'1964-02-08','Roddy','Garnick','M','1993-05-12'),(10256,'1960-12-02','Irene','Radhakrishnan','M','1985-10-12'),(10257,'1957-09-12','Aiman','Riexinger','M','1986-08-05'),(10258,'1955-12-12','Basil','Ishibashi','F','1985-05-17'),(10259,'1964-11-24','Susanna','Vesel','M','1986-06-25'),(10260,'1961-07-14','Alper','Suomi','F','1991-04-13'),(10261,'1959-12-25','Mang','Erie','M','1993-10-20'),(10262,'1955-08-04','Mahendra','Maraist','F','1992-07-27'),(10263,'1961-02-08','Takahiro','Waterhouse','M','1994-02-05'),(10264,'1958-09-08','Nalini','Kawashimo','F','1997-07-16'),(10265,'1960-12-01','Ramalingam','Muniz','M','1989-07-13'),(10266,'1958-02-24','Sukumar','Rassart','M','1990-05-25'),(10267,'1956-01-16','Shaunak','Cullers','M','1996-12-11'),(10268,'1958-06-03','Nishit','Siochi','M','1986-12-17'),(10269,'1959-10-07','Taizo','Oxman','F','1988-07-24'),(10270,'1963-01-30','Bedir','Hartvigsen','F','1990-04-26'),(10271,'1962-04-24','Sham','Eastman','M','1986-05-23'),(10272,'1954-11-30','Yishai','Cannane','M','1988-05-23'),(10273,'1962-08-29','Baocai','Lieblein','M','1985-11-06'),(10274,'1957-08-23','Dmitri','Pearson','F','1991-04-21'),(10275,'1961-10-22','Marek','Luck','F','1987-09-08'),(10276,'1964-07-27','Xuejun','Hempstead','M','1985-07-21'),(10277,'1964-08-15','Isaac','Schwartzbauer','M','1985-06-16'),(10278,'1955-03-09','Lubomir','Nitsch','M','1991-05-17'),(10279,'1964-08-20','Barton','Jumpertz','F','1994-12-20'),(10280,'1964-10-29','Stabislas','Delgrange','M','1988-03-18'),(10281,'1953-05-13','Moty','Kusakari','M','1994-12-03'),(10282,'1953-11-27','Hercules','Benzmuller','M','1986-06-04'),(10283,'1953-07-08','Kauko','Birjandi','M','1988-05-25'),(10284,'1954-04-08','Masali','Murrill','F','1997-07-02'),(10285,'1956-09-21','Zhonghui','Preusig','F','1995-02-27'),(10286,'1952-05-14','Saddek','Gopalakrishnan','F','1988-03-21'),(10287,'1963-11-28','Marie','Pietracaprina','M','1992-12-28'),(10288,'1959-06-02','Selwyn','Perri','M','1994-08-29'),(10289,'1956-11-30','Shay','Poulakidas','M','1990-06-06'),(10290,'1957-05-29','Yongmao','Pleszkun','M','1991-09-18'),(10291,'1965-01-23','Dipayan','Seghrouchni','M','1986-09-29'),(10292,'1963-01-27','Yucel','Ghelli','F','1989-06-05'),(10293,'1956-11-24','Mihalis','Avouris','F','1992-12-12'),(10294,'1955-01-05','Rutger','Miara','M','1996-04-08'),(10295,'1953-01-13','Kristine','Velardi','M','1990-08-27'),(10296,'1964-05-13','Petter','Lorho','M','1989-09-16'),(10297,'1956-06-17','Narain','Oaver','F','1986-05-28'),(10298,'1954-07-06','Dietrich','DuCasse','F','1999-03-30'),(10299,'1960-06-21','Ipke','Stentiford','F','1990-01-10'),(10300,'1960-07-12','Tadahiko','Ulupinar','F','1991-05-17'),(10301,'1962-08-26','Lucien','Staudhammer','M','1988-05-23'),(10302,'1954-10-11','Faiza','Baer','F','1986-07-22'),(10303,'1961-09-11','Marlo','Zschoche','M','1990-02-05'),(10304,'1956-03-07','Bernt','Erie','M','1992-11-16'),(10305,'1952-06-30','Hirochika','Piancastelli','M','1988-10-31'),(10306,'1953-06-02','Heng','Kilgour','M','1993-09-06'),(10307,'1955-07-20','Nikolaos','Leaver','M','1991-04-10'),(10308,'1961-03-14','Dzung','Holburn','F','1992-12-29'),(10309,'1964-11-06','Prodip','Schusler','F','1985-06-20'),(10310,'1964-08-29','Aksel','Alencar','M','1990-10-24'),(10311,'1958-11-24','Hsiangchu','Molenkamp','F','1991-04-01'),(10312,'1957-06-18','Rasiah','Deyuan','F','1986-08-28'),(10313,'1962-05-30','Subbu','Riexinger','M','1994-10-10'),(10314,'1961-05-04','Christfried','Apsitis','M','1986-01-16'),(10315,'1956-08-03','Maris','Angelopoulos','M','1987-08-28'),(10316,'1958-06-20','Christoper','Schwaller','M','1987-09-04'),(10317,'1957-12-25','Arie','Birge','M','1986-12-10'),(10318,'1958-08-27','Mototsugu','Beilner','F','1985-06-29'),(10319,'1963-03-09','Mechthild','Miyakawa','M','1985-08-15'),(10320,'1956-06-22','Uinam','Stasinski','F','1988-11-03'),(10321,'1955-12-12','Guenter','Ravishankar','M','1991-09-24'),(10322,'1954-05-28','Isamu','Dahlbom','F','1990-01-29'),(10323,'1958-06-20','Kankanahalli','Hinsberger','M','1991-06-06'),(10324,'1957-12-29','Bernardo','Rouquie','F','1988-03-19'),(10325,'1953-01-12','Arunachalam','Badr','M','1990-09-20'),(10326,'1953-02-13','Masali','Czap','F','1985-05-13'),(10327,'1954-04-01','Roded','Facello','M','1987-09-18'),(10328,'1955-06-28','Serenella','Kawashima','M','1994-01-16'),(10329,'1958-04-28','Remko','Shigei','F','1986-01-20'),(10330,'1957-02-02','Kasturi','Bellmore','M','1985-06-12'),(10331,'1961-08-12','Arto','Binkley','M','1985-04-06'),(10332,'1961-11-05','Masanao','Bain','F','1988-06-08'),(10333,'1953-04-27','Snehasis','Dymetman','M','1993-01-16'),(10334,'1958-04-02','Falguni','Erie','M','1996-12-28'),(10335,'1963-03-13','Toshimori','Bahi','F','1992-04-06'),(10336,'1961-07-16','Goa','Rothe','F','1992-01-07'),(10337,'1957-12-10','Jeong','Sadowsky','M','1995-08-06'),(10338,'1961-02-12','Heon','Ranai','M','1988-09-01'),(10339,'1957-08-27','Teunis','Liedekerke','M','1989-11-30'),(10340,'1952-08-20','Djelloul','Laventhal','M','1987-06-05'),(10341,'1960-11-22','Wilmer','Greenaway','F','1987-04-29'),(10342,'1960-03-17','Stella','Hiroyama','F','1987-07-25'),(10343,'1954-11-01','Dinah','Syrzycki','M','1993-10-14'),(10344,'1957-07-24','Uwe','Garnier','F','1994-06-25'),(10345,'1960-12-13','Arra','Ratnakar','M','1993-11-08'),(10346,'1963-01-29','Aamod','Radwan','M','1987-01-27'),(10347,'1953-10-03','Pradeep','Kaminger','M','1985-12-12'),(10348,'1956-03-11','Mahendra','Picco','F','1995-10-22'),(10349,'1954-04-29','Oksana','Brodie','F','1991-09-28'),(10350,'1954-11-14','Kristen','Kavvadias','F','1990-08-19'),(10351,'1963-08-23','Tadahiko','Strehl','F','1985-03-07'),(10352,'1960-01-28','Erzsebet','Ohori','M','1996-01-21'),(10353,'1953-01-15','Phule','Hammerschmidt','M','1989-08-24'),(10354,'1961-04-21','Moto','Kusakari','M','1996-03-26'),(10355,'1952-12-10','Satyanarayana','Cochrane','M','1987-11-15'),(10356,'1952-08-12','Vasilis','Standera','M','1988-08-06'),(10357,'1964-01-10','Hausi','Sidhu','M','1994-04-04'),(10358,'1953-04-08','Qunsheng','Tagansky','M','1991-02-19'),(10359,'1960-04-18','Heekeun','Sambasivam','F','1991-05-09'),(10360,'1960-11-04','Irene','Munck','M','1996-09-04'),(10361,'1961-04-22','Seshu','Sidou','F','1986-10-23'),(10362,'1963-09-16','Shalesh','dAstous','M','1988-08-24'),(10363,'1953-11-28','Toshiki','Muniz','F','1985-09-11'),(10364,'1954-09-21','Nakhoon','Dengi','M','1985-11-14'),(10365,'1958-04-28','Rosine','Granlund','F','1987-06-02'),(10366,'1960-01-25','Morrie','Piazza','M','1994-04-11'),(10367,'1955-12-24','Hyuckchul','Gini','M','1991-06-24'),(10368,'1956-03-25','Hatim','Koshiba','M','1991-04-05'),(10369,'1957-01-08','Qunsheng','Toyoshima','M','1986-05-17'),(10370,'1957-08-03','Clyde','Fandrianto','M','1992-04-04'),(10371,'1959-02-10','Ioana','Kirkerud','M','1989-11-28'),(10372,'1952-04-08','Anneli','Frijda','F','1985-07-30'),(10373,'1959-01-08','Hongzue','Heijenga','M','1997-04-26'),(10374,'1955-10-08','Willard','Rosin','F','1993-12-08'),(10375,'1957-10-09','Dante','Kalafatis','F','1994-05-29'),(10376,'1959-02-12','Fai','Bale','M','1989-01-14'),(10377,'1954-08-19','Marl','Grospietsch','M','1990-05-07'),(10378,'1964-09-05','Takahira','Lichtner','M','1990-12-30'),(10379,'1957-03-02','Mikhail','Rosis','M','1996-07-15'),(10380,'1956-05-25','Alejandro','Kamble','F','1985-03-19'),(10381,'1963-03-04','Jiong','Parfitt','M','1991-12-04'),(10382,'1955-06-12','Shirish','Dredge','M','1990-07-04'),(10383,'1963-11-13','Leucio','Aumann','M','1991-06-19'),(10384,'1956-08-22','Feiyu','Luft','M','1986-01-16'),(10385,'1963-05-14','Khatoun','Imataki','M','1992-12-20'),(10386,'1956-11-09','Eishiro','Miyakawa','F','1985-08-02'),(10387,'1952-11-03','Parto','Wrigley','F','1987-02-19'),(10388,'1953-03-29','Hironoby','Kaiser','M','1996-03-24'),(10389,'1953-03-24','Make','Peir','M','1995-10-31'),(10390,'1960-03-07','Wanqing','Bratten','M','1989-05-17'),(10391,'1956-06-13','Hongzue','Akaboshi','M','1989-12-24'),(10392,'1962-02-17','Jiann','Hainaut','M','1992-03-01'),(10393,'1958-03-24','Yagil','DasSarma','M','1989-06-23'),(10394,'1957-05-22','Shawna','Meriste','M','1991-03-14'),(10395,'1952-02-17','Takahiro','Deverell','M','1987-02-04'),(10396,'1955-08-21','Sibyl','Rahier','M','1986-01-11'),(10397,'1955-11-11','Irena','Reutenauer','M','1993-05-21'),(10398,'1958-07-16','Shooichi','Escriba','F','1990-10-12'),(10399,'1957-06-13','Guenter','Marchegay','F','1985-05-07'),(10400,'1961-12-16','Ortrud','Nitto','M','1993-10-17'),(10401,'1962-04-25','Eckart','Barriga','M','1991-04-05'),(10402,'1953-07-23','Volkmar','Ebeling','M','1987-01-02'),(10403,'1956-04-01','Atreyi','Mungall','F','1991-09-13'),(10404,'1955-04-27','Prodip','Rosti','F','1988-08-28'),(10405,'1957-01-20','Hilary','Budinsky','F','1985-11-04'),(10406,'1956-09-21','Sigeru','Wynblatt','F','1987-03-11'),(10407,'1955-07-05','Ulf','Siepmann','M','1990-03-08'),(10408,'1964-03-17','Martijn','Kaiser','M','1998-10-07'),(10409,'1958-08-28','Mario','Straney','M','1997-07-09'),(10410,'1965-01-19','Takahito','Gecsei','F','1993-10-16'),(10411,'1956-07-10','Lidong','Klerer','F','1989-09-02'),(10412,'1958-02-26','Masoud','Fabrizio','F','1986-05-06'),(10413,'1952-05-05','Danel','Impagliazzo','F','1990-03-26'),(10414,'1954-04-09','Yinlin','Alpin','M','1990-05-30'),(10415,'1957-11-12','Mark','Coorg','M','1993-10-25'),(10416,'1956-05-26','Uli','Keustermans','M','1989-03-24'),(10417,'1964-02-02','Bingning','Bakhtari','M','1992-03-12'),(10418,'1952-06-29','Candida','Porotnikoff','F','1989-04-20'),(10419,'1964-06-22','Maria','Bauknecht','F','1992-04-25'),(10420,'1963-03-03','Kaijung','Riesenhuber','M','1988-01-17'),(10421,'1959-03-22','Divine','Marzano','M','1989-09-12'),(10422,'1954-06-02','Greger','Rubsam','F','1990-12-07'),(10423,'1956-01-10','Dante','Cronin','F','1998-09-06'),(10424,'1959-08-17','Babette','Straney','M','1989-08-07'),(10425,'1963-10-24','Sashi','Osgood','M','1991-10-29'),(10426,'1955-12-28','Arunas','Luce','F','1985-07-06'),(10427,'1958-08-13','Khosrow','Sudbeck','F','1991-11-01'),(10428,'1957-06-25','Cathie','Brlek','M','1992-06-04'),(10429,'1952-02-13','Martien','Improta','F','1986-03-09'),(10430,'1958-06-30','Ferdinand','Chenney','M','1990-11-16'),(10431,'1961-05-25','Patricio','Bugrara','M','1987-10-08'),(10432,'1953-11-06','Hisao','Tiemann','F','1985-04-30'),(10433,'1954-09-02','Reuven','Dengi','M','1989-02-14'),(10434,'1959-07-17','Dzung','Peltason','F','1995-06-27'),(10435,'1957-10-12','Marsha','Tagansky','M','1986-12-19'),(10436,'1963-06-17','Yahiko','Lammel','M','1988-01-30'),(10437,'1956-07-07','Narain','Reeker','F','1996-04-12'),(10438,'1961-12-25','Evgueni','Srimani','F','1990-01-19'),(10439,'1958-04-09','Jolita','Jarecki','M','1990-01-11'),(10440,'1959-04-10','Akeel','Narahara','F','1994-03-31'),(10441,'1958-04-27','Adel','Perfilyeva','M','1988-07-12'),(10442,'1955-09-09','Volkmar','Unno','M','1988-03-13'),(10443,'1952-12-03','Shichao','Litvinov','F','1989-08-01'),(10444,'1956-07-29','Kazuhira','Rosis','M','1993-03-31'),(10445,'1957-01-10','Junichi','Kavanagh','F','1987-11-04'),(10446,'1960-02-08','Ebru','Chepyzhov','F','1994-11-17'),(10447,'1962-10-24','Ronghao','Yavatkar','F','1988-12-29'),(10448,'1963-12-10','Phule','Oxenboll','F','1992-03-12'),(10449,'1959-09-28','Aleksandar','Sudkamp','M','1987-03-28'),(10450,'1959-11-05','Khun','Harbusch','M','1990-01-17'),(10451,'1952-10-06','Bodh','Ranta','F','1988-03-12'),(10452,'1956-11-24','Werner','Hasham','M','1988-09-05'),(10453,'1953-07-19','Tsvetan','Matzel','F','1985-04-02'),(10454,'1961-01-22','Wonhee','Badr','M','1987-04-10'),(10455,'1963-12-17','Sverrir','Streng','F','1989-02-14'),(10456,'1963-01-24','Stepehn','Hardjono','F','1995-12-25'),(10457,'1963-11-10','Oddvar','Schlenzig','M','1991-11-23'),(10458,'1961-01-06','Gina','Engelmann','F','1988-07-23'),(10459,'1959-09-30','Ennio','Trogemann','M','1997-06-28'),(10460,'1963-02-19','Shushma','VanScheik','M','1994-07-01'),(10461,'1956-10-26','Gal','Karcich','M','1987-08-03'),(10462,'1956-04-08','Sumali','Schlenzig','M','1996-03-25'),(10463,'1954-05-20','Ung','Zaiane','M','1987-12-25'),(10464,'1962-09-04','Mang','Maginnis','F','1989-10-09'),(10465,'1963-03-13','Claudi','Shackel','M','1987-09-01'),(10466,'1954-12-25','Jiakeng','Himler','M','1985-09-29'),(10467,'1956-01-30','Dipayan','Suomi','F','1988-07-14'),(10468,'1960-08-28','Yoshimitsu','Shobatake','M','1991-05-28'),(10469,'1964-12-22','Munehiko','Ananiadou','M','1985-06-05'),(10470,'1956-04-12','Peternela','Iwayama','M','1988-06-01'),(10471,'1963-11-30','Jouko','Yamaashi','M','1990-11-18'),(10472,'1959-08-20','Salvador','Lodder','M','1996-07-29'),(10473,'1963-10-13','Przemyslawa','Oskamp','M','1987-10-30'),(10474,'1962-02-24','Kenton','Garnham','F','1985-09-28'),(10475,'1956-12-19','Mario','Rodite','M','1987-01-19'),(10476,'1965-01-01','Kokou','Iisaka','M','1987-09-20'),(10477,'1952-12-07','Guoxiang','Trogemann','F','1989-03-04'),(10478,'1957-03-08','Maik','Ushiama','M','1992-06-09'),(10479,'1959-01-27','Duro','Coney','F','1987-02-28'),(10480,'1965-01-25','Make','Baba','F','1988-05-18'),(10481,'1959-10-18','Yongmao','Pintelas','F','1988-10-06'),(10482,'1961-07-17','Goa','Pleszkun','F','1991-07-20'),(10483,'1957-03-13','Zhiwei','Anick','M','1992-11-08'),(10484,'1961-08-30','Nirmal','Varley','F','1995-10-31'),(10485,'1961-09-20','Teruyuki','Sundgren','M','1985-10-27'),(10486,'1952-08-24','Amstein','Kossowski','F','1987-10-08'),(10487,'1956-08-23','Perla','Middleton','F','1992-08-14'),(10488,'1959-10-17','Mihalis','Heering','M','1994-06-09'),(10489,'1958-08-24','Elvia','Homond','M','1989-09-10'),(10490,'1961-09-28','Huiqun','Vuskovic','F','1992-10-07'),(10491,'1964-09-09','Garnik','Narahari','M','1990-01-17'),(10492,'1957-04-03','Lobel','Kumaresan','M','1988-04-24'),(10493,'1962-01-12','Maris','Haraldson','M','1992-05-16'),(10494,'1953-12-21','Yakkov','Servieres','F','1986-01-18'),(10495,'1961-05-24','Anyuan','Zhiwei','F','1985-09-29'),(10496,'1959-04-18','Gretta','Baig','M','1987-02-26'),(10497,'1953-06-09','Pramod','Rabehasaina','M','1992-01-22'),(10498,'1964-09-15','Valter','Cappelletti','F','1988-02-01'),(10499,'1953-10-04','Maik','Luft','F','1989-11-23'),(10500,'1957-04-29','Vojin','Narwekar','M','1996-12-16'),(10501,'1962-09-09','Susuma','Larfeldt','M','1987-04-20'),(10502,'1957-10-07','Yonghoan','Marshall','M','1993-03-04'),(10503,'1952-05-17','Dannz','Pell','M','1991-04-30'),(10504,'1953-04-07','Xiong','Varker','M','1988-12-03'),(10505,'1964-02-04','Isamu','Auria','M','1985-07-23'),(10506,'1958-10-06','Kazuhisa','Kroll','F','1996-12-01'),(10507,'1964-02-18','Kasidit','Belinskaya','M','1985-04-26'),(10508,'1962-06-02','Kotesh','Liedekerke','M','1991-05-01'),(10509,'1953-10-03','Abdelwaheb','Riesenhuber','F','1990-02-23'),(10510,'1960-02-13','Keung','Slobodova','F','1990-04-20'),(10511,'1963-06-18','Khoa','Marrevee','M','1992-01-27'),(10512,'1955-11-16','Udi','Gihr','M','1986-01-12'),(10513,'1959-07-07','Yuichiro','Schicker','F','1991-04-02'),(10514,'1963-04-03','Tomofumi','McClure','M','1992-04-29'),(10515,'1963-12-15','Raimond','Kirkerud','M','1989-10-28'),(10516,'1960-02-20','Xiadong','Luga','M','1985-10-19'),(10517,'1953-06-18','Tiina','Speek','M','1990-12-25'),(10518,'1963-05-23','Marin','Lanphier','M','1993-09-03'),(10519,'1955-12-28','Yonghoan','Alencar','F','1986-03-22'),(10520,'1964-03-06','Jenwei','Ecklund','M','1994-03-27'),(10521,'1957-07-31','Kwangsub','Setia','M','1989-05-11'),(10522,'1955-07-24','Marke','Cesareni','F','1986-12-12'),(10523,'1956-05-16','Malu','Skafidas','M','1988-12-28'),(10524,'1959-05-02','Shigehiro','Cincotta','F','1985-10-09'),(10525,'1963-03-29','Yuchang','Lunt','M','1990-07-08'),(10526,'1963-12-31','Kwangho','Theuretzbacher','F','1988-02-27'),(10527,'1964-09-15','Tetsushi','Barvinok','F','1996-01-25'),(10528,'1963-05-16','Koichi','Lakshmanan','F','1991-12-29'),(10529,'1952-11-21','Ymte','Yetto','M','1992-01-05'),(10530,'1956-07-19','Boriana','Coors','F','1987-09-23'),(10531,'1954-06-11','Oguz','Gimbel','F','1991-02-20'),(10532,'1959-08-31','Mary','Wossner','F','1986-05-18'),(10533,'1963-06-25','Mohamadou','Smailagic','F','1986-10-31'),(10534,'1964-10-23','Dinah','Bahl','M','1989-01-15'),(10535,'1961-05-19','Shalesh','Stroustrup','F','1985-02-21'),(10536,'1964-10-29','Yechiam','Sambasivam','F','1988-03-25'),(10537,'1962-06-29','Stella','Benzmuller','M','1996-09-25'),(10538,'1955-08-18','Przemyslawa','Falby','M','1987-07-23'),(10539,'1959-05-13','Yucel','Reinhard','M','1990-06-05'),(10540,'1961-02-24','Martins','Barriga','M','1994-05-03'),(10541,'1955-11-05','Godehard','Eiter','M','1986-02-28'),(10542,'1955-01-05','Yannis','Couchot','F','1989-03-28'),(10543,'1962-10-06','Lein','Lichtman','M','1998-10-16'),(10544,'1962-02-01','Ishfaq','Krzyzanowski','F','1995-04-29'),(10545,'1963-01-12','Hauke','dAstous','M','1990-06-30'),(10546,'1957-12-20','Nechama','Schapiro','M','1987-09-06'),(10547,'1963-05-12','Snehasis','Brobst','M','1988-02-14'),(10548,'1952-06-12','Ramalingam','Gunderson','M','1986-05-04'),(10549,'1957-03-20','Beshir','Kisuki','M','1995-10-26'),(10550,'1959-08-03','Manton','Leuchs','M','1985-02-03'),(10551,'1963-10-07','Jeong','Rijsenbrij','M','1988-08-06'),(10552,'1953-03-25','Kazuhito','Shiratori','M','1998-08-18'),(10553,'1964-02-08','Rajmohan','Wallrath','F','1985-10-27'),(10554,'1958-08-01','Dines','Gerlach','M','1990-11-28'),(10555,'1962-09-25','Vitaly','Picci','M','1989-11-06'),(10556,'1962-12-31','JoAnna','Taubman','F','1992-04-15'),(10557,'1957-08-23','Sashi','Karlin','M','1986-03-31'),(10558,'1964-10-08','Hisao','Famili','M','1990-04-06'),(10559,'1956-01-18','Arumugam','Comellas','F','1988-01-06'),(10560,'1960-05-01','Yinlin','Esteva','F','1988-09-28'),(10561,'1958-09-07','Serge','Joslin','F','1990-12-15'),(10562,'1963-04-17','Shuky','Pearson','M','1996-07-06'),(10563,'1956-10-27','Mohit','Spelt','M','1992-09-29'),(10564,'1955-04-14','Jianhao','Thisen','M','1986-05-08'),(10565,'1961-11-05','Yishay','Harnett','M','1992-01-09'),(10566,'1958-01-30','Jianhui','Zuberek','F','1988-03-19'),(10567,'1957-05-21','Dietrich','Journel','M','1992-10-18'),(10568,'1953-12-02','Gao','Poulakidas','F','1989-02-14'),(10569,'1962-12-03','Sreenivas','Bashian','M','1987-03-13'),(10570,'1958-10-30','Alassane','Morrin','M','1985-05-05'),(10571,'1963-12-10','Fun','Varman','M','1985-02-24'),(10572,'1960-10-10','Cordelia','Axelband','M','1988-02-16'),(10573,'1964-02-23','Tetsushi','Speel','F','1993-07-07'),(10574,'1960-11-11','Salvador','Olano','F','1990-02-16'),(10575,'1954-06-29','Theirry','Yeung','M','1988-10-04'),(10576,'1957-08-23','Xiaoqiu','Krychniak','M','1988-05-17'),(10577,'1957-09-20','Ennio','Schmiedel','M','1990-08-18'),(10578,'1958-07-18','Shigeaki','Shanbhogue','F','1989-11-24'),(10579,'1958-07-17','Aiman','Stentiford','M','1985-09-01'),(10580,'1956-05-28','Christoper','Rehfuss','M','1987-09-11'),(10581,'1956-11-20','Odinaldo','Prochazka','F','1988-02-09'),(10582,'1960-05-08','Shmuel','Juneja','M','1986-06-22'),(10583,'1964-03-03','Prasadram','Stille','F','1985-02-14'),(10584,'1961-07-12','Mana','Papastamatiou','M','1986-02-17'),(10585,'1963-11-10','Sajjad','Willoner','F','1986-01-05'),(10586,'1954-06-23','Kirk','Vuskovic','M','1992-02-04'),(10587,'1962-03-04','Behnaam','Srimani','F','1989-09-20'),(10588,'1956-07-30','Shigeo','Dulay','F','1987-01-28'),(10589,'1958-09-25','Subbu','Sanella','M','1994-01-26'),(10590,'1963-10-01','Yongqiao','Kalloufi','M','1986-04-09'),(10591,'1952-12-22','Hidde','Hettesheimer','F','1987-06-18'),(10592,'1964-08-01','Almudena','Alvarado','M','1990-06-05'),(10593,'1952-07-24','Falguni','Kenevan','M','1990-09-12'),(10594,'1960-10-22','Kiyokazu','Whitcomb','M','1988-04-02'),(10595,'1964-12-10','Giri','Undy','M','1989-11-24'),(10596,'1954-01-24','Sanjit','Coors','M','1995-04-01'),(10597,'1961-05-07','Lucien','Schaad','F','1990-04-01'),(10598,'1957-11-10','Margo','Gronowski','M','1989-03-31'),(10599,'1956-10-15','Seshu','Crelier','F','1989-03-17'),(10600,'1963-08-17','Emran','Rettelbach','F','1985-12-22'),(10601,'1959-10-23','Barton','Usdin','M','1994-08-29'),(10602,'1959-11-27','Douadi','Wossner','M','1988-03-12'),(10603,'1955-08-02','Wayne','Restivo','M','1995-07-20'),(10604,'1957-04-24','Susanna','Brizzi','M','1990-04-07'),(10605,'1956-05-21','Moti','Wixon','F','1985-04-29'),(10606,'1964-03-04','Toshiki','Marakhovsky','M','1987-05-02'),(10607,'1964-11-30','Rosalyn','Hambrick','F','1990-06-18'),(10608,'1955-07-11','Adhemar','Talmor','F','1986-05-25'),(10609,'1956-10-02','Janche','Zhang','M','1994-12-03'),(10610,'1955-06-24','Irena','Roccetti','F','1996-04-11'),(10611,'1964-05-11','Karsten','Blokdijk','M','1989-09-16'),(10612,'1959-01-01','Gil','Peroz','M','1991-09-02'),(10613,'1960-11-04','Inderjeet','Jansen','M','1990-09-01'),(10614,'1953-07-11','Gila','Ozeri','F','1990-03-03'),(10615,'1955-08-30','Keung','Delgrande','M','1996-03-10'),(10616,'1958-05-05','Tommaso','Marwedel','F','1988-03-10'),(10617,'1955-01-26','Hidekazu','Angel','F','1985-03-29'),(10618,'1963-08-03','Ranga','Yeung','F','1988-11-27'),(10619,'1961-04-27','Vivian','Kusakabe','M','1989-03-24'),(10620,'1959-11-23','Marit','Veeraraghavan','M','1990-11-10'),(10621,'1962-02-03','Hinrich','Siepmann','F','1991-06-23'),(10622,'1959-09-15','Turgut','Narlikar','M','1989-01-28'),(10623,'1953-07-11','Aleksander','Danlos','F','1987-03-07'),(10624,'1955-12-19','Sham','Gyorkos','F','1990-05-07'),(10625,'1958-02-08','Leszek','Petereit','F','1985-10-31'),(10626,'1957-06-26','Danil','Deverell','M','1996-12-03'),(10627,'1962-10-06','Shigeu','Itzfeldt','M','1991-11-07'),(10628,'1954-04-18','Krisda','Krogh','M','1985-09-11'),(10629,'1954-03-23','Lalit','Francisci','F','1986-01-30'),(10630,'1954-08-10','Bezalel','Katzenelson','F','1993-06-26'),(10631,'1955-05-17','Inderjeet','Chaudhuri','M','1988-02-16'),(10632,'1960-04-05','Yoshimitsu','Velardi','F','1985-07-25'),(10633,'1957-02-09','Sorina','Herber','M','1985-06-17'),(10634,'1954-08-01','Nahid','Chepyzhov','M','1990-11-11'),(10635,'1960-10-29','Toney','Angiulli','F','1991-09-22'),(10636,'1955-08-25','Saeko','Porotnikoff','F','1994-11-16'),(10637,'1954-07-11','Heejo','Frolund','M','1993-07-11'),(10638,'1960-11-04','Jenwei','Borovoy','M','1991-05-19'),(10639,'1953-04-18','Pramod','Erol','M','1992-10-25'),(10640,'1958-11-09','Anneke','Meszaros','M','1992-12-04'),(10641,'1953-12-24','Guozhong','Zucker','M','1993-03-21'),(10642,'1955-12-19','Hirochika','Narlikar','M','1986-08-06'),(10643,'1957-07-25','Slavian','Keirsey','M','1987-11-11'),(10644,'1962-02-22','Pranas','Benaini','M','1985-05-29'),(10645,'1957-03-01','Fumiyo','Esposito','M','1988-03-01'),(10646,'1957-11-24','Uri','Chorvat','M','1988-08-07'),(10647,'1960-01-12','Tesuro','Bahk','M','1995-09-28'),(10648,'1962-01-19','Marlo','Ratnaker','F','1988-02-16'),(10649,'1956-03-25','Vitali','Welham','M','1997-09-10'),(10650,'1959-04-09','Hongzhu','Chepyzhov','M','1992-10-04'),(10651,'1958-12-31','Zijian','Maginnis','M','1985-08-07'),(10652,'1960-04-25','Danai','Chachaty','M','1990-02-12'),(10653,'1953-06-16','Otmar','Feinberg','M','1987-04-30'),(10654,'1960-03-17','Nahla','Castellani','F','1987-05-28'),(10655,'1959-02-02','Remko','Dalton','F','1985-07-14'),(10656,'1962-06-18','Sanjay','Litzkow','M','1988-06-21'),(10657,'1958-03-09','Juichirou','Kitsuregawa','M','1989-12-31'),(10658,'1956-11-21','Junsik','Rijckaert','F','1994-04-29'),(10659,'1956-12-09','Dinah','Shackel','F','1991-09-20'),(10660,'1964-01-03','Jouko','Kolinko','M','1988-08-12'),(10661,'1956-04-07','Ottavia','Giarratana','F','1988-01-12'),(10662,'1959-10-17','Arto','Serra','F','1986-09-28'),(10663,'1965-01-09','Teunis','Noriega','M','1993-01-23'),(10664,'1962-06-02','Xumin','Peck','M','1989-12-24'),(10665,'1964-07-28','Qingxiang','Snyers','M','1988-01-23'),(10666,'1964-10-03','Zhonghua','Reeker','M','1989-05-20'),(10667,'1955-08-05','Makato','Cusworth','F','1990-06-25'),(10668,'1959-03-20','Maren','Granlund','F','1989-09-25'),(10669,'1956-05-30','Yurij','Iisaka','F','1995-06-09'),(10670,'1962-04-23','Shunichi','McAffer','M','1988-03-23'),(10671,'1953-06-12','Parviz','Rebaine','M','1987-01-08'),(10672,'1954-03-23','Bluma','Zeilberger','M','1986-07-13'),(10673,'1959-12-26','Hyuckchul','Casperson','M','1990-03-01'),(10674,'1961-03-03','Abdelaziz','Bisiani','M','1988-09-16'),(10675,'1960-03-26','Ymte','Waschkowski','F','1991-11-05'),(10676,'1953-08-26','Valeri','Danley','F','1986-03-20'),(10677,'1963-02-20','Alejandra','Perng','F','1996-10-07'),(10678,'1958-08-21','Chriss','Gide','F','1987-08-02'),(10679,'1956-09-25','Neven','Brender','M','1990-05-13'),(10680,'1962-10-11','Kish','Honglei','M','1986-06-20'),(10681,'1964-12-25','Florina','Garnier','M','1992-10-25'),(10682,'1956-07-04','Bedir','Haumacher','M','1990-11-09'),(10683,'1952-06-18','Guiseppe','Stranks','F','1993-09-07'),(10684,'1956-01-23','Aimee','Tokunaga','F','1999-10-28'),(10685,'1959-01-14','Zongyan','Cusworth','M','1990-04-24'),(10686,'1963-05-25','Avishai','Azadmanesh','F','1987-05-17'),(10687,'1961-07-25','Leon','Kaiser','F','1990-03-13'),(10688,'1964-02-28','Xiaopeng','Lanphier','F','1985-03-25'),(10689,'1958-09-13','Satoru','Otillio','M','1988-08-05'),(10690,'1962-09-06','Matt','Jumpertz','F','1989-08-22'),(10691,'1957-11-18','Denny','Setia','M','1989-09-17'),(10692,'1960-08-11','Larisa','Bage','M','1993-03-22'),(10693,'1953-12-14','Berhard','Daescu','F','1986-01-08'),(10694,'1955-12-16','Rildo','Straney','M','1988-01-26'),(10695,'1962-08-30','Zorica','Acton','M','1989-08-05'),(10696,'1952-03-23','Unal','Fendler','M','1991-09-09'),(10697,'1958-04-09','Bluma','Hiltgen','M','1998-03-04'),(10698,'1959-09-13','Barton','Engberts','M','1994-12-08'),(10699,'1964-02-02','Hatim','Deverell','M','1985-11-17'),(10700,'1962-11-30','Angel','Mondadori','M','1987-04-02'),(10701,'1961-09-30','Hyuncheol','Zolotykh','M','1986-10-27'),(10702,'1952-11-25','Bader','Szemeredi','M','1985-07-23'),(10703,'1958-06-13','Giri','Baumann','F','1996-05-12'),(10704,'1960-04-08','Yolla','Kropatsch','M','1988-07-08'),(10705,'1963-06-17','Hironobu','Wynblatt','M','1990-07-18'),(10706,'1959-10-11','Gonzalo','Eldridge','M','1989-12-17'),(10707,'1957-06-04','Moty','Trystram','M','1990-12-24'),(10708,'1959-07-02','Aral','Erman','M','1996-05-18'),(10709,'1961-01-06','Jiafu','Mateescu','F','1986-02-02'),(10710,'1962-12-25','Sorina','Kermarrec','M','1992-01-10'),(10711,'1963-06-20','Arvind','DuBourdieux','F','1991-06-21'),(10712,'1952-04-12','Uma','Koprowski','F','1994-08-18'),(10713,'1959-04-14','Jagoda','Naumovich','M','1986-04-26'),(10714,'1960-09-28','Aran','Sadowsky','M','1997-03-11'),(10715,'1959-11-21','Goa','Poehlman','M','1995-09-25'),(10716,'1963-10-08','Aiman','Constantine','M','1985-08-20'),(10717,'1956-01-27','Serap','Tasistro','M','1987-06-27'),(10718,'1955-12-19','Adib','Rullman','M','1988-07-21'),(10719,'1959-09-26','Guenter','Karunanithi','F','1995-09-05'),(10720,'1956-06-17','Odinaldo','Kruskal','M','1985-08-01'),(10721,'1964-07-12','Bernd','Redmiles','F','1995-03-17'),(10722,'1960-10-03','Dung','Gornas','M','1989-01-17'),(10723,'1964-01-14','Eckart','Harnett','F','1993-05-26'),(10724,'1957-10-06','Aluzio','Narlikar','M','1991-11-04'),(10725,'1958-10-22','Garnet','Isard','M','1990-09-08'),(10726,'1954-01-11','Zita','Minakawa','F','1985-09-01'),(10727,'1959-06-16','Saeed','Kitai','F','1991-01-08'),(10728,'1958-11-17','Ugo','Maliniak','F','1989-12-09'),(10729,'1961-05-24','Percy','Lorho','F','1986-04-20'),(10730,'1962-07-22','Mohit','Janetzko','M','1988-11-24'),(10731,'1952-11-17','Fumitaka','Peak','M','1987-02-20'),(10732,'1962-04-22','Morris','Andreotta','F','1991-03-10'),(10733,'1962-04-06','Sangeeta','Rodham','F','1996-02-20'),(10734,'1954-07-06','Sachar','Erdi','M','1985-04-03'),(10735,'1964-09-12','Morrie','Gewali','M','1985-10-29'),(10736,'1962-07-09','Gurbir','Hellwagner','F','1991-09-26'),(10737,'1960-10-10','Vincent','Schwartzbauer','M','1990-10-15'),(10738,'1963-10-08','Rosita','Oppitz','M','1988-01-17'),(10739,'1961-02-11','Gor','Iacovou','F','1985-03-12'),(10740,'1956-04-19','Suzette','Sadowski','M','1995-08-15'),(10741,'1954-01-02','Sven','Huttel','F','1989-01-06'),(10742,'1955-03-13','Shim','Wiegley','M','1991-01-03'),(10743,'1963-12-26','Kiyomitsu','Peltason','M','1985-06-10'),(10744,'1957-02-17','Yaghout','Syang','M','1985-12-29'),(10745,'1953-10-23','Poorav','Ranze','F','1987-05-26'),(10746,'1958-12-29','Kolar','Usery','F','1990-08-31'),(10747,'1955-02-02','Falguni','Khalid','M','1990-10-08'),(10748,'1964-04-12','Yuchang','Francisci','F','1990-08-14'),(10749,'1955-08-21','King','Brendel','M','1985-09-26'),(10750,'1953-06-14','Roddy','Demeyer','F','1991-08-04'),(10751,'1952-12-02','Jordanka','Ushiama','M','1987-04-15'),(10752,'1964-07-18','Byong','Conde','M','1993-05-28'),(10753,'1958-09-30','Pradeep','Harbusch','F','1985-05-17'),(10754,'1956-09-08','Chenyi','Feinberg','M','1988-01-11'),(10755,'1962-06-10','Odysseas','Ressouche','M','1988-06-16'),(10756,'1958-06-24','Paddy','Brizzi','M','1995-11-21'),(10757,'1961-01-11','Florina','Simkin','M','1986-01-06'),(10758,'1962-11-26','Fumiyo','Boyle','F','1988-02-06'),(10759,'1956-04-12','JiYoung','Chenney','M','1991-12-04'),(10760,'1963-05-27','Phillip','Dratva','M','1994-06-15'),(10761,'1959-04-10','Sumali','Liedekerke','M','1992-05-30'),(10762,'1965-01-19','Lech','Himler','M','1992-01-21'),(10763,'1962-04-15','Giap','Bolsens','M','1987-02-23'),(10764,'1953-01-12','Yunming','Beetstra','F','1989-11-27'),(10765,'1961-02-24','Goetz','Norsworthy','M','1994-05-07'),(10766,'1964-06-10','Nathalie','Standera','M','1996-08-05'),(10767,'1954-02-28','Monique','Doering','F','1987-06-17'),(10768,'1955-06-24','Ishfaq','Candan','M','1985-07-04'),(10769,'1962-11-02','Vishv','Bouloucos','M','1987-08-16'),(10770,'1956-06-18','Bedir','Perry','F','1987-12-25'),(10771,'1960-05-10','Guiseppe','Kleiser','F','1989-11-08'),(10772,'1956-01-21','Munehiro','Dayana','M','1987-06-29'),(10773,'1960-07-11','Avishai','Bahr','F','1985-12-01'),(10774,'1958-10-03','Jacqueline','Masand','M','1990-01-26'),(10775,'1956-03-12','Xiaoheng','Sluis','M','1988-12-09'),(10776,'1958-01-27','Mahmut','Skafidas','F','1986-03-16'),(10777,'1955-08-11','Mizuhito','Kemmerer','F','1988-07-05'),(10778,'1953-03-13','Selwyn','Merey','M','1986-07-04'),(10779,'1961-07-09','Mori','Yavatkar','F','1988-01-11'),(10780,'1955-09-12','Goncalo','Staudhammer','M','1989-11-06'),(10781,'1958-09-19','Patricio','Leuchs','M','1991-02-04'),(10782,'1952-09-18','Kish','Perna','F','1991-10-21'),(10783,'1963-11-13','Moty','Kenevan','M','1994-05-15'),(10784,'1957-01-27','Weijing','Bottner','F','1987-05-12'),(10785,'1963-02-09','Keiichiro','Marzano','M','1994-11-11'),(10786,'1964-05-19','Patricia','dAstous','M','1989-03-14'),(10787,'1958-07-10','Shiv','Neimat','F','1991-04-16'),(10788,'1963-06-28','Frazer','Ullian','M','1993-12-13'),(10789,'1964-05-19','Aruna','Journel','F','1987-02-02'),(10790,'1962-04-01','Yurij','Schonegge','M','1990-07-03'),(10791,'1954-05-27','Tadahiko','Sgarro','M','1988-07-30'),(10792,'1962-09-04','Chinya','Birdsall','M','1985-08-10'),(10793,'1960-08-27','Oksana','Roisin','F','1987-10-02'),(10794,'1962-06-26','Teunis','Berztiss','M','1992-03-29'),(10795,'1954-12-14','Supot','Naudin','M','1985-05-21'),(10796,'1959-06-30','Khoa','Rousseau','M','1990-11-08'),(10797,'1956-10-04','Goetz','Hiyoshi','F','1988-08-21'),(10798,'1961-07-18','Elliott','Bednarek','M','1992-02-09'),(10799,'1957-11-21','Gad','Griswold','F','1988-06-06'),(10800,'1961-12-15','Yuchang','Matzke','M','1993-05-20'),(10801,'1953-03-05','Uinam','Zschoche','M','1994-06-27'),(10802,'1960-10-27','Masato','Setlzner','M','1985-08-24'),(10803,'1952-09-15','Katsuyuki','Velasco','F','1988-04-20'),(10804,'1964-02-20','Terresa','Benantar','M','1996-04-18'),(10805,'1959-09-12','Kerhong','Bernick','F','1987-05-26'),(10806,'1958-10-17','Giap','Matzel','M','1993-04-25'),(10807,'1964-06-23','Munehiro','Zallocco','F','1986-10-23'),(10808,'1955-09-11','Chenxi','Leijenhorst','M','1987-03-07'),(10809,'1962-01-06','Shim','Feldhoffer','F','1987-03-04'),(10810,'1957-10-23','Lijie','Lunn','F','1994-09-07'),(10811,'1954-06-29','Ashish','Fortenbacher','M','1997-07-08'),(10812,'1957-09-14','Berthier','Menhoudj','F','1987-08-11'),(10813,'1954-07-04','Shalesh','Shumilov','M','1990-04-27'),(10814,'1952-09-17','Nidapan','Dymetman','F','1993-07-17'),(10815,'1960-11-12','Renny','Pramanik','M','1994-04-19'),(10816,'1958-02-24','Morris','Caine','F','1989-06-27'),(10817,'1958-10-02','Uri','Rullman','F','1990-12-26'),(10818,'1958-12-20','Huan','Monarch','M','1995-10-22'),(10819,'1957-02-19','Pascal','Sooriamurthi','M','1986-08-02'),(10820,'1956-11-12','Baocai','Pena','F','1986-02-23'),(10821,'1959-04-14','Irena','Schurmann','M','1987-03-12'),(10822,'1956-08-02','Masaru','Passino','F','1986-01-11'),(10823,'1956-06-13','Arfst','Mikschl','M','1995-01-02'),(10824,'1958-09-20','Kirk','Kalsbeek','M','1985-03-18'),(10825,'1958-03-27','Fan','Fairtlough','M','1985-12-30'),(10826,'1952-12-06','Arnd','Anandan','M','1993-01-22'),(10827,'1953-09-25','Willard','Danley','M','1996-11-07'),(10828,'1962-10-12','Godehard','Gammage','M','1986-02-14'),(10829,'1955-07-11','Alper','Narahara','F','1993-02-22'),(10830,'1954-08-17','Fen','Fiebach','M','1991-08-24'),(10831,'1953-10-11','Toong','Driscoll','M','1996-06-21'),(10832,'1964-08-29','Hidde','Bergere','F','1986-10-11'),(10833,'1953-04-12','Krisda','Gecseg','F','1989-02-08'),(10834,'1954-12-16','Huiqun','Rajcani','M','1990-11-24'),(10835,'1952-11-23','Tomoyuki','Kermarrec','M','1985-07-28'),(10836,'1953-07-15','Jianhua','Leivant','F','1985-07-26'),(10837,'1957-02-06','Chuanti','Karlin','M','1986-01-14'),(10838,'1957-10-19','Deniz','Ramras','M','1990-04-11'),(10839,'1964-04-02','Gurbir','Katiyar','M','1991-10-05'),(10840,'1961-04-26','Mohammad','Koshino','M','1993-06-04'),(10841,'1961-10-14','Pranav','Lieberherr','M','1990-04-21'),(10842,'1961-08-29','Berni','Sanella','F','1986-07-14'),(10843,'1961-09-05','Honesty','Smeets','M','1990-04-26'),(10844,'1954-02-03','Dipayan','Koprowski','M','1987-03-03'),(10845,'1960-12-24','Hidde','Tasistro','F','1988-06-30'),(10846,'1952-06-27','Tokuyasu','Serre','M','1994-01-26'),(10847,'1952-03-04','Theirry','Danley','M','1986-07-25'),(10848,'1954-07-16','Fen','Bratsberg','F','1985-04-20'),(10849,'1953-03-05','Makato','Mayerwieser','M','1995-06-25'),(10850,'1963-01-01','Florina','Schapire','F','1990-04-22'),(10851,'1959-11-15','Piyawadee','Copas','M','1994-11-21'),(10852,'1959-11-24','Hercules','Munck','F','1996-03-21'),(10853,'1964-03-22','Yoshinari','Kalloufi','F','1993-05-03'),(10854,'1954-08-11','Jagoda','Nannarelli','M','1998-07-13'),(10855,'1957-08-07','Kwangho','Reinhart','M','1991-08-05'),(10856,'1964-03-13','Sreenivas','Peck','F','1986-12-31'),(10857,'1957-06-11','Fusako','Stenning','F','1990-04-04'),(10858,'1952-10-01','Kenroku','Gonthier','M','1996-08-15'),(10859,'1961-10-16','King','Bernini','F','1993-01-03'),(10860,'1961-11-05','Gino','Werthner','M','1992-03-11'),(10861,'1962-02-27','Howell','Baek','M','1989-06-10'),(10862,'1956-01-19','Zhenbing','Kadhim','F','1985-07-23'),(10863,'1962-08-05','Byong','Bhattacharjee','M','1985-12-25'),(10864,'1958-01-07','Elliott','Spieker','F','1985-09-04'),(10865,'1961-03-16','Danco','Etalle','M','1991-04-19'),(10866,'1959-12-13','Fayez','Yeung','F','1990-12-27'),(10867,'1952-10-01','Billur','Gyorkos','M','1986-10-08'),(10868,'1959-05-11','Houman','Unno','F','1990-03-20'),(10869,'1962-10-09','Guangming','Jonsson','F','1996-03-15'),(10870,'1956-07-23','Shahid','Leppanen','F','1988-01-13'),(10871,'1952-10-24','Aram','Gilg','M','1989-02-15'),(10872,'1952-02-21','Karoline','Speel','F','1990-09-06'),(10873,'1952-07-09','Sukumar','Wegerle','M','1994-03-23'),(10874,'1958-01-18','Mahmut','Borstler','M','1986-04-22'),(10875,'1958-10-27','Filipp','Suri','F','1988-05-19'),(10876,'1955-08-05','Vincent','Papastamatiou','F','1995-01-29'),(10877,'1964-09-11','Subir','Biron','M','1986-06-06'),(10878,'1952-06-13','Lakshmi','Deville','M','1988-02-25'),(10879,'1953-08-18','Muzhong','Chleq','F','1985-08-15'),(10880,'1962-02-11','Weiye','Nitsche','M','1986-04-20'),(10881,'1959-06-13','Katsuo','Miake','M','1996-04-18'),(10882,'1953-11-01','Fun','Heuser','M','1994-11-29'),(10883,'1952-07-30','Shimshon','Champarnaud','M','1987-11-07'),(10884,'1958-03-07','Teunis','Kleiser','F','1993-04-15'),(10885,'1953-05-06','Rayond','Cronau','M','1991-08-19'),(10886,'1964-09-30','Sushant','Begiun','M','1995-03-26'),(10887,'1953-01-16','Lunjin','DeMori','M','1989-03-16'),(10888,'1959-03-15','Kwangho','Dredge','F','1987-06-28'),(10889,'1956-06-21','Cheong','Coors','F','1987-08-11'),(10890,'1963-04-13','Ramzi','Furudate','M','1988-04-21'),(10891,'1963-12-15','Susanne','Jiang','F','1990-12-07'),(10892,'1959-12-13','Kazunori','Vieth','M','1990-04-11'),(10893,'1960-01-30','Danil','Kropatsch','M','1989-08-23'),(10894,'1958-08-21','Suebskul','Srimani','F','1991-07-18'),(10895,'1952-03-21','Vishwani','Petersohn','M','1986-04-26'),(10896,'1964-04-12','Adil','Taubenfeld','M','1994-10-08'),(10897,'1958-05-27','Arno','Kumaresan','F','1986-04-09'),(10898,'1961-11-10','Munenori','Markovitch','F','1986-04-10'),(10899,'1962-05-11','Valery','Rousseau','F','1989-10-06'),(10900,'1955-07-18','Ferdinand','Prenel','F','1995-09-07'),(10901,'1959-06-12','Chrisa','Narahara','M','1992-10-30'),(10902,'1964-05-09','Inderjeet','Perly','M','1990-04-22'),(10903,'1958-06-04','Visit','Nyanchama','M','1989-02-14'),(10904,'1959-08-28','Debatosh','Colorni','F','1993-04-16'),(10905,'1961-04-30','Jianhui','Aloia','M','1985-02-28'),(10906,'1952-02-06','Munehiro','Carrere','F','1994-01-20'),(10907,'1963-09-26','JiYoung','Luks','M','1988-12-25'),(10908,'1961-11-27','Rajmohan','Koblick','M','1985-10-08'),(10909,'1954-11-11','Georgi','Atchley','M','1985-04-21'),(10910,'1958-11-11','Arco','Jervis','M','1989-07-13'),(10911,'1959-07-22','Shay','Casley','M','1988-06-25'),(10912,'1952-07-27','Oscal','Fasbender','M','1986-04-23'),(10913,'1952-09-03','Narain','Thummel','M','1992-06-25'),(10914,'1956-04-26','Mizuhito','Prochazka','M','1998-03-24'),(10915,'1961-03-11','Valery','Skafidas','M','1987-12-06'),(10916,'1962-01-03','Make','Spataro','M','1996-07-01'),(10917,'1956-05-10','Tesuya','Slaats','F','1987-12-03'),(10918,'1954-12-26','Susumu','Reghbati','M','1985-12-13'),(10919,'1961-09-04','Reinhard','Lindenbaum','M','1987-04-19'),(10920,'1955-04-08','Ronghao','Narahara','M','1991-07-09'),(10921,'1955-07-20','Mara','Bahi','F','1986-07-27'),(10922,'1953-10-27','Kyoichi','Wossner','M','1992-08-09'),(10923,'1957-04-29','Younwoo','Maquelin','M','1990-04-09'),(10924,'1954-04-27','Hironoby','Atchley','F','1988-08-14'),(10925,'1960-02-13','Heng','Waterhouse','F','1986-09-04'),(10926,'1954-10-13','Leni','Eppinger','F','1990-04-30'),(10927,'1953-03-13','Gal','Scallan','M','1985-10-26'),(10928,'1961-11-01','Udaiprakash','Schmezko','M','1991-04-07'),(10929,'1958-10-26','Sumali','Arlazarov','M','1991-04-15'),(10930,'1954-01-13','Arch','Minakawa','M','1990-08-09'),(10931,'1963-06-30','Abdulla','Beutelspacher','F','1992-06-14'),(10932,'1955-11-19','Avishai','Picci','F','1994-09-09'),(10933,'1965-01-24','Juyoung','Seghrouchni','F','1993-08-02'),(10934,'1960-05-21','Bartek','Strooper','F','1993-11-11'),(10935,'1961-08-09','Morris','Famili','M','1990-03-09'),(10936,'1953-04-08','Mountaz','Schicker','F','1987-10-27'),(10937,'1964-09-11','Anyuan','Nanard','M','1987-08-29'),(10938,'1958-05-11','Shaowei','Iisaku','F','1985-09-24'),(10939,'1964-07-13','Matk','Akazan','M','1990-11-01'),(10940,'1953-01-07','Aleksander','Fioravanti','F','1994-12-02'),(10941,'1960-08-26','Katsuyuki','Norsworthy','M','1993-08-22'),(10942,'1952-08-08','Toshimitsu','Larfeldt','F','1989-09-08'),(10943,'1955-11-19','Berna','Skafidas','M','1988-02-19'),(10944,'1952-05-25','Remko','Zyda','M','1991-05-24'),(10945,'1959-09-25','Kazuhiro','Kushnir','F','1990-07-04'),(10946,'1956-09-08','Shaz','Kabayashi','M','1996-02-04'),(10947,'1954-09-29','Gor','Usery','F','1995-11-16'),(10948,'1952-12-23','Shigehito','Brodie','M','1996-09-30'),(10949,'1953-08-14','Shigeichiro','Wroclawski','F','1990-03-13'),(10950,'1958-12-07','Sushant','Staylopatis','M','1996-06-08'),(10951,'1962-01-20','Marco','Iisaku','M','1989-07-06'),(10952,'1958-08-26','Inderjeet','Bharadwaj','M','1986-07-22'),(10953,'1956-06-23','Jahangir','Laventhal','F','1987-02-12'),(10954,'1964-11-16','Ranga','Burnard','F','1990-08-07'),(10955,'1959-02-24','Urs','Danley','F','1986-09-27'),(10956,'1955-02-02','Arno','Picel','M','1992-06-29'),(10957,'1961-06-06','Duke','Schnabel','M','1988-01-23'),(10958,'1958-11-07','Huican','Katalagarianos','M','1988-11-27'),(10959,'1956-06-19','Kerryn','Vigier','M','1994-03-01'),(10960,'1959-10-24','Billur','Braunschweig','M','1988-03-14'),(10961,'1957-03-28','Weiwu','Choobineh','M','1986-05-14'),(10962,'1956-08-23','Naraig','Kugler','F','1986-12-16'),(10963,'1957-04-15','Hatsukazu','Swist','M','1988-01-14'),(10964,'1962-04-02','Takushi','Bolsens','F','1990-10-11'),(10965,'1955-07-10','Eckart','Braunschweig','M','1986-07-29'),(10966,'1962-07-04','Danel','Pardalos','M','1989-11-07'),(10967,'1962-10-01','Eran','Adachi','M','1993-08-01'),(10968,'1961-03-19','Lakshmi','Kolinko','M','1985-08-11'),(10969,'1954-09-05','Premal','Noriega','M','1988-08-22'),(10970,'1962-08-24','Gen','Tiemann','F','1994-09-16'),(10971,'1955-02-08','Isamu','Vadhan','M','1991-07-30'),(10972,'1961-10-05','Fumiko','Asser','F','1987-06-06'),(10973,'1961-10-02','Valdiodio','Raczkowsky','M','1989-03-05'),(10974,'1952-03-07','Muneo','Papsdorf','M','1985-11-25'),(10975,'1962-07-27','Peternela','Birnbaum','F','1986-10-31'),(10976,'1963-01-27','Hitomi','Valette','F','1992-12-06'),(10977,'1957-03-19','Toong','Murrill','M','1987-08-10'),(10978,'1962-09-24','Huiqun','Bellone','M','1985-05-18'),(10979,'1959-09-11','Elrique','Raney','F','1986-01-27'),(10980,'1963-11-10','Filipp','Munawer','M','1989-01-04'),(10981,'1956-07-22','Sugwoo','Dulin','F','1989-01-03'),(10982,'1964-02-27','Yishay','Decleir','M','1989-11-11'),(10983,'1961-08-09','Somnath','Parascandalo','F','1988-02-22'),(10984,'1962-11-10','Pranjal','Billawala','F','1988-07-09'),(10985,'1952-05-31','Chiradeep','Furedi','F','1990-12-10'),(10986,'1954-08-11','Masako','Schiper','M','1985-10-11'),(10987,'1952-11-26','Flemming','Baezner','M','1995-12-19'),(10988,'1955-06-24','Chinya','Deyuan','M','1985-06-19'),(10989,'1954-09-08','Sumali','Candan','F','1985-07-20'),(10990,'1954-10-22','Shin','Foote','M','1988-07-06'),(10991,'1957-05-22','Munehiro','Aingworth','M','1993-05-21'),(10992,'1958-11-26','Zhensheng','Juneja','M','1988-08-01'),(10993,'1958-11-17','Arve','Erde','F','1992-05-29'),(10994,'1961-06-17','Divine','Aingworth','M','1987-06-29'),(10995,'1963-02-26','Chenye','Hertweck','F','1997-07-19'),(10996,'1955-02-01','Matk','Rahimi','F','1990-02-07'),(10997,'1959-08-30','Alselm','Parascandalo','F','1994-05-06'),(10998,'1956-02-17','Marlo','Kandlur','M','1992-06-28'),(10999,'1961-12-04','Insup','Benveniste','F','1996-03-05'),(11000,'1960-09-12','Alain','Bonifati','M','1988-08-20'); /*!40000 ALTER TABLE `employees` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `salaries` -- DROP TABLE IF EXISTS `salaries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `salaries` ( `emp_no` int(11) NOT NULL, `salary` int(11) NOT NULL, `from_date` date NOT NULL, `to_date` date NOT NULL, PRIMARY KEY (`emp_no`,`from_date`), KEY `emp_no` (`emp_no`), CONSTRAINT `salaries_ibfk_1` FOREIGN KEY (`emp_no`) REFERENCES `employees` (`emp_no`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `salaries` -- LOCK TABLES `salaries` WRITE; /*!40000 ALTER TABLE `salaries` DISABLE KEYS */; INSERT INTO `salaries` VALUES (10001,88958,'2002-06-22','9999-01-01'),(10002,72527,'2001-08-02','9999-01-01'),(10003,43311,'2001-12-01','9999-01-01'),(10004,74057,'2001-11-27','9999-01-01'),(10005,94692,'2001-09-09','9999-01-01'),(10006,59755,'2001-08-02','9999-01-01'),(10007,88070,'2002-02-07','9999-01-01'),(10009,94409,'2002-02-14','9999-01-01'),(10010,80324,'2001-11-23','9999-01-01'),(10012,54423,'2001-12-16','9999-01-01'),(10013,68901,'2001-10-16','9999-01-01'),(10014,60598,'2001-12-27','9999-01-01'),(10016,77935,'2002-02-10','9999-01-01'),(10017,99651,'2002-08-01','9999-01-01'),(10018,84672,'2002-03-30','9999-01-01'),(10019,50032,'2002-04-29','9999-01-01'),(10020,47017,'2001-12-29','9999-01-01'),(10022,41348,'2001-09-02','9999-01-01'),(10023,50113,'2001-09-26','9999-01-01'),(10024,96646,'2002-06-13','9999-01-01'),(10026,66313,'2002-03-18','9999-01-01'),(10027,46145,'2002-03-31','9999-01-01'),(10029,77777,'2001-09-15','9999-01-01'),(10030,88806,'2002-02-15','9999-01-01'),(10031,56689,'2001-08-29','9999-01-01'),(10032,69539,'2002-06-17','9999-01-01'),(10035,68755,'2001-09-02','9999-01-01'),(10036,63053,'2002-04-26','9999-01-01'),(10037,60574,'2001-12-02','9999-01-01'),(10038,64254,'2001-09-17','9999-01-01'),(10039,63918,'2002-01-15','9999-01-01'),(10040,72668,'2002-02-12','9999-01-01'),(10041,81705,'2001-11-09','9999-01-01'),(10043,77659,'2001-10-17','9999-01-01'),(10044,58345,'2002-05-19','9999-01-01'),(10045,47581,'2001-11-15','9999-01-01'),(10046,62218,'2002-06-18','9999-01-01'),(10047,81037,'2002-03-28','9999-01-01'),(10049,51326,'2002-05-02','9999-01-01'),(10050,97830,'2001-12-22','9999-01-01'),(10051,64905,'2001-10-13','9999-01-01'),(10052,67156,'2002-01-30','9999-01-01'),(10053,78478,'2001-11-11','9999-01-01'),(10054,53906,'2002-07-27','9999-01-01'),(10056,74722,'2002-01-29','9999-01-01'),(10057,68061,'2002-01-12','9999-01-01'),(10058,72542,'2002-04-22','9999-01-01'),(10059,94161,'2002-06-23','9999-01-01'),(10060,93188,'2002-05-25','9999-01-01'),(10061,97338,'2001-11-29','9999-01-01'),(10062,68559,'2001-08-27','9999-01-01'),(10063,74841,'2002-04-04','9999-01-01'),(10065,47437,'2002-05-23','9999-01-01'),(10066,103672,'2002-02-22','9999-01-01'),(10067,83254,'2002-02-28','9999-01-01'),(10068,113229,'2001-08-03','9999-01-01'),(10069,86641,'2002-06-12','9999-01-01'),(10070,96322,'2001-10-10','9999-01-01'),(10071,53315,'2001-08-03','9999-01-01'),(10072,64512,'2002-05-18','9999-01-01'),(10074,80820,'2001-08-10','9999-01-01'),(10076,62921,'2002-07-14','9999-01-01'),(10077,54699,'2001-12-21','9999-01-01'),(10078,54652,'2001-09-27','9999-01-01'),(10079,67231,'2001-12-11','9999-01-01'),(10080,72729,'2001-09-26','9999-01-01'),(10081,79351,'2001-10-26','9999-01-01'),(10083,77186,'2002-03-27','9999-01-01'),(10084,93621,'2001-12-13','9999-01-01'),(10085,60910,'2002-04-06','9999-01-01'),(10086,96333,'2002-02-16','9999-01-01'),(10088,98003,'2001-08-30','9999-01-01'),(10089,77955,'2002-01-07','9999-01-01'),(10091,60014,'2001-11-16','9999-01-01'),(10092,66803,'2002-04-21','9999-01-01'),(10093,82715,'2002-06-07','9999-01-01'),(10095,80955,'2002-03-08','9999-01-01'),(10096,68612,'2002-01-22','9999-01-01'),(10097,70161,'2001-09-12','9999-01-01'),(10099,98538,'2001-10-15','9999-01-01'),(10100,74957,'2001-09-17','9999-01-01'),(10102,61059,'2001-12-31','9999-01-01'),(10103,80061,'2002-01-11','9999-01-01'),(10104,81788,'2002-04-12','9999-01-01'),(10106,82836,'2001-10-24','9999-01-01'),(10107,101676,'2002-03-29','9999-01-01'),(10109,52721,'2002-06-14','9999-01-01'),(10110,92842,'2001-08-18','9999-01-01'),(10111,56641,'2001-12-16','9999-01-01'),(10112,61070,'2002-04-30','9999-01-01'),(10113,75209,'2001-09-13','9999-01-01'),(10114,64083,'2002-07-15','9999-01-01'),(10117,75936,'2002-03-17','9999-01-01'),(10118,55284,'2002-01-30','9999-01-01'),(10120,59279,'2002-07-05','9999-01-01'),(10121,66834,'2002-04-30','9999-01-01'),(10122,48464,'2001-08-05','9999-01-01'),(10123,92601,'2002-01-13','9999-01-01'),(10124,58460,'2001-09-02','9999-01-01'),(10126,77310,'2001-09-04','9999-01-01'),(10127,63100,'2002-05-14','9999-01-01'),(10128,67619,'2002-06-03','9999-01-01'),(10129,56667,'2002-01-14','9999-01-01'),(10130,73881,'2002-06-18','9999-01-01'),(10132,69587,'2002-06-17','9999-01-01'),(10133,83921,'2001-12-11','9999-01-01'),(10134,69194,'2001-12-08','9999-01-01'),(10135,61301,'2002-01-01','9999-01-01'),(10137,67794,'2002-02-14','9999-01-01'),(10138,74875,'2002-03-01','9999-01-01'),(10139,50398,'2002-03-14','9999-01-01'),(10140,76604,'2002-03-11','9999-01-01'),(10141,70861,'2002-07-22','9999-01-01'),(10142,57530,'2001-10-26','9999-01-01'),(10143,70351,'2001-09-27','9999-01-01'),(10145,47519,'2001-11-02','9999-01-01'),(10147,73690,'2001-12-14','9999-01-01'),(10148,70400,'2002-07-14','9999-01-01'),(10150,100182,'2001-11-12','9999-01-01'),(10151,109501,'2001-12-10','9999-01-01'),(10153,61594,'2002-01-07','9999-01-01'),(10154,50766,'2001-10-22','9999-01-01'),(10155,66419,'2002-01-02','9999-01-01'),(10156,71859,'2002-05-12','9999-01-01'),(10157,56615,'2001-12-09','9999-01-01'),(10158,68624,'2002-05-31','9999-01-01'),(10159,56651,'2002-06-11','9999-01-01'),(10160,102165,'2001-12-04','9999-01-01'),(10162,47464,'2002-05-26','9999-01-01'),(10163,67661,'2002-01-30','9999-01-01'),(10164,72497,'2001-10-16','9999-01-01'),(10165,79095,'2002-05-14','9999-01-01'),(10166,65632,'2001-09-01','9999-01-01'),(10167,75147,'2002-04-02','9999-01-01'),(10168,76070,'2001-12-02','9999-01-01'),(10169,78611,'2002-06-27','9999-01-01'),(10171,57160,'2001-08-04','9999-01-01'),(10172,42646,'2002-02-03','9999-01-01'),(10173,109964,'2002-03-19','9999-01-01'),(10174,92117,'2002-05-28','9999-01-01'),(10176,71610,'2001-12-20','9999-01-01'),(10178,61185,'2002-03-19','9999-01-01'),(10179,43325,'2002-01-24','9999-01-01'),(10180,65015,'2002-06-29','9999-01-01'),(10181,78684,'2002-06-19','9999-01-01'),(10182,67049,'2001-08-30','9999-01-01'),(10183,51873,'2001-08-10','9999-01-01'),(10184,57547,'2001-12-25','9999-01-01'),(10185,104747,'2002-02-25','9999-01-01'),(10187,90645,'2002-05-29','9999-01-01'),(10188,83455,'2001-08-23','9999-01-01'),(10190,65625,'2002-06-19','9999-01-01'),(10191,59946,'2002-04-05','9999-01-01'),(10192,75141,'2002-06-10','9999-01-01'),(10193,57200,'2001-09-20','9999-01-01'),(10194,79131,'2002-02-13','9999-01-01'),(10196,92885,'2002-01-30','9999-01-01'),(10197,61807,'2002-06-26','9999-01-01'),(10198,69268,'2001-08-27','9999-01-01'),(10199,46867,'2002-02-06','9999-01-01'),(10200,57205,'2002-02-15','9999-01-01'),(10201,57425,'2001-11-08','9999-01-01'),(10202,69727,'2001-10-03','9999-01-01'),(10203,62458,'2002-04-02','9999-01-01'),(10205,55157,'2001-08-21','9999-01-01'),(10206,71052,'2002-04-16','9999-01-01'),(10207,69959,'2001-10-09','9999-01-01'),(10209,70667,'2001-11-20','9999-01-01'),(10210,42619,'2002-02-22','9999-01-01'),(10211,64400,'2001-11-19','9999-01-01'),(10212,78952,'2002-01-26','9999-01-01'),(10213,50786,'2001-10-04','9999-01-01'),(10214,74763,'2002-02-25','9999-01-01'),(10215,56694,'2001-11-20','9999-01-01'),(10216,65714,'2001-10-26','9999-01-01'),(10218,54070,'2002-01-30','9999-01-01'),(10219,61354,'2002-03-29','9999-01-01'),(10220,69036,'2001-09-15','9999-01-01'),(10222,71058,'2002-06-04','9999-01-01'),(10223,75358,'2002-03-31','9999-01-01'),(10224,65121,'2002-01-05','9999-01-01'),(10225,49969,'2001-12-12','9999-01-01'),(10226,89557,'2002-01-27','9999-01-01'),(10227,74739,'2001-10-30','9999-01-01'),(10228,96062,'2001-12-20','9999-01-01'),(10230,61667,'2002-06-15','9999-01-01'),(10231,43682,'2001-09-08','9999-01-01'),(10232,104656,'2002-06-02','9999-01-01'),(10233,49236,'2002-04-27','9999-01-01'),(10235,57532,'2002-04-03','9999-01-01'),(10236,92118,'2001-08-29','9999-01-01'),(10238,67630,'2002-03-29','9999-01-01'),(10239,82905,'2002-05-03','9999-01-01'),(10240,77906,'2001-10-05','9999-01-01'),(10241,65069,'2002-06-09','9999-01-01'),(10242,69619,'2002-01-14','9999-01-01'),(10243,90542,'2002-06-03','9999-01-01'),(10244,63041,'2001-09-15','9999-01-01'),(10246,67906,'2002-01-29','9999-01-01'),(10247,56935,'2001-08-12','9999-01-01'),(10248,77848,'2001-08-10','9999-01-01'),(10249,85676,'2001-12-05','9999-01-01'),(10250,65617,'2001-08-28','9999-01-01'),(10251,88948,'2002-06-23','9999-01-01'),(10252,55435,'2001-11-05','9999-01-01'),(10254,85691,'2002-06-11','9999-01-01'),(10256,109040,'2001-10-08','9999-01-01'),(10257,52114,'2002-07-15','9999-01-01'),(10258,110212,'2002-05-13','9999-01-01'),(10260,76081,'2002-01-30','9999-01-01'),(10262,77648,'2002-01-20','9999-01-01'),(10263,73625,'2001-12-20','9999-01-01'),(10264,66168,'2002-07-15','9999-01-01'),(10265,52083,'2001-09-11','9999-01-01'),(10266,81099,'2002-05-22','9999-01-01'),(10267,43842,'2002-04-25','9999-01-01'),(10269,61759,'2002-07-21','9999-01-01'),(10270,57784,'2001-09-23','9999-01-01'),(10271,91010,'2002-05-19','9999-01-01'),(10272,67888,'2001-10-22','9999-01-01'),(10273,93350,'2001-11-02','9999-01-01'),(10274,97449,'2002-02-01','9999-01-01'),(10275,68583,'2001-09-04','9999-01-01'),(10277,91882,'2002-06-12','9999-01-01'),(10279,55385,'2002-04-24','9999-01-01'),(10280,80485,'2002-01-25','9999-01-01'),(10281,63400,'2001-12-01','9999-01-01'),(10282,47506,'2002-05-01','9999-01-01'),(10283,61686,'2002-05-22','9999-01-01'),(10284,46017,'2002-07-05','9999-01-01'),(10285,76312,'2002-05-23','9999-01-01'),(10287,79615,'2001-12-26','9999-01-01'),(10288,96620,'2001-08-27','9999-01-01'),(10290,62455,'2001-09-15','9999-01-01'),(10291,86090,'2002-03-26','9999-01-01'),(10292,106632,'2002-06-02','9999-01-01'),(10293,64424,'2001-12-10','9999-01-01'),(10295,52162,'2002-06-17','9999-01-01'),(10296,106087,'2001-09-13','9999-01-01'),(10297,100018,'2002-05-24','9999-01-01'),(10298,43923,'2002-04-26','9999-01-01'),(10299,98711,'2002-01-07','9999-01-01'),(10300,101239,'2002-05-14','9999-01-01'),(10301,72396,'2002-05-20','9999-01-01'),(10306,58492,'2001-09-04','9999-01-01'),(10307,43283,'2001-10-15','9999-01-01'),(10308,85789,'2001-12-27','9999-01-01'),(10309,63757,'2002-05-01','9999-01-01'),(10311,48285,'2001-11-03','9999-01-01'),(10312,91499,'2001-08-24','9999-01-01'),(10313,77287,'2001-10-08','9999-01-01'),(10314,87352,'2002-01-12','9999-01-01'),(10315,87577,'2001-08-24','9999-01-01'),(10317,56014,'2002-01-23','9999-01-01'),(10318,99371,'2002-03-19','9999-01-01'),(10319,106263,'2002-06-16','9999-01-01'),(10322,72886,'2002-01-26','9999-01-01'),(10323,72048,'2002-06-03','9999-01-01'),(10324,76568,'2002-07-18','9999-01-01'),(10325,63081,'2001-09-17','9999-01-01'),(10326,52152,'2001-09-01','9999-01-01'),(10328,51715,'2002-07-16','9999-01-01'),(10329,89171,'2002-01-16','9999-01-01'),(10330,97400,'2001-10-06','9999-01-01'),(10331,86063,'2001-10-25','9999-01-01'),(10333,65713,'2002-01-14','9999-01-01'),(10334,43932,'2002-02-14','9999-01-01'),(10335,72639,'2002-04-03','9999-01-01'),(10336,77738,'2001-09-26','9999-01-01'),(10337,67239,'2002-04-24','9999-01-01'),(10338,46164,'2001-12-28','9999-01-01'),(10339,58472,'2001-11-27','9999-01-01'),(10340,93168,'2002-03-27','9999-01-01'),(10342,74705,'2002-07-21','9999-01-01'),(10343,47242,'2001-10-02','9999-01-01'),(10344,59655,'2002-04-18','9999-01-01'),(10345,87195,'2001-11-06','9999-01-01'),(10347,53581,'2002-02-19','9999-01-01'),(10348,58587,'2001-10-20','9999-01-01'),(10349,66474,'2001-09-25','9999-01-01'),(10351,49802,'2002-04-29','9999-01-01'),(10352,44683,'2001-12-15','9999-01-01'),(10353,87254,'2001-08-21','9999-01-01'),(10355,78589,'2002-01-24','9999-01-01'),(10356,60344,'2002-06-24','9999-01-01'),(10357,56260,'2002-04-01','9999-01-01'),(10358,90950,'2002-02-16','9999-01-01'),(10359,47188,'2002-07-19','9999-01-01'),(10360,43073,'2001-09-03','9999-01-01'),(10361,81801,'2001-10-19','9999-01-01'),(10364,94739,'2001-11-10','9999-01-01'),(10366,60214,'2001-08-14','9999-01-01'),(10367,83569,'2002-06-21','9999-01-01'),(10368,56600,'2002-05-15','9999-01-01'),(10369,54438,'2001-09-03','9999-01-01'),(10370,46583,'2002-04-16','9999-01-01'),(10371,85789,'2001-11-25','9999-01-01'),(10372,85455,'2002-07-26','9999-01-01'),(10373,58845,'2002-04-25','9999-01-01'),(10375,107218,'2002-05-27','9999-01-01'),(10376,65398,'2001-12-05','9999-01-01'),(10377,50359,'2001-08-23','9999-01-01'),(10378,92842,'2001-08-29','9999-01-01'),(10379,46932,'2002-07-14','9999-01-01'),(10380,104943,'2002-03-15','9999-01-01'),(10381,90924,'2001-12-01','9999-01-01'),(10383,77463,'2002-06-16','9999-01-01'),(10384,78680,'2002-01-12','9999-01-01'),(10386,88725,'2002-07-29','9999-01-01'),(10387,76026,'2002-01-05','9999-01-01'),(10388,68411,'2002-05-27','9999-01-01'),(10389,60361,'2002-05-12','9999-01-01'),(10390,57015,'2002-05-14','9999-01-01'),(10391,76997,'2002-01-26','9999-01-01'),(10392,73126,'2002-02-27','9999-01-01'),(10393,64241,'2002-06-20','9999-01-01'),(10396,74120,'2002-01-07','9999-01-01'),(10397,65498,'2002-05-19','9999-01-01'),(10398,72326,'2001-10-09','9999-01-01'),(10399,98993,'2002-01-25','9999-01-01'),(10400,85083,'2001-10-15','9999-01-01'),(10402,67041,'2001-12-29','9999-01-01'),(10404,87187,'2001-08-25','9999-01-01'),(10406,50765,'2002-01-24','9999-01-01'),(10407,68990,'2001-10-28','9999-01-01'),(10408,78692,'2001-10-06','9999-01-01'),(10409,68422,'2001-09-25','9999-01-01'),(10411,94363,'2001-08-30','9999-01-01'),(10412,84971,'2001-11-18','9999-01-01'),(10413,63305,'2001-12-24','9999-01-01'),(10415,68327,'2001-10-23','9999-01-01'),(10416,99825,'2002-03-21','9999-01-01'),(10417,81805,'2002-06-26','9999-01-01'),(10418,61923,'2001-10-03','9999-01-01'),(10421,62175,'2002-04-03','9999-01-01'),(10422,61875,'2002-01-01','9999-01-01'),(10423,59251,'2002-05-26','9999-01-01'),(10424,74457,'2001-08-04','9999-01-01'),(10426,98636,'2002-07-02','9999-01-01'),(10427,90768,'2001-10-01','9999-01-01'),(10428,59728,'2002-06-02','9999-01-01'),(10429,70554,'2001-09-20','9999-01-01'),(10430,48092,'2002-07-04','9999-01-01'),(10431,86445,'2001-10-04','9999-01-01'),(10432,63568,'2001-08-10','9999-01-01'),(10433,63139,'2001-11-24','9999-01-01'),(10435,54288,'2002-06-07','9999-01-01'),(10436,73708,'2002-01-26','9999-01-01'),(10437,71490,'2002-04-11','9999-01-01'),(10438,72839,'2002-01-16','9999-01-01'),(10439,86481,'2002-04-29','9999-01-01'),(10440,62469,'2002-04-03','9999-01-01'),(10441,71913,'2002-07-09','9999-01-01'),(10444,103063,'2001-10-21','9999-01-01'),(10445,78518,'2001-10-31','9999-01-01'),(10446,60783,'2001-12-24','9999-01-01'),(10448,68210,'2002-03-10','9999-01-01'),(10449,87735,'2002-03-24','9999-01-01'),(10450,50217,'2001-08-23','9999-01-01'),(10451,71084,'2002-03-09','9999-01-01'),(10453,75440,'2002-03-29','9999-01-01'),(10454,110048,'2002-04-13','9999-01-01'),(10455,116386,'2002-02-17','9999-01-01'),(10456,60887,'2002-01-05','9999-01-01'),(10457,68411,'2001-10-22','9999-01-01'),(10458,100685,'2002-07-03','9999-01-01'),(10459,56269,'2002-06-27','9999-01-01'),(10461,103382,'2002-07-30','9999-01-01'),(10462,50923,'2002-03-24','9999-01-01'),(10463,88502,'2002-02-15','9999-01-01'),(10464,64408,'2002-05-18','9999-01-01'),(10465,80628,'2001-12-09','9999-01-01'),(10468,62566,'2002-05-25','9999-01-01'),(10469,79598,'2002-06-01','9999-01-01'),(10470,65837,'2001-09-16','9999-01-01'),(10471,82545,'2001-11-15','9999-01-01'),(10473,53721,'2001-09-22','9999-01-01'),(10474,72532,'2002-02-17','9999-01-01'),(10476,86744,'2001-09-16','9999-01-01'),(10477,68859,'2002-05-25','9999-01-01'),(10478,54545,'2002-06-07','9999-01-01'),(10479,56148,'2002-07-22','9999-01-01'),(10481,62773,'2001-09-30','9999-01-01'),(10482,91895,'2002-02-24','9999-01-01'),(10483,69741,'2001-11-08','9999-01-01'),(10484,53316,'2001-12-19','9999-01-01'),(10485,64129,'2002-01-19','9999-01-01'),(10486,100894,'2001-10-04','9999-01-01'),(10487,61185,'2001-08-12','9999-01-01'),(10488,58297,'2002-07-07','9999-01-01'),(10490,80723,'2001-11-20','9999-01-01'),(10491,89966,'2002-01-14','9999-01-01'),(10492,88092,'2002-04-26','9999-01-01'),(10493,50195,'2001-10-28','9999-01-01'),(10494,66837,'2001-12-15','9999-01-01'),(10495,97302,'2001-09-21','9999-01-01'),(10497,84550,'2002-01-19','9999-01-01'),(10498,51552,'2002-03-07','9999-01-01'),(10499,49476,'2002-07-30','9999-01-01'),(10500,54628,'2001-12-15','9999-01-01'),(10501,74645,'2001-09-05','9999-01-01'),(10502,59636,'2002-03-02','9999-01-01'),(10503,55115,'2002-03-12','9999-01-01'),(10504,47967,'2001-10-18','9999-01-01'),(10506,46387,'2001-11-30','9999-01-01'),(10507,64175,'2001-09-27','9999-01-01'),(10508,67407,'2002-04-28','9999-01-01'),(10509,59896,'2001-10-04','9999-01-01'),(10510,98279,'2002-04-17','9999-01-01'),(10511,57486,'2002-01-24','9999-01-01'),(10512,70242,'2001-11-25','9999-01-01'),(10513,105199,'2002-03-30','9999-01-01'),(10516,101812,'2001-10-15','9999-01-01'),(10517,85728,'2001-12-22','9999-01-01'),(10518,60489,'2001-09-01','9999-01-01'),(10520,51604,'2001-09-04','9999-01-01'),(10521,120116,'2002-05-08','9999-01-01'),(10522,73197,'2001-12-08','9999-01-01'),(10523,60991,'2001-12-20','9999-01-01'),(10524,88024,'2001-10-05','9999-01-01'),(10526,71389,'2002-02-23','9999-01-01'),(10527,55892,'2002-01-23','9999-01-01'),(10528,81284,'2001-10-26','9999-01-01'),(10529,55816,'2002-07-03','9999-01-01'),(10530,97343,'2001-09-19','9999-01-01'),(10531,66726,'2002-03-14','9999-01-01'),(10532,122653,'2002-05-14','9999-01-01'),(10533,80162,'2001-08-14','9999-01-01'),(10535,71671,'2001-08-19','9999-01-01'),(10536,84392,'2001-10-04','9999-01-01'),(10537,86754,'2001-09-24','9999-01-01'),(10539,126614,'2002-06-02','9999-01-01'),(10540,70863,'2002-05-01','9999-01-01'),(10542,56358,'2002-02-04','9999-01-01'),(10543,89954,'2001-11-23','9999-01-01'),(10544,56849,'2002-04-27','9999-01-01'),(10545,74457,'2002-06-27','9999-01-01'),(10546,69273,'2002-04-11','9999-01-01'),(10548,126034,'2002-06-30','9999-01-01'),(10549,77006,'2001-10-10','9999-01-01'),(10550,70405,'2002-01-30','9999-01-01'),(10551,74567,'2001-08-03','9999-01-01'),(10552,86030,'2001-08-30','9999-01-01'),(10553,99276,'2002-07-19','9999-01-01'),(10554,79625,'2001-11-25','9999-01-01'),(10556,87487,'2002-04-13','9999-01-01'),(10557,58098,'2001-09-16','9999-01-01'),(10558,90983,'2002-04-20','9999-01-01'),(10559,99733,'2002-04-03','9999-01-01'),(10560,46950,'2001-09-02','9999-01-01'),(10561,65771,'2002-06-29','9999-01-01'),(10562,76969,'2002-07-23','9999-01-01'),(10564,61806,'2001-11-21','9999-01-01'),(10565,52961,'2001-08-04','9999-01-01'),(10567,58934,'2001-10-16','9999-01-01'),(10568,80992,'2002-07-06','9999-01-01'),(10569,89547,'2002-03-09','9999-01-01'),(10571,77495,'2002-02-20','9999-01-01'),(10572,67235,'2002-02-12','9999-01-01'),(10573,93201,'2001-08-19','9999-01-01'),(10574,47796,'2001-11-14','9999-01-01'),(10576,89866,'2001-12-31','9999-01-01'),(10577,62497,'2002-06-30','9999-01-01'),(10578,72151,'2001-11-21','9999-01-01'),(10579,91304,'2002-05-30','9999-01-01'),(10580,54270,'2002-02-27','9999-01-01'),(10581,61128,'2002-04-11','9999-01-01'),(10582,48617,'2001-11-04','9999-01-01'),(10584,105818,'2002-02-13','9999-01-01'),(10585,72134,'2002-01-06','9999-01-01'),(10586,64724,'2002-02-01','9999-01-01'),(10587,91554,'2001-11-17','9999-01-01'),(10588,66926,'2002-07-22','9999-01-01'),(10589,74418,'2002-01-24','9999-01-01'),(10590,84721,'2002-04-04','9999-01-01'),(10592,74725,'2001-09-25','9999-01-01'),(10593,84683,'2001-09-09','9999-01-01'),(10594,69849,'2002-03-30','9999-01-01'),(10595,72014,'2001-11-21','9999-01-01'),(10596,70886,'2002-05-22','9999-01-01'),(10597,80285,'2002-03-29','9999-01-01'),(10599,71926,'2001-11-14','9999-01-01'),(10600,79208,'2002-04-25','9999-01-01'),(10603,118613,'2002-07-18','9999-01-01'),(10604,79707,'2002-04-03','9999-01-01'),(10605,49298,'2002-06-29','9999-01-01'),(10606,74649,'2002-04-28','9999-01-01'),(10607,63230,'2002-01-11','9999-01-01'),(10609,95241,'2001-12-01','9999-01-01'),(10610,59405,'2002-03-29','9999-01-01'),(10611,58497,'2001-09-13','9999-01-01'),(10612,55094,'2001-08-30','9999-01-01'),(10613,45641,'2001-10-12','9999-01-01'),(10614,71594,'2002-02-28','9999-01-01'),(10615,56826,'2002-03-09','9999-01-01'),(10616,93833,'2001-11-06','9999-01-01'),(10618,55033,'2001-10-05','9999-01-01'),(10619,99689,'2002-04-06','9999-01-01'),(10620,76107,'2001-11-07','9999-01-01'),(10621,81469,'2002-02-07','9999-01-01'),(10622,66534,'2002-05-12','9999-01-01'),(10623,86399,'2002-01-12','9999-01-01'),(10624,59727,'2002-05-04','9999-01-01'),(10626,46912,'2001-12-02','9999-01-01'),(10627,55124,'2002-03-11','9999-01-01'),(10628,81830,'2002-03-10','9999-01-01'),(10630,52124,'2002-01-12','9999-01-01'),(10631,58267,'2001-10-16','9999-01-01'),(10633,96424,'2002-05-15','9999-01-01'),(10634,66194,'2001-11-08','9999-01-01'),(10636,48967,'2001-09-24','9999-01-01'),(10638,57291,'2001-11-08','9999-01-01'),(10639,61362,'2001-10-23','9999-01-01'),(10640,82631,'2001-12-02','9999-01-01'),(10641,60236,'2002-03-19','9999-01-01'),(10642,49154,'2001-10-04','9999-01-01'),(10643,81463,'2001-11-07','9999-01-01'),(10645,67234,'2002-02-26','9999-01-01'),(10646,60996,'2002-01-29','9999-01-01'),(10647,53424,'2001-09-02','9999-01-01'),(10648,72324,'2002-02-12','9999-01-01'),(10649,45167,'2002-06-22','9999-01-01'),(10650,69773,'2001-10-02','9999-01-01'),(10651,52552,'2002-01-06','9999-01-01'),(10653,78957,'2002-04-26','9999-01-01'),(10654,68966,'2002-03-22','9999-01-01'),(10655,99498,'2002-07-03','9999-01-01'),(10656,64532,'2002-06-18','9999-01-01'),(10657,80161,'2002-03-24','9999-01-01'),(10658,77983,'2002-04-27','9999-01-01'),(10659,48869,'2002-05-30','9999-01-01'),(10661,71957,'2002-01-08','9999-01-01'),(10662,75709,'2001-12-16','9999-01-01'),(10663,76268,'2002-01-21','9999-01-01'),(10664,78613,'2001-12-21','9999-01-01'),(10666,112604,'2002-05-17','9999-01-01'),(10667,44520,'2002-07-27','9999-01-01'),(10669,50044,'2001-11-16','9999-01-01'),(10670,97173,'2002-03-20','9999-01-01'),(10671,85001,'2001-09-12','9999-01-01'),(10674,46923,'2002-03-16','9999-01-01'),(10675,85978,'2002-01-31','9999-01-01'),(10676,63189,'2001-09-03','9999-01-01'),(10677,59003,'2001-10-12','9999-01-01'),(10678,95475,'2002-07-29','9999-01-01'),(10679,61658,'2002-05-10','9999-01-01'),(10681,96834,'2001-09-30','9999-01-01'),(10682,63069,'2001-11-06','9999-01-01'),(10683,53616,'2002-06-22','9999-01-01'),(10684,47683,'2001-10-27','9999-01-01'),(10686,76713,'2002-05-13','9999-01-01'),(10687,69415,'2002-03-10','9999-01-01'),(10688,114919,'2002-04-09','9999-01-01'),(10689,63629,'2001-08-02','9999-01-01'),(10690,100949,'2001-08-19','9999-01-01'),(10691,67546,'2001-09-14','9999-01-01'),(10692,93492,'2002-03-20','9999-01-01'),(10693,64360,'2002-01-04','9999-01-01'),(10695,93037,'2002-05-18','9999-01-01'),(10696,79991,'2001-09-06','9999-01-01'),(10697,48005,'2001-08-28','9999-01-01'),(10698,59249,'2001-12-06','9999-01-01'),(10699,80252,'2001-11-13','9999-01-01'),(10701,105545,'2001-10-23','9999-01-01'),(10702,76094,'2002-01-11','9999-01-01'),(10703,64417,'2002-05-11','9999-01-01'),(10704,57419,'2002-02-15','9999-01-01'),(10705,99116,'2002-07-15','9999-01-01'),(10707,75526,'2001-12-21','9999-01-01'),(10708,46202,'2001-11-08','9999-01-01'),(10709,72950,'2002-01-29','9999-01-01'),(10710,89961,'2002-07-07','9999-01-01'),(10711,61627,'2002-06-18','9999-01-01'),(10712,60644,'2001-08-16','9999-01-01'),(10714,52536,'2001-11-23','9999-01-01'),(10715,42510,'2001-10-27','9999-01-01'),(10716,78299,'2001-08-08','9999-01-01'),(10717,75523,'2001-09-10','9999-01-01'),(10718,100158,'2002-07-18','9999-01-01'),(10720,59008,'2002-06-25','9999-01-01'),(10721,44812,'2002-07-14','9999-01-01'),(10723,50808,'2002-07-13','9999-01-01'),(10724,60860,'2001-12-05','9999-01-01'),(10725,105260,'2001-09-05','9999-01-01'),(10726,61163,'2002-02-22','9999-01-01'),(10728,67848,'2001-12-06','9999-01-01'),(10729,70846,'2002-04-16','9999-01-01'),(10732,56738,'2001-12-19','9999-01-01'),(10733,60861,'2002-02-18','9999-01-01'),(10734,60732,'2001-12-17','9999-01-01'),(10735,65377,'2001-10-25','9999-01-01'),(10736,61709,'2001-09-23','9999-01-01'),(10737,78025,'2002-06-21','9999-01-01'),(10738,78994,'2002-04-27','9999-01-01'),(10739,78161,'2002-03-26','9999-01-01'),(10741,85872,'2002-01-03','9999-01-01'),(10742,78918,'2002-04-02','9999-01-01'),(10743,80074,'2001-11-04','9999-01-01'),(10745,73409,'2002-01-19','9999-01-01'),(10746,58687,'2001-08-28','9999-01-01'),(10748,73425,'2001-08-11','9999-01-01'),(10749,97148,'2001-09-22','9999-01-01'),(10750,42569,'2001-11-05','9999-01-01'),(10752,55498,'2002-05-26','9999-01-01'),(10754,91523,'2002-01-07','9999-01-01'),(10756,48573,'2001-10-06','9999-01-01'),(10758,59454,'2002-06-30','9999-01-01'),(10759,61507,'2001-12-01','9999-01-01'),(10760,49000,'2001-08-21','9999-01-01'),(10762,74491,'2002-01-18','9999-01-01'),(10763,104593,'2002-02-19','9999-01-01'),(10764,96507,'2001-11-24','9999-01-01'),(10766,41112,'2001-09-17','9999-01-01'),(10767,47680,'2002-07-14','9999-01-01'),(10768,102666,'2002-06-30','9999-01-01'),(10769,93880,'2001-08-27','9999-01-01'),(10771,55120,'2002-03-31','9999-01-01'),(10772,57184,'2002-02-19','9999-01-01'),(10774,69890,'2002-01-23','9999-01-01'),(10775,57607,'2001-12-28','9999-01-01'),(10776,95712,'2002-03-12','9999-01-01'),(10778,101432,'2002-06-30','9999-01-01'),(10779,78769,'2002-01-07','9999-01-01'),(10781,56794,'2002-02-01','9999-01-01'),(10783,55420,'2002-05-13','9999-01-01'),(10784,48195,'2001-10-13','9999-01-01'),(10785,54358,'2001-11-09','9999-01-01'),(10786,47349,'2002-06-05','9999-01-01'),(10788,67353,'2002-05-28','9999-01-01'),(10789,45709,'2002-01-25','9999-01-01'),(10790,66822,'2002-03-01','9999-01-01'),(10791,71474,'2002-07-27','9999-01-01'),(10793,58030,'2001-09-15','9999-01-01'),(10794,59529,'2002-05-22','9999-01-01'),(10795,104291,'2002-05-01','9999-01-01'),(10796,50763,'2001-11-05','9999-01-01'),(10797,69522,'2001-08-18','9999-01-01'),(10798,57456,'2001-09-20','9999-01-01'),(10799,68340,'2002-02-26','9999-01-01'),(10800,61104,'2002-05-18','9999-01-01'),(10802,68904,'2001-08-20','9999-01-01'),(10804,44465,'2002-06-08','9999-01-01'),(10805,87978,'2002-05-22','9999-01-01'),(10806,79396,'2002-04-23','9999-01-01'),(10807,60700,'2001-10-18','9999-01-01'),(10808,65884,'2002-03-03','9999-01-01'),(10809,69004,'2002-02-21','9999-01-01'),(10810,63651,'2001-09-05','9999-01-01'),(10811,50012,'2002-07-07','9999-01-01'),(10813,83035,'2002-04-24','9999-01-01'),(10814,83290,'2002-07-15','9999-01-01'),(10815,57314,'2002-04-17','9999-01-01'),(10816,68737,'2002-05-19','9999-01-01'),(10817,78202,'2001-12-23','9999-01-01'),(10818,50813,'2002-04-08','9999-01-01'),(10820,87476,'2002-06-24','9999-01-01'),(10822,77721,'2002-01-07','9999-01-01'),(10823,40063,'2001-08-18','9999-01-01'),(10824,60969,'2002-07-30','9999-01-01'),(10825,79314,'2001-12-02','9999-01-01'),(10826,79304,'2002-01-20','9999-01-01'),(10827,65206,'2001-11-06','9999-01-01'),(10830,71748,'2001-08-21','9999-01-01'),(10831,88183,'2002-02-21','9999-01-01'),(10832,99869,'2001-10-07','9999-01-01'),(10833,45557,'2001-12-22','9999-01-01'),(10834,65548,'2001-11-21','9999-01-01'),(10835,54619,'2001-08-20','9999-01-01'),(10836,99085,'2001-08-06','9999-01-01'),(10838,70222,'2002-04-24','9999-01-01'),(10839,56867,'2001-12-29','9999-01-01'),(10840,52078,'2002-06-02','9999-01-01'),(10841,61080,'2002-01-19','9999-01-01'),(10843,66330,'2002-04-23','9999-01-01'),(10844,53781,'2002-04-24','9999-01-01'),(10845,83424,'2002-01-24','9999-01-01'),(10846,48419,'2002-01-15','9999-01-01'),(10847,67036,'2002-07-21','9999-01-01'),(10848,87285,'2002-04-16','9999-01-01'),(10849,84839,'2002-06-23','9999-01-01'),(10851,66516,'2001-11-19','9999-01-01'),(10852,73298,'2001-08-20','9999-01-01'),(10853,69461,'2002-05-01','9999-01-01'),(10854,51334,'2002-07-12','9999-01-01'),(10855,54124,'2002-03-27','9999-01-01'),(10857,78714,'2002-03-31','9999-01-01'),(10858,58588,'2001-12-31','9999-01-01'),(10859,74030,'2002-05-20','9999-01-01'),(10860,47539,'2002-01-21','9999-01-01'),(10862,106685,'2002-07-19','9999-01-01'),(10863,83361,'2001-12-21','9999-01-01'),(10864,86188,'2001-09-21','9999-01-01'),(10866,66411,'2001-12-24','9999-01-01'),(10868,82133,'2002-03-17','9999-01-01'),(10870,91601,'2002-01-09','9999-01-01'),(10871,43004,'2002-06-15','9999-01-01'),(10872,62584,'2001-09-03','9999-01-01'),(10873,84060,'2002-03-21','9999-01-01'),(10874,84001,'2002-04-18','9999-01-01'),(10875,74304,'2002-05-16','9999-01-01'),(10877,80508,'2002-06-02','9999-01-01'),(10878,84104,'2002-04-24','9999-01-01'),(10879,91902,'2001-08-11','9999-01-01'),(10880,64564,'2002-01-08','9999-01-01'),(10882,49164,'2002-04-28','9999-01-01'),(10883,49389,'2001-12-27','9999-01-01'),(10884,56269,'2002-04-13','9999-01-01'),(10885,97533,'2001-08-16','9999-01-01'),(10886,56038,'2002-03-24','9999-01-01'),(10887,101291,'2002-03-14','9999-01-01'),(10889,89362,'2001-08-07','9999-01-01'),(10890,95299,'2002-03-07','9999-01-01'),(10891,55629,'2001-10-04','9999-01-01'),(10892,60365,'2002-04-08','9999-01-01'),(10893,99925,'2001-08-20','9999-01-01'),(10894,72239,'2001-12-03','9999-01-01'),(10896,46963,'2001-11-26','9999-01-01'),(10897,136004,'2002-04-04','9999-01-01'),(10898,74474,'2002-01-06','9999-01-01'),(10899,76597,'2002-04-01','9999-01-01'),(10900,56503,'2001-09-05','9999-01-01'),(10901,51882,'2001-08-04','9999-01-01'),(10903,72986,'2002-02-11','9999-01-01'),(10904,70230,'2002-04-14','9999-01-01'),(10906,71378,'2001-10-17','9999-01-01'),(10907,63185,'2001-12-22','9999-01-01'),(10908,65510,'2002-04-01','9999-01-01'),(10909,96667,'2001-12-24','9999-01-01'),(10910,65863,'2001-08-30','9999-01-01'),(10911,105549,'2002-06-22','9999-01-01'),(10913,70728,'2001-10-24','9999-01-01'),(10915,73004,'2001-10-27','9999-01-01'),(10916,55677,'2002-03-11','9999-01-01'),(10917,95052,'2002-01-28','9999-01-01'),(10919,90091,'2001-10-28','9999-01-01'),(10920,61471,'2002-02-21','9999-01-01'),(10921,99406,'2002-07-23','9999-01-01'),(10923,79583,'2002-04-05','9999-01-01'),(10924,108286,'2001-08-11','9999-01-01'),(10925,63577,'2002-06-08','9999-01-01'),(10926,71265,'2002-04-27','9999-01-01'),(10927,71200,'2001-09-08','9999-01-01'),(10928,61142,'2002-04-04','9999-01-01'),(10929,68325,'2002-04-12','9999-01-01'),(10930,65912,'2001-11-19','9999-01-01'),(10932,52036,'2001-09-07','9999-01-01'),(10933,60672,'2002-07-31','9999-01-01'),(10934,60067,'2001-09-15','9999-01-01'),(10935,73771,'2001-10-15','9999-01-01'),(10936,61324,'2002-05-06','9999-01-01'),(10937,74468,'2002-06-13','9999-01-01'),(10938,108280,'2001-09-20','9999-01-01'),(10939,51167,'2001-12-10','9999-01-01'),(10941,58573,'2001-08-20','9999-01-01'),(10942,46775,'2002-01-19','9999-01-01'),(10943,66362,'2002-05-20','9999-01-01'),(10944,54950,'2001-09-05','9999-01-01'),(10945,59643,'2002-04-02','9999-01-01'),(10946,72210,'2001-10-25','9999-01-01'),(10947,53199,'2001-11-14','9999-01-01'),(10949,73234,'2002-06-26','9999-01-01'),(10951,70511,'2002-07-03','9999-01-01'),(10953,101751,'2002-02-08','9999-01-01'),(10954,48707,'2001-12-12','9999-01-01'),(10955,125713,'2001-09-23','9999-01-01'),(10956,55271,'2001-11-30','9999-01-01'),(10957,70434,'2001-09-28','9999-01-01'),(10958,75805,'2001-11-24','9999-01-01'),(10960,70123,'2002-07-05','9999-01-01'),(10961,91074,'2001-11-02','9999-01-01'),(10962,100477,'2001-12-12','9999-01-01'),(10964,85414,'2002-05-02','9999-01-01'),(10965,95372,'2002-07-25','9999-01-01'),(10966,80829,'2002-02-04','9999-01-01'),(10967,65102,'2002-07-30','9999-01-01'),(10968,102344,'2001-08-07','9999-01-01'),(10969,51041,'2002-05-10','9999-01-01'),(10970,49771,'2001-11-12','9999-01-01'),(10972,69408,'2002-06-02','9999-01-01'),(10973,80438,'2002-03-02','9999-01-01'),(10974,62025,'2002-05-16','9999-01-01'),(10975,57909,'2002-03-28','9999-01-01'),(10976,42858,'2001-10-30','9999-01-01'),(10978,86796,'2002-05-14','9999-01-01'),(10979,80142,'2002-01-23','9999-01-01'),(10980,85016,'2002-01-01','9999-01-01'),(10981,95533,'2002-07-05','9999-01-01'),(10982,76811,'2001-11-08','9999-01-01'),(10983,68620,'2002-02-18','9999-01-01'),(10986,72415,'2001-10-07','9999-01-01'),(10987,53878,'2002-05-20','9999-01-01'),(10988,86877,'2002-06-15','9999-01-01'),(10989,73713,'2002-07-16','9999-01-01'),(10990,64994,'2001-08-03','9999-01-01'),(10991,56356,'2002-07-12','9999-01-01'),(10992,84076,'2002-04-26','9999-01-01'),(10993,56374,'2002-05-27','9999-01-01'),(10995,48215,'2002-07-18','9999-01-01'),(10996,65811,'2002-02-04','9999-01-01'),(10997,42260,'2002-01-03','9999-01-01'),(10998,68449,'2001-08-06','9999-01-01'),(11000,70663,'2002-01-26','9999-01-01'); /*!40000 ALTER TABLE `salaries` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `titles` -- DROP TABLE IF EXISTS `titles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `titles` ( `emp_no` int(11) NOT NULL, `title` varchar(50) NOT NULL, `from_date` date NOT NULL, `to_date` date DEFAULT NULL, PRIMARY KEY (`emp_no`,`title`,`from_date`), KEY `emp_no` (`emp_no`), CONSTRAINT `titles_ibfk_1` FOREIGN KEY (`emp_no`) REFERENCES `employees` (`emp_no`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `titles` -- LOCK TABLES `titles` WRITE; /*!40000 ALTER TABLE `titles` DISABLE KEYS */; INSERT INTO `titles` VALUES (10001,'Senior Engineer','1986-06-26','9999-01-01'),(10002,'Staff','1996-08-03','9999-01-01'),(10003,'Senior Engineer','1995-12-03','9999-01-01'),(10004,'Engineer','1986-12-01','1995-12-01'),(10004,'Senior Engineer','1995-12-01','9999-01-01'),(10005,'Senior Staff','1996-09-12','9999-01-01'),(10005,'Staff','1989-09-12','1996-09-12'),(10006,'Senior Engineer','1990-08-05','9999-01-01'),(10007,'Senior Staff','1996-02-11','9999-01-01'),(10007,'Staff','1989-02-10','1996-02-11'),(10008,'Assistant Engineer','1998-03-11','2000-07-31'),(10009,'Assistant Engineer','1985-02-18','1990-02-18'),(10009,'Engineer','1990-02-18','1995-02-18'),(10009,'Senior Engineer','1995-02-18','9999-01-01'),(10010,'Engineer','1996-11-24','9999-01-01'),(10011,'Staff','1990-01-22','1996-11-09'),(10012,'Engineer','1992-12-18','2000-12-18'),(10012,'Senior Engineer','2000-12-18','9999-01-01'),(10013,'Senior Staff','1985-10-20','9999-01-01'),(10014,'Engineer','1993-12-29','9999-01-01'),(10015,'Senior Staff','1992-09-19','1993-08-22'),(10016,'Staff','1998-02-11','9999-01-01'),(10017,'Senior Staff','2000-08-03','9999-01-01'),(10017,'Staff','1993-08-03','2000-08-03'),(10018,'Engineer','1987-04-03','1995-04-03'),(10018,'Senior Engineer','1995-04-03','9999-01-01'),(10019,'Staff','1999-04-30','9999-01-01'),(10020,'Engineer','1997-12-30','9999-01-01'),(10021,'Technique Leader','1988-02-10','2002-07-15'),(10022,'Engineer','1999-09-03','9999-01-01'),(10023,'Engineer','1999-09-27','9999-01-01'),(10024,'Assistant Engineer','1998-06-14','9999-01-01'),(10025,'Technique Leader','1987-08-17','1997-10-15'),(10026,'Engineer','1995-03-20','2001-03-19'),(10026,'Senior Engineer','2001-03-19','9999-01-01'),(10027,'Engineer','1995-04-02','2001-04-01'),(10027,'Senior Engineer','2001-04-01','9999-01-01'),(10028,'Engineer','1991-10-22','1998-04-06'),(10029,'Engineer','1991-09-18','2000-09-17'),(10029,'Senior Engineer','2000-09-17','9999-01-01'),(10030,'Engineer','1994-02-17','2001-02-17'),(10030,'Senior Engineer','2001-02-17','9999-01-01'),(10031,'Engineer','1991-09-01','1998-09-01'),(10031,'Senior Engineer','1998-09-01','9999-01-01'),(10032,'Engineer','1990-06-20','1995-06-20'),(10032,'Senior Engineer','1995-06-20','9999-01-01'),(10033,'Technique Leader','1987-03-18','1993-03-24'),(10034,'Staff','1995-04-12','1999-10-31'),(10035,'Engineer','1988-09-05','1996-09-05'),(10035,'Senior Engineer','1996-09-05','9999-01-01'),(10036,'Senior Staff','1992-04-28','9999-01-01'),(10037,'Engineer','1990-12-05','1995-12-05'),(10037,'Senior Engineer','1995-12-05','9999-01-01'),(10038,'Senior Staff','1996-09-20','9999-01-01'),(10038,'Staff','1989-09-20','1996-09-20'),(10039,'Senior Staff','1997-01-18','9999-01-01'),(10039,'Staff','1988-01-19','1997-01-18'),(10040,'Engineer','1993-02-14','1999-02-14'),(10040,'Senior Engineer','1999-02-14','9999-01-01'),(10041,'Senior Staff','1998-11-12','9999-01-01'),(10041,'Staff','1989-11-12','1998-11-12'),(10042,'Senior Staff','2000-03-21','2000-08-10'),(10042,'Staff','1993-03-21','2000-03-21'),(10043,'Engineer','1990-10-20','1997-10-20'),(10043,'Senior Engineer','1997-10-20','9999-01-01'),(10044,'Technique Leader','1994-05-21','9999-01-01'),(10045,'Engineer','1996-11-16','9999-01-01'),(10046,'Senior Staff','2000-06-20','9999-01-01'),(10046,'Staff','1992-06-20','2000-06-20'),(10047,'Engineer','1989-03-31','1998-03-31'),(10047,'Senior Engineer','1998-03-31','9999-01-01'),(10048,'Engineer','1985-02-24','1987-01-27'),(10049,'Senior Staff','2000-05-04','9999-01-01'),(10049,'Staff','1992-05-04','2000-05-04'),(10050,'Senior Staff','1999-12-25','9999-01-01'),(10050,'Staff','1990-12-25','1999-12-25'),(10051,'Engineer','1992-10-15','1998-10-15'),(10051,'Senior Engineer','1998-10-15','9999-01-01'),(10052,'Senior Staff','2002-01-31','9999-01-01'),(10052,'Staff','1997-01-31','2002-01-31'),(10053,'Senior Staff','1994-11-13','9999-01-01'),(10054,'Senior Staff','2000-07-28','9999-01-01'),(10054,'Staff','1995-07-29','2000-07-28'),(10055,'Staff','1992-04-27','1995-07-22'),(10056,'Engineer','1990-02-01','1999-02-01'),(10056,'Senior Engineer','1999-02-01','9999-01-01'),(10057,'Engineer','1992-01-15','2000-01-15'),(10057,'Senior Engineer','2000-01-15','9999-01-01'),(10058,'Senior Staff','1988-04-25','9999-01-01'),(10059,'Senior Staff','1991-06-26','9999-01-01'),(10060,'Senior Staff','1996-05-28','9999-01-01'),(10060,'Staff','1989-05-28','1996-05-28'),(10061,'Senior Staff','1989-12-02','9999-01-01'),(10062,'Engineer','1991-08-30','1999-08-30'),(10062,'Senior Engineer','1999-08-30','9999-01-01'),(10063,'Senior Engineer','1989-04-08','9999-01-01'),(10064,'Staff','1985-11-20','1992-03-02'),(10065,'Engineer','1998-05-24','9999-01-01'),(10066,'Assistant Engineer','1986-02-26','1992-02-26'),(10066,'Engineer','1992-02-26','1998-02-25'),(10066,'Senior Engineer','1998-02-25','9999-01-01'),(10067,'Engineer','1987-03-04','1996-03-03'),(10067,'Senior Engineer','1996-03-03','9999-01-01'),(10068,'Senior Staff','1996-08-06','9999-01-01'),(10068,'Staff','1987-08-07','1996-08-06'),(10069,'Technique Leader','1992-06-14','9999-01-01'),(10070,'Technique Leader','1985-10-14','9999-01-01'),(10071,'Staff','1995-08-05','9999-01-01'),(10072,'Engineer','1989-05-21','1995-05-21'),(10072,'Senior Engineer','1995-05-21','9999-01-01'),(10073,'Engineer','1998-02-02','1998-02-22'),(10074,'Technique Leader','1990-08-13','9999-01-01'),(10075,'Senior Engineer','1988-05-17','2001-01-15'),(10076,'Senior Engineer','1996-07-15','9999-01-01'),(10077,'Staff','1994-12-23','9999-01-01'),(10078,'Engineer','1994-09-29','9999-01-01'),(10079,'Technique Leader','1995-12-13','9999-01-01'),(10080,'Senior Staff','2001-09-28','9999-01-01'),(10080,'Staff','1994-09-28','2001-09-28'),(10081,'Engineer','1986-10-30','1991-10-30'),(10081,'Senior Engineer','1991-10-30','9999-01-01'),(10082,'Staff','1990-01-03','1990-01-15'),(10083,'Engineer','1987-03-31','1994-03-31'),(10083,'Senior Engineer','1994-03-31','9999-01-01'),(10084,'Engineer','1995-12-15','2001-12-14'),(10084,'Senior Engineer','2001-12-14','9999-01-01'),(10085,'Senior Engineer','1994-04-09','9999-01-01'),(10086,'Senior Staff','1999-02-19','9999-01-01'),(10086,'Staff','1992-02-19','1999-02-19'),(10087,'Staff','1997-05-08','2001-01-09'),(10088,'Senior Staff','1993-09-02','9999-01-01'),(10088,'Staff','1988-09-02','1993-09-02'),(10089,'Senior Staff','1996-01-11','9999-01-01'),(10089,'Staff','1989-01-10','1996-01-11'),(10090,'Senior Engineer','1986-03-14','1999-05-07'),(10091,'Engineer','1992-11-18','2001-11-18'),(10091,'Senior Engineer','2001-11-18','9999-01-01'),(10092,'Engineer','1996-04-22','9999-01-01'),(10093,'Staff','1997-06-08','9999-01-01'),(10094,'Senior Staff','1987-04-18','1997-11-08'),(10095,'Senior Staff','2000-03-09','9999-01-01'),(10095,'Staff','1994-03-10','2000-03-09'),(10096,'Engineer','1999-01-23','9999-01-01'),(10097,'Senior Staff','1996-09-14','9999-01-01'),(10097,'Staff','1990-09-15','1996-09-14'),(10098,'Engineer','1985-05-13','1992-05-13'),(10098,'Senior Engineer','1992-05-13','1992-12-11'),(10099,'Senior Staff','1995-10-19','9999-01-01'),(10099,'Staff','1988-10-18','1995-10-19'),(10100,'Senior Staff','1994-09-21','9999-01-01'),(10100,'Staff','1987-09-21','1994-09-21'),(10101,'Staff','1998-10-14','2000-09-23'),(10102,'Assistant Engineer','1995-01-02','2002-01-02'),(10102,'Engineer','2002-01-02','9999-01-01'),(10103,'Engineer','1998-01-12','9999-01-01'),(10104,'Senior Staff','1987-04-16','9999-01-01'),(10105,'Staff','1999-05-17','2001-06-11'),(10106,'Engineer','1991-10-27','1997-10-26'),(10106,'Senior Engineer','1997-10-26','9999-01-01'),(10107,'Senior Staff','1999-03-30','9999-01-01'),(10108,'Staff','1999-03-20','2001-10-20'),(10109,'Engineer','1993-06-16','2001-06-16'),(10109,'Senior Engineer','2001-06-16','9999-01-01'),(10110,'Senior Staff','1992-08-21','9999-01-01'),(10110,'Staff','1986-08-22','1992-08-21'),(10111,'Engineer','1988-12-19','1996-12-19'),(10111,'Senior Engineer','1996-12-19','9999-01-01'),(10112,'Staff','1998-05-01','9999-01-01'),(10113,'Engineer','1998-09-14','9999-01-01'),(10114,'Senior Staff','1999-07-18','9999-01-01'),(10114,'Staff','1992-07-17','1999-07-18'),(10115,'Staff','1988-03-03','1992-05-24'),(10116,'Senior Engineer','1994-02-27','1998-11-01'),(10117,'Senior Engineer','1992-03-19','9999-01-01'),(10118,'Senior Engineer','1992-02-02','9999-01-01'),(10119,'Engineer','1993-12-09','1997-10-30'),(10120,'Engineer','1996-07-06','9999-01-01'),(10121,'Engineer','1989-05-03','1996-05-03'),(10121,'Senior Engineer','1996-05-03','9999-01-01'),(10122,'Technique Leader','1998-08-06','9999-01-01'),(10123,'Assistant Engineer','1993-01-15','1999-01-15'),(10123,'Engineer','1999-01-15','9999-01-01'),(10124,'Engineer','1991-09-05','1998-09-05'),(10124,'Senior Engineer','1998-09-05','9999-01-01'),(10125,'Staff','1990-10-26','1996-03-25'),(10126,'Senior Staff','1991-09-08','9999-01-01'),(10126,'Staff','1985-09-08','1991-09-08'),(10127,'Senior Engineer','1991-05-17','9999-01-01'),(10128,'Senior Staff','1995-06-07','9999-01-01'),(10128,'Staff','1988-06-06','1995-06-07'),(10129,'Technique Leader','1996-01-16','9999-01-01'),(10130,'Senior Engineer','1988-06-21','9999-01-01'),(10131,'Engineer','1999-09-17','1999-12-06'),(10132,'Staff','1997-06-18','9999-01-01'),(10133,'Engineer','1985-12-15','1991-12-15'),(10133,'Senior Engineer','1991-12-15','9999-01-01'),(10134,'Engineer','1987-12-12','1994-12-12'),(10134,'Senior Engineer','1994-12-12','9999-01-01'),(10135,'Assistant Engineer','1990-01-04','1999-01-04'),(10135,'Engineer','1999-01-04','9999-01-01'),(10136,'Senior Staff','1997-06-13','1999-09-20'),(10136,'Staff','1988-06-13','1997-06-13'),(10137,'Senior Staff','1994-02-18','9999-01-01'),(10137,'Staff','1985-02-18','1994-02-18'),(10138,'Engineer','1992-03-03','2001-03-03'),(10138,'Senior Engineer','2001-03-03','9999-01-01'),(10139,'Engineer','1998-03-15','9999-01-01'),(10140,'Senior Staff','1998-03-14','9999-01-01'),(10140,'Staff','1991-03-14','1998-03-14'),(10141,'Senior Staff','1998-07-23','9999-01-01'),(10142,'Engineer','1993-10-28','2001-10-28'),(10142,'Senior Engineer','2001-10-28','9999-01-01'),(10143,'Engineer','1988-09-30','1993-09-30'),(10143,'Senior Engineer','1993-09-30','9999-01-01'),(10144,'Senior Staff','1992-10-14','1993-08-10'),(10144,'Staff','1985-10-14','1992-10-14'),(10145,'Engineer','1999-11-03','9999-01-01'),(10146,'Staff','1988-06-28','1990-09-07'),(10147,'Senior Staff','1995-12-18','9999-01-01'),(10147,'Staff','1987-12-18','1995-12-18'),(10148,'Staff','1996-07-15','9999-01-01'),(10149,'Staff','1994-01-28','1996-08-27'),(10150,'Engineer','1986-11-16','1995-11-16'),(10150,'Senior Engineer','1995-11-16','9999-01-01'),(10151,'Senior Staff','1997-12-12','9999-01-01'),(10151,'Staff','1992-12-12','1997-12-12'),(10152,'Engineer','1986-01-27','1987-08-03'),(10153,'Assistant Engineer','2000-01-08','9999-01-01'),(10154,'Staff','1996-10-23','9999-01-01'),(10155,'Senior Staff','1996-01-05','9999-01-01'),(10155,'Staff','1990-01-05','1996-01-05'),(10156,'Engineer','1993-05-14','2001-05-14'),(10156,'Senior Engineer','2001-05-14','9999-01-01'),(10157,'Senior Engineer','1997-12-10','9999-01-01'),(10158,'Engineer','1987-06-04','1996-06-03'),(10158,'Senior Engineer','1996-06-03','9999-01-01'),(10159,'Senior Engineer','1996-06-12','9999-01-01'),(10160,'Senior Staff','2000-12-06','9999-01-01'),(10160,'Staff','1993-12-06','2000-12-06'),(10161,'Engineer','1991-06-09','1994-01-05'),(10162,'Engineer','1998-05-27','9999-01-01'),(10163,'Senior Staff','1992-02-02','9999-01-01'),(10164,'Engineer','1990-10-19','1999-10-19'),(10164,'Senior Engineer','1999-10-19','9999-01-01'),(10165,'Senior Staff','1988-05-17','9999-01-01'),(10166,'Engineer','1996-09-02','9999-01-01'),(10167,'Engineer','1992-04-04','2001-04-04'),(10167,'Senior Engineer','2001-04-04','9999-01-01'),(10168,'Senior Staff','1995-12-06','9999-01-01'),(10168,'Staff','1986-12-06','1995-12-06'),(10169,'Engineer','1998-06-28','9999-01-01'),(10170,'Engineer','1986-01-02','1989-02-06'),(10171,'Technique Leader','1996-08-05','9999-01-01'),(10172,'Engineer','1998-02-04','9999-01-01'),(10173,'Senior Staff','1999-03-22','9999-01-01'),(10173,'Staff','1992-03-21','1999-03-22'),(10174,'Engineer','1987-06-01','1995-06-01'),(10174,'Senior Engineer','1995-06-01','9999-01-01'),(10175,'Staff','1988-09-24','1995-05-24'),(10176,'Senior Staff','1999-12-22','9999-01-01'),(10176,'Staff','1994-12-22','1999-12-22'),(10177,'Staff','1993-02-06','1994-03-17'),(10178,'Staff','1994-03-21','9999-01-01'),(10179,'Engineer','2000-01-25','9999-01-01'),(10180,'Senior Staff','2002-07-01','9999-01-01'),(10180,'Staff','1994-07-01','2002-07-01'),(10181,'Senior Engineer','1988-06-22','9999-01-01'),(10182,'Engineer','1990-09-02','1995-09-02'),(10182,'Senior Engineer','1995-09-02','9999-01-01'),(10183,'Staff','1996-08-11','9999-01-01'),(10184,'Staff','1997-12-26','9999-01-01'),(10185,'Senior Staff','1992-02-29','9999-01-01'),(10185,'Staff','1986-03-01','1992-02-29'),(10186,'Staff','1996-12-25','1997-08-16'),(10187,'Senior Staff','2000-05-31','9999-01-01'),(10187,'Staff','1991-06-01','2000-05-31'),(10188,'Senior Engineer','1987-08-27','9999-01-01'),(10189,'Engineer','1992-09-13','1993-06-29'),(10190,'Engineer','1986-06-23','1994-06-23'),(10190,'Senior Engineer','1994-06-23','9999-01-01'),(10191,'Senior Engineer','1986-04-10','9999-01-01'),(10192,'Engineer','1988-06-13','1993-06-13'),(10192,'Senior Engineer','1993-06-13','9999-01-01'),(10193,'Engineer','1996-09-21','9999-01-01'),(10194,'Senior Staff','2002-02-14','9999-01-01'),(10194,'Staff','1997-02-14','2002-02-14'),(10195,'Engineer','1985-02-15','1991-02-15'),(10195,'Senior Engineer','1991-02-15','2001-04-14'),(10196,'Staff','1999-01-31','9999-01-01'),(10197,'Engineer','1994-06-28','2001-06-28'),(10197,'Senior Engineer','2001-06-28','9999-01-01'),(10198,'Engineer','1985-08-31','1993-08-31'),(10198,'Senior Engineer','1993-08-31','9999-01-01'),(10199,'Staff','1998-02-07','9999-01-01'),(10200,'Engineer','1994-02-17','2000-02-17'),(10200,'Senior Engineer','2000-02-17','9999-01-01'),(10201,'Engineer','1992-11-10','1998-11-10'),(10201,'Senior Engineer','1998-11-10','9999-01-01'),(10202,'Engineer','1991-10-06','2000-10-05'),(10202,'Senior Engineer','2000-10-05','9999-01-01'),(10203,'Senior Staff','1995-04-06','9999-01-01'),(10203,'Staff','1989-04-06','1995-04-06'),(10204,'Engineer','1998-12-18','1999-03-08'),(10205,'Senior Engineer','1993-08-23','9999-01-01'),(10206,'Technique Leader','1988-04-19','9999-01-01'),(10207,'Engineer','1992-10-11','1997-10-11'),(10207,'Senior Engineer','1997-10-11','9999-01-01'),(10208,'Staff','1995-02-05','1999-05-15'),(10209,'Senior Staff','1997-11-22','9999-01-01'),(10209,'Staff','1991-11-23','1997-11-22'),(10210,'Senior Staff','2002-02-23','9999-01-01'),(10210,'Staff','1996-02-24','2002-02-23'),(10211,'Engineer','1991-11-22','1996-11-21'),(10211,'Senior Engineer','1996-11-21','9999-01-01'),(10212,'Engineer','1996-01-28','2001-01-27'),(10212,'Senior Engineer','2001-01-27','9999-01-01'),(10213,'Staff','1994-10-06','9999-01-01'),(10214,'Senior Staff','1988-02-29','9999-01-01'),(10215,'Senior Staff','1991-11-23','9999-01-01'),(10216,'Senior Staff','1993-10-29','9999-01-01'),(10216,'Staff','1987-10-30','1993-10-29'),(10217,'Technique Leader','1986-05-12','1993-08-05'),(10218,'Senior Engineer','1997-01-31','9999-01-01'),(10219,'Senior Staff','1993-03-31','9999-01-01'),(10220,'Staff','1997-09-16','9999-01-01'),(10221,'Engineer','1988-06-08','1997-06-08'),(10221,'Senior Engineer','1997-06-08','2000-10-04'),(10222,'Assistant Engineer','1986-06-08','1995-06-08'),(10222,'Engineer','1995-06-08','9999-01-01'),(10223,'Engineer','1998-04-01','9999-01-01'),(10224,'Engineer','1988-01-09','1996-01-09'),(10224,'Senior Engineer','1996-01-09','9999-01-01'),(10225,'Staff','1995-12-14','9999-01-01'),(10226,'Staff','1996-01-29','9999-01-01'),(10227,'Technique Leader','1994-11-01','9999-01-01'),(10228,'Senior Staff','1998-12-22','9999-01-01'),(10228,'Staff','1992-12-22','1998-12-22'),(10229,'Engineer','1996-02-20','2000-06-30'),(10230,'Senior Staff','2002-06-16','9999-01-01'),(10230,'Staff','1996-06-16','2002-06-16'),(10231,'Staff','1998-09-09','9999-01-01'),(10232,'Senior Staff','1998-06-04','9999-01-01'),(10232,'Staff','1992-06-04','1998-06-04'),(10233,'Senior Staff','2000-04-28','9999-01-01'),(10233,'Staff','1994-04-29','2000-04-28'),(10234,'Senior Staff','1995-11-19','1999-08-06'),(10234,'Staff','1990-11-19','1995-11-19'),(10235,'Senior Engineer','1995-04-06','9999-01-01'),(10236,'Staff','1996-08-30','9999-01-01'),(10237,'Senior Staff','1997-08-11','2000-02-21'),(10237,'Staff','1989-08-11','1997-08-11'),(10238,'Engineer','1995-03-31','9999-01-01'),(10239,'Staff','1996-05-04','9999-01-01'),(10240,'Engineer','1998-10-06','9999-01-01'),(10241,'Senior Staff','1995-06-13','9999-01-01'),(10241,'Staff','1988-06-12','1995-06-13'),(10242,'Engineer','1988-01-18','1995-01-18'),(10242,'Senior Engineer','1995-01-18','9999-01-01'),(10243,'Senior Staff','1986-06-07','9999-01-01'),(10244,'Engineer','1999-09-16','9999-01-01'),(10245,'Staff','1994-04-21','1995-02-20'),(10246,'Senior Engineer','1991-02-01','9999-01-01'),(10247,'Engineer','1992-08-14','1998-08-14'),(10247,'Senior Engineer','1998-08-14','9999-01-01'),(10248,'Senior Staff','1997-08-12','9999-01-01'),(10248,'Staff','1991-08-13','1997-08-12'),(10249,'Engineer','1991-12-08','2000-12-07'),(10249,'Senior Engineer','2000-12-07','9999-01-01'),(10250,'Engineer','1992-08-30','2001-08-30'),(10250,'Senior Engineer','2001-08-30','9999-01-01'),(10251,'Senior Staff','2001-06-25','9999-01-01'),(10251,'Staff','1992-06-25','2001-06-25'),(10252,'Engineer','1990-11-08','1998-11-08'),(10252,'Senior Engineer','1998-11-08','9999-01-01'),(10253,'Senior Staff','1993-02-21','1994-03-20'),(10253,'Staff','1985-02-21','1993-02-21'),(10254,'Senior Staff','1998-06-14','9999-01-01'),(10254,'Staff','1990-06-14','1998-06-14'),(10255,'Engineer','1993-05-12','1999-05-12'),(10255,'Senior Engineer','1999-05-12','1999-11-14'),(10256,'Senior Staff','1990-10-12','9999-01-01'),(10256,'Staff','1985-10-12','1990-10-12'),(10257,'Technique Leader','1997-07-16','9999-01-01'),(10258,'Assistant Engineer','1985-05-17','1991-05-17'),(10258,'Engineer','1991-05-17','1997-05-16'),(10258,'Senior Engineer','1997-05-16','9999-01-01'),(10259,'Senior Staff','1993-07-24','1999-01-06'),(10259,'Staff','1987-07-25','1993-07-24'),(10260,'Engineer','1993-02-01','2002-02-01'),(10260,'Senior Engineer','2002-02-01','9999-01-01'),(10261,'Senior Engineer','1996-09-11','1999-02-23'),(10262,'Staff','1996-01-22','9999-01-01'),(10263,'Staff','1996-12-21','9999-01-01'),(10264,'Engineer','1997-07-16','9999-01-01'),(10265,'Senior Engineer','1997-09-12','9999-01-01'),(10266,'Senior Engineer','1990-05-25','9999-01-01'),(10267,'Engineer','1997-04-26','9999-01-01'),(10268,'Engineer','1986-12-17','1990-08-17'),(10269,'Engineer','1988-07-24','1996-07-24'),(10269,'Senior Engineer','1996-07-24','9999-01-01'),(10270,'Senior Staff','1999-09-26','9999-01-01'),(10270,'Staff','1991-09-26','1999-09-26'),(10271,'Engineer','1986-05-23','1992-05-22'),(10271,'Senior Engineer','1992-05-22','9999-01-01'),(10272,'Staff','1997-10-23','9999-01-01'),(10273,'Senior Staff','1991-11-06','9999-01-01'),(10273,'Staff','1985-11-06','1991-11-06'),(10274,'Engineer','1997-02-02','9999-01-01'),(10275,'Senior Engineer','1987-09-08','9999-01-01'),(10276,'Engineer','1986-10-19','1993-10-19'),(10276,'Senior Engineer','1993-10-19','2000-02-04'),(10277,'Senior Staff','1991-06-16','9999-01-01'),(10277,'Staff','1985-06-16','1991-06-16'),(10278,'Engineer','1993-07-02','1997-02-14'),(10279,'Engineer','1995-04-26','9999-01-01'),(10280,'Staff','1995-01-27','9999-01-01'),(10281,'Engineer','1994-12-03','2000-12-02'),(10281,'Senior Engineer','2000-12-02','9999-01-01'),(10282,'Assistant Engineer','1996-05-02','2001-05-02'),(10282,'Engineer','2001-05-02','9999-01-01'),(10283,'Engineer','1988-05-25','1995-05-26'),(10283,'Senior Engineer','1995-05-26','9999-01-01'),(10284,'Engineer','1999-07-06','9999-01-01'),(10285,'Staff','1995-05-25','9999-01-01'),(10286,'Staff','1994-12-24','1999-01-24'),(10287,'Senior Staff','2000-12-28','9999-01-01'),(10287,'Staff','1992-12-28','2000-12-28'),(10288,'Technique Leader','1994-08-29','9999-01-01'),(10289,'Technique Leader','1993-03-12','2002-01-31'),(10290,'Engineer','1991-09-18','1997-09-17'),(10290,'Senior Engineer','1997-09-17','9999-01-01'),(10291,'Senior Staff','1994-03-30','9999-01-01'),(10291,'Staff','1987-03-30','1994-03-30'),(10292,'Senior Staff','1997-06-05','9999-01-01'),(10292,'Staff','1989-06-05','1997-06-05'),(10293,'Engineer','1992-12-12','2001-12-12'),(10293,'Senior Engineer','2001-12-12','9999-01-01'),(10294,'Senior Engineer','1999-01-30','1999-05-04'),(10295,'Senior Staff','2000-06-18','9999-01-01'),(10295,'Staff','1995-06-19','2000-06-18'),(10296,'Senior Staff','1994-09-16','9999-01-01'),(10296,'Staff','1989-09-16','1994-09-16'),(10297,'Engineer','1986-05-28','1995-05-28'),(10297,'Senior Engineer','1995-05-28','9999-01-01'),(10298,'Staff','1999-04-27','9999-01-01'),(10299,'Senior Staff','1997-01-10','9999-01-01'),(10299,'Staff','1990-01-10','1997-01-10'),(10300,'Engineer','1991-05-17','1996-05-16'),(10300,'Senior Engineer','1996-05-16','9999-01-01'),(10301,'Senior Staff','1995-05-24','9999-01-01'),(10301,'Staff','1988-05-23','1995-05-24'),(10302,'Senior Staff','1994-07-22','1999-11-09'),(10302,'Staff','1986-07-22','1994-07-22'),(10303,'Senior Engineer','1990-02-05','2000-11-15'),(10304,'Senior Staff','1997-11-16','2002-05-08'),(10304,'Staff','1992-11-16','1997-11-16'),(10305,'Engineer','1988-10-31','1992-06-02'),(10306,'Staff','1993-09-06','9999-01-01'),(10307,'Engineer','1999-10-16','9999-01-01'),(10308,'Senior Staff','2001-12-29','9999-01-01'),(10308,'Staff','1992-12-29','2001-12-29'),(10309,'Assistant Engineer','1997-05-02','9999-01-01'),(10310,'Senior Engineer','1990-10-24','2001-07-26'),(10311,'Engineer','1998-11-04','9999-01-01'),(10312,'Senior Engineer','1986-08-28','9999-01-01'),(10313,'Staff','1994-10-10','9999-01-01'),(10314,'Senior Staff','1994-01-16','9999-01-01'),(10314,'Staff','1986-01-16','1994-01-16'),(10315,'Engineer','1987-08-28','1994-08-28'),(10315,'Senior Engineer','1994-08-28','9999-01-01'),(10316,'Engineer','1990-12-18','1991-01-02'),(10317,'Staff','1999-01-24','9999-01-01'),(10318,'Engineer','1987-03-23','1995-03-23'),(10318,'Senior Engineer','1995-03-23','9999-01-01'),(10319,'Senior Staff','1999-06-18','9999-01-01'),(10319,'Staff','1994-06-18','1999-06-18'),(10320,'Senior Staff','1996-11-03','2001-12-23'),(10320,'Staff','1988-11-03','1996-11-03'),(10321,'Staff','1995-07-24','1999-08-14'),(10322,'Engineer','1990-01-29','1997-01-29'),(10322,'Senior Engineer','1997-01-29','9999-01-01'),(10323,'Engineer','1991-06-06','2000-06-05'),(10323,'Senior Engineer','2000-06-05','9999-01-01'),(10324,'Engineer','1999-07-19','9999-01-01'),(10325,'Senior Staff','1990-09-20','9999-01-01'),(10326,'Staff','1998-09-02','9999-01-01'),(10327,'Engineer','1987-09-18','1993-05-22'),(10328,'Engineer','1998-07-17','9999-01-01'),(10329,'Technique Leader','1986-01-20','9999-01-01'),(10330,'Staff','1993-10-08','9999-01-01'),(10331,'Senior Staff','1991-10-29','9999-01-01'),(10331,'Staff','1986-10-29','1991-10-29'),(10332,'Engineer','1988-10-20','1994-10-20'),(10332,'Senior Engineer','1994-10-20','1997-03-07'),(10333,'Engineer','1993-01-16','1998-01-16'),(10333,'Senior Engineer','1998-01-16','9999-01-01'),(10334,'Staff','1998-02-15','9999-01-01'),(10335,'Senior Staff','1992-04-06','9999-01-01'),(10336,'Staff','1996-09-27','9999-01-01'),(10337,'Assistant Engineer','1998-04-25','9999-01-01'),(10338,'Staff','1999-12-29','9999-01-01'),(10339,'Engineer','1989-11-30','1997-11-30'),(10339,'Senior Engineer','1997-11-30','9999-01-01'),(10340,'Senior Staff','1993-03-30','9999-01-01'),(10340,'Staff','1988-03-30','1993-03-30'),(10341,'Technique Leader','1987-04-29','1998-11-11'),(10342,'Engineer','1987-07-25','1993-07-24'),(10342,'Senior Engineer','1993-07-24','9999-01-01'),(10343,'Senior Engineer','1997-10-03','9999-01-01'),(10344,'Assistant Engineer','1999-04-19','9999-01-01'),(10345,'Engineer','1993-11-08','1998-11-08'),(10345,'Senior Engineer','1998-11-08','9999-01-01'),(10346,'Staff','1992-01-17','1996-04-20'),(10347,'Staff','1998-02-20','9999-01-01'),(10348,'Technique Leader','1995-10-22','9999-01-01'),(10349,'Senior Staff','1997-09-27','9999-01-01'),(10349,'Staff','1991-09-28','1997-09-27'),(10350,'Assistant Engineer','1991-05-11','1997-05-10'),(10350,'Engineer','1997-05-10','1998-01-16'),(10351,'Staff','1995-05-01','9999-01-01'),(10352,'Engineer','1998-12-16','9999-01-01'),(10353,'Senior Staff','1989-08-24','9999-01-01'),(10354,'Senior Staff','1999-03-03','2002-01-01'),(10355,'Staff','1996-01-26','9999-01-01'),(10356,'Senior Staff','1995-06-26','9999-01-01'),(10357,'Engineer','1994-04-04','1999-04-03'),(10357,'Senior Engineer','1999-04-03','9999-01-01'),(10358,'Technique Leader','1991-02-19','9999-01-01'),(10359,'Engineer','1998-07-20','9999-01-01'),(10360,'Staff','1996-09-04','9999-01-01'),(10361,'Senior Staff','1991-10-23','9999-01-01'),(10361,'Staff','1986-10-23','1991-10-23'),(10362,'Senior Staff','1990-11-02','1997-07-16'),(10363,'Assistant Engineer','1985-09-11','1993-02-12'),(10364,'Senior Engineer','1985-11-14','9999-01-01'),(10365,'Staff','1987-10-22','1992-04-04'),(10366,'Engineer','1997-08-15','9999-01-01'),(10367,'Senior Staff','2000-06-23','9999-01-01'),(10367,'Staff','1991-06-24','2000-06-23'),(10368,'Assistant Engineer','1996-05-16','9999-01-01'),(10369,'Staff','1994-09-05','9999-01-01'),(10370,'Senior Staff','1998-04-18','9999-01-01'),(10370,'Staff','1992-04-18','1998-04-18'),(10371,'Assistant Engineer','1989-11-28','1998-11-28'),(10371,'Engineer','1998-11-28','9999-01-01'),(10372,'Technique Leader','1985-07-30','9999-01-01'),(10373,'Engineer','1997-04-26','9999-01-01'),(10374,'Staff','1993-12-08','1996-03-29'),(10375,'Senior Staff','2001-05-29','9999-01-01'),(10375,'Staff','1994-05-29','2001-05-29'),(10376,'Technique Leader','1990-12-08','9999-01-01'),(10377,'Senior Engineer','1996-08-24','9999-01-01'),(10378,'Senior Staff','1992-08-31','9999-01-01'),(10379,'Engineer','1996-07-15','9999-01-01'),(10380,'Senior Staff','1994-03-19','9999-01-01'),(10380,'Staff','1985-03-19','1994-03-19'),(10381,'Assistant Engineer','1991-12-04','2000-12-03'),(10381,'Engineer','2000-12-03','9999-01-01'),(10382,'Engineer','1998-07-01','2000-10-27'),(10383,'Engineer','1991-06-19','1997-06-18'),(10383,'Senior Engineer','1997-06-18','9999-01-01'),(10384,'Senior Staff','1991-01-16','9999-01-01'),(10384,'Staff','1986-01-16','1991-01-16'),(10385,'Engineer','1992-12-20','1998-01-23'),(10386,'Engineer','1985-08-02','1994-08-02'),(10386,'Senior Engineer','1994-08-02','9999-01-01'),(10387,'Senior Staff','1999-01-07','9999-01-01'),(10387,'Staff','1994-01-07','1999-01-07'),(10388,'Staff','1999-05-28','9999-01-01'),(10389,'Technique Leader','1999-05-13','9999-01-01'),(10390,'Technique Leader','1989-05-17','9999-01-01'),(10391,'Assistant Engineer','1993-01-28','2001-01-28'),(10391,'Engineer','2001-01-28','9999-01-01'),(10392,'Engineer','1992-03-01','1998-03-01'),(10392,'Senior Engineer','1998-03-01','9999-01-01'),(10393,'Engineer','1989-06-23','1995-06-23'),(10393,'Senior Engineer','1995-06-23','9999-01-01'),(10394,'Engineer','1991-03-14','1991-08-25'),(10395,'Engineer','1998-08-10','2001-08-13'),(10396,'Senior Engineer','1986-01-11','9999-01-01'),(10397,'Technique Leader','1993-05-21','9999-01-01'),(10398,'Senior Staff','1990-10-12','9999-01-01'),(10399,'Staff','2000-01-26','9999-01-01'),(10400,'Senior Staff','1993-10-17','9999-01-01'),(10401,'Engineer','1999-10-25','2001-04-25'),(10402,'Technique Leader','1987-01-02','9999-01-01'),(10403,'Senior Staff','2000-09-12','2001-06-15'),(10403,'Staff','1991-09-13','2000-09-12'),(10404,'Engineer','1988-08-28','1996-08-28'),(10404,'Senior Engineer','1996-08-28','9999-01-01'),(10405,'Assistant Engineer','1998-09-26','2000-12-05'),(10406,'Engineer','1996-01-26','9999-01-01'),(10407,'Senior Staff','1999-10-30','9999-01-01'),(10408,'Staff','1998-10-07','9999-01-01'),(10409,'Engineer','1997-09-26','9999-01-01'),(10410,'Staff','1993-10-16','1996-07-21'),(10411,'Senior Staff','1994-09-02','9999-01-01'),(10411,'Staff','1989-09-02','1994-09-02'),(10412,'Engineer','1991-11-21','1996-11-20'),(10412,'Senior Engineer','1996-11-20','9999-01-01'),(10413,'Senior Staff','1997-12-26','9999-01-01'),(10413,'Staff','1991-12-27','1997-12-26'),(10414,'Senior Engineer','1990-05-30','1994-12-02'),(10415,'Senior Engineer','1993-10-25','9999-01-01'),(10416,'Senior Staff','1996-03-24','9999-01-01'),(10416,'Staff','1989-03-24','1996-03-24'),(10417,'Staff','1999-06-27','9999-01-01'),(10418,'Staff','1996-10-04','9999-01-01'),(10419,'Senior Staff','2000-04-25','2002-07-06'),(10419,'Staff','1992-04-25','2000-04-25'),(10420,'Senior Staff','1997-01-16','2000-07-09'),(10420,'Staff','1988-01-17','1997-01-16'),(10421,'Senior Staff','1998-04-07','9999-01-01'),(10421,'Staff','1990-04-07','1998-04-07'),(10422,'Engineer','1995-01-03','9999-01-01'),(10423,'Staff','1999-05-27','9999-01-01'),(10424,'Senior Engineer','1989-08-07','9999-01-01'),(10425,'Engineer','1995-05-07','2001-05-06'),(10425,'Senior Engineer','2001-05-06','2002-05-06'),(10426,'Technique Leader','1985-07-06','9999-01-01'),(10427,'Senior Staff','1999-10-03','9999-01-01'),(10427,'Staff','1994-10-03','1999-10-03'),(10428,'Senior Staff','1999-06-05','9999-01-01'),(10428,'Staff','1992-06-04','1999-06-05'),(10429,'Senior Engineer','1988-09-23','9999-01-01'),(10430,'Senior Engineer','1998-07-05','9999-01-01'),(10431,'Senior Staff','1995-10-08','9999-01-01'),(10431,'Staff','1987-10-08','1995-10-08'),(10432,'Senior Staff','1996-08-12','9999-01-01'),(10432,'Staff','1990-08-13','1996-08-12'),(10433,'Assistant Engineer','1992-11-26','1999-11-27'),(10433,'Engineer','1999-11-27','9999-01-01'),(10434,'Engineer','1995-06-27','2001-06-26'),(10434,'Senior Engineer','2001-06-26','2002-06-22'),(10435,'Engineer','1996-06-08','9999-01-01'),(10436,'Senior Staff','1988-01-30','9999-01-01'),(10437,'Engineer','1996-04-12','9999-01-01'),(10438,'Assistant Engineer','1990-01-19','1997-01-19'),(10438,'Engineer','1997-01-19','9999-01-01'),(10439,'Engineer','1993-05-01','2002-05-01'),(10439,'Senior Engineer','2002-05-01','9999-01-01'),(10440,'Technique Leader','1997-04-04','9999-01-01'),(10441,'Engineer','1988-07-12','1993-07-12'),(10441,'Senior Engineer','1993-07-12','9999-01-01'),(10442,'Senior Staff','1999-02-12','2001-03-13'),(10442,'Staff','1992-02-12','1999-02-12'),(10443,'Senior Engineer','1989-08-01','2002-07-06'),(10444,'Staff','1994-10-23','9999-01-01'),(10445,'Engineer','1987-11-04','1993-11-03'),(10445,'Senior Engineer','1993-11-03','9999-01-01'),(10446,'Engineer','1996-12-25','9999-01-01'),(10447,'Assistant Engineer','1988-12-29','1997-12-29'),(10447,'Engineer','1997-12-29','2000-11-15'),(10448,'Senior Staff','2000-03-12','9999-01-01'),(10448,'Staff','1992-03-12','2000-03-12'),(10449,'Senior Staff','1994-03-28','9999-01-01'),(10449,'Staff','1987-03-28','1994-03-28'),(10450,'Engineer','1997-08-24','9999-01-01'),(10451,'Assistant Engineer','1988-03-12','1993-03-12'),(10451,'Engineer','1993-03-12','1998-03-12'),(10451,'Senior Engineer','1998-03-12','9999-01-01'),(10452,'Engineer','1995-11-12','2000-11-11'),(10452,'Senior Engineer','2000-11-11','2001-10-11'),(10453,'Senior Staff','1993-04-02','9999-01-01'),(10453,'Staff','1985-04-02','1993-04-02'),(10454,'Senior Staff','1989-04-16','9999-01-01'),(10455,'Senior Staff','2002-02-19','9999-01-01'),(10455,'Staff','1995-02-19','2002-02-19'),(10456,'Staff','2000-01-06','9999-01-01'),(10457,'Senior Engineer','1999-10-23','9999-01-01'),(10458,'Senior Staff','2002-07-05','9999-01-01'),(10458,'Staff','1994-07-05','2002-07-05'),(10459,'Staff','1997-06-28','9999-01-01'),(10460,'Engineer','1999-06-30','2001-04-15'),(10461,'Senior Staff','1992-08-02','9999-01-01'),(10461,'Staff','1987-08-03','1992-08-02'),(10462,'Senior Engineer','1996-03-25','9999-01-01'),(10463,'Staff','1994-02-17','9999-01-01'),(10464,'Senior Staff','1999-05-21','9999-01-01'),(10464,'Staff','1991-05-21','1999-05-21'),(10465,'Senior Staff','2001-12-11','9999-01-01'),(10465,'Staff','1994-12-11','2001-12-11'),(10466,'Staff','1997-08-22','2000-08-15'),(10467,'Staff','1992-05-22','1999-11-01'),(10468,'Senior Staff','1998-05-28','9999-01-01'),(10468,'Staff','1991-05-28','1998-05-28'),(10469,'Senior Engineer','1985-06-05','9999-01-01'),(10470,'Engineer','1989-09-19','1994-09-19'),(10470,'Senior Engineer','1994-09-19','9999-01-01'),(10471,'Senior Engineer','1990-11-18','9999-01-01'),(10472,'Staff','1999-12-01','2002-01-02'),(10473,'Engineer','1997-09-23','9999-01-01'),(10474,'Engineer','1987-02-21','1992-02-21'),(10474,'Senior Engineer','1992-02-21','9999-01-01'),(10475,'Engineer','1992-05-13','1994-12-30'),(10476,'Senior Staff','1994-09-20','9999-01-01'),(10476,'Staff','1987-09-20','1994-09-20'),(10477,'Engineer','1997-05-26','2002-05-26'),(10477,'Senior Engineer','2002-05-26','9999-01-01'),(10478,'Senior Staff','1992-06-09','9999-01-01'),(10479,'Senior Engineer','1993-07-24','9999-01-01'),(10480,'Staff','1988-05-18','1989-06-03'),(10481,'Engineer','1989-10-03','1998-10-03'),(10481,'Senior Engineer','1998-10-03','9999-01-01'),(10482,'Engineer','1996-02-26','9999-01-01'),(10483,'Assistant Engineer','1993-11-10','1998-11-10'),(10483,'Engineer','1998-11-10','9999-01-01'),(10484,'Senior Staff','1996-12-20','9999-01-01'),(10485,'Engineer','1996-01-21','9999-01-01'),(10486,'Engineer','1987-10-08','1996-10-07'),(10486,'Senior Engineer','1996-10-07','9999-01-01'),(10487,'Engineer','1992-08-14','2001-08-14'),(10487,'Senior Engineer','2001-08-14','9999-01-01'),(10488,'Engineer','1994-07-09','2002-07-09'),(10488,'Senior Engineer','2002-07-09','9999-01-01'),(10489,'Engineer','1989-09-10','1989-10-06'),(10490,'Senior Staff','1997-11-22','9999-01-01'),(10490,'Staff','1992-11-22','1997-11-22'),(10491,'Senior Staff','1998-01-17','9999-01-01'),(10491,'Staff','1990-01-17','1998-01-17'),(10492,'Engineer','1988-04-29','1997-04-29'),(10492,'Senior Engineer','1997-04-29','9999-01-01'),(10493,'Senior Staff','1998-10-29','9999-01-01'),(10494,'Engineer','1991-12-18','2000-12-17'),(10494,'Senior Engineer','2000-12-17','9999-01-01'),(10495,'Technique Leader','1989-09-24','9999-01-01'),(10496,'Staff','1995-08-29','1999-01-26'),(10497,'Engineer','1992-01-22','1999-01-22'),(10497,'Senior Engineer','1999-01-22','9999-01-01'),(10498,'Engineer','1994-03-09','9999-01-01'),(10499,'Senior Staff','2001-07-31','9999-01-01'),(10499,'Staff','1996-07-31','2001-07-31'),(10500,'Engineer','1996-12-16','9999-01-01'),(10501,'Engineer','1988-09-08','1995-09-09'),(10501,'Senior Engineer','1995-09-09','9999-01-01'),(10502,'Technique Leader','1993-03-04','9999-01-01'),(10503,'Engineer','1997-03-13','9999-01-01'),(10504,'Staff','1999-10-19','9999-01-01'),(10505,'Senior Staff','1994-07-23','1998-03-26'),(10505,'Staff','1985-07-23','1994-07-23'),(10506,'Senior Engineer','1996-12-01','9999-01-01'),(10507,'Senior Staff','1999-09-30','9999-01-01'),(10507,'Staff','1990-09-30','1999-09-30'),(10508,'Engineer','1991-05-01','2000-04-30'),(10508,'Senior Engineer','2000-04-30','9999-01-01'),(10509,'Senior Staff','1997-10-06','9999-01-01'),(10509,'Staff','1992-10-06','1997-10-06'),(10510,'Senior Staff','1997-04-20','9999-01-01'),(10510,'Staff','1990-04-20','1997-04-20'),(10511,'Assistant Engineer','1992-01-27','2000-01-27'),(10511,'Engineer','2000-01-27','9999-01-01'),(10512,'Senior Staff','1998-11-28','9999-01-01'),(10512,'Staff','1989-11-28','1998-11-28'),(10513,'Senior Staff','1997-04-01','9999-01-01'),(10513,'Staff','1991-04-02','1997-04-01'),(10514,'Staff','1992-04-29','1995-04-02'),(10515,'Senior Staff','1997-01-06','1998-07-21'),(10515,'Staff','1990-01-06','1997-01-06'),(10516,'Engineer','1985-10-19','1994-10-19'),(10516,'Senior Engineer','1994-10-19','9999-01-01'),(10517,'Senior Staff','1990-12-25','9999-01-01'),(10518,'Technique Leader','1993-09-03','9999-01-01'),(10519,'Senior Staff','2000-12-05','2001-10-13'),(10519,'Staff','1992-12-05','2000-12-05'),(10520,'Senior Engineer','1996-09-05','9999-01-01'),(10521,'Senior Staff','1997-05-11','9999-01-01'),(10521,'Staff','1989-05-11','1997-05-11'),(10522,'Senior Staff','1995-12-12','9999-01-01'),(10522,'Staff','1986-12-12','1995-12-12'),(10523,'Engineer','1989-12-23','1994-12-23'),(10523,'Senior Engineer','1994-12-23','9999-01-01'),(10524,'Engineer','1985-10-09','1993-10-09'),(10524,'Senior Engineer','1993-10-09','9999-01-01'),(10525,'Senior Staff','1990-07-08','1995-12-20'),(10526,'Engineer','1988-02-27','1997-02-26'),(10526,'Senior Engineer','1997-02-26','9999-01-01'),(10527,'Technique Leader','1996-01-25','9999-01-01'),(10528,'Senior Engineer','1993-10-28','9999-01-01'),(10529,'Assistant Engineer','1997-07-04','9999-01-01'),(10530,'Engineer','1987-09-23','1994-09-23'),(10530,'Senior Engineer','1994-09-23','9999-01-01'),(10531,'Staff','1995-03-16','9999-01-01'),(10532,'Senior Staff','1993-05-18','9999-01-01'),(10532,'Staff','1986-05-18','1993-05-18'),(10533,'Senior Staff','1996-08-16','9999-01-01'),(10533,'Staff','1990-08-17','1996-08-16'),(10534,'Staff','1998-01-26','2001-03-03'),(10535,'Senior Staff','1996-08-21','9999-01-01'),(10535,'Staff','1991-08-22','1996-08-21'),(10536,'Senior Staff','1997-10-07','9999-01-01'),(10536,'Staff','1988-10-07','1997-10-07'),(10537,'Senior Staff','1996-09-25','9999-01-01'),(10538,'Senior Engineer','1987-07-23','1998-12-13'),(10539,'Senior Staff','1990-06-05','9999-01-01'),(10540,'Engineer','1994-05-03','2002-05-03'),(10540,'Senior Engineer','2002-05-03','9999-01-01'),(10541,'Staff','1986-02-28','1986-10-01'),(10542,'Senior Engineer','1992-02-07','9999-01-01'),(10543,'Staff','1998-11-24','9999-01-01'),(10544,'Senior Staff','1995-04-29','9999-01-01'),(10545,'Engineer','1990-06-30','1996-06-29'),(10545,'Senior Engineer','1996-06-29','9999-01-01'),(10546,'Senior Staff','1998-04-14','9999-01-01'),(10546,'Staff','1991-04-14','1998-04-14'),(10547,'Technique Leader','1988-02-14','1989-06-19'),(10548,'Senior Staff','1993-07-04','9999-01-01'),(10548,'Staff','1986-07-04','1993-07-04'),(10549,'Engineer','1996-10-11','2001-10-11'),(10549,'Senior Engineer','2001-10-11','9999-01-01'),(10550,'Engineer','1985-02-03','1994-02-03'),(10550,'Senior Engineer','1994-02-03','9999-01-01'),(10551,'Engineer','1988-08-06','1995-08-07'),(10551,'Senior Engineer','1995-08-07','9999-01-01'),(10552,'Senior Engineer','1998-08-31','9999-01-01'),(10553,'Engineer','1990-07-22','1996-07-21'),(10553,'Senior Engineer','1996-07-21','9999-01-01'),(10554,'Engineer','1990-11-28','1995-11-28'),(10554,'Senior Engineer','1995-11-28','9999-01-01'),(10555,'Staff','1992-05-22','1993-01-19'),(10556,'Senior Staff','1997-04-15','9999-01-01'),(10556,'Staff','1992-04-15','1997-04-15'),(10557,'Engineer','1992-09-18','2001-09-18'),(10557,'Senior Engineer','2001-09-18','9999-01-01'),(10558,'Senior Engineer','1992-04-22','9999-01-01'),(10559,'Staff','1999-04-05','9999-01-01'),(10560,'Engineer','1996-09-03','9999-01-01'),(10561,'Senior Staff','1997-06-30','9999-01-01'),(10562,'Engineer','1997-07-24','2002-07-24'),(10562,'Senior Engineer','2002-07-24','9999-01-01'),(10563,'Engineer','1992-09-29','1999-09-30'),(10563,'Senior Engineer','1999-09-30','2002-01-01'),(10564,'Engineer','1995-11-23','2000-11-22'),(10564,'Senior Engineer','2000-11-22','9999-01-01'),(10565,'Senior Engineer','1996-08-05','9999-01-01'),(10566,'Engineer','1990-08-23','1997-10-26'),(10567,'Senior Staff','1997-10-18','9999-01-01'),(10567,'Staff','1992-10-18','1997-10-18'),(10568,'Staff','1995-07-08','9999-01-01'),(10569,'Senior Staff','1996-03-12','9999-01-01'),(10569,'Staff','1987-03-13','1996-03-12'),(10570,'Senior Staff','1995-06-16','2000-03-25'),(10570,'Staff','1986-06-16','1995-06-16'),(10571,'Assistant Engineer','1985-02-24','1991-02-24'),(10571,'Engineer','1991-02-24','1997-02-23'),(10571,'Senior Engineer','1997-02-23','9999-01-01'),(10572,'Engineer','1988-02-16','1994-02-15'),(10572,'Senior Engineer','1994-02-15','9999-01-01'),(10573,'Staff','1999-08-20','9999-01-01'),(10574,'Senior Staff','1999-11-15','9999-01-01'),(10575,'Senior Engineer','1988-10-04','2000-11-22'),(10576,'Senior Staff','1991-01-03','9999-01-01'),(10577,'Senior Staff','2002-07-02','9999-01-01'),(10577,'Staff','1993-07-02','2002-07-02'),(10578,'Senior Engineer','1989-11-24','9999-01-01'),(10579,'Senior Engineer','1991-06-02','9999-01-01'),(10580,'Senior Staff','1997-03-01','9999-01-01'),(10580,'Staff','1991-03-02','1997-03-01'),(10581,'Engineer','1994-04-13','1999-04-13'),(10581,'Senior Engineer','1999-04-13','9999-01-01'),(10582,'Assistant Engineer','1995-11-06','9999-01-01'),(10583,'Engineer','1985-02-14','1990-02-14'),(10583,'Senior Engineer','1990-02-14','1998-05-29'),(10584,'Engineer','1986-02-17','1993-02-17'),(10584,'Senior Engineer','1993-02-17','9999-01-01'),(10585,'Senior Engineer','1991-01-09','9999-01-01'),(10586,'Engineer','1992-02-04','2000-02-04'),(10586,'Senior Engineer','2000-02-04','9999-01-01'),(10587,'Engineer','1991-11-20','1999-11-20'),(10587,'Senior Engineer','1999-11-20','9999-01-01'),(10588,'Engineer','1988-07-25','1993-07-25'),(10588,'Senior Engineer','1993-07-25','9999-01-01'),(10589,'Senior Staff','2002-01-26','9999-01-01'),(10589,'Staff','1994-01-26','2002-01-26'),(10590,'Senior Staff','1995-04-09','9999-01-01'),(10590,'Staff','1986-04-09','1995-04-09'),(10591,'Staff','1987-06-18','1988-09-20'),(10592,'Staff','1993-09-27','9999-01-01'),(10593,'Engineer','1990-09-12','1999-09-12'),(10593,'Senior Engineer','1999-09-12','9999-01-01'),(10594,'Engineer','1988-04-02','1996-04-02'),(10594,'Senior Engineer','1996-04-02','9999-01-01'),(10595,'Senior Engineer','1989-11-24','9999-01-01'),(10596,'Senior Staff','2001-05-23','9999-01-01'),(10596,'Staff','1996-05-23','2001-05-23'),(10597,'Senior Staff','1995-04-01','9999-01-01'),(10597,'Staff','1990-04-01','1995-04-01'),(10598,'Senior Engineer','1998-06-22','2000-09-27'),(10599,'Technique Leader','1991-11-17','9999-01-01'),(10600,'Senior Staff','1997-04-27','9999-01-01'),(10600,'Staff','1992-04-27','1997-04-27'),(10601,'Staff','1999-07-24','2002-05-09'),(10602,'Staff','1989-04-23','1993-11-06'),(10603,'Staff','1995-07-20','9999-01-01'),(10604,'Engineer','1990-04-07','1997-04-07'),(10604,'Senior Engineer','1997-04-07','9999-01-01'),(10605,'Engineer','1993-07-01','1998-07-01'),(10605,'Senior Engineer','1998-07-01','9999-01-01'),(10606,'Engineer','1987-05-02','1992-05-01'),(10606,'Senior Engineer','1992-05-01','9999-01-01'),(10607,'Engineer','1996-01-13','9999-01-01'),(10608,'Senior Engineer','1986-05-25','1991-06-02'),(10609,'Assistant Engineer','1994-12-03','1999-12-03'),(10609,'Engineer','1999-12-03','9999-01-01'),(10610,'Engineer','1997-03-30','9999-01-01'),(10611,'Senior Engineer','1989-09-16','9999-01-01'),(10612,'Assistant Engineer','1991-09-02','1996-09-01'),(10612,'Engineer','1996-09-01','2001-09-01'),(10612,'Senior Engineer','2001-09-01','9999-01-01'),(10613,'Staff','1997-10-13','9999-01-01'),(10614,'Engineer','1990-03-03','1998-03-03'),(10614,'Senior Engineer','1998-03-03','9999-01-01'),(10615,'Senior Staff','2002-03-10','9999-01-01'),(10615,'Staff','1996-03-10','2002-03-10'),(10616,'Staff','1996-11-07','9999-01-01'),(10617,'Senior Staff','1991-10-30','2001-10-03'),(10618,'Engineer','1994-10-07','9999-01-01'),(10619,'Senior Staff','1993-04-09','9999-01-01'),(10620,'Assistant Engineer','1990-11-10','1999-11-10'),(10620,'Engineer','1999-11-10','9999-01-01'),(10621,'Engineer','1992-02-10','1999-02-10'),(10621,'Senior Engineer','1999-02-10','9999-01-01'),(10622,'Engineer','1989-05-15','1996-05-15'),(10622,'Senior Engineer','1996-05-15','9999-01-01'),(10623,'Engineer','1992-01-15','1999-01-15'),(10623,'Senior Engineer','1999-01-15','9999-01-01'),(10624,'Technique Leader','1990-05-07','9999-01-01'),(10625,'Engineer','1986-07-15','1991-07-15'),(10625,'Senior Engineer','1991-07-15','1995-01-13'),(10626,'Staff','1996-12-03','9999-01-01'),(10627,'Senior Staff','2001-03-12','9999-01-01'),(10627,'Staff','1995-03-13','2001-03-12'),(10628,'Assistant Engineer','1987-03-14','1994-03-14'),(10628,'Engineer','1994-03-14','2001-03-14'),(10628,'Senior Engineer','2001-03-14','9999-01-01'),(10629,'Staff','1999-10-20','2001-12-07'),(10630,'Engineer','1997-01-13','9999-01-01'),(10631,'Engineer','1994-10-18','9999-01-01'),(10632,'Technique Leader','1985-07-25','1987-11-20'),(10633,'Staff','1997-05-16','9999-01-01'),(10634,'Assistant Engineer','1990-11-11','1995-11-11'),(10634,'Engineer','1995-11-11','2000-11-10'),(10634,'Senior Engineer','2000-11-10','9999-01-01'),(10635,'Senior Engineer','1991-09-22','1999-12-20'),(10636,'Staff','1996-09-25','9999-01-01'),(10637,'Senior Staff','1998-07-11','2000-01-19'),(10637,'Staff','1993-07-11','1998-07-11'),(10638,'Senior Staff','2000-11-09','9999-01-01'),(10638,'Staff','1994-11-10','2000-11-09'),(10639,'Engineer','1992-10-25','1999-10-26'),(10639,'Senior Engineer','1999-10-26','9999-01-01'),(10640,'Senior Staff','1992-12-04','9999-01-01'),(10641,'Assistant Engineer','1993-03-21','1999-03-21'),(10641,'Engineer','1999-03-21','9999-01-01'),(10642,'Engineer','1998-10-05','9999-01-01'),(10643,'Engineer','1987-11-11','1994-11-11'),(10643,'Senior Engineer','1994-11-11','9999-01-01'),(10644,'Senior Staff','1994-05-29','1995-08-25'),(10644,'Staff','1985-05-29','1994-05-29'),(10645,'Engineer','1988-03-01','1995-03-02'),(10645,'Senior Engineer','1995-03-02','9999-01-01'),(10646,'Senior Staff','2002-01-30','9999-01-01'),(10646,'Staff','1996-01-31','2002-01-30'),(10647,'Assistant Engineer','1997-09-03','9999-01-01'),(10648,'Engineer','1988-02-16','1993-02-15'),(10648,'Senior Engineer','1993-02-15','9999-01-01'),(10649,'Senior Staff','1998-06-23','9999-01-01'),(10650,'Assistant Engineer','1992-10-04','2000-10-04'),(10650,'Engineer','2000-10-04','9999-01-01'),(10651,'Senior Staff','2002-01-07','9999-01-01'),(10651,'Staff','1996-01-08','2002-01-07'),(10652,'Staff','1990-02-12','1992-01-13'),(10653,'Senior Engineer','1987-04-30','9999-01-01'),(10654,'Engineer','1990-03-25','1999-03-25'),(10654,'Senior Engineer','1999-03-25','9999-01-01'),(10655,'Senior Staff','1997-07-04','9999-01-01'),(10656,'Engineer','1988-06-21','1993-06-21'),(10656,'Senior Engineer','1993-06-21','9999-01-01'),(10657,'Senior Staff','1999-03-27','9999-01-01'),(10657,'Staff','1992-03-26','1999-03-27'),(10658,'Senior Staff','1994-04-29','9999-01-01'),(10659,'Engineer','1995-06-01','2000-05-31'),(10659,'Senior Engineer','2000-05-31','9999-01-01'),(10660,'Senior Engineer','1988-08-12','1991-07-12'),(10661,'Senior Staff','1993-01-11','9999-01-01'),(10661,'Staff','1988-01-12','1993-01-11'),(10662,'Engineer','1999-12-17','9999-01-01'),(10663,'Technique Leader','1993-01-23','9999-01-01'),(10664,'Engineer','1989-12-24','1998-12-24'),(10664,'Senior Engineer','1998-12-24','9999-01-01'),(10665,'Engineer','1988-01-23','1995-01-23'),(10665,'Senior Engineer','1995-01-23','2000-07-13'),(10666,'Senior Staff','1998-05-20','9999-01-01'),(10666,'Staff','1989-05-20','1998-05-20'),(10667,'Senior Staff','1999-07-28','9999-01-01'),(10668,'Staff','1997-11-28','1999-09-03'),(10669,'Senior Staff','2001-11-17','9999-01-01'),(10669,'Staff','1996-11-17','2001-11-17'),(10670,'Senior Staff','1993-03-23','9999-01-01'),(10670,'Staff','1988-03-23','1993-03-23'),(10671,'Senior Staff','2001-09-13','9999-01-01'),(10671,'Staff','1995-09-14','2001-09-13'),(10672,'Senior Engineer','1991-09-29','1996-04-19'),(10673,'Engineer','1994-07-29','1998-01-14'),(10674,'Engineer','1999-03-17','9999-01-01'),(10675,'Senior Staff','1993-02-02','9999-01-01'),(10676,'Engineer','1999-09-04','9999-01-01'),(10677,'Engineer','1999-10-13','9999-01-01'),(10678,'Engineer','1987-08-02','1995-08-02'),(10678,'Senior Engineer','1995-08-02','9999-01-01'),(10679,'Senior Staff','1997-05-13','9999-01-01'),(10679,'Staff','1990-05-13','1997-05-13'),(10680,'Senior Engineer','1992-11-21','1998-12-08'),(10681,'Staff','1995-10-02','9999-01-01'),(10682,'Senior Staff','1990-11-09','9999-01-01'),(10683,'Senior Engineer','1997-06-23','9999-01-01'),(10684,'Engineer','1999-10-28','9999-01-01'),(10685,'Senior Staff','1995-12-27','1996-10-20'),(10686,'Senior Engineer','1987-05-17','9999-01-01'),(10687,'Senior Staff','1999-03-13','9999-01-01'),(10687,'Staff','1990-03-13','1999-03-13'),(10688,'Senior Staff','1986-04-13','9999-01-01'),(10689,'Senior Staff','1993-08-05','9999-01-01'),(10689,'Staff','1988-08-05','1993-08-05'),(10690,'Engineer','1989-08-22','1994-08-22'),(10690,'Senior Engineer','1994-08-22','9999-01-01'),(10691,'Technique Leader','1989-09-17','9999-01-01'),(10692,'Senior Staff','2000-03-22','9999-01-01'),(10692,'Staff','1993-03-22','2000-03-22'),(10693,'Senior Staff','1991-01-08','9999-01-01'),(10693,'Staff','1986-01-08','1991-01-08'),(10694,'Senior Staff','1993-01-25','2001-07-11'),(10694,'Staff','1988-01-26','1993-01-25'),(10695,'Engineer','1998-05-19','9999-01-01'),(10696,'Technique Leader','1991-09-09','9999-01-01'),(10697,'Staff','1999-08-29','9999-01-01'),(10698,'Senior Engineer','1994-12-08','9999-01-01'),(10699,'Engineer','1985-11-17','1993-11-17'),(10699,'Senior Engineer','1993-11-17','9999-01-01'),(10700,'Engineer','1998-04-14','2002-06-27'),(10701,'Senior Staff','1994-10-27','9999-01-01'),(10701,'Staff','1986-10-27','1994-10-27'),(10702,'Senior Engineer','1991-01-14','9999-01-01'),(10703,'Engineer','1996-05-12','2002-05-12'),(10703,'Senior Engineer','2002-05-12','9999-01-01'),(10704,'Senior Staff','2001-02-16','9999-01-01'),(10704,'Staff','1995-02-17','2001-02-16'),(10705,'Senior Staff','1996-07-17','9999-01-01'),(10705,'Staff','1990-07-18','1996-07-17'),(10706,'Technique Leader','1994-05-03','2001-04-08'),(10707,'Engineer','1990-12-24','1997-12-24'),(10707,'Senior Engineer','1997-12-24','9999-01-01'),(10708,'Staff','1999-11-09','9999-01-01'),(10709,'Engineer','1986-02-02','1992-02-02'),(10709,'Senior Engineer','1992-02-02','9999-01-01'),(10710,'Senior Staff','2000-07-08','9999-01-01'),(10710,'Staff','1995-07-09','2000-07-08'),(10711,'Engineer','1991-06-21','1996-06-20'),(10711,'Senior Engineer','1996-06-20','9999-01-01'),(10712,'Engineer','1994-08-18','2001-08-18'),(10712,'Senior Engineer','2001-08-18','9999-01-01'),(10713,'Senior Staff','1986-04-26','2001-02-21'),(10714,'Engineer','1999-11-24','9999-01-01'),(10715,'Engineer','1999-10-28','9999-01-01'),(10716,'Engineer','1987-08-12','1993-08-11'),(10716,'Senior Engineer','1993-08-11','9999-01-01'),(10717,'Senior Staff','1996-09-12','9999-01-01'),(10717,'Staff','1991-09-13','1996-09-12'),(10718,'Engineer','1988-07-21','1997-07-21'),(10718,'Senior Engineer','1997-07-21','9999-01-01'),(10719,'Assistant Engineer','1995-09-05','1999-07-31'),(10720,'Senior Staff','1996-06-26','9999-01-01'),(10721,'Staff','1999-07-15','9999-01-01'),(10722,'Senior Staff','1994-01-17','2000-04-14'),(10722,'Staff','1989-01-17','1994-01-17'),(10723,'Technique Leader','1997-07-14','9999-01-01'),(10724,'Engineer','1995-12-07','2001-12-06'),(10724,'Senior Engineer','2001-12-06','9999-01-01'),(10725,'Senior Staff','1990-09-08','9999-01-01'),(10726,'Engineer','1992-02-25','2001-02-24'),(10726,'Senior Engineer','2001-02-24','9999-01-01'),(10727,'Senior Staff','1998-01-08','2000-06-06'),(10727,'Staff','1991-01-08','1998-01-08'),(10728,'Engineer','1989-12-09','1998-12-09'),(10728,'Senior Engineer','1998-12-09','9999-01-01'),(10729,'Senior Engineer','1986-04-20','9999-01-01'),(10730,'Senior Engineer','1996-05-14','1998-06-07'),(10731,'Senior Staff','1994-02-20','2000-10-09'),(10731,'Staff','1987-02-20','1994-02-20'),(10732,'Senior Engineer','1994-12-21','9999-01-01'),(10733,'Senior Staff','2002-02-19','9999-01-01'),(10733,'Staff','1996-02-20','2002-02-19'),(10734,'Engineer','1995-12-19','9999-01-01'),(10735,'Senior Staff','1993-10-29','9999-01-01'),(10735,'Staff','1985-10-29','1993-10-29'),(10736,'Senior Engineer','1991-09-26','9999-01-01'),(10737,'Engineer','1999-06-22','9999-01-01'),(10738,'Technique Leader','1991-04-30','9999-01-01'),(10739,'Assistant Engineer','1985-03-30','1994-03-30'),(10739,'Engineer','1994-03-30','9999-01-01'),(10740,'Engineer','1996-04-30','2002-03-17'),(10741,'Senior Staff','1997-01-06','9999-01-01'),(10741,'Staff','1989-01-06','1997-01-06'),(10742,'Technique Leader','1997-04-03','9999-01-01'),(10743,'Staff','1999-11-05','9999-01-01'),(10744,'Staff','1985-12-29','1992-06-03'),(10745,'Engineer','1988-01-23','1997-01-22'),(10745,'Senior Engineer','1997-01-22','9999-01-01'),(10746,'Technique Leader','1990-08-31','9999-01-01'),(10747,'Senior Engineer','1990-10-08','1999-09-20'),(10748,'Senior Staff','1996-08-13','9999-01-01'),(10748,'Staff','1990-08-14','1996-08-13'),(10749,'Engineer','1985-09-26','1990-09-26'),(10749,'Senior Engineer','1990-09-26','9999-01-01'),(10750,'Technique Leader','1998-11-06','9999-01-01'),(10751,'Engineer','1999-12-14','2000-12-05'),(10752,'Senior Engineer','1993-05-28','9999-01-01'),(10753,'Engineer','1985-05-17','1993-05-17'),(10753,'Senior Engineer','1993-05-17','1999-08-25'),(10754,'Senior Staff','1988-01-11','9999-01-01'),(10755,'Assistant Engineer','1995-04-01','2001-11-13'),(10756,'Senior Engineer','1997-10-07','9999-01-01'),(10757,'Engineer','1986-01-06','1991-10-18'),(10758,'Engineer','1999-07-01','9999-01-01'),(10759,'Technique Leader','1991-12-04','9999-01-01'),(10760,'Senior Staff','1997-08-22','9999-01-01'),(10761,'Staff','1992-05-30','1999-01-04'),(10762,'Senior Staff','1999-01-21','9999-01-01'),(10762,'Staff','1992-01-21','1999-01-21'),(10763,'Engineer','1987-02-23','1993-02-22'),(10763,'Senior Engineer','1993-02-22','9999-01-01'),(10764,'Engineer','1989-11-27','1998-11-27'),(10764,'Senior Engineer','1998-11-27','9999-01-01'),(10765,'Staff','1994-05-07','1994-05-11'),(10766,'Staff','1999-09-18','9999-01-01'),(10767,'Staff','1997-07-15','9999-01-01'),(10768,'Engineer','1985-07-04','1990-07-04'),(10768,'Senior Engineer','1990-07-04','9999-01-01'),(10769,'Technique Leader','1991-08-30','9999-01-01'),(10770,'Senior Staff','1987-12-25','1989-02-27'),(10771,'Senior Staff','1996-04-01','9999-01-01'),(10772,'Senior Engineer','1990-02-22','9999-01-01'),(10773,'Staff','1997-02-09','1997-11-29'),(10774,'Engineer','1990-01-26','1995-01-26'),(10774,'Senior Engineer','1995-01-26','9999-01-01'),(10775,'Engineer','1994-12-30','1999-12-30'),(10775,'Senior Engineer','1999-12-30','9999-01-01'),(10776,'Technique Leader','1986-03-16','9999-01-01'),(10777,'Engineer','1990-03-17','1996-03-16'),(10777,'Senior Engineer','1996-03-16','2001-03-27'),(10778,'Senior Staff','1986-07-04','9999-01-01'),(10779,'Senior Staff','1993-01-10','9999-01-01'),(10779,'Staff','1988-01-11','1993-01-10'),(10780,'Engineer','1994-08-01','1996-08-18'),(10781,'Senior Staff','1997-02-03','9999-01-01'),(10781,'Staff','1991-02-04','1997-02-03'),(10782,'Staff','1997-07-06','2002-03-30'),(10783,'Senior Staff','1999-05-15','9999-01-01'),(10783,'Staff','1994-05-15','1999-05-15'),(10784,'Assistant Engineer','1998-10-14','9999-01-01'),(10785,'Engineer','1994-11-11','2001-11-11'),(10785,'Senior Engineer','2001-11-11','9999-01-01'),(10786,'Senior Engineer','1997-06-06','9999-01-01'),(10787,'Senior Staff','2000-07-18','2002-07-27'),(10787,'Staff','1991-07-19','2000-07-18'),(10788,'Staff','1998-05-29','9999-01-01'),(10789,'Staff','1998-01-26','9999-01-01'),(10790,'Engineer','1999-03-02','9999-01-01'),(10791,'Engineer','1988-07-30','1995-07-31'),(10791,'Senior Engineer','1995-07-31','9999-01-01'),(10792,'Engineer','1985-08-10','1992-08-10'),(10792,'Senior Engineer','1992-08-10','1993-12-20'),(10793,'Senior Engineer','1990-09-18','9999-01-01'),(10794,'Senior Staff','2000-05-23','9999-01-01'),(10794,'Staff','1994-05-24','2000-05-23'),(10795,'Senior Staff','1999-05-03','9999-01-01'),(10795,'Staff','1993-05-03','1999-05-03'),(10796,'Technique Leader','1990-11-08','9999-01-01'),(10797,'Assistant Engineer','1988-08-21','1997-08-21'),(10797,'Engineer','1997-08-21','9999-01-01'),(10798,'Engineer','1996-09-21','2001-09-21'),(10798,'Senior Engineer','2001-09-21','9999-01-01'),(10799,'Engineer','1989-03-01','1995-03-01'),(10799,'Senior Engineer','1995-03-01','9999-01-01'),(10800,'Engineer','1993-05-20','1998-05-20'),(10800,'Senior Engineer','1998-05-20','9999-01-01'),(10801,'Engineer','1998-04-07','2001-01-15'),(10802,'Engineer','1985-08-24','1990-08-24'),(10802,'Senior Engineer','1990-08-24','9999-01-01'),(10803,'Engineer','1988-04-20','1997-04-20'),(10803,'Senior Engineer','1997-04-20','2002-04-02'),(10804,'Staff','1997-06-09','9999-01-01'),(10805,'Senior Staff','1996-05-25','9999-01-01'),(10805,'Staff','1987-05-26','1996-05-25'),(10806,'Senior Staff','2000-04-25','9999-01-01'),(10806,'Staff','1993-04-25','2000-04-25'),(10807,'Senior Staff','1999-10-19','9999-01-01'),(10808,'Senior Engineer','1987-03-07','9999-01-01'),(10809,'Engineer','1988-02-25','1994-02-24'),(10809,'Senior Engineer','1994-02-24','9999-01-01'),(10810,'Senior Staff','2000-09-06','9999-01-01'),(10810,'Staff','1994-09-07','2000-09-06'),(10811,'Engineer','1997-07-08','9999-01-01'),(10812,'Engineer','1996-09-20','1997-10-06'),(10813,'Senior Staff','1990-04-27','9999-01-01'),(10814,'Senior Staff','1998-07-17','9999-01-01'),(10814,'Staff','1993-07-17','1998-07-17'),(10815,'Senior Staff','2002-04-19','9999-01-01'),(10815,'Staff','1994-04-19','2002-04-19'),(10816,'Senior Staff','1991-05-22','9999-01-01'),(10817,'Senior Staff','1998-12-26','9999-01-01'),(10817,'Staff','1990-12-26','1998-12-26'),(10818,'Staff','1998-04-09','9999-01-01'),(10819,'Engineer','1986-08-02','1993-08-02'),(10819,'Senior Engineer','1993-08-02','1999-12-28'),(10820,'Senior Staff','1992-06-26','9999-01-01'),(10821,'Engineer','1988-10-06','1990-04-17'),(10822,'Engineer','1986-01-11','1992-01-11'),(10822,'Senior Engineer','1992-01-11','9999-01-01'),(10823,'Staff','1999-08-19','9999-01-01'),(10824,'Staff','1995-08-01','9999-01-01'),(10825,'Engineer','1993-12-04','1998-12-04'),(10825,'Senior Engineer','1998-12-04','9999-01-01'),(10826,'Senior Engineer','1993-01-22','9999-01-01'),(10827,'Staff','1996-11-07','9999-01-01'),(10828,'Staff','1986-02-14','1990-03-30'),(10829,'Staff','1993-07-21','1993-11-29'),(10830,'Senior Staff','1997-08-23','9999-01-01'),(10830,'Staff','1991-08-24','1997-08-23'),(10831,'Technique Leader','1998-02-22','9999-01-01'),(10832,'Senior Staff','1992-10-10','9999-01-01'),(10832,'Staff','1986-10-11','1992-10-10'),(10833,'Technique Leader','1998-12-23','9999-01-01'),(10834,'Assistant Engineer','1990-11-24','1999-11-24'),(10834,'Engineer','1999-11-24','9999-01-01'),(10835,'Engineer','1995-08-22','9999-01-01'),(10836,'Senior Staff','1987-08-10','9999-01-01'),(10837,'Senior Staff','1993-01-14','2002-02-22'),(10837,'Staff','1986-01-14','1993-01-14'),(10838,'Engineer','1994-04-26','2001-04-26'),(10838,'Senior Engineer','2001-04-26','9999-01-01'),(10839,'Assistant Engineer','1996-12-30','9999-01-01'),(10840,'Engineer','1993-06-04','1998-06-04'),(10840,'Senior Engineer','1998-06-04','9999-01-01'),(10841,'Senior Staff','1997-01-21','9999-01-01'),(10841,'Staff','1992-01-22','1997-01-21'),(10842,'Engineer','1986-07-14','1991-07-14'),(10842,'Senior Engineer','1991-07-14','1998-06-27'),(10843,'Engineer','1990-04-26','1998-04-26'),(10843,'Senior Engineer','1998-04-26','9999-01-01'),(10844,'Engineer','1997-04-25','9999-01-01'),(10845,'Engineer','1997-01-25','2002-01-25'),(10845,'Senior Engineer','2002-01-25','9999-01-01'),(10846,'Senior Engineer','1995-01-17','9999-01-01'),(10847,'Senior Staff','1992-07-24','9999-01-01'),(10847,'Staff','1986-07-25','1992-07-24'),(10848,'Engineer','1985-04-20','1992-04-20'),(10848,'Senior Engineer','1992-04-20','9999-01-01'),(10849,'Assistant Engineer','1995-06-25','2001-06-24'),(10849,'Engineer','2001-06-24','9999-01-01'),(10850,'Staff','1990-04-22','1995-05-11'),(10851,'Senior Staff','1999-11-21','9999-01-01'),(10851,'Staff','1994-11-21','1999-11-21'),(10852,'Technique Leader','1999-08-21','9999-01-01'),(10853,'Technique Leader','1993-05-03','9999-01-01'),(10854,'Engineer','1998-07-13','9999-01-01'),(10855,'Senior Staff','1993-03-29','9999-01-01'),(10856,'Staff','1986-12-31','1990-06-18'),(10857,'Senior Staff','1996-04-02','9999-01-01'),(10857,'Staff','1990-04-04','1996-04-02'),(10858,'Engineer','1997-01-01','2002-01-01'),(10858,'Senior Engineer','2002-01-01','9999-01-01'),(10859,'Staff','1996-05-21','9999-01-01'),(10860,'Technique Leader','1998-01-22','9999-01-01'),(10861,'Senior Engineer','1989-06-10','1992-04-12'),(10862,'Senior Staff','1992-07-23','9999-01-01'),(10862,'Staff','1985-07-23','1992-07-23'),(10863,'Engineer','1985-12-25','1991-12-25'),(10863,'Senior Engineer','1991-12-25','9999-01-01'),(10864,'Senior Staff','1992-09-24','9999-01-01'),(10864,'Staff','1986-09-25','1992-09-24'),(10865,'Staff','1993-05-29','1993-09-19'),(10866,'Senior Staff','1995-12-27','9999-01-01'),(10866,'Staff','1990-12-27','1995-12-27'),(10867,'Engineer','1997-03-23','2002-03-22'),(10868,'Engineer','1990-03-20','1999-03-20'),(10868,'Senior Engineer','1999-03-20','9999-01-01'),(10869,'Staff','1997-09-04','1998-10-15'),(10870,'Senior Engineer','1988-01-13','9999-01-01'),(10871,'Staff','1999-06-16','9999-01-01'),(10872,'Senior Staff','1996-09-05','9999-01-01'),(10872,'Staff','1990-09-06','1996-09-05'),(10873,'Staff','1994-03-23','9999-01-01'),(10874,'Engineer','1986-04-22','1992-04-21'),(10874,'Senior Engineer','1992-04-21','9999-01-01'),(10875,'Senior Engineer','1988-05-19','9999-01-01'),(10876,'Staff','1995-01-29','1999-09-14'),(10877,'Senior Staff','1986-06-06','9999-01-01'),(10878,'Staff','1997-04-25','9999-01-01'),(10879,'Senior Engineer','1985-08-15','9999-01-01'),(10880,'Engineer','1992-01-11','1997-01-10'),(10880,'Senior Engineer','1997-01-10','9999-01-01'),(10881,'Engineer','1997-02-18','1998-10-25'),(10882,'Engineer','1999-04-29','9999-01-01'),(10883,'Engineer','1996-12-28','9999-01-01'),(10884,'Engineer','1993-04-15','1998-04-15'),(10884,'Senior Engineer','1998-04-15','9999-01-01'),(10885,'Senior Staff','1991-08-19','9999-01-01'),(10886,'Engineer','1995-03-26','2000-03-25'),(10886,'Senior Engineer','2000-03-25','9999-01-01'),(10887,'Senior Engineer','1989-03-17','9999-01-01'),(10888,'Engineer','1987-06-28','1989-09-11'),(10889,'Senior Staff','1987-08-11','9999-01-01'),(10890,'Senior Staff','1990-03-10','9999-01-01'),(10891,'Assistant Engineer','1995-10-06','2001-10-05'),(10891,'Engineer','2001-10-05','9999-01-01'),(10892,'Senior Staff','1998-04-11','9999-01-01'),(10892,'Staff','1990-04-11','1998-04-11'),(10893,'Senior Staff','1995-08-23','9999-01-01'),(10893,'Staff','1989-08-23','1995-08-23'),(10894,'Engineer','1995-12-05','9999-01-01'),(10895,'Staff','1986-04-26','1987-04-13'),(10896,'Engineer','1997-11-27','9999-01-01'),(10897,'Senior Staff','1995-04-09','9999-01-01'),(10897,'Staff','1986-04-09','1995-04-09'),(10898,'Senior Engineer','1993-01-08','9999-01-01'),(10899,'Senior Staff','1999-04-05','9999-01-01'),(10899,'Staff','1990-04-05','1999-04-05'),(10900,'Senior Engineer','1995-09-07','9999-01-01'),(10901,'Staff','1998-08-05','9999-01-01'),(10902,'Assistant Engineer','1990-06-11','1990-09-25'),(10903,'Senior Staff','1997-02-14','9999-01-01'),(10903,'Staff','1989-02-14','1997-02-14'),(10904,'Engineer','1993-04-16','1999-04-16'),(10904,'Senior Engineer','1999-04-16','9999-01-01'),(10905,'Senior Engineer','1985-02-28','1986-03-07'),(10906,'Staff','1998-10-18','9999-01-01'),(10907,'Senior Staff','1995-12-26','9999-01-01'),(10907,'Staff','1988-12-25','1995-12-26'),(10908,'Senior Staff','1993-04-05','9999-01-01'),(10908,'Staff','1986-04-05','1993-04-05'),(10909,'Engineer','1993-12-26','2000-12-26'),(10909,'Senior Engineer','2000-12-26','9999-01-01'),(10910,'Senior Staff','1995-09-02','9999-01-01'),(10910,'Staff','1989-09-02','1995-09-02'),(10911,'Senior Engineer','1988-06-25','9999-01-01'),(10912,'Senior Staff','1991-04-23','1999-09-26'),(10912,'Staff','1986-04-23','1991-04-23'),(10913,'Staff','1998-10-25','9999-01-01'),(10914,'Staff','1998-03-24','1998-09-01'),(10915,'Senior Engineer','1999-10-28','9999-01-01'),(10916,'Engineer','1998-03-12','9999-01-01'),(10917,'Engineer','1993-01-30','1998-01-30'),(10917,'Senior Engineer','1998-01-30','9999-01-01'),(10918,'Staff','1990-01-29','1990-10-10'),(10919,'Staff','1999-10-30','9999-01-01'),(10920,'Senior Staff','1998-02-23','9999-01-01'),(10920,'Staff','1992-02-24','1998-02-23'),(10921,'Engineer','1986-07-27','1995-07-27'),(10921,'Senior Engineer','1995-07-27','9999-01-01'),(10922,'Staff','1996-02-02','1999-01-16'),(10923,'Senior Staff','1990-04-09','9999-01-01'),(10924,'Senior Staff','1997-08-14','9999-01-01'),(10924,'Staff','1988-08-14','1997-08-14'),(10925,'Technique Leader','1991-06-11','9999-01-01'),(10926,'Engineer','1990-04-30','1995-04-30'),(10926,'Senior Engineer','1995-04-30','9999-01-01'),(10927,'Senior Staff','1993-09-12','9999-01-01'),(10927,'Staff','1986-09-12','1993-09-12'),(10928,'Senior Staff','1997-04-06','9999-01-01'),(10928,'Staff','1991-04-07','1997-04-06'),(10929,'Senior Staff','1998-04-15','9999-01-01'),(10929,'Staff','1991-04-15','1998-04-15'),(10930,'Engineer','1991-11-22','1998-11-22'),(10930,'Senior Engineer','1998-11-22','9999-01-01'),(10931,'Technique Leader','1992-06-14','1999-09-19'),(10932,'Engineer','1994-09-09','1999-09-09'),(10932,'Senior Engineer','1999-09-09','9999-01-01'),(10933,'Senior Engineer','1993-08-02','9999-01-01'),(10934,'Staff','1995-09-17','9999-01-01'),(10935,'Staff','1994-10-17','9999-01-01'),(10936,'Senior Staff','1996-05-08','9999-01-01'),(10936,'Staff','1990-05-09','1996-05-08'),(10937,'Engineer','1988-06-16','1994-06-16'),(10937,'Senior Engineer','1994-06-16','9999-01-01'),(10938,'Senior Staff','1993-09-24','9999-01-01'),(10938,'Staff','1985-09-24','1993-09-24'),(10939,'Assistant Engineer','1997-12-11','9999-01-01'),(10940,'Engineer','1997-06-30','1999-12-02'),(10941,'Senior Staff','2001-08-22','9999-01-01'),(10941,'Staff','1993-08-22','2001-08-22'),(10942,'Engineer','1996-01-21','9999-01-01'),(10943,'Engineer','1993-05-22','1999-05-22'),(10943,'Senior Engineer','1999-05-22','9999-01-01'),(10944,'Senior Engineer','1995-09-07','9999-01-01'),(10945,'Engineer','1993-04-04','2001-04-04'),(10945,'Senior Engineer','2001-04-04','9999-01-01'),(10946,'Staff','1996-10-26','9999-01-01'),(10947,'Senior Staff','2001-11-15','9999-01-01'),(10947,'Staff','1995-11-16','2001-11-15'),(10948,'Senior Engineer','1996-09-30','1997-06-23'),(10949,'Senior Staff','1996-06-28','9999-01-01'),(10949,'Staff','1990-06-29','1996-06-28'),(10950,'Senior Engineer','1996-06-08','1998-01-13'),(10951,'Senior Staff','1994-07-06','9999-01-01'),(10951,'Staff','1989-07-06','1994-07-06'),(10952,'Senior Engineer','1986-07-22','1988-04-26'),(10953,'Senior Staff','1987-02-12','9999-01-01'),(10954,'Staff','1995-12-14','9999-01-01'),(10955,'Senior Staff','1991-09-27','9999-01-01'),(10955,'Staff','1986-09-27','1991-09-27'),(10956,'Engineer','1995-12-02','9999-01-01'),(10957,'Senior Staff','1990-10-01','9999-01-01'),(10958,'Engineer','1988-11-27','1993-11-27'),(10958,'Senior Engineer','1993-11-27','9999-01-01'),(10959,'Staff','1994-03-01','1996-04-12'),(10960,'Senior Staff','1995-07-07','9999-01-01'),(10961,'Engineer','1993-11-04','1999-11-04'),(10961,'Senior Engineer','1999-11-04','9999-01-01'),(10962,'Senior Staff','1986-12-16','9999-01-01'),(10963,'Engineer','1988-01-14','1995-04-10'),(10964,'Senior Staff','1999-05-05','9999-01-01'),(10964,'Staff','1991-05-05','1999-05-05'),(10965,'Senior Staff','1986-07-29','9999-01-01'),(10966,'Staff','1997-02-05','9999-01-01'),(10967,'Engineer','1993-08-01','1998-08-01'),(10967,'Senior Engineer','1998-08-01','9999-01-01'),(10968,'Senior Staff','1985-08-11','9999-01-01'),(10969,'Senior Engineer','1994-05-12','9999-01-01'),(10970,'Engineer','1995-11-14','9999-01-01'),(10971,'Technique Leader','1991-07-30','1998-10-24'),(10972,'Engineer','1987-06-06','1996-06-05'),(10972,'Senior Engineer','1996-06-05','9999-01-01'),(10973,'Engineer','1989-03-05','1995-03-05'),(10973,'Senior Engineer','1995-03-05','9999-01-01'),(10974,'Senior Engineer','1999-05-17','9999-01-01'),(10975,'Engineer','1992-03-30','1998-03-30'),(10975,'Senior Engineer','1998-03-30','9999-01-01'),(10976,'Technique Leader','1998-10-31','9999-01-01'),(10977,'Senior Staff','1987-08-10','1987-10-01'),(10978,'Engineer','1985-05-18','1990-05-18'),(10978,'Senior Engineer','1990-05-18','9999-01-01'),(10979,'Engineer','1986-01-27','1993-01-27'),(10979,'Senior Engineer','1993-01-27','9999-01-01'),(10980,'Engineer','1989-01-04','1997-01-04'),(10980,'Senior Engineer','1997-01-04','9999-01-01'),(10981,'Senior Staff','1992-07-07','9999-01-01'),(10982,'Senior Staff','1994-11-11','9999-01-01'),(10982,'Staff','1989-11-11','1994-11-11'),(10983,'Engineer','1988-02-22','1997-02-21'),(10983,'Senior Engineer','1997-02-21','9999-01-01'),(10984,'Senior Engineer','1988-07-09','1993-05-14'),(10985,'Engineer','1999-02-11','1999-03-10'),(10986,'Technique Leader','1985-10-11','9999-01-01'),(10987,'Engineer','1997-05-21','9999-01-01'),(10988,'Senior Engineer','1985-06-19','9999-01-01'),(10989,'Senior Staff','1991-07-20','9999-01-01'),(10989,'Staff','1985-07-20','1991-07-20'),(10990,'Technique Leader','1990-08-06','9999-01-01'),(10991,'Engineer','1999-07-13','9999-01-01'),(10992,'Engineer','1997-04-27','9999-01-01'),(10993,'Engineer','1992-05-29','2000-05-29'),(10993,'Senior Engineer','2000-05-29','9999-01-01'),(10994,'Assistant Engineer','1987-06-29','1989-05-24'),(10995,'Senior Staff','1997-07-19','9999-01-01'),(10996,'Senior Staff','1996-02-07','9999-01-01'),(10996,'Staff','1990-02-07','1996-02-07'),(10997,'Technique Leader','2000-01-04','9999-01-01'),(10998,'Staff','1996-08-07','9999-01-01'),(10999,'Technique Leader','1996-03-05','1997-04-19'),(11000,'Senior Engineer','1996-01-28','9999-01-01'); /*!40000 ALTER TABLE `titles` ENABLE KEYS */; UNLOCK TABLES; -- -- Current Database: `mysql` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysql` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mysql`; -- -- Table structure for table `columns_priv` -- DROP TABLE IF EXISTS `columns_priv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `columns_priv` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '', PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `columns_priv` -- LOCK TABLES `columns_priv` WRITE; /*!40000 ALTER TABLE `columns_priv` DISABLE KEYS */; /*!40000 ALTER TABLE `columns_priv` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `db` -- DROP TABLE IF EXISTS `db`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `db` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', PRIMARY KEY (`Host`,`Db`,`User`), KEY `User` (`User`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `db` -- LOCK TABLES `db` WRITE; /*!40000 ALTER TABLE `db` DISABLE KEYS */; /*!40000 ALTER TABLE `db` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `event` -- DROP TABLE IF EXISTS `event`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `event` ( `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `name` char(64) NOT NULL DEFAULT '', `body` longblob NOT NULL, `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `execute_at` datetime DEFAULT NULL, `interval_value` int(11) DEFAULT NULL, `interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `last_executed` datetime DEFAULT NULL, `starts` datetime DEFAULT NULL, `ends` datetime DEFAULT NULL, `status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED', `on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP', `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '', `comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `originator` int(10) unsigned NOT NULL, `time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM', `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `body_utf8` longblob, PRIMARY KEY (`db`,`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Events'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `func` -- DROP TABLE IF EXISTS `func`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `func` ( `name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `ret` tinyint(1) NOT NULL DEFAULT '0', `dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '', `type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User defined functions'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `func` -- LOCK TABLES `func` WRITE; /*!40000 ALTER TABLE `func` DISABLE KEYS */; /*!40000 ALTER TABLE `func` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `help_category` -- DROP TABLE IF EXISTS `help_category`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `help_category` ( `help_category_id` smallint(5) unsigned NOT NULL, `name` char(64) NOT NULL, `parent_category_id` smallint(5) unsigned DEFAULT NULL, `url` text NOT NULL, PRIMARY KEY (`help_category_id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help categories'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `help_category` -- LOCK TABLES `help_category` WRITE; /*!40000 ALTER TABLE `help_category` DISABLE KEYS */; INSERT INTO `help_category` VALUES (1,'Geographic',0,''),(2,'Polygon properties',35,''),(3,'Numeric Functions',39,''),(4,'WKT',35,''),(5,'Plugins',36,''),(6,'Control flow functions',39,''),(7,'MBR',35,''),(8,'Transactions',36,''),(9,'Help Metadata',36,''),(10,'Account Management',36,''),(11,'Point properties',35,''),(12,'Encryption Functions',39,''),(13,'LineString properties',35,''),(14,'Miscellaneous Functions',39,''),(15,'Logical operators',39,''),(16,'Functions and Modifiers for Use with GROUP BY',36,''),(17,'Information Functions',39,''),(18,'Storage Engines',36,''),(19,'Bit Functions',39,''),(20,'Comparison operators',39,''),(21,'Table Maintenance',36,''),(22,'User-Defined Functions',36,''),(23,'Data Types',36,''),(24,'Compound Statements',36,''),(25,'Geometry constructors',35,''),(26,'GeometryCollection properties',1,''),(27,'Administration',36,''),(28,'Data Manipulation',36,''),(29,'Utility',36,''),(30,'Language Structure',36,''),(31,'Geometry relations',35,''),(32,'Date and Time Functions',39,''),(33,'WKB',35,''),(34,'Procedures',36,''),(35,'Geographic Features',36,''),(36,'Contents',0,''),(37,'Geometry properties',35,''),(38,'String Functions',39,''),(39,'Functions',36,''),(40,'Data Definition',36,''); /*!40000 ALTER TABLE `help_category` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `help_keyword` -- DROP TABLE IF EXISTS `help_keyword`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `help_keyword` ( `help_keyword_id` int(10) unsigned NOT NULL, `name` char(64) NOT NULL, PRIMARY KEY (`help_keyword_id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help keywords'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `help_keyword` -- LOCK TABLES `help_keyword` WRITE; /*!40000 ALTER TABLE `help_keyword` DISABLE KEYS */; INSERT INTO `help_keyword` VALUES (0,'JOIN'),(1,'HOST'),(2,'SERIALIZABLE'),(3,'CONTAINS'),(4,'SRID'),(5,'AT'),(6,'SCHEDULE'),(7,'RETURNS'),(8,'MASTER_SSL_CA'),(9,'NCHAR'),(10,'ONLY'),(11,'WORK'),(12,'OPEN'),(13,'ESCAPE'),(14,'EVENTS'),(15,'MONTH'),(16,'PROFILES'),(17,'ISCLOSED'),(18,'DUPLICATE'),(19,'REPLICATION'),(20,'UNLOCK'),(21,'INNODB'),(22,'YEAR_MONTH'),(23,'WITHIN'),(24,'PREPARE'),(25,'LOCK'),(26,'NDB'),(27,'INT4'),(28,'POLYGON'),(29,'MINUTE'),(30,'SEPARATOR'),(31,'DELETE'),(32,'ON'),(33,'CONNECTION'),(34,'CLOSE'),(35,'USE'),(36,'PRIVILEGES'),(37,'SPATIAL'),(38,'SQL_BUFFER_RESULT'),(39,'SECURITY'),(40,'AUTOEXTEND_SIZE'),(41,'NDBCLUSTER'),(42,'LEVEL'),(43,'BINARY'),(44,'CURRENT_USER'),(45,'HOUR_MINUTE'),(46,'UPDATE'),(47,'PRESERVE'),(48,'INTO'),(49,'POLYFROMWKB'),(50,'VARIABLE'),(51,'ROLLBACK'),(52,'TIMESTAMP'),(53,'IMPORT'),(54,'CHECKSUM'),(55,'THEN'),(56,'ENGINES'),(57,'HANDLER'),(58,'DAY_SECOND'),(59,'HELP_DATE'),(60,'BOOLEAN'),(61,'MOD'),(62,'CLASS_ORIGIN'),(63,'MPOLYFROMWKB'),(64,'ITERATE'),(65,'DO'),(66,'DATE'),(67,'FULLTEXT'),(68,'COMMENT'),(69,'MASTER_CONNECT_RETRY'),(70,'MASTER_LOG_FILE'),(71,'PRECISION'),(72,'REQUIRE'),(73,'LONG'),(74,'OPTION'),(75,'REORGANIZE'),(76,'ELSE'),(77,'EXTERIORRING'),(78,'GEOMFROMWKB'),(79,'FROM'),(80,'MULTIPOLYGON'),(81,'LEFT'),(82,'ELSEIF'),(83,'COMPACT'),(84,'DEC'),(85,'FOR'),(86,'WARNINGS'),(87,'STRING'),(88,'CONDITION'),(89,'ENCLOSED'),(90,'AGGREGATE'),(91,'FIELDS'),(92,'KILL'),(93,'DISJOINT'),(94,'TABLESPACE'),(95,'OVERLAPS'),(96,'INFILE'),(97,'MBREQUAL'),(98,'HELP_VERSION'),(99,'ORDER'),(100,'USING'),(101,'MIDDLEINT'),(102,'GRANT'),(103,'MBRINTERSECTS'),(104,'GEOMETRYN'),(105,'GEOMETRYFROMTEXT'),(106,'FOREIGN'),(107,'CACHE'),(108,'MYSQL_ERRNO'),(109,'SCHEMAS'),(110,'LEADING'),(111,'CONSTRAINT_NAME'),(112,'CONVERT'),(113,'DYNAMIC'),(114,'POLYGONFROMTEXT'),(115,'ENVELOPE'),(116,'HAVING'),(117,'STARTING'),(118,'RELOAD'),(119,'ISSIMPLE'),(120,'AUTOCOMMIT'),(121,'REVOKE'),(122,'EXPLAIN'),(123,'CSV'),(124,'OUTFILE'),(125,'LOW_PRIORITY'),(126,'FILE'),(127,'NODEGROUP'),(128,'SCHEMA'),(129,'MLINEFROMWKB'),(130,'DUAL'),(131,'MULTIPOINTFROMWKB'),(132,'MULTIPOINTFROMTEXT'),(133,'EXTENDED'),(134,'CROSS'),(135,'CONTRIBUTORS'),(136,'NATIONAL'),(137,'GROUP'),(138,'SHA'),(139,'POINTN'),(140,'IGNORE_SERVER_IDS'),(141,'ASBINARY'),(142,'MBROVERLAPS'),(143,'OWNER'),(144,'TRUE'),(145,'CHARACTER'),(146,'SCHEMA_NAME'),(147,'TABLE'),(148,'CASCADE'),(149,'RELAY_LOG_POS'),(150,'ASWKB'),(151,'LEAVE'),(152,'MODIFY'),(153,'MATCH'),(154,'MASTER_LOG_POS'),(155,'DISTINCTROW'),(156,'X'),(157,'CURSOR'),(158,'CROSSES'),(159,'GEOMETRYCOLLECTIONFROMTEXT'),(160,'CHAIN'),(161,'FLUSH'),(162,'CREATE'),(163,'DESCRIBE'),(164,'PROCESSLIST'),(165,'DISCARD'),(166,'SOUNDS'),(167,'PACK_KEYS'),(168,'MULTILINESTRINGFROMTEXT'),(169,'INTERSECTS'),(170,'FAST'),(171,'LOOP'),(172,'VARCHARACTER'),(173,'BEFORE'),(174,'ALL'),(175,'REDUNDANT'),(176,'USER_RESOURCES'),(177,'PARTIAL'),(178,'END'),(179,'SECOND'),(180,'FLOAT8'),(181,'PREV'),(182,'MBRCONTAINS'),(183,'OR'),(184,'IDENTIFIED'),(185,'POINTFROMTEXT'),(186,'MASTER_SSL_CIPHER'),(187,'SQL_SLAVE_SKIP_COUNTER'),(188,'BOTH'),(189,'YEAR'),(190,'UNIQUE'),(191,'TRIGGERS'),(192,'RESIGNAL'),(193,'MASTER_SSL'),(194,'DATE_ADD'),(195,'LIKE'),(196,'PLUGIN'),(197,'MULTIPOINT'),(198,'FETCH'),(199,'MBRWITHIN'),(200,'COLUMN'),(201,'USAGE'),(202,'MEMORY'),(203,'QUERY'),(204,'Y'),(205,'LINES'),(206,'SQL_THREAD'),(207,'INTERIORRINGN'),(208,'NUMINTERIORRINGS'),(209,'MAX_QUERIES_PER_HOUR'),(210,'TRANSACTION'),(211,'STDDEV'),(212,'INT1'),(213,'RIGHT'),(214,'MAX_ROWS'),(215,'ALTER'),(216,'NATURAL'),(217,'MULTILINESTRING'),(218,'VARIABLES'),(219,'ESCAPED'),(220,'KEY_BLOCK_SIZE'),(221,'MPOINTFROMTEXT'),(222,'CHAR'),(223,'UPGRADE'),(224,'INTERVAL'),(225,'NAME'),(226,'REFERENCES'),(227,'STORAGE'),(228,'ISOLATION'),(229,'EVERY'),(230,'INT8'),(231,'AUTHORS'),(232,'RESTRICT'),(233,'UNCOMMITTED'),(234,'LINESTRINGFROMTEXT'),(235,'IS'),(236,'NOT'),(237,'DATAFILE'),(238,'ANALYSE'),(239,'DES_KEY_FILE'),(240,'COMPRESSED'),(241,'START'),(242,'IF'),(243,'ROWS'),(244,'PURGE'),(245,'USER'),(246,'EXIT'),(247,'MERGE'),(248,'SQL_NO_CACHE'),(249,'DELAYED'),(250,'WRITE'),(251,'DATABASE'),(252,'NULL'),(253,'POWER'),(254,'POINTFROMWKB'),(255,'USE_FRM'),(256,'TERMINATED'),(257,'NVARCHAR'),(258,'RETURN'),(259,'DIRECTORY'),(260,'AES_DECRYPT'),(261,'GLENGTH'),(262,'SHUTDOWN'),(263,'CATALOG_NAME'),(264,'FIXED'),(265,'MULTIPOLYGONFROMTEXT'),(266,'REPLACE'),(267,'REPEAT'),(268,'STARTS'),(269,'COMPLETION'),(270,'COLUMNS'),(271,'DATETIME'),(272,'MODE'),(273,'INTEGER'),(274,'VALUE'),(275,'ASWKT'),(276,'GEOMETRYCOLLECTIONFROMWKB'),(277,'DROP'),(278,'SQL_BIG_RESULT'),(279,'MASTER_SSL_VERIFY_SERVER_CERT'),(280,'SUBJECT'),(281,'CHECK'),(282,'FULL'),(283,'BY'),(284,'NO'),(285,'DAY'),(286,'DATA'),(287,'PARTITION'),(288,'REAL'),(289,'SHARE'),(290,'LINESTRING'),(291,'MASTER_HEARTBEAT_PERIOD'),(292,'MESSAGE_TEXT'),(293,'COLUMN_NAME'),(294,'LINEFROMTEXT'),(295,'X509'),(296,'WHERE'),(297,'SUBCLASS_ORIGIN'),(298,'EVENT'),(299,'IGNORE'),(300,'SUPER'),(301,'SHA2'),(302,'QUICK'),(303,'SIGNED'),(304,'OFFLINE'),(305,'FALSE'),(306,'POLYGONFROMWKB'),(307,'FORCE'),(308,'CHANGE'),(309,'TO'),(310,'POINT'),(311,'TABLE_NAME'),(312,'VARYING'),(313,'FEDERATED'),(314,'MAX_SIZE'),(315,'HOUR_SECOND'),(316,'GEOMETRYCOLLECTION'),(317,'PROCEDURE'),(318,'AGAINST'),(319,'ENDPOINT'),(320,'LONGBINARY'),(321,'INSERT'),(322,'COUNT'),(323,'PORT'),(324,'MLINEFROMTEXT'),(325,'EXISTS'),(326,'MUTEX'),(327,'RELEASE'),(328,'DEFAULT'),(329,'TYPE'),(330,'NO_WRITE_TO_BINLOG'),(331,'OPTIMIZE'),(332,'SQLSTATE'),(333,'RESET'),(334,'INSTALL'),(335,'BIGINT'),(336,'SET'),(337,'ISSUER'),(338,'STATUS'),(339,'INNER'),(340,'RELAYLOG'),(341,'MRG_MYISAM'),(342,'STOP'),(343,'TRAILING'),(344,'PARTITIONS'),(345,'CASE'),(346,'IO_THREAD'),(347,'DEALLOCATE'),(348,'CIPHER'),(349,'CONTINUE'),(350,'READ'),(351,'MINUTE_SECOND'),(352,'MIN_ROWS'),(353,'FUNCTION'),(354,'INT3'),(355,'ADD'),(356,'AVG_ROW_LENGTH'),(357,'ARCHIVE'),(358,'FLOAT4'),(359,'ASTEXT'),(360,'NUMGEOMETRIES'),(361,'VIEW'),(362,'REPEATABLE'),(363,'STARTPOINT'),(364,'CONSTRAINT_CATALOG'),(365,'MPOLYFROMTEXT'),(366,'UNSIGNED'),(367,'DECIMAL'),(368,'INDEXES'),(369,'HOSTS'),(370,'COMMIT'),(371,'SNAPSHOT'),(372,'DECLARE'),(373,'NUMPOINTS'),(374,'LOAD'),(375,'SQL_CACHE'),(376,'COLLATE'),(377,'BYTE'),(378,'LINESTRINGFROMWKB'),(379,'GLOBAL'),(380,'WHEN'),(381,'TOUCHES'),(382,'AS'),(383,'GEOMCOLLFROMTEXT'),(384,'GRANTS'),(385,'OUTER'),(386,'CURSOR_NAME'),(387,'FLOOR'),(388,'WITH'),(389,'STD'),(390,'AFTER'),(391,'DISABLE'),(392,'UNINSTALL'),(393,'POW'),(394,'SONAME'),(395,'INDEX'),(396,'DEFINER'),(397,'MASTER_BIND'),(398,'REMOVE'),(399,'MULTILINESTRINGFROMWKB'),(400,'ONLINE'),(401,'UNDO'),(402,'ZEROFILL'),(403,'CLIENT'),(404,'MASTER_PASSWORD'),(405,'RELAY_LOG_FILE'),(406,'MBRTOUCHES'),(407,'MASTER_USER'),(408,'ENGINE'),(409,'INSERT_METHOD'),(410,'SQL_CALC_FOUND_ROWS'),(411,'UNION'),(412,'MYISAM'),(413,'DESC'),(414,'TIME'),(415,'EXPANSION'),(416,'NUMERIC'),(417,'CODE'),(418,'AREA'),(419,'LOGFILE'),(420,'EXTENT_SIZE'),(421,'INT2'),(422,'MAX_UPDATES_PER_HOUR'),(423,'ENDS'),(424,'ISEMPTY'),(425,'RECOVER'),(426,'LOGS'),(427,'HEAP'),(428,'BETWEEN'),(429,'REPAIR'),(430,'MBRDISJOINT'),(431,'CALL'),(432,'VALUES'),(433,'TRUNCATE'),(434,'SHOW'),(435,'BINLOG'),(436,'AND'),(437,'HOUR'),(438,'SELECT'),(439,'DATABASES'),(440,'WRAPPER'),(441,'BOOL'),(442,'MASTER_PORT'),(443,'CONCURRENT'),(444,'HELP'),(445,'OPTIONS'),(446,'PROCESS'),(447,'CONSISTENT'),(448,'MAX_CONNECTIONS_PER_HOUR'),(449,'IN'),(450,'DUMPFILE'),(451,'POLYFROMTEXT'),(452,'EXECUTE'),(453,'CEIL'),(454,'MASTER_HOST'),(455,'SERVER'),(456,'MULTIPOLYGONFROMWKB'),(457,'MASTER_SSL_CERT'),(458,'DAY_MINUTE'),(459,'DATE_SUB'),(460,'REBUILD'),(461,'GEOMETRYFROMWKB'),(462,'PARSER'),(463,'RENAME'),(464,'GEOMFROMTEXT'),(465,'SOCKET'),(466,'STRAIGHT_JOIN'),(467,'SHA1'),(468,'PASSWORD'),(469,'OFFSET'),(470,'NEXT'),(471,'TEMPORARY'),(472,'SQL_LOG_BIN'),(473,'ERRORS'),(474,'DIMENSION'),(475,'SQL_SMALL_RESULT'),(476,'COMMITTED'),(477,'EQUALS'),(478,'DELAY_KEY_WRITE'),(479,'BEGIN'),(480,'XA'),(481,'PROFILE'),(482,'CENTROID'),(483,'MEDIUM'),(484,'SSL'),(485,'DAY_HOUR'),(486,'AES_ENCRYPT'),(487,'GEOMCOLLROMWKB'),(488,'CEILING'),(489,'LINEFROMWKB'),(490,'GEOMETRYTYPE'),(491,'SIGNAL'),(492,'PLUGINS'),(493,'SAVEPOINT'),(494,'PRIMARY'),(495,'LAST'),(496,'KEYS'),(497,'MPOINTFROMWKB'),(498,'LIMIT'),(499,'KEY'),(500,'UNTIL'),(501,'CONSTRAINT_SCHEMA'),(502,'ANALYZE'),(503,'CONSTRAINT'),(504,'SERIAL'),(505,'ACTION'),(506,'INITIAL_SIZE'),(507,'SESSION'),(508,'SLAVE'),(509,'ASC'),(510,'ENABLE'),(511,'OPTIONALLY'),(512,'DISTINCT'),(513,'LOCAL'),(514,'WHILE'),(515,'MAX_USER_CONNECTIONS'),(516,'MASTER_SSL_KEY'),(517,'NONE'),(518,'TABLES'),(519,'<>'),(520,'RLIKE'),(521,'TRIGGER'),(522,'HIGH_PRIORITY'),(523,'COLLATION'),(524,'BTREE'),(525,'COALESCE'),(526,'FIRST'),(527,'WAIT'),(528,'MASTER'),(529,'ROW_FORMAT'); /*!40000 ALTER TABLE `help_keyword` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `help_relation` -- DROP TABLE IF EXISTS `help_relation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `help_relation` ( `help_topic_id` int(10) unsigned NOT NULL, `help_keyword_id` int(10) unsigned NOT NULL, PRIMARY KEY (`help_keyword_id`,`help_topic_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='keyword-topic relation'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `help_relation` -- LOCK TABLES `help_relation` WRITE; /*!40000 ALTER TABLE `help_relation` DISABLE KEYS */; INSERT INTO `help_relation` VALUES (1,0),(356,0),(476,1),(450,2),(4,3),(5,4),(90,5),(90,6),(407,6),(98,7),(185,8),(431,9),(436,10),(146,11),(18,12),(107,12),(135,12),(346,12),(381,13),(123,14),(170,14),(425,14),(377,15),(83,16),(27,17),(105,18),(199,19),(37,20),(346,21),(471,21),(377,22),(32,23),(36,24),(238,24),(436,24),(37,25),(356,25),(471,26),(503,27),(41,28),(377,29),(361,30),(50,31),(471,31),(475,31),(1,32),(90,32),(407,32),(475,32),(176,33),(471,33),(53,34),(107,34),(1,35),(57,35),(194,35),(193,36),(199,36),(250,36),(210,37),(466,37),(356,38),(199,39),(194,40),(471,41),(450,42),(40,43),(230,43),(270,43),(90,44),(407,44),(377,45),(84,46),(105,46),(356,46),(475,46),(90,47),(407,47),(3,48),(105,48),(305,48),(356,48),(92,49),(130,50),(146,51),(436,51),(463,51),(100,52),(188,52),(422,53),(466,53),(402,54),(471,54),(29,55),(59,55),(86,55),(283,56),(346,56),(107,57),(314,57),(377,58),(110,59),(24,60),(89,60),(114,61),(174,61),(375,62),(462,62),(124,63),(125,64),(90,65),(126,65),(407,65),(499,65),(133,66),(230,66),(263,66),(377,66),(210,67),(466,67),(471,67),(90,68),(194,68),(210,68),(407,68),(471,68),(185,69),(185,70),(315,71),(199,72),(286,73),(199,74),(250,74),(466,75),(59,76),(86,76),(143,77),(144,78),(50,79),(123,79),(346,79),(356,79),(425,79),(458,79),(148,80),(1,81),(29,82),(471,83),(209,84),(180,85),(314,85),(346,85),(356,85),(421,85),(329,86),(346,86),(98,87),(180,88),(422,89),(98,90),(346,91),(422,91),(176,92),(177,93),(194,94),(416,94),(466,94),(481,94),(181,95),(131,96),(422,96),(187,97),(190,98),(50,99),(84,99),(356,99),(361,99),(466,99),(1,100),(50,100),(87,100),(253,101),(199,102),(250,102),(203,103),(213,104),(413,105),(466,106),(471,106),(475,106),(476,106),(102,107),(151,107),(305,107),(375,108),(462,108),(160,109),(346,109),(458,110),(375,111),(462,111),(230,112),(378,112),(471,113),(396,114),(240,115),(356,116),(422,117),(199,118),(245,119),(146,120),(250,121),(256,122),(422,123),(471,123),(356,124),(3,125),(37,125),(50,125),(84,125),(105,125),(131,125),(422,125),(199,126),(194,127),(155,128),(186,128),(212,128),(310,128),(346,128),(273,129),(280,130),(467,131),(426,132),(256,133),(469,133),(1,134),(7,135),(346,135),(259,136),(431,136),(49,137),(194,137),(226,137),(231,137),(356,137),(428,138),(287,139),(185,140),(293,141),(298,142),(476,143),(386,144),(131,145),(155,145),(212,145),(259,145),(332,145),(346,145),(356,145),(422,145),(431,145),(471,145),(375,146),(462,146),(65,147),(111,147),(116,147),(215,147),(277,147),(279,147),(321,147),(346,147),(402,147),(418,147),(466,147),(469,147),(471,147),(473,147),(31,148),(277,148),(471,148),(475,148),(185,149),(293,150),(311,151),(466,152),(89,153),(185,154),(356,155),(317,156),(421,157),(320,158),(247,159),(146,160),(151,161),(326,161),(17,162),(22,162),(49,162),(65,162),(78,162),(90,162),(98,162),(155,162),(194,162),(210,162),(211,162),(279,162),(303,162),(310,162),(346,162),(358,162),(394,162),(457,162),(471,162),(476,162),(256,163),(346,164),(454,164),(466,165),(379,166),(471,167),(108,168),(337,169),(418,170),(343,171),(259,172),(270,173),(39,174),(199,174),(250,174),(306,174),(356,174),(471,175),(326,176),(471,177),(29,178),(59,178),(86,178),(233,178),(327,178),(343,178),(436,178),(499,178),(377,179),(315,180),(107,181),(354,182),(359,183),(78,184),(131,184),(199,184),(362,185),(185,186),(182,187),(458,188),(377,189),(466,190),(25,191),(346,191),(375,192),(185,193),(377,194),(346,195),(379,195),(292,196),(346,196),(420,196),(382,197),(384,198),(387,199),(466,200),(199,201),(356,202),(89,203),(151,203),(176,203),(401,204),(131,205),(422,205),(54,206),(324,206),(404,207),(403,208),(199,209),(146,210),(450,210),(408,211),(24,212),(1,213),(471,214),(65,215),(159,215),(199,215),(212,215),(226,215),(234,215),(374,215),(407,215),(442,215),(466,215),(481,215),(1,216),(423,217),(346,218),(348,218),(422,219),(471,220),(426,221),(230,222),(468,222),(212,223),(418,223),(90,224),(377,224),(212,225),(199,226),(471,226),(475,226),(283,227),(450,228),(90,229),(129,230),(10,231),(346,231),(31,232),(277,232),(475,232),(450,233),(58,234),(85,235),(206,235),(369,235),(459,235),(85,236),(90,236),(155,236),(206,236),(313,236),(194,237),(481,237),(189,238),(326,239),(471,240),(146,241),(324,241),(436,241),(9,242),(29,242),(31,242),(90,242),(155,242),(186,242),(277,242),(301,242),(483,242),(131,243),(270,244),(78,245),(222,245),(330,245),(476,245),(314,246),(471,247),(356,248),(3,249),(105,249),(489,249),(37,250),(436,250),(155,251),(186,251),(212,251),(310,251),(346,251),(476,251),(85,252),(369,252),(475,252),(486,253),(485,254),(469,255),(422,256),(259,257),(494,258),(212,259),(471,259),(500,260),(504,261),(199,262),(375,263),(462,263),(209,264),(471,264),(201,265),(3,266),(131,266),(422,266),(233,267),(90,268),(90,269),(407,269),(21,270),(346,270),(422,270),(466,270),(471,270),(230,271),(89,272),(356,272),(98,273),(503,273),(3,274),(105,274),(244,274),(375,274),(462,274),(178,275),(109,276),(9,277),(31,277),(35,277),(88,277),(186,277),(231,277),(238,277),(264,277),(277,277),(301,277),(330,277),(406,277),(416,277),(417,277),(466,277),(481,277),(356,278),(185,279),(199,280),(418,281),(466,281),(471,281),(21,282),(295,282),(346,282),(454,282),(471,282),(50,283),(78,283),(84,283),(131,283),(199,283),(356,283),(361,283),(422,283),(466,283),(471,283),(471,284),(475,284),(377,285),(212,286),(422,286),(471,286),(476,286),(466,287),(471,287),(98,288),(315,288),(356,289),(47,290),(185,291),(375,292),(462,292),(375,293),(462,293),(58,294),(199,295),(50,296),(84,296),(107,296),(375,297),(462,297),(90,298),(301,298),(358,298),(407,298),(1,299),(84,299),(105,299),(131,299),(356,299),(422,299),(466,299),(199,300),(68,301),(50,302),(418,302),(469,302),(230,303),(88,304),(210,304),(466,304),(386,305),(92,306),(1,307),(185,308),(466,308),(185,309),(270,309),(463,309),(79,310),(375,311),(462,311),(259,312),(471,313),(194,314),(377,315),(97,316),(17,317),(189,317),(303,317),(328,317),(346,317),(356,317),(417,317),(442,317),(491,317),(89,318),(103,319),(286,320),(105,321),(195,321),(302,321),(489,321),(71,322),(329,322),(434,322),(476,323),(108,324),(9,325),(31,325),(90,325),(155,325),(186,325),(277,325),(301,325),(346,326),(366,326),(146,327),(436,327),(463,327),(3,328),(105,328),(155,328),(200,328),(212,328),(244,328),(466,328),(471,328),(466,329),(116,330),(326,330),(469,330),(473,330),(116,331),(466,331),(375,332),(462,332),(39,333),(120,333),(151,333),(265,333),(420,334),(221,335),(3,336),(84,336),(105,336),(130,336),(131,336),(146,336),(155,336),(182,336),(212,336),(332,336),(346,336),(356,336),(375,336),(422,336),(462,336),(466,336),(471,336),(475,336),(480,336),(497,336),(199,337),(60,338),(138,338),(215,338),(223,338),(328,338),(335,338),(346,338),(366,338),(1,339),(425,340),(471,341),(54,342),(458,343),(256,344),(59,345),(86,345),(54,346),(324,346),(238,347),(199,348),(314,349),(37,350),(107,350),(436,350),(450,350),(377,351),(471,352),(35,353),(70,353),(98,353),(211,353),(234,353),(303,353),(335,353),(346,353),(394,353),(406,353),(417,353),(253,354),(65,355),(194,355),(466,355),(481,355),(466,356),(471,356),(471,357),(168,358),(178,359),(183,360),(31,361),(159,361),(457,361),(450,362),(198,363),(375,364),(462,364),(201,365),(24,366),(129,366),(168,366),(209,366),(230,366),(315,366),(503,366),(98,367),(156,367),(230,367),(346,368),(145,369),(346,369),(146,370),(436,370),(146,371),(436,371),(180,372),(200,372),(314,372),(421,372),(225,373),(305,374),(422,374),(356,375),(155,376),(212,376),(471,376),(468,377),(455,378),(130,379),(138,379),(182,379),(348,379),(450,379),(59,380),(86,380),(241,381),(1,382),(37,382),(356,382),(247,383),(192,384),(346,384),(1,385),(375,386),(462,386),(221,387),(89,388),(199,388),(210,388),(466,388),(471,388),(261,389),(466,390),(90,391),(407,391),(466,391),(292,392),(278,393),(98,394),(1,395),(65,395),(88,395),(102,395),(210,395),(305,395),(309,395),(346,395),(466,395),(471,395),(90,396),(407,396),(185,397),(466,398),(273,399),(88,400),(210,400),(466,400),(314,401),(24,402),(129,402),(168,402),(209,402),(315,402),(503,402),(199,403),(185,404),(185,405),(300,406),(185,407),(194,408),(346,408),(366,408),(416,408),(466,408),(471,408),(481,408),(471,409),(356,410),(306,411),(471,412),(256,413),(356,413),(361,413),(230,414),(316,414),(376,414),(89,415),(209,416),(70,417),(491,417),(325,418),(49,419),(194,419),(226,419),(231,419),(194,420),(235,421),(199,422),(90,423),(334,424),(436,425),(40,426),(270,426),(346,426),(471,427),(147,428),(466,429),(469,429),(340,430),(338,431),(3,432),(105,432),(321,433),(466,433),(7,434),(10,434),(17,434),(21,434),(25,434),(34,434),(40,434),(60,434),(70,434),(71,434),(83,434),(123,434),(135,434),(138,434),(145,434),(160,434),(170,434),(192,434),(193,434),(215,434),(223,434),(279,434),(283,434),(295,434),(309,434),(310,434),(328,434),(329,434),(332,434),(335,434),(346,434),(348,434),(358,434),(366,434),(394,434),(425,434),(454,434),(490,434),(491,434),(495,434),(123,435),(349,435),(147,436),(352,436),(377,437),(3,438),(105,438),(256,438),(302,438),(356,438),(160,439),(346,439),(476,440),(24,441),(112,441),(185,442),(131,443),(422,443),(119,444),(391,444),(374,445),(476,445),(199,446),(146,447),(436,447),(199,448),(89,449),(123,449),(356,449),(425,449),(356,450),(396,451),(87,452),(199,452),(398,453),(185,454),(9,455),(374,455),(476,455),(124,456),(185,457),(377,458),(377,459),(466,460),(144,461),(210,462),(466,462),(471,462),(111,463),(222,463),(407,463),(466,463),(413,464),(476,465),(1,466),(356,466),(428,467),(78,468),(199,468),(476,468),(480,468),(356,469),(107,470),(277,471),(497,472),(71,473),(346,473),(433,474),(356,475),(450,476),(437,477),(471,478),(146,479),(327,479),(436,479),(436,480),(490,481),(439,482),(418,483),(199,484),(377,485),(446,486),(109,487),(451,488),(455,489),(456,490),(462,491),(34,492),(463,493),(466,494),(107,495),(309,496),(346,496),(466,496),(467,497),(50,498),(84,498),(107,498),(123,498),(356,498),(425,498),(65,499),(105,499),(466,499),(471,499),(475,499),(233,500),(375,501),(462,501),(466,502),(473,502),(466,503),(471,503),(244,504),(471,504),(471,505),(475,505),(194,506),(481,506),(130,507),(138,507),(348,507),(450,507),(39,508),(54,508),(90,508),(145,508),(223,508),(324,508),(407,508),(356,509),(361,509),(90,510),(407,510),(466,510),(422,511),(0,512),(96,512),(289,512),(306,512),(356,512),(361,512),(385,512),(434,512),(37,513),(116,513),(131,513),(326,513),(422,513),(469,513),(473,513),(499,514),(199,515),(185,516),(199,517),(37,518),(135,518),(295,518),(346,518),(498,519),(28,520),(22,521),(264,521),(346,521),(105,522),(356,522),(346,523),(495,523),(210,524),(466,525),(107,526),(466,526),(471,526),(194,527),(481,527),(40,528),(60,528),(185,528),(265,528),(270,528),(471,529); /*!40000 ALTER TABLE `help_relation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `help_topic` -- DROP TABLE IF EXISTS `help_topic`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `help_topic` ( `help_topic_id` int(10) unsigned NOT NULL, `name` char(64) NOT NULL, `help_category_id` smallint(5) unsigned NOT NULL, `description` text NOT NULL, `example` text NOT NULL, `url` text NOT NULL, PRIMARY KEY (`help_topic_id`), UNIQUE KEY `name` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='help topics'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `help_topic` -- LOCK TABLES `help_topic` WRITE; /*!40000 ALTER TABLE `help_topic` DISABLE KEYS */; INSERT INTO `help_topic` VALUES (0,'MIN',16,'Syntax:\nMIN([DISTINCT] expr)\n\nReturns the minimum value of expr. MIN() may take a string argument; in\nsuch cases, it returns the minimum string value. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-indexes.html. The DISTINCT\nkeyword can be used to find the minimum of the distinct values of expr,\nhowever, this produces the same result as omitting DISTINCT.\n\nMIN() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT student_name, MIN(test_score), MAX(test_score)\n -> FROM student\n -> GROUP BY student_name;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(1,'JOIN',28,'MySQL supports the following JOIN syntaxes for the table_references\npart of SELECT statements and multiple-table DELETE and UPDATE\nstatements:\n\ntable_references:\n escaped_table_reference [, escaped_table_reference] ...\n\nescaped_table_reference:\n table_reference\n | { OJ table_reference }\n\ntable_reference:\n table_factor\n | join_table\n\ntable_factor:\n tbl_name [[AS] alias] [index_hint_list]\n | table_subquery [AS] alias\n | ( table_references )\n\njoin_table:\n table_reference [INNER | CROSS] JOIN table_factor [join_condition]\n | table_reference STRAIGHT_JOIN table_factor\n | table_reference STRAIGHT_JOIN table_factor ON conditional_expr\n | table_reference {LEFT|RIGHT} [OUTER] JOIN table_reference join_condition\n | table_reference NATURAL [{LEFT|RIGHT} [OUTER]] JOIN table_factor\n\njoin_condition:\n ON conditional_expr\n | USING (column_list)\n\nindex_hint_list:\n index_hint [, index_hint] ...\n\nindex_hint:\n USE {INDEX|KEY}\n [FOR {JOIN|ORDER BY|GROUP BY}] ([index_list])\n | IGNORE {INDEX|KEY}\n [FOR {JOIN|ORDER BY|GROUP BY}] (index_list)\n | FORCE {INDEX|KEY}\n [FOR {JOIN|ORDER BY|GROUP BY}] (index_list)\n\nindex_list:\n index_name [, index_name] ...\n\nA table reference is also known as a join expression.\n\nThe syntax of table_factor is extended in comparison with the SQL\nStandard. The latter accepts only table_reference, not a list of them\ninside a pair of parentheses.\n\nThis is a conservative extension if we consider each comma in a list of\ntable_reference items as equivalent to an inner join. For example:\n\nSELECT * FROM t1 LEFT JOIN (t2, t3, t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)\n\nis equivalent to:\n\nSELECT * FROM t1 LEFT JOIN (t2 CROSS JOIN t3 CROSS JOIN t4)\n ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)\n\nIn MySQL, JOIN, CROSS JOIN, and INNER JOIN are syntactic equivalents\n(they can replace each other). In standard SQL, they are not\nequivalent. INNER JOIN is used with an ON clause, CROSS JOIN is used\notherwise.\n\nIn general, parentheses can be ignored in join expressions containing\nonly inner join operations. MySQL also supports nested joins (see\nhttp://dev.mysql.com/doc/refman/5.5/en/nested-join-optimization.html).\n\nIndex hints can be specified to affect how the MySQL optimizer makes\nuse of indexes. For more information, see\nhttp://dev.mysql.com/doc/refman/5.5/en/index-hints.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/join.html\n\n','SELECT left_tbl.*\n FROM left_tbl LEFT JOIN right_tbl ON left_tbl.id = right_tbl.id\n WHERE right_tbl.id IS NULL;\n','http://dev.mysql.com/doc/refman/5.5/en/join.html'),(2,'HEX',38,'Syntax:\nHEX(str), HEX(N)\n\nFor a string argument str, HEX() returns a hexadecimal string\nrepresentation of str where each byte of each character in str is\nconverted to two hexadecimal digits. (Multibyte characters therefore\nbecome more than two digits.) The inverse of this operation is\nperformed by the UNHEX() function.\n\nFor a numeric argument N, HEX() returns a hexadecimal string\nrepresentation of the value of N treated as a longlong (BIGINT) number.\nThis is equivalent to CONV(N,10,16). The inverse of this operation is\nperformed by CONV(HEX(N),16,10).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT 0x616263, HEX(\'abc\'), UNHEX(HEX(\'abc\'));\n -> \'abc\', 616263, \'abc\'\nmysql> SELECT HEX(255), CONV(HEX(255),16,10);\n -> \'FF\', 255\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(3,'REPLACE',28,'Syntax:\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name [(col_name,...)]\n {VALUES | VALUE} ({expr | DEFAULT},...),(...),...\n\nOr:\n\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name\n SET col_name={expr | DEFAULT}, ...\n\nOr:\n\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name [(col_name,...)]\n SELECT ...\n\nREPLACE works exactly like INSERT, except that if an old row in the\ntable has the same value as a new row for a PRIMARY KEY or a UNIQUE\nindex, the old row is deleted before the new row is inserted. See [HELP\nINSERT].\n\nREPLACE is a MySQL extension to the SQL standard. It either inserts, or\ndeletes and inserts. For another MySQL extension to standard SQL---that\neither inserts or updates---see\nhttp://dev.mysql.com/doc/refman/5.5/en/insert-on-duplicate.html.\n\n*Note*: REPLACE makes sense only if a table has a PRIMARY KEY or UNIQUE\nindex. Otherwise, it becomes equivalent to INSERT, because there is no\nindex to be used to determine whether a new row duplicates another.\n\nValues for all columns are taken from the values specified in the\nREPLACE statement. Any missing columns are set to their default values,\njust as happens for INSERT. You cannot refer to values from the current\nrow and use them in the new row. If you use an assignment such as SET\ncol_name = col_name + 1, the reference to the column name on the right\nhand side is treated as DEFAULT(col_name), so the assignment is\nequivalent to SET col_name = DEFAULT(col_name) + 1.\n\nTo use REPLACE, you must have both the INSERT and DELETE privileges for\nthe table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/replace.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/replace.html'),(4,'CONTAINS',31,'Contains(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 completely contains g2. This\ntests the opposite relationship as Within().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(5,'SRID',37,'SRID(g)\n\nReturns an integer indicating the Spatial Reference System ID for the\ngeometry value g.\n\nIn MySQL, the SRID value is just an integer associated with the\ngeometry value. All calculations are done assuming Euclidean (planar)\ngeometry.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','mysql> SELECT SRID(GeomFromText(\'LineString(1 1,2 2)\',101));\n+-----------------------------------------------+\n| SRID(GeomFromText(\'LineString(1 1,2 2)\',101)) |\n+-----------------------------------------------+\n| 101 |\n+-----------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(6,'CURRENT_TIMESTAMP',32,'Syntax:\nCURRENT_TIMESTAMP, CURRENT_TIMESTAMP()\n\nCURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(7,'SHOW CONTRIBUTORS',27,'Syntax:\nSHOW CONTRIBUTORS\n\nThe SHOW CONTRIBUTORS statement displays information about the people\nwho contribute to MySQL source or to causes that we support. For each\ncontributor, it displays Name, Location, and Comment values.\n\nThis statement is deprecated as of MySQL 5.5.29 and is removed in MySQL\n5.6.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-contributors.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-contributors.html'),(8,'VARIANCE',16,'Syntax:\nVARIANCE(expr)\n\nReturns the population standard variance of expr. This is an extension\nto standard SQL. The standard SQL function VAR_POP() can be used\ninstead.\n\nVARIANCE() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(9,'DROP SERVER',40,'Syntax:\nDROP SERVER [ IF EXISTS ] server_name\n\nDrops the server definition for the server named server_name. The\ncorresponding row in the mysql.servers table is deleted. This statement\nrequires the SUPER privilege.\n\nDropping a server for a table does not affect any FEDERATED tables that\nused this connection information when they were created. See [HELP\nCREATE SERVER].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-server.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-server.html'),(10,'SHOW AUTHORS',27,'Syntax:\nSHOW AUTHORS\n\nThe SHOW AUTHORS statement displays information about the people who\nwork on MySQL. For each author, it displays Name, Location, and Comment\nvalues.\n\nThis statement is deprecated as of MySQL 5.5.29 and is removed in MySQL\n5.6.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-authors.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-authors.html'),(11,'VAR_SAMP',16,'Syntax:\nVAR_SAMP(expr)\n\nReturns the sample variance of expr. That is, the denominator is the\nnumber of rows minus one.\n\nVAR_SAMP() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(12,'CONCAT',38,'Syntax:\nCONCAT(str1,str2,...)\n\nReturns the string that results from concatenating the arguments. May\nhave one or more arguments. If all arguments are nonbinary strings, the\nresult is a nonbinary string. If the arguments include any binary\nstrings, the result is a binary string. A numeric argument is converted\nto its equivalent string form. This is a nonbinary string as of MySQL\n5.5.3. Before 5.5.3, it is a binary string; to avoid that and produce a\nnonbinary string, you can use an explicit type cast, as in this\nexample:\n\nSELECT CONCAT(CAST(int_col AS CHAR), char_col);\n\nCONCAT() returns NULL if any argument is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT CONCAT(\'My\', \'S\', \'QL\');\n -> \'MySQL\'\nmysql> SELECT CONCAT(\'My\', NULL, \'QL\');\n -> NULL\nmysql> SELECT CONCAT(14.3);\n -> \'14.3\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(13,'GEOMETRY HIERARCHY',35,'Geometry is the base class. It is an abstract class. The instantiable\nsubclasses of Geometry are restricted to zero-, one-, and\ntwo-dimensional geometric objects that exist in two-dimensional\ncoordinate space. All instantiable geometry classes are defined so that\nvalid instances of a geometry class are topologically closed (that is,\nall defined geometries include their boundary).\n\nThe base Geometry class has subclasses for Point, Curve, Surface, and\nGeometryCollection:\n\no Point represents zero-dimensional objects.\n\no Curve represents one-dimensional objects, and has subclass\n LineString, with sub-subclasses Line and LinearRing.\n\no Surface is designed for two-dimensional objects and has subclass\n Polygon.\n\no GeometryCollection has specialized zero-, one-, and two-dimensional\n collection classes named MultiPoint, MultiLineString, and\n MultiPolygon for modeling geometries corresponding to collections of\n Points, LineStrings, and Polygons, respectively. MultiCurve and\n MultiSurface are introduced as abstract superclasses that generalize\n the collection interfaces to handle Curves and Surfaces.\n\nGeometry, Curve, Surface, MultiCurve, and MultiSurface are defined as\nnoninstantiable classes. They define a common set of methods for their\nsubclasses and are included for extensibility.\n\nPoint, LineString, Polygon, GeometryCollection, MultiPoint,\nMultiLineString, and MultiPolygon are instantiable classes.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-geometry-class-hierarchy.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-geometry-class-hierarchy.html'),(14,'CHAR FUNCTION',38,'Syntax:\nCHAR(N,... [USING charset_name])\n\nCHAR() interprets each argument N as an integer and returns a string\nconsisting of the characters given by the code values of those\nintegers. NULL values are skipped.\nBy default, CHAR() returns a binary string. To produce a string in a\ngiven character set, use the optional USING clause:\n\nmysql> SELECT CHARSET(CHAR(0x65)), CHARSET(CHAR(0x65 USING utf8));\n+---------------------+--------------------------------+\n| CHARSET(CHAR(0x65)) | CHARSET(CHAR(0x65 USING utf8)) |\n+---------------------+--------------------------------+\n| binary | utf8 |\n+---------------------+--------------------------------+\n\nIf USING is given and the result string is illegal for the given\ncharacter set, a warning is issued. Also, if strict SQL mode is\nenabled, the result from CHAR() becomes NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT CHAR(77,121,83,81,\'76\');\n -> \'MySQL\'\nmysql> SELECT CHAR(77,77.3,\'77.3\');\n -> \'MMM\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(15,'DATETIME',23,'DATETIME\n\nA date and time combination. The supported range is \'1000-01-01\n00:00:00\' to \'9999-12-31 23:59:59\'. MySQL displays DATETIME values in\n\'YYYY-MM-DD HH:MM:SS\' format, but permits assignment of values to\nDATETIME columns using either strings or numbers.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html'),(16,'SHOW CREATE TRIGGER',27,'Syntax:\nSHOW CREATE TRIGGER trigger_name\n\nThis statement shows the CREATE TRIGGER statement that creates the\nnamed trigger.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-create-trigger.html'),(17,'SHOW CREATE PROCEDURE',27,'Syntax:\nSHOW CREATE PROCEDURE proc_name\n\nThis statement is a MySQL extension. It returns the exact string that\ncan be used to re-create the named stored procedure. A similar\nstatement, SHOW CREATE FUNCTION, displays information about stored\nfunctions (see [HELP SHOW CREATE FUNCTION]).\n\nTo use either statement, you must be the user named in the routine\nDEFINER clause or have SELECT access to the mysql.proc table. If you do\nnot have privileges for the routine itself, the value displayed for the\nCreate Procedure or Create Function field will be NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-procedure.html\n\n','mysql> SHOW CREATE PROCEDURE test.simpleproc\\G\n*************************** 1. row ***************************\n Procedure: simpleproc\n sql_mode:\n Create Procedure: CREATE PROCEDURE `simpleproc`(OUT param1 INT)\n BEGIN\n SELECT COUNT(*) INTO param1 FROM t;\n END\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n\nmysql> SHOW CREATE FUNCTION test.hello\\G\n*************************** 1. row ***************************\n Function: hello\n sql_mode:\n Create Function: CREATE FUNCTION `hello`(s CHAR(20))\n RETURNS CHAR(50)\n RETURN CONCAT(\'Hello, \',s,\'!\')\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n','http://dev.mysql.com/doc/refman/5.5/en/show-create-procedure.html'),(18,'OPEN',24,'Syntax:\nOPEN cursor_name\n\nThis statement opens a previously declared cursor. For an example, see\nhttp://dev.mysql.com/doc/refman/5.5/en/cursors.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/open.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/open.html'),(19,'INTEGER',23,'INTEGER[(M)] [UNSIGNED] [ZEROFILL]\n\nThis type is a synonym for INT.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(20,'LOWER',38,'Syntax:\nLOWER(str)\n\nReturns the string str with all characters changed to lowercase\naccording to the current character set mapping. The default is latin1\n(cp1252 West European).\n\nmysql> SELECT LOWER(\'QUADRATICALLY\');\n -> \'quadratically\'\n\nLOWER() (and UPPER()) are ineffective when applied to binary strings\n(BINARY, VARBINARY, BLOB). To perform lettercase conversion, convert\nthe string to a nonbinary string:\n\nmysql> SET @str = BINARY \'New York\';\nmysql> SELECT LOWER(@str), LOWER(CONVERT(@str USING latin1));\n+-------------+-----------------------------------+\n| LOWER(@str) | LOWER(CONVERT(@str USING latin1)) |\n+-------------+-----------------------------------+\n| New York | new york |\n+-------------+-----------------------------------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(21,'SHOW COLUMNS',27,'Syntax:\nSHOW [FULL] COLUMNS {FROM | IN} tbl_name [{FROM | IN} db_name]\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW COLUMNS displays information about the columns in a given table.\nIt also works for views. The LIKE clause, if present, indicates which\ncolumn names to match. The WHERE clause can be given to select rows\nusing more general conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nSHOW COLUMNS displays information only for those columns for which you\nhave some privilege.\n\nmysql> SHOW COLUMNS FROM City;\n+------------+----------+------+-----+---------+----------------+\n| Field | Type | Null | Key | Default | Extra |\n+------------+----------+------+-----+---------+----------------+\n| Id | int(11) | NO | PRI | NULL | auto_increment |\n| Name | char(35) | NO | | | |\n| Country | char(3) | NO | UNI | | |\n| District | char(20) | YES | MUL | | |\n| Population | int(11) | NO | | 0 | |\n+------------+----------+------+-----+---------+----------------+\n5 rows in set (0.00 sec)\n\nIf the data types differ from what you expect them to be based on a\nCREATE TABLE statement, note that MySQL sometimes changes data types\nwhen you create or alter a table. The conditions under which this\noccurs are described in\nhttp://dev.mysql.com/doc/refman/5.5/en/silent-column-changes.html.\n\nThe FULL keyword causes the output to include the column collation and\ncomments, as well as the privileges you have for each column.\n\nYou can use db_name.tbl_name as an alternative to the tbl_name FROM\ndb_name syntax. In other words, these two statements are equivalent:\n\nmysql> SHOW COLUMNS FROM mytable FROM mydb;\nmysql> SHOW COLUMNS FROM mydb.mytable;\n\nSHOW COLUMNS displays the following values for each table column:\n\nField indicates the column name.\n\nType indicates the column data type.\n\nCollation indicates the collation for nonbinary string columns, or NULL\nfor other columns. This value is displayed only if you use the FULL\nkeyword.\n\nThe Null field contains YES if NULL values can be stored in the column,\nNO if not.\n\nThe Key field indicates whether the column is indexed:\n\no If Key is empty, the column either is not indexed or is indexed only\n as a secondary column in a multiple-column, nonunique index.\n\no If Key is PRI, the column is a PRIMARY KEY or is one of the columns\n in a multiple-column PRIMARY KEY.\n\no If Key is UNI, the column is the first column of a UNIQUE index. (A\n UNIQUE index permits multiple NULL values, but you can tell whether\n the column permits NULL by checking the Null field.)\n\no If Key is MUL, the column is the first column of a nonunique index in\n which multiple occurrences of a given value are permitted within the\n column.\n\nIf more than one of the Key values applies to a given column of a\ntable, Key displays the one with the highest priority, in the order\nPRI, UNI, MUL.\n\nA UNIQUE index may be displayed as PRI if it cannot contain NULL values\nand there is no PRIMARY KEY in the table. A UNIQUE index may display as\nMUL if several columns form a composite UNIQUE index; although the\ncombination of the columns is unique, each column can still hold\nmultiple occurrences of a given value.\n\nThe Default field indicates the default value that is assigned to the\ncolumn. This is NULL if the column has an explicit default of NULL, or\nif the column definition has no DEFAULT clause.\n\nThe Extra field contains any additional information that is available\nabout a given column. The value is nonempty in these cases:\nauto_increment for columns that have the AUTO_INCREMENT attribute; on\nupdate CURRENT_TIMESTAMP for TIMESTAMP columns that have the ON UPDATE\nCURRENT_TIMESTAMP attribute.\n\nPrivileges indicates the privileges you have for the column. This value\nis displayed only if you use the FULL keyword.\n\nComment indicates any comment the column has. This value is displayed\nonly if you use the FULL keyword.\n\nSHOW FIELDS is a synonym for SHOW COLUMNS. You can also list a table\'s\ncolumns with the mysqlshow db_name tbl_name command.\n\nThe DESCRIBE statement provides information similar to SHOW COLUMNS.\nSee http://dev.mysql.com/doc/refman/5.5/en/describe.html.\n\nThe SHOW CREATE TABLE, SHOW TABLE STATUS, and SHOW INDEX statements\nalso provide information about tables. See [HELP SHOW].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-columns.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-columns.html'),(22,'CREATE TRIGGER',40,'Syntax:\nCREATE\n [DEFINER = { user | CURRENT_USER }]\n TRIGGER trigger_name\n trigger_time trigger_event\n ON tbl_name FOR EACH ROW\n trigger_body\n\ntrigger_time: { BEFORE | AFTER }\n\ntrigger_event: { INSERT | UPDATE | DELETE }\n\nThis statement creates a new trigger. A trigger is a named database\nobject that is associated with a table, and that activates when a\nparticular event occurs for the table. The trigger becomes associated\nwith the table named tbl_name, which must refer to a permanent table.\nYou cannot associate a trigger with a TEMPORARY table or a view.\n\nTrigger names exist in the schema namespace, meaning that all triggers\nmust have unique names within a schema. Triggers in different schemas\ncan have the same name.\n\nThis section describes CREATE TRIGGER syntax. For additional\ndiscussion, see\nhttp://dev.mysql.com/doc/refman/5.5/en/trigger-syntax.html.\n\nCREATE TRIGGER requires the TRIGGER privilege for the table associated\nwith the trigger. The statement might also require the SUPER privilege,\ndepending on the DEFINER value, as described later in this section. If\nbinary logging is enabled, CREATE TRIGGER might require the SUPER\nprivilege, as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-logging.html.\n\nThe DEFINER clause determines the security context to be used when\nchecking access privileges at trigger activation time, as described\nlater in this section.\n\ntrigger_time is the trigger action time. It can be BEFORE or AFTER to\nindicate that the trigger activates before or after each row to be\nmodified.\n\ntrigger_event indicates the kind of operation that activates the\ntrigger. These trigger_event values are permitted:\n\no INSERT: The trigger activates whenever a new row is inserted into the\n table; for example, through INSERT, LOAD DATA, and REPLACE\n statements.\n\no UPDATE: The trigger activates whenever a row is modified; for\n example, through UPDATE statements.\n\no DELETE: The trigger activates whenever a row is deleted from the\n table; for example, through DELETE and REPLACE statements. DROP TABLE\n and TRUNCATE TABLE statements on the table do not activate this\n trigger, because they do not use DELETE. Dropping a partition does\n not activate DELETE triggers, either.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-trigger.html'),(23,'MONTH',32,'Syntax:\nMONTH(date)\n\nReturns the month for date, in the range 1 to 12 for January to\nDecember, or 0 for dates such as \'0000-00-00\' or \'2008-00-00\' that have\na zero month part.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MONTH(\'2008-02-03\');\n -> 2\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(24,'TINYINT',23,'TINYINT[(M)] [UNSIGNED] [ZEROFILL]\n\nA very small integer. The signed range is -128 to 127. The unsigned\nrange is 0 to 255.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(25,'SHOW TRIGGERS',27,'Syntax:\nSHOW TRIGGERS [{FROM | IN} db_name]\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW TRIGGERS lists the triggers currently defined for tables in a\ndatabase (the default database unless a FROM clause is given). This\nstatement returns results only for databases and tables for which you\nhave the TRIGGER privilege. The LIKE clause, if present, indicates\nwhich table names to match (not trigger names) and causes the statement\nto display triggers for those tables. The WHERE clause can be given to\nselect rows using more general conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nFor the trigger ins_sum as defined in\nhttp://dev.mysql.com/doc/refman/5.5/en/triggers.html, the output of\nthis statement is as shown here:\n\nmysql> SHOW TRIGGERS LIKE \'acc%\'\\G\n*************************** 1. row ***************************\n Trigger: ins_sum\n Event: INSERT\n Table: account\n Statement: SET @sum = @sum + NEW.amount\n Timing: BEFORE\n Created: NULL\n sql_mode:\n Definer: myname@localhost\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-triggers.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-triggers.html'),(26,'MASTER_POS_WAIT',14,'Syntax:\nMASTER_POS_WAIT(log_name,log_pos[,timeout])\n\nThis function is useful for control of master/slave synchronization. It\nblocks until the slave has read and applied all updates up to the\nspecified position in the master log. The return value is the number of\nlog events the slave had to wait for to advance to the specified\nposition. The function returns NULL if the slave SQL thread is not\nstarted, the slave\'s master information is not initialized, the\narguments are incorrect, or an error occurs. It returns -1 if the\ntimeout has been exceeded. If the slave SQL thread stops while\nMASTER_POS_WAIT() is waiting, the function returns NULL. If the slave\nis past the specified position, the function returns immediately.\n\nIf a timeout value is specified, MASTER_POS_WAIT() stops waiting when\ntimeout seconds have elapsed. timeout must be greater than 0; a zero or\nnegative timeout means no timeout.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(27,'ISCLOSED',13,'IsClosed(ls)\n\nFor a LineString value ls, IsClosed() returns 1 if ls is closed (that\nis, its StartPoint() and EndPoint() values are the same) and is simple\n(does not pass through the same point more than once).\n\nFor a MultiLineString value ls, IsClosed() returns 1 if ls is closed\n(that is, the StartPoint() and EndPoint() values are the same for each\nLineString in ls).\n\nIsClosed() returns 0 if ls is not closed, and NULL if ls is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls1 = \'LineString(1 1,2 2,3 3,2 2)\';\nmysql> SET @ls2 = \'LineString(1 1,2 2,3 3,1 1)\';\n\nmysql> SELECT IsClosed(GeomFromText(@ls1));\n+------------------------------+\n| IsClosed(GeomFromText(@ls1)) |\n+------------------------------+\n| 0 |\n+------------------------------+\n\nmysql> SELECT IsClosed(GeomFromText(@ls2));\n+------------------------------+\n| IsClosed(GeomFromText(@ls2)) |\n+------------------------------+\n| 1 |\n+------------------------------+\n\nmysql> SET @ls3 = \'MultiLineString((1 1,2 2,3 3),(4 4,5 5))\';\n\nmysql> SELECT IsClosed(GeomFromText(@ls3));\n+------------------------------+\n| IsClosed(GeomFromText(@ls3)) |\n+------------------------------+\n| 0 |\n+------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(28,'REGEXP',38,'Syntax:\nexpr REGEXP pat, expr RLIKE pat\n\nPerforms a pattern match of a string expression expr against a pattern\npat. The pattern can be an extended regular expression, the syntax for\nwhich is discussed later in this section. Returns 1 if expr matches\npat; otherwise it returns 0. If either expr or pat is NULL, the result\nis NULL. RLIKE is a synonym for REGEXP, provided for mSQL\ncompatibility.\n\nThe pattern need not be a literal string. For example, it can be\nspecified as a string expression or table column.\n\n*Note*: Because MySQL uses the C escape syntax in strings (for example,\n\"\\n\" to represent the newline character), you must double any \"\\\" that\nyou use in your REGEXP strings.\n\nREGEXP is not case sensitive, except when used with binary strings.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/regexp.html\n\n','mysql> SELECT \'Monty!\' REGEXP \'.*\';\n -> 1\nmysql> SELECT \'new*\\n*line\' REGEXP \'new\\\\*.\\\\*line\';\n -> 1\nmysql> SELECT \'a\' REGEXP \'A\', \'a\' REGEXP BINARY \'A\';\n -> 1 0\nmysql> SELECT \'a\' REGEXP \'^[a-d]\';\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/regexp.html'),(29,'IF STATEMENT',24,'Syntax:\nIF search_condition THEN statement_list\n [ELSEIF search_condition THEN statement_list] ...\n [ELSE statement_list]\nEND IF\n\nThe IF statement for stored programs implements a basic conditional\nconstruct.\n\n*Note*: There is also an IF() function, which differs from the IF\nstatement described here. See\nhttp://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html. The\nIF statement can have THEN, ELSE, and ELSEIF clauses, and it is\nterminated with END IF.\n\nIf the search_condition evaluates to true, the corresponding THEN or\nELSEIF clause statement_list executes. If no search_condition matches,\nthe ELSE clause statement_list executes.\n\nEach statement_list consists of one or more SQL statements; an empty\nstatement_list is not permitted.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/if.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/if.html'),(30,'^',19,'Syntax:\n^\n\nBitwise XOR:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 1 ^ 1;\n -> 0\nmysql> SELECT 1 ^ 0;\n -> 1\nmysql> SELECT 11 ^ 3;\n -> 8\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(31,'DROP VIEW',40,'Syntax:\nDROP VIEW [IF EXISTS]\n view_name [, view_name] ...\n [RESTRICT | CASCADE]\n\nDROP VIEW removes one or more views. You must have the DROP privilege\nfor each view. If any of the views named in the argument list do not\nexist, MySQL returns an error indicating by name which nonexisting\nviews it was unable to drop, but it also drops all of the views in the\nlist that do exist.\n\nThe IF EXISTS clause prevents an error from occurring for views that\ndon\'t exist. When this clause is given, a NOTE is generated for each\nnonexistent view. See [HELP SHOW WARNINGS].\n\nRESTRICT and CASCADE, if given, are parsed and ignored.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-view.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-view.html'),(32,'WITHIN',31,'Within(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 is spatially within g2. This\ntests the opposite relationship as Contains().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(33,'WEEK',32,'Syntax:\nWEEK(date[,mode])\n\nThis function returns the week number for date. The two-argument form\nof WEEK() enables you to specify whether the week starts on Sunday or\nMonday and whether the return value should be in the range from 0 to 53\nor from 1 to 53. If the mode argument is omitted, the value of the\ndefault_week_format system variable is used. See\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT WEEK(\'2008-02-20\');\n -> 7\nmysql> SELECT WEEK(\'2008-02-20\',0);\n -> 7\nmysql> SELECT WEEK(\'2008-02-20\',1);\n -> 8\nmysql> SELECT WEEK(\'2008-12-31\',1);\n -> 53\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(34,'SHOW PLUGINS',27,'Syntax:\nSHOW PLUGINS\n\nSHOW PLUGINS displays information about server plugins. Plugin\ninformation is also available in the INFORMATION_SCHEMA.PLUGINS table.\nSee http://dev.mysql.com/doc/refman/5.5/en/plugins-table.html.\n\nExample of SHOW PLUGINS output:\n\nmysql> SHOW PLUGINS\\G\n*************************** 1. row ***************************\n Name: binlog\n Status: ACTIVE\n Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 2. row ***************************\n Name: CSV\n Status: ACTIVE\n Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 3. row ***************************\n Name: MEMORY\n Status: ACTIVE\n Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n*************************** 4. row ***************************\n Name: MyISAM\n Status: ACTIVE\n Type: STORAGE ENGINE\nLibrary: NULL\nLicense: GPL\n...\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-plugins.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-plugins.html'),(35,'DROP FUNCTION UDF',22,'Syntax:\nDROP FUNCTION function_name\n\nThis statement drops the user-defined function (UDF) named\nfunction_name.\n\nTo drop a function, you must have the DELETE privilege for the mysql\ndatabase. This is because DROP FUNCTION removes a row from the\nmysql.func system table that records the function\'s name, type, and\nshared library name.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-function-udf.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-function-udf.html'),(36,'PREPARE',8,'Syntax:\nPREPARE stmt_name FROM preparable_stmt\n\nThe PREPARE statement prepares a SQL statement and assigns it a name,\nstmt_name, by which to refer to the statement later. The prepared\nstatement is executed with EXECUTE and released with DEALLOCATE\nPREPARE. For examples, see\nhttp://dev.mysql.com/doc/refman/5.5/en/sql-syntax-prepared-statements.h\ntml.\n\nStatement names are not case sensitive. preparable_stmt is either a\nstring literal or a user variable that contains the text of the SQL\nstatement. The text must represent a single statement, not multiple\nstatements. Within the statement, ? characters can be used as parameter\nmarkers to indicate where data values are to be bound to the query\nlater when you execute it. The ? characters should not be enclosed\nwithin quotation marks, even if you intend to bind them to string\nvalues. Parameter markers can be used only where data values should\nappear, not for SQL keywords, identifiers, and so forth.\n\nIf a prepared statement with the given name already exists, it is\ndeallocated implicitly before the new statement is prepared. This means\nthat if the new statement contains an error and cannot be prepared, an\nerror is returned and no statement with the given name exists.\n\nThe scope of a prepared statement is the session within which it is\ncreated, which as several implications:\n\no A prepared statement created in one session is not available to other\n sessions.\n\no When a session ends, whether normally or abnormally, its prepared\n statements no longer exist. If auto-reconnect is enabled, the client\n is not notified that the connection was lost. For this reason,\n clients may wish to disable auto-reconnect. See\n http://dev.mysql.com/doc/refman/5.5/en/auto-reconnect.html.\n\no A prepared statement created within a stored program continues to\n exist after the program finishes executing and can be executed\n outside the program later.\n\no A statement prepared in stored program context cannot refer to stored\n procedure or function parameters or local variables because they go\n out of scope when the program ends and would be unavailable were the\n statement to be executed later outside the program. As a workaround,\n refer instead to user-defined variables, which also have session\n scope; see\n http://dev.mysql.com/doc/refman/5.5/en/user-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/prepare.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/prepare.html'),(37,'LOCK',8,'Syntax:\nLOCK TABLES\n tbl_name [[AS] alias] lock_type\n [, tbl_name [[AS] alias] lock_type] ...\n\nlock_type:\n READ [LOCAL]\n | [LOW_PRIORITY] WRITE\n\nUNLOCK TABLES\n\nMySQL enables client sessions to acquire table locks explicitly for the\npurpose of cooperating with other sessions for access to tables, or to\nprevent other sessions from modifying tables during periods when a\nsession requires exclusive access to them. A session can acquire or\nrelease locks only for itself. One session cannot acquire locks for\nanother session or release locks held by another session.\n\nLocks may be used to emulate transactions or to get more speed when\nupdating tables. This is explained in more detail later in this\nsection.\n\nLOCK TABLES explicitly acquires table locks for the current client\nsession. Table locks can be acquired for base tables or views. You must\nhave the LOCK TABLES privilege, and the SELECT privilege for each\nobject to be locked.\n\nFor view locking, LOCK TABLES adds all base tables used in the view to\nthe set of tables to be locked and locks them automatically. If you\nlock a table explicitly with LOCK TABLES, any tables used in triggers\nare also locked implicitly, as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/lock-tables-and-triggers.html.\n\nUNLOCK TABLES explicitly releases any table locks held by the current\nsession. LOCK TABLES implicitly releases any table locks held by the\ncurrent session before acquiring new locks.\n\nAnother use for UNLOCK TABLES is to release the global read lock\nacquired with the FLUSH TABLES WITH READ LOCK statement, which enables\nyou to lock all tables in all databases. See [HELP FLUSH]. (This is a\nvery convenient way to get backups if you have a file system such as\nVeritas that can take snapshots in time.)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/lock-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/lock-tables.html'),(38,'UPDATEXML',38,'Syntax:\nUpdateXML(xml_target, xpath_expr, new_xml)\n\nThis function replaces a single portion of a given fragment of XML\nmarkup xml_target with a new XML fragment new_xml, and then returns the\nchanged XML. The portion of xml_target that is replaced matches an\nXPath expression xpath_expr supplied by the user. In MySQL 5.5, the\nXPath expression can contain at most 127 characters. (This limitation\nis lifted in MySQL 5.6.)\n\nIf no expression matching xpath_expr is found, or if multiple matches\nare found, the function returns the original xml_target XML fragment.\nAll three arguments should be strings.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/xml-functions.html\n\n','mysql> SELECT\n -> UpdateXML(\'<a><b>ccc</b><d></d></a>\', \'/a\', \'<e>fff</e>\') AS val1,\n -> UpdateXML(\'<a><b>ccc</b><d></d></a>\', \'/b\', \'<e>fff</e>\') AS val2,\n -> UpdateXML(\'<a><b>ccc</b><d></d></a>\', \'//b\', \'<e>fff</e>\') AS val3,\n -> UpdateXML(\'<a><b>ccc</b><d></d></a>\', \'/a/d\', \'<e>fff</e>\') AS val4,\n -> UpdateXML(\'<a><d></d><b>ccc</b><d></d></a>\', \'/a/d\', \'<e>fff</e>\') AS val5\n -> \\G\n\n*************************** 1. row ***************************\nval1: <e>fff</e>\nval2: <a><b>ccc</b><d></d></a>\nval3: <a><e>fff</e><d></d></a>\nval4: <a><b>ccc</b><e>fff</e></a>\nval5: <a><d></d><b>ccc</b><d></d></a>\n','http://dev.mysql.com/doc/refman/5.5/en/xml-functions.html'),(39,'RESET SLAVE',8,'Syntax:\nRESET SLAVE [ALL]\n\nRESET SLAVE makes the slave forget its replication position in the\nmaster\'s binary log. This statement is meant to be used for a clean\nstart: It deletes the master.info and relay-log.info files, all the\nrelay log files, and starts a new relay log file. To use RESET SLAVE,\nthe slave replication threads must be stopped (use STOP SLAVE if\nnecessary).\n\n*Note*: All relay log files are deleted, even if they have not been\ncompletely executed by the slave SQL thread. (This is a condition\nlikely to exist on a replication slave if you have issued a STOP SLAVE\nstatement or if the slave is highly loaded.)\n\nIn MySQL 5.5 (unlike the case in MySQL 5.1 and earlier), RESET SLAVE\ndoes not change any replication connection parameters such as master\nhost, master port, master user, or master password, which are retained\nin memory. This means that START SLAVE can be issued without requiring\na CHANGE MASTER TO statement following RESET SLAVE.\n\nConnection parameters are reset if the slave mysqld is shut down\nfollowing RESET SLAVE. In MySQL 5.5.16 and later, you can instead use\nRESET SLAVE ALL to reset these connection parameters (Bug #11809016).\n\nRESET SLAVE ALL does not clear the IGNORE_SERVER_IDS list set by CHANGE\nMASTER TO. This issue is fixed in MySQL 5.7. (Bug #18816897)\n\nIf the slave SQL thread was in the middle of replicating temporary\ntables when it was stopped, and RESET SLAVE is issued, these replicated\ntemporary tables are deleted on the slave.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/reset-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/reset-slave.html'),(40,'SHOW BINARY LOGS',27,'Syntax:\nSHOW BINARY LOGS\nSHOW MASTER LOGS\n\nLists the binary log files on the server. This statement is used as\npart of the procedure described in [HELP PURGE BINARY LOGS], that shows\nhow to determine which logs can be purged.\n\nmysql> SHOW BINARY LOGS;\n+---------------+-----------+\n| Log_name | File_size |\n+---------------+-----------+\n| binlog.000015 | 724935 |\n| binlog.000016 | 733481 |\n+---------------+-----------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-binary-logs.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-binary-logs.html'),(41,'POLYGON',25,'Polygon(ls1,ls2,...)\n\nConstructs a Polygon value from a number of LineString or WKB\nLineString arguments. If any argument does not represent a LinearRing\n(that is, not a closed and simple LineString), the return value is\nNULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(42,'MINUTE',32,'Syntax:\nMINUTE(time)\n\nReturns the minute for time, in the range 0 to 59.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MINUTE(\'2008-02-03 10:05:03\');\n -> 5\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(43,'DAY',32,'Syntax:\nDAY(date)\n\nDAY() is a synonym for DAYOFMONTH().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(44,'MID',38,'Syntax:\nMID(str,pos,len)\n\nMID(str,pos,len) is a synonym for SUBSTRING(str,pos,len).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(45,'UUID',14,'Syntax:\nUUID()\n\nReturns a Universal Unique Identifier (UUID) generated according to\n\"DCE 1.1: Remote Procedure Call\" (Appendix A) CAE (Common Applications\nEnvironment) Specifications published by The Open Group in October 1997\n(Document Number C706,\nhttp://www.opengroup.org/public/pubs/catalog/c706.htm).\n\nA UUID is designed as a number that is globally unique in space and\ntime. Two calls to UUID() are expected to generate two different\nvalues, even if these calls are performed on two separate computers\nthat are not connected to each other.\n\nA UUID is a 128-bit number represented by a utf8 string of five\nhexadecimal numbers in aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee format:\n\no The first three numbers are generated from a timestamp.\n\no The fourth number preserves temporal uniqueness in case the timestamp\n value loses monotonicity (for example, due to daylight saving time).\n\no The fifth number is an IEEE 802 node number that provides spatial\n uniqueness. A random number is substituted if the latter is not\n available (for example, because the host computer has no Ethernet\n card, or we do not know how to find the hardware address of an\n interface on your operating system). In this case, spatial uniqueness\n cannot be guaranteed. Nevertheless, a collision should have very low\n probability.\n\n Currently, the MAC address of an interface is taken into account only\n on FreeBSD and Linux. On other operating systems, MySQL uses a\n randomly generated 48-bit number.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> SELECT UUID();\n -> \'6ccd780c-baba-1026-9564-0040f4311e29\'\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(46,'SLEEP',14,'Syntax:\nSLEEP(duration)\n\nSleeps (pauses) for the number of seconds given by the duration\nargument, then returns 0. If SLEEP() is interrupted, it returns 1. The\nduration may have a fractional part.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(47,'LINESTRING',25,'LineString(pt1,pt2,...)\n\nConstructs a LineString value from a number of Point or WKB Point\narguments. If the number of arguments is less than two, the return\nvalue is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(48,'CONNECTION_ID',17,'Syntax:\nCONNECTION_ID()\n\nReturns the connection ID (thread ID) for the connection. Every\nconnection has an ID that is unique among the set of currently\nconnected clients.\n\nThe value returned by CONNECTION_ID() is the same type of value as\ndisplayed in the ID column of the INFORMATION_SCHEMA.PROCESSLIST table,\nthe Id column of SHOW PROCESSLIST output, and the PROCESSLIST_ID column\nof the Performance Schema threads table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT CONNECTION_ID();\n -> 23786\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(49,'CREATE LOGFILE GROUP',40,'Syntax:\nCREATE LOGFILE GROUP logfile_group\n ADD UNDOFILE \'undo_file\'\n [INITIAL_SIZE [=] initial_size]\n [UNDO_BUFFER_SIZE [=] undo_buffer_size]\n [REDO_BUFFER_SIZE [=] redo_buffer_size]\n [NODEGROUP [=] nodegroup_id]\n [WAIT]\n [COMMENT [=] comment_text]\n ENGINE [=] engine_name\n\nThis statement creates a new log file group named logfile_group having\na single UNDO file named \'undo_file\'. A CREATE LOGFILE GROUP statement\nhas one and only one ADD UNDOFILE clause. For rules covering the naming\nof log file groups, see\nhttp://dev.mysql.com/doc/refman/5.5/en/identifiers.html.\n\n*Note*: All MySQL Cluster Disk Data objects share the same namespace.\nThis means that each Disk Data object must be uniquely named (and not\nmerely each Disk Data object of a given type). For example, you cannot\nhave a tablespace and a log file group with the same name, or a\ntablespace and a data file with the same name.\n\nIn MySQL Cluster NDB 7.2, you can have only one log file group per\nCluster at any given time. (See Bug #16386)\n\nThe optional INITIAL_SIZE parameter sets the UNDO file\'s initial size;\nif not specified, it defaults to 128M (128 megabytes). The optional\nUNDO_BUFFER_SIZE parameter sets the size used by the UNDO buffer for\nthe log file group; The default value for UNDO_BUFFER_SIZE is 8M (eight\nmegabytes); this value cannot exceed the amount of system memory\navailable. Both of these parameters are specified in bytes. In MySQL\nCluster NDB 7.2.14 and later, you may optionally follow either or both\nof these with a one-letter abbreviation for an order of magnitude,\nsimilar to those used in my.cnf. Generally, this is one of the letters\nM (for megabytes) or G (for gigabytes). Prior to MySQL Cluster NDB\n7.2.14, the values for these options could only be specified using\ndigits. (Bug #13116514, Bug #16104705, Bug #62858)\n\nMemory used for UNDO_BUFFER_SIZE comes from the global pool whose size\nis determined by the value of the SharedGlobalMemory data node\nconfiguration parameter. This includes any default value implied for\nthis option by the setting of the InitialLogFileGroup data node\nconfiguration parameter.\n\nThe maximum permitted for UNDO_BUFFER_SIZE is 629145600 (600 MB).\n\nOn 32-bit systems, the maximum supported value for INITIAL_SIZE is\n4294967296 (4 GB). (Bug #29186)\n\nThe minimum allowed value for INITIAL_SIZE is 1048576 (1 MB).\n\nThe ENGINE option determines the storage engine to be used by this log\nfile group, with engine_name being the name of the storage engine. In\nMySQL 5.5, this must be NDB (or NDBCLUSTER). If ENGINE is not set,\nMySQL tries to use the engine specified by the default_storage_engine\nserver system variable (formerly storage_engine). In any case, if the\nengine is not specified as NDB or NDBCLUSTER, the CREATE LOGFILE GROUP\nstatement appears to succeed but actually fails to create the log file\ngroup, as shown here:\n\nmysql> CREATE LOGFILE GROUP lg1 \n -> ADD UNDOFILE \'undo.dat\' INITIAL_SIZE = 10M;\nQuery OK, 0 rows affected, 1 warning (0.00 sec)\n\nmysql> SHOW WARNINGS;\n+-------+------+------------------------------------------------------------------------------------------------+\n| Level | Code | Message |\n+-------+------+------------------------------------------------------------------------------------------------+\n| Error | 1478 | Table storage engine \'InnoDB\' does not support the create option \'TABLESPACE or LOGFILE GROUP\' |\n+-------+------+------------------------------------------------------------------------------------------------+\n1 row in set (0.00 sec)\n\nmysql> DROP LOGFILE GROUP lg1 ENGINE = NDB; \nERROR 1529 (HY000): Failed to drop LOGFILE GROUP\n\nmysql> CREATE LOGFILE GROUP lg1 \n -> ADD UNDOFILE \'undo.dat\' INITIAL_SIZE = 10M\n -> ENGINE = NDB;\nQuery OK, 0 rows affected (2.97 sec)\n\nThe fact that the CREATE LOGFILE GROUP statement does not actually\nreturn an error when a non-NDB storage engine is named, but rather\nappears to succeed, is a known issue which we hope to address in a\nfuture release of MySQL Cluster.\n\nREDO_BUFFER_SIZE, NODEGROUP, WAIT, and COMMENT are parsed but ignored,\nand so have no effect in MySQL 5.5. These options are intended for\nfuture expansion.\n\nWhen used with ENGINE [=] NDB, a log file group and associated UNDO log\nfile are created on each Cluster data node. You can verify that the\nUNDO files were created and obtain information about them by querying\nthe INFORMATION_SCHEMA.FILES table. For example:\n\nmysql> SELECT LOGFILE_GROUP_NAME, LOGFILE_GROUP_NUMBER, EXTRA\n -> FROM INFORMATION_SCHEMA.FILES\n -> WHERE FILE_NAME = \'undo_10.dat\';\n+--------------------+----------------------+----------------+\n| LOGFILE_GROUP_NAME | LOGFILE_GROUP_NUMBER | EXTRA |\n+--------------------+----------------------+----------------+\n| lg_3 | 11 | CLUSTER_NODE=3 |\n| lg_3 | 11 | CLUSTER_NODE=4 |\n+--------------------+----------------------+----------------+\n2 rows in set (0.06 sec)\n\nCREATE LOGFILE GROUP is useful only with Disk Data storage for MySQL\nCluster. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-logfile-group.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-logfile-group.html'),(50,'DELETE',28,'Syntax:\nSingle-table syntax:\n\nDELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name\n [WHERE where_condition]\n [ORDER BY ...]\n [LIMIT row_count]\n\nMultiple-table syntax:\n\nDELETE [LOW_PRIORITY] [QUICK] [IGNORE]\n tbl_name[.*] [, tbl_name[.*]] ...\n FROM table_references\n [WHERE where_condition]\n\nOr:\n\nDELETE [LOW_PRIORITY] [QUICK] [IGNORE]\n FROM tbl_name[.*] [, tbl_name[.*]] ...\n USING table_references\n [WHERE where_condition]\n\nFor the single-table syntax, the DELETE statement deletes rows from\ntbl_name and returns a count of the number of deleted rows. This count\ncan be obtained by calling the ROW_COUNT() function (see\nhttp://dev.mysql.com/doc/refman/5.5/en/information-functions.html). The\nWHERE clause, if given, specifies the conditions that identify which\nrows to delete. With no WHERE clause, all rows are deleted. If the\nORDER BY clause is specified, the rows are deleted in the order that is\nspecified. The LIMIT clause places a limit on the number of rows that\ncan be deleted.\n\nFor the multiple-table syntax, DELETE deletes from each tbl_name the\nrows that satisfy the conditions. In this case, ORDER BY and LIMIT\ncannot be used.\n\nwhere_condition is an expression that evaluates to true for each row to\nbe deleted. It is specified as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/select.html.\n\nCurrently, you cannot delete from a table and select from the same\ntable in a subquery.\n\nYou need the DELETE privilege on a table to delete rows from it. You\nneed only the SELECT privilege for any columns that are only read, such\nas those named in the WHERE clause.\n\nAs stated, a DELETE statement with no WHERE clause deletes all rows. A\nfaster way to do this, when you do not need to know the number of\ndeleted rows, is to use TRUNCATE TABLE. However, within a transaction\nor if you have a lock on the table, TRUNCATE TABLE cannot be used\nwhereas DELETE can. See [HELP TRUNCATE TABLE], and [HELP LOCK].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/delete.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/delete.html'),(51,'ROUND',3,'Syntax:\nROUND(X), ROUND(X,D)\n\nRounds the argument X to D decimal places. The rounding algorithm\ndepends on the data type of X. D defaults to 0 if not specified. D can\nbe negative to cause D digits left of the decimal point of the value X\nto become zero.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ROUND(-1.23);\n -> -1\nmysql> SELECT ROUND(-1.58);\n -> -2\nmysql> SELECT ROUND(1.58);\n -> 2\nmysql> SELECT ROUND(1.298, 1);\n -> 1.3\nmysql> SELECT ROUND(1.298, 0);\n -> 1\nmysql> SELECT ROUND(23.298, -1);\n -> 20\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(52,'NULLIF',6,'Syntax:\nNULLIF(expr1,expr2)\n\nReturns NULL if expr1 = expr2 is true, otherwise returns expr1. This is\nthe same as CASE WHEN expr1 = expr2 THEN NULL ELSE expr1 END.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html\n\n','mysql> SELECT NULLIF(1,1);\n -> NULL\nmysql> SELECT NULLIF(1,2);\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html'),(53,'CLOSE',24,'Syntax:\nCLOSE cursor_name\n\nThis statement closes a previously opened cursor. For an example, see\nhttp://dev.mysql.com/doc/refman/5.5/en/cursors.html.\n\nAn error occurs if the cursor is not open.\n\nIf not closed explicitly, a cursor is closed at the end of the BEGIN\n... END block in which it was declared.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/close.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/close.html'),(54,'STOP SLAVE',8,'Syntax:\nSTOP SLAVE [thread_types]\n\nthread_types:\n [thread_type [, thread_type] ... ]\n\nthread_type: IO_THREAD | SQL_THREAD\n\nStops the slave threads. STOP SLAVE requires the SUPER privilege.\nRecommended best practice is to execute STOP SLAVE on the slave before\nstopping the slave server (see\nhttp://dev.mysql.com/doc/refman/5.5/en/server-shutdown.html, for more\ninformation).\n\nWhen using the row-based logging format: You should execute STOP SLAVE\non the slave prior to shutting down the slave server if you are\nreplicating any tables that use a nontransactional storage engine (see\nthe Note later in this section). In MySQL 5.5.9 and later, you can also\nuse STOP SLAVE SQL_THREAD for this purpose.\n\nLike START SLAVE, this statement may be used with the IO_THREAD and\nSQL_THREAD options to name the thread or threads to be stopped.\n\n*Note*: In MySQL 5.5, STOP SLAVE waits until the current replication\nevent group affecting one or more nontransactional tables has finished\nexecuting (if there is any such replication group), or until the user\nissues a KILL QUERY or KILL CONNECTION statement. (Bug #319, Bug\n#38205)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/stop-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/stop-slave.html'),(55,'TIMEDIFF',32,'Syntax:\nTIMEDIFF(expr1,expr2)\n\nTIMEDIFF() returns expr1 − expr2 expressed as a time value. expr1 and\nexpr2 are time or date-and-time expressions, but both must be of the\nsame type.\n\nThe result returned by TIMEDIFF() is limited to the range allowed for\nTIME values. Alternatively, you can use either of the functions\nTIMESTAMPDIFF() and UNIX_TIMESTAMP(), both of which return integers.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIMEDIFF(\'2000:01:01 00:00:00\',\n -> \'2000:01:01 00:00:00.000001\');\n -> \'-00:00:00.000001\'\nmysql> SELECT TIMEDIFF(\'2008-12-31 23:59:59.000001\',\n -> \'2008-12-30 01:01:01.000002\');\n -> \'46:58:57.999999\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(56,'REPLACE FUNCTION',38,'Syntax:\nREPLACE(str,from_str,to_str)\n\nReturns the string str with all occurrences of the string from_str\nreplaced by the string to_str. REPLACE() performs a case-sensitive\nmatch when searching for from_str.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT REPLACE(\'www.mysql.com\', \'w\', \'Ww\');\n -> \'WwWwWw.mysql.com\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(57,'USE',29,'Syntax:\nUSE db_name\n\nThe USE db_name statement tells MySQL to use the db_name database as\nthe default (current) database for subsequent statements. The database\nremains the default until the end of the session or another USE\nstatement is issued:\n\nUSE db1;\nSELECT COUNT(*) FROM mytable; # selects from db1.mytable\nUSE db2;\nSELECT COUNT(*) FROM mytable; # selects from db2.mytable\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/use.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/use.html'),(58,'LINEFROMTEXT',4,'LineFromText(wkt[,srid]), LineStringFromText(wkt[,srid])\n\nConstructs a LineString value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(59,'CASE OPERATOR',6,'Syntax:\nCASE value WHEN [compare_value] THEN result [WHEN [compare_value] THEN\nresult ...] [ELSE result] END\n\nCASE WHEN [condition] THEN result [WHEN [condition] THEN result ...]\n[ELSE result] END\n\nThe first version returns the result where value=compare_value. The\nsecond version returns the result for the first condition that is true.\nIf there was no matching result value, the result after ELSE is\nreturned, or NULL if there is no ELSE part.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html\n\n','mysql> SELECT CASE 1 WHEN 1 THEN \'one\'\n -> WHEN 2 THEN \'two\' ELSE \'more\' END;\n -> \'one\'\nmysql> SELECT CASE WHEN 1>0 THEN \'true\' ELSE \'false\' END;\n -> \'true\'\nmysql> SELECT CASE BINARY \'B\'\n -> WHEN \'a\' THEN 1 WHEN \'b\' THEN 2 END;\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html'),(60,'SHOW MASTER STATUS',27,'Syntax:\nSHOW MASTER STATUS\n\nThis statement provides status information about the binary log files\nof the master. It requires either the SUPER or REPLICATION CLIENT\nprivilege.\n\nExample:\n\nmysql> SHOW MASTER STATUS;\n+---------------+----------+--------------+------------------+\n| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |\n+---------------+----------+--------------+------------------+\n| mysql-bin.003 | 73 | test | manual,mysql |\n+---------------+----------+--------------+------------------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-master-status.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-master-status.html'),(61,'ADDTIME',32,'Syntax:\nADDTIME(expr1,expr2)\n\nADDTIME() adds expr2 to expr1 and returns the result. expr1 is a time\nor datetime expression, and expr2 is a time expression.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT ADDTIME(\'2007-12-31 23:59:59.999999\', \'1 1:1:1.000002\');\n -> \'2008-01-02 01:01:01.000001\'\nmysql> SELECT ADDTIME(\'01:00:00.999999\', \'02:00:00.999998\');\n -> \'03:00:01.999997\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(62,'TO_SECONDS',32,'Syntax:\nTO_SECONDS(expr)\n\nGiven a date or datetime expr, returns a the number of seconds since\nthe year 0. If expr is not a valid date or datetime value, returns\nNULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TO_SECONDS(950501);\n -> 62966505600\nmysql> SELECT TO_SECONDS(\'2009-11-29\');\n -> 63426672000\nmysql> SELECT TO_SECONDS(\'2009-11-29 13:43:32\');\n -> 63426721412\nmysql> SELECT TO_SECONDS( NOW() );\n -> 63426721458\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(63,'TIMESTAMPDIFF',32,'Syntax:\nTIMESTAMPDIFF(unit,datetime_expr1,datetime_expr2)\n\nReturns datetime_expr2 − datetime_expr1, where datetime_expr1 and\ndatetime_expr2 are date or datetime expressions. One expression may be\na date and the other a datetime; a date value is treated as a datetime\nhaving the time part \'00:00:00\' where necessary. The unit for the\nresult (an integer) is given by the unit argument. The legal values for\nunit are the same as those listed in the description of the\nTIMESTAMPADD() function.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIMESTAMPDIFF(MONTH,\'2003-02-01\',\'2003-05-01\');\n -> 3\nmysql> SELECT TIMESTAMPDIFF(YEAR,\'2002-05-01\',\'2001-01-01\');\n -> -1\nmysql> SELECT TIMESTAMPDIFF(MINUTE,\'2003-02-01\',\'2003-05-01 12:05:55\');\n -> 128885\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(64,'UPPER',38,'Syntax:\nUPPER(str)\n\nReturns the string str with all characters changed to uppercase\naccording to the current character set mapping. The default is latin1\n(cp1252 West European).\n\nmysql> SELECT UPPER(\'Hej\');\n -> \'HEJ\'\n\nSee the description of LOWER() for information that also applies to\nUPPER(), such as information about how to perform lettercase conversion\nof binary strings (BINARY, VARBINARY, BLOB) for which these functions\nare ineffective.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(65,'SPATIAL',35,'For MyISAM tables, MySQL can create spatial indexes using syntax\nsimilar to that for creating regular indexes, but using the SPATIAL\nkeyword. Columns in spatial indexes must be declared NOT NULL. The\nfollowing examples demonstrate how to create spatial indexes:\n\no With CREATE TABLE:\n\nCREATE TABLE geom (g GEOMETRY NOT NULL, SPATIAL INDEX(g)) ENGINE=MyISAM;\n\no With ALTER TABLE:\n\nALTER TABLE geom ADD SPATIAL INDEX(g);\n\no With CREATE INDEX:\n\nCREATE SPATIAL INDEX sp_index ON geom (g);\n\nSPATIAL INDEX creates an R-tree index. For storage engines that support\nnonspatial indexing of spatial columns, the engine creates a B-tree\nindex. A B-tree index on spatial values is useful for exact-value\nlookups, but not for range scans.\n\nFor more information on indexing spatial columns, see [HELP CREATE\nINDEX].\n\nTo drop spatial indexes, use ALTER TABLE or DROP INDEX:\n\no With ALTER TABLE:\n\nALTER TABLE geom DROP INDEX g;\n\no With DROP INDEX:\n\nDROP INDEX sp_index ON geom;\n\nExample: Suppose that a table geom contains more than 32,000\ngeometries, which are stored in the column g of type GEOMETRY. The\ntable also has an AUTO_INCREMENT column fid for storing object ID\nvalues.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-indexes.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-indexes.html'),(66,'FROM_UNIXTIME',32,'Syntax:\nFROM_UNIXTIME(unix_timestamp), FROM_UNIXTIME(unix_timestamp,format)\n\nReturns a representation of the unix_timestamp argument as a value in\n\'YYYY-MM-DD HH:MM:SS\' or YYYYMMDDHHMMSS.uuuuuu format, depending on\nwhether the function is used in a string or numeric context. The value\nis expressed in the current time zone. unix_timestamp is an internal\ntimestamp value such as is produced by the UNIX_TIMESTAMP() function.\n\nIf format is given, the result is formatted according to the format\nstring, which is used the same way as listed in the entry for the\nDATE_FORMAT() function.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT FROM_UNIXTIME(1196440219);\n -> \'2007-11-30 10:30:19\'\nmysql> SELECT FROM_UNIXTIME(1196440219) + 0;\n -> 20071130103019.000000\nmysql> SELECT FROM_UNIXTIME(UNIX_TIMESTAMP(),\n -> \'%Y %D %M %h:%i:%s %x\');\n -> \'2007 30th November 10:30:59 2007\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(67,'MEDIUMBLOB',23,'MEDIUMBLOB\n\nA BLOB column with a maximum length of 16,777,215 (224 − 1) bytes.\nEach MEDIUMBLOB value is stored using a 3-byte length prefix that\nindicates the number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(68,'SHA2',12,'Syntax:\nSHA2(str, hash_length)\n\nCalculates the SHA-2 family of hash functions (SHA-224, SHA-256,\nSHA-384, and SHA-512). The first argument is the cleartext string to be\nhashed. The second argument indicates the desired bit length of the\nresult, which must have a value of 224, 256, 384, 512, or 0 (which is\nequivalent to 256). If either argument is NULL or the hash length is\nnot one of the permitted values, the return value is NULL. Otherwise,\nthe function result is a hash value containing the desired number of\nbits. See the notes at the beginning of this section about storing hash\nvalues efficiently.\n\nAs of MySQL 5.5.6, the return value is a nonbinary string in the\nconnection character set. Before 5.5.6, the return value is a binary\nstring; see the notes at the beginning of this section about using the\nvalue as a nonbinary string.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT SHA2(\'abc\', 224);\n -> \'23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7\'\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(69,'IFNULL',6,'Syntax:\nIFNULL(expr1,expr2)\n\nIf expr1 is not NULL, IFNULL() returns expr1; otherwise it returns\nexpr2. IFNULL() returns a numeric or string value, depending on the\ncontext in which it is used.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html\n\n','mysql> SELECT IFNULL(1,0);\n -> 1\nmysql> SELECT IFNULL(NULL,10);\n -> 10\nmysql> SELECT IFNULL(1/0,10);\n -> 10\nmysql> SELECT IFNULL(1/0,\'yes\');\n -> \'yes\'\n','http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html'),(70,'SHOW FUNCTION CODE',27,'Syntax:\nSHOW FUNCTION CODE func_name\n\nThis statement is similar to SHOW PROCEDURE CODE but for stored\nfunctions. See [HELP SHOW PROCEDURE CODE].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-function-code.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-function-code.html'),(71,'SHOW ERRORS',27,'Syntax:\nSHOW ERRORS [LIMIT [offset,] row_count]\nSHOW COUNT(*) ERRORS\n\nSHOW ERRORS is a diagnostic statement that is similar to SHOW WARNINGS,\nexcept that it displays information only for errors, rather than for\nerrors, warnings, and notes.\n\nThe LIMIT clause has the same syntax as for the SELECT statement. See\nhttp://dev.mysql.com/doc/refman/5.5/en/select.html.\n\nThe SHOW COUNT(*) ERRORS statement displays the number of errors. You\ncan also retrieve this number from the error_count variable:\n\nSHOW COUNT(*) ERRORS;\nSELECT @@error_count;\n\nSHOW ERRORS and error_count apply only to errors, not warnings or\nnotes. In other respects, they are similar to SHOW WARNINGS and\nwarning_count. In particular, SHOW ERRORS cannot display information\nfor more than max_error_count messages, and error_count can exceed the\nvalue of max_error_count if the number of errors exceeds\nmax_error_count.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-errors.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-errors.html'),(72,'LEAST',20,'Syntax:\nLEAST(value1,value2,...)\n\nWith two or more arguments, returns the smallest (minimum-valued)\nargument. The arguments are compared using the following rules:\n\no If any argument is NULL, the result is NULL. No comparison is needed.\n\no If the return value is used in an INTEGER context or all arguments\n are integer-valued, they are compared as integers.\n\no If the return value is used in a REAL context or all arguments are\n real-valued, they are compared as reals.\n\no If the arguments comprise a mix of numbers and strings, they are\n compared as numbers.\n\no If any argument is a nonbinary (character) string, the arguments are\n compared as nonbinary strings.\n\no In all other cases, the arguments are compared as binary strings.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT LEAST(2,0);\n -> 0\nmysql> SELECT LEAST(34.0,3.0,5.0,767.0);\n -> 3.0\nmysql> SELECT LEAST(\'B\',\'A\',\'C\');\n -> \'A\'\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(73,'=',20,'=\n\nEqual:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 = 0;\n -> 0\nmysql> SELECT \'0\' = 0;\n -> 1\nmysql> SELECT \'0.0\' = 0;\n -> 1\nmysql> SELECT \'0.01\' = 0;\n -> 0\nmysql> SELECT \'.01\' = 0.01;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(74,'REVERSE',38,'Syntax:\nREVERSE(str)\n\nReturns the string str with the order of the characters reversed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT REVERSE(\'abc\');\n -> \'cba\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(75,'ISNULL',20,'Syntax:\nISNULL(expr)\n\nIf expr is NULL, ISNULL() returns 1, otherwise it returns 0.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT ISNULL(1+1);\n -> 0\nmysql> SELECT ISNULL(1/0);\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(76,'BINARY',23,'BINARY(M)\n\nThe BINARY type is similar to the CHAR type, but stores binary byte\nstrings rather than nonbinary character strings. M represents the\ncolumn length in bytes.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(77,'BLOB DATA TYPE',23,'A BLOB is a binary large object that can hold a variable amount of\ndata. The four BLOB types are TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB.\nThese differ only in the maximum length of the values they can hold.\nThe four TEXT types are TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT. These\ncorrespond to the four BLOB types and have the same maximum lengths and\nstorage requirements. See\nhttp://dev.mysql.com/doc/refman/5.5/en/storage-requirements.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/blob.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/blob.html'),(78,'CREATE USER',10,'Syntax:\nCREATE USER user_specification [, user_specification] ...\n\nuser_specification:\n user [ identified_option ]\n\nauth_option: {\n IDENTIFIED BY \'auth_string\'\n | IDENTIFIED BY PASSWORD \'hash_string\'\n | IDENTIFIED WITH auth_plugin\n | IDENTIFIED WITH auth_plugin AS \'hash_string\'\n}\n\nThe CREATE USER statement creates new MySQL accounts. An error occurs\nif you try to create an account that already exists. To use this\nstatement, you must have the global CREATE USER privilege or the INSERT\nprivilege for the mysql database.\n\nWhen the read_only system variable is enabled, CREATE USER requires the\nSUPER privilege, in addition to any other required privileges.\n\nFor each account, CREATE USER creates a new row in the mysql.user table\nwith no privileges and (as of MySQL 5.5.7) assigns the account an\nauthentication plugin. Depending on the syntax used, CREATE USER may\nalso assign the account a password.\n\nEach user_specification clause consists of an account name and\ninformation about how authentication occurs for clients that use the\naccount. This part of CREATE USER syntax is shared with GRANT, so the\ndescription here applies to GRANT as well.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.5/en/account-names.html. For example:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED BY \'mypass\';\n\nIf you specify only the user name part of the account name, a host name\npart of \'%\' is used.\n\nThe server assigns an authentication plugin and password to each\naccount as follows, depending on whether the user specification clause\nincludes IDENTIFIED WITH to specify a plugin or IDENTIFIED BY to\nspecify a password:\n\n*Note*: IDENTIFIED WITH is available as of MySQL 5.5.7. Before 5.5.7,\nauthentication plugins are not used, so only the remarks about\nIDENTIFIED BY apply.\n\no With IDENTIFIED WITH, the server assigns the specified plugin and the\n account has no password. If the optional AS \'hash_string\' clause is\n also given, the string is stored as is in the authentication_string\n column (it is assumed to be already hashed in the format required by\n the plugin).\n\no With IDENTIFIED BY, the server assigns no plugin and assigns the\n specified password.\n\no With neither IDENTIFIED WITH nor IDENTIFIED BY, the server assigns no\n plugin and the account has no password.\n\nIf the account has no password, the Password column in the account\'s\nmysql.user table row remains empty, which is insecure. To set the\npassword, use SET PASSWORD. See [HELP SET PASSWORD].\n\nIf the server assigns no plugin to the account, the plugin column in\nthe account\'s mysql.user table row remains empty.\n\nFor client connections that use a given account, the server invokes the\nauthentication plugin assigned to the account and the client must\nprovide credentials as required by the authentication method that the\nplugin implements. If the server cannot find the plugin, either at\naccount-creation time or connect time, an error occurs.\n\nIf an account\'s mysql.user table row has a nonempty plugin column:\n\no The server authenticates client connection attempts using the named\n plugin.\n\no Changes to the account password using SET PASSWORD with PASSWORD()\n must be made with the old_passwords system variable set to the value\n required by the authentication plugin, so that PASSWORD() uses the\n appropriate password hashing method. If the plugin is\n mysql_old_password, the password can also be changed using SET\n PASSWORD with OLD_PASSWORD(), which uses pre-4.1 password hashing\n regardless of the value of old_passwords.\n\nIf an account\'s mysql.user table row has an empty plugin column:\n\no The server authenticates client connection attempts using the\n mysql_native_password or mysql_old_password authentication plugin,\n depending on the hash format of the password stored in the Password\n column.\n\no Changes to the account password using SET PASSWORD can be made with\n PASSWORD(), with old_passwords set to 0 or 1 for 4.1 or pre-4.1\n password hashing, respectively, or with OLD_PASSWORD(), which uses\n pre-4.1 password hashing regardless of the value of old_passwords.\n\nCREATE USER examples:\n\no To specify an authentication plugin for an account, use IDENTIFIED\n WITH auth_plugin. The plugin name can be a quoted string literal or\n an unquoted name. \'auth_string\' is an optional quoted string literal\n to pass to the plugin. The plugin interprets the meaning of the\n string, so its format is plugin specific and it is stored in the\n authentication_string column as given. (This value is meaningful only\n for plugins that use that column.) Consult the documentation for a\n given plugin for information about the authentication string values\n it accepts, if any.\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED WITH mysql_native_password;\n\n The server assigns the given authentication plugin to the account but\n no password. Clients must provide no password when they connect.\n However, an account with no password is insecure. To ensure that an\n account uses a specific authentication plugin and has a password with\n the corresponding hash format, specify the plugin explicitly with\n IDENTIFIED WITH, then use SET PASSWORD to set the password:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED WITH mysql_native_password;\nSET old_passwords = 0;\nSET PASSWORD FOR \'jeffrey\'@\'localhost\' = PASSWORD(\'<PASSWORD>\');\n\n Changes to the account password using SET PASSWORD with PASSWORD()\n must be made with the old_passwords system variable set to the value\n required by the account\'s authentication plugin, so that PASSWORD()\n uses the appropriate password hashing method. Therefore, to use the\n mysql_old_password plugin instead, name that plugin in the CREATE\n USER statement and set old_passwords to 1 before using SET PASSWORD.\n\no To specify a password for an account at account-creation time, use\n IDENTIFIED BY with the literal cleartext password value:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED BY \'mypass\';\n\n The server assigns the given password to the account but no\n authentication plugin. Clients must provide the password when they\n connect.\n\no To avoid specifying the cleartext password if you know its hash value\n (the value that PASSWORD() would return for the password), specify\n the hash value preceded by the keyword PASSWORD:\n\nCREATE USER \'jeffrey\'@\'localhost\'\nIDENTIFIED BY PASSWORD \'*90E462C37378CED12064BB3388827D2BA3A9B689\';\n\n The server assigns the given password to the account but no\n authentication plugin. Clients must provide the password when they\n connect.\n\no To enable the user to connect with no password, include no IDENTIFIED\n BY clause:\n\nCREATE USER \'jeffrey\'@\'localhost\';\n\n The server assigns no authentication plugin or password to the\n account. Clients must provide no password when they connect. However,\n an account with no password is insecure. To avoid this, use SET\n PASSWORD to set the account password.\n\nFor additional information about setting passwords and authentication\nplugins, see\nhttp://dev.mysql.com/doc/refman/5.5/en/assigning-passwords.html, and\nhttp://dev.mysql.com/doc/refman/5.5/en/pluggable-authentication.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-user.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-user.html'),(79,'POINT',25,'Point(x,y)\n\nConstructs a Point using its coordinates.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(80,'CURRENT_USER',17,'Syntax:\nCURRENT_USER, CURRENT_USER()\n\nReturns the user name and host name combination for the MySQL account\nthat the server used to authenticate the current client. This account\ndetermines your access privileges. The return value is a string in the\nutf8 character set.\n\nThe value of CURRENT_USER() can differ from the value of USER().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT USER();\n -> \'davida@localhost\'\nmysql> SELECT * FROM mysql.user;\nERROR 1044: Access denied for user \'\'@\'localhost\' to\ndatabase \'mysql\'\nmysql> SELECT CURRENT_USER();\n -> \'@localhost\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(81,'LCASE',38,'Syntax:\nLCASE(str)\n\nLCASE() is a synonym for LOWER().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(82,'<=',20,'Syntax:\n<=\n\nLess than or equal:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 0.1 <= 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(83,'SHOW PROFILES',27,'Syntax:\nSHOW PROFILES\n\nThe SHOW PROFILES statement, together with SHOW PROFILE, displays\nprofiling information that indicates resource usage for statements\nexecuted during the course of the current session. For more\ninformation, see [HELP SHOW PROFILE].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-profiles.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-profiles.html'),(84,'UPDATE',28,'Syntax:\nSingle-table syntax:\n\nUPDATE [LOW_PRIORITY] [IGNORE] table_reference\n SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...\n [WHERE where_condition]\n [ORDER BY ...]\n [LIMIT row_count]\n\nMultiple-table syntax:\n\nUPDATE [LOW_PRIORITY] [IGNORE] table_references\n SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...\n [WHERE where_condition]\n\nFor the single-table syntax, the UPDATE statement updates columns of\nexisting rows in the named table with new values. The SET clause\nindicates which columns to modify and the values they should be given.\nEach value can be given as an expression, or the keyword DEFAULT to set\na column explicitly to its default value. The WHERE clause, if given,\nspecifies the conditions that identify which rows to update. With no\nWHERE clause, all rows are updated. If the ORDER BY clause is\nspecified, the rows are updated in the order that is specified. The\nLIMIT clause places a limit on the number of rows that can be updated.\n\nFor the multiple-table syntax, UPDATE updates rows in each table named\nin table_references that satisfy the conditions. Each matching row is\nupdated once, even if it matches the conditions multiple times. For\nmultiple-table syntax, ORDER BY and LIMIT cannot be used.\n\nwhere_condition is an expression that evaluates to true for each row to\nbe updated. For expression syntax, see\nhttp://dev.mysql.com/doc/refman/5.5/en/expressions.html.\n\ntable_references and where_condition are specified as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/select.html.\n\nYou need the UPDATE privilege only for columns referenced in an UPDATE\nthat are actually updated. You need only the SELECT privilege for any\ncolumns that are read but not modified.\n\nThe UPDATE statement supports the following modifiers:\n\no With the LOW_PRIORITY keyword, execution of the UPDATE is delayed\n until no other clients are reading from the table. This affects only\n storage engines that use only table-level locking (such as MyISAM,\n MEMORY, and MERGE).\n\no With the IGNORE keyword, the update statement does not abort even if\n errors occur during the update. Rows for which duplicate-key\n conflicts occur on a unique key value are not updated. Rows updated\n to values that would cause data conversion errors are updated to the\n closest valid values instead.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/update.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/update.html'),(85,'IS NOT NULL',20,'Syntax:\nIS NOT NULL\n\nTests whether a value is not NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 IS NOT NULL, 0 IS NOT NULL, NULL IS NOT NULL;\n -> 1, 1, 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(86,'CASE STATEMENT',24,'Syntax:\nCASE case_value\n WHEN when_value THEN statement_list\n [WHEN when_value THEN statement_list] ...\n [ELSE statement_list]\nEND CASE\n\nOr:\n\nCASE\n WHEN search_condition THEN statement_list\n [WHEN search_condition THEN statement_list] ...\n [ELSE statement_list]\nEND CASE\n\nThe CASE statement for stored programs implements a complex conditional\nconstruct.\n\n*Note*: There is also a CASE expression, which differs from the CASE\nstatement described here. See\nhttp://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html. The\nCASE statement cannot have an ELSE NULL clause, and it is terminated\nwith END CASE instead of END.\n\nFor the first syntax, case_value is an expression. This value is\ncompared to the when_value expression in each WHEN clause until one of\nthem is equal. When an equal when_value is found, the corresponding\nTHEN clause statement_list executes. If no when_value is equal, the\nELSE clause statement_list executes, if there is one.\n\nThis syntax cannot be used to test for equality with NULL because NULL\n= NULL is false. See\nhttp://dev.mysql.com/doc/refman/5.5/en/working-with-null.html.\n\nFor the second syntax, each WHEN clause search_condition expression is\nevaluated until one is true, at which point its corresponding THEN\nclause statement_list executes. If no search_condition is equal, the\nELSE clause statement_list executes, if there is one.\n\nIf no when_value or search_condition matches the value tested and the\nCASE statement contains no ELSE clause, a Case not found for CASE\nstatement error results.\n\nEach statement_list consists of one or more SQL statements; an empty\nstatement_list is not permitted.\n\nTo handle situations where no value is matched by any WHEN clause, use\nan ELSE containing an empty BEGIN ... END block, as shown in this\nexample. (The indentation used here in the ELSE clause is for purposes\nof clarity only, and is not otherwise significant.)\n\nDELIMITER |\n\nCREATE PROCEDURE p()\n BEGIN\n DECLARE v INT DEFAULT 1;\n\n CASE v\n WHEN 2 THEN SELECT v;\n WHEN 3 THEN SELECT 0;\n ELSE\n BEGIN\n END;\n END CASE;\n END;\n |\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/case.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/case.html'),(87,'EXECUTE STATEMENT',8,'Syntax:\nEXECUTE stmt_name\n [USING @var_name [, @var_name] ...]\n\nAfter preparing a statement with PREPARE, you execute it with an\nEXECUTE statement that refers to the prepared statement name. If the\nprepared statement contains any parameter markers, you must supply a\nUSING clause that lists user variables containing the values to be\nbound to the parameters. Parameter values can be supplied only by user\nvariables, and the USING clause must name exactly as many variables as\nthe number of parameter markers in the statement.\n\nYou can execute a given prepared statement multiple times, passing\ndifferent variables to it or setting the variables to different values\nbefore each execution.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/execute.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/execute.html'),(88,'DROP INDEX',40,'Syntax:\nDROP [ONLINE|OFFLINE] INDEX index_name ON tbl_name\n\nDROP INDEX drops the index named index_name from the table tbl_name.\nThis statement is mapped to an ALTER TABLE statement to drop the index.\nSee [HELP ALTER TABLE].\n\nTo drop a primary key, the index name is always PRIMARY, which must be\nspecified as a quoted identifier because PRIMARY is a reserved word:\n\nDROP INDEX `PRIMARY` ON t;\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-index.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-index.html'),(89,'MATCH AGAINST',38,'Syntax:\nMATCH (col1,col2,...) AGAINST (expr [search_modifier])\n\nMySQL has support for full-text indexing and searching:\n\no A full-text index in MySQL is an index of type FULLTEXT.\n\no Full-text indexes can be used only with MyISAM tables. (In MySQL 5.6\n and up, they can also be used with InnoDB tables.) Full-text indexes\n can be created only for CHAR, VARCHAR, or TEXT columns.\n\no A FULLTEXT index definition can be given in the CREATE TABLE\n statement when a table is created, or added later using ALTER TABLE\n or CREATE INDEX.\n\no For large data sets, it is much faster to load your data into a table\n that has no FULLTEXT index and then create the index after that, than\n to load data into a table that has an existing FULLTEXT index.\n\nFull-text searching is performed using MATCH() ... AGAINST syntax.\nMATCH() takes a comma-separated list that names the columns to be\nsearched. AGAINST takes a string to search for, and an optional\nmodifier that indicates what type of search to perform. The search\nstring must be a string value that is constant during query evaluation.\nThis rules out, for example, a table column because that can differ for\neach row.\n\nThere are three types of full-text searches:\n\no A natural language search interprets the search string as a phrase in\n natural human language (a phrase in free text). There are no special\n operators. The stopword list applies. In addition, words that are\n present in 50% or more of the rows are considered common and do not\n match.\n\n Full-text searches are natural language searches if the IN NATURAL\n LANGUAGE MODE modifier is given or if no modifier is given. For more\n information, see\n http://dev.mysql.com/doc/refman/5.5/en/fulltext-natural-language.html\n .\n\no A boolean search interprets the search string using the rules of a\n special query language. The string contains the words to search for.\n It can also contain operators that specify requirements such that a\n word must be present or absent in matching rows, or that it should be\n weighted higher or lower than usual. Common words such as \"some\" or\n \"then\" are stopwords and do not match if present in the search\n string. The IN BOOLEAN MODE modifier specifies a boolean search. For\n more information, see\n http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html.\n\no A query expansion search is a modification of a natural language\n search. The search string is used to perform a natural language\n search. Then words from the most relevant rows returned by the search\n are added to the search string and the search is done again. The\n query returns the rows from the second search. The IN NATURAL\n LANGUAGE MODE WITH QUERY EXPANSION or WITH QUERY EXPANSION modifier\n specifies a query expansion search. For more information, see\n http://dev.mysql.com/doc/refman/5.5/en/fulltext-query-expansion.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html\n\n','mysql> SELECT id, body, MATCH (title,body) AGAINST\n -> (\'Security implications of running MySQL as root\'\n -> IN NATURAL LANGUAGE MODE) AS score\n -> FROM articles WHERE MATCH (title,body) AGAINST\n -> (\'Security implications of running MySQL as root\'\n -> IN NATURAL LANGUAGE MODE);\n+----+-------------------------------------+-----------------+\n| id | body | score |\n+----+-------------------------------------+-----------------+\n| 4 | 1. Never run mysqld as root. 2. ... | 1.5219271183014 |\n| 6 | When configured properly, MySQL ... | 1.3114095926285 |\n+----+-------------------------------------+-----------------+\n2 rows in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html'),(90,'CREATE EVENT',40,'Syntax:\nCREATE\n [DEFINER = { user | CURRENT_USER }]\n EVENT\n [IF NOT EXISTS]\n event_name\n ON SCHEDULE schedule\n [ON COMPLETION [NOT] PRESERVE]\n [ENABLE | DISABLE | DISABLE ON SLAVE]\n [COMMENT \'comment\']\n DO event_body;\n\nschedule:\n AT timestamp [+ INTERVAL interval] ...\n | EVERY interval\n [STARTS timestamp [+ INTERVAL interval] ...]\n [ENDS timestamp [+ INTERVAL interval] ...]\n\ninterval:\n quantity {YEAR | QUARTER | MONTH | DAY | HOUR | MINUTE |\n WEEK | SECOND | YEAR_MONTH | DAY_HOUR | DAY_MINUTE |\n DAY_SECOND | HOUR_MINUTE | HOUR_SECOND | MINUTE_SECOND}\n\nThis statement creates and schedules a new event. The event will not\nrun unless the Event Scheduler is enabled. For information about\nchecking Event Scheduler status and enabling it if necessary, see\nhttp://dev.mysql.com/doc/refman/5.5/en/events-configuration.html.\n\nCREATE EVENT requires the EVENT privilege for the schema in which the\nevent is to be created. It might also require the SUPER privilege,\ndepending on the DEFINER value, as described later in this section.\n\nThe minimum requirements for a valid CREATE EVENT statement are as\nfollows:\n\no The keywords CREATE EVENT plus an event name, which uniquely\n identifies the event in a database schema.\n\no An ON SCHEDULE clause, which determines when and how often the event\n executes.\n\no A DO clause, which contains the SQL statement to be executed by an\n event.\n\nThis is an example of a minimal CREATE EVENT statement:\n\nCREATE EVENT myevent\n ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR\n DO\n UPDATE myschema.mytable SET mycol = mycol + 1;\n\nThe previous statement creates an event named myevent. This event\nexecutes once---one hour following its creation---by running an SQL\nstatement that increments the value of the myschema.mytable table\'s\nmycol column by 1.\n\nThe event_name must be a valid MySQL identifier with a maximum length\nof 64 characters. Event names are not case sensitive, so you cannot\nhave two events named myevent and MyEvent in the same schema. In\ngeneral, the rules governing event names are the same as those for\nnames of stored routines. See\nhttp://dev.mysql.com/doc/refman/5.5/en/identifiers.html.\n\nAn event is associated with a schema. If no schema is indicated as part\nof event_name, the default (current) schema is assumed. To create an\nevent in a specific schema, qualify the event name with a schema using\nschema_name.event_name syntax.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-event.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-event.html'),(91,'ABS',3,'Syntax:\nABS(X)\n\nReturns the absolute value of X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ABS(2);\n -> 2\nmysql> SELECT ABS(-32);\n -> 32\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(92,'POLYFROMWKB',33,'PolyFromWKB(wkb[,srid]), PolygonFromWKB(wkb[,srid])\n\nConstructs a Polygon value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(93,'NOT LIKE',38,'Syntax:\nexpr NOT LIKE pat [ESCAPE \'escape_char\']\n\nThis is the same as NOT (expr LIKE pat [ESCAPE \'escape_char\']).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html'),(94,'SPACE',38,'Syntax:\nSPACE(N)\n\nReturns a string consisting of N space characters.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT SPACE(6);\n -> \' \'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(95,'MBR DEFINITION',7,'Its MBR (minimum bounding rectangle), or envelope. This is the bounding\ngeometry, formed by the minimum and maximum (X,Y) coordinates:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-class-geometry.html\n\n','((MINX MINY, MAXX MINY, MAXX MAXY, MINX MAXY, MINX MINY))\n','http://dev.mysql.com/doc/refman/5.5/en/gis-class-geometry.html'),(96,'MAX',16,'Syntax:\nMAX([DISTINCT] expr)\n\nReturns the maximum value of expr. MAX() may take a string argument; in\nsuch cases, it returns the maximum string value. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-indexes.html. The DISTINCT\nkeyword can be used to find the maximum of the distinct values of expr,\nhowever, this produces the same result as omitting DISTINCT.\n\nMAX() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT student_name, MIN(test_score), MAX(test_score)\n -> FROM student\n -> GROUP BY student_name;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(97,'GEOMETRYCOLLECTION',25,'GeometryCollection(g1,g2,...)\n\nConstructs a GeometryCollection.\n\nIf the argument contains a nonsupported geometry, the return value is\nNULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(98,'CREATE FUNCTION UDF',22,'Syntax:\nCREATE [AGGREGATE] FUNCTION function_name RETURNS {STRING|INTEGER|REAL|DECIMAL}\n SONAME shared_library_name\n\nA user-defined function (UDF) is a way to extend MySQL with a new\nfunction that works like a native (built-in) MySQL function such as\nABS() or CONCAT().\n\nfunction_name is the name that should be used in SQL statements to\ninvoke the function. The RETURNS clause indicates the type of the\nfunction\'s return value. DECIMAL is a legal value after RETURNS, but\ncurrently DECIMAL functions return string values and should be written\nlike STRING functions.\n\nshared_library_name is the basename of the shared object file that\ncontains the code that implements the function. The file must be\nlocated in the plugin directory. This directory is given by the value\nof the plugin_dir system variable. For more information, see\nhttp://dev.mysql.com/doc/refman/5.5/en/udf-compiling.html.\n\nTo create a function, you must have the INSERT privilege for the mysql\ndatabase. This is necessary because CREATE FUNCTION adds a row to the\nmysql.func system table that records the function\'s name, type, and\nshared library name. If you do not have this table, you should run the\nmysql_upgrade command to create it. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-upgrade.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-function-udf.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-function-udf.html'),(99,'*',3,'Syntax:\n*\n\nMultiplication:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT 3*5;\n -> 15\nmysql> SELECT 18014398509481984*18014398509481984.0;\n -> 324518553658426726783156020576256.0\nmysql> SELECT 18014398509481984*18014398509481984;\n -> out-of-range error\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(100,'TIMESTAMP',23,'TIMESTAMP\n\nA timestamp. The range is \'1970-01-01 00:00:01\' UTC to \'2038-01-19\n03:14:07\' UTC. TIMESTAMP values are stored as the number of seconds\nsince the epoch (\'1970-01-01 00:00:00\' UTC). A TIMESTAMP cannot\nrepresent the value \'1970-01-01 00:00:00\' because that is equivalent to\n0 seconds from the epoch and the value 0 is reserved for representing\n\'0000-00-00 00:00:00\', the \"zero\" TIMESTAMP value.\n\nUnless specified otherwise, the first TIMESTAMP column in a table is\ndefined to be automatically set to the date and time of the most recent\nmodification if not explicitly assigned a value. This makes TIMESTAMP\nuseful for recording the timestamp of an INSERT or UPDATE operation.\nYou can also set any TIMESTAMP column to the current date and time by\nassigning it a NULL value, unless it has been defined with the NULL\nattribute to permit NULL values. The automatic initialization and\nupdating to the current date and time can be specified using DEFAULT\nCURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP clauses, as described\nin\nhttp://dev.mysql.com/doc/refman/5.5/en/timestamp-initialization.html.\n\n*Note*: The TIMESTAMP format that was used prior to MySQL 4.1 is not\nsupported in MySQL 5.5; see MySQL 3.23, 4.0, 4.1 Reference Manual for\ninformation regarding the old format.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html'),(101,'DES_DECRYPT',12,'Syntax:\nDES_DECRYPT(crypt_str[,key_str])\n\nDecrypts a string encrypted with DES_ENCRYPT(). If an error occurs,\nthis function returns NULL.\n\nThis function works only if MySQL has been configured with SSL support.\nSee http://dev.mysql.com/doc/refman/5.5/en/ssl-connections.html.\n\nIf no key_str argument is given, DES_DECRYPT() examines the first byte\nof the encrypted string to determine the DES key number that was used\nto encrypt the original string, and then reads the key from the DES key\nfile to decrypt the message. For this to work, the user must have the\nSUPER privilege. The key file can be specified with the --des-key-file\nserver option.\n\nIf you pass this function a key_str argument, that string is used as\nthe key for decrypting the message.\n\nIf the crypt_str argument does not appear to be an encrypted string,\nMySQL returns the given crypt_str.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(102,'CACHE INDEX',27,'Syntax:\nCACHE INDEX\n tbl_index_list [, tbl_index_list] ...\n [PARTITION (partition_list | ALL)]\n IN key_cache_name\n\ntbl_index_list:\n tbl_name [[INDEX|KEY] (index_name[, index_name] ...)]\n\npartition_list:\n partition_name[, partition_name][, ...]\n\nThe CACHE INDEX statement assigns table indexes to a specific key\ncache. It is used only for MyISAM tables. After the indexes have been\nassigned, they can be preloaded into the cache if desired with LOAD\nINDEX INTO CACHE.\n\nThe following statement assigns indexes from the tables t1, t2, and t3\nto the key cache named hot_cache:\n\nmysql> CACHE INDEX t1, t2, t3 IN hot_cache;\n+---------+--------------------+----------+----------+\n| Table | Op | Msg_type | Msg_text |\n+---------+--------------------+----------+----------+\n| test.t1 | assign_to_keycache | status | OK |\n| test.t2 | assign_to_keycache | status | OK |\n| test.t3 | assign_to_keycache | status | OK |\n+---------+--------------------+----------+----------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/cache-index.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/cache-index.html'),(103,'ENDPOINT',13,'EndPoint(ls)\n\nReturns the Point that is the endpoint of the LineString value ls.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT AsText(EndPoint(GeomFromText(@ls)));\n+-------------------------------------+\n| AsText(EndPoint(GeomFromText(@ls))) |\n+-------------------------------------+\n| POINT(3 3) |\n+-------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(104,'COMPRESS',12,'Syntax:\nCOMPRESS(string_to_compress)\n\nCompresses a string and returns the result as a binary string. This\nfunction requires MySQL to have been compiled with a compression\nlibrary such as zlib. Otherwise, the return value is always NULL. The\ncompressed string can be uncompressed with UNCOMPRESS().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT LENGTH(COMPRESS(REPEAT(\'a\',1000)));\n -> 21\nmysql> SELECT LENGTH(COMPRESS(\'\'));\n -> 0\nmysql> SELECT LENGTH(COMPRESS(\'a\'));\n -> 13\nmysql> SELECT LENGTH(COMPRESS(REPEAT(\'a\',16)));\n -> 15\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(105,'INSERT',28,'Syntax:\nINSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name [(col_name,...)]\n {VALUES | VALUE} ({expr | DEFAULT},...),(...),...\n [ ON DUPLICATE KEY UPDATE\n col_name=expr\n [, col_name=expr] ... ]\n\nOr:\n\nINSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name\n SET col_name={expr | DEFAULT}, ...\n [ ON DUPLICATE KEY UPDATE\n col_name=expr\n [, col_name=expr] ... ]\n\nOr:\n\nINSERT [LOW_PRIORITY | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name [(col_name,...)]\n SELECT ...\n [ ON DUPLICATE KEY UPDATE\n col_name=expr\n [, col_name=expr] ... ]\n\nINSERT inserts new rows into an existing table. The INSERT ... VALUES\nand INSERT ... SET forms of the statement insert rows based on\nexplicitly specified values. The INSERT ... SELECT form inserts rows\nselected from another table or tables. INSERT ... SELECT is discussed\nfurther in [HELP INSERT SELECT].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/insert.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/insert.html'),(106,'COUNT',16,'Syntax:\nCOUNT(expr)\n\nReturns a count of the number of non-NULL values of expr in the rows\nretrieved by a SELECT statement. The result is a BIGINT value.\n\nCOUNT() returns 0 if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT student.student_name,COUNT(*)\n -> FROM student,course\n -> WHERE student.student_id=course.student_id\n -> GROUP BY student_name;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(107,'HANDLER',28,'Syntax:\nHANDLER tbl_name OPEN [ [AS] alias]\n\nHANDLER tbl_name READ index_name { = | <= | >= | < | > } (value1,value2,...)\n [ WHERE where_condition ] [LIMIT ... ]\nHANDLER tbl_name READ index_name { FIRST | NEXT | PREV | LAST }\n [ WHERE where_condition ] [LIMIT ... ]\nHANDLER tbl_name READ { FIRST | NEXT }\n [ WHERE where_condition ] [LIMIT ... ]\n\nHANDLER tbl_name CLOSE\n\nThe HANDLER statement provides direct access to table storage engine\ninterfaces. It is available for InnoDB and MyISAM tables.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/handler.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/handler.html'),(108,'MLINEFROMTEXT',4,'MLineFromText(wkt[,srid]), MultiLineStringFromText(wkt[,srid])\n\nConstructs a MultiLineString value using its WKT representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(109,'GEOMCOLLFROMWKB',33,'GeomCollFromWKB(wkb[,srid]), GeometryCollectionFromWKB(wkb[,srid])\n\nConstructs a GeometryCollection value using its WKB representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(110,'HELP_DATE',9,'This help information was generated from the MySQL 5.5 Reference Manual\non: 2015-05-02\n','',''),(111,'RENAME TABLE',40,'Syntax:\nRENAME TABLE tbl_name TO new_tbl_name\n [, tbl_name2 TO new_tbl_name2] ...\n\nThis statement renames one or more tables.\n\nThe rename operation is done atomically, which means that no other\nsession can access any of the tables while the rename is running. For\nexample, if you have an existing table old_table, you can create\nanother table new_table that has the same structure but is empty, and\nthen replace the existing table with the empty one as follows (assuming\nthat backup_table does not already exist):\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/rename-table.html\n\n','CREATE TABLE new_table (...);\nRENAME TABLE old_table TO backup_table, new_table TO old_table;\n','http://dev.mysql.com/doc/refman/5.5/en/rename-table.html'),(112,'BOOLEAN',23,'BOOL, BOOLEAN\n\nThese types are synonyms for TINYINT(1). A value of zero is considered\nfalse. Nonzero values are considered true:\n\nmysql> SELECT IF(0, \'true\', \'false\');\n+------------------------+\n| IF(0, \'true\', \'false\') |\n+------------------------+\n| false |\n+------------------------+\n\nmysql> SELECT IF(1, \'true\', \'false\');\n+------------------------+\n| IF(1, \'true\', \'false\') |\n+------------------------+\n| true |\n+------------------------+\n\nmysql> SELECT IF(2, \'true\', \'false\');\n+------------------------+\n| IF(2, \'true\', \'false\') |\n+------------------------+\n| true |\n+------------------------+\n\nHowever, the values TRUE and FALSE are merely aliases for 1 and 0,\nrespectively, as shown here:\n\nmysql> SELECT IF(0 = FALSE, \'true\', \'false\');\n+--------------------------------+\n| IF(0 = FALSE, \'true\', \'false\') |\n+--------------------------------+\n| true |\n+--------------------------------+\n\nmysql> SELECT IF(1 = TRUE, \'true\', \'false\');\n+-------------------------------+\n| IF(1 = TRUE, \'true\', \'false\') |\n+-------------------------------+\n| true |\n+-------------------------------+\n\nmysql> SELECT IF(2 = TRUE, \'true\', \'false\');\n+-------------------------------+\n| IF(2 = TRUE, \'true\', \'false\') |\n+-------------------------------+\n| false |\n+-------------------------------+\n\nmysql> SELECT IF(2 = FALSE, \'true\', \'false\');\n+--------------------------------+\n| IF(2 = FALSE, \'true\', \'false\') |\n+--------------------------------+\n| false |\n+--------------------------------+\n\nThe last two statements display the results shown because 2 is equal to\nneither 1 nor 0.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(113,'DEFAULT',14,'Syntax:\nDEFAULT(col_name)\n\nReturns the default value for a table column. An error results if the\ncolumn has no default value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> UPDATE t SET i = DEFAULT(i)+1 WHERE id < 100;\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(114,'MOD',3,'Syntax:\nMOD(N,M), N % M, N MOD M\n\nModulo operation. Returns the remainder of N divided by M.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT MOD(234, 10);\n -> 4\nmysql> SELECT 253 % 7;\n -> 1\nmysql> SELECT MOD(29,9);\n -> 2\nmysql> SELECT 29 MOD 9;\n -> 2\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(115,'TINYTEXT',23,'TINYTEXT [CHARACTER SET charset_name] [COLLATE collation_name]\n\nA TEXT column with a maximum length of 255 (28 − 1) characters. The\neffective maximum length is less if the value contains multibyte\ncharacters. Each TINYTEXT value is stored using a 1-byte length prefix\nthat indicates the number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(116,'OPTIMIZE TABLE',21,'Syntax:\nOPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE\n tbl_name [, tbl_name] ...\n\nReorganizes the physical storage of table data and associated index\ndata, to reduce storage space and improve I/O efficiency when accessing\nthe table. The exact changes made to each table depend on the storage\nengine used by that table.\n\nUse OPTIMIZE TABLE in these cases, depending on the type of table:\n\no After doing substantial insert, update, or delete operations on an\n InnoDB table that has its own .ibd file because it was created with\n the innodb_file_per_table option enabled. The table and indexes are\n reorganized, and disk space can be reclaimed for use by the operating\n system.\n\no After deleting a large part of a MyISAM or ARCHIVE table, or making\n many changes to a MyISAM or ARCHIVE table with variable-length rows\n (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted\n rows are maintained in a linked list and subsequent INSERT operations\n reuse old row positions. You can use OPTIMIZE TABLE to reclaim the\n unused space and to defragment the data file. After extensive changes\n to a table, this statement may also improve performance of statements\n that use the table, sometimes significantly.\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nOPTIMIZE TABLE is also supported for partitioned tables. For\ninformation about using this statement with partitioned tables and\ntable partitions, see\nhttp://dev.mysql.com/doc/refman/5.5/en/partitioning-maintenance.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/optimize-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/optimize-table.html'),(117,'DECODE',12,'Syntax:\nDECODE(crypt_str,pass_str)\n\nDecrypts the encrypted string crypt_str using pass_str as the password.\ncrypt_str should be a string returned from ENCODE().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(118,'<=>',20,'Syntax:\n<=>\n\nNULL-safe equal. This operator performs an equality comparison like the\n= operator, but returns 1 rather than NULL if both operands are NULL,\nand 0 rather than NULL if one operand is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 <=> 1, NULL <=> NULL, 1 <=> NULL;\n -> 1, 1, 0\nmysql> SELECT 1 = 1, NULL = NULL, 1 = NULL;\n -> 1, NULL, NULL\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(119,'HELP STATEMENT',29,'Syntax:\nHELP \'search_string\'\n\nThe HELP statement returns online information from the MySQL Reference\nmanual. Its proper operation requires that the help tables in the mysql\ndatabase be initialized with help topic information (see\nhttp://dev.mysql.com/doc/refman/5.5/en/server-side-help-support.html).\n\nThe HELP statement searches the help tables for the given search string\nand displays the result of the search. The search string is not case\nsensitive.\n\nThe search string can contain the wildcard characters \"%\" and \"_\".\nThese have the same meaning as for pattern-matching operations\nperformed with the LIKE operator. For example, HELP \'rep%\' returns a\nlist of topics that begin with rep.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/help.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/help.html'),(120,'RESET',27,'Syntax:\nRESET reset_option [, reset_option] ...\n\nThe RESET statement is used to clear the state of various server\noperations. You must have the RELOAD privilege to execute RESET.\n\nRESET acts as a stronger version of the FLUSH statement. See [HELP\nFLUSH].\n\nThe RESET statement causes an implicit commit. See\nhttp://dev.mysql.com/doc/refman/5.5/en/implicit-commit.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/reset.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/reset.html'),(121,'GET_LOCK',14,'Syntax:\nGET_LOCK(str,timeout)\n\nTries to obtain a lock with a name given by the string str, using a\ntimeout of timeout seconds. Before MySQL 5.5.8, a negative timeout\nvalue means infinite timeout on Windows. As of 5.5.8, this behavior\napplies on all platforms.\n\nReturns 1 if the lock was obtained successfully, 0 if the attempt timed\nout (for example, because another client has previously locked the\nname), or NULL if an error occurred (such as running out of memory or\nthe thread was killed with mysqladmin kill). If you have a lock\nobtained with GET_LOCK(), it is released when you execute\nRELEASE_LOCK(), execute a new GET_LOCK(), or your connection terminates\n(either normally or abnormally). Locks obtained with GET_LOCK() do not\ninteract with transactions. That is, committing a transaction does not\nrelease any such locks obtained during the transaction.\n\nGET_LOCK() can be used to implement application locks or to simulate\nrecord locks. Names are locked on a server-wide basis. If a name has\nbeen locked within one session, GET_LOCK() blocks any request by\nanother session for a lock with the same name. This enables clients\nthat agree on a given lock name to use the name to perform cooperative\nadvisory locking. But be aware that it also enables a client that is\nnot among the set of cooperating clients to lock a name, either\ninadvertently or deliberately, and thus prevent any of the cooperating\nclients from locking that name. One way to reduce the likelihood of\nthis is to use lock names that are database-specific or\napplication-specific. For example, use lock names of the form\ndb_name.str or app_name.str.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> SELECT GET_LOCK(\'lock1\',10);\n -> 1\nmysql> SELECT IS_FREE_LOCK(\'lock2\');\n -> 1\nmysql> SELECT GET_LOCK(\'lock2\',10);\n -> 1\nmysql> SELECT RELEASE_LOCK(\'lock2\');\n -> 1\nmysql> SELECT RELEASE_LOCK(\'lock1\');\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(122,'UCASE',38,'Syntax:\nUCASE(str)\n\nUCASE() is a synonym for UPPER().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(123,'SHOW BINLOG EVENTS',27,'Syntax:\nSHOW BINLOG EVENTS\n [IN \'log_name\'] [FROM pos] [LIMIT [offset,] row_count]\n\nShows the events in the binary log. If you do not specify \'log_name\',\nthe first binary log is displayed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-binlog-events.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-binlog-events.html'),(124,'MPOLYFROMWKB',33,'MPolyFromWKB(wkb[,srid]), MultiPolygonFromWKB(wkb[,srid])\n\nConstructs a MultiPolygon value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(125,'ITERATE',24,'Syntax:\nITERATE label\n\nITERATE can appear only within LOOP, REPEAT, and WHILE statements.\nITERATE means \"start the loop again.\"\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/iterate.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/iterate.html'),(126,'DO',28,'Syntax:\nDO expr [, expr] ...\n\nDO executes the expressions but does not return any results. In most\nrespects, DO is shorthand for SELECT expr, ..., but has the advantage\nthat it is slightly faster when you do not care about the result.\n\nDO is useful primarily with functions that have side effects, such as\nRELEASE_LOCK().\n\nExample: This SELECT statement pauses, but also produces a result set:\n\nmysql> SELECT SLEEP(5);\n+----------+\n| SLEEP(5) |\n+----------+\n| 0 |\n+----------+\n1 row in set (5.02 sec)\n\nDO, on the other hand, pauses without producing a result set.:\n\nmysql> DO SLEEP(5);\nQuery OK, 0 rows affected (4.99 sec)\n\nThis could be useful, for example in a stored function or trigger,\nwhich prohibit statements that produce result sets.\n\nDO only executes expressions. It cannot be used in all cases where\nSELECT can be used. For example, DO id FROM t1 is invalid because it\nreferences a table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/do.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/do.html'),(127,'CURTIME',32,'Syntax:\nCURTIME()\n\nReturns the current time as a value in \'HH:MM:SS\' or HHMMSS.uuuuuu\nformat, depending on whether the function is used in a string or\nnumeric context. The value is expressed in the current time zone.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT CURTIME();\n -> \'23:50:26\'\nmysql> SELECT CURTIME() + 0;\n -> 235026.000000\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(128,'CHAR_LENGTH',38,'Syntax:\nCHAR_LENGTH(str)\n\nReturns the length of the string str, measured in characters. A\nmultibyte character counts as a single character. This means that for a\nstring containing five 2-byte characters, LENGTH() returns 10, whereas\nCHAR_LENGTH() returns 5.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(129,'BIGINT',23,'BIGINT[(M)] [UNSIGNED] [ZEROFILL]\n\nA large integer. The signed range is -9223372036854775808 to\n9223372036854775807. The unsigned range is 0 to 18446744073709551615.\n\nSERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(130,'SET',27,'Syntax:\nSET variable_assignment [, variable_assignment] ...\n\nvariable_assignment:\n user_var_name = expr\n | [GLOBAL | SESSION] system_var_name = expr\n | [@@global. | @@session. | @@]system_var_name = expr\n\nThe SET statement assigns values to different types of variables that\naffect the operation of the server or your client. Older versions of\nMySQL employed SET OPTION, but this syntax is deprecated in favor of\nSET without OPTION.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/set-statement.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/set-statement.html'),(131,'LOAD XML',28,'Syntax:\nLOAD XML [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE \'file_name\'\n [REPLACE | IGNORE]\n INTO TABLE [db_name.]tbl_name\n [CHARACTER SET charset_name]\n [ROWS IDENTIFIED BY \'<tagname>\']\n [IGNORE number {LINES | ROWS}]\n [(column_or_user_var,...)]\n [SET col_name = expr,...]\n\nThe LOAD XML statement reads data from an XML file into a table. The\nfile_name must be given as a literal string. The tagname in the\noptional ROWS IDENTIFIED BY clause must also be given as a literal\nstring, and must be surrounded by angle brackets (< and >).\n\nLOAD XML acts as the complement of running the mysql client in XML\noutput mode (that is, starting the client with the --xml option). To\nwrite data from a table to an XML file, use a command such as the\nfollowing one from the system shell:\n\nshell> mysql --xml -e \'SELECT * FROM mytable\' > file.xml\n\nTo read the file back into a table, use LOAD XML INFILE. By default,\nthe <row> element is considered to be the equivalent of a database\ntable row; this can be changed using the ROWS IDENTIFIED BY clause.\n\nThis statement supports three different XML formats:\n\no Column names as attributes and column values as attribute values:\n\n<row column1=\"value1\" column2=\"value2\" .../>\n\no Column names as tags and column values as the content of these tags:\n\n<row>\n <column1>value1</column1>\n <column2>value2</column2>\n</row>\n\no Column names are the name attributes of <field> tags, and values are\n the contents of these tags:\n\n<row>\n <field name=\'column1\'>value1</field>\n <field name=\'column2\'>value2</field>\n</row>\n\n This is the format used by other MySQL tools, such as mysqldump.\n\nAll three formats can be used in the same XML file; the import routine\nautomatically detects the format for each row and interprets it\ncorrectly. Tags are matched based on the tag or attribute name and the\ncolumn name.\n\nThe following clauses work essentially the same way for LOAD XML as\nthey do for LOAD DATA:\n\no LOW_PRIORITY or CONCURRENT\n\no LOCAL\n\no REPLACE or IGNORE\n\no CHARACTER SET\n\no (column_or_user_var,...)\n\no SET\n\nSee [HELP LOAD DATA], for more information about these clauses.\n\nThe IGNORE number LINES or IGNORE number ROWS clause causes the first\nnumber rows in the XML file to be skipped. It is analogous to the LOAD\nDATA statement\'s IGNORE ... LINES clause.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/load-xml.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/load-xml.html'),(132,'CONV',3,'Syntax:\nCONV(N,from_base,to_base)\n\nConverts numbers between different number bases. Returns a string\nrepresentation of the number N, converted from base from_base to base\nto_base. Returns NULL if any argument is NULL. The argument N is\ninterpreted as an integer, but may be specified as an integer or a\nstring. The minimum base is 2 and the maximum base is 36. If to_base is\na negative number, N is regarded as a signed number. Otherwise, N is\ntreated as unsigned. CONV() works with 64-bit precision.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT CONV(\'a\',16,2);\n -> \'1010\'\nmysql> SELECT CONV(\'6E\',18,8);\n -> \'172\'\nmysql> SELECT CONV(-17,10,-18);\n -> \'-H\'\nmysql> SELECT CONV(10+\'10\'+\'10\'+0xa,10,10);\n -> \'40\'\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(133,'DATE',23,'DATE\n\nA date. The supported range is \'1000-01-01\' to \'9999-12-31\'. MySQL\ndisplays DATE values in \'YYYY-MM-DD\' format, but permits assignment of\nvalues to DATE columns using either strings or numbers.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html'),(134,'ASSIGN-VALUE',15,'Syntax:\n:=\n\nAssignment operator. Causes the user variable on the left hand side of\nthe operator to take on the value to its right. The value on the right\nhand side may be a literal value, another variable storing a value, or\nany legal expression that yields a scalar value, including the result\nof a query (provided that this value is a scalar value). You can\nperform multiple assignments in the same SET statement. You can perform\nmultiple assignments in the same statement-\n\nUnlike =, the := operator is never interpreted as a comparison\noperator. This means you can use := in any valid SQL statement (not\njust in SET statements) to assign a value to a variable.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/assignment-operators.html\n\n','mysql> SELECT @var1, @var2;\n -> NULL, NULL\nmysql> SELECT @var1 := 1, @var2;\n -> 1, NULL\nmysql> SELECT @var1, @var2;\n -> 1, NULL\nmysql> SELECT @var1, @var2 := @var1;\n -> 1, 1\nmysql> SELECT @var1, @var2;\n -> 1, 1\n\nmysql> SELECT @var1:=COUNT(*) FROM t1;\n -> 4\nmysql> SELECT @var1;\n -> 4\n','http://dev.mysql.com/doc/refman/5.5/en/assignment-operators.html'),(135,'SHOW OPEN TABLES',27,'Syntax:\nSHOW OPEN TABLES [{FROM | IN} db_name]\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW OPEN TABLES lists the non-TEMPORARY tables that are currently open\nin the table cache. See\nhttp://dev.mysql.com/doc/refman/5.5/en/table-cache.html. The FROM\nclause, if present, restricts the tables shown to those present in the\ndb_name database. The LIKE clause, if present, indicates which table\nnames to match. The WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-open-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-open-tables.html'),(136,'EXTRACT',32,'Syntax:\nEXTRACT(unit FROM date)\n\nThe EXTRACT() function uses the same kinds of unit specifiers as\nDATE_ADD() or DATE_SUB(), but extracts parts from the date rather than\nperforming date arithmetic.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT EXTRACT(YEAR FROM \'2009-07-02\');\n -> 2009\nmysql> SELECT EXTRACT(YEAR_MONTH FROM \'2009-07-02 01:02:03\');\n -> 200907\nmysql> SELECT EXTRACT(DAY_MINUTE FROM \'2009-07-02 01:02:03\');\n -> 20102\nmysql> SELECT EXTRACT(MICROSECOND\n -> FROM \'2003-01-02 10:30:00.000123\');\n -> 123\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(137,'ENCRYPT',12,'Syntax:\nENCRYPT(str[,salt])\n\nEncrypts str using the Unix crypt() system call and returns a binary\nstring. The salt argument must be a string with at least two characters\nor the result will be NULL. If no salt argument is given, a random\nvalue is used.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT ENCRYPT(\'hello\');\n -> \'VxuFAJXVARROc\'\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(138,'SHOW STATUS',27,'Syntax:\nSHOW [GLOBAL | SESSION] STATUS\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW STATUS provides server status information (see\nhttp://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html).\nThis statement does not require any privilege. It requires only the\nability to connect to the server.\n\nStatus variable information is also available from these sources:\n\no The GLOBAL_STATUS and SESSION_STATUS tables. See\n http://dev.mysql.com/doc/refman/5.5/en/status-table.html.\n\no The mysqladmin extended-status command. See\n http://dev.mysql.com/doc/refman/5.5/en/mysqladmin.html.\n\nFor SHOW STATUS, a LIKE clause, if present, indicates which variable\nnames to match. A WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nSHOW STATUS accepts an optional GLOBAL or SESSION variable scope\nmodifier:\n\no With a GLOBAL modifier, the statement displays the global status\n values. A global status variable may represent status for some aspect\n of the server itself (for example, Aborted_connects), or the\n aggregated status over all connections to MySQL (for example,\n Bytes_received and Bytes_sent). If a variable has no global value,\n the session value is displayed.\n\no With a SESSION modifier, the statement displays the status variable\n values for the current connection. If a variable has no session\n value, the global value is displayed. LOCAL is a synonym for SESSION.\n\no If no modifier is present, the default is SESSION.\n\nThe scope for each status variable is listed at\nhttp://dev.mysql.com/doc/refman/5.5/en/server-status-variables.html.\n\nEach invocation of the SHOW STATUS statement uses an internal temporary\ntable and increments the global Created_tmp_tables value.\nWith a LIKE clause, the statement displays only rows for those\nvariables with names that match the pattern:\n\nmysql> SHOW STATUS LIKE \'Key%\';\n+--------------------+----------+\n| Variable_name | Value |\n+--------------------+----------+\n| Key_blocks_used | 14955 |\n| Key_read_requests | 96854827 |\n| Key_reads | 162040 |\n| Key_write_requests | 7589728 |\n| Key_writes | 3813196 |\n+--------------------+----------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-status.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-status.html'),(139,'EXTRACTVALUE',38,'Syntax:\nExtractValue(xml_frag, xpath_expr)\n\nExtractValue() takes two string arguments, a fragment of XML markup\nxml_frag and an XPath expression xpath_expr (also known as a locator);\nit returns the text (CDATA) of the first text node which is a child of\nthe elements or elements matched by the XPath expression. In MySQL 5.5,\nthe XPath expression can contain at most 127 characters. (This\nlimitation is lifted in MySQL 5.6.)\n\nUsing this function is the equivalent of performing a match using the\nxpath_expr after appending /text(). In other words,\nExtractValue(\'<a><b>Sakila</b></a>\', \'/a/b\') and\nExtractValue(\'<a><b>Sakila</b></a>\', \'/a/b/text()\') produce the same\nresult.\n\nIf multiple matches are found, the content of the first child text node\nof each matching element is returned (in the order matched) as a\nsingle, space-delimited string.\n\nIf no matching text node is found for the expression (including the\nimplicit /text())---for whatever reason, as long as xpath_expr is\nvalid, and xml_frag consists of elements which are properly nested and\nclosed---an empty string is returned. No distinction is made between a\nmatch on an empty element and no match at all. This is by design.\n\nIf you need to determine whether no matching element was found in\nxml_frag or such an element was found but contained no child text\nnodes, you should test the result of an expression that uses the XPath\ncount() function. For example, both of these statements return an empty\nstring, as shown here:\n\nmysql> SELECT ExtractValue(\'<a><b/></a>\', \'/a/b\');\n+-------------------------------------+\n| ExtractValue(\'<a><b/></a>\', \'/a/b\') |\n+-------------------------------------+\n| |\n+-------------------------------------+\n1 row in set (0.00 sec)\n\nmysql> SELECT ExtractValue(\'<a><c/></a>\', \'/a/b\');\n+-------------------------------------+\n| ExtractValue(\'<a><c/></a>\', \'/a/b\') |\n+-------------------------------------+\n| |\n+-------------------------------------+\n1 row in set (0.00 sec)\n\nHowever, you can determine whether there was actually a matching\nelement using the following:\n\nmysql> SELECT ExtractValue(\'<a><b/></a>\', \'count(/a/b)\');\n+-------------------------------------+\n| ExtractValue(\'<a><b/></a>\', \'count(/a/b)\') |\n+-------------------------------------+\n| 1 |\n+-------------------------------------+\n1 row in set (0.00 sec)\n\nmysql> SELECT ExtractValue(\'<a><c/></a>\', \'count(/a/b)\');\n+-------------------------------------+\n| ExtractValue(\'<a><c/></a>\', \'count(/a/b)\') |\n+-------------------------------------+\n| 0 |\n+-------------------------------------+\n1 row in set (0.01 sec)\n\n*Important*: ExtractValue() returns only CDATA, and does not return any\ntags that might be contained within a matching tag, nor any of their\ncontent (see the result returned as val1 in the following example).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/xml-functions.html\n\n','mysql> SELECT\n -> ExtractValue(\'<a>ccc<b>ddd</b></a>\', \'/a\') AS val1,\n -> ExtractValue(\'<a>ccc<b>ddd</b></a>\', \'/a/b\') AS val2,\n -> ExtractValue(\'<a>ccc<b>ddd</b></a>\', \'//b\') AS val3,\n -> ExtractValue(\'<a>ccc<b>ddd</b></a>\', \'/b\') AS val4,\n -> ExtractValue(\'<a>ccc<b>ddd</b><b>eee</b></a>\', \'//b\') AS val5;\n\n+------+------+------+------+---------+\n| val1 | val2 | val3 | val4 | val5 |\n+------+------+------+------+---------+\n| ccc | ddd | ddd | | ddd eee |\n+------+------+------+------+---------+\n','http://dev.mysql.com/doc/refman/5.5/en/xml-functions.html'),(140,'OLD_PASSWORD',12,'Syntax:\nOLD_PASSWORD(str)\n\nOLD_PASSWORD() was added when the implementation of PASSWORD() was\nchanged in MySQL 4.1 to improve security. OLD_PASSWORD() returns the\nvalue of the pre-4.1 implementation of PASSWORD() as a string, and is\nintended to permit you to reset passwords for any pre-4.1 clients that\nneed to connect to your version 5.5 MySQL server without locking them\nout. See http://dev.mysql.com/doc/refman/5.5/en/password-hashing.html.\n\nAs of MySQL 5.5.3, the return value is a nonbinary string in the\nconnection character set. Before 5.5.3, the return value is a binary\nstring.\n\n*Note*: Passwords that use the pre-4.1 hashing method are less secure\nthan passwords that use the native password hashing method and should\nbe avoided.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(141,'FORMAT',38,'Syntax:\nFORMAT(X,D[,locale])\n\nFormats the number X to a format like \'#,###,###.##\', rounded to D\ndecimal places, and returns the result as a string. If D is 0, the\nresult has no decimal point or fractional part.\n\nThe optional third parameter enables a locale to be specified to be\nused for the result number\'s decimal point, thousands separator, and\ngrouping between separators. Permissible locale values are the same as\nthe legal values for the lc_time_names system variable (see\nhttp://dev.mysql.com/doc/refman/5.5/en/locale-support.html). If no\nlocale is specified, the default is \'en_US\'.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT FORMAT(12332.123456, 4);\n -> \'12,332.1235\'\nmysql> SELECT FORMAT(12332.1,4);\n -> \'12,332.1000\'\nmysql> SELECT FORMAT(12332.2,0);\n -> \'12,332\'\nmysql> SELECT FORMAT(12332.2,2,\'de_DE\');\n -> \'12.332,20\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(142,'BIT_LENGTH',38,'Syntax:\nBIT_LENGTH(str)\n\nReturns the length of the string str in bits.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT BIT_LENGTH(\'text\');\n -> 32\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(143,'EXTERIORRING',2,'ExteriorRing(poly)\n\nReturns the exterior ring of the Polygon value poly as a LineString.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly =\n -> \'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))\';\nmysql> SELECT AsText(ExteriorRing(GeomFromText(@poly)));\n+-------------------------------------------+\n| AsText(ExteriorRing(GeomFromText(@poly))) |\n+-------------------------------------------+\n| LINESTRING(0 0,0 3,3 3,3 0,0 0) |\n+-------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html'),(144,'GEOMFROMWKB',33,'GeomFromWKB(wkb[,srid]), GeometryFromWKB(wkb[,srid])\n\nConstructs a geometry value of any type using its WKB representation\nand SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(145,'SHOW SLAVE HOSTS',27,'Syntax:\nSHOW SLAVE HOSTS\n\nDisplays a list of replication slaves currently registered with the\nmaster. (Before MySQL 5.5.3, only slaves started with the\n--report-host=host_name option are visible in this list.)\n\nSHOW SLAVE HOSTS should be executed on a server that acts as a\nreplication master. The statement displays information about servers\nthat are or have been connected as replication slaves, with each row of\nthe result corresponding to one slave server, as shown here:\n\nmysql> SHOW SLAVE HOSTS;\n+------------+-----------+------+-----------+\n| Server_id | Host | Port | Master_id |\n+------------+-----------+------+-----------+\n| 192168010 | iconnect2 | 3306 | 192168011 |\n| 1921680101 | athena | 3306 | 192168011 |\n+------------+-----------+------+-----------+\n\no Server_id: The unique server ID of the slave server, as configured in\n the slave server\'s option file, or on the command line with\n --server-id=value.\n\no Host: The host name of the slave server as specified on the slave\n with the --report-host option. This can differ from the machine name\n as configured in the operating system.\n\no User: The slave server user name as, specified on the slave with the\n --report-user option. Statement output includes this column only if\n the master server is started with the --show-slave-auth-info option.\n\no Password: The slave server password as, specified on the slave with\n the --report-password option. Statement output includes this column\n only if the master server is started with the --show-slave-auth-info\n option.\n\no Port: The port on the master to which the slave server is listening,\n as specified on the slave with the --report-port option.\n\n In MySQL 5.5.23 and later, a zero in this column means that the slave\n port (--report-port) was not set. Prior to MySQL 5.5.23, 3306 was\n used as the default in such cases (Bug #13333431).\n\no Master_id: The unique server ID of the master server that the slave\n server is replicating from. This is the server ID of the server on\n which SHOW SLAVE HOSTS is executed, so this same value is listed for\n each row in the result.\n\nSome MySQL versions report another variable, Rpl_recovery_rank. This\nvariable was never used, and was removed in MySQL 5.5.3. (Bug #13963)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-slave-hosts.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-slave-hosts.html'),(146,'START TRANSACTION',8,'Syntax:\nSTART TRANSACTION [WITH CONSISTENT SNAPSHOT]\nBEGIN [WORK]\nCOMMIT [WORK] [AND [NO] CHAIN] [[NO] RELEASE]\nROLLBACK [WORK] [AND [NO] CHAIN] [[NO] RELEASE]\nSET autocommit = {0 | 1}\n\nThese statements provide control over use of transactions:\n\no START TRANSACTION or BEGIN start a new transaction.\n\no COMMIT commits the current transaction, making its changes permanent.\n\no ROLLBACK rolls back the current transaction, canceling its changes.\n\no SET autocommit disables or enables the default autocommit mode for\n the current session.\n\nBy default, MySQL runs with autocommit mode enabled. This means that as\nsoon as you execute a statement that updates (modifies) a table, MySQL\nstores the update on disk to make it permanent. The change cannot be\nrolled back.\n\nTo disable autocommit mode implicitly for a single series of\nstatements, use the START TRANSACTION statement:\n\nSTART TRANSACTION;\nSELECT @A:=SUM(salary) FROM table1 WHERE type=1;\nUPDATE table2 SET summary=@A WHERE type=1;\nCOMMIT;\n\nWith START TRANSACTION, autocommit remains disabled until you end the\ntransaction with COMMIT or ROLLBACK. The autocommit mode then reverts\nto its previous state.\n\nYou can also begin a transaction like this:\n\nSTART TRANSACTION WITH CONSISTENT SNAPSHOT;\n\nThe WITH CONSISTENT SNAPSHOT option starts a consistent read for\nstorage engines that are capable of it. This applies only to InnoDB.\nThe effect is the same as issuing a START TRANSACTION followed by a\nSELECT from any InnoDB table. See\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-consistent-read.html. The\nWITH CONSISTENT SNAPSHOT option does not change the current transaction\nisolation level, so it provides a consistent snapshot only if the\ncurrent isolation level is one that permits a consistent read. The only\nisolation level that permits a consistent read is REPEATABLE READ. For\nall other isolation levels, the WITH CONSISTENT SNAPSHOT clause is\nignored. As of MySQL 5.5.34, a warning is generated when the WITH\nCONSISTENT SNAPSHOT is ignored.\n\n*Important*: Many APIs used for writing MySQL client applications (such\nas JDBC) provide their own methods for starting transactions that can\n(and sometimes should) be used instead of sending a START TRANSACTION\nstatement from the client. See\nhttp://dev.mysql.com/doc/refman/5.5/en/connectors-apis.html, or the\ndocumentation for your API, for more information.\n\nTo disable autocommit mode explicitly, use the following statement:\n\nSET autocommit=0;\n\nAfter disabling autocommit mode by setting the autocommit variable to\nzero, changes to transaction-safe tables (such as those for InnoDB or\nNDBCLUSTER) are not made permanent immediately. You must use COMMIT to\nstore your changes to disk or ROLLBACK to ignore the changes.\n\nautocommit is a session variable and must be set for each session. To\ndisable autocommit mode for each new connection, see the description of\nthe autocommit system variable at\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nBEGIN and BEGIN WORK are supported as aliases of START TRANSACTION for\ninitiating a transaction. START TRANSACTION is standard SQL syntax and\nis the recommended way to start an ad-hoc transaction.\n\nThe BEGIN statement differs from the use of the BEGIN keyword that\nstarts a BEGIN ... END compound statement. The latter does not begin a\ntransaction. See [HELP BEGIN END].\n\n*Note*: Within all stored programs (stored procedures and functions,\ntriggers, and events), the parser treats BEGIN [WORK] as the beginning\nof a BEGIN ... END block. Begin a transaction in this context with\nSTART TRANSACTION instead.\n\nThe optional WORK keyword is supported for COMMIT and ROLLBACK, as are\nthe CHAIN and RELEASE clauses. CHAIN and RELEASE can be used for\nadditional control over transaction completion. The value of the\ncompletion_type system variable determines the default completion\nbehavior. See\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nThe AND CHAIN clause causes a new transaction to begin as soon as the\ncurrent one ends, and the new transaction has the same isolation level\nas the just-terminated transaction. The RELEASE clause causes the\nserver to disconnect the current client session after terminating the\ncurrent transaction. Including the NO keyword suppresses CHAIN or\nRELEASE completion, which can be useful if the completion_type system\nvariable is set to cause chaining or release completion by default.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/commit.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/commit.html'),(147,'BETWEEN AND',20,'Syntax:\nexpr BETWEEN min AND max\n\nIf expr is greater than or equal to min and expr is less than or equal\nto max, BETWEEN returns 1, otherwise it returns 0. This is equivalent\nto the expression (min <= expr AND expr <= max) if all the arguments\nare of the same type. Otherwise type conversion takes place according\nto the rules described in\nhttp://dev.mysql.com/doc/refman/5.5/en/type-conversion.html, but\napplied to all the three arguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 2 BETWEEN 1 AND 3, 2 BETWEEN 3 and 1;\n -> 1, 0\nmysql> SELECT 1 BETWEEN 2 AND 3;\n -> 0\nmysql> SELECT \'b\' BETWEEN \'a\' AND \'c\';\n -> 1\nmysql> SELECT 2 BETWEEN 2 AND \'3\';\n -> 1\nmysql> SELECT 2 BETWEEN 2 AND \'x-3\';\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(148,'MULTIPOLYGON',25,'MultiPolygon(poly1,poly2,...)\n\nConstructs a MultiPolygon value from a set of Polygon or WKB Polygon\narguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(149,'TIME_FORMAT',32,'Syntax:\nTIME_FORMAT(time,format)\n\nThis is used like the DATE_FORMAT() function, but the format string may\ncontain format specifiers only for hours, minutes, seconds, and\nmicroseconds. Other specifiers produce a NULL value or 0.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIME_FORMAT(\'100:00:00\', \'%H %k %h %I %l\');\n -> \'100 100 04 04 4\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(150,'LEFT',38,'Syntax:\nLEFT(str,len)\n\nReturns the leftmost len characters from the string str, or NULL if any\nargument is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT LEFT(\'foobarbar\', 5);\n -> \'fooba\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(151,'FLUSH QUERY CACHE',27,'You can defragment the query cache to better utilize its memory with\nthe FLUSH QUERY CACHE statement. The statement does not remove any\nqueries from the cache.\n\nThe RESET QUERY CACHE statement removes all query results from the\nquery cache. The FLUSH TABLES statement also does this.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/query-cache-status-and-maintenance.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/query-cache-status-and-maintenance.html'),(152,'SET DATA TYPE',23,'SET(\'value1\',\'value2\',...) [CHARACTER SET charset_name] [COLLATE\ncollation_name]\n\nA set. A string object that can have zero or more values, each of which\nmust be chosen from the list of values \'value1\', \'value2\', ... SET\nvalues are represented internally as integers.\n\nA SET column can have a maximum of 64 distinct members. A table can\nhave no more than 255 unique element list definitions among its ENUM\nand SET columns considered as a group. For more information on this\nlimit, see http://dev.mysql.com/doc/refman/5.5/en/limits-frm-file.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(153,'RAND',3,'Syntax:\nRAND(), RAND(N)\n\nReturns a random floating-point value v in the range 0 <= v < 1.0. If a\nconstant integer argument N is specified, it is used as the seed value,\nwhich produces a repeatable sequence of column values. In the following\nexample, note that the sequences of values produced by RAND(3) is the\nsame both places where it occurs.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> CREATE TABLE t (i INT);\nQuery OK, 0 rows affected (0.42 sec)\n\nmysql> INSERT INTO t VALUES(1),(2),(3);\nQuery OK, 3 rows affected (0.00 sec)\nRecords: 3 Duplicates: 0 Warnings: 0\n\nmysql> SELECT i, RAND() FROM t;\n+------+------------------+\n| i | RAND() |\n+------+------------------+\n| 1 | 0.61914388706828 |\n| 2 | 0.93845168309142 |\n| 3 | 0.83482678498591 |\n+------+------------------+\n3 rows in set (0.00 sec)\n\nmysql> SELECT i, RAND(3) FROM t;\n+------+------------------+\n| i | RAND(3) |\n+------+------------------+\n| 1 | 0.90576975597606 |\n| 2 | 0.37307905813035 |\n| 3 | 0.14808605345719 |\n+------+------------------+\n3 rows in set (0.00 sec)\n\nmysql> SELECT i, RAND() FROM t;\n+------+------------------+\n| i | RAND() |\n+------+------------------+\n| 1 | 0.35877890638893 |\n| 2 | 0.28941420772058 |\n| 3 | 0.37073435016976 |\n+------+------------------+\n3 rows in set (0.00 sec)\n\nmysql> SELECT i, RAND(3) FROM t;\n+------+------------------+\n| i | RAND(3) |\n+------+------------------+\n| 1 | 0.90576975597606 |\n| 2 | 0.37307905813035 |\n| 3 | 0.14808605345719 |\n+------+------------------+\n3 rows in set (0.01 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(154,'RPAD',38,'Syntax:\nRPAD(str,len,padstr)\n\nReturns the string str, right-padded with the string padstr to a length\nof len characters. If str is longer than len, the return value is\nshortened to len characters.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT RPAD(\'hi\',5,\'?\');\n -> \'hi???\'\nmysql> SELECT RPAD(\'hi\',1,\'?\');\n -> \'h\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(155,'CREATE DATABASE',40,'Syntax:\nCREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name\n [create_specification] ...\n\ncreate_specification:\n [DEFAULT] CHARACTER SET [=] charset_name\n | [DEFAULT] COLLATE [=] collation_name\n\nCREATE DATABASE creates a database with the given name. To use this\nstatement, you need the CREATE privilege for the database. CREATE\nSCHEMA is a synonym for CREATE DATABASE.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-database.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-database.html'),(156,'DEC',23,'DEC[(M[,D])] [UNSIGNED] [ZEROFILL], NUMERIC[(M[,D])] [UNSIGNED]\n[ZEROFILL], FIXED[(M[,D])] [UNSIGNED] [ZEROFILL]\n\nThese types are synonyms for DECIMAL. The FIXED synonym is available\nfor compatibility with other database systems.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(157,'VAR_POP',16,'Syntax:\nVAR_POP(expr)\n\nReturns the population standard variance of expr. It considers rows as\nthe whole population, not as a sample, so it has the number of rows as\nthe denominator. You can also use VARIANCE(), which is equivalent but\nis not standard SQL.\n\nVAR_POP() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(158,'ELT',38,'Syntax:\nELT(N,str1,str2,str3,...)\n\nELT() returns the Nth element of the list of strings: str1 if N = 1,\nstr2 if N = 2, and so on. Returns NULL if N is less than 1 or greater\nthan the number of arguments. ELT() is the complement of FIELD().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT ELT(1, \'ej\', \'Heja\', \'hej\', \'foo\');\n -> \'ej\'\nmysql> SELECT ELT(4, \'ej\', \'Heja\', \'hej\', \'foo\');\n -> \'foo\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(159,'ALTER VIEW',40,'Syntax:\nALTER\n [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]\n [DEFINER = { user | CURRENT_USER }]\n [SQL SECURITY { DEFINER | INVOKER }]\n VIEW view_name [(column_list)]\n AS select_statement\n [WITH [CASCADED | LOCAL] CHECK OPTION]\n\nThis statement changes the definition of a view, which must exist. The\nsyntax is similar to that for CREATE VIEW and the effect is the same as\nfor CREATE OR REPLACE VIEW. See [HELP CREATE VIEW]. This statement\nrequires the CREATE VIEW and DROP privileges for the view, and some\nprivilege for each column referred to in the SELECT statement. ALTER\nVIEW is permitted only to the definer or users with the SUPER\nprivilege.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-view.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-view.html'),(160,'SHOW DATABASES',27,'Syntax:\nSHOW {DATABASES | SCHEMAS}\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW DATABASES lists the databases on the MySQL server host. SHOW\nSCHEMAS is a synonym for SHOW DATABASES. The LIKE clause, if present,\nindicates which database names to match. The WHERE clause can be given\nto select rows using more general conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nYou see only those databases for which you have some kind of privilege,\nunless you have the global SHOW DATABASES privilege. You can also get\nthis list using the mysqlshow command.\n\nIf the server was started with the --skip-show-database option, you\ncannot use this statement at all unless you have the SHOW DATABASES\nprivilege.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-databases.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-databases.html'),(161,'~',19,'Syntax:\n~\n\nInvert all bits.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 5 & ~1;\n -> 4\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(162,'TEXT',23,'TEXT[(M)] [CHARACTER SET charset_name] [COLLATE collation_name]\n\nA TEXT column with a maximum length of 65,535 (216 − 1) characters.\nThe effective maximum length is less if the value contains multibyte\ncharacters. Each TEXT value is stored using a 2-byte length prefix that\nindicates the number of bytes in the value.\n\nAn optional length M can be given for this type. If this is done, MySQL\ncreates the column as the smallest TEXT type large enough to hold\nvalues M characters long.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(163,'CONCAT_WS',38,'Syntax:\nCONCAT_WS(separator,str1,str2,...)\n\nCONCAT_WS() stands for Concatenate With Separator and is a special form\nof CONCAT(). The first argument is the separator for the rest of the\narguments. The separator is added between the strings to be\nconcatenated. The separator can be a string, as can the rest of the\narguments. If the separator is NULL, the result is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT CONCAT_WS(\',\',\'First name\',\'Second name\',\'Last Name\');\n -> \'First name,Second name,Last Name\'\nmysql> SELECT CONCAT_WS(\',\',\'First name\',NULL,\'Last Name\');\n -> \'First name,Last Name\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(164,'ROW_COUNT',17,'Syntax:\nROW_COUNT()\n\nBefore MySQL 5.5.5, ROW_COUNT() returns the number of rows changed,\ndeleted, or inserted by the last statement if it was an UPDATE, DELETE,\nor INSERT. For other statements, the value may not be meaningful.\n\nAs of MySQL 5.5.5, ROW_COUNT() returns a value as follows:\n\no DDL statements: 0. This applies to statements such as CREATE TABLE or\n DROP TABLE.\n\no DML statements other than SELECT: The number of affected rows. This\n applies to statements such as UPDATE, INSERT, or DELETE (as before),\n but now also to statements such as ALTER TABLE and LOAD DATA INFILE.\n\no SELECT: -1 if the statement returns a result set, or the number of\n rows \"affected\" if it does not. For example, for SELECT * FROM t1,\n ROW_COUNT() returns -1. For SELECT * FROM t1 INTO OUTFILE\n \'file_name\', ROW_COUNT() returns the number of rows written to the\n file.\n\no SIGNAL statements: 0.\n\nFor UPDATE statements, the affected-rows value by default is the number\nof rows actually changed. If you specify the CLIENT_FOUND_ROWS flag to\nmysql_real_connect() when connecting to mysqld, the affected-rows value\nis the number of rows \"found\"; that is, matched by the WHERE clause.\n\nFor REPLACE statements, the affected-rows value is 2 if the new row\nreplaced an old row, because in this case, one row was inserted after\nthe duplicate was deleted.\n\nFor INSERT ... ON DUPLICATE KEY UPDATE statements, the affected-rows\nvalue per row is 1 if the row is inserted as a new row, 2 if an\nexisting row is updated, and 0 if an existing row is set to its current\nvalues. If you specify the CLIENT_FOUND_ROWS flag, the affected-rows\nvalue is 1 (not 0) if an existing row is set to its current values.\n\nThe ROW_COUNT() value is similar to the value from the\nmysql_affected_rows() C API function and the row count that the mysql\nclient displays following statement execution.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> INSERT INTO t VALUES(1),(2),(3);\nQuery OK, 3 rows affected (0.00 sec)\nRecords: 3 Duplicates: 0 Warnings: 0\n\nmysql> SELECT ROW_COUNT();\n+-------------+\n| ROW_COUNT() |\n+-------------+\n| 3 |\n+-------------+\n1 row in set (0.00 sec)\n\nmysql> DELETE FROM t WHERE i IN(1,2);\nQuery OK, 2 rows affected (0.00 sec)\n\nmysql> SELECT ROW_COUNT();\n+-------------+\n| ROW_COUNT() |\n+-------------+\n| 2 |\n+-------------+\n1 row in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(165,'ASIN',3,'Syntax:\nASIN(X)\n\nReturns the arc sine of X, that is, the value whose sine is X. Returns\nNULL if X is not in the range -1 to 1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ASIN(0.2);\n -> 0.20135792079033\nmysql> SELECT ASIN(\'foo\');\n\n+-------------+\n| ASIN(\'foo\') |\n+-------------+\n| 0 |\n+-------------+\n1 row in set, 1 warning (0.00 sec)\n\nmysql> SHOW WARNINGS;\n+---------+------+-----------------------------------------+\n| Level | Code | Message |\n+---------+------+-----------------------------------------+\n| Warning | 1292 | Truncated incorrect DOUBLE value: \'foo\' |\n+---------+------+-----------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(166,'SIGN',3,'Syntax:\nSIGN(X)\n\nReturns the sign of the argument as -1, 0, or 1, depending on whether X\nis negative, zero, or positive.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT SIGN(-32);\n -> -1\nmysql> SELECT SIGN(0);\n -> 0\nmysql> SELECT SIGN(234);\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(167,'SEC_TO_TIME',32,'Syntax:\nSEC_TO_TIME(seconds)\n\nReturns the seconds argument, converted to hours, minutes, and seconds,\nas a TIME value. The range of the result is constrained to that of the\nTIME data type. A warning occurs if the argument corresponds to a value\noutside that range.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT SEC_TO_TIME(2378);\n -> \'00:39:38\'\nmysql> SELECT SEC_TO_TIME(2378) + 0;\n -> 3938\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(168,'FLOAT',23,'FLOAT[(M,D)] [UNSIGNED] [ZEROFILL]\n\nA small (single-precision) floating-point number. Permissible values\nare -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to\n3.402823466E+38. These are the theoretical limits, based on the IEEE\nstandard. The actual range might be slightly smaller depending on your\nhardware or operating system.\n\nM is the total number of digits and D is the number of digits following\nthe decimal point. If M and D are omitted, values are stored to the\nlimits permitted by the hardware. A single-precision floating-point\nnumber is accurate to approximately 7 decimal places.\n\nUNSIGNED, if specified, disallows negative values.\n\nUsing FLOAT might give you some unexpected problems because all\ncalculations in MySQL are done with double precision. See\nhttp://dev.mysql.com/doc/refman/5.5/en/no-matching-rows.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(169,'LOCATE',38,'Syntax:\nLOCATE(substr,str), LOCATE(substr,str,pos)\n\nThe first syntax returns the position of the first occurrence of\nsubstring substr in string str. The second syntax returns the position\nof the first occurrence of substring substr in string str, starting at\nposition pos. Returns 0 if substr is not in str.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT LOCATE(\'bar\', \'foobarbar\');\n -> 4\nmysql> SELECT LOCATE(\'xbar\', \'foobar\');\n -> 0\nmysql> SELECT LOCATE(\'bar\', \'foobarbar\', 5);\n -> 7\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(170,'SHOW EVENTS',27,'Syntax:\nSHOW EVENTS [{FROM | IN} schema_name]\n [LIKE \'pattern\' | WHERE expr]\n\nThis statement displays information about Event Manager events. It\nrequires the EVENT privilege for the database from which the events are\nto be shown.\n\nIn its simplest form, SHOW EVENTS lists all of the events in the\ncurrent schema:\n\nmysql> SELECT CURRENT_USER(), SCHEMA();\n+----------------+----------+\n| CURRENT_USER() | SCHEMA() |\n+----------------+----------+\n| jon@ghidora | myschema |\n+----------------+----------+\n1 row in set (0.00 sec)\n\nmysql> SHOW EVENTS\\G\n*************************** 1. row ***************************\n Db: myschema\n Name: e_daily\n Definer: jon@ghidora\n Time zone: SYSTEM\n Type: RECURRING\n Execute at: NULL\n Interval value: 10\n Interval field: SECOND\n Starts: 2006-02-09 10:41:23\n Ends: NULL\n Status: ENABLED\n Originator: 0\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n\nTo see events for a specific schema, use the FROM clause. For example,\nto see events for the test schema, use the following statement:\n\nSHOW EVENTS FROM test;\n\nThe LIKE clause, if present, indicates which event names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-events.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-events.html'),(171,'CHARSET',17,'Syntax:\nCHARSET(str)\n\nReturns the character set of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT CHARSET(\'abc\');\n -> \'latin1\'\nmysql> SELECT CHARSET(CONVERT(\'abc\' USING utf8));\n -> \'utf8\'\nmysql> SELECT CHARSET(USER());\n -> \'utf8\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(172,'SUBDATE',32,'Syntax:\nSUBDATE(date,INTERVAL expr unit), SUBDATE(expr,days)\n\nWhen invoked with the INTERVAL form of the second argument, SUBDATE()\nis a synonym for DATE_SUB(). For information on the INTERVAL unit\nargument, see the discussion for DATE_ADD().\n\nmysql> SELECT DATE_SUB(\'2008-01-02\', INTERVAL 31 DAY);\n -> \'2007-12-02\'\nmysql> SELECT SUBDATE(\'2008-01-02\', INTERVAL 31 DAY);\n -> \'2007-12-02\'\n\nThe second form enables the use of an integer value for days. In such\ncases, it is interpreted as the number of days to be subtracted from\nthe date or datetime expression expr.\n\nmysql> SELECT SUBDATE(\'2008-01-02 12:00:00\', 31);\n -> \'2007-12-02 12:00:00\'\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(173,'DAYOFYEAR',32,'Syntax:\nDAYOFYEAR(date)\n\nReturns the day of the year for date, in the range 1 to 366.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFYEAR(\'2007-02-03\');\n -> 34\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(174,'%',3,'Syntax:\nN % M, N MOD M\n\nModulo operation. Returns the remainder of N divided by M. For more\ninformation, see the description for the MOD() function in\nhttp://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(175,'LONGTEXT',23,'LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]\n\nA TEXT column with a maximum length of 4,294,967,295 or 4GB (232 − 1)\ncharacters. The effective maximum length is less if the value contains\nmultibyte characters. The effective maximum length of LONGTEXT columns\nalso depends on the configured maximum packet size in the client/server\nprotocol and available memory. Each LONGTEXT value is stored using a\n4-byte length prefix that indicates the number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(176,'KILL',27,'Syntax:\nKILL [CONNECTION | QUERY] processlist_id\n\nEach connection to mysqld runs in a separate thread. You can kill a\nthread with the KILL processlist_id statement.\n\nThread processlist identifiers can be determined from the ID column of\nthe INFORMATION_SCHEMA.PROCESSLIST table, the Id column of SHOW\nPROCESSLIST output, and the PROCESSLIST_ID column of the Performance\nSchema threads table. The value for the current thread is returned by\nthe CONNECTION_ID() function.\n\nKILL permits an optional CONNECTION or QUERY modifier:\n\no KILL CONNECTION is the same as KILL with no modifier: It terminates\n the connection associated with the given processlist_id, after\n terminating any statement the connection is executing.\n\no KILL QUERY terminates the statement the connection is currently\n executing, but leaves the connection itself intact.\n\nIf you have the PROCESS privilege, you can see all threads. If you have\nthe SUPER privilege, you can kill all threads and statements.\nOtherwise, you can see and kill only your own threads and statements.\n\nYou can also use the mysqladmin processlist and mysqladmin kill\ncommands to examine and kill threads.\n\n*Note*: You cannot use KILL with the Embedded MySQL Server library\nbecause the embedded server merely runs inside the threads of the host\napplication. It does not create any connection threads of its own.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/kill.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/kill.html'),(177,'DISJOINT',31,'Disjoint(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 is spatially disjoint from (does\nnot intersect) g2.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(178,'ASTEXT',33,'AsText(g), AsWKT(g)\n\nConverts a value in internal geometry format to its WKT representation\nand returns the string result.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-format-conversion-functions.html\n\n','mysql> SET @g = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT AsText(GeomFromText(@g));\n+--------------------------+\n| AsText(GeomFromText(@g)) |\n+--------------------------+\n| LINESTRING(1 1,2 2,3 3) |\n+--------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-format-conversion-functions.html'),(179,'LPAD',38,'Syntax:\nLPAD(str,len,padstr)\n\nReturns the string str, left-padded with the string padstr to a length\nof len characters. If str is longer than len, the return value is\nshortened to len characters.\n\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT LPAD(\'hi\',4,\'??\');\n -> \'??hi\'\nmysql> SELECT LPAD(\'hi\',1,\'??\');\n -> \'h\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(180,'DECLARE CONDITION',24,'Syntax:\nDECLARE condition_name CONDITION FOR condition_value\n\ncondition_value:\n mysql_error_code\n | SQLSTATE [VALUE] sqlstate_value\n\nThe DECLARE ... CONDITION statement declares a named error condition,\nassociating a name with a condition that needs specific handling. The\nname can be referred to in a subsequent DECLARE ... HANDLER statement\n(see [HELP DECLARE HANDLER]).\n\nCondition declarations must appear before cursor or handler\ndeclarations.\n\nThe condition_value for DECLARE ... CONDITION can be a MySQL error code\n(a number) or an SQLSTATE value (a 5-character string literal). You\nshould not use MySQL error code 0 or SQLSTATE values that begin with\n\'00\', because those indicate success rather than an error condition.\nFor a list of MySQL error codes and SQLSTATE values, see\nhttp://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/declare-condition.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/declare-condition.html'),(181,'OVERLAPS',31,'Overlaps(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 spatially overlaps g2. The term\nspatially overlaps is used if two geometries intersect and their\nintersection results in a geometry of the same dimension but not equal\nto either of the given geometries.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(182,'SET GLOBAL SQL_SLAVE_SKIP_COUNTER',8,'Syntax:\nSET GLOBAL sql_slave_skip_counter = N\n\nThis statement skips the next N events from the master. This is useful\nfor recovering from replication stops caused by a statement.\n\nThis statement is valid only when the slave threads are not running.\nOtherwise, it produces an error.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/set-global-sql-slave-skip-counter.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/set-global-sql-slave-skip-counter.html'),(183,'NUMGEOMETRIES',26,'NumGeometries(gc)\n\nReturns the number of geometries in the GeometryCollection value gc.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-geometrycollection-property-functions.html\n\n','mysql> SET @gc = \'GeometryCollection(Point(1 1),LineString(2 2, 3 3))\';\nmysql> SELECT NumGeometries(GeomFromText(@gc));\n+----------------------------------+\n| NumGeometries(GeomFromText(@gc)) |\n+----------------------------------+\n| 2 |\n+----------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-geometrycollection-property-functions.html'),(184,'MONTHNAME',32,'Syntax:\nMONTHNAME(date)\n\nReturns the full name of the month for date. The language used for the\nname is controlled by the value of the lc_time_names system variable\n(http://dev.mysql.com/doc/refman/5.5/en/locale-support.html).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MONTHNAME(\'2008-02-03\');\n -> \'February\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(185,'CHANGE MASTER TO',8,'Syntax:\nCHANGE MASTER TO option [, option] ...\n\noption:\n MASTER_BIND = \'interface_name\'\n | MASTER_HOST = \'host_name\'\n | MASTER_USER = \'user_name\'\n | MASTER_PASSWORD = \'password\'\n | MASTER_PORT = port_num\n | MASTER_CONNECT_RETRY = interval\n | MASTER_HEARTBEAT_PERIOD = interval\n | MASTER_LOG_FILE = \'master_log_name\'\n | MASTER_LOG_POS = master_log_pos\n | RELAY_LOG_FILE = \'relay_log_name\'\n | RELAY_LOG_POS = relay_log_pos\n | MASTER_SSL = {0|1}\n | MASTER_SSL_CA = \'ca_file_name\'\n | MASTER_SSL_CAPATH = \'ca_directory_name\'\n | MASTER_SSL_CERT = \'cert_file_name\'\n | MASTER_SSL_KEY = \'key_file_name\'\n | MASTER_SSL_CIPHER = \'cipher_list\'\n | MASTER_SSL_VERIFY_SERVER_CERT = {0|1}\n | IGNORE_SERVER_IDS = (server_id_list)\n\nserver_id_list:\n [server_id [, server_id] ... ]\n\nCHANGE MASTER TO changes the parameters that the slave server uses for\nconnecting to the master server, for reading the master binary log, and\nreading the slave relay log. It also updates the contents of the\nmaster.info and relay-log.info files. To use CHANGE MASTER TO, the\nslave replication threads must be stopped (use STOP SLAVE if\nnecessary).\n\nOptions not specified retain their value, except as indicated in the\nfollowing discussion. Thus, in most cases, there is no need to specify\noptions that do not change. For example, if the password to connect to\nyour MySQL master has changed, you just need to issue these statements\nto tell the slave about the new password:\n\nSTOP SLAVE; -- if replication was running\nCHANGE MASTER TO MASTER_PASSWORD=\'<PASSWORD>\';\nSTART SLAVE; -- if you want to restart replication\n\nMASTER_HOST, MASTER_USER, MASTER_PASSWORD, and MASTER_PORT provide\ninformation to the slave about how to connect to its master:\n\no MASTER_HOST and MASTER_PORT are the host name (or IP address) of the\n master host and its TCP/IP port.\n\n *Note*: Replication cannot use Unix socket files. You must be able to\n connect to the master MySQL server using TCP/IP.\n\n If you specify the MASTER_HOST or MASTER_PORT option, the slave\n assumes that the master server is different from before (even if the\n option value is the same as its current value.) In this case, the old\n values for the master binary log file name and position are\n considered no longer applicable, so if you do not specify\n MASTER_LOG_FILE and MASTER_LOG_POS in the statement,\n MASTER_LOG_FILE=\'\' and MASTER_LOG_POS=4 are silently appended to it.\n\n Setting MASTER_HOST=\'\' (that is, setting its value explicitly to an\n empty string) is not the same as not setting MASTER_HOST at all.\n Beginning with MySQL 5.5, trying to set MASTER_HOST to an empty\n string fails with an error. Previously, setting MASTER_HOST to an\n empty string caused START SLAVE subsequently to fail. (Bug #28796)\n\no MASTER_USER and MASTER_PASSWORD are the user name and password of the\n account to use for connecting to the master.\n\n In MySQL 5.5.20 and later, MASTER_USER cannot be made empty; setting\n MASTER_USER = \'\' or leaving it unset when setting a value for\n MASTER_PASSWORD causes an error (Bug #13427949).\n\n The password used for a MySQL Replication slave account in a CHANGE\n MASTER TO statement is limited to 32 characters in length; if the\n password is longer, the statement succeeds, but any excess characters\n are silently truncated. This is an issue specific to MySQL\n Replication, which is fixed in MySQL 5.7. (Bug #11752299, Bug #43439)\n\n The text of a running CHANGE MASTER TO statement, including values\n for MASTER_USER and MASTER_PASSWORD, can be seen in the output of a\n concurrent SHOW PROCESSLIST statement.\n\nThe MASTER_SSL_xxx options provide information about using SSL for the\nconnection. They correspond to the --ssl-xxx options described in\nhttp://dev.mysql.com/doc/refman/5.5/en/ssl-options.html, and\nhttp://dev.mysql.com/doc/refman/5.5/en/replication-solutions-ssl.html.\nThese options can be changed even on slaves that are compiled without\nSSL support. They are saved to the master.info file, but are ignored if\nthe slave does not have SSL support enabled.\n\nMASTER_CONNECT_RETRY specifies how many seconds to wait between connect\nretries. The default is 60. The number of reconnection attempts is\nlimited by the --master-retry-count server option; for more\ninformation, see\nhttp://dev.mysql.com/doc/refman/5.5/en/replication-options.html.\n\nThe MASTER_BIND option is available in MySQL Cluster NDB 7.2 and later,\nbut is not supported in mainline MySQL 5.5.\n\nMASTER_BIND is for use on replication slaves having multiple network\ninterfaces, and determines which of the slave\'s network interfaces is\nchosen for connecting to the master.\n\nMASTER_HEARTBEAT_PERIOD sets the interval in seconds between\nreplication heartbeats. Whenever the master\'s binary log is updated\nwith an event, the waiting period for the next heartbeat is reset.\ninterval is a decimal value having the range 0 to 4294967 seconds and a\nresolution in milliseconds; the smallest nonzero value is 0.001.\nHeartbeats are sent by the master only if there are no unsent events in\nthe binary log file for a period longer than interval.\n\nSetting interval to 0 disables heartbeats altogether. The default value\nfor interval is equal to the value of slave_net_timeout divided by 2.\n\nSetting @@global.slave_net_timeout to a value less than that of the\ncurrent heartbeat interval results in a warning being issued. The\neffect of issuing RESET SLAVE on the heartbeat interval is to reset it\nto the default value.\n\nMASTER_LOG_FILE and MASTER_LOG_POS are the coordinates at which the\nslave I/O thread should begin reading from the master the next time the\nthread starts. RELAY_LOG_FILE and RELAY_LOG_POS are the coordinates at\nwhich the slave SQL thread should begin reading from the relay log the\nnext time the thread starts. If you specify either of MASTER_LOG_FILE\nor MASTER_LOG_POS, you cannot specify RELAY_LOG_FILE or RELAY_LOG_POS.\nIf neither of MASTER_LOG_FILE or MASTER_LOG_POS is specified, the slave\nuses the last coordinates of the slave SQL thread before CHANGE MASTER\nTO was issued. This ensures that there is no discontinuity in\nreplication, even if the slave SQL thread was late compared to the\nslave I/O thread, when you merely want to change, say, the password to\nuse.\n\nCHANGE MASTER TO deletes all relay log files and starts a new one,\nunless you specify RELAY_LOG_FILE or RELAY_LOG_POS. In that case, relay\nlog files are kept; the relay_log_purge global variable is set silently\nto 0.\n\nPrior to MySQL 5.5, RELAY_LOG_FILE required an absolute path. In MySQL\n5.5, the path can be relative, in which case the path is assumed to be\nrelative to the slave\'s data directory. (Bug #12190)\n\nIGNORE_SERVER_IDS was added in MySQL 5.5. This option takes a\ncomma-separated list of 0 or more server IDs. Events originating from\nthe corresponding servers are ignored, with the exception of log\nrotation and deletion events, which are still recorded in the relay\nlog.\n\nIn circular replication, the originating server normally acts as the\nterminator of its own events, so that they are not applied more than\nonce. Thus, this option is useful in circular replication when one of\nthe servers in the circle is removed. Suppose that you have a circular\nreplication setup with 4 servers, having server IDs 1, 2, 3, and 4, and\nserver 3 fails. When bridging the gap by starting replication from\nserver 2 to server 4, you can include IGNORE_SERVER_IDS = (3) in the\nCHANGE MASTER TO statement that you issue on server 4 to tell it to use\nserver 2 as its master instead of server 3. Doing so causes it to\nignore and not to propagate any statements that originated with the\nserver that is no longer in use.\n\nWhen a CHANGE MASTER TO statement is issued without any\nIGNORE_SERVER_IDS option, any existing list is preserved. To clear the\nlist of ignored servers, it is necessary to use the option with an\nempty list:\n\nCHANGE MASTER TO IGNORE_SERVER_IDS = ();\n\nRESET SLAVE ALL has no effect on the server ID list. This issue is\nfixed in MySQL 5.7. (Bug #18816897)\n\nIf IGNORE_SERVER_IDS contains the server\'s own ID and the server was\nstarted with the --replicate-same-server-id option enabled, an error\nresults.\n\nAlso beginning with MySQL 5.5, the master.info file and the output of\nSHOW SLAVE STATUS are extended to provide the list of servers that are\ncurrently ignored. For more information, see\nhttp://dev.mysql.com/doc/refman/5.5/en/slave-logs-status.html, and\n[HELP SHOW SLAVE STATUS].\n\nBeginning with MySQL 5.5.5, invoking CHANGE MASTER TO causes the\nprevious values for MASTER_HOST, MASTER_PORT, MASTER_LOG_FILE, and\nMASTER_LOG_POS to be written to the error log, along with other\ninformation about the slave\'s state prior to execution.\n\nCHANGE MASTER TO is useful for setting up a slave when you have the\nsnapshot of the master and have recorded the master binary log\ncoordinates corresponding to the time of the snapshot. After loading\nthe snapshot into the slave to synchronize it with the master, you can\nrun CHANGE MASTER TO MASTER_LOG_FILE=\'log_name\', MASTER_LOG_POS=log_pos\non the slave to specify the coordinates at which the slave should begin\nreading the master binary log.\n\nThe following example changes the master server the slave uses and\nestablishes the master binary log coordinates from which the slave\nbegins reading. This is used when you want to set up the slave to\nreplicate the master:\n\nCHANGE MASTER TO\n MASTER_HOST=\'master2.mycompany.com\',\n MASTER_USER=\'replication\',\n MASTER_PASSWORD=\'<PASSWORD>\',\n MASTER_PORT=3306,\n MASTER_LOG_FILE=\'master2-bin.001\',\n MASTER_LOG_POS=4,\n MASTER_CONNECT_RETRY=10;\n\nThe next example shows an operation that is less frequently employed.\nIt is used when the slave has relay log files that you want it to\nexecute again for some reason. To do this, the master need not be\nreachable. You need only use CHANGE MASTER TO and start the SQL thread\n(START SLAVE SQL_THREAD):\n\nCHANGE MASTER TO\n RELAY_LOG_FILE=\'slave-relay-bin.006\',\n RELAY_LOG_POS=4025;\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/change-master-to.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/change-master-to.html'),(186,'DROP DATABASE',40,'Syntax:\nDROP {DATABASE | SCHEMA} [IF EXISTS] db_name\n\nDROP DATABASE drops all tables in the database and deletes the\ndatabase. Be very careful with this statement! To use DROP DATABASE,\nyou need the DROP privilege on the database. DROP SCHEMA is a synonym\nfor DROP DATABASE.\n\n*Important*: When a database is dropped, user privileges on the\ndatabase are not automatically dropped. See [HELP GRANT].\n\nIF EXISTS is used to prevent an error from occurring if the database\ndoes not exist.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-database.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-database.html'),(187,'MBREQUAL',7,'MBREqual(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangles of\nthe two geometries g1 and g2 are the same.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(188,'TIMESTAMP FUNCTION',32,'Syntax:\nTIMESTAMP(expr), TIMESTAMP(expr1,expr2)\n\nWith a single argument, this function returns the date or datetime\nexpression expr as a datetime value. With two arguments, it adds the\ntime expression expr2 to the date or datetime expression expr1 and\nreturns the result as a datetime value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIMESTAMP(\'2003-12-31\');\n -> \'2003-12-31 00:00:00\'\nmysql> SELECT TIMESTAMP(\'2003-12-31 12:00:00\',\'12:00:00\');\n -> \'2004-01-01 00:00:00\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(189,'PROCEDURE ANALYSE',34,'Syntax:\nANALYSE([max_elements[,max_memory]])\n\nANALYSE() examines the result from a query and returns an analysis of\nthe results that suggests optimal data types for each column that may\nhelp reduce table sizes. To obtain this analysis, append PROCEDURE\nANALYSE to the end of a SELECT statement:\n\nSELECT ... FROM ... WHERE ... PROCEDURE ANALYSE([max_elements,[max_memory]])\n\nFor example:\n\nSELECT col1, col2 FROM table1 PROCEDURE ANALYSE(10, 2000);\n\nThe results show some statistics for the values returned by the query,\nand propose an optimal data type for the columns. This can be helpful\nfor checking your existing tables, or after importing new data. You may\nneed to try different settings for the arguments so that PROCEDURE\nANALYSE() does not suggest the ENUM data type when it is not\nappropriate.\n\nThe arguments are optional and are used as follows:\n\no max_elements (default 256) is the maximum number of distinct values\n that ANALYSE() notices per column. This is used by ANALYSE() to check\n whether the optimal data type should be of type ENUM; if there are\n more than max_elements distinct values, then ENUM is not a suggested\n type.\n\no max_memory (default 8192) is the maximum amount of memory that\n ANALYSE() should allocate per column while trying to find all\n distinct values.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/procedure-analyse.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/procedure-analyse.html'),(190,'HELP_VERSION',9,'This help information was generated from the MySQL 5.5 Reference Manual\non: 2015-05-02 (revision: 43037)\n\nThis information applies to MySQL 5.5 through 5.5.44.\n','',''),(191,'CHARACTER_LENGTH',38,'Syntax:\nCHARACTER_LENGTH(str)\n\nCHARACTER_LENGTH() is a synonym for CHAR_LENGTH().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(192,'SHOW GRANTS',27,'Syntax:\nSHOW GRANTS [FOR user]\n\nThis statement lists the GRANT statement or statements that must be\nissued to duplicate the privileges that are granted to a MySQL user\naccount. SHOW GRANTS requires the SELECT privilege for the mysql\ndatabase, except to see the privileges for the current user.\n\nThe account is named using the same format as for the GRANT statement;\nfor example, \'jeffrey\'@\'localhost\'. If you specify only the user name\npart of the account name, a host name part of \'%\' is used. For\nadditional information about specifying account names, see [HELP\nGRANT].\n\nmysql> SHOW GRANTS FOR \'root\'@\'localhost\';\n+---------------------------------------------------------------------+\n| Grants for root@localhost |\n+---------------------------------------------------------------------+\n| GRANT ALL PRIVILEGES ON *.* TO \'root\'@\'localhost\' WITH GRANT OPTION |\n+---------------------------------------------------------------------+\n\nTo list the privileges granted to the account that you are using to\nconnect to the server, you can use any of the following statements:\n\nSHOW GRANTS;\nSHOW GRANTS FOR CURRENT_USER;\nSHOW GRANTS FOR CURRENT_USER();\n\nIf SHOW GRANTS FOR CURRENT_USER (or any of the equivalent syntaxes) is\nused in DEFINER context, such as within a stored procedure that is\ndefined with SQL SECURITY DEFINER), the grants displayed are those of\nthe definer and not the invoker.\n\nSHOW GRANTS displays only the privileges granted explicitly to the\nnamed account. Other privileges might be available to the account, but\nthey are not displayed. For example, if an anonymous account exists,\nthe named account might be able to use its privileges, but SHOW GRANTS\nwill not display them.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-grants.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-grants.html'),(193,'SHOW PRIVILEGES',27,'Syntax:\nSHOW PRIVILEGES\n\nSHOW PRIVILEGES shows the list of system privileges that the MySQL\nserver supports. The exact list of privileges depends on the version of\nyour server.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-privileges.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-privileges.html'),(194,'CREATE TABLESPACE',40,'Syntax:\nCREATE TABLESPACE tablespace_name\n ADD DATAFILE \'file_name\'\n USE LOGFILE GROUP logfile_group\n [EXTENT_SIZE [=] extent_size]\n [INITIAL_SIZE [=] initial_size]\n [AUTOEXTEND_SIZE [=] autoextend_size]\n [MAX_SIZE [=] max_size]\n [NODEGROUP [=] nodegroup_id]\n [WAIT]\n [COMMENT [=] comment_text]\n ENGINE [=] engine_name\n\nThis statement is used to create a tablespace, which can contain one or\nmore data files, providing storage space for tables. One data file is\ncreated and added to the tablespace using this statement. Additional\ndata files may be added to the tablespace by using the ALTER TABLESPACE\nstatement (see [HELP ALTER TABLESPACE]). For rules covering the naming\nof tablespaces, see\nhttp://dev.mysql.com/doc/refman/5.5/en/identifiers.html.\n\n*Note*: All MySQL Cluster Disk Data objects share the same namespace.\nThis means that each Disk Data object must be uniquely named (and not\nmerely each Disk Data object of a given type). For example, you cannot\nhave a tablespace and a log file group with the same name, or a\ntablespace and a data file with the same name.\n\nA log file group of one or more UNDO log files must be assigned to the\ntablespace to be created with the USE LOGFILE GROUP clause.\nlogfile_group must be an existing log file group created with CREATE\nLOGFILE GROUP (see [HELP CREATE LOGFILE GROUP]). Multiple tablespaces\nmay use the same log file group for UNDO logging.\n\nThe EXTENT_SIZE sets the size, in bytes, of the extents used by any\nfiles belonging to the tablespace. The default value is 1M. The minimum\nsize is 32K, and theoretical maximum is 2G, although the practical\nmaximum size depends on a number of factors. In most cases, changing\nthe extent size does not have any measurable effect on performance, and\nthe default value is recommended for all but the most unusual\nsituations.\n\nAn extent is a unit of disk space allocation. One extent is filled with\nas much data as that extent can contain before another extent is used.\nIn theory, up to 65,535 (64K) extents may used per data file; however,\nthe recommended maximum is 32,768 (32K). The recommended maximum size\nfor a single data file is 32G---that is, 32K extents x 1 MB per extent.\nIn addition, once an extent is allocated to a given partition, it\ncannot be used to store data from a different partition; an extent\ncannot store data from more than one partition. This means, for example\nthat a tablespace having a single datafile whose INITIAL_SIZE is 256 MB\nand whose EXTENT_SIZE is 128M has just two extents, and so can be used\nto store data from at most two different disk data table partitions.\n\nYou can see how many extents remain free in a given data file by\nquerying the INFORMATION_SCHEMA.FILES table, and so derive an estimate\nfor how much space remains free in the file. For further discussion and\nexamples, see http://dev.mysql.com/doc/refman/5.5/en/files-table.html.\n\nThe INITIAL_SIZE parameter sets the data file\'s total size in bytes.\nOnce the file has been created, its size cannot be changed; however,\nyou can add more data files to the tablespace using ALTER TABLESPACE\n... ADD DATAFILE. See [HELP ALTER TABLESPACE].\n\nINITIAL_SIZE is optional; its default value is 134217728 (128 MB).\n\nOn 32-bit systems, the maximum supported value for INITIAL_SIZE is\n4294967296 (4 GB). (Bug #29186)\n\nWhen setting EXTENT_SIZE, you may optionally follow the number with a\none-letter abbreviation for an order of magnitude, similar to those\nused in my.cnf. Generally, this is one of the letters M (for megabytes)\nor G (for gigabytes). In MySQL Cluster NDB 7.2.14 and later, these\nabbreviations are also supported when specifying INITIAL_SIZE as well.\n(Bug #13116514, Bug #16104705, Bug #62858)\n\nINITIAL_SIZE, EXTENT_SIZE, and UNDO_BUFFER_SIZE are subject to rounding\nas follows:\n\no EXTENT_SIZE and UNDO_BUFFER_SIZE are each rounded up to the nearest\n whole multiple of 32K.\n\no INITIAL_SIZE is rounded down to the nearest whole multiple of 32K.\n\n For data files, INITIAL_SIZE is subject to further rounding; the\n result just obtained is rounded up to the nearest whole multiple of\n EXTENT_SIZE (after any rounding).\n\nThe rounding just described is done explicitly, and a warning is issued\nby the MySQL Server when any such rounding is performed. The rounded\nvalues are also used by the NDB kernel for calculating\nINFORMATION_SCHEMA.FILES column values and other purposes. However, to\navoid an unexpected result, we suggest that you always use whole\nmultiples of 32K in specifying these options.\n\nAUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, and COMMENT are parsed but\nignored, and so currently have no effect. These options are intended\nfor future expansion.\n\nThe ENGINE parameter determines the storage engine which uses this\ntablespace, with engine_name being the name of the storage engine.\nCurrently, engine_name must be one of the values NDB or NDBCLUSTER.\n\nWhen CREATE TABLESPACE is used with ENGINE = NDB, a tablespace and\nassociated data file are created on each Cluster data node. You can\nverify that the data files were created and obtain information about\nthem by querying the INFORMATION_SCHEMA.FILES table. For example:\n\nmysql> SELECT LOGFILE_GROUP_NAME, FILE_NAME, EXTRA\n -> FROM INFORMATION_SCHEMA.FILES\n -> WHERE TABLESPACE_NAME = \'newts\' AND FILE_TYPE = \'DATAFILE\';\n+--------------------+-------------+----------------+\n| LOGFILE_GROUP_NAME | FILE_NAME | EXTRA |\n+--------------------+-------------+----------------+\n| lg_3 | newdata.dat | CLUSTER_NODE=3 |\n| lg_3 | newdata.dat | CLUSTER_NODE=4 |\n+--------------------+-------------+----------------+\n2 rows in set (0.01 sec)\n\n(See http://dev.mysql.com/doc/refman/5.5/en/files-table.html.)\n\nCREATE TABLESPACE is useful only with Disk Data storage for MySQL\nCluster. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-tablespace.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-tablespace.html'),(195,'INSERT FUNCTION',38,'Syntax:\nINSERT(str,pos,len,newstr)\n\nReturns the string str, with the substring beginning at position pos\nand len characters long replaced by the string newstr. Returns the\noriginal string if pos is not within the length of the string. Replaces\nthe rest of the string from position pos if len is not within the\nlength of the rest of the string. Returns NULL if any argument is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT INSERT(\'Quadratic\', 3, 4, \'What\');\n -> \'QuWhattic\'\nmysql> SELECT INSERT(\'Quadratic\', -1, 4, \'What\');\n -> \'Quadratic\'\nmysql> SELECT INSERT(\'Quadratic\', 3, 100, \'What\');\n -> \'QuWhat\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(196,'CRC32',3,'Syntax:\nCRC32(expr)\n\nComputes a cyclic redundancy check value and returns a 32-bit unsigned\nvalue. The result is NULL if the argument is NULL. The argument is\nexpected to be a string and (if possible) is treated as one if it is\nnot.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT CRC32(\'MySQL\');\n -> 3259397556\nmysql> SELECT CRC32(\'mysql\');\n -> 2501908538\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(197,'XOR',15,'Syntax:\nXOR\n\nLogical XOR. Returns NULL if either operand is NULL. For non-NULL\noperands, evaluates to 1 if an odd number of operands is nonzero,\notherwise 0 is returned.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html\n\n','mysql> SELECT 1 XOR 1;\n -> 0\nmysql> SELECT 1 XOR 0;\n -> 1\nmysql> SELECT 1 XOR NULL;\n -> NULL\nmysql> SELECT 1 XOR 1 XOR 1;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html'),(198,'STARTPOINT',13,'StartPoint(ls)\n\nReturns the Point that is the start point of the LineString value ls.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT AsText(StartPoint(GeomFromText(@ls)));\n+---------------------------------------+\n| AsText(StartPoint(GeomFromText(@ls))) |\n+---------------------------------------+\n| POINT(1 1) |\n+---------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(199,'GRANT',10,'Syntax:\nGRANT\n priv_type [(column_list)]\n [, priv_type [(column_list)]] ...\n ON [object_type] priv_level\n TO user_specification [, user_specification] ...\n [REQUIRE {NONE | ssl_option [[AND] ssl_option] ...}]\n [WITH {GRANT OPTION | resource_option} ...]\n\nGRANT PROXY ON user_specification\n TO user_specification [, user_specification] ...\n [WITH GRANT OPTION]\n\nobject_type: {\n TABLE\n | FUNCTION\n | PROCEDURE\n}\n\npriv_level: {\n *\n | *.*\n | db_name.*\n | db_name.tbl_name\n | tbl_name\n | db_name.routine_name\n}\n\nuser_specification:\n user [ auth_option ]\n\nauth_option: {\n IDENTIFIED BY \'auth_string\'\n | IDENTIFIED BY PASSWORD \'hash_string\'\n | IDENTIFIED WITH auth_plugin\n | IDENTIFIED WITH auth_plugin AS \'hash_string\'\n}\n\nssl_option: {\n SSL\n | X509\n | CIPHER \'cipher\'\n | ISSUER \'issuer\'\n | SUBJECT \'subject\'\n}\n\nresource_option: {\n | MAX_QUERIES_PER_HOUR count\n | MAX_UPDATES_PER_HOUR count\n | MAX_CONNECTIONS_PER_HOUR count\n | MAX_USER_CONNECTIONS count\n}\n\nThe GRANT statement grants privileges to MySQL user accounts. To use\nGRANT, you must have the GRANT OPTION privilege, and you must have the\nprivileges that you are granting.\n\nGRANT also serves to specify other account characteristics such as use\nof secure connections and limits on access to server resources.\n\nWhen the read_only system variable is enabled, GRANT requires the SUPER\nprivilege, in addition to any other required privileges.\n\nThe REVOKE statement is related to GRANT and enables administrators to\nremove account privileges. See [HELP REVOKE].\n\nNormally, a database administrator first uses CREATE USER to create an\naccount, then GRANT to define its privileges and characteristics. For\nexample:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED BY \'mypass\';\nGRANT ALL ON db1.* TO \'jeffrey\'@\'localhost\';\nGRANT SELECT ON db2.invoice TO \'jeffrey\'@\'localhost\';\nGRANT USAGE ON *.* TO \'jeffrey\'@\'localhost\' WITH MAX_QUERIES_PER_HOUR 90;\n\n*Note*: Examples shown here include no IDENTIFIED clause. It is assumed\nthat you establish passwords with CREATE USER at account-creation time\nto avoid creating insecure accounts.\n\nIf an account named in a GRANT statement does not already exist, GRANT\nmay create it under the conditions described later in the discussion of\nthe NO_AUTO_CREATE_USER SQL mode.\n\nFrom the mysql program, GRANT responds with Query OK, 0 rows affected\nwhen executed successfully. To determine what privileges result from\nthe operation, use SHOW GRANTS. See [HELP SHOW GRANTS].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/grant.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/grant.html'),(200,'DECLARE VARIABLE',24,'Syntax:\nDECLARE var_name [, var_name] ... type [DEFAULT value]\n\nThis statement declares local variables within stored programs. To\nprovide a default value for a variable, include a DEFAULT clause. The\nvalue can be specified as an expression; it need not be a constant. If\nthe DEFAULT clause is missing, the initial value is NULL.\n\nLocal variables are treated like stored routine parameters with respect\nto data type and overflow checking. See [HELP CREATE PROCEDURE].\n\nVariable declarations must appear before cursor or handler\ndeclarations.\n\nLocal variable names are not case sensitive. Permissible characters and\nquoting rules are the same as for other identifiers, as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/identifiers.html.\n\nThe scope of a local variable is the BEGIN ... END block within which\nit is declared. The variable can be referred to in blocks nested within\nthe declaring block, except those blocks that declare a variable with\nthe same name.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/declare-local-variable.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/declare-local-variable.html'),(201,'MPOLYFROMTEXT',4,'MPolyFromText(wkt[,srid]), MultiPolygonFromText(wkt[,srid])\n\nConstructs a MultiPolygon value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(202,'BIT_OR',16,'Syntax:\nBIT_OR(expr)\n\nReturns the bitwise OR of all bits in expr. The calculation is\nperformed with 64-bit (BIGINT) precision.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(203,'MBRINTERSECTS',7,'MBRIntersects(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangles of\nthe two geometries g1 and g2 intersect.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(204,'YEARWEEK',32,'Syntax:\nYEARWEEK(date), YEARWEEK(date,mode)\n\nReturns year and week for a date. The mode argument works exactly like\nthe mode argument to WEEK(). The year in the result may be different\nfrom the year in the date argument for the first and the last week of\nthe year.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT YEARWEEK(\'1987-01-01\');\n -> 198653\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(205,'NOT BETWEEN',20,'Syntax:\nexpr NOT BETWEEN min AND max\n\nThis is the same as NOT (expr BETWEEN min AND max).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(206,'IS NOT',20,'Syntax:\nIS NOT boolean_value\n\nTests a value against a boolean value, where boolean_value can be TRUE,\nFALSE, or UNKNOWN.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 IS NOT UNKNOWN, 0 IS NOT UNKNOWN, NULL IS NOT UNKNOWN;\n -> 1, 1, 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(207,'LOG10',3,'Syntax:\nLOG10(X)\n\nReturns the base-10 logarithm of X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT LOG10(2);\n -> 0.30102999566398\nmysql> SELECT LOG10(100);\n -> 2\nmysql> SELECT LOG10(-100);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(208,'SQRT',3,'Syntax:\nSQRT(X)\n\nReturns the square root of a nonnegative number X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT SQRT(4);\n -> 2\nmysql> SELECT SQRT(20);\n -> 4.4721359549996\nmysql> SELECT SQRT(-16);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(209,'DECIMAL',23,'DECIMAL[(M[,D])] [UNSIGNED] [ZEROFILL]\n\nA packed \"exact\" fixed-point number. M is the total number of digits\n(the precision) and D is the number of digits after the decimal point\n(the scale). The decimal point and (for negative numbers) the \"-\" sign\nare not counted in M. If D is 0, values have no decimal point or\nfractional part. The maximum number of digits (M) for DECIMAL is 65.\nThe maximum number of supported decimals (D) is 30. If D is omitted,\nthe default is 0. If M is omitted, the default is 10.\n\nUNSIGNED, if specified, disallows negative values.\n\nAll basic calculations (+, -, *, /) with DECIMAL columns are done with\na precision of 65 digits.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(210,'CREATE INDEX',40,'Syntax:\nCREATE [ONLINE|OFFLINE] [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name\n [index_type]\n ON tbl_name (index_col_name,...)\n [index_option] ...\n\nindex_col_name:\n col_name [(length)] [ASC | DESC]\n\nindex_type:\n USING {BTREE | HASH}\n\nindex_option:\n KEY_BLOCK_SIZE [=] value\n | index_type\n | WITH PARSER parser_name\n | COMMENT \'string\'\n\nCREATE INDEX is mapped to an ALTER TABLE statement to create indexes.\nSee [HELP ALTER TABLE]. CREATE INDEX cannot be used to create a PRIMARY\nKEY; use ALTER TABLE instead. For more information about indexes, see\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-indexes.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-index.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-index.html'),(211,'CREATE FUNCTION',40,'The CREATE FUNCTION statement is used to create stored functions and\nuser-defined functions (UDFs):\n\no For information about creating stored functions, see [HELP CREATE\n PROCEDURE].\n\no For information about creating user-defined functions, see [HELP\n CREATE FUNCTION UDF].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-function.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-function.html'),(212,'ALTER DATABASE',40,'Syntax:\nALTER {DATABASE | SCHEMA} [db_name]\n alter_specification ...\nALTER {DATABASE | SCHEMA} db_name\n UPGRADE DATA DIRECTORY NAME\n\nalter_specification:\n [DEFAULT] CHARACTER SET [=] charset_name\n | [DEFAULT] COLLATE [=] collation_name\n\nALTER DATABASE enables you to change the overall characteristics of a\ndatabase. These characteristics are stored in the db.opt file in the\ndatabase directory. To use ALTER DATABASE, you need the ALTER privilege\non the database. ALTER SCHEMA is a synonym for ALTER DATABASE.\n\nThe database name can be omitted from the first syntax, in which case\nthe statement applies to the default database.\n\nNational Language Characteristics\n\nThe CHARACTER SET clause changes the default database character set.\nThe COLLATE clause changes the default database collation.\nhttp://dev.mysql.com/doc/refman/5.5/en/charset.html, discusses\ncharacter set and collation names.\n\nYou can see what character sets and collations are available using,\nrespectively, the SHOW CHARACTER SET and SHOW COLLATION statements. See\n[HELP SHOW CHARACTER SET], and [HELP SHOW COLLATION], for more\ninformation.\n\nIf you change the default character set or collation for a database,\nstored routines that use the database defaults must be dropped and\nrecreated so that they use the new defaults. (In a stored routine,\nvariables with character data types use the database defaults if the\ncharacter set or collation are not specified explicitly. See [HELP\nCREATE PROCEDURE].)\n\nUpgrading from Versions Older than MySQL 5.1\n\nThe syntax that includes the UPGRADE DATA DIRECTORY NAME clause updates\nthe name of the directory associated with the database to use the\nencoding implemented in MySQL 5.1 for mapping database names to\ndatabase directory names (see\nhttp://dev.mysql.com/doc/refman/5.5/en/identifier-mapping.html). This\nclause is for use under these conditions:\n\no It is intended when upgrading MySQL to 5.1 or later from older\n versions.\n\no It is intended to update a database directory name to the current\n encoding format if the name contains special characters that need\n encoding.\n\no The statement is used by mysqlcheck (as invoked by mysql_upgrade).\n\nFor example, if a database in MySQL 5.0 has the name a-b-c, the name\ncontains instances of the - (dash) character. In MySQL 5.0, the\ndatabase directory is also named a-b-c, which is not necessarily safe\nfor all file systems. In MySQL 5.1 and later, the same database name is\nencoded as a@002db@002dc to produce a file system-neutral directory\nname.\n\nWhen a MySQL installation is upgraded to MySQL 5.1 or later from an\nolder version,the server displays a name such as a-b-c (which is in the\nold format) as #mysql50#a-b-c, and you must refer to the name using the\n#mysql50# prefix. Use UPGRADE DATA DIRECTORY NAME in this case to\nexplicitly tell the server to re-encode the database directory name to\nthe current encoding format:\n\nALTER DATABASE `#mysql50#a-b-c` UPGRADE DATA DIRECTORY NAME;\n\nAfter executing this statement, you can refer to the database as a-b-c\nwithout the special #mysql50# prefix.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-database.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-database.html'),(213,'GEOMETRYN',26,'GeometryN(gc,N)\n\nReturns the N-th geometry in the GeometryCollection value gc.\nGeometries are numbered beginning with 1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-geometrycollection-property-functions.html\n\n','mysql> SET @gc = \'GeometryCollection(Point(1 1),LineString(2 2, 3 3))\';\nmysql> SELECT AsText(GeometryN(GeomFromText(@gc),1));\n+----------------------------------------+\n| AsText(GeometryN(GeomFromText(@gc),1)) |\n+----------------------------------------+\n| POINT(1 1) |\n+----------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-geometrycollection-property-functions.html'),(214,'<<',19,'Syntax:\n<<\n\nShifts a longlong (BIGINT) number to the left.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 1 << 2;\n -> 4\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(215,'SHOW TABLE STATUS',27,'Syntax:\nSHOW TABLE STATUS [{FROM | IN} db_name]\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW TABLE STATUS works likes SHOW TABLES, but provides a lot of\ninformation about each non-TEMPORARY table. You can also get this list\nusing the mysqlshow --status db_name command. The LIKE clause, if\npresent, indicates which table names to match. The WHERE clause can be\ngiven to select rows using more general conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-table-status.html'),(216,'MD5',12,'Syntax:\nMD5(str)\n\nCalculates an MD5 128-bit checksum for the string. The value is\nreturned as a string of 32 hex digits, or NULL if the argument was\nNULL. The return value can, for example, be used as a hash key. See the\nnotes at the beginning of this section about storing hash values\nefficiently.\n\nAs of MySQL 5.5.3, the return value is a nonbinary string in the\nconnection character set. Before 5.5.3, the return value is a binary\nstring; see the notes at the beginning of this section about using the\nvalue as a nonbinary string.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT MD5(\'testing\');\n -> \'ae2b1fca515949e5d54fb22b8ed95575\'\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(217,'<',20,'Syntax:\n<\n\nLess than:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 2 < 2;\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(218,'UNIX_TIMESTAMP',32,'Syntax:\nUNIX_TIMESTAMP(), UNIX_TIMESTAMP(date)\n\nIf called with no argument, returns a Unix timestamp (seconds since\n\'1970-01-01 00:00:00\' UTC) as an unsigned integer. If UNIX_TIMESTAMP()\nis called with a date argument, it returns the value of the argument as\nseconds since \'1970-01-01 00:00:00\' UTC. date may be a DATE string, a\nDATETIME string, a TIMESTAMP, or a number in the format YYMMDD or\nYYYYMMDD. The server interprets date as a value in the current time\nzone and converts it to an internal value in UTC. Clients can set their\ntime zone as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT UNIX_TIMESTAMP();\n -> 1196440210\nmysql> SELECT UNIX_TIMESTAMP(\'2007-11-30 10:30:19\');\n -> 1196440219\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(219,'DAYOFMONTH',32,'Syntax:\nDAYOFMONTH(date)\n\nReturns the day of the month for date, in the range 1 to 31, or 0 for\ndates such as \'0000-00-00\' or \'2008-00-00\' that have a zero day part.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFMONTH(\'2007-02-03\');\n -> 3\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(220,'ASCII',38,'Syntax:\nASCII(str)\n\nReturns the numeric value of the leftmost character of the string str.\nReturns 0 if str is the empty string. Returns NULL if str is NULL.\nASCII() works for 8-bit characters.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT ASCII(\'2\');\n -> 50\nmysql> SELECT ASCII(2);\n -> 50\nmysql> SELECT ASCII(\'dx\');\n -> 100\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(221,'DIV',3,'Syntax:\nDIV\n\nInteger division. Similar to FLOOR(), but is safe with BIGINT values.\n\nAs of MySQL 5.5.3, if either operand has a noninteger type, the\noperands are converted to DECIMAL and divided using DECIMAL arithmetic\nbefore converting the result to BIGINT. If the result exceeds BIGINT\nrange, an error occurs. Before MySQL 5.5.3, incorrect results may occur\nfor noninteger operands that exceed BIGINT range.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT 5 DIV 2;\n -> 2\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(222,'RENAME USER',10,'Syntax:\nRENAME USER old_user TO new_user\n [, old_user TO new_user] ...\n\nThe RENAME USER statement renames existing MySQL accounts. An error\noccurs for old accounts that do not exist or new accounts that already\nexist. To use this statement, you must have the global CREATE USER\nprivilege or the UPDATE privilege for the mysql database.\n\nWhen the read_only system variable is enabled, RENAME USER requires the\nSUPER privilege, in addition to any other required privileges.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.5/en/account-names.html. For example:\n\nRENAME USER \'jeffrey\'@\'localhost\' TO \'jeff\'@\'127.0.0.1\';\n\nIf you specify only the user name part of the account name, a host name\npart of \'%\' is used.\n\nRENAME USER causes the privileges held by the old user to be those held\nby the new user. However, RENAME USER does not automatically drop or\ninvalidate databases or objects within them that the old user created.\nThis includes stored programs or views for which the DEFINER attribute\nnames the old user. Attempts to access such objects may produce an\nerror if they execute in definer security context. (For information\nabout security context, see\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-security.html.)\n\nThe privilege changes take effect as indicated in\nhttp://dev.mysql.com/doc/refman/5.5/en/privilege-changes.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/rename-user.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/rename-user.html'),(223,'SHOW SLAVE STATUS',27,'Syntax:\nSHOW SLAVE STATUS\n\nThis statement provides status information on essential parameters of\nthe slave threads. It requires either the SUPER or REPLICATION CLIENT\nprivilege.\n\nIf you issue this statement using the mysql client, you can use a \\G\nstatement terminator rather than a semicolon to obtain a more readable\nvertical layout:\n\nmysql> SHOW SLAVE STATUS\\G\n*************************** 1. row ***************************\n Slave_IO_State: Waiting for master to send event\n Master_Host: localhost\n Master_User: root\n Master_Port: 3306\n Connect_Retry: 3\n Master_Log_File: gbichot-bin.005\n Read_Master_Log_Pos: 79\n Relay_Log_File: gbichot-relay-bin.005\n Relay_Log_Pos: 548\n Relay_Master_Log_File: gbichot-bin.005\n Slave_IO_Running: Yes\n Slave_SQL_Running: Yes\n Replicate_Do_DB:\n Replicate_Ignore_DB:\n Replicate_Do_Table:\n Replicate_Ignore_Table:\n Replicate_Wild_Do_Table:\n Replicate_Wild_Ignore_Table:\n Last_Errno: 0\n Last_Error:\n Skip_Counter: 0\n Exec_Master_Log_Pos: 79\n Relay_Log_Space: 552\n Until_Condition: None\n Until_Log_File:\n Until_Log_Pos: 0\n Master_SSL_Allowed: No\n Master_SSL_CA_File:\n Master_SSL_CA_Path:\n Master_SSL_Cert:\n Master_SSL_Cipher:\n Master_SSL_Key:\n Seconds_Behind_Master: 8\nMaster_SSL_Verify_Server_Cert: No\n Last_IO_Errno: 0\n Last_IO_Error:\n Last_SQL_Errno: 0\n Last_SQL_Error:\n Replicate_Ignore_Server_Ids: 0\n Master_Server_Id: 1\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-slave-status.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-slave-status.html'),(224,'GEOMETRY',35,'MySQL provides a standard way of creating spatial columns for geometry\ntypes, for example, with CREATE TABLE or ALTER TABLE. Spatial columns\nare supported for MyISAM, InnoDB, NDB, and ARCHIVE tables. See also the\nnotes about spatial indexes under [HELP SPATIAL].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-columns.html\n\n','CREATE TABLE geom (g GEOMETRY);\n','http://dev.mysql.com/doc/refman/5.5/en/creating-spatial-columns.html'),(225,'NUMPOINTS',13,'NumPoints(ls)\n\nReturns the number of Point objects in the LineString value ls.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT NumPoints(GeomFromText(@ls));\n+------------------------------+\n| NumPoints(GeomFromText(@ls)) |\n+------------------------------+\n| 3 |\n+------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(226,'ALTER LOGFILE GROUP',40,'Syntax:\nALTER LOGFILE GROUP logfile_group\n ADD UNDOFILE \'file_name\'\n [INITIAL_SIZE [=] size]\n [WAIT]\n ENGINE [=] engine_name\n\nThis statement adds an UNDO file named \'file_name\' to an existing log\nfile group logfile_group. An ALTER LOGFILE GROUP statement has one and\nonly one ADD UNDOFILE clause. No DROP UNDOFILE clause is currently\nsupported.\n\n*Note*: All MySQL Cluster Disk Data objects share the same namespace.\nThis means that each Disk Data object must be uniquely named (and not\nmerely each Disk Data object of a given type). For example, you cannot\nhave a tablespace and an undo log file with the same name, or an undo\nlog file and a data file with the same name.\n\nThe optional INITIAL_SIZE parameter sets the UNDO file\'s initial size\nin bytes; if not specified, the initial size defaults to 134217728 (128\nMB). Prior to MySQL Cluster NDB 7.2.14, this value was required to be\nspecified using digits (Bug #13116514, Bug #16104705, Bug #62858); in\nMySQL Cluster NDB 7.2.14 and later, you may optionally follow size with\na one-letter abbreviation for an order of magnitude, similar to those\nused in my.cnf. Generally, this is one of the letters M (megabytes) or\nG (gigabytes).\n\nOn 32-bit systems, the maximum supported value for INITIAL_SIZE is\n4294967296 (4 GB). (Bug #29186)\n\nThe minimum allowed value for INITIAL_SIZE is 1048576 (1 MB). (Bug\n#29574)\n\n*Note*: WAIT is parsed but otherwise ignored. This keyword currently\nhas no effect, and is intended for future expansion.\n\nThe ENGINE parameter (required) determines the storage engine which is\nused by this log file group, with engine_name being the name of the\nstorage engine. Currently, the only accepted values for engine_name are\n\"NDBCLUSTER\" and \"NDB\". The two values are equivalent.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-logfile-group.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-logfile-group.html'),(227,'&',19,'Syntax:\n&\n\nBitwise AND:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 29 & 15;\n -> 13\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(228,'LOCALTIMESTAMP',32,'Syntax:\nLOCALTIMESTAMP, LOCALTIMESTAMP()\n\nLOCALTIMESTAMP and LOCALTIMESTAMP() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(229,'ASSIGN-EQUAL',15,'Syntax:\n=\n\nThis operator is used to perform value assignments in two cases,\ndescribed in the next two paragraphs.\n\nWithin a SET statement, = is treated as an assignment operator that\ncauses the user variable on the left hand side of the operator to take\non the value to its right. (In other words, when used in a SET\nstatement, = is treated identically to :=.) The value on the right hand\nside may be a literal value, another variable storing a value, or any\nlegal expression that yields a scalar value, including the result of a\nquery (provided that this value is a scalar value). You can perform\nmultiple assignments in the same SET statement.\n\nIn the SET clause of an UPDATE statement, = also acts as an assignment\noperator; in this case, however, it causes the column named on the left\nhand side of the operator to assume the value given to the right,\nprovided any WHERE conditions that are part of the UPDATE are met. You\ncan make multiple assignments in the same SET clause of an UPDATE\nstatement.\n\nIn any other context, = is treated as a comparison operator.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/assignment-operators.html\n\n','mysql> SELECT @var1, @var2;\n -> NULL, NULL\nmysql> SELECT @var1 := 1, @var2;\n -> 1, NULL\nmysql> SELECT @var1, @var2;\n -> 1, NULL\nmysql> SELECT @var1, @var2 := @var1;\n -> 1, 1\nmysql> SELECT @var1, @var2;\n -> 1, 1\n','http://dev.mysql.com/doc/refman/5.5/en/assignment-operators.html'),(230,'CONVERT',38,'Syntax:\nCONVERT(expr,type), CONVERT(expr USING transcoding_name)\n\nThe CONVERT() and CAST() functions take an expression of any type and\nproduce a result value of a specified type.\n\nThe type for the result can be one of the following values:\n\no BINARY[(N)]\n\no CHAR[(N)]\n\no DATE\n\no DATETIME\n\no DECIMAL[(M[,D])]\n\no SIGNED [INTEGER]\n\no TIME\n\no UNSIGNED [INTEGER]\n\nBINARY produces a string with the BINARY data type. See\nhttp://dev.mysql.com/doc/refman/5.5/en/binary-varbinary.html for a\ndescription of how this affects comparisons. If the optional length N\nis given, BINARY(N) causes the cast to use no more than N bytes of the\nargument. Values shorter than N bytes are padded with 0x00 bytes to a\nlength of N.\n\nCHAR(N) causes the cast to use no more than N characters of the\nargument.\n\nCAST() and CONVERT(... USING ...) are standard SQL syntax. The\nnon-USING form of CONVERT() is ODBC syntax.\n\nCONVERT() with USING is used to convert data between different\ncharacter sets. In MySQL, transcoding names are the same as the\ncorresponding character set names. For example, this statement converts\nthe string \'abc\' in the default character set to the corresponding\nstring in the utf8 character set:\n\nSELECT CONVERT(\'abc\' USING utf8);\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html\n\n','SELECT enum_col FROM tbl_name ORDER BY CAST(enum_col AS CHAR);\n','http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html'),(231,'DROP LOGFILE GROUP',40,'Syntax:\nDROP LOGFILE GROUP logfile_group\n ENGINE [=] engine_name\n\nThis statement drops the log file group named logfile_group. The log\nfile group must already exist or an error results. (For information on\ncreating log file groups, see [HELP CREATE LOGFILE GROUP].)\n\n*Important*: Before dropping a log file group, you must drop all\ntablespaces that use that log file group for UNDO logging.\n\nThe required ENGINE clause provides the name of the storage engine used\nby the log file group to be dropped. Currently, the only permitted\nvalues for engine_name are NDB and NDBCLUSTER.\n\nDROP LOGFILE GROUP is useful only with Disk Data storage for MySQL\nCluster. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-logfile-group.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-logfile-group.html'),(232,'ADDDATE',32,'Syntax:\nADDDATE(date,INTERVAL expr unit), ADDDATE(expr,days)\n\nWhen invoked with the INTERVAL form of the second argument, ADDDATE()\nis a synonym for DATE_ADD(). The related function SUBDATE() is a\nsynonym for DATE_SUB(). For information on the INTERVAL unit argument,\nsee the discussion for DATE_ADD().\n\nmysql> SELECT DATE_ADD(\'2008-01-02\', INTERVAL 31 DAY);\n -> \'2008-02-02\'\nmysql> SELECT ADDDATE(\'2008-01-02\', INTERVAL 31 DAY);\n -> \'2008-02-02\'\n\nWhen invoked with the days form of the second argument, MySQL treats it\nas an integer number of days to be added to expr.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT ADDDATE(\'2008-01-02\', 31);\n -> \'2008-02-02\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(233,'REPEAT LOOP',24,'Syntax:\n[begin_label:] REPEAT\n statement_list\nUNTIL search_condition\nEND REPEAT [end_label]\n\nThe statement list within a REPEAT statement is repeated until the\nsearch_condition expression is true. Thus, a REPEAT always enters the\nloop at least once. statement_list consists of one or more statements,\neach terminated by a semicolon (;) statement delimiter.\n\nA REPEAT statement can be labeled. For the rules regarding label use,\nsee [HELP labels].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/repeat.html\n\n','mysql> delimiter //\n\nmysql> CREATE PROCEDURE dorepeat(p1 INT)\n -> BEGIN\n -> SET @x = 0;\n -> REPEAT\n -> SET @x = @x + 1;\n -> UNTIL @x > p1 END REPEAT;\n -> END\n -> //\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> CALL dorepeat(1000)//\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SELECT @x//\n+------+\n| @x |\n+------+\n| 1001 |\n+------+\n1 row in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/repeat.html'),(234,'ALTER FUNCTION',40,'Syntax:\nALTER FUNCTION func_name [characteristic ...]\n\ncharacteristic:\n COMMENT \'string\'\n | LANGUAGE SQL\n | { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }\n | SQL SECURITY { DEFINER | INVOKER }\n\nThis statement can be used to change the characteristics of a stored\nfunction. More than one change may be specified in an ALTER FUNCTION\nstatement. However, you cannot change the parameters or body of a\nstored function using this statement; to make such changes, you must\ndrop and re-create the function using DROP FUNCTION and CREATE\nFUNCTION.\n\nYou must have the ALTER ROUTINE privilege for the function. (That\nprivilege is granted automatically to the function creator.) If binary\nlogging is enabled, the ALTER FUNCTION statement might also require the\nSUPER privilege, as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-logging.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-function.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-function.html'),(235,'SMALLINT',23,'SMALLINT[(M)] [UNSIGNED] [ZEROFILL]\n\nA small integer. The signed range is -32768 to 32767. The unsigned\nrange is 0 to 65535.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(236,'DOUBLE PRECISION',23,'DOUBLE PRECISION[(M,D)] [UNSIGNED] [ZEROFILL], REAL[(M,D)] [UNSIGNED]\n[ZEROFILL]\n\nThese types are synonyms for DOUBLE. Exception: If the REAL_AS_FLOAT\nSQL mode is enabled, REAL is a synonym for FLOAT rather than DOUBLE.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(237,'ORD',38,'Syntax:\nORD(str)\n\nIf the leftmost character of the string str is a multibyte character,\nreturns the code for that character, calculated from the numeric values\nof its constituent bytes using this formula:\n\n (1st byte code)\n+ (2nd byte code * 256)\n+ (3rd byte code * 2562) ...\n\nIf the leftmost character is not a multibyte character, ORD() returns\nthe same value as the ASCII() function.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT ORD(\'2\');\n -> 50\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(238,'DEALLOCATE PREPARE',8,'Syntax:\n{DEALLOCATE | DROP} PREPARE stmt_name\n\nTo deallocate a prepared statement produced with PREPARE, use a\nDEALLOCATE PREPARE statement that refers to the prepared statement\nname. Attempting to execute a prepared statement after deallocating it\nresults in an error.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/deallocate-prepare.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/deallocate-prepare.html'),(239,'IS_FREE_LOCK',14,'Syntax:\nIS_FREE_LOCK(str)\n\nChecks whether the lock named str is free to use (that is, not locked).\nReturns 1 if the lock is free (no one is using the lock), 0 if the lock\nis in use, and NULL if an error occurs (such as an incorrect argument).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(240,'ENVELOPE',37,'Envelope(g)\n\nReturns the minimum bounding rectangle (MBR) for the geometry value g.\nThe result is returned as a Polygon value that is defined by the corner\npoints of the bounding box:\n\nPOLYGON((MINX MINY, MAXX MINY, MAXX MAXY, MINX MAXY, MINX MINY))\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','mysql> SELECT AsText(Envelope(GeomFromText(\'LineString(1 1,2 2)\')));\n+-------------------------------------------------------+\n| AsText(Envelope(GeomFromText(\'LineString(1 1,2 2)\'))) |\n+-------------------------------------------------------+\n| POLYGON((1 1,2 1,2 2,1 2,1 1)) |\n+-------------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(241,'TOUCHES',31,'Touches(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 spatially touches g2. Two\ngeometries spatially touch if the interiors of the geometries do not\nintersect, but the boundary of one of the geometries intersects either\nthe boundary or the interior of the other.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(242,'INET_ATON',14,'Syntax:\nINET_ATON(expr)\n\nGiven the dotted-quad representation of an IPv4 network address as a\nstring, returns an integer that represents the numeric value of the\naddress in network byte order (big endian). INET_ATON() returns NULL if\nit does not understand its argument.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> SELECT INET_ATON(\'10.0.5.9\');\n -> 167773449\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(243,'UNCOMPRESS',12,'Syntax:\nUNCOMPRESS(string_to_uncompress)\n\nUncompresses a string compressed by the COMPRESS() function. If the\nargument is not a compressed value, the result is NULL. This function\nrequires MySQL to have been compiled with a compression library such as\nzlib. Otherwise, the return value is always NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT UNCOMPRESS(COMPRESS(\'any string\'));\n -> \'any string\'\nmysql> SELECT UNCOMPRESS(\'any string\');\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(244,'AUTO_INCREMENT',23,'The AUTO_INCREMENT attribute can be used to generate a unique identity\nfor new rows:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/example-auto-increment.html\n\n','CREATE TABLE animals (\n id MEDIUMINT NOT NULL AUTO_INCREMENT,\n name CHAR(30) NOT NULL,\n PRIMARY KEY (id)\n);\n\nINSERT INTO animals (name) VALUES\n (\'dog\'),(\'cat\'),(\'penguin\'),\n (\'lax\'),(\'whale\'),(\'ostrich\');\n\nSELECT * FROM animals;\n','http://dev.mysql.com/doc/refman/5.5/en/example-auto-increment.html'),(245,'ISSIMPLE',37,'IsSimple(g)\n\nIn MySQL 5.5, this function is a placeholder that always returns 0.\n\nThe description of each instantiable geometric class given earlier in\nthe chapter includes the specific conditions that cause an instance of\nthat class to be classified as not simple. (See [HELP Geometry\nhierarchy].)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(246,'- BINARY',3,'Syntax:\n-\n\nSubtraction:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT 3-5;\n -> -2\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(247,'GEOMCOLLFROMTEXT',4,'GeomCollFromText(wkt[,srid]), GeometryCollectionFromText(wkt[,srid])\n\nConstructs a GeometryCollection value using its WKT representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(248,'CURRENT_TIME',32,'Syntax:\nCURRENT_TIME, CURRENT_TIME()\n\nCURRENT_TIME and CURRENT_TIME() are synonyms for CURTIME().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(249,'WKT DEFINITION',4,'The Well-Known Text (WKT) representation of geometry values is designed\nfor exchanging geometry data in ASCII form. The OpenGIS specification\nprovides a Backus-Naur grammar that specifies the formal production\nrules for writing WKT values (see\nhttp://dev.mysql.com/doc/refman/5.5/en/spatial-extensions.html).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-data-formats.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-data-formats.html'),(250,'REVOKE',10,'Syntax:\nREVOKE\n priv_type [(column_list)]\n [, priv_type [(column_list)]] ...\n ON [object_type] priv_level\n FROM user [, user] ...\n\nREVOKE ALL PRIVILEGES, GRANT OPTION\n FROM user [, user] ...\n\nREVOKE PROXY ON user\n FROM user [, user] ...\n\nThe REVOKE statement enables system administrators to revoke privileges\nfrom MySQL accounts. Each account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.5/en/account-names.html. For example:\n\nREVOKE INSERT ON *.* FROM \'jeffrey\'@\'localhost\';\n\nWhen the read_only system variable is enabled, REVOKE requires the\nSUPER privilege, in addition to any other required privileges.\n\nIf you specify only the user name part of the account name, a host name\npart of \'%\' is used.\n\nFor details on the levels at which privileges exist, the permissible\npriv_type and priv_level values, and the syntax for specifying users\nand passwords, see [HELP GRANT]\n\nTo use the first REVOKE syntax, you must have the GRANT OPTION\nprivilege, and you must have the privileges that you are revoking.\n\nTo revoke all privileges, use the second syntax, which drops all\nglobal, database, table, column, and routine privileges for the named\nuser or users:\n\nREVOKE ALL PRIVILEGES, GRANT OPTION FROM user [, user] ...\n\nTo use this REVOKE syntax, you must have the global CREATE USER\nprivilege or the UPDATE privilege for the mysql database.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/revoke.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/revoke.html'),(251,'LAST_INSERT_ID',17,'Syntax:\nLAST_INSERT_ID(), LAST_INSERT_ID(expr)\n\nWith no argument, LAST_INSERT_ID() returns a 64-bit value representing\nthe first automatically generated value successfully inserted for an\nAUTO_INCREMENT column as a result of the most recently executed INSERT\nstatement. The value has a type of BIGINT UNSIGNED as of MySQL 5.5.29,\nBIGINT (signed) before that. The value of LAST_INSERT_ID() remains\nunchanged if no rows are successfully inserted.\n\nWith an argument, LAST_INSERT_ID() returns an unsigned integer as of\nMySQL 5.5.29, a signed integer before that.\n\nFor example, after inserting a row that generates an AUTO_INCREMENT\nvalue, you can get the value like this:\n\nmysql> SELECT LAST_INSERT_ID();\n -> 195\n\nThe currently executing statement does not affect the value of\nLAST_INSERT_ID(). Suppose that you generate an AUTO_INCREMENT value\nwith one statement, and then refer to LAST_INSERT_ID() in a\nmultiple-row INSERT statement that inserts rows into a table with its\nown AUTO_INCREMENT column. The value of LAST_INSERT_ID() will remain\nstable in the second statement; its value for the second and later rows\nis not affected by the earlier row insertions. (However, if you mix\nreferences to LAST_INSERT_ID() and LAST_INSERT_ID(expr), the effect is\nundefined.)\n\nIf the previous statement returned an error, the value of\nLAST_INSERT_ID() is undefined. For transactional tables, if the\nstatement is rolled back due to an error, the value of LAST_INSERT_ID()\nis left undefined. For manual ROLLBACK, the value of LAST_INSERT_ID()\nis not restored to that before the transaction; it remains as it was at\nthe point of the ROLLBACK.\n\nPrior to MySQL 5.5.35, this function was not replicated correctly if\nreplication filtering rules were in use. (Bug #17234370, Bug #69861)\n\nWithin the body of a stored routine (procedure or function) or a\ntrigger, the value of LAST_INSERT_ID() changes the same way as for\nstatements executed outside the body of these kinds of objects. The\neffect of a stored routine or trigger upon the value of\nLAST_INSERT_ID() that is seen by following statements depends on the\nkind of routine:\n\no If a stored procedure executes statements that change the value of\n LAST_INSERT_ID(), the changed value is seen by statements that follow\n the procedure call.\n\no For stored functions and triggers that change the value, the value is\n restored when the function or trigger ends, so following statements\n will not see a changed value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(252,'LAST_DAY',32,'Syntax:\nLAST_DAY(date)\n\nTakes a date or datetime value and returns the corresponding value for\nthe last day of the month. Returns NULL if the argument is invalid.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT LAST_DAY(\'2003-02-05\');\n -> \'2003-02-28\'\nmysql> SELECT LAST_DAY(\'2004-02-05\');\n -> \'2004-02-29\'\nmysql> SELECT LAST_DAY(\'2004-01-01 01:01:01\');\n -> \'2004-01-31\'\nmysql> SELECT LAST_DAY(\'2003-03-32\');\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(253,'MEDIUMINT',23,'MEDIUMINT[(M)] [UNSIGNED] [ZEROFILL]\n\nA medium-sized integer. The signed range is -8388608 to 8388607. The\nunsigned range is 0 to 16777215.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(254,'FLOOR',3,'Syntax:\nFLOOR(X)\n\nReturns the largest integer value not greater than X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT FLOOR(1.23);\n -> 1\nmysql> SELECT FLOOR(-1.23);\n -> -2\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(255,'RTRIM',38,'Syntax:\nRTRIM(str)\n\nReturns the string str with trailing space characters removed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT RTRIM(\'barbar \');\n -> \'barbar\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(256,'EXPLAIN',29,'Syntax:\n{EXPLAIN | DESCRIBE | DESC}\n tbl_name [col_name | wild]\n\n{EXPLAIN | DESCRIBE | DESC}\n [explain_type] SELECT select_options\n\nexplain_type: {EXTENDED | PARTITIONS}\n\nThe DESCRIBE and EXPLAIN statements are synonyms. In practice, the\nDESCRIBE keyword is more often used to obtain information about table\nstructure, whereas EXPLAIN is used to obtain a query execution plan\n(that is, an explanation of how MySQL would execute a query). The\nfollowing discussion uses the DESCRIBE and EXPLAIN keywords in\naccordance with those uses, but the MySQL parser treats them as\ncompletely synonymous.\n\nObtaining Table Structure Information\n\nDESCRIBE provides information about the columns in a table:\n\nmysql> DESCRIBE City;\n+------------+----------+------+-----+---------+----------------+\n| Field | Type | Null | Key | Default | Extra |\n+------------+----------+------+-----+---------+----------------+\n| Id | int(11) | NO | PRI | NULL | auto_increment |\n| Name | char(35) | NO | | | |\n| Country | char(3) | NO | UNI | | |\n| District | char(20) | YES | MUL | | |\n| Population | int(11) | NO | | 0 | |\n+------------+----------+------+-----+---------+----------------+\n\nDESCRIBE is a shortcut for SHOW COLUMNS. These statements also display\ninformation for views. The description for SHOW COLUMNS provides more\ninformation about the output columns. See [HELP SHOW COLUMNS].\n\nBy default, DESCRIBE displays information about all columns in the\ntable. col_name, if given, is the name of a column in the table. In\nthis case, the statement displays information only for the named\ncolumn. wild, if given, is a pattern string. It can contain the SQL \"%\"\nand \"_\" wildcard characters. In this case, the statement displays\noutput only for the columns with names matching the string. There is no\nneed to enclose the string within quotation marks unless it contains\nspaces or other special characters.\n\nThe DESCRIBE statement is provided for compatibility with Oracle.\n\nThe SHOW CREATE TABLE, SHOW TABLE STATUS, and SHOW INDEX statements\nalso provide information about tables. See [HELP SHOW].\n\nObtaining Execution Plan Information\n\nThe EXPLAIN statement provides information about how MySQL executes\nstatements:\n\no When you precede a SELECT statement with the keyword EXPLAIN, MySQL\n displays information from the optimizer about the statement execution\n plan. That is, MySQL explains how it would process the statement,\n including information about how tables are joined and in which order.\n For information about using EXPLAIN to obtain execution plan\n information, see\n http://dev.mysql.com/doc/refman/5.5/en/explain-output.html.\n\no EXPLAIN EXTENDED can be used to obtain additional execution plan\n information. See\n http://dev.mysql.com/doc/refman/5.5/en/explain-extended.html.\n\no EXPLAIN PARTITIONS is useful for examining queries involving\n partitioned tables. See\n http://dev.mysql.com/doc/refman/5.5/en/partitioning-info.html.\n\nWith the help of EXPLAIN, you can see where you should add indexes to\ntables so that the statement executes faster by using indexes to find\nrows. You can also use EXPLAIN to check whether the optimizer joins the\ntables in an optimal order. To give a hint to the optimizer to use a\njoin order corresponding to the order in which the tables are named in\na SELECT statement, begin the statement with SELECT STRAIGHT_JOIN\nrather than just SELECT. (See\nhttp://dev.mysql.com/doc/refman/5.5/en/select.html.)\n\nIf you have a problem with indexes not being used when you believe that\nthey should be, run ANALYZE TABLE to update table statistics, such as\ncardinality of keys, that can affect the choices the optimizer makes.\nSee [HELP ANALYZE TABLE].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/explain.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/explain.html'),(257,'DEGREES',3,'Syntax:\nDEGREES(X)\n\nReturns the argument X, converted from radians to degrees.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT DEGREES(PI());\n -> 180\nmysql> SELECT DEGREES(PI() / 2);\n -> 90\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(258,'- UNARY',3,'Syntax:\n-\n\nUnary minus. This operator changes the sign of the operand.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT - 2;\n -> -2\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(259,'VARCHAR',23,'[NATIONAL] VARCHAR(M) [CHARACTER SET charset_name] [COLLATE\ncollation_name]\n\nA variable-length string. M represents the maximum column length in\ncharacters. The range of M is 0 to 65,535. The effective maximum length\nof a VARCHAR is subject to the maximum row size (65,535 bytes, which is\nshared among all columns) and the character set used. For example, utf8\ncharacters can require up to three bytes per character, so a VARCHAR\ncolumn that uses the utf8 character set can be declared to be a maximum\nof 21,844 characters. See\nhttp://dev.mysql.com/doc/refman/5.5/en/column-count-limit.html.\n\nMySQL stores VARCHAR values as a 1-byte or 2-byte length prefix plus\ndata. The length prefix indicates the number of bytes in the value. A\nVARCHAR column uses one length byte if values require no more than 255\nbytes, two length bytes if values may require more than 255 bytes.\n\n*Note*: MySQL 5.5 follows the standard SQL specification, and does not\nremove trailing spaces from VARCHAR values.\n\nVARCHAR is shorthand for CHARACTER VARYING. NATIONAL VARCHAR is the\nstandard SQL way to define that a VARCHAR column should use some\npredefined character set. MySQL 4.1 and up uses utf8 as this predefined\ncharacter set.\nhttp://dev.mysql.com/doc/refman/5.5/en/charset-national.html. NVARCHAR\nis shorthand for NATIONAL VARCHAR.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(260,'UNHEX',38,'Syntax:\n\nUNHEX(str)\n\nFor a string argument str, UNHEX(str) interprets each pair of\ncharacters in the argument as a hexadecimal number and converts it to\nthe byte represented by the number. The return value is a binary\nstring.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT UNHEX(\'4D7953514C\');\n -> \'MySQL\'\nmysql> SELECT 0x4D7953514C;\n -> \'MySQL\'\nmysql> SELECT UNHEX(HEX(\'string\'));\n -> \'string\'\nmysql> SELECT HEX(UNHEX(\'1267\'));\n -> \'1267\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(261,'STD',16,'Syntax:\nSTD(expr)\n\nReturns the population standard deviation of expr. This is an extension\nto standard SQL. The standard SQL function STDDEV_POP() can be used\ninstead.\n\nThis function returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(262,'COS',3,'Syntax:\nCOS(X)\n\nReturns the cosine of X, where X is given in radians.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT COS(PI());\n -> -1\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(263,'DATE FUNCTION',32,'Syntax:\nDATE(expr)\n\nExtracts the date part of the date or datetime expression expr.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DATE(\'2003-12-31 01:02:03\');\n -> \'2003-12-31\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(264,'DROP TRIGGER',40,'Syntax:\nDROP TRIGGER [IF EXISTS] [schema_name.]trigger_name\n\nThis statement drops a trigger. The schema (database) name is optional.\nIf the schema is omitted, the trigger is dropped from the default\nschema. DROP TRIGGER requires the TRIGGER privilege for the table\nassociated with the trigger.\n\nUse IF EXISTS to prevent an error from occurring for a trigger that\ndoes not exist. A NOTE is generated for a nonexistent trigger when\nusing IF EXISTS. See [HELP SHOW WARNINGS].\n\nTriggers for a table are also dropped if you drop the table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-trigger.html'),(265,'RESET MASTER',8,'Syntax:\nRESET MASTER\n\nDeletes all binary log files listed in the index file, resets the\nbinary log index file to be empty, and creates a new binary log file.\nThis statement is intended to be used only when the master is started\nfor the first time.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/reset-master.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/reset-master.html'),(266,'TAN',3,'Syntax:\nTAN(X)\n\nReturns the tangent of X, where X is given in radians.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT TAN(PI());\n -> -1.2246063538224e-16\nmysql> SELECT TAN(PI()+1);\n -> 1.5574077246549\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(267,'PI',3,'Syntax:\nPI()\n\nReturns the value of π (pi). The default number of decimal places\ndisplayed is seven, but MySQL uses the full double-precision value\ninternally.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT PI();\n -> 3.141593\nmysql> SELECT PI()+0.000000000000000000;\n -> 3.141592653589793116\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(268,'WEEKOFYEAR',32,'Syntax:\nWEEKOFYEAR(date)\n\nReturns the calendar week of the date as a number in the range from 1\nto 53. WEEKOFYEAR() is a compatibility function that is equivalent to\nWEEK(date,3).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT WEEKOFYEAR(\'2008-02-20\');\n -> 8\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(269,'/',3,'Syntax:\n/\n\nDivision:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT 3/5;\n -> 0.60\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(270,'PURGE BINARY LOGS',8,'Syntax:\nPURGE { BINARY | MASTER } LOGS\n { TO \'log_name\' | BEFORE datetime_expr }\n\nThe binary log is a set of files that contain information about data\nmodifications made by the MySQL server. The log consists of a set of\nbinary log files, plus an index file (see\nhttp://dev.mysql.com/doc/refman/5.5/en/binary-log.html).\n\nThe PURGE BINARY LOGS statement deletes all the binary log files listed\nin the log index file prior to the specified log file name or date.\nBINARY and MASTER are synonyms. Deleted log files also are removed from\nthe list recorded in the index file, so that the given log file becomes\nthe first in the list.\n\nThis statement has no effect if the server was not started with the\n--log-bin option to enable binary logging.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/purge-binary-logs.html\n\n','PURGE BINARY LOGS TO \'mysql-bin.010\';\nPURGE BINARY LOGS BEFORE \'2008-04-02 22:46:26\';\n','http://dev.mysql.com/doc/refman/5.5/en/purge-binary-logs.html'),(271,'STDDEV_SAMP',16,'Syntax:\nSTDDEV_SAMP(expr)\n\nReturns the sample standard deviation of expr (the square root of\nVAR_SAMP().\n\nSTDDEV_SAMP() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(272,'SCHEMA',17,'Syntax:\nSCHEMA()\n\nThis function is a synonym for DATABASE().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(273,'MLINEFROMWKB',33,'MLineFromWKB(wkb[,srid]), MultiLineStringFromWKB(wkb[,srid])\n\nConstructs a MultiLineString value using its WKB representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(274,'LOG2',3,'Syntax:\nLOG2(X)\n\nReturns the base-2 logarithm of X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT LOG2(65536);\n -> 16\nmysql> SELECT LOG2(-100);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(275,'SUBTIME',32,'Syntax:\nSUBTIME(expr1,expr2)\n\nSUBTIME() returns expr1 − expr2 expressed as a value in the same\nformat as expr1. expr1 is a time or datetime expression, and expr2 is a\ntime expression.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT SUBTIME(\'2007-12-31 23:59:59.999999\',\'1 1:1:1.000002\');\n -> \'2007-12-30 22:58:58.999997\'\nmysql> SELECT SUBTIME(\'01:00:00.999999\', \'02:00:00.999998\');\n -> \'-00:59:59.999999\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(276,'UNCOMPRESSED_LENGTH',12,'Syntax:\nUNCOMPRESSED_LENGTH(compressed_string)\n\nReturns the length that the compressed string had before being\ncompressed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT UNCOMPRESSED_LENGTH(COMPRESS(REPEAT(\'a\',30)));\n -> 30\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(277,'DROP TABLE',40,'Syntax:\nDROP [TEMPORARY] TABLE [IF EXISTS]\n tbl_name [, tbl_name] ...\n [RESTRICT | CASCADE]\n\nDROP TABLE removes one or more tables. You must have the DROP privilege\nfor each table. All table data and the table definition are removed, so\nbe careful with this statement! If any of the tables named in the\nargument list do not exist, MySQL returns an error indicating by name\nwhich nonexisting tables it was unable to drop, but it also drops all\nof the tables in the list that do exist.\n\n*Important*: When a table is dropped, user privileges on the table are\nnot automatically dropped. See [HELP GRANT].\n\nFor a partitioned table, DROP TABLE permanently removes the table\ndefinition, all of its partitions, and all of the data which was stored\nin those partitions. It also removes the partitioning definition (.par)\nfile associated with the dropped table.\n\nUse IF EXISTS to prevent an error from occurring for tables that do not\nexist. A NOTE is generated for each nonexistent table when using IF\nEXISTS. See [HELP SHOW WARNINGS].\n\nRESTRICT and CASCADE are permitted to make porting easier. In MySQL\n5.5, they do nothing.\n\n*Note*: DROP TABLE automatically commits the current active\ntransaction, unless you use the TEMPORARY keyword.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-table.html'),(278,'POW',3,'Syntax:\nPOW(X,Y)\n\nReturns the value of X raised to the power of Y.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT POW(2,2);\n -> 4\nmysql> SELECT POW(2,-2);\n -> 0.25\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(279,'SHOW CREATE TABLE',27,'Syntax:\nSHOW CREATE TABLE tbl_name\n\nShows the CREATE TABLE statement that creates the named table. To use\nthis statement, you must have some privilege for the table. This\nstatement also works with views.\nSHOW CREATE TABLE quotes table and column names according to the value\nof the sql_quote_show_create option. See\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-table.html\n\n','mysql> SHOW CREATE TABLE t\\G\n*************************** 1. row ***************************\n Table: t\nCreate Table: CREATE TABLE t (\n id INT(11) default NULL auto_increment,\n s char(60) default NULL,\n PRIMARY KEY (id)\n) ENGINE=MyISAM\n','http://dev.mysql.com/doc/refman/5.5/en/show-create-table.html'),(280,'DUAL',28,'You are permitted to specify DUAL as a dummy table name in situations\nwhere no tables are referenced:\n\nmysql> SELECT 1 + 1 FROM DUAL;\n -> 2\n\nDUAL is purely for the convenience of people who require that all\nSELECT statements should have FROM and possibly other clauses. MySQL\nmay ignore the clauses. MySQL does not require FROM DUAL if no tables\nare referenced.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/select.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/select.html'),(281,'INSTR',38,'Syntax:\nINSTR(str,substr)\n\nReturns the position of the first occurrence of substring substr in\nstring str. This is the same as the two-argument form of LOCATE(),\nexcept that the order of the arguments is reversed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT INSTR(\'foobarbar\', \'bar\');\n -> 4\nmysql> SELECT INSTR(\'xbar\', \'foobar\');\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(282,'NOW',32,'Syntax:\nNOW()\n\nReturns the current date and time as a value in \'YYYY-MM-DD HH:MM:SS\'\nor YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is\nused in a string or numeric context. The value is expressed in the\ncurrent time zone.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT NOW();\n -> \'2007-12-15 23:50:26\'\nmysql> SELECT NOW() + 0;\n -> 20071215235026.000000\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(283,'SHOW ENGINES',27,'Syntax:\nSHOW [STORAGE] ENGINES\n\nSHOW ENGINES displays status information about the server\'s storage\nengines. This is particularly useful for checking whether a storage\nengine is supported, or to see what the default engine is. This\ninformation can also be obtained from the INFORMATION_SCHEMA ENGINES\ntable. See http://dev.mysql.com/doc/refman/5.5/en/engines-table.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-engines.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-engines.html'),(284,'>=',20,'Syntax:\n>=\n\nGreater than or equal:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 2 >= 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(285,'EXP',3,'Syntax:\nEXP(X)\n\nReturns the value of e (the base of natural logarithms) raised to the\npower of X. The inverse of this function is LOG() (using a single\nargument only) or LN().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT EXP(2);\n -> 7.3890560989307\nmysql> SELECT EXP(-2);\n -> 0.13533528323661\nmysql> SELECT EXP(0);\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(286,'LONGBLOB',23,'LONGBLOB\n\nA BLOB column with a maximum length of 4,294,967,295 or 4GB (232 − 1)\nbytes. The effective maximum length of LONGBLOB columns depends on the\nconfigured maximum packet size in the client/server protocol and\navailable memory. Each LONGBLOB value is stored using a 4-byte length\nprefix that indicates the number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(287,'POINTN',13,'PointN(ls,N)\n\nReturns the N-th Point in the Linestring value ls. Points are numbered\nbeginning with 1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT AsText(PointN(GeomFromText(@ls),2));\n+-------------------------------------+\n| AsText(PointN(GeomFromText(@ls),2)) |\n+-------------------------------------+\n| POINT(2 2) |\n+-------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(288,'YEAR DATA TYPE',23,'YEAR[(2|4)]\n\nA year in two-digit or four-digit format. The default is four-digit\nformat. YEAR(2) or YEAR(4) differ in display format, but have the same\nrange of values. In four-digit format, values display as 1901 to 2155,\nand 0000. In two-digit format, values display as 70 to 69, representing\nyears from 1970 to 2069. MySQL displays YEAR values in YYYY or YY\nformat, but permits assignment of values to YEAR columns using either\nstrings or numbers.\n\n*Note*: The YEAR(2) data type has certain issues that you should\nconsider before choosing to use it. As of MySQL 5.5.27, YEAR(2) is\ndeprecated. For more information, see\nhttp://dev.mysql.com/doc/refman/5.5/en/migrating-to-year4.html.\n\nFor additional information about YEAR display format and interpretation\nof input values, see http://dev.mysql.com/doc/refman/5.5/en/year.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html'),(289,'SUM',16,'Syntax:\nSUM([DISTINCT] expr)\n\nReturns the sum of expr. If the return set has no rows, SUM() returns\nNULL. The DISTINCT keyword can be used to sum only the distinct values\nof expr.\n\nSUM() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(290,'OCT',38,'Syntax:\nOCT(N)\n\nReturns a string representation of the octal value of N, where N is a\nlonglong (BIGINT) number. This is equivalent to CONV(N,10,8). Returns\nNULL if N is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT OCT(12);\n -> \'14\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(291,'SYSDATE',32,'Syntax:\nSYSDATE()\n\nReturns the current date and time as a value in \'YYYY-MM-DD HH:MM:SS\'\nor YYYYMMDDHHMMSS.uuuuuu format, depending on whether the function is\nused in a string or numeric context.\n\nSYSDATE() returns the time at which it executes. This differs from the\nbehavior for NOW(), which returns a constant time that indicates the\ntime at which the statement began to execute. (Within a stored function\nor trigger, NOW() returns the time at which the function or triggering\nstatement began to execute.)\n\nmysql> SELECT NOW(), SLEEP(2), NOW();\n+---------------------+----------+---------------------+\n| NOW() | SLEEP(2) | NOW() |\n+---------------------+----------+---------------------+\n| 2006-04-12 13:47:36 | 0 | 2006-04-12 13:47:36 |\n+---------------------+----------+---------------------+\n\nmysql> SELECT SYSDATE(), SLEEP(2), SYSDATE();\n+---------------------+----------+---------------------+\n| SYSDATE() | SLEEP(2) | SYSDATE() |\n+---------------------+----------+---------------------+\n| 2006-04-12 13:47:44 | 0 | 2006-04-12 13:47:46 |\n+---------------------+----------+---------------------+\n\nIn addition, the SET TIMESTAMP statement affects the value returned by\nNOW() but not by SYSDATE(). This means that timestamp settings in the\nbinary log have no effect on invocations of SYSDATE().\n\nBecause SYSDATE() can return different values even within the same\nstatement, and is not affected by SET TIMESTAMP, it is nondeterministic\nand therefore unsafe for replication if statement-based binary logging\nis used. If that is a problem, you can use row-based logging.\n\nAlternatively, you can use the --sysdate-is-now option to cause\nSYSDATE() to be an alias for NOW(). This works if the option is used on\nboth the master and the slave.\n\nThe nondeterministic nature of SYSDATE() also means that indexes cannot\nbe used for evaluating expressions that refer to it.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(292,'UNINSTALL PLUGIN',5,'Syntax:\nUNINSTALL PLUGIN plugin_name\n\nThis statement removes an installed server plugin. It requires the\nDELETE privilege for the mysql.plugin table.\n\nplugin_name must be the name of some plugin that is listed in the\nmysql.plugin table. The server executes the plugin\'s deinitialization\nfunction and removes the row for the plugin from the mysql.plugin\ntable, so that subsequent server restarts will not load and initialize\nthe plugin. UNINSTALL PLUGIN does not remove the plugin\'s shared\nlibrary file.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/uninstall-plugin.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/uninstall-plugin.html'),(293,'ASBINARY',33,'AsBinary(g), AsWKB(g)\n\nConverts a value in internal geometry format to its WKB representation\nand returns the binary result.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-format-conversion-functions.html\n\n','SELECT AsBinary(g) FROM geom;\n','http://dev.mysql.com/doc/refman/5.5/en/gis-format-conversion-functions.html'),(294,'REPEAT FUNCTION',38,'Syntax:\nREPEAT(str,count)\n\nReturns a string consisting of the string str repeated count times. If\ncount is less than 1, returns an empty string. Returns NULL if str or\ncount are NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT REPEAT(\'MySQL\', 3);\n -> \'MySQLMySQLMySQL\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(295,'SHOW TABLES',27,'Syntax:\nSHOW [FULL] TABLES [{FROM | IN} db_name]\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW TABLES lists the non-TEMPORARY tables in a given database. You can\nalso get this list using the mysqlshow db_name command. The LIKE\nclause, if present, indicates which table names to match. The WHERE\nclause can be given to select rows using more general conditions, as\ndiscussed in http://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nMatching performed by the LIKE clause is dependent on the setting of\nthe lower_case_table_names system variable.\n\nThis statement also lists any views in the database. The FULL modifier\nis supported such that SHOW FULL TABLES displays a second output\ncolumn. Values for the second column are BASE TABLE for a table and\nVIEW for a view.\n\nIf you have no privileges for a base table or view, it does not show up\nin the output from SHOW TABLES or mysqlshow db_name.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-tables.html'),(296,'MAKEDATE',32,'Syntax:\nMAKEDATE(year,dayofyear)\n\nReturns a date, given year and day-of-year values. dayofyear must be\ngreater than 0 or the result is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MAKEDATE(2011,31), MAKEDATE(2011,32);\n -> \'2011-01-31\', \'2011-02-01\'\nmysql> SELECT MAKEDATE(2011,365), MAKEDATE(2014,365);\n -> \'2011-12-31\', \'2014-12-31\'\nmysql> SELECT MAKEDATE(2011,0);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(297,'BINARY OPERATOR',38,'Syntax:\nBINARY\n\nThe BINARY operator casts the string following it to a binary string.\nThis is an easy way to force a column comparison to be done byte by\nbyte rather than character by character. This causes the comparison to\nbe case sensitive even if the column is not defined as BINARY or BLOB.\nBINARY also causes trailing spaces to be significant.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html\n\n','mysql> SELECT \'a\' = \'A\';\n -> 1\nmysql> SELECT BINARY \'a\' = \'A\';\n -> 0\nmysql> SELECT \'a\' = \'a \';\n -> 1\nmysql> SELECT BINARY \'a\' = \'a \';\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html'),(298,'MBROVERLAPS',7,'MBROverlaps(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangles of\nthe two geometries g1 and g2 overlap. The term spatially overlaps is\nused if two geometries intersect and their intersection results in a\ngeometry of the same dimension but not equal to either of the given\ngeometries.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(299,'SOUNDEX',38,'Syntax:\nSOUNDEX(str)\n\nReturns a soundex string from str. Two strings that sound almost the\nsame should have identical soundex strings. A standard soundex string\nis four characters long, but the SOUNDEX() function returns an\narbitrarily long string. You can use SUBSTRING() on the result to get a\nstandard soundex string. All nonalphabetic characters in str are\nignored. All international alphabetic characters outside the A-Z range\nare treated as vowels.\n\n*Important*: When using SOUNDEX(), you should be aware of the following\nlimitations:\n\no This function, as currently implemented, is intended to work well\n with strings that are in the English language only. Strings in other\n languages may not produce reliable results.\n\no This function is not guaranteed to provide consistent results with\n strings that use multibyte character sets, including utf-8.\n\n We hope to remove these limitations in a future release. See Bug\n #22638 for more information.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT SOUNDEX(\'Hello\');\n -> \'H400\'\nmysql> SELECT SOUNDEX(\'Quadratically\');\n -> \'Q36324\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(300,'MBRTOUCHES',7,'MBRTouches(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangles of\nthe two geometries g1 and g2 touch. Two geometries spatially touch if\nthe interiors of the geometries do not intersect, but the boundary of\none of the geometries intersects either the boundary or the interior of\nthe other.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(301,'DROP EVENT',40,'Syntax:\nDROP EVENT [IF EXISTS] event_name\n\nThis statement drops the event named event_name. The event immediately\nceases being active, and is deleted completely from the server.\n\nIf the event does not exist, the error ERROR 1517 (HY000): Unknown\nevent \'event_name\' results. You can override this and cause the\nstatement to generate a warning for nonexistent events instead using IF\nEXISTS.\n\nThis statement requires the EVENT privilege for the schema to which the\nevent to be dropped belongs.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-event.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-event.html'),(302,'INSERT SELECT',28,'Syntax:\nINSERT [LOW_PRIORITY | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name [(col_name,...)]\n SELECT ...\n [ ON DUPLICATE KEY UPDATE col_name=expr, ... ]\n\nWith INSERT ... SELECT, you can quickly insert many rows into a table\nfrom one or many tables. For example:\n\nINSERT INTO tbl_temp2 (fld_id)\n SELECT tbl_temp1.fld_order_id\n FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/insert-select.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/insert-select.html'),(303,'CREATE PROCEDURE',40,'Syntax:\nCREATE\n [DEFINER = { user | CURRENT_USER }]\n PROCEDURE sp_name ([proc_parameter[,...]])\n [characteristic ...] routine_body\n\nCREATE\n [DEFINER = { user | CURRENT_USER }]\n FUNCTION sp_name ([func_parameter[,...]])\n RETURNS type\n [characteristic ...] routine_body\n\nproc_parameter:\n [ IN | OUT | INOUT ] param_name type\n\nfunc_parameter:\n param_name type\n\ntype:\n Any valid MySQL data type\n\ncharacteristic:\n COMMENT \'string\'\n | LANGUAGE SQL\n | [NOT] DETERMINISTIC\n | { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }\n | SQL SECURITY { DEFINER | INVOKER }\n\nroutine_body:\n Valid SQL routine statement\n\nThese statements create stored routines. By default, a routine is\nassociated with the default database. To associate the routine\nexplicitly with a given database, specify the name as db_name.sp_name\nwhen you create it.\n\nThe CREATE FUNCTION statement is also used in MySQL to support UDFs\n(user-defined functions). See\nhttp://dev.mysql.com/doc/refman/5.5/en/adding-functions.html. A UDF can\nbe regarded as an external stored function. Stored functions share\ntheir namespace with UDFs. See\nhttp://dev.mysql.com/doc/refman/5.5/en/function-resolution.html, for\nthe rules describing how the server interprets references to different\nkinds of functions.\n\nTo invoke a stored procedure, use the CALL statement (see [HELP CALL]).\nTo invoke a stored function, refer to it in an expression. The function\nreturns a value during expression evaluation.\n\nCREATE PROCEDURE and CREATE FUNCTION require the CREATE ROUTINE\nprivilege. They might also require the SUPER privilege, depending on\nthe DEFINER value, as described later in this section. If binary\nlogging is enabled, CREATE FUNCTION might require the SUPER privilege,\nas described in\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-logging.html.\n\nBy default, MySQL automatically grants the ALTER ROUTINE and EXECUTE\nprivileges to the routine creator. This behavior can be changed by\ndisabling the automatic_sp_privileges system variable. See\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-routines-privileges.html.\n\nThe DEFINER and SQL SECURITY clauses specify the security context to be\nused when checking access privileges at routine execution time, as\ndescribed later in this section.\n\nIf the routine name is the same as the name of a built-in SQL function,\na syntax error occurs unless you use a space between the name and the\nfollowing parenthesis when defining the routine or invoking it later.\nFor this reason, avoid using the names of existing SQL functions for\nyour own stored routines.\n\nThe IGNORE_SPACE SQL mode applies to built-in functions, not to stored\nroutines. It is always permissible to have spaces after a stored\nroutine name, regardless of whether IGNORE_SPACE is enabled.\n\nThe parameter list enclosed within parentheses must always be present.\nIf there are no parameters, an empty parameter list of () should be\nused. Parameter names are not case sensitive.\n\nEach parameter is an IN parameter by default. To specify otherwise for\na parameter, use the keyword OUT or INOUT before the parameter name.\n\n*Note*: Specifying a parameter as IN, OUT, or INOUT is valid only for a\nPROCEDURE. For a FUNCTION, parameters are always regarded as IN\nparameters.\n\nAn IN parameter passes a value into a procedure. The procedure might\nmodify the value, but the modification is not visible to the caller\nwhen the procedure returns. An OUT parameter passes a value from the\nprocedure back to the caller. Its initial value is NULL within the\nprocedure, and its value is visible to the caller when the procedure\nreturns. An INOUT parameter is initialized by the caller, can be\nmodified by the procedure, and any change made by the procedure is\nvisible to the caller when the procedure returns.\n\nFor each OUT or INOUT parameter, pass a user-defined variable in the\nCALL statement that invokes the procedure so that you can obtain its\nvalue when the procedure returns. If you are calling the procedure from\nwithin another stored procedure or function, you can also pass a\nroutine parameter or local routine variable as an IN or INOUT\nparameter.\n\nRoutine parameters cannot be referenced in statements prepared within\nthe routine; see\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-program-restrictions.html\n.\n\nThe following example shows a simple stored procedure that uses an OUT\nparameter:\n\nmysql> delimiter //\n\nmysql> CREATE PROCEDURE simpleproc (OUT param1 INT)\n -> BEGIN\n -> SELECT COUNT(*) INTO param1 FROM t;\n -> END//\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> delimiter ;\n\nmysql> CALL simpleproc(@a);\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SELECT @a;\n+------+\n| @a |\n+------+\n| 3 |\n+------+\n1 row in set (0.00 sec)\n\nThe example uses the mysql client delimiter command to change the\nstatement delimiter from ; to // while the procedure is being defined.\nThis enables the ; delimiter used in the procedure body to be passed\nthrough to the server rather than being interpreted by mysql itself.\nSee\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-defining.html.\n\nThe RETURNS clause may be specified only for a FUNCTION, for which it\nis mandatory. It indicates the return type of the function, and the\nfunction body must contain a RETURN value statement. If the RETURN\nstatement returns a value of a different type, the value is coerced to\nthe proper type. For example, if a function specifies an ENUM or SET\nvalue in the RETURNS clause, but the RETURN statement returns an\ninteger, the value returned from the function is the string for the\ncorresponding ENUM member of set of SET members.\n\nThe following example function takes a parameter, performs an operation\nusing an SQL function, and returns the result. In this case, it is\nunnecessary to use delimiter because the function definition contains\nno internal ; statement delimiters:\n\nmysql> CREATE FUNCTION hello (s CHAR(20))\nmysql> RETURNS CHAR(50) DETERMINISTIC\n -> RETURN CONCAT(\'Hello, \',s,\'!\');\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SELECT hello(\'world\');\n+----------------+\n| hello(\'world\') |\n+----------------+\n| Hello, world! |\n+----------------+\n1 row in set (0.00 sec)\n\nParameter types and function return types can be declared to use any\nvalid data type, except that the COLLATE attribute cannot be used prior\nto MySQL 5.5.3. As of 5.5.3, COLLATE can be used if preceded by the\nCHARACTER SET attribute.\n\nThe routine_body consists of a valid SQL routine statement. This can be\na simple statement such as SELECT or INSERT, or a compound statement\nwritten using BEGIN and END. Compound statements can contain\ndeclarations, loops, and other control structure statements. The syntax\nfor these statements is described in\nhttp://dev.mysql.com/doc/refman/5.5/en/sql-syntax-compound-statements.h\ntml.\n\nMySQL permits routines to contain DDL statements, such as CREATE and\nDROP. MySQL also permits stored procedures (but not stored functions)\nto contain SQL transaction statements such as COMMIT. Stored functions\nmay not contain statements that perform explicit or implicit commit or\nrollback. Support for these statements is not required by the SQL\nstandard, which states that each DBMS vendor may decide whether to\npermit them.\n\nStatements that return a result set can be used within a stored\nprocedure but not within a stored function. This prohibition includes\nSELECT statements that do not have an INTO var_list clause and other\nstatements such as SHOW, EXPLAIN, and CHECK TABLE. For statements that\ncan be determined at function definition time to return a result set, a\nNot allowed to return a result set from a function error occurs\n(ER_SP_NO_RETSET). For statements that can be determined only at\nruntime to return a result set, a PROCEDURE %s can\'t return a result\nset in the given context error occurs (ER_SP_BADSELECT).\n\nUSE statements within stored routines are not permitted. When a routine\nis invoked, an implicit USE db_name is performed (and undone when the\nroutine terminates). The causes the routine to have the given default\ndatabase while it executes. References to objects in databases other\nthan the routine default database should be qualified with the\nappropriate database name.\n\nFor additional information about statements that are not permitted in\nstored routines, see\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-program-restrictions.html\n.\n\nFor information about invoking stored procedures from within programs\nwritten in a language that has a MySQL interface, see [HELP CALL].\n\nMySQL stores the sql_mode system variable setting in effect when a\nroutine is created or altered, and always executes the routine with\nthis setting in force, regardless of the current server SQL mode when\nthe routine begins executing.\n\nThe switch from the SQL mode of the invoker to that of the routine\noccurs after evaluation of arguments and assignment of the resulting\nvalues to routine parameters. If you define a routine in strict SQL\nmode but invoke it in nonstrict mode, assignment of arguments to\nroutine parameters does not take place in strict mode. If you require\nthat expressions passed to a routine be assigned in strict SQL mode,\nyou should invoke the routine with strict mode in effect.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-procedure.html'),(304,'VARBINARY',23,'VARBINARY(M)\n\nThe VARBINARY type is similar to the VARCHAR type, but stores binary\nbyte strings rather than nonbinary character strings. M represents the\nmaximum column length in bytes.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(305,'LOAD INDEX',27,'Syntax:\nLOAD INDEX INTO CACHE\n tbl_index_list [, tbl_index_list] ...\n\ntbl_index_list:\n tbl_name\n [PARTITION (partition_list | ALL)]\n [[INDEX|KEY] (index_name[, index_name] ...)]\n [IGNORE LEAVES]\n\npartition_list:\n partition_name[, partition_name][, ...]\n\nThe LOAD INDEX INTO CACHE statement preloads a table index into the key\ncache to which it has been assigned by an explicit CACHE INDEX\nstatement, or into the default key cache otherwise.\n\nLOAD INDEX INTO CACHE is used only for MyISAM tables. In MySQL 5.5, it\nis also supported for partitioned MyISAM tables; in addition, indexes\non partitioned tables can be preloaded for one, several, or all\npartitions.\n\nThe IGNORE LEAVES modifier causes only blocks for the nonleaf nodes of\nthe index to be preloaded.\n\nIGNORE LEAVES is also supported for partitioned MyISAM tables.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/load-index.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/load-index.html'),(306,'UNION',28,'Syntax:\nSELECT ...\nUNION [ALL | DISTINCT] SELECT ...\n[UNION [ALL | DISTINCT] SELECT ...]\n\nUNION is used to combine the result from multiple SELECT statements\ninto a single result set.\n\nThe column names from the first SELECT statement are used as the column\nnames for the results returned. Selected columns listed in\ncorresponding positions of each SELECT statement should have the same\ndata type. (For example, the first column selected by the first\nstatement should have the same type as the first column selected by the\nother statements.)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/union.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/union.html'),(307,'TO_DAYS',32,'Syntax:\nTO_DAYS(date)\n\nGiven a date date, returns a day number (the number of days since year\n0).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TO_DAYS(950501);\n -> 728779\nmysql> SELECT TO_DAYS(\'2007-10-07\');\n -> 733321\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(308,'NOT REGEXP',38,'Syntax:\nexpr NOT REGEXP pat, expr NOT RLIKE pat\n\nThis is the same as NOT (expr REGEXP pat).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/regexp.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/regexp.html'),(309,'SHOW INDEX',27,'Syntax:\nSHOW {INDEX | INDEXES | KEYS}\n {FROM | IN} tbl_name\n [{FROM | IN} db_name]\n [WHERE expr]\n\nSHOW INDEX returns table index information. The format resembles that\nof the SQLStatistics call in ODBC. This statement requires some\nprivilege for any column in the table.\nYou can use db_name.tbl_name as an alternative to the tbl_name FROM\ndb_name syntax. These two statements are equivalent:\n\nSHOW INDEX FROM mytable FROM mydb;\nSHOW INDEX FROM mydb.mytable;\n\nThe WHERE clause can be given to select rows using more general\nconditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nYou can also list a table\'s indexes with the mysqlshow -k db_name\ntbl_name command.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-index.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-index.html'),(310,'SHOW CREATE DATABASE',27,'Syntax:\nSHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name\n\nShows the CREATE DATABASE statement that creates the named database. If\nthe SHOW statement includes an IF NOT EXISTS clause, the output too\nincludes such a clause. SHOW CREATE SCHEMA is a synonym for SHOW CREATE\nDATABASE.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-database.html\n\n','mysql> SHOW CREATE DATABASE test\\G\n*************************** 1. row ***************************\n Database: test\nCreate Database: CREATE DATABASE `test`\n /*!40100 DEFAULT CHARACTER SET latin1 */\n\nmysql> SHOW CREATE SCHEMA test\\G\n*************************** 1. row ***************************\n Database: test\nCreate Database: CREATE DATABASE `test`\n /*!40100 DEFAULT CHARACTER SET latin1 */\n','http://dev.mysql.com/doc/refman/5.5/en/show-create-database.html'),(311,'LEAVE',24,'Syntax:\nLEAVE label\n\nThis statement is used to exit the flow control construct that has the\ngiven label. If the label is for the outermost stored program block,\nLEAVE exits the program.\n\nLEAVE can be used within BEGIN ... END or loop constructs (LOOP,\nREPEAT, WHILE).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/leave.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/leave.html'),(312,'NOT IN',20,'Syntax:\nexpr NOT IN (value,...)\n\nThis is the same as NOT (expr IN (value,...)).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(313,'!',15,'Syntax:\nNOT, !\n\nLogical NOT. Evaluates to 1 if the operand is 0, to 0 if the operand is\nnonzero, and NOT NULL returns NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html\n\n','mysql> SELECT NOT 10;\n -> 0\nmysql> SELECT NOT 0;\n -> 1\nmysql> SELECT NOT NULL;\n -> NULL\nmysql> SELECT ! (1+1);\n -> 0\nmysql> SELECT ! 1+1;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html'),(314,'DECLARE HANDLER',24,'Syntax:\nDECLARE handler_action HANDLER\n FOR condition_value [, condition_value] ...\n statement\n\nhandler_action:\n CONTINUE\n | EXIT\n | UNDO\n\ncondition_value:\n mysql_error_code\n | SQLSTATE [VALUE] sqlstate_value\n | condition_name\n | SQLWARNING\n | NOT FOUND\n | SQLEXCEPTION\n\nThe DECLARE ... HANDLER statement specifies a handler that deals with\none or more conditions. If one of these conditions occurs, the\nspecified statement executes. statement can be a simple statement such\nas SET var_name = value, or a compound statement written using BEGIN\nand END (see [HELP BEGIN END]).\n\nHandler declarations must appear after variable or condition\ndeclarations.\n\nThe handler_action value indicates what action the handler takes after\nexecution of the handler statement:\n\no CONTINUE: Execution of the current program continues.\n\no EXIT: Execution terminates for the BEGIN ... END compound statement\n in which the handler is declared. This is true even if the condition\n occurs in an inner block.\n\no UNDO: Not supported.\n\nThe condition_value for DECLARE ... HANDLER indicates the specific\ncondition or class of conditions that activates the handler:\n\no A MySQL error code (a number) or an SQLSTATE value (a 5-character\n string literal). You should not use MySQL error code 0 or SQLSTATE\n values that begin with \'00\', because those indicate success rather\n than an error condition. For a list of MySQL error codes and SQLSTATE\n values, see\n http://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html.\n\no A condition name previously specified with DECLARE ... CONDITION. A\n condition name can be associated with a MySQL error code or SQLSTATE\n value. See [HELP DECLARE CONDITION].\n\no SQLWARNING is shorthand for the class of SQLSTATE values that begin\n with \'01\'.\n\no NOT FOUND is shorthand for the class of SQLSTATE values that begin\n with \'02\'. This is relevant within the context of cursors and is used\n to control what happens when a cursor reaches the end of a data set.\n If no more rows are available, a No Data condition occurs with\n SQLSTATE value \'02000\'. To detect this condition, you can set up a\n handler for it (or for a NOT FOUND condition). For an example, see\n http://dev.mysql.com/doc/refman/5.5/en/cursors.html. This condition\n also occurs for SELECT ... INTO var_list statements that retrieve no\n rows.\n\no SQLEXCEPTION is shorthand for the class of SQLSTATE values that do\n not begin with \'00\', \'01\', or \'02\'.\n\nIf a condition occurs for which no handler has been declared, the\naction taken depends on the condition class:\n\no For SQLEXCEPTION conditions, the stored program terminates at the\n statement that raised the condition, as if there were an EXIT\n handler. If the program was called by another stored program, the\n calling program handles the condition using the handler selection\n rules applied to its own handlers.\n\no For SQLWARNING conditions, the program continues executing, as if\n there were a CONTINUE handler.\n\no For NOT FOUND conditions, if the condition was raised normally, the\n action is CONTINUE. If it was raised by SIGNAL or RESIGNAL, the\n action is EXIT.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/declare-handler.html\n\n','mysql> CREATE TABLE test.t (s1 INT, PRIMARY KEY (s1));\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> delimiter //\n\nmysql> CREATE PROCEDURE handlerdemo ()\n -> BEGIN\n -> DECLARE CONTINUE HANDLER FOR SQLSTATE \'23000\' SET @x2 = 1;\n -> SET @x = 1;\n -> INSERT INTO test.t VALUES (1);\n -> SET @x = 2;\n -> INSERT INTO test.t VALUES (1);\n -> SET @x = 3;\n -> END;\n -> //\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> CALL handlerdemo()//\nQuery OK, 0 rows affected, 1 warning (0.01 sec)\n\nmysql> SHOW WARNINGS//\n+-------+------+---------------------------------------+\n| Level | Code | Message |\n+-------+------+---------------------------------------+\n| Error | 1062 | Duplicate entry \'1\' for key \'PRIMARY\' |\n+-------+------+---------------------------------------+\n1 row in set (0.00 sec)\n\n\nmysql> SELECT @x//\n +------+\n | @x |\n +------+\n | 3 |\n +------+\n 1 row in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/declare-handler.html'),(315,'DOUBLE',23,'DOUBLE[(M,D)] [UNSIGNED] [ZEROFILL]\n\nA normal-size (double-precision) floating-point number. Permissible\nvalues are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and\n2.2250738585072014E-308 to 1.7976931348623157E+308. These are the\ntheoretical limits, based on the IEEE standard. The actual range might\nbe slightly smaller depending on your hardware or operating system.\n\nM is the total number of digits and D is the number of digits following\nthe decimal point. If M and D are omitted, values are stored to the\nlimits permitted by the hardware. A double-precision floating-point\nnumber is accurate to approximately 15 decimal places.\n\nUNSIGNED, if specified, disallows negative values.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(316,'TIME',23,'TIME\n\nA time. The range is \'-838:59:59\' to \'838:59:59\'. MySQL displays TIME\nvalues in \'HH:MM:SS\' format, but permits assignment of values to TIME\ncolumns using either strings or numbers.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-type-overview.html'),(317,'X',11,'X(p)\n\nReturns the X-coordinate value for the Point object p as a\ndouble-precision number.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-point-property-functions.html\n\n','mysql> SELECT X(POINT(56.7, 53.34));\n+-----------------------+\n| X(POINT(56.7, 53.34)) |\n+-----------------------+\n| 56.7 |\n+-----------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-point-property-functions.html'),(318,'SYSTEM_USER',17,'Syntax:\nSYSTEM_USER()\n\nSYSTEM_USER() is a synonym for USER().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(319,'FOUND_ROWS',17,'Syntax:\nFOUND_ROWS()\n\nA SELECT statement may include a LIMIT clause to restrict the number of\nrows the server returns to the client. In some cases, it is desirable\nto know how many rows the statement would have returned without the\nLIMIT, but without running the statement again. To obtain this row\ncount, include a SQL_CALC_FOUND_ROWS option in the SELECT statement,\nand then invoke FOUND_ROWS() afterward:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT SQL_CALC_FOUND_ROWS * FROM tbl_name\n -> WHERE id > 100 LIMIT 10;\nmysql> SELECT FOUND_ROWS();\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(320,'CROSSES',31,'Crosses(g1,g2)\n\nReturns 1 if g1 spatially crosses g2. Returns NULL if g1 is a Polygon\nor a MultiPolygon, or if g2 is a Point or a MultiPoint. Otherwise,\nreturns 0.\n\nThe term spatially crosses denotes a spatial relation between two given\ngeometries that has the following properties:\n\no The two geometries intersect\n\no Their intersection results in a geometry that has a dimension that is\n one less than the maximum dimension of the two given geometries\n\no Their intersection is not equal to either of the two given geometries\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(321,'TRUNCATE TABLE',40,'Syntax:\nTRUNCATE [TABLE] tbl_name\n\nTRUNCATE TABLE empties a table completely. It requires the DROP\nprivilege.\n\nLogically, TRUNCATE TABLE is similar to a DELETE statement that deletes\nall rows, or a sequence of DROP TABLE and CREATE TABLE statements. To\nachieve high performance, it bypasses the DML method of deleting data.\nThus, it cannot be rolled back, it does not cause ON DELETE triggers to\nfire, and it cannot be performed for InnoDB tables with parent-child\nforeign key relationships.\n\nAlthough TRUNCATE TABLE is similar to DELETE, it is classified as a DDL\nstatement rather than a DML statement. It differs from DELETE in the\nfollowing ways in MySQL 5.5:\n\no Truncate operations drop and re-create the table, which is much\n faster than deleting rows one by one, particularly for large tables.\n\no Truncate operations cause an implicit commit, and so cannot be rolled\n back.\n\no Truncation operations cannot be performed if the session holds an\n active table lock.\n\no TRUNCATE TABLE fails for an InnoDB table if there are any FOREIGN KEY\n constraints from other tables that reference the table. Foreign key\n constraints between columns of the same table are permitted.\n\no Truncation operations do not return a meaningful value for the number\n of deleted rows. The usual result is \"0 rows affected,\" which should\n be interpreted as \"no information.\"\n\no As long as the table format file tbl_name.frm is valid, the table can\n be re-created as an empty table with TRUNCATE TABLE, even if the data\n or index files have become corrupted.\n\no Any AUTO_INCREMENT value is reset to its start value. This is true\n even for MyISAM and InnoDB, which normally do not reuse sequence\n values.\n\no When used with partitioned tables, TRUNCATE TABLE preserves the\n partitioning; that is, the data and index files are dropped and\n re-created, while the partition definitions (.par) file is\n unaffected.\n\no The TRUNCATE TABLE statement does not invoke ON DELETE triggers.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/truncate-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/truncate-table.html'),(322,'BIT_XOR',16,'Syntax:\nBIT_XOR(expr)\n\nReturns the bitwise XOR of all bits in expr. The calculation is\nperformed with 64-bit (BIGINT) precision.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(323,'CURRENT_DATE',32,'Syntax:\nCURRENT_DATE, CURRENT_DATE()\n\nCURRENT_DATE and CURRENT_DATE() are synonyms for CURDATE().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(324,'START SLAVE',8,'Syntax:\nSTART SLAVE [thread_types]\n\nSTART SLAVE [SQL_THREAD] UNTIL\n MASTER_LOG_FILE = \'log_name\', MASTER_LOG_POS = log_pos\n\nSTART SLAVE [SQL_THREAD] UNTIL\n RELAY_LOG_FILE = \'log_name\', RELAY_LOG_POS = log_pos\n\nthread_types:\n [thread_type [, thread_type] ... ]\n\nthread_type: IO_THREAD | SQL_THREAD\n\nSTART SLAVE with no thread_type options starts both of the slave\nthreads. The I/O thread reads events from the master server and stores\nthem in the relay log. The SQL thread reads events from the relay log\nand executes them. START SLAVE requires the SUPER privilege.\n\nIf START SLAVE succeeds in starting the slave threads, it returns\nwithout any error. However, even in that case, it might be that the\nslave threads start and then later stop (for example, because they do\nnot manage to connect to the master or read its binary log, or some\nother problem). START SLAVE does not warn you about this. You must\ncheck the slave\'s error log for error messages generated by the slave\nthreads, or check that they are running satisfactorily with SHOW SLAVE\nSTATUS.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/start-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/start-slave.html'),(325,'AREA',2,'Area(poly)\n\nReturns a double-precision number indicating the area of the argument,\nas measured in its spatial reference system. For arguments of dimension\n0 or 1, the result is 0.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly = \'Polygon((0 0,0 3,3 0,0 0),(1 1,1 2,2 1,1 1))\';\nmysql> SELECT Area(GeomFromText(@poly));\n+---------------------------+\n| Area(GeomFromText(@poly)) |\n+---------------------------+\n| 4 |\n+---------------------------+\n\nmysql> SET @mpoly =\n -> \'MultiPolygon(((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1)))\';\nmysql> SELECT Area(GeomFromText(@mpoly));\n+----------------------------+\n| Area(GeomFromText(@mpoly)) |\n+----------------------------+\n| 8 |\n+----------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html'),(326,'FLUSH',27,'Syntax:\nFLUSH [NO_WRITE_TO_BINLOG | LOCAL]\n flush_option [, flush_option] ...\n\nThe FLUSH statement has several variant forms that clear or reload\nvarious internal caches, flush tables, or acquire locks. To execute\nFLUSH, you must have the RELOAD privilege. Specific flush options might\nrequire additional privileges, as described later.\n\nBy default, the server writes FLUSH statements to the binary log so\nthat they replicate to replication slaves. To suppress logging, specify\nthe optional NO_WRITE_TO_BINLOG keyword or its alias LOCAL.\n\n*Note*: FLUSH LOGS, FLUSH MASTER, FLUSH SLAVE, and FLUSH TABLES WITH\nREAD LOCK (with or without a table list) are not written to the binary\nlog in any case because they would cause problems if replicated to a\nslave.\n\nSending a SIGHUP signal to the server causes several flush operations\nto occur that are similar to various forms of the FLUSH statement. See\nhttp://dev.mysql.com/doc/refman/5.5/en/server-signal-response.html.\n\nThe FLUSH statement causes an implicit commit. See\nhttp://dev.mysql.com/doc/refman/5.5/en/implicit-commit.html.\n\nThe RESET statement is similar to FLUSH. See [HELP RESET], for\ninformation about using the RESET statement with replication.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/flush.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/flush.html'),(327,'BEGIN END',24,'Syntax:\n[begin_label:] BEGIN\n [statement_list]\nEND [end_label]\n\nBEGIN ... END syntax is used for writing compound statements, which can\nappear within stored programs (stored procedures and functions,\ntriggers, and events). A compound statement can contain multiple\nstatements, enclosed by the BEGIN and END keywords. statement_list\nrepresents a list of one or more statements, each terminated by a\nsemicolon (;) statement delimiter. The statement_list itself is\noptional, so the empty compound statement (BEGIN END) is legal.\n\nBEGIN ... END blocks can be nested.\n\nUse of multiple statements requires that a client is able to send\nstatement strings containing the ; statement delimiter. In the mysql\ncommand-line client, this is handled with the delimiter command.\nChanging the ; end-of-statement delimiter (for example, to //) permit ;\nto be used in a program body. For an example, see\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-defining.html.\n\nA BEGIN ... END block can be labeled. See [HELP labels].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/begin-end.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/begin-end.html'),(328,'SHOW PROCEDURE STATUS',27,'Syntax:\nSHOW PROCEDURE STATUS\n [LIKE \'pattern\' | WHERE expr]\n\nThis statement is a MySQL extension. It returns characteristics of a\nstored procedure, such as the database, name, type, creator, creation\nand modification dates, and character set information. A similar\nstatement, SHOW FUNCTION STATUS, displays information about stored\nfunctions (see [HELP SHOW FUNCTION STATUS]).\n\nThe LIKE clause, if present, indicates which procedure or function\nnames to match. The WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-procedure-status.html\n\n','mysql> SHOW PROCEDURE STATUS LIKE \'sp1\'\\G\n*************************** 1. row ***************************\n Db: test\n Name: sp1\n Type: PROCEDURE\n Definer: testuser@localhost\n Modified: 2004-08-03 15:29:37\n Created: 2004-08-03 15:29:37\n Security_type: DEFINER\n Comment:\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n','http://dev.mysql.com/doc/refman/5.5/en/show-procedure-status.html'),(329,'SHOW WARNINGS',27,'Syntax:\nSHOW WARNINGS [LIMIT [offset,] row_count]\nSHOW COUNT(*) WARNINGS\n\nSHOW WARNINGS is a diagnostic statement that displays information about\nthe conditions (errors, warnings, and notes) resulting from executing a\nstatement in the current session. Warnings are generated for DML\nstatements such as INSERT, UPDATE, and LOAD DATA INFILE as well as DDL\nstatements such as CREATE TABLE and ALTER TABLE.\n\nThe LIMIT clause has the same syntax as for the SELECT statement. See\nhttp://dev.mysql.com/doc/refman/5.5/en/select.html.\n\nSHOW WARNINGS is also used following EXPLAIN EXTENDED, to display the\nextra information generated by EXPLAIN when the EXTENDED keyword is\nused. See http://dev.mysql.com/doc/refman/5.5/en/explain-extended.html.\n\nSHOW WARNINGS displays information about the conditions resulting from\nthe most recent statement in the current session that generated\nmessages. It shows nothing if the most recent statement used a table\nand generated no messages. (That is, statements that use a table but\ngenerate no messages clear the message list.) Statements that do not\nuse tables and do not generate messages have no effect on the message\nlist.\n\nThe SHOW COUNT(*) WARNINGS diagnostic statement displays the total\nnumber of errors, warnings, and notes. You can also retrieve this\nnumber from the warning_count system variable:\n\nSHOW COUNT(*) WARNINGS;\nSELECT @@warning_count;\n\nA related diagnostic statement, SHOW ERRORS, shows only error\nconditions (it excludes warnings and notes), and SHOW COUNT(*) ERRORS\nstatement displays the total number of errors. See [HELP SHOW ERRORS].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-warnings.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-warnings.html'),(330,'DROP USER',10,'Syntax:\nDROP USER user [, user] ...\n\nThe DROP USER statement removes one or more MySQL accounts and their\nprivileges. It removes privilege rows for the account from all grant\ntables. An error occurs for accounts that do not exist. To use this\nstatement, you must have the global CREATE USER privilege or the DELETE\nprivilege for the mysql database.\n\nWhen the read_only system variable is enabled, DROP USER requires the\nSUPER privilege, in addition to any other required privileges.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.5/en/account-names.html. For example:\n\nDROP USER \'jeffrey\'@\'localhost\';\n\nIf you specify only the user name part of the account name, a host name\npart of \'%\' is used.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-user.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-user.html'),(331,'STDDEV_POP',16,'Syntax:\nSTDDEV_POP(expr)\n\nReturns the population standard deviation of expr (the square root of\nVAR_POP()). You can also use STD() or STDDEV(), which are equivalent\nbut not standard SQL.\n\nSTDDEV_POP() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(332,'SHOW CHARACTER SET',27,'Syntax:\nSHOW CHARACTER SET\n [LIKE \'pattern\' | WHERE expr]\n\nThe SHOW CHARACTER SET statement shows all available character sets.\nThe LIKE clause, if present, indicates which character set names to\nmatch. The WHERE clause can be given to select rows using more general\nconditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html. For example:\n\nmysql> SHOW CHARACTER SET LIKE \'latin%\';\n+---------+-----------------------------+-------------------+--------+\n| Charset | Description | Default collation | Maxlen |\n+---------+-----------------------------+-------------------+--------+\n| latin1 | cp1252 West European | latin1_swedish_ci | 1 |\n| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1 |\n| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |\n| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |\n+---------+-----------------------------+-------------------+--------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-character-set.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-character-set.html'),(333,'SUBSTRING',38,'Syntax:\nSUBSTRING(str,pos), SUBSTRING(str FROM pos), SUBSTRING(str,pos,len),\nSUBSTRING(str FROM pos FOR len)\n\nThe forms without a len argument return a substring from string str\nstarting at position pos. The forms with a len argument return a\nsubstring len characters long from string str, starting at position\npos. The forms that use FROM are standard SQL syntax. It is also\npossible to use a negative value for pos. In this case, the beginning\nof the substring is pos characters from the end of the string, rather\nthan the beginning. A negative value may be used for pos in any of the\nforms of this function.\n\nFor all forms of SUBSTRING(), the position of the first character in\nthe string from which the substring is to be extracted is reckoned as\n1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT SUBSTRING(\'Quadratically\',5);\n -> \'ratically\'\nmysql> SELECT SUBSTRING(\'foobarbar\' FROM 4);\n -> \'barbar\'\nmysql> SELECT SUBSTRING(\'Quadratically\',5,6);\n -> \'ratica\'\nmysql> SELECT SUBSTRING(\'Sakila\', -3);\n -> \'ila\'\nmysql> SELECT SUBSTRING(\'Sakila\', -5, 3);\n -> \'aki\'\nmysql> SELECT SUBSTRING(\'Sakila\' FROM -4 FOR 2);\n -> \'ki\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(334,'ISEMPTY',37,'IsEmpty(g)\n\nThis function is a placeholder that returns 0 for any valid geometry\nvalue, 1 for any invalid geometry value or NULL.\n\nMySQL does not support GIS EMPTY values such as POINT EMPTY.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(335,'SHOW FUNCTION STATUS',27,'Syntax:\nSHOW FUNCTION STATUS\n [LIKE \'pattern\' | WHERE expr]\n\nThis statement is similar to SHOW PROCEDURE STATUS but for stored\nfunctions. See [HELP SHOW PROCEDURE STATUS].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-function-status.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-function-status.html'),(336,'LTRIM',38,'Syntax:\nLTRIM(str)\n\nReturns the string str with leading space characters removed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT LTRIM(\' barbar\');\n -> \'barbar\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(337,'INTERSECTS',31,'Intersects(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 spatially intersects g2.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(338,'CALL',28,'Syntax:\nCALL sp_name([parameter[,...]])\nCALL sp_name[()]\n\nThe CALL statement invokes a stored procedure that was defined\npreviously with CREATE PROCEDURE.\n\nStored procedures that take no arguments can be invoked without\nparentheses. That is, CALL p() and CALL p are equivalent.\n\nCALL can pass back values to its caller using parameters that are\ndeclared as OUT or INOUT parameters. When the procedure returns, a\nclient program can also obtain the number of rows affected for the\nfinal statement executed within the routine: At the SQL level, call the\nROW_COUNT() function; from the C API, call the mysql_affected_rows()\nfunction.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/call.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/call.html'),(339,'VALUES',14,'Syntax:\nVALUES(col_name)\n\nIn an INSERT ... ON DUPLICATE KEY UPDATE statement, you can use the\nVALUES(col_name) function in the UPDATE clause to refer to column\nvalues from the INSERT portion of the statement. In other words,\nVALUES(col_name) in the UPDATE clause refers to the value of col_name\nthat would be inserted, had no duplicate-key conflict occurred. This\nfunction is especially useful in multiple-row inserts. The VALUES()\nfunction is meaningful only in the ON DUPLICATE KEY UPDATE clause of\nINSERT statements and returns NULL otherwise. See\nhttp://dev.mysql.com/doc/refman/5.5/en/insert-on-duplicate.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> INSERT INTO table (a,b,c) VALUES (1,2,3),(4,5,6)\n -> ON DUPLICATE KEY UPDATE c=VALUES(a)+VALUES(b);\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(340,'MBRDISJOINT',7,'MBRDisjoint(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangles of\nthe two geometries g1 and g2 are disjoint (do not intersect).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(341,'SUBSTRING_INDEX',38,'Syntax:\nSUBSTRING_INDEX(str,delim,count)\n\nReturns the substring from string str before count occurrences of the\ndelimiter delim. If count is positive, everything to the left of the\nfinal delimiter (counting from the left) is returned. If count is\nnegative, everything to the right of the final delimiter (counting from\nthe right) is returned. SUBSTRING_INDEX() performs a case-sensitive\nmatch when searching for delim.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT SUBSTRING_INDEX(\'www.mysql.com\', \'.\', 2);\n -> \'www.mysql\'\nmysql> SELECT SUBSTRING_INDEX(\'www.mysql.com\', \'.\', -2);\n -> \'mysql.com\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(342,'ENCODE',12,'Syntax:\nENCODE(str,pass_str)\n\nEncrypt str using pass_str as the password. The result is a binary\nstring of the same length as str. To decrypt the result, use DECODE().\n\nThe ENCODE() function should no longer be used. If you still need to\nuse ENCODE(), a salt value must be used with it to reduce risk. For\nexample:\n\nENCODE(\'cleartext\', CONCAT(\'my_random_salt\',\'my_secret_password\'))\n\nA new random salt value must be used whenever a password is updated.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(343,'LOOP',24,'Syntax:\n[begin_label:] LOOP\n statement_list\nEND LOOP [end_label]\n\nLOOP implements a simple loop construct, enabling repeated execution of\nthe statement list, which consists of one or more statements, each\nterminated by a semicolon (;) statement delimiter. The statements\nwithin the loop are repeated until the loop is terminated. Usually,\nthis is accomplished with a LEAVE statement. Within a stored function,\nRETURN can also be used, which exits the function entirely.\n\nNeglecting to include a loop-termination statement results in an\ninfinite loop.\n\nA LOOP statement can be labeled. For the rules regarding label use, see\n[HELP labels].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/loop.html\n\n','CREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1: LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN\n ITERATE label1;\n END IF;\n LEAVE label1;\n END LOOP label1;\n SET @x = p1;\nEND;\n','http://dev.mysql.com/doc/refman/5.5/en/loop.html'),(344,'TRUNCATE',3,'Syntax:\nTRUNCATE(X,D)\n\nReturns the number X, truncated to D decimal places. If D is 0, the\nresult has no decimal point or fractional part. D can be negative to\ncause D digits left of the decimal point of the value X to become zero.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT TRUNCATE(1.223,1);\n -> 1.2\nmysql> SELECT TRUNCATE(1.999,1);\n -> 1.9\nmysql> SELECT TRUNCATE(1.999,0);\n -> 1\nmysql> SELECT TRUNCATE(-1.999,1);\n -> -1.9\nmysql> SELECT TRUNCATE(122,-2);\n -> 100\nmysql> SELECT TRUNCATE(10.28*100,0);\n -> 1028\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(345,'TIMESTAMPADD',32,'Syntax:\nTIMESTAMPADD(unit,interval,datetime_expr)\n\nAdds the integer expression interval to the date or datetime expression\ndatetime_expr. The unit for interval is given by the unit argument,\nwhich should be one of the following values: MICROSECOND\n(microseconds), SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER, or\nYEAR.\n\nIt is possible to use FRAC_SECOND in place of MICROSECOND, but\nFRAC_SECOND is deprecated. FRAC_SECOND was removed in MySQL 5.5.3.\n\nThe unit value may be specified using one of keywords as shown, or with\na prefix of SQL_TSI_. For example, DAY and SQL_TSI_DAY both are legal.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIMESTAMPADD(MINUTE,1,\'2003-01-02\');\n -> \'2003-01-02 00:01:00\'\nmysql> SELECT TIMESTAMPADD(WEEK,1,\'2003-01-02\');\n -> \'2003-01-09\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(346,'SHOW',27,'SHOW has many forms that provide information about databases, tables,\ncolumns, or status information about the server. This section describes\nthose following:\n\nSHOW AUTHORS\nSHOW {BINARY | MASTER} LOGS\nSHOW BINLOG EVENTS [IN \'log_name\'] [FROM pos] [LIMIT [offset,] row_count]\nSHOW CHARACTER SET [like_or_where]\nSHOW COLLATION [like_or_where]\nSHOW [FULL] COLUMNS FROM tbl_name [FROM db_name] [like_or_where]\nSHOW CONTRIBUTORS\nSHOW CREATE DATABASE db_name\nSHOW CREATE EVENT event_name\nSHOW CREATE FUNCTION func_name\nSHOW CREATE PROCEDURE proc_name\nSHOW CREATE TABLE tbl_name\nSHOW CREATE TRIGGER trigger_name\nSHOW CREATE VIEW view_name\nSHOW DATABASES [like_or_where]\nSHOW ENGINE engine_name {STATUS | MUTEX}\nSHOW [STORAGE] ENGINES\nSHOW ERRORS [LIMIT [offset,] row_count]\nSHOW EVENTS\nSHOW FUNCTION CODE func_name\nSHOW FUNCTION STATUS [like_or_where]\nSHOW GRANTS FOR user\nSHOW INDEX FROM tbl_name [FROM db_name]\nSHOW MASTER STATUS\nSHOW OPEN TABLES [FROM db_name] [like_or_where]\nSHOW PLUGINS\nSHOW PROCEDURE CODE proc_name\nSHOW PROCEDURE STATUS [like_or_where]\nSHOW PRIVILEGES\nSHOW [FULL] PROCESSLIST\nSHOW PROFILE [types] [FOR QUERY n] [OFFSET n] [LIMIT n]\nSHOW PROFILES\nSHOW SLAVE HOSTS\nSHOW SLAVE STATUS\nSHOW [GLOBAL | SESSION] STATUS [like_or_where]\nSHOW TABLE STATUS [FROM db_name] [like_or_where]\nSHOW [FULL] TABLES [FROM db_name] [like_or_where]\nSHOW TRIGGERS [FROM db_name] [like_or_where]\nSHOW [GLOBAL | SESSION] VARIABLES [like_or_where]\nSHOW WARNINGS [LIMIT [offset,] row_count]\n\nlike_or_where:\n LIKE \'pattern\'\n | WHERE expr\n\nIf the syntax for a given SHOW statement includes a LIKE \'pattern\'\npart, \'pattern\' is a string that can contain the SQL \"%\" and \"_\"\nwildcard characters. The pattern is useful for restricting statement\noutput to matching values.\n\nSeveral SHOW statements also accept a WHERE clause that provides more\nflexibility in specifying which rows to display. See\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show.html'),(347,'GREATEST',20,'Syntax:\nGREATEST(value1,value2,...)\n\nWith two or more arguments, returns the largest (maximum-valued)\nargument. The arguments are compared using the same rules as for\nLEAST().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT GREATEST(2,0);\n -> 2\nmysql> SELECT GREATEST(34.0,3.0,5.0,767.0);\n -> 767.0\nmysql> SELECT GREATEST(\'B\',\'A\',\'C\');\n -> \'C\'\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(348,'SHOW VARIABLES',27,'Syntax:\nSHOW [GLOBAL | SESSION] VARIABLES\n [LIKE \'pattern\' | WHERE expr]\n\nSHOW VARIABLES shows the values of MySQL system variables (see\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html).\nThis statement does not require any privilege. It requires only the\nability to connect to the server.\n\nSystem variable information is also available from these sources:\n\no The GLOBAL_VARIABLES and SESSION_VARIABLES tables. See\n http://dev.mysql.com/doc/refman/5.5/en/variables-table.html.\n\no The mysqladmin variables command. See\n http://dev.mysql.com/doc/refman/5.5/en/mysqladmin.html.\n\nFor SHOW VARIABLES, a LIKE clause, if present, indicates which variable\nnames to match. A WHERE clause can be given to select rows using more\ngeneral conditions, as discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html.\n\nSHOW VARIABLES accepts an optional GLOBAL or SESSION variable scope\nmodifier:\n\no With a GLOBAL modifier, the statement displays global system variable\n values. These are the values used to initialize the corresponding\n session variables for new connections to MySQL. As of MySQL 5.5.3, if\n a variable has no global value, no value is displayed. Before 5.5.3,\n the session value is displayed.\n\no With a SESSION modifier, the statement displays the system varaible\n values that are in effect for the current connection. If a variable\n has no session value, the global value is displayed. LOCAL is a\n synonym for SESSION.\n\no If no modifier is present, the default is SESSION.\n\nThe scope for each system variable is listed at\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nSHOW VARIABLES is subject to a version-dependent display-width limit.\nFor variables with very long values that are not completely displayed,\nuse SELECT as a workaround. For example:\n\nSELECT @@GLOBAL.innodb_data_file_path;\n\nMost system variables can be set at server startup (read-only variables\nsuch as version_comment are exceptions). Many can be changed at runtime\nwith the SET statement. See\nhttp://dev.mysql.com/doc/refman/5.5/en/using-system-variables.html, and\n[HELP SET].\nWith a LIKE clause, the statement displays only rows for those\nvariables with names that match the pattern. To obtain the row for a\nspecific variable, use a LIKE clause as shown:\n\nSHOW VARIABLES LIKE \'max_join_size\';\nSHOW SESSION VARIABLES LIKE \'max_join_size\';\n\nTo get a list of variables whose name match a pattern, use the \"%\"\nwildcard character in a LIKE clause:\n\nSHOW VARIABLES LIKE \'%size%\';\nSHOW GLOBAL VARIABLES LIKE \'%size%\';\n\nWildcard characters can be used in any position within the pattern to\nbe matched. Strictly speaking, because \"_\" is a wildcard that matches\nany single character, you should escape it as \"\\_\" to match it\nliterally. In practice, this is rarely necessary.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-variables.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-variables.html'),(349,'BINLOG',27,'Syntax:\nBINLOG \'str\'\n\nBINLOG is an internal-use statement. It is generated by the mysqlbinlog\nprogram as the printable representation of certain events in binary log\nfiles. (See http://dev.mysql.com/doc/refman/5.5/en/mysqlbinlog.html.)\nThe \'str\' value is a base 64-encoded string the that server decodes to\ndetermine the data change indicated by the corresponding event. This\nstatement requires the SUPER privilege.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/binlog.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/binlog.html'),(350,'BIT_AND',16,'Syntax:\nBIT_AND(expr)\n\nReturns the bitwise AND of all bits in expr. The calculation is\nperformed with 64-bit (BIGINT) precision.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(351,'SECOND',32,'Syntax:\nSECOND(time)\n\nReturns the second for time, in the range 0 to 59.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT SECOND(\'10:05:03\');\n -> 3\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(352,'AND',15,'Syntax:\nAND, &&\n\nLogical AND. Evaluates to 1 if all operands are nonzero and not NULL,\nto 0 if one or more operands are 0, otherwise NULL is returned.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html\n\n','mysql> SELECT 1 AND 1;\n -> 1\nmysql> SELECT 1 AND 0;\n -> 0\nmysql> SELECT 1 AND NULL;\n -> NULL\nmysql> SELECT 0 AND NULL;\n -> 0\nmysql> SELECT NULL AND 0;\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html'),(353,'ATAN2',3,'Syntax:\nATAN(Y,X), ATAN2(Y,X)\n\nReturns the arc tangent of the two variables X and Y. It is similar to\ncalculating the arc tangent of Y / X, except that the signs of both\narguments are used to determine the quadrant of the result.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ATAN(-2,2);\n -> -0.78539816339745\nmysql> SELECT ATAN2(PI(),0);\n -> 1.5707963267949\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(354,'MBRCONTAINS',7,'MBRContains(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangle of g1\ncontains the minimum bounding rectangle of g2. This tests the opposite\nrelationship as MBRWithin().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','mysql> SET @g1 = GeomFromText(\'Polygon((0 0,0 3,3 3,3 0,0 0))\');\nmysql> SET @g2 = GeomFromText(\'Point(1 1)\');\nmysql> SELECT MBRContains(@g1,@g2), MBRWithin(@g2,@g1);\n+----------------------+--------------------+\n| MBRContains(@g1,@g2) | MBRWithin(@g2,@g1) |\n+----------------------+--------------------+\n| 1 | 1 |\n+----------------------+--------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(355,'HOUR',32,'Syntax:\nHOUR(time)\n\nReturns the hour for time. The range of the return value is 0 to 23 for\ntime-of-day values. However, the range of TIME values actually is much\nlarger, so HOUR can return values greater than 23.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT HOUR(\'10:05:03\');\n -> 10\nmysql> SELECT HOUR(\'272:59:59\');\n -> 272\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(356,'SELECT',28,'Syntax:\nSELECT\n [ALL | DISTINCT | DISTINCTROW ]\n [HIGH_PRIORITY]\n [STRAIGHT_JOIN]\n [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]\n [SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]\n select_expr [, select_expr ...]\n [FROM table_references\n [WHERE where_condition]\n [GROUP BY {col_name | expr | position}\n [ASC | DESC], ... [WITH ROLLUP]]\n [HAVING where_condition]\n [ORDER BY {col_name | expr | position}\n [ASC | DESC], ...]\n [LIMIT {[offset,] row_count | row_count OFFSET offset}]\n [PROCEDURE procedure_name(argument_list)]\n [INTO OUTFILE \'file_name\'\n [CHARACTER SET charset_name]\n export_options\n | INTO DUMPFILE \'file_name\'\n | INTO var_name [, var_name]]\n [FOR UPDATE | LOCK IN SHARE MODE]]\n\nSELECT is used to retrieve rows selected from one or more tables, and\ncan include UNION statements and subqueries. See [HELP UNION], and\nhttp://dev.mysql.com/doc/refman/5.5/en/subqueries.html.\n\nThe most commonly used clauses of SELECT statements are these:\n\no Each select_expr indicates a column that you want to retrieve. There\n must be at least one select_expr.\n\no table_references indicates the table or tables from which to retrieve\n rows. Its syntax is described in [HELP JOIN].\n\no The WHERE clause, if given, indicates the condition or conditions\n that rows must satisfy to be selected. where_condition is an\n expression that evaluates to true for each row to be selected. The\n statement selects all rows if there is no WHERE clause.\n\n In the WHERE expression, you can use any of the functions and\n operators that MySQL supports, except for aggregate (summary)\n functions. See\n http://dev.mysql.com/doc/refman/5.5/en/expressions.html, and\n http://dev.mysql.com/doc/refman/5.5/en/functions.html.\n\nSELECT can also be used to retrieve rows computed without reference to\nany table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/select.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/select.html'),(357,'COT',3,'Syntax:\nCOT(X)\n\nReturns the cotangent of X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT COT(12);\n -> -1.5726734063977\nmysql> SELECT COT(0);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(358,'SHOW CREATE EVENT',27,'Syntax:\nSHOW CREATE EVENT event_name\n\nThis statement displays the CREATE EVENT statement needed to re-create\na given event. It requires the EVENT privilege for the database from\nwhich the event is to be shown. For example (using the same event\ne_daily defined and then altered in [HELP SHOW EVENTS]):\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-event.html\n\n','mysql> SHOW CREATE EVENT test.e_daily\\G\n*************************** 1. row ***************************\n Event: e_daily\n sql_mode:\n time_zone: SYSTEM\n Create Event: CREATE EVENT `e_daily`\n ON SCHEDULE EVERY 1 DAY\n STARTS CURRENT_TIMESTAMP + INTERVAL 6 HOUR\n ON COMPLETION NOT PRESERVE\n ENABLE\n COMMENT \'Saves total number of sessions then\n clears the table each day\'\n DO BEGIN\n INSERT INTO site_activity.totals (time, total)\n SELECT CURRENT_TIMESTAMP, COUNT(*)\n FROM site_activity.sessions;\n DELETE FROM site_activity.sessions;\n END\ncharacter_set_client: latin1\ncollation_connection: latin1_swedish_ci\n Database Collation: latin1_swedish_ci\n','http://dev.mysql.com/doc/refman/5.5/en/show-create-event.html'),(359,'OR',15,'Syntax:\nOR, ||\n\nLogical OR. When both operands are non-NULL, the result is 1 if any\noperand is nonzero, and 0 otherwise. With a NULL operand, the result is\n1 if the other operand is nonzero, and NULL otherwise. If both operands\nare NULL, the result is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html\n\n','mysql> SELECT 1 OR 1;\n -> 1\nmysql> SELECT 1 OR 0;\n -> 1\nmysql> SELECT 0 OR 0;\n -> 0\nmysql> SELECT 0 OR NULL;\n -> NULL\nmysql> SELECT 1 OR NULL;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/logical-operators.html'),(360,'LOAD_FILE',38,'Syntax:\nLOAD_FILE(file_name)\n\nReads the file and returns the file contents as a string. To use this\nfunction, the file must be located on the server host, you must specify\nthe full path name to the file, and you must have the FILE privilege.\nThe file must be readable by all and its size less than\nmax_allowed_packet bytes. If the secure_file_priv system variable is\nset to a nonempty directory name, the file to be loaded must be located\nin that directory.\n\nIf the file does not exist or cannot be read because one of the\npreceding conditions is not satisfied, the function returns NULL.\n\nThe character_set_filesystem system variable controls interpretation of\nfile names that are given as literal strings.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> UPDATE t\n SET blob_col=LOAD_FILE(\'/tmp/picture\')\n WHERE id=1;\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(361,'GROUP_CONCAT',16,'Syntax:\nGROUP_CONCAT(expr)\n\nThis function returns a string result with the concatenated non-NULL\nvalues from a group. It returns NULL if there are no non-NULL values.\nThe full syntax is as follows:\n\nGROUP_CONCAT([DISTINCT] expr [,expr ...]\n [ORDER BY {unsigned_integer | col_name | expr}\n [ASC | DESC] [,col_name ...]]\n [SEPARATOR str_val])\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT student_name,\n -> GROUP_CONCAT(test_score)\n -> FROM student\n -> GROUP BY student_name;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(362,'POINTFROMTEXT',4,'PointFromText(wkt[,srid])\n\nConstructs a Point value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(363,'DATE_FORMAT',32,'Syntax:\nDATE_FORMAT(date,format)\n\nFormats the date value according to the format string.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DATE_FORMAT(\'2009-10-04 22:23:00\', \'%W %M %Y\');\n -> \'Sunday October 2009\'\nmysql> SELECT DATE_FORMAT(\'2007-10-04 22:23:00\', \'%H:%i:%s\');\n -> \'22:23:00\'\nmysql> SELECT DATE_FORMAT(\'1900-10-04 22:23:00\',\n -> \'%D %y %a %d %m %b %j\');\n -> \'4th 00 Thu 04 10 Oct 277\'\nmysql> SELECT DATE_FORMAT(\'1997-10-04 22:23:00\',\n -> \'%H %k %I %r %T %S %w\');\n -> \'22 22 10 10:23:00 PM 22:23:00 00 6\'\nmysql> SELECT DATE_FORMAT(\'1999-01-01\', \'%X %V\');\n -> \'1998 52\'\nmysql> SELECT DATE_FORMAT(\'2006-06-00\', \'%d\');\n -> \'00\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(364,'BENCHMARK',17,'Syntax:\nBENCHMARK(count,expr)\n\nThe BENCHMARK() function executes the expression expr repeatedly count\ntimes. It may be used to time how quickly MySQL processes the\nexpression. The result value is always 0. The intended use is from\nwithin the mysql client, which reports query execution times:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT BENCHMARK(1000000,ENCODE(\'hello\',\'goodbye\'));\n+----------------------------------------------+\n| BENCHMARK(1000000,ENCODE(\'hello\',\'goodbye\')) |\n+----------------------------------------------+\n| 0 |\n+----------------------------------------------+\n1 row in set (4.74 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(365,'YEAR',32,'Syntax:\nYEAR(date)\n\nReturns the year for date, in the range 1000 to 9999, or 0 for the\n\"zero\" date.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT YEAR(\'1987-01-01\');\n -> 1987\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(366,'SHOW ENGINE',27,'Syntax:\nSHOW ENGINE engine_name {STATUS | MUTEX}\n\nSHOW ENGINE displays operational information about a storage engine. It\nrequires the PROCESS privilege. The statement has these variants:\n\nSHOW ENGINE INNODB STATUS\nSHOW ENGINE INNODB MUTEX\nSHOW ENGINE {NDB | NDBCLUSTER} STATUS\nSHOW ENGINE PERFORMANCE_SCHEMA STATUS\n\nSHOW ENGINE INNODB STATUS displays extensive information from the\nstandard InnoDB Monitor about the state of the InnoDB storage engine.\nFor information about the standard monitor and other InnoDB Monitors\nthat provide information about InnoDB processing, see\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-monitors.html.\n\nSHOW ENGINE INNODB MUTEX displays InnoDB mutex and rw-lock statistics.\nStatement output has the following columns:\n\no Type\n\n Always InnoDB.\n\no Name\n\n The source file where the mutex is implemented, and the line number\n in the file where the mutex is created. The line number is specific\n to your version of MySQL.\n\no Status\n\n The mutex status. This field displays several values if UNIV_DEBUG\n was defined at MySQL compilation time (for example, in include/univ.i\n in the InnoDB part of the MySQL source tree). If UNIV_DEBUG was not\n defined, the statement displays only the os_waits value. In the\n latter case (without UNIV_DEBUG), the information on which the output\n is based is insufficient to distinguish regular mutexes and mutexes\n that protect rw-locks (which permit multiple readers or a single\n writer). Consequently, the output may appear to contain multiple rows\n for the same mutex.\n\n o count indicates how many times the mutex was requested.\n\n o spin_waits indicates how many times the spinlock had to run.\n\n o spin_rounds indicates the number of spinlock rounds. (spin_rounds\n divided by spin_waits provides the average round count.)\n\n o os_waits indicates the number of operating system waits. This\n occurs when the spinlock did not work (the mutex was not locked\n during the spinlock and it was necessary to yield to the operating\n system and wait).\n\n o os_yields indicates the number of times a thread trying to lock a\n mutex gave up its timeslice and yielded to the operating system (on\n the presumption that permitting other threads to run will free the\n mutex so that it can be locked).\n\n o os_wait_times indicates the amount of time (in ms) spent in\n operating system waits. In MySQL 5.5 timing is disabled and this\n value is always 0.\n\nAs of MySQL 5.5, SHOW ENGINE INNODB MUTEX skips the mutexes and\nrw-locks of buffer pool blocks, as the amount of output can be\noverwhelming on systems with a large buffer pool. (There is one mutex\nand one rw-lock in each 16K buffer pool block, and there are 65,536\nblocks per gigabyte.) SHOW ENGINE INNODB MUTEX also does not list any\nmutexes or rw-locks that have never been waited on (os_waits=0). Thus,\nSHOW ENGINE INNODB MUTEX only displays information about mutexes and\nrw-locks outside of the buffer pool that have caused at least one\nOS-level wait.\n\nSHOW ENGINE INNODB MUTEX information can be used to diagnose system\nproblems. For example, large values of spin_waits and spin_rounds may\nindicate scalability problems.\n\nUse SHOW ENGINE PERFORMANCE_SCHEMA STATUS to inspect the internal\noperation of the Performance Schema code:\n\nmysql> SHOW ENGINE PERFORMANCE_SCHEMA STATUS\\G\n...\n*************************** 3. row ***************************\n Type: performance_schema\n Name: events_waits_history.row_size\nStatus: 76\n*************************** 4. row ***************************\n Type: performance_schema\n Name: events_waits_history.row_count\nStatus: 10000\n*************************** 5. row ***************************\n Type: performance_schema\n Name: events_waits_history.memory\nStatus: 760000\n...\n*************************** 57. row ***************************\n Type: performance_schema\n Name: performance_schema.memory\nStatus: 26459600\n...\n\nThis statement is intended to help the DBA understand the effects that\ndifferent Performance Schema options have on memory requirements.\n\nName values consist of two parts, which name an internal buffer and a\nbuffer attribute, respectively. Interpret buffer names as follows:\n\no An internal buffer that is not exposed as a table is named within\n parentheses. Examples: (pfs_cond_class).row_size,\n (pfs_mutex_class).memory.\n\no An internal buffer that is exposed as a table in the\n performance_schema database is named after the table, without\n parentheses. Examples: events_waits_history.row_size,\n mutex_instances.row_count.\n\no A value that applies to the Performance Schema as a whole begins with\n performance_schema. Example: performance_schema.memory.\n\nBuffer attributes have these meanings:\n\no row_size is the size of the internal record used by the\n implementation, such as the size of a row in a table. row_size values\n cannot be changed.\n\no row_count is the number of internal records, such as the number of\n rows in a table. row_count values can be changed using Performance\n Schema configuration options.\n\no For a table, tbl_name.memory is the product of row_size and\n row_count. For the Performance Schema as a whole,\n performance_schema.memory is the sum of all the memory used (the sum\n of all other memory values).\n\nIn some cases, there is a direct relationship between a Performance\nSchema configuration parameter and a SHOW ENGINE value. For example,\nevents_waits_history_long.row_count corresponds to\nperformance_schema_events_waits_history_long_size. In other cases, the\nrelationship is more complex. For example,\nevents_waits_history.row_count corresponds to\nperformance_schema_events_waits_history_size (the number of rows per\nthread) multiplied by performance_schema_max_thread_instances ( the\nnumber of threads).\n\nIf the server has the NDBCLUSTER storage engine enabled, SHOW ENGINE\nNDB STATUS displays cluster status information such as the number of\nconnected data nodes, the cluster connectstring, and cluster binary log\nepochs, as well as counts of various Cluster API objects created by the\nMySQL Server when connected to the cluster. Sample output from this\nstatement is shown here:\n\nmysql> SHOW ENGINE NDB STATUS;\n+------------+-----------------------+--------------------------------------------------+\n| Type | Name | Status |\n+------------+-----------------------+--------------------------------------------------+\n| ndbcluster | connection | cluster_node_id=7,\n connected_host=192.168.0.103, connected_port=1186, number_of_data_nodes=4,\n number_of_ready_data_nodes=3, connect_count=0 |\n| ndbcluster | NdbTransaction | created=6, free=0, sizeof=212 |\n| ndbcluster | NdbOperation | created=8, free=8, sizeof=660 |\n| ndbcluster | NdbIndexScanOperation | created=1, free=1, sizeof=744 |\n| ndbcluster | NdbIndexOperation | created=0, free=0, sizeof=664 |\n| ndbcluster | NdbRecAttr | created=1285, free=1285, sizeof=60 |\n| ndbcluster | NdbApiSignal | created=16, free=16, sizeof=136 |\n| ndbcluster | NdbLabel | created=0, free=0, sizeof=196 |\n| ndbcluster | NdbBranch | created=0, free=0, sizeof=24 |\n| ndbcluster | NdbSubroutine | created=0, free=0, sizeof=68 |\n| ndbcluster | NdbCall | created=0, free=0, sizeof=16 |\n| ndbcluster | NdbBlob | created=1, free=1, sizeof=264 |\n| ndbcluster | NdbReceiver | created=4, free=0, sizeof=68 |\n| ndbcluster | binlog | latest_epoch=155467, latest_trans_epoch=148126,\n latest_received_binlog_epoch=0, latest_handled_binlog_epoch=0,\n latest_applied_binlog_epoch=0 |\n+------------+-----------------------+--------------------------------------------------+\n\nThe rows with connection and binlog in the Name column were added to\nthe output of this statement in MySQL 5.1. The Status column in each of\nthese rows provides information about the MySQL server\'s connection to\nthe cluster and about the cluster binary log\'s status, respectively.\nThe Status information is in the form of comma-delimited set of\nname/value pairs.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-engine.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-engine.html'),(367,'NAME_CONST',14,'Syntax:\nNAME_CONST(name,value)\n\nReturns the given value. When used to produce a result set column,\nNAME_CONST() causes the column to have the given name. The arguments\nshould be constants.\n\nmysql> SELECT NAME_CONST(\'myname\', 14);\n+--------+\n| myname |\n+--------+\n| 14 |\n+--------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(368,'RELEASE_LOCK',14,'Syntax:\nRELEASE_LOCK(str)\n\nReleases the lock named by the string str that was obtained with\nGET_LOCK(). Returns 1 if the lock was released, 0 if the lock was not\nestablished by this thread (in which case the lock is not released),\nand NULL if the named lock did not exist. The lock does not exist if it\nwas never obtained by a call to GET_LOCK() or if it has previously been\nreleased.\n\nThe DO statement is convenient to use with RELEASE_LOCK(). See [HELP\nDO].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(369,'IS NULL',20,'Syntax:\nIS NULL\n\nTests whether a value is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 IS NULL, 0 IS NULL, NULL IS NULL;\n -> 0, 0, 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(370,'CONVERT_TZ',32,'Syntax:\nCONVERT_TZ(dt,from_tz,to_tz)\n\nCONVERT_TZ() converts a datetime value dt from the time zone given by\nfrom_tz to the time zone given by to_tz and returns the resulting\nvalue. Time zones are specified as described in\nhttp://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html. This\nfunction returns NULL if the arguments are invalid.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT CONVERT_TZ(\'2004-01-01 12:00:00\',\'GMT\',\'MET\');\n -> \'2004-01-01 13:00:00\'\nmysql> SELECT CONVERT_TZ(\'2004-01-01 12:00:00\',\'+00:00\',\'+10:00\');\n -> \'2004-01-01 22:00:00\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(371,'TIME_TO_SEC',32,'Syntax:\nTIME_TO_SEC(time)\n\nReturns the time argument, converted to seconds.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIME_TO_SEC(\'22:23:00\');\n -> 80580\nmysql> SELECT TIME_TO_SEC(\'00:39:38\');\n -> 2378\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(372,'WEEKDAY',32,'Syntax:\nWEEKDAY(date)\n\nReturns the weekday index for date (0 = Monday, 1 = Tuesday, ... 6 =\nSunday).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT WEEKDAY(\'2008-02-03 22:23:00\');\n -> 6\nmysql> SELECT WEEKDAY(\'2007-11-06\');\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(373,'EXPORT_SET',38,'Syntax:\nEXPORT_SET(bits,on,off[,separator[,number_of_bits]])\n\nReturns a string such that for every bit set in the value bits, you get\nan on string and for every bit not set in the value, you get an off\nstring. Bits in bits are examined from right to left (from low-order to\nhigh-order bits). Strings are added to the result from left to right,\nseparated by the separator string (the default being the comma\ncharacter \",\"). The number of bits examined is given by number_of_bits,\nwhich has a default of 64 if not specified. number_of_bits is silently\nclipped to 64 if larger than 64. It is treated as an unsigned integer,\nso a value of −1 is effectively the same as 64.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT EXPORT_SET(5,\'Y\',\'N\',\',\',4);\n -> \'Y,N,Y,N\'\nmysql> SELECT EXPORT_SET(6,\'1\',\'0\',\',\',10);\n -> \'0,1,1,0,0,0,0,0,0,0\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(374,'ALTER SERVER',40,'Syntax:\nALTER SERVER server_name\n OPTIONS (option [, option] ...)\n\nAlters the server information for server_name, adjusting any of the\noptions permitted in the CREATE SERVER statement. The corresponding\nfields in the mysql.servers table are updated accordingly. This\nstatement requires the SUPER privilege.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-server.html\n\n','ALTER SERVER s OPTIONS (USER \'sally\');\n','http://dev.mysql.com/doc/refman/5.5/en/alter-server.html'),(375,'RESIGNAL',24,'Syntax:\nRESIGNAL [condition_value]\n [SET signal_information_item\n [, signal_information_item] ...]\n\ncondition_value:\n SQLSTATE [VALUE] sqlstate_value\n | condition_name\n\nsignal_information_item:\n condition_information_item_name = simple_value_specification\n\ncondition_information_item_name:\n CLASS_ORIGIN\n | SUBCLASS_ORIGIN\n | MESSAGE_TEXT\n | MYSQL_ERRNO\n | CONSTRAINT_CATALOG\n | CONSTRAINT_SCHEMA\n | CONSTRAINT_NAME\n | CATALOG_NAME\n | SCHEMA_NAME\n | TABLE_NAME\n | COLUMN_NAME\n | CURSOR_NAME\n\ncondition_name, simple_value_specification:\n (see following discussion)\n\nRESIGNAL passes on the error condition information that is available\nduring execution of a condition handler within a compound statement\ninside a stored procedure or function, trigger, or event. RESIGNAL may\nchange some or all information before passing it on. RESIGNAL is\nrelated to SIGNAL, but instead of originating a condition as SIGNAL\ndoes, RESIGNAL relays existing condition information, possibly after\nmodifying it.\n\nRESIGNAL makes it possible to both handle an error and return the error\ninformation. Otherwise, by executing an SQL statement within the\nhandler, information that caused the handler\'s activation is destroyed.\nRESIGNAL also can make some procedures shorter if a given handler can\nhandle part of a situation, then pass the condition \"up the line\" to\nanother handler.\n\nNo special privileges are required to execute the RESIGNAL statement.\n\nAll forms of RESIGNAL require that the current context be a condition\nhandler. Otherwise, RESIGNAL is illegal and a RESIGNAL when handler not\nactive error occurs.\n\nFor condition_value and signal_information_item, the definitions and\nrules are the same for RESIGNAL as for SIGNAL. For example, the\ncondition_value can be an SQLSTATE value, and the value can indicate\nerrors, warnings, or \"not found.\" For additional information, see [HELP\nSIGNAL].\n\nThe RESIGNAL statement takes condition_value and SET clauses, both of\nwhich are optional. This leads to several possible uses:\n\no RESIGNAL alone:\n\nRESIGNAL;\n\no RESIGNAL with new signal information:\n\nRESIGNAL SET signal_information_item [, signal_information_item] ...;\n\no RESIGNAL with a condition value and possibly new signal information:\n\nRESIGNAL condition_value\n [SET signal_information_item [, signal_information_item] ...];\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/resignal.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/resignal.html'),(376,'TIME FUNCTION',32,'Syntax:\nTIME(expr)\n\nExtracts the time part of the time or datetime expression expr and\nreturns it as a string.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT TIME(\'2003-12-31 01:02:03\');\n -> \'01:02:03\'\nmysql> SELECT TIME(\'2003-12-31 01:02:03.000123\');\n -> \'01:02:03.000123\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(377,'DATE_ADD',32,'Syntax:\nDATE_ADD(date,INTERVAL expr unit), DATE_SUB(date,INTERVAL expr unit)\n\nThese functions perform date arithmetic. The date argument specifies\nthe starting date or datetime value. expr is an expression specifying\nthe interval value to be added or subtracted from the starting date.\nexpr is a string; it may start with a \"-\" for negative intervals. unit\nis a keyword indicating the units in which the expression should be\ninterpreted.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT \'2008-12-31 23:59:59\' + INTERVAL 1 SECOND;\n -> \'2009-01-01 00:00:00\'\nmysql> SELECT INTERVAL 1 DAY + \'2008-12-31\';\n -> \'2009-01-01\'\nmysql> SELECT \'2005-01-01\' - INTERVAL 1 SECOND;\n -> \'2004-12-31 23:59:59\'\nmysql> SELECT DATE_ADD(\'2000-12-31 23:59:59\',\n -> INTERVAL 1 SECOND);\n -> \'2001-01-01 00:00:00\'\nmysql> SELECT DATE_ADD(\'2010-12-31 23:59:59\',\n -> INTERVAL 1 DAY);\n -> \'2011-01-01 23:59:59\'\nmysql> SELECT DATE_ADD(\'2100-12-31 23:59:59\',\n -> INTERVAL \'1:1\' MINUTE_SECOND);\n -> \'2101-01-01 00:01:00\'\nmysql> SELECT DATE_SUB(\'2005-01-01 00:00:00\',\n -> INTERVAL \'1 1:1:1\' DAY_SECOND);\n -> \'2004-12-30 22:58:59\'\nmysql> SELECT DATE_ADD(\'1900-01-01 00:00:00\',\n -> INTERVAL \'-1 10\' DAY_HOUR);\n -> \'1899-12-30 14:00:00\'\nmysql> SELECT DATE_SUB(\'1998-01-02\', INTERVAL 31 DAY);\n -> \'1997-12-02\'\nmysql> SELECT DATE_ADD(\'1992-12-31 23:59:59.000002\',\n -> INTERVAL \'1.999999\' SECOND_MICROSECOND);\n -> \'1993-01-01 00:00:01.000001\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(378,'CAST',38,'Syntax:\nCAST(expr AS type)\n\nThe CAST() function takes an expression of any type and produces a\nresult value of a specified type, similar to CONVERT(). See the\ndescription of CONVERT() for more information.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/cast-functions.html'),(379,'SOUNDS LIKE',38,'Syntax:\nexpr1 SOUNDS LIKE expr2\n\nThis is the same as SOUNDEX(expr1) = SOUNDEX(expr2).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(380,'PERIOD_DIFF',32,'Syntax:\nPERIOD_DIFF(P1,P2)\n\nReturns the number of months between periods P1 and P2. P1 and P2\nshould be in the format YYMM or YYYYMM. Note that the period arguments\nP1 and P2 are not date values.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT PERIOD_DIFF(200802,200703);\n -> 11\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(381,'LIKE',38,'Syntax:\nexpr LIKE pat [ESCAPE \'escape_char\']\n\nPattern matching using SQL simple regular expression comparison.\nReturns 1 (TRUE) or 0 (FALSE). If either expr or pat is NULL, the\nresult is NULL.\n\nThe pattern need not be a literal string. For example, it can be\nspecified as a string expression or table column.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html\n\n','mysql> SELECT \'David!\' LIKE \'David_\';\n -> 1\nmysql> SELECT \'David!\' LIKE \'%D%v%\';\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html'),(382,'MULTIPOINT',25,'MultiPoint(pt1,pt2,...)\n\nConstructs a MultiPoint value using Point or WKB Point arguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(383,'>>',19,'Syntax:\n>>\n\nShifts a longlong (BIGINT) number to the right.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 4 >> 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(384,'FETCH',24,'Syntax:\nFETCH [[NEXT] FROM] cursor_name INTO var_name [, var_name] ...\n\nThis statement fetches the next row for the SELECT statement associated\nwith the specified cursor (which must be open), and advances the cursor\npointer. If a row exists, the fetched columns are stored in the named\nvariables. The number of columns retrieved by the SELECT statement must\nmatch the number of output variables specified in the FETCH statement.\n\nIf no more rows are available, a No Data condition occurs with SQLSTATE\nvalue \'02000\'. To detect this condition, you can set up a handler for\nit (or for a NOT FOUND condition). For an example, see\nhttp://dev.mysql.com/doc/refman/5.5/en/cursors.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/fetch.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/fetch.html'),(385,'AVG',16,'Syntax:\nAVG([DISTINCT] expr)\n\nReturns the average value of expr. The DISTINCT option can be used to\nreturn the average of the distinct values of expr.\n\nAVG() returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT student_name, AVG(test_score)\n -> FROM student\n -> GROUP BY student_name;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(386,'TRUE FALSE',30,'The constants TRUE and FALSE evaluate to 1 and 0, respectively. The\nconstant names can be written in any lettercase.\n\nmysql> SELECT TRUE, true, FALSE, false;\n -> 1, 1, 0, 0\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/boolean-literals.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/boolean-literals.html'),(387,'MBRWITHIN',7,'MBRWithin(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangle of g1\nis within the minimum bounding rectangle of g2. This tests the opposite\nrelationship as MBRContains().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html\n\n','mysql> SET @g1 = GeomFromText(\'Polygon((0 0,0 3,3 3,3 0,0 0))\');\nmysql> SET @g2 = GeomFromText(\'Polygon((0 0,0 5,5 5,5 0,0 0))\');\nmysql> SELECT MBRWithin(@g1,@g2), MBRWithin(@g2,@g1);\n+--------------------+--------------------+\n| MBRWithin(@g1,@g2) | MBRWithin(@g2,@g1) |\n+--------------------+--------------------+\n| 1 | 0 |\n+--------------------+--------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html'),(388,'SESSION_USER',17,'Syntax:\nSESSION_USER()\n\nSESSION_USER() is a synonym for USER().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(389,'IN',20,'Syntax:\nexpr IN (value,...)\n\nReturns 1 if expr is equal to any of the values in the IN list, else\nreturns 0. If all values are constants, they are evaluated according to\nthe type of expr and sorted. The search for the item then is done using\na binary search. This means IN is very quick if the IN value list\nconsists entirely of constants. Otherwise, type conversion takes place\naccording to the rules described in\nhttp://dev.mysql.com/doc/refman/5.5/en/type-conversion.html, but\napplied to all the arguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 2 IN (0,3,5,7);\n -> 0\nmysql> SELECT \'wefwf\' IN (\'wee\',\'wefwf\',\'weg\');\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(390,'QUOTE',38,'Syntax:\nQUOTE(str)\n\nQuotes a string to produce a result that can be used as a properly\nescaped data value in an SQL statement. The string is returned enclosed\nby single quotation marks and with each instance of backslash (\"\\\"),\nsingle quote (\"\'\"), ASCII NUL, and Control+Z preceded by a backslash.\nIf the argument is NULL, the return value is the word \"NULL\" without\nenclosing single quotation marks.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT QUOTE(\'Don\\\'t!\');\n -> \'Don\\\'t!\'\nmysql> SELECT QUOTE(NULL);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(391,'HELP COMMAND',27,'Syntax:\nmysql> help search_string\n\nIf you provide an argument to the help command, mysql uses it as a\nsearch string to access server-side help from the contents of the MySQL\nReference Manual. The proper operation of this command requires that\nthe help tables in the mysql database be initialized with help topic\ninformation (see\nhttp://dev.mysql.com/doc/refman/5.5/en/server-side-help-support.html).\n\nIf there is no match for the search string, the search fails:\n\nmysql> help me\n\nNothing found\nPlease try to run \'help contents\' for a list of all accessible topics\n\nUse help contents to see a list of the help categories:\n\nmysql> help contents\nYou asked for help about help category: \"Contents\"\nFor more information, type \'help <item>\', where <item> is one of the\nfollowing categories:\n Account Management\n Administration\n Data Definition\n Data Manipulation\n Data Types\n Functions\n Functions and Modifiers for Use with GROUP BY\n Geographic Features\n Language Structure\n Plugins\n Storage Engines\n Stored Routines\n Table Maintenance\n Transactions\n Triggers\n\nIf the search string matches multiple items, mysql shows a list of\nmatching topics:\n\nmysql> help logs\nMany help items for your request exist.\nTo make a more specific request, please type \'help <item>\',\nwhere <item> is one of the following topics:\n SHOW\n SHOW BINARY LOGS\n SHOW ENGINE\n SHOW LOGS\n\nUse a topic as the search string to see the help entry for that topic:\n\nmysql> help show binary logs\nName: \'SHOW BINARY LOGS\'\nDescription:\nSyntax:\nSHOW BINARY LOGS\nSHOW MASTER LOGS\n\nLists the binary log files on the server. This statement is used as\npart of the procedure described in [purge-binary-logs], that shows how\nto determine which logs can be purged.\n\nmysql> SHOW BINARY LOGS;\n+---------------+-----------+\n| Log_name | File_size |\n+---------------+-----------+\n| binlog.000015 | 724935 |\n| binlog.000016 | 733481 |\n+---------------+-----------+\n\nThe search string can contain the wildcard characters \"%\" and \"_\".\nThese have the same meaning as for pattern-matching operations\nperformed with the LIKE operator. For example, HELP rep% returns a list\nof topics that begin with rep:\n\nmysql> HELP rep%\nMany help items for your request exist.\nTo make a more specific request, please type \'help <item>\',\nwhere <item> is one of the following\ntopics:\n REPAIR TABLE\n REPEAT FUNCTION\n REPEAT LOOP\n REPLACE\n REPLACE FUNCTION\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mysql-server-side-help.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/mysql-server-side-help.html'),(392,'QUARTER',32,'Syntax:\nQUARTER(date)\n\nReturns the quarter of the year for date, in the range 1 to 4.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT QUARTER(\'2008-04-01\');\n -> 2\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(393,'POSITION',38,'Syntax:\nPOSITION(substr IN str)\n\nPOSITION(substr IN str) is a synonym for LOCATE(substr,str).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(394,'SHOW CREATE FUNCTION',27,'Syntax:\nSHOW CREATE FUNCTION func_name\n\nThis statement is similar to SHOW CREATE PROCEDURE but for stored\nfunctions. See [HELP SHOW CREATE PROCEDURE].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-function.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-create-function.html'),(395,'IS_USED_LOCK',14,'Syntax:\nIS_USED_LOCK(str)\n\nChecks whether the lock named str is in use (that is, locked). If so,\nit returns the connection identifier of the client that holds the lock.\nOtherwise, it returns NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(396,'POLYFROMTEXT',4,'PolyFromText(wkt[,srid]), PolygonFromText(wkt[,srid])\n\nConstructs a Polygon value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(397,'DES_ENCRYPT',12,'Syntax:\nDES_ENCRYPT(str[,{key_num|key_str}])\n\nEncrypts the string with the given key using the Triple-DES algorithm.\n\nThis function works only if MySQL has been configured with SSL support.\nSee http://dev.mysql.com/doc/refman/5.5/en/ssl-connections.html.\n\nThe encryption key to use is chosen based on the second argument to\nDES_ENCRYPT(), if one was given. With no argument, the first key from\nthe DES key file is used. With a key_num argument, the given key number\n(0 to 9) from the DES key file is used. With a key_str argument, the\ngiven key string is used to encrypt str.\n\nThe key file can be specified with the --des-key-file server option.\n\nThe return string is a binary string where the first character is\nCHAR(128 | key_num). If an error occurs, DES_ENCRYPT() returns NULL.\n\nThe 128 is added to make it easier to recognize an encrypted key. If\nyou use a string key, key_num is 127.\n\nThe string length for the result is given by this formula:\n\nnew_len = orig_len + (8 - (orig_len % 8)) + 1\n\nEach line in the DES key file has the following format:\n\nkey_num des_key_str\n\nEach key_num value must be a number in the range from 0 to 9. Lines in\nthe file may be in any order. des_key_str is the string that is used to\nencrypt the message. There should be at least one space between the\nnumber and the key. The first key is the default key that is used if\nyou do not specify any key argument to DES_ENCRYPT().\n\nYou can tell MySQL to read new key values from the key file with the\nFLUSH DES_KEY_FILE statement. This requires the RELOAD privilege.\n\nOne benefit of having a set of default keys is that it gives\napplications a way to check for the existence of encrypted column\nvalues, without giving the end user the right to decrypt those values.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT customer_address FROM customer_table \n > WHERE crypted_credit_card = DES_ENCRYPT(\'credit_card_number\');\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(398,'CEIL',3,'Syntax:\nCEIL(X)\n\nCEIL() is a synonym for CEILING().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(399,'LENGTH',38,'Syntax:\nLENGTH(str)\n\nReturns the length of the string str, measured in bytes. A multibyte\ncharacter counts as multiple bytes. This means that for a string\ncontaining five 2-byte characters, LENGTH() returns 10, whereas\nCHAR_LENGTH() returns 5.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT LENGTH(\'text\');\n -> 4\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(400,'STR_TO_DATE',32,'Syntax:\nSTR_TO_DATE(str,format)\n\nThis is the inverse of the DATE_FORMAT() function. It takes a string\nstr and a format string format. STR_TO_DATE() returns a DATETIME value\nif the format string contains both date and time parts, or a DATE or\nTIME value if the string contains only date or time parts. If the date,\ntime, or datetime value extracted from str is illegal, STR_TO_DATE()\nreturns NULL and produces a warning.\n\nThe server scans str attempting to match format to it. The format\nstring can contain literal characters and format specifiers beginning\nwith %. Literal characters in format must match literally in str.\nFormat specifiers in format must match a date or time part in str. For\nthe specifiers that can be used in format, see the DATE_FORMAT()\nfunction description.\n\nmysql> SELECT STR_TO_DATE(\'01,5,2013\',\'%d,%m,%Y\');\n -> \'2013-05-01\'\nmysql> SELECT STR_TO_DATE(\'May 1, 2013\',\'%M %d,%Y\');\n -> \'2013-05-01\'\n\nScanning starts at the beginning of str and fails if format is found\nnot to match. Extra characters at the end of str are ignored.\n\nmysql> SELECT STR_TO_DATE(\'a09:30:17\',\'a%h:%i:%s\');\n -> \'09:30:17\'\nmysql> SELECT STR_TO_DATE(\'a09:30:17\',\'%h:%i:%s\');\n -> NULL\nmysql> SELECT STR_TO_DATE(\'09:30:17a\',\'%h:%i:%s\');\n -> \'09:30:17\'\n\nUnspecified date or time parts have a value of 0, so incompletely\nspecified values in str produce a result with some or all parts set to\n0:\n\nmysql> SELECT STR_TO_DATE(\'abc\',\'abc\');\n -> \'0000-00-00\'\nmysql> SELECT STR_TO_DATE(\'9\',\'%m\');\n -> \'0000-09-00\'\nmysql> SELECT STR_TO_DATE(\'9\',\'%s\');\n -> \'00:00:09\'\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(401,'Y',11,'Y(p)\n\nReturns the Y-coordinate value for the Point object p as a\ndouble-precision number.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-point-property-functions.html\n\n','mysql> SELECT Y(POINT(56.7, 53.34));\n+-----------------------+\n| Y(POINT(56.7, 53.34)) |\n+-----------------------+\n| 53.34 |\n+-----------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-point-property-functions.html'),(402,'CHECKSUM TABLE',21,'Syntax:\nCHECKSUM TABLE tbl_name [, tbl_name] ... [ QUICK | EXTENDED ]\n\nCHECKSUM TABLE reports a table checksum. During the checksum operation,\nthe table is locked with a read lock for InnoDB and MyISAM. This\nstatement requires the SELECT privilege for the table.\n\nWith QUICK, the live table checksum is reported if it is available, or\nNULL otherwise. This is very fast. A live checksum is enabled by\nspecifying the CHECKSUM=1 table option when you create the table;\ncurrently, this is supported only for MyISAM tables. See [HELP CREATE\nTABLE].\n\nWith EXTENDED, the entire table is read row by row and the checksum is\ncalculated. This can be very slow for large tables.\n\nIf neither QUICK nor EXTENDED is specified, MySQL returns a live\nchecksum if the table storage engine supports it and scans the table\notherwise.\n\nFor a nonexistent table, CHECKSUM TABLE returns NULL and generates a\nwarning.\n\nIn MySQL 5.5, CHECKSUM TABLE returns 0 for partitioned tables unless\nyou include the EXTENDED option. This issue is resolved in MySQL 5.6.\n(Bug #11933226, Bug #60681)\n\nThe checksum value depends on the table row format. If the row format\nchanges, the checksum also changes. For example, the storage format for\nVARCHAR changed between MySQL 4.1 and 5.0, so if a 4.1 table is\nupgraded to MySQL 5.0, the checksum value may change.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/checksum-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/checksum-table.html'),(403,'NUMINTERIORRINGS',2,'NumInteriorRings(poly)\n\nReturns the number of interior rings in the Polygon value poly.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly =\n -> \'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))\';\nmysql> SELECT NumInteriorRings(GeomFromText(@poly));\n+---------------------------------------+\n| NumInteriorRings(GeomFromText(@poly)) |\n+---------------------------------------+\n| 1 |\n+---------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html'),(404,'INTERIORRINGN',2,'InteriorRingN(poly,N)\n\nReturns the N-th interior ring for the Polygon value poly as a\nLineString. Rings are numbered beginning with 1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly =\n -> \'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2 1,1 1))\';\nmysql> SELECT AsText(InteriorRingN(GeomFromText(@poly),1));\n+----------------------------------------------+\n| AsText(InteriorRingN(GeomFromText(@poly),1)) |\n+----------------------------------------------+\n| LINESTRING(1 1,1 2,2 2,2 1,1 1) |\n+----------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html'),(405,'UTC_TIME',32,'Syntax:\nUTC_TIME, UTC_TIME()\n\nReturns the current UTC time as a value in \'HH:MM:SS\' or HHMMSS.uuuuuu\nformat, depending on whether the function is used in a string or\nnumeric context.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT UTC_TIME(), UTC_TIME() + 0;\n -> \'18:07:53\', 180753.000000\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(406,'DROP FUNCTION',40,'The DROP FUNCTION statement is used to drop stored functions and\nuser-defined functions (UDFs):\n\no For information about dropping stored functions, see [HELP DROP\n PROCEDURE].\n\no For information about dropping user-defined functions, see [HELP DROP\n FUNCTION UDF].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-function.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-function.html'),(407,'ALTER EVENT',40,'Syntax:\nALTER\n [DEFINER = { user | CURRENT_USER }]\n EVENT event_name\n [ON SCHEDULE schedule]\n [ON COMPLETION [NOT] PRESERVE]\n [RENAME TO new_event_name]\n [ENABLE | DISABLE | DISABLE ON SLAVE]\n [COMMENT \'comment\']\n [DO event_body]\n\nThe ALTER EVENT statement changes one or more of the characteristics of\nan existing event without the need to drop and recreate it. The syntax\nfor each of the DEFINER, ON SCHEDULE, ON COMPLETION, COMMENT, ENABLE /\nDISABLE, and DO clauses is exactly the same as when used with CREATE\nEVENT. (See [HELP CREATE EVENT].)\n\nAny user can alter an event defined on a database for which that user\nhas the EVENT privilege. When a user executes a successful ALTER EVENT\nstatement, that user becomes the definer for the affected event.\n\nALTER EVENT works only with an existing event:\n\nmysql> ALTER EVENT no_such_event \n > ON SCHEDULE \n > EVERY \'2:3\' DAY_HOUR;\nERROR 1517 (HY000): Unknown event \'no_such_event\'\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-event.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-event.html'),(408,'STDDEV',16,'Syntax:\nSTDDEV(expr)\n\nReturns the population standard deviation of expr. This function is\nprovided for compatibility with Oracle. The standard SQL function\nSTDDEV_POP() can be used instead.\n\nThis function returns NULL if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(409,'DATE_SUB',32,'Syntax:\nDATE_SUB(date,INTERVAL expr unit)\n\nSee the description for DATE_ADD().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(410,'PERIOD_ADD',32,'Syntax:\nPERIOD_ADD(P,N)\n\nAdds N months to period P (in the format YYMM or YYYYMM). Returns a\nvalue in the format YYYYMM. Note that the period argument P is not a\ndate value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT PERIOD_ADD(200801,2);\n -> 200803\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(411,'|',19,'Syntax:\n|\n\nBitwise OR:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT 29 | 15;\n -> 31\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(412,'UUID_SHORT',14,'Syntax:\nUUID_SHORT()\n\nReturns a \"short\" universal identifier as a 64-bit unsigned integer\n(rather than a string-form 128-bit identifier as returned by the UUID()\nfunction).\n\nThe value of UUID_SHORT() is guaranteed to be unique if the following\nconditions hold:\n\no The server_id of the current host is unique among your set of master\n and slave servers\n\no server_id is between 0 and 255\n\no You do not set back your system time for your server between mysqld\n restarts\n\no You do not invoke UUID_SHORT() on average more than 16 million times\n per second between mysqld restarts\n\nThe UUID_SHORT() return value is constructed this way:\n\n (server_id & 255) << 56\n+ (server_startup_time_in_seconds << 24)\n+ incremented_variable++;\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> SELECT UUID_SHORT();\n -> 92395783831158784\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(413,'GEOMFROMTEXT',4,'GeomFromText(wkt[,srid]), GeometryFromText(wkt[,srid])\n\nConstructs a geometry value of any type using its WKT representation\nand SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(414,'RIGHT',38,'Syntax:\nRIGHT(str,len)\n\nReturns the rightmost len characters from the string str, or NULL if\nany argument is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT RIGHT(\'foobarbar\', 4);\n -> \'rbar\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(415,'DATEDIFF',32,'Syntax:\nDATEDIFF(expr1,expr2)\n\nDATEDIFF() returns expr1 − expr2 expressed as a value in days from\none date to the other. expr1 and expr2 are date or date-and-time\nexpressions. Only the date parts of the values are used in the\ncalculation.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DATEDIFF(\'2007-12-31 23:59:59\',\'2007-12-30\');\n -> 1\nmysql> SELECT DATEDIFF(\'2010-11-30 23:59:59\',\'2010-12-31\');\n -> -31\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(416,'DROP TABLESPACE',40,'Syntax:\nDROP TABLESPACE tablespace_name\n ENGINE [=] engine_name\n\nThis statement drops a tablespace that was previously created using\nCREATE TABLESPACE (see [HELP CREATE TABLESPACE]).\n\n*Important*: The tablespace to be dropped must not contain any data\nfiles; in other words, before you can drop a tablespace, you must first\ndrop each of its data files using ALTER TABLESPACE ... DROP DATAFILE\n(see [HELP ALTER TABLESPACE]).\n\nThe ENGINE clause (required) specifies the storage engine used by the\ntablespace. Currently, the only accepted values for engine_name are NDB\nand NDBCLUSTER.\n\nDROP TABLESPACE is useful only with Disk Data storage for MySQL\nCluster. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-tablespace.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-tablespace.html'),(417,'DROP PROCEDURE',40,'Syntax:\nDROP {PROCEDURE | FUNCTION} [IF EXISTS] sp_name\n\nThis statement is used to drop a stored procedure or function. That is,\nthe specified routine is removed from the server. You must have the\nALTER ROUTINE privilege for the routine. (If the\nautomatic_sp_privileges system variable is enabled, that privilege and\nEXECUTE are granted automatically to the routine creator when the\nroutine is created and dropped from the creator when the routine is\ndropped. See\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-routines-privileges.html.\n)\n\nThe IF EXISTS clause is a MySQL extension. It prevents an error from\noccurring if the procedure or function does not exist. A warning is\nproduced that can be viewed with SHOW WARNINGS.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/drop-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/drop-procedure.html'),(418,'CHECK TABLE',21,'Syntax:\nCHECK TABLE tbl_name [, tbl_name] ... [option] ...\n\noption = {\n FOR UPGRADE\n | QUICK\n | FAST\n | MEDIUM\n | EXTENDED\n | CHANGED\n}\n\nCHECK TABLE checks a table or tables for errors. CHECK TABLE works for\nInnoDB, MyISAM, ARCHIVE, and CSV tables. For MyISAM tables, the key\nstatistics are updated as well.\n\nTo check a table, you must have some privilege for it.\n\nCHECK TABLE can also check views for problems, such as tables that are\nreferenced in the view definition that no longer exist.\n\nCHECK TABLE is supported for partitioned tables, and you can use ALTER\nTABLE ... CHECK PARTITION to check one or more partitions; for more\ninformation, see [HELP ALTER TABLE], and\nhttp://dev.mysql.com/doc/refman/5.5/en/partitioning-maintenance.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/check-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/check-table.html'),(419,'BIN',38,'Syntax:\nBIN(N)\n\nReturns a string representation of the binary value of N, where N is a\nlonglong (BIGINT) number. This is equivalent to CONV(N,10,2). Returns\nNULL if N is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT BIN(12);\n -> \'1100\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(420,'INSTALL PLUGIN',5,'Syntax:\nINSTALL PLUGIN plugin_name SONAME \'shared_library_name\'\n\nThis statement installs a server plugin. It requires the INSERT\nprivilege for the mysql.plugin table.\n\nplugin_name is the name of the plugin as defined in the plugin\ndescriptor structure contained in the library file (see\nhttp://dev.mysql.com/doc/refman/5.5/en/plugin-data-structures.html).\nPlugin names are not case sensitive. For maximal compatibility, plugin\nnames should be limited to ASCII letters, digits, and underscore\nbecause they are used in C source files, shell command lines, M4 and\nBourne shell scripts, and SQL environments.\n\nshared_library_name is the name of the shared library that contains the\nplugin code. The name includes the file name extension (for example,\nlibmyplugin.so, libmyplugin.dll, or libmyplugin.dylib).\n\nThe shared library must be located in the plugin directory (the\ndirectory named by the plugin_dir system variable). The library must be\nin the plugin directory itself, not in a subdirectory. By default,\nplugin_dir is the plugin directory under the directory named by the\npkglibdir configuration variable, but it can be changed by setting the\nvalue of plugin_dir at server startup. For example, set its value in a\nmy.cnf file:\n\n[mysqld]\nplugin_dir=/path/to/plugin/directory\n\nIf the value of plugin_dir is a relative path name, it is taken to be\nrelative to the MySQL base directory (the value of the basedir system\nvariable).\n\nINSTALL PLUGIN loads and initializes the plugin code to make the plugin\navailable for use. A plugin is initialized by executing its\ninitialization function, which handles any setup that the plugin must\nperform before it can be used. When the server shuts down, it executes\nthe deinitialization function for each plugin that is loaded so that\nthe plugin has a chance to perform any final cleanup.\n\nINSTALL PLUGIN also registers the plugin by adding a line that\nindicates the plugin name and library file name to the mysql.plugin\ntable. At server startup, the server loads and initializes any plugin\nthat is listed in the mysql.plugin table. This means that a plugin is\ninstalled with INSTALL PLUGIN only once, not every time the server\nstarts. Plugin loading at startup does not occur if the server is\nstarted with the --skip-grant-tables option.\n\nA plugin library can contain multiple plugins. For each of them to be\ninstalled, use a separate INSTALL PLUGIN statement. Each statement\nnames a different plugin, but all of them specify the same library\nname.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/install-plugin.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/install-plugin.html'),(421,'DECLARE CURSOR',24,'Syntax:\nDECLARE cursor_name CURSOR FOR select_statement\n\nThis statement declares a cursor and associates it with a SELECT\nstatement that retrieves the rows to be traversed by the cursor. To\nfetch the rows later, use a FETCH statement. The number of columns\nretrieved by the SELECT statement must match the number of output\nvariables specified in the FETCH statement.\n\nThe SELECT statement cannot have an INTO clause.\n\nCursor declarations must appear before handler declarations and after\nvariable and condition declarations.\n\nA stored program may contain multiple cursor declarations, but each\ncursor declared in a given block must have a unique name. For an\nexample, see http://dev.mysql.com/doc/refman/5.5/en/cursors.html.\n\nFor information available through SHOW statements, it is possible in\nmany cases to obtain equivalent information by using a cursor with an\nINFORMATION_SCHEMA table.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/declare-cursor.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/declare-cursor.html'),(422,'LOAD DATA',28,'Syntax:\nLOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE \'file_name\'\n [REPLACE | IGNORE]\n INTO TABLE tbl_name\n [CHARACTER SET charset_name]\n [{FIELDS | COLUMNS}\n [TERMINATED BY \'string\']\n [[OPTIONALLY] ENCLOSED BY \'char\']\n [ESCAPED BY \'char\']\n ]\n [LINES\n [STARTING BY \'string\']\n [TERMINATED BY \'string\']\n ]\n [IGNORE number {LINES | ROWS}]\n [(col_name_or_user_var,...)]\n [SET col_name = expr,...]\n\nThe LOAD DATA INFILE statement reads rows from a text file into a table\nat a very high speed. LOAD DATA INFILE is the complement of SELECT ...\nINTO OUTFILE. (See\nhttp://dev.mysql.com/doc/refman/5.5/en/select-into.html.) To write data\nfrom a table to a file, use SELECT ... INTO OUTFILE. To read the file\nback into a table, use LOAD DATA INFILE. The syntax of the FIELDS and\nLINES clauses is the same for both statements. Both clauses are\noptional, but FIELDS must precede LINES if both are specified.\n\nYou can also load data files by using the mysqlimport utility; it\noperates by sending a LOAD DATA INFILE statement to the server. The\n--local option causes mysqlimport to read data files from the client\nhost. You can specify the --compress option to get better performance\nover slow networks if the client and server support the compressed\nprotocol. See http://dev.mysql.com/doc/refman/5.5/en/mysqlimport.html.\n\nFor more information about the efficiency of INSERT versus LOAD DATA\nINFILE and speeding up LOAD DATA INFILE, see\nhttp://dev.mysql.com/doc/refman/5.5/en/insert-speed.html.\n\nThe file name must be given as a literal string. On Windows, specify\nbackslashes in path names as forward slashes or doubled backslashes.\nThe character_set_filesystem system variable controls the\ninterpretation of the file name.\n\nThe server uses the character set indicated by the\ncharacter_set_database system variable to interpret the information in\nthe file. SET NAMES and the setting of character_set_client do not\naffect interpretation of input. If the contents of the input file use a\ncharacter set that differs from the default, it is usually preferable\nto specify the character set of the file by using the CHARACTER SET\nclause. A character set of binary specifies \"no conversion.\"\n\nLOAD DATA INFILE interprets all fields in the file as having the same\ncharacter set, regardless of the data types of the columns into which\nfield values are loaded. For proper interpretation of file contents,\nyou must ensure that it was written with the correct character set. For\nexample, if you write a data file with mysqldump -T or by issuing a\nSELECT ... INTO OUTFILE statement in mysql, be sure to use a\n--default-character-set option so that output is written in the\ncharacter set to be used when the file is loaded with LOAD DATA INFILE.\n\n*Note*: It is not possible to load data files that use the ucs2, utf16,\nor utf32 character set.\n\nIf you use LOW_PRIORITY, execution of the LOAD DATA statement is\ndelayed until no other clients are reading from the table. This affects\nonly storage engines that use only table-level locking (such as MyISAM,\nMEMORY, and MERGE).\n\nIf you specify CONCURRENT with a MyISAM table that satisfies the\ncondition for concurrent inserts (that is, it contains no free blocks\nin the middle), other threads can retrieve data from the table while\nLOAD DATA is executing. This option affects the performance of LOAD\nDATA a bit, even if no other thread is using the table at the same\ntime.\n\nWith row-based replication, CONCURRENT is replicated regardless of\nMySQL version. With statement-based replication CONCURRENT is not\nreplicated prior to MySQL 5.5.1 (see Bug #34628). For more information,\nsee\nhttp://dev.mysql.com/doc/refman/5.5/en/replication-features-load-data.h\ntml.\n\nThe LOCAL keyword affects expected location of the file and error\nhandling, as described later. LOCAL works only if your server and your\nclient both have been configured to permit it. For example, if mysqld\nwas started with --local-infile=0, LOCAL does not work. See\nhttp://dev.mysql.com/doc/refman/5.5/en/load-data-local.html.\n\nThe LOCAL keyword affects where the file is expected to be found:\n\no If LOCAL is specified, the file is read by the client program on the\n client host and sent to the server. The file can be given as a full\n path name to specify its exact location. If given as a relative path\n name, the name is interpreted relative to the directory in which the\n client program was started.\n\n When using LOCAL with LOAD DATA, a copy of the file is created in the\n server\'s temporary directory. This is not the directory determined by\n the value of tmpdir or slave_load_tmpdir, but rather the operating\n system\'s temporary directory, and is not configurable in the MySQL\n Server. (Typically the system temporary directory is /tmp on Linux\n systems and C:\\WINDOWS\\TEMP on Windows.) Lack of sufficient space for\n the copy in this directory can cause the LOAD DATA LOCAL statement to\n fail.\n\no If LOCAL is not specified, the file must be located on the server\n host and is read directly by the server. The server uses the\n following rules to locate the file:\n\n o If the file name is an absolute path name, the server uses it as\n given.\n\n o If the file name is a relative path name with one or more leading\n components, the server searches for the file relative to the\n server\'s data directory.\n\n o If a file name with no leading components is given, the server\n looks for the file in the database directory of the default\n database.\n\nIn the non-LOCAL case, these rules mean that a file named as\n./myfile.txt is read from the server\'s data directory, whereas the file\nnamed as myfile.txt is read from the database directory of the default\ndatabase. For example, if db1 is the default database, the following\nLOAD DATA statement reads the file data.txt from the database directory\nfor db1, even though the statement explicitly loads the file into a\ntable in the db2 database:\n\nLOAD DATA INFILE \'data.txt\' INTO TABLE db2.my_table;\n\nFor security reasons, when reading text files located on the server,\nthe files must either reside in the database directory or be readable\nby the user account used to run the server. Also, to use LOAD DATA\nINFILE on server files, you must have the FILE privilege. See\nhttp://dev.mysql.com/doc/refman/5.5/en/privileges-provided.html. For\nnon-LOCAL load operations, if the secure_file_priv system variable is\nset to a nonempty directory name, the file to be loaded must be located\nin that directory.\n\nUsing LOCAL is a bit slower than letting the server access the files\ndirectly, because the contents of the file must be sent over the\nconnection by the client to the server. On the other hand, you do not\nneed the FILE privilege to load local files.\n\nLOCAL also affects error handling:\n\no With LOAD DATA INFILE, data-interpretation and duplicate-key errors\n terminate the operation.\n\no With LOAD DATA LOCAL INFILE, data-interpretation and duplicate-key\n errors become warnings and the operation continues because the server\n has no way to stop transmission of the file in the middle of the\n operation. For duplicate-key errors, this is the same as if IGNORE is\n specified. IGNORE is explained further later in this section.\n\nThe REPLACE and IGNORE keywords control handling of input rows that\nduplicate existing rows on unique key values:\n\no If you specify REPLACE, input rows replace existing rows. In other\n words, rows that have the same value for a primary key or unique\n index as an existing row. See [HELP REPLACE].\n\no If you specify IGNORE, rows that duplicate an existing row on a\n unique key value are discarded.\n\no If you do not specify either option, the behavior depends on whether\n the LOCAL keyword is specified. Without LOCAL, an error occurs when a\n duplicate key value is found, and the rest of the text file is\n ignored. With LOCAL, the default behavior is the same as if IGNORE is\n specified; this is because the server has no way to stop transmission\n of the file in the middle of the operation.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/load-data.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/load-data.html'),(423,'MULTILINESTRING',25,'MultiLineString(ls1,ls2,...)\n\nConstructs a MultiLineString value using LineString or WKB LineString\narguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-mysql-specific-functions.html'),(424,'LOCALTIME',32,'Syntax:\nLOCALTIME, LOCALTIME()\n\nLOCALTIME and LOCALTIME() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(425,'SHOW RELAYLOG EVENTS',27,'Syntax:\nSHOW RELAYLOG EVENTS\n [IN \'log_name\'] [FROM pos] [LIMIT [offset,] row_count]\n\nShows the events in the relay log of a replication slave. If you do not\nspecify \'log_name\', the first relay log is displayed. This statement\nhas no effect on the master.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-relaylog-events.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-relaylog-events.html'),(426,'MPOINTFROMTEXT',4,'MPointFromText(wkt[,srid]), MultiPointFromText(wkt[,srid])\n\nConstructs a MultiPoint value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkt-functions.html'),(427,'BLOB',23,'BLOB[(M)]\n\nA BLOB column with a maximum length of 65,535 (216 − 1) bytes. Each\nBLOB value is stored using a 2-byte length prefix that indicates the\nnumber of bytes in the value.\n\nAn optional length M can be given for this type. If this is done, MySQL\ncreates the column as the smallest BLOB type large enough to hold\nvalues M bytes long.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(428,'SHA1',12,'Syntax:\nSHA1(str), SHA(str)\n\nCalculates an SHA-1 160-bit checksum for the string, as described in\nRFC 3174 (Secure Hash Algorithm). The value is returned as a string of\n40 hex digits, or NULL if the argument was NULL. One of the possible\nuses for this function is as a hash key. See the notes at the beginning\nof this section about storing hash values efficiently. You can also use\nSHA1() as a cryptographic function for storing passwords. SHA() is\nsynonymous with SHA1().\n\nAs of MySQL 5.5.3, the return value is a nonbinary string in the\nconnection character set. Before 5.5.3, the return value is a binary\nstring; see the notes at the beginning of this section about using the\nvalue as a nonbinary string.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SELECT SHA1(\'abc\');\n -> \'a9993e364706816aba3e25717850c26c9cd0d89d\'\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(429,'SUBSTR',38,'Syntax:\nSUBSTR(str,pos), SUBSTR(str FROM pos), SUBSTR(str,pos,len), SUBSTR(str\nFROM pos FOR len)\n\nSUBSTR() is a synonym for SUBSTRING().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(430,'PASSWORD',12,'Syntax:\nPASSWORD(str)\n\nReturns a hashed password string calculated from the cleartext password\nstr. The return value is a nonbinary string in the connection character\nset (a binary string before MySQL 5.5.3), or NULL if the argument is\nNULL. This function is the SQL interface to the algorithm used by the\nserver to encrypt MySQL passwords for storage in the mysql.user grant\ntable.\n\nThe old_passwords system variable controls the password hashing method\nused by the PASSWORD() function. It also influences password hashing\nperformed by CREATE USER and GRANT statements that specify a password\nusing an IDENTIFIED BY clause.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','mysql> SET old_passwords = 0;\nmysql> SELECT PASSWORD(\'<PASSWORD>\'), OLD_PASSWORD(\'<PASSWORD>\');\n+-------------------------------------------+------------------------+\n| PASSWORD(\'<PASSWORD>\') | OLD_PASSWORD(\'<PASSWORD>\') |\n+-------------------------------------------+------------------------+\n| *6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4 | <PASSWORD> |\n+-------------------------------------------+------------------------+\n\nmysql> SET old_passwords = 1;\nmysql> SELECT PASSWORD(\'<PASSWORD>\'), OLD_PASSWORD(\'<PASSWORD>\');\n+--------------------+------------------------+\n| PASSWORD(\'<PASSWORD>\') | OLD_PASSWORD(\'<PASSWORD>\') |\n+--------------------+------------------------+\n| <PASSWORD> | 6f8c114b58f2ce9e |\n+--------------------+------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(431,'CHAR',23,'[NATIONAL] CHAR[(M)] [CHARACTER SET charset_name] [COLLATE\ncollation_name]\n\nA fixed-length string that is always right-padded with spaces to the\nspecified length when stored. M represents the column length in\ncharacters. The range of M is 0 to 255. If M is omitted, the length is\n1.\n\n*Note*: Trailing spaces are removed when CHAR values are retrieved\nunless the PAD_CHAR_TO_FULL_LENGTH SQL mode is enabled.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(432,'UTC_DATE',32,'Syntax:\nUTC_DATE, UTC_DATE()\n\nReturns the current UTC date as a value in \'YYYY-MM-DD\' or YYYYMMDD\nformat, depending on whether the function is used in a string or\nnumeric context.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT UTC_DATE(), UTC_DATE() + 0;\n -> \'2003-08-14\', 20030814\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(433,'DIMENSION',37,'Dimension(g)\n\nReturns the inherent dimension of the geometry value g. The result can\nbe −1, 0, 1, or 2. The meaning of these values is given in\nhttp://dev.mysql.com/doc/refman/5.5/en/gis-class-geometry.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','mysql> SELECT Dimension(GeomFromText(\'LineString(1 1,2 2)\'));\n+------------------------------------------------+\n| Dimension(GeomFromText(\'LineString(1 1,2 2)\')) |\n+------------------------------------------------+\n| 1 |\n+------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(434,'COUNT DISTINCT',16,'Syntax:\nCOUNT(DISTINCT expr,[expr...])\n\nReturns a count of the number of rows with different non-NULL expr\nvalues.\n\nCOUNT(DISTINCT) returns 0 if there were no matching rows.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html\n\n','mysql> SELECT COUNT(DISTINCT results) FROM student;\n','http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html'),(435,'BIT',23,'BIT[(M)]\n\nA bit-field type. M indicates the number of bits per value, from 1 to\n64. The default is 1 if M is omitted.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(436,'XA',8,'Syntax:\nXA {START|BEGIN} xid [JOIN|RESUME]\n\nXA END xid [SUSPEND [FOR MIGRATE]]\n\nXA PREPARE xid\n\nXA COMMIT xid [ONE PHASE]\n\nXA ROLLBACK xid\n\nXA RECOVER\n\nFor XA START, the JOIN and RESUME clauses are not supported.\n\nFor XA END the SUSPEND [FOR MIGRATE] clause is not supported.\n\nEach XA statement begins with the XA keyword, and most of them require\nan xid value. An xid is an XA transaction identifier. It indicates\nwhich transaction the statement applies to. xid values are supplied by\nthe client, or generated by the MySQL server. An xid value has from one\nto three parts:\n\nxid: gtrid [, bqual [, formatID ]]\n\ngtrid is a global transaction identifier, bqual is a branch qualifier,\nand formatID is a number that identifies the format used by the gtrid\nand bqual values. As indicated by the syntax, bqual and formatID are\noptional. The default bqual value is \'\' if not given. The default\nformatID value is 1 if not given.\n\ngtrid and bqual must be string literals, each up to 64 bytes (not\ncharacters) long. gtrid and bqual can be specified in several ways. You\ncan use a quoted string (\'ab\'), hex string (0x6162, X\'ab\'), or bit\nvalue (b\'nnnn\').\n\nformatID is an unsigned integer.\n\nThe gtrid and bqual values are interpreted in bytes by the MySQL\nserver\'s underlying XA support routines. However, while an SQL\nstatement containing an XA statement is being parsed, the server works\nwith some specific character set. To be safe, write gtrid and bqual as\nhex strings.\n\nxid values typically are generated by the Transaction Manager. Values\ngenerated by one TM must be different from values generated by other\nTMs. A given TM must be able to recognize its own xid values in a list\nof values returned by the XA RECOVER statement.\n\nFor XA START xid starts an XA transaction with the given xid value.\nEach XA transaction must have a unique xid value, so the value must not\ncurrently be used by another XA transaction. Uniqueness is assessed\nusing the gtrid and bqual values. All following XA statements for the\nXA transaction must be specified using the same xid value as that given\nin the XA START statement. If you use any of those statements but\nspecify an xid value that does not correspond to some existing XA\ntransaction, an error occurs.\n\nOne or more XA transactions can be part of the same global transaction.\nAll XA transactions within a given global transaction must use the same\ngtrid value in the xid value. For this reason, gtrid values must be\nglobally unique so that there is no ambiguity about which global\ntransaction a given XA transaction is part of. The bqual part of the\nxid value must be different for each XA transaction within a global\ntransaction. (The requirement that bqual values be different is a\nlimitation of the current MySQL XA implementation. It is not part of\nthe XA specification.)\n\nThe XA RECOVER statement returns information for those XA transactions\non the MySQL server that are in the PREPARED state. (See\nhttp://dev.mysql.com/doc/refman/5.5/en/xa-states.html.) The output\nincludes a row for each such XA transaction on the server, regardless\nof which client started it.\n\nXA RECOVER output rows look like this (for an example xid value\nconsisting of the parts \'abc\', \'def\', and 7):\n\nmysql> XA RECOVER;\n+----------+--------------+--------------+--------+\n| formatID | gtrid_length | bqual_length | data |\n+----------+--------------+--------------+--------+\n| 7 | 3 | 3 | abcdef |\n+----------+--------------+--------------+--------+\n\nThe output columns have the following meanings:\n\no formatID is the formatID part of the transaction xid\n\no gtrid_length is the length in bytes of the gtrid part of the xid\n\no bqual_length is the length in bytes of the bqual part of the xid\n\no data is the concatenation of the gtrid and bqual parts of the xid\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/xa-statements.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/xa-statements.html'),(437,'EQUALS',31,'Equals(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 is spatially equal to g2.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mbr.html'),(438,'SHOW CREATE VIEW',27,'Syntax:\nSHOW CREATE VIEW view_name\n\nThis statement shows the CREATE VIEW statement that creates the named\nview.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-create-view.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-create-view.html'),(439,'CENTROID',2,'Centroid(mpoly)\n\nReturns the mathematical centroid for the MultiPolygon value mpoly as a\nPoint. The result is not guaranteed to be on the MultiPolygon.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly =\n -> GeomFromText(\'POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))\');\nmysql> SELECT GeometryType(@poly),AsText(Centroid(@poly));\n+---------------------+--------------------------------------------+\n| GeometryType(@poly) | AsText(Centroid(@poly)) |\n+---------------------+--------------------------------------------+\n| POLYGON | POINT(4.958333333333333 4.958333333333333) |\n+---------------------+--------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-polygon-property-functions.html'),(440,'INTERVAL',20,'Syntax:\nINTERVAL(N,N1,N2,N3,...)\n\nReturns 0 if N < N1, 1 if N < N2 and so on or -1 if N is NULL. All\narguments are treated as integers. It is required that N1 < N2 < N3 <\n... < Nn for this function to work correctly. This is because a binary\nsearch is used (very fast).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT INTERVAL(23, 1, 15, 17, 30, 44, 200);\n -> 3\nmysql> SELECT INTERVAL(10, 1, 10, 100, 1000);\n -> 2\nmysql> SELECT INTERVAL(22, 23, 30, 44, 200);\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(441,'FROM_DAYS',32,'Syntax:\nFROM_DAYS(N)\n\nGiven a day number N, returns a DATE value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT FROM_DAYS(730669);\n -> \'2007-07-03\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(442,'ALTER PROCEDURE',40,'Syntax:\nALTER PROCEDURE proc_name [characteristic ...]\n\ncharacteristic:\n COMMENT \'string\'\n | LANGUAGE SQL\n | { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }\n | SQL SECURITY { DEFINER | INVOKER }\n\nThis statement can be used to change the characteristics of a stored\nprocedure. More than one change may be specified in an ALTER PROCEDURE\nstatement. However, you cannot change the parameters or body of a\nstored procedure using this statement; to make such changes, you must\ndrop and re-create the procedure using DROP PROCEDURE and CREATE\nPROCEDURE.\n\nYou must have the ALTER ROUTINE privilege for the procedure. By\ndefault, that privilege is granted automatically to the procedure\ncreator. This behavior can be changed by disabling the\nautomatic_sp_privileges system variable. See\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-routines-privileges.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-procedure.html'),(443,'BIT_COUNT',19,'Syntax:\nBIT_COUNT(N)\n\nReturns the number of bits that are set in the argument N.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html\n\n','mysql> SELECT BIT_COUNT(29), BIT_COUNT(b\'101010\');\n -> 4, 3\n','http://dev.mysql.com/doc/refman/5.5/en/bit-functions.html'),(444,'OCTET_LENGTH',38,'Syntax:\nOCTET_LENGTH(str)\n\nOCTET_LENGTH() is a synonym for LENGTH().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(445,'UTC_TIMESTAMP',32,'Syntax:\nUTC_TIMESTAMP, UTC_TIMESTAMP()\n\nReturns the current UTC date and time as a value in \'YYYY-MM-DD\nHH:MM:SS\' or YYYYMMDDHHMMSS.uuuuuu format, depending on whether the\nfunction is used in a string or numeric context.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT UTC_TIMESTAMP(), UTC_TIMESTAMP() + 0;\n -> \'2003-08-14 18:08:04\', 20030814180804.000000\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(446,'AES_ENCRYPT',12,'Syntax:\nAES_ENCRYPT(str,key_str)\n\nAES_ENCRYPT() and AES_DECRYPT() implement encryption and decryption of\ndata using the official AES (Advanced Encryption Standard) algorithm,\npreviously known as \"Rijndael.\" The AES standard permits various key\nlengths. These functions implement AES with a 128-bit key length, but\nyou can extend them to 256 bits by modifying the source. The key length\nis a trade off between performance and security.\n\nAES_ENCRYPT() encrypts the string str using the key string key_str and\nreturns a binary string containing the encrypted output. AES_DECRYPT()\ndecrypts the encrypted string crypt_str using the key string key_str\nand returns the original cleartext string. If either function argument\nis NULL, the function returns NULL.\n\nThe str and crypt_str arguments can be any length, and padding is\nautomatically added to str so it is a multiple of a block as required\nby block-based algorithms such as AES. This padding is automatically\nremoved by the AES_DECRYPT() function. The length of crypt_str can be\ncalculated using this formula:\n\n16 * (trunc(string_length / 16) + 1)\n\nFor a key length of 128 bits, the most secure way to pass a key to the\nkey_str argument is to create a truly random 128-bit value and pass it\nas a binary value. For example:\n\nINSERT INTO t\nVALUES (1,AES_ENCRYPT(\'text\',UNHEX(\'F3229A0B371ED2D9441B830D21A390C3\')));\n\nA passphrase can be used to generate an AES key by hashing the\npassphrase. For example:\n\nINSERT INTO t VALUES (1,AES_ENCRYPT(\'text\', SHA2(\'My secret passphrase\',512)));\n\nDo not pass a password or passphrase directly to crypt_str, hash it\nfirst. Previous versions of this documentation suggested the former\napproach, but it is no longer recommended as the examples shown here\nare more secure.\n\nIf AES_DECRYPT() detects invalid data or incorrect padding, it returns\nNULL. However, it is possible for AES_DECRYPT() to return a non-NULL\nvalue (possibly garbage) if the input data or the key is invalid.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(447,'+',3,'Syntax:\n+\n\nAddition:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html\n\n','mysql> SELECT 3+5;\n -> 8\n','http://dev.mysql.com/doc/refman/5.5/en/arithmetic-functions.html'),(448,'INET_NTOA',14,'Syntax:\nINET_NTOA(expr)\n\nGiven a numeric IPv4 network address in network byte order, returns the\ndotted-quad representation of the address as a string. INET_NTOA()\nreturns NULL if it does not understand its argument.\n\nAs of MySQL 5.5.3, the return value is a nonbinary string in the\nconnection character set. Before 5.5.3, the return value is a binary\nstring.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html\n\n','mysql> SELECT INET_NTOA(167773449);\n -> \'10.0.5.9\'\n','http://dev.mysql.com/doc/refman/5.5/en/miscellaneous-functions.html'),(449,'ACOS',3,'Syntax:\nACOS(X)\n\nReturns the arc cosine of X, that is, the value whose cosine is X.\nReturns NULL if X is not in the range -1 to 1.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ACOS(1);\n -> 0\nmysql> SELECT ACOS(1.0001);\n -> NULL\nmysql> SELECT ACOS(0);\n -> 1.5707963267949\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(450,'ISOLATION',8,'Syntax:\nSET [GLOBAL | SESSION] TRANSACTION ISOLATION LEVEL\n {\n REPEATABLE READ\n | READ COMMITTED\n | READ UNCOMMITTED\n | SERIALIZABLE\n }\n\nThis statement sets the transaction isolation level, used for\noperations on InnoDB tables.\n\nScope of the Isolation Level\n\nYou can set the isolation level globally, for the current session, or\nfor the next transaction:\n\no With the GLOBAL keyword, the statement sets the default transaction\n level globally for all subsequent sessions. Existing sessions are\n unaffected.\n\no With the SESSION keyword, the statement sets the default transaction\n level for all subsequent transactions performed within the current\n session.\n\no Without any SESSION or GLOBAL keyword, the statement sets the\n isolation level for the next (not started) transaction performed\n within the current session.\n\nA change to the global default isolation level requires the SUPER\nprivilege. Any session is free to change its session isolation level\n(even in the middle of a transaction), or the isolation level for its\nnext transaction.\n\nSET TRANSACTION ISOLATION LEVEL without GLOBAL or SESSION is not\npermitted while there is an active transaction:\n\nmysql> START TRANSACTION;\nQuery OK, 0 rows affected (0.02 sec)\n\nmysql> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;\nERROR 1568 (25001): Transaction isolation level can\'t be changed\nwhile a transaction is in progress\n\nTo set the global default isolation level at server startup, use the\n--transaction-isolation=level option to mysqld on the command line or\nin an option file. Values of level for this option use dashes rather\nthan spaces, so the permissible values are READ-UNCOMMITTED,\nREAD-COMMITTED, REPEATABLE-READ, or SERIALIZABLE. For example, to set\nthe default isolation level to REPEATABLE READ, use these lines in the\n[mysqld] section of an option file:\n\n[mysqld]\ntransaction-isolation = REPEATABLE-READ\n\nIt is possible to check or set the global and session transaction\nisolation levels at runtime by using the tx_isolation system variable:\n\nSELECT @@GLOBAL.tx_isolation, @@tx_isolation;\nSET GLOBAL tx_isolation=\'REPEATABLE-READ\';\nSET SESSION tx_isolation=\'SERIALIZABLE\';\n\nDetails and Usage of Isolation Levels\n\nInnoDB supports each of the transaction isolation levels described here\nusing different locking strategies. You can enforce a high degree of\nconsistency with the default REPEATABLE READ level, for operations on\ncrucial data where ACID compliance is important. Or you can relax the\nconsistency rules with READ COMMITTED or even READ UNCOMMITTED, in\nsituations such as bulk reporting where precise consistency and\nrepeatable results are less important than minimizing the amount of\noverhead for locking. SERIALIZABLE enforces even stricter rules than\nREPEATABLE READ, and is used mainly in specialized situations, such as\nwith XA transactions and for troubleshooting issues with concurrency\nand deadlocks.\n\nFor full information about how these isolation levels work with InnoDB\ntransactions, see\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-transaction-model.html.\nIn particular, for additional information about InnoDB record-level\nlocks and how it uses them to execute various types of statements, see\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-record-level-locks.html\nand http://dev.mysql.com/doc/refman/5.5/en/innodb-locks-set.html.\n\nThe following list describes how MySQL supports the different\ntransaction levels. The list goes from the most commonly used level to\nthe least used.\n\no REPEATABLE READ\n\n This is the default isolation level for InnoDB. For consistent reads,\n there is an important difference from the READ COMMITTED isolation\n level: All consistent reads within the same transaction read the\n snapshot established by the first read. This convention means that if\n you issue several plain (nonlocking) SELECT statements within the\n same transaction, these SELECT statements are consistent also with\n respect to each other. See\n http://dev.mysql.com/doc/refman/5.5/en/innodb-consistent-read.html.\n\n For locking reads (SELECT with FOR UPDATE or LOCK IN SHARE MODE),\n UPDATE, and DELETE statements, locking depends on whether the\n statement uses a unique index with a unique search condition, or a\n range-type search condition. For a unique index with a unique search\n condition, InnoDB locks only the index record found, not the gap\n before it. For other search conditions, InnoDB locks the index range\n scanned, using gap locks or next-key (gap plus index-record) locks to\n block insertions by other sessions into the gaps covered by the\n range.\n\no READ COMMITTED\n\n A somewhat Oracle-like isolation level with respect to consistent\n (nonlocking) reads: Each consistent read, even within the same\n transaction, sets and reads its own fresh snapshot. See\n http://dev.mysql.com/doc/refman/5.5/en/innodb-consistent-read.html.\n\n For locking reads (SELECT with FOR UPDATE or LOCK IN SHARE MODE),\n UPDATE statements, and DELETE statements, InnoDB locks only index\n records, not the gaps before them, and thus permits the free\n insertion of new records next to locked records.\n\n *Note*: In MySQL 5.5, when READ COMMITTED isolation level is used or\n the innodb_locks_unsafe_for_binlog system variable is enabled, there\n is no InnoDB gap locking except for foreign-key constraint checking\n and duplicate-key checking. Also, record locks for nonmatching rows\n are released after MySQL has evaluated the WHERE condition. If you\n use READ COMMITTED or enable innodb_locks_unsafe_for_binlog, you must\n use row-based binary logging.\n\no READ UNCOMMITTED\n\n SELECT statements are performed in a nonlocking fashion, but a\n possible earlier version of a row might be used. Thus, using this\n isolation level, such reads are not consistent. This is also called a\n \"dirty read.\" Otherwise, this isolation level works like READ\n COMMITTED.\n\no SERIALIZABLE\n\n This level is like REPEATABLE READ, but InnoDB implicitly converts\n all plain SELECT statements to SELECT ... LOCK IN SHARE MODE if\n autocommit is disabled. If autocommit is enabled, the SELECT is its\n own transaction. It therefore is known to be read only and can be\n serialized if performed as a consistent (nonlocking) read and need\n not block for other transactions. (To force a plain SELECT to block\n if other transactions have modified the selected rows, disable\n autocommit.)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/set-transaction.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/set-transaction.html'),(451,'CEILING',3,'Syntax:\nCEILING(X)\n\nReturns the smallest integer value not less than X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT CEILING(1.23);\n -> 2\nmysql> SELECT CEILING(-1.23);\n -> -1\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(452,'SIN',3,'Syntax:\nSIN(X)\n\nReturns the sine of X, where X is given in radians.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT SIN(PI());\n -> 1.2246063538224e-16\nmysql> SELECT ROUND(SIN(PI()));\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(453,'DAYOFWEEK',32,'Syntax:\nDAYOFWEEK(date)\n\nReturns the weekday index for date (1 = Sunday, 2 = Monday, ..., 7 =\nSaturday). These index values correspond to the ODBC standard.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFWEEK(\'2007-02-03\');\n -> 7\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(454,'SHOW PROCESSLIST',27,'Syntax:\nSHOW [FULL] PROCESSLIST\n\nSHOW PROCESSLIST shows you which threads are running. You can also get\nthis information from the INFORMATION_SCHEMA PROCESSLIST table or the\nmysqladmin processlist command. If you have the PROCESS privilege, you\ncan see all threads. Otherwise, you can see only your own threads (that\nis, threads associated with the MySQL account that you are using). If\nyou do not use the FULL keyword, only the first 100 characters of each\nstatement are shown in the Info field.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-processlist.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-processlist.html'),(455,'LINEFROMWKB',33,'LineFromWKB(wkb[,srid]), LineStringFromWKB(wkb[,srid])\n\nConstructs a LineString value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(456,'GEOMETRYTYPE',37,'GeometryType(g)\n\nReturns a binary string indicating the name of the geometry type of\nwhich the geometry instance g is a member. The name corresponds to one\nof the instantiable Geometry subclasses.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html\n\n','mysql> SELECT GeometryType(GeomFromText(\'POINT(1 1)\'));\n+------------------------------------------+\n| GeometryType(GeomFromText(\'POINT(1 1)\')) |\n+------------------------------------------+\n| POINT |\n+------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-general-property-functions.html'),(457,'CREATE VIEW',40,'Syntax:\nCREATE\n [OR REPLACE]\n [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}]\n [DEFINER = { user | CURRENT_USER }]\n [SQL SECURITY { DEFINER | INVOKER }]\n VIEW view_name [(column_list)]\n AS select_statement\n [WITH [CASCADED | LOCAL] CHECK OPTION]\n\nThe CREATE VIEW statement creates a new view, or replaces an existing\nview if the OR REPLACE clause is given. If the view does not exist,\nCREATE OR REPLACE VIEW is the same as CREATE VIEW. If the view does\nexist, CREATE OR REPLACE VIEW is the same as ALTER VIEW.\n\nThe select_statement is a SELECT statement that provides the definition\nof the view. (Selecting from the view selects, in effect, using the\nSELECT statement.) The select_statement can select from base tables or\nother views.\n\nThe view definition is \"frozen\" at creation time. Changes to the\nunderlying tables afterward do not affect the view definition. For\nexample, if a view is defined as SELECT * on a table, new columns added\nto the table later do not become part of the view.\n\nThe ALGORITHM clause affects how MySQL processes the view. The DEFINER\nand SQL SECURITY clauses specify the security context to be used when\nchecking access privileges at view invocation time. The WITH CHECK\nOPTION clause can be given to constrain inserts or updates to rows in\ntables referenced by the view. These clauses are described later in\nthis section.\n\nThe CREATE VIEW statement requires the CREATE VIEW privilege for the\nview, and some privilege for each column selected by the SELECT\nstatement. For columns used elsewhere in the SELECT statement, you must\nhave the SELECT privilege. If the OR REPLACE clause is present, you\nmust also have the DROP privilege for the view. CREATE VIEW might also\nrequire the SUPER privilege, depending on the DEFINER value, as\ndescribed later in this section.\n\nWhen a view is referenced, privilege checking occurs as described later\nin this section.\n\nA view belongs to a database. By default, a new view is created in the\ndefault database. To create the view explicitly in a given database,\nuse db_name.view_name syntax to qualify the view name with the database\nname:\n\nmysql> CREATE VIEW test.v AS SELECT * FROM t;\n\nWithin a database, base tables and views share the same namespace, so a\nbase table and a view cannot have the same name.\n\nColumns retrieved by the SELECT statement can be simple references to\ntable columns, or expressions that use functions, constant values,\noperators, and so forth.\n\nA view must have unique column names with no duplicates, just like a\nbase table. By default, the names of the columns retrieved by the\nSELECT statement are used for the view column names. To define explicit\nnames for the view columns, the optional column_list clause can be\ngiven as a list of comma-separated identifiers. The number of names in\ncolumn_list must be the same as the number of columns retrieved by the\nSELECT statement.\n\nUnqualified table or view names in the SELECT statement are interpreted\nwith respect to the default database. A view can refer to tables or\nviews in other databases by qualifying the table or view name with the\nappropriate database name.\n\nA view can be created from many kinds of SELECT statements. It can\nrefer to base tables or other views. It can use joins, UNION, and\nsubqueries. The SELECT need not even refer to any tables.\n\nThe following example defines a view that selects two columns from\nanother table as well as an expression calculated from those columns:\n\nmysql> CREATE TABLE t (qty INT, price INT);\nmysql> INSERT INTO t VALUES(3, 50);\nmysql> CREATE VIEW v AS SELECT qty, price, qty*price AS value FROM t;\nmysql> SELECT * FROM v;\n+------+-------+-------+\n| qty | price | value |\n+------+-------+-------+\n| 3 | 50 | 150 |\n+------+-------+-------+\n\nA view definition is subject to the following restrictions:\n\no The SELECT statement cannot contain a subquery in the FROM clause.\n\no The SELECT statement cannot refer to system variables or user-defined\n variables.\n\no Within a stored program, the SELECT statement cannot refer to program\n parameters or local variables.\n\no The SELECT statement cannot refer to prepared statement parameters.\n\no Any table or view referred to in the definition must exist. After the\n view has been created, it is possible to drop a table or view that\n the definition refers to. In this case, use of the view results in an\n error. To check a view definition for problems of this kind, use the\n CHECK TABLE statement.\n\no The definition cannot refer to a TEMPORARY table, and you cannot\n create a TEMPORARY view.\n\no You cannot associate a trigger with a view.\n\no Aliases for column names in the SELECT statement are checked against\n the maximum column length of 64 characters (not the maximum alias\n length of 256 characters).\n\nORDER BY is permitted in a view definition, but it is ignored if you\nselect from a view using a statement that has its own ORDER BY.\n\nFor other options or clauses in the definition, they are added to the\noptions or clauses of the statement that references the view, but the\neffect is undefined. For example, if a view definition includes a LIMIT\nclause, and you select from the view using a statement that has its own\nLIMIT clause, it is undefined which limit applies. This same principle\napplies to options such as ALL, DISTINCT, or SQL_SMALL_RESULT that\nfollow the SELECT keyword, and to clauses such as INTO, FOR UPDATE,\nLOCK IN SHARE MODE, and PROCEDURE.\n\nIf you create a view and then change the query processing environment\nby changing system variables, that may affect the results you get from\nthe view:\n\nmysql> CREATE VIEW v (mycol) AS SELECT \'abc\';\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> SET sql_mode = \'\';\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SELECT \"mycol\" FROM v;\n+-------+\n| mycol |\n+-------+\n| mycol |\n+-------+\n1 row in set (0.01 sec)\n\nmysql> SET sql_mode = \'ANSI_QUOTES\';\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SELECT \"mycol\" FROM v;\n+-------+\n| mycol |\n+-------+\n| abc |\n+-------+\n1 row in set (0.00 sec)\n\nThe DEFINER and SQL SECURITY clauses determine which MySQL account to\nuse when checking access privileges for the view when a statement is\nexecuted that references the view. The valid SQL SECURITY\ncharacteristic values are DEFINER (the default) and INVOKER. These\nindicate that the required privileges must be held by the user who\ndefined or invoked the view, respectively.\n\nIf a user value is given for the DEFINER clause, it should be a MySQL\naccount specified as \'user_name\'@\'host_name\' (the same format used in\nthe GRANT statement), CURRENT_USER, or CURRENT_USER(). The default\nDEFINER value is the user who executes the CREATE VIEW statement. This\nis the same as specifying DEFINER = CURRENT_USER explicitly.\n\nIf you specify the DEFINER clause, these rules determine the valid\nDEFINER user values:\n\no If you do not have the SUPER privilege, the only valid user value is\n your own account, either specified literally or by using\n CURRENT_USER. You cannot set the definer to some other account.\n\no If you have the SUPER privilege, you can specify any syntactically\n valid account name. If the account does not exist, a warning is\n generated.\n\no Although it is possible to create a view with a nonexistent DEFINER\n account, an error occurs when the view is referenced if the SQL\n SECURITY value is DEFINER but the definer account does not exist.\n\nFor more information about view security, see\nhttp://dev.mysql.com/doc/refman/5.5/en/stored-programs-security.html.\n\nWithin a view definition, CURRENT_USER returns the view\'s DEFINER value\nby default. For views defined with the SQL SECURITY INVOKER\ncharacteristic, CURRENT_USER returns the account for the view\'s\ninvoker. For information about user auditing within views, see\nhttp://dev.mysql.com/doc/refman/5.5/en/account-activity-auditing.html.\n\nWithin a stored routine that is defined with the SQL SECURITY DEFINER\ncharacteristic, CURRENT_USER returns the routine\'s DEFINER value. This\nalso affects a view defined within such a routine, if the view\ndefinition contains a DEFINER value of CURRENT_USER.\n\nMySQL checks view privileges like this:\n\no At view definition time, the view creator must have the privileges\n needed to use the top-level objects accessed by the view. For\n example, if the view definition refers to table columns, the creator\n must have some privilege for each column in the select list of the\n definition, and the SELECT privilege for each column used elsewhere\n in the definition. If the definition refers to a stored function,\n only the privileges needed to invoke the function can be checked. The\n privileges required at function invocation time can be checked only\n as it executes: For different invocations, different execution paths\n within the function might be taken.\n\no The user who references a view must have appropriate privileges to\n access it (SELECT to select from it, INSERT to insert into it, and so\n forth.)\n\no When a view has been referenced, privileges for objects accessed by\n the view are checked against the privileges held by the view DEFINER\n account or invoker, depending on whether the SQL SECURITY\n characteristic is DEFINER or INVOKER, respectively.\n\no If reference to a view causes execution of a stored function,\n privilege checking for statements executed within the function depend\n on whether the function SQL SECURITY characteristic is DEFINER or\n INVOKER. If the security characteristic is DEFINER, the function runs\n with the privileges of the DEFINER account. If the characteristic is\n INVOKER, the function runs with the privileges determined by the\n view\'s SQL SECURITY characteristic.\n\nExample: A view might depend on a stored function, and that function\nmight invoke other stored routines. For example, the following view\ninvokes a stored function f():\n\nCREATE VIEW v AS SELECT * FROM t WHERE t.id = f(t.name);\n\nSuppose that f() contains a statement such as this:\n\nIF name IS NULL then\n CALL p1();\nELSE\n CALL p2();\nEND IF;\n\nThe privileges required for executing statements within f() need to be\nchecked when f() executes. This might mean that privileges are needed\nfor p1() or p2(), depending on the execution path within f(). Those\nprivileges must be checked at runtime, and the user who must possess\nthe privileges is determined by the SQL SECURITY values of the view v\nand the function f().\n\nThe DEFINER and SQL SECURITY clauses for views are extensions to\nstandard SQL. In standard SQL, views are handled using the rules for\nSQL SECURITY DEFINER. The standard says that the definer of the view,\nwhich is the same as the owner of the view\'s schema, gets applicable\nprivileges on the view (for example, SELECT) and may grant them. MySQL\nhas no concept of a schema \"owner\", so MySQL adds a clause to identify\nthe definer. The DEFINER clause is an extension where the intent is to\nhave what the standard has; that is, a permanent record of who defined\nthe view. This is why the default DEFINER value is the account of the\nview creator.\n\nThe optional ALGORITHM clause is a MySQL extension to standard SQL. It\naffects how MySQL processes the view. ALGORITHM takes three values:\nMERGE, TEMPTABLE, or UNDEFINED. The default algorithm is UNDEFINED if\nno ALGORITHM clause is present. For more information, see\nhttp://dev.mysql.com/doc/refman/5.5/en/view-algorithms.html.\n\nSome views are updatable. That is, you can use them in statements such\nas UPDATE, DELETE, or INSERT to update the contents of the underlying\ntable. For a view to be updatable, there must be a one-to-one\nrelationship between the rows in the view and the rows in the\nunderlying table. There are also certain other constructs that make a\nview nonupdatable.\n\nThe WITH CHECK OPTION clause can be given for an updatable view to\nprevent inserts or updates to rows except those for which the WHERE\nclause in the select_statement is true.\n\nIn a WITH CHECK OPTION clause for an updatable view, the LOCAL and\nCASCADED keywords determine the scope of check testing when the view is\ndefined in terms of another view. The LOCAL keyword restricts the CHECK\nOPTION only to the view being defined. CASCADED causes the checks for\nunderlying views to be evaluated as well. When neither keyword is\ngiven, the default is CASCADED.\n\nFor more information about updatable views and the WITH CHECK OPTION\nclause, see\nhttp://dev.mysql.com/doc/refman/5.5/en/view-updatability.html, and\nhttp://dev.mysql.com/doc/refman/5.5/en/view-check-option.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-view.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-view.html'),(458,'TRIM',38,'Syntax:\nTRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str), TRIM([remstr\nFROM] str)\n\nReturns the string str with all remstr prefixes or suffixes removed. If\nnone of the specifiers BOTH, LEADING, or TRAILING is given, BOTH is\nassumed. remstr is optional and, if not specified, spaces are removed.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT TRIM(\' bar \');\n -> \'bar\'\nmysql> SELECT TRIM(LEADING \'x\' FROM \'xxxbarxxx\');\n -> \'barxxx\'\nmysql> SELECT TRIM(BOTH \'x\' FROM \'xxxbarxxx\');\n -> \'bar\'\nmysql> SELECT TRIM(TRAILING \'xyz\' FROM \'barxxyz\');\n -> \'barx\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(459,'IS',20,'Syntax:\nIS boolean_value\n\nTests a value against a boolean value, where boolean_value can be TRUE,\nFALSE, or UNKNOWN.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 1 IS TRUE, 0 IS FALSE, NULL IS UNKNOWN;\n -> 1, 1, 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(460,'GET_FORMAT',32,'Syntax:\nGET_FORMAT({DATE|TIME|DATETIME}, {\'EUR\'|\'USA\'|\'JIS\'|\'ISO\'|\'INTERNAL\'})\n\nReturns a format string. This function is useful in combination with\nthe DATE_FORMAT() and the STR_TO_DATE() functions.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DATE_FORMAT(\'2003-10-03\',GET_FORMAT(DATE,\'EUR\'));\n -> \'03.10.2003\'\nmysql> SELECT STR_TO_DATE(\'10.31.2003\',GET_FORMAT(DATE,\'USA\'));\n -> \'2003-10-31\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(461,'TINYBLOB',23,'TINYBLOB\n\nA BLOB column with a maximum length of 255 (28 − 1) bytes. Each\nTINYBLOB value is stored using a 1-byte length prefix that indicates\nthe number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(462,'SIGNAL',24,'Syntax:\nSIGNAL condition_value\n [SET signal_information_item\n [, signal_information_item] ...]\n\ncondition_value:\n SQLSTATE [VALUE] sqlstate_value\n | condition_name\n\nsignal_information_item:\n condition_information_item_name = simple_value_specification\n\ncondition_information_item_name:\n CLASS_ORIGIN\n | SUBCLASS_ORIGIN\n | MESSAGE_TEXT\n | MYSQL_ERRNO\n | CONSTRAINT_CATALOG\n | CONSTRAINT_SCHEMA\n | CONSTRAINT_NAME\n | CATALOG_NAME\n | SCHEMA_NAME\n | TABLE_NAME\n | COLUMN_NAME\n | CURSOR_NAME\n\ncondition_name, simple_value_specification:\n (see following discussion)\n\nSIGNAL is the way to \"return\" an error. SIGNAL provides error\ninformation to a handler, to an outer portion of the application, or to\nthe client. Also, it provides control over the error\'s characteristics\n(error number, SQLSTATE value, message). Without SIGNAL, it is\nnecessary to resort to workarounds such as deliberately referring to a\nnonexistent table to cause a routine to return an error.\n\nNo special privileges are required to execute the SIGNAL statement.\n\nThe condition_value in a SIGNAL statement indicates the error value to\nbe returned. It can be an SQLSTATE value (a 5-character string literal)\nor a condition_name that refers to a named condition previously defined\nwith DECLARE ... CONDITION (see [HELP DECLARE CONDITION]).\n\nAn SQLSTATE value can indicate errors, warnings, or \"not found.\" The\nfirst two characters of the value indicate its error class, as\ndiscussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/signal.html#signal-condition-inf\normation-items. Some signal values cause statement termination; see\nhttp://dev.mysql.com/doc/refman/5.5/en/signal.html#signal-effects.\n\nThe SQLSTATE value for a SIGNAL statement should not start with \'00\'\nbecause such values indicate success and are not valid for signaling an\nerror. This is true whether the SQLSTATE value is specified directly in\nthe SIGNAL statement or in a named condition referred to in the\nstatement. If the value is invalid, a Bad SQLSTATE error occurs.\n\nTo signal a generic SQLSTATE value, use \'45000\', which means \"unhandled\nuser-defined exception.\"\n\nThe SIGNAL statement optionally includes a SET clause that contains\nmultiple signal items, in a comma-separated list of\ncondition_information_item_name = simple_value_specification\nassignments.\n\nEach condition_information_item_name may be specified only once in the\nSET clause. Otherwise, a Duplicate condition information item error\noccurs.\n\nValid simple_value_specification designators can be specified using\nstored procedure or function parameters, stored program local variables\ndeclared with DECLARE, user-defined variables, system variables, or\nliterals. A character literal may include a _charset introducer.\n\nFor information about permissible condition_information_item_name\nvalues, see\nhttp://dev.mysql.com/doc/refman/5.5/en/signal.html#signal-condition-inf\normation-items.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/signal.html\n\n','CREATE PROCEDURE p (pval INT)\nBEGIN\n DECLARE specialty CONDITION FOR SQLSTATE \'45000\';\n IF pval = 0 THEN\n SIGNAL SQLSTATE \'01000\';\n ELSEIF pval = 1 THEN\n SIGNAL SQLSTATE \'45000\'\n SET MESSAGE_TEXT = \'An error occurred\';\n ELSEIF pval = 2 THEN\n SIGNAL specialty\n SET MESSAGE_TEXT = \'An error occurred\';\n ELSE\n SIGNAL SQLSTATE \'01000\'\n SET MESSAGE_TEXT = \'A warning occurred\', MYSQL_ERRNO = 1000;\n SIGNAL SQLSTATE \'45000\'\n SET MESSAGE_TEXT = \'An error occurred\', MYSQL_ERRNO = 1001;\n END IF;\nEND;\n','http://dev.mysql.com/doc/refman/5.5/en/signal.html'),(463,'SAVEPOINT',8,'Syntax:\nSAVEPOINT identifier\nROLLBACK [WORK] TO [SAVEPOINT] identifier\nRELEASE SAVEPOINT identifier\n\nInnoDB supports the SQL statements SAVEPOINT, ROLLBACK TO SAVEPOINT,\nRELEASE SAVEPOINT and the optional WORK keyword for ROLLBACK.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/savepoint.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/savepoint.html'),(464,'USER',17,'Syntax:\nUSER()\n\nReturns the current MySQL user name and host name as a string in the\nutf8 character set.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT USER();\n -> \'davida@localhost\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(465,'LABELS',24,'Syntax:\n[begin_label:] BEGIN\n [statement_list]\nEND [end_label]\n\n[begin_label:] LOOP\n statement_list\nEND LOOP [end_label]\n\n[begin_label:] REPEAT\n statement_list\nUNTIL search_condition\nEND REPEAT [end_label]\n\n[begin_label:] WHILE search_condition DO\n statement_list\nEND WHILE [end_label]\n\nLabels are permitted for BEGIN ... END blocks and for the LOOP, REPEAT,\nand WHILE statements. Label use for those statements follows these\nrules:\n\no begin_label must be followed by a colon.\n\no begin_label can be given without end_label. If end_label is present,\n it must be the same as begin_label.\n\no end_label cannot be given without begin_label.\n\no Labels at the same nesting level must be distinct.\n\no Labels can be up to 16 characters long.\n\nTo refer to a label within the labeled construct, use an ITERATE or\nLEAVE statement. The following example uses those statements to\ncontinue iterating or terminate the loop:\n\nCREATE PROCEDURE doiterate(p1 INT)\nBEGIN\n label1: LOOP\n SET p1 = p1 + 1;\n IF p1 < 10 THEN ITERATE label1; END IF;\n LEAVE label1;\n END LOOP label1;\nEND;\n\nThe scope of a block label does not include the code for handlers\ndeclared within the block. For details, see [HELP DECLARE HANDLER].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/statement-labels.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/statement-labels.html'),(466,'ALTER TABLE',40,'Syntax:\nALTER [ONLINE | OFFLINE] [IGNORE] TABLE tbl_name\n [alter_specification [, alter_specification] ...]\n [partition_options]\n\nalter_specification:\n table_options\n | ADD [COLUMN] col_name column_definition\n [FIRST | AFTER col_name ]\n | ADD [COLUMN] (col_name column_definition,...)\n | ADD {INDEX|KEY} [index_name]\n [index_type] (index_col_name,...) [index_option] ...\n | ADD [CONSTRAINT [symbol]] PRIMARY KEY\n [index_type] (index_col_name,...) [index_option] ...\n | ADD [CONSTRAINT [symbol]]\n UNIQUE [INDEX|KEY] [index_name]\n [index_type] (index_col_name,...) [index_option] ...\n | ADD FULLTEXT [INDEX|KEY] [index_name]\n (index_col_name,...) [index_option] ...\n | ADD SPATIAL [INDEX|KEY] [index_name]\n (index_col_name,...) [index_option] ...\n | ADD [CONSTRAINT [symbol]]\n FOREIGN KEY [index_name] (index_col_name,...)\n reference_definition\n | ALTER [COLUMN] col_name {SET DEFAULT literal | DROP DEFAULT}\n | CHANGE [COLUMN] old_col_name new_col_name column_definition\n [FIRST|AFTER col_name]\n | MODIFY [COLUMN] col_name column_definition\n [FIRST | AFTER col_name]\n | DROP [COLUMN] col_name\n | DROP PRIMARY KEY\n | DROP {INDEX|KEY} index_name\n | DROP FOREIGN KEY fk_symbol\n | DISABLE KEYS\n | ENABLE KEYS\n | RENAME [TO|AS] new_tbl_name\n | ORDER BY col_name [, col_name] ...\n | CONVERT TO CHARACTER SET charset_name [COLLATE collation_name]\n | [DEFAULT] CHARACTER SET [=] charset_name [COLLATE [=] collation_name]\n | DISCARD TABLESPACE\n | IMPORT TABLESPACE\n | FORCE\n | ADD PARTITION (partition_definition)\n | DROP PARTITION partition_names\n | TRUNCATE PARTITION {partition_names | ALL}\n | COALESCE PARTITION number\n | REORGANIZE PARTITION [partition_names INTO (partition_definitions)]\n | ANALYZE PARTITION {partition_names | ALL}\n | CHECK PARTITION {partition_names | ALL}\n | OPTIMIZE PARTITION {partition_names | ALL}\n | REBUILD PARTITION {partition_names | ALL}\n | REPAIR PARTITION {partition_names | ALL}\n | PARTITION BY partitioning_expression\n | REMOVE PARTITIONING\n\nindex_col_name:\n col_name [(length)] [ASC | DESC]\n\nindex_type:\n USING {BTREE | HASH}\n\nindex_option:\n KEY_BLOCK_SIZE [=] value\n | index_type\n | WITH PARSER parser_name\n | COMMENT \'string\'\n\ntable_options:\n table_option [[,] table_option] ... (see CREATE TABLE options)\n\npartition_options:\n (see CREATE TABLE options)\n\nALTER TABLE changes the structure of a table. For example, you can add\nor delete columns, create or destroy indexes, change the type of\nexisting columns, or rename columns or the table itself. You can also\nchange characteristics such as the storage engine used for the table or\nthe table comment.\n\nFollowing the table name, specify the alterations to be made. If none\nare given, ALTER TABLE does nothing.\n\nThe syntax for many of the permissible alterations is similar to\nclauses of the CREATE TABLE statement. See [HELP CREATE TABLE], for\nmore information.\n\ntable_options signifies table options of the kind that can be used in\nthe CREATE TABLE statement, such as ENGINE, AUTO_INCREMENT,\nAVG_ROW_LENGTH, MAX_ROWS, or ROW_FORMAT. For a list of all table\noptions and a description of each, see [HELP CREATE TABLE]. However,\nALTER TABLE ignores the DATA DIRECTORY and INDEX DIRECTORY table\noptions.\n\npartition_options signifies options that can be used with partitioned\ntables for repartitioning, for adding, dropping, merging, and splitting\npartitions, and for performing partitioning maintenance. It is possible\nfor an ALTER TABLE statement to contain a PARTITION BY or REMOVE\nPARTITIONING clause in an addition to other alter specifications, but\nthe PARTITION BY or REMOVE PARTITIONING clause must be specified last\nafter any other specifications. The ADD PARTITION, DROP PARTITION,\nCOALESCE PARTITION, REORGANIZE PARTITION, ANALYZE PARTITION, CHECK\nPARTITION, and REPAIR PARTITION options cannot be combined with other\nalter specifications in a single ALTER TABLE, since the options just\nlisted act on individual partitions. For a list of partition options\nand a description of each, see [HELP CREATE TABLE]. For additional\ninformation, see\nhttp://dev.mysql.com/doc/refman/5.5/en/alter-table-partition-operations\n.html.\n\nSome operations may result in warnings if attempted on a table for\nwhich the storage engine does not support the operation. These warnings\ncan be displayed with SHOW WARNINGS. See [HELP SHOW WARNINGS].\n\nFor information on troubleshooting ALTER TABLE, see\nhttp://dev.mysql.com/doc/refman/5.5/en/alter-table-problems.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-table.html'),(467,'MPOINTFROMWKB',33,'MPointFromWKB(wkb[,srid]), MultiPointFromWKB(wkb[,srid])\n\nConstructs a MultiPoint value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(468,'CHAR BYTE',23,'The CHAR BYTE data type is an alias for the BINARY data type. This is a\ncompatibility feature.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(469,'REPAIR TABLE',21,'Syntax:\nREPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE\n tbl_name [, tbl_name] ...\n [QUICK] [EXTENDED] [USE_FRM]\n\nREPAIR TABLE repairs a possibly corrupted table. By default, it has the\nsame effect as myisamchk --recover tbl_name. REPAIR TABLE works for\nMyISAM, ARCHIVE, and CSV tables. See\nhttp://dev.mysql.com/doc/refman/5.5/en/myisam-storage-engine.html, and\nhttp://dev.mysql.com/doc/refman/5.5/en/archive-storage-engine.html, and\nhttp://dev.mysql.com/doc/refman/5.5/en/csv-storage-engine.html\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nREPAIR TABLE is supported for partitioned tables. However, the USE_FRM\noption cannot be used with this statement on a partitioned table.\n\nYou can use ALTER TABLE ... REPAIR PARTITION to repair one or more\npartitions; for more information, see [HELP ALTER TABLE], and\nhttp://dev.mysql.com/doc/refman/5.5/en/partitioning-maintenance.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/repair-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/repair-table.html'),(470,'MERGE',18,'The MERGE storage engine, also known as the MRG_MyISAM engine, is a\ncollection of identical MyISAM tables that can be used as one.\n\"Identical\" means that all tables have identical column and index\ninformation. You cannot merge MyISAM tables in which the columns are\nlisted in a different order, do not have exactly the same columns, or\nhave the indexes in different order. However, any or all of the MyISAM\ntables can be compressed with myisampack. See\nhttp://dev.mysql.com/doc/refman/5.5/en/myisampack.html. Differences in\ntable options such as AVG_ROW_LENGTH, MAX_ROWS, or PACK_KEYS do not\nmatter.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/merge-storage-engine.html\n\n','mysql> CREATE TABLE t1 (\n -> a INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> message CHAR(20)) ENGINE=MyISAM;\nmysql> CREATE TABLE t2 (\n -> a INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\n -> message CHAR(20)) ENGINE=MyISAM;\nmysql> INSERT INTO t1 (message) VALUES (\'Testing\'),(\'table\'),(\'t1\');\nmysql> INSERT INTO t2 (message) VALUES (\'Testing\'),(\'table\'),(\'t2\');\nmysql> CREATE TABLE total (\n -> a INT NOT NULL AUTO_INCREMENT,\n -> message CHAR(20), INDEX(a))\n -> ENGINE=MERGE UNION=(t1,t2) INSERT_METHOD=LAST;\n','http://dev.mysql.com/doc/refman/5.5/en/merge-storage-engine.html'),(471,'CREATE TABLE',40,'Syntax:\nCREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name\n (create_definition,...)\n [table_options]\n [partition_options]\n\nCREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name\n [(create_definition,...)]\n [table_options]\n [partition_options]\n select_statement\n\nCREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name\n { LIKE old_tbl_name | (LIKE old_tbl_name) }\n\ncreate_definition:\n col_name column_definition\n | [CONSTRAINT [symbol]] PRIMARY KEY [index_type] (index_col_name,...)\n [index_option] ...\n | {INDEX|KEY} [index_name] [index_type] (index_col_name,...)\n [index_option] ...\n | [CONSTRAINT [symbol]] UNIQUE [INDEX|KEY]\n [index_name] [index_type] (index_col_name,...)\n [index_option] ...\n | {FULLTEXT|SPATIAL} [INDEX|KEY] [index_name] (index_col_name,...)\n [index_option] ...\n | [CONSTRAINT [symbol]] FOREIGN KEY\n [index_name] (index_col_name,...) reference_definition\n | CHECK (expr)\n\ncolumn_definition:\n data_type [NOT NULL | NULL] [DEFAULT default_value]\n [AUTO_INCREMENT] [UNIQUE [KEY] | [PRIMARY] KEY]\n [COMMENT \'string\']\n [COLUMN_FORMAT {FIXED|DYNAMIC|DEFAULT}]\n [STORAGE {DISK|MEMORY|DEFAULT}]\n [reference_definition]\n\ndata_type:\n BIT[(length)]\n | TINYINT[(length)] [UNSIGNED] [ZEROFILL]\n | SMALLINT[(length)] [UNSIGNED] [ZEROFILL]\n | MEDIUMINT[(length)] [UNSIGNED] [ZEROFILL]\n | INT[(length)] [UNSIGNED] [ZEROFILL]\n | INTEGER[(length)] [UNSIGNED] [ZEROFILL]\n | BIGINT[(length)] [UNSIGNED] [ZEROFILL]\n | REAL[(length,decimals)] [UNSIGNED] [ZEROFILL]\n | DOUBLE[(length,decimals)] [UNSIGNED] [ZEROFILL]\n | FLOAT[(length,decimals)] [UNSIGNED] [ZEROFILL]\n | DECIMAL[(length[,decimals])] [UNSIGNED] [ZEROFILL]\n | NUMERIC[(length[,decimals])] [UNSIGNED] [ZEROFILL]\n | DATE\n | TIME\n | TIMESTAMP\n | DATETIME\n | YEAR\n | CHAR[(length)] [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | VARCHAR(length) [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | BINARY[(length)]\n | VARBINARY(length)\n | TINYBLOB\n | BLOB\n | MEDIUMBLOB\n | LONGBLOB\n | TINYTEXT [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | TEXT [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | MEDIUMTEXT [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | LONGTEXT [BINARY]\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | ENUM(value1,value2,value3,...)\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | SET(value1,value2,value3,...)\n [CHARACTER SET charset_name] [COLLATE collation_name]\n | spatial_type\n\nindex_col_name:\n col_name [(length)] [ASC | DESC]\n\nindex_type:\n USING {BTREE | HASH}\n\nindex_option:\n KEY_BLOCK_SIZE [=] value\n | index_type\n | WITH PARSER parser_name\n | COMMENT \'string\'\n\nreference_definition:\n REFERENCES tbl_name (index_col_name,...)\n [MATCH FULL | MATCH PARTIAL | MATCH SIMPLE]\n [ON DELETE reference_option]\n [ON UPDATE reference_option]\n\nreference_option:\n RESTRICT | CASCADE | SET NULL | NO ACTION\n\ntable_options:\n table_option [[,] table_option] ...\n\ntable_option:\n ENGINE [=] engine_name\n | AUTO_INCREMENT [=] value\n | AVG_ROW_LENGTH [=] value\n | [DEFAULT] CHARACTER SET [=] charset_name\n | CHECKSUM [=] {0 | 1}\n | [DEFAULT] COLLATE [=] collation_name\n | COMMENT [=] \'string\'\n | CONNECTION [=] \'connect_string\'\n | DATA DIRECTORY [=] \'absolute path to directory\'\n | DELAY_KEY_WRITE [=] {0 | 1}\n | INDEX DIRECTORY [=] \'absolute path to directory\'\n | INSERT_METHOD [=] { NO | FIRST | LAST }\n | KEY_BLOCK_SIZE [=] value\n | MAX_ROWS [=] value\n | MIN_ROWS [=] value\n | PACK_KEYS [=] {0 | 1 | DEFAULT}\n | PASSWORD [=] \'string\'\n | ROW_FORMAT [=] {DEFAULT|DYNAMIC|FIXED|COMPRESSED|REDUNDANT|COMPACT}\n | TABLESPACE tablespace_name [STORAGE {DISK|MEMORY|DEFAULT}]\n | UNION [=] (tbl_name[,tbl_name]...)\n\npartition_options:\n PARTITION BY\n { [LINEAR] HASH(expr)\n | [LINEAR] KEY [ALGORITHM={1|2}] (column_list)\n | RANGE{(expr) | COLUMNS(column_list)}\n | LIST{(expr) | COLUMNS(column_list)} }\n [PARTITIONS num]\n [SUBPARTITION BY\n { [LINEAR] HASH(expr)\n | [LINEAR] KEY [ALGORITHM={1|2}] (column_list) }\n [SUBPARTITIONS num]\n ]\n [(partition_definition [, partition_definition] ...)]\n\npartition_definition:\n PARTITION partition_name\n [VALUES \n {LESS THAN {(expr | value_list) | MAXVALUE} \n | \n IN (value_list)}]\n [[STORAGE] ENGINE [=] engine_name]\n [COMMENT [=] \'comment_text\' ]\n [DATA DIRECTORY [=] \'data_dir\']\n [INDEX DIRECTORY [=] \'index_dir\']\n [MAX_ROWS [=] max_number_of_rows]\n [MIN_ROWS [=] min_number_of_rows]\n [TABLESPACE [=] tablespace_name]\n [NODEGROUP [=] node_group_id]\n [(subpartition_definition [, subpartition_definition] ...)]\n\nsubpartition_definition:\n SUBPARTITION logical_name\n [[STORAGE] ENGINE [=] engine_name]\n [COMMENT [=] \'comment_text\' ]\n [DATA DIRECTORY [=] \'data_dir\']\n [INDEX DIRECTORY [=] \'index_dir\']\n [MAX_ROWS [=] max_number_of_rows]\n [MIN_ROWS [=] min_number_of_rows]\n [TABLESPACE [=] tablespace_name]\n [NODEGROUP [=] node_group_id]\n\nselect_statement:\n [IGNORE | REPLACE] [AS] SELECT ... (Some valid select statement)\n\nCREATE TABLE creates a table with the given name. You must have the\nCREATE privilege for the table.\n\nRules for permissible table names are given in\nhttp://dev.mysql.com/doc/refman/5.5/en/identifiers.html. By default,\nthe table is created in the default database, using the InnoDB storage\nengine. An error occurs if the table exists, if there is no default\ndatabase, or if the database does not exist.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/create-table.html'),(472,'>',20,'Syntax:\n>\n\nGreater than:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT 2 > 2;\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(473,'ANALYZE TABLE',21,'Syntax:\nANALYZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE\n tbl_name [, tbl_name] ...\n\nANALYZE TABLE analyzes and stores the key distribution for a table.\nDuring the analysis, the table is locked with a read lock for InnoDB\nand MyISAM. This statement works with InnoDB, NDB, and MyISAM tables.\nFor MyISAM tables, this statement is equivalent to using myisamchk\n--analyze.\n\nFor more information on how the analysis works within InnoDB, see\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-statistics-estimation.htm\nl. Also see\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-analyze-table-complexity.\nhtml and\nhttp://dev.mysql.com/doc/refman/5.5/en/innodb-restrictions.html.\n\nMySQL uses the stored key distribution to decide the order in which\ntables should be joined when you perform a join on something other than\na constant. In addition, key distributions can be used when deciding\nwhich indexes to use for a specific table within a query.\n\nThis statement requires SELECT and INSERT privileges for the table.\n\nANALYZE TABLE is supported for partitioned tables, and you can use\nALTER TABLE ... ANALYZE PARTITION to analyze one or more partitions;\nfor more information, see [HELP ALTER TABLE], and\nhttp://dev.mysql.com/doc/refman/5.5/en/partitioning-maintenance.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/analyze-table.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/analyze-table.html'),(474,'MICROSECOND',32,'Syntax:\nMICROSECOND(expr)\n\nReturns the microseconds from the time or datetime expression expr as a\nnumber in the range from 0 to 999999.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MICROSECOND(\'12:00:00.123456\');\n -> 123456\nmysql> SELECT MICROSECOND(\'2009-12-31 23:59:59.000010\');\n -> 10\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(475,'CONSTRAINT',40,'MySQL supports foreign keys, which let you cross-reference related data\nacross tables, and foreign key constraints, which help keep this\nspread-out data consistent. The essential syntax for a foreign key\nconstraint definition in a CREATE TABLE or ALTER TABLE statement looks\nlike this:\n\n[CONSTRAINT [symbol]] FOREIGN KEY\n [index_name] (index_col_name, ...)\n REFERENCES tbl_name (index_col_name,...)\n [ON DELETE reference_option]\n [ON UPDATE reference_option]\n\nreference_option:\n RESTRICT | CASCADE | SET NULL | NO ACTION\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-table-foreign-keys.html\n\n','CREATE TABLE product (\n category INT NOT NULL, id INT NOT NULL,\n price DECIMAL,\n PRIMARY KEY(category, id)\n) ENGINE=INNODB;\n\nCREATE TABLE customer (\n id INT NOT NULL,\n PRIMARY KEY (id)\n) ENGINE=INNODB;\n\nCREATE TABLE product_order (\n no INT NOT NULL AUTO_INCREMENT,\n product_category INT NOT NULL,\n product_id INT NOT NULL,\n customer_id INT NOT NULL,\n\n PRIMARY KEY(no),\n INDEX (product_category, product_id),\n INDEX (customer_id),\n\n FOREIGN KEY (product_category, product_id)\n REFERENCES product(category, id)\n ON UPDATE CASCADE ON DELETE RESTRICT,\n\n FOREIGN KEY (customer_id)\n REFERENCES customer(id)\n) ENGINE=INNODB;\n','http://dev.mysql.com/doc/refman/5.5/en/create-table-foreign-keys.html'),(476,'CREATE SERVER',40,'Syntax:\nCREATE SERVER server_name\n FOREIGN DATA WRAPPER wrapper_name\n OPTIONS (option [, option] ...)\n\noption:\n { HOST character-literal\n | DATABASE character-literal\n | USER character-literal\n | PASSWORD character-literal\n | SOCKET character-literal\n | OWNER character-literal\n | PORT numeric-literal }\n\nThis statement creates the definition of a server for use with the\nFEDERATED storage engine. The CREATE SERVER statement creates a new row\nin the servers table in the mysql database. This statement requires the\nSUPER privilege.\n\nThe server_name should be a unique reference to the server. Server\ndefinitions are global within the scope of the server, it is not\npossible to qualify the server definition to a specific database.\nserver_name has a maximum length of 64 characters (names longer than 64\ncharacters are silently truncated), and is case insensitive. You may\nspecify the name as a quoted string.\n\nThe wrapper_name should be mysql, and may be quoted with single\nquotation marks. Other values for wrapper_name are not currently\nsupported.\n\nFor each option you must specify either a character literal or numeric\nliteral. Character literals are UTF-8, support a maximum length of 64\ncharacters and default to a blank (empty) string. String literals are\nsilently truncated to 64 characters. Numeric literals must be a number\nbetween 0 and 9999, default value is 0.\n\n*Note*: The OWNER option is currently not applied, and has no effect on\nthe ownership or operation of the server connection that is created.\n\nThe CREATE SERVER statement creates an entry in the mysql.servers table\nthat can later be used with the CREATE TABLE statement when creating a\nFEDERATED table. The options that you specify will be used to populate\nthe columns in the mysql.servers table. The table columns are\nServer_name, Host, Db, Username, Password, Port and Socket.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/create-server.html\n\n','CREATE SERVER s\nFOREIGN DATA WRAPPER mysql\nOPTIONS (USER \'Remote\', HOST \'192.168.1.106\', DATABASE \'test\');\n','http://dev.mysql.com/doc/refman/5.5/en/create-server.html'),(477,'FIELD',38,'Syntax:\nFIELD(str,str1,str2,str3,...)\n\nReturns the index (position) of str in the str1, str2, str3, ... list.\nReturns 0 if str is not found.\n\nIf all arguments to FIELD() are strings, all arguments are compared as\nstrings. If all arguments are numbers, they are compared as numbers.\nOtherwise, the arguments are compared as double.\n\nIf str is NULL, the return value is 0 because NULL fails equality\ncomparison with any value. FIELD() is the complement of ELT().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT FIELD(\'ej\', \'Hej\', \'ej\', \'Heja\', \'hej\', \'foo\');\n -> 2\nmysql> SELECT FIELD(\'fo\', \'Hej\', \'ej\', \'Heja\', \'hej\', \'foo\');\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(478,'MAKETIME',32,'Syntax:\nMAKETIME(hour,minute,second)\n\nReturns a time value calculated from the hour, minute, and second\narguments.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT MAKETIME(12,15,30);\n -> \'12:15:30\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(479,'CURDATE',32,'Syntax:\nCURDATE()\n\nReturns the current date as a value in \'YYYY-MM-DD\' or YYYYMMDD format,\ndepending on whether the function is used in a string or numeric\ncontext.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT CURDATE();\n -> \'2008-06-13\'\nmysql> SELECT CURDATE() + 0;\n -> 20080613\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(480,'SET PASSWORD',10,'Syntax:\nSET PASSWORD [FOR user] = password_option\n\npassword_option: {\n PASSWORD(\'auth_<PASSWORD>\')\n | OLD_PASSWORD(\'auth_string\')\n | \'hash_string\'\n}\n\nThe SET PASSWORD statement assigns a password to a MySQL user account:\n\no With no FOR user clause, this statement sets the password for the\n current user:\n\nSET PASSWORD = password_option;\n\n Any client who connects to the server using a nonanonymous account\n can change the password for that account. To see which account the\n server authenticated you as, invoke the CURRENT_USER() function:\n\nSELECT CURRENT_USER();\n\n Permitted old_passwords values are described later in this section.\n\no With a FOR user clause, this statement sets the password for the\n named account, which must exist:\n\nSET PASSWORD FOR \'jeff<PASSWORD>\'@\'localhost\' = password_option;\n\n In this case, you must have the UPDATE privilege for the mysql\n database.\n\nWhen the read_only system variable is enabled, SET PASSWORD requires\nthe SUPER privilege, in addition to any other required privileges.\n\nIf a FOR user clause is given, the account name uses the format\ndescribed in http://dev.mysql.com/doc/refman/5.5/en/account-names.html.\nThe user value should be given as \'user_name\'@\'host_name\', where\n\'user_name\' and \'host_name\' are exactly as listed in the User and Host\ncolumns of the account\'s mysql.user table row. If you specify only a\nuser name, a host name of \'%\' is used. For example, to set the password\nfor an account with User and Host column values of \'bob\' and\n\'%.example.org\', write the statement like this:\n\nSET PASSWORD FOR \'bob\'@\'%.example.org\' = PASSWORD(\'cleartext password\');\n\nThe password can be specified in these ways:\n\no Using the PASSWORD() function\n\n The \'auth_string\' function argument is the cleartext (unencrypted)\n password. PASSWORD() hashes the password and returns the encrypted\n password string for storage in the mysql.user account row.\n\n The old_passwords system variable value determines the hashing method\n used by PASSWORD(). It should be set to a value compatible with the\n hash format required by the account authentication plugin. For\n example, if the account uses the mysql_native_password authentication\n plugin, old_passwords should be 0 for PASSWORD() to produce a hash\n value in the correct format. For mysql_old_password, old_passwords\n should be 1.\n\no Using the OLD_PASSWORD() function:\n\n The \'auth_string\' function argument is the cleartext (unencrypted)\n password. OLD_PASSWORD() hashes the password using pre-4.1 hashing\n and returns the encrypted password string for storage in the\n mysql.user account row. This hashing method is appropriate only for\n accounts that use the mysql_old_password authentication plugin.\n\no Using an already encrypted password string\n\n The password is specified as a string literal. It must represent the\n already encrypted password value, in the hash format required by the\n authentication method used for the account.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/set-password.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/set-password.html'),(481,'ALTER TABLESPACE',40,'Syntax:\nALTER TABLESPACE tablespace_name\n {ADD|DROP} DATAFILE \'file_name\'\n [INITIAL_SIZE [=] size]\n [WAIT]\n ENGINE [=] engine_name\n\nThis statement can be used either to add a new data file, or to drop a\ndata file from a tablespace.\n\nThe ADD DATAFILE variant enables you to specify an initial size using\nan INITIAL_SIZE clause, where size is measured in bytes; the default\nvalue is 134217728 (128 MB). Prior to MySQL Cluster NDB 7.2.14, this\nvalue was required to be specified using digits (Bug #13116514, Bug\n#16104705, Bug #62858); in MySQL Cluster NDB 7.2.14 and later, you may\noptionally follow size with a one-letter abbreviation for an order of\nmagnitude, similar to those used in my.cnf. Generally, this is one of\nthe letters M (megabytes) or G (gigabytes).\n\n*Note*: All MySQL Cluster Disk Data objects share the same namespace.\nThis means that each Disk Data object must be uniquely named (and not\nmerely each Disk Data object of a given type). For example, you cannot\nhave a tablespace and an data file with the same name, or an undo log\nfile and a tablespace with the same name.\n\nOn 32-bit systems, the maximum supported value for INITIAL_SIZE is\n4294967296 (4 GB). (Bug #29186)\n\nINITIAL_SIZE is rounded, explicitly, as for CREATE TABLESPACE.\n\nOnce a data file has been created, its size cannot be changed; however,\nyou can add more data files to the tablespace using additional ALTER\nTABLESPACE ... ADD DATAFILE statements.\n\nUsing DROP DATAFILE with ALTER TABLESPACE drops the data file\n\'file_name\' from the tablespace. You cannot drop a data file from a\ntablespace which is in use by any table; in other words, the data file\nmust be empty (no extents used). See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data-objects.\nhtml. In addition, any data file to be dropped must previously have\nbeen added to the tablespace with CREATE TABLESPACE or ALTER\nTABLESPACE.\n\nBoth ALTER TABLESPACE ... ADD DATAFILE and ALTER TABLESPACE ... DROP\nDATAFILE require an ENGINE clause which specifies the storage engine\nused by the tablespace. Currently, the only accepted values for\nengine_name are NDB and NDBCLUSTER.\n\nWAIT is parsed but otherwise ignored, and so has no effect in MySQL\n5.5. It is intended for future expansion.\n\nWhen ALTER TABLESPACE ... ADD DATAFILE is used with ENGINE = NDB, a\ndata file is created on each Cluster data node. You can verify that the\ndata files were created and obtain information about them by querying\nthe INFORMATION_SCHEMA.FILES table. For example, the following query\nshows all data files belonging to the tablespace named newts:\n\nmysql> SELECT LOGFILE_GROUP_NAME, FILE_NAME, EXTRA\n -> FROM INFORMATION_SCHEMA.FILES\n -> WHERE TABLESPACE_NAME = \'newts\' AND FILE_TYPE = \'DATAFILE\';\n+--------------------+--------------+----------------+\n| LOGFILE_GROUP_NAME | FILE_NAME | EXTRA |\n+--------------------+--------------+----------------+\n| lg_3 | newdata.dat | CLUSTER_NODE=3 |\n| lg_3 | newdata.dat | CLUSTER_NODE=4 |\n| lg_3 | newdata2.dat | CLUSTER_NODE=3 |\n| lg_3 | newdata2.dat | CLUSTER_NODE=4 |\n+--------------------+--------------+----------------+\n2 rows in set (0.03 sec)\n\nSee http://dev.mysql.com/doc/refman/5.5/en/files-table.html.\n\nALTER TABLESPACE is useful only with Disk Data storage for MySQL\nCluster. See\nhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-disk-data.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/alter-tablespace.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/alter-tablespace.html'),(482,'DATABASE',17,'Syntax:\nDATABASE()\n\nReturns the default (current) database name as a string in the utf8\ncharacter set. If there is no default database, DATABASE() returns\nNULL. Within a stored routine, the default database is the database\nthat the routine is associated with, which is not necessarily the same\nas the database that is the default in the calling context.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT DATABASE();\n -> \'test\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(483,'IF FUNCTION',6,'Syntax:\nIF(expr1,expr2,expr3)\n\nIf expr1 is TRUE (expr1 <> 0 and expr1 <> NULL) then IF() returns\nexpr2; otherwise it returns expr3. IF() returns a numeric or string\nvalue, depending on the context in which it is used.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html\n\n','mysql> SELECT IF(1>2,2,3);\n -> 3\nmysql> SELECT IF(1<2,\'yes\',\'no\');\n -> \'yes\'\nmysql> SELECT IF(STRCMP(\'test\',\'test1\'),\'no\',\'yes\');\n -> \'no\'\n','http://dev.mysql.com/doc/refman/5.5/en/control-flow-functions.html'),(484,'ENUM',23,'ENUM(\'value1\',\'value2\',...) [CHARACTER SET charset_name] [COLLATE\ncollation_name]\n\nAn enumeration. A string object that can have only one value, chosen\nfrom the list of values \'value1\', \'value2\', ..., NULL or the special \'\'\nerror value. ENUM values are represented internally as integers.\n\nAn ENUM column can have a maximum of 65,535 distinct elements. (The\npractical limit is less than 3000.) A table can have no more than 255\nunique element list definitions among its ENUM and SET columns\nconsidered as a group. For more information on these limits, see\nhttp://dev.mysql.com/doc/refman/5.5/en/limits-frm-file.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(485,'POINTFROMWKB',33,'PointFromWKB(wkb[,srid])\n\nConstructs a Point value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/gis-wkb-functions.html'),(486,'POWER',3,'Syntax:\nPOWER(X,Y)\n\nThis is a synonym for POW().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(487,'ATAN',3,'Syntax:\nATAN(X)\n\nReturns the arc tangent of X, that is, the value whose tangent is X.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT ATAN(2);\n -> 1.1071487177941\nmysql> SELECT ATAN(-2);\n -> -1.1071487177941\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(488,'STRCMP',38,'Syntax:\nSTRCMP(expr1,expr2)\n\nSTRCMP() returns 0 if the strings are the same, -1 if the first\nargument is smaller than the second according to the current sort\norder, and 1 otherwise.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html\n\n','mysql> SELECT STRCMP(\'text\', \'text2\');\n -> -1\nmysql> SELECT STRCMP(\'text2\', \'text\');\n -> 1\nmysql> SELECT STRCMP(\'text\', \'text\');\n -> 0\n','http://dev.mysql.com/doc/refman/5.5/en/string-comparison-functions.html'),(489,'INSERT DELAYED',28,'Syntax:\nINSERT DELAYED ...\n\nThe DELAYED option for the INSERT statement is a MySQL extension to\nstandard SQL that is very useful if you have clients that cannot or\nneed not wait for the INSERT to complete. This is a common situation\nwhen you use MySQL for logging and you also periodically run SELECT and\nUPDATE statements that take a long time to complete.\n\nWhen a client uses INSERT DELAYED, it gets an okay from the server at\nonce, and the row is queued to be inserted when the table is not in use\nby any other thread.\n\nAnother major benefit of using INSERT DELAYED is that inserts from many\nclients are bundled together and written in one block. This is much\nfaster than performing many separate inserts.\n\nNote that INSERT DELAYED is slower than a normal INSERT if the table is\nnot otherwise in use. There is also the additional overhead for the\nserver to handle a separate thread for each table for which there are\ndelayed rows. This means that you should use INSERT DELAYED only when\nyou are really sure that you need it.\n\nThe queued rows are held only in memory until they are inserted into\nthe table. This means that if you terminate mysqld forcibly (for\nexample, with kill -9) or if mysqld dies unexpectedly, any queued rows\nthat have not been written to disk are lost.\n\nThere are some constraints on the use of DELAYED:\n\no INSERT DELAYED works only with MyISAM, MEMORY, ARCHIVE, and BLACKHOLE\n tables. For engines that do not support DELAYED, an error occurs.\n\no An error occurs for INSERT DELAYED if used with a table that has been\n locked with LOCK TABLES because the insert must be handled by a\n separate thread, not by the session that holds the lock.\n\no For MyISAM tables, if there are no free blocks in the middle of the\n data file, concurrent SELECT and INSERT statements are supported.\n Under these circumstances, you very seldom need to use INSERT DELAYED\n with MyISAM.\n\no INSERT DELAYED should be used only for INSERT statements that specify\n value lists. The server ignores DELAYED for INSERT ... SELECT or\n INSERT ... ON DUPLICATE KEY UPDATE statements.\n\no Because the INSERT DELAYED statement returns immediately, before the\n rows are inserted, you cannot use LAST_INSERT_ID() to get the\n AUTO_INCREMENT value that the statement might generate.\n\no DELAYED rows are not visible to SELECT statements until they actually\n have been inserted.\n\no Prior to MySQL 5.5.7, INSERT DELAYED was treated as a normal INSERT\n if the statement inserted multiple rows, binary logging was enabled,\n and the global logging format was statement-based (that is, whenever\n binlog_format was set to STATEMENT). Beginning with MySQL 5.5.7,\n INSERT DELAYED is always handled as a simple INSERT (that is, without\n the DELAYED option) whenever the value of binlog_format is STATEMENT\n or MIXED. (In the latter case, the statement no longer triggers a\n switch to row-based logging, and so is logged using the\n statement-based format.)\n\n This does not apply when using row-based binary logging mode\n (binlog_format set to ROW), in which INSERT DELAYED statements are\n always executed using the DELAYED option as specified, and logged as\n row-update events.\n\no DELAYED is ignored on slave replication servers, so that INSERT\n DELAYED is treated as a normal INSERT on slaves. This is because\n DELAYED could cause the slave to have different data than the master.\n\no Pending INSERT DELAYED statements are lost if a table is write locked\n and ALTER TABLE is used to modify the table structure.\n\no INSERT DELAYED is not supported for views.\n\no INSERT DELAYED is not supported for partitioned tables.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/insert-delayed.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/insert-delayed.html'),(490,'SHOW PROFILE',27,'Syntax:\nSHOW PROFILE [type [, type] ... ]\n [FOR QUERY n]\n [LIMIT row_count [OFFSET offset]]\n\ntype:\n ALL\n | BLOCK IO\n | CONTEXT SWITCHES\n | CPU\n | IPC\n | MEMORY\n | PAGE FAULTS\n | SOURCE\n | SWAPS\n\nThe SHOW PROFILE and SHOW PROFILES statements display profiling\ninformation that indicates resource usage for statements executed\nduring the course of the current session.\n\nProfiling is controlled by the profiling session variable, which has a\ndefault value of 0 (OFF). Profiling is enabled by setting profiling to\n1 or ON:\n\nmysql> SET profiling = 1;\n\nSHOW PROFILES displays a list of the most recent statements sent to the\nserver. The size of the list is controlled by the\nprofiling_history_size session variable, which has a default value of\n15. The maximum value is 100. Setting the value to 0 has the practical\neffect of disabling profiling.\n\nAll statements are profiled except SHOW PROFILE and SHOW PROFILES, so\nyou will find neither of those statements in the profile list.\nMalformed statements are profiled. For example, SHOW PROFILING is an\nillegal statement, and a syntax error occurs if you try to execute it,\nbut it will show up in the profiling list.\n\nSHOW PROFILE displays detailed information about a single statement.\nWithout the FOR QUERY n clause, the output pertains to the most\nrecently executed statement. If FOR QUERY n is included, SHOW PROFILE\ndisplays information for statement n. The values of n correspond to the\nQuery_ID values displayed by SHOW PROFILES.\n\nThe LIMIT row_count clause may be given to limit the output to\nrow_count rows. If LIMIT is given, OFFSET offset may be added to begin\nthe output offset rows into the full set of rows.\n\nBy default, SHOW PROFILE displays Status and Duration columns. The\nStatus values are like the State values displayed by SHOW PROCESSLIST,\nalthough there might be some minor differences in interpretion for the\ntwo statements for some status values (see\nhttp://dev.mysql.com/doc/refman/5.5/en/thread-information.html).\n\nOptional type values may be specified to display specific additional\ntypes of information:\n\no ALL displays all information\n\no BLOCK IO displays counts for block input and output operations\n\no CONTEXT SWITCHES displays counts for voluntary and involuntary\n context switches\n\no CPU displays user and system CPU usage times\n\no IPC displays counts for messages sent and received\n\no MEMORY is not currently implemented\n\no PAGE FAULTS displays counts for major and minor page faults\n\no SOURCE displays the names of functions from the source code, together\n with the name and line number of the file in which the function\n occurs\n\no SWAPS displays swap counts\n\nProfiling is enabled per session. When a session ends, its profiling\ninformation is lost.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-profile.html\n\n','mysql> SELECT @@profiling;\n+-------------+\n| @@profiling |\n+-------------+\n| 0 |\n+-------------+\n1 row in set (0.00 sec)\n\nmysql> SET profiling = 1;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> DROP TABLE IF EXISTS t1;\nQuery OK, 0 rows affected, 1 warning (0.00 sec)\n\nmysql> CREATE TABLE T1 (id INT);\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> SHOW PROFILES;\n+----------+----------+--------------------------+\n| Query_ID | Duration | Query |\n+----------+----------+--------------------------+\n| 0 | 0.000088 | SET PROFILING = 1 |\n| 1 | 0.000136 | DROP TABLE IF EXISTS t1 |\n| 2 | 0.011947 | CREATE TABLE t1 (id INT) |\n+----------+----------+--------------------------+\n3 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE;\n+----------------------+----------+\n| Status | Duration |\n+----------------------+----------+\n| checking permissions | 0.000040 |\n| creating table | 0.000056 |\n| After create | 0.011363 |\n| query end | 0.000375 |\n| freeing items | 0.000089 |\n| logging slow query | 0.000019 |\n| cleaning up | 0.000005 |\n+----------------------+----------+\n7 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE FOR QUERY 1;\n+--------------------+----------+\n| Status | Duration |\n+--------------------+----------+\n| query end | 0.000107 |\n| freeing items | 0.000008 |\n| logging slow query | 0.000015 |\n| cleaning up | 0.000006 |\n+--------------------+----------+\n4 rows in set (0.00 sec)\n\nmysql> SHOW PROFILE CPU FOR QUERY 2;\n+----------------------+----------+----------+------------+\n| Status | Duration | CPU_user | CPU_system |\n+----------------------+----------+----------+------------+\n| checking permissions | 0.000040 | 0.000038 | 0.000002 |\n| creating table | 0.000056 | 0.000028 | 0.000028 |\n| After create | 0.011363 | 0.000217 | 0.001571 |\n| query end | 0.000375 | 0.000013 | 0.000028 |\n| freeing items | 0.000089 | 0.000010 | 0.000014 |\n| logging slow query | 0.000019 | 0.000009 | 0.000010 |\n| cleaning up | 0.000005 | 0.000003 | 0.000002 |\n+----------------------+----------+----------+------------+\n7 rows in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/show-profile.html'),(491,'SHOW PROCEDURE CODE',27,'Syntax:\nSHOW PROCEDURE CODE proc_name\n\nThis statement is a MySQL extension that is available only for servers\nthat have been built with debugging support. It displays a\nrepresentation of the internal implementation of the named stored\nprocedure. A similar statement, SHOW FUNCTION CODE, displays\ninformation about stored functions (see [HELP SHOW FUNCTION CODE]).\n\nTo use either statement, you must be the owner of the routine or have\nSELECT access to the mysql.proc table.\n\nIf the named routine is available, each statement produces a result\nset. Each row in the result set corresponds to one \"instruction\" in the\nroutine. The first column is Pos, which is an ordinal number beginning\nwith 0. The second column is Instruction, which contains an SQL\nstatement (usually changed from the original source), or a directive\nwhich has meaning only to the stored-routine handler.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-procedure-code.html\n\n','mysql> DELIMITER //\nmysql> CREATE PROCEDURE p1 ()\n -> BEGIN\n -> DECLARE fanta INT DEFAULT 55;\n -> DROP TABLE t2;\n -> LOOP\n -> INSERT INTO t3 VALUES (fanta);\n -> END LOOP;\n -> END//\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> SHOW PROCEDURE CODE p1//\n+-----+----------------------------------------+\n| Pos | Instruction |\n+-----+----------------------------------------+\n| 0 | set fanta@0 55 |\n| 1 | stmt 9 \"DROP TABLE t2\" |\n| 2 | stmt 5 \"INSERT INTO t3 VALUES (fanta)\" |\n| 3 | jump 2 |\n+-----+----------------------------------------+\n4 rows in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.5/en/show-procedure-code.html'),(492,'MEDIUMTEXT',23,'MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name]\n\nA TEXT column with a maximum length of 16,777,215 (224 − 1)\ncharacters. The effective maximum length is less if the value contains\nmultibyte characters. Each MEDIUMTEXT value is stored using a 3-byte\nlength prefix that indicates the number of bytes in the value.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/string-type-overview.html'),(493,'LN',3,'Syntax:\nLN(X)\n\nReturns the natural logarithm of X; that is, the base-e logarithm of X.\nIf X is less than or equal to 0, then NULL is returned.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT LN(2);\n -> 0.69314718055995\nmysql> SELECT LN(-2);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(494,'RETURN',24,'Syntax:\nRETURN expr\n\nThe RETURN statement terminates execution of a stored function and\nreturns the value expr to the function caller. There must be at least\none RETURN statement in a stored function. There may be more than one\nif the function has multiple exit points.\n\nThis statement is not used in stored procedures, triggers, or events.\nThe LEAVE statement can be used to exit a stored program of those\ntypes.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/return.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/return.html'),(495,'SHOW COLLATION',27,'Syntax:\nSHOW COLLATION\n [LIKE \'pattern\' | WHERE expr]\n\nThis statement lists collations supported by the server. By default,\nthe output from SHOW COLLATION includes all available collations. The\nLIKE clause, if present, indicates which collation names to match. The\nWHERE clause can be given to select rows using more general conditions,\nas discussed in\nhttp://dev.mysql.com/doc/refman/5.5/en/extended-show.html. For example:\n\nmysql> SHOW COLLATION LIKE \'latin1%\';\n+-------------------+---------+----+---------+----------+---------+\n| Collation | Charset | Id | Default | Compiled | Sortlen |\n+-------------------+---------+----+---------+----------+---------+\n| latin1_german1_ci | latin1 | 5 | | | 0 |\n| latin1_swedish_ci | latin1 | 8 | Yes | Yes | 0 |\n| latin1_danish_ci | latin1 | 15 | | | 0 |\n| latin1_german2_ci | latin1 | 31 | | Yes | 2 |\n| latin1_bin | latin1 | 47 | | Yes | 0 |\n| latin1_general_ci | latin1 | 48 | | | 0 |\n| latin1_general_cs | latin1 | 49 | | | 0 |\n| latin1_spanish_ci | latin1 | 94 | | | 0 |\n+-------------------+---------+----+---------+----------+---------+\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/show-collation.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/show-collation.html'),(496,'LOG',3,'Syntax:\nLOG(X), LOG(B,X)\n\nIf called with one parameter, this function returns the natural\nlogarithm of X. If X is less than or equal to 0, then NULL is returned.\n\nThe inverse of this function (when called with a single argument) is\nthe EXP() function.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT LOG(2);\n -> 0.69314718055995\nmysql> SELECT LOG(-2);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(497,'SET SQL_LOG_BIN',8,'Syntax:\nSET sql_log_bin = {0|1}\n\nThe sql_log_bin variable controls whether logging to the binary log is\ndone. The default value is 1 (do logging). To change logging for the\ncurrent session, change the session value of this variable. The session\nuser must have the SUPER privilege to set this variable. Set this\nvariable to 0 for a session to temporarily disable binary logging while\nmaking changes to the master which you do not want to replicate to the\nslave.\n\nAs of MySQL 5.5, sql_log_bin can be set as a global or session\nvariable. Setting sql_log_bin globally is only detected when a new\nsession is started. Any sessions previously running are not impacted\nwhen setting sql_log_bin globally.\n\n*Warning*: Incorrect use of sql_log_bin with a global scope means any\nchanges made in an already running session are still being recorded to\nthe binary log and therefore replicated. Exercise extreme caution using\nsql_log_bin with a global scope as the above situation could cause\nunexpected results including replication failure.\n\nBeginning with MySQL 5.5.5, it is no longer possible to set\n@@session.sql_log_bin within a transaction or subquery. (Bug #53437)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/set-sql-log-bin.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/set-sql-log-bin.html'),(498,'!=',20,'Syntax:\n<>, !=\n\nNot equal:\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT \'.01\' <> \'0.01\';\n -> 1\nmysql> SELECT .01 <> \'0.01\';\n -> 0\nmysql> SELECT \'zapp\' <> \'zappp\';\n -> 1\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(499,'WHILE',24,'Syntax:\n[begin_label:] WHILE search_condition DO\n statement_list\nEND WHILE [end_label]\n\nThe statement list within a WHILE statement is repeated as long as the\nsearch_condition expression is true. statement_list consists of one or\nmore SQL statements, each terminated by a semicolon (;) statement\ndelimiter.\n\nA WHILE statement can be labeled. For the rules regarding label use,\nsee [HELP labels].\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/while.html\n\n','CREATE PROCEDURE dowhile()\nBEGIN\n DECLARE v1 INT DEFAULT 5;\n\n WHILE v1 > 0 DO\n ...\n SET v1 = v1 - 1;\n END WHILE;\nEND;\n','http://dev.mysql.com/doc/refman/5.5/en/while.html'),(500,'AES_DECRYPT',12,'Syntax:\nAES_DECRYPT(crypt_str,key_str)\n\nThis function decrypts data using the official AES (Advanced Encryption\nStandard) algorithm. For more information, see the description of\nAES_ENCRYPT().\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html'),(501,'DAYNAME',32,'Syntax:\nDAYNAME(date)\n\nReturns the name of the weekday for date. The language used for the\nname is controlled by the value of the lc_time_names system variable\n(http://dev.mysql.com/doc/refman/5.5/en/locale-support.html).\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html\n\n','mysql> SELECT DAYNAME(\'2007-02-03\');\n -> \'Saturday\'\n','http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html'),(502,'COERCIBILITY',17,'Syntax:\nCOERCIBILITY(str)\n\nReturns the collation coercibility value of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT COERCIBILITY(\'abc\' COLLATE latin1_swedish_ci);\n -> 0\nmysql> SELECT COERCIBILITY(USER());\n -> 3\nmysql> SELECT COERCIBILITY(\'abc\');\n -> 4\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(503,'INT',23,'INT[(M)] [UNSIGNED] [ZEROFILL]\n\nA normal-size integer. The signed range is -2147483648 to 2147483647.\nThe unsigned range is 0 to 4294967295.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html'),(504,'GLENGTH',13,'GLength(ls)\n\nReturns a double-precision number indicating the length of the\nLineString or MultiLineString value ls in its associated spatial\nreference. The length of a MultiLineString value is equal to the sum of\nthe lengths of its elements.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT GLength(GeomFromText(@ls));\n+----------------------------+\n| GLength(GeomFromText(@ls)) |\n+----------------------------+\n| 2.8284271247461903 |\n+----------------------------+\n\nmysql> SET @mls = \'MultiLineString((1 1,2 2,3 3),(4 4,5 5))\';\nmysql> SELECT GLength(GeomFromText(@mls));\n+-----------------------------+\n| GLength(GeomFromText(@mls)) |\n+-----------------------------+\n| 4.242640687119286 |\n+-----------------------------+\n','http://dev.mysql.com/doc/refman/5.5/en/gis-linestring-property-functions.html'),(505,'COLLATION',17,'Syntax:\nCOLLATION(str)\n\nReturns the collation of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT COLLATION(\'abc\');\n -> \'latin1_swedish_ci\'\nmysql> SELECT COLLATION(_utf8\'abc\');\n -> \'utf8_general_ci\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(506,'RADIANS',3,'Syntax:\nRADIANS(X)\n\nReturns the argument X, converted from degrees to radians. (Note that\nπ radians equals 180 degrees.)\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html\n\n','mysql> SELECT RADIANS(90);\n -> 1.5707963267949\n','http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html'),(507,'COALESCE',20,'Syntax:\nCOALESCE(value,...)\n\nReturns the first non-NULL value in the list, or NULL if there are no\nnon-NULL values.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html\n\n','mysql> SELECT COALESCE(NULL,1);\n -> 1\nmysql> SELECT COALESCE(NULL,NULL,NULL);\n -> NULL\n','http://dev.mysql.com/doc/refman/5.5/en/comparison-operators.html'),(508,'VERSION',17,'Syntax:\nVERSION()\n\nReturns a string that indicates the MySQL server version. The string\nuses the utf8 character set. The value might have a suffix in addition\nto the version number. See the description of the version system\nvariable in\nhttp://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/information-functions.html\n\n','mysql> SELECT VERSION();\n -> \'5.5.44-standard\'\n','http://dev.mysql.com/doc/refman/5.5/en/information-functions.html'),(509,'MAKE_SET',38,'Syntax:\nMAKE_SET(bits,str1,str2,...)\n\nReturns a set value (a string containing substrings separated by \",\"\ncharacters) consisting of the strings that have the corresponding bit\nin bits set. str1 corresponds to bit 0, str2 to bit 1, and so on. NULL\nvalues in str1, str2, ... are not appended to the result.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT MAKE_SET(1,\'a\',\'b\',\'c\');\n -> \'a\'\nmysql> SELECT MAKE_SET(1 | 4,\'hello\',\'nice\',\'world\');\n -> \'hello,world\'\nmysql> SELECT MAKE_SET(1 | 4,\'hello\',\'nice\',NULL,\'world\');\n -> \'hello\'\nmysql> SELECT MAKE_SET(0,\'a\',\'b\',\'c\');\n -> \'\'\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'),(510,'FIND_IN_SET',38,'Syntax:\nFIND_IN_SET(str,strlist)\n\nReturns a value in the range of 1 to N if the string str is in the\nstring list strlist consisting of N substrings. A string list is a\nstring composed of substrings separated by \",\" characters. If the first\nargument is a constant string and the second is a column of type SET,\nthe FIND_IN_SET() function is optimized to use bit arithmetic. Returns\n0 if str is not in strlist or if strlist is the empty string. Returns\nNULL if either argument is NULL. This function does not work properly\nif the first argument contains a comma (\",\") character.\n\nURL: http://dev.mysql.com/doc/refman/5.5/en/string-functions.html\n\n','mysql> SELECT FIND_IN_SET(\'b\',\'a,b,c,d\');\n -> 2\n','http://dev.mysql.com/doc/refman/5.5/en/string-functions.html'); /*!40000 ALTER TABLE `help_topic` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `host` -- DROP TABLE IF EXISTS `host`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `host` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', PRIMARY KEY (`Host`,`Db`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Host privileges; Merged with database privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `host` -- LOCK TABLES `host` WRITE; /*!40000 ALTER TABLE `host` DISABLE KEYS */; /*!40000 ALTER TABLE `host` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ndb_binlog_index` -- DROP TABLE IF EXISTS `ndb_binlog_index`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ndb_binlog_index` ( `Position` bigint(20) unsigned NOT NULL, `File` varchar(255) NOT NULL, `epoch` bigint(20) unsigned NOT NULL, `inserts` bigint(20) unsigned NOT NULL, `updates` bigint(20) unsigned NOT NULL, `deletes` bigint(20) unsigned NOT NULL, `schemaops` bigint(20) unsigned NOT NULL, PRIMARY KEY (`epoch`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ndb_binlog_index` -- LOCK TABLES `ndb_binlog_index` WRITE; /*!40000 ALTER TABLE `ndb_binlog_index` DISABLE KEYS */; /*!40000 ALTER TABLE `ndb_binlog_index` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin` -- DROP TABLE IF EXISTS `plugin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `plugin` ( `name` varchar(64) NOT NULL DEFAULT '', `dl` varchar(128) NOT NULL DEFAULT '', PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL plugins'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `plugin` -- LOCK TABLES `plugin` WRITE; /*!40000 ALTER TABLE `plugin` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `proc` -- DROP TABLE IF EXISTS `proc`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `proc` ( `db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `name` char(64) NOT NULL DEFAULT '', `type` enum('FUNCTION','PROCEDURE') NOT NULL, `specific_name` char(64) NOT NULL DEFAULT '', `language` enum('SQL') NOT NULL DEFAULT 'SQL', `sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL', `is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO', `security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER', `param_list` blob NOT NULL, `returns` longblob NOT NULL, `body` longblob NOT NULL, `definer` char(77) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') NOT NULL DEFAULT '', `comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `body_utf8` longblob, PRIMARY KEY (`db`,`name`,`type`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Stored Procedures'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `proc` -- LOCK TABLES `proc` WRITE; /*!40000 ALTER TABLE `proc` DISABLE KEYS */; /*!40000 ALTER TABLE `proc` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `procs_priv` -- DROP TABLE IF EXISTS `procs_priv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `procs_priv` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '', `Routine_type` enum('FUNCTION','PROCEDURE') COLLATE utf8_bin NOT NULL, `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '', `Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '', `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`), KEY `Grantor` (`Grantor`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Procedure privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `procs_priv` -- LOCK TABLES `procs_priv` WRITE; /*!40000 ALTER TABLE `procs_priv` DISABLE KEYS */; /*!40000 ALTER TABLE `procs_priv` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `proxies_priv` -- DROP TABLE IF EXISTS `proxies_priv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `proxies_priv` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Proxied_user` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `With_grant` tinyint(1) NOT NULL DEFAULT '0', `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '', `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`), KEY `Grantor` (`Grantor`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User proxy privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `proxies_priv` -- LOCK TABLES `proxies_priv` WRITE; /*!40000 ALTER TABLE `proxies_priv` DISABLE KEYS */; INSERT INTO `proxies_priv` VALUES ('localhost','root','','',1,'','2015-09-18 15:32:39'),('ra-334u-npc6zgw7zxd6-vgfjghpimfcn-server-672iq4kx3ruk','root','','',1,'','2015-09-18 15:32:39'); /*!40000 ALTER TABLE `proxies_priv` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `servers` -- DROP TABLE IF EXISTS `servers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `servers` ( `Server_name` char(64) NOT NULL DEFAULT '', `Host` char(64) NOT NULL DEFAULT '', `Db` char(64) NOT NULL DEFAULT '', `Username` char(64) NOT NULL DEFAULT '', `Password` char(64) NOT NULL DEFAULT '', `Port` int(4) NOT NULL DEFAULT '0', `Socket` char(64) NOT NULL DEFAULT '', `Wrapper` char(64) NOT NULL DEFAULT '', `Owner` char(64) NOT NULL DEFAULT '', PRIMARY KEY (`Server_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `servers` -- LOCK TABLES `servers` WRITE; /*!40000 ALTER TABLE `servers` DISABLE KEYS */; /*!40000 ALTER TABLE `servers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `tables_priv` -- DROP TABLE IF EXISTS `tables_priv`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tables_priv` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', `Grantor` char(77) COLLATE utf8_bin NOT NULL DEFAULT '', `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger') CHARACTER SET utf8 NOT NULL DEFAULT '', `Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '', PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`), KEY `Grantor` (`Grantor`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `tables_priv` -- LOCK TABLES `tables_priv` WRITE; /*!40000 ALTER TABLE `tables_priv` DISABLE KEYS */; /*!40000 ALTER TABLE `tables_priv` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_zone` -- DROP TABLE IF EXISTS `time_zone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `time_zone` ( `Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N', PRIMARY KEY (`Time_zone_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zones'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `time_zone` -- LOCK TABLES `time_zone` WRITE; /*!40000 ALTER TABLE `time_zone` DISABLE KEYS */; /*!40000 ALTER TABLE `time_zone` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_zone_leap_second` -- DROP TABLE IF EXISTS `time_zone_leap_second`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `time_zone_leap_second` ( `Transition_time` bigint(20) NOT NULL, `Correction` int(11) NOT NULL, PRIMARY KEY (`Transition_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Leap seconds information for time zones'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `time_zone_leap_second` -- LOCK TABLES `time_zone_leap_second` WRITE; /*!40000 ALTER TABLE `time_zone_leap_second` DISABLE KEYS */; /*!40000 ALTER TABLE `time_zone_leap_second` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_zone_name` -- DROP TABLE IF EXISTS `time_zone_name`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `time_zone_name` ( `Name` char(64) NOT NULL, `Time_zone_id` int(10) unsigned NOT NULL, PRIMARY KEY (`Name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone names'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `time_zone_name` -- LOCK TABLES `time_zone_name` WRITE; /*!40000 ALTER TABLE `time_zone_name` DISABLE KEYS */; /*!40000 ALTER TABLE `time_zone_name` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_zone_transition` -- DROP TABLE IF EXISTS `time_zone_transition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `time_zone_transition` ( `Time_zone_id` int(10) unsigned NOT NULL, `Transition_time` bigint(20) NOT NULL, `Transition_type_id` int(10) unsigned NOT NULL, PRIMARY KEY (`Time_zone_id`,`Transition_time`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transitions'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `time_zone_transition` -- LOCK TABLES `time_zone_transition` WRITE; /*!40000 ALTER TABLE `time_zone_transition` DISABLE KEYS */; /*!40000 ALTER TABLE `time_zone_transition` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_zone_transition_type` -- DROP TABLE IF EXISTS `time_zone_transition_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `time_zone_transition_type` ( `Time_zone_id` int(10) unsigned NOT NULL, `Transition_type_id` int(10) unsigned NOT NULL, `Offset` int(11) NOT NULL DEFAULT '0', `Is_DST` tinyint(3) unsigned NOT NULL DEFAULT '0', `Abbreviation` char(8) NOT NULL DEFAULT '', PRIMARY KEY (`Time_zone_id`,`Transition_type_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Time zone transition types'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `time_zone_transition_type` -- LOCK TABLES `time_zone_transition_type` WRITE; /*!40000 ALTER TABLE `time_zone_transition_type` DISABLE KEYS */; /*!40000 ALTER TABLE `time_zone_transition_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', `Password` char(41) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Reload_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Shutdown_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Process_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `File_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Show_db_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Super_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Repl_slave_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Repl_client_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_user_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `Create_tablespace_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `ssl_type` enum('','ANY','X509','SPECIFIED') CHARACTER SET utf8 NOT NULL DEFAULT '', `ssl_cipher` blob NOT NULL, `x509_issuer` blob NOT NULL, `x509_subject` blob NOT NULL, `max_questions` int(11) unsigned NOT NULL DEFAULT '0', `max_updates` int(11) unsigned NOT NULL DEFAULT '0', `max_connections` int(11) unsigned NOT NULL DEFAULT '0', `max_user_connections` int(11) unsigned NOT NULL DEFAULT '0', `plugin` char(64) COLLATE utf8_bin DEFAULT '', `authentication_string` text COLLATE utf8_bin, PRIMARY KEY (`Host`,`User`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and global privileges'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES ('localhost','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''),('ra-334u-npc6zgw7zxd6-vgfjghpimfcn-server-672iq4kx3ruk','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''),('127.0.0.1','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''),('::1','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',''),('localhost','debian-sys-maint','*143C428CC1CC68281C9994E201570C1DB60127AA','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL),('%','USERNAME','*845A9ADD7E1A82B6459804066B3A45D0025897B6','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL),('%','root','*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0,'',NULL); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `general_log` -- /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE IF NOT EXISTS `general_log` ( `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user_host` mediumtext NOT NULL, `thread_id` int(11) NOT NULL, `server_id` int(10) unsigned NOT NULL, `command_type` varchar(64) NOT NULL, `argument` mediumtext NOT NULL ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Table structure for table `slow_log` -- /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE IF NOT EXISTS `slow_log` ( `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user_host` mediumtext NOT NULL, `query_time` time NOT NULL, `lock_time` time NOT NULL, `rows_sent` int(11) NOT NULL, `rows_examined` int(11) NOT NULL, `db` varchar(512) NOT NULL, `last_insert_id` int(11) NOT NULL, `insert_id` int(11) NOT NULL, `server_id` int(10) unsigned NOT NULL, `sql_text` mediumtext NOT NULL ) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'; /*!40101 SET character_set_client = @saved_cs_client */; /*!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 2015-09-30 20:17:48
<filename>src/main/sql/seckill.sql<gh_stars>1-10 -- 秒杀执行存储过程 delimiter $$ CREATE PROCEDURE seckill.execute_seckill (IN v_seckill_id BIGINT, IN v_phone BIGINT, IN v_kill_time TIMESTAMP, OUT r_result INT) BEGIN -- 记录影响行数 DECLARE insert_count INT DEFAULT 0; START TRANSACTION; insert ignore into success_killed (seckill_id, user_phone, create_time) values (v_seckill_id, v_phone, v_kill_time); -- row_count()获取影响行数 select row_count() into insert_count; if(insert_count = 0) then ROLLBACK ; set r_result = -1; ELSEIF (insert_count < 0) THEN ROLLBACK ; set r_result = -2; ELSE UPDATE seckill set number = number - 1 where seckill_id = v_seckill_id and end_time > v_kill_time and start_time < v_kill_time and number > 0; select row_count() into insert_count; if(insert_count = 0) THEN ROLLBACK ; set r_result = 0; ELSEIF (insert_count < 0) THEN ROLLBACK ; set r_result = -2; ELSE COMMIT ; set r_result = 1; END IF; END IF; END; $$
select l_orderkey, l_linenumber from lineitem order by l_orderkey desc limit 3;
<reponame>RaulCalvoLaorden/bntoolkit<filename>sql.sql<gh_stars>10-100 /* Created: 02/22/2019 Modified: 09/11/2019 Model: PostgreSQL 10 Database: PostgreSQL 10 */ -- Create tables section ------------------------------------------------- -- Table hash CREATE TABLE hash( hash Text NOT NULL, source Text, first_seen Timestamp, path Text, name Text ) ; -- Create indexes for table hash CREATE INDEX IX_Relationship10 ON hash (name) ; -- Add keys for table hash ALTER TABLE hash ADD CONSTRAINT hashKey PRIMARY KEY (hash) ; -- Table possibles CREATE TABLE possibles( id Bigint NOT NULL, hash Text NOT NULL, download Boolean, valid Boolean, possible Boolean, num Bigint, "projectName" Text ) ; -- Create indexes for table possibles CREATE INDEX IX_Relationship7 ON possibles ("projectName") ; -- Add keys for table possibles ALTER TABLE possibles ADD CONSTRAINT possibleKey PRIMARY KEY (hash) ; -- Table project CREATE TABLE project( "projectName" Text NOT NULL, date Timestamp ) ; -- Add keys for table project ALTER TABLE project ADD CONSTRAINT projectKey PRIMARY KEY ("projectName") ; -- Table download CREATE TABLE download( date Timestamp NOT NULL, ip Inet NOT NULL, port int, hash Text NOT NULL, "projectName" Text ) ; -- Create indexes for table download CREATE INDEX IX_Relationship3 ON download (ip) ; CREATE INDEX IX_Relationship5 ON download (hash) ; CREATE INDEX IX_Relationship6 ON download (date) ; -- Add keys for table download ALTER TABLE download ADD CONSTRAINT downloadKey PRIMARY KEY (ip,hash,date,port) ; -- Table ip CREATE TABLE ip( ip Inet NOT NULL, "projectName" Text ) ; -- Create indexes for table ip CREATE INDEX IX_Relationship11 ON ip ("projectName") ; -- Add keys for table ip ALTER TABLE ip ADD CONSTRAINT ipKey PRIMARY KEY (ip) ; -- Table monitor CREATE TABLE monitor( hash Text NOT NULL, userName Text, "projectName" Text ) ; -- Create indexes for table monitor CREATE INDEX IX_Relationship8 ON monitor ("projectName") ; -- Add keys for table monitor ALTER TABLE monitor ADD CONSTRAINT monitorKey PRIMARY KEY (hash) ; -- Table alert CREATE TABLE alert( list Text NOT NULL, userName Text, ip Inet NOT NULL, "projectName" Text ) ; -- Create indexes for table alert CREATE INDEX IX_Relationship9 ON alert ("projectName") ; -- Add keys for table alert ALTER TABLE alert ADD CONSTRAINT alertKey PRIMARY KEY (ip) ; -- Create foreign keys (relationships) section ------------------------------------------------- ALTER TABLE download ADD CONSTRAINT Relationship3 FOREIGN KEY (ip) REFERENCES ip (ip) ON DELETE NO ACTION ON UPDATE NO ACTION ; ALTER TABLE download ADD CONSTRAINT Relationship5 FOREIGN KEY (hash) REFERENCES hash (hash) ON DELETE NO ACTION ON UPDATE NO ACTION ; ALTER TABLE alert ADD CONSTRAINT Relationship6 FOREIGN KEY (ip) REFERENCES ip (ip) ON DELETE NO ACTION ON UPDATE NO ACTION ; ALTER TABLE possibles ADD CONSTRAINT Relationship7 FOREIGN KEY ("projectName") REFERENCES project ("projectName") ON DELETE NO ACTION ON UPDATE NO ACTION ; ALTER TABLE monitor ADD CONSTRAINT Relationship8 FOREIGN KEY ("projectName") REFERENCES project ("projectName") ON DELETE NO ACTION ON UPDATE NO ACTION ; ALTER TABLE alert ADD CONSTRAINT Relationship9 FOREIGN KEY ("projectName") REFERENCES project ("projectName") ON DELETE NO ACTION ON UPDATE NO ACTION ; --ALTER TABLE hash ADD CONSTRAINT Relationship10 FOREIGN KEY ("projectName") REFERENCES project ("projectName") ON DELETE NO ACTION ON UPDATE NO ACTION --; ALTER TABLE ip ADD CONSTRAINT Relationship11 FOREIGN KEY ("projectName") REFERENCES project ("projectName") ON DELETE NO ACTION ON UPDATE NO ACTION ; --alert CREATE OR REPLACE FUNCTION notify_event() RETURNS TRIGGER AS $$ DECLARE data json; notification json; counter int; response TEXT; BEGIN --check if is in alert select COUNT(*) into counter from alert where ip >>= NEW.ip; --if its in alert notify IF (counter != 0 ) THEN response = 'DATE: ' || NEW.date::text || ', IP: ' ||NEW.ip::text || ', HASH: ' || NEW.hash::text || ', projectName: ' || NEW."projectName"::text ; PERFORM pg_notify('events', response); END IF; RETURN NULL; END; $$ LANGUAGE plpgsql; CREATE TRIGGER download_notify_event AFTER INSERT ON download FOR EACH ROW EXECUTE PROCEDURE notify_event();
<gh_stars>100-1000 SELECT fn_db_add_column('vds_dynamic', 'hosted_engine_configured', 'BOOLEAN NOT NULL DEFAULT FALSE');
-- -- OpenAPI Petstore. -- Prepared SQL queries for 'inline_object_1' definition. -- -- -- SELECT template for table `inline_object_1` -- SELECT `additionalMetadata`, `file` FROM `inline_object_1` WHERE 1; -- -- INSERT template for table `inline_object_1` -- INSERT INTO `inline_object_1`(`additionalMetadata`, `file`) VALUES (?, ?); -- -- UPDATE template for table `inline_object_1` -- UPDATE `inline_object_1` SET `additionalMetadata` = ?, `file` = ? WHERE 1; -- -- DELETE template for table `inline_object_1` -- DELETE FROM `inline_object_1` WHERE 0;
<reponame>emCOMP/twitter-mysql drop database if exists `journalists`; create database `journalists` DEFAULT CHARACTER SET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; USE `journalists`; SET SQL_MODE='ALLOW_INVALID_DATES'; #===================================== # drop instance tables #===================================== DROP TABLE IF EXISTS `tweets`; CREATE TABLE `tweets` ( `id` bigint NOT NULL, `created_at` varchar(64) DEFAULT NULL, `created_ts` DATETIME NULL DEFAULT NULL, `lang` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `text` varchar(500) CHARACTER SET utf8mb4 DEFAULT NULL, `geo_coordinates_0` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `geo_coordinates_1` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `contributors` JSON DEFAULT NULL, `counts` JSON DEFAULT NULL, `entities` JSON DEFAULT NULL, `filter_level` VARCHAR(80) DEFAULT NULL, `coordinates` JSON DEFAULT NULL, `place` JSON DEFAULT NULL, `possibly_sensitive` INT(1) DEFAULT NULL, `user` JSON DEFAULT NULL, `user_id` bigint DEFAULT NULL, `user_screen_name` varchar(140) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_followers_count` int DEFAULT NULL, `user_friends_count` int DEFAULT NULL, `user_statuses_count` int DEFAULT NULL, `user_favourites_count` int DEFAULT NULL, `user_geo_enabled` int(1) default NULL, `user_time_zone` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_description` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_location` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_created_at` varchar(64) DEFAULT NULL, `user_created_ts` DATETIME NULL DEFAULT NULL, `user_lang` varchar(8) default NULL, `user_listed_count` int DEFAULT NULL, `user_name` varchar(140) DEFAULT NULL, `user_url` varchar(512) DEFAULT NULL, `user_utc_offset` int DEFAULT NULL, `user_verified` int(1) DEFAULT NULL, `user_profile_use_background_image` int(1) DEFAULT NULL, `user_default_profile_image` int(1) DEFAULT NULL, `user_profile_sidebar_fill_color` varchar(16) DEFAULT NULL, `user_profile_text_color` varchar(16) DEFAULT NULL, `user_profile_sidebar_border_color` varchar(16) DEFAULT NULL, `user_profile_background_color` varchar(16) DEFAULT NULL, `user_profile_link_color` varchar(16) DEFAULT NULL, `user_profile_image_url` varchar(256) DEFAULT NULL, `user_profile_banner_url` varchar(256) DEFAULT NULL, `user_profile_background_image_url` varchar(256) DEFAULT NULL, `user_profile_background_tile` int(1) DEFAULT NULL, `user_contributors_enabled` int(1) DEFAULT NULL, `user_default_profile` int(1) DEFAULT NULL, `user_is_translator` int(1) DEFAULT NULL, `retweet_count` int DEFAULT NULL, `favorite_count` int DEFAULT NULL, `retweeted_status` JSON DEFAULT NULL, `retweeted_status_id` bigint DEFAULT NULL, `retweeted_status_user_screen_name` varchar(80) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `retweeted_status_retweet_count` int DEFAULT NULL, `retweeted_status_user_id` bigint DEFAULT NULL, `retweeted_status_user_time_zone` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `retweeted_status_user_friends_count` int DEFAULT NULL, `retweeted_status_user_statuses_count` int DEFAULT NULL, `retweeted_status_user_followers_count` int DEFAULT NULL, `source` varchar(500) DEFAULT NULL, `in_reply_to_screen_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `in_reply_to_status_id` bigint DEFAULT NULL, `in_reply_to_user_id` bigint DEFAULT NULL, `quoted_status_id` bigint DEFAULT NULL, `quoted_status_id_str` VARCHAR(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `quoted_status` JSON DEFAULT NULL, `truncated` int(1) DEFAULT NULL, `local_time` DATETIME NULL DEFAULT NULL, `rumor` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `codes_first` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `codes_uncertainty` int(1) default 0, `codes_implicit` int(1) default 0, `codes_ambiguity` int(1) default 0, PRIMARY KEY (`id`), INDEX `idx_tweets_user_screen_name` (`user_screen_name`), INDEX `idx_tweets_user_id` (`user_id`), FULLTEXT KEY `idx_tweets_oso_text` (`text`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE table alltypes( int_col INTEGER, float_col FLOAT, double_col DOUBLE, smallint_col SMALLINT, date_col DATE, time_col TIME, timestamp_col TIMESTAMP, datetime_col DATETIME, monetary_col MONETARY, numeric_col NUMERIC(12,4), char_col char(255), varchar_col varchar(255), nchar_col nchar(255), varnchar_col nchar varying(255), bit_col bit(8), varbit_col bit varying (255), set_col set(integer), sequence_col sequence(integer), multiset_col multiset(integer, varchar(255)), blob_col blob, clob_col clob ); insert into alltypes values(12345, 123.45, 1003.367, 123, date'2010-01-01', time'12:34:56', timestamp'2010-01-01 12:34:56 am', datetime'2010-01-01 12:34:56.123 am',1000, 123456.7890, '123', '123.45' ,N'123.45', N'123', b'01010101', b'111111111', {1,2,3,4,5} , {6,7,8,9}, {0,'a','b','c',13,14,15}, '123', '123'); select instr(int_col,'12',1) from alltypes; select instr('123456789',int_col,1) from alltypes; select instr(int_col, float_col,1) from alltypes; select instr(int_col, double_col,1) from alltypes; select instr(int_col, smallint_col,1) from alltypes; select instr(int_col,monetary_col,1) from alltypes; select instr(int_col, numeric_col,1) from alltypes; select instr(int_col, date_col,1) from alltypes; select instr(int_col, datetime_col,1) from alltypes; select instr(int_col, timestamp_col,1) from alltypes; select instr(int_col, time_col,1) from alltypes; select instr(int_col, bit_col,1) from alltypes; select instr(int_col, varbit_col,1) from alltypes; select instr(float_col,'cubrid') from alltypes; select instr('cubrid',float_col,1) from alltypes; select instr(float_col, float_col,1) from alltypes; select instr(float_col, double_col,1) from alltypes; select instr(float_col, smallint_col,1) from alltypes; select instr(float_col,monetary_col,1) from alltypes; select instr(float_col, numeric_col,1) from alltypes; select instr(float_col, date_col,1) from alltypes; select instr(float_col, datetime_col,1) from alltypes; select instr(float_col, timestamp_col,1) from alltypes; select instr(float_col, time_col,1) from alltypes; select instr(float_col, bit_col,1) from alltypes; select instr(float_col, varbit_col,1) from alltypes; select instr(float_col,'cubrid') from alltypes; select instr('cubrid',float_col,1) from alltypes; select instr(float_col, float_col,1) from alltypes; select instr(float_col, float_col,1) from alltypes; select instr(float_col, smallint_col,1) from alltypes; select instr(float_col,monetary_col,1) from alltypes; select instr(float_col, numeric_col,1) from alltypes; select instr(float_col, date_col,1) from alltypes; select instr(float_col, datetime_col,1) from alltypes; select instr(float_col, timestamp_col,1) from alltypes; select instr(float_col, time_col,1) from alltypes; select instr(float_col, bit_col,1) from alltypes; select instr(float_col, varbit_col,1) from alltypes; select instr(smallint_col,'cubrid') from alltypes; select instr('cubrid',smallint_col,1) from alltypes; select instr(smallint_col, float_col,1) from alltypes; select instr(smallint_col, double_col,1) from alltypes; select instr(smallint_col, smallint_col,1) from alltypes; select instr(smallint_col,monetary_col,1) from alltypes; select instr(smallint_col, numeric_col,1) from alltypes; select instr(smallint_col, date_col,1) from alltypes; select instr(smallint_col, datetime_col,1) from alltypes; select instr(smallint_col, timestamp_col,1) from alltypes; select instr(smallint_col, time_col,1) from alltypes; select instr(smallint_col, bit_col,1) from alltypes; select instr(smallint_col, varbit_col,1) from alltypes; select instr(monetary_col,'cubrid') from alltypes; select instr('cubrid',monetary_col,1) from alltypes; select instr(monetary_col, float_col,1) from alltypes; select instr(monetary_col, double_col,1) from alltypes; select instr(monetary_col, smallint_col,1) from alltypes; select instr(monetary_col,monetary_col,1) from alltypes; select instr(monetary_col, numeric_col,1) from alltypes; select instr(monetary_col, date_col,1) from alltypes; select instr(monetary_col, datetime_col,1) from alltypes; select instr(monetary_col, timestamp_col,1) from alltypes; select instr(monetary_col, time_col,1) from alltypes; select instr(monetary_col, bit_col,1) from alltypes; select instr(monetary_col, varbit_col,1) from alltypes; select instr(numeric_col,'cubrid') from alltypes; select instr('cubrid',numeric_col,1) from alltypes; select instr(numeric_col, float_col,1) from alltypes; select instr(numeric_col, double_col,1) from alltypes; select instr(numeric_col, smallint_col,1) from alltypes; select instr(numeric_col,monetary_col,1) from alltypes; select instr(numeric_col, numeric_col,1) from alltypes; select instr(numeric_col, date_col,1) from alltypes; select instr(numeric_col, datetime_col,1) from alltypes; select instr(numeric_col, timestamp_col,1) from alltypes; select instr(numeric_col, time_col,1) from alltypes; select instr(numeric_col, bit_col,1) from alltypes; select instr(numeric_col, varbit_col,1) from alltypes; select instr(date_col,'cubrid') from alltypes; select instr('cubrid',date_col,1) from alltypes; select instr(date_col, float_col,1) from alltypes; select instr(date_col, double_col,1) from alltypes; select instr(date_col, smallint_col,1) from alltypes; select instr(date_col,monetary_col,1) from alltypes; select instr(date_col, numeric_col,1) from alltypes; select instr(date_col, date_col,1) from alltypes; select instr(date_col, datetime_col,1) from alltypes; select instr(date_col, timestamp_col,1) from alltypes; select instr(date_col, time_col,1) from alltypes; select instr(date_col, bit_col,1) from alltypes; select instr(date_col, varbit_col,1) from alltypes; select instr(datetime_col,'cubrid') from alltypes; select instr('cubrid',datetime_col,1) from alltypes; select instr(datetime_col, float_col,1) from alltypes; select instr(datetime_col, double_col,1) from alltypes; select instr(datetime_col, smallint_col,1) from alltypes; select instr(datetime_col,monetary_col,1) from alltypes; select instr(datetime_col, numeric_col,1) from alltypes; select instr(datetime_col, date_col,1) from alltypes; select instr(datetime_col, datetime_col,1) from alltypes; select instr(datetime_col, timestamp_col,1) from alltypes; select instr(datetime_col, time_col,1) from alltypes; select instr(datetime_col, bit_col,1) from alltypes; select instr(datetime_col, varbit_col,1) from alltypes; select instr(time_col,'cubrid') from alltypes; select instr('cubrid',time_col,1) from alltypes; select instr(time_col, float_col,1) from alltypes; select instr(time_col, double_col,1) from alltypes; select instr(time_col, smallint_col,1) from alltypes; select instr(time_col,monetary_col,1) from alltypes; select instr(time_col, numeric_col,1) from alltypes; select instr(time_col, date_col,1) from alltypes; select instr(time_col, datetime_col,1) from alltypes; select instr(time_col, timestamp_col,1) from alltypes; select instr(time_col, time_col,1) from alltypes; select instr(time_col, bit_col,1) from alltypes; select instr(time_col, varbit_col,1) from alltypes; select instr(timestamp_col,'cubrid') from alltypes; select instr('cubrid',timestamp_col,1) from alltypes; select instr(timestamp_col, float_col,1) from alltypes; select instr(timestamp_col, double_col,1) from alltypes; select instr(timestamp_col, smallint_col,1) from alltypes; select instr(timestamp_col,monetary_col,1) from alltypes; select instr(timestamp_col, numeric_col,1) from alltypes; select instr(timestamp_col, date_col,1) from alltypes; select instr(timestamp_col, datetime_col,1) from alltypes; select instr(timestamp_col, timestamp_col,1) from alltypes; select instr(timestamp_col, time_col,1) from alltypes; select instr(timestamp_col, bit_col,1) from alltypes; select instr(timestamp_col, varbit_col,1) from alltypes; select instr(bit_col,'cubrid') from alltypes; select instr('cubrid',bit_col,1) from alltypes; select instr(bit_col, float_col,1) from alltypes; select instr(bit_col, double_col,1) from alltypes; select instr(bit_col, smallint_col,1) from alltypes; select instr(bit_col,monetary_col,1) from alltypes; select instr(bit_col, numeric_col,1) from alltypes; select instr(bit_col, date_col,1) from alltypes; select instr(bit_col, datetime_col,1) from alltypes; select instr(bit_col, timestamp_col,1) from alltypes; select instr(bit_col, time_col,1) from alltypes; select instr(bit_col, bit_col,1) from alltypes; select instr(bit_col, varbit_col,1) from alltypes; select instr(varbit_col,'cubrid') from alltypes; select instr('cubrid',varbit_col,1) from alltypes; select instr(varbit_col, float_col,1) from alltypes; select instr(varbit_col, double_col,1) from alltypes; select instr(varbit_col, smallint_col,1) from alltypes; select instr(varbit_col,monetary_col,1) from alltypes; select instr(varbit_col, numeric_col,1) from alltypes; select instr(varbit_col, date_col,1) from alltypes; select instr(varbit_col, datetime_col,1) from alltypes; select instr(varbit_col, timestamp_col,1) from alltypes; select instr(varbit_col, time_col,1) from alltypes; select instr(varbit_col, bit_col,1) from alltypes; select instr(varbit_col, varbit_col,1) from alltypes; select if(instr(123.45,123,1) = instr('123.45','123',1), 'ok','nok'); select if(instr(123.45,56.7) = instr('123.45','56.7',1), 'ok','nok'); select if(instr(cast(123.45 as numeric(10,2)),'cubrid',1) = instr('123.45','cubrid',1), 'ok','nok'); select if(instr(cast(123.45 as monetary),'123',1) = instr('$123.45','123',1), 'ok','nok'); select if(instr(time'12:00:00 am',date'2010-01-01',1) = instr('12:00:00 am','2010-01-01',1),'ok','nok')); select if(instr(datetime'2010-01-01 12:00:00.123 am',time'12:00:00 am',1) = instr('2010-01-01 12:00:00.123 am','12:00:00 am',1),'ok','nok'); select if(instr(timestamp'2010-01-01 12:00:00 am',date'1987-11-16',1) = instr('2010-01-01 12:00:00 am','1987-11-16',1),'ok','nok'); select if(instr(date'2010-01-01',b'101010',1) = instr('2010-01-01',cast(b'101010' as string),1),'ok','nok'); select if(instr(b'10101010',timestamp'2010-01-01 12:00:00 am',1) = instr(cast (b'10101010' as string),'2010-01-01 12:00:00 am',1),'ok','nok'); $varchar, $123, $varchar, $12.3 select instr(?,?) from db_root; $varchar, $123, $varchar, $12.3 select if (instr(?,?) = instr(123,12.3), 'ok','nok') from db_root; drop table alltypes;
-- @testpoint:结合存储过程,隐式游标,结合create语句,属性%FOUND的使用; --前置条件 drop table if exists cur_test_148; create table cur_test_148(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20)); insert into cur_test_148 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(2,368,'Bob','Shanghai','AAAAACAAAAA'), (3,59,'Cathy','Shenzhen','AAAAADAAAAA'),(4,96,'David','Suzhou','AAAAAEAAAAA'), (5,17,'Edrwd','Fenghuang','AAAAAFAAAAA'),(6,253,'Fendi','Changsha','AAAAAGAAAAA'); --创建存储过程,结合create语句,隐式游标属性%FOUND,没有读记录返回,游标属性未生效; drop procedure if exists cursor_ftest_148; create or replace procedure cursor_ftest_148() as begin create table test_148(id int); if sql%found then delete from cur_test_148 where c_id <= 3; end if; end; / call cursor_ftest_148(); --属性未生效,不影响下一步SQL执行结果 select * from cur_test_148; drop table cur_test_148; drop table test_148; drop procedure cursor_ftest_148;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2020 at 04:37 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 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: `ussaodisha` -- -- -------------------------------------------------------- -- -- Table structure for table `gallery` -- CREATE TABLE `gallery` ( `gallery_id` int(11) NOT NULL, `image_name` varchar(255) NOT NULL, `date` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `gallery` -- INSERT INTO `gallery` (`gallery_id`, `image_name`, `date`) VALUES (8, '1606760243_a26fe41788b46e7f1a27.jpg', '30-Nov-2020'); -- -------------------------------------------------------- -- -- Table structure for table `posts` -- CREATE TABLE `posts` ( `Post_id` int(200) NOT NULL, `Post_title` varchar(255) NOT NULL, `Post_description` text NOT NULL, `Post_date` varchar(200) NOT NULL, `Post_owner` int(200) NOT NULL, `Post_image` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `posts` -- INSERT INTO `posts` (`Post_id`, `Post_title`, `Post_description`, `Post_date`, `Post_owner`, `Post_image`) VALUES (13, 'test1', 'test1', '30-Nov-2020', 1, '1606758764_820e3908f336a1392265.jpg'), (14, 'second data', 'second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post second post post ', '30-Nov-2020', 1, '1606758806_4531d2645e36f97783b0.jpg'), (15, 'This is Second Post From Dhiraj', 'data not Available', '30-Nov-2020', 1, '1606760338_2753a8f89974e04bf5b8.jpg'), (16, 'test4', 'test4', '30-Nov-2020', 1, '1606760456_c8f9e4ca58dafb319e6d.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `subscriber` -- CREATE TABLE `subscriber` ( `Sub_id` int(255) NOT NULL, `Emails` varchar(255) NOT NULL, `Sub_name` varchar(255) DEFAULT 'null', `Sub_message` varchar(255) DEFAULT 'null', `Date` varchar(255) NOT NULL, `Time` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `subscriber` -- INSERT INTO `subscriber` (`Sub_id`, `Emails`, `Sub_name`, `Sub_message`, `Date`, `Time`) VALUES (8, '<EMAIL>', NULL, NULL, '30-Nov-2020', '02-11-25-am'), (10, '<EMAIL>', '<NAME>', 'admin', '30-Nov-2020', '10-11-35-am'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `user_id` int(255) NOT NULL, `Name` varchar(255) NOT NULL, `Surname` varchar(255) NOT NULL, `Email` varchar(255) NOT NULL, `Password` varchar(200) NOT NULL, `Role` int(1) NOT NULL DEFAULT 0, `State` varchar(255) DEFAULT NULL, `City` varchar(255) DEFAULT NULL, `Zip` int(50) DEFAULT NULL, `profile_image` varchar(255) DEFAULT NULL, `Created_At` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users` -- INSERT INTO `users` (`user_id`, `Name`, `Surname`, `Email`, `Password`, `Role`, `State`, `City`, `Zip`, `profile_image`, `Created_At`) VALUES (1, 'Dhiraj', '<PASSWORD>h', '<EMAIL>', <PASSWORD>', 1, 'Maharashtra', 'Bhusawal', 425201, '1606581004_3d8fb2676470842cc7a3.jpg', '2020-09-28 07:36:49'), (2, 'Amol', 'Patil', '<EMAIL>', <PASSWORD>', 0, 'Maharashtra', 'Mumbai', 400001, 'dhiraj.jpg', '2020-09-28 08:27:36'); -- -- Indexes for dumped tables -- -- -- Indexes for table `gallery` -- ALTER TABLE `gallery` ADD PRIMARY KEY (`gallery_id`); -- -- Indexes for table `posts` -- ALTER TABLE `posts` ADD PRIMARY KEY (`Post_id`), ADD KEY `UserKey` (`Post_owner`); -- -- Indexes for table `subscriber` -- ALTER TABLE `subscriber` ADD PRIMARY KEY (`Sub_id`), ADD UNIQUE KEY `Emails` (`Emails`); -- -- 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 `gallery` -- ALTER TABLE `gallery` MODIFY `gallery_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `posts` -- ALTER TABLE `posts` MODIFY `Post_id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `subscriber` -- ALTER TABLE `subscriber` MODIFY `Sub_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `user_id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- Constraints for dumped tables -- -- -- Constraints for table `posts` -- ALTER TABLE `posts` ADD CONSTRAINT `UserKey` FOREIGN KEY (`Post_owner`) REFERENCES `users` (`user_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 */;
-- Revert database-registration-view-data:privileges/registration_resource from pg BEGIN; REVOKE USAGE ON SCHEMA registration FROM registration_resource; REVOKE SELECT ON registration.registrations FROM registration_resource; COMMIT;
-- Drop the employeeDB if it already exists DROP DATABASE IF EXISTS employeeDB; -- Create the DB "employeeDB" (only works on local connections) CREATE DATABASE employeeDB; -- Use the DB employeeDB for all the rest of the script USE employeeDB; -- Create the table "employeeTable" CREATE TABLE employeeTable ( id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, role_id INT, manager_id INT ); -- Create the table "roleTable" CREATE TABLE roleTable ( id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, title VARCHAR(50) NOT NULL, salary DECIMAL, department_id INT ); -- Create the table "departmentTable" CREATE TABLE departmentTable ( id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, name VARCHAR(50) NOT NULL ); -- Create a few departments to start with. INSERT INTO departmentTable (name) VALUES ("Department of Magical Law Enforcement"), ("Department of Mysteries"), ("Department of Magical Transportation"); -- Create a few roles to start with. INSERT INTO roleTable (title, salary, department_id) VALUES ("Chief Warlock", 95000, 1), ("Head Witch", 95000, 2), ("Master Muggle Watcher", 80000, 3); -- Create a few employees to start with. INSERT INTO employeeTable (firstName, lastName, role_id, manager_id) VALUES ("Jimmy", "Stix", 1, 1), ("Bill", "Stickers", 3, 2), ("Patricia", "Bullbox", 2, 3);
<gh_stars>0 DEF title = 'Full SQL Text and Plans'; DEF filename = '99_FullSqlTextAndPlans.sql'; DEF nextpage = '00_oracleperf.html'; DEF prevpage = 'SqlPlanDirectives.html'; SET TERMOUT OFF; SET HEADING OFF; SET PAGESIZE 0; SET TRIMSPOOL ON; SET FEEDBACK OFF; SET LINESIZE 250; DEFINE TopNumber = 100; DEFINE TopPlans = 3; /****** Reset files ******/ SPOOL html/FullSqlTextAndPlans.txt REPLACE; SPOOL html/FullSqlTextAndPlans.html REPLACE; PRO <!DOCTYPE html> PRO <html> PRO <head> PRO <title>&&title</title> PRO <link rel="stylesheet" type="text/css" href="oracleperf.css"> PRO </head> PRO <body> PRO <h1>&&title</h1> PRO <hr> PRO <br> PRO <a href="00_oracleperf.html">Back to main page</a> SPOOL OFF; /****** Generate list of SQL_IDs ******/ SET TERMOUT ON; PRO Generating list of SQL IDs SET TERMOUT OFF; SPOOL sql/99_full.sql REPLACE; WITH sqlstats AS ( SELECT sql_id, SUM(executions) AS executions, SUM(elapsed_time) AS elapsed_time, ROUND(SUM(elapsed_time)/1000000/NVL(NULLIF(SUM(executions),0),1),3) AS elaps_per_exec, SUM(buffer_gets) AS buffer_gets, SUM(disk_reads) AS disk_reads, SUM(rows_processed) AS rows_processed/*, SUM(application_wait_time) AS application_wait_time, SUM(concurrency_wait_time) AS concurrency_wait_time, SUM(cluster_wait_time) AS cluster_wait_time, SUM(user_io_wait_time) AS user_io_wait_time*/ FROM v$sqlstats WHERE sql_text NOT LIKE 'SELECT /* DS_SVC */%' AND sql_text NOT LIKE '/* SQL Analyze(%' AND sql_text NOT LIKE '%/*gather_info_script*/%' GROUP BY sql_id ), --######################################### top_elapsed_time AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE elapsed_time > 10000000 -- nothing less than 10 sec ORDER BY elapsed_time DESC) WHERE rownum <= &TopNumber), --######################################### top_elap_per_exec AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE elaps_per_exec >= 1 -- nothing less than 1 sec ORDER BY elaps_per_exec DESC) WHERE rownum <= &TopNumber), --######################################### top_buffer_gets AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE buffer_gets > 10000 ORDER BY buffer_gets DESC) WHERE rownum <= &TopNumber), --######################################### top_disk_reads AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE disk_reads > 10000 ORDER BY disk_reads DESC) WHERE rownum <= &TopNumber), --######################################### top_executions AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE executions > 1000 ORDER BY executions DESC) WHERE rownum <= &TopNumber), --######################################### top_rows_per_exec AS ( SELECT sql_id, elapsed_time FROM ( SELECT sql_id, elapsed_time FROM sqlstats WHERE rows_processed > 200000 ORDER BY rows_processed/NVL(NULLIF(executions,0),1) DESC) WHERE rownum <= &TopNumber) --######################################### SELECT '@sql/sqlid.sql '||sql_id--, FROM ( SELECT sql_id, elapsed_time FROM top_elapsed_time UNION SELECT sql_id, elapsed_time FROM top_elap_per_exec UNION SELECT sql_id, elapsed_time FROM top_buffer_gets UNION SELECT sql_id, elapsed_time FROM top_disk_reads UNION SELECT sql_id, elapsed_time FROM top_executions UNION SELECT sql_id, elapsed_time FROM top_rows_per_exec) ORDER BY elapsed_time DESC; SPOOL OFF; SET HEADING ON; SET PAGESIZE 0 EMBEDDED ON; /****** Generate FullSqlTextAndPlans.txt and FullSqlTextAndPlans.html ******/ @sql/99_full.sql /****** End of file ******/ SPOOL html/FullSqlTextAndPlans.html APPEND; @@00_end.sql SET PAGESIZE 35; SET TERMOUT ON; PRO Done!
/* SQLyog Enterprise - MySQL GUI v8.12 MySQL - 5.6.17 : Database - sximo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*Table structure for table `tb_module` */ DROP TABLE IF EXISTS `tb_module`; CREATE TABLE `tb_module` ( `module_id` int(11) NOT NULL AUTO_INCREMENT, `module_name` varchar(100) DEFAULT NULL, `module_title` varchar(100) DEFAULT NULL, `module_note` varchar(255) DEFAULT NULL, `module_author` varchar(100) DEFAULT NULL, `module_created` timestamp NULL DEFAULT NULL, `module_desc` text, `module_db` varchar(255) DEFAULT NULL, `module_db_key` varchar(100) DEFAULT NULL, `module_type` enum('master','report','proccess','core','generic','addon','ajax') DEFAULT 'master', `module_config` longtext, `module_lang` text, PRIMARY KEY (`module_id`) ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8; /*Data for the table `tb_module` */ insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (1,'users','User Lists','View All Users','Mango Tm','2013-07-10 15:46:46',NULL,'tb_users','id','core','<KEY>','{\"title\":{\"id\":\"\"},\"note\":{\"id\":\"\"}}'); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (2,'groups','Users Group','View All','Mango Tm','2013-07-10 06:45:14',NULL,'tb_groups','group_id','core','<KEY>','{\"title\":{\"id\":\"\"},\"note\":{\"id\":\"\"}}'); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (4,'module','Module Management','All module applications','Mango Tm','2013-08-25 04:58:43',NULL,'tb_module','module_id','core','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (7,'menu','Menu Management','Manage All Menu','Mango Tm','2014-01-06 07:50:29',NULL,'tb_menu','menu_id','core','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (8,'pages','Pages CMS Management','View all static pages','Mango Tm','2014-03-25 22:33:41',NULL,'tb_pages','pageID','ajax','<KEY>','{\"title\":{\"in\":\"\",\"pt-br\":\"\"},\"note\":{\"in\":\"\",\"pt-br\":\"\"}}'); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (11,'logs','Logs','Users Activity Log','Mango Tm','2014-04-21 22:59:43',NULL,'tb_logs','auditID','core','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (21,'notification','Notification','View my notification',NULL,'2015-07-09 05:20:42',NULL,'tb_notification','id','core','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (22,'vendor','Vendor','view all vendors',NULL,'2015-12-09 01:27:09',NULL,'tb_vendor','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (23,'calendar','Calendar','Simple calendar starter',NULL,'2015-07-06 11:25:47',NULL,'tb_calendar','id','ajax','<KEY>','{\"title\":{\"id\":\"\"},\"note\":{\"id\":\"\"}}'); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (41,'sbinovice','Invoices','All Invoices',NULL,'2015-08-01 02:14:06',NULL,'sb_invoices','InvoiceID','ajax','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (42,'sbinvoiceitem','Invoice Items','View All Invoice Items',NULL,'2015-08-01 02:21:57',NULL,'sb_invoiceitems','ItemID','ajax','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (43,'sbproduct','Invoice Products','View All Products',NULL,'2015-08-01 22:20:11',NULL,'sb_invoiceproducts','ProductID','ajax','<KEY>','{\"title\":{\"id\":\"\"},\"note\":{\"id\":\"\"}}'); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (44,'employee','Employee','View All Employee',NULL,'2015-06-16 04:31:18',NULL,'employees','id','ajax','<KEY>); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (45,'customer','Customer','View All Customer',NULL,'2015-06-16 04:28:50',NULL,'customers','customerNumber','ajax','<KEY>); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (46,'order','Orders','View All Orders',NULL,'2015-06-16 04:34:42',NULL,'tb_orders','orderNumber','ajax','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (47,'orderdetail','Order Details','View Order details',NULL,'2015-06-16 04:38:03',NULL,'orderdetails','productCode','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (48,'product','Products','View All Products',NULL,'2015-06-16 10:08:22',NULL,'tb_products','productId','ajax','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (57,'reports','Report Location Not Responding','Report all locations which are not responding',NULL,'2015-12-30 03:49:09',NULL,'location','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (58,'sbticket','Tickets','View All Tickets',NULL,'2015-08-02 23:25:50',NULL,'sb_tickets','TicketID','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (60,'topgame','Top Game Report','top game report',NULL,'2016-01-04 12:41:36',NULL,'game_earnings','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (61,'bottomgame','Bottom Game Report','bottom game report',NULL,'2016-01-06 09:06:26',NULL,'game_earnings','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (66,'department','Departments','view all departments',NULL,'2016-01-06 07:36:14',NULL,'departments','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (67,'location','Locations','view all location',NULL,'2016-01-06 08:00:29',NULL,'location','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (68,'game','Games','view all games',NULL,'2016-01-06 08:11:01',NULL,'game','id','ajax','<KEY>NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (69,'gamesdown','Games Down','Report all games which are down',NULL,'2016-01-07 20:19:51',NULL,'game','id','ajax','<KEY>',NULL); insert into `tb_module`(`module_id`,`module_name`,`module_title`,`module_note`,`module_author`,`module_created`,`module_desc`,`module_db`,`module_db_key`,`module_type`,`module_config`,`module_lang`) values (70,'ticketcomment','TicketComment','view employees comment',NULL,'2016-01-13 06:11:04',NULL,'sb_ticketcomments','CommentID','ajax','<KEY>NULL); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
SELECT nomeproduto, precounitario, tempoentrega FROM produtos WHERE precounitario = 12 AND tempoentrega = 5 ORDER BY precounitario ASC LIMIT 10
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 18-Jun-2021 às 22:08 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.3 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: `crudwithviacepapi` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `cliente` -- CREATE TABLE `cliente` ( `idCliente` int(11) NOT NULL, `nome` varchar(255) COLLATE utf8_bin NOT NULL, `cpf` varchar(15) COLLATE utf8_bin NOT NULL, `dataNasc` date NOT NULL, `email` varchar(100) COLLATE utf8_bin NOT NULL, `endereco_idEndereco` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Extraindo dados da tabela `cliente` -- INSERT INTO `cliente` (`idCliente`, `nome`, `cpf`, `dataNasc`, `email`, `endereco_idEndereco`) VALUES (34, '<NAME>', '11123546897', '1998-04-15', '<EMAIL>', 15), (35, '<NAME>', '55879635443', '1988-05-25', '<EMAIL>', 16), (36, '<NAME>', '54788665214', '1985-07-28', '<EMAIL>', 17), (37, '<NAME>', '02544789632', '1951-02-23', '<EMAIL>', 18); -- -------------------------------------------------------- -- -- Estrutura da tabela `endereco` -- CREATE TABLE `endereco` ( `idEndereco` int(11) NOT NULL, `logradouro` varchar(200) COLLATE utf8_bin NOT NULL, `numero` varchar(45) COLLATE utf8_bin DEFAULT NULL, `bairro` varchar(250) COLLATE utf8_bin DEFAULT NULL, `cidade` varchar(250) COLLATE utf8_bin DEFAULT NULL, `uf` varchar(250) COLLATE utf8_bin DEFAULT NULL, `cep` varchar(8) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Extraindo dados da tabela `endereco` -- INSERT INTO `endereco` (`idEndereco`, `logradouro`, `numero`, `bairro`, `cidade`, `uf`, `cep`) VALUES (15, 'Rua Peixes', '3', 'Ulisses Guimarães', 'Porto Velho', 'RO', '76813852'), (16, 'Rua Peixes', '36', 'Ulisses Guimarães', 'Porto Velho', 'RO', '76813852'), (17, 'Rua Barra VelhaJardim Lancaster V', 'S/N', 'Três Bandeiras', 'Foz do Iguaçu', 'PR', '85869716'), (18, '<NAME>', '11954', 'Ulisses Guimarães', 'Porto Velho', 'RO', '76813854'); -- -- Índices para tabelas despejadas -- -- -- Índices para tabela `cliente` -- ALTER TABLE `cliente` ADD PRIMARY KEY (`idCliente`,`endereco_idEndereco`), ADD KEY `fk_cliente_endereco_idx` (`endereco_idEndereco`); -- -- Índices para tabela `endereco` -- ALTER TABLE `endereco` ADD PRIMARY KEY (`idEndereco`); -- -- AUTO_INCREMENT de tabelas despejadas -- -- -- AUTO_INCREMENT de tabela `cliente` -- ALTER TABLE `cliente` MODIFY `idCliente` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39; -- -- AUTO_INCREMENT de tabela `endereco` -- ALTER TABLE `endereco` MODIFY `idEndereco` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- Restrições para despejos de tabelas -- -- -- Limitadores para a tabela `cliente` -- ALTER TABLE `cliente` ADD CONSTRAINT `fk_cliente_endereco` FOREIGN KEY (`endereco_idEndereco`) REFERENCES `endereco` (`idEndereco`) 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 */;
alter table users add constraint U2_username unique (username);
create table customer( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), address1 VARCHAR(255), address2 VARCHAR(255), city VARCHAR(255), state VARCHAR(255), zip VARCHAR(255), create_timestamp TIMESTAMP, update_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP() );
<gh_stars>0 -- // drop the DB and recreate good version to use DROP DATABASE IF EXISTS bryon_employee_mgt_system CREATE DATABASE bryon_employee_mgt_system USE bryon_employee_mgt_system -- // create the table for the employees Create Table department ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) UNIQUE NOT NULL, ); -- creat the roll table Create Table department ( id INT AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50) UNIQUE NOT NULL, salary DECIMAL NOT NULL, department_id INT NOT NULL, CONSTRAINT fk_department FOREIGN KEY (department_id) References department(id) on delete cascade ); -- employees Create Table department ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(50) UNIQUE NOT NULL, last_name DECIMAL NOT NULL, role_id INT NOT NULL manager_id INT, CONSTRAINT fk_department FOREIGN KEY (manager_id) References employee(id) on delete set null );
select id, name from users where id=1 CREATE TABLE order_header ( order_id integer NOT NULL, cust_name varchar(50) NOT NULL, PRIMARY KEY (order_id) ) create table person ( id int, firstName varchar(100), lastName varchar(100), jobTitle varchar(100), department varchar(100), personType varchar(100) DEFAULT NULL, employeeType varchar(100) DEFAULT NULL) INSERT INTO profile VALUES('j2ee','english','DOGS',1,1) create table person (id int, nr_department int) create table user_profile ( id int, name varchar(20)) SELECT * FROM BLOG WHERE ID in ( one = ? AND two = ? AND three = ? ) INSERT INTO account VALUES('ACID','<EMAIL>','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555') INSERT INTO test VALUES('A2', 'B2') create table person (id int,name varchar(32),billing_address_id int,shipping_address_id int,room_id int) select col1, col2 from parent where id = #{id} create table person ( id int, firstName varchar(100), lastName varchar(100), parent_id int default null, parent_firstName varchar(100) default null, parent_lastName varchar(100) default null) select * from person create table room (room_id int,room_name varchar(32)) insert into users values(2, 'User2') create table car ( car_id int, name varchar(20)) create table part ( part_id int, name varchar(20), car_id int) insert into users values(3, 'User3') select firstName from ibtest.names where id=${value} insert into Child values (1, 'Ana', 'Garcia', 1, 1) create table items ( id int, owner int, name varchar(20)) select * from users where id = #{id} and name = #{name} create table Father ( id int, name varchar(100), grand_father_id int) create table child( id integer, value varchar(20)) insert into common values (#{id}, #{name}) create table pet (pet_id int, owner_id int, pet_name varchar(32)) SELECT * FROM post create table user (id int,username varchar(32) not null,password varchar(128) not null,administrator boolean,primary key (id)) insert into users values(1, 'User1', 1, 2) SELECT * FROM author WHERE id = ? select userid from account where userid = 'j2ee';" + System.getProperty("line.separator insert into users values(#{id}, #{name}) create table users ( id int, name varchar(20), group_id int, rol_id int) create table signon (username varchar(25) not null,password varchar(25) not null,constraint pk_signon primary key (username)) SELECT * FROM BLAH select * from inventory; CREATE TABLE address( id int NOT NULL, CONSTRAINT pk_address PRIMARY KEY (id),) insert into users values(2, 'User2', 1, 2) CREATE TABLE FOO(field1 integer,field2 integer,field3 integer,field4 integer) select * from users where name = #{name} SELECT * FROM author ORDER BY id SELECT * FROM BLOG WHERE CATEGORY = 'DEFAULT' create table users ( id int, name varchar(20)) CREATE TABLE author (id INT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 10000),username VARCHAR(255) NOT NULL,password VARCHAR(255) NOT NULL,email VARCHAR(255) NOT NULL,bio CLOB,favourite_section VARCHAR(25),PRIMARY KEY (id)) create table properties ( item_id int, property_id int, value varchar(20)) create table users (id int,name varchar(16)) create table account (userid varchar(80) not null,email varchar(80) not null,firstname varchar(80) not null,lastname varchar(80) not null,status varchar(2) null,addr1 varchar(80) not null,addr2 varchar(40) null,city varchar(80) not null,state varchar(80) not null,zip varchar(20) not null,country varchar(20) not null,phone varchar(80) not null,constraint pk_account primary key (userid)) select id, username, password, email, bio, favourite_section from author where id = #{id} insert into hsql values (#{id}, #{name}) create table pet (id int,parent_id int,name varchar(20)) create table phone (id int,phone varchar(32),area_code varchar(2)) insert into folder values(3, 'Folder 2', 1) update product set category = ? where productid = ? select null from (values(0)) select name from car where doors = #{doors[1]} create table teacher ( id int, name varchar(100)) insert into users values(4, 'User4', 2, 2) select * from mbtest.order_detail ; create table books ( version int, name varchar(20)) insert into users values(4, 'User4', 1, 1) create table zip (state varchar(32),city varchar(32),zip_code int) create table users ( id int, name varchar(20), unknownObject varchar(20)) create table category (catid varchar(10) not null,name varchar(80) null,descn varchar(255) null,constraint pk_category primary key (catid)) SELECT * FROM blog ORDER BY id create table table1 ( id int, a varchar(20), col_a varchar(20), col_b varchar(20), col_c varchar(20)) select * from sptest.names where id = nameId; SELECT * FROM BLOG create table pet (id int,owner_id int,name varchar(32),room_id int) CREATE TABLE mbtest.order_detail ( order_id integer NOT NULL, line_number integer NOT NULL, quantity integer NOT NULL, item_description character varying(50) NOT NULL, CONSTRAINT order_detail_pkey PRIMARY KEY (order_id, line_number) ) SELECT * FROM blog select id, name_fred from table2 where id = identity()", keyProperty="nameId,generatedName", keyColumn="ID,NAME_FRED CREATE TABLE SimpleObject (id VARCHAR(5) NOT NULL) insert into permissions values ('resource2', 'user1', 'update') create table users ( id int, name varchar(20), city varchar(20), state char(20)) insert into Parent values (2, 'Juan', 'Perez') create table item (itemid varchar(10) not null,productid varchar(10) not null,listprice decimal(10,2) null,unitcost decimal(10,2) null,supplier int null,status varchar(2) null,attr1 varchar(80) null,attr2 varchar(80) null,attr3 varchar(80) null,attr4 varchar(80) null,attr5 varchar(80) null,constraint pk_item primary key (itemid),constraint fk_item_1 foreign key (productid)references product (productid),constraint fk_item_2 foreign key (supplier)references supplier (suppid)) SELECT * FROM ${tableName:users} ORDER BY ${orderColumn:id}", props), Is.is("SELECT * FROM users ORDER BY id create table udata ( user_id int, num int) CREATE TABLE comment (id INT,post_id INT,comment VARCHAR(255)) create table person ( id int, firstName varchar(100), lastName varchar(100), order_type varchar(100)) create table parent_child( idparent integer, idchild_from integer, idchild_to integer) select * from sptest.names where id >= lowestId and id <= highestId; create table Child ( id int, name varchar(100), father_id int, grand_father_id int) SELECT * FROM test AS t LIMIT 1 create table parent (id int,col1 varchar(20),col2 varchar(20)) create table lineitem (orderid int not null,linenum int not null,itemid varchar(10) not null,quantity int not null,unitprice decimal(10,2) not null,constraint pk_lineitem primary key (orderid, linenum)) create table person ( id int, firstName varchar(100), lastName varchar(100), personType varchar(100) DEFAULT NULL) CREATE TABLE test_blob ( id INT PRIMARY KEY, content BLOB) create table b ( ref int, entry int) create table person( id int, firstname varchar(20), lastname varchar(20)) SELECT * FROM BLOG WHERE ID = ? OR NAME = ? SELECT * FROM post ORDER BY id CREATE TABLE t_account( account_uuid CHAR(36) PRIMARY KEY ,account_name VARCHAR(256) ,birth_date DATETIME) create table state_bird (state varchar(32),bird varchar(32)) CREATE TABLE post (id INT NOT NULL GENERATED BY DEFAULT AS IDENTITY,blog_id INT,author_id INT NOT NULL,created_on TIMESTAMP NOT NULL,section VARCHAR(25) NOT NULL,subject VARCHAR(255) NOT NULL,body CLOB NOT NULL,draft INT NOT NULL,PRIMARY KEY (id),FOREIGN KEY (blog_id) REFERENCES blog(id)) select name_fred from table2 where id = #{nameId}", keyProperty="generatedName", keyColumn="NAME_FRED select id from product where name = #{value} insert into permissions values ('resource2', 'user1', 'delete') insert into users values(1, 'User1', 2, 3) create table user_account ( id int, name varchar(20)) create table orderstatus (orderid int not null,linenum int not null,timestamp date not null,status varchar(2) not null,constraint pk_orderstatus primary key (orderid, linenum)) select * from users where id = 1 insert into BLAH values (1) CREATE TABLE BLAH(ID INTEGER) create index itemProd on item (productid); select userid from account where userid = 'j2ee'" + System.getProperty("line.separator create table person ( id int, name varchar(32), primary key (id)) select * from users where id = #{value} select * from company where id = #{id} create table users ( id int, name varchar(128)) create table users ( id varchar(36), name varchar(20)) select * from ${table} where id = #{id} select * from sptest.items; INSERT INTO profile VALUES('ACID','english','CATS',1,1) INSERT INTO signon VALUES('j2ee','j2ee') SELECT * FROM author WHERE id = 99 create table users ( id int, name varchar(20), funkyNumber decimal(38), roundingMode int) select * from sptest.names where id >= lowestId; create table ibtest.names (id int,description varchar(20)) SELECT * FROM BLOG WHERE \t ID = ? create table brand (id int,name varchar(32)) select id, firstname, lastname from person select * from users where id = ? insert into users values(2, 'Valentina') create table address (id int,state varchar(32),city varchar(32),phone1_id int,phone2_id int,addr_type int,caution varchar(64)) create table product (productid varchar(10) not null,category varchar(10) not null,name varchar(80) null,descn varchar(255) null,constraint pk_product primary key (productid),constraint fk_product_1 foreign key (category)references category (catid)) create table string_string ( id identity, key varchar(255), value varchar(255)) insert into Child values (2, 'Rosa', 'Garcia', 4, 1) create index productName on product (name); insert into users values(1, 'User1', 2, 1) insert into Parent values (1, 'Jose', 'Garcia') create table Child ( id int, name varchar(100), father_id int) select firstName from ibtest.names where id=${named} UPDATE author SET username = ?, password = ?, email = ?, bio = ? WHERE id = ? create table blobtest.blobs ( id int not null, blob longvarbinary, primary key (id)) create table blog ( id int, title varchar(16), author_id int, co_author_id int) select id, name from product where name = #{value} SELECT ID, CONTENT FROM TEST_CLOB WHERE ID = #{id} INSERT INTO account VALUES('j2ee','<EMAIL>','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555') CREATE TABLE sequence(name varchar(30) not null,nextid int not null,constraint pk_sequence primary key (name)) select * from FOO; create table users ( id int, name varchar(20) , dept_id int) create table persons ( id int, name varchar(20)) select * from user_profile select name from car where doors = #{doors2[1]} select * from users where id = #{foo} create table car ( name varchar(20), doors int) create table names ( ID int, FIRST_NAME varchar(20), LAST_NAME varchar(20)) create table orders (orderid int not null,userid varchar(80) not null,orderdate date not null,shipaddr1 varchar(80) not null,shipaddr2 varchar(80) null,shipcity varchar(80) not null,shipstate varchar(80) not null,shipzip varchar(20) not null,shipcountry varchar(20) not null,billaddr1 varchar(80) not null,billaddr2 varchar(80) null,billcity varchar(80) not null,billstate varchar(80) not null,billzip varchar(20) not null,billcountry varchar(20) not null,courier varchar(80) not null,totalprice decimal(10,2) not null,billtofirstname varchar(80) not null,billtolastname varchar(80) not null,shiptofirstname varchar(80) not null,shiptolastname varchar(80) not null,creditcard varchar(80) not null,exprdate varchar(7) not null,cardtype varchar(80) not null,locale varchar(80) not null,constraint pk_orders primary key (orderid)) CREATE TABLE person( id int NOT NULL, id_address integer NOT NULL, CONSTRAINT pk_person PRIMARY KEY (id), CONSTRAINT fk_person_id_address FOREIGN KEY (id_address) REFERENCES address (id) ON UPDATE RESTRICT ON DELETE RESTRICT) create table groups ( id int, name varchar(20)) select id, owner, members from groups where id=1 insert into users values(2, 'User2', 1, 1) INSERT INTO POST VALUES(2,'content 2',1) create table person (person_id int, person_name varchar(32)) create table ibtest.numerics ( id int, tinynumber tinyint, smallnumber smallint, longinteger bigint, biginteger bigint, numericnumber numeric(10,2), decimalnumber decimal(10,2), realnumber real, floatnumber float, doublenumber double) CREATE TABLE comment (id INT NOT NULL GENERATED BY DEFAULT AS IDENTITY,post_id INT NOT NULL,name LONG VARCHAR NOT NULL,comment LONG VARCHAR NOT NULL,PRIMARY KEY (id)) CREATE TABLE FOO (F_FIELD1 BIGINT NOT NULL,F_FIELD2_FIELD1 BIGINT,F_FIELD2_FIELD2 BIGINT,F_FIELD2_FIELD3 BIGINT,F_FIELD3 BOOLEAN NOT NULL) create table contact ( id int, address varchar(100), phone varchar(32), person_id int, foreign key (person_id) references person(id)) CREATE TABLE country ( Id int IDENTITY, countryname varchar(255) DEFAULT NULL, countrycode varchar(255) DEFAULT NULL,) create table users2( id int, name varchar(20)) create table GrandFather ( id int, name varchar(100)) CREATE TABLE t_account_address( account_uuid CHAR(36) PRIMARY KEY ,zip_code CHAR(7) ,address VARCHAR(256)) INSERT INTO sequence VALUES('ordernum', 1000) create table users ( id int identity, name varchar(20), fld1 int, fld2 int) select * from users where id = #{id} select id, name from users CREATE TABLE SimpleChildObject (id VARCHAR(5) NOT NULL, simple_object_id VARCHAR(5) NOT NULL) select firstName from ibtest.names where id=${_parameter} CREATE TABLE table_bar ( id INTEGER PRIMARY KEY) create table SomeTable ( id int, field1 varchar(20), field2 varchar(20), field3 varchar(20)) SELECT * FROM ${schema?:prod}.${tableName == null ? 'users' : tableName} ORDER BY ${orderColumn}", props), Is.is("SELECT * FROM prod.${tableName == null ? 'users' : tableName} ORDER BY ${orderColumn} insert into folder values(2, 'Folder 1', 1) CREATE TABLE tag (id INT NOT NULL GENERATED BY DEFAULT AS IDENTITY,name VARCHAR(255) NOT NULL,PRIMARY KEY (id)) create table names (id int,firstName varchar(20),lastName varchar(20)) CREATE TABLE post (id INT,blog_id INT,body VARCHAR(255)) create table users ( id int, name varchar(20), state int) select name from car where doors = #{doors1[1]} insert into users2 values(null, 'Pocoyo') CREATE TABLE post_tag (post_id INT NOT NULL,tag_id INT NOT NULL,PRIMARY KEY (post_id, tag_id)) UPDATE person SET firstName = Simone WHERE id = 1 SELECT ID, CONTENT FROM TEST_BLOB WHERE ID = #{id} create table author ( id int, name varchar(16), reputation int) select * from users where uid = #{id} SELECT * FROM BLOG WHERE CATEGORY = ? insert into users values(3, 'User3', 3, 1) insert into users values (#{id}, #{name}) INSERT INTO POST VALUES(1,'content 1',1) select * from sptest.names where id in (unnest(ids)); create table permissions ( resourceName varchar(20), principalName varchar(20), permission varchar(20)) SELECT * FROM PRODUCT create table country( id bigint IDENTITY, name varchar(20)) insert into folder values(4, 'Folder 2_1', 3) insert into users values (#{id}, #{name}) insert into folder values(5, 'Folder 2_2', 3) SELECT * FROM BLOG WHERE NAME = ? create table Child ( id int, Name varchar(20), SurName varchar(20), Age int, ParentId varchar(20)) SELECT * FROM BLOG WHERE \n ID = ? CREATE TABLE blog (id INT,title VARCHAR(255)) insert into users values(3, 'User3', 1, 1) create table groups (id int,owner varchar(16),members varchar(256)) SELECT * FROM BLOG WHERE ID = ? insert into users values(4, 'User4', 2, 1) create table test ( A VARCHAR(32) not null, B VARCHAR(32) not null) create table users ( uid int, name varchar(20)) SELECT * FROM blog create table profile (userid varchar(80) not null,langpref varchar(80) not null,favcategory varchar(30),mylistopt int,banneropt int,constraint pk_profile primary key (userid)) create table users2 (id int IDENTITY,name varchar(16)) create table names ( id int, firstName varchar(20), lastName varchar(20)) INSERT INTO AUTHOR VALUES(1,'<NAME>') insert into permissions values ('resource1', 'user1', 'read') select * from "); create table a ( id int, name varchar(20)) CREATE TABLE immutables ( id INTEGER PRIMARY KEY, description VARCHAR (30) NOT NULL) insert into users values(3, 'User3', 2, 1) create table folder (id int, name varchar(100), parent_id int) create table person( id int IDENTITY, name varchar(20)) insert into users values(5, 'User5') insert into users values(1, 'Pocoyo') SELECT * FROM ${tableName:users} ORDER BY ${orderColumn:id}", props), Is.is("SELECT * FROM members ORDER BY member_id select * from A create table table3 (id int not null,name varchar(20)) create table users2 ( id int, name varchar(20), funkyNumber decimal(38), roundingMode varchar(12)) create index productCat on product (category); insert into permissions values ('resource1', 'user1', 'create') insert into groups values(1, 'Pocoyo', 'User1,User2,User3') create table hsql (id int,name varchar(20)) SELECT firstName, lastName FROM names WHERE lastName LIKE #{name} create table person (id int, name varchar(32)) insert into users values(1, 'User1', 1, 1) create table int_bool ( id identity, key integer, value boolean) create table groups ( id int, owner int, name varchar(20)) CREATE TABLE immutables ( immutable_id INTEGER PRIMARY KEY, immutable_description VARCHAR (30) NOT NULL) SELECT * FROM BLOG WHERE ID = ? create table sptest.names ( id integer, first_name varchar(20), last_name varchar(20), primary key(id)) SELECT firstName, lastName FROM names WHERE lastName LIKE #{name} and 0 < 1 CREATE TABLE order_detail ( order_id integer NOT NULL, line_number integer NOT NULL, quantity integer NOT NULL, item_description varchar(50) NOT NULL, PRIMARY KEY (order_id, line_number) ) INSERT INTO POST VALUES(3,'content 3',1) create table cars ( carid integer, cartype varchar(20), enginetype varchar(20), enginecylinders integer, brakestype varchar(20)) select * from sptest.names; CREATE TABLE mbtest.order_header ( order_id integer NOT NULL, cust_name character varying(50) NOT NULL, CONSTRAINT order_header_pkey PRIMARY KEY (order_id) ) CREATE TABLE test_clob ( id INT PRIMARY KEY, content CLOB) create table Father ( id int, name varchar(100)) SELECT id, firstName, lastName, personType FROM person WHERE id = #{id} create table users ( id int, name varchar(20), first_attr_1 varchar(3), first_attr_2 varchar(3), second_attr_1 varchar(3), second_attr_2 varchar(3),) create table depts ( id int, name varchar(20)) CREATE TABLE person ( id int, firstName varchar(100), lastName varchar(100)) create table productattribute (nr_id int) select * from users where id = 2 create table users ( id int, name varchar(20), owner_id int) INSERT INTO test VALUES('A1', 'B1') CREATE TABLE mbtest.test_identity ( first_name character varying(30), last_name character varying(30), name_id serial NOT NULL, CONSTRAINT test_identity_pkey PRIMARY KEY (name_id) ) create table key_cols ( id identity, col_a integer, col_b integer) INSERT INTO signon VALUES('ACID','ACID') create table inventory (itemid varchar(10) not null,qty int not null,constraint pk_inventory primary key (itemid)) create table product ( id int identity, name varchar(20)) create table pets ( id int, owner int, breeder int, name varchar(20)) create table child (id int,parent_id int,name varchar(20)) select * from users where id in ( CREATE TABLE node (id INT NOT NULL,parent_id INT,PRIMARY KEY(id)) select * from author where id in (?,?) select id from users create table common (id int,name varchar(20)) create table Parent ( id int, Name varchar(20), SurName varchar(20)) create table groups ( id int, state varchar(20)) create table bannerdata (favcategory varchar(80) not null,bannername varchar(255) null,constraint pk_bannerdata primary key (favcategory)) insert into users values(4, 'User4', 1, 2) select * from sptest.items where name_id in (select id from sptest.names where id = nameId); create table department (nr_id int,nr_attribute int,person int) create table breeder ( id int, name varchar(20)) SELECT * FROM BLOG WHERE ID in SELECT * FROM author WHERE username = ?", "someone SELECT * FROM ITEM select userid from account where userid = 'j2ee'; select * from post where author_id = #{id} order by id SELECT * FROM blog WHERE id = #{id} create table student ( id int, name varchar(100), teacher_id int) SELECT * FROM PRODUCT WHERE PRODUCTID = ?", "FI-SW-01 SELECT * FROM BLOG WHERE \r\n ID = ? create table users ( id int, name varchar(20), group_id int, state varchar(20)) insert into groups values(2, 'Valentina', 'User1,User2,User3') create table signon (username varchar(25) not null,password varchar(25) not null,constraint pk_signon primary key (username)) insert into users values(1, 'User1') insert into users values(1, 'User1', 2, 2) create table parent( id integer, value varchar(20)) CREATE TABLE table_foo ( id INTEGER PRIMARY KEY, id_bar INTEGER NOT NULL) select * from users create table nested_bean ( id identity, keya integer, keyb boolean, valuea integer, valueb boolean) create table person ( id int, firstName varchar(100), lastName varchar(100)) create table person (id int,firstName varchar(100),lastName varchar(100),parent int DEFAULT NULL) INSERT INTO supplier VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797') select * from users order by uid insert into users values(4, 'User4') insert into users values (#{id}, #{name}) select * from author where id = ? SELECT * FROM PERSON WHERE ID=? select * from users order by id SELECT * FROM BLOG WHERE CATEGORY = 'NONE' create table ibtest.names (id int,firstName varchar(20),lastName varchar(20)) insert into users values(2, 'User2', 1, 3) INSERT INTO supplier VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797') create table supplier (suppid int not null,name varchar(80) null,status varchar(2) not null,addr1 varchar(80) null,addr2 varchar(80) null,city varchar(80) null,state varchar(80) null,zip varchar(5) null,phone varchar(80) null,constraint pk_supplier primary key (suppid)) create table table1 (id int generated by default as identity (start with 11) not null,name varchar(20)) CREATE TABLE blog (id INT NOT NULL GENERATED BY DEFAULT AS IDENTITY,author_id INT NOT NULL,title VARCHAR(255),PRIMARY KEY (id)) create table friend ( user_id int, friend_id int) create table table2 (id int generated by default as identity (start with 22) not null,name varchar(20),name_fred varchar(25) generated always as (name || '_fred'))
-------- 批次转实收保费 ------- procedure P_CURSOR(O_SCCE_FLAG out number, --- 返回值 0为正确 -1为失败 --- O_ERR_MSG out varchar2 --- 错误提示信息---- ) as cursor C_POLICY is /* use_nl(tcp,tcm) ordered index(tcp uni_contract_product__pronum) index(tcm IDX_CONTRACT_MASTER__SUSPEND) */ select /*+ FULL(tcp) FULL(tcm) */ distinct TCM.POLICY_ID from T_CONTRACT_MASTER TCM, T_CONTRACT_PRODUCT TCP where TCM.POLICY_ID = TCP.POLICY_ID and (TCM.SUSPEND = 'N' or TCM.POLICY_TYPE = '2') --- 个单保单不为暂停 and TCM.LIABILITY_STATE = 1 ---保单为有效 and TCM.BALANCE_PREM > 0 ---保单有余额 and TCP.PREM_STATUS = 1 ---险种缴费状态为正常 and TCP.PAY_TO_DATE < sysdate --- 险种的下次交费期在当前系统日期之前 and pkg_life_renew_draw.f_get_renew_suspend(tcp.item_id) = 'Y' and TCP.LIABILITY_STATE = 1 ---险种为有效 ; begin open C_POLICY; loop begin fetch C_POLICY into M_POLICY_ID; exit when C_POLICY%notfound; if N_SCCE_FLAG < 0 then rollback to POINT_1; if LENGTHB(S_TOTAL_ERR) + LENGTHB(RTRIM(S_TMP_ERR)) < 4000 then S_TOTAL_ERR := S_TOTAL_ERR; end if; N_ERR_FLAG := -1; else if N_SCCE_FLAG=2 then rollback to POINT_1; else commit; end if; end if; M_NUM := M_NUM + 1; ----- 捕捉例外, 继续执行下一个申请 ---- exception when others then rollback to POINT_1; --- 不正确回滚 close C_POLICY; ---??? 为什么这里要关闭游标,还能继续loop吗 P_ERROR(111, sqlerrm); end; -- end begin block end loop; -- end loop close C_POLICY; if N_ERR_FLAG = -1 then O_SCCE_FLAG := -1; O_ERR_MSG := S_TOTAL_ERR; else ---- 若执行成功,则O_SCCE_FLAG为0 ---- O_SCCE_FLAG := M_NUM; end if; end; -- end procedure block
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/delete/75f6ffe8.sql -- file:vacuum.sql ln:39 expect:true DELETE FROM vactst
CREATE TABLE PERSON( PERSON_ID BIGINT PRIMARY KEY AUTO_INCREMENT, FIRST_NAME VARCHAR(64) NOT NULL, LAST_NAME VARCHAR(64) NOT NULL, EMAIL_ADDRESS VARCHAR(128) NOT NULL ); CREATE TABLE ITEM( ITEM_ID BIGINT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(64) NOT NULL, DESCRIPTION VARCHAR(256), MANUFACTURER VARCHAR(128), MODEL VARCHAR(64), QUANTITY INT DEFAULT 1, PERSON_ID BIGINT NOT NULL, ); ALTER TABLE ITEM ADD FOREIGN KEY (PERSON_ID) REFERENCES PERSON(PERSON_ID);
<gh_stars>1-10 /* Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) 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. */ /* EGI AppDB incremental SQL script Previous version: 8.20.7 New version: 8.21.0 Author: <EMAIL> */ START TRANSACTION; CREATE OR REPLACE FUNCTION public.authors_to_xml(mdocid integer) RETURNS xml LANGUAGE sql AS $function$ SELECT xmlagg( xmlelement( name "publication:author", xmlattributes( authors.main as main, CASE WHEN authors.authorid IS NULL THEN 'external' ELSE 'internal' END AS type ), CASE WHEN authorid IS NULL THEN xmlelement( name "publication:extAuthor", fullname ) ELSE researcher_to_xml(authorid) END) ORDER BY CASE WHEN NOT authorid IS NULL THEN (SELECT name FROM researchers WHERE id = authorid) ELSE fullname END ) AS author FROM authors WHERE docid = $1 GROUP BY docid; $function$; DROP TRIGGER IF EXISTS rtr_app_urls_before ON app_urls; DROP TRIGGER IF EXISTS rtr_app_urls_after ON app_urls; DROP FUNCTION IF EXISTS trfn_app_urls(); CREATE OR REPLACE FUNCTION public.trfn_appmanualcountries_cache_delta() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN PERFORM pg_notify('cache_delta', (SELECT DISTINCT (appcountries.*)::record FROM appcountries WHERE appid = NEW.appid AND id = NEW.countryid FETCH FIRST 1 ROWS ONLY) || '|appcountries'); ELSIF TG_OP = 'DELETE' THEN PERFORM pg_notify('cache_delta', zerorec('appcountries', ARRAY['appid'], ARRAY[OLD.appid]) || '|appcountries'); END IF; RETURN NULL; END; $$; DROP VIEW vapps_of_swapps_to_xml; DROP VIEW apppercountries; DROP VIEW appviews; DELETE FROM cache.filtercache; ALTER TABLE applications DROP COLUMN disciplineid; ALTER TABLE rankedapps DROP COLUMN disciplineid; ALTER TABLE applications DROP COLUMN categoryid; ALTER TABLE rankedapps DROP COLUMN categoryid; ALTER TABLE applications DROP COLUMN links; ALTER TABLE rankedapps DROP COLUMN links; CREATE OR REPLACE FUNCTION disciplineid(applications) RETURNS INT[] AS $$ SELECT ARRAY_AGG(disciplineid) FROM appdisciplines WHERE appid = $1.id; $$ LANGUAGE SQL STABLE; CREATE OR REPLACE FUNCTION categoryid(applications) RETURNS INT[] AS $$ SELECT ARRAY_AGG(categoryid) FROM appcategories WHERE appid = $1.id; $$ LANGUAGE SQL STABLE; CREATE OR REPLACE FUNCTION links(applications) RETURNS TEXT[] AS $$ SELECT ARRAY_AGG('{"url": "' || COALESCE(url,'') || '", "description": "' || COALESCE(description,'') || '", "title": "' || COALESCE(title,'') || '", "ord": ' || COALESCE(ord,0) || '"}') FROM app_urls WHERE appid = $1.id; $$ LANGUAGE SQL STABLE; CREATE OR REPLACE FUNCTION public.trfn_applications() RETURNS trigger AS $BODY$ DECLARE mFields TEXT[]; BEGIN mFields = NULL::TEXT[]; IF TG_OP = 'INSERT' THEN IF TG_LEVEL = 'ROW' THEN IF TG_WHEN = 'AFTER' THEN IF (NEW.owner IS NULL) AND (NOT NEW.addedby IS NULL) AND (EXISTS (SELECT id FROM researchers WHERE id = NEW.addedby AND accounttype = 0)) THEN INSERT INTO researchers_apps (appid, researcherid, iskeycontact) VALUES (NEW.id, NEW.addedby, false); ELSIF NOT NEW.owner IS NULL THEN INSERT INTO researchers_apps (appid, researcherid, iskeycontact) VALUES (NEW.id, NEW.owner, false); END IF; INSERT INTO news ("timestamp", subjectguid, "action") VALUES (NOW(), NEW.guid, 'insert'); --NOTIFY invalidate_cache, 'permissions'; -- PERFORM pg_notify('cache_delta', 'id = ' || NEW.id::text || ',applications'); IF (NEW.cname IS NULL) THEN INSERT INTO app_cnames (appid, value) VALUES (NEW.id, normalize_cname(NEW.name)); END IF; INSERT INTO cache.appxmlcache (id,"xml") SELECT NEW.id, __app_to_xml(NEW.id); END IF; END IF; RETURN NEW; ELSIF TG_OP = 'UPDATE' THEN IF TG_LEVEL = 'ROW' THEN IF TG_WHEN = 'BEFORE' THEN IF (OLD.name != NEW.name) THEN mFields := array_append(mFields,'name'); END IF; IF (OLD.description != NEW.description) THEN mFields := array_append(mFields,'description'); END IF; IF (OLD.abstract != NEW.abstract) THEN mFields := array_append(mFields,'abstract'); END IF; IF (OLD.statusid != NEW.statusid) THEN mFields := array_append(mFields,'status'); END IF; IF ((OLD::applications).links != (NEW::applications).links) THEN mFields := array_append(mFields,'urls'); END IF; IF (COALESCE((OLD::applications).disciplineid,ARRAY[-1]) != COALESCE((NEW::applications).disciplineid,ARRAY[-1])) THEN mFields := array_append(mFields,'discipline'); END IF; IF (COALESCE((OLD::applications).categoryid,ARRAY[-1]) != COALESCE((NEW::applications).categoryid,ARRAY[-1])) THEN mFields := array_append(mFields,'category'); END IF; IF NOT mFields IS NULL THEN INSERT INTO news ("timestamp", subjectguid, "action", fields) VALUES (NOW(), NEW.guid, 'update', mFields); DELETE FROM app_validation_log WHERE appid = OLD.id; END IF; -- NEW.lastupdated = NOW(); ELSIF TG_WHEN = 'AFTER' THEN IF OLD.moderated <> NEW.moderated OR OLD.deleted <> NEW.deleted OR OLD.lastupdated <> NEW.lastupdated OR OLD.addedby <> NEW.addedby OR OLD.owner <> NEW.owner OR (OLD::applications).links <> (NEW::applications).links OR OLD.rating <> NEW.rating THEN -- the rest of the properties are taken care by the trigger in the "news" table -- NOTIFY invalidate_cache, 'filters'; END IF; IF OLD.owner <> NEW.owner OR OLD.addedby <> NEW.addedby THEN PERFORM request_permissions_refresh(); END IF; -- IF (NEW.name, NEW.description, NEW.abstract, NEW.statusid, NEW.dateadded, NEW.addedby, NEW.lastupdated, NEW.rating, NEW.moderated, NEW.deleted, NEW.disciplineid, NEW.owner, NEW.categoryid, NEW.links) IS DISTINCT FROM (OLD.name, OLD.description, OLD.abstract, OLD.statusid, OLD.dateadded, OLD.addedby, OLD.lastupdated, OLD.rating, OLD.moderated, OLD.deleted, OLD.disciplineid, OLD.owner, OLD.categoryid, OLD.links) THEN -- PERFORM pg_notify('cache_delta', 'id = ' || NEW.id::text || ',applications'); -- END IF; IF (NEW.deleted IS TRUE AND OLD.deleted IS FALSE) OR (NEW.moderated IS TRUE AND OLD.moderated IS FALSE) THEN UPDATE app_cnames SET enabled = FALSE WHERE appid = NEW.id; END IF; UPDATE cache.appxmlcache SET "xml" = __app_to_xml(NEW.id) WHERE id = NEW.id; END IF; END IF; RETURN NEW; ELSIF TG_OP = 'DELETE' THEN IF TG_LEVEL = 'ROW' THEN IF TG_WHEN = 'AFTER' THEN INSERT INTO news ("timestamp", subjectguid, "action") VALUES (NOW(), OLD.guid, 'delete'); END IF; END IF; RETURN OLD; END IF; END;$BODY$ LANGUAGE plpgsql VOLATILE COST 100; ALTER FUNCTION public.trfn_applications() OWNER TO appdb; -- Function: public.trfn_applications_cache_delta() -- DROP FUNCTION public.trfn_applications_cache_delta(); CREATE OR REPLACE FUNCTION public.trfn_applications_cache_delta() RETURNS trigger AS $BODY$ DECLARE rec RECORD; BEGIN IF TG_OP = 'INSERT' OR (TG_OP = 'UPDATE' AND ( OLD.moderated <> NEW.moderated OR OLD.deleted <> NEW.deleted OR OLD.lastupdated <> NEW.lastupdated OR OLD.addedby <> NEW.addedby OR OLD.owner <> NEW.owner OR array_sort((OLD::applications).links) <> array_sort((NEW::applications).links) OR OLD.rating <> NEW.rating OR OLD.name <> NEW.name OR OLD.description <> NEW.description OR OLD.abstract <> NEW.abstract OR OLD.statusid <> NEW.statusid OR array_sort((OLD::applications).disciplineid) <> array_sort((NEW::applications).disciplineid) OR array_sort((OLD::applications).categoryid) <> array_sort((NEW::applications).categoryid) ) ) THEN rec := NEW; PERFORM pg_notify('cache_delta', rec || '|applications'); ELSIF TG_OP = 'DELETE' THEN PERFORM pg_notify('cache_delta', zerorec('applications') || '|applications'); END IF; RETURN NULL; END; $BODY$ LANGUAGE plpgsql VOLATILE COST 100; ALTER FUNCTION public.trfn_applications_cache_delta() OWNER TO appdb; CREATE VIEW appviews AS SELECT DISTINCT applications.id, applications.name, applications.description, applications.abstract, applogos.logo, applications.statusid, app_middlewares.middlewareid, applications.dateadded, applications.addedby, applications.tool, applications.respect, __appcountries.id AS countryid, __appcountries.regionid, __app_vos.void, (((appteam.lastname || ' '::text) || appteam.firstname) || ' '::text) || appteam.institution AS persondata, CASE WHEN (EXISTS ( SELECT appdocuments.id FROM appdocuments WHERE appdocuments.appid = applications.id)) THEN 1 ELSE 0 END AS hasdocs, applications.guid, applications.deleted, applications.moderated, applications.categoryid, applications.metatype FROM applications LEFT JOIN __appcountries ON __appcountries.appid = applications.id LEFT JOIN __app_vos ON __app_vos.appid = applications.id LEFT JOIN appteam ON appteam.appid = applications.id LEFT JOIN app_middlewares ON app_middlewares.appid = applications.id LEFT JOIN applogos ON applogos.appid = applications.id ORDER BY applications.id; ALTER VIEW appviews OWNER TO appdb; CREATE VIEW apppercountries AS SELECT countries.id, countries.name, countries.isocode, ( SELECT count(DISTINCT appviews.id) AS count FROM appviews WHERE appviews.countryid = countries.id AND appviews.deleted IS FALSE AND appviews.moderated IS FALSE) AS sum FROM countries; ALTER VIEW apppercountries OWNER TO appdb; CREATE VIEW vapps_of_swapps_to_xml AS SELECT vapps.id, XMLELEMENT(NAME "application:application", XMLATTRIBUTES(vapps.id AS id, vapps.cname AS cname, vapps.guid AS guid, vapps.vappversionid AS versionid, CASE WHEN vapps.va_version_expireson < now() THEN true ELSE false END AS isexpired, vapps.va_version_archived AS archived), XMLELEMENT(NAME "application:name", vapps.name), ( SELECT xmlagg(swapps.xml) AS x FROM ( SELECT XMLELEMENT(NAME "application:application", XMLATTRIBUTES(apps.id AS id, apps.cname AS cname, apps.guid AS guid), XMLELEMENT(NAME "application:name", apps.name)) AS xml FROM applications apps WHERE (apps.id IN ( SELECT unnest(vapps.swappids) AS unnest))) swapps)) AS xml FROM ( SELECT DISTINCT ON (vapps_1.id) vapps_1.id, vapps_1.name, vapps_1.description, vapps_1.abstract, vapps_1.statusid, vapps_1.dateadded, vapps_1.addedby, vapps_1.respect, vapps_1.tool, vapps_1.guid, vapps_1.lastupdated, vapps_1.rating, vapps_1.ratingcount, vapps_1.moderated, vapps_1.tagpolicy, vapps_1.deleted, vapps_1.metatype, vapps_1.disciplineid, vapps_1.owner, vapps_1.categoryid, vapps_1.hitcount, vapps_1.cname, vapps_1.links, __vaviews.vappversionid, __vaviews.va_version_expireson, __vaviews.va_version_archived, array_agg(DISTINCT contexts.appid) AS swappids FROM contexts JOIN context_script_assocs csa ON csa.contextid = contexts.id JOIN contextscripts cs ON cs.id = csa.scriptid JOIN vmiinstance_contextscripts vcs ON vcs.contextscriptid = cs.id JOIN __vaviews ON __vaviews.vmiinstanceid = vcs.vmiinstanceid JOIN applications vapps_1 ON vapps_1.id = __vaviews.appid WHERE __vaviews.va_version_published = true GROUP BY vapps_1.id, __vaviews.vappversionid, __vaviews.va_version_expireson, __vaviews.va_version_archived) vapps; ALTER VIEW vapps_of_swapps_to_xml OWNER TO appdb; -- Function: public.export_app(integer, text) -- DROP FUNCTION public.export_app(integer, text); CREATE OR REPLACE FUNCTION public.export_app( mid integer, format text DEFAULT 'csv'::text) RETURNS text AS $BODY$ SELECT CASE WHEN $2 = 'csv' THEN '"' || REPLACE(COALESCE(applications.name, ''), '"', E'”') || '",' || '"' || REPLACE(COALESCE(applications.description, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(abstract, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(dateadded::text, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(addedby.name, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(owner.name, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(statuses.name, ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT categories.name), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT middlewares.name), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT vos.name), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT disciplines.name), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT appcountries.name), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT app_urls.url), ','), ''), '"', E'”') || '",' '"' || REPLACE(COALESCE(array_to_string(array_agg(DISTINCT researchers.name), ','), ''), '"', E'”') || '"' ELSE xmlelement(name "application", xmlelement(name "name", applications.name), xmlelement(name "description", applications.description), xmlelement(name "abstract", applications.abstract), xmlelement(name "dateAdded", applications.dateadded), xmlelement(name "addedby", addedby.name), xmlelement(name "owner", owner.name), xmlelement(name "status", statuses.name), xmlelement(name "categories", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "category", categories.name)::text) ,'')::xml ) ), xmlelement(name "middlewares", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "middleware", middlewares.name)::text) ,'')::xml ) ), xmlelement(name "vos", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "vo", vos.name)::text) ,'')::xml ) ), xmlelement(name "disciplines", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "discipline", disciplines.name)::text) ,'')::xml ) ), xmlelement(name "countries", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "country", appcountries.name)::text) ,'')::xml ) ), xmlelement(name "urls", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "url", app_urls.url)::text) ,'')::xml ) ), xmlelement(name "researchers", xmlconcat( array_to_string( array_agg(DISTINCT xmlelement(name "researcher", researchers.name)::text) ,'')::xml ) ), '')::text END AS "application" FROM applications LEFT OUTER JOIN app_middlewares ON app_middlewares.appid = applications.id LEFT OUTER JOIN middlewares ON middlewares.id = app_middlewares.middlewareid LEFT OUTER JOIN appdisciplines ON appdisciplines.appid = applications.id LEFT OUTER JOIN disciplines ON disciplines.id = appdisciplines.disciplineid LEFT OUTER JOIN appcountries ON appcountries.appid = applications.id LEFT OUTER JOIN app_urls ON app_urls.appid = applications.id LEFT OUTER JOIN researchers_apps ON researchers_apps.appid = applications.id LEFT OUTER JOIN researchers ON researchers.id = researchers_apps.researcherid LEFT OUTER JOIN app_vos ON app_vos.appid = applications.id LEFT OUTER JOIN vos ON vos.id = app_vos.void LEFT OUTER JOIN researchers AS addedby ON addedby.id = applications.addedby LEFT OUTER JOIN researchers AS owner ON owner.id = applications.owner LEFT OUTER JOIN statuses ON statuses.id = applications.statusid LEFT OUTER JOIN appcategories ON appcategories.appid = applications.id LEFT OUTER JOIN categories ON appcategories.categoryid = categories.id WHERE applications.id = $1 GROUP BY applications.name, applications.description, applications.abstract, applications.dateadded, addedby.name, owner.name, statuses.name $BODY$ LANGUAGE sql VOLATILE COST 100; ALTER FUNCTION public.export_app(integer, text) OWNER TO appdb; -- Function: public.__oaidatacite(applications) -- DROP FUNCTION public.__oaidatacite(applications); CREATE OR REPLACE FUNCTION public.__oaidatacite(applications) RETURNS xml AS $BODY$ DECLARE t1 double precision; DECLARE t2 double precision; DECLARE dt double precision; DECLARE x TEXT; BEGIN -- RAISE NOTICE '%', $1.id; IF ($1.deleted) OR ($1.moderated) THEN RETURN (E'<record>' || $1.oai_header::TEXT || E'</record>')::XML; ELSE t1 := (SELECT EXTRACT(EPOCH FROM(clock_timestamp()))); x := (SELECT ( E'<record>' || $1.oai_header::TEXT || E'<metadata><oai_datacite xmlns="http://schema.datacite.org/oai/oai-1.1/" xsi:schemaLocation="http://schema.datacite.org/oai/oai-1.1/ http://schema.datacite.org/oai/oai-1.1/oai.xsd"><schemaVersion>4</schemaVersion>' || E'<datacentreSymbol>EGI.APPDB</datacentreSymbol><payload>' || REGEXP_REPLACE( /* xsltproc( COALESCE((SELECT data FROM config WHERE var = 'oaidatacite_xslt'), '/var/www/html/appdb/application/configs/api/1.0/xslt/oai_datacite.xsl'), ('<appdb:appdb xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' || E'xmlns:appdb="http://appdb.egi.eu/api/1.0/appdb" xmlns:application="http://appdb.egi.eu/api/1.0/application" xmlns:discipline="http://appdb.egi.eu/api/1.0/discipline" xmlns:category="http://appdb.egi.eu/api/1.0/category" xmlns:dissemination="http://appdb.egi.eu/api/1.0/dissemination" xmlns:filter="http://appdb.egi.eu/api/1.0/filter" xmlns:history="http://appdb.egi.eu/api/1.0/history" xmlns:logistics="http://appdb.egi.eu/api/1.0/logistics" xmlns:resource="http://appdb.egi.eu/api/1.0/resource" xmlns:middleware="http://appdb.egi.eu/api/1.0/middleware" xmlns:person="http://appdb.egi.eu/api/1.0/person" xmlns:permission="http://appdb.egi.eu/api/1.0/permission" xmlns:privilege="http://appdb.egi.eu/api/1.0/privilege" xmlns:publication="http://appdb.egi.eu/api/1.0/publication" xmlns:rating="http://appdb.egi.eu/api/1.0/rating" xmlns:ratingreport="http://appdb.egi.eu/api/1.0/ratingreport" xmlns:regional="http://appdb.egi.eu/api/1.0/regional" xmlns:user="http://appdb.egi.eu/api/1.0/user" xmlns:vo="http://appdb.egi.eu/api/1.0/vo" xmlns:virtualization="http://appdb.egi.eu/api/1.0/virtualization" xmlns:contextualization="http://appdb.egi.eu/api/1.0/contextualization" xmlns:license="http://appdb.egi.eu/api/1.0/license" xmlns:provider="http://appdb.egi.eu/api/1.0/provider" xmlns:provider_template="http://appdb.egi.eu/api/1.0/provider_template" xmlns:classification="http://appdb.egi.eu/api/1.0/classification" xmlns:site="http://appdb.egi.eu/api/1.0/site" xmlns:siteservice="http://appdb.egi.eu/api/1.0/site" xmlns:entity="http://appdb.egi.eu/api/1.0/entity" xmlns:organization="http://appdb.egi.eu/api/1.0/organization" xmlns:project="http://appdb.egi.eu/api/1.0/project" xmlns:dataset="http://appdb.egi.eu/api/1.0/dataset" ' || E'datatype="application" type="entry" host="' || (SELECT data FROM config WHERE var = 'ui-host') || '" apihost="' || (SELECT data FROM config WHERE var = 'api-host') || '" cacheState="0" permsState="' || (SELECT data FROM config WHERE var = 'permissions_cache_dirty') || '" requestedOn="###REQUESTED_ON###" deliveredOn="###DELIVERED_ON###" processingTime="###PROCESSING_TIME###" version="1.0">' || app_to_xml_ext($1.id) || '</appdb:appdb>')::XML )::TEXT,*/ oai_datacite_xslt((E'<appdb:appdb ' || appdb_xmlns() || E' datatype="application" type="entry" host="' || (SELECT data FROM config WHERE var = 'ui-host') || '" apihost="' || (SELECT data FROM config WHERE var = 'api-host') || E'" cacheState="0" permsState="' || (SELECT data FROM config WHERE var = 'permissions_cache_dirty') || '" requestedOn="###REQUESTED_ON###" deliveredOn="###DELIVERED_ON###" processingTime="###PROCESSING_TIME###" version="1.0"' || '>' || app_to_xml_ext($1.id)::TEXT || '</appdb:appdb>')::XML)::TEXT, E'<\\?xml version="[0-9]+\.*[0-9]*"( encoding="\w.+")*\\?>', '', 'ig' ) || E'</payload></oai_datacite></metadata></record>' ) ); t2 := (SELECT EXTRACT(EPOCH FROM(clock_timestamp()))); dt := t2 - t1; x := (REPLACE(REPLACE(REPLACE(x, '###REQUESTED_ON###', t1::TEXT), '###DELIVERED_ON###', t2::TEXT), '###PROCESSING_TIME###', dt::TEXT)); RETURN x; END IF; END; $BODY$ LANGUAGE plpgsql STABLE COST 100; ALTER FUNCTION public.__oaidatacite(applications) OWNER TO appdb; -- Function: public.__oaidc(applications) -- DROP FUNCTION public.__oaidc(applications); CREATE OR REPLACE FUNCTION public.__oaidc(applications) RETURNS xml AS $BODY$ DECLARE t1 double precision; DECLARE t2 double precision; DECLARE dt double precision; DECLARE x TEXT; BEGIN IF ($1.deleted) OR ($1.moderated) THEN RETURN (E'<record>' || $1.oai_header::TEXT || E'</record>')::XML; ELSE t1 := (SELECT EXTRACT(EPOCH FROM(clock_timestamp()))); x := (SELECT ( E'<record>' || $1.oai_header || E'<metadata>' || REGEXP_REPLACE( oai_dc_xslt((E'<appdb:appdb ' || appdb_xmlns() || E' datatype="application" type="entry" host="' || (SELECT data FROM config WHERE var = 'ui-host') || '" apihost="' || (SELECT data FROM config WHERE var = 'api-host') || E'" cacheState="0" permsState="' || (SELECT data FROM config WHERE var = 'permissions_cache_dirty') || '" requestedOn="###REQUESTED_ON###" deliveredOn="###DELIVERED_ON###" processingTime="###PROCESSING_TIME###" version="1.0"' || '>' || app_to_xml_ext($1.id)::TEXT || '</appdb:appdb>')::XML)::TEXT, E'<\\?xml version="[0-9]+\.*[0-9]*"( encoding="\w.+")*\\?>', '', 'ig' ) || E'</metadata></record>' ) ); t2 := (SELECT EXTRACT(EPOCH FROM(clock_timestamp()))); dt := t2 - t1; x := (REPLACE(REPLACE(REPLACE(x, '###REQUESTED_ON###', t1::TEXT), '###DELIVERED_ON###', t2::TEXT), '###PROCESSING_TIME###', dt::TEXT)); RETURN x; END IF; END; $BODY$ LANGUAGE plpgsql STABLE COST 100; ALTER FUNCTION public.__oaidc(applications) OWNER TO appdb; CREATE OR REPLACE FUNCTION public.trfn_appcategories() RETURNS trigger LANGUAGE plpgsql AS $function$ DECLARE REL RECORD; DECLARE pid INT; BEGIN IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN REL = NEW; ELSIF TG_OP = 'DELETE' THEN REL = OLD; END IF; IF TG_WHEN = 'AFTER' THEN IF TG_OP = 'INSERT' THEN pid := (SELECT parentid FROM categories WHERE id = NEW.categoryid); IF NOT pid IS NULL THEN INSERT INTO appcategories (appid, categoryid, inherited) SELECT NEW.appid, pid, TRUE WHERE NOT EXISTS (SELECT * FROM appcategories WHERE appid = NEW.appid AND categoryid = pid); END IF; IF NEW.categoryid = 34 THEN IF NOT EXISTS (SELECT * FROM vapplications WHERE appid = NEW.appid) THEN INSERT INTO vapplications(appid) VALUES (NEW.appid); END IF; END IF; ELSIF TG_OP = 'UPDATE' THEN -- ELSIF TG_OP = 'DELETE' THEN pid := (SELECT parentid FROM categories WHERE id = OLD.categoryid); IF NOT pid IS NULL THEN DELETE FROM appcategories WHERE appid = OLD.appid AND categoryid = pid AND inherited IS TRUE; END IF; END IF; ELSIF TG_WHEN = 'BEFORE' THEN IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN -- ELSIF TG_OP = 'DELETE' THEN IF OLD.inherited IS TRUE AND EXISTS (SELECT * FROM appcategories WHERE appid = OLD.appid AND categoryid IN (SELECT id FROM categories WHERE parentid = OLD.categoryid)) THEN RAISE NOTICE '%','Cannot remove inherited parent category'; RETURN NULL; END IF; IF OLD.categoryid = 34 AND EXISTS (SELECT * FROM vapplications WHERE appid = OLD.appid) THEN RAISE NOTICE '%', 'Cannot remove "Virtual Appliances" category from software item bound to a Virtual Appliance entry'; RETURN NULL; END IF; END IF; END IF; -- UPDATE applications SET categoryid = (SELECT array_agg(categoryid ORDER BY isprimary DESC) FROM appcategories WHERE appid = REL.appid) WHERE id = REL.appid; RETURN REL; END; $function$; CREATE OR REPLACE FUNCTION public.trfn_appdisciplines() RETURNS trigger LANGUAGE plpgsql AS $function$ DECLARE pid INT; DECLARE REL RECORD; BEGIN IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN REL = NEW; ELSIF TG_OP = 'DELETE' THEN REL = OLD; END IF; IF TG_WHEN = 'AFTER' THEN IF TG_OP = 'INSERT' THEN pid := (SELECT parentid FROM disciplines WHERE id = NEW.disciplineid); IF NOT pid IS NULL THEN INSERT INTO appdisciplines (appid, disciplineid, inherited) SELECT NEW.appid, pid, TRUE WHERE NOT EXISTS (SELECT * FROM appdisciplines WHERE appid = NEW.appid AND disciplineid = pid); END IF; ELSIF TG_OP = 'UPDATE' THEN ELSIF TG_OP = 'DELETE' THEN pid := (SELECT parentid FROM disciplines WHERE id = OLD.disciplineid); IF NOT pid IS NULL THEN DELETE FROM appdisciplines WHERE appid = OLD.appid AND disciplineid = pid AND inherited IS TRUE; END IF; END IF; ELSIF TG_WHEN = 'BEFORE' THEN IF TG_OP = 'INSERT' OR TG_OP = 'UPDATE' THEN ELSIF TG_OP = 'DELETE' THEN IF OLD.inherited IS TRUE AND EXISTS (SELECT * FROM appdisciplines WHERE appid = OLD.appid AND disciplineid IN (SELECT id FROM disciplines WHERE parentid = OLD.disciplineid)) THEN RAISE NOTICE '%','Cannot remove inherited parent discipline'; RETURN NULL; END IF; END IF; END IF; -- UPDATE applications SET disciplineid = (SELECT array_agg(disciplineid) FROM appdisciplines WHERE appid = REL.appid) WHERE id = REL.appid; RETURN REL; END; $function$; CREATE OR REPLACE FUNCTION can_mod_app_tags(int, int) RETURNS BOOLEAN AS $$ SELECT CASE tagpolicy WHEN 0 THEN (owner = $2) OR (addedby = $2) WHEN 1 THEN EXISTS (SELECT 1 FROM researchers_apps WHERE researcherid = $2) WHEN 2 THEN TRUE END FROM applications WHERE id = $1; $$ LANGUAGE SQL STABLE; ALTER FUNCTION can_mod_app_tags(int, int) OWNER TO appdb; CREATE OR REPLACE FUNCTION validate_app_cname(text, int DEFAULT NULL) RETURNS TEXT AS $$ SELECT value FROM app_cnames WHERE value = normalize_cname($1) AND (($2 IS NULL) OR ((NOT $2 IS NULL) AND ($2 <> appid))) $$ LANGUAGE SQL STABLE; ALTER FUNCTION validate_app_cname(text, int) OWNER TO appdb; CREATE OR REPLACE FUNCTION validate_app_name(text, int DEFAULT NULL) RETURNS TEXT AS $$ DECLARE p TEXT; err TEXT; reason TEXT; exids INT[]; exnames TEXT[]; BEGIN IF (LENGTH($1) < 3) OR (LENGTH($1) > 50) THEN err := 'Invalid length'; reason := 'The length of the name must be from 3 to 50 characters long.The current length is <b>' || LENGTH($1) || '</b>.'; RETURN '{"valid": false, "error": "' || err || '", "reason": ' || to_json(reason) || '}'; END IF; IF NOT $1 ~ '^[A-Za-z0-9 *.+,&!#@=_^(){}\[\]-]+$' THEN err := 'Invalid character'; reason := 'The name contains invalid characters. Valid characters are alphanumeric characters, spaces, and the following sumbols: +(){}[],*&amp;!#@=^._-'; RETURN '{"valid": false, "error": "' || err || '", "reason": ' || to_json(reason) || '}'; END IF; SELECT array_agg(id), array_agg(name) FROM app_name_available($1) INTO exids, exnames; IF ARRAY_LENGTH(exids, 1) > 0 THEN IF ($2 IS NULL) OR (NOT $2 = ANY(exids)) THEN err := 'Invalid name'; reason := 'Name already taken by <a href="http://' || (SELECT data FROM config WHERE var = 'ui-host') || '/?p=' || encode(decode('/apps/details?id=' || (exids[1]::TEXT), 'escape'), 'base64') || '" target="_blank">' || exnames[1] || '</a>.<p></p>'; reason := reason || '<div>Please have a look at the ' || exnames[1] || ' software entry to understand if it is different from the one you want to register.<br/>If it is <b>not</b> different, please join ' || exnames[1] || ' as a scientific contact (for more information visit the '; reason := reason || '<a href="#" onclick="appdb.utils.ToggleFaq(12);" >FAQ</a>).<p></p>If it is different, please modify your applcation name. In order to avoid confusion from similarly named software, you should use a modifier in you software name in order to differentiate it from other related entries. Good examples would be :</div>'; reason := reason || '<div><span> </span>' || $1 || '-&lt;Country&gt;</div>'; reason := reason || '<div><span> </span>' || $1 || '-&lt;Project&gt;</div>'; reason := reason || '<div><span> </span>' || $1 || '-&lt;Virtual Organization&gt;</div>'; reason := reason || '<div><span> </span>' || $1 || '-&lt;Consortium&gt;</div>'; reason := reason || '<div>etc...</div>'; reason := reason || '<p></p><div>For further information please refer to the <a href="#" onclick="appdb.utils.ToggleFaq(11);" >FAQ</a></div>'; RETURN '{"valid": false, "error": "' || err || '", "reason": ' || to_json(reason) || '}'; END IF; END IF; SELECT validate_app_cname($1, $2) INTO p; IF NOT p IS NULL THEN err := 'Invalid cname'; reason := 'Name already taken by <a href="http://' || (SELECT data FROM config WHERE var = 'ui-host') || '/?p=' || encode(decode('/apps/details?id=s:' || p, 'escape'), 'base64') || '" target="_blank">' || p || '</a>.<p></p>'; reason := reason || 'Please modify your applcation name. In order to avoid confusion from similarly named software, you should use a modifier in you software name in order to differentiate it from other related entries. Good examples would be :</div>'; reason := reason || '<div><span></span>' || $1 || '-&lt;Country&gt;</div>'; reason := reason || '<div><span></span>' || $1 || '-&lt;Project&gt;</div>'; reason := reason || '<div><span></span>' || $1 || '-&lt;Virtual Organization&gt;</div>'; reason := reason || '<div><span></span>' || $1 || '-&lt;Consortium&gt;</div>'; reason := reason || '<div>etc...</div>'; reason := reason || '<p></p><div>For further information please refer to the <a href="#" onclick="appdb.utils.ToggleFaq(11);" >FAQ</a></div>'; RETURN '{"valid": false, "error": "' || err || '", "reason": ' || to_json(reason) || '}'; END IF; IF EXISTS (SELECT 1 FROM applications WHERE (name ILIKE '%' || $1 || '%') AND (NOT deleted) AND (($2 IS NULL) OR ((NOT $2 IS NULL) AND (id <> $2)))) THEN p := encode(DECODE('{"url":"/apps","query":{"flt":"name:' || to_json($1) || '"},"ext":{"mainTitle":"Software","prepend":[],"append":false,"componentType":"appdb.components.Applications","filterDisplay":"Search...","isList":true,"componentArgs":[{"flt":"name:' || to_json($1) || '"}]}}', 'escape'), 'base64'); reason := 'There are software items containing &#39;<i><b>' || $1 || '</b></i>&#39;. Click <a href="http://' || (SELECT data FROM config WHERE var = 'ui-host') || '?p=' || p || '" target="_blank">here</a> to view them in a new window.<p></p>'; reason := reason || '<div>In order to avoid confusion from similarly named software, we suggest you use a modifier in your software name in order to differentiate it from other related entries if this applies. <p></p>Good examples would be :</div>'; reason := reason || '<div ><span> </span>' || $1 || '-&lt;Country&gt;</div>'; reason := reason || '<div ><span> </span>' || $1 || '-&lt;Project&gt;</div>'; reason := reason || '<div ><span> </span>' || $1 || '-&lt;Virtual Organization&gt;</div>'; reason := reason || '<div ><span> </span>' || $1 || '-&lt;Consortium&gt;</div>'; reason := reason || '<div>etc...</div>'; reason := reason || '<p></p><div>For further information please refer to the <a href="#" onclick="appdb.utils.ToggleFaq(11);" >FAQ</a></div>'; RETURN '{"valid": true, "reason": ' || to_json(reason) || '}'; END IF; RETURN '{"valid": true}'; END; $$ LANGUAGE plpgsql STABLE; ALTER FUNCTION validate_app_name(text, int) OWNER TO appdb; CREATE OR REPLACE FUNCTION public.rankapp( m_id applications, m_query text) RETURNS integer AS $BODY$ DECLARE rank INT; DECLARE lrank INT; DECLARE args TEXT[]; DECLARE arg TEXT; DECLARE phrase TEXT; DECLARE fields TEXT[]; DECLARE field TEXT; DECLARE vals TEXT[]; DECLARE val TEXT; DECLARE ops TEXT[]; DECLARE tmp TEXT[]; DECLARE i INT; DECLARE j INT; DECLARE kk INT; DECLARE l INT; DECLARE k TEXT; DECLARE r RECORD; DECLARE m_disciplines TEXT[]; DECLARE m_categories TEXT[]; DECLARE m_phrase_bonus INT; DECLARE do_phrase_search BOOLEAN; BEGIN do_phrase_search := TRUE; IF m_query IS NULL OR TRIM(m_query) = '' THEN RETURN 0; END IF; m_query := fltstr_nbs(m_query); SELECT array_agg(DISTINCT disciplines.name) FROM disciplines WHERE disciplines.id = ANY((m_id::applications).disciplineid) INTO m_disciplines; SELECT array_agg(DISTINCT categories.name) FROM categories WHERE categories.id = ANY((m_id::applications).categoryid) INTO m_categories; fields = '{name, description, abstract, tag, disciplinename, subdisciplinename, categoryname}'::TEXT[]; rank := 0; args := string_to_array(m_query, ' '); args := array_append(args, '__PHRASE_BONUS__'); FOR i IN 1..array_length(args, 1) LOOP ops := NULL::TEXT[]; arg := args[i]; LOOP IF SUBSTRING(arg,1,1) = '+' OR SUBSTRING(arg,1,1) = '-' OR SUBSTRING(arg,1,1) = '=' OR SUBSTRING(arg,1,1) = '<' OR SUBSTRING(arg,1,1) = '>' OR SUBSTRING(arg,1,1) = '~' OR SUBSTRING(arg,1,1) = '$' OR SUBSTRING(arg,1,1) = '&' THEN do_phrase_search := FALSE; ops := array_append(ops, SUBSTRING(arg,1,1)); arg := SUBSTRING(arg,2); ELSE EXIT; END IF; END LOOP; IF SUBSTRING(arg,1,13) = 'category.name' THEN arg := 'application.categoryname' || SUBSTRING(arg,14); END IF; IF SUBSTRING(arg,1,12) = 'category.any' THEN arg := 'application.categoryname' || SUBSTRING(arg,13); END IF; IF SUBSTRING(arg,1,15) = 'discipline.name' THEN arg := 'application.disciplinename' || SUBSTRING(arg,16); END IF; IF SUBSTRING(arg,1,14) = 'discipline.any' THEN arg := 'application.disciplinename' || SUBSTRING(arg,15); END IF; IF SUBSTRING(arg,1,18) = 'subdiscipline.name' THEN arg := 'application.subdisciplinename' || SUBSTRING(arg,19); END IF; IF SUBSTRING(arg,1,17) = 'subdiscipline.any' THEN arg := 'application.subdisciplinename' || SUBSTRING(arg,18); END IF; IF NOT (SUBSTRING(arg,1,12) = 'application.' OR SUBSTRING(arg,1,4) = 'any.' OR instr(arg,'.') = 0) THEN CONTINUE; END IF; IF SUBSTR(arg,1,12) = 'application.' THEN arg = SUBSTRING(arg,13); ELSIF SUBSTR(arg,1,4) = 'any.' THEN arg = SUBSTRING(arg,5); END IF; tmp := string_to_array(arg, ':'); field := NULL; IF array_length(tmp, 1) > 1 THEN IF tmp[1] <> 'any' THEN field := tmp[1]; do_phrase_search := FALSE; END IF; val := ''; FOR j IN 2..array_length(tmp, 1) LOOP val := val || tmp[j]; END LOOP; ELSE val := tmp[1]; END IF; IF NOT val IS NULL THEN IF (val = '__PHRASE_BONUS__') AND (do_phrase_search IS TRUE) THEN val := array_to_string(args, ' '); val := REPLACE(val, ' __PHRASE_BONUS__', ''); m_phrase_bonus := 8 * ((LENGTH(REGEXP_REPLACE(val, '[^ ]', '', 'g')))+1); ELSIF (val = '__PHRASE_BONUS__') AND (do_phrase_search IS FALSE) THEN CONTINUE; ELSE m_phrase_bonus := 1; END IF; FOR j IN 1..array_length(fields, 1) LOOP -- TODO: re-write this IF statement to properly handle all cases of ops IF (ops IS NULL) OR (ops = ARRAY['+']) OR (ops = ARRAY['=']) OR (ops = ARRAY['=','+']) OR (ops = ARRAY['+','=']) THEN -- LOOP OVER EXACT AND PARTIAL MATCHES (BONUS FOR EXACT) vals = ('{' || val || ', %' || val || '%}')::TEXT[]; FOR kk IN 1..array_length(vals, 1) LOOP k := vals[kk]; lrank := 0; IF fields[j] = 'name' THEN IF m_id.name ILIKE k THEN lrank := lrank + 6; END IF; END IF; IF fields[j] = 'description' THEN IF m_id.description ILIKE k THEN lrank := lrank + 4 + (word_count(m_id.description, val)-1); END IF; END IF; IF fields[j] = 'tag' THEN IF k ~~~@ ANY(keywords(m_id)) THEN lrank := lrank + 4; END IF; END IF; IF fields[j] = 'abstract' THEN IF m_id.abstract ILIKE k THEN lrank := lrank + 1 + (word_count(m_id.abstract, val)-1); END IF; END IF; IF fields[j] = 'id' THEN IF m_id.id::TEXT ILIKE k THEN lrank := lrank + 1; END IF; END IF; IF fields[j] = 'categoryname' AND NOT m_categories IS NULL THEN FOR l IN 1..array_length(m_categories, 1) LOOP IF m_categories[l] ILIKE k THEN lrank := lrank + 2; END IF; END LOOP; END IF; IF fields[j] = 'disciplinename' AND NOT m_disciplines IS NULL THEN FOR l IN 1..array_length(m_disciplines, 1) LOOP IF m_disciplines[l] ILIKE k THEN lrank := lrank + 10; END IF; END LOOP; END IF; -- BONUS FOR SPECIFIC FIELD IF fields[j] = field THEN lrank = lrank * 3; END IF; lrank := lrank * m_phrase_bonus; rank := rank + lrank; END LOOP; END IF; END LOOP; END IF; END LOOP; RETURN rank; END $BODY$ LANGUAGE plpgsql STABLE COST 100; ALTER FUNCTION public.rankapp(applications, text) OWNER TO appdb; CREATE OR REPLACE FUNCTION appdb_ns_array() RETURNS TEXT[] AS $$ SELECT ARRAY[ 'appdb', 'application', 'category', 'classification', 'contextualization', 'dataset', 'discipline', 'dissemination', 'entity', 'filter', 'history', 'license', 'logistics', 'middleware', 'organization', 'permission', 'person', 'privilege', 'project', 'provider', 'provider_template', 'publication', 'rating', 'ratingreport', 'regional', 'resource', 'site', 'siteservice', 'user', 'virtualization', 'vo' ]; $$ LANGUAGE SQL IMMUTABLE; ALTER FUNCTION appdb_ns_array() OWNER TO appdb; CREATE OR REPLACE FUNCTION public.appdb_xmlns() RETURNS text LANGUAGE sql IMMUTABLE AS $function$ SELECT array_to_string(array_agg('xmlns:' || x || '="http://appdb.egi.eu/api/1.0/' || x ||'"'), ' ') AS xmlns FROM UNNEST(appdb_ns_array()) AS x $function$; ALTER FUNCTION appdb_xmlns() OWNER TO appdb; CREATE OR REPLACE FUNCTION public.appdb_xpathns() RETURNS text[] LANGUAGE sql IMMUTABLE AS $function$ SELECT ( SELECT ARRAY[ ARRAY['xs', 'http://www.w3.org/2001/XMLSchema'], ARRAY['xsi', 'http://www.w3.org/2001/XMLSchema-instance'] ] ) || ( SELECT ARRAY_AGG(ARRAY[x, 'http://appdb.egi.eu/api/1.0/' || x]) FROM UNNEST(appdb_ns_array()) AS x ); $function$; ALTER FUNCTION appdb_xpathns() OWNER TO appdb; DROP FUNCTION IF EXISTS consume_doc(TEXT,INT); CREATE OR REPLACE FUNCTION consume_doc(xml_in TEXT, appid_in INT) RETURNS TEXT AS $$ DECLARE _docid INT; _appid INT; xtmp XML[]; xdoc XML; BEGIN xdoc := $1::XML; _appid := $2; _docid := (((xpath('./@id', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xid; -- prevent overwriting other app's publications data IF EXISTS (SELECT 1 FROM appdocuments WHERE id = _docid AND appid <> _appid) THEN RETURN NULL; END IF; IF NOT _docid IS NULL THEN WITH x AS ( SELECT ((xpath('./publication:title/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xtitle, ((xpath('./publication:url/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xurl, ((xpath('./publication:conference/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xconference, ((xpath('./publication:proceedings/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xproceedings, ((xpath('./publication:isbn/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xisbn, (((xpath('./publication:startPage/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xstartpage, (((xpath('./publication:endPage/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xendpage, ((xpath('./publication:volume/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xvolume, ((xpath('./publication:publisher/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xpublisher, ((xpath('./publication:journal/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xjournal, (((xpath('./publication:year/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xyear, (((xpath('./publication:type/@id', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xtype, CASE WHEN NOT (xpath('./publication:author[@main="true"][@type="internal"]', xdoc, appdb_xpathns()))[1] IS NULL THEN (SELECT name FROM researchers WHERE id = (((xpath('./publication:author[@main="true"][@type="internal"]/@id', xdoc, appdb_xpathns()))[1])::TEXT)::INT) ELSE ((xpath('./publication:author[@main="true"][@type="external"]/text()', xdoc, appdb_xpathns()))[1])::TEXT END AS xmainauthor ) UPDATE appdocuments SET title = xtitle, url = xurl, conference = xconference, proceedings = xproceedings, isbn = xisbn, pagestart = xstartpage, pageend = xendpage, volume = xvolume, publisher = xpublisher, "year" = xyear, doctypeid = xtype, journal = xjournal, mainauthor = xmainauthor FROM x WHERE (id = _docid) AND (appid = _appid); ELSE WITH x AS ( SELECT ((xpath('./publication:title/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xtitle, ((xpath('./publication:url/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xurl, ((xpath('./publication:conference/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xconference, ((xpath('./publication:proceedings/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xproceedings, ((xpath('./publication:isbn/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xisbn, (((xpath('./publication:startPage/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xstartpage, (((xpath('./publication:endPage/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xendpage, ((xpath('./publication:volume/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xvolume, ((xpath('./publication:publisher/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xpublisher, ((xpath('./publication:journal/text()', xdoc, appdb_xpathns()))[1])::TEXT AS xjournal, (((xpath('./publication:year/text()', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xyear, (((xpath('./publication:type/@id', xdoc, appdb_xpathns()))[1])::TEXT)::INT AS xtype, CASE WHEN NOT (xpath('./publication:author[@main="true"][@type="internal"]', xdoc, appdb_xpathns()))[1] IS NULL THEN (SELECT name FROM researchers WHERE id = (((xpath('./publication:author[@main="true"][@type="internal"]/@id', xdoc, appdb_xpathns()))[1])::TEXT)::INT) ELSE ((xpath('./publication:author[@main="true"][@type="external"]/text()', xdoc, appdb_xpathns()))[1])::TEXT END AS xmainauthor ) INSERT INTO appdocuments (appid, title, url, conference, proceedings, isbn, pagestart, pageend, volume, publisher, "year", mainauthor, doctypeid, journal) SELECT _appid, xtitle, xurl, xconference, xproceedings, xisbn, xstartpage, xendpage, xvolume, xpublisher, xyear, xmainauthor, xtype, xjournal FROM x RETURNING id INTO _docid; END IF; -- sync external authors IF xpath_exists('./publication:author[@type="external"]', xdoc, appdb_xpathns()) THEN xtmp := xpath('./publication:author[@type="external"]', xdoc, appdb_xpathns()); DELETE FROM extauthors WHERE (docid = _docid) AND NOT (author = ANY(xpath('./publication:extAuthor/text()', xtmp, appdb_xpathns()))); --FIXME: author = ANY ... should be case-insensitive WITH xauth AS ( SELECT (((xpath('./@main', x, appdb_xpathns()))[1])::TEXT)::BOOLEAN AS xmain, (((xpath('./publication:extAuthor/text()', x, appdb_xpathns()))[1])::TEXT)::INT AS xauthor FROM UNNEST(xtmp::TEXT[]) AS x ) INSERT INTO extauthors (docid, author, main) SELECT _docid, xauthor, COALESCE(xmain, FALSE) FROM xauth WHERE NOT (xauthor IS NULL) AND NOT EXISTS (SELECT 1 FROM extauthors WHERE (docid = _docid) AND author = xauthor); END IF; -- sync internal authors IF xpath_exists('./publication:author[@type="internal"]', xdoc, appdb_xpathns()) THEN DELETE FROM intauthors WHERE (docid = _docid) AND NOT ( authorid = ANY( ((xpath( './publication:author[@type="internal"]/@id'::TEXT, xdoc, appdb_xpathns() ))::TEXT[])::INT[] ) ); xtmp := xpath('./publication:author[@type="internal"]', xdoc, appdb_xpathns()); WITH xauth AS ( SELECT (((xpath('./@main', x, appdb_xpathns()))[1])::TEXT)::BOOLEAN AS xmain, (((xpath('./person:person/@id', x, appdb_xpathns()))[1])::TEXT)::INT AS xauthorid FROM UNNEST(xtmp) AS x ) INSERT INTO intauthors (docid, authorid, main) SELECT _docid, xauthorid, COALESCE(xmain, FALSE) FROM xauth WHERE NOT (xauthorid IS NULL) AND NOT EXISTS (SELECT 1 FROM intauthors WHERE (docid = _docid) AND (authorid = xauthorid)); END IF; RETURN '{"id": ' || _docid::TEXT || ', "guid": "' || (SELECT guid::TEXT FROM appdocuments WHERE id = _docid) || '"}'; END; $$ LANGUAGE plpgsql; ALTER FUNCTION consume_doc(TEXT, INT) OWNER TO appdb; DROP FUNCTION IF EXISTS consume_app(text, int, int); CREATE OR REPLACE FUNCTION consume_app(xml_in text, http_method int, userid int) RETURNS TEXT AS $$ DECLARE i INT; rec RECORD; xtmp XML[]; xtmp2 XML[]; x XML; xapp XML; _appid INT; _appguid UUID; userguid uuid; jtmp JSON; _metatype INT; _intauths INT[]; _extauths TEXT[]; RM_POST CONSTANT INT := 2; RM_PUT CONSTANT INT := 4; RM_DELETE CONSTANT INT := 8; RE_OK CONSTANT INT := 0; RE_ACCESS_DENIED CONSTANT INT := 1; RE_ITEM_NOT_FOUND CONSTANT INT := 2; RE_INVALID_REPRESENTATION CONSTANT INT := 3; RE_INVALID_METHOD CONSTANT INT := 4; RE_INVALID_RESOURCE CONSTANT INT := 5; RE_BACKEND_ERROR CONSTANT INT := 6; RE_INVALID_OPERATION CONSTANT INT := 7; BEGIN IF NOT $3 IS NULL THEN userguid := (SELECT guid FROM researchers WHERE id = $3); END IF; IF $2 NOT IN (RM_PUT, RM_POST, RM_DELETE) THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_INVALID_METHOD; END IF; BEGIN xtmp := xpath('//application:application', $1::XML, appdb_xpathns()); EXCEPTION WHEN OTHERS THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_INVALID_REPRESENTATION; END; IF ARRAY_LENGTH(xtmp, 1) = 0 THEN RAISE NOTICE 'EXCEPTION1'; RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_INVALID_REPRESENTATION; END IF; xapp := xtmp[1]; IF xpath_exists('/@metatype', xapp, appdb_xpathns()) THEN _metatype := COALESCE((((xpath('/@metatype', xapp, appdb_xpathns()))[1])::TEXT)::INT, 0); END IF; IF ($2 = RM_PUT AND ((NOT xpath_exists('./discipline:discipline', xapp, appdb_xpathns())) OR (NOT xpath_exists('application:category', xapp, appdb_xpathns())))) THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_INVALID_REPRESENTATION; END IF; IF $2 = RM_POST THEN x := (xpath('./@id', xapp, appdb_xpathns()))[1]; IF (x IS NULL) OR NOT (x::TEXT ~ '^[0-9]+$') THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_INVALID_REPRESENTATION; END IF; _appid := (x::TEXT)::INT; IF xpath_exists('./application:name/text()', xapp, appdb_xpathns()) THEN jtmp := validate_app_name(REGEXP_REPLACE( ((xpath('./application:name/text()', xapp, appdb_xpathns()))[1])::TEXT, '-DELETED-.{8}-.{4}-.{4}-.{4}-.{12}', '' ), _appid)::JSON; IF NOT (jtmp->>'valid')::BOOLEAN THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %, %', RE_BACKEND_ERROR, jtmp->>'reason'; END IF; END IF; UPDATE applications a SET name = CASE WHEN EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 5 AND ((object IS NULL) OR object = a.guid)) THEN COALESCE(((xpath('./application:name/text()', xapp, appdb_xpathns()))[1])::TEXT, a.name) ELSE a.name END , description = CASE WHEN EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 6 AND ((object IS NULL) OR object = a.guid)) THEN COALESCE(((xpath('./application:description/text()', xapp, appdb_xpathns()))[1])::TEXT, a.description) ELSE a.description END, abstract = CASE WHEN EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 7 AND ((object IS NULL) OR object = a.guid)) THEN COALESCE(((xpath('./application:abstract/text()', xapp, appdb_xpathns()))[1])::TEXT, a.abstract) ELSE a.abstract END, statusid = CASE WHEN EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 9 AND ((object IS NULL) OR object = a.guid)) THEN COALESCE((((xpath('./application:status/@id', xapp, appdb_xpathns()))[1])::TEXT)::INT, a.statusid) ELSE a.statusid END, tool = COALESCE((((xpath('./@tool', xapp, appdb_xpathns()))[1])::TEXT)::BOOLEAN, a.tool), lastupdated = NOW(), tagpolicy = CASE WHEN $3 IN (a.addedby, a."owner") OR EXISTS (SELECT 1 FROM actor_group_members WHERE actorid = userguid AND groupid IN (-1, -2)) THEN COALESCE((((xpath('/@tagPolicy', xapp, appdb_xpathns()))[1])::TEXT)::INT, a.tagpolicy) ELSE a.tagpolicy END, "owner" = CASE WHEN EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 23 AND ((object IS NULL) OR object = a.guid)) THEN COALESCE((((xpath('./application:owner/@id', xapp, appdb_xpathns()))[1])::TEXT)::INT, a."owner") ELSE a."owner" END, metatype = CASE WHEN _metatype IN (0,1,2) THEN _metatype ELSE a.metatype END WHERE id = _appid; ELSIF $2 = RM_PUT THEN IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 3) THEN -- Insert Software permission jtmp := validate_app_name(REGEXP_REPLACE( ((xpath('./application:name/text()', xapp, appdb_xpathns()))[1])::TEXT, '-DELETED-.{8}-.{4}-.{4}-.{4}-.{12}', '' ))::JSON; IF NOT (jtmp->>'valid')::BOOLEAN THEN RAISE EXCEPTION 'APPDB_REST_API_ERROR %, %', RE_BACKEND_ERROR, jtmp->>'reason'; END IF; INSERT INTO applications (name, description, abstract, statusid, dateadded, addedby, tool, tagpolicy, metatype, "owner", cname) VALUES ( (xpath('./application:name/text()', xapp, appdb_xpathns()))[1], (xpath('./application:description/text()', xapp, appdb_xpathns()))[1], (xpath('./application:abstract/text()', xapp, appdb_xpathns()))[1], COALESCE((((xpath('./application:status/@id', xapp, appdb_xpathns()))[1])::TEXT)::INT, 6), NOW(), $3, COALESCE((((xpath('./@tool', xapp, appdb_xpathns()))[1])::TEXT)::BOOLEAN, FALSE), COALESCE((((xpath('/@tagPolicy', xapp, appdb_xpathns()))[1])::TEXT)::INT, 2), CASE WHEN _metatype IN (0,1,2) THEN _metatype ELSE 0 END, COALESCE((((xpath('./application:owner/@id', xapp, appdb_xpathns()))[1])::TEXT)::INT, $3), (xpath('/@cname', xapp, appdb_xpathns()))[1] ) RETURNING id INTO _appid; ELSE RAISE EXCEPTION 'APPDB_REST_API_ERROR %', RE_ACCESS_DENIED; END IF; END IF; _appguid := (SELECT guid FROM applications WHERE id = _appid); IF can_mod_app_tags(_appid, $3) THEN IF xpath_exists('./application:tag[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM __app_tags WHERE appid = _appid; ELSIF xpath_exists('./application:tag', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:tag/text()', xapp, appdb_xpathns()); DELETE FROM __app_tags WHERE (appid = _appid) AND (NOT tag = ANY(xtmp::TEXT[])); INSERT INTO __app_tags (appid, researcherid, tag) SELECT _appid, $3, xtag FROM UNNEST(xtmp::TEXT[]) AS xtag WHERE (NOT xtag IS NULL) AND (NOT EXISTS (SELECT 1 FROM app_tags WHERE (appid = _appid) AND (xtag = tag))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 26 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./application:category', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:category/@id', xapp, appdb_xpathns()); DELETE FROM appcategories WHERE (appid = _appid) AND (NOT categoryid = ANY((xtmp::TEXT[])::INT[])); INSERT INTO appcategories (appid, categoryid) SELECT _appid, xcat::INT FROM UNNEST(xtmp::TEXT[]) AS xcat WHERE (NOT xcat IS NULL) AND (NOT EXISTS (SELECT 1 FROM appcategories WHERE (appid = _appid) AND (categoryid = xcat::INT))); x := (xpath('./application:category[@primary="true"]/@id', xapp, appdb_xpathns()))[1]; IF NOT x IS NULL THEN UPDATE appcategories SET isprimary = TRUE WHERE appid = _appid AND categoryid = (x::TEXT)::INT; END IF; END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 10 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./discipline:discipline', xapp, appdb_xpathns()) THEN xtmp := xpath('./discipline:discipline/@id', xapp, appdb_xpathns()); DELETE FROM appdisciplines WHERE (appid = _appid) AND (NOT disciplineid = ANY((xtmp::TEXT[])::INT[])); INSERT INTO appdisciplines (appid, disciplineid) SELECT _appid, xdisc::INT FROM UNNEST(xtmp::TEXT[]) AS xdisc WHERE (NOT xdisc IS NULL) AND (NOT EXISTS (SELECT 1 FROM appdisciplines WHERE (appid = _appid) AND (disciplineid = xdisc::INT))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 31 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./application:language[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM appproglangs WHERE (appid = _appid); ELSIF xpath_exists('./application:language', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:language/@id', xapp, appdb_xpathns()); DELETE FROM appproglangs WHERE (appid = _appid) AND (NOT proglangid = ANY((xtmp::TEXT[])::INT[])); INSERT INTO appproglangs (appid, proglangid) SELECT _appid, xlang::INT FROM UNNEST(xtmp::TEXT[]) AS xlang WHERE (NOT xlang IS NULL) AND (NOT EXISTS (SELECT 1 FROM appproglangs WHERE (appid = _appid) AND (proglangid = xlang::INT))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 33 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./application:license[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM app_licenses WHERE (appid = _appid) ; ELSIF xpath_exists('./application:license', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:license/@id', xapp, appdb_xpathns()); DELETE FROM app_licenses WHERE (appid = _appid) AND (NOT licenseid = ANY((xtmp::TEXT[])::INT[])); INSERT INTO app_licenses (appid, licenseid) SELECT _appid, xlic::INT FROM UNNEST(xtmp::TEXT[]) AS xlic WHERE (NOT xlic IS NULL) AND (NOT EXISTS (SELECT 1 FROM app_licenses WHERE (appid = _appid) AND (licenseid = xlic::INT))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 12 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./regional:country[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM appmanualcountries WHERE (appid = _appid); ELSIF xpath_exists('./regional:country', xapp, appdb_xpathns()) THEN xtmp := xpath('./regional:country/@id', xapp, appdb_xpathns()); DELETE FROM appmanualcountries WHERE (appid = _appid) AND (NOT countryid = ANY((xtmp::TEXT[])::INT[])); INSERT INTO appmanualcountries (appid, countryid) SELECT _appid, xcountry::INT FROM UNNEST(xtmp::TEXT[]) AS xcountry WHERE (NOT xcountry IS NULL) AND (NOT EXISTS (SELECT 1 FROM appmanualcountries WHERE (appid = _appid) AND (countryid = xcountry::INT))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 14 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./application:url[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM app_urls WHERE (appid = _appid); ELSIF xpath_exists('./application:url', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:url', xapp, appdb_xpathns()); WITH xurls AS ( SELECT ((xpath('./@type', xu, appdb_xpathns()))[1])::TEXT AS description, ((xpath('./@title', xu, appdb_xpathns()))[1])::TEXT AS title, ((xpath('./text()', xu, appdb_xpathns()))[1])::TEXT AS url FROM UNNEST(xtmp) AS xu ) DELETE FROM app_urls au WHERE (au.appid = _appid) AND (NOT EXISTS (SELECT 1 FROM xurls WHERE NOT ((au.title, au.description, au.url) IS DISTINCT FROM (xurls.title, xurls.description, xurls.url)))); WITH xurls AS ( SELECT ((xpath('./@type', xu, appdb_xpathns()))[1])::TEXT AS description, ((xpath('./@title', xu, appdb_xpathns()))[1])::TEXT AS title, ((xpath('./text()', xu, appdb_xpathns()))[1])::TEXT AS url FROM UNNEST(xtmp) AS xu ) INSERT INTO app_urls (appid, title, description, url) SELECT _appid, xurls.title, xurls.description, xurls.url FROM xurls WHERE (NOT xurls.url IS NULL) AND (NOT EXISTS (SELECT 1 FROM app_urls au WHERE (au.appid = _appid) AND NOT ((au.title, au.description, au.url) IS DISTINCT FROM (xurls.title, xurls. description, xurls.url)))); END IF; END IF; -- KEEP IN PHP: logo, relations (?) IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 13 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./vo:vo[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM __app_vos WHERE (appid = _appid); ELSIF xpath_exists('./vo:vo', xapp, appdb_xpathns()) THEN xtmp := xpath('./vo:vo/@id', xapp, appdb_xpathns()); DELETE FROM __app_vos WHERE (appid = _appid) AND (NOT void = ANY((xtmp::TEXT[])::INT[])); INSERT INTO __app_vos (appid, void) SELECT _appid, xvo::INT FROM UNNEST(xtmp::TEXT[]) AS xvo WHERE (NOT xvo IS NULL) AND (NOT EXISTS (SELECT 1 FROM __app_vos WHERE (appid = _appid) AND (void = xvo::INT))); END IF; END IF; IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 20 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./middleware:middleware[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM app_middlewares WHERE (appid = _appid); ELSIF xpath_exists('./middleware:middleware', xapp, appdb_xpathns()) THEN xtmp := xpath('./middleware:middleware/@id', xapp, appdb_xpathns()); DELETE FROM app_middlewares WHERE (appid = _appid) AND (NOT middlewareid = ANY((xtmp::TEXT[])::INT[])) AND (NOT middlewareid = 5); INSERT INTO app_middlewares (appid, middlewareid) SELECT _appid, xmw::INT FROM UNNEST(xtmp::TEXT[]) AS xmw WHERE (NOT xmw IS NULL) AND (xmw::INT <> 5) AND (NOT EXISTS (SELECT 1 FROM app_middlewares WHERE (appid = _appid) AND (middlewareid = xmw::INT))); -- handle "custom" middlewares (id=5) seperately... xtmp := xpath('./middleware:middleware[@id="5"]', xapp, appdb_xpathns()); IF ARRAY_LENGTH(xtmp, 1) > 0 THEN FOR i IN 1..ARRAY_LENGTH(xtmp, 1) LOOP DELETE FROM app_middlewares WHERE (appid = _appid) AND (middlewareid = 5) AND NOT EXISTS ( SELECT 1 FROM app_middlewares WHERE (appid = _appid) AND (middlewareid = 5) AND ("comment" = ((xpath('./text()', xtmp[i], appdb_xpathns()))[1])::TEXT) AND (link = ((xpath('./@link', xtmp[i], appdb_xpathns()))[1])::TEXT) ); END LOOP; FOR i IN 1..ARRAY_LENGTH(xtmp, 1) LOOP INSERT INTO app_middlewares (appid, middlewareid, "comment", link) VALUES ( _appid, 5, ((xpath('./@comment', xtmp[i], appdb_xpathns()))[1])::TEXT, ((xpath('./@link', xtmp[i], appdb_xpathns()))[1])::TEXT ); END LOOP; END IF; END IF; END IF; IF xpath_exists('./application:contact', xapp, appdb_xpathns()) THEN xtmp := xpath('./application:contact/@id', xapp, appdb_xpathns()); -- if can disassociate IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 17 AND ((object IS NULL) OR object = _appguid)) THEN DELETE FROM appcontact_vos WHERE (appid = _appid) AND NOT (researcherid = ANY((xtmp::TEXT[])::INT[])); DELETE FROM appcontact_middlewares WHERE (appid = _appid) AND NOT (researcherid = ANY((xtmp::TEXT[])::INT[])); DELETE FROM appcontact_otheritems WHERE (appid = _appid) AND NOT (researcherid = ANY((xtmp::TEXT[])::INT[])); DELETE FROM researchers_apps WHERE (appid = _appid) AND NOT (researcherid = ANY((xtmp::TEXT[])::INT[])); -- RETURNING researcherid INTO i; -- RAISE NOTICE 'del1: %', i; END IF; -- if can associate IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 16 AND ((object IS NULL) OR object = _appguid)) THEN INSERT INTO researchers_apps (researcherid, appid) SELECT _appid, xres FROM UNNEST((xtmp::TEXT[])::INT[]) AS xres WHERE (NOT xres IS NULL) AND NOT EXISTS (SELECT 1 FROM researchers_apps WHERE appid = _appid AND researcherid = ANY((xtmp::TEXT[])::INT[])); IF xpath_exists('./application:contact/application:contactItem', xapp, appdb_xpathns()) THEN IF ARRAY_LENGTH(xtmp, 1) > 0 THEN FOR i IN 1..ARRAY_LENGTH(xtmp, 1) LOOP IF xpath_exists('./application:contact[@id="' || xtmp[i]::TEXT || '"]/application:contactItem[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM appcontact_vos WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT); -- RETURNING * INTO rec; RAISE NOTICE '%', rec; DELETE FROM appcontact_middlewares WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT); -- RETURNING * INTO rec; RAISE NOTICE '%', rec; DELETE FROM appcontact_otheritems WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT); -- RETURNING * INTO rec; RAISE NOTICE '%', rec; ELSE xtmp2 := xpath('./application:contact[@id="' || xtmp[i]::TEXT || '"]/application:contactItem', xapp, appdb_xpathns()); WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./@id', xt, appdb_xpathns()))[1]::TEXT AS "itemid", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) DELETE FROM appcontact_vos WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND NOT EXISTS ( SELECT 1 FROM xcon WHERE (xcon.type = 'vo') AND (xcon.itemid = void::TEXT) /*AND NOT (xcon.note IS DISTINCT FROM appcontact_vos.note)*/ ); -- RETURNING * INTO rec; RAISE NOTICE 'deleted: %', rec; WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./@id', xt, appdb_xpathns()))[1]::TEXT AS "itemid", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) DELETE FROM appcontact_middlewares WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND NOT EXISTS ( SELECT 1 FROM xcon INNER JOIN app_middlewares ON app_middlewares.id::TEXT = xcon.itemid WHERE (xcon.type = 'middleware') AND (CASE xcon.itemid WHEN '5' THEN xcon.item = app_middlewares.comment ELSE xcon.itemid = app_middlewares.middlewareid::TEXT END) AND NOT (xcon.note IS DISTINCT FROM appcontact_middlewares.note) ); WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./@id', xt, appdb_xpathns()))[1]::TEXT AS "itemid", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) DELETE FROM appcontact_otheritems WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND NOT EXISTS ( SELECT 1 FROM xcon WHERE (xcon.type = 'other') AND (xcon.itemid = item) AND NOT (xcon.note IS DISTINCT FROM appcontact_otheritems.note) ); WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./@id', xt, appdb_xpathns()))[1]::TEXT AS "itemid", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) INSERT INTO appcontact_vos (appid, researcherid, void, note) SELECT _appid, (xtmp[i]::TEXT)::INT, xcon.itemid::INT, xcon.note FROM xcon WHERE (xcon.type = 'vo') AND NOT (xcon.itemid IS NULL) AND NOT EXISTS ( SELECT 1 FROM appcontact_vos WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND (void::TEXT = xcon.itemid) AND NOT (xcon.note IS DISTINCT FROM appcontact_vos.note) ); WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./@id', xt, appdb_xpathns()))[1]::TEXT AS "itemid", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) INSERT INTO appcontact_middlewares (appid, researcherid, appmiddlewareid, note) SELECT __appid, __researcherid, __appmiddlewareid, __note FROM ( SELECT _appid AS __appid, (xtmp[i]::TEXT)::INT AS __researcherid, (SELECT id FROM app_middlewares WHERE appid = _appid AND ( CASE xcon.itemid -- tata WHEN '5' THEN (app_middlewares.middlewareid = 5) AND (app_middlewares.comment = xcon.item) ELSE app_middlewares.middlewareid::TEXT = xcon.itemid END) ) AS __appmiddlewareid, xcon.note AS __note FROM xcon WHERE (xcon.type = 'middleware') AND NOT (xcon.itemid IS NULL) AND NOT EXISTS ( SELECT 1 FROM appcontact_middlewares WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND ( CASE xcon.itemid -- lala WHEN '5' THEN appmiddlewareid = (SELECT id FROM app_middlewares WHERE (middlewareid = 5) AND ("comment" = xcon.item) AND (appid = _appid)) ELSE appmiddlewareid = (SELECT id FROM app_middlewares WHERE (middlewareid::TEXT = xcon.itemid) AND (appid = _appid)) END ) AND NOT (xcon.note IS DISTINCT FROM appcontact_middlewares.note) ) ) AS t WHERE NOT __appmiddlewareid IS NULL; WITH xcon AS ( SELECT (xpath('./@type', xt, appdb_xpathns()))[1]::TEXT AS "type", (xpath('./@note', xt, appdb_xpathns()))[1]::TEXT AS "note", (xpath('./text()', xt, appdb_xpathns()))[1]::TEXT AS "item" FROM UNNEST(xtmp2) AS xt ) INSERT INTO appcontact_otheritems (appid, researcherid, item, note) SELECT _appid, (xtmp[i]::TEXT)::INT, xcon.item, xcon.note FROM xcon WHERE (xcon.type = 'other') AND NOT (xcon.item IS NULL) AND NOT EXISTS ( SELECT 1 FROM appcontact_otheritems WHERE (appid = _appid) AND (researcherid = (xtmp[i]::TEXT)::INT) AND (item = xcon.item) AND NOT (xcon.note IS DISTINCT FROM appcontact_otheritems.note) ); END IF; END LOOP; END IF; END IF; END IF; END IF; -- END contacts IF EXISTS (SELECT 1 FROM permissions WHERE actor = userguid AND actionid = 15 AND ((object IS NULL) OR object = _appguid)) THEN IF xpath_exists('./publication:publication[@xsi:nil="true"]', xapp, appdb_xpathns()) THEN DELETE FROM appdocuments WHERE appid = _appid; ELSIF xpath_exists('./publication:publication', xapp, appdb_xpathns()) THEN DELETE FROM appdocuments WHERE (appid = _appid) AND NOT (id = ANY( ((xpath('./publication:publication/@id', xapp, appdb_xpathns()))::TEXT[])::INT[] )); xtmp := xpath('./publication:publication', xapp, appdb_xpathns()); PERFORM consume_doc(xdoc, _appid) FROM UNNEST(xtmp::TEXT[]) AS xdoc; END IF; END IF; RETURN '{"id": ' || _appid::TEXT || ', "guid": "' || (SELECT guid::TEXT FROM applications WHERE id = _appid) || '"}'; --RETURN app_to_xml_ext(_appid); END; $$ LANGUAGE plpgsql VOLATILE; ALTER FUNCTION consume_app(text, int, int) OWNER TO appdb; INSERT INTO version (major,minor,revision,notes) SELECT 8, 21, 0, E'Move app XML parsing code and logic from web server to data server' WHERE NOT EXISTS (SELECT * FROM version WHERE major=8 AND minor=21 AND revision=0); COMMIT;
<filename>oracleAQ/basicCleanups.sql --Clean up all objects related to the obj type: EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name => 'objType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name => 'objType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'objType_classicQueueTable'); --Clean up all objects related to the RAW type: EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name =>'rawType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name =>'rawType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table =>'rawType_classicQueueTable'); --Clean up all objects related to the JSON type: EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name =>'JSONType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name =>'JSONType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table =>'JSONType_classicQueueTable'); --Cleans up all objects related to the RAW type: EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name =>'multiconsumer_rawType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name =>'multiconsumer_rawType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table =>'multiconsumer_rawType_classicQueueTable'); --Clean up all Java Basic Queue Tables and Queues EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name => 'java_QueueName'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name => 'java_QueueName'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'JAVA_QUEUETABLE'); EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name => 'java_QueueName_Multi'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name => 'java_QueueName_Multi'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'java_QueueTable_Multi'); EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name => 'java_basicOracleQueueName'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name => 'java_basicOracleQueueName'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'java_basicOracleQueueTable'); --Clean up object type */ DROP TYPE obj_typ; / select * from ALL_QUEUES where OWNER='DBUSER' and QUEUE_TYPE='NORMAL_QUEUE'; / EXIT;
/******************************************** ACHILLES Analyses on PROCEDURE_COST table *********************************************/ -- CREATE TABLE ACHILLES_procedure_cost_raw as -- select procedure_concept_id as po1.procedure_concept_id, -- paid_copay, -- paid_coinsurance, -- paid_toward_deductible, -- paid_by_payer, -- paid_by_coordination_benefits, -- total_out_of_pocket, -- total_paid -- from procedure_cost pc1 -- join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and procedure_concept_id <> 0 -- ; -- 1600 Number of procedure cost records with invalid procedure exposure id insert into ACHILLES_results (analysis_id, count_value) select 1600 as analysis_id, count(pc1.procedure_cost_ID) as count_value from procedure_cost pc1 left join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id where po1.procedure_occurrence_id is null ; -- 1601 Number of procedure cost records with invalid payer plan period id insert into ACHILLES_results (analysis_id, count_value) select 1601 as analysis_id, count(pc1.procedure_cost_ID) as count_value from procedure_cost pc1 left join payer_plan_period ppp1 on pc1.payer_plan_period_id = ppp1.payer_plan_period_id where pc1.payer_plan_period_id is not null and ppp1.payer_plan_period_id is null ; -- 1602 Distribution of paid copay, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.paid_copay as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.paid_copay is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1602 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1603 Distribution of paid coinsurance, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.paid_coinsurance as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.paid_coinsurance is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1603 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1604 Distribution of paid toward deductible, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.paid_toward_deductible as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.paid_toward_deductible is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1604 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1605 Distribution of paid by payer, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.paid_by_payer as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.paid_by_payer is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1605 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1606 Distribution of paid by coordination of benefit, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.paid_by_coordination_benefits as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.paid_by_coordination_benefits is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1606 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1607 Distribution of total out-of-pocket, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.total_out_of_pocket as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.total_out_of_pocket is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1607 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1608 Distribution of total paid, by procedure_concept_id insert into ACHILLES_results_dist (analysis_id, stratum_1, count_value, min_value, max_value, avg_value, stdev_value, median_value, p10_value, p25_value, p75_value, p90_value) with rawData as ( select po1.procedure_concept_id as stratum1_id, pc1.total_paid as count_value from procedure_cost pc1 join procedure_occurrence po1 on pc1.procedure_occurrence_id = po1.procedure_occurrence_id and po1.procedure_concept_id <> 0 where pc1.total_paid is not null ), overallStats as ( select stratum1_id, avg(1.0 * count_value) as avg_value, stddev(count_value) as stdev_value, min(count_value) as min_value, max(count_value) as max_value, count(*) as total from rawData group by stratum1_id ), status as ( select stratum1_id, count_value, count(*) as total, row_number() over (partition by stratum1_id order by count_value) as rn from rawData group by stratum1_id, count_value ), priorStats as ( select s.stratum1_id, s.count_value, s.total, sum(p.total) as accumulated from status s join status p on s.stratum1_id = p.stratum1_id and p.rn <= s.rn group by s.stratum1_id, s.count_value, s.total, s.rn ) select 1608 as analysis_id, cast(p.stratum1_id as string) as stratum_1, o.total as count_value, o.min_value, o.max_value, cast(o.avg_value as float), cast(o.stdev_value as float), min(case when p.accumulated >= .50 * o.total then count_value else o.max_value end) as median_value, min(case when p.accumulated >= .10 * o.total then count_value else o.max_value end) as p10_value, min(case when p.accumulated >= .25 * o.total then count_value else o.max_value end) as p25_value, min(case when p.accumulated >= .75 * o.total then count_value else o.max_value end) as p75_value, min(case when p.accumulated >= .90 * o.total then count_value else o.max_value end) as p90_value from priorStats p join overallStats o on p.stratum1_id = o.stratum1_id group by p.stratum1_id, o.total, o.min_value, o.max_value, o.avg_value, o.stdev_value ; -- 1609 Number of records by disease_class_concept_id --not applicable for OMOP CDMv5 -- 1610 Number of records by revenue_code_concept_id insert into ACHILLES_results (analysis_id, stratum_1, count_value) select 1610 as analysis_id, cast(revenue_code_concept_id as string) as stratum_1, count(pc1.procedure_cost_ID) as count_value from procedure_cost pc1 where revenue_code_concept_id is not null group by revenue_code_concept_id ; -- clean up cached table if exists -- DROP TABLE ACHILLES_procedure_cost_raw; exit;
use veritabani; go create procedure sp_kategoriye_gore_film_listeleme @kategori_id int as begin select film_adi,kategori_adi from tbl_filmler join tbl_kategori on kategori_id=film_kategori_id where kategori_id=@kategori_id end exec sp_kategoriye_gore_film_listeleme 1
<reponame>yswunstoppable/cngi<filename>security/src/main/resources/sql/shreshold/shreshold.sql #sql("list") select t.* from shreshold t where t.is_deleted = 0 #end #sql("get") select * from shreshold where id = #para(id) and is_deleted = 0 #end #sql("judge") select id from shreshold where concat("`",#para(field),"`") = #para(value) and is_deleted = 0 #if(id != 0) and id != #para(id) #end #end
<filename>Application/EdFi.Ods.Extensions.Homograph/Artifacts/MsSql/Structure/Ods/0050-EXTENSION-Homograph-ExtendedProperties.sql<gh_stars>1-10 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. -- Extended Properties [homograph].[Name] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The set of elements that comprise a person''s legal name.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Name' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Name', @level2type=N'COLUMN', @level2name=N'FirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Name', @level2type=N'COLUMN', @level2name=N'LastSurname' GO -- Extended Properties [homograph].[Parent] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This entity represents an individual for whom instruction, services, and/or care are provided in an early childhood, elementary, or secondary educational program under the jurisdiction of a school, education agency or other institution or program. A student is a person who has been enrolled in a school or other educational institution.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Parent' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Parent', @level2type=N'COLUMN', @level2name=N'ParentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Parent', @level2type=N'COLUMN', @level2name=N'ParentLastSurname' GO -- Extended Properties [homograph].[ParentAddress] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The set of elements that describes an address, including the street address, city, state, and ZIP code.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentAddress' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the city in which an address is located.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentAddress', @level2type=N'COLUMN', @level2name=N'City' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentAddress', @level2type=N'COLUMN', @level2name=N'ParentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentAddress', @level2type=N'COLUMN', @level2name=N'ParentLastSurname' GO -- Extended Properties [homograph].[ParentStudentSchoolAssociation] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The students association with the parent.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'ParentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'ParentLastSurname' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the school.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'SchoolName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'ParentStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentLastSurname' GO -- Extended Properties [homograph].[School] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This entity represents an educational organization that includes staff and students who participate in classes and educational activity groups.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'School' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the school.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'School', @level2type=N'COLUMN', @level2name=N'SchoolName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A school year.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'School', @level2type=N'COLUMN', @level2name=N'SchoolYear' GO -- Extended Properties [homograph].[SchoolAddress] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The set of elements that describes an address, including the street address, city, state, and ZIP code.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'SchoolAddress' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the school.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'SchoolAddress', @level2type=N'COLUMN', @level2name=N'SchoolName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the city in which an address is located.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'SchoolAddress', @level2type=N'COLUMN', @level2name=N'City' GO -- Extended Properties [homograph].[SchoolYearType] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Identifier for a school year.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'SchoolYearType' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A school year.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'SchoolYearType', @level2type=N'COLUMN', @level2name=N'SchoolYear' GO -- Extended Properties [homograph].[Staff] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'same name as a core domain entity', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Staff' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Staff', @level2type=N'COLUMN', @level2name=N'StaffFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Staff', @level2type=N'COLUMN', @level2name=N'StaffLastSurname' GO -- Extended Properties [homograph].[StaffAddress] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The set of elements that describes an address, including the street address, city, state, and ZIP code.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffAddress' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the city in which an address is located.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffAddress', @level2type=N'COLUMN', @level2name=N'City' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffAddress', @level2type=N'COLUMN', @level2name=N'StaffFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffAddress', @level2type=N'COLUMN', @level2name=N'StaffLastSurname' GO -- Extended Properties [homograph].[StaffStudentSchoolAssociation] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The students under the instruction of the staff member', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the school.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'SchoolName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StaffFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StaffLastSurname' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StaffStudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentLastSurname' GO -- Extended Properties [homograph].[Student] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This entity represents an individual for whom instruction, services, and/or care are provided in an early childhood, elementary, or secondary educational program under the jurisdiction of a school, education agency or other institution or program. A student is a person who has been enrolled in a school or other educational institution.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Student' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Student', @level2type=N'COLUMN', @level2name=N'StudentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Student', @level2type=N'COLUMN', @level2name=N'StudentLastSurname' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A school year.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'Student', @level2type=N'COLUMN', @level2name=N'SchoolYear' GO -- Extended Properties [homograph].[StudentAddress] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The set of elements that describes an address, including the street address, city, state, and ZIP code.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentAddress' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the city in which an address is located.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentAddress', @level2type=N'COLUMN', @level2name=N'City' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentAddress', @level2type=N'COLUMN', @level2name=N'StudentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentAddress', @level2type=N'COLUMN', @level2name=N'StudentLastSurname' GO -- Extended Properties [homograph].[StudentSchoolAssociation] -- EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'This association represents the School in which a student is enrolled. The semantics of enrollment may differ slightly by state. Non-enrollment relationships between a student and an education organization may be described using the StudentEducationOrganizationAssociation.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentSchoolAssociation' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of the school.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'SchoolName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'A name given to an individual at birth, baptism, or during another naming ceremony, or through legal change.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentFirstName' GO EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name borne in common by members of a family.', @level0type=N'SCHEMA', @level0name=N'homograph', @level1type=N'TABLE', @level1name=N'StudentSchoolAssociation', @level2type=N'COLUMN', @level2name=N'StudentLastSurname' GO
<filename>admin/sql/InsertDefaultRows.sql \set ON_ERROR_STOP 1 BEGIN; INSERT INTO artist (name, sort_name, gid) VALUES ('Various Artists', 'Various Artists', '89ad4ac3-39f7-470e-963a-56509c546377'), ('Deleted Artist', 'Deleted Artist', 'c06aa285-520e-40c0-b776-83d2c9e8a6d1'); INSERT INTO label (name, gid) VALUES ('Deleted Label', 'f43e252d-9ebf-4e8e-bba8-36d080756cc1'); INSERT INTO editor (id, name, password, ha1) VALUES (1, 'Anonymous', '', ''); INSERT INTO editor (id, name, password, ha1) VALUES (2, 'FreeDB', '', ''); INSERT INTO editor (id, name, password, ha1) VALUES (4, 'ModBot', '', ''); INSERT INTO replication_control VALUES ( 1, -- fixed primary key 1, -- schema #1 NULL,-- until we pull in a particular dump, we don't know what replication sequence we're at NULL ); INSERT INTO release_group_primary_type VALUES (1, 'Album', null, 1, null); INSERT INTO release_group_primary_type VALUES (2, 'Single', null, 2, null); INSERT INTO release_status VALUES (1, 'Official', null, 1, null); COMMIT; -- vi: set ts=4 sw=4 et :
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 15, 2021 at 07:43 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.27 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: `perumahan-app` -- -- -------------------------------------------------------- -- -- Table structure for table `bs_beban` -- CREATE TABLE `bs_beban` ( `id_beban` varchar(11) NOT NULL, `nama` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `bs_beban` -- INSERT INTO `bs_beban` (`id_beban`, `nama`) VALUES ('BBN-001', 'Beban ATK'), ('BBN-002', 'Beban Konsumsi'); -- -------------------------------------------------------- -- -- Table structure for table `bs_detail_sampah` -- CREATE TABLE `bs_detail_sampah` ( `id_detail_sampah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `kategori_sampah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_sampah` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `harga_jual` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `satuan` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_detail_sampah` -- INSERT INTO `bs_detail_sampah` (`id_detail_sampah`, `kategori_sampah`, `nama_sampah`, `harga_jual`, `satuan`) VALUES ('DS-001', 'Plastik', 'Botol Plastik Kotor', '1000', 'Gram'), ('DS-002', 'Plastik', 'Botol Plastik Bersih', '2000', 'Gram'), ('DS-003', 'Plastik', 'Gelas Mineral Kotor', '1000', 'Gram'), ('DS-004', 'Plastik', 'Gelas Mineral Bersih', '3000', 'Gram'), ('DS-005', 'Plastik', 'Botol Shampoo', '500', 'Gram'), ('DS-006', 'Plastik', 'Botol Sabun Mandi', '500', 'Gram'), ('DS-007', 'Alumunium', 'Tutup Panci', '6000', 'Gram'), ('DS-008', 'Alumunium', 'Botol Minum Soda', '600', 'Gram'), ('DS-009', 'Alumunium', 'Seng', '6000', 'Gram'), ('DS-010', 'Kertas', 'HVS', '1000', 'Gram'), ('DS-011', 'Kertas', 'Kertas Buram', '800', 'Gram'), ('DS-012', 'Kertas', 'Koran', '1000', 'Gram'); -- -------------------------------------------------------- -- -- Table structure for table `bs_gaji` -- CREATE TABLE `bs_gaji` ( `id_gaji` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `id_pegawai` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `periode` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `jml_kehadiran` int(11) NOT NULL, `gaji_pokok` bigint(20) NOT NULL, `total_denda` bigint(20) DEFAULT NULL, `total_gaji` bigint(20) NOT NULL, `tanggal_hitung` date NOT NULL, `tanggal_ambil` date DEFAULT NULL, `status` enum('Sudah diambil','Belum diambil') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_gaji` -- INSERT INTO `bs_gaji` (`id_gaji`, `id_pegawai`, `periode`, `jml_kehadiran`, `gaji_pokok`, `total_denda`, `total_gaji`, `tanggal_hitung`, `tanggal_ambil`, `status`) VALUES ('G-002', 'PG-002', 'Agustus - 2021', 3, 150000, NULL, 150000, '2021-07-21', NULL, 'Sudah diambil'), ('G-003', 'PG-001', 'Agustus - 2021', 5, 250000, 230000, 20000, '2021-07-29', NULL, 'Belum diambil'); -- -------------------------------------------------------- -- -- Table structure for table `bs_kehadiran` -- CREATE TABLE `bs_kehadiran` ( `id_kehadiran` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `id_pegawai` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_kehadiran` date NOT NULL, `waktu_masuk` time NOT NULL, `waktu_telat` time DEFAULT NULL, `denda` bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_kehadiran` -- INSERT INTO `bs_kehadiran` (`id_kehadiran`, `id_pegawai`, `tgl_kehadiran`, `waktu_masuk`, `waktu_telat`, `denda`) VALUES ('H1-001', 'PG-001', '2021-08-01', '21:31:43', '12:31:43', 50000), ('H1-002', 'PG-002', '2021-08-01', '23:03:09', '15:03:09', 50000); -- -------------------------------------------------------- -- -- Table structure for table `bs_nasabah` -- CREATE TABLE `bs_nasabah` ( `id_nasabah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL, `bs_saldo` bigint(20) NOT NULL DEFAULT 0, `bs_tanggal_bergabung` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_nasabah` -- INSERT INTO `bs_nasabah` (`id_nasabah`, `nama`, `alamat`, `no_telp`, `bs_saldo`, `bs_tanggal_bergabung`) VALUES ('N-001', 'Permana', 'Babakan', '0887658864', 50000, '2021-07-01'), ('N-002', 'Doni', 'Cikarees', '0875235244', 0, '2021-07-01'), ('N-003', '<NAME>', 'Jl.Cigado Raya No.33', '08213782239', 0, '2021-07-21'); -- -------------------------------------------------------- -- -- Table structure for table `bs_pegawai` -- CREATE TABLE `bs_pegawai` ( `id_pegawai` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `bagian_pekerjaan` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_pegawai` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL, `jenis_kelamin` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_pegawai` -- INSERT INTO `bs_pegawai` (`id_pegawai`, `bagian_pekerjaan`, `nama_pegawai`, `no_ktp`, `no_telp`, `jenis_kelamin`, `alamat`) VALUES ('PG-001', 'Pengepul', 'Ucok', '', '08123456789', 'Laki-laki', 'Mars'), ('PG-002', 'Pengepul', 'Sinestrea', '', '08987654321', 'Perempuan', 'Saturnus'); -- -------------------------------------------------------- -- -- Table structure for table `bs_penarikan` -- CREATE TABLE `bs_penarikan` ( `id_penarikan` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_penarikan` date NOT NULL, `jenis_penarikan` enum('Rupiah','Voucher') COLLATE utf8mb4_unicode_ci NOT NULL, `nominal_penarikan` bigint(11) NOT NULL, `id_voucher` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_nasabah` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_warga` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `kode_anggota` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_penarikan` -- INSERT INTO `bs_penarikan` (`id_penarikan`, `tgl_penarikan`, `jenis_penarikan`, `nominal_penarikan`, `id_voucher`, `id_nasabah`, `id_warga`, `kode_anggota`) VALUES ('TR2-001', '2021-08-02', 'Voucher', 50000, 'VOC-001', NULL, NULL, 'ANG-0001'), ('TR2-002', '2021-08-02', 'Voucher', 10000, 'VOC-002', NULL, NULL, 'ANG-0002'); -- -------------------------------------------------------- -- -- Table structure for table `bs_pengeluaran` -- CREATE TABLE `bs_pengeluaran` ( `id_pengeluaran` varchar(11) NOT NULL, `id_beban` varchar(11) NOT NULL, `nama` varchar(50) NOT NULL, `harga_satuan` bigint(20) NOT NULL, `qty` bigint(20) NOT NULL, `total` bigint(20) NOT NULL, `tanggal` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `bs_pengeluaran` -- INSERT INTO `bs_pengeluaran` (`id_pengeluaran`, `id_beban`, `nama`, `harga_satuan`, `qty`, `total`, `tanggal`) VALUES ('PNGL-001', 'BBN-001', 'Pembelian ATK Agustus 2021', 5000, 10, 50000, '2021-08-03'), ('PNGL-002', 'BBN-001', 'Pembelian Papan Tulis', 35000, 1, 35000, '2021-08-04'), ('PNGL-003', 'BBN-002', 'Konsumsi JRC', 13000, 10, 130000, '2021-08-04'); -- -------------------------------------------------------- -- -- Table structure for table `bs_penjualan` -- CREATE TABLE `bs_penjualan` ( `id_penjualan` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `id_penyetoran` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_perusahaan` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_penjualan` -- INSERT INTO `bs_penjualan` (`id_penjualan`, `id_penyetoran`, `id_perusahaan`, `tanggal`) VALUES ('PJ1-001', 'TR1-002', 'PSH-001', '2021-08-02'), ('PJ1-002', 'TR1-001', 'PSH-001', '2021-08-02'), ('PJ1-003', 'TR1-003', 'PSH-001', '2021-08-02'), ('PJ1-004', 'TR1-004', 'PSH-001', '2021-08-02'); -- -------------------------------------------------------- -- -- Table structure for table `bs_penyetoran` -- CREATE TABLE `bs_penyetoran` ( `id_penyetoran` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal` date NOT NULL, `id_nasabah` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_warga` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_sampah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `id_detail_sampah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `berat_sampah` int(12) NOT NULL, `saldo` bigint(20) NOT NULL, `saldo_aktif` bigint(20) NOT NULL DEFAULT 0, `terjual` tinyint(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_penyetoran` -- INSERT INTO `bs_penyetoran` (`id_penyetoran`, `tanggal`, `id_nasabah`, `id_warga`, `id_sampah`, `id_detail_sampah`, `berat_sampah`, `saldo`, `saldo_aktif`, `terjual`) VALUES ('TR1-001', '2021-08-02', NULL, 'WRG-001', 'SM-003', 'DS-005', 500, 250000, 250000, 1), ('TR1-002', '2021-08-02', 'N-001', NULL, 'SM-002', 'DS-010', 50, 50000, 50000, 1), ('TR1-003', '2021-08-02', NULL, 'WRG-002', 'SM-003', 'DS-001', 20, 20000, 20000, 1), ('TR1-004', '2021-08-02', NULL, 'WRG-003', 'SM-002', 'DS-010', 10, 10000, 10000, 1); -- -------------------------------------------------------- -- -- Table structure for table `bs_perusahaan` -- CREATE TABLE `bs_perusahaan` ( `id_perusahaan` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_perusahaan` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_pemilik` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp_pemilik` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `telepon` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_perusahaan` -- INSERT INTO `bs_perusahaan` (`id_perusahaan`, `nama_perusahaan`, `nama_pemilik`, `no_ktp_pemilik`, `alamat`, `telepon`) VALUES ('PSH-001', 'PT. Bank Sampah Bersinar', 'Asep Dodi', '3207420803870004', 'Baleendah', '082117625394'); -- -------------------------------------------------------- -- -- Table structure for table `bs_sampah` -- CREATE TABLE `bs_sampah` ( `id_sampah` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `kategori_sampah` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `satuan` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_sampah` -- INSERT INTO `bs_sampah` (`id_sampah`, `kategori_sampah`, `satuan`) VALUES ('SM-001', 'Alumunium', 'Gram'), ('SM-002', 'Kertas', 'Gram'), ('SM-003', 'Plastik', 'Gram'); -- -------------------------------------------------------- -- -- Table structure for table `bs_tabungan` -- CREATE TABLE `bs_tabungan` ( `id_tabungan` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `id_nasabah` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_warga` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal` date NOT NULL, `debet` bigint(20) DEFAULT NULL, `kredit` bigint(20) DEFAULT NULL, `saldo` bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_tabungan` -- INSERT INTO `bs_tabungan` (`id_tabungan`, `id_nasabah`, `id_warga`, `nama`, `tanggal`, `debet`, `kredit`, `saldo`) VALUES ('TAB-001', NULL, 'WRG-001', 'Sinestrea', '2021-08-02', NULL, 250000, 250000); -- -------------------------------------------------------- -- -- Table structure for table `bs_voucher` -- CREATE TABLE `bs_voucher` ( `id_voucher` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `kode_anggota` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `point` bigint(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `bs_voucher` -- INSERT INTO `bs_voucher` (`id_voucher`, `kode_anggota`, `point`) VALUES ('VOC-001', 'ANG-0001', 50000), ('VOC-002', 'ANG-0002', 10000); -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE `groups` ( `id` mediumint(8) UNSIGNED NOT NULL, `name` varchar(100) NOT NULL, `description` varchar(100) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `groups` -- INSERT INTO `groups` (`id`, `name`, `description`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'admin', 'Admin', '2020-11-21 07:49:17', NULL, NULL), (2, 'employee', 'Karyawan', '2021-03-05 17:47:01', NULL, NULL), (3, 'finance', 'Keuangan', '2021-03-05 17:47:02', NULL, NULL), (4, 'inventory', 'Inventory', '2021-03-05 17:47:04', NULL, NULL), (5, 'hr', 'Human Resource', '2021-03-05 17:47:06', NULL, NULL), (6, 'admin-branch', 'Admin Cabang', NULL, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `iuran_rutin` -- CREATE TABLE `iuran_rutin` ( `id_iuran` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_iuran` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `jenis_iuran` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `jumlah` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `iuran_rutin` -- INSERT INTO `iuran_rutin` (`id_iuran`, `nama_iuran`, `jenis_iuran`, `jumlah`) VALUES ('IB-001', 'Kas', 'Rutin', 15000); -- -------------------------------------------------------- -- -- Table structure for table `kop_anggota` -- CREATE TABLE `kop_anggota` ( `id` int(10) NOT NULL, `kode_anggota` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_anggota` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `alamat` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_kk` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `akumulasi_point` bigint(20) DEFAULT 0, `status` enum('Aktif','Tidak Aktif') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Aktif' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_anggota` -- INSERT INTO `kop_anggota` (`id`, `kode_anggota`, `nama_anggota`, `alamat`, `no_telp`, `no_kk`, `no_ktp`, `akumulasi_point`, `status`) VALUES (1, 'ANG-0001', 'Sinestrea', 'Athanor', '0123', '320990', '320990123', 50200, 'Aktif'), (2, 'ANG-0002', 'Udin', 'Jalan B No 2', '21312', '123456', '456456', 10000, 'Tidak Aktif'), (3, 'ANG-0003', 'Kazuha', 'Inazuma', '08123', '123456', '123123', 0, 'Aktif'), (5, 'ANG-0004', '<NAME>', 'Blok C No 3', '094877', '21313', '32131', 0, 'Aktif'), (12, 'ANG-0005', 'Budi', 'Blok F No 9', '081927231237', '3214126412647264', '2641466418264812', 0, 'Aktif'), (13, 'ANG-0006', 'Arief', 'Jl. Cigado Raya II No. 04, Baleendah', '082313213131', '1234561234561234', '1234561234561234', 0, 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `kop_anggota_point` -- CREATE TABLE `kop_anggota_point` ( `id` int(11) NOT NULL, `anggota_id` int(11) NOT NULL, `point` int(11) NOT NULL, `keterangan` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` enum('penambahan','pengurangan') COLLATE utf8mb4_unicode_ci NOT NULL, `waktu` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_anggota_point` -- INSERT INTO `kop_anggota_point` (`id`, `anggota_id`, `point`, `keterangan`, `type`, `waktu`) VALUES (1, 1, 50, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-07-20 18:33:07'), (2, 1, 50, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-07-20 18:33:54'), (3, 1, 25, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-07-20 20:07:26'), (4, 1, 50, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-07-21 16:52:40'), (5, 1, 75, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-07-29 12:38:32'), (6, 1, 50000, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-08-02 22:22:55'), (7, 2, 10000, 'Penarikan Voucher Bank Sampah', 'penambahan', '2021-08-02 22:23:28'); -- -------------------------------------------------------- -- -- Table structure for table `kop_beban` -- CREATE TABLE `kop_beban` ( `id` int(10) NOT NULL, `coa_id` int(10) DEFAULT NULL, `kode_beban` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_beban` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_beban` -- INSERT INTO `kop_beban` (`id`, `coa_id`, `kode_beban`, `nama_beban`) VALUES (1, 5, 'BBN-0001', 'beban gaji asli'), (3, 20, 'BBN-0002', 'Beban alat'); -- -------------------------------------------------------- -- -- Table structure for table `kop_kategori` -- CREATE TABLE `kop_kategori` ( `id` int(10) NOT NULL, `kode_kategori` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_kategori` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_kategori` -- INSERT INTO `kop_kategori` (`id`, `kode_kategori`, `nama_kategori`) VALUES (1, 'KTG-0001', 'Pakaian'), (2, 'KTG-0002', 'Makanan'); -- -------------------------------------------------------- -- -- Table structure for table `kop_pembelian` -- CREATE TABLE `kop_pembelian` ( `id` int(10) NOT NULL, `vendor_id` int(50) DEFAULT NULL, `kode_pembelian` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_beli` datetime DEFAULT NULL, `tanggal_jatuh_tempo` date DEFAULT NULL, `total_beli` int(50) DEFAULT 0, `total_bayar` int(50) DEFAULT 0, `sisa_bayar` int(50) DEFAULT 0, `is_created` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `tipe` enum('Tunai','Kredit') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` enum('Lunas','Belum Lunas') COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_pembelian` -- INSERT INTO `kop_pembelian` (`id`, `vendor_id`, `kode_pembelian`, `tanggal_beli`, `tanggal_jatuh_tempo`, `total_beli`, `total_bayar`, `sisa_bayar`, `is_created`, `tipe`, `status`) VALUES (1, 1, 'PMB-0001', '2021-07-29 08:11:19', NULL, 80000, 80000, 0, '1', 'Tunai', 'Lunas'), (2, 1, 'PMB-0002', '2021-07-29 08:32:41', '2021-08-01', 70000, 70000, 0, '1', 'Kredit', 'Lunas'), (3, 1, 'PMB-0003', '2021-07-29 10:10:34', '0000-00-00', 150000, 150000, 0, '1', 'Tunai', 'Lunas'), (4, 3, 'PMB-0004', '2021-07-31 22:27:03', '0000-00-00', 200000, 200000, 0, '1', 'Tunai', 'Lunas'), (5, 1, 'PMB-0005', '2021-08-04 13:58:20', '0000-00-00', 45000, 45000, 0, '1', 'Tunai', 'Lunas'); -- -------------------------------------------------------- -- -- Table structure for table `kop_pembelian_detail` -- CREATE TABLE `kop_pembelian_detail` ( `id` int(10) NOT NULL, `pembelian_id` int(10) DEFAULT NULL, `produk_id` int(10) DEFAULT NULL, `qty` int(50) DEFAULT NULL, `harga` int(50) DEFAULT NULL, `subtotal` int(50) DEFAULT NULL, `no_qty` int(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_pembelian_detail` -- INSERT INTO `kop_pembelian_detail` (`id`, `pembelian_id`, `produk_id`, `qty`, `harga`, `subtotal`, `no_qty`) VALUES (2, 1, 1, 4, 20000, 80000, NULL), (3, 2, 1, 2, 35000, 70000, NULL), (4, 3, 3, 10, 15000, 150000, NULL), (5, 4, 1, 4, 50000, 200000, NULL), (6, 5, 1, 1, 45000, 45000, NULL); -- -------------------------------------------------------- -- -- Table structure for table `kop_pembelian_pembayaran` -- CREATE TABLE `kop_pembelian_pembayaran` ( `id` int(10) NOT NULL, `pembelian_id` int(10) DEFAULT NULL, `jumlah_bayar` int(50) DEFAULT NULL, `tanggal_bayar` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_pembelian_pembayaran` -- INSERT INTO `kop_pembelian_pembayaran` (`id`, `pembelian_id`, `jumlah_bayar`, `tanggal_bayar`) VALUES (2, 1, 80000, '2021-07-29 08:11:19'), (3, 2, 50000, '2021-07-29 08:32:41'), (5, 2, 10000, '2021-07-29 09:38:50'), (7, 2, 10000, '2021-07-29 09:39:38'), (8, 3, 150000, '2021-07-29 10:10:34'), (9, 4, 200000, '2021-07-31 22:27:03'), (10, 5, 45000, '2021-08-04 13:58:20'); -- -------------------------------------------------------- -- -- Table structure for table `kop_penarikan` -- CREATE TABLE `kop_penarikan` ( `id` int(10) NOT NULL, `anggota_id` int(10) DEFAULT NULL, `kode_penarikan` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nominal_penarikan` int(50) DEFAULT NULL, `waktu_penarikan` datetime DEFAULT NULL, `keterangan_penarikan` text COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penarikan` -- INSERT INTO `kop_penarikan` (`id`, `anggota_id`, `kode_penarikan`, `nominal_penarikan`, `waktu_penarikan`, `keterangan_penarikan`) VALUES (1, 1, 'PNR-0001', 5000, '2021-07-29 07:12:28', 'mau jajan'), (0, 12, 'PNR-0002', 50000, '2021-08-14 20:45:07', NULL), (0, 12, 'PNR-0002', 10000, '2021-08-14 20:45:07', NULL); -- -------------------------------------------------------- -- -- Table structure for table `kop_pengeluaran` -- CREATE TABLE `kop_pengeluaran` ( `id` int(10) NOT NULL, `kode_pengeluaran` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `total_pengeluaran` int(50) DEFAULT NULL, `tanggal_pengeluaran` datetime DEFAULT NULL, `is_created` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `keterangan` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_pengeluaran` -- INSERT INTO `kop_pengeluaran` (`id`, `kode_pengeluaran`, `total_pengeluaran`, `tanggal_pengeluaran`, `is_created`, `keterangan`) VALUES (1, 'PNG-0001', 100000, '2021-07-29 07:38:47', '1', NULL), (2, 'PNG-0002', 300000, '2021-07-29 07:42:46', '1', NULL), (3, 'PNG-0003', NULL, NULL, '0', NULL); -- -------------------------------------------------------- -- -- Table structure for table `kop_pengeluaran_detail` -- CREATE TABLE `kop_pengeluaran_detail` ( `id` int(10) NOT NULL, `pengeluaran_id` int(10) DEFAULT NULL, `beban_id` int(10) DEFAULT NULL, `harga` int(50) DEFAULT NULL, `keterangan` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `subtotal` int(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_pengeluaran_detail` -- INSERT INTO `kop_pengeluaran_detail` (`id`, `pengeluaran_id`, `beban_id`, `harga`, `keterangan`, `subtotal`) VALUES (2, 1, 1, 50000, '2', 100000), (3, 2, 3, 100000, '1', 100000), (4, 2, 1, 200000, '1', 200000); -- -------------------------------------------------------- -- -- Table structure for table `kop_penitipan` -- CREATE TABLE `kop_penitipan` ( `id` int(10) NOT NULL, `anggota_id` int(10) DEFAULT NULL, `kode_penitipan` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_titip` datetime DEFAULT NULL, `tanggal_kembali` datetime DEFAULT NULL, `total_titip` int(50) DEFAULT NULL, `total_terjual` int(50) DEFAULT 0, `sisa_terjual` int(50) DEFAULT NULL, `is_created` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `is_back` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penitipan` -- INSERT INTO `kop_penitipan` (`id`, `anggota_id`, `kode_penitipan`, `tanggal_titip`, `tanggal_kembali`, `total_titip`, `total_terjual`, `sisa_terjual`, `is_created`, `is_back`) VALUES (1, 1, 'PNT-0001', '2021-07-29 10:17:54', '2021-07-29 11:11:48', 65000, 0, 65000, '1', '1'), (2, 12, 'PNT-0002', '2021-08-14 17:19:23', '2021-08-14 17:42:19', 24000, 24000, 0, '1', '1'), (3, 2, 'PNT-0003', '2021-08-14 17:44:24', NULL, 40000, 0, 40000, '1', '0'); -- -------------------------------------------------------- -- -- Table structure for table `kop_penitipan_detail` -- CREATE TABLE `kop_penitipan_detail` ( `id` int(10) NOT NULL, `penitipan_id` int(10) DEFAULT NULL, `produk_id` int(10) DEFAULT NULL, `qty` int(10) DEFAULT NULL, `harga` int(10) DEFAULT NULL, `subtotal` int(10) DEFAULT NULL, `qty_terjual` int(50) DEFAULT 0, `subtotal_terjual` int(50) DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penitipan_detail` -- INSERT INTO `kop_penitipan_detail` (`id`, `penitipan_id`, `produk_id`, `qty`, `harga`, `subtotal`, `qty_terjual`, `subtotal_terjual`) VALUES (1, 1, 4, 5, 13000, 65000, 0, 0), (3, 2, 4, 2, 12000, 24000, 2, 24000), (5, 3, 3, 2, 20000, 40000, 2, 40000); -- -------------------------------------------------------- -- -- Table structure for table `kop_penjualan` -- CREATE TABLE `kop_penjualan` ( `id` int(11) NOT NULL, `anggota_id` int(11) DEFAULT NULL, `nama_pelanggan` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `kode_penjualan` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tanggal_penjualan` datetime DEFAULT NULL, `tanggal_jatuh_tempo` date DEFAULT NULL, `total_jual` int(50) DEFAULT NULL, `total_bayar` int(50) DEFAULT NULL, `sisa_bayar` int(50) DEFAULT NULL, `total_point` int(50) DEFAULT NULL, `total_after_discount` int(50) DEFAULT NULL, `total_hpp` int(50) DEFAULT NULL, `tipe` enum('Tunai','Kredit') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` enum('Lunas','Belum Lunas') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_created` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penjualan` -- INSERT INTO `kop_penjualan` (`id`, `anggota_id`, `nama_pelanggan`, `kode_penjualan`, `tanggal_penjualan`, `tanggal_jatuh_tempo`, `total_jual`, `total_bayar`, `sisa_bayar`, `total_point`, `total_after_discount`, `total_hpp`, `tipe`, `status`, `is_created`) VALUES (1, 2, '', 'PNJ-0001', '2021-07-29 10:36:41', '0000-00-00', 55000, 55000, 0, 0, 55000, NULL, 'Tunai', 'Lunas', '1'), (3, 5, '', 'PNJ-0002', '2021-07-29 10:59:53', '2021-07-30', 16500, 16500, 0, 0, 16500, NULL, 'Kredit', 'Lunas', '1'), (4, NULL, 'Asep', 'PNJ-0003', '2021-08-08 06:07:05', '0000-00-00', 49500, 49500, 0, 0, 49500, NULL, 'Tunai', 'Lunas', '1'), (5, NULL, 'Dedi', 'PNJ-0004', '2021-08-14 17:20:49', '0000-00-00', 27970, 27970, 0, 0, 27970, NULL, 'Tunai', 'Lunas', '1'), (6, NULL, 'Dodi', 'PNJ-0005', '2021-08-14 17:45:09', '0000-00-00', 17875, 17875, 0, 0, 17875, NULL, 'Tunai', 'Lunas', '1'), (7, NULL, 'Dodi', 'PNJ-0006', '2021-08-14 17:49:08', '0000-00-00', 17875, 17875, 0, 0, 17875, NULL, 'Tunai', 'Lunas', '1'), (8, NULL, 'Deni', 'PNJ-0007', '2021-08-14 18:25:02', '0000-00-00', 17875, 17875, 0, 0, 17875, NULL, 'Tunai', 'Lunas', '1'); -- -------------------------------------------------------- -- -- Table structure for table `kop_penjualan_detail` -- CREATE TABLE `kop_penjualan_detail` ( `id` int(11) NOT NULL, `penjualan_id` int(11) DEFAULT NULL, `produk_id` int(11) DEFAULT NULL, `qty` int(11) DEFAULT NULL, `harga` int(50) DEFAULT NULL, `subtotal` int(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penjualan_detail` -- INSERT INTO `kop_penjualan_detail` (`id`, `penjualan_id`, `produk_id`, `qty`, `harga`, `subtotal`) VALUES (1, 1, 1, 2, 27500, 55000), (5, 3, 3, 1, 16500, 16500), (8, 4, 3, 3, 16500, 49500), (9, 5, 4, 2, 13985, 27970), (10, 6, 3, 1, 17875, 17875), (11, 7, 3, 1, 17875, 17875), (12, 8, 3, 1, 17875, 17875); -- -------------------------------------------------------- -- -- Table structure for table `kop_penjualan_pembayaran` -- CREATE TABLE `kop_penjualan_pembayaran` ( `id` int(10) NOT NULL, `penjualan_id` int(10) DEFAULT NULL, `jumlah_bayar` int(50) DEFAULT NULL, `tanggal_bayar` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_penjualan_pembayaran` -- INSERT INTO `kop_penjualan_pembayaran` (`id`, `penjualan_id`, `jumlah_bayar`, `tanggal_bayar`) VALUES (2, 1, 55000, '2021-07-29 10:36:41'), (3, 3, 10000, '2021-07-29 10:59:53'), (4, 4, 49500, '2021-08-08 06:07:05'), (6, 3, 6500, '2021-08-14 16:51:29'), (7, 5, 27970, '2021-08-14 17:20:49'), (8, 6, 17875, '2021-08-14 17:45:09'), (9, 7, 17875, '2021-08-14 17:49:08'), (11, 8, 17875, '2021-08-14 18:25:02'); -- -------------------------------------------------------- -- -- Table structure for table `kop_produk` -- CREATE TABLE `kop_produk` ( `id` int(10) NOT NULL, `kategori_id` int(10) DEFAULT NULL, `kode_pr` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_pr` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `harga_jual` int(50) DEFAULT 0, `harga_titip` int(50) DEFAULT NULL, `stok` int(50) DEFAULT 0, `satuan` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_titip` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `is_lock` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `is_active` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_produk` -- INSERT INTO `kop_produk` (`id`, `kategori_id`, `kode_pr`, `nama_pr`, `harga_jual`, `harga_titip`, `stok`, `satuan`, `is_titip`, `is_lock`, `is_active`) VALUES (1, 1, 'PR-0001', 'Baju Batik', 38333, NULL, 9, 'Pcs', '0', '0', '1'), (3, 2, 'PR-0002', 'Bolu', 16250, NULL, 5, 'Pcs', '1', '1', '1'), (4, 2, 'PR-0003', 'JRC', 12714, NULL, 0, 'Box', '1', '0', '1'); -- -------------------------------------------------------- -- -- Table structure for table `kop_produk_stok` -- CREATE TABLE `kop_produk_stok` ( `id` int(10) NOT NULL, `produk_id` int(10) DEFAULT NULL, `tanggal` datetime DEFAULT NULL, `tipe` enum('pembelian','penjualan','buyback','peleburan_input','peleburan_output','retur') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `jumlah` int(50) DEFAULT NULL, `harga` int(100) DEFAULT NULL, `total` int(100) DEFAULT NULL, `jumlah_persediaan` int(50) DEFAULT NULL, `harga_persediaan` int(100) DEFAULT NULL, `total_persediaan` int(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_produk_stok` -- INSERT INTO `kop_produk_stok` (`id`, `produk_id`, `tanggal`, `tipe`, `jumlah`, `harga`, `total`, `jumlah_persediaan`, `harga_persediaan`, `total_persediaan`) VALUES (1, 1, '2021-07-29 08:11:19', 'pembelian', 4, 20000, 80000, 4, 20000, 80000), (2, 1, '2021-07-29 08:32:41', 'pembelian', 2, 35000, 70000, 6, 25000, 150000), (3, 3, '2021-07-29 10:10:34', 'pembelian', 10, 15000, 150000, 10, 15000, 150000), (4, 4, '2021-07-29 10:17:54', 'pembelian', 5, 13000, 65000, 5, 13000, 65000), (5, 1, '2021-07-29 10:36:41', 'penjualan', 2, 27500, 55000, 4, 25000, 100000), (6, 3, '2021-07-29 10:59:53', 'penjualan', 1, 16500, 16500, 9, 15000, 135000), (7, 1, '2021-07-31 22:27:03', 'pembelian', 4, 50000, 200000, 8, 37500, 300000), (8, 1, '2021-08-04 13:58:20', 'pembelian', 1, 45000, 45000, 9, 38333, 345000), (9, 3, '2021-08-08 06:07:05', 'penjualan', 3, 16500, 49500, 6, 15000, 90000), (10, 4, '2021-08-14 17:19:23', 'pembelian', 2, 12000, 24000, 7, 12714, 89000), (11, 4, '2021-08-14 17:20:49', 'penjualan', 2, 13985, 27970, 5, 12714, 63570), (12, 3, '2021-08-14 17:44:24', 'pembelian', 2, 20000, 40000, 8, 16250, 130000), (13, 3, '2021-08-14 17:45:09', 'penjualan', 1, 17875, 17875, 7, 16250, 113750), (14, 3, '2021-08-14 17:49:08', 'penjualan', 1, 17875, 17875, 6, 16250, 97500), (15, 3, '2021-08-14 18:25:02', 'penjualan', 1, 17875, 17875, 5, 16250, 81250); -- -------------------------------------------------------- -- -- Table structure for table `kop_simpanan` -- CREATE TABLE `kop_simpanan` ( `id` int(10) NOT NULL, `anggota_id` int(10) DEFAULT NULL, `kode_simpanan` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nominal_simpanan` int(50) DEFAULT NULL, `jenis` enum('pokok','wajib','sukarela') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `waktu_simpanan` datetime DEFAULT NULL, `keterangan_simpanan` text COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_simpanan` -- INSERT INTO `kop_simpanan` (`id`, `anggota_id`, `kode_simpanan`, `nominal_simpanan`, `jenis`, `waktu_simpanan`, `keterangan_simpanan`) VALUES (0, 12, 'PNR-0002', 100000, 'pokok', '2021-08-08 06:18:22', NULL), (0, 12, 'PNR-0002', 50000, 'wajib', '2021-08-08 06:18:22', NULL), (0, 12, 'PNR-0002', 10000, 'sukarela', '2021-08-08 06:18:22', NULL), (0, 1, 'PNR-0002', 100000, 'pokok', '2021-08-08 06:19:04', NULL), (0, 1, 'PNR-0002', 50000, 'wajib', '2021-08-08 06:19:04', NULL), (0, 1, 'PNR-0002', 15000, 'sukarela', '2021-08-08 06:19:04', NULL), (0, 12, 'PNR-0002', 10000, 'sukarela', '2021-08-14 20:46:30', NULL), (0, 12, 'PNR-0002', 50000, 'sukarela', '2021-08-14 20:48:57', NULL); -- -------------------------------------------------------- -- -- Table structure for table `kop_vendor` -- CREATE TABLE `kop_vendor` ( `id` int(10) NOT NULL, `kode_vendor` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_vendor` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `alamat` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_active_vdr` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `kop_vendor` -- INSERT INTO `kop_vendor` (`id`, `kode_vendor`, `nama_vendor`, `alamat`, `no_telp`, `is_active_vdr`) VALUES (1, 'VDR-0001', 'Hj. Ametd', 'sdasdd', '094327539325', '1'), (3, 'VDR-0002', 'Uno', 'Mesir', '12345678901', '1'); -- -------------------------------------------------------- -- -- Table structure for table `login_attempts` -- CREATE TABLE `login_attempts` ( `id` int(11) UNSIGNED NOT NULL, `ip_address` varchar(45) NOT NULL, `login` varchar(100) NOT NULL, `time` int(11) UNSIGNED DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `master_coa` -- CREATE TABLE `master_coa` ( `id` int(11) NOT NULL, `kode_coa` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_coa` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `posisi_dr_cr` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `master_coa` -- INSERT INTO `master_coa` (`id`, `kode_coa`, `nama_coa`, `posisi_dr_cr`) VALUES (1, '111', 'Kas', 'Debit'), (2, '411', 'Penjualan', 'Kredit'), (5, '521', 'Beban Gaji', 'Debit'), (6, '113', 'Persediaan', 'Debit'), (7, '211', 'Utang', 'Kredit'), (10, '311', 'Simpanan Pokok', 'Kredit'), (11, '312', 'Simpanan Wajib', 'Kredit'), (12, '212', 'Simpanan Sukarela', 'Kredit'), (13, '511', 'Harga Pokok Penjualan', 'Debit'), (14, '114', 'Diskon Penjualan', 'Debit'), (15, '112', 'Piutang', 'Debit'), (16, '213', 'Konsinyasi', 'Kredit'), (17, '115', 'Persediaan Sampah', 'Debit'), (18, '522', 'Beban Listrik', 'Debit'), (19, '116', 'Perlengkapan', 'Debit'), (20, '523', 'Beban Perlengkapan', 'Debit'), (21, '412', 'Pendapatan Kartu', 'Kredit'), (22, '117', 'Voucher', 'Debit'), (23, '413', 'Pendapatan Iuran', 'Debit'), (24, '118', 'Bank', 'Debit'); -- -------------------------------------------------------- -- -- Table structure for table `master_jurnal` -- CREATE TABLE `master_jurnal` ( `id` int(11) NOT NULL, `coa_id` int(11) DEFAULT NULL, `posisi` enum('debit','kredit') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tgl_jurnal` date DEFAULT NULL, `nominal` int(50) DEFAULT NULL, `keterangan` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `master_jurnal` -- INSERT INTO `master_jurnal` (`id`, `coa_id`, `posisi`, `tgl_jurnal`, `nominal`, `keterangan`) VALUES (1, 1, 'debit', '2021-07-29', 100000, NULL), (2, 10, 'kredit', '2021-07-29', 100000, NULL), (3, 1, 'debit', '2021-07-29', 50000, NULL), (4, 11, 'kredit', '2021-07-29', 50000, NULL), (5, 1, 'debit', '2021-07-29', 20000, NULL), (6, 12, 'kredit', '2021-07-29', 20000, NULL), (7, 12, 'debit', '2021-07-29', 5000, NULL), (8, 1, 'kredit', '2021-07-29', 5000, NULL), (9, 5, 'debit', '2021-07-29', 100000, NULL), (10, 1, 'kredit', '2021-07-29', 100000, NULL), (11, 5, 'debit', '2021-07-29', 200000, NULL), (12, 1, 'kredit', '2021-07-29', 200000, NULL), (13, 20, 'debit', '2021-07-29', 100000, NULL), (14, 1, 'kredit', '2021-07-29', 100000, NULL), (15, 6, 'debit', '2021-07-29', 80000, NULL), (16, 1, 'kredit', '2021-07-29', 80000, NULL), (17, 6, 'debit', '2021-07-29', 70000, NULL), (18, 1, 'kredit', '2021-07-29', 50000, NULL), (19, 7, 'kredit', '2021-07-29', 20000, NULL), (20, 7, 'debit', '2021-07-29', 10000, NULL), (21, 1, 'kredit', '2021-07-29', 10000, NULL), (22, 7, 'debit', '2021-07-29', 10000, NULL), (23, 1, 'kredit', '2021-07-29', 10000, NULL), (24, 6, 'debit', '2021-07-29', 150000, NULL), (25, 1, 'kredit', '2021-07-29', 150000, NULL), (26, 6, 'debit', '2021-07-29', 65000, NULL), (27, 16, 'kredit', '2021-07-29', 65000, NULL), (28, 1, 'debit', '2021-07-29', 55000, NULL), (29, 2, 'kredit', '2021-07-29', 55000, NULL), (30, 13, 'debit', '2021-07-29', 50000, NULL), (31, 6, 'kredit', '2021-07-29', 50000, NULL), (32, 1, 'debit', '2021-07-29', 10000, NULL), (33, 15, 'debit', '2021-07-29', 6500, NULL), (34, 2, 'kredit', '2021-07-29', 16500, NULL), (35, 13, 'debit', '2021-07-29', 15000, NULL), (36, 6, 'kredit', '2021-07-29', 15000, NULL), (37, 16, 'debit', '2021-07-29', 65000, NULL), (38, 6, 'kredit', '2021-07-29', 65000, NULL), (39, 1, 'kredit', '2021-07-29', 0, NULL), (40, 22, 'kredit', '2021-07-29', 75, NULL), (41, 19, 'debit', '2021-07-29', 75, NULL), (44, 2, 'kredit', '2021-07-29', 9000, NULL), (45, 1, 'debit', '2021-07-29', 9000, NULL), (46, 7, 'kredit', '2021-07-29', 3000, NULL), (47, 17, 'debit', '2021-07-29', 3000, NULL), (48, 1, 'kredit', '2021-07-29', 3000, NULL), (49, 7, 'debit', '2021-07-29', 3000, NULL), (50, 5, 'debit', '2021-07-29', 20000, NULL), (51, 1, 'kredit', '2021-07-29', 20000, NULL), (52, 5, 'debit', '2021-07-29', 0, NULL), (53, 1, 'kredit', '2021-07-29', 0, NULL), (54, 6, 'debit', '2021-07-31', 200000, NULL), (55, 1, 'kredit', '2021-07-31', 200000, NULL), (56, 7, 'kredit', '2021-08-02', 40000, NULL), (57, 6, 'debit', '2021-08-02', 40000, NULL), (58, 7, 'kredit', '2021-08-02', 300000, NULL), (59, 6, 'debit', '2021-08-02', 300000, NULL), (60, 2, 'kredit', '2021-08-02', 40000, NULL), (61, 1, 'debit', '2021-08-02', 40000, NULL), (62, 6, 'kredit', '2021-08-02', 40000, NULL), (63, 13, 'debit', '2021-08-02', 40000, NULL), (64, 7, 'kredit', '2021-08-02', 250000, NULL), (65, 6, 'debit', '2021-08-02', 250000, NULL), (66, 7, 'kredit', '2021-08-02', 50000, NULL), (67, 6, 'debit', '2021-08-02', 50000, NULL), (68, 2, 'kredit', '2021-08-02', 50000, NULL), (69, 1, 'debit', '2021-08-02', 50000, NULL), (70, 6, 'kredit', '2021-08-02', 50000, NULL), (71, 13, 'debit', '2021-08-02', 50000, NULL), (72, 2, 'kredit', '2021-08-02', 250000, NULL), (73, 1, 'debit', '2021-08-02', 250000, NULL), (74, 6, 'kredit', '2021-08-02', 250000, NULL), (75, 13, 'debit', '2021-08-02', 250000, NULL), (76, 7, 'kredit', '2021-08-02', 20000, NULL), (77, 6, 'debit', '2021-08-02', 20000, NULL), (78, 2, 'kredit', '2021-08-02', 20000, NULL), (79, 1, 'debit', '2021-08-02', 20000, NULL), (80, 6, 'kredit', '2021-08-02', 20000, NULL), (81, 13, 'debit', '2021-08-02', 20000, NULL), (82, 7, 'kredit', '2021-08-02', 10000, NULL), (83, 6, 'debit', '2021-08-02', 10000, NULL), (84, 2, 'kredit', '2021-08-02', 10000, NULL), (85, 1, 'debit', '2021-08-02', 10000, NULL), (86, 6, 'kredit', '2021-08-02', 10000, NULL), (87, 13, 'debit', '2021-08-02', 10000, NULL), (88, 1, 'kredit', '2021-08-02', 50000, NULL), (89, 22, 'debit', '2021-08-02', 50000, NULL), (90, 1, 'kredit', '2021-08-02', 10000, NULL), (91, 22, 'debit', '2021-08-02', 10000, NULL), (92, 1, 'kredit', '2021-08-03', 250000, NULL), (93, 7, 'debit', '2021-08-03', 250000, NULL), (94, 6, 'debit', '2021-08-04', 45000, NULL), (95, 1, 'kredit', '2021-08-04', 45000, NULL), (96, 1, 'debit', '2021-08-04', 160000, NULL), (97, 10, 'kredit', '2021-08-04', 100000, NULL), (98, 11, 'kredit', '2021-08-04', 50000, NULL), (99, 12, 'kredit', '2021-08-04', 10000, NULL), (100, 5, 'debit', '2021-08-06', 150000, NULL), (101, 1, 'kredit', '2021-08-06', 150000, NULL), (102, 1, 'debit', '2021-08-08', 49500, NULL), (103, 2, 'kredit', '2021-08-08', 49500, NULL), (104, 13, 'debit', '2021-08-08', 45000, NULL), (105, 6, 'kredit', '2021-08-08', 45000, NULL), (106, 1, 'debit', '2021-08-08', 160000, NULL), (107, 10, 'kredit', '2021-08-08', 100000, NULL), (108, 11, 'kredit', '2021-08-08', 50000, NULL), (109, 12, 'kredit', '2021-08-08', 10000, NULL), (110, 1, 'debit', '2021-08-08', 165000, NULL), (111, 10, 'kredit', '2021-08-08', 100000, NULL), (112, 11, 'kredit', '2021-08-08', 50000, NULL), (113, 12, 'kredit', '2021-08-08', 15000, NULL), (122, 24, 'debit', '2021-08-14', 15000, NULL), (123, 15, 'kredit', '2021-08-14', 15000, NULL), (124, 15, 'debit', '2021-08-14', 15000, NULL), (125, 23, 'kredit', '2021-08-14', 15000, NULL), (126, 1, 'debit', '2021-08-14', 6500, NULL), (127, 15, 'kredit', '2021-08-14', 6500, NULL), (128, 24, 'debit', '2021-08-14', 15000, NULL), (129, 15, 'kredit', '2021-08-14', 15000, NULL), (130, 15, 'debit', '2021-08-14', 15000, NULL), (131, 23, 'kredit', '2021-08-14', 15000, NULL), (132, 6, 'debit', '2021-08-14', 24000, NULL), (133, 16, 'kredit', '2021-08-14', 24000, NULL), (134, 2, 'kredit', '2021-08-14', 27970, NULL), (135, 13, 'debit', '2021-08-14', 25428, NULL), (136, 6, 'kredit', '2021-08-14', 25428, NULL), (137, 16, 'debit', '2021-08-14', 24000, NULL), (138, 1, 'kredit', '2021-08-14', 24000, NULL), (139, 6, 'debit', '2021-08-14', 40000, NULL), (140, 16, 'kredit', '2021-08-14', 40000, NULL), (141, 2, 'kredit', '2021-08-14', 17875, NULL), (142, 13, 'debit', '2021-08-14', 16250, NULL), (143, 6, 'kredit', '2021-08-14', 16250, NULL), (144, 2, 'kredit', '2021-08-14', 17875, NULL), (145, 13, 'debit', '2021-08-14', 16250, NULL), (146, 6, 'kredit', '2021-08-14', 16250, NULL), (147, 2, 'kredit', '2021-08-14', 17875, NULL), (148, 13, 'debit', '2021-08-14', 16250, NULL), (149, 6, 'kredit', '2021-08-14', 16250, NULL), (150, 11, 'debit', '2021-08-14', 50000, NULL), (151, 12, 'debit', '2021-08-14', 10000, NULL), (152, 1, 'kredit', '2021-08-14', 60000, NULL), (153, 1, 'debit', '2021-08-14', 10000, NULL), (154, 12, 'kredit', '2021-08-14', 10000, NULL), (155, 1, 'debit', '2021-08-14', 50000, NULL), (156, 12, 'kredit', '2021-08-14', 50000, NULL), (157, 20, 'debit', '2021-08-15', 2000, NULL), (158, 19, 'kredit', '2021-08-15', 2000, NULL), (159, 19, 'debit', '2021-08-15', 20000, NULL), (160, 1, 'kredit', '2021-08-15', 20000, NULL), (161, 20, 'debit', '2021-08-15', 2000, NULL), (162, 19, 'kredit', '2021-08-15', 2000, NULL), (163, 20, 'debit', '2021-08-15', 2000, NULL), (164, 19, 'kredit', '2021-08-15', 2000, NULL), (165, 20, 'debit', '2021-08-15', 2000, NULL), (166, 19, 'kredit', '2021-08-15', 2000, NULL), (167, 20, 'debit', '2021-08-15', 2000, NULL), (168, 19, 'kredit', '2021-08-15', 2000, NULL), (169, 20, 'debit', '2021-08-15', 2000, NULL), (170, 19, 'kredit', '2021-08-15', 2000, NULL), (171, 20, 'debit', '2021-08-15', 2000, NULL), (172, 19, 'kredit', '2021-08-15', 2000, NULL), (173, 20, 'debit', '2021-08-15', 2000, NULL), (174, 19, 'kredit', '2021-08-15', 2000, NULL), (175, 20, 'debit', '2021-08-15', 2000, NULL), (176, 19, 'kredit', '2021-08-15', 2000, NULL), (177, 20, 'debit', '2021-08-15', 2000, NULL), (178, 19, 'kredit', '2021-08-15', 2000, NULL), (179, 20, 'debit', '2021-08-15', 2000, NULL), (180, 19, 'kredit', '2021-08-15', 2000, NULL), (181, 20, 'debit', '2021-08-15', 2000, NULL), (182, 19, 'kredit', '2021-08-15', 2000, NULL), (183, 20, 'debit', '2021-08-15', 2000, NULL), (184, 19, 'kredit', '2021-08-15', 2000, NULL), (185, 24, 'debit', '2021-08-15', 15000, NULL), (186, 15, 'kredit', '2021-08-15', 15000, NULL), (187, 15, 'debit', '2021-08-16', 15000, NULL), (188, 23, 'kredit', '2021-08-16', 15000, NULL), (189, 15, 'debit', '2021-08-16', 15000, NULL), (190, 23, 'kredit', '2021-08-16', 15000, NULL), (191, 20, 'debit', '2021-08-16', 2000, NULL), (192, 19, 'kredit', '2021-08-16', 2000, NULL), (193, 24, 'debit', '2021-08-16', 15000, NULL), (194, 15, 'kredit', '2021-08-16', 15000, NULL); -- -------------------------------------------------------- -- -- Table structure for table `master_user` -- CREATE TABLE `master_user` ( `id` int(11) NOT NULL, `username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nama` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_kk` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `posisi` enum('Super Admin','Bank Sampah','Koperasi','Penjadwalan','RFID','Keuangan') COLLATE utf8mb4_unicode_ci NOT NULL, `is_default` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `master_user` -- INSERT INTO `master_user` (`id`, `username`, `password`, `nama`, `alamat`, `no_telp`, `no_kk`, `no_ktp`, `posisi`, `is_default`) VALUES (1, 'admin', '$2y$10$6i9jGM3keiTH3b2WCIGoeuKajhkBumhD5anAA0z/rbebssbbFfyXi', 'Super Admin', NULL, NULL, '123', '1234', 'Super Admin', '1'), (18, 'adminbs', '$2y$10$JS/5e.mjQ9ESPIxsm8Jtv.PysWzmXqmZrIrOlkiDTHHMc69A.37be', 'Admin Bank Sampah', 'Blok A No 9', '082123456111', '789', '7890', 'Bank Sampah', '0'), (19, 'adminkop', '$2y$10$9eSfuIfcKOB19M6AKjVxJuMVj7C8/SNYzx08erzToegwUEHqEYVVy', 'Admin Koperasi', 'Blok B No 14', '082123456222', '4566', '564', 'Koperasi', '0'), (20, 'adminrfid', '$2y$10$DiMbOqqa1qF7zTa4Wrnt/OH0Us8K60CgENT9pyEiMv4hsIHSU8svi', 'Admin RFID', 'Blok D No 2', '082123456444', '', '', 'RFID', '0'), (21, 'adminjad', '$2y$10$Km6Cl6DBQK6ojyxOLR9XZeuAyDqMVJsiKUYxQN.P.Uy/Ogwdg502y', 'Admin Penjadwalan', 'Blok C No 6', '082123456333', '', '', 'Penjadwalan', '0'); -- -------------------------------------------------------- -- -- Table structure for table `master_warga` -- CREATE TABLE `master_warga` ( `id_warga` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tempat_lahir` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tgl_lahir` date DEFAULT NULL, `jenis_kelamin` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `agama` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pendidikan` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `pekerjaan` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status_perkawinan` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `alamat` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_kk` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `bs_saldo` bigint(20) DEFAULT 0, `bs_tanggal_bergabung` date NOT NULL, `bs_id_nasabah` varchar(11) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `master_warga` -- INSERT INTO `master_warga` (`id_warga`, `nama`, `tempat_lahir`, `tgl_lahir`, `jenis_kelamin`, `agama`, `pendidikan`, `pekerjaan`, `status_perkawinan`, `alamat`, `no_telp`, `no_kk`, `no_ktp`, `bs_saldo`, `bs_tanggal_bergabung`, `bs_id_nasabah`) VALUES ('GUEST', 'Guest', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'guest', NULL, '0000-00-00', NULL), ('WRG-001', 'Sinestrea', 'Athanor', '2000-06-01', 'Perempuan', NULL, NULL, NULL, NULL, 'Jl. Cigado Raya II No. 02, Baleendah', '0123', '320990', '320990123', 200000, '2021-07-01', 'N-004'), ('WRG-002', 'Udin', 'St. Freya', '1991-08-01', 'Laki-laki', NULL, NULL, NULL, NULL, 'Jalan B No 2', '21312', '123456', '456456', 10000, '2021-07-01', 'N-005'), ('WRG-003', 'Kazuha', 'Inazuma', '2003-06-02', 'Laki-laki', NULL, NULL, NULL, NULL, 'Jalan A No 1', '08123', '123456', '123123', 10000, '2021-07-01', 'N-006'), ('WRG-004', '<NAME>', 'Schicksal', '1999-11-16', 'Perempuan', NULL, NULL, NULL, NULL, 'Blok C No 3', '094877', '21313', '32131', 0, '2021-07-28', 'N-007'), ('WRG-005', 'Budi', 'Jakarta', '2000-02-01', 'Laki-laki', NULL, NULL, NULL, NULL, 'Blok F No 9', '081927231237', '3214126412647264', '2641466418264812', 0, '2021-08-08', 'N-008'), ('WRG-006', 'Arief', 'Cirebon', '2000-12-12', 'Laki-laki', 'Islam', 'Diploma III', 'Pelajar/Mahasiswa', 'Belum Kawin', 'Jl. Cigado Raya II No. 04, Baleendah', '082313213131', '1234561234561234', '1234561234561234', 0, '2021-08-14', 'N-009'), ('WRG-007', 'Bernard', 'Jakarta', '2000-02-01', 'Laki-laki', 'Kristen', 'Diploma IV/Strata 1', 'Pelajar/Mahasiswa', 'Belum Kawin', 'Jl. Cigado Raya II No. 01, Baleendah', '0842184174612', '2471847184718474', '2471847184718475', 0, '2021-08-15', 'N-010'); -- -------------------------------------------------------- -- -- Table structure for table `master_warga_keluarga` -- CREATE TABLE `master_warga_keluarga` ( `id` int(11) NOT NULL, `no_kk` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `nama_keluarga` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` enum('istri','anak','suami') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp_keluarga` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `keluarga_tanggal_bergabung` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `master_warga_keluarga` -- INSERT INTO `master_warga_keluarga` (`id`, `no_kk`, `nama_keluarga`, `status`, `no_ktp_keluarga`, `keluarga_tanggal_bergabung`) VALUES (22, '2471847184718474', 'Angela', 'istri', '6315412485284124', '2021-08-15'), (23, '2471847184718474', 'Altair', 'anak', '4112535252634234', '2021-08-15'); -- -------------------------------------------------------- -- -- Table structure for table `overtime` -- CREATE TABLE `overtime` ( `id` int(10) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `overtime_proof` varchar(200) DEFAULT NULL, `overtime_hour` int(11) DEFAULT NULL, `overtime_date` date DEFAULT NULL, `overtime_status` enum('approve','deny','pending','cancel') DEFAULT 'pending', `reject_reason` text DEFAULT NULL, `created_at` datetime DEFAULT NULL, `confirm_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `payroll` -- CREATE TABLE `payroll` ( `id` int(10) NOT NULL, `payroll_code` varchar(100) DEFAULT NULL, `month` int(10) DEFAULT NULL, `year` year(4) DEFAULT NULL, `total_employee` int(10) DEFAULT NULL, `total_salary` int(10) DEFAULT NULL, `created_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `payroll` -- INSERT INTO `payroll` (`id`, `payroll_code`, `month`, `year`, `total_employee`, `total_salary`, `created_at`) VALUES (25, 'TRX-PYR-2', 7, 2021, 2, 200000, '2021-07-08 01:31:09'), (27, 'TRX-PYR-3', 8, 2021, 4, 150000, '2021-08-06 11:15:54'); -- -------------------------------------------------------- -- -- Table structure for table `payroll_detail` -- CREATE TABLE `payroll_detail` ( `id` int(10) NOT NULL, `payroll_id` int(10) DEFAULT NULL, `user_id` int(10) UNSIGNED NOT NULL, `presence_in` int(10) DEFAULT NULL, `presence_late` int(10) DEFAULT NULL, `presence_max` int(10) DEFAULT NULL, `insentive` int(50) DEFAULT NULL, `overtime` int(50) DEFAULT NULL, `salary_basic` int(50) DEFAULT NULL, `salary_in` int(50) DEFAULT NULL, `salary_late` int(50) DEFAULT 0, `salary_total` int(50) DEFAULT NULL, `salary_component` text DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `payroll_detail` -- INSERT INTO `payroll_detail` (`id`, `payroll_id`, `user_id`, `presence_in`, `presence_late`, `presence_max`, `insentive`, `overtime`, `salary_basic`, `salary_in`, `salary_late`, `salary_total`, `salary_component`) VALUES (59, 25, 147, 2, 0, 30, NULL, NULL, 100000, 200000, 0, 200000, NULL), (60, 25, 148, 0, 0, 31, NULL, NULL, 100000, 0, 0, 0, NULL), (64, 27, 147, 0, 0, 22, NULL, NULL, 50000, 0, 0, 0, NULL), (65, 27, 155, 0, 0, 31, NULL, NULL, 50000, 0, 0, 0, NULL), (66, 27, 159, 1, 0, 26, NULL, NULL, 150000, 150000, 0, 150000, NULL); -- -------------------------------------------------------- -- -- Table structure for table `pemilik_rumah` -- CREATE TABLE `pemilik_rumah` ( `id_pemilik` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_pemilik` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `tempat_lahir` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_lahir` date NOT NULL, `jenis_kelamin` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `pekerjaan` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `no_telp` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `pemilik_rumah` -- INSERT INTO `pemilik_rumah` (`id_pemilik`, `nama_pemilik`, `tempat_lahir`, `tgl_lahir`, `jenis_kelamin`, `pekerjaan`, `no_telp`, `no_ktp`) VALUES ('PR-006', 'Dandi ', 'Garut', '1990-04-16', 'Laki-laki', 'PNS', '082340567345', '520302041690000'), ('PR-005', 'Abdi', 'Bandung', '1992-08-10', 'Laki-laki', 'PNS', '085234678456', '520302081092000'), ('PR-003', 'Jupriyanto', 'Yogyakarta', '1980-12-17', 'Laki-laki', 'PNS', '082987634509', '520302198765436'), ('PR-001', 'Fajar', 'Bandung', '1991-07-26', 'Laki-laki', 'Pelajar/Mahasiswa', '082340400719', '520302260799000'), ('PR-002', 'Daniel', 'Mataram', '1991-07-30', 'Laki-laki', 'Wiraswasta', '082670318003', '520302300791000'), ('PR-004', 'Alvian', 'Jakarta', '1991-11-11', 'Laki-laki', 'PNS', '085340226546', '520302670318003'); -- -------------------------------------------------------- -- -- Table structure for table `penghuni_rumah` -- CREATE TABLE `penghuni_rumah` ( `id_penghuni` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `id_rumah` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `status` enum('Aktif','Tidak Aktif') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `penghuni_rumah` -- INSERT INTO `penghuni_rumah` (`id_penghuni`, `id_rumah`, `no_ktp`, `status`) VALUES ('PH-001', 'RW-004', '1234561234561234', 'Aktif'), ('PH-002', 'RW-002', '320990123', 'Aktif'), ('PH-003', 'RW-003', '2471847184718475', 'Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `pmbayaran1` -- CREATE TABLE `pmbayaran1` ( `order_id` char(15) NOT NULL, `gross_amount` int(11) NOT NULL, `payment_type` varchar(25) NOT NULL, `transaction_time` varchar(25) NOT NULL, `transaction_status` varchar(25) NOT NULL, `status_code` varchar(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `pmbayaran1` -- INSERT INTO `pmbayaran1` (`order_id`, `gross_amount`, `payment_type`, `transaction_time`, `transaction_status`, `status_code`) VALUES ('1005852678', 25000, 'gopay', '2021-06-26 13:59:51', 'settlement', ''), ('1182757398', 25000, 'gopay', '2021-07-02 09:48:33', 'pending', ''), ('1340354147', 25000, 'gopay', '2021-07-02 09:15:22', 'settlement', ''), ('1496013813', 75000, 'gopay', '2021-07-02 07:45:15', 'settlement', ''), ('1755780481', 25000, 'gopay', '2021-07-02 10:55:18', 'pending', '201'), ('1944414126', 25000, 'gopay', '2021-07-02 09:10:47', 'pending', ''), ('2147037356', 75000, 'gopay', '2021-06-26 14:54:04', 'settlement', ''), ('569365741', 15000, 'gopay', '2021-08-08 12:58:02', 'pending', '201'), ('587543632', 25000, 'gopay', '2021-08-04 14:05:53', 'settlement', '200'), ('849351481', 75000, 'gopay', '2021-06-21 19:18:19', 'settlement', ''); -- -------------------------------------------------------- -- -- Table structure for table `position` -- CREATE TABLE `position` ( `id` int(10) NOT NULL, `position_code` varchar(200) DEFAULT NULL, `position_name` varchar(200) DEFAULT NULL, `group_id` int(11) NOT NULL, `level` varchar(64) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `is_default` enum('0','1') DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `position` -- INSERT INTO `position` (`id`, `position_code`, `position_name`, `group_id`, `level`, `created_at`, `updated_at`, `deleted_at`, `is_default`) VALUES (41, 'JBT-0001', 'Adminisrator', 1, 'admin', '2021-05-15 17:48:45', NULL, NULL, '1'), (43, 'JBT-0002', 'Satpam', 2, 'karyawan', NULL, NULL, NULL, '0'), (47, 'JBT-0003', 'Kebersihan', 2, 'karyawan', NULL, NULL, NULL, '0'), (51, 'JBT-0004', 'Marbot Masjid', 2, 'karyawan', NULL, NULL, NULL, '0'); -- -------------------------------------------------------- -- -- Table structure for table `presence` -- CREATE TABLE `presence` ( `id` int(10) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `entry_time` datetime DEFAULT NULL, `out_time` datetime DEFAULT NULL, `flow_date` varchar(200) DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `input_by` enum('system','manual') DEFAULT NULL, `input_by_user_id` int(10) DEFAULT NULL, `presence_status` enum('approved','deny','pending') DEFAULT 'approved' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `presence` -- INSERT INTO `presence` (`id`, `user_id`, `entry_time`, `out_time`, `flow_date`, `created_at`, `updated_at`, `input_by`, `input_by_user_id`, `presence_status`) VALUES (1371, 147, '2021-05-10 07:39:00', '2021-05-10 17:29:00', NULL, '2021-05-17 20:12:10', NULL, 'manual', 147, 'approved'), (1374, 148, NULL, '2021-05-17 21:26:26', NULL, '2021-05-17 21:26:26', NULL, 'system', NULL, 'approved'), (1375, 147, '2021-07-02 06:20:00', '2021-07-02 17:00:00', NULL, '2021-07-08 01:29:12', NULL, 'manual', 147, 'approved'), (1376, 147, '2021-07-03 06:29:00', '2021-07-03 17:29:00', NULL, '2021-07-08 01:29:44', NULL, 'manual', 147, 'approved'), (1384, 147, NULL, '2021-07-17 21:51:02', NULL, '2021-07-17 21:51:02', NULL, 'system', NULL, 'approved'), (1385, 147, '2021-07-07 21:47:00', '2021-07-07 22:47:00', NULL, '2021-07-30 21:47:21', NULL, 'manual', NULL, 'approved'), (1386, 147, '2021-07-05 20:49:00', '2021-07-05 23:49:00', NULL, '2021-07-30 21:49:50', NULL, 'manual', NULL, 'approved'), (1388, 159, '2021-08-06 06:20:00', '2021-08-06 17:13:00', NULL, '2021-08-06 11:13:16', NULL, 'manual', NULL, 'approved'); -- -------------------------------------------------------- -- -- Table structure for table `rfid_akses` -- CREATE TABLE `rfid_akses` ( `id` int(11) NOT NULL, `rfid_id` int(10) DEFAULT NULL, `tamu_id` int(10) DEFAULT NULL, `tipe` enum('masuk','keluar') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `waktu` datetime DEFAULT NULL, `name` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_akses` -- INSERT INTO `rfid_akses` (`id`, `rfid_id`, `tamu_id`, `tipe`, `waktu`, `name`) VALUES (3, 3, 4, 'masuk', '2021-07-16 01:00:52', NULL), (4, 3, 4, 'keluar', '2021-07-16 01:01:57', NULL), (5, 1, NULL, 'masuk', '2021-07-16 01:03:27', NULL), (6, 1, NULL, 'keluar', '2021-07-16 01:04:17', NULL), (7, 5, NULL, 'masuk', '2021-07-16 14:18:22', NULL), (8, 5, NULL, 'masuk', '2021-07-16 14:53:47', NULL), (9, 8, NULL, 'masuk', '2021-07-29 20:55:25', NULL), (10, 8, NULL, 'keluar', '2021-07-29 20:55:37', NULL), (11, 1, NULL, 'masuk', '2021-07-29 20:58:09', NULL), (12, 11, NULL, 'masuk', '2021-08-15 06:55:57', NULL), (13, 10, NULL, 'masuk', '2021-08-16 00:20:58', NULL), (14, 11, NULL, 'masuk', '2021-08-16 00:22:14', NULL), (15, 10, NULL, 'masuk', '2021-08-16 00:22:35', NULL), (16, 10, NULL, 'masuk', '2021-08-16 00:39:15', NULL), (17, 11, NULL, 'masuk', '2021-08-16 00:39:22', NULL), (18, 5, NULL, 'masuk', '2021-08-16 00:41:53', NULL), (19, 8, NULL, 'masuk', '2021-08-16 00:41:58', NULL), (20, 5, NULL, 'masuk', '2021-08-16 00:42:46', NULL); -- -------------------------------------------------------- -- -- Table structure for table `rfid_dummy_status` -- CREATE TABLE `rfid_dummy_status` ( `id_tagihan` int(11) NOT NULL, `id_warga` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `bulan` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL, `tahun` varchar(4) COLLATE utf8mb4_unicode_ci NOT NULL, `status` enum('Lunas','Belum Lunas') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_dummy_status` -- INSERT INTO `rfid_dummy_status` (`id_tagihan`, `id_warga`, `bulan`, `tahun`, `status`) VALUES (1, 'WRG-001', '06', '2021', 'Lunas'), (2, 'WRG-001', '07', '2021', 'Lunas'), (3, 'WRG-002', '06', '2021', 'Lunas'), (4, 'WRG-002', '07', '2021', 'Belum Lunas'), (5, 'WRG-003', '06', '2021', 'Belum Lunas'), (6, 'WRG-003', '07', '2021', 'Belum Lunas'); -- -------------------------------------------------------- -- -- Table structure for table `rfid_jurnal` -- CREATE TABLE `rfid_jurnal` ( `id` int(11) NOT NULL, `coa_id` int(11) DEFAULT NULL, `posisi` enum('debit','kredit') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tgl_jurnal` date DEFAULT NULL, `nominal` int(50) DEFAULT NULL, `keterangan` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_jurnal` -- INSERT INTO `rfid_jurnal` (`id`, `coa_id`, `posisi`, `tgl_jurnal`, `nominal`, `keterangan`) VALUES (1, 6, 'debit', '2021-07-16', 10000, NULL), (2, 1, 'debit', '2021-07-16', 10000, NULL), (3, 1, 'debit', '2021-07-16', 20000, NULL), (4, 13, 'kredit', '2021-07-16', 20000, NULL), (5, 17, 'debit', '2021-07-16', 2000, NULL), (6, 6, 'debit', '2021-07-16', 2000, NULL), (7, 17, 'debit', '2021-07-16', 2000, NULL), (8, 6, 'debit', '2021-07-16', 2000, NULL), (9, 17, 'debit', '2021-07-16', 2000, NULL), (10, 6, 'debit', '2021-07-16', 2000, NULL), (11, 17, 'debit', '2021-07-28', 2500, NULL), (12, 6, 'debit', '2021-07-28', 2500, NULL); -- -------------------------------------------------------- -- -- Table structure for table `rfid_rfid` -- CREATE TABLE `rfid_rfid` ( `id` int(11) NOT NULL, `rfid_buy_id` int(10) DEFAULT NULL, `kode_rfid` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_active` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `is_lost` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `rfid_tipe` enum('guest','warga') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_back` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '1', `waktu_hilang` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_rfid` -- INSERT INTO `rfid_rfid` (`id`, `rfid_buy_id`, `kode_rfid`, `is_active`, `is_lost`, `rfid_tipe`, `is_back`, `waktu_hilang`) VALUES (1, 1, '123', '1', '0', 'warga', '0', NULL), (2, 1, '456', '0', '1', 'warga', '0', '2021-07-15 23:40:06'), (3, 1, '789', '1', '0', 'warga', '1', NULL), (4, 2, '111', '0', '0', NULL, '0', NULL), (5, 3, '222', '1', '0', NULL, '1', NULL), (6, 3, '333', '1', '0', NULL, '1', NULL), (7, 3, '444', '1', '0', NULL, '1', NULL), (8, 3, '555', '1', '0', NULL, '1', NULL), (9, 3, NULL, '0', '0', NULL, '1', NULL), (10, 4, '123456', '1', '0', NULL, '1', NULL), (11, 4, '654321', '1', '0', NULL, '1', NULL), (12, 4, NULL, '0', '0', NULL, '1', NULL), (13, 4, NULL, '0', '0', NULL, '1', NULL), (14, 4, NULL, '0', '0', NULL, '1', NULL), (15, 4, NULL, '0', '0', NULL, '1', NULL), (16, 4, NULL, '0', '0', NULL, '1', NULL), (17, 4, NULL, '0', '0', NULL, '1', NULL), (18, 4, NULL, '0', '0', NULL, '1', NULL), (19, 4, NULL, '0', '0', NULL, '1', NULL); -- -------------------------------------------------------- -- -- Table structure for table `rfid_rfid_buy` -- CREATE TABLE `rfid_rfid_buy` ( `id` int(11) NOT NULL, `kode_pembelian` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `qty` int(50) DEFAULT NULL, `price` int(50) DEFAULT NULL, `subtotal` int(50) DEFAULT NULL, `tanggal_beli` date DEFAULT NULL, `waktu_input` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_rfid_buy` -- INSERT INTO `rfid_rfid_buy` (`id`, `kode_pembelian`, `qty`, `price`, `subtotal`, `tanggal_beli`, `waktu_input`) VALUES (1, 'TRX-RFD-0001', 3, 12500, 37500, '2021-07-15', '2021-07-15 11:13:21'), (2, 'TRX-RFD-0002', 1, 2500, 2500, '2021-07-15', '2021-07-15 22:00:29'), (3, 'TRX-RFD-0003', 5, 2000, 10000, '2021-07-16', '2021-07-16 00:08:20'), (4, 'TRX-RFD-0004', 10, 2000, 20000, '2021-08-15', '2021-08-15 06:48:52'); -- -------------------------------------------------------- -- -- Table structure for table `rfid_rfid_user` -- CREATE TABLE `rfid_rfid_user` ( `id` int(11) NOT NULL, `user_id` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `rfid_id` int(10) DEFAULT NULL, `id_keluarga` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_rfid_user` -- INSERT INTO `rfid_rfid_user` (`id`, `user_id`, `rfid_id`, `id_keluarga`) VALUES (1, 'WRG-001', 1, 0), (6, 'GUEST', 3, 0), (9, 'WRG-002', 2, 0), (12, 'WRG-002', 6, 0), (13, 'WRG-003', 7, 0), (14, 'GUEST', 4, 0), (16, 'WRG-001', 10, 0), (17, 'WRG-006', 11, 0), (27, 'WRG-007', 5, 0), (28, 'WRG-007', 8, 23); -- -------------------------------------------------------- -- -- Table structure for table `rfid_tamu` -- CREATE TABLE `rfid_tamu` ( `id` int(11) NOT NULL, `rfid_id` int(10) DEFAULT NULL, `no_identitas` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tipe_identitas` enum('KTP','SIM','Lainnya') COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama_tamu` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `file_identitas` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `keperluan` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_done` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0', `waktu_selesai` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rfid_tamu` -- INSERT INTO `rfid_tamu` (`id`, `rfid_id`, `no_identitas`, `tipe_identitas`, `nama_tamu`, `file_identitas`, `keperluan`, `is_done`, `waktu_selesai`) VALUES (4, 3, NULL, 'KTP', 'jon', NULL, 'kepo', '0', NULL); -- -------------------------------------------------------- -- -- Table structure for table `rfid_user` -- CREATE TABLE `rfid_user` ( `id` int(11) NOT NULL, `nik` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `nama` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `alamat` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `no_telp` varchar(13) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `username` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `password` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `posisi` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_default` enum('0','1') COLLATE utf8mb4_unicode_ci DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `rumah_warga1` -- CREATE TABLE `rumah_warga1` ( `id_rumah` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `no_ktp` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL, `nomor_rumah` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `blok_rumah` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `kelurahan` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL, `type_rumah` enum('Tinggal','Kost/Kontrakan','Tak dihuni') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `rumah_warga1` -- INSERT INTO `rumah_warga1` (`id_rumah`, `no_ktp`, `nomor_rumah`, `blok_rumah`, `kelurahan`, `type_rumah`) VALUES ('RW-001', '520302260799000', 'CRI - 01', 'Jl. Cigado Raya I', 'Baleendah', 'Tinggal'), ('RW-002', '520302041690000', 'CRII - 02', 'Jl. Cigado Raya II', 'Baleendah', 'Tinggal'), ('RW-003', '520302670318003', 'CRII - 01', 'Jl. Cigado Raya II', 'Baleendah', 'Tinggal'), ('RW-004', '520302041690000', 'CRII - 04', 'Jl. Cigado Raya II', 'Baleendah', 'Tinggal'); -- -------------------------------------------------------- -- -- Table structure for table `shift` -- CREATE TABLE `shift` ( `id` int(10) NOT NULL, `shift_code` varchar(100) DEFAULT NULL, `shift_name` varchar(200) DEFAULT NULL, `start_time` time DEFAULT NULL, `end_time` time DEFAULT NULL, `start_time_in` time DEFAULT NULL, `start_time_out` time DEFAULT NULL, `start_time_late` time DEFAULT NULL, `end_time_in` time DEFAULT NULL, `end_time_out` time DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `shift` -- INSERT INTO `shift` (`id`, `shift_code`, `shift_name`, `start_time`, `end_time`, `start_time_in`, `start_time_out`, `start_time_late`, `end_time_in`, `end_time_out`, `created_at`, `updated_at`, `deleted_at`) VALUES (16, 'SF-M', 'Malam', '08:00:00', '17:00:00', '07:30:00', '08:30:00', NULL, '17:00:00', '23:30:00', '2021-04-29 15:06:52', '2021-06-13 11:53:20', NULL), (25, 'SF-P', 'Pagi', '07:00:00', '17:00:00', '06:00:00', '07:30:00', NULL, '17:00:00', '23:59:00', '2021-06-13 11:44:33', '2021-06-13 11:53:09', NULL); -- -------------------------------------------------------- -- -- Table structure for table `shift_cluster` -- CREATE TABLE `shift_cluster` ( `id` int(10) NOT NULL, `cluster_code` varchar(200) DEFAULT NULL, `cluster_name` varchar(200) DEFAULT NULL, `cluster_applies` date DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `shift_cluster` -- INSERT INTO `shift_cluster` (`id`, `cluster_code`, `cluster_name`, `cluster_applies`, `created_at`, `updated_at`, `deleted_at`) VALUES (23, 'CL-S1', 'Satpam', NULL, '2021-06-13 11:54:03', NULL, NULL), (27, 'CL-K1', 'Kebersihan', NULL, '2021-07-18 21:47:57', NULL, NULL), (28, 'CL-A1', 'Admin', NULL, '2021-07-19 01:53:20', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `shift_cluster_rotation` -- CREATE TABLE `shift_cluster_rotation` ( `id` int(10) NOT NULL, `shift_cluster_id` int(10) DEFAULT NULL, `shift_id` int(10) DEFAULT NULL, `num` int(10) DEFAULT NULL, `shift_type` enum('work','free') DEFAULT 'work' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `shift_cluster_rotation` -- INSERT INTO `shift_cluster_rotation` (`id`, `shift_cluster_id`, `shift_id`, `num`, `shift_type`) VALUES (44, NULL, NULL, 6, 'free'), (45, NULL, NULL, 7, 'free'), (214, 23, 25, 1, 'work'), (215, 23, 25, 2, 'work'), (216, 23, 16, 3, 'work'), (217, 23, 16, 4, 'work'), (221, 27, 25, 1, 'work'), (222, 27, 25, 2, 'work'), (223, 27, 25, 3, 'work'), (224, 27, 25, 4, 'work'), (225, 27, 25, 5, 'work'), (226, 27, 25, 6, 'work'), (227, 27, 25, 7, 'work'), (228, 28, 25, 1, 'work'), (229, 28, 25, 2, 'work'), (230, 28, 25, 3, 'work'), (231, 28, 25, 4, 'work'), (232, 28, 25, 5, 'work'), (233, 28, NULL, 6, 'free'), (234, 28, NULL, 7, 'free'); -- -------------------------------------------------------- -- -- Table structure for table `tagihan` -- CREATE TABLE `tagihan` ( `id_tagihan` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `tanggal` date NOT NULL, `total` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `status` enum('Lunas','Belum Lunas','failed') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tagihan` -- INSERT INTO `tagihan` (`id_tagihan`, `tanggal`, `total`, `status`) VALUES ('210625267901', '2021-06-25', '75000', 'Belum Lunas'), ('210625267902', '2021-06-25', '75000', 'Belum Lunas'), ('210625267903', '2021-06-26', '25000', 'Lunas'), ('210626267904', '2021-06-26', '25000', 'Belum Lunas'), ('210626267905', '2021-06-26', '75000', 'Lunas'), ('210626267906', '2021-07-02', '75000', 'Lunas'), ('210702267907', '2021-07-02', '25000', 'Lunas'), ('210702267908', '2021-07-02', '25000', 'Lunas'), ('210702267909', '2021-07-02', '25000', 'Lunas'), ('210702267910', '2021-07-02', '25000', 'Belum Lunas'), ('210702267911', '2021-07-15', '75000', 'Belum Lunas'), ('210715267912', '2021-07-19', '75000', 'Belum Lunas'), ('210719267913', '2021-08-04', '25000', 'Lunas'), ('210804267914', '2021-08-08', '15000', 'Lunas'), ('210808267915', '2021-08-08', '15000', 'Lunas'), ('210808267916', '2021-08-14', '15000', 'Lunas'), ('210814267917', '2021-08-14', '15000', 'Belum Lunas'), ('210814267918', '2021-08-14', '15000', 'Lunas'), ('210814267919', '2021-08-14', '15000', 'Belum Lunas'), ('210814267920', '2021-08-14', '15000', 'Lunas'), ('210814267921', '2021-08-14', '15000', 'Belum Lunas'), ('210814267922', '2021-08-15', '15000', 'Lunas'), ('210815267923', '2021-08-16', '15000', 'Lunas'), ('210816267924', '2021-08-16', '15000', 'Lunas'), ('210816267925', '2021-08-16', '15000', 'Lunas'), ('210816267926', '0000-00-00', '0', 'failed'); -- -------------------------------------------------------- -- -- Table structure for table `tagihan_detail` -- CREATE TABLE `tagihan_detail` ( `tagihan_detail_id` int(11) NOT NULL, `id_tagihan` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL, `id_penghuni` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `id_warga` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `id_iuran` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `untuk_bulan` varchar(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `untuk_tahun` varchar(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `subtotal` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `tagihan_detail` -- INSERT INTO `tagihan_detail` (`tagihan_detail_id`, `id_tagihan`, `id_penghuni`, `id_warga`, `id_iuran`, `untuk_bulan`, `untuk_tahun`, `subtotal`) VALUES (1, '210625267901', 'PH-001', '', 'IB-001', NULL, NULL, '75000'), (2, '210625267902', 'PH-002', '', 'IB-001', NULL, NULL, '75000'), (3, '210625267903', 'PH-002', '', 'IB-002', NULL, NULL, '25000'), (4, '210626267904', 'PH-002', '', 'IB-002', NULL, NULL, '25000'), (5, '210626267905', 'PH-003', '', 'IB-001', NULL, NULL, '75000'), (6, '210626267906', 'PH-001', '', 'IB-001', NULL, NULL, '75000'), (7, '210702267907', 'PH-003', '', 'IB-002', NULL, NULL, '25000'), (8, '210702267908', 'PH-002', '', 'IB-002', NULL, NULL, '25000'), (9, '210702267909', 'PH-002', '', 'IB-002', NULL, NULL, '25000'), (10, '210702267910', 'PH-002', '', 'IB-002', NULL, NULL, '25000'), (11, '210702267911', 'PH-001', '', 'IB-001', NULL, NULL, '75000'), (12, '210715267912', 'PH-003', '', 'IB-001', NULL, NULL, '75000'), (14, '210719267913', 'PH-001', '', 'IB-002', NULL, NULL, '25000'), (16, '210804267914', 'PH-001', '', 'IB-001', NULL, NULL, '15000'), (17, '210808267915', 'PH-002', '', 'IB-001', NULL, NULL, '15000'), (19, '210808267916', 'PH-001', '', 'IB-001', NULL, NULL, '15000'), (20, '210814267917', 'PH-003', '', 'IB-001', NULL, NULL, '15000'), (21, '210814267918', 'PH-004', '', 'IB-001', NULL, NULL, '15000'), (22, '210814267919', 'PH-002', '', 'IB-001', NULL, NULL, '15000'), (24, '210814267920', 'PH-001', 'WRG-006', 'IB-001', NULL, NULL, '15000'), (25, '210814267921', 'PH-002', 'WRG-001', 'IB-001', NULL, NULL, '15000'), (26, '210814267922', 'PH-001', 'WRG-006', 'IB-001', '08', '2021', '15000'), (27, '210815267923', 'PH-002', 'WRG-001', 'IB-001', '08', '2021', '15000'), (28, '210816267924', 'PH-002', 'WRG-001', 'IB-001', '07', '2021', '15000'), (29, '210816267925', 'PH-003', 'WRG-007', 'IB-001', '08', '2021', '15000'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) UNSIGNED NOT NULL, `position_id` int(11) DEFAULT NULL, `ip_address` varchar(45) NOT NULL, `username` varchar(100) DEFAULT NULL, `password` varchar(255) NOT NULL, `email` varchar(254) NOT NULL, `activation_selector` varchar(255) DEFAULT NULL, `activation_code` varchar(255) DEFAULT NULL, `forgotten_password_selector` varchar(255) DEFAULT NULL, `forgotten_password_code` varchar(255) DEFAULT NULL, `forgotten_password_time` int(11) UNSIGNED DEFAULT NULL, `remember_selector` varchar(255) DEFAULT NULL, `remember_code` varchar(255) DEFAULT NULL, `created_time` datetime DEFAULT NULL, `created_on` int(11) UNSIGNED NOT NULL, `last_login_time` datetime DEFAULT NULL, `last_login` int(11) UNSIGNED DEFAULT NULL, `active` tinyint(1) UNSIGNED DEFAULT NULL, `contract_number` varchar(200) DEFAULT NULL, `nik` varchar(200) DEFAULT NULL, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `join_date` date DEFAULT NULL, `employee_code` varchar(200) DEFAULT NULL, `phone` varchar(20) DEFAULT NULL, `salary` int(100) DEFAULT NULL, `salary_minimum` int(100) DEFAULT 0, `photo` varchar(100) DEFAULT 'default_photo.jpg', `employee_address` varchar(200) DEFAULT NULL, `file_cv` varchar(200) DEFAULT NULL, `bio` varchar(250) DEFAULT NULL, `last_status` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `position_id`, `ip_address`, `username`, `password`, `email`, `activation_selector`, `activation_code`, `forgotten_password_selector`, `forgotten_password_code`, `forgotten_password_time`, `remember_selector`, `remember_code`, `created_time`, `created_on`, `last_login_time`, `last_login`, `active`, `contract_number`, `nik`, `first_name`, `last_name`, `join_date`, `employee_code`, `phone`, `salary`, `salary_minimum`, `photo`, `employee_address`, `file_cv`, `bio`, `last_status`) VALUES (147, 41, '', 'bella', '$2y$10$DrYKT.ZwPhyEFGGFPY4xJ.AfZfyG5QOHI4SZ7e0hLP7dxq2pX11/K', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2020-08-11 08:49:22', 1597110562, '2021-07-29 13:31:56', 1627540316, 1, '232332', '1234567', 'Bella', NULL, '2021-07-05', 'KAR-0002', '081233972877', 50000, 0, 'default_photo.jpg', 'Cigado Regency', NULL, NULL, NULL), (148, 43, '127.0.0.1', 'doni', '$2y$10$nPMXfnUC5PLRP1BG5BiWZ.BIYG2N13QbDzquy1/cdA3kWfNAZf31q', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-05-15 18:54:12', 1621079652, '2021-07-19 19:32:07', 1626697927, 1, '123456789', '123456', 'Doni', NULL, '2021-05-15', 'KAR-0001', '083181826488', 100000, 0, 'default_photo.jpg', 'Baleendah', NULL, NULL, '2021-05-15 18:58:58'), (155, 47, '::1', 'dadang', '$2y$10$1mvwFkXcB57wVQ/5CgSBx..iup6M.8tqvOd8bBen49kLjeWFg6RIe', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-07-18 21:38:07', 1626619087, '2021-07-26 13:29:34', 1627280974, 1, '123456', '1234568765', 'Dadang', NULL, '2021-06-17', 'KAR-0003', '085315922225', 50000, 0, 'default_photo.jpg', 'Cigado Regency', NULL, NULL, NULL), (156, 47, '::1', 'andi', '$2y$10$7xoIpIsbh77Ct/AeYcQWx.U3pQhvrEIBMLoelmQcHALyTJrTkmr5y', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-07-26 15:04:35', 1627286675, NULL, NULL, 1, '1532455', '3219873449223', 'Andi', NULL, '2021-07-26', 'KAR-0004', '082132663344', 100000, 0, 'default_photo.jpg', 'Cigado Regency', NULL, NULL, NULL), (159, 47, '::1', 'dina', '$2y$10$XV2su.qQ84ar9XSWJNBkEe154WRZEFDql1xplrfHGIwrYbAY0zoYi', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-08-06 09:40:20', 1628217620, NULL, NULL, 1, '1234567', '1234567890123433', 'Dina', NULL, '2021-08-06', 'KAR-0006', '082118098907', 150000, 0, 'user_07540_1628234817.jpg', 'GBA 3 Blok A4 No 17', NULL, NULL, '2021-08-06 10:51:51'), (161, 43, '127.0.0.1', 'dede', '$2y$10$F/NSqhEi0w3lDCEWoJeba.N7UO0PIkfa8DflvMws81i6yIFXlA2fm', '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-08-06 14:38:52', 1628235532, NULL, NULL, 1, '456456', '4563657657365765', 'Dede', NULL, '2021-08-06', 'KAR-0007', '082118098905', 70000, 0, 'user_08709_1628235532.jpg', 'GBA 3 Blok A6 No 17', NULL, NULL, '2021-08-09 22:31:48'); -- -------------------------------------------------------- -- -- Table structure for table `users_groups` -- CREATE TABLE `users_groups` ( `id` int(11) UNSIGNED NOT NULL, `user_id` int(11) UNSIGNED NOT NULL, `group_id` mediumint(8) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users_groups` -- INSERT INTO `users_groups` (`id`, `user_id`, `group_id`) VALUES (286, 147, 1), (281, 148, 2), (289, 155, 2), (287, 156, 2), (299, 159, 2), (302, 161, 2); -- -------------------------------------------------------- -- -- Table structure for table `users_kas` -- CREATE TABLE `users_kas` ( `user_id` varchar(11) NOT NULL, `name` varchar(30) NOT NULL, `username` varchar(100) NOT NULL, `password` varchar(255) NOT NULL, `user_privileges` varchar(11) NOT NULL, `user_status` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users_kas` -- INSERT INTO `users_kas` (`user_id`, `name`, `username`, `password`, `user_privileges`, `user_status`) VALUES ('USER01', 'Admin', 'admin', <PASSWORD>', 'admin', 1), ('USER02', 'Pak RT', 'rt', <PASSWORD>', 'RT', 1), ('USER03', 'Bendahara', 'bendahara', <PASSWORD>', 'b<PASSWORD>ara', 1), ('USER04', 'Warga', 'warga', '$2y$10$JqpvdqZ8zFJdCxJqeL8OxukZX7aR.z2FYt/H8qYm1lbBK6HLAj9Na', 'warga', 1); -- -------------------------------------------------------- -- -- Table structure for table `users_shift_additional` -- CREATE TABLE `users_shift_additional` ( `id` int(10) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `shift_id` int(11) DEFAULT NULL, `additional_date` date DEFAULT NULL, `additional_type` enum('free','work') DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users_shift_additional` -- INSERT INTO `users_shift_additional` (`id`, `user_id`, `shift_id`, `additional_date`, `additional_type`, `created_at`, `updated_at`, `deleted_at`) VALUES (1283, 148, 16, '2021-06-20', 'work', '2021-06-13 12:00:20', NULL, NULL), (1284, 147, 25, '2021-06-18', 'work', '2021-06-13 12:00:26', NULL, NULL), (1286, 147, 25, '2021-06-21', 'work', '2021-06-13 12:01:23', NULL, NULL), (1288, 147, NULL, '2021-07-20', 'free', '2021-06-13 12:10:10', NULL, NULL), (1289, 148, 25, '2021-07-20', 'work', '2021-06-13 12:10:15', NULL, NULL), (1294, 147, 16, '2021-07-08', 'work', '2021-07-30 21:46:52', NULL, NULL), (1295, 147, 16, '2021-07-09', 'work', '2021-07-30 21:47:00', NULL, NULL), (1296, 147, 16, '2021-07-07', 'work', '2021-07-30 21:47:22', NULL, NULL), (1298, 147, 16, '2021-07-06', 'work', '2021-07-30 21:47:37', NULL, NULL), (1300, 159, 25, '2021-08-06', 'work', '2021-08-06 10:54:30', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `users_shift_cluster` -- CREATE TABLE `users_shift_cluster` ( `id` int(10) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `shift_cluster_id` int(10) DEFAULT NULL, `shift_applies` date DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `users_shift_cluster` -- INSERT INTO `users_shift_cluster` (`id`, `user_id`, `shift_cluster_id`, `shift_applies`, `created_at`, `updated_at`, `deleted_at`) VALUES (76, 147, 28, '2021-07-05', '2021-07-19 20:44:48', NULL, NULL), (77, 155, 27, '2021-07-05', '2021-07-23 22:34:25', NULL, NULL), (89, 156, 23, '2021-08-06', '2021-08-06 13:19:11', NULL, NULL), (90, 148, 23, '2021-08-06', '2021-08-06 13:19:50', NULL, NULL), (91, 159, 23, '2021-08-05', '2021-08-06 14:27:13', NULL, NULL), (94, 161, 23, '2021-08-06', '2021-08-09 22:32:31', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `warga` -- CREATE TABLE `warga` ( `id_warga` varchar(10) NOT NULL, `nama_warga` varchar(25) NOT NULL, `tempat_lahir` varchar(50) NOT NULL, `tgl_lahir` date NOT NULL, `jenis_kelamin` varchar(10) NOT NULL, `agama` varchar(20) DEFAULT NULL, `pendidikan` varchar(50) DEFAULT NULL, `pekerjaan` varchar(50) DEFAULT NULL, `status_perkawinan` varchar(15) DEFAULT NULL, `no_telp` varchar(12) NOT NULL, `no_kk` varchar(15) NOT NULL, `no_ktp` varchar(15) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `warga` -- INSERT INTO `warga` (`id_warga`, `nama_warga`, `tempat_lahir`, `tgl_lahir`, `jenis_kelamin`, `agama`, `pendidikan`, `pekerjaan`, `status_perkawinan`, `no_telp`, `no_kk`, `no_ktp`) VALUES ('DW-005', 'Duma', 'Bandung', '1979-09-25', 'Perempuan', 'Buddha', 'Diploma III', 'PNS', 'Kawin', '123123123', '12312312344', '12312312345'), ('DW-004', 'Bayu', 'Mataram', '1985-02-06', 'Laki-laki', 'Islam', 'Diploma IV/Strata 1', 'PNS', 'Kawin', '085397266242', '520302987456321', '520302020685000'), ('DW-003', 'Rahmat', 'Bogor', '1988-11-11', 'Laki-laki', 'Islam', 'SMA/SMK', 'Wiraswasta', 'Kawin', '085353100318', '730705030202002', '520302111188000'), ('DW-002', 'Haris', 'Garut', '1968-12-17', 'Laki-laki', 'Islam', 'Strata 2', 'PNS', 'Kawin', '085340719400', '520302987456001', '520302171268000'), ('DW-001', 'Andre', 'Bandung', '1990-12-22', 'Laki-laki', 'Islam', 'Diploma IV/Strata 1', 'PNS', 'Kawin', '082311708849', '327511010607020', '520302260799011'); -- -- Indexes for dumped tables -- -- -- Indexes for table `bs_beban` -- ALTER TABLE `bs_beban` ADD PRIMARY KEY (`id_beban`); -- -- Indexes for table `bs_detail_sampah` -- ALTER TABLE `bs_detail_sampah` ADD PRIMARY KEY (`id_detail_sampah`), ADD KEY `kategori_sampah` (`kategori_sampah`); -- -- Indexes for table `bs_gaji` -- ALTER TABLE `bs_gaji` ADD PRIMARY KEY (`id_gaji`), ADD KEY `id_pegawai` (`id_pegawai`); -- -- Indexes for table `bs_kehadiran` -- ALTER TABLE `bs_kehadiran` ADD PRIMARY KEY (`id_kehadiran`); -- -- Indexes for table `bs_nasabah` -- ALTER TABLE `bs_nasabah` ADD PRIMARY KEY (`id_nasabah`); -- -- Indexes for table `bs_pegawai` -- ALTER TABLE `bs_pegawai` ADD PRIMARY KEY (`id_pegawai`); -- -- Indexes for table `bs_penarikan` -- ALTER TABLE `bs_penarikan` ADD PRIMARY KEY (`id_penarikan`), ADD KEY `id_nasabah` (`id_nasabah`), ADD KEY `id_warga` (`id_warga`), ADD KEY `bs_penarikan_ibfk_3` (`kode_anggota`), ADD KEY `id_voucher` (`id_voucher`); -- -- Indexes for table `bs_pengeluaran` -- ALTER TABLE `bs_pengeluaran` ADD PRIMARY KEY (`id_pengeluaran`), ADD KEY `id_beban` (`id_beban`); -- -- Indexes for table `bs_penjualan` -- ALTER TABLE `bs_penjualan` ADD PRIMARY KEY (`id_penjualan`), ADD KEY `id_penyetoran` (`id_penyetoran`), ADD KEY `id_customer` (`id_perusahaan`); -- -- Indexes for table `bs_penyetoran` -- ALTER TABLE `bs_penyetoran` ADD PRIMARY KEY (`id_penyetoran`), ADD KEY `Id_nasabah` (`id_nasabah`), ADD KEY `id_sampah` (`id_sampah`), ADD KEY `id_detail_sampah` (`id_detail_sampah`), ADD KEY `bs_penyetoran_ibfk_4` (`id_warga`); -- -- Indexes for table `bs_perusahaan` -- ALTER TABLE `bs_perusahaan` ADD PRIMARY KEY (`id_perusahaan`); -- -- Indexes for table `bs_sampah` -- ALTER TABLE `bs_sampah` ADD PRIMARY KEY (`id_sampah`), ADD UNIQUE KEY `kategori_sampah` (`kategori_sampah`); -- -- Indexes for table `bs_tabungan` -- ALTER TABLE `bs_tabungan` ADD PRIMARY KEY (`id_tabungan`), ADD KEY `id_nasabah` (`id_nasabah`), ADD KEY `id_warga` (`id_warga`); -- -- Indexes for table `bs_voucher` -- ALTER TABLE `bs_voucher` ADD PRIMARY KEY (`id_voucher`), ADD KEY `kode_anggota` (`kode_anggota`); -- -- Indexes for table `groups` -- ALTER TABLE `groups` ADD PRIMARY KEY (`id`); -- -- Indexes for table `iuran_rutin` -- ALTER TABLE `iuran_rutin` ADD PRIMARY KEY (`id_iuran`); -- -- Indexes for table `kop_anggota` -- ALTER TABLE `kop_anggota` ADD PRIMARY KEY (`id`), ADD KEY `kode_anggota` (`kode_anggota`); -- -- Indexes for table `kop_anggota_point` -- ALTER TABLE `kop_anggota_point` ADD PRIMARY KEY (`id`), ADD KEY `anggota_id` (`anggota_id`); -- -- Indexes for table `kop_beban` -- ALTER TABLE `kop_beban` ADD PRIMARY KEY (`id`), ADD KEY `coa_id` (`coa_id`); -- -- Indexes for table `kop_kategori` -- ALTER TABLE `kop_kategori` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kop_pembelian` -- ALTER TABLE `kop_pembelian` ADD PRIMARY KEY (`id`), ADD KEY `distributor_id` (`vendor_id`); -- -- Indexes for table `kop_pembelian_detail` -- ALTER TABLE `kop_pembelian_detail` ADD PRIMARY KEY (`id`), ADD KEY `pembelian_id` (`pembelian_id`), ADD KEY `produk_id` (`produk_id`); -- -- Indexes for table `kop_pembelian_pembayaran` -- ALTER TABLE `kop_pembelian_pembayaran` ADD PRIMARY KEY (`id`), ADD KEY `pembelian_id` (`pembelian_id`); -- -- Indexes for table `kop_pengeluaran` -- ALTER TABLE `kop_pengeluaran` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kop_pengeluaran_detail` -- ALTER TABLE `kop_pengeluaran_detail` ADD PRIMARY KEY (`id`), ADD KEY `transaksi_beban_id` (`pengeluaran_id`), ADD KEY `beban_id` (`beban_id`); -- -- Indexes for table `kop_penitipan` -- ALTER TABLE `kop_penitipan` ADD PRIMARY KEY (`id`), ADD KEY `anggota_id` (`anggota_id`); -- -- Indexes for table `kop_penitipan_detail` -- ALTER TABLE `kop_penitipan_detail` ADD PRIMARY KEY (`id`), ADD KEY `penitipan_id` (`penitipan_id`), ADD KEY `produk_id` (`produk_id`); -- -- Indexes for table `kop_penjualan` -- ALTER TABLE `kop_penjualan` ADD PRIMARY KEY (`id`), ADD KEY `anggota_id` (`anggota_id`); -- -- Indexes for table `kop_penjualan_detail` -- ALTER TABLE `kop_penjualan_detail` ADD PRIMARY KEY (`id`), ADD KEY `produk_id` (`produk_id`), ADD KEY `penjualan_id` (`penjualan_id`); -- -- Indexes for table `kop_penjualan_pembayaran` -- ALTER TABLE `kop_penjualan_pembayaran` ADD PRIMARY KEY (`id`), ADD KEY `penjualan_id` (`penjualan_id`); -- -- Indexes for table `kop_produk` -- ALTER TABLE `kop_produk` ADD PRIMARY KEY (`id`), ADD KEY `kategori_id` (`kategori_id`); -- -- Indexes for table `kop_produk_stok` -- ALTER TABLE `kop_produk_stok` ADD PRIMARY KEY (`id`), ADD KEY `produk_id` (`produk_id`); -- -- Indexes for table `kop_simpanan` -- ALTER TABLE `kop_simpanan` ADD KEY `anggota_id` (`anggota_id`); -- -- Indexes for table `kop_vendor` -- ALTER TABLE `kop_vendor` ADD PRIMARY KEY (`id`); -- -- Indexes for table `login_attempts` -- ALTER TABLE `login_attempts` ADD PRIMARY KEY (`id`); -- -- Indexes for table `master_coa` -- ALTER TABLE `master_coa` ADD PRIMARY KEY (`id`); -- -- Indexes for table `master_jurnal` -- ALTER TABLE `master_jurnal` ADD PRIMARY KEY (`id`), ADD KEY `coa_id` (`coa_id`); -- -- Indexes for table `master_user` -- ALTER TABLE `master_user` ADD PRIMARY KEY (`id`); -- -- Indexes for table `master_warga` -- ALTER TABLE `master_warga` ADD PRIMARY KEY (`id_warga`), ADD KEY `no_ktp` (`no_ktp`); -- -- Indexes for table `master_warga_keluarga` -- ALTER TABLE `master_warga_keluarga` ADD PRIMARY KEY (`id`); -- -- Indexes for table `overtime` -- ALTER TABLE `overtime` ADD PRIMARY KEY (`id`), ADD KEY `user_id` (`user_id`); -- -- Indexes for table `payroll` -- ALTER TABLE `payroll` ADD PRIMARY KEY (`id`); -- -- Indexes for table `payroll_detail` -- ALTER TABLE `payroll_detail` ADD PRIMARY KEY (`id`), ADD KEY `payroll_id` (`payroll_id`), ADD KEY `user_id` (`user_id`); -- -- Indexes for table `pemilik_rumah` -- ALTER TABLE `pemilik_rumah` ADD PRIMARY KEY (`no_ktp`) USING BTREE; -- -- Indexes for table `penghuni_rumah` -- ALTER TABLE `penghuni_rumah` ADD PRIMARY KEY (`id_penghuni`), ADD KEY `fk_penghuni_rumah` (`id_rumah`), ADD KEY `fk_penghuni_warga` (`no_ktp`); -- -- Indexes for table `pmbayaran1` -- ALTER TABLE `pmbayaran1` ADD PRIMARY KEY (`order_id`); -- -- Indexes for table `position` -- ALTER TABLE `position` ADD PRIMARY KEY (`id`); -- -- Indexes for table `presence` -- ALTER TABLE `presence` ADD PRIMARY KEY (`id`), ADD KEY `users_id` (`user_id`); -- -- Indexes for table `rfid_akses` -- ALTER TABLE `rfid_akses` ADD PRIMARY KEY (`id`), ADD KEY `rfid_id` (`rfid_id`), ADD KEY `tamu_id` (`tamu_id`); -- -- Indexes for table `rfid_dummy_status` -- ALTER TABLE `rfid_dummy_status` ADD PRIMARY KEY (`id_tagihan`), ADD KEY `id_warga` (`id_warga`); -- -- Indexes for table `rfid_jurnal` -- ALTER TABLE `rfid_jurnal` ADD PRIMARY KEY (`id`), ADD KEY `coa_id` (`coa_id`); -- -- Indexes for table `rfid_rfid` -- ALTER TABLE `rfid_rfid` ADD PRIMARY KEY (`id`), ADD KEY `rfid_buy_id` (`rfid_buy_id`); -- -- Indexes for table `rfid_rfid_buy` -- ALTER TABLE `rfid_rfid_buy` ADD PRIMARY KEY (`id`); -- -- Indexes for table `rfid_rfid_user` -- ALTER TABLE `rfid_rfid_user` ADD PRIMARY KEY (`id`), ADD KEY `rfid_id` (`rfid_id`), ADD KEY `rfid_rfid_user_ibfk_2` (`user_id`); -- -- Indexes for table `rfid_tamu` -- ALTER TABLE `rfid_tamu` ADD PRIMARY KEY (`id`), ADD KEY `rfid_id` (`rfid_id`); -- -- Indexes for table `rfid_user` -- ALTER TABLE `rfid_user` ADD PRIMARY KEY (`id`); -- -- Indexes for table `rumah_warga1` -- ALTER TABLE `rumah_warga1` ADD PRIMARY KEY (`id_rumah`), ADD KEY `no_ktp` (`no_ktp`); -- -- Indexes for table `shift` -- ALTER TABLE `shift` ADD PRIMARY KEY (`id`); -- -- Indexes for table `shift_cluster` -- ALTER TABLE `shift_cluster` ADD PRIMARY KEY (`id`); -- -- Indexes for table `shift_cluster_rotation` -- ALTER TABLE `shift_cluster_rotation` ADD PRIMARY KEY (`id`), ADD KEY `shift_cluster_id` (`shift_cluster_id`), ADD KEY `shift_id` (`shift_id`); -- -- Indexes for table `tagihan` -- ALTER TABLE `tagihan` ADD PRIMARY KEY (`id_tagihan`); -- -- Indexes for table `tagihan_detail` -- ALTER TABLE `tagihan_detail` ADD PRIMARY KEY (`tagihan_detail_id`), ADD KEY `fk_tagihan` (`id_tagihan`), ADD KEY `fk_tagihan_3` (`id_penghuni`), ADD KEY `fk_tagihan_1` (`id_iuran`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `uc_email` (`email`), ADD UNIQUE KEY `uc_activation_selector` (`activation_selector`), ADD UNIQUE KEY `uc_forgotten_password_selector` (`forgotten_password_selector`), ADD UNIQUE KEY `uc_remember_selector` (`remember_selector`), ADD KEY `position_id` (`position_id`); -- -- Indexes for table `users_groups` -- ALTER TABLE `users_groups` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `uc_users_groups` (`user_id`,`group_id`), ADD KEY `fk_users_groups_users1_idx` (`user_id`), ADD KEY `fk_users_groups_groups1_idx` (`group_id`); -- -- Indexes for table `users_kas` -- ALTER TABLE `users_kas` ADD PRIMARY KEY (`user_id`); -- -- Indexes for table `users_shift_additional` -- ALTER TABLE `users_shift_additional` ADD PRIMARY KEY (`id`), ADD KEY `user_id` (`user_id`), ADD KEY `shift_id` (`shift_id`); -- -- Indexes for table `users_shift_cluster` -- ALTER TABLE `users_shift_cluster` ADD PRIMARY KEY (`id`), ADD KEY `user_id` (`user_id`), ADD KEY `shift_cluster_id` (`shift_cluster_id`); -- -- Indexes for table `warga` -- ALTER TABLE `warga` ADD PRIMARY KEY (`no_ktp`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `groups` -- ALTER TABLE `groups` MODIFY `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `kop_anggota` -- ALTER TABLE `kop_anggota` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `kop_anggota_point` -- ALTER TABLE `kop_anggota_point` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `kop_beban` -- ALTER TABLE `kop_beban` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `kop_kategori` -- ALTER TABLE `kop_kategori` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `kop_pembelian` -- ALTER TABLE `kop_pembelian` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `kop_pembelian_detail` -- ALTER TABLE `kop_pembelian_detail` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `kop_pembelian_pembayaran` -- ALTER TABLE `kop_pembelian_pembayaran` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `kop_pengeluaran` -- ALTER TABLE `kop_pengeluaran` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `kop_pengeluaran_detail` -- ALTER TABLE `kop_pengeluaran_detail` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `kop_penitipan` -- ALTER TABLE `kop_penitipan` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `kop_penitipan_detail` -- ALTER TABLE `kop_penitipan_detail` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `kop_penjualan` -- ALTER TABLE `kop_penjualan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `kop_penjualan_detail` -- ALTER TABLE `kop_penjualan_detail` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `kop_penjualan_pembayaran` -- ALTER TABLE `kop_penjualan_pembayaran` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `kop_produk` -- ALTER TABLE `kop_produk` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `kop_produk_stok` -- ALTER TABLE `kop_produk_stok` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `kop_vendor` -- ALTER TABLE `kop_vendor` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `login_attempts` -- ALTER TABLE `login_attempts` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=239; -- -- AUTO_INCREMENT for table `master_coa` -- ALTER TABLE `master_coa` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; -- -- AUTO_INCREMENT for table `master_jurnal` -- ALTER TABLE `master_jurnal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=195; -- -- AUTO_INCREMENT for table `master_user` -- ALTER TABLE `master_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `master_warga_keluarga` -- ALTER TABLE `master_warga_keluarga` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24; -- -- AUTO_INCREMENT for table `overtime` -- ALTER TABLE `overtime` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `payroll` -- ALTER TABLE `payroll` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `payroll_detail` -- ALTER TABLE `payroll_detail` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=68; -- -- AUTO_INCREMENT for table `position` -- ALTER TABLE `position` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `presence` -- ALTER TABLE `presence` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1389; -- -- AUTO_INCREMENT for table `rfid_akses` -- ALTER TABLE `rfid_akses` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `rfid_dummy_status` -- ALTER TABLE `rfid_dummy_status` MODIFY `id_tagihan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `rfid_jurnal` -- ALTER TABLE `rfid_jurnal` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `rfid_rfid` -- ALTER TABLE `rfid_rfid` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `rfid_rfid_buy` -- ALTER TABLE `rfid_rfid_buy` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `rfid_rfid_user` -- ALTER TABLE `rfid_rfid_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT for table `rfid_tamu` -- ALTER TABLE `rfid_tamu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `rfid_user` -- ALTER TABLE `rfid_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `shift` -- ALTER TABLE `shift` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34; -- -- AUTO_INCREMENT for table `shift_cluster` -- ALTER TABLE `shift_cluster` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31; -- -- AUTO_INCREMENT for table `shift_cluster_rotation` -- ALTER TABLE `shift_cluster_rotation` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=254; -- -- AUTO_INCREMENT for table `tagihan_detail` -- ALTER TABLE `tagihan_detail` MODIFY `tagihan_detail_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=162; -- -- AUTO_INCREMENT for table `users_groups` -- ALTER TABLE `users_groups` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=303; -- -- AUTO_INCREMENT for table `users_shift_additional` -- ALTER TABLE `users_shift_additional` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1301; -- -- AUTO_INCREMENT for table `users_shift_cluster` -- ALTER TABLE `users_shift_cluster` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=95; -- -- Constraints for dumped tables -- -- -- Constraints for table `bs_detail_sampah` -- ALTER TABLE `bs_detail_sampah` ADD CONSTRAINT `bs_detail_sampah_ibfk_1` FOREIGN KEY (`kategori_sampah`) REFERENCES `bs_sampah` (`kategori_sampah`) ON UPDATE CASCADE; -- -- Constraints for table `bs_gaji` -- ALTER TABLE `bs_gaji` ADD CONSTRAINT `bs_gaji_ibfk_1` FOREIGN KEY (`id_pegawai`) REFERENCES `bs_pegawai` (`id_pegawai`); -- -- Constraints for table `bs_penarikan` -- ALTER TABLE `bs_penarikan` ADD CONSTRAINT `bs_penarikan_ibfk_1` FOREIGN KEY (`id_nasabah`) REFERENCES `bs_nasabah` (`id_nasabah`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penarikan_ibfk_2` FOREIGN KEY (`id_warga`) REFERENCES `master_warga` (`id_warga`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penarikan_ibfk_3` FOREIGN KEY (`kode_anggota`) REFERENCES `kop_anggota` (`kode_anggota`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penarikan_ibfk_4` FOREIGN KEY (`id_voucher`) REFERENCES `bs_voucher` (`id_voucher`); -- -- Constraints for table `bs_pengeluaran` -- ALTER TABLE `bs_pengeluaran` ADD CONSTRAINT `bs_pengeluaran_ibfk_1` FOREIGN KEY (`id_beban`) REFERENCES `bs_beban` (`id_beban`) ON UPDATE CASCADE; -- -- Constraints for table `bs_penjualan` -- ALTER TABLE `bs_penjualan` ADD CONSTRAINT `bs_penjualan_ibfk_1` FOREIGN KEY (`id_penyetoran`) REFERENCES `bs_penyetoran` (`id_penyetoran`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penjualan_ibfk_2` FOREIGN KEY (`id_perusahaan`) REFERENCES `bs_perusahaan` (`id_perusahaan`) ON UPDATE CASCADE; -- -- Constraints for table `bs_penyetoran` -- ALTER TABLE `bs_penyetoran` ADD CONSTRAINT `bs_penyetoran_ibfk_1` FOREIGN KEY (`id_nasabah`) REFERENCES `bs_nasabah` (`id_nasabah`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penyetoran_ibfk_2` FOREIGN KEY (`id_sampah`) REFERENCES `bs_sampah` (`id_sampah`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penyetoran_ibfk_3` FOREIGN KEY (`id_detail_sampah`) REFERENCES `bs_detail_sampah` (`id_detail_sampah`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_penyetoran_ibfk_4` FOREIGN KEY (`id_warga`) REFERENCES `master_warga` (`id_warga`) ON UPDATE CASCADE; -- -- Constraints for table `bs_tabungan` -- ALTER TABLE `bs_tabungan` ADD CONSTRAINT `bs_tabungan_ibfk_1` FOREIGN KEY (`id_nasabah`) REFERENCES `bs_nasabah` (`id_nasabah`) ON UPDATE CASCADE, ADD CONSTRAINT `bs_tabungan_ibfk_2` FOREIGN KEY (`id_warga`) REFERENCES `master_warga` (`id_warga`) ON UPDATE CASCADE; -- -- Constraints for table `bs_voucher` -- ALTER TABLE `bs_voucher` ADD CONSTRAINT `bs_voucher_ibfk_1` FOREIGN KEY (`kode_anggota`) REFERENCES `kop_anggota` (`kode_anggota`) ON UPDATE CASCADE; -- -- Constraints for table `kop_beban` -- ALTER TABLE `kop_beban` ADD CONSTRAINT `kop_beban_ibfk_1` FOREIGN KEY (`coa_id`) REFERENCES `master_coa` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_pembelian` -- ALTER TABLE `kop_pembelian` ADD CONSTRAINT `kop_pembelian_ibfk_1` FOREIGN KEY (`vendor_id`) REFERENCES `kop_vendor` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_pembelian_detail` -- ALTER TABLE `kop_pembelian_detail` ADD CONSTRAINT `kop_pembelian_detail_ibfk_1` FOREIGN KEY (`pembelian_id`) REFERENCES `kop_pembelian` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `kop_pembelian_detail_ibfk_2` FOREIGN KEY (`produk_id`) REFERENCES `kop_produk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_pembelian_pembayaran` -- ALTER TABLE `kop_pembelian_pembayaran` ADD CONSTRAINT `kop_pembelian_pembayaran_ibfk_1` FOREIGN KEY (`pembelian_id`) REFERENCES `kop_pembelian` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_pengeluaran_detail` -- ALTER TABLE `kop_pengeluaran_detail` ADD CONSTRAINT `kop_pengeluaran_detail_ibfk_1` FOREIGN KEY (`pengeluaran_id`) REFERENCES `kop_pengeluaran` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `kop_pengeluaran_detail_ibfk_2` FOREIGN KEY (`beban_id`) REFERENCES `kop_beban` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_penitipan` -- ALTER TABLE `kop_penitipan` ADD CONSTRAINT `kop_penitipan_ibfk_1` FOREIGN KEY (`anggota_id`) REFERENCES `kop_anggota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_penitipan_detail` -- ALTER TABLE `kop_penitipan_detail` ADD CONSTRAINT `kop_penitipan_detail_ibfk_1` FOREIGN KEY (`penitipan_id`) REFERENCES `kop_penitipan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `kop_penitipan_detail_ibfk_2` FOREIGN KEY (`produk_id`) REFERENCES `kop_produk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_penjualan` -- ALTER TABLE `kop_penjualan` ADD CONSTRAINT `kop_penjualan_ibfk_1` FOREIGN KEY (`anggota_id`) REFERENCES `kop_anggota` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `kop_penjualan_detail` -- ALTER TABLE `kop_penjualan_detail` ADD CONSTRAINT `kop_penjualan_detail_ibfk_1` FOREIGN KEY (`produk_id`) REFERENCES `kop_produk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `kop_penjualan_detail_ibfk_2` FOREIGN KEY (`penjualan_id`) REFERENCES `kop_penjualan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_penjualan_pembayaran` -- ALTER TABLE `kop_penjualan_pembayaran` ADD CONSTRAINT `kop_penjualan_pembayaran_ibfk_1` FOREIGN KEY (`penjualan_id`) REFERENCES `kop_penjualan` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_produk` -- ALTER TABLE `kop_produk` ADD CONSTRAINT `kop_produk_ibfk_1` FOREIGN KEY (`kategori_id`) REFERENCES `kop_kategori` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_produk_stok` -- ALTER TABLE `kop_produk_stok` ADD CONSTRAINT `kop_produk_stok_ibfk_1` FOREIGN KEY (`produk_id`) REFERENCES `kop_produk` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `kop_simpanan` -- ALTER TABLE `kop_simpanan` ADD CONSTRAINT `kop_simpanan_ibfk_1` FOREIGN KEY (`anggota_id`) REFERENCES `kop_anggota` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `master_jurnal` -- ALTER TABLE `master_jurnal` ADD CONSTRAINT `master_jurnal_ibfk_1` FOREIGN KEY (`coa_id`) REFERENCES `master_coa` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `overtime` -- ALTER TABLE `overtime` ADD CONSTRAINT `overtime_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `payroll_detail` -- ALTER TABLE `payroll_detail` ADD CONSTRAINT `payroll_detail_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `payroll_detail_ibfk_3` FOREIGN KEY (`payroll_id`) REFERENCES `payroll` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `penghuni_rumah` -- ALTER TABLE `penghuni_rumah` ADD CONSTRAINT `penghuni_rumah_ibfk_1` FOREIGN KEY (`id_rumah`) REFERENCES `rumah_warga1` (`id_rumah`) ON DELETE NO ACTION ON UPDATE CASCADE, ADD CONSTRAINT `penghuni_rumah_ibfk_2` FOREIGN KEY (`no_ktp`) REFERENCES `master_warga` (`no_ktp`) ON DELETE NO ACTION ON UPDATE CASCADE; -- -- Constraints for table `presence` -- ALTER TABLE `presence` ADD CONSTRAINT `presence_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rfid_akses` -- ALTER TABLE `rfid_akses` ADD CONSTRAINT `rfid_akses_ibfk_1` FOREIGN KEY (`rfid_id`) REFERENCES `rfid_rfid` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `rfid_akses_ibfk_2` FOREIGN KEY (`tamu_id`) REFERENCES `rfid_tamu` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rfid_dummy_status` -- ALTER TABLE `rfid_dummy_status` ADD CONSTRAINT `rfid_dummy_status_ibfk_1` FOREIGN KEY (`id_warga`) REFERENCES `master_warga` (`id_warga`) ON UPDATE CASCADE; -- -- Constraints for table `rfid_jurnal` -- ALTER TABLE `rfid_jurnal` ADD CONSTRAINT `rfid_jurnal_ibfk_1` FOREIGN KEY (`coa_id`) REFERENCES `master_coa` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rfid_rfid` -- ALTER TABLE `rfid_rfid` ADD CONSTRAINT `rfid_rfid_ibfk_1` FOREIGN KEY (`rfid_buy_id`) REFERENCES `rfid_rfid_buy` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rfid_rfid_user` -- ALTER TABLE `rfid_rfid_user` ADD CONSTRAINT `rfid_rfid_user_ibfk_1` FOREIGN KEY (`rfid_id`) REFERENCES `rfid_rfid` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `rfid_rfid_user_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `master_warga` (`id_warga`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rfid_tamu` -- ALTER TABLE `rfid_tamu` ADD CONSTRAINT `rfid_tamu_ibfk_1` FOREIGN KEY (`rfid_id`) REFERENCES `rfid_rfid` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `rumah_warga1` -- ALTER TABLE `rumah_warga1` ADD CONSTRAINT `rumah_warga1_ibfk_1` FOREIGN KEY (`no_ktp`) REFERENCES `pemilik_rumah` (`no_ktp`) ON UPDATE CASCADE; -- -- Constraints for table `shift_cluster_rotation` -- ALTER TABLE `shift_cluster_rotation` ADD CONSTRAINT `shift_cluster_rotation_ibfk_1` FOREIGN KEY (`shift_cluster_id`) REFERENCES `shift_cluster` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `shift_cluster_rotation_ibfk_2` FOREIGN KEY (`shift_id`) REFERENCES `shift` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `tagihan_detail` -- ALTER TABLE `tagihan_detail` ADD CONSTRAINT `fk_tagihan_1` FOREIGN KEY (`id_iuran`) REFERENCES `iuran_rutin` (`id_iuran`), ADD CONSTRAINT `fk_tagihan_3` FOREIGN KEY (`id_penghuni`) REFERENCES `penghuni_rumah` (`id_penghuni`); -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_ibfk_1` FOREIGN KEY (`position_id`) REFERENCES `position` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `users_groups` -- ALTER TABLE `users_groups` ADD CONSTRAINT `fk_users_groups_groups1` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, ADD CONSTRAINT `fk_users_groups_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION; -- -- Constraints for table `users_shift_additional` -- ALTER TABLE `users_shift_additional` ADD CONSTRAINT `users_shift_additional_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `users_shift_additional_ibfk_2` FOREIGN KEY (`shift_id`) REFERENCES `shift` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `users_shift_cluster` -- ALTER TABLE `users_shift_cluster` ADD CONSTRAINT `users_shift_cluster_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `users_shift_cluster_ibfk_2` FOREIGN KEY (`shift_cluster_id`) REFERENCES `shift_cluster` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; 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 */;
SELECT lidesired - lipurchased AS "Items Still Desired" FROM listitems; -- SELECT lidesired, lipurchased, lidesired - lipurchased AS "Items Still Desired" from listitems ORDER BY "Items Still Desired" DESC;
<reponame>Flaviomagalhaest/docker-facerecognition-mysql CREATE DATABASE Example; USE Example; CREATE TABLE Usuario ( id INT AUTO_INCREMENT PRIMARY KEY, nrRegistro INT, nrDocumento INT ); CREATE TABLE DadosComp ( id INT AUTO_INCREMENT PRIMARY KEY, idUsuario INT, autenticacao INT, ); ALTER TABLE DadosComp ADD CONSTRAINT fk_fotos FOREIGN KEY (idUsuario) REFERENCES Usuario(id);
CREATE TABLE IF NOT EXISTS restaurants ( `placeID` INT, `latitude` NUMERIC(9, 7), `longitude` NUMERIC(10, 7), `the_geom_meter` VARCHAR(50) CHARACTER SET utf8, `name` VARCHAR(52) CHARACTER SET utf8, `address` VARCHAR(49) CHARACTER SET utf8, `city` VARCHAR(16) CHARACTER SET utf8, `state` VARCHAR(15) CHARACTER SET utf8, `country` VARCHAR(6) CHARACTER SET utf8, `fax` VARCHAR(1) CHARACTER SET utf8, `zip` VARCHAR(6) CHARACTER SET utf8, `alcohol` VARCHAR(17) CHARACTER SET utf8, `smoking_area` VARCHAR(13) CHARACTER SET utf8, `dress_code` VARCHAR(8) CHARACTER SET utf8, `accessibility` VARCHAR(16) CHARACTER SET utf8, `price` VARCHAR(6) CHARACTER SET utf8, `url` VARCHAR(21) CHARACTER SET utf8, `Rambience` VARCHAR(8) CHARACTER SET utf8, `franchise` VARCHAR(1) CHARACTER SET utf8, `area` VARCHAR(6) CHARACTER SET utf8, `other_services` VARCHAR(8) CHARACTER SET utf8 ); INSERT INTO restaurants VALUES (134999,18.915421,-99.184871,'0101000020957F000088568DE356715AC138C0A525FC464A41','Kiku Cuernavaca','Revolucion','Cuernavaca','Morelos','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','kikucuernavaca.com.mx','familiar','f','closed','none'), (132825,22.1473922,-100.983092,'0101000020957F00001AD016568C4858C1243261274BA54B41','puesto de tacos','esquina santos degollado y <NAME>','s.l.p.','s.l.p.','mexico','?','78280','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','open','none'), (135106,22.1497088,-100.9760928,'0101000020957F0000649D6F21634858C119AE9BF528A34B41','El Rinc�n de San Francisco','Universidad 169','San Luis Potosi','San Luis Potosi','Mexico','?','78000','Wine-Beer','only at bar','informal','partially','medium','?','familiar','f','open','none'), (132667,23.7526973,-99.1633594,'0101000020957F00005D67BCDDED8157C1222A2DC8D84D4941','little pizza Emilio Portes Gil','calle emilio portes gil','victoria ','tamaulipas','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','t','closed','none'), (132613,23.7529035,-99.165076,'0101000020957F00008EBA2D06DC8157C194E03B7B504E4941','carnitas_mata','lic. Emilio portes gil','victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','permitted','informal','completely','medium','?','familiar','t','closed','none'), (135040,22.135617,-100.969709,'0101000020957F00001B552189B84A58C15A2AAEFD2CA24B41','Restaurant los Compadres','<NAME> 155 Centro','San Luis Potosi','SLP','Mexico','?','74000','Wine-Beer','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (132732,23.7543569,-99.171288,'0101000020957F00008A20E615808157C16272FECBF84F4941','Taqueria EL amigo ','Calle Mezquite Fracc Framboyanes','Cd Victoria','Tamaulipas','Mexico','?','87018','No_Alcohol_Served','none','casual','completely','low','?','familiar','f','open','none'), (132875,22.1499013,-100.9937793,'0101000020957F00008A2A0747DE4758C11EB31D2A31A84B41','shi ro ie','?','?','?','?','?','?','Wine-Beer','section','informal','no_accessibility','high','?','familiar','t','open','Internet'), (132609,23.7602683,-99.1658646,'0101000020957F0000A478418BBA8057C133851EB22C4E4941','Pollo_Frito_Buenos_Aires','tampico','victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','low','?','quiet','t','closed','none'), (135082,22.151448,-100.915099,'0101000020957F0000A29FAF95CD4958C1FEEEBB73A9914B41','la Estrella de Dimas','Villa de Pozos 192 Villa de Pozos','San Luis Potosi','SLP','Mexico','?','78421','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135070,22.152918,-100.915164,'0101000020957F0000ED435B84934958C1B3CF85FA97914B41','Restaurante 75','Villa de Pozos 4497 Villa de Pozos','San Luis Potosi','SLP','Mexico','?','78421','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135069,22.140129,-100.944872,'0101000020957F000038E5D546B74A58C18FD29AD0D29A4B41','Abondance Restaurante Bar','Industrias 908 Valle Dorado','San Luis Potosi','SLP','Mexico','?','78399','Wine-Beer','none','informal','no_accessibility','low','?','familiar','f','closed','none'), (135065,22.14958,-100.999557,'0101000020957F000094A6A8E3C14758C17435E6D1DBA94B41','El angel Restaurante','<NAME> 1625 Jardin','San Luis Potosi','SLP','Mexico','?','78250','Wine-Beer','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135076,22.181017,-100.973614,'0101000020957F00005657121FAA4358C1A8030D5598A04B41','<NAME>','Mexico 2015 Providencia','San Luis Potosi','SLP','Mexico','?','78395','Wine-Beer','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (135086,22.141421,-101.013955,'0101000020957F0000FA1A0E5A9B4858C17C884C4173AE4B41','Mcdonalds Parque Tangamanga','Lateral Salvador Nava Martinez 3145','San Luis Potosi','SLP','Mexico','?','78290','No_Alcohol_Served','not permitted','informal','no_accessibility','medium','?','familiar','t','closed','none'), (132870,22.1430781,-100.9354788,'0101000020957F0000550FC1FC854A58C16D7D4E35F8974B41','Tortas y hamburguesas el gordo','<NAME>','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','no_accessibility','low','?','familiar','f','closed','none'), (132854,22.1378633,-100.9383273,'0101000020957F0000FEC3FB453E4B58C19B4A463617994B41','Sirlone','carr. mexico','San Luis Potosi','San Luis Potosi','Mexico','?','?','Wine-Beer','none','informal','completely','medium','?','familiar','f','closed','none'), (132937,22.1500193,-100.9799203,'0101000020957F0000F9F19DDC3B4858C191B265A83BA44B41','rockabilly ','agustin de iturbide','san luis potosi','san luis potosi','mexico','?','?','Full_Bar','section','informal','completely','low','?','quiet','f','closed','variety'), (132856,22.1513782,-100.9746337,'0101000020957F0000C1B7D30B2C4858C1CE557111A5A24B41','Unicols Pizza','Plaza del Carmen','San Luis Potosi','San Luis Potosi','Mexico','?','?','Wine-Beer','none','informal','completely','low','?','familiar','f','closed','none'), (132668,23.738212,-99.1519547,'0101000020957F000003B195E25F8457C1C535BD04614B4941','TACOS EL GUERO','?','victoria','tamaulipas','mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135033,22.14161,-100.973142,'0101000020957F00000F624C60B54958C11757339BCCA24B41','Restaurant El Muladar de Calzada','De Guadalupe 460 San Miguelito','San Luis Potosi','SLP','Mexico','?','78399','No_Alcohol_Served','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132862,22.1506429,-100.9870148,'0101000020957F0000AF95272CF14758C165B2F91238A64B41','La Posada del Virrey','Av. V. Carranza','San Luis Potosi','San Luis Potosi','Mexico','?','?','Wine-Beer','none','casual','completely','high','?','familiar','f','closed','none'), (134983,18.948657,-99.235361,'0101000020957F0000DEF36F4FC76A5AC162B083D9A0544A41','Restaurant and Bar and Clothesline <NAME>','Domingo 10 711 El Empleado','Cuernavaca','Morelos','Mexico','?','62250','Full_Bar','section','informal','no_accessibility','high','carlosandcharlies.com','familiar','f','closed','none'), (132851,22.136872,-100.9345736,'0101000020957F0000C74DE39C7F4B58C1061F291714984B41','KFC','?','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','low','?','familiar','f','closed','none'), (135013,18.917441,-99.165945,'0101000020957F0000D241E94E7B715AC119862B3B1E414A41','Giovannis','40 Norte Civac 1RA. Seccion','Jiutepec','Morelos','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','low','?','familiar','f','closed','none'), (135042,22.159357,-100.973411,'0101000020957F0000C66BB014FC4658C17CFE8D93D2A14B41','Restaurant Oriental Express','Tangamanga 7 Tangamanga','San Luis Potosi','SLP','Mexico','?','78269','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132768,18.9257734,-99.2326355,'0101000020957F000000DD3546816E5AC119D4BD17FD544A41','<NAME>','avenida salvador montiel ','cuernavaca','morelos','mexico','?','62320','No_Alcohol_Served','not permitted','casual','partially','medium','?','familiar','t','closed','none'), (132561,23.726819,-99.1265059,'0101000020957F000004457BB7AA8657C15F10835CD9444941','cafe ambar','?','?','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135045,22.151189,-100.98179,'0101000020957F00000B6735CA004858C108FD525CB2A44B41','Restaurante la Gran Via','Venustiano Carranza 560 Centro','San Luis Potosi','SLP','Mexico','?','78000','Wine-Beer','none','casual','no_accessibility','high','lagranvia.com.mx','familiar','f','closed','none'), (132847,22.1443365,-100.9373825,'0101000020957F00004717A23D474A58C17D1F102970984B41','<NAME>','r.b. anaya esq. florencia','slp','slp','mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','low','?','familiar','f','open','none'), (135054,22.140626,-100.915657,'0101000020957F000011E92CCE714B58C19BF8C0CA75924B41','Restaurante y Pescaderia Tampico','Ricardo B. Anaya 2700 Estrella de Oriente','San Luis Potosi','SLP','Mexico','?','78000S','No_Alcohol_Served','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (134975,18.940828,-99.215426,'0101000020957F000076F426DC856C5AC1CB520721F84E4A41','Rincon del Bife','?','?','?','?','?','?','Full_Bar','section','informal','completely','high','?','familiar','f','closed','variety'), (135053,22.178931,-101.012861,'0101000020957F0000B3C05AB5E54258C180F99573E7AB4B41','La Fontana Pizza Restaurante and Cafe','Satelite 606 Satelite','San Luis Potosi','SLP','Mexico','?','62460','No_Alcohol_Served','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135050,22.174887,-100.970825,'0101000020957F0000FD78FFF7AD4458C1896A33F029A04B41','Restaurante la Estrella de Dima','Soledad Sn Arboledas de Soledad','Soledad','SLP','Mexico','?','78430','Wine-Beer','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (135025,22.14955,-100.97797,'0101000020957F0000C7080D105C4858C108B4006AB4A34B41','El Rincon de San Francisco','1a. de Lozada 1','San Luis Potosi','SLP','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135030,22.14788,-100.989472,'0101000020957F0000C57C76034C4858C10E437A7E15A74B41','Preambulo Wifi Zone Cafe','Anahuac 805','San Luis Potosi','SLP','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','quiet','f','closed','Internet'), (135057,22.145992,-100.955118,'0101000020957F000095669021894958C182C9C10E669D4B41','El Herradero Restaurante and Bar','Costado Sur Central Camionera Km 2','San Luis Potosi','SLP','Mexico','?','78390','Wine-Beer','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135079,22.156376,-100.998355,'0101000020957F00009FF49E27C04658C1BA8689941CA94B41','<NAME>i','<NAME> 450 E Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (134992,18.936683,-99.247366,'0101000020957F0000FC799354656C5AC1233FCC70E7584A41','Restaurant Teely','La Pradera','Cuernavaca','Morelos','Mexico','?','?','Wine-Beer','section','casual','no_accessibility','high','?','familiar','f','closed','none'), (132954,22.1603808,-100.9880447,'0101000020957F0000F78F04596C4658C1C151AA1AEFA54B41','la parroquia','venustiano carranza','san luis potosi','san luis potosi','?','?','?','No_Alcohol_Served','not permitted','informal','partially','medium','?','familiar','t','closed','none'), (135041,22.15106,-100.977659,'0101000020957F0000D2002719234858C1CC7A9FC186A34B41','<NAME>','<NAME>','San Luis Potosi','SLP','Mexico','?','?','Wine-Beer','none','informal','no_accessibility','medium','lunacafe.com.mx','familiar','f','closed','none'), (132608,23.7588052,-99.1651297,'0101000020957F0000A15C8F5FF78057C1C93CEA9E0A4E4941','Hamburguesas La perica','cd. mier','victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','permitted','informal','completely','low','?','quiet','t','open','none'), (135046,22.141282,-101.002958,'0101000020957F000011DFB4E3EE4858C13F78758452AB4B41','Restaurante El Reyecito','Agricultura 595 del Valle','San Luis Potosi','SLP','Mexico','?','78200','No_Alcohol_Served','none','informal','no_accessibility','medium','reyecito.com','familiar','f','closed','none'), (132564,23.7309245,-99.1451848,'0101000020957F0000EA4F00C5A08557C140085474D9494941','churchs','?','?','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132869,22.1412384,-100.9239252,'0101000020957F0000BC62C18D1F4B58C169E0A959C8944B41','<NAME>','<NAME>','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132925,22.1534997,-100.976243,'0101000020957F00001EF62687CD4758C1BE336F4EFAA24B41','el pueblito','?','?','?','?','?','?','Wine-Beer','not permitted','informal','completely','medium','?','familiar','f','closed','none'), (132955,22.147622,-101.0102749,'0101000020957F000068BE7C87C24758C1920A360A08AD4B41','emilianos','venustiano carranza','san luis potos','mexico','?','?','?','Wine-Beer','none','informal','completely','low','?','familiar','t','closed','variety'), (135059,22.145108,-100.989547,'0101000020957F000005810F19B84858C136805B2745A74B41','Restaurant Bar Hacienda los Martinez','Santos Degollado 745 los Alamitos','San Luis Potosi','SLP','Mexico','?','78250','Wine-Beer','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135001,18.941859,-99.241927,'0101000020957F0000429477F3B36B5AC1D65C45CAFA564A41','Vips','Emiliano Zapata No. 825 Tlaltenongo','Cuernavaca','Morelos','Mexico','?','62170','Wine-Beer','none','informal','completely','medium','?','familiar','t','closed','none'), (135063,22.156724,-100.975556,'0101000020957F000054B1A10F544758C15BD6A12797A24B41','Restaurante Alhondiga','Alhondiga 62 Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135080,22.145008,-100.997969,'0101000020957F000033331E4B804858C166643087ADA94B41','los Toneles','Estatuto Juridico 1040 Burocratas','San Luis Potosi','SLP','Mexico','?','78270','No_Alcohol_Served','section','informal','no_accessibility','high','lostoneles.com.mx','familiar','f','closed','none'), (135000,18.870565,-99.226938,'0101000020957F00001CCDD2577A775AC1D25FB8BA1F564A41','Restaurant los Pinos','Federal Mexico - Acapulco 10 3 de Mayo','Cuernavaca','Morelos','Mexico','?','62790','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135066,22.16835,-100.972466,'0101000020957F000013696871A24558C11EE432FB04A14B41','Restaurante Guerra','20 de Noviembre 1817 Tlaxcala','San Luis Potosi','SLP','Mexico','?','78038','Wine-Beer','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135034,22.140517,-101.021422,'0101000020957F000026D92BB4894858C161A7552DA2B04B41','Michiko Restaurant Japones','Cordillera de Los Alpes 160 Lomas 2 Seccion','San Luis Potosi','SLP','Mexico','?','78210','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135060,22.156883,-100.978485,'0101000020957F00004C95C918394758C17A5C44896AA34B41','Restaurante <NAME>','Ignacio Allende 785 Centro','San Luis Potosi','SLP','Mexico','?','78310','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135055,22.148854,-101.008472,'0101000020957F00006610DA0F9F4758C12ED00BA771AC4B41','la Cochinita Pibil Restaurante Yucateco','<NAME> 21<NAME>','San Luis Potosi','SLP','Mexico','?','78270','No_Alcohol_Served','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135108,22.1362534,-100.9335852,'0101000020957F00008FAE40D59E4B58C112C66046D5974B41','Potzocalli','Carretera Central Sn','San Luis Potosi','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135074,22.149689,-100.999525,'0101000020957F0000CDA37BD8BD4758C1F4FBE3D2D7A94B41','Restaurante la Parroquia Potosina','Venustiano Carranza 303 Centro','San Luis Potosi','SLP','Mexico','?','78000','Wine-Beer','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135018,18.859803,-99.222164,'0101000020957F0000C015D38251795AC1D8D396893A554A41','El Oceano Dorado','Libramiento Burgos Colonia Las Animas','Cuernavaca','Morelos','Mexico','?','?','Full_Bar','permitted','informal','completely','medium','eloceanodorado.com','familiar','f','open','variety'), (135064,22.154687,-100.996617,'0101000020957F0000245028A70E4758C18E383571B7A84B41','Restaurante El Chivero S.A. de C.V.','Angel Veral 328 Altamira','San Luis Potosi','SLP','Mexico','?','78740','No_Alcohol_Served','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (135038,22.155651,-100.977767,'0101000020957F0000506149736E4758C1A8BC93DA48A34B41','Restaurant la Chalita','Guajardo Sn San Luis Potosi Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135081,22.164842,-100.960493,'0101000020957F00006ADAD289804658C168CABB6BD09D4B41','El Club','Mexico 810 Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132723,22.1489337,-101.019845,'0101000020957F0000B366C9254B4758C191987F9CAEAF4B41','Gordas de morales','?','?','San Luis Potosi','Mexico','?','?','Full_Bar','section','informal','completely','medium','?','familiar','f','closed','none'), (135051,22.151189,-100.977058,'0101000020957F0000D6537C4C224858C1DED7F6EB58A34B41','Restaurante Versalles','Francisco I. Madero 145 Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','section','informal','no_accessibility','low','?','familiar','f','closed','none'), (135021,18.933537,-99.222497,'0101000020957F00005645259D836D5AC11EF994E27F514A41','Subway','Rio Mayo 17 Vista Hermosa','Cuernavaca','Morelos','Mexico','?','62290','No_Alcohol_Served','not permitted','informal','no_accessibility','low','?','familiar','t','closed','none'), (135052,22.150981,-100.977412,'0101000020957F0000B72147F1274858C189A406ED75A34B41','La Cantina Restaurante','Ignacio Aldama 300 Centro','San Luis Potosi','SLP','Mexico','?','78000','Full_Bar','none','informal','no_accessibility','high','lacantinaslp.com','familiar','f','closed','none'), (132845,22.1262926,-100.9007764,'0101000020957F0000B230F8670C4E58C1D590A2700F8F4B41','Cenaduria El Rincón de Tlaquepaque','av. seminario','san luis potosi','san luis potosi','mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135011,18.91061,-99.169539,'0101000020957F0000A68C31737C725AC1A6E234AE90424A41','Los Vikingos','36 Sur Civac','Jiutepec','Morelos','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','t','closed','none'), (132858,22.1312917,-100.9371941,'0101000020957F0000608CF6D8474C58C1DBF7C50028994B41','Hamburguesas Valle Dorado','Av. Coral','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135026,22.148665,-101.001273,'0101000020957F0000C75F8790D94758C1FF8BCA0567AA4B41','la Cantina','Capitan Caldera No. 420 Tequisqueapan','San Luis Potosi','SLP','Mexico','?','78250','Full_Bar','none','informal','no_accessibility','high','lacantinaslp.com','familiar','f','closed','none'), (132884,22.1395776,-101.0278863,'0101000020957F00001FAA108A804858C1712EE37088B24B41','dairy queen','?','?','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135016,18.869347,-99.209944,'0101000020957F0000FC8866CF17785AC14CD7055B02514A41','<NAME>','69 Tres De Mayo','Cuernavaca','Morelos','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135104,23.7529821,-99.1684341,'0101000020957F00007CDF5EAFC58157C1645743B23E4F4941','vips','?','?','?','?','?','?','Full_Bar','not permitted','informal','completely','medium','?','familiar','t','closed','variety'), (132630,23.7529305,-99.1644725,'0101000020957F000047206572DE8157C1D3315028254E4941','palomo tec','blvrd emilio portes gil','victoria','tamaulipas','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135047,22.150921,-100.993828,'0101000020957F00009C7617FBB54758C1260D663225A84B41','Restaurante Casa de las Flores','General <NAME>a 1205 Barrio de Tequisquiap','San Luis Potosi','SLP','Mexico','?','78310','Wine-Beer','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (132951,22.1544736,-100.9858091,'0101000020957F0000BAC859A0634758C1C3E84FCAA5A54B41','VIPS','NICOLAS ZAPATA 300','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','casual','completely','low','?','familiar','f','closed','none'), (132665,23.7367977,-99.1342413,'0101000020957F00007AED0830FC8457C122F85F7B84464941','TACOS CORRECAMINOS','?','victoria','tamaulipas','mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135044,22.141848,-100.997475,'0101000020957F0000C8B62F9EFF4858C14FA6C296B9A94B41','Restaurant Wu Zhuo Yi','Himno Nacional 100 Avenida','San Luis Potosi','SLP','Mexico','?','78240','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135035,22.145813,-101.018032,'0101000020957F00004DDB874CD24758C1F29E91E259AF4B41','El Mundo de la Pasta','Rio Papaloapan 265 Lomas de San Luis (3)','San Luis Potosi','SLP','Mexico','?','78210','No_Alcohol_Served','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (135071,22.126375,-100.910926,'0101000020957F0000E3A742BFC14D58C1F4E529A7F3914B41','Restaurante la Cantina','De La Estrella 2005 Estrella de Oriente','San Luis Potosi','SLP','Mexico','?','78396','Full_Bar','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132834,22.156469,-100.98554,'0101000020957F00007768135A174758C155D318CB73A54B41','<NAME>','sevilla y olmedo 715 a','san luis potosi','san luis potosi','mexico','?','78349','No_Alcohol_Served','not permitted','casual','no_accessibility','low','?','familiar','f','closed','none'), (132846,22.1422732,-100.9426537,'0101000020957F000065D51EE7724A58C1B688A454109A4B41','el lechon potosino ','circuito oriente esq. carretera 57','san luis potosi ','slp','mexico','?','?','No_Alcohol_Served','permitted','casual','no_accessibility','low','?','familiar','f','open','none'), (135048,22.142017,-100.999246,'0101000020957F00008032636EEC4858C16CDF265038AA4B41','Restaurante Bar Fu-hao','Jesus Goytortua 390 Tangamanga','San Luis Potosi','SLP','Mexico','?','78269','Wine-Beer','none','informal','no_accessibility','high','?','familiar','f','closed','none'), (132717,23.7318602,-99.1504365,'0101000020957F0000B21C3F6C5E8557C188ACCF0A444B4941','tortas hawai','?','?','?','?','?','?','No_Alcohol_Served','not permitted','informal','partially','medium','?','familiar','f','closed','none'), (132861,22.1480965,-101.0173023,'0101000020957F000074BBAF047E4758C1424B73C701AF4B41','Carls Jr','Av. V. Carranza','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','medium','?','familiar','t','closed','none'), (132885,22.1795169,-100.9584358,'0101000020957F0000B1DA6F2D504458C112A26CA45B9C4B41','Hamburguesas saul','Av. Saan Luis enttre moctezuma y salinas','San Luis Potosi','San Luis Potosi','mexico','?','78433','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132740,23.7521965,-99.1666317,'0101000020957F000027A30471EE8157C1AC17D61EC84E4941','<NAME>','?','Ciudad Victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','permitted','informal','completely','low','?','familiar','f','open','none'), (132830,22.1508494,-100.9397522,'0101000020957F0000F2E21C48374958C1C6826887BA984B41','<NAME>','?','?','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132773,18.8699929,-99.2103195,'0101000020957F0000B1F935F9FA775AC1D06DFD1017514A41','El cotorreo','<NAME> Col. T<NAME>','Cuernavaca','Morelos','?','?','?','Wine-Beer','permitted','informal','no_accessibility','low','?','familiar','f','open','none'), (132706,23.7292162,-99.1323571,'0101000020957F00000F14BF6B2C8657C1963CCB8E5C464941','<NAME>','Zaragoza entre Francisco Zarco y Lopez Velarde','Cd. Victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','not permitted','informal','no_accessibility','medium','?','familiar','t','closed','none'), (132872,22.1735955,-100.9946027,'0101000020957F0000942C3434384458C1C2D3499804A74B41','<NAME>','?','s.l.p','mexico','?','?','?','No_Alcohol_Served','not permitted','informal','partially','medium','?','familiar','f','closed','none'), (134987,18.932725,-99.225211,'0101000020957F0000FE987FAF936D5AC1E1D486215E524A41','<NAME>','Rio Mayo Colonia Vista Hermosa Esq. Rio Balsas','Cuernavaca','Morelos','Mexico','?','62290','Wine-Beer','none','informal','no_accessibility','medium','chilis.com.mx','familiar','f','closed','none'), (132572,22.1416471,-100.9927118,'0101000020957F00005D19BF45294958C18FF7F8E260A84B41','<NAME>','?','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','low','?','familiar','f','closed','none'), (132958,22.1449787,-101.0056829,'0101000020957F000049095EB34A4858C15CB4BD1EE1AB4B41','tacos los volcanes','avenida hivno nacional','san luis potosi','san luis potos','mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','quiet','t','closed','none'), (132733,23.7527071,-99.1625655,'0101000020957F0000F2F4110CF28157C1DCFD7C1BA04D4941','<NAME>','?','Ciudad Victoria','Tamaulipas','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','medium','?','familiar','t','closed','none'), (132922,22.1511348,-100.9823115,'0101000020957F000060A98A38FF4758C146718E41D9A44B41','cafe punta del cielo','?','?','?','?','?','?','No_Alcohol_Served','permitted','formal','completely','medium','?','familiar','f','closed','none'), (132715,23.7324226,-99.1586602,'0101000020957F00004609B96F198557C11973490A874D4941','tacos de la estacion','?','?','?','?','?','?','No_Alcohol_Served','none','informal','no_accessibility','low','?','quiet','f','open','none'), (135027,22.147145,-100.974494,'0101000020957F000087BEDDE8D24858C1B20CDB33DBA24B41','Restaurant Orizatlan','Pascual M. Hernandez 240','San Luis Potosi','SLP','Mexico','?','?','Wine-Beer','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132767,18.8820871,-99.1630268,'0101000020957F00001672C2C435775AC1F69BF2EF0D424A41','Restaurant Familiar El Chino','Paseo de las Fuentes','Jiutepec','Morelos','?','?','?','Wine-Beer','permitted','casual','partially','medium','?','familiar','f','open','variety'), (135039,22.145893,-100.97487,'0101000020957F000040D5CE4E014958C177DC62AE09A34B41','Restaurant de Mariscos de Picon','<NAME>an 46 Centro','San Luis Potosi','SLP','Mexico','?','79300','No_Alcohol_Served','section','informal','no_accessibility','low','?','familiar','f','closed','none'), (134996,18.923429,-99.216413,'0101000020957F0000340233E7476F5AC132844E2A2C504A41','<NAME>','<NAME>','Cuernavaca','Morelos','Mexico','?','?','Wine-Beer','only at bar','informal','no_accessibility','medium','?','familiar','t','closed','Internet'), (132755,22.153324,-101.0195459,'0101000020957F000026CADE45A14658C1F011EBCA55AF4B41','La Estrella de Dimas','Av. de los Pintores','San Luis Potosi','S.L.P.','Mexico','?','?','No_Alcohol_Served','none','informal','partially','medium','?','familiar','f','closed','variety'), (135043,22.185756,-100.944518,'0101000020957F00006B9D7207BE4358C12419118D05984B41','pizza clasica','524 Soledad de Graciano Sanchez','Soledad','SLP','Mexico','?','?','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132654,23.7355234,-99.1295877,'0101000020957F000040E8F628488557C18224E8B948454941','<NAME> Calle 16 de Septiembre','16 de Septiembre','victoria ','tamaulipas','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (135049,22.135011,-101.0286,'0101000020957F00005DAD35642E4958C11BBCDE4A02B34B41','Restaurante de Mariscos la Langosta','Cordillera de Los Alpes 675 Loma Verde','San Luis Potosi','SLP','Mexico','?','78214','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135073,22.147175,-100.974269,'0101000020957F0000D010A853D34858C116A1EA51CAA24B41','Restaurante Bar El Gallinero','<NAME> 210 Centro','San Luis Potosi','SLP','Mexico','?','78000','Wine-Beer','section','informal','no_accessibility','high','?','familiar','f','closed','none'), (132560,23.7523041,-99.1669133,'0101000020957F0000FC60BDA8E88157C1B2C357D6DA4E4941','puesto de gorditas','frente al tecnologico','victoria','tamaulipas','mexico','?','?','No_Alcohol_Served','permitted','informal','no_accessibility','low','?','familiar','f','open','none'), (134976,18.916654,-99.22711,'0101000020957F00002838E29F19705AC1BC368BDAC7534A41','Log Yin','?','?','?','?','?','?','No_Alcohol_Served','none','informal','no_accessibility','low','?','familiar','f','closed','none'), (135075,22.139573,-100.991564,'0101000020957F0000332AE8AF824958C15A4195A82CA84B41','<NAME>','Himno Nacional 2104 Tangamanga','San Luis Potosi','SLP','Mexico','?','78269','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132660,23.7529428,-99.1646791,'0101000020957F00003D7905C9DC8157C13FCD1AB7334E4941','carnitas mata calle <NAME>','<NAME>','victoria','tamaulipas','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132921,22.150305,-100.9891337,'0101000020957F00006376BB64EF4758C1013687E5D7A64B41','crudalia','?','?','?','?','?','?','Wine-Beer','section','casual','completely','low','?','quiet','f','open','none'), (132594,23.7521677,-99.165709,'0101000020957F00003AE4C6DBF48157C1CE38ECC1864E4941','tacos de barbacoa enfrente del Tec','?','?','?','?','?','?','No_Alcohol_Served','not permitted','informal','completely','low','?','familiar','f','open','none'), (134986,18.928798,-99.239513,'0101000020957F00002A0D05E2D96D5AC1AB058CB1EC564A41','Restaurant Las Mananitas','Ricardo Linares 107','Cuernavaca','Morelos','Mexico','?','?','Wine-Beer','none','formal','no_accessibility','high','lasmananitas.com.mx','familiar','f','closed','none'), (135062,22.153703,-100.979033,'0101000020957F0000D177B9CFB14758C162A211E1C2A34B41','Restaurante El Cielo Potosino','Julian de Los Reyes 400 Centro','San L<NAME>','SLP','Mexico','?','78000','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132766,18.9101777,-99.2315438,'0101000020957F000043A319BA06715AC19443369877554A41','Mikasa','Himno nacional esq. Blvd. Juarez','Cuernavaca','Morelos','Mexico','?','?','Wine-Beer','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135088,18.8760113,-99.2198896,'0101000020957F0000E14AD4DBC7765AC1F7B33C85B1534A41','Cafeteria cenidet','Interior Internado Palmira SN','Cuernavaca','Morelos','Mexico','?','?','No_Alcohol_Served','not permitted','informal','no_accessibility','low','www.cenidet.edu.mx','quiet','f','closed','none'), (135058,22.165587,-101.001273,'0101000020957F0000EB71019D424558C15CC5404365A94B41','<NAME>','Munoz Sn Centro','San Luis Potosi','SLP','Mexico','?','64000','No_Alcohol_Served','none','informal','no_accessibility','medium','?','familiar','t','closed','none'), (132754,22.1477379,-100.9906163,'0101000020957F00002493B678494858C1AD55D2316BA74B41','<NAME>','Cuauhtemoc 455','San Luis Potosi','S.L.P.','Mexico','?','?','No_Alcohol_Served','none','informal','partially','medium','?','familiar','f','closed','none'), (132584,23.7523648,-99.1652879,'0101000020957F000048C65BA7EF8157C177F2344D664E4941','<NAME>','?','?','?','?','?','?','No_Alcohol_Served','not permitted','informal','completely','medium','?','familiar','t','closed','none'), (135032,22.152481,-100.973486,'0101000020957F000017D69FF5084858C1A8F2188740A24B41','Cafeteria y Restaurant El Pacifico','Constitucion 200 Centro','San Luis Potosi','SLP','Mexico','?','78000','Wine-Beer','section','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135028,22.146658,-100.987219,'0101000020957F0000B4F00BDD8B4858C10AC3619C83A64B41','La Virreina','Av. Carranza 830','San Luis Potosi','SLP','Mexico','?','?','Wine-Beer','none','informal','no_accessibility','medium','?','familiar','f','closed','none'), (135085,22.150802,-100.98268,'0101000020957F00009F823DA6094858C18A2D4D37F9A44B41','Tortas Locas Hipocampo','Venustiano Carranza 719 Centro','San Luis Potosi','SLP','Mexico','?','78000','No_Alcohol_Served','not permitted','informal','no_accessibility','medium','?','familiar','f','closed','none'), (132663,23.7525107,-99.1669536,'0101000020957F0000FDF8D26EE08157C1FEDB6A1FDB4E4941','tacos abi','?','victoria','tamaulipas','mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132626,23.7375834,-99.1351318,'0101000020957F0000AA7883ADD88457C1FA651328BA464941','la perica hamburguesa','?','victoria','tamaulipas','?','?','?','No_Alcohol_Served','none','informal','completely','medium','?','familiar','t','closed','none'), (132583,18.9222904,-99.234332,'0101000020957F0000FBE7171F056F5AC1E8A6C0A5AF554A41','McDonalds Centro','Rayon sn col. Centro','Cuernavaca','Morelos','Mexico','?','62000','No_Alcohol_Served','not permitted','informal','partially','low','no','familiar','t','closed','none'), (132866,22.1412198,-100.9313107,'0101000020957F000013871838EC4A58C1B5DF74F8E3964B41','Chaires','<NAME>','San Luis Potosi','San Luis Potosi','Mexico','?','?','No_Alcohol_Served','not permitted','informal','completely','medium','?','familiar','f','closed','none'), (135072,22.149192,-101.002936,'0101000020957F0000E7B79B1DB94758C1D29BC363D8AA4B41','Sushi Itto','<NAME> 1809 C Polanco','San Luis Potosi','SLP','Mexico','?','78220','No_Alcohol_Served','none','informal','no_accessibility','medium','sushi-itto.com.mx','familiar','f','closed','none'), (135109,18.9217848,-99.2353499,'0101000020957F0000A6BF695F136F5AC1DADF87B205564A41','Paniroles','?','?','?','?','?','?','Wine-Beer','not permitted','informal','no_accessibility','medium','?','quiet','f','closed','Internet'), (135019,18.875011,-99.159422,'0101000020957F0000B49B2E5C6E785AC12F9D584352414A41','Restaurant Bar Coty y Pablo','Paseo de Las Fuentes 24 Pedregal de Las Fuentes','Jiutepec','Morelos','Mexico','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none'), (132877,22.1353639,-100.9349477,'0101000020957F000090735015B84B58C1AF0DC04146984B41','sirloin stockade','?','?','?','?','?','?','No_Alcohol_Served','none','informal','completely','low','?','familiar','f','closed','none');
<reponame>dipch/SQL_prediction_using_regression<gh_stars>0 create or replace package server_package as procedure insert_car_brand(id in number, name in varchar2); procedure insert_car_revenue(id in number, name in varchar2, year in number, revenue in number); procedure insert_user_update(id in number, name in varchar2, pass in varchar2); end server_package; /
<reponame>alv21133/go_tani -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2019 at 09:52 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 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: `go_tani` -- -- -------------------------------------------------------- -- -- Table structure for table `curah_hujan` -- CREATE TABLE `curah_hujan` ( `id_hujan` varchar(20) NOT NULL, `hujan_min` varchar(10) DEFAULT NULL, `hujan_max` varchar(10) DEFAULT NULL, `kategori` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `curah_hujan` -- INSERT INTO `curah_hujan` (`id_hujan`, `hujan_min`, `hujan_max`, `kategori`) VALUES ('H001', '0', '50', 'Sangat Ringan'), ('H002', '51', '200', 'Ringan'), ('H003', '201', '250', 'Sedang'), ('H004', '251', '300', 'Lebat'), ('H005', '301', '350', 'Sangat Lebat'); -- -------------------------------------------------------- -- -- Table structure for table `history` -- CREATE TABLE `history` ( `id_history` varchar(10) NOT NULL, `id_user` varchar(5) DEFAULT NULL, `hujan` varchar(5) DEFAULT NULL, `suhu` varchar(5) DEFAULT NULL, `tanah` varchar(5) DEFAULT NULL, `tinggi` varchar(5) DEFAULT NULL, `lat` varchar(50) DEFAULT NULL, `lng` varchar(50) DEFAULT NULL, `time` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `history` -- INSERT INTO `history` (`id_history`, `id_user`, `hujan`, `suhu`, `tanah`, `tinggi`, `lat`, `lng`, `time`) VALUES ('H5c187b669', 'U5', 'H003', '31', 't04', 'K01', '-7.7581519', '110.4130965', '2018-12-18'), ('H5c187b91b', 'U5', 'H003', '31', 't04', 'K01', '-7.758165', '110.413091', '2018-12-18'), ('H5c18b24ba', 'U4', 'H003', '32', 't04', 'K01', '-7.758162799999999', '110.4131117', '2018-12-18'), ('H5d923c870', 'U6', 'H003', '23.14', 't04', '', '-7.7580896', '110.4131398', '2019-09-30'), ('H5d923d1c1', 'U8', 'H005', '23.14', 't01', '', '-7.7580874999999985', '110.41310899999999', '2019-09-30'); -- -------------------------------------------------------- -- -- Table structure for table `input_user` -- CREATE TABLE `input_user` ( `lokasi` varchar(100) DEFAULT NULL, `Bulan_tanam` varchar(25) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `ketinggian` -- CREATE TABLE `ketinggian` ( `id_ketinggian` varchar(5) DEFAULT NULL, `max_tinggi` varchar(5) DEFAULT NULL, `min_tinggi` varchar(5) DEFAULT NULL, `kategori` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ketinggian` -- INSERT INTO `ketinggian` (`id_ketinggian`, `max_tinggi`, `min_tinggi`, `kategori`) VALUES ('K01', '200', '0', 'dataran rendah'), ('K02', '900', '501', 'dataran tinggi'), ('K03', '500', '201', 'Bukit'), ('K04', '12000', '901', 'Gunung'); -- -------------------------------------------------------- -- -- Table structure for table `suhu` -- CREATE TABLE `suhu` ( `id_suhu` varchar(5) NOT NULL, `min_suhu` varchar(5) DEFAULT NULL, `max_suhu` varchar(5) DEFAULT NULL, `kategori` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `suhu` -- INSERT INTO `suhu` (`id_suhu`, `min_suhu`, `max_suhu`, `kategori`) VALUES ('s01', '6.2', '11', 'dingin'), ('s02', '11.1', '17', 'sejuk'), ('s03', '17.1', '22', 'sedang'), ('s04', '22.1', '40', 'tropis'); -- -------------------------------------------------------- -- -- Table structure for table `tanah` -- CREATE TABLE `tanah` ( `id_tanah` varchar(5) DEFAULT NULL, `kategori` varchar(30) DEFAULT NULL, `ph_max` varchar(12) DEFAULT NULL, `ph_min` varchar(12) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tanah` -- INSERT INTO `tanah` (`id_tanah`, `kategori`, `ph_max`, `ph_min`) VALUES ('t01', 'sangat masam', '4.5', '0'), ('t02', 'masam', '5.5', '4.6'), ('t03', 'agak masam', '6.5', '5.6'), ('t04', 'netral', '7.5', '6.6'), ('t05', 'agak alkalis', '8.5', '7.6'), ('t06', 'alkalis', '14.5', '8.6'); -- -------------------------------------------------------- -- -- Table structure for table `tanaman` -- CREATE TABLE `tanaman` ( `id_tanaman` varchar(6) NOT NULL, `nama` varchar(40) DEFAULT NULL, `waktu_panen` varchar(10) DEFAULT NULL, `harga` varchar(15) DEFAULT NULL, `ketinggian` varchar(10) DEFAULT NULL, `suhu` varchar(5) DEFAULT NULL, `jenis_tanah` varchar(30) DEFAULT NULL, `curah_hujan` varchar(20) DEFAULT NULL, `gambar` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tanaman` -- INSERT INTO `tanaman` (`id_tanaman`, `nama`, `waktu_panen`, `harga`, `ketinggian`, `suhu`, `jenis_tanah`, `curah_hujan`, `gambar`) VALUES ('TA001', 'Selada Air', '90', '10.000-14.000', 'K01', 's03', 't03', 'H001', '1.seladaair.png'), ('TA002', 'Tomat', '60 - 90', '12.000', 'K02', 's04', 't03', 'H003', '2.32b25e3-manfaat-sayur-tomat.png'), ('TA003', 'Timun', '30-35', '8.000', 'K02', 's04', 't04', 'H001', '3.timun-png-2.png'), ('TA004', 'Cabai paprika', '40', '20.000-36.000', 'K02', 's03', 't04', 'H002', '4.paprika-oleoresin-500x500.png'), ('TA005', 'Bayam', '25', '5.000', 'K01', 's04', 't04', 'H002', '5.bayam-png-3.png'), ('TA006', 'Sawi', '30-60', '5000', 'K01', 's02', 't03', 'H002', '6.sawi-png-4.png'), ('TA007', 'Brokoli', '55-100', '5000-10000', 'K04', 's03', 't04', 'H002', '7.brokoli.png'), ('TA008', 'Kangkung', '27-30', '11000', 'K04', 's04', 't04', 'H002', '9kangkung.png'), ('TA009', 'Kemangi', '25', '2000-20000', 'K02', 's04', 't04', 'H002', '9.png'), ('TA010', 'Ketumbar', '30-40', '22000', 'K04', 's02', 't04', 'H002', '10.png'), ('TA011', 'Seledri', '30-90', '16.000', 'K04', 's04', 't03', 'H002', '11seledri.png'), ('TA012', 'Cabe', '30-35', '80.000', 'K02', 's04', 't04', 'H001', '12Cabe.png'), ('TA013', 'Buncis', '30', '20.000-50.000', 'K04', 's04', 't04', 'H002', '13buncis-png.png'), ('TA014', 'Terong', '90-120', '4.000-30.000', 'K02', 's04', 't03', 'H003', '14terongungu.png'), ('TA015', 'Pare', '30-50', '10.000-13.000', 'K02', 's01', 't03', 'H003', '15.Biji_Benih_Sayuran_Pare_Isi_4.png'), ('TA016', 'Kentang', '90-120', '12.000-20.000', 'K04', 's02', 't05', 'H002', '16potatoes-2829118_960_720.png'), ('TA017', 'Apel', '120-150', '30.000-35.000', 'K02', 's01', 't04', 'H003', '17.buah-apel-png.png'), ('TA018', 'Kelapa', '20-40', '8.000-12.000', 'K02', 's03', 't03', 'H001', '18.gambar-kelapa-png-6.png'), ('TA019', 'Pisang', '155-170', '18.000-30.000', 'K02', 's04', 't01', 'H002', '19.png-pisang-pisang-berkakhasiat-kurangi-depresi-640.png'), ('TA020', 'Jagung', '30-90', '1.500-2.500', 'K04', 's04', 't03', 'H003', '20.gambar-jagung-png-3.png'), ('TA022', 'Bel<NAME>', '90', '10.000-25.000', 'K01', 's04', 't02', 'H002', '22.belimbing-wuluh.jpg'), ('TA023', 'Temu lawak', '9-10', '20.000-50.000', 'K02', 's04', 't01', 'H002', '23.temulawak-png.png'), ('TA024', 'Lidah buaya', '4-6', '10.000-30.000', 'K02', 's04', 't03', 'H003', '24.ManfaatLidahBuaya.png'), ('TA025', 'Kumis kucing', '2-3', '7.500-10.000', 'K02', 's04', 't02', 'H003', '25.kumis-kucing-png-1.png'), ('TA026', 'Keji beling', '3', '15.000-20.000', 'K02', 's04', 't04', 'H002', '26.png'), ('TA027', 'Daun jarak', '20-60', '10.000', 'K01', 's03', 't03', 'H003', '27.4-Cara-Termudah-Dalam-Mengecilkan-Dahi-Yang-Jenong-3.png'), ('TA028', 'Daun beluntas', '30', '20.000', 'K02', 's04', 't03', 'H004', '28.png'), ('TA029', 'Cepaka putih', '30', '45-50.000', 'K01', 's04', 't02', 'H003', '29..jpg'), ('TA030', 'Daun adas', '360', '12.000', 'K02', 's04', 't05', 'H003', '30.leaves-3668772_960_720.png'), ('TA031', 'Jinten', '90-120', '10.000', 'K03', 's03', 't02', 'H004', '31.habatussauda.png'), ('TA032', 'Salak', '30-150', '2.500-10.000', 'K02', 's04', 't02', 'H004', '32.Buah-Salak-Foto-Crop-Nusantaranews.png'), ('TA033', 'Lobak', '60', '12.000', 'K02', 's03', 't03', 'H004', '33.Lobak.png'), ('TA034', 'Kecambah', '30-60', '20.000-25.000', 'K04', 's03', 't03', 'H005', '34.kecambah-tauge.png'), ('TA035', 'Teh', '6-55', '5.000-10.000', 'K02', 's04', 't02', 'H005', '35.daun-teh-png-3.png'), ('TA036', 'Kantong semar', '90', '10.000-35.000', 'K02', 's04', 't02', 'H004', '36.6.-bunga.jpg'), ('TA037', 'Lavender', '30-60', '2.000-50.000', 'K04', 's03', 't04', 'H004', '37.Lavender-01_0e207185-dc26-4d92-8538-fdd0a65079d6.png'), ('TA038', 'Murbei', '30-90', '35.000', 'K02', 's03', 't04', 'H004', '38,beri-hitam.png'), ('TA039', 'Stevia', '30', '2.000-10.000', 'K02', 's03', 't05', 'H004', '39.stevia.png'), ('TA041', 'Daun cincau', '30-60', '48.000', 'K02', 's04', 't03', 'H005', '41.daun-cincau-hitam.jpg'), ('TA042', 'Daun saga', '60', '45.000', 'K02', 's03', 't02', 'H005', '42.9-Manfaat-Daun-Saga-dan-Burung.jpg'), ('TA043', 'srikaya', '30-75', '75.000', 'K02', 's03', 't03', 'H005', '43.srikaya_jumbo_ungul.png'), ('TA044', 'Daun tempuyung', '60', '65.000', 'K04', 's01', 't03', 'H004', '44.tempuyung.png'), ('TA047', 'Jengkol', '90-180', '20.000-100.000', 'K02', 's03', 't05', 'H004', '47.a06361d0385e6082dc3fc1b783dd1021.png'), ('TA048', 'Gambas', '30-60', '2.000-15.000', 'K03', 's04', 't04', 'H004', '48.Oyong-1.png'), ('TA049', 'Kacang kapri', '45', '27.000', 'K02', 's03', 't03', 'H004', '49.pod-855267_960_720.png'), ('TA051', 'Kecipir', '30-160', '19.000', 'K04', 's03', 't03', 'H004', '51.kecipir.jpg'), ('TA052', 'Katuk', '240', '3.000-6.500', 'K02', 's04', 't06', 'H005', '52.daunkatuk.png'), ('TA053', 'Tebu', '160-360', '10.000-20.000', 'K01', 's03', 't05', 'H003', '53.es-tebu-png.png'), ('TA054', 'Turi', '30-90', '1.000-5.000', 'K02', 's02', 't04', 'H005', '54.tanaman-turi.jpg'), ('TA055', 'Rebung', '100-190', '1.800-65.000', 'K02', 's03', 't03', 'H004', '55.3Rebung-bambu-688x355.png'), ('TA056', 'Genjer', '60-90', '2.000', 'K01', 's03', 't04', 'H004', '56.manfaat-sayur-genjer-300x235.png'), ('TA057', 'Petai', '90-160', '300-4.000', 'K01', 's01', 't01', 'H002', '57.petai-png.png'), ('TA058', 'Bengkuang', '120-150', '5.000-20.000', 'K02', 's04', 't05', 'H004', '58.Bengkoang.png'), ('TA060', 'Durian', '240', '30.000-300.000', 'K02', 's04', 't04', 'H005', '60.sau-rieng-ri-6-ngon-gia-re.png'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` varchar(5) NOT NULL, `username` varchar(70) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `username`, `password`, `email`) VALUES ('U1', 'koko', '$2y$11$p5NTimH0QT9eIn9qqP9sHOvXpbXPg2A.IprYvjb/yB8RiQpxhXtEe', '<EMAIL>'), ('U2', '<NAME>', '$2y$11$Q/ebd8YFOiid1nIrx.d6v.OSd1QxYigcnIg7DPNLTskuE9fHJzlXq', '<EMAIL>'), ('U3', '<NAME>', '$2y$11$7WZVXswNMKhTb1ZMPZ7FYeb0hCNsGbfgMGJbuSnCBDs7y0nwYafQm', '<EMAIL>'), ('U4', 'sasori', '$2y$11$.2PR6fb1.bHpRLJkkrr7r.u5R8ML22PnyDa0SjrhX8fRGMf1NobP6', '<EMAIL>'), ('U5', 'coba', '$2y$11$ntG3bWDplMQx8asqkll1r.1OO1.TQjROb5H0xqXjgs21zTkkWg5H6', '<EMAIL>'), ('U6', 'admin', '$2y$11$7DtOTBT8s7g9gDz/1ryZuuKo/.pZDbDSbzp0S.j3zreNVlXy5t7we', '<EMAIL>'), ('U7', 'admin', '$2y$11$Hf9RYNZxuckh6vIG30gBE.DUK4P7d.MBA/rwRg11pe3DgGZupoj5e', '<EMAIL>'), ('U8', 'anif', '$2y$11$JJObw9fBZf1UPvjjAlnRLuxnaGkiVOES8H6Si7WW.FWxmvNdV9qKW', '<EMAIL>'); -- -- Indexes for dumped tables -- -- -- Indexes for table `curah_hujan` -- ALTER TABLE `curah_hujan` ADD PRIMARY KEY (`id_hujan`); -- -- Indexes for table `history` -- ALTER TABLE `history` ADD PRIMARY KEY (`id_history`); -- -- Indexes for table `suhu` -- ALTER TABLE `suhu` ADD PRIMARY KEY (`id_suhu`); -- -- Indexes for table `tanaman` -- ALTER TABLE `tanaman` ADD PRIMARY KEY (`id_tanaman`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); 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>db/create-temp-schema.sql DROP TABLE IF EXISTS token_transfer_temp_ID; CREATE TABLE token_transfer_temp_ID ( "id" SERIAL PRIMARY KEY, "token_address" bytea NOT NULL, "from_address" bytea NOT NULL, "to_address" bytea NOT NULL, "value" float8 NOT NULL, "transaction_hash" bytea NOT NULL, "log_index" int8 NOT NULL, "block_timestamp" timestamp NOT NULL, "block_number" int8 NOT NULL, "block_hash" bytea NOT NULL ); GRANT ALL PRIVILEGES ON TABLE token_transfer_temp_ID TO terminal_user; GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public TO terminal_user;