sql stringlengths 6 1.05M |
|---|
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 28, 2020 at 05:16 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.2
SET SQL_MODE
= "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT
= 0;
START TRANSACTION;
SET time_zone
= "+00:00";
/*!40101 SET @OLD... |
autocommit off;
create class setA(i integer unique, mset2 multiset(integer));
insert into setA values(12, {1,2});
select {} + mset2 from setA;
select mset2 + {} from setA;
select {} * mset2 from setA;
select mset2 * {} from setA;
select {} - mset2 from setA;
select mset2 - {} from s... |
--INDEX--
--TIPOS--
DROP TYPE IF EXISTS oroticket.tipo_ciudad_origen_destino CASCADE;
DROP TYPE IF EXISTS oroticket.tipo_turno CASCADE;
DROP TYPE IF EXISTS oroticket.tipo_vehiculo_asientos CASCADE;
CREATE TYPE oroticket.tipo_ciudad_origen_destino AS
(nombre oroticket.nombre);
CREATE TYPE oroticket.tipo_turno AS
... |
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 16, 2019 at 07:56 AM
-- Server version: 5.7.21-0ubuntu0.16.04.1
-- PHP Version: 7.0.33-0ubuntu0.16.04.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_C... |
<reponame>DipakSalunke/online_tailoring_store_webapp
delimiter $$
CREATE TABLE `admin_table` (
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
UNIQUE KEY `username_UNIQUE` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8$$
delimiter $$
CREATE TABLE `user_table` (
`firstname` varchar(45) NO... |
<reponame>GaldamezErika/PruebaDirectEnglish
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 02-08-2020 a las 02:13:56
-- Versión del servidor: 10.1.36-MariaDB
-- Versión de PHP: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
... |
<filename>db/seeds.sql
INSERT INTO burgers
(burger_name)
VALUES
('BBQ Cheeseburger with Avocado'),
('Fried Chicken Burger with Coleslaw');
INSERT INTO burgers
(burger_name, isDevoured)
VALUES
('Cheeseburger with Fried Onions',
'true'); |
<filename>project/job_history_ddl.sql
CREATE TABLE `P.D.moneypenny_bigquery_job_history`
(
job_id STRING OPTIONS(description="identifier of the Job created"),
project STRING OPTIONS(description="project identifier from which the Job was created"),
email STRING OPTIONS(description="user or service account that cre... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 01, 2022 at 02:04 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 TABLE rawmaterial_stock(
rawmaterial_id INTEGER NOT NULL PRIMARY KEY
,material_id INTEGER NOT NULL
,vendor_id INTEGER NOT NULL
,material_name VARCHAR(255) NOT NULL
,raw_ID INTEGER NOT NULL
,raw_OD INTEGER NOT NULL
,avail_length INTEGER NOT NULL
,weight VARCHAR(255) NOT NULL
,material... |
<reponame>felipecustodio/databases<filename>queries/partidas_apitadas_por_arbitro.sql
SELECT p.*
FROM partida AS p
INNER JOIN arbitro AS a ON p.arbitro = a.cpf
WHERE a.nome = '<NAME>';
|
CREATE DATABASE Minions;
USE Minions;
CREATE TABLE Minions
(
Id INT PRIMARY KEY not NULL,
[Name] NVARCHAR(50) NOT NULL,
Age INT
);
CREATE TABLE Towns
(
Id int PRIMARY KEY NOT NULL,
[Name] NVARCHAR(50) NOT NULL
);
ALTER TABLE Minions ADD TownId INT NOT NULL;
ALTER TABLE Minions ADD FOREIGN KEY(TownId) REFERENC... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Anamakine: localhost
-- Üretim Zamanı: 05 Nis 2020, 12:33:06
-- Sunucu sürümü: 8.0.17
-- PHP Sürümü: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER... |
alter table items drop column quantity; |
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 04/01/2020 01:46:29
-- Generated from EDMX file: D:\WorkSpace\FacultateAn3Sem2\TSP.NET\PhotoManagerWCF\MyPhotosDatabase\My... |
<filename>crud_dbManual.sql
CREATE TABLE Blocks(block_id varchar(15) PRIMARY KEY, block_name char(25), gender char(1), locate varchar(50), description char(50), status char(50))
CREATE TABLE Course(course_id varchar(15) PRIMARY KEY, course_name char(30) NOT NULL, year_no int)
CREATE TABLE Room(room_no varchar(10), be... |
SELECT *
FROM city c
WHERE id = :city_id;
|
/* BASE DATA FOR LB */
INSERT INTO NFTHOSTINFO(NFTHOSTID, FARM, NICKNAME, ACCESSID, ACCESSPASSWORD, ACCESSINTERFACEID, STATUS) VALUES(2864434397, 'undefined', 'base', 'root', 'tmax@23', 0, 'Active');
commit;
exit
|
DROP DATABASE IF EXISTS db1;
CREATE DATABASE db1;
\c db1
DROP TABLE IF EXISTS t_vals;
CREATE TABLE t_vals (
id INTEGER,
value VARCHAR(100)
);
TRUNCATE TABLE t_vals;
INSERT INTO t_vals (id, value) VALUES (1, 'faip9aexe7dohGheemiemah3ohngoi5eiwoo6sooKooxie4Cifairiewemuuphie');
INSERT INTO t_vals (id, value) VALUES... |
<gh_stars>1-10
select 1;
|
CREATE OR REPLACE FUNCTION create_group_member_by_key(group_id INTEGER,
key groups.key%TYPE,
member_id INTEGER,
created_at INTEGER)
RETU... |
<filename>rdr_service/tools/update_passwords.sql
ALTER USER '${READONLY_DB_USER}'@'%' IDENTIFIED BY '${READONLY_PASSWORD}';
ALTER USER '${RDR_DB_USER}'@'%' IDENTIFIED BY '${RDR_PASSWORD}';
ALTER USER '${ALEMBIC_DB_USER}'@'%' IDENTIFIED BY '${RDR_PASSWORD}';
|
<reponame>e-muf/Proyecto-Ventas-Auto-BDD<filename>scripts/s-08-autos-presentacion-1.sql
--@Author: <NAME>
--@Fecha de creacion: 24/01/2021
--@Descripcion: Script encargado de crear la BDD
clear screen
whenever sqlerror exit rollback;
Prompt Iniciando con la creacion de la BDD.
@s-01-autos-main... |
<reponame>vishipayyallore/LearningPython_2019<filename>Intermediate/Day7/1sqlitedemo/data/persons.sql
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE persons (id int, name text);
INSERT INTO persons VALUES(101,'Manish');
INSERT INTO persons VALUES(102,'Ranesh');
COMMIT;
|
<reponame>binderclip/code-snippets-mysql
SELECT
COUNT(*), foo.bar
FROM
foo
GROUP BY bar;
SELECT * FROM foo3 GROUP BY b; -- 只显示某个 group 的第一条数据
SELECT * FROM foo3 GROUP BY c;
SELECT id, b, COUNT(*) FROM foo3 GROUP BY b;
SELECT id, b, COUNT(*) FROM foo3 GROUP BY b ORDER BY b DESC;
SELECT b, c, COUNT(*) FROM foo... |
/*
SQLyog Ultimate v12.5.1 (64 bit)
MySQL - 10.1.38-MariaDB : Database - sd_impres_jaya_makur
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN... |
<reponame>Roberto-git/Taller
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 21-11-2019 a las 04:58:12
-- Versión del servidor: 10.1.26-MariaDB
-- Versión de PHP: 7.1.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTIO... |
<reponame>valuto/valutowallet
CREATE TABLE `users_profile_log` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user_id` INT(11) NULL,
`payload` TEXT NULL DEFAULT NULL,
`created_at` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`id`));
|
Insert into [TCVatandas] ([TCno], [Guvence], [insanNo]) values ('60214722396', 'SGK', 1);
Insert into [TCVatandas] ([TCno], [Guvence], [insanNo]) values ('23733712200', 'SGK', 2);
Insert into [TCVatandas] ([TCno], [Guvence], [insanNo]) values ('23674820552', 'SGK', 3);
Insert into [TCVatandas] ([TCno], [Guvence], [i... |
<filename>src/test/resources/sql/select/be5c83f3.sql
-- file:guc.sql ln:257 expect:true
select myfunc(0)
|
<filename>src/test/resources/sql/select/337700ab.sql<gh_stars>10-100
-- file:rowsecurity.sql ln:1001 expect:true
SELECT * FROM y2 WHERE f_leak(b)
|
<filename>src/test/resources/sql/create_function/aeaca20b.sql<gh_stars>10-100
-- file:matview.sql ln:228 expect:true
CREATE FUNCTION mvtest_func()
RETURNS void AS $$
BEGIN
CREATE MATERIALIZED VIEW mvtest1 AS SELECT 1 AS x
|
DROP PROCEDURE sp_hotel_ver;
DELIMITER //
CREATE PROCEDURE sp_hotel_ver(
v_criterio TINYINT
)
BEGIN
IF v_criterio = 1 THEN
SELECT * FROM tb_hotel;
END IF;
END //
DELIMITER ;
CALL sp_hotel_ver(1); |
<reponame>RobOrtiz/burger
DROP DATABASE IF EXISTS burgers_db;
CREATE DATABASE burgers_db;
USE burgers_db;
CREATE TABLE burgers (
id INTEGER NOT NULL AUTO_INCREMENT,
burger_name VARCHAR(255) NOT NULL,
devoured BOOLEAN DEFAULT FALSE,
PRIMARY KEY (id)
);
SELECT * FROM burgers |
---Project Database File |
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Lun 16 Mai 2016 à 00:57
-- Version du serveur: 10.0.20-MariaDB
-- Version de PHP: 5.2.17
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET... |
-- Tags: no-backward-compatibility-check:192.168.3.11
select toString(toNullable(true));
select toString(CAST(NULL, 'Nullable(Bool)'));
select toString(toNullable(toIPv4('0.0.0.0')));
select toString(CAST(NULL, 'Nullable(IPv4)'));
select toString(toNullable(toIPv6('::ffff:127.0.0.1')));
select toString(CAST(NULL, 'Null... |
<filename>core/src/test/resources/assets/sql/one_line_statements.sql
-- This file should contain the same sql statements as multi_line_statements.sql, only formatting and comments can differ.
CREATE TABLE 'testTable' _id INTEGER PRIMARY KEY AUTOINCREMENT;
-- a comment
CREATE TABLE 'second' _id INTEGER PRIMARY KEY AUTOI... |
{% macro stitch_adwords_adapter_url() %}
with url_performance as (
select * from {{ ref('adwords_url_performance') }}
),
joined as (
select
date_day as campaign_date,
url_host,
url_path,
utm_source,
utm_medium,... |
select
/*+ NO_INDEX(orders) */
l_orderkey,
sum(l_extendedprice * (1 - l_discount)) as revenue,
o_orderdate,
o_shippriority
from customer STRAIGHT_JOIN
orders STRAIGHT_JOIN
lineitem
where c_mktsegment = 'FURNITURE'
and c_custkey = o_custkey
and l_orderkey = o_orderkey
an... |
CREATE TABLE IF NOT EXISTS `cashshop_modified_items` (
`serial` int(11) NOT NULL,
`discount_price` int(11) NOT NULL DEFAULT -1,
`mark` tinyint(1) NOT NULL DEFAULT -1,
`showup` tinyint(1) NOT NULL DEFAULT 0,
`itemid` int(11) NOT NULL DEFAULT 0,
`priority` tinyint(4) NOT NULL DEFAULT 0,
`package` tinyint(1)... |
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.6.42)
# Database: test
# Generation Time: 2019-10-01 17:19:21 +0000
# **************************************************... |
-- @testpoint:openGauss保留关键字initially作为作为表空间名,
--不带引号,合理报错
drop tablespace if exists initially;
CREATE TABLESPACE initially RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
--加双引号,创建成功
drop tablespace if exists "initially";
CREATE TABLESPACE "initially" RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
--... |
<filename>openGaussBase/testcase/PROCEDURE/PROC_EXPR_PARAM/Opengauss_Function_Procedure_Expression_Case0018.sql
-- @testpoint: 表达式做为参数的存储过程测试--字符串处理函数-ADD_MONTHS(,)
--创建存储过程
CREATE OR REPLACE PROCEDURE PROC_EXPR_PARAM_018(P1 DATE) AS
BEGIN
raise info 'P1=:%',P1;
EXCEPTION
WHEN NO_DATA_FOUND THEN raise info 'NO_DATA_F... |
DROP TABLE IF EXISTS `b_ylab_users`; |
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.18)
# Database: agetic
# Generation Time: 2020-01-24 21:23:30 +0000
# ************************************************... |
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: 04-Jun-2018 às 15:06
-- Versão do servidor: 5.7.21
-- PHP Version: 5.6.35
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... |
<gh_stars>1-10
CREATE TABLE employee(
id INT NOT NULL,
name VARCHAR(32),
office VARCHAR(32),
age INT,
PRIMARY KEY(id),
CHECK (id>=0 AND id<=100)
);
CREATE TABLE book(
id INT NOT NULL,
name VARCHAR(32),
author VARCHAR(32),
publisher VARCHAR(32),
PRIMARY KEY(id)
);
CREATE TABLE record(
book_id INT NOT NULL,
... |
<gh_stars>1-10
/*
Warnings:
- You are about to drop the column `media` on the `meetings` table. All the data in the column will be lost.
- Added the required column `tmdb` to the `meetings` table without a default value. This is not possible if the table is not empty.
- Made the column `suggested_date` on tabl... |
<reponame>Olek-HZQ/DapperRespoitoryDemo<filename>DapperRepo.Web/App_Data/SqlScripts/SqlServer.StoredProcedures.sql
USE [DapperRepositoryDb]
GO
/****** Object: StoredProcedure [dbo].[CustomerPaged] Script Date: 2020/7/20 18:44:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[Cu... |
<filename>Chapter08/02 - Query Customers.sql
SELECT
*
FROM
dbo.Customers
WHERE
Customers.CompanyName = '<NAME>'; |
<filename>src/main/resources/schema.sql<gh_stars>1-10
DROP TABLE IF EXISTS PERSON;
DROP TABLE IF EXISTS DOG;
CREATE TABLE PERSON (
ID INTEGER NOT NULL AUTO_INCREMENT,
FIRST_NAME VARCHAR (255) NOT NULL,
LAST_NAME VARCHAR (255),
DOG_ID INTEGER,
PRIMARY KEY (ID)
);
CREATE TABLE DOG (
ID INTEGER N... |
<reponame>Shuttl-Tech/antlr_psql
-- file:rangefuncs.sql ln:74 expect:true
select * from foo2 where f2 in (select f2 from foot(foo2.fooid) z where z.fooid = foo2.fooid) ORDER BY 1,2
|
prompt --application/shared_components/files/app_css
begin
-- Manifest
-- APP STATIC FILES: 700
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.10.01'
,p_release=>'20.2.0.00.20'
,p_default_workspace_id=>9526531750928358
,p_default_application_id=>700
,p_default_id_offset=>28323188538... |
-- NULLs out database fields with potentially sensitive information
-- erring on the side of caution!
-- Slightly stricter than `scrub_private_for_prod.sql`
-- so that the resulting datafile can be completely uncontrolled
-- See https://github.com/18F/crime-data-api/issues/113
UPDATE arson_month
SET ddocname = NULL... |
-- =============================================
-- Author: <NAME>
-- Create date: 4/15/2013
-- Description: This stored procedure adds a user
-- in the system. This process involves adding datasources
-- and relationship between user and datasource.
-- This process is handled in a transaction.
-- =================... |
<filename>src/test/java/scripts/person-init.sql<gh_stars>0
-- HSQL DATABASE
-- Dropping Tables
DROP TABLE PERSON;
-- Creating Tables
create table person (
id int not null,
first_name char(50) not null,
last_name char(50) not null,
primary key (id)
);
-- Creating Test Data
insert into p... |
<filename>app/src/main/assets/from_1_to_2.sql<gh_stars>10-100
-- drop column description from todo_list
PRAGMA foreign_keys=off;
BEGIN TRANSACTION;
ALTER TABLE todo_list RENAME TO temp_table;
CREATE TABLE todo_list (
_id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL
);
INSERT INTO todo_list (_id, name)
SELE... |
<reponame>mayoshia/throw-voice
-- Remove stop alias
delete
from Aliases
where name = 'LEAVE'
and alias = 'stop';
-- Remove info alias
delete
from Aliases
where name = 'HELP'
and alias = 'info';
-- Remove record alias
delete
from Aliases
where name = 'JOIN'
and alias = 'record';
-- Remove symbol alias
delete
fr... |
--
-- AgensGraph catalog ag_graphmeta test
--
CREATE GRAPH graphmeta;
SET graph_path = graphmeta;
SET auto_gather_graphmeta = true;
-- create edge
CREATE (:human)-[:know]->(:human {age:1});
MERGE (:human)-[:know]->(:human {age:2});
MERGE (:human)-[:know]->(:human {age:3});
CREATE (:dog)-[:follow]->(:human);
CREATE (:... |
<reponame>connormcd/misc-scripts
REM
REM Standard disclaimer - anything in here can be used at your own risk.
REM
REM It is very likely you'll need to edit the script for correct usernames/passwords etc.
REM
REM No warranty or liability etc etc etc. See the license file in the git repo root
REM
REM *** USE AT YOUR OW... |
<gh_stars>1-10
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
--
-- CT AO Part Table 1
--
CREATE TABLE ct_ao_alter_part_drop_col1 (id int, name text,rank int, year date, gender char(1)) with ( appendonly='true') DISTRIBUTED BY (id, gender, year)
partition by list (gender)
subpartit... |
<gh_stars>0
INSERT INTO filter_template_list_options(template_id, field_text, field_value)
WITH vals AS (
select 'Sand' as field_text, '1' as field_value
union select 'Mud' as field_text, '2' as field_value
union select 'Cement' as field_text, '3' as field_value
union select 'Tile' as field_text, '4' as field_value... |
-- This file is automatically generated by LogicalPlanToSQLSuite.
SELECT x.key, COUNT(*) FROM parquet_t1 x JOIN parquet_t1 y ON x.key = y.key group by x.key
--------------------------------------------------------------------------------
SELECT `gen_attr_0` AS `key`, `gen_attr_1` AS `count(1)` FROM (SELECT `gen_attr_0`... |
<filename>sql/henri.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 10-Jan-2019 às 16:25
-- Versão do servidor: 10.1.26-MariaDB
-- PHP Version: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_z... |
<gh_stars>0
INSERT INTO `raw_pizzas` (`title`, `size`, `price`, `content`, `image`, `source_link`, `category_id`, `website_id`, `created_at`, `updated_at`) VALUES
('SAJTOS', '30', '990', 'Paradicsomos alap, sajt', '', '', 3, 30, NULL, NULL),
('KUKORICA', '30', '1190', 'Paradicsomos alap, kukorica, sajt', '', '', 3, 30,... |
<reponame>BK-bokai/bkLaravel_2
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- 主機: 127.0.0.1
-- 產生時間: 2019-12-20 04:58:56
-- 伺服器版本: 10.3.16-MariaDB
-- PHP 版本: 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
<gh_stars>0
-- --------------------------------------------------------
-- Host: fantasy-critic-beta-rds.cldutembgs4w.us-east-1.rds.amazonaws.com
-- Server version: 5.7.33-log - Source distribution
-- Server OS: Linux
-- HeidiSQL Version: 11.3.0.6295
... |
<gh_stars>0
// [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] //
CREATE TYPE ESTADO AS ENUM ('paraiba', 'rio grande do norte',
'pernambuco', 'maranhao', 'piaui',
'ceara', 'alagoas', 'sergipe', 'bahia'); //19º//
CREATE TABLE farmacias (nome V... |
-- drop table tactics_for_tests;
create table tactics_categories
(
`tactic_category_id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, -- unique setting identifier
`tactic_category_name` varchar(255) DEFAULT NULL,
`tactic_category_status_id` varchar(255) DEFAULT 0, -- 0 - ready, 1 - tested
`tactic_category_priority` b... |
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 08, 2021 at 01:22 PM
-- Server version: 5.7.24
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
-- DROP DATABASE questionsanswers;
-- CREATE DATABASE questionsanswers;
-- DROP TABLE IF EXISTS questions CASCADE;
-- CREATE TABLE questions (
-- id serial PRIMARY KEY,
-- product_id INT,
-- question_body VARCHAR (255),
-- question_date DATE,
-- asker_name VARCHAR (60),
-- asker_email VARCHAR (60),
-- re... |
<gh_stars>0
-- AlterTable
ALTER TABLE `mediainfo` MODIFY `bytes` LONGBLOB NOT NULL;
|
create table releases
(
id integer not null
primary key
autoincrement,
version text not null,
changelog text not null,
file_url text not null,
download_url text not null,
date integer not null,
mc_version text not null,
user_id integer not null,
... |
<gh_stars>1-10
CREATE VIEW [etljob].[vw_Project]
AS
SELECT [ProjectID]
,[SSISDBProject_ID]
,[FolderID]
,[ProjectName]
,[DateInserted]
FROM [etljob].[Project] |
DROP VIEW IF EXISTS membership;
DROP VIEW IF EXISTS recent_events;
DROP VIEW IF EXISTS semester_overview;
DROP TABLE IF EXISTS promos;
DROP TABLE IF EXISTS member_login;
DROP TABLE IF EXISTS member_event;
DROP TABLE IF EXISTS members;
DROP TABLE IF EXISTS events;
DROP TABLE IF EXISTS academic_year;
DROP TABLE IF EXIST... |
<reponame>cmhstudies/fpds-conversion-utility
CREATE VIEW IF NOT EXISTS fact AS
SELECT *
FROM documentID
LEFT JOIN competitionInformation on documentID.id = competitionInformation.id
LEFT JOIN contractInformation on documentID.id = contractInformation.id
LEFT JOIN contractMarketingData on documentID.id = contr... |
<filename>databases/mdb/migrations/2017-03-07_122859_string_translations_fixes.sql
-- MDB generated migration file
-- rambler up
ALTER TABLE "collections"
DROP CONSTRAINT IF EXISTS "collections_name_fkey";
ALTER TABLE "collections"
DROP CONSTRAINT IF EXISTS "collections_description_fkey";
ALTER TABLE "content_role... |
<gh_stars>1-10
/*
SQLyog Professional v13.1.7 (64 bit)
MySQL - 8.0.21 : Database - asc_world_new
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SE... |
-- collate9.test
--
-- execsql {
-- SELECT y FROM xy ORDER BY y COLLATE "reverse sort"
-- }
SELECT y FROM xy ORDER BY y COLLATE "reverse sort" |
-- TABLES
ALTER TABLE `bx_persons_cmts` CHANGE `cmt_author_id` `cmt_author_id` INT( 11 ) NOT NULL DEFAULT '0';
-- FORMS
UPDATE `sys_form_inputs` SET `checker_params`='a:3:{s:3:"min";i:18;s:3:"max";i:99;s:8:"required";b:0;}' WHERE `object`='bx_person' AND `name`='birthday';
DELETE FROM `sys_form_inputs` WHERE `object... |
<gh_stars>100-1000
-- original: vacuum2.test
-- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test
CREATE TABLE t1(x INTEGER PRIMARY KEY AUTOINCREMENT, y);
DROP TABLE t1;
VACUUM
;CREATE TABLE t1(x);
CREATE TABLE t2(y);
INSERT INTO t1 VALUES(1)
;VACUUM
;pragma page_size
;INSERT INTO t1 VALUES('... |
<filename>Task/FizzBuzz/SQL/fizzbuzz-3.sql
SELECT i, fizzbuzz
FROM
(SELECT i,
CASE
WHEN i % 15 = 0 THEN 'FizzBuzz'
WHEN i % 5 = 0 THEN 'Buzz'
WHEN i % 3 = 0 THEN 'Fizz'
ELSE NULL
END AS fizzbuzz
FROM generate_series(1,100) AS... |
<reponame>Cake/OpenPNE2Smart
UPDATE c_commu SET is_admit='auth' WHERE is_admit='';
|
SELECT * FROM news |
<reponame>nhannafi/Blog
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : Dim 03 nov. 2019 à 22:51
-- Version du serveur : 5.7.26
-- Version de PHP : 7.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = ... |
<filename>application/myyp.sql
-- --------------------------------------
-- 创建场景表
-- --------------------------------------
DROP TABLE IF EXISTS scenes;
CREATE TABLE `scenes`(
`id` int(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL COMMENT '场景名称',
`hits` int(8) NOT NULL DEFAULT 0 COMMENT ... |
-- prepare data
insert into spaces (id, name) values ('00000066-0000-0000-0000-000000000000', 'test space 1');
insert into work_item_types (id, name, space_id) values ('00000066-0000-0000-0000-000000000000', 'test type 1', '00000066-0000-0000-0000-000000000000');
insert into work_item_link_types (id, name, topology, fo... |
<filename>src/InternationalCookies.DataBase/Tables/DatabaseServers.sql
CREATE TABLE [dbo].[DatabaseServers]
(
[Id] INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
[DatabaseServer] VARCHAR(300) NULL,
[DatabaseName] VARCHAR(50) NULL,
[Region] VARCHAR(50) NULL
)
|
<gh_stars>10-100
CREATE PROCEDURE [dbo].[Board_Create]
@orgId int,
@teamId int,
@userId int,
@name nvarchar(64),
@favorite bit = 0,
@color nvarchar(6) = '',
@cardtype varchar(16)
AS
DECLARE @boardId int = NEXT VALUE FOR SequenceBoards
INSERT INTO Boards (boardId, orgId, [name], color, cardtype)
VALUES (@boar... |
-- // CLOUD-49843 gather hypervisor data
-- Migration SQL that makes the change goes here.
ALTER TABLE instancemetadata DROP COLUMN volumecount;
ALTER TABLE instancemetadata ADD COLUMN hypervisor VARCHAR(255);
-- //@UNDO
-- SQL to undo the change goes here.
ALTER TABLE instancemetadata ADD COLUMN volumecount INTEGER... |
INSERT INTO `geo_cities` (`id`, `region_id`, `iso_code`, `sort`) VALUES
(3832, 279, 'Бар', 0),
(3833, 279, 'Бершадь', 0),
(3834, 279, 'Браилов', 0),
(3835, 279, 'Брацлав', 0),
(3836, 279, 'Вапнярка', 0),
(3837, 279, 'Вендичаны', 0),
(3838, 279, 'Винница', 0),
(3839, 279, 'Вороновица', 0),
(3840, 279, 'Гайсин', 0),
(384... |
--INSERT TABLE [discounts]
INSERT [dbo].[discounts] ([discount_id], [name], [percentage], [observations], [start_date], [end_date]) VALUES (1, N'Student Discount', CAST(0.20 AS Decimal(5, 2)), N'Show student ID. Age between 16 and 23', CAST(N'2021-01-01' AS Date), NULL)
GO
INSERT [dbo].[discounts] ([discount_id], [nam... |
<filename>dependencies/user_data.sql
CREATE TABLE `user_data` (
`first_name` varchar(250) NOT NULL,
`last_name` varchar(250) NOT NULL,
`user_name` varchar(250) NOT NULL,
`email` varchar(250) NOT NULL,
`password` varchar(45) NOT NULL,
`role` varchar(45) NOT NULL,
PRIMARY KEY (`user_name`),
UNIQUE KEY `us... |
<reponame>trigyn-products/jquiver
ALTER TABLE jq_property_master MODIFY property_master_id VARCHAR(50) NOT NULL;
ALTER TABLE jq_property_master DROP PRIMARY KEY;
ALTER TABLE jq_property_master ADD PRIMARY KEY (`property_master_id`);
ALTER TABLE jq_property_master ADD UNIQUE INDEX (`owner_type`,`owner_id`,`property_name... |
<filename>raisa.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 06, 2020 at 08: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:00";
/*!40101 SET @OLD... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 07, 2018 at 07:56 AM
-- Server version: 5.7.17-log
-- PHP Version: 7.1.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
<filename>batch/create-batch-tables.sql
CREATE TABLE IF NOT EXISTS `batch` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`userdata` TEXT(65535),
`user` VARCHAR(100),
`attributes` TEXT(65535),
`callback` TEXT(65535),
`ttl` INT,
`is_open` BOOLEAN NOT NULL,
`deleted` BOOLEAN NOT NULL default false,
`n_jobs` INT... |
use EconomicNews;
if not exists (select * from sysobjects where name='CompanyInfo' and xtype='U')
create table CompanyInfo (
id int not null identity primary key,
company_id int not null,
industry_id int not null,
ceo_id int not null,
website nvarchar(max),
[description] nvarchar(max),
employee... |
<gh_stars>0
INSERT INTO acmplus (id, date, vx, vy, speed, direction, water_temp, sended, num_attempts) VALUES
(1, '2017-01-23 13:43:48', 19.57, 69.24, 71.9525016938258, 15.7824191508417, 24.1, true, 0),
(2, '2017-01-23 13:45:39', 20.04, 68.62, 71.4864043017971, 16.2800817097405, 24.11, false, 3),
(3, '2017-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.