sql
stringlengths
6
1.05M
-- file:timestamptz.sql ln:245 expect:true SELECT '' AS to_char_10, to_char(d1, 'IYYY IYY IY I IW IDDD ID') FROM TIMESTAMPTZ_TBL
IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END; GO CREATE TABLE [AspNetRoles] ( [Id...
--<ScriptOptions statementTerminator=";"/> CREATE TABLE "DB2INST1"."PRODUCTS" ( "NAME" VARCHAR(20) NOT NULL, "DOWNLOADSPEED" INTEGER, "MONTHLYUSAGE" INTEGER, "PACKAGENAME" VARCHAR(50), "PRICE" DOUBLE, "PRODUCTCATEGORY" VARCHAR(50), "CREATIONDATE" TIMESTAMP, "UPDATEDATE" TIMESTAMP ) DATA CAPTURE NONE;...
USE [WatchList] GO /****** Object: Table [dbo].[WatchListQueueItems] Script Date: 12/9/2021 2:59:17 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[WatchListQueueItems]( [WatchListQueueItemID] [int] IDENTITY(1,1) NOT NULL, [WatchListItemID] [int] NOT NULL, [Notes] [varchar](200...
<reponame>zz201507/My-blog SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_attach -- ---------------------------- DROP TABLE IF EXISTS `t_attach`; CREATE TABLE `t_attach` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `fname` varchar(100) CHARACTER SET utf...
<filename>persistence/sql/migrations/20191100000005_identities.mysql.down.sql /* ALTER TABLE identity_credential_identifiers MODIFY COLUMN identifier VARCHAR(255); */
CREATE DATABASE IF NOT EXISTS `mod_db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `mod_db`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: mod_db -- ------------------------------------------------------ -- Server version 5.5.5-10.1.21-MariaDB /*!40101 SET @OLD_CHA...
<filename>ds_shop.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : ds_shop Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-01-18 17:39:16 ...
-- -- Tables -- CREATE TABLE LJSA_SERVIZI ( ID_SERVIZIO VARCHAR(50) NOT NULL, DESCRIZIONE VARCHAR(100) NOT NULL, ATTIVO VARCHAR(1) NOT NULL, CONSTRAINT PK_LJSA_SERVIZI PRIMARY KEY (ID_SERVIZIO)); CREATE TABLE LJSA_CREDENZIALI ( ID_SERVIZIO VARCHAR(50) NOT NUL...
CREATE DATABASE wikift DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; ALTER DATABASE wikift DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE wikift; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS article; CREATE TABLE article( a_id BIGINT(20) NOT NULL AUTO_INCREMENT , a_title V...
<filename>src/Frapid.Web/Areas/MixERP.Inventory/db/PostgreSQL/2.x/2.0/src/02.functions-and-logic/inventory.get_item_group_id_by_item_group_code.sql DROP FUNCTION IF EXISTS inventory.get_item_group_id_by_item_group_code(text); CREATE FUNCTION inventory.get_item_group_id_by_item_group_code(text) RETURNS integer AS ...
BEGIN; CREATE TABLE jwt ( subject text PRIMARY KEY ); CREATE TABLE operator ( subject text PRIMARY KEY, name text NOT NULL UNIQUE, FOREIGN KEY (subject) REFERENCES jwt (subject) ); CREATE TABLE account ( subject text PRIMARY KEY, name text NOT NULL, operator_subje...
--HINT DISTRIBUTE ON RANDOM CREATE TABLE concept_relationship ( concept_id_1 INTEGER NOT NULL, concept_id_2 INTEGER NOT NULL, relationship_id VARCHAR(20) NOT NULL, valid_start_date DATE NOT NULL, valid_end_date DATE NOT NULL, invalid_reason VARCHAR(1) NULL ); COPY concept_relations...
<filename>posda/posdatools/queries/sql/ImportsLikeType.sql<gh_stars>1-10 -- Name: ImportsLikeType -- Schema: posda_files -- Columns: ['import_type', 'import_comment', 'import_time', 'total_files'] -- Args: ['from', 'to', 'type_like'] -- Tags: ['downloads_by_date', 'import_events'] -- Description: Counts query by Collec...
<filename>query/appservice/appservice_web_app_latest_http_version.sql select type || ' ' || name as resource, case when (arguments -> 'site_config') is null then 'alarm' when (arguments -> 'site_config' ->> 'http2_enabled')::boolean then 'ok' else 'alarm' end status, name || case when (arguments...
alter table ACT_RU_EXECUTION add column BUSINESS_STATUS_ varchar(255); update ACT_GE_PROPERTY set VALUE_ = '6.7.0.1' where NAME_ = 'schema.version';
<reponame>Seetochka/1293483-task-force-1 INSERT INTO task (dt_add, dt_end, title, description, address, budget, status, latitude, longitude, category_id, customer_id, executor_id, city_id) VALUES ('2019-03-09', '2019-11-15', 'Уборка новой квартиры после ремонта', 'Уборка квартиры после ремонта, 37 м2. Надо убрать всю п...
<filename>blog/wp-content/plugins/social-share-buttons-by-supsystic/app/configs/rev-320.sql DELETE FROM `%prefix%project_networks` WHERE network_id IN (SELECT id FROM `wp_supsystic_ss_networks` WHERE name = 'Twitter Follow'); DELETE FROM `%prefix%networks` WHERE name = 'Twitter Follow'
<filename>docs/Database Migrations/008_CreateHistoryTable.sql create table history ( historyId INTEGER PRIMARY KEY, taskId INT NOT NULL, oldStatus TEXT NOT NULL, newStatus TEXT NOT NULL, oldResponsible INT NOT NULL, newResponsible INT NOT NULL, createdIn INT NOT NULL, createdBy INT N...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 10, 2019 at 02:42 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>sauloal/projects<filename>probes/original/sql/probe/probe_optimize.sql<gh_stars>0 OPTIMIZE TABLE probe.organism; OPTIMIZE TABLE probe.probe; OPTIMIZE TABLE probe.coordinates; OPTIMIZE TABLE probe.fast;
<gh_stars>0 /*****/ set NAMES UTF8; /*----判断数据库是否存在-----*/ DROP DATABASE IF EXISTS perfect; CREATE DATABASE perfect CHARSET = UTF8; USE perfect; /*----------创建用户表----------*/ CREATE TABLE perfect_user ( uid INT PRIMARY KEY AUTO_INCREMENT, #用户id uname VARCHAR(16), #用户名称 upwd VARCHAR(...
<gh_stars>1-10 USE [ANTERO] GO ALTER VIEW [dw].[v_arvo] AS SELECT d_kalenteri.vuosi AS 'Tilastovuosi' ,d_kalenteri.vuosi AS 'Statistikår' ,d_kalenteri.vuosi AS 'Statistical year' ,d_organisaatioluokitus.organisaatio_koodi as 'Koodit Organisaatio' ,d_organisaatioluokitus.organisaatio_fi as 'Organisaatio' ,d_organis...
<reponame>jdkoren/sqlite-parser -- reindex.test -- -- execsql { -- REINDEX main.i1; -- } REINDEX main.i1;
-- file:interval.sql ln:98 expect:true CREATE TABLE INTERVAL_MULDIV_TBL (span interval)
/*List the following details of each employee: employee number, last name, first name, gender, and salary.*/ SELECT emp.emp_no as "Employee Number", emp.last_name as "<NAME>", emp.first_name as "<NAME>", emp.gender, sal.salary FROM employees emp JOIN salaries sal ON emp.emp_no = sal.emp_no; /*List emplo...
CREATE TABLE transactions ( TRANSACTION_ID text, PAYER text, POINTS int, TIMESTAMP TIMESTAMP with time zone, USER_ID text );
<filename>dbt-greenery-renee/models/example/see_mushrooms.sql<gh_stars>0 select * from {{ ref('mushrooms') }}
CREATE TABLE sourceTable ( `data` STRING ) WITH ( 'connector.type' = 'elasticsearch', 'connector.version' = '5', 'connector.hosts' = 'http://localhost:9200', 'connector.index' = 'flink-demo', 'connector.document-type' = 'ip', 'format.type'='json' ) CREATE TABLE sinkTable ( `data` STRING...
alter table pos_order_goods add cost_price DECIMAL(10, 2) DEFAULT 0; # # DROP TABLE IF EXISTS `pos_goods_random`; CREATE TABLE `pos_goods_random` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id...
/* Copyright (c) 2006-2012 Regents of the University of Minnesota. For licensing terms, see the file LICENSE. */ /** add host column to the database **/ BEGIN; SET CONSTRAINTS ALL DEFERRED; ALTER TABLE route ADD COLUMN host INET; COMMIT;
<reponame>Energinet-DataHub/geh-charges -- Move data from ChargeLinkPeriodDetail to ChargeLink before removing the details table in a subsequent migration -- Algorithm: -- - Add column to charge table -- - Set column value from details table (in order to preserve existing data) -- - Apply NOT NULL constraint if applica...
<gh_stars>1-10 {{ retrieve_edfi_records_from_data_lake('base_edfi_students') }} select date_extracted as date_extracted, school_year as school_year, id as id, json_value(data, '$.studentUniqueId') as student_uniq...
<gh_stars>1-10 CREATE TABLE [dbo].[LineSignatures] ( -- After each sign/revoke, the system recalculates the new Document Line state, based on the workflow and account rules -- Redundant signatures (where actor/role is not specified in the workflow or the accounts) are discarded -- Duplicate last signatures are discard...
SELECT o.schema_id AS schema_oid, o.name AS table_name, o.is_memory_optimized, si.name, si.is_primary_key, si.is_unique, si.is_unique_constraint, INDEXPROPERTY(si.object_id, si.name, 'IsClustered') AS is_clustered, si.is_padded, sp.data_compression, sp.data_compression_desc...
<filename>airflow/migrations/0002-add-execution-report-tables-202009031811.sql /* A tabela sci_pages_availability guarda o registro do resultado da verificação da disponibilidade de URI do padrão do site clássico, pois o site novo deve continuar a atender o padrão anterior Para cada URI verificada, é criada uma...
select * from time where id = ?;
<reponame>pedroroque/DigitalBroadcaster CREATE TABLE [dbo].[News] ( [ID] INT IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL, [Name] CHAR (100) NULL, [TypeID] INT NULL, [Date] DATETIME NULL, [Activ] INT CONSTRAINT [DF_News_Activ] ...
CREATE TEMPORARY TABLE `organizations_temp` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `abbreviation` char(6) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `notes` text COLLATE utf8mb4_unicode_ci, `primaryColor` varchar(7) COLLATE utf8mb4_unicode_ci DE...
<filename>crypto11.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 08, 2019 at 01:10 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
<reponame>jmcasarotto/assetcloud /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50631 Source Host : localhost:3306 Source Database : jobs24_base Target Server Type : MYSQL Target Server Version : 50631 File Encoding : 65001 Date: 2017-09-28 16:00:4...
<filename>db/accdb/schema/DataModels/CREATE/VIEW/SELECT/ParamSelectDivisionExecutionData.sql<gh_stars>0 PARAMETERS RcCodeArgs TEXT(255); SELECT DivisionExecution.BFY, DivisionExecution.AhCode, DivisionExecution.FundCode, DivisionExecution.AccountCode, DivisionExecution.ProgramProjectCode, DivisionExecution.OrgCode, Di...
<filename>dbv-1/data/schema/prc_WSUpdateAllInProgressJobStatusToPending.sql<gh_stars>0 CREATE DEFINER=`root`@`localhost` PROCEDURE `prc_WSUpdateAllInProgressJobStatusToPending`(IN `p_companyid` INT, IN `p_ModifiedBy` LONGTEXT ) BEGIN SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; UPDATE tblJob SET Job...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2021 at 08:54 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>fr_2 (1).sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2022 at 02:43 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
-- -- This SELECT will be used to report on deployments for any particular -- application or role. -- SELECT app.name AS app_name, rel.version, rol.role, CASE dep.deploy_at WHEN 0 THEN 'Deferred' WHEN 1 THEN 'Immediate' ELSE 'Invalid deploy_at' END AS deploy_at, CASE dep.status WHEN 0 THEN ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 20, 2018 at 06:40 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.1.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<gh_stars>1-10 ALTER TABLE problem_set_revision_solution ADD user_id varchar(36) NULL; ALTER TABLE problem_set ADD user_id varchar(36) NULL;
SELECT * FROM raw_query_friendlyauthor UPDATE raw_query_author SET first_name=thing WHERE first_name=Joe SELECT * FROM widgets; select 1 from dual where '1936-12-29 00:00' < sysdate CREATE TABLE ROLLBACK_TEST (X INT) SELECT sql FROM sqlite_master WHERE tbl_name = %s SELECT * FROM raw_query_author WHERE first_name = %s...
-- Create compiled_historical_collection view for API to hit. Aggregates values from all -- associated lookup tables. This SQL only needs to be run after initial database -- creation -- Main collection api endpoint for LORE historical datasets: api/v1/historical DROP MATERIALIZED VIEW IF EXISTS "compiled_historical_col...
<reponame>git-hulk/memefish SELECT DISTINCT * FROM Singers
/* https://www.sqlshack.com/understanding-sql-server-proportional-fill-algorithm/ */ DBCC TRACEON (1165, 3605); GO EXEC sp_cycle_errorlog; GO CREATE DATABASE PropFillDemo ON PRIMARY ( NAME = N'PropFillDemo', FILENAME = N'g:\MSSQL19\MSSQL15.MSSQL19\MSSQL\DATA\PropFillDemo2.mdf', SIZE = 10MB , MAXSIZE = ...
<reponame>dram/metasfresh<filename>backend/de.metas.procurement.base/src/main/sql/postgresql/system/50-de.metas.procurement/5442088_sys_09629_fix_table_PMM_Product.sql -- 10.03.2016 12:49 -- URL zum Konzept INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,...
/************************************************************* ** Name: render_setcolor.sql ** ** Author: <NAME> ** ** Date: 26th October 2010 ** ** This script dynamically changes the color of an element ** ** ...
use veritabani; go create procedure sp_koltuk_sil @salon_koltuk_id int, @koltuk_id int as begin delete from tbl_koltuk where koltuk_salon_id=@salon_koltuk_id and koltuk_id=@koltuk_id end exec sp_koltuk_sil 1,470
INSERT INTO passwords (hashed_user, hashed_password) VALUES ('<PASSWORD>c350a7b760b45f1bae57ac62069b0d22387101dd9a931f5290ad6f9461', '<PASSWORD>'), ('4373c8e3f7eabdfee3643a048e312174cab24cd2075349ad1e01248afd<PASSWORD>f', '<PASSWORD>'), ('<PASSWORD>', '<PASSWORD>'), ('35da7dfb706cd52e20a250...
<filename>templates/db/shibpid_ddl.sql CREATE TABLE IF NOT EXISTS shibpid ( localEntity VARCHAR(255) NOT NULL, peerEntity VARCHAR(255) NOT NULL, persistentId VARCHAR(50) NOT NULL, principalName VARCHAR(50) NOT NULL, localId VARCHAR(50) NOT NULL, peerProvidedId VARCHAR(50) NULL, creationDate ...
-- -*-sql-*- -- -- Copyright (C) 2006 <NAME> <<EMAIL>> -- -- This software's license gives you freedom; you can copy, convey, -- propagate, redistribute and/or modify this program under the terms of -- the GNU Affero General Public License (AGPL) as published by the Free -- Software Foundation, either version 3 of the...
update tb_demanda set dt_abertura = dt_alteracao where dt_abertura BETWEEN '2018-01-01' and '2018-12-31';
<gh_stars>0 \copy dia_visits_matched.diasrc_cat ("index","id","coord_ra","coord_dec","parent","flags_negative","base_NaiveCentroid_x","base_NaiveCentroid_y","base_NaiveCentroid_flag","base_NaiveCentroid_flag_noCounts","base_NaiveCentroid_flag_edge","base_NaiveCentroid_flag_resetToPeak","base_PeakCentroid_x","base_PeakC...
<reponame>raja-dayo/mst -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 10, 2020 at 03:52 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 10, 2022 at 02:30 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>scripts/initial/empenho_nota_liquidacao_conta_pagadora.sql SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = empenho, pg_catalog; INSERT INTO empenho.not...
<reponame>jinsukmik/burger DROP DATABASE IF EXISTS burger_db; CREATE DATABASE burger_db; USE burger_db; CREATE TABLE burger ( id INTEGER AUTO_INCREMENT, burger_name VARCHAR(255), devoured BOOLEAN, date TIMESTAMP, PRIMARY KEY (id) )
<reponame>stmandl/exa-toolbox /* This UDF returns a scalar value from a JSON document (as string). It uses a JSONPath expression to locate the value in the document. See https://goessner.net/articles/JsonPath/ for details of JSONPath. */ CREATE SCHEMA IF NOT EXISTS EXA_toolbox; --/ CREATE OR REPLACE PYTHON ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2021 at 05:42 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 22, 2020 at 10:41 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...
<filename>RuleTests/TestScripts/AvoidWaitForDelayRule/ProcWithWaitForDelay.sql  CREATE PROCEDURE ProcWithWaitForDelay AS BEGIN WAITFOR DELAY '00:00:15'; -- Waits 15 seconds before executing. This should be flagged as a problem RETURN SELECT * FROM dbo.Table1 END
-- From here: https://www.mssqltips.com/sqlservertip/2561/querying-sql-server-agent-job-information/ SELECT [sJOB].[job_id] AS [JobID] , [sJOB].[name] AS [JobName] , [sJSTP].[step_uid] AS [StepID] , [sJSTP].[step_id] AS [StepNo] , [sJSTP].[step_name] AS [StepName] , CASE [sJSTP].[subsystem] ...
CREATE TABLE public.polls ( id bigserial NOT NULL, name character varying(30) NOT NULL, server_id bigint NOT NULL, channel_id bigint NOT NULL, react_emoji character varying(15) NOT NULL, PRIMARY KEY (id), UNIQUE (name, channel_id, server_id) ); CREATE TABLE public.poll_messages ( poll_id bigint...
-- Scenario: -- * Multiple junction table records per unique pair of nodes -- * No additional junction table columns drop schema if exists c cascade; create schema c; create table c.foo ( foo_id integer primary key, foo_name text not null ); create table c.bar ( bar_id integer primary key, bar_name text not ...
<gh_stars>1-10 DROP TRIGGER IF EXISTS event_log_notify ON lantern.event_log CASCADE; DROP FUNCTION IF EXISTS lantern.ev_notify() CASCADE; DROP TABLE IF EXISTS lantern.event_log_last_notification CASCADE; DROP INDEX IF EXISTS lantern.event_log_counter_idx CASCADE; ALTER TABLE IF EXISTS lantern.roles DROP CONSTRAINT IF...
WITH -------------------------------------------------------------------------------- -- Source tables -------------------------------------------------------------------------------- source_vi_ssvid_global AS ( SELECt * FROM `gfw_research.vi_ssvid_v20200115` ), source_vi_ssvid_by_year A...
/* I am a SQL file */ select 1; select version();
<filename>goci-core/goci-db-binding/src/main/resources/db/migration/V2.2.0_036__Add_open_targets_tag.sql<gh_stars>10-100 /* ################################################################################ Add OPEN_TARGETS column to STUDY table This column is used to indicate a study being curated for the Open Targets ...
-- Copyright 2018 Google LLC -- -- 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 applicable law or agreed to in ...
-- goInception的动态参数配置模板 insert into param_template (db_type, variable_name, default_value, editable, valid_values, description, create_time, sys_time) VALUES ('goinception','check_autoincrement_datatype','false',1,'true,false','当建表时自增列的类型不为int或者bigint时报错','2019-05-27 15:12:59.000000','2019-05-27 15:12:59.000000'), ('go...
-- SET FOREIGN_KEY_CHECKS=0; -- drop table if exists `mst_projbudgetrev`; -- drop table if exists `mst_projbudgetrevdet`; -- drop table if exists `mst_projbudgetrevappr`; CREATE TABLE `mst_projbudgetrev` ( `projbudgetrev_id` varchar(30) NOT NULL , `dept_id` varchar(30) NOT NULL , `projbudget_id` varch...
-- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) -- -- Host: relational.fit.cvut.cz Database: mutagenesis_42 -- ------------------------------------------------------ -- Server version 5.5.5-10.3.15-MariaDB-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_...
set system parameters 'create_table_reuseoid=no'; --TEST: pass expresstions to the params drop table if exists p_disc; create table p_disc( col1 int auto_increment primary key, col2 float not null, col3 char(20) default 'abc', col4 datetime default SYS_DATETIME, col5 bit varying ); insert into p_disc(col2, col3...
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table tb (a double ); create index i_tb_a on tb(log10(a)); insert into tb values (1); insert into tb values (2); insert into tb values (3); insert into tb values (null); --expect index is used. In fact, it...
-- @testpoint: opengauss关键字Lc_Collate(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists Lc_Collate; create synonym Lc_Collate for explain_test; insert into Lc_Collate values (1,'ada'),(2, 'bob'); update Lc_Collate...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-11-2017 a las 05:35:06 -- Versión del servidor: 10.1.16-MariaDB -- Versión de PHP: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
<filename>migrations/schema.sql -- -- PostgreSQL database dump -- -- Dumped from database version 14.0 -- Dumped by pg_dump version 14.0 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.s...
-- file:name.sql ln:46 expect:true SELECT '' AS seven, c.f1 FROM NAME_TBL c WHERE c.f1 ~ '.*'
<gh_stars>0 -- usage: logtriga(flds, query) -- -- query should include 2 args: -- $1 - for op type I/U/D, -- $2 - for op data CREATE OR REPLACE FUNCTION logtriga() RETURNS trigger AS '$libdir/logtriga', 'logtriga' LANGUAGE C;
create trigger tr_create_notification_user after insert on tbl_content for each row begin atomic insert into tbl_notification_data (id_content, seen, creation_timestamp) select ts.id, false, now() from tbl_content as tc inner join tbl_subscription_user as ts on tc.id_author = ts.id_user order ...
<reponame>Coleridge-Initiative/ada-2017-high-need -- make a new table where the dates are date type rather -- than text to do date manipulation \echo "Munging The Data" CREATE TABLE if NOT EXISTS ada_class3.ind_spells_dates AS SELECT recptno, benefit_type, to_date(start_date::text,'YYYY-MM-DD') start_date, to_da...
--==============================================================*/ -- Database name: */ -- DBMS name: INFORMIX */ -- Created on: 12.04.2004 13:48:07 */ --==============================================================*/ drop t...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 17, 2020 at 07:05 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>fivetran-jamie/dbt_asana with task_section as ( select * from `dbt-package-testing`.`asana`.`task_section` ), fields as ( select section_id, task_id from task_section ) select * from fields
<gh_stars>0 alter table "public"."comment" add column "post_uuid" uuid not null;
<filename>Memo/database/MemoDao.sql create database MemoDao; use MemoDao; drop table tb_memo; create table tb_memo( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `title` varchar(20) NOT NULL, `content` varchar(200) NOT NULL, `memotype` varchar(20) NOT NULL, `memotime` varchar(10) N...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table chat_room ( id bigint not null, constraint pk_chat_room primary key (id)) ; create table chat_room_member ( id bigint not null, ...
<reponame>vessels-tech/dfsp-identity -- Insert identity hashes DO $do$ BEGIN IF NOT EXISTS (SELECT 1 FROM identity.hash WHERE "identifier" = 'test') THEN INSERT INTO identity.hash("actorId", "type", "identifier", "algorithm", "params", "value", "isEnabled") VALUES ('1', 'password', 'test', 'pbkdf2',...
<reponame>SriSivaC/tungsten-replicator_clone /* Example table containing all MySQL data types for template checking. */ CREATE TABLE `all_mysql_types` ( `my_bit` bit(1) DEFAULT NULL, `my_tinyint` tinyint(4) DEFAULT NULL, `my_boolean` tinyint(1) DEFAULT NULL, `my_smallint` smallint(6) DEFAULT NULL, `my_mediumi...
---------------------------------------------------- -- FUNCTION: import_svc_refhandler_main -- Zweck: ueberall dort, wo ein service veraendert (changed,inserted,deleted) wurde, -- Zweck: muessen die Referenzen entweder: -- Zweck: - vom alten auf das neue Objekt umgebogen werden -- Zweck: - fuer das Obj...
<gh_stars>1000+ alter table SEC_CONSTRAINT alter column WHERE_CLAUSE type varchar(1000)^
<filename>sql/0008-wadmin-add-rating_rounds.sql -- Create new table rating_rounds representing rating round for each resource. -- One resource can have several rating rounds, each round containing ratings from active curators. CREATE TABLE `rating_rounds` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `r...
<filename>test/fixtures/benchmark_instance/one_completed_and_one_failed.sql -- -- This fixture creates the situation where one benchmarking task has been -- succesfully completed, and another has failed. Both of these success and failure -- events are attached to the same image_task. -- WITH tasks AS ( SELECT tas...