text stringlengths 1 1.05M |
|---|
SET send_logs_level = 'fatal';
DROP DATABASE IF EXISTS database_for_dict;
CREATE DATABASE database_for_dict;
SELECT '***ipv4 trie dict***';
CREATE TABLE database_for_dict.table_ipv4_trie
(
prefix String,
asn UInt32,
cca2 String
)
engine = TinyLog;
-- numbers reordered to test sorting criteria too
INSERT... |
CREATE USER 'python_db_user'@'localhost';
GRANT SELECT, INSERT, UPDATE ON *.* TO 'python_db_user'@'localhost'; |
--
-- 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")... |
/*
Deployment script for ObservationsTest
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
*/
GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;
SET NUMERIC_ROUNDABORT OFF;
GO
:... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
--
-- Host: 127.0.0.1
-- Generation Time: Nov 02, 2020 at 03:33 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
DROP DATABASE IF EXISTS treenode;
CREATE DATABASE treenode DEFAULT CHARACTER SET utf8;
GRANT ALL ON treenode.* TO treenodeuser@'localhost' IDENTIFIED BY 'treenodepassword';
GRANT ALL ON treenode.* TO treenodeuser@'127.0.0.1' IDENTIFIED BY 'treenodepassword';
|
-- @testpoint:开启事务移动游标位置,参数为count,将游标移动到查询中随后的count行;
--前置条件
drop table if exists cur_test_163;
create table cur_test_163(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20));
insert into cur_test_163 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(2,368,'Bob','Shanghai','AAAAACAAAAA'),
... |
--
-- Copyright 2021-2022 the original author or 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
--
-- Unles... |
CREATE DATABASE numismatics; /*+ MODE = TRANSACTIONAL */
CREATE TABLE coin (cid INT(8) PRIMARY KEY,
unit VARCHAR2(20),
value NUMERIC(8,2),
mintage_year INT(8),
mint_id INT(8),
CONSTRAINT mint_id_fk FORE... |
IF NOT EXISTS (select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='sa' and TABLE_NAME='sa_virta_otp_cimopitkasaapuva') BEGIN
CREATE TABLE sa.sa_virta_otp_cimopitkasaapuva(
id bigint IDENTITY(1,1) NOT NULL,
hetu varchar(11) null,
jaksoAlkupvm bigint null, --date
jaksoLoppupvm bigint null, --date
kest... |
-- Tags: zookeeper, no-replicated-database
-- Tag no-replicated-database: Unsupported type of ALTER query
create table enum_alter_issue (a Enum8('one' = 1, 'two' = 2), b Int)
engine = ReplicatedMergeTree('/clickhouse/tables/{database}/test_02012/enum_alter_issue', 'r1')
ORDER BY a;
insert into enum_alter_issue values... |
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 09, 2018 at 09:13 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
CREATE TABLE [Test]
(
[ID] INT
, [Name] VARCHAR(50)
, [Gender] VARCHAR(25)
, [Parent_ID] INT
, CONSTRAINT PK_Test_ID PRIMARY KEY ([ID])
, CONSTRAINT DF_Test_Gender DEFAULT('Do not wish to mention')
, CONSTRAINT CK_Test_Gender CHECK( [Gender] IN ('Male', 'Female', 'Do not wish to mention'))
, CONSTR... |
--======================================================================
--
-- File: $RCSfile$
-- Version: $Revision$
-- Modified: $Date$
--
--(c) Copyright 2006-2014 by Mentor Graphics Corp. All rights reserved.
--
--========================================================================
-- Licensed under th... |
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 07, 2015 at 10:24 PM
-- Server version: 5.6.25
-- PHP Version: 5.5.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
-- phpMyAdmin SQL Dump
-- version 4.9.7
-- https://www.phpmyadmin.net/
--
-- Anamakine: localhost:3306
-- Üretim Zamanı: 08 Ara 2021, 20:50:33
-- Sunucu sürümü: 10.3.25-MariaDB
-- PHP Sürümü: 7.3.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET ... |
-- MySQL
drop table if exists user;
create table user(
id int primary key auto_increment,
username varchar(20),
password varchar(20)
);
drop table if exists post;
create table post(
id int primary key auto_increment,
body text,
author_id int references user (id)
);
drop table if exists comment;
create table com... |
--
-- Copyright © 2012 - 2018 camunda services GmbH and various authors (info@camunda.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... |
REASSIGN OWNED BY doomed_role TO successor_role;
DROP OWNED BY doomed_role;
-- repeat the above commands in each database of the cluster
DROP ROLE doomed_role;
|
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2019] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may ob... |
select test_cal_dt.week_beg_dt, sum(test_kylin_fact.price)
from test_kylin_fact
inner join test_cal_dt ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt
group by test_cal_dt.week_beg_dt
|
CREATE TABLE todo_list (id INTEGER PRIMARY KEY, item TEXT, minutes INTEGER);
INSERT INTO todo_list VALUES (1, "Wash the dishes", 15);
INSERT INTO todo_list VALUES (2, "vacuuming", 20);
INSERT INTO todo_list VALUES (3, "Learn some stuff on KA", 30);
INSERT INTO todo_list VALUES (4 ,"Bath" , 10);
SELECT SUM(minute... |
-- 2017-07-04T16:58:42.581
-- 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,AllowZoomTo,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText... |
-- Some comment |
drop table AcademicQualificationsStrings;
drop table InstituteOfEducationStrings;
drop table ProfileStrings;
drop table AcademicQualifications;
drop table InstituteOfEducation;
drop table Profile;
drop table Locale;
create table Locale (
locale varchar(6) not null,
description varchar(100) not null,
langua... |
delete from follow;
INSERT INTO `follow` (`id`, `create_date`, `target_id`, `version`) VALUES
(1, '2017-01-03 05:18:33', 2, 0),
(2, '2017-01-03 05:18:51', 2, 0);
delete from person;
INSERT INTO `person` (`user_id`, `name`) VALUES
(1, '1'),
(2, '2');
delete from post;
INSERT INTO `post` (`id`, `contents`, `create_... |
ALTER TABLE [dbo].[PatientDrugAdministration] ALTER COLUMN CreateDate DATETIME NULL |
listen example.predictions
|
-- file:rangefuncs.sql ln:424 expect:true
create temp table tt(f1 serial, data text)
|
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 22, 2015 at 09:44 PM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
# Not using this until it's determined how it affects the rest of the queries in this app
#ALTER TABLE `report` CHANGE `lastupdate` `lastupdate` DATETIME NOT NULL DEFAULT '0000-00-00';
|
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may... |
UPDATE service_${type:raw}details_saml SET metadata_url=${metadata_url},entity_id=${entity_id}
WHERE id=${id}
|
-- MySQL dump 10.13 Distrib 5.7.9, for linux-glibc2.5 (x86_64)
--
-- Host: localhost Database: dalcance
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.14-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA... |
-- dump file for Postgres 12
DROP DATABASE IF EXISTS hospital;
CREATE DATABASE hospital;
CREATE TYPE gender_type AS ENUM ('male', 'female');
CREATE TYPE staff_position_type AS ENUM('doctor', 'administrator', 'nurse', 'security', 'IT_administrator');
CREATE TYPE notification_status_type AS ENUM('open', 'closed');
CRE... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 10.1.13-MariaDB - mariadb.org binary distribution
-- SO del servidor: Win32
-- HeidiSQL Versión: 9.4.0.5125
-- ------------------------------------------------... |
-- randexpr1.test
--
-- db eval {SELECT d-b-(abs(a)/abs(coalesce((select b from t1 where coalesce((select t1.f from t1 where 13>=f-b),t1.c)*case when coalesce((select case (d*t1.e+b) when t1.a-13 then - -t1.d else t1.a end+13 from t1 where e>=t1.f),11) & b<t1.e then d else c end between c and d),11)-19))+11 FROM t1 W... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 18, 2020 at 10:33 AM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
DROP TABLE vet_specialties IF EXISTS;
DROP TABLE vets IF EXISTS;
DROP TABLE specialties IF EXISTS;
DROP TABLE visits IF EXISTS;
DROP TABLE pets IF EXISTS;
DROP TABLE types IF EXISTS;
DROP TABLE owners IF EXISTS;
DROP TABLE trainers IF EXISTS;
DROP TABLE researchers IF EXISTS;
DROP TABLE animals IF EXISTS;
CREATE TABL... |
create table app_users
(
usr_name character varying(200) not null,
usr_passwd character varying(200),
usr_form character varying(200),
usr_context character varying(200),
usr_roles character varying(200),
usr_phone character varying(200),
usr_email character varying(200),
constraint app_users_p... |
------ START : Contractor Bill Register workflow ---
INSERT INTO EG_WF_MATRIX (id, department, objecttype, currentstate, currentstatus, pendingactions, currentdesignation, additionalrule, nextstate, nextaction, nextdesignation, nextstatus, validactions, fromqty, toqty, fromdate, todate) VALUES (nextval('eg_wf_matrix_s... |
SELECT * FROM t1
WHERE SomeDate BETWEEN ? AND ?
|
DROP TABLE IF EXISTS `USDCAD_M5`;
CREATE TABLE IF NOT EXISTS `USDCAD_M5`(
`id` int(5) NOT NULL,
`bull` varchar(10) NOT NULL,
`bear` varchar(10) NOT NULL,
`buy` varchar(10) NOT NULL,
`sell` varchar(10) NOT NULL,
`av` varchar(10) NOT NULL,
`mm` varchar(10) NOT NULL,
`time` varchar(30) NOT NULL);
ALTER TABLE `US... |
DROP VIEW IF EXISTS v_identity_to_right ;
DROP VIEW IF EXISTS v_identity ;
DROP VIEW IF EXISTS v_identity_to_identity ;
DROP TABLE IF EXISTS t_identity_to_right cascade ;
DROP TABLE IF EXISTS t_right cascade ;
DROP TABLE IF EXISTS t_identity_to_identity cascade ;
DROP TABLE IF EXISTS t_identity cascade ;
DROP TA... |
create table foods
(
key bigint,
code bigint not null,
product_name varchar(1000),
Custom_Category varchar(1000),
c_level1 varchar(100),
c_level2 varchar(100),
c_level3 varchar(100),
c_level4 varchar(100),
c_level5 varchar(100),
brands varchar(500),
fat_100g numeric,
saturated_fat_1... |
create class coo(
col1 char(20),
col2 nchar(20),
col3 nchar varying(20),
col4 bit(8),
col5 bit varying(8),
col6 numeric,
col7 integer,
col8 smallint,
col9 monetary,
col10 float,
col11 double,
col12 date,
col13 time,... |
use master
go
DECLARE
@FileName AS VARCHAR(100);
BEGIN
SET @FileName = 'd:\MyMiniTradingSystem_' + Convert(VARCHAR(8), GETDATE(), 112) + '.dat';
backup database MyMiniTradingSystem to disk=@FileName
END
go
|
-- genres.name should be indexed and unique.
DO $$
BEGIN
BEGIN
create unique index ix_genres_name on genres (name);
EXCEPTION
WHEN OTHERS THEN RAISE NOTICE 'WARNING: it looks like ix_genres_name already exists; it was probably created on initial database creation.';
END;
END... |
DROP TABLE subgraphs;
|
DROP TABLE IF EXISTS tt_01373;
CREATE TABLE tt_01373
(a Int64, d Int64, val Int64)
ENGINE = SummingMergeTree PARTITION BY (a) ORDER BY (d);
SYSTEM STOP MERGES tt_01373;
INSERT INTO tt_01373 SELECT number%13, number%17, 1 from numbers(1000000);
SELECT '---';
SELECT count(*) FROM tt_01373;
SELECT '---';
SELECT coun... |
HDF5 "vds-percival-unlim-maxmin.h5" {
GROUP "/" {
DATASET "VDS-Percival-unlim-maxmin" {
DATATYPE H5T_STD_I32LE
DATASPACE SIMPLE { ( 32, 10, 10 ) / ( H5S_UNLIMITED, 10, 10 ) }
STORAGE_LAYOUT {
MAPPING 0 {
VIRTUAL {
SELECTION REGULAR_HYPERSLAB {
... |
WITH CTE AS (SELECT [TodaysDate],[databaseName],[SchemaName],[TableName],[RecordCount],[Ddifference],ROW_NUMBER() OVER (ORDER BY DatabaseName,SchemaName,TableName,TodaysDate) AS ROW_Num FROM [tableRowCountGSDR_Synergy] t1 WHERE TableName LIKE 'ELLPGM_SASI' AND SchemaName LIKE 'dbo') UPDATE t SET t.Ddifference = 0 FROM ... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 26, 2020 at 05:58 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50717
Source Host : localhost:3307
Source Database : tpadmin
Target Server Type : MYSQL
Target Server Version : 50717
File Encoding : utf-8
Date: 2017-02-27 17:35:22
*/
SET NAMES utf8;
SET FOREIGN_KEY... |
-- ***************************************************************************
-- File: 7_15.sql
--
-- Developed By TUSC
--
-- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant
-- that this source code is error-free. If any errors are
-- found in this source code, please repo... |
CREATE DATABASE sortabletable;
CREATE USER sortabletable@localhost IDENTIFIED BY '';
GRANT SELECT ON sortabletable.sp500 TO sortabletable@localhost; |
-- name: create-artists-table
CREATE TABLE IF NOT EXISTS artists (
artist_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
artist_name VARCHAR(128) NOT NULL,
PRIMARY KEY (artist_id),
UNIQUE KEY (artist_name)
) ENGINE = INNODB DEFAULT CHARSET = utf8 DEFAULT COLLATE = utf8_unicode_ci;
-- name: create-artist
INSERT INTO ... |
2 10
0 0 0 0 7 2
0 0 0 0 9 2
0 0 0 1 1 1
0 0 0 2 1 1
0 0 0 2 3 1
0 0 0 6 1 1
0 0 0 6 3 1
0 0 0 7 0 3
0 0 0 9 1 1
0 0 0 9 3 1
0 0 1 0 0 7
0 0 1 2 0 7
0 0 1 2 6 9
0 0 1 3 0 7
0 0 1 7 7 9
0 0 3 0 0 7
0 0 3 1 0 7
0 0 6 1 0 7
0 2 0 0 2 2
0 2 0 0 3 2
0 3 0 0 3 2
0 3 3 0 0 7
0 5 0 0 0 3
0 7 0 0 0 3
1 0 0 1 1 1
1 0 0 1 6 1
1 0... |
CREATE PROCEDURE [dbo].[dnn_DeleteFiles]
@PortalID int
AS
BEGIN
IF @PortalID is null
BEGIN
DELETE FROM dbo.dnn_Files WHERE PortalId is null
END ELSE BEGIN
DELETE FROM dbo.dnn_Files WHERE PortalId = @PortalID
END
END
|
/**
* The MIT License
* Copyright (c) 2018 marlonlom
*
* 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 rights
* to use, copy, modi... |
-- We have some tables to work with, now I have to put som data into them
-- using the 'INSERT' command:
INSERT INTO person (id, first_name, last_name, age, height, body_weight, eye_color, skin_color, car_owned)
VALUES (8541, "Andy", "Young", 38, 66, 155, "green", "white", "lexus");
INSERT INTO pet (id, pet_name,... |
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES
('0','21','8','2.04.01.','2.04',... |
-- Autogenerated: do not edit this file
CREATE TABLE BATCH_JOB_INSTANCE (
JOB_INSTANCE_ID BIGINT NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
VERSION BIGINT ,
JOB_NAME VARCHAR(100) NOT NULL,
JOB_KEY VARCHAR(32) NOT NULL,
constraint JOB_INST_UN unique (JOB_NAME, JOB_KEY)
) ;
CREATE TABLE BATCH_JOB_EXE... |
CREATE TABLE #Codesets (
codeset_id int NOT NULL,
concept_id bigint NOT NULL
)
;
INSERT INTO #Codesets (codeset_id, concept_id)
SELECT 0 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM
(
select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (317009,4235703,4279553)
U... |
ALTER TABLE category ADD COLUMN sort_order integer not null default 0; |
--
-- Created by SQL::Translator::Producer::MySQL
-- Created on Sun May 21 11:31:48 2017
--
;
SET foreign_key_checks=0;
--
-- Table: `column_comments`
--
CREATE TABLE `column_comments` (
`table_name` varchar(255) NULL,
`column_name` varchar(255) NULL,
`comment_text` text NULL
);
--
-- Table: `roles`
--
CREATE T... |
-- @testpoint: 输入在[-1,1]范围内
drop table if exists asin_test_02;
create table asin_test_02(c_decimal decimal(38,4));
insert into asin_test_02(c_decimal) values(-1),(1),(-0.6542),(0.6542),(null);
select asin(c_decimal) from asin_test_02 where c_decimal not in (1,-1);
drop table if exists asin_test_02; |
/* Removed the page size setting */
DELETE FROM settings WHERE setting='trans.page.size'; |
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\ir include/rand_generator.sql
\c :TEST_DBNAME :ROLE_SUPERUSER
SET client_min_messages = ERROR;
DROP TABLESPACE IF EXISTS tablespace1;... |
# ************************************************************
# Sequel Ace SQL dump
# Version 20021
#
# https://sequel-ace.com/
# https://github.com/Sequel-Ace/Sequel-Ace
#
# Host: 127.0.0.1 (MySQL 8.0.27)
# Database: egegen
# Generation Time: 2022-01-09 09:37:46 +0000
# ***********************************************... |
ALTER TABLE "public"."zones_stats" ALTER COLUMN "ibc_tx_in_mainnet_rating_diff" DROP NOT NULL;
|
begin;
alter table c_opportunity_review add column "id" serial primary key;
commit;
|
CREATE TABLE `deployments` (
`deployment_id` int(11) NOT NULL AUTO_INCREMENT,
`gamespace_id` int(11) NOT NULL,
`game_name` varchar(64) NOT NULL DEFAULT '',
`game_version` varchar(64) NOT NULL DEFAULT '',
`deployment_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`deployment_hash` varchar(256) NOT NULL D... |
select cast((
select
(
select
SourceFile.SourceFileName,
cast(SourceFile.FilePreparationDate as date) FilePreparationDate,
SourceFile.SoftwareSupplier,
SourceFile.SoftwarePackage,
SourceFile.Release,
SourceFile.SerialNo,
SourceFile.DateTime
from
SourceFile
for xml auto, t... |
/****** Object: View [dbo].[V_CV_ENVO] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_CV_ENVO]
AS
SELECT Entry_ID,
Term_Name,
identifier,
Is_Leaf,
Parent_term_name,
Parent_term_ID,
GrandParent_term_name,
GrandParent_term_ID,
[Syno... |
-- ========================================================================
-- Copyright (C) 2014-2015 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software... |
update users set email = dtsato where id = 71
update users set email = danilo where id = 56
|
select count(*) as validation_errors
from (
select
id
from DBT_Tutorial.dbt_kajjarapu.my_first_dbt_model
where id is not null
group by id
having count(*) > 1
) validation_errors
|
CREATE FUNCTION func470() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE380);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE264);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE129);val:=(SELECT COUNT(*)INTO MYCOU... |
-- Final SQL mapping:
SELECT attribute_0,attribute_1,attribute_2,attribute_3,attribute_4 FROM (SELECT attribute_0,attribute_1,attribute_2,attribute_3,attribute_4 FROM schema_1.relation_2 AS relation_2 JOIN schema_1.relation_1 AS relation_1 ON relation_2.attribute_6 = relation_1.attribute_5) as relation_0 ORDER BY attr... |
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
select nullif(null, null) xn, nullif('a', 'a') xn, nullif('1', '2') x1;
> XN XN X1
> ---- ---- --
> null null 1
> rows: 1
|
#!/bin/bash
# This file has the .sql extension, but it is actually launched as a shell
# script. This contortion is necessary because pg_regress normally uses
# psql to run the input scripts, and requires them to have the .sql
# extension, but we use a custom launcher script that runs the scripts using
# a shell inste... |
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspRecalculateEntityProjectMeasure')
AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE uspRecalculateEntityProjectMeasure
GO
/* uspRecalculateEntityProjectMeasure 7, 0
*
*
*
*/
CREATE PROCEDURE uspRecalculateEntityProjectMeasure
@bntIden... |
PRINT N'Adding Data To [identityaccess].[Tenants]...';
INSERT INTO [identityaccess].[Tenants]
([Id], [Name], [IsActive]) VALUES
('42D60457-5A80-4C83-96B6-890A5E5E4D22', 'Tenant One', 1)
;
PRINT N'Adding Data To [identityaccess].[Registrations]...';
INSERT INTO [identityaccess].[Registrations]
([Id], ... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF OBJECT_ID('EM_Add_Manager_On_Fund') IS NOT NULL
BEGIN
DROP PROC dbo.EM_Add_Manager_On_Fund
END
GO
-- =============================================
-- Author: Yang SHEN
-- =============================================
CREATE PROCEDURE EM_Add_Manager_On_Fund
@fund... |
CREATE TABLE `TENANT` (
`ID` VARCHAR(36) NOT NULL,
`NAME` VARCHAR(100) NOT NULL,
`ACTIVE` BOOLEAN NOT NULL,
`CREATED_DATE` DATETIME NOT NULL,
`UPDATED_DATE` DATETIME NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; |
--==============================================================================
-- GPI - Gunther Pippèrr
-- Desc: show invalid objects in the database
-- Date: 01.September 2012
--
--==============================================================================
set linesize 130 pagesize 300
set verify off
ttitle... |
-- file:arrays.sql ln:540 expect:true
select string_to_array('abc', '', 'abc')
|
-- 02.01.2017 17:25
-- URL zum Konzept
UPDATE AD_Process_Para SET AD_Reference_ID=17, AD_Reference_Value_ID=540528, DefaultValue='', Description='Legt fest, ob das System die automatisch neu erzeugte Vertragsperiode sofort fertigstellen oder den Betreuer informieren soll.', Help='Falls Leer wird die Einstellung aus der... |
CREATE TABLE [dbo].[AzurePoliciesForQueueAccess] (
[CustomerId] INT NOT NULL,
[SiteId] INT NOT NULL,
[PolicyId] INT NOT NULL,
[PolicyIdentifier] NVARCHAR (100) NOT NULL,
[QueueName] NVARCHAR... |
--
-- Copyright 2015-2018 Micro Focus or one of its affiliates.
--
-- 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... |
--
-- pgwt.parse_proc_header()
--
--------------------------------------------------------------------------------
CREATE FUNCTION pgwt.parse_proc_header(
IN a_src text,
OUT title text,
OUT comments text,
OUT attrs hstore
)
LANGUAGE plpgsql
AS $$
--
-- Parse function body
--
DECLARE
v_header text NOT NULL = '... |
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 13, 2019 at 04:54 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
-- @testpoint: opengauss关键字sqlstate(非保留),作为同义词对象名,部分测试点合理报错
--前置条件
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop synonym if exists sqlstate;
create synonym sqlstate for explain_test;
insert into sqlstate values (1,'ada'),(2, 'bob');
update sqlstate set sqlst... |
{%- macro reason_for_arr_change_tier_change(product_ranking, previous_product_ranking, quantity, previous_quantity, arr, previous_arr) -%}
CASE
WHEN {{ previous_product_ranking }} != {{ product_ranking }}
THEN ZEROIFNULL({{ quantity }} * ({{ arr }}/NULLIF({{ quantity }},0) - {{ previous_arr }}/NULLIF({... |
insert into user values(10001,sysdate(),'Ayaz Ahmed')
insert into user values(10002,sysdate(),'Ayaana')
insert into user values(10003,sysdate(),'Tahaseen')
insert into user values(10004,sysdate(),'Zayan')
insert into post VALUES (110001,'My first post',10001)
insert into post VALUES (110002,'My Second post',10001)
ins... |
ALTER TABLE `newsfeeds_tbl`
CHANGE COLUMN `n_image_url` `n_image_url` TEXT NULL DEFAULT NULL ; |
UPDATE herramientas.catalogo_campania SET catalogo = 1, campania = 1, activo = true WHERE id = 1; |
SELECT
*
FROM
view_persediaan_barang4_paringintimur
UNION ALL
|
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 23, 2021 at 08:23 AM
-- Server version: 10.4.10-MariaDB
-- PHP Version: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.