sql
stringlengths
6
1.05M
<reponame>fahrizarama/locus -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 11, 2020 at 06:47 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "...
<filename>kmserver-core/migrations/20200813075902.do.addNoLiveAndProblematicToTags.sql ALTER TABLE tag ADD COLUMN problematic BOOLEAN DEFAULT(false) NOT NULL; ALTER TABLE tag ADD COLUMN noLiveDownload BOOLEAN DEFAULT(false) NOT NULL; DROP MATERIALIZED VIEW all_tags; DROP MATERIALIZED VIEW all_karas; DROP MATERIALIZED ...
<gh_stars>1-10 # --- !Ups CREATE INDEX event_idx_code_creation_date_desc ON event (code, creation_date DESC); # --- !Downs DROP INDEX event_idx_code_creation_date_desc;
CREATE DATABASE kisee; CREATE TABLE IF NOT EXISTS users( user_id TEXT PRIMARY KEY, username TEXT, email TEXT, password TEXT, is_superuser BOOLEAN DEFAULT FALSE );
<reponame>PacktPublishing/PostgreSQL-10-Quick-Start-Guide<filename>Chapter02/Chapter02_Listing15.sql WITH deleting_files AS ( DELETE FROM files RETURNING * ) INSERT INTO archive_files SELECT * FROM deleting_files;
-- Database-schema of ifcSQL, Copyright (c) 2021, <NAME>, <NAME>, MIT License (see https://github.com/IfcSharp/IfcSharpLibrary/tree/master/Licence) -- this database runs on Microsoft SQL Server 2019, earlier versions don't support UTF-8 -- this database was testet on Microsoft SQL Server 2019 EXPRESS USE [master] GO ...
<gh_stars>10-100 -- This is the MYSQL Sakai 2.7.2 -> 2.7.3 conversion script -- -------------------------------------------------------------------------------------------------------------------------------------- -- -- use this to convert a Sakai database from 2.7.2 to 2.7.3. Run this before you run your first app ...
DROP TABLE IF EXISTS remains; DROP TABLE IF EXISTS irlink; CREATE TABLE remains ( id int, subid int, goods int REFERENCES goods (id), storage int REFERENCES storage (id), ddate date, volume int, PRIMARY KEY (id, subid) ); CREATE TABLE irlink ( id serial, i_id int ...
<filename>web_example/migrations/2018-11-04-190206_create_tasks/up.sql<gh_stars>0 -- Your SQL goes here CREATE TABLE tasks ( id SERIAL PRIMARY KEY, title VARCHAR NOT NULL, body TEXT NOT NULL, done BOOLEAN NOT NULL DEFAULT 'f' )
<gh_stars>1-10 create input stream S1 ( C1 STRING, C2 STRING ) SOURCE randomgen PROPERTIES ( "timeUnit" = "SECONDS", "period" = "1", "eventNumPerPeriod" = "1", "isSchedule" = "true", "totalNumber" = "20000", "delayTime" = "0"); create output stream rs ...
## 删除答案 #macro($deleteByQuestion(questionId)) DELETE FROM answer where question_id =:questionId #end
select title, akas from gcp.gcp_project_organization_policy where title = '{{ output.resource_title.value }}';
-- -- Created by SQL::Translator::Producer::PostgreSQL -- Created on Sat Nov 7 10:34:16 2015 -- -- -- Table: Gnarly -- DROP TABLE "Gnarly" CASCADE; CREATE TABLE "Gnarly" ( "id" integer NOT NULL, "name" character varying NOT NULL, "literature" text, "your_mom" bytea, PRIMARY KEY ("id") ); -- -- Table: HasD...
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t (a int, b float, c char(5), d varchar(10), e int); create index i_t_abcd on t(a,b,c,d); insert into t values (1,1.1, 'AAAAA', 'AAAAA', 1); insert into t values (1,1.1, 'AAAAA', 'AAAAA', 1); insert into t values (1,1.1, 'AAAAA', 'AABBB', -...
-- 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 documentation files (the "Software"), to deal -- in the Software without restriction, i...
<filename>sql/_12_mysql_compatibility/_07_other_functions/cases/queryPlan_r30.sql<gh_stars>1-10 --+ holdcas on; set system parameters 'compat_mode=mysql'; --case s001 PREPARE stmt from 'create table s1 (id int auto_increment primary key, a1 CHAR(2000),b2 VARCHAR(2000),c3 NCHAR(2000),d4 NCHAR VARYING(2000),e5 BIT(2000)...
<filename>sql/independent_plastics_Mar_16_2016.sql -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 16, 2017 at 01:07 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 @...
<gh_stars>0 .headers on .mode csv .output interaction_data_ALL_species.csv SELECT target_dictionary.chembl_id, target_dictionary.pref_name, molecule_dictionary.chembl_id, compound_structures.canonical_smiles FROM compound_structures INNER JOIN molecule_dictionary ON compound_structures.molregno = molecule_dictionary....
-- tables must be dropped in reverse order of dependencies use test; DROP TABLE if exists follow; DROP TABLE if exists hashtag; DROP TABLE if exists mention; DROP TABLE if exists tweet; DROP TABLE if exists author;
DROP TABLE IF EXISTS Hauptkategorien; DROP TABLE IF EXISTS Produkte; DROP TABLE IF EXISTS Kategorien; DROP TABLE IF EXISTS Produkte_Kategorien; CREATE TABLE Hauptkategorien ( ID INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, Name VARCHAR(255) ); CREATE TABLE Produkte ( ID INTEGER NOT NULL AUTO_INCREMENT PRIMAR...
<reponame>TimotiusAnrez/MySQL-tutorial # SELECT column FROM table WHERE column LIKE '%params%' => why the perecentage? it will give specification of which end that params will be like with the data for example SELECT author_fname FROM books WHERE author_fname LIKE '%da'; # will result with author fname that end with d...
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FO...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[usp_Entity3Get] @someUID [nvarchar](max) AS BEGIN SET NOCOUNT ON SELECT -- t4-columns begin [e3].[SomeUID] ,[e3].[SomeID] ,[e3].[Modified] ,[e3].[OtherDate] -- t4-columns end FROM [dbo].[Entity3] [e3] WHERE...
CREATE DATABASE store_frontDB; USE store_frontDB;
<gh_stars>0 INSERT INTO vin(cru,annee,degre,created_at,updated_at) VALUES('Mercurey',1980,11.500000,NOW(),NOW()); INSERT INTO vin(cru,annee,degre,created_at,updated_at) VALUES('Julienas',1974,11.300000,NOW(),NOW()); INSERT INTO vin(cru,annee,degre,created_at,updated_at) VALUES('<NAME>',1978,12.100000,NOW(),NOW()); INSE...
<reponame>MichaelKappel/SpeedCube<filename>RC/Whatever/RBK/Tables/AdjacentPatternRecognitionStates.sql CREATE TABLE [RBK].[AdjacentPatternRecognitionStates] ( [AdjacentPatternRecognitionStateId] BIGINT IDENTITY (1, 1) NOT NULL, [PatternId] INT NOT NULL, [PatternAdjacentTypeId...
<reponame>DotNetExample/surging.Demo<filename>db/OrderInfo.sql<gh_stars>10-100 /* Navicat Premium Data Transfer Source Server : mycentos Source Server Type : MySQL Source Server Version : 50724 Source Host : 192.168.127.12:3306 Source Schema : OrderInfo Target Server Type : MySQ...
CREATE TABLE ms_guru ( nip VARCHAR(18) NOT NULL, npsn VARCHAR(10) NOT NULL, namaGuru VARCHAR(50) NULL, jenisKelamin ENUM('Laki-laki', 'Perempuan') NULL, alamatGuru VARCHAR(255) NULL, PRIMARY KEY(nip), INDEX ms_guru_FKIndex1(npsn) ); CREATE TABLE ms_kelas ( idKelas INTEGER UNSIGNED NOT NULL AUTO_INCREME...
-- 1. ¿Cuántos idiomas tiene el país con código 'USA'? SELECT COUNT(*) FROM country c, countrylanguage l WHERE c.code = l.countrycode AND c.code = 'USA' -- 2. ¿Cuál es el promedio de porcentaje de lenguaje 'Spanish' -- en los paises que sí lo hablan de la región 'Caribbean'? SELECT AVG(percentage) FROM countr...
<filename>server/conf/1.sql DROP TABLE IF EXISTS `customer_info`; CREATE TABLE customer_info ( id BIGINT(20) UNSIGNED AUTO_INCREMENT NOT NULL COMMENT '自增主键ID', name VARCHAR(20) NOT NULL COMMENT '用户名', role_id VARCHAR(200) NOT NULL COMMEN...
<gh_stars>0 library ANCDT01 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCConfig called Config include ANCConcepts called Cx include ANCDataElements called PatientData include ANCContactDataElements called ContactData context Patient /* "Danger signs" = "No danger signs" */ define "Shou...
INSERT INTO RoamioTodo (Userid, DateField, Channel, Duration, ShowTrimmed, ShowName, EpisodeName, Ep) VALUES (1, 1608093300000, '42-1=KEYEDT', '1:32', 'The Late Show With <NAME>', 'The Late Show With <NAME> ', ' <NAME>', '653'); INSERT INTO RoamioTodo (Userid, DateField, Channel, Duration, ShowTrimmed, ShowName, Episod...
<gh_stars>0 CREATE OR REPLACE FUNCTION update_modified_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.modified = now(); RETURN NEW; END; $$ language 'plpgsql';
<filename>techtribes-core/sql/schema/activity.sql<gh_stars>100-1000 DROP TABLE IF EXISTS activity; CREATE TABLE activity ( content_source_id int NOT NULL, international_talks int NOT NULL DEFAULT 0, local_talks int NOT NULL DEFAULT 0, content int NOT NULL DEFAULT 0, tweets int NOT NULL DEFAULT 0, ...
DELETE FROM student; INSERT INTO student (id, name, age) VALUES (1, 'Jone', 18),(2, 'Jack', 20),(3, 'Tom', 28), (4, 'Sandy', 21),(5, 'Billie', 24);
<reponame>pdv-ru/ClickHouse<gh_stars>1000+ explain header = 1 select 1 as x;
<reponame>GiorgioCaculli/B3_Application_Entreprise_Multi-Tiers_et_Veille_Technologique -- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (https://h2database.com/html/license.html). -- Initial Developer: H2 Group -- @reconnect off SELECT ISOLATION_LEVEL FROM INFORMATION_SCHEMA.SE...
USE [${install.database}] GO -- update database version DECLARE @build_version nvarchar(10), @build_date datetime SET @build_version = N'${release.version}' SET @build_date = '${release.date}T00:00:00' -- ISO 8601 Format (YYYY-MM-DDTHH:MM:SS) IF NOT EXISTS (SELECT * FROM [dbo].[Versions] WHERE [DatabaseVersion]...
-- 1 Mostrar la cantidad de usuarios cuyo código de tipo de usuario es 1 (free) , 2 (standard) y 3 (premium). SELECT idTipoUsuario, count(*) FROM proyecto_spotify.usuario group by idTipoUsuario; -- 2 Listar los álbumes que poseen la letra Z en su título. SELECT titulo FROM proyecto_spotify.album WHERE titulo like ('%...
<reponame>ilduchea/volunteer_tracker CREATE DATABASE volunteer_tracker; \c volunteer_tracker; CREATE TABLE projects (id serial PRIMARY KEY, name varchar); CREATE TABLE volunteers (id serial PRIMARY KEY, name varchar, hours int, project_id int); CREATE DATABASE volunteer_tracker_test WITH TEMPLATE volunteer_tracker;
<filename>src/main/resources/db/migration/envconfDB/V1_6__Add_resource_to_application_instance.sql CREATE TABLE application_instance_resources ( applicationinstance_entid NUMBER(19) NOT NULL, resources_entid NUMBER(19) NOT NULL, CONSTRAINT pk_air_ids PRIMARY KEY (applicationinstance_entid, resources_entid), CONSTRA...
-- MySQL dump 10.16 Distrib 10.1.20-MariaDB, for osx10.12 (x86_64) -- -- Host: nvision Database: nvision -- ------------------------------------------------------ -- Server version 10.1.20-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
SELECT UPPER(element_name) FROM final_project.element; SELECT CONCAT(UPPER(archon_name), '_', UPPER(archon_country), '_', UPPER(archon_element)) FROM final_project.archon; SELECT CONCAT(archon_name, ' , the god of ', LOWER(archon_element), ' ') FROM final_project.archon; SELECT CONCAT(archon_id, ': ', UPPER(archon_n...
/* ?????????????????????????????????????????????????????????????????????? ?| ?| Procedure Name: ag_application_environment_by_application_id_sel ?| ?| Description: Selects data from table application_environment ?| ?| @Author: <NAME> ?| @Createdate: 2/13/2018 ?| ?| @return: Select statement results ?| ?| example ...
<reponame>qn1213/DreamViewer  CREATE TABLE IF NOT EXISTS "TArtist" ( "artist" VARCHAR(255) NOT NULL COLLATE NOCASE DEFAULT 'N/A', PRIMARY KEY ("artist")); CREATE TABLE IF NOT EXISTS "TLanguage" ( "language" VARCHAR(255) NOT NULL COLLATE NOCASE DEFAULT 'N/A', PRIMARY KEY ("language")) ; CREATE TABLE IF NOT ...
ALTER TABLE `shops` ADD `commission_article_sale` VARCHAR(5) NULL DEFAULT NULL AFTER `y_coordinate`, ADD `commission_salespot` VARCHAR(5) NULL DEFAULT NULL AFTER `commission_article_sale`; ------------------------ ALTER TABLE `shops` ADD `owner` INT(11) NULL AFTER `user_id`; ------------------------ UPDATE `users` ...
<filename>07. Database Programmability and Transactions/Exercises/16. Deposit Money/Deposit Money.sql CREATE OR ALTER PROC usp_DepositMoney (@AccountId INT, @MoneyAmount DECIMAL(15, 4)) AS IF (@MoneyAmount > 0) BEGIN UPDATE Accounts SET Balance += @MoneyAmount WHERE I...
CREATE TABLE IF NOT EXISTS ingredients ( id UUID PRIMARY KEY, name VARCHAR(255) NOT NULL, kiloCalories INT NOT NULL); CREATE UNIQUE INDEX IF NOT EXISTS idxIngredientName ON ingredients(name); CREATE TABLE IF NOT EXISTS portions ( ingredient_id UUID, name VARCHAR(255) NOT NULL, fraction DOUBLE ...
<reponame>exajobs/SQL-server-collection /* This will need a NUMBERS table, stocked with numbers. If you haven't got one this will create it automatically */ IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Numbers') BEGIN CREATE TABLE dbo.Numbers( [number] [int], ...
<gh_stars>10-100 CREATE TABLE IF NOT EXISTS token_transfers ( token_address TEXT, from_address TEXT, to_address TEXT, value DECIMAL(38,0), transaction_hash TEXT, log_index BIGINT, block_number BIGINT, timestamp TIMESTAMP, CONSTRAINT unique_token_transfer UNIQUE(transaction_hash, log_...
-- OLE Automation Procedure - Download Cradle Example - Option 2 -- Can handle larger payloads, but requires a table -- Note: This also works with unc paths \\ip\file.txt -- Note: This also works with webdav paths \\ip@80\file.txt However, the target web server needs to support propfind. -- Setup Variables DECLARE @...
<filename>application/common/upgrade/95.sql UPDATE `qb_chatmod` SET `status`=0 WHERE `keywords` = 'topic' AND `pcwap`=3; UPDATE `qb_chatmod` SET `pcwap`=0 WHERE `keywords` = 'topic' AND `pcwap`!=3;
<filename>scripts/postgresql_master_setup.sql<gh_stars>0 ALTER SYSTEM SET listen_addresses TO '*'; CREATE USER ${pg_replicat_username} REPLICATION LOGIN ENCRYPTED PASSWORD '${<PASSWORD>}'; CREATE USER rewind_user LOGIN PASSWORD '${<PASSWORD>}'; GRANT EXECUTE ON function pg_catalog.pg_ls_dir(text, boolean, boolean) TO r...
<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:4774a6e182c041f276d4eb306ce8ba1ae910d4c67bc4d6d82fee7306145ed715 size 3873
ALTER TYPE report_chart RENAME TO report_chart_old; create type landlord.report_chart as enum ('PROPERTY_CREATED', 'PROPERTY_PUBLISHED', 'APPLICATIONS_TOTAL', 'APPLICATIONS_BY_PORTAL', 'APPLICATIONS_INTENTIONS', 'APPLICATIONS_APPOINTMENT_ACCEPTANCES', 'PROPOSAL_OFFERED', 'APPOINTMENT_OCCURE...
<reponame>ReyYang/shardingsphere<gh_stars>0 -- -- 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 Licen...
<filename>myframework/deploy/framework/sql/tars_node_init.sql -- MySQL dump 10.13 Distrib 5.6.26, for Linux (x86_64) -- -- Host: localhost Database: db_tars -- ------------------------------------------------------ -- Server version 5.6.26-log replace into `t_node_info` (`node_name`, `node_obj` , `endpoint_ip`, `e...
<reponame>topshef/hedera-nft-auction-demo ALTER TABLE bids ADD refundStatus TEXT DEFAULT ''; ALTER TABLE bids DROP COLUMN refunded; ALTER TABLE bids DROP COLUMN refund;
<gh_stars>100-1000 /* Navicat Premium Data Transfer Source Server : 本地连接 Source Server Type : MySQL Source Server Version : 50720 Source Host : localhost:3306 Source Schema : exam Target Server Type : MySQL Target Server Version : 50720 File Encoding : 65001...
<filename>contrib/ltree/ltree--unpackaged--1.0.sql /* contrib/ltree/ltree--unpackaged--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION ltree" to load this file. \quit ALTER EXTENSION ltree ADD type ltree; ALTER EXTENSION ltree ADD function ltree_in(cst...
-- check table joins for multiple range optimization --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; drop table if exists t,s,u; create table t (a smallint, b bigint, c bigint, d smallint, e decimal(10,1)) partition by hash(c) partitions 10; insert into t select * from (select 1 union select 2 un...
-- @testpoint: opengauss关键字octet_length非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists octet_length; create index octet_length on explain_test(id); drop index octet_length; --关键字带双引号-成功 drop index if exists "oc...
-- MySQL dump 10.16 Distrib 10.1.36-MariaDB, for Win32 (AMD64) -- -- Host: localhost Database: dspfish -- ------------------------------------------------------ -- Server version 10.1.36-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
-- phpMyAdmin SQL Dump -- version 4.7.5 -- https://www.phpmyadmin.net/ -- -- Host: db -- Generation Time: Dec 03, 2017 at 07:33 PM -- Server version: 5.7.20 -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- CreateTable CREATE TABLE "User" ( "id" TEXT NOT NULL, "name" TEXT NOT NULL, "userName" TEXT NOT NULL, "senha" TEXT NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, CONSTRAINT "User_pkey" PRIMARY KEY ("id") ); -- CreateIndex CREATE...
<filename>Unicode.Tests/TestData/ru.sql<gh_stars>0 /******************************************************* This file contains values extracted from sql file and is saved as utf8 without BOM. *******************************************************/ = 'articleoffertype' 'ru-RU' lookup_id ='D'; 'articleoffertype'...
SELECT ortschaftsname_pos.t_id AS tid, ortschaftsname_pos.ortschaftsname_pos_von, ortschaftsname_pos.pos, ortschaftsname_pos.ori, halignment.itfcode AS hali, ortschaftsname_pos.hali AS hali_txt, valignment.itfcode AS vali, ortschaftsname_pos.vali AS vali_txt, schriftgroesse.itfcode A...
<filename>config/postgres/99-pg-unread.sql<gh_stars>1-10 \connect jabber; -- The additional table for unread messages, per user, per conversation CREATE TABLE IF NOT EXISTS unread_messages ( user_jid TEXT NOT NULL, conversation_jid TEXT NOT NULL, message_id BIGINT NOT NULL, created_at TIMESTAMP NOT NULL DEFAUL...
<reponame>kenkenpa198/discordbot-mdn<filename>discordbot-mdn/cogs/sql/talk/select_vc_ids.sql SELECT vc_id FROM talk_target_tb ;
INSERT INTO custom_field (id, name, name_for_admin, type, required, searchable, sort, unit, inline_on_list) VALUES (1, 'Brand', 'cars, trucks', 'SELECT_AS_CHECKBOXES', 1, 1, 101, null, 1); INSERT INTO custom_field (id, name, name_for_admin, type, required, searchable, sort, unit, inline_on_list) VALUES (2, 'Mileage', n...
<reponame>namankanakiya/garagesales # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table item ( id varchar(255) not null, item_name varchar(255), price double, sold ...
-- MySQL Script generated by MySQL Workbench -- Mon Jan 29 16:27:10 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 08, 2016 at 07:33 PM -- Server version: 5.5.46-0ubuntu0.14.04.2 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<reponame>UbuntuEvangelist/OG-Platform BEGIN TRAN; -- update the version UPDATE snp_schema_version SET version_value='46' WHERE version_key='schema_patch'; -- Add new column and default all existing values to the structured snapshot ALTER TABLE snp_snapshot ADD snapshot_type varchar(255) NULL; UPDATE s...
create sequence seq_test_lv;
-- -*- sql-product: postgres -*- CREATE SCHEMA analysis; GRANT USAGE ON SCHEMA analysis TO PUBLIC; SET search_path TO analysis, public; BEGIN; CREATE TABLE capture_pruned_content ( id SERIAL NOT NULL PRIMARY KEY, origin INTEGER NOT NULL REFERENCES collection.capture_html_content(id), content_le...
Set Serveroutput On Size Unlimited format truncated set linesize 10000 set echo off create or replace package demo_doc_reporter1 is -- %suite -- %displayname(Demo of documentation reporter) -- %test -- %displayname(A passing test sample) procedure passing_test; -- %test procedure test_without_name; --...
ALTER SEQUENCE action_todo_id_seq RENAME TO log_book_id_seq; ALTER SEQUENCE action_todo_log_id_seq RENAME TO log_book_log_id_seq; ALTER SEQUENCE action_todo_request_id_seq RENAME TO log_book_request_id_seq; ALTER SEQUENCE action_todo_completion_confirmation_id_seq RENAME TO log_book_completion_confirmation_id_seq; ALT...
<reponame>Zhaojia2019/cubrid-testcases autocommit off; create table phone1 (number int, name string); insert into phone1 values (2660000, 'Who'); insert into phone1 values (3437297, 'Uni'); insert into phone1 values (4592222, 'Gatti'); create table phone2 (number int, name string); insert into phone2 values (4444444, '...
BEGIN; DROP TABLE IF EXISTS gastos.GrupoDespesaOrcamentaria CASCADE; CREATE TABLE gastos.GrupoDespesaOrcamentaria ( codigo INTEGER PRIMARY KEY, nome VARCHAR(50) NOT NULL ); INSERT INTO gastos.GrupoDespesaOrcamentaria SELECT DISTINCT CASE WHEN codigo_grupo_de_despesa = 'I' THEN -1 ELSE codigo_grup...
CREATE DATABASE IF NOT EXISTS power_metadata; CREATE USER 'user'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON power_metadata.* TO 'user'@'%' WITH GRANT OPTION; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root'; ALTER USER 'admin'@'%' IDENTIFIED WITH mysql_native_password BY '<PASSWORD>'...
<filename>us_states_by_koji.sql CREATE DATABASE your_database_name; USE your_database_name; CREATE TABLE state_table (PrimaryKey VARCHAR(15), State VARCHAR(15), Capital VARCHAR(15), Abbrev VARCHAR(15)); INSERT INTO state_table (PrimaryKey, State, Capital, Abbrev) VALUES ('1', 'Alabama', 'Montgomery', 'AL'), ('...
UPDATE portti_bundle SET startup= '{ "bundlename" : "routesearch", "metadata" : { "Import-Bundle" : { "routesearch" : { "bundlePath" : "/Oskari/packages/paikkatietoikkuna/bundle/" } } } }' where name = 'routesearch'; UPDATE portti_view_bundle_seq SET ...
<reponame>duwiharyanto/restfullapi /* Navicat Premium Data Transfer Source Server : PHPMYADMIN Source Server Type : MySQL Source Server Version : 100131 Source Host : localhost:3306 Source Schema : restfull Target Server Type : MySQL Target Server Version : 100131 File Encodin...
CREATE TABLE `newsletter` ( `id` int(11) NOT NULL, `email` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `newsletter` ADD PRIMARY KEY (`id`); ALTER TABLE `newsletter` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; COMMIT; ALTER TABLE `customers_addresses` ADD `is_default` INT(1) NUL...
<reponame>ligoj/plugin-bt-jira DROP TABLE changegroup; DROP TABLE changeitem; DROP TABLE component; DROP TABLE projectversion; DROP TABLE customfield; DROP TABLE customfieldoption; DROP TABLE jiraissue; DROP TABLE sequence_value_item; DROP TABLE os_currentstep; DROP TABLE os_wfentry; DROP TABLE jiraworkflows; DROP TABL...
CREATE TABLE IF NOT EXISTS t_building_codes ( code VARCHAR(10) , name VARCHAR(255) , ref INT ) ; COPY t_building_codes FROM '/Users/mdelhey/rice-scrape/data/codes.csv' DELIMITER ',' CSV ;
CREATE PROCEDURE [dbo].[dnn_CoreMessaging_DeleteSubscription] @SubscriptionId int AS BEGIN DELETE FROM dbo.[dnn_CoreMessaging_Subscriptions] WHERE [SubscriptionId] = @SubscriptionId IF @@ROWCOUNT <> 0 SELECT 0 AS [ResultStatus] ELSE SELECT -1 AS [ResultStatus] END
<reponame>engelx/dns_server<filename>base.sql -- Dumped from database version 9.6.3 -- Dumped by pg_dump version 9.6.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET...
<reponame>BAlexanderNance/Stay-On-Track DROP TABLE IF EXISTS users, contacts, engagements CASCADE; CREATE TYPE status AS ENUM ('pending', 'rejected', 'accepted'); CREATE TABLE users ( "username" VARCHAR PRIMARY KEY, "password" VARCHAR NOT NULL, "first_name" VARCHAR NOT NULL, "last_name" VARCHAR NOT NULL, "i...
UPDATE t_question SET correct = 1 where id = 917; UPDATE t_question SET correct = 3 where id = 924; UPDATE t_question SET correct = 4 where id = 925;
ALTER TABLE certificate_print_queue_item DROP COLUMN address_line3; ALTER TABLE certificate_print_queue_item ADD COLUMN canton_code_sender varchar(2);
-- file:insert.sql ln:51 expect:true insert into inserttest (f2[1], f2[2]) values (1,2)
/* ================================================ * Oracle XFiles Demonstration. * * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
-- fix buycount of honour goods UPDATE `item_template` SET `BuyCount`=20 WHERE (`entry`=52185); UPDATE `item_template` SET `BuyCount`=20 WHERE (`entry`=53010); UPDATE `item_template` SET `BuyCount`=5 WHERE (`entry`=52976);
-- page builder DELETE FROM `sys_page_compose` WHERE `Page` IN ('index', 'profile', 'member') AND `Desc` IN ('Groups', 'User Groups', 'Joined Groups'); DELETE FROM `sys_page_compose` WHERE `Page` = 'bx_groups_view' AND `Func` IN ('Actions', 'Rate', 'Info', 'Fans', 'FansUnconfirmed', 'Desc', 'Photo', 'Video', 'So...
/* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50724 Source Host : localhost:3306 Source Database : microclouds Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2019-01-12 14:44:59 */ SET FOREIGN_KEY_CHECKS=0; -- --...
set client_encoding = 'utf-8'; set client_min_messages = warning; create extension if not exists pgtap; begin; select plan(2); -- View should exist select has_view( 'ggircs_portal', 'ciip_carbon_tax_calculation', 'ggircs_portal.ciip_carbon_tax_calculation should be a view' ); truncate ggircs_portal.applicati...
-- TEST0016 SA and RL expiry date tests: financing statements with multiple renewals. -- SA begin INSERT INTO drafts(id, document_number, account_id, create_ts, registration_type_cl, registration_type, registration_number, update_ts, draft) VALUES(200000021, 'D-T-0016', 'PS12345', timestamp with ti...
<filename>components/automate-workflow-server/schema/revert/project_and_pipeline_role_triggers.sql -- Revert project_and_pipeline_role_triggers BEGIN; DROP TRIGGER IF EXISTS ensure_membership ON project_user_roles; DROP TRIGGER IF EXISTS ensure_membership ON pipeline_user_roles; COMMIT;