text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
; /*!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
Known Issues & Limitations: - no support for the filtered Nonclustered Indexes - no support for Azure SQL Database Managed Instances - no support for the Azure SQL DataWarehouse - no support for the Azure SQL Elastic Pools - no support for Partition Sampling - no support for the In-Memory tables - mixing name...
the_stack
-- ----------------------------------------------------- -- Table `user` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `name` VARCHAR(64) NULL, `email` VARCHAR(64) NOT NULL, `phone` VARCHAR(64) NULL, `password` VARCHAR(64)...
the_stack
-- 2018-12-19T15:29:13.228 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table SET Help='This table allows to assign normal (a.k.a. "assignable") invoice candidates to candidates that reference a refund contract C_FlatrateTerm. The assignable candidates all match that respective term via t...
the_stack
CREATE TYPE compfoo AS (f1 int, f2 text); /*Verify type name*/ create type "01jfiejriouieraejijiosjoerqkjou含有中文字符feoajfoeuitoooeiajfofeoiwurouyy" AS (c1 int, c2 int); drop type "01jfiejriouieraejijiosjoerqkjou含有中文字符feoajfoeuitoooeiajfo"; create type pg_class as (a int); drop type public.pg_class; create table t_grou...
the_stack
; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!4001...
the_stack
-- -- MERGE INTO -- -- initial CREATE SCHEMA mergeinto_col_1; SET current_schema = mergeinto_col_1; CREATE TABLE products_base ( product_id INTEGER DEFAULT 0, product_name VARCHAR(60) DEFAULT 'null', category VARCHAR(60) DEFAULT 'unknown', total INTEGER DEFAULT '0' ); INSERT INTO products_base VALUES (1501, 'vivita...
the_stack
------------------ -- FIXEDDECIMAL -- ------------------ CREATE TYPE FIXEDDECIMAL; CREATE FUNCTION fixeddecimalin(cstring, oid, int4) RETURNS FIXEDDECIMAL AS 'babelfishpg_money', 'fixeddecimalin' LANGUAGE C IMMUTABLE STRICT; CREATE FUNCTION fixeddecimalout(fixeddecimal) RETURNS cstring AS 'babelfishpg_money', 'fixed...
the_stack
CREATE OR REPLACE PACKAGE json_ext AS /* Copyright (c) 2009 Jonas Krogsboell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ri...
the_stack
-- 代码生成表 CREATE TABLE [${_prefix}gen_table] ( [table_name] varchar(64) NOT NULL, [class_name] varchar(100) NOT NULL, [comments] nvarchar(500) NOT NULL, [parent_table_name] varchar(64), [parent_table_fk_name] varchar(64), [data_source_name] varchar(64), [tpl_category] varchar(200), [package_name] varch...
the_stack
-- 2017-08-31T11:28:05.609 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540830,540455,TO_TIMESTAMP('2017-08-31 11:28:05','YYYY-MM-DD HH24:MI:SS'),100,'Y...
the_stack
-- @@@ START COPYRIGHT @@@ -- -- 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...
the_stack
DROP TABLE IF EXISTS `blocker`; CREATE TABLE `blocker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` VARCHAR(20) NOT NULL, `capacity` int(11) NOT NULL, `load` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_blocker_IDX_LOAD` (`load`) ...
the_stack
INSERT INTO paises (nome) VALUES ('Brasil'), ('Argentina'), ('Estados Unidos'), ('Portugal'), ('França'), ('Espanha'), ('Russia'), ('Chile'), ('Paraguaio'), ('Uruguai'), ('Peru'), ('Venezuela'), ('Afeganistao'), ('África do Sul'), ('Albânia'), ('Alemanha'), ('Andorra'), ('Angola'), ('Antígua e Barbuda'), ('Arábia ...
the_stack
Known Issues & Limitations: - Custom non-standard (non-CU & non-SP) Versions are not targeted yet - Duplicate Fixes & Improvements (CU12 for SP1 & CU2 for SP2, for example) are not eliminated from the list yet */ /* Changes in 1.0.1 + Added drops for the existing temp tables: #SQLColumnstoreImprovements, #SQLBra...
the_stack
-- 2017-05-15T11:32:30.102 -- 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,543334,0,'AD_Window_Access_ID',TO_TIMESTAMP('2017-05-15 11:32:29','YYYY-M...
the_stack
-- 12.02.2017 13:42 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=10,Updated=TO_TIMESTAMP('2017-02-12 13:42:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=1000077 ; -- 12.02.2017 13:42 -- I forgot to set the DICTIONARY_ID_CO...
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 EXTENSION orioledb; -- Test for integer primary key CREATE TABLE o_pk1 ( key integer NOT NULL, payload text, PRIMARY KEY(key) ) USING orioledb; INSERT INTO o_pk1 (key, payload) SELECT i, '*' || i || repeat('*', i % 5) FROM generate_series(1, 60, 3) AS i; SELECT * FROM o_pk1; EXPLAIN (COSTS off) SELECT * F...
the_stack
/************************************************************* This migration adds primary keys to the existing tables **************************************************************/ EXEC dbo.LogSchemaMigrationProgress 'Beginning schema migration to version 25.'; GO -- SearchParam table -- Dropping clustered ind...
the_stack
-- 2021-01-22T17:12:00.761Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AD_Client_ID,IsActive,Created,CreatedBy,Updated,IsReport,IsDirectPrint,Name,AccessLevel,ShowHelp,IsBetaFunctionality,CopyFromProcess,UpdatedBy,AD_Process_ID,AllowProcessReRun,IsUseBPartnerLanguage,IsApp...
the_stack
/* japanese charsets: JIS212 */ /* ======================================================================= */ static sal_uInt16 const aImplUniToDBCSTab_JIS0212_00[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x2242, 0, 0, 0x2270, 0, 0x2243, 0, /* 0xA0 */ 0, 0x226D, 0...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for oauth_client_details -- ---------------------------- DROP TABLE IF EXISTS `oauth_client_details`; CREATE TABLE `oauth_client_details` ( `client_id` varchar(256) NOT NULL, `resource_ids` varchar(256) DEFAULT NULL, `client_secret` var...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for casbin_rule -- ---------------------------- DROP TABLE IF EXISTS `casbin_rule`; CREATE TABLE `casbin_rule` ( `ptype` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, `v0` varchar(1...
the_stack
-- 2017-09-14T16:48:49.576 -- 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,543419,0,'DateContracted',TO_TIMESTAMP('2017-09-14 16:48:49','YYYY-MM-DD ...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.4 (Debian 10.4-2.pgdg90+1) -- Dumped by pg_dump version 10.3 -- Started on 2018-06-02 15:54:02 UTC SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_s...
the_stack
-- 2021-02-03T01:57:57.339Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('c_remittanceadvice','I_IsImported','CHAR(1)',null,'N') ; -- 2021-02-03T01:57:57.369Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_RemittanceAdvice SET I_IsImpor...
the_stack
---------------------------------------------------------------------------------- -- Author: Eitan Blumin (t: @EitanBlumin | b: eitanblumin.com) -- Date: 26/06/18 -- Description: -- Outputs all the server level objects and definitions so that they can be compared against same definitions on another server. -- -...
the_stack
---- --- Create Table and Insert Data ---- create schema vector_agg_engine; set current_schema=vector_agg_engine; set time zone prc; set time zone prc; set datestyle to iso; \parallel on 5 create table vector_agg_engine.ROW_AGG_TABLE_01 ( col_smallint smallint null ,col_integer integer default 23423 ,col_bigi...
the_stack
-- -- Name: fk_add_loc_id__loc_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres81 -- ALTER TABLE ONLY addresses ADD CONSTRAINT fk_add_loc_id__loc_id FOREIGN KEY (location_id) REFERENCES locations(id); -- -- Name: fk_aff_doc_aff_id__aff_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres81 -- ALTER ...
the_stack
-- 2020-10-02T14:20:45.655Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET WidgetSize='S',Updated=TO_TIMESTAMP('2020-10-02 17:20:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=568709 ; -- 2020-10-02T14:21:30.669Z -- I forgot to set the DICTIONARY_ID_COMMEN...
the_stack
set timezone=UTC; -- Create test tables which will be used for table function testing DROP TABLE IF EXISTS t1 CASCADE; CREATE TABLE t1 (a int, b int, c int, d int, e text) DISTRIBUTED BY (a); INSERT INTO t1 SELECT i, i/3, i%2, 100-i, 'text'||i FROM generate_series(1,100) i; select count(*) from t1; DROP FUNCTION IF...
the_stack
-- 2018-10-30T14:18:10.100 -- 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,565649,0,'QtyPickedNotDelivered',TO_TIMESTAMP('2018-10-30 14:18:09','YYYY...
the_stack
DROP TABLE IF EXISTS `t_dl_audit_log`; CREATE TABLE `t_dl_audit_log` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` BIGINT(20) NOT NULL, `menu_code` VARCHAR(20) NOT NULL COMMENT '操作模块编码', `oper_type` VARCHAR(1) NOT NULL DEFAULT '' COMMENT '操作类型。1新增,2...
the_stack
-- 2017-07-09T09:09:50.606 -- 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,543380,0,'C_BP_Group_Acct_ID',TO_TIMESTAMP('2017-07-09 09:09:50','YYYY-MM...
the_stack
-- 08.01.2016 17:40 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,LockWaitTimeout,Name,RefreshAl...
the_stack
-- mappings -- objectClass mappings: these may be viewed as structuralObjectClass, the ones that are used to decide how to build an entry -- id a unique number identifying the objectClass -- name the name of the objectClass; it MUST match the name of an objectClass that is loaded in slapd's schema -- keytbl the na...
the_stack
---------------------------------------------------------------- -- [audit_log] Table -- CREATE OR REPLACE FUNCTION InsertAuditLog ( INOUT v_audit_log_id BIGINT, v_log_time TIMESTAMP WITH TIME ZONE, v_log_type INT, v_log_type_name VARCHAR(100), v_severity INT, v_message TEXT, v_user_id UUID,...
the_stack
DROP TABLE IF EXISTS `t_mini_account`; CREATE TABLE `t_mini_account` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id ', `user_id` varchar(28) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户id', `t...
the_stack
----------------------------------------------------------------------- -- Inserting a single row of data INSERT INTO Production.UnitMeasure VALUES (N'FT', N'Feet', '20080414'); --+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -- Inserting multiple rows of data INSERT INTO Production.UnitMeasu...
the_stack
-- 2020-02-11T20:54:24.794Z -- 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,IsDisplay...
the_stack
-- -- Table: BUCKETING_COLS -- CREATE TABLE "BUCKETING_COLS" ( "SD_ID" bigint NOT NULL, "BUCKET_COL_NAME" character varying(256) DEFAULT NULL, "INTEGER_IDX" bigint NOT NULL, PRIMARY KEY ("SD_ID", "INTEGER_IDX") ); CREATE INDEX "BUCKETING_COLS_N49" on "BUCKETING_COLS" ("SD_ID"); -- -- Table: COLUMNS -- CREATE T...
the_stack
-- 30.03.2016 12:04 -- 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,543058,0,'QtyPlanned_NextYear',TO_TIMESTAMP('2016-03-30 12:04:00','YYYY-MM-DD HH...
the_stack
-- Copyright (C) from 2009 to Present EPAM Systems. -- -- This file is part of Indigo toolkit. -- -- 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/LICE...
the_stack
DROP PROCEDURE IF EXISTS `WSO2_CONFIRMATION_CODE_CLEANUP`; DELIMITER $$ CREATE PROCEDURE `WSO2_CONFIRMATION_CODE_CLEANUP`() BEGIN -- ------------------------------------------ -- DECLARE VARIABLES -- ------------------------------------------ DECLARE batchSize INT; DECLARE chunkSize INT; DECLARE sleepTime FLOAT; DEC...
the_stack
-- **************************************************************************** -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, n...
the_stack
-- 2017-10-20T12:31:11.229 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET InternalName='_Kommissionierung_Abschluss', Name='Kommissionierung Abschluss',Updated=TO_TIMESTAMP('2017-10-20 12:31:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540371 ; -- 2017-10-20T12:...
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
* Required PAGE SIZE = 16384 to avoid error: "key size exceeds * implementation restriction for index..." */ -- Table: releases CREATE TABLE releases ( version FLOAT NOT NULL PRIMARY KEY, installed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, installer_name VARCHAR(255) NOT ...
the_stack
-- 2018-03-17T10:26:38.803 -- 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) VAL...
the_stack
DROP FUNCTION IF EXISTS shipmentDispositionExcelDownload(TIMESTAMP With Time Zone, numeric); CREATE OR REPLACE FUNCTION shipmentDispositionExcelDownload( IN M_ShipmentSchedule_Deliverydate TIMESTAMP With Time Zone, IN M_BPartner_ID numeric ) RETURNS TABLE ( PreparationDate_Effe...
the_stack
CREATE OR REPLACE PACKAGE json_parser AS /* Copyright (c) 2010 Jonas Krogsboell Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
the_stack
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default'); -- TABLE: entries CREATE TABLE IF NOT EXISTS `bx_snipcart_entries` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `author` int(10) unsigned NOT NULL, `added` int(11) NOT NULL, `changed` int(11) NOT NULL, `thumb...
the_stack
-------------------------------------------------------------------------------------- -- locality boundaries -------------------------------------------------------------------------------------- DROP TABLE IF EXISTS admin_bdys.locality_bdys CASCADE; CREATE TABLE admin_bdys.locality_bdys( gid SERIAL NOT NULL, loc...
the_stack
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'SQL_ASCII'; 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; SE...
the_stack
-- -- Table: build -- CREATE TABLE "build" ( "id" serial NOT NULL, "siteid" bigint DEFAULT '0' NOT NULL, "projectid" bigint DEFAULT '0' NOT NULL, "parentid" bigint DEFAULT '0' NOT NULL, "stamp" character varying(255) DEFAULT '' NOT NULL, "name" character varying(255) DEFAULT '' NOT NULL, "type" character ...
the_stack
-- -- hardcoded example pipeline for the dots-pushdown-uniform dataset -- (much of this will be generated at runtime by PsqlNativeBoxIndexer) -- -- after loading dots-pushdown-uniform (it should error at the indexing phase) -- run this SQL by hand with kyrix-psql < hardcoded_kyrix_index_pipeline.sql -- CREATE OR R...
the_stack
-- 2017-10-04T11:56:02.670 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET SortNo=1.000000000000,Updated=TO_TIMESTAMP('2017-10-04 11:56:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2145 ; -- 2017-10-04T11:56:05.046 -- I forgot to set the DICTIONARY_ID_COMMENTS Syst...
the_stack
SET client_min_messages TO WARNING; -- Make this script a little more quiet DROP EXTENSION IF EXISTS pgcrypto CASCADE; DROP SCHEMA IF EXISTS app CASCADE; DROP SCHEMA IF EXISTS trg CASCADE; DROP TABLE IF EXISTS cohort_enum CASCADE; DROP TABLE IF EXISTS stage_enum CASCADE; DROP TABLE IF EXISTS milestone_enum CASCADE; DR...
the_stack
-- 2019-02-27T10:58:07.864 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2019-02-27 10:58:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=556302 ; -- 2019-02-27T10:58:08.959 -- I forgot to set the DICTIONARY_ID_COMMENT...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_menu -- ---------------------------- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu` ( `menu_id` bigint(20) NOT NULL AUTO_INCREMENT, `parent_id` bigint(20) DEFAULT NULL COMMENT '父菜单ID,一级菜单为0', `nam...
the_stack
-- -- DDL for creating a single PK for AD_PInstance_Para -- -- 26.10.2016 21:39 -- URL zum Konzept ALTER TABLE AD_PInstance_Para ADD COLUMN AD_PInstance_Para_ID numeric(10,0) NOT NULL DEFAULT nextval('ad_pinstance_para_seq') ; -- 26.10.2016 21:40 -- URL zum Konzept ALTER TABLE AD_PInstance_Para DROP CONSTRAINT IF EXIS...
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` ( `DeptId` bigint(20) NOT NULL, `DeptNo` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,...
the_stack
-- ---------------------------- -- Table structure for menu -- ---------------------------- CREATE TABLE IF NOT EXISTS `SYS_MENU` ( `ID` VARCHAR(40) PRIMARY KEY NOT NULL, `CRT_DTTM` DATETIME NOT NULL COMMENT 'Create date time', `CRT_USER` VARCHAR(255) NOT NULL COMMENT 'Create user', `ENABLE_FLAG` BIT N...
the_stack
-- 2017-04-29T18:59:18.786 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,Seq...
the_stack
-- 2017-05-31T16:07:26.940 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET IsDisplayedGrid='N', SeqNoGrid=0,Updated=TO_TIMESTAMP('2017-05-31 16:07:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=541595 ; -- 2017-05-31T16:07:26.949 -- I forgot to set the DICT...
the_stack
-- This database using in exercise type: hospital -- -- remove database hospital if exists & create new database -- DROP DATABASE IF EXISTS `hospital`; CREATE DATABASE `hospital` CHARACTER SET utf8 COLLATE utf8_general_ci; USE `hospital`; -- ---------------------------------------------------------------------------...
the_stack
-- 2017-08-15T16:24:03.819 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_ElementGroup SET SeqNo=30,Updated=TO_TIMESTAMP('2017-08-15 16:24:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_ElementGroup_ID=540159 ; -- 2017-08-15T16:24:20.097 -- I forgot to set the DICTIONARY_ID_COMM...
the_stack
-- 2021-06-10T13:11:55.556Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_User SET AD_Language='en_US',Updated=TO_TIMESTAMP('2021-06-10 16:11:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_User_ID=100 ; -- 2021-06-10T13:12:24.964Z -- I forgot to set the DICTIONARY_ID_COMMENTS System ...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.5 -- Dumped by pg_dump version 9.6.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; SET check_function_bodies = false; SET client_min...
the_stack
-- Author: Eitan Blumin | https://www.eitanblumin.com -- Date: 2020-02-26 -- Last Update: 2020-10-09 -- Description: Collect T-SQL Events using an Extended Events Buffer SET NOCOUNT ON; DECLARE @SourceLinkedServer SYSNAME , @MinimumDurationMilliSeconds BIGINT , @CaptureAllTimeoutsOrAborts BIT , @BufferMaxMemoryMB I...
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
SET FOREIGN_KEY_CHECKS=0; # Config: UPDATE `config` SET `path`='rooms/world/onlyWalkable' WHERE `path`='rooms/world/onlyWalkeable'; UPDATE `config` SET path = 'ui/playerBox/enabled' WHERE path = 'ui/playerName/enabled' LIMIT 1; UPDATE `config` SET path = 'ui/playerBox/responsiveX' WHERE path = 'ui/playerName/responsive...
the_stack
-- 2017-10-10T15:13:44.036 -- 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,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,S...
the_stack
--create temporary table with new replacement relationships DROP TABLE IF EXISTS rxe_dupl; CREATE TABLE rxe_dupl AS SELECT concept_id_1, c1.vocabulary_id AS vocabulary_id_1, 'Concept replaced by'::VARCHAR AS relationship_id, concept_id_2 FROM ( SELECT first_value(c.concept_id) OVER ( PARTITION BY lower(c.concept...
the_stack
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 13, 2020 at 04:26 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
the_stack
-- 2017-11-24T18:15:24.045 -- 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,543485,0,'ShortDescription',TO_TIMESTAMP('2017-11-24 18:15:23','YYYY-MM-D...
the_stack
-- -- XC_MISC -- -- A function to return a unified data node name given a node identifer create or replace function get_unified_node_name(node_ident int) returns varchar language plpgsql as $$ declare r pgxc_node%rowtype; node int; nodenames_query varchar; begin nodenames_query := 'SELECT * FROM pgxc_node WHERE ...
the_stack
-- 流水日志 CREATE DATABASE IF NOT EXISTS bkdata_log; USE bkdata_log; SET NAMES utf8; CREATE TABLE IF NOT EXISTS db_operate_log ( id INTEGER NOT NULL AUTO_INCREMENT comment '自增ID', method ENUM('QUERY', 'CREATE', 'UPDATE', 'DELETE') NOT NULL comment '操作方式...
the_stack
-- 28.01.2017 17:57 -- 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,294,540040,TO_TIMESTAMP('2017-01-28 17:57:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','main',10...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- Create Database -- ---------------------------- CREATE DATABASE IF NOT EXISTS `clause` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `clause`; drop table if exists cl_bot_sysdict; FLUSH TABLES cl_bot_sysdict; drop table if exists cl_chat_msgs; FLUSH TABLES cl...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.13 -- Dumped by pg_dump version 9.5.12 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
--use the database RREDemoSql use sqlr; go drop procedure if exists get_CDNOW_RFM go --create stored procedure to get RFM create proc get_CDNOW_RFM (@start datetime = '1900-1-1', @end datetime = '3000-1-1', @now datetime = null) as begin if @now is null set @now = getdate() select ID, DATEDIFF(d,R,@now) as R...
the_stack
-- HL7 forms are used for xform submission DELETE FROM hl7_in_archive; DELETE FROM hl7_in_error; DELETE FROM hl7_in_queue; -- Remove all encounters/observations DELETE FROM active_list_allergy; -- refers to concept DELETE FROM active_list_problem; DELETE FROM active_list; -- refers to person, obs, and users DELETE FRO...
the_stack
ALTER TABLE setting ADD COLUMN value TEXT; ALTER TABLE setting ADD COLUMN default_value TEXT; /* Move all settings to the new columns. Also JSON stringify them */ UPDATE setting SET value = '"' || (SELECT REPLACE(string_value, '\', '\\') FROM setting WHERE key = 'default_save_path') || '"', default_value = '"'...
the_stack
-- 26.10.2016 11:53 -- URL zum Konzept INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,IsUseBPartner...
the_stack
/* set echo; */ /* * Define domains. */ CREATE DOMAIN firstname AS VARCHAR(15) COLLATE FR_FR; CREATE DOMAIN lastname AS VARCHAR(25) COLLATE FR_FR; CREATE DOMAIN phonenumber AS VARCHAR(20); CREATE DOMAIN countryname AS VARCHAR(15); CREATE DOMAIN addressline AS VARCHAR(40); CREATE DOMAIN empno ...
the_stack
-- -- Tests for SYNONYMS -- CREATE SCHEMA syn_test; CREATE SCHEMA pablic; grant all on schema pablic to public; SET CURRENT_SCHEMA = syn_test; -- 0. Precondition, create referenced objects including table, view, funciton and procedure. CREATE SCHEMA syn_ot; CREATE TABLE syn_ot.t1_row(c1 int, c2 int); CREATE TABLE syn...
the_stack
insert into a.no_primary_key (id, str) values (1, 'one'), (2, 'two'), (3, 'three'); insert into c.person (id, person_full_name, email, about, config, last_login_from_ip, last_login_from_subnet, user_mac, created_at) values (1, 'John Smith', 'john.smith@email.com', null, '', '192.168.0.1', '192.168.0.0/24', '00...
the_stack
-- PREVIEW TABLE -- preview first 10 rows with all fields, quick way to verify everything is setup correctly SELECT * from cloudtrail LIMIT 10; -- PARTITION TESTS /* NOTE: if there are no constraints a partition (account, region, or date) then by default ALL data will be scanned this could lead to costl...
the_stack
library ListOperator version '1' context Unfiltered //Contains define ContainsABNullHasNull: { 'a', 'b', null } contains null define ContainsABCHasA: { 'a', 'b', 'c' } contains 'a' define ContainsJan2012True: { DateTime(2012, 10, 5), DateTime(2012, 9, 5), DateTime(2012, 1, 1) } contains DateTime(2012, 1, 1) define Co...
the_stack
--Revision of Type and Condition Status concepts [AVOF-2568] --add new vocabulary='OMOP Type Concept' DO $_$ BEGIN PERFORM VOCABULARY_PACK.AddNewVocabulary( pVocabulary_id => 'Type Concept', pVocabulary_name => 'OMOP Type Concept', pVocabulary_reference => 'OMOP generated', pVocabulary_version => NULL, pOMOP_...
the_stack
-- 2018-05-01T11:01:18.474 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,304,117,53005,TO_TIMES...
the_stack
-------------------------------------------------------------------- -------------------test rownum pseudocolumn ------------------------ -------------------------------------------------------------------- -- ROWNUM can not be used as alias select oid rownum from pg_class; select oid as rownum from pg_class; --------...
the_stack
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2016-08-29 09:19:31 -- 服务器版本: 5.5.38-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
the_stack
-- only works for metavision as carevue does not accurately document antibiotics DROP MATERIALIZED VIEW IF EXISTS SUSPINFECT_MV CASCADE; CREATE MATERIALIZED VIEW SUSPINFECT_MV as with ab as ( select di.*, linksto , case when lower(label) like '%' || lower('adoxa') || '%' then 1 when lower(label) l...
the_stack
-- 20120421_Performance_Enhancements.sql IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[BugNet_IssueMilestoneCountView]')) DROP VIEW [dbo].[BugNet_IssueMilestoneCountView] GO IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[BugNet_UserView]')) DROP VIEW [dbo].[BugNet_UserView] GO...
the_stack
TRUNCATE TABLE relationship_to_concept; INSERT INTO relationship_to_concept --Measurement Units SELECT DISTINCT concept_code AS CONCEPT_CODE_1, 'GGR' AS VOCABULARY_ID_1, concept_ID AS CONCEPT_ID_2, 1 AS PRECEDENCE, coalesce(CONVERSION_FACTOR, 1) AS CONVERSION_FACTOR FROM tomap_unit; INSERT INTO relationship_to_con...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for admin -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `admin_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) DEFAULT NULL, `password` varchar(20) DEFAULT NULL, UNIQUE KEY `admin_id`...
the_stack
create schema col_subplan_new; set search_path=col_subplan_new; --subplan with more expr create table web_site ( web_site_sk integer not null, web_site_id char(16) not null, web_rec_start_date date , web_rec_end_date...
the_stack