sql
stringlengths
6
1.05M
STOP SLAVE; CHANGE MASTER TO MASTER_HOST='mysql-1', MASTER_AUTO_POSITION=1, MASTER_USER='replication', MASTER_PASSWORD='password', MASTER_CONNECT_RETRY=1, MASTER_RETRY_COUNT=300; -- 5 minutes start slave;
<filename>internal/clients/instruments/delete-instrument.sql delete from instruments_instrument where instruments_instrument.id = $id
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 19, 2019 at 09:40 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
version https://git-lfs.github.com/spec/v1 oid sha256:77df464411b031e5a4484b4e043c53f507baa08ba961ba175fc326c3b4423c6b size 705
<filename>scripts/db/migrations/up/002-org_user.sql create table org_user ( user_id uuid not null, username varchar not null, org_id uuid not null, person_profile_id uuid not null, create_app_i...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50725 Source Host : 127.0.0.1:3306 Source Schema : Xita6699_v1 Target Server Type : MySQL Target Server Version : 50725 File Encoding : 65001 Date: 05/01/202...
<gh_stars>0 DROP DATABASE IF EXISTS mvcblog_db; CREATE DATABASE mvcblog_db;
<reponame>FernandoPucci/Nickolas<filename>Scripts/MODULO_APLICACAO.sql SELECT A.SEQ_APLICACAO , A.APLICACAO , A.DESCRICAO , M.SEQ_MODULO , M.MODULO , M.SIGLA , M.DESCRICAO FROM APLICACAO A , MODULO M WHERE A.SEQ_MODULO = M.SEQ_MODULO AND M.SEQ_MODULO = 2; SELE...
<filename>hasura/migrations/default/1645485481601_insert_into_public_exchange/down.sql DELETE FROM "public"."exchange" WHERE "id" = 'af5e0bb7-317b-4e8b-8e6c-e86ed90f64b2';
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2018 at 03:51 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<reponame>KimKulot/psychic INSERT INTO `vadmin_navsub` (`nav_id`, `title`, `table`) VALUES (19, 'Clients', 'inbound_messages'); ALTER TABLE `vadmin_specs` ADD COLUMN `navsub_id` INT(11) UNSIGNED DEFAULT NULL AFTER `table`; INSERT INTO `vadmin_specs` (`table`, `navsub_id`, `type`, `value`) VALUES('inbound_messages', 3...
;with ff as ( SELECT x, y, ROW_NUMBER() OVER(ORDER BY x,y) as id FROM Functions ) SELECT x, y FROM ff f1 WHERE EXISTS ( SELECT 1 FROM ff f2 WHERE f2.y = f1.x AND f2.x = f1.y AND f2.id <> f1.id AND (f1.x <> f1.y OR f1.id < f2.id) ) AND x <= y ORDER BY x, y
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 11 Nov 2020 pada 06.09 -- Versi server: 5.7.24 -- Versi PHP: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 02, 2018 at 08:37 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
SET SERVEROUTPUT ON BEGIN UPDATE EMPLOYEE_DETAIL SET SALARY = salary+(salary * 0.15) WHERE DEPTNO = 10 dbms_output.put_line(TO_Char(SQL%ROWCOUNT)||'employees affected.'); END; /
<filename>db/seeds.sql<gh_stars>1-10 INSERT INTO burgers (burger_name) VALUES ('Mega Avocado Burger'); INSERT INTO burgers (burger_name) VALUES ('Spicy Bacon'); INSERT INTO burgers (burger_name) VALUES ('Chicken&Waffle'); SELECT * FROM burgers;
<filename>limit_exercises.sql #1Create a new SQL script named limit_exercises.sql. use employees; select database (); #2. List the first 10 DISTINCT last name sorted in descending order. SELECT DISTINCT `last_name` FROM employees ORDER BY last_name DESC LIMIT 10; # Zykh, Zyda, Zwicker, Zweizig, Zumaque, Zulner, Z...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 08, 2022 at 01:19 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>10-100 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2018-01-17 21:07:13 -- 服务器版本: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
-- original: spellfix.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE VIRTUAL TABLE t1 USING spellfix1 ;INSERT INTO t1(word) VALUES(sub_word) ;CREATE TABLE vocab(w TEXT PRIMARY KEY); INSERT INTO vocab SELECT word FROM t1 ;SELECT next_char('re','vocab','w') ;SELECT next_char('re','(SELECT...
<filename>FhirToDataLake/scripts/sql/Resources/CoverageEligibilityResponse.sql<gh_stars>10-100 CREATE EXTERNAL TABLE [fhir].[CoverageEligibilityResponse] ( [resourceType] NVARCHAR(4000), [id] VARCHAR(64), [meta.id] NVARCHAR(4000), [meta.extension] NVARCHAR(MAX), [meta.versionId] VARCHAR(64), [me...
-- 三张表 DROP TABLE IF EXISTS `province`; CREATE TABLE IF NOT EXISTS `province` ( `id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL DEFAULT '' COMMENT '省份名称', `province_code` mediumint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '省份代码', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
<gh_stars>100-1000 -- +migrate Up ALTER TABLE "short_link" ADD COLUMN "og_title" VARCHAR(200), ADD COLUMN "og_description" VARCHAR(200), ADD COLUMN "og_image_url" VARCHAR(200), ADD COLUMN "twitter_title" VARCHAR(200), ADD COLUMN "twitter_description" VARCHAR(200), ADD COLUMN "twitter_image_url" ...
<gh_stars>1000+ CREATE TABLE bar (ready bool not null); -- name: CTEFilter :many WITH filter_count AS ( SELECT count(*) FROM bar WHERE ready = $1 ) SELECT filter_count.count FROM filter_count;
USE homework_db; ​ INSERT INTO department (department_name); VALUES ("DevTeam"), ("HR"), ("Finance"); ​ INSERT INTO role (title, salary, department_id) VALUES ("Senior Dev", 100000, 1), ("Team lead", 85000, 1), ("HR person", 110000, 2), ("Engineer", 120000, 1), ("CPA", 75000, 3);...
SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = ecmdb, pg_catalog; INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('001', '010', 'TORINO', 'TO'); INSERT I...
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspSearchEntityNetworkNetwork') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE uspSearchEntityNetworkNetwork GO /* uspSearchEntityNetworkNetwork * * Advanced Search, in network, with optional filters and including the Network Connections in...
CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_carrier` ( `id_carrier` int(11) NOT NULL, `id_prestafraud_carrier_type` int(11) NOT NULL, PRIMARY KEY (`id_carrier`, `id_prestafraud_carrier_type`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_payment` ( `id_module` int(11...
USE employee_trackerDB; INSERT INTO department (name) VALUES ("QA"), ("Development"), ("Sales"); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("Frank", "Gibbs", 5, 6), ("Dan", "Wildes", 6, 5); INSERT INTO role (title, salary, department_id) VALUES ("Engineer", 80000, 8), ("Intern", 60000,...
CREATE TABLE storeshop ( id CHAVE NOT NULL, id_store CHAVE NOT NULL, id_shop CHAVE NOT NULL, CONSTRAINT pk_storeshop PRIMARY KEY (id) );
<reponame>UnstableMutex/WorkTemp CREATE TABLE [dbo].[MainTable] ( [ID] INT NOT NULL PRIMARY KEY DEFAULT next value for MainTablePKSeq, [Name] VARCHAR(50) NOT NULL )
create or replace package body pa_orcas_xtext_model is procedure build is begin null; end; end; /
create table ab(a int, b int);
<filename>_includes/tutorials/serialization/ksql/code/tutorial-steps/dev/create-avro-movies.sql CREATE STREAM movies_avro WITH (KAFKA_TOPIC='avro-movies', VALUE_FORMAT='avro') AS SELECT * FROM movies_json;
-- -- PostgreSQL database dump -- -- Dumped from database version 10.1 -- Dumped by pg_dump version 11.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', '', fal...
CREATE OR REPLACE FUNCTION "GETDECCOORDS" (collobjid in varchar2 ) return MYNUMTYPE pipelined as type rc is ref cursor; dlat number; dlong number; mem varchar2(30); name_cur rc; begin open name_cur for 'select dec_lat, dec_long,max_error_units FROM ...
BEGIN; ALTER TABLE operations ADD COLUMN platform_id varchar(100) NOT NULL DEFAULT ''; COMMIT;
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_23_apricot_qa/_01_sql_extension3/_06_merge_statement/cases/_03_merge_using_subquery1.sql --normal case: merge into target table using source subquery, merge condition autocommit off; --target table create table target( name char(20), id char(20), edate date,...
<gh_stars>0 create table "user" ( id bigserial constraint user_pk primary key, name varchar not null, access_token varchar(32) not null ); create unique index user_access_token_uindex on "user" (access_token); create table category ( id serial constraint categor...
WITH MultiLinkSections AS ( SELECT RouteSectionId FROM RouteLink RL WHERE RL.FromStopPointRef = "9300BRB" AND RL.ToStopPointRef = "9300ARD" AND RL.RouteSectionId IN ( SELECT RL.RouteSectionId FROM RouteLink RL GROUP BY RL.RouteSectionId HAVING COUNT(*) > 1 ) ), Vehi...
<reponame>arjunolachery/vsocialci<filename>assets/messenger/id3473025_main.sql -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 01, 2018 at 06:03 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET ...
<filename>closedaydata/OLD/IAT1908190935.sql INSERT INTO pos_itemtemp VALUES("IATT190002090","193009","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1908190935","NHO2018000007","PAID","LV 2","193009"), ("IATT190002090","193054","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1908190...
/* * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "cqltest.h" -- use this for both normal eval and SQLite eval #define EXPECT_SQL_TOO(x) EXPECT(x); EXPECT((select x)...
<filename>database/python/worker/update.sql UPDATE coffee.altitude_meters am SET low = t.altitude, mean = t.altitude, high = t.altitude FROM ({select}) as t WHERE t.id = am.id;
<reponame>purbon/docker-playground -- table with declared columns: CREATE TABLE users ( id BIGINT PRIMARY KEY, gender VARCHAR, region_id BIGINT, profile_id BIGINT ) WITH ( KAFKA_TOPIC = 'users', PARTITIONS = 1, REPLICAS = 1, VALUE_FORMAT = 'JSON' ); CREATE TABLE region ( ...
ALTER TABLE users ADD blocked TINYINT DEFAULT 0;
-- Demonstration B -- Step 1: Open a new query window to the TSQL database USE TSQL; GO -- Step 2: Using functions -- Select and execute the following to -- demonstrate using the sample function -- Note: dbo.GetNums() takes as parameters: @low (bigint) and (@high) bigint SELECT * FROM dbo.GetNums(10,20); GO -- Step...
<gh_stars>1-10 // @author <NAME> (minor modifications) // This Cypher Query Language (CQL) Script is for // loading another sample (WikiData) RDF-like sample of SemMedDb data // semmed_all_associated_with_sentences_1.tsv // // The script uses the CSV loader functionality of Neo4j. // // See the DATALOADING_R2.3_READ...
 CREATE PROCEDURE dbo.spTeams_Insert @TeamName nvarchar(50), @id int = 0 output AS BEGIN SET NOCOUNT ON; INSERT INTO dbo.Teams (TeamName) VALUES (@TeamName); SELECT @id = SCOPE_IDENTITY(); END
<gh_stars>10-100 ALTER TABLE `pexcard_transaction` ADD `transferToOrFromAccountId` int(11) unsigned DEFAULT NULL; ALTER TABLE `pexcard_transaction` ADD `transactionType` varchar(50) DEFAULT NULL; ALTER TABLE `pexcard_transaction` ADD `isPending` int(1) DEFAULT NULL; ALTER TABLE `pexcard_transaction` ADD `isDecline` int...
-- file:jsonb.sql ln:113 expect:true CREATE TEMP TABLE test_jsonb ( json_type text, test_json jsonb )
<gh_stars>10-100 CREATE OR REPLACE FUNCTION pgl_ddl_deploy.queue_ddl_message_type() RETURNS "char" LANGUAGE sql IMMUTABLE AS $function$ SELECT 'Q'::"char"; $function$ ;
SELECT h2.name objectcsid, cc.objectnumber, h1.name mediacsid, mc.description, b.name, mc.creator creatorRefname, mc.creator creator, mc.blobcsid, mc.copyrightstatement, mc.identificationnumber, mc.rightsholder rightsholderRefname, mc.rightsholder rightsholder, mc.contributor FROM media_common mc LEFT OUTER JOIN med...
/* ICC/Rotface - Place all Puddle Stalkers on the ground */ UPDATE `creature` SET `position_z` = 360.469 WHERE `id` = 37013;
INSERT INTO country ( id , alpha2_code , alpha3_code , name , demonym , continent_id ) VALUES ( ?.id , ?.alpha2Code , ?.alpha3Code , ?.name , ?.demonym , ?.continentId );
<filename>wct-core/db/legacy/upgrade/upgrade-postgres-1_4-to-1_4_1.sql<gh_stars>10-100 ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_subject character varying(255); ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_overwrite_from boolean DEFAULT FALSE NOT NULL; ALTER TABLE DB_WCT.PERMISSI...
<filename>.setup/schema.1.cql -- To run: -- cqlsh --ssl -f schema.1.cql -- SCRP -- drop keyspace scrp; --CREATE KEYSPACE scrp WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1': '2'} AND durable_writes = true; --Use this for production create keyspace scrp WITH REPLICATION = { 'class':'NetworkTopologyStr...
DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id; insert into @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date) select @target_cohort_id as cohort_definition_id, op1.person_id as subject_id, datefro...
<reponame>opitzconsulting/orcas create table tab_a ( tab_a_id number(9) not null, constraint pk_tab_a primary key (tab_a_id) ); create table tab_ref ( tab_a_id number(8), constraint fk_tab_del_cas_tab_a_id foreign key (tab_a_id) references tab_a (tab_a_id) on delete cascade ); create table tab_new...
CREATE TABLE IF NOT EXISTS certificate.certificates ( _id serial primary key, uuid uuid NOT NULL DEFAULT uuid_generate_v4 (), identity_id varchar NOT NULL, -- renamed to identity_uuid in later migration operator_id varchar NOT NULL, -- renamed to operator_uuid in later migration territory_id varchar NOT NULL, -- r...
CREATE PROCEDURE [dbo].[EnsureIpAddressFactsExist] @addresses [dbo].[IpAddressFactTableType] READONLY AS BEGIN SET NOCOUNT ON; DECLARE @results TABLE ( [Id] INT NOT NULL, [Address] VARBINARY(16) NOT NULL, [TextAddress] NVARCHAR(45) NOT NULL, INDEX IX_Results NONCLUSTERED ([Id], [Address], [TextAd...
select count(*) from games; -- game analysis select race, opponentrace, count(*) as matches, sum(if(result = "Victory", 1, 0)) / count(*) as win_percent, format(avg(mmr), 2) as avg_match_making_rating, format(avg(apm), 2) as avg_apm from players group by 1,2 order by 1,2; -- compvecs select race, ...
-- Compute the count of all unique participants in AoU -- that have at least one measurement. SELECT COUNT(DISTINCT person_id) AS number_of_participants_with_measurements FROM `{DATASET}.measurement`
<filename>grassroot-webapp/src/main/resources/db/scripts/script_71_rollback.sql<gh_stars>10-100 ALTER TABLE event ALTER COLUMN start_date_time DROP NOT NULL;
<reponame>dsrhub/utask -- +migrate Up DROP INDEX "task_resolver_usernames_idx", "task_watcher_usernames_idx"; -- See section 8.14.4 relative to jsonb indexing: -- https://www.postgresql.org/docs/9.4/datatype-json.html CREATE INDEX "task_watcher_usernames_idx" ON "task" USING gin (watcher_usernames jsonb_path_ops); CR...
<filename>openGaussBase/testcase/SQL/DATATYPE/jsonb/Opengauss_Function_Datatype_Jsonb_Case0073.sql -- @testpoint: 通用函数:jsonb_extract_path_text(返回由path_elems指向的JSON值,同操作符 #>>,当入参不合理时,合理报错) --jsonb_extract_path_text函数,入参合理 select jsonb_extract_path_text('{"f2":{"f3":1},"f4":{"f5":99,"f6":"stringy"}}', 'f4','f6'); select...
BEGIN TRANSACTION; CREATE TABLE "Restaurant_Info" ( `restaurant_id` INTEGER PRIMARY KEY AUTOINCREMENT, `restaurant_name` TEXT ); INSERT INTO `Restaurant_Info` VALUES (1,'Wendy''s'); INSERT INTO `Restaurant_Info` VALUES (2,'<NAME>'); INSERT INTO `Restaurant_Info` VALUES (3,'Burger King'); INSERT INTO `Restaurant_Info`...
CREATE SCHEMA pgpw_test AUTHORIZATION postgres;
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2020 at 08:14 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>Wbondar/techsupport-db CREATE VIEW view_issue AS SELECT issue.id AS id , issue.issued_at AS issued_at , issue.issued_by AS issued_by , COALESCE(comment.content, 'Description of the issue is missing.') AS content FROM issue JOIN comment ON issue.id = comment.issue_id WHERE comment.id = 1 AN...
WITH stargazers AS ( SELECT * FROM {{ref('github_stargazers')}} ) SELECT * FROM stargazers
<reponame>nevosial/HackerRank /* Enter your query here. Please append a semicolon ";" at the end of the query and enter your query in a single line to avoid error. select (select count(CITY) as num1 from STATION - select count(DISTINCT(CITY)) as num2 from STATION) as totalcount); SELECT (SELECT COUNT(*) FROM ... ...
<filename>database.sql # Host: 192.168.127.12 (Version 5.7.21-0ubuntu0.16.04.1) # Date: 2018-07-09 12:57:55 # Generator: MySQL-Front 5.4 (Build 4.153) - http://www.mysqlfront.de/ /*!40101 SET NAMES utf8 */; # # Structure for table "child" # CREATE TABLE `child` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, ...
<gh_stars>1-10 -- Table: public.contracts ALTER DATABASE active_record; DROP TABLE IF EXISTS public.persons; DROP SEQUENCE IF EXISTS persons_id_seq; CREATE SEQUENCE persons_id_seq; CREATE TABLE public.persons ( person_id integer NOT NULL DEFAULT nextval('persons_id_seq'), first_name character varying(100) ...
 /* <<property_start>>Description * converts xref:sqldb:reference.additional_reference_object_t.adoc[] into xref:sqldb:repo.repoobject.adoc[] <<property_end>> */ CREATE View [repo].[RepoObject_external_src] As Select --PK: RepoObject_guid T1.RepoObject_guid , is_repo_managed = 1 , RepoObject_name...
<filename>public.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : PostgreSQL Source Server Version : 90601 Source Host : localhost Source Database : wlblog Source Schema : public Target Server Type : PostgreSQL Target Server Version : 9...
<reponame>Jac0bDeal/Pikamon create table if not exists trainers ( id string not null constraint trainers_pk primary key ); create table if not exists pokemon ( id integer not null constraint pokemon_pk primary key autoincrement, trainer string not null constraint "pokemon_trai...
-- file:date.sql ln:245 expect:true SELECT EXTRACT(MILLENNIUM FROM DATE '1001-01-01')
-- Email template INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES ('bx_linkedin', '_bx_linkedin_et_password_generated', 'bx_linkedin_password_generated', '_bx_linkedin_et_password_generated_subject', '_bx_linkedin_et_password_generated_body'); -- Auth objects INSERT INTO...
<reponame>ciaranodonnell/Beef -- Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef CREATE TYPE [dbo].[udtUniqueIdentifierList] AS TABLE ( [Value] UNIQUEIDENTIFIER )
<reponame>ProjectHyde/snaily-cadv4 -- AlterTable ALTER TABLE "Citizen" ADD COLUMN "waterLicenseId" TEXT; -- AddForeignKey ALTER TABLE "Citizen" ADD CONSTRAINT "Citizen_waterLicenseId_fkey" FOREIGN KEY ("waterLicenseId") REFERENCES "Value"("id") ON DELETE SET NULL ON UPDATE CASCADE;
<reponame>Cailenys/podcasts-for-programmers-project -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 10, 2020 at 02:05 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone...
<reponame>KDAtkins/data-design INSERT INTO profile (profileId, profileActivationToken, profileAtHandle, profileEmail, profileHash, profileSalt, profilePhone) VALUES ( -- generated UUID for profile ID converted to binary format UNHEX(REPLACE("bd4f1683-4ee6-4b17-9f19-8af2a3aeb230", "-", "")), -- activation toke...
---------------------------------------- -- variables: -- :total=100 -- :people=20 -- :opportunity=25 -- :core_services=30 -- :recreation=10 -- :transit=15 ---------------------------------------- UPDATE neighborhood_census_blocks SET overall_score = :total * ( :people * COA...
<filename>fluxtream-web/db/0.9.0011/LastFM.sql ALTER TABLE Facet_LastFmRecentTrack CONVERT TO CHARACTER SET utf8;
-- paste your production schema's DDL, override these statements -- and execute syncdb-replace-schema.bat(sh) -- and execute manage.bat(sh), select schema-sync-check /* Create Tables */ CREATE TABLE MEMBER ( MEMBER_ID INT NOT NULL AUTO_INCREMENT COMMENT '会員ID : 連番として自動採番される。会員IDだけに限らず採番方法はDBMS次第。', MEMBER_NAME VA...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS "DIMENSIONS"."AIRLINE_ID" ( CODE varchar(5) PRIMARY KEY NOT NULL, DESCRIPTION varchar(100) ) ; CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY_KEY_C ON "DIMENSIONS"."AIRLINE_ID"(CODE) ; INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('0','Unknown Airline'); I...
<reponame>coryschwartz/nebula-crawler DROP TABLE peers_x_properties;
<reponame>Dame0912/bcmall SELECT spu.id, spu.thumbnail, spu.short_name AS shortName, c.category_name AS category, u.unit_name AS unit, b.brand_name AS brand FROM base_spu spu LEFT JOIN base_product_category c ON spu.category_id = c.id LEFT JOIN base_product_unit u ON spu.unit_id = u.id LE...
-- 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...
ALTER TABLE "public"."RoomParticipant" ADD COLUMN "conferenceId" UUID NOT NULL;
<filename>forward_chaining.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 17 Des 2021 pada 16.41 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /...
<filename>Discovery.Views.sql SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS
<reponame>cyberwolf888/bali_radiance_bus -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 28 Agu 2017 pada 12.57 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 7.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<gh_stars>0 IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Sp_Update_Bill_Count]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].[Sp_Update_Bill_Count] GO --EXEC Sp_Update_Bill_Count 1, 5 CREATE PROCEDURE [dbo].[Sp_Update_Bill_Count] @distId VARCHAR(2), @Counter INT AS BEGIN SET NOCO...
<reponame>ghuachins/php-challenge<filename>database/seeds/currency.sql INSERT INTO currency VALUES ('AED','Dírham','fils',2,'.',',','2015-09-24 23:04:21','2015-09-24 23:04:21'), ('ALL','Lek','L',2,'.',',','2016-04-19 16:42:36','2016-04-19 16:42:36'), ('ARS','Pesos Argentinos','$',2,'.',',','2015-06-11 23:21:32','2015-0...
DROP TABLE IF EXISTS users; CREATE TABLE users ( id INTEGER PRIMARY KEY, username TEXT, password TEXT, monthlyBudget INTEGER, decimalPlaces INTEGER, displayCurrency TEXT, exchangeRate NUMERIC ); CREATE UNIQUE INDEX udx_username ON users (username); INSERT INTO users (username, password, monthlyBudget, dec...
select student_fname, student_lname from students where department_code = ’MCA’ and dob> ’2002-06-15’
SELECT ROUND(MAX(LAT_N), 4) FROM STATION WHERE LAT_N < 137.2345;
<reponame>valdero/community-app-event-service DROP DATABASE "community_app_events"; DROP DATABASE "community_app_events_test";