text
stringlengths
2.5k
6.39M
kind
stringclasses
3 values
; /*!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
-- 2009-06-27 12:00 drop table if exists definition; drop table if exists discipline; drop table if exists external_ref; drop table if exists glossary; drop table if exists kbbi; drop table if exists language; drop table if exists lexical_class; drop table if exists new_lemma; drop table if exists phrase; dro...
the_stack
-- 2021-05-24T13:43:05.822Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET ReadOnlyLogic='1=1',Updated=TO_TIMESTAMP('2021-05-24 16:43:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=573952 ; -- 2021-05-24T13:43:09.098Z -- I forgot to set the DICTIONARY_ID_COMMENTS ...
the_stack
-- Tests for old bugs related to OLAP queries. -- First create a schema to contain the test tables, and few common test -- tables that are shared by several test queries. create schema bfv_olap; set search_path=bfv_olap; create table customer ( cn int not null, cname text not null, cloc text, primary key (cn...
the_stack
-- -- UPDATE syntax tests -- CREATE TABLE update_test ( a INT DEFAULT 10, b INT, c TEXT ); CREATE TABLE upsert_test ( a INT PRIMARY KEY, b TEXT ); INSERT INTO update_test VALUES (5, 10, 'foo'); INSERT INTO update_test(b, a) VALUES (15, 10); SELECT * FROM update_test ORDER BY 1, 2, 3; ...
the_stack
-- 2017-07-28T15:24:31.466 -- 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,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly...
the_stack
CREATE OR REPLACE PACKAGE json_helper 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
Rem Rem $Header: qs_run.sql 29-aug-2002.11:59:51 hyeh Exp $ Rem Rem qs_run.sql Rem Rem Copyright (c) 2001, 2015, Oracle Corporation. All rights reserved. Rem Rem Permission is hereby granted, free of charge, to any person obtaining Rem a copy of this software and associated documentation files (the Rem "Software"),...
the_stack
-- Randomizer Package Specfiication -- You decide if you want distinct values or not. CREATE OR REPLACE PACKAGE randomizer /* | Overview: Simple API to generate collections of random values, unique if desired. | | Author: Steven Feuerstein */ IS TYPE integer_aat IS TABLE OF PLS_INTEGER INDEX BY ...
the_stack
TRUNCATE TABLE concept_relationship_stage; -- 1. Create lookup tables for existing vocab r (RxNorm and public country-specific ones) -- Create table containing ingredients for each drug DROP TABLE IF EXISTS r_drug_ing; CREATE unlogged TABLE r_drug_ing AS SELECT de.concept_id AS drug_id, an.concept_id AS ing_id FROM co...
the_stack
CREATE PROCEDURE [dbo].[usp_sqlwatch_internal_expand_checks] as begin set nocount on ; declare @check_name varchar(255), @expand_by varchar(50), @check_template_id smallint, @sql_instance varchar(32); declare cur_expand_by_server cursor for select [sql_instance] from dbo.sqlwatch_config_sql_instance ...
the_stack
-- -- 2007-10-11 Pedro Lopes (Microsoft) pedro.lopes@microsoft.com (http://aka.ms/sqlinsights/) -- -- 2008-01-17 Check for possibly redundant indexes in the output. -- 2009-05-21 Changed index scoring method; Disregards indexes with [Score] < 100000 and [User_Hits_on_Missing_Index] < 99; -- 2013-03-21 Changed database ...
the_stack
-- -- Windshaft test database -- -- NOTE: requires a postgis template called template_postgis -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = publi...
the_stack
WITH base AS ( SELECT r.oid AS r_oid, r.relname AS r_relname, r.relowner ...
the_stack
DROP INDEX IF EXISTS public.c_invoice_candidate_ad_table_id_record_id; CREATE INDEX c_invoice_candidate_record_id_ ON public.c_invoice_candidate (record_id, ad_table_id); -- 2019-10-22T12:59:58.798Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y', Name...
the_stack
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for ims_app -- ---------------------------- DROP TABLE IF EXISTS `ims_app`; CREATE TABLE `ims_app` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `appid` varchar(18) NOT NULL, `appsecret` varchar(64) NOT...
the_stack
SET search_path = real_pfile, pg_catalog; -- -- Name: f1; Type: TABLE; Schema: real_pfile; Owner: fec -- CREATE TABLE f1 ( repid numeric(12,0) NOT NULL, comid character varying(9), chg_name character varying(1), name character varying(200), chg_addr character varying(1), str1 character varying...
the_stack
* Function: bitand * Parameter Type: : (numeric, numeric) */ CREATE OR REPLACE FUNCTION oracle.bitand(bigint, bigint) RETURNS bigint AS $$select $1 & $2;$$ LANGUAGE SQL IMMUTABLE PARALLEL SAFE --ADBONLY CLUSTER SAFE RETURNS NULL ON NULL INPUT; /* * Function: bitand * Parameter Type: : (numeric,...
the_stack
-------------------------------------------------------------------------------- -- postgresql-table_version - PostgreSQL database patch change management extension -- -- Copyright 2016 Crown copyright (c) -- Land Information New Zealand and the New Zealand Government. -- All rights reserved -- -- This software is rel...
the_stack
----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 19c -- -- Partitioned Models - Support Vector Machine Algorithm - dmpartdemo.sql -- -- Copyright (c) 2020 Oracle Corporation and/or its affilitiates. -- -- The Universal Permissive License (UP...
the_stack
IF NOT EXISTS (SELECT 'X' FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'TaskInfo') BEGIN CREATE TABLE [dbo].[TaskInfo]( [TaskId] [varchar](64) NOT NULL, [QueueId] [varchar](64) NOT NULL, [Status] [smallint] NOT NULL, [TaskTypeId] [smallint] NOT NULL, [RunId] [varchar](50) null, ...
the_stack
-- Test for the regexp_*() function \set ECHO none SET client_min_messages = warning; SET client_encoding = utf8; \set VERBOSITY terse \set ECHO all set compatible_mode = 'oracle'; ---- -- Tests for REGEXP_LIKE() ---- -- ORACLE> SELECT 1 FROM DUAL WHERE REGEXP_LIKE('a'||CHR(10)||'d', 'a.d'); -> NULL SELECT REGEXP_LI...
the_stack
-- 14.11.2016 11:21 -- 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,IsOneInstanceOnly,IsR...
the_stack
-- 2018-04-20T18:18:34.163 -- 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
-- -- 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
-- Alter Concept Set table CREATE OR REPLACE PROCEDURE ${ohdsiSchema}.rename_cs_names AS TYPE NumberArray IS TABLE OF NUMBER; TYPE CharArray IS TABLE OF VARCHAR(255); duplicate_names CharArray; name_repeats NumberArray; amount_of_duplicate_names INT; amount_of_constraints INT; constraint_ti...
the_stack
------------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2008 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not ...
the_stack
-- Creates a table with icustay_id / time / dialysis type (if present) with ce as ( select ce.icustay_id , ce.charttime -- when ce.itemid in (152,148,149,146,147,151,150) and value is not null then 1 -- when ce.itemid in (229,235,241,247,253,259,265,271) and value = 'Dialysis Line' then 1 ...
the_stack
-- -- Backup /* drop table if exists backup.M_ProductPrice_BKP; drop table if exists backup.M_ProductPrice_Attribute_BKP; drop table if exists backup.M_ProductPrice_Attribute_Line_BKP; drop table if exists backup.M_ProductScalePrice_BKP; drop table if exists backup.C_OLCand_BKP; */ create table backup.M_ProductPrice_B...
the_stack
\echo Use "CREATE EXTENSION anon_func" to load this file. \quit /* Create the aggregates: * * ANON_COUNT(column, epsilon) * ANON_COUNT(column) * * where column is of any type. */ -- Accum for with epsilon. CREATE FUNCTION anon_count_accum(internal, anyelement, epsilon double precision) RETURNS internal AS 'an...
the_stack
CREATE DATABASE TheNerdHerd; GO USE TheNerdHerd; /* ******************************************************** 1. Database design ***********************************************************/ CREATE TABLE Locations ( Id INT IDENTITY PRIMARY KEY, Latitude FLOAT, Longitude...
the_stack
/* chinese simplified (China) charsets: */ /* GB2312, GBK, MS936, APPLE_CHINSIMP */ /* GBK is MS-CP 936 and a superset of GB-2312-80. In GB-2312-80 the range */ /* is 0xA1-0xFE for the leading byte and 0xA1-0xFE for the trailing byte. */ /* In GBK the range is from 0x81-0xFE for the leading byte and 0x40-0xFE */ /* fo...
the_stack
CREATE OR REPLACE FUNCTION SCHEMA_TRACING.get_tag_id(_tag_map SCHEMA_TRACING_PUBLIC.tag_map, _key SCHEMA_TRACING_PUBLIC.tag_k) RETURNS jsonb AS $func$ SELECT _tag_map->(SELECT k.id::text from _ps_trace.tag_key k WHERE k.key = _key LIMIT 1) $func$ LANGUAGE SQL STABLE PARALLEL SAFE; GRANT EXECUTE ON FUNCTION SCHEMA_T...
the_stack
-- -- NUMERIC -- --Testcase 567: CREATE EXTENSION duckdb_fdw; --Testcase 568: CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER duckdb_fdw OPTIONS (database '/tmp/sqlitefdw_test_core.db'); --Testcase 569: CREATE FOREIGN TABLE num_data (id int4 OPTIONS (key 'true'), val numeric(210,10)) SERVER sqlite_svr; --Testcase 570: C...
the_stack
-- MySQL dump 10.9 -- -- Host: localhost Database: bugmonkey -- ------------------------------------------------------ -- Server version 4.1.14-standard /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_C...
the_stack
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 -- Dumped by pg_dump version 10.5 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
-- MySQL dump 10.18 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: db Database: dev_fc2blog -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTE...
the_stack
CREATE OR REPLACE VIEW "de.metas.fresh".X_MRP_ProductInfo_AttributeVal_Raw_V AS SELECT p.ad_client_id, p.ad_org_id, p.m_product_id, p.name, p.value, p.ispurchased, p.issold, p.m_product_category_id, p.isactive, v.DateGeneral, dim.GroupName, SUM(v.qtyreserved_ondate) AS qtyreserved_ondate, SUM(v.qtyordered_onda...
the_stack
-- 2017-08-22T14:19:56.375 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-08-22 14:19:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=546383 ; -- 2017-08-22T14:20:00.542 -- I forgot to set the DICTIONARY_ID_COMMENTS Syste...
the_stack
-- 2019-10-21T12:23:21.576Z -- 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,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,I...
the_stack
DECLARE @rolename sysname = 'aduser_role'; DECLARE @cmd AS NVARCHAR(MAX) = N''; SELECT @cmd = @cmd + ' ALTER ROLE ' + QUOTENAME(@rolename) + ' DROP MEMBER ' + QUOTENAME(members.[name]) + ';' FROM sys.database_role_members AS rolemembers JOIN sys.database_principals AS roles ON roles.[principal_id] = ...
the_stack
-- 2020-05-04T09:21:43.371Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,IsActive,Created,CreatedBy,AD_Org_ID,Updated,UpdatedBy,AD_Element_ID,ColumnName,PrintName,Name,EntityType) VALUES (0,'Y',TO_TIMESTAMP('2020-05-04 12:21:43','YYYY-MM-DD HH24:MI:SS'),100,0,TO...
the_stack
-- TODO: allow arbitrary CRS -- TODO: allow arbitrary column AND table names -- note that sqlite only recognises 5 basic column affinities (TEXT, NUMERIC, INTEGER, REAL, BLOB); more specific declarations are ignored -- the 'INTEGER PRIMARY KEY' column is always 64-bit signed integer, AND an alias for 'ROWID'. -- Note...
the_stack
-- -- CONSTRAINTS -- Constraints can be specified with: -- - DEFAULT clause -- - CHECK clauses -- - PRIMARY KEY clauses -- - UNIQUE clauses -- - EXCLUDE clauses -- -- directory paths are passed to us in environment variables \getenv abs_srcdir PG_ABS_SRCDIR -- -- DEFAULT syntax -- CREATE TABLE DEFAULT_TBL (i in...
the_stack
-- Test filter clause for aggregate expression. --CONFIG_DIM1 spark.sql.optimizeNullAwareAntiJoin=true --CONFIG_DIM1 spark.sql.optimizeNullAwareAntiJoin=false -- Test data. CREATE OR REPLACE TEMPORARY VIEW testData AS SELECT * FROM VALUES (1, 1), (1, 2), (2, 1), (2, 2), (3, 1), (3, 2), (null, 1), (3, null), (null, nu...
the_stack
Known Issues & Limitations: - @showTSQLCommandsBeta parameter is in alpha version and not pretending to be complete any time soon. This output is provided as a basic help & guide convertion to Columnstore Indexes. - CLR support is not included or tested - Output [Min RowGroups] is not taking present partitions into...
the_stack
-- -- cleanup an obsolete refund related doctype that ended up in AD_client_ID=1000000 -- -- 2019-01-15T15:49:50.130 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM C_DocType_Trl WHERE C_DocType_ID=540956 ; -- 2019-01-15T15:49:50.141 -- I forgot to set the DICTIONARY_ID_COMMENTS System C...
the_stack
set current_schema=postgis; --S1.验证函数ST_AsBinary输出几何的二进制表示格式 SELECT '579',ST_AsBinary(the_geom) from geom_polygon where name='AAAA'; --S2.验证函数ST_AsEWKB输出几何扩展二进制表示格式 SELECT '581',ST_AsEWKB(the_geom) as st_asewkb from geom_line order by name, st_asewkb limit 10; --S3.验证函数ST_AsEWKT输出几何的扩展文本表示格式 SELECT '583',ST_AsEWKT(the_...
the_stack
----------------------------------------- -- Tables Used in this Section ----------------------------------------- @@&&fc_table_loader. 'OCI360_REPORTS_COST' ----------------------------------------- DEF oci360_usage_tzcolformat = 'YYYY-MM-DD"T"HH24:MI"Z"' --- Get some Usage info before starting @@&&fc_def_empty_var....
the_stack
-- 2017-07-24T15:24:50.969 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-24 15:24:50','YYYY-MM-DD HH24:MI:SS'),Name='No.' WHERE AD_Field_ID=3424 AND AD_Language='en_US' ; -- 2017-07-24T15:25:04.888 -- I forgot to set the DICTIONARY...
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
If ObjectProperty(Object_ID('dbo.dba_findWastedSpace_sp'), N'IsProcedure') Is Null Begin Execute ('Create Procedure dbo.dba_findWastedSpace_sp As Print ''Hello World!''') RaisError('Procedure dba_findWastedSpace_sp created.', 10, 1); End; Go Set ANSI_Nulls On; Set Quoted_Identifier On; Go Alter Procedure dbo....
the_stack
-- 概要 /*****************************************************/ EXEC #am_generate_waitstats SELECT SUM (interval_wait_time_per_sec) / 1000 AS avg_waiting_task_count FROM #am_resource_mon_snap; SET NOCOUNT ON; DECLARE @previous_collection_time datetime; DECLARE @previous_total_io_mb numeric (28, 1); DECLARE @curr...
the_stack
-- Copyright 2019 The Go Authors. All rights reserved. -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file. -- -- This schema migration was created by dumping the DB schema -- as of commit bc820754c5d2bce5c3cdb66515656afb5885a440. SET statement_timeout = 0; SET lock_t...
the_stack
-- 2021-09-29T12:59:18.594Z -- URL zum Konzept INSERT INTO C_Incoterms (AD_Client_ID,AD_Org_ID,C_Incoterms_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,Value, name) VALUES (1000000,1000000,540001,TO_TIMESTAMP('2021-09-29 14:59:18','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2021-09-29 14:59:18','YYYY-MM-DD HH24:M...
the_stack
------------------------------------------------------ -- Export file for user FOXBPM -- -- Created by Administrator on 2014/12/29, 11:29:48 -- ------------------------------------------------------ create table AU_GROUP_RELATION ( guid VARCHAR2(64) not null, userid VARCHAR2(...
the_stack
-- -- Copyright 2013 Zynga Inc. -- -- 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 by applicab...
the_stack
CREATE OR REPLACE FUNCTION WSO2_CONFIRMATION_CODE_CLEANUP_SP(IN operationid int) RETURNS TEXT AS $$ DECLARE batchSize int; chunkSize int; checkCount int; backupTables boolean; sleepTime float; enableLog boolean; logLevel VARCHAR(10); enableAudit boolean; unix_timestamp bigint; newChunk boolean; batchStatus VARCHAR(10)...
the_stack
--********************************************************************/ -- */ -- IBM InfoSphere Replication Server */ -- Version 10 for Linux, UNIX and Windows */ -- ...
the_stack
CREATE TABLE xmltest ( id int, data xml ); INSERT INTO xmltest VALUES (1, '<value>one</value>'); INSERT INTO xmltest VALUES (2, '<value>two</value>'); INSERT INTO xmltest VALUES (3, '<wrong'); SELECT * FROM xmltest; SELECT xmlcomment('test'); SELECT xmlcomment('-test'); SELECT xmlcomment('test-'); SELECT xm...
the_stack
-- -- XDBPM_XMLINDEX_SEARCH should be created under XDBPM -- alter session set current_schema = XDBPM / set define off -- create or replace package XDBPM_XMLINDEX_SEARCH authid CURRENT_USER as function getRootNodeMap(pathTableName VARCHAR2, pathTableOwner VARCHAR2) return xmlType; function getChildNodeMap(pathid V...
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; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpg...
the_stack
create table heap_deform_minimal_tuple_normal_view_column_t(id1 int,id2 int); create or replace view heap_deform_minimal_tuple_normal_view_column_v as select * from heap_deform_minimal_tuple_normal_view_column_t; create temp table heap_deform_minimal_tuple_comment_view_column_t(id1 int,id2 int); create or replace temp ...
the_stack
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for am_addon_instance -- ---------------------------- DROP TABLE IF EXISTS `am_addon_instance`; CREATE TABLE `am_addon_instance` ( `id` bigint(20) NOT ...
the_stack
-- 2021-03-05T13:30:58.563Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Window (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,EntityType,InternalName,IsActive,IsBetaFunctionality,IsDefault,IsEnableRemoteCacheInvalidation,IsExcludeFromZoomTargets,IsOneInstanceOn...
the_stack
-- 30.11.2015 16:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Form (AccessLevel,AD_Client_ID,AD_Form_ID,AD_Org_ID,Classname,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsOneInstanceOnly,Modal,Name,Updated,UpdatedBy) VALUES ('3',0,540067,0,'de.metas.banking.bankstatem...
the_stack
T_Var, T_Const, T_Case, T_OpExpr, T_ArrayExpr, T_BoolenTest, T_NullTest, T_NULLIF, T_BOOL (AND/OR/NOT) ********************************/ ---- --- Create Table and Insert Data ---- drop schema if exists llvm_vecexpr_engine2 cascade ; create schema llvm_vecexpr_engine2; set current_schema ...
the_stack
CREATE EXTENSION orioledb; -- Index build with primary key CREATE TABLE o_indices0 ( key bigint NOT NULL, val int, val2 int, PRIMARY KEY (key) ) USING orioledb; CREATE INDEX o_indices0_idx1 ON o_indices0 (val); SELECT orioledb_tbl_indices('o_indices0'::regclass); INSERT INTO o_indices0 SELECT 1000 + i, 3000 + i...
the_stack
/* chinese traditional (Taiwan/HongKong) charsets: */ /* BIG5, MS950, APPLE_CHINTRAD */ /* ======================================================================= */ /* Changes: */ /* A1_45: MS950 == 0x2027, APPLE_CHINTRAD == 0x00B7 - we use in all systems 0x2027 for better MS compatibility */ /* A1_4B: MS950 == 0x20...
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
CREATE OR REPLACE FUNCTION db4ai.prepare_snapshot_internal( IN s_id BIGINT, -- snapshot id IN p_id BIGINT, -- parent id IN m_id BIGINT, -- matrix id IN r_id BIGINT, -- root id IN i_schema NAME, -- snaps...
the_stack
---SQL Query Answers ---Original Source: https://en.wikibooks.org/wiki/Data_Management_in_Bioinformatics/SQL_Exercises ---IMPORTANT: I significantly modified the original exercise to work with Google BigQuery, by changing table structure, data, query questions and answers ________________________________________0_____...
the_stack
-- 2020-12-14T11:12:51.428Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', SeqNo=0,Updated=TO_TIMESTAMP('2020-12-14 13:12:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=627775 ; -- 2020-12-14T11:12:51.430Z -- I forgot to set the DICTIONARY_ID_COMMEN...
the_stack
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY. DROP TABLE IF EXISTS apsiii; CREATE TABLE apsiii AS -- ------------------------------------------------------------------ -- Title: Acute Physiology Score III (APS III) -- This query extracts the acute physiology score III. -- This score is a measure ...
the_stack
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default'); -- TABLE: entries CREATE TABLE IF NOT EXISTS `bx_polls_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` in...
the_stack
CREATE FUNCTION pltsql_call_handler () RETURNS language_handler AS 'babelfishpg_tsql' LANGUAGE C; CREATE FUNCTION pltsql_validator (oid) RETURNS void AS 'babelfishpg_tsql' LANGUAGE C; CREATE FUNCTION pltsql_inline_handler(internal) RETURNS void AS 'babelfishpg_tsql' LANGUAGE C; -- language CREATE TRUSTED...
the_stack
DROP VIEW IF EXISTS highroad_z15plus; DROP VIEW IF EXISTS highroad_z14; DROP VIEW IF EXISTS highroad_z13; DROP VIEW IF EXISTS highroad_z12; DROP VIEW IF EXISTS highroad_z11; DROP VIEW IF EXISTS highroad_z10; CREATE VIEW highroad_z10 AS (SELECT geometry, highway, railway, (CASE WHEN highway I...
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; set search_path='qp_funcs_in_subquery', 'qp_funcs_in_contexts'; CREATE TABLE foo (a int, b int); INSERT INTO foo select i, i+1 from generate_series(1,10) i; CREATE TABLE bar (...
the_stack
--1. Working with ds_stage --deleting drug forms DELETE FROM ds_stage WHERE drug_concept_code IN ( SELECT concept_code FROM drug_concept_stage WHERE source_concept_class_id LIKE '% Form' ); --need to think about it DELETE FROM drug_concept_stage WHERE concept_code IN ( SELECT c2.concept_code FROM concept...
the_stack
-- 2017-08-20T11:25:10.603 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET Name='Nr.',Updated=TO_TIMESTAMP('2017-08-20 11:25:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=544811 ; -- 2017-08-20T11:25:16.912 -- I forgot to set the DICTIONARY_ID_COMMENTS System Config...
the_stack
-- 2020-10-02T13:40:44.140Z -- 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,Description,DisplayLength,EntityType,Help,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted...
the_stack
; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!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' */; -- 导出 表 mlss_gzpc_bdap_uat_01.t_keypair 结构 CREATE TABLE IF NOT EXISTS `t_keypair` ( `id` bigint...
the_stack
-- -- Determine the Jenks classifications from a numeric array -- -- @param in_array A numeric array of numbers to determine the best -- bins based on the Jenks method. -- -- @param breaks The number of bins you want to find. -- -- @param iterations The number of different starting positions to test. -- -- @...
the_stack
CREATE OR REPLACE FUNCTION MapDrugVocabulary() RETURNS void AS $BODY$ BEGIN -- 1. Create lookup tables for existing vocab r (RxNorm and public country-specific ones) -- Create table containing ingredients for each drug DROP TABLE IF EXISTS r_drug_ing; CREATE UNLOGGED TABLE r_drug_ing AS SELECT de.concept_id AS d...
the_stack
-- -- STORED PROCEDURE -- ReindexResource -- -- DESCRIPTION -- Updates the search indices of a given resource -- -- PARAMETERS -- @resourceTypeId -- * The ID of the resource type (See ResourceType table) -- @resourceId -- * The resource ID (must be the same as the in the resource itself...
the_stack
-- 2021-04-29T06:58:03.863Z -- URL zum Konzept UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Anmerkung', PrintName='Anmerkung',Updated=TO_TIMESTAMP('2021-04-29 08:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578978 AND AD_Language='de_CH' ; -- 2021-04-29T06:58:03.879Z -- URL zum Konzept /* DDL...
the_stack
/* SJIS, MS932, APPLE_JAPANESE, EUC_JP, JIS-X-201, JIS-X-208, JIS-X-212 */ /* ======================================================================= */ static ImplDBCSToUniLeadTab const aSJISUniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL ...
the_stack
-- -- MERGE INTO -- -- initial CREATE SCHEMA xc_mergeinto; SET current_schema = xc_mergeinto; 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, 'vivitar 35mm...
the_stack
-- 2018-09-10T17:58:51.240 -- 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,544250,0,'C_BPartner_Memo',TO_TIMESTAMP('2018-09-10 17:58:51'...
the_stack
-- 2017-09-14T12:38:35.276 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowL...
the_stack
-- 26.10.2015 11:56 -- 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,542909,0,'IsShowAllEntityTypes',TO_TIMESTAMP('2015-10-26 11:56:31','...
the_stack
-- 2019-07-02T13:43:44.313 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_ImpFormat_Row SET DataFormat='yyyy-MM-dd',Updated=TO_TIMESTAMP('2019-07-02 13:43:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=541313 ; -- 2019-07-02T13:43:53.912 -- I forgot to set the DICTION...
the_stack
create extension if not exists gp_debug_numsegments; select gp_debug_set_create_table_default_numsegments(1); --only partition table can be expanded partition prepare drop table if exists t_hash_expand_prepare; create table t_hash_expand_prepare (c1 int, c2 int, c3 int, c4 int) distributed by (c1, c2); alter table t_h...
the_stack
create or replace package body test_annotation_parser is procedure test_proc_comments is l_source clob; l_actual ut3_develop.ut_annotations; l_expected ut3_develop.ut_annotations; begin l_source := 'PACKAGE test_tt AS -- %suite -- %displayname(Name of suite) -- %suitepath(all.globa...
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
-- SolidCP Migration from Other panels UPDATE Providers SET ProviderType = N'SolidCP.Providers.OS.Windows2003, SolidCP.Providers.OS.Windows2003' WHERE ProviderID = 1 Go UPDATE Providers SET ProviderType = N'SolidCP.Providers.Web.IIs60, SolidCP.Providers.Web.IIs60' WHERE ProviderID = 2 Go UPDATE Providers SET ProviderTy...
the_stack
ALTER TABLE augur_data.repo_info ALTER COLUMN keywords DROP DEFAULT, ALTER COLUMN keywords TYPE VARCHAR [] USING keywords :: CHARACTER VARYING [], ALTER COLUMN keywords SET DEFAULT '{}'; -- ---------------------------- -- Sequence structure for contributor_language_experience_contributor_language_id_seq -- -----------...
the_stack
-- 2018-05-11T06:54:38.842 -- 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,540861,TO_TIMESTAMP('2018-05-11 06:54:38','YYYY-MM-DD HH24...
the_stack
-- -- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH -- under one or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information regarding copyright -- ownership. Camunda licenses this file to you under the Apache License, -- Version 2.0; y...
the_stack
-- -- Copyright © 2016-2021 The Thingsboard Authors -- -- 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 by applicabl...
the_stack