sql stringlengths 6 1.05M |
|---|
-- Add fields to FilepathResultHarnessed to help common searches
alter table FilepathResultHarnessed add datatype varchar(255) COMMENT "datatype used to register in Data Catalog" after catalogKey;
alter table FilepathResultHarnessed add basename varchar(255) COMMENT "extracted from full filepath stored in value" after ... |
<reponame>Alphinha/ordem
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 01-Abr-2020 às 04:04
-- Versão do servidor: 10.1.34-MariaDB
-- PHP Version: 5.6.37
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+0... |
<gh_stars>0
DROP SCHEMA IF EXISTS `security`;
CREATE DATABASE IF NOT EXISTS `security`;
USE `security`;
--
-- Table structure for table `book_detail`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`id` bigint NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`first_name` varchar(... |
<gh_stars>0
CREATE KEYSPACE IF NOT EXISTS voc_test_keyspace
WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
};
USE voc_test_keyspace;
CREATE TABLE calendly_invitee_stream (
assigned_to text,
day text,
bucket int,
ts timeuuid,
payload text,
primar... |
<filename>sources/PathFinding/TESTING/output/test004.sql<gh_stars>0
-- Test finished
INSERT INTO result(alg,vertcount,edgecount,elenadd,conn,task,cycles,batchname,result)
VALUES('bellmanfordlimit',
1000,
39185,
25,
... |
/*
SELECT name, description, input_schema, output_schema, cron_frequent , enable
FROM job_task.task_type;
delete from job_task.task where output is not null
SELECT uuid, task_type_name, "input", "output", history, start_time, end_time, error, finish, created_time
FROM job_task.task;
SELECT uuid, task_type_name , ... |
<reponame>wk-j/full-text-search
ALTER TABLE "Students" ALTER "ThaiText" TYPE text COLLATE "C" |
ALTER TABLE "public"."patient_test_detail" ADD COLUMN "result" text NOT NULL;
|
DROP INDEX IF EXISTS nodes_index_lon;
DROP INDEX IF EXISTS nodes_index_lat;
CREATE INDEX nodes_index_lon ON nodes(lon);
CREATE INDEX nodes_index_lat ON nodes(lat);
DROP TABLE IF EXISTS direct_walk_in_nodes;
CREATE TABLE direct_walk_in_nodes AS (
SELECT id,loc,square1,square2 FROM nodes
WHERE walk = true AND inside =... |
<reponame>heyas/country-list
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES ('AF', 'Afghánistán');
INSERT INTO "list" ("id", "value") VALUES ('AX', 'Ålandy');
INSERT INTO "list" ("id", "value") VALUES ('AL', 'Albánie');
INSERT INTO "l... |
INSERT INTO [dwh].[DimProduct]
([IdProduct]
,[Product]
,[Description]
,[Price]
,[Available]
,[IdCategory]
,[ProductCategory])
SELECT p.[Id] as IdProduct
,p.[Title] as Product
,[Description]
,[Price]
,[Available]
... |
-- Table: "Music"
-- DROP TABLE "Music";
CREATE TABLE "Music"
(
"Uri" character varying(255) NOT NULL,
"CreatedAt" timestamp(6) with time zone,
"UpdatedAt" timestamp(6) with time zone,
"ProcessedAt" timestamp(6) with time zone,
"Content" text,
CONSTRAINT "PrimaryKey_Music_Uri" PRIMARY KEY ("Uri")
)
WITH ... |
begin;
drop table if exists afl.results;
create table afl.results (
game_id integer,
year integer,
game_date date,
team_name text,
opponent_name text,
field text,
team_score integer,
opponent_score integer
);
insert into afl.results
(game_id,
year,
game_d... |
<filename>Queries/SQLQuery3.sql
USE se_db_pzdr;
CREATE TABLE tbl_items(
ID INT PRIMARY KEY NOT NULL,
Name VARCHAR(50) NULL,
Price VARCHAR(5) NULL
);
SELECT * FROM tbl_items;
|
CREATE TABLE GR_PERIODE_OVERGANGSSTONAD
(
ID BIGINT PRIMARY KEY,
FK_BEHANDLING_ID BIGINT REFERENCES BEHANDLING (ID) NOT NULL,
PERSON_IDENT VARCHAR NOT NULL,
FOM TIMESTAMP(3) NOT NULL,
TOM TIMESTAMP(3) ... |
<filename>test/sql/mysql.sql<gh_stars>100-1000
CREATE TABLE authors(
author_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
parent_author_id INT,
publisher_id INT,
name VARCHAR(25) NOT NULL DEFAULT 'default_name',
updated_at datetime,
created_at datetime,
some_Date date,
some_time time,
some_text text,
some_enum ... |
<gh_stars>10-100
CREATE EXTERNAL TABLE [fhir].[HealthcareService] (
[resourceType] NVARCHAR(4000),
[id] VARCHAR(64),
[meta.id] NVARCHAR(4000),
[meta.extension] NVARCHAR(MAX),
[meta.versionId] VARCHAR(64),
[meta.lastUpdated] VARCHAR(30),
[meta.source] VARCHAR(256),
[meta.profile] VARCHAR(... |
CREATE TABLE [dbo].[sqlwatch_config_report_style]
(
[report_style_id] smallint identity(1,1) not null,
[style] nvarchar(max) not null,
[date_created] datetime not null constraint df_sqlwatch_config_report_style_date_created default (getdate()),
[date_updated] datetime null,
constraint pk_sqlwatch_config_report_st... |
<filename>revert/current_user.sql
-- Revert postgraphile_user_system:current_user from pg
BEGIN;
drop function app_public.current_user();
COMMIT;
|
# Host: localhost (Version: 5.5.53)
# Date: 2019-09-13 22:05:47
# Generator: MySQL-Front 5.3 (Build 4.234)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "cart"
#
DROP TABLE IF EXISTS `cart`;
CREATE TABLE `cart` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`cart_oid` varchar(255) DEFAULT NULL,
`cart_gid` va... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 24-04-2014 a las 20:14:28
-- Versión del servidor: 5.6.16
-- Versión de PHP: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
-----------------------------------------------------------------------------
-- authtemptokens
-----------------------------------------------------------------------------
DROP TABLE authtemptokens CASCADE CONSTRAINTS;
CREATE TABLE authtemptokens
(
ID VARCHAR2(100) NOT NULL,
token VARCHAR2(100),
... |
alter table "public"."reviews" drop constraint "reviews_reviewType_fkey"
|
library Retrieve
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'
codesystem loinc: 'http://loinc.org'
context Specimen
define Patient:
singleton from ([Patient])
define InInitialPopulation:
exists([Patient -> Observation: Code '39156-5' from loinc])
|
<gh_stars>10-100
CREATE TABLE public.testtable (
id bigint,
name character varying(30)
);
CREATE VIEW public.testview AS
SELECT testtable.id, testtable.name FROM public.testtable; |
<reponame>nurikk/gpdb<filename>gpMgmt/bin/gppylib/test/behave/mgmt_utils/steps/data/gptransfer/post/ddl/create_functions.sql
\c gptest;
--start_ignore
drop table if exists ddl_plpgsql_t2;
--end_ignore
create table ddl_plpgsql_t2( a int );
BEGIN;
select ddl_insertData(1);
DROP FUNCTION ddl_insertData(integer);
|
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 06, 2021 at 07:12 PM
-- Server version: 8.0.23-0ubuntu0.20.04.1
-- PHP Version: 7.2.34-8+ubuntu18.04.1+deb.sury.org+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTI... |
-- sysmetric-history.sql
-- <NAME> - 2015-10-21
--
-- <EMAIL>
col vinstance new_value vinstance
select lower(instance_name) vinstance from v$instance;
@clear_for_spool
set line 400 trimspool on
set term off
spool sysmetric-hist-&&vinstance..csv
prompt END_INTERVAL_TIME,AAS,SINGLE_BLOCK_READ_LATENCY,IO_MB_PER_SEC,... |
-- Table structure for table `users`
CREATE TABLE IF NOT EXISTS `users` (
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`email` VARCHAR(255) NOT NULL,
`first_name` VARCHAR(255) NOT NULL,
`last_name` VARCHAR(255) NOT NULL,
`password` CHAR(128) NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
... |
<gh_stars>0
/*
Warnings:
- You are about to drop the `user` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropTable
DROP TABLE `user`;
-- CreateTable
CREATE TABLE `users` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3)... |
insert into passhash (user_handle, passhash, mod_date) values
('037b4897-8a2a-46b6-8ed7-47a555bb40f2', '$2a$10$RNki7aWKS6386IIR9PyFpOrY7ljeVweyD3H5HejDj9tHbR1.yjUY.', now()),
('17832b68-e91e-45f4-9a92-042c69b1b9c5', '$2a$10$RNki7aWKS6386IIR9PyFpOrY7ljeVweyD3H5HejDj9tHbR1.yjUY.', now()),
on conflict do nothing... |
<filename>sixtysixten.sql
-- MySQL dump 10.13 Distrib 5.5.58, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: sixtysixten
-- ------------------------------------------------------
-- Server version 5.5.58-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET ... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.1.31-MariaDB - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Version: 9.5.0.5196
-- ------------------------------------------------... |
CREATE TRIGGER tr_DeleteProductRelations ON Products
INSTEAD OF DELETE
AS
BEGIN
DELETE FROM ProductsIngredients
WHERE ProductId = (SELECT Id FROM deleted)
DELETE FROM Feedbacks
WHERE ProductId = (SELECT Id FROM deleted)
DELETE FROM Products
WHERE Id = (SELECT Id FROM deleted)
END |
DELETE FROM prod_products;
DELETE FROM prod_partners;
DELETE FROM prod_orders;
DELETE FROM prod_order_items;
DELETE FROM prod_order_log;
INSERT INTO prod_partners (code, name) VALUES ('TER', 'Tersus');
INSERT INTO prod_products (sku, title, price, currency, category, brand, stock, weight) VALUES ('st_klor_1', 'Stabil... |
SELECT * FROM ms_produk WHERE nama_produk = 'Gantungan Kunci DQLab' OR nama_produk = 'Tas Travel Organizer DQLab' OR nama_produk = 'Flashdisk DQLab 64 GB'; |
USE employee_DB;
INSERT INTO department
(name)
VALUES
('Manager'),
('Web Dev'),
('Legal');
INSERT INTO role
(title, salary, department_id)
VALUES
('Project Manager', 150000, 1),
('Full Stack Dev', 200000, 2),
('Lawyer', 250000, 3);
INSERT INTO employee
(first_name, last_name,... |
ALTER TABLE membrefamille ALTER COLUMN communedenaissance_code DROP not null; |
-- Generate SQL
-- Version: V7R1M0 100423
-- Generated on: 10/24/16 12:16:41
-- Relational Database: S105R9YM
-- Standards Option: ISO
CREATE TABLE TGMSDATA.FHORDR(
-- SQL150B 10 REUSEDLT(*NO) in table FHORDR in TGMSDATA ignored.
-- SQL1509 10 ... |
--alter_schema_cursos.sql
drop table cursos.estados;
create sequence cursos.estados_id_estados;
create table cursos.estados (
id_estado integer PRIMARY KEY DEFAULT nextval('cursos.estados_id_estados'),
descripcion varchar(50) NOT NULL
);
insert into cursos.estados (descripcion) values
('Planificado'),
('Diseñado'... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 10, 2018 at 07:11 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... |
-- HTTP errors codes
INSERT INTO LABELS(LABEL_ID, CODE, LANG_FR, LANG_EN, LANG_ZH, VERSION)
VALUES (SEQ_LABELS.nextval, 'HTTP_400_BAD_REQUEST', 'Erreur HTTP 400 : arguments manquants / mauvaises conditions / requête non conforme', 'HTTP error 400: missing arguments / wrong conditions / malformed request', 'HTTP 40... |
<gh_stars>0
-- 010_out sql copy script into primus_archetype
---------------------------------------------------------------------
-- This script is a template to insert data into postgresql tables
-- from a csv file (with ; as delimiter) on the server.
--
-- The csv file must only contain the necessary columns i... |
select d.id,
d.name
from store_category d
where d.store_id = $1
order by d.time_created; |
<gh_stars>1-10
--DECLARE @PeriodStart DateTime = '2019-01-01'
--DECLARE @PeriodEnd DateTime = '2020-01-01'
--DECLARE @TerminalId int = null
--DECLARE @PointOfSaleId int = null
--DECLARE @Kind int = 4
--DECLARE @HourOffset int = 2
SELECT
@Kind AS Kind
,MIN(DATEADD(hour, @HourOffset, o.Created)) EarliestOrderCreated
... |
<reponame>jaydeesimon/vetd-app
ALTER TABLE vetd.round_category
ADD PRIMARY KEY (id) |
create index ad_pinstance_ad_scheduler_id on ad_pinstance(ad_scheduler_id);
|
CREATE TABLE layeredpriceindex (
id CHAVE NOT NULL,
id_product CHAVE NOT NULL,
id_currency CHAVE NOT NULL,
id_shop CHAVE NOT NULL,
price_min INTEGER NOT NULL,
price_max INTEGER NOT NULL,
CONSTRAINT pk_layeredpriceindex PRIMARY KEY (id)
); |
USE bdEscolaIdioma
INSERT tbAluno(nomeAluno, dataNascAluno, rgAluno, naturalidadeAluno)
VALUES ('<NAME>', '10/03/2000', '82.292.122-0', 'SP')
, ('<NAME>', '03/10/1999', '45.233.123-0', 'SP')
, ('<NAME>', '04/04/1998', '23.533.211-9', 'SP')
, ('<NAME>', '09/09/1995', '34.221.111-x', 'PE')
, ('<NAME>', '10/10/2001',... |
<gh_stars>0
{%- macro sqlserver__convert_timezone(column, target_tz, source_tz) -%}
({{column}} AT TIME ZONE '{{source_tz}}') AT TIME ZONE '{{target_tz}}'
{%- endmacro -%} |
(
SELECT 1
UNION
SELECT 2
)
UNION
(
SELECT 3
UNION
SELECT 4
);
SELECT 1
FROM a
UNION ALL
SELECT 2
FROM a;
SELECT 1
FROM a
UNION DISTINCT
SELECT 2
FROM a;
(SELECT 1
FROM a)
UNION
SELECT 2
FROM a;
((SELECT 1
FROM a))
UNION
(SELECT 2
FROM a);
(((SELECT 1
FROM a LIMIT 1)))
UNION
(... |
<reponame>andreylipattsev/almanac.httparchive.org<filename>sql/2020/accessibility/common_aria_role.sql<gh_stars>1-10
#standardSQL
# % of sites using each type of aria role
CREATE TEMPORARY FUNCTION getUsedRoles(payload STRING)
RETURNS ARRAY<STRING> LANGUAGE js AS '''
try {
const almanac = JSON.parse(payload);
retur... |
<filename>src/oc_erchef/schema/baseline/deploy/cookbook_version_dependencies.sql
-- Deploy cookbook_version_dependencies
-- requires: cookbook_versions
-- requires: cookbooks
BEGIN;
CREATE OR REPLACE VIEW cookbook_version_dependencies(
org_id, -- for filtering
name, -- cookbook name
major,
minor,
... |
CREATE TABLE IF NOT EXISTS systems (
name VARCHAR(64),
value VARCHAR(1024),
PRIMARY KEY (name)
);
|
WITH TCURX AS (
-- Joining to this table is necesssary to fix the decimal place of
-- amounts for non-decimal-based currencies. SAP stores these amounts
-- offset by a factor of 1/100 within the system (FYI this gets
-- corrected when a user observes these in the GUI) Currencies w/
-- decimals are unimpa... |
/* pre comment preserved */
CREATE TABLE posts (
id bigint unsigned NOT NULL AUTO_INCREMENT primary key,
user_id bigint unsigned NOT NULL,
body varchar(150),
created_at int unsigned,
index user_created (user_id, created_at)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- post comment preserved |
-- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml HAWQ
-- @db_name dmldb
-- @description test15: Join with DISTINCT
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
SELECT COUNT(*) FROM dml_co_s;
SELECT COUNT(*) FROM (SELECT DISTINCT dml_c... |
REPLACE INTO `upload_type` (`id`, `created`, `updated`, `name`, `slug`, `status`) VALUES (1,'1970-01-01 00:00:00','1970-01-01 00:00:00','Protocol','protocol',1);
REPLACE INTO `upload_type` (`id`, `created`, `updated`, `name`, `slug`, `status`) VALUES (2,'1970-01-01 00:00:00','1970-01-01 00:00:00','Others','others',1);
... |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 23, 2020 at 01:10 PM
-- Server version: 10.3.15-MariaDB
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... |
# --- !Ups
create table tweets(
id Long not null PRIMARY KEY,
text varchar(255) not null,
author varchar(255) not null,
link varchar(255) not null
);
insert into tweets values(1, 'aa bb cc', 'g.gerasimov', 'link');
insert into tweets values(2, 'aa dd', 'g.gerasimov', 'link');
inse... |
UPDATE role SET name = 'ADMIN' WHERE id = '1';
UPDATE role SET name = 'USER' WHERE id = '2'; |
-- =============================================
-- Author: <NAME>
-- Create date: 9/18/06
-- Description:
-- =============================================
CREATE PROCEDURE [dbo].[usp_deleteProjectExpense]
-- Add the parameters for the stored procedure here
@ExpenseID int
AS
BEGIN
-- SET NOCOUNT ON added to pre... |
<reponame>FelipeBelloDultra/yakizakana-web<filename>utils/21-05-2002-yakizakana.sql
CREATE TABLE funcionarios (
id_funcionario BIGINT(11) NOT NULL AUTO_INCREMENT,
nome VARCHAR(100) NULL,
email VARCHAR(100) NULL,
senha VARCHAR(100) NULL,
cpf CHAR(11) NULL,
contato CHAR(11) NULL,
PRIMARY KEY(id_funcionario)... |
<filename>loginform.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 23, 2021 at 04:23 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET ... |
INSERT INTO `customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison');
INSERT INTO `items` (`item_name`, `cost`) VALUES ('Fifa22', 59.99);
INSERT INTO `orders` (`fk_customer_id`) VALUES ('1');
INSERT INTO `order_items` (`fk_order_id`, `fk_item_id`) VALUES (1, 1); |
<gh_stars>0
create database if not exists cinextreme;
use cinextreme;
create table movies(
name_Movie varchar(200) not null,
release_Date date not null,
id_Tmdb varchar(300) not null,
url_Movie varchar(700) not null,
url_Trailer varchar(700) not null,
primary key (id_Tmdb)
);
create table descriptions(
fk_id_Tmdb ... |
<reponame>VadymHutei/lifetime<gh_stars>0
-- --------------------------------------------------------
-- Сервер: lifetime.hutei.net
-- Версія сервера: 5.7.29 - MySQL Community Server (GPL)
-- ОС сервера: Linux
-- HeidiSQL Версія: 11.0.0.5919
-- ---------... |
<filename>database/useful/20200524dump.sql/questions_dump.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: 2020 年 5 月 24 日 05:18
-- サーバのバージョン: 5.7.25
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- D... |
<reponame>aqkly/Testgit
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 08 Feb 2020 pada 05.04
-- Versi server: 5.7.24
-- Versi PHP: 7.1.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*... |
-- file:case.sql ln:217 expect:false
begin
x := array[$1,$2]
|
-- file:timestamptz.sql ln:337 expect:true
SELECT '2011-03-27 01:00:00 MSK'::timestamptz
|
<reponame>sangjiexun/OEE-Designer
-- SQL Server script file, schema version 4
-- set to your database name
USE [OEE]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
/****** Plant Entity table ******/
IF OBJECT_ID('dbo.PLANT_ENTITY', 'U') IS NOT NULL
DROP TABLE dbo.PLANT_ENTITY
GO
CREA... |
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `test`;
-- MySQL dump 10.13 Distrib 5.6.23, for Win32 (x86)
--
-- Host: localhost Database: test
-- ------------------------------------------------------
-- Server version 5.5.45
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH... |
CREATE DATABASE syslog;
USE syslog;
CREATE TABLE SystemEvents
(
ID int unsigned not null auto_increment primary key,
CustomerID bigint,
ReceivedAt datetime NULL,
DeviceReportedTime datetime NULL,
Facility smallint NULL,
Priority smallint NULL,
FromHost varchar(60)... |
/*
MySQL Database Backup Tools
Server:127.0.0.1:3306
Database:tl_cms
Data:2018-02-11 13:44:20
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for tp_ad
-- ----------------------------
DROP TABLE IF EXISTS `tp_ad`;
CREATE TABLE `tp_ad` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
... |
INSERT INTO flask_pos.alembic_version (version_num) VALUES ('524836f59748'); |
<gh_stars>0
DELETE FROM sales;
DELETE FROM products;
DELETE FROM users;
|
CREATE OR REPLACE PACKAGE BODY json_store IS
/*
Copyright 2017 <NAME>
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/lice... |
-- 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 not... |
-- Fortune table --
-- used by TCK
DROP TABLE IF EXISTS Fortune;
CREATE TABLE Fortune (
id integer NOT NULL GENERATED AS IDENTITY (START WITH 1, INCREMENT BY 1),
message varchar(2048),
PRIMARY KEY (id)
);
INSERT INTO Fortune (message) VALUES ('fortune: No such file or directory');
INSERT INTO Fortun... |
alter table subgraphs.subgraph
drop constraint subgraph_name_uq;
|
void
ShutdownForeignScan(ForeignScanState *node);
|
create class test_class (bigint_col bigint, char_col char(10));
insert into test_class(bigint_col, char_col) values (100, 'plus');
insert into test_class(bigint_col, char_col) values (-100, 'minus');
insert into test_class(bigint_col, char_col) values (-2147483648, 'minus');
insert into test_class(bigint_col, char_col)... |
-- @testpoint: 插入右边界范围值
drop table if exists binary_integer04;
create table binary_integer04 (name binary_integer);
insert into binary_integer04 values (2147483647);
select * from binary_integer04;
drop table binary_integer04; |
<filename>database/migrations/all.sql
-- Adminer 4.2.5 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `bank`;
CREATE TABLE `bank` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`name` varchar(1... |
<filename>Src/src/sql/RisingTemperature.sql<gh_stars>0
-- 197. Rising Temperature
-- SQL Schema
-- Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to -- its previous (yesterday's) dates.
--
-- +---------+------------------+------------------+
-- | Id(INT) | RecordDate(... |
CREATE DATABASE employeeTracker_DB;
USE employeeTracker_DB;
CREATE TABLE department (
id INT(10) AUTO_INCREMENT,
name VARCHAR(30),
PRIMARY KEY(id)
);
CREATE TABLE roles (
id INT(10) AUTO_INCREMENT,
title VARCHAR(30) NOT NULL,
salary DECIMAL(10,2) NOT NULL,
department_id INT(10) NOT NULL,
... |
<reponame>polux2016/tsqlscripts<filename>BeckupDBByNamePart/beckupdbbynamepart.sql<gh_stars>0
USE [master]
GO
IF OBJECT_ID('[dbo].sp_beckupdbbynamepart') IS NOT NULL
BEGIN
DROP PROCEDURE [dbo].sp_beckupdbbynamepart
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- ==========================================... |
CREATE DATABASE simplejdbcdb CHARSET utf8;
GRANT ALL ON `simplejdbcdb`.* TO 'simplejdbc'@localhost IDENTIFIED BY 'simplejdbc';
GRANT ALL ON `simplejdbcdb`.* TO 'simplejdbc'@'%' IDENTIFIED BY 'simplejdbc';
FLUSH PRIVILEGES;
USE simplejdbcdb;
CREATE TABLE GOODS_MST
(
GOODS_ID intege... |
CREATE TABLE Suppliers
(
Id bigint IDENTITY(1,1) NOT NULL,
UshahidiId bigint,
[Timestamp] datetimeoffset NOT NULL,
StatusId int NOT NULL,
[Name] nvarchar(200),
[Description] nvarchar(max),
SupplierTypeId int NOT NULL,
SupplierTypeOther nvarchar(300),
Email nvarchar(320),
Website nvarchar(2084),
PhoneNumber ... |
DROP TABLE IF EXISTS ZuordnungReportvorlagen;
DROP TABLE IF EXISTS SchuelerLeistungsdaten;
DROP TABLE IF EXISTS SchuelerErzFunktion;
DROP TABLE IF EXISTS SchuelerLD_PSFachBem;
DROP TABLE IF EXISTS SchuelerFehlstunden;
DROP TABLE IF EXISTS SchuelerZuweisungen;
DROP TABLE IF EXISTS SchuelerFHRFaecher;
DROP TABLE IF EXIST... |
<reponame>gigorok/php-orm<filename>tests/php_orm_test_mysql.sql
-- ----------------------------
-- Table structure for `accounts`
-- ----------------------------
DROP TABLE IF EXISTS `accounts`;
CREATE TABLE `accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
-- ... |
<reponame>oseferi/sql-insert-generator
INSERT INTO WWS_COUNTRIES (ID, NAME, ISO3, ISO2, PHONECODE, CAPITAL, CURRENCY, CREATED_AT, UPDATED_AT, FLAG, WIKIDATAID) VALUES (95, 'Haiti', 'HTI', 'HT', '509', 'Port-au-Prince', 'HTG', TO_TIMESTAMP('2018-07-20 16:41:03','YYYY-MM-DD HH24:MI:SS'), TO_TIMESTAMP('2019-08-02 21:38:23... |
USE ucode_web;
CREATE TABLE powers (
id int NOT NULL AUTO_INCREMENT,
hero_id int NOT NULL,
name varchar(30) NOT NULL,
points int NOT NULL,
type NVARCHAR(7),
CHECK (type in ('attack', 'defense')),
PRIMARY KEY (id),
FOREIGN KEY (hero_id) REFERENCES heroes(id)
);
CREATE TABLE races (
i... |
USE [VipunenTK]
GO
/****** Object: View [dbo].[v_f_tab_opettajat_7_8] Script Date: 13.2.2020 15:38:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER view [dbo].[v_f_tab_opettajat_7_8] as
Select
[Tilastovuosi] = f.tilastointivuosi
,[Oppilaitoksen kieli] = d1.opetuskieli
,... |
<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/redshift/test_simple_streams/third_output/airbyte_views/test_normalization/renamed_dedup_cdc_excluded_ab3.sql
create view "integrationtests"._airbyte_test_normalization."renamed_dedup_cdc_excluded_ab3__dbt_tmp" as (
... |
<gh_stars>100-1000
-- vtab6.test
--
-- execsql {
-- SELECT * FROM t6, t5 WHERE t6.a<t5.a;
-- }
SELECT * FROM t6, t5 WHERE t6.a<t5.a; |
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE `users` ADD `full_name` VARCHAR(255) NOT NULL AFTER `api_key`;
ALTER TABLE `users` MODIFY `avatar` BLOB;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
ALTER TABLE `users` DROP `full_name`;
... |
update acs_objects
set title = (select name
from cr_items
where item_id = object_id),
package_id = acs_object__package_id(content_item__get_root_folder(object_id))
where object_type = 'acs_message';
\i ../acs-messaging-packages.sql
|
ALTER TABLE
locations
ADD
PRIMARY KEY(id);
ALTER TABLE
locationrooms
ADD
COLUMN id INT PRIMARY KEY AUTO_INCREMENT FIRST;
ALTER TABLE
locationrooms
ADD
CONSTRAINT fk_location FOREIGN KEY (location_id) REFERENCES locations(id); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.