sql
stringlengths
6
1.05M
delimiter / TRUNCATE TABLE COST_SHARE_TYPE / INSERT INTO COST_SHARE_TYPE (COST_SHARE_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID) VALUES (1,'funded','admin',NOW(),UUID()) / INSERT INTO COST_SHARE_TYPE (COST_SHARE_TYPE_CODE,DESCRIPTION,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID) VALUES (2,'Mandatory - Spe...
USE rml; DROP TABLE IF EXISTS rml.Country; CREATE TABLE Country (Code VARCHAR(2), Name VARCHAR(100), Lan VARCHAR(10), PRIMARY KEY (Code,Lan)); INSERT INTO Country (Code, Name, Lan) VALUES ('BO', 'Bolivia, Plurinational State of', 'EN'); INSERT INTO Country (Code, Name, Lan) VALUES ('BO', 'Estado Plurinacional de Bolivi...
<reponame>gagbo/shaken<gh_stars>1-10 SELECT * FROM local_songs ORDER BY id DESC LIMIT 1;
# Campaigns data set # --- !Ups INSERT INTO Campaigns (name, title, contents_text, destination_url, created, modified, deleted, deleted_date) VALUES ('キャンペーン1', '美空ひばり', '愛燦燦', 'http://app-liv.jp', now(), now(), 0, now()), ('キャンペーン2', 'テリー・ボジオ', 'テリー・ボジオホジホジ', 'http://ad.app-liv.jp', now(), now(), 0, now()), ('キャンペーン3...
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1141621240197292034', 'punchcard', 'system', '[0],[system],', '考勤打卡', '', '/punchcard', '99', '2', '1', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pc...
SELECT SIZE(ARRAY(1,2,3)); SELECT SIZE(MAP(“NAME”,”SWETHA”,”AGE”,30)); select explode(subordinates) from employees where firstname='Vitthal'; select firstname, exp.subordinates from employees LATERAL VIEW explode(subordinates) exp as subordinates where firstname='Vitthal';
CREATE FOREIGN TABLE prep_insert_stream (x float8, y int, z int) SERVER pipelinedb; CREATE VIEW prep_insert0 AS SELECT COUNT(*) FROM prep_insert_stream; CREATE VIEW prep_insert1 AS SELECT sum(x::float8) AS fsum, sum(y::int8) AS isum FROM prep_insert_stream; CREATE VIEW prep_insert2 AS SELECT sum(x::integer) AS isum, s...
-- sub create-table-distributions( ) CREATE TABLE IF NOT EXISTS 'distributions' ( 'recman-src' TEXT NOT NULL, 'meta' TEXT NOT NULL, 'identity' TEXT NOT NULL, 'name' TEXT NOT NULL, 'ver' TEXT NOT NULL, 'auth' ...
<reponame>Shuttle/Shuttle.Sentinel exec RegisterPermission 'sentinel://data-stores/manage' exec RegisterPermission 'sentinel://messages/manage' exec RegisterPermission 'sentinel://monitoring/manage' exec RegisterPermission 'sentinel://queues/manage' exec RegisterPermission 'sentinel://schedules/manage' exec RegisterPe...
-- INSERÇÃO DE DADOS NA TABELA Departamentos INSERT INTO Departamentos VALUES(10,1018,'RH','<NAME>'); INSERT INTO Departamentos VALUES(12,1215,'Administrativo','<NAME>'); INSERT INTO Departamentos VALUES(15,1550,'Financeiro','<NAME>'); INSERT INTO Departamentos VALUES(18,1888,'TI','<NAME>'); INSERT INTO Departamen...
<filename>scripts/scriptbd.sql CREATE TABLE `usuarios`( `idusuario` int NOT NULL AUTO_INCREMENT, `nombre` varchar(50), `direccion`varchar(50), `telefono` int, `correo`varchar(50), `constrasena`varchar(50), PRIMARY KEY(`idusuario`) ); CREATE TABLE `productos`( `idproducto` int NOT NULL AUTO_INCREMENT, `nombre` ...
<reponame>pe2mbs/example_webapp_angular BEGIN TRANSACTION; INSERT INTO tracking VALUES(1,'single.user','gn_role',1,6,'2020-12-14 04:53:37.598164','{"R_ID": 6, "R_ROLE": "Test Automation engineer","R_REMARK": ""}'); INSERT INTO tracking VALUES(2,'single.user','gn_role',3,3,'2020-12-14 04:55:06.155922','{"R_ID": 3, "R_RO...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-05-2020 a las 10:52:56 -- Versión del servidor: 10.1.40-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<filename>tawarin.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 28 Feb 2022 pada 19.50 -- Versi server: 10.4.22-MariaDB -- Versi PHP: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
SELECT DISTINCT name FROM trip WHERE city = 'Москва' ORDER BY name ASC;
<gh_stars>10-100 alter table account alter column username type varchar(255); alter table account add column mongo_id varchar(200); alter table tournament alter column director_id type varchar(255); alter table tournament_team alter column added_by type varchar(255); alter table tournament_match alter column added_by ...
DROP TABLE preferences;
<gh_stars>1-10 CREATE TABLE `tsms_posts` ( `pid` int(11) unsigned NOT NULL AUTO_INCREMENT, `tid` int(11) unsigned DEFAULT NULL, `message` text COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `date` datetime DEFAULT NULL, `blacklisted` tinyint(1) unsigned NOT NULL DEFAULT 0, `poster_uid` int(11) unsigned DEF...
<reponame>Foxpips/LayeredArchitecture -- ============================================= -- Author: <NAME> -- Create date: 25/11/2010 -- Description: Adds a new promotion code to the -- database -- ============================================= CREATE PROCEDURE [dbo].[h3giAddFAIPromotionCode] @clubName VARC...
SELECT code AS id, name, open_date, close_date FROM {hscic}.regional_teams
-- file:dependency.sql ln:44 expect:true DROP TABLE deptest
<gh_stars>0 ALTER INDEX OPGE.POGE_CAMBESTBOLSAS_I01 REBUILD; ALTER INDEX OPGE.POGE_CAMBESTBOLSAS_I02 REBUILD; ALTER INDEX OPGE.POGE_CAMBESTBOLSAS_PK REBUILD; exec dbms_stats.gather_table_stats('OPGE', 'POGE_CAMBESTBOLSAS', CASCADE => TRUE, ESTIMATE_PERCENT => 5,degree => 4);
UPDATE script_texts SET language=1, emote=14 WHERE entry=-1000356;
-- DROP DATABASE DROP DATABASE IF EXISTS lorecraft_db; -- CREATE DATABASE CREATE DATABASE lorecraft_db;
-- Inserting IDs manually here so it's easy to populate the course_user table. insert into courses values (1, '2018-01-04'::timestamp, 'Introduction to Biology', array['science', 'hands-on']), (2, '2020-11-12'::timestamp, 'Python 101', array['programming', 'snakes', 'code']), (3, '2019-05-28'::timestamp, 'Organi...
SELECT procs.subject_id as person_id, 0 as procedure_concept_id, procs.proc_dt as procedure_date, 0 as procedure_type_concept_id, NULL as modifier_concept_id, NULL as quantity, NULL as provider_id, NULL as visit_occurrence_id, procs.code as procedure_source_value, NULL as proce...
-- MySQL Script generated by MySQL Workbench -- Tue Nov 7 22:18:40 2017 -- Model: webapi_stub Version: 1.3.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...
create or replace function import_img(filename text, alt text default '', dirname text default './articles/img/') returns void as $$ declare filepath text := dirname || filename ;; img bytea := pg_read_binary_file(filepath);; begin if (alt <> '') IS NOT TRUE then alt := file...
CREATE TABLE people ( id BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY, version BIGINT NOT NULL, first_name VARCHAR(25) NOT NULL, middle_name VARCHAR(25), last_name VARCHAR(25) NOT NULL, date_of_birth TIMESTAMP NOT NULL, married B...
CREATE OR REPLACE SYNONYM EMPLOYEE FOR A.EMPLOYEE; SHOW ERRORS;
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
CREATE OR REPLACE FUNCTION fn_borrado_contest_category() RETURNS Trigger AS $$ DECLARE cant INTEGER; BEGIN SELECT count(*) INTO cant FROM profile_contest pc WHERE pc.contest_id = OLD.contest_id AND pc.category_id = OLD.category_id; IF (cant > 0) THEN RAISE EXCEPTION 'La categoría que quiere el...
-- Drops the todolist if it exists currently -- DROP DATABASE IF EXISTS scheduler; -- Creates the "todolist" database -- CREATE DATABASE scheduler;
# # TABLE STRUCTURE FOR: tb_pegawai # DROP TABLE IF EXISTS `tb_pegawai`; CREATE TABLE `tb_pegawai` ( `nip` varchar(15) NOT NULL, `nama_lengkap` varchar(30) NOT NULL, `alamat` varchar(100) NOT NULL, `no_telp` varchar(20) NOT NULL, `level` varchar(20) NOT NULL, `aktif` varchar(2) NOT NULL, PRIMARY KEY (`n...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-11-2018 a las 01:48:35 -- Versión del servidor: 5.7.17 -- Versión de PHP: 7.1.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 17, 2018 at 02:34 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* Warnings: - Added the required column `message` to the `Notification` table without a default value. This is not possible if the table is not empty. - Added the required column `title` to the `Notification` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER ...
<filename>deliveries/delivery-2/populate/populate_job_group.sql insert into job_group (id, name) values (1, 'Office and Clerical'); insert into job_group (id, name) values (2, 'Officials and Administrators'); insert into job_group (id, name) values (3, 'Paraprofessionals'); insert into job_group (id, name) values (4, '...
prompt Importing table t_migraciones... set feedback off set define off insert into t_migraciones (ID_MIGRACION, DESCRIPCION) values ('mig_000030', 'Suscripción a mensajes de amigos.'); prompt Done.
SET client_min_messages TO error; select datname from pg_database where datname not like 'template%' and datname <> 'postgres';
<gh_stars>1-10 use usuariodb; INSERT INTO usuario (acesso, cargo, carteira_de_trabalho, celular, cpf, data_nascimento, departamento, email, cep, cidade, logradouro, numero, uf, estado_civil, matricula, nome, password, rg, sobrenome) VALUES ('Admin', 'TI', '987654', '62 987654321', '11122233344', '01/01/2000', 'TI', '<E...
<gh_stars>1-10 SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO --============================================= -- Copyright (C) 2018 <NAME>, @SQLDoubleG -- All rights reserved. -- -- You may alter this code for your own *non-commercial* purposes. You may -- republish altered code as long as you give due credit. -- ...
<filename>Resources/DdlFiles/Tables/Create/StepOneQuestionnaireAuthorizationToConnectOrInterim_ATC_PendingItems.ddl CREATE TABLE IF NOT EXISTS StepOneQuestionnaireAuthorizationToConnectOrInterim_ATC_PendingItems ( StepOneQuestionnaireAuthorizationToConnectOrInterim_ATC_PendingItems_ID INTEGER PRIMARY KEY , Step...
<reponame>ks-yuzu/codecheck-20592 -- table: user -- select non deleted users -- column "password" should not be contained -- パスワードを持たない...? -- DB のパターンから 100件中, 88 件のパスワードを持たないレコードがどれか判断できなかった select * from user where (deleted_at is null) and (password like "");
use zoo; CREATE TABLE animal( animal_id INT PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, especie VARCHAR(60) NOT NULL, sexo VARCHAR(10) NOT NULL, idade INT NOT NULL, localizacao VARCHAR(60) NOT NULL ) ENGINE=InnoDB; -- ------------------------------------------- use zoo; CREATE TABLE ...
<gh_stars>0 -- ---------------------------------------- -- -- CLEAR DOWN THE TABLE -- -- ---------------------------------------- TRUNCATE TABLE `script_binding`; -- ---------------------------------------- -- MySQL dump 10.13 Distrib 5.5.37, for Win32 (x86) -- -- Host: localhost Database: mangos...
<gh_stars>1-10 CREATE FUNCTION filter_sql_command() RETURNS TRIGGER as $$ BEGIN RAISE EXCEPTION 'cannot perform SQL command on events table: %', TG_OP; END; $$ LANGUAGE plpgsql;
<reponame>juantg98/Fotos -- -- Copyright (c) 2012 Google Inc. -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except -- in compliance with the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applic...
<reponame>GeekXin-coder/OA<gh_stars>1-10 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80018 Source Host : localhost:3306 Source Schema : demo-oa Target Server Type : MySQL Target Server Version : 80018 File Encod...
<filename>xo/queries/postgres/topic-alternate-name.sql SELECT hb.id AS tct_id, hb.display_name, hh.name FROM hit_basket hb INNER JOIN hit_hit hh ON hb.id = hh.basket_id ORDER BY display_name, name
//// CHANGE INDEX name=tab1ind1 db.table1.createIndex( { "orderDate" : 1.0, "category" : 1.0 } , { "name" : "tab1ind1", "collation" : { "locale" : "fr", "caseLevel" : false, "caseFirst" : "off", "strength" : 2, "numericOrdering" : false, "alternate" : "non-ignorable", "maxVariable" : "punct", "normalization" : false,...
<reponame>pdv-ru/ClickHouse<filename>tests/queries/0_stateless/01230_join_get_truncate.sql DROP TABLE IF EXISTS join_test; CREATE TABLE join_test (id UInt16, num UInt16) engine = Join(ANY, LEFT, id) settings join_any_take_last_row = 1; INSERT INTO join_test (id, num) SELECT number, number FROM system.numbers LIMIT 10...
-- -- extension update file from 1.0 to 1.1 -- -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION pgautofailover UPDATE TO 1.1" to load this file. \quit ALTER TABLE pgautofailover.formation ADD COLUMN number_sync_standbys INT NOT NULL DEFAULT 1; DROP FUNCTION pgauto...
-- ========================================== -- ========================================== -- Define tables ============================ -- ========================================== -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Table: osmuser -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- DROP TABLE osmuser; C...
<gh_stars>0 --create database tables CREATE TABLE employee ( emp_id INT PRIMARY KEY, first_name VARCHAR(40), last_name VARCHAR(40), birth_day DATE, sex VARCHAR(1), salary INT, super_id INT, branch_id INT ); CREATE TABLE branch ( branch_id INT PRIMARY KEY, branch_name VARCHAR(40), mgr_id INT, mgr_start_dat...
<reponame>chumpon-asaneerat/DMT.Server /*********** Script Update Date: 2021-03-20 ***********/ /****** Object: Table [dbo].[TSB] Script Date: 20/3/2564 19:09:26 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[TSB]( [TSBId] [nvarchar](5) NULL, [TSB_Th_Name] [nvarchar](20) NULL, [T...
create sequence hibernate_sequence start with 1 increment by 1 create table DirectoryEntry ( id integer not null, path varchar(255), primary key (id) ) create table MediaEntry ( id integer not null, added date, audioTrack varchar(255), currentEpisode i...
CREATE TABLE IF NOT EXISTS revenue( id int NOT NULL AUTO_INCREMENT PRIMARY KEY, id_location int, date timestamp, sum decimal, CONSTRAINT FK_REVENUE_LOCATION FOREIGN KEY(id_location) references location(id) );
<filename>install/sql/_ml_main.sql CREATE TABLE `[prefix]_ml_main` ( `id` int(10) UNSIGNED NOT NULL, `tag` varchar(64) DEFAULT NULL, `value` varchar(1024) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `[prefix]_ml_main` (`id`, `tag`, `value`) VALUES (2, 'site_title', 'EASY 2.0 Loginsystem'), (...
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.6.16) # Database: teil_crm_dev # Generation Time: 2014-04-20 11:24:29 +0000 # ********************************************...
-- Changing the view definition in this file does not do anything - this is just a copy of the SQL used to create the view in BQ WITH vera AS ( SELECT application, version, deployed_timestamp, CASE WHEN SUBSTR(deployer, 0, 10)='naiserator' THEN REGEXP_EXTRACT(deployer, r'\((.*)\)') ...
<gh_stars>10-100 # 2.0.96 DELETE FROM VideoRevisionEvent WHERE contributor_id IN (SELECT id FROM Contributor WHERE locale = 'AR'); DELETE FROM WordRevisionEvent WHERE contributor_id IN (SELECT id FROM Contributor WHERE locale = 'AR'); DELETE FROM SignOnEvent WHERE contributor_id IN (SELECT id FROM Contributor WHERE lo...
<reponame>Msas12/Project-2<gh_stars>1-10 INSERT INTO adoptable (dogName, age, breed, gender, temper, spayed, pending) VALUE ("Shiloh", 8, "Beagle mix", "Male", "loyal", true, false); INSERT INTO adoptable (dogName, age, breed, gender, temper, spayed, pending) VALUE ("Petey", 9, "Schipperke mix", "Male", "timid", true, ...
CREATE TABLE IF NOT EXISTS tacoma_officers ( id SERIAL PRIMARY KEY, date DATE, first_name VARCHAR(100), last_name VARCHAR(100), title VARCHAR(100), department VARCHAR(100), salary VARCHAR(50) ); COPY tacoma_officers (last_...
<reponame>CefasRepRes/ices_vms_logbook_datacall<filename>eflalo/msql_eflalo_spe.sql /* Script to create EFLALO SPECIES LANDINGS DETAIL TABLE dataset from IFISH2 SQL server database By: <NAME> , <NAME> Code by: <NAME>, <NAME> Contact: <EMAIL>, <EMAIL> Date: 25/Jan/2017 Update Date: 29/Jan/2019 , Updated by:...
SET pagesize 0 SET heading OFF SET feedback OFF SET verify OFF SELECT to_char(sum( NVL(a.bytes - NVL(f.bytes, 0), 0)), 'FM99999999999999990') retvalue FROM sys.dba_tablespaces d, (select tablespace_name, sum(bytes) bytes from dba_data_files group by tablespace_name) a, (select tablespace_name, ...
<gh_stars>0 --Tabla host_reas --1)crear secuencia del id CREATE SEQUENCE public.host_area_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 5 CACHE 1; ALTER TABLE public.host_area_id_seq OWNER TO postgres; --2)crear tabla de las areas CREATE TABLE public.host_area ( id bigint NOT NUL...
<filename>Ex2.sql -- 2. Select all boxes with a value larger than $150. -- where is a condition that must be met select * from boxes where (value)>150;
ALTER TABLE PARTY_STRUCT_RULE DROP CONSTRAINT FK_PARTY_STRUCT_RULE_DIM; ALTER TABLE PARTY_STRUCT_RULE DROP COLUMN DIM_ID; ALTER TABLE PARTY_STRUCT_RULE DROP CONSTRAINT PK_PARTY_STRUCT_RULE; ALTER TABLE PARTY_STRUCT_RULE ALTER COLUMN PARENT_TYPE_ID SET NULL; ALTER TABLE PARTY_STRUCT_RULE ADD COLUMN ID BIGINT; A...
CREATE TABLE gspanother.A_TABLE ( A_ID SERIAL NOT NULL, B_ID BIGINT, C_ID BIGINT, TEST_NAME VARCHAR(100), TEST1 VARCHAR(100), TEST2 VARCHAR(500), TEST3 VARCHAR(500), PRIMARY KEY (A_ID) ); COMMENT ON table gspanother.A_TABLE is 'A_TABLE'; COMMENT ON column gspanother.A_TABLE.A_ID is 'A_ID'; COMMENT ON co...
<filename>tests/queries/0_stateless/00570_empty_array_is_const.sql SELECT dumpColumnStructure([]); SELECT dumpColumnStructure([[[]]]); SELECT DISTINCT dumpColumnStructure([[], [1]]) FROM numbers(2);
-- CREATE DATABASE IF NOT EXISTS `dataset` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; -- USE `dataset`; -- ---------------------------- -- Table structure -- ---------------------------- CREATE TABLE IF NOT EXISTS `data_subject` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT '主题ID', `gmt_create` datetime N...
<gh_stars>0 /***************************** * Vertica Analytic Database * * exportdata User Defined Functions * * Copyright HP Vertica, 2013 */ -- Step 1: Cleanup DROP LIBRARY IF EXISTS exportdata CASCADE; DROP LIBRARY IF EXISTS ParallelExport CASCADE;
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_12_mysql_compatibility/_04_numeric_functions/_01_trigonometrical_functions/cases/_q2003_atan.sql select atan(0) from db_root; select atan(1) from db_root; select atan(-1) from db_root; select atan2(0,0) from db_root; select atan2(0,1) from db_root; select atan2(0,-1)...
<reponame>amirul1000/browse-with-proxy-server-in-php<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 05, 2021 at 08:42 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; S...
UPDATE mapnik_styles SET RuleMinScale = 1 WHERE RuleMinScale IS NULL OR RuleMinScale = ''; UPDATE mapnik_styles SET LayerMinScale = 1 WHERE LayerMinScale IS NULL OR RuleMinScale = ''; UPDATE mapnik_styles SET RuleMaxScale = 1000000000 WHERE RuleMaxScale IS NULL OR RuleMaxScale = ''; UPDATE mapnik_styles SET LayerMaxSca...
<filename>DataBaseScripts/Queries/SP_getUserByUsername.sql create or alter proc SP_getUserByUsername @pUsername varchar(50) as begin begin try select u.Username, u.UserType from dbo.activeUsers as u where u.Username = @pUsername return 1 end try begin catch return @@Error * -1 end catch end
<reponame>DamolAAkinleye/ADF.procfwk EXEC [procfwkHelpers].[SetDefaultPipelines];
<reponame>PatelTarachand/lms_laravel<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 28, 2021 at 04:02 PM -- Server version: 8.0.23-0ubuntu0.20.04.1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0;...
\echo # Loading the jobs definition -- the jobs entity definition CREATE TABLE IF NOT EXISTS jobs ( id serial primary key , created_at timestamp with time zone default now() not null , updated_at timestamp with time zone default now() not null , run_at timestamp with time zone default now() not null , status text not ...
<reponame>akshat-khare/dbfordbms<filename>check.sql grant ALL on attendancedata to group_13 ; grant ALL on statewiseattendance to group_13 ; grant ALL on agriculture to group_13 ; grant ALL on compiled_attendance to group_13 ; grant ALL on distoconsti to group_13 ; grant ALL on districtipcdata to group_13 ; grant ALL o...
-- -- PostgreSQL database cluster dump -- SET default_transaction_read_only = off; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; \connect webapi -- -- PostgreSQL database dump -- -- Dumped from database version 10.4 (Debian 10.4-2.pgdg90+1) -- Dumped by pg_dump version 10.4 (Debian 10.4-2.pgd...
/* QUERYS PRA RODAR NO BD PRA SUBSTITUIR CAMPOS DE CASO VAZIO PRA -1 E ALTERAR PRA INTEIRO */ UPDATE caso SET obitosCaso = `-1` WHERE obitosCaso = ``; UPDATE caso SET suspeitosCaso = `-1` WHERE suspeitosCaso = ``; UPDATE caso SET confirmadosCaso = `-1` WHERE confirmadosCaso = ``; ...
-- DDL CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `female` tinyint(1) DEFAULT NULL, `birthday` datetime DEFAULT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `employee` ( `id` int(11) NOT NULL AUTO_INCREMENT, `employee_sn` char(32) NOT NULL, `user_id` int(11) N...
drop view if exists edm_consent_view; drop view if exists edm_consents_view; /* consent table has some duplicate rows, where a consent has multiple outlets or effluents this causes problems when joining on consent id, so just remove the duplicates, and assign location of the spill to the the first consent */ crea...
-- file:strings.sql ln:214 expect:true SELECT OVERLAY('yabadoo' PLACING 'daba' FROM 5 FOR 0) AS "yabadabadoo"
select * from pg_catalog.pg_tables pt where pt.schemaname = 'pg_catalog'; select * from pg_catalog.pg_tables pt where pt.schemaname = 'api'; select * from pg_catalog.pg_views pv where pv.schemaname = 'api'; select user; -- select "$user"; select '$user'; select '{Alex,Sonia}'::text[] As name; select unnest('{Ale...
CREATE TABLE blog ( id INTEGER NOT NULL, userid INTEGER NOT NULL, created TIMESTAMP(0), story VARCHAR(256), CONSTRAINT glob_pkey PRIMARY KEY (id) ); CREATE TABLE groups ( groupid integer NOT NULL, role varchar(30) NOT NULL, CONSTRAINT groups_pkey PRIMARY KEY (groupid) ); CREATE TABLE u...
alter table IMPORTDATA_IMPORT_FILE drop column IMPORT_DATE cascade ;
INSERT INTO 'parent' values (null, "ꗜ씙덝鈿屿筚鶠ꐀ쵵窾", "뙐审甘뒍鮈뙺놙䂯拒讬ꏪ넪넏釯⦨", 0.512479, 0.219152, -1434289616); INSERT INTO 'parent' values (null, "貗还ㅧ⛐젴╉뮇펣駘韂", "ꆓ葍ᯯ⛣鉨倿퐑헃苢ᶰ韆䡈읐汘ꊊ", 0.748130, 0.601210, 1704370823); INSERT INTO 'parent' values (null, "튅촻骂逮Ꞣ纱깅㍔退탆", "能敉ȸ롟駏톞㞾➶䍿첽윻⚞痧Ꮩ䤜", 0.188180, 0.998563, -2126480112); INSERT INTO 'pa...
/* Copyright © 2012 - 2014 <NAME>, <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
<reponame>ciphereck/teiid-spring-boot CREATE DATABASE customer OPTIONS (ANNOTATION 'Customer VDB'); USE DATABASE customer; CREATE SERVER mydb TYPE 'NONE' FOREIGN DATA WRAPPER "amazon-athena"; CREATE SCHEMA accounts SERVER mydb; SET SCHEMA accounts; IMPORT FOREIGN SCHEMA sampledb FROM SERVER mydb INTO accounts OPTIO...
CREATE PROCEDURE SP985(OUT MYCOUNT INTEGER) SPECIFIC SP985_114697 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE105;SELECT COUNT(*)INTO MYCOUNT FROM TABLE34;SELECT COUNT(*)INTO MYCOUNT FROM TABLE319;SELECT COUNT(*)INTO MYCOUNT FROM...
CREATE FUNCTION func635() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE257);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE105);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE205);val:=(SELECT COUNT(*)INTO MYCOU...
CREATE TABLE if not exists `<pre>permission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(25) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `<pre>permission` (`id`, `title`) VALUES (1, 'canAdminCP'), (2, 'canAdminPlayers'), (3, 'canAdminConfig'), (4, 'canAdminRoute');
<filename>sql/_13_issues/_15_1h/cases/bug_bts_14002.sql get optimization level into :c; drop table if exists sinfo,sscore,scourse; create table sinfo(id bigint auto_increment,name varchar(20),address varchar(100) , telephone char(11)) auto_increment=07010010 reuse_oid; insert into sinfo select null,null,null,null from...
-- @testpoint: 定义表名和列名为C drop table if exists C; create table C( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(50) default null, c_varchar varchar(20), c_varchar2 varcha...
<filename>Exercise1-DataDefinitionAndDataTypes/CarRental/PopulateTables.sql INSERT INTO Categories (CategoryName, DailyRate, WeeklyRate, MonthlyRate, WeekendRate) VALUES ('Exotic', 4, 14.5, 51.33, 7.9), ('Off-Road', 3.1, 13, 49.6, 5.8), ('SUV', 2.45, 11.85, 47, 4.7) INSERT INTO Cars (PlateNumber, Manufacturer, Model, ...
<filename>MyBestBooks/BestBooks/Programmability/Stored Procedures/DeleteBookType.sql CREATE PROCEDURE [dbo].[DeleteBookType] @Id int = 0 AS BEGIN DELETE FROM BookType WHERE BookTypeId=@Id END
select name, count(Volume.id) as acquired_volumes from Library left join Volume on Library.id = source_library_id group by Library.id, Library.name order by acquired_volumes desc;