sql
stringlengths
6
1.05M
<gh_stars>0 USE AdventureWorks2014 GO -- Basic example of TRY...CATCH BEGIN TRY -- Generate a divide-by-zero error SELECT 1 / 0 AS Error; END TRY BEGIN CATCH SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_STATE() AS ErrorState, ERROR_SEVERITY() AS ErrorSeverity, ERROR_PROCEDURE() AS ErrorProcedure, ERROR_LINE() AS ErrorLine, ERROR_MESSAGE() AS ErrorMessage; END CATCH; GO
-- MySQL Script generated by MySQL Workbench -- Fri Jun 17 21:27:39 2016 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering 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'; -- ----------------------------------------------------- -- Schema hemoba -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema hemoba -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `hemoba` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `hemoba` ; -- ----------------------------------------------------- -- Table `hemoba`.`usuario` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`usuario` ; CREATE TABLE IF NOT EXISTS `hemoba`.`usuario` ( `id` INT(11) NOT NULL, `username` VARCHAR(45) NOT NULL, `email` VARCHAR(45) NOT NULL, `passsword` VARCHAR(45) NOT NULL, `create` DATETIME NOT NULL, `updated` DATETIME NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `email_UNIQUE` (`email` ASC)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`perfil` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`perfil` ; CREATE TABLE IF NOT EXISTS `hemoba`.`perfil` ( `nome` INT NOT NULL, `sobrenome` VARCHAR(255) NOT NULL, `foto` VARCHAR(255) NULL DEFAULT '', `data_nascimento` DATETIME NOT NULL, `google` VARCHAR(45) NULL, `facebook` VARCHAR(255) NULL, `usuario_id` INT(11) NOT NULL, `t_saguineo` VARCHAR(45) NULL, `peso` FLOAT NULL, `sexo` INT NULL, `eh_doador` TINYINT(1) NULL, INDEX `fk_perfil_usuario1_idx` (`usuario_id` ASC), CONSTRAINT `fk_perfil_usuario1` FOREIGN KEY (`usuario_id`) REFERENCES `hemoba`.`usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`local` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`local` ; CREATE TABLE IF NOT EXISTS `hemoba`.`local` ( `id` INT NOT NULL AUTO_INCREMENT, `logitude` VARCHAR(45) NOT NULL, `latitude` VARCHAR(45) NOT NULL, `create` DATETIME NOT NULL, `update` DATETIME NULL, `cidade` VARCHAR(45) NULL, `estado` VARCHAR(45) NULL, `pais` VARCHAR(45) NULL, `usuario_id` INT(11) NOT NULL, PRIMARY KEY (`id`), INDEX `fk_local_usuario1_idx` (`usuario_id` ASC), CONSTRAINT `fk_local_usuario1` FOREIGN KEY (`usuario_id`) REFERENCES `hemoba`.`usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`hemocentro` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`hemocentro` ; CREATE TABLE IF NOT EXISTS `hemoba`.`hemocentro` ( `id` INT NOT NULL AUTO_INCREMENT, `nome` VARCHAR(255) NULL, `email` VARCHAR(45) NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`endereco` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`endereco` ; CREATE TABLE IF NOT EXISTS `hemoba`.`endereco` ( `id` INT NOT NULL, `endereco` VARCHAR(255) NOT NULL, `cep` VARCHAR(15) NOT NULL, `numero` VARCHAR(10) NOT NULL, `complemento` VARCHAR(200) NULL, `bairro` VARCHAR(45) NOT NULL, `cidade` VARCHAR(45) NOT NULL, `estado` VARCHAR(45) NOT NULL, `longitude` VARCHAR(45) NULL, `latitude` VARCHAR(45) NULL, `hemocentro_id` INT NOT NULL, `create` DATETIME NULL, PRIMARY KEY (`id`), INDEX `fk_endereco_hemocentro1_idx` (`hemocentro_id` ASC), CONSTRAINT `fk_endereco_hemocentro1` FOREIGN KEY (`hemocentro_id`) REFERENCES `hemoba`.`hemocentro` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`telefone` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`telefone` ; CREATE TABLE IF NOT EXISTS `hemoba`.`telefone` ( `id` INT NOT NULL AUTO_INCREMENT, `celular` VARCHAR(45) NULL, `fixo` VARCHAR(45) NULL, `dd` INT(11) NULL, `ddi` INT(11) NULL, `hemocentro_id` INT NOT NULL, PRIMARY KEY (`id`), INDEX `fk_telefone_hemocentro_idx` (`hemocentro_id` ASC), CONSTRAINT `fk_telefone_hemocentro` FOREIGN KEY (`hemocentro_id`) REFERENCES `hemoba`.`hemocentro` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`funcionamento` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`funcionamento` ; CREATE TABLE IF NOT EXISTS `hemoba`.`funcionamento` ( `id` INT(11) NOT NULL, `dia_inicio` INT NOT NULL, `dia_fim` INT NULL, `hora_inicio` TIME NOT NULL, `horar_fim` TIME NOT NULL, `hemocentro_id` INT NOT NULL, PRIMARY KEY (`id`), INDEX `fk_funcionamento_hemocentro1_idx` (`hemocentro_id` ASC), CONSTRAINT `fk_funcionamento_hemocentro1` FOREIGN KEY (`hemocentro_id`) REFERENCES `hemoba`.`hemocentro` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`doar` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`doar` ; CREATE TABLE IF NOT EXISTS `hemoba`.`doar` ( `id` INT NOT NULL AUTO_INCREMENT, `hemocentro_id` INT NOT NULL, `usuario_id` INT(11) NOT NULL, `create` DATETIME NULL, PRIMARY KEY (`id`), INDEX `fk_doar_hemocentro1_idx` (`hemocentro_id` ASC), INDEX `fk_doar_usuario1_idx` (`usuario_id` ASC), CONSTRAINT `fk_doar_hemocentro1` FOREIGN KEY (`hemocentro_id`) REFERENCES `hemoba`.`hemocentro` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_doar_usuario1` FOREIGN KEY (`usuario_id`) REFERENCES `hemoba`.`usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`doar_proxima` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`doar_proxima` ; CREATE TABLE IF NOT EXISTS `hemoba`.`doar_proxima` ( `id` INT NOT NULL AUTO_INCREMENT, `data` DATETIME NOT NULL, `status` TINYINT(1) NOT NULL DEFAULT 0, `usuario_id` INT(11) NOT NULL, `alarme` INT NULL DEFAULT 3, PRIMARY KEY (`id`), INDEX `fk_doar_proxima_usuario1_idx` (`usuario_id` ASC), CONSTRAINT `fk_doar_proxima_usuario1` FOREIGN KEY (`usuario_id`) REFERENCES `hemoba`.`usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`status_doacao` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`status_doacao` ; CREATE TABLE IF NOT EXISTS `hemoba`.`status_doacao` ( `usuario_id` INT(11) NOT NULL, `create` DATETIME NULL, `update` DATETIME NULL, `status` INT NOT NULL DEFAULT 0, INDEX `fk_status_doacao_usuario1_idx` (`usuario_id` ASC), CONSTRAINT `fk_status_doacao_usuario1` FOREIGN KEY (`usuario_id`) REFERENCES `hemoba`.`usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`album` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`album` ; CREATE TABLE IF NOT EXISTS `hemoba`.`album` ( `id` INT NOT NULL, `foto` VARCHAR(500) NULL, `hemocentro_id` INT NOT NULL, PRIMARY KEY (`id`), INDEX `fk_album_hemocentro1_idx` (`hemocentro_id` ASC), CONSTRAINT `fk_album_hemocentro1` FOREIGN KEY (`hemocentro_id`) REFERENCES `hemoba`.`hemocentro` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `hemoba`.`foto_doacao` -- ----------------------------------------------------- DROP TABLE IF EXISTS `hemoba`.`foto_doacao` ; CREATE TABLE IF NOT EXISTS `hemoba`.`foto_doacao` ( `id` INT NOT NULL, `foto` VARCHAR(500) NULL, `create` DATETIME NULL, `doar_id` INT NOT NULL, PRIMARY KEY (`id`), INDEX `fk_foto_doacao_doar1_idx` (`doar_id` ASC), CONSTRAINT `fk_foto_doacao_doar1` FOREIGN KEY (`doar_id`) REFERENCES `hemoba`.`doar` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
USE FingerprintsDb GO IF OBJECT_ID('sp_ReadHashDataByTrackId','P') IS NOT NULL DROP PROCEDURE sp_ReadHashDataByTrackId GO CREATE PROCEDURE sp_ReadHashDataByTrackId @TrackId INT AS BEGIN SELECT SubFingerprints.Signature as Signature, HashTable_1.SubFingerprintId as SubFingerprintId, HashTable_1.HashBin as HashBin_1, HashTable_2.HashBin as HashBin_2, HashTable_3.HashBin as HashBin_3, HashTable_4.HashBin as HashBin_4, HashTable_5.HashBin as HashBin_5, HashTable_6.HashBin as HashBin_6, HashTable_7.HashBin as HashBin_7, HashTable_8.HashBin as HashBin_8, HashTable_9.HashBin as HashBin_9, HashTable_10.HashBin as HashBin_10, HashTable_11.HashBin as HashBin_11, HashTable_12.HashBin as HashBin_12, HashTable_13.HashBin as HashBin_13, HashTable_14.HashBin as HashBin_14, HashTable_15.HashBin as HashBin_15, HashTable_16.HashBin as HashBin_16, HashTable_17.HashBin as HashBin_17, HashTable_18.HashBin as HashBin_18, HashTable_19.HashBin as HashBin_19, HashTable_20.HashBin as HashBin_20, HashTable_21.HashBin as HashBin_21, HashTable_22.HashBin as HashBin_22, HashTable_23.HashBin as HashBin_23, HashTable_24.HashBin as HashBin_24, HashTable_25.HashBin as HashBin_25 FROM HashTable_1 INNER JOIN HashTable_2 ON HashTable_1.SubFingerprintId = HashTable_2.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_3 ON HashTable_1.SubFingerprintId = HashTable_3.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_4 ON HashTable_1.SubFingerprintId = HashTable_4.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_5 ON HashTable_1.SubFingerprintId = HashTable_5.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_6 ON HashTable_1.SubFingerprintId = HashTable_6.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_7 ON HashTable_1.SubFingerprintId = HashTable_7.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_8 ON HashTable_1.SubFingerprintId = HashTable_8.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_9 ON HashTable_1.SubFingerprintId = HashTable_9.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_10 ON HashTable_1.SubFingerprintId = HashTable_10.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_11 ON HashTable_1.SubFingerprintId = HashTable_11.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_12 ON HashTable_1.SubFingerprintId = HashTable_12.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_13 ON HashTable_1.SubFingerprintId = HashTable_13.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_14 ON HashTable_1.SubFingerprintId = HashTable_14.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_15 ON HashTable_1.SubFingerprintId = HashTable_15.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_16 ON HashTable_1.SubFingerprintId = HashTable_16.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_17 ON HashTable_1.SubFingerprintId = HashTable_17.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_18 ON HashTable_1.SubFingerprintId = HashTable_18.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_19 ON HashTable_1.SubFingerprintId = HashTable_19.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_20 ON HashTable_1.SubFingerprintId = HashTable_20.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_21 ON HashTable_1.SubFingerprintId = HashTable_21.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_22 ON HashTable_1.SubFingerprintId = HashTable_22.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_23 ON HashTable_1.SubFingerprintId = HashTable_23.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_24 ON HashTable_1.SubFingerprintId = HashTable_24.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN HashTable_25 ON HashTable_1.SubFingerprintId = HashTable_25.SubFingerprintId AND HashTable_1.TrackId = @TrackId INNER JOIN SubFingerprints ON HashTable_1.SubFingerprintId = SubFingerprints.Id END
<gh_stars>100-1000 -- vacuum.test -- -- execsql { -- VACUUM; -- pragma integrity_check; -- } VACUUM; pragma integrity_check;
<filename>tests/via-http/mysql-dummy-data.sql -- phpMyAdmin SQL Dump -- version 3.3.10 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 23, 2016 at 03:44 PM -- Server version: 1.0.110 -- PHP Version: 5.6.15 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `v_pagination` -- -- -------------------------------------------------------- -- -- Table structure for table `people_dummy_data` -- DROP TABLE IF EXISTS `people_dummy_data`; CREATE TABLE IF NOT EXISTS `people_dummy_data` ( `id` int(11) DEFAULT NULL, `first_name` varchar(50) DEFAULT NULL, `last_name` varchar(50) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `gender` varchar(50) DEFAULT NULL, `ip_address` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `people_dummy_data` -- INSERT INTO `people_dummy_data` (`id`, `first_name`, `last_name`, `email`, `gender`, `ip_address`) VALUES (1, 'Randy', 'Tucker', '<EMAIL>', 'Male', '192.168.3.11'), (2, 'Richard', 'Castillo', '<EMAIL>', 'Male', '172.16.58.3'), (3, 'John', 'Palmer', '<EMAIL>', 'Male', '0.147.25.173'), (4, 'Joseph', 'Young', '<EMAIL>', 'Male', '172.16.58.3'), (5, 'Brenda', 'Johnston', '<EMAIL>', 'Female', '192.168.3.11'), (6, 'Ann', 'Lopez', '<EMAIL>', 'Female', '192.168.127.12'), (7, 'Mary', 'Schmidt', '<EMAIL>', 'Female', '192.168.127.12'), (8, 'Andrew', 'Carr', '<EMAIL>', 'Male', '192.168.127.12'), (9, 'Mildred', 'Walker', '<EMAIL>', 'Female', '192.168.3.11'), (10, 'Roy', 'Burke', '<EMAIL>', 'Male', '192.168.127.12'), (11, 'Joan', 'Jenkins', '<EMAIL>', 'Female', '172.16.31.10'), (12, 'Amanda', 'Elliott', '<EMAIL>', 'Female', '192.168.3.11'), (13, 'Anne', 'Mendoza', '<EMAIL>', 'Female', '244.84.53.60'), (14, 'Antonio', 'Johnston', '<EMAIL>', 'Male', '192.168.3.11'), (15, 'Lillian', 'Bennett', '<EMAIL>', 'Female', '192.168.3.11'), (16, 'Justin', 'Grant', '<EMAIL>', 'Male', '172.16.31.10'), (17, 'Donald', 'Foster', '<EMAIL>', 'Male', '192.168.3.11'), (18, 'Diane', 'Fowler', '<EMAIL>', 'Female', '172.16.58.3'), (19, 'Betty', 'Webb', '<EMAIL>', 'Female', '172.16.17.32'), (20, 'Mildred', 'Harris', '<EMAIL>', 'Female', '172.16.31.10'), (21, 'Wayne', 'Cook', '<EMAIL>', 'Male', '192.168.127.12'), (22, 'Brenda', 'Montgomery', '<EMAIL>', 'Female', '192.168.3.11'), (23, 'Gerald', 'Alexander', '<EMAIL>', 'Male', '192.168.3.11'), (24, 'Ralph', 'Reynolds', '<EMAIL>', 'Male', '172.16.58.3'), (25, 'Norma', 'Coleman', '<EMAIL>', 'Female', '172.16.17.32'), (26, 'Raymond', 'Carter', '<EMAIL>', 'Male', '172.16.17.32'), (27, 'Scott', 'Matthews', '<EMAIL>', 'Male', '172.16.17.32'), (28, 'Emily', 'Collins', '<EMAIL>', 'Female', '240.2.245.97'), (29, 'Susan', 'Hansen', '<EMAIL>', 'Female', '172.16.17.32'), (30, 'Gloria', 'Carr', '<EMAIL>', 'Female', '192.168.3.11'), (31, 'Christopher', 'Henderson', '<EMAIL>', 'Male', '243.0.167.163'), (32, 'Dorothy', 'Fowler', '<EMAIL>', 'Female', '192.168.3.11'), (33, 'Edward', 'Montgomery', '<EMAIL>', 'Male', '192.168.3.11'), (34, 'Ashley', 'Hayes', '<EMAIL>', 'Female', '172.16.58.3'), (35, 'Joyce', 'Stone', '<EMAIL>', 'Female', '192.168.3.11'), (36, 'Barbara', 'Hill', '<EMAIL>', 'Female', '172.16.31.10'), (37, 'Matthew', 'Gray', '<EMAIL>', 'Male', '172.16.58.3'), (38, 'Donald', 'Pierce', '<EMAIL>', 'Male', '192.168.3.11'), (39, 'Debra', 'Graham', '<EMAIL>', 'Female', '172.16.58.3'), (40, 'Bonnie', 'Stanley', '<EMAIL>', 'Female', '192.168.127.12'), (41, 'William', 'Berry', '<EMAIL>', 'Male', '172.16.58.3'), (42, 'Joan', 'Stevens', '<EMAIL>', 'Female', '192.168.3.11'), (43, 'Gregory', 'Castillo', '<EMAIL>', 'Male', '246.24.216.58'), (44, 'Justin', 'Price', '<EMAIL>', 'Male', '172.16.31.10'), (45, 'Mark', 'Evans', '<EMAIL>', 'Male', '172.16.58.3'), (46, 'Marilyn', 'Bailey', '<EMAIL>', 'Female', '172.16.17.32'), (47, 'Brandon', 'Miller', '<EMAIL>', 'Male', '192.168.3.11'), (48, 'Willie', 'James', '<EMAIL>', 'Male', '192.168.127.12'), (49, 'Wayne', 'Gardner', '<EMAIL>', 'Male', '192.168.3.11'), (50, 'Jane', 'Hicks', '<EMAIL>', 'Female', '192.168.3.11'), (51, 'Willie', 'Hernandez', '<EMAIL>', 'Male', '192.168.3.11'), (52, 'Bruce', 'White', '<EMAIL>', 'Male', '192.168.3.11'), (53, 'Denise', 'Ramirez', '<EMAIL>', 'Female', '172.16.58.3'), (54, 'Marilyn', 'Fernandez', '<EMAIL>', 'Female', '192.168.127.12'), (55, 'Jean', 'Knight', '<EMAIL>', 'Female', '192.168.3.11'), (56, 'Amanda', 'Hanson', '<EMAIL>', 'Female', '192.168.127.12'), (57, 'Brian', 'Perry', '<EMAIL>', 'Male', '172.16.31.10'), (58, 'Patricia', 'Fuller', '<EMAIL>', 'Female', '172.16.31.10'), (59, 'Justin', 'Knight', '<EMAIL>', 'Male', '172.16.58.3'), (60, 'Sara', 'Harrison', '<EMAIL>', 'Female', '192.168.127.12'), (61, 'Eugene', 'Mitchell', '<EMAIL>', 'Male', '172.16.17.32'), (62, 'Patrick', 'Taylor', '<EMAIL>', 'Male', '172.16.31.10'), (63, 'Carlos', 'Jordan', '<EMAIL>', 'Male', '172.16.17.32'), (64, 'Wanda', 'Gonzalez', '<EMAIL>', 'Female', '192.168.3.11'), (65, 'Margaret', 'Flores', '<EMAIL>', 'Female', '192.168.3.11'), (66, 'Lillian', 'Williams', '<EMAIL>', 'Female', '192.168.3.11'), (67, 'Helen', 'Carr', '<EMAIL>', 'Female', '172.16.58.3'), (68, 'Ashley', 'Rogers', '<EMAIL>', 'Female', '172.16.31.10'), (69, 'Eugene', 'Spencer', '<EMAIL>', 'Male', '192.168.127.12'), (70, 'Julie', 'White', '<EMAIL>', 'Female', '192.168.127.12'), (71, 'Melissa', 'Murray', '<EMAIL>', 'Female', '172.16.58.3'), (72, 'Louis', 'Olson', '<EMAIL>', 'Male', '172.16.31.10'), (73, 'James', 'Russell', '<EMAIL>', 'Male', '240.33.6.72'), (74, 'Laura', 'Hansen', '<EMAIL>', 'Female', '192.168.127.12'), (75, 'Maria', 'Rose', '<EMAIL>', 'Female', '192.168.127.12'), (76, 'Sara', 'Flores', '<EMAIL>', 'Female', '172.16.31.10'), (77, 'Brian', 'Webb', '<EMAIL>', 'Male', '172.16.17.32'), (78, 'Ronald', 'Chavez', '<EMAIL>', 'Male', '192.168.3.11'), (79, 'Donald', 'Burns', '<EMAIL>', 'Male', '192.168.3.11'), (80, 'Antonio', 'Reynolds', '<EMAIL>', 'Male', '172.16.31.10'), (81, 'Jimmy', 'Gomez', '<EMAIL>', 'Male', '172.16.58.3'), (82, 'Kimberly', 'Nelson', '<EMAIL>', 'Female', '192.168.127.12'), (83, 'Jennifer', 'Henderson', '<EMAIL>', 'Female', '192.168.3.11'), (84, 'Sean', 'Chavez', '<EMAIL>', 'Male', '172.16.17.32'), (85, 'Evelyn', 'Lane', '<EMAIL>', 'Female', '172.16.17.32'), (86, 'Sarah', 'Bishop', '<EMAIL>', 'Female', '192.168.3.11'), (87, 'Janet', 'Stevens', '<EMAIL>', 'Female', '172.16.31.10'), (88, 'Susan', 'Medina', '<EMAIL>', 'Female', '192.168.3.11'), (89, 'Christopher', 'Mills', '<EMAIL>', 'Male', '172.16.31.10'), (90, 'Juan', 'Gray', '<EMAIL>', 'Male', '172.16.58.3'), (91, 'Irene', 'Alexander', '<EMAIL>', 'Female', '172.16.31.10'), (92, 'Teresa', 'Sanders', '<EMAIL>', 'Female', '192.168.3.11'), (93, 'Theresa', 'Bryant', '<EMAIL>', 'Female', '192.168.3.11'), (94, 'Joshua', 'Snyder', '<EMAIL>', 'Male', '192.168.127.12'), (95, 'Charles', 'Watson', '<EMAIL>', 'Male', '172.16.58.3'), (96, 'Charles', 'Reyes', '<EMAIL>', 'Male', '172.16.17.32'), (97, 'Louise', 'Warren', '<EMAIL>', 'Female', '192.168.3.11'), (98, 'Christine', 'Carpenter', '<EMAIL>', 'Female', '192.168.3.11'), (99, 'Lisa', 'Marshall', '<EMAIL>', 'Female', '192.168.127.12'), (100, 'Ruby', 'Rivera', '<EMAIL>', 'Female', '192.168.127.12'), (101, 'Keith', 'Watkins', '<EMAIL>', 'Male', '172.16.17.32'), (102, 'Janet', 'Bradley', '<EMAIL>', 'Female', '245.72.38.74'), (103, 'Catherine', 'Shaw', '<EMAIL>', 'Female', '192.168.127.12'), (104, 'Debra', 'Elliott', '<EMAIL>', 'Female', '172.16.17.32'), (105, 'Billy', 'Hicks', '<EMAIL>', 'Male', '192.168.127.12'), (106, 'Stephanie', 'Nichols', '<EMAIL>', 'Female', '172.16.31.10'), (107, 'George', 'Ruiz', '<EMAIL>', 'Male', '172.16.58.3'), (108, 'Kevin', 'Moore', '<EMAIL>', 'Male', '172.16.31.10'), (109, 'Robin', 'Woods', '<EMAIL>', 'Female', '192.168.127.12'), (110, 'Nicholas', 'Woods', '<EMAIL>', 'Male', '192.168.3.11'), (111, 'Beverly', 'Richards', '<EMAIL>', 'Female', '192.168.127.12'), (112, 'Judith', 'Romero', '<EMAIL>', 'Female', '172.16.31.10'), (113, 'Cheryl', 'Gray', '<EMAIL>', 'Female', '172.16.17.32'), (114, 'Cynthia', 'Garrett', '<EMAIL>', 'Female', '172.16.58.3'), (115, 'Jacqueline', 'Robinson', '<EMAIL>', 'Female', '172.16.58.3'), (116, 'Julia', 'Fisher', '<EMAIL>', 'Female', '192.168.127.12'), (117, 'Clarence', 'Alexander', '<EMAIL>', 'Male', '172.16.58.3'), (118, 'Annie', 'Hall', '<EMAIL>', 'Female', '172.16.17.32'), (119, 'Jonathan', 'Hall', '<EMAIL>', 'Male', '172.16.17.32'), (120, 'Kelly', 'Robertson', '<EMAIL>', 'Female', '172.16.17.32'), (121, 'Phyllis', 'Young', '<EMAIL>', 'Female', '192.168.127.12'), (122, 'Ruth', 'Burton', '<EMAIL>', 'Female', '172.16.17.32'), (123, 'Gerald', 'Moore', '<EMAIL>', 'Male', '172.16.58.3'), (124, 'Teresa', 'Griffin', '<EMAIL>', 'Female', '172.16.31.10'), (125, 'Tina', 'Montgomery', '<EMAIL>', 'Female', '192.168.3.11'), (126, 'Gerald', 'White', '<EMAIL>', 'Male', '192.168.127.12'), (127, 'Eric', 'Brown', '<EMAIL>', 'Male', '172.16.17.32'), (128, 'Roy', 'Burns', '<EMAIL>', 'Male', '172.16.17.32'), (129, 'Rebecca', 'Kennedy', '<EMAIL>', 'Female', '172.16.58.3'), (130, 'Andrew', 'Gomez', '<EMAIL>', 'Male', '172.16.17.32'), (131, 'Andrew', 'Reid', '<EMAIL>', 'Male', '172.16.58.3'), (132, 'Edward', 'Bowman', '<EMAIL>', 'Male', '192.168.3.11'), (133, 'Catherine', 'Hayes', '<EMAIL>', 'Female', '172.16.58.3'), (134, 'Susan', 'Clark', '<EMAIL>', 'Female', '192.168.3.11'), (135, 'Antonio', 'Washington', '<EMAIL>', 'Male', '192.168.127.12'), (136, 'Sharon', 'Stone', '<EMAIL>', 'Female', '192.168.3.11'), (137, 'Stephanie', 'Ramirez', '<EMAIL>', 'Female', '172.16.58.3'), (138, 'Maria', 'Black', '<EMAIL>', 'Female', '172.16.17.32'), (139, 'Christine', 'Perkins', '<EMAIL>', 'Female', '172.16.31.10'), (140, 'Deborah', 'Peters', '<EMAIL>', 'Female', '192.168.3.11'), (141, 'Juan', 'Stone', '<EMAIL>', 'Male', '192.168.3.11'), (142, 'Judy', 'Smith', '<EMAIL>', 'Female', '192.168.3.11'), (143, 'Larry', 'Gomez', '<EMAIL>', 'Male', '172.16.17.32'), (144, 'Peter', 'Murphy', '<EMAIL>', 'Male', '172.16.17.32'), (145, 'Catherine', 'Holmes', '<EMAIL>', 'Female', '192.168.3.11'), (146, 'Kathryn', 'West', '<EMAIL>', 'Female', '172.16.17.32'), (147, 'Ryan', 'Nelson', '<EMAIL>', 'Male', '192.168.3.11'), (148, 'Brenda', 'Palmer', '<EMAIL>', 'Female', '172.16.31.10'), (149, 'Howard', 'Kim', '<EMAIL>', 'Male', '172.16.58.3'), (150, 'Lawrence', 'Davis', '<EMAIL>', 'Male', '172.16.17.32'), (151, 'Todd', 'Mitchell', '<EMAIL>', 'Male', '172.16.58.3'), (152, 'Gary', 'Diaz', '<EMAIL>', 'Male', '172.16.58.3'), (153, 'Norma', 'Bishop', '<EMAIL>', 'Female', '172.16.17.32'), (154, 'Frances', 'Dunn', '<EMAIL>', 'Female', '192.168.127.12'), (155, 'Peter', 'Armstrong', '<EMAIL>', 'Male', '172.16.58.3'), (156, 'Louis', 'Robinson', '<EMAIL>', 'Male', '17.17.30.69'), (157, 'Christine', 'Spencer', '<EMAIL>', 'Female', '172.16.17.32'), (158, 'Juan', 'Gray', '<EMAIL>', 'Male', '172.16.31.10'), (159, 'Carl', 'Murphy', '<EMAIL>', 'Male', '172.16.58.3'), (160, 'Joe', 'Reynolds', '<EMAIL>', 'Male', '172.16.17.32'), (161, 'Joyce', 'Williams', '<EMAIL>', 'Female', '244.182.84.221'), (162, 'Angela', 'Russell', '<EMAIL>', 'Female', '172.16.58.3'), (163, 'Wayne', 'Gonzales', '<EMAIL>', 'Male', '172.16.31.10'), (164, 'Elizabeth', 'Olson', '<EMAIL>', 'Female', '172.16.58.3'), (165, 'Walter', 'Russell', '<EMAIL>', 'Male', '172.16.17.32'), (166, 'Judy', 'Rivera', '<EMAIL>', 'Female', '252.234.176.119'), (167, 'Robert', 'Long', '<EMAIL>', 'Male', '192.168.127.12'), (168, 'Ashley', 'Hamilton', '<EMAIL>', 'Female', '172.16.17.32'), (169, 'Joseph', 'Carter', '<EMAIL>', 'Male', '192.168.3.11'), (170, 'Paula', 'James', '<EMAIL>', 'Female', '172.16.31.10'), (171, 'Louise', 'Gonzalez', '<EMAIL>', 'Female', '172.16.58.3'), (172, 'Adam', 'Rodriguez', '<EMAIL>', 'Male', '172.16.17.32'), (173, 'Janice', 'Thomas', '<EMAIL>', 'Female', '192.168.127.12'), (174, 'Eric', 'Hansen', '<EMAIL>', 'Male', '192.168.3.11'), (175, 'Aaron', 'Jenkins', '<EMAIL>', 'Male', '243.250.81.207'), (176, 'Billy', 'Dunn', '<EMAIL>', 'Male', '192.168.3.11'), (177, 'Keith', 'Baker', '<EMAIL>', 'Male', '172.16.58.3'), (178, 'Cynthia', 'Grant', '<EMAIL>', 'Female', '172.16.17.32'), (179, 'Larry', 'Hanson', '<EMAIL>', 'Male', '192.168.3.11'), (180, 'John', 'Gomez', '<EMAIL>', 'Male', '192.168.127.12'), (181, 'Marie', 'Schmidt', '<EMAIL>', 'Female', '243.50.147.126'), (182, 'Roger', 'Perkins', '<EMAIL>', 'Male', '172.16.58.3'), (183, 'Robin', 'Owens', '<EMAIL>', 'Female', '192.168.127.12'), (184, 'Kelly', 'Larson', '<EMAIL>', 'Female', '172.16.58.3'), (185, 'Louis', 'Nguyen', '<EMAIL>', 'Male', '11.24.34.175'), (186, 'Brandon', 'Montgomery', '<EMAIL>', 'Male', '172.16.17.32'), (187, 'Kathy', 'Moore', '<EMAIL>', 'Female', '192.168.3.11'), (188, 'Norma', 'Evans', '<EMAIL>', 'Female', '172.16.58.3'), (189, 'Beverly', 'Moore', '<EMAIL>@about.me', 'Female', '172.16.17.32'), (190, 'Harry', 'Rivera', '<EMAIL>', 'Male', '192.168.127.12'), (191, 'Lori', 'Adams', '<EMAIL>', 'Female', '192.168.127.12'), (192, 'Billy', 'Simpson', '<EMAIL>', 'Male', '192.168.127.12'), (193, 'Pamela', 'Bishop', '<EMAIL>', 'Female', '172.16.17.32'), (194, 'Bonnie', 'Andrews', '<EMAIL>', 'Female', '192.168.127.12'), (195, 'Andrew', 'Sullivan', '<EMAIL>', 'Male', '172.16.17.32'), (196, 'Ashley', 'Garza', '<EMAIL>', 'Female', '246.131.127.63'), (197, 'Donna', 'Bryant', '<EMAIL>', 'Female', '192.168.127.12'), (198, 'Gloria', 'Barnes', '<EMAIL>', 'Female', '192.168.127.12'), (199, 'Joe', 'Mcdonald', '<EMAIL>', 'Male', '172.16.17.32'), (200, 'Wayne', 'Ford', '<EMAIL>', 'Male', '172.16.17.32'), (201, 'Mark', 'Davis', '<EMAIL>', 'Male', '192.168.3.11'), (202, 'Johnny', 'Simpson', '<EMAIL>', 'Male', '172.16.31.10'), (203, 'Thomas', 'Bradley', '<EMAIL>', 'Male', '250.103.144.247'), (204, 'Pamela', 'Wood', '<EMAIL>', 'Female', '192.168.3.11'), (205, 'Paul', 'Collins', '<EMAIL>', 'Male', '192.168.3.11'), (206, 'Jessica', 'Adams', '<EMAIL>', 'Female', '172.16.31.10'), (207, 'Billy', 'Robertson', '<EMAIL>', 'Male', '243.12.215.174'), (208, 'Harry', 'Wright', '<EMAIL>', 'Male', '192.168.127.12'), (209, 'Dennis', 'Gardner', '<EMAIL>', 'Male', '192.168.3.11'), (210, 'Frances', 'Rogers', '<EMAIL>', 'Female', '192.168.3.11'), (211, 'Michelle', 'Ward', '<EMAIL>', 'Female', '172.16.17.32'), (212, 'Jean', 'Kelley', '<EMAIL>', 'Female', '192.168.127.12'), (213, 'Gloria', 'Nguyen', '<EMAIL>', 'Female', '192.168.3.11'), (214, 'Louise', 'Miller', '<EMAIL>', 'Female', '192.168.127.12'), (215, 'Thomas', 'Greene', '<EMAIL>', 'Male', '192.168.127.12'), (216, 'Steve', 'Hernandez', '<EMAIL>', 'Male', '252.2.13.2'), (217, 'Philip', 'Rivera', '<EMAIL>', 'Male', '172.16.58.3'), (218, 'Sharon', 'Campbell', '<EMAIL>', 'Female', '172.16.31.10'), (219, 'Ruth', 'Dixon', '<EMAIL>', 'Female', '172.16.58.3'), (220, 'Angela', 'Frazier', '<EMAIL>', 'Female', '172.16.58.3'), (221, 'Bonnie', 'Fuller', '<EMAIL>', 'Female', '172.16.58.3'), (222, 'Nancy', 'Gardner', '<EMAIL>', 'Female', '172.16.17.32'), (223, 'Roy', 'Morales', '<EMAIL>', 'Male', '172.16.58.3'), (224, 'Jesse', 'Allen', '<EMAIL>', 'Male', '192.168.127.12'), (225, 'Steve', 'White', '<EMAIL>', 'Male', '172.16.58.3'), (226, 'Maria', 'Perry', '<EMAIL>', 'Female', '252.31.248.118'), (227, 'Justin', 'Welch', '<EMAIL>', 'Male', '172.16.31.10'), (228, 'Howard', 'Bowman', '<EMAIL>', 'Male', '247.88.173.71'), (229, 'Mary', 'Day', '<EMAIL>', 'Female', '172.16.17.32'), (230, 'Brenda', 'Dunn', '<EMAIL>', 'Female', '192.168.3.11'), (231, 'Cynthia', 'Cook', '<EMAIL>', 'Female', '172.16.58.3'), (232, 'Kathleen', 'Riley', '<EMAIL>', 'Female', '192.168.3.11'), (233, 'Beverly', 'Hunt', '<EMAIL>', 'Female', '192.168.3.11'), (234, 'Ruth', 'Hill', '<EMAIL>', 'Female', '252.113.35.226'), (235, 'Philip', 'Simpson', '<EMAIL>', 'Male', '172.16.58.3'), (236, 'Shawn', 'Brown', '<EMAIL>', 'Male', '192.168.127.12'), (237, 'Albert', 'Ford', '<EMAIL>', 'Male', '192.168.3.11'), (238, 'Eric', 'Gordon', '<EMAIL>', 'Male', '192.168.127.12'), (239, 'Stephen', 'Russell', '<EMAIL>', 'Male', '192.168.3.11'), (240, 'Louis', 'Thompson', '<EMAIL>', 'Male', '172.16.17.32'), (241, 'Jesse', 'Oliver', '<EMAIL>', 'Male', '192.168.127.12'), (242, 'Martha', 'Nelson', '<EMAIL>', 'Female', '192.168.127.12'), (243, 'Ann', 'Allen', '<EMAIL>', 'Female', '172.16.31.10'), (244, 'Beverly', 'Cox', '<EMAIL>', 'Female', '192.168.127.12'), (245, 'Jonathan', 'Reyes', '<EMAIL>', 'Male', '172.16.31.10'), (246, 'Kelly', 'Allen', '<EMAIL>', 'Female', '192.168.3.11'), (247, 'Harold', 'Cruz', '<EMAIL>', 'Male', '172.16.58.3'), (248, 'Mildred', 'Turner', '<EMAIL>', 'Female', '172.16.58.3'), (249, 'Dorothy', 'Sims', '<EMAIL>', 'Female', '192.168.3.11'), (250, 'Patricia', 'Freeman', '<EMAIL>', 'Female', '172.16.58.3'), (251, 'Brandon', 'Harrison', '<EMAIL>', 'Male', '251.79.43.251'), (252, 'Joe', 'Richards', '<EMAIL>', 'Male', '192.168.127.12'), (253, 'Julie', 'Knight', '<EMAIL>', 'Female', '172.16.17.32'), (254, 'Andrew', 'Frazier', '<EMAIL>', 'Male', '172.16.17.32'), (255, 'Jeremy', 'Fisher', '<EMAIL>', 'Male', '243.6.178.46'), (256, 'Arthur', 'Snyder', '<EMAIL>', 'Male', '172.16.17.32'), (257, 'Sarah', 'Crawford', '<EMAIL>', 'Female', '192.168.127.12'), (258, 'Phillip', 'Robertson', '<EMAIL>', 'Male', '172.16.31.10'), (259, 'Joyce', 'Romero', '<EMAIL>', 'Female', '172.16.31.10'), (260, 'Phillip', 'Washington', '<EMAIL>', 'Male', '192.168.127.12'), (261, 'Jeremy', 'Gonzalez', '<EMAIL>', 'Male', '172.16.58.3'), (262, 'Paula', 'Montgomery', '<EMAIL>', 'Female', '192.168.3.11'), (263, 'David', 'Spencer', '<EMAIL>', 'Male', '241.10.129.57'), (264, 'Jose', 'Smith', '<EMAIL>', 'Male', '192.168.3.11'), (265, 'Mary', 'Ross', '<EMAIL>', 'Female', '172.16.31.10'), (266, 'Frank', 'Hill', '<EMAIL>', 'Male', '172.16.58.3'), (267, 'Brandon', 'Alexander', '<EMAIL>', 'Male', '192.168.127.12'), (268, 'Christina', 'Mason', '<EMAIL>', 'Female', '172.16.17.32'), (269, 'Keith', 'Peters', '<EMAIL>', 'Male', '172.16.58.3'), (270, 'Sean', 'King', '<EMAIL>', 'Male', '192.168.3.11'), (271, 'Ryan', 'Webb', '<EMAIL>', 'Male', '172.16.31.10'), (272, 'Jose', 'Boyd', '<EMAIL>', 'Male', '192.168.127.12'), (273, 'Raymond', 'Bailey', '<EMAIL>', 'Male', '172.16.17.32'), (274, 'Jessica', 'Mendoza', '<EMAIL>', 'Female', '252.183.94.117'), (275, 'Randy', 'Boyd', '<EMAIL>', 'Male', '192.168.3.11'), (276, 'Gloria', 'Howard', '<EMAIL>', 'Female', '192.168.3.11'), (277, 'Charles', 'Mcdonald', '<EMAIL>', 'Male', '172.16.31.10'), (278, 'Theresa', 'Mason', '<EMAIL>', 'Female', '172.16.58.3'), (279, 'Jimmy', 'Rose', '<EMAIL>', 'Male', '172.16.17.32'), (280, 'Evelyn', 'Little', '<EMAIL>', 'Female', '172.16.31.10'), (281, 'Ralph', 'Garrett', '<EMAIL>', 'Male', '172.16.31.10'), (282, 'Nicholas', 'Henderson', '<EMAIL>', 'Male', '172.16.17.32'), (283, 'Melissa', 'Robinson', '<EMAIL>', 'Female', '172.16.58.3'), (284, 'Arthur', 'Henry', '<EMAIL>', 'Male', '172.16.58.3'), (285, 'Joyce', 'Rose', '<EMAIL>', 'Female', '192.168.127.12'), (286, 'Arthur', 'Davis', '<EMAIL>', 'Male', '172.16.17.32'), (287, 'Kelly', 'Smith', '<EMAIL>', 'Female', '172.16.17.32'), (288, 'Stephanie', 'Gutierrez', '<EMAIL>', 'Female', '172.16.31.10'), (289, 'Justin', 'Grant', '<EMAIL>', 'Male', '192.168.3.11'), (290, 'Eugene', 'Hart', '<EMAIL>', 'Male', '172.16.58.3'), (291, 'Rebecca', 'Grant', '<EMAIL>', 'Female', '172.16.58.3'), (292, 'Steve', 'Hart', '<EMAIL>', 'Male', '172.16.17.32'), (293, 'Andrea', 'Martin', '<EMAIL>', 'Female', '241.208.87.63'), (294, 'Janet', 'Dixon', '<EMAIL>', 'Female', '172.16.58.3'), (295, 'Steve', 'Simpson', '<EMAIL>', 'Male', '192.168.127.12'), (296, 'Kathy', 'Hunter', '<EMAIL>', 'Female', '0.72.125.224'), (297, 'Mildred', 'Torres', '<EMAIL>', 'Female', '192.168.127.12'), (298, 'Steve', 'Mcdonald', '<EMAIL>', 'Male', '172.16.31.10'), (299, 'Dennis', 'Morales', '<EMAIL>', 'Male', '192.168.3.11'), (300, 'Willie', 'Lynch', '<EMAIL>', 'Male', '192.168.127.12'), (301, 'Emily', 'Hayes', '<EMAIL>', 'Female', '172.16.58.3'), (302, 'Philip', 'Hansen', '<EMAIL>', 'Male', '192.168.3.11'), (303, 'Ronald', 'Williamson', '<EMAIL>', 'Male', '172.16.17.32'), (304, 'Amanda', 'Fisher', '<EMAIL>', 'Female', '192.168.127.12'), (305, 'Joshua', 'Johnson', '<EMAIL>', 'Male', '192.168.3.11'), (306, 'Ryan', 'Franklin', '<EMAIL>', 'Male', '240.122.42.197'), (307, 'Henry', 'Stone', '<EMAIL>', 'Male', '172.16.31.10'), (308, 'Nicole', 'Mason', '<EMAIL>', 'Female', '242.5.181.135'), (309, 'Shirley', 'Ferguson', '<EMAIL>', 'Female', '192.168.127.12'), (310, 'Tammy', 'Mccoy', '<EMAIL>', 'Female', '172.16.17.32'), (311, 'Daniel', 'Gardner', '<EMAIL>', 'Male', '172.16.31.10'), (312, 'Julia', 'Holmes', '<EMAIL>', 'Female', '172.16.17.32'), (313, 'Aaron', 'Parker', '<EMAIL>', 'Male', '244.144.170.177'), (314, 'Beverly', 'Rice', '<EMAIL>', 'Female', '172.16.31.10'), (315, 'Douglas', 'Gordon', '<EMAIL>', 'Male', '192.168.127.12'), (316, 'Chris', 'Garrett', '<EMAIL>', 'Male', '192.168.127.12'), (317, 'Annie', 'Wells', '<EMAIL>', 'Female', '192.168.127.12'), (318, 'Irene', 'Morris', '<EMAIL>', 'Female', '172.16.58.3'), (319, 'Louis', 'Smith', '<EMAIL>', 'Male', '254.99.174.144'), (320, 'Ronald', 'Jenkins', '<EMAIL>', 'Male', '192.168.127.12'), (321, 'Ruby', 'Allen', '<EMAIL>', 'Female', '192.168.3.11'), (322, 'Lisa', 'Ford', '<EMAIL>', 'Female', '172.16.31.10'), (323, 'Jean', 'Olson', '<EMAIL>', 'Female', '192.168.127.12'), (324, 'Bobby', 'Gomez', '<EMAIL>', 'Male', '192.168.3.11'), (325, 'Aaron', 'Willis', '<EMAIL>', 'Male', '192.168.3.11'), (326, 'Henry', 'Franklin', '<EMAIL>', 'Male', '192.168.3.11'), (327, 'Rebecca', 'Chavez', '<EMAIL>', 'Female', '172.16.58.3'), (328, 'Debra', 'Warren', '<EMAIL>', 'Female', '192.168.127.12'), (329, 'Pamela', 'Wheeler', '<EMAIL>', 'Female', '243.31.69.106'), (330, 'Lillian', 'Murray', '<EMAIL>', 'Female', '172.16.58.3'), (331, 'Dennis', 'Watkins', '<EMAIL>', 'Male', '172.16.31.10'), (332, 'Julia', 'Hunter', '<EMAIL>', 'Female', '172.16.17.32'), (333, 'Beverly', 'Rivera', '<EMAIL>', 'Female', '172.16.17.32'), (334, 'Norma', 'Carpenter', '<EMAIL>', 'Female', '244.104.128.218'), (335, 'Brandon', 'Cole', '<EMAIL>', 'Male', '192.168.3.11'), (336, 'Irene', 'Edwards', '<EMAIL>', 'Female', '172.16.31.10'), (337, 'Kathryn', 'Alexander', '<EMAIL>', 'Female', '2192.168.127.12'), (338, 'Wayne', 'Turner', '<EMAIL>', 'Male', '255.236.98.75'), (339, 'Jimmy', 'Dunn', '<EMAIL>', 'Male', '172.16.17.32'), (340, 'Mark', 'Freeman', '<EMAIL>', 'Male', '172.16.58.3'), (341, 'Ruby', 'Wright', '<EMAIL>', 'Female', '172.16.17.32'), (342, 'Carol', 'Rogers', '<EMAIL>', 'Female', '172.16.17.32'), (343, 'Katherine', 'Holmes', '<EMAIL>', 'Female', '248.210.40.83'), (344, 'Nicholas', 'Simpson', '<EMAIL>', 'Male', '172.16.17.32'), (345, 'Gregory', 'Wallace', '<EMAIL>', 'Male', '172.16.17.32'), (346, 'Jerry', 'Alvarez', '<EMAIL>', 'Male', '192.168.127.12'), (347, 'Carlos', 'Alexander', '<EMAIL>', 'Male', '20.214.16.21'), (348, 'Benjamin', 'Hawkins', '<EMAIL>', 'Male', '192.168.3.11'), (349, 'Nancy', 'Ward', '<EMAIL>', 'Female', '172.16.31.10'), (350, 'Jacqueline', 'Bryant', '<EMAIL>', 'Female', '172.16.31.10'), (351, 'Gregory', 'Mitchell', '<EMAIL>', 'Male', '172.16.31.10'), (352, 'Timothy', 'Ramirez', '<EMAIL>', 'Male', '192.168.127.12'), (353, 'Lawrence', 'Black', '<EMAIL>', 'Male', '192.168.127.12'), (354, 'Maria', 'Morgan', '<EMAIL>', 'Female', '172.16.58.3'), (355, 'Joan', 'Bryant', '<EMAIL>', 'Female', '172.16.31.10'), (356, 'Teresa', 'Perkins', '<EMAIL>', 'Female', '172.16.17.32'), (357, 'Judith', 'Holmes', '<EMAIL>', 'Female', '192.168.3.11'), (358, 'Clarence', 'Gibson', '<EMAIL>', 'Male', '192.168.127.12'), (359, 'Marie', 'Chavez', '<EMAIL>', 'Female', '172.16.31.10'), (360, 'Jesse', 'Martinez', '<EMAIL>', 'Male', '192.168.3.11'), (361, 'Clarence', 'Ellis', '<EMAIL>', 'Male', '192.168.127.12'), (362, 'Phillip', 'Gonzales', '<EMAIL>', 'Male', '172.16.58.3'), (363, 'Marilyn', 'Boyd', '<EMAIL>', 'Female', '240.176.66.251'), (364, 'Jacqueline', 'Riley', '<EMAIL>', 'Female', '172.16.17.32'), (365, 'Bonnie', 'Howell', '<EMAIL>', 'Female', '172.16.31.10'), (366, 'Benjamin', 'Cox', '<EMAIL>', 'Male', '192.168.3.11'), (367, 'Henry', 'Wilson', '<EMAIL>', 'Male', '172.16.31.10'), (368, 'Craig', 'Carr', '<EMAIL>', 'Male', '172.16.58.3'), (369, 'Patricia', 'Sanchez', '<EMAIL>', 'Female', '172.16.31.10'), (370, 'Theresa', 'Hart', '<EMAIL>', 'Female', '192.168.127.12'), (371, 'Debra', 'Williams', '<EMAIL>', 'Female', '172.16.31.10'), (372, 'Michael', 'Stephens', '<EMAIL>', 'Male', '242.54.50.113'), (373, 'Robin', 'Shaw', '<EMAIL>', 'Female', '172.16.17.32'), (374, 'Patricia', 'Mendoza', '<EMAIL>', 'Female', '172.16.31.10'), (375, 'Steven', 'Burke', '<EMAIL>', 'Male', '172.16.58.3'), (376, 'Mildred', 'Powell', '<EMAIL>', 'Female', '192.168.127.12'), (377, 'Sharon', 'Jones', '<EMAIL>', 'Female', '192.168.3.11'), (378, 'George', 'Cooper', '<EMAIL>', 'Male', '172.16.17.32'), (379, 'Susan', 'Mendoza', '<EMAIL>', 'Female', '252.146.137.108'), (380, 'Helen', 'Miller', '<EMAIL>', 'Female', '172.16.58.3'), (381, 'Paul', 'Gordon', '<EMAIL>', 'Male', '172.16.31.10'), (382, 'Karen', 'Mills', '<EMAIL>', 'Female', '172.16.17.32'), (383, 'Harold', 'Pierce', '<EMAIL>', 'Male', '172.16.31.10'), (384, 'Kathleen', 'Ramos', '<EMAIL>', 'Female', '172.16.58.3'), (385, 'Lori', 'Gardner', '<EMAIL>', 'Female', '172.16.31.10'), (386, 'Scott', 'Jordan', '<EMAIL>', 'Male', '172.16.58.3'), (387, 'Phyllis', 'Dunn', '<EMAIL>', 'Female', '172.16.31.10'), (388, 'Mildred', 'Green', '<EMAIL>', 'Female', '254.12.164.147'), (389, 'Johnny', 'Hunt', '<EMAIL>', 'Male', '172.16.17.32'), (390, 'Louise', 'Johnson', '<EMAIL>', 'Female', '192.168.3.11'), (391, 'Shawn', 'Morrison', '<EMAIL>', 'Male', '172.16.31.10'), (392, 'Earl', 'Pierce', '<EMAIL>', 'Male', '192.168.3.11'), (393, 'Martin', 'Carpenter', '<EMAIL>', 'Male', '172.16.17.32'), (394, 'Barbara', 'Snyder', '<EMAIL>', 'Female', '172.16.58.3'), (395, 'Lillian', 'Lynch', '<EMAIL>', 'Female', '192.168.127.12'), (396, 'Katherine', 'Weaver', '<EMAIL>', 'Female', '172.16.58.3'), (397, 'Kelly', 'Simpson', '<EMAIL>', 'Female', '172.16.17.32'), (398, 'Karen', 'Mccoy', '<EMAIL>', 'Female', '192.168.3.11'), (399, 'Jennifer', 'Robinson', '<EMAIL>', 'Female', '172.16.58.3'), (400, 'Gerald', 'Moreno', '<EMAIL>', 'Male', '172.16.17.32'), (401, 'Sara', 'Mccoy', '<EMAIL>', 'Female', '252.102.140.251'), (402, 'Harold', 'Watson', '<EMAIL>', 'Male', '247.5.117.133'), (403, 'Terry', 'Palmer', '<EMAIL>', 'Male', '172.16.58.3'), (404, 'Anthony', 'Austin', '<EMAIL>', 'Male', '192.168.3.11'), (405, 'Nicole', 'Allen', '<EMAIL>', 'Female', '192.168.3.11'), (406, 'Russell', 'Perry', '<EMAIL>', 'Male', '172.16.58.3'), (407, 'Aaron', 'Ellis', '<EMAIL>', 'Male', '192.168.3.11'), (408, 'Martha', 'Harrison', '<EMAIL>', 'Female', '192.168.127.12'), (409, 'Clarence', 'Bryant', '<EMAIL>', 'Male', '192.168.3.11'), (410, 'Angela', 'Jacobs', '<EMAIL>', 'Female', '172.16.17.32'), (411, 'Antonio', 'Baker', '<EMAIL>', 'Male', '172.16.58.3'), (412, 'Roger', 'Wells', '<EMAIL>', 'Male', '192.168.127.12'), (413, 'Walter', 'Stanley', '<EMAIL>', 'Male', '3172.16.31.10'), (414, 'Christina', 'Garza', '<EMAIL>', 'Female', '172.16.17.32'), (415, 'Robert', 'Sanchez', '<EMAIL>', 'Male', '192.168.3.11'), (416, 'Joan', 'Fox', '<EMAIL>', 'Female', '192.168.3.11'), (417, 'Kathleen', 'George', '<EMAIL>', 'Female', '192.168.127.12'), (418, 'Arthur', 'Palmer', '<EMAIL>', 'Male', '192.168.3.11'), (419, 'Emily', 'Burns', '<EMAIL>', 'Female', '172.16.58.3'), (420, 'Billy', 'Wilson', '<EMAIL>', 'Male', '172.16.17.32'), (421, 'Antonio', 'Andrews', '<EMAIL>', 'Male', '172.16.31.10'), (422, 'Paul', 'Long', '<EMAIL>', 'Male', '172.16.58.3'), (423, 'Ronald', 'Campbell', '<EMAIL>', 'Male', '172.16.31.10'), (424, 'Jacqueline', 'Burke', '<EMAIL>', 'Female', '172.16.31.10'), (425, 'Mary', 'Ruiz', '<EMAIL>', 'Female', '192.168.127.12'), (426, 'Eric', 'Lopez', '<EMAIL>', 'Male', '172.16.31.10'), (427, 'Frances', 'Perry', '<EMAIL>', 'Female', '172.16.58.3'), (428, 'John', 'Bell', '<EMAIL>', 'Male', '192.168.3.11'), (429, 'Joshua', 'Lawrence', '<EMAIL>', 'Male', '192.168.127.12'), (430, 'Shawn', 'Fisher', '<EMAIL>', 'Male', '172.16.31.10'), (431, 'Denise', 'Walker', '<EMAIL>', 'Female', '192.168.127.12'), (432, 'Johnny', 'Baker', '<EMAIL>', 'Male', '253.253.132.90'), (433, 'Richard', 'Webb', '<EMAIL>', 'Male', '172.16.17.32'), (434, 'Philip', 'Ward', '<EMAIL>', 'Male', '172.16.31.10'), (435, 'Dorothy', 'Fowler', '<EMAIL>', 'Female', '172.16.58.3'), (436, 'Martin', 'Hall', '<EMAIL>', 'Male', '192.168.127.12'), (437, 'Nancy', 'Turner', '<EMAIL>', 'Female', '192.168.127.12'), (438, 'Diane', 'Crawford', '<EMAIL>', 'Female', '244.97.212.254'), (439, 'Melissa', 'James', '<EMAIL>', 'Female', '192.168.3.11'), (440, 'Irene', 'Warren', '<EMAIL>', 'Female', '172.16.58.3'), (441, 'Gloria', 'White', '<EMAIL>', 'Female', '172.16.58.3'), (442, 'George', 'Boyd', '<EMAIL>', 'Male', '192.168.127.12'), (443, 'Michelle', 'Reyes', '<EMAIL>', 'Female', '172.16.31.10'), (444, 'Dennis', 'Edwards', '<EMAIL>', 'Male', '192.168.127.12'), (445, 'Scott', 'Ruiz', '<EMAIL>', 'Male', '192.168.3.11'), (446, 'Heather', 'Elliott', '<EMAIL>', 'Female', '192.168.127.12'), (447, 'Steven', 'Lawson', '<EMAIL>', 'Male', '192.168.127.12'), (448, 'Juan', 'Rodriguez', '<EMAIL>', 'Male', '192.168.127.12'), (449, 'Emily', 'Scott', '<EMAIL>', 'Female', '172.16.31.10'), (450, 'Anna', 'Daniels', '<EMAIL>', 'Female', '192.168.127.12'), (451, 'Henry', 'Bennett', '<EMAIL>', 'Male', '172.16.31.10'), (452, 'Joan', 'Rice', '<EMAIL>', 'Female', '192.168.127.12'), (453, 'Ruth', 'Graham', '<EMAIL>', 'Female', '192.168.127.12'), (454, 'Diane', 'Gardner', '<EMAIL>', 'Female', '172.16.58.3'), (455, 'Donna', 'Bennett', '<EMAIL>', 'Female', '172.16.58.3'), (456, 'Irene', 'Nelson', '<EMAIL>', 'Female', '172.16.17.32'), (457, 'Tina', 'Riley', '<EMAIL>', 'Female', '192.168.3.11'), (458, 'Tina', 'Pierce', '<EMAIL>', 'Female', '172.16.31.10'), (459, 'Bobby', 'Campbell', '<EMAIL>', 'Male', '192.168.127.12'), (460, 'Russell', 'Boyd', '<EMAIL>', 'Male', '192.168.3.11'), (461, 'Margaret', 'Marshall', '<EMAIL>', 'Female', '192.168.3.11'), (462, 'Rebecca', 'Diaz', '<EMAIL>', 'Female', '172.16.58.3'), (463, 'Deborah', 'Mendoza', '<EMAIL>', 'Female', '192.168.3.11'), (464, 'Emily', 'Mendoza', '<EMAIL>', 'Female', '172.16.17.32'), (465, 'Paul', 'Oliver', '<EMAIL>', 'Male', '192.168.3.11'), (466, 'Laura', 'Howard', '<EMAIL>', 'Female', '192.168.3.11'), (467, 'Teresa', 'Wells', '<EMAIL>', 'Female', '192.168.127.12'), (468, 'Alice', 'Bell', '<EMAIL>', 'Female', '172.16.17.32'), (469, 'Carlos', 'Patterson', '<EMAIL>', 'Male', '192.168.3.11'), (470, 'Brenda', 'Gutierrez', '<EMAIL>', 'Female', '242.251.109.41'), (471, 'Patrick', 'Harper', '<EMAIL>', 'Male', '172.16.17.32'), (472, 'Diane', 'Nichols', '<EMAIL>', 'Female', '192.168.127.12'), (473, 'Jack', 'Howard', '<EMAIL>', 'Male', '172.16.31.10'), (474, 'Edward', 'Duncan', '<EMAIL>', 'Male', '192.168.127.12'), (475, 'Maria', 'Sanchez', '<EMAIL>', 'Female', '172.16.31.10'), (476, 'Arthur', 'Snyder', '<EMAIL>', 'Male', '172.16.31.10'), (477, 'Carol', 'Romero', '<EMAIL>', 'Female', '172.16.58.3'), (478, 'Philip', 'Wheeler', '<EMAIL>', 'Male', '192.168.127.12'), (479, 'Eric', 'Stone', '<EMAIL>', 'Male', '192.168.127.12'), (480, 'Louis', 'Hall', '<EMAIL>', 'Male', '192.168.127.12'), (481, 'Doris', 'Olson', '<EMAIL>', 'Female', '172.16.17.32'), (482, 'Terry', 'Tucker', '<EMAIL>', 'Male', '172.16.31.10'), (483, 'Alan', 'Wheeler', '<EMAIL>', 'Male', '172.16.58.3'), (484, 'Catherine', 'Arnold', '<EMAIL>', 'Female', '192.168.127.12'), (485, 'Jimmy', 'Duncan', '<EMAIL>', 'Male', '192.168.127.12'), (486, 'Dennis', 'Gibson', '<EMAIL>', 'Male', '172.16.17.32'), (487, 'Theresa', 'Johnston', '<EMAIL>', 'Female', '246.50.151.194'), (488, 'Henry', 'Dixon', '<EMAIL>', 'Male', '192.168.127.12'), (489, 'Jesse', 'Romero', '<EMAIL>', 'Male', '172.16.58.3'), (490, 'Jennifer', 'Coleman', '<EMAIL>', 'Female', '192.168.127.12'), (491, 'Doris', 'Perry', '<EMAIL>', 'Female', '172.16.31.10'), (492, 'Kathleen', 'Kennedy', '<EMAIL>', 'Female', '172.16.17.32'), (493, 'Lawrence', 'Gutierrez', '<EMAIL>', 'Male', '192.168.127.12'), (494, 'Paula', 'Bailey', '<EMAIL>', 'Female', '192.168.127.12'), (495, 'Russell', 'Andrews', '<EMAIL>', 'Male', '245.99.219.141'), (496, 'Janice', 'Sims', '<EMAIL>', 'Female', '172.16.17.32'), (497, 'Thomas', 'Day', '<EMAIL>', 'Male', '192.168.3.11'), (498, 'Bruce', 'Payne', '<EMAIL>', 'Male', '192.168.3.11'), (499, 'Jason', 'Williams', '<EMAIL>', 'Male', '192.168.127.12'), (500, 'Marilyn', 'Bowman', '<EMAIL>', 'Female', '172.16.31.10'), (501, 'Andrew', 'Andrews', '<EMAIL>', 'Male', '127.83.106.76'), (502, 'Sharon', 'Smith', '<EMAIL>', 'Female', '192.168.3.11'), (503, 'Bobby', 'Hansen', '<EMAIL>', 'Male', '127.253.121.8'), (504, 'Joe', 'Flores', '<EMAIL>', 'Male', '172.16.17.32'), (505, 'Helen', 'Chapman', '<EMAIL>', 'Female', '172.16.31.10'), (506, 'Lois', 'White', '<EMAIL>', 'Female', '192.168.127.12'), (507, 'Antonio', 'Carroll', '<EMAIL>', 'Male', '192.168.127.12'), (508, 'Craig', 'Evans', '<EMAIL>', 'Male', '172.16.17.32'), (509, 'Keith', 'Murphy', '<EMAIL>', 'Male', '192.168.127.12'), (510, 'Lisa', 'Watson', '<EMAIL>', 'Female', '0.53.51.18'), (511, 'Timothy', 'George', '<EMAIL>', 'Male', '172.16.31.10'), (512, 'Gerald', 'Garza', '<EMAIL>', 'Male', '172.16.31.10'), (513, 'Stephen', 'Palmer', '<EMAIL>', 'Male', '172.16.31.10'), (514, 'Terry', 'Gomez', '<EMAIL>', 'Male', '192.168.127.12'), (515, 'Victor', 'Turner', '<EMAIL>', 'Male', '192.168.127.12'), (516, 'Katherine', 'Jenkins', '<EMAIL>', 'Female', '192.168.127.12'), (517, 'Gerald', 'West', '<EMAIL>', 'Male', '172.16.58.3'), (518, 'Howard', 'Reynolds', '<EMAIL>', 'Male', '172.16.17.32'), (519, 'Joshua', 'Olson', '<EMAIL>', 'Male', '172.16.17.32'), (520, 'Thomas', 'Diaz', '<EMAIL>', 'Male', '192.168.127.12'), (521, 'Alice', 'Peters', '<EMAIL>', 'Female', '192.168.3.11'), (522, 'Shawn', 'Moore', '<EMAIL>', 'Male', '172.16.58.3'), (523, 'Judith', 'Gonzales', '<EMAIL>', 'Female', '192.168.3.11'), (524, 'Martha', 'Cox', '<EMAIL>', 'Female', '192.168.127.12'), (525, 'Kevin', 'Freeman', '<EMAIL>', 'Male', '172.16.58.3'), (526, 'Michael', 'Williamson', '<EMAIL>', 'Male', '255.73.11.224'), (527, 'Martha', 'Stephens', '<EMAIL>', 'Female', '172.16.58.3'), (528, 'Anthony', 'Lane', '<EMAIL>', 'Male', '192.168.127.12'), (529, 'Joe', 'Bell', '<EMAIL>', 'Male', '172.16.17.32'), (530, 'Judy', 'Lawson', '<EMAIL>', 'Female', '172.16.17.32'), (531, 'Judith', 'Adams', '<EMAIL>', 'Female', '192.168.127.12'), (532, 'Joe', 'Fields', '<EMAIL>', 'Male', '6192.168.127.12'), (533, 'Julia', 'Howard', '<EMAIL>', 'Female', '192.168.127.12'), (534, 'Timothy', 'Wagner', '<EMAIL>', 'Male', '192.168.127.12'), (535, 'Andrew', 'Hughes', '<EMAIL>', 'Male', '172.16.31.10'), (536, 'Jacqueline', 'Patterson', '<EMAIL>', 'Female', '192.168.3.11'), (537, 'Carolyn', 'Ruiz', '<EMAIL>', 'Female', '172.16.31.10'), (538, 'Heather', 'Richardson', '<EMAIL>', 'Female', '172.16.58.3'), (539, 'Juan', 'Wheeler', '<EMAIL>', 'Male', '172.16.58.3'), (540, 'Charles', 'Thompson', '<EMAIL>', 'Male', '192.168.3.11'), (541, 'Annie', 'Wallace', '<EMAIL>', 'Female', '172.16.17.32'), (542, 'Melissa', 'Gardner', '<EMAIL>', 'Female', '172.16.17.32'), (543, 'Jane', 'Gomez', '<EMAIL>', 'Female', '192.168.127.12'), (544, 'Cheryl', 'Edwards', '<EMAIL>', 'Female', '192.168.3.11'), (545, 'Steven', 'Wilson', '<EMAIL>', 'Male', '172.16.17.32'), (546, 'Louise', 'Bradley', '<EMAIL>', 'Female', '192.168.3.11'), (547, 'Rose', 'Morrison', '<EMAIL>', 'Female', '192.168.3.11'), (548, 'Bobby', 'Price', '<EMAIL>', 'Male', '172.16.31.10'), (549, 'Nicholas', 'Sims', '<EMAIL>', 'Male', '192.168.127.12'), (550, 'Keith', 'Phillips', '<EMAIL>', 'Male', '172.16.31.10'), (551, 'Ralph', 'Coleman', '<EMAIL>', 'Male', '252.60.192.98'), (552, 'Martin', 'Alexander', '<EMAIL>', 'Male', '172.16.31.10'), (553, 'Janet', 'Willis', '<EMAIL>', 'Female', '192.168.3.11'), (554, 'Catherine', 'Moreno', '<EMAIL>', 'Female', '172.16.58.3'), (555, 'Emily', 'Hawkins', '<EMAIL>', 'Female', '172.16.58.3'), (556, 'Jeffrey', 'Stevens', '<EMAIL>', 'Male', '172.16.17.32'), (557, 'Sarah', 'Fuller', '<EMAIL>', 'Female', '192.168.3.11'), (558, 'Martin', 'Foster', '<EMAIL>', 'Male', '192.168.3.11'), (559, 'Brandon', 'Williams', '<EMAIL>', 'Male', '172.16.17.32'), (560, 'Jeremy', 'Fuller', '<EMAIL>', 'Male', '192.168.127.12'), (561, 'Janice', 'Woods', '<EMAIL>', 'Female', '172.16.17.32'), (562, 'Linda', 'Flores', '<EMAIL>', 'Female', '172.16.31.10'), (563, 'Earl', 'Fowler', '<EMAIL>', 'Male', '192.168.3.11'), (564, 'Harry', 'Burton', '<EMAIL>', 'Male', '192.168.127.12'), (565, 'Stephanie', 'Harvey', '<EMAIL>', 'Female', '172.16.58.3'), (566, 'Irene', 'Willis', '<EMAIL>', 'Female', '172.16.58.3'), (567, 'Antonio', 'Snyder', '<EMAIL>', 'Male', '192.168.127.12'), (568, 'Donald', 'Chavez', '<EMAIL>', 'Male', '249.49.152.108'), (569, 'Emily', 'Grant', '<EMAIL>', 'Female', '192.168.3.11'), (570, 'Harry', 'Hunter', '<EMAIL>', 'Male', '172.16.31.10'), (571, 'Kevin', 'Webb', '<EMAIL>', 'Male', '240.35.108.91'), (572, 'Benjamin', 'Robinson', '<EMAIL>', 'Male', '192.168.3.11'), (573, 'Carol', 'Lawson', '<EMAIL>', 'Female', '192.168.3.11'), (574, 'Willie', 'Crawford', '<EMAIL>', 'Male', '172.16.58.3'), (575, 'Amy', 'Richardson', '<EMAIL>', 'Female', '172.16.58.3'), (576, 'Elizabeth', 'Knight', '<EMAIL>', 'Female', '172.16.58.3'), (577, 'Susan', 'George', '<EMAIL>', 'Female', '192.168.127.12'), (578, 'Scott', 'Martinez', '<EMAIL>', 'Male', '192.168.127.12'), (579, 'Martin', 'Martinez', '<EMAIL>', 'Male', '192.168.3.11'), (580, 'Johnny', 'Hanson', '<EMAIL>', 'Male', '172.16.58.3'), (581, 'James', 'Myers', '<EMAIL>', 'Male', '247.78.6.156'), (582, 'Mark', 'Little', '<EMAIL>', 'Male', '192.168.127.12'), (583, 'Walter', 'Turner', '<EMAIL>', 'Male', '172.16.17.32'), (584, 'Angela', 'Jacobs', '<EMAIL>', 'Female', '172.16.58.3'), (585, 'Sandra', 'Brown', '<EMAIL>', 'Female', '172.16.31.10'), (586, 'Louis', 'Elliott', '<EMAIL>', 'Male', '172.16.58.3'), (587, 'Joe', 'Medina', '<EMAIL>', 'Male', '172.16.31.10'), (588, 'Harold', 'Taylor', '<EMAIL>', 'Male', '172.16.58.3'), (589, 'Rose', 'Brown', '<EMAIL>', 'Female', '172.16.58.3'), (590, 'Debra', 'Fisher', '<EMAIL>', 'Female', '192.168.3.11'), (591, 'Donna', 'Grant', '<EMAIL>', 'Female', '172.16.58.3'), (592, 'Sarah', 'Romero', '<EMAIL>', 'Female', '172.16.17.32'), (593, 'Lillian', 'Jackson', '<EMAIL>', 'Female', '192.168.127.12'), (594, 'Evelyn', 'Robinson', '<EMAIL>', 'Female', '192.168.3.11'), (595, 'Joan', 'James', '<EMAIL>', 'Female', '172.16.58.3'), (596, 'Ryan', 'Cox', '<EMAIL>', 'Male', '192.168.127.12'), (597, 'Raymond', 'Chapman', '<EMAIL>', 'Male', '172.16.58.3'), (598, 'Edward', 'Simpson', '<EMAIL>', 'Male', '172.16.31.10'), (599, 'Ashley', 'Cook', '<EMAIL>', 'Female', '192.168.3.11'), (600, 'Richard', 'Rodriguez', '<EMAIL>', 'Male', '172.16.17.32'), (601, 'Martha', 'Bowman', 'mbowmango<EMAIL>', 'Female', '172.16.31.10'), (602, 'Jesse', 'Morris', '<EMAIL>', 'Male', '172.16.31.10'), (603, 'Laura', 'Patterson', '<EMAIL>', 'Female', '192.168.127.12'), (604, 'Eric', 'Carpenter', '<EMAIL>', 'Male', '247.230.91.247'), (605, 'Jason', 'Ryan', '<EMAIL>', 'Male', '172.16.17.32'), (606, 'Dorothy', 'Rodriguez', '<EMAIL>', 'Female', '172.16.58.3'), (607, 'Johnny', 'Fields', '<EMAIL>', 'Male', '172.16.58.3'), (608, 'Steve', 'Chapman', '<EMAIL>', 'Male', '172.16.31.10'), (609, 'Steven', 'Bailey', '<EMAIL>', 'Male', '10.205.146.78'), (610, 'Marie', 'Bryant', '<EMAIL>', 'Female', '172.16.58.3'), (611, 'Joe', 'Jones', '<EMAIL>', 'Male', '172.16.31.10'), (612, 'Gary', 'Peters', '<EMAIL>', 'Male', '192.168.127.12'), (613, 'Richard', 'Riley', '<EMAIL>', 'Male', '192.168.3.11'), (614, 'Deborah', 'Rodriguez', '<EMAIL>', 'Female', '192.168.3.11'), (615, 'Rebecca', 'Cox', '<EMAIL>', 'Female', '172.16.31.10'), (616, 'Todd', 'Schmidt', '<EMAIL>', 'Male', '172.16.17.32'), (617, 'Louis', 'Reid', '<EMAIL>', 'Male', '247.104.141.19'), (618, 'Douglas', 'Harris', '<EMAIL>', 'Male', '172.16.31.10'), (619, 'Judy', 'James', '<EMAIL>', 'Female', '192.168.127.12'), (620, 'Jose', 'Morrison', '<EMAIL>', 'Male', '172.16.58.3'), (621, 'George', 'Gonzales', '<EMAIL>', 'Male', '172.16.58.3'), (622, 'Craig', 'Mason', '<EMAIL>', 'Male', '172.16.58.3'), (623, 'Larry', 'Ray', '<EMAIL>', 'Male', '249.146.32.8'), (624, 'Brian', 'Gibson', '<EMAIL>', 'Male', '172.16.58.3'), (625, 'Randy', 'Moore', '<EMAIL>', 'Male', '192.168.127.12'), (626, 'Marie', 'Lawson', '<EMAIL>', 'Female', '192.168.127.12'), (627, 'Todd', 'Mitchell', '<EMAIL>', 'Male', '244.208.72.40'), (628, 'Michael', 'Weaver', '<EMAIL>', 'Male', '172.16.17.32'), (629, 'Joyce', 'Perry', '<EMAIL>', 'Female', '172.16.17.32'), (630, 'Jeffrey', 'Dixon', '<EMAIL>', 'Male', '172.16.58.3'), (631, 'Peter', 'Davis', '<EMAIL>', 'Male', '172.16.31.10'), (632, 'Donald', 'Wells', '<EMAIL>', 'Male', '172.16.17.32'), (633, 'Heather', 'Bowman', '<EMAIL>', 'Female', '192.168.3.11'), (634, 'Joshua', 'Wallace', '<EMAIL>', 'Male', '192.168.127.12'), (635, 'Jean', 'Gardner', '<EMAIL>', 'Female', '172.16.31.10'), (636, 'Steven', 'Nelson', '<EMAIL>', 'Male', '172.16.58.3'), (637, 'Ryan', 'Kelley', '<EMAIL>', 'Male', '172.16.17.32'), (638, 'Ernest', 'Moreno', '<EMAIL>', 'Male', '172.16.58.3'), (639, 'Brandon', 'Reyes', '<EMAIL>', 'Male', '243.184.230.31'), (640, 'Katherine', 'Carr', '<EMAIL>', 'Female', '192.168.127.12'), (641, 'Angela', 'Green', '<EMAIL>', 'Female', '172.16.58.3'), (642, 'Carol', 'Gutierrez', '<EMAIL>', 'Female', '192.168.127.12'), (643, 'Tammy', 'Olson', '<EMAIL>', 'Female', '192.168.3.11'), (644, 'Julia', 'Clark', '<EMAIL>', 'Female', '172.16.58.3'), (645, 'Dorothy', 'Morris', '<EMAIL>', 'Female', '13.13.122.17'), (646, 'Carl', 'Stone', '<EMAIL>', 'Male', '172.16.17.32'), (647, 'Phillip', 'Morgan', '<EMAIL>', 'Male', '192.168.3.11'), (648, 'Juan', 'Mitchell', '<EMAIL>', 'Male', '172.16.17.32'), (649, 'Jacqueline', 'Davis', '<EMAIL>', 'Female', '254.29.238.18'), (650, 'Debra', 'Mitchell', '<EMAIL>', 'Female', '192.168.127.12'), (651, 'Timothy', 'Bennett', '<EMAIL>', 'Male', '192.168.127.12'), (652, 'Randy', 'Moreno', '<EMAIL>', 'Male', '192.168.127.12'), (653, 'Mildred', 'Morris', '<EMAIL>', 'Female', '192.168.3.11'), (654, 'Karen', 'Morgan', '<EMAIL>', 'Female', '192.168.3.11'), (655, 'Judy', 'Alexander', '<EMAIL>', 'Female', '244.126.48.160'); INSERT INTO `people_dummy_data` (`id`, `first_name`, `last_name`, `email`, `gender`, `ip_address`) VALUES (656, 'Carolyn', 'Medina', '<EMAIL>', 'Female', '192.168.3.11'), (657, 'Alice', 'Hall', '<EMAIL>', 'Female', '172.16.17.32'), (658, 'Victor', 'Watson', '<EMAIL>', 'Male', '192.168.3.11'), (659, 'Virginia', 'Wright', '<EMAIL>', 'Female', '172.16.17.32'), (660, 'Fred', 'Stone', '<EMAIL>', 'Male', '192.168.3.11'), (661, 'Christopher', 'Elliott', '<EMAIL>', 'Male', '172.16.31.10'), (662, 'Thomas', 'Franklin', '<EMAIL>', 'Male', '192.168.3.11'), (663, 'Janice', 'Pierce', '<EMAIL>', 'Female', '172.16.58.3'), (664, 'Denise', 'Flores', '<EMAIL>', 'Female', '172.16.17.32'), (665, 'James', 'Fuller', '<EMAIL>', 'Male', '192.168.3.11'), (666, 'Judith', 'Bennett', '<EMAIL>', 'Female', '172.16.17.32'), (667, 'Benjamin', 'Cunningham', '<EMAIL>', 'Male', '192.168.127.12'), (668, 'Patricia', 'Harper', '<EMAIL>', 'Female', '244.78.103.173'), (669, 'Elizabeth', 'Fox', '<EMAIL>', 'Female', '1192.168.3.11'), (670, 'Beverly', 'Ortiz', '<EMAIL>', 'Female', '172.16.58.3'), (671, 'Patricia', 'Castillo', '<EMAIL>', 'Female', '192.168.3.11'), (672, 'Louise', 'Hughes', '<EMAIL>', 'Female', '192.168.3.11'), (673, 'Brandon', 'Banks', '<EMAIL>', 'Male', '192.168.3.11'), (674, 'Sharon', 'Elliott', '<EMAIL>', 'Female', '192.168.127.12'), (675, 'Wanda', 'Olson', '<EMAIL>', 'Female', '172.16.58.3'), (676, 'Kathleen', 'Ray', '<EMAIL>', 'Female', '240.197.215.142'), (677, 'Gloria', 'Peterson', '<EMAIL>', 'Female', '172.16.17.32'), (678, 'Mildred', 'Warren', '<EMAIL>', 'Female', '192.168.127.12'), (679, 'Margaret', 'Robertson', '<EMAIL>', 'Female', '192.168.3.11'), (680, 'Frances', 'Peterson', '<EMAIL>', 'Female', '172.16.58.3'), (681, 'Kenneth', 'Kelly', '<EMAIL>', 'Male', '172.16.31.10'), (682, 'Johnny', 'Robinson', '<EMAIL>', 'Male', '172.16.58.3'), (683, 'Jane', 'Gordon', '<EMAIL>', 'Female', '172.16.31.10'), (684, 'Phyllis', 'Harris', '<EMAIL>', 'Female', '172.16.17.32'), (685, 'Sara', 'Wheeler', '<EMAIL>', 'Female', '172.16.17.32'), (686, 'Michael', 'Moreno', '<EMAIL>', 'Male', '192.168.3.11'), (687, 'Harry', 'Larson', '<EMAIL>', 'Male', '172.16.31.10'), (688, 'Kathleen', 'Romero', '<EMAIL>', 'Female', '172.16.31.10'), (689, 'Samuel', 'Long', '<EMAIL>', 'Male', '192.168.3.11'), (690, 'Susan', 'Chapman', '<EMAIL>', 'Female', '172.16.17.32'), (691, 'Cheryl', 'Richards', '<EMAIL>', 'Female', '192.168.127.12'), (692, 'Kelly', 'Austin', '<EMAIL>', 'Female', '192.168.127.12'), (693, 'Jean', 'Sanders', '<EMAIL>', 'Female', '192.168.3.11'), (694, 'Roy', 'Carter', '<EMAIL>', 'Male', '172.16.17.32'), (695, 'Julie', 'Weaver', '<EMAIL>', 'Female', '172.16.31.10'), (696, 'Ralph', 'James', '<EMAIL>', 'Male', '192.168.3.11'), (697, 'Betty', 'Ortiz', '<EMAIL>', 'Female', '172.16.17.32'), (698, 'Steve', 'Fisher', '<EMAIL>', 'Male', '192.168.127.12'), (699, 'Deborah', 'Smith', '<EMAIL>', 'Female', '10.207.154.214'), (700, 'Elizabeth', 'Wright', '<EMAIL>', 'Female', '192.168.127.12'), (701, 'Harold', 'Fields', '<EMAIL>', 'Male', '172.16.31.10'), (702, 'Tina', 'Green', '<EMAIL>', 'Female', '172.16.17.32'), (703, 'Bruce', 'Chavez', '<EMAIL>', 'Male', '172.16.17.32'), (704, 'Ralph', 'Gray', '<EMAIL>', 'Male', '172.16.17.32'), (705, 'Martin', 'Garrett', '<EMAIL>', 'Male', '172.16.58.3'), (706, 'Fred', 'Medina', '<EMAIL>', 'Male', '192.168.127.12'), (707, 'Teresa', 'Bailey', '<EMAIL>', 'Female', '172.16.17.32'), (708, 'Helen', 'Parker', '<EMAIL>', 'Female', '192.168.127.12'), (709, 'Doris', 'Montgomery', '<EMAIL>', 'Female', '1192.168.127.12'), (710, 'Harold', 'Mitchell', '<EMAIL>', 'Male', '192.168.127.12'), (711, 'Jane', 'Carpenter', '<EMAIL>', 'Female', '172.16.17.32'), (712, 'Juan', 'Wheeler', '<EMAIL>', 'Male', '192.168.3.11'), (713, 'Aaron', 'Edwards', '<EMAIL>', 'Male', '172.16.58.3'), (714, 'Jane', 'Jenkins', '<EMAIL>', 'Female', '192.168.3.11'), (715, 'Rachel', 'Hill', '<EMAIL>', 'Female', '172.16.31.10'), (716, 'Christine', 'Mills', '<EMAIL>', 'Female', '172.16.17.32'), (717, 'Phillip', 'Schmidt', '<EMAIL>', 'Male', '192.168.127.12'), (718, 'Juan', 'Lawrence', '<EMAIL>', 'Male', '172.16.58.3'), (719, 'Albert', 'Robinson', '<EMAIL>', 'Male', '192.168.127.12'), (720, 'Heather', 'Foster', '<EMAIL>', 'Female', '172.16.17.32'), (721, 'Clarence', 'Cox', '<EMAIL>', 'Male', '172.16.31.10'), (722, 'Billy', 'Hudson', '<EMAIL>', 'Male', '172.16.58.3'), (723, 'Anna', 'Webb', '<EMAIL>', 'Female', '172.16.58.3'), (724, 'Sandra', 'Reyes', '<EMAIL>', 'Female', '172.16.58.3'), (725, 'Cheryl', 'Thompson', '<EMAIL>', 'Female', '172.16.58.3'), (726, 'Mildred', 'Sims', '<EMAIL>', 'Female', '192.168.3.11'), (727, 'Anna', 'Howard', '<EMAIL>', 'Female', '172.16.17.32'), (728, 'Laura', 'Washington', '<EMAIL>', 'Female', '172.16.58.3'), (729, 'Jennifer', 'West', '<EMAIL>', 'Female', '172.16.58.3'), (730, 'Cynthia', 'Jackson', '<EMAIL>', 'Female', '248.216.107.110'), (731, 'Louis', 'Washington', '<EMAIL>', 'Male', '172.16.58.3'), (732, 'Karen', 'Jacobs', '<EMAIL>', 'Female', '172.16.31.10'), (733, 'Justin', 'Carter', '<EMAIL>', 'Male', '192.168.127.12'), (734, 'Jeremy', 'Fisher', '<EMAIL>', 'Male', '172.16.17.32'), (735, 'Roy', 'Howell', '<EMAIL>', 'Male', '172.16.31.10'), (736, 'Howard', 'Porter', '<EMAIL>', 'Male', '172.16.17.32'), (737, 'Justin', 'Carr', '<EMAIL>', 'Male', '240.223.101.112'), (738, 'Victor', 'Garza', '<EMAIL>', 'Male', '192.168.3.11'), (739, 'Evelyn', 'Spencer', '<EMAIL>', 'Female', '172.16.31.10'), (740, 'Johnny', 'Kennedy', '<EMAIL>', 'Male', '172.16.31.10'), (741, 'Paul', 'Pierce', '<EMAIL>', 'Male', '172.16.31.10'), (742, 'Johnny', 'Ramirez', '<EMAIL>', 'Male', '192.168.127.12'), (743, 'Joe', 'Carroll', '<EMAIL>', 'Male', '192.168.127.12'), (744, 'Bobby', 'Morris', '<EMAIL>', 'Male', '172.16.31.10'), (745, 'Maria', 'Harper', '<EMAIL>', 'Female', '250.36.62.29'), (746, 'Carolyn', 'James', '<EMAIL>', 'Female', '29.18.43.102'), (747, 'Karen', 'Burke', '<EMAIL>', 'Female', '172.16.31.10'), (748, 'Samuel', 'Henry', '<EMAIL>', 'Male', '172.16.17.32'), (749, 'Maria', 'Powell', '<EMAIL>', 'Female', '192.168.127.12'), (750, 'Albert', 'Coleman', '<EMAIL>', 'Male', '172.16.58.3'), (751, 'Lois', 'Ruiz', '<EMAIL>', 'Female', '172.16.17.32'), (752, 'Catherine', 'Stephens', '<EMAIL>', 'Female', '192.168.127.12'), (753, 'Edward', 'Holmes', '<EMAIL>', 'Male', '192.168.127.12'), (754, 'Peter', 'James', '<EMAIL>', 'Male', '172.16.17.32'), (755, 'Barbara', 'Morris', '<EMAIL>', 'Female', '172.16.58.3'), (756, 'Benjamin', 'Ross', '<EMAIL>', 'Male', '172.16.58.3'), (757, 'Virginia', 'Ross', '<EMAIL>', 'Female', '172.16.58.3'), (758, 'Andrew', 'Sanchez', '<EMAIL>', 'Male', '192.168.3.11'), (759, 'Billy', 'Howell', '<EMAIL>', 'Male', '192.168.3.11'), (760, 'Todd', 'Bailey', '<EMAIL>', 'Male', '192.168.127.12'), (761, 'Susan', 'Porter', '<EMAIL>', 'Female', '172.16.17.32'), (762, 'Frank', 'Dean', '<EMAIL>', 'Male', '192.168.3.11'), (763, 'Randy', 'Robertson', '<EMAIL>', 'Male', '172.16.58.3'), (764, 'Gregory', 'George', '<EMAIL>', 'Male', '172.16.17.32'), (765, 'Jimmy', 'Hall', '<EMAIL>', 'Male', '172.16.17.32'), (766, 'Dorothy', 'Fields', '<EMAIL>', 'Female', '192.168.127.12'), (767, 'Linda', 'Jones', '<EMAIL>', 'Female', '172.16.31.10'), (768, 'Alice', 'Campbell', '<EMAIL>', 'Female', '172.16.31.10'), (769, 'Lawrence', 'Hudson', '<EMAIL>', 'Male', '172.16.17.32'), (770, 'Judy', 'Garza', '<EMAIL>', 'Female', '172.16.31.10'), (771, 'Michelle', 'Martin', '<EMAIL>', 'Female', '192.168.127.12'), (772, 'Scott', 'Gordon', '<EMAIL>', 'Male', '192.168.127.12'), (773, 'Patricia', 'Burke', '<EMAIL>', 'Female', '192.168.127.12'), (774, 'Matthew', 'Morrison', '<EMAIL>', 'Male', '192.168.127.12'), (775, 'Eric', 'Mccoy', '<EMAIL>', 'Male', '192.168.127.12'), (776, 'Margaret', 'Morales', '<EMAIL>', 'Female', '172.16.31.10'), (777, 'Anne', 'Duncan', '<EMAIL>', 'Female', '172.16.17.32'), (778, 'Anna', 'Russell', '<EMAIL>', 'Female', '172.16.31.10'), (779, 'Rachel', 'Duncan', '<EMAIL>', 'Female', '192.168.127.12'), (780, 'Frank', 'Riley', '<EMAIL>', 'Male', '172.16.31.10'), (781, 'Sean', 'Ellis', '<EMAIL>', 'Male', '192.168.127.12'), (782, 'Kathy', 'Rivera', '<EMAIL>', 'Female', '172.16.17.32'), (783, 'Carol', 'Bell', '<EMAIL>', 'Female', '172.16.58.3'), (784, 'Scott', 'Hayes', '<EMAIL>', 'Male', '172.16.17.32'), (785, 'Jessica', 'Roberts', '<EMAIL>', 'Female', '172.16.17.32'), (786, 'David', 'Jackson', '<EMAIL>', 'Male', '192.168.3.11'), (787, 'Paul', 'Mcdonald', '<EMAIL>', 'Male', '172.16.17.32'), (788, 'Sarah', 'Hicks', '<EMAIL>', 'Female', '172.16.31.10'), (789, 'Ronald', 'Chavez', '<EMAIL>', 'Male', '172.16.17.32'), (790, 'Denise', 'Peters', '<EMAIL>', 'Female', '172.16.17.32'), (791, 'Daniel', 'Russell', '<EMAIL>', 'Male', '172.16.17.32'), (792, 'Carol', 'Fuller', '<EMAIL>', 'Female', '192.168.127.12'), (793, 'Phyllis', 'Olson', '<EMAIL>', 'Female', '172.16.31.10'), (794, 'Harry', 'Shaw', '<EMAIL>', 'Male', '192.168.127.12'), (795, 'Eugene', 'Rivera', '<EMAIL>', 'Male', '172.16.58.3'), (796, 'Shawn', 'Sullivan', '<EMAIL>', 'Male', '172.16.58.3'), (797, 'Beverly', 'Kelley', '<EMAIL>', 'Female', '192.168.127.12'), (798, 'Barbara', 'Ortiz', '<EMAIL>', 'Female', '192.168.3.11'), (799, 'Jacqueline', 'Murphy', '<EMAIL>', 'Female', '172.16.58.3'), (800, 'Terry', 'Jacobs', '<EMAIL>', 'Male', '172.16.31.10'), (801, 'Douglas', 'Olson', '<EMAIL>', 'Male', '241.175.54.0'), (802, 'John', 'Burns', '<EMAIL>', 'Male', '172.16.31.10'), (803, 'John', 'Fox', '<EMAIL>', 'Male', '172.16.31.10'), (804, 'Gerald', 'Barnes', '<EMAIL>', 'Male', '172.16.58.3'), (805, 'Wanda', 'Knight', '<EMAIL>', 'Female', '172.16.31.10'), (806, 'Howard', 'Murphy', '<EMAIL>', 'Male', '172.16.31.10'), (807, 'Albert', 'Morrison', '<EMAIL>', 'Male', '172.16.17.32'), (808, 'Gloria', 'Perry', '<EMAIL>', 'Female', '172.16.17.32'), (809, 'Eric', 'Harrison', '<EMAIL>', 'Male', '172.16.58.3'), (810, 'Timothy', 'Bishop', '<EMAIL>', 'Male', '0.226.32.243'), (811, 'Rachel', 'Olson', '<EMAIL>', 'Female', '172.16.31.10'), (812, 'Brenda', 'Graham', '<EMAIL>', 'Female', '172.16.31.10'), (813, 'Brandon', 'Woods', '<EMAIL>', 'Male', '127.197.197.219'), (814, 'Paula', 'Reynolds', '<EMAIL>', 'Female', '172.16.58.3'), (815, 'Ryan', 'Rose', '<EMAIL>', 'Male', '172.16.58.3'), (816, 'Norma', 'Spencer', '<EMAIL>', 'Female', '192.168.3.11'), (817, 'Raymond', 'Roberts', '<EMAIL>', 'Male', '192.168.3.11'), (818, 'Louis', 'Anderson', '<EMAIL>', 'Male', '192.168.127.12'), (819, 'Laura', 'Alvarez', '<EMAIL>', 'Female', '172.16.58.3'), (820, 'Ruth', 'Gomez', '<EMAIL>', 'Female', '192.168.127.12'), (821, 'Joseph', 'Moreno', '<EMAIL>', 'Male', '172.16.58.3'), (822, 'Cynthia', 'Ryan', '<EMAIL>', 'Female', '172.16.31.10'), (823, 'Jimmy', 'Willis', '<EMAIL>', 'Male', '192.168.3.11'), (824, 'Edward', 'Bradley', '<EMAIL>', 'Male', '172.16.31.10'), (825, 'Rachel', 'Arnold', '<EMAIL>', 'Female', '172.16.58.3'), (826, 'Jesse', 'Armstrong', '<EMAIL>', 'Male', '172.16.58.3'), (827, 'Jason', 'Roberts', '<EMAIL>', 'Male', '192.168.3.11'), (828, 'Jane', 'Schmidt', '<EMAIL>', 'Female', '242.203.7.212'), (829, 'Martha', 'Allen', '<EMAIL>', 'Female', '192.168.3.11'), (830, 'Richard', 'Gibson', '<EMAIL>', 'Male', '192.168.3.11'), (831, 'George', 'Olson', '<EMAIL>', 'Male', '172.16.17.32'), (832, 'Ronald', 'Gutierrez', '<EMAIL>', 'Male', '192.168.3.11'), (833, 'Albert', 'Bell', '<EMAIL>', 'Male', '172.16.31.10'), (834, 'Susan', 'Hill', '<EMAIL>', 'Female', '172.16.58.3'), (835, 'Jacqueline', 'Diaz', '<EMAIL>', 'Female', '172.16.58.3'), (836, 'Ruth', 'Garrett', '<EMAIL>', 'Female', '192.168.3.11'), (837, 'Jeffrey', 'Frazier', '<EMAIL>', 'Male', '192.168.3.11'), (838, 'Lori', 'Morales', '<EMAIL>', 'Female', '192.168.127.12'), (839, 'Gregory', 'Oliver', '<EMAIL>', 'Male', '29.33.76.176'), (840, 'Patrick', 'Chavez', '<EMAIL>', 'Male', '172.16.17.32'), (841, 'Jane', 'Williams', '<EMAIL>', 'Female', '172.16.31.10'), (842, 'Cynthia', 'Meyer', '<EMAIL>', 'Female', '242.30.135.163'), (843, 'Bobby', 'Lawson', '<EMAIL>', 'Male', '192.168.127.12'), (844, 'Margaret', 'Nichols', '<EMAIL>', 'Female', '172.16.58.3'), (845, 'Shawn', 'Lopez', '<EMAIL>', 'Male', '172.16.17.32'), (846, 'Martin', 'Parker', '<EMAIL>', 'Male', '172.16.31.10'), (847, 'Sara', 'Ellis', '<EMAIL>', 'Female', '192.168.3.11'), (848, 'Tina', 'Jacobs', '<EMAIL>', 'Female', '192.168.3.11'), (849, 'Ann', 'Ray', '<EMAIL>', 'Female', '192.168.3.11'), (850, 'Lois', 'Chavez', '<EMAIL>', 'Female', '172.16.31.10'), (851, 'Johnny', 'Sanders', '<EMAIL>', 'Male', '172.16.58.3'), (852, 'Steve', 'Reid', '<EMAIL>', 'Male', '172.16.58.3'), (853, 'Robin', 'Ruiz', '<EMAIL>', 'Female', '247.225.52.22'), (854, 'Amy', 'Ramirez', '<EMAIL>', 'Female', '192.168.127.12'), (855, 'Mark', 'Carpenter', '<EMAIL>', 'Male', '172.16.58.3'), (856, 'Kathy', 'Martin', '<EMAIL>', 'Female', '172.16.58.3'), (857, 'Rachel', 'Jackson', '<EMAIL>', 'Female', '172.16.31.10'), (858, 'James', 'Evans', '<EMAIL>', 'Male', '172.16.17.32'), (859, 'Philip', 'Stone', '<EMAIL>', 'Male', '192.168.3.11'), (860, 'Sara', 'Rose', '<EMAIL>', 'Female', '172.16.31.10'), (861, 'Pamela', 'Phillips', '<EMAIL>', 'Female', '172.16.31.10'), (862, 'Beverly', 'Ryan', '<EMAIL>', 'Female', '172.16.58.3'), (863, 'Scott', 'Harrison', '<EMAIL>', 'Male', '192.168.127.12'), (864, 'Jason', 'Ortiz', '<EMAIL>', 'Male', '172.16.17.32'), (865, 'Jonathan', 'Burke', '<EMAIL>', 'Male', '172.16.17.32'), (866, 'Alan', 'Black', '<EMAIL>', 'Male', '255.28.230.109'), (867, 'Samuel', 'Reed', '<EMAIL>', 'Male', '192.168.127.12'), (868, 'Gregory', 'Coleman', '<EMAIL>', 'Male', '172.16.31.10'), (869, 'Scott', 'Miller', '<EMAIL>', 'Male', '192.168.127.12'), (870, 'Cheryl', 'Gray', '<EMAIL>', 'Female', '192.168.127.12'), (871, 'Virginia', 'Wagner', '<EMAIL>', 'Female', '172.16.58.3'), (872, 'Mark', 'Smith', '<EMAIL>', 'Male', '172.16.31.10'), (873, 'Tammy', 'Mendoza', '<EMAIL>', 'Female', '172.16.17.32'), (874, 'John', 'Davis', '<EMAIL>', 'Male', '192.168.127.12'), (875, 'Pamela', 'Gonzales', '<EMAIL>', 'Female', '172.16.17.32'), (876, 'Shawn', 'Alvarez', '<EMAIL>', 'Male', '127.184.14.171'), (877, 'Doris', 'Holmes', '<EMAIL>', 'Female', '172.16.58.3'), (878, 'Angela', 'Lane', '<EMAIL>', 'Female', '192.168.127.12'), (879, 'Michelle', 'Sanchez', '<EMAIL>', 'Female', '172.16.31.10'), (880, 'Doris', 'Hicks', '<EMAIL>', 'Female', '172.16.58.3'), (881, 'Russell', 'Nguyen', '<EMAIL>', 'Male', '192.168.3.11'), (882, 'Christine', 'Morrison', '<EMAIL>', 'Female', '192.168.127.12'), (883, 'Bobby', 'Jordan', '<EMAIL>', 'Male', '172.16.31.10'), (884, 'Elizabeth', 'West', '<EMAIL>', 'Female', '172.16.58.3'), (885, 'Amanda', 'Fisher', '<EMAIL>', 'Female', '172.16.31.10'), (886, 'Todd', 'Olson', '<EMAIL>', 'Male', '172.16.31.10'), (887, 'Kathleen', 'Fernandez', '<EMAIL>', 'Female', '172.16.58.3'), (888, 'Alan', 'Morgan', '<EMAIL>', 'Male', '172.16.31.10'), (889, 'Juan', 'Oliver', '<EMAIL>', 'Male', '192.168.127.12'), (890, 'Andrea', 'Jordan', '<EMAIL>', 'Female', '172.16.31.10'), (891, 'Rachel', 'Knight', '<EMAIL>', 'Female', '192.168.3.11'), (892, 'Henry', 'Martinez', '<EMAIL>', 'Male', '192.168.127.12'), (893, 'Frances', 'Gray', '<EMAIL>', 'Female', '172.16.17.32'), (894, 'Nicholas', 'Miller', '<EMAIL>', 'Male', '172.16.31.10'), (895, 'Justin', 'Bryant', '<EMAIL>', 'Male', '172.16.31.10'), (896, 'Rachel', 'Smith', '<EMAIL>', 'Female', '192.168.3.11'), (897, 'Ralph', 'Coleman', '<EMAIL>', 'Male', '192.168.127.12'), (898, 'Clarence', 'Reed', '<EMAIL>', 'Male', '172.16.17.32'), (899, 'Raymond', 'Hall', '<EMAIL>', 'Male', '250.217.156.143'), (900, 'Doris', 'Carroll', '<EMAIL>', 'Female', '156.94.69.87'), (901, 'Kevin', 'Marshall', '<EMAIL>', 'Male', '172.16.58.3'), (902, 'Kevin', 'Nguyen', '<EMAIL>', 'Male', '172.16.58.3'), (903, 'Harry', 'Wallace', '<EMAIL>', 'Male', '172.16.17.32'), (904, 'Teresa', 'Turner', '<EMAIL>', 'Female', '192.168.127.12'), (905, 'Julia', 'Alexander', '<EMAIL>', 'Female', '172.16.31.10'), (906, 'Sara', 'Olson', '<EMAIL>', 'Female', '192.168.3.11'), (907, 'Michael', 'Welch', '<EMAIL>', 'Male', '172.16.58.3'), (908, 'Brandon', 'Pierce', '<EMAIL>', 'Male', '172.16.58.3'), (909, 'Richard', 'Nichols', '<EMAIL>', 'Male', '172.16.17.32'), (910, 'Laura', 'Scott', '<EMAIL>', 'Female', '192.168.127.12'), (911, 'Louis', 'Hughes', '<EMAIL>', 'Male', '172.16.31.10'), (912, 'Paula', 'Turner', '<EMAIL>', 'Female', '172.16.17.32'), (913, 'Donna', 'Rodriguez', '<EMAIL>', 'Female', '192.168.127.12'), (914, 'Andrew', 'Austin', '<EMAIL>', 'Male', '192.168.3.11'), (915, 'Catherine', 'Black', '<EMAIL>', 'Female', '192.168.127.12'), (916, 'Rose', 'Rogers', '<EMAIL>', 'Female', '172.16.17.32'), (917, 'Nicole', 'Boyd', '<EMAIL>', 'Female', '172.16.58.3'), (918, 'Samuel', 'Burns', '<EMAIL>', 'Male', '172.16.17.32'), (919, 'Douglas', 'Hunter', '<EMAIL>', 'Male', '172.16.58.3'), (920, 'David', 'Wallace', '<EMAIL>', 'Male', '192.168.127.12'), (921, 'Richard', 'Alexander', '<EMAIL>', 'Male', '172.16.58.3'), (922, 'Paul', 'Armstrong', '<EMAIL>', 'Male', '192.168.127.12'), (923, 'Carol', 'Garrett', '<EMAIL>', 'Female', '192.168.3.11'), (924, 'Ruby', 'Washington', '<EMAIL>', 'Female', '172.16.58.3'), (925, 'Kimberly', 'Franklin', '<EMAIL>', 'Female', '172.16.31.10'), (926, 'Ann', 'Bradley', '<EMAIL>', 'Female', '192.168.127.12'), (927, 'Keith', 'Wagner', '<EMAIL>', 'Male', '254.177.23.66'), (928, 'Mary', 'Jones', '<EMAIL>', 'Female', '248.131.136.138'), (929, 'Gregory', 'Vasquez', '<EMAIL>', 'Male', '192.168.3.11'), (930, 'Donna', 'Stevens', '<EMAIL>', 'Female', '172.16.58.3'), (931, 'George', 'Ross', '<EMAIL>', 'Male', '192.168.3.11'), (932, 'Larry', 'Garcia', '<EMAIL>', 'Male', '192.168.3.11'), (933, 'Jason', 'Lane', '<EMAIL>', 'Male', '172.16.58.3'), (934, 'Anna', 'Fowler', '<EMAIL>', 'Female', '172.16.17.32'), (935, 'Marilyn', 'Wells', '<EMAIL>', 'Female', '172.16.58.3'), (936, 'Lillian', 'Sims', '<EMAIL>', 'Female', '192.168.127.12'), (937, 'Thomas', 'Burke', '<EMAIL>', 'Male', '192.168.3.11'), (938, 'Amy', 'Mitchell', '<EMAIL>', 'Female', '192.168.127.12'), (939, 'Richard', 'Robinson', '<EMAIL>', 'Male', '172.16.58.3'), (940, 'Nancy', 'Henderson', '<EMAIL>', 'Female', '172.16.17.32'), (941, 'Jimmy', 'Allen', '<EMAIL>', 'Male', '172.16.31.10'), (942, 'Rachel', 'Ruiz', '<EMAIL>', 'Female', '192.168.3.11'), (943, 'George', 'Gilbert', '<EMAIL>', 'Male', '172.16.58.3'), (944, 'Ronald', 'Payne', '<EMAIL>', 'Male', '192.168.3.11'), (945, 'Brenda', 'Johnston', '<EMAIL>', 'Female', '192.168.127.12'), (946, 'Charles', 'Morrison', '<EMAIL>', 'Male', '140.113.109.219'), (947, 'Justin', 'Spencer', '<EMAIL>', 'Male', '192.168.3.11'), (948, 'Julie', 'Payne', '<EMAIL>', 'Female', '172.16.58.3'), (949, 'Amy', 'Jones', '<EMAIL>', 'Female', '172.16.31.10'), (950, 'Fred', 'Johnson', '<EMAIL>', 'Male', '2172.16.31.10'), (951, 'Earl', 'Fernandez', '<EMAIL>', 'Male', '192.168.3.11'), (952, 'Anna', 'Murphy', '<EMAIL>', 'Female', '172.16.58.3'), (953, 'George', 'Lynch', '<EMAIL>', 'Male', '192.168.3.11'), (954, 'Albert', 'Moore', '<EMAIL>', 'Male', '192.168.127.12'), (955, 'Lillian', 'Alexander', '<EMAIL>', 'Female', '172.16.58.3'), (956, 'Jeremy', 'Kim', '<EMAIL>', 'Male', '172.16.58.3'), (957, 'Joshua', 'Oliver', '<EMAIL>', 'Male', '192.168.3.11'), (958, 'Bobby', 'Henry', '<EMAIL>', 'Male', '172.16.58.3'), (959, 'Diana', 'Rose', '<EMAIL>', 'Female', '192.168.127.12'), (960, 'Alan', 'Murray', '<EMAIL>', 'Male', '172.16.31.10'), (961, 'Pamela', 'Cook', '<EMAIL>', 'Female', '172.16.58.3'), (962, 'Bruce', 'Meyer', '<EMAIL>', 'Male', '172.16.17.32'), (963, 'Paula', 'Marshall', '<EMAIL>', 'Female', '172.16.31.10'), (964, 'Sean', 'Cox', '<EMAIL>', 'Male', '172.16.31.10'), (965, 'Diana', 'Bennett', '<EMAIL>', 'Female', '172.16.58.3'), (966, 'Louise', 'Patterson', '<EMAIL>', 'Female', '192.168.127.12'), (967, 'Thomas', 'Bryant', '<EMAIL>', 'Male', '192.168.3.11'), (968, 'Ann', 'Brown', '<EMAIL>', 'Female', '172.16.31.10'), (969, 'Lisa', 'Ramos', '<EMAIL>', 'Female', '242.90.144.202'), (970, 'Lillian', 'Stephens', '<EMAIL>', 'Female', '244.47.170.180'), (971, 'Ruby', 'Hill', '<EMAIL>', 'Female', '192.168.3.11'), (972, 'Patrick', 'Torres', '<EMAIL>', 'Male', '192.168.127.12'), (973, 'Chris', 'Dean', '<EMAIL>', 'Male', '172.16.31.10'), (974, 'Shawn', 'Gilbert', '<EMAIL>', 'Male', '172.16.58.3'), (975, 'Ernest', 'Lopez', '<EMAIL>', 'Male', '192.168.127.12'), (976, 'Carlos', 'Woods', '<EMAIL>', 'Male', '192.168.3.11'), (977, 'Alan', 'Nelson', '<EMAIL>', 'Male', '1172.16.31.10'), (978, 'Charles', 'Freeman', '<EMAIL>', 'Male', '172.16.58.3'), (979, 'Joshua', 'Hayes', '<EMAIL>', 'Male', '172.16.31.10'), (980, 'Donna', 'Davis', '<EMAIL>', 'Female', '172.16.17.32'), (981, 'Earl', 'Mcdonald', '<EMAIL>', 'Male', '172.16.17.32'), (982, 'Scott', 'Oliver', '<EMAIL>', 'Male', '172.16.31.10'), (983, 'Charles', 'Fernandez', '<EMAIL>', 'Male', '247.2.161.143'), (984, 'Dennis', 'Frazier', '<EMAIL>', 'Male', '192.168.127.12'), (985, 'Kathy', 'Ross', '<EMAIL>', 'Female', '172.16.58.3'), (986, 'Katherine', 'Boyd', '<EMAIL>', 'Female', '172.16.17.32'), (987, 'Brenda', 'Nguyen', '<EMAIL>', 'Female', '172.16.17.32'), (988, 'Joan', 'Gibson', '<EMAIL>', 'Female', '172.16.31.10'), (989, 'Louis', 'Martinez', '<EMAIL>', 'Male', '172.16.31.10'), (990, 'Samuel', 'Wagner', '<EMAIL>', 'Male', '192.168.127.12'), (991, 'Diane', 'Collins', '<EMAIL>', 'Female', '172.16.58.3'), (992, 'Joseph', 'Moore', '<EMAIL>', 'Male', '172.16.58.3'), (993, 'Jeffrey', 'Peterson', '<EMAIL>', 'Male', '127.192.166.34'), (994, 'Phillip', 'White', '<EMAIL>', 'Male', '172.16.17.32'), (995, 'Jose', 'Jacobs', '<EMAIL>', 'Male', '172.16.58.3'), (996, 'Shirley', 'James', '<EMAIL>', 'Female', '192.168.127.12'), (997, 'Chris', 'Hughes', '<EMAIL>', 'Male', '172.16.17.32'), (998, 'Diana', 'Duncan', '<EMAIL>', 'Female', '172.16.58.3'), (999, 'Stephen', 'Sullivan', '<EMAIL>', 'Male', '192.168.3.11'), (1000, 'Virginia', 'Vasquez', '<EMAIL>', 'Female', '192.168.3.11');
<filename>postgresql/sql/c2_02_shared_buffers_wide_cluster.sql SELECT d.datname, pg_size_pretty(pg_database_size(d.datname)) AS database_size, pg_size_pretty(count(b.bufferid) * (SELECT current_setting('block_size')::int)) AS size_in_shared_buffers, round((100 * count(b.bufferid) / (SELECT setting FROM pg_settings WHERE name = 'shared_buffers')::decimal),2) AS pct_of_shared_buffers FROM pg_buffercache b JOIN pg_database d ON b.reldatabase = d.oid WHERE b.reldatabase IS NOT NULL GROUP BY 1 ORDER BY 4 DESC LIMIT 10;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2021 at 08:18 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 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: `cv_db` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `user_id` int(11) NOT NULL, `username` varchar(30) NOT NULL, `password` varchar(30) NOT NULL, `fullname` varchar(30) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`user_id`, `username`, `password`, `fullname`) VALUES (4, 'admin', '<PASSWORD>', '<PASSWORD>'); -- -------------------------------------------------------- -- -- Table structure for table `barang` -- CREATE TABLE `barang` ( `br_id` int(6) NOT NULL, `br_nm` varchar(50) NOT NULL, `br_item` int(4) NOT NULL, `br_hrg` int(10) NOT NULL, `br_stok` int(9) NOT NULL, `br_satuan` varchar(20) NOT NULL, `br_gbr` varchar(100) NOT NULL, `ket` varchar(250) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `barang` -- INSERT INTO `barang` (`br_id`, `br_nm`, `br_item`, `br_hrg`, `br_stok`, `br_satuan`, `br_gbr`, `ket`) VALUES (1, 'Kaos Three Second', 1, 90000, 12, 'Pcs', '3secondbaju.jpg', 'Bahan Cotton Combed 24s built up'), (2, 'Kaos Three Second Logo', 1, 65000, 24, 'Pcs', '3secondbaju2.jpg', 'Bahan Cotton Combed 24s built up'), (3, 'Jaket Three Second', 1, 300000, 30, 'Pcs', '3secondjaket.jpg', 'Bahan Cotton Combed'), (4, 'Art Wear Jaket', 1, 280000, 19, 'Pcs', 'artwearjaket2.jpg', 'Bahan Cotton Combed'), (5, 'Jaket Greenlight', 1, 360000, 30, 'Pcs', 'greenlightjaket.jpg', 'Bahan Cotton Combed'), (6, '<NAME>', 1, 175000, 20, 'Pcs', 'jeans4.jpg', 'Bahan Jeans Terbaik'), (7, '<NAME>', 1, 100000, 20, 'Pcs', 'jeans5.jpg', 'Bahan Jeans Terbaik'), (8, 'Kaos Greenlight Terbaru', 1, 95000, 11, 'Pcs', 'greenlightbaju2.jpg', 'Bahan Cotton Combed'), (9, 'Kaos Custom Woles', 1, 86000, 20, 'Pcs', 'wolesbaju.jpg', 'Bahan cvc bandung build up tanpa jahitan samping'); -- -------------------------------------------------------- -- -- Table structure for table `ongkir` -- CREATE TABLE `ongkir` ( `id_kurir` int(6) NOT NULL, `jasakurir` varchar(50) NOT NULL, `tarif` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `ongkir` -- INSERT INTO `ongkir` (`id_kurir`, `jasakurir`, `tarif`) VALUES (1, 'J&T', 22000), (2, 'JNE', 45000); -- -------------------------------------------------------- -- -- Table structure for table `pembayaran` -- CREATE TABLE `pembayaran` ( `id_pembayaran` int(11) NOT NULL, `id_pembelian` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `bank` varchar(25) NOT NULL, `jumlah` int(11) NOT NULL, `tanggal` date NOT NULL, `bukti` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `pembayaran` -- INSERT INTO `pembayaran` (`id_pembayaran`, `id_pembelian`, `nama`, `bank`, `jumlah`, `tanggal`, `bukti`) VALUES (2, 37, '<NAME>', 'Mandiri', 117000, '2021-01-23', '20210122190138Screenshot_20180210-090855.png'); -- -------------------------------------------------------- -- -- Table structure for table `pembelian` -- CREATE TABLE `pembelian` ( `id_pembelian` int(11) NOT NULL, `id_pelanggan` int(11) NOT NULL, `id_kurir` int(6) NOT NULL, `tanggal_pembelian` date NOT NULL, `total_pembelian` int(11) NOT NULL, `alamat_lengkap` text NOT NULL, `status_pembelian` varchar(100) NOT NULL DEFAULT 'pending', `resi` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `pembelian` -- INSERT INTO `pembelian` (`id_pembelian`, `id_pelanggan`, `id_kurir`, `tanggal_pembelian`, `total_pembelian`, `alamat_lengkap`, `status_pembelian`, `resi`) VALUES (37, 1, 1, '2021-01-22', 117000, 'Jl Barombong ', 'Barang dikirim', '123456789'), (38, 1, 1, '2021-01-22', 122000, 'Jl Barombong ', 'pending', ''), (39, 1, 1, '2021-01-22', 302000, 'Jl Barombong ', 'pending', ''); -- -------------------------------------------------------- -- -- Table structure for table `pembelian_produk` -- CREATE TABLE `pembelian_produk` ( `id_pembelian_produk` int(11) NOT NULL, `id_pembelian` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `jumlah` int(11) NOT NULL, `nama` varchar(50) NOT NULL, `harga` int(11) NOT NULL, `subharga` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `pembelian_produk` -- INSERT INTO `pembelian_produk` (`id_pembelian_produk`, `id_pembelian`, `id_produk`, `jumlah`, `nama`, `harga`, `subharga`) VALUES (49, 37, 8, 1, 'Kaos Greenlight Terbaru', 95000, 95000), (50, 38, 7, 1, '<NAME>', 100000, 100000), (51, 39, 4, 1, '<NAME>', 280000, 280000); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(5) NOT NULL, `nama` varchar(30) NOT NULL, `nama_usr` varchar(30) NOT NULL, `email` varchar(30) NOT NULL, `telp` varchar(14) NOT NULL, `pass` varchar(30) NOT NULL, `gender` int(11) NOT NULL, `tgl_lahir` date NOT NULL, `alamat` text NOT NULL, `bank` varchar(30) NOT NULL, `norek` varchar(30) NOT NULL, `namarek` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `nama`, `nama_usr`, `email`, `telp`, `pass`, `gender`, `tgl_lahir`, `alamat`, `bank`, `norek`, `namarek`) VALUES (1, '<NAME>', 'fawwaz', '<EMAIL>', '082394418669', 'fawaz123', 1, '2000-06-04', 'Jl Barombong ', 'Mandiri', '12345678', 'F<NAME>ksa'), (2, 'Ainul', 'ainul', '<EMAIL>', '08236474733', 'ainul', 1, '1998-10-18', ' Jenneponto', 'Ainul ', '123456778', 'Ainul'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`user_id`); -- -- Indexes for table `barang` -- ALTER TABLE `barang` ADD PRIMARY KEY (`br_id`); -- -- Indexes for table `ongkir` -- ALTER TABLE `ongkir` ADD PRIMARY KEY (`id_kurir`); -- -- Indexes for table `pembayaran` -- ALTER TABLE `pembayaran` ADD PRIMARY KEY (`id_pembayaran`); -- -- Indexes for table `pembelian` -- ALTER TABLE `pembelian` ADD PRIMARY KEY (`id_pembelian`); -- -- Indexes for table `pembelian_produk` -- ALTER TABLE `pembelian_produk` ADD PRIMARY KEY (`id_pembelian_produk`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `barang` -- ALTER TABLE `barang` MODIFY `br_id` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `ongkir` -- ALTER TABLE `ongkir` MODIFY `id_kurir` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `pembayaran` -- ALTER TABLE `pembayaran` MODIFY `id_pembayaran` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `pembelian` -- ALTER TABLE `pembelian` MODIFY `id_pembelian` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40; -- -- AUTO_INCREMENT for table `pembelian_produk` -- ALTER TABLE `pembelian_produk` MODIFY `id_pembelian_produk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 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 PROCEDURE cayenne_tst_out_proc @in_param INT, @out_param INT output AS BEGIN SELECT @out_param = @in_param * 2 END
with base as ( select * from {{ ref('stg_asana__user_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_asana__user_tmp')), staging_columns=get_user_columns() ) }} from base ), final as ( select id as user_id, email, name as user_name from fields where not coalesce(_fivetran_deleted, false) ) select * from final
<filename>macros/date/n_weeks_ago.sql {%- macro n_weeks_ago(n, tz=None) -%} {{ deprecation_warning('n_weeks_ago', 'dbt_date.n_weeks_ago') }} {{ dbt_date.n_weeks_ago(n, tz) }} {%- endmacro -%}
<reponame>nimble-platform/dcf_service GRANT ALL PRIVILEGES ON datachannelfilteringservicedb.* TO 'root'@'%'; GRANT ALL PRIVILEGES ON datachannelfilteringservicedb.* TO 'root'@'localhost';
<filename>src/pl/plpython/sql/plpython_subtransaction.sql -- -- Test explicit subtransactions -- -- Test table to see if transactions get properly rolled back CREATE TABLE subtransaction_tbl ( i integer ); CREATE FUNCTION subtransaction_ctx_test(what_error text = NULL) RETURNS text AS $$ with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") plpy.execute("INSERT INTO subtransaction_tbl VALUES (2)") if what_error == "SPI": plpy.execute("INSERT INTO subtransaction_tbl VALUES ('oops')") elif what_error == "Python": raise Exception("Python exception") $$ LANGUAGE plpythonu; SELECT subtransaction_ctx_test(); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; SELECT subtransaction_ctx_test('SPI'); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; SELECT subtransaction_ctx_test('Python'); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; -- Nested subtransactions CREATE FUNCTION subtransaction_nested_test(swallow boolean = 'f') RETURNS text AS $$ plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (2)") try: with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (3)") plpy.execute("error") except plpy.SPIError as e: if not swallow: raise plpy.notice("Swallowed %s(%r)" % (e.__class__.__name__, e.args[0])) return "ok" $$ LANGUAGE plpythonu; SELECT subtransaction_nested_test(); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; SELECT subtransaction_nested_test('t'); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; -- Nested subtransactions that recursively call code dealing with -- subtransactions CREATE FUNCTION subtransaction_deeply_nested_test() RETURNS text AS $$ plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (2)") plpy.execute("SELECT subtransaction_nested_test('t')") return "ok" $$ LANGUAGE plpythonu; SELECT subtransaction_deeply_nested_test(); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; -- Error conditions from not opening/closing subtransactions CREATE FUNCTION subtransaction_exit_without_enter() RETURNS void AS $$ plpy.subtransaction().__exit__(None, None, None) $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_enter_without_exit() RETURNS void AS $$ plpy.subtransaction().__enter__() $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_exit_twice() RETURNS void AS $$ plpy.subtransaction().__enter__() plpy.subtransaction().__exit__(None, None, None) plpy.subtransaction().__exit__(None, None, None) $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_enter_twice() RETURNS void AS $$ plpy.subtransaction().__enter__() plpy.subtransaction().__enter__() $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_exit_same_subtransaction_twice() RETURNS void AS $$ s = plpy.subtransaction() s.__enter__() s.__exit__(None, None, None) s.__exit__(None, None, None) $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_enter_same_subtransaction_twice() RETURNS void AS $$ s = plpy.subtransaction() s.__enter__() s.__enter__() s.__exit__(None, None, None) $$ LANGUAGE plpythonu; -- No warnings here, as the subtransaction gets indeed closed CREATE FUNCTION subtransaction_enter_subtransaction_in_with() RETURNS void AS $$ with plpy.subtransaction() as s: s.__enter__() $$ LANGUAGE plpythonu; CREATE FUNCTION subtransaction_exit_subtransaction_in_with() RETURNS void AS $$ with plpy.subtransaction() as s: s.__exit__(None, None, None) $$ LANGUAGE plpythonu; SELECT subtransaction_exit_without_enter(); SELECT subtransaction_enter_without_exit(); SELECT subtransaction_exit_twice(); SELECT subtransaction_enter_twice(); SELECT subtransaction_exit_same_subtransaction_twice(); SELECT subtransaction_enter_same_subtransaction_twice(); SELECT subtransaction_enter_subtransaction_in_with(); SELECT subtransaction_exit_subtransaction_in_with(); -- Make sure we don't get a "current transaction is aborted" error SELECT 1 as test; -- Mix explicit subtransactions and normal SPI calls CREATE FUNCTION subtransaction_mix_explicit_and_implicit() RETURNS void AS $$ p = plpy.prepare("INSERT INTO subtransaction_tbl VALUES ($1)", ["integer"]) try: with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") plpy.execute(p, [2]) plpy.execute(p, ["wrong"]) except plpy.SPIError: plpy.warning("Caught a SPI error from an explicit subtransaction") try: plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") plpy.execute(p, [2]) plpy.execute(p, ["wrong"]) except plpy.SPIError: plpy.warning("Caught a SPI error") $$ LANGUAGE plpythonu; SELECT subtransaction_mix_explicit_and_implicit(); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; -- Alternative method names for Python <2.6 CREATE FUNCTION subtransaction_alternative_names() RETURNS void AS $$ s = plpy.subtransaction() s.enter() s.exit(None, None, None) $$ LANGUAGE plpythonu; SELECT subtransaction_alternative_names(); -- try/catch inside a subtransaction block CREATE FUNCTION try_catch_inside_subtransaction() RETURNS void AS $$ with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") try: plpy.execute("INSERT INTO subtransaction_tbl VALUES ('a')") except plpy.SPIError: plpy.notice("caught") $$ LANGUAGE plpythonu; SELECT try_catch_inside_subtransaction(); SELECT * FROM subtransaction_tbl; TRUNCATE subtransaction_tbl; ALTER TABLE subtransaction_tbl ADD PRIMARY KEY (i); CREATE FUNCTION pk_violation_inside_subtransaction() RETURNS void AS $$ with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") try: plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") except plpy.SPIError: plpy.notice("caught") $$ LANGUAGE plpythonu; SELECT pk_violation_inside_subtransaction(); SELECT * FROM subtransaction_tbl; DROP TABLE subtransaction_tbl; -- cursor/subtransactions interactions CREATE FUNCTION cursor_in_subxact() RETURNS int AS $$ with plpy.subtransaction(): cur = plpy.cursor("select * from generate_series(1, 20) as gen(i)") cur.fetch(10) fetched = cur.fetch(10); return int(fetched[5]["i"]) $$ LANGUAGE plpythonu; CREATE FUNCTION cursor_aborted_subxact() RETURNS int AS $$ try: with plpy.subtransaction(): cur = plpy.cursor("select * from generate_series(1, 20) as gen(i)") cur.fetch(10); plpy.execute("select no_such_function()") except plpy.SPIError: fetched = cur.fetch(10) return int(fetched[5]["i"]) return 0 # not reached $$ LANGUAGE plpythonu; CREATE FUNCTION cursor_plan_aborted_subxact() RETURNS int AS $$ try: with plpy.subtransaction(): plpy.execute('create temporary table tmp(i) ' 'as select generate_series(1, 10)') plan = plpy.prepare("select i from tmp") cur = plpy.cursor(plan) plpy.execute("select no_such_function()") except plpy.SPIError: fetched = cur.fetch(5) return fetched[2]["i"] return 0 # not reached $$ LANGUAGE plpythonu; CREATE FUNCTION cursor_close_aborted_subxact() RETURNS boolean AS $$ try: with plpy.subtransaction(): cur = plpy.cursor('select 1') plpy.execute("select no_such_function()") except plpy.SPIError: cur.close() return True return False # not reached $$ LANGUAGE plpythonu; SELECT cursor_in_subxact(); SELECT cursor_aborted_subxact(); SELECT cursor_plan_aborted_subxact(); SELECT cursor_close_aborted_subxact();
alter table "video"."VonageParticipantStream" add column "stopped_at" timestamptz null;
-- @testpoint: opengauss关键字cascade非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists cascade_test; create table cascade_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists cascade; create index cascade on cascade_test(id); --清理环境 drop index cascade; --关键字带双引号-成功 drop index if exists "cascade"; create index "cascade" on cascade_test(id); --清理环境 drop index "cascade"; --关键字带单引号-合理报错 drop index if exists 'cascade'; --关键字带反引号-合理报错 drop index if exists `cascade`; drop table if exists cascade_test;
<reponame>bangdo172/quanlylichthi<filename>back-end/database/lichthi.sql USE lichthi; -- SHOW DATABASES; SHOW TABLES; DROP TABLE User; DROP TABLE Admin; DROP TABLE Student; DROP TABLE Subject; DROP TABLE Student_subject; DROP TABLE Exam_schedule; DROP TABLE Room; -- DROP TABLE Exam_room; CREATE TABLE Admin ( admin_id varchar(45) NOT NULL, password varchar(45) NOT NULL, admin_name varchar(45) NOT NULL, PRIMARY KEY (admin_id) ); CREATE TABLE Student ( student_id varchar(45) NOT NULL, password varchar(45) NOT NULL, name varchar(45), email varchar(45), gender varchar(45), class varchar(45), date_birth date, phone_number varchar(45), PRIMARY KEY (student_id) ); CREATE TABLE Subject ( subject_id varchar(45) NOT NULL, subject_name varchar(45), PRIMARY KEY (subject_id) ); CREATE TABLE Student_subject ( student_id varchar(45) NOT NULL, subject_id varchar(45) NOT NULL, can_join_exam boolean, es_id varchar(45), FOREIGN KEY (student_id) REFERENCES Student(student_id), FOREIGN KEY (subject_id) REFERENCES Subject(subject_id) ); CREATE TABLE Exam_schedule ( es_id varchar(45) NOT NULL, subject_id varchar(45) NOT NULL, start_time date, end_time date, PRIMARY KEY (es_id), FOREIGN KEY (subject_id) REFERENCES Subject(subject_id) ); CREATE TABLE Room ( room_id varchar(45) NOT NULL, room_name varchar(45) NOT NULL, room_place varchar(45) NOT NULL, computer_max_amount int, PRIMARY KEY (room_id) ); CREATE TABLE Exam_room ( er_id varchar(45) NOT NULL, es_id varchar(45) NOT NULL, student_amount int, PRIMARY KEY (er_id), FOREIGN KEY (es_id) REFERENCES Exam_schedule(es_id) ); CREATE TABLE Student_exam ( er_id varchar(45) NOT NULL, student_id varchar(45) NOT NULL, FOREIGN KEY (er_id) REFERENCES Exam_room(er_id), FOREIGN KEY (student_id) REFERENCES Student(student_id) );
create table TBLROLES ( ROLE_ID NUMBER not null constraint TBLROLES_PK primary key, ROLE_NAME VARCHAR(20) not null, ROLE_DESCRIPTION VARCHAR(400) not null );
# # Table structure for table 'sys_category' # CREATE TABLE sys_category ( tx_tagpack_migration int(11) DEFAULT '0' NOT NULL, );
<gh_stars>0 IF EXISTS (SELECT [name], [value], [value_in_use] FROM [master].[sys].[configurations] WHERE NAME LIKE 'remote access%' AND value_in_use > 0 ) BEGIN RAISERROR ('The remote access timeout value is greater than zero',16,1) END ELSE BEGIN PRINT 'The remote access timeout value is zero' END
<reponame>gomes-fdr/restaurante<gh_stars>0 -- Disciplina: Laboratório de programação 2 -- Professor: Lossurdo -- Entrega 02: Restaurante -- Aluno: <NAME><<EMAIL>> -- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'FUNCIONARIO' -- -- --- DROP TABLE IF EXISTS `FUNCIONARIO`; CREATE TABLE `FUNCIONARIO` ( `id` INTEGER NOT NULL AUTO_INCREMENT DEFAULT NULL, `nome` VARCHAR(50) NOT NULL, `perfil` INTEGER NOT NULL, `salario` DECIMAL(9,2) NOT NULL, PRIMARY KEY (`id`) ); -- --- -- Table 'MESA' -- -- --- DROP TABLE IF EXISTS `MESA`; CREATE TABLE `MESA` ( `id` INTEGER NOT NULL AUTO_INCREMENT DEFAULT NULL, `capacidade` INTEGER NOT NULL, PRIMARY KEY (`id`) ); -- --- -- Table 'PRODUTO' -- -- --- DROP TABLE IF EXISTS `PRODUTO`; CREATE TABLE `PRODUTO` ( `id` INTEGER NULL AUTO_INCREMENT, `descricao` VARCHAR(30) NOT NULL, `tipo` INTEGER NOT NULL, `preco` DECIMAL(9,2) NOT NULL, PRIMARY KEY (`id`) ); -- --- -- Table 'PEDIDO' -- -- --- DROP TABLE IF EXISTS `PEDIDO`; CREATE TABLE `PEDIDO` ( `id` INTEGER NULL AUTO_INCREMENT, `dt_pedido` DATE NOT NULL, `mesa` INTEGER NOT NULL, `garcom` INTEGER NOT NULL, `aberto` INTEGER NOT NULL, `total_pedido` DECIMAL(9,2) NOT NULL, PRIMARY KEY (`id`) ); -- --- -- Table 'PEDIDO_PRODUTO' -- -- --- DROP TABLE IF EXISTS `PEDIDO_PRODUTO`; CREATE TABLE `PEDIDO_PRODUTO` ( `id` INTEGER NULL AUTO_INCREMENT, `pedido` INTEGER NOT NULL, `produto` INTEGER NOT NULL, `quantidade` INTEGER NOT NULL, PRIMARY KEY (`id`) ); -- --- -- Table 'TIPO_PRODUTO' -- -- --- -- --- -- Foreign Keys -- --- ALTER TABLE `PEDIDO` ADD FOREIGN KEY (mesa) REFERENCES `MESA` (`id`); ALTER TABLE `PEDIDO` ADD FOREIGN KEY (garcom) REFERENCES `FUNCIONARIO` (`id`); ALTER TABLE `PEDIDO_PRODUTO` ADD FOREIGN KEY (pedido) REFERENCES `PEDIDO` (`id`); ALTER TABLE `PEDIDO_PRODUTO` ADD FOREIGN KEY (produto) REFERENCES `PRODUTO` (`id`); -- --- -- Table Properties -- --- -- ALTER TABLE `FUNCIONARIO` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ALTER TABLE `MESA` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ALTER TABLE `PRODUTO` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ALTER TABLE `PEDIDO` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ALTER TABLE `PEDIDO_PRODUTO` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- ALTER TABLE `TIPO_PRODUTO` ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- --- -- Test Data -- --- -- INSERT INTO `FUNCIONARIO` (`cpf`,`nome`,`perfil`,`salario`) VALUES -- ('','','',''); -- INSERT INTO `MESA` (`id`,`capacidade`) VALUES -- ('',''); -- INSERT INTO `PRODUTO` (`id`,`descricao`,`tipo`) VALUES -- ('','',''); -- INSERT INTO `PEDIDO` (`id`,`dt_pedido`,`mesa`,`garcom`,`aberto`,`parcial_pedido`,`total_pedido`,`paga_comissao`,`comissao`) VALUES -- ('','','','','','','','',''); -- INSERT INTO `PEDIDO_PRODUTO` (`pedido`,`produto`,`quantidade`,`total`) VALUES -- ('','','',''); -- INSERT INTO `TIPO_PRODUTO` (`id`,`descricao`) VALUES -- ('','');
<reponame>contadorep/medicon -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 01-06-2018 a las 03:54:17 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 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 */; -- -- Base de datos: `medicon` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `agendas` -- CREATE TABLE `agendas` ( `id` int(10) UNSIGNED NOT NULL, `fecha_ini` date NOT NULL, `hora_ini` time NOT NULL, `fecha_fin` date NOT NULL, `hora_fin` time NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `paciente_id` int(10) UNSIGNED NOT NULL, `medico_id` int(10) UNSIGNED NOT NULL, `servicio_id` int(10) UNSIGNED NOT NULL, `estado_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `agendas` -- INSERT INTO `agendas` (`id`, `fecha_ini`, `hora_ini`, `fecha_fin`, `hora_fin`, `user_id`, `paciente_id`, `medico_id`, `servicio_id`, `estado_id`, `created_at`, `updated_at`) VALUES (1, '2018-05-18', '00:00:00', '2018-05-18', '00:00:00', 2, 1, 2, 4, 1, NULL, NULL), (2, '2018-05-19', '00:00:00', '2018-05-19', '00:00:00', 2, 1, 1, 3, 1, NULL, NULL), (3, '2018-05-20', '00:00:00', '2018-05-24', '00:00:00', 10, 1, 2, 3, 1, NULL, NULL), (7, '2018-05-10', '00:00:00', '2018-05-10', '00:00:00', 2, 2, 2, 1, 1, '2018-05-31 06:03:20', '2018-05-31 06:03:20'), (8, '2018-05-31', '09:00:00', '2018-05-31', '10:00:00', 2, 2, 1, 3, 3, '2018-05-31 06:22:56', '2018-06-01 05:29:58'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `auxiliares` -- CREATE TABLE `auxiliares` ( `id` int(10) UNSIGNED NOT NULL, `cargo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `telefono` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `centros_costo` -- CREATE TABLE `centros_costo` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cuentas` -- CREATE TABLE `cuentas` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `nivel_id` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estados` -- CREATE TABLE `estados` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `estados` -- INSERT INTO `estados` (`id`, `nombre`) VALUES (1, 'Activo'), (2, 'Inactivo'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estados_agendas` -- CREATE TABLE `estados_agendas` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `estados_agendas` -- INSERT INTO `estados_agendas` (`id`, `nombre`) VALUES (1, 'Asignada'), (2, 'Cumplida'), (3, 'Cancelada'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `estados_facturas` -- CREATE TABLE `estados_facturas` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `facturas` -- CREATE TABLE `facturas` ( `id` int(10) UNSIGNED NOT NULL, `numero` int(11) NOT NULL, `valor` decimal(8,2) NOT NULL, `iva` decimal(8,2) DEFAULT NULL, `retencion` decimal(8,2) DEFAULT NULL, `agenda_id` int(10) UNSIGNED NOT NULL, `metodo_id` int(10) UNSIGNED NOT NULL, `estado_factura_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `formatos` -- CREATE TABLE `formatos` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `historias` -- CREATE TABLE `historias` ( `id` int(10) UNSIGNED NOT NULL, `fecha` date NOT NULL, `asunto` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `descripcion` text COLLATE utf8mb4_unicode_ci NOT NULL, `paciente_id` int(10) UNSIGNED NOT NULL, `medico_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `insumos` -- CREATE TABLE `insumos` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `precio` decimal(8,2) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `insumos_utilizados` -- CREATE TABLE `insumos_utilizados` ( `id` int(10) UNSIGNED NOT NULL, `cantidad` int(11) NOT NULL, `precio` decimal(8,2) NOT NULL, `historia_id` int(10) UNSIGNED NOT NULL, `insumo_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `medicos` -- CREATE TABLE `medicos` ( `id` int(10) UNSIGNED NOT NULL, `telefono` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tarjeta_prof` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `user_id` int(10) UNSIGNED NOT NULL, `servicio_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `medicos` -- INSERT INTO `medicos` (`id`, `telefono`, `tarjeta_prof`, `user_id`, `servicio_id`, `created_at`, `updated_at`) VALUES (1, '343434', '555666', 3, 1, NULL, NULL), (2, '11145555', '0001112222', 4, 2, '2018-05-03 06:52:50', '2018-05-03 06:53:45'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `metodos` -- CREATE TABLE `metodos` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2013_04_26_011854_create_perfils_table', 1), (2, '2013_04_26_012037_create_estados_table', 1), (3, '2013_04_26_012338_create_estadoagendas_table', 1), (4, '2013_04_26_012527_create_estadofacturas_table', 1), (5, '2013_04_26_012720_create_centrocostos_table', 1), (6, '2013_04_26_012738_create_nivels_table', 1), (7, '2013_04_26_174047_create_metodos_table', 1), (8, '2014_04_26_012703_create_formatos_table', 1), (9, '2014_04_26_012729_create_cuentas_table', 1), (10, '2014_10_12_000000_create_users_table', 1), (11, '2014_10_12_100000_create_password_resets_table', 1), (12, '2016_04_26_012122_create_servicios_table', 1), (13, '2016_04_26_012638_create_tipodocumentos_table', 1), (14, '2018_04_26_012105_create_medicos_table', 1), (15, '2018_04_26_012132_create_insumos_table', 1), (16, '2018_04_26_012150_create_pacientes_table', 1), (17, '2018_04_26_012229_create_historias_table', 1), (18, '2018_04_26_012313_create_insumoutilizados_table', 1), (19, '2018_04_26_012326_create_agendas_table', 1), (20, '2018_04_26_012436_create_facturas_table', 1), (21, '2018_04_26_012449_create_proveedors_table', 1), (22, '2018_04_26_012503_create_productos_table', 1), (23, '2018_04_26_012512_create_pedidos_table', 1), (24, '2018_04_26_012541_create_movimientos_table', 1), (25, '2018_04_26_234108_create_auxiliars_table', 1); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `movimientos` -- CREATE TABLE `movimientos` ( `id` int(10) UNSIGNED NOT NULL, `fecha` date NOT NULL, `concepto` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `debito` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `credito` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tipo_id` int(10) UNSIGNED NOT NULL, `centro_id` int(10) UNSIGNED NOT NULL, `cuenta_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `niveles` -- CREATE TABLE `niveles` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pacientes` -- CREATE TABLE `pacientes` ( `id` int(10) UNSIGNED NOT NULL, `telefono` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `genero` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `edad` int(11) NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `pacientes` -- INSERT INTO `pacientes` (`id`, `telefono`, `genero`, `edad`, `user_id`, `created_at`, `updated_at`) VALUES (1, '23232', 'M', 32, 4, NULL, NULL), (2, '34343', 'F', 27, 6, NULL, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pedidos` -- CREATE TABLE `pedidos` ( `id` int(10) UNSIGNED NOT NULL, `numero` int(11) NOT NULL, `fecha` date NOT NULL, `cantidad` int(11) NOT NULL, `precio` decimal(8,2) NOT NULL, `proveedor_id` int(10) UNSIGNED NOT NULL, `producto_id` int(10) UNSIGNED NOT NULL, `user_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `perfiles` -- CREATE TABLE `perfiles` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `perfiles` -- INSERT INTO `perfiles` (`id`, `nombre`) VALUES (1, 'Admin'), (2, 'Medico'), (3, 'Paciente'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `productos` -- CREATE TABLE `productos` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `precio` decimal(8,2) NOT NULL, `proveedor_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `proveedores` -- CREATE TABLE `proveedores` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `telefono` varchar(191) 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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `servicios` -- CREATE TABLE `servicios` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `servicios` -- INSERT INTO `servicios` (`id`, `nombre`) VALUES (1, 'Medicina General'), (2, 'Pediatria'), (3, 'Urología'), (4, 'Oftalmologia'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tipos_documento` -- CREATE TABLE `tipos_documento` ( `id` int(10) UNSIGNED NOT NULL, `nombre` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `formato_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `perfil_id` int(10) UNSIGNED NOT NULL, `estado_id` int(10) UNSIGNED NOT NULL, `foto` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT 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; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `perfil_id`, `estado_id`, `foto`, `remember_token`, `created_at`, `updated_at`) VALUES (2, '<NAME>', '<EMAIL>', <PASSWORD>', 1, 2, '5b10a6c6ca0c9-2015-10-30 07.57.30.jpg', 'bW2z1MvUsFWvTbhiZTTqrKEAsSSmxwTVGMdQXwzjKpRqmM1944HYh1PY6Ggc', NULL, '2018-06-01 06:52:06'), (3, 'Alex', '<EMAIL>', '123456', 1, 1, NULL, NULL, '2018-05-03 04:36:30', '2018-05-03 05:18:01'), (4, '<NAME>', '<EMAIL>', <PASSWORD>', 2, 2, NULL, NULL, '2018-05-03 04:39:55', '2018-05-03 06:54:24'), (5, 'Alberto', '<EMAIL>', '$2y$10$iAsOZ9S9BRYJ0BSwQ.bqWOUBccnOLOUVduEidVe/ltArwKt/0UM8S', 1, 2, NULL, NULL, '2018-05-03 04:41:33', '2018-05-03 04:41:33'), (6, 'Juliana', '<EMAIL>', '$2y$10$q/QhXyuSKg3/UOqdoXxg.uxjohDzI796tJ1inf/ryTKVBFyQua.0e', 3, 1, NULL, '7P4avvG3JzWw2nGUiIVBrYuBLgFq30tVJoWWfXjXBn6ioYh0ffwx1wH3DWHK', '2018-05-08 06:32:41', '2018-05-08 06:32:41'), (10, '<NAME>', '<EMAIL>', '$2y$10$6MPOlCFHStRlBb5IYmREbuIPUiu20wgn5hHBGH058/KBHpFt8VL5S', 3, 1, NULL, NULL, '2018-05-10 06:24:49', '2018-05-10 06:24:49'), (20, '<NAME>', '<EMAIL>', '$2y$10$iTFTO.LvVy4ofD5aYLar2OgQ2QYPNQ4CD1K9DIcPNIQwyYMxnT5VS', 1, 1, '5afe156529ff0-pano-20180503-210110.jpg', NULL, '2018-05-18 04:51:01', '2018-05-18 04:51:01'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `agendas` -- ALTER TABLE `agendas` ADD PRIMARY KEY (`id`), ADD KEY `agendas_user_id_foreign` (`user_id`), ADD KEY `agendas_paciente_id_foreign` (`paciente_id`), ADD KEY `agendas_medico_id_foreign` (`medico_id`), ADD KEY `agendas_servicio_id_foreign` (`servicio_id`), ADD KEY `agendas_estado_id_foreign` (`estado_id`); -- -- Indices de la tabla `auxiliares` -- ALTER TABLE `auxiliares` ADD PRIMARY KEY (`id`), ADD KEY `auxiliares_user_id_foreign` (`user_id`); -- -- Indices de la tabla `centros_costo` -- ALTER TABLE `centros_costo` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `cuentas` -- ALTER TABLE `cuentas` ADD PRIMARY KEY (`id`), ADD KEY `cuentas_nivel_id_foreign` (`nivel_id`); -- -- Indices de la tabla `estados` -- ALTER TABLE `estados` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `estados_agendas` -- ALTER TABLE `estados_agendas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `estados_facturas` -- ALTER TABLE `estados_facturas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `facturas` -- ALTER TABLE `facturas` ADD PRIMARY KEY (`id`), ADD KEY `facturas_agenda_id_foreign` (`agenda_id`), ADD KEY `facturas_metodo_id_foreign` (`metodo_id`), ADD KEY `facturas_estado_factura_id_foreign` (`estado_factura_id`); -- -- Indices de la tabla `formatos` -- ALTER TABLE `formatos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `historias` -- ALTER TABLE `historias` ADD PRIMARY KEY (`id`), ADD KEY `historias_paciente_id_foreign` (`paciente_id`), ADD KEY `historias_medico_id_foreign` (`medico_id`); -- -- Indices de la tabla `insumos` -- ALTER TABLE `insumos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `insumos_utilizados` -- ALTER TABLE `insumos_utilizados` ADD PRIMARY KEY (`id`), ADD KEY `insumos_utilizados_historia_id_foreign` (`historia_id`), ADD KEY `insumos_utilizados_insumo_id_foreign` (`insumo_id`); -- -- Indices de la tabla `medicos` -- ALTER TABLE `medicos` ADD PRIMARY KEY (`id`), ADD KEY `medicos_user_id_foreign` (`user_id`), ADD KEY `medicos_servicio_id_foreign` (`servicio_id`); -- -- Indices de la tabla `metodos` -- ALTER TABLE `metodos` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `movimientos` -- ALTER TABLE `movimientos` ADD PRIMARY KEY (`id`), ADD KEY `movimientos_tipo_id_foreign` (`tipo_id`), ADD KEY `movimientos_centro_id_foreign` (`centro_id`), ADD KEY `movimientos_cuenta_id_foreign` (`cuenta_id`); -- -- Indices de la tabla `niveles` -- ALTER TABLE `niveles` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `pacientes` -- ALTER TABLE `pacientes` ADD PRIMARY KEY (`id`), ADD KEY `pacientes_user_id_foreign` (`user_id`); -- -- Indices de la tabla `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indices de la tabla `pedidos` -- ALTER TABLE `pedidos` ADD PRIMARY KEY (`id`), ADD KEY `pedidos_proveedor_id_foreign` (`proveedor_id`), ADD KEY `pedidos_producto_id_foreign` (`producto_id`), ADD KEY `pedidos_user_id_foreign` (`user_id`); -- -- Indices de la tabla `perfiles` -- ALTER TABLE `perfiles` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `productos` -- ALTER TABLE `productos` ADD PRIMARY KEY (`id`), ADD KEY `productos_proveedor_id_foreign` (`proveedor_id`); -- -- Indices de la tabla `proveedores` -- ALTER TABLE `proveedores` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `servicios` -- ALTER TABLE `servicios` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `tipos_documento` -- ALTER TABLE `tipos_documento` ADD PRIMARY KEY (`id`), ADD KEY `tipos_documento_formato_id_foreign` (`formato_id`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `users_perfil_id_foreign` (`perfil_id`), ADD KEY `users_estado_id_foreign` (`estado_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `agendas` -- ALTER TABLE `agendas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de la tabla `auxiliares` -- ALTER TABLE `auxiliares` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `centros_costo` -- ALTER TABLE `centros_costo` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `cuentas` -- ALTER TABLE `cuentas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `estados` -- ALTER TABLE `estados` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `estados_agendas` -- ALTER TABLE `estados_agendas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `estados_facturas` -- ALTER TABLE `estados_facturas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `facturas` -- ALTER TABLE `facturas` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `formatos` -- ALTER TABLE `formatos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `historias` -- ALTER TABLE `historias` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `insumos` -- ALTER TABLE `insumos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `insumos_utilizados` -- ALTER TABLE `insumos_utilizados` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `medicos` -- ALTER TABLE `medicos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `metodos` -- ALTER TABLE `metodos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT de la tabla `movimientos` -- ALTER TABLE `movimientos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `niveles` -- ALTER TABLE `niveles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `pacientes` -- ALTER TABLE `pacientes` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `pedidos` -- ALTER TABLE `pedidos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `perfiles` -- ALTER TABLE `perfiles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT de la tabla `productos` -- ALTER TABLE `productos` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `proveedores` -- ALTER TABLE `proveedores` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `servicios` -- ALTER TABLE `servicios` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT de la tabla `tipos_documento` -- ALTER TABLE `tipos_documento` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `agendas` -- ALTER TABLE `agendas` ADD CONSTRAINT `agendas_estado_id_foreign` FOREIGN KEY (`estado_id`) REFERENCES `estados_agendas` (`id`), ADD CONSTRAINT `agendas_medico_id_foreign` FOREIGN KEY (`medico_id`) REFERENCES `medicos` (`id`), ADD CONSTRAINT `agendas_paciente_id_foreign` FOREIGN KEY (`paciente_id`) REFERENCES `pacientes` (`id`), ADD CONSTRAINT `agendas_servicio_id_foreign` FOREIGN KEY (`servicio_id`) REFERENCES `servicios` (`id`), ADD CONSTRAINT `agendas_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Filtros para la tabla `auxiliares` -- ALTER TABLE `auxiliares` ADD CONSTRAINT `auxiliares_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Filtros para la tabla `cuentas` -- ALTER TABLE `cuentas` ADD CONSTRAINT `cuentas_nivel_id_foreign` FOREIGN KEY (`nivel_id`) REFERENCES `niveles` (`id`); -- -- Filtros para la tabla `facturas` -- ALTER TABLE `facturas` ADD CONSTRAINT `facturas_agenda_id_foreign` FOREIGN KEY (`agenda_id`) REFERENCES `agendas` (`id`), ADD CONSTRAINT `facturas_estado_factura_id_foreign` FOREIGN KEY (`estado_factura_id`) REFERENCES `estados_facturas` (`id`), ADD CONSTRAINT `facturas_metodo_id_foreign` FOREIGN KEY (`metodo_id`) REFERENCES `metodos` (`id`); -- -- Filtros para la tabla `historias` -- ALTER TABLE `historias` ADD CONSTRAINT `historias_medico_id_foreign` FOREIGN KEY (`medico_id`) REFERENCES `medicos` (`id`), ADD CONSTRAINT `historias_paciente_id_foreign` FOREIGN KEY (`paciente_id`) REFERENCES `pacientes` (`id`); -- -- Filtros para la tabla `insumos_utilizados` -- ALTER TABLE `insumos_utilizados` ADD CONSTRAINT `insumos_utilizados_historia_id_foreign` FOREIGN KEY (`historia_id`) REFERENCES `historias` (`id`), ADD CONSTRAINT `insumos_utilizados_insumo_id_foreign` FOREIGN KEY (`insumo_id`) REFERENCES `insumos` (`id`); -- -- Filtros para la tabla `medicos` -- ALTER TABLE `medicos` ADD CONSTRAINT `medicos_servicio_id_foreign` FOREIGN KEY (`servicio_id`) REFERENCES `servicios` (`id`), ADD CONSTRAINT `medicos_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Filtros para la tabla `movimientos` -- ALTER TABLE `movimientos` ADD CONSTRAINT `movimientos_centro_id_foreign` FOREIGN KEY (`centro_id`) REFERENCES `centros_costo` (`id`), ADD CONSTRAINT `movimientos_cuenta_id_foreign` FOREIGN KEY (`cuenta_id`) REFERENCES `cuentas` (`id`), ADD CONSTRAINT `movimientos_tipo_id_foreign` FOREIGN KEY (`tipo_id`) REFERENCES `tipos_documento` (`id`); -- -- Filtros para la tabla `pacientes` -- ALTER TABLE `pacientes` ADD CONSTRAINT `pacientes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Filtros para la tabla `pedidos` -- ALTER TABLE `pedidos` ADD CONSTRAINT `pedidos_producto_id_foreign` FOREIGN KEY (`producto_id`) REFERENCES `productos` (`id`), ADD CONSTRAINT `pedidos_proveedor_id_foreign` FOREIGN KEY (`proveedor_id`) REFERENCES `proveedores` (`id`), ADD CONSTRAINT `pedidos_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Filtros para la tabla `productos` -- ALTER TABLE `productos` ADD CONSTRAINT `productos_proveedor_id_foreign` FOREIGN KEY (`proveedor_id`) REFERENCES `proveedores` (`id`); -- -- Filtros para la tabla `tipos_documento` -- ALTER TABLE `tipos_documento` ADD CONSTRAINT `tipos_documento_formato_id_foreign` FOREIGN KEY (`formato_id`) REFERENCES `formatos` (`id`); -- -- Filtros para la tabla `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_estado_id_foreign` FOREIGN KEY (`estado_id`) REFERENCES `estados` (`id`), ADD CONSTRAINT `users_perfil_id_foreign` FOREIGN KEY (`perfil_id`) REFERENCES `perfiles` (`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 */;
<filename>Scripts/queryQuestions.sql use feltgame; SELECT * FROM questions;
insert into it20g2016.trafika.Menadzer (menadzerID, adresaKancelarije, brojKancelarije) values (#[payload.menadzerID], #[payload.adresaKancelarije], #[payload.brojKancelarije]);
SET TERMOUT OFF; COLUMN current_instance NEW_VALUE current_instance NOPRINT; SELECT rpad(instance_name, 17) current_instance FROM v$instance; SET TERMOUT ON; PROMPT PROMPT +------------------------------------------------------------------------+ PROMPT | Report : Descripcion Espacio Ocupado por la Tabla | PROMPT | Instance : &current_instance | PROMPT +------------------------------------------------------------------------+ PROMPT ACCEPT schema CHAR PROMPT 'Enter schema : ' ACCEPT tab_name CHAR PROMPT 'Enter table name : ' SET ECHO OFF SET FEEDBACK 6 SET HEADING ON SET LINESIZE 256 SET PAGESIZE 50000 SET TERMOUT ON SET TIMING OFF SET TRIMOUT ON SET TRIMSPOOL ON SET VERIFY OFF CLEAR COLUMNS CLEAR BREAKS CLEAR COMPUTES BREAK ON report declare TOTAL_BLOCKS number; TOTAL_BYTES number; UNUSED_BLOCKS number; UNUSED_BYTES number; LAST_USED_EXTENT_FILE_ID number; LAST_USED_EXTENT_BLOCK_ID number; LAST_USED_BLOCK number; begin dbms_space.unused_space(segment_owner => UPPER('&schema'), segment_name => UPPER('&tab_name'), segment_type => UPPER('TABLE'), total_blocks => TOTAL_BLOCKS, total_bytes => TOTAL_BYTES, unused_blocks => UNUSED_BLOCKS, unused_bytes => UNUSED_BYTES, last_used_extent_file_id => LAST_USED_EXTENT_FILE_ID, last_used_extent_block_id => LAST_USED_EXTENT_BLOCK_ID, last_used_block => LAST_USED_BLOCK); dbms_output.put_line('OBJECT_NAME = &tab_name'); dbms_output.put_line('-----------------------------------'); dbms_output.put_line('TOTAL_BLOCKS = ' || TOTAL_BLOCKS); dbms_output.put_line('TOTAL_BYTES = ' || TOTAL_BYTES); dbms_output.put_line('UNUSED_BLOCKS = ' || UNUSED_BLOCKS); dbms_output.put_line('UNUSED BYTES = ' || UNUSED_BYTES); dbms_output.put_line('LAST_USED_EXTENT_FILE_ID = ' || LAST_USED_EXTENT_FILE_ID); dbms_output.put_line('LAST_USED_EXTENT_BLOCK_ID = ' || LAST_USED_EXTENT_BLOCK_ID); dbms_output.put_line('LAST_USED_BLOCK = ' || LAST_USED_BLOCK); end; /
with base as ( select * from {{ ref('stg_greenhouse__job_opening_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_greenhouse__job_opening_tmp')), staging_columns=get_job_opening_columns() ) }} from base ), final as ( select _fivetran_synced, application_id, close_reason_id, closed_at, id as job_openining_id, job_id, opened_at, opening_id as opening_text_id, status as current_status from fields ) select * from final
insert into users (displayname, email, pictureurl, authid) values ($1, $2, $3, $4) returning *;
UPDATE TASK_DEF_BASE SET PROCESS_DEFINITION_ID=NULL,PROCESS_DEFINITION_KEY='vacation',PROCESS_DEFINITION_VERSION=1 WHERE ID=1; UPDATE TASK_DEF_BASE SET PROCESS_DEFINITION_ID=NULL,PROCESS_DEFINITION_KEY='vacation',PROCESS_DEFINITION_VERSION=1 WHERE ID=2; UPDATE TASK_DEF_BASE SET PROCESS_DEFINITION_ID=NULL,PROCESS_DEFINITION_KEY='vacation',PROCESS_DEFINITION_VERSION=1 WHERE ID=3; UPDATE TASK_DEF_BASE SET PROCESS_DEFINITION_ID=NULL,PROCESS_DEFINITION_KEY='publish',PROCESS_DEFINITION_VERSION=1 WHERE ID=4; UPDATE TASK_DEF_BASE SET PROCESS_DEFINITION_ID=NULL,PROCESS_DEFINITION_KEY='publish',PROCESS_DEFINITION_VERSION=1 WHERE ID=5; INSERT INTO TASK_DEF_BASE(ID,CODE,PROCESS_DEFINITION_KEY,PROCESS_DEFINITION_VERSION) VALUES(101,'usertask1','permission',1); INSERT INTO TASK_DEF_BASE(ID,CODE,PROCESS_DEFINITION_KEY,PROCESS_DEFINITION_VERSION) VALUES(102,'usertask2','permission',1); INSERT INTO TASK_DEF_BASE(ID,CODE,PROCESS_DEFINITION_KEY,PROCESS_DEFINITION_VERSION) VALUES(103,'usertask3','permission',1); INSERT INTO TASK_DEF_NOTIFICATION(ID,EVENT_NAME,TYPE,RECEIVER,TEMPLATE_CODE,BASE_ID) VALUES(101,'create','mail,msg','任务接收人','arrival-assignee',102); INSERT INTO TASK_DEF_NOTIFICATION(ID,EVENT_NAME,TYPE,RECEIVER,TEMPLATE_CODE,BASE_ID) VALUES(102,'create','mail,msg','任务接收人','arrival-assignee',103); INSERT INTO TASK_DEF_NOTIFICATION(ID,EVENT_NAME,TYPE,RECEIVER,TEMPLATE_CODE,BASE_ID) VALUES(103,'complete','mail,msg','流程发起人','complete',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(101,'saveDraft',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(102,'completeTask',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(103,'rollbackPrevious',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(104,'rollbackInitiator',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(105,'transfer',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(106,'delegateTask',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(107,'communicate',102); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(108,'saveDraft',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(109,'completeTask',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(110,'rollbackPrevious',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(111,'rollbackInitiator',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(112,'transfer',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(113,'delegateTask',103); INSERT INTO TASK_DEF_OPERATION(ID,VALUE,BASE_ID) VALUES(114,'communicate',103);
<filename>src/database/upgrade/4/openfire_mysql.sql<gh_stars>1-10 # Update jiveVersion to JM 2.4 UPDATE jiveVersion SET majorVersion=2, minorVersion=4; # jiveGroupUser: Alter length of username column ALTER TABLE jiveGroupUser CHANGE username username varchar(100) NOT NULL;
CREATE FUNCTION [dbo].[InlineFunction] ( @param1 int, @param2 char(5) ) RETURNS TABLE AS RETURN ( SELECT @param1 AS c1, @param2 AS c2, @@ERROR AS xx )
<reponame>Telli/mots<filename>src/main/resources/db/changelog/02_initial_data.mysql.sql --liquibase formatted sql --changeset kdondziak:1600079823224-1 INSERT INTO client (client_id,access_token_validity_seconds,additional_information,authorities,authorized_grant_types,client_secret,refresh_token_validity_seconds,registered_redirect_uris,resource_ids,`scope`) VALUES ('trusted-client',NULL,NULL,'TRUSTED_CLIENT','password,<PASSWORD>token','{noop}secret',NULL,NULL,'mots','read,write') ; INSERT INTO user_permission (id,created_date,updated_date,display_name,name,readonly) VALUES ('038f5310-9d4a-4fbb-b474-44bb352d51fd',NULL,NULL,'Manage Users','ROLE_MANAGE_USERS',1) ,('0b1b6dc5-2ccc-4354-9a5c-28255eea8d3f',NULL,NULL,'Display Reports','ROLE_DISPLAY_REPORTS',1) ,('0bb95c4e-9e1a-40cd-8fa0-9879c419a507',NULL,NULL,'Admin','ROLE_ADMIN',1) ,('0f5f40f2-be3d-4509-af61-fa591e504295',NULL,NULL,'Manage Locations','ROLE_MANAGE_FACILITIES',1) ,('1078f9ec-8b05-4db5-b1d1-78a622773983',NULL,NULL,'Upload CHW CSV','ROLE_UPLOAD_CHW_CSV',1) ,('1f45915b-2fb4-4f9e-be47-af2ac1bb5c81',NULL,NULL,'Display CHWs','ROLE_CHW_READ',1) ,('2eb6d006-52a0-49db-b5ff-a8beb9464cf2',NULL,NULL,'Manage Modules','ROLE_MANAGE_MODULES',1) ,('39773f50-d881-4fc9-bde3-ae6965cbb18c',NULL,NULL,'Manage Own Locations','ROLE_MANAGE_OWN_FACILITIES',1) ,('39afbbe4-5854-418b-8ce7-4621980bcdfd',NULL,NULL,'Create Locations','ROLE_CREATE_FACILITIES',1) ,('3c95a42a-7f1f-4c72-8cb4-6c9f9b144fe5',NULL,NULL,'Create/Edit CHW','ROLE_CHW_WRITE',1) ; INSERT INTO user_permission (id,created_date,updated_date,display_name,name,readonly) VALUES ('3f273730-a2c3-4208-adaf-a8839b78655e',NULL,NULL,'Display Groups','ROLE_GROUP_READ',1) ,('6ab183c6-b091-48b1-98f9-869af54dcd1d',NULL,NULL,'Display Locations','ROLE_DISPLAY_FACILITIES',1) ,('86a7adf7-8287-4233-972b-05662444bfa7',NULL,NULL,'Upload Location CSV','ROLE_UPLOAD_LOCATION_CSV',1) ,('8b42ec54-6675-4fd0-901c-d30ad5f41cf7',NULL,NULL,'Assign Modules','ROLE_ASSIGN_MODULES',1) ,('9206c12a-9ad8-4082-b1f3-cdda9b2c57df',NULL,NULL,'Display Modules','ROLE_DISPLAY_MODULES',1) ,('adc5e376-5993-4699-9d09-5a415b9329fe',NULL,NULL,'Create/Edit Group','ROLE_GROUP_WRITE',1) ; INSERT INTO user_role (id,created_date,updated_date,name,readonly) VALUES ('a894d04f-a653-4745-bf11-f76e3cfb228b',NULL,NULL,'Level 1',0) ,('d892e3c6-25eb-4291-abfc-b379aa502bc3',NULL,NULL,'Admin',1) ,('da5d8474-637d-446d-a221-80de009a6f6c',NULL,NULL,'Level 2',0) ; INSERT INTO user_role_permissions (permission_id,role_id) VALUES ('038f5310-9d4a-4fbb-b474-44bb352d51fd','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('038f5310-9d4a-4fbb-b474-44bb352d51fd','da5d8474-637d-446d-a221-80de009a6f6c') ,('0b1b6dc5-2ccc-4354-9a5c-28255eea8d3f','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('0b1b6dc5-2ccc-4354-9a5c-28255eea8d3f','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('0b1b6dc5-2ccc-4354-9a5c-28255eea8d3f','da5d8474-637d-446d-a221-80de009a6f6c') ,('0bb95c4e-9e1a-40cd-8fa0-9879c419a507','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('0f5f40f2-be3d-4509-af61-fa591e504295','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('0f5f40f2-be3d-4509-af61-fa591e504295','da5d8474-637d-446d-a221-80de009a6f6c') ,('1078f9ec-8b05-4db5-b1d1-78a622773983','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('1078f9ec-8b05-4db5-b1d1-78a622773983','d892e3c6-25eb-4291-abfc-b379aa502bc3') ; INSERT INTO user_role_permissions (permission_id,role_id) VALUES ('1078f9ec-8b05-4db5-b1d1-78a622773983','da5d8474-637d-446d-a221-80de009a6f6c') ,('1f45915b-2fb4-4f9e-be47-af2ac1bb5c81','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('1f45915b-2fb4-4f9e-be47-af2ac1bb5c81','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('1f45915b-2fb4-4f9e-be47-af2ac1bb5c81','da5d8474-637d-446d-a221-80de009a6f6c') ,('2eb6d006-52a0-49db-b5ff-a8beb9464cf2','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('2eb6d006-52a0-49db-b5ff-a8beb9464cf2','da5d8474-637d-446d-a221-80de009a6f6c') ,('39773f50-d881-4fc9-bde3-ae6965cbb18c','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('39773f50-d881-4fc9-bde3-ae6965cbb18c','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('39afbbe4-5854-418b-8ce7-4621980bcdfd','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('39afbbe4-5854-418b-8ce7-4621980bcdfd','d892e3c6-25eb-4291-abfc-b379aa502bc3') ; INSERT INTO user_role_permissions (permission_id,role_id) VALUES ('39afbbe4-5854-418b-8ce7-4621980bcdfd','da5d8474-637d-446d-a221-80de009a6f6c') ,('3c95a42a-7f1f-4c72-8cb4-6c9f9b144fe5','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('3c95a42a-7f1f-4c72-8cb4-6c9f9b144fe5','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('3c95a42a-7f1f-4c72-8cb4-6c9f9b144fe5','da5d8474-637d-446d-a221-80de009a6f6c') ,('3f273730-a2c3-4208-adaf-a8839b78655e','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('6ab183c6-b091-48b1-98f9-869af54dcd1d','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('6ab183c6-b091-48b1-98f9-869af54dcd1d','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('6ab183c6-b091-48b1-98f9-869af54dcd1d','da5d8474-637d-446d-a221-80de009a6f6c') ,('86a7adf7-8287-4233-972b-05662444bfa7','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('8b42ec54-6675-4fd0-901c-d30ad5f41cf7','a894d04f-a653-4745-bf11-f76e3cfb228b') ; INSERT INTO user_role_permissions (permission_id,role_id) VALUES ('8b42ec54-6675-4fd0-901c-d30ad5f41cf7','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('8b42ec54-6675-4fd0-901c-d30ad5f41cf7','da5d8474-637d-446d-a221-80de009a6f6c') ,('9206c12a-9ad8-4082-b1f3-cdda9b2c57df','a894d04f-a653-4745-bf11-f76e3cfb228b') ,('9206c12a-9ad8-4082-b1f3-cdda9b2c57df','d892e3c6-25eb-4291-abfc-b379aa502bc3') ,('9206c12a-9ad8-4082-b1f3-cdda9b2c57df','da5d8474-637d-446d-a221-80de009a6f6c') ,('adc5e376-5993-4699-9d09-5a415b9329fe','d892e3c6-25eb-4291-abfc-b379aa502bc3') ; INSERT INTO user (id,created_date,updated_date,email,enabled,name,password,username) VALUES ('<PASSWORD>',NULL,NULL,'<EMAIL>',1,NULL,'{bcrypt}$2a$10$4IZfidcJzbR5Krvj87ZJdOZvuQoD/kvPAJe549rUNoP3N3uH0Lq2G','admin') ; INSERT INTO users_roles (user_id,role_id) VALUES ('51f6bdc1-4932-4bc3-9589-368646ef7ad3','d892e3c6-25eb-4291-abfc-b379aa502bc3') ;
ALTER TABLE TASK_DEF_BASE ADD COLUMN PROCESS_DEFINITION_KEY VARCHAR(100); COMMENT ON COLUMN TASK_DEF_BASE.PROCESS_DEFINITION_KEY IS '流程标识'; ALTER TABLE TASK_DEF_BASE ADD COLUMN PROCESS_DEFINITION_VERSION INT; COMMENT ON COLUMN TASK_DEF_BASE.PROCESS_DEFINITION_VERSION IS '流程版本';
<filename>sql/_23_apricot_qa/_02_performance/_02_function_based_index/cases/function_based_index_function_log2.sql --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME); insert into t1 values ( '1234567890', '1234567890', N'abc', N'ABC', B'1111111111', B'1111111111', 10, 8, 9223372036854775807, 1, 0, 0.1, -100, DATE '2008-10-31', TIME '00:00:00', TIMESTAMP '2010-10-31 01:15:45', DATETIME '2008-10-31 13:15:45'); insert into t1 values (null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null); --TEST Create failed create index i_t1_a2q on t1(log2(a)); --TEST Create failed create index i_t1_a2p on t1(log2(b)); --TEST Create failed create index i_t1_a2o on t1(log2(c)); --TEST Create failed create index i_t1_a2n on t1(log2(d)); --TEST Create failed create index i_t1_a2m on t1(log2(e)); --TEST Create failed create index i_t1_a2l on t1(log2(f)); --TEST Create successfully create index i_t1_a2k on t1(log2(g)); --TEST: should use index i_t1_a2k select /*+ RECOMPILE */* from t1 where log2(g)<g ; --TEST Create successfully create index i_t1_a2j on t1(log2(h)); --TEST: should use index i_t1_a2j select /*+ RECOMPILE */* from t1 where log2(h)<=3.000000000000000e+00 ; --TEST Create successfully create index i_t1_a2i on t1(log2(i)); --TEST: should use index i_t1_a2i select /*+ RECOMPILE */* from t1 where log2(i) <=i ; --TEST Create successfully create index i_t1_a2h on t1(log2(j)); --TEST: should use index i_t1_a2h select /*+ RECOMPILE */* from t1 where log2(j)=0.000000000000000e+00 ; --TEST Create successfully create index i_t1_a2g on t1(log2(k)); --TEST: should use index i_t1_a2g select /*+ RECOMPILE */* from t1 where log2(k)is null ; --TEST Create successfully create index i_t1_a2f on t1(log2(l)); --TEST: should use index i_t1_a2f select /*+ RECOMPILE */* from t1 where log2(l)>0 ; --TEST Create successfully create index i_t1_a2e on t1(log2(m)); --TEST: should use index i_t1_a2e select /*+ RECOMPILE */* from t1 where log2(m) is null ; --TEST Create failed create index i_t1_a2d on t1(log2(n)); --TEST Create failed create index i_t1_a2c on t1(log2(o)); --TEST Create failed create index i_t1_a2b on t1(log2(p)); --TEST Create failed create index i_t1_a2a on t1(log2(q)); --TEST Create failed create index i_t1_a2a1 on t1(log2(pi()/3)); --TEST Create failed create index i_t1_a2a2 on t1(log2(l/3)); drop table t1; set system parameters 'dont_reuse_heap_file=no'; commit; --+ holdcas off;
---- ALTER TABLE ... CHANGE COLUMN -- class attribute -- changing default -- DEFAULT value should be ignored -- no default at creation create class c1 class attribute (c_i integer) ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_i=-1; select class c1.c_i, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_i c_i integer default 5; insert into c1 set i=3; select class c1.c_i, i from c1 order by 1,2; show columns in c1; drop class c1; -- with default at creation + change create class c1 class attribute (c_i integer default 10) ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_i=20; select class c1.c_i, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_i c_i integer default 5; insert into c1 set i=3; select class c1.c_i, i from c1 order by 1,2; show columns in c1; drop class c1; -- with default at creation + no default after change + type change create class c1 class attribute (c_i integer default 10) ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_i=20; select class c1.c_i, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_i c_s varchar(10); insert into c1 set i=3; select class c1.c_s, i from c1 order by 1,2; show columns in c1; drop class c1; -- with default at creation + type change 1 create class c1 class attribute (c_i short default 10) ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_i=-1; select class c1.c_i, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_i c_b bigint default 1000000; insert into c1 set i=3; select class c1.c_b, i from c1 order by 1,2; show columns in c1; drop class c1; -- with default at creation + type change 2 create class c1 class attribute (c_s char(10) default '10') ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_s='20'; select class c1.c_s, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_s c_i int default -4; insert into c1 set i=3; select class c1.c_i, i from c1 order by 1,2; show columns in c1; drop class c1; -- with default at creation + type change 3 create class c1 class attribute (c_s char(2) default '10') ( i integer ) ; insert into c1 values (1),(2); update c1 set class c1.c_s='20'; select class c1.c_s, i from c1 order by 1,2; show columns in c1; alter table c1 change class attribute c_s c_i int default -4; insert into c1 set i=3; select class c1.c_i, i from c1 order by 1,2; show columns in c1; drop class c1;
<gh_stars>10-100 CREATE TABLE P1 ( ID INTEGER DEFAULT '0' NOT NULL, TINY TINYINT NOT NULL, SMALL SMALLINT NOT NULL, BIG BIGINT NOT NULL, PRIMARY KEY (ID) ); CREATE UNIQUE INDEX IP1 ON P1 (ID, TINY); CREATE INDEX IP2 ON P1 (BIG, SMALL); CREATE INDEX IP3 ON P1 (TINY); CREATE TABLE R1 ( ID INTEGER DEFAULT '0' NOT NULL, TINY TINYINT NOT NULL, SMALL SMALLINT NOT NULL, BIG BIGINT NOT NULL, PRIMARY KEY (ID) ); CREATE UNIQUE INDEX IR1 ON R1 (TINY); CREATE TABLE INDEXED_VL_TABLE1 ( ID INTEGER DEFAULT 0 NOT NULL PRIMARY KEY, VC1 VARCHAR(3), VC2 VARCHAR(3 BYTES), VB1 VARBINARY(6) ); CREATE TABLE INDEXED_VL_TABLE2 ( ID INTEGER DEFAULT 0 NOT NULL PRIMARY KEY, VC1 VARCHAR(6), VC2 VARCHAR(6 BYTES), VB1 VARBINARY(12) ); -- create index on varchar CREATE INDEX VC1_INDEXED_VL1 ON INDEXED_VL_TABLE1 (VC1); CREATE INDEX VC2_INDEXED_VL1 ON INDEXED_VL_TABLE1 (VC2); CREATE INDEX VB1_INDEXED_VL1 ON INDEXED_VL_TABLE1 (VB1); CREATE INDEX VC1_INDEXED_VL2 ON INDEXED_VL_TABLE2 (VC1); CREATE INDEX VC2_INDEXED_VL2 ON INDEXED_VL_TABLE2 (VC2); CREATE INDEX VB1_INDEXED_VL2 ON INDEXED_VL_TABLE2 (VB1);
<filename>admin/src/main/resources/sql/migration/accounts/V23__add_uuid_to_view.sql<gh_stars>0 DROP VIEW daily_wash_view; CREATE VIEW daily_wash_view AS SELECT c.uuid, c.document_check_filename AS filename, c.creation_time, c.creator_username, c.full_name AS creator_full_name, c.rows, 'DOC' AS type, d.username, d.full_name AS download_full_name, d.download_time FROM daily_wash_creation c LEFT JOIN daily_wash_download d ON d.creation_id = c.id AND d.type = 'DOC' UNION SELECT c.uuid, c.name_check_filename AS filename, c.creation_time, c.creator_username, c.full_name AS creator_full_name, c.rows, 'NAME' AS type, d.username, d.full_name AS download_full_name, d.download_time FROM daily_wash_creation c LEFT JOIN daily_wash_download d ON d.creation_id = c.id AND d.type = 'NAME' ORDER BY creation_time DESC;
/*CREATE DATABASE `tepla` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /* drop table `topics_history`; drop table `topics`; drop table `users`; */ CREATE TABLE `users` ( `user_id` int unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(16) NOT NULL, `user_email` varchar(255) DEFAULT NULL, `user_password` varchar(32) NOT NULL, `user_createdOn` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`user_id`), UNIQUE KEY `user_id_UNIQUE` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `topics` ( `topic_id` int unsigned NOT NULL AUTO_INCREMENT, `topic_name` varchar(128) NOT NULL, `topic_data` json DEFAULT NULL, `topic_visible` tinyint(4) DEFAULT '1', `topic_modifiedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `topic_createdOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `topic_author` int unsigned DEFAULT NULL, PRIMARY KEY (`topic_id`), UNIQUE KEY `topic_id_UNIQUE` (`topic_id`), KEY `topic_author_idx` (`topic_author`), CONSTRAINT `fk_topic_author` FOREIGN KEY (`topic_author`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `topics_history` ( `topic_history_id` int unsigned NOT NULL AUTO_INCREMENT, `topic_history_name` varchar(128) NOT NULL, `topic_history_data` json DEFAULT NULL, `topic_history_modifiedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `topic_history_createdOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `topic_history_author` int(11) unsigned DEFAULT NULL, `topic_history_parent` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`topic_history_id`), UNIQUE KEY `id_UNIQUE` (`topic_history_id`), KEY `topic_history_author_idx` (`topic_history_author`), KEY `fk_topic_history_parent` (`topic_history_parent`), CONSTRAINT `fk_topic_history_author` FOREIGN KEY (`topic_history_author`) REFERENCES `users` (`user_id`), CONSTRAINT `fk_topic_history_parent` FOREIGN KEY (`topic_history_parent`) REFERENCES `topics` (`topic_id`) ON DELETE RESTRICT ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; INSERT INTO `tepla`.`users` ( `user_name`, `user_email`, `user_password` ) VALUES ( 'Aleksi', '<EMAIL>', '12345678910' ); INSERT INTO `tepla`.`topics` ( `topic_name`, `topic_data` ) VALUES ( 'JSON', '{}' ); INSERT INTO `tepla`.`topics` ( `topic_name`, `topic_data` ) VALUES ( 'CLI', '{}' );
SELECT `employees`.`salary` FROM `mydb`.`employees` WHERE `employees`.`id` IN (SELECT `personal_informations`.`employees_id` FROM `mydb`.`personal_informations`);
<gh_stars>0 CREATE TABLE IF NOT EXISTS usuario( id INT UNSIGNED NOT NULL AUTO_INCREMENT, nome VARCHAR(60) NOT NULL, email VARCHAR(255) NOT NULL, telefone VARCHAR(20) NOT NULL, PRIMARY KEY(id), UNIQUE KEY(email) );
<reponame>ucdavis/AD419 CREATE TABLE [dbo].[BillingIDConversions] ( [BillingID] CHAR (4) NOT NULL, [Chart] VARCHAR (2) NOT NULL, [Account] CHAR (7) NULL, [SubAccount] CHAR (5) NULL, [OrgID] CHAR (4) NULL, [ProjectNumTransLine] CHAR (10) NULL, [EffectiveDate] DATETIME NULL, [ExpirationDate] DATETIME NULL, [Comments] VARCHAR (120) NULL, [LastUpdateDate] DATETIME NULL ); GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Legacy Billing IDs; Contains information to convert from a billing id, provided in a service unit general ledger transaction, to dafis Chart/Account/Sub-Acct/Project identifiers.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Billing Id: The Id number supplied by the user to the service unit.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'BillingID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Chart Of Accounts Number: Identifier of a Chart of Accounts to be used on a transaction in dafis', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'Chart'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Account Number: Organization chosen identifier for a transaction used to classify financial resources for accounting and reporting purposes in dafis', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'Account'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Sub Account Number: Organization chosen identifier for a transaction used to subdivide accounts for more detailed analysis and reporting in dafis', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'SubAccount'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Organization Identifier: Identifier of an Organization', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'OrgID'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Transaction Line Project Number: Code used on a transaction to track and accumulate transactions across multiple charts, accounts and fund groups in dafis.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'ProjectNumTransLine'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Billing Id Effective Date: The effective date of this billing id.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'EffectiveDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Billing Id Expiration Date: The expiration date of this billing id. A null value indicates that the billing id will not expire after any particular date.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'ExpirationDate'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Billing Id Comments: The comments provided by the user to explain the use of this billing id.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'Comments'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Billing Id Last Update Date: The last time this Billing Id information was changed.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'BillingIDConversions', @level2type = N'COLUMN', @level2name = N'LastUpdateDate';
<filename>migrate/1_create_snippets.up.sql CREATE TABLE snippets ( id VARCHAR(255) UNIQUE NOT NULL, code TEXT NOT NULL, updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP );
CREATE FUNCTION udf_HoursToComplete(@StartDate DATETIME, @EndDate DATETIME) RETURNS INT BEGIN DECLARE @totalHours INT; IF(@StartDate IS NULL) BEGIN SET @totalHours = 0; RETURN @totalHours; END; IF(@EndDate IS NULL) BEGIN SET @totalHours = 0; RETURN @totalHours; END; SET @totalHours = DATEDIFF(HOUR, @StartDate, @EndDate); RETURN @totalHours; END GO SELECT dbo.udf_HoursToComplete(OpenDate, CloseDate) AS TotalHours FROM Reports
SET SERVEROUTPUT ON; DECLARE --Declare variables birth_month CHAR(3) := '&enter_birth_month_MMM'; message VARCHAR2(30); BEGIN --Test the month IF birth_month = 'JAN' THEN --Set the message message := 'Start of the year'; ELSE --Set the message message := 'No comment'; END IF; --Display the output to the user dbms_output.put_line(message); END;
<reponame>ARCEP-dev/algo_maconnexioninternet \timing BEGIN; ---------------- REINITIALISATION ---------------- ---Mis à null des logements de la table FPB--- UPDATE adresse.fpb SET code_ban=null WHERE code_ban is not null; REFRESH MATERIALIZED VIEW admin.com_dept_reg; REFRESH MATERIALIZED VIEW adresse.base_imb; REFRESH MATERIALIZED VIEW adresse.commune; DROP SEQUENCE IF EXISTS adresse.adresse_id_seq CASCADE; CREATE SEQUENCE adresse.adresse_id_seq; /* fin de modifications ajoutées par rapport au script initial*/ -- Suppression de tous les immeubles et des adresses non originaires de la BAN TRUNCATE adresse.adresse_immeuble, adresse.immeuble RESTART IDENTITY CASCADE; DELETE FROM adresse.adresse WHERE source = 'fo'; -- Suppression des stats agrégées à l'epci et à l'iris. TRUNCATE adresse.epci, adresse.iris RESTART IDENTITY; -- Mise à Null des champs nbr_log & nbr_loc de la table adresse.adresse. UPDATE adresse.adresse SET (nbr_log, nbr_loc) = (null, null); REINDEX TABLE adresse.adresse; SELECT SETVAL('adresse.adresse_id_seq', (SELECT MAX(id) FROM adresse.adresse), true); ---------------- AJOUT DES IMMEUBLES FIBRE ---------------- -- Ajout immeubles fibre géocodés dans adresse.immeuble /* Les immeubles issues d'IPE, contenus dans reseau_fo.imb, qui sont géocodés sont ajoutés dans la table adresse.immeuble s'ils ont le statut : - Cible, - Signé, - En cours de déploiement, - Raccordable sur demande, - Déployé. */ DROP SEQUENCE IF EXISTS fibre_imb_id_seq; CREATE SEQUENCE fibre_imb_id_seq; CREATE TEMPORARY TABLE fibre_imb ( id integer NOT NULL, fo_imb_id integer, geom geometry(POINT), code_imb character varying(30) NOT NULL, code_ban character varying(26), batiment character varying(70), numero_voie integer, complement_voie character varying(6), type_voie character varying(50), nom_voie character varying(50), code_insee character varying(5) NOT NULL, type_imb character varying(5), nbr_log integer, CONSTRAINT fibre_imb_pkey PRIMARY KEY (id) ) ON COMMIT DROP; SELECT SETVAL('fibre_imb_id_seq', (SELECT MAX(id) FROM adresse.immeuble), true); INSERT INTO fibre_imb (id, fo_imb_id, geom, code_imb, code_ban, batiment, numero_voie, complement_voie, type_voie, nom_voie, code_insee, type_imb, nbr_log) SELECT nextval('fibre_imb_id_seq'), rfi.id, rfi.geom, rfi.code_imb, rfi.code_ban, rfi.batiment, rfi.numero_voie, rfi.complement_voie, rfi.type_voie, rfi.nom_voie, rfi.code_insee, rfi.type_imb, rfi.nbr_log FROM reseau_fo.imb rfi LEFT JOIN reference.fibre_etat rfe_imb ON rfi.etat_id=rfe_imb.id LEFT JOIN reseau_fo.pm rfp ON rfi.pm_id=rfp.id LEFT JOIN reference.fibre_etat rfe_pm ON rfp.etat_id=rfe_pm.id WHERE rfe_imb.code not in ('ABAN') AND EXISTS (SELECT 1 FROM adresse.adresse WHERE adresse.code = rfi.code_ban); CREATE INDEX fibre_imb_code_ban_idx_tmp ON fibre_imb USING btree (code_ban); INSERT INTO adresse.immeuble (id, source, code, geom, iris_id, num_immeuble, code_insee, type, nbr_log, nbr_loc) SELECT imb.id, 'fo', imb.code_imb, imb.geom, i.id, imb.batiment::varchar(25), imb.code_insee, imb.type_imb, imb.nbr_log, null FROM fibre_imb AS imb LEFT JOIN admin.iris AS i ON i.code_insee = imb.code_insee AND ST_Contains(i.geom, imb.geom); INSERT INTO adresse.adresse_immeuble (adresse_id, immeuble_id) SELECT a.id, i.id FROM fibre_imb AS i, adresse.adresse AS a WHERE i.code_ban = a.code; -- La valeur du champ nbr_log de la table adresse.adresse est mise en cohérence avec la somme des immeubles fibres. UPDATE adresse.adresse SET (nbr_log, nbr_loc) = ( SELECT SUM(i.nbr_log), SUM(i.nbr_loc) FROM adresse.immeuble i INNER JOIN adresse.adresse_immeuble ai ON ai.immeuble_id = i.id AND ai.adresse_id = adresse.id ) WHERE EXISTS (SELECT 1 FROM fibre_imb WHERE fibre_imb.code_ban = adresse.code); -- Récap SELECT 'fibre_imb' AS "table", COUNT(*) FROM fibre_imb UNION SELECT 'reseau_fo.imb' AS "table", COUNT(*) FROM reseau_fo.imb ORDER BY "table"; DROP SEQUENCE IF EXISTS fibre_imb_id_seq; DROP TABLE IF EXISTS fibre_imb; -- Ajout immeubles fibre non géocodés à adresse.* /* Les immeubles issues d'IPE, contenus dans reseau_fo.imb, qui ne sont pas géocodés sont ajoutés dans la table adresse.immeuble s'ils ont le statut : - Cible, - Signé, - En cours de déploiement, - Raccordable sur demande, - Déployé. */ CREATE SEQUENCE fibre_imb_id_seq; CREATE TEMPORARY TABLE fibre_imb ( id integer NOT NULL, fo_imb_id integer, geom geometry(POINT), code_imb character varying(30) NOT NULL, --code_ban character varying(26), batiment character varying(70), numero_voie integer, complement_voie character varying(6), type_voie character varying(50), nom_voie character varying(50), code_insee character varying(5) NOT NULL, type_imb character varying(5), nbr_log integer, CONSTRAINT fibre_imb_pkey PRIMARY KEY (id) ) ON COMMIT DROP; SELECT SETVAL('fibre_imb_id_seq', (SELECT MAX(id) FROM adresse.immeuble), true); INSERT INTO fibre_imb (id, fo_imb_id, geom, code_imb, batiment, numero_voie, complement_voie, type_voie, nom_voie, code_insee, type_imb, nbr_log) SELECT nextval('fibre_imb_id_seq'), rfi.id, rfi.geom, rfi.code_imb, rfi.batiment, rfi.numero_voie, rfi.complement_voie, rfi.type_voie, rfi.nom_voie, rfi.code_insee, rfi.type_imb, rfi.nbr_log FROM reseau_fo.imb rfi LEFT JOIN reference.fibre_etat rfe_imb ON rfi.etat_id=rfe_imb.id LEFT JOIN reseau_fo.pm rfp ON rfi.pm_id=rfp.id LEFT JOIN reference.fibre_etat rfe_pm ON rfp.etat_id=rfe_pm.id WHERE rfe_imb.code not in ('ABAN') AND NOT EXISTS (SELECT 1 FROM adresse.adresse WHERE adresse.code = rfi.code_ban); --- Création des adresses à partir des immeubles précédents /* Les précédents immeubles sont agrégés par regroupement sur les colonnes : numero_voie, complement_voie, type_voie, nom_voie, code_insee pour créer les adresses. */ CREATE TEMPORARY TABLE fibre_addr ( id serial, nbr_imb_addr integer, -- Nombre d\'immeubles par adresse fibre_imb_id_list integer[], geom geometry(POINT), code_imb character varying(30) DEFAULT NULL, numero_voie integer, complement_voie character varying(6), type_voie character varying(50), nom_voie character varying(50), code_insee character varying(5) NOT NULL, nbr_log integer, --nbr_loc integer, données absentes d'IPE CONSTRAINT fibre_addr_pkey PRIMARY KEY (id) ) ON COMMIT DROP; SELECT SETVAL('fibre_addr_id_seq', (SELECT MAX(id) FROM adresse.adresse), true); INSERT INTO fibre_addr (nbr_imb_addr, fibre_imb_id_list, geom, numero_voie, complement_voie, type_voie, nom_voie, code_insee, nbr_log) SELECT count(*), array_agg(id), null::geometry(Point), numero_voie, complement_voie, type_voie, nom_voie, code_insee, SUM(nbr_log) FROM fibre_imb WHERE nom_voie IS NOT NULL GROUP BY numero_voie, complement_voie, type_voie, nom_voie, code_insee; -- La géométrie des adresses correspond au centroïde de ses immeubles. UPDATE fibre_addr SET geom = (SELECT ST_Centroid(ST_Union(geom)) FROM fibre_imb WHERE id = ANY (fibre_imb_id_list) GROUP BY fibre_imb_id_list[1] ); -- La valeur du champ code de la table adresse.adresse sera arbitrairement le code d'un immeuble de l'adresse. UPDATE fibre_addr SET code_imb = fibre_imb.code_imb FROM fibre_imb WHERE fibre_imb.id = fibre_addr.fibre_imb_id_list[1]; -- Récap SELECT count(*), 'fibre_addr' AS table FROM fibre_addr UNION SELECT count(*), 'fibre_imb' AS table FROM fibre_imb; INSERT INTO adresse.immeuble (id, source, code, geom, iris_id, num_immeuble, code_insee, type, nbr_log, nbr_loc) SELECT id, 'fo', code_imb, geom, null, batiment::varchar(25), code_insee, type_imb, nbr_log, null FROM fibre_imb; INSERT INTO adresse.adresse (id, code, source, geom, nbr_log, nbr_loc, id_fantoir, numero, rep, nom_voie, nom_ld, code_insee, alias, nom_afnor, nom_commune) SELECT fibre_addr.id, code_imb, 'fo', fibre_addr.geom, nbr_log, null, null, numero_voie, complement_voie::varchar(6), COALESCE(type_voie || ' ' || nom_voie, nom_voie)::varchar(50), null, c.code_insee, null, null, c.nom FROM fibre_addr INNER JOIN admin.commune c ON c.code_insee = fibre_addr.code_insee; INSERT INTO adresse.adresse_immeuble (adresse_id, immeuble_id) SELECT a.id, i.id FROM fibre_imb i, fibre_addr a WHERE i.id = ANY (fibre_imb_id_list); SELECT SETVAL('adresse.adresse_id_seq', (SELECT MAX(id) FROM adresse.adresse), true); DROP SEQUENCE IF EXISTS fibre_imb_id_seq; DROP TABLE IF EXISTS fibre_imb; -- Récap SELECT 'adresse.immeuble' AS "table", COUNT(*) FROM adresse.immeuble UNION SELECT 'adresse.adresse' AS "table", COUNT(*) FROM adresse.adresse UNION SELECT 'adresse.adresse_immeuble' AS "table", COUNT(*) FROM adresse.adresse_immeuble ORDER BY "table"; -- Stat SELECT COUNT(*) || ' adresse(s) avec un seul immeuble' AS stats FROM adresse.adresse WHERE EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE adresse_immeuble.adresse_id = adresse.id GROUP BY adresse_immeuble.adresse_id HAVING COUNT(*) = 1) UNION SELECT COUNT(*) || ' adresse(s) avec plusieurs immeubles' AS stats FROM adresse.adresse WHERE EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE adresse_immeuble.adresse_id = adresse.id GROUP BY adresse_immeuble.adresse_id HAVING COUNT(*) > 1); -- Erreur SELECT COUNT(*) || ' immeuble(s) sans lien avec une adresse' AS erreur FROM adresse.immeuble WHERE NOT EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE adresse_immeuble.immeuble_id = immeuble.id) UNION SELECT COUNT(*) || ' adresse(s) sans immeuble' AS erreur FROM adresse.adresse WHERE NOT EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE adresse_immeuble.adresse_id = adresse.id); COMMIT; ------------------------------------------------- APPAREILLEMENT DES ADRESSES DU FPB A LA BAN --------------------------------------- BEGIN; ---Conversion dans le SRID local UPDATE adresse.fpb SET geom=ST_Transform(geom,2154) WHERE code_insee not ilike '97%'; UPDATE adresse.fpb SET geom=ST_Transform(geom,32620) WHERE code_insee ilike '971%' or code_insee ilike '972%' or code_insee ilike '977%'or code_insee ilike '978%'; UPDATE adresse.fpb SET geom=ST_Transform(geom,2972) WHERE code_insee ilike '973%'; UPDATE adresse.fpb SET geom=ST_Transform(geom,2975) WHERE code_insee ilike '974%'; UPDATE adresse.fpb SET geom=ST_Transform(geom,4471) WHERE code_insee ilike '976%'; UPDATE adresse.fpb set rep=NULL where rep=''; UPDATE adresse.fpb set code_ban=NULL where code_ban=''; -- tag permettant de savoir quelle étape du géocodage a permis de ratacher le FPB ALTER TABLE adresse.fpb add column if not exists source_geocodage character varying (30); ---Réinitialisation UPDATE adresse.fpb set source_geocodage=NULL AND code_ban=NULL; CREATE INDEX IF NOT EXISTS adresse_code_fpb_idx_tmp ON adresse.adresse USING btree ((adresse.code_insee || '-' || adresse.id_fantoir || '-' || adresse.numero || COALESCE(adresse.rep, ''))); CREATE INDEX IF NOT EXISTS adresse_fpb_geom_idx ON adresse.fpb USING gist (geom); CREATE INDEX IF NOT EXISTS adresse_fpb_code_insee_idx ON adresse.fpb USING btree (code_insee); CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; -- Appareillement par identité des quadruplets /* Le premier tour d'appareillement va associer une code_ban à l'adresse du FPB si les quatres champs suivant sont égaux : code insee, id fantoir, numero de voie et repetition. */ UPDATE adresse.fpb SET source_geocodage='match_fpb_ban', code_ban= (SELECT code FROM adresse.adresse WHERE fpb.code = adresse.code_insee || '-' || adresse.id_fantoir || '-' || adresse.numero || COALESCE(adresse.rep, '') AND adresse.source='ban' AND adresse.id_fantoir is not null LIMIT 1) WHERE (code_ban IS NULL or code_ban=''); -- Si plusieurs adresses BAN matchent, on retient celle qui est la plus proche DROP INDEX adresse.adresse_code_fpb_idx_tmp; -- Apapreillement à 500 mètres avec conditions spécifiques /* Pour les adresse du FPB n'ayant pas pu être appareillées à la BAN lors du premeir tour, un second tour d'apapreillement va associer une code_ban à l'adresse du FPB si l'adresse BAN et l'adresse du FPB ont le même code insee, le même numéro de voie, la même répétition et si : - soit la distance de levenshtein sur le nom de voie est au maximum de 7 et la distance entre la géométrie de l'adresse BAN et de l'immeuble fibre est inférieur à 70 mètres - soit la distance de levenshtein sur le nom de voie est au maximum de 3 et la distance entre la géométrie de l'adresse BAN et de l'immeuble fibre est inférieur à 500 mètres */ UPDATE adresse.fpb afpb SET source_geocodage='geocodage_inverse', code_ban = ( SELECT code FROM adresse.adresse WHERE ST_SRID(adresse.geom) = ST_SRID(afpb.geom) AND ST_DWithin(adresse.geom, afpb.geom, 500) AND afpb.code_insee = adresse.code_insee AND ((levenshtein(lower(adresse.nom_voie), lower(afpb.nom_voie)) <= 7 AND ST_DWithin(adresse.geom, afpb.geom, 70)) OR (levenshtein(lower(adresse.nom_voie), lower(afpb.nom_voie)) <= 3)) AND afpb.numero = adresse.numero AND (COALESCE(adresse.rep, '') = COALESCE(adresse.rep, '')) ORDER BY ST_Distance(adresse.geom, afpb.geom) ASC LIMIT 1) WHERE code_ban IS NULL AND geom IS NOT NULL; -- Amélioration b / bis UPDATE adresse.fpb afpb SET source_geocodage='amelioration_b_bis_ban_fpb', code_ban = (SELECT code FROM adresse.adresse WHERE adresse.source = 'ban' AND adresse.rep='b' AND ST_SRID(adresse.geom) = ST_SRID(afpb.geom) AND ST_DWithin(adresse.geom, afpb.geom, 500) AND afpb.code_insee = adresse.code_insee AND ((levenshtein(lower(adresse.nom_voie), lower(afpb.nom_voie)) <= 7 AND ST_DWithin(adresse.geom, afpb.geom, 70)) OR (levenshtein(lower(adresse.nom_voie), lower(afpb.nom_voie)) <= 3)) AND afpb.numero = adresse.numero ORDER BY ST_Distance(adresse.geom, afpb.geom) ASC LIMIT 1) WHERE code_ban IS NULL AND geom IS NOT NULL and rep='bis'; -- Géocodage inverse 200 mètres (réallocation) /* Pour les adresse du FPB n'ayant pas pu être appareillées à la BAN lors du second tour, un dernier tout d'appareillement est effectué en associant l'adresse BAN la plus proche à l'adresse FPB si la distance entre les deux adresses est inférieure à 200 mètres et si les deux adresses se situent dans la même commune. */ UPDATE adresse.fpb afpb SET source_geocodage='geocodage_inverse_200_metres', code_ban = (SELECT code FROM adresse.adresse WHERE ST_SRID(adresse.geom) = ST_SRID(afpb.geom) AND ST_DWithin(adresse.geom, afpb.geom, 200) AND afpb.code_insee = adresse.code_insee ORDER BY ST_Distance(adresse.geom, afpb.geom) ASC LIMIT 1) WHERE code_ban IS NULL AND geom IS NOT NULL; DROP INDEX IF EXISTS adresse_fpb_geom_idx; DROP INDEX IF EXISTS adresse_fpb_code_insee_idx; SELECT source_geocodage, count(*) FROM adresse.fpb GROUP BY source_geocodage; COMMIT; BEGIN; -- Association du nombre de locaux des adresses du FPB géocodées, aux adresses BAN correspondantes CREATE INDEX IF NOT EXISTS adresse_fpb_code_ban_idx ON adresse.fpb USING btree (code_ban); UPDATE adresse.adresse aa SET (nbr_log,nbr_loc)= (SELECT SUM(af.nbr_log), SUM(af.nbr_loc) FROM adresse.fpb af WHERE af.code_ban=aa.code) WHERE aa.source='ban' AND aa.nbr_log is null AND aa.nbr_loc is null; DROP INDEX IF EXISTS adresse.adresse_fpb_code_ban_idx; COMMIT; ------------------------------------------------- GENERATION DES IMMEUBLES BAN --------------------------------------- /* Afin de garder le même modèle de données pour tous les cas de figure, il faut à minima un immeuble par adresse. Dans la zone très dense, pour toute adresse n'ayant pas d'immeuble et ayant un nbr_log ou nbr_loc non Null un immeuble est créé, qui a pour valeur de nbr_log et nbr_loc celles de son adresse. Hors de la zone très dense, pour toute adresse n'ayant pas d'immeuble, ayant un nbr_log ou nbr_loc non Null et située à plus de 40 mètres de tout immeuble deja existant, un immeuble est créé, qui a pour valeur de nbr_log et nbr_loc celles de son adresse. */ BEGIN; CREATE INDEX IF NOT EXISTS adresse_immeuble_code_insee_idx ON adresse.immeuble USING gist (geom); CREATE INDEX IF NOT EXISTS adresse_immeuble_geom_idx ON adresse.immeuble USING gist (geom); CREATE TEMPORARY TABLE ban_imb ( id serial, addr_id integer, geom geometry(Point) NOT NULL, code_insee character varying(5) NOT NULL, nbr_log integer DEFAULT NULL, nbr_loc integer DEFAULT NULL, CONSTRAINT ban_imb_pkey PRIMARY KEY (id) ) ON COMMIT DROP; SELECT SETVAL('ban_imb_id_seq', (SELECT MAX(id) FROM adresse.immeuble), true); INSERT INTO ban_imb (addr_id, geom, code_insee, nbr_log, nbr_loc) SELECT id, geom, code_insee, nbr_log, nbr_loc FROM adresse.adresse aa WHERE source = 'ban' AND geom IS NOT NULL AND (NOT EXISTS (SELECT 1 FROM adresse.immeuble ai WHERE ST_SRID(ai.geom)=ST_SRID(aa.geom) AND ST_DWithin(ai.geom,aa.geom,40)) OR aa.code_insee in (select acz.code_insee from admin.commune_zonage acz left join reference.commune_zonage_type rczt on acz.zonage_type_id=rczt.id WHERE rczt.nom='ZTD' and rczt.actif is true) ) AND NOT EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE aa.id = adresse_id) ; DROP INDEX IF EXISTS adresse_immeuble_code_insee_idx; DROP INDEX IF EXISTS adresse_fpb_code_ban_idx; -- Récap SELECT count(*), 'ban_imb' AS table FROM ban_imb; INSERT INTO adresse.immeuble (id, source, code, geom, code_insee, nbr_log, nbr_loc) SELECT id, 'ban', md5('system')::character varying(6), geom, code_insee, nbr_log, nbr_loc FROM ban_imb; INSERT INTO adresse.adresse_immeuble (adresse_id, immeuble_id) SELECT addr_id, id FROM ban_imb; COMMIT; ------------------------------------------------- FORMATAGE DU NOMBRE DE LOGEMENTS ET LOCAUX ET NETTOYAGE DES DONNEES --------------------------------------- BEGIN; -- Suppression des valeurs nbr_log et nbr_loc lorsqu'on n'a pas rattaché d'immeuble UPDATE adresse.adresse aa SET nbr_log=0,nbr_loc=0 WHERE NOT EXISTS (SELECT 1 FROM adresse.adresse_immeuble aai WHERE aa.id=aai.adresse_id); -- Corrections de valeurs CREATE INDEX adresse_rep_idx ON adresse.adresse USING btree (rep) WHERE rep IS NOT NULL; -- Mise à zéro des valeurs de log/loc Null UPDATE adresse.immeuble SET nbr_log = 0 WHERE nbr_log IS NULL; UPDATE adresse.immeuble SET nbr_loc = 0 WHERE nbr_loc IS NULL; -- Mise à null des valeurs de nom_ld vides UPDATE adresse.adresse SET nom_ld = Null WHERE nom_ld = ''; -- Mise à null des valeurs de répétition vides UPDATE adresse.adresse SET rep = Null WHERE rep = ''; UPDATE adresse.adresse SET rep = lower(rep); UPDATE adresse.adresse SET rep = 'quater' WHERE rep IN ('qua', 'qa'); DROP INDEX IF EXISTS adresse.adresse_adresse_nbr_log_nbr_loc_tmp; DROP INDEX IF EXISTS adresse.adresse_rep_idx; REINDEX TABLE adresse.adresse; REINDEX TABLE adresse.immeuble; REINDEX TABLE adresse.adresse_immeuble; REFRESH MATERIALIZED VIEW adresse.base_imb; -- Calcul des stats de log/loc pour commune/departement/region REFRESH MATERIALIZED VIEW adresse.commune; -- Calcul des stats de log/loc pour epci INSERT INTO adresse.epci (epci_id, nbr_log, nbr_loc) SELECT epci.id, SUM(nbr_log), SUM(nbr_loc) FROM adresse.commune INNER JOIN admin.commune AS com ON com.id = commune_id INNER JOIN admin.epci ON epci.id = com.epci_id GROUP BY epci.id; -- Calcul des stats de log/loc à l'iris INSERT INTO adresse.iris (iris_id, nbr_log, nbr_loc) SELECT iris.id, SUM(imb_nbr_log), SUM(imb_nbr_loc) FROM admin.iris iris LEFT JOIN adresse.base_imb imb ON ST_Contains(iris.geom, imb.imb_geom) AND ST_SRID(iris.geom) = ST_SRID(imb.imb_geom) GROUP BY iris.id; COMMIT; -- Récap SELECT 'adresse.adresse' AS "table", COUNT(*) FROM adresse.adresse UNION SELECT 'adresse.adresse_bati' AS "table", COUNT(*) FROM adresse.adresse_bati UNION SELECT 'adresse.adresse_immeuble' AS "table", COUNT(*) FROM adresse.adresse_immeuble UNION SELECT 'adresse.commune' AS "table", COUNT(*) FROM adresse.commune UNION SELECT 'adresse.departement' AS "table", COUNT(*) FROM adresse.departement UNION SELECT 'adresse.epci' AS "table", COUNT(*) FROM adresse.epci UNION SELECT 'adresse.fpb' AS "table", COUNT(*) FROM adresse.fpb UNION SELECT 'adresse.immeuble' AS "table", COUNT(*) FROM adresse.immeuble UNION SELECT 'adresse.iris' AS "table", COUNT(*) FROM adresse.iris UNION SELECT 'adresse.region' AS "table", COUNT(*) FROM adresse.region ORDER BY "table"; -- Sources SELECT 'adresse.adresse' AS "table", source, COUNT(*) FROM adresse.adresse GROUP BY source UNION SELECT 'adresse.immeuble' AS "table", source, COUNT(*) FROM adresse.immeuble GROUP BY source ORDER BY "table", source; -- Erreur SELECT COUNT(*) || ' immeuble(s) sans lien avec une adresse' AS erreur FROM adresse.immeuble WHERE NOT EXISTS (SELECT 1 FROM adresse.adresse_immeuble WHERE adresse_immeuble.immeuble_id = immeuble.id);
{{ config({ "materialized": "incremental", "unique_key": "ci_stage_id" }) }} WITH source AS ( SELECT * FROM {{ source('gitlab_dotcom', 'ci_stages') }} WHERE created_at IS NOT NULL QUALIFY ROW_NUMBER() OVER (PARTITION BY id ORDER BY updated_at DESC) = 1 {% if is_incremental() %} AND updated_at >= (SELECT MAX(updated_at) FROM {{this}}) {% endif %} ), renamed AS ( SELECT id::NUMBER AS ci_stage_id, project_id::NUMBER AS project_id, pipeline_id::NUMBER AS pipeline_id, created_at::TIMESTAMP AS created_at, updated_at::TIMESTAMP AS updated_at, name::VARCHAR AS ci_stage_name, status::NUMBER AS ci_stage_status, lock_version::NUMBER AS lock_version, position::NUMBER AS position FROM source ) SELECT * FROM renamed ORDER BY updated_at
<gh_stars>1-10 declare @days_to_report int set @days_to_report = 365 declare @total_pages decimal set @total_pages = (select sum(total_pages) from tbl_printer_usage_log where usage_date >= DATEADD(DAY,-@days_to_report,getdate()) and usage_allowed= 'Y' and refunded= 'N' and printed = 'Y' ) print @total_pages select printer1_.display_name , sum(printerusa0_.total_pages) as total_pages, (sum(printerusa0_.total_pages) / @total_pages)*100 as ratio, sum(printerusa0_.total_color_pages) as total_color_pages , sum(printerusa0_.total_pages) - sum(printerusa0_.total_color_pages) as total_greyscale_pages, sum(printerusa0_.total_color_pages) / cast(sum(printerusa0_.total_pages) as decimal) * 100 as ratio_color, printer1_.server_name , printer1_.printer_name from tbl_printer_usage_log printerusa0_ inner join tbl_printer printer1_ on printerusa0_.printer_id=printer1_.printer_id inner join tbl_user user2_ on printerusa0_.used_by_user_id=user2_.user_id inner join tbl_account account3_ on printerusa0_.charged_to_account_id=account3_.account_id inner join tbl_account account4_ on printerusa0_.assoc_with_account_id=account4_.account_id where printerusa0_.usage_date >= DATEADD(DAY,-@days_to_report,getdate()) and printerusa0_.usage_allowed= 'Y' and printerusa0_.refunded= 'N' and printerusa0_.printed = 'Y' group by printer1_.display_name , printer1_.server_name , printer1_.printer_name order by lower(printer1_.display_name)
<reponame>Shuttl-Tech/antlr_psql -- file:geometry.sql ln:19 expect:true SELECT '' AS six, point(f1) AS center FROM CIRCLE_TBL
<filename>src/test/resources/sql/alter_table/6fbb1176.sql -- file:alter_table.sql ln:97 expect:true ALTER TABLE tmp ADD COLUMN h abstime
<reponame>kalee/emkc<filename>platform/migrations/migrations/20200918012216-award-table.sql up: create table awards ( award_id int unsigned not null auto_increment, type int unsigned not null, points int unsigned not null, user_id int unsigned not null, ref_type int unsigned null, ref_id int unsigned null, created_at datetime not null, primary key (award_id), key type (type), key points (points), key user_id (user_id), key ref_type (ref_type), key ref_id (ref_id), key created_at (created_at) )engine=innodb default charset=utf8; down: drop table awards;
INSERT IGNORE INTO `tmux` (`setting`, `value`) VALUES ('CRAP_TIMER','30'), ('FIX_CRAP','FALSE'), ('TV_TIMER','43200'), ('UPDATE_TV','FALSE'), ('HTOP','FALSE'), ('NMON','FALSE'), ('BWMNG','FALSE'), ('MYTOP','FALSE'), ('CONSOLE','FALSE'), ('VNSTAT','FALSE'), ('VNSTAT_ARGS',NULL), ('TCPTRACK','FALSE'), ('TCPTRACK_ARGS','-i eth0 port 443'); UPDATE `site` set `value` = '20' where `setting` = 'sqlpatch';
-- 2022-03-08T12:56:59.602Z -- URL zum Konzept UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Mahnungsfrist', PrintName='Mahnungsfrist',Updated=TO_TIMESTAMP('2022-03-08 13:56:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53223 AND AD_Language='de_DE' ; -- 2022-03-08T12:56:59.622Z -- URL zum Konzept /* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(53223,'de_DE') ; -- 2022-03-08T12:56:59.633Z -- URL zum Konzept /* DDL */ select update_ad_element_on_ad_element_trl_update(53223,'de_DE') ; -- 2022-03-08T12:56:59.634Z -- URL zum Konzept UPDATE AD_Column SET ColumnName='DunningGrace', Name='Mahnungsfrist', Description=NULL, Help=NULL WHERE AD_Element_ID=53223 ; -- 2022-03-08T12:56:59.635Z -- URL zum Konzept UPDATE AD_Process_Para SET ColumnName='DunningGrace', Name='Mahnungsfrist', Description=NULL, Help=NULL, AD_Element_ID=53223 WHERE UPPER(ColumnName)='DUNNINGGRACE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL ; -- 2022-03-08T12:56:59.635Z -- URL zum Konzept UPDATE AD_Process_Para SET ColumnName='DunningGrace', Name='Mahnungsfrist', Description=NULL, Help=NULL WHERE AD_Element_ID=53223 AND IsCentrallyMaintained='Y' ; -- 2022-03-08T12:56:59.636Z -- URL zum Konzept UPDATE AD_Field SET Name='Mahnungsfrist', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53223) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 53223) ; -- 2022-03-08T12:56:59.651Z -- URL zum Konzept UPDATE AD_PrintFormatItem pi SET PrintName='Mahnungsfrist', Name='Mahnungsfrist' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53223) ; -- 2022-03-08T12:56:59.652Z -- URL zum Konzept UPDATE AD_Tab SET Name='Mahnungsfrist', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 53223 ; -- 2022-03-08T12:56:59.654Z -- URL zum Konzept UPDATE AD_WINDOW SET Name='Mahnungsfrist', Description=NULL, Help=NULL WHERE AD_Element_ID = 53223 ; -- 2022-03-08T12:56:59.654Z -- URL zum Konzept UPDATE AD_Menu SET Name = 'Mahnungsfrist', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 53223 ;
INSERT INTO PROTO_CORRESP_TYPE ( PROTO_CORRESP_TYPE_CODE, DESCRIPTION, MODULE_ID, UPDATE_TIMESTAMP, UPDATE_USER, obj_id ) VALUES ( '28', 'Abandon Notice', 'Y', TO_DATE('09/16/2010', 'MM/DD/YYYY'), 'kcdev', '90657B1E302F83B5E040DC0A1F8A0ABX' ); INSERT INTO PROTO_CORRESP_TEMPL(PROTO_CORRESP_TEMPL_ID, PROTO_CORRESP_TYPE_CODE, COMMITTEE_ID, FILE_NAME, UPDATE_TIMESTAMP, UPDATE_USER, VER_NBR, OBJ_ID, CORRESPONDENCE_TEMPLATE) VALUES(seq_proto_corresp_templ.nextval, '28', 'DEFAULT', 'DEFAULT-28-AbandonNotice.xsl', TO_DATE('2011-01-27 16:00:14','YYYY-MM-DD HH24:MI:SS'), 'quickstart', 1, '5D7992DE-827E-14A2-D6AA-34D651D62C53', (select replace(replace(CORRESPONDENCE_TEMPLATE, 'Withdrawal','Abandon'), 'withdrawn', 'abandoned') from PROTO_CORRESP_TEMPL where PROTO_CORRESP_TYPE_CODE = '16'));
<filename>Chichester Cattery Booking System Database Set-Up.sql CREATE SCHEMA `Chichester_Cattery_Booking_System`; -- Creates Database CREATE TABLE `Chichester_Cattery_Booking_System`.`Contact Names` ( -- Creates Table `Contact Name ID` INT(11) AUTO_INCREMENT, `Contact Name` VARCHAR(45) NULL, PRIMARY KEY (`Contact Name ID`), INDEX `Contact Name` (`Contact Name` ASC), UNIQUE INDEX `Contact Name ID UNIQUE` (`Contact Name ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Contact Telephones`( `Contact Telephone ID` INT(11) AUTO_INCREMENT, `Contact Telephone` VARCHAR(45) NULL, PRIMARY KEY (`Contact Telephone ID`), INDEX `Contact Telephone` (`Contact Telephone` ASC), UNIQUE INDEX `Contact Telephone ID UNIQUE` (`Contact Telephone ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Cat Names` ( `Cat Name ID` INT(11) AUTO_INCREMENT, `Cat Name` VARCHAR(45) NULL, PRIMARY KEY (`Cat Name ID`), INDEX `Cat Name` (`Cat Name` ASC), UNIQUE INDEX `Cat Name ID UNIQUE` (`Cat Name ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Sexes` ( `Sex ID` INT(11) AUTO_INCREMENT, `Sex` VARCHAR(10) NULL, PRIMARY KEY (`Sex ID`), INDEX `Sex` (`Sex` ASC), UNIQUE INDEX `Sex ID UNIQUE` (`Sex ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Descriptions` ( `Description ID` INT(11) AUTO_INCREMENT, `Description` VARCHAR(45) NULL, PRIMARY KEY (`Description ID`), INDEX `Description` (`Description` ASC), UNIQUE INDEX `Description ID UNIQUE` (`Description ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Foods` ( `Food ID` INT(11) AUTO_INCREMENT, `Food` VARCHAR(45) NULL, PRIMARY KEY (`Food ID`), INDEX `Food` (`Food` ASC), UNIQUE INDEX `Food ID UNIQUE` (`Food ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Cats`( `Cat ID` INT(11) AUTO_INCREMENT, `Cat Name ID` INT(11), `Date Of Birth` DATE, `Sex ID` INT(11), `Next Vaccination Date` DATE, `Description ID` INT(11), `Food ID` INT(11), `Foods To Be Avoided` VARCHAR(100) NULL, `Allergies` VARCHAR(100) NULL, `Special Treatment` VARCHAR(100) NULL, PRIMARY KEY (`Cat ID`), CONSTRAINT `Cat Name` FOREIGN KEY (`Cat Name ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cat Names` (`Cat Name ID`), CONSTRAINT `Sex` FOREIGN KEY (`Sex ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Sexes` (`Sex ID`), CONSTRAINT `Description` FOREIGN KEY (`Description ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Descriptions` (`Description ID`), CONSTRAINT `Food` FOREIGN KEY (`Food ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Foods` (`Food ID`), INDEX `Dates` (`Date Of Birth` ASC, `Next Vaccination Date` ASC), INDEX `Special Treatments` (`Foods To Be Avoided` ASC, `Allergies` ASC, `Special Treatment` ASC), INDEX `Other Details` (`Cat Name ID` ASC, `Sex ID` ASC, `Description ID` ASC, `Food ID` ASC), UNIQUE INDEX `Cat ID UNIQUE` (`Cat ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Absence Contacts` ( `Absence Contact ID` INT(11) AUTO_INCREMENT, `Contact Name ID` INT(11), `Contact Telephone ID` INT(11), PRIMARY KEY (`Absence Contact ID`), CONSTRAINT `Contact Name` FOREIGN KEY (`Contact Name ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Contact Telephone` FOREIGN KEY (`Contact Telephone ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), INDEX `Absence Contact` (`Contact Name ID` ASC, `Contact Telephone ID` ASC), UNIQUE INDEX `Absence Contact ID UNIQUE` (`Absence Contact ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Vets` ( `Vet ID` INT(11) AUTO_INCREMENT, `Contact Name ID` INT(11), `Contact Telephone ID` INT(11), PRIMARY KEY (`Vet ID`), CONSTRAINT `Vet Name` FOREIGN KEY (`Contact Name ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Vet Telephone` FOREIGN KEY (`Contact Telephone ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), INDEX `Vet` (`Contact Name ID` ASC, `Contact Telephone ID` ASC), UNIQUE INDEX `Vet ID UNIQUE` (`Vet ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Postcodes`( `Postcode ID` INT(11) AUTO_INCREMENT, `Postcode` VARCHAR(8) NULL, PRIMARY KEY (`Postcode ID`), INDEX `Postcode`(`Postcode` ASC), UNIQUE INDEX `Postcode ID UNIQUE` (`Postcode ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Towns`( `Town ID` INT(11) AUTO_INCREMENT, `Town` VARCHAR(100) NULL, PRIMARY KEY (`Town ID`), INDEX `Town`(`Town` ASC), UNIQUE INDEX `Town ID UNIQUE` (`Town ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Addresses`( `Address ID` INT(11) AUTO_INCREMENT, `Address` VARCHAR(100) NULL, `Town ID` INT(11), `Postcode ID` INT(11), PRIMARY KEY (`Address ID`), CONSTRAINT `Postcode` FOREIGN KEY (`Postcode ID`) REFERENCES chichester_cattery_booking_system.postcodes (`Postcode ID`), CONSTRAINT `Town` FOREIGN KEY (`Town ID`) REFERENCES chichester_cattery_booking_system.towns (`Town ID`), INDEX `Address` (`Address` ASC, `Town ID` ASC, `Postcode ID` ASC), UNIQUE INDEX `Address ID UNIQUE` (`Address ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Registrations`( `Registration ID` INT(11) AUTO_INCREMENT, `Owner 1 ID` INT(11), `Owner 2 ID` INT(11), `Owner 3 ID` INT(11), `Owner 4 ID` INT(11), `Owner 5 ID` INT(11), `Owner 6 ID` INT(11), `Address ID` INT (11), `Home Telephone ID` INT(11), `Mobile 1 ID` INT(11), `Mobile 2 ID` INT(11), `Mobile 3 ID` INT(11), `Mobile 4 ID` INT(11), `Mobile 5 ID` INT(11), `Mobile 6 ID` INT(11), `Cat 1 ID` INT(11), `Cat 2 ID` INT(11), `Cat 3 ID` INT(11), `Cat 4 ID` INT(11), `Cat 5 ID` INT(11), `Cat 6 ID` INT(11), `Absence Contact ID` INT(11), `Vet ID` INT(11), `Extra Information` VARCHAR(200) NULL, PRIMARY KEY (`Registration ID`), CONSTRAINT `Owner 1` FOREIGN KEY (`Owner 1 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Owner 2` FOREIGN KEY (`Owner 2 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Owner 3` FOREIGN KEY (`Owner 3 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Owner 4` FOREIGN KEY (`Owner 4 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Owner 5` FOREIGN KEY (`Owner 5 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Owner 6` FOREIGN KEY (`Owner 6 ID`) REFERENCES `chichester_cattery_booking_system`.`Contact Names` (`Contact Name ID`), CONSTRAINT `Address` FOREIGN KEY (`Address ID`) REFERENCES chichester_cattery_booking_system.addresses (`Address ID`), CONSTRAINT `Home Telephone` FOREIGN KEY (`Home Telephone ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 1` FOREIGN KEY (`Mobile 1 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 2` FOREIGN KEY (`Mobile 2 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 3` FOREIGN KEY (`Mobile 3 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 4` FOREIGN KEY (`Mobile 4 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 5` FOREIGN KEY (`Mobile 5 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Mobile 6` FOREIGN KEY (`Mobile 6 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Contact Telephones` (`Contact Telephone ID`), CONSTRAINT `Cat 1` FOREIGN KEY (`Cat 1 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Cat 2` FOREIGN KEY (`Cat 2 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Cat 3` FOREIGN KEY (`Cat 3 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Cat 4` FOREIGN KEY (`Cat 4 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Cat 5` FOREIGN KEY (`Cat 5 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Cat 6` FOREIGN KEY (`Cat 6 ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Cats` (`Cat ID`), CONSTRAINT `Absence Contact` FOREIGN KEY (`Absence Contact ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Absence Contacts` (`Absence Contact ID`), CONSTRAINT `Vet` FOREIGN KEY (`Vet ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Vets` (`Vet ID`), INDEX `Owners` (`Owner 1 ID` ASC, `Owner 2 ID` ASC, `Owner 3 ID` ASC, `Owner 4 ID` ASC, `Owner 5 ID` ASC, `Owner 6 ID` ASC), -- Indexes Columns INDEX `Contact Information` (`Address ID` ASC,`Home Telephone ID` ASC, `Mobile 1 ID` ASC, `Mobile 2 ID` ASC, `Mobile 3 ID` ASC, `Mobile 4 ID` ASC, `Mobile 5 ID` ASC, `Mobile 6 ID` ASC, `Absence Contact ID` ASC, `Vet ID` ASC), INDEX `Other Registration Information` (`Cat 1 ID` ASC, `Cat 2 ID` ASC, `Cat 3 ID` ASC, `Cat 4 ID` ASC, `Cat 5 ID` ASC, `Cat 6 ID` ASC, `Extra Information` ASC), UNIQUE INDEX `Registration ID UNIQUE` (`Registration ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Arrival/Departure Times`( `Arrival/Departure Time ID` INT(11) AUTO_INCREMENT, `Arrival/Departure Time` VARCHAR(45) NULL, PRIMARY KEY (`Arrival/Departure Time ID`), INDEX `Arrival/Departure Time` (`Arrival/Departure Time` ASC), UNIQUE INDEX `Arrival/Departure Time ID UNIQUE` (`Arrival/Departure Time ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Bookings`( `Booking ID` INT(11) AUTO_INCREMENT, `Registration ID` INT(11), `Cat 1 Staying` VARCHAR(45) NULL, `Cat 2 Staying` VARCHAR(45) NULL, `Cat 3 Staying` VARCHAR(45) NULL, `Cat 4 Staying` VARCHAR(45) NULL, `Cat 5 Staying` VARCHAR(45) NULL, `Cat 6 Staying` VARCHAR(45) NULL, `Arrival Date` DATE, `Departure Date` DATE, `Arrival Time ID` INT(11), `Departure Time ID` INT(11), `Checked In` BOOL, `Checked Out` BOOL, `Chalet` INT(5), `Cat 1 Vaccination` BOOL, `Cat 2 Vaccination` BOOL, `Cat 3 Vaccination` BOOL, `Cat 4 Vaccination` BOOL, `Cat 5 Vaccination` BOOL, `Cat 6 Vaccination` BOOL, PRIMARY KEY (`Booking ID`), CONSTRAINT `Registration` FOREIGN KEY (`Registration ID`) REFERENCES `chichester_cattery_booking_system`.`Registrations` (`Registration ID`), CONSTRAINT `Arrival Time` FOREIGN KEY (`Arrival Time ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Arrival/Departure Times` (`Arrival/Departure Time ID`), CONSTRAINT `Departure Time` FOREIGN KEY (`Departure Time ID`) REFERENCES `Chichester_Cattery_Booking_System`.`Arrival/Departure Times` (`Arrival/Departure Time ID`), INDEX `Other Details` (`Registration ID` ASC, `Checked In` ASC, `Checked Out` ASC, `Chalet` ASC), INDEX `Cats Staying` (`Cat 1 Staying` ASC, `Cat 2 Staying` ASC, `Cat 3 Staying` ASC, `Cat 4 Staying` ASC, `Cat 5 Staying` ASC, `Cat 6 Staying` ASC), INDEX `Arrival and Departure` (`Arrival Date` ASC, `Departure Date` ASC, `Arrival Time ID` ASC, `Departure Time ID` ASC), INDEX `Vaccinations` (`Cat 1 Vaccination` ASC, `Cat 2 Vaccination` ASC, `Cat 3 Vaccination` ASC, `Cat 4 Vaccination` ASC, `Cat 5 Vaccination` ASC, `Cat 6 Vaccination` ASC), UNIQUE INDEX `Booking ID UNIQUE` (`Booking ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Backup Directories` ( `ID` INT(11) AUTO_INCREMENT, `Backup Directory` VARCHAR(250) NULL, `Restore Directory` VARCHAR(250) NULL, `Total Chalets` INT(11) NULL, PRIMARY KEY (`ID`), INDEX `Directories` (`Backup Directory` ASC, `Restore Directory` ASC), INDEX `Settings`(`Total Chalets` ASC), UNIQUE INDEX `ID UNIQUE` (`ID` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Chalets`( `Chalet` INT(11), `Maximum Number of Cats` INT(11) NULL, PRIMARY KEY (`Chalet`), INDEX `Max` (`Maximum Number of Cats` ASC), UNIQUE INDEX `Chalet UNIQUE` (`Chalet` ASC)); CREATE TABLE `Chichester_Cattery_Booking_System`.`Potential Changes`( `ID` INT(11) AUTO_INCREMENT, `Booking ID` INT(11), `New Chalet` INT(11), `Arrival Date` DATE, `Departure Date` DATE, `Pair` INT(11), PRIMARY KEY (`ID`), INDEX `Change Information`(`Booking ID` ASC, `New Chalet` ASC, `Arrival Date` ASC, `Departure Date` ASC, `Pair` ASC), UNIQUE INDEX `ID UNIQUE` (`ID` ASC)); INSERT INTO `chichester_cattery_booking_system`.`backup directories` (`Total Chalets`) VALUES ('0');
DROP TABLE IF EXISTS `USDCHF_H1`; CREATE TABLE IF NOT EXISTS `USDCHF_H1`( `id` int(5) NOT NULL, `bull` varchar(10) NOT NULL, `bear` varchar(10) NOT NULL, `buy` varchar(10) NOT NULL, `sell` varchar(10) NOT NULL, `av` varchar(10) NOT NULL, `mm` varchar(10) NOT NULL, `time` varchar(30) NOT NULL); ALTER TABLE `USDCHF_H1` ADD PRIMARY KEY (`id`); ALTER TABLE `USDCHF_H1` MODIFY `id` int(5) NOT NULL AUTO_INCREMENT; INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','52.94358974','27.93312500','2015.09.25 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98150464','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97873256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97873256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97873256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97873256','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97869963','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97806013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97806013','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97791789','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97771014','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97771014','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97443958','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97443958','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.25 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97443958','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97336556','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97336556','0.97336556','0.97000889','0.00000000','0.00000000','0.00000000','2015.09.24 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97336556','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97336556','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97336556','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97336556','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97355478','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97492159','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97639332','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97639332','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97639332','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97690236','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97868830','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.97892368','0.00000000','0.97990868','0.00000000','0.00000000','2015.09.24 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97892368','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.24 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97715019','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97715019','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97715019','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97700455','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97652443','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97613683','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97527531','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97468040','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97459508','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97446267','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.23 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97443749','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97410393','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97289852','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97287373','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97287373','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97287373','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97287373','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97275076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97256031','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97193172','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97147560','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97114281','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.22 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97080061','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96947901','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96864104','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96228811','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.21 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96124331','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96124331','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95542992','0.95542992','0.95279325','0.00000000','0.00000000','0.00000000','2015.09.18 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95542992','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95867771','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95991377','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96104148','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96104148','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96104148','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96104148','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96104148','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96113252','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96113252','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96229577','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96230895','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96272319','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96272319','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96272319','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.18 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96987115','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96987115','0.96987115','0.00000000','0.97362448','0.00000000','0.00000000','2015.09.17 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96987115','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96987115','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96987115','0.96987115','0.96800948','0.00000000','0.00000000','0.00000000','2015.09.17 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96987115','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96987115','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.97055915','0.00000000','0.97269082','0.00000000','0.00000000','2015.09.17 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97055915','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97043452','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904714','0.96904714','0.96809214','0.00000000','0.00000000','0.00000000','2015.09.17 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.17 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96904714','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96942618','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97088726','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97300788','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.97377826','0.00000000','0.97503992','0.00000000','0.00000000','2015.09.16 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97377826','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97370239','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97366061','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97366061','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.16 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97366061','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346764','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346364','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346364','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97249341','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96910038','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96874551','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96874551','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96874551','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96781105','0.96781105','0.96603272','0.00000000','0.00000000','0.00000000','2015.09.15 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96781105','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96816041','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.96895677','0.00000000','0.96956677','0.00000000','0.00000000','2015.09.15 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.15 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96895677','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96872452','0.96872452','0.96662785','0.00000000','0.00000000','0.00000000','2015.09.14 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96872452','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96915495','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.14 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97028516','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97499631','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97499631','0.97499631','0.00000000','0.97768631','0.00000000','0.00000000','2015.09.11 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97499631','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97499631','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97499631','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97334813','0.97334813','0.97073647','0.00000000','0.00000000','0.00000000','2015.09.11 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97334813','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.97594815','0.00000000','0.97688481','0.00000000','0.00000000','2015.09.11 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.11 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97594815','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97544604','0.97544604','0.97297770','0.00000000','0.00000000','0.00000000','2015.09.10 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97544604','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97551458','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.10 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97556638','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97657683','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.97966076','0.00000000','0.98158576','0.00000000','0.00000000','2015.09.09 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.09 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97966076','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97959707','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97793201','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97140609','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97140609','0.97140609','0.96926276','0.00000000','0.00000000','0.00000000','2015.09.08 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97140609','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97140609','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97140609','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97140609','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.97481016','0.00000000','0.97615516','0.00000000','0.00000000','2015.09.08 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.08 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97481016','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97212924','0.97212924','0.97038924','0.00000000','0.00000000','0.00000000','2015.09.07 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97212924','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.07 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.97487600','0.00000000','0.97658267','0.00000000','0.00000000','2015.09.07 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97487600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97346996','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97336578','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.04 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97325729','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96940237','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.03 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96904515','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96893410','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96732688','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96690158','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96420668','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96420668','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96420668','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96270288','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96260875','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96182552','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95996827','0.95996827','0.95826994','0.00000000','0.00000000','0.00000000','2015.09.02 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95996827','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.02 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96110234','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96179712','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96233659','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96233659','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96233659','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96313774','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96639521','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96639521','0.96639521','0.00000000','0.96749021','0.00000000','0.00000000','2015.09.01 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96639521','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96639521','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96639521','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96639521','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.09.01 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96543887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96543887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96543887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96543887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96543887','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96513415','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96410337','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96410337','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96410337','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96410337','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96298153','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95974327','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95974327','0.95974327','0.95812160','0.00000000','0.00000000','0.00000000','2015.08.31 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95974327','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95974327','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95974327','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96004138','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.31 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96071551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96252662','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96291512','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96291512','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.96538724','0.00000000','0.96758057','0.00000000','0.00000000','2015.08.28 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96538724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96533067','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96528389','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.28 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96516187','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96488529','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96488529','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96215665','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95903139','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95699667','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95699667','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95347411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95347411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95347411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95347411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95347411','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95269801','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.27 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.95228543','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94808763','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94657726','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94657726','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94520006','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94520006','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94520006','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94492574','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94298325','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94147728','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94147728','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94144227','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94144227','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94142328','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94142328','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93975332','0.93975332','0.93751665','0.00000000','0.00000000','0.00000000','2015.08.26 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93975332','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94053698','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94681600','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.26 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94681600','0.94681600','0.00000000','0.95001267','0.00000000','0.00000000','2015.08.25 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94681600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94681600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94681600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94681600','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94284460','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94040216','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94040216','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.94040216','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93979501','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93979501','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.93300511','0.93300511','0.92950677','0.00000000','0.00000000','0.00000000','2015.08.25 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93300511','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93622785','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.25 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93633719','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93633719','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93797787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93797787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93797787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93797787','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93822139','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.93865804','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94098562','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94336470','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94371580','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94453980','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94661321','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94767177','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94767177','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94767177','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94809495','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94837029','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94837029','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.24 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94985138','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.94994283','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95014941','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95436663','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95436663','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95436663','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95436663','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95464948','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95682447','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95705659','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95735988','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95917266','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95938033','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95938033','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95938033','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95938033','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.95952946','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96069530','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.21 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.96518507','0.00000000','0.96776507','0.00000000','0.00000000','2015.08.20 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96518507','0.96518507','0.96420673','0.00000000','0.00000000','0.00000000','2015.08.20 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96518507','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.20 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96534455','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.96632074','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97060628','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97203499','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97203499','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97234134','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97419519','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97419519','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97419519','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97437732','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97438961','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97543171','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97606056','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97666716','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97676933','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97676933','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97676933','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97726986','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97740728','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.97822587','0.00000000','0.97906087','0.00000000','0.00000000','2015.08.19 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.19 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97822587','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97813042','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.18 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97760642','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97729145','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97696995','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97690102','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97688806','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97494417','0.97494417','0.97331250','0.00000000','0.00000000','0.00000000','2015.08.17 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.17 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97494417','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97577754','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97577754','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97577754','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97577754','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97577754','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97585551','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97696007','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.97709611','0.00000000','0.97816444','0.00000000','0.00000000','2015.08.14 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.14 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97709611','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97686114','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97677875','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97677875','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97659625','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97650724','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97621061','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97472962','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97458272','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97056281','0.97056281','0.96942614','0.00000000','0.00000000','0.00000000','2015.08.13 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.13 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97056281','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97243347','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97625582','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97629204','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97629204','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.97642240','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98125095','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98483267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98483267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98483267','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98600962','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.98858595','0.00000000','0.98971595','0.00000000','0.00000000','2015.08.12 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.12 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98858595','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98373555','0.98373555','0.98063055','0.00000000','0.00000000','0.00000000','2015.08.11 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98373555','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98384944','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.11 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.98516375','0.00000000','0.98689708','0.00000000','0.00000000','2015.08.10 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98516375','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98355604','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98355604','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98355604','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98310582','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98305374','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98305374','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98288921','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98250120','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98210607','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98207388','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.10 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98177186','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98177186','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98177186','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98177186','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98167613','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98167613','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98098503','0.98098503','0.97846336','0.00000000','0.00000000','0.00000000','2015.08.07 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98098503','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.07 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98115986','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98115986','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98138339','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.98202536','0.00000000','0.98392036','0.00000000','0.00000000','2015.08.06 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98202536','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98195604','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.98065502','0.97896336','0.00000000','0.00000000','0.00000000','2015.08.06 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.98065502','0.00000000','0.98164836','0.00000000','0.00000000','2015.08.06 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.06 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.98065502','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97921606','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.05 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97795422','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97429255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97204255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97204255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97204255','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.97045209','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96909117','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96900197','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96900197','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96900197','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96900197','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96900197','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96888033','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96874524','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.04 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96867988','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96722221','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96718381','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96718381','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96650496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96650496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96650496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96650496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96650496','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96625402','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96580641','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96580211','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.08.03 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96362112','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.96360612','0.00000000','-0.00343000','0.00000000','0.00000000','0.00000000','2015.07.31 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00080667','0.00000000','0.00000000','2015.07.31 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.31 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 21:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 20:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 19:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 18:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 17:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 16:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 15:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 14:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 13:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 12:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 11:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 10:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 09:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 08:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 07:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 06:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 05:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 04:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 03:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 02:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 01:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.30 00:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 23:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 22:00'); INSERT INTO `USDCHF_H1`(`bull`,`bear`,`buy`,`sell`,`av`,`mm`,`time`) VALUES('0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','0.00000000','2015.07.29 21:00');
create table migrations ( id TEXT )
<gh_stars>0 INSERT INTO e2etest.e2etesttable(test) values ('#replaceme1#');
/* Island */ DROP TABLE IF EXISTS Island ; CREATE TABLE IF NOT EXISTS Island( Name VARCHAR2(50) CONSTRAINT IslandKey PRIMARY KEY, Islands VARCHAR2(50), Area NUMBER CONSTRAINT IslandAr check (Area >= 0), Elevation NUMBER, `Type` VARCHAR2(10), Latitude NUMBER CONSTRAINT IslandCoord_Latitude CHECK (Latitude >= -90 AND Latitude <= 90), Longitude NUMBER CONSTRAINT IslandCoord_Longitude CHECK (Longitude > -180 AND Longitude <= 180) ) ; INSERT INTO Island(Name,Islands,Area,Elevation,`Type`,Latitude,Longitude) VALUES ('Svalbard','Svalbard',39044,1713,NULL,78.9,18.2), ('Greenland',NULL,2175600,3694,NULL,70,-40), ('Iceland',NULL,102829,2110,'volcanic',65,-18), ('Austvågøy','Lofotes',526,1146,NULL,68.3,14.6), ('Streymoy','Faroe Islands',373,789,NULL,62,-7), ('Ireland','British Isles',84421,1041,NULL,53.5,-7.8), ('Great Britain','British Isles',219331,1344,NULL,53,-1.5), ('Shetland Mainland','Shetland Islands',970,449,NULL,60.3,-1.3), ('Orkney Mainland','Orkney Islands',492,271,NULL,59,-3.1), ('South Ronaldsay','Orkney Islands',50,118,NULL,58.6,-3.1), ('Hoy','Orkney Islands',143,479,NULL,59.1,-3.2), ('Westray','Orkney Islands',47,169,NULL,59.4,-3), ('Barra','Outer Hebrides',91,383,NULL,57,-7.7), ('South Uist','Outer Hebrides',320,620,NULL,57.2,-7.2), ('Benbecula','Outer Hebrides',82,124,NULL,57.45,-7.3), ('North Uist','Outer Hebrides',303,347,NULL,57.4,-7.1), ('<NAME>','Outer Hebrides',2170,799,NULL,57.9,-6.8), ('Skye','Inner Hebrides',1385,993,NULL,57.3,-6.3), ('Rhum','Inner Hebrides',104,810,'volcanic',57,-6.3), ('Mull','Inner Hebrides',910,875,NULL,56.45,-6.0), ('Tiree','Inner Hebrides',78,141,NULL,56.5,-6.9), ('Islay','Inner Hebrides',619.6,491,NULL,55.8,-6.2), ('Jura','Inner Hebrides',367,785,NULL,56,-6), ('Arran','Inner Hebrides',430,874,NULL,55.3,-5.5), ('Isle of Man','British Isles',588,621,NULL,54.1,-4.5), ('Anglesey','British Isles',715,220,NULL,53.3,-4.4), ('Isle of Wight','British Isles',381,241,NULL,50.6,-1.3), ('Guernsey','Channel Islands',194,111,NULL,49.6,-2.6), ('Jersey','Channel Islands',117,136,NULL,49.2,-2.1), ('Gotland',NULL,3140,82,NULL,57.5,18.5), ('Öland',NULL,1344,55,NULL,57,17), ('Åland','Åland Islands',685,129,NULL,60.1,20), ('Hiumaa',NULL,965,68,NULL,58.8,22.7), ('Ösel',NULL,2714,54,NULL,58.3,22), ('Seeland',NULL,7439,122,NULL,55.3,12), ('Fünen',NULL,2976,131,NULL,55.35,10.25), ('Langeland',NULL,284,46,NULL,55,10.5), ('Falster',NULL,514,44,NULL,54.8,12), ('Lolland',NULL,1241,25,NULL,54.4,11.5), ('Bornholm',NULL,588,162,NULL,55.1,14.9), ('Fehmarn',NULL,185,27.2,NULL,54.4,11.2), ('Rügen',NULL,926,161,NULL,54.5,13.4), ('Usedom',NULL,445,69,NULL,53.9,14.1), ('Helgoland',NULL,1.7,61.3,NULL,54.2,7.9), ('Sylt','Nordfriesische Inseln',99,52.5,NULL,54.9,8.3), ('Föhr','Nordfriesische Inseln',82,13,NULL,54.7,8.5), ('Amrum','Nordfriesische Inseln',20.5,32,NULL,54.65,8.3), ('Pellworm','Nordfriesische Inseln',37.4,2,NULL,54.5,8.6), ('Wangerooge','Ostfriesische Inseln',7.9,17,NULL,53.8,7.9), ('Spiekeroog','Ostfriesische Inseln',18.2,3,NULL,53.8,7.6), ('Langeoog','Ostfriesische Inseln',20,5,NULL,53.65,7.5), ('Baltrum','Ostfriesische Inseln',6.5,5,NULL,53.6,7.4), ('Norderney','Ostfriesische Inseln',26.3,5,NULL,53.7,7.9), ('Juist','Ostfriesische Inseln',16.4,3,NULL,53.6,7.0), ('Borkum','Ostfriesische Inseln',31,6,NULL,53.6,6.7), ('Schiermonnikoog','Westfriesische Inseln',40,4,NULL,53.5,6.2), ('Ameland','Westfriesische Inseln',57.6,4,NULL,53.5,5.75), ('Terschelling','Westfriesische Inseln',88,6,NULL,53.4,5.3), ('Vlieland','Westfriesische Inseln',40,3,NULL,53.25,5), ('Texel','Westfriesische Inseln',162,15,NULL,53.1,4.8), ('<NAME>',NULL,1885,134,NULL,47.95,17.65), ('<NAME>strov',NULL,375,125,NULL,47.85,17.45), ('<NAME>',NULL,1,105,NULL,47.5,19.05), ('<NAME>',NULL,1.57,75,NULL,44.8,20.45), ('Krk','Adriatic Islands',406,568,NULL,45.07,14.6), ('Cres','Adriatic Islands',406,639,NULL,44.96,14.41), ('Bra?','Adriatic Islands',396,780,NULL,43.32,16.63), ('Kor?ula','Adriatic Islands',271,568,NULL,42.93,16.85), ('Korfu','Ionic Islands',593,906,NULL,39.6,19.8), ('Lefkas','Ionic Islands',293,1158,NULL,38.7,20.6), ('Kefallinia','Ionic Islands',689,1628,NULL,38.2,20.6), ('Zakynthos','Ionic Islands',406,756,NULL,37.8,20.75), ('Euboea',NULL,3684,1743,NULL,38.5,24), ('Samothraki','Sporades',180,1611,NULL,40.5,25.5), ('Lesbos','Sporades',1636,968,NULL,39.2,26.3), ('Chios','Sporades',843,1297,NULL,38.4,26.2), ('Samos','Sporades',478,1434,NULL,37.7,26.8), ('Ikaria','Sporades',255,1037,NULL,37.6,26.2), ('Kos','Sporades',287,846,NULL,36.8,27.1), ('Rhodos','Sporades',1401,1215,NULL,36.2,28), ('Syros','Kyklades',84,442,NULL,37.45,24.9), ('Mykonos','Kyklades',105,341,NULL,37.45,25.4), ('Crete',NULL,8331,2456,NULL,37,25), ('Cyprus',NULL,9251,1952,NULL,35.4,33.2), ('Corse',NULL,8680,2706,NULL,41.4,8.4), ('Elba',NULL,224,1019,NULL,42.75,10.3), ('Sardegna',NULL,24090,1834,NULL,40,9), ('Alicudi','Lipari Islands',5.2,675,'volcanic',38.6,14.4), ('Filicudi','Lipari Islands',9.5,774,'volcanic',38.6,14.55), ('Salina','Lipari Islands',26.8,962,'volcanic',38.6,14.9), ('Lipari','Lipari Islands',37.5,602,'volcanic',38.5,14.95), ('Vulcano','Lipari Islands',21.2,499,'volcanic',38.4,15.0), ('Panarea','Lipari Islands',3.4,421,'volcanic',38.65,15.05), ('Stromboli','Lipari Islands',12.6,926,'volcanic',38.8,15.15), ('Sicilia',NULL,25462,3323,NULL,37,14), ('Lampedusa',NULL,20,113,'volcanic',35.4,13.2), ('Linosa',NULL,5,195,'volcanic',35.85,13.85), ('Malta','Malta',246,252,'lime',35.9,14.5), ('Gozo','Malta',67,176,'lime',36.05,14.3), ('Menorca','Baleares',760,358,NULL,40,4), ('Mallorca','Baleares',3618,1445,NULL,39.3,3), ('Ibiza','Baleares',572,476,NULL,38.5,1.5), ('Formentera','Baleares',83,192,NULL,38.0,1.5), ('Lanzarote','Canares',846,671,'volcanic',29,-13.6), ('Fuerteventura','Canares',1660,807,'volcanic',28.4,-14), ('Gran Canaria','Canares',1560,1949,'volcanic',28,-15.6), ('Teneriffa','Canares',2034,3718,'volcanic',28.3,-16.6), ('Gomera','Canares',369,1487,'volcanic',28.1,-17.3), ('Hierro','Canares',268,1501,'volcanic',27.7,-18), ('La Palma','Canares',708,2426,'volcanic',28.7,-17.9), ('Madeira','Madeira',794,1861,'volcanic',31,-16), ('<NAME>','Madeira',42,517,'volcanic',33,-16.35), ('<NAME>','Azores',747,1105,'volcanic',37.7,-25.5), ('<NAME>','Azores',97,586,'volcanic',37,-25.1), ('Terceira','Azores',400,1022,'volcanic',38.7,-27.2), ('<NAME>','Azores',233.5,1053,'volcanic',38.6,-28), ('Pico','Azores',442,2351,'volcanic',38.5,-28.4), ('Faial','Azores',172,1043,'volcanic',38.6,-28.7), ('Graciosa','Azores',61,402,'volcanic',39,-28), ('Flores (Azores)','Azores',143,914,'volcanic',39.5,-31.2), ('Corvo','Azores',17.5,718,'volcanic',39.7,-31.1), ('Santiago','<NAME>',991,1394,'volcanic',15.1,-23.6), ('Fogo','<NAME>',476,2829,'volcanic',17.95,-24.4), ('<NAME>',NULL,859,2024,'volcanic',0.2,6.6), ('Principe',NULL,142,927,'volcanic',1.6,7.4), ('Bioko',NULL,2017,3011,'volcanic',3.5,8.7), ('<NAME>',NULL,123,818,'volcanic',-15.95,-5.72), ('Ascension',NULL,88,859,'volcanic',-7.9,-14.4), ('<NAME>',NULL,98,2062,'volcanic',-37.1,-12.3), ('West Falkland','Falkland Islands',4532,700,NULL,-51.8,-60.1), ('East Falkland','Falkland Islands',6605,705,NULL,-51.8,-58.8), ('Bahrain',NULL,620,135,NULL,26,50.5), ('Khark',NULL,20.5,70,NULL,29.1,50.2), ('Qeshm',NULL,1491,397,NULL,26.69,55.62), ('Christmas Island',NULL,135,350,'coral',-10.25,105.43), ('<NAME>','Cocos Islands',6.23,9,'atoll',-12.2,96.9), ('Male','Maldives',2.74,1,'atoll',2,72), ('Salsette',NULL,619,467,NULL,19.2,72.9), ('Kavaratti','Laccadives',6,2,NULL,10.6,72.6), ('Sri Lanka',NULL,65610,2524,NULL,7,80), ('South Andaman Island','Andaman Islands',1210,366,NULL,11.78,92.5), ('Sokotra',NULL,3579,1519,NULL,12.5,53.9), ('Sansibar',NULL,1658,135,NULL,-6.1,39.3), ('Ukerewe',NULL,530,1320,NULL,-2.05,33.1), ('Pemba',NULL,984,95,NULL,-5.2,39.7), ('Mahe','Seychelles',154,905,NULL,-4.65,55.5), ('Grand Comoro','Comores',1148,2361,NULL,-11.7,43.4), ('Anjouan','Comores',424,1595,NULL,-12.2,44.35), ('Mohéli','Comores',290,790,NULL,-12.25,43.75), ('Mayotte','Comores',374,660,'volcanic',-12.46,45.13), ('Reunion',NULL,2510,3069,'volcanic',-20.9,55.5), ('Mauritius',NULL,1860,828,'volcanic',-20,57), ('Madagaskar',NULL,587041,2876,NULL,-20,46), ('Impalila',NULL,18,818,NULL,-17.77,25.23), ('Novaya Zemlya Severny Island',NULL,48904,1547,NULL,75.5,60), ('Novaya Zemlya Yuzhny Island',NULL,33275,1342,NULL,72,54), ('Kotelny Island',NULL,11665,374,NULL,75.4,141), ('Paramuschir','Curiles',2042,1816,'volcanic',50.5,155.75), ('Onekotan','Curiles',315,1325,'volcanic',49.45,154.75), ('Krenizyn',NULL,1,1325,'volcanic',49.35,154.71), ('Olkhon',NULL,730,1276,NULL,53.15,107.4), ('Sachalin',NULL,76400,1609,'volcanic',50,143), ('Hokkaido','Japan',83456,2290,'volcanic',43.3,143), ('Honshu','Japan',230500,3776,'volcanic',36.3,138.6), ('Kyushu','Japan',35640,1756,'volcanic',32,131), ('Shikoku','Japan',18800,1982,'volcanic',34,134), ('Awajishima','Japan',592,608,NULL,34.4,134.8), ('Okinawa','Japan',2255,503,'volcanic',26,128), ('Nishinoshima',NULL,3.7,100,'volcanic',27.5,140.88), ('Jeju',NULL,1845,1950,'volcanic',33.4,126.5), ('Taiwan',NULL,35801,3950,NULL,24,121), ('Great Kinmen',NULL,134,230,NULL,24.43,118.33), ('Xiamen',NULL,131,339,NULL,24.5,118.13), ('Hainan',NULL,34380,1840,NULL,19.1,109.6), ('Zhoushan',NULL,502,503,NULL,30.05,122.15), ('Chongming',NULL,1267,9,NULL,31.63,121.55), ('Luzon','Philipines',108172,2922,NULL,16.1,121), ('Taal Volcano Island',NULL,23,311,'volcanic',14.00,121.00), ('Taal Vulcan Point',NULL,0.0004,10,'volcanic',14.00,121.00), ('Mindoro','Philipines',10244,2586,NULL,13,121.1), ('Sibuyan','Philipines',445,2058,NULL,12.4,122.55), ('Panay','Philipines',12297,2117,NULL,11.15,122.5), ('Negros','Philipines',13328,2435,NULL,10,123), ('Cebu','Philipines',5088,1013,NULL,10.4,123.8), ('Bohol','Philipines',4117,870,NULL,9.9,124.2), ('Leyte','Philipines',7368,1303,NULL,11,124.9), ('Samar','Philipines',13080,850,NULL,12,125.1), ('Mindanao','Philipines',95581,2954,NULL,7.55,124.9), ('Palawan','Philipines',11785,2085,NULL,9.5,118.4), ('Ujong',NULL,584.8,176,NULL,1.3,103.833), ('Penang',NULL,292,810,NULL,5.4,100.25), ('<NAME>',NULL,229,635,NULL,9.5,100), ('Phuket',NULL,576,529,NULL,7.4,98.4), ('Sumatra','Sunda Islands',473000,3805,NULL,0,102), ('Samosir',NULL,852,1630,'volcanic',2.6,98.85), ('Batam','Riau Islands',415,160,NULL,1.1,104.05), ('Bintan','Riau Islands',1173,348,NULL,1.1,104.5), ('Bangka','Sunda Islands',11942,700,NULL,2.25,106), ('Krakatau','Sunda Islands',NULL,813,'volcanic',-6.1,105.6), ('Java','Sunda Islands',126650,3676,NULL,-7.5,111.25), ('Labuan','Sunda Islands',91,148,NULL,5.3,115.2), ('Borneo','Sunda Islands',743122,4101,NULL,-0.2,113.67), ('Madura','Sunda Islands',4078,471,NULL,-7.0,113.33), ('Bali','Sunda Islands',5561,3142,'volcanic',-8.4,115.1), ('Lombok','Sunda Islands',4725,3726,'volcanic',-8.4,116.5), ('Sumbawa','Sunda Islands',15448,2850,'volcanic',-8.8,116.1), ('Sangeang','Sunda Islands',153,1949,'volcanic',-8.97,119.07), ('Flores','Sunda Islands',15175,2370,'volcanic',-8.62,121.13), ('Sumba','Sunda Islands',11060,1225,'volcanic',-9.7,120.0), ('Timor','Sunda Islands',33850,2963,'volcanic',-9.2,124.9), ('Sulawesi','Sunda Islands',189216,3455,'volcanic',-2.1,120.3), ('Buru','Moluccan Islands',9505,2428,NULL,-3.4,126.66), ('Ambon','Moluccan Islands',775,1023,NULL,-3.7,128.2), ('Ceram','Moluccan Islands',17100,3027,NULL,-2,128), ('Halmahera','Moluccan Islands',18040,1635,NULL,0.6,127.9), ('Ternate','Moluccan Islands',137,1715,NULL,0.8,127.3), ('New Guinea',NULL,786000,4884,NULL,-5,142), ('Goodenough Island',NULL,687,2536,NULL,-9.37,150.27), ('Bougainville','Solomon Islands',8800,2715,NULL,-6.2,155.25), ('New Britain','Bismarck Islands',36520,2438,'volcanic',-5.7,150.7), ('New Ireland','Bismarck Islands',7404,2379,NULL,-3.33,152.0), ('Guadalcanal','Solomon Islands',5358,2335,NULL,-9.6,160.2), ('Kolombangara','Solomon Islands',705,1770,NULL,-7.97,157.06), ('Grande Terre','New Caledonia',16372,1629,NULL,-22.16,166.27), ('Cangaroo Island',NULL,4405,307,NULL,-35.8,137.3), ('Melville Island',NULL,5800,NULL,NULL,-12,131), ('L<NAME>',NULL,14.6,875,'volcanic',-31.55,159.08), ('Ball''s Pyramid',NULL,0.2,562,'volcanic',-31.75,159.25), ('Tasmania',NULL,67800,1617,NULL,-42,145), ('Victoria Island','Canadian Arctic Islands',212291,665,NULL,70.75,-110.1), ('Banks Island','Canadian Arctic Islands',70028,730,NULL,72.85,-122.1), ('Prince of Wales Island','Canadian Arctic Islands',33339,320,NULL,72.6,-98.55), ('Baffin Island','Canadian Arctic Islands',507451,2147,NULL,69,-72), ('Southampton Island','Canadian Arctic Islands',41214,625,NULL,64.5,-84.5), ('Ellesmere Island','Canadian Arctic Islands',196236,2616,NULL,79.25,-79.6), ('Devon Island','Canadian Arctic Islands',55247,1920,NULL,75.1,-87.85), ('<NAME>',NULL,26,207,NULL,47,-56), ('Miquelon-Langlade',NULL,205,240,NULL,47.1,-56.3), ('Newfoundland',NULL,108860,814,NULL,48.6,-55.8), ('<NAME>',NULL,5660,142,NULL,46.3,-63.4), ('<NAME>',NULL,2020,952,NULL,51.4,-68.7), ('<NAME>',NULL,499,233,NULL,45.52,-73.63), ('<NAME>',NULL,242,50,NULL,45.62,-73.72), ('Teresa Island',NULL,NULL,2062,NULL,59.43,-133.79), ('Manitoulin',NULL,2766,352,NULL,45.75,-82.2), ('Treasure Island',NULL,0.45,225,NULL,45.76,-82.18), ('Marthas Vineyard',NULL,232,95,NULL,41.4,-70.6), ('Nantucket',NULL,125,9,NULL,41.5,-70.1), ('Long Island',NULL,3566,122,NULL,40.8,-73.3), ('Manhattan',NULL,59.5,81,NULL,40.76,-74.00), ('Staten Island',NULL,265.5,125,NULL,40.56,-74.15), ('Unalaska','Aleutes',2721,2036,'volcanic',53.9,-166.53), ('Unimak','Aleutes',4070,2857,'volcanic',54.76,-164.13), ('Vancouver Island',NULL,31285,2195,NULL,49.6,-125.65), ('Santa Cruz Island','Californian Channel Islands',245,747,NULL,34,-119.7), ('Santa Catalina Island','Californian Channel Islands',194,648,NULL,33.2,-118.2), ('Santa Rosa Island','Californian Channel Islands',215,484,NULL,34,-120.1), ('San Clemente Island','Californian Channel Islands',147,599,NULL,33,-118.5), ('San Miguel Island','Californian Channel Islands',37,259,NULL,33,-120.4), ('Grand Bermuda','Bermuda Islands',53.3,79,'coral',32.17,-64.47), ('New Providence','Bahama Islands',207,5,NULL,25,-77.4), ('Grand Turk','Turks and Caicos Islands',14,20,NULL,21.28,-71.08), ('Providenciales','Turks and Caicos Islands',98,49,NULL,22,-72.3), ('North Caicos','Turks and Caicos Islands',116,20,NULL,22.1,-72.1), ('Cuba','Greater Antilles',105806,1974,NULL,22,-79), ('<NAME>','Greater Antilles',2204,310,NULL,21.75,-82.85), ('Jamaica','Greater Antilles',10991,2256,NULL,18.1,-77.3), ('Hispaniola','Greater Antilles',76192,3098,NULL,19,-70.7), ('<NAME>','Greater Antilles',8870,1338,NULL,18.49,-66.12), ('Tortola','Lesser Antilles',55,521,'volcanic',18.27,-64.37), ('<NAME>','Lesser Antilles',81,474,NULL,18.3,-64.9), ('Anguilla','Lesser Antilles',96,65,NULL,18,-64), ('<NAME>','Lesser Antilles',87,411,NULL,18.1,-63.1), ('<NAME>','Lesser Antilles',21,286,NULL,17.9,-62.82), ('<NAME>','Lesser Antilles',164,1156,'volcanic',17.3,-62.75), ('Nevis','Lesser Antilles',93,985,'volcanic',17,-62.3), ('Barbuda','Lesser Antilles',161,38,'lime',17.3,-61.4), ('Antigua','Lesser Antilles',281,400,NULL,17.05,-61.8), ('Montserrat','Lesser Antilles',102,1050,'volcanic',16.42,-62.13), ('Basse-Terre','Lesser Antilles',848,1467,'volcanic',16.15,-61.8), ('Grande-Terre','<NAME>',589,136,'lime',16.3,-61.4), ('Dominica','<NAME>',746,1447,'volcanic',15.4,-61.35), ('Martinique','<NAME>',1128,1397,'volcanic',14.6,-61.0), ('<NAME>','Less<NAME>',616,950,'volcanic',14,-60.5), ('<NAME>','<NAME>',346,1300,'volcanic',13.25,-61.3), ('Barbados','<NAME>',430,336,'lime',13,-59.3), ('Grenada','<NAME>',344,840,'volcanic',12,-62), ('Trinidad','<NAME>',4827,940,NULL,10.4,-61.35), ('Tobago','<NAME>',301,576,NULL,11.25,-60.7), ('Curacao','Lesser Antilles',444,375,NULL,12.2,-69), ('Aruba','Lesser Antilles',193,188,NULL,12.31,-70.02), ('Grand Cayman','Cayman Islands',197,20,NULL,19.18,-81.23), ('Little Cayman','Cayman Islands',20,14,NULL,19.8,-80), ('Cayman Brac','Cayman Islands',30,43,NULL,19.7,-79.8), ('San Andres',NULL,26,85,NULL,12.5,-81.7), ('<NAME>',NULL,270,1700,NULL,11.5,-85.6), ('Isabela','Galapagos',5436,1707,'volcanic',-1,-91.3), ('Amantaní',NULL,9.28,4138,NULL,-15.66,-69.71), ('Marajó',NULL,40100,40,NULL,-0.985,-49.6), ('<NAME>',NULL,1410,30,NULL,-2.60,-44.23), ('<NAME>',NULL,19162,189,NULL,-11.3,-50.4), ('<NAME>',NULL,89,300,NULL,-20.29,-40.32), ('<NAME>',NULL,57.4,180,NULL,-23.95,-46.35), ('<NAME>',NULL,143,320,NULL,-23.95,-46.23), ('<NAME>',NULL,424,532,NULL,-27.6,-48.55), ('Chiloé',NULL,9322,866,NULL,-42.6,-73.95), ('<NAME>',NULL,47992,2488,NULL,-53.85,-68.55), ('Niihau','Hawaii Islands',178,381,'volcanic',21.9,-160.1), ('Kauai','Hawaii Islands',1433,1598,'volcanic',22,-159.5), ('Oahu','Hawaii Islands',1557,1220,'volcanic',21.5,-158), ('Molokai','Hawaii Islands',676,1512,'volcanic',21.1,-157), ('Lanai','Hawaii Islands',364,1026,'volcanic',20.5,-157), ('Maui','Hawaii Islands',1883,3055,'volcanic',20.7,-156.3), ('Hawaii','Hawaii Islands',10450,4214,'volcanic',19.6,-155.5), ('Niue',NULL,260,67,'coral',-19.01,-169.55), ('Saipan','Mariana Islands',115,474,'volcanic',15.2,145.75), ('Tinian','Mariana Islands',101,171,NULL,15,145.6), ('Rota','Mariana Islands',85,495,NULL,15.15,145.2), ('Uvea','Wallis Islands',90,131,'volcanic',-13.16,-176.2), ('Futuna','Futuna Islands',64,524,'volcanic',-14.3,-178.1), ('Tarawa','Gilbert Islands',39,3,'atoll',1.4,173), ('Kiritimati','Line Islands',388,13,'atoll',1.9,-157.4), ('Banaba',NULL,6.29,81,'volcanic',-0.85,169.54), ('Tongatapu','Tonga Islands',260,65,'coral',-21.2,-175.15), ('Kao','Tonga Islands',11.6,1030,'volcanic',-19.67,-175.03), ('<NAME>','Fiji Islands',10429,1394,'volcanic',-17.8,178), ('<NAME>','Fiji Islands',5500,1032,'volcanic',-16.35,179.25), ('Norfolk Island',NULL,34.6,319,'volcanic',-29,168), ('Nauru',NULL,21,60,'coral',-1,167), ('Koror','Carolines',8,100,'volcanic',7.3,134.5), ('Babelthuap','Carolines',8,331,'volcanic',7.5,134.6), ('Fongafale','Ellice Islands',2.8,NULL,'atoll',-8.5,179.1), ('Fakaofo','Tokelau',4,NULL,'atoll',-9.37,-171.2), ('<NAME>','New Hebrides',3955,1879,NULL,-15.25,166.83), ('Efate','New Hebrides',900,647,NULL,-17.8,168.4), ('Upolu','Samoan Islands',1125,1113,'volcanic',-13.9,-171.75), ('Savaii','Samoan Islands',1707,1858,'volcanic',-13.6,-172.4), ('Tutuila','Samoan Islands',135,653,'volcanic',-14.16,-170.42), ('Rarotonga','Cook Islands',67,658,'volcanic',-21.12,-159.46), ('Tahiti','Society Islands',1045,2241,'volcanic',-17.32,-149.34), ('Ra''i?tea','Society Islands',167.7,1017,'volcanic',-16.82,-151.45), ('Mangareva','Gambier Islands',15.4,441,'volcanic',-23.01,-134.97), ('Makatea','Tuamotu Islands',24,110,'atoll',-15.83,-148.26), ('Rangiroa','Tuamotu',79,NULL,'atoll',-15.13,-147.65), ('Guam','Mariana Islands',545,406,'coral',13.4,144.7), ('Majuro','Marshall Islands',9.2,3,'atoll',7.1,171.4), ('Kwajalein','Marshall Islands',16.4,NULL,'atoll',9.2,167.47), ('Pohnpei','Micronesian Islands',336,782,'volcanic',6.85,158.2), ('Pitcairn','Pitcairn Islands',4.5,347,'volcanic',-25.04,-130.05), ('Henderson Island','Pitcairn Islands',37,32.5,NULL,-24.38,-128.33), ('Easter Island',NULL,163,507,'volcanic',-27.1,-109.35), ('Te Ika-a-Maui (North Island)','New Zealand',114597,2797,NULL,-38.4,175.7), ('Te Waka-a-Maui (South Island)','New Zealand',151757,3754,NULL,-44,170.4) ;
<reponame>Mephostopilis/mall -- ---------------------------- -- Table structure for member_withdraw_request -- ---------------------------- DROP TABLE IF EXISTS `member_withdraw_request`;
<gh_stars>10-100 -- This script inserts the global events data into the DB, now that -- events.xml is no longer a hardcoded file INSERT INTO ddr_16_global_events VALUES(1, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(2, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(3, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(4, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(5, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(6, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(7, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(8, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(9, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(10, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(11, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(12, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(13, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(14, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(15, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(16, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(17, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(18, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(19, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(20, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(21, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(22, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(23, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(24, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(25, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(26, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(27, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(28, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(29, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(30, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(31, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(32, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(33, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(34, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(35, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(36, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(37, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(38, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(39, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(40, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(41, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(42, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(43, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(44, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(45, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(46, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(47, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(48, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(49, 0, 0, 9999, 0); INSERT INTO ddr_16_global_events VALUES(50, 0, 0, 9999, 0);
-- -- Name: get_psutil_mem(); Type: FUNCTION; Schema: public; Owner: d3l243 -- CREATE OR REPLACE FUNCTION public.get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision) RETURNS record LANGUAGE plpython3u SECURITY DEFINER AS $$ from psutil import virtual_memory, swap_memory vm = virtual_memory() sw = swap_memory() return vm.total, vm.used, vm.free, vm.buffers + vm.cached, vm.available, vm.percent, sw.total, sw.used, sw.free, sw.percent $$; ALTER FUNCTION public.get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision) OWNER TO d3l243; -- -- Name: FUNCTION get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision); Type: COMMENT; Schema: public; Owner: d3l243 -- COMMENT ON FUNCTION public.get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision) IS 'created for pgwatch2'; -- -- Name: FUNCTION get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision); Type: ACL; Schema: public; Owner: d3l243 -- GRANT ALL ON FUNCTION public.get_psutil_mem(OUT total double precision, OUT used double precision, OUT free double precision, OUT buff_cache double precision, OUT available double precision, OUT percent double precision, OUT swap_total double precision, OUT swap_used double precision, OUT swap_free double precision, OUT swap_percent double precision) TO pgwatch2;
<reponame>twdroeger/ada-awa /* File generated automatically by dynamo */ DROP TABLE IF EXISTS `awa_user`; DROP TABLE IF EXISTS `awa_session`; DROP TABLE IF EXISTS `awa_email`; DROP TABLE IF EXISTS `awa_access_key`; DROP TABLE IF EXISTS `awa_permission`; DROP TABLE IF EXISTS `awa_acl`; DROP TABLE IF EXISTS `awa_oauth_session`; DROP TABLE IF EXISTS `awa_callback`; DROP TABLE IF EXISTS `awa_application`; DROP TABLE IF EXISTS `awa_queue`; DROP TABLE IF EXISTS `awa_message_type`; DROP TABLE IF EXISTS `awa_message`; DROP TABLE IF EXISTS `awa_audit_field`; DROP TABLE IF EXISTS `awa_audit`;
<reponame>66254264/Activiti alter table ACT_HI_PROCINST add NAME_ nvarchar(255);
/*L Copyright ScenPro Inc, SAIC-F Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cadsr-sentinal/LICENSE.txt for details. L*/ /* Copyright 2007, ScenPro, Inc. $Header: /share/content/gforge/sentinel/sentinel/db-sql/deactivate.sql,v 1.2 2007-09-25 14:26:46 hebell Exp $ $Name: not supported by cvs2svn $ This script will set all Sentinel Alerts to INACTIVE except for those users listed. */ whenever sqlerror exit sql.sqlcode rollback; update sbrext.sn_alert_view_ext set al_status = 'I', status_reason = 'Set by Alert Administrator' where al_status <> 'I' and created_by <> 'HEBELL'; commit;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字parser非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists parser; create sequence parser start 100 cache 50; drop sequence parser; --关键字带双引号-成功 drop sequence if exists "parser"; create sequence "parser" start 100 cache 50; drop sequence "parser"; --关键字带单引号-合理报错 drop sequence if exists 'parser'; create sequence 'parser' start 100 cache 50; --关键字带反引号-合理报错 drop sequence if exists `parser`; create sequence `parser` start 100 cache 50;
<reponame>chriswill88/AirBnB_clone_v4 -- MySQL dump 10.13 Distrib 5.7.8-rc, for Linux (x86_64) -- -- Host: localhost Database: -- ------------------------------------------------------ -- Server version 5.7.8-rc /*!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: `hbnb_dev_db` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `hbnb_dev_db` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `hbnb_dev_db`; -- -- Table structure for table `amenities` -- DROP TABLE IF EXISTS `amenities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `amenities` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `amenities` -- LOCK TABLES `amenities` WRITE; /*!40000 ALTER TABLE `amenities` DISABLE KEYS */; INSERT INTO `amenities` VALUES ('24001e5d-2508-4f59-85ae-594c804ec049','2020-02-17 19:42:32','2020-02-17 19:42:32','Cable-TV'),('6352bf3c-7d96-469d-90c3-4b3b6927e72b','2020-02-17 19:42:31','2020-02-17 19:42:31','24-hour-check-in'),('7957f6c9-667e-4375-9cb5-a82c500744e3','2020-02-17 19:42:32','2020-02-17 19:42:32','Buzzer wireless-intercom'),('8146b553-6ed8-437a-963b-a8897deb6ffb','2020-02-17 19:42:33','2020-02-17 19:42:33','Cats'),('a5042111-a1bd-4977-9c18-7d8c31b75b9b','2020-02-17 19:42:31','2020-02-17 19:42:31','Air-conditioning'),('b5a2fe43-822e-43de-8dd4-a9f1fc40316b','2020-02-17 19:42:33','2020-02-17 19:42:33','Carbon-monoxide-detector'),('bb816e1f-73ac-42a5-b8df-1f874f9dc24c','2020-02-17 19:42:33','2020-02-17 19:42:33','Doorman'),('c43cbeb0-dc99-4cd5-ba93-21d23a84861e','2020-02-17 19:42:33','2020-02-17 19:42:33','Dogs'),('f6f214bb-5d5b-45bf-97f5-f8196937b45e','2020-02-17 19:42:32','2020-02-17 19:42:32','Breakfast'); /*!40000 ALTER TABLE `amenities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cities` -- DROP TABLE IF EXISTS `cities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cities` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(128) NOT NULL, `state_id` varchar(60) NOT NULL, PRIMARY KEY (`id`), KEY `state_id` (`state_id`), CONSTRAINT `cities_ibfk_1` FOREIGN KEY (`state_id`) REFERENCES `states` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cities` -- LOCK TABLES `cities` WRITE; /*!40000 ALTER TABLE `cities` DISABLE KEYS */; INSERT INTO `cities` VALUES ('43fcaad0-dba0-4b2d-8257-40544d0f61de','2020-02-17 19:42:37','2020-02-17 19:42:37','Billings','590d7d00-e75a-4644-b0ed-0881d0eac302'),('63ea262c-8aae-4cf0-bf38-d46519002a23','2020-02-17 19:42:38','2020-02-17 19:42:38','Hartford','adf8ee53-a15b-478c-89bd-feb344bfd797'),('88181f8f-6cb9-467c-abee-e4686f2fcfd1','2020-02-17 19:42:35','2020-02-17 19:42:35','Boston','68e827ce-7ef5-41ec-9726-4b0a5117c426'),('9eeb7409-cdee-4ec1-97c7-62652e934293','2020-02-17 19:42:37','2020-02-17 19:42:37','Montana-City','7a1138ca-0f53-4253-89d1-1aa2988bb4b2'),('bf2490f1-1ee9-4c1c-94be-c345d7eecfff','2020-02-17 19:42:36','2020-02-17 19:42:36','NYC','c38c3524-14b5-4f92-840c-cfb4a259fe4b'),('c4062324-5559-44a1-bfa1-4393832e2980','2020-02-17 19:42:38','2020-02-17 19:42:38','Alaska-City','68e827ce-7ef5-41ec-9726-4b0a5117c426'),('dd3bb9f2-822b-49f5-a453-2d568054da45','2020-02-17 19:42:38','2020-02-17 19:42:38','Las-Vegas','11f14a94-9c9d-4ffd-a1fa-f223a33e8fa1'),('e297ffc6-173b-4ed5-9b84-c2c6c758507a','2020-02-17 19:42:37','2020-02-17 19:42:37','Montanaville','adf8ee53-a15b-478c-89bd-feb344bfd797'),('ecb655e6-5a0b-481a-abf1-3714eec2f5a5','2020-02-17 19:42:36','2020-02-17 19:42:36','Bozeman','11f14a94-9c9d-4ffd-a1fa-f223a33e8fa1'),('efcc21f4-ff10-4b5d-ab82-15ab17908535','2020-02-17 19:42:37','2020-02-17 19:42:37','Red-Lodge','11f14a94-9c9d-4ffd-a1fa-f223a33e8fa1'),('f2f40cbf-9afb-42a4-a52d-bde7f7d770fe','2020-02-17 19:42:36','2020-02-17 19:42:36','Rhode-Island','590d7d00-e75a-4644-b0ed-0881d0eac302'); /*!40000 ALTER TABLE `cities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `place_amenity` -- DROP TABLE IF EXISTS `place_amenity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `place_amenity` ( `place_id` varchar(60) NOT NULL, `amenity_id` varchar(60) NOT NULL, PRIMARY KEY (`place_id`,`amenity_id`), KEY `amenity_id` (`amenity_id`), CONSTRAINT `place_amenity_ibfk_1` FOREIGN KEY (`place_id`) REFERENCES `places` (`id`), CONSTRAINT `place_amenity_ibfk_2` FOREIGN KEY (`amenity_id`) REFERENCES `amenities` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `place_amenity` -- LOCK TABLES `place_amenity` WRITE; /*!40000 ALTER TABLE `place_amenity` DISABLE KEYS */; INSERT INTO `place_amenity` VALUES ('39646923-c725-48cf-8f9b-accd61594977','24001e5d-2508-4f59-85ae-594c804ec049'),('9341b472-fee1-4ef7-8435-bda208212186','24001e5d-2508-4f59-85ae-594c804ec049'),('db316e18-4d7d-458a-ac4a-30a1e67fd8f2','24001e5d-2508-4f59-85ae-594c804ec049'),('b3d54976-26e3-4b66-8330-c8b885af1557','6352bf3c-7d96-469d-90c3-4b3b6927e72b'),('d2385f40-c91f-4f8b-ad59-f4f20a56efa0','6352bf3c-7d96-469d-90c3-4b3b6927e72b'),('f3b68901-4cc5-4e64-a225-944972be503a','6352bf3c-7d96-469d-90c3-4b3b6927e72b'),('0ab5019f-27bf-44d5-95da-7890e4002eeb','7957f6c9-667e-4375-9cb5-a82c500744e3'),('51d2fb89-a562-4f21-82de-4bcf9fbc2a0f','7957f6c9-667e-4375-9cb5-a82c500744e3'),('d2385f40-c91f-4f8b-ad59-f4f20a56efa0','7957f6c9-667e-4375-9cb5-a82c500744e3'),('39646923-c725-48cf-8f9b-accd61594977','8146b553-6ed8-437a-963b-a8897deb6ffb'),('9341b472-fee1-4ef7-8435-bda208212186','8146b553-6ed8-437a-963b-a8897deb6ffb'),('b3d54976-26e3-4b66-8330-c8b885af1557','8146b553-6ed8-437a-963b-a8897deb6ffb'),('7372ce6e-0f82-4fc1-9484-24196ece6ea1','a5042111-a1bd-4977-9c18-7d8c31b75b9b'),('a7d44da3-a6b6-458a-9184-561b7bb67ba4','a5042111-a1bd-4977-9c18-7d8c31b75b9b'),('02247326-9d3d-469c-aa78-f39a7092da68','b5a2fe43-822e-43de-8dd4-a9f1fc40316b'),('39646923-c725-48cf-8f9b-accd61594977','b5a2fe43-822e-43de-8dd4-a9f1fc40316b'),('d2385f40-c91f-4f8b-ad59-f4f20a56efa0','b5a2fe43-822e-43de-8dd4-a9f1fc40316b'),('39646923-c725-48cf-8f9b-accd61594977','bb816e1f-73ac-42a5-b8df-1f874f9dc24c'),('7372ce6e-0f82-4fc1-9484-24196ece6ea1','bb816e1f-73ac-42a5-b8df-1f874f9dc24c'),('d2385f40-c91f-4f8b-ad59-f4f20a56efa0','bb816e1f-73ac-42a5-b8df-1f874f9dc24c'),('0ab5019f-27bf-44d5-95da-7890e4002eeb','c43cbeb0-dc99-4cd5-ba93-21d23a84861e'),('13cf5636-8c59-44b4-a9a1-e84658b275fd','c43cbeb0-dc99-4cd5-ba93-21d23a84861e'),('a78bace1-0b11-4392-95a7-9ed24f215283','c43cbeb0-dc99-4cd5-ba93-21d23a84861e'),('260ae241-c7e3-4d0b-8374-c33efe781c9c','f6f214bb-5d5b-45bf-97f5-f8196937b45e'),('39646923-c725-48cf-8f9b-accd61594977','f6f214bb-5d5b-45bf-97f5-f8196937b45e'); /*!40000 ALTER TABLE `place_amenity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `places` -- DROP TABLE IF EXISTS `places`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `places` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `city_id` varchar(60) NOT NULL, `user_id` varchar(60) NOT NULL, `name` varchar(128) NOT NULL, `description` varchar(1024) DEFAULT NULL, `number_rooms` int(11) NOT NULL, `number_bathrooms` int(11) NOT NULL, `max_guest` int(11) NOT NULL, `price_by_night` int(11) NOT NULL, `latitude` float DEFAULT NULL, `longitude` float DEFAULT NULL, PRIMARY KEY (`id`), KEY `city_id` (`city_id`), KEY `user_id` (`user_id`), CONSTRAINT `places_ibfk_1` FOREIGN KEY (`city_id`) REFERENCES `cities` (`id`), CONSTRAINT `places_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `places` -- LOCK TABLES `places` WRITE; /*!40000 ALTER TABLE `places` DISABLE KEYS */; INSERT INTO `places` VALUES ('02247326-9d3d-469c-aa78-f39a7092da68','2020-02-17 19:42:41','2020-02-17 19:42:41','e297ffc6-173b-4ed5-9b84-c2c6c758507a','48d17a3a-6d49-4a72-a72a-80e10b899e1e','cardboard-box','something-something,-something.',5,4,0,34,1234,902),('0ab5019f-27bf-44d5-95da-7890e4002eeb','2020-02-17 19:42:39','2020-02-17 19:42:39','63ea262c-8aae-4cf0-bf38-d46519002a23','602da53c-ea7d-4d37-8787-4ea4092d64bd','piece-of-heaven','the-best-ever',3,5,3,234,23423,3234),('13cf5636-8c59-44b4-a9a1-e84658b275fd','2020-02-17 19:42:40','2020-02-17 19:42:40','efcc21f4-ff10-4b5d-ab82-15ab17908535','80c0de48-b785-4e81-aeb2-b4f1bfa549ad','other-room','placeplaceplace,-window,-door,-wifi,-etc.',0,4,4,34,1234,2341),('260ae241-c7e3-4d0b-8374-c33efe781c9c','2020-02-17 19:42:42','2020-02-17 19:42:42','e297ffc6-173b-4ed5-9b84-c2c6c758507a','48d17a3a-6d49-4a72-a72a-80e10b899e1e','motel','a-room',1,5,4,2345,23423,2341),('39646923-c725-48cf-8f9b-accd61594977','2020-02-17 19:42:42','2020-02-17 19:42:42','43fcaad0-dba0-4b2d-8257-40544d0f61de','18af7b17-831d-4369-911c-c5eb004cfdba','motel','no-place',5,12,0,23,23423,2341),('51d2fb89-a562-4f21-82de-4bcf9fbc2a0f','2020-02-17 19:42:40','2020-02-17 19:42:40','88181f8f-6cb9-467c-abee-e4686f2fcfd1','80c0de48-b785-4e81-aeb2-b4f1bfa549ad','piece-of-heaven','nice-place',3,5,1,2345,23423,902),('7372ce6e-0f82-4fc1-9484-24196ece6ea1','2020-02-17 19:42:43','2020-02-17 19:42:43','88181f8f-6cb9-467c-abee-e4686f2fcfd1','602da53c-ea7d-4d37-8787-4ea4092d64bd','cardboard-box','awful-place',1,5,1,234,1,2341),('9341b472-fee1-4ef7-8435-bda208212186','2020-02-17 19:42:42','2020-02-17 19:42:42','9eeb7409-cdee-4ec1-97c7-62652e934293','80c0de48-b785-4e81-aeb2-b4f1bfa549ad','piece-of-heaven','a-room',3,5,3,34,1,2341),('a78bace1-0b11-4392-95a7-9ed24f215283','2020-02-17 19:42:41','2020-02-17 19:42:41','9eeb7409-cdee-4ec1-97c7-62652e934293','48d17a3a-6d49-4a72-a72a-80e10b899e1e','mancave','placeplaceplace,-window,-door,-wifi,-etc.',0,9,3,23,1,4567),('a7d44da3-a6b6-458a-9184-561b7bb67ba4','2020-02-17 19:42:43','2020-02-17 19:42:43','dd3bb9f2-822b-49f5-a453-2d568054da45','18af7b17-831d-4369-911c-c5eb004cfdba','all-of-hawaii','a-room',5,5,4,2345,1234,902),('b3d54976-26e3-4b66-8330-c8b885af1557','2020-02-17 19:42:40','2020-02-17 19:42:40','bf2490f1-1ee9-4c1c-94be-c345d7eecfff','80c0de48-b785-4e81-aeb2-b4f1bfa549ad','all-of-hawaii','the-best-ever',3,9,1,2345,1234,2341),('d2385f40-c91f-4f8b-ad59-f4f20a56efa0','2020-02-17 19:42:41','2020-02-17 19:42:41','63ea262c-8aae-4cf0-bf38-d46519002a23','80c0de48-b785-4e81-aeb2-b4f1bfa549ad','hotel','dont-go-here',3,4,1,90,12343,3234),('db316e18-4d7d-458a-ac4a-30a1e67fd8f2','2020-02-17 19:42:40','2020-02-17 19:42:40','c4062324-5559-44a1-bfa1-4393832e2980','18af7b17-831d-4369-911c-c5eb004cfdba','cardboard-box','nice-place',0,9,1,234,1,902),('f3b68901-4cc5-4e64-a225-944972be503a','2020-02-17 19:42:42','2020-02-17 19:42:42','bf2490f1-1ee9-4c1c-94be-c345d7eecfff','602da53c-ea7d-4d37-8787-4ea4092d64bd','cardboard-box','nice-place',0,5,4,2345,23423,902); /*!40000 ALTER TABLE `places` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reviews` -- DROP TABLE IF EXISTS `reviews`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reviews` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `text` varchar(1024) NOT NULL, `place_id` varchar(60) NOT NULL, `user_id` varchar(60) NOT NULL, PRIMARY KEY (`id`), KEY `place_id` (`place_id`), KEY `user_id` (`user_id`), CONSTRAINT `reviews_ibfk_1` FOREIGN KEY (`place_id`) REFERENCES `places` (`id`), CONSTRAINT `reviews_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reviews` -- LOCK TABLES `reviews` WRITE; /*!40000 ALTER TABLE `reviews` DISABLE KEYS */; INSERT INTO `reviews` VALUES ('1cdcbef0-1fe7-434d-822b-990ee236ad46','2020-02-17 19:42:45','2020-02-17 19:42:45','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','f3b68901-4cc5-4e64-a225-944972be503a','80c0de48-b785-4e81-aeb2-b4f1bfa549ad'),('211d516e-2633-495b-a6ab-50ec230e4b8a','2020-02-17 19:42:48','2020-02-17 19:42:48','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','f3b68901-4cc5-4e64-a225-944972be503a','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('40e67c68-e930-4b29-812a-af4eb9a0cbb5','2020-02-17 19:42:45','2020-02-17 19:42:45','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','b3d54976-26e3-4b66-8330-c8b885af1557','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('43f49826-0326-490d-9831-ca9f18009cac','2020-02-17 19:42:48','2020-02-17 19:42:48','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','f3b68901-4cc5-4e64-a225-944972be503a','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('4be30cfa-1f6d-4da1-a192-8df4f2d932f7','2020-02-17 19:42:44','2020-02-17 19:42:44','This-book-was-an-absolute-pleasure-to-read-It-was-just-one-of-those-stories-thats-pretty-relatable','d2385f40-c91f-4f8b-ad59-f4f20a56efa0','48d17a3a-6d49-4a72-a72a-80e10b899e1e'),('51bd68bd-b210-41a3-ae0b-6250dc9b9b61','2020-02-17 19:42:47','2020-02-17 19:42:47','This-book-was-an-absolute-pleasure-to-read-It-was-just-one-of-those-stories-thats-pretty-relatable','02247326-9d3d-469c-aa78-f39a7092da68','80c0de48-b785-4e81-aeb2-b4f1bfa549ad'),('5c1bb037-acde-4cbd-a46c-1c9f3ec0b03b','2020-02-17 19:42:46','2020-02-17 19:42:46','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','a7d44da3-a6b6-458a-9184-561b7bb67ba4','18af7b17-831d-4369-911c-c5eb004cfdba'),('5c333d41-0a35-4997-8f0c-6d106c378611','2020-02-17 19:42:47','2020-02-17 19:42:47','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','39646923-c725-48cf-8f9b-accd61594977','48d17a3a-6d49-4a72-a72a-80e10b899e1e'),('78a17197-e13f-4c5b-88e7-c000bfe667e5','2020-02-17 19:42:46','2020-02-17 19:42:46','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','9341b472-fee1-4ef7-8435-bda208212186','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('99a916bf-4b04-4da8-85b3-91bdf01a853a','2020-02-17 19:42:48','2020-02-17 19:42:48','This-book-was-an-absolute-pleasure-to-read-It-was-just-one-of-those-stories-thats-pretty-relatable','0ab5019f-27bf-44d5-95da-7890e4002eeb','80c0de48-b785-4e81-aeb2-b4f1bfa549ad'),('9adc7073-fada-49ac-9879-d00a86d7bc10','2020-02-17 19:42:44','2020-02-17 19:42:44','This-book-was-an-absolute-pleasure-to-read-It-was-just-one-of-those-stories-thats-pretty-relatable','9341b472-fee1-4ef7-8435-bda208212186','80c0de48-b785-4e81-aeb2-b4f1bfa549ad'),('9c80bf1f-8ea1-4ce7-bffe-5efbec4b2088','2020-02-17 19:42:43','2020-02-17 19:42:43','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','a78bace1-0b11-4392-95a7-9ed24f215283','80c0de48-b785-4e81-aeb2-b4f1bfa549ad'),('b2a8c8e9-567e-4015-aaf3-14e592fd6a79','2020-02-17 19:42:44','2020-02-17 19:42:44','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','51d2fb89-a562-4f21-82de-4bcf9fbc2a0f','18af7b17-831d-4369-911c-c5eb004cfdba'),('bb39ac74-2bb9-4457-88a6-10c2b02af16b','2020-02-17 19:42:45','2020-02-17 19:42:45','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','b3d54976-26e3-4b66-8330-c8b885af1557','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('cf9831a2-a6c4-4355-9c71-491c078029e0','2020-02-17 19:42:45','2020-02-17 19:42:45','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','02247326-9d3d-469c-aa78-f39a7092da68','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('d9f6d4da-5fb7-4c8c-a1ad-2c767c98cd0d','2020-02-17 19:42:48','2020-02-17 19:42:48','This-book-was-an-absolute-pleasure-to-read-It-was-just-one-of-those-stories-thats-pretty-relatable','a7d44da3-a6b6-458a-9184-561b7bb67ba4','48d17a3a-6d49-4a72-a72a-80e10b899e1e'),('deb3d0d4-c294-4a21-ba4a-223e45f5f345','2020-02-17 19:42:47','2020-02-17 19:42:47','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','db316e18-4d7d-458a-ac4a-30a1e67fd8f2','48d17a3a-6d49-4a72-a72a-80e10b899e1e'),('e7baf386-f920-4bf6-b768-d13504a79ceb','2020-02-17 19:42:44','2020-02-17 19:42:44','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','0ab5019f-27bf-44d5-95da-7890e4002eeb','602da53c-ea7d-4d37-8787-4ea4092d64bd'),('e9ee901a-29d7-42f6-a99a-72c704c9ede6','2020-02-17 19:42:46','2020-02-17 19:42:46','Weve-all-been-there-Youve-read-a-great-book-you-want-to-leave-a-review-and-support-the-author-but-what-to-say-Thats-where-the-random-reviews-generator-comes-in-Below-you-will-find-a-randomly-generated-review-that-any-author-would-be-delighted-to-receive-Simply-copy-and-paste-it-and-voila-Dont-think-the-review-is-quite-right-Refresh-the-page-and-another-will-appear','a78bace1-0b11-4392-95a7-9ed24f215283','18af7b17-831d-4369-911c-c5eb004cfdba'),('fd54bb95-708a-4f19-9953-be6936ab1d65','2020-02-17 19:42:43','2020-02-17 19:42:43','This-was-a-lovely-romance-The-main-protagonists-and-secondary-characters-are-complex-and-fun-and-the-story-was-really-touching-I-cant-wait-to-read-more-from-this-author','f3b68901-4cc5-4e64-a225-944972be503a','48d17a3a-6d49-4a72-a72a-80e10b899e1e'); /*!40000 ALTER TABLE `reviews` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `states` -- DROP TABLE IF EXISTS `states`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `states` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `states` -- LOCK TABLES `states` WRITE; /*!40000 ALTER TABLE `states` DISABLE KEYS */; INSERT INTO `states` VALUES ('11f14a94-9c9d-4ffd-a1fa-f223a33e8fa1','2020-02-17 19:42:35','2020-02-17 19:42:35','Oregon'),('590d7d00-e75a-4644-b0ed-0881d0eac302','2020-02-17 19:42:34','2020-02-17 19:42:34','North-Dakota'),('68e827ce-7ef5-41ec-9726-4b0a5117c426','2020-02-17 19:42:34','2020-02-17 19:42:34','South-Dakota'),('6d8db411-8c60-4f7f-ba6c-595012b364d4','2020-02-17 19:42:34','2020-02-17 19:42:34','Canada'),('7a1138ca-0f53-4253-89d1-1aa2988bb4b2','2020-02-17 19:42:35','2020-02-17 19:42:35','Idaho'),('adf8ee53-a15b-478c-89bd-feb344bfd797','2020-02-17 19:42:34','2020-02-17 19:42:34','Montana'),('c38c3524-14b5-4f92-840c-cfb4a259fe4b','2020-02-17 19:42:35','2020-02-17 19:42:35','Wyoming'); /*!40000 ALTER TABLE `states` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `id` varchar(60) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `email` varchar(128) NOT NULL, `password` varchar(128) NOT NULL, `first_name` varchar(128) DEFAULT NULL, `last_name` varchar(128) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES ('18af7b17-831d-4369-911c-c5eb004cfdba','2020-02-17 19:42:39','2020-02-17 19:42:39','s.com','9dd4e461268c8034f5c8564e155c67a6','George','Doe'),('48d17a3a-6d49-4a72-a72a-80e10b899e1e','2020-02-17 19:42:39','2020-02-17 19:42:39','a.net','482c811da5d5b4bc6d497ffa98491e38','Alex','Miscovics'),('<PASSWORD>','2020-02-17 19:42:38','2020-02-17 19:42:38','s.com','415290769594460e2e485922904f345d','Bob','Shaw'),('80c0de48-b785-4e81-aeb2-b4f1bfa549ad','2020-02-17 19:42:39','2020-02-17 19:42:39','q.gov','276f8db0b86edaa7fc805516c852c889','Susan','Miscovics'); /*!40000 ALTER TABLE `users` 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(32) 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(32) 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 */; INSERT INTO `db` VALUES ('localhost','hbnb_dev_db','hbnb_dev','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y'),('localhost','performance_schema','hbnb_dev','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N'); /*!40000 ALTER TABLE `db` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `engine_cost` -- DROP TABLE IF EXISTS `engine_cost`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `engine_cost` ( `engine_name` varchar(64) NOT NULL, `device_type` int(11) NOT NULL, `cost_name` varchar(64) NOT NULL, `cost_value` float DEFAULT NULL, `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `comment` varchar(1024) DEFAULT NULL, PRIMARY KEY (`cost_name`,`engine_name`,`device_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `engine_cost` -- LOCK TABLES `engine_cost` WRITE; /*!40000 ALTER TABLE `engine_cost` DISABLE KEYS */; INSERT INTO `engine_cost` VALUES ('default',0,'io_block_read_cost',NULL,'2020-02-04 22:37:16',NULL),('default',0,'memory_block_read_cost',NULL,'2020-02-04 22:37:16',NULL); /*!40000 ALTER TABLE `engine_cost` 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 */; -- -- Dumping data for table `event` -- LOCK TABLES `event` WRITE; /*!40000 ALTER TABLE `event` DISABLE KEYS */; /*!40000 ALTER TABLE `event` ENABLE KEYS */; UNLOCK TABLES; -- -- 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 `gtid_executed` -- DROP TABLE IF EXISTS `gtid_executed`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gtid_executed` ( `source_uuid` char(36) NOT NULL COMMENT 'uuid of the source where the transaction was originally executed.', `interval_start` bigint(20) NOT NULL COMMENT 'First number of interval.', `interval_end` bigint(20) NOT NULL COMMENT 'Last number of interval.', PRIMARY KEY (`source_uuid`,`interval_start`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gtid_executed` -- LOCK TABLES `gtid_executed` WRITE; /*!40000 ALTER TABLE `gtid_executed` DISABLE KEYS */; /*!40000 ALTER TABLE `gtid_executed` 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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 (633,'<>'),(491,'ACCOUNT'),(619,'ACTION'),(432,'ADD'),(316,'AES_DECRYPT'),(597,'AES_ENCRYPT'),(478,'AFTER'),(385,'AGAINST'),(106,'AGGREGATE'),(438,'ALGORITHM'),(210,'ALL'),(259,'ALTER'),(288,'ANALYSE'),(616,'ANALYZE'),(535,'AND'),(153,'ANY_VALUE'),(434,'ARCHIVE'),(510,'AREA'),(465,'AS'),(171,'ASBINARY'),(623,'ASC'),(436,'ASTEXT'),(182,'ASWKB'),(336,'ASWKT'),(5,'AT'),(144,'AUTOCOMMIT'),(46,'AUTOEXTEND_SIZE'),(433,'AVG_ROW_LENGTH'),(209,'BEFORE'),(590,'BEGIN'),(523,'BETWEEN'),(406,'BIGINT'),(50,'BINARY'),(533,'BINLOG'),(540,'BOOL'),(69,'BOOLEAN'),(225,'BOTH'),(639,'BTREE'),(279,'BUFFER'),(346,'BY'),(459,'BYTE'),(129,'CACHE'),(528,'CALL'),(180,'CASCADE'),(421,'CASE'),(320,'CATALOG_NAME'),(554,'CEIL'),(598,'CEILING'),(594,'CENTROID'),(194,'CHAIN'),(372,'CHANGE'),(266,'CHAR'),(176,'CHARACTER'),(344,'CHECK'),(63,'CHECKSUM'),(422,'CIPHER'),(72,'CLASS_ORIGIN'),(495,'CLIENT'),(39,'CLOSE'),(641,'COALESCE'),(509,'CODE'),(456,'COLLATE'),(637,'COLLATION'),(239,'COLUMN'),(331,'COLUMNS'),(357,'COLUMN_NAME'),(78,'COMMENT'),(450,'COMMIT'),(585,'COMMITTED'),(97,'COMPACT'),(330,'COMPLETION'),(290,'COMPRESSED'),(542,'CONCURRENT'),(104,'CONDITION'),(38,'CONNECTION'),(546,'CONSISTENT'),(617,'CONSTRAINT'),(442,'CONSTRAINT_CATALOG'),(133,'CONSTRAINT_NAME'),(614,'CONSTRAINT_SCHEMA'),(3,'CONTAINS'),(423,'CONTINUE'),(134,'CONVERT'),(463,'CONVEXHULL'),(392,'COUNT'),(196,'CREATE'),(163,'CROSS'),(192,'CROSSES'),(149,'CSV'),(51,'CURRENT_USER'),(190,'CURSOR'),(472,'CURSOR_NAME'),(350,'DATA'),(307,'DATABASE'),(538,'DATABASES'),(287,'DATAFILE'),(76,'DATE'),(332,'DATETIME'),(232,'DATE_ADD'),(562,'DATE_SUB'),(349,'DAY'),(596,'DAY_HOUR'),(561,'DAY_MINUTE'),(67,'DAY_SECOND'),(419,'DEALLOCATE'),(98,'DEC'),(446,'DECIMAL'),(452,'DECLARE'),(399,'DEFAULT'),(127,'DEFAULT_AUTH'),(485,'DEFINER'),(302,'DELAYED'),(589,'DELAY_KEY_WRITE'),(36,'DELETE'),(505,'DESC'),(197,'DESCRIBE'),(289,'DES_KEY_FILE'),(549,'DIAGNOSTICS'),(583,'DIMENSION'),(315,'DIRECTORY'),(479,'DISABLE'),(199,'DISCARD'),(110,'DISJOINT'),(244,'DISTANCE'),(628,'DISTINCT'),(188,'DISTINCTROW'),(75,'DO'),(339,'DROP'),(159,'DUAL'),(550,'DUMPFILE'),(21,'DUPLICATE'),(135,'DYNAMIC'),(88,'ELSE'),(95,'ELSEIF'),(624,'ENABLE'),(105,'ENCLOSED'),(214,'END'),(389,'ENDPOINT'),(516,'ENDS'),(500,'ENGINE'),(65,'ENGINES'),(138,'ENVELOPE'),(588,'EQUALS'),(580,'ERRORS'),(16,'ESCAPE'),(263,'ESCAPED'),(362,'EVENT'),(17,'EVENTS'),(276,'EVERY'),(522,'EXCHANGE'),(552,'EXECUTE'),(395,'EXISTS'),(296,'EXIT'),(507,'EXPANSION'),(473,'EXPIRE'),(148,'EXPLAIN'),(634,'EXPORT'),(162,'EXTENDED'),(512,'EXTENT_SIZE'),(89,'EXTERIORRING'),(369,'FALSE'),(204,'FAST'),(377,'FEDERATED'),(237,'FETCH'),(108,'FIELDS'),(152,'FILE'),(321,'FILE_BLOCK_SIZE'),(587,'FILTER'),(640,'FIRST'),(322,'FIXED'),(435,'FLOAT4'),(217,'FLOAT8'),(475,'FLOOR'),(195,'FLUSH'),(99,'FOR'),(371,'FORCE'),(128,'FOREIGN'),(92,'FROM'),(345,'FULL'),(77,'FULLTEXT'),(429,'FUNCTION'),(467,'GEOMCOLLFROMTEXT'),(397,'GEOMCOLLFROMWKB'),(381,'GEOMETRYCOLLECTION'),(193,'GEOMETRYCOLLECTIONFROMTEXT'),(338,'GEOMETRYCOLLECTIONFROMWKB'),(126,'GEOMETRYFROMTEXT'),(565,'GEOMETRYFROMWKB'),(125,'GEOMETRYN'),(600,'GEOMETRYTYPE'),(566,'GEOMFROMTEXT'),(90,'GEOMFROMWKB'),(205,'GET'),(317,'GLENGTH'),(461,'GLOBAL'),(122,'GRANT'),(469,'GRANTS'),(164,'GROUP'),(66,'HANDLER'),(140,'HAVING'),(520,'HEAP'),(543,'HELP'),(68,'HELP_DATE'),(115,'HELP_VERSION'),(638,'HIGH_PRIORITY'),(1,'HOST'),(449,'HOSTS'),(536,'HOUR'),(52,'HOUR_MINUTE'),(379,'HOUR_SECOND'),(221,'IDENTIFIED'),(292,'IF'),(364,'IGNORE'),(169,'IGNORE_SERVER_IDS'),(62,'IMPORT'),(548,'IN'),(484,'INDEX'),(447,'INDEXES'),(113,'INFILE'),(620,'INITIAL_SIZE'),(412,'INNER'),(26,'INNODB'),(391,'INSERT'),(501,'INSERT_METHOD'),(405,'INSTALL'),(256,'INT1'),(515,'INT2'),(431,'INT3'),(32,'INT4'),(277,'INT8'),(334,'INTEGER'),(249,'INTERIORRINGN'),(203,'INTERSECTS'),(268,'INTERVAL'),(56,'INTO'),(420,'IO_THREAD'),(283,'IS'),(20,'ISCLOSED'),(517,'ISEMPTY'),(275,'ISOLATION'),(143,'ISSIMPLE'),(409,'ISSUER'),(74,'ITERATE'),(0,'JOIN'),(611,'KEY'),(609,'KEYS'),(264,'KEY_BLOCK_SIZE'),(109,'KILL'),(607,'LAST'),(132,'LEADING'),(183,'LEAVE'),(94,'LEFT'),(49,'LEVEL'),(234,'LIKE'),(610,'LIMIT'),(359,'LINEFROMTEXT'),(599,'LINEFROMWKB'),(246,'LINES'),(354,'LINESTRING'),(282,'LINESTRINGFROMTEXT'),(460,'LINESTRINGFROMWKB'),(454,'LOAD'),(629,'LOCAL'),(31,'LOCK'),(511,'LOGFILE'),(519,'LOGS'),(85,'LONG'),(390,'LONGBINARY'),(207,'LOOP'),(151,'LOW_PRIORITY'),(643,'MASTER'),(170,'MASTER_AUTO_POSITION'),(486,'MASTER_BIND'),(80,'MASTER_CONNECT_RETRY'),(356,'MASTER_HEARTBEAT_PERIOD'),(556,'MASTER_HOST'),(81,'MASTER_LOG_FILE'),(187,'MASTER_LOG_POS'),(496,'MASTER_PASSWORD'),(541,'MASTER_PORT'),(342,'MASTER_RETRY_COUNT'),(231,'MASTER_SSL'),(8,'MASTER_SSL_CA'),(559,'MASTER_SSL_CERT'),(223,'MASTER_SSL_CIPHER'),(117,'MASTER_SSL_CRL'),(40,'MASTER_SSL_CRLPATH'),(630,'MASTER_SSL_KEY'),(337,'MASTER_SSL_VERIFY_SERVER_CERT'),(499,'MASTER_USER'),(186,'MATCH'),(547,'MAX_CONNECTIONS_PER_HOUR'),(252,'MAX_QUERIES_PER_HOUR'),(258,'MAX_ROWS'),(378,'MAX_SIZE'),(386,'MAX_STATEMENT_TIME'),(514,'MAX_UPDATES_PER_HOUR'),(626,'MAX_USER_CONNECTIONS'),(219,'MBRCONTAINS'),(527,'MBRDISJOINT'),(114,'MBREQUAL'),(123,'MBRINTERSECTS'),(173,'MBROVERLAPS'),(498,'MBRTOUCHES'),(238,'MBRWITHIN'),(593,'MEDIUM'),(241,'MEMORY'),(298,'MERGE'),(355,'MESSAGE_TEXT'),(121,'MIDDLEINT'),(34,'MINUTE'),(425,'MINUTE_SECOND'),(427,'MIN_ROWS'),(394,'MLINEFROMTEXT'),(157,'MLINEFROMWKB'),(70,'MOD'),(333,'MODE'),(185,'MODIFY'),(18,'MONTH'),(265,'MPOINTFROMTEXT'),(608,'MPOINTFROMWKB'),(444,'MPOLYFROMTEXT'),(73,'MPOLYFROMWKB'),(415,'MRG_MYISAM'),(261,'MULTILINESTRING'),(202,'MULTILINESTRINGFROMTEXT'),(488,'MULTILINESTRINGFROMWKB'),(236,'MULTIPOINT'),(161,'MULTIPOINTFROMTEXT'),(160,'MULTIPOINTFROMWKB'),(93,'MULTIPOLYGON'),(324,'MULTIPOLYGONFROMTEXT'),(560,'MULTIPOLYGONFROMWKB'),(396,'MUTEX'),(504,'MYISAM'),(130,'MYSQL_ERRNO'),(269,'NAME'),(165,'NATIONAL'),(260,'NATURAL'),(9,'NCHAR'),(306,'NEVER'),(579,'NEXT'),(348,'NO'),(154,'NODEGROUP'),(457,'NONBLOCKING'),(631,'NONE'),(285,'NOT'),(401,'NO_WRITE_TO_BINLOG'),(308,'NULL'),(107,'NUMBER'),(508,'NUMERIC'),(437,'NUMGEOMETRIES'),(250,'NUMINTERIORRINGS'),(453,'NUMPOINTS'),(313,'NVARCHAR'),(578,'OFFSET'),(37,'ON'),(10,'ONLY'),(14,'OPEN'),(402,'OPTIMIZE'),(86,'OPTION'),(625,'OPTIONALLY'),(545,'OPTIONS'),(220,'OR'),(116,'ORDER'),(471,'OUTER'),(150,'OUTFILE'),(112,'OVERLAPS'),(174,'OWNER'),(201,'PACK_KEYS'),(568,'PARSER'),(213,'PARTIAL'),(351,'PARTITION'),(417,'PARTITIONS'),(577,'PASSWORD'),(235,'PLUGIN'),(603,'PLUGINS'),(247,'PLUGIN_DIR'),(374,'POINT'),(222,'POINTFROMTEXT'),(310,'POINTFROMWKB'),(168,'POINTN'),(551,'POLYFROMTEXT'),(57,'POLYFROMWKB'),(33,'POLYGON'),(137,'POLYGONFROMTEXT'),(370,'POLYGONFROMWKB'),(393,'PORT'),(483,'POW'),(309,'POWER'),(82,'PRECISION'),(30,'PREPARE'),(54,'PRESERVE'),(218,'PREV'),(606,'PRIMARY'),(42,'PRIVILEGES'),(384,'PROCEDURE'),(544,'PROCESS'),(198,'PROCESSLIST'),(592,'PROFILE'),(19,'PROFILES'),(294,'PURGE'),(243,'QUERY'),(366,'QUICK'),(147,'RANDOM_BYTES'),(424,'READ'),(352,'REAL'),(564,'REBUILD'),(518,'RECOVER'),(211,'REDUNDANT'),(271,'REFERENCES'),(413,'RELAYLOG'),(497,'RELAY_LOG_FILE'),(181,'RELAY_LOG_POS'),(398,'RELEASE'),(142,'RELOAD'),(487,'REMOVE'),(567,'RENAME'),(87,'REORGANIZE'),(525,'REPAIR'),(325,'REPEAT'),(440,'REPEATABLE'),(326,'REPLACE'),(470,'REPLICATE_DO_DB'),(286,'REPLICATE_DO_TABLE'),(251,'REPLICATE_IGNORE_DB'),(563,'REPLICATE_IGNORE_TABLE'),(27,'REPLICATE_REWRITE_DB'),(120,'REPLICATE_WILD_DO_TABLE'),(206,'REPLICATE_WILD_IGNORE_TABLE'),(23,'REPLICATION'),(83,'REQUIRE'),(404,'RESET'),(229,'RESIGNAL'),(280,'RESTRICT'),(314,'RETURN'),(521,'RETURNED_SQLSTATE'),(7,'RETURNS'),(146,'REVOKE'),(257,'RIGHT'),(635,'RLIKE'),(60,'ROLLBACK'),(293,'ROWS'),(428,'ROW_COUNT'),(644,'ROW_FORMAT'),(605,'SAVEPOINT'),(6,'SCHEDULE'),(155,'SCHEMA'),(131,'SCHEMAS'),(177,'SCHEMA_NAME'),(216,'SECOND'),(45,'SECURITY'),(537,'SELECT'),(35,'SEPARATOR'),(618,'SERIAL'),(2,'SERIALIZABLE'),(558,'SERVER'),(621,'SESSION'),(408,'SET'),(167,'SHA'),(576,'SHA1'),(365,'SHA2'),(353,'SHARE'),(532,'SHOW'),(318,'SHUTDOWN'),(602,'SIGNAL'),(367,'SIGNED'),(622,'SLAVE'),(451,'SNAPSHOT'),(570,'SOCKET'),(482,'SONAME'),(200,'SOUNDS'),(43,'SPATIAL'),(403,'SQLSTATE'),(58,'SQL_AFTER_GTIDS'),(474,'SQL_AFTER_MTS_GAPS'),(388,'SQL_BEFORE_GTIDS'),(340,'SQL_BIG_RESULT'),(44,'SQL_BUFFER_RESULT'),(455,'SQL_CACHE'),(502,'SQL_CALC_FOUND_ROWS'),(582,'SQL_LOG_BIN'),(300,'SQL_NO_CACHE'),(224,'SQL_SLAVE_SKIP_COUNTER'),(584,'SQL_SMALL_RESULT'),(248,'SQL_THREAD'),(4,'SRID'),(595,'SSL'),(291,'START'),(141,'STARTING'),(443,'STARTPOINT'),(328,'STARTS'),(91,'STATS_AUTO_RECALC'),(25,'STATS_PERSISTENT'),(601,'STATS_SAMPLE_PAGES'),(411,'STATUS'),(477,'STD'),(255,'STDDEV'),(414,'STOP'),(274,'STORAGE'),(573,'STRAIGHT_JOIN'),(103,'STRING'),(387,'ST_AREA'),(383,'ST_ASBINARY'),(319,'ST_ASGEOJSON'),(79,'ST_ASTEXT'),(569,'ST_ASWKB'),(84,'ST_ASWKT'),(278,'ST_BUFFER'),(323,'ST_BUFFER_STRATEGY'),(284,'ST_CENTROID'),(215,'ST_CONTAINS'),(481,'ST_CONVEXHULL'),(524,'ST_CROSSES'),(380,'ST_DIFFERENCE'),(407,'ST_DIMENSION'),(534,'ST_DISJOINT'),(299,'ST_DISTANCE'),(303,'ST_DISTANCE_SPHERE'),(490,'ST_ENDPOINT'),(233,'ST_ENVELOPE'),(557,'ST_EQUALS'),(615,'ST_EXTERIORRING'),(184,'ST_GEOHASH'),(368,'ST_GEOMCOLLFROMTEXT'),(12,'ST_GEOMCOLLFROMWKB'),(382,'ST_GEOMETRYCOLLECTIONFROMTEXT'),(574,'ST_GEOMETRYCOLLECTIONFROMWKB'),(458,'ST_GEOMETRYFROMTEXT'),(430,'ST_GEOMETRYFROMWKB'),(11,'ST_GEOMETRYN'),(71,'ST_GEOMETRYTYPE'),(572,'ST_GEOMFROMGEOJSON'),(118,'ST_GEOMFROMTEXT'),(575,'ST_GEOMFROMWKB'),(468,'ST_INTERIORRINGN'),(448,'ST_INTERSECTION'),(15,'ST_INTERSECTS'),(96,'ST_ISCLOSED'),(139,'ST_ISEMPTY'),(166,'ST_ISSIMPLE'),(136,'ST_ISVALID'),(571,'ST_LATFROMGEOHASH'),(513,'ST_LINEFROMTEXT'),(179,'ST_LINEFROMWKB'),(466,'ST_LINESTRINGFROMTEXT'),(102,'ST_LINESTRINGFROMWKB'),(101,'ST_LONGFROMGEOHASH'),(272,'ST_MAKEENVELOPE'),(613,'ST_MLINEFROMTEXT'),(172,'ST_MLINEFROMWKB'),(410,'ST_MPOINTFROMTEXT'),(441,'ST_MPOINTFROMWKB'),(526,'ST_MPOLYFROMTEXT'),(124,'ST_MPOLYFROMWKB'),(297,'ST_MULTILINESTRINGFROMTEXT'),(555,'ST_MULTILINESTRINGFROMWKB'),(426,'ST_MULTIPOINTFROMTEXT'),(242,'ST_MULTIPOINTFROMWKB'),(301,'ST_MULTIPOLYGONFROMTEXT'),(586,'ST_MULTIPOLYGONFROMWKB'),(604,'ST_NUMGEOMETRIES'),(329,'ST_NUMINTERIORRING'),(418,'ST_NUMINTERIORRINGS'),(230,'ST_NUMPOINTS'),(492,'ST_OVERLAPS'),(347,'ST_POINTFROMGEOHASH'),(489,'ST_POINTFROMTEXT'),(270,'ST_POINTFROMWKB'),(22,'ST_POINTN'),(253,'ST_POLYFROMTEXT'),(304,'ST_POLYFROMWKB'),(158,'ST_POLYGONFROMTEXT'),(48,'ST_POLYGONFROMWKB'),(55,'ST_SIMPLIFY'),(553,'ST_SRID'),(47,'ST_STARTPOINT'),(327,'ST_SYMDIFFERENCE'),(156,'ST_TOUCHES'),(191,'ST_UNION'),(343,'ST_VALIDATE'),(273,'ST_WITHIN'),(530,'ST_X'),(145,'ST_Y'),(360,'SUBCLASS_ORIGIN'),(341,'SUBJECT'),(363,'SUPER'),(178,'TABLE'),(632,'TABLES'),(111,'TABLESPACE'),(375,'TABLE_NAME'),(581,'TEMPORARY'),(312,'TERMINATED'),(64,'THEN'),(506,'TIME'),(61,'TIMESTAMP'),(373,'TO'),(464,'TOUCHES'),(416,'TRAILING'),(254,'TRANSACTION'),(636,'TRIGGER'),(228,'TRIGGERS'),(175,'TRUE'),(531,'TRUNCATE'),(400,'TYPE'),(281,'UNCOMMITTED'),(493,'UNDO'),(480,'UNINSTALL'),(503,'UNION'),(227,'UNIQUE'),(24,'UNLOCK'),(445,'UNSIGNED'),(612,'UNTIL'),(53,'UPDATE'),(267,'UPGRADE'),(240,'USAGE'),(41,'USE'),(295,'USER'),(212,'USER_RESOURCES'),(311,'USE_FRM'),(119,'USING'),(335,'VALUE'),(529,'VALUES'),(208,'VARCHARACTER'),(59,'VARIABLE'),(262,'VARIABLES'),(376,'VARYING'),(439,'VIEW'),(642,'WAIT'),(100,'WARNINGS'),(462,'WHEN'),(361,'WHERE'),(627,'WHILE'),(476,'WITH'),(29,'WITHIN'),(13,'WORK'),(539,'WRAPPER'),(305,'WRITE'),(189,'X'),(358,'X509'),(591,'XA'),(245,'Y'),(226,'YEAR'),(28,'YEAR_MONTH'),(494,'ZEROFILL'); /*!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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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 (0,0),(504,0),(281,1),(265,2),(2,3),(3,4),(350,5),(350,6),(533,6),(62,7),(408,8),(254,9),(265,10),(386,10),(554,10),(6,11),(7,12),(386,13),(13,14),(66,14),(379,14),(497,14),(14,15),(226,16),(74,17),(102,17),(251,17),(224,18),(50,19),(19,20),(360,21),(21,22),(118,23),(311,23),(27,24),(345,24),(526,24),(279,25),(279,26),(497,26),(311,27),(224,28),(24,29),(26,30),(432,30),(554,30),(27,31),(345,31),(504,31),(526,31),(574,31),(298,32),(29,33),(224,34),(505,35),(34,36),(279,36),(582,36),(0,37),(350,37),(533,37),(582,37),(104,38),(279,38),(35,39),(66,39),(408,40),(0,41),(37,41),(114,41),(113,42),(118,42),(148,42),(123,43),(574,43),(504,44),(118,45),(114,46),(45,47),(283,48),(265,49),(28,50),(134,50),(163,50),(350,51),(533,51),(224,52),(51,53),(360,53),(504,53),(582,53),(350,54),(533,54),(53,55),(305,56),(360,56),(466,56),(504,56),(58,57),(479,58),(373,59),(386,60),(554,60),(572,60),(63,61),(406,61),(544,62),(574,62),(237,63),(279,63),(22,64),(38,64),(52,64),(453,65),(497,65),(66,66),(472,66),(224,67),(67,68),(314,69),(349,69),(70,70),(401,70),(71,71),(188,72),(220,72),(570,72),(75,73),(76,74),(77,75),(350,75),(533,75),(592,75),(79,76),(134,76),(224,76),(443,76),(123,77),(279,77),(574,77),(114,78),(123,78),(279,78),(350,78),(533,78),(80,79),(408,80),(408,81),(473,82),(118,83),(345,83),(526,83),(80,84),(457,85),(118,86),(148,86),(574,87),(38,88),(52,88),(85,89),(86,90),(279,91),(34,92),(74,92),(251,92),(497,92),(504,92),(568,92),(88,93),(0,94),(22,95),(90,96),(279,97),(419,98),(198,99),(403,99),(472,99),(497,99),(504,99),(543,99),(480,100),(497,100),(97,101),(185,102),(62,103),(403,104),(544,105),(62,106),(188,107),(497,108),(544,108),(104,109),(105,110),(114,111),(247,111),(574,111),(107,112),(377,113),(544,113),(109,114),(111,115),(34,116),(51,116),(504,116),(505,116),(574,116),(408,117),(115,118),(0,119),(34,119),(54,119),(311,120),(150,121),(118,122),(148,122),(119,123),(122,124),(125,125),(536,126),(479,127),(279,128),(281,128),(574,128),(582,128),(64,129),(91,129),(466,129),(188,130),(220,130),(570,130),(99,131),(497,131),(568,132),(188,133),(220,133),(570,133),(134,134),(514,134),(279,135),(136,136),(524,137),(140,138),(141,139),(504,140),(544,141),(118,142),(143,143),(386,144),(147,145),(148,146),(151,147),(153,148),(279,149),(544,149),(504,150),(27,151),(34,151),(51,151),(305,151),(360,151),(377,151),(544,151),(118,152),(161,153),(114,154),(124,155),(388,155),(407,155),(470,155),(497,155),(165,156),(168,157),(243,158),(170,159),(573,160),(252,161),(153,162),(275,162),(0,163),(114,164),(504,164),(156,165),(254,165),(174,166),(547,167),(175,168),(408,169),(408,170),(179,171),(180,172),(184,173),(281,174),(230,175),(124,176),(156,176),(202,176),(254,176),(279,176),(377,176),(388,176),(497,176),(504,176),(544,176),(188,177),(220,177),(570,177),(42,178),(68,178),(127,178),(169,178),(237,178),(248,178),(275,178),(279,178),(365,178),(451,178),(477,178),(497,178),(574,178),(579,178),(185,179),(279,180),(317,180),(451,180),(582,180),(408,181),(179,182),(190,183),(191,184),(574,185),(349,186),(408,187),(504,188),(193,189),(543,190),(196,191),(195,192),(437,193),(386,194),(91,195),(198,195),(12,196),(16,196),(42,196),(62,196),(114,196),(123,196),(169,196),(187,196),(212,196),(233,196),(277,196),(279,196),(281,196),(345,196),(350,196),(388,196),(420,196),(470,196),(497,196),(567,196),(153,197),(497,198),(564,198),(574,199),(515,200),(279,201),(361,202),(203,203),(248,204),(188,205),(311,206),(204,207),(156,208),(163,209),(118,210),(148,210),(323,210),(467,210),(504,210),(279,211),(198,212),(279,213),(22,214),(38,214),(52,214),(135,214),(199,214),(204,214),(554,214),(592,214),(206,215),(224,216),(473,217),(66,218),(209,219),(213,220),(118,221),(345,221),(377,221),(526,221),(215,222),(408,223),(108,224),(568,225),(224,226),(574,227),(18,228),(497,228),(220,229),(222,230),(408,231),(224,232),(225,233),(497,234),(515,234),(178,235),(497,235),(542,235),(227,236),(229,237),(231,238),(574,239),(118,240),(504,241),(410,242),(91,243),(104,243),(349,243),(234,244),(236,245),(377,246),(544,246),(479,247),(331,248),(479,248),(239,249),(238,250),(311,251),(118,252),(345,252),(526,252),(243,253),(265,254),(386,254),(244,255),(314,256),(0,257),(279,258),(42,259),(98,259),(118,259),(124,259),(219,259),(259,259),(430,259),(526,259),(533,259),(574,259),(0,260),(250,261),(497,262),(498,262),(544,263),(279,264),(252,265),(134,266),(576,266),(124,267),(248,267),(224,268),(345,268),(350,268),(526,268),(124,269),(261,270),(118,271),(279,271),(582,271),(262,272),(263,273),(453,274),(265,275),(350,276),(370,277),(267,278),(268,279),(317,280),(451,280),(582,280),(265,281),(332,282),(120,283),(218,283),(270,283),(348,283),(272,284),(120,285),(348,285),(350,285),(388,285),(471,285),(311,286),(114,287),(110,288),(198,289),(279,290),(386,291),(479,291),(554,291),(5,292),(22,292),(288,292),(317,292),(350,292),(388,292),(407,292),(451,292),(464,292),(377,293),(163,294),(277,295),(281,295),(345,295),(426,295),(479,295),(482,295),(526,295),(472,296),(577,297),(279,298),(278,299),(504,300),(488,301),(305,302),(360,302),(586,302),(282,303),(283,304),(27,305),(265,305),(386,305),(554,305),(345,306),(526,306),(124,307),(281,307),(388,307),(407,307),(470,307),(497,307),(218,308),(348,308),(582,308),(290,309),(289,310),(275,311),(544,312),(156,313),(294,314),(124,315),(279,315),(296,316),(299,317),(118,318),(300,319),(188,320),(220,320),(570,320),(114,321),(279,322),(419,322),(301,323),(414,324),(135,325),(305,326),(377,326),(544,326),(307,327),(350,328),(383,329),(350,330),(533,330),(279,331),(313,331),(497,331),(544,331),(574,331),(134,332),(349,333),(504,333),(62,334),(134,334),(298,334),(220,335),(305,335),(360,335),(435,335),(570,335),(402,336),(408,337),(362,338),(5,339),(55,339),(158,339),(242,339),(247,339),(317,339),(319,339),(407,339),(432,339),(451,339),(464,339),(482,339),(539,339),(574,339),(504,340),(118,341),(345,341),(526,341),(408,342),(320,343),(248,344),(279,344),(574,344),(181,345),(279,345),(313,345),(497,345),(564,345),(34,346),(51,346),(118,346),(279,346),(345,346),(377,346),(504,346),(505,346),(526,346),(544,346),(574,346),(322,347),(279,348),(582,348),(224,349),(124,350),(279,350),(281,350),(544,350),(0,351),(34,351),(279,351),(305,351),(360,351),(377,351),(504,351),(544,351),(574,351),(62,352),(473,352),(504,353),(326,354),(188,355),(220,355),(570,355),(408,356),(188,357),(220,357),(570,357),(118,358),(345,358),(526,358),(332,359),(188,360),(220,360),(570,360),(34,361),(51,361),(66,361),(212,362),(350,362),(464,362),(533,362),(118,363),(0,364),(51,364),(360,364),(377,364),(504,364),(544,364),(574,364),(337,365),(34,366),(248,366),(275,366),(134,367),(343,368),(230,369),(58,370),(0,371),(311,372),(408,372),(574,372),(163,373),(408,373),(572,373),(346,374),(188,375),(220,375),(570,375),(156,376),(279,377),(114,378),(224,379),(352,380),(353,381),(343,382),(355,383),(12,384),(110,384),(187,384),(200,384),(259,384),(497,384),(504,384),(539,384),(587,384),(349,385),(504,386),(357,387),(479,388),(358,389),(457,390),(116,391),(186,391),(360,391),(586,391),(255,392),(340,392),(480,392),(281,393),(361,394),(5,395),(317,395),(350,395),(388,395),(407,395),(451,395),(464,395),(497,396),(507,396),(362,397),(386,398),(554,398),(572,398),(124,399),(279,399),(305,399),(345,399),(360,399),(388,399),(413,399),(435,399),(526,399),(574,399),(574,400),(198,401),(275,401),(365,401),(579,401),(365,402),(574,402),(220,403),(570,403),(91,404),(159,404),(323,404),(368,404),(542,405),(129,406),(372,407),(51,408),(108,408),(124,408),(202,408),(220,408),(279,408),(286,408),(295,408),(305,408),(360,408),(373,408),(377,408),(386,408),(388,408),(497,408),(504,408),(544,408),(570,408),(574,408),(582,408),(118,409),(345,409),(526,409),(376,410),(39,411),(127,411),(130,411),(200,411),(382,411),(485,411),(497,411),(507,411),(0,412),(251,413),(331,414),(279,415),(568,416),(153,417),(383,418),(432,419),(331,420),(479,420),(38,421),(52,421),(118,422),(345,422),(526,422),(472,423),(27,424),(66,424),(265,424),(386,424),(554,424),(224,425),(376,426),(279,427),(188,428),(62,429),(187,429),(233,429),(242,429),(319,429),(339,429),(420,429),(430,429),(485,429),(497,429),(539,429),(546,430),(150,431),(42,432),(114,432),(574,432),(279,433),(574,433),(279,434),(397,435),(402,436),(405,437),(574,438),(98,439),(317,439),(567,439),(265,440),(410,441),(188,442),(220,442),(570,442),(412,443),(414,444),(134,445),(298,445),(314,445),(370,445),(397,445),(419,445),(473,445),(62,446),(95,446),(134,446),(497,447),(425,448),(385,449),(497,449),(386,450),(554,450),(386,451),(554,451),(403,452),(413,452),(472,452),(543,452),(427,453),(466,454),(544,454),(504,455),(124,456),(279,456),(388,456),(130,457),(115,458),(576,459),(565,460),(108,461),(265,461),(373,461),(382,461),(498,461),(38,462),(52,462),(433,463),(434,464),(0,465),(27,465),(345,465),(504,465),(526,465),(481,466),(437,467),(438,468),(409,469),(497,469),(311,470),(0,471),(188,472),(220,472),(570,472),(345,473),(526,473),(479,474),(129,475),(118,476),(123,476),(279,476),(345,476),(349,476),(526,476),(574,476),(442,477),(574,478),(350,479),(533,479),(574,479),(178,480),(446,481),(62,482),(450,483),(0,484),(42,484),(55,484),(64,484),(123,484),(279,484),(466,484),(469,484),(497,484),(574,484),(350,485),(533,485),(408,486),(574,487),(168,488),(454,489),(455,490),(345,491),(526,491),(458,492),(472,493),(298,494),(314,494),(370,494),(397,494),(419,494),(473,494),(118,495),(408,496),(408,497),(463,498),(408,499),(114,500),(247,500),(279,500),(497,500),(507,500),(574,500),(279,501),(504,502),(467,503),(279,504),(153,505),(504,505),(505,505),(134,506),(223,506),(474,506),(349,507),(419,508),(339,509),(587,509),(478,510),(114,511),(114,512),(481,513),(118,514),(345,514),(526,514),(137,515),(350,516),(484,517),(554,518),(28,519),(163,519),(497,519),(279,520),(188,521),(574,522),(87,523),(487,524),(275,525),(574,525),(488,526),(489,527),(491,528),(305,529),(360,529),(494,530),(477,531),(574,531),(12,532),(18,532),(25,532),(28,532),(39,532),(50,532),(74,532),(99,532),(102,532),(113,532),(127,532),(130,532),(169,532),(181,532),(200,532),(202,532),(212,532),(233,532),(251,532),(277,532),(292,532),(313,532),(339,532),(340,532),(379,532),(382,532),(385,532),(409,532),(453,532),(469,532),(470,532),(480,532),(485,532),(497,532),(498,532),(507,532),(564,532),(587,532),(589,532),(74,533),(499,533),(500,534),(87,535),(502,535),(224,536),(153,537),(186,537),(305,537),(360,537),(504,537),(99,538),(497,538),(281,539),(69,540),(314,540),(408,541),(377,542),(544,542),(72,543),(521,543),(118,544),(219,545),(281,545),(386,546),(554,546),(118,547),(345,547),(526,547),(74,548),(251,548),(349,548),(504,548),(188,549),(504,550),(524,551),(54,552),(118,552),(525,553),(528,554),(180,555),(408,556),(532,557),(5,558),(219,558),(281,558),(408,559),(75,560),(224,561),(224,562),(311,563),(574,564),(86,565),(536,566),(68,567),(426,567),(533,567),(574,567),(123,568),(279,568),(574,568),(355,569),(281,570),(540,571),(541,572),(0,573),(504,573),(7,574),(546,575),(547,576),(118,577),(281,577),(286,577),(345,577),(479,577),(526,577),(504,578),(66,579),(340,580),(497,580),(451,581),(295,582),(551,583),(504,584),(265,585),(122,586),(311,587),(553,588),(279,589),(199,590),(386,590),(554,590),(554,591),(292,592),(248,593),(555,594),(118,595),(345,595),(526,595),(224,596),(558,597),(563,598),(565,599),(566,600),(279,601),(570,602),(25,603),(571,604),(572,605),(574,606),(66,607),(573,608),(469,609),(497,609),(574,609),(34,610),(51,610),(66,610),(74,610),(251,610),(504,610),(42,611),(279,611),(360,611),(574,611),(582,611),(135,612),(577,613),(188,614),(220,614),(570,614),(580,615),(574,616),(579,616),(279,617),(574,617),(279,618),(435,618),(279,619),(582,619),(114,620),(265,621),(373,621),(382,621),(498,621),(130,622),(323,622),(331,622),(350,622),(385,622),(479,622),(533,622),(504,623),(505,623),(350,624),(533,624),(574,624),(544,625),(118,626),(345,626),(526,626),(592,627),(61,628),(255,628),(304,628),(460,628),(467,628),(504,628),(505,628),(517,628),(27,629),(198,629),(275,629),(365,629),(377,629),(544,629),(579,629),(408,630),(118,631),(27,632),(181,632),(379,632),(497,632),(591,633),(198,634),(20,635),(16,636),(158,636),(497,636),(497,637),(589,637),(360,638),(504,638),(123,639),(66,640),(279,640),(574,640),(574,641),(114,642),(28,643),(39,643),(159,643),(163,643),(408,643),(279,644); /*!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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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,'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 [PARTITION (partition_names)] \n [[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\nA table reference (when it refers to a partitioned table) may contain a\nPARTITION option, including a comma-separated list of partitions,\nsubpartitions, or both. This option follows the name of the table and\nprecedes any alias declaration. The effect of this option is that rows\nare selected only from the listed partitions or subpartitions---in\nother words, any partitions or subpartitions not named in the list are\nignored For more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html.\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.7/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.7/en/index-hints.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/join.html'),(1,'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.7/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.7/en/string-functions.html'),(2,'CONTAINS',31,'Contains(g1,g2)\n\nMBRContains() and Contains() are synonyms. For more information, see\nthe description of MBRContains().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(3,'SRID',37,'SRID(g)\n\nST_SRID() and SRID() are synonyms. For more information, see the\ndescription of ST_SRID().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(4,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(5,'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.7/en/drop-server.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-server.html'),(6,'ST_GEOMETRYN',26,'ST_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.7/en/gis-geometrycollection-property-functions.html\n\n','mysql> SET @gc = \'GeometryCollection(Point(1 1),LineString(2 2, 3 3))\';\nmysql> SELECT ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1));\n+-------------------------------------------------+\n| ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1)) |\n+-------------------------------------------------+\n| POINT(1 1) |\n+-------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html'),(7,'ST_GEOMCOLLFROMWKB',33,'ST_GeomCollFromWKB(wkb[,srid]),\nST_GeometryCollectionFromWKB(wkb[,srid])\n\nConstructs a GeometryCollection value using its WKB representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(8,'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 nonbinary string form.\n\nCONCAT() returns NULL if any argument is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/string-functions.html'),(9,'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.7/en/gis-geometry-class-hierarchy.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-geometry-class-hierarchy.html'),(10,'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.7/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.7/en/string-functions.html'),(11,'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.7/en/show-create-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-create-trigger.html'),(12,'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.7/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.7/en/show-create-procedure.html'),(13,'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.7/en/cursors.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/open.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/open.html'),(14,'ST_INTERSECTS',31,'ST_Intersects(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 spatially intersects g2.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(15,'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\nFor Unicode character sets, LOWER() and UPPER() work accounting to\nUnicode Collation Algorithm (UCA) 5.2.0 for xxx_unicode_520_ci\ncollations and for language-specific collations that are derived from\nthem. For other Unicode collations, LOWER() and UPPER() work accounting\nto Unicode Collation Algorithm (UCA) 4.0.0. See\nhttp://dev.mysql.com/doc/refman/5.7/en/charset-unicode-sets.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(16,'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_order]\n trigger_body\n\ntrigger_time: { BEFORE | AFTER }\n\ntrigger_event: { INSERT | UPDATE | DELETE }\n\ntrigger_order: { FOLLOWS | PRECEDES } other_trigger_name\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.7/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.7/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.7/en/create-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-trigger.html'),(17,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT MONTH(\'2008-02-03\');\n -> 2\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(18,'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.7/en/extended-show.html.\n\nFor the trigger ins_sum as defined in\nhttp://dev.mysql.com/doc/refman/5.7/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: 2013-07-09 10:39:34.96\n sql_mode: NO_ENGINE_SUBSTITUTION\n Definer: me@localhost\ncharacter_set_client: utf8\ncollation_connection: utf8_general_ci\n Database Collation: latin1_swedish_ci\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-triggers.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-triggers.html'),(19,'ISCLOSED',13,'IsClosed(ls)\n\nST_IsClosed() and IsClosed() are synonyms. For more information, see\nthe description of ST_IsClosed().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(20,'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.7/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.7/en/regexp.html'),(21,'ST_POINTN',13,'ST_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.7/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_AsText(ST_PointN(ST_GeomFromText(@ls),2));\n+----------------------------------------------+\n| ST_AsText(ST_PointN(ST_GeomFromText(@ls),2)) |\n+----------------------------------------------+\n| POINT(2 2) |\n+----------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(22,'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.7/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.7/en/if.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/if.html'),(23,'VALIDATE_PASSWORD_STRENGTH',12,'Syntax:\nVALIDATE_PASSWORD_STRENGTH(str)\n\nGiven an argument representing a cleartext password, this function\nreturns an integer to indicate how strong the password is. The return\nvalue ranges from 0 (weak) to 100 (strong).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(24,'WITHIN',31,'Within(g1,g2)\n\nMBRWithin() and Within() are synonyms. For more information, see the\ndescription of MBRWithin().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(25,'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.7/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.7/en/show-plugins.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-plugins.html'),(26,'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.7/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.7/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.7/en/user-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/prepare.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/prepare.html'),(27,'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.7/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.7/en/lock-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/lock-tables.html'),(28,'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.7/en/show-binary-logs.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-binary-logs.html'),(29,'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.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(30,'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.7/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.7/en/date-and-time-functions.html'),(31,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(32,'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.7/en/information-functions.html\n\n','mysql> SELECT CONNECTION_ID();\n -> 23786\n','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(33,'FROM_BASE64()',38,'Syntax:\nFROM_BASE64(str)\n\nTakes a string encoded with the base-64 encoded rules used by\nTO_BASE64() and returns the decoded result as a binary string. The\nresult is NULL if the argument is NULL or not a valid base-64 string.\nSee the description of TO_BASE64() for details about the encoding and\ndecoding rules.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','mysql> SELECT TO_BASE64(\'abc\'), FROM_BASE64(TO_BASE64(\'abc\'));\n -> \'JWJj\', \'abc\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(34,'DELETE',28,'Syntax:\nDELETE is a DML statement that removes rows from a table.\n\nSingle-Table Syntax\n\nDELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name\n [PARTITION (partition_name,...)]\n [WHERE where_condition]\n [ORDER BY ...]\n [LIMIT row_count]\n\nThe DELETE statement deletes rows from tbl_name and returns the number\nof deleted rows. To check the number of deleted rows, call the\nROW_COUNT() function described in\nhttp://dev.mysql.com/doc/refman/5.7/en/information-functions.html.\n\nMain Clauses\n\nThe conditions in the optional WHERE clause identify which rows to\ndelete. With no WHERE clause, all rows are deleted.\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.7/en/select.html.\n\nIf the ORDER BY clause is specified, the rows are deleted in the order\nthat is specified. The LIMIT clause places a limit on the number of\nrows that can be deleted. These clauses apply to single-table deletes,\nbut not multi-table deletes.\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\nPrivileges\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\nPerformance\n\nWhen you do not need to know the number of deleted rows, the TRUNCATE\nTABLE statement is a faster way to empty a table than a DELETE\nstatement with no WHERE clause. Unlike DELETE, TRUNCATE TABLE cannot be\nused within a transaction or if you have a lock on the table. See [HELP\nTRUNCATE TABLE] and [HELP LOCK].\n\nThe speed of delete operations may also be affected by factors\ndiscussed in http://dev.mysql.com/doc/refman/5.7/en/delete-speed.html.\n\nTo ensure that a given DELETE statement does not take too much time,\nthe MySQL-specific LIMIT row_count clause for DELETE specifies the\nmaximum number of rows to be deleted. If the number of rows to delete\nis larger than the limit, repeat the DELETE statement until the number\nof affected rows is less than the LIMIT value.\n\nSubqueries\n\nCurrently, you cannot delete from a table and select from the same\ntable in a subquery.\n\nPartitioned Tables\n\nDELETE supports explicit partition selection using the PARTITION\noption, which takes a comma-separated list of the names of one or more\npartitions or subpartitions (or both) from which to select rows to be\ndropped. Partitions not included in the list are ignored. Given a\npartitioned table t with a partition named p0, executing the statement\nDELETE FROM t PARTITION (p0) has the same effect on the table as\nexecuting ALTER TABLE t TRUNCATE PARTITION (p0); in both cases, all\nrows in partition p0 are dropped.\n\nPARTITION can be used along with a WHERE condition, in which case the\ncondition is tested only on rows in the listed partitions. For example,\nDELETE FROM t PARTITION (p0) WHERE c < 5 deletes rows only from\npartition p0 for which the condition c < 5 is true; rows in any other\npartitions are not checked and thus not affected by the DELETE.\n\nThe PARTITION option can also be used in multiple-table DELETE\nstatements. You can use up to one such option per table named in the\nFROM option.\n\nSee http://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html,\nfor more information and examples.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/delete.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/delete.html'),(35,'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.7/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.7/en/close.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/close.html'),(36,'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.7/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.7/en/string-functions.html'),(37,'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.7/en/use.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/use.html'),(38,'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.7/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.7/en/control-flow-functions.html'),(39,'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\\G\n*************************** 1. row ***************************\n File: master-bin.000002\n Position: 1307\n Binlog_Do_DB: test\n Binlog_Ignore_DB: manual, mysql\nExecuted_Gtid_Set: 3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5\n1 row in set (0.00 sec)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-master-status.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-master-status.html'),(40,'TO_SECONDS',32,'Syntax:\nTO_SECONDS(expr)\n\nGiven a date or datetime expr, returns the number of seconds since the\nyear 0. If expr is not a valid date or datetime value, returns NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(41,'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.7/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.7/en/date-and-time-functions.html'),(42,'SPATIAL',35,'For MyISAM and (as of MySQL 5.7.5) InnoDB tables, MySQL can create\nspatial indexes using syntax similar to that for creating regular\nindexes, but using the SPATIAL keyword. Columns in spatial indexes must\nbe declared NOT NULL. The following examples demonstrate how to create\nspatial 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.7/en/creating-spatial-indexes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/creating-spatial-indexes.html'),(43,'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.7/en/string-functions.html\n\n','mysql> SELECT REVERSE(\'abc\');\n -> \'cba\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(44,'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.7/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.7/en/comparison-operators.html'),(45,'ST_STARTPOINT',13,'ST_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.7/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_AsText(ST_StartPoint(ST_GeomFromText(@ls)));\n+------------------------------------------------+\n| ST_AsText(ST_StartPoint(ST_GeomFromText(@ls))) |\n+------------------------------------------------+\n| POINT(1 1) |\n+------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(46,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(47,'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.7/en/storage-requirements.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/blob.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/blob.html'),(48,'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.7/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.7/en/information-functions.html'),(49,'<=',20,'Syntax:\n<=\n\nLess than or equal:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html\n\n','mysql> SELECT 0.1 <= 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(50,'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\n*Note*: These statements are deprecated and will be removed in a future\nMySQL release. Use the Performance Schema instead; see\nhttp://dev.mysql.com/doc/refman/5.7/en/performance-schema.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-profiles.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-profiles.html'),(51,'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\nFor partitioned tables, both the single-single and multiple-table forms\nof this statement support the use of a PARTITION option as part of a\ntable reference. This option takes a list of one or more partitions or\nsubpartitions (or both). Only the partitions (or subpartitions) listed\nare checked for matches, and a row that is not in any of these\npartitions or subpartitions is not updated, whether it satisfies the\nwhere_condition or not.\n\n*Note*: Unlike the case when using PARTITION with an INSERT or REPLACE\nstatement, an otherwise valid UPDATE ... PARTITION statement is\nconsidered successful even if no rows in the listed partitions (or\nsubpartitions) match the where_condition.\n\nSee http://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html,\nfor more information and examples.\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.7/en/expressions.html.\n\ntable_references and where_condition are specified as described in\nhttp://dev.mysql.com/doc/refman/5.7/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. For more information, see\n http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#ignore-strict-co\n mparison.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/update.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/update.html'),(52,'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.7/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.7/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.7/en/case.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/case.html'),(53,'ST_SIMPLIFY',7,'ST_Simplify(g, max_distance)\n\nSimplifies a geometry using the Douglas-Peucker algorithm and returns a\nsimplified value of the same type, or NULL if any argument is NULL.\n\nThe geometry may be any geometry type, although the Douglas-Peucker\nalgorithm may not actually process every type. A geometry collection is\nprocessed by giving its components one by one to the simplification\nalgorithm, and the returned geometries are put into a geometry\ncollection as result.\n\nThe max_distance argument is the distance (in units of the input\ncoordinates) of a vertex to other segments to be removed. Vertices\nwithin this distance of the simplified linestring are removed. An\nER_WRONG_ARGUMENTS error occurs if the max_distance argument is not\npositive, or is NaN.\n\nAccording to Boost.Geometry, geometries might become invalid as a\nresult of the simplification process, and the process might create\nself-intersections. If you want to check the validity of the result,\npass it to ST_IsValid().\n\nAn ER_GIS_INVALID_DATA error occurs if the geometry argument is not a\nvalid geometry byte string.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html\n\n','mysql> SET @g = ST_GeomFromText(\'LINESTRING(0 0,0 1,1 1,1 2,2 2,2 3,3 3)\');\nmysql> SELECT ST_AsText(ST_Simplify(@g, 0.5));\n+---------------------------------+\n| ST_AsText(ST_Simplify(@g, 0.5)) |\n+---------------------------------+\n| LINESTRING(0 0,0 1,1 1,2 3,3 3) |\n+---------------------------------+\nmysql> SELECT ST_AsText(ST_Simplify(@g, 1.0));\n+---------------------------------+\n| ST_AsText(ST_Simplify(@g, 1.0)) |\n+---------------------------------+\n| LINESTRING(0 0,3 3) |\n+---------------------------------+\nmysql> SELECT ST_AsText(ST_Simplify(@g));\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html'),(54,'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.7/en/execute.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/execute.html'),(55,'DROP INDEX',40,'Syntax:\nDROP INDEX index_name ON tbl_name\n [algorithm_option | lock_option] ...\n\nalgorithm_option:\n ALGORITHM [=] {DEFAULT|INPLACE|COPY}\n\nlock_option:\n LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}\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.7/en/drop-index.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-index.html'),(56,'ABS',3,'Syntax:\nABS(X)\n\nReturns the absolute value of X.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(57,'IS_IPV4',14,'Syntax:\nIS_IPV4(expr)\n\nReturns 1 if the argument is a valid IPv4 address specified as a\nstring, 0 otherwise.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT IS_IPV4(\'10.0.5.9\'), IS_IPV4(\'10.0.5.256\');\n -> 1, 0\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(58,'POLYFROMWKB',33,'PolyFromWKB(wkb[,srid]), PolygonFromWKB(wkb[,srid])\n\nST_PolyFromWKB(), ST_PolygonFromWKB(), PolyFromWKB(), and\nPolygonFromWKB() are synonyms. For more information, see the\ndescription of ST_PolyFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(59,'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.7/en/string-comparison-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-comparison-functions.html'),(60,'SPACE',38,'Syntax:\nSPACE(N)\n\nReturns a string consisting of N space characters.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','mysql> SELECT SPACE(6);\n -> \' \'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(61,'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.7/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.7/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.7/en/group-by-functions.html'),(62,'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.7/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.7/en/mysql-upgrade.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/create-function-udf.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-function-udf.html'),(63,'TIMESTAMP',23,'TIMESTAMP[(fsp)]\n\nA timestamp. The range is \'1970-01-01 00:00:01.000000\' UTC to\n\'2038-01-19 03:14:07.999999\' UTC. TIMESTAMP values are stored as the\nnumber of seconds since the epoch (\'1970-01-01 00:00:00\' UTC). A\nTIMESTAMP cannot represent the value \'1970-01-01 00:00:00\' because that\nis equivalent to 0 seconds from the epoch and the value 0 is reserved\nfor representing \'0000-00-00 00:00:00\', the \"zero\" TIMESTAMP value.\n\nAn optional fsp value in the range from 0 to 6 may be given to specify\nfractional seconds precision. A value of 0 signifies that there is no\nfractional part. If omitted, the default precision is 0.\n\nThe way the server handles TIMESTAMP definitions depends on the value\nof the explicit_defaults_for_timestamp system variable (see\nhttp://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html).\nBy default, explicit_defaults_for_timestamp is disabled and the server\nhandles TIMESTAMP as follows:\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.\n\nAutomatic initialization and updating to the current date and time can\nbe specified using DEFAULT CURRENT_TIMESTAMP and ON UPDATE\nCURRENT_TIMESTAMP column definition clauses. By default, the first\nTIMESTAMP column has these properties, as previously noted. However,\nany TIMESTAMP column in a table can be defined to have these\nproperties.\n\nIf explicit_defaults_for_timestamp is enabled, there is no automatic\nassignment of the DEFAULT CURRENT_TIMESTAMP or ON UPDATE\nCURRENT_TIMESTAMP attributes to any TIMESTAMP column. They must be\nincluded explicitly in the column definition. Also, any TIMESTAMP not\nexplicitly declared as NOT NULL permits NULL values.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html'),(64,'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.7/en/cache-index.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/cache-index.html'),(65,'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.7/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.7/en/encryption-functions.html'),(66,'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.7/en/handler.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/handler.html'),(67,'HELP_DATE',9,'This help information was generated from the MySQL 5.7 Reference Manual\non: 2015-07-20\n','',''),(68,'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.7/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.7/en/rename-table.html'),(69,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(70,'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.7/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.7/en/mathematical-functions.html'),(71,'ST_GEOMETRYTYPE',37,'ST_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.7/en/gis-general-property-functions.html\n\n','mysql> SELECT ST_GeometryType(ST_GeomFromText(\'POINT(1 1)\'));\n+------------------------------------------------+\n| ST_GeometryType(ST_GeomFromText(\'POINT(1 1)\')) |\n+------------------------------------------------+\n| POINT |\n+------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(72,'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.7/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.7/en/help.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/help.html'),(73,'UCASE',38,'Syntax:\nUCASE(str)\n\nUCASE() is a synonym for UPPER().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(74,'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.7/en/show-binlog-events.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-binlog-events.html'),(75,'MPOLYFROMWKB',33,'MPolyFromWKB(wkb[,srid]), MultiPolygonFromWKB(wkb[,srid])\n\nST_MPolyFromWKB(), ST_MultiPolygonFromWKB(), MPolyFromWKB(), and\nMultiPolygonFromWKB() are synonyms. For more information, see the\ndescription of ST_MPolyFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(76,'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.7/en/iterate.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/iterate.html'),(77,'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\nAs of MySQL 5.7.8, DO statement errors that previously were converted\nto warnings are returned as errors.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/do.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/do.html'),(78,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(79,'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.7/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html'),(80,'ST_ASTEXT',33,'ST_AsText(g), ST_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.7/en/gis-format-conversion-functions.html\n\n','mysql> SET @g = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_AsText(ST_GeomFromText(@g));\n+--------------------------------+\n| ST_AsText(ST_GeomFromText(@g)) |\n+--------------------------------+\n| LINESTRING(1 1,2 2,3 3) |\n+--------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html'),(81,'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.\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.7/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.7/en/xml-functions.html'),(82,'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.7 MySQL server without locking them\nout. See http://dev.mysql.com/doc/refman/5.7/en/password-hashing.html.\n\nThe return value is a nonbinary string in the connection character set.\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. Pre-4.1 passwords are deprecated and support for them is\nremoved in MySQL 5.7.5. Consequently, OLD_PASSWORD() is deprecated and\nis removed in MySQL 5.7.5.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(83,'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.7/en/locale-support.html). If no\nlocale is specified, the default is \'en_US\'.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/string-functions.html'),(84,'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.7/en/string-functions.html\n\n','mysql> SELECT BIT_LENGTH(\'text\');\n -> 32\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(85,'EXTERIORRING',2,'ExteriorRing(poly)\n\nST_ExteriorRing() and ExteriorRing() are synonyms. For more\ninformation, see the description of ST_ExteriorRing().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(86,'GEOMFROMWKB',33,'GeomFromWKB(wkb[,srid]), GeometryFromWKB(wkb[,srid])\n\nST_GeomFromWKB(), ST_GeometryFromWKB(), GeomFromWKB(), and\nGeometryFromWKB() are synonyms. For more information, see the\ndescription of ST_GeomFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(87,'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.7/en/type-conversion.html, but\napplied to all the three arguments.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(88,'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.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(89,'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.7/en/string-functions.html\n\n','mysql> SELECT LEFT(\'foobarbar\', 5);\n -> \'fooba\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(90,'ST_ISCLOSED',13,'ST_IsClosed(ls)\n\nFor a LineString value ls, ST_IsClosed() returns 1 if ls is closed\n(that is, its ST_StartPoint() and ST_EndPoint() values are the same)\nand is simple (does not pass through the same point more than once).\n\nFor a MultiLineString value ls, ST_IsClosed() returns 1 if ls is closed\n(that is, the ST_StartPoint() and ST_EndPoint() values are the same for\neach LineString in ls).\n\nST_IsClosed() returns 0 if ls is not closed, and NULL if ls is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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 ST_IsClosed(ST_GeomFromText(@ls1));\n+------------------------------------+\n| ST_IsClosed(ST_GeomFromText(@ls1)) |\n+------------------------------------+\n| 0 |\n+------------------------------------+\n\nmysql> SELECT ST_IsClosed(ST_GeomFromText(@ls2));\n+------------------------------------+\n| ST_IsClosed(ST_GeomFromText(@ls2)) |\n+------------------------------------+\n| 1 |\n+------------------------------------+\n\nmysql> SET @ls3 = \'MultiLineString((1 1,2 2,3 3),(4 4,5 5))\';\n\nmysql> SELECT ST_IsClosed(ST_GeomFromText(@ls3));\n+------------------------------------+\n| ST_IsClosed(ST_GeomFromText(@ls3)) |\n+------------------------------------+\n| 0 |\n+------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(91,'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.7/en/query-cache-status-and-maintenance.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/query-cache-status-and-maintenance.html'),(92,'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.7/en/limits-frm-file.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(93,'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.7/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.7/en/mathematical-functions.html'),(94,'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.7/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.7/en/string-functions.html'),(95,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(96,'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.7/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.7/en/string-functions.html'),(97,'ST_LONGFROMGEOHASH',7,'ST_LongFromGeoHash(geohash_str)\n\nReturns the longitude from a geohash string value, as a DOUBLE value in\nthe range [−180, 180]. The result is NULL if any argument is NULL. An\nerror occurs if the argument is invalid.\n\nThe remarks in the description of ST_LatFromGeoHash() regarding the\nmaximum number of characters processed from the geohash_str argument\nalso apply to ST_LongFromGeoHash().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html\n\n','mysql> SELECT ST_LongFromGeoHash(ST_GeoHash(45,-20,10));\n+-------------------------------------------+\n| ST_LongFromGeoHash(ST_GeoHash(45,-20,10)) |\n+-------------------------------------------+\n| 45 |\n+-------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html'),(98,'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.7/en/alter-view.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-view.html'),(99,'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.7/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.7/en/show-databases.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-databases.html'),(100,'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.7/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.7/en/date-and-time-functions.html'),(101,'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.7/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.7/en/string-functions.html'),(102,'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.7/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-events.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-events.html'),(103,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(104,'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.7/en/kill.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/kill.html'),(105,'DISJOINT',31,'Disjoint(g1,g2)\n\nMBRDisjoint() and Disjoint() are synonyms. For more information, see\nthe description of MBRDisjoint().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(106,'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.7/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.7/en/string-functions.html'),(107,'OVERLAPS',31,'Overlaps(g1,g2)\n\nMBROverlaps() and Overlaps() are synonyms. For more information, see\nthe description of MBROverlaps().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(108,'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.7/en/set-global-sql-slave-skip-counter.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/set-global-sql-slave-skip-counter.html'),(109,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(110,'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.7/en/procedure-analyse.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/procedure-analyse.html'),(111,'HELP_VERSION',9,'This help information was generated from the MySQL 5.7 Reference Manual\non: 2015-07-20 (revision: 44024)\n\nThis information applies to MySQL 5.7 through 5.7.9.\n','',''),(112,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(113,'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.7/en/show-privileges.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-privileges.html'),(114,'CREATE TABLESPACE',40,'Syntax:\nCREATE TABLESPACE tablespace_name\n ADD DATAFILE \'file_name\'\n [FILE_BLOCK_SIZE = value]\n [ENGINE [=] engine_name]\n\nThis statement is used to create an InnoDB tablespace. An InnoDB\ntablespace created using CREATE TABLESPACE is referred to as general\ntablespace.\n\nA general tablespace is a shared tablespace, similar to the system\ntablespace. It can hold multiple tables, and supports all table row\nformats. General tablespaces can also be created in a location relative\nto or independent of the MySQL data directory.\n\nAfter creating an InnoDB general tablespace, you can use CREATE TABLE\ntbl_name ... TABLESPACE [=] tablespace_name or ALTER TABLE tbl_name\nTABLESPACE [=] tablespace_name to add tables to the tablespace.\n\nFor more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/general-tablespaces.html.\n\nCREATE TABLESPACE is supported with InnoDB as of MySQL 5.7.6. In\nearlier releases, CREATE TABLESPACE supports NDB\n(http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html), which is\nthe MySQL Cluster storage engine. CREATE TABLESPACE will support NDB\n(http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html) in MySQL\n5.7 when MySQL Cluster is branched from the MyQL 5.7 code base. The\nlatest version of MySQL Cluster is based on MySQL 5.6.\n\nOptions\n\no ADD DATAFILE: Defines the name of the tablespace data file. A data\n file must be specified with the CREATE TABLESPACE statement, and the\n data file name must have a .ibd extension. An InnoDB general\n tablespace only supports a single data file.\n\n To place the data file in a location outside of the MySQL data\n directory (DATADIR), include an absolute directory path or a path\n relative to the MySQL data directory. If you do not specify a path,\n the general tablespace is created in the MySQL data directory. As of\n MySQL 5.7.8, an isl file is created in the MySQL data directory when\n a general tablespace is created outside of the MySQL data directory.\n\n To avoid conflicts with implicitly created file-per-table\n tablespaces, creating a general tablespace in a subdirectory under\n the MySQL data directory is not supported. Also, when creating a\n general tablespace outside of the MySQL data directory, the directory\n must exist prior to creating the tablespace.\n\n The file_name, including the path (optional), must be quoted with\n single or double quotations marks. File names (not counting the\n \".ibd\" extension) and directory names must be at least one byte in\n length. Zero length file names and directory names are not supported.\n\no FILE_BLOCK_SIZE: Defines the block size of the tablespace data file.\n If you do not specify this option, FILE_BLOCK_SIZE defaults to\n innodb_page_size. The FILE_BLOCK_SIZE setting is only required if you\n will use the tablespace to store compressed InnoDB tables\n (ROW_FORMAT=COMPRESSED). In this case, you must define the tablespace\n FILE_BLOCK_SIZE when creating the tablespace.\n\n If FILE_BLOCK_SIZE is equal innodb_page_size, the tablespace can only\n contain tables with an uncompressed row format (COMPACT, REDUNDANT,\n and DYNAMIC row formats). Tables with a COMPRESSED row format have a\n different physical page size than uncompressed tables. Therefore,\n compressed tables cannot coexist in the same tablespace as\n uncompressed tables.\n\n For a general tablespace to contain compressed tables,\n FILE_BLOCK_SIZE must be specified, and the FILE_BLOCK_SIZE value must\n be a valid compressed page size in relation to the innodb_page_size\n value. Also, the physical page size of the compressed table\n (KEY_BLOCK_SIZE) must be equal to FILE_BLOCK_SIZE/1024. For example,\n if innodb_page_size=16K, and FILE_BLOCK_SIZE=8K, the KEY_BLOCK_SIZE\n of the table must be 8. For more information, see\n http://dev.mysql.com/doc/refman/5.7/en/general-tablespaces.html.\n\no ENGINE: Defines the storage engine which uses the tablespace, where\n engine_name is the name of the storage engine. Currently, only the\n InnoDB storage engine is supported. ENGINE = InnoDB must be defined\n as part of the CREATE TABLESPACE statement or InnoDB must be defined\n as the default storage engine (default_storage_engine=InnoDB).\n\nNotes\n\no tablespace_name is a case-sensitive identifier for the tablespace. It\n may be quoted or unquoted. The forward slash character (\"/\") is not\n permitted. Names beginning with innodb_ are either not permitted or\n are reserved for special use.\n\no Creation of temporary general tablespaces is not supported.\n\no General tablespaces do not support temporary tables.\n\no As of MySQL 5.7.8, the TABLESPACE option may be used with CREATE\n TABLE or ALTER TABLE to assign InnoDB table partitions or\n subpartitions to a general tablespace, a separate file-per-table\n tablespace, or the system tablespace. TABLESPACE option support for\n table partitions and subpartitions was added in MySQL 5.7.8. All\n partitions must belong to the same storage engine. For more\n information, see\n http://dev.mysql.com/doc/refman/5.7/en/general-tablespaces.html.\n\no innodb_file_per_table, innodb_file_format, and innodb_file_format_max\n settings have no influence on CREATE TABLESPACE operations.\n innodb_file_per_table does not need to be enabled. General\n tablespaces support all table row formats regardless of file format\n settings. Likewise, general tablespaces support the addition of\n tables of any row format using CREATE TABLE ... TABLESPACE,\n regardless of file format settings.\n\no innodb_strict_mode is not applicable to general tablespaces.\n Tablespace management rules are strictly enforced independently of\n innodb_strict_mode. If CREATE TABLESPACE parameters are incorrect or\n incompatible, the operation fails regardless of the\n innodb_strict_mode setting. When a table is added to a general\n tablespace using CREATE TABLE ... TABLESPACE or ALTER TABLE ...\n TABLESPACE, innodb_strict_mode is ignored but the statement is\n evaluated as if innodb_strict_mode is enabled.\n\no Use DROP TABLESPACE to remove a general tablespace. All tables must\n be dropped from a general tablespace using DROP TABLE prior to\n dropping the tablespace.\n\no All parts of a table added to a general tablespace reside in the\n general tablespace, including indexes and BLOB pages.\n\no Similar to the system tablespace, truncating or dropping tables\n stored in a general tablespace creates free space internally in the\n general tablespace .ibd data file which can only be used for new\n InnoDB data. Space is not released back to the operating system as it\n is for file-per-table tablespaces.\n\no A general tablespace is not associated with any database or schema.\n\no ALTER TABLE ... DISCARD TABLESPACE and ALTER TABLE ...IMPORT\n TABLESPACE are not supported for tables that belong to a general\n tablespace.\n\no The server uses tablespace-level metadata locking for DDL that\n references general tablespaces. By comparison, the server uses\n table-level metadata locking for DDL that references file-per-table\n tablespaces.\n\no A generated or existing tablespace cannot be changed to a general\n tablespace.\n\no Tables stored in a general tablespace can only be opened in MySQL\n 5.7.6 or later due to the addition of new table flags.\n\no There is no conflict between general tablespace names and\n file-per-table tablespace names. The \"/\" character, which is present\n in file-per-table tablespace names, is not permitted in general\n tablespace names.\n\no General tablespaces created on Windows using a relative data file\n path cannot be opened on Unix-like systems. This limitation is\n removed in MySQL 5.7.8 (Bug #20555168).\n\no In MySQL 5.7.6 and MySQL 5.7.7, tables stored in general tablespaces\n may not open (due to a missing general tablespace file) after moving\n the MySQL data directory to a new location. This limitation is\n addressed in MySQL 5.7.8 with the introduction of isl files for\n general tablespaces created outside of the MySQL data directory (Bug\n #20563954).\n\nExamples\n\nThis example demonstrates creating a general tablespace and adding\nthree uncompressed tables of different row formats.\n\nmysql> CREATE TABLESPACE `ts1` ADD DATAFILE \'ts1.ibd\' Engine=InnoDB;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> CREATE TABLE t1 (c1 INT PRIMARY KEY) TABLESPACE ts1 ROW_FORMAT=REDUNDANT;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> CREATE TABLE t2 (c1 INT PRIMARY KEY) TABLESPACE ts1 ROW_FORMAT=COMPACT;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql> CREATE TABLE t3 (c1 INT PRIMARY KEY) TABLESPACE ts1 ROW_FORMAT=DYNAMIC;\nQuery OK, 0 rows affected (0.00 sec)\n\nThis example demonstrates creating a general tablespace and adding a\ncompressed table. The example assumes a default innodb_page_size of\n16K. The FILE_BLOCK_SIZE of 8192 requires that the compressed table\nhave a KEY_BLOCK_SIZE of 8.\n\nmysql> CREATE TABLESPACE `ts2` ADD DATAFILE \'ts2.ibd\' FILE_BLOCK_SIZE = 8192 Engine=InnoDB;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> CREATE TABLE t4 (c1 INT PRIMARY KEY) TABLESPACE ts2 ROW_FORMAT=COMPRESSED \nKEY_BLOCK_SIZE=8;\nQuery OK, 0 rows affected (0.00 sec)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/create-tablespace.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-tablespace.html'),(115,'ST_GEOMFROMTEXT',4,'ST_GeomFromText(wkt[,srid]), ST_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.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(116,'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.7/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.7/en/string-functions.html'),(117,'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.7/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.7/en/logical-operators.html'),(118,'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: { # Before MySQL 5.7.6\n IDENTIFIED BY \'auth_string\'\n | IDENTIFIED BY PASSWORD \'<PASSWORD>\'\n | IDENTIFIED WITH auth_plugin\n | IDENTIFIED WITH auth_plugin AS \'hash_string\'\n}\n\nauth_option: { # As of MySQL 5.7.6\n IDENTIFIED BY \'auth_string\'\n | IDENTIFIED BY PASSWORD \'<PASSWORD> | IDENTIFIED WITH auth_plugin\n | IDENTIFIED WITH auth_plugin AS \'hash_string\'\n | IDENTIFIED WITH auth_plugin BY \'auth_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.\n\nTo use GRANT, you must have the GRANT OPTION privilege, and you must\nhave the privileges that you are granting. When the read_only system\nvariable is enabled, GRANT additionally requires the SUPER privilege.\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 and define its nonprivilege characteristics such as its\npassword, whether it uses secure connections, and limits on access to\nserver resources, then GRANT to define its privileges. ALTER USER may\nbe used to change the nonprivilege characteristics of existing\naccounts. For example:\n\nCREATE USER \'jeffrey\'@\'localhost\' IDENTIFIED BY \'mypass\';\nGRANT ALL ON db1.* TO \'jeffrey\'@\'localhost\';\nGRANT SELECT ON db2.invoice TO \'jeffrey\'@\'localhost\';\nALTER USER \'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\n*Note*: If an account named in a GRANT statement does not already\nexist, GRANT may create it under the conditions described later in the\ndiscussion of the NO_AUTO_CREATE_USER SQL mode. It is also possible to\nuse GRANT to specify nonprivilege account characteristics such as\nwhether it uses secure connections and limits on access to server\nresources. However, use of GRANT to create accounts or define\nnonprivilege characteristics is deprecated as of MySQL 5.7.6. Instead,\nperform these tasks using CREATE USER or ALTER USER.\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.7/en/grant.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/grant.html'),(119,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(120,'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.7/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.7/en/comparison-operators.html'),(121,'SQRT',3,'Syntax:\nSQRT(X)\n\nReturns the square root of a nonnegative number X.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(122,'ST_MPOLYFROMWKB',33,'ST_MPolyFromWKB(wkb[,srid]), ST_MultiPolygonFromWKB(wkb[,srid])\n\nConstructs a MultiPolygon value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(123,'CREATE INDEX',40,'Syntax:\nCREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name\n [index_type]\n ON tbl_name (index_col_name,...)\n [index_option] \n [algorithm_option | lock_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\nalgorithm_option:\n ALGORITHM [=] {DEFAULT|INPLACE|COPY}\n\nlock_option:\n LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}\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.7/en/mysql-indexes.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/create-index.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-index.html'),(124,'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.7/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.7/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\n*Note*: The UPGRADE DATA DIRECTORY NAME clause is deprecated in MySQL\n5.7.6 and will be removed in a future version of MySQL. If it is\nnecessary to convert MySQL 5.0 database or table names, a workaround is\nto upgrade a MySQL 5.0 installation to MySQL 5.1 before upgrading to a\nmore recent release.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/alter-database.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-database.html'),(125,'GEOMETRYN',26,'GeometryN(gc,N)\n\nST_GeometryN() and GeometryN() are synonyms. For more information, see\nthe description of ST_GeometryN().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html'),(126,'<<',19,'Syntax:\n<<\n\nShifts a longlong (BIGINT) number to the left.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html\n\n','mysql> SELECT 1 << 2;\n -> 4\n','http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html'),(127,'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.7/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-table-status.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-table-status.html'),(128,'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.7/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.7/en/string-functions.html'),(129,'DIV',3,'Syntax:\nDIV\n\nInteger division. Similar to FLOOR(), but is safe with BIGINT values.\n\nIn MySQL 5.7, if either operand has a noninteger type, the operands are\nconverted to DECIMAL and divided using DECIMAL arithmetic before\nconverting the result to BIGINT. If the result exceeds BIGINT range, an\nerror occurs.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','mysql> SELECT 5 DIV 2;\n -> 2\n','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(130,'SHOW SLAVE STATUS',27,'Syntax:\nSHOW SLAVE STATUS [NONBLOCKING]\n\nThis statement provides status information on essential parameters of\nthe slave threads. It requires either the SUPER or REPLICATION CLIENT\nprivilege.\n\nThe NONBLOCKING option causes SHOW SLAVE STATUS, when run concurrently\nwith STOP SLAVE, to return without waiting for STOP SLAVE to finish\nshutting down the slave SQL thread or slave I/O thread (or both). This\noption is intended for use in monitoring and other applications where\ngetting an immediate response from SHOW SLAVE STATUS is more important\nthan ensuring that it returns the latest data. This option was removed\nin MySQL 5.7.6 due to locking changes that render it unnecessary.\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: 13000\n Connect_Retry: 60\n Master_Log_File: master-bin.000002\n Read_Master_Log_Pos: 1307\n Relay_Log_File: slave-relay-bin.000003\n Relay_Log_Pos: 1508\n Relay_Master_Log_File: master-bin.000002\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: 1307\n Relay_Log_Space: 1858\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: 0\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:\n Master_Server_Id: 1\n Master_UUID: 3e11fa47-71ca-11e1-9e33-c80aa9429562\n Master_Info_File: /var/mysqld.2/data/master.info\n SQL_Delay: 0\n SQL_Remaining_Delay: NULL\n Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it\n Master_Retry_Count: 10\n Master_Bind:\n Last_IO_Error_Timestamp:\n Last_SQL_Error_Timestamp:\n Master_SSL_Crl:\n Master_SSL_Crlpath:\n Retrieved_Gtid_Set: 3e11fa47-71ca-11e1-9e33-c80aa9429562:1-5\n Executed_Gtid_Set: 3e11fa47-71ca-11e1-9e33-c80aa9429562:1-5\n Auto_Position: 1\n Replicate_Rewrite_DB:\n1 row in set (0.00 sec)\n\nAs of MySQL 5.7.2, the Performance Schema provides tables that expose\nreplication information. This is similar to the information available\nfrom the SHOW SLAVE STATUS statement, but represented in table form.\nFor details, see\nhttp://dev.mysql.com/doc/refman/5.7/en/performance-schema-replication-t\nables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-slave-status.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-slave-status.html'),(131,'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\n(http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html), and\nARCHIVE tables. See also the notes about spatial indexes under [HELP\nSPATIAL].\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/creating-spatial-columns.html\n\n','CREATE TABLE geom (g GEOMETRY);\n','http://dev.mysql.com/doc/refman/5.7/en/creating-spatial-columns.html'),(132,'&',19,'Syntax:\n&\n\nBitwise AND:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html\n\n','mysql> SELECT 29 & 15;\n -> 13\n','http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html'),(133,'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.7/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.7/en/assignment-operators.html'),(134,'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.7/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.7/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.7/en/cast-functions.html'),(135,'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.7/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.7/en/repeat.html'),(136,'ST_ISVALID',7,'ST_IsValid(g)\n\nChecks whether a geometry is valid, as defined by the OGC\nspecification. ST_IsValid() returns 1 if the argument is a valid\ngeometry byte string and is geometrically valid, 0 if the argument is\nnot a valid geometry byte string or is not geometrically valid, NULL if\nthe argument is NULL.\n\nThe only valid empty geometry is represented in the form of an empty\ngeometry collection value. ST_IsValid() returns 1 in this case.\n\nST_IsValid() works only for the cartesian coordinate system and\nrequires a geometry argument with an SRID of 0. An ER_WRONG_ARGUMENTS\nerror occurs otherwise.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html\n\n','mysql> SET @ls1 = ST_GeomFromText(\'LINESTRING(0 0)\');\nmysql> SET @ls2 = ST_GeomFromText(\'LINESTRING(0 0, 1 1)\');\nmysql> SELECT ST_IsValid(@ls1);\n+------------------+\n| ST_IsValid(@ls1) |\n+------------------+\n| 0 |\n+------------------+\nmysql> SELECT ST_IsValid(@ls2);\n+------------------+\n| ST_IsValid(@ls2) |\n+------------------+\n| 1 |\n+------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html'),(137,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(138,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(139,'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.7/en/string-functions.html\n\n','mysql> SELECT ORD(\'2\');\n -> 50\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(140,'ENVELOPE',37,'Envelope(g)\n\nST_Envelope() and Envelope() are synonyms. For more information, see\nthe description of ST_Envelope().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(141,'ST_ISEMPTY',37,'ST_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.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(142,'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.7/en/miscellaneous-functions.html\n\n','mysql> SELECT INET_ATON(\'10.0.5.9\');\n -> 167773449\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(143,'ISSIMPLE',37,'IsSimple(g)\n\nST_IsSimple() and IsSimple() are synonyms. For more information, see\nthe description of ST_IsSimple().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(144,'- BINARY',3,'Syntax:\n-\n\nSubtraction:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','mysql> SELECT 3-5;\n -> -2\n','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(145,'CURRENT_TIME',32,'Syntax:\nCURRENT_TIME, CURRENT_TIME([fsp])\n\nCURRENT_TIME and CURRENT_TIME() are synonyms for CURTIME().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(146,'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.7/en/spatial-extensions.html).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-data-formats.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-data-formats.html'),(147,'ST_Y',11,'ST_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.7/en/gis-point-property-functions.html\n\n','mysql> SELECT ST_Y(POINT(56.7, 53.34));\n+--------------------------+\n| ST_Y(POINT(56.7, 53.34)) |\n+--------------------------+\n| 53.34 |\n+--------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html'),(148,'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.\n\nWhen the read_only system variable is enabled, REVOKE requires the\nSUPER privilege in addition to any other required privileges described\nin the following discussion.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.7/en/account-names.html. For example:\n\nREVOKE INSERT ON *.* FROM \'jeffrey\'@\'localhost\';\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.7/en/revoke.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/revoke.html'),(149,'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.7/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.7/en/date-and-time-functions.html'),(150,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(151,'RANDOM_BYTES',12,'Syntax:\nRANDOM_BYTES(len)\n\nThis function returns a binary string of len random bytes generated\nusing the random number generator of the SSL library (OpenSSL or\nyaSSL). Permitted values of len range from 1 to 1024. For values\noutside that range, RANDOM_BYTES() generates a warning and returns\nNULL.\n\nRANDOM_BYTES() can be used to provide the initialization vector for the\nAES_DECRYPT() and AES_ENCRYPT() functions. For use in that context, len\nmust be at least 16. Larger values are permitted, but bytes in excess\nof 16 are ignored.\n\nRANDOM_BYTES() generates a random value, which makes its result\nnondeterministic. Consequently, statements that use this function are\nunsafe for statement-based replication and cannot be stored in the\nquery cache.\n\nThis function is available as of MySQL 5.7.4.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(152,'RTRIM',38,'Syntax:\nRTRIM(str)\n\nReturns the string str with trailing space characters removed.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','mysql> SELECT RTRIM(\'barbar \');\n -> \'barbar\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(153,'EXPLAIN',29,'Syntax:\n{EXPLAIN | DESCRIBE | DESC}\n tbl_name [col_name | wild]\n\n{EXPLAIN | DESCRIBE | DESC}\n [explain_type]\n {explainable_stmt | FOR CONNECTION connection_id}\n\nexplain_type: {\n EXTENDED\n | PARTITIONS\n | FORMAT = format_name\n}\n\nformat_name: {\n TRADITIONAL\n | JSON\n}\n\nexplainable_stmt: {\n SELECT statement\n | DELETE statement\n | INSERT statement\n | REPLACE statement\n | UPDATE statement\n}\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 In MySQL 5.7, permitted explainable statements for EXPLAIN are\n SELECT, DELETE, INSERT, REPLACE, and UPDATE.\n\no When EXPLAIN is used with an explainable statement, MySQL displays\n information from the optimizer about the statement execution plan.\n That is, MySQL explains how it would process the statement, including\n information about how tables are joined and in which order. For\n information about using EXPLAIN to obtain execution plan information,\n see http://dev.mysql.com/doc/refman/5.7/en/explain-output.html.\n\no When EXPLAIN is used with FOR CONNECTION connection_id rather than an\n explainable statement, it displays the execution plan for the\n statement executing in the named connection. See\n http://dev.mysql.com/doc/refman/5.7/en/explain-for-connection.html.\n\no EXPLAIN EXTENDED can be used to obtain additional execution plan\n information. See\n http://dev.mysql.com/doc/refman/5.7/en/explain-extended.html.\n\n As of MySQL 5.7.3, the EXPLAIN statement is changed so that the\n effect of the EXTENDED keyword is always enabled. EXTENDED is still\n recognized for backward compatibility, but is superfluous and is\n deprecated; its use results in a warning. It will be removed from\n EXPLAIN syntax in a future MySQL release.\n\no EXPLAIN PARTITIONS is useful for examining queries involving\n partitioned tables. See\n http://dev.mysql.com/doc/refman/5.7/en/partitioning-info.html.\n\n As of MySQL 5.7.3, the EXPLAIN statement is changed so that the\n effect of the PARTITIONS keyword is always enabled. PARTITIONS is\n still recognized for backward compatibility, but is superfluous and\n is deprecated; its use results in a warning. It will be removed from\n EXPLAIN syntax in a future MySQL release.\n\no The FORMAT option can be used to select the output format.\n TRADITIONAL presents the output in tabular format. This is the\n default if no FORMAT option is present. JSON format displays the\n information in JSON format. With FORMAT = JSON, the output includes\n extended and partition information.\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.7/en/select.html.)\n\nThe optimizer trace may sometimes provide information complementary to\nthat of EXPLAIN. However, the optimizer trace format and content are\nsubject to change between versions. For details, see MySQL Internals:\nTracing the Optimizer\n(http://dev.mysql.com/doc/internals/en/optimizer-tracing.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.7/en/explain.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/explain.html'),(154,'DEGREES',3,'Syntax:\nDEGREES(X)\n\nReturns the argument X, converted from radians to degrees.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(155,'- UNARY',3,'Syntax:\n-\n\nUnary minus. This operator changes the sign of the operand.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','mysql> SELECT - 2;\n -> -2\n','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(156,'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.7/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.7 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.7/en/charset-national.html. NVARCHAR\nis shorthand for NATIONAL VARCHAR.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(157,'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.7/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.7/en/string-functions.html'),(158,'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.7/en/drop-trigger.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-trigger.html'),(159,'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.\n\nRESET MASTER also clears the values of the gtid_purged system variable\nas well as the global value of the gtid_executed system variable (but\nnot its session value); that is, executing this statement sets each of\nthese values to an empty string (\'\'). In MySQL 5.7.5 and later, this\nstatement also clears the mysql.gtid_executed table (see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-gtids-concepts.html#\nreplication-gtids-gtid-executed-table).\n\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.7/en/reset-master.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/reset-master.html'),(160,'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.7/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.7/en/mathematical-functions.html'),(161,'ANY_VALUE',14,'ANY_VALUE(arg)\n\nThis function is useful for GROUP BY queries when the\nONLY_FULL_GROUP_BY SQL mode is enabled, for cases when MySQL rejects a\nquery that you know is valid for reasons that MySQL cannot determine.\nThe function return value and type are the same as the return value and\ntype of its argument, but the function result is not checked for the\nONLY_FULL_GROUP_BY SQL mode.\n\nFor example, if name is a nonindexed column, the following query fails\nwith ONLY_FULL_GROUP_BY enabled:\n\nmysql> SELECT name, address, MAX(age) FROM t GROUP BY name;\nERROR 1055 (42000): Expression #2 of SELECT list is not in GROUP\nBY clause and contains nonaggregated column \'mydb.t.address\' which\nis not functionally dependent on columns in GROUP BY clause; this\nis incompatible with sql_mode=only_full_group_by\n\nThe failure occurs because address is a nonaggregated column that is\nneither named among GROUP BY columns nor functionally dependent on\nthem. As a result, the address value for rows within each name group is\nnondeterministic. There are multiple ways to cause MySQL to accept the\nquery:\n\no Alter the table to make name a primary key or a unique NOT NULL\n column. This enables MySQL to determine that address is functionally\n dependent on name; that is, address is uniquely determined by name.\n (This technique is inapplicable if NULL must be permitted as a valid\n name value.)\n\no Use ANY_VALUE() to refer to address:\n\nSELECT name, ANY_VALUE(address), MAX(age) FROM t GROUP BY name;\n\n In this case, MySQL ignores the nondeterminism of address values\n within each name group and accepts the query. This may be useful if\n you simply do not care which value of a nonaggregated column is\n chosen for each group. ANY_VALUE() is not an aggregate function,\n unlike functions such as SUM() or COUNT(). It simply acts to suppress\n the test for nondeterminism.\n\no Disable ONLY_FULL_GROUP_BY. This is equivalent to using ANY_VALUE()\n with ONLY_FULL_GROUP_BY enabled, as described in the previous item.\n\nANY_VALUE() is also useful if functional dependence exists between\ncolumns but MySQL cannot determine it. The following query is valid\nbecause age is functionally dependent on the grouping column age-1, but\nMySQL cannot tell that and rejects the query with ONLY_FULL_GROUP_BY\nenabled:\n\nSELECT age FROM t GROUP BY age-1;\n\nTo cause MySQL to accept the query, use ANY_VALUE():\n\nSELECT ANY_VALUE(age) FROM t GROUP BY age-1;\n\nANY_VALUE() can be used for queries that refer to aggregate functions\nin the absence of a GROUP BY clause:\n\nmysql> SELECT name, MAX(age) FROM t;\nERROR 1140 (42000): In aggregated query without GROUP BY, expression\n#1 of SELECT list contains nonaggregated column \'mydb.t.name\'; this\nis incompatible with sql_mode=only_full_group_by\n\nWithout GROUP BY, there is a single group and it is indeterminate which\nname value to choose for the group. ANY_VALUE() tells MySQL to accept\nthe query:\n\nSELECT ANY_VALUE(name), MAX(age) FROM t;\n\nIt may be that, due to some property of a given data set, you know that\na selected nonaggregated column is effectively functionally dependent\non a GROUP BY column. For example, an application may enforce\nuniqueness of one column with respect to another. In this case, using\nANY_VALUE() for the effectively functionally dependent column may make\nsense.\n\nFor additional discussion, see\nhttp://dev.mysql.com/doc/refman/5.7/en/group-by-handling.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(162,'/',3,'Syntax:\n/\n\nDivision:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','mysql> SELECT 3/5;\n -> 0.60\n','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(163,'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.7/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.7/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.7/en/purge-binary-logs.html'),(164,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(165,'ST_TOUCHES',31,'ST_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\nAs of MySQL 5.7.5, this function returns 0 if called with an\ninapplicable geometry argument type combination. For example, it\nreturns 0 if either of the arguments is a Point or MultiPoint.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(166,'SCHEMA',17,'Syntax:\nSCHEMA()\n\nThis function is a synonym for DATABASE().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(167,'MBREQUALS',7,'MBREquals(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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(168,'MLINEFROMWKB',33,'MLineFromWKB(wkb[,srid]), MultiLineStringFromWKB(wkb[,srid])\n\nST_MLineFromWKB(), ST_MultiLineStringFromWKB(), MLineFromWKB(), and\nMultiLineStringFromWKB() are synonyms. For more information, see the\ndescription of ST_MLineFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(169,'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.7/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/show-create-table.html'),(170,'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.7/en/select.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/select.html'),(171,'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.7/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.7/en/string-functions.html'),(172,'>=',20,'Syntax:\n>=\n\nGreater than or equal:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html\n\n','mysql> SELECT 2 >= 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(173,'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.7/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.7/en/mathematical-functions.html'),(174,'ST_ISSIMPLE',37,'ST_IsSimple(g)\n\nReturns 1 if the geometry value g has no anomalous geometric points,\nsuch as self-intersection or self-tangency. ST_IsSimple() returns 0 if\nthe argument is not simple, and NULL if it is NULL.\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.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(175,'POINTN',13,'PointN(ls,N)\n\nST_PointN() and PointN() are synonyms. For more information, see the\ndescription of ST_PointN().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(176,'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.7/en/string-functions.html\n\n','mysql> SELECT OCT(12);\n -> \'14\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(177,'SYSDATE',32,'Syntax:\nSYSDATE([fsp])\n\nReturns the current date and time as a value in \'YYYY-MM-DD HH:MM:SS\'\nor YYYYMMDDHHMMSS format, depending on whether the function is used in\na string or numeric context.\n\nIf the fsp argument is given to specify a fractional seconds precision\nfrom 0 to 6, the return value includes a fractional seconds part of\nthat many digits. Before 5.6.4, any argument is ignored.\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.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(178,'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.7/en/uninstall-plugin.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/uninstall-plugin.html'),(179,'ASBINARY',33,'AsBinary(g), AsWKB(g)\n\nST_AsBinary(), ST_AsWKB(), AsBinary(), and AsWKB() are synonyms. For\nmore information, see the description of ST_AsBinary().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html'),(180,'ST_MLINEFROMWKB',33,'ST_MLineFromWKB(wkb[,srid]), ST_MultiLineStringFromWKB(wkb[,srid])\n\nConstructs a MultiLineString value using its WKB representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(181,'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.7/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.7/en/show-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-tables.html'),(182,'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.7/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.7/en/date-and-time-functions.html'),(183,'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.7/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.7/en/cast-functions.html'),(184,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(185,'ST_LINEFROMWKB',33,'ST_LineFromWKB(wkb[,srid]), ST_LineStringFromWKB(wkb[,srid])\n\nConstructs a LineString value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(186,'INSERT SELECT',28,'Syntax:\nINSERT [LOW_PRIORITY | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name \n [PARTITION (partition_name,...)]\n [(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.7/en/insert-select.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/insert-select.html'),(187,'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.7/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.7/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.7/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.7/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.7/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.7/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. The COLLATE attribute 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.7/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.7/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.7/en/create-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-procedure.html'),(188,'GET DIAGNOSTICS',24,'Syntax:\nGET [CURRENT | STACKED] DIAGNOSTICS\n{\n statement_information_item\n [, statement_information_item] ... \n | CONDITION condition_number\n condition_information_item\n [, condition_information_item] ...\n}\n\nstatement_information_item:\n target = statement_information_item_name\n\ncondition_information_item:\n target = condition_information_item_name\n\nstatement_information_item_name:\n NUMBER\n | ROW_COUNT\n\ncondition_information_item_name:\n CLASS_ORIGIN\n | SUBCLASS_ORIGIN\n | RETURNED_SQLSTATE\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_number, target:\n (see following discussion)\n\nSQL statements produce diagnostic information that populates the\ndiagnostics area. The GET DIAGNOSTICS statement enables applications to\ninspect this information. (You can also use SHOW WARNINGS or SHOW\nERRORS to see conditions or errors.)\n\nNo special privileges are required to execute GET DIAGNOSTICS.\n\nThe keyword CURRENT means to retrieve information from the current\ndiagnostics area. The keyword STACKED means to retrieve information\nfrom the second diagnostics area, which is available only if the\ncurrent context is a condition handler. If neither keyword is given,\nthe default is to use the current diagnostics area.\n\nThe GET DIAGNOSTICS statement is typically used in a handler within a\nstored program. It is a MySQL extension that GET [CURRENT] DIAGNOSTICS\nis permitted outside handler context to check the execution of any SQL\nstatement. For example, if you invoke the mysql client program, you can\nenter these statements at the prompt:\n\nmysql> DROP TABLE test.no_such_table;\nERROR 1051 (42S02): Unknown table \'test.no_such_table\'\nmysql> GET DIAGNOSTICS CONDITION 1\n -> @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT;\nmysql> SELECT @p1, @p2;\n+-------+------------------------------------+\n| @p1 | @p2 |\n+-------+------------------------------------+\n| 42S02 | Unknown table \'test.no_such_table\' |\n+-------+------------------------------------+\n\nThis extension applies only to the current diagnostics area. It does\nnot apply to the second diagnostics area because GET STACKED\nDIAGNOSTICS is permitted only if the current context is a condition\nhandler. If that is not the case, a GET STACKED DIAGNOSTICS when\nhandler not active error occurs.\n\nFor a description of the diagnostics area, see\nhttp://dev.mysql.com/doc/refman/5.7/en/diagnostics-area.html. Briefly,\nit contains two kinds of information:\n\no Statement information, such as the number of conditions that occurred\n or the affected-rows count.\n\no Condition information, such as the error code and message. If a\n statement raises multiple conditions, this part of the diagnostics\n area has a condition area for each one. If a statement raises no\n conditions, this part of the diagnostics area is empty.\n\nFor a statement that produces three conditions, the diagnostics area\ncontains statement and condition information like this:\n\nStatement information:\n row count\n ... other statement information items ...\nCondition area list:\n Condition area 1:\n error code for condition 1\n error message for condition 1\n ... other condition information items ...\n Condition area 2:\n error code for condition 2:\n error message for condition 2\n ... other condition information items ...\n Condition area 3:\n error code for condition 3\n error message for condition 3\n ... other condition information items ...\n\nGET DIAGNOSTICS can obtain either statement or condition information,\nbut not both in the same statement:\n\no To obtain statement information, retrieve the desired statement items\n into target variables. This instance of GET DIAGNOSTICS assigns the\n number of available conditions and the rows-affected count to the\n user variables @p1 and @p2:\n\nGET DIAGNOSTICS @p1 = NUMBER, @p2 = ROW_COUNT;\n\no To obtain condition information, specify the condition number and\n retrieve the desired condition items into target variables. This\n instance of GET DIAGNOSTICS assigns the SQLSTATE value and error\n message to the user variables @p3 and @p4:\n\nGET DIAGNOSTICS CONDITION 1\n @p3 = RETURNED_SQLSTATE, @p4 = MESSAGE_TEXT;\n\nThe retrieval list specifies one or more target = item_name\nassignments, separated by commas. Each assignment names a target\nvariable and either a statement_information_item_name or\ncondition_information_item_name designator, depending on whether the\nstatement retrieves statement or condition information.\n\nValid target designators for storing item information can be stored\nprocedure or function parameters, stored program local variables\ndeclared with DECLARE, or user-defined variables.\n\nValid condition_number designators can be stored procedure or function\nparameters, stored program local variables declared with DECLARE,\nuser-defined variables, system variables, or literals. A character\nliteral may include a _charset introducer. A warning occurs if the\ncondition number is not in the range from 1 to the number of condition\nareas that have information. In this case, the warning is added to the\ndiagnostics area without clearing it.\n\nCurrently, when a condition occurs, MySQL does not populate all\ncondition items recognized by GET DIAGNOSTICS. For example:\n\nmysql> GET DIAGNOSTICS CONDITION 1\n -> @p5 = SCHEMA_NAME, @p6 = TABLE_NAME;\nmysql> SELECT @p5, @p6;\n+------+------+\n| @p5 | @p6 |\n+------+------+\n| | |\n+------+------+\n\nIn standard SQL, if there are multiple conditions, the first condition\nrelates to the SQLSTATE value returned for the previous SQL statement.\nIn MySQL, this is not guaranteed. To get the main error, you cannot do\nthis:\n\nGET DIAGNOSTICS CONDITION 1 @errno = MYSQL_ERRNO;\n\nInstead, retrieve the condition count first, then use it to specify\nwhich condition number to inspect:\n\nGET DIAGNOSTICS @cno = NUMBER;\nGET DIAGNOSTICS CONDITION @cno @errno = MYSQL_ERRNO;\n\nFor information about permissible statement and condition information\nitems, and which ones are populated when a condition occurs, see\nhttp://dev.mysql.com/doc/refman/5.7/en/diagnostics-area.html#diagnostic\ns-area-information-items.\n\nHere is an example that uses GET DIAGNOSTICS and an exception handler\nin stored procedure context to assess the outcome of an insert\noperation. If the insert was successful, the procedure uses GET\nDIAGNOSTICS to get the rows-affected count. This shows that you can use\nGET DIAGNOSTICS multiple times to retrieve information about a\nstatement as long as the current diagnostics area has not been cleared.\n\nCREATE PROCEDURE do_insert(value INT)\nBEGIN\n -- Declare variables to hold diagnostics area information\n DECLARE code CHAR(5) DEFAULT \'00000\';\n DECLARE msg TEXT;\n DECLARE rows INT;\n DECLARE result TEXT;\n -- Declare exception handler for failed insert\n DECLARE CONTINUE HANDLER FOR SQLEXCEPTION\n BEGIN\n GET DIAGNOSTICS CONDITION 1\n code = RETURNED_SQLSTATE, msg = MESSAGE_TEXT;\n END;\n\n -- Perform the insert\n INSERT INTO t1 (int_col) VALUES(value);\n -- Check whether the insert was successful\n IF code = \'00000\' THEN\n GET DIAGNOSTICS rows = ROW_COUNT;\n SET result = CONCAT(\'insert succeeded, row count = \',rows);\n ELSE\n SET result = CONCAT(\'insert failed, error = \',code,\', message = \',msg);\n END IF;\n -- Say what happened\n SELECT result;\nEND;\n\nSuppose that t1.int_col is an integer column that is declared as NOT\nNULL. The procedure produces these results when invoked to insert\nnon-NULL and NULL values, respectively:\n\nmysql> CALL do_insert(1);\n+---------------------------------+\n| result |\n+---------------------------------+\n| insert succeeded, row count = 1 |\n+---------------------------------+\n\nmysql> CALL do_insert(NULL);\n+-------------------------------------------------------------------------+\n| result |\n+-------------------------------------------------------------------------+\n| insert failed, error = 23000, message = Column \'int_col\' cannot be null |\n+-------------------------------------------------------------------------+\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/get-diagnostics.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/get-diagnostics.html'),(189,'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.7/en/regexp.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/regexp.html'),(190,'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.7/en/leave.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/leave.html'),(191,'ST_GEOHASH',7,'ST_GeoHash(longitude, latitude, max_length), ST_GeoHash(point,\nmax_length)\n\nReturns a geohash string in the connection character set and collation.\nThe result is NULL if any argument is NULL. An error occurs if any\nargument is invalid.\n\nFor the first syntax, the longitude must be a number in the range\n[−180, 180], and the latitude must be a number in the range [−90,\n90]. For the second syntax, a POINT value is required, where the X and\nY coordinates are in the valid ranges for longitude and latitude,\nrespectively.\n\nThe resulting string is no longer than max_length characters, which has\nan upper limit of 100. The string might be shorter than max_length\ncharacters because the algorithm that creates the geohash value\ncontinues until it has created a string that is either an exact\nrepresentation of the location or max_length characters, whichever\ncomes first.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html\n\n','mysql> SELECT ST_GeoHash(180,0,10), ST_GeoHash(-180,-90,15);\n+----------------------+-------------------------+\n| ST_GeoHash(180,0,10) | ST_GeoHash(-180,-90,15) |\n+----------------------+-------------------------+\n| xbpbpbpbpb | 000000000000000 |\n+----------------------+-------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html'),(192,'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.7/en/comparison-operators.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(193,'X',11,'X(p)\n\nST_X() and X() are synonyms. For more information, see the description\nof ST_X().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html'),(194,'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.7/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.7/en/information-functions.html'),(195,'CROSSES',31,'Crosses(g1,g2)\n\nST_Crosses() and Crosses() are synonyms. For more information, see the\ndescription of ST_Crosses().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(196,'ST_UNION',26,'ST_Union(g1, g2)\n\nReturns a geometry that represents the point set union of the geometry\nvalues g1 and g2.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @g1 = ST_GeomFromText(\'LineString(1 1, 3 3)\');\nmysql> SET @g2 = ST_GeomFromText(\'LineString(1 3, 3 1)\');\nmysql> SELECT ST_AsText(ST_Union(@g1, @g2));\n+--------------------------------------+\n| ST_AsText(ST_Union(@g1, @g2)) |\n+--------------------------------------+\n| MULTILINESTRING((1 1,3 3),(1 3,3 1)) |\n+--------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(197,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(198,'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 TABLES WITH READ LOCK (with or without a\ntable list), and FLUSH TABLES tbl_name ... FOR EXPORT are not written\nto the binary log in any case because they would cause problems if\nreplicated to a slave.\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.7/en/server-signal-response.html.\n\nThe FLUSH statement causes an implicit commit. See\nhttp://dev.mysql.com/doc/refman/5.7/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.7/en/flush.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/flush.html'),(199,'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.7/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.7/en/begin-end.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/begin-end.html'),(200,'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.7/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/show-procedure-status.html'),(201,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(202,'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.7/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.7/en/show-character-set.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-character-set.html'),(203,'INTERSECTS',31,'Intersects(g1,g2)\n\nMBRIntersects() and Intersects() are synonyms. For more information,\nsee the description of MBRIntersects().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(204,'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.7/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.7/en/loop.html'),(205,'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.7/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.7/en/comparison-operators.html'),(206,'ST_CONTAINS',31,'ST_Contains(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 completely contains g2. This\ntests the opposite relationship as ST_Within().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(207,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(208,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT SECOND(\'10:05:03\');\n -> 3\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(209,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','mysql> SET @g1 = ST_GeomFromText(\'Polygon((0 0,0 3,3 3,3 0,0 0))\');\nmysql> SET @g2 = ST_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.7/en/spatial-relation-functions-mysql-specific.html'),(210,'RELEASE_ALL_LOCKS',14,'Syntax:\nRELEASE_ALL_LOCKS()\n\nReleases all named locks held by the current session and returns the\nnumber of locks released (0 if there were none)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(211,'COT',3,'Syntax:\nCOT(X)\n\nReturns the cotangent of X.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(212,'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.7/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.7/en/show-create-event.html'),(213,'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.7/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.7/en/logical-operators.html'),(214,'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.7/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.7/en/string-functions.html'),(215,'POINTFROMTEXT',4,'PointFromText(wkt[,srid])\n\nST_PointFromText() and PointFromText() are synonyms. For more\ninformation, see the description of ST_PointFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(216,'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.7/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.7/en/date-and-time-functions.html'),(217,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT YEAR(\'1987-01-01\');\n -> 1987\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(218,'IS NULL',20,'Syntax:\nIS NULL\n\nTests whether a value is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(219,'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.7/en/alter-server.html\n\n','ALTER SERVER s OPTIONS (USER \'sally\');\n','http://dev.mysql.com/doc/refman/5.7/en/alter-server.html'),(220,'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\nTo retrieve information from the diagnostics area, use the GET\nDIAGNOSTICS statement (see [HELP GET DIAGNOSTICS]). For information\nabout the diagnostics area, see\nhttp://dev.mysql.com/doc/refman/5.7/en/diagnostics-area.html.\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.7/en/resignal.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/resignal.html'),(221,'MBRCOVERS',7,'MBRCovers(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangle of g1\ncovers the minimum bounding rectangle of g2. This tests the opposite\nrelationship as MBRCoveredBy(). See the description of MBRCoveredBy()\nfor examples and information about argument handling.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(222,'ST_NUMPOINTS',13,'ST_NumPoints(ls)\n\nReturns the number of Point objects in the LineString value ls.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_NumPoints(ST_GeomFromText(@ls));\n+------------------------------------+\n| ST_NumPoints(ST_GeomFromText(@ls)) |\n+------------------------------------+\n| 3 |\n+------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(223,'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.7/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.7/en/date-and-time-functions.html'),(224,'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.7/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.7/en/date-and-time-functions.html'),(225,'ST_ENVELOPE',37,'ST_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\nAs of MySQL 5.7.6, if the argument is a point or a vertical or\nhorizontal line segment, ST_Envelope() returns the point or the line\nsegment as its MBR rather than returning an invalid polygon.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','mysql> SELECT ST_AsText(ST_Envelope(ST_GeomFromText(\'LineString(1 1,2 2)\')));\n+----------------------------------------------------------------+\n| ST_AsText(ST_Envelope(ST_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.7/en/gis-general-property-functions.html'),(226,'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.7/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.7/en/string-comparison-functions.html'),(227,'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.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(228,'>>',19,'Syntax:\n>>\n\nShifts a longlong (BIGINT) number to the right.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html\n\n','mysql> SELECT 4 >> 2;\n -> 1\n','http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html'),(229,'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.7/en/cursors.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/fetch.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/fetch.html'),(230,'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.7/en/boolean-literals.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/boolean-literals.html'),(231,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','mysql> SET @g1 = ST_GeomFromText(\'Polygon((0 0,0 3,3 3,3 0,0 0))\');\nmysql> SET @g2 = ST_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.7/en/spatial-relation-functions-mysql-specific.html'),(232,'SESSION_USER',17,'Syntax:\nSESSION_USER()\n\nSESSION_USER() is a synonym for USER().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(233,'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.7/en/show-create-function.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-create-function.html'),(234,'DISTANCE',31,'Distance(g1,g2)\n\nST_Distance() and Distance() are synonyms. For more information, see\nthe description of ST_Distance().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(235,'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.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(236,'Y',11,'Y(p)\n\nST_Y() and Y() are synonyms. For more information, see the description\nof ST_Y().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html'),(237,'CHECKSUM TABLE',21,'Syntax:\nCHECKSUM TABLE tbl_name [, tbl_name] ... [ QUICK | EXTENDED ]\n\nCHECKSUM TABLE reports a checksum for the contents of a table. During\nthe checksum operation, the table is locked with a read lock for InnoDB\nand MyISAM. You can use this statement to verify that the contents are\nthe same before and after a backup, rollback, or other operation that\nis intended to put the data back to a known state. This statement\nrequires the SELECT privilege for the table.\n\nPerformance Considerations\n\nBy default, the entire table is read row by row and the checksum is\ncalculated. For large tables, this could take a long time, thus you\nwould only perform this operation occasionally. This row-by-row\ncalculation is what you get with the EXTENDED clause, with InnoDB and\nall other storage engines other than MyISAM, and with MyISAM tables not\ncreated with the CHECKSUM=1 clause.\n\nFor MyISAM tables created with the CHECKSUM=1 clause, CHECKSUM TABLE or\nCHECKSUM TABLE ... QUICK returns the \"live\" table checksum that can be\nreturned very fast. If the table does not meet all these conditions,\nthe QUICK method returns NULL. See [HELP CREATE TABLE] for the syntax\nof the CHECKSUM clause.\n\nFor a nonexistent table, CHECKSUM TABLE returns NULL and generates a\nwarning.\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.7/en/checksum-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/checksum-table.html'),(238,'NUMINTERIORRINGS',2,'NumInteriorRings(poly)\n\nST_NumInteriorRings() and NumInteriorRings() are synonyms. For more\ninformation, see the description of ST_NumInteriorRings().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(239,'INTERIORRINGN',2,'InteriorRingN(poly,N)\n\nST_InteriorRingN() and InteriorRingN() are synonyms. For more\ninformation, see the description of ST_InteriorRingN().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(240,'UTC_TIME',32,'Syntax:\nUTC_TIME, UTC_TIME([fsp])\n\nReturns the current UTC time as a value in \'HH:MM:SS\' or HHMMSS format,\ndepending on whether the function is used in a string or numeric\ncontext.\n\nIf the fsp argument is given to specify a fractional seconds precision\nfrom 0 to 6, the return value includes a fractional seconds part of\nthat many digits.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(241,'IS_IPV4_COMPAT',14,'Syntax:\nIS_IPV4_COMPAT(expr)\n\nThis function takes an IPv6 address represented in numeric form as a\nbinary string, as returned by INET6_ATON(). It returns 1 if the\nargument is a valid IPv4-compatible IPv6 address, 0 otherwise.\nIPv4-compatible addresses have the form ::ipv4_address.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT IS_IPV4_COMPAT(INET6_ATON(\'::10.0.5.9\'));\n -> 1\nmysql> SELECT IS_IPV4_COMPAT(INET6_ATON(\'::ffff:10.0.5.9\'));\n -> 0\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(242,'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.7/en/drop-function.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-function.html'),(243,'ST_POLYFROMTEXT',4,'ST_PolyFromText(wkt[,srid]), ST_PolygonFromText(wkt[,srid])\n\nConstructs a Polygon value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(244,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(245,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT PERIOD_ADD(200801,2);\n -> 200803\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(246,'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.7/en/string-functions.html\n\n','mysql> SELECT RIGHT(\'foobarbar\', 4);\n -> \'rbar\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(247,'DROP TABLESPACE',40,'Syntax:\nDROP TABLESPACE tablespace_name\n [ENGINE [=] engine_name]\n\nThis statement is used to drop an InnoDB general tablespace that was\ncreated using CREATE TABLESPACE (see [HELP CREATE TABLESPACE]).\n\nAll tables must be dropped from the tablespace prior to a DROP\nTABLESPACE operation. If the tablespace is not empty, DROP TABLESPACE\nreturns an error.\n\ntablespace_name is a case-sensitive identifier in MySQL.\n\nENGINE: Defines the storage engine that uses the tablespace, where\nengine_name is the name of the storage engine. Currently, only the\nInnoDB storage engine is supported. You do not need to specify ENGINE =\nInnoDB if InnoDB is defined as the default storage engine\n(default_storage_engine=InnoDB).\n\nDROP TABLESPACE is supported with InnoDB as of MySQL 5.7.6. In earlier\nreleases, DROP TABLESPACE supports NDB\n(http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html), which is\nthe MySQL Cluster storage engine. DROP TABLESPACE will support NDB\n(http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html) in MySQL\n5.7 when MySQL Cluster is branched from the MyQL 5.7 code base. The\nlatest version of MySQL Cluster is based on MySQL 5.6.\n\nNotes\n\no A general InnoDB tablespace is not deleted automatically when the\n last table in the tablespace is dropped. The tablespace must be\n dropped explicitly using DROP TABLESPACE tablespace_name.\n\no A DROP DATABASE operation can drop tables that belong to a general\n tablespace but it cannot drop the tablespace, even if the operation\n drops all tables that belong to the tablespace. The tablespace must\n be dropped explicitly using DROP TABLESPACE tablespace_name.\n\no Similar to the system tablespace, truncating or dropping tables\n stored in a general tablespace creates free space internally in the\n general tablespace .ibd data file which can only be used for new\n InnoDB data. Space is not released back to the operating system as it\n is for file-per-table tablespaces.\n\nExample\n\nThis example demonstrates how to drop an InnoDB general tablespace. The\ngeneral tablespace ts1 is created with a single table. Before dropping\nthe tablespace, the table must be dropped.\n\nmysql> CREATE TABLESPACE `ts1` ADD DATAFILE \'ts1.ibd\' Engine=InnoDB;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> CREATE TABLE t1 (c1 INT PRIMARY KEY) TABLESPACE ts10 Engine=InnoDB;\nQuery OK, 0 rows affected (0.02 sec)\n\nmysql> DROP TABLE t1;\nQuery OK, 0 rows affected (0.01 sec)\n\nmysql> DROP TABLESPACE ts1;\nQuery OK, 0 rows affected (0.01 sec)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/drop-tablespace.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-tablespace.html'),(248,'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.7/en/partitioning-maintenance.html.\n\nIn MySQL 5.7.1, gtid_next must be set to AUTOMATIC before issuing this\nstatement. This restriction does not apply in MySQL 5.7.2 or later.\n(Bug #16062608, Bug #16715809, Bug #69045)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/check-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/check-table.html'),(249,'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.7/en/string-functions.html\n\n','mysql> SELECT BIN(12);\n -> \'1100\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(250,'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.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(251,'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.7/en/show-relaylog-events.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-relaylog-events.html'),(252,'MPOINTFROMTEXT',4,'MPointFromText(wkt[,srid]), MultiPointFromText(wkt[,srid])\n\nST_MPointFromText(), ST_MultiPointFromText(), MPointFromText(), and\nMultiPointFromText() are synonyms. For more information, see the\ndescription of ST_MPointFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(253,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(254,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(255,'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.7/en/group-by-functions.html\n\n','mysql> SELECT COUNT(DISTINCT results) FROM student;\n','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(256,'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.7/en/show-create-view.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-create-view.html'),(257,'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.7/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.7/en/comparison-operators.html'),(258,'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.7/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.7/en/date-and-time-functions.html'),(259,'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.7/en/stored-routines-privileges.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/alter-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-procedure.html'),(260,'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.7/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.7/en/bit-functions.html'),(261,'ST_POINTFROMWKB',33,'ST_PointFromWKB(wkb[,srid])\n\nConstructs a Point value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(262,'ST_MAKEENVELOPE',7,'ST_MakeEnvelope(pt1, pt2)\n\nReturns the rectangle that forms the envelope around two points. The\nreturned geometry is a Point, LineString, or Polygon, or NULL if any\nargument is NULL.\n\nCalculations are done using the cartesian coordinate system rather than\non a sphere, spheroid, or on earth.\n\nGiven two points pt1 and pt2, ST_MakeEnvelope() creates the result\ngeometry on an abstract plane like this:\n\no If pt1 and pt2 are equal, the result is the point pt1.\n\no Otherwise, if (pt1, pt2) is a vertical or horizontal line segment,\n the result is the line segment (pt1, pt2).\n\no Otherwise, the result is a polygon using pt1 and pt2 as diagonal\n points. Either or both of pt1 and pt2 can be vertex points.\n\nThe result geometry has an SRID of 0.\n\nST_MakeEnvelope() requires Point geometry arguments with an SRID of 0.\nAn ER_WRONG_ARGUMENTS error occurs otherwise.\n\nAn ER_GIS_INVALID_DATA occurs if any argument is not a valid geometry\nbyte string, or if any coordinate value of the two points is infinite\n(that is, NaN).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html\n\n','mysql> SET @pt1 = ST_GeomFromText(\'POINT(0 0)\');\nmysql> SET @pt2 = ST_GeomFromText(\'POINT(1 1)\');\nmysql> SELECT ST_AsText(ST_MakeEnvelope(@pt1, @pt2));\n+----------------------------------------+\n| ST_AsText(ST_MakeEnvelope(@pt1, @pt2)) |\n+----------------------------------------+\n| POLYGON((0 0,1 0,1 1,0 1,0 0)) |\n+----------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html'),(263,'ST_WITHIN',31,'ST_Within(g1,g2)\n\nReturns 1 or 0 to indicate whether g1 is spatially within g2. This\ntests the opposite relationship as ST_Contains().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(264,'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.7/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.7/en/mathematical-functions.html'),(265,'ISOLATION',8,'Syntax:\nSET [GLOBAL | SESSION] TRANSACTION\n transaction_characteristic [, transaction_characteristic] ...\n\ntransaction_characteristic:\n ISOLATION LEVEL level\n | READ WRITE\n | READ ONLY\n\nlevel:\n REPEATABLE READ\n | READ COMMITTED\n | READ UNCOMMITTED\n | SERIALIZABLE\n\nThis statement specifies transaction characteristics. It takes a list\nof one or more characteristic values separated by commas. These\ncharacteristics set the transaction isolation level or access mode. The\nisolation level is used for operations on InnoDB tables. The access\nmode may be specified as to whether transactions operate in read/write\nor read-only mode.\n\nIn addition, SET TRANSACTION can include an optional GLOBAL or SESSION\nkeyword to indicate the scope of the statement.\n\nScope of Transaction Characteristics\n\nYou can set transaction characteristics globally, for the current\nsession, or for the next transaction:\n\no With the GLOBAL keyword, the statement applies globally for all\n subsequent sessions. Existing sessions are unaffected.\n\no With the SESSION keyword, the statement applies to all subsequent\n transactions performed within the current session.\n\no Without any SESSION or GLOBAL keyword, the statement applies to the\n next (not started) transaction performed within the current session.\n\nA global change to transaction characteristics requires the SUPER\nprivilege. Any session is free to change its session characteristics\n(even in the middle of a transaction), or the characteristics for its\nnext transaction.\n\nSET TRANSACTION without GLOBAL or SESSION is not permitted while there\nis 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 characteristics 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\nSimilarly, to set the transaction access mode at server startup or at\nruntime, use the --transaction-read-only option or tx_read_only system\nvariable. By default, these are OFF (the mode is read/write) but can be\nset to ON for a default mode of read only.\n\nSetting the global or session value of tx_isolation or tx_read_only is\nequivalent to setting the isolation level or access mode with SET\nGLOBAL TRANSACTION or SET SESSION TRANSACTION.\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.7/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.7/en/innodb-record-level-locks.html\nand http://dev.mysql.com/doc/refman/5.7/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.7/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 locks to block insertions by\n other sessions into the gaps covered by the 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.7/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.7, when READ COMMITTED isolation level is used, or\n the deprecated innodb_locks_unsafe_for_binlog system variable is\n enabled, there is no InnoDB gap locking except for foreign-key\n constraint checking and duplicate-key checking. Also, record locks\n for nonmatching rows are released after MySQL has evaluated the WHERE\n condition. If you use READ COMMITTED or enable\n innodb_locks_unsafe_for_binlog, you must use row-based binary\n 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\nTransaction Access Mode\n\nThe transaction access mode may be specified with SET TRANSACTION. By\ndefault, a transaction takes place in read/write mode, with both reads\nand writes permitted to tables used in the transaction. This mode may\nbe specified explicitly using an access mode of READ WRITE.\n\nIf the transaction access mode is set to READ ONLY, changes to tables\nare prohibited. This may enable storage engines to make performance\nimprovements that are possible when writes are not permitted.\n\nIt is not permitted to specify both READ WRITE and READ ONLY in the\nsame statement.\n\nIn read-only mode, it remains possible to change tables created with\nthe TEMPORARY keyword using DML statements. Changes made with DDL\nstatements are not permitted, just as with permanent tables.\n\nThe READ WRITE and READ ONLY access modes also may be specified for an\nindividual transaction using the START TRANSACTION statement.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/set-transaction.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/set-transaction.html'),(266,'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.7/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.7/en/mathematical-functions.html'),(267,'ST_BUFFER',26,'ST_Buffer(g,d[,strategy1[,strategy2[,strategy3]]])\n\nReturns a geometry that represents all points whose distance from the\ngeometry value g is less than or equal to a distance of d, or NULL if\nany argument is NULL. The SRID of the geometry argument must be 0\nbecause ST_Buffer() supports only the cartesian coordinate system. For\nan invalid geometry argument, an ER_GIS_INVALID_DATA error occurs.\n\nIf the geometry argument is empty, ST_Buffer() returns an empty\ngeometry.\n\nIf the distance is 0, ST_Buffer() returns the geometry argument\nunchanged:\n\nmysql> SET @pt = ST_GeomFromText(\'POINT(0 0)\');\nmysql> SELECT ST_AsText(ST_Buffer(@pt, 0));\n+------------------------------+\n| ST_AsText(ST_Buffer(@pt, 0)) |\n+------------------------------+\n| POINT(0 0) |\n+------------------------------+\n\nST_Buffer() supports negative distances for Polygon and MultiPolygon\nvalues, and for geometry collections containing Polygon or MultiPolygon\nvalues. The result may be an empty geometry. An ER_WRONG_ARGUMENTS\nerror occurs for ST_Buffer() with a negative distance for Point,\nMultiPoint, LineString, and MultiLineString values, and for geometry\ncollections not containing any Polygon or MultiPolygon values.\n\nAs of MySQL 5.7.7, ST_Buffer() permits up to three optional strategy\narguments following the distance argument. Strategies influence buffer\ncomputation. These arguments are byte string values produced by the\nST_Buffer_Strategy() function, to be used for point, join, and end\nstrategies:\n\no Point strategies apply to Point and MultiPoint geometries. If no\n point strategy is specified, the default is\n ST_Buffer_Strategy(\'point_circle\', 32).\n\no Join strategies apply to LineString, MultiLineString, Polygon, and\n MultiPolygon geometries. If no join strategy is specified, the\n default is ST_Buffer_Strategy(\'join_round\', 32).\n\no End strategies apply to LineString and MultiLineString geometries. If\n no end strategy is specified, the default is\n ST_Buffer_Strategy(\'end_round\', 32).\n\nUp to one strategy of each type may be specified, and they may be given\nin any order. If multiple strategies of a given type are specified, an\nER_WRONG_ARGUMENTS error occurs.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @pt = ST_GeomFromText(\'POINT(0 0)\');\nmysql> SET @pt_strategy = ST_Buffer_Strategy(\'point_square\');\nmysql> SELECT ST_AsText(ST_Buffer(@pt, 2, @pt_strategy));\n+--------------------------------------------+\n| ST_AsText(ST_Buffer(@pt, 2, @pt_strategy)) |\n+--------------------------------------------+\n| POLYGON((-2 -2,2 -2,2 2,-2 2,-2 -2)) |\n+--------------------------------------------+\n\nmysql> SET @ls = ST_GeomFromText(\'LINESTRING(0 0,0 5,5 5)\');\nmysql> SET @end_strategy = ST_Buffer_Strategy(\'end_flat\');\nmysql> SET @join_strategy = ST_Buffer_Strategy(\'join_round\', 10);\nmysql> SELECT ST_AsText(ST_Buffer(@ls, 5, @end_strategy, @join_strategy))\n+---------------------------------------------------------------+\n| ST_AsText(ST_Buffer(@ls, 5, @end_strategy, @join_strategy)) |\n+---------------------------------------------------------------+\n| POLYGON((5 5,5 10,0 10,-3.5355339059327373 8.535533905932738, |\n| -5 5,-5 0,0 0,5 0,5 5)) |\n+---------------------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(268,'BUFFER',26,'Buffer(g,d[,strategy1[,strategy2[,strategy3]]])\n\nST_Buffer() and Buffer() are synonyms. For more information, see the\ndescription of ST_Buffer().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(269,'WAIT_FOR_EXECUTED_GTID_SET',7,'Syntax:\nWAIT_FOR_EXECUTED_GTID_SET(gtid_set[, timeout])\n\nIntroduced in MySQL 5.7.5, WAIT_FOR_EXECUTED_GTID_SET() is similar to\nWAIT_UNTIL_SQL_THREAD_AFTER_GTIDS() in that it waits until a server has\nexecuted all of the transactions whose global transaction identifiers\nare contained in gtid_set, or until timeout seconds have elapsed,\nwhichever occurs first. Unlike WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(),\nWAIT_FOR_EXECUTED_GTID_SET() does not take into account whether the\nslave is running or not, and an error is returned if GTID-based\nreplication is not enabled.\n\nIn addition, WAIT_FOR_EXECUTED_GTID_SET() returns only the state of the\nquery, where 0 represents success, 1 represents timeout, and any other\nfailures return the error message.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html'),(270,'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.7/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.7/en/comparison-operators.html'),(271,'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.7/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.7/en/date-and-time-functions.html'),(272,'ST_CENTROID',2,'ST_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\nAs of MySQL 5.7.5, this function processes geometry collections by\ncomputing the centroid point for components of highest dimension in the\ncollection. Such components are extracted and made into a single\nMultiPolygon, MultiLineString, or MultiPoint for centroid computation.\nIf the argument is an empty geometry collection, the return value is\nNULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','mysql> SET @poly =\n -> ST_GeomFromText(\'POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))\');\nmysql> SELECT ST_GeometryType(@poly),ST_AsText(ST_Centroid(@poly));\n+------------------------+--------------------------------------------+\n| ST_GeometryType(@poly) | ST_AsText(ST_Centroid(@poly)) |\n+------------------------+--------------------------------------------+\n| POLYGON | POINT(4.958333333333333 4.958333333333333) |\n+------------------------+--------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(273,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(274,'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.7/en/information-functions.html\n\n','mysql> SELECT USER();\n -> \'davida@localhost\'\n','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(275,'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, for certain storage\nengines only. By default, it has the same effect as myisamchk --recover\ntbl_name.\n\n*Note*: REPAIR TABLE only applies to MyISAM, ARCHIVE, and CSV tables.\nSee http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html,\nand http://dev.mysql.com/doc/refman/5.7/en/archive-storage-engine.html,\nand http://dev.mysql.com/doc/refman/5.7/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\nIn MySQL 5.7.1, gtid_next must be set to AUTOMATIC before issuing this\nstatement. This restriction does not apply in MySQL 5.7.2 or later.\n(Bug #16062608, Bug #16715809, Bug #69045)\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.7/en/partitioning-maintenance.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/repair-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/repair-table.html'),(276,'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.7/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.7/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.7/en/merge-storage-engine.html'),(277,'SHOW CREATE USER',27,'Syntax:\nSHOW CREATE USER user\n\nThis statement shows the CREATE USER statement that creates the named\nuser. An error occurs if the user does not exist. The statement\nrequires the SELECT privilege for the mysql database, except to see the\nprivileges for the current user.\n\nThe account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.7/en/account-names.html. If you\nspecify only the user name part of the account name, a host name part\nof \'%\' is used. It is also possible to specify CURRENT_USER or\nCURRENT_USER() to refer to the account associated with the current\nsession.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-create-user.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-create-user.html'),(278,'ST_DISTANCE',31,'ST_Distance(g1,g2)\n\nReturns the distance between g1 and g2.\n\nAs of MySQL 5.7.5, this function processes geometry collections by\nreturning the shortest distance among all combinations of the\ncomponents of the two geometry arguments. If either argument is an\nempty geometry collection, the return value is NULL.\n\nAs of MySQL 5.7.6, if an intermediate or final result produces NaN or a\nnegative number, this function produces a ER_GIS_INVALID_DATA error.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','mysql> SET @g1 = POINT(1,1), @g2 = POINT(2,2);\nmysql> SELECT ST_Distance(@g1, @g2);\n+-----------------------+\n| ST_Distance(@g1, @g2) |\n+-----------------------+\n| 1.4142135623730951 |\n+-----------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(279,'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 [reference_definition]\n | data_type [GENERATED ALWAYS] AS (expression)\n [VIRTUAL | STORED] [UNIQUE [KEY]] [COMMENT comment]\n [NOT NULL | NULL] [[PRIMARY] KEY]\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[(fsp)]\n | TIMESTAMP[(fsp)]\n | DATETIME[(fsp)]\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 | COMPRESSION [=] { ZLIB | LZ4 | NONE }\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 | STATS_AUTO_RECALC [=] {DEFAULT|0|1}\n | STATS_PERSISTENT [=] {DEFAULT|0|1}\n | STATS_SAMPLE_PAGES [=] value\n | TABLESPACE tablespace_name\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 [(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\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.7/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.7/en/create-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-table.html'),(280,'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.7/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.7/en/date-and-time-functions.html'),(281,'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.7/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.7/en/create-server.html'),(282,'ST_DISTANCE_SPHERE',7,'ST_Distance_Sphere(g1, g2 [, radius])\n\nReturns the mimimum spherical distance between two points and/or\nmultipoints on a sphere, in meters, or NULL if any geometry argument is\nNULL or empty.\n\nCalculations use a spherical earth and a configurable radius. The\noptional radius argument should be given in meters. If omitted, the\ndefault radius is 6,370,986 meters. An ER_WRONG_ARGUMENTS error occurs\nif the radius argument is present but not positive.\n\nThe geometry arguments should consist of points that specify\n(longitude, latitude) coordinate values:\n\no Longitude and latitude are the first and second coordinates of the\n point, respectively.\n\no Both coordinates are in degrees.\n\no Longitude values must be in the range (-180, 180]. Positive values\n are east of the prime meridian.\n\no Latitude values must be in the range [-90, 90]. Positive values are\n north of the equator.\n\nSupported argument combinations are (Point, Point), (Point,\nMultiPoint), and (MultiPoint, Point). An ER_GIS_UNSUPPORTED_ARGUMENT\nerror occurs for other combinations.\n\nAn ER_GIS_INVALID_DATA error occurs if any geometry argument is not a\nvalid geometry byte string.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html\n\n','mysql> SET @pt1 = ST_GeomFromText(\'POINT(0 0)\');\nmysql> SET @pt2 = ST_GeomFromText(\'POINT(180 0)\');\nmysql> SELECT ST_Distance_Sphere(@pt1, @pt2);\n+--------------------------------+\n| ST_Distance_Sphere(@pt1, @pt2) |\n+--------------------------------+\n| 20015042.813723423 |\n+--------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html'),(283,'ST_POLYFROMWKB',33,'ST_PolyFromWKB(wkb[,srid]), ST_PolygonFromWKB(wkb[,srid])\n\nConstructs a Polygon value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(284,'MAKETIME',32,'Syntax:\nMAKETIME(hour,minute,second)\n\nReturns a time value calculated from the hour, minute, and second\narguments.\n\nThe second argument can have a fractional part.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(285,'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.7/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.7/en/date-and-time-functions.html'),(286,'SET PASSWORD',10,'Syntax:\nSET PASSWORD syntax for MySQL 5.7.6 and up:\n\n*Note*: SET PASSWORD is deprecated as of MySQL 5.7.6 and will be\nremoved in a future MySQL release. ALTER USER is now the preferred\nstatement for assigning passwords. For example: ALTER USER user\nIDENTIFIED BY \'auth_string\';\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\no With a FOR user clause, this statement sets the password for the\n named account, which must exist:\n\nSET PASSWORD FOR \'jeffrey\'@\'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.7/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(). If SET PASSWORD rejects the password as not being\n in the correct format, it may be necessary to change old_passwords to\n change the hashing method. For example, if the account uses the\n mysql_native_password plugin, the old_passwords value must be 0:\n\nSET old_passwords = 0;\nSET PASSWORD FOR \'jeffrey\'@\'localhost\' = PASSWORD(\'<PASSWORD>\');\n\n If the old_passwords value differs from that required by the\n authentication plugin, the hashed password value returned by\n PASSWORD() is not acceptable for that plugin, and attempts to set the\n password produce an error. For example:\n\nmysql> SET old_passwords = 1;\nmysql> SET PASSWORD FOR \'jeff<PASSWORD>\'@\'localhost\' = PASSWORD(\'<PASSWORD>\');\nERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number\n\n Permitted old_passwords values are described later in this section.\n\no Using the OLD_PASSWORD() function (permitted before MySQL 5.7.5\n only):\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\n *Note*: Passwords that use the pre-4.1 hashing method are less secure\n than passwords that use the native password hashing method and should\n be avoided. Pre-4.1 passwords are deprecated and support for them is\n removed in MySQL 5.7.5. Consequently, OLD_PASSWORD() is deprecated\n and is removed in MySQL 5.7.5.\n\no Using a string without PASSWORD() or OLD_PASSWORD()\n\n For this syntax, the meaning differs in MySQL 5.7.6 and up from\n earlier versions:\n\n o As of MySQL 5.7.6, SET PASSWORD interprets the string as a\n cleartext string and hashes it appropriately for the account\n authentication plugin before storing it in the mysql.user account\n row.\n\n o Before MySQL 5.7.6, SET PASSWORD interprets the string as a hashed\n password value to be stored directly. The string must be hashed in\n the format required by the account authentication plugin.\n\nFor more information about setting passwords, see\nhttp://dev.mysql.com/doc/refman/5.7/en/assigning-passwords.html\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/set-password.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/set-password.html'),(287,'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.7/en/information-functions.html\n\n','mysql> SELECT DATABASE();\n -> \'test\'\n','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(288,'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.7/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.7/en/control-flow-functions.html'),(289,'POINTFROMWKB',33,'PointFromWKB(wkb[,srid])\n\nST_PointFromWKB() and PointFromWKB() are synonyms. For more\ninformation, see the description of ST_PointFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(290,'POWER',3,'Syntax:\nPOWER(X,Y)\n\nThis is a synonym for POW().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html'),(291,'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.7/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.7/en/mathematical-functions.html'),(292,'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\n*Note*: These statements are deprecated and will be removed in a future\nMySQL release. Use the Performance Schema instead; see\nhttp://dev.mysql.com/doc/refman/5.7/en/performance-schema-query-profili\nng.html.\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.7/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.7/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.7/en/show-profile.html'),(293,'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.0E0, the function returns NULL and (as\nof MySQL 5.7.4) a warning \"Invalid argument for logarithm\" is reported.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(294,'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.7/en/return.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/return.html'),(295,'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\nIn MySQL 5.7, it is not possible to set @@session.sql_log_bin within a\ntransaction or subquery. (Bug #53437)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/set-sql-log-bin.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/set-sql-log-bin.html'),(296,'AES_DECRYPT',12,'Syntax:\nAES_DECRYPT(crypt_str,key_str[,init_vector])\n\nThis function decrypts data using the official AES (Advanced Encryption\nStandard) algorithm. For more information, see the description of\nAES_ENCRYPT().\n\nThe optional initialization vector argument, init_vector, is available\nas of MySQL 5.7.4. As of that version, statements that use\nAES_DECRYPT() are unsafe for statement-based replication and cannot be\nstored in the query cache.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(297,'COERCIBILITY',17,'Syntax:\nCOERCIBILITY(str)\n\nReturns the collation coercibility value of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/information-functions.html'),(298,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(299,'GLENGTH',13,'GLength(ls)\n\nGLength() is a nonstandard name. It corresponds to the OpenGIS\nST_Length() function. (There is an existing SQL function Length() that\ncalculates the length of string values.)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(300,'ST_ASGEOJSON',7,'ST_AsGeoJSON(g [, max_dec_digits [, options]])\n\nGenerates a GeoJSON object from the geometry g. The object string has\nthe connection character set and collation.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html\n\n','mysql> SELECT ST_AsGeoJSON(ST_GeomFromText(\"POINT(11.11111 12.22222)\"),2);\n+-------------------------------------------------------------+\n| ST_AsGeoJSON(ST_GeomFromText(\"POINT(11.11111 12.22222)\"),2) |\n+-------------------------------------------------------------+\n| {\"type\":\"Point\",\"coordinates\":[11.11,12.22]} |\n+-------------------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html'),(301,'ST_BUFFER_STRATEGY',26,'ST_Buffer_Strategy(strategy[,points_per_circle])\n\nThis function returns a strategy byte string for use with ST_Buffer()\nto influence buffer computation. The result is NULL if any argument is\nNULL. If any argument is invalid, an ER_WRONG_ARGUMENTS error occurs.\n\nInformation about strategies is available at Boost.org\n(http://www.boost.org).\n\nThe first argument must be a string indicating a strategy option:\n\no For point strategies, permitted values are \'point_circle\' and\n \'point_square\'.\n\no For join strategies, permitted values are \'join_round\' and\n \'join_miter\'.\n\no For end strategies, permitted values are \'end_round\' and \'end_flat\'.\n\nIf the first argument is \'point_circle\', \'join_round\', \'join_miter\',\n\'end_round\', the points_per_circle argument must be given as a positive\nnumeric value. The maximum points_per_circle value is the value of the\nmax_points_in_geometry system variable as of MySQL 5.7.8, 65,536 before\nthat. If the first argument is \'point_square\' or \'end_flat\', the\npoints_per_circle argument must not be given or an ER_WRONG_ARGUMENTS\nerror occurs.\n\nFor examples, see the description of ST_Buffer().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(302,'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.7/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.7/en/string-functions.html'),(303,'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.7/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.7/en/string-functions.html'),(304,'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.7/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.7/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.7/en/group-by-functions.html'),(305,'REPLACE',28,'Syntax:\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name\n [PARTITION (partition_name,...)] \n [(col_name,...)]\n {VALUES | VALUE} ({expr | DEFAULT},...),(...),...\n\nOr:\n\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name\n [PARTITION (partition_name,...)] \n SET col_name={expr | DEFAULT}, ...\n\nOr:\n\nREPLACE [LOW_PRIORITY | DELAYED]\n [INTO] tbl_name\n [PARTITION (partition_name,...)] \n [(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.7/en/insert-on-duplicate.html.\n\nDELAYED inserts and replaces were deprecated in MySQL 5.6.6. In MySQL\n5.7, DELAYED is not supported. The server recognizes but ignores the\nDELAYED keyword, handles the replace as a nondelayed replace, and\ngenerates an ER_WARN_LEGACY_SYNTAX_CONVERTED warning. (\"REPLACE DELAYED\nis no longer supported. The statement was converted to REPLACE.\") The\nDELAYED keyword will be removed in a future release.\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\nIf a generated column is replaced explicitly, the only permitted value\nis DEFAULT(). For information about generated columns, see\nhttp://dev.mysql.com/doc/refman/5.7/en/create-table.html#create-table-g\nenerated-columns.\n\nTo use REPLACE, you must have both the INSERT and DELETE privileges for\nthe table.\n\nREPLACE supports explicit partition selection using the PARTITION\nkeyword with a comma-separated list of names of partitions,\nsubpartitions, or both. As with INSERT, if it is not possible to insert\nthe new row into any of these partitions or subpartitions, the REPLACE\nstatement fails with the error Found a row not matching the given\npartition set. See\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html, for\nmore information.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/replace.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/replace.html'),(306,'CURRENT_TIMESTAMP',32,'Syntax:\nCURRENT_TIMESTAMP, CURRENT_TIMESTAMP([fsp])\n\nCURRENT_TIMESTAMP and CURRENT_TIMESTAMP() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(307,'ST_SYMDIFFERENCE',26,'ST_SymDifference(g1, g2)\n\nReturns a geometry that represents the point set symmetric difference\nof the geometry values g1 and g2, which is defined as:\n\ng1 symdifference g2 := (g1 union g2) difference (g1 intersection g2)\n\nOr, in function call notation:\n\nST_SymDifference(g1, g2) = ST_Difference(ST_Union(g1, g2), ST_Intersection(g1, g2))\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @g1 = POINT(1,1), @g2 = POINT(2,2);\nmysql> SELECT ST_AsText(ST_SymDifference(@g1, @g2));\n+-------------------------------------------+\n| ST_AsText(ST_SymDifference(@g1, @g2)) |\n+-------------------------------------------+\n| GEOMETRYCOLLECTION(POINT(1 1),POINT(2 2)) |\n+-------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(308,'GTID_SUBSET',7,'Syntax:\nGTID_SUBSET(subset,set)\n\nGiven two sets of global transaction IDs subset and set, returns true\nif all GTIDs in subset are also in set. Returns false otherwise.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html\n\n','mysql> SELECT GTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:23\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\')\\G\n*************************** 1. row ***************************\nGTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:23\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\'): 1\n1 row in set (0.00 sec)\n\nmysql> SELECT GTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:23-25\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\')\\G\n*************************** 1. row ***************************\nGTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:23-25\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\'): 1\n1 row in set (0.00 sec)\n\nmysql> SELECT GTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:20-25\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\')\\G\n*************************** 1. row ***************************\nGTID_SUBSET(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:20-25\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\'): 0\n1 row in set (0.00 sec)\n','http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html'),(309,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(310,'DATETIME',23,'DATETIME[(fsp)]\n\nA date and time combination. The supported range is \'1000-01-01\n00:00:00.000000\' to \'9999-12-31 23:59:59.999999\'. MySQL displays\nDATETIME values in \'YYYY-MM-DD HH:MM:SS[.fraction]\' format, but permits\nassignment of values to DATETIME columns using either strings or\nnumbers.\n\nAn optional fsp value in the range from 0 to 6 may be given to specify\nfractional seconds precision. A value of 0 signifies that there is no\nfractional part. If omitted, the default precision is 0.\n\nAutomatic initialization and updating to the current date and time for\nDATETIME columns can be specified using DEFAULT and ON UPDATE column\ndefinition clauses, as described in\nhttp://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html'),(311,'CHANGE REPLICATION FILTER',8,'Syntax:\nCHANGE REPLICATION FILTER filter[, filter][, ...]\n\nfilter:\n REPLICATE_DO_DB = (db_list)\n | REPLICATE_IGNORE_DB = (db_list)\n | REPLICATE_DO_TABLE = (tbl_list)\n | REPLICATE_IGNORE_TABLE = (tbl_list)\n | REPLICATE_WILD_DO_TABLE = (wild_tbl_list)\n | REPLICATE_WILD_IGNORE_TABLE = (wild_tbl_list)\n | REPLICATE_REWRITE_DB = (db_pair_list)\n\ndb_list:\n db_name[, db_name][, ...]\n\ntbl_list:\n db_name.table_name[, db_table_name][, ...]\nwild_tbl_list:\n \'db_pattern.table_pattern\'[, \'db_pattern.table_pattern\'][, ...]\n\ndb_pair_list:\n (db_pair)[, (db_pair)][, ...]\n\ndb_pair:\n from_db, to_db\n\nIn MySQL 5.7.3 and later, CHANGE REPLICATION FILTER sets one or more\nreplication filtering rules on the slave in the same way as starting\nthe slave mysqld with replication filtering options such as\n--replicate-do-db or --replicate-wild-ignore-table. Unlike the case\nwith the server options, this statement does not require restarting the\nserver to take effect, only that the slave SQL thread be stopped using\nSTOP SLAVE SQL_THREAD first (and restarted with START SLAVE SQL_THREAD\nafterwards).\n\nThe following list shows the CHANGE REPLICATION FILTER options and how\nthey relate to --replicate-* server options:\n\no REPLICATE_DO_DB: Include updates based on database name. Equivalent\n to --replicate-do-db.\n\no REPLICATE_IGNORE_DB: Exclude updates based on database name.\n Equivalent to --replicate-ignore-db.\n\no REPLICATE_DO_TABLE: Include updates based on table name. Equivalent\n to --replicate-do-table.\n\no REPLICATE_IGNORE_TABLE: Exclude updates based on table name.\n Equivalent to --replicate-ignore-table.\n\no REPLICATE_WILD_DO_TABLE: Include updates based on wildcard pattern\n matching table name. Equivalent to --replicate-wild-do-table.\n\no REPLICATE_WILD_IGNORE_TABLE: Exclude updates based on wildcard\n pattern matching table name. Equivalent to\n --replicate-wild-ignore-table.\n\no REPLICATE_REWRITE_DB: Perform updates on slave after substituting new\n name on slave for specified database on master. Equivalent to\n --replicate-rewrite-db.\n\nThe precise effects of REPLICATE_DO_DB and REPLICATE_IGNORE_DB filters\nare dependent on whether statement-based or row-based replication is in\neffect. See\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-rules.html, for more\ninformation.\n\nMultiple replication filtering rules can be created in a single CHANGE\nREPLICATION FILTER statement by separating the rules with commas, as\nshown here:\n\nCHANGE REPLICATION FILTER\n REPLICATE_DO_DB = (d1), REPLICATE_IGNORE_DB = (d2);\n\nIssuing the statement just shown is equivalent to starting the slave\nmysqld with the options --replicate-do-db=d1 --replicate-ignore-db=d2.\n\nIf the same filtering rule is specified multiple times, only the last\nsuch rule is actually used. For example, the two statements shown here\nhave exactly the same effect, because the first REPLICATE_DO_DB rule in\nthe first statement is ignored:\n\nCHANGE REPLICATION FILTER \n REPLICATION_DO_DB = (db1, db2), REPLICATE_DO_DB = (db3, db4);\n\nCHANGE REPLICATION FILTER \n REPLICATE_DO_DB = (db3,db4);\n\n*Caution*: This behavior differs from that of the --replicate-* filter\noptions where specifying the same option multiple times causes the\ncreation of multiple filter rules.\n\nNames of tables and database not containing any special characters need\nnot be quoted. Values used with REPLICATION_WILD_TABLE and\nREPLICATION_WILD_IGNORE_TABLE are string expressions, possibly\ncontaining (special) wildcard characters, and so must be quoted. This\nis shown in the following example statements:\n\nCHANGE REPLICATION FILTER \n REPLICATE_WILD_DO_TABLE = (\'db1.old%\');\n\nCHANGE REPLICATION FILTER \n REPLICATE_WILD_IGNORE_TABLE = (\'db1.new%\', \'db2.new*\');\n\nValues used with REPLICATE_REWRITE_DB represent pairs of database\nnames; each such value must be enclosed in parentheses. The following\nstatement rewrites statements occurring on database dbA on the master\nto database dbB on the slave:\n\nCHANGE REPLICATION FILTER REPLICATE_REWRITE_DB = ((db1, db2));\n\nThe statement just shown contains two sets of parentheses, one\nenclosing the pair of database names, and the other enclosing the\nentire list. This is perhap more easily seen in the following example,\nwhich creates two rewrite-db rules, one rewriting database dbA to dbB,\nand one rewriting database dbC to dbD:\n\nCHANGE REPLICATION FILTER \n REPLICATE_REWRITE_DB = ((dbA, dbB), (dbC, dbD));\n\nThis statement leaves any existing replication filtering rules\nunchanged; to unset all filters of a given type, set the filter\'s value\nto an explicitly empty list, as shown in this example, which removes\nall existing REPLICATE_DO_DB and REPLICATE_IGNORE_DB rules:\n\nCHANGE REPLICATION FILTER \n REPLICATE_DO_DB = (), REPLICATE_IGNORE_DB = ();\n\nSetting a filter to empty in this way removes all existing rules, does\nnot create any new ones, and does not restore any rules set at mysqld\nstartup using --replicate-* options on the command line or in the\nconfiguration file.\n\nValues employed with REPLICATE_WILD_DO_TABLE and\nREPLICATE_WILD_IGNORE_TABLE must be in the format db_name.tbl_name.\nPrior to MySQL 5.7.5, this was not strictly enforced, although using\nnonconforming values with these options could lead to erroneous results\n(Bug #18095449).\n\nFor more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-rules.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/change-replication-filter.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/change-replication-filter.html'),(312,'INTEGER',23,'INTEGER[(M)] [UNSIGNED] [ZEROFILL]\n\nThis type is a synonym for INT.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(313,'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.7/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.7/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:\n\no auto_increment for columns that have the AUTO_INCREMENT attribute\n\no on update CURRENT_TIMESTAMP for TIMESTAMP or DATETIME columns that\n have the ON UPDATE CURRENT_TIMESTAMP attribute\n\no VIRTUAL GENERATED or VIRTUAL STORED for generated columns\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.7/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.7/en/show-columns.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-columns.html'),(314,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(315,'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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(316,'^',19,'Syntax:\n^\n\nBitwise XOR:\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/bit-functions.html'),(317,'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.7/en/drop-view.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-view.html'),(318,'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.7/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(319,'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.7/en/drop-function-udf.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-function-udf.html'),(320,'ST_VALIDATE',7,'ST_Validate(g)\n\nValidates a geometry according to the OGC specification. ST_Validate()\nreturns the geometry if it is a valid geometry byte string and is\ngeometrically valid, NULL if the argument is not a valid geometry byte\nstring or is not geometrically valid or is NULL.\n\nA geometry can be a valid geometry byte string (WKB value plus SRID)\nbut geometrically invalid. For example, this polygon is geometrically\ninvalid: POLYGON((0 0, 0 0, 0 0, 0 0, 0 0))\n\nST_Validate() can be used to filter out invalid geometry data, although\nat a cost. For applications that require more precise results not\ntainted by invalid data, this penalty may be worthwhile.\n\nIf the geometry argument is valid, it is returned as is, except that if\nan input Polygon or MultiPolygon has clockwise rings, those rings are\nreversed before checking for validity. If the geometry is valid, the\nvalue with the reversed rings is returned.\n\nThe only valid empty geometry is represented in the form of an empty\ngeometry collection value. ST_Validate() returns it directly without\nfurther checks in this case.\n\nST_Validate() works only for the cartesian coordinate system and\nrequires a geometry argument with an SRID of 0. An ER_WRONG_ARGUMENTS\nerror occurs otherwise.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html\n\n','mysql> SET @ls1 = ST_GeomFromText(\'LINESTRING(0 0)\');\nmysql> SET @ls2 = ST_GeomFromText(\'LINESTRING(0 0, 1 1)\');\nmysql> SELECT ST_AsText(ST_Validate(@ls1));\n+------------------------------+\n| ST_AsText(ST_Validate(@ls1)) |\n+------------------------------+\n| NULL |\n+------------------------------+\nmysql> SELECT ST_AsText(ST_Validate(@ls2));\n+------------------------------+\n| ST_AsText(ST_Validate(@ls2)) |\n+------------------------------+\n| LINESTRING(0 0,1 1) |\n+------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-convenience-functions.html'),(321,'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.\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.7/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.7/en/xml-functions.html'),(322,'ST_POINTFROMGEOHASH',7,'ST_PointFromGeoHash(geohash_str, srid)\n\nReturns a POINT value containing the decoded geohash value, given a\ngeohash string value. The X and Y coordinates of the point are the\nlongitude in the range [-180, 180] and the latitude in the range [-90,\n90], respectively. The srid value is an unsigned 32-bit integer. The\nresult is NULL if any argument is NULL. An error occurs if any argument\nis invalid.\n\nThe remarks in the description of ST_LatFromGeoHash() regarding the\nmaximum number of characters processed from the geohash_str argument\nalso apply to ST_PointFromGeoHash().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html\n\n','mysql> SET @gh = ST_GeoHash(45,-20,10);\nmysql> SELECT ST_AsText(ST_PointFromGeoHash(@gh,0));\n+---------------------------------------+\n| ST_AsText(ST_PointFromGeoHash(@gh,0)) |\n+---------------------------------------+\n| POINT(45 -20) |\n+---------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html'),(323,'RESET SLAVE',8,'Syntax:\nRESET SLAVE [ALL] [channel_option]\n\nchannel_option: \nFOR CHANNEL channel\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 clears the master info and relay log info repositories,\ndeletes all the relay log files, and starts a new relay log file. It\nalso resets to 0 the replication delay specified with the MASTER_DELAY\noption to CHANGE MASTER TO. To use RESET SLAVE, the slave replication\nthreads must be stopped (use STOP SLAVE if necessary).\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.7 (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 by RESET SLAVE ALL. (RESET SLAVE\nfollowed by a restart of the slave mysqld also does this.)\n\nPrior to MySQL 5.7.5, RESET SLAVE ALL did not clear the\nIGNORE_SERVER_IDS list set by CHANGE MASTER TO. In MySQL 5.7.5 and\nlater, the statement clears the list. (Bug #18816897)\n\nIn MySQL 5.7, RESET SLAVE causes an implicit commit of an ongoing\ntransaction. See\nhttp://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html.\n\nThe optional FOR CHANNEL channel clause added in MySQL 5.7.6 enables\nyou to choose which replication channel the statement applies to. If no\nclause is set and no extra channels exist, the statement applies to the\ndefault channel and behaves the same as versions of MySQL prior to\n5.7.6. Providing a FOR CHANNEL channel clause applies the RESET SLAVE\nstatement to a specific replication channel. If a RESET SLAVE statement\ndoes not have a channel defined when using multiple channels, all slave\nchannels are reset. Combining a FOR CHANNEL channel clause with the ALL\noption deletes all existing channels, purges their relay log files, and\nrecreates only the default channel. See\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-channels.html for\nmore information.\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\nPrior to MySQL 5.7.5, RESET SLAVE also had the effect of resetting both\nthe heartbeat period (Slave_heartbeat_period) and\nSSL_VERIFY_SERVER_CERT. This issue is fixed in MySQL 5.7.5 and later.\n(Bug #18777899, Bug #18778485)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/reset-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/reset-slave.html'),(324,'DAY',32,'Syntax:\nDAY(date)\n\nDAY() is a synonym for DAYOFMONTH().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(325,'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.7/en/miscellaneous-functions.html\n\n','mysql> SELECT UUID();\n -> \'6ccd780c-baba-1026-9564-0040f4311e29\'\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(326,'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.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(327,'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. If the argument is NULL or\nnegative, SLEEP() produces a warning, or an error in strict SQL mode.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(328,'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.7/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.7/en/control-flow-functions.html'),(329,'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.7/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.7/en/mathematical-functions.html'),(330,'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.7/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.7/en/date-and-time-functions.html'),(331,'STOP SLAVE',8,'Syntax:\nSTOP SLAVE [thread_types]\n\nthread_types:\n [thread_type [, thread_type] ... ]\n\nthread_type: IO_THREAD | SQL_THREAD\n\nchannel_option: \nFOR CHANNEL channel\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.7/en/server-shutdown.html, for more\ninformation).\n\nWhen using the row-based logging format: You should execute STOP SLAVE\nor STOP SLAVE SQL_THREAD on the slave prior to shutting down the slave\nserver if you are replicating any tables that use a nontransactional\nstorage engine (see the Note later in this section).\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\nIn MySQL 5.7, STOP SLAVE causes an implicit commit of an ongoing\ntransaction. See\nhttp://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html.\n\nBeginning with MySQL 5.7.1, gtid_next must be set to AUTOMATIC before\nissuing this statement (Bug #16062608).\n\nIn MySQL 5.7.2 and later, you can control how long STOP SLAVE waits\nbefore timing out by setting the rpl_stop_slave_timeout system\nvariable. This can be used to avoid deadlocks between STOP SLAVE and\nother slave SQL statements using different client connections to the\nslave. (Bug #16856735)\n\nPrior to MySQL 5.7.4, it was necessary to issue this statement on a\nrunning slave prior to executing CHANGE MASTER TO. In MySQL 5.7.4 and\nlater, this is no longer always the case; some CHANGE MASTER TO\nstatements are now allowed while the slave is running, depending on the\nstates of the slave SQL and I/O threads. However, using STOP SLAVE\nprior to executing CHANGE MASTER TO in such cases is still supported.\nSee [HELP CHANGE MASTER TO], and\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-solutions-switch.htm\nl, for more information.\n\nThe optional FOR CHANNEL channel clause added in MySQL 5.7.6 enables\nyou to choose which replication channel the statement applies to. If no\nclause is set and no extra channels exist, the statement applies to the\ndefault channel and behaves the same as versions of MySQL prior to\n5.7.6. Providing a FOR CHANNEL channel clause applies the STOP SLAVE\nstatement to a specific replication channel. If a STOP SLAVE statement\ndoes not have a channel defined when using multiple channels, an error\nis generated. See\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-channels.html for\nmore information.\n\nWhen using statement-based replication: changing the master while it\nhas open temporary tables is potentially unsafe. This is one of the\nreasons why statement-based replication of temporary tables is not\nrecommended. You can find out whether there are any temporary tables on\nthe slave by checking the value of Slave_open_temp_tables; when using\nstatement-based replication, this value should be 0 before executing\nCHANGE MASTER TO. In MySQL 5.7.4 and later, if there are any temporary\ntables open on the slave, issuing a CHANGE MASTER TO statement after\nissuing a STOP SLAVE causes an ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO\nwarning.\n\nIssuing STOP SLAVE stops ongoing transactions which are updating only\ntransactional tables. When using a multi-threaded slave with more than\n1 thread (in other words slave_parallel_workers is greater than 1),\nstopping the slave may produce \"gaps\" in the sequence of transactions\nfrom the relay log which have been executed. In MySQL 5.7.5 and later,\nif slave_preserve_commit_order is enabled such gaps cannot occur. To\nremove gaps, use START SLAVE UNTIL SQL_AFTER_MTS_GAPS.\n\n*Note*: In MySQL 5.7, 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 you issue\na KILL QUERY or KILL CONNECTION statement. (Bug #319, Bug #38205)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/stop-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/stop-slave.html'),(332,'LINEFROMTEXT',4,'LineFromText(wkt[,srid]), LineStringFromText(wkt[,srid])\n\nST_LineFromText(), ST_LineStringFromText(), LineFromText(), and\nLineStringFromText() are synonyms. For more information, see the\ndescription of ST_LineFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(333,'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.7/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.7/en/date-and-time-functions.html'),(334,'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(). This included information about how to perform lettercase\nconversion of binary strings (BINARY, VARBINARY, BLOB) for which these\nfunctions are ineffective, and information about case folding for\nUnicode character sets.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(335,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(336,'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 format, depending on whether\nthe function is used in a string or numeric context. The value is\nexpressed 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.7/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.7/en/date-and-time-functions.html'),(337,'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\nThe return value is a nonbinary string in the connection character set.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','mysql> SELECT SHA2(\'abc\', 224);\n -> \'23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7\'\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(338,'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.7/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.7/en/control-flow-functions.html'),(339,'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.7/en/show-function-code.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-function-code.html'),(340,'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.7/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.7/en/show-errors.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-errors.html'),(341,'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.7/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.7/en/comparison-operators.html'),(342,'=',20,'=\n\nEqual:\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(343,'ST_GEOMCOLLFROMTEXT',4,'ST_GeomCollFromText(wkt[,srid]),\nST_GeometryCollectionFromText(wkt[,srid]),\nST_GeomCollFromTxt(wkt[,srid])\n\nConstructs a GeometryCollection value using its WKT representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','mysql> SET @g = \"MULTILINESTRING((10 10, 11 11), (9 9, 10 10))\";\nmysql> SELECT ST_AsText(ST_GeomCollFromText(@g));\n+--------------------------------------------+\n| ST_AsText(ST_GeomCollFromText(@g)) |\n+--------------------------------------------+\n| MULTILINESTRING((10 10,11 11),(9 9,10 10)) |\n+--------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(344,'IS_IPV4_MAPPED',14,'Syntax:\nIS_IPV4_MAPPED(expr)\n\nThis function takes an IPv6 address represented in numeric form as a\nbinary string, as returned by INET6_ATON(). It returns 1 if the\nargument is a valid IPv4-mapped IPv6 address, 0 otherwise. IPv4-mapped\naddresses have the form ::ffff:ipv4_address.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT IS_IPV4_MAPPED(INET6_ATON(\'::10.0.5.9\'));\n -> 0\nmysql> SELECT IS_IPV4_MAPPED(INET6_ATON(\'::ffff:10.0.5.9\'));\n -> 1\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(345,'CREATE USER',10,'Syntax:\nCREATE USER syntax for MySQL 5.7.6 and up:\n\nThe CREATE USER statement creates new MySQL accounts. It enables\naccount authentication properties to be established. As of MySQL 5.7.6,\nit is also possible to establish authentication, SSL, and\nresource-limit properties, account password expiration, and account\nlocking and unlocking. An error occurs if you try to create an account\nthat already exists.\n\nTo use CREATE USER, you must have the global CREATE USER privilege or\nthe INSERT privilege for the mysql database. When the read_only system\nvariable is enabled, CREATE USER additionally requires the SUPER\nprivilege.\n\nFor each account, CREATE USER creates a new row in the mysql.user\ntable. The row reflects the properties specified in the statement.\nUnspecified properties are set to their default values.\n\nExample 1: Create an account that uses the default authentication\nplugin and the given password. Mark the password expired so that the\nuser must choose a new one at the first connection to the server:\n\nCREATE USER \'jeffrey\'@\'localhost\'\n IDENTIFIED BY \'new-password\' PASSWORD EXPIRE;\n\nExample 2: Create an account that uses the sha256_password\nauthentication plugin and the given password. Require that a new\npassword be chosen every 180 days:\n\nCREATE USER \'jeffrey\'@\'localhost\'\n IDENTIFIED WITH sha256_password BY \'<PASSWORD>\'\n PASSWORD EXPIRE INTERVAL 180 DAY;\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/create-user.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-user.html'),(346,'POINT',25,'Point(x,y)\n\nConstructs a Point using its coordinates.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(347,'LCASE',38,'Syntax:\nLCASE(str)\n\nLCASE() is a synonym for LOWER().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(348,'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.7/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.7/en/comparison-operators.html'),(349,'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 InnoDB or MyISAM tables, and\n can be created only for CHAR, VARCHAR, or TEXT columns.\n\no As of MySQL 5.7.6, MySQL provides a built-in full-text ngram parser\n that supports Chinese, Japanese, and Korean (CJK), and an installable\n MeCab full-text parser plugin for Japanese. Parsing differences are\n outlined in\n http://dev.mysql.com/doc/refman/5.7/en/fulltext-search-ngram.html,\n and\n http://dev.mysql.com/doc/refman/5.7/en/fulltext-search-mecab.html.\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. For more information about\n stopword lists, see\n http://dev.mysql.com/doc/refman/5.7/en/fulltext-stopwords.html.\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.7/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. Certain common words (stopwords)\n are omitted from the search index and do not match if present in the\n search string. The IN BOOLEAN MODE modifier specifies a boolean\n search. For more information, see\n http://dev.mysql.com/doc/refman/5.7/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.7/en/fulltext-query-expansion.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/fulltext-search.html'),(350,'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.7/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.7/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.7/en/create-event.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-event.html'),(351,'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.7/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.7/en/gis-class-geometry.html'),(352,'ST_DIFFERENCE',26,'ST_Difference(g1, g2)\n\nReturns a geometry that represents the point set difference of the\ngeometry values g1 and g2.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @g1 = POINT(1,1), @g2 = POINT(2,2);\nmysql> SELECT ST_AsText(ST_Difference(@g1, @g2));\n+------------------------------------+\n| ST_AsText(ST_Difference(@g1, @g2)) |\n+------------------------------------+\n| POINT(1 1) |\n+------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(353,'GEOMETRYCOLLECTION',25,'GeometryCollection(g1,g2,...)\n\nConstructs a GeometryCollection.\n\nAs of MySQL 5.7.5, GeometryCollection() returns all the proper\ngeometries contained in the argument even if a nonsupported geometry is\npresent. Before 5.7.5, if the argument contains a nonsupported\ngeometry, the return value is NULL.\n\nAs of MySQL 5.7.8, GeometryCollection() with no arguments is permitted\nas a way to create an empty geometry.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-mysql-specific-functions.html'),(354,'*',3,'Syntax:\n*\n\nMultiplication:\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/arithmetic-functions.html'),(355,'ST_ASBINARY',33,'ST_AsBinary(g), ST_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.7/en/gis-format-conversion-functions.html\n\n','SELECT ST_AsBinary(g) FROM geom;\n','http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html'),(356,'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.7/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\n*Note*: The DES_ENCRYPT() and DES_DECRYPT() functions are deprecated as\nof MySQL 5.7.6, will be removed in a future MySQL release, and should\nno longer be used. Consider using AES_ENCRYPT() and AES_DECRYPT()\ninstead.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(357,'ST_AREA',2,'ST_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\nAdditionally, as of MySQL 5.7.5: The result is the sum of the area\nvalues of all components for a geometry collection. If a geometry\ncollection is empty, its area is returned as 0.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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 ST_Area(ST_GeomFromText(@poly));\n+---------------------------------+\n| ST_Area(ST_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 ST_Area(ST_GeomFromText(@mpoly));\n+----------------------------------+\n| ST_Area(ST_GeomFromText(@mpoly)) |\n+----------------------------------+\n| 8 |\n+----------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(358,'ENDPOINT',13,'EndPoint(ls)\n\nST_EndPoint() and EndPoint() are synonyms. For more information, see\nthe description of ST_EndPoint().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(359,'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.7/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.7/en/group-by-functions.html'),(360,'INSERT',28,'Syntax:\nINSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE]\n [INTO] tbl_name\n [PARTITION (partition_name,...)] \n [(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 [PARTITION (partition_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\n [PARTITION (partition_name,...)] \n [(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\nWhen inserting into a partitioned table, you can control which\npartitions and subpartitions accept new rows. The PARTITION option\ntakes a comma-separated list of the names of one or more partitions or\nsubpartitions (or both) of the table. If any of the rows to be inserted\nby a given INSERT statement do not match one of the partitions listed,\nthe INSERT statement fails with the error Found a row not matching the\ngiven partition set. See\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html, for\nmore information and examples.\n\nIn MySQL 5.7, the DELAYED keyword is accepted but ignored by the\nserver. See [HELP INSERT DELAYED], for the reasons for this.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/insert.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/insert.html'),(361,'MLINEFROMTEXT',4,'MLineFromText(wkt[,srid]), MultiLineStringFromText(wkt[,srid])\n\nST_MLineFromText(), ST_MultiLineStringFromText(), MLineFromText(), and\nMultiLineStringFromText() are synonyms. For more information, see the\ndescription of ST_MLineFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(362,'GEOMCOLLFROMWKB',33,'GeomCollFromWKB(wkb[,srid]), GeometryCollectionFromWKB(wkb[,srid])\n\nST_GeomCollFromWKB(), ST_GeometryCollectionFromWKB(),\nGeomCollFromWKB(), and GeometryCollectionFromWKB() are synonyms. For\nmore information, see the description of ST_GeomCollFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(363,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(364,'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.7/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.7/en/miscellaneous-functions.html'),(365,'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 doing substantial insert, update, or delete operations on\n columns that are part of a FULLTEXT index in an InnoDB table. Set the\n configuration option innodb_optimize_fulltext_only=1 first. To keep\n the index maintenance period to a reasonable time, set the\n innodb_ft_num_word_optimize option to specify how many words to\n update in the search index, and run a sequence of OPTIMIZE TABLE\n statements until the search index is fully updated.\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.7/en/partitioning-maintenance.html.\n\nIn MySQL 5.7.1, gtid_next must be set to AUTOMATIC before issuing this\nstatement. This restriction does not apply in MySQL 5.7.2 or later.\n(Bug #16062608, Bug #16715809, Bug #69045)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/optimize-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/optimize-table.html'),(366,'DECODE',12,'Syntax:\nDECODE(crypt_str,pass_str)\n\nDECODE() decrypts the encrypted string crypt_str using pass_str as the\npassword. crypt_str should be a string returned from ENCODE().\n\n*Note*: The ENCODE() and DECODE() functions are deprecated in MySQL\n5.7, will be removed in a future MySQL release, and should no longer be\nused. Consider using AES_ENCRYPT() and AES_DECRYPT() instead.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(367,'<=>',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\nThe <=> operator is equivalent to the standard SQL IS NOT DISTINCT FROM\noperator.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(368,'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.7/en/implicit-commit.html.\n\nIn MySQL 5.7.1, gtid_next must be set to AUTOMATIC before issuing this\nstatement. This restriction does not apply in MySQL 5.7.2 or later.\n(Bug #16062608, Bug #16715809, Bug #69045)\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/reset.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/reset.html'),(369,'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. A negative timeout value means infinite\ntimeout.\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() or your connection terminates (either normally or\nabnormally). Lock release may also occur with another call to\nGET_LOCK():\n\no Before 5.7.5, only a single simultaneous lock can be acquired and\n GET_LOCK() releases any existing lock.\n\no In MySQL 5.7.5, GET_LOCK() was reimplemented using the metadata\n locking (MDL) subsystem and its capabilities were extended. Multiple\n simultaneous locks can be acquired and GET_LOCK() does not release\n any existing locks. It is even possible for a given session to\n acquire multiple locks for the same name. Other sessions cannot\n acquire a lock with that name until the acquiring session releases\n all its locks for the name.\n\n As a result of the MDL reimplementation, locks acquired with\n GET_LOCK() appear in the Performance Schema metadata_locks table. The\n OBJECT_TYPE column says USER LEVEL LOCK and the OBJECT_NAME column\n indicates the lock name. Also, the capability of acquiring multiple\n locks introduces the possibility of deadlock among clients. An\n ER_USER_LOCK_DEADLOCK error is returned when this occurs.\n\nThe difference in lock acquisition behavior as of MySQL 5.7.5 can be\nseen by the following example. Suppose that you execute these\nstatements:\n\nSELECT GET_LOCK(\'lock1\',10);\nSELECT GET_LOCK(\'lock2\',10);\nSELECT RELEASE_LOCK(\'lock2\');\nSELECT RELEASE_LOCK(\'lock1\');\n\nIn MySQL 5.7.5 or later, the second GET_LOCK() acquires a second lock\nand both RELEASE_LOCK() calls return 1 (success). Before MySQL 5.7.5,\nthe second GET_LOCK() releases the first lock (\'lock1\') and the second\nRELEASE_LOCK() returns NULL (failure) because there is no \'lock1\' to\nrelease.\n\nMySQL 5.7.5 and later enforces a maximum length on lock names of 64\ncharacters. Previously, no limit was enforced.\n\nLocks obtained with GET_LOCK() do not interact with transactions. That\nis, committing a transaction does not release any such locks obtained\nduring 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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(370,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(371,'CURTIME',32,'Syntax:\nCURTIME([fsp])\n\nReturns the current time as a value in \'HH:MM:SS\' or HHMMSS format,\ndepending on whether the function is used in a string or numeric\ncontext. The value is expressed in the current time zone.\n\nIf the fsp argument is given to specify a fractional seconds precision\nfrom 0 to 6, the return value includes a fractional seconds part of\nthat many digits.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(372,'ST_DIMENSION',37,'ST_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.7/en/gis-class-geometry.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','mysql> SELECT ST_Dimension(ST_GeomFromText(\'LineString(1 1,2 2)\'));\n+------------------------------------------------------+\n| ST_Dimension(ST_GeomFromText(\'LineString(1 1,2 2)\')) |\n+------------------------------------------------------+\n| 1 |\n+------------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(373,'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.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/set-statement.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/set-statement.html'),(374,'TO_BASE64()',38,'Syntax:\nTO_BASE64(str)\n\nConverts the string argument to base-64 encoded form and returns the\nresult as a character string with the connection character set and\ncollation. If the argument is not a string, it is converted to a string\nbefore conversion takes place. The result is NULL if the argument is\nNULL. Base-64 encoded strings can be decoded using the FROM_BASE64()\nfunction.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','mysql> SELECT TO_BASE64(\'abc\'), FROM_BASE64(TO_BASE64(\'abc\'));\n -> \'JWJj\', \'abc\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(375,'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.7/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.7/en/mathematical-functions.html'),(376,'ST_MPOINTFROMTEXT',4,'ST_MPointFromText(wkt[,srid]), ST_MultiPointFromText(wkt[,srid])\n\nConstructs a MultiPoint value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(377,'LOAD XML',28,'Syntax:\nLOAD XML [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE \'file_name\'\n [REPLACE | IGNORE]\n INTO TABLE [db_name.]tbl_name\n [PARTITION (partition_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 PARTITION\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.7/en/load-xml.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/load-xml.html'),(378,'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.7/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.7/en/assignment-operators.html'),(379,'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.7/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.7/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-open-tables.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-open-tables.html'),(380,'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.7/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.7/en/date-and-time-functions.html'),(381,'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\n*Note*: The ENCRYPT() function is deprecated as of MySQL 5.7.6, will be\nremoved in a future MySQL release, and should no longer be used.\nConsider using AES_ENCRYPT() instead.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','mysql> SELECT ENCRYPT(\'hello\');\n -> \'VxuFAJXVARROc\'\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(382,'SHOW STATUS',27,'Syntax:\nSHOW [GLOBAL | SESSION] STATUS\n [LIKE \'pattern\' | WHERE expr]\n\n*Note*: As of MySQL 5.7.6, the value of the show_compatibility_56\nsystem variable affects the information available from and privileges\nrequired for the statement described here. For details, see the\ndescription of that variable in\nhttp://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html.\n\nSHOW STATUS provides server status information (see\nhttp://dev.mysql.com/doc/refman/5.7/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 Performance Schema tables. See\n http://dev.mysql.com/doc/refman/5.7/en/performance-schema-status-vari\n able-tables.html.\n\no The GLOBAL_STATUS and SESSION_STATUS tables. See\n http://dev.mysql.com/doc/refman/5.7/en/status-table.html.\n\no The mysqladmin extended-status command. See\n http://dev.mysql.com/doc/refman/5.7/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.7/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.7/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.7/en/show-status.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-status.html'),(383,'ST_NUMINTERIORRINGS',2,'ST_NumInteriorRing(poly), ST_NumInteriorRings(poly)\n\nReturns the number of interior rings in the Polygon value poly.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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 ST_NumInteriorRings(ST_GeomFromText(@poly));\n+---------------------------------------------+\n| ST_NumInteriorRings(ST_GeomFromText(@poly)) |\n+---------------------------------------------+\n| 1 |\n+---------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(384,'INET6_ATON',14,'Syntax:\nINET6_ATON(expr)\n\nGiven an IPv6 or IPv4 network address as a string, returns a binary\nstring that represents the numeric value of the address in network byte\norder (big endian). Because numeric-format IPv6 addresses require more\nbytes than the largest integer type, the representation returned by\nthis function has the VARBINARY data type: VARBINARY(16) for IPv6\naddresses and VARBINARY(4) for IPv4 addresses. If the argument is not a\nvalid address, INET6_ATON() returns NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT HEX(INET6_ATON(\'fdfe::5a55:caff:fefa:9089\'));\n -> \'FDFE0000000000005A55CAFFFEFA9089\'\nmysql> SELECT HEX(INET6_ATON(\'10.0.5.9\'));\n -> \'0A000509\'\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(385,'SHOW SLAVE HOSTS',27,'Syntax:\nSHOW SLAVE HOSTS\n\nDisplays a list of replication slaves currently registered with the\nmaster.\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 | Slave_UUID |\n+-----------+-----------+-------+-----------+--------------------------------------+\n| 192168010 | iconnect2 | 3306 | 192168011 | 14cb6624-7f93-11e0-b2c0-c80aa9429562 |\n| 1921680101 | athena | 3306 | 192168011 | 07af4990-f41f-11df-a566-7ac56fdaf645 |\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 A zero in this column means that the slave port (--report-port) was\n not set.\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\no Slave_UUID: The globally unique ID of this slave, as generated on the\n slave and found in the slave\'s auto.cnf file.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-slave-hosts.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-slave-hosts.html'),(386,'START TRANSACTION',8,'Syntax:\nSTART TRANSACTION\n [transaction_characteristic [, transaction_characteristic] ...]\n\ntransaction_characteristic:\n WITH CONSISTENT SNAPSHOT\n | READ WRITE\n | READ ONLY\n\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\nSTART TRANSACTION permits several modifiers that control transaction\ncharacteristics. To specify multiple modifiers, separate them by\ncommas.\n\no The WITH CONSISTENT SNAPSHOT modifier starts a consistent read for\n storage engines that are capable of it. This applies only to InnoDB.\n The effect is the same as issuing a START TRANSACTION followed by a\n SELECT from any InnoDB table. See\n http://dev.mysql.com/doc/refman/5.7/en/innodb-consistent-read.html.\n The WITH CONSISTENT SNAPSHOT modifier does not change the current\n transaction isolation level, so it provides a consistent snapshot\n only if the current isolation level is one that permits a consistent\n read. The only isolation level that permits a consistent read is\n REPEATABLE READ. For all other isolation levels, the WITH CONSISTENT\n SNAPSHOT clause is ignored. As of MySQL 5.7.2, a warning is generated\n when the WITH CONSISTENT SNAPSHOT clause is ignored.\n\no The READ WRITE and READ ONLY modifiers set the transaction access\n mode. They permit or prohibit changes to tables used in the\n transaction. The READ ONLY restriction prevents the transaction from\n modifying or locking both transactional and nontransactional tables\n that are visible to other transactions; the transaction can still\n modify or lock temporary tables.\n\n MySQL enables extra optimizations for queries on InnoDB tables when\n the transaction is known to be read-only. Specifying READ ONLY\n ensures these optimizations are applied in cases where the read-only\n status cannot be determined automatically. See\n http://dev.mysql.com/doc/refman/5.7/en/innodb-performance-ro-txn.html\n for more information.\n\n If no access mode is specified, the default mode applies. Unless the\n default has been changed, it is read/write. It is not permitted to\n specify both READ WRITE and READ ONLY in the same statement.\n\n In read-only mode, it remains possible to change tables created with\n the TEMPORARY keyword using DML statements. Changes made with DDL\n statements are not permitted, just as with permanent tables.\n\n For additional information about transaction access mode, including\n ways to change the default mode, see [HELP ISOLATION].\n\n If the read_only system variable is enabled, explicitly starting a\n transaction with START TRANSACTION READ WRITE requires the SUPER\n privilege.\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.7/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\nNDB (http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html)) are\nnot made permanent immediately. You must use COMMIT to store your\nchanges 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.7/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, is\nthe recommended way to start an ad-hoc transaction, and permits\nmodifiers that BEGIN does not.\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.7/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.7/en/commit.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/commit.html'),(387,'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.7/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.7/en/date-and-time-functions.html'),(388,'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.7/en/create-database.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-database.html'),(389,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(390,'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.7/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.7/en/string-functions.html'),(391,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(392,'~',19,'Syntax:\n~\n\nInvert all bits.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html\n\n','mysql> SELECT 5 & ~1;\n -> 4\n','http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html'),(393,'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.7/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.7/en/mathematical-functions.html'),(394,'ROW_COUNT',17,'Syntax:\nROW_COUNT()\n\nIn MySQL 5.7, 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.7/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.7/en/information-functions.html'),(395,'MBRCOVEREDBY',7,'MBRCoveredBy(g1,g2)\n\nReturns 1 or 0 to indicate whether the minimum bounding rectangle of g1\nis covered by the minimum bounding rectangle of g2. This tests the\nopposite relationship as MBRCovers().\n\nMBRCoveredBy() and MBRCovers() handle their arguments and return a\nvalue as follows:\n\no Return NULL if either argument is NULL or an empty geometry\n\no Return ER_GIS_INVALID_DATA if either argument is not a valid geometry\n byte string (SRID plus WKB value)\n\no Otherwise, return non-NULL\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html\n\n','mysql> SET @g1 = ST_GeomFromText(\'Polygon((0 0,0 3,3 3,3 0,0 0))\');\nmysql> SET @g2 = ST_GeomFromText(\'Point(1 1)\');\nmysql> SELECT MBRCovers(@g1,@g2), MBRCoveredby(@g1,@g2);\n+--------------------+-----------------------+\n| MBRCovers(@g1,@g2) | MBRCoveredby(@g1,@g2) |\n+--------------------+-----------------------+\n| 1 | 0 |\n+--------------------+-----------------------+\nmysql> SELECT MBRCovers(@g2,@g1), MBRCoveredby(@g2,@g1);\n+--------------------+-----------------------+\n| MBRCovers(@g2,@g1) | MBRCoveredby(@g2,@g1) |\n+--------------------+-----------------------+\n| 0 | 1 |\n+--------------------+-----------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(396,'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.7/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.7/en/mathematical-functions.html'),(397,'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.7/en/no-matching-rows.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(398,'CHARSET',17,'Syntax:\nCHARSET(str)\n\nReturns the character set of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/information-functions.html'),(399,'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.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(400,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFYEAR(\'2007-02-03\');\n -> 34\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(401,'%',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.7/en/mathematical-functions.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(402,'ASTEXT',33,'AsText(g), AsWKT(g)\n\nST_AsText(), ST_AsWKT(), AsText(), and AsWKT() are synonyms. For more\ninformation, see the description of ST_AsText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-format-conversion-functions.html'),(403,'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.7/en/error-messages-server.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/declare-condition.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/declare-condition.html'),(404,'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.7/en/locale-support.html).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','mysql> SELECT MONTHNAME(\'2008-02-03\');\n -> \'February\'\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(405,'NUMGEOMETRIES',26,'NumGeometries(gc)\n\nST_NumGeometries() and NumGeometries() are synonyms. For more\ninformation, see the description of ST_NumGeometries().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html'),(406,'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.7/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.7/en/date-and-time-functions.html'),(407,'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.7/en/drop-database.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-database.html'),(408,'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_RETRY_COUNT = count\n | MASTER_DELAY = interval\n | MASTER_HEARTBEAT_PERIOD = interval\n | MASTER_LOG_FILE = \'master_log_name\'\n | MASTER_LOG_POS = master_log_pos\n | MASTER_AUTO_POSITION = {0|1}\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_CRL = \'crl_file_name\'\n | MASTER_SSL_CRLPATH = \'crl_directory_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\nchannel_option: \nFOR CHANNEL channel\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 master\ninfo and relay log info repositories (see\nhttp://dev.mysql.com/doc/refman/5.7/en/slave-logs.html). In MySQL 5.7.1\nand later, gtid_next must be set to AUTOMATIC before you can use CHANGE\nMASTER TO (Bug #16062608).\n\nPrior to MySQL 5.7.4, the slave replication threads must be stopped,\nusing STOP SLAVE if necessary, before issuing this statement. In MySQL\n5.7.4 and later, you can issue CHANGE MASTER TO statements on a running\nslave without doing this, depending on the states of the slave SQL\nthread and slave I/O thread. The rules governing such use are provided\nlater in this section.\n\nWhen using a multi-threaded slave (in other words\nslave_parallel_workers is greater than 0), stopping the slave can cause\n\"gaps\" in the sequence of transactions that have been executed from the\nrelay log, regardless of whether the slave was stopped intentionally or\notherwise. When such gaps exist, issuing CHANGE MASTER TO fails. The\nsolution in this situation is to issue START SLAVE UNTIL\nSQL_AFTER_MTS_GAPS which ensures that the gaps are closed.\n\nThe optional FOR CHANNEL channel clause added in MySQL 5.7.6 enables\nyou to choose which replication channel the statement applies to. If no\nclause is set and no extra channels exist, the statement applies to the\ndefault channel and behaves the same as versions of MySQL prior to\n5.7.6. Providing a FOR CHANNEL channel clause applies the CHANGE MASTER\nTO statement to a specific replication channel, and is used to add a\nnew channel or modify an existing channel. If a CHANGE MASTER TO\nstatement does not have a channel defined when using multiple channels,\nan error is generated. See\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-channels.html for\nmore information.\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, in MySQL 5.7.3 and earlier, if\nthe password to connect to your MySQL master has changed, you just need\nto issue these statements to 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\nIn MySQL 5.7.4 and later, the STOP SLAVE and START SLAVE statements are\nnot needed with the CHANGE MASTER TO statement just shown if the I/O\nthread is stopped, as discussed later in this section.\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\n Values used for MASTER_HOST and other CHANGE MASTER TO options are\n checked for linefeed (\\n or 0x0A) characters; the presence of such\n characters in these values causes the statement to fail with\n ER_MASTER_INFO. (Bug #11758581, Bug #50801)\n\n Starting with MySQL 5.7.6, use the optional FOR CHANNEL channel\n clause to add multiple channels and create a multi-source replication\n topology. For example, to add a new channel called channel2:\n\nCHANGE MASTER TO MASTER_NAME=host1, MASTER_PORT=3002 FOR CHANNEL channel2\n\n See http://dev.mysql.com/doc/refman/5.7/en/replication-channels.html\n and\n http://dev.mysql.com/doc/refman/5.7/en/replication-multi-source.html\n for more information.\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 MASTER_USER cannot be made empty; setting MASTER_USER = \'\' or leaving\n it unset when setting a value for MASTER_PASSWORD causes an error\n (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; prior to\n MySQL 5.7.5, if the password was longer, the statement succeeded, but\n any excess characters were silently truncated. In MySQL 5.7.5 and\n later, trying to use a password of more than 32 characters causes\n CHANGE MASTER TO to fail. (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. (The complete text of a START\n SLAVE statement is also visible to SHOW PROCESSLIST.)\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.7/en/ssl-options.html, and\nhttp://dev.mysql.com/doc/refman/5.7/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 repository, but are\nignored if the slave does not have SSL support enabled.\n\nAs of MySQL 5.7.3, the MASTER_SSL=1 is prescriptive, not advisory. When\ngiven, the slave connection to the master must use SSL or the\nconnection attempt fails. Before 5.7.3, an SSL connection is permitted\nbut not required. This is analogous to the client-side meaning of the\n--ssl command-line option; see\nhttp://dev.mysql.com/doc/refman/5.7/en/ssl-options.html.\n\nMASTER_CONNECT_RETRY specifies how many seconds to wait between connect\nretries. The default is 60.\n\nMASTER_RETRY_COUNT limits the number of reconnection attempts and\nupdates the value of the Master_Retry_Count column in the output of\nSHOW SLAVE STATUS. The default value is 24 * 3600 = 86400.\nMASTER_RETRY_COUNT is intended to replace the older\n--master-retry-count server option, and is now the preferred method for\nsetting this limit. You are encouraged not to rely on\n--master-retry-count in new applications and, when upgrading to MySQL\n5.7, to update any existing applications that rely on it, so that they\nuse CHANGE MASTER TO ... MASTER_RETRY_COUNT instead.\n\nMASTER_DELAY specifies how many seconds behind the master the slave\nmust lag. An event received from the master is not executed until at\nleast interval seconds later than its execution on the master. The\ndefault is 0. An error occurs if interval is not a nonnegative integer\nin the range from 0 to 231−1. For more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-delayed.html.\n\nIn MySQL 5.7.4 and later, a CHANGE MASTER TO statement employing the\nMASTER_DELAY option can be executed on a running slave when the slave\nSQL thread is stopped.\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\nThe address configured with this option, if any, can be seen in the\nMaster_Bind column of the output from SHOW SLAVE STATUS. If you are\nusing slave status log tables (server started with\n--master-info-repository=TABLE), the value can also be seen as the\nMaster_bind column of the mysql.slave_master_info table.\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\nPrior to MySQL 5.7.4, not including MASTER_HEARTBEAT_PERIOD caused\nCHANGE MASTER TO to reset the heartbeat period (Slave_heartbeat_period)\nto the default, and Slave_received_heartbeats to 0. (Bug #18185490)\n\nIf you are logging master connection information to tables,\nMASTER_HEARTBEAT_PERIOD can be seen as the value of the Heartbeat\ncolumn of the mysql.slave_master_info table.\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 you specify either of MASTER_LOG_FILE or MASTER_LOG_POS, you also\ncannot specify MASTER_AUTO_POSITION = 1 (described later in this\nsection). If neither of MASTER_LOG_FILE or MASTER_LOG_POS is specified,\nthe slave uses the last coordinates of the slave SQL thread before\nCHANGE MASTER TO was issued. This ensures that there is no\ndiscontinuity in replication, even if the slave SQL thread was late\ncompared to the slave I/O thread, when you merely want to change, say,\nthe password to use.\n\nIn MySQL 5.7.4 and later, a CHANGE MASTER TO statement employing\nRELAY_LOG_FILE, RELAY_LOG_POS, or both options can be executed on a\nrunning slave when the slave SQL thread is stopped.\n\nIf MASTER_AUTO_POSITION = 1 is used with CHANGE MASTER TO, the slave\nattempts to connect to the master using the GTID-based replication\nprotocol. In MySQL 5.7.4 and later, this option can be employed by\nCHANGE MASTER TO only if both the slave SQL and slave I/O threads are\nstopped.\n\nWhen using GTIDs, the slave tells the master which transactions it has\nalready received, executed, or both. To compute this set, it reads the\nglobal value of gtid_executed and the value of the Retrieved_gtid_set\ncolumn from SHOW SLAVE STATUS. Since the GTID of the last transmitted\ntransaction is included in Retrieved_gtid_set even if the transaction\nwas only partially transmitted, the last received GTID is subtracted\nfrom this set. Thus, the slave computes the following set:\n\nUNION(<EMAIL>, Retrieved_gtid_set - last_received_GTID)\n\nThis set is sent to the master as part of the initial handshake, and\nthe master sends back all transactions that it has executed which are\nnot part of the set. If any of these transactions have been already\npurged from the master\'s binary log, the master sends the error\nER_MASTER_HAS_PURGED_REQUIRED_GTIDS to the slave, and replication does\nnot start.\n\nWhen GTID-based replication is employed, the coordinates represented by\nMASTER_LOG_FILE and MASTER_LOG_POS are not used, and global transaction\nidentifiers are used instead. Thus the use of either or both of these\noptions together with MASTER_AUTO_POSITION causes an error.\n\nBeginning with MySQL 5.7.1, you can see whether replication is running\nwith autopositioning enabled by checking the output of SHOW SLAVE\nSTATUS. (Bug #15992220)\n\ngtid_mode must also be enabled before issuing CHANGE MASTER TO ...\nMASTER_AUTO_POSITION = 1. Otherwise, the statement fails with an error.\n\nTo revert to the older file-based replication protocol after using\nGTIDs, you can issue a new CHANGE MASTER TO statement that specifies\nMASTER_AUTO_POSITION = 0, as well as at least one of MASTER_LOG_FILE or\nMASTER_LOG_POSITION.\n\nPrior to MySQL 5.7.4, CHANGE MASTER TO deletes all relay log files and\nstarts a new one, unless you specify RELAY_LOG_FILE or RELAY_LOG_POS.\nIn that case, relay log files are kept; the relay_log_purge global\nvariable is set silently to 0. In MySQL 5.7.4 and later, relay logs are\npreserved when neither the slave SQL thread nor the slave I/O thread is\nstopped; if both threads are stopped, all relay log files are deleted\nunless you at least one of RELAY_LOG_FILE or RELAY_LOG_POS is\nspecified.\n\nRELAY_LOG_FILE can use either an absolute or relative path, and uses\nthe same basename as MASTER_LOG_FILE. (Bug #12190)\n\nIGNORE_SERVER_IDS takes a comma-separated list of 0 or more server IDs.\nEvents originating from the corresponding servers are ignored, with the\nexception of log rotation and deletion events, which are still recorded\nin the relay log.\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\nIf a CHANGE MASTER TO statement is issued without any IGNORE_SERVER_IDS\noption, any existing list is preserved. To clear the list of ignored\nservers, it is necessary to use the option with an empty list:\n\nCHANGE MASTER TO IGNORE_SERVER_IDS = ();\n\nPrior to MySQL 5.7.5, RESET SLAVE ALL has no effect on the server ID\nlist. In MySQL 5.7.5 and later, RESET SLAVE ALL clears\nIGNORE_SERVER_IDS. (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\nIn MySQL 5.7, the master info repository and the output of SHOW SLAVE\nSTATUS provide the list of servers that are currently ignored. For more\ninformation, see\nhttp://dev.mysql.com/doc/refman/5.7/en/slave-logs-status.html, and\n[HELP SHOW SLAVE STATUS].\n\nIn MySQL 5.7, invoking CHANGE MASTER TO causes the previous values for\nMASTER_HOST, MASTER_PORT, MASTER_LOG_FILE, and MASTER_LOG_POS to be\nwritten to the error log, along with other information about the\nslave\'s state prior to execution.\n\nIn MySQL 5.7, CHANGE MASTER TO causes an implicit commit of an ongoing\ntransaction. See\nhttp://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html.\n\nIn MySQL 5.7.4 and later, the strict requirement to execute STOP SLAVE\nprior to issuing any CHANGE MASTER TO statement (and START SLAVE\nafterward) is removed. Instead of depending on whether the slave is\nstopped, the behavior of CHANGE MASTER TO depends (in MySQL 5.7.4 and\nlater) on the states of the slave SQL thread and slave I/O threads;\nwhich of these threads is stopped or running now determines the options\nthat can or cannot be used with a CHANGE MASTER TO statement at a given\npoint in time. The rules for making this determination are listed here:\n\no If the SQL thread is stopped, you can execute CHANGE MASTER TO using\n any combination that is otherwise allowed of RELAY_LOG_FILE,\n RELAY_LOG_POS, and MASTER_DELAY options, even if the slave I/O thread\n is running. No other options may be used with this statement when the\n I/O thread is running.\n\no If the I/O thread is stopped, you can execute CHANGE MASTER TO using\n any of the options for this statement (in any allowed combination)\n except RELAY_LOG_FILE, RELAY_LOG_POS, or MASTER_DELAY, even when the\n SQL thread is running. These three options may not be used when the\n I/O thread is running.\n\no Both the SQL thread and the I/O thread must be stopped before issuing\n a CHANGE MASTER TO statement that employs MASTER_AUTO_POSITION = 1.\n\nYou can check the current state of the slave SQL and I/O threads using\nSHOW SLAVE STATUS.\n\nFor more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-solutions-switch.htm\nl.\n\nIf you are using statement-based replication and temporary tables, it\nis possible for a CHANGE MASTER TO statement following a STOP SLAVE\nstatement to leave behind temporary tables on the slave. In MySQL 5.7.4\nand later, a warning (ER_WARN_OPEN_TEMP_TABLES_MUST_BE_ZERO) is now\nissued whenever this occurs. You can avoid this in such cases by making\nsure that the value of the Slave_open_temp_tables system status\nvariable is equal to 0 prior to executing such a CHANGE MASTER TO\nstatement.\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.7/en/change-master-to.html\n\n','','http://dev.mysql.com/do\nc/refman/5.7/en/change-master-to.html'),(409,'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 does not display the authentication plugin associated with\nthe account. To see that information, use SHOW CREATE USER.\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.7/en/show-grants.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-grants.html'),(410,'ST_MPOINTFROMWKB',33,'ST_MPointFromWKB(wkb[,srid]), ST_MultiPointFromWKB(wkb[,srid])\n\nConstructs a MultiPoint value using its WKB representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(411,'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.7/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.7/en/mathematical-functions.html'),(412,'STARTPOINT',13,'StartPoint(ls)\n\nST_StartPoint() and StartPoint() are synonyms. For more information,\nsee the description of ST_StartPoint().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(413,'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.7/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.7/en/declare-local-variable.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/declare-local-variable.html'),(414,'MPOLYFROMTEXT',4,'MPolyFromText(wkt[,srid]), MultiPolygonFromText(wkt[,srid])\n\nST_MPolyFromText(), ST_MultiPolygonFromText(), MPolyFromText(), and\nMultiPolygonFromText() are synonyms. For more information, see the\ndescription of ST_MPolyFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(415,'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.7/en/comparison-operators.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(416,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT YEARWEEK(\'1987-01-01\');\n -> 198653\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(417,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(418,'LOG10',3,'Syntax:\nLOG10(X)\n\nReturns the base-10 logarithm of X. If X is less than or equal to\n0.0E0, the function returns NULL and (as of MySQL 5.7.4) a warning\n\"Invalid argument for logarithm\" is reported.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(419,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(420,'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.7/en/create-function.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-function.html'),(421,'<',20,'Syntax:\n<\n\nLess than:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html\n\n','mysql> SELECT 2 < 2;\n -> 0\n','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(422,'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\nThe return value is a nonbinary string in the connection character set.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','mysql> SELECT MD5(\'testing\');\n -> \'ae2b1fca515949e5d54fb22b8ed95575\'\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(423,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFMONTH(\'2007-02-03\');\n -> 3\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(424,'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.7/en/time-zone-support.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(425,'ST_INTERSECTION',26,'ST_Intersection(g1, g2)\n\nReturns a geometry that represents the point set intersection of the\ngeometry values g1 and g2.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @g1 = ST_GeomFromText(\'LineString(1 1, 3 3)\');\nmysql> SET @g2 = ST_GeomFromText(\'LineString(1 3, 3 1)\');\nmysql> SELECT ST_AsText(ST_Intersection(@g1, @g2));\n+--------------------------------------+\n| ST_AsText(ST_Intersection(@g1, @g2)) |\n+--------------------------------------+\n| POINT(2 2) |\n+--------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(426,'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.\n\nTo use RENAME USER, you must have the global CREATE USER privilege or\nthe UPDATE privilege for the mysql database. When the read_only system\nvariable is enabled, RENAME USER additionally requires the SUPER\nprivilege.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.7/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.7/en/stored-programs-security.html.)\n\nThe privilege changes take effect as indicated in\nhttp://dev.mysql.com/doc/refman/5.7/en/privilege-changes.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/rename-user.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/rename-user.html'),(427,'NUMPOINTS',13,'NumPoints(ls)\n\nST_NumPoints() and NumPoints() are synonyms. For more information, see\nthe description of ST_NumPoints().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(428,'LOCALTIMESTAMP',32,'Syntax:\nLOCALTIMESTAMP, LOCALTIMESTAMP([fsp])\n\nLOCALTIMESTAMP and LOCALTIMESTAMP() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(429,'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.7/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.7/en/date-and-time-functions.html'),(430,'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.7/en/stored-programs-logging.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/alter-function.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-function.html'),(431,'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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(432,'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. If too many prepared statements are created and\nnot deallocated by either the DEALLOCATE PREPARE statement or the end\nof the session, you might encounter the upper limit enforced by the\nmax_prepared_stmt_count system variable.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/deallocate-prepare.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/deallocate-prepare.html'),(433,'CONVEXHULL',26,'ConvexHull(g)\n\nST_ConvexHull() and ConvexHull() are synonyms. For more information,\nsee the description of ST_ConvexHull().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(434,'TOUCHES',31,'Touches(g1,g2)\n\nST_Touches() and Touches() are synonyms. For more information, see the\ndescription of ST_Touches().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(435,'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.7/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.7/en/example-auto-increment.html'),(436,'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.7/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.7/en/encryption-functions.html'),(437,'GEOMCOLLFROMTEXT',4,'GeomCollFromText(wkt[,srid]), GeometryCollectionFromText(wkt[,srid])\n\nST_GeomCollFromText(), ST_GeometryCollectionFromText(),\nST_GeomCollFromTxt(), GeomCollFromText(), and\nGeometryCollectionFromText() are synonyms. For more information, see\nthe description of ST_GeomCollFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(438,'ST_INTERIORRINGN',2,'ST_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.7/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 ST_AsText(ST_InteriorRingN(ST_GeomFromText(@poly),1));\n+-------------------------------------------------------+\n| ST_AsText(ST_InteriorRingN(ST_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.7/en/gis-polygon-property-functions.html'),(439,'LAST_INSERT_ID',17,'Syntax:\nLAST_INSERT_ID(), LAST_INSERT_ID(expr)\n\nWith no argument, LAST_INSERT_ID() returns a BIGINT UNSIGNED (64-bit)\nvalue representing the first automatically generated value successfully\ninserted for an AUTO_INCREMENT column as a result of the most recently\nexecuted INSERT statement. 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.\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.7.3, 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.7/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(440,'FLOOR',3,'Syntax:\nFLOOR(X)\n\nReturns the largest integer value not greater than X.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(441,'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.7/en/mathematical-functions.html\n\n','mysql> SELECT COS(PI());\n -> -1\n','http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html'),(442,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(443,'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.7/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.7/en/date-and-time-functions.html'),(444,'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.7/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.7/en/mathematical-functions.html'),(445,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT WEEKOFYEAR(\'2008-02-20\');\n -> 8\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(446,'ST_CONVEXHULL',26,'ST_ConvexHull(g)\n\nReturns a geometry that represents the convex hull of the geometry\nvalue g.\n\nThis function computes a geometry\'s convex hull by first checking\nwhether its vertex points are colinear. The function returns a linear\nhull if so, a polygon hull otherwise. This function processes geometry\ncollections by extracting all vertex points of all components of the\ncollection, creating a MultiPoint value from them, and computing its\nconvex hull. If the argument is an empty geometry collection, the\nreturn value is NULL.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html\n\n','mysql> SET @g = \'MULTIPOINT(5 0,25 0,15 10,15 25)\';\nmysql> SELECT ST_AsText(ST_ConvexHull(GeomFromText(@g)));\n+--------------------------------------------+\n| ST_AsText(ST_ConvexHull(GeomFromText(@g))) |\n+--------------------------------------------+\n| POLYGON((5 0,25 0,15 25,5 0)) |\n+--------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-operator-functions.html'),(447,'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.7/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.7/en/date-and-time-functions.html'),(448,'LOG2',3,'Syntax:\nLOG2(X)\n\nReturns the base-2 logarithm of X. If X is less than or equal to 0.0E0,\nthe function returns NULL and (as of MySQL 5.7.4) a warning \"Invalid\nargument for logarithm\" is reported.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(449,'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.7/en/encryption-functions.html\n\n','mysql> SELECT UNCOMPRESSED_LENGTH(COMPRESS(REPEAT(\'a\',30)));\n -> 30\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(450,'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.7/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.7/en/mathematical-functions.html'),(451,'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.7, 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.7/en/drop-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-table.html'),(452,'NOW',32,'Syntax:\nNOW([fsp])\n\nReturns the current date and time as a value in \'YYYY-MM-DD HH:MM:SS\'\nor YYYYMMDDHHMMSS format, depending on whether the function is used in\na string or numeric context. The value is expressed in the current time\nzone.\n\nIf the fsp argument is given to specify a fractional seconds precision\nfrom 0 to 6, the return value includes a fractional seconds part of\nthat many digits.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(453,'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.7/en/engines-table.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-engines.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-engines.html'),(454,'ST_POINTFROMTEXT',4,'ST_PointFromText(wkt[,srid])\n\nConstructs a Point value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(455,'ST_ENDPOINT',13,'ST_EndPoint(ls)\n\nReturns the Point that is the endpoint of the LineString value ls.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_AsText(ST_EndPoint(ST_GeomFromText(@ls)));\n+----------------------------------------------+\n| ST_AsText(ST_EndPoint(ST_GeomFromText(@ls))) |\n+----------------------------------------------+\n| POINT(3 3) |\n+----------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(456,'IS_IPV6',14,'Syntax:\nIS_IPV6(expr)\n\nReturns 1 if the argument is a valid IPv6 address specified as a\nstring, 0 otherwise. This function does not consider IPv4 addresses to\nbe valid IPv6 addresses.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT IS_IPV6(\'10.0.5.9\'), IS_IPV6(\'::1\');\n -> 0, 1\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(457,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(458,'ST_OVERLAPS',31,'ST_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\nAs of MySQL 5.7.5, this function returns 0 if called with an\ninapplicable geometry argument type combination. For example, it\nreturns 0 if called with geometries of different dimensions or any\nargument is a Point.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(459,'YEAR DATA TYPE',23,'YEAR[(4)]\n\nA year in four-digit format. MySQL displays YEAR values in YYYY format,\nbut permits assignment of values to YEAR columns using either strings\nor numbers. Values display as 1901 to 2155, and 0000.\n\n*Note*: The YEAR(2) data type is deprecated and support for it is\nremoved in MySQL 5.7.5. To convert YEAR(2) columns to YEAR(4), see\nhttp://dev.mysql.com/doc/refman/5.7/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.7/en/year.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html'),(460,'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.7/en/group-by-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html'),(461,'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.7/en/string-functions.html\n\n','mysql> SELECT REPEAT(\'MySQL\', 3);\n -> \'MySQLMySQLMySQL\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(462,'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.7/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.7/en/string-functions.html'),(463,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(464,'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.7/en/drop-event.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-event.html'),(465,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(466,'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.7, 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.7/en/load-index.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/load-index.html'),(467,'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.7/en/union.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/union.html'),(468,'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.7/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.7/en/date-and-time-functions.html'),(469,'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.7/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.7/en/show-index.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-index.html'),(470,'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.7/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.7/en/show-create-database.html'),(471,'!',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.7/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.7/en/logical-operators.html'),(472,'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.7/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.7/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\nFor information about how the server chooses handlers when a condition\noccurs, see http://dev.mysql.com/doc/refman/5.7/en/handler-scope.html.\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.7/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 (0.00 sec)\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.7/en/declare-handler.html'),(473,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(474,'TIME',23,'TIME[(fsp)]\n\nA time. The range is \'-838:59:59.000000\' to \'838:59:59.000000\'. MySQL\ndisplays TIME values in \'HH:MM:SS[.fraction]\' format, but permits\nassignment of values to TIME columns using either strings or numbers.\n\nAn optional fsp value in the range from 0 to 6 may be given to specify\nfractional seconds precision. A value of 0 signifies that there is no\nfractional part. If omitted, the default precision is 0.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-overview.html'),(475,'SYSTEM_USER',17,'Syntax:\nSYSTEM_USER()\n\nSYSTEM_USER() is a synonym for USER().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/information-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'),(476,'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.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(477,'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.7:\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 or NDB\n (http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html) table if\n there are any FOREIGN KEY constraints from other tables that\n reference the table. Foreign key constraints between columns of the\n 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.7/en/truncate-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/truncate-table.html'),(478,'AREA',2,'Area(poly)\n\nST_Area() and Area() are synonyms. For more information, see the\ndescription of ST_Area().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(479,'START SLAVE',8,'Syntax:\n START SLAVE [thread_types] [until_option] [connection_options] [channel_option]\n\nthread_types:\n [thread_type [, thread_type] ... ]\n\nthread_type: \n IO_THREAD | SQL_THREAD\n\nuntil_option:\n UNTIL { {SQL_BEFORE_GTIDS | SQL_AFTER_GTIDS} = gtid_set\n | MASTER_LOG_FILE = \'log_name\', MASTER_LOG_POS = log_pos\n | RELAY_LOG_FILE = \'log_name\', RELAY_LOG_POS = log_pos\n | SQL_AFTER_MTS_GAPS }\n\nconnection_options: \n [USER=\'user_name\'] [PASSWORD=\'<PASSWORD>\'] [DEFAULT_AUTH=\'plugin_name\'] [PLUGIN_DIR=\'plugin_dir\']\n\n\nchannel_option: \nFOR CHANNEL channel\n\ngtid_set:\n uuid_set [, uuid_set] ...\n | \'\'\n\nuuid_set:\n uuid:interval[:interval]...\n\nuuid:\n hhhhhhhh-hhhh-hhhh-hhhh-hhhhhhhhhhhh\n\nh:\n [0-9,A-F]\n\ninterval:\n n[-n]\n\n (n >= 1) \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\nIn MySQL 5.7, START SLAVE causes an implicit commit of an ongoing\ntransaction. See\nhttp://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html.\n\nBeginning with MySQL 5.7.1, gtid_next must be set to AUTOMATIC before\nissuing this statement (Bug #16062608).\n\nThe optional FOR CHANNEL channel clause added in MySQL 5.7.6 enables\nyou to choose which replication channel the statement applies to. If no\nclause is set and no extra channels exist, the statement applies to the\ndefault channel and behaves the same as versions of MySQL prior to\n5.7.6. Providing a FOR CHANNEL channel clause applies the START SLAVE\nstatement to a specific replication channel. If a START SLAVE statement\ndoes not have a channel defined when using multiple channels, an error\nis generated. See\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-channels.html for\nmore information.\n\nMySQL 5.7 supports pluggable user-password authentication with START\nSLAVE with the USER, PASSWORD, DEFAULT_AUTH and PLUGIN_DIR options, as\ndescribed in the following list:\n\no USER: User name. Cannot be set to an empty or null string, or left\n unset if PASSWORD is used.\n\no PASSWORD: Password.\n\no DEFAULT_AUTH: Name of plugin; default is MySQL native authentication.\n\no PLUGIN_DIR: Location of plugin.\n\nYou cannot use the SQL_THREAD option when specifying any of USER,\nPASSWORD, DEFAULT_AUTH, or PLUGIN_DIR, unless the IO_THREAD option is\nalso provided.\n\nSee\nhttp://dev.mysql.com/doc/refman/5.7/en/pluggable-authentication.html,\nfor more information.\n\nIf an insecure connection is used with any these options, the server\nissues the warning Sending passwords in plain text without SSL/TLS is\nextremely insecure.\n\nSTART SLAVE ... UNTIL supports two additional options for use with\nglobal transaction identifiers (GTIDs) (see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-gtids.html). Each of\nthese takes a set of one or more global transaction identifiers\ngtid_set as an argument (see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-gtids-concepts.html#\nreplication-gtids-concepts-gtid-sets, for more information).\n\nWhen no thread_type is specified, START SLAVE UNTIL SQL_BEFORE_GTIDS\ncauses the slave SQL thread to process transactions until it has\nreached the first transaction whose GTID is listed in the gtid_set.\nSTART SLAVE UNTIL SQL_AFTER_GTIDS causes the slave threads to process\nall transactions until the last transaction in the gtid_set has been\nprocessed by both threads. In other words, START SLAVE UNTIL\nSQL_BEFORE_GTIDS causes the slave SQL thread to process all\ntransactions occurring before the first GTID in the gtid_set is\nreached, and START SLAVE UNTIL SQL_AFTER_GTIDS causes the slave threads\nto handle all transactions, including those whose GTIDs are found in\ngtid_set, until each has encountered a transaction whose GTID is not\npart of the set. SQL_BEFORE_GTIDS and SQL_AFTER_GTIDS each support the\nSQL_THREAD and IO_THREAD options, although using IO_THREAD with them\ncurrently has no effect.\n\nFor example, START SLAVE SQL_THREAD UNTIL SQL_BEFORE_GTIDS =\n3E11FA47-71CA-11E1-9E33-C80AA9429562:11-56 causes the slave SQL thread\nto process all transactions originating from the master whose\nserver_uuid is 3E11FA47-71CA-11E1-9E33-C80AA9429562 until it encounters\nthe transaction having sequence number 11; it then stops without\nprocessing this transaction. In other words, all transactions up to and\nincluding the transaction with sequence number 10 are processed.\nExecuting START SLAVE SQL_THREAD UNTIL SQL_AFTER_GTIDS =\n3E11FA47-71CA-11E1-9E33-C80AA9429562:11-56, on the other hand, would\ncause the slave SQL thread to obtain all transactions just mentioned\nfrom the master, including all of the transactions having the sequence\nnumbers 11 through 56, and then to stop without processing any\nadditional transactions; that is, the transaction having sequence\nnumber 56 would be the last transaction fetched by the slave SQL\nthread.\n\nPrior to MySQL 5.7.3, SQL_AFTER_GTIDS did not stop the slave once the\nindicated transaction was completed, but waited until another GTID\nevent was received (Bug #14767986).\n\nAfter stopping a multi-threaded slave, there is a chance that there\nwill be gaps in the sequence of transactions that have been executed\nfrom the relay log, regardless of whether the slave was stopped\nintentionally or otherwise. To avoid these gaps, for example when\nExec_Master_Log_Pos needs to be precise, before using CHANGE MASTER TO,\nafter server restart (followed by RESET SLAVE) if the behavior of\nrelay_log_recovery is required, or before using mysqldump to take a\nbackup, use START SLAVE UNTIL SQL_AFTER_MTS_GAPS. Issuing START SLAVE\nUNTIL SQL_AFTER_MTS_GAPS causes a multi-threaded slave\'s SQL threads to\nrun until no more gaps are found in the relay log, and then to stop.\nThis statement can take an SQL_THREAD option, but the effects of the\nstatement remain unchanged. It has no effect on the slave I/O thread\n(and cannot be used with the IO_THREAD option). As of MySQL 5.7.5, if\nthere are no gaps, then START SLAVE UNTIL SQL_AFTER_MTS_GAPS has no\neffect.\n\nTo change a failed multi-threaded slave to single-threaded mode, you\ncan issue the following series of statements, in the order shown:\n\nSTART SLAVE UNTIL SQL_AFTER_MTS_GAPS;\n\nSET @@GLOBAL.slave_parallel_workers = 0;\n\nSTART SLAVE SQL_THREAD;\n\nIf there are gaps caused by stopping a multi-threaded slave, enabling\nrelay_log_recovery generates a warning and has no effect. In such a\nsituation, the solution is to use START SLAVE UNTIL SQL_AFTER_MTS_GAPS,\nthen issue RESET SLAVE to remove any remaining relay logs. Similarly,\nif there are gaps, issuing a CHANGE MASTER TO statement fails. Issue\nSTART SLAVE UNTIL SQL_AFTER_MTS_GAPS to close these gaps prior to\nexecuting CHANGE MASTER TO.\n\n*Note*: It is possible to view the entire text of a running START SLAVE\n... statement, including any USER or PASSWORD values used, in the\noutput of SHOW PROCESSLIST. This is also true for the text of a running\nCHANGE MASTER TO statement, including any values it employs for\nMASTER_USER or MASTER_PASSWORD.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/start-slave.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/start-slave.html'),(480,'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.7/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.7/en/explain-extended.html.\n\nAs of MySQL 5.7.2, SHOW WARNINGS displays information about the\nconditions resulting from execution of the most recent nondiagnostic\nstatement in the current session. If the most recent statement resulted\nin an error during parsing, SHOW WARNINGS shows the resulting\nconditions, regardless of statement type (diagnostic or nondiagnostic).\n\nBefore MySQL 5.7.2, SHOW WARNINGS displays information about the\nconditions resulting from the most recent statement in the current\nsession that generated messages. It shows nothing if the most recent\nstatement used a table and generated no messages. (That is, statements\nthat use a table but generate no messages clear the message list.)\nStatements that do not use tables and do not generate messages have no\neffect on the message list.\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 difference in these statements is that the first is a diagnostic\nstatement that does not clear the message list. The second, because it\nis a SELECT statement is considered nondiagnostic and, as of MySQL\n5.7.2, does clear the message list.\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].\nGET DIAGNOSTICS can be used to examine information for individual\nconditions. See [HELP GET DIAGNOSTICS].\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-warnings.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-warnings.html'),(481,'ST_LINEFROMTEXT',4,'ST_LineFromText(wkt[,srid]), ST_LineStringFromText(wkt[,srid])\n\nConstructs a LineString value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(482,'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.\n\nTo use DROP USER, you must have the global CREATE USER privilege or the\nDELETE privilege for the mysql database. When the read_only system\nvariable is enabled, DROP USER additionally requires the SUPER\nprivilege.\n\nEach account name uses the format described in\nhttp://dev.mysql.com/doc/refman/5.7/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.7/en/drop-user.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-user.html'),(483,'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.7/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.7/en/string-functions.html'),(484,'ISEMPTY',37,'IsEmpty(g)\n\nST_IsEmpty() and IsEmpty() are synonyms. For more information, see the\ndescription of ST_IsEmpty().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(485,'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.7/en/show-function-status.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-function-status.html'),(486,'LTRIM',38,'Syntax:\nLTRIM(str)\n\nReturns the string str with leading space characters removed.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','mysql> SELECT LTRIM(\' barbar\');\n -> \'barbar\'\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(487,'ST_CROSSES',31,'ST_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\nAs of MySQL 5.7.5, this function returns 0 if called with an\ninapplicable geometry argument type combination. For example, it\nreturns 0 if the first argument is a Polygon or MultiPolygon and/or the\nsecond argument is a Point or MultiPoint.\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.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(488,'ST_MPOLYFROMTEXT',4,'ST_MPolyFromText(wkt[,srid]), ST_MultiPolygonFromText(wkt[,srid])\n\nConstructs a MultiPolygon value using its WKT representation and SRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(489,'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.7/en/spatial-relation-functions-mysql-specific.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mysql-specific.html'),(490,'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.7/en/insert-on-duplicate.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/miscellaneous-functions.html'),(491,'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.7/en/call.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/call.html'),(492,'ENCODE',12,'Syntax:\nENCODE(str,pass_str)\n\nENCODE() encrypts str using pass_str as the password. The result is a\nbinary string of the same length as str. To decrypt the result, use\nDECODE().\n\n*Note*: The ENCODE() and DECODE() functions are deprecated in MySQL\n5.7, will be removed in a future MySQL release, and should no longer be\nused.\n\nIf you still need to use ENCODE(), a salt value must be used with it to\nreduce risk. For example:\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.7/en/encryption-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(493,'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.7/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.7/en/string-functions.html'),(494,'ST_X',11,'ST_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.7/en/gis-point-property-functions.html\n\n','mysql> SELECT ST_X(POINT(56.7, 53.34));\n+--------------------------+\n| ST_X(POINT(56.7, 53.34)) |\n+--------------------------+\n| 56.7 |\n+--------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-point-property-functions.html'),(495,'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\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.7/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.7/en/date-and-time-functions.html'),(496,'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.7/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.7/en/mathematical-functions.html'),(497,'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 {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 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 [NONBLOCKING]\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.7/en/extended-show.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show.html'),(498,'SHOW VARIABLES',27,'Syntax:\nSHOW [GLOBAL | SESSION] VARIABLES\n [LIKE \'pattern\' | WHERE expr]\n\n*Note*: As of MySQL 5.7.6, the value of the show_compatibility_56\nsystem variable affects the information available from and privileges\nrequired for the statement described here. For details, see the\ndescription of that variable in\nhttp://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html.\n\nSHOW VARIABLES shows the values of MySQL system variables (see\nhttp://dev.mysql.com/doc/refman/5.7/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 Performance Schema tables. See\n http://dev.mysql.com/doc/refman/5.7/en/performance-schema-system-vari\n able-tables.html.\n\no The GLOBAL_VARIABLES and SESSION_VARIABLES tables. See\n http://dev.mysql.com/doc/refman/5.7/en/variables-table.html.\n\no The mysqladmin variables command. See\n http://dev.mysql.com/doc/refman/5.7/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.7/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. If a variable has no\n global value, no 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.7/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.7/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.7/en/show-variables.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-variables.html'),(499,'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.7/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.7/en/binlog.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/binlog.html'),(500,'ST_DISJOINT',31,'ST_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.7/en/spatial-relation-functions-object-shapes.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(501,'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.7/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.7/en/mathematical-functions.html'),(502,'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.7/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.7/en/logical-operators.html'),(503,'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.7/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.7/en/date-and-time-functions.html'),(504,'SELECT',28,'Syntax:\nSELECT\n [ALL | DISTINCT | DISTINCTROW ]\n [HIGH_PRIORITY]\n [MAX_STATEMENT_TIME = N]\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 [PARTITION partition_list]\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.7/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 SELECT supports explicit partition selection using the PARTITION with\n a list of partitions or subpartitions (or both) following the name of\n the table in a table_reference (see [HELP JOIN]). In this case, rows\n are selected only from the partitions listed, and any other\n partitions of the table are ignored. For more information and\n examples, see\n http://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html.\n\n SELECT ... PARTITION from tables using storage engines such as MyISAM\n that perform table-level locks (and thus partition locks) lock only\n the partitions or subpartitions named by the PARTITION option.\n\n See\n http://dev.mysql.com/doc/refman/5.7/en/partitioning-limitations-locki\n ng.html, for more information.\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.7/en/expressions.html, and\n http://dev.mysql.com/doc/refman/5.7/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.7/en/select.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/select.html'),(505,'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.7/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.7/en/group-by-functions.html'),(506,'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.7/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.7/en/information-functions.html'),(507,'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 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.7/en/innodb-monitors.html.\n\nSHOW ENGINE INNODB MUTEX displays InnoDB mutex and rw-lock statistics.\n\n*Note*: InnoDB mutexes and rwlocks can also be monitored using\nPerformance Schema tables. See\nhttp://dev.mysql.com/doc/refman/5.7/en/monitor-innodb-mutex-waits-perfo\nrmance-schema.html.\n\nSHOW ENGINE INNODB MUTEX output was removed in MySQL 5.7.2. It was\nrevised and reintroduced in MySQL 5.7.8.\n\nIn MySQL 5.7.8, mutex statistics collection is configured dynamically\nusing the following options:\n\no To enable the collection of mutex statistics, run:\n\nSET GLOBAL innodb_monitor_enable=\'latch\';\n\no To reset mutex statistics, run:\n\nSET GLOBAL innodb_monitor_reset=\'latch\';\n\no To disable the collection of mutex statistics, run:\n\nSET GLOBAL innodb_monitor_disable=\'latch\';\n\nSHOW ENGINE INNODB MUTEX output has the following columns:\n\no Type\n\n Always InnoDB.\n\no Name\n\n Prior to MySQL 5.7.8, the Name field reports the source file where\n the mutex is implemented, and the line number in the file where the\n mutex is created. The line number is specific to your version of\n MySQL. As of MySQL 5.7.8, only the mutex name is reported. File name\n and line number are still reported for rwlocks.\n\no Status\n\n The mutex status.\n\n Prior to MySQL 5.7.8, the Status field displays several values if\n WITH_DEBUG was defined at MySQL compilation time. If WITH_DEBUG was\n not defined, the statement displays only the os_waits value. In the\n latter case (without WITH_DEBUG), the information on which the output\n is based is insufficient to distinguish regular mutexes and mutexes\n that protect rwlocks (which permit multiple readers or a single\n writer). Consequently, the output may appear to contain multiple rows\n for the same mutex. Pre-MySQL 5.7.8 Status field values include:\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.7 timing is disabled and this\n value is always 0.\n\n As of MySQL 5.7.8, the Status field reports the number of spins,\n waits, and calls. Statistics for low-level operating system mutexes,\n which are implemented outside of InnoDB, are not reported.\n\n o spins indicates the number of spins.\n\n o waits indicates the number of mutex waits.\n\n o calls indicates how many times the mutex was requested.\n\nSHOW ENGINE INNODB MUTEX skips the mutexes and rw-locks of buffer pool\nblocks, as the amount of output can be overwhelming on systems with a\nlarge buffer pool. (There is one mutex and one rw-lock in each 16K\nbuffer pool block, and there are 65,536 blocks per gigabyte.) SHOW\nENGINE INNODB MUTEX also does not list any mutexes or rw-locks that\nhave never been waited on (os_waits=0). Thus, SHOW ENGINE INNODB MUTEX\nonly displays information about mutexes and rw-locks outside of the\nbuffer pool that have caused at least one OS-level wait.\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.size\nStatus: 76\n*************************** 4. row ***************************\n Type: performance_schema\n Name: events_waits_history.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).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.size,\n mutex_instances.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 size is the size of the internal record used by the implementation,\n such as the size of a row in a table. size values cannot be changed.\n\no count is the number of internal records, such as the number of rows\n in a table. count values can be changed using Performance Schema\n configuration options.\n\no For a table, tbl_name.memory is the product of size and count. For\n the Performance Schema as a whole, performance_schema.memory is the\n sum of all the memory used (the sum of all other memory values).\n\nSome size and count attributes were named row_size and row_count before\nMySQL 5.7.1.\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.count corresponds to\nperformance_schema_events_waits_history_long_size. In other cases, the\nrelationship is more complex. For example, events_waits_history.count\ncorresponds to performance_schema_events_waits_history_size (the number\nof rows per thread) multiplied by\nperformance_schema_max_thread_instances ( the number of threads).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/show-engine.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-engine.html'),(508,'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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(509,'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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(510,'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.7/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.7/en/date-and-time-functions.html'),(511,'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.7/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.7/en/date-and-time-functions.html'),(512,'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.7/en/time-zone-support.html. This\nfunction returns NULL if the arguments are invalid.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(513,'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.7/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.7/en/string-functions.html'),(514,'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.7/en/cast-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/cast-functions.html'),(515,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(516,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT PERIOD_DIFF(200802,200703);\n -> 11\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(517,'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.7/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.7/en/group-by-functions.html'),(518,'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.7/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.7/en/string-functions.html'),(519,'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.7/en/type-conversion.html, but\napplied to all the arguments.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(520,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT QUARTER(\'2008-04-01\');\n -> 2\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(521,'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.7/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.7/en/mysql-server-side-help.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/mysql-server-side-help.html'),(522,'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.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(523,'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.7/en/miscellaneous-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(524,'POLYFROMTEXT',4,'PolyFromText(wkt[,srid]), PolygonFromText(wkt[,srid])\n\nST_PolyFromText(), ST_PolygonFromText(), PolyFromText(), and\nPolygonFromText() are synonyms. For more information, see the\ndescription of ST_PolyFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(525,'ST_SRID',37,'ST_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.7/en/gis-general-property-functions.html\n\n','mysql> SELECT ST_SRID(ST_GeomFromText(\'LineString(1 1,2 2)\',101));\n+-----------------------------------------------------+\n| ST_SRID(ST_GeomFromText(\'LineString(1 1,2 2)\',101)) |\n+-----------------------------------------------------+\n| 101 |\n+-----------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(526,'ALTER USER',10,'Syntax:\nALTER USER syntax for MySQL 5.7.6 and up:\n\nThe ALTER USER statement modifies MySQL accounts. It provides control\nover account password expiration. As of MySQL 5.7.6, it also provides\ncontrol over authentication, SSL, and resource-limit properties, and\naccount locking and unlocking. An error occurs if you try to modify a\nnonexistent account.\n\nTo use ALTER USER, you must have the global CREATE USER privilege or\nthe UPDATE privilege for the mysql database. When the read_only system\nvariable is enabled, ALTER USER additionally requires the SUPER\nprivilege.\n\nALTER USER modifies the mysql.user table row for each affected account\naccording to the options specified in the statement. Unspecified\nproperties retain their current values.\n\nExample 1: Change an account\'s password and expire it. As a result, the\nuser must connect with the named password and choose a new one at the\nnext connection:\n\nALTER USER \'jeffrey\'@\'localhost\'\n IDENTIFIED BY \'new-password\' PASSWORD EXPIRE;\n\nExample 2: Lock or unlock an account:\n\nALTER USER \'jeffrey\'@\'localhost\' ACCOUNT LOCK;\nALTER USER \'jeffrey\'@\'localhost\' ACCOUNT UNLOCK;\n\nExample 3: Require an account to connect using SSL and establish a\nlimit of 20 connections per hour:\n\nALTER USER \'jeffrey\'@\'localhost\'\n REQUIRE SSL WITH MAX_CONNECTIONS_PER_HOUR 20;\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/alter-user.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-user.html'),(527,'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.7/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\n*Note*: The DES_ENCRYPT() and DES_DECRYPT() functions are deprecated as\nof MySQL 5.7.6, will be removed in a future MySQL release, and should\nno longer be used. Consider using AES_ENCRYPT() and AES_DECRYPT()\ninstead.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/encryption-functions.html'),(528,'CEIL',3,'Syntax:\nCEIL(X)\n\nCEIL() is a synonym for CEILING().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html'),(529,'WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS',7,'Syntax:\nWAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(gtid_set[, timeout][,channel])\n\nWait until the slave SQL thread has executed all of the transactions\nwhose global transaction identifiers are contained in gtid_set (see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-gtids-concepts.html,\nfor a definition of \"GTID sets\"), or until timeout seconds have\nelapsed, whichever occurs first. timeout is optional; the default\ntimeout is 0 seconds, in which case the function waits until all of the\ntransactions in the GTID set have been executed.\n\nFor more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/replication-gtids.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html\n\n','mysql> SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5\');\n -> 5\n','http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html'),(530,'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.7/en/string-functions.html\n\n','mysql> SELECT LENGTH(\'text\');\n -> 4\n','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(531,'WEIGHT_STRING',38,'Syntax:\nWEIGHT_STRING(str [AS {CHAR|BINARY}(N)] [LEVEL levels] [flags])\n\nlevels: N [ASC|DESC|REVERSE] [, N [ASC|DESC|REVERSE]] ...\n\nThis function returns the weight string for the input string. The\nreturn value is a binary string that represents the sorting and\ncomparison value of the string. It has these properties:\n\no If WEIGHT_STRING(str1) = WEIGHT_STRING(str2), then str1 = str2 (str1\n and str2 are considered equal)\n\no If WEIGHT_STRING(str1) < WEIGHT_STRING(str2), then str1 < str2 (str1\n sorts before str2)\n\nWEIGHT_STRING() can be used for testing and debugging of collations,\nespecially if you are adding a new collation. See\nhttp://dev.mysql.com/doc/refman/5.7/en/adding-collation.html.\n\nThe input string, str, is a string expression. If the input is a\nnonbinary (character) string such as a CHAR, VARCHAR, or TEXT value,\nthe return value contains the collation weights for the string. If the\ninput is a binary (byte) string such as a BINARY, VARBINARY, or BLOB\nvalue, the return value is the same as the input (the weight for each\nbyte in a binary string is the byte value). If the input is NULL,\nWEIGHT_STRING() returns NULL.\n\nExamples:\n\nmysql> SET @s = _latin1 \'AB\' COLLATE latin1_swedish_ci;\nmysql> SELECT @s, HEX(@s), HEX(WEIGHT_STRING(@s));\n+------+---------+------------------------+\n| @s | HEX(@s) | HEX(WEIGHT_STRING(@s)) |\n+------+---------+------------------------+\n| AB | 4142 | 4142 |\n+------+---------+------------------------+\n\nmysql> SET @s = _latin1 \'ab\' COLLATE latin1_swedish_ci;\nmysql> SELECT @s, HEX(@s), HEX(WEIGHT_STRING(@s));\n+------+---------+------------------------+\n| @s | HEX(@s) | HEX(WEIGHT_STRING(@s)) |\n+------+---------+------------------------+\n| ab | 6162 | 4142 |\n+------+---------+------------------------+\n\nmysql> SET @s = CAST(\'AB\' AS BINARY);\nmysql> SELECT @s, HEX(@s), HEX(WEIGHT_STRING(@s));\n+------+---------+------------------------+\n| @s | HEX(@s) | HEX(WEIGHT_STRING(@s)) |\n+------+---------+------------------------+\n| AB | 4142 | 4142 |\n+------+---------+------------------------+\n\nmysql> SET @s = CAST(\'ab\' AS BINARY);\nmysql> SELECT @s, HEX(@s), HEX(WEIGHT_STRING(@s));\n+------+---------+------------------------+\n| @s | HEX(@s) | HEX(WEIGHT_STRING(@s)) |\n+------+---------+------------------------+\n| ab | 6162 | 6162 |\n+------+---------+------------------------+\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(532,'ST_EQUALS',31,'ST_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.7/en/spatial-relation-functions-object-shapes.html\n\n','mysql> SET @g1 = POINT(1,1), @g2 = POINT(2,2);\nmysql> SELECT ST_Equals(@g1, @g1), ST_Equals(@g1, @g2);\n+---------------------+---------------------+\n| ST_Equals(@g1, @g1) | ST_Equals(@g1, @g2) |\n+---------------------+---------------------+\n| 1 | 0 |\n+---------------------+---------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-object-shapes.html'),(533,'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.7/en/alter-event.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-event.html'),(534,'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.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(535,'|',19,'Syntax:\n|\n\nBitwise OR:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html\n\n','mysql> SELECT 29 | 15;\n -> 31\n','http://dev.mysql.com/doc/refman/5.7/en/bit-functions.html'),(536,'GEOMFROMTEXT',4,'GeomFromText(wkt[,srid]), GeometryFromText(wkt[,srid])\n\nST_GeomFromText(), ST_GeometryFromText(), GeomFromText(), and\nGeometryFromText() are synonyms. For more information, see the\ndescription of ST_GeomFromText().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(537,'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.7/en/miscellaneous-functions.html\n\n','mysql> SELECT UUID_SHORT();\n -> 92395783831158784\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(538,'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.7/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.7/en/date-and-time-functions.html'),(539,'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.7/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.7/en/drop-procedure.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/drop-procedure.html'),(540,'ST_LATFROMGEOHASH',7,'ST_LatFromGeoHash(geohash_str)\n\nReturns the latitude from a geohash string value, as a DOUBLE value in\nthe range [−90, 90]. The result is NULL if any argument is NULL. An\nerror occurs if the argument is invalid.\n\nThe ST_LatFromGeoHash() decoding function reads no more than 433\ncharacters from the geohash_str argument. That represents the upper\nlimit on information in the internal representation of coordinate\nvalues. Characters past the 433rd are ignored, even if they are\notherwise illegal and produce an error.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html\n\n','mysql> SELECT ST_LatFromGeoHash(ST_GeoHash(45,-20,10));\n+------------------------------------------+\n| ST_LatFromGeoHash(ST_GeoHash(45,-20,10)) |\n+------------------------------------------+\n| -20 |\n+------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geohash-functions.html'),(541,'ST_GEOMFROMGEOJSON',7,'ST_GeomFromGeoJSON(str [, options [, srid]])\n\nParses a string str representing a GeoJSON object and returns a\ngeometry.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html\n\n','mysql> SET @json = \'{ \"type\": \"Point\", \"coordinates\": [102.0, 0.0]}\';\nmysql> SELECT ST_AsText(ST_GeomFromGeoJSON(@json));\n+--------------------------------------+\n| ST_AsText(ST_GeomFromGeoJSON(@json)) |\n+--------------------------------------+\n| POINT(102 0) |\n+--------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/spatial-geojson-functions.html'),(542,'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.7/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.7/en/install-plugin.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/install-plugin.html'),(543,'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.7/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.7/en/declare-cursor.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/declare-cursor.html'),(544,'LOAD DATA',28,'Syntax:\nLOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE \'file_name\'\n [REPLACE | IGNORE]\n INTO TABLE tbl_name\n [PARTITION (partition_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.7/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.7/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.7/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\nLOAD DATA supports explicit partition selection using the PARTITION\noption with a comma-separated list of more or more names of partitions,\nsubpartitions, or both. When this option is used, if any rows from the\nfile cannot be inserted into any of the partitions or subpartitions\nnamed in the list, the statement fails with the error Found a row not\nmatching the given partition set. For more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-selection.html.\n\nFor partitioned tables using storage engines that employ table locks,\nsuch as MyISAM, LOAD DATA cannot prune any partition locks. This does\nnot apply to tables using storage engines which employ row-level\nlocking, such as InnoDB. For more information, see\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-limitations-locking\n.html.\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,\nutf16le, or 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.7/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.7/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.7/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. For more information, see\n http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#ignore-strict-co\n mparison.\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.7/en/load-data.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/load-data.html'),(545,'LOCALTIME',32,'Syntax:\nLOCALTIME, LOCALTIME([fsp])\n\nLOCALTIME and LOCALTIME() are synonyms for NOW().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(546,'ST_GEOMFROMWKB',33,'ST_GeomFromWKB(wkb[,srid]), ST_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.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(547,'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\nThe return value is a nonbinary string in the connection character set.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','mysql> SELECT SHA1(\'abc\');\n -> \'a9993e364706816aba3e25717850c26c9cd0d89d\'\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(548,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(549,'PASSWORD',12,'Syntax:\nPASSWORD(str)\n\n*Note*: This function is deprecated as of MySQL 5.7.6 and will be\nremoved in a future MySQL release.\n\nReturns a hashed password string calculated from the cleartext password\nstr. The return value is a nonbinary string in the connection character\nset, or NULL if the argument is NULL. This function is the SQL\ninterface to the algorithm used by the server to encrypt MySQL\npasswords for storage in the mysql.user grant table.\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.7/en/encryption-functions.html\n\n','mysql> SET old_passwords = 0;\nmysql> SELECT PASSWORD(\'my<PASSWORD>\'), OLD_PASSWORD(\'<PASSWORD>\');\n+-------------------------------------------+------------------------+\n| PASSWORD(\'<PASSWORD>\') | OLD_PASSWORD(\'<PASSWORD>\') |\n+-------------------------------------------+------------------------+\n| *6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4 | 6f8c114b58f2ce9e |\n+-------------------------------------------+------------------------+\n\nmysql> SET old_passwords = 1;\nmysql> SELECT PASSWORD(\'<PASSWORD>\'), OLD_PASSWORD(\'<PASSWORD>\');\n+--------------------+------------------------+\n| PASSWORD(\'<PASSWORD>\') | OLD_PASSWORD(\'<PASSWORD>\') |\n+--------------------+------------------------+\n| 6f8c<PASSWORD>e | 6f8c114b58f2ce9e |\n+--------------------+------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(550,'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.7/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.7/en/date-and-time-functions.html'),(551,'DIMENSION',37,'Dimension(g)\n\nST_Dimension() and Dimension() are synonyms. For more information, see\nthe description of ST_Dimension().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(552,'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.7/en/numeric-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/numeric-type-overview.html'),(553,'EQUALS',31,'Equals(g1,g2)\n\nMBREquals() and Equals() are synonyms. For more information, see the\ndescription of MBREquals().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/spatial-relation-functions-mbr.html'),(554,'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 [CONVERT XID]\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.7/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\nXID values may contain nonprintable characters. As of MySQL 5.7.5, XA\nRECOVER permits an optional CONVERT XID clause so that clients can\nrequest XID values in hexadecimal.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/xa-statements.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/xa-statements.html'),(555,'CENTROID',2,'Centroid(mpoly)\n\nST_Centroid() and Centroid() are synonyms. For more information, see\nthe description of ST_Centroid().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(556,'OCTET_LENGTH',38,'Syntax:\nOCTET_LENGTH(str)\n\nOCTET_LENGTH() is a synonym for LENGTH().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-functions.html'),(557,'UTC_TIMESTAMP',32,'Syntax:\nUTC_TIMESTAMP, UTC_TIMESTAMP([fsp])\n\nReturns the current UTC date and time as a value in \'YYYY-MM-DD\nHH:MM:SS\' or YYYYMMDDHHMMSS format, depending on whether the function\nis used in a string or numeric context.\n\nIf the fsp argument is given to specify a fractional seconds precision\nfrom 0 to 6, the return value includes a fractional seconds part of\nthat many digits.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/date-and-time-functions.html'),(558,'AES_ENCRYPT',12,'Syntax:\nAES_ENCRYPT(str,key_str[,init_vector])\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. By default these functions implement AES with a 128-bit key\nlength. As of MySQL 5.7.4, key lengths of 196 or 256 bits can be used,\nas described later. The key length is a trade off between performance\nand 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\nAs of MySQL 5.7.4, AES_ENCRYPT() and AES_DECRYPT() permit control of\nthe block encryption mode and take an optional init_vector\ninitialization vector argument:\n\no The block_encryption_mode system variable controls the mode for\n block-based encryption algorithms. Its default value is aes-128-ecb,\n which signifies encryption using a key length of 128 bits and ECB\n mode. For a description of the permitted values of this variable, see\n http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html.\n\no The optional init_vector argument provides an initialization vector\n for block encryption modes that require it.\n\nFor modes that require the optional init_vector argument, it must be 16\nbytes or longer (bytes in excess of 16 are ignored). An error occurs if\ninit_vector is missing.\n\nFor modes that do not require init_vector, it is ignored and a warning\nis generated if it is specified.\n\nA random string of bytes to use for the initialization vector can be\nproduced by calling RANDOM_BYTES(16). For encryption modes that require\nan initialization vector, the same vector must be used for encryption\nand decryption.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html\n\n','mysql> SET block_encryption_mode = \'aes-256-cbc\';\nmysql> SET @key_str = SHA2(\'My secret passphrase\',512);\nmysql> SET @init_vector = RANDOM_BYTES(16);\nmysql> SET @crypt_str = AES_ENCRYPT(\'text\',@key_str,@init_vector);\nmysql> SELECT AES_DECRYPT(@crypt_str,@key_str,@init_vector);\n+-----------------------------------------------+\n| AES_DECRYPT(@crypt_str,@key_str,@init_vector) |\n+-----------------------------------------------+\n| text |\n+-----------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html'),(559,'+',3,'Syntax:\n+\n\nAddition:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html\n\n','mysql> SELECT 3+5;\n -> 8\n','http://dev.mysql.com/doc/refman/5.7/en/arithmetic-functions.html'),(560,'GTID_SUBTRACT',7,'Syntax:\nGTID_SUBTRACT(set,subset)\n\nGiven two sets of global transaction IDs subset and set, returns only\nthose GTIDs from set that are not in subset.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html\n\n','mysql> SELECT GTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21\')\\G\n*************************** 1. row ***************************\nGTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:21\'): 3e11fa47-71ca-11e1-9e33-c80aa9429562:22-57\n1 row in set (0.00 sec)\n\nmysql> SELECT GTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:20-25\')\\G\n*************************** 1. row ***************************\nGTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:20-25\'): 3e11fa47-71ca-11e1-9e33-c80aa9429562:26-57\n1 row in set (0.00 sec)\n\nmysql> SELECT GTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n -> \'3E11FA47-71CA-11E1-9E33-C80AA9429562:23-24\')\\G\n*************************** 1. row ***************************\nGTID_SUBTRACT(\'3E11FA47-71CA-11E1-9E33-C80AA9429562:21-57\', \n \'3E11FA47-71CA-11E1-9E33-C80AA9429562:23-24\'): 3e11fa47-71ca-11e1-9e33-c80aa9429562:21-22:25-57\n1 row in set (0.01 sec)\n','http://dev.mysql.com/doc/refman/5.7/en/gtid-functions.html'),(561,'INET_NTOA',14,'Syntax:\nINET_NTOA(expr)\n\nGiven a numeric IPv4 network address in network byte order, returns the\ndotted-quad string representation of the address as a nonbinary string\nin the connection character set. INET_NTOA() returns NULL if it does\nnot understand its argument.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT INET_NTOA(167773449);\n -> \'10.0.5.9\'\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(562,'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.7/en/date-and-time-functions.html\n\n','mysql> SELECT DAYOFWEEK(\'2007-02-03\');\n -> 7\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(563,'CEILING',3,'Syntax:\nCEILING(X)\n\nReturns the smallest integer value not less than X.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/mathematical-functions.html'),(564,'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.7/en/show-processlist.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-processlist.html'),(565,'LINEFROMWKB',33,'LineFromWKB(wkb[,srid]), LineStringFromWKB(wkb[,srid])\n\nST_LineFromWKB(), ST_LineStringFromWKB(), LineFromWKB(), and\nLineStringFromWKB() are synonyms. For more information, see the\ndescription of ST_LineFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(566,'GEOMETRYTYPE',37,'GeometryType(g)\n\nST_GeometryType() and GeometryType() are synonyms. For more\ninformation, see the description of ST_GeometryType().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-general-property-functions.html'),(567,'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 Before MySQL 5.7.7, the SELECT statement cannot contain a subquery in\n 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.7/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.7/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.7/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\nA generated column in a view is considered updatable because it is\npossible to assign to it. However, if such a column is updated\nexplicitly, the only permitted value is DEFAULT(). For information\nabout generated columns, see\nhttp://dev.mysql.com/doc/refman/5.7/en/create-table.html#create-table-g\nenerated-columns.\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.7/en/view-updatability.html, and\nhttp://dev.mysql.com/doc/refman/5.7/en/view-check-option.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/create-view.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/create-view.html'),(568,'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.7/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.7/en/string-functions.html'),(569,'INET6_NTOA',14,'Syntax:\nINET6_NTOA(expr)\n\nGiven an IPv6 or IPv4 network address represented in numeric form as a\nbinary string, returns the string representation of the address as a\nnonbinary string in the connection character set. If the argument is\nnot a valid address, INET6_NTOA() returns NULL.\n\nINET6_NTOA() has these properties:\n\no It does not use operating system functions to perform conversions,\n thus the output string is platform independent.\n\no The return string has a maximum length of 39 (4 x 8 + 7). Given this\n statement:\n\nCREATE TABLE t AS SELECT INET6_NTOA(expr) AS c1;\n\n The resulting table would have this definition:\n\nCREATE TABLE t (c1 VARCHAR(39) CHARACTER SET utf8 DEFAULT NULL);\n\no The return string uses lowercase letters for IPv6 addresses.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html\n\n','mysql> SELECT INET6_NTOA(INET6_ATON(\'fdfe::5a55:caff:fefa:9089\'));\n -> \'fdfe::5a55:caff:fefa:9089\'\nmysql> SELECT INET6_NTOA(INET6_ATON(\'10.0.5.9\'));\n -> \'10.0.5.9\'\n\nmysql> SELECT INET6_NTOA(UNHEX(\'FDFE0000000000005A55CAFFFEFA9089\'));\n -> \'fdfe::5a55:caff:fefa:9089\'\nmysql> SELECT INET6_NTOA(UNHEX(\'0A000509\'));\n -> \'10.0.5.9\'\n','http://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html'),(570,'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\nTo retrieve information from the diagnostics area, use the GET\nDIAGNOSTICS statement (see [HELP GET DIAGNOSTICS]). For information\nabout the diagnostics area, see\nhttp://dev.mysql.com/doc/refman/5.7/en/diagnostics-area.html.\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.7/en/signal.html#signal-condition-inf\normation-items. Some signal values cause statement termination; see\nhttp://dev.mysql.com/doc/refman/5.7/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.7/en/signal.html#signal-condition-inf\normation-items.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/signal.html'),(571,'ST_NUMGEOMETRIES',26,'ST_NumGeometries(gc)\n\nReturns the number of geometries in the GeometryCollection value gc.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html\n\n','mysql> SET @gc = \'GeometryCollection(Point(1 1),LineString(2 2, 3 3))\';\nmysql> SELECT ST_NumGeometries(ST_GeomFromText(@gc));\n+----------------------------------------+\n| ST_NumGeometries(ST_GeomFromText(@gc)) |\n+----------------------------------------+\n| 2 |\n+----------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-geometrycollection-property-functions.html'),(572,'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.7/en/savepoint.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/savepoint.html'),(573,'MPOINTFROMWKB',33,'MPointFromWKB(wkb[,srid]), MultiPointFromWKB(wkb[,srid])\n\nST_MPointFromWKB(), ST_MultiPointFromWKB(), MPointFromWKB(), and\nMultiPointFromWKB() are synonyms. For more information, see the\ndescription of ST_MPointFromWKB().\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkb-functions.html'),(574,'ALTER TABLE',40,'Syntax:\nALTER [IGNORE] TABLE tbl_name\n [alter_specification [, alter_specification] ...]\n [partition_options]\n\nalgorithm_option:\n ALGORITHM [=] {DEFAULT|INPLACE|COPY}\n\nlock_option:\n LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}\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 | ALGORITHM [=] {DEFAULT|INPLACE|COPY}\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 | LOCK [=] {DEFAULT|NONE|SHARED|EXCLUSIVE}\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 | RENAME {INDEX|KEY} old_index_name TO new_index_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 | DISCARD PARTITION {partition_names | ALL} TABLESPACE\n | IMPORT PARTITION {partition_names | ALL} TABLESPACE\n | TRUNCATE PARTITION {partition_names | ALL}\n | COALESCE PARTITION number\n | REORGANIZE PARTITION partition_names INTO (partition_definitions)\n | EXCHANGE PARTITION partition_name WITH TABLE tbl_name [{WITH|WITHOUT} VALIDATION]\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 | 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, discarding, importing,\nmerging, and splitting partitions, and for performing partitioning\nmaintenance. It is possible for an ALTER TABLE statement to contain a\nPARTITION BY or REMOVE PARTITIONING clause in an addition to other\nalter specifications, but the PARTITION BY or REMOVE PARTITIONING\nclause must be specified last after any other specifications. The ADD\nPARTITION, DROP PARTITION, DISCARD PARTITION, IMPORT PARTITION,\nCOALESCE PARTITION, REORGANIZE PARTITION, EXCHANGE PARTITION, ANALYZE\nPARTITION, CHECK PARTITION, and REPAIR PARTITION options cannot be\ncombined with other alter specifications in a single ALTER TABLE, since\nthe options just listed act on individual partitions. For more\ninformation about partition options, see [HELP CREATE TABLE], and\nhttp://dev.mysql.com/doc/refman/5.7/en/alter-table-partition-operations\n.html. For information about and examples of ALTER TABLE ... EXCHANGE\nPARTITION statements, see\nhttp://dev.mysql.com/doc/refman/5.7/en/partitioning-management-exchange\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.7/en/alter-table-problems.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/alter-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/alter-table.html'),(575,'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.7/en/statement-labels.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/statement-labels.html'),(576,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(577,'ST_MLINEFROMTEXT',4,'ST_MLineFromText(wkt[,srid]), ST_MultiLineStringFromText(wkt[,srid])\n\nConstructs a MultiLineString value using its WKT representation and\nSRID.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/gis-wkt-functions.html'),(578,'>',20,'Syntax:\n>\n\nGreater than:\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html\n\n','mysql> SELECT 2 > 2;\n -> 0\n','http://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html'),(579,'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.7/en/innodb-persistent-stats.html and\nhttp://dev.mysql.com/doc/refman/5.7/en/innodb-analyze-table-complexity.\nhtml. Also see\nhttp://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html. In\nparticular, when you enable the innodb_stats_persistent option, you\nmust run ANALYZE TABLE after loading substantial data into an InnoDB\ntable, or creating a new index for one.\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.7/en/partitioning-maintenance.html.\n\nIn MySQL 5.7.1, gtid_next must be set to AUTOMATIC before issuing this\nstatement. This restriction does not apply in MySQL 5.7.2 or later.\n(Bug #16062608, Bug #16715809, Bug #69045)\n\nCHECK TABLE ignores virtual generated columns that are not indexed.\nInnoDB supports secondary indexes on virtual generated columns as of\nMySQL 5.7.8.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/analyze-table.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/analyze-table.html'),(580,'ST_EXTERIORRING',2,'ST_ExteriorRing(poly)\n\nReturns the exterior ring of the Polygon value poly as a LineString.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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 ST_AsText(ST_ExteriorRing(ST_GeomFromText(@poly)));\n+----------------------------------------------------+\n| ST_AsText(ST_ExteriorRing(ST_GeomFromText(@poly))) |\n+----------------------------------------------------+\n| LINESTRING(0 0,0 3,3 3,3 0,0 0) |\n+----------------------------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html'),(581,'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.7/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.7/en/string-functions.html'),(582,'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.7/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.7/en/create-table-foreign-keys.html'),(583,'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.7/en/limits-frm-file.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(584,'ST_LENGTH',13,'ST_Length(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.7/en/gis-linestring-property-functions.html\n\n','mysql> SET @ls = \'LineString(1 1,2 2,3 3)\';\nmysql> SELECT ST_Length(ST_GeomFromText(@ls));\n+---------------------------------+\n| ST_Length(ST_GeomFromText(@ls)) |\n+---------------------------------+\n| 2.8284271247461903 |\n+---------------------------------+\n\nmysql> SET @mls = \'MultiLineString((1 1,2 2,3 3),(4 4,5 5))\';\nmysql> SELECT ST_Length(ST_GeomFromText(@mls));\n+----------------------------------+\n| ST_Length(ST_GeomFromText(@mls)) |\n+----------------------------------+\n| 4.242640687119286 |\n+----------------------------------+\n','http://dev.mysql.com/doc/refman/5.7/en/gis-linestring-property-functions.html'),(585,'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.7/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.7/en/string-comparison-functions.html'),(586,'INSERT DELAYED',28,'Syntax:\nINSERT DELAYED ...\n\nThe DELAYED option for the INSERT statement is a MySQL extension to\nstandard SQL. In previous versions of MySQL, it can be used for certain\nkinds of tables (such as MyISAM), such that when a client uses INSERT\nDELAYED, it gets an okay from the server at once, and the row is queued\nto be inserted when the table is not in use by any other thread.\n\nDELAYED inserts and replaces were deprecated in MySQL 5.6.6. In MySQL\n5.7, DELAYED is not supported. The server recognizes but ignores the\nDELAYED keyword, handles the insert as a nondelayed insert, and\ngenerates an ER_WARN_LEGACY_SYNTAX_CONVERTED warning (\"INSERT DELAYED\nis no longer supported. The statement was converted to INSERT\"). The\nDELAYED keyword is scheduled for removal in a future release.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html'),(587,'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.7/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.7/en/show-procedure-code.html'),(588,'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.7/en/string-type-overview.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html'),(589,'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.7/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.7/en/show-collation.html\n\n','','http://dev.mysql.com/doc/refman/5.7/en/show-collation.html'),(590,'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.0E0, the function\nreturns NULL and (as of MySQL 5.7.4) a warning \"Invalid argument for\nlogarithm\" is reported.\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.7/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.7/en/mathematical-functions.html'),(591,'!=',20,'Syntax:\n<>, !=\n\nNot equal:\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/comparison-operators.html'),(592,'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.7/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.7/en/while.html'),(593,'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.7/en/locale-support.html).\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html\n\n','mysql> SELECT DAYNAME(\'2007-02-03\');\n -> \'Saturday\'\n','http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html'),(594,'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.7/en/mathematical-functions.html\n\n','mysql> SELECT RADIANS(90);\n -> 1.5707963267949\n','http://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html'),(595,'COLLATION',17,'Syntax:\nCOLLATION(str)\n\nReturns the collation of the string argument.\n\nURL: http://dev.mysql.com/doc/refman/5.7/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.7/en/information-functions.html'),(596,'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.7/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.7/en/comparison-operators.html'),(597,'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.7/en/server-system-variables.html.\n\nURL: http://dev.mysql.com/doc/refman/5.7/en/information-functions.html\n\n','mysql> SELECT VERSION();\n -> \'5.7.9-standard\'\n','http://dev.mysql.com/doc/refman/5.7/en/information-functions.html'); /*!40000 ALTER TABLE `help_topic` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `innodb_index_stats` -- DROP TABLE IF EXISTS `innodb_index_stats`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `innodb_index_stats` ( `database_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `index_name` varchar(64) COLLATE utf8_bin NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `stat_name` varchar(64) COLLATE utf8_bin NOT NULL, `stat_value` bigint(20) unsigned NOT NULL, `sample_size` bigint(20) unsigned DEFAULT NULL, `stat_description` varchar(1024) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `innodb_index_stats` -- LOCK TABLES `innodb_index_stats` WRITE; /*!40000 ALTER TABLE `innodb_index_stats` DISABLE KEYS */; INSERT INTO `innodb_index_stats` VALUES ('hbnb_dev_db','amenities','PRIMARY','2020-02-17 19:42:53','n_diff_pfx01',9,1,'id'),('hbnb_dev_db','amenities','PRIMARY','2020-02-17 19:42:53','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','amenities','PRIMARY','2020-02-17 19:42:53','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','cities','PRIMARY','2020-02-17 19:42:39','n_diff_pfx01',11,1,'id'),('hbnb_dev_db','cities','PRIMARY','2020-02-17 19:42:39','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','cities','PRIMARY','2020-02-17 19:42:39','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','cities','state_id','2020-02-17 19:42:39','n_diff_pfx01',6,1,'state_id'),('hbnb_dev_db','cities','state_id','2020-02-17 19:42:39','n_diff_pfx02',11,1,'state_id,id'),('hbnb_dev_db','cities','state_id','2020-02-17 19:42:39','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','cities','state_id','2020-02-17 19:42:39','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','place_amenity','PRIMARY','2020-02-17 19:43:17','n_diff_pfx01',14,1,'place_id'),('hbnb_dev_db','place_amenity','PRIMARY','2020-02-17 19:43:17','n_diff_pfx02',25,1,'place_id,amenity_id'),('hbnb_dev_db','place_amenity','PRIMARY','2020-02-17 19:43:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','place_amenity','PRIMARY','2020-02-17 19:43:17','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','place_amenity','amenity_id','2020-02-17 19:43:17','n_diff_pfx01',9,1,'amenity_id'),('hbnb_dev_db','place_amenity','amenity_id','2020-02-17 19:43:17','n_diff_pfx02',25,1,'amenity_id,place_id'),('hbnb_dev_db','place_amenity','amenity_id','2020-02-17 19:43:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','place_amenity','amenity_id','2020-02-17 19:43:17','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','places','PRIMARY','2020-02-17 19:43:03','n_diff_pfx01',14,1,'id'),('hbnb_dev_db','places','PRIMARY','2020-02-17 19:43:03','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','places','PRIMARY','2020-02-17 19:43:03','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','places','city_id','2020-02-17 19:43:03','n_diff_pfx01',9,1,'city_id'),('hbnb_dev_db','places','city_id','2020-02-17 19:43:03','n_diff_pfx02',14,1,'city_id,id'),('hbnb_dev_db','places','city_id','2020-02-17 19:43:03','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','places','city_id','2020-02-17 19:43:03','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','places','user_id','2020-02-17 19:43:03','n_diff_pfx01',4,1,'user_id'),('hbnb_dev_db','places','user_id','2020-02-17 19:43:03','n_diff_pfx02',14,1,'user_id,id'),('hbnb_dev_db','places','user_id','2020-02-17 19:43:03','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','places','user_id','2020-02-17 19:43:03','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','reviews','PRIMARY','2020-02-17 19:43:07','n_diff_pfx01',20,1,'id'),('hbnb_dev_db','reviews','PRIMARY','2020-02-17 19:43:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','reviews','PRIMARY','2020-02-17 19:43:07','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','reviews','place_id','2020-02-17 19:43:07','n_diff_pfx01',11,1,'place_id'),('hbnb_dev_db','reviews','place_id','2020-02-17 19:43:07','n_diff_pfx02',20,1,'place_id,id'),('hbnb_dev_db','reviews','place_id','2020-02-17 19:43:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','reviews','place_id','2020-02-17 19:43:07','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','reviews','user_id','2020-02-17 19:43:07','n_diff_pfx01',4,1,'user_id'),('hbnb_dev_db','reviews','user_id','2020-02-17 19:43:07','n_diff_pfx02',20,1,'user_id,id'),('hbnb_dev_db','reviews','user_id','2020-02-17 19:43:07','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','reviews','user_id','2020-02-17 19:43:07','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','states','PRIMARY','2020-02-17 19:42:35','n_diff_pfx01',7,1,'id'),('hbnb_dev_db','states','PRIMARY','2020-02-17 19:42:35','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','states','PRIMARY','2020-02-17 19:42:35','size',1,NULL,'Number of pages in the index'),('hbnb_dev_db','users','PRIMARY','2020-02-17 19:42:43','n_diff_pfx01',4,1,'id'),('hbnb_dev_db','users','PRIMARY','2020-02-17 19:42:43','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('hbnb_dev_db','users','PRIMARY','2020-02-17 19:42:43','size',1,NULL,'Number of pages in the index'),('mysql','gtid_executed','PRIMARY','2020-02-04 22:37:15','n_diff_pfx01',0,1,'source_uuid'),('mysql','gtid_executed','PRIMARY','2020-02-04 22:37:15','n_diff_pfx02',0,1,'source_uuid,interval_start'),('mysql','gtid_executed','PRIMARY','2020-02-04 22:37:15','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('mysql','gtid_executed','PRIMARY','2020-02-04 22:37:15','size',1,NULL,'Number of pages in the index'),('sys','sys_config','PRIMARY','2020-02-04 22:37:17','n_diff_pfx01',0,1,'variable'),('sys','sys_config','PRIMARY','2020-02-04 22:37:17','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('sys','sys_config','PRIMARY','2020-02-04 22:37:17','size',1,NULL,'Number of pages in the index'); /*!40000 ALTER TABLE `innodb_index_stats` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `innodb_table_stats` -- DROP TABLE IF EXISTS `innodb_table_stats`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `innodb_table_stats` ( `database_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `n_rows` bigint(20) unsigned NOT NULL, `clustered_index_size` bigint(20) unsigned NOT NULL, `sum_of_other_index_sizes` bigint(20) unsigned NOT NULL, PRIMARY KEY (`database_name`,`table_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `innodb_table_stats` -- LOCK TABLES `innodb_table_stats` WRITE; /*!40000 ALTER TABLE `innodb_table_stats` DISABLE KEYS */; INSERT INTO `innodb_table_stats` VALUES ('hbnb_dev_db','amenities','2020-02-17 19:42:53',9,1,0),('hbnb_dev_db','cities','2020-02-17 19:42:39',11,1,1),('hbnb_dev_db','place_amenity','2020-02-17 19:43:17',25,1,1),('hbnb_dev_db','places','2020-02-17 19:43:03',14,1,2),('hbnb_dev_db','reviews','2020-02-17 19:43:07',20,1,2),('hbnb_dev_db','states','2020-02-17 19:42:35',7,1,0),('hbnb_dev_db','users','2020-02-17 19:42:43',4,1,0),('mysql','gtid_executed','2020-02-04 22:37:15',0,1,0),('sys','sys_config','2020-02-04 22:37:17',0,1,0); /*!40000 ALTER TABLE `innodb_table_stats` 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` int(10) unsigned NOT NULL, `updates` int(10) unsigned NOT NULL, `deletes` int(10) unsigned NOT NULL, `schemaops` int(10) unsigned NOT NULL, `orig_server_id` int(10) unsigned NOT NULL, `orig_epoch` bigint(20) unsigned NOT NULL, `gci` int(10) unsigned NOT NULL, `next_position` bigint(20) unsigned NOT NULL, `next_file` varchar(255) NOT NULL, PRIMARY KEY (`epoch`,`orig_server_id`,`orig_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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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 */; INSERT INTO `proc` VALUES ('sys','extract_schema_from_file_name','FUNCTION','extract_schema_from_file_name','SQL','NO_SQL','YES','INVOKER',' path VARCHAR(512) ','varchar(64) CHARSET utf8','BEGIN RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, \'\\\\\', \'/\'), \'/\', -2), \'/\', 1), 64); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Takes a raw file path, and attempts to extract the schema name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Currently relies on the fact that a table data file will be within a \n specified database directory (will not work with partitions or tables\n that specify an individual DATA_DIRECTORY).\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the schema name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +----------------------------------------------------------------------------+\n | sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +----------------------------------------------------------------------------+\n | employees |\n +----------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, \'\\\', \'/\'), \'/\', -2), \'/\', 1), 64); END'),('sys','extract_table_from_file_name','FUNCTION','extract_table_from_file_name','SQL','NO_SQL','YES','INVOKER',' path VARCHAR(512) ','varchar(64) CHARSET utf8','BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, \'\\\\\', \'/\'), \'/\', -1), \'@0024\', \'$\'), \'.\', 1), 64); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Takes a raw file path, and extracts the table name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the table name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +---------------------------------------------------------------------------+\n | sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +---------------------------------------------------------------------------+\n | employee |\n +---------------------------------------------------------------------------+\n 1 row in set (0.02 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, \'\\\', \'/\'), \'/\', -1), \'@0024\', \'$\'), \'.\', 1), 64); END'),('sys','format_bytes','FUNCTION','format_bytes','SQL','NO_SQL','YES','INVOKER',' bytes TEXT ','text CHARSET utf8','BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), \' PiB\'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), \' TiB\'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), \' GiB\'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), \' MiB\'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), \' KiB\'); ELSE RETURN CONCAT(bytes, \' bytes\'); END IF; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Takes a raw bytes value, and converts it to a human readable format.\n \n Parameters\n \n bytes (TEXT):\n A raw bytes value.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> SELECT sys.format_bytes(2348723492723746) AS size;\n +----------+\n | size |\n +----------+\n | 2.09 PiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(2348723492723) AS size;\n +----------+\n | size |\n +----------+\n | 2.14 TiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(23487234) AS size;\n +-----------+\n | size |\n +-----------+\n | 22.40 MiB |\n +-----------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), \' PiB\'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), \' TiB\'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), \' GiB\'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), \' MiB\'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), \' KiB\'); ELSE RETURN CONCAT(bytes, \' bytes\'); END IF; END'),('sys','format_path','FUNCTION','format_path','SQL','NO_SQL','YES','INVOKER',' path VARCHAR(260) ','varchar(260) CHARSET utf8','BEGIN DECLARE v_path VARCHAR(260); DECLARE v_undo_dir VARCHAR(1024); IF path LIKE \'/private/%\' THEN SET v_path = REPLACE(path, \'/private\', \'\'); ELSE SET v_path = path; END IF; SET v_undo_dir = IFNULL((SELECT VARIABLE_NAME FROM information_schema.GLOBAL_VARIABLES WHERE VARIABLE_NAME = \'innodb_undo_directory\'), \'\'); IF v_path IS NULL THEN RETURN NULL; ELSEIF v_path LIKE CONCAT(@@global.datadir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.datadir, \'@@datadir/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.tmpdir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.tmpdir, \'@@tmpdir/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.slave_load_tmpdir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.slave_load_tmpdir, \'@@slave_load_tmpdir/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.innodb_data_home_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.innodb_data_home_dir, \'@@innodb_data_home_dir/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.innodb_log_group_home_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.innodb_log_group_home_dir, \'@@innodb_log_group_home_dir/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSEIF v_path LIKE CONCAT(v_undo_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, v_undo_dir, \'@@innodb_undo_directory/\'), \'\\\\\\\\\', \'\'), \'\\\\\', \'/\'); ELSE RETURN v_path; END IF; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Takes a raw path value, and strips out the datadir or tmpdir\n replacing with @@datadir and @@tmpdir respectively. \n \n Also normalizes the paths across operating systems, so backslashes\n on Windows are converted to forward slashes\n \n Parameters\n \n path (VARCHAR(260)): \n The raw file path value to format.\n \n Returns\n \n VARCHAR(260) CHARSET UTF8\n \n Example\n \n mysql> select @@datadir;\n +-----------------------------------------------+\n | @@datadir |\n +-----------------------------------------------+\n | /Users/mark/sandboxes/SmallTree/AMaster/data/ |\n +-----------------------------------------------+\n 1 row in set (0.06 sec)\n \n mysql> select format_path(\'/Users/mark/sandboxes/SmallTree/AMaster/data/mysql/proc.MYD\') AS path;\n +--------------------------+\n | path |\n +--------------------------+\n | @@datadir/mysql/proc.MYD |\n +--------------------------+\n 1 row in set (0.03 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_path VARCHAR(260); DECLARE v_undo_dir VARCHAR(1024); IF path LIKE \'/private/%\' THEN SET v_path = REPLACE(path, \'/private\', \'\'); ELSE SET v_path = path; END IF; SET v_undo_dir = IFNULL((SELECT VARIABLE_NAME FROM information_schema.GLOBAL_VARIABLES WHERE VARIABLE_NAME = \'innodb_undo_directory\'), \'\'); IF v_path IS NULL THEN RETURN NULL; ELSEIF v_path LIKE CONCAT(@@global.datadir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.datadir, \'@@datadir/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.tmpdir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.tmpdir, \'@@tmpdir/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.slave_load_tmpdir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.slave_load_tmpdir, \'@@slave_load_tmpdir/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.innodb_data_home_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.innodb_data_home_dir, \'@@innodb_data_home_dir/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSEIF v_path LIKE CONCAT(@@global.innodb_log_group_home_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, @@global.innodb_log_group_home_dir, \'@@innodb_log_group_home_dir/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSEIF v_path LIKE CONCAT(v_undo_dir, \'%\') ESCAPE \'|\' THEN RETURN REPLACE(REPLACE(REPLACE(v_path, v_undo_dir, \'@@innodb_undo_directory/\'), \'\\\\\', \'\'), \'\\\', \'/\'); ELSE RETURN v_path; END IF; END'),('sys','format_statement','FUNCTION','format_statement','SQL','NO_SQL','YES','INVOKER',' statement LONGTEXT ','longtext CHARSET utf8','BEGIN IF @sys.statement_truncate_len IS NULL THEN SET @sys.statement_truncate_len = sys_get_config(\'statement_truncate_len\', 64); END IF; IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), \' ... \', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), \'\\n\', \' \'); ELSE RETURN REPLACE(statement, \'\\n\', \' \'); END IF; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Formats a normalized statement, truncating it if it\'s > 64 characters long by default.\n \n To configure the length to truncate the statement to by default, update the `statement_truncate_len`\n variable with `sys_config` table to a different value. Alternatively, to change it just for just \n your particular session, use `SET @sys.statement_truncate_len := <some new value>`.\n \n Useful for printing statement related data from Performance Schema from \n the command line.\n \n Parameters\n \n statement (LONGTEXT): \n The statement to format.\n \n Returns\n \n VARCHAR(65)\n \n Example\n \n mysql> SELECT sys.format_statement(digest_text)\n -> FROM performance_schema.events_statements_summary_by_digest\n -> ORDER by sum_timer_wait DESC limit 5;\n +-------------------------------------------------------------------+\n | sys.format_statement(digest_text) |\n +-------------------------------------------------------------------+\n | CREATE SQL SECURITY INVOKER VI ... KE ? AND `variable_value` > ? |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `esc` . ... |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `sys` . ... |\n | CREATE SQL SECURITY INVOKER VI ... , `compressed_size` ) ) DESC |\n | CREATE SQL SECURITY INVOKER VI ... LIKE ? ORDER BY `timer_start` |\n +-------------------------------------------------------------------+\n 5 rows in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN IF @sys.statement_truncate_len IS NULL THEN SET @sys.statement_truncate_len = sys_get_config(\'statement_truncate_len\', 64); END IF; IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), \' ... \', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), \'\n\', \' \'); ELSE RETURN REPLACE(statement, \'\n\', \' \'); END IF; END'),('sys','format_time','FUNCTION','format_time','SQL','NO_SQL','YES','INVOKER',' picoseconds TEXT ','text CHARSET utf8','BEGIN IF picoseconds IS NULL THEN RETURN NULL; ELSEIF picoseconds >= 604800000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 604800000000000000, 2), \' w\'); ELSEIF picoseconds >= 86400000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 86400000000000000, 2), \' d\'); ELSEIF picoseconds >= 3600000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 3600000000000000, 2), \' h\'); ELSEIF picoseconds >= 60000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 60000000000000, 2), \' m\'); ELSEIF picoseconds >= 1000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000000, 2), \' s\'); ELSEIF picoseconds >= 1000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000, 2), \' ms\'); ELSEIF picoseconds >= 1000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000, 2), \' us\'); ELSEIF picoseconds >= 1000 THEN RETURN CONCAT(ROUND(picoseconds / 1000, 2), \' ns\'); ELSE RETURN CONCAT(picoseconds, \' ps\'); END IF; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Takes a raw picoseconds value, and converts it to a human readable form.\n \n Picoseconds are the precision that all latency values are printed in \n within Performance Schema, however are not user friendly when wanting\n to scan output from the command line.\n \n Parameters\n \n picoseconds (TEXT): \n The raw picoseconds value to convert.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select format_time(342342342342345);\n +------------------------------+\n | format_time(342342342342345) |\n +------------------------------+\n | 00:05:42 |\n +------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(342342342);\n +------------------------+\n | format_time(342342342) |\n +------------------------+\n | 342.34 us |\n +------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(34234);\n +--------------------+\n | format_time(34234) |\n +--------------------+\n | 34.23 ns |\n +--------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN IF picoseconds IS NULL THEN RETURN NULL; ELSEIF picoseconds >= 604800000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 604800000000000000, 2), \' w\'); ELSEIF picoseconds >= 86400000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 86400000000000000, 2), \' d\'); ELSEIF picoseconds >= 3600000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 3600000000000000, 2), \' h\'); ELSEIF picoseconds >= 60000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 60000000000000, 2), \' m\'); ELSEIF picoseconds >= 1000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000000, 2), \' s\'); ELSEIF picoseconds >= 1000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000, 2), \' ms\'); ELSEIF picoseconds >= 1000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000, 2), \' us\'); ELSEIF picoseconds >= 1000 THEN RETURN CONCAT(ROUND(picoseconds / 1000, 2), \' ns\'); ELSE RETURN CONCAT(picoseconds, \' ps\'); END IF; END'),('sys','ps_is_account_enabled','FUNCTION','ps_is_account_enabled','SQL','READS_SQL_DATA','YES','INVOKER',' in_host VARCHAR(60), in_user VARCHAR(32) ','enum(\'YES\',\'NO\') CHARSET utf8','BEGIN RETURN IF(EXISTS(SELECT 1 FROM performance_schema.setup_actors WHERE (`HOST` = \'%\' OR in_host LIKE `HOST`) AND (`USER` = \'%\' OR `USER` = in_user) AND (`ENABLED` = \'YES\') ), \'YES\', \'NO\' ); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Determines whether instrumentation of an account is enabled \n within Performance Schema.\n \n Parameters\n \n in_host VARCHAR(60): \n The hostname of the account to check.\n in_user (VARCHAR(32)):\n The username of the account to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'PARTIAL\')\n \n Example\n \n mysql> SELECT sys.ps_is_account_enabled(\'localhost\', \'root\');\n +------------------------------------------------+\n | sys.ps_is_account_enabled(\'localhost\', \'root\') |\n +------------------------------------------------+\n | YES |\n +------------------------------------------------+\n 1 row in set (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN RETURN IF(EXISTS(SELECT 1 FROM performance_schema.setup_actors WHERE (`HOST` = \'%\' OR in_host LIKE `HOST`) AND (`USER` = \'%\' OR `USER` = in_user) AND (`ENABLED` = \'YES\') ), \'YES\', \'NO\' ); END'),('sys','ps_is_consumer_enabled','FUNCTION','ps_is_consumer_enabled','SQL','READS_SQL_DATA','YES','INVOKER',' in_consumer varchar(64) ','enum(\'YES\',\'NO\') CHARSET utf8','BEGIN RETURN ( SELECT (CASE WHEN c.NAME = \'global_instrumentation\' THEN c.ENABLED WHEN c.NAME = \'thread_instrumentation\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_digest\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_current\' THEN IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') ELSE IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\' AND ( SELECT cc.ENABLED FROM performance_schema.setup_consumers cc WHERE NAME = CONCAT(SUBSTRING_INDEX(c.NAME, \'_\', 2), \'_current\') ) = \'YES\', \'YES\', \'NO\') END) AS IsEnabled FROM performance_schema.setup_consumers c INNER JOIN performance_schema.setup_consumers cg INNER JOIN performance_schema.setup_consumers ct WHERE cg.NAME = \'global_instrumentation\' AND ct.NAME = \'thread_instrumentation\' AND c.NAME = in_consumer ); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Determines whether a consumer is enabled (taking the consumer hierarchy into consideration)\n within the Performance Schema.\n \n Parameters\n \n in_consumer VARCHAR(64): \n The name of the consumer to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_consumer_enabled(\'events_stages_history\');\n +-----------------------------------------------------+\n | sys.ps_is_consumer_enabled(\'events_stages_history\') |\n +-----------------------------------------------------+\n | NO |\n +-----------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN RETURN ( SELECT (CASE WHEN c.NAME = \'global_instrumentation\' THEN c.ENABLED WHEN c.NAME = \'thread_instrumentation\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_digest\' THEN IF(cg.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') WHEN c.NAME LIKE \'%\\_current\' THEN IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\', \'YES\', \'NO\') ELSE IF(cg.ENABLED = \'YES\' AND ct.ENABLED = \'YES\' AND c.ENABLED = \'YES\' AND ( SELECT cc.ENABLED FROM performance_schema.setup_consumers cc WHERE NAME = CONCAT(SUBSTRING_INDEX(c.NAME, \'_\', 2), \'_current\') ) = \'YES\', \'YES\', \'NO\') END) AS IsEnabled FROM performance_schema.setup_consumers c INNER JOIN performance_schema.setup_consumers cg INNER JOIN performance_schema.setup_consumers ct WHERE cg.NAME = \'global_instrumentation\' AND ct.NAME = \'thread_instrumentation\' AND c.NAME = in_consumer ); END'),('sys','ps_is_instrument_default_enabled','FUNCTION','ps_is_instrument_default_enabled','SQL','READS_SQL_DATA','YES','INVOKER',' in_instrument VARCHAR(128) ','enum(\'YES\',\'NO\') CHARSET utf8','BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\'); SET v_enabled = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\'), \'YES\', \'NO\' ); RETURN v_enabled; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Returns whether an instrument is enabled by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_enabled(\'statement/sql/select\');\n +--------------------------------------------------------------+\n | sys.ps_is_instrument_default_enabled(\'statement/sql/select\') |\n +--------------------------------------------------------------+\n | YES |\n +--------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\'); SET v_enabled = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\'), \'YES\', \'NO\' ); RETURN v_enabled; END'),('sys','ps_is_instrument_default_timed','FUNCTION','ps_is_instrument_default_timed','SQL','READS_SQL_DATA','YES','INVOKER',' in_instrument VARCHAR(128) ','enum(\'YES\',\'NO\') CHARSET utf8','BEGIN DECLARE v_timed ENUM(\'YES\', \'NO\'); SET v_timed = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\'), \'YES\', \'NO\' ); RETURN v_timed; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Returns whether an instrument is timed by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_timed(\'statement/sql/select\');\n +------------------------------------------------------------+\n | sys.ps_is_instrument_default_timed(\'statement/sql/select\') |\n +------------------------------------------------------------+\n | YES |\n +------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_timed ENUM(\'YES\', \'NO\'); SET v_timed = IF(in_instrument LIKE \'wait/io/file/%\' OR in_instrument LIKE \'wait/io/table/%\' OR in_instrument LIKE \'statement/%\' OR in_instrument IN (\'wait/lock/table/sql/handler\', \'idle\'), \'YES\', \'NO\' ); RETURN v_timed; END'),('sys','ps_is_thread_instrumented','FUNCTION','ps_is_thread_instrumented','SQL','READS_SQL_DATA','NO','INVOKER',' in_connection_id BIGINT UNSIGNED ','enum(\'YES\',\'NO\',\'UNKNOWN\') CHARSET utf8','BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\', \'UNKNOWN\'); IF (in_connection_id IS NULL) THEN RETURN NULL; END IF; SELECT INSTRUMENTED INTO v_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = in_connection_id; IF (v_enabled IS NULL) THEN RETURN \'UNKNOWN\'; ELSE RETURN v_enabled; END IF; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Checks whether the provided connection id is instrumented within Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'UNKNOWN\')\n \n Example\n \n mysql> SELECT sys.ps_is_thread_instrumented(CONNECTION_ID());\n +------------------------------------------------+\n | sys.ps_is_thread_instrumented(CONNECTION_ID()) |\n +------------------------------------------------+\n | YES |\n +------------------------------------------------+\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_enabled ENUM(\'YES\', \'NO\', \'UNKNOWN\'); IF (in_connection_id IS NULL) THEN RETURN NULL; END IF; SELECT INSTRUMENTED INTO v_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = in_connection_id; IF (v_enabled IS NULL) THEN RETURN \'UNKNOWN\'; ELSE RETURN v_enabled; END IF; END'),('sys','ps_thread_id','FUNCTION','ps_thread_id','SQL','READS_SQL_DATA','NO','INVOKER',' in_connection_id BIGINT UNSIGNED ','bigint(20) unsigned','BEGIN RETURN (SELECT THREAD_ID FROM `performance_schema`.`threads` WHERE PROCESSLIST_ID = in_connection_id ); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Return the Performance Schema THREAD_ID for the specified connection ID.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to return the thread id for.\n \n Example\n \n mysql> SELECT sys.ps_thread_id(79);\n +----------------------+\n | sys.ps_thread_id(79) |\n +----------------------+\n | 98 |\n +----------------------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.ps_thread_id(CONNECTION_ID());\n +-----------------------------------+\n | sys.ps_thread_id(CONNECTION_ID()) |\n +-----------------------------------+\n | 98 |\n +-----------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN RETURN (SELECT THREAD_ID FROM `performance_schema`.`threads` WHERE PROCESSLIST_ID = in_connection_id ); END'),('sys','ps_thread_stack','FUNCTION','ps_thread_stack','SQL','READS_SQL_DATA','NO','INVOKER',' thd_id BIGINT UNSIGNED, debug BOOLEAN ','longtext CHARSET latin1','BEGIN DECLARE json_objects LONGTEXT; UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = CONNECTION_ID(); SET SESSION group_concat_max_len=@@global.max_allowed_packet; SELECT GROUP_CONCAT(CONCAT( \'{\' , CONCAT_WS( \', \' , CONCAT(\'\"nesting_event_id\": \"\', IF(nesting_event_id IS NULL, \'0\', nesting_event_id), \'\"\') , CONCAT(\'\"event_id\": \"\', event_id, \'\"\') , CONCAT( \'\"timer_wait\": \', ROUND(timer_wait/1000000, 2)) , CONCAT( \'\"event_info\": \"\' , CASE WHEN event_name NOT LIKE \'wait/io%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -2), \'\\\\\', \'\\\\\\\\\') WHEN event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -4), \'\\\\\', \'\\\\\\\\\') ELSE event_name END , \'\"\' ) , CONCAT( \'\"wait_info\": \"\', IFNULL(wait_info, \'\'), \'\"\') , CONCAT( \'\"source\": \"\', IF(true AND event_name LIKE \'wait%\', IFNULL(wait_info, \'\'), \'\'), \'\"\') , CASE WHEN event_name LIKE \'wait/io/file%\' THEN \'\"event_type\": \"io/file\"\' WHEN event_name LIKE \'wait/io/table%\' THEN \'\"event_type\": \"io/table\"\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'\"event_type\": \"io/socket\"\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'\"event_type\": \"synch/mutex\"\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'\"event_type\": \"synch/cond\"\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'\"event_type\": \"synch/rwlock\"\' WHEN event_name LIKE \'wait/lock%\' THEN \'\"event_type\": \"lock\"\' WHEN event_name LIKE \'statement/%\' THEN \'\"event_type\": \"stmt\"\' WHEN event_name LIKE \'stage/%\' THEN \'\"event_type\": \"stage\"\' WHEN event_name LIKE \'%idle%\' THEN \'\"event_type\": \"idle\"\' ELSE \'\' END ) , \'}\' ) ORDER BY event_id ASC SEPARATOR \',\') event INTO json_objects FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(sql_text, \'\\\\n\', \'errors: \', errors, \'\\\\n\', \'warnings: \', warnings, \'\\\\n\', \'lock time: \', ROUND(lock_time/1000000, 2),\'us\\\\n\', \'rows affected: \', rows_affected, \'\\\\n\', \'rows sent: \', rows_sent, \'\\\\n\', \'rows examined: \', rows_examined, \'\\\\n\', \'tmp tables: \', created_tmp_tables, \'\\\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\\\n\', \'select scan: \', select_scan, \'\\\\n\', \'select full join: \', select_full_join, \'\\\\n\', \'select full range join: \', select_full_range_join, \'\\\\n\', \'select range: \', select_range, \'\\\\n\', \'select range check: \', select_range_check, \'\\\\n\', \'sort merge passes: \', sort_merge_passes, \'\\\\n\', \'sort rows: \', sort_rows, \'\\\\n\', \'sort range: \', sort_range, \'\\\\n\', \'sort scan: \', sort_scan, \'\\\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, CONCAT(event_name , IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'), IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\\\nObject: \', object_schema, \'.\'), \'\'), IF(object_name IS NOT NULL, IF (event_name LIKE \'wait/io/socket%\', CONCAT(IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\'), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = thd_id)) events ORDER BY event_id; RETURN CONCAT(\'{\', CONCAT_WS(\',\', \'\"rankdir\": \"LR\"\', \'\"nodesep\": \"0.10\"\', CONCAT(\'\"stack_created\": \"\', NOW(), \'\"\'), CONCAT(\'\"mysql_version\": \"\', VERSION(), \'\"\'), CONCAT(\'\"mysql_user\": \"\', CURRENT_USER(), \'\"\'), CONCAT(\'\"events\": [\', IFNULL(json_objects,\'\'), \']\') ), \'}\'); END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Outputs a JSON formatted stack of all statements, stages and events\n within Performance Schema for the specified thread.\n \n Parameters\n \n thd_id (BIGINT UNSIGNED):\n The id of the thread to trace. This should match the thread_id\n column from the performance_schema.threads table.\n in_verbose (BOOLEAN):\n Include file:lineno information in the events.\n \n Example\n \n (line separation added for output)\n \n mysql> SELECT sys.ps_thread_stack(37, FALSE) AS thread_stack\\G\n *************************** 1. row ***************************\n thread_stack: {\"rankdir\": \"LR\",\"nodesep\": \"0.10\",\"stack_created\": \"2014-02-19 13:39:03\",\n \"mysql_version\": \"5.7.3-m13\",\"mysql_user\": \"root@localhost\",\"events\": \n [{\"nesting_event_id\": \"0\", \"event_id\": \"10\", \"timer_wait\": 256.35, \"event_info\": \n \"sql/select\", \"wait_info\": \"select @@version_comment limit 1\\nerrors: 0\\nwarnings: 0\\nlock time:\n ...\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE json_objects LONGTEXT; UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = CONNECTION_ID(); SET SESSION group_concat_max_len=@@global.max_allowed_packet; SELECT GROUP_CONCAT(CONCAT( \'{\' , CONCAT_WS( \', \' , CONCAT(\'\"nesting_event_id\": \"\', IF(nesting_event_id IS NULL, \'0\', nesting_event_id), \'\"\') , CONCAT(\'\"event_id\": \"\', event_id, \'\"\') , CONCAT( \'\"timer_wait\": \', ROUND(timer_wait/1000000, 2)) , CONCAT( \'\"event_info\": \"\' , CASE WHEN event_name NOT LIKE \'wait/io%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -2), \'\\\', \'\\\\\') WHEN event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\' THEN REPLACE(SUBSTRING_INDEX(event_name, \'/\', -4), \'\\\', \'\\\\\') ELSE event_name END , \'\"\' ) , CONCAT( \'\"wait_info\": \"\', IFNULL(wait_info, \'\'), \'\"\') , CONCAT( \'\"source\": \"\', IF(true AND event_name LIKE \'wait%\', IFNULL(wait_info, \'\'), \'\'), \'\"\') , CASE WHEN event_name LIKE \'wait/io/file%\' THEN \'\"event_type\": \"io/file\"\' WHEN event_name LIKE \'wait/io/table%\' THEN \'\"event_type\": \"io/table\"\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'\"event_type\": \"io/socket\"\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'\"event_type\": \"synch/mutex\"\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'\"event_type\": \"synch/cond\"\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'\"event_type\": \"synch/rwlock\"\' WHEN event_name LIKE \'wait/lock%\' THEN \'\"event_type\": \"lock\"\' WHEN event_name LIKE \'statement/%\' THEN \'\"event_type\": \"stmt\"\' WHEN event_name LIKE \'stage/%\' THEN \'\"event_type\": \"stage\"\' WHEN event_name LIKE \'%idle%\' THEN \'\"event_type\": \"idle\"\' ELSE \'\' END ) , \'}\' ) ORDER BY event_id ASC SEPARATOR \',\') event INTO json_objects FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(sql_text, \'\\n\', \'errors: \', errors, \'\\n\', \'warnings: \', warnings, \'\\n\', \'lock time: \', ROUND(lock_time/1000000, 2),\'us\\n\', \'rows affected: \', rows_affected, \'\\n\', \'rows sent: \', rows_sent, \'\\n\', \'rows examined: \', rows_examined, \'\\n\', \'tmp tables: \', created_tmp_tables, \'\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\n\', \'select scan: \', select_scan, \'\\n\', \'select full join: \', select_full_join, \'\\n\', \'select full range join: \', select_full_range_join, \'\\n\', \'select range: \', select_range, \'\\n\', \'select range check: \', select_range_check, \'\\n\', \'sort merge passes: \', sort_merge_passes, \'\\n\', \'sort rows: \', sort_rows, \'\\n\', \'sort range: \', sort_range, \'\\n\', \'sort scan: \', sort_scan, \'\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, CONCAT(event_name , IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'), IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\nObject: \', object_schema, \'.\'), \'\'), IF(object_name IS NOT NULL, IF (event_name LIKE \'wait/io/socket%\', CONCAT(IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\'), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = thd_id)) events ORDER BY event_id; RETURN CONCAT(\'{\', CONCAT_WS(\',\', \'\"rankdir\": \"LR\"\', \'\"nodesep\": \"0.10\"\', CONCAT(\'\"stack_created\": \"\', NOW(), \'\"\'), CONCAT(\'\"mysql_version\": \"\', VERSION(), \'\"\'), CONCAT(\'\"mysql_user\": \"\', CURRENT_USER(), \'\"\'), CONCAT(\'\"events\": [\', IFNULL(json_objects,\'\'), \']\') ), \'}\'); END'),('sys','sys_get_config','FUNCTION','sys_get_config','SQL','READS_SQL_DATA','YES','INVOKER',' in_variable_name VARCHAR(128), in_default_value VARCHAR(128) ','varchar(128) CHARSET utf8','BEGIN DECLARE v_value VARCHAR(128) DEFAULT NULL; SET v_value = (SELECT value FROM sys.sys_config WHERE variable = in_variable_name); IF (v_value IS NULL) THEN SET v_value = in_default_value; END IF; RETURN v_value; END','root@localhost','2020-02-04 22:37:17','2020-02-04 22:37:17','','\n Description\n \n Returns the value for the requested variable using the following logic:\n \n 1. If the option exists in sys.sys_config return the value from there.\n 2. Else fall back on the provided default value.\n \n Notes for using sys_get_config():\n \n * If the default value argument to sys_get_config() is NULL and case 2. is reached, NULL is returned.\n It is then expected that the caller is able to handle NULL for the given configuration option.\n * The convention is to name the user variables @sys.<name of variable>. It is <name of variable> that\n is stored in the sys_config table and is what is expected as the argument to sys_get_config().\n * If you want to check whether the configuration option has already been set and if not assign with\n the return value of sys_get_config() you can use IFNULL(...) (see example below). However this should\n not be done inside a loop (e.g. for each row in a result set) as for repeated calls where assignment\n is only needed in the first iteration using IFNULL(...) is expected to be significantly slower than\n using an IF (...) THEN ... END IF; block (see example below).\n \n Parameters\n \n in_variable_name (VARCHAR(128)):\n The name of the config option to return the value for.\n \n in_default_value (VARCHAR(128)):\n The default value to return if neither a use variable exists nor the variable exists\n in sys.sys_config.\n \n Returns\n \n VARCHAR(128)\n \n Example\n \n mysql> SELECT sys.sys_get_config(\'statement_truncate_len\', 128) AS Value;\n +-------+\n | Value |\n +-------+\n | 64 |\n +-------+\n 1 row in set (0.00 sec)\n \n mysql> SET @sys.statement_truncate_len = IFNULL(@sys.statement_truncate_len, sys.sys_get_config(\'statement_truncate_len\', 64));\n Query OK, 0 rows affected (0.00 sec)\n \n IF (@sys.statement_truncate_len IS NULL) THEN\n SET @sys.statement_truncate_len = sys.sys_get_config(\'statement_truncate_len\', 64);\n END IF;\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_value VARCHAR(128) DEFAULT NULL; SET v_value = (SELECT value FROM sys.sys_config WHERE variable = in_variable_name); IF (v_value IS NULL) THEN SET v_value = in_default_value; END IF; RETURN v_value; END'),('sys','create_synonym_db','PROCEDURE','create_synonym_db','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_db_name VARCHAR(64), IN in_synonym VARCHAR(64) ','','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_db_name_check VARCHAR(64); DECLARE v_db_err_msg TEXT; DECLARE v_table VARCHAR(64); DECLARE v_views_created INT DEFAULT 0; DECLARE db_doesnt_exist CONDITION FOR SQLSTATE \'42000\'; DECLARE db_name_exists CONDITION FOR SQLSTATE \'HY000\'; DECLARE c_table_names CURSOR FOR SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = in_db_name; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_db_name; IF v_db_name_check IS NULL THEN SET v_db_err_msg = CONCAT(\'Unknown database \', in_db_name); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_synonym; IF v_db_name_check = in_synonym THEN SET v_db_err_msg = CONCAT(\'Can\\\'t create database \', in_synonym, \'; database exists\'); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF; SET @create_db_stmt := CONCAT(\'CREATE DATABASE \', in_synonym); PREPARE create_db_stmt FROM @create_db_stmt; EXECUTE create_db_stmt; DEALLOCATE PREPARE create_db_stmt; SET v_done = FALSE; OPEN c_table_names; c_table_names: LOOP FETCH c_table_names INTO v_table; IF v_done THEN LEAVE c_table_names; END IF; SET @create_view_stmt = CONCAT(\'CREATE SQL SECURITY INVOKER VIEW \', in_synonym, \'.\', v_table, \' AS SELECT * FROM \', in_db_name, \'.\', v_table); PREPARE create_view_stmt FROM @create_view_stmt; EXECUTE create_view_stmt; DEALLOCATE PREPARE create_view_stmt; SET v_views_created = v_views_created + 1; END LOOP; CLOSE c_table_names; SELECT CONCAT(\'Created \', v_views_created, \' view\', IF(v_views_created != 1, \'s\', \'\'), \' in the \', in_synonym, \' database\') AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Takes a source database name and synonym name, and then creates the \n synonym database with views that point to all of the tables within\n the source database.\n \n Useful for creating a \"ps\" synonym for \"performance_schema\",\n or \"is\" instead of \"information_schema\", for example.\n \n Parameters\n \n in_db_name (VARCHAR(64)):\n The database name that you would like to create a synonym for.\n in_synonym (VARCHAR(64)):\n The database synonym name.\n \n Example\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database |\n +--------------------+\n | information_schema |\n | mysql |\n | performance_schema |\n | sys |\n | test |\n +--------------------+\n 5 rows in set (0.00 sec)\n \n mysql> CALL sys.create_synonym_db(\'performance_schema\', \'ps\');\n +-------------------------------------+\n | summary |\n +-------------------------------------+\n | Created 74 views in the ps database |\n +-------------------------------------+\n 1 row in set (8.57 sec)\n \n Query OK, 0 rows affected (8.57 sec)\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database |\n +--------------------+\n | information_schema |\n | mysql |\n | performance_schema |\n | ps |\n | sys |\n | test |\n +--------------------+\n 6 rows in set (0.00 sec)\n \n mysql> SHOW FULL TABLES FROM ps;\n +------------------------------------------------------+------------+\n | Tables_in_ps | Table_type |\n +------------------------------------------------------+------------+\n | accounts | VIEW |\n | cond_instances | VIEW |\n | events_stages_current | VIEW |\n | events_stages_history | VIEW |\n ...\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_db_name_check VARCHAR(64); DECLARE v_db_err_msg TEXT; DECLARE v_table VARCHAR(64); DECLARE v_views_created INT DEFAULT 0; DECLARE db_doesnt_exist CONDITION FOR SQLSTATE \'42000\'; DECLARE db_name_exists CONDITION FOR SQLSTATE \'HY000\'; DECLARE c_table_names CURSOR FOR SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = in_db_name; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_db_name; IF v_db_name_check IS NULL THEN SET v_db_err_msg = CONCAT(\'Unknown database \', in_db_name); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_synonym; IF v_db_name_check = in_synonym THEN SET v_db_err_msg = CONCAT(\'Can\'t create database \', in_synonym, \'; database exists\'); SIGNAL SQLSTATE \'HY000\' SET MESSAGE_TEXT = v_db_err_msg; END IF; SET @create_db_stmt := CONCAT(\'CREATE DATABASE \', in_synonym); PREPARE create_db_stmt FROM @create_db_stmt; EXECUTE create_db_stmt; DEALLOCATE PREPARE create_db_stmt; SET v_done = FALSE; OPEN c_table_names; c_table_names: LOOP FETCH c_table_names INTO v_table; IF v_done THEN LEAVE c_table_names; END IF; SET @create_view_stmt = CONCAT(\'CREATE SQL SECURITY INVOKER VIEW \', in_synonym, \'.\', v_table, \' AS SELECT * FROM \', in_db_name, \'.\', v_table); PREPARE create_view_stmt FROM @create_view_stmt; EXECUTE create_view_stmt; DEALLOCATE PREPARE create_view_stmt; SET v_views_created = v_views_created + 1; END LOOP; CLOSE c_table_names; SELECT CONCAT(\'Created \', v_views_created, \' view\', IF(v_views_created != 1, \'s\', \'\'), \' in the \', in_synonym, \' database\') AS summary; END'),('sys','ps_statement_avg_latency_histogram','PROCEDURE','ps_statement_avg_latency_histogram','SQL','READS_SQL_DATA','NO','INVOKER','','','BEGIN SELECT CONCAT(\'\\n\', \'\\n . = 1 unit\', \'\\n * = 2 units\', \'\\n # = 3 units\\n\', @label := CONCAT(@label_inner := CONCAT(\'\\n(0 - \', ROUND((@bucket_size := (SELECT ROUND((MAX(avg_us) - MIN(avg_us)) / (@buckets := 16)) AS size FROM sys.x$ps_digest_avg_latency_distribution)) / (@unit_div := 1000)), (@unit := \'ms\'), \')\'), REPEAT(\' \', (@max_label_size := ((1 + LENGTH(ROUND((@bucket_size * 15) / @unit_div)) + 3 + LENGTH(ROUND(@bucket_size * 16) / @unit_div)) + 1)) - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us <= @bucket_size), 0)), REPEAT(\' \', (@max_label_len := (@max_label_size + LENGTH((@total_queries := (SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution)))) + 1) - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < (@one_unit := 40), \'.\', IF(@count_in_bucket < (@two_unit := 80), \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND(@bucket_size / @unit_div), \' - \', ROUND((@bucket_size * 2) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size AND b1.avg_us <= @bucket_size * 2), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 2) / @unit_div), \' - \', ROUND((@bucket_size * 3) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 2 AND b1.avg_us <= @bucket_size * 3), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 3) / @unit_div), \' - \', ROUND((@bucket_size * 4) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 3 AND b1.avg_us <= @bucket_size * 4), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 4) / @unit_div), \' - \', ROUND((@bucket_size * 5) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 4 AND b1.avg_us <= @bucket_size * 5), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 5) / @unit_div), \' - \', ROUND((@bucket_size * 6) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 5 AND b1.avg_us <= @bucket_size * 6), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 6) / @unit_div), \' - \', ROUND((@bucket_size * 7) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 6 AND b1.avg_us <= @bucket_size * 7), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 7) / @unit_div), \' - \', ROUND((@bucket_size * 8) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 7 AND b1.avg_us <= @bucket_size * 8), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 8) / @unit_div), \' - \', ROUND((@bucket_size * 9) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 8 AND b1.avg_us <= @bucket_size * 9), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 9) / @unit_div), \' - \', ROUND((@bucket_size * 10) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 9 AND b1.avg_us <= @bucket_size * 10), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 10) / @unit_div), \' - \', ROUND((@bucket_size * 11) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 10 AND b1.avg_us <= @bucket_size * 11), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 11) / @unit_div), \' - \', ROUND((@bucket_size * 12) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 11 AND b1.avg_us <= @bucket_size * 12), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 12) / @unit_div), \' - \', ROUND((@bucket_size * 13) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 12 AND b1.avg_us <= @bucket_size * 13), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 13) / @unit_div), \' - \', ROUND((@bucket_size * 14) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 13 AND b1.avg_us <= @bucket_size * 14), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 14) / @unit_div), \' - \', ROUND((@bucket_size * 15) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 14 AND b1.avg_us <= @bucket_size * 15), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\\n(\', ROUND((@bucket_size * 15) / @unit_div), \' - \', ROUND((@bucket_size * 16) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 15 AND b1.avg_us <= @bucket_size * 16), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), \'\\n\\n Total Statements: \', @total_queries, \'; Buckets: \', @buckets , \'; Bucket Size: \', ROUND(@bucket_size / @unit_div) , \' \', @unit, \';\\n\' ) AS `Performance Schema Statement Digest Average Latency Histogram`; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Outputs a textual histogram graph of the average latency values\n across all normalized queries tracked within the Performance Schema\n events_statements_summary_by_digest table.\n \n Can be used to show a very high level picture of what kind of \n latency distribution statements running within this instance have.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_statement_avg_latency_histogram()G\n *************************** 1. row ***************************\n Performance Schema Statement Digest Average Latency Histogram:\n \n . = 1 unit\n * = 2 units\n # = 3 units\n \n (0 - 38ms) 240 | ################################################################################\n (38 - 77ms) 38 | ......................................\n (77 - 115ms) 3 | ...\n (115 - 154ms) 62 | *******************************\n (154 - 192ms) 3 | ...\n (192 - 231ms) 0 |\n (231 - 269ms) 0 |\n (269 - 307ms) 0 |\n (307 - 346ms) 0 |\n (346 - 384ms) 1 | .\n (384 - 423ms) 1 | .\n (423 - 461ms) 0 |\n (461 - 499ms) 0 |\n (499 - 538ms) 0 |\n (538 - 576ms) 0 |\n (576 - 615ms) 1 | .\n \n Total Statements: 350; Buckets: 16; Bucket Size: 38 ms;\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT CONCAT(\'\n\', \'\n . = 1 unit\', \'\n * = 2 units\', \'\n # = 3 units\n\', @label := CONCAT(@label_inner := CONCAT(\'\n(0 - \', ROUND((@bucket_size := (SELECT ROUND((MAX(avg_us) - MIN(avg_us)) / (@buckets := 16)) AS size FROM sys.x$ps_digest_avg_latency_distribution)) / (@unit_div := 1000)), (@unit := \'ms\'), \')\'), REPEAT(\' \', (@max_label_size := ((1 + LENGTH(ROUND((@bucket_size * 15) / @unit_div)) + 3 + LENGTH(ROUND(@bucket_size * 16) / @unit_div)) + 1)) - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us <= @bucket_size), 0)), REPEAT(\' \', (@max_label_len := (@max_label_size + LENGTH((@total_queries := (SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution)))) + 1) - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < (@one_unit := 40), \'.\', IF(@count_in_bucket < (@two_unit := 80), \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND(@bucket_size / @unit_div), \' - \', ROUND((@bucket_size * 2) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size AND b1.avg_us <= @bucket_size * 2), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 2) / @unit_div), \' - \', ROUND((@bucket_size * 3) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 2 AND b1.avg_us <= @bucket_size * 3), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 3) / @unit_div), \' - \', ROUND((@bucket_size * 4) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 3 AND b1.avg_us <= @bucket_size * 4), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 4) / @unit_div), \' - \', ROUND((@bucket_size * 5) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 4 AND b1.avg_us <= @bucket_size * 5), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 5) / @unit_div), \' - \', ROUND((@bucket_size * 6) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 5 AND b1.avg_us <= @bucket_size * 6), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 6) / @unit_div), \' - \', ROUND((@bucket_size * 7) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 6 AND b1.avg_us <= @bucket_size * 7), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 7) / @unit_div), \' - \', ROUND((@bucket_size * 8) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 7 AND b1.avg_us <= @bucket_size * 8), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 8) / @unit_div), \' - \', ROUND((@bucket_size * 9) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 8 AND b1.avg_us <= @bucket_size * 9), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 9) / @unit_div), \' - \', ROUND((@bucket_size * 10) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 9 AND b1.avg_us <= @bucket_size * 10), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 10) / @unit_div), \' - \', ROUND((@bucket_size * 11) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 10 AND b1.avg_us <= @bucket_size * 11), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 11) / @unit_div), \' - \', ROUND((@bucket_size * 12) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 11 AND b1.avg_us <= @bucket_size * 12), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 12) / @unit_div), \' - \', ROUND((@bucket_size * 13) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 12 AND b1.avg_us <= @bucket_size * 13), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 13) / @unit_div), \' - \', ROUND((@bucket_size * 14) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 13 AND b1.avg_us <= @bucket_size * 14), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 14) / @unit_div), \' - \', ROUND((@bucket_size * 15) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 14 AND b1.avg_us <= @bucket_size * 15), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), @label := CONCAT(@label_inner := CONCAT(\'\n(\', ROUND((@bucket_size * 15) / @unit_div), \' - \', ROUND((@bucket_size * 16) / @unit_div), @unit, \')\'), REPEAT(\' \', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 15 AND b1.avg_us <= @bucket_size * 16), 0)), REPEAT(\' \', @max_label_len - LENGTH(@label)), \'| \', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, \'.\', IF(@count_in_bucket < @two_unit, \'*\', \'#\')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), \'\'), \'\n\n Total Statements: \', @total_queries, \'; Buckets: \', @buckets , \'; Bucket Size: \', ROUND(@bucket_size / @unit_div) , \' \', @unit, \';\n\' ) AS `Performance Schema Statement Digest Average Latency Histogram`; END'),('sys','ps_trace_statement_digest','PROCEDURE','ps_trace_statement_digest','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_digest VARCHAR(32), IN in_runtime INT, IN in_interval DECIMAL(2,2), IN in_start_fresh BOOLEAN, IN in_auto_enable BOOLEAN ','','BEGIN DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) ); DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) ); SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF; SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0); UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, \'YES\', \'NO\'); UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\' AND NAME NOT LIKE \'events_wait%\' AND NAME NOT LIKE \'events_transactions%\' AND NAME <> \'statements_digest\'; UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED = \'YES\' WHERE NAME LIKE \'statement/%\' OR NAME LIKE \'stage/%\'; END IF; WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start; INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno, rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest; INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE; SELECT \"SUMMARY STATISTICS\"; SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace; SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC; SELECT \"LONGEST RUNNING STATEMENT\"; SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages; SET @stmt := CONCAT(\"EXPLAIN FORMAT=JSON \", @sql); PREPARE explain_stmt FROM @stmt; EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Traces all instrumentation within Performance Schema for a specific\n Statement Digest. \n \n When finding a statement of interest within the \n performance_schema.events_statements_summary_by_digest table, feed\n the DIGEST MD5 value in to this procedure, set how long to poll for, \n and at what interval to poll, and it will generate a report of all \n statistics tracked within Performance Schema for that digest for the\n interval.\n \n It will also attempt to generate an EXPLAIN for the longest running \n example of the digest during the interval. Note this may fail, as\n Performance Schema truncates long SQL_TEXT values (and hence the \n EXPLAIN will fail due to parse errors).\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_digest (VARCHAR(32)):\n The statement digest identifier you would like to analyze\n in_runtime (INT):\n The number of seconds to run analysis for (defaults to a minute)\n in_interval (DECIMAL(2,2)):\n The interval (in seconds, may be fractional) at which to try\n and take snapshots (defaults to a second)\n in_start_fresh (BOOLEAN):\n Whether to TRUNCATE the events_statements_history_long and\n events_stages_history_long tables before starting (default false)\n in_auto_enable (BOOLEAN):\n Whether to automatically turn on required consumers (default false)\n \n Example\n \n mysql> call ps_trace_statement_digest(\'891ec6860f98ba46d89dd20b0c03652c\', 10, 0.1, true, true);\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n 1 row in set (9.11 sec)\n \n +------------+-----------+-----------+-----------+---------------+------------+------------+\n | executions | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scans |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n | 21 | 4.11 ms | 2.00 ms | 0 | 21 | 0 | 0 |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n 1 row in set (9.11 sec)\n \n +------------------------------------------+-------+-----------+\n | event_name | count | latency |\n +------------------------------------------+-------+-----------+\n | stage/sql/checking query cache for query | 16 | 724.37 us |\n | stage/sql/statistics | 16 | 546.92 us |\n | stage/sql/freeing items | 18 | 520.11 us |\n | stage/sql/init | 51 | 466.80 us |\n ...\n | stage/sql/cleaning up | 18 | 11.92 us |\n | stage/sql/executing | 16 | 6.95 us |\n +------------------------------------------+-------+-----------+\n 17 rows in set (9.12 sec)\n \n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n 1 row in set (9.16 sec)\n \n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n | thread_id | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scan |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n | 166646 | 618.43 us | 1.00 ms | 0 | 1 | 0 | 0 |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n 1 row in set (9.16 sec)\n \n // Truncated for clarity...\n +-----------------------------------------------------------------+\n | sql_text |\n +-----------------------------------------------------------------+\n | select hibeventhe0_.id as id1382_, hibeventhe0_.createdTime ... |\n +-----------------------------------------------------------------+\n 1 row in set (9.17 sec)\n \n +------------------------------------------+-----------+\n | event_name | latency |\n +------------------------------------------+-----------+\n | stage/sql/init | 8.61 us |\n | stage/sql/Waiting for query cache lock | 453.23 us |\n | stage/sql/init | 331.07 ns |\n | stage/sql/checking query cache for query | 43.04 us |\n ...\n | stage/sql/freeing items | 30.46 us |\n | stage/sql/cleaning up | 662.13 ns |\n +------------------------------------------+-----------+\n 18 rows in set (9.23 sec)\n \n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n | 1 | SIMPLE | hibeventhe0_ | const | fixedTime | fixedTime | 775 | const,const | 1 | NULL |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n 1 row in set (9.27 sec)\n \n Query OK, 0 rows affected (9.28 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) ); DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) ); SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF; SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0); UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, \'YES\', \'NO\'); UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\' AND NAME NOT LIKE \'events_wait%\' AND NAME NOT LIKE \'events_transactions%\' AND NAME <> \'statements_digest\'; UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED = \'YES\' WHERE NAME LIKE \'statement/%\' OR NAME LIKE \'stage/%\'; END IF; WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start; INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno, rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest; INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE; SELECT \"SUMMARY STATISTICS\"; SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace; SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC; SELECT \"LONGEST RUNNING STATEMENT\"; SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages; SET @stmt := CONCAT(\"EXPLAIN FORMAT=JSON \", @sql); PREPARE explain_stmt FROM @stmt; EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END'),('sys','ps_trace_thread','PROCEDURE','ps_trace_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_thread_id BIGINT UNSIGNED, IN in_outfile VARCHAR(255), IN in_max_runtime DECIMAL(20,2), IN in_interval DECIMAL(20,2), IN in_start_fresh BOOLEAN, IN in_auto_setup BOOLEAN, IN in_debug BOOLEAN ','','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_start, v_runtime DECIMAL(20,2) DEFAULT 0.0; DECLARE v_min_event_id bigint unsigned DEFAULT 0; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_event longtext; DECLARE c_stack CURSOR FOR SELECT CONCAT(IF(nesting_event_id IS NOT NULL, CONCAT(nesting_event_id, \' -> \'), \'\'), event_id, \'; \', event_id, \' [label=\"\', \'(\', sys.format_time(timer_wait), \') \', IF (event_name NOT LIKE \'wait/io%\', SUBSTRING_INDEX(event_name, \'/\', -2), IF (event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\', SUBSTRING_INDEX(event_name, \'/\', -4), event_name) ), IF (event_name LIKE \'statement/%\', IFNULL(CONCAT(\'\\\\n\', wait_info), \'\'), \'\'), IF (in_debug AND event_name LIKE \'wait%\', wait_info, \'\'), \'\", \', CASE WHEN event_name LIKE \'wait/io/file%\' THEN \'shape=box, style=filled, color=red\' WHEN event_name LIKE \'wait/io/table%\' THEN \'shape=box, style=filled, color=green\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'shape=box, style=filled, color=yellow\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'style=filled, color=lightskyblue\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'style=filled, color=darkseagreen3\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'style=filled, color=orchid\' WHEN event_name LIKE \'wait/lock%\' THEN \'shape=box, style=filled, color=tan\' WHEN event_name LIKE \'statement/%\' THEN CONCAT(\'shape=box, style=bold\', CASE WHEN event_name LIKE \'statement/com/%\' THEN \' style=filled, color=darkseagreen\' ELSE IF((timer_wait/1000000000000) > @@long_query_time, \' style=filled, color=red\', \' style=filled, color=lightblue\') END ) WHEN event_name LIKE \'stage/%\' THEN \'style=filled, color=slategray3\' WHEN event_name LIKE \'%idle%\' THEN \'shape=box, style=filled, color=firebrick3\' ELSE \'\' END, \'];\\n\' ) event, event_id FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(sql_text, \'\\\\n\', \'errors: \', errors, \'\\\\n\', \'warnings: \', warnings, \'\\\\n\', \'lock time: \', sys.format_time(lock_time),\'\\\\n\', \'rows affected: \', rows_affected, \'\\\\n\', \'rows sent: \', rows_sent, \'\\\\n\', \'rows examined: \', rows_examined, \'\\\\n\', \'tmp tables: \', created_tmp_tables, \'\\\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\\\n\' \'select scan: \', select_scan, \'\\\\n\', \'select full join: \', select_full_join, \'\\\\n\', \'select full range join: \', select_full_range_join, \'\\\\n\', \'select range: \', select_range, \'\\\\n\', \'select range check: \', select_range_check, \'\\\\n\', \'sort merge passes: \', sort_merge_passes, \'\\\\n\', \'sort rows: \', sort_rows, \'\\\\n\', \'sort range: \', sort_range, \'\\\\n\', \'sort scan: \', sort_scan, \'\\\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, CONCAT(event_name, IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'), IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\\\nObject: \', object_schema, \'.\'), \'\'), IF(object_name IS NOT NULL, IF (event_name LIKE \'wait/io/socket%\', CONCAT(\'\\\\n\', IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\' ), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) ) events ORDER BY event_id; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); IF (in_auto_setup) THEN CALL sys.ps_setup_save(0); DELETE FROM performance_schema.setup_actors; UPDATE performance_schema.threads SET INSTRUMENTED = IF(THREAD_ID = in_thread_id, \'YES\', \'NO\'); UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\'; UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED = \'YES\'; END IF; IF (in_start_fresh) THEN TRUNCATE performance_schema.events_statements_history_long; TRUNCATE performance_schema.events_stages_history_long; TRUNCATE performance_schema.events_waits_history_long; END IF; DROP TEMPORARY TABLE IF EXISTS tmp_events; CREATE TEMPORARY TABLE tmp_events ( event_id bigint unsigned NOT NULL, event longblob, PRIMARY KEY (event_id) ); INSERT INTO tmp_events VALUES (0, CONCAT(\'digraph events { rankdir=LR; nodesep=0.10;\\n\', \'// Stack created .....: \', NOW(), \'\\n\', \'// MySQL version .....: \', VERSION(), \'\\n\', \'// MySQL hostname ....: \', @@hostname, \'\\n\', \'// MySQL port ........: \', @@port, \'\\n\', \'// MySQL socket ......: \', @@socket, \'\\n\', \'// MySQL user ........: \', CURRENT_USER(), \'\\n\')); SELECT CONCAT(\'Data collection starting for THREAD_ID = \', in_thread_id) AS \'Info\'; SET v_min_event_id = 0, v_start = UNIX_TIMESTAMP(), in_interval = IFNULL(in_interval, 1.00), in_max_runtime = IFNULL(in_max_runtime, 60.00); WHILE (v_runtime < in_max_runtime AND (SELECT INSTRUMENTED FROM performance_schema.threads WHERE THREAD_ID = in_thread_id) = \'YES\') DO SET v_done = FALSE; OPEN c_stack; c_stack_loop: LOOP FETCH c_stack INTO v_event, v_min_event_id; IF v_done THEN LEAVE c_stack_loop; END IF; IF (LENGTH(v_event) > 0) THEN INSERT INTO tmp_events VALUES (v_min_event_id, v_event); END IF; END LOOP; CLOSE c_stack; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = (UNIX_TIMESTAMP() - v_start); END WHILE; INSERT INTO tmp_events VALUES (v_min_event_id+1, \'}\'); SET @query = CONCAT(\'SELECT event FROM tmp_events ORDER BY event_id INTO OUTFILE \'\'\', in_outfile, \'\'\' FIELDS ESCAPED BY \'\'\'\' LINES TERMINATED BY \'\'\'\'\'); PREPARE stmt_output FROM @query; EXECUTE stmt_output; DEALLOCATE PREPARE stmt_output; SELECT CONCAT(\'Stack trace written to \', in_outfile) AS \'Info\'; SELECT CONCAT(\'dot -Tpdf -o /tmp/stack_\', in_thread_id, \'.pdf \', in_outfile) AS \'Convert to PDF\'; SELECT CONCAT(\'dot -Tpng -o /tmp/stack_\', in_thread_id, \'.png \', in_outfile) AS \'Convert to PNG\'; DROP TEMPORARY TABLE tmp_events; IF (in_auto_setup) THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Dumps all data within Performance Schema for an instrumented thread,\n to create a DOT formatted graph file. \n \n Each resultset returned from the procedure should be used for a complete graph\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The thread that you would like a stack trace for\n in_outfile (VARCHAR(255)):\n The filename the dot file will be written to\n in_max_runtime (DECIMAL(20,2)):\n The maximum time to keep collecting data.\n Use NULL to get the default which is 60 seconds.\n in_interval (DECIMAL(20,2)): \n How long to sleep between data collections. \n Use NULL to get the default which is 1 second.\n in_start_fresh (BOOLEAN):\n Whether to reset all Performance Schema data before tracing.\n in_auto_setup (BOOLEAN):\n Whether to disable all other threads and enable all consumers/instruments. \n This will also reset the settings at the end of the run.\n in_debug (BOOLEAN):\n Whether you would like to include file:lineno in the graph\n \n Example\n \n mysql> CALL sys.ps_trace_thread(25, CONCAT(\'/tmp/stack-\', REPLACE(NOW(), \' \', \'-\'), \'.dot\'), NULL, NULL, TRUE, TRUE, TRUE);\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n \n +---------------------------------------------+\n | Info |\n +---------------------------------------------+\n | Data collection starting for THREAD_ID = 25 |\n +---------------------------------------------+\n 1 row in set (0.03 sec)\n \n +-----------------------------------------------------------+\n | Info |\n +-----------------------------------------------------------+\n | Stack trace written to /tmp/stack-2014-02-16-21:18:41.dot |\n +-----------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PDF |\n +-------------------------------------------------------------------+\n | dot -Tpdf -o /tmp/stack_25.pdf /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PNG |\n +-------------------------------------------------------------------+\n | dot -Tpng -o /tmp/stack_25.png /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (60.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_start, v_runtime DECIMAL(20,2) DEFAULT 0.0; DECLARE v_min_event_id bigint unsigned DEFAULT 0; DECLARE v_this_thread_enabed ENUM(\'YES\', \'NO\'); DECLARE v_event longtext; DECLARE c_stack CURSOR FOR SELECT CONCAT(IF(nesting_event_id IS NOT NULL, CONCAT(nesting_event_id, \' -> \'), \'\'), event_id, \'; \', event_id, \' [label=\"\', \'(\', sys.format_time(timer_wait), \') \', IF (event_name NOT LIKE \'wait/io%\', SUBSTRING_INDEX(event_name, \'/\', -2), IF (event_name NOT LIKE \'wait/io/file%\' OR event_name NOT LIKE \'wait/io/socket%\', SUBSTRING_INDEX(event_name, \'/\', -4), event_name) ), IF (event_name LIKE \'statement/%\', IFNULL(CONCAT(\'\\n\', wait_info), \'\'), \'\'), IF (in_debug AND event_name LIKE \'wait%\', wait_info, \'\'), \'\", \', CASE WHEN event_name LIKE \'wait/io/file%\' THEN \'shape=box, style=filled, color=red\' WHEN event_name LIKE \'wait/io/table%\' THEN \'shape=box, style=filled, color=green\' WHEN event_name LIKE \'wait/io/socket%\' THEN \'shape=box, style=filled, color=yellow\' WHEN event_name LIKE \'wait/synch/mutex%\' THEN \'style=filled, color=lightskyblue\' WHEN event_name LIKE \'wait/synch/cond%\' THEN \'style=filled, color=darkseagreen3\' WHEN event_name LIKE \'wait/synch/rwlock%\' THEN \'style=filled, color=orchid\' WHEN event_name LIKE \'wait/lock%\' THEN \'shape=box, style=filled, color=tan\' WHEN event_name LIKE \'statement/%\' THEN CONCAT(\'shape=box, style=bold\', CASE WHEN event_name LIKE \'statement/com/%\' THEN \' style=filled, color=darkseagreen\' ELSE IF((timer_wait/1000000000000) > @@long_query_time, \' style=filled, color=red\', \' style=filled, color=lightblue\') END ) WHEN event_name LIKE \'stage/%\' THEN \'style=filled, color=slategray3\' WHEN event_name LIKE \'%idle%\' THEN \'shape=box, style=filled, color=firebrick3\' ELSE \'\' END, \'];\n\' ) event, event_id FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(sql_text, \'\\n\', \'errors: \', errors, \'\\n\', \'warnings: \', warnings, \'\\n\', \'lock time: \', sys.format_time(lock_time),\'\\n\', \'rows affected: \', rows_affected, \'\\n\', \'rows sent: \', rows_sent, \'\\n\', \'rows examined: \', rows_examined, \'\\n\', \'tmp tables: \', created_tmp_tables, \'\\n\', \'tmp disk tables: \', created_tmp_disk_tables, \'\\n\' \'select scan: \', select_scan, \'\\n\', \'select full join: \', select_full_join, \'\\n\', \'select full range join: \', select_full_range_join, \'\\n\', \'select range: \', select_range, \'\\n\', \'select range check: \', select_range_check, \'\\n\', \'sort merge passes: \', sort_merge_passes, \'\\n\', \'sort rows: \', sort_rows, \'\\n\', \'sort range: \', sort_range, \'\\n\', \'sort scan: \', sort_scan, \'\\n\', \'no index used: \', IF(no_index_used, \'TRUE\', \'FALSE\'), \'\\n\', \'no good index used: \', IF(no_good_index_used, \'TRUE\', \'FALSE\'), \'\\n\' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, CONCAT(event_name, IF(event_name NOT LIKE \'wait/synch/mutex%\', IFNULL(CONCAT(\' - \', operation), \'\'), \'\'), IF(number_of_bytes IS NOT NULL, CONCAT(\' \', number_of_bytes, \' bytes\'), \'\'), IF(event_name LIKE \'wait/io/file%\', \'\\n\', \'\'), IF(object_schema IS NOT NULL, CONCAT(\'\\nObject: \', object_schema, \'.\'), \'\'), IF(object_name IS NOT NULL, IF (event_name LIKE \'wait/io/socket%\', CONCAT(\'\\n\', IF (object_name LIKE \':0%\', @@socket, object_name)), object_name), \'\' ), IF(index_name IS NOT NULL, CONCAT(\' Index: \', index_name), \'\'), \'\\n\' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) ) events ORDER BY event_id; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); IF (in_auto_setup) THEN CALL sys.ps_setup_save(0); DELETE FROM performance_schema.setup_actors; UPDATE performance_schema.threads SET INSTRUMENTED = IF(THREAD_ID = in_thread_id, \'YES\', \'NO\'); UPDATE performance_schema.setup_consumers SET ENABLED = \'YES\' WHERE NAME NOT LIKE \'%\\_history\'; UPDATE performance_schema.setup_instruments SET ENABLED = \'YES\', TIMED = \'YES\'; END IF; IF (in_start_fresh) THEN TRUNCATE performance_schema.events_statements_history_long; TRUNCATE performance_schema.events_stages_history_long; TRUNCATE performance_schema.events_waits_history_long; END IF; DROP TEMPORARY TABLE IF EXISTS tmp_events; CREATE TEMPORARY TABLE tmp_events ( event_id bigint unsigned NOT NULL, event longblob, PRIMARY KEY (event_id) ); INSERT INTO tmp_events VALUES (0, CONCAT(\'digraph events { rankdir=LR; nodesep=0.10;\n\', \'// Stack created .....: \', NOW(), \'\n\', \'// MySQL version .....: \', VERSION(), \'\n\', \'// MySQL hostname ....: \', @@hostname, \'\n\', \'// MySQL port ........: \', @@port, \'\n\', \'// MySQL socket ......: \', @@socket, \'\n\', \'// MySQL user ........: \', CURRENT_USER(), \'\n\')); SELECT CONCAT(\'Data collection starting for THREAD_ID = \', in_thread_id) AS \'Info\'; SET v_min_event_id = 0, v_start = UNIX_TIMESTAMP(), in_interval = IFNULL(in_interval, 1.00), in_max_runtime = IFNULL(in_max_runtime, 60.00); WHILE (v_runtime < in_max_runtime AND (SELECT INSTRUMENTED FROM performance_schema.threads WHERE THREAD_ID = in_thread_id) = \'YES\') DO SET v_done = FALSE; OPEN c_stack; c_stack_loop: LOOP FETCH c_stack INTO v_event, v_min_event_id; IF v_done THEN LEAVE c_stack_loop; END IF; IF (LENGTH(v_event) > 0) THEN INSERT INTO tmp_events VALUES (v_min_event_id, v_event); END IF; END LOOP; CLOSE c_stack; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = (UNIX_TIMESTAMP() - v_start); END WHILE; INSERT INTO tmp_events VALUES (v_min_event_id+1, \'}\'); SET @query = CONCAT(\'SELECT event FROM tmp_events ORDER BY event_id INTO OUTFILE \'\', in_outfile, \'\' FIELDS ESCAPED BY \'\' LINES TERMINATED BY \'\'\'); PREPARE stmt_output FROM @query; EXECUTE stmt_output; DEALLOCATE PREPARE stmt_output; SELECT CONCAT(\'Stack trace written to \', in_outfile) AS \'Info\'; SELECT CONCAT(\'dot -Tpdf -o /tmp/stack_\', in_thread_id, \'.pdf \', in_outfile) AS \'Convert to PDF\'; SELECT CONCAT(\'dot -Tpng -o /tmp/stack_\', in_thread_id, \'.png \', in_outfile) AS \'Convert to PNG\'; DROP TEMPORARY TABLE tmp_events; IF (in_auto_setup) THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = \'YES\') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END'),('sys','ps_setup_disable_background_threads','PROCEDURE','ps_setup_disable_background_threads','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','','BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE type = \'BACKGROUND\'; SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Disable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_disable_background_threads();\n +--------------------------------+\n | summary |\n +--------------------------------+\n | Disabled 18 background threads |\n +--------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE type = \'BACKGROUND\'; SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_consumer','PROCEDURE','ps_setup_disable_consumer','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN consumer VARCHAR(128) ','','BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'NO\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\'); SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Disables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to disable\n \n Example\n \n To disable all consumers:\n \n mysql> CALL sys.ps_setup_disable_consumer(\'\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 15 consumers |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just the event_stage consumers:\n \n mysql> CALL sys.ps_setup_disable_comsumers(\'stage\');\n +------------------------+\n | summary |\n +------------------------+\n | Disabled 3 consumers |\n +------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'NO\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\'); SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_instrument','PROCEDURE','ps_setup_disable_instrument','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_pattern VARCHAR(128) ','','BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'NO\', timed = \'NO\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\'); SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Disables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to disable\n \n Example\n \n To disable all mutex instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/synch/mutex\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 155 instruments |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just a the scpecific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +------------------------+\n | summary |\n +------------------------+\n | Disabled 1 instruments |\n +------------------------+\n 1 row in set (0.00 sec)\n \n To enable all instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 547 instruments |\n +--------------------------+\n 1 row in set (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'NO\', timed = \'NO\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\'); SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_disable_thread','PROCEDURE','ps_setup_disable_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_connection_id BIGINT ','','BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = in_connection_id; SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Disable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_disable_thread(3);\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.01 sec)\n \n To disable the current connection:\n \n mysql> CALL sys.ps_setup_disable_thread(CONNECTION_ID());\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.threads SET instrumented = \'NO\' WHERE processlist_id = in_connection_id; SELECT CONCAT(\'Disabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_background_threads','PROCEDURE','ps_setup_enable_background_threads','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','','BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE type = \'BACKGROUND\'; SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Enable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_enable_background_threads();\n +-------------------------------+\n | summary |\n +-------------------------------+\n | Enabled 18 background threads |\n +-------------------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE type = \'BACKGROUND\'; SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' background thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_consumer','PROCEDURE','ps_setup_enable_consumer','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN consumer VARCHAR(128) ','','BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'YES\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\'); SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Enables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to enable\n \n Example\n \n To enable all consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 10 consumers |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just \"waits\" consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'waits\');\n +-----------------------+\n | summary |\n +-----------------------+\n | Enabled 3 consumers |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.setup_consumers SET enabled = \'YES\' WHERE name LIKE CONCAT(\'%\', consumer, \'%\'); SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' consumer\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_instrument','PROCEDURE','ps_setup_enable_instrument','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_pattern VARCHAR(128) ','','BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\'); SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Enables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to enable\n \n Example\n \n To enable all mutex instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/synch/mutex\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 155 instruments |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just a the scpecific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +-----------------------+\n | summary |\n +-----------------------+\n | Enabled 1 instruments |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n \n To enable all instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 547 instruments |\n +-------------------------+\n 1 row in set (0.01 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\' WHERE name LIKE CONCAT(\'%\', in_pattern, \'%\'); SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' instrument\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_enable_thread','PROCEDURE','ps_setup_enable_thread','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_connection_id BIGINT ','','BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE processlist_id = in_connection_id; SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Enable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_enable_thread(3);\n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.01 sec)\n \n To enable the current connection:\n \n mysql> CALL sys.ps_setup_enable_thread(CONNECTION_ID());\n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN UPDATE performance_schema.threads SET instrumented = \'YES\' WHERE processlist_id = in_connection_id; SELECT CONCAT(\'Enabled \', @rows := ROW_COUNT(), \' thread\', IF(@rows != 1, \'s\', \'\')) AS summary; END'),('sys','ps_setup_reload_saved','PROCEDURE','ps_setup_reload_saved','SQL','MODIFIES_SQL_DATA','NO','INVOKER','','','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_lock_result INT; DECLARE v_lock_used_by BIGINT; DECLARE v_signal_message TEXT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SIGNAL SQLSTATE VALUE \'90001\' SET MESSAGE_TEXT = \'An error occurred, was sys.ps_setup_save() run before this procedure?\'; END; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT IS_USED_LOCK(\'sys.ps_setup_save\') INTO v_lock_used_by; IF (v_lock_used_by != CONNECTION_ID()) THEN SET v_signal_message = CONCAT(\'The sys.ps_setup_save lock is currently owned by \', v_lock_used_by); SIGNAL SQLSTATE VALUE \'90002\' SET MESSAGE_TEXT = v_signal_message; END IF; DELETE FROM performance_schema.setup_actors; INSERT INTO performance_schema.setup_actors SELECT * FROM tmp_setup_actors; BEGIN DECLARE v_name varchar(64); DECLARE v_enabled enum(\'YES\', \'NO\'); DECLARE c_consumers CURSOR FOR SELECT NAME, ENABLED FROM tmp_setup_consumers; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_consumers; c_consumers_loop: LOOP FETCH c_consumers INTO v_name, v_enabled; IF v_done THEN LEAVE c_consumers_loop; END IF; UPDATE performance_schema.setup_consumers SET ENABLED = v_enabled WHERE NAME = v_name; END LOOP; CLOSE c_consumers; END; UPDATE performance_schema.setup_instruments INNER JOIN tmp_setup_instruments USING (NAME) SET performance_schema.setup_instruments.ENABLED = tmp_setup_instruments.ENABLED, performance_schema.setup_instruments.TIMED = tmp_setup_instruments.TIMED; BEGIN DECLARE v_thread_id bigint unsigned; DECLARE v_instrumented enum(\'YES\', \'NO\'); DECLARE c_threads CURSOR FOR SELECT THREAD_ID, INSTRUMENTED FROM tmp_threads; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_threads; c_threads_loop: LOOP FETCH c_threads INTO v_thread_id, v_instrumented; IF v_done THEN LEAVE c_threads_loop; END IF; UPDATE performance_schema.threads SET INSTRUMENTED = v_instrumented WHERE THREAD_ID = v_thread_id; END LOOP; CLOSE c_threads; END; UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_USER IS NOT NULL, sys.ps_is_account_enabled(PROCESSLIST_HOST, PROCESSLIST_USER), \'YES\') WHERE THREAD_ID NOT IN (SELECT THREAD_ID FROM tmp_threads); DROP TEMPORARY TABLE tmp_setup_actors; DROP TEMPORARY TABLE tmp_setup_consumers; DROP TEMPORARY TABLE tmp_setup_instruments; DROP TEMPORARY TABLE tmp_threads; SELECT RELEASE_LOCK(\'sys.ps_setup_save\') INTO v_lock_result; SET sql_log_bin = @log_bin; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Reloads a saved Performance Schema configuration,\n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_save(), to \n save a configuration.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_save();\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784 Changed: 547 Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_lock_result INT; DECLARE v_lock_used_by BIGINT; DECLARE v_signal_message TEXT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SIGNAL SQLSTATE VALUE \'90001\' SET MESSAGE_TEXT = \'An error occurred, was sys.ps_setup_save() run before this procedure?\'; END; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT IS_USED_LOCK(\'sys.ps_setup_save\') INTO v_lock_used_by; IF (v_lock_used_by != CONNECTION_ID()) THEN SET v_signal_message = CONCAT(\'The sys.ps_setup_save lock is currently owned by \', v_lock_used_by); SIGNAL SQLSTATE VALUE \'90002\' SET MESSAGE_TEXT = v_signal_message; END IF; DELETE FROM performance_schema.setup_actors; INSERT INTO performance_schema.setup_actors SELECT * FROM tmp_setup_actors; BEGIN DECLARE v_name varchar(64); DECLARE v_enabled enum(\'YES\', \'NO\'); DECLARE c_consumers CURSOR FOR SELECT NAME, ENABLED FROM tmp_setup_consumers; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_consumers; c_consumers_loop: LOOP FETCH c_consumers INTO v_name, v_enabled; IF v_done THEN LEAVE c_consumers_loop; END IF; UPDATE performance_schema.setup_consumers SET ENABLED = v_enabled WHERE NAME = v_name; END LOOP; CLOSE c_consumers; END; UPDATE performance_schema.setup_instruments INNER JOIN tmp_setup_instruments USING (NAME) SET performance_schema.setup_instruments.ENABLED = tmp_setup_instruments.ENABLED, performance_schema.setup_instruments.TIMED = tmp_setup_instruments.TIMED; BEGIN DECLARE v_thread_id bigint unsigned; DECLARE v_instrumented enum(\'YES\', \'NO\'); DECLARE c_threads CURSOR FOR SELECT THREAD_ID, INSTRUMENTED FROM tmp_threads; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_threads; c_threads_loop: LOOP FETCH c_threads INTO v_thread_id, v_instrumented; IF v_done THEN LEAVE c_threads_loop; END IF; UPDATE performance_schema.threads SET INSTRUMENTED = v_instrumented WHERE THREAD_ID = v_thread_id; END LOOP; CLOSE c_threads; END; UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_USER IS NOT NULL, sys.ps_is_account_enabled(PROCESSLIST_HOST, PROCESSLIST_USER), \'YES\') WHERE THREAD_ID NOT IN (SELECT THREAD_ID FROM tmp_threads); DROP TEMPORARY TABLE tmp_setup_actors; DROP TEMPORARY TABLE tmp_setup_consumers; DROP TEMPORARY TABLE tmp_setup_instruments; DROP TEMPORARY TABLE tmp_threads; SELECT RELEASE_LOCK(\'sys.ps_setup_save\') INTO v_lock_result; SET sql_log_bin = @log_bin; END'),('sys','ps_setup_reset_to_default','PROCEDURE','ps_setup_reset_to_default','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_verbose BOOLEAN ','','BEGIN SET @query = \'DELETE FROM performance_schema.setup_actors WHERE NOT (HOST = \'\'%\'\' AND USER = \'\'%\'\' AND ROLE = \'\'%\'\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'INSERT IGNORE INTO performance_schema.setup_actors VALUES (\'\'%\'\', \'\'%\'\', \'\'%\'\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.setup_instruments SET ENABLED = sys.ps_is_instrument_default_enabled(NAME), TIMED = sys.ps_is_instrument_default_timed(NAME)\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_instruments\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.setup_consumers SET ENABLED = IF(NAME IN (\'\'events_statements_current\'\', \'\'events_transactions_current\'\', \'\'global_instrumentation\'\', \'\'thread_instrumentation\'\', \'\'statements_digest\'\'), \'\'YES\'\', \'\'NO\'\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_consumers\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'DELETE FROM performance_schema.setup_objects WHERE NOT (OBJECT_TYPE IN (\'\'EVENT\'\', \'\'FUNCTION\'\', \'\'PROCEDURE\'\', \'\'TABLE\'\', \'\'TRIGGER\'\') AND OBJECT_NAME = \'\'%\'\' AND (OBJECT_SCHEMA = \'\'mysql\'\' AND ENABLED = \'\'NO\'\' AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'performance_schema\'\' AND ENABLED = \'\'NO\'\' AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'information_schema\'\' AND ENABLED = \'\'NO\'\' AND TIMED = \'\'NO\'\' ) OR (OBJECT_SCHEMA = \'\'%\'\' AND ENABLED = \'\'YES\'\' AND TIMED = \'\'YES\'\'))\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'INSERT IGNORE INTO performance_schema.setup_objects VALUES (\'\'EVENT\'\' , \'\'mysql\'\' , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\' , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\' , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'EVENT\'\' , \'\'%\'\' , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'FUNCTION\'\' , \'\'mysql\'\' , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'FUNCTION\'\' , \'\'%\'\' , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'PROCEDURE\'\', \'\'mysql\'\' , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'PROCEDURE\'\', \'\'%\'\' , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'TABLE\'\' , \'\'mysql\'\' , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\' , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\' , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TABLE\'\' , \'\'%\'\' , \'\'%\'\', \'\'YES\'\', \'\'YES\'\'), (\'\'TRIGGER\'\' , \'\'mysql\'\' , \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\' , \'\'performance_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\' , \'\'information_schema\'\', \'\'%\'\', \'\'NO\'\' , \'\'NO\'\' ), (\'\'TRIGGER\'\' , \'\'%\'\' , \'\'%\'\', \'\'YES\'\', \'\'YES\'\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.threads SET INSTRUMENTED = \'\'YES\'\'\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: threads\\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Resets the Performance Schema setup to the default settings.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each setup stage (including the SQL) whilst running.\n \n Example\n \n mysql> CALL sys.ps_setup_reset_to_default(true)\\G\n *************************** 1. row ***************************\n status: Resetting: setup_actors\n DELETE\n FROM performance_schema.setup_actors\n WHERE NOT (HOST = \'%\' AND USER = \'%\' AND ROLE = \'%\')\n 1 row in set (0.00 sec)\n \n *************************** 1. row ***************************\n status: Resetting: setup_actors\n INSERT IGNORE INTO performance_schema.setup_actors\n VALUES (\'%\', \'%\', \'%\')\n 1 row in set (0.00 sec)\n ...\n \n mysql> CALL sys.ps_setup_reset_to_default(false)G\n Query OK, 0 rows affected (0.00 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SET @query = \'DELETE FROM performance_schema.setup_actors WHERE NOT (HOST = \'%\' AND USER = \'%\' AND ROLE = \'%\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'INSERT IGNORE INTO performance_schema.setup_actors VALUES (\'%\', \'%\', \'%\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_actors\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.setup_instruments SET ENABLED = sys.ps_is_instrument_default_enabled(NAME), TIMED = sys.ps_is_instrument_default_timed(NAME)\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_instruments\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.setup_consumers SET ENABLED = IF(NAME IN (\'events_statements_current\', \'events_transactions_current\', \'global_instrumentation\', \'thread_instrumentation\', \'statements_digest\'), \'YES\', \'NO\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_consumers\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'DELETE FROM performance_schema.setup_objects WHERE NOT (OBJECT_TYPE IN (\'EVENT\', \'FUNCTION\', \'PROCEDURE\', \'TABLE\', \'TRIGGER\') AND OBJECT_NAME = \'%\' AND (OBJECT_SCHEMA = \'mysql\' AND ENABLED = \'NO\' AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'performance_schema\' AND ENABLED = \'NO\' AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'information_schema\' AND ENABLED = \'NO\' AND TIMED = \'NO\' ) OR (OBJECT_SCHEMA = \'%\' AND ENABLED = \'YES\' AND TIMED = \'YES\'))\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'INSERT IGNORE INTO performance_schema.setup_objects VALUES (\'EVENT\' , \'mysql\' , \'%\', \'NO\' , \'NO\' ), (\'EVENT\' , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'EVENT\' , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'EVENT\' , \'%\' , \'%\', \'YES\', \'YES\'), (\'FUNCTION\' , \'mysql\' , \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'FUNCTION\' , \'%\' , \'%\', \'YES\', \'YES\'), (\'PROCEDURE\', \'mysql\' , \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'PROCEDURE\', \'%\' , \'%\', \'YES\', \'YES\'), (\'TABLE\' , \'mysql\' , \'%\', \'NO\' , \'NO\' ), (\'TABLE\' , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'TABLE\' , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'TABLE\' , \'%\' , \'%\', \'YES\', \'YES\'), (\'TRIGGER\' , \'mysql\' , \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\' , \'performance_schema\', \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\' , \'information_schema\', \'%\', \'NO\' , \'NO\' ), (\'TRIGGER\' , \'%\' , \'%\', \'YES\', \'YES\')\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: setup_objects\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = \'UPDATE performance_schema.threads SET INSTRUMENTED = \'YES\'\'; IF (in_verbose) THEN SELECT CONCAT(\'Resetting: threads\n\', REPLACE(@query, \' \', \'\')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; END'),('sys','ps_setup_save','PROCEDURE','ps_setup_save','SQL','MODIFIES_SQL_DATA','NO','INVOKER',' IN in_timeout INT ','','BEGIN DECLARE v_lock_result INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT GET_LOCK(\'sys.ps_setup_save\', in_timeout) INTO v_lock_result; IF v_lock_result THEN DROP TEMPORARY TABLE IF EXISTS tmp_setup_actors; DROP TEMPORARY TABLE IF EXISTS tmp_setup_consumers; DROP TEMPORARY TABLE IF EXISTS tmp_setup_instruments; DROP TEMPORARY TABLE IF EXISTS tmp_threads; CREATE TEMPORARY TABLE tmp_setup_actors LIKE performance_schema.setup_actors; CREATE TEMPORARY TABLE tmp_setup_consumers LIKE performance_schema.setup_consumers; CREATE TEMPORARY TABLE tmp_setup_instruments LIKE performance_schema.setup_instruments; CREATE TEMPORARY TABLE tmp_threads (THREAD_ID bigint unsigned NOT NULL PRIMARY KEY, INSTRUMENTED enum(\'YES\',\'NO\') NOT NULL); INSERT INTO tmp_setup_actors SELECT * FROM performance_schema.setup_actors; INSERT INTO tmp_setup_consumers SELECT * FROM performance_schema.setup_consumers; INSERT INTO tmp_setup_instruments SELECT * FROM performance_schema.setup_instruments; INSERT INTO tmp_threads SELECT THREAD_ID, INSTRUMENTED FROM performance_schema.threads; ELSE SIGNAL SQLSTATE VALUE \'90000\' SET MESSAGE_TEXT = \'Could not lock the sys.ps_setup_save user lock, another thread has a saved configuration\'; END IF; SET sql_log_bin = @log_bin; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Saves the current configuration of Performance Schema, \n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_reload_saved(), to \n restore the saved config.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_save();\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments \n -> SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784 Changed: 547 Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_lock_result INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT GET_LOCK(\'sys.ps_setup_save\', in_timeout) INTO v_lock_result; IF v_lock_result THEN DROP TEMPORARY TABLE IF EXISTS tmp_setup_actors; DROP TEMPORARY TABLE IF EXISTS tmp_setup_consumers; DROP TEMPORARY TABLE IF EXISTS tmp_setup_instruments; DROP TEMPORARY TABLE IF EXISTS tmp_threads; CREATE TEMPORARY TABLE tmp_setup_actors LIKE performance_schema.setup_actors; CREATE TEMPORARY TABLE tmp_setup_consumers LIKE performance_schema.setup_consumers; CREATE TEMPORARY TABLE tmp_setup_instruments LIKE performance_schema.setup_instruments; CREATE TEMPORARY TABLE tmp_threads (THREAD_ID bigint unsigned NOT NULL PRIMARY KEY, INSTRUMENTED enum(\'YES\',\'NO\') NOT NULL); INSERT INTO tmp_setup_actors SELECT * FROM performance_schema.setup_actors; INSERT INTO tmp_setup_consumers SELECT * FROM performance_schema.setup_consumers; INSERT INTO tmp_setup_instruments SELECT * FROM performance_schema.setup_instruments; INSERT INTO tmp_threads SELECT THREAD_ID, INSTRUMENTED FROM performance_schema.threads; ELSE SIGNAL SQLSTATE VALUE \'90000\' SET MESSAGE_TEXT = \'Could not lock the sys.ps_setup_save user lock, another thread has a saved configuration\'; END IF; SET sql_log_bin = @log_bin; END'),('sys','ps_setup_show_disabled','PROCEDURE','ps_setup_show_disabled','SQL','READS_SQL_DATA','NO','INVOKER',' IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN ','','BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT(\'\\\'\', host, \'\\\'@\\\'\', user, \'\\\'\') AS enabled_users FROM performance_schema.setup_actors; SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'NO\'; SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\'; IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\', CONCAT(processlist_user, \'@\', processlist_host), REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'NO\'; END IF; IF (in_show_instruments) THEN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\'; END IF; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently disable Performance Schema configuration.\n \n Parameters\n \n in_in_show_instruments (BOOLEAN):\n Whether to print disabled instruments (can print many items)\n \n in_in_show_threads (BOOLEAN):\n Whether to print disabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n | 1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +--------------------+\n | enabled_users |\n +--------------------+\n | \'mark\'@\'localhost\' |\n +--------------------+\n 1 row in set (0.00 sec)\n \n +-------------+----------------------+---------+-------+\n | object_type | objects | enabled | timed |\n +-------------+----------------------+---------+-------+\n | EVENT | mysql.% | NO | NO |\n | EVENT | performance_schema.% | NO | NO |\n | EVENT | information_schema.% | NO | NO |\n | FUNCTION | mysql.% | NO | NO |\n | FUNCTION | performance_schema.% | NO | NO |\n | FUNCTION | information_schema.% | NO | NO |\n | PROCEDURE | mysql.% | NO | NO |\n | PROCEDURE | performance_schema.% | NO | NO |\n | PROCEDURE | information_schema.% | NO | NO |\n | TABLE | mysql.% | NO | NO |\n | TABLE | performance_schema.% | NO | NO |\n | TABLE | information_schema.% | NO | NO |\n | TRIGGER | mysql.% | NO | NO |\n | TRIGGER | performance_schema.% | NO | NO |\n | TRIGGER | information_schema.% | NO | NO |\n +-------------+----------------------+---------+-------+\n 15 rows in set (0.00 sec)\n \n +----------------------------------+\n | disabled_consumers |\n +----------------------------------+\n | events_stages_current |\n | events_stages_history |\n | events_stages_history_long |\n | events_statements_history |\n | events_statements_history_long |\n | events_transactions_history |\n | events_transactions_history_long |\n | events_waits_current |\n | events_waits_history |\n | events_waits_history_long |\n +----------------------------------+\n 10 rows in set (0.00 sec)\n \n Empty set (0.00 sec)\n \n +---------------------------------------------------------------------------------------+-------+\n | disabled_instruments | timed |\n +---------------------------------------------------------------------------------------+-------+\n | wait/synch/mutex/sql/TC_LOG_MMAP::LOCK_tc | NO |\n | wait/synch/mutex/sql/LOCK_des_key_file | NO |\n | wait/synch/mutex/sql/MYSQL_BIN_LOG::LOCK_commit | NO |\n ...\n | memory/sql/servers_cache | NO |\n | memory/sql/udf_mem | NO |\n | wait/lock/metadata/sql/mdl | NO |\n +---------------------------------------------------------------------------------------+-------+\n 547 rows in set (0.00 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT(\'\'\', host, \'\'@\'\', user, \'\'\') AS enabled_users FROM performance_schema.setup_actors; SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = \'NO\'; SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\'; IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\', CONCAT(processlist_user, \'@\', processlist_host), REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'NO\'; END IF; IF (in_show_instruments) THEN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\'; END IF; END'),('sys','ps_setup_show_disabled_consumers','PROCEDURE','ps_setup_show_disabled_consumers','SQL','READS_SQL_DATA','YES','INVOKER','','','BEGIN SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\'; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently disabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_consumers();\n \n +---------------------------+\n | disabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'NO\'; END'),('sys','ps_setup_show_disabled_instruments','PROCEDURE','ps_setup_show_disabled_instruments','SQL','READS_SQL_DATA','YES','INVOKER','','','BEGIN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\'; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently disabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_instruments();\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'NO\'; END'),('sys','ps_setup_show_enabled','PROCEDURE','ps_setup_show_enabled','SQL','READS_SQL_DATA','YES','INVOKER',' IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN ','','BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT(\'\\\'\', host, \'\\\'@\\\'\', user, \'\\\'\') AS enabled_users FROM performance_schema.setup_actors; SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects; SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\'; IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\', CONCAT(processlist_user, \'@\', processlist_host), REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'YES\'; END IF; IF (in_show_instruments) THEN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\'; END IF; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently enabled Performance Schema configuration.\n \n Parameters\n \n in_show_instruments (BOOLEAN):\n Whether to print enabled instruments (can print many items)\n \n in_show_threads (BOOLEAN):\n Whether to print enabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n | 1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +---------------+\n | enabled_users |\n +---------------+\n | \'%\'@\'%\' |\n +---------------+\n 1 row in set (0.01 sec)\n \n +----------------------+---------+-------+\n | objects | enabled | timed |\n +----------------------+---------+-------+\n | mysql.% | NO | NO |\n | performance_schema.% | NO | NO |\n | information_schema.% | NO | NO |\n | %.% | YES | YES |\n +----------------------+---------+-------+\n 4 rows in set (0.01 sec)\n \n +---------------------------+\n | enabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n \n +--------------------------+-------------+\n | enabled_threads | thread_type |\n +--------------------------+-------------+\n | innodb/srv_master_thread | BACKGROUND |\n | root@localhost | FOREGROUND |\n | root@localhost | FOREGROUND |\n | root@localhost | FOREGROUND |\n | root@localhost | FOREGROUND |\n +--------------------------+-------------+\n 5 rows in set (0.03 sec)\n \n +-------------------------------------+-------+\n | enabled_instruments | timed |\n +-------------------------------------+-------+\n | wait/io/file/sql/map | YES |\n | wait/io/file/sql/binlog | YES |\n ...\n | statement/com/Error | YES |\n | statement/com/ | YES |\n | idle | YES |\n +-------------------------------------+-------+\n 210 rows in set (0.08 sec)\n \n Query OK, 0 rows affected (0.89 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT(\'\'\', host, \'\'@\'\', user, \'\'\') AS enabled_users FROM performance_schema.setup_actors; SELECT object_type, CONCAT(object_schema, \'.\', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects; SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\'; IF (in_show_threads) THEN SELECT IF(name = \'thread/sql/one_connection\', CONCAT(processlist_user, \'@\', processlist_host), REPLACE(name, \'thread/\', \'\')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = \'YES\'; END IF; IF (in_show_instruments) THEN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\'; END IF; END'),('sys','ps_setup_show_enabled_consumers','PROCEDURE','ps_setup_show_enabled_consumers','SQL','READS_SQL_DATA','YES','INVOKER','','','BEGIN SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\'; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently enabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_consumers();\n \n +---------------------------+\n | enabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = \'YES\'; END'),('sys','ps_setup_show_enabled_instruments','PROCEDURE','ps_setup_show_enabled_instruments','SQL','READS_SQL_DATA','YES','INVOKER','','','BEGIN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\'; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Shows all currently enabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_instruments();\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = \'YES\'; END'),('sys','ps_truncate_all_tables','PROCEDURE','ps_truncate_all_tables','SQL','MODIFIES_SQL_DATA','YES','INVOKER',' IN in_verbose BOOLEAN ','','BEGIN DECLARE v_done INT DEFAULT FALSE; DECLARE v_total_tables INT DEFAULT 0; DECLARE v_ps_table VARCHAR(64); DECLARE ps_tables CURSOR FOR SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = \'performance_schema\' AND (table_name LIKE \'%summary%\' OR table_name LIKE \'%history%\'); DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; OPEN ps_tables; ps_tables_loop: LOOP FETCH ps_tables INTO v_ps_table; IF v_done THEN LEAVE ps_tables_loop; END IF; SET @truncate_stmt := CONCAT(\'TRUNCATE TABLE performance_schema.\', v_ps_table); IF in_verbose THEN SELECT CONCAT(\'Running: \', @truncate_stmt) AS status; END IF; PREPARE truncate_stmt FROM @truncate_stmt; EXECUTE truncate_stmt; DEALLOCATE PREPARE truncate_stmt; SET v_total_tables = v_total_tables + 1; END LOOP; CLOSE ps_tables; SELECT CONCAT(\'Truncated \', v_total_tables, \' tables\') AS summary; END','root@localhost','2020-02-04 22:37:18','2020-02-04 22:37:18','','\n Description\n \n Truncates all summary tables within Performance Schema, \n resetting all aggregated instrumentation as a snapshot.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each TRUNCATE statement before running\n \n Example\n \n mysql> CALL sys.ps_truncate_all_tables(false);\n +---------------------+\n | summary |\n +---------------------+\n | Truncated 44 tables |\n +---------------------+\n 1 row in set (0.10 sec)\n \n Query OK, 0 rows affected (0.10 sec)\n ','utf8','utf8_general_ci','utf8_general_ci','BEGIN DECLARE v_done INT DEFAULT FALSE; DECLARE v_total_tables INT DEFAULT 0; DECLARE v_ps_table VARCHAR(64); DECLARE ps_tables CURSOR FOR SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = \'performance_schema\' AND (table_name LIKE \'%summary%\' OR table_name LIKE \'%history%\'); DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; OPEN ps_tables; ps_tables_loop: LOOP FETCH ps_tables INTO v_ps_table; IF v_done THEN LEAVE ps_tables_loop; END IF; SET @truncate_stmt := CONCAT(\'TRUNCATE TABLE performance_schema.\', v_ps_table); IF in_verbose THEN SELECT CONCAT(\'Running: \', @truncate_stmt) AS status; END IF; PREPARE truncate_stmt FROM @truncate_stmt; EXECUTE truncate_stmt; DEALLOCATE PREPARE truncate_stmt; SET v_total_tables = v_total_tables + 1; END LOOP; CLOSE ps_tables; SELECT CONCAT(\'Truncated \', v_total_tables, \' tables\') AS summary; END'); /*!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(32) 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(32) COLLATE utf8_bin NOT NULL DEFAULT '', `Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', `Proxied_user` char(32) 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,'','2020-02-04 22:37:16'); /*!40000 ALTER TABLE `proxies_priv` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `server_cost` -- DROP TABLE IF EXISTS `server_cost`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `server_cost` ( `cost_name` varchar(64) NOT NULL, `cost_value` float DEFAULT NULL, `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `comment` varchar(1024) DEFAULT NULL, PRIMARY KEY (`cost_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `server_cost` -- LOCK TABLES `server_cost` WRITE; /*!40000 ALTER TABLE `server_cost` DISABLE KEYS */; INSERT INTO `server_cost` VALUES ('disk_temptable_create_cost',NULL,'2020-02-04 22:37:16',NULL),('disk_temptable_row_cost',NULL,'2020-02-04 22:37:16',NULL),('key_compare_cost',NULL,'2020-02-04 22:37:16',NULL),('memory_temptable_create_cost',NULL,'2020-02-04 22:37:16',NULL),('memory_temptable_row_cost',NULL,'2020-02-04 22:37:16',NULL),('row_evaluate_cost',NULL,'2020-02-04 22:37:16',NULL); /*!40000 ALTER TABLE `server_cost` 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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 `slave_master_info` -- DROP TABLE IF EXISTS `slave_master_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `slave_master_info` ( `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file.', `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.', `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last read event.', `Host` char(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'The host name of the master.', `User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.', `User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.', `Port` int(10) unsigned NOT NULL COMMENT 'The network port used to connect to the master.', `Connect_retry` int(10) unsigned NOT NULL COMMENT 'The period (in seconds) that the slave will wait before trying to reconnect to the master.', `Enabled_ssl` tinyint(1) NOT NULL COMMENT 'Indicates whether the server supports SSL connections.', `Ssl_ca` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Authority (CA) certificate.', `Ssl_capath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path to the Certificate Authority (CA) certificates.', `Ssl_cert` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL certificate file.', `Ssl_cipher` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the cipher in use for the SSL connection.', `Ssl_key` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The name of the SSL key file.', `Ssl_verify_server_cert` tinyint(1) NOT NULL COMMENT 'Whether to verify the server certificate.', `Heartbeat` float NOT NULL, `Bind` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Displays which interface is employed when connecting to the MySQL server', `Ignored_server_ids` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The number of server IDs to be ignored, followed by the actual server IDs', `Uuid` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The master server uuid.', `Retry_count` bigint(20) unsigned NOT NULL COMMENT 'Number of reconnect attempts, to the master, before giving up.', `Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)', `Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files', `Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.', `Channel_name` char(64) NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication', PRIMARY KEY (`Channel_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Master Information'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `slave_master_info` -- LOCK TABLES `slave_master_info` WRITE; /*!40000 ALTER TABLE `slave_master_info` DISABLE KEYS */; /*!40000 ALTER TABLE `slave_master_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `slave_relay_log_info` -- DROP TABLE IF EXISTS `slave_relay_log_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `slave_relay_log_info` ( `Number_of_lines` int(10) unsigned NOT NULL COMMENT 'Number of lines in the file or rows in the table. Used to version table definitions.', `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the current relay log file.', `Relay_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The relay log position of the last executed event.', `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log file from which the events in the relay log file were read.', `Master_log_pos` bigint(20) unsigned NOT NULL COMMENT 'The master log position of the last executed event.', `Sql_delay` int(11) NOT NULL COMMENT 'The number of seconds that the slave must lag behind the master.', `Number_of_workers` int(10) unsigned NOT NULL, `Id` int(10) unsigned NOT NULL COMMENT 'Internal Id that uniquely identifies this record.', `Channel_name` char(64) NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication', PRIMARY KEY (`Channel_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Relay Log Information'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `slave_relay_log_info` -- LOCK TABLES `slave_relay_log_info` WRITE; /*!40000 ALTER TABLE `slave_relay_log_info` DISABLE KEYS */; /*!40000 ALTER TABLE `slave_relay_log_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `slave_worker_info` -- DROP TABLE IF EXISTS `slave_worker_info`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `slave_worker_info` ( `Id` int(10) unsigned NOT NULL, `Relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Relay_log_pos` bigint(20) unsigned NOT NULL, `Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Master_log_pos` bigint(20) unsigned NOT NULL, `Checkpoint_relay_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Checkpoint_relay_log_pos` bigint(20) unsigned NOT NULL, `Checkpoint_master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Checkpoint_master_log_pos` bigint(20) unsigned NOT NULL, `Checkpoint_seqno` int(10) unsigned NOT NULL, `Checkpoint_group_size` int(10) unsigned NOT NULL, `Checkpoint_group_bitmap` blob NOT NULL, `Channel_name` char(64) NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication', PRIMARY KEY (`Channel_name`,`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='Worker Information'; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `slave_worker_info` -- LOCK TABLES `slave_worker_info` WRITE; /*!40000 ALTER TABLE `slave_worker_info` DISABLE KEYS */; /*!40000 ALTER TABLE `slave_worker_info` 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(32) 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 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(32) 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', `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 NOT NULL DEFAULT 'mysql_native_password', `authentication_string` text COLLATE utf8_bin, `password_expired` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', `password_last_changed` timestamp NULL DEFAULT NULL, `password_lifetime` smallint(5) unsigned DEFAULT NULL, `account_locked` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', 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','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,'mysql_native_password','*<PASSWORD>','N','2020-02-04 22:37:16',NULL,'N'),('localhost','hbnb_dev','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0,'mysql_native_password','*<PASSWORD>','N','2020-02-17 19:42:12',NULL,'N'); /*!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(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `user_host` mediumtext NOT NULL, `thread_id` bigint(21) unsigned NOT NULL, `server_id` int(10) unsigned NOT NULL, `command_type` varchar(64) NOT NULL, `argument` mediumblob 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(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), `user_host` mediumtext NOT NULL, `query_time` time(6) NOT NULL, `lock_time` time(6) 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` mediumblob NOT NULL, `thread_id` bigint(21) unsigned 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 2020-02-17 19:54:39
<reponame>Lord-Y/cypress-parallel ALTER TABLE projects DROP COLUMN IF EXISTS timeout;
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Mar 2021 pada 04.22 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.2.34 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: `pretest` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `biodata_artis` -- CREATE TABLE `biodata_artis` ( `uuid` varchar(255) NOT NULL, `nama` varchar(255) DEFAULT NULL, `tempat_lahir` varchar(255) DEFAULT NULL, `tanggal_lahir` varchar(255) DEFAULT NULL, `foto` varchar(255) DEFAULT NULL, `alamat_tinggal` varchar(255) DEFAULT NULL, `id_kecamatan` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data untuk tabel `biodata_artis` -- INSERT INTO `biodata_artis` (`uuid`, `nama`, `tempat_lahir`, `tanggal_lahir`, `foto`, `alamat_tinggal`, `id_kecamatan`) VALUES ('1', 'Bayu Sugara', 'Pekanbaru', '1996-05-26', 'user.png', 'Pekanbaru', '1'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `biodata_artis` -- ALTER TABLE `biodata_artis` ADD PRIMARY KEY (`uuid`); 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 */;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 09 Jun 2020 pada 06.45 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 5.6.31 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: `sylvia_pincersearch` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `admin` -- CREATE TABLE `admin` ( `idAdmin` int(11) NOT NULL, `nama` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `admin` -- INSERT INTO `admin` (`idAdmin`, `nama`, `username`, `password`) VALUES (1, 'Mariyanto', '<PASSWORD>', '<PASSWORD>'), (2, 'Triyani', 'triyani', '<PASSWORD>'); -- -------------------------------------------------------- -- -- Struktur dari tabel `barang` -- CREATE TABLE `barang` ( `idBarang` int(11) NOT NULL, `kodeBarang` varchar(255) NOT NULL, `namaBarang` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `barang` -- INSERT INTO `barang` (`idBarang`, `kodeBarang`, `namaBarang`) VALUES (1, '7012700871T ', 'Wrdh Light DCream Step 2 30gr'), (2, '0372330151T ', 'Indomie Goreng Sp Bnd 5'), (3, '0372440221T ', 'Bumbu Rck Sayur Sop 20g'), (4, '1152810291T ', 'Mama Lime G.Tea Rfl 400ml'), (5, '2313101041T ', 'Nice Fcl Soft Pack 200s/2ply 1 n 1'), (6, '2512320041T ', 'Fortune Stdg Pouch 1 L'), (7, '3282410061T ', 'Pronas Saus L.H Rfl 175g'), (8, '3782100031T ', 'Sariwangi TB Asli 25s'), (9, '3782450351T ', 'Royco FDS Ayam M.P (P6)10/9g'), (10, '5133200311T ', 'HIT AE 600mln25persen Orange'), (11, '5364030051T ', 'Prima Baso Sapi Bsr 25 bj'), (12, '5404030381T ', 'Sonice Chicken Stick 1000g'), (13, '5924070011T ', '<NAME> '), (14, '6902300011T ', 'Sania Beras Premium 5kg'), (15, '7862400091T ', 'ABC Kecap Manis Pet 135ml'), (16, '8562150071T ', 'Sekoteng Yalele 150g'), (17, '9143200441T ', 'Swan Floral Fresh 200g SW30106'), (18, '1152040061T ', 'C.Wings Potabee Rmpt Laut P.68g'), (19, '2412400021T ', 'Kecap Kental O.J Sate Mrh 135ml'), (20, '2602120591T ', 'Tango Drink Velluto Choco 250ml'), (21, '3562130031T ', 'Marjan Squash Orange 450ml'), (22, '5281503671T ', 'Sapu Senur Boston'), (23, '5792030241T ', 'Relaxa Prem Freezy Blue Scht 25g'), (24, '5792030331T ', 'Relaxa Prem Freezy Melon 25g'), (25, '6212020401T ', '<NAME>'), (26, '6243300451T ', 'Neurobion Forte 10s'), (27, '7372150101T ', 'Herbadrink Chrysanthemum (5 x18g)'), (28, '7833120711T ', 'Kit Paste Original 225g'), (29, '9251540952T ', 'Multicooker Miyako PSG 607'), (30, '9821530041T ', '<NAME> 20cm'), (31, '9821530131T ', 'Panci Ramey Maspion 18cm'), (32, '0042100011T ', 'Zenlatte Matcha (B5) 20g'), (33, '0042100031T ', 'Zenlatte Milk Tea Orgnl (B5) 24g'), (34, '0042140011T ', 'Fiber Creme 100g'), (35, '0452821161T ', 'Downy P.C Romance Rfl 720ml'), (36, '1152840301T ', 'Soklin Pel Biru 800ml'), (37, '1522120031T ', 'Drink Beng Beng Choco (P4) 30g'), (38, '2313010681T ', 'Softex 2in1 H.K Cmfrt Slim 20s'), (39, '2313100741T ', 'Paseo Smrt Fcl Soft Pck M250s'), (40, '3282010141T ', 'Pomona Selai Straw Jam 140g'), (41, '3782700641T ', 'VICL HSunblck SPF 100 ml'), (42, '3782903811T ', 'Dove Shp Scalp Strenght Rtl 160ml'), (43, '3782912541T ', 'Korea Glow BW Fresh Glow Rfl 450ml'), (44, '5022320041T ', 'Ikan Dorang Spcl Btl 1ltr'), (45, '5024030091T ', 'Fiesta Mitra Nugget Cheese 123 250 gr'), (46, '5792110181T ', 'Kapal Api SP MM 380 gr'), (47, '7422310041T ', 'Gulaku Premium 1/2 kg'), (48, '7831500041T ', 'Unik Spon Dapur 3Hijau Heavy Duty'), (49, '7833110381T ', 'Glade OFA Lemon Squash Rfl 70g'), (50, '7833110401T ', 'Glade OFA Orange Peach Rfl 70g'), (51, '9142930101T ', 'Smoca SG White Clean S 1s W91166'), (52, '9143010011T ', 'Nina Anion 24 cm 10p W-21229'), (53, '0102350041T ', 'Surya International 12'), (54, '0452000581T ', '<NAME>co Jumbo 22g'), (55, '0452903331T ', 'H n S Shp Lemon Frsh (B12)10ml'), (56, '1152800271T ', 'Ekonomi E500K- 280/260 gr'), (57, '1152810621T ', 'Soklin Liq Violet (B6) 24ml'), (58, '1152920161T ', 'PGCiptadent Cool 75gr'), (59, '6242250031T ', 'Chil Go Cokelat 140ml'), (60, '6242250051T ', 'Chil Go Pisang 140ml'), (61, '8262000111T ', 'Richeese Wfr Keju 145g'), (62, '0042430041T ', 'Garam Cap Kapal 500g'), (63, '0070940041T ', 'HOKI SANDAL 105'), (64, '0193020911T ', 'Dodo Sport Hndl Cup Big DDC007'), (65, '0372040311T ', 'Cheetos Jagung Bakar 18/15gr Trc18'), (66, '0372040401T ', 'Chiki Ball Keju 10g'), (67, '0372040421T ', 'Chiki Ball Coklat 12 Gr'), (68, '0372040431T ', 'Jetz Swt Cho Fiesta 12g'), (69, '0372040741T ', 'Qtela Barbeque 14g'), (70, '0372260031T ', 'UHT Indomilk Srowberry 125/115ml'), (71, '0372260041T ', 'UHT Kid Vanila 125/115ml'), (72, '0372330681T ', 'POP MIE AB MINI'), (73, '0372330801T ', 'Indomie Ayam Spcl Bnd 5'), (74, '0372410031T ', 'Saus Tomat IF Pet 275 ml'), (75, '0452010941T ', 'MJ HP 365 Day 25g'), (76, '0452821091T ', 'Downy P.C Passion Rfl 720 ml'), (77, '0452821131T ', 'Downy P.C SweetHeart Rfl 720ml'), (78, '0452821221T ', 'Downy Floral Pink Rfl 800ml'), (79, '1152330011T ', 'Noodle Sdp Gor B5'), (80, '1152800251T ', 'Ekonomi 450TR 400 gr'), (81, '1152800581T ', 'Soklin Bio Matic Kotak/FL 2kg'), (82, '1152900731T ', 'Zinc Shp Refrsh Cool 340ml'), (83, '1152920081T ', 'PGKodomo Srawbery 45gr'), (84, '1152930021T ', 'SG Kodomo Zigzag'), (85, '1154060121T ', 'Waku Waku Wtr Melon 60ml'), (86, '1202400031T ', 'KSawi Btl PET 275 ml'), (87, '1522010201T ', 'Energen Jagung Rcg (B5) 25g'), (88, '1522110061T ', 'Torabika Duo Rcg (B5) 25g'), (89, '1522110131T ', 'Torabika Tora Susu FC (P10)28g'), (90, '1522110191T ', 'Toracafe Volc Chocomelt (B5) 28g'), (91, '2312120771T ', 'NS Buah n Sayur (B10) 11g'), (92, '2312120781T ', 'NS Sirsak (B10) 12g'), (93, '2312260151T ', 'Boneeto UHT Cokelat 125ml'), (94, '2312260161T ', 'Boneeto UHT Straw 115ml'), (95, '2412320021T ', 'Filma 2 Liter Refil'), (96, '2412330021T ', '<NAME>ara Pipih 140g'), (97, '2552000101T ', 'Roma Better Van(B5)22 Gr'), (98, '2552810121T ', 'Vanish Cair Pouch 800ml'), (99, '2552910951T ', 'Dettol Soap Re-Energize (P5)110g'), (100, '2552911111T ', 'Dettol Soap Lasting F.(B5)110/105g'), (101, '3502040031T ', 'Potato Tube 12 gr'), (102, '3562000571T ', 'MD SOFT PIE 85G'), (103, '3782450401T ', 'Royco FDS Rasa Sapi 230g'), (104, '3782920531T ', 'Pepsodent White PG 225g'), (105, '5024030021T ', 'Champ DS/ Beef Sausage 375 gr'), (106, '5024030261T ', 'Fiesta DS/Mitra Nugget Dino 500 gr'), (107, '5062300061T ', 'Beras Lahap Lele 5 Kg'), (108, '5281502851T ', 'Spon Setrika 50 x 100 TB'), (109, '5281526181T ', 'Sikat Cuci Dragon SK345'), (110, '5332040041T ', 'DK Tic Tac Rs AB 90g'), (111, '5332250041T ', 'Calpico Mini Grape Bberry 63ml'), (112, '5332250061T ', 'Calpico Mini Straw Bberry 63ml'), (113, '5333300021T ', 'Larutan Pnygr Badak Anggur 320ml'), (114, '5333300031T ', 'Larutan Pnygr Badak Jambu 320ml'), (115, '5333300041T ', 'Larutan Pnygr Badak Jeruk 320ml'), (116, '5333300051T ', 'Larutan Pnygr Badak Melon 320ml'), (117, '5333300061T ', 'Larutan Pnygr Badak Apel 320ml'), (118, '5333300071T ', 'Larutan Pnygr Badak Straw 320ml'), (119, '5333300091T ', 'Larutan Pnygr Badak Leci 320ml'), (120, '5394060791T ', 'Cornetto Mini Tiramisu Dark Choco'), (121, '5532120141T ', 'Ice Bon-Bon Pack 5'), (122, '6222000041T ', 'Oreo Bisc Ice Cream BBerry 137g'), (123, '6222000251T ', 'Oreo Sand Double /Peanut Cho137g'), (124, '6242030181T ', 'Yupi Straw Kiss 120g'), (125, '6242040071T ', 'PIATTOS BBQ 11G'), (126, '6242040311T ', 'Taro Net Potato BBQ 9g'), (127, '6242040381T ', 'Mie Kremez M.S Ayam Pggng 30g'), (128, '6242040431T ', 'Taro Net Italian Pizza 9g'), (129, '6242040441T ', 'Taro Net Cowboy Steak 9g'), (130, '6242040531T ', 'Piattos Iga Penyet 11g'), (131, '6292260031T ', 'Ultra Mimi Coklat 125 ml'), (132, '6292260231T ', 'Ultra Mimi UHT RsStroberi 125 ml'), (133, '6292260241T ', 'UHT ultra mimi vanila 125 ml'), (134, '6292260291T ', 'Ultra Mimi Full Cream 125ml'), (135, '6622040031T ', 'Happytos Kripik Tortilla Medium 25 gr'), (136, '7012700111T ', 'Wrdh Lightng FclScrub 60 gr'), (137, '7314111331T ', 'Celana BIG SIZE R326 BS.4XL (P3)'), (138, '7483020011T ', 'Leo Tmpt Bedak Deluxe'), (139, '7833110471T ', 'Glade Sensation Serenity Rfl 8g'), (140, '7833110751T ', 'BFresh AF Pop Scent Lovely 10g'), (141, '8192010051T ', 'Kinder Joy T24 (Girls) 20g'), (142, '8262000291T ', '<NAME> Wfr Krim Keju 50g'), (143, '8262000311T ', '<NAME> Wfr Cokelat 50g'), (144, '8262000321T ', '<NAME> Wfr White 50g'), (145, '8262000391T ', 'Nabati Sandwich Wfr Hazelnut 40g'), (146, '8402040011T ', 'Sobamie Prem Chicken BBQ24g'), (147, '8402040041T ', 'French Freis Premium 68g'), (148, '8402040051T ', 'French Freis Premium 155g'), (149, '8402040071T ', 'Mie Gemez Enak 22g'), (150, '8942010051T ', 'Naraya Oat Original (40 x 10g)400g'), (151, '9143200031T ', 'Swallow T/Col Ball 5 S-109'), (152, '0372330661T ', 'Pop Mie Bakso New'), (153, '0452820581T ', 'Downy Mystique (B6) 20ml'), (154, '0452820601T ', 'Downy Prfm Passion (B6) 20ml'), (155, '0452821031T ', 'Downy P.C Daring (B6) 20ml'), (156, '1152720101T ', 'Fresnatural Pink 100 Btl Spray'), (157, '1152800031T ', 'Soklin Smart Calour 900/800 gr'), (158, '1582710051T ', 'Tan Hdye T Hair Dye no 1 6 gr '), (159, '2312830041T ', 'Kispray Glamorous Gold Pouch 300ml'), (160, '2731520501T ', 'Water Jug Rivera Pendek'), (161, '3282830011T ', 'Kispray Violet Pouch R 300ml'), (162, '3782810401T ', 'Sunlight Jeruk Nipis100 Rfl 455ml'), (163, '3782912211T ', 'Lifebuoy TS Mildcare 110g'), (164, '3782912271T ', 'Lifebuoy TS Total10 Red 110g'), (165, '3962700621T ', 'Marina B.G Lotion Hydro Cool 200ml'), (166, '5972720581T ', 'CBlanca BMist Dynamic/Grey 50 ml'), (167, '6273310131T ', 'GPU Minyak Urut No 1 60 ml'), (168, '7862500061T ', 'ABC Sarden Extra Pds 425g'), (169, '0372270011T ', 'Indomilk SKM Cho Sch 120 Bnd 6'), (170, '6702010011T ', '<NAME>'), (171, '1152800901T ', 'Soklin Softergent C.Red 770g'), (172, '1152810301T ', 'Mama Lime G.Tea Rfl 800ml'), (173, '1584110191T ', 'Hings Singlet 123B32'), (174, '4172030011T ', 'Ting - Ting Garuda 3/2,5 g'), (175, '4172040161T ', 'Snack Pilus Sapi Pgg 95g'), (176, '5272021721T ', 'Snack Ring Pedas'), (177, '5792110361T ', 'Good Day Vanila latte 10 20 gr'), (178, '5792110471T ', 'Good Day Cappucino B5 25 gr'), (179, '8964110171T ', 'GTMan Celana GMX M P3'), (180, '0042320021T ', 'Bimoli SpcRef 2 L'), (181, '0372330121T ', 'Indomie AB Bnd 5 '), (182, '0372330351T ', 'Indomie Gr Kriuk Pds Bnd 5'), (183, '3322110021T ', 'Nescafe Clasic 10x2 gr'), (184, '3442900901T ', 'Lor Shp Els TR5 Btl 330ml'), (185, '3592440021T ', 'Sun Kara Santan 65 ml'), (186, '6042100031T ', 'Te<NAME> Jitu Clp 25s'), (187, '6042110141T ', '<NAME> (B10 n1) 25g'), (188, '7602010081T ', 'ROTI KING ABON '), (189, '9362920111T ', 'Sensodyne PG Gentle Whtng 160g'), (190, '9573010221T ', 'Kotex F.L Healthy L n W Unscntd 32p'), (191, '0054030021T ', 'Mitraku Bakso Ikan 200g'), (192, '0452820761T ', 'Downy S.B Jumbo FB (B6) 22ml'), (193, '1152330271T ', 'Mie Sedap Ayam Bwng Tlr Cup 77g'), (194, '2552630071T ', 'Pocari Sweat 500 ml'), (195, '3442702221T ', 'EskCol Gel G3 Sunday 50 ml'), (196, '3782800391T ', 'Rinso Molto Ultra Liq Rose F.(B6)40ml'), (197, '3782800411T ', 'Rinso Molto Ultra AE Blck Liq(B6)40ml'), (198, '3782800551T ', 'Rinso Matic Top Load Liquid 65ml'), (199, '3782903431T ', 'Tresemme Shp K.S 170ml'), (200, '3782930271T ', 'Peps TB Dbl Care Sens MP 3 Soft'), (201, '4542330081T ', 'Nissin Rmn Grng UFO Saus Jpng 88g'), (202, '5442250011T ', 'YAKULT '), (203, '5792000071T ', 'Lovy Cookies Coffeeccino (3s x 10g)'), (204, '6242010211T ', 'Fitbar Coklat (5s x 24g) 120g'), (205, '6242040451T ', 'Fitchips Seaweed 55g'), (206, '7644010051T ', 'SWEET PEAR '), (207, '8262000261T ', 'Nextar Choco Brownies (8x14g) 112g'), (208, '0452000411T ', 'Nyam Nyam F.Stick Straw 25g'), (209, '1152040051T ', 'C.Wings Potabee Selct M.Cheese 57g'), (210, '1152810571T ', 'Soklin Liq Softergent Jumbo (B6)55ml'), (211, '2312720181T ', 'NDeo RO Wht Anti Bacteri 50ml'), (212, '2552001301T ', 'Soyjoy Almond Choco 30g'), (213, '3442900271T ', 'Loreal TR 5 Shpo EBC 180 ml'), (214, '3442900881T ', 'Lor Els Extraordinary Oil H.T 50ml'), (215, '3592230211T ', 'Slim Fit Coklat (6x54g) 324g'), (216, '3782702831T ', 'Vaseline Advance Strength 200ml'), (217, '3782912241T ', 'Lifebuoy TS Mildcare (4x110g)'), (218, '5024030171T ', 'Fiesta Mitra Nugget 250'), (219, '6222000071T ', 'Oreo Sand Straw Creme 294g'), (220, '6222010121T ', 'Cadburry D.M Cashew Nut 30g'), (221, '6242200211T ', 'Milna Baby Bisc Original 130g'), (222, '6292100081T ', 'Teh Kotak Less Sugar 300ml'), (223, '7833110071T ', 'BFresh Everywhere J.G/M.Coffee 70g'), (224, '1152100011T ', 'Teh Javana Melati 350ml'), (225, '5332000261T ', 'Deka W.R Choconut (B4) 8.5g'), (226, '5332000271T ', 'Deka Wfr Roll Choco (B4) 8.5g'), (227, '0452821181T ', 'Downy P.C Fusion Rfl 800ml'), (228, '2412610011T ', 'RootBeer Can 330ml'), (229, '2552840091T ', 'Harpic Power Fresh Orange Btl 450 ml'), (230, '2552911151T ', 'Dettol HW Re Energize Rfl 200ml'), (231, '3322260021T ', 'Nescafe Coffe Cream UHT'), (232, '3322260111T ', 'Nescf Wht Coffee UHT 200ml'), (233, '3782800041T ', 'RINSO AN 770 GR'), (234, '3782810361T ', 'Sunlight Extra Nature Rfl 800ml'), (235, '5281520371T ', 'Sikat Lantai NGT 0401'), (236, '0070940051T ', 'HOKI SANDAL 109'), (237, '0082320011T ', 'Hemart M.Grng Rfl 1Ltr'), (238, '0082320041T ', 'Hemart M.Grng Rfl 500 ml'), (239, '2602930531T ', 'SG For Flip Mobile OC'), (240, '3442120051T ', 'Hydro Coco Original 500ml'), (241, '3442705251T ', 'Ristra AHA Reg Day Crm 30g'), (242, '3782912641T ', 'Lifebuoy BW Matcha G.Tea Rfl 450ml'), (243, '3782920171T ', 'Pepsodent White 120 g'), (244, '3782920551T ', 'Peps PG Action 123 Charcoal 65g'), (245, '5972720761T ', 'Bellagio SColg Brwn Energy 100 ml'), (246, '6292260081T ', 'Ultra Milk Plain 250 ml'), (247, '6842751741T ', 'KK School ME2H603'), (248, '8962750101T ', 'KK GT Man BTS 08'), (249, '8964111181T ', 'GT Ladies C.D GTLS-06Retail.3L (P3)'), (250, '5394061481T ', 'Walls Cocorange 90ml'), (251, '0372400011T ', 'Kecap Indo F Manis Btl 135ml'), (252, '1202400051T ', 'KECAP ASIN 140 '), (253, '1152930301T ', 'SG Ciptadent Total Clean M'), (254, '2312720201T ', 'NMen Deo RO Deep Black Char 50ml'), (255, '3782902011T ', 'Lifebuoy Shp AD Btl 170ml'), (256, '3782910221T ', 'Lifebuoy BW White 300 Btl'), (257, '3782920151T ', 'Pepsodent White 190'), (258, '0452000351T ', '<NAME> Vnl 16g'), (259, '2552001391T ', 'Malkist Bisc Kelapa Kopyor 252g'), (260, '2962020021T ', 'Wader Pixel <NAME>'), (261, '5792010031T ', 'Fine Choco Amaretto (P10) 27g'), (262, '0042440271T ', 'Kobe Super Crispy 850g'), (263, '0452000361T ', '<NAME> 16g'), (264, '0452820991T ', 'Downy Sunrise Fresh Rfl 800ml'), (265, '1222310011T ', 'GULA PASIR 1 KG'), (266, '2312240321T ', 'L Men GM Chocolate 225g'), (267, '2552000081T ', 'Roma Bisc Kelapa 300g'), (268, '3443010161T ', 'Charm Safe Night 29cm W 20p'), (269, '3782400011T ', 'Kecap Bango Rfl 550ml'), (270, '5062300031T ', 'Beras Lahap Anak 10 kg'), (271, '5792030081T ', 'Relaxa Prmn Grape Mint 125g'), (272, '7832800161T ', 'Attack Softener 1.2kg'), (273, '8482010011T ', 'Agustina Cklt Praline 12g'), (274, '1152930041T ', 'SG Kodomo Zigzag-2in1'), (275, '3782902101T ', 'Lifebuoy Shp A D 340ml'), (276, '5022100091T ', 'Teh C<NAME>i 25s'), (277, '6242210021T ', 'Zee Swizz Chocolate Scht (B5) 40g'), (278, '2552330021T ', '<NAME> K<NAME> 28g'), (279, '2552330031T ', '<NAME>tevit Soto Ayam Rcg 28g'), (280, '2552330041T ', 'Migelas Baso Sapi RC 32 g'), (281, '2552330261T ', 'Mi Gelas Protevit Sop Buntut Rcg 27g'), (282, '2602930231T ', 'SG For Family/DMN Pack / M'), (283, '3322110801T ', 'Nescafe 3in1 Pas Scht (B5) 19.5g'), (284, '3782920371T ', 'Pepsodent PGB Fresh Cool Mint 75 gr'), (285, '4752120011T ', 'Oishi Smart-C Lemon 350ml'), (286, '1152110091T ', 'Kopi Top Murni 158g'), (287, '1152110381T ', 'Kopi Top Cappucino (B2 n 1) 25g'), (288, '1152110391T ', 'Neo Coffee Crml Machiato (P6) 20g'), (289, '1152110401T ', 'Neo Coffee Moccachino (P6) 20g'), (290, '1152330161T ', 'Mie Sdp Gor Ay Krispi B5 88g'), (291, '1152810141T ', 'M<NAME> Nipis Rfl 780ml'), (292, '1152910771T ', 'Nuvo Soap Family Pink (B3) 110g'), (293, '1153000241T ', 'Baby Happy Praktis M20'), (294, '1522010031T ', 'Energen Coklat Rcg (B5) 29g'), (295, '3322260071T ', 'Dancow Coklt Actigo UHT 110 ml'), (296, '3443100501T ', 'Tins BB Wipes Aloe Vera 50s'), (297, '4172000331T ', 'Gery Saluut Malkist Cho FP 110g'), (298, '4752040131T ', 'Oishi Suky Suky Pedas Mns 70g'), (299, '5404030301T ', 'So Good Animal 400 gr'), (300, '5933000131T ', 'Popoku Diapers M20'), (301, '6242220011T ', '<NAME> Menyusui Cklt 120g'), (302, '6242230021T ', 'Entrasol Gold Chocolate 370g'), (303, '6242230071T ', 'Entrasol Gold Vanilla (2x300g)600g'), (304, '1522010171T ', 'Energen Vanilla ( 10 x 29g)'), (305, '2602930021T ', 'SG For Trendy n H / S'), (306, '6242210011T ', 'Zee Vanilla Twist Milk Scht (B5) 40g'), (307, '7012702661T ', 'Wrdh Light Twc E.Cvr 03 S.Pink 10g'), (308, '9362920031T ', 'Sensodyne PG Multi Action 100g'), (309, '3962210031T ', 'Bebelac 3 Madu 400 gr'), (310, '1152830141T ', 'Rapika Biang Biru Pouch 250 ml'), (311, '1152910071T ', 'Nuvo Family Merah 76g'), (312, '1202400021T ', 'KSawi Ref 100 /90 ml'), (313, '1252820101T ', 'Bayclin Reg 100 ml'), (314, '2312000911T ', 'Hatari See Hong Puff Kelapa 260g'), (315, '3782702931T ', 'Fair Lovely Multi Vit.Fairness FF 50g'), (316, '3782810381T ', 'Sunlight Habbatussauda 230ml'), (317, '3782912361T ', 'Lifebuoy TS Total 10 80g'), (318, '3782912401T ', 'Lifebuoy TS Lemon Fresh 80g'), (319, '3782912411T ', 'Lifebuoy TS Cool Fresh 80g'), (320, '3782920331T ', 'Pepsodent White 25 gr'), (321, '5133110421T ', 'Stella AC Tropical Orange 42g'), (322, '5332000691T ', 'Deka Crepes Chocoban 14g'), (323, '6222000081T ', 'Oreo Softcake Bolu Cklt Rs Vnl 16g'), (324, '2312420021T ', 'Sasa Saos Smbl ExtPds 24x9g '), (325, '2312440191T ', 'Sasa TB Ala Kentucky 850g'), (326, '2312450231T ', 'Sasa TB Aym Grng TBRS900g'), (327, '3562410011T ', 'Delmonte Sauce Tmt Sch'), (328, '0042450031T ', 'Selara Saus Tiram Pet 170g'), (329, '1461530171T ', 'Loyang Segi 20 x 2 x 0.4 Tbl'), (330, '2702700041T ', 'X-Pert Beauty Blender'), (331, '2702700161T ', 'X-Pert Powder Puff'), (332, '3782710731T ', 'Rexona Men RO Adventure 50ml'), (333, '0092720051T ', 'M.W Spray Parfum Sissi 20ml'), (334, '2312720151T ', 'Nivea RO Deo Silk Touch 50ml'), (335, '3442702261T ', 'EskCol G3 Wednesday 100 ml'), (336, '3442710631T ', 'GMen TL Dbl Wht Icy D.F 100ml'), (337, '3782710711T ', 'Rexona Men RO Ice Cool 50ml'), (338, '5972721401T ', 'Bellagio Sport Colg Bianco 100ml'), (339, '6112900021T ', 'Selsun Shpo Blue Blue 60 ml'), (340, '7012703371T ', 'Wrdh Prfct Bright Cr. Foam O.C 60ml'), (341, '7832700111T ', 'BBF Whitening Scrub 450ml'), (342, '0042110051T ', 'Kopi Luwak Wht Koffie Bnd 5'), (343, '0372040361T ', 'Cheetos Net BBQ 30 gr'), (344, '0372440241T ', 'Bumbu Soto Ayam Box 45 gr'), (345, '0452900331T ', 'Pantene Cond Total Care B12 5 ml'), (346, '2312700591T ', 'Nivea Deo RO Female 25ml'), (347, '3322010481T ', 'Koko Krunch FP Cklt 30g'), (348, '3442704331T ', 'GSN Pure Actv Matcha Foam 50ml'), (349, '3442710231T ', 'MastSpr Col Red Wood 100 ml'), (350, '3442900971T ', 'GCN Express Crm 3.16 Burgundy A.'), (351, '3782702741T ', 'Rexona Wmn Advanced Wht 10/9g'), (352, '3782903721T ', 'Sunsilk Shp Thick n Long (B12) 10ml'), (353, '5432600061T ', 'Air Mineral Vit 600 ml'), (354, '6662440261T ', 'Sajiku Tpng Golden Crispy 200 gr'), (355, '6662440371T ', 'Sajiku Tpng Bmb Bakwan Crispy 90g'), (356, '8402040031T ', 'Twisko Prem Jgng Bakar 30g'), (357, '2513010111T ', 'SOFTNESS PB 50 '), (358, '3782840381T ', 'Vixal Pmbrsh Porselen 200ml'), (359, '5132900141T ', 'DD Shp Straw 45ml'), (360, '5332940301T ', 'CB Soap Fresh n Nourish 75g'), (361, '5332940311T ', 'CB Soap Mild n Gentle 75g'), (362, '5332940321T ', 'CB Soap Soft n Smooth 75g'), (363, '5792110551T ', 'KA Frsco Krim Susu P15 10n5 28g'), (364, '9592210201T ', 'SGM Eksplor 3plus Cklt 400g'), (365, '0372330691T ', 'Pop Mie Baso Sapi Mini'), (366, '0372330731T ', 'Pop Mie Goreng Spcl 80g'), (367, '0372800321T ', 'Bukrim Oxy RFloral 750g'), (368, '1152840511T ', 'WPC Pembrsh Toilet 250ml'), (369, '3782800401T ', 'Rinso AN Liquid (B6) 40ml'), (370, '3962260031T ', 'Vidoran Kids Milk Cklt 115ml'), (371, '5132910181T ', 'Medicare Active Red 90g'), (372, '5132910191T ', 'Medicare Classic Blue/Againt 90g'), (373, '5133100161T ', 'Mittu 24s Reg Blue'), (374, '5933020171T ', 'Pgn Mag2 Nursing cup D5801'), (375, '6222100061T ', 'Fruit Tea Extreme Pet 500 ml'), (376, '8262000051T ', 'Richs Roll Keju(B4) 8g'), (377, '0102350171T ', 'SURYA PRO 16 '), (378, '0042430051T ', 'Garam Cap Kapal 250g'), (379, '0070940011T ', 'HOKI SANDAL 08 '), (380, '0452901321T ', 'H n S Shp Anti Hairfall 160ml'), (381, '1502450011T ', 'Saos Raja Rasa Cap Walet 100ml'), (382, '3322250011T ', 'Bear Brand STM 189'), (383, '3562410031T ', 'Delmonte Tmt Ketchup 200'), (384, '3782703021T ', 'Ponds WB Pinkish Wht FF 100ml'), (385, '5132140041T ', 'Pop Ice Durian (B5) 25g'), (386, '6662440241T ', 'Mayumi Mayonais Yummy 25 gr'), (387, '8964110661T ', 'Ricsony Celana SM-01 XL P3'), (388, '0070940021T ', 'HOKI SANDAL 03 '), (389, '4182460051T ', 'Kraft Cheddar Mini 35 gr'), (390, '5132460291T ', 'Nutrijell Reg Coklat 30g'), (391, '6652000041T ', 'UBM HG Rose Chocolate Cream 200g'), (392, '0192940031T ', 'Dodo Cttn Bud Reg 123 100s'), (393, '0372040501T ', 'QTELA BBQ 60 GR'), (394, '0452010401T ', 'Fonnut Flow Wrap 60 gr'), (395, '0452040011T ', 'Pringles Cheese (110g n 33g)143g'), (396, '1152040021T ', '<NAME> <NAME> 38g'), (397, '1152630011T ', 'ISOPLUS 350ML '), (398, '1152800701T ', 'Soklin Biomatic Top Load 2kg'), (399, '2552001131T ', 'Roma Slai Olai Blueberry 128g'), (400, '2552600011T ', 'Le Mineral 600ml'), (401, '2552910861T ', 'Dettol Soap Re-Ener P3 110/105g'), (402, '3282500091T ', 'Corned Beef Cheese Sch 50 gr'), (403, '3322260031T ', 'Milo UHT Combi 115'), (404, '3782840031T ', 'Vixal Biru 800 ml'), (405, '4172040221T ', 'Gery Cokluut /Saluut Ckt 12/8 gr B4'), (406, '5281522621T ', 'COOL POT 800 ML'), (407, '5332120721T ', 'IM Coco Lychee Wtr 350ml'), (408, '5822010301T ', 'SANWICH COKLAT '), (409, '6222100021T ', 'Fruit Tea Current Pet 500 ml'), (410, '6622040041T ', 'Happytos Biru Keripik jagung 55 gr'), (411, '6634080011T ', 'Krupuk Puli Rs Bawang 200 gr'), (412, '7042020151T ', 'Gangsar Kcng Pnggng Bangkok 50g'), (413, '7221540491T ', 'Over Steker 3 Pin n Sw n L'), (414, '7833010061T ', 'Laurier Super Maxi W 30p'), (415, '7862270131T ', 'FF BKM 490G '), (416, '8192460011T ', 'Dmnd Cheddar Cheese 180g'), (417, '8192460021T ', 'Perfetto Cheese Mozarella Slice 250g'), (418, '8262000351T ', 'Nabati Wfr Pink Lava 145g'), (419, '1152110041T ', 'Kopi Top Susu 3in1 10n5/9n3scht 31 gr'), (420, '5432600031T ', 'AQUA BTL 600 ML'), (421, '5792110211T ', 'KA Special Mix B10 25 gr'), (422, '8192260081T ', 'Dmnd Milk UHT Choco 200ml'), (423, '8192260091T ', 'Dmnd Milk UHT Strw 200ml'), (424, '0042320041T ', 'Bimoli Klasik Ref2 L'), (425, '0372210191T ', 'Indomilk Susu Bbk FC Plain 800g'), (426, '0372330521T ', '<NAME> Bw Gr Bnd 5'), (427, '0372460071T ', '<NAME> 200'), (428, '0452902651T ', 'HnS Shp SmthnSilky (B12)10ml'), (429, '0452902781T ', 'HnS Shp AHF (B12)10ml'), (430, '2312310151T ', 'Diabetamil Sweetener 50s'), (431, '3322030121T ', 'Foxs Fruit Bag 90'), (432, '3322210141T ', 'Dancow 3 plus PB Madu 800 gr'), (433, '3562500031T ', 'DM Sarden Chili K 155g'), (434, '3782410011T ', 'Jawara Saus Smbl Hot Rfl 130ml'), (435, '3962210011T ', 'Bebelove 1 400 gr'), (436, '4772280021T ', 'Afis Susu Almond Coklat 200g'), (437, '5132910011T ', 'Mittu 200 Ml 2in1 Sbn Mnd Reff'), (438, '5281501681T ', 'Sapu Family 2 Macan L 4 Bsr'), (439, '5281505191T ', 'Sapu Senur Anak avatar'), (440, '5333000091T ', 'MAMAMIA 6 X M40'), (441, '6394070011T ', 'Najwa Telur Asin isi 4'), (442, '6592340041T ', 'Terigu Cakra Kembar Trans1Kg'), (443, '6662450121T ', 'Saori Saus Lada Hitam Scht 26ml'), (444, '6902340031T ', 'Sania Tepung Terigu Sbg 1kg'), (445, '8102710021T ', 'SUTRA OK 3S '), (446, '8413100041T ', 'Mamylove Baby Wps Chaml A.V 50s'), (447, '8442460451T ', 'KK Pewarna Hijau Muda Cair 30ml'), (448, '8822120031T ', '<NAME> Kelapa Cup Straw 220ml'), (449, '1533400481T ', 'Ballpoint Snwman V-2'), (450, '0372440071T ', 'Bumbu Racik IF Ayam Gor'), (451, '1152720281T ', 'Posh RO Anti Stain 50ml'), (452, '3442700941T ', 'BB Colg Straw 100 ml'), (453, '3592450041T ', 'Desaku Ketumbar Bbk 150g'), (454, '3782700661T ', 'VICL Healthy Wht 400 ml'), (455, '3962700681T ', 'Marina UV Wht Bright Frsh B.S 200ml'), (456, '7832810021T ', 'Attack Easy Liq Purple Blossom 800ml'), (457, '0092720161T ', 'M.W Spray Parfum Paris Hilton 30ml'), (458, '3322450031T ', 'Mag<NAME> (P6) 7g'), (459, '3442704781T ', 'Marcks Bedak Creme 40g'), (460, '3562460071T ', 'Agar 2 S G Merah'), (461, '5023100151T ', 'Cotton Bud Saudi Choice EF 100 Sc-133'), (462, '5932910511T ', 'Vitalis Prfm BW Wht Glow Rfl 250ml'), (463, '6242230031T ', 'Entrasol Gold Vanilla 185g'), (464, '7832800101T ', 'Attack Easy R.Flower 1,2kg'), (465, '7862220011T ', 'FF Mama I.H Cokelat 200g'); -- -------------------------------------------------------- -- -- Struktur dari tabel `detailtransaksi` -- CREATE TABLE `detailtransaksi` ( `idDetailTransaksi` int(11) NOT NULL, `noInvoice` varchar(255) NOT NULL DEFAULT '0', `kodeBarang` varchar(255) DEFAULT NULL, `tanggal` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `detailtransaksi` -- INSERT INTO `detailtransaksi` (`idDetailTransaksi`, `noInvoice`, `kodeBarang`, `tanggal`) VALUES (1, 'AN20191201143726', '7012700871T ', '2019-12-01'), (2, 'AN20191201144158', '0372330151T ', '2019-12-01'), (3, 'AN20191201144158', '0372440221T ', '2019-12-01'), (4, 'AN20191201144158', '1152810291T ', '2019-12-01'), (5, 'AN20191201144158', '2313101041T ', '2019-12-01'), (6, 'AN20191201144158', '2512320041T ', '2019-12-01'), (7, 'AN20191201144158', '3282410061T ', '2019-12-01'), (8, 'AN20191201144158', '3782100031T ', '2019-12-01'), (9, 'AN20191201144158', '3782450351T ', '2019-12-01'), (10, 'AN20191201144158', '5133200311T ', '2019-12-01'), (11, 'AN20191201144158', '5364030051T ', '2019-12-01'), (12, 'AN20191201144158', '5404030381T ', '2019-12-01'), (13, 'AN20191201144158', '5924070011T ', '2019-12-01'), (14, 'AN20191201144158', '6902300011T ', '2019-12-01'), (15, 'AN20191201144158', '7862400091T ', '2019-12-01'), (16, 'AN20191201144158', '8562150071T ', '2019-12-01'), (17, 'AN20191201144158', '9143200441T ', '2019-12-01'), (18, 'AN20191201144434', '1152040061T ', '2019-12-01'), (19, 'AN20191201144434', '2412400021T ', '2019-12-01'), (20, 'AN20191201144434', '2602120591T ', '2019-12-01'), (21, 'AN20191201144434', '3562130031T ', '2019-12-01'), (22, 'AN20191201144434', '5281503671T ', '2019-12-01'), (23, 'AN20191201144434', '5792030241T ', '2019-12-01'), (24, 'AN20191201144434', '5792030331T ', '2019-12-01'), (25, 'AN20191201144434', '6212020401T ', '2019-12-01'), (26, 'AN20191201144434', '6243300451T ', '2019-12-01'), (27, 'AN20191201144434', '7372150101T ', '2019-12-01'), (28, 'AN20191201144434', '7833120711T ', '2019-12-01'), (29, 'AN20191201144434', '9251540952T ', '2019-12-01'), (30, 'AN20191201144434', '9821530041T ', '2019-12-01'), (31, 'AN20191201144434', '9821530131T ', '2019-12-01'), (32, 'AN20191201144832', '0042100011T ', '2019-12-01'), (33, 'AN20191201144832', '0042100031T ', '2019-12-01'), (34, 'AN20191201144832', '0042140011T ', '2019-12-01'), (35, 'AN20191201144832', '0452821161T ', '2019-12-01'), (36, 'AN20191201144832', '1152840301T ', '2019-12-01'), (37, 'AN20191201144832', '1522120031T ', '2019-12-01'), (38, 'AN20191201144832', '2313010681T ', '2019-12-01'), (39, 'AN20191201144832', '2313100741T ', '2019-12-01'), (40, 'AN20191201144832', '3282010141T ', '2019-12-01'), (41, 'AN20191201144832', '3782700641T ', '2019-12-01'), (42, 'AN20191201144832', '3782903811T ', '2019-12-01'), (43, 'AN20191201144832', '3782912541T ', '2019-12-01'), (44, 'AN20191201144832', '5022320041T ', '2019-12-01'), (45, 'AN20191201144832', '5024030091T ', '2019-12-01'), (46, 'AN20191201144832', '5792110181T ', '2019-12-01'), (47, 'AN20191201144832', '7422310041T ', '2019-12-01'), (48, 'AN20191201144832', '7831500041T ', '2019-12-01'), (49, 'AN20191201144832', '7833110381T ', '2019-12-01'), (50, 'AN20191201144832', '7833110401T ', '2019-12-01'), (51, 'AN20191201144832', '9142930101T ', '2019-12-01'), (52, 'AN20191201144832', '9143010011T ', '2019-12-01'), (53, 'AN20191201144911', '0102350041T ', '2019-12-01'), (54, 'AN20191201150533', '0452000581T ', '2019-12-01'), (55, 'AN20191201150533', '0452903331T ', '2019-12-01'), (56, 'AN20191201150533', '1152800271T ', '2019-12-01'), (57, 'AN20191201150533', '1152810621T ', '2019-12-01'), (58, 'AN20191201150533', '1152920161T ', '2019-12-01'), (59, 'AN20191201150533', '6242250031T ', '2019-12-01'), (60, 'AN20191201150533', '6242250051T ', '2019-12-01'), (61, 'AN20191201150533', '8262000111T ', '2019-12-01'), (62, 'AN20191201151647', '0042430041T ', '2019-12-01'), (63, 'AN20191201151647', '0070940041T ', '2019-12-01'), (64, 'AN20191201151647', '0193020911T ', '2019-12-01'), (65, 'AN20191201151647', '0372040311T ', '2019-12-01'), (66, 'AN20191201151647', '0372040401T ', '2019-12-01'), (67, 'AN20191201151647', '0372040421T ', '2019-12-01'), (68, 'AN20191201151647', '0372040431T ', '2019-12-01'), (69, 'AN20191201151647', '0372040741T ', '2019-12-01'), (70, 'AN20191201151647', '0372260031T ', '2019-12-01'), (71, 'AN20191201151647', '0372260041T ', '2019-12-01'), (72, 'AN20191201151647', '0372330151T ', '2019-12-01'), (73, 'AN20191201151647', '0372330681T ', '2019-12-01'), (74, 'AN20191201151647', '0372330801T ', '2019-12-01'), (75, 'AN20191201151647', '0372410031T ', '2019-12-01'), (76, 'AN20191201151647', '0452010941T ', '2019-12-01'), (77, 'AN20191201151647', '0452821091T ', '2019-12-01'), (78, 'AN20191201151647', '0452821131T ', '2019-12-01'), (79, 'AN20191201151647', '0452821221T ', '2019-12-01'), (80, 'AN20191201151647', '1152330011T ', '2019-12-01'), (81, 'AN20191201151647', '1152800251T ', '2019-12-01'), (82, 'AN20191201151647', '1152800581T ', '2019-12-01'), (83, 'AN20191201151647', '1152900731T ', '2019-12-01'), (84, 'AN20191201151647', '1152920081T ', '2019-12-01'), (85, 'AN20191201151647', '1152930021T ', '2019-12-01'), (86, 'AN20191201151647', '1154060121T ', '2019-12-01'), (87, 'AN20191201151647', '1202400031T ', '2019-12-01'), (88, 'AN20191201151647', '1522010201T ', '2019-12-01'), (89, 'AN20191201151647', '1522110061T ', '2019-12-01'), (90, 'AN20191201151647', '1522110131T ', '2019-12-01'), (91, 'AN20191201151647', '1522110191T ', '2019-12-01'), (92, 'AN20191201151647', '2312120771T ', '2019-12-01'), (93, 'AN20191201151647', '2312120781T ', '2019-12-01'), (94, 'AN20191201151647', '2312260151T ', '2019-12-01'), (95, 'AN20191201151647', '2312260161T ', '2019-12-01'), (96, 'AN20191201151647', '2412320021T ', '2019-12-01'), (97, 'AN20191201151647', '2412330021T ', '2019-12-01'), (98, 'AN20191201151647', '2552000101T ', '2019-12-01'), (99, 'AN20191201151647', '2552810121T ', '2019-12-01'), (100, 'AN20191201151647', '2552910951T ', '2019-12-01'), (101, 'AN20191201151647', '2552911111T ', '2019-12-01'), (102, 'AN20191201151647', '3502040031T ', '2019-12-01'), (103, 'AN20191201151647', '3562000571T ', '2019-12-01'), (104, 'AN20191201151647', '3782450401T ', '2019-12-01'), (105, 'AN20191201151647', '3782920531T ', '2019-12-01'), (106, 'AN20191201151647', '5024030021T ', '2019-12-01'), (107, 'AN20191201151647', '5024030261T ', '2019-12-01'), (108, 'AN20191201151647', '5062300061T ', '2019-12-01'), (109, 'AN20191201151647', '5281502851T ', '2019-12-01'), (110, 'AN20191201151647', '5281526181T ', '2019-12-01'), (111, 'AN20191201151647', '5332040041T ', '2019-12-01'), (112, 'AN20191201151647', '5332250041T ', '2019-12-01'), (113, 'AN20191201151647', '5332250061T ', '2019-12-01'), (114, 'AN20191201151647', '5333300021T ', '2019-12-01'), (115, 'AN20191201151647', '5333300031T ', '2019-12-01'), (116, 'AN20191201151647', '5333300041T ', '2019-12-01'), (117, 'AN20191201151647', '5333300051T ', '2019-12-01'), (118, 'AN20191201151647', '5333300061T ', '2019-12-01'), (119, 'AN20191201151647', '5333300071T ', '2019-12-01'), (120, 'AN20191201151647', '5333300091T ', '2019-12-01'), (121, 'AN20191201151647', '5394060791T ', '2019-12-01'), (122, 'AN20191201151647', '5532120141T ', '2019-12-01'), (123, 'AN20191201151647', '6222000041T ', '2019-12-01'), (124, 'AN20191201151647', '6222000251T ', '2019-12-01'), (125, 'AN20191201151647', '6242030181T ', '2019-12-01'), (126, 'AN20191201151647', '6242040071T ', '2019-12-01'), (127, 'AN20191201151647', '6242040311T ', '2019-12-01'), (128, 'AN20191201151647', '6242040381T ', '2019-12-01'), (129, 'AN20191201151647', '6242040431T ', '2019-12-01'), (130, 'AN20191201151647', '6242040441T ', '2019-12-01'), (131, 'AN20191201151647', '6242040531T ', '2019-12-01'), (132, 'AN20191201151647', '6292260031T ', '2019-12-01'), (133, 'AN20191201151647', '6292260231T ', '2019-12-01'), (134, 'AN20191201151647', '6292260241T ', '2019-12-01'), (135, 'AN20191201151647', '6292260291T ', '2019-12-01'), (136, 'AN20191201151647', '6622040031T ', '2019-12-01'), (137, 'AN20191201151647', '7012700111T ', '2019-12-01'), (138, 'AN20191201151647', '7314111331T ', '2019-12-01'), (139, 'AN20191201151647', '7483020011T ', '2019-12-01'), (140, 'AN20191201151647', '7833110471T ', '2019-12-01'), (141, 'AN20191201151647', '7833110751T ', '2019-12-01'), (142, 'AN20191201151647', '8192010051T ', '2019-12-01'), (143, 'AN20191201151647', '8262000291T ', '2019-12-01'), (144, 'AN20191201151647', '8262000311T ', '2019-12-01'), (145, 'AN20191201151647', '8262000321T ', '2019-12-01'), (146, 'AN20191201151647', '8262000391T ', '2019-12-01'), (147, 'AN20191201151647', '8402040011T ', '2019-12-01'), (148, 'AN20191201151647', '8402040041T ', '2019-12-01'), (149, 'AN20191201151647', '8402040051T ', '2019-12-01'), (150, 'AN20191201151647', '8402040071T ', '2019-12-01'), (151, 'AN20191201151647', '8942010051T ', '2019-12-01'), (152, 'AN20191201151647', '9143200031T ', '2019-12-01'), (153, 'AN20191201152033', '0372330661T ', '2019-12-01'), (154, 'AN20191201152033', '0452820581T ', '2019-12-01'), (155, 'AN20191201152033', '0452820601T ', '2019-12-01'), (156, 'AN20191201152033', '0452821031T ', '2019-12-01'), (157, 'AN20191201152033', '1152720101T ', '2019-12-01'), (158, 'AN20191201152033', '1152800031T ', '2019-12-01'), (159, 'AN20191201152033', '1582710051T ', '2019-12-01'), (160, 'AN20191201152033', '2312830041T ', '2019-12-01'), (161, 'AN20191201152033', '2731520501T ', '2019-12-01'), (162, 'AN20191201152033', '3282830011T ', '2019-12-01'), (163, 'AN20191201152033', '3782810401T ', '2019-12-01'), (164, 'AN20191201152033', '3782912211T ', '2019-12-01'), (165, 'AN20191201152033', '3782912271T ', '2019-12-01'), (166, 'AN20191201152033', '3782920531T ', '2019-12-01'), (167, 'AN20191201152033', '3962700621T ', '2019-12-01'), (168, 'AN20191201152033', '5972720581T ', '2019-12-01'), (169, 'AN20191201152033', '6273310131T ', '2019-12-01'), (170, 'AN20191201152033', '7862500061T ', '2019-12-01'), (171, 'AN20191201152106', '0372270011T ', '2019-12-01'), (172, 'AN20191201152106', '6702010011T ', '2019-12-01'), (173, 'AN20191201152540', '1152800901T ', '2019-12-01'), (174, 'AN20191201152540', '1152810301T ', '2019-12-01'), (175, 'AN20191201152540', '1584110191T ', '2019-12-01'), (176, 'AN20191201152540', '4172030011T ', '2019-12-01'), (177, 'AN20191201152540', '4172040161T ', '2019-12-01'), (178, 'AN20191201152540', '5272021721T ', '2019-12-01'), (179, 'AN20191201152540', '5792110361T ', '2019-12-01'), (180, 'AN20191201152540', '5792110471T ', '2019-12-01'), (181, 'AN20191201152540', '8964110171T ', '2019-12-01'), (182, 'AN20191201152928', '0042320021T ', '2019-12-01'), (183, 'AN20191201152928', '0372330121T ', '2019-12-01'), (184, 'AN20191201152928', '0372330151T ', '2019-12-01'), (185, 'AN20191201152928', '0372330351T ', '2019-12-01'), (186, 'AN20191201152928', '2412320021T ', '2019-12-01'), (187, 'AN20191201152928', '3322110021T ', '2019-12-01'), (188, 'AN20191201152928', '3442900901T ', '2019-12-01'), (189, 'AN20191201152928', '3592440021T ', '2019-12-01'), (190, 'AN20191201152928', '6042100031T ', '2019-12-01'), (191, 'AN20191201152928', '6042110141T ', '2019-12-01'), (192, 'AN20191201152928', '7602010081T ', '2019-12-01'), (193, 'AN20191201152928', '9362920111T ', '2019-12-01'), (194, 'AN20191201152928', '9573010221T ', '2019-12-01'), (195, 'AN20191201153157', '0054030021T ', '2019-12-01'), (196, 'AN20191201153157', '0452820761T ', '2019-12-01'), (197, 'AN20191201153157', '1152330271T ', '2019-12-01'), (198, 'AN20191201153157', '2312830041T ', '2019-12-01'), (199, 'AN20191201153157', '2552630071T ', '2019-12-01'), (200, 'AN20191201153157', '3442702221T ', '2019-12-01'), (201, 'AN20191201153157', '3782800391T ', '2019-12-01'), (202, 'AN20191201153157', '3782800411T ', '2019-12-01'), (203, 'AN20191201153157', '3782800551T ', '2019-12-01'), (204, 'AN20191201153157', '3782903431T ', '2019-12-01'), (205, 'AN20191201153157', '3782930271T ', '2019-12-01'), (206, 'AN20191201153157', '4542330081T ', '2019-12-01'), (207, 'AN20191201153157', '5442250011T ', '2019-12-01'), (208, 'AN20191201153157', '5792000071T ', '2019-12-01'), (209, 'AN20191201153157', '6242010211T ', '2019-12-01'), (210, 'AN20191201153157', '6242040451T ', '2019-12-01'), (211, 'AN20191201153157', '7644010051T ', '2019-12-01'), (212, 'AN20191201153157', '8262000261T ', '2019-12-01'), (213, 'AN20191201153344', '0452000411T ', '2019-12-01'), (214, 'AN20191201153344', '1152040051T ', '2019-12-01'), (215, 'AN20191201153344', '1152810571T ', '2019-12-01'), (216, 'AN20191201153344', '2312720181T ', '2019-12-01'), (217, 'AN20191201153344', '2552001301T ', '2019-12-01'), (218, 'AN20191201153344', '3442900271T ', '2019-12-01'), (219, 'AN20191201153344', '3442900881T ', '2019-12-01'), (220, 'AN20191201153344', '3592230211T ', '2019-12-01'), (221, 'AN20191201153344', '3782702831T ', '2019-12-01'), (222, 'AN20191201153344', '3782912241T ', '2019-12-01'), (223, 'AN20191201153344', '5024030171T ', '2019-12-01'), (224, 'AN20191201153344', '6222000071T ', '2019-12-01'), (225, 'AN20191201153344', '6222010121T ', '2019-12-01'), (226, 'AN20191201153344', '6242200211T ', '2019-12-01'), (227, 'AN20191201153344', '6292100081T ', '2019-12-01'), (228, 'AN20191201153344', '7833110071T ', '2019-12-01'), (229, 'AN20191201153441', '1152100011T ', '2019-12-01'), (230, 'AN20191201153441', '5332000261T ', '2019-12-01'), (231, 'AN20191201153441', '5332000271T ', '2019-12-01'), (232, 'AN20191201153702', '0452821181T ', '2019-12-01'), (233, 'AN20191201153702', '2412610011T ', '2019-12-01'), (234, 'AN20191201153702', '2552840091T ', '2019-12-01'), (235, 'AN20191201153702', '2552911151T ', '2019-12-01'), (236, 'AN20191201153702', '3322260021T ', '2019-12-01'), (237, 'AN20191201153702', '3322260111T ', '2019-12-01'), (238, 'AN20191201153702', '3782800041T ', '2019-12-01'), (239, 'AN20191201153702', '3782810361T ', '2019-12-01'), (240, 'AN20191201153702', '5062300061T ', '2019-12-01'), (241, 'AN20191201153702', '5281520371T ', '2019-12-01'), (242, 'AN20191201153702', '7644010051T ', '2019-12-01'), (243, 'AN20191201154035', '0070940051T ', '2019-12-01'), (244, 'AN20191201154035', '0082320011T ', '2019-12-01'), (245, 'AN20191201154035', '0082320041T ', '2019-12-01'), (246, 'AN20191201154035', '2602930531T ', '2019-12-01'), (247, 'AN20191201154035', '3442120051T ', '2019-12-01'), (248, 'AN20191201154035', '3442705251T ', '2019-12-01'), (249, 'AN20191201154035', '3782912641T ', '2019-12-01'), (250, 'AN20191201154035', '3782920171T ', '2019-12-01'), (251, 'AN20191201154035', '3782920551T ', '2019-12-01'), (252, 'AN20191201154035', '5972720761T ', '2019-12-01'), (253, 'AN20191201154035', '6292260081T ', '2019-12-01'), (254, 'AN20191201154035', '6842751741T ', '2019-12-01'), (255, 'AN20191201154035', '8962750101T ', '2019-12-01'), (256, 'AN20191201154035', '8964111181T ', '2019-12-01'), (257, 'AN20191201154154', '5394061481T ', '2019-12-01'), (258, 'AN20191201154154', '6292260031T ', '2019-12-01'), (259, 'AN20191201154154', '6292260241T ', '2019-12-01'), (260, 'AN20191201154356', '0372400011T ', '2019-12-01'), (261, 'AN20191201154356', '1152810301T ', '2019-12-01'), (262, 'AN20191201154356', '1202400051T ', '2019-12-01'), (263, 'AN20191201155648', '1152930301T ', '2019-12-01'), (264, 'AN20191201155648', '2312720201T ', '2019-12-01'), (265, 'AN20191201155648', '3782902011T ', '2019-12-01'), (266, 'AN20191201155648', '3782910221T ', '2019-12-01'), (267, 'AN20191201155648', '3782920151T ', '2019-12-01'), (268, 'AN20191201160025', '0372330121T ', '2019-12-01'), (269, 'AN20191201160025', '0372330351T ', '2019-12-01'), (270, 'AN20191201160025', '0452000351T ', '2019-12-01'), (271, 'AN20191201160025', '2552001391T ', '2019-12-01'), (272, 'AN20191201160025', '2962020021T ', '2019-12-01'), (273, 'AN20191201160025', '5332000261T ', '2019-12-01'), (274, 'AN20191201160025', '5792010031T ', '2019-12-01'), (275, 'AN20191201160025', '8262000111T ', '2019-12-01'), (276, 'AN20191201160435', '0042430041T ', '2019-12-01'), (277, 'AN20191201160435', '0042440271T ', '2019-12-01'), (278, 'AN20191201160435', '0452000361T ', '2019-12-01'), (279, 'AN20191201160435', '0452820991T ', '2019-12-01'), (280, 'AN20191201160435', '1222310011T ', '2019-12-01'), (281, 'AN20191201160435', '2312240321T ', '2019-12-01'), (282, 'AN20191201160435', '2552000081T ', '2019-12-01'), (283, 'AN20191201160435', '3443010161T ', '2019-12-01'), (284, 'AN20191201160435', '3782100031T ', '2019-12-01'), (285, 'AN20191201160435', '3782400011T ', '2019-12-01'), (286, 'AN20191201160435', '5062300031T ', '2019-12-01'), (287, 'AN20191201160435', '5792030081T ', '2019-12-01'), (288, 'AN20191201160435', '5924070011T ', '2019-12-01'), (289, 'AN20191201160435', '7832800161T ', '2019-12-01'), (290, 'AN20191201160515', '8482010011T ', '2019-12-01'), (291, 'AN20191201160746', '1152930041T ', '2019-12-01'), (292, 'AN20191201160746', '3782902101T ', '2019-12-01'), (293, 'AN20191201160746', '5022100091T ', '2019-12-01'), (294, 'AN20191201160746', '6242210021T ', '2019-12-01'), (295, 'AN20191201160913', '2552330021T ', '2019-12-01'), (296, 'AN20191201160913', '2552330031T ', '2019-12-01'), (297, 'AN20191201160913', '2552330041T ', '2019-12-01'), (298, 'AN20191201160913', '2552330261T ', '2019-12-01'), (299, 'AN20191201160913', '2602930231T ', '2019-12-01'), (300, 'AN20191201160913', '3322110801T ', '2019-12-01'), (301, 'AN20191201160913', '3782912241T ', '2019-12-01'), (302, 'AN20191201160913', '3782920371T ', '2019-12-01'), (303, 'AN20191201160950', '4752120011T ', '2019-12-01'), (304, 'AN20191201161650', '1152110091T ', '2019-12-01'), (305, 'AN20191201161650', '1152110381T ', '2019-12-01'), (306, 'AN20191201161650', '1152110391T ', '2019-12-01'), (307, 'AN20191201161650', '1152110401T ', '2019-12-01'), (308, 'AN20191201161650', '1152330161T ', '2019-12-01'), (309, 'AN20191201161650', '1152810141T ', '2019-12-01'), (310, 'AN20191201161650', '1152910771T ', '2019-12-01'), (311, 'AN20191201161650', '1153000241T ', '2019-12-01'), (312, 'AN20191201161650', '1522010031T ', '2019-12-01'), (313, 'AN20191201161650', '3322260071T ', '2019-12-01'), (314, 'AN20191201161650', '3443100501T ', '2019-12-01'), (315, 'AN20191201161650', '4172000331T ', '2019-12-01'), (316, 'AN20191201161650', '4752040131T ', '2019-12-01'), (317, 'AN20191201161650', '5404030301T ', '2019-12-01'), (318, 'AN20191201161650', '5933000131T ', '2019-12-01'), (319, 'AN20191201161650', '6242220011T ', '2019-12-01'), (320, 'AN20191201161650', '6242230021T ', '2019-12-01'), (321, 'AN20191201161650', '6242230071T ', '2019-12-01'), (322, 'AN20191201161650', '6242250031T ', '2019-12-01'), (323, 'AN20191201161918', '1522010171T ', '2019-12-01'), (324, 'AN20191201161918', '2602930021T ', '2019-12-01'), (325, 'AN20191201161918', '6242210011T ', '2019-12-01'), (326, 'AN20191201161918', '7012702661T ', '2019-12-01'), (327, 'AN20191201161918', '9362920031T ', '2019-12-01'), (328, 'AN20191201161959', '3962210031T ', '2019-12-01'), (329, 'AN20191201162307', '1152830141T ', '2019-12-01'), (330, 'AN20191201162307', '1152910071T ', '2019-12-01'), (331, 'AN20191201162307', '1202400021T ', '2019-12-01'), (332, 'AN20191201162307', '1252820101T ', '2019-12-01'), (333, 'AN20191201162307', '2312000911T ', '2019-12-01'), (334, 'AN20191201162307', '3782702931T ', '2019-12-01'), (335, 'AN20191201162307', '3782810381T ', '2019-12-01'), (336, 'AN20191201162307', '3782912361T ', '2019-12-01'), (337, 'AN20191201162307', '3782912401T ', '2019-12-01'), (338, 'AN20191201162307', '3782912411T ', '2019-12-01'), (339, 'AN20191201162307', '3782920331T ', '2019-12-01'), (340, 'AN20191201162307', '3782920371T ', '2019-12-01'), (341, 'AN20191201162307', '5133110421T ', '2019-12-01'), (342, 'AN20191201162307', '5332000691T ', '2019-12-01'), (343, 'AN20191201162307', '6222000081T ', '2019-12-01'), (344, 'AN20191201162440', '0042320021T ', '2019-12-01'), (345, 'AN20191201162440', '2312420021T ', '2019-12-01'), (346, 'AN20191201162440', '2312440191T ', '2019-12-01'), (347, 'AN20191201162440', '2312450231T ', '2019-12-01'), (348, 'AN20191201162440', '3562410011T ', '2019-12-01'), (349, 'AN20191201162615', '0042450031T ', '2019-12-01'), (350, 'AN20191201162615', '1461530171T ', '2019-12-01'), (351, 'AN20191201162615', '2702700041T ', '2019-12-01'), (352, 'AN20191201162615', '2702700161T ', '2019-12-01'), (353, 'AN20191201162615', '3782710731T ', '2019-12-01'), (354, 'AN20191201162736', '0092720051T ', '2019-12-01'), (355, 'AN20191201162736', '2312720151T ', '2019-12-01'), (356, 'AN20191201162736', '3442702261T ', '2019-12-01'), (357, 'AN20191201162736', '3442710631T ', '2019-12-01'), (358, 'AN20191201162736', '3782710711T ', '2019-12-01'), (359, 'AN20191201162736', '5972721401T ', '2019-12-01'), (360, 'AN20191201162736', '6112900021T ', '2019-12-01'), (361, 'AN20191201162736', '7012703371T ', '2019-12-01'), (362, 'AN20191201162736', '7832700111T ', '2019-12-01'), (363, 'AN20191201162942', '0042110051T ', '2019-12-01'), (364, 'AN20191201162942', '0372040361T ', '2019-12-01'), (365, 'AN20191201162942', '0372440241T ', '2019-12-01'), (366, 'AN20191201162942', '0452900331T ', '2019-12-01'), (367, 'AN20191201162942', '1152330011T ', '2019-12-01'), (368, 'AN20191201162942', '2312700591T ', '2019-12-01'), (369, 'AN20191201162942', '3322010481T ', '2019-12-01'), (370, 'AN20191201162942', '3442704331T ', '2019-12-01'), (371, 'AN20191201162942', '3442710231T ', '2019-12-01'), (372, 'AN20191201162942', '3442900971T ', '2019-12-01'), (373, 'AN20191201162942', '3782702741T ', '2019-12-01'), (374, 'AN20191201162942', '3782903721T ', '2019-12-01'), (375, 'AN20191201162942', '5432600061T ', '2019-12-01'), (376, 'AN20191201162942', '6662440261T ', '2019-12-01'), (377, 'AN20191201162942', '6662440371T ', '2019-12-01'), (378, 'AN20191201162942', '8402040031T ', '2019-12-01'), (379, 'AN20191201163346', '2513010111T ', '2019-12-01'), (380, 'AN20191201163346', '3782840381T ', '2019-12-01'), (381, 'AN20191201163346', '5132900141T ', '2019-12-01'), (382, 'AN20191201163346', '5332940301T ', '2019-12-01'), (383, 'AN20191201163346', '5332940311T ', '2019-12-01'), (384, 'AN20191201163346', '5332940321T ', '2019-12-01'), (385, 'AN20191201163346', '5792110551T ', '2019-12-01'), (386, 'AN20191201163346', '9592210201T ', '2019-12-01'), (387, 'AN20191201163604', '0372330691T ', '2019-12-01'), (388, 'AN20191201163604', '0372330731T ', '2019-12-01'), (389, 'AN20191201163604', '0372800321T ', '2019-12-01'), (390, 'AN20191201163604', '1152330011T ', '2019-12-01'), (391, 'AN20191201163604', '1152840511T ', '2019-12-01'), (392, 'AN20191201163604', '3782800401T ', '2019-12-01'), (393, 'AN20191201163604', '3962260031T ', '2019-12-01'), (394, 'AN20191201163604', '5132910181T ', '2019-12-01'), (395, 'AN20191201163604', '5132910191T ', '2019-12-01'), (396, 'AN20191201163604', '5133100161T ', '2019-12-01'), (397, 'AN20191201163604', '5442250011T ', '2019-12-01'), (398, 'AN20191201163604', '5933020171T ', '2019-12-01'), (399, 'AN20191201163604', '6222100061T ', '2019-12-01'), (400, 'AN20191201163604', '8262000051T ', '2019-12-01'), (401, 'AN20191201135543', '0102350171T ', '2019-12-01'), (402, 'AN20191201135748', '0042430051T ', '2019-12-01'), (403, 'AN20191201135748', '0070940011T ', '2019-12-01'), (404, 'AN20191201135748', '0452901321T ', '2019-12-01'), (405, 'AN20191201135748', '1502450011T ', '2019-12-01'), (406, 'AN20191201135748', '2552840091T ', '2019-12-01'), (407, 'AN20191201135748', '3322250011T ', '2019-12-01'), (408, 'AN20191201135748', '3562410031T ', '2019-12-01'), (409, 'AN20191201135748', '3782703021T ', '2019-12-01'), (410, 'AN20191201135748', '5132140041T ', '2019-12-01'), (411, 'AN20191201135748', '6662440241T ', '2019-12-01'), (412, 'AN20191201135748', '8964110661T ', '2019-12-01'), (413, 'AN20191201135834', '0070940021T ', '2019-12-01'), (414, 'AN20191201140024', '4182460051T ', '2019-12-01'), (415, 'AN20191201140024', '5132460291T ', '2019-12-01'), (416, 'AN20191201140024', '6652000041T ', '2019-12-01'), (417, 'AN20191201140609', '0192940031T ', '2019-12-01'), (418, 'AN20191201140609', '0372040501T ', '2019-12-01'), (419, 'AN20191201140609', '0452010401T ', '2019-12-01'), (420, 'AN20191201140609', '0452040011T ', '2019-12-01'), (421, 'AN20191201140609', '1152040021T ', '2019-12-01'), (422, 'AN20191201140609', '1152630011T ', '2019-12-01'), (423, 'AN20191201140609', '1152800701T ', '2019-12-01'), (424, 'AN20191201140609', '2552001131T ', '2019-12-01'), (425, 'AN20191201140609', '2552600011T ', '2019-12-01'), (426, 'AN20191201140609', '2552910861T ', '2019-12-01'), (427, 'AN20191201140609', '3282500091T ', '2019-12-01'), (428, 'AN20191201140609', '3322260031T ', '2019-12-01'), (429, 'AN20191201140609', '3782840031T ', '2019-12-01'), (430, 'AN20191201140609', '3782920171T ', '2019-12-01'), (431, 'AN20191201140609', '4172040221T ', '2019-12-01'), (432, 'AN20191201140609', '5281522621T ', '2019-12-01'), (433, 'AN20191201140609', '5332120721T ', '2019-12-01'), (434, 'AN20191201140609', '5442250011T ', '2019-12-01'), (435, 'AN20191201140609', '5822010301T ', '2019-12-01'), (436, 'AN20191201140609', '6222000041T ', '2019-12-01'), (437, 'AN20191201140609', '6222100021T ', '2019-12-01'), (438, 'AN20191201140609', '6622040041T ', '2019-12-01'), (439, 'AN20191201140609', '6634080011T ', '2019-12-01'), (440, 'AN20191201140609', '7042020151T ', '2019-12-01'), (441, 'AN20191201140609', '7221540491T ', '2019-12-01'), (442, 'AN20191201140609', '7833010061T ', '2019-12-01'), (443, 'AN20191201140609', '7862270131T ', '2019-12-01'), (444, 'AN20191201140609', '8192460011T ', '2019-12-01'), (445, 'AN20191201140609', '8192460021T ', '2019-12-01'), (446, 'AN20191201140609', '8262000051T ', '2019-12-01'), (447, 'AN20191201140609', '8262000351T ', '2019-12-01'), (448, 'AN20191201140850', '1152110041T ', '2019-12-01'), (449, 'AN20191201140850', '5432600031T ', '2019-12-01'), (450, 'AN20191201140850', '5792110211T ', '2019-12-01'), (451, 'AN20191201140850', '8192260081T ', '2019-12-01'), (452, 'AN20191201140850', '8192260091T ', '2019-12-01'), (453, 'AN20191201140929', '0102350171T ', '2019-12-01'), (454, 'AN20191201141546', '0042320041T ', '2019-12-01'), (455, 'AN20191201141546', '0372210191T ', '2019-12-01'), (456, 'AN20191201141546', '0372330151T ', '2019-12-01'), (457, 'AN20191201141546', '0372330521T ', '2019-12-01'), (458, 'AN20191201141546', '0372460071T ', '2019-12-01'), (459, 'AN20191201141546', '0452000411T ', '2019-12-01'), (460, 'AN20191201141546', '0452902651T ', '2019-12-01'), (461, 'AN20191201141546', '0452902781T ', '2019-12-01'), (462, 'AN20191201141546', '1152810141T ', '2019-12-01'), (463, 'AN20191201141546', '2312310151T ', '2019-12-01'), (464, 'AN20191201141546', '3322030121T ', '2019-12-01'), (465, 'AN20191201141546', '3322210141T ', '2019-12-01'), (466, 'AN20191201141546', '3562500031T ', '2019-12-01'), (467, 'AN20191201141546', '3782410011T ', '2019-12-01'), (468, 'AN20191201141546', '3962210011T ', '2019-12-01'), (469, 'AN20191201141546', '4772280021T ', '2019-12-01'), (470, 'AN20191201141546', '5132910011T ', '2019-12-01'), (471, 'AN20191201141546', '5281501681T ', '2019-12-01'), (472, 'AN20191201141546', '5281505191T ', '2019-12-01'), (473, 'AN20191201141546', '5333000091T ', '2019-12-01'), (474, 'AN20191201141546', '6394070011T ', '2019-12-01'), (475, 'AN20191201141546', '6592340041T ', '2019-12-01'), (476, 'AN20191201141546', '6662450121T ', '2019-12-01'), (477, 'AN20191201141546', '6902340031T ', '2019-12-01'), (478, 'AN20191201141546', '8102710021T ', '2019-12-01'), (479, 'AN20191201141546', '8413100041T ', '2019-12-01'), (480, 'AN20191201141546', '8442460451T ', '2019-12-01'), (481, 'AN20191201141546', '8822120031T ', '2019-12-01'), (482, 'AN20191201142108', '1533400481T ', '2019-12-01'), (483, 'AN20191201142413', '0372440071T ', '2019-12-01'), (484, 'AN20191201142413', '1152720281T ', '2019-12-01'), (485, 'AN20191201142413', '3442700941T ', '2019-12-01'), (486, 'AN20191201142413', '3592450041T ', '2019-12-01'), (487, 'AN20191201142413', '3782700661T ', '2019-12-01'), (488, 'AN20191201142413', '3962700681T ', '2019-12-01'), (489, 'AN20191201142413', '7832810021T ', '2019-12-01'), (490, 'AN20191201142608', '0092720161T ', '2019-12-01'), (491, 'AN20191201142608', '1152720281T ', '2019-12-01'), (492, 'AN20191201142608', '3322450031T ', '2019-12-01'), (493, 'AN20191201142608', '3442704781T ', '2019-12-01'), (494, 'AN20191201142608', '3562460071T ', '2019-12-01'), (495, 'AN20191201142608', '5023100151T ', '2019-12-01'), (496, 'AN20191201142608', '5932910511T ', '2019-12-01'), (497, 'AN20191201142608', '6242230031T ', '2019-12-01'), (498, 'AN20191201142608', '7832800101T ', '2019-12-01'), (499, 'AN20191201142608', '7862220011T ', '2019-12-01'), (500, 'AN20191201142744', '0102350171T ', '2019-12-01'); -- -------------------------------------------------------- -- -- Struktur dari tabel `transaksi` -- CREATE TABLE `transaksi` ( `idTransaksi` int(11) NOT NULL, `noInvoice` varchar(255) NOT NULL, `tanggal` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data untuk tabel `transaksi` -- INSERT INTO `transaksi` (`idTransaksi`, `noInvoice`, `tanggal`) VALUES (1, 'AN20191201143726', '2019-12-01'), (2, 'AN20191201144158', '2019-12-01'), (3, 'AN20191201144434', '2019-12-01'), (4, 'AN20191201144832', '2019-12-01'), (5, 'AN20191201144911', '2019-12-01'), (6, 'AN20191201150533', '2019-12-01'), (7, 'AN20191201151647', '2019-12-01'), (8, 'AN20191201152033', '2019-12-01'), (9, 'AN20191201152106', '2019-12-01'), (10, 'AN20191201152540', '2019-12-01'), (11, 'AN20191201152928', '2019-12-01'), (12, 'AN20191201153157', '2019-12-01'), (13, 'AN20191201153344', '2019-12-01'), (14, 'AN20191201153441', '2019-12-01'), (15, 'AN20191201153702', '2019-12-01'), (16, 'AN20191201154035', '2019-12-01'), (17, 'AN20191201154154', '2019-12-01'), (18, 'AN20191201154356', '2019-12-01'), (19, 'AN20191201155648', '2019-12-01'), (20, 'AN20191201160025', '2019-12-01'), (21, 'AN20191201160435', '2019-12-01'), (22, 'AN20191201160515', '2019-12-01'), (23, 'AN20191201160746', '2019-12-01'), (24, 'AN20191201160913', '2019-12-01'), (25, 'AN20191201160950', '2019-12-01'), (26, 'AN20191201161650', '2019-12-01'), (27, 'AN20191201161918', '2019-12-01'), (28, 'AN20191201161959', '2019-12-01'), (29, 'AN20191201162307', '2019-12-01'), (30, 'AN20191201162440', '2019-12-01'), (31, 'AN20191201162615', '2019-12-01'), (32, 'AN20191201162736', '2019-12-01'), (33, 'AN20191201162942', '2019-12-01'), (34, 'AN20191201163346', '2019-12-01'), (35, 'AN20191201163604', '2019-12-01'), (36, 'AN20191201135543', '2019-12-01'), (37, 'AN20191201135748', '2019-12-01'), (38, 'AN20191201135834', '2019-12-01'), (39, 'AN20191201140024', '2019-12-01'), (40, 'AN20191201140609', '2019-12-01'), (41, 'AN20191201140850', '2019-12-01'), (42, 'AN20191201140929', '2019-12-01'), (43, 'AN20191201141546', '2019-12-01'), (44, 'AN20191201142108', '2019-12-01'), (45, 'AN20191201142413', '2019-12-01'), (46, 'AN20191201142608', '2019-12-01'), (47, 'AN20191201142744', '2019-12-01'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`idAdmin`); -- -- Indexes for table `barang` -- ALTER TABLE `barang` ADD PRIMARY KEY (`idBarang`); -- -- Indexes for table `detailtransaksi` -- ALTER TABLE `detailtransaksi` ADD PRIMARY KEY (`idDetailTransaksi`); -- -- Indexes for table `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`idTransaksi`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `idAdmin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `barang` -- ALTER TABLE `barang` MODIFY `idBarang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=466; -- -- AUTO_INCREMENT for table `detailtransaksi` -- ALTER TABLE `detailtransaksi` MODIFY `idDetailTransaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=501; -- -- AUTO_INCREMENT for table `transaksi` -- ALTER TABLE `transaksi` MODIFY `idTransaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;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 */;
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create Date: 12/5/2018 -- Description: sp_who azure alternative -- ============================================= CREATE OR ALTER PROCEDURE sp_mon AS BEGIN SET NOCOUNT ON DECLARE @LocalServerName NVARCHAR(100) = CAST(SERVERPROPERTY('SERVERNAME') AS NVARCHAR) DECLARE @LocalAzureUrl NVARCHAR(100) = @LocalServerName + N'.database.windows.net'; DECLARE @poolName NVARCHAR(500); DECLARE @query NVARCHAR(MAX); DECLARE @CredName NVARCHAR(100) = 'PoolCred'; SELECT @CredName = CredentialName FROM ImportConfig; IF @CredName IS NULL BEGIN PRINT 'CREDENTIAL NAME NOT SET IN CONFIG. ABORTING...' GOTO AbortEnd; END IF NOT EXISTS(SELECT 1 FROM sys.external_data_sources WHERE name = 'MasterDS') BEGIN PRINT 'Creating Datasource MasterDB...'; SET @query = N'CREATE EXTERNAL DATA SOURCE [MasterDS] WITH (TYPE = RDBMS, LOCATION = N'''+ @LocalAzureUrl +''', CREDENTIAL = ['+ @CredName +'], DATABASE_NAME = N''master'')'; PRINT @query; EXEC sp_executesql @query PRINT 'Created' END IF OBJECT_ID('master_dbs') IS NULL BEGIN CREATE EXTERNAL TABLE master_dbs (name SYSNAME, database_id INT, state TINYINT) WITH (DATA_SOURCE = [MasterDS], SCHEMA_NAME = 'sys', OBJECT_NAME = 'databases') END SELECT d.name ,SPID = s.session_id ,Program = s.[program_name] ,StartTime = DATEADD(HOUR, -5, r.start_time) ,ElapsedTime = CONVERT(TIME, DATEADD(SECOND, DATEDIFF(SECOND, r.start_time, GETDATE()), 0), 114) ,s.last_request_end_time ,(r.wait_time / 1000 / 60) as WaitMins ,(r.total_elapsed_time / 1000 / 60) as ElapsedMins ,CalculatedStartTime = DATEADD(MILLISECOND, -r.total_elapsed_time, GETDATE()) ,command ,r.status as Request_Status ,s.status as Session_Status ,r.last_wait_type ,s.host_name ,s.login_name ,s.row_count ,s.cpu_time ,s.logical_reads ,s.writes ,s.open_transaction_count FROM sys.dm_exec_sessions s JOIN sys.dm_exec_requests r ON s.session_id = r.session_id JOIN master_dbs d ON s.database_id = d.database_id WHERE [program_name] IS NOT NULL AND [program_name] NOT IN ('TdService') AND r.[status] <> 'background' and last_wait_type NOT IN ('MISCELLANEOUS') ORDER BY r.wait_time DESC AbortEnd: END GO
create or replace PROCEDURE generate_clients (number_of_clients NUMBER) AS first_name VARCHAR2(4000); last_name VARCHAR2(4000); phone_number NUMBER(9); email_address VARCHAR2(4000); sex NUMBER(3); first_char VARCHAR2(2); condition NUMBER(6); login VARCHAR2(4000); password_hash VARCHAR2(4000); BEGIN FOR counter IN 1..number_of_clients LOOP sex := dbms_random.value(0,999.49); IF sex>=500 THEN SELECT IMIE into first_name FROM ( SELECT IMIE FROM GENERATOR_MEN_NAMES ORDER BY dbms_random.value ) WHERE rownum = 1; SELECT NAZWISKO into last_name FROM ( SELECT NAZWISKO FROM GENERATOR_MEN_LASTS ORDER BY dbms_random.value ) WHERE rownum = 1; ELSE SELECT IMIE into first_name FROM ( SELECT IMIE FROM GENERATOR_WOMEN_NAMES ORDER BY dbms_random.value ) WHERE rownum = 1; SELECT NAZWISKO into last_name FROM ( SELECT NAZWISKO FROM GENERATOR_WOMEN_LASTS ORDER BY dbms_random.value ) WHERE rownum = 1; END IF; phone_number := dbms_random.value(500000000,889999999.49); first_char := SUBSTR(first_name, 1, 1); SELECT COUNT(*) INTO condition FROM KLIENCI WHERE SUBSTR(first_name, 1, 1) = SUBSTR(imie, 1, 1) AND last_name = nazwisko; IF condition=0 THEN email_address := first_char || '.' || last_name || '@GMAIL.COM'; ELSE condition := condition + 1; email_address := first_char || '.' || last_name || condition || '@GMAIL.COM'; END IF; INSERT INTO KLIENCI VALUES (counter, first_name, last_name, phone_number, email_address); SELECT LOGIN into login FROM (SELECT LOGIN, ROWNUM AS RN FROM GENERATOR_LOGINS_CLIENTS) WHERE RN = counter; SELECT PASSWORD_HASH into password_hash FROM (SELECT PASSWORD_HASH, ROWNUM AS RN FROM GENERATOR_PASSWORD_HASHES_C) WHERE RN = counter; INSERT INTO DANE_DO_LOGOWANIA_KLIENCI VALUES (counter, login, password_hash, counter); END LOOP; END;
<filename>db/db/4init_param/TB/TB_VOUCHER_BRANCH.sql TRUNCATE TABLE tb_voucher_branch; COMMIT;
-- Note: This part comes from plpgunit source: -- <https://github.com/mixerp/plpgunit/blob/master/install/1.install-unit-test.sql> /******************************************************************************** The PostgreSQL License Copyright (c) 2014, <NAME>, Mix Open Foundation (http://mixof.org). Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. IN NO EVENT SHALL MIX OPEN FOUNDATION BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF MIX OPEN FOUNDATION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. MIX OPEN FOUNDATION SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND MIX OPEN FOUNDATION HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. ***********************************************************************************/ DROP SCHEMA IF EXISTS assert CASCADE; DROP SCHEMA IF EXISTS unit_tests CASCADE; DROP DOMAIN IF EXISTS public.test_result CASCADE; CREATE SCHEMA IF NOT EXISTS assert; CREATE SCHEMA IF NOT EXISTS unit_tests; DO $$ BEGIN IF NOT EXISTS ( SELECT * FROM pg_type WHERE typname ='test_result' AND typnamespace = ( SELECT oid FROM pg_namespace WHERE nspname ='public' ) ) THEN CREATE DOMAIN public.test_result AS text; END IF; END $$ LANGUAGE plpgsql; DROP TABLE IF EXISTS unit_tests.test_details CASCADE; DROP TABLE IF EXISTS unit_tests.tests CASCADE; DROP TABLE IF EXISTS unit_tests.dependencies CASCADE; CREATE TABLE unit_tests.tests ( test_id SERIAL NOT NULL PRIMARY KEY, started_on TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT(CURRENT_TIMESTAMP AT TIME ZONE 'UTC'), completed_on TIMESTAMP WITHOUT TIME ZONE NULL, total_tests integer NULL DEFAULT(0), failed_tests integer NULL DEFAULT(0), skipped_tests integer NULL DEFAULT(0) ); CREATE INDEX unit_tests_tests_started_on_inx ON unit_tests.tests(started_on); CREATE INDEX unit_tests_tests_completed_on_inx ON unit_tests.tests(completed_on); CREATE INDEX unit_tests_tests_failed_tests_inx ON unit_tests.tests(failed_tests); CREATE TABLE unit_tests.test_details ( id BIGSERIAL NOT NULL PRIMARY KEY, test_id integer NOT NULL REFERENCES unit_tests.tests(test_id), function_name text NOT NULL, message text NOT NULL, ts TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT(CURRENT_TIMESTAMP AT TIME ZONE 'UTC'), status boolean NOT NULL, executed boolean NOT NULL ); CREATE INDEX unit_tests_test_details_test_id_inx ON unit_tests.test_details(test_id); CREATE INDEX unit_tests_test_details_status_inx ON unit_tests.test_details(status); CREATE TABLE unit_tests.dependencies ( dependency_id BIGSERIAL NOT NULL PRIMARY KEY, dependent_ns text, dependent_function_name text NOT NULL, depends_on_ns text, depends_on_function_name text NOT NULL ); CREATE INDEX unit_tests_dependencies_dependency_id_inx ON unit_tests.dependencies(dependency_id); DROP FUNCTION IF EXISTS assert.fail(message text); CREATE FUNCTION assert.fail(message text) RETURNS text AS $$ BEGIN IF $1 IS NULL OR trim($1) = '' THEN message := 'NO REASON SPECIFIED'; END IF; RAISE WARNING 'ASSERT FAILED : %', message; RETURN message; END $$ LANGUAGE plpgsql IMMUTABLE STRICT; DROP FUNCTION IF EXISTS assert.pass(message text); CREATE FUNCTION assert.pass(message text) RETURNS text AS $$ BEGIN RAISE NOTICE 'ASSERT PASSED : %', message; RETURN ''; END $$ LANGUAGE plpgsql IMMUTABLE STRICT; DROP FUNCTION IF EXISTS assert.ok(message text); CREATE FUNCTION assert.ok(message text) RETURNS text AS $$ BEGIN RAISE NOTICE 'OK : %', message; RETURN ''; END $$ LANGUAGE plpgsql IMMUTABLE STRICT; DROP FUNCTION IF EXISTS assert.is_equal(IN have anyelement, IN want anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_equal(IN have anyelement, IN want anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 IS NOT DISTINCT FROM $2) THEN message := 'Assert is equal.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_EQUAL FAILED.\n\nHave -> ' || COALESCE($1::text, 'NULL') || E'\nWant -> ' || COALESCE($2::text, 'NULL') || E'\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.are_equal(VARIADIC anyarray, OUT message text, OUT result boolean); CREATE FUNCTION assert.are_equal(VARIADIC anyarray, OUT message text, OUT result boolean) AS $$ DECLARE count integer=0; DECLARE total_items bigint; DECLARE total_rows bigint; BEGIN result := false; WITH counter AS ( SELECT * FROM explode_array($1) AS items ) SELECT COUNT(items), COUNT(*) INTO total_items, total_rows FROM counter; IF(total_items = 0 OR total_items = total_rows) THEN result := true; END IF; IF(result AND total_items > 0) THEN SELECT COUNT(DISTINCT $1[s.i]) INTO count FROM generate_series(array_lower($1,1), array_upper($1,1)) AS s(i) ORDER BY 1; IF count <> 1 THEN result := FALSE; END IF; END IF; IF(NOT result) THEN message := 'ASSERT ARE_EQUAL FAILED.'; PERFORM assert.fail(message); RETURN; END IF; message := 'Asserts are equal.'; PERFORM assert.ok(message); result := true; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_not_equal(IN already_have anyelement, IN dont_want anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_not_equal(IN already_have anyelement, IN dont_want anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 IS DISTINCT FROM $2) THEN message := 'Assert is not equal.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_NOT_EQUAL FAILED.\n\nAlready Have -> ' || COALESCE($1::text, 'NULL') || E'\nDon''t Want -> ' || COALESCE($2::text, 'NULL') || E'\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.are_not_equal(VARIADIC anyarray, OUT message text, OUT result boolean); CREATE FUNCTION assert.are_not_equal(VARIADIC anyarray, OUT message text, OUT result boolean) AS $$ DECLARE count integer=0; DECLARE count_nulls bigint; BEGIN SELECT COUNT(*) INTO count_nulls FROM explode_array($1) AS items WHERE items IS NULL; SELECT COUNT(DISTINCT $1[s.i]) INTO count FROM generate_series(array_lower($1,1), array_upper($1,1)) AS s(i) ORDER BY 1; IF(count + count_nulls <> array_upper($1,1) OR count_nulls > 1) THEN message := 'ASSERT ARE_NOT_EQUAL FAILED.'; PERFORM assert.fail(message); RESULT := FALSE; RETURN; END IF; message := 'Asserts are not equal.'; PERFORM assert.ok(message); result := true; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_null(IN anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_null(IN anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 IS NULL) THEN message := 'Assert is NULL.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_NULL FAILED. NULL value was expected.\n\n\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_not_null(IN anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_not_null(IN anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 IS NOT NULL) THEN message := 'Assert is not NULL.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_NOT_NULL FAILED. The value is NULL.\n\n\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_true(IN boolean, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_true(IN boolean, OUT message text, OUT result boolean) AS $$ BEGIN IF($1) THEN message := 'Assert is true.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_TRUE FAILED. A true condition was expected.\n\n\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_false(IN boolean, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_false(IN boolean, OUT message text, OUT result boolean) AS $$ BEGIN IF(NOT $1) THEN message := 'Assert is false.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_FALSE FAILED. A false condition was expected.\n\n\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_greater_than(IN x anyelement, IN y anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_greater_than(IN x anyelement, IN y anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 > $2) THEN message := 'Assert greater than condition is satisfied.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_GREATER_THAN FAILED.\n\n X : -> ' || COALESCE($1::text, 'NULL') || E'\n is not greater than Y: -> ' || COALESCE($2::text, 'NULL') || E'\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.is_less_than(IN x anyelement, IN y anyelement, OUT message text, OUT result boolean); CREATE FUNCTION assert.is_less_than(IN x anyelement, IN y anyelement, OUT message text, OUT result boolean) AS $$ BEGIN IF($1 < $2) THEN message := 'Assert less than condition is satisfied.'; PERFORM assert.ok(message); result := true; RETURN; END IF; message := E'ASSERT IS_LESS_THAN FAILED.\n\n X : -> ' || COALESCE($1::text, 'NULL') || E'\n is not less than Y: -> ' || COALESCE($2::text, 'NULL') || E'\n'; PERFORM assert.fail(message); result := false; RETURN; END $$ LANGUAGE plpgsql IMMUTABLE; DROP FUNCTION IF EXISTS assert.function_exists(function_name text, OUT message text, OUT result boolean); CREATE FUNCTION assert.function_exists(function_name text, OUT message text, OUT result boolean) AS $$ BEGIN IF NOT EXISTS ( SELECT 1 FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_proc p ON pronamespace = n.oid WHERE replace(nspname || '.' || proname || '(' || oidvectortypes(proargtypes) || ')', ' ' , '')::text=$1 ) THEN message := format('The function %s does not exist.', $1); PERFORM assert.fail(message); result := false; RETURN; END IF; message := format('Ok. The function %s exists.', $1); PERFORM assert.ok(message); result := true; RETURN; END $$ LANGUAGE plpgsql; DROP FUNCTION IF EXISTS assert.if_functions_compile(VARIADIC _schema_name text[], OUT message text, OUT result boolean); CREATE OR REPLACE FUNCTION assert.if_functions_compile ( VARIADIC _schema_name text[], OUT message text, OUT result boolean ) AS $$ DECLARE all_parameters text; DECLARE current_function RECORD; DECLARE current_function_name text; DECLARE current_type text; DECLARE current_type_schema text; DECLARE current_parameter text; DECLARE functions_count smallint := 0; DECLARE current_parameters_count int; DECLARE i int; DECLARE command_text text; DECLARE failed_functions text; BEGIN FOR current_function IN SELECT proname, proargtypes, nspname FROM pg_proc INNER JOIN pg_namespace ON pg_proc.pronamespace = pg_namespace.oid WHERE pronamespace IN ( SELECT oid FROM pg_namespace WHERE nspname = ANY($1) AND nspname NOT IN ( 'assert', 'unit_tests', 'information_schema' ) AND proname NOT IN('if_functions_compile') ) LOOP current_parameters_count := array_upper(current_function.proargtypes, 1) + 1; i := 0; all_parameters := ''; LOOP IF i < current_parameters_count THEN IF i > 0 THEN all_parameters := all_parameters || ', '; END IF; SELECT nspname, typname INTO current_type_schema, current_type FROM pg_type INNER JOIN pg_namespace ON pg_type.typnamespace = pg_namespace.oid WHERE pg_type.oid = current_function.proargtypes[i]; IF(current_type IN('int4', 'int8', 'numeric', 'integer_strict', 'money_strict','decimal_strict', 'integer_strict2', 'money_strict2','decimal_strict2', 'money','decimal', 'numeric', 'bigint')) THEN current_parameter := '1::' || current_type_schema || '.' || current_type; ELSIF(substring(current_type, 1, 1) = '_') THEN current_parameter := 'NULL::' || current_type_schema || '.' || substring(current_type, 2, length(current_type)) || '[]'; ELSIF(current_type in ('date')) THEN current_parameter := '''1-1-2000''::' || current_type; ELSIF(current_type = 'bool') THEN current_parameter := 'false'; ELSE current_parameter := '''''::' || quote_ident(current_type_schema) || '.' || quote_ident(current_type); END IF; all_parameters = all_parameters || current_parameter; i := i + 1; ELSE EXIT; END IF; END LOOP; BEGIN current_function_name := quote_ident(current_function.nspname) || '.' || quote_ident(current_function.proname); command_text := 'SELECT * FROM ' || current_function_name || '(' || all_parameters || ');'; EXECUTE command_text; functions_count := functions_count + 1; EXCEPTION WHEN OTHERS THEN IF(failed_functions IS NULL) THEN failed_functions := ''; END IF; IF(SQLSTATE IN('42702', '42704')) THEN failed_functions := failed_functions || E'\n' || command_text || E'\n' || SQLERRM || E'\n'; END IF; END; END LOOP; IF(failed_functions != '') THEN message := E'The test if_functions_compile failed. The following functions failed to compile : \n\n' || failed_functions; result := false; PERFORM assert.fail(message); RETURN; END IF; END; $$ LANGUAGE plpgsql VOLATILE; DROP FUNCTION IF EXISTS assert.if_views_compile(VARIADIC _schema_name text[], OUT message text, OUT result boolean); CREATE FUNCTION assert.if_views_compile ( VARIADIC _schema_name text[], OUT message text, OUT result boolean ) AS $$ DECLARE message test_result; DECLARE current_view RECORD; DECLARE current_view_name text; DECLARE command_text text; DECLARE failed_views text; BEGIN FOR current_view IN SELECT table_name, table_schema FROM information_schema.views WHERE table_schema = ANY($1) LOOP BEGIN current_view_name := quote_ident(current_view.table_schema) || '.' || quote_ident(current_view.table_name); command_text := 'SELECT * FROM ' || current_view_name || ' LIMIT 1;'; RAISE NOTICE '%', command_text; EXECUTE command_text; EXCEPTION WHEN OTHERS THEN IF(failed_views IS NULL) THEN failed_views := ''; END IF; failed_views := failed_views || E'\n' || command_text || E'\n' || SQLERRM || E'\n'; END; END LOOP; IF(failed_views != '') THEN message := E'The test if_views_compile failed. The following views failed to compile : \n\n' || failed_views; result := false; PERFORM assert.fail(message); RETURN; END IF; RETURN; END; $$ LANGUAGE plpgsql VOLATILE; DROP FUNCTION IF EXISTS unit_tests.add_dependency(p_dependent text, p_depends_on text); CREATE FUNCTION unit_tests.add_dependency(p_dependent text, p_depends_on text) RETURNS void AS $$ DECLARE dependent_ns text; DECLARE dependent_name text; DECLARE depends_on_ns text; DECLARE depends_on_name text; DECLARE arr text[]; BEGIN IF p_dependent LIKE '%.%' THEN SELECT regexp_split_to_array(p_dependent, E'\\.') INTO arr; SELECT arr[1] INTO dependent_ns; SELECT arr[2] INTO dependent_name; ELSE SELECT NULL INTO dependent_ns; SELECT p_dependent INTO dependent_name; END IF; IF p_depends_on LIKE '%.%' THEN SELECT regexp_split_to_array(p_depends_on, E'\\.') INTO arr; SELECT arr[1] INTO depends_on_ns; SELECT arr[2] INTO depends_on_name; ELSE SELECT NULL INTO depends_on_ns; SELECT p_depends_on INTO depends_on_name; END IF; INSERT INTO unit_tests.dependencies (dependent_ns, dependent_function_name, depends_on_ns, depends_on_function_name) VALUES (dependent_ns, dependent_name, depends_on_ns, depends_on_name); END $$ LANGUAGE plpgsql STRICT; DROP FUNCTION IF EXISTS unit_tests.begin(verbosity integer, format text); CREATE FUNCTION unit_tests.begin(verbosity integer DEFAULT 9, format text DEFAULT '') RETURNS TABLE(message text, result character(1)) AS $$ DECLARE this record; DECLARE _function_name text; DECLARE _sql text; DECLARE _failed_dependencies text[]; DECLARE _num_of_test_functions integer; DECLARE _should_skip boolean; DECLARE _message text; DECLARE _error text; DECLARE _context text; DECLARE _result character(1); DECLARE _test_id integer; DECLARE _status boolean; DECLARE _total_tests integer = 0; DECLARE _failed_tests integer = 0; DECLARE _skipped_tests integer = 0; DECLARE _list_of_failed_tests text; DECLARE _list_of_skipped_tests text; DECLARE _started_from TIMESTAMP WITHOUT TIME ZONE; DECLARE _completed_on TIMESTAMP WITHOUT TIME ZONE; DECLARE _delta integer; DECLARE _ret_val text = ''; DECLARE _verbosity text[] = ARRAY['debug5', 'debug4', 'debug3', 'debug2', 'debug1', 'log', 'notice', 'warning', 'error', 'fatal', 'panic']; BEGIN _started_from := clock_timestamp() AT TIME ZONE 'UTC'; IF(format='teamcity') THEN RAISE INFO '##teamcity[testSuiteStarted name=''Plpgunit'' message=''Test started from : %'']', _started_from; ELSE RAISE INFO 'Test started from : %', _started_from; END IF; IF($1 > 11) THEN $1 := 9; END IF; EXECUTE 'SET CLIENT_MIN_MESSAGES TO ' || _verbosity[$1]; RAISE WARNING 'CLIENT_MIN_MESSAGES set to : %' , _verbosity[$1]; SELECT nextval('unit_tests.tests_test_id_seq') INTO _test_id; INSERT INTO unit_tests.tests(test_id) SELECT _test_id; DROP TABLE IF EXISTS temp_test_functions; CREATE TEMP TABLE temp_test_functions AS SELECT nspname AS ns_name, proname AS function_name, p.oid as oid FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_proc p ON pronamespace = n.oid WHERE prorettype='test_result'::regtype::oid; SELECT count(*) INTO _num_of_test_functions FROM temp_test_functions; DROP TABLE IF EXISTS temp_dependency_levels; CREATE TEMP TABLE temp_dependency_levels AS WITH RECURSIVE dependency_levels(ns_name, function_name, oid, level) AS ( -- select functions without any dependencies SELECT ns_name, function_name, tf.oid, 0 as level FROM temp_test_functions tf LEFT OUTER JOIN unit_tests.dependencies d ON tf.ns_name = d.dependent_ns AND tf.function_name = d.dependent_function_name WHERE d.dependency_id IS NULL UNION -- add functions which depend on the previous level functions SELECT d.dependent_ns, d.dependent_function_name, tf.oid, level + 1 FROM dependency_levels dl JOIN unit_tests.dependencies d ON dl.ns_name = d.depends_on_ns AND dl.function_name LIKE d.depends_on_function_name JOIN temp_test_functions tf ON d.dependent_ns = tf.ns_name AND d.dependent_function_name = tf.function_name WHERE level < _num_of_test_functions -- don't follow circles for too long ) SELECT ns_name, function_name, oid, max(level) as max_level FROM dependency_levels GROUP BY ns_name, function_name, oid; IF (SELECT count(*) < _num_of_test_functions FROM temp_dependency_levels) THEN SELECT array_to_string(array_agg(tf.ns_name || '.' || tf.function_name || '()'), ', ') INTO _error FROM temp_test_functions tf LEFT OUTER JOIN temp_dependency_levels dl ON tf.oid = dl.oid WHERE dl.oid IS NULL; RAISE EXCEPTION 'Cyclic dependencies detected. Check the following test functions: %', _error; END IF; IF exists(SELECT * FROM temp_dependency_levels WHERE max_level = _num_of_test_functions) THEN SELECT array_to_string(array_agg(ns_name || '.' || function_name || '()'), ', ') INTO _error FROM temp_dependency_levels WHERE max_level = _num_of_test_functions; RAISE EXCEPTION 'Cyclic dependencies detected. Check the dependency graph including following test functions: %', _error; END IF; FOR this IN SELECT ns_name, function_name, max_level FROM temp_dependency_levels ORDER BY max_level, oid LOOP BEGIN _status := false; _total_tests := _total_tests + 1; _function_name = this.ns_name|| '.' || this.function_name || '()'; SELECT array_agg(td.function_name) INTO _failed_dependencies FROM unit_tests.dependencies d JOIN unit_tests.test_details td on td.function_name LIKE d.depends_on_ns || '.' || d.depends_on_function_name || '()' WHERE d.dependent_ns = this.ns_name AND d.dependent_function_name = this.function_name AND test_id = _test_id AND status = false; SELECT _failed_dependencies IS NOT NULL INTO _should_skip; IF NOT _should_skip THEN _sql := 'SELECT ' || _function_name || ';'; RAISE NOTICE 'RUNNING TEST : %.', _function_name; IF(format='teamcity') THEN RAISE INFO '##teamcity[testStarted name=''%'' message=''%'']', _function_name, _started_from; ELSE RAISE INFO 'Running test % : %', _function_name, _started_from; END IF; EXECUTE _sql INTO _message; IF _message = '' THEN _status := true; IF(format='teamcity') THEN RAISE INFO '##teamcity[testFinished name=''%'' message=''%'']', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; ELSE RAISE INFO 'Passed % : %', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; END IF; ELSE IF(format='teamcity') THEN RAISE INFO '##teamcity[testFailed name=''%'' message=''%'']', _function_name, _message; RAISE INFO '##teamcity[testFinished name=''%'' message=''%'']', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; ELSE RAISE INFO 'Test failed % : %', _function_name, _message; END IF; END IF; ELSE -- skipped test _status := true; _message = 'Failed dependencies: ' || array_to_string(_failed_dependencies, ','); IF(format='teamcity') THEN RAISE INFO '##teamcity[testSkipped name=''%''] : %', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; ELSE RAISE INFO 'Skipped % : %', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; END IF; END IF; INSERT INTO unit_tests.test_details(test_id, function_name, message, status, executed, ts) SELECT _test_id, _function_name, _message, _status, NOT _should_skip, clock_timestamp(); IF NOT _status THEN _failed_tests := _failed_tests + 1; RAISE WARNING 'TEST % FAILED.', _function_name; RAISE WARNING 'REASON: %', _message; ELSIF NOT _should_skip THEN RAISE NOTICE 'TEST % COMPLETED WITHOUT ERRORS.', _function_name; ELSE _skipped_tests := _skipped_tests + 1; RAISE WARNING 'TEST % SKIPPED, BECAUSE A DEPENDENCY FAILED.', _function_name; END IF; EXCEPTION WHEN OTHERS THEN GET STACKED DIAGNOSTICS _context = PG_EXCEPTION_CONTEXT; _message := 'ERR: [' || SQLSTATE || ']: ' || SQLERRM || E'\n ' || split_part(_context, E'\n', 1); INSERT INTO unit_tests.test_details(test_id, function_name, message, status, executed) SELECT _test_id, _function_name, _message, false, true; _failed_tests := _failed_tests + 1; RAISE WARNING 'TEST % FAILED.', _function_name; RAISE WARNING 'REASON: %', _message; IF(format='teamcity') THEN RAISE INFO '##teamcity[testFailed name=''%'' message=''%'']', _function_name, _message; RAISE INFO '##teamcity[testFinished name=''%'' message=''%'']', _function_name, clock_timestamp() AT TIME ZONE 'UTC'; ELSE RAISE INFO 'Test failed % : %', _function_name, _message; END IF; END; END LOOP; _completed_on := clock_timestamp() AT TIME ZONE 'UTC'; _delta := extract(millisecond from _completed_on - _started_from)::integer; UPDATE unit_tests.tests SET total_tests = _total_tests, failed_tests = _failed_tests, skipped_tests = _skipped_tests, completed_on = _completed_on WHERE test_id = _test_id; IF format='junit' THEN SELECT '<?xml version="1.0" encoding="UTF-8"?>'|| xmlelement ( name testsuites, xmlelement ( name testsuite, xmlattributes ( 'plpgunit' AS name, t.total_tests AS tests, t.failed_tests AS failures, 0 AS errors, EXTRACT ( EPOCH FROM t.completed_on - t.started_on ) AS time ), xmlagg ( xmlelement ( name testcase, xmlattributes ( td.function_name AS name, EXTRACT ( EPOCH FROM td.ts - t.started_on ) AS time ), CASE WHEN td.status=false THEN xmlelement ( name failure, td.message ) END ) ) ) ) INTO _ret_val FROM unit_tests.test_details td, unit_tests.tests t WHERE t.test_id=_test_id AND td.test_id=t.test_id GROUP BY t.test_id; ELSE WITH failed_tests AS ( SELECT row_number() OVER (ORDER BY id) AS id, unit_tests.test_details.function_name, unit_tests.test_details.message FROM unit_tests.test_details WHERE test_id = _test_id AND status= false ) SELECT array_to_string(array_agg(f.id::text || '. ' || f.function_name || ' --> ' || f.message), E'\n') INTO _list_of_failed_tests FROM failed_tests f; WITH skipped_tests AS ( SELECT row_number() OVER (ORDER BY id) AS id, unit_tests.test_details.function_name, unit_tests.test_details.message FROM unit_tests.test_details WHERE test_id = _test_id AND executed = false ) SELECT array_to_string(array_agg(s.id::text || '. ' || s.function_name || ' --> ' || s.message), E'\n') INTO _list_of_skipped_tests FROM skipped_tests s; _ret_val := _ret_val || 'Test completed on : ' || _completed_on::text || E' UTC. \nTotal test runtime: ' || _delta::text || E' ms.\n'; _ret_val := _ret_val || E'\nTotal tests run : ' || COALESCE(_total_tests, '0')::text; _ret_val := _ret_val || E'.\nPassed tests : ' || (COALESCE(_total_tests, '0') - COALESCE(_failed_tests, '0') - COALESCE(_skipped_tests, '0'))::text; _ret_val := _ret_val || E'.\nFailed tests : ' || COALESCE(_failed_tests, '0')::text; _ret_val := _ret_val || E'.\nSkipped tests : ' || COALESCE(_skipped_tests, '0')::text; _ret_val := _ret_val || E'.\n\nList of failed tests:\n' || '----------------------'; _ret_val := _ret_val || E'\n' || COALESCE(_list_of_failed_tests, '<NULL>')::text; _ret_val := _ret_val || E'.\n\nList of skipped tests:\n' || '----------------------'; _ret_val := _ret_val || E'\n' || COALESCE(_list_of_skipped_tests, '<NULL>')::text; _ret_val := _ret_val || E'\n' || E'End of plpgunit test.\n\n'; END IF; IF _failed_tests > 0 THEN _result := 'N'; IF(format='teamcity') THEN RAISE INFO '##teamcity[testStarted name=''Result'']'; RAISE INFO '##teamcity[testFailed name=''Result'' message=''%'']', REPLACE(_ret_val, E'\n', ' |n'); RAISE INFO '##teamcity[testFinished name=''Result'']'; RAISE INFO '##teamcity[testSuiteFinished name=''Plpgunit'' message=''%'']', REPLACE(_ret_val, E'\n', '|n'); ELSE RAISE INFO '%', _ret_val; END IF; ELSE _result := 'Y'; IF(format='teamcity') THEN RAISE INFO '##teamcity[testSuiteFinished name=''Plpgunit'' message=''%'']', REPLACE(_ret_val, E'\n', '|n'); ELSE RAISE INFO '%', _ret_val; END IF; END IF; SET CLIENT_MIN_MESSAGES TO notice; RETURN QUERY SELECT _ret_val, _result; END $$ LANGUAGE plpgsql; DROP FUNCTION IF EXISTS unit_tests.begin_junit(verbosity integer); CREATE FUNCTION unit_tests.begin_junit(verbosity integer DEFAULT 9) RETURNS TABLE(message text, result character(1)) AS $$ BEGIN RETURN QUERY SELECT * FROM unit_tests.begin($1, 'junit'); END $$ LANGUAGE plpgsql; -- version of begin that will raise if any tests have failed -- this will cause psql to return nonzeo exit code so the build/script can be halted CREATE OR REPLACE FUNCTION unit_tests.begin_psql(verbosity integer default 9, format text default '') RETURNS VOID AS $$ DECLARE _msg text; _res character(1); BEGIN SELECT * INTO _msg, _res FROM unit_tests.begin(verbosity, format) ; IF(_res != 'Y') THEN RAISE EXCEPTION 'Tests failed [%]', _msg; END IF; END $$ LANGUAGE plpgsql;
<gh_stars>100-1000 create table Companies ( Id int primary key , Name string(128) null ); alter table Users add column EmployerId int references Companies(Id);
<reponame>overachiever-productions/s4<gh_stars>1-10 /* vNEXT: implement @PrintOnly - not that hard/cumbersome. */ USE [admindb]; GO IF OBJECT_ID('dbo.configure_instance','P') IS NOT NULL DROP PROC dbo.[configure_instance]; GO CREATE PROC dbo.[configure_instance] @MaxDOP int = NULL, @CostThresholdForParallelism int = NULL, @MaxServerMemoryGBs decimal(8,1) = NULL, @OptimizeForAdhocWorkloads bit = 1 AS SET NOCOUNT ON; -- {copyright} ----------------------------------------------------------------------------- -- Dependencies Validation: DECLARE @return int; EXEC @return = dbo.verify_advanced_capabilities; IF @return <> 0 RETURN @return; DECLARE @changesMade bit = 0; -- Enable the Dedicated Admin Connection: IF NOT EXISTS (SELECT NULL FROM sys.[configurations] WHERE [name] = N'remote admin connections' AND [value_in_use] = 1) BEGIN EXEC sp_configure 'remote admin connections', 1; SET @changesMade = 1; END; IF @MaxDOP IS NOT NULL BEGIN DECLARE @currentMaxDop int; SELECT @currentMaxDop = CAST([value_in_use] AS int) FROM sys.[configurations] WHERE [name] = N'max degree of parallelism'; IF @currentMaxDop <> @MaxDOP BEGIN -- vNEXT verify that the value is legit (i.e., > -1 (0 IS valid) and < total core count/etc.)... EXEC sp_configure 'max degree of parallelism', @MaxDOP; SET @changesMade = 1; END; END; IF @CostThresholdForParallelism IS NOT NULL BEGIN DECLARE @currentThreshold int; SELECT @currentThreshold = CAST([value_in_use] AS int) FROM sys.[configurations] WHERE [name] = N'cost threshold for parallelism'; IF @currentThreshold <> @CostThresholdForParallelism BEGIN EXEC sp_configure 'cost threshold for parallelism', @CostThresholdForParallelism; SET @changesMade = 1; END; END; IF @MaxServerMemoryGBs IS NOT NULL BEGIN DECLARE @maxServerMemAsInt int; DECLARE @currentMaxServerMem int; SET @maxServerMemAsInt = @MaxServerMemoryGBs * 1024; SELECT @currentMaxServerMem = CAST([value_in_use] AS int) FROM sys.[configurations] WHERE [name] LIKE N'max server memory%'; -- pad by 30MB ... i.e., 'close enough': IF ABS((@currentMaxServerMem - @maxServerMemAsInt)) > 30 BEGIN EXEC sp_configure 'max server memory', @maxServerMemAsInt; SET @changesMade = 1; END; END; DECLARE @currentOptimizeForAdhocValue int; SELECT @currentOptimizeForAdhocValue = CAST([value_in_use] AS int) FROM sys.[configurations] WHERE [name] LIKE N'optimize for ad hoc workloads'; IF @OptimizeForAdhocWorkloads = 1 BEGIN IF @currentOptimizeForAdhocValue = 0 BEGIN EXEC sp_configure 'optimize for ad hoc workloads', 1; SET @changesMade = 1; END; END; ELSE BEGIN IF @currentOptimizeForAdhocValue = 1 BEGIN EXEC sp_configure 'optimize for ad hoc workloads', 0; SET @changesMade = 1; END; END; IF @changesMade = 1 BEGIN RECONFIGURE; END; RETURN 0; GO
<reponame>dram/metasfresh -- 2020-03-04T09:50:41.837Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Ja',Updated=TO_TIMESTAMP('2020-03-04 11:50:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544963 ; -- 2020-03-04T09:50:45.669Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Ja',Updated=TO_TIMESTAMP('2020-03-04 11:50:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544963 ; -- 2020-03-04T09:50:48.732Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Yes',Updated=TO_TIMESTAMP('2020-03-04 11:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544963 ; -- 2020-03-04T09:50:51.437Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Ja',Updated=TO_TIMESTAMP('2020-03-04 11:50:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=544963 ; -- 2020-03-04T09:50:53.078Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-03-04 11:50:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544963 ; -- 2020-03-04T09:51:04.266Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message SET MsgText='Ja',Updated=TO_TIMESTAMP('2020-03-04 11:51:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544963 ; -- 2020-03-04T09:51:11.187Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message SET MsgText='Nein',Updated=TO_TIMESTAMP('2020-03-04 11:51:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544964 ; -- 2020-03-04T09:51:16.550Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Nein',Updated=TO_TIMESTAMP('2020-03-04 11:51:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Message_ID=544964 ; -- 2020-03-04T09:51:22.390Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Nein',Updated=TO_TIMESTAMP('2020-03-04 11:51:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND AD_Message_ID=544964 ; -- 2020-03-04T09:51:25.796Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='No',Updated=TO_TIMESTAMP('2020-03-04 11:51:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544964 ; -- 2020-03-04T09:51:31.228Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET MsgText='Nein',Updated=TO_TIMESTAMP('2020-03-04 11:51:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Message_ID=544964 ; -- 2020-03-04T09:51:34.015Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-03-04 11:51:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Message_ID=544964 ; --dropping old validationmessage column if it still exists (It is removed from ad_column in the other migration script with sys_gh3426...).Now we use ad_message_id column delete from ad_column where columnname ilike '%validationmessage%' and ad_table_id = 104; delete from ad_column where columnname ilike '%validationmessage%' and ad_table_id = 136; alter table ad_ref_list drop column if exists validationmessage; alter table ad_ref_list_trl drop column if exists validationmessage;
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/4.0/dml/KC_DML_31004_SPONSOR_FORM_TEMPLATES_02_16_00SD.sql<gh_stars>0 INSERT INTO SPONSOR_FORM_TEMPLATES (SPONSOR_FORM_TEMPLATE_ID,SPONSOR_FORM_ID,PAGE_NUMBER,PAGE_DESCRIPTION,FILE_NAME,CONTENT_TYPE,FORM_TEMPLATE,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR) VALUES (SEQ_SPONSOR_FORM_TEMPLATES.NEXTVAL,(SELECT SPONSOR_FORM_ID FROM SPONSOR_FORMS WHERE PACKAGE_NAME = 'NIH 398 package (Coeus 4.0)'),16,'Personal Data','Personal Data.xslt','text/xml',EMPTY_CLOB(),'admin',SYSDATE,SYS_GUID(),1) / DECLARE data CLOB; buffer VARCHAR2(30000); BEGIN SELECT FORM_TEMPLATE INTO data FROM SPONSOR_FORM_TEMPLATES WHERE SPONSOR_FORM_ID = (SELECT SPONSOR_FORM_ID FROM SPONSOR_FORMS WHERE PACKAGE_NAME = 'NIH 398 package (Coeus 4.0)') AND PAGE_NUMBER = 16 FOR UPDATE; buffer := '<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:n1="http://era.nih.gov/Projectmgmt/SBIR/CGAP/nihspecific.namespace" xmlns:n2="http://era.nih.gov/Projectmgmt/SBIR/CGAP/phs398.namespace" xmlns:n3="http://era.nih.gov/Projectmgmt/SBIR/CGAP/researchandrelated.namespace"> <xsl:variable name="fo:layout-master-set"> <fo:layout-master-set> <fo:simple-page-master master-name="even-page-master" margin-left="0.79in" margin-right="0.79in" page-height="11in" page-width="8.5in"> <fo:region-body margin-top="0.79in" margin-bottom="0.79in" /> <fo:region-before region-name="even-page-header" extent="0.79in" /> <fo:region-after extent="0.79in" /> </fo:simple-page-master> <fo:simple-page-master master-name="odd-page-master" margin-left="0.79in" margin-right="0.79in" page-height="11in" page-width="8.5in"> <fo:region-body margin-top="0.79in" margin-bottom="0.79in" /> <fo:region-before region-name="odd-page-header" extent="0.79in" /> <fo:region-after extent="0.79in" /> </fo:simple-page-master> <fo:page-sequence-master master-name="default-page"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="odd-page-master" odd-or-even="odd" /> <fo:conditional-page-master-reference master-reference="even-page-master" odd-or-even="even" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> </xsl:variable> <xsl:template match="/"> <fo:root> <xsl:copy-of select="$fo:layout-master-set" /> <fo:page-sequence master-reference="default-page" initial-page-number="1" format="1"> <fo:static-content flow-name="even-page-header"> <fo:block> <fo:table width="100%" space-before.optimum="1pt" space-after.optimum="2pt"> <fo:table-column column-width="150pt" /> <fo:table-column /> <fo:table-body> <fo:table-row> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" height="30pt" number-columns-spanned="2" display-align="center" text-align="start" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell font-size="inherited-property-value(&apos;font-size&apos;) - 2pt" padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" text-align="left" width="150pt" display-align="center" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> <fo:table-cell font-size="inherited-property-value(&apos;font-size&apos;) - 2pt" padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" text-align="right" display-align="center" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" number-columns-spanned="2" display-align="center" text-a'; DBMS_LOB.writeappend(data,LENGTH(buffer),buffer); END; / DECLARE data CLOB; buffer VARCHAR2(30000); BEGIN SELECT FORM_TEMPLATE INTO data FROM SPONSOR_FORM_TEMPLATES WHERE SPONSOR_FORM_ID = (SELECT SPONSOR_FORM_ID FROM SPONSOR_FORMS WHERE PACKAGE_NAME = 'NIH 398 package (Coeus 4.0)') AND PAGE_NUMBER = 16 FOR UPDATE; buffer := 'lign="start" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:static-content> <fo:static-content flow-name="odd-page-header"> <fo:block /> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> <fo:block> <fo:table width="100%" space-before.optimum="1pt" space-after.optimum="2pt"> <fo:table-column column-width="276pt" /> <fo:table-column /> <fo:table-column column-width="150pt" /> <fo:table-body> <fo:table-row> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" height="30pt" number-columns-spanned="3" display-align="center" text-align="start" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" text-align="left" width="276pt" display-align="center" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" text-align="left" display-align="center" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> <fo:table-cell padding-after="0pt" padding-before="0pt" padding-end="0pt" padding-start="0pt" text-align="right" width="150pt" display-align="center" border-style="solid" border-width="1pt" border-color="white"> <fo:block /> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block line-height="12pt"> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:inline font-size="12pt" font-weight="bold">PERSONAL DATA ON PRINCIPAL INVESTIGATOR/PROGRAM DIRECTOR</fo:inline> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:inline font-size="10pt">Coeus does not collect personal data such as social security numbers or information pertaining to race and ethnicity.</fo:inline> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:inline font-size="10pt">NIH provides a fillable PDF form for this information.</fo:inline> '; DBMS_LOB.writeappend(data,LENGTH(buffer),buffer); END; / DECLARE data CLOB; buffer VARCHAR2(30000); BEGIN SELECT FORM_TEMPLATE INTO data FROM SPONSOR_FORM_TEMPLATES WHERE SPONSOR_FORM_ID = (SELECT SPONSOR_FORM_ID FROM SPONSOR_FORMS WHERE PACKAGE_NAME = 'NIH 398 package (Coeus 4.0)') AND PAGE_NUMBER = 16 FOR UPDATE; buffer := ' <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:inline font-size="10pt">The form is located at: </fo:inline> <fo:basic-link text-decoration="underline" color="blue"> <xsl:attribute name="external-destination"><xsl:text disable-output-escaping="yes">http://coeus.mit.edu/nihforms/personal.pdf</xsl:text></xsl:attribute> <fo:inline> <fo:inline font-size="10pt">http://coeus.mit.edu/nihforms/personal.pdf</fo:inline> </fo:inline> </fo:basic-link> <fo:inline font-size="10pt">.</fo:inline> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:inline font-size="10pt">Please note that some of the fields on this form are optional. </fo:inline> <fo:block> <fo:leader leader-pattern="space" /> </fo:block> <fo:block> <xsl:text>&#xA;</xsl:text> </fo:block> </fo:block> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet> '; DBMS_LOB.writeappend(data,LENGTH(buffer),buffer); END; /
<reponame>aagrosse/burger<gh_stars>0 INSERT INTO burgers (burger_name, devoured) VALUES ("cheeseburger", false),("Mushroom Burger", false),("Bison Burger", false),("Turkey Burger", false);
<filename>movies/8.sql /*write a SQL query to list the names of all people who starred in Toy Story. Your query should output a table with a single column for the name of each person. You may assume that there is only one movie in the database with the title Toy Story. */ SELECT name FROM people WHERE id IN (SELECT person_id FROM stars WHERE movie_id = (SELECT id FROM movies WHERE title = "Toy Story"));
<gh_stars>0 DROP TABLE IF EXISTS CURRENCY; CREATE TABLE CURRENCY ( COUNTRY_CODE VARCHAR(5) PRIMARY KEY, COUNTRY VARCHAR(250) NOT NULL, CURRENCY_CODE VARCHAR(3) NOT NULL ); INSERT INTO CURRENCY (CURRENCY_CODE, COUNTRY_CODE, COUNTRY) VALUES ('USD', 'US', 'USA'), ('CAD', 'CA', 'Canada'), ('INR', 'IN', 'India');
<filename>guns-admin/src/main/java/TGameOdds.sql INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258881', 'tGameOdds', '0', '[0],', '项目管理', '', '/tGameOdds', '99', '1', '1', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258882', 'tGameOdds_list', 'tGameOdds', '[0],[tGameOdds],', '项目管理列表', '', '/tGameOdds/list', '99', '2', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258883', 'tGameOdds_add', 'tGameOdds', '[0],[tGameOdds],', '项目管理添加', '', '/tGameOdds/add', '99', '2', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258884', 'tGameOdds_update', 'tGameOdds', '[0],[tGameOdds],', '项目管理更新', '', '/tGameOdds/update', '99', '2', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258885', 'tGameOdds_delete', 'tGameOdds', '[0],[tGameOdds],', '项目管理删除', '', '/tGameOdds/delete', '99', '2', '0', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1029940049755258886', 'tGameOdds_detail', 'tGameOdds', '[0],[tGameOdds],', '项目管理详情', '', '/tGameOdds/detail', '99', '2', '0', NULL, '1', '0');
<gh_stars>0 update tournament_event set chinese_name = (select chinese_name from tournament where tournament_id = tournament_event.original_tournament_id); COMMIT;
IF NOT EXISTS (SELECT * FROM app_securable WHERE name = 'ExportXML') BEGIN insert into app_securable (name, displayName, description) values ('ExportXML', 'Export Templates XML', 'Ability to export templates to an XML format') declare @appSecurableId int set @appSecurableId = (select id from app_securable where name = 'ExportXML') insert into appsecurable_role (appSecurableId, roleId) select @appSecurableId, id from [role] where name in ('Administrators', 'Template Authors', 'IG Admins') END
<filename>sql/updates/latest-dev.sql<gh_stars>1-10 CREATE SCHEMA IF NOT EXISTS timescaledb_experimental; GRANT USAGE ON SCHEMA timescaledb_experimental TO PUBLIC;
<gh_stars>10-100 /** 删除钩子列表 **/ delete from `hooks` where `name` = 'test'; /** 删除插件记录 **/ delete from `addons` where `name` = 'test';
<reponame>mrk-andreev/ClickHouse<filename>tests/queries/0_stateless/02283_array_norm.sql<gh_stars>1-10 SELECT arrayL1Norm([1, 2, 3]); SELECT arrayL2Norm([3., 4., 5.]); SELECT arrayLinfNorm([0, 0, 2]); DROP TABLE IF EXISTS vec1; DROP TABLE IF EXISTS vec1f; DROP TABLE IF EXISTS vec1d; CREATE TABLE vec1 (id UInt64, v Array(UInt8)) ENGINE = Memory; CREATE TABLE vec1f (id UInt64, v Array(Float32)) ENGINE = Memory; CREATE TABLE vec1d (id UInt64, v Array(Float64)) ENGINE = Memory; INSERT INTO vec1 VALUES (1, [3, 4]), (2, [2]), (3, [3, 3, 3]), (4, NULL); INSERT INTO vec1f VALUES (1, [3, 4]), (2, [2]), (3, [3, 3, 3]), (4, NULL); INSERT INTO vec1d VALUES (1, [3, 4]), (2, [2]), (3, [3, 3, 3]), (4, NULL); SELECT id, arrayL2Norm(v) FROM vec1; SELECT id, arrayL1Norm(materialize([5., 6.])) FROM vec1; SELECT id, arrayL2Norm(v) FROM vec1f; SELECT id, arrayL1Norm(materialize([5., 6.])) FROM vec1f; SELECT id, arrayL2Norm(v) FROM vec1d; SELECT id, arrayL1Norm(materialize([5., 6.])) FROM vec1d; SELECT arrayL1Norm((1, 2,)); -- { serverError 43 } DROP TABLE vec1; DROP TABLE vec1f; DROP TABLE vec1d;
<reponame>UAMS-DBMI/PosdaTools<filename>posda/posdatools/queries/sql/InsertEditImportEvent.sql -- Name: InsertEditImportEvent -- Schema: posda_files -- Columns: [] -- Args: ['import_type', 'import_comment'] -- Tags: ['NotInteractive', 'Backlog', 'Transaction', 'used_in_file_import_into_posda'] -- Description: Insert an Import Event for an Edited File insert into import_event( import_type, import_comment, import_time ) values ( ?, ?, now() )
<reponame>ElectricEasel/posrgnew<filename>administrator/components/com_admin/sql/updates/sqlazure/3.0.3.sql ALTER TABLE #__associations ALTER COLUMN id INT;
<filename>t/src/t52/spots_data.sql -- -- PostgreSQL database dump -- -- Dumped from database version 11.2 (Debian 11.2-1.pgdg90+1) -- Dumped by pg_dump version 11.2 (Debian 11.2-1.pgdg90+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; -- -- Data for Name: metacat; Type: TABLE DATA; Schema: public; Owner: doom -- COPY public.metacat (id, sortcode, name) FROM stdin; 1 0010 first 2 0020 local 3 0030 news 4 0040 politics 5 0050 democracy 6 0060 infostrut 7 0070 web 8 0080 prog 9 0090 doing 10 0100 working 11 0110 fiction 12 0120 sound 13 0130 misc 14 0140 scitech 15 0150 geoengineer \. -- -- Data for Name: category; Type: TABLE DATA; Schema: public; Owner: doom -- COPY public.category (id, metacat, name) FROM stdin; 1 2 oakland 2 2 sf 3 10 jobs \. -- -- Data for Name: layout; Type: TABLE DATA; Schema: public; Owner: doom -- COPY public.layout (id, category, x_location, y_location, height, width) FROM stdin; \. -- -- Data for Name: spots; Type: TABLE DATA; Schema: public; Owner: doom -- COPY public.spots (id, url, label, static, title, description, added, revised, live, category) FROM stdin; 1 http://museumca.org/ oakmus \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 5 http://www.oaklandlibrary.org/ oaklib \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 6 http://www2.oaklandnet.com/ oaknet \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 7 http://actransit.org actransit \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 8 https://oaklandoctopus.org/ oakoct \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 10 http://sf.streetsblog.org/ sfstreet \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 12 http://jobs.perl.org/ perl_jobs \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 3 14 http://www.theatlanticcities.com citylab \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 15 http://www.sfbike.org/ sfbike \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 17 http://obsidianrook.com/spots/art_for_money.html artmoney \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 3 18 http://obsidianrook.com/spots/jobs.html mojobs \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 3 21 http://www.bikescape.blogspots.com/ bikescape \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 28 https://bikeeastbay.org/ bikeebay \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 29 https://closecalldatabase.com/ closecall \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 30 http://www2.oaklandnet.com/Government/o/PWA/o/EC/s/TelegraphAvenue/ telegraph \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 2 209 http://www.baycitizen.org/ baycit \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-15 18:26:48.260727-07 \N 1 217 http://www.topix.net/oakland topoak \N \N \N 2019-03-15 18:26:48.260727-07 2019-03-17 09:29:43.490493-07 \N 1 \. -- -- Name: category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: doom -- SELECT pg_catalog.setval('public.category_id_seq', 1, false); -- -- Name: layout_id_seq; Type: SEQUENCE SET; Schema: public; Owner: doom -- SELECT pg_catalog.setval('public.layout_id_seq', 1, false); -- -- Name: metacat_id_seq; Type: SEQUENCE SET; Schema: public; Owner: doom -- SELECT pg_catalog.setval('public.metacat_id_seq', 1, false); -- -- Name: spots_id_seq; Type: SEQUENCE SET; Schema: public; Owner: doom -- SELECT pg_catalog.setval('public.spots_id_seq', 1, false); -- -- PostgreSQL database dump complete --
<filename>eventos/src/main/resources/db/migration/V1__cria__tabela_grupo.sql --DROP TABLE IF EXISTS grupo; CREATE TABLE IF NOT EXISTS grupo ( id bigint NOT NULL, descricao character varying(80), nome character varying(20) NOT NULL, CONSTRAINT grupo_pkey PRIMARY KEY (id) ) WITH ( OIDS=FALSE ); ALTER TABLE grupo OWNER TO postgres; CREATE TABLE IF NOT EXISTS usuario ( id bigint NOT NULL, email character varying(70) NOT NULL, nome character varying(80) NOT NULL, senha character varying(30) NOT NULL, CONSTRAINT usuario_pkey PRIMARY KEY (id), CONSTRAINT uk_5171l57faosmj8myawaucatdw UNIQUE (email) ) WITH ( OIDS=FALSE ); ALTER TABLE usuario OWNER TO postgres; CREATE TABLE IF NOT EXISTS usuario_grupo ( usuario_id bigint NOT NULL, grupo_id bigint NOT NULL, CONSTRAINT fk_5p20y5panoea7wc040qm6eemd FOREIGN KEY (grupo_id) REFERENCES grupo (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT fk_m32it4c8rkf6t8nno481k43q4 FOREIGN KEY (usuario_id) REFERENCES usuario (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ) WITH ( OIDS=FALSE ); ALTER TABLE usuario_grupo OWNER TO postgres;
<filename>Script.sql --1 film tablosunda bulunan title ve description sütunlarındaki verileri sıralayınız. SELECT title,description FROM film; --2 film tablosunda bulunan tüm sütunlardaki verileri film uzunluğu (length) 60 dan büyük VE 75 ten küçük olma koşullarıyla sıralayınız. SELECT * FROM film WHERE length>60 AND length<75; --3 film tablosunda bulunan tüm sütunlardaki verileri rental_rate 0.99 VE replacement_cost 12.99 VEYA 28.99 olma koşullarıyla sıralayınız. SELECT * FROM film WHERE rental_rate=0.99 AND (replacement_cost=12.99 OR replacement_cost=28.99); --4 customer tablosunda bulunan first_name sütunundaki değeri 'Mary' olan müşterinin last_name sütunundaki değeri nedir? SELECT last_name FROM customer WHERE first_name='Mary'; --5 film tablosundaki uzunluğu(length) 50 ten büyük OLMAYIP aynı zamanda rental_rate değeri 2.99 veya 4.99 OLMAYAN verileri sıralayınız. SELECT * FROM film WHERE length<50 AND NOT(rental_rate=2.99 OR rental_rate=4.99);
ALTER PROCEDURE usp_RemoveUserOof @channelId NVARCHAR(255), @userId NVARCHAR (255) AS SET NOCOUNT ON; BEGIN TRANSACTION DECLARE @userFound INT; DECLARE @removeUser INT; DECLARE @otcuInternalTable TABLE (Internal_id INT); DECLARE @cobuoofInternalTable TABLE (Internal_id INT); SET @userFound = 0; -- Verify if the users exist on the db and in the right channel. INSERT INTO @otcuInternalTable SELECT otcu.Internal_id FROM ChannelsOtterBrassUser otcu INNER JOIN OtterBrassUser otus ON otus.Internal_id = otcu.User_internal_id INNER JOIN Channels otch ON otch.Internal_id = otcu.Channel_internal_id WHERE otus.Id = @userId AND otch.Id = @channelId SELECT @userFound = COUNT(Internal_id) FROM @otcuInternalTable -- User should be registered before continuing IF @userFound < 1 BEGIN ROLLBACK RETURN; END -- Verify if the users exist on the oof table INSERT INTO @cobuoofInternalTable SELECT otcuInternal.Internal_id FROM @otcuInternalTable otcuInternal INNER JOIN ChannelsOtterBrassUserOOF cobuoof ON cobuoof.ChannelsOtterBrassUser_internal_id = otcuInternal.Internal_id SELECT @removeUser = COUNT(Internal_id) FROM @cobuoofInternalTable -- If user is not found in the OOF Table it means he has never used the feature IF @removeUser > 0 BEGIN SELECT TOP 1 @removeUser = Internal_id FROM @cobuoofInternalTable DELETE FROM [ChannelsOtterBrassUserOOF] WHERE ChannelsOtterBrassUser_internal_id = @removeUser END IF @@ERROR <> 0 BEGIN -- Rollback the transaction ROLLBACK -- Raise an error and return RAISERROR ('Error while updating Random Table status.', 16, 1) RETURN END COMMIT GO
<reponame>nilshollmer/project-ramverk1 -- -- Create database tables -- Ramverk1 Project -- SET NAMES 'utf8'; -- -- Drop tables -- DROP TABLE IF EXISTS Question2Tag, Tag, Comment, Entry, Question, User ; -- -- Table User -- CREATE TABLE User ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `username` VARCHAR(80) UNIQUE NOT NULL, `password` VARCHAR(255) NOT NULL, `avatar` VARCHAR(255), `created` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated` DATETIME DEFAULT NULL, `deleted` DATETIME DEFAULT NULL, `active` DATETIME DEFAULT NULL ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci; -- -- Table Question -- CREATE TABLE Question ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `user` VARCHAR(80) NOT NULL, `title` VARCHAR(255) NOT NULL, `views` INTEGER DEFAULT 0, `created` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated` DATETIME DEFAULT NULL, `deleted` DATETIME DEFAULT NULL, FOREIGN KEY (user) REFERENCES User(username) ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci; -- -- Table Entry -- CREATE TABLE Entry ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `user` VARCHAR(80) NOT NULL, `question` INTEGER NOT NULL, `text` VARCHAR(255) NOT NULL, `score` INTEGER DEFAULT 0, `created` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated` DATETIME DEFAULT NULL, `deleted` DATETIME DEFAULT NULL, FOREIGN KEY (user) REFERENCES User(username), FOREIGN KEY (question) REFERENCES Question(id) ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci; -- -- Table Comment -- CREATE TABLE Comment ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `user` VARCHAR(80) NOT NULL, `entry` INTEGER NOT NULL, `text` VARCHAR(255) NOT NULL, `created` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated` DATETIME DEFAULT NULL, `deleted` DATETIME DEFAULT NULL, FOREIGN KEY (user) REFERENCES User(username), FOREIGN KEY (entry) REFERENCES Entry(id) ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci; -- -- Table Tag -- CREATE TABLE Tag ( `id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, `name` VARCHAR(80) NOT NULL ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci; -- -- Table Question2Tag -- CREATE TABLE Question2Tag ( `question_id` INTEGER NOT NULL, `tag_id` INTEGER NOT NULL, FOREIGN KEY (question_id) REFERENCES Question(id), FOREIGN KEY (tag_id) REFERENCES Tag(id) ) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci;
/* Full documentation on "Accessing data in a CSV file referencing an Azure blob storage location" here: https://docs.microsoft.com/en-us/sql/relational-databases/import-export/examples-of-bulk-access-to-data-in-azure-blob-storage?view=sql-server-ver15 */ create master key encryption by password = '<PASSWORD>##' go create database scoped credential AzureBlobCredentials with identity = 'SHARED ACCESS SIGNATURE', secret = 'sp=r&st=2021-03-12T00:47:24Z&se=2025-03-11T07:47:24Z&spr=https&sv=2020-02-10&sr=c&sig=BmuxFevKhWgbvo%2Bj8TlLYObjbB7gbvWzQaAgvGcg50c%3D' -- Omit any leading question mark go create external data source RouteData with ( type = blob_storage, location = 'https://azuresqlworkshopsa.blob.core.windows.net/bus', credential = AzureBlobCredentials ) delete from dbo.[Routes]; go insert into dbo.[Routes] ([Id], [AgencyId], [ShortName], [Description], [Type]) select [Id], [AgencyId], [ShortName], [Description], [Type] from openrowset ( bulk 'routes.txt', data_source = 'RouteData', formatfile = 'routes.fmt', formatfile_data_source = 'RouteData', firstrow=2, format='csv' ) t; go select * from dbo.[Routes] where [Description] like '%Education Hill%' go select * from sys.[database_credentials] select * from sys.[external_data_sources] go
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2019 at 07:55 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.3.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 */; -- -- Database: `ci_blog` -- -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE `comments` ( `id` int(11) NOT NULL, `post_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `body` text NOT NULL, `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `comments` -- INSERT INTO `comments` (`id`, `post_id`, `name`, `email`, `body`, `created_date`) VALUES (1, 10, '<NAME>', '<EMAIL>', '<p>This is a great posts.</p>\r\n', '2019-04-19 06:00:42'), (2, 13, 'Ew', '<EMAIL>', '<p>This is good</p>\r\n\r\n<p>&nbsp;</p>\r\n', '2019-04-22 02:27:28'); -- -- Indexes for dumped tables -- -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `comments` -- ALTER TABLE `comments` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>teamelf/ext-task<filename>migrations/20180115211824_create_task_report_table.down.sql ALTER TABLE task_report DROP FOREIGN KEY FK_FF86F3577597D3FE; ALTER TABLE task_report DROP FOREIGN KEY FK_FF86F3578DB60186; DROP TABLE IF EXISTS task_report;
<filename>internal/database/migrations/mysql/0002_initial.up.sql CREATE TABLE IF NOT EXISTS bookmark( id INT(11) NOT NULL AUTO_INCREMENT, url TEXT NOT NULL, title TEXT NOT NULL, excerpt TEXT NOT NULL DEFAULT (''), author TEXT NOT NULL DEFAULT (''), public BOOLEAN NOT NULL DEFAULT 0, content MEDIUMTEXT NOT NULL DEFAULT (''), html MEDIUMTEXT NOT NULL DEFAULT (''), modified TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY(id), UNIQUE KEY bookmark_url_UNIQUE (url(255)), FULLTEXT (title, excerpt, content)) CHARACTER SET utf8mb4;
CREATE DATABASE IF NOT EXISTS `kitbox` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `kitbox`; -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: kitbox -- ------------------------------------------------------ -- Server version 8.0.19 /*!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 */; /*!50503 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 `kitbox` -- DROP TABLE IF EXISTS `kitbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `kitbox` ( `Ref` text, `Code` varchar(50) NOT NULL, `Dimensions` text, `Height` int DEFAULT NULL, `Depth` int DEFAULT NULL, `Width` int DEFAULT NULL, `Colour` text, `Instock` int DEFAULT NULL, `MinimumStock` int DEFAULT NULL, `CustPrice` text, `NbPartsBox` int DEFAULT NULL, PRIMARY KEY (`Code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `kitbox` -- LOCK TABLES `kitbox` WRITE; /*!40000 ALTER TABLE `kitbox` DISABLE KEYS */; INSERT INTO `kitbox` VALUES ('AngleBracket','ANB100BLCUT','100(h) cut',100,0,0,'Black',1000,542,'1,7',4),('AngleBracket','ANB100BRCUT','100(h) cut',100,0,0,'Brown',1010,537,'1,38',4),('AngleBracket','ANB100GLCUT','100(h) cut',100,0,0,'Galvanised',1084,532,'1,72',4),('AngleBracket','ANB100WHCUT','100(h) cut',100,0,0,'White',1032,534,'1,72',4),('AngleBracket','ANB108BL','3x32(h)',108,0,0,'Black',1086,531,'0,679',4),('AngleBracket','ANB108BR','3x32(h)',108,0,0,'Brown',1087,542,'0,776',4),('AngleBracket','ANB108GL','3x32(h)',108,0,0,'Galvanised',1087,527,'0,97',4),('AngleBracket','ANB108WH','3x32(h)',108,0,0,'White',1084,521,'0,97',4),('AngleBracket','ANB112BL','2x52(h)',112,0,0,'Black',1089,547,'0,742',4),('AngleBracket','ANB112BR','2x52(h)',112,0,0,'Brown',1082,524,'0,848',4),('AngleBracket','ANB112GL','2x52(h)',112,0,0,'Galvanised',1088,525,'1,06',4),('AngleBracket','ANB112WH','2x52(h)',112,0,0,'White',1078,536,'1,06',4),('AngleBracket','ANB125BLCUT','125(h) cut',125,0,0,'Black',1100,533,'1,36',4),('AngleBracket','ANB125BRCUT','125(h) cut',125,0,0,'Brown',1084,541,'1,55',4),('AngleBracket','ANB125GLCUT','125(h) cut',125,0,0,'Galvanised',1083,556,'1,94',4),('AngleBracket','ANB125WHCUT','125(h) cut',125,0,0,'White',1083,534,'1,94',4),('AngleBracket','ANB138BL','3x42(h)',138,0,0,'Black',1083,559,'0,889',4),('AngleBracket','ANB138BR','3x42(h)',138,0,0,'Brown',1087,474,'1,016',4),('AngleBracket','ANB138GL','3x42(h)',138,0,0,'Galvanised',1089,529,'1,27',4),('AngleBracket','ANB138WH','3x42(h)',138,0,0,'White',1093,527,'1,27',4),('AngleBracket','ANB144BL','4x32(h)',144,0,0,'Black',1088,520,'0,896',4),('AngleBracket','ANB144BR','4x32(h)',144,0,0,'Brown',1087,549,'1,024',4),('AngleBracket','ANB144GL','4x32(h)',144,0,0,'Galvanised',1084,531,'1,28',4),('AngleBracket','ANB144WH','4x32(h)',144,0,0,'White',1086,538,'1,28',4),('AngleBracket','ANB150BLCUT','150(h) cut',150,0,0,'Black',1087,513,'1,78',4),('AngleBracket','ANB150BRCUT','150(h) cut',150,0,0,'Brown',1087,531,'2,03',4),('AngleBracket','ANB150GLCUT','150(h) cut',150,0,0,'Galvanised',1087,502,'2,54',4),('AngleBracket','ANB150WHCUT','150(h) cut',150,0,0,'White',1089,516,'2,54',4),('AngleBracket','ANB168BL','3x52(h)',168,0,0,'Black',1080,520,'1,099',4),('AngleBracket','ANB168BR','3x52(h)',168,0,0,'Brown',1083,516,'1,256',4),('AngleBracket','ANB168GL','3x52(h)',168,0,0,'Galvanised',1088,522,'1,57',4),('AngleBracket','ANB168WH','3x52(h)',168,0,0,'White',1089,543,'1,57',4),('AngleBracket','ANB175BLCUT','175(h) cut',175,0,0,'Black',1085,522,'2,2',4),('AngleBracket','ANB175BRCUT','175(h) cut',175,0,0,'Brown',1083,528,'2,51',4),('AngleBracket','ANB175GLCUT','175(h) cut',175,0,0,'Galvanised',1086,503,'3,14',4),('AngleBracket','ANB175WHCUT','175(h) cut',175,0,0,'White',1081,578,'3,14',4),('AngleBracket','ANB180BL','5x32(h)',180,0,0,'Black',1083,554,'1,113',4),('AngleBracket','ANB180BR','5x32(h)',180,0,0,'Brown',1089,521,'1,272',4),('AngleBracket','ANB180GL','5x32(h)',180,0,0,'Galvanised',1084,528,'1,59',4),('AngleBracket','ANB180WH','5x32(h)',180,0,0,'White',1089,487,'1,59',4),('AngleBracket','ANB184BL','4x42(h)',184,0,0,'Black',1088,539,'1,176',4),('AngleBracket','ANB184BR','4x42(h)',184,0,0,'Brown',1084,511,'1,344',4),('AngleBracket','ANB184GL','4x42(h)',184,0,0,'Galvanised',1086,543,'1,68',4),('AngleBracket','ANB184WH','4x42(h)',184,0,0,'White',1089,539,'1,68',4),('AngleBracket','ANB200BLCUT','200(h) cut',200,0,0,'Black',1090,514,'2,35',4),('AngleBracket','ANB200BRCUT','200(h) cut',200,0,0,'Brown',1086,544,'2,69',4),('AngleBracket','ANB200GLCUT','200(h) cut',200,0,0,'Galvanised',1084,546,'3,36',4),('AngleBracket','ANB200WHCUT','200(h) cut',200,0,0,'White',1085,543,'3,36',4),('AngleBracket','ANB216BL','6x32(h)',216,0,0,'Black',1080,523,'1,33',4),('AngleBracket','ANB216BR','6x32(h)',216,0,0,'Brown',1081,540,'1,52',4),('AngleBracket','ANB216GL','6x32(h)',216,0,0,'Galvanised',1088,537,'1,9',4),('AngleBracket','ANB216WH','6x32(h)',216,0,0,'White',1084,522,'1,9',4),('AngleBracket','ANB224BL','4x52(h)',224,0,0,'Black',1084,540,'1,456',4),('AngleBracket','ANB224BR','4x52(h)',224,0,0,'Brown',1083,527,'1,664',4),('AngleBracket','ANB224GL','4x52(h)',224,0,0,'Galvanised',1087,525,'2,08',4),('AngleBracket','ANB224WH','4x52(h)',224,0,0,'White',1084,527,'2,08',4),('AngleBracket','ANB225BLCUT','225(h) cut',225,0,0,'Black',1088,555,'2,66',4),('AngleBracket','ANB225BRCUT','225(h) cut',225,0,0,'Brown',1086,535,'3,04',4),('AngleBracket','ANB225GLCUT','225(h) cut',225,0,0,'Galvanised',1086,532,'3,8',4),('AngleBracket','ANB225WHCUT','225(h) cut',225,0,0,'White',1088,532,'3,8',4),('AngleBracket','ANB230BL','5x42(h)',230,0,0,'Black',1083,540,'1,463',4),('AngleBracket','ANB230BR','5x42(h)',230,0,0,'Brown',1080,520,'1,672',4),('AngleBracket','ANB230GL','5x42(h)',230,0,0,'Galvanised',1088,546,'2,09',4),('AngleBracket','ANB230WH','5x42(h)',230,0,0,'White',1083,506,'2,09',4),('AngleBracket','ANB250BLCUT','250(h) cut',250,0,0,'Black',1086,535,'3,09',4),('AngleBracket','ANB250BRCUT','250(h) cut',250,0,0,'Brown',1081,524,'3,54',4),('AngleBracket','ANB250GLCUT','250(h) cut',250,0,0,'Galvanised',1082,524,'4,42',4),('AngleBracket','ANB250WHCUT','250(h) cut',250,0,0,'White',1087,543,'4,42',4),('AngleBracket','ANB252BL','7x32(h)',252,0,0,'Black',1080,514,'1,547',4),('AngleBracket','ANB252BR','7x32(h)',252,0,0,'Brown',1089,540,'1,768',4),('AngleBracket','ANB252GL','7x32(h)',252,0,0,'Galvanised',1089,536,'2,21',4),('AngleBracket','ANB252WH','7x32(h)',252,0,0,'White',1080,526,'2,21',4),('AngleBracket','ANB275BLCUT','275(h) cut',275,0,0,'Black',1081,518,'3,5',4),('AngleBracket','ANB275BRCUT','275(h) cut',275,0,0,'Brown',1082,528,'4',4),('AngleBracket','ANB275GLCUT','275(h) cut',275,0,0,'Galvanised',1087,519,'5',4),('AngleBracket','ANB275WHCUT','275(h) cut',275,0,0,'White',1082,555,'5',4),('AngleBracket','ANB276BL','6x42(h)',276,0,0,'Black',1083,537,'1,75',4),('AngleBracket','ANB276BR','6x42(h)',276,0,0,'Brown',1090,531,'2',4),('AngleBracket','ANB276GL','6x42(h)',276,0,0,'Galvanised',1081,535,'2,5',4),('AngleBracket','ANB276WH','6x42(h)',276,0,0,'White',1086,539,'2,5',4),('AngleBracket','ANB280BL','5x52(h)',280,0,0,'Black',1086,520,'1,813',4),('AngleBracket','ANB280BR','5x52(h)',280,0,0,'Brown',1086,528,'2,072',4),('AngleBracket','ANB280GL','5x52(h)',280,0,0,'Galvanised',1086,546,'2,59',4),('AngleBracket','ANB280WH','5x52(h)',280,0,0,'White',1084,545,'2,59',4),('AngleBracket','ANB300BLCUT','300(h) cut',300,0,0,'Black',1084,560,'3,63',4),('AngleBracket','ANB300BRCUT','300(h) cutt',300,0,0,'Brown',1088,520,'4,14',4),('AngleBracket','ANB300GLCUT','300(h) cut',300,0,0,'Galvanised',1083,525,'5,18',4),('AngleBracket','ANB300WHCUT','300(h) cut',300,0,0,'White',1090,557,'5,18',4),('AngleBracket','ANB325BLCUT','325(h) cut',325,0,0,'Black',1087,518,'3,63',4),('AngleBracket','ANB325BRCUT','325(h) cut',325,0,0,'Brown',1088,556,'4,14',4),('AngleBracket','ANB325GLCUT','325(h) cut',325,0,0,'Galvanised',1090,529,'5,18',4),('AngleBracket','ANB325WHCUT','325(h) cut',325,0,0,'White',1086,535,'5,18',4),('AngleBracket','ANB350BLCUT','350(h) cut',350,0,0,'Black',1085,506,'3,63',4),('AngleBracket','ANB350BRCUT','350(h) cut',350,0,0,'Brown',1084,519,'4,14',4),('AngleBracket','ANB350GLCUT','350(h) cut',350,0,0,'Galvanised',1083,521,'5,18',4),('AngleBracket','ANB350WHCUT','350(h) cut',350,0,0,'White',1084,499,'5,18',4),('AngleBracket','ANB36BL','1x32(h)',36,0,0,'Black',1084,544,'0,245',4),('AngleBracket','ANB36BR','1x32(h)',36,0,0,'Brown',1082,534,'0,28',4),('AngleBracket','ANB36GL','1x32(h)',36,0,0,'Galvanised',1081,534,'0,35',4),('AngleBracket','ANB36WH','1x32(h)',36,0,0,'White',1048,554,'0,35',4),('AngleBracket','ANB375BLCUT','375(h) cut',375,0,0,'Black',1089,525,'3,63',4),('AngleBracket','ANB375BRCUT','375(h) cut',375,0,0,'Brown',1081,544,'4,14',4),('AngleBracket','ANB375GLCUT','375(h) cut',375,0,0,'Galvanised',1086,539,'5,18',4),('AngleBracket','ANB375WHCUT','375(h) cut',375,0,0,'White',1082,543,'5,18',4),('AngleBracket','ANB46BL','1x42(h)',46,0,0,'Black',1090,545,'0,315',4),('AngleBracket','ANB46BR','1x42(h)',46,0,0,'Brown',1087,502,'0,36',4),('AngleBracket','ANB46GL','1x42(h)',46,0,0,'Galvanised',1082,520,'0,45',4),('AngleBracket','ANB46WH','1x42(h)',46,0,0,'White',1089,529,'0,45',4),('AngleBracket','ANB50BLCUT','50(h) cut',50,0,0,'Black',1082,544,'0,77',4),('AngleBracket','ANB50BRCUT','50(h) cut',50,0,0,'Brown',1086,506,'0,88',4),('AngleBracket','ANB50GLCUT','50(h) cut',50,0,0,'Galvanised',1082,510,'1,1',4),('AngleBracket','ANB50WHCUT','50(h) cut',50,0,0,'White',1084,529,'1,1',4),('AngleBracket','ANB56BL','1x52(h)',56,0,0,'Black',1089,533,'0,385',4),('AngleBracket','ANB56BR','1x52(h)',56,0,0,'Brown',1086,519,'0,44',4),('AngleBracket','ANB56GL','1x52(h)',56,0,0,'Galvanised',1082,535,'0,55',4),('AngleBracket','ANB56WH','1x52(h)',56,0,0,'White',1089,541,'0,55',4),('AngleBracket','ANB72BL','2x32(h)',72,0,0,'Black',1081,573,'0,462',4),('AngleBracket','ANB72BR','2x32(h)',72,0,0,'Brown',1085,531,'0,528',4),('AngleBracket','ANB72GL','2x32(h)',72,0,0,'Galvanised',1083,536,'0,66',4),('AngleBracket','ANB72WH','2x32(h)',72,0,0,'White',1082,504,'0,66',4),('AngleBracket','ANB75BLCUT','75(h) cut',75,0,0,'Black',1081,529,'0,92',4),('AngleBracket','ANB75BRCUT','75(h) cut',75,0,0,'Brown',1083,514,'1,06',4),('AngleBracket','ANB75GLCUT','75(h) cut',75,0,0,'Galvanised',1084,524,'1,32',4),('AngleBracket','ANB75WHCUT','75(h) cut',75,0,0,'White',1089,521,'1,32',4),('AngleBracket','ANB92BL','2x42(h)',92,0,0,'Black',1087,556,'0,602',4),('AngleBracket','ANB92BR','2x42(h)',92,0,0,'Brown',1083,506,'0,688',4),('AngleBracket','ANB92GL','2x42(h)',92,0,0,'Galvanised',1082,523,'0,86',4),('AngleBracket','ANB92WH','2x42(h)',92,0,0,'White',1085,527,'0,86',4),('Crossbar B','CBB100','100(w)',0,0,100,'',1034,532,'2',2),('Crossbar B','CBB120','120(w)',0,0,120,'',1045,530,'2,2',2),('Crossbar B','CBB32','32(w)',0,0,32,'',1041,508,'1',2),('Crossbar B','CBB42','42(w)',0,0,42,'',1044,538,'1,2',2),('Crossbar B','CBB52','52(w)',0,0,52,'',1044,543,'1,4',2),('Crossbar B','CBB62','62(w)',0,0,62,'',1044,508,'1,6',2),('Crossbar B','CBB80','80(w)',0,0,80,'',1045,555,'1,8',2),('Crossbar F','CBF100','100(w)',0,0,100,'',1032,502,'2,2',2),('Crossbar F','CBF120','120(w)',0,0,120,'',1038,536,'2,4',2),('Crossbar F','CBF32','32(w)',0,0,32,'',1045,531,'1,5',2),('Crossbar F','CBF42','42(w)',0,0,42,'',1043,512,'1,7',2),('Crossbar F','CBF52','52(w)',0,0,52,'',1044,525,'1,8',2),('Crossbar F','CBF62','62(w)',0,0,62,'',1042,534,'1,9',2),('Crossbar F','CBF80','80(w)',0,0,80,'',1044,506,'2',2),('Crossbar LR','CBS32','32(d)',0,32,0,'',1082,523,'1',4),('Crossbar LR','CBS42','42(d)',0,42,0,'',1083,507,'1,2',4),('Crossbar LR','CBS52','52(d)',0,52,0,'',1082,516,'1,4',4),('Crossbar LR','CBS62','62(d)',0,62,0,'',1042,541,'1,6',4),('Cleat','CLE27','27(h32)',32,0,0,'',1083,531,'0,2',4),('Cleat','CLE37','37(h42)',42,0,0,'',1068,555,'0,3',4),('Cleat','CLE47','47(h52)',52,0,0,'',1000,515,'0,4',4),('Cup','Cup','6cmDiam',0,0,0,'',1022,525,'0,005',2),('Door','DOO3232BR','32(h)x32(w)',32,0,32,'Brown',1046,544,'5,12',2),('Door','DOO3232GS','32(h)x32(w)',32,0,32,'Glass',1046,511,'10,24',2),('Door','DOO3232WH','32(h)x32(w)',32,0,32,'White',1041,508,'5,12',2),('Door','DOO3242BR','32(h)x42(w)',32,0,42,'Brown',1042,544,'6,72',2),('Door','DOO3242GS','32(h)x42(w)',32,0,42,'Glass',3050,528,'13,44',2),('Door','DOO3242WH','32(h)x42(w)',32,0,42,'White',1042,498,'6,72',2),('Door','DOO3252BR','32(h)x52(w)',32,0,52,'Brown',21047,556,'8,32',2),('Door','DOO3252GS','32(h)x52(w)',32,0,52,'Glass',1042,528,'16,64',2),('Door','DOO3252WH','32(h)x52(w)',32,0,52,'White',1046,566,'8,32',2),('Door','DOO3262BR','32(h)x62(w)',32,0,62,'Brown',1040,531,'9,92',2),('Door','DOO3262GS','32(h)x62(w)',32,0,62,'Glass',1040,503,'19,84',2),('Door','DOO3262WH','32(h)x62(w)',32,0,62,'White',1042,533,'9,92',2),('Door','DOO4232BR','42(h)x32(w)',42,0,32,'Brown',1046,532,'6,72',2),('Door','DOO4232GS','42(h)x32(w)',42,0,32,'Glass',1043,529,'13,44',2),('Door','DOO4232WH','42(h)x32(w)',42,0,32,'White',1047,538,'6,72',2),('Door','DOO4242BR','42(h)x42(w)',42,0,42,'Brown',1043,521,'8,82',2),('Door','DOO4242GS','42(h)x42(w)',42,0,42,'Glass',1045,541,'17,64',2),('Door','DOO4242WH','42(h)x42(w)',42,0,42,'White',1044,529,'8,82',2),('Door','DOO4252BR','42(h)x52(w)',42,0,52,'Brown',1046,546,'10,92',2),('Door','DOO4252GS','42(h)x52(w)',42,0,52,'Glass',1037,525,'21,84',2),('Door','DOO4252WH','42(h)x52(w)',42,0,52,'White',1043,498,'10,92',2),('Door','DOO4262BR','42(h)x62(w)',42,0,62,'Brown',1049,478,'13,02',2),('Door','DOO4262GS','42(h)x62(w)',42,0,62,'Glass',1048,516,'26,04',2),('Door','DOO4262WH','42(h)x62(w)',42,0,62,'White',1049,513,'13,02',2),('Door','DOO5232BR','52(h)x32(w)',52,0,32,'Brown',1043,514,'8,32',2),('Door','DOO5232GS','52(h)x32(w)',52,0,32,'Glass',1046,527,'16,64',2),('Door','DOO5232WH','52(h)x32(w)',52,0,32,'White',1047,552,'8,32',2),('Door','DOO5242BR','52(h)x42(w)',52,0,42,'Brown',1045,522,'10,92',2),('Door','DOO5242GS','52(h)x42(w)',52,0,42,'Glass',1044,551,'21,84',2),('Door','DOO5242WH','52(h)x42(w)',52,0,42,'White',1041,550,'10,92',2),('Door','DOO5252BR','52(h)x52(w)',52,0,52,'Brown',1038,518,'13,52',2),('Door','DOO5252GS','52(h)x52(w)',52,0,52,'Glass',1043,519,'27,04',2),('Door','DOO5252WH','52(h)x52(w)',52,0,52,'White',1049,544,'13,52',2),('Door','DOO5262BR','52(h)x62(w)',52,0,62,'Brown',1026,541,'32,24',2),('Door','DOO5262GS','52(h)x62(w)',52,0,62,'Glass',1044,511,'32,24',2),('Door','DOO5262WH','52(h)x62(w)',52,0,62,'White',1040,515,'16,12',2),('Panel B','PAB32100BR','32(h)x100(w)',32,0,100,'Brown',1023,527,'12,8',1),('Panel B','PAB32100WH','32(h)x100(w)',32,0,100,'White',1021,540,'16',1),('Panel B','PAB32120BR','32(h)x120(w)',32,0,120,'Brown',1029,526,'15,36',1),('Panel B','PAB32120WH','32(h)x120(w)',32,0,120,'White',1030,535,'19,2',1),('Panel B','PAB3232BR','32(h)x32(w)',32,0,32,'Brown',1026,528,'4,096',1),('Panel B','PAB3232WH','32(h)x32(w)',32,0,32,'White',1023,514,'5,12',1),('Panel B','PAB3242BR','32(h)x42(w)',32,0,42,'Brown',1021,573,'5,376',1),('Panel B','PAB3242WH','32(h)x42(w)',32,0,42,'White',1029,530,'6,72',1),('Panel B','PAB3252BR','32(h)x52(w)',32,0,52,'Brown',1024,548,'6,656',1),('Panel B','PAB3252WH','32(h)x52(w)',32,0,52,'White',1021,501,'8,32',1),('Panel B','PAB3262BR','32(h)x62(w)',32,0,62,'Brown',1027,536,'7,936',1),('Panel B','PAB3262WH','32(h)x62(w)',32,0,62,'White',1026,538,'9,92',1),('Panel B','PAB3280BR','32(h)x80(w)',32,0,80,'Brown',1029,548,'10,24',1),('Panel B','PAB3280WH','32(h)x80(w)',32,0,80,'White',1025,524,'12,8',1),('Panel B','PAB42100BR','42(h)x100(w)',42,0,100,'Brown',1024,530,'16,8',1),('Panel B','PAB42100WH','42(h)x100(w)',42,0,100,'White',1023,535,'26',1),('Panel B','PAB42120BR','42(h)x120(w)',42,0,120,'Brown',1021,562,'20,16',1),('Panel B','PAB42120WH','42(h)x120(w)',42,0,120,'White',1030,533,'31,2',1),('Panel B','PAB4232BR','42(h)x32(w)',42,0,32,'Brown',1025,547,'5,376',1),('Panel B','PAB4232WH','42(h)x32(w)',42,0,32,'White',1023,510,'8,32',1),('Panel B','PAB4242BR','42(h)x42(w)',42,0,42,'Brown',1025,509,'7,056',1),('Panel B','PAB4242WH','42(h)x42(w)',42,0,42,'White',1029,540,'10,92',1),('Panel B','PAB4252BR','42(h)x52(w)',42,0,52,'Brown',1026,525,'8,736',1),('Panel B','PAB4252WH','42(h)x52(w)',42,0,52,'White',1024,518,'13,52',1),('Panel B','PAB4262BR','42(h)x62(w)',42,0,62,'Brown',1027,525,'10,416',1),('Panel B','PAB4262WH','42(h)x62(w)',42,0,62,'White',1030,512,'16,12',1),('Panel B','PAB4280BR','42(h)x80(w)',42,0,80,'Brown',1026,551,'13,44',1),('Panel B','PAB4280WH','42(h)x80(w)',42,0,80,'White',1024,546,'20,8',1),('Panel B','PAB52100BR','52(h)x100(w)',52,0,100,'Brown',1023,529,'20,8',1),('Panel B','PAB52100WH','52(h)x100(w)',52,0,100,'White',1023,552,'26',1),('Panel B','PAB52120BR','52(h)x120(w)',52,0,120,'Brown',1023,509,'24,96',1),('Panel B','PAB52120WH','52(h)x120(w)',52,0,120,'White',1029,520,'31,2',1),('Panel B','PAB5232BR','52(h)x32(w)',52,0,32,'Brown',1022,521,'6,656',1),('Panel B','PAB5232WH','52(h)x32(w)',52,0,32,'White',1028,538,'8,32',1),('Panel B','PAB5242BR','52(h)x42(w)',52,0,42,'Brown',1020,532,'8,736',1),('Panel B','PAB5242WH','52(h)x42(w)',52,0,42,'White',1020,515,'10,92',1),('Panel B','PAB5252BR','52(h)x52(w)',52,0,52,'Brown',1024,526,'10,816',1),('Panel B','PAB5252WH','52(h)x52(w)',52,0,52,'White',1022,500,'13,52',1),('Panel B','PAB5262BR','52(h)x62(w)',52,0,62,'Brown',1028,537,'12,896',1),('Panel B','PAB5262WH','52(h)x62(w)',52,0,62,'White',1028,534,'16,12',1),('Panel B','PAB5280BR','52(h)x80(w)',52,0,80,'Brown',1028,524,'16,64',1),('Panel B','PAB5280WH','52(h)x80(w)',52,0,80,'White',1028,561,'20,8',1),('Panel HL','PHL32100BR','32(d)x100(w)',0,32,100,'Brown',1042,542,'12,8',2),('Panel HL','PHL32100WH','32(d)x100(w)',0,32,100,'White',1049,534,'16',2),('Panel HL','PHL32120BR','32(d)x120(w)',0,32,120,'Brown',1050,523,'15,36',2),('Panel HL','PHL32120WH','32(d)x120(w)',0,32,120,'White',1047,524,'19,2',2),('Panel HL','PHL3232BR','32(d)x32(w)',0,32,32,'Brown',1041,529,'4,096',2),('Panel HL','PHL3232WH','32(d)x32(w)',0,32,32,'White',1050,523,'5,12',2),('Panel HL','PHL3242BR','32(d)x42(w)',0,32,42,'Brown',1046,524,'5,376',2),('Panel HL','PHL3242WH','32(d)x42(w)',0,32,42,'White',1042,533,'6,72',2),('Panel HL','PHL3252BR','32(d)x52(w)',0,32,52,'Brown',1048,524,'6,656',2),('Panel HL','PHL3252WH','32(d)x52(w)',0,32,52,'White',1041,513,'8,32',2),('Panel HL','PHL3262BR','32(d)x62(w)',0,32,62,'Brown',1044,559,'7,936',2),('Panel HL','PHL3262WH','32(d)x62(w)',0,32,62,'White',1044,535,'9,92',2),('Panel HL','PHL3280BR','32(d)x80(w)',0,32,80,'Brown',1048,554,'10,24',2),('Panel HL','PHL3280WH','32(d)x80(w)',0,32,80,'White',1048,502,'12,8',2),('Panel HL','PHL42100BR','42(d)x100(w)',0,42,100,'Brown',1043,538,'16,8',2),('Panel HL','PHL42100WH','42(d)x100(w)',0,42,100,'White',1046,505,'21',2),('Panel HL','PHL42120BR','42(d)x120(w)',0,42,120,'Brown',1045,538,'20,16',2),('Panel HL','PHL42120WH','42(d)x120(w)',0,42,120,'White',1041,541,'25,2',2),('Panel HL','PHL4232BR','42(d)x32(w)',0,42,32,'Brown',1043,512,'5,376',2),('Panel HL','PHL4232WH','42(d)x32(w)',0,42,32,'White',1043,524,'6,72',2),('Panel HL','PHL4242BR','42(d)x42(w)',0,42,42,'Brown',1044,535,'7,056',2),('Panel HL','PHL4242WH','42(d)x42(w)',0,42,42,'White',1040,528,'8,82',2),('Panel HL','PHL4252BR','42(d)x52(w)',0,42,52,'Brown',1046,570,'8,736',2),('Panel HL','PHL4252WH','42(d)x52(w)',0,42,52,'White',1046,556,'10,92',2),('Panel HL','PHL4262BR','42(d)x62(w)',0,42,62,'Brown',1048,544,'10,416',2),('Panel HL','PHL4262WH','42(d)x62(w)',0,42,62,'White',1045,536,'13,02',2),('Panel HL','PHL4280BR','42(d)x80(w)',0,42,80,'Brown',1045,531,'13,44',2),('Panel HL','PHL4280WH','42(d)x80(w)',0,42,80,'White',1050,529,'16,8',2),('Panel HL','PHL52100BR','52(d)x100(w)',0,52,100,'Brown',1042,502,'20,8',2),('Panel HL','PHL52100WH','52(d)x100(w)',0,52,100,'White',1049,545,'26',2),('Panel HL','PHL52120BR','52(d)x120(w)',0,52,120,'Brown',1049,557,'24,96',2),('Panel HL','PHL52120WH','52(d)x120(w)',0,52,120,'White',1049,515,'31,2',2),('Panel HL','PHL5232BR','52(d)x32(w)',0,52,32,'Brown',1042,547,'6,656',2),('Panel HL','PHL5232WH','52(d)x32(w)',0,52,32,'White',1045,544,'8,32',2),('Panel HL','PHL5242BR','52(d)x42(w)',0,52,42,'Brown',1045,540,'8,736',2),('Panel HL','PHL5242WH','52(d)x42(w)',0,52,42,'White',1044,538,'10,92',2),('Panel HL','PHL5252BR','52(d)x52(w)',0,52,52,'Brown',1043,531,'10,816',2),('Panel HL','PHL5252WH','52(d)x52(w)',0,52,52,'White',1042,528,'13,52',2),('Panel HL','PHL5262BR','52(d)x62(w)',0,52,62,'Brown',1042,511,'12,896',2),('Panel HL','PHL5262WH','52(d)x62(w)',0,52,62,'White',1046,528,'16,12',2),('Panel HL','PHL5280BR','52(d)x80(w)',0,52,80,'Brown',1048,528,'16,64',2),('Panel HL','PHL5280WH','52(d)x80(w)',0,52,80,'White',1041,514,'20,8',2),('Panel HL','PHL62100BR','62(d)x100(w)',0,62,100,'Brown',1050,529,'24,8',2),('Panel HL','PHL62100WH','62(d)x100(w)',0,62,100,'White',1028,533,'31',2),('Panel HL','PHL62120BR','62(d)x120(w)',0,62,120,'Brown',1043,524,'29,76',2),('Panel HL','PHL62120WH','62(d)x120(w)',0,62,120,'White',1041,527,'37,2',2),('Panel HL','PHL6232BR','62(d)x32(w)',0,62,32,'Brown',1048,525,'7,936',2),('Panel HL','PHL6232WH','62(d)x32(w)',0,62,32,'White',1044,512,'9,92',2),('Panel HL','PHL6242BR','62(d)x42(w)',0,62,42,'Brown',1040,516,'10,416',2),('Panel HL','PHL6242WH','62(d)x42(w)',0,62,42,'White',1044,544,'13,02',2),('Panel HL','PHL6252BR','62(d)x52(w)',0,62,52,'Brown',1045,519,'12,896',2),('Panel HL','PHL6252WH','62(d)x52(w)',0,62,52,'White',1044,508,'16,12',2),('Panel HL','PHL6262BR','62(d)x62(w)',0,62,62,'Brown',1045,522,'15,376',2),('Panel HL','PHL6262WH','62(d)x62(w)',0,62,62,'White',1046,540,'19,22',2),('Panel HL','PHL6280BR','62(d)x80(w)',0,62,80,'Brown',1050,560,'19,84',2),('Panel HL','PHL6280WH','62(d)x80(w)',0,62,80,'White',1048,523,'24,8',2),('Panel LR','PLR3232BR','32(h)x32(d)',32,32,0,'Brown',1044,503,'4,096',2),('Panel LR','PLR3232WH','32(h)x32(d)',32,32,0,'White',1045,511,'5,12',2),('Panel LR','PLR3242BR','32(h)x42(d)',32,42,0,'Brown',1048,524,'5,376',2),('Panel LR','PLR3242WH','32(h)x42(d)',32,42,0,'White',1050,544,'6,72',2),('Panel LR','PLR3252BR','32(h)x52(d)',32,52,0,'Brown',1042,532,'6,656',2),('Panel LR','PLR3252WH','32(h)x52(d)',32,52,0,'White',1041,510,'8,32',2),('Panel LR','PLR3262BR','32(h)x62(d)',32,62,0,'Brown',1041,553,'7,936',2),('Panel LR','PLR3262WH','32(h)x62(d)',32,62,0,'White',1049,518,'9,92',2),('Panel LR','PLR4232BR','42(h)x32(d)',42,32,0,'Brown',1041,534,'5,376',2),('Panel LR','PLR4232WH','42(h)x32(d)',42,32,0,'White',1049,534,'6,72',2),('Panel LR','PLR4242BR','42(h)x42(d)',42,42,0,'Brown',1043,511,'7,056',2),('Panel LR','PLR4242WH','42(h)x42(d)',42,42,0,'White',1043,515,'8,82',2),('Panel LR','PLR4252BR','42(h)x52(d)',42,52,0,'Brown',1047,511,'8,736',2),('Panel LR','PLR4252WH','42(h)x52(d)',42,52,0,'White',1045,536,'10,92',2),('Panel LR','PLR4262BR','42(h)x62(d)',42,62,0,'Brown',1045,538,'10,416',2),('Panel LR','PLR4262WH','42(h)x62(d)',42,62,0,'White',1035,505,'13,02',2),('Panel LR','PLR5232BR','52(h)x32(d)',52,32,0,'Brown',1047,540,'6,656',2),('Panel LR','PLR5232WH','52(h)x32(d)',52,32,0,'White',1050,535,'8,32',2),('Panel LR','PLR5242BR','52(h)x42(d)',52,42,0,'Brown',1049,540,'8,736',2),('Panel LR','PLR5242WH','52(h)x42(d)',52,42,0,'White',1047,527,'10,92',2),('Panel LR','PLR5252BR','52(h)x52(d)',52,52,0,'Brown',1047,537,'10,816',2),('Panel LR','PLR5252WH','52(h)x52(d)',52,52,0,'White',1047,513,'13,52',2),('Panel LR','PLR5262BR','52(h)x62(d)',52,62,0,'Brown',1042,525,'12,896',2),('Panel LR','PLR5262WH','52(h)x62(d)',52,62,0,'White',1038,526,'16,12',2); /*!40000 ALTER TABLE `kitbox` 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 2020-05-18 10:00:39
<reponame>bgbilling/docker-billing GRANT ALL PRIVILEGES ON bgbilling.* TO 'bill'@'localhost' IDENTIFIED BY 'bgbilling'; -- GRANT ALL PRIVILEGES ON bgbilling.* TO 'bill'@'%' IDENTIFIED BY 'bgbilling'; GRANT PROCESS, RELOAD ON *.* TO 'bill'@'localhost'; -- GRANT PROCESS, RELOAD ON *.* TO 'bill'@'%';
USE project; CREATE OR REPLACE VIEW label_ratings AS SELECT label_name AS "Label Name", FORMAT(AVG(discogs_rating),2) AS "Average Discogs Rating", FORMAT(AVG(amazon_rating),2) AS "Average Amazon Rating", FORMAT(AVG(rollingstone_rating), 2) AS "Average Rolling Stone Rating", FORMAT((AVG(discogs_rating)+AVG(amazon_rating)+AVG(rollingstone_rating))/3, 2) AS "Aggregate Rating" FROM vinyllabel vl JOIN labels l USING(label_id) JOIN vinyl v ON vl.vinyl_id = v.vinyl_id JOIN ratings r ON r.vinyl_id = v.vinyl_id WHERE rollingstone_rating IS NOT NULL AND amazon_rating IS NOT NULL AND discogs_rating IS NOT NULL GROUP BY label_id ORDER BY ((AVG(discogs_rating)+AVG(amazon_rating)+AVG(rollingstone_rating))/3) DESC, label_name; SELECT * FROM label_ratings
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE VIEW [dbo].[vw_Jira_Issue_Label] AS SELECT [Label] ,[Issue_Id] ,[Update_Refresh_Id] FROM [dbo].[tbl_Jira_Issue_Label] GO GRANT SELECT ON [dbo].[vw_Jira_Issue_Label] TO [JiraRefreshRole] GO
<filename>test/gigadata.sql create table giga (n int);
SELECT name, email FROM users WHERE city = %(city)s;