text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
SET XACT_ABORT ON
GO
EXEC sp_babelfish_configure 'babelfishpg_tsql.escape_hatch_unique_constraint', 'ignore';
GO
CREATE TABLE simpleErrorTable (a varchar(15) UNIQUE, b nvarchar(25), c int PRIMARY KEY, d char(15) DEFAULT 'Whoops!', e nchar(25), f datetime, g numeric(4,1) CHECK (g >= 103.5))
GO
-- Error: duplicate key... | the_stack |
-- 2021-05-07T15:53:31.188Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ReadOnlyLogic='1=1',Updated=TO_TIMESTAMP('2021-05-07 18:53:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=541946
;
-- 2021-05-07T15:56:05.348Z
-- I forgot to set the DICTIONARY_... | the_stack |
create or replace function graphql.resolve(
query text = null,
variables jsonb = '{}',
"operationName" text = null,
extensions jsonb = null
)
returns jsonb
volatile
language plpgsql
as $$
declare
---------------------
-- Always required --
---------------------
parsed graphql... | the_stack |
--
-- Most of the code in the Qalingo project is copyrighted Hoteia and licensed
-- under the Apache License Version 2.0 (release version 0.8.0)
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Copyright (c) Hoteia, 2012-2014
-- http://www.hoteia.com - http://twitter.com/hoteia - contact@ho... | the_stack |
--these queries return not null results
--but these results are suspicious and need to be reviewed
-- drugs absent in drug_strength table
SELECT DISTINCT concept_code,
'Drug product doesnt have drug_strength info'
FROM drug_concept_stage
WHERE concept_code NOT IN (
SELECT drug_concept_code
FROM ds_stage
)
AND ... | the_stack |
CREATE OR REPLACE FUNCTION vocabulary_pack.ATCPostProcessing (
)
RETURNS void AS
$BODY$
BEGIN
/*
postprocessing for ATC
*/
--1. Create jumps
--1a. Use sources.class_to_drug, avoid Packs
DROP TABLE IF EXISTS jump$;
CREATE UNLOGGED TABLE jump$ as
SELECT s0.class_id,
s0.rx_id,
s0.o
FROM (
SELECT DISTINCT c.... | the_stack |
-- ===========================================
-- Load Extension into Database
-- ===========================================
-- IMPORTS SNOMED CT RF2 FULL RELEASE INTO MYSQL DATA BASE
-- MySQL Script for Loading and Optimizing SNOMED CT Release Files
-- Apache 2.0 license applies
--
-- =============================... | the_stack |
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 5.7.30-log - MySQL Community Server (GPL)
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 11.0.0.5919
-- -------------------------------------------------------... | the_stack |
--todo:
--constraint test case
--04 cascade semantics test,
--08 test the fk constraint
--19 truncate partition with fk/pk constraint
--01 syntax test: "table" key word test
--02 truncate multi table
--03 'restart identity' key word test
--04 cascade semantics test,
--05 cascade test
--06 permission test
--07 --par... | the_stack |
BEGIN;
--
-- Create table `failed_accounts` from failed_id_list.csv file
--
DROP TABLE IF EXISTS failed_accounts;
CREATE TABLE failed_accounts(account_id int);
\COPY failed_accounts(account_id) FROM 'failed_email_list.csv' CSV;
-- Filter `failed_accounts` table:
-- If accounts have any associated entries like accou... | the_stack |
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
ALTER TABLE IF EXISTS ONLY public.citizenship... | the_stack |
-- 2017-10-15T09:29:38.270
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='Y',Updated=TO_TIMESTAMP('2017-10-15 09:29:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=548629
;
-- 2017-10-15T09:30:52.441
-- I forgot to set the DICTIONARY_ID_COMMENT... | the_stack |
-- SQL SERVER:
DECLARE @var1 INTEGER -- 1. Declare variable @var1 as an INTEGER
SELECT @var1 -- 2. Output the value of @var1
SET @var1 = 3 -- 3. Set @var1 to 3
SELECT @var1 -- 4. Output the value of @var1
SET @var1 = @var1-7 -- 5. Subtract 7 from @var1
SELECT @var1 -- 6. Output the value of @var1
SET @var1 += 5 ... | the_stack |
-- 24.06.2016 16:52
-- 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,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdat... | the_stack |
-- 2020-02-13T06:22:43.704Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Description='(DO NOT USE THIS, IT IS LEGACY) Run this Process on Server only. ',Updated=TO_TIMESTAMP('2020-02-13 08:22:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=2807 AND AD_Langua... | the_stack |
-- 06.06.2016 17:16
-- 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,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543084,0,'DropShip_BPartner_Override_ID',TO_TIMESTAMP('2016-06-... | the_stack |
SET SERVEROUTPUT ON;
SET VERIFY OFF;
--- Exerciții
-- 1
-- Copiem tabelul pentru a nu-l afecta pe cel original.
DROP TABLE emp_copy;
CREATE TABLE emp_copy AS (SELECT * FROM employees);
COMMIT;
DECLARE
-- Colecție care reține ID-ul angajaților care nu câștigă comision
TYPE emp_ids_vector IS VARRAY(5)
... | the_stack |
-- JSON()
SELECT JSON();
SELECT JSON(NULL);
SELECT JSON('{ "a" : 1 } ');
SELECT JSON('{ "a" : 1 } ' FORMAT JSON);
SELECT JSON('{ "a" : 1 } ' FORMAT JSON ENCODING UTF8);
SELECT JSON('{ "a" : 1 } '::bytea FORMAT JSON ENCODING UTF8);
SELECT pg_typeof(JSON('{ "a" : 1 } '));
SELECT JSON(' 1 '::json);
SELECT JSON(' 1 ... | the_stack |
-- 2017-08-17T14:50:59.596
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvancedText,IsAl... | the_stack |
=============================================DBMAIL OPERATORS============================================================
=======================================================================================================================*/
IF NOT EXISTS (SELECT * FROM msdb..sysoperators WHERE name = 'SQL_DBA')
BEGI... | the_stack |
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 21c
--
-- Classification - Generalized Linear Model Algorithm - dmglcdem.sql
--
-- Copyright (c) 2021 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), ... | the_stack |
--Remove duplicates from provider domain [AVOF-3219, AVOF-3005]
--1. Add new concepts
DO $_$
BEGIN
PERFORM vocabulary_pack.AddNewConcept(
pConcept_name =>'Service Provider',
pDomain_id =>'Provider',
pVocabulary_id =>'Provider',
pConcept_class_id =>'Provider',
pStandard_con... | the_stack |
CREATE OR REPLACE FUNCTION sp_colname_fn (
p_obj VARCHAR2 DEFAULT NULL, -- table or view name
p_opt VARCHAR2 DEFAULT NULL, -- output format
p_sch VARCHAR2 DEFAULT USER, -- schema name
p_dbl VARCHAR2 DEFAULT NULL, -- database link
p_cns VARCHAR2 DEFAULT ... | the_stack |
-- 2019-03-02T15:25:15.388
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplaye... | the_stack |
create or replace package body test_annotation_cache is
procedure cache_populated_for_packages(a_packages ut_varchar2_rows) is
l_actual_cache_info sys_refcursor;
l_expected_cache_info sys_refcursor;
begin
open l_actual_cache_info for
select *
from ut3_develop.ut_annotation_cache_info
... | the_stack |
--
-- PostgreSQL database dump
--
SET statement_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 plpgsql WITH SCHEMA pg_cat... | the_stack |
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[FK_SYS_QRTZ_TRIGGERS_SYS_QRTZ_JOB_DETAILS]') AND OBJECTPROPERTY(id, N'ISFOREIGNKEY') = 1)
ALTER TABLE [dbo].[SYS_QRTZ_TRIGGERS] DROP CONSTRAINT FK_SYS_QRTZ_TRIGGERS_SYS_QRTZ_JOB_DETAILS
/*QUARTZ_02*/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id =... | the_stack |
--
-- PostgreSQL database dump
--
SET client_encoding = 'UTF8';
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
--
COMMENT ON SCHEMA public IS 'Standard public schema';
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema:... | the_stack |
-- 16.11.2015 07:08
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_Value_ID=540226, EntityType='de.metas.order',Updated=TO_TIMESTAMP('2015-11-16 07:08:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55323
;
-- 16.11.2015 07:09
-- URL zum Konzept
UPDATE AD_Element SET Description='Mit diesem Feld re... | the_stack |
SET search_path = 'musicbrainz', 'public';
BEGIN;
SELECT no_plan();
--------------------------------------------------------------------------------
-- Comments
SELECT throws_ok(
'INSERT INTO artist (id, gid, name, sort_name, comment)
VALUES (10, ''1fb3106e-00de-44fe-8511-aa949eb6fe0c'', ''James Blake'', ''James... | the_stack |
--
-- Sanity checks for text search catalogs
--
-- NB: we assume the oidjoins test will have caught any dangling links,
-- that is OID or REGPROC fields that are not zero and do not match some
-- row in the linked-to table. However, if we want to enforce that a link
-- field can't be 0, we have to check it here.
-- F... | the_stack |
-- Cheese
INSERT INTO text (text_id, text_type, english, german, swiss_german) values ('fo_cheese', 'item', 'Cheese','Käse','Chääs');
INSERT INTO text (text_id, text_type, english, german, swiss_german) values ('fo_cheese', 'item_desc', 'Smelly.','Riecht nicht sonderlich gut.','Er müffelet echli.');
INSERT INTO item (... | the_stack |
-- 2019-12-18T07:29:34.288Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET InternalName='Receipt',Updated=TO_TIMESTAMP('2019-12-18 08:29:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=184
;
-- 2019-12-18T07:30:33.279Z
-- I forgot to set the DICTIONARY_ID_COMMENTS ... | the_stack |
-- Oracle script file, schema version 4
-- set to your schema and tablespace names
--------------------------------------------------------
-- DDL for Table PLANT_ENTITY
--------------------------------------------------------
BEGIN
EXECUTE IMMEDIATE 'DROP TABLE "SYSTEM"."PLANT_ENTITY"';
EXCEPTION
WHEN OTHERS T... | the_stack |
SET XACT_ABORT ON
BEGIN TRANSACTION
IF NOT EXISTS
(
SELECT *
FROM sys.columns
WHERE NAME = 'TagValueUtc'
AND object_id = OBJECT_ID('dbo.ExtendedQueryTagDateTime')
)
BEGIN
ALTER TABLE dbo.ExtendedQueryTagDateTime
ADD TagValueUtc DATETIME2(7) NULL
END
/****************************... | the_stack |
DROP FUNCTION IF EXISTS "de_metas_acct".product_costs_recreate_from_date(
p_C_AcctSchema_ID numeric,
p_M_CostElement_ID numeric,
p_M_Product_ID numeric,
p_M_Product_IDs numeric[],
p_ReorderDocs char(1),
p_StartDateAcct timestamp WITH TIME ZONE)
;
CREATE OR REPLACE FUNCTION "de_m... | the_stack |
DROP TABLE IF EXISTS `book`;
CREATE TABLE `book` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`catId` int(10) DEFAULT NULL,
`pic_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`book_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`author` varchar(... | 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 lice... | the_stack |
-- Required:
DEF oci360_in_target_table = "&&1."
DEF oci360_in_source_file = "&&2."
UNDEF 1 2
DEF oci360_temp_obj_prefix = "OCI360_TMP_&&oci360_user_curschema."
DEF oci360_temp_table = "&&oci360_temp_obj_prefix._TABLE"
DEF oci360_temp_clob = "&&oci360_temp_obj_prefix._CLOB"
DEF oci360_temp_check = "&&oci360_tem... | the_stack |
------------------------------------------------------------------
-- pg_proc
------------------------------------------------------------------
set gen_new_oid_value to 321;
insert into pg_proc values ('json_in',11,10,12,'f','f','t','f','i',1,193,'f','2275',null,null,null,'json_in','-',null,'n');
set gen_new_oid_value... | the_stack |
USE [CSETWeb]
GO
/****** Object: StoredProcedure [dbo].[XML_Output_For_Schema] Script Date: 11/14/2018 3:57:31 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Scott Cook
-- Create date: 11/6/14
-- Description: This Stored Procedure extracts Ass... | the_stack |
\set ON_ERROR_STOP 1
BEGIN;
-- FUNCTIONS
CREATE OR REPLACE FUNCTION delete_unused_url(ids INTEGER[])
RETURNS VOID AS $$
DECLARE
clear_up INTEGER[];
BEGIN
SELECT ARRAY(
SELECT id FROM url url_row WHERE id = any(ids)
AND NOT (
EXISTS (
SELECT TRUE FROM l_area_url
WHERE entity1 = url_row.... | the_stack |
CREATE OR REPLACE TYPE BODY json
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 righ... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `coin`
-- ----------------------------
DROP TABLE IF EXISTS `coin`;
CREATE TABLE `coin` (
`name` varchar(255) NOT NULL,
`can_auto_withdraw` int(11) DEFAULT NULL,
`can_recharge` int(11) DEFAULT NULL,
`can_transfer` int(11) DEFAULT ... | the_stack |
create schema if not exists osm;
drop table if exists osm.country;
create table osm.country(
id serial not null primary key,
osm_id integer,
name text,
uppername text,
geom geometry(multipolygon, 23700)
);
create index gix_country on osm.country using gist(geom);
delete from osm.country;
insert into osm.coun... | the_stack |
-- configuration
/*--POLAR_ENABLE_PX*/
set polar_enable_px = on;
-- make sure 'polar_px_enable_check_workers' is disabled
alter system set polar_px_enable_check_workers = off;
select pg_reload_conf();
select pg_sleep(1);
--
-- range partition
--
set client_min_messages to 'warning';
drop table if exists t1_range;... | the_stack |
-- A test suite for in with cte in parent side, subquery, and both predicate subquery
-- It includes correlated cases.
create temporary view t1 as select * from values
("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'),
("val1b", 8S, 16, 19L, float(17.0), 25D, 26E... | the_stack |
drop table if exists with_test1 cascade;
create table with_test1 (i int, t text, value int) distributed by (i);
insert into with_test1 select i%10, 'text' || i%20, i%30 from generate_series(0, 99) i;
analyze with_test1;
drop table if exists with_test2 cascade;
create table with_test2 (i int, t text, value int);
insert... | the_stack |
-- MySQL dump 10.16 Distrib 10.2.14-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: postfix
-- ------------------------------------------------------
-- Server version 10.2.14-MariaDB-10.2.14+maria~jessie
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHA... | the_stack |
-- #93
-- SQLsmith: ERROR: invalid regexp option:
select
subq_28.c0 as c0,
subq_29.c0 as c1
from
(select
83 as c0,
sample_76.nodeoids as c1,
7 as c2
from
pg_catalog.pgxc_class as sample_76 tabl... | the_stack |
CREATE TABLE "DBDEPLOY01"."ARTIFACTDEPLOYMENT"
( "ARTFTYPE" VARCHAR2(31) NOT NULL ENABLE,
"ARTIFACTPATH" VARCHAR2(255) NOT NULL ENABLE,
"OBJECTNAME" VARCHAR2(255) NOT NULL ENABLE,
"ACTIVE" NUMBER(*,0),
"CHANGETYPE" VARCHAR2(255),
"CONTENTHASH" VARCHAR2(255),
"DBSCHEMA" VARCHAR2(255),
"DEPLOY_USER_ID" ... | the_stack |
IF TYPE_ID(N'BulkStringSearchParamTableType_2') IS NULL
BEGIN
CREATE TYPE dbo.BulkStringSearchParamTableType_2 AS TABLE
(
Offset int NOT NULL,
SearchParamId smallint NOT NULL,
Text nvarchar(256) COLLATE Latin1_General_100_CI_AI_SC NOT NULL,
TextOverflow nvarchar(max) COLLATE Lati... | the_stack |
EXEC dbo.LogSchemaMigrationProgress 'Beginning migration to version 20.';
GO
EXEC dbo.LogSchemaMigrationProgress 'Adding or updating stored procedures for purging resource changes.';
GO
/*************************************************************
Purge partition feature for resource change data
****************... | the_stack |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.0
-- Dumped by pg_dump version 10.0
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_m... | the_stack |
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NOCOUNT ON
-----------------------------------------------------------------------------------------------------------------------------
-- Error Trapping: Check If Procedure Already Exists And Create Shell If Applicable
--------------------------------------------... | the_stack |
-- original: with1.test
-- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test
CREATE TABLE t1(x INTEGER, y INTEGER);
WITH x(a) AS ( SELECT * FROM t1) SELECT 10
;SELECT * FROM ( WITH x AS ( SELECT * FROM t1) SELECT 10 )
;WITH x(a) AS ( SELECT * FROM t1) INSERT INTO t1 VALUES(1,2)
;WITH x(a) AS ( SELECT * FRO... | the_stack |
-- 2017-06-03T15:05:12.740
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET Description='Mein Benutzer Profil', Name='Mein Profil',Updated=TO_TIMESTAMP('2017-06-03 15:05:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=53100
;
-- 2017-06-03T15:05:12.751
-- I forgot to... | the_stack |
-- 2017-09-14T17:28:15.092
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Nr.',Updated=TO_TIMESTAMP('2017-09-14 17:28:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2726
;
-- 2017-09-14T17:28:20.172
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configur... | 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 |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.1
-- Dumped by pg_dump version 10.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_m... | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for class
-- ----------------------------
DROP TABLE IF EXISTS `class`;
CREATE TABLE `class` (
`cid` int(11) NOT NULL AUTO_INCREMENT,
`cname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '',
... | the_stack |
-- 2019-04-10T08:14:56.255
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,576574,0,TO_TIMESTAMP('2019-04-10 08:14:55','YYYY-MM-DD HH24:MI:SS'),100... | the_stack |
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 09/24/2014 13:01:53
-- Generated from EDMX file: C:\Users\Bill\OneDrive\Visual Studio\Projects\Lorn.ADSP\AM\Lorn.ADSP.AM.Da... | the_stack |
DROP FUNCTION IF EXISTS report.fresh_statistics_kg (
IN C_Period_ID numeric, IN issotrx character varying,IN C_Activity_ID numeric,IN M_Product_ID numeric, IN M_Product_Category_ID numeric, IN M_AttributeSetInstance_ID numeric, IN convert_to_kg character varying, IN AD_Org_ID numeric
);
DROP FUNCTION IF EXISTS repor... | the_stack |
set enable_global_stats = true;
/*
* This file is used to test the function of ExecVecMergeJoin()
*/
----
--- Create Table and Insert Data
----
create schema vector_mergejoin_engine;
set search_path to vector_mergejoin_engine;
create table vector_mergejoin_engine.ROW_MERGEJOIN_TABLE_01
(
col_int int
,col_... | the_stack |
-- phpMyAdmin SQL Dump
-- version 4.6.5.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 25, 2016 at 12:46 PM
-- Server version: 10.1.20-MariaDB-1~trusty
-- PHP Version: 5.6.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... | 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 |
-- 2020-11-12T09:36:44.142Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_ElementGroup (AD_Client_ID,AD_Org_ID,AD_UI_Column_ID,AD_UI_ElementGroup_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540570,544599,TO_TIMESTAMP('2020-11-12 11:36:43','YYYY-MM-DD HH2... | the_stack |
CREATE OR REPLACE FUNCTION test_get_changes_function()
RETURNS SETOF TEXT
LANGUAGE plpgsql
AS $$
BEGIN
-- All the tests are working against the same project. We'll just
-- embed all that information here in a prepared statement; all
-- parameters are for optional filtering / sorting
PREPARE get_skunkworks_chan... | the_stack |
/* following scripts: easteurope, cyrillic, greek, turkish */
/* ======================================================================= */
/* IBM-737 */
/* Dos Standard CharSet for Greek */
/* 1-Byte, 0x00-0x7F ASCII ohne Ausnahme */
/* Convert-Tables: mappings/vendors/micsft/pc/cp737.txt from 04/24/96 Version 2.00 ... | the_stack |
------------------------------------------------------------------------------------------
--Choose database to use
------------------------------------------------------------------------------------------
use telcoedw2
go
------------------------------------------------------------------------------------------
--Vi... | the_stack |
-- 2017-07-02T11:44:08.126
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-02 11:44:08','YYYY-MM-DD HH24:MI:SS'),Name='Request for Proposal Topic',Description='Maintain Request for Proposal Topics and invite Partners',WEBUI_NameBrowse=... | the_stack |
--change the dates according to the release date
DO $_$
BEGIN
PERFORM VOCABULARY_PACK.SetLatestUpdate(
pVocabularyName => 'BDPM',
pVocabularyDate => (SELECT vocabulary_date FROM sources.bdpm_drug LIMIT 1),
pVocabularyVersion => (SELECT vocabulary_version FROM sources.bdpm_drug LIMIT 1),
pVocabularyDevSchema ... | the_stack |
--SET log_min_messages TO DEBUG1;
--SET client_min_messages TO DEBUG1;
--Testcase 129:
CREATE EXTENSION duckdb_fdw;
--Testcase 130:
CREATE SERVER sqlite_svr FOREIGN DATA WRAPPER duckdb_fdw
OPTIONS (database '/tmp/sqlitefdw_test.db');
--Testcase 131:
CREATE FOREIGN TABLE department(department_id int OPTIONS (key 'true... | the_stack |
-- 2017-12-06T18:03:04.939
-- 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,IsOneInstanceO... | the_stack |
--
-- clean up legacies that are still around on some systems:
--
DELETE from ad_field where ad_column_id=552794; -- "M_InOut_Receipt_ID"
DELETE from ad_field where ad_column_id=552795; -- 'M_InOut_Shipment_ID';
ALTER TABLE ad_changelog DROP CONSTRAINT IF EXISTS adtable_adchangelog;
ALTER TABLE ad_changelog DROP CONS... | the_stack |
-- 2021-01-09T16:43:44.053Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET DisplayLogic='@$Element_PJ@=Y | @C_Project_ID/0@ > 0',Updated=TO_TIMESTAMP('2021-01-09 18:43:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=627609
;
-- 2021-01-09T16:49:33.758Z
-- I forgot to... | the_stack |
-- 02.04.2016 18:59
-- 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,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated... | 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 |
DROP FUNCTION IF EXISTS de_metas_acct.m_inventoryline_update_qtycount_from_fact_acct(
p_M_Inventory_ID numeric,
p_ProductAssetAccount varchar,
p_RecreateLines char(1)
)
;
CREATE OR REPLACE FUNCTION de_metas_acct.m_inventoryline_update_qtycount_from_fact_acct(
p_M_Inventory_ID numeric,
... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for casbin_rule
-- ----------------------------
DROP TABLE IF EXISTS `casbin_rule`;
CREATE TABLE `casbin_rule` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`ptype` varchar(100) DEFAULT NULL,
`v0` varchar(100) DEFAULT NULL,
`v1`... | the_stack |
------
--Shopware6 (inactive)
-- 2021-03-16T18:47:24.170Z
-- URL zum Konzept
INSERT INTO ExternalSystem_Config (AD_Client_ID,AD_Org_ID,CamelURL,Created,CreatedBy,ExternalSystem_Config_ID,IsActive,Name,Type,Updated,UpdatedBy) VALUES (1000000,1000000,'http://172.17.0.1:54804/camel/do',TO_TIMESTAMP('2021-03-16 19:47:24',... | the_stack |
-- 2017-07-25T11:00:30.463
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=40,Updated=TO_TIMESTAMP('2017-07-25 11:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=542621
;
-- 2017-07-25T11:00:30.470
-- I forgot to set the DIC... | the_stack |
-- 2019-09-19T09:00:45.098Z
-- URL zum Konzept
UPDATE AD_Window_Trl SET Name='Abgleich Rechnung',Updated=TO_TIMESTAMP('2019-09-19 12:00:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Window_ID=107
;
-- 2019-09-19T09:01:13.020Z
-- URL zum Konzept
INSERT INTO AD_UI_Section (AD_Client_ID,AD_O... | the_stack |
-- 2017-10-20T06:41:03.213
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Belegart',Updated=TO_TIMESTAMP('2017-10-20 06:41:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3344
;
-- 2017-10-20T06:42:01.688
-- I forgot to set the DICTIONARY_ID_COMMENTS System Con... | the_stack |
-- 2017-06-19T18:16:11.637
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='Passwort',Updated=TO_TIMESTAMP('2017-06-19 18:16:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=544381
;
-- 2017-06-19T18:16:20.484
-- I forgot to set the DICTIONARY_ID_COMMENTS S... | the_stack |
--QfDefaultConnection=Data Source=not-mobility;Initial Catalog=NORTHWND;Integrated Security=SSPI;
SET NOCOUNT ON;
DECLARE @nl varchar(5) = CHAR(13) + CHAR(10);
DECLARE @CloseComments varchar(50) = @nl + char(45) + '- endDesignTime' + @nl ;
/*designTime - put parameter declarations and design time initialization here
... | the_stack |
-- 2021-06-17T10:13:29.773Z
-- URL zum Konzept
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,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,Na... | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for t_agent_account_record
-- ----------------------------
DROP TABLE IF EXISTS `t_agent_account_record`;
CREATE TABLE `t_agent_account_record` (
`id` bigint(0) NOT NULL AUTO_INCREMENT COMMENT 'id',
`create_time` dat... | the_stack |
-- WEB2PROJECT DATABASE CONVERSION SCRIPT
-- USE THIS FILE FOR TESTING PURPOSES ONLY!
-- WITH A NORMAL WEB2PROJECT INSTALL YOU WILL NOT NEED TO USE THIS FILE
-- BECAUSE ALL DATABASE CREATION PROCEDURES SHOULD BE HANDLED BY WEB2PROJECT
-- INSTALLER.
-- HOW TO USE THIS FILE:
-- 1) DON'T. PLEASE USE THE CONVERTER INST... | the_stack |
INSERT INTO ad_element (ad_element_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, columnname, entitytype, name, printname, description, help, po_name, po_printname, po_description, po_help)
SELECT 542943, 0, 0, 'Y', '2016-01-18 15:22:04+01', 100, '2016-01-18 17:21:07+01', 100, 'Inclu... | the_stack |
CREATE FOREIGN TABLE test_uc_stream (k text, x int, s text, y int) SERVER pipelinedb;
-- Verify some validation
CREATE VIEW test_uc_validation AS SELECT k::text, avg(x::integer) FROM test_uc_stream GROUP BY k;
CREATE TABLE test_uc_table (v numeric);
INSERT INTO test_uc_table (v) VALUES (0), (1), (2);
-- combine only ... | the_stack |
-- 2017-11-25T12:41:04.612
-- 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,53054,540543,TO_TIMESTAMP('2017-11-25 12:41:04','YYYY-MM-DD HH24:MI:SS'),100,'Y'... | the_stack |
--Slowest Queries Report (requires pg_stat_statements)
--Original version – Data Egret: https://github.com/dataegret/pg-utils/blob/master/sql/global_reports/query_stat_total.sql
\if :postgres_dba_pgvers_13plus
with pg_stat_statements_slice as (
select *
from pg_stat_statements
-- if current database is postgres ... | the_stack |
-- いいねの通知状態
drop table if exists NOTIFICATION_STATUS cascade;
create table NOTIFICATION_STATUS (
TYPE integer not null
, TARGET_ID bigint not null
, USER_ID integer not null
, STATUS integer
, INSERT_USER integer
, INSERT_DATETIME timestamp
, UPDATE_USER integer
, UPDATE_DATETIME timestamp
, DELETE_F... | the_stack |
library OpioidCDSRoutines version '2.0.1'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include OpioidCDSCommon version '2.0.1' called Common
include OpioidCDSCommonConfig version '2.0.1' called Config
context Patient
/*
** Routine #1
** Opioid Review Useful Routine
**
** Defi... | the_stack |
--------------------------------------------------------
-- DDL for Table API2_TOKEN
--------------------------------------------------------
CREATE TABLE "API2_TOKEN"
( "KEY" NVARCHAR2(40),
"USER" NVARCHAR2(255),
"CREATED" TIMESTAMP (6)
) ;
--------------------------------------------------------
--... | the_stack |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.5
-- Dumped by pg_dump version 9.5.5
-- Started on 2017-04-05 20:59:06 CEST
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_mess... | the_stack |
ALTER TABLE `sys_objects_cmts` CHANGE `ObjectVote` `ObjectVote` VARCHAR(64) NOT NULL DEFAULT '';
ALTER TABLE `sys_objects_cmts` CHANGE `ObjectScore` `ObjectScore` varchar(64) NOT NULL default '';
ALTER TABLE `sys_objects_cmts` CHANGE `ObjectReport` `ObjectReport` varchar(64) NOT NULL default '';
CREATE TABLE IF NOT EX... | the_stack |
*
* Create data.
*
*****************************************************************************/
/*
* Add countries.
*/
INSERT INTO country (country, currency) VALUES ('USA', 'Dollar');
INSERT INTO country (country, currency) VALUES ('England', 'Pound');
INSERT INTO country (country, currency) VAL... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.