text
stringlengths
1
1.05M
INVALID TEST -- Liquibase doesn't support mergeColumns change type for Derby: -- https://docs.liquibase.com/change-types/merge-columns.html
DROP TABLE IF EXISTS `USDCHF_W1`; CREATE TABLE IF NOT EXISTS `USDCHF_W1`( `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...
ALTER TABLE db_version CHANGE COLUMN required_12712_01_mangos required_12712_02_mangos_command bit; UPDATE `command` SET `help`='Syntax: .account set addon [#accountId|$accountName] #addon\r\n\r\nSet user (possible targeted) expansion addon level allowed. Addon values: 0 - normal, 1 - tbc, 2 - wotlk, 3 - cataclysm.' W...
-- ----- -- Views -- ----- -- v_telemetry CREATE OR REPLACE VIEW v_instrument_telemetry AS ( SELECT a.id, a.instrument_id AS instrument_id, b.id AS telemetry_type_id, b.slug AS telemetry_type_slug, b.name AS telemetry_type_name FROM instrument_telemetry a INNER J...
-- Database dbablog DROP DATABASE IF EXISTS `dbablog`; CREATE DATABASE dbablog; USE dbablog; DROP TABLE IF EXISTS `post`; CREATE TABLE `post` ( `id` int(9) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `body` text DEFAULT NULL, `published` tinyint(1) DEFAULT '0', PRIMARY KEY(`id`) ); ...
DROP TABLE PEN_MATCH_EVENT; DROP TABLE PEN_MATCH_SHEDLOCK;
CREATE TABLE Products( [Id] [int] IDENTITY(1,1) NOT NULL, [Name] [nvarchar](max) NOT NULL, [Category] [nvarchar](max) NOT NULL, [ListPrice] [float] NOT NULL, [Description] [nvarchar](max) NOT NULL, [ProductImageUrl] [nvarchar](max) NULL, CONSTRAINT [PK.Products] PRIMARY KEY CLUSTERED ([Id] ASC) ) INSERT ...
/* To view this file, download an open-source relational database product such as mysql or postgresql. Automatically generated by Xholon version 0.9.1, using Xholon2Sql.java Fri May 26 09:44:10 GMT-400 2017 1495806250427 model: Category - Music(S) www.primordion.com/Xholon In MySQL, you will need to temporarily disab...
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -- this script uses "ASH math" by John Beresniewicz, Graham Wood and Uri Shaft -- for estimating the event counts (and average durations): --...
SELECT extract(year from yyyymmddhhmm) as theyear, avg(temps) as avgtemp FROM "CS6500".all_years_reduced where temps is not null and usaf in ( 29750 ,29110 ,103380 ,108650 ,29170 ,106370 ,228020 ,101200 ,101270 ,103840 ,104190 ,104330 ,267020 ,28360 ,28750 ,29350 ,29440 ,29820 ,40650 ,100910 ,10...
/*************************************************************************/ -- Assigment: Plausibility - Atemporal -- Description: this medical dept could not prescribe the procedure -- Author: Enzo Byun -- Date: 11.Jan, 2020 -- Job name: this medical dept could not prescribe the drug -- Language: MSSQL -- Targ...
startcode Oracle_SubscriptionUnsubscribeSql delete from "ENDPOINTNAMESS" where Subscriber = :Subscriber and MessageType = :MessageType endcode
SET NAMES utf8 ; update `wecmdb_embedded`.`data_center` set location = 'Region={{region}}' where key_name = '{{region_name}}'; update `wecmdb_embedded`.`data_center` set location = 'Region={{region}};AvailableZone={{az_1}}' where key_name ='{{az_1_name}}'; update `wecmdb_embedded`.`data_center` set location = 'Region...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Lun 18 Septembre 2017 à 10:09 -- Version du serveur : 5.7.19-0ubuntu0.16.04.1 -- Version de PHP : 7.0.18-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
/* LeetCode Problem: 182. Duplicate Emails Link: https://leetcode.com/problems/duplicate-emails/ Written by: Mostofa Adib Shakib Database: MySQL */ # Option 1 SELECT Email FROM Person Group BY Email Having Count(Email) > 1 # Option 2 SELECT DISTINCT p1.Email FROM Person p1, Person p2 WHERE p1.Email = p2.Email AND ...
-- TBE-654: - Update email column size (ORACLE) -- Step 1: Drop views DROP VIEW p28_cfg_doc_config_v; DROP VIEW p28_cfg_doc_config_nt; DROP VIEW p28_cfg_doc_email_cfg_v; DROP VIEW p28_cfg_doc_email_cfg_nt; -- Step 2: Alter column type ALTER TABLE p28_cfg_doc_config MODIFY extra_to varchar2(32767 char); ALTER TABLE p2...
REM INSERTING into SYS.AW$AWREPORT SET DEFINE OFF; Insert into SYS.AW$AWREPORT (PS#,GEN#,EXTNUM,OBJNAME,PARTNAME) values ('654','2','0',null,null); Insert into SYS.AW$AWREPORT (PS#,GEN#,EXTNUM,OBJNAME,PARTNAME) values ('648','2','0',null,null); Insert into SYS.AW$AWREPORT (PS#,GEN#,EXTNUM,OBJNAME,PARTNAME) values ('654...
with ss as ( select i_manufact_id,sum(ss_ext_sales_price) total_sales from store_sales, date_dim, customer_address, item where i_manufact_id in (select i_manufact_id from item where i_category in ('Books')) and ss_item_sk = i_item_sk and ss_so...
select -- Required Columns name as resource, case when type in ('NodePort','LoadBalancer') then 'alarm' else 'ok' end as status, case when type in ('NodePort','LoadBalancer') then 'Containers using ' || name || ' service exposed through ' || type || ' service type.' else 'Containers using ' ||...
library DischargedonAntithromboticTherapyFHIR version '2.0.004' using FHIR version '4.0.1' include FHIRHelpers version '4.0.001' called FHIRHelpers include SupplementalDataElementsFHIR4 version '2.0.000' called SDE include TJCOverallFHIR version '1.4.000' called TJC include MATGlobalCommonFunctionsFHIR4 version '6.1....
drop procedure qtopology_sp_register_topology; create procedure qtopology_sp_register_topology(p_uuid varchar(100), p_config mediumtext, p_weight float, p_worker_affinity varchar(200)) begin if not exists(select * from qtopology_topology where uuid = p_uuid) then insert into qtopology_topology(uuid, config...
CREATE VIEW [dbo].[ApplicationRoles_V] AS SELECT dbo.Applications.ApplicationID, dbo.Applications.Name, dbo.Roles.Role, dbo.Roles.Inactive FROM dbo.ApplicationRoles INNER JOIN dbo.Applications ON dbo.ApplicationRoles.ApplicationID = dbo.Applications.ApplicationID INNER JOIN dbo.Role...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretRegressor_glmnet -- Dataset : freidman1 -- Database : oracle -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH linear_input...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 12, 2021 at 09:50 AM -- Server version: 8.0.23-0ubuntu0.20.04.1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
CREATE DATABASE IF NOT EXISTS `tcc` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `tcc`; -- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: tcc -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_...
/* Warnings: - A unique constraint covering the columns `[mangaId,name]` on the table `Chapter` will be added. If there are existing duplicate values, this will fail. - A unique constraint covering the columns `[mangaId,number]` on the table `Chapter` will be added. If there are existing duplicate values, this w...
create or replace function mini_insert_scripts( w_id_in in int, d_id_in in int, c_id_in in int, o_all_local_in in int, ols_in in order_line_t[] ) returns table(t text) immutable language plpgsql as $body$ declare c constant char(2) := ', '; q cons...
CREATE TABLE [dbo].[TransactionRequest] ( [RequestID] UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL, [Status] NVARCHAR (255) NOT NULL, [Message] NVARCHAR (255) NOT NULL, [Url] NVARCHAR (255) NOT NULL, CONSTRAINT [PK_TransactionRequest] PRIMARY KEY CLUSTERED ([RequestID] ASC) ); GO
select first_name,last_name,salary from employee WHERE salary BETWEEN 28000 AND 40000 UNION (select first_name,last_name,salary from employee WHERE salary BETWEEN 20000 AND 30000 INTERSECT select first_name,last_name,salary from employee WHERE salary BETWEEN 30000 AND 55000) MInus select first_name,last...
DELIMITER ;; CREATE OR REPLACE DEFINER=`queue`@`localhost` PROCEDURE `create_connections`(IN ik1 CHAR(10), IN ik2 CHAR(10), IN seoseliik VARCHAR(50), IN _user VARCHAR(50)) proc_label:BEGIN DECLARE msg VARCHAR(200); DECLARE _ik1 CHAR(10); DECLARE _ik2 CHAR(10); DECLARE finished INTEGER DEFAULT 0; DE...
create database `shoppc_db` default character set utf8 collate utf8_unicode_ci; use shoppc_db; create table nhomsanpham ( id int primary key not null auto_increment, ten varchar(100) not null unique, mota varchar(255), anh varchar(255), trangthai tinyint(1) default '1', uutien tinyint default ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 23, 2022 at 10:33 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE OR REPLACE FUNCTION "public"."event_notify"("channel" text, "routing_key" text, "message" text) RETURNS "pg_catalog"."void" AS $BODY$ select pg_notify(channel, routing_key || '$$' || message); $BODY$ LANGUAGE sql STABLE COST 100; CREATE OR REPLACE FUNCTION "public"."events_problem_trace"() RETUR...
-- -- INT8 -- Test int8 64-bit integers. -- CREATE TABLE INT8_TBL(q1 int8, q2 int8); INSERT INTO INT8_TBL VALUES(' 123 ',' 456'); INSERT INTO INT8_TBL VALUES('123 ','4567890123456789'); INSERT INTO INT8_TBL VALUES('4567890123456789','123'); INSERT INTO INT8_TBL VALUES(+4567890123456789,'4567890123456789'); INSER...
create table KALTURA_LTI_ROLE ( id number(19,0) not null, sakai_role varchar2(255 char) not null, lti_role varchar2(255 char) not null, created_on timestamp not null, last_modified timestamp not null, primary key (id) ); create table KALTURA_LTI_AUTH_CODE ( id number(19,0) not null, use...
INSERT INTO tpcds.web_returns SELECT * FROM ext_tpcds.web_returns;
--+ holdcas on; set names utf8; create table t1 (i1 int , s1 VARCHAR(20) collate utf8_km_exp, a int); -- UTF-8 test char is stored in 3 bytes insert into t1 values (1, '២',1); insert into t1 values (2, '២',1); insert into t1 values (3, '២',1); insert into t1 values (4, '២',1); insert into t1 values (5, '២',1); insert i...
CREATE TABLE [dbo].[Student] ( [Id] CHAR(36) NOT NULL PRIMARY KEY, [Name] VARCHAR(20) NULL, [Age] INT NULL, [Code] INT NULL, [Sex] BIT NULL )
-- file:collate.icu.utf8.sql ln:313 expect:true SELECT * FROM unnest((SELECT array_agg(b ORDER BY b) FROM collate_test2)) ORDER BY 1
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2017 at 12:23 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE OR REPLACE FUNCTION array_contains( "array" jsonb, "values" jsonb ) RETURNS boolean LANGUAGE sql IMMUTABLE STRICT AS $function$ SELECT RES.CNT >= 1 FROM (SELECT COUNT(*) as CNT FROM jsonb_array_elements("array") as elt WHERE elt IN (SELECT jsonb_array_elements("values"))) as RES; $function$;
CREATE TABLE `countries` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `isoCode` varchar(2) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `countries_name_UNIQUE` (`name`), UNIQUE KEY `countries_isoCode_UNIQUE` (`isoCode`) ); CREATE TABLE `drivers` ( `id` bigint NOT NULL AUTO_INCREMENT, ...
-- CreateTable CREATE TABLE "Employee" ( "id" SERIAL NOT NULL, "first_name" TEXT NOT NULL, "name" TEXT NOT NULL, "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated_at" TIMESTAMP(3), "department" INTEGER, CONSTRAINT "Employee_pkey" PRIMARY KEY ("id") ); -- CreateTable CR...
CREATE OR REPLACE package "BLOG_CM" authid definer as -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- DESCRIPTION -- Procedures and functions for admin application -- -- MODIFIED (DD.MM.YYYY) -- ...
DELETE FROM Countries INSERT INTO Countries VALUES ('PL','Poland','Polska') DELETE FROM Regions INSERT INTO Regions VALUES ('DS','PL','dolnośląskie'), ('KP','PL','kujawsko-pomorskie'), ('LB','PL','lubelskie'), ('LD','PL','lubuskie'), ('LU','PL','łódzkie'), ('MA','PL','małopolskie'), ('MZ','PL','mazowieckie'),...
CREATE INDEX ne_10m_admin_1_states_provinces_wikidata_index ON ne_10m_admin_1_states_provinces(wikidataid);
-- file:with.sql ln:458 expect:true WITH RECURSIVE x(n) AS (SELECT 1 UNION ALL SELECT n+1 FROM x WHERE n IN (SELECT * FROM x)) SELECT * FROM x
alter table ACT_RU_TASK add SCOPE_ID_ nvarchar(255); alter table ACT_RU_TASK add SUB_SCOPE_ID_ nvarchar(255); alter table ACT_RU_TASK add SCOPE_TYPE_ nvarchar(255); alter table ACT_RU_TASK add SCOPE_DEFINITION_ID_ nvarchar(255); create index ACT_IDX_TASK_SCOPE on ACT_RU_TASK(SCOPE_ID_, SCOPE_TYPE_); create index ACT_I...
create database auth; use auth; create table authorized_users ( name varchar(20), password varchar(40), primary key (name) ); insert into authorized_users values ( 'username', ...
-- Script Usuario CREATE TABLE usuario( id_usuario INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, login CHAR(3) NOT NULL UNIQUE, senha VARCHAR(50) NOT NULL, hash VARCHAR(50) NOT NULL ); INSERT INTO usuario (nome, login, senha, hash) VALUES ('Administrador','ADM',PASSWORD('123'),PASSWORD...
WITH ads_insights as ( select * from {{ref('fb_ads_insights_platform_and_device')}} ) select account_name, campaign_name, adset_name, ad_name, insights_date, impression_device as device, CONCAT (insights_date, ' | ', impression_device, ' | ', ad_name, ' | ', adset_name, ' | ', campaign_name...
SELECT COUNT(*) AS [Count] FROM Employees WHERE ManagerID IS NULL
SELECT CASE WHEN A + B <= C OR A + C <= B OR B + C <= A THEN 'Not A Triangle' WHEN A = B AND B = C THEN 'Equilateral' WHEN A = B OR B = C OR A = C THEN 'Isosceles' ELSE 'Scalene' END FROM TRIANGLES;
INSERT INTO admins (name,password) VALUES ('admin','$2b$10$OUI.lZJoD3qNYyot6Nxku.ZSIItP9P5KPtrEf.KcAiDG1XqYvRYKG'); INSERT INTO rooms (name,adminid) VALUES ('Python for Web Developers' , 1), ('Web Development vs. Data Science' , 1), ('Frontend vs. Backend' , 1), ('Tech Startups 2021' , 1), ('Weirdest Mobile Apps...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 15, 2020 at 10:43 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE price_history ( game_id char(36) not null, sale_general boolean not null, sale_ps_plus boolean not null, discount_general INT not null, discount_ps_plus INT not null, price_general real not null, price_ps_plus real not null, price_regular real not null, o...
SET FOREIGN_KEY_CHECKS=0; DELETE FROM s_articles; DELETE FROM s_articles_details; DELETE FROM s_articles_categories; INSERT INTO `s_articles` (`id`, `supplierID`, `name`, `description`, `description_long`, `shippingtime`, `datum`, `active`, `taxID`, `pseudosales`, `topseller`, `metaTitle`, `keywords`, `changetime`, `p...
-- @testpoint: list_list二级分区表:序列--分区列序列 --step1: 创建表空间; expect:成功 drop table if exists t_subpartition_0057; drop tablespace if exists ts_subpartition_0057; create tablespace ts_subpartition_0057 relative location 'subpartition_tablespace/subpartition_tablespace_0057'; --test1: 序列--分区列序列 --step2: 创建序列; expect:成功 drop ...
DROP TRIGGER IF EXISTS calculate_service_antenne_dispo ON "service_antenne"; CREATE OR REPLACE FUNCTION trigger_calculate_service_antenne_dispo() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN UPDATE service_antenne SET dispo = NEW.mesures_max-(NEW.mesures_in_progress+NEW.mesures_awaiting) WHERE id = NEW....
-- Copyright 2020 Accenture Global Solutions Limited -- -- 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 ap...
-- script: oms-resume-batch.sql -- Повторно активирует пакетные задания, реализованные с помощью модуля -- Scheduler, и ожидает запуска тех из них, которые должны начать выполняться. -- Повторная активация полностью аналогична выполняемой скриптом -- <oms-reactivate-batch.sql>. -- -- Параметры: -- patternList ...
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (https://h2database.com/html/license.html). -- Initial Developer: H2 Group -- select dayofweek(date '2005-09-12'); >> 2
// # Introduction // The Pain Management Summary artifact provides relevant information to consider when managing a patient’s pain. // This CDS logic was informed by the Centers for Disease Control and Prevention (CDC) Guideline for Opioid Prescribing // for Chronic Pain. The CDS is not a direct representation of any ...
-- file:foreign_key.sql ln:502 expect:true CREATE TABLE PKTABLE (ptest1 int, ptest2 inet, ptest3 int, ptest4 inet, PRIMARY KEY(ptest1, ptest2), FOREIGN KEY(ptest3, ptest4) REFERENCES pktable(ptest1, ptest2))
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2021 at 02:53 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
ALTER TABLE movies ALTER COLUMN created TYPE timestamp, ALTER COLUMN updated TYPE timestamp, ALTER COLUMN indexed TYPE timestamp, ALTER COLUMN deleted TYPE timestamp;
CREATE TABLE IF NOT EXISTS STEP ( id SERIAL PRIMARY KEY, steptype varchar, state varchar, journeyid integer REFERENCES journey (id), deadline date );
CREATE DATABASE IF NOT EXISTS `financeiro` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `financeiro`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 50.116.112.125 Database: financeiro -- ------------------------------------------------------ -- Server version 5.5.51-38.2...
-- -- TYPE_SANITY -- Sanity checks for common errors in making type-related system tables: -- pg_type, pg_class, pg_attribute, pg_range. -- -- None of the SELECTs here should ever find any matching entries, -- so the expected output is easy to maintain ;-). -- A test failure indicates someone messed up an entry in the ...
PROMPT Gives a success when expression evaluates to a boolean false --Arrange declare l_result integer; begin --Act ut.expect( 1 = 0 ).to_be_false(); l_result := ut_expectation_processor.get_status(); --Assert if nvl(:test_result, ut_utils.tr_success) = ut_utils.tr_success and l_result = ut_utils.tr_success ...
-- @testpoint: insert组合数据类型,整型和浮点型,索引顺序和插入数据的顺序不一样 -- @modify at: 2020-11-16 --建表,包含基本数据类型 drop table if exists tbl_hash; create table tbl_hash( col_int int, col_integer integer, col_BINARY_INTEGER BINARY_INTEGER, col_smallint smallint default '7', col_bigint bigint not null default '3', col_real real, col_float float,...
-- MySQL Script generated by MySQL Workbench -- 09/23/15 22:06:51 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITION...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_svmRadial -- Dataset : iris_date_tgt -- Database : monetdb -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH ker...
SELECT gebaeudeeingang.lage AS wkb_geometry, gebaeudeeingang.hausnummer as polizein, hausnummerpos.ori AS numori, CASE WHEN hausnummerpos.hali = 'Left' THEN 0 WHEN hausnummerpos.hali = 'Center' THEN 1 WHEN hausnummerpos.hali = 'Right' TH...
/* * Populate the child table(s) of an id-based partition set with old data from the original parent */ CREATE FUNCTION partition_data_id(p_parent_table text, p_batch_count int DEFAULT 1, p_batch_interval int DEFAULT NULL, p_lock_wait numeric DEFAULT 0, p_order text DEFAULT 'ASC') RETURNS bigint LANGUAGE plpgsql ...
CREATE TABLE user_entity ( user_id VARCHAR(10) NOT NULL, password VARCHAR (128) NOT NULL, last_name VARCHAR (32) , first_name VARCHAR (32) , gender CHAR (1) , deleted_flg CHAR(1) DEFAULT '0' NOT NULL, -- multiple "auto update timestamp column" is only supported with MySQL 5.7 or higher -- ...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[WebPermissionSet]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[WebPermissionSet]( [Id] [int] NOT NULL, [ObjectId] [int] NOT NULL, [RecordId] [int] NOT NULL, [PermissionId] [int] NOT NULL...
-- Create the Replication publication CREATE PUBLICATION supabase_realtime FOR ALL TABLES; -- Create a second schema CREATE SCHEMA personal; -- USERS CREATE TYPE public.user_status AS ENUM ('ONLINE', 'OFFLINE'); CREATE TABLE public.users ( username text primary key, data jsonb DEFAULT null, age_range int4range ...
-- MySQL dump 10.13 Distrib 8.0.19, for osx10.14 (x86_64) -- -- Host: 127.0.0.1 Database: world -- ------------------------------------------------------ -- Server version 8.0.19-debug /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
CREATE TABLE wlslog(time_stamp VARCHAR(45) PRIMARY KEY,category VARCHAR(25),type VARCHAR(25),servername VARCHAR(25),code VARCHAR(25),msg VARCHAR(45)); INSERT INTO wlslog VALUES('Apr-8-2014-7:06:16-PM-PDT','Notice','WebLogicServer','AdminServer','BEA-000365','Server state changed to STANDBY'); INSERT INTO wlslog VALU...
--+ holdcas on; set names iso88591; drop table if exists t; create table t(s1 char(10) collate utf8_en_ci, s2 enum('a', 'A', 'b', 'B') collate iso88591_en_cs); insert into t values('a', 1); insert into t values('A', 'B'); --compare with constant prepare st from 'select /*+ recompile */* from t where ''a'' in (?, ?) o...
-- Exported definition from 2013-02-20T04:02:55 -- Class engines.HermesModels.HermesSystems -- Database: mysql CREATE TABLE hermes_systems ( id INT PRIMARY KEY AUTO_INCREMENT, short_name VARCHAR(20), name VARCHAR(20), meta TEXT, modified DATETIME, status VARCHAR(20) )
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2020 at 05:42 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
INSERT INTO `_dpkc_main` (`id`, `mission_id`, `another_id`, `varchar`, `nbr`) VALUES (0xc020965ff8f44438a169226cefcdd7d5, 0x899bd9b11d1a4c6db4fdd103942b44ee, 0xc16bc2242f294a819e80781197a0bdc1, 'test', 1), (0x6fd7de65b8f948db9cea2a11c05cee27, 0x899bd9b11d1a4c6db4fdd103942b44ee, 0xc16bc2242f294a819e80781197a0bdc1...
INSERT INTO `yien` (`id`, `ranking`, `movie_name`, `box_office`, `bo_per`, `ntime`) VALUES (1, 1, '我的姐姐', 517.58, '22.89%', '04月22日 周四 21:10'); INSERT INTO `yien` (`id`, `ranking`, `movie_name`, `box_office`, `bo_per`, `ntime`) VALUES (2, 2, '名侦探柯南:绯色的子弹', 476.27, '21.06%', '04月22日 周四 21:10'); INSERT INTO `yien` (`id...
-- @testpoint:openGauss关键字domain(非保留),作为列名带引号并且排序时使用该列,建表成功,domain列按字母大小排序 drop table if exists domain_test; create table domain_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38)...
DROP TABLE likes;
alter table calendar drop constraint calendar_pk; alter table calendar add constraint calendar_pk primary key (day, tenant, type);
-- MySQL Script generated by MySQL Workbench -- Mon 14 Sep 2020 11:33:40 AM +04 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
-- ============================================================================= -- CROSS JOIN -- -- CROSS JOINs are not INNER JOINs. -- They return the cartesian product of the two tables. -- In other words, they put everything together in as many ways as is humanly possible. -- -- THIS IS ALMOST ALWAYS BAD. YOU ALMO...
--implicit conversion from TIMESTAMP(L)TZ columns to date/time types, in update autocommit off; drop table if exists tz_test, date_time_types; create table tz_test (id int auto_increment, ts timestamp, tsltz timestamp with local time zone, tstz timestamp with time zone); set timezone '+10:00'; insert into tz_test(ts...
-- two different window clauses with GROUP BY -- aggregate function, windowed aggregate, row_number() -- only order by clause in window definition select c_integer, sum(c_integer), row_number() over (order by c_date desc), lag(c_integer) over (order by c_date desc) from j1_v group by ...
DROP SCHEMA IF EXISTS bookstore CASCADE; DROP SEQUENCE hibernate_sequence
REM CallMe.sql REM Chapter 9, Oracle9i PL/SQL Programming by Scott Urman REM This script demonstrates positional and named notation for REM procedure calls. CREATE OR REPLACE PROCEDURE CallMe( p_ParameterA VARCHAR2, p_ParameterB NUMBER, p_ParameterC BOOLEAN, p_ParameterD DATE) AS BEGIN NULL; END CallMe; / D...
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2017 at 04:48 AM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
CREATE TABLE [tdw].[dim_Course_Section] ( [Course_Section_Key] INT IDENTITY (1, 1) NOT NULL, [Hash_Key_BK] VARBINARY (16) NOT NULL, [Course_School_Id] VARCHAR (16) NOT NULL, [Course_Cd] VARCHAR (30) NOT NULL, [Course_Section_Identifier] V...
SELECT "HI"; SELECT 'YO'; SELECT 1; SELECT 1.4; SELECT 1E-3; SELECT a.b;
DROP TABLE IF EXISTS `#__nuliga`; CREATE TABLE `#__nuliga` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `title` VARCHAR(25) NOT NULL, `url` VARCHAR(255) NOT NULL, `published` tinyint(4) NOT NULL DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE =MyISAM AUTO_INCREMENT =0 DEFAULT CHARSET =utf8;
-- MySQL dump 10.13 Distrib 5.5.62, for Win64 (AMD64) -- -- Host: 127.0.0.1 Database: wallet_sentinel_db -- ------------------------------------------------------ -- Server version 5.7.33 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
SET SCHEMA TPCH; elapsedtime on; -- QUERY 02 select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, supplier, partsupp, nation, region where p_partkey = ps_partkey and s_suppkey = ps_suppkey and p_size = 15 and p_type like '%BRASS' and s_nationkey = n_nationkey ...