sql stringlengths 6 1.05M |
|---|
-- file:updatable_views.sql ln:1010 expect:true
EXPLAIN (VERBOSE, COSTS OFF)
UPDATE v1 SET a=a+1 WHERE snoop(a) AND leakproof(a) AND a = 8
|
Create table If Not Exists Products (product_id int, store ENUM('store1', 'store2', 'store3'), price int);
Truncate table Products;
insert into Products (product_id, store, price) values ('0', 'store1', '95');
insert into Products (product_id, store, price) values ('0', 'store3', '105');
insert into Products (product_i... |
-- ==========================================
-- Alter Partition Function Merge template
-- ==========================================
USE <database_name, sysname, AdventureWorks>
GO
-- Create the partition function with an original defined range
CREATE PARTITION FUNCTION <partition_function_name, sysname, myRangePF> ... |
CREATE TABLE [RBK].[Patterns] (
[PatternId] INT IDENTITY (1, 1) NOT NULL,
[AFacePatternId] INT NOT NULL,
[BFacePatternId] INT NOT NULL,
[CFacePatternId] INT NOT NULL,
[XFacePatternId] INT NOT NULL,
[YFacePatternId] INT NOT NULL,
[ZFacePatternId] INT NOT NULL,
CONSTRAINT [PK_Pattern... |
select * from gv$asm_disk
select * from gv$asm_disk_iostat
select * from gv$asm_disk_stat
select * from gv$asm_file
select * from gv$asm_diskgroup
select * from gv$asm_diskgroup_stat
select * from gv$asm_volume_stat
select * from gv$iofuncmetric
select * from gv$iofuncmetric_history
select * from gv$iostat_f... |
-- 2012-02-29
-- refactored storage of relationships between pairs of columns within table joins
DROP TABLE data_table_relationship_data_table_column;
CREATE TABLE data_table_column_relationship
(
id bigserial NOT NULL,
relationship_id bigint,
local_column_id bigint,
foreign_column_id bigint,
CONSTRAINT data_... |
CREATE PROCEDURE [dbo].[Users_GetList]
@page int = 1,
@length int = 10,
@search nvarchar(MAX) = '',
@orderby int = 0
AS
BEGIN
SET NOCOUNT ON;
SELECT u.*, sec.total AS [security]
FROM Users u
CROSS APPLY (
SELECT
CASE WHEN u.userId = 1 THEN 999
ELSE COUNT(*) END AS total
FROM Security_Keys sk
WHER... |
x1, x2 |- (z)E.(A{x1,z}) ^ B{z,x2} |
<reponame>NCIP/cabio
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
create index NUCLEIC_ENCE_DISCRIMINA_lwr on NUCLEIC_ACID_SEQUENCE(lower(DISCRIMINATOR)) PARALLEL NOLOGGING tablespace CABIO_FUT;
create index ... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 16-Jun-2017 às 16:13
-- Versão do servidor: 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... |
<filename>BDD_2015/dump_structure_10-02-16.sql
--
-- 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;
--
-- Name: libertribes; Type: SCHEMA; Schema: -; ... |
use database PREDICTIVE_MAINTENANCE;
COPY INTO summary_sensor_data
From @%summary_sensor_data
FILE_FORMAT = ( TYPE = CSV, SKIP_HEADER=1 )
|
SELECT
g."name" AS gelaendename,
g.gem_bfs AS bfs_nr,
g.lieferdatum AS importdatum,
to_date(nf.gueltigereintrag, 'YYYYMMDD') AS nachfuehrung,
CASE
WHEN p.ori IS NULL THEN (100 - 100) * 0.9
ELSE (100 - p.ori) * 0.9
END AS orientierung,
CASE
WHEN p.hali_txt IS NULL TH... |
ALTER TABLE `BOSCO_DB`.`pets`
CHANGE COLUMN `gender` `gender` enum('macho','hembra') NOT NULL DEFAULT 'macho';
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jun 21, 2019 at 04:37 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
USE PeopleTracker;
GO
DELETE FROM Address;
DBCC CHECKIDENT ('Address', RESEED, 0);
INSERT INTO Address (AddressLine1, AddressLine2, AddressTypeId, City, IsPrimary, StateId, Zip) VALUES('554 Acher Place', 'Apt 209', 3, '<NAME>', 0, 16, '65478');
INSERT INTO Address (AddressLine1, AddressLine2, AddressTypeId, City, IsP... |
slct 1 frm unknown {{from_dual}}
|
/*
USAGE
1) Create Groups
2) For each attribute
2.1) Create custom attribute
2.2) Create localized display name
*/
/*
IF NOT EXISTS(SELECT 1
FROM dbo.GROUP
WHERE Group_Guid='<Group_Guid>')
BEGIN
INSERT INTO [dbo].[GROUP] (
[IsDeleted]
,[GroupName]
,[IsSystem]
,[Description]
,[SequenceNumber]... |
<gh_stars>1-10
select * from all_users; |
/**
* Bootcamp title: Amdocs Java Developer
* Instructor: <NAME>
* Example adapted by: <NAME>
* Date: January 15, 2022
*/
create database EstrelaDaMorte
USE EstrelaDaMorte
CREATE TABLE Planetas(
IdPlaneta int NOT NULL,
Nome varchar(50) NOT NULL,
Rotacao float NOT NULL,
Orbita float NOT NULL,
Diametro float ... |
<filename>src/test/resources/sql/insert/25b675b7.sql
-- file:line.sql ln:20 expect:true
INSERT INTO LINE_TBL VALUES ('[(3,1),(3,2)]')
|
ALTER TABLE DB.ODCLEANSTORE.DN_REPLACE_TEMPLATE_INSTANCES DROP CONSTRAINT DN_REPLACE_TEMPLATE_INSTANCES_DN_RULES_rawRuleId_id;
ALTER TABLE DB.ODCLEANSTORE.DN_REPLACE_TEMPLATE_INSTANCES ADD FOREIGN KEY (rawRuleId) REFERENCES DB.ODCLEANSTORE.DN_RULES_UNCOMMITTED(id) ON DELETE CASCADE;
ALTER TABLE DB.ODCLEANSTORE.DN_FILT... |
CREATE UNIQUE INDEX idx_validator_sequences_height_address ON validator_sequences(height, address);
CREATE UNIQUE INDEX idx_validator_group_sequences_height_address ON validator_group_sequences(height, address);
CREATE UNIQUE INDEX idx_system_events_height_actor_kind ON system_events(height, actor, kind);
CREATE UNIQU... |
--persons in cohort from cohort start time to cohort end time, in 30d increments
select CAST(CASE WHEN isNumeric(hr1.stratum_1) = 1 THEN hr1.stratum_1 ELSE null END AS INT) as month_year,
hr1.count_value as count_value,
round(1.0*hr1.count_value / denom.count_value,5) as percent_value
from (select * from @ohdsi_data... |
select /*+ LEADING(t1 t2) USE_NL(t2) */
sum(t1.num), sum(t2.num)
from table1 t1
join table2 t2 on (t1.id = t2.id);
@plan
|
/*
* This file is released under the terms of the Artistic License. Please see
* the file LICENSE, included in this package, for details.
*
* Copyright (C) 2003 <NAME> & Open Source Development Lab, Inc.
*
* Based on TPC-C Standard Specification Revision 5.0 Clause 2.8.2.
*/
CREATE OR REPLACE FUNCTION stock_lev... |
select
set,
scale,
pg_size_pretty(avg(dbsize)::int8) as db_size,
clients,
rate_limit,
round(avg(tps)) as tps,
round(1000 * avg(avg_latency))/1000 as avg_latency,
round(1000 * max(max_latency))/1000 as max_latency,
to_char(avg(end_time - start_time),'hh24:mi:ss') as runtime
from tests
group by set,sca... |
-- MODULE XTS749
-- SQL Test Suite, V6.0, Interactive SQL, xts749.sql
-- 59-byte ID
-- TEd Version #
-- AUTHORIZATION CTS1
SELECT USER FROM HU.ECCO;
-- RERUN if USER value does not match preceding AUTHORIZATION comment
ROLLBACK WORK;
-- date_time print
-- TEST:7049 Named table constraint in t... |
-- @testpoint:opengauss关键字Authorization(保留),作为模式名
--关键字不带引号-合理报错
drop schema if exists Authorization;
create schema Authorization;
--关键字带双引号-成功
drop schema if exists "Authorization";
create schema "Authorization";
--清理环境
drop schema "Authorization";
--关键字带单引号-合理报错
drop schema if exists 'Authorization';
create sche... |
<reponame>YangHao666666/hawq
DROP TABLE IF EXISTS test_ao_blocksize_65536;
CREATE TABLE test_ao_blocksize_65536 (c0 int8) with (appendonly=true, orientation=row, compresstype=none, blocksize=65536, checksum=false, compresslevel=0);
INSERT INTO test_ao_blocksize_65536 SELECT * FROM generate_series(1, 65536); |
<gh_stars>0
insert into timeseries(day, value) values ($1, $2);
|
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED xxcmx_test_down AS
import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
/**
*
* @author <NAME>
*/
public cla... |
<reponame>fikridivasambasri/Larave-Basic-1
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 01, 2020 at 05:31 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:0... |
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'organisation' AND COLUMN_NAME = 'phaseOfEducation')
BEGIN
ALTER TABLE [organisation]
ADD phaseOfEducation int
END
GO
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'organisation' AND COLUMN_N... |
<filename>db_goglow.sql
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 30, 2018 at 02:07 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.2.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00... |
<filename>application/server/DBsetup/tables.sql
CREATE TABLE user (
user_id int NOT NULL AUTO_INCREMENT,
username varchar(45) NOT NULL,
first_name varchar(45) DEFAULT NULL,
last_name varchar(45) DEFAULT NULL,
email varchar(255) NOT NULL,
password varchar(255) NOT NULL,
is_admin tinyint NOT NULL DEFAULT '0... |
/*CREATE EXTENSION pgcrypto;*/
-- DROP SCHEMA public CASCADE;
-- CREATE SCHEMA public;
create table Client (
id varchar(10),
fname varchar(20),
lname varchar(10),
street_name varchar(20),
city varchar(20),
state varchar(20),
zip_code int,
passcode varchar(100),
primary key(id)
);
/*DROP Tab... |
/*
Navicat Premium Data Transfer
Source Server : mypj
Source Server Type : MySQL
Source Server Version : 80012
Source Host : localhost:3306
Source Schema : bjyblog
Target Server Type : MySQL
Target Server Version : 80012
File Encoding : 65001
Date: 22/08/2019 16:25:5... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 19-10-2018 a las 04:16:42
-- Versión del servidor: 5.7.19
-- Versión de PHP: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*... |
insert into historico_status_laptop (historico_status_laptop_id, fecha_status, status_laptop_id, laptop_id) values (1, to_date('2007-10-22 21:00:31', 'yyyy-mm-dd hh24:mi:ss'), 4, 126);
insert into historico_status_laptop (historico_status_laptop_id, fecha_status, status_laptop_id, laptop_id) values (2, to_date('2017-06... |
CREATE TABLE [dbo].[logger_disk_utilisation_database]
(
[database_name] sysname,
[database_create_date] datetime,
[database_size_bytes] bigint,
[unallocated_space_bytes] bigint,
[reserved_bytes] bigint,
[data_bytes] bigint,
[index_size_bytes] bigint,
[unused_bytes] bigint,
[log_size_total_bytes] bigint,
[log... |
<filename>src/test/resources/walmode.test_40.sql<gh_stars>100-1000
-- walmode.test
--
-- execsql { PRAGMA main.journal_mode }
PRAGMA main.journal_mode |
-- file:money.sql ln:103 expect:true
SELECT '878.08'::money / 11::bigint
|
<filename>SQL/6KYU/simple_in.sql
SELECT d.id, d.name
FROM departments d
WHERE d.id IN (SELECT s.department_id FROM sales s WHERE s.price > 98.00); |
-- This file just queries for the currently applied tables/columns as an overview
SELECT
table_name,
column_name,
data_type,
column_default,
is_nullable
FROM
information_schema.columns
WHERE (table_schema = 'public')
ORDER BY
table_name,
is_nullable,
column_name;
|
<gh_stars>0
select case
when true then 100
when true then 200
else 999
end;
select case
when false then 100
when true then 200
else 999
end;
select case
when false then 100
when false then 200
else 999
end;
|
<reponame>turbot/steampipe-mod-gcp-compliance<filename>query/manual_control.sql
select
-- Required Columns
'https://cloudresourcemanager.googleapis.com/v1/projects/' || project_id resource,
'info' status,
'Manual verification required.' reason,
-- Additional Dimensions
project_id
from
gcp_project;
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Мар 28 2021 г., 19:30
-- Версия сервера: 5.6.47
-- Версия PHP: 7.2.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... |
CREATE TABLE funcmap (
funcid INTEGER PRIMARY KEY AUTOINCREMENT,
funcname VARCHAR(255) NOT NULL,
UNIQUE(funcname)
);
CREATE TABLE job (
jobid INTEGER PRIMARY KEY AUTOINCREMENT,
funcid INTEGER UNSIGNED NOT NULL,
arg MEDIUMBLOB,
uniqkey VARCHAR(255) NULL,
insert_time ... |
-- 计算各医院的患者分期
SELECT
[HOSPITAL_CODE],
[城市],
COUNT ( DISTINCT PATIENT_NO ) AS cout,
SUM ( CASE WHEN [TNM] = 'IA' THEN 1 ELSE 0 END ) IA,
SUM ( CASE WHEN [TNM] = 'IB' THEN 1 ELSE 0 END ) IB,
SUM ( CASE WHEN [TNM] = 'IIA' THEN 1 ELSE 0 END ) IIA,
SUM ( CASE WHEN [TNM] = 'IIB' THEN 1 ELSE 0 END ) IIB,
SUM ... |
USE icxp3_7;
/* Haz un listado de todos los trabajadores que han sido trasladados a una
agencia que no es su lugar de residencia. Añade el año en el que fueron trasladados */
SELECT e.codigo_empleado, e.nombre, e.apellido, e.id_ciudad_res, a.id_ciudad, c.nombre_ciudad, a.nombre_agencia, YEAR(f.fecha) AS año FROM emple... |
<gh_stars>1-10
{# ============= CREATE LANGUAGE Query ============= #}
{% import 'macros/privilege.macros' as PRIVILEGE %}
{% import 'macros/security.macros' as SECLABEL %}
{% if data.is_template %}
CREATE LANGUAGE {{ conn|qtIdent(data.name) }};
{% else %}
CREATE{% if data.trusted %} TRUSTED{% endif %} PROCEDURAL LANGU... |
-- Table: modes
DROP TABLE IF EXISTS modes;
CREATE TABLE modes
(
mode_name character varying(255),
mode_id integer NOT NULL,
CONSTRAINT modes_pkey PRIMARY KEY (mode_id)
)
WITH (
OIDS=FALSE
);
-- Table: switch_types
DROP TABLE IF EXISTS switch_types;
CREATE TABLE switch_types
(
type_name charact... |
<reponame>Azure-Samples/millionsongdataset-sql
/*
Importing and using the Million Song Dataset (https://labrosa.ee.columbia.edu/millionsong/) in Azure SQL DB / SQL Server
Citation:
<NAME>, <NAME>, <NAME>, and <NAME>.
The Million Song Dataset. In Proceedings of the 12th International Society
for Music Information Retr... |
INSERT INTO user(id,password,username,email_id, phone_no,is_active, is_deleted,org_id)
value(147,'$2a$10$fGCOo1khhaxJWRQJ0EsmbODPtvn.cQq/wX7RZ6GMnjypSBzSPHDw6','<EMAIL>', '<EMAIL>', null, true,false,5000);
INSERT INTO user_role(user_id, role_id, org_id)
value(147,2000,5000);
INSERT INTO country(id,code,name,currenc... |
<reponame>jakmeier/paddlers-browser-game
ALTER TABLE players
DROP COLUMN civ_perks; |
<reponame>sirko85/german-weather-warnings
CREATE TABLE checks(
id INT PRIMARY KEY,
datum DATE
);
CREATE TABLE weather_warnings(
id INT PRIMARY KEY,
msgType VARCHAR(50),
event VARCHAR(255),
gruppe VARCHAR(100),
color VARCHAR(12),
headline TEXT,
description TEXT,
datum DATE DEFAULT (datetime('now','localtime')),
'is_chec... |
<reponame>tharangar/k8s-webserver
-- db_patches
INSERT INTO `db_patches` VALUES ('PHPOE-1346');
-- security_functions
UPDATE `security_functions` SET `_view` = 'Students.index|Students.view|StudentUser.view|StudentAccount.view|StudentSurveys.index|StudentSurveys.view', `_edit` = 'Students.edit|StudentUser.edit|Student... |
<reponame>cb-deepak/pgcodekeeper
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE TABLE [dbo].["t_work"] (
[id] [int])
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE TABLE [dbo].["t_chart"] (
[id] [int])
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW [dbo].[v_subselect] AS
... |
<reponame>haolinw/gpdb
-- ip4r extension
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION ip4r" to load this file. \quit
-- ----------------------------------------------------------------------
-- Type definitions
-- type creation is needlessly chatty
CREATE TY... |
--V_CONTAS_PAGAR
--CONTAS_PAGAR,FORNECEDORES
--SELECT * FROM V_CONTAS_PAGAR
CREATE OR REPLACE VIEW V_CONTAS_PAGAR as
SELECT A.cod_empresa,A.id_doc,A.id_for,B.razao_fornec,A.parc,A.data_venc,A.data_pagto,A.valor,
CASE WHEN A.data_pagto IS NULL THEN 'ABERTO'
ELSE 'PAGO' END SITUACAO,
... |
<filename>datalayer/sqlite/migrations/00001_init.down.sql
DROP TABLE users;
DROP INDEX users_email;
DROP TABLE positions;
DROP INDEX user_positions;
|
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 11, 2018 at 04:11 PM
-- Server version: 5.6.38
-- 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 @OLD_CHARACT... |
SELECT e.EmployeeID,
e.FirstName,
m.EmployeeID,
m.FirstName AS [ManagerName]
FROM Employees e
JOIN Employees m ON e.ManagerID = m.EmployeeID
WHERE m.EmployeeID IN (3, 7)
ORDER BY e.EmployeeID
|
<filename>docker-pg-server/ticket_sales.sql
-- Table: public.ticket_sales
-- DROP TABLE public.ticket_sales;
set timezone to 'UTC';
CREATE TABLE public.ticket_sales
(
salesid integer PRIMARY KEY,
listid integer,
sellerid integer,
buyerid integer,
eventid integer,
dateid integer,
qtysold integer,
pricepaid numeric,
... |
<reponame>DenisBuserski/Softuni_Java_DB_MySQL<filename>Database_Basics_MySQL_Exam_20_June_2021/Regular_Clients_08.sql
SELECT
`c`.`full_name`,
COUNT(`cars`.`id`) AS `count_of_cars`,
SUM(`cour`.`bill`) AS `total_sum`
FROM
`cars`
LEFT JOIN
`courses` AS `cour` ON `cars`.`id` = `cour`.`car_id`
... |
CREATE TABLE `db_name`.`log` ( `id` INT NOT NULL AUTO_INCREMENT , `date` TIMESTAMP NOT NULL , `temperature` FLOAT NOT NULL , `humidity` FLOAT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB; |
CREATE OR REPLACE VIEW pantry.guests_status_count_all
AS SELECT guests.status, count(guests.status) AS count
FROM pantry.guests
GROUP BY guests.status;
|
<reponame>seftianhanafi20/Tugas-PKL
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 23 Jun 2021 pada 04.58
-- Versi Server: 10.1.29-MariaDB
-- PHP Version: 7.2.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone... |
<filename>2021/day10-plpgsql/day10.sql
DROP TABLE IF EXISTS input;
CREATE TABLE input(
line varchar
);
DROP TABLE IF EXISTS error_scores;
CREATE TABLE error_scores(
ch varchar,
score int
);
INSERT INTO error_scores(ch, score) VALUES (')', 3), (']', 57), ('}', 1197), ('>', 25137);
COPY input FROM '/inputs... |
<filename>pmrvic/osmove-mysql/pozovi funkciju ime predaj mbr a vrati ime studenta.sql
CALL `ime`('1120', @a);
SELECT @a; |
<gh_stars>1-10
LOAD DATA INFILE '/path/to/file.csv' -- change this to location of csv
INTO TABLE digitale_strategie_Hasselt.siegfried
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(@filename, filesize, modified, errors, md5, namespace, id, format, version, mime, basis, warning)
SET fil... |
DROP TABLE IF EXISTS subscriber;
DROP INDEX IF EXISTS subscriber_username_idx;
DELETE FROM version WHERE table_name = 'subscriber'; |
<reponame>PC-Axis/PxStat
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 28/09/2018
-- Description: Update a language.
-- =============================================
CREATE
OR
ALTER PROCEDURE System_Settings_Language_Update @Lng... |
<reponame>Shuttl-Tech/antlr_psql
-- file:create_am.sql ln:46 expect:true
SET enable_bitmapscan = OFF
|
<reponame>overachiever-productions/s4<gh_stars>1-10
/*
vNEXT:
look at potentially impossing optional @Thresholds into play for disks.
e.g., let's say that the output of the sample execution below shows that
drive D is hitting 12K IOPs and doing 898MB/sec...
it'd be NICE to put in something like:
... |
DROP TABLE IF EXISTS `#__banners`;
DROP TABLE IF EXISTS `#__banner_clients`;
DROP TABLE IF EXISTS `#__banner_tracks`;
|
-- +migrate Up
CREATE INDEX htrd_pair_pid ON history_trades USING BTREE(base_asset_id, counter_asset_id, history_operation_id, "order");
-- +migrate Down
DROP INDEX htrd_pair_pid;
|
<gh_stars>0
-- Create schema : public
CREATE SCHEMA IF NOT EXISTS public; |
<filename>org.eniware.edge.dao.jdbc/src/org/eniware/edge/dao/jdbc/derby-init-update-3.sql
ALTER TABLE eniwareedge.sn_settings
ALTER COLUMN skey SET DATA TYPE VARCHAR(255);
UPDATE eniwareedge.sn_settings SET svalue = '3'
WHERE skey = 'eniwareedge.sn_settings.version';
|
-- $Id$
alter table WF_ASSIGNMENT add SUBPROC_CARD_ID uuid^
alter table WF_ASSIGNMENT add constraint WF_ASSIGNMENT_SUBPROC_CARD foreign key (SUBPROC_CARD_ID) references WF_CARD(ID)^
alter table WF_ASSIGNMENT add FAMILY_ASSIGNMENT_ID uuid^
alter table WF_ASSIGNMENT add constraint WF_ASSIGNMENT_FAMILY_ASSIGNMENT fore... |
INSERT INTO TradeSessions("inviterUuid",
"inviterIdentityId",
"inviterEthAddr",
"invitedUuid",
"invitedIdentityId",
"invitedEthAddr",
"createRequestId",
... |
-- // CB-13455_add_EncryptionKey_for_create-gcp-environment_in_cli
-- Migration SQL that makes the change goes here.
ALTER TABLE environment_parameters ADD COLUMN IF NOT EXISTS encryption_key text;
-- //@UNDO
-- SQL to undo the change goes here.
ALTER TABLE environment_parameters DROP COLUMN IF EXISTS encryption_key;... |
-- MySQL dump 10.13 Distrib 5.5.55, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: db1
-- ------------------------------------------------------
-- Server version 5.5.55-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA... |
DROP TABLE IF EXISTS t_a, t_b;
CREATE TABLE t_a
(
col_a INT,
col_b INT,
col_c INT
);
CREATE TABLE t_b
(
col_a INT,
col_b INT,
col_c INT
);
--subquery check. has outer join spec (unmergable)
CREATE OR replace VIEW v
AS
SELECT a.col_a,
a.col_b
FROM t_a a,
t_... |
<gh_stars>0
DROP TABLE IF EXISTS `car`;
CREATE TABLE `car` (
`id` BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(128) DEFAULT NULL,
`brand` VARCHAR(128) DEFAULT NULL,
`brand_type` VARCHAR(128) DEFAULT NULL,
`car_type_id` VARCHAR(128) DEFAULT NULL,
`mileage` INT(10) UNSIGNED DEFAULT ... |
ALTER TABLE [dbo].[SFN_Display]
ADD CONSTRAINT [PK_SFN_Display] PRIMARY KEY CLUSTERED ([idDisplayLine] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF);
|
<filename>src/bdd/sql-scripts/03_sprint.sql
CREATE TABLE sprint (
project int,
id int,
name TEXT,
state ENUM('pending', 'active', 'archived'),
CONSTRAINT PK_ID PRIMARY KEY (project, id),
FOREIGN KEY (project) REFERENCES project(id) ON DELETE CASCADE
);
DELIMITER |
CREATE PROCEDURE insert_sprin... |
CREATE TABLE [Invalid].[LearningDeliveryFAM] (
[LearningDeliveryFAM_Id] INT NOT NULL,
[LearningDelivery_Id] INT NULL,
[UKPRN] INT NOT NULL,
[LearnRefNumber] VARCHAR (100) NULL,
[AimSeqNumber] BIGINT NULL,
[LearnDelF... |
INSERT INTO `semestre` (`id`, `course_id`, `schoolYear`, `delay`, `semestreFullName`, `beginDate`, `endDate`) VALUES
(5, 1,2018, 0, '2018 S1 - Normal', '2018-09-01 00:00:00', '2018-09-01 00:00:00'),
(7, 2,2019, 0, '2019 S2 - Normal', '2019-01-30 00:00:00', '2019-01-30 00:00:00');
INSERT INTO `promo` (`id`, `semestre_... |
-- phpMyAdmin SQL Dump
-- version 5.1.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 18, 2022 at 08:15 AM
-- Server version: 5.7.33
-- PHP Version: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
<filename>sql/yjbb/600052.sql<gh_stars>0
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600052',@CutoffDate = N'2017-09-30',@EPS = N'0.05',@EPSDeduct = N'0',@Revenue = N'1.98亿',@RevenueYoy = N'-56.02',@RevenueQoq = N'-66.98',@Profit = N'3997.95万',@ProfitYoy = N'-90.99',@ProfiltQoq = N'-37.13',@NAVPerUnit = N'2.4678',@ROE = N'1.9... |
<filename>database/schema.sql<gh_stars>0
create table salary(
ID int(11) not null auto_increment,
USER_SALARY varchar(255),
USERNAME varchar(20),
primary key (id)
);
create table late(
ID int(11) not null auto_increment,
LATE_VALUE int(100),
primary key(id)
);
alter table user_role add SALARY varchar(255);
cr... |
<filename>src/CBData/dbo/Stored Procedures/spAddress_Insert.sql<gh_stars>0
CREATE PROCEDURE [dbo].[spAddress_Insert]
@Id int,
@AddressTypeID int,
@PersonID int,
@HomeNumber nvarchar(50),
@Street nvarchar(50),
@City nvarchar(50),
@Country nvarchar(50)
AS
begin
set nocount on;
insert into dbo.[Address](Address... |
<reponame>gnoirzox/toucan-assignment
CREATE SCHEMA IF NOT EXISTS toucan DEFAULT CHARACTER SET LATIN1;
USE toucan;
CREATE TABLE IF NOT EXISTS students (
studentid BIGINT NOT NULL AUTO_INCREMENT,
name VARCHAR(50) NOT NULL,
email VARCHAR(250) NOT NULL,
PRIMARY KEY(studentid)
) ENGIN... |
SET NAMES utf8;
SET time_zone = '+00:00';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
-- you must create the database school_aop
USE `school_aop`;
DROP TABLE IF EXISTS loans;
DROP TABLE IF EXISTS books;
DROP TABLE IF EXISTS users;
CREATE TABLE `users` (
`id` INT(11) UNSIGNED NOT NUL... |
<filename>Back/database/Export/TExportInfo.sql
CREATE TABLE TImportInfo(
ImportInfoName VARCHAR(100),
ImportInfoValue VARCHAR(100)
) |
CREATE PROC [dbo].[DatabasesHADR_Upd](@DatabasesHADR DatabasesHADR READONLY,@InstanceID INT,@SnapshotDate DATETIME2(2))
AS
SET XACT_ABORT ON;
DECLARE @Ref VARCHAR(30)='DatabaseHADR'
IF NOT EXISTS(SELECT 1 FROM dbo.CollectionDates WHERE SnapshotDate>=@SnapshotDate AND InstanceID = @InstanceID AND Reference=@Ref)
BEGIN... |
<reponame>gitter-badger/semaphore
drop table project__template_schedule;
create table `project__schedule`
(
`id` integer primary key autoincrement,
`template_id` int references project__template (`id`) on delete cascade,
`project_id` int not null references project (`id`) on delete cascade,
`cron_forma... |
<gh_stars>1-10
DELETE FROM db.db_news_group;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.