text stringlengths 1 1.05M |
|---|
-- 3D City Database "Metadata Module" for ADEs v. 0.1
--
-- August 2017
--
-- 3D City Database: http://www.3dcitydb.org
--
--
-- Copyright 2017
-- Austrian Institute of Technology G.m.b.H., Austria
-- Center for Energy - Smart Cities and Regions Research Field
-- http://www.a... |
CREATE TABLE subdivision_AT (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_AT" ("id", "name", "level") VALUES (E'AT-1', E'Burgenland', E'state');
INSERT INTO "subdivision_AT" ("id", "name", "level") VALUES (E'AT-3', E'Alam-Austria', E'state');
INSERT ... |
-- +++
-- parent: 1528395866
-- +++
BEGIN;
ALTER TABLE IF EXISTS batch_spec_executions ADD COLUMN IF NOT EXISTS cancel BOOL DEFAULT FALSE;
COMMIT;
|
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 21, 2017 at 10:09 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 */;
... |
-- MySQL dump 10.13 Distrib 8.0.21, for macos10.15 (x86_64)
--
-- Host: localhost Database: career_change
-- ------------------------------------------------------
-- Server version 8.0.21
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU... |
DROP TABLE AC_UI_STREAMS ;
DROP TABLE AC_UI_STREAMS_PROPERTY;
DROP TABLE AC_UI_STREAMS_THREAD;
DROP TABLE AC_UI_STREAMS_MESSAGE;
-- =================================================
-- PACKAGE: UI
-- COMPONENT : STREAMS
-- CREATE : 2020.03.03
-- UPDATE :
-- ===========================================... |
/*
################################################################################
Migration script to add TARGETED_ARRAY column to the STUDY table
Designed for execution with Flyway database migrations tool; this should be
automatically run to completely generate the schema that is out-of-the-box
compatibile with th... |
-- Verification for DRILL-3653
select
sum(c_integer),
sum(c_integer) over (partition by c_boolean order by c_date desc)
from
j1
group by
c_boolean,
c_integer,
c_date
order by
row_number() over (order by c_date)
;
|
alter table "public"."patient_history" rename column "ward_id" to "ward";
|
CREATE TABLE IF NOT EXISTS lists (
id INTEGER PRIMARY KEY AUTOINCREMENT,
list_key TEXT,
key TEXT,
value TEXT,
sort INTEGER DEFAULT 999,
status TEXT DEFAULT 'active',
default_value INTEGER DEFAULT 0
);
insert into lists (list_key, key,value) values('genders','F','F');
insert into lists (list... |
-- MySQL dump 10.13 Distrib 5.1.71, for redhat-linux-gnu (x86_64)
--
-- Host: localhost Database: sqoop
-- ------------------------------------------------------
-- Server version 5.1.71
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT... |
select
org,
repo,
sum(activity) as activity,
sum(comments) as comments,
sum(prs) as prs,
sum(commits) as commits,
sum(issues) as issues,
EXACT_COUNT_DISTINCT(author_email) as authors_alt2,
GROUP_CONCAT(STRING(author_name)) AS authors_alt1,
GROUP_CONCAT(STRING(author_email)) AS authors
from (
select
... |
--
-- 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")... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 27, 2019 at 05:28 PM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.1.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
--
-- CREATE_INDEX
-- Create ancillary data structures (i.e. indices)
--
--
-- BTREE
--
CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops);
CREATE INDEX IF NOT EXISTS onek_unique1 ON onek USING btree(unique1 int4_ops);
CREATE INDEX IF NOT EXISTS ON onek USING btree(unique1 int4_ops);
CREATE INDEX onek_... |
CREATE TABLE [dbo].[tuition] (
[tuition_pk] INT IDENTITY (1, 1) NOT NULL,
[tuition_alias] VARCHAR (50) NOT NULL,
[family_member_id] INT NOT NULL,
[institution_id] INT NOT NULL,
[active] BIT NOT NULL,
CONSTRAINT [PK_tuition] PRIMARY KEY CL... |
-- =============================================
-- Author: dbo
-- Create date: 2020-10-13
-- Description: add new user to user role table, Auth system
-- =============================================
CREATE PROCEDURE [dbo].[spUserRole_AddUserRole_Auth]
@UserId nvarchar(256),
@RoleId nvarchar(256)
AS
BEGIN
SET ... |
ALTER TABLE releases ADD COLUMN visible BOOLEAN NOT NULL DEFAULT FALSE;
CREATE INDEX releases_visible_idx ON releases(visible) WHERE visible = TRUE;
|
--
-- 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 applicable law or agreed to in writing, software
-- distributed u... |
alter table domain_event_publishers
add adapter varchar(100);
alter table domain_event_publishers
add adapter_config jsonb;
|
CREATE TABLE dbo.Files (
Id INT IDENTITY (1, 1) NOT NULL,
EstablishmentId INT NULL,
SiteVisitDate DATE NULL,
[FileName] VARCHAR (50) NOT NULL,
FileURL VARCHAR (MAX) NOT NULL,
FileType TINYINT NULL,
CONSTRAINT PK_Files ... |
-- Test Oracle-style DECODE() expressions.
begin;
create table decodeint(a int, b int) distributed by (a);
insert into decodeint values (0,0);
insert into decodeint values (1,1);
insert into decodeint values (2,2);
insert into decodeint values (3,3);
insert into decodeint values (4,4);
insert into decodeint values (5... |
-- phpMyAdmin SQL Dump
-- version 4.5.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2017-07-11 13:41:36
-- 服务器版本: 5.7.11
-- PHP Version: 7.0.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET ... |
-- @testpoint: extract(field from timestamp)从给定的时间戳里获取它是一年的第几天的值
--(field的取值范围:doy一年的第几天(1~365/366))
select extract(doy from timestamp '2001-02-16 20:38:40') from sys_dummy; |
# These data are a subset http://0-www.ncbi.nlm.nih.gov.elis.tmu.edu.tw/geo/query/acc.cgi?acc=GSE27619 from GEO, specifically:
# GSM721116, GSM721117, GSM721118, GSM721119, GSM721123, GSM721124
## LNCaP and PrEC are the names of prostate cancer cell lines used in this GEO dataset
## As you may have noticed, any lines s... |
-- Copyright 2018 The Go Cloud 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
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... |
INSERT INTO `#__joomlawatch_ip2c` (`start`, `end`, `a2`, `a3`, `country`) VALUES (3644985344, 3644989439, 'RU', 'RUS', 'RUSSIAN FEDERATION'),
(3644989440, 3644997631, 'DE', 'DEU', 'GERMANY'),
(3644997632, 3645005823, 'RU', 'RUS', 'RUSSIAN FEDERATION'),
(3645005824, 3645009919, 'UA', 'UKR', 'UKRAINE'),
(3645009920, ... |
/*
Navicat Premium Data Transfer
Source Server : 192.168.100.50
Source Server Type : MySQL
Source Server Version : 100327
Source Host : 192.168.100.50:3306
Source Schema : siap_db
Target Server Type : MySQL
Target Server Version : 100327
File Encoding : 65001
Date: 2... |
-- *****************************************************************************
-- *** ***** CI/CD For IaC Create Tables ***
-- *****************************************************************************
-- -------------------------------------------------------
-- -- インターフェース情報
-... |
SET @sName = 'bx_forum';
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
-- TABLE: entries
CREATE TABLE IF NOT EXISTS `bx_forum_discussions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`author` int(10) unsigned NOT NULL,
`added` int(11) NOT NULL,
`changed` i... |
create table TBLROLES
(
ROLE_ID NUMBER not null
constraint TBLROLES_PK
primary key,
ROLE_NAME VARCHAR(20) not null,
ROLE_DESCRIPTION VARCHAR(400) not null
);
|
create table user (id int not null primary key unique auto_increment, \
name varchar(128) not null, \
notes text);
create table comp (sn varchar(128) not null primary key unique, \
parent_sn varchar(128), \
comp_type_id int not null, \
... |
Control TreatmentvsControl
FBgn0003358 FBgn0001112
FBgn0004188 FBgn0003358
FBgn0029723 FBgn0004188
FBgn0030449 FBgn0013276
FBgn0030769 FBgn0020299
FBgn0032180 FBgn0020639
FBgn0032860 FBgn0029723
FBgn0033834 FBgn0029817
FBgn0036494 FBgn0030449
FBgn0041336 FBgn0030769
FBgn0041337 FBgn0030952
FBgn0050239 FBgn0031082
FBgn0... |
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES ('BY', 'A’ Bhealaruis');
INSERT INTO "list" ("id", "value") VALUES ('BE', 'A’ Bheilg');
INSERT INTO "list" ("id", "value") VALUES ('BZ', 'A’ Bheilìs');
INSERT INTO "list" ("id", "value") ... |
INSERT INTO portti_bundle (name, startup)
VALUES ('admin-users','{}');
UPDATE portti_bundle set startup = '{
"title" : "Admin - Users",
"fi" : "admin-users",
"sv" : "admin-users",
"en" : "admin-users",
"bundlename" : "admin-users",
"bundleinstancename" : "admin-users",
"me... |
2 12
0 0 0 0 10 1
0 0 0 0 4 1
0 0 0 0 7 1
0 0 0 1 1 4
0 0 0 1 2 4
0 0 0 1 4 1
0 0 0 10 0 2
0 0 0 11 0 2
0 0 1 0 0 10
0 0 1 0 10 7
0 0 2 1 0 1
0 0 2 10 0 1
0 0 2 3 0 1
0 0 4 1 1 1
0 0 4 7 1 11
0 1 0 0 2 2
0 1 0 0 3 1
0 1 0 0 4 1
0 1 1 0 2 2
0 1 1 2 1 2
0 10 0 0 0 4
0 10 4 0 0 3
0 2 0 0 2 2
0 2 1 0 2 2
0 2 3 0 3 2
0 3 0 ... |
-- Your database schema. Use the Schema Designer at http://localhost:8001/ to add some tables.
CREATE TABLE users (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
email TEXT NOT NULL,
handle TEXT NOT NULL UNIQUE,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
display_name TEXT... |
DROP INDEX locks_pk;
DROP TABLE locks;
|
/*
You are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N.
Write a query to find the node type of Binary Tree ordered by the value of the node. Output one of the following for each node:
Root: If node is root node.
Leaf: If node is ... |
--
-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
-- under one or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information regarding copyright
-- ownership. Camunda licenses this file to you under the Apache License,
-- Version 2.0; y... |
insert into route(id, flight_number, departure, destination) values(1,'LH7902','MUC','IAH');
insert into route(id, flight_number, departure, destination) values(2,'LH1602','MUC','IBZ');
insert into route(id, flight_number, departure, destination) values(3,'LH401','FRA','NYC'); |
-- drop this index. this is mistake.
DROP INDEX variant_id_UNIQUE ON wishlist_items;
|
-- file:tstypes.sql ln:14 expect:true
SELECT tsvectorin(tsvectorout($$'\\as' ab\c ab\\c AB\\\c ab\\\\c$$::tsvector))
|
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: web_fase_1
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
... |
select 1 as id
union all
select * from {{ ref('node_0') }}
union all
select * from {{ ref('node_1') }}
union all
select * from {{ ref('node_56') }}
union all
select * from {{ ref('node_83') }}
union all
select * from {{ ref('node_107') }}
union all
select * from {{ ref('node_309') }}
|
CREATE TABLE data_types
(
t_uint8 UInt8,
t_uint16 UInt16,
t_uint32 UInt32,
t_uint64 UInt64,
t_uuid UUID,
t_int8 Int8,
t_int16 Int16,
t_int32 Int32,
t_int64 Int64,
t_string String,
t_fixedstring FixedString(20),
t_date Date,
t_ipv4 IPv4,
t_ipv6 IPv6,
t_datetime... |
ALTER TABLE ONLY lines
DROP CONSTRAINT IF EXISTS lines_account_id_fkey; |
USE [NavIntegrationDB]
GO
/****** Object: StoredProcedure [dbo].[SWITCH_DetailsGet] Script Date: 02/13/2012 17:17:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[SWITCH_DetailsGet]
@param_intSwitchID int
AS
BEGIN
SET NOCOUNT ON;
select SwitchDetailsID
,SwitchID
... |
--+ holdcas on;
-- create class with udt and insert data using other user
set system parameters 'create_table_reuseoid=no';
call login ('dba','') on CLASS db_user;
create USER user1;
CREATE TABLE StateCity(State CHAR(20), City CHAR(20));
CREATE TABLE Company (Name CHAR(20), Location StateCity not null primary KEY, ... |
# clusterInputTrackTableEncode3Tfbs.sql was originally generated by the autoSql program, which also
# generated clusterInputTrackTableEncode3Tfbs.c and clusterInputTrackTableEncode3Tfbs.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#In... |
delete from v1_medewerkers where number = 644834;
delete from v1_medewerkers where number = 644807;
delete from v1_medewerkers where number = 644815;
delete from v1_medewerkers where number = 644760;
delete from v1_medewerkers where number = 638538;
delete from v1_medewerkers where number = 638519;
delete from v1... |
--======================================================
--
-- Author: Radim Baca
-- Usage: Script creates a procedure single_II_test. In order to run/test the procedure use the run.sql script that can be found in the same directory of the project.
-- Database system supported/tested: SQL Server 2016
-- URL of the proj... |
--
-- @lc app=leetcode.cn id=595 lang=mysql
--
-- [595] 大的国家
--
-- https://leetcode-cn.com/problems/big-countries/description/
--
-- database
-- Easy (76.26%)
-- Likes: 109
-- Dislikes: 0
-- Total Accepted: 37.2K
-- Total Submissions: 48.8K
-- Testcase Example: '{"headers": {"World": ["name", "conti... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 22-11-2016 a las 14:44:16
-- Versión del servidor: 10.1.16-MariaDB
-- Versión de PHP: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... |
ALTER TABLE `amazon_eks_subnets` ADD COLUMN `availability_zone` VARCHAR(25) DEFAULT NULL;
|
create table ACT_ID_PROPERTY (
NAME_ varchar(64),
VALUE_ varchar(300),
REV_ integer,
primary key (NAME_)
);
insert into ACT_ID_PROPERTY
values ('schema.version', '6.5.1.6', 1);
create table ACT_ID_BYTEARRAY (
ID_ varchar(64),
REV_ integer,
NAME_ varchar(255),
BYTES_ longvarbinary,
... |
--SELECT AVG(CAST("Redfin1_4"."sold_above_list" AS float8)) AS "avg:sold_above_list:ok", "Redfin1_4"."region" AS "region", TABLEAU.TO_DATETIME(DATE_TRUNC('MONTH', TABLEAU.NORMALIZE_DATETIME("Redfin1_4"."period_end")), "Redfin1_4"."period_end") AS "tmn:period_end:ok" FROM "Redfin1_4" WHERE (("Redfin1_4"."region" IN ... |
drop table application.sgraph cascade;
create table application.sgraph (
src bigint,
dst bigint,
margin bigint
);
CREATE INDEX src_idx on application.sgraph (src);
CREATE INDEX dst_idx on application.sgraph (dst);
drop table application.sgraph_index cascade;
create table application.sgraph_index (
src bigint ... |
-- @testpoint: openGauss关键字exception(非保留),作为列名带反引号 合理报错
drop table if exists exception_test;
create table exception_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),
c_char char(5... |
-- Create Department array
INSERT INTO department (name)
VALUES
("Pharmacy"),
("Health and Beauty"),
("Electronics"),
("Front-End");
-- Create Role array
INSERT INTO role (title, salary, department_id)
VALUES
("Pharmacist", 120000, 1),
("Pharmacy Technician", 50000,1),
("Associate",... |
CRIAR TABELA `tb_Temas` (
`id` bigint (4) NOT NULL AUTO_INCREMENT,
`descricao` varchar (255) NÃO NULO,
CHAVE PRIMÁRIA (`id`)
);
CRIAR TABELA `tb_Postagens` (
`id` bigint (4) NOT NULL AUTO_INCREMENT,
`titulo` varchar (255) NÃO NULO,
`texto` varchar (255) NÃO NULO,
`data` TIMESTAMP NOT NULL,
`tema_id` bigint (4)... |
select * from WEBSITE where to_char(create_time,'yyyy-MM-dd')=to_char(sysdate,'yyyy-MM-dd') |
GENERATION_PROJECT build_year gen_overnight_cost gen_fixed_om
S-Geothermal 1998 5524200 0
S-NG_CC 2000 1143900 5868.3
S-NG_GT 1990 605430 4891.8
S-NG_GT 2002 605430 4891.8 |
--
-- 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;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 30, 2017 at 12:11 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : Dim 05 nov. 2017 à 18:08
-- Version du serveur : 5.5.54-0+deb8u1-log
-- Version de PHP : 5.6.30-0+deb8u1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00... |
-- RNGSEED: 1
-- EXPLAIN (FORMAT JSON)
select c_last_name
,c_first_name
,c_salutation
,c_preferred_cust_flag
,ss_ticket_number
,cnt from
(select ss_ticket_number
,ss_customer_sk
,count(*) cnt
from store_sales,date_dim,store,household_demographics
where ... |
# Write your MySQL query statement below
select
(select num
from number
group by num
having count(*) = 1
order by num desc
limit 1
) as num
|
CREATE TABLE users (
id BIGSERIAL PRIMARY KEY NOT NULL,
username VARCHAR(100),
password VARCHAR(100),
created_at TIMESTAMP WITHOUT TIME ZONE DEFAULT current_timestamp NOT NULL,
updated_at TIMESTAMP WITHOUT TIME ZONE DEFAULT current_timestamp NOT NULL
); |
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : CaretRegressor_rpart
-- Dataset : freidman2
-- 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 "DT_node_look... |
create table ACT_RU_TIMER_JOB (
ID_ nvarchar(64) NOT NULL,
REV_ int,
TYPE_ nvarchar(255) NOT NULL,
LOCK_EXP_TIME_ datetime,
LOCK_OWNER_ nvarchar(255),
EXCLUSIVE_ bit,
EXECUTION_ID_ nvarchar(64),
PROCESS_INSTANCE_ID_ nvarchar(64),
PROC_DEF_ID_ nvarchar(64),
RETRIES_ int,
EXCEPT... |
CREATE PROCEDURE [dbo].[SP_RoleMenuData_GetById]
@Id bigint
AS
select
a.*,b.NamaModule,c.NamaMenu,'' NamaPosisi,'' NamaParent,
c.Platform
from Role_MenuTree a
left join DataModule b on b.IdModul = a.IdModule
left join DataMenu c on c.idMenu = a.IdMenu
where IdRole = @Id |
SET SERVEROUTPUT ON;
DECLARE
vCtr Number;
vSQL VARCHAR2(2000);
vcurrSchema VARCHAR2(256);
BEGIN
SELECT sys_context( 'userenv', 'current_schema' ) into vcurrSchema from dual;
dbms_output.put_line('Current Schema: '||vcurrSchema);
SELECT COUNT(*)
INTO vCtr
FROM user_tables
WHERE tab... |
--Problem 4
INSERT INTO Towns(Id, Name) VALUES
(1, 'Sofia'),
(2, 'Plovdiv'),
(3, 'Varna')
INSERT INTO Minions(Id, Name, Age, TownId) VALUES
(1, 'Kevin', 22, 1),
(2, 'Bob', 15, 3),
(3, 'Steward', NULL, 2) |
SELECT
'attacl' AS deftype,
'PUBLIC' AS grantee,
NULL AS grantor,
NULL AS privileges,
NULL AS grantable
LIMIT 0;
|
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 192.168.10.15 (MySQL 5.5.5-10.1.12-MariaDB-1~trusty)
# Database: stockticker
# Generation Time: 2016-04-17 03:32:37 +0000
# ***************... |
INSERT INTO `role_user`(`role_id`, `user_id`) VALUES (1, 1);
INSERT INTO `role_user`(`role_id`, `user_id`) VALUES (1, 2);
INSERT INTO `role_user`(`role_id`, `user_id`) VALUES (4, 3);
|
CREATE TABLE scm_authoritative_legal_value(
seq BIGINT AUTO_INCREMENT PRIMARY KEY,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AdditionalType
* param: org.kyojo.schemaorg.m3n3.core.Clazz$URL
*/
additional_type VARCHAR(100) NULL,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AlternateName
... |
SELECT pgt FROM ' . $this->_getTable() . ' WHERE pgt_iou = :pgt_iou';
|
CREATE PROCEDURE [dbo].[Observation_Delete]
@Id BIGINT
AS
SET NOCOUNT ON;
DELETE FROM dbo.Observation WHERE ObservationId = @Id;
RETURN 0 |
SET NAMES utf8;
CREATE TABLE `champion_abilities` (
`id` int(6) NOT NULL,
`champion` int(6) NOT NULL,
`name` varchar(180) NOT NULL,
`description` text NOT NULL,
`effect` text NOT NULL,
`cost` varchar(180) NOT NULL,
`range` int(4) NOT NULL,
KEY `champion` (`champion`),
KEY `id` (`id`)
) ENGINE=InnoDB ... |
2 12
0 0 0 0 10 3
0 0 0 10 0 9
0 0 0 10 9 10
0 0 0 3 9 3
0 0 1 0 0 10
0 0 1 1 10 10
0 0 10 2 1 1
0 0 10 2 3 1
0 0 10 3 9 1
0 0 3 0 1 1
0 0 3 0 10 1
0 0 3 1 1 1
0 0 3 1 9 10
0 0 9 1 1 1
0 0 9 1 3 1
0 0 9 2 1 1
0 10 0 0 0 3
0 10 3 0 0 8
0 2 0 0 2 2
0 2 0 0 3 2
0 3 0 0 2 2
0 3 0 0 3 2
0 3 1 2 1 2
0 3 1 2 10 2
0 8 0 0 0 3
... |
create input stream S1
(id int, name String)
SOURCE kafkaInput
PROPERTIES ( "operator.kafka.groupid" = "gidkpi_1_1",
"operator.kafka.topic"="join_1",
"operator.kafka.zookeepers"="192.168.0.2:2181"
);
create input stream S2
(id int, type String)
SOURCE kafka... |
--- number
create table t1 (d1 double, i1 int, n1 numeric(10,3));
insert into t1 values (2.00123e1,3,100.21);
select ceil(d1) from t1;
select ceil(n1) from t1;
select ceil(i1) from t1;
drop table t1;
select ceil(4);
select ceil(4.4);
select ceil(4.001e1);
prepare st from 'select ceil(?)'
execute st using 4;
p... |
CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE (
PRODUCT_NAME VARCHAR (20),
PRIMARY KEY (PRODUCT_NAME)
);
INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server');
CREATE TABLE IF NOT EXISTS IDN_OAUTH_CONSUMER_APPS (
ID INTEGER NOT NULL AUTO_INCREMENT,
CONSUMER_KEY VARCHAR... |
INSERT [dbo].[t_jw_Specialty] ([SpecialtyKey], [SpecialtyID], [NameCh], [NameEn], [EduType], [DegreeType], [CreatorKey], [CreateDate], [ModifierKey], [ModifyDate], [DeleteFlg]) VALUES (N'7674a037-173a-f318-3553-4ef8a61bb8cd', N'003', N'化工+软件', N'huagong+ruanjian', N'非学历', N'法学', N'b41f690b-5e71-a71c-2bd7-f10e4b1b664c'... |
CREATE PROCEDURE [core].[base_Field_Update]
@Id int,
--@TableName varchar(64),
--@Name varchar(64),
@Title varchar(64),
--@Type varchar(64),
@IsHidden bit,
@IsDeleted bit,
@IsSystem bit,
@IsAutoGenerated bit,
@ShowInUi bit = 1,
@UiIndex int = 0
AS
BEGIN
UPDATE [Fields] SET
--[TableName]=@TableName,
--... |
-- --------------------------------------------------------------------------------
-- Routine DDL
-- Note: comments before and after the routine body will not be stored by the server
-- --------------------------------------------------------------------------------
DELIMITER $$
CREATE PROCEDURE addStaff(
in_... |
SELECT MIN(cn.name) AS producing_company,
MIN(lt.link) AS link_type,
MIN(t.title) AS complete_western_sequel
FROM title AS t
JOIN (movie_link AS ml JOIN link_type AS lt ON lt.id = ml.link_type_id) ON ml.movie_id = t.id
JOIN (movie_keyword AS mk JOIN keyword AS k ON mk.keyword_id = k.id) ON t.id = mk.movie... |
-- tables
DROP TABLE IF EXISTS `[db_prefix]_posts`, `[db_prefix]_rating`, `[db_prefix]_voting_track`, `[db_prefix]_main`, `[db_prefix]_cmts`, `[db_prefix]_views_track`;
-- PQ statistics
DELETE FROM `sys_account_custom_stat_elements` WHERE `Label` = '_bx_blog_Blog';
-- settings
SET @iCategoryID := (SELECT `ID` ... |
ALTER TABLE gspanother.TEST_TBL1 ADD CONSTRAINT PK_TEST1 PRIMARY KEY
(
TEST_TBL1_ID
); |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if object_id('<<ProcedureName>>') is not null
DROP PROCEDURE <<ProcedureName>>;
GO
CREATE PROCEDURE <<ProcedureName>>(
<<InputParams>>)
as
begin
set nocount on
-- local variables
declare
@err int,
@trancountonentry int,
... |
{{ config(
cluster_by = "_airbyte_emitted_at",
partition_by = {"field": "_airbyte_emitted_at", "data_type": "timestamp", "granularity": "day"},
unique_key = '_airbyte_ab_id',
schema = "_airbyte_test_normalization",
tags = [ "nested-intermediate" ]
) }}
-- SQL model to parse JSON blob stored in a sin... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: richa
-- Create date: 2013-03-15
-- Description: Update Azure entity status
-- =============================================
USE IndexDatastore;
IF OBJECT_ID('dbo.UpdateEntityStatus') IS NULL
EXEC('CREATE PROC... |
SELECT
fakultet.nastavnik.sifNastavnik
,CONCAT(fakultet.nastavnik.imeNastavnik," ",fakultet.nastavnik.prezNastavnik)
, AVG(fakultet.ispit.ocjena) AS prosjek
, sum(fakultet.ispit.ocjena) AS ukupno
FROM fakultet.ispit inner join fakultet.nastavnik
ON fakultet.ispit.sifNastavnik=fakultet.nastavnik.sifNastavnik
GROUP BY si... |
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016] 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 obtain ... |
-- boundary3.test
--
-- db eval {
-- SELECT t1.a FROM t1 JOIN t2 ON t1.rowid > CAST(t2.r AS real)
-- WHERE t2.a=18
-- ORDER BY t1.rowid DESC
-- }
SELECT t1.a FROM t1 JOIN t2 ON t1.rowid > CAST(t2.r AS real)
WHERE t2.a=18
ORDER BY t1.rowid DESC |
\connect finance
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
CREATE TABLE "AspNetRoles" (
"Id" text NOT NULL,
"Name" charac... |
INSERT INTO
public.users (username, status, age_range, catchphrase)
VALUES
('supabot', 'ONLINE', '[1,2)'::int4range, 'fat cat'::tsvector),
('kiwicopple', 'OFFLINE', '[25,35)'::int4range, 'cat bat'::tsvector),
('awailas', 'ONLINE', '[25,35)'::int4range, 'bat rat'::tsvector),
('dragarcia', 'ONLINE', ... |
-- 1,2,3,4,7,8,10,12,13,32
UPDATE properties
SET city_id = 1369
WHERE property_id IN (1, 3, 7, 10, 13)
UPDATE properties
SET city_id = 1371
WHERE property_id IN (2, 4, 8, 12, 32)
UPDATE pro
SET pro.selling_type_id = prst.selling_type_id
FROM property_owned pro
INNER JOIN property_selling_types prst ON pro.property... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.