sql stringlengths 6 1.05M |
|---|
<reponame>Smart-Kit/SmartSql-Starter
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for T_User
-- ----------------------------
DROP TABLE IF EXISTS `T_User`;
CREATE TABLE `T_User` (
`Id` bigint(20) NOT NULL AUTO_INCREMENT,
`UserName` varchar(100) NOT NULL,
`Password` varchar(255) NO... |
<reponame>ag-gipp/eCoachSql
SELECT e1.fname, e2.fname, e2.lname
FROM
employee e1 JOIN employee e2 ON e1.lname = e2.lname
WHERE e1.fname != e2.fname; |
<reponame>romansenin/ji-cloud<filename>backend/api/migrations/20201130193803_jig-content-type.sql
-- Add migration script here
create table "content_type"
(
content_type_id uuid primary key not null default uuid_generate_v1mc(),
display_name text not null,
created_at timestamptz ... |
DROP INDEX IF EXISTS index_fee_schedule_ranges_fee_schedule_id_min_price;
DROP TABLE IF EXISTS fee_schedule_ranges;
|
UPDATE films SET kind = 'Dramatic' WHERE CURRENT OF c_films;
|
<filename>db/schema.sql
## Schema
-- drops database if it already exists
DROP DATABASE IF EXISTS burgers_db;
-- creates database called burgers_db
CREATE DATABASE burgers_db;
-- switches to the burgers_db
USE burgers_db;
-- creates a table for 'burgers' that has an id, burger_name, and devoured column
CREATE TABLE ... |
#event on payment
DROP EVENT IF EXISTS payment_event;
CREATE EVENT payment_event
ON SCHEDULE
EVERY 2 MINUTE
STARTS '2022-02-08 16:58:00'
ON COMPLETION PRESERVE
DO
UPDATE
internetprovider.bankaccounts
INNER JOIN(
SELECT tariffs.id as id, tariffs.price as price, ifnull(specialoffers.discount,0) as d... |
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Czas generowania: 03 Sie 2019, 20:59
-- Wersja serwera: 10.1.32-MariaDB
-- Wersja PHP: 7.1.17
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... |
-- This seed separates the departments
INSERT INTO department (name)
VALUES ("Sales"),
("HR"),
("IT"),
("Finances");
-- This seed separates the roles within the company
INSERT INTO roles (title, salary, department_id)
VALUES ("Store Manager", 80000, 1),
("Assistant Manager", 65000, 1),
("Cashier", 42000, 1),
("HR ... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 22, 2020 at 11:18 AM
-- Server version: 10.4.11-MariaDB
-- 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... |
<br />
<b>Warning</b>: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in <b>C:\xampp\htdocs\adminer\index.php</b> on line <b>1176</b><br />
-- Adminer 4.6.2 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';... |
<filename>anastasia.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 29, 2019 at 04:20 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:... |
-- start query --
SELECT modelrun_id, total_demand, total_supply, total_supply/total_demand as percentage_of_supply
FROM (
SELECT modelrun_id, sum(demand_value) as total_demand, sum(supply) as total_supply
FROM "ISL_IO_FinalFlows_DemandFulfillments"
WHERE modelrun_id IN modelrun_ids_val and simulation_year = year_val... |
<reponame>yogeshyadav108098/contacts-book
CREATE TABLE contacts(
id int(12) unsigned NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
email varchar(255),
gender ENUM('MALE', 'FEMALE') NOT NULL DEFAULT 'MALE',
status tinyint(3) NOT NULL DEFAULT 1,
createdAt timestamp NOT NULL DEFAULT CURRENT_... |
/****** Object: User Defined Function dbo.Scouter Script Date: 5/1/2004 6:12:47 PM ******/
CREATE FUNCTION dbo.Scouter
(
@Attacker int,
@Defender int
)
RETURNS nvarchar(48)
BEGIN
DECLARE @Name nvarchar(48)
SET @Name = (SELECT [Name] + '' + dbo.CalcReturnTime(@Attacker, @Defender) + ' hours' FROM K... |
<reponame>BugsUK/FindApprenticeship
CREATE TABLE [dbo].[TestConnection] (
[TestId] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL,
[TestName] NCHAR (10) NULL
);
|
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_2_0_logs/KRACOEUS-1396.sql
/* This script has been deprecated in place of 1401 */ |
<reponame>cccghundred/CargaMongoSB2
/* ==Scripting Parameters==
Source Server Version : SQL Server 2012 (11.0.6020)
Source Database Engine Edition : Microsoft SQL Server Enterprise Edition
Source Database Engine Type : Standalone SQL Server
Target Server Version : SQL Server 2012
Target Databa... |
<filename>sql/Facility.sql<gh_stars>0
CREATE TABLE Facility( FacilityID INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,FacilityNAME VARCHAR(30) NOT NULL,FacilityADDRESS VARCHAR(30) NOT NULL,FacilityCITY VARCHAR(30) NOT NULL,FacilitySTATE VARCHAR(30) NOT NULL,FacilityCOUNTRY VARCHAR(30) NOT NULL,FacilityZIPCODE VARCHAR(30)... |
<reponame>basic-history/noc-manager-template
create table pub_role (
id VARCHAR(32) primary key,
name VARCHAR(30),
is_tmp VARCHAR(1),
create_by VARCHAR(30),
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
remark VARCHAR(255)
) ENGINE=INNODB CHARSET=utf8 COLLATE=utf8_gene... |
<reponame>AnthonyMolinaro/ETL-LambdaBuilder
{Source_to_Standard}
SELECT SOURCE_CODE, TARGET_CONCEPT_ID
FROM CTE_VOCAB_MAP
WHERE lower(SOURCE_VOCABULARY_ID) IN ('jnj_tru_dpos')
AND (TARGET_STANDARD_CONCEPT IS NOT NULL or TARGET_STANDARD_CONCEPT != '')
AND (TARGET_INVALID_REASON IS NULL or TARGET_INVALID_REASON = '') |
<gh_stars>1000+
ALTER TABLE {$NAMESPACE}_phame.phame_post
ADD mailKey binary(20) NOT NULL;
|
-- Added new inserter_maker and inserter_destroyer functions
/*
* Inserter maker function. Accepts custom destination name.
*/
CREATE FUNCTION inserter_maker(p_src_table text, p_dest_table text, p_control_field text, p_dblink_id int) RETURNS void
LANGUAGE plpgsql
AS $_$
declare
v_insert_refresh_config ... |
<filename>treebase-core/db/cleaning/2010-03-12_postload_fixes/field_defaults.sql
BEGIN transaction;
update phylotree
set treekind_id = 1
where treekind_id is null;
update phylotree
set treequality_id = 1
where treequality_id is null;
update matrix
set description = 'Legacy TreeBASE Matrix ID = ' || tb... |
set system parameters 'dont_reuse_heap_file=yes';
drop table if exists t;
drop table if exists temp;
create table t(d date) partition by hash(add_months(d,3)) partitions 25;
create table temp(i int);
insert into temp select rownum from db_class limit 65;
insert into t select add_months('2014-05-06',i) from temp;
inser... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 23 Jul 2016 pada 07.39
-- Versi Server: 10.1.13-MariaDB
-- PHP Version: 7.0.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ... |
<gh_stars>0
DROP TABLE DepFacInfo CASCADE CONSTRAINTS;
DROP TABLE EleicaoInfo CASCADE CONSTRAINTS;
DROP TABLE EleicaoInfo_DepFacInfo;
DROP TABLE ListaCandidata CASCADE CONSTRAINTS;
DROP TABLE ListaCandidata_User CASCADE CONSTRAINTS;
DROP TABLE MesaVoto CASCADE CONSTRAINTS;
DROP TABLE UTILIZADORES CASCADE CONSTRAINTS;
D... |
<reponame>stonek4/IdolKpop
CREATE TABLE IF NOT EXISTS genres(
genre_id INT(11) NOT NULL AUTO_INCREMENT,
name VARCHAR(255) UNIQUE NOT NULL,
PRIMARY KEY(genre_id)
);
CREATE TABLE IF NOT EXISTS projects(
project_id INT(11) NOT NULL AUTO_INCREMENT,
name VARCHAR(255) NOT NULL,
description TEXT,
start_date DATE... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 10, 2021 at 01:42 AM
-- Server version: 5.6.44
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 ... |
<filename>cozum_masasivt.sql
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for problems
-- ----------------------------
DROP TABLE IF EXISTS `problems`;
CREATE TABLE `problems` (
`ProbID` int(11) NOT NULL AUTO_INCREMENT,
`problem` text CHARACTER SET utf... |
<filename>scripts/user_root.sql
-- CREACIÓN DE UN USUARIO
CREATE USER digitalpaco_admin PASSWORD '<PASSWORD>';
|
/*
Navicat MySQL Data Transfer
Source Server : AWS
Source Server Version : 50556
Source Host : 192.168.127.12:3306
Source Database : calendariobtl
Target Server Type : MYSQL
Target Server Version : 50556
File Encoding : 65001
Date: 2017-11-23 11:55:12
*/
SET FOREIGN_KEY_CHECKS=0;
... |
create definer = root@`%` procedure update_cat(IN new_cat int, IN current_cat int)
begin
delete from categorytree
where child_id in (select del.child_id from (select kid_all.child_id, kid_all.parent_id, kid_all.depth from (select parent_id as up from categorytree where child_id = current_cat and depth > 0) under_pare... |
<filename>benchmark/HashTags/queries-vectorwise-disabled/27.sql
--SELECT SUM(CAST("HashTags_1"."Calculation_8730311124516700" AS BIGINT)) AS "sum:Calculation_8730311124516700:ok", SUM(CAST("HashTags_1"."Calculation_8800311124604793" AS BIGINT)) AS "sum:Calculation_8800311124604793:ok", SUM(CAST("HashTags_1"."Contai... |
SELECT * FROM app_user WHERE id = $1;
|
CREATE OR REPLACE VIEW view_agents_workers AS
SELECT W.id, W.created, A.active AND W.active AND J.active AS active, W.lastping, W.agentid, A.name as agentname, A.netname,
W.jobid, J.name as jobname, W.version,
(SELECT concat_with_semicolon_agg(A.code)
FROM agents_workers_access WA
JOIN jobs_a... |
<reponame>TsvetanMilanov/TelerikAcademyHW
SELECT e.FirstName, e.LastName, ISNULL(CONVERT(nvarchar(50), e.ManagerID), '(no manager)') AS Manager
FROM Employees e |
<reponame>dvsa/poc-new-selenium
select veh.registration
from vehicle veh, mot_test_current mtc, mot_test_current_rfr_map rfr
where veh.registration is not null
and mtc.vehicle_id = veh.id
and mtc.prs_mot_test_id is null -- only shows tests that do not have a Pass after Rectification at Station
and mtc.id = rfr.mot_tes... |
<reponame>baktistr/myassist_hackidea
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 24, 2020 at 05:48 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
... |
<reponame>jerichosiahaya/rsa-web<gh_stars>1-10
INSERT INTO mobil(id, model, noMesin, noRangka, deliveryDate) VALUES
(1,'AGYA','-','MHKA4GA5JHJ009598','2018-01-24'),
(2,'CALYA ','-','MHKA6GJ6JHJ063260','2018-02-06'),
(3,'AVANZA','-','MHKM5FA4JHK036062','2018-01-29'),
(4,'AVANZA','-','MHKM5EA3JHK09052... |
-- phpMyAdmin SQL Dump
-- version 4.5.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Nov 12, 2015 at 06:09 AM
-- Server version: 5.5.46-0ubuntu0.14.04.2
-- PHP Version: 5.5.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
INSERT INTO setting(id, name, value)
VALUES (nextval('setting_seq'), 'MAILING_TEMPLATE',
'Witajcie<br/><br/><br/>
Varia:<br/>
- trwają Call 4 Papers na następujące konferencje: <br/>
-- <a href="http://2016.geecon.org/">GeeCON</a> (do 19 lutego),<br/>
-- <a href="http://2016.4developers.org.pl/">4Develop... |
-- file:create_index.sql ln:113 expect:true
CREATE TABLE kd_point_tbl AS SELECT * FROM quad_point_tbl
|
-- file:privileges.sql ln:986 expect:true
DROP SCHEMA testns4 CASCADE
|
<filename>data/sql/views.sql
BEGIN TRANSACTION;
CREATE VIEW IF NOT EXISTS stock AS SELECT id, name, category, amount FROM products WHERE deprecated = 0 OR amount != 0;
CREATE VIEW IF NOT EXISTS purchaseprices AS SELECT product, SUM(price * amount) / SUM(amount) AS price FROM restock GROUP BY product;
CREATE VIEW IF NOT... |
alter table company alter column vita TYPE text |
XQUERY
let $a := 534
let $b := "Hello There"
return <data>{ ($a, $b) }</data> |
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50548
Source Host : 127.0.0.1:3306
Source Database : male_ambry
Target Server Type : MYSQL
Target Server Version : 50548
File Encoding : 65001
Date: 2016-11-23 16:36:43
*/
SET FOREIGN_KEY_CHECKS=... |
<reponame>Fanqie22/microcloud
/*
Navicat Premium Data Transfer
Source Server : root
Source Server Type : MySQL
Source Server Version : 50724
Source Host : localhost:3306
Source Schema : microclouds
Target Server Type : MySQL
Target Server Version : 50724
File Encoding ... |
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: douban
-- ------------------------------------------------------
-- Server version 10.4.13-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... |
BEGIN;
ALTER TABLE changeset_specs ADD COLUMN head_ref text DEFAULT NULL;
ALTER TABLE changeset_specs ADD COLUMN title text DEFAULT NULL;
ALTER TABLE changeset_specs ADD COLUMN external_id text DEFAULT NULL;
CREATE INDEX changeset_specs_external_id ON changeset_specs (external_id);
CREATE INDEX changeset_specs_head_r... |
proc $sc_$cpu_fm_fileinfodisplay (filename, crcVal, expResult)
;==============================================================================
;
; Purpose: The purpose of this procedure is to perform the file info
; cmd and then write the contents of the packet to the log.
;
; Waring: It is advised that befor... |
CREATE OR REPLACE FUNCTION f_mb_prj_title_update (
in_projectid varchar(64),
in_titleid varchar(64),
in_titlename varchar(255),
in_titlelogo text,
OUT retcode integer, OUT retvalue text)
RETURNS record
LANGUAGE plpgsql
AS $function$
/*
* 函数说明:更新项目标题。
* 参数:按要求填写参数
* * 返回:
* retcode: 小于0,失败;==0成功
* ... |
<gh_stars>1000+
-- 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
-- "Li... |
<filename>gpMgmt/bin/gppylib/test/behave/mgmt_utils/steps/data/gptransfer_verify/function_verify.sql
\df
select proname,pronamespace, proowner,prolang,proisagg,prosecdef,proisstrict,proretset,provolatile,pronargs,prorettype,proiswin,proargtypes,prosrc from pg_proc where proname='add';
|
ALTER TABLE `users`
DROP COLUMN `notifycompat`,
DROP COLUMN `notifyevents`;
|
ALTER TABLE `users` ADD `locked` TINYINT(1) NOT NULL DEFAULT '0' AFTER `login_type`; |
-- Your SQL goes here
CREATE TABLE posts (
id SERIAL PRIMARY KEY,
title VARCHAR NOT NULL,
body TEXT NOT NULL,
published BOOLEAN NOT NULL DEFAULT 'f'
) |
REM ******************************************************************
REM Fecha : 08/05/2018
REM Realizado por : <NAME>
REM Base de Datos : FS_AUWEB_US
REM Script : Indexx
REM ******************************************************************
PROMPT MO_TROMO_IND.sql...
@@MO_TROMO_IND.sql
PROMPT US_TPUSR_IN... |
/*
Uno studente può effettuare una prenotazione per un appello di seduta di laurea se e solo se
l'appello di seduta di laurea per il quale ha eseguito la prenotazione afferisce al suo CdL,
se la somma dei CFU ottenuti con i seminari (al più 3), dei CFU ottenuti con il tirocinio (12),
dei CFU ottenuti co... |
<reponame>georgidelchev/CSharp-Databases<gh_stars>10-100
CREATE TABLE People
(
Id INT IDENTITY(1, 1) PRIMARY KEY,
[Name] NVARCHAR(200) NOT NULL,
Picture VARBINARY(MAX),
Height DECIMAL(3,2),
[Weight] DECIMAL(5,2),
Gender CHAR(1) NOT NULL,
Birthdate DATE NOT NULL,
Biography NVARCHAR(MAX)
)
INSERT INTO People([Na... |
<gh_stars>1-10
CREATE TABLE guilds
(id BIGINT PRIMARY KEY, mod_roles BIGINT[], admin_roles BIGINT[],
ticket_category BIGINT, ticket_log_channel BIGINT, support_roles BIGINT[],
ticket_ban_role BIGINT, ticket_index INT, chain_break_role BIGINT,
private_commands BOOLEAN, force_slash BOOLEAN, incident_index INT DEFAULT 1,
... |
<filename>api/migrations/sqls/20160618074947-ping-down.sql
DROP TABLE dailyReportPing;
|
CREATE TABLE mv_comment_comment_tag AS (SELECT c_id, c_creationdate, c_locationip, c_browserused, c_content, c_length, c_creatorid, c_locationid, c_replyof_post, c_replyof_comment, mt_messageid, mt_tagid FROM comment JOIN comment_tag ON c_id=mt_messageid);
CREATE TABLE mv_comment_tag_tag AS (SELECT mt_messageid, mt_tag... |
-- file:join.sql ln:675 expect:true
create index on tidv (idv)
|
-- /packages/acs-workflow/sql/postgresql/workflow-package-body.sql
-- create or replace package body workflow
-- function create_workflow
create or replace function workflow__create_workflow (varchar,varchar,varchar,varchar,varchar,varchar)
returns varchar as $$
declare
create_workflow__workflow_key alias for $1;
... |
<filename>inst/sql/sql_server/analyses/118.sql
-- 118 Number of observation period records with invalid person_id
select 118 as analysis_id,
cast(null as varchar(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3, cast(null as varchar(255)) as stratum_4, cast(null a... |
call p_insertStudents("William", "Dice",
"779 Lebanon Rd.", "Frisco", "TX", "75034",
"william.dice", "williamdice"); |
<filename>conf/evolutions/default/8.sql
# ---
# --- !Ups
CREATE INDEX ix_store_user_email ON store_user (email);
# --- !Downs
|
<reponame>bcodell/thesis-dbt<filename>macros/utils/timestamp_utils.sql
{# Copied from dbt-utils v0.8.0 with some minor formatting changes #}
{%- macro type_timestamp() -%}
{{ return(adapter.dispatch('type_timestamp', 'thesis_dbt')()) }}
{%- endmacro -%}
{%- macro default__type_timestamp() -%}
timestamp
{%- endm... |
<filename>vpc/service/db/migrations/39_gc_tombstone.up.sql
alter table assignments
add gc_tombstone timestamp;
|
-- УВЕДОМЛЕНИЯ --
INSERT INTO cld.notifications_log (uuid, dt_update, payload) VALUES
('46da5a45-8bfe-4418-a583-c5b2c48122d5', CURRENT_TIMESTAMP(2),
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
INSERT INTO cld.notifications_log (uui... |
-- Put upgrade SQL here
ALTER TABLE cloud_code_route ALTER COLUMN backend_url DROP DEFAULT;
|
<filename>packages/app/migrations/1610646236116_alter_table_public_module_version_drop_column_author_email/down.sql<gh_stars>1000+
ALTER TABLE "public"."module_version" ADD COLUMN "author_email" text;
ALTER TABLE "public"."module_version" ALTER COLUMN "author_email" DROP NOT NULL;
|
\o xml_explain_temp.txt
set explain_perf_mode=pretty;
explain performance
SELECT Party_Id, Zone_Num, Asset_Max_Belong_Org_Num FROM(SELECT
T1.Party_Id
,T1.Zone_Num
,T1.Asset_Max_Belong_Org_Num ... |
<reponame>rbev/azure-data-services-go-fast-codebase<gh_stars>0
/*-----------------------------------------------------------------------
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
-----------------------------------------------------------------------*/
/*
EXECUTE [ETL].[usp_StagingTable_L... |
-- MySQL dump 10.13 Distrib 5.6.39, for Linux (x86_64)
--
-- Host: localhost Database: nestoiopetnesto
-- ------------------------------------------------------
-- Server version 5.6.39-cll-lve
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET... |
-- --------------------------------------------------------
-- Servidor: 127.0.0.1
-- Versão do servidor: 5.7.14 - MySQL Community Server (GPL)
-- OS do Servidor: Win64
-- HeidiSQL Versão: 9.4.0.5125
-- --------------------------------------------------------
/*... |
<gh_stars>0
DROP TABLE IF EXISTS `Terrain`;
CREATE TABLE IF NOT EXISTS `Terrain` (
`ID` int(10) unsigned NOT NULL,
`Name` varchar(50) NOT NULL,
`type` varchar(50) NOT NULL,
`Source` varchar(4096) NOT NULL,
`Teaser` int(10) unsigned NOT NULL,
`Txt` longtext NOT NULL,
PRIMARY KEY (ID),
FULLTEXT Txt (Txt)... |
-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- This block of comments will not be included ... |
-- sends multiple callbacks
-- http://localhost:3000/api/example/callbacks
-- returns {foo:111, bar:222, baz:333}
--
create function example.web_callbacks(req jsonb) returns jsonb
as $$
declare
cb1 text = extract(epoch from current_timestamp);
cb2 text = extract(epoch from current_timestamp) + 1;
cb3 text =... |
<filename>public/dump/phpmysqlautobackup_log.sql
1432188088 1641514 2542
1432188148 1641514 2542
1432188209 1641514 2542
1432188269 1641514 2542
1432188328 1641514 2542
1432188388 1641514 2542
1432198223 1641514 2542
1432198645 1641620 2543
1432198740 1641726 2544
1432263070 1642741 2546
1432263170 1642847 2547
1432263... |
<gh_stars>0
INSERT INTO "vehicles" ("id", "model", "brand", "category_name", "year", "price", "original_price", "is_available") VALUES
(1, "DeLorean", "Motor Company", "classic", 1983, 45, 45),
(2, "<NAME>", "Volkswagen", "common", 1980, 35, 35),
(3, "Batmobile", "<NAME>", "premium", 1943, 75, 75) |
<reponame>ngodichat/studentManagement
CREATE DATABASE IF NOT EXISTS `studentmanagement` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;
USE `studentmanagement`;
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: studentmanagement
-- -------------------------... |
<filename>assignment/HW1_placeholder/q2_warmup.sql
SELECT city, count(city) FROM station
GROUP BY city
ORDER BY count(city) ASC
|
/*oficina*/
DROP DATABASE IF EXISTS oficina;
CREATE DATABASE oficina;
USE oficina;
/*TABLES*/
CREATE TABLE proprietarios (
id INT PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(40) NOT NULL,
cpf CHAR(11) UNIQUE NOT NULL
);
CREATE TABLE modelos (
id INT PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(40) UNIQUE NO... |
# Write your MySQL query statement below
SELECT name, population, area FROM World
WHERE area > 3000000 OR population > 25000000; |
<gh_stars>1-10
-- create tables
create table NODO4_CFG.INTERMEDIARI_PA
(
OBJ_ID numeric not null IDENTITY,
ID_INTERMEDIARIO_PA varchar(35) not null,
ENABLED boolean not null,
CODICE_INTERMEDIARIO varchar(255),
FAULT_BEAN_ESTESO boolean not null default 'N'... |
USE [${sqlserver.db}]
GO
CREATE USER [${sqlserver.user}] FOR LOGIN [${sqlserver.user}]
GO
ALTER USER [${sqlserver.user}] WITH default_schema=[${sqlserver.schema}]
GO
EXEC sp_addrolemember N'db_owner', N'${sqlserver.user}'
GO
|
CREATE FUNCTION istore_in_range(istore, int, int)
RETURNS boolean
AS 'istore', 'istore_in_range'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION istore_less_than(istore, int)
RETURNS boolean
AS 'istore', 'istore_less_than'
LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION istore_less_than_or_equal(ist... |
-- file:date.sql ln:149 expect:true
SELECT date '1999.008'
|
USE employee_db;
INSERT INTO department (name)
VALUES("Engineering"), ("Sales"), ("Finance"), ("Legal");
INSERT INTO role (title, salary, department_id)
VALUES("Engineering Lead", 150000, 1), ("Software Engineer", 100000, 1), ("Sales Lead", 75000, 2), ("Salesperson", 50000, 2), ("Lead Accountant", 100000, 3), ("Accou... |
call log('view_medgen_hpo.sql', 'begin');
-- ################################################################
desc medgen_hpo;
-- +---------------+--------------+------+-----+---------+-------+
-- | Field | Type | Null | Key | Default | Extra |
-- +---------------+--------------+------+-----+--------... |
<reponame>ynsingh/brihCI
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 21, 2017 at 05:41 PM
-- Server version: 5.6.27
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@... |
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `email`, `name`, `password`) VALUES
(1, '<EMAIL>', '<NAME>', 'admin'),
(2, '<EMAIL>', '', 'siva');
|
<filename>example/settings/write.sql
GRANT INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA eg TO @role
|
<reponame>DitaAjiPratama/muffin-coding-standards
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
CREATE DATABASE `crud_vue_realtime`;
USE `crud_vue_realtime`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` t... |
CREATE TABLE collection_sliders (
slider_id UUID NOT NULL,
collection_id UUID NOT NULL,
CONSTRAINT collection_sliders_pk PRIMARY KEY (collection_id, slider_id),
CONSTRAINT FK_collection FOREIGN KEY (collection_id) REFERENCES collection (id),
CONSTRAINT FK_slider FOREIGN KEY (slider_id) REFERENCES s... |
<filename>db/helpdesk.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 02 Okt 2018 pada 12.32
-- Versi server: 10.1.28-MariaDB
-- Versi PHP: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone ... |
<reponame>laurelle17/CV<gh_stars>0
use //nom bd
create table profiles(
id int primary key auto_increment not null;
first_name varchar(48),
last_name varchar(40),
emails varchar(40),
phone varchar(40),
marital_status varchar(30),
profil_name varchar(40),
profil_image binary,
born_date... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.