text
stringlengths
1
1.05M
update mitigatingcircumstancessubmission set issuetypes = array_replace(issuetypes, 'SeriousMedical', 'Accident'); update mitigatingcircumstancessubmission set contacts = array_replace(contacts, 'DeanOfStudents', 'FacultySeniorTutor'); update mitigatingcircumstancessubmission set contacts = array_replace(contacts, 'Dir...
DROP DATABASE IF EXISTS quaris; CREATE DATABASE quaris DEFAULT CHARACTER SET utf8;
drop schema if exists test_multi_add cascade; create schema test_multi_add; set search_path = test_multi_add; create table growing_table( id serial primary key, factor double precision, adder double precision, field_0 double precision ); insert into growing_table(id, factor, adder, field_0) values ...
-- randexpr1.test -- -- db eval {SELECT t1.f-case when ((t1.a in (select case case +min(case when coalesce((select max(a) from t1 where t1.e not between f and t1.b),f)<>(t1.d) then - -t1.f else 19 end)-case count(*)+(count(distinct t1.d)) when -min(e) then max(t1.f) else min(19) end when cast(avg(13) AS integer) the...
CREATE TABLE IF NOT EXISTS spotify_login_codes ( id varchar(36) PRIMARY KEY, /* unhex(replace(uuid(),'-','')) */ expires_at DATETIME NOT NULL, checked_at TIMESTAMP null, created_at TIMESTAMP null );
/* * Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-BASE 蓝鲸基础平台 is licensed under the MIT License. * * License for BK-BASE 蓝鲸基础平台: * ----------------------------------------------...
select version();
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_nnet_pca -- Dataset : BinaryClass_10 -- Database : monetdb -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "AD...
SET search_path TO shop; -- Create a new product CREATE OR REPLACE FUNCTION add_product( IN pName JSON, IN pSlug VARCHAR(255) DEFAULT '', IN pShort_desc JSON DEFAULT '{}', IN pLong_desc JSON DEFAULT '{}', IN pVariations JSON DEFAULT '{}', I...
-- @testpoint:openGauss保留关键字or作为列名 --Or作为列名大小写混合(合理报错) drop table if exists test_tbl; create table test_tbl( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(50) default n...
\copy (SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features FROM (SELECT 'Feature' As type, ST_AsGeoJSON(ST_Transform(ST_SetSRID(ST_MakePoint(lg.rd_x, lg.rd_y), 28992), 4326), 5, 0)::json As geometry, row_to_json((SELECT l FROM (SELECT quaycode, quayname as publicnam...
drop table if exists edp_specification;
SELECT e.EmployeeID, e.FirstName, e.LastName, d.Name AS [DepartmentName] FROM Employees e INNER JOIN Departments d ON d.DepartmentID = e.DepartmentID WHERE d.Name = 'Sales' ORDER BY e.EmployeeID
UPDATE version SET ver_id = '2.11.0';--omnidb--
[sql] select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substring(c_phone , 1 ,2) as cntrycode, c_acctbal from customer where substring(c_phone , 1 ,2) in ('21', '28', '24', '32...
DROP DATABASE IF EXISTS `experimentation_system_db`; CREATE DATABASE `experimentation_system_db`; USE `experimentation_system_db`; CREATE TABLE `management_users` ( `bgu_username` varchar(255) NOT NULL, `bgu_password` varchar(255) NOT NULL, `user_email` varchar(255) NOT NULL, PRIMARY KEY (`bgu_userna...
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; use employee_db; CREATE TABLE department ( id INT AUTO_INCREMENT, name VARCHAR(30), PRIMARY KEY (id) ); CREATE TABLE role ( id INT AUTO_INCREMENT, title VARCHAR(30), salary DECIMAL, department_id INT, PRIMARY KEY (id), ...
create table if not exists usuarios ( nome VARCHAR(255) NOT NULL, senha VARCHAR(255) NOT NULL, limite_de_credito FLOAT, PRIMARY KEY (nome) ); create table if not exists transacoes ( valor FLOAT, data TIMESTAMP, categoria VARCHAR(100), nome_usuario VARCHAR(255) NOT NULL, is_credito BOOLEAN, FOREIGN K...
-- get_package returns the details as a json object of the package identified -- by the input provided. create or replace function get_package(p_input jsonb) returns setof json as $$ declare v_package_id uuid; v_package_name text := p_input->>'package_name'; v_chart_repository_name text := p_input->>'chart_...
-------------------------------------------------------- -- 文件已创建 - 星期五-十一月-08-2019 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table KPI_DIC -------------------------------------------------------- CREATE TABLE "FZZLKPIV2"."KPI_DI...
/* Navicat MySQL Data Transfer Source Server : qwed Source Server Version : 50505 Source Host : localhost:3306 Source Database : jiu Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-01-04 09:21:45 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
INSERT INTO pos_itemtemp VALUES("IATT190001825","193083","191001","192001","30000","1","30000","7500","22500","1","1","1","IAT0708190845","NHO2018000007","PAID","original","193083"), ("IATT190001826","193022","191001","192003","30000","1","30000","0","30000","1","1","1","IAT0708190845","NHO2018000007","PAID","","193022...
SELECT m.vname, m.name, m.abtnr, a.* FROM t_ma AS m, t_abt AS a WHERE m.abtnr=a.id;
INSERT INTO member (id, name, birth_date, address) VALUES (1, 'Wawan Setiawan', '1990-01-10', 'kompleks Asia Serasi No 100'); INSERT INTO member (id, name, birth_date, address) VALUES (2, 'Teguh Sudibyantoro', '1991-02-10', 'Jalan Pemekaran No 99'); INSERT INTO member (id, name, birth_date, address) VALUES (3, 'Joko Wi...
-- 1 亿规模数据测试 -- in_date 日期范围集中在 (20170101, 20171231) show create table pt_a_hundred_millions_original\G; -- 添加索引 -- ALTER TABLE pt_a_hundred_millions_original -- ADD INDEX pt_ahmo_id (id), -- ADD INDEX pt_ahmo_goods_id (goods_id), -- ADD INDEX pt_ahmo_in_date (in_date); -- 复制表 create table pt_a_hundred_mi...
MERGE (asy:AGENTTYPE {type: "SoftwareAgent"}) MERGE (aty:AGENTTYPE {type:"Person"}) WITH aty, asy MATCH (o:OBJECT {id: $id}) MERGE (ag:AGENT { id:"0000-0002-2700-4605", name: "Simon Goring"}) <-[:isAgentType]-(aty) ON CREATE SET ag.created = timestamp() MERGE (ags:AGENT {name: "Keyword addit...
-- mysqldump-php https://github.com/ifsnop/mysqldump-php -- -- Host: localhost Database: caicachv_hoso1cua -- ------------------------------------------------------ -- Server version 5.5.59-cll-lve -- Date: Tue, 04 Jun 2019 21:26:35 +0700 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
 CREATE FUNCTION Accelerator.GetParticlesInRectangle( @X1 DECIMAL(10,2), @Y1 DECIMAL(10,2), @X2 DECIMAL(10,2), @Y2 DECIMAL(10,2) ) RETURNS TABLE AS RETURN ( SELECT Id, X, Y, Value FROM Accelerator.Particle WHERE X > @X1 AND X < @X2 AND Y > @Y1 AND Y < @Y2 );
-- Postgres pl/pgSQL implementation of Base32 Crockford encoding -- (see http://www.crockford.com/wrmg/base32.html ) CREATE OR REPLACE FUNCTION crockford(input bigint) RETURNS varchar LANGUAGE plpgsql IMMUTABLE STRICT AS $$ DECLARE charmap CONSTANT char[] = ARRAY['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',...
# focus demo # either 10.45 - 11.15 # or 15.30 - 16.00 Mechev, Alexandar ; F1 ; Mon 10.45 - 11.15 Raddick, Michael ; F2 ; Mon 15.30 - 16.00 Joliet, Emmanuel ; F3 ; Tue 10.45 - 11.15 Good, John ; F4 ; Tue 15.30 - 16.00 Vahi, Karan ; F5 ; Wed 10.45 - 11.15
--updated 2016/12/29 CREATE OR REPLACE VIEW V_PROCESS_TRACE AS select "P_ACT_ID","P_ACT_NAME","P_ACT_TYPE","P_ASSIGNEE","P_USER_ID","P_DURATION","P_END_TIME","P_START_TIME","P_PROC_DEF_ID","P_PROC_INST_ID","P_TASK_ID","P_TASK_COMMENT","P_TASK_FULL_COMMENT" from (SELECT a.act_id_ as p_act_id, a.act_name_ as p_act...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 02, 2020 at 01:57 PM -- Server version: 10.3.24-MariaDB-log-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.11-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -----------------------------------------------...
-- IFS-7138 Adding table to capture deleted applications. CREATE TABLE deleted_application_audit ( id bigint(20) PRIMARY KEY AUTO_INCREMENT, application_id bigint(20) NOT NULL UNIQUE, deleted_by BIGINT(20) NOT NULL, deleted_on DATETIME NOT NULL, KEY deleted_application_audit_deleted_by_to_user_fk (deleted_by...
CREATE Database `stats_db`; CREATE Database `apimgt_db`; USE `apimgt_db`; -- Start of IDENTITY Tables-- CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR(20), PRIMARY KEY (PRODUCT_NAME) )ENGINE INNODB; INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server'); CREATE TABLE ...
CREATE TABLE "AGENT_RELATIONS" ( "AGENT_ID" NUMBER NOT NULL ENABLE, "RELATED_AGENT_ID" NUMBER NOT NULL ENABLE, "AGENT_RELATIONSHIP" VARCHAR2(18 CHAR) NOT NULL ENABLE, "DATE_TO_MERGE" DATE, "ON_HOLD" VARCHAR2(1 CHAR), "HELD_BY" VARCHAR2(4000 CHAR), "AGENT_REMARKS" VARCHAR2(250 CHAR), "CREATED_BY" VA...
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
-- -- Copyright (c) 2009-2011 Misys Open Source Solutions (MOSS) and others -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- ...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: mysql.eoction.com -- Generation Time: Mar 08, 2017 at 04:03 AM -- Server version: 5.6.25-log -- PHP Version: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
-- -- SAK-31840 drop defaults as its now managed in the POJO -- alter table GB_GRADABLE_OBJECT_T alter column IS_EXTRA_CREDIT drop default; alter table GB_GRADABLE_OBJECT_T alter column HIDE_IN_ALL_GRADES_TABLE drop default;
ALTER TABLE expense DROP COLUMN expense_type_id;
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2021] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_user -- ---------------------------- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL ...
--! Previous: sha1:f69ac42284fe2f65421128f7d4eb2ff2e0fb01ba --! Hash: sha1:4c2a8f271a7c9dc5e4a0dee6d1cbfed1824aaa9e -- Enter migration here alter table basemaps add column if not exists is_disabled boolean not null default false; comment on column basemaps.is_disabled is ' Used to indicate whether the basemap is inclu...
CREATE TABLE second ( name varchar(200) PRIMARY KEY )
-- fts1o.test -- -- execsql { SELECT a, b, c FROM t2 WHERE a MATCH 'song'; } SELECT a, b, c FROM t2 WHERE a MATCH 'song';
create table product_brands ( id serial primary key, name varchar(255) not null ); create table product_types ( id serial primary key, name varchar(255) not null ); alter table products add column description varchar(255); alter table products add column picture_url varchar(255); alter tab...
CREATE TABLE [dbo].[TriggerEvent] ( [ID] INT NOT NULL, [Name] VARCHAR (50) NOT NULL, [BitmaskFlag] INT NOT NULL ); GO CREATE NONCLUSTERED INDEX [IX_TriggerEvent] ON [dbo].[TriggerEvent]([Name] ASC) INCLUDE([BitmaskFlag]); GO CREATE CLUSTERED INDEX [PK_TriggerEv...
DROP DATABASE IF EXISTS VG_Nexus_db; CREATE DATABASE VG_Nexus_db;
CREATE DATABASE db_locadora; USE db_locadora; CREATE TABLE tb_Cliente ( idCliente INT IDENTITY PRIMARY KEY, nomeCliente VARCHAR(200) NOT NULL, CPF CHAR(14) UNIQUE NOT NULL, dtNascimento DATE ); CREATE TABLE tb_Filme ( idFilme INT IDENTITY PRIMARY KEY, nomeFilme VARCHAR(200) NOT NULL, dtLancamento DATE NOT NUL...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2018 at 02:21 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"; /*!40101 SET @OLD...
-- generated by jXFW CREATE TABLE respondent (depid timeuuid, periodyear int, periodcode int, okpo text, caption text, PRIMARY KEY ((depid, periodyear, periodcode), okpo)) WITH CLUSTERING ORDER BY (okpo ASC);
/* * 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 ...
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP PUBLIC SYNONYM PUBLICATION_SOURCE / -- -- PUBLICATION_SOURCE (Synonym) -- -- Dependencies: -- PUBLICATION_SOURCE (Table) -- CREATE PUBLIC SYNONYM PUBLICATION_S...
-- -- TIMESTAMP -- CREATE TABLE TIMESTAMP_TBL (d1 timestamp(2) without time zone); -- Test shorthand input values -- We can't just "select" the results since they aren't constants; test for -- equality instead. We can do that by running the test inside a transaction -- block, within which the value of 'now' shouldn'...
-- -- Copyright (C) 2012-2015 the original author or authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by...
-- 节点表增加防墙监测字段 ALTER TABLE `ss_node` ADD COLUMN `ssh_port` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '22' COMMENT 'SSH端口' AFTER `is_subscribe`; ALTER TABLE `ss_node` ADD COLUMN `icmp` TINYINT(4) NOT NULL DEFAULT '1' COMMENT 'ICMP检测:-2-内外都不通、-1-内不通外通、0-外不通内通、1-内外都通' AFTER `ssh_port`; ALTER TABLE `ss_node` ADD COLUMN `tcp` ...
CREATE DATABASE CarRental CREATE TABLE Categories ( Id INT NOT NULL IDENTITY PRIMARY KEY, Category NVARCHAR(100) NOT NULL, DailyRate MONEY NOT NULL, WeeklyRate MONEY NOT NULL, MonthlyRate MONEY NOT NULL, WeekendRate MONEY NOT NULL ) CREATE TABLE Cars ( Id INT NOT NULL IDENTITY PRIMARY KEY, PlateNumber NVARCHAR(15) NO...
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 04, 2016 at 09:49 AM -- Server version: 10.0.17-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
-- 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...
insert into jig_data (id, display_name, created_at, updated_at, language, last_synced_at, description, theme, audio_background, audio_feedback_negative, audio_feedback_positive, direction, privacy_level, display_score, drag_assist, track_assessments) values ('d4cad43c-1dd5-11...
CREATE TABLE COMPANY ( UID_COMPANY BIGINT NOT NULL, NAME VARCHAR(200) NOT NULL, CNPJ VARCHAR(11) UNIQUE NOT NULL, CREATED_AT TIMESTAMP NOT NULL ); COMMENT ON TABLE COMPANY IS 'Tabela com as informações das empresa.'; COMMENT ON COLUMN COMPANY.UID_COMPANY IS 'Identificador único da tabela COMPANY.'; COMMENT ON COLUMN C...
-- This file is run from not only pg_regress, but also during the standalone -- pg_upgrade cluster test. It contains corner cases specific to pg_upgrade -- where the state that needs to be tested would otherwise be destroyed during -- a dump and restore (such as dropped columns). DROP SCHEMA IF EXISTS upgrade_cornerca...
INSERT INTO department (name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal"); INSERT INTO role (title, department_id, salary) VALUES ( "Sales Lead", 1, 100000), ( "Salesperson", 1, 80000), ( "Lead Engineer", 2, 150000), ( "Software Engineer", 2, 120000), ( "Account Manage...
EXEC DeleteDeliveriesWithEmptyINN
Select uv.userEmail userEmail, uv.userNonce userNonce, uv.nonceExpiration nonceExpiration From AppUsersVerification uv Where uv.userEmail = :email and uv.nonceExpiration > :moment
-- Tags: long /* timestamp 1419800400 == 2014-12-29 00:00:00 (Europe/Moscow) */ /* timestamp 1412106600 == 2014-09-30 23:50:00 (Europe/Moscow) */ /* timestamp 1420102800 == 2015-01-01 12:00:00 (Europe/Moscow) */ /* timestamp 1428310800 == 2015-04-06 12:00:00 (Europe/Moscow) */ /* timestamp 1436956200 == 2015-07-15 13:...
-- 514 Distribution of time from death to last procedure --HINT DISTRIBUTE_ON_KEY(count_value) with rawData(count_value) as ( select datediff(dd,d1.death_date, t0.max_date) as count_value from @cdmDatabaseSchema.death d1 inner join ( select person_id, max(procedure_date) as max_date from @cdmDatabaseSchema.p...
ALTER TABLE `quest_template` ADD COLUMN `ZoneOrSort` int(11) NOT NULL default '0' AFTER `entry` ; UPDATE `quest_template` SET `ZoneOrSort` = `ZoneId` WHERE `ZoneId` < 2147483647 ; UPDATE `quest_template` SET `ZoneOrSort` = -(4294967295 - `ZoneId` + 1 ) WHERE `ZoneId` >= 2147483647 ; UPDATE `quest_template` SET `ZoneOr...
ALTER TABLE Account ADD COLUMN verification_code VARCHAR(150) UNIQUE ;
-- file:alter_table.sql ln:927 expect:true alter table atacc1 add foreign key (a) references atacc2(id)
-- Test using an external table in a subquery. -- -- We used to have a bug where the scan on the external table was not -- broadcast to all nodes, so each segment scanned only its own portion -- of the external table, when the scan was in a subquery. In that case, -- the count(*) calculated for each value below was 1, ...
USE [master] GO CREATE DATABASE [THINDB] CONTAINMENT = NONE ON PRIMARY ( NAME = N'THINDB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\THINDB.mdf' , SIZE = 8192KB , FILEGROWTH = 65536KB ) LOG ON ( NAME = N'THINDB_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL1...
CREATE TABLE IF NOT EXISTS `#__folio` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(250) NOT NULL DEFAULT '', `alias` varchar(255) NOT NULL DEFAULT '', `catid` int(11) NOT NULL DEFAULT '0', `state` tinyint(1) NOT NULL default '0', `image` varchar(255) NOT NULL, `company` varchar(...
-- -- Author: Hari Sekhon -- Date: 2020-08-06 00:00:35 +0100 (Thu, 06 Aug 2020) -- -- vim:ts=2:sts=2:sw=2:et:filetype=sql -- -- https://github.com/harisekhon/sql -- -- License: see accompanying Hari Sekhon LICENSE file -- -- If you're using my code you're welcome to connect with me on LinkedIn and optionally send...
ALTER TABLE "selfservice_registration_flows" ALTER COLUMN "ui" TYPE jsonb, ALTER COLUMN "ui" DROP NOT NULL;
acm-computing-surveys computing-surveys acm-journal-on-emerging-technologies-in-computing-systems journal-on-emerging-technologies-in-computing-systems acm-transactions-on-accessible-computing transactions-on-accessible-computing acm-transactions-on-algorithms transactions-on-algorithms acm-transactions-on-applied-perc...
/* Navicat MySQL Data Transfer Source Server : Homestead Source Server Version : 50719 Source Host : 127.0.0.1:33060 Source Database : homestead Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2018-09-11 22:50:38 */ SET FOREIGN_KEY_CHECKS=0; -...
-- Deploy seattleflu/id3c-customizations:shipping/views to pg -- requires: seattleflu/schema:shipping/schema -- Hello! All shipping views are defined here. Rework this change with Sqitch -- to change a view definition or add new views. This workflow helps keep -- inter-view dependencies manageable. begin; -- This...
-- @testpoint:opengauss关键字double(非保留),作为视图名 --关键字double作为视图名,不带引号,创建成功 CREATE or replace VIEW double AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view double; --关键字double作为视图名,加双引号,创建成功 CREATE or replace VIEW "double" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop VIEW "doub...
CREATE SCHEMA IF NOT EXISTS _timescaledb_cache; CREATE TABLE IF NOT EXISTS _timescaledb_cache.cache_inval_extension(); CREATE OR REPLACE FUNCTION mock_function() RETURNS VOID AS '$libdir/timescaledb-mock-broken', 'ts_mock_function' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
/******************************************************************************** release-type-full-validation-mrcm-module-scope-refset Assertion: The current MRCM Module Scope Refset full file contains all previously published data unchanged. The current full file is the same as the prior version of the sa...
-- create two Unique index using same attribute create class ddl_0001(col1 int, col2 string, col3 char(10), col4 varchar(10), col5 object ); create Unique index ddl_0001_index on ddl_0001(col1); create Unique index ddl_0001_index1 on ddl_0001(col1); drop class ddl_0001; rollback; rollback;
religion LIKE '%hip hop%'
-- Enable advanced options exec sp_configure 'show advanced option', '1'; reconfigure; go -- Max Memory 16G exec sys.sp_configure 'max server memory (MB)', '$(MSSQL_MEMORY)'; reconfigure; go -- Disable advanced options exec sp_configure 'show advanced option', '0'; reconfigure; go
BEGIN; DROP INDEX IF EXISTS lsif_packages_dump_id; COMMIT;
#|No information provided 0|Email 1|FTP 2|Remote login (Telnet) 3|Dial-up 4|HTTP 7|Method specified in subfield $y
/* Ф-и, используемые в представлениях */ -- ----------------------------------------------------------------------------- CREATE OR REPLACE FUNCTION pg_type_name(a_oid oid) RETURNS TEXT STABLE LANGUAGE 'sql' AS $_$ -- Ф-я аналогична format_type, но не обрезает схему когда она в пути поиска -- TODO: сравни...
-- MATERIALIZED VIEW AND INDEXES FOR VIRUS 11070 AND PROTEIN polyprotein CREATE MATERIALIZED VIEW public.epitope_11070_polyprotein TABLESPACE default_ts AS SELECT DISTINCT epi.iedb_epitope_id, epi.epitope_iri, epi.cell_type, epi.mhc_class, epi.mhc_allele, epi.response_frequency_pos, epi.epi...
BEGIN; ALTER TABLE tokenpool DROP COLUMN standard; COMMIT;
-- 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. PRINT N'Adding foreign keys to [edfi].[StudentProg...
CREATE TABLE IF NOT EXISTS "accounts" ( "id" SERIAL PRIMARY KEY, "name" TEXT UNIQUE );
CREATE TABLE "ConsignmentStatus" ( "ConsignmentStatusId" uuid NOT NULL, "ConsignmentId" uuid NOT NULL, "StatusType" text NOT NULL, "Value" text NOT NULL, "CreatedDatetime" timestamp with time zone not null, CONSTRAINT "ConsignmentStatus_pkey" PRIMARY KEY ("ConsignmentStatusId"), CONSTRAINT "...
-- 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 -- select dayofyear(date '2005-01-01') d1; >> 1
insert into member(city,street,zipcode,birth,email,name,password,phone,role) values('서울 강북구 도봉로 88','303호','01165', '1995-11-29','user@gmail.com', '유저1','$2a$10$vc.n7gsWnwwWt38bEh7wnuSSUQjNNGEOIWiEKP4XUGq2p1jD00pey', '010-111-111','GUEST'); insert into member(city,street,zipcode,birth,email,name,password,phone,role) va...
-- Run this script directly in the MySQL server query window it will automatically create the database and all the database objects. DROP DATABASE IF EXISTS Company; CREATE DATABASE Company; -- Creating Company Schema USE Company; DROP TABLE IF EXISTS DEPARTMENT; CREATE TABLE DEPARTMENT ( dname varchar(25...
-- Databricks notebook source -- MAGIC %md -- MAGIC # COVID-19 Event Phenotypes: codelists -- MAGIC -- MAGIC **Description** -- MAGIC -- MAGIC This notebook runs a list of `SQL` queries to extract the different codelists used in the `CCU013: COVID-19 event phenotypes` work. -- MAGIC -- MAGIC The codelists generate...
/* contrib/intarray/intarray--1.2--1.3.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION intarray UPDATE TO '1.3'" to load this file. \quit CREATE FUNCTION g_int_options(internal) RETURNS void AS 'MODULE_PATHNAME', 'g_int_options' LANGUAGE C IMMUTABLE PARALLEL...
UPDATE utbetaling SET neste_paminnelsetidspunkt=now() WHERE id IN ( '7b81e473-1c83-4360-80e7-36ca5e1d71c6', '8b2a088b-726b-4438-8b90-567ba6149a28' );
--ddl --data definition language --for defining columns and tables, altering the structure of our database --does not have access to individual rows or their contents -- CREATE, ALTER, DROP (in come databases truncate too, because drop the table and create again) --create database Pizza; create schema PS; go; --go se...