text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
---------------------------------------------------------------- -- [permissions] Table -- CREATE OR REPLACE FUNCTION InsertPermission ( v_ad_element_id UUID, v_id UUID, v_role_id UUID, v_object_id UUID, v_object_type_id INT ) RETURNS VOID AS $PROCEDURE$ BEGIN INSERT INTO permissions ( ...
the_stack
create schema hw_function_p_2; set search_path to hw_function_p_2; create function test_fun_7( a0 varchar, b0 int, c0 int, d0 int, e0 int, f0 int, g0 int, h0 int, i0 int, j0 int, a1 int, b1 int, c1 int, d1 int, e1 int, f1 int, g1 int, h1 int, i1 int, j1 int, a2 int, b2 int, c2 int, d2 int, e2 int, f2 int, g2 int, h2 i...
the_stack
--/**************************************************************************** -- (c) Copyright IBM Corp. 2008 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, n...
the_stack
-- 12.02.2016 09:52 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,Ja...
the_stack
-- 2017-10-02T15:14:46.685 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='N',Updated=TO_TIMESTAMP('2017-10-02 15:14:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551293 ; -- 2017-10-02T15:14:49.390 -- I forgot to set the DICTIONARY_ID_COMMENTS ...
the_stack
USE [MonitorElapsedHighSQL] GO /****** Object: StoredProcedure [dbo].[usp_checkElapsedHighSQL] Script Date: 2015/6/23 17:16:56 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO --创建存储过程 CREATE PROCEDURE [dbo].[usp_checkElapsedHighSQL] ( @SessionID INT ) AS BEGIN IF ( SELECT OBJECT_ID('Monito...
the_stack
-- where8.test -- -- execsql { -- BEGIN; -- CREATE TABLE t3(a INTEGER, b REAL, c TEXT); -- CREATE TABLE t4(f INTEGER, g REAL, h TEXT); -- INSERT INTO t3 VALUES('hills', NULL, 1415926535); -- INSERT INTO t3 VALUES('and', 'of', NULL); -- INSERT INTO t3 VALUES('have', 'towering', 53594.08128); -- ...
the_stack
-- 2020-02-10T13:14:12.879Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstance...
the_stack
-- data storage schema CREATE TYPE fetch_data_type AS ENUM ('price', 'rate', 'auth_data','gold', 'btc', 'usd'); CREATE TABLE "fetch_data" ( id SERIAL PRIMARY KEY, created TIMESTAMPTZ NOT NULL, data JSON NOT NULL, type fetch_data_type NOT NULL ); CREATE INDEX "fetch_data_created_index" ON "fetch_data" (creat...
the_stack
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th3 16, 2019 lúc 07:40 AM -- Phiên bản máy phục vụ: 10.1.31-MariaDB -- Phiên bản PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
the_stack
; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' ...
the_stack
CREATE TABLE attemper_arg ( ARG_NAME varchar(64) COLLATE utf8_bin NOT NULL, ARG_TYPE int(11) NOT NULL, ARG_VALUE varchar(2000) COLLATE utf8_bin DEFAULT NULL, GENERIC_TYPE int(11) DEFAULT NULL, ATTRIBUTE varchar(2000) COLLATE utf8_bin DEFAULT NULL, REMARK varchar(255) COLLATE utf8_bin DEFAULT NULL, TENANT_...
the_stack
create schema col_distribute_subplan_base_2; set current_schema = col_distribute_subplan_base_2; -- Create Table and Insert Data create table t_subplan1(a1 int, b1 int, c1 int, d1 int) with (orientation = column) ; create table t_subplan2(a2 int, b2 int, c2 int, d2 int) with (orientation = column) ; insert into t_sub...
the_stack
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: vim_db -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
the_stack
-- sqlmon.sql -- -- Copyright 2015 Gluent Inc. All rights reserved -- -- Backup sqlplus session settings... -- ------------------------------------------------------------------------------------------ set termout off store set sqlplus_session_settings.sql replace -- Sqlmon session settings... -- ---------...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.2 -- Dumped by pg_dump version 9.5.2 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
-- ----------------------------------------------------- -- Schema bkdata_basic -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `bkdata_basic` DEFAULT CHARACTER SET utf8 ; USE `bkdata_basic` ; -- ----------------------------------------------------- -- Table `bkdata_basic`.`resourc...
the_stack
CREATE PROCEDURE [admin].[RowLevelAuditingAdd] @SchemaName NVARCHAR(50) = NULL , @TableName NVARCHAR(50) = NULL AS BEGIN /* '-------------------------------------------------------------------------------------------------------------------- ' Purpose: Adds row level auditing columns to a table ' Example...
the_stack
-- Indexes defined in the 4.0 Catalog: -- -- Derived via the following SQL run within a 4.0 catalog -- /* \o /tmp/index SELECT CASE when indisprimary then -- (primary key index) 'BROKEN(primary key)' -- (none in catalog, this would be an ALTER TABLE) when indisunique then -- (unique index) ...
the_stack
------------------------------------------------------------------------ --hash partition --Partition constraint: satisfies_hash_partition('16384'::oid, 3, 1, id) /*--EXPLAIN_QUERY_BEGIN*/ drop table t1_hash cascade; CREATE TABLE t1_hash (id int8, value int) PARTITION BY HASH(id); CREATE TABLE t1_hash_p1 PARTITION OF t...
the_stack
-- --FOR BLACKLIST FEATURE: WITH OIDS、INHERITS、CREATE TYPE/DOMAIN/AGGREGATE/OPERATOR/SEQUENCES is not supported. -- -- -- Test access privileges -- -- Clean up in case a prior regression run failed -- Suppress NOTICE messages when users/groups don't exist SET client_min_messages TO 'warning'; DROP ROLE IF EXISTS re...
the_stack
create table company(name varchar(100), loc varchar(100), no integer); insert into company values ('macrosoft', 'usa', 001); insert into company values ('oracle', 'usa', 002); insert into company values ('backberry', 'canada', 003); insert into company values ('sumsung', 'south...
the_stack
-- ----------------------------------------- -- init oracle hmily_transaction tables---- -- ----------------------------------------- DECLARE NUM NUMBER; BEGIN -- ----------------------------------------- -- create table hmily_lock if not exist ---- -- ----------------------------------------- SEL...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `course` -- ---------------------------- DROP TABLE IF EXISTS `course`; CREATE TABLE `course` ( `id` int(100) NOT NULL auto_increment, `name` varchar(200) default NULL, `context` varchar(500) default NULL, `type` varchar(50) defau...
the_stack
-- 2020-11-17T07:57:58.314Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578551,0,TO_TIMESTAMP('2020-11-16 09:57:58','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','P...
the_stack
-- 2018-04-28T09:35:51.570 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES...
the_stack
-- 2021-05-05T09:19:50.730Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='API Antwort Revision', PrintName='API Antwort Revision',Updated=TO_TIMESTAMP('2021-05-05 12:19:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579126 AND AD_Language='de_CH' ; --...
the_stack
DROP SCHEMA IF EXISTS codegen GO CREATE SCHEMA codegen GO DROP FUNCTION IF EXISTS codegen.QNAME GO CREATE FUNCTION codegen.QNAME(@name sysname) RETURNS NVARCHAR(300) AS BEGIN RETURN(IIF(@name like '%[^a-zA-Z0-9]%', QUOTENAME(@name),@name)); END GO DROP FUNCTION IF EXISTS codegen.JSON_ESCAPE GO CREATE FUNCTION codegen...
the_stack
-- -- PaymentOnline -- -- 2018-08-07T10:53:18.388 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Trl WHERE AD_Process_ID=153 ; -- 2018-08-07T10:53:18.399 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process WHERE AD_Process_ID=153 ; -- -- ...
the_stack
-- 2017-09-28T16:41:14.161 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_EntityType (AD_Client_ID,AD_EntityType_ID,AD_Org_ID,Created,CreatedBy,Description,EntityType,IsActive,IsDisplayed,ModelPackage,Name,Processing,Updated,UpdatedBy) VALUES (0,540214,0,TO_TIMESTAMP('2017-09-28 16:41:...
the_stack
-- ************************************************************ -- 根据TeamTalk开发的JAVA(spring cloud)版服务器用/Postgresql版 -- Version 2017-06-02 -- -- Database: teamtalk -- Generation Time: 2017-06-01 16:45:30 -- ************************************************************ -- -- PostgreSQL database dump -- -- Dumped from dat...
the_stack
-- 2019-08-02T18:54:21.291Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=541086, SeqNo=140,Updated=TO_TIMESTAMP('2019-08-02 20:54:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548111 ; -- 2019-08-02T18:54:59.341Z -- I forgot to set...
the_stack
-- 2018-11-22T18:07:34.973 -- 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,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Update...
the_stack
-- 2017-07-11T17:34:30.833 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-11 17:34:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543634 ; -- 2017-07-11T17:34:47.868 -- I forgot to set the DICTIONARY_ID_COMMENTS Syste...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `{$db_prefix}weixinuser` -- ---------------------------- DROP TABLE IF EXISTS `{$db_prefix}weixinuser`; CREATE TABLE `{$db_prefix}weixinuser` ( `weixin_userid` bigint(20) NOT NULL AUTO_INCREMENT, `openid` varchar(255) DEFAULT '', `s...
the_stack
-- 2018-05-11T11:09:50.501 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceO...
the_stack
--============================================================================== type t_summary is record( page number, total_results number, total_pages number ); --============================================================================== -- this function extracts result set information fr...
the_stack
-- original: e_select.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(a, b); INSERT INTO t1 VALUES('a', 'one'); INSERT INTO t1 VALUES('b', 'two'); INSERT INTO t1 VALUES('c', 'three'); CREATE TABLE t2(a, b); INSERT INTO t2 VALUES('a', 'I'); INSERT INTO t2 VALUES('b', 'II...
the_stack
-- 2019-11-13T13:03:40.142Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-11-13 15:03:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Element_ID=577263 ; -- 2019-11-13T13:03:40.199Z -- I forgot to set ...
the_stack
-- create a table to use as a basis for views and materialized views in various combinations CREATE TABLE mvtest_t (id int NOT NULL PRIMARY KEY, type text NOT NULL, amt numeric NOT NULL); INSERT INTO mvtest_t VALUES (1, 'x', 2), (2, 'x', 3), (3, 'y', 5), (4, 'y', 7), (5, 'z', 11); -- we want a view based on ...
the_stack
-- -- 00-initial-schema.sql -- -- Set up reatime -- create publication supabase_realtime; -- defaults to empty publication create publication supabase_realtime; -- Supabase super admin -- create user supabase_admin; -- alter user supabase_admin with superuser createdb createrole replication bypassrls; -- Extension ...
the_stack
SET ANSI_NULLS ON; SET ANSI_PADDING ON; SET ANSI_WARNINGS ON; SET ARITHABORT ON; SET CONCAT_NULL_YIELDS_NULL ON; SET QUOTED_IDENTIFIER ON; SET STATISTICS IO OFF; SET STATISTICS TIME OFF; GO USE master; GO IF OBJECT_ID('dbo.sp_BlitzIndex') IS NOT NULL DROP PROCEDURE dbo.sp_BlitzIndex; GO CREATE PRO...
the_stack
CREATE OR REPLACE FUNCTION public.add_year_2020_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='2020' and IsActive='Y' and C_Calendar_ID=1000000) INTO v_year_exists; IF (v_year_exists) ...
the_stack
SET search_path = real_efile, pg_catalog; -- Name: f1; Type: TABLE; Schema: real_efile; Owner: fec -- CREATE TABLE f1 ( repid numeric NOT NULL, comid character varying(9), com_name character varying(200), com_str1 character varying(34), com_str2 character varying(34), com_city character varyin...
the_stack
-- 2019-11-04T07:01:28.041Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-11-04 09:01:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='fr_CH' AND AD_Element_ID=265 ; -- 2019-11-04T07:01:28.086Z -- I forgot to set the...
the_stack
create or replace language plpythonu; -- ============================================================================= -- Core 堆栈信息类型,用于函数返回值 -- ============================================================================= DROP TYPE if exists type_core_stack cascade; CREATE TYPE type_core_stack AS ( node_name ...
the_stack
------------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2008 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
-- ---------------------------------------------------------------------- -- Test: setup.sql -- ---------------------------------------------------------------------- create schema qp_targeted_dispatch; set search_path to qp_targeted_dispatch; -- ---------------------------------------------------------------------- ...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for pdman_db_version -- ---------------------------- DROP TABLE IF EXISTS `pdman_db_version`; CREATE TABLE `pdman_db_version` ( `DB_VERSION` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NU...
the_stack
/*========================================================== 1. 创建数据库 ===========================================================*/ USE [master] GO --删除数据库 EXEC msdb.dbo.sp_delete_database_backuphistory @database_name = N'Sample' GO IF EXISTS (SELECT name FROM sys.databases WHERE name = N'Sample') Begin DROP DATABAS...
the_stack
-- 2019-09-25T10:39:56.488Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdatea...
the_stack
-- 2021-05-05T09:10:02.708Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('...
the_stack
--Add vocabulary for Payer, Plan, Sponsor and Stop Reason [AVOF-1243] --new vocabularies DO $_$ BEGIN PERFORM VOCABULARY_PACK.AddNewVocabulary( pVocabulary_id => 'Plan', pVocabulary_name => 'Health Plan - contract to administer healthcare transactions by the payer, facilitated by the sponsor', pVocabulary_refere...
the_stack
-- 2018-05-18T17:08:12.923 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,Is...
the_stack
-- 2018-09-14T17:33:33.798 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,54114...
the_stack
PROMPT "Starting creating laser tables: " PROMPT " please GRANT SELECT ON RUN_IOV from CMS_ECAL_COND account" /* create sequences. Create different sequences for different years */ CREATE SEQUENCE LMF_RUN_TAG_SQ INCREMENT BY 1 START WITH 1 NOCACHE; CREATE SEQUENCE LMF_RUN_IOV_10_SQ INCREMENT BY 1 START WITH 1 NOCAC...
the_stack
-- ---- test partition for (null) -- -- 1. test ordinary -- 1.1 range partitioned table -- 1.2 interval partitioned table -- 2. test data column of partition key value -- 2.1 text -- 2.2 timestamp -- 3. MAXVALUE -- 3.1 MAXVALUE is first column -- 3.2 MAXVALUE is second column CREATE schema FVT_COM...
the_stack
SELECT DISTINCT t.server_name , t.server_id , 'PING' AS missingmonitors FROM t_server t INNER JOIN t_server_type_assoc tsta ON t.server_id = tsta.server_id WHERE t.active = 1 AND tsta.type_id IN ('1', '2', '3', '4', '5', '6', '7', '8', '9', '15', '22', '24', '26', '29') AND t.environment_id ...
the_stack
-- 2017-10-09T15:46:01.187 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-09 15:46:01','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y' WHERE AD_Menu_ID=1000082 AND AD_Language='en_US' ; -- 2017-10-09T15:46:41.029 -- I forgot to set the DIC...
the_stack
-- 2019-07-30T08:42:13.826Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Element_ID=542776, ColumnName='QtyDeliveredInUOM', Description='Liefermenge in der Maßeinheit der jeweiligen Zeile (kann von der Maßeinheit des betreffenden Produktes abweichen)', Help=NULL, Name='Liefe...
the_stack
-- ALTER SESSION SET PLSQL_CCFLAGS = 'DEBUG:FALSE' / create or replace package XDB_REPOSITORY_SERVICES AUTHID CURRENT_USER as PRINT_SUPPRESS_CONTENT constant number := 16; procedure CHANGEOWNER(P_RESOURCE_PATH VARCHAR2, P_NEW_OWNER VARCHAR2, P_DEEP BOOLEAN DEFAULT FALSE); procedure CHECKIN(P_RESOURCE_PATH VARCHA...
the_stack
-- ---------------------------------------------------------------- -- -- This is a script to add the eICU-CRD constraints for Postgres. -- -- ---------------------------------------------------------------- -- If running scripts individually, you can set the schema where all tables are created as follows: -- SET sear...
the_stack
/* --RUN ONCE ONLY!!! CREATE SCHEMA acs2010_spt; */ SET search_path = acs2010_spt, public; SET client_encoding = 'LATIN1'; --CREATE TABLE TO HOLD FIELD DEFINITIONS FOR geoheader CREATE TABLE geoheader_schema ( line_number serial, Name varchar, Descr varchar, Field_Size int, Starting_Position int, sumlevels va...
the_stack
-- 19.04.2016 18:38 -- 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,543074,0,'Event_UUID',TO_TIMESTAMP('2016-04-19 18:38:59','YYYY-MM-DD HH24:MI:SS'...
the_stack
-- -- Copyright (C) 2004, 2005, 2006 Mekensleep <licensing@mekensleep.com> -- 24 rue vieille du temple, 75004 Paris -- -- This software's license gives you freedom; you can copy, convey, -- propagate, redistribute and/or modify this program under the terms of -- the GNU Affero General Pub...
the_stack
-- 2018-06-01T11:23:22.544 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Menu SET WEBUI_NameBrowse='Marketing Kontaktperson',Updated=TO_TIMESTAMP('2018-06-01 11:23:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=541090 ; -- 2018-06-01T11:23:47.722 -- I forgot to set the DICTIO...
the_stack
set echo on spool sqlOperations.log APPEND -- def METADATA_OWNER = &1 -- def XFILES_SCHEMA = &2 -- def DEBUG = &3 -- ALTER SESSION SET PLSQL_CCFLAGS = 'DEBUG:&DEBUG'; / ALTER SESSION SET CURRENT_SCHEMA = &METADATA_OWNER / -- -- Create the package to handle events related to contentType 'image/jpeg' -- CREATE OR REPLAC...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for jtbc_aboutus -- ---------------------------- DROP TABLE IF EXISTS `jtbc_aboutus`; CREATE TABLE `jtbc_aboutus` ( `a_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '{"manual":"true"}', `a_topic` varchar(200) DEFAULT NULL COMMENT '{"autoReq...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for compute -- ---------------------------- DROP TABLE IF EXISTS `compute`; CREATE TABLE `compute` ( `id` bigint(20) NULL DEFAULT NULL, `column1` bigint(20) NULL DEFAULT NULL, `column2` bigint(20) NULL DEFAULT NULL...
the_stack
-- 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. -- Disable background workers since we are testing manual refresh \c :TEST_DBNAME :ROLE_SUPERUSER SELECT _timescaledb_internal.stop_bac...
the_stack
-- 2017-08-16T20:05:35.674 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nr.',Updated=TO_TIMESTAMP('2017-08-16 20:05:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2938 ; -- 2017-08-16T20:05:47.469 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configur...
the_stack
\set VERBOSITY terse -- Create pgaudit extension CREATE EXTENSION IF NOT EXISTS pgaudit; -- Make sure events don't get logged twice when session logging SET pgaudit.log = 'all'; SET pgaudit.log_client = ON; SET pgaudit.log_level = 'notice'; CREATE TABLE tmp (id int, data text); CREATE TABLE tmp2 AS (SELECT * FROM tm...
the_stack
-- -- Exercise outfuncs -- set Debug_print_parse=on; set Debug_print_plan=on; -- -- OLAP_WINDOW -- -- Changes here should also be made to olap_window_seq.sql ---- 1 -- Null window specification -- OVER () ---- select row_number() over (), cn,pn,vn from sale; -- mvd 1->1 select rank() over (), * from sale; --err...
the_stack
-- 2018-02-21T08:39:36.406 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,54104...
the_stack
-- DB representation of settings.py with non-db bascked settings left out DROP TABLE IF EXISTS dsip_settings; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE dsip_settings ( DSIP_ID int UNSIGNED NOT NULL AUTO_INCREMENT, DSIP_CLUSTER_ID int UNSIGNE...
the_stack
-- 2020-10-12T11:07:15.602Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET DisplayLogic=' ',Updated=TO_TIMESTAMP('2020-10-12 14:07:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12174 ; -- 2020-10-12T11:07:20.059Z -- I forgot to set the DICTIONARY_ID_COMMENTS System...
the_stack
--**************************************************************************** -- (c) Copyright IBM Corp. 2017 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 s...
the_stack
CREATE USER ${api-user} WITH LOGIN NOCREATEDB NOCREATEROLE NOINHERIT NOREPLICATION CONNECTION LIMIT -1 PASSWORD '${api-password}'; CREATE SEQUENCE s_transaction_types_seq; CREATE SEQUENCE s_record_files_seq; CREATE SEQUENCE s_transactions_seq; CREATE SEQUENCE s_entities_seq; CREATE SEQUENCE s_transaction_result...
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
-- 2018-02-19T14:26:33.179 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('W',0,54104...
the_stack
-- 2017-05-24T22:46:27.160 -- 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,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,186,540216,TO_TIMESTAMP('2017-05-24 22:46:27','YYYY-MM-DD HH24:MI:SS'),100,'Y','a...
the_stack
; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; /* DataBase create `easyee` */ CREATE DATABASE IF NOT EXISTS `easyee` DEFAULT CHARACTER SET utf8; US...
the_stack
-- VARBINARY CREATE TYPE sys.BBF_VARBINARY; CREATE OR REPLACE FUNCTION sys.varbinaryin(cstring, oid, integer) RETURNS sys.BBF_VARBINARY AS 'babelfishpg_common', 'varbinaryin' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.varbinaryout(sys.BBF_VARBINARY) RETURNS cstring AS 'babelfishpg_commo...
the_stack
SET search_path = disclosure, pg_catalog; -- -- Name: dsc_sched_a_aggregate_employer; Type: TABLE; Schema: disclosure; Owner: fec -- CREATE TABLE dsc_sched_a_aggregate_employer ( cmte_id character varying(9), cycle numeric, employer character varying(38), total numeric, count bigint, idx integ...
the_stack
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [SalesLT].[SalesOrderDetail]( [SalesOrderID] [int] NOT NULL, [SalesOrderDetailID] [int] IDENTITY(1,1) NOT NULL, [OrderQty] [smallint] NOT NULL, [ProductID] [int] NOT NULL, [UnitPrice] [money] NOT NULL, [UnitPriceDiscount] [money] NOT NULL, [LineTotal...
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
-- Test exception handling in UDFs -- ALTER table success and failure case in function with exception CREATE TABLE test_exception_error (a INTEGER NOT NULL); INSERT INTO test_exception_error select * from generate_series(1, 100); -- SUCCESS case CREATE OR REPLACE FUNCTION test_plpgsql() RETURNS VOID AS $$ BEGIN B...
the_stack
-- 2017-05-23T13:45:08.218 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET Name='Preislimit erzwingen', PrintName='Preislimit erzwingen',Updated=TO_TIMESTAMP('2017-05-23 13:45:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=882 ; -- 2017-05-23T13:45:08.248 -- I fo...
the_stack
-- ---------------------------- -- Table structure for Base_AppSecret -- ---------------------------- DROP TABLE IF EXISTS "Base_AppSecret"; CREATE TABLE "Base_AppSecret" ( "Id" varchar(50) COLLATE "default" NOT NULL, "AppId" varchar(50) COLLATE "default", "AppSecret" varchar(50) COLLATE "default", "AppName" varchar(25...
the_stack
-- 2021-07-07T08:58:34.591Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=1000007 AND AD_Tree_ID=10 ; -- 2021-07-07T08:58:34.615Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tr...
the_stack
-- 2019-12-12T14:54:19.148Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstance...
the_stack
-- 17.02.2017 13:02 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=99,Updated=TO_TIMESTAMP('2017-02-17 13:02:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540108 ; -- 17.02.2017 13:02 -- I forgot to set the DICTIONARY_ID_COMMENTS System Co...
the_stack
CREATE TABLE heap_copytuple_s (rf_a SERIAL PRIMARY KEY, b INT); CREATE TABLE heap_copytuple (a SERIAL PRIMARY KEY, b INT, c TEXT, d TEXT ); CREATE INDEX heap_copytuple_b ON heap_copytuple (b); CREATE INDEX heap_copytuple_c ON heap_copytuple (c); CREATE INDEX heap_copytuple_c_b ON heap_copytuple (c,b); CREATE IND...
the_stack
CREATE PROCEDURE [dbo].[usp_sqlwatch_repository_remote_table_import_worker] @sql_instance varchar(32), @object_name nvarchar(512), @load_type char(1) as declare @sql nvarchar(max), @sql_remote nvarchar(max), @snapshot_time_start datetime2(0), @snapshot_time_end datetime2(0), @snapshot_type_id tinyint, ...
the_stack
-- ====================================== -- Execute the following code on Server A -- ====================================== USE master GO -- Create a database master key CREATE MASTER KEY ENCRYPTION BY PASSWORD = '*****'; GO -- Create a new certificate CREATE CERTIFICATE [AGCertificate_ServerA] WITH SUBJECT = ...
the_stack
-- SELECT name FROM sqlite_master WHERE type = 'table'; -- SELECT name, type FROM pragma_table_info('users'); DROP TABLE IF EXISTS cohort_enum; DROP TABLE IF EXISTS stage_enum; DROP TABLE IF EXISTS milestone_enum; DROP TABLE IF EXISTS role_enum; DROP TABLE IF EXISTS project_level_enum; DROP TABLE IF EXISTS project_cate...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( `dept_id` int(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `dept_name` varchar(100) NOT NULL COMMENT '部门名称', `dept...
the_stack
-- Check for mandatory variables and put their default values if unset or stop the code. -- moat369_sw_output_fdr must be the first as it is used in fc_validate_variable -> step_file @@&&fc_def_empty_var. moat369_pre_sw_output_fdr @@&&fc_def_empty_var. moat369_sw_output_fdr @@&&fc_set_value_var_nvl. 'moat369_sw_output...
the_stack
-- 16.06.2016 18:36 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=556954 ; -- 16.06.2016 18:36 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=556954 ; -- 16.06.2016 18:37 -- I forgot to set the DI...
the_stack
-- Sep 13, 2016 7:07 PM -- 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,543177,0,'WEBUI_NameBrowse',TO_TIMESTAMP('2016-09-13 19:07:49','YYYY-MM-DD H...
the_stack