sql
stringlengths
6
1.05M
# --- !Ups ALTER TABLE SIGNALEMENT ADD COLUMN code_postal VARCHAR; # --- !Downs ALTER TABLE SIGNALEMENT DROP code_postal;
USE [Chinook] GO /****** Object: StoredProcedure [dbo].[sproc_CheckAlbum] Script Date: 5/3/2020 9:40:34 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[sproc_CheckAlbum] ( @AlbumId int ) AS SELECT CASE WHEN EXISTS( SELECT * F...
-- phpMyAdmin SQL Dump -- version 3.3.5 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Ноя 10 2010 г., 13:51 -- Версия сервера: 5.1.34 -- Версия PHP: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
/* * Resolves https://issues.hhsdevcloud.us/browse/CBBD-403. * * Adds a non-unique index to the "Beneficiaries"."hicn" column, which is used * to store a 1-way cryptographic hash of each beneficiary's HICN. * * Why is this index non-unique? Because about 1700 out of 60M beneficiary * HICNs have duplicates. Curre...
--3 --c --Report 8 SELECT year, SUM(total_clients) as Number_of_Clients, SUM(SUM(total_clients)) OVER (ORDER BY year ROWS UNBOUNDED PRECEDING) as Cumulative_Total FROM (SELECT * FROM (SELECT t.year, SUM(f.number_of_clients) as total_clients FROM mre_client_fact_l0 f, mre_budget_dim_l0 b, mre_rent_f...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table review ( id serial not null, poster_id integer, poster_name varchar(255), tool_id integer, body ...
#create the database create database if not exists docs; use docs; #create the tables create table if not exists page(id bigint(20) not null primary key, url varchar(400), count bigint(20) not null default 0, negcount bigint(20) not null default 0); create table if not exists feedback(id bigint(20) not null primary k...
<filename>INSERT_VALUES(TEST).sql USE University GO /*Add teachers*/ insert into University_Teacher (First_Name,Last_Name,Email,Birthday) values ('Petro', 'Petrenko','<EMAIL>','1979-12-12'), ('Ivan','Ivanenko','<EMAIL>','1980-01-01'), ('Semen','Semenchenko','<EMAIL>','1981-03-03') /*Add subjects*/ insert into Uni...
<reponame>endeavourhealth-discovery/getFHIRRecordAPI insert into code_category_values (code_category_id, concept_dbid) SELECT distinct 39, s.dbid-- , s.id, s.name, p2.id, p2.name, i.id, i.name, p.id, p.name, c.id, c.name FROM concept c -- Source SNOMED concept JOIN concept p ON p.id = 'SN_116680003' ...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : otter-src Source Server Type : MySQL Source Server Version : 50670 Source Host : 10.111.14.140 Source Database : otter Target Server Type : MySQL Target Server Version : 50670 File Encoding : utf-8 Date: 06/1...
---------------------------------------------------------------- -- [tags] Table -- Create or replace FUNCTION Inserttags(v_description VARCHAR(4000) , INOUT v_tag_id UUID , v_tag_name VARCHAR(50), v_parent_id UUID, v_readonly BOOLEAN , v_type INTEGER) AS $procedure$ BEGIN v_tag_id := uuid_gener...
INSERT INTO EMails (DepartmentID, EMail, IsAlias) VALUES (100, '<EMAIL>', TRUE); INSERT INTO EMails (DepartmentID, Email) VALUES (1, '<EMAIL>'); INSERT INTO EMails (DepartmentID, Email) VALUES (105, '<EMAIL>'); INSERT INTO EMails (DepartmentID, Email) VALUES (108, '<EMAIL>'); INSERT INTO EMails (DepartmentID, Email) VA...
<reponame>randerzander/PhoenixPerf select avg(length(doc)) from documents group by cust_id
ALTER TABLE "public"."funders" ALTER COLUMN "uri" DROP NOT NULL; COMMENT ON COLUMN "public"."funders"."uri" IS E'';
<filename>payara5/h2db/src/test/org/h2/test/scripts/functions/string/ltrim.sql -- 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 ltrim(null) en, '>' || ltrim('a') || '<' ea, '>' || ltrim(' a ') |...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字defaults(非保留),作为用户名 --关键字defaults作为用户名不带引号,创建成功 drop user if exists defaults; CREATE USER defaults PASSWORD '<PASSWORD>'; drop user defaults; --关键字defaults作为用户名加双引号,创建成功 drop user if exists "defaults"; CREATE USER "defaults" PASSWORD '<PASSWORD>'; drop user "d...
<gh_stars>0 /* Object: dbo.Query_390 Transaction: NUD:INO,NUO,MUO,IMO */ CREATE PROCEDURE [dbo].[Query_390] @HeaderID AS bigint AS SET NOCOUNT ON; DECLARE @SQL AS nvarchar(MAX) = N' DELETE X FROM dbo.[Row] AS H -- NUD INNER JOIN dbo.[Row] AS A -- INO,NUO,MUO,IMO ON H.HeaderID = A.HeaderID AND H....
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Gép: 1192.168.127.12 -- Létrehozás ideje: 2022. Ápr 16. 11:48 -- Kiszolgáló verziója: 10.4.21-MariaDB -- PHP verzió: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
REM execBind.sql REM Chapter 12, Oracle9i PL/SQL Programming by <NAME> REM This block demonstrates the use of the USING clause with EXECUTE REM IMMEDIATE to handle bind variables. DECLARE v_SQLString VARCHAR2(1000); v_PLSQLBlock VARCHAR2(1000); CURSOR c_EconMajor IS SELECT * FROM students WHERE...
<reponame>tfonsec/crud-client<gh_stars>0 INSERT INTO tb_client (name, cpf, income, birth_date, children) VALUES ('<NAME>', '61569038015', 4000.0, TIMESTAMP WITH TIME ZONE '1936-04-05T00:00:00Z', 2) INSERT INTO tb_client (name, cpf, income, birth_date, children) VALUES ('<NAME>', '06416860058', 5000.0, TIMESTAMP WITH TI...
CREATE PROCEDURE [Custom_Check_datapoint].RestoreData AS DELETE FROM [Custom_Check_datapoint].DS_1 INSERT INTO [Custom_Check_datapoint].DS_1 VALUES (1, 'Jack', 14, 178.6, 1, 'UK', 'Tall') INSERT INTO [Custom_Check_datapoint].DS_1 VALUES (2, 'Sophia', 16, 152.4, 2, 'Germany', 'Short') INSERT INTO [Custom_Check_dat...
-- phpMyAdmin SQL Dump -- version 4.6.6deb1+deb.cihar.com~xenial.2 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Фев 13 2019 г., 09:25 -- Версия сервера: 10.0.38-MariaDB-0ubuntu0.16.04.1 -- Версия PHP: 7.1.26-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 04-11-2019 a las 05:19:40 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
-- La ALTER TABLE declaración agrega una nueva columna a una tabla. -- La siguiente declaración agrega una nueva columna twitter_handle a la celebs tabla. ALTER TABLE celebs ADD COLUMN twitter_handle TEXT; -- Agregue una nueva columna a la tabla. y se selecciona ALTER TABLE celebs ADD COLUMN twitter_handle TEXT; ...
create view vw_lsoa_boundaries as select l.lsoa11cd, l.lsoa11nm, l.geom from lsoa_boundary l;
<gh_stars>1-10 create table trusted_chats ( id bigint not null primary key, username text, title text );
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 13 Mei 2019 pada 06.37 -- Versi Server: 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_SET_CLIENT=@@CHARACTER_SET_CL...
<gh_stars>1-10 -- 1. Elimine la tabla si existe: DROP TABLE IF EXISTS consultas; -- 2. Cree la tabla con la siguiente estructura: CREATE TABLE consultas( fecha DATE, numero INT unsigned, documento CHAR(8) NOT NULL, obrasocial VARCHAR(30), medico VARCHAR(30), PRIMARY KEY(fecha,numero), UNIQUE i_consulta(d...
WITH AggregationInfo_DurationIsNotNull AS (SELECT AggregationType = CASE WHEN AggregationTypeId = 0 THEN 'Raw' WHEN AggregationTypeId = 20 THEN 'Hourly' WHEN AggregationTypeId = 30 THEN 'Daily' ...
create table reference ( identifier varchar primary key not null, /* uuid */ attrs hstore ); alter table publication_map add column reference_identifier varchar references reference(identifier) on delete cascade on update cascade; create table generic (identifier varchar not null primary key,...
<reponame>smith750/kc DELIMITER / INSERT INTO KRNS_PARM_T (APPL_NMSPC_CD,NMSPC_CD,PARM_DTL_TYP_CD,PARM_NM,PARM_TYP_CD,TXT,PARM_DESC_TXT,CONS_CD,OBJ_ID,VER_NBR) VALUES ('KC','KC-AWARD','Document','GET_FIN_SYSTEM_URL_FROM_WSDL','CONFG','N','Whether or not to read the financial system service url directly from the WS...
<reponame>misbahkh/WebsitePortfolio<filename>Covid Data Exploring.sql /* Covid 19 Data Exploration Skills used: Joins, CTE's, Temp Tables, Windows Functions, Aggregate Functions, Creating Views, Converting Data Types */ Select * From PortfolioProject..CovidDeaths Where continent is not null order by 3,4 ...
<filename>maven-parent/b2c-cloud-test-learn-java/src/main/resources/derby-script.sql drop table sys_menu; create table sys_menu(id integer, parent_id integer, text varchar(50)); insert into sys_menu values (1, null, 'San Mateo'); insert into sys_menu values (2, null, 'Daly City'); insert into sys_menu values (3, null, ...
/************************************************************************** * Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI) * * 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 Li...
ALTER TABLE config_per_project_and_seq_type ADD COLUMN reference_genome_index_id bigint REFERENCES reference_genome_index(id); UPDATE tool_name set name = 'CELL_RANGER' where name = 'cellranger'; UPDATE tool_name set type = 'SINGLE_CELL' where type = 'CELLRANGER';
-- for non-embedded database drop table if exists `account`; drop table if exists `task`; drop table if exists `memo`; drop table if exists `tag`; drop table if exists `task_tag`; drop table if exists `team`; drop table if exists `team_account`; drop table if exists `role`; drop table if exists `permission`; drop table...
update usuario set nombre = :nombre, tipo_sangre = :tipoSangre, fecha_creacion = :fechaCreacion, numeroIdentificacion = :numeroIdentificacion, tipoIdentificacion = :tipoIdentificacion, fechaNacimiento = :fechaNacimiento where id = :id
# --- Sample dataset # --- !Ups insert into category (id,name) values ( 1,'Audio' ); insert into category (id,name) values ( 2,'Books' ); insert into category (id,name) values ( 3,'Computer' ); insert into category (id,name) values ( 4,'Furniture' ); insert into category (id,name) values ( 5,'Kitchen' ); insert into ...
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v24_to_v25/11 Create Constraints/42710 PostSecondaryInstitutionLevelType [PK, IX, D].sql<gh_stars>0 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- ...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: guardartododb -- ------------------------------------------------------ -- Server version 5.7.10-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
<reponame>kant/tdar /* $id$ * simple script for getting view, download count for resources inside of a specific * * usage: * psql tdarmetadata tdar -f THISFILE.sql -v id=123456 (replace 123456 with the collection id) * */ create temporary table t_resources as select * from collection_resource where colle...
DROP TABLE IF EXISTS t_nested_detach; SET flatten_nested = 0; CREATE TABLE t_nested_detach (n Nested(u UInt32, s String)) ENGINE = Log; SHOW CREATE TABLE t_nested_detach; DESC TABLE t_nested_detach; SET flatten_nested = 1; DETACH TABLE t_nested_detach; ATTACH TABLE t_nested_detach; SHOW CREATE TABLE t_nested_detac...
<gh_stars>10-100 SELECT COUNT(DISTINCT(invitee_email)) AS unactivated_invitations FROM invitations WHERE activated = FALSE; UPDATE invitations SET activated = TRUE WHERE invitee_email IN ( SELECT email FROM users ); SELECT COUNT(DISTINCT(invitee_email)) AS unactivated_invitations FROM invitations WHERE activated =...
with base as ( select * from {{ ref('stg_klaviyo__event_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_klaviyo__event_tmp')), staging_columns=get_event_columns() ...
DROP TABLE IF EXISTS test.t; DROP TABLE IF EXISTS test.mv; DROP TABLE IF EXISTS test.`.inner.mv`; CREATE TABLE test.t (x UInt8) ENGINE = Null; CREATE MATERIALIZED VIEW test.mv AS SELECT * FROM test.t; DETACH TABLE test.mv; ATTACH MATERIALIZED VIEW test.mv AS SELECT * FROM test.t; DROP TABLE test.t; DROP TABLE test.m...
当前的情况 项目数量 47 个 每分钟 95 条入库实时数据 每5秒 10 条 每秒 2 条 6个实时数据-> 存2个 数据库 com.zaxxer.hikari.pool.HikariPool - bravo-HikariCP - Pool stats (total=10, active=0, idle=10, waiting=0) com.zaxxer.hikari.pool.HikariPool - bravo-HikariCP - Pool stats (total=10, active=10, idle=0, waiting=10) 接下来的要求 预计 2500 个项目, 50 倍于当前 现在可以支持的并...
--CMS DE-SynPUF 100,000 person dataset in OMOP v5.3.1 schema --SET search_path assigns the SCHEMA for this data, which must be the same at the filename of this file. --The end of every copy statement must contain iam_role 'RS_ROLE_ARN'; This will be replaced with the actual IAM Role used by Redshift. --Patient Level T...
<reponame>mike-tuxedo/koala-framework CREATE TABLE `kwc_blog_trl` ( `component_id` VARCHAR( 200 ) NOT NULL , `visible` TINYINT NOT NULL , `title` VARCHAR( 255 ) NOT NULL;
<filename>Misc/sql-files/upgrades/upgrade_20140915_log.sql ALTER TABLE `picklog` ADD `bound` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0';
CREATE TABLE `payment_orders_x` ( `id` CHAR(25) NOT NULL COMMENT '支付订单号', `user_id` INT(10) UNSIGNED NOT NULL COMMENT '用户ID', `status` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '支付状态', `payment` TINYINT(1) NOT NULL COMMENT '支付方式', `bank` VARCHAR(30) NOT NULL DEFAULT '' COMMENT '银行', `money` INT(10) UNSIGNED N...
<filename>custom/icds_reports/migrations/sql_templates/update_tables11.sql ALTER TABLE awc_location ADD COLUMN block_map_location_name text; ALTER TABLE awc_location ADD COLUMN district_map_location_name text; ALTER TABLE awc_location ADD COLUMN state_map_location_name text;
/***************************** * Vertica Analytic Database * * Example SQL for User Defined Source Load Functions in Java * * Copyright (c) 2005 - 2016 Hewlett Packard Enterprise Development LP */ -- Step 1: Create LIBRARY \! mkdir -p /tmp/vertica_udsource_example/ \set libfile '\''`pwd`'/build/JavaUDlLib.jar\...
SELECT TOP 5 c.Name AS CategoryName, COUNT(r.CategoryId) AS ReportsNumber FROM Categories c JOIN Reports r ON r.CategoryId = c.Id GROUP BY c.Name ORDER BY ReportsNumber DESC, c.Name
<filename>src/main/resources/schema.sql DROP TABLE IF EXISTS book_genre; DROP TABLE IF EXISTS book_author; DROP TABLE IF EXISTS comments; DROP TABLE IF EXISTS authors; DROP TABLE IF EXISTS genres; DROP TABLE IF EXISTS books; DROP TABLE IF EXISTS auth_user_group; DROP TABLE IF EXISTS users; CREATE TABLE users ( id ...
-- Scripts relacionados ao sistema de bares e restaurantes -- ==================================================================================================================== -- Criação da tabela usuarios CREATE TABLE usuario ( id INT NOT NULL AUTO_INCREMENT PRIMARY KE...
-- -- File generated with SQLiteStudio v3.3.3 on tors jan. 13 12:53:12 2022 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: booking CREATE TABLE booking (Id INTEGER PRIMARY KEY NOT NULL, Customer_Id INTEGER NOT NULL REFERENCES customers (Id), Timestamp DATETIME NOT NULL); INS...
<filename>SistemaUniversidad.BackEnd.BD/Functions/FN_CursosDocentes_SeleccionarPorId.sql<gh_stars>0 CREATE FUNCTION FN_CursosDocentes_SeleccionarPorId( @Codigo INT ) RETURNS TABLE AS RETURN SELECT * FROM VW_CursosDocentes_SeleccionarTodos AS CursosDocentes WHERE CursosDocentes.Codigo = @Codigo
<filename>database/scripts/addData.sql -- No real scripts (!), just examples showing what you must do to add data to a specific table. The capitalized strings have to be replaced by real data from user input. You don't need to insert, update or delete the history-tables manually. -- Don't replace NOW()! -- (1) To mak...
DROP INDEX tokens_expires_idx; --;; DROP INDEX tokens_user_name_idx; --;; DROP INDEX tokens_token_idx; --;; DROP TABLE tokens;
<reponame>EL-BID/nexso CREATE PROCEDURE [dbo].[dnn_CoreMessaging_CountSentConversations] @UserID INT, @PortalID INT AS BEGIN SELECT COUNT(DISTINCT ConversationID) AS TotalRecords FROM dbo.[dnn_CoreMessaging_Messages] m INNER JOIN dbo.[dnn_CoreMessaging_MessageRecipients] mr ON mr.MessageID = m.MessageI...
<filename>oracle-scripts/Dominican Republic.sql INSERT INTO WWS_COUNTRIES (ID, NAME, ISO3, ISO2, PHONECODE, CAPITAL, CURRENCY, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (62, 'Dominican Republic', 'DOM', 'DO', '+1-809 and 1-829', 'Santo Domingo', 'DOP', TO_TIMESTAMP('2018-07-20 16:41:03','YYYY-MM-DD HH24:MI:SS'),...
<filename>src/test/resources/mysql-set1/V1.7__disable-foreign-key-checks.sql -- Currently being addressed in https://github.com/jOOQ/jOOQ/issues/9084 -- Issue was closed -- Workaround: rearrange the queries SET FOREIGN_KEY_CHECKS = 0; CREATE TABLE `example7` ( `example_id` int(10) unsigned NOT NULL, PRIMARY KEY (`e...
CREATE TABLE regions ( id int(11) unsigned NOT NULL AUTO_INCREMENT, region_id varchar(20) NOT NULL, country_id int(11) NOT NULL, name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; INSERT INTO `regions` (`id`, `region_i...
<reponame>rla/feeds<filename>schema/migrations/002_add_error_column.sql<gh_stars>1-10 ALTER TABLE feed ADD COLUMN error TEXT DEFAULT NULL;
<gh_stars>10-100 CREATE TABLE [srv].[KillSession] ( [ID] INT IDENTITY (1, 1) NOT NULL, [session_id] SMALLINT NOT NULL, [transaction_id] BIGINT NOT NULL, [login_time] DATETIME NOT NULL, [ho...
<gh_stars>1-10 CREATE TABLE whse_basemapping.fwa_obstructions_sp ( obstruction_id integer PRIMARY KEY, watershed_group_id integer, linear_feature_id integer, gnis_id integer, gnis_name character varying(80), obstruction_type character varying(20), blue_line_key integer, watershed_key int...
<reponame>Shuttl-Tech/antlr_psql -- file:rowsecurity.sql ln:1403 expect:true CREATE ROLE regress_rls_frank
-- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `modify_time` datetime DEFAULT NULL COMMENT '修改时间', ...
{{ config( unique_key='promo_id' ) }} with promos_src as ( select * from {{ source('src_public', 'promos') }} ), final as ( select id as promo_id , promo_id as promo_guid , discout as discount , status as promo_status from promos_src ) select * from final
create table hello ( id INTEGER primary key, title varchar(150), text TEXT ); insert into hello(id,title,text) values(1,'yunlingfly','hhhh'); insert into hello(id,title,text) values(2,'test','ssss'); select * from hello;
<filename>migration/20170111-make-customlists-foreign-identifier-unique.sql<gh_stars>1-10 CREATE INDEX ix_customlists_name ON customlists(name); ALTER TABLE customlists ADD CONSTRAINT customlists_foreign_identifier_data_source_id_key UNIQUE (foreign_identifier, data_source_id); ALTER TABLE customlists ADD CONSTRAINT cu...
-- 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...
------------------------------------------ -- Migrate OrganizationReference ------------------------------------------ -- Schema ALTER TABLE "organizationreference" DROP CONSTRAINT "organizationreference_to_supplier_fk"; ALTER TABLE "organizationreference" DROP CONSTRAINT "organizationreference_to_tp_fk"; ALTER TABL...
//// CHANGE name=change0 CREATE TABLE table427 ( id integer NOT NULL, field1 character varying(30), usertype0field usertype0, usertype2field usertype2, usertype9field usertype9 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table427 ADD CONSTRAINT table427_pkey PRIMARY KEY (id); GO
<reponame>secteria/nl-aegis RENAME TABLE Dome9Assignment TO CISAssignmentRules;
<gh_stars>10-100 ------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- declare cursor ses is ...
<gh_stars>1000+ alter table SYS_ACCESS_TOKEN add REFRESH_TOKEN_VALUE varchar2(255)^
DROP TABLE precinct_polling_locations;
<filename>src/main/resources/db/migration/V1_4__barcode_events_status_length.sql ALTER TABLE barcode_events ALTER COLUMN status TYPE VARCHAR(20);
INSERT INTO `T_POST` (title, content, creationDate) VALUES ('测试标题1', '测试正文1', '2018-01-23'); INSERT INTO `T_POST` (title, content, creationDate) VALUES ('测试标题2', '测试正文2', '2018-01-25');
<reponame>clausman/courier # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table copy_test ( id bigint not null, notification_id bigint, message_id bigint, test_id ...
-- ============================================= -- Author: <NAME> -- Create date: 18th September 2016 -- Description: Gets the next chapter in line -- ============================================= CREATE PROCEDURE [Player].[usp_GetNextChapter] -- Add the parameters for the stored procedure here @Player int AS BEGI...
<filename>cfa.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 19, 2018 at 11:12 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<reponame>pabloalfaro/CC-Proyecto CREATE DATABASE IF NOT EXISTS carfinder; USE carfinder; CREATE TABLE if NOT EXISTS usuarios( username VARCHAR(30) NOT NULL, nombre VARCHAR(30) NOT NULL, apellido VARCHAR(30) NOT NULL, correo VARCHAR(30) NOT NULL, ciudad VARCHAR(30) NOT NULL, PRIMARY KEY(username) )ENGINE=INNODB; CRE...
<filename>src/main/resources/db/migration/V2__Initial_data.sql<gh_stars>0 INSERT INTO LINKS_TO_BE_PROCESSED (LINK) values('https://sina.cn');
<filename>src/main/resources/db/migration/V013__create-table-order.sql<gh_stars>0 CREATE TABLE order_restaurant ( id bigint NOT NULL AUTO_INCREMENT, sub_total decimal(10,2) NOT NULL, freight_rate decimal(10,2) NOT NULL, total_value decimal(10,2) NOT NULL, restaurant_id bigint NOT NULL, customer_user_id bigi...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 04, 2017 at 02:12 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<filename>data-adhoc/postgressql/create_readonly_user.sql<gh_stars>1-10 CREATE USER ods_user WITH ENCRYPTED PASSWORD '<PASSWORD>' ; ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO ods_user; GRANT CONNECT ON DATABASE plans_dev TO ods_user; GRANT USAGE ON SCHEMA public TO ods_user; GRANT SELECT O...
CREATE OR REPLACE VIEW DVH_SYKMELDT_REGISTRERING AS ( SELECT SYKMELDT_REGISTRERING_ID, AKTOR_ID, OPPRETTET_DATO, FREMTIDIG_SITUASJON, TILBAKE_ETTER_52_UKER, NUS_KODE, case UTDANNING_BESTATT when 'JA' then 1 when 'NEI' then 0 else -1 end as UTDANNING_BESTATT, case UT...
<gh_stars>10-100 ALTER TABLE objects DROP COLUMN url; CREATE UNIQUE INDEX unique_object_id ON objects(((data->>'id')::TEXT));
<gh_stars>1-10 @@config set serveroutput on size unlimited create or replace package body &&asmspc_owner..asm_space is v_date_format varchar2(30) := '&&date_format'; type v_tabtyp_v is table of varchar2(2000) index by varchar2(30); type v_tabtyp_n is table of varchar2(2000) index by pls_integer; v_tab_sql v_t...
if exists (select * from INFORMATION_SCHEMA.VIEWS where TABLE_NAME = 'vwTEAM_MEMBERSHIPS_List') Drop View dbo.vwTEAM_MEMBERSHIPS_List; GO /********************************************************************************************************************** * Copyright (C) 2005-2022 SplendidCRM Software, Inc....
SET NOCOUNT ON; DECLARE -- Служебные переменные @ObjectID INT ,@IndexID INT ,@PartitionCount BIGINT ,@SchemaName SYSNAME ,@ObjectName SYSNAME ,@IndexName SYSNAME ,@PartitionNum BIGINT ,@frag FLOAT ,@Command NVARCHAR(4000) ,@DBID SMALLINT = DB_ID(); IF OBJECT_ID('tempdb..#MaintenanceCommands') IS NOT NULL...
<reponame>fairspace/metadata-testdata drop index if exists subject_gender_idx; drop index if exists event_topography_idx; drop index if exists event_morphology_idx; drop index if exists event_type_idx; drop index if exists sample_topography_idx; drop index if exists sample_origin_idx; drop index if exists sample_natu...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50725 Source Host : localhost:3306 Source Schema : meeting_rest Target Server Type : MySQL Target Server Version : 50725 File Encoding : 65001 Date: 01/08/2019...
<reponame>faizol/timescaledb<filename>tsl/test/sql/bgw_custom.sql -- 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. CREATE TABLE custom_log(job_id int, args jsonb, extra text, runner NA...
--First deposit by transactionName with transactions as ( select userId, eventTimestamp,transactionName, convertedproductAmount, revenueValidated, rank() over (partition by userid order by eventTimestamp) as transactionNumber from events where convertedProductAmount>0 and revenueValidated in (0,1) ) select transa...
ALTER TABLE `{$NAMESPACE}_metamta`.`metamta_receivedmail` ADD `messageIDHash` CHAR(12) BINARY NOT NULL, ADD KEY `key_messageIDHash` (`messageIDHash`);
alter table gha_actors drop constraint gha_actors_pkey; alter table gha_actors add primary key(id, login); create index actors_id_idx on gha_actors(id); create index repos_id_idx on gha_repos(id);
<filename>tests/v6_pc_isql/flg009.sql -- MODULE FLG009 -- SQL Test Suite, V6.0, Interactive SQL, flg009.sql -- 59-byte ID -- TEd Version # -- AUTHORIZATION HU SELECT USER FROM HU.ECCO; -- RERUN if USER value does not match preceding AUTHORIZATION comment -- date_time print -- TEST:0455 Relaxed union compatabil...