text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 22, 2012 at 03:11 PM -- Server version: 5.1.65-community-log -- PHP Version: 5.3.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
the_stack
-- 2019-10-18T15:38:44.433Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET DisplayLogic='@OrderType/X@=ON | @OrderType/X@=OB',Updated=TO_TIMESTAMP('2019-10-18 17:38:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=547120 ; -- 2019-10-18T15:38:50.398Z -- I forgot to se...
the_stack
/* korean charsets: */ /* JOHAB */ /* ======================================================================= */ static sal_uInt16 const aImplDBCSToUniTab_JOHAB_84[] = { /* 0 1 2 3 4 5 6 7 */ /* 8 9 A B C D E F */ 0x3133, 0, 0x3135, 0x3136, /* 0x40 */ 0, 0, 0x313A, 0x31...
the_stack
-- -- Name: idx_addresses_1; Type: INDEX; Schema: public; Owner: postgres81; Tablespace: -- CREATE INDEX idx_addresses_1 ON addresses USING lsm (locality); -- -- Name: idx_addresses_2; Type: INDEX; Schema: public; Owner: postgres81; Tablespace: -- CREATE INDEX idx_addresses_2 ON addresses USING lsm (region); --...
the_stack
-- Copyright 2013 The Kyua Authors. -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of conditio...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for mq_message -- ---------------------------- DROP TABLE IF EXISTS `mq_message`; CREATE TABLE `mq_message` ( `message_id` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `content` text CHARACTER ...
the_stack
-- 2020-01-04T11:04:54.819Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstance...
the_stack
-- 2017-06-07T13:25:50.433 -- URL zum Konzept UPDATE AD_Window_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-06-07 13:25:50','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Outbound Documents' WHERE AD_Window_ID=540170 AND AD_Language='en_US' ; -- 2017-06-07T13:26:16.002 -- URL zum Konzept UPDATE AD_Tab_Trl SET Upd...
the_stack
-- Create Database -- ---------------------------------------------------------- CREATE DATABASE IF NOT EXISTS moss DEFAULT CHARACTER SET = utf8mb4; Use moss; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `t_app` -- ---------------------------- DROP TABLE IF EXIS...
the_stack
-- SETTINGS SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules'); INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('modules', 'bx_posts', '_bx_posts', 'bx_posts@modules/boonex/posts/|std-icon.svg', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1)); ...
the_stack
create or replace package body test_suite_manager is ex_obj_doesnt_exist exception; pragma exception_init(ex_obj_doesnt_exist, -04043); procedure create_dummy_long_test_package is begin ut3_tester_helper.run_helper.create_dummy_long_test_package(); end; procedure drop_dummy_long_test_package is beg...
the_stack
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: goods_service -- ------------------------------------------------------ -- Server version 5.7.24-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
the_stack
--验证postgis的analyze信息能否使用成功 set current_schema=postgis; SELECT count(1) from geom_polygon as p1 join geom_line as p2 ON ST_INTERSECTS(p1.the_geom, p2.the_geom) where p1.id<1000; /* ############################################################################### # TESTCASE NAME : postgis_accessors.sql # COMPONENT(S) : ...
the_stack
-- 2020-05-11T09:35:45.134Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Dienstleister für Rechnungsbearbeitung', PrintName='Dienstleister für Rechnungsbearbeitung',Updated=TO_TIMESTAMP('2020-05-11 12:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WH...
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
USE master; GO IF OBJECT_ID('dbo.sqlg_ParseDiskskpXml') IS NULL EXECUTE sp_executesql N'CREATE PROCEDURE dbo.sqlg_ParseDiskskpXml AS RETURN'; GO SET ANSI_NULLS ON; GO SET QUOTED_IDENTIFIER ON; GO -- ============================================= -- Author: Raul Gonzalez @SQLDoubleG -- Create date: 26/02/2017 -- Des...
the_stack
-- 2020-04-16T13:55:54.036Z -- URL zum Konzept UPDATE AD_Process_Para SET IsActive='N',Updated=TO_TIMESTAMP('2020-04-16 15:55:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=540907 ; -- 2020-04-16T13:55:56.802Z -- URL zum Konzept UPDATE AD_Process_Para SET IsActive='N',Updated=TO_TIMESTAMP('2020-04...
the_stack
-- SETTINGS SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules'); INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES ('modules', 'bx_posts', '_bx_posts', 'bx_posts@modules/boonex/posts/|std-mi.png', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1)); SE...
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
CREATE VIEW basedosdados-dev.br_ibge_censo_demografico.setor_censitario_entorno_2010 AS SELECT SAFE_CAST(id_setor_censitario AS STRING) id_setor_censitario, SAFE_CAST(sigla_uf AS STRING) sigla_uf, SAFE_CAST(v001 AS INT64) v001, SAFE_CAST(v002 AS INT64) v002, SAFE_CAST(v003 AS INT64) v003, SAFE_CAST(v004 AS INT64) v004...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 21c -- -- Classification - Naïve Bayes Algorithm - dmnbdemo.sql -- -- Copyright (c) 2021 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Version 1.0 -...
the_stack
create table ACT_RU_INCIDENT ( ID_ nvarchar(64) not null, INCIDENT_TIMESTAMP_ datetime2 not null, INCIDENT_MSG_ nvarchar(4000), INCIDENT_TYPE_ nvarchar(255) not null, EXECUTION_ID_ nvarchar(64), ACTIVITY_ID_ nvarchar(255), PROC_INST_ID_ nvarchar(64), PROC_DEF_ID_ nvarchar(64), CAUSE_INCIDENT_ID_ nvarc...
the_stack
-- 02.03.2016 11:08:36 OEZ -- 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,543023,0,'LastProcessed_WorkPackage_ID',TO_TIMESTAMP('2016-03-02 11:08:36...
the_stack
SET XACT_ABORT ON BEGIN TRANSACTION /************************************************************* Partition Sequence Create sequence for partition key, with default value 1 reserved. **************************************************************/ IF NOT EXISTS ( SELECT * FROM sys.sequences WHERE Name...
the_stack
DROP FUNCTION IF EXISTS update_trl_tables_on_ad_element_trl_update(numeric, character varying); DROP FUNCTION IF EXISTS update_Menu_Translation_From_AD_Element(numeric); -- old DROP FUNCTION IF EXISTS update_Menu_Translation_From_AD_Element(numeric, character varying); DROP FUNCTION IF EXISTS update_Tab_Translation_F...
the_stack
-- 26.01.2016 12:34 -- 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,542949,0,'Salesgroup',TO_TIMESTAMP('2016-01-26 12:34:43','YYYY-MM-DD HH24:MI:SS'...
the_stack
----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not...
the_stack
SET NAMES utf8 COLLATE 'utf8_unicode_ci'; SET foreign_key_checks = 1; SET time_zone = '+00:00'; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET storage_engine = InnoDB; SET CHARACTER SET utf8; /* ***************************************************************************** // Remove old database // ***********************...
the_stack
-- 2017-05-22T14:05:41.010 -- URL zum Konzept INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543346,0,'ReturnFromCustomer',TO_TIMESTAMP('2017-05-22 14:05:40','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.handlingunits','...
the_stack
---RETURN--- SET CHECK_FUNCTION_BODIES TO ON; --default return out arg. not supported in A db CREATE OR REPLACE FUNCTION test_return( i in integer, j out integer) RETURN integer AS BEGIN j:=i+1; RETURN; END; / SELECT test_return(1); declare a int := 1; b int; begin test_return(a, b); end; / declare a int...
the_stack
LOAD 'age'; SET search_path TO ag_catalog; SELECT create_graph('cypher_delete'); --Test 1: Delete Vertices SELECT * FROM cypher('cypher_delete', $$CREATE (:v)$$) AS (a agtype); SELECT * FROM cypher('cypher_delete', $$CREATE (:v {i: 0, j: 5, a: 0})$$) AS (a agtype); SELECT * FROM cypher('cypher_delete', $$CREATE (:v {...
the_stack
-- remove Production window DELETE FROM AD_Menu WHERE ad_window_id=191; -- 2018-02-21T15:25:53.332 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Window_Trl WHERE AD_Window_ID=191 ; -- 2018-02-21T15:25:53.336 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE F...
the_stack
-- $Id: biosqldb-pg.sql,v 1.5 2008-09-26 12:31:42 peterc Exp $ -- -- Copyright 2002-2003 Ewan Birney, Elia Stupka, Chris Mungall -- Copyright 2003-2008 Hilmar Lapp -- -- This file is part of BioSQL. -- -- BioSQL is free software: you can redistribute it and/or modify it -- under the terms of the GNU Lesser Genera...
the_stack
-- ---- test partitioned index -- drop table if exists hw_partition_index_rp; create table hw_partition_index_rp ( c1 int, c2 int ) partition by range (c1) ( partition hw_partition_index_rp_p0 values less than (50), partition hw_partition_index_rp_p1 values less than (100), partition hw_partition_index_rp_p2 valu...
the_stack
-- 2020-02-26T07:16:41.208Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_TreeNodeMM SET Parent_ID=1000015, SeqNo=0, Updated=now(), UpdatedBy=100 WHERE Node_ID=540905 AND AD_Tree_ID=10 ; -- 2020-02-26T07:16:41.211Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE ...
the_stack
CREATE TYPE inventoryItem AS ( item_id integer, ammount integer ); CREATE TABLE public.inventories ( owner_id integer PRIMARY KEY REFERENCES users(id), items inventoryItem[] DEFAULT ARRAY[ /* characters */ (1005, 1), (1006, 1), (1007, 1), (1008, 1), (1009, 1), (1010, 1), (1011, 1), (1012, 1), ...
the_stack
-- 2019-08-20T12:10:16.183Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,541029,TO_TIMESTAMP('2019-08-20 15:10:15','YYYY-MM-DD HH2...
the_stack
-- ============================================= -- Create date: <2014/4/18> -- Description: 非域环境镜像自动生成模板 --环境:非域环境 -- ============================================= DECLARE @DBName NVARCHAR(255) DECLARE @masterip NVARCHAR(255) DECLARE @mirrorip NVARCHAR(255) DECLARE @witness NVARCHAR(255) DECLARE @masteriptail NVA...
the_stack
-- ---------------------------- -- Table structure for Base_Action -- ---------------------------- CREATE TABLE "Base_Action" ( "Id" VARCHAR2(50 CHAR) NOT NULL , "CreateTime" DATE NOT NULL , "CreatorId" VARCHAR2(50 CHAR) NULL , "Deleted" NUMBER(1) DEFAULT 0 NOT NULL , "ParentId" NVARCHAR2(50) NULL , "Type" NUMBER(11) ...
the_stack
-- -- XDBPM_XMLSCHEMA_UTILITIES should be created under XDBPM -- alter session set current_schema = XDBPM / -- set define on -- create or replace package XDBPM_XMLSCHEMA_UTILITIES authid CURRENT_USER as TYPE DOCUMENT_INFO_T is RECORD ( PATH VARCHAR2(1024), ELEMENT V...
the_stack
-- One to Many insert into `user` (`firstname`,`lastname`,`created_at`,`updated_at`) VALUES ('Jeff','Cox','2014-01-10 22:17:13','2014-01-10 22:17:13'); insert into `user` (`firstname`,`lastname`,`created_at`,`updated_at`) VALUES ('Ann','Hart','2014-01-15 14:57:00','2014-01-15 14:57:00'); insert into `user` (`firstname...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 20c -- -- Singular Value Decomposition Demo - dmsvddemo.sql -- -- Copyright (c) 2020 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UPL), Version 1.0 -- --...
the_stack
set optimizer_print_missing_stats = off; -- MPP-23647 Create a partitioned appendonly table, let its age -- increase during the test. We will vacuum it at the end of the -- test. create table ao_age_test (i int, b bool, c char, d date) with (appendonly=true) distributed by (i) partition by list (b) (partition b1 value...
the_stack
USE [master] GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_RestoreGene') EXEC ('CREATE PROC dbo.sp_RestoreGene AS SELECT 1') GO /********************************************************************************************* Restore Generator v4.3 (2014-10-03) (C) 2012, P...
the_stack
-- phpMyAdmin SQL Dump -- version 4.4.13.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 07, 2016 at 02:08 PM -- Server version: 5.6.27-0ubuntu1 -- PHP Version: 5.6.11-1ubuntu3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
the_stack
-- 2019-10-13T11:06:24.479Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ColumnSQL='(select PackagingCode from M_HU_PackagingCode c where c.M_HU_PackagingCode_ID=M_HU_PackagingCode_LU_ID)', IsUpdateable='N',Updated=TO_TIMESTAMP('2019-10-13 13:06:24','YYYY-MM-DD HH24:MI:SS'),Upd...
the_stack
DROP TABLE IF EXISTS dec13; CREATE TABLE dec13 ( program text NOT NULL ); \COPY dec13 (program) FROM PROGRAM 'curl -b session.cookie https://adventofcode.com/2019/day/13/input'; VACUUM ANALYZE dec13; /* * These queries work but they're kind of slow due to all the rows that are * generated as we execute the code...
the_stack
-- 03.09.2015 15:08 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Ref_Table SET WhereClause=' EXISTS ( SELECT 1 FROM C_Invoice i INNER JOIN C_InvoiceLine il ON i.C_Invoice_ID = il.C_Invoice_ID INNER JOIN C_Invoice_Line_Alloc ila ON il.C_InvoiceLine_ID = ila.C_InvoiceLine_ID ...
the_stack
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 10.0.21-MariaDB - mariadb.org binary distribution -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.4.0.5125 -- -------------------------------------------...
the_stack
------------------------------------------------------------------------------------------ --Choose database to use ------------------------------------------------------------------------------------------ use telcoedw go ------------------------------------------------------------------------------------------ --Vie...
the_stack
CREATE OR REPLACE PACKAGE BODY COP_COREENGINE AS c_STATE_ENQUEUED CONSTANT NUMBER(1) := 0; c_STATE_WAITING CONSTANT NUMBER(1) := 2; c_STATE_FINISHED CONSTANT NUMBER(1) := 3; c_STATE_INVALID CONSTANT NUMBER(1) := 4; c_STATE_ERROR CONSTANT NUMBER(1) := 5; PROCEDURE enqueue(i_MAX IN NUMBER, o_ROWCOUNT OUT NUMBER) I...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for blog -- ---------------------------- DROP TABLE IF EXISTS `blog`; CREATE TABLE `blog` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `content` mediumtext NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_IN...
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
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE history_period_bak ( pk VARCHAR(32), dt_begin DATE NOT NULL, dt_end DATE NOT NULL ); CREATE TABLE frame_history ( pk_frame_history VARCHAR(36) DEFAULT uuid_generate_v1() NOT NULL, pk_frame VARCHAR(36) NOT NULL, pk_layer VARCHAR(36) NOT N...
the_stack
-- 2021-02-02T13:14:13.879Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID, AD_Column_ID, AD_Element_ID, AD_Org_ID, AD_Reference_ID, AD_Table_ID, ColumnName, ColumnSQL, Created, CreatedBy, DDL_NoForeignKey, EntityType, FacetFilterSeqNo, Field...
the_stack
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 ng2 with (datanode7...
the_stack
-- 数据的准备 -- 创建一个数据库 CREATE DATABASE python_24_1 charset=utf8; -- 使用一个数据库 USE python_24_1; -- 显示使用的当前数据库是哪个? SELECT DATABASE(); -- 查询当前mysql系统中所有的数据库 show DATABASES; -- 创建students表 -- 字段有id,name,age,height,gender,cls_id,is_delete create table students( id int unsig...
the_stack
-- 13.03.2017 17:54:56 -- 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,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAllowLoggi...
the_stack
-- -- CREATE FUNCTION -- -- Assorted tests using SQL-language functions -- -- All objects made in this test are in temp_func_test schema CREATE USER regress_unpriv_user; CREATE SCHEMA temp_func_test; GRANT ALL ON SCHEMA temp_func_test TO public; SET search_path TO temp_func_test, public; -- -- Make sanity checks o...
the_stack
-- Script to migrate Q Capture control tables from V8.2 to V9.1. -- -- Prior to running this script, customize it to your existing -- Q Capture server environment: -- (1) Locate and change all occurrences of the string !capschema! -- to the name of the Q Capture schema applicable to your -- environment -- -- ...
the_stack
Expression Type: T_Var, T_Const, T_Param, T_Aggref, T_WindowFunc, T_ArrayRef, T_FuncExpr, T_NamedArgExpr, T_OpExpr, T_DistinctExpr, T_NullIfExpr, T_ScalarArrayOpExpr, T_BoolExpr, T_SubLink, T_SubPlan, T_AlternativeSubPlan, T_FieldSelect, T_FieldStore, T_RelabelType, T_CoerceViaIO, T_ArrayCoerceExpr...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for qrtz_blob_triggers -- ---------------------------- DROP TABLE IF EXISTS `qrtz_blob_triggers`; CREATE TABLE `qrtz_blob_triggers` ( `SCHED_NAME` varchar(120) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `TR...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for buy_log -- ---------------------------- DROP TABLE IF EXISTS `buy_log`; CREATE TABLE `buy_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `spending` int(11) NULL DEFAULT NULL, `sys_modify_log_id` char...
the_stack
CREATE OR REPLACE FUNCTION public.get_office_cmte_tp (p_office varchar, p_cmte_tp varchar) RETURNS varchar AS $BODY$ begin return coalesce(p_office, (case when upper(p_cmte_tp) in ('S','H', 'P') then upper(p_cmte_tp) else null end)); end $BODY$ LANGUAGE plpgsql VOLATILE COST 100; ...
the_stack
-- 01.02.2017 16:48 -- 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,540430,540048,TO_TIMESTAMP('2017-02-01 16:48:05','YYYY-MM-DD HH24:MI:SS'),100,'Y','main'...
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
----------------------------- shops ----------------------------- CREATE TABLE `t_account_center` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'id', `create_time` datetime DEFAULT NULL COMMENT '创建时间', `is_delete...
the_stack
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: saltshaker -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
the_stack
-- 2021-06-11T10:04:54.697Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ReadOnlyLogic='@M_AttributeSetInstance_ID/-1@ > 0',Updated=TO_TIMESTAMP('2021-06-11 13:04:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8417 ; -- 2021-06-11T10:12:39.303Z -- I forgot to se...
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
-- Generated by CompileSchemaScripts.pl from: -- 20150209-extend-aliases-to-more-entities-standalone.sql -- 20150307-other-entities-collections-fks.sql -- 20150317-drop-event-name-constraint.sql -- 20150331-relationship-credits-standalone.sql \set ON_ERROR_STOP 1 BEGIN; -------------------------------------------------...
the_stack
USE bkdata_flow; SET NAMES utf8; CREATE TABLE IF not EXISTS `bksql_function_config_v3` ( `func_name` varchar(255) NOT NULL COMMENT '函数名称', `func_alias` varchar(255) NOT NULL COMMENT '函数中文名', `func_group` ENUM('Mathematical Function','String Function','Conditional Function','Aggregate Function','Other Function') C...
the_stack
-- 2019-10-15T14:21:10.699Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE C_DocType SET DocBaseType='CMB',Updated=TO_TIMESTAMP('2019-10-15 17:21:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=1000021 ; -- 2019-10-16T13:06:06.759Z -- I forgot to set the DICTIONARY_ID_COMMENTS...
the_stack
-- ======================================== 测试库(仅做测试使用) ==================================== -- 公告表 (演示点: 单表生成) drop table if exists sys_notice; CREATE TABLE `sys_notice` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录id [num no-add]', `title` varchar(50) DEFAULT NULL COMMENT '公告标题 [text]', `content` lo...
the_stack
SET NUMERIC_ROUNDABORT OFF GO SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON GO IF EXISTS (SELECT * FROM tempdb..sysobjects WHERE id=OBJECT_ID('tempdb..#tmpErrors')) DROP TABLE #tmpErrors GO CREATE TABLE #tmpErrors (Error int) GO SET XACT_ABORT ON GO SET TRANSACTI...
the_stack
-- 2017-11-22T16:07:14.016 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543481,0,'Pharmaproductpermlaw52',TO_TIMESTAMP('2017-11-22 16...
the_stack
-- -- Test partitioning planner code -- CREATE TABLE lp ( a char ) PARTITION BY LIST (a); CREATE TABLE lp_default PARTITION OF lp DEFAULT; CREATE TABLE lp_ef PARTITION OF lp FOR VALUES IN ('e', 'f'); CREATE TABLE lp_ad PARTITION OF lp FOR VALUES IN ('a', 'd'); CREATE TABLE lp_bc PARTITION OF lp FOR VALUES IN ('...
the_stack
-- 2018-06-18T09:07:23.499 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,BeforeChangeCodeType,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540442,0,540649,'',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
-- 1 "sql/babelfishpg_tsql.in" -- 1 "<built-in>" -- 1 "<command-line>" -- 1 "sql/babelfishpg_tsql.in" SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false); -- 1 "sql/datatype.sql" 1 -- Types with different default typmod behavior SET enable_domain_typmod = TRUE; CREATE DOMAIN sys.CURSO...
the_stack
-- -- JOIN -- Test JOIN clauses -- drop table J1_TBL; drop foreign table J2_TBL; CREATE TABLE J1_TBL ( i integer, j integer, t text ); CREATE foreign TABLE J2_TBL ( i integer, k integer ); INSERT INTO J1_TBL VALUES (1, 4, 'one'); INSERT INTO J1_TBL VALUES (2, 3, 'two'); INSERT INTO J1_TBL VALUES (3, 2, '...
the_stack
-- determines if patients received any dialysis during their stay -- Some example aggregate queries which summarize the data here.. -- This query estimates 6.7% of ICU patients received RRT. -- select count(rrt.icustay_id) as numobs -- , sum(rrt) as numrrt -- , sum(case when rrt=1 then 1 else 0 end)*100.0 ...
the_stack
-- 数据质量相关表 CREATE DATABASE IF NOT EXISTS bkdata_basic; USE bkdata_basic; SET NAMES utf8; CREATE TABLE `datamonitor_task_config` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `title` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '任务中文名', `category` INT(11) NOT NULL DEFAULT '0' COMMENT '任务类别id', `monitor_code` VARCHAR(1...
the_stack
SET NUMERIC_ROUNDABORT OFF GO SET ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, ARITHABORT, QUOTED_IDENTIFIER, ANSI_NULLS ON GO SET XACT_ABORT ON GO SET TRANSACTION ISOLATION LEVEL Serializable GO BEGIN TRANSACTION GO IF @@ERROR <> 0 SET NOEXEC ON GO PRINT N'Dropping foreign keys from [dbo].[NEW_REQUIREMENT]' ...
the_stack
-- ------------------------------------------------------------------------------- -- -- Create the MIMIC-III tables -- -- ------------------------------------------------------------------------------- -------------------------------------------------------- -- File created - Thursday-November-28-2015 --------------...
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
-- 2017-11-29T12:28:03.130 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_NameBrowse) VALUES ...
the_stack
-- 2020-01-17T07:35:26.151Z -- 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,577480,0,'ImportedBillPartnerName',TO_TIMESTAMP('2020-01-17 09:35:26','Y...
the_stack
-- MySQL dump 10.13 Distrib 5.7.19, for osx10.12 (x86_64) -- -- Host: 192.168.1.100 Database: auth_test -- ------------------------------------------------------ -- Server version 5.5.53-0ubuntu0.14.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
the_stack
-- MySQL dump 10.13 Distrib 5.6.16, for osx10.9 (x86_64) -- -- Host: localhost Database: goiardi_test -- ------------------------------------------------------ -- Server version 5.6.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
the_stack
-- Steuer OK -- 2021-06-25T12:41:44.617Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Steuer stimmt überein', PrintName='Steuer stimmt überein',Updated=TO_TIMESTAMP('2021-06-25 15:41:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579247 AND AD_Languag...
the_stack
-- 2017-06-04T12:49:25.555 -- 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,540610,540256,TO_TIMESTAMP('2017-06-04 12:49:25','YYYY-MM-DD HH24:MI:SS'),100,'Y...
the_stack
create or replace package body ut_annotation_manager as /* utPLSQL - Version 3 Copyright 2016 - 2019 utPLSQL Project 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.apa...
the_stack
CREATE TABLE [Dimension].[Date] ( [Date] DATE NOT NULL -- 2013-01-01 , [DateKey] INT NOT NULL -- 20130101 , [Day Number] INT NOT NULL -- 1 (to last day of month) , [Day] ...
the_stack
create table ACT_GE_PROPERTY ( NAME_ nvarchar(64), VALUE_ nvarchar(300), REV_ int, primary key (NAME_) ); insert into ACT_GE_PROPERTY values ('schema.version', 'fox', 1); insert into ACT_GE_PROPERTY values ('schema.history', 'create(fox)', 1); insert into ACT_GE_PROPERTY values ('next.dbid', '1', 1);...
the_stack
-- SQL Server script file, schema version 4 -- set to your database name USE [OEE] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO /****** Plant Entity table ******/ IF OBJECT_ID('dbo.PLANT_ENTITY', 'U') IS NOT NULL DROP TABLE dbo.PLANT_ENTITY GO CREATE TABLE [dbo].[PLANT_ENTITY]( [E...
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
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 client_min_messages = warning; SET row_security = off; -- -- N...
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
STEP 1 - Space comparison between CCI and PAGE compressed table **********************************************************************************/ -- How about space? Data space is much smaller. One key point to note is that PAGE compression can -- compress 2-4x. The difference is less as we have a Primary Key on the...
the_stack