sql
stringlengths
6
1.05M
<reponame>faizol/timescaledb -- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. SELECT format('include/%s_query.sql', :'TEST_BASE_NAME') as "TEST_QUERY_NAME", format('%s/sh...
/* * This file is used to test the function of ExecVecMaterial() */ ---- --- Create Table and Insert Data ---- create schema vector_material_engine; set current_schema=vector_material_engine; SET TIME ZONE 'PRC';set datestyle to iso; SET ENABLE_HASHJOIN=FALSE; SET ENABLE_NESTLOOP=FALSE; SET log_min_messages=debug1; C...
INSERT INTO `role` (name) VALUES ('MANAGE_CALL_OFF_PO'); INSERT INTO `identity` (active, locked, email, uid, password) VALUES (true, false, '<EMAIL>', 'f7cb1208-eca7-46a6-b496-0f6f354c6eac', <PASSWORD>') ; INSERT INTO `identity_role` (identity_id, role_id) VALUES ((SELECT id FROM identity WHERE email = '<EMAIL>'), (...
IF (NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Toggles')) BEGIN CREATE TABLE [Toggles] ( [Id] nvarchar(450) NOT NULL, [Value] nvarchar(max) NULL, CONSTRAINT [PK_Toggles] PRIMARY KEY ([Id]) ); END;
<reponame>blnz/KeyCache-server DROP SCHEMA IF EXISTS ssdb CASCADE; DROP ROLE IF EXISTS ssdb; CREATE ROLE ssdb with LOGIN password '<PASSWORD>'; CREATE SCHEMA ssdb; GRANT ALL PRIVILEGES ON SCHEMA ssdb TO ssdb; CREATE TABLE ssdb.user ( user_id char(36) PRIMARY KEY, username varchar(64) UNIQUE, pw...
<filename>src/Reserve_Plant_Species_kek3.sql -- phpMyAdmin SQL Dump -- version 4.2.13.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 22, 2015 at 08:15 PM -- Server version: 5.5.40-0+wheezy1 -- PHP Version: 5.4.36-0+deb7u3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 16 Janvier 2018 à 07:52 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
<filename>database/mrs.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 10, 2018 at 03:57 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "...
<gh_stars>0 ================================================================================================================= Step 1 : Copy the physical image to app server IP : 172.20.50.12 Path : /home/XAFNFC/Signatures =================================================================================...
SET DEFINE OFF; CREATE INDEX AFW_13_REGN_PILTB_FK2 ON AFW_13_REGN_PILTB (REF_DV_TYPE_REGN_PILTB) LOGGING /
/* Usamos la base de datos icxp3_7 */ USE icxp3_7; /* Añadimos email a la tabla empleado como clave única*/ ALTER TABLE empleado ADD COLUMN email varchar(50) UNIQUE; ALTER TABLE empleado ADD UNIQUE (dni); /* Eliminamos la columna dirección de la tabla agencia */ ALTER TABLE agencia DROP COLUMN direccion; /* Añadimos ...
-- show all the user specified properties for table `customer` SHOW TBLPROPERTIES customer; -- show all the user specified properties for a qualified table `customer` -- in database `salesdb` SHOW TBLPROPERTIES salesdb.customer; -- show value for unquoted property key `created.by.user` SHOW TBLPROPERTIES customer (cr...
<gh_stars>10-100 -- file:copy2.sql ln:292 expect:false 2,'a',,"" \. COMMIT
INSERT INTO `#__joomlawatch_ip2c` (`start`, `end`, `a2`, `a3`, `country`) VALUES (3363577856, 3363586047, 'CL', 'CHL', 'CHILE'), (3363586048, 3363594239, 'BZ', 'BLZ', 'BELIZE'), (3363602432, 3363610623, 'AN', 'ANT', 'NETHERLANDS ANTILLES'), (3363610624, 3363614719, 'CO', 'COL', 'COLOMBIA'), (3363618816, 3363622911,...
<gh_stars>0 /* checkes running count field two seconds apart. If the two values are the same the table is not being written to. Good for DB's that are being writte to havily all the time */ DECLARE @segid1 INT DECLARE @segid2 INT select top 1 @segid1=[RunningCountField] from [DBName] order by [dateandtime] desc --debug...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. INSERT INTO edfi.Descriptor ([Namespace], CodeValu...
<gh_stars>0 BEGIN; ALTER TABLE application ADD COLUMN reference character varying(255); UPDATE application SET reference = 'app-' || substring(md5(random()::text),28) || '-' || (FLOOR(((EXTRACT(EPOCH FROM CURRENT_TIMESTAMP))*10000 + (random()*10000))/10))::text; ALTER TABLE application ALTER reference SET NOT NULL; ALT...
with feature_history as ( select * from {{ var('feature_history') }} ), latest_feature as ( select *, row_number() over(partition by feature_id order by last_updated_at desc) as latest_feature_index from feature_history ) select * from latest_feature where latest_feature_index = 1
{% macro get_utm_parameter(query_field, utm_param) -%} nullif( split_part( split_part(({{ query_field }})::text, '{{ utm_param }}='::text, 2), '&'::text, 1), '') {%- endmacro %}
CREATE USER 'data_analytics' WITH PASSWORD '<PASSWORD>' NOSUPERUSER;
USE beekeeper; CREATE TABLE IF NOT EXISTS path ( id BIGINT(20) AUTO_INCREMENT, path VARCHAR(10000) NOT NULL, database_name VARCHAR(512), table_name VARCHAR(512), path_status VARCHAR(50) NOT NULL, cleanup_delay VARCHAR(50) NOT NULL, creation_timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, modifi...
-- /************************************************************************* -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and lic...
<filename>MOOCdbFeatureExtract/program/sql_functions_feature_extract/feat_extract_scripts/populate_feature_9_average_number_of_attempts.sql<gh_stars>10-100 -- Takes 1900 seconds to execute -- Created on July 1, 2013 -- @author: Franck for ALFA, MIT lab: <EMAIL> -- Feature 9: Average number of attempts -- (supported by ...
DROP DATABASE IF EXISTS chatterstorm_db; CREATE DATABASE chatterstorm_db; USE chatterstorm_db;
<reponame>apexpl/migrations /** * remove SQL file for ~class_name~ */
drop table df_qbe_brushs purge; create table df_qbe_brushs ( object_id number constraint df_qbe_brush_nn not null, interview varchar2(100), interviewname varchar2(1000), occupancy varchar2(100), dwellingtype...
<filename>api/db/migrations/20210629053512_editmodel_person/migration.sql /* Warnings: - You are about to drop the `Marriage` table. If the table is not empty, all the data it contains will be lost. - Made the column `fatherId` on table `Person` required. This step will fail if there are existing NULL values in ...
-- Create tables for our ingredients and favorite recipes, plus the cache tables to save our results CREATE TABLE IF NOT EXISTS favoriterecipes( favoriterecipe_id VARCHAR(32) PRIMARY KEY, title VARCHAR(256), image_url VARCHAR(256), directions_url VARCHAR(256), source_title VARCHAR(256), calo...
SELECT name FROM people p INNER JOIN stars s ON s.person_id = p.id INNER JOIN movies m ON m.id = s.movie_id WHERE m.title LIKE 'Toy Story'
<filename>DB/crawling.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Apr 2020 pada 05.48 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
CREATE DEFINER = CURRENT_USER TRIGGER `muller851u_bd_colis`.`MAJStockApresSuppLivraison` AFTER DELETE ON `livre` FOR EACH ROW BEGIN UPDATE produit SET qte_stock = qte_stock + OLD.qte_liv WHERE code_prod = OLD.code_prod; END
<reponame>barrouh/AutomaticDeploymentSystem CREATE TABLE SERVER_HOST( SERVER_ID BIGINT(19) NOT NULL AUTO_INCREMENT, SERVER_NAME VARCHAR(255) NOT NULL UNIQUE, PRIMARY KEY (SERVER_ID) ); CREATE TABLE IP_ADDRESS( IP_ADDRESS VARCHAR(255) NOT NULL, STATE VARCHAR(255) NOT NULL, SERVER_ID BIGINT(19) NOT NULL, P...
<reponame>mr-bwnz/SplendidAppBuilder if exists (select * from INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'vwSYSTEM_REST_PROCEDURES') Drop View dbo.vwSYSTEM_REST_PROCEDURES; GO /********************************************************************************************************************** * Copyright (...
-- file:create_index.sql ln:699 expect:true SELECT count(*) FROM tenk1 WHERE stringu1 = 'TVAAAA'
CREATE TABLE [dbo].[TaxGroup] ( [Id] [int] NOT NULL IDENTITY (1,1), [Description] [nvarchar](max) NULL, [TaxAppliedToShipping] [bit] NOT NULL, [IsActive] [bit] NOT NULL ,CONSTRAINT [PK_dbo.TaxGroup] PRIMARY KEY CLUSTERED ([Id]) ) GO
select database() as dbname, m1.meta_value as ensembl_release, m2.meta_value as ensembl_name, 'geneset' as dataset_type, 'gene_core' as dataset_name, 'count' as type, concat('gene_', biotype_group) as name, '' as label, count(*) as value from meta m1, gene inner join seq_region using (seq_region...
INSERT INTO users (user_id, username, password, enabled) VALUES ('1', '<EMAIL>', '$2a$10$D4OLKI6yy68crm.3imC9X.P2xqKHs5TloWUcr6z5XdOqnTrAK84ri', true), ('2', '<EMAIL>', '$2a$10$D4OLKI6yy68crm.3imC9X.P2xqKHs5TloWUcr6z5XdOqnTrAK84ri', true), ('3', '<EMAIL>', '$2a$10$D4OLKI6yy68crm.3imC9X.P2xqKHs5TloWUcr6z5XdOqnTrAK84...
<gh_stars>0 create table t3 ( id5 bigint, id6 bigint, id7 bigint, primary key (id5) ) Engine = InnoDB; create table t3_id7_idx ( id bigint not null auto_increment, id7 bigint, id6 bigint, primary key (id) ) Engine = InnoDB; create table t9 ( id1 bigint, id2 varchar(10), id...
<gh_stars>1-10 -- -- 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...
<reponame>AlbertoVari/firefly CREATE TABLE members ( group_hash string NOT NULL, idx int64 NOT NULL, identity string NOT NULL, node_id string NOT NULL ); CREATE INDEX members_group ON members(group_hash);
<filename>sql/user.sql /* SQLyog Ultimate v12.09 (64 bit) MySQL - 8.0.15 : Database - LoadStar_User_Dev ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @...
<reponame>fabura/TSP<filename>integration/performance/src/test/resources/sql/wide/source-schema.sql<gh_stars>10-100 CREATE TABLE IF NOT EXISTS Test.SM_basic_wide ( datetime Double, series_id String, mechanism_id String, speed Float32 ) ENGINE = Log(); CREATE TABLE IF NOT EXISTS Test.SM_typeCasting_wid...
<reponame>opitzconsulting/orcas create table TAB_LONG ( COL00000000000000000 DATE, COL00000000000000001 DATE, COL00000000000000002 DATE, COL00000000000000003 DATE, COL00000000000000004 DATE, COL00000000000000005 DATE, COL00000000000000006 DATE, COL00000000000000007 DATE, COL00000000000000008 DATE, COL0000000000000000...
<reponame>singh-sukhvir/killbill-analytics-plugin create table report_cancellations_daily as select * from v_report_cancellations_daily limit 0; drop procedure if exists refresh_report_cancellations_daily; DELIMITER // CREATE PROCEDURE refresh_report_cancellations_daily() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION R...
-- 1002 Number of persons by condition occurrence start month, by condition_concept_id --insert into @results_schema.heracles_results (cohort_definition_id, analysis_id, stratum_1, stratum_2, count_value) select c1.cohort_definition_id, 1002 as analysis_id, ce1.condition_concept_id as stratum_1, YE...
-- +migrate Up ALTER TABLE _auth_recovery_code ADD COLUMN updated_at timestamp without time zone; UPDATE _auth_recovery_code SET updated_at = created_at; ALTER TABLE _auth_recovery_code ALTER COLUMN updated_at SET NOT NULL; ALTER TABLE _auth_identity ADD COLUMN created_at timestamp without time zone; ALTER TABLE _auth...
<reponame>RT28/php_sample -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 05, 2017 at 02:47 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 @OLD_CHARACTER...
create table marketplace_accounts( id uuid primary key not null default gen_random_uuid(), user_id uuid not null references users(id), status text not null, marketplace_id text null, marketplace_user_id text not null, marketplace_password text not null, deleted_at timestamp, created_at ...
DO $$ BEGIN IF register_patch('AddSepMeetingDecisionTable.sql', 'martintrajanovski', 'Add SEP Meeting decision table to separate data from SEP meeting decision form.', '2021-03-19') THEN BEGIN CREATE TABLE IF NOT EXISTS "SEP_meeting_decisions" ( proposal_id INT REFERENCES proposals(proposal_id) ON DELETE CAS...
DROP TABLE IF EXISTS annotation_avps; DROP TABLE IF EXISTS values; DROP TABLE IF EXISTS attributes; DROP TABLE IF EXISTS annotation_pos; DROP TABLE IF EXISTS annotation; CREATE TABLE annotation ( id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(255), type VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE a...
<reponame>mediaverse-nl/bliksemdesign -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Gegenereerd op: 15 mrt 2019 om 17:51 -- Serverversie: 5.7.19 -- PHP-versie: 7.0.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
-- DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INTEGER AUTO_INCREMENT NOT NULL PRIMARY KEY, burger_name VARCHAR(255), devoured BOOLEAN DEFAULT FALSE, createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP );
DROP TABLE IF EXISTS `customer_group`; CREATE TABLE `customer_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `parent_id` int(11) DEFAULT NULL, `fixed_disc...
-- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-10-2017 a las 22:59:41 -- Versión del servidor: 10.1.25-MariaDB -- Versión de PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `porcentajesFactorIntegra...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 20, 2021 at 04:37 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2020 at 10:39 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
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', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
-- DROP DATABASE IF EXISTS sql_blog_uuid; CREATE DATABASE IF NOT EXISTS sql_blog_uuid; USE sql_blog_uuid; -- DROP TABLE IF EXISTS employee CREATE TABLE IF NOT EXISTS employee ( id BINARY(16) PRIMARY KEY NOT NULL DEFAULT (unhex(replace(uuid(),'-',''))), -- KIM: if you're not running at least MYSQL 8.0 you may ...
DELIMITER $$ CREATE PROCEDURE `gerarMensalidadeGeral_sp`() BEGIN create temporary table A as ( select id from contas where tipo_status_id <> 0 ); create temporary table B as ( select conta_id from mensalidades where concat(month(created_at),year(created_at)) = concat(month(now()),year(now())) ); ...
<reponame>TomGeske/iPaaS-Sample CREATE USER [mi-rest-service] FOR EXTERNAL PROVIDER;
create table role_permission ( role_id uuid not null, permission_id uuid not null, create_app_id uuid not null, create_user_id uuid, create_timestamp timestamp with time zone not null, update_app_id uuid ...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Jul 2020 pada 04.28 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
ALTER TABLE gocardless_payments DROP CONSTRAINT transactions_gocardless_payments_fk;
<filename>tests/_data/dump.sql -- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) -- -- Host: localhost Database: test_invoice_app -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET...
<reponame>zackdotcomputer/watchthatname /* Warnings: - A unique constraint covering the columns `[domain,user]` on the table `Wishdomain` will be added. If there are existing duplicate values, this will fail. */ -- CreateIndex CREATE UNIQUE INDEX "Wishdomain.domain_user_unique" ON "Wishdomain"("domain", "user");
<filename>src/flyway/resources/db/migration/sqlite/V1__initial_migration.sql CREATE TABLE MATCHED_SERIES ( SERIES_ID varchar NOT NULL PRIMARY KEY, THUMBNAIL_ID varchar, PROVIDER varchar NOT NULL, PROVIDER_SERIES_ID varchar NOT NULL );
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table tbbusinesses ( id integer not null, company_name varchar(255), company_category varchar(255), company_subcategory ...
-- Materialized View: public.word_list_view -- DROP MATERIALIZED VIEW public.word_list_view; CREATE MATERIALIZED VIEW public.word_list_view AS SELECT DISTINCT word.id, word.text, lower(word.text::text) AS text_lower, CASE WHEN "substring"(lower(word.text::text), 1, 1) = ANY (ARRAY['a'::t...
ALTER TABLE message ADD COLUMN thread_dirty INTEGER NOT NULL DEFAULT 0; UPDATE message SET thread_dirty = 1 WHERE ( SELECT sum(m2.dirty) + sum(m2.needs_my_answer) FROM message m2 WHERE m2.sortid = message.sortid ) > 0; ALTER TABLE message ADD COLUMN last_thread_message TEXT; UPDATE message SET last_thread_m...
CREATE TABLE IF NOT EXISTS `JDORESOURCEACCESS_ACCESSTYPE` ( `ID_OID` bigint(20) NOT NULL, `OWNER_ID` bigint(20) NOT NULL, `STRING_ELE` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, PRIMARY KEY (`ID_OID`,`STRING_ELE`), KEY `JDORESOURCEACCESS_ACCESSTYPE_N49` (`ID_OID`), CONSTRA...
-------------------------------------------------------- -- File created - Monday-June-17-2013 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Sequence ATTACHMENT_ID_SEQ -------------------------------------------------------- CREATE ...
<gh_stars>1-10 CREATE DATABASE `workshop`; USE `workshop`; CREATE TABLE `country` ( `country_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `abbreviation` varchar(2) NOT NULL, PRIMARY KEY (`country_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; CREATE TABLE `city` ( `city_id`...
ALTER TABLE multimedia ADD OriginalDate DATETIME NULL; ALTER TABLE multimedia ADD CameraMake VARCHAR(255) NULL; ALTER TABLE multimedia ADD CameraModel VARCHAR(255) NULL; ALTER TABLE multimedia ADD GPSLatitudeRef VARCHAR(1) NULL; ALTER TABLE multimedia ADD GPSLatitude VARCHAR(32) NULL; ALTER TABLE multimedia ADD GPSLong...
CREATE INDEX IF NOT EXISTS UX_153cda_ChangeVersion ON lmsx.Assignment(ChangeVersion); CREATE INDEX IF NOT EXISTS UX_f12526_ChangeVersion ON lmsx.AssignmentSubmission(ChangeVersion);
<reponame>lizhichao/ClickHouse DROP TABLE IF EXISTS set; DROP TABLE IF EXISTS set2; CREATE TABLE set (x String) ENGINE = Set; SELECT arrayJoin(['Hello', 'test', 'World', 'world', 'abc', 'xyz']) AS s WHERE s IN set; SELECT arrayJoin(['Hello', 'test', 'World', 'world', 'abc', 'xyz']) AS s WHERE s NOT IN set; INSERT IN...
ALTER TABLE service_detail MODIFY `_value` TEXT;
<reponame>bk-mtg/piwheels<gh_stars>0 REVOKE ALL PRIVILEGES ON DATABASE {dbname} FROM PUBLIC; REVOKE ALL PRIVILEGES ON SCHEMA public FROM PUBLIC; GRANT CONNECT, TEMP ON DATABASE {dbname} TO {username}; GRANT USAGE ON SCHEMA public TO {username}; -- configuration ---------------------------------------------------------...
<filename>software/cabio-database/scripts/ddl/Tables/GENOMICSEGMENT.sql<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*/ DROP TABLE GENOMICSEGMENT CASCADE CONSTRAINTS PURGE / -- -- GENOMICSEGMENT (Table) ...
--update 2 tables with clob type column for join condition, with composed index autocommit off; set system parameters 'dont_reuse_heap_file=yes'; drop table if exists md_clob1; drop table if exists md_clob2; create table md_clob1(id1 numeric(10, 5), col1 timestamp not null default CURRENT_TIMESTAMP, col2 clob); insert...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:opengauss关键字nulls(非保留),作为角色名 --关键字不带引号-成功 drop role if exists nulls; create role nulls with password '<PASSWORD>' valid until '2020-12-31'; drop role nulls; --关键字带双引号-成功 drop role if exists "nulls"; create role "nulls" with password '<PASSWORD>' valid until '2...
<filename>db/database_create.sql CREATE DATABASE IF NOT EXISTS `test_sys`; USE `test_sys`; CREATE TABLE `test_table` ( `id` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ALTER TABLE `test_table` ADD PRIMARY KEY (`id`);
<reponame>binh-lashic/lashic-care-web<filename>fuel/app/databases/ddl/003_infic_batch_db.sql USE [master] GO /****** Object: Database [infic_batch_db] Script Date: 4/24/2017 1:39:33 AM ******/ CREATE DATABASE [infic_batch_db] GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [infic_batch_db].[db...
<reponame>HimuraLee/scrum-blog SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for cate -- ---------------------------- DROP TABLE IF EXISTS `cate`; CREATE TABLE `cate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '' COMMENT '分类名', PR...
USE MOVIE GO CREATE TABLE Movie ( mID INT IDENTITY(101,1), title VARCHAR(50) NOT NULL, year INT NOT NULL, director VARCHAR(50), PRIMARY KEY(mID), CONSTRAINT title_UNIQUE UNIQUE (title) ); GO CREATE TABLE Reviewer( rID INT IDENTITY(201,1), names VARCHAR(50) NOT NULL, PRIMARY KE...
<filename>lib/ddl/assets/0100_create_tables.sql<gh_stars>1-10 create table PLS_ASSET ( ass_type varchar not null, -- The asset type (css, images, js). ass_base_dir varchar not null, -- The directory relative to project root to base dir of the asset. ass_to_dir varchar, -- The directory under the as...
drop procedure if exists P_IM_UPGRADE; delimiter $$ CREATE PROCEDURE P_IM_UPGRADE() RUN_LABEL: begin -- mysql升级版本 set @num=0; select count(0) into @num from sys_info ; if @num = 0 then insert into sys_info values ('00000',0.001,sysdate()); end if; set @num=0; select count(0) into ...
INSERT INTO "servicos" (servico, tempo_medio_atendimento, aceita_desconto, valor) VALUES ('<NAME>', '00:30:00', false, 15.00), ('<NAME>', '00:30:00', false, 15.00), ('SOMBRANCELHA', '00:30:00', true, 10.00), ('DEPILAÇÃO CORPORAL', '01:00:00', true, 50.00), ('<NAME>', '00:15:00', false, 05.00), ('<NAME>', '00:15:00', fa...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.28, for Win64 (x86_64) -- -- Host: localhost Database: nhl363 -- ------------------------------------------------------ -- Server version 8.0.28 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
DELIMITER / UPDATE NOTIFICATION_TYPE SET SUBJECT='Human Subjects Usage Special Review Inserted - {AWARD_NUMBER}' WHERE MODULE_CODE='1' AND ACTION_CODE='552' / UPDATE NOTIFICATION_TYPE SET MESSAGE='Human Subjects Special Review Inserted - {AWARD_NUMBER}' WHERE MODULE_CODE='1' AND ACTION_CODE='552' / UPDATE NOTIFICATION...
<reponame>bjorn3/paddlers-browser-game<filename>migrations/2019-10-04-171301_level_system/up.sql ALTER TABLE workers ADD COLUMN level INT NOT NULL DEFAULT 1; ALTER TABLE workers ADD COLUMN exp INT NOT NULL DEFAULT 0;
<reponame>villeheikkila/maku --! Previous: sha1:fde4867f1f3d54fd4a1ff46dc4b9e34e5aee3a6f --! Hash: sha1:2631fde00247e4467e5ebfe389cc32e59ce3190d --! split: 1-current.sql -- Enter migration here create or replace function create_company(company_name text) returns app_public.companies security definer SET search_pat...
<gh_stars>10-100 CREATE OR REPLACE FUNCTION make_current_tid() RETURNS BIGINT AS $$ SELECT make_tid_for_epoch( EXTRACT(EPOCH FROM clock_timestamp()) ); $$ LANGUAGE SQL STABLE STRICT PARALLEL SAFE;
<reponame>conreality/conreality.sql DROP FUNCTION IF EXISTS conreality.state() RESTRICT; CREATE FUNCTION conreality.state() RETURNS text AS $$ DECLARE state conreality.state_action; BEGIN SELECT action FROM conreality.state ORDER BY timestamp DESC LIMIT 1 INTO state; RETURN state; END; $$ LANGUAGE plpgsql;
-- -------------------------------------------------------- -- Vært: alpha69.cfuzrlbo4jgs.eu-central-1.rds.amazonaws.com -- Server-version: 5.7.21 - MySQL Community Server (GPL) -- ServerOS: Linux -- HeidiSQL Version: 9.5.0.5196 -- ------------------...
delete from `cities`; delete from `users`;
# # Copyright (C) 2019 Vdaas.org Vald team ( kpango, kmrmt, rinx ) # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
insert into Payment (orderID, cartID, customerID, finalAmount) values (300, 100, 1625, 246.81); insert into Payment (orderID, cartID, customerID, finalAmount) values (301, 1, 1826, 203.41); insert into Payment (orderID, cartID, customerID, finalAmount) values (302, 2, 1585, 318.72); insert into Payment (orderID, cartI...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50718 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2017-06-05 20:10:00 */ SET FOREIGN_KEY_CHECKS=0; --...
<filename>frontaccounting/sql/alter2.2rc.sql<gh_stars>1-10 # Patch for upgrade from 2.2beta to 2.2RC/final ALTER TABLE `0_tag_associations` DROP COLUMN `id`; ALTER TABLE `0_tag_associations` ADD UNIQUE KEY(`record_id`,`tag_id`); DROP TABLE IF EXISTS `0_useronline` ; CREATE TABLE `0_useronline` ( `id` int(11) NOT N...
<filename>create_All.sql -- a script to create all the tables -- drop table if exists DON cascade; -- relation between MANGA and USER_DONOR -- drop table if exists CREATE_MANGA cascade; -- relation between MANGA and USER_MANGAKA -- drop table if exists USER_DONOR cascade; drop table if exists USER_MANGAKA cascade;...