text stringlengths 2.5k 6.39M | kind stringclasses 3
values |
|---|---|
--
-- 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.mayoral_party DROP CONS... | the_stack |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.2
-- Dumped by pg_dump version 12.2
-- Started on 2021-03-20 00:27:53
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_catalo... | the_stack |
-- 2019-09-19T19:47:00.499Z
-- URL zum Konzept
UPDATE AD_Ref_Table SET OrderByClause='name',Updated=TO_TIMESTAMP('2019-09-19 21:47:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=541035
;
-- 2019-09-19T19:51:09.834Z
-- URL zum Konzept
UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('20... | the_stack |
DROP FUNCTION IF EXISTS report.fresh_statistics (
IN C_Period_ID numeric, IN issotrx character varying, IN C_BPartner_ID numeric, IN C_Activity_ID numeric,
IN M_Product_ID numeric, IN M_Product_Category_ID numeric, IN M_AttributeSetInstance_ID numeric, IN AD_Org_ID numeric
);
DROP FUNCTION IF EXISTS report.fresh_sta... | the_stack |
SELECT SourceDB,
[Status],
Beta
, SSISInstanceID AS SSISIID
, LoadStageDBStartDate
, LoadStageDBEndDate
, CONVERT(VARCHAR(12), DATEADD(ms, DATEDIFF(ms, LoadStageDBStartDate, LoadStageDBEndDate), 0), 114) AS StageLoadTime
, L... | the_stack |
-- A test suite for IN JOINS in parent side, subquery, and both predicate subquery
-- It includes correlated cases.
-- There are 2 dimensions we want to test
-- 1. run with broadcast hash join, sort merge join or shuffle hash join.
-- 2. run with whole-stage-codegen, operator codegen or no codegen.
--CONFIG_DIM1 sp... | the_stack |
-- MySQL dump 10.13 Distrib 5.5.25, for osx10.6 (i386)
--
-- Host: localhost Database: flx
-- ------------------------------------------------------
-- Server version 5.5.25
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!4010... | the_stack |
-- 3D City Database - The Open Source CityGML Database
-- https://www.3dcitydb.org/
--
-- Copyright 2013 - 2021
-- Chair of Geoinformatics
-- Technical University of Munich, Germany
-- https://www.lrg.tum.de/gis/
--
-- The 3D City Database is jointly developed with the following
-- cooperation partners:
--
-- Virtual C... | the_stack |
--
-- Test result value processing
--
CREATE OR REPLACE FUNCTION perl_int(int) RETURNS INTEGER AS $$
return undef;
$$ LANGUAGE plperl;
SELECT perl_int(11);
SELECT * FROM perl_int(42);
CREATE OR REPLACE FUNCTION perl_int(int) RETURNS INTEGER AS $$
return $_[0] + 1;
$$ LANGUAGE plperl;
SELECT perl_int(11);
SELECT * F... | the_stack |
CREATE OR REPLACE FUNCTION db4ai.sample_snapshot(
IN i_schema NAME, -- snapshot namespace, default is CURRENT_USER or PUBLIC
IN i_parent NAME, -- parent snapshot name
IN i_sample_infixes NAME[], -- sample snapshot name infixes
IN i_sample_ratios... | the_stack |
-- LABS FROM labevents
WITH
"labevents" AS (
SELECT
mimic_id as measurement_id
, subject_id
, charttime as measurement_datetime
, hadm_id
, itemid
, coalesce(valueuom, extract_unit(value)) as unit_source_value
, flag
, value as value_source_value
, extract_operator(value) as operator_name
, extract_value_per... | the_stack |
-- 2017-10-09T13:41:05.708
-- 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 |
--
-- PostgreSQL database dump
--
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;
--
-- Name: S'"chema; Type: SCHEMA; Schema: -; Owner: mla
--
CREATE SCHEMA "S'""chem... | 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 |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for shopping_mall_address
-- ----------------------------
DROP TABLE IF EXISTS `shopping_mall_address`;
CREATE TABLE `shopping_mall_address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NULL DEF... | the_stack |
CREATE DATABASE IF NOT EXISTS `jbone_zipkin` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */;
USE `jbone_zipkin`;
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
--
-- Host: localhost Database: jbone_zipkin
-- ------------------------------------------------------
-- Server version 5.7.20
/*!4... | the_stack |
set client_min_messages=warning;
create table xc_int8_tbl(q1 int8, q2 int8);
INSERT INTO xc_int8_tbl VALUES(' 123 ',' 456');
INSERT INTO xc_int8_tbl VALUES('123 ','4567890123456789');
INSERT INTO xc_int8_tbl VALUES('4567890123456789','123');
INSERT INTO xc_int8_tbl VALUES(+4567890123456789,'4567890123456789');
I... | the_stack |
--new relationships for SNOMED
DO $$
DECLARE
z int;
ex int;
pRelationship_name constant varchar(100):='Has precise active ingredient (SNOMED)';
pRelationship_id constant varchar(100):='Has prec ingredient';
pIs_hierarchical constant int:=0;
pDefines_ancestry constant int:=0;
pReverse_re... | the_stack |
-- ----------------------------
-- Table structure for `cmf_mall_attr`
-- ----------------------------
DROP TABLE IF EXISTS `cmf_mall_attr`;
CREATE TABLE `cmf_mall_attr` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '属性id',
`model_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品模型ID',
`type` tinyint(3) uns... | the_stack |
-- Jan 13, 2017 4:37 PM
-- 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,543267,0,'WEBUI_QuickAction',TO_TIMESTAMP('2017-01-13 16:37:53','YYYY-MM-DD ... | the_stack |
-- encrypted bcrypt password (Plain Text: "password")
-- equivalent Go code: bcrypt.GenerateFromPassword([]byte("password"), bcrypt.DefaultCost)
SET @defaultPassword = '$2a$10$MLooRpCcdyyxoXwe3ZiCFuQZfsGeVC7TPCSyYhTs8Bl/sFPd4K67W';
INSERT INTO users
(slug, first_name, last_name, email, `admin`)
VALUES
... | the_stack |
-- 2017-05-18T17:01:16.185
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,Seq... | the_stack |
-- 2019-02-19T12:04:58.924
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-02-19 12:04:58','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Lagerart',PrintName='Lagerart' WHERE AD_Element_ID=544253 AND AD_Language='de_CH'
;
-- 2019-02-... | 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 |
-- fts3near.test
--
-- db eval {
-- INSERT INTO t1 VALUES('
-- abbrev aberrations abjurations aboding abr abscesses absolutistic
-- abstention abuses acanthuses acceptance acclaimers accomplish
-- accoutring accusation acetonic acid acolytes acquitting acrylonitrile
-- actives acyclic addicte... | the_stack |
set current_schema=vector_window_engine;
----
--- test 3: boudary case
----
select a, b, rank() over(partition by a order by b) from vector_window_table_05 order by 1, 2;
select a, b, dense_rank() over(partition by a order by b) from vector_window_table_05 order by 1, 2;
select a, b, rank() over(partition by a order by... | the_stack |
-- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: maxkey
-- ------------------------------------------------------
-- Server version 8.0.21
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!4... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for auth_assignment
-- ----------------------------
DROP TABLE IF EXISTS `auth_assignment`;
CREATE TABLE `auth_assignment` (
`item_name` varchar(64) NOT NULL,
`user_id` varchar(64) NOT NULL,
`created_at` int(11) DEFAULT NULL,
PRIMARY ... | the_stack |
CREATE TABLE mh_user_session (
session_id VARCHAR(50) NOT NULL,
user_ip VARCHAR(255),
user_agent VARCHAR(255),
user_id VARCHAR(255),
PRIMARY KEY (session_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#Copy over the relevant session data
INSERT INTO mh_user_session (session_id, user_ip, user_id) SELECT session, u... | the_stack |
** Copyright Microsoft, Inc. 2002
** All Rights Reserved.
*/
/**********************************************************************/
PRINT '-------------------------------------------'
PRINT 'Starting execution of InstallMembership.SQL'
PRINT '-------------------------------------------'
GO
SET QUOTED_IDENTIFIER OFF... | the_stack |
-- 02.03.2016 15:05
-- 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,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,Updated,UpdatedBy) VALUES (0,543025,0,'QtyOrdere... | the_stack |
CREATE OR REPLACE VIEW `project_id.dataset_id.bigquery_audit_logs_v2` AS
WITH jobChangeEvent AS (
SELECT
protopayload_auditlog.authenticationInfo.principalEmail,
resource.labels.project_id AS projectId,
protopayload_auditlog.requestMetadata.callerIp AS callerIp,
protopayload_auditlog.requestMetadata.c... | the_stack |
-- MySQL dump 10.13 Distrib 5.7.29, for osx10.15 (x86_64)
--
-- Host: 127.0.0.1 Database: catmall_sms
-- ------------------------------------------------------
-- Server version 5.7.29
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ... | the_stack |
-- The aim of this query is to pivot entries related to blood gases and
-- chemistry values which were found in LABEVENTS
-- create a table which has fuzzy boundaries on ICU admission
-- involves first creating a lag/lead version of intime/outtime
with i as
(
select
subject_id, icustay_id, intime, outtime
, ... | the_stack |
-- 2020-02-06T16:33:22.497Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Message SET MsgText='In den Nutzerdaten ist keine eMail Adresse hinterlegt.',Updated=TO_TIMESTAMP('2020-02-06 17:33:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=541134
;
-- 2020-02-06T16:33:35.346Z... | the_stack |
-- 2019-06-20T15:35:45.373
-- 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 |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.4 (Debian 10.4-2.pgdg90+1)
-- Dumped by pg_dump version 10.3
-- Started on 2018-06-02 15:52:13 UTC
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_s... | the_stack |
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.3 (Debian 13.3-1.pgdg100+1)
-- Dumped by pg_dump version 13.3
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_con... | the_stack |
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION ""babelfishpg_common"" UPDATE TO '1.2.0'" to load this file. \quit
SELECT set_config('search_path', 'sys, '||current_setting('search_path'), false);
CREATE OR REPLACE FUNCTION sys.byteavarbinary(pg_catalog.BYTEA, inte... | the_stack |
--
-- remove related fields and columns from the V_BPartnerCockpit view and tab
--
-- 20.12.2016 06:48
-- URL zum Konzept
DELETE FROM AD_Table_Trl WHERE AD_Table_ID=540097
;
-- 20.12.2016 06:48
-- URL zum Konzept
DELETE FROM AD_Table WHERE AD_Table_ID=540097
;
-- 20.12.2016 06:53
-- URL zum Konzept
DELETE FROM AD_F... | the_stack |
CREATE DATABASE IF NOT EXISTS chaosblade;
USE chaosblade;
SET NAMES utf8mb4;
create table if not exists t_chaos_application
(
id bigint unsigned auto_increment comment 'primary key'
primary key,
gmt_create datetime not null comment 'create time',
gmt_modified dateti... | the_stack |
-- 2017-12-09T12:27:22.538
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2017-12-09 12:27:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=549428
;
-- 2017-12-09T12:27:22.992
-- I forgot to set the DICTIONARY_ID_COM... | the_stack |
-----------------------------------------------------------------------
-- Oracle Machine Learning for SQL (OML4SQL) 19c
--
-- OML R Extensible - Clustering via k-Means - tmrkmdemo.sql
--
-- Copyright (c) 2020 Oracle Corporation and/or its affilitiates.
--
-- The Universal Permissive License (UPL), Version 1... | the_stack |
:SETVAR JobOwner "User"
:SETVAR PSPath "E:\PBM_Pilot"
:SETVAR ManagementDatabase "MDW"
GO
USE [msdb]
GO
BEGIN TRANSACTION
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'Policy Management' AND category_class=1)
BEGIN
EXEC @ReturnCode = msdb.dbo.sp_add... | the_stack |
--New classes and relationships for LOINC
--Add new concept_class_id 'Doc Subject Matter'
DO $$
DECLARE
z int;
ex int;
pConcept_class_id constant varchar(100):='Doc Subject Matter';
pConcept_class_name constant varchar(100):= 'LOINC Document Subject Matter Domain';
BEGIN
DROP SEQUENCE IF EXISTS... | 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 |
-- 18.08.2015 12:50
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
--INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsOneInstanceOnly,IsReport,IsServerProcess,Jasper... | the_stack |
--
-- Name: ofec_omnibus_dates_mv; Type: MATERIALIZED VIEW; Schema: public; Owner: fec
--
CREATE MATERIALIZED VIEW ofec_omnibus_dates_mv AS
WITH elections_raw AS (
SELECT trc_election.trc_election_id,
trc_election.election_state,
trc_election.election_district,
trc_electio... | the_stack |
DROP FUNCTION IF EXISTS shipmentDispositionExcelDownload(TIMESTAMP With Time Zone, numeric, numeric);
CREATE OR REPLACE FUNCTION shipmentDispositionExcelDownload(IN p_C_ShipmentSchedule_Deliverydate TIMESTAMP With Time Zone,
IN p_C_BPartner_ID numeric,
... | the_stack |
-- 2019-01-15T11:25:20.537
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=1708 AND AD_Language='fr_CH'
;
-- 2019-01-15T11:25:21.176
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=1708 AND... | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for c_appendix
-- ----------------------------
DROP TABLE IF EXISTS `c_appendix`;
CREATE TABLE `c_appendix` (
`id` bigint NOT NULL COMMENT 'ID',
`biz_id` bigint NOT NULL DEFAULT '0' COMMENT '业务id',
`biz_type` varcha... | the_stack |
-- 2017-07-24T10:53:21.488
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-07-24 10:53:21','YYYY-MM-DD HH24:MI:SS'),Name='Document Type' WHERE AD_Field_ID=1085 AND AD_Language='en_US'
;
-- 2017-07-24T10:54:51.130
-- I forgot to set the ... | the_stack |
CREATE OR REPLACE FUNCTION getPricePattern(p_precision int)
RETURNS varchar AS
$BODY$
DECLARE
v_pattern varchar;
BEGIN
select CASE
WHEN p_precision = 0
THEN '9999999999'
ELSE Substring('9999999999D999999' FROM 0 FOR 12 + p_precision :: integer) END
into ... | the_stack |
-- 2019-06-06T14:41:28.663
-- 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,UIStyle,Updated,UpdatedBy) VALUES (0,0,540564,542598,TO_TIMESTAMP('2019-06-06 14:41:28','YYYY-MM... | the_stack |
CREATE OR REPLACE FUNCTION nft.insert_rarible(start_ts timestamptz, end_ts timestamptz=now(), start_block numeric=0, end_block numeric=9e18) RETURNS integer
LANGUAGE plpgsql AS $function$
DECLARE r integer;
BEGIN
WITH rarible_trades AS (
-- Get data from various Rarible contracts deployed over time
-- Oct 2019 fading ... | the_stack |
BEGIN;
-- This line is required
USE lake_test;
-- MySQL dump 10.13 Distrib 8.0.22, for macos10.15 (x86_64)
--
-- Host: localhost Database: lake
-- ------------------------------------------------------
-- Server version 8.0.26
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CH... | the_stack |
--Source table for refresh
--Flags show different reasons for refresh
CREATE TABLE loinc_source AS (
with previous_mappings AS
(SELECT concept_id_1, c.standard_concept, array_agg(concept_id_2 ORDER BY concept_id_2 DESC) AS old_maps_to
FROM devv5.concept_relationship cr
JOIN devv5.concept c
O... | the_stack |
--
--@@GaussDB@@
--plsql_packages test
--
/* BEGIN DBMS_SQL PACKAGE */
create table t1(c1 int, c2 int, c3 int);
create table t2(c1 int, c2 text, c3 int);
create table t3(c1 int, c2 char(20), c3 int);
create table t4(c1 int, c2 varchar(20), c3 int);
create table t5(c1 bigint, c2 char(20), c3 bytea);
insert into t1 sel... | the_stack |
-- 2017-06-25T10:43:06.784
-- 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,257,540326,TO_TIMESTAMP('2017-06-25 10:43:06','YYYY-MM-DD HH24:MI:SS'),100,'Y',2... | the_stack |
-- 24.02.2016 15:13:28 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,543017,0,'CountExpected',TO_TIMESTAMP('2016-02-24 15:13:28','YYYY-MM-DD H... | the_stack |
--
-- XDBPM_REPOSITORY_SEARCH should be created under XDBPM
--
alter session set current_schema = XDBPM
/
--
set define off
--
create or replace package XDBPM_REPOSITORY_SEARCH
authid CURRENT_USER
as
function getNodeMap return XMLType;
procedure initializeNodeMap;
end;
/
--
show errors
--
create or replace synony... | the_stack |
-- 2020-01-20T11:59:57.243Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updat... | the_stack |
-- 2017-09-06T19:32:24.927
-- 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,543411,0,'DropShip_BPartner_Value',TO_TIMESTAMP('2017-09... | the_stack |
CREATE TABLE ErrorWithTryCatchTable (a varchar(15) UNIQUE NOT NULL, 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
-- setup for "invalid characters found: cannot cast value "%s" to money" error
CREATE TABLE t293_1(a money, b int);
GO
INS... | the_stack |
CREATE DATABASE account_mange;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for coupon_card
-- ----------------------------
DROP TABLE IF EXISTS `coupon_card`;
CREATE TABLE `coupon_card` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) CHARACTER SET ... | the_stack |
create schema realtime;
create type realtime.equality_op as enum(
'eq', 'neq', 'lt', 'lte', 'gt', 'gte'
);
create type realtime.action as enum ('INSERT', 'UPDATE', 'DELETE', 'ERROR');
create function realtime.cast(val text, type_ regtype)
returns jsonb
immutable
language plpgsql
as $$
declare
... | the_stack |
----
--- Create Talbe
----
CREATE SCHEMA DISABLE_VECTOR_ENGINE;
SET CURRENT_SCHEMA=DISABLE_VECTOR_ENGINE;
SET ENABLE_VECTOR_ENGINE = OFF;
CREATE TABLE DISABLE_VECTOR_ENGINE.VECTOR_TABLE_01
(
DEPNAME VARCHAR,
EMPNO BIGINT,
SALARY INT,
ENROLL DATE,
TIMESET TIMETZ)
WITH(ORIENTATION = COLUMN);
CREATE INDEX IDX_TABLE_01 ON... | the_stack |
-- 16.01.2017 14:02
-- 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,402,540025,TO_TIMESTAMP('2017-01-16 14:02:12','YYYY-MM-DD HH24:MI:SS'),100,'Y','main',10... | the_stack |
DO $DODO$
DECLARE
no_id boolean;
has_version_proc boolean;
need_upgrade boolean;
BEGIN
need_upgrade = false;
select case when count(*)=1 then true else false end as has_version_proc from (select * from pg_proc where proname = 'working_version_num' limit 1) into has_version_proc;
IF has_version_proc = true then
... | the_stack |
-- 2021-05-12T14:44:11.925Z
-- 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,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLin... | the_stack |
-- 菜单
CREATE TABLE sys_menu (
menu_id bigint NOT NULL AUTO_INCREMENT,
parent_id bigint ,
name varchar(50) ,
url varchar(200) ,
perms varchar(500) ,
type int ,
icon varchar(50) ,
order_num int ,
PRIMARY KEY (menu_id)
);
-- 系统用户
CREATE TABLE sys_user (
user_id bigint NOT NULL AUTO_INCREMENT,
userna... | the_stack |
-- MySQL dump 10.16 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: MySB_db
-- ------------------------------------------------------
-- Server version 10.1.37-MariaDB-0+deb9u1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESU... | the_stack |
-- phpMyAdmin SQL Dump
-- version 4.7.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2018-03-22 21:32:28
-- 服务器版本: 5.5.58-log
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLI... | the_stack |
/*
System Supported Operators
� Copyright 2007 Alphora
*/
-- DAE_Trunc
if exists (select * from sysobjects where id = Object_ID('DAE_Trunc'))
drop function DAE_Trunc
go
create function DAE_Trunc(@Value decimal(28,8))
returns decimal(28,8)
begin
return Round(@Value,0,1)
end
go
grant execute o... | the_stack |
-- 14.07.2015 10:12:24
-- URL zum Konzept
UPDATE AD_Process SET JasperReport='@PREFIX@de/metas/docs/sales/alternative_inout_1/report.jasper', Name='Alternativ Lieferschein', Value='Alternativ Lieferschein (Jasper)',Updated=TO_TIMESTAMP('2015-07-14 10:12:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540... | the_stack |
-- 2019-05-21T18:03:44.234
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayed='N',Updated=TO_TIMESTAMP('2019-05-21 18:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=559177
;
-- 2019-05-21T18:15:31.890
-- I forgot to set the DICTIONARY_ID_COMMENT... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for friend_chat
-- ----------------------------
DROP TABLE IF EXISTS `friend_chat`;
CREATE TABLE `friend_chat` (
`id` char(32) NOT NULL,
`sender_id` int NOT NULL,
`receiver_id` int NOT NULL,
`message` varchar(255) CHARACTER SET utf8mb... | the_stack |
SET NOEXEC OFF
SET ANSI_WARNINGS ON
SET XACT_ABORT ON
SET IMPLICIT_TRANSACTIONS OFF
SET ARITHABORT ON
SET NOCOUNT ON
SET QUOTED_IDENTIFIER ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
GO
BEGIN TRAN
GO
ALTER TABLE BugNet_ProjectMilestones
ADD MilestoneReleaseDate d... | the_stack |
-- 2020-06-10T20:30:35.900Z
-- 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_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUp... | the_stack |
-- create a table to use as a basis for views and materialized views in various combinations
CREATE TABLE mv_base_a (i int, j int);
INSERT INTO mv_base_a VALUES
(1,10),
(2,20),
(3,30),
(4,40),
(5,50);
CREATE TABLE mv_base_b (i int, k int);
INSERT INTO mv_base_b VALUES
(1,101),
(2,102),
(3,103),
(4,104... | the_stack |
DROP TABLE IF EXISTS CODE_VALUE;
DROP TABLE IF EXISTS staging_CODE_VALUE;
----- CREATE TEMPORARY STAGING TABLE TO LOAD CSV FORMATTED DATA -----
CREATE EXTERNAL TABLE staging_CODE_VALUE
USING com.databricks.spark.csv OPTIONS (path ':dataLocation/CODE_VALUE.dat', header 'true', inferSchema 'true', nullValue 'NULL', m... | the_stack |
-- 2019-09-25T17:20:09.286Z
-- 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,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateabl... | the_stack |
SET NAMES utf8;
USE bkdata_basic;
CREATE TABLE `tag_type_config` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` varchar(32) NOT NULL COMMENT '标签类型名称',
`alias` varchar(32) NOT NULL COMMENT '标签类型中文',
`seq_index` int(11) NOT NULL COMMENT '位置',
`active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效... | 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 |
--/*************************************************************************
-- (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 |
-- Examples from https://www.postgresql.org/docs/9.6/static/plpgsql-control-structures.html
CREATE OR REPLACE FUNCTION get_all_foo() RETURNS SETOF foo AS
$BODY$
DECLARE
r foo%rowtype;
BEGIN
FOR r IN
SELECT * FROM foo WHERE fooid > 0
LOOP
-- can do some processing here
RETURN NEXT r;... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `cinema`
-- ----------------------------
DROP TABLE IF EXISTS `cinema`;
CREATE TABLE `cinema` (
`cinema_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '影院ID',
`name` varchar(50) NOT NULL COMMENT '影院名称',
`address` varchar(120) ... | the_stack |
-- 2017-04-26T14:46:33.283
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('md_candidate','M_AttributeSetInstance_ID','NUMERIC(10)',null,null)
;
-- 2017-04-26T14:46:43.209
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column va... | the_stack |
-- Function: report.fresh_account_info_report_sub(numeric, date, date, numeric, character varying, character varying, character varying, numeric)
-- DROP FUNCTION report.fresh_account_info_report_sub(numeric, date, date, numeric, character varying, character varying, character varying, numeric);
DROP FUNCTION IF EXIS... | the_stack |
-- 2017-06-12T08:52:12.592
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element SET Name='Name Zusatz', PrintName='Name Zusatz',Updated=TO_TIMESTAMP('2017-06-12 08:52:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=1111
;
-- 2017-06-12T08:52:12.606
-- I forgot to set the D... | the_stack |
-- 2020-06-11T09:07:24.111Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List SET Name='Verbuchungsprobleme',Updated=TO_TIMESTAMP('2020-06-11 12:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=542152
;
-- 2020-06-11T09:07:29.861Z
-- I forgot to set the DICTIONARY_I... | the_stack |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for events
-- ----------------------------
DROP TABLE IF EXISTS `events`;
CREATE TABLE `events` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT '0',
`addtime` int(11) DEFAU... | the_stack |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_department
-- ----------------------------
DROP TABLE IF EXISTS `sys_department`;
CREATE TABLE `sys_department` (
`created_at` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updated_at` datetime(6) NOT NU... | the_stack |
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SET NOCOUNT ON;
----------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------Configure Search Here----------------------------------------------------... | the_stack |
CREATE DATABASE WMS;
GO
USE WMS;
*/
CREATE TABLE Clients
(
ClientId INT NOT NULL PRIMARY KEY IDENTITY,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
Phone CHAR(12) NOT NULL
);
CREATE TABLE Mechanics
(
MechanicId INT NOT NULL PRIM... | the_stack |
USE tempdb
GO
SET NOCOUNT ON
SET QUOTED_IDENTIFIER ON
GO
IF OBJECT_ID ('sp_perf_stats_infrequent12','P') IS NOT NULL
DROP PROCEDURE sp_perf_stats_infrequent12
GO
CREATE PROCEDURE sp_perf_stats_infrequent12 @runtime datetime, @firstrun int = 0 AS
SET NOCOUNT ON
DECLARE @queryduration int
DECLARE @querystartti... | the_stack |
-- 29.01.2017 16:41
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_Side... | the_stack |
-------------------------------------------------------------------------------
-- tag type functions
-------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ps_trace.span_tag_type()
RETURNS ps_trace.tag_type
AS $sql$
SELECT (1<<0)::smallint::ps_trace.tag_type
$sql... | the_stack |
-- 2019-09-11T15:27:01.406Z
-- 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,577060,0,'PresetDateInvoiced',TO_TIMESTAMP('2019-09-11 18:26:59','YYYY-M... | the_stack |
-- 2017-07-11T17:48:42.375
-- URL zum Konzept
INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,Name,Updated,UpdatedBy) VALUES (0,0,540182,TO_TIMESTAMP('2017-07-11 17:48:42','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','Material Disposal -> I... | the_stack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.