sql
stringlengths
6
1.05M
<filename>backend/manager/dbscripts/upgrade/03_01_0050_add_disks_table.sql CREATE OR REPLACE FUNCTION __temp_Upgrade_AddDisksTable() RETURNS void AS $function$ BEGIN IF EXISTS (SELECT * FROM pg_tables WHERE tablename ILIKE 'disks') THEN RETURN; END IF; -- Add the disks table. CREATE TABLE disks (...
-- runtimes ALTER TABLE runtimes ALTER COLUMN status_condition TYPE VARCHAR(255); ALTER TABLE runtimes ALTER COLUMN status_condition DROP DEFAULT; UPDATE runtimes SET status_condition = 'CONNECTED' WHERE status_condition = 'READY'; ALTER TYPE runtime_status_condition RENAME TO runtime_status_co...
-- on tenant CREATE USER TECH_MONI PASSWORD "<PASSWORD>!"; -- Technical user for Python program ALTER USER TECH_MONI DISABLE PASSWORD LIFETIME; GRANT MONITORING to TECH_MONI; GRANT ABAP_READ to TECH_MONI; -- Enable monitoring for sql request -- Enabling Expensive Statements trace in HANA alter system alter...
<gh_stars>0 517,27,0 575,580,0 628,16,0 638,393,0 681,100,0 699,2390,0 2505,1347,0 750,142,0 937,117,0 927,6537,0 5055,52,0 951,3,0 491,1663,0 497,100,0 511,1143,0 536,90,0 556,390,0 565,800,0 486,720,0 5060,3,0 499,119,0 525,580,0 535,79,0 584,56,0 560,3,0 507,2840,0 495,148,0 5140,26,0 611,1250,0 13098,300,0 653,22,0...
<reponame>yh-coder/weather insert into city values (5334145,"Carbondale","US",-121.006889,38.408798), (5356429,"Herald","US",-121.244392,38.29575), (6357216,"Cordoba","ES",-4.77768,37.90448), (8133903,"Dimos Istiaia-Aidipsos","GR",23.15616,38.924591), (308464,"Kayseri","TR",35.485279,38.73222), (5417561,"Colorado City"...
<gh_stars>0 -- -- create -- INSERT INTO movie(title, release_date) VALUES(:title, :release);
<filename>database/covid_19.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 29, 2021 at 08:40 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<reponame>GOLAM-RABBANI/forum -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 20, 2017 at 10:45 PM -- Server version: 10.1.8-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
<reponame>kevinta893/jyosuushi PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE counter_additional_readings (counter_id STRING REFERENCES counters (counter_id) NOT NULL, kana STRING NOT NULL, uncommon BOOLEAN NOT NULL DEFAULT (0)); INSERT INTO counter_additional_readings VALUES('色','いろ',1); COMMIT;
<gh_stars>0 drop TABLE if EXISTS t_token; CREATE TABLE IF NOT EXISTS t_token( access_token varchar(512), create_time TIMESTAMP, expires_time TIMESTAMP );
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 12, 2018 at 03:02 PM -- Server version: 5.7.19 -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<filename>shehmeerschool/stf_school.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2018 at 05:52 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
CREATE EXTENSION IF NOT EXISTS postgis; CREATE EXTENSION IF NOT EXISTS postgis_topology; CREATE EXTENSION IF NOT EXISTS fuzzystrmatch; CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder; CREATE DATABASE template_postgis; UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template_postgis';
select count(*) from wearethechampions; go
-- # Problem: https://www.hackerrank.com/challenges/weather-observation-station-7/problem -- # Score: 10 SELECT DISTINCT CITY FROM STATION WHERE REGEXP_LIKE(City, '[aeiou]$');
<gh_stars>1000+ USE [taxidata] GO CREATE TABLE [dbo].[nyctaxi_features]( [passenger_count] [int] NULL, [trip_time_in_secs] [bigint] NULL, [trip_distance] [float] NULL, [direct_distance] [float] NULL, [tip_amount] [float] NULL, [tipped] [int] NULL ) ON [PRIMARY] GO
INSERT INTO PROTOCOL_MODULES (PROTOCOL_MODULE_CODE, DESCRIPTION, UPDATE_TIMESTAMP,UPDATE_USER, obj_id) VALUES ('026', 'Questionnaire', sysdate,'KRADEV', sys_guid() );
-- Spawntime UPDATE `creature` SET `spawntimesecs`= '604800' WHERE `id` IN ('40419', '40417', '40421', '40423');
<filename>packages/acs-kernel/sql/oracle/acs-create.sql<gh_stars>0 -- -- packages/acs-kernel/sql/acs-create.sql -- -- @author <EMAIL> -- @creation-date 2000-08-22 -- @cvs-id acs-create.sql,v 1.1.2.9 2000/08/24 07:09:18 rhs Exp -- create table acs_magic_objects ( name varchar2(100) ...
-- Oracle database script - upgrade to data model version 6 alter table fichas modify serial nvarchar2(15);
{{ config( materialized = 'table', enabled = false ) }} with date_dimension as ( {{ dbt_date.get_date_dimension('2015-01-01', '2022-12-31') }} ) select d.* from date_dimension d
CREATE FUNCTION __temp_set_display_migration() RETURNS VOID AS $$ DECLARE mgmt_name CHARACTER VARYING(15); BEGIN SELECT option_value FROM vdc_options WHERE option_name='ManagementNetwork' INTO mgmt_name; UPDATE network_cluster nc1 SET is_display = true WHERE EXISTS (SELECT 1 ...
--name: insert-selfie-badge<! REPLACE INTO selfie_badge (id, creator_id, name, description, criteria, image, tags, issuable_from_gallery, deleted, ctime, mtime) VALUES (:id, :creator_id, :name, :description, :criteria, :image, :tags, :issuable_from_gallery, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()) --name: update-selfie-...
/****** Object: View [dbo].[V_Instrument_Allocation_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE view [dbo].[V_Instrument_Allocation_List_Report] as SELECT TAL.Fiscal_Year , TAL.Proposal_ID , CONVERT(VARCHAR(32), T_EUS_Proposals.TITLE) + '...' AS Title , ...
<reponame>cuba-platform/emailtemplate-addon alter table EMAILTEMPLATES_TEMPLATE_BLOCK add constraint FK_EMAILTEMPLATES_TEMBLO_CAT foreign key (CATEGORY_ID) references EMAILTEMPLATES_BLOCK_GROUP(ID)^ create unique index IDX_EMAILTEMPLATES_TEBL_UK_NA on EMAILTEMPLATES_BLOCK_GROUP (NAME, DELETE_TS) ^ create index IDX_EMAI...
/* Navicat MySQL Data Transfer Source Server : Local MySQL Server Source Server Version : 50505 Source Host : 127.0.0.1:3306 Source Database : application_database Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-02-02 17:10:11 ...
AUTOCOMMIT OFF; -- MODULE YTS797 -- SQL Test Suite, V6.0, Interactive SQL, yts797.sql -- 59-byte ID -- TEd Version # -- AUTHORIZATION CTS1 set schema CTS1; --O SELECT USER FROM HU.ECCO; VALUES USER; -- RERUN if USER value does not match preceding AUTHORIZATION comment ROLLBACK WORK; -- d...
<filename>resources/sql/autopatches/20150805.paste.status.2.sql UPDATE {$NAMESPACE}_pastebin.pastebin_paste SET status = 'active' WHERE status = '';
ALTER TABLE [dbo].[testtable2] DROP COLUMN c2 GO ALTER TABLE [dbo].[testtable2] ADD [c2] AS ([c1]*(2)) GO
<gh_stars>1000+ ALTER TABLE `identity_credentials` DROP COLUMN `nid`;
-- -- Tests for functions that return void -- CREATE FUNCTION test_void_func1() RETURNS void AS $$ x = 10 $$ LANGUAGE plpythonu; -- illegal: can't return non-None value in void-returning func CREATE FUNCTION test_void_func2() RETURNS void AS $$ return 10 $$ LANGUAGE plpythonu; CREATE FUNCTION test_return_none() RETU...
<reponame>garaud/pyris -- Get all Insee tables for a given census and create as many tables as necessary. To -- update the data with a more recent census, you have to load the data into your db, -- change the census, e.g. 2015 -> 2016 and run this script. drop table if exists insee.activite; drop table if exists insee...
CREATE DATABASE basepersona; USE basepersona; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_...
# Write your MySQL query statement below select w1.id from Weather w1, Weather w2 where TO_DAYS(w1.Date) - TO_DAYS(w2.Date) = 1 and w1.Temperature > w2.Temperature
<reponame>rangamboa/trip-planner DROP DATABASE IF EXISTS agency_db; CREATE DATABASE agency_db;
<gh_stars>0 /* * install.sql - запросы, которые выполняются при установке модуля */ /* * Страны */ CREATE TABLE `b_ylab_countries` ( `ID` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `NAME` varchar(255) COLLATE 'utf8_general_ci' NOT NULL ); /* * Данные стран для тестов */ INSERT INTO `b_ylab_countries` (`ID`, `NA...
<filename>db_jurnal.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2020 at 06:58 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 09-03-2017 a las 20:35:02 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
<reponame>faraamds/fias CREATE OR REPLACE FUNCTION fias_address_search_not_filtered_short(in_q TEXT, in_regioncode VARCHAR(2) DEFAULT NULL, in_limit INT DEFAULT 50, in_exclude_huiseguid BOOL DEFAULT FALSE, in_whole_words BOOL DEFAULT FALSE) RETURNS TABLE(aoguid UUID, houseguid UUID, roomguid UUID, actual_address TE...
<reponame>VisualAcademy/AspNetCoreBook --[1] 스케줄 테이블(공통) CREATE TABLE dbo.ScheduleByDomain ( [Num] [Int] IDENTITY (1, 1) NOT NULL Primary Key, --일련번호 [UserID] NVarChar(25) Not Null, -- 사용자 ID/그룹 ID ==> DomainID [SYear] [SmallInt] NOT NULL , --년 [SMonth] [SmallInt] NOT NULL , --월 [SDay] [SmallInt] NOT...
/*[[ Get ASH top event, type 'help @@NAME' for more info. Usage: @@NAME [{<sql_id|sid|event|phv> [YYMMDDHH24MI] [YYMMDDHH24MI]} | {-snap <secs>} |-u] [<other options>] Options: ======== -wall: order by wall clock Groupings : The grouping option can be followed by other custimized field, i.e.: '@@...
<gh_stars>1-10 USE [ANTERO] IF NOT EXISTS ( SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='d_yo_toimipiste' AND COLUMN_NAME='vuosi') BEGIN ALTER TABLE dw.d_yo_toimipiste ADD vuosi varchar(5) END
<filename>processing/sql/dml/020_prg_delta_delete.sql delete from prg.delta_new where lokalnyid in ( select delta_new.lokalnyid from prg.delta_new join prg.punkty_adresowe on delta_new.lokalnyid = punkty_adresowe.lokalnyid::uuid where (punkty_adresowe.waznydo is not null and punkty_adresowe.waznydo::tim...
<filename>main/test/sql/xyz_myFunc.sql CREATE OR REPLACE FUNCTION MyFunc(param1 varchar2) return varchar2 is /** * function myNestedFunc */ -- function myNestedFunc function myNestedFunc(param1 varchar2) return varchar2 is begin return param1||'_TEST'; end; xyz MyPackage2.txyz_myType; ab...
-- wal.test -- -- execsql { -- PRAGMA page_size = 1024; -- CREATE TABLE t1(x); -- INSERT INTO t1 VALUES(blob(900)); -- INSERT INTO t1 VALUES(blob(900)); -- INSERT INTO t1 SELECT blob(900) FROM t1; /* 4 */ -- INSERT INTO t1 SELECT blob(900) FROM t1; /* 8 */ -- INSERT INTO t1 SE...
-- file:join.sql ln:305 expect:true insert into y values (4,null)
<reponame>JasonKhew96/bangumi<filename>tools/tables_schema.sql BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "bilibili_sea" ( "cover" VARCHAR(128), "index_show" VARCHAR(16), "is_finish" BOOLEAN, "season_id" INTEGER NOT NULL UNIQUE, "season_type" INTEGER NOT NULL, "title" VARCHAR(128), "updated_at" DATETIME NOT N...
DELETE FROM character; \copy character FROM 'data/party.multisheet/stats-Table 1.csv' WITH csv HEADER; INSERT INTO character ( name, class, role, level, strength, intelligence, wisdom, dexterity, constitution, charisma) SELECT 'Wigmund', class, role, level, strength, intelligence, wisdom, dexterity, const...
<gh_stars>1-10 /* DELETE QUERY */ /*=============== GAMEOBJECT ===============*/ DELETE FROM `gameobject_spawns` WHERE `entry` IN ('180405','180406','180407','180408','180409','180410','180411','180412','180415','180425','180426','180427','180428','180429','180471','180472','180523','180431','180433','180700','186234'...
INSERT INTO t_user(uid, rowid, rs_search, data) VALUES (now(), 1, 1, '{ "name": "Ahmed from cassandra", "firstname": "<NAME>", "email": "<EMAIL>", "skill": "Computing", "dateConnect": 1455231600000, "dateUpdate": 1455231600000, "randomId": "bb40c588-b5c1-45c1-b725-fd1fd5aa986f" }'); INSERT INTO t_...
<gh_stars>0 ALTER TABLE `orders` CHANGE `status` `status` ENUM('Pending','In Process','Wait for Shipping','Shipping','On Hold','Completed','Failed') NOT NULL DEFAULT 'Pending'; ALTER TABLE `branches` ADD `note_on_processing_screen` TEXT NULL;
<filename>src/test/regress/sql/gpcopy_encoding.sql -- -- Test different combinations of client and server encodings with COPY. -- CREATE DATABASE utf8db ENCODING 'utf8' TEMPLATE=template0 LC_COLLATE='C' LC_CTYPE='C'; CREATE DATABASE latin1db ENCODING 'latin1' TEMPLATE=template0 LC_COLLATE='C' LC_CTYPE='C'; -- First, c...
<reponame>whosonfirst/concordances-whosonfirst-wikidata<filename>code/wdplace_07_match_macroregion.sql<gh_stars>1-10 drop table if exists wfwd.wd_match_macroregion CASCADE; CREATE UNLOGGED TABLE wfwd.wd_match_macroregion as with x AS ( select wd_id ,get_wdlabeltext(wd_id) ...
INSERT INTO `smartsearches` (`uuid`, `name`, `fromclause`, `valuefield`, `displayfield`, `secondaryfield`, `classfield`, `searchfields`, `filterclause`, `rolefield`, `tabledefid`, `moduleid`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`) VALUES ('smsr:d843d3ec-89f6-4468-b06f-3d262e9202a6', 'Pick Push Recor...
--extended cases for CUBRIDSUS-7231 create table t (i int, j int, k int); insert into t values (1, 1, 1); insert into t values (1, 2, 2); insert into t values (1, 3, 3); insert into t values (2, 1, 1); insert into t values (2, 2, 2); insert into t values (3, 1, 1); insert into t values (3, 2, 2); -- multiple analyti...
-- -- Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved. -- -- $COPYRIGHT$ -- -- Additional copyrights may follow -- -- This file is part of PerfExpert. -- -- PerfExpert is free software: you can redistribute it and/or modify it under -- the terms of the The University of Texas at Austin Resea...
create index idx_stagemarkers_markers on stagemarkers (markers); -- Fix indices against wrong table drop index idx_usergroupstatic_group; drop index idx_usergroupstatic_uid; create index idx_usergroupstatic_group on usergroupstatic (group_id); create index idx_usergroupstatic_uid on usergroupstatic (usercode);
CREATE TABLE `pangkat_golongan` ( `id_pangkat_gol` decimal(2,0) NOT NULL, `kode_gol` varchar(5) DEFAULT NULL, `nm_pangkat` varchar(20) DEFAULT NULL, PRIMARY KEY (`id_pangkat_gol`), KEY `id_pangkat_gol` (`id_pangkat_gol`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC COMMENT='REF';
<reponame>kmairena87/mony -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 19-04-2020 a las 17:17:27 -- Versión del servidor: 5.6.26 -- Versión de PHP: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<gh_stars>0 -- Drop tables drop table if exists events_categories cascade; create table events_categories ( id bigserial not null primary key, events_id bigserial not null, preference_id bigserial not null ); -- Populate relationships insert into events_categories (events_id, prefere...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Czas generowania: 25 Cze 2020, 18:16 -- Wersja serwera: 8.0.20 -- Wersja PHP: 7.2.24-0ubuntu0.18.04.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 03, 2020 at 06:03 PM -- Server version: 5.7.23 -- PHP Version: 7.1.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<gh_stars>0 ALTER TABLE [dbo].[NotificationTypes] ADD CONSTRAINT [DF_NotificationTypes_Display] DEFAULT ((1)) FOR [Display];
<reponame>jenncuenca/bamazon<gh_stars>0 CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE Products ( ItemID int AUTO_INCREMENT NOT NULL, ProdName varchar(50) NOT NULL, Dept varchar(50) NOT NULL, Price DECIMAL(10,2) NOT NULL, Qty int NOT NULL, primary key (ItemID) ); INSERT INTO Products (ItemID, ProdName, Dep...
Select POLJE1, POLJE2, POLJE3, POLJE4,POLJE11, POLJE12, POLJE13, POLJE14, POLJE15, POLJE16, POLJE17, POLJE18,polje40 -- POLJE15, POLJE16, POLJE17, POLJE18 -- TEREN, NAZIV_TER, SIFRA, NAZIV_PARTNER, JEDMERE, PROIZVOD, PRO_NAZIV, ULAZ, -- IZLAZ, STANJE, VD_MISP, PP_ISPORUKE...
<filename>BDD/Examen/insert.sql INSERT INTO Immeuble VALUES (0, 70, 'Avenue de Pigale', '75014', 'Paris', true, true); INSERT INTO Immeuble VALUES (1, 50, 'Avenue de Argentré', '53150', 'Montsurs', false, false); INSERT INTO Immeuble VALUES (2, 08, 'Avenue de Marseille', '06200', 'Nice', false, true); INSERT INTO Immeu...
<gh_stars>1-10 CREATE ROLE [aspnet_Membership_ReportingAccess] AUTHORIZATION [tcs_dba]; GO ALTER ROLE [aspnet_Membership_ReportingAccess] ADD MEMBER [aspnet_Membership_FullAccess];
CREATE TABLE books ( id INTEGER NOT NULL PRIMARY KEY, title VARCHAR NOT NULL, subtitle VARCHAR, description TEXT, isbn BIGINT, published DATE, publisher VARCHAR, page_count SMALLINT, image BLOB, uploaded TIMESTAMP NOT NULL DEFAULT CURREN...
--liquibase formatted sql --changeset artemov_i:data dbms:postgresql splitStatements:false stripComments:false INSERT INTO s_at.t_account (cv_surname,cv_name,cv_login,cv_hash_password,ck_id,ck_user,ct_change,cv_timezone,cv_salt) VALUES ('admin_core','admin_core','admin_core','8cad209590c57165c25ba1da2d1d687e6f09bc34e2...
<reponame>Ryyyyannnn/UmbracoDev<filename>UmbracoDev/Umbraco/ucommerce/install/uCommerceDB.196.sql /* Insert default data into uCommerce_CurrencyExchangeRate */ /* This data should be overwritten at initialization with updated values*/ IF NOT EXISTS (SELECT [Guid] FROM uCommerce_CurrencyExchangeRate WHERE [Guid] = '0B...
<reponame>Danial41/-<gh_stars>0 ALTER TABLE `#__finder_links` MODIFY `description` text;
<reponame>ogobrecht/sample-data-sets-for-oracle -- Script generated by PLEX version 2.4.0 - more infos here: https://github.com/ogobrecht/plex -- Performance Hacks by <NAME>: https://connor-mcdonald.com/2019/05/17/hacking-together-faster-inserts/ -- For strange line end replacements a big thank to SQL*Plus: https://sup...
-- +migrate Up ALTER TABLE history_operation_participants DROP COLUMN id; ALTER TABLE history_transaction_participants DROP COLUMN id; -- +migrate Down ALTER TABLE history_operation_participants ADD COLUMN id integer; ALTER TABLE history_transaction_participants ADD COLUMN id integer;
<filename>airline-data/db_scripts/issue271_airplane_family.sql ALTER TABLE `airline`.`airplane_model` ADD COLUMN `family` VARCHAR(256) NULL DEFAULT NULL AFTER `name`;
<reponame>smnorris/cwf_fishpassage -- create empty table DROP TABLE IF EXISTS cwf.barriers_1; CREATE TABLE cwf.barriers_1 ( barrier_id SERIAL PRIMARY KEY, fish_obstacle_point_id integer, barrier_name text, barrier_type text, linear_feature_id integer, blue_line_key integer, downstream_route...
<filename>spring-debug/src/main/resources/spring_tx_demo.sql CREATE DATABASE spring_tx_demo CHARACTER SET UTF8; -- 账号表 create table account( id int not null, balance int not null, username varchar(20) ); create table book( ...
-- !Ups CREATE TABLE order_fee_invoices ( payment_hash BYTEA NOT NULL, currency CURRENCY_TYPE NOT NULL, amount SATOSHIS_TYPE NOT NULL, requested_at TIMESTAMPTZ NOT NULL, CONSTRAINT order_fee_invoices_pk PRIMARY KEY (payment_hash, currency) ); -- We need to create the invoices for existing fees in ...
<filename>tests/integration/analysis-all-master-replicas-not-replicating/create.sql UPDATE mysql_database_instance SET slave_sql_running=0 where di_port in (select port from ham_database_instance where upstream_port=22293);
create table deployment_tasks ( id uuid primary key default uuid_generate_v4(), created_at timestamptz not null default now(), first_attempted_at timestamptz default null, started_at timestamptz default null, finished_at timestamptz default null, deployment_id uuid not null references deployments(id) on del...
ALTER TABLE {$NAMESPACE}_daemon.daemon_log ADD COLUMN `envHash` CHAR(40) NOT NULL DEFAULT '' AFTER `dateModified`;
<filename>apim-migration-testing-tool/data/Identity_component_upgrade/wso2is-5.7.0-migration/migration-resources/5.7.0/dbscripts/step1/consent/db2.sql<gh_stars>1-10 ALTER TABLE CM_PURPOSE ADD PURPOSE_GROUP VARCHAR(255) DEFAULT '' NOT NULL ADD GROUP_TYPE VARCHAR(255) DEFAULT '' NOT NULL DROP CONSTRAINT PURPOSE_CONST...
<reponame>kmmao/KubeOperator<filename>migration/60_add_storage_provisioner_dic.up.sql CREATE TABLE IF NOT EXISTS `ko_storage_provisioner_dic` ( `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `id` varchar(64) NOT NULL, `name` varchar(255) DEFAULT NULL, `version` varchar(255) DEFAULT NU...
SELECT any(if(if(x, 1, 2) AS a_, a_, 0)) FROM (SELECT 1 AS x);
DROP TABLE IF EXISTS log; CREATE TABLE log (x UInt8) ENGINE = StripeLog; SELECT * FROM log ORDER BY x; INSERT INTO log VALUES (0); SELECT * FROM log ORDER BY x; INSERT INTO log VALUES (1); SELECT * FROM log ORDER BY x; INSERT INTO log VALUES (2); SELECT * FROM log ORDER BY x; DROP TABLE log; CREATE TABLE log (x UIn...
<reponame>RouR/pg_cjk_parser<gh_stars>1-10 -- -- \echo Use "CREATE EXTENSION pg_cjk_parser" to load this file. \quit CREATE FUNCTION public.prsd2_cjk_start(IN internal, IN integer) RETURNS internal LANGUAGE 'c' STRICT AS 'MODULE_PATHNAME', 'prsd2_start' ; CREATE FUNCTION public.prsd2_cjk_nexttoken(IN in...
<gh_stars>1-10 CREATE TABLE `sline_line_extend` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '标识', `lineid` int(11) NOT NULL COMMENT '线路ID', `istemplets` int(2) NOT NULL, `relativeraider` varchar(50) NOT NULL, `relativehotel` varchar(50) NOT NULL COMMENT '关联酒店', `relativeticket` varchar(50) NOT N...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-09-2021 a las 17:17:40 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.25) # Database: event-kampus # Generation Time: 2019-11-21 12:14:15 +0000 # ******************************************...
<gh_stars>0 CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, email VARCHAR(60) NOT NULL, password VARCHAR(60) NOT NULL )
<reponame>newtonsbm/cbo CREATE TABLE cbo_familia ( cod VARCHAR(4), titulo VARCHAR(150) ); CREATE TABLE cbo_grande_grupo( cod VARCHAR(1), titulo VARCHAR(150) ); CREATE TABLE cbo_ocupacao( cod VARCHAR(6), titulo VARCHAR(150) ); CREATE TABLE cbo_sinonimo( cod VARCHAR(6), titulo VARCHAR(150) ); CREATE TABLE...
<reponame>rvaughan/docker-ethercis CREATE OR REPLACE FUNCTION ehr.object_version_id(UUID, TEXT, INT) RETURNS JSON AS $$ DECLARE object_uuid ALIAS FOR $1; object_host ALIAS FOR $2; object_version ALIAS FOR $3; BEGIN RETURN json_build_object( '@class', 'OBJECT_VERSION_ID', ...
ALTER TABLE `gridQueue` ADD COLUMN `numCPUsPerJob` INT NOT NULL DEFAULT 1 AFTER `numCPUs`;
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES ('0','211','102','1.20.03','1.20...
ALTER TABLE users ADD COLUMN show_semantic_scholar_popup BOOLEAN DEFAULT false AFTER unsubscribe_trace; CREATE TABLE semantic_scholar_suggestions( semantic_scholar_id int NOT NULL, name varchar(120), score int NOT NULL, user_id int NOT NULL, created timestamp NOT NULL, foreign key (user_id) ref...
<filename>src/main/SQLScripts/dropProcedures.sql DROP FUNCTION checkMotorist; DROP FUNCTION checkMechanic; DROP PROCEDURE getMechanic; DROP PROCEDURE getMotorist; DROP PROCEDURE getRequest; DROP PROCEDURE getAllRequest; DROP PROCEDURE getAllMechanicNames; DROP PROCEDURE getMessage; DROP PROCEDURE getReview; DROP PROCED...
/* * A sample table struecture for storing the CDR * */ create table CDR( cdrRecordType DECIMAL, globalCallID_callManagerId INT, globalCallID_callId INT, origLegCallIdentifier INT, dateTimeOrigination INT, origNodeId INT, origSpan INT, origIpAddr INT, callingPartyNumber STRING, callingPartyUnicodeLoginUserID STRING...
<reponame>sergiomt/bulkmailer<filename>src/main/resources/com/knowgate/bulkmailer/hipergate/datamodel/indexes/jobs.sql CREATE INDEX i1_jobs ON k_jobs(gu_workarea); CREATE INDEX i1_job_atoms ON k_job_atoms(gu_job); CREATE UNIQUE INDEX i2_job_atoms ON k_job_atoms_archived(gu_job,tx_email); CREATE INDEX i1_job_at...
<gh_stars>1-10 ALTER TABLE price DROP CONSTRAINT price_unit_price_check;
CREATE TABLE "selfservice_profile_management_requests" ( "id" TEXT PRIMARY KEY, "request_url" TEXT NOT NULL, "issued_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "expires_at" DATETIME NOT NULL, "form" TEXT NOT NULL, "update_successful" bool NOT NULL, "identity_id" char(36) NOT NULL, "created_at" DATETIME NOT NULL, ...
-- deinstall package_tracer: DROP Type STATEMENT_AGG_TYPE; / DROP Function STATEMENT_AGG; / DROP Package PACKAGE_TRACER; / DROP MATERIALIZED VIEW MV_PACKAGE_RECORD_TYPES; / DROP Package API_TRACE; /