sql
stringlengths
6
1.05M
<reponame>die-goncalves/gorestaurant-v2.0<gh_stars>0 begin; create table if not exists public.restaurants ( id uuid default uuid_generate_v4() not null, name text, phone_number text, coordinates json, address text, image text, place text, description text, created_at timestamp with ...
-- ------------------------------------------------------------------ -- Title: Select patientunitstayid from intakeoutput -- Notes: cap_leak_index/analysis/sql/IO_exclusion.sql -- cap_leak_index, 20190511 NYU Datathon -- eICU Collaborative Research Database v2.0. -- -------------------------------...
<reponame>nabeelkhan/Oracle-DBA-Life ------------------------------------------------------------------------------- -- -- Script: prevent_1555_wait.sql -- Purpose: to wait until old transactions have finished -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> (with thanks to <NAME> and <NAME> for -- pointing ...
<reponame>Travis2445/workout-tracker -- DROP DATABASE DROP DATABASE IF EXISTS workout_tracker_db; -- CREATE DATABASE CREATE DATABASE workout_tracker_db;
/* *Support the creation/deletion/update of data for the different users (customers, restaurant staff,delivery riders, and FDS managers). */ INSERT INTO Restaurant_Staff (rsid, rsname, rsposition, rsusername, rspassword, rid) VALUES (rsid, rsname, rsposition, rsusername, rspassword, rid); INSERT INTO Restaurant (rid...
/* Obtiene todos los mensajes de un turno Uso ejemplo: SELECT * FROM getMensajes(475); */ CREATE OR REPLACE FUNCTION public.getMensajes(_turno_id INTEGER) RETURNS TABLE( "id" INTEGER, "turno_id" INTEGER, "contenido" TEXT, "autor" INTEGER, "fecha" TIMESTAMP ) LANGUAGE 'plpgsql' AS $...
<gh_stars>0 /* MySQL is not case sensitive. So when naming */ SELECT SUM(POPULATION) FROM CITY WHERE district = 'California'
<reponame>SalmaFahiraZahra/laravellogin -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 03, 2019 at 03:00 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET ...
<reponame>lavynia1/LittlePets<gh_stars>0 create database clinica; use clinica; create table cliente( nome varchar(100), usuario varchar(60), email varchar(60), cpf varchar(11), telefone varchar(11), endereco varchar(200), senha varchar(60), constraint usuarioCPK primary key(usuario), constraint userC unique (usuario),...
@..\initspool rsf BREAK ON department_id COLUMN LAST_NAME FORMAT A20 PROMPT Employee Tree: Connect By WITH cby AS ( SELECT last_name, employee_id, manager_id, LEVEL lvl FROM employees START WITH employee_id = 100 CONNECT BY PRIOR employee_id = manager_id ORDER SIBLINGS BY last_name ) SELECT emp...
<reponame>PhilMcDaniel/SQL-Reference ALTER PROCEDURE usp_GenerateTableInsert @tbl NVARCHAR(100) = '' ,@sch NVARCHAR(100) = '' AS BEGIN SET NOCOUNT ON; --table for insert IF OBJECT_ID('tempdb..#tbl','U') IS NOT NULL BEGIN DROP TABLE #tbl END SELECT DB_NAME() db,s.name sch,t.name tbl,c.is_identity INTO #tbl FROM sys...
<reponame>carlos3g/URI-solutions SELECT customers.id, customers.name FROM customers WHERE not exists (SELECT locations.id_customers FROM locations WHERE locations.id_customers = customers.id);
<filename>source/common/functions/dbo.ufn_reportHTMLFomatTimeValue.sql RAISERROR('Create function: [dbo].[ufn_reportHTMLFormatTimeValue]', 10, 1) WITH NOWAIT GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ufn_reportHTMLFormatTimeValue]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT')) DR...
-- -- Base de données : `geststages` -- -- CAS 1 : BASE EN LOCAL (DECOMMENTER) CREATE DATABASE bdd_geststages; USE bdd_geststages ; -- CAS 2 : BASE HEBERGEE (DECOMMENTER) -- USE DABASENAME_HERE; -- -- Base de données : `geststages` -- -- -------------------------------------------------------- -- -- Structure d...
-- file:plpgsql.sql ln:4259 expect:true explain (verbose, costs off) select i, a from (select returns_rw_array(1) as a offset 0) ss, lateral consumes_rw_array(a) i
<reponame>Shuttl-Tech/antlr_psql -- file:privileges.sql ln:588 expect:true DROP DOMAIN testdomain3b
<filename>tests/root/run__var/17/test.sql SET @s := " var $x := 'IF(3 > 2, 23, 19)'; SELECT :$x INTO @res; "; call run(@s); select @res = 23;
-- 1. Elimine la tabla "empleados" si existe: DROP TABLE IF EXISTS empleados; -- 2. Cree la tabla: CREATE TABLE empleados( documento CHAR(8) NOT NULL, nombre VARCHAR(30) NOT NULL, sexo CHAR(1), domicilio VARCHAR(30), fechaingreso DATE, fechanacimiento DATE, sueldobasico DECIMAL(5,2) UNSIGNED, PRIMARY K...
ALTER TABLE db_version CHANGE COLUMN required_11733_01_mangos_spell_proc_event required_11754_mangos_mangos_string bit; DELETE FROM mangos_string WHERE entry IN (1192); INSERT INTO mangos_string VALUES (1192,'Effect movement',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
alter table CEDE_CUSTOMER add column ACTIVE boolean ^ update CEDE_CUSTOMER set ACTIVE = false where ACTIVE is null ; alter table CEDE_CUSTOMER alter column ACTIVE set not null ;
/* Navicat MariaDB Data Transfer Source Server : huabei3-1-mariadb-star Source Server Version : 50560 Source Host : localhost:3306 Source Database : star Target Server Type : MariaDB Target Server Version : 50560 File Encoding : 65001 Date: 2019-05-19 12:35:53 */ SET FOREIGN_KEY_C...
create table employee_attendence_records ( sr_no int primary key not null auto_increment, employee_code bigint(10) not null, e_cin_date varchar(12) not null, e_cin_time varchar(12) not null, e_cout_date varchar(12) default 'NULL', e_cout_time varchar(12) default 'NULL' ); alter table ...
<gh_stars>1-10 CREATE TABLE public.organizations ( id int8 NOT NULL, name varchar(255) NULL, tokenname varchar(255) NULL, CONSTRAINT organizations_pkey PRIMARY KEY (id) ); ALTER TABLE public.users add organization_id int8 not null; ALTER TABLE public.users ADD constraint fk_users_organization_id foreign KEY (org...
ALTER TABLE dns_record_mx_tls_evaluator_results ADD COLUMN last_checked DATETIME NOT NULL; SET SQL_SAFE_UPDATES = 0; UPDATE dns_record_mx_tls_evaluator_results drmter JOIN dns_record_mx_tls_profile_2 drmtp ON drmter.mx_record_id = drmtp.mx_record_id SET drmter.last_checked = drmtp.last_checked WHERE drmter.mx_record_...
/* Navicat Premium Data Transfer Source Server : MySQL-本地 Source Server Type : MySQL Source Server Version : 80021 Source Host : localhost:3306 Source Schema : micro_mall_shop Target Server Type : MySQL Target Server Version : 80021 File Encoding : 65001 Date: 18/07/...
-- Solicitud de registro de extensión áulica - Ticket #141 BEGIN; --!!! TRUNCATE registro_extension_aulica CASCADE; --------------------------------------- -- -- -- Credenciales INSERT INTO seguridad_rol_credenciales (rol_id, credencial_id) VALUES ( (SELECT id FROM seguridad_rol WHERE nombre = 'ReferenteJurisdiccio...
UPDATE user_profile SET alert_preference = 'NOTIFY_NEW_AND_REMINDERS' WHERE alert_preference = 'NOTIFY_ALL_EVENTS'; UPDATE user_profile SET alert_preference = 'NOTIFY_NEW_AND_REMINDERS' WHERE alert_preference = 'NOTIFY_NEW_EVENTS'; UPDATE user_profile SET alert_preference = 'NOTIFY_EVERYTHING' WHERE alert_preference = ...
-- @testpoint: opengauss关键字unlogged(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists unlogged; create synonym unlogged for explain_test; insert into unlogged values (1,'ada'),(2, 'bob'); update unlogged set unlog...
<reponame>nrdnisml/mitrasunatan -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Okt 2020 pada 09.47 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
<filename>server/migration/migrations/sqls/20180128192301-user-table-up.sql CREATE TABLE user_account ( id BIGSERIAL PRIMARY KEY, login text UNIQUE, name text );
SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.site_id AND q1...
<reponame>sundgaard-aws/aws-glue<gh_stars>0 create table trade ( trade_id int PRIMARY KEY NOT NULL AUTO_INCREMENT, trade_type varchar(30), trade_amount decimal, trade_ccy varchar(3), trade_date datetime, trader_id int, counterparty_id int ); insert into trade values(null, 'FXSPOT', 500000, ...
/* Zadatak 3 Napisati upit koji prikazuje titulu te spojeno ime i prezime osoba koje nemaju uneseno srednje ime. Ukoliko titula nije unesena */ USE AdventureWorks2014 SELECT FirstName + ' ' + LastName AS '<NAME>', ISNULL(Title, 'N/A') AS 'Titula' FROM Person.Person WHERE MiddleName IS NULL
CREATE TABLE IF NOT EXISTS `ob_event` ( `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '', `name` VARCHAR(255) NOT NULL COMMENT '', `description` LONGTEXT NULL DEFAULT NULL COMMENT '', `localisation` LONGTEXT NULL DEFAULT NULL COMMENT '', `date` TIMESTAMP NULL DEFAULT NULL COMMENT '', `participants_max` INT(1...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2019 at 02:57 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
#Lab: Functions, Triggers and Transactions /*1. Count Employees by Town Write a function ufn_count_employees_by_town(town_name) that accepts town_name as parameter and returns the count of employees who live in that town. Submit your queries using the “MySQL Run Skeleton, run queries and check DB” strategy. */ DELIMI...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2017 at 08:03 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<gh_stars>1-10 CREATE SCHEMA MYTODOLIST; CREATE TABLE MYTODOLIST.SPRING_SESSION ( SESSION_ID CHAR(36), CREATION_TIME BIGINT NOT NULL, LAST_ACCESS_TIME BIGINT NOT NULL, MAX_INACTIVE_INTERVAL INT NOT NULL, PRINCIPAL_NAME VARCHAR(100), CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (SESSION_ID) ); CREA...
<reponame>alfcrisci/mushroom-observer<filename>db/recreate.sql drop database observer_development; create database observer_development;
<reponame>okayjones/book-app DROP TABLE IF exists books; CREATE TABLE books ( id SERIAL PRIMARY KEY, author VARCHAR(255), title VARCHAR(255), isbn VARCHAR(255), img VARCHAR(255), description VARCHAR(3000) );
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES'; DROP FUNCTION IF EXISTS randomGaussian; DELIMITER // CREATE FUNCTION randomGaussian (mu DOUBLE, sigma DOUBLE) RETURNS DOUBLE NOT DETERMINISTIC NO SQL SQL SECURITY DEFINER COMMENT 'Returns a random number based on a normal (gaussian) distribution. (v1.00)...
-- 2021-04-05T22:36:35.340Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE WEBUI_KPI SET ES_Query='{ "size": 0, "aggs": { "agg": { "date_histogram": { "field": "DateOrdered", "calendar_interval": "day", "time_zone": "Europe/Berlin", "min_doc_count"...
-- 2018-03-03T12:30:46.726 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2018-03-03 12:30:46','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Accountings Export Format',WEBUI_NameBrowse='Accountings Export Format' WHERE AD_Menu_ID=541041 AND...
<filename>sql/updates/world/already_applied/12_04_23_quest_template.sql -- More quest fixes for Worgen starting zone. -- By <NAME> Arkania. -- Lockdown! UPDATE `quest_template` SET `Details`="What are you still doing here, citizen? Haven't you heard? The city's under complete lockdown.$B$BGo see Lieutenant Walden -- h...
/* * Copyright (c) 2016-2017 LabKey Corporation * * 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 l...
ALTER TABLE jiveRemoteServerConf ALTER COLUMN domain RENAME TO xmppDomain; ALTER TABLE jiveOffline ALTER COLUMN message RENAME TO stanza; ALTER TABLE jiveVCard ALTER COLUMN value RENAME TO vcard; ALTER TABLE jivePrivate ALTER COLUMN value RENAME TO privateData; ALTER TABLE jiveUser ALTER COLUMN password REN...
INSERT INTO impl_legalentities (LegalEntityGUID,LocationName,Address,City,StateID,ZipCode,CreatedUser,StatusID,CreatedDate,LocationURL,LocationPhone) VALUES ('7ae3b73b-05d4-11ec-a889-168500abc6d9','Care Delivery US',NULL,NULL,'TN',NULL,NULL,1,'2021-08-25 18:44:29',NULL,NULL);
<gh_stars>1-10 drop table address; drop table kanton; drop table topic_value; drop table topic; drop table advertiser; drop table field_type_choose; drop table field_type; drop table field_type_definition; drop table category; create table category ( category_id serial, description ...
---------------------------------------------------- -- Maintenance functions for db cleanup ---------------------------------------------------- CREATE OR REPLACE FUNCTION delete_import(BIGINT) RETURNS VOID AS $$ DECLARE i_import_id ALIAS FOR $1; -- ID des zurueckzuruderndes Managements BEGIN DELETE FROM import_ser...
CREATE TABLE IF NOT EXISTS __diesel_schema_migrations ( version VARCHAR(50) PRIMARY KEY NOT NULL, run_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP );
-- @author prabhd -- @created 2013-02-01 12:00:00 -- @modified 2013-02-01 12:00:00 -- @tags cte HAWQ -- @product_version gpdb: [4.3-],hawq: [1.1-] -- @db_name world_db -- @description test21a: Common name for CTEs and subquery alias WITH v1 AS (SELECT a, b FROM foo WHERE a < 6), v2 AS (SELECT * FROM v1 WHERE...
-- THIS FILE IS OUT OF DATE -- Database creation is now under the control of the Warehouse project. This -- file does not reflect the current schema of the PyPI service. -- NOTE: PyPI requires the citext extension SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_...
ALTER TABLE `Contests` ADD COLUMN `archived` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Indica si el concurso ha sido archivado por el administrador.';
<reponame>fossabot/cli-4 CREATE OR REPLACE VIEW alias_statistics AS SELECT stale.alias_id, stale.num_topics, stale.num_posts, stale.recent_post_id, stale.expiry FROM alias_statistics_mat AS stale WHERE CURRENT_TIMESTAMP < stale.expiry UNION ALL SELECT fresh.alias_id, fresh.num_topi...
<filename>db/seed.sql -- Set up initial table data ahead of time -- Drop database if already exists DROP DATABASE IF EXISTS employees_db; -- Create database CREATE DATABASE employees_db; -- Use the created database for the following queries USE employees_db; -- Create tables -- Department table. Has two columns, id, a...
<reponame>putraandhikab/Demodi-Adminn -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 23, 2021 at 05:25 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 03/11/2020 18:08:53 -- Generated from EDMX file: D:\MiW-UPM\net\TiendaVirtualAlejandro\TiendaVirtualAlejandro\Models\Model...
-- 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'; -- ----------------------------------------------------- -- Table `formats` ...
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 24, 2018 at 03:25 PM -- Server version: 5.5.39 -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<reponame>octonion/baseball-public -- Remove commas, convert to integer begin; update ncaa_pbp.player_summaries_pitching set pitches = replace(pitches, ',', ''); alter table ncaa_pbp.player_summaries_pitching alter column pitches type integer using (pitches::integer); commit;
CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%article_undo` LIKE `%TABLE_PREFIX%article`; CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%article_slice_undo` LIKE `%TABLE_PREFIX%article_slice`;
<reponame>dpmcclurg/ChangeSystemsDemo USE [demo] GO declare @lastchangedate datetime2(7); exec dbo._GetLastChangeDate @tablename = 'dbo.Product', @lastchangedate = @lastchangedate output; SELECT * FROM [dbo].[ProductChanges] (@lastchangedate) GO
<filename>src/test/resources/sql/alter_function/8d77b868.sql -- file:alter_table.sql ln:1628 expect:true alter function alter1.same(alter1.ctype, alter1.ctype) set schema alter2
<filename>datasource/src/main/resources/db/migration/V1__init_data.sql /* Navicat Premium Data Transfer Source Server : 192.168.100.80 Source Server Type : MySQL Source Server Version : 80027 Source Host : 192.168.100.80:3306 Source Schema : app Target Server Type : MySQL Targe...
create or replace function decode_b58(src text) returns bytea language plpgsql immutable strict parallel safe cost 20 as $$ declare mapBase58 int[] := '[50:123]={ 0,1,2,3,4,5,6,7,8,NULL,NULL,NULL,NULL,NULL,NULL, NULL,9,10,11,12,13,14,15,16,NULL,17,18,19,20,21,NULL, 22,23,24,25,26,27,28,29,30,31,32,NULL,NULL,NULL...
<gh_stars>1-10 -- ASUNTO: Guia 4 BBDD -- AUTOR: <NAME> -- LICENCIA: MIT license -- EJ 1 -- Listar nombre y teléfonos de cada escuela. SELECT Escuela, Telefono FROM EscuelasTelefonos t JOIN Escuelas e ON t.IdEscuela = e.IdEscuela; -- EJ 2 -- Listar Nombre y cantidad de Reservas reali...
<gh_stars>1-10 --This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details. * USERNAME_MAX_LENGTH =100 * WORKSPACE_ID_MAX_LENGTH =100 * CODINGSPECTATOR_VERSION_MAX_LENGTH =100 * REFACTORING_ID_MAX_LENGTH =100 * HUMAN_READABLE_TIMESTAMP_MAX_LENGTH =100 * RECORDER_...
-- insert into test_table values (1, 2, 3, 4, 5, 6); /* insert into test_table(a, 1b, c, d) */ values (1, 2, 3, 4), (1, 2, 3, 4), (1, 2, 3, 4), (1, 2, 3, 4); #insert into test_table values (1, 2), (3, 4, 5), (5, 6); insert into test_table select 1,2,3,4,5; select * from test_table; u...
SELECT * FROM (SELECT nan, number FROM system.numbers) WHERE number % 100 = 1 LIMIT 1;
-- we use transactions to make sure we don't leave cruft behind in case an insert fails -- make sure the correct iasql modules are installed or the tables won't exist -- this will be easier once we have https://github.com/iasql/iasql-engine/issues/468 -- AWS SECURITY GROUPS BEGIN; INSERT INTO security_group (descrip...
-- :name create_user :scalar insert into test."user"(user_name, password, salt, profile, status) values(@user_name, @password, @salt, @profile, @status); select 1;
<filename>unikee.sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Sam 16 Juin 2018 à 13:27 -- Version du serveur : 5.7.14 -- Version de PHP : 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
use FBD; DROP procedure IF EXISTS `resetRepeticao`; DROP trigger IF EXISTS `novaMusicaEmPlaylist`; -- -- Procedimento -- atualiza o numero de repeticoes da lista para 0 DELIMITER $$ USE `FBD`$$ CREATE PROCEDURE `resetRepeticao` (IN id_p int) BEGIN UPDATE playlist SET repeticoes = 0 WHERE idplaylist = id_p; END$$...
commit; call forward(@res);
-- ----------------------------------------------------- -- Question 10 -- ----------------------------------------------------- SELECT COUNT(DISTINCT Software.Name) AS SoftwareInstalled FROM Software INNER JOIN Licence INNER JOIN Consumer INNER JOIN ConsumerLocation INNER JOIN Location ON Software.SoftwareId = Licence...
a large sql command
<reponame>avdalyanvaghinak/Online_shop<filename>super_mag.sql -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Окт 17 2019 г., 12:36 -- Версия сервера: 5.7.27-0ubuntu0.18.04.1 -- Версия PHP: 7.2.19-0ubuntu0.18.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO...
<filename>data/geek_brains_shop.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Апр 20 2019 г., 09:44 -- Версия сервера: 10.1.37-MariaDB -- Версия PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 19, 2018 at 01:56 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 02, 2020 at 09:37 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>python/parse_ddl/tests/ddl_examples/ddl_type_examples.sql<gh_stars>0 -- ============================================= -- TYPES -- ============================================= CREATE TYPE SSN FROM varchar(11) NOT NULL ; CREATE TYPE [schema].[LocationTableType] AS TABLE ( LocationName VARCHAR(50) ...
<filename>so/rubber_ducking/move-db-files/get-srv-defaults.sql -- reading through this a few months later, -- I'm not sure where I plagiarized it from -- but I'm sure it needs attribution declare @DefaultData nvarchar(512); exec master.dbo.xp_instance_regread N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLS...
CREATE TABLE IF NOT EXISTS `levels` ( `guild` VARCHAR(18) NOT NULL, `user` VARCHAR(18) NOT NULL, `exp` BIGINT NULL, PRIMARY KEY (`guild`, `user`))
OPTIMIZE TABLE some_table; OPTIMIZE TABLE some_table1, some_table2; OPTIMIZE NO_WRITE_TO_BINLOG TABLE some_table; OPTIMIZE NO_WRITE_TO_BINLOG TABLE some_table1, some_table2; OPTIMIZE LOCAL TABLE some_table; OPTIMIZE LOCAL TABLE some_table1, some_table2;
<reponame>DevSazal/tweets-crud-restful-api-laravel-v8-15<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 24, 2020 at 08:28 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMI...
/* Version 1.0.1 Tenant migration script */ CREATE UNIQUE NONCLUSTERED INDEX IX_Site ON [dbo].[Site] ( [TenantId], [Name] ) ON [PRIMARY] GO CREATE UNIQUE NONCLUSTERED INDEX IX_Role ON [dbo].[Role] ( [SiteId], [Name] ) ON [PRIMARY] GO CREATE UNIQUE NONCLUSTERED INDEX IX_Profile ON [dbo].[Profile] ( [Sit...
<filename>Chapter05/28_groups_error_when_group_by_is_missing.sql SELECT SubcategoryName , COUNT(*) as RecordCount FROM #src
<filename>src/test/resources/sql/drop_rule/cdb453c7.sql -- file:rules.sql ln:1092 expect:true DROP RULE hat_nosert ON hats
CREATE TABLE IF NOT EXISTS `chii_subject_interests` ( `interest_id` int(10) unsigned NOT NULL, `interest_uid` mediumint(8) unsigned NOT NULL, `interest_subject_id` mediumint(8) unsigned NOT NULL, `interest_subject_type` smallint(6) unsigned NOT NULL DEFAULT '0'...
<filename>test/fixtures/parser/bigquery/array_agg_ignore_nulls.sql SELECT ARRAY_AGG(x IGNORE NULLS) AS array_agg FROM t
-- 客户基本信息维护log触发器 create or replace trigger tiger_basic_customer_info after update on basic_customer_information for each row declare -- local variables here begin if :new.chinese_name != :old.chinese_name then insert into customer_maintenancee_log values (sys_guid(),:new.id,:new.modify_user,nu...
<filename>skating_elt/ddl/table/f_perf_aspect_score.sql<gh_stars>0 CREATE OR REPLACE TABLE `your-project.skating.f_perf_aspect_score` ( perf_aspect_score_id INT64 NOT NULL, perf_aspect_id INT64 NOT NULL, judge_id INT64 NOT NULL, score FLOAT64 NOT NULL);
SELECT fn_db_add_column('vds_static', 'flash_cache', 'BOOLEAN');
<reponame>edson061193/school-php -- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.6.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNE...
CREATE TABLE `test` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL, `age` INT NOT NULL, `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE `name` (`name`) ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET...
-- Deploy ggircs-portal:view_ciip_fuel to pg -- requires: table_form_result begin; create or replace view ggircs_portal.ciip_fuel as ( with x as ( select form_result.application_id, form_result.version_number, json_array_elements((form_result)::json) as fuel_data, (form_resu...
<reponame>nathnael/cats  CREATE PROCEDURE [sp_sel_UserProfile] AS SELECT [UserProfileID], [UserName], [Password], [FirstName], [LastName], [GrandFatherName], [ActiveInd], [LoggedInInd], [LogginDate], [LogOutDate], [FailedAttempts], [LockedInInd], [LanguageCode], ...
<filename>conf/schema.sql<gh_stars>1-10 DROP TABLE IF EXISTS `ports`; CREATE TABLE `ports` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sid` char(50), `timeTicks` bigint(12), `time` datetime DEFAULT NULL, `ipaddress` varchar(255) DEFAULT NULL, `hostname` ...
// A sample schema containing data types that are not supported and edge cases // Drop and recreate the keyspace DROP KEYSPACE IF EXISTS quirky; CREATE KEYSPACE quirky WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; use quirky; CREATE TABLE valid_sample (id uuid PRIMARY KEY, col_one text...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50725 Source Host : 127.0.0.1:3306 Source Schema : shop Target Server Type : MySQL Target Server Version : 50725 File Encoding : 65001 Date: 14/...