text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
--create table DROP TABLE IF EXISTS unsable_index_3; CREATE TABLE unsable_index_3 (c1 int, c2 int, c3 int, c4 int, c5 text); CREATE INDEX idx1_unsable_index_3 on unsable_index_3(c1); DROP TABLE IF EXISTS partition_unsable_index_3; CREATE TABLE partition_unsable_index_3 (c1 int, c2 int, c3 int, c4 int, c5 text) partiti...
the_stack
CREATE TABLE `cities` ( `id` int(11) NOT NULL, `governorate_id` int(11) NOT NULL, `city_name_ar` varchar(200) NOT NULL, `city_name_en` varchar(200) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `governorates` ( `id` int(11) NOT NULL, `governorate_name_ar` varchar(50) NOT NULL, `governora...
the_stack
-- 2017-06-17T09:43:45.596 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-06-17 09:43:45','YYYY-MM-DD HH24:MI:SS'),Name='Language',Description='Language for this entry',Help='Defines the Language for data recording and processing.' WHER...
the_stack
-- 2020-06-17T13:17:59.147Z -- 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,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VA...
the_stack
-- 29.10.2015 15:19 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,...
the_stack
-- 2021-07-21T08:38:55.586Z -- 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,IsFormatExcel...
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.childbirth_delivery_ass...
the_stack
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 29, 2019 at 11:17 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
the_stack
DECLARE PRAGMA AUTONOMOUS_TRANSACTION; res int; res2 text; BEGIN raise notice 'just use call.'; res2 := 'aa55'; res := 55; END; / create table t1(a int ,b text); DECLARE PRAGMA AUTONOMOUS_TRANSACTION; BEGIN raise notice 'just use call.'; insert into t1 values(1,'you are so cute!'); END; / select * from t1...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tb_anno -- ---------------------------- DROP TABLE IF EXISTS `tb_anno`; CREATE TABLE `tb_anno` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '公告编号', `user_id` bigint(20) NOT NULL COMMENT '创建人', `anno_title` ...
the_stack
CREATE TYPE dbo.BulkResourceWriteClaimTableType_1 AS TABLE ( Offset int NOT NULL, ClaimTypeId tinyint NOT NULL, ClaimValue nvarchar(128) NOT NULL ) CREATE TYPE dbo.BulkCompartmentAssignmentTableType_1 AS TABLE ( Offset ...
the_stack
CREATE EXTENSION hstore; -- Check whether any of our opclasses fail amvalidate SELECT amname, opcname FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); set escape_string_warning=off; --hstore; select ''::hstore; select 'a=>b'::hstore; select ' a=>b'::hs...
the_stack
-- 2020-01-06T08:02:17.386Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Name='C_Queue_Processor',Updated=TO_TIMESTAMP('2020-01-06 09:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540486 ; -- 2020-01-07T05:07:53.026Z -- I forgot to set the DICTIONARY_ID_COMMEN...
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
-- -- XDBPM_IMPORT_UTILITIES should be created under XDBPM -- alter session set current_schema = XDBPM / create or replace package XDBPM_IMPORT_UTILITIES authid CURRENT_USER as C_LINE_01 constant VARCHAR2(128) := 'declare' || CHR(13) || CHR(10); C_LINE_02 constant VARCHAR2(128) := ' V_RESULT BOOLEAN;' || CHR(1...
the_stack
-- 2018-02-15T17:40:40.283 -- 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,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplaye...
the_stack
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Nov 30, 2018 at 09:45 AM -- Server version: 5.6.35 -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
the_stack
/* chinese simplified (China) charsets: */ /* GBT (GB12345) */ /* Some tables are in ctabscn2.cxx, because these tables are shared with */ /* GB or GBK. */ /* ======================================================================= */ static sal_uInt16 const aImplUniToDBCSTab_GBT_4E[] = { /* 0 1 2 3 4 5 ...
the_stack
-- alter table users drop constraint users_site_id_fkey; create table users2 ( user_id integer primary key autoincrement, site_id integer not null, email varchar not null, email_verified integer not null default 0, password blob default null, totp_...
the_stack
GRANT ALL TO pax_writer; GRANT EXECUTE ON TestProc TO TesterRole WITH GRANT OPTION; EXEC sp_addrolemember TesterRole, User1; GRANT EXECUTE ON TestMe TO User2; GRANT EXECUTE ON TestMe TO User2 AS TesterRole; GRANT VIEW DEFINITION ON AVAILABILITY GROUP::MyAg TO ZArifin; GRANT TAKE OWNERSHIP ON AVAILABILITY GROUP::MyAg TO...
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
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 20c -- -- Classification - Neural Networks Algorithm - dmnncdem.sql -- -- Copyright (c) 2020 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Version 1...
the_stack
SET search_path = disclosure, pg_catalog; -- -- Name: fec_fitem_sched_a_1975_1976 pg_date; Type: DEFAULT; Schema: disclosure; Owner: fec -- ALTER TABLE ONLY fec_fitem_sched_a_1975_1976 ALTER COLUMN pg_date SET DEFAULT now(); -- -- Name: fec_fitem_sched_a_1977_1978 pg_date; Type: DEFAULT; Schema: disclosure; Owner: ...
the_stack
-- phpMyAdmin SQL Dump -- version 3.3.7deb8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Czas wygenerowania: 30 Gru 2018, 09:12 -- IMPORTANT: -- -- Import this file before using LMeve. Remember to set the config options in /config/config.php -- After setting up new SALT in config.php, generate admin password ...
the_stack
--this algorithm shows you concept_code and an error type related to this code, --for ds_stage it gets drug_concept_code --for relationship_to_concept it gives concept_code_1 --for internal_relationship it gives concpept_code_1 --for drug_concept_stage it gives concept_code -- 1. relationship_to_concept --incorrect ma...
the_stack
drop database if exists dal_shard_0; create database dal_shard_0; use dal_shard_0; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for person -- ---------------------------- DROP TABLE IF EXISTS `person`; CREATE TABLE `person` ( `PeopleID` int(11) NOT NULL AUTO_INCREMENT, `Name` varch...
the_stack
-- 2017-10-16T10:49:22.521 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-10-16 10:49:22','YYYY-MM-DD HH24:MI:SS'),Name='All Rows' WHERE AD_Tab_ID=540443 AND AD_Language='en_US' ; -- 2017-10-16T10:49:42.877 -- I forgot to set the DICTION...
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 not...
the_stack
--AVOF-1610 --UB04 Point of Origin --set non-standard for some UB04 Point of Origin codes update concept set standard_concept=null where concept_id between 32193 and 32202; --deprecate self 'Maps to' update concept_relationship set invalid_reason='D', valid_end_date=current_date where concept_id_1 between 32193 and 32...
the_stack
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION periods" to load this file. \quit /* This extension is non-relocatable */ CREATE SCHEMA periods; CREATE TYPE periods.drop_behavior AS ENUM ('CASCADE', 'RESTRICT'); CREATE TYPE periods.fk_actions AS ENUM ('CASCADE', ...
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
-- This code uses the latest version of Elixhauser provided by AHRQ with eliflg as ( select hadm_id, seq_num, icd9_code -- note that these codes will seem incomplete at first -- for example, CHF is missing a lot of codes referenced in the literature (402.11, 402.91, etc) -- these codes are captured by hypertension fla...
the_stack
-- -- Copyright 2009 Inspire-Software.com -- -- 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 b...
the_stack
-- Roles & Permissions --------------------------------------------------- CREATE EXTENSION IF NOT EXISTS "pg_trgm"; CREATE TABLE "public"."operations" ( "id" uuid NOT NULL DEFAULT uuid_generate_v4(), "uri" varchar(250) NOT NULL DEFAULT ''::character varying UNIQUE, "name" varchar(250) NOT NULL DEFAULT ''...
the_stack
-- -- Table structure for table `tools` -- CREATE TABLE IF NOT EXISTS `tools` ( `id` integer PRIMARY KEY AUTOINCREMENT, `book` int NOT NULL, `shield` int NOT NULL, `sword` int NOT NULL ); -- -- Insert data for table `tools` -- DELETE FROM `tools`; INSERT INTO `tools` (`id`, `book`, `shield`, `sword`) VALUES ...
the_stack
-- -- Name: bn_address_references_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY bn_address_references ADD CONSTRAINT bn_address_references_pkey PRIMARY KEY (module_id, address, "position", expression_id, type, target); -- -- Name: bn_address_spaces_pkey; Type: CONSTRAI...
the_stack
CREATE DATABASE `auth` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!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 */; /*!40014 SET @OLD_FOREIGN_KEY...
the_stack
-- 2019-02-13T17:07:53.339 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Name='Phone call list',Updated=TO_TIMESTAMP('2019-02-13 17:07:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=541173 ; -- 2019-02-13T17:08:37.110 -- I forgot to set the DICTIONARY_ID_COMMENTS S...
the_stack
-------------------------------------------------------------------------------- -- Zabbix Partitioning functions for PostgreSQL -- -------------------------------------------------------------------------------- -- -- Original source: https://github.com/cavaliercoder/zabbix-pgsql-partitio...
the_stack
-- +migrate Up notransaction -- +migrate StatementBegin BEGIN; DROP TABLE IF EXISTS change_log; CREATE TABLE IF NOT EXISTS change_log ( id BIGSERIAL PRIMARY KEY, op TEXT NOT NULL, table_name TEXT NOT NULL, row_id TEXT NOT NULL, tx_id BIGINT, cmd_id cid, row_data JSONB ); CREATE OR REPLAC...
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 not...
the_stack
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS cohort_enum CASCADE; DROP TABLE IF EXISTS stage_enum CASCADE; DROP TABLE IF EXISTS milestone_enum CASCADE; DROP TABLE IF EXISTS role_enum CASCADE; DROP TABLE IF EXISTS project_level_enum CASCADE; DROP TABLE IF EXISTS project_category_enum CASCADE; DROP TABLE IF EXISTS app...
the_stack
--User defined functions have several limitations -- -- PLPGSQL -- Table xl_room default distributed by Hash(roomno) on all nodes. create table xl_Room ( roomno char(8), comment text ); create unique index xl_Room_rno on xl_Room using btree (roomno bpchar_ops); -- Table xl_wslot default distributed by Hash...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.12 (Debian 10.12-2.pgdg90+1) -- Dumped by pg_dump version 10.8 (Debian 10.8-1.pgdg90+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;...
the_stack
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 23, 2019 at 11:53 AM -- Server version: 5.6.38 -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
the_stack
-- from drug_exposure -- mapping is 85% done from gsn coding WITH "pr" AS ( SELECT 'drug:['|| coalesce(drug, drug_name_poe, drug_name_generic,'') ||']'|| 'prod_strength:['||coalesce(prod_strength,'')||']'|| 'drug_type:['||coalesce(drug_type,'')||']'|| 'formulary_drug_cd:['||coalesce(formulary_drug_cd,'') || ']' || ...
the_stack
Expression Type: T_ArrayRef T_AlternativeSubPlan T_FieldSelect T_FieldStore T_ArrayCoerceExpr T_ConvertRowtypeExpr T_ArrayExpr T_RowExpr T_XmlExpr T_CoerceToDomain T_CoerceToDomainValue T_CurrentOfExpr Using Type: qual targetlist *********************************...
the_stack
set query_dop=1002; create schema nodegroup_setop_test; set current_schema = nodegroup_setop_test; set enable_nodegroup_explain=true; set expected_computing_nodegroup='group1'; create node group ng0 with (datanode1, datanode2, datanode3); create node group ng1 with (datanode4, datanode5, datanode6); create node group...
the_stack
DROP FUNCTION if exists getCurrentCost(numeric, date, numeric, numeric, numeric); CREATE OR REPLACE FUNCTION getCurrentCost(p_M_Product_ID numeric, p_Date date, p_AcctSchema_ID numeric, p_M_CostElement_Id numeric, p_AD_Client_ID numeric...
the_stack
-- -- Name: actor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY actor ADD CONSTRAINT actor_pkey PRIMARY KEY (actor_id); -- -- Name: address_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace: -- ALTER TABLE ONLY address ADD CONSTRAINT address_pke...
the_stack
-- 2017-06-11T11:08:23.731 -- 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,54086...
the_stack
-- -- XC_ALTER_TABLE -- -- Check on dropped columns CREATE TABLE xc_alter_table_1 (id serial, name varchar(80), code varchar(80)) DISTRIBUTE BY HASH(id); EXPLAIN (VERBOSE true, COSTS false, NODES false) INSERT INTO xc_alter_table_1(name) VALUES ('aaa'),('bbb'),('ccc'); INSERT INTO xc_alter_table_1(name) VALUES ('aaa')...
the_stack
-- complex datatype handling SELECT * FROM pglogical_regress_variables() \gset \c :provider_dsn SELECT pglogical.replicate_ddl_command($$ CREATE TABLE public.tst_one_array ( a INTEGER PRIMARY KEY, b INTEGER[] ); CREATE TABLE public.tst_arrays ( a INTEGER[] PRIMARY KEY, b TEXT[], c FLOAT[], d INTERVAL[]...
the_stack
USE [master] GO -- Limit error logs EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'NumErrorLogs', REG_DWORD, 15 GO -- Set sp_configure settings EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE GO EXEC sys.sp_configure N'remote admin conne...
the_stack
DROP INDEX GHTDB.categoryname; DROP INDEX GHTDB.city; DROP INDEX GHTDB.companyname_1; DROP INDEX GHTDB.postalcode_2; DROP INDEX GHTDB.region; DROP INDEX GHTDB.lastname; DROP INDEX GHTDB.postalcode_1; DROP INDEX GHTDB.categoryid; DROP INDEX GHTDB.productname; DROP INDEX GHTDB.suppliersproducts; DROP INDEX GHTDB.companyn...
the_stack
-- Set to 1 to output tips as a JSON value DECLARE @JSONOutput bit = 0; -- Debug flag to return all tips regardless of database state DECLARE @ReturnAllTips bit = 0; -- Next three variables apply to "Top queries" (1320) hint, adjust if needed -- The length of recent time interval to use when determining top queries....
the_stack
-- -- Table structure for table `phalcon_migrations` -- DROP TABLE IF EXISTS `phalcon_migrations`; CREATE TABLE `phalcon_migrations` ( `version` varchar(255) NOT NULL, `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, KEY `idx_phalcon_migrations_...
the_stack
CREATE TYPE sys.DATETIME2; CREATE OR REPLACE FUNCTION sys.datetime2in(cstring) RETURNS sys.DATETIME2 AS 'babelfishpg_common', 'datetime2_in' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; CREATE OR REPLACE FUNCTION sys.datetime2out(sys.DATETIME2) RETURNS cstring AS 'timestamp_out' LANGUAGE internal IMMUTABLE STRICT PARAL...
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
SET @sName = 'bx_notifications'; -- PAGES & BLOCKS INSERT INTO `sys_objects_page`(`object`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `uri`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 11.4 -- Dumped by pg_dump version 11.4 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
==== ---- DATASET tpcds ---- BASE_TABLE_NAME customer_demographics ---- COLUMNS cd_demo_sk bigint cd_gender string cd_marital_status string cd_education_status string cd_purchase_estimate int cd_credit_rating string cd_dep_count int cd_dep_employed...
the_stack
-- -- Test for ALTER some_object {RENAME TO, OWNER TO, SET SCHEMA} -- -- Clean up in case a prior regression run failed SET client_min_messages TO 'warning'; DROP DATABASE IF EXISTS tmp233; DROP ROLE IF EXISTS regressioncleanupuser; DROP ROLE IF EXISTS regtest_alter_user1; DROP ROLE IF EXISTS regtest_alter_user2; DRO...
the_stack
-- -- XDBPM_EDIT_XMLSCHEMA should be created under XDBPM -- alter session set current_schema = XDBPM / -- declare cursor getSequence is select 1 from all_sequences where SEQUENCE_OWNER = 'XDBPM' and SEQUENCE_NAME = 'XDBPM$TYPE_ID'; begin for s in getSequence loop execute immediate 'drop sequence XDBPM...
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 not...
the_stack
-- -- YSQL database dump -- -- Dumped from database version 11.2-YB-2.13.0.0-b0 -- Dumped by ysql_dump version 11.2-YB-2.13.0.0-b0 SET yb_binary_restore = true; SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings =...
the_stack
-- 2020-06-23T11:23:05.069Z -- URL zum Konzept UPDATE AD_Window SET AD_Element_ID=575146, Description='Bericht zu Produktkosten', Help=NULL, Name='Produktkosten',Updated=TO_TIMESTAMP('2020-06-23 14:23:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=344 ; -- 2020-06-23T11:23:05.529Z -- URL zum Konzept UPD...
the_stack
-- -- XDBPM_REGISTRATION_HELPER should be created under XDBPM -- alter session set current_schema = XDBPM / -- set define on -- create or replace package XDBPM_REGISTRATION_HELPER authid CURRENT_USER as TYPE DOCUMENT_INFO_T is RECORD ( PATH VARCHAR2(1024), ELEMENT V...
the_stack
-- --FOR BLACKLIST FEATURE: INHERITS、SEQUENCE、RULE is not supported. -- set client_min_messages=warning; -- Lets not reuse int4_tbl & int8_tbl -- so that this test could be run independently create table xc_int8_tbl(q1 int8, q2 int8); INSERT INTO xc_int8_tbl VALUES(' 123 ',' 456'); INSERT INTO xc_int8_tbl VALUES(...
the_stack
\set ON_ERROR_STOP 1 BEGIN; ----------------------------------------------------------------------- -- create tables ----------------------------------------------------------------------- CREATE TABLE area_attribute_type ( -- replicate (verbose) id SERIAL, -- PK name VARCHAR(...
the_stack
-- 2018-11-27T14:25:34.423 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=53805 ; -- 2018-11-27T14:25:34.429 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field WHERE AD_Field_ID=53805 ; -- 2018-11-27T14:25:34.438 -- I f...
the_stack
-- 2019-11-29T13:56:11.301Z -- 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
-- 2017-09-05T18:45:21.153 -- 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_Process_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ('R',0,5409...
the_stack
-- ---------------------------- -- Table structure for action -- ---------------------------- DROP TABLE IF EXISTS `action`; CREATE TABLE `action` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL COMMENT 'action名', `description` varchar(255) DEFAULT NULL COMMENT '描述', `type` tinyint(4) NOT N...
the_stack
-- update latest_update field to new date DO $_$ BEGIN PERFORM VOCABULARY_PACK.SetLatestUpdate( pVocabularyName => 'NCCD', pVocabularyDate => (SELECT vocabulary_date FROM nccd_vocabulary_vesion LIMIT 1), pVocabularyVersion => (SELECT vocabulary_version FROM nccd_vocabulary_vesion LIMIT 1), pVocabularyDevSche...
the_stack
-- ---------------------------------------------------------------- -- -- This is a script to add the MIMIC-III indexes for Oracle. -- -- ---------------------------------------------------------------- -- The below command defines the schema where the data should reside --ALTER SESSION SET CURRENT_SCHEMA = MIMICIII; ...
the_stack
-- drop outdated constraints ALTER TABLE job DROP FOREIGN KEY FK_job_root_id; ALTER TABLE job DROP FOREIGN KEY FK_job_parent_id; ALTER TABLE job DROP FOREIGN KEY FK_job_creator_service; ALTER TABLE service_registration DROP FOREIGN KEY FK_service_registration_host_registration; -- change engine to innodb ALTER TABLE...
the_stack
use master; GO ------------------------------------------------------------------------------------------ -- sp_MoveTablesToFileGroup -- -- Moves tables, heaps and indexes and LOBS to a filegroup. -- Author: Mark White (maranite@gmail.com) -------------------------------------------------------------------------...
the_stack
DROP VIEW IF EXISTS RV_Prepared_And_Drafted_Documents; CREATE VIEW RV_Prepared_And_Drafted_Documents AS SELECT x.AD_Org_ID, x.AD_Client_ID, x.Created, x.IsActive, x.Updated, x.UpdatedBy, x.C_doctype_ID, x.documentno, x.DateDoc, x.docstatus, x.createdBy, x.ad_table_id, x.record_id FROM ( -- C_Invoice ( select ...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 21c -- -- OML R Extensible - Regression Tree Algorithm - dmrdtdemo.sql -- -- Copyright (c) 2021 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Versio...
the_stack
-- Create our own copies of these test tables in our own -- schema (see qp_functions_in_contexts_setup.sql) CREATE SCHEMA qp_funcs_in_subquery_constant; set search_path='qp_funcs_in_subquery_constant', 'qp_funcs_in_contexts'; CREATE TABLE foo (a int, b int); INSERT INTO foo select i, i+1 from generate_series(1,10) i; ...
the_stack
SET ANSI_NULLS ON; GO SET QUOTED_IDENTIFIER ON; GO IF EXISTS (SELECT * FROM sys.fn_listextendedproperty(N'Description' , N'SCHEMA',N'dbo', N'PROCEDURE',N'sp_estindex', NULL,NULL)) BEGIN; EXEC sys.sp_dropextendedproperty @name=N'Description' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=...
the_stack
-- 31.03.2016 13:42 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Process SET JasperReport='@PREFIX@de/metas/reports/deckungsbeitrag_kurzversion_with_last_year/report.jasper',Updated=TO_TIMESTAMP('2016-03-31 13:42:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540643 ; -- ...
the_stack
-- 2017-04-18T18:08:16.091 -- URL zum Konzept INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,Name,Updated,UpdatedBy) VALUES (0,0,540174,TO_TIMESTAMP('2017-04-18 18:08:15','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','C_Order (PO) -> M_Inve...
the_stack
-- ---------------------------- -- Table structure for GDMS_DEV_MAIN -- ---------------------------- DROP TABLE "BING"."GDMS_DEV_MAIN"; CREATE TABLE "BING"."GDMS_DEV_MAIN" ( "ID" NUMBER NOT NULL , "STN_ID" NUMBER NULL , "COUNT" NUMBER NULL , "SN" VARCHAR2(50 BYTE) NULL , "STYLE_ID" NUMBER NULL , "PROJECT_ID" NUMBER NUL...
the_stack
library CMS9_CDS version '4.1.6' using FHIR version '1.6' include FHIRHelpers called FHIRHelpers codesystem "http://example.org/documentation-templates": 'http://example.org/documentation-templates' valueset "Feeding Intention-Breast": '2.16.840.1.113762.1.4.1045.29' valueset "Feeding Intention-Not-To-Breast": 'TBD...
the_stack
-- ---- chaeck partitionkey number for range partition -- --sucess create table test_range_pkn_1(a int, b int) partition by range(a, b) ( partition test_range_pkn_1_p1 values less than (1, 2), partition test_range_pkn_1_p2 values less than (2, 1) ); --fail create table test_range_pkn_2(a int, b int) partition by rang...
the_stack
-- 29.07.2016 13:54 -- 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_Process_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('R',0,540722,0,540710,TO_TIMESTAMP('2016-07-29...
the_stack
-- -- Copyright 2009 Inspire-Software.com -- -- 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 b...
the_stack
-- 15.09.2016 17:22 -- URL zum Konzept UPDATE AD_Field SET SeqNo=50, SeqNoGrid=50,Updated=TO_TIMESTAMP('2016-09-15 17:22:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4286 ; -- 15.09.2016 17:22 -- URL zum Konzept UPDATE AD_Field SET SeqNo=160, SeqNoGrid=160,Updated=TO_TIMESTAMP('2016-09-15 17:22:52','YY...
the_stack
-- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: webgoatphp -- ------------------------------------------------------ -- Server version 5.5.38-0ubuntu0.12.04.1 -- -- Table structure for table `app_user` -- CREATE TABLE `app_user` ( `Firstname` varchar(255) COLLAT...
the_stack
-- 2021-05-05T04:38:34.037Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table_Trl SET Name='Einstellungen für API Revision',Updated=TO_TIMESTAMP('2021-05-05 07:38:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Table_ID=541635 ; -- 2021-05-05T04:58:41.436Z --...
the_stack
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 31, 2017 at 02:02 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
the_stack
-- -- PLPGSQL -- -- Scenario: -- -- A building with a modern TP cable installation where any -- of the wall connectors can be used to plug in phones, -- ethernet interfaces or local office hubs. The backside -- of the wall connectors is wired to one of several patch- -- fields in the building. -- --...
the_stack
CREATE TABLE GATEWAY ( GATEWAY_ID VARCHAR(255), GATEWAY_NAME VARCHAR(255), DOMAIN VARCHAR(255), EMAIL_ADDRESS VARCHAR(255), GATEWAY_ACRONYM varchar(255), GATEWAY_ADMIN_EMAIL varchar(255), GATEWAY_ADMIN_FIRST_NAME varchar(255), GATEWAY_APPROVAL_STATUS varchar...
the_stack
explain (costs off) with recursive rq as ( select id, name from chinamap where id = 11 union select origin.id, rq.name || ' > ' || origin.name from rq join chinamap origin on origin.pid = rq.id ) select id, name from rq order by 1; with recursive rq as ( select id, name from chinamap where id = 1...
the_stack
-- Distributed snapshot tests -- Scenario1: Test to validate GetSnapshotData()'s computation of globalXmin using -- distributed snapshot. It mainly uses a old read-only transaction to help -- create situation where globalXmin can be lower than distributed oldestXmin -- when calling DistributedLog_AdvanceOldestXmin(). ...
the_stack
CREATE SCHEMA IF NOT EXISTS job_manage; USE job_manage; SET NAMES UTF8MB4; -- ---------------------------- -- Table structure for script -- ---------------------------- CREATE TABLE `script` ( `id` VARCHAR(32) NOT NULL, `row_create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMES...
the_stack
-- Oracle作数据源初始化脚本(首次执行需要注释掉DROP语句) DROP TABLE "K_CATEGORY"; DROP TABLE "K_JOB"; DROP TABLE "K_JOB_MONITOR"; DROP TABLE "K_JOB_RECORD"; DROP TABLE "K_QUARTZ"; DROP TABLE "K_REPOSITORY"; DROP TABLE "K_REPOSITORY_TYPE"; DROP TABLE "K_TRANS"; DROP TABLE "K_TRANS_MONITOR"; DROP TABLE "K_TRANS_RECORD"; DROP TABLE "K_USER";...
the_stack
set DateStyle to ISO, MDY; set TimeZone to 'UTC'; set IntervalStyle to postgres; set lc_monetary to 'en_US.UTF-8'; -- --- abstime -- --prepare create table test(a int , b abstime); --test abstimein explain (costs off, verbose on) select * from test where b < abstimein('12-25-2001'); --test abstimeout explain (costs of...
the_stack