sql
stringlengths
6
1.05M
<filename>Protein_Sequences/V_Protein_Collection_Member_Names_Export.sql<gh_stars>1-10 /****** Object: View [dbo].[V_Protein_Collection_Member_Names_Export] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Protein_Collection_Member_Names_Export] AS SELECT PCM.Protein_Collection_ID...
<filename>schema/verify/database_functions/graphile_worker_job_definer@v1.0.0-rc.5.sql -- Verify ggircs-portal:database_functions/graphile_worker_job_definer on pg begin; select pg_get_functiondef('ggircs_portal_private.graphile_worker_job_definer(text, json)'::regprocedure); rollback;
-- we define some OIDs we would like to poll INSERT INTO metrics (id, active, name, oid, description, export_as_label, post_processors, exported_name) VALUES (1, true, 'sysName', '.1.3.6.1.2.1.1.5.0', 'An administratively-assigned name for this managed node. By convention, it''s the node''s fqdn.', true, '{}', 'hostnam...
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/loader/schema_5.sql<gh_stars>10-100 -- WARNING: THIS FILE INTENTIONALLY CONTAINS MIXED \n AND \r\n NEWLINES! -- EDIT WITH NOTEPAD++ OR SIMILAR EDITOR CREATE FUNCTION public.gtsq_in(cstring) RETURNS gtsq AS '$libdir/tsearch2', 'gtsq_in' LANGUAGE...
/* Navicat MySQL Data Transfer Source Server : 本地连接 Source Server Version : 50617 Source Host : localhost:3306 Source Database : crm Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2015-06-30 01:01:03 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
<gh_stars>1-10 /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ alter table PID_PHYSICAL_ENTITY_NAME disable constraint SYS_C0016531; alter table PID_PHYSICAL_ENTITY_NAME disable constraint SYS_C0016532; alter t...
<filename>db.sql<gh_stars>10-100 -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 14, 2015 at 09:40 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
<filename>sql/_29_CTE_recursive/_03_complex_query_agg/cases/recursive_loop.sql -- This testcase use modified SQL Server samples. See below for the license: -- Copyright (c) Microsoft Corporation -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documenta...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2019 at 08:31 AM -- Server version: 10.1.38-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...
<reponame>invertedv/mortgage_imports INSERT INTO econ.unemp_msad_annotated SELECT a.dt, a.prop_msad_cd, a.unemp_rate, a.unemp_rate_chg, b.prop_msad_nm, b.prop_st, concat(substring(prop_city, 1, 1), lower(substring(prop_city, 2))) AS prop_city, b.prop_n...
<reponame>US-EPA-CAMD/easey-db-scripts -- Table: camdecmpswks.monitor_qualification_lee -- DROP TABLE camdecmpswks.monitor_qualification_lee; CREATE TABLE camdecmpswks.monitor_qualification_lee ( mon_qual_lee_id character varying(45) COLLATE pg_catalog."default" NOT NULL, mon_qual_id character varying(45) COL...
<filename>sql/table2tags_add_destination_list_tags.sql INSERT INTO table2tags(table_id,tag_id,table_name) VALUES (8,54,'destination'), (9,54,'destination'), (17,54,'destination'), (26,54,'destination'), (31,54,'destination'), (36,54,'destination'), (37,54,'destination'), (41,54,'destination'), (43,54,'destination'), (4...
SELECT o.order_date FROM orders o WHERE o.cid IN (SELECT c.cid FROM customers c INNER JOIN parent p USING (name) WHERE p.id = 1 LIMIT 1)
CREATE TABLE link_type ( id integer NOT NULL PRIMARY KEY, link character varying(32) NOT NULL )
<reponame>beat-boards/api-rust-old -- -- PostgreSQL database dump -- -- Dumped from database version 11.4 -- Dumped by pg_dump version 11.4 -- Started on 2019-08-03 03:02:48 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_confor...
USE [CarRental] GO /****** Object: Table [dbo].[Customers] Script Date: 1/03/2018 4:01:19 PM ******/ CREATE TABLE [dbo].[Customers]( [customerNo] [int] NOT NULL IDENTITY(00000,00001) PRIMARY KEY, [contractNo] [nchar](10) NOT NULL, [firstName] [nvarchar](50) NOT NULL, [lastName] [nvarchar](50) NOT NULL, [stre...
<reponame>Akiri-Surely/danteumbc -- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Creato il: Feb 22, 2017 alle 09:53 -- Versione del server: 10.1.16-MariaDB -- Versione PHP: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<gh_stars>0 -- ----------------------------------------------------- -- Schema teambuilder -- ----------------------------------------------------- -- ----------------------------------------------------- -- Schema teambuilder -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `teambu...
SELECT * FROM sys.cluster WHERE name = :name OR master_node = :master_node'); SELECT * FROM fetch_table SELECT test_int, test_string, test_datetime, test_array, test_object FROM fetch_table WHERE test_int = ? AND test_string = ? SELECT test_int FROM fetch_table ORDER BY test_int ASC SELECT * FROM sys.cluster'; SELECT *...
-- file:jsonb.sql ln:146 expect:true SELECT test_json ->> 2 FROM test_jsonb WHERE json_type = 'object'
-- https://support.microsoft.com/en-us/help/3026083/fix-sos-cachestore-spinlock-contention-on-ad-hoc-sql-server-plan-cache -- 上限に達しそうな場合は、 -T174 の利用を検討 SELECT name, type, table_level, buckets_count, buckets_in_use_count, CAST(buckets_in_use_count * 1.0 / buckets_count * 100 AS numeric(5,2)) AS bucket_usage_pe...
DROP TABLE b_posting_file GO DROP TABLE b_posting_group GO DROP TABLE b_posting_rubric GO DROP TABLE b_posting_email GO DROP TABLE b_posting GO DROP TABLE b_subscription_rubric GO DROP TABLE b_subscription GO DROP TABLE b_list_rubric GO DROP TABLE B_POSTING_LOCK GO
select count(*) from nulls3 where not bool_0 44
<filename>schemes/food-cart/ingredient_recipe_relation.sql<gh_stars>0 CREATE TABLE food_cart_db.ingredient_recipe_relation ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `ingredient_id` bigint(20) unsigned NOT NULL, `recipe_id` bigint(20) unsigned NOT NULL, `quantity` decimal(5,3) NOT NULL, `created_at` ...
CREATE TABLE `feedserver`.`Contact` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `last_name` VARCHAR(64), `first_name` VARCHAR(64), `email` VARCHAR(64), `rating` INTEGER UNSIGNED, PRIMARY KEY (`id`) ) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER TABLE `feedserver`.`Contact` ADD IND...
<gh_stars>10-100 SET SERVEROUTPUT ON SET VERIFY OFF SET ECHO ON SET TERMOUT OFF SET FEEDBACK OFF SET HEADING ON SET ESCAPE ON SET LINESIZE 10000; SET PAGESIZE 9999; SET trimspool on set long 1000000000 longc 60000 SPOOL &2 BEGIN DBMS_OUTPUT.ENABLE(9999999); DBMS_OUTPUT.NEW_LINE(); FOR REC IN (SELEC...
ALTER TABLE customers_addresses RENAME COLUMN customer_id TO owner_id;
<gh_stars>1-10 select engine from alicloud_rds_instance where db_instance_id = '{{ output.db_instance_id.value }}aa';
//// CHANGE name=change0 CREATE TABLE table89 ( id integer NOT NULL, field1 character varying(30), usertype0field usertype0, usertype4field usertype4 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table89 ADD CONSTRAINT table89_pkey PRIMARY KEY (id); GO
DROP TABLE IF EXISTS DEMODATA CASCADE; CREATE TABLE DEMODATA ( ID VARCHAR(255), NAME VARCHAR(255), SIZE INT, DATE DATE, FEEPCT VARCHAR(255), COUNTRY VARCHAR(255) ); INSERT INTO DEMODATA VALUES ( 'a76824f0-50c0-11eb-8be8-88e9fe6293fd', '<NAME>', 3006, DATE '2021-01-01', '28,42 %', 'UK' ), ( 'a7683a3a-5...
<filename>tests/queries/0_stateless/00919_sum_aggregate_states_constants.sql SELECT finalizeAggregation((SELECT sumState(number) FROM numbers(10)) + (SELECT sumState(number) FROM numbers(10))); SELECT finalizeAggregation((SELECT sumState(number) FROM numbers(10)) + materialize((SELECT sumState(number) FROM numbers(10))...
-- start_ignore drop table if exists dcl_messaging_test cascade; -- end_ignore create table dcl_messaging_test ( message_create_date timestamp(3) not null, trace_socket varchar(1024) null, trace_count varchar(1024) null, variable_01 varchar(1024) n...
<filename>sctp-core/src/main/resources/db/migration/V1.2.1.1633965540223__Update_procedure_closeDataImportSession_to_account_for_archived_records.sql DROP PROCEDURE IF EXISTS closeDataImportSession; DELIMITER $$ CREATE PROCEDURE closeDataImportSession(IN _session_id bigint) COMMENT 'Runs final checks (duplicates,...
<reponame>opengauss-mirror/openGauss-graph create schema hashfilter; set current_schema = hashfilter; START TRANSACTION; --create row table create table hashfilter_t1(a int not null, b varchar(10), c regproc); create table hashfilter_t2(a int not null, b varchar(10), c regproc); create table hashfilter_t3(a int not nu...
<gh_stars>10-100 h5format_convert error: unable to open dataset "nonexist"
<filename>_snippets/get_hackathon_teams_list.sql SELECT t.id AS team_id, t.captain_id, CONCAT(m.forename, " ", m.surname) AS capitan, t.created_by_id, CONCAT(u.forename, " ", u.surname) AS created_by, u.email AS created_by_email, t.name AS team_name, t.city AS team_city, FROM_UNIXTIME(t.created_at) AS...
-- phpMyAdmin SQL Dump -- version 4.6.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 01-08-2016 a las 18:26:40 -- Versión del servidor: 5.7.13-0ubuntu0.16.04.2 -- Versión de PHP: 5.6.24-1+deb.sury.org~xenial+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
<reponame>nabeelkhan/Oracle-DBA-Life REM AlertReceive.sql REM Chapter 12, Oracle9i PL/SQL Programming by <NAME> REM This block illustrates receiving an alert using DBMS_ALERT. set serveroutput on DECLARE v_AlertName VARCHAR2(30) := 'MyAlert'; v_Message VARCHAR2(100); v_Status INTEGER; BEGIN -- In order to rec...
<gh_stars>0 -- CreateEnum CREATE TYPE "Role" AS ENUM ('user', 'owner', 'admin'); -- CreateTable CREATE TABLE "Restaurant" ( "id" SERIAL NOT NULL, "title" VARCHAR(255) NOT NULL, "description" TEXT, "isVeg" BOOLEAN NOT NULL DEFAULT false, "ownerId" INTEGER NOT NULL, "createdAt" TIMESTAMP(3) NOT N...
CREATE SCHEMA IF NOT EXISTS `3dsessiondb` DEFAULT CHARACTER SET utf8; CREATE TABLE IF NOT EXISTS `3dsessiondb`.`Instance` ( `id` INT NOT NULL AUTO_INCREMENT, `externalId` VARCHAR(100) NOT NULL, `name` VARCHAR(50) NOT NULL, `description` VARCHAR(300) NULL, `creationTimeStamp` DATETIME NOT NULL, PRIMARY KEY ...
-- Function: adresse_search_json(text, integer, boolean, numeric, numeric, text, text, text) -- DROP FUNCTION @extschema@.adresse_search_json(text, integer, boolean, numeric, numeric, text, text, text); CREATE OR REPLACE FUNCTION @extschema@.adresse_search_json( q text, "limit" integer DEFAULT 1, autocomp...
CREATE KEYSPACE IF NOT EXISTS markets WITH REPLICATION = {'class' : 'NetworkTopologyStrategy','WITHOUT_REPLICATION' : 1}; CREATE TYPE IF NOT EXISTS markets.tickerprice ( open decimal, close decimal, min decimal, max decimal ); CREATE TYPE IF NOT EXISTS markets.tokenpair ( base text, quote text ); CREATE ...
<gh_stars>1-10 declare @var1 int, @var2 varchar(10) set @var1 = 10 set @var2 = CAST(@var1 as varchar) print @var2 set @var2 = '100' set @var1 = CAST(@var2 as int) print @var1 /* set @var2 = '1oo' set @var1 = CAST(@var2 as int) print @var1 */ set @var2 = CONVERT(varchar, @var1) print @var2 print convert(var...
/* */ CREATE OR REPLACE FUNCTION compare_table_struct ( p_TableName varchar2, p_RightSchema varchar2, p_LeftSchema varchar2, p_RightTableName varchar2 default null) return integer as l_left_schema varchar2(30); l_right_schema varchar2(30); l_left_table varchar2(30); l_right_table varch...
-- -- This function is meant to be replaced by the user, -- to allow special handling of CBOR types with no direct analogs in JSON. -- -- https://tools.ietf.org/html/rfc8949#section-6.1 -- CREATE OR REPLACE FUNCTION cbor.substitute_value(cbor bytea, major_type integer, additional_type integer) RETURNS jsonb LANGUAGE pl...
DROP VIEW IF EXISTS wfs_adgangsadresser CASCADE; CREATE OR REPLACE VIEW wfs_adgangsadresser AS SELECT a_id :: VARCHAR AS id, dar1_status_til_dawa_status(a_status) AS status, kommunekode, vejkode, vejnavn, formatHusnr(husnr) AS husnr, supplerendebynavn,...
<filename>business-services/collection-services/src/main/resources/db/migration/main/V20180820232855__create_collections_tables.sql DROP TABLE IF EXISTS "egcl_receiptheader" CASCADE; DROP INDEX IF EXISTS idx_rcpthd_consumercode; DROP INDEX IF EXISTS idx_rcpthd_createdby; DROP INDEX IF EXISTS idx_rcpthd_createddate; DRO...
-- changing profiles.dob from datetime to date ALTER TABLE `profiles` CHANGE `dob` `dob` DATE NOT NULL DEFAULT '0000-00-00'; -- changing profiles.profession from text to varchar ALTER TABLE `profiles` CHANGE `profession` `profession` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ;
COPY acs2009_3yr.tmp_geoheader FROM '/mnt/tmp/acs2009_3yr/g20093ak.txt' WITH ENCODING 'latin1'; COPY acs2009_3yr.tmp_geoheader FROM '/mnt/tmp/acs2009_3yr/g20093al.txt' WITH ENCODING 'latin1'; COPY acs2009_3yr.tmp_geoheader FROM '/mnt/tmp/acs2009_3yr/g20093ar.txt' WITH ENCODING 'latin1'; COPY acs2009_3yr.tmp_geoheader F...
<gh_stars>10-100 -- file:alter_table.sql ln:1949 expect:true DROP TABLE logged1
-- file:insert_conflict.sql ln:452 expect:true insert into selfconflict values (2,1), (2,2) on conflict do nothing
<filename>src/hg/lib/chromInfo.sql # chromInfo.sql was originally generated by the autoSql program, which also # generated chromInfo.c and chromInfo.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Chromosome names and sizes CREATE TABLE...
-- =================================================================== -- Copyright (C) 2001-2005 <NAME> <<EMAIL>> -- Copyright (C) 2004-2005 <NAME> <<EMAIL>> -- Copyright (C) 2005-2012 <NAME> <<EMAIL>> -- Copyright (C) 2010 <NAME> <<EMAIL>> -- Copyright (C) 2012 <NAME> <<EMAIL>> -- Copyright (C) 2014...
-- phpMyAdmin SQL Dump -- version 3.5.8.2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Июл 19 2014 г., 17:04 -- Версия сервера: 5.1.73 -- Версия PHP: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
DELIMITER / ALTER TABLE COI_NOTIFICATION ADD CREATE_USER VARCHAR(60) / DELIMITER ;
<reponame>IASA-GR/appdb-core /* Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.ap...
CREATE TABLE user_list ( name VARCHAR(30) PRIMARY KEY , email VARCHAR(30) , mobile VARCHAR(20) , password VARCHAR(16));
<filename>db/migrations/1514397430_add_extra_data.down.sql ALTER TABLE blocks DROP COLUMN block_extra_data;
<reponame>endeavourhealth/DataSharingManager drop table if exists data_sharing_manager.dds_dsa_map; create table data_sharing_manager.dds_dsa_map ( dds_uuid char(36) not null, dsm_uuid char(36) null, ods_code varchar(20) not null ); insert into data_sharing_manager.dds_dsa_map (dds_uuid, ods_code) values ('df7d...
<filename>ConfProfile/jni/strongswan/src/pool/sqlite.sql DROP TABLE IF EXISTS identities; CREATE TABLE identities ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, type INTEGER NOT NULL, data BLOB NOT NULL, UNIQUE (type, data) ); DROP TABLE IF EXISTS child_configs; CREATE TABLE child_configs ( id INTEGER N...
<reponame>eliana-flo/folio-analytics<filename>sql_metadb/migration_tables/inventory_instance_relationships.sql<gh_stars>1-10 DROP TABLE IF EXISTS inventory_instance_relationships; CREATE TABLE inventory_instance_relationships AS SELECT id::varchar(36), jsonb_extract_path_text(jsonb, 'instanceRelationshipTypeId...
/******************************************************************************** component-centric-delta-mrcm-attribute-domain-referencedcomponentid-exist-in-attribute-range-referencedcomponentid Assertion: ReferencedComponentId in MRCM ATTRIBUTE DOMAIN DELTA exists in the ReferencedComponentId values of MRCM AT...
CREATE TABLE `etl` ( `id` int NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(50) NOT NULL COMMENT '任务名称', `status` int DEFAULT '-1' COMMENT '状态,-1永远执行,0 不再执行 1执行并减1执行一次少一次', `description` varchar(1000) DEFAULT NULL COMMENT '描述', `handle_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT...
<gh_stars>1-10 CREATE TABLE [dbo].[DashboardDefinitionWidgets] ( [Id] INT CONSTRAINT [PK_DashboardDefinitionWidgets] PRIMARY KEY IDENTITY, [DashboardDefinitionId] INT NOT NULL CONSTRAINT [FK_DashboardDefinitionWidgets_DashboardDefinitionId] REFERENCES [dbo].[DashboardDefinitions] ([Id]) ON DELETE CASCADE...
<filename>resources/sql/autopatches/20150725.slowvote.mailkey.1.sql ALTER TABLE {$NAMESPACE}_slowvote.slowvote_poll ADD mailKey binary(20) NOT NULL;
<reponame>rune/pgFormatter SELECT 1, 2, 10, 'depesz', 'hubert', 'depesz', '<NAME>', '1 2 3 4'; SELECT tbl_lots.id, to_char(tbl_lots.dt_crea, 'DD/MM/YYYY HH24:MI:SS') AS date_crea FROM tbl_lots WHERE tbl_lots.dt_crea > CURRENT_TIMESTAMP - interval '1 day' AND tbl_lots...
drop table if exists fooaot; create table fooaot(a int, b int) with (appendonly=true); drop table if exists fooheap; create table fooheap(a int, b int); -- select * from gp_toolkit.__gp_is_append_only where iaooid = 'fooaot'::regclass; select * from gp_toolkit.__gp_is_append_only where iaooid = 'fooheap'::regclas...
<gh_stars>1-10 set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[spFFGetLines]')) DROP PROCEDURE [dbo].[spFFGetLines] GO -- ============================================= -- Author: <NAME>. -- Create date: -- Description: -- =====...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 23, 2021 at 05:57 PM -- Server version: 5.7.24 -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
/* Warnings: - A unique constraint covering the columns `[avatarId]` on the table `User` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE "User" ADD COLUMN "avatarId" INTEGER, ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, ADD COL...
<filename>books.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 07, 2018 at 03:29 PM -- Server version: 10.0.36-MariaDB-0ubuntu0.16.04.1 -- PHP Version: 7.0.32-4+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET ...
CREATE PROCEDURE create_vehicle @registration_number VARCHAR(16), @distributor_id INT, @vehicle_id INT OUT AS BEGIN DECLARE @vehiclesCount INT SELECT @vehiclesCount=COUNT(registration_number) FROM vehicles WHERE registration_number = @registration_number AND archived = 0 IF(@vehiclesCou...
-- phpMyAdmin SQL Dump -- version 4.6.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 17, 2016 at 03:08 PM -- Server version: 5.7.12-log -- PHP Version: 5.6.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<reponame>adurd001/codecademy-projects SELECT * FROM stream JOIN chat ON stream.device_id = chat.device_id;
<gh_stars>1-10 CREATE PROCEDURE [dbo].[GetDataFromAnotherServer] AS BEGIN SELECT * FROM [OtherServer].[AnotherDb].dbo.AnotherTable; END
<filename>SQL/master/form/Mi001/SPC_Mi001_ACT3.sql IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SPC_Mi001_ACT3]') AND type IN (N'P', N'PC')) /****** Object: StoredProcedure [dbo].[SPC_M001_ACT2] Script Date: 2017/11/23 15:16:49 ******/ DROP PROCEDURE [dbo].[SPC_Mi001_ACT3] GO /****...
<filename>integration_tests/tests/test_gemma_dates.sql WITH correct_results AS ( SELECT date AS date , month_last_day AS month_last_day , previous_month_first_day AS previous_month_first_day FROM {{ ref('models_gemma_dates_sample_results') }} ), test AS ( SELECT * FROM correct_results AS cr ...
CREATE EXTERNAL TABLE [fhir].[MedicinalProductPackaged] ( [resourceType] NVARCHAR(4000), [id] VARCHAR(64), [meta.id] NVARCHAR(100), [meta.extension] NVARCHAR(MAX), [meta.versionId] VARCHAR(64), [meta.lastUpdated] VARCHAR(64), [meta.source] VARCHAR(256), [meta.profile] VARCHAR(MAX), [...
-- etldoc: layer_housenumber[shape=record fillcolor=lightpink, style="rounded,filled", -- etldoc: label="layer_housenumber | <z14_> z14+" ] ; CREATE OR REPLACE FUNCTION layer_housenumber(bbox geometry, zoom_level integer) RETURNS TABLE ( osm_id bigint, geometry ...
-- based on the example in the formatting preferences of the Oracle SQL Developer 19.4 CREATE OR REPLACE PACKAGE BODY emp_mgmt AS tot_emps NUMBER; tot_depts NUMBER; FUNCTION hire(last_name IN VARCHAR2, job_id IN VARCHAR2, manager_id IN NUMBER, ...
use socatel; INSERT INTO so_user (user_id, locality_id, locality_id_parent, user_username, user_email, user_password, user_create_time, user_enabled, user_anonymized, user_role, organisation_id, user_org_role, user_personal_data_usage, user_profile, user_gender, user_descripti...
<reponame>pearma/java-demo-projects DROP TABLE IF EXISTS systeminfo; CREATE TABLE systeminfo ( id INT AUTO_INCREMENT PRIMARY KEY, system_id VARCHAR(250) NOT NULL, system_full_name VARCHAR(250) NOT NULL, system_short_name VARCHAR(250) DEFAULT NULL ); INSERT INTO systeminfo (sy...
CREATE INDEX selection_rate_index ON selection(rate); CREATE INDEX selection_round_index ON selection(round); CREATE INDEX selection_jury_id_index ON selection(jury_id); CREATE INDEX selection_page_id_index ON selection(page_id); CREATE INDEX monument_id_index ON monument(id);
<reponame>maheshp/gocd-database-migrator UPDATE modifications SET username = null, comment = null WHERE pipelineid IS NOT NULL AND username = 'Unknown' AND comment = 'Unknown'; --//@UNDO
COPY Company FROM 'PATHVAR/Company.csv' (DELIMITER '|', HEADER, FORMAT csv); COPY University FROM 'PATHVAR/University.csv' (DELIMITER '|', HEADER, FORMAT csv); COPY Continent FROM 'PATHVAR/Continent.csv' (DELIMITER '|', HE...
-- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: thinkphp -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@...
<reponame>SCM-SISTEMA/scm<filename>documentos/anexo/01.sql  CREATE TABLE comercial.tab_contrato_anexo ( cod_contrato_anexo bigserial NOT NULL, nome character varying(50), url character varying(120), cod_contrato_fk bigint, CONSTRAINT tab_contrato_anexo_pkey PRIMARY KEY (cod_contrato_anexo), CONSTRAINT tab_...
CREATE OR REPLACE VIEW olympiad_region_property_vw AS SELECT rp.id AS id ,rp.session_id AS region_id ,cv_term.name AS type ,rp.value AS value ,rp.create_date AS create_date FROM session_property rp JOIN cv_term ON (rp.type_id = cv_term.id) JOIN cv ON (cv_term.cv_id = ...
<gh_stars>0 USE AdventureWorks2014 GO -- Stored Procedure to find all created indexes. sp_helpindex '[HumanResources].[Department]' USE [SQL2] GO CREATE NONCLUSTERED INDEX [NC_Idx_People_lname_fname] ON [dbo].[People] (lname ASC, fname ASC) sp_helpindex People
<gh_stars>0 CREATE TABLE [Entries] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Created] DATETIME DEFAULT(GETDATE()) NOT NULL, [Disabled] BIT DEFAULT(1) NOT NULL, [DistinguishedName] NVARCHAR (400) NOT NULL, [Guid] UNIQUEIDENTIFIER DEFAULT(NEWID()) NOT NULL, [Identity] NVARCHAR (50) NOT NULL, [Saved] DATETIME DEFAULT(G...
<filename>schema.sql DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department( id INT UNSIGNED UNIQUE NOT NULL AUTO_INCREMENT, name VARCHAR(30) UNIQUE NOT NULL, PRIMARY KEY(id) ); CREATE TABLE role( id INT UNSIGNED UNIQUE NOT NULL AUTO_INCREMENT, ...
<filename>db/schema.sql<gh_stars>0 DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT AUTO_INCREMENT, burger_name VARCHAR (100), devoured BOOLEAN, PRIMARY KEY (id) );
<reponame>codinglightly/VotingTrees # lock tables before calling, unlock afterwards # TODO: what about pending?, test # r_result 1=success, 2=success and pending deleted, 3=to pending, 4=to pending and pending deleted, # -2=reserved, -3=user_id doesnt care, -4=already delegated # p_ parameters # v_ v...
<reponame>proteo5/p5Agent CREATE TABLE [dbo].[ETLControl] ( [Id] BIGINT NOT NULL, [EtlName] VARCHAR (50) NULL, [EtlId] VARCHAR (50) NULL, [StartRun] DATETIME2 (7) NULL, [FinishRun] DATETIME2 (7) NULL, [Status] VARCHAR (50) NULL, CONSTRAINT [PK_ETLControl] PRIMARY ...
-- phpMyAdmin SQL Dump -- version 2.11.11.3 -- http://www.phpmyadmin.net -- -- -- Generation Time: Sep 01, 2016 at 01:00 PM -- Server version: 5.0.96 -- PHP Version: 5.1.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- -- -- -------------------------------------------------------- -- -- Table str...
<reponame>getwasim/egov-smartcity-suites-test INSERT INTO eg_action (id, name, url, queryparams, parentmodule, ordernumber, displayname, enabled, contextroot, "version", createdby, createddate, lastmodifiedby, lastmodifieddate, application) VALUES (nextval('seq_eg_action'), 'Search And Show Marriage Registration Resul...
SELECT * FROM public.find_subscription( ${userEmail}, ${projectName}, ${eventType} );
<filename>plugins/userlogin/sql/userlogin_deinstall.sql DROP TABLE IF EXISTS `XXX_userlogin_texte`; ##b_dump##
CREATE TABLE `users` ( `id` bigint NOT NULL , `name` varchar(255), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE PROCEDURE dbo.LogSchemaMigrationProgress @message varchar(max) AS INSERT INTO dbo.SchemaMigrationProgress (Message) VALUES (@message) GO