text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
-- 2017-06-24T18:36:38.921 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540353,540323,TO_TIMESTAMP('2017-06-24 18:36:38','YYYY-MM-DD HH24:MI:SS'),100,'Y...
the_stack
-- -- PostgreSQL database dump -- 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 = public, pg_catalog; ALTER TABLE IF EXISTS ONLY public.agricultu...
the_stack
-- -- V8 Replication Migration backup script VERSION 1.51, -- generated "May 5 2003" "10:45:31" by CPP for "DB2 UDB V8" server: -- -- DO NOT DELETE ANY SQL STATEMENTS FROM THIS SCRIPT. -- -- Users must either create the tablespaces BACKUPTS, UOWTS, and OTHERTS -- before running this script, or change these tablesp...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for coupon -- ---------------------------- DROP TABLE IF EXISTS `coupon`; CREATE TABLE `coupon` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `coupon_type` tinyint(1) NULL DEFAULT NULL COMMENT '优惠卷类型[0->全场赠...
the_stack
EXEC tSQLt.NewTestClass 'AcceleratorTests'; GO CREATE PROCEDURE AcceleratorTests.[test ready for experimentation if 2 particles] AS BEGIN --Assemble: Fake the Particle table to make sure -- it is empty and has no constraints EXEC tSQLt.FakeTable 'Accelerator.Particle'; INSERT INTO Accele...
the_stack
-- This script was generated by a beta version of the ERD tool in pgAdmin 4. -- Please log an issue at https://redmine.postgresql.org/projects/pgadmin4/issues/new if you find any bugs, including reproduction steps. BEGIN; CREATE TABLE IF NOT EXISTS public.cities ( id smallint NOT NULL, name character varying(...
the_stack
create or replace package body oos_util_string as /** * Converts parameter to varchar2 * * Notes: * - Code copied from Logger: https://github.com/OraOpenSource/Logger * * @issue 11 * * @example * * select oos_util_string.to_char(123) * from dual; * * OOS_UTIL_STRING.TO_CHAR(12...
the_stack
-- 12.10.2015 15:00:33 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542906,0,'DESADV_SumPercentage',TO_TIMESTAMP('2015-10-12 15:00:33','YYYY-MM-D...
the_stack
==== ---- DATASET tpcds ---- BASE_TABLE_NAME time_dim ---- COLUMNS t_time_sk int t_time_id string t_time int t_hour int t_minute int t_second int t_am_pm string t_shift string t_su...
the_stack
-- 2019-03-20T17:38:38.971 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Phonecall Schema Version', PrintName='Phonecall Schema Version',Updated=TO_TIMESTAMP('2019-03-20 17:38:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=576100 AND AD_Language='en_US...
the_stack
-- Start transaction and plan tests begin; select plan(9); -- Declare some variables \set user1ID '00000000-0000-0000-0000-000000000001' \set user2ID '00000000-0000-0000-0000-000000000002' \set org1ID '00000000-0000-0000-0000-000000000001' \set org2ID '00000000-0000-0000-0000-000000000002' \set repo1ID '00000000-0000-...
the_stack
Unicode. The mappings are suitable for the EUC-KR encoding (first and second byte each ranging from 0xA1 to 0xFE), and for ISO-2022-KR if you subtract accordingly. But note that the tables are too "large" for both EUC-KR and ISO-2022-KR (and map undefined input to Unicode code points), because they als...
the_stack
--CREATE DATABASE BLToolkitData ON PRIMARY --(NAME=N'BLToolkitTest', FILENAME=N'C:\Data\MSSQL.1\MSSQL\DATA\BLToolkitData.mdf', SIZE=3072KB, FILEGROWTH=1024KB) --LOG ON --(NAME=N'BLToolkitTest_log', FILENAME=N'C:\Data\MSSQL.1\MSSQL\DATA\BLToolkitData_log.ldf', SIZE=1024KB, FILEGROWTH=10%) --GO IF EXISTS ...
the_stack
-- 2019-05-28T13:08:43.616 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000098, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=541134 AND AD_Tree_ID=10 ; -- 2019-05-28T13:08:43.627 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `act_evt_log` -- ---------------------------- DROP TABLE IF EXISTS `act_evt_log`; CREATE TABLE `act_evt_log` ( `LOG_NR_` bigint(20) NOT NULL auto_increment, `TYPE_` varchar(64) collate utf8_bin default NULL, `PROC_DEF_ID_` va...
the_stack
-- ---------------------------- -- Table structure for Base_Action -- ---------------------------- CREATE TABLE "Base_Action" ( "Id" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, "CreateTime" timestamp(6) NOT NULL, "CreatorId" varchar(50) COLLATE "pg_catalog"."default", "Deleted" bool NOT NULL DEFAULT fa...
the_stack
-- -- INTERVAL -- SET DATESTYLE = 'ISO'; SET IntervalStyle TO postgres; -- check acceptance of "time zone style" SELECT INTERVAL '01:00' AS "One hour"; SELECT INTERVAL '+02:00' AS "Two hours"; SELECT INTERVAL '-08:00' AS "Eight hours"; SELECT INTERVAL '-1 +02:03' AS "22 hours ago..."; SELECT I...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for file_depot -- ---------------------------- DROP TABLE IF EXISTS `file_depot`; CREATE TABLE `file_depot` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文件ID', `showFileName` varchar(255) NOT NULL COMMENT '上传的文件名', `realFile...
the_stack
-- 2021-06-28T12:40:55.955Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Help='', Description='Wenn ja, dann muss der betreffende Geschäftspartner eine Umsatzsteuer-ID haben, damit der Steuersatz matcht.',Updated=TO_TIMESTAMP('2021-06-28 14:40:55','YYYY-MM-DD HH24:MI:SS'),...
the_stack
CREATE VIEW snowalert.rules.azure_cis_1_1_violation_query COMMENT='MFA must be enabled for all privileged users @id R6Q4AB22WH9 @tags cis, azure, iam' AS SELECT 'R6Q4AB22WH9' AS query_id , 'Azure CIS 1.1: Enable MFA for privileged users' AS title , OBJECT_CONSTRUCT( 'cloud', 'azure', '...
the_stack
-- -- XDBPM_XMLSCHEMA_SEARCH should be created under XDBPM -- alter session set current_schema = XDBPM / create or replace package XDBPM_XMLSCHEMA_SEARCH authid CURRENT_USER as C_XDBPM_SCHEMAURL_XMLSCHEMA CONSTANT VARCHAR2(1024) := 'http://xmlns.oracle.com/xdb/xdbpm/XDBSchema.xsd'; C_XDBPM_SCHEMAURL_XDBRESOURCE ...
the_stack
-- fix amount in packs -- for base mapping use table rtc + pay attention to vaccines, insulines, brand names that are deprecated (some of them are ingredients, other need to be renovated in RxE) -- manual: new_pack, new_pack_form, new_rtc, new_pc_stage_manual DO $_$ BEGIN PERFORM VOCABULARY_PACK.SetLatestUpdate( ...
the_stack
-- 30.06.2016 12:15 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543111,0,'RfQ_Invitation_PrintFormat_ID',TO_TIMESTAMP('2016-06-...
the_stack
create schema goto_schema; set current_schema=goto_schema; /* TEST1: There are tests for nornal GOTO statements */ /* * 1. GOTO from one to another positon in current block */ CREATE or REPLACE FUNCTION GOTO_base() RETURNS text AS $$ DECLARE v0 int; v1 int; v2 int; test_result text; BEGIN v0 :...
the_stack
-- -- create user defined conversion -- CREATE USER conversion_test_user WITH NOCREATEDB NOCREATEUSER; SET SESSION AUTHORIZATION conversion_test_user; CREATE CONVERSION myconv FOR 'LATIN1' TO 'UTF8' FROM iso8859_1_to_utf8; -- -- cannot make same name conversion in same schema -- CREATE CONVERSION myconv FOR 'LATIN1' TO...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 21c -- -- Clustering - O-Cluster Algorithm - dmocdemo.sql -- -- Copyright (c) 2021 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Version 1.0 -- -- ...
the_stack
CREATE INDEX onek_two_idx ON onek USING lsm(two); DROP INDEX onek_two_idx; DROP INDEX onek_two_idx; DROP INDEX IF EXISTS onek_two_idx; -- -- Create index on existing table with data -- CREATE TABLE index_test (col1 int, col2 int); INSERT INTO index_test (col1, col2) VALUES (1, 100); INSERT INTO index_test (col1, co...
the_stack
-- -- fix name for -- Parent_HU_Trx_Line_ID -- -- 30.10.2015 08:03 -- URL zum Konzept UPDATE AD_Element SET Name='Eltern-Transaktionszeile', PrintName='Eltern-Transaktionszeile',Updated=TO_TIMESTAMP('2015-10-30 08:03:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542148 ; -- 30.10.2015 08:03 -- URL zu...
the_stack
-- This query generated by script/generate_corr_queries.py and should probably not be -- modified manually. Instead, make changes to that script and rerun it. WITH raw_effect_sizes AS ( SELECT state_user_v_peer_open, business_type, COUNT(*) AS campaign_count, -- The following is t...
the_stack
delimiter // set names utf8 // drop procedure if exists _get_sql_token; // create procedure _get_sql_token( in p_text text charset utf8 , inout p_from int unsigned , inout p_level int , out p_token text charset utf8 , in language_mode enum ('sql', 'script', 'routine') ...
the_stack
-- -- Test roaringbitmap extension -- CREATE EXTENSION if not exists roaringbitmap; -- Test input and output set roaringbitmap.output_format='array'; set extra_float_digits = 0; select '{}'::roaringbitmap; select ' { } '::roaringbitmap; select '{ 1 }'::roaringbitmap; select '{-1,2,555555,-4}'::roaringbitma...
the_stack
UPDATE configuration SET version = '0.20'; DROP FUNCTION get_project_display_name(TEXT); DROP FUNCTION get_package_description(TEXT); DROP FUNCTION get_project_files(TEXT); DROP FUNCTION get_project_versions(TEXT); DROP FUNCTION get_file_apt_dependencies(VARCHAR); CREATE FUNCTION get_project_data(pkg TEXT) RETURN...
the_stack
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION freddy" to load this file. \quit -- TODO line breaks CREATE OR REPLACE FUNCTION init(original regclass, normalized regclass, pq_quantization regclass, codebook regclass, residual_quantization regclass, coarse_quantiz...
the_stack
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Devices]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[Devices]( [Id] [nvarchar](128) NOT NULL, [Name] [nvarchar](max) NULL, [Version] [timestamp] NOT NULL, [CreatedAt] [datetimeoffset](7...
the_stack
--NOTES --This code assumes that table names can only be 63 chars long CREATE OR REPLACE FUNCTION _prom_catalog.get_default_chunk_interval() RETURNS INTERVAL AS $func$ SELECT value::INTERVAL FROM _prom_catalog.default WHERE key='chunk_interval'; $func$ LANGUAGE SQL STABLE PARALLEL SAFE; GRANT EXECUTE ON FUNCT...
the_stack
CREATE TABLE COND2CONF_TYPE_DEF ( DEF_ID NUMBER(2) NOT NULL, REC_TYPE VARCHAR2(20) ); ALTER TABLE cond2conf_type_def ADD CONSTRAINT COND2CONF_TYPE_DEF_PK PRIMARY KEY (DEF_ID); INSERT INTO COND2CONF_TYPE_DEF(DEF_ID, REC_TYPE) VALUES( '0', 'PEDESTAL_OFFSETS' ); INSERT INTO COND2CONF_TYPE_DEF(DEF_ID, REC_TYPE) VALUES(...
the_stack
---- AD_ImpFormat for IFA Manufacturer --- -- 2019-03-26T18:45:02.647 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_ImpFormat (AD_Client_ID,AD_ImpFormat_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,FormatType,IsActive,IsManualImport,IsMultiLine,Name,Processing,Updated,UpdatedBy) VALU...
the_stack
---------------------------------------------------------------- -- [tags] Table -- CREATE OR REPLACE FUNCTION Inserttags ( v_description VARCHAR(4000), v_tag_id UUID, v_tag_name VARCHAR(50), v_parent_id UUID, v_readonly BOOLEAN, v_type INT ) RETURNS VOID AS $PROCEDURE$ BEGIN INSERT INTO...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for t_sys_attach -- ---------------------------- DROP TABLE IF EXISTS `t_sys_attach`; CREATE TABLE `t_sys_attach` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id', `path` varchar(200) NOT NULL COMMENT '路径', `name` varchar(50) NOT ...
the_stack
-- -- XC_TRIGGER -- -- Creation of a trigger-based method to improve run of count queries -- by incrementation and decrementation of statement-based and row-based counters -- Create tables CREATE TABLE xc_trigger_rep_tab (a int, b int) DISTRIBUTE BY REPLICATION; CREATE TABLE xc_trigger_hash_tab (a int, b int) DISTRIB...
the_stack
SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `roc_article` -- ---------------------------- DROP TABLE IF EXISTS `roc_article`; CREATE TABLE `roc_article` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章ID', `uid` mediumint(8) unsigned NOT NULL DEFAU...
the_stack
-- 2017-08-16T11:25:04.333 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,Seq...
the_stack
-- MySQL dump 10.13 Distrib 5.5.34, for osx10.6 (i386) -- -- Host: localhost Database: magento-virgin -- ------------------------------------------------------ -- Server version 5.5.34 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
the_stack
-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: halite2 -- ------------------------------------------------------ -- Server version 5.7.14-google-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
the_stack
USE master; GO IF (OBJECT_ID('dbo.sp_help_permissions') IS NULL) EXEC('CREATE PROCEDURE dbo.sp_help_permissions AS --'); GO /* This script lists all permissions by principal, securable and permission. Optionally, you can filter these objects using the @principal, @securable, and/or @permission parameters (using T-SQL ...
the_stack
-- -- -- rearange, translate and hide unused -- 04.12.2015 15:22 -- 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,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLoggi...
the_stack
CREATE DATABASE IF NOT EXISTS `kardio_oss` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `kardio_oss`; -- MySQL dump 10.13 Distrib 5.6.17, for Win64 (x86_64) -- -- Host: Database: kardio -- ------------------------------------------------------ -- Server version 5.6.40-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
the_stack
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015 年 04 月 14 日 06:37 -- 服务器版本: 5.6.12-log -- PHP 版本: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
the_stack
----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not...
the_stack
-- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION ""babelfishpg_tsql"" UPDATE TO '2.1.0'" to load this file. \quit SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false); -- Drops a view if it does not have any dependent objects. -- Is a te...
the_stack
\o query_mem_col.txt set current_schema=vector_engine; set explain_perf_mode=summary; set query_dop=0; -- Test on hashjoin set enable_hashjoin=on; set enable_mergejoin=off; set enable_nestloop=off; -- $ID$ -- TPC-H/TPC-R Pricing Summary Report Query (Q1) -- Functional Query Definition -- Approved February 1998 explai...
the_stack
CREATE OR REPLACE FUNCTION public.add_year_2021_if_not_exists() RETURNS VOID LANGUAGE 'plpgsql' VOLATILE AS $BODY$ DECLARE v_year_exists BOOLEAN; BEGIN select exists(select 1 from C_Year where FiscalYear='2021' and IsActive='Y' and C_Calendar_ID=1000000) INTO v_year_exists; IF (v_year_exists) ...
the_stack
-- 4020 Distribution of greater than 0 US$ cost per subject by period_id, by visit_concept_id, by visit_type_concept_id, by cost_concept_id, by cost_type_concept_id in the 365d prior to first cohort start date {@rollupUtilizationVisit} ? { select c1.cohort_definition_id, c1.subject_id, vo1.visit_occurrence_id, vc...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for bif_company -- ---------------------------- DROP TABLE IF EXISTS `bif_company`; CREATE TABLE `bif_company` ( `id` bigint(20) NOT NULL, `code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NU...
the_stack
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION polar_monitor" to load this file. \quit -- Register the function. CREATE FUNCTION polar_consistent_lsn() RETURNS pg_lsn AS 'MODULE_PATHNAME', 'polar_consistent_lsn' LANGUAGE C PARALLEL SAFE; CREATE FUNCTION polar_ol...
the_stack
-- 2020-07-21T07:54:21.336Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544987,0,TO_TIMESTAMP('2020-07-21 10:54:21','YYYY-MM-DD HH24:MI:SS'),100,'D'...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 13.5 (Debian 13.5-1.pgdg110+1) -- Dumped by pg_dump version 14.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_con...
the_stack
library ChlamydiaScreeningCDS version '1' /* * CDS implementation based on USPSTF recommendation: * screen for chlamydia (and gonorrhea) in sexually active women age 24 and younger, * and in older women at increased risk for infection; * applies to all sexually active adolescents and adults, including pregnant wome...
the_stack
-- 23.02.2016 08:16 -- URL zum Konzept UPDATE AD_Table SET Name='Lagerstatistik - Zuordnungszeile',Updated=TO_TIMESTAMP('2016-02-23 08:16:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540694 ; -- 23.02.2016 08:16 -- URL zum Konzept UPDATE AD_Table_Trl SET IsTranslated='N' WHERE AD_Table_ID=540694 ; -- ...
the_stack
-- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -- -- http://www.dspace.org/license/ -- ---------------------------------------------------- -- Data Migration for XML/Configurable Workflow -- ...
the_stack
CREATE DATABASE IF NOT EXISTS `goblin` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `goblin`; -- MySQL dump 10.13 Distrib 8.0.12, for macos10.13 (x86_64) -- -- Host: 127.0.0.1 Database: goblin -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
the_stack
ALTER TABLE AD_Element_Trl ADD COLUMN AD_Field_Saved_ID numeric(10,0); ALTER TABLE AD_Field_Trl ADD COLUMN IsSaved character(1) DEFAULT 'N'; DROP VIEW IF EXISTS AD_Field_Trl_to_save_V CASCADE; CREATE VIEW AD_Field_Trl_to_save_V AS SELECT * FROM ( -- collect element and field via AD_Field.AD_Name_ID SELECT et.AD_E...
the_stack
drop table if exists test_gpi_more_invalid; create table test_gpi_more_invalid(a int, b int, c int) partition by range(a) (partition p1 values less than (1001), partition p2 values less than (2001), partition p3 values less than (3001)); insert into test_gpi_more_invalid select r,r,100 from generate_series(1,1000) as ...
the_stack
-- ads categories UPDATE `[db_prefix]_category` SET `Description` = 'Jobs', `CustomFieldName2` = '', `Unit2` = '', `Picture` = 'user-md' WHERE `Name` = 'Jobs'; UPDATE `[db_prefix]_category` SET `Description` = 'Music Exchange', `Picture` = 'music' WHERE `Name` = 'Music Exchange'; UPDATE `[db_prefix]_category` SET ...
the_stack
-- 权限DB结果表 CREATE DATABASE IF NOT EXISTS bkdata_basic; USE bkdata_basic; SET NAMES utf8; -- 2019-9-26 增添数据平台管理系统角色和功能 INSERT INTO auth_object_config(object_class, object_name, has_object, scope_id_key, scope_name_key, user_mode, created_by, updated_by) values ('dataadmin', '数据平台管理系统', 0, '*', '*', 0, 'admin', 'ad...
the_stack
-- 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...
the_stack
DROP TABLE IF EXISTS `blocker`; CREATE TABLE `blocker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `blocker_type` VARCHAR(255) NOT NULL, `capacity` int(11) NOT NULL, `load` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_blocker_IDX_LOAD` ...
the_stack
set enable_result_cache_for_session to off; /* TPC_H Query 1 - Pricing Summary Report */ set query_group='RSPERF TPC-H 1.1'; SELECT L_RETURNFLAG, L_LINESTATUS, SUM(L_QUANTITY) AS SUM_QTY, SUM(L_EXTENDEDPRICE) AS SUM_BASE_PRICE, SUM(L_EXTENDEDPRICE*(1-L_DISCOUNT)) AS SUM_DISC_PRICE, SUM(L_EXTENDEDPRICE*(...
the_stack
-- THIS FILE IS OUT OF DATE -- Database creation is now under the control of the Warehouse project. This -- file does not reflect the current schema of the PyPI service. -- NOTE: PyPI requires the citext extension SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_...
the_stack
BEGIN; -- insert seed data for basic user/platform/project/reward \i /specs/sql-support/insert_platform_user_project.sql \i /specs/sql-support/payment_json_build_helpers.sql select plan(25); SELECT function_returns( 'payment_service_api', 'pay', ARRAY['json'], 'json' ); prepare p...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.5 -- Dumped by pg_dump version 9.5.5 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 row_security = off; ...
the_stack
-- 2018-05-31T01:23:19.255 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updat...
the_stack
------------------------------------------------------------------------------- -- -- Source File Name: create_function_mappings.ddl -- -- (C) COPYRIGHT International Business Machines Corp. 2002, 2003 -- All Rights Reserved -- Licensed Materials - Property of IBM -- -- US Government Users Restricted Rights - Use, dupl...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for dms_article -- ---------------------------- DROP TABLE IF EXISTS `dms_article`; CREATE TABLE `dms_article` ( `id` int(36) NOT NULL AUTO_INCREMENT COMMENT 'ID', `article_title` varchar(255) DEFAULT NULL COMMENT '文章...
the_stack
-- visit detail WITH "transfers" AS ( -- including emergency SELECT subject_id , hadm_id , curr_careunit , curr_wardid , intime , outtime , mimic_id FROM transfers WHERE eventtype!= 'discharge' -- these are not useful UNION ALL SELECT D...
the_stack
CREATE DATABASE IF NOT EXISTS `ngr` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */; USE `ngr`; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; SET NAMES utf...
the_stack
-- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: 192.168.100.10 Database: onboard-opensource -- ------------------------------------------------------ -- Server version 5.5.44 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
the_stack
CREATE DATABASE db_utf8 TEMPLATE template0 encoding 'UTF8'; \c db_utf8 ------------------------------ basic synax for text search configuration ------------------------------- -- --- Pound -- -- CREATE TEXT SEARCH CONFIGURATION create text search configuration pound_utf8(parser=pound) with (split_flag = '#'); ALTER TE...
the_stack
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `mmorpg_kit` -- -- -------------------------------------------------------- -- -- Table structure for table `buildings` -- CREATE TABLE `buildings` ( `id` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT...
the_stack
DROP TABLE IF EXISTS drugs; CREATE TABLE drugs AS SELECT DISTINCT fo_prd_id, a.prd_name, a.mast_prd_name, a.dosage, a.unit, a.dosage2, a.unit2, a.mol_eid, a.mol_name, b.mol_name as mol_name_2, atccode, atc_name, nfc_code, manufacturer FROM fo_product_1_vs_2 a FULL OUTER JOIN drug_mapping_1_vs_2 b ON a.prd...
the_stack
USE [Northwind] GO /****** Object: Schema [dupe] Script Date: 11-12-2020 11:18:10 ******/ CREATE SCHEMA [dupe] GO /****** Object: Schema [MySchema] Script Date: 11-12-2020 11:18:10 ******/ CREATE SCHEMA [MySchema] GO /****** Object: Table [dbo].[Customers] Script Date: 11-12-2020 11:18:10 ******/ SET ANSI_...
the_stack
-- -- ************************************************ -- * Table Creation * -- ************************************************ -- -- declare table_exists exception; PRAGMA EXCEPTION_INIT( table_exists , -00955 ); V_CREATE_TABLE_DDL VARCHAR2(4000) := 'create table XFILES_DOCUMENT...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for superboot_authorization -- ---------------------------- DROP TABLE IF EXISTS `superboot_authorization`; CREATE TABLE `superboot_authorization` ( `ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '时间戳', `dr` int(11) DEFAULT '0'...
the_stack
-- 2019-09-30T08:58:46.929Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577133,0,'EAN_TU',TO_TIMESTAMP('2019-09-30 10:58:46','YYYY-MM-DD HH24:MI...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.8 -- Dumped by pg_dump version 11.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fa...
the_stack
-- 2019-05-02T13:30:53.891 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_UOM SET IsActive='N', Description='Please don''t use this UOM (anymore). Instead, please use the "Hour" UOM with ID=101',Updated=TO_TIMESTAMP('2019-05-02 13:30:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_UOM_ID=...
the_stack
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROC [Integration].[GetLastETLCutoffTime] @TableName [sysname] AS BEGIN SET NOCOUNT ON; SET XACT_ABORT ON; SELECT [Cutoff Time] AS CutoffTime FROM Integration.[ETL Cutoff] WHERE [Table Name] = @TableName; END; GO /****** Object: StoredProce...
the_stack
-- TODO: Better docs and comments on schema -- TODO: Better indexing strategy -- TODO: Have external calendars and events relations for better normalization / consistency -- TODO: Split schema into multiple files ------------------ DOMAIN CREATE DOMAIN ext_calendar_provider AS TEXT NOT NULL CHECK (VALUE in ('g...
the_stack
----------------------------------- Query: espocrm-process0, query 2 Path 5/5 - 0 successes, 10 failures Failure messages: Has no output, distance is 1.0 | Has no output, distance is 1.0 | Has no output, distance is 1.0 | Has no output, distance is 1.0 | Has no output, distance is 1.0 | Has no output, distance is 1.0 |...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; CREATE TABLE `t_sms_order` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID', `user_id` bigint NOT NULL COMMENT '商户id', `sms_send_time` bigint NOT NULL COMMENT '短信发送时间', ...
the_stack
-- NOTE: DUMMY is replaced by the site name, e.g. 'so' or 'meta' DROP SCHEMA IF EXISTS DUMMY ; CREATE SCHEMA IF NOT EXISTS DUMMY DEFAULT CHARACTER SET latin1 ; USE DUMMY; -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -- Table DUMMY.`votetypes` -- -- -- -- -- -- -- -- -- -- --...
the_stack
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2019-01-10 12:06:03 -- 服务器版本: 5.5.60-log -- PHP 版本: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
the_stack
-- MySQL dump 10.13 Distrib 5.5.42, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: oc_testing -- ------------------------------------------------------ -- Server version 5.5.42-1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for flow -- ---------------------------- DROP TABLE IF EXISTS `flow`; CREATE TABLE `flow` ( `id` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `crt_dttm` datetime(0) NOT NULL, `crt_user` varchar...
the_stack
-- 17.02.2017 14:01 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,UIStyle,Updated,UpdatedBy) VALUES (0,0,540086,540118,TO_TIMESTAMP('2017-02-17 14:01:16','YYYY-MM-DD HH2...
the_stack
-- 2020-03-13T09:04:39.410Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID, AD_Org_ID, AD_Process_ID, AD_Table_ID, AD_Table_Process_ID, Created, CreatedBy, EntityType, IsActive, Updated, UpdatedBy, WEBUI_DocumentAction, WEBUI_IncludedTabTopAction, WEBUI_View...
the_stack
--set standard_concept='S' for NDC with domain_id = 'Device' update concept set standard_concept='S' where vocabulary_id = 'NDC' and domain_id = 'Device' and invalid_reason is null; --add self mappings insert into concept_relationship select concept_id, concept_id, 'Maps to', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE (...
the_stack
-- -- 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")...
the_stack
-- -- TRANSACTIONS -- BEGIN; SELECT * INTO TABLE xacttest FROM aggtest; INSERT INTO xacttest (a, b) VALUES (777, 777.777); END; -- should retrieve one value-- SELECT a FROM xacttest WHERE a > 100; BEGIN; CREATE TABLE disappear ( a int4 ); DELETE FROM aggtest; -- should be empty SELECT * ...
the_stack
-- Copyright Chef Software, Inc. All Rights Reserved. -- -- 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...
the_stack