text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
-- ---------------------------- -- Table structure for Base_AppSecret -- ---------------------------- CREATE TABLE "Base_AppSecret" ( "Id" VARCHAR2(50 CHAR) NOT NULL , "AppId" VARCHAR2(50 CHAR) NULL , "AppSecret" VARCHAR2(50 CHAR) NULL , "AppName" VARCHAR2(255 CHAR) NULL ) LOGGING NOCOMPRESS NOCACHE ; COMMENT ON TABL...
the_stack
DELETE FROM collection_regexes WHERE id BETWEEN 7 AND 584; INSERT INTO collection_regexes (id, group_regex, regex, status, description, ordinal) VALUES ( 7, '^alt\\.binaries\\.0day\\.stuffz$', '/^(?P<match0>[a-zA-Z0-9].+?)(?P<match1> - )\\[\\d+(?P<match2>\\/\\d+\\] - ").+?" yEnc$/', 1, '//ArcSoft.TotalMedia.T...
the_stack
----------------------------------- Query: erpnext-process0, query 86 Path 11/21 - 0 successes, 10 failures Failure messages: Has no output, distance is 1.7976931348623156E306 | Has no output, distance is 1.7976931348623156E306 | Has no output, distance is 1.7976931348623156E306 | Has no output, distance is 1.797693134...
the_stack
CREATE VIEW basedosdados-dev.br_ibge_pnadc.microdados AS SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(trimestre AS INT64) trimestre, SAFE_CAST(id_uf AS STRING) id_uf, SAFE_CAST(sigla_uf AS STRING) sigla_uf, SAFE_CAST(capital AS STRING) capital, SAFE_CAST(rm_ride AS STRING) rm_ride, SAFE_CAST(id_upa AS STRING) id_upa,...
the_stack
-- 2021-05-18T11:04:33.271Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_List SET EntityType='de.metas.vertical.healthcare.alberta',Updated=TO_TIMESTAMP('2021-05-18 14:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542508 ; -- 2021-05-18T11:04:39.999Z -- I forgot ...
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 ...
the_stack
-- EMAIL TEMPLATES DELETE FROM `sys_email_templates` WHERE `Name` = 't_Reported'; INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES ('system', '_sys_et_txt_name_system_reported', 't_Reported', '_sys_et_txt_subject_system_reported', '_sys_et_txt_body_system_reported'); -- SE...
the_stack
-- -- V8 Replication Migration backup script VERSION 1.51, -- generated "May 5 2003" "10:45:31" by CPP for "DB2 AS/400 V8" server: -- -- DO NOT DELETE ANY SQL STATEMENTS FROM THIS SCRIPT. -- CREATE COLLECTION BACKUP ; ------------------------------------------------------------------------ -- The DB2 V8 Replica...
the_stack
-- Generated by CompileSchemaScripts.pl from: -- 20150209-extend-aliases-to-more-entities.sql -- 20150307-other-entities-collections.sql -- 20150317-medium-name-not-null.sql -- 20150331-relationship-credits.sql -- 20150429-tag-upvote.sql -- 20150403-drop-empty-functions.sql \set ON_ERROR_STOP 1 BEGIN; -----------------...
the_stack
-- `approval_request` ALTER TABLE approval_request DROP FOREIGN KEY approval_request_ibfk_1; ALTER TABLE approval_request ADD CONSTRAINT fk_approval_request_grr_users_username_hash FOREIGN KEY (username_hash) REFERENCES grr_users (username_hash) ON DELETE CASCADE; -- `approval_grant`...
the_stack
---------------------------------------------------------------- -------- Ultimate Compression Savings Estimation Check --------- ---------------------------------------------------------------- -- Author: Eitan Blumin | https://www.eitanblumin.com -- Create Date: 2019-12-08 -- Source: http://bit.ly/SQLCompressionEstim...
the_stack
-- Test model ------------------------------------------------------------------------------------------------------------ create table TEST_MANY2MANY_REF ( ID varchar(36) not null, CREATE_TS timestamp, CREATED_BY varchar(50), VERSION integer, UPDATE_TS timestamp, UPDATED_BY varchar(50), D...
the_stack
-- 2018-05-07T15:14:45.818 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Message SET MsgText='Workflow-Aktivitäten',Updated=TO_TIMESTAMP('2018-05-07 15:14:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=858 ; -- 2018-05-07T15:14:50.618 -- I forgot to set the DICTIONARY_ID_C...
the_stack
-- TABLE: entries CREATE TABLE IF NOT EXISTS `bx_reviews_reviews` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `author` int(11) NOT NULL, `added` int(11) NOT NULL, `changed` int(11) NOT NULL, `thumb` int(11) NOT NULL, `title` varchar(255) NOT NULL, `voting_options` text NOT NULL, `voting_avg` float ...
the_stack
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION hstore" to load this file. \quit CREATE TYPE hstore; CREATE FUNCTION hstore_in(cstring) RETURNS hstore AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE NOT FENCED; CREATE FUNCTION hstore_out(hstore) RETURNS cstring...
the_stack
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION citext" to load this file. \quit -- -- PostgreSQL code for CITEXT. -- -- Most I/O functions, and a few others, piggyback on the "text" type -- functions via the implicit cast to text. -- -- -- Shell type to keep th...
the_stack
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 11/14/2016 08:56:27 -- Generated from EDMX file: C:\github\BertPnPSitesCore\Core\Tools\OfficeDevPnP.Core.Tools.UnitTest\Off...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.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_config('search_path', '', fal...
the_stack
#################################################################### ## script to create MySql version of the Northwind test DB #################################################################### DROP DATABASE IF EXISTS `Northwind`; CREATE DATABASE `Northwind`; USE `Northwind`; /*DROP USER IF EXISTS 'Li...
the_stack
-------------------------------------------------------------------------------- -- Private functions -------------------------------------------------------------------------------- -- -- This function is just a placement to store and use the pattern for -- foreign object names -- Servers: cdb_fs_$(server_nam...
the_stack
-- Depends on: -- * CDB_Helper.sql -- * CDB_ExtensionUtils.sql -- * CDB_TransformToWebmercator.sql -- * CDB_TableMetadata.sql -- * CDB_Quota.sql -- * _CDB_UserQuotaInBytes() function, installed by rails -- (user.rebuild_quota_trigger, called by rake task cartodb:db:update_test_quota_trigger) -- 1) Requ...
the_stack
BEGIN; SET search_path TO monitoring; -- add 'ON DELETE CASCADE' to foreign key constraints for metrics tables DO $$ DECLARE r record; metric TEXT; metrics TEXT[] := array[ 'metric_sessions', 'metric_xacts', 'metric_locks', 'metric_blocks', 'metric_bgwriter', 'metric_...
the_stack
create or replace package sample_pkg is -- -- Error Handling function -- function demo_error_handling ( p_error in apex_error.t_error ) return apex_error.t_error_result; -- -- Tag Cleaner function -- function demo_tags_cleaner ( p_tags in varchar2, p...
the_stack
CREATE OR REPLACE FUNCTION _db4ai_test.test( ) RETURNS VOID LANGUAGE plpgsql SECURITY INVOKER SET client_min_messages TO NOTICE AS $$ BEGIN PERFORM _db4ai_test.assert_exception('db4ai.prepare_snapshot(null,null,null)', 'i_parent cannot be NULL or empty'); PERFORM _db4ai_test.assert_exception('db4ai.pre...
the_stack
-- -- -- Purpose of this script is to aggregate and count children of IDV Awards. -- -- -- ASSUMPTIONS -- -- -- 1. An IDV in the Awards table will have a "type" value that begins with "IDV_". -- 2. A child of an IDV can be identified by: -- child.fpds_parent_agency_id = parent.fpds_agency_id AND -- chil...
the_stack
-- Your SQL goes here CREATE OR REPLACE FUNCTION notification_service._generate_template_vars_from_relations(json) RETURNS json LANGUAGE plpgsql STABLE AS $function$ declare _user community_service.users; _payment payment_service.catalog_payments; _subscription payment_ser...
the_stack
-- this file contains tests for GROUP BY with combinations of following -- 1. enable_hashagg = on/off (to force the grouping by sorting) -- 2. distributed or replicated tables across the datanodes -- If a testcase is added to any of the combinations, please check if it's -- applicable in other combinations as well. --...
the_stack
/* Deployment script for OrmCookbook This code was generated by a tool. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. */ GO SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON; SET NUMERIC_ROUNDABORT OFF; GO :setva...
the_stack
DROP TABLE IF EXISTS `sys_menu`; DROP TABLE IF EXISTS `schedule`; DROP TABLE IF EXISTS `data_source_property`; DROP TABLE IF EXISTS `data_source`; DROP TABLE IF EXISTS `process_stops_customized_property`; DROP TABLE IF EXISTS `flow_stops_customized_property`; DROP TABLE IF EXISTS `flow_process_group_path`; DROP TABLE I...
the_stack
-- Worldwide update places -- Aruba, Burundi, Nicaragua and Paraguay are listed as "Nationality" set place_type = "Country" where place_type = "Nationality"; -- For postal_codes parented by something like "LandFeature" or "Estate" or "HistoricalCounty" -- or some other non-admin feature, set to...
the_stack
DROP TABLE IF EXISTS `t_dl_flinker_job_schedule`; CREATE TABLE `t_dl_flinker_job_schedule` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '定时表主键', `job_id` bigint(20) DEFAULT NULL COMMENT '任务id job表id', `schedule_name` varchar(255) DEFAULT NULL, `cron_expression` varchar(128) DEFAULT NULL COMMENT '...
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
CALL _prom_catalog.execute_everywhere('tracing_types', $ee$ DO $$ BEGIN CREATE DOMAIN ps_trace.trace_id uuid NOT NULL CHECK (value != '00000000-0000-0000-0000-000000000000'); GRANT USAGE ON DOMAIN ps_trace.trace_id TO prom_reader; CREATE DOMAIN ps_trace.tag_k text NOT NULL CHECK (value != ''); GRANT U...
the_stack
-- METASFRESH -- hide parent when type is B -- 2021-08-25T08:39:31.242Z -- URL zum Konzept UPDATE AD_Field SET DisplayLogic='@JobType@=''0''',Updated=TO_TIMESTAMP('2021-08-25 11:39:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=652708 ; -- 2021-08-25T08:39:55.441Z -- URL zum Konzept UPDATE AD_Field SET D...
the_stack
--========================================================== --========================================================== \set ECHO all drop schema if exists hw_es_multi_column_stats cascade; create schema hw_es_multi_column_stats; set current_schema = hw_es_multi_column_stats; set default_statistics_target=-2; --====...
the_stack
-- 2019-09-05T13:28:38.793Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=276447230,Updated=TO_TIMESTAMP('2019-09-05 15:28:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2810 ; -- 2019-09-05T13:28:42.257Z -- I forgot to set the DICTIONARY_ID_COMMENTS ...
the_stack
-- Connection Settings. \set HIVE_SERVER `echo \'"$HIVE_SERVER"\'` \set HIVE_CLIENT_TYPE '\'hiveserver2\'' \set HIVE_PORT `echo \'"$HIVE_PORT"\'` \set HIVE_USER `echo \'"$HIVE_USER"\'` \set HIVE_PASSWORD `echo \'"$HIVE_PASSWORD"\'` \set AUTH_TYPE `echo \'"$AUTH_TYPE...
the_stack
-- Enable support for Nan/±Infinity SET DATABASE SQL DOUBLE NAN FALSE; CREATE TABLE T_TINYINT (ID INT PRIMARY KEY, VALUE TINYINT NULL); INSERT INTO T_TINYINT VALUES (0, NULL); INSERT INTO T_TINYINT VALUES (1, 0); INSERT INTO T_TINYINT VALUES (2, 1); INSERT INTO T_TINYINT VALUES (3, -128); INSERT INTO T_TINYINT VALUES...
the_stack
--Create Undercover Catalogue Objects --If it doesn't already exist, create SQLUndercover database --I'm not going to take responsibility for your default database settings so make sure that the SQLUndercover database is setup sensibly IF NOT EXISTS (SELECT 1 FROM sys.databases WHERE name = 'SQLUndercover') CREATE DAT...
the_stack
------------------------------------------------------------------------------- -- (C) Copyright IBM Corp. 2016, 2021 -- -- SPDX-License-Identifier: Apache-2.0 ------------------------------------------------------------------------------- -- LOADED ON: {{DATE}} -- ----------------------------------------------------...
the_stack
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Dim 21 Septembre 2014 à 13:13 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
the_stack
-- 2020-01-21T13:32:16.568Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element SET ColumnName='yearFrom',Updated=TO_TIMESTAMP('2020-01-21 15:32:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577465 ; -- 2020-01-21T13:32:16.581Z -- I forgot to set the DICTIONARY_ID_COMME...
the_stack
-- 2020-06-22T18:57:54.087Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET DisplayLogic='''@OutputType/X@''=''Queue''',Updated=TO_TIMESTAMP('2020-06-22 20:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=540465 ; -- 2020-06-22T18:58:04.505Z -- I forgot to set the DICTI...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for ad -- ---------------------------- DROP TABLE IF EXISTS `ad`; CREATE TABLE `ad` ( `ad_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '广告ID', `title` varchar(255) NOT NULL COMMENT '广告标题', `describe` varchar(255) NOT NULL DEFAULT '' COMM...
the_stack
SET NOCOUNT ON /************************************************************* Migration progress **************************************************************/ IF NOT EXISTS ( SELECT * FROM sys.tables WHERE name = 'SchemaMigrationProgress') BEGIN CREATE TABLE dbo.SchemaMigrationProgress ( ...
the_stack
-- 2019-03-20T10:31:31.179 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Name='Anruf Planung',Updated=TO_TIMESTAMP('2019-03-20 10:31:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=541173 ; -- 2019-03-20T10:31:57.705 -- I forgot to set the DICTIONARY_ID_COMMENTS Sys...
the_stack
EXEC tSQLt.NewTestClass 'Private_NoTransactionHandleTableTests'; GO /*-----------------------------------------------------------------------------------------------*/ GO CREATE PROCEDURE Private_NoTransactionHandleTableTests.[test errors if Action is not an acceptable value] AS BEGIN CREATE TABLE Private_NoTransacti...
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 ma...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 20c -- -- OML R Extensible - Generalized Linear Model Algorithm - dmrglmdemo.sql -- -- Copyright (c) 2020 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UP...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 21c -- -- Regression - Generalized Linear Model Algorithm - dmglrdem.sql -- -- Copyright (c) 2021 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Vers...
the_stack
-- 13.05.2016 16:02 -- 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,Is...
the_stack
-- 2018-05-15T16:39:53.298 -- 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,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLo...
the_stack
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_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE DATABASE IF NO...
the_stack
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -------------------------------------------------------------------------------- -- File name: exasnapper_install.sql (Exadata Snapper inst...
the_stack
set define off set echo on create or replace view DEPARTMENT_SPREADSHEET of xmltype with object id ( XMLCast ( XMLQuery ( 'declare default element namespace "urn:schemas-microsoft-com:office:spreadsheet"; (: :) declare namespace ss = "urn:schemas-microsoft-com:office:spreadsheet"; (: :)...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for rc_admin -- ---------------------------- DROP TABLE IF EXISTS `rc_admin`; CREATE TABLE `rc_admin` ( `admin_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员Id', `admin_username` varchar(255) CHARACTER SET...
the_stack
-- 08.03.2017 17:22 -- URL zum Konzept UPDATE AD_Process_Para SET AD_Element_ID=542135, ColumnName='M_HU_PI_ID', Name='Packvorschrift',Updated=TO_TIMESTAMP('2017-03-08 17:22:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541153 ; -- 08.03.2017 17:22 -- URL zum Konzept UPDATE AD_Process_Para_Trl SE...
the_stack
create table pt_tbl_test(id integer, name varchar(20), gender boolean); insert into pt_tbl_test (id, name, gender) values (1, 'zhangsan', true); insert into pt_tbl_test (id, name, gender) values (2, 'lisi', false); insert into pt_tbl_test (id, name, gender) values (3, 'wangwu', true); select * from pt_tbl_test where id...
the_stack
-- ============================================================================= -- Base functions -- ============================================================================= -- Create function create_node_server create or replace function create_node_server ( pi_node_name 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
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', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
the_stack
-- create or replace package XFILES_CONSTANTS authid DEFINER as C_FOLDER_ROOT constant VARCHAR2(700) := '/XFILES'; C_FOLDER_HOME constant VARCHAR2(700) := '/home/&XFILES_SCHEMA'; C_FOLDER_APPLICATIONS_PRIVATE constant VARCHAR2(700) := C_FOLDER_HOME ...
the_stack
-- Add important SQL Agent Alerts to your instance -- This will work with SQL Server 2008 and newer -- Glenn Berry -- SQLskills.com -- Last Modified: August 11, 2014 -- http://sqlserverperformance.wordpress.com/ -- http://sqlskills.com/blogs/glenn/ -- Twitter: GlennAlanBerry -- Listen to my Pluralsight courses -- htt...
the_stack
insert into inserttest (col1, col2, col3) values (DEFAULT, DEFAULT, DEFAULT); insert into inserttest (col2, col3) values (3, DEFAULT); insert into inserttest (col1, col2, col3) values (DEFAULT, 5, DEFAULT); insert into inserttest values (DEFAULT, 5, 'test'); insert into inserttest values (DEFAULT, 7); insert into inser...
the_stack
-- -- XDPBM_XML_SCHEMA_WIZARD should be created under XDBPM -- alter session set current_schema = XDBPM / -- set define on -- create or replace package XDBPM_ORDER_XMLSCHEMAS authid CURRENT_USER as function createSchemaOrderingDocument(P_OUTPUT_FOLDER VARCHAR2, P_XML_SCHEMA_FOLDER VARCHAR2, P_LOCAL_PATH_LIST XDB.XDB...
the_stack
-- partition by range /*--EXPLAIN_QUERY_BEGIN*/ select 'partition by range' as current_query; SET client_min_messages TO 'warning'; DROP TABLE IF EXISTS sales cascade; RESET client_min_messages; CREATE OR REPLACE FUNCTION create_huge_partitions() RETURNS VOID AS $$ DECLARE partition_num INT := 1000; i INT := 0; l...
the_stack
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2018 at 03:13 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
the_stack
; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!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' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 ...
the_stack
----------------------------------------- VAR sql_text_backup CLOB BEGIN :sql_text_backup := q'{ WITH t1 AS ( -- Cost of the resource group by ENDTIME SELECT SUM("cost/myCost") COMPUTEDAMOUNT, TO_TIMESTAMP("lineItem/intervalUsageEnd",'&&oci360_usage_tzcolformat.') ENDTIMEUTC FROM @main_table@ WHERE...
the_stack
SET search_path = public, pg_catalog; -- -- Name: efiling_amendment_chain_vw; Type: VIEW; Schema: public; Owner: fec -- CREATE VIEW efiling_amendment_chain_vw AS WITH RECURSIVE oldest_filing AS ( SELECT reps.repid, reps.comid, reps.previd, ARRAY[reps.repid] AS amendment_c...
the_stack
------------------------------------------------------- -- Test A db style procedure and Function Defination ------------------------------------------------------- SET CHECK_FUNCTION_BODIES TO ON; CREATE PROCEDURE test_proc_define ( in_1 IN VARCHAR2, in_2 VARCHAR2, out_1 OUT VARCHAR2, inout_1 IN OUT VARCH...
the_stack
-- 2018-04-17T13:01:15.608 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Name='Chargensperre',Updated=TO_TIMESTAMP('2018-04-17 13:01:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540422 ; -- 2018-04-17T13:01:15.618 -- I forgot to set the DICTIONARY_ID_COMMENTS S...
the_stack
------------------------------------------- -- Create the tables and MIMIC-IV schema -- ------------------------------------------- ---------------------- -- Creating schemas -- ---------------------- DROP SCHEMA IF EXISTS mimic_core CASCADE; CREATE SCHEMA mimic_core; DROP SCHEMA IF EXISTS mimic_hosp CASCADE; CREATE ...
the_stack
DROP FUNCTION IF EXISTS report.tax_accounting_report_details(IN p_dateFrom date, IN p_dateTo date, IN p_vatcode varchar, IN p_account_id numeric, IN p_c_tax_id numeric, IN p_org_id numeric, IN p_ad_language character varying(6)); CREATE OR REPLACE FUNCTION report.tax_accounting_report_details(I...
the_stack
SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); -- ac_escheduler_T_t_escheduler_version drop PROCEDURE if EXISTS ac_escheduler_T_t_escheduler_version; delimiter d// CREATE PROCEDURE ac_escheduler_T_t_escheduler_version() BEGIN drop table if exists t_escheduler_version; CREATE TABLE ...
the_stack
-- 权限DB结果表 CREATE DATABASE IF NOT EXISTS bkdata_basic; USE bkdata_basic; SET NAMES utf8; CREATE TABLE `auth_object_config` ( `object_class` varchar(32) NOT NULL COMMENT '对象类型', `object_name` varchar(128) NOT NULL COMMENT '对象名称', `has_object` tinyint(2) NOT NULL COMMENT '是否有对象', `scope_id_key` ...
the_stack
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_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Table structure...
the_stack
/************************************************************* Stored procedures - ReindexResource_2 **************************************************************/ -- -- STORED PROCEDURE -- ReindexResource_2 -- -- DESCRIPTION -- Updates the search indices of a given resource -- -- PARAMETERS -- @resou...
the_stack
SET FOREIGN_KEY_CHECKS=0; CREATE DATABASE IF NOT EXISTS kongx_serve DEFAULT CHARACTER SET = utf8mb4; Use kongx_serve; -- ---------------------------- -- Table structure for kongx_operation_log -- ---------------------------- DROP TABLE IF EXISTS `kongx_operation_log`; CREATE TABLE `kongx_operation_log` ( `id` int(11...
the_stack
-- 2019-12-02T14:57:52.441Z -- 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,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHe...
the_stack
-- -- DDL to add the columns Target_DLM_Level, Current_DLM_LEvel and DateNextInspection to the table DLM_Partition -- -- 31.10.2016 07:21 -- URL zum Konzept ALTER TABLE DLM_Partition ADD Current_DLM_Level NUMERIC(10) DEFAULT NULL ; -- 31.10.2016 07:22 -- URL zum Konzept ALTER TABLE DLM_Partition ADD Target_DLM_Level ...
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/ -- -- =============================================================== -- WARNING WARNING WARNING WARNING WA...
the_stack
\set ON_ERROR_STOP 1 BEGIN; CREATE TABLE instrument_type ( id SERIAL, -- PK name VARCHAR(255) NOT NULL, parent INTEGER, -- references instrument_type.id child_order INTEGER NOT NULL DEFAULT 0, description TEXT ); CREATE TABLE instrumen...
the_stack
-- DO NOT MODIFY THIS FILE. IT IS AUTO GENERATED set define off prompt *** OOS_UTILS *** prompt *** Prereqs OOS_UTILS *** -- This script will ensure that current user has the appropriate privileges whenever sqlerror exit set serveroutput on -- SESSION PRIVILEGES (#34) declare type t_sess_privs is table of pls...
the_stack
-- MySQL dump 10.13 Distrib 5.7.10, for osx10.10 (x86_64) -- -- Host: localhost Database: magento2 -- ------------------------------------------------------ -- Server version 5.7.9 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
the_stack
/* korean charsets: */ /* KSC_5601, EUC-KR, MS_949, APPLE_KOREAN */ /* ======================================================================= */ static sal_uInt16 const aImplUniToDBCSTab_KSC5601_00[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x0000, 0x0001, 0x0002, 0x0003, 0x00...
the_stack
SET NOEXEC OFF SET ANSI_WARNINGS ON SET XACT_ABORT ON SET IMPLICIT_TRANSACTIONS OFF SET ARITHABORT ON SET QUOTED_IDENTIFIER ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON GO BEGIN TRAN GO /****** Object: View [dbo].[BugNet_GetIssuesByProjectIdAndCustomFieldView] ...
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
-- Therapy values -- 2021-07-20T06:55:46.041Z -- URL zum Konzept INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Reference_ID,AD_Ref_List_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,541282,542739,TO_TIMESTAMP('2021-07-20 09:55:44','YYYY-MM-DD HH24:MI:SS'),100,'de.meta...
the_stack
-- 2020-03-06T14:27:35.307Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='SEPA Gläubiger-ID', PrintName='SEPA Gläubiger-ID',Updated=TO_TIMESTAMP('2020-03-06 15:27:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=542478 AND AD_Language='...
the_stack
-- 2020-02-20T16:06:07.674Z -- 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,IsNotifyUserA...
the_stack
-- -- V8 Replication Migration backup script VERSION 1.51, -- generated "May 5 2003" "10:45:32" by CPP for "DB2 UDB V8" server: -- -- DO NOT DELETE ANY SQL STATEMENTS FROM THIS SCRIPT. -- -- Users must either create the tablespaces BACKUPTS and OTHERTS -- before running this script, or change these tablespace nam...
the_stack
---------------------------------------------------------------- -- [qos] Table ---------------------------------------------------------------- CREATE OR REPLACE FUNCTION InsertStorageQos ( v_id uuid, v_qos_type SMALLINT, v_name VARCHAR(50), v_description TEXT, v_storage_pool_id uuid, v_max_thr...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.1 -- Dumped by pg_dump version 11.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_config('search_path', '', fal...
the_stack
CREATE OR REPLACE PACKAGE pkg1 AUTHID DEFINER IS PROCEDURE proc1; END pkg1; / -- Down to Subprogram Name! -- The FORMAT_CALL_STACK function in DBMS_UTILITY only shows you the name of the program unit -- in the call stack (i.e., the package name, but not the function within the package). -- UTL_CALL_STACK on...
the_stack
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 8.0.19 - MySQL Community Server - GPL -- 服务器操作系统: Win64 -- HeidiSQL 版本: 10.3.0.5771 -- -------------------------------------------------------- /...
the_stack
-- -- PostgreSQL database dump -- -- SET client_encoding = 'UTF-8'; -- SET check_function_bodies = false; -- SET client_min_messages = warning; -- -- Name: sportsdb_sample; Type: DATABASE; Schema: -; Owner: postgres81 -- -- CREATE DATABASE sportsdb_sample WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII'; -- \connect...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 20c -- -- OML R Extensible - Regression - Neural Networks Algorithm - dmrnndemo.sql -- -- Copyright (c) 2020 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License ...
the_stack
DROP TABLE bonus; DROP TABLE career; DROP TABLE emp; DROP TABLE dept; DROP TABLE job; /******************************************************/ /* Departments (Подразделения) */ /******************************************************/ CREATE TABLE dept ( deptid VARCHAR(3) PRIMARY KEY NOT NULL, ...
the_stack
USE cycling; CREATE KEYSPACE IF NOT EXISTS cycling WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; // Q1: -- Find a cyclist's name given an ID number // CREATE TABLE SIMPLE PRIMARY KEY CREATE TABLE cycling.cyclist_name ( id UUID PRIMARY KEY, lastname text, firstname text ); INSERT INTO cyc...
the_stack