sql stringlengths 6 1.05M |
|---|
function render_qr_item (
p_item in apex_plugin.t_page_item,
p_plugin in apex_plugin.t_plugin,
p_value in varchar2,
p_is_readonly in boolean,
p_is_printer_friendly in boolean )
return apex_plugin.t_page_item_render_result
is
l_size ... |
<reponame>RittmanMead/ChitChat
CREATE TABLE "RMREP"."ANNOTATION_SECURITY"
( "ID" NUMBER(19,0),
"ANNOTATION_ID" NUMBER(10,0),
"ROLE" VARCHAR2(255 CHAR)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 8388608 NEXT 8388608 MINEXTENT... |
<gh_stars>1-10
/*
Warnings:
- Added the required column `title` to the `Todo` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `Todo` ADD COLUMN `title` VARCHAR(191) NOT NULL;
|
-- Buildings
------------------------------
INSERT INTO Buildings
(Type, BuildingClass, AllowsRangeStrike, Defense, ExtraCityHitPoints, CityWall, Cost, GoldMaintenance, PrereqTech, ArtDefineTag, XBuiltTriggersIdeologyChoice, SpecialistType, SpecialistCount, MinAreaSize, ConquestProb, HurryCostModifier, Help, Descri... |
-- -------------------------------------------------------------
-- REPLACE "TESTNET with your BOTNAME" to match USERNAME in the config .ENV
-- REPLACE "1h" with your trading timeframe to match TRADING_VIEW_API_TIMEFRAME in the config .ENV
-- -------------------------------------------------------------
DROP TABLE ... |
<reponame>DEFRA/prsd-iws<gh_stars>1-10
GO
PRINT N'Creating [Lookup].[LocalArea]...';
GO
CREATE TABLE [Lookup].[LocalArea] (
[Id] UNIQUEIDENTIFIER NOT NULL,
[Name] NVARCHAR (1024) NOT NULL,
CONSTRAINT [PK_LocalArea_Id] PRIMARY KEY CLUSTERED ([Id] ASC)
);
GO
INSERT INTO [Lookup].[LocalAre... |
<filename>src/test/scripts/create.sql
CREATE SCHEMA IF NOT EXISTS hr;
DROP TABLE IF EXISTS hr.emp;
CREATE TABLE IF NOT EXISTS hr.emp (
emp_id IDENTITY,
emp_name VARCHAR(50),
salary DOUBLE
);
|
<reponame>pribtech/nodete<gh_stars>0
%explain
"select tx_item, tx_date, tx_sales from Total_Sales
where month(tx_date) = 3
and tx_item = 'X22'
order by tx_date" |
<reponame>SouravSarkar7/YourAppIdea
drop table T_TUTORIAL;
create table T_TUTORIAL (
_id integer primary key autoincrement,
POSTID INTEGER not null,
TITLE TEXT not null,
DESCRIPTION TEXT not null,
THUMBNAIL TEXT not null,
URL TEXT not null,
CONTENT TEXT not null,
AUTHOR TEXT not null,
DATECREATION INTEGER no... |
<gh_stars>10-100
DROP DATABASE IF EXISTS test_00508;
CREATE DATABASE test_00508;
USE test_00508;
CREATE TABLE src (x UInt8) ENGINE = Null;
CREATE TABLE dst (x UInt8) ENGINE = Memory;
CREATE MATERIALIZED VIEW mv_00508 TO dst AS SELECT * FROM src;
INSERT INTO src VALUES (1), (2);
SELECT * FROM mv_00508 ORDER BY x;
-... |
<reponame>peahonen/snabb
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64)
--
-- Host: nbn-l8-dev2-os-8 Database: neutron_ml2
-- ------------------------------------------------------
-- Server version 5.5.40-0ubuntu0.14.04.1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!... |
<reponame>zadean/pl-sql-BaseX<gh_stars>1-10
-- hr_example.sql
-- grant select on hr.employees to <user>;
-- grant select on hr.departments to <user>;
-- grant select on hr.jobs to <user>;
-- grant select on hr.locations to <user>;
-- grant select on hr.countries to <user>;
-- grant select on hr.regions to <user>;... |
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/scroll/Opengauss_Function_Keyword_Scroll_Case0026.sql
-- @testpoint:opengauss关键字scroll(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists scroll;
create schema scroll;
drop schema scroll;
--关键字带双引号-成功
drop schema if exists "scroll";
create schema "s... |
-- 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 `accounts`;
CREATE TABLE `accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`fname` varchar(200) NOT NULL,
`asset` va... |
CREATE TABLE user_dados(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
user_nome VARCHAR(255) NOT NULL UNIQUE,
email VARCHAR(255) NOT NULL UNIQUE,
nome VARCHAR(255) NOT NULL,
senha VARCHAR(255) NOT NULL
) |
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS `Pessoa_Interpreta_Musica` (
`codigo_pessoa` INTEGER NOT NULL,
`codigo_musica` INTEGER NOT NULL,
FOREIGN KEY(`codigo_musica`) REFERENCES `Musica`(`codigo_musica`),
PRIMARY KEY(`codigo_pessoa`,`codigo_musica`),
FOREIGN KEY(`codigo_pessoa`) REFERENCES `Pessoa`(`codigo_pe... |
<filename>test/test-db/recreate_schema_mysql.sql
DROP TABLE IF EXISTS order_products CASCADE;
DROP TABLE IF EXISTS products CASCADE;
DROP TABLE IF EXISTS orders CASCADE;
DROP TABLE IF EXISTS categories CASCADE;
DROP TABLE IF EXISTS manufacturers CASCADE;
CREATE TABLE categories (
id INTEGER AUTO_INCREMENT PRIMARY KE... |
ALTER DATABASE [$(DatabaseName)]
ADD LOG FILE (NAME = [TemplateWebsite_log], FILENAME = 'F:\Databases\TemplateWebsite_log.ldf', SIZE = 1024 KB, MAXSIZE = 2097152 MB, FILEGROWTH = 10 %);
|
CREATE
TABLE
table_name
(
NO INTEGER PRIMARY KEY AUTO_INCREMENT,
CONTENTS VARCHAR(140) NOT NULL
)
ENGINE = InnoDB
|
INSERT INTO `database`.`table` (`identifier`, `language`, `content`)
VALUES
("LOREM_IPSUM","pt-PT","Lorem ipsum dolor sit amet .."),
("LOREM_IPSUM","zh-CN","Lorem ipsum dolor sit amet .."),
("LOREM_IPSUM","nl-NL","Lorem ipsum dolor sit amet .."),
("LOREM_IPSUM","pt-BR","Lorem ipsum dolor sit amet .."),
("LOREM_... |
INSERT INTO usuarios(nome, email, idade) VALUES (
"<NAME>",
"<EMAIL>",
29
);
INSERT INTO usuarios(nome, email, idade) VALUES (
"<NAME>",
"<EMAIL>",
24
);
INSERT INTO usuarios(nome, email, idade) VALUES (
"<NAME>",
"<EMAIL>",
20
);
INSERT INTO usuarios(nome, email, idade) VALUES (
... |
CREATE TABLE IF NOT EXISTS USE (
id_airline INTEGER,
id_airway INTEGER,
PRIMARY KEY (id_airline, id_airway),
FOREIGN KEY (id_airline)
REFERENCES AIRLINE (id),
FOREIGN KEY (id_airway)
REFERENCES AIRWAY (id)
); |
<filename>test-laravel (2).sql
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 13, 2020 at 06:25 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone ... |
<reponame>dmego/springcloud-seata-demo
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for account
-- ----------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`id` varchar(255) NOT NULL COMMENT '账户',
`balance` double DEFAULT NULL COMMEN... |
<reponame>openwebsolns/techscore<filename>src/db/down/00022_change_conference_null_in_pub_update_conference.sql<gh_stars>1-10
DELETE FROM pub_update_conference
WHERE conference IS NULL
;
ALTER TABLE pub_update_conference
DROP FOREIGN KEY `fk_pub_update_conference_conference`,
CHANGE COLUMN conference conference... |
-- sort.test
--
-- execsql {
-- SELECT c FROM t7 WHERE c<=3 ORDER BY c DESC;
-- }
SELECT c FROM t7 WHERE c<=3 ORDER BY c DESC; |
<filename>src/test/resources/sql/_unknown/f3312893.sql
-- file:plpgsql.sql ln:2210 expect:false
return _v
|
<reponame>mark-ott/DE<filename>DE/Solutions/02 - ELT with Spark SQL and Python/DE 2.2.9L - Reshaping Data Lab.sql<gh_stars>0
-- Databricks notebook source
-- MAGIC %md-sandbox
-- MAGIC
-- MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;">
-- MAGIC <img src="https://databricks.com/wp-content/up... |
CREATE SCHEMA IF NOT EXISTS nss;
CREATE TABLE IF NOT EXISTS nss."_EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK__EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
CREATE SCHEMA IF NOT EXISTS nss;
CREATE EXTENSION IF... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 15-Jul-2020 às 22:48
-- Versão do servidor: 10.4.8-MariaDB
-- versão do PHP: 7.1.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... |
-- If you had problems creating tables in steps 5 and 6 of the final,
-- this script will create enough of what you need to run the
-- queries in step 7. This is incomplete!
DROP TABLE IF EXISTS MonstersB CASCADE;
DROP TABLE IF EXISTS LocationsB CASCADE;
DROP TABLE IF EXISTS ClassesB CASCADE;
DROP TABLE IF EXISTS Enro... |
<filename>01.-Database-Introduction/03.-Alter-Minions-Table/03.-Alter-Minions-Tablesql.sql
--CREATE DATABASE Minions
--USE Minions
--CREATE TABLE Minions(
-- Id INT PRIMARY KEY NOT NULL,
-- [Name] VARCHAR(50) NOT NULL,
-- Age TINYINT
--)
--CREATE TABLE Towns(
-- Id INT PRIMARY KEY NOT NULL,
-- [Name] NVARCHAR(... |
<reponame>fivetran/dbt_apple_store_source
select *
from {{ var('app_store_device') }}
|
DO $$
BEGIN
BEGIN
PERFORM internal.ac_add_role('ADMIN', 'app admin');
EXCEPTION
WHEN unique_violation THEN
NULL;
END;
BEGIN
PERFORM internal.ac_add_role('BASE_USER', 'base user');
EXCEPTION
WHEN unique_violation THEN
NULL;
END;
END
$$;
|
-- Existing empty db file from CREATE statements in Essence.createtable.sql
-- __________
-- sqlite3 Essence.db
-- .read /cygdrive/u/code/misccode/Essence.insertinto.sql
-- To query:
-- sqlite> .read Essence.insertinto.sql
-- DDL
BEGIN TRANSACTION;
-- ______optional_____... |
--The top N populated countries in the world where N is provided by the user.
SELECT code, name, continent, region, population, capital
FROM country
ORDER BY population DESC
LIMIT n
; |
<reponame>ychung-mot/HMCR
/* ---------------------------------------------------------------------- */
/* Script generated with: DeZign for Databases 11.1.0 */
/* Target DBMS: MS SQL Server 2017 */
/* Project file: APP_HMR.dez ... |
<gh_stars>10-100
CREATE OR REPLACE PACKAGE BODY teplsql_hello_world IS
/*
* Copyright 2015 <NAME> <<EMAIL>>
*
* 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
*
*... |
<filename>googlephoto.sql
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th6 05, 2019 lúc 11:40 AM
-- Phiên bản máy phục vụ: 10.1.33-MariaDB
-- Phiên bản PHP: 7.2.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET t... |
<gh_stars>0
CREATE TABLE IF NOT EXISTS `project`
(
`index` INTEGER NOT NULL AUTO_INCREMENT,
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`id` VARCHAR(255),
`title` VARCHAR(255),
`root` VARCHAR(255),
`db` VARCHAR(255),
`state` VARCHAR(50),
PRIMARY KEY(`index`)
)
ENGINE=MyISAM DEFAULT CHARACTER SET=utf8;
... |
<reponame>patrickmestebeld/psider-iac
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
START TRANSACTION;
CREATE TABLE "AspNetRoles" (
... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.3
-- Dumped by pg_dump version 13.3
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', fal... |
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50720
Source Host : localhost:3306
Source Schema : test_manager
Target Server Type : MySQL
Target Server Version : 50720
File Encoding : 65001
Date: 27/03/20... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 16, 2021 at 09:26 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<filename>Exemplo_MySQL.sql
CREATE TABLE alunos (id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(255), data_nascimento DATE, cursos_id INTEGER);
CREATE TABLE cursos (id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(255));
CREATE TABLE notas (id INTEGER PRIMARY KEY AUTO_INCREMENT, nota DECIMAL(3, 2), aluno_id INT... |
<filename>Trigger/kartu stok potong stok jika receive di void.sql<gh_stars>0
delimiter //
create trigger trgreceiveheader_void after update on receive_header
for each row
begin
declare done int(2);
declare done2 int(2);
declare Var_No_receive varchar(20);
declare Var_tgl date;
declare Var_Id_product int(11);
... |
-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 19, 2015 at 12:17 PM
-- Server version: 5.6.24
-- PHP Version: 5.5.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 07, 2021 at 07:51 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
CREATE TABLE public.players
(
id int4 NOT NULL GENERATED ALWAYS AS IDENTITY,
creation_date TIMESTAMPTZ DEFAULT now() NOT NULL,
name varchar(200) NOT NULL,
games_played int DEFAULT 0,
CONSTRAINT player_pkey PRIMARY KEY (id)
); |
drop table `post`;
|
<reponame>344147805/topphp-install
/**
* @copyright 凯拓软件 [临渊羡鱼不如退而结网,凯拓与你一同成长]
* @author bai <<EMAIL>>
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for topphp_admin
-- ----------------------------
DROP TABLE IF EXISTS `topphp_admin`;
CREATE TABLE `topphp_admi... |
CREATE PROCEDURE [dbo].[UpdateRateLimit]
@Token NVARCHAR(64),
@RateLimit INT,
@RateLimitRemaining INT,
@RateLimitReset DATETIMEOFFSET
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON
UPDATE Accounts SET
RateLimit = @RateLimit,... |
<reponame>CuriousDrive/Northwind_API<filename>Databases/MySQL/creating_foreign_keys.sql
-- first let's list down the foreign keys that we need to make and then write scripts to do that
-- categories
-- customers
-- employees
-- orderdetails
ALTER TABLE orderdetails ADD FOREIGN KEY (OrderId) REFERENCES Orders(OrderId... |
CREATE TABLE AfkArena_Heroes
(
HeroId bigint NOT NULL IDENTITY ( 1,1 ) ,
FactionId bigint NOT NULL ,
HeroRarity nvarchar(25) NOT NULL ,
HeroImageUrl nvarchar(200) ,
HeroName nvarchar(50) NOT NULL ,
TypeId bigint NOT NULL ,
ClassId bigint NOT NULL ,
RoleId bigint NOT NULL ,
CONSTRAINT... |
<gh_stars>0
delimiter $$
CREATE TABLE `COMPLETION` (
`player_id` int(11) NOT NULL DEFAULT '0',
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`quest_id` int(11) NOT NULL,
`rating` varchar(45) DEFAULT NULL,
PRIMARY KEY (`player_id`,`date`,`quest_id`)
) ENGINE=MyISAM DEFAULT C... |
/*
Navicat MySQL Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : grade
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 07/03/2020 21:28:58
*/
... |
<filename>database/migrations/functions/repositories/update_repository.sql
-- updates_repository updates the provided repository in the database.
create or replace function update_repository(p_user_id uuid, p_repository jsonb)
returns void as $$
declare
v_repository_id uuid;
v_owner_user_id uuid;
v_owner_or... |
<gh_stars>1-10
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
USE [generate]
GO
/****** Object: ... |
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE IF NOT EXISTS `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uri` varchar(30) NOT NULL DEFAULT '',
`tag_name` varchar(50) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `uri` (`uri`),
U... |
ALTER TABLE `Ignore` MODIFY Port VARCHAR(150) NULL;
ALTER TABLE `IgnoreAudit` MODIFY Port VARCHAR(150) NULL; |
<reponame>ckamtsikis/cmssw
CREATE TABLE o2o_log (
object_name VARCHAR2(100),
last_id NUMBER,
num_transfered NUMBER,
transfer_start TIMESTAMP,
transfer_duration INTERVAL DAY TO SECOND
);
|
-- start_ignore
-- end_ignore
-- @description query01 tests that delimiters are disabled when table creation has delimiter 'off'
--
select * from hcfs_text_delimiter_off;
|
ALTER TABLE `lh_users` ADD `cache_version` int(11) unsigned NOT NULL DEFAULT '0', COMMENT=''; |
SELECT ersub.id,ersub.first_name,ersub.last_name,ersub.title,ersub.department,ersub.salary,CONCAT(msub.first_name,' ',msub.last_name) AS manager
FROM
(SELECT employees.id,employees.first_name,employees.last_name,rsub.title,rsub.department,rsub.salary,employees.manager_id
FROM
employees JOIN (select roles.id,roles.titl... |
<reponame>Bustomii/git_epakan
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 09, 2020 at 03:54 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone =... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.0.10.18
-- https://www.phpmyadmin.net
--
-- Servidor: localhost:3306
-- Tiempo de generación: 16-07-2017 a las 08:41:22
-- Versión del servidor: 5.6.35-cll-lve
-- Versión de PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>ZhengPeiRu21/mod-individual-progression<filename>sql/world/base/class_trainers.sql
/* Remove Summon Imp from Trainer - it is a quest reward instead */
DELETE FROM `npc_trainer` WHERE `ID`=200009 AND `SpellID`=688;
-- Remove starting dual wield skill for rogues, add to trainers at level 10
DELETE FROM `playe... |
create table if not exists racl_acls (
-- Standard
id uuid default uuid_generate_v4(),
created_at timestamptz default current_timestamp,
updated_at timestamptz default current_timestamp,
-- References
resource_id text references racl_resources(id) ON DELETE CASCADE not null,
... |
<filename>import/jordanteste.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : lun. 19 oct. 2020 à 20:48
-- Version du serveur : 5.7.24
-- Version de PHP : 7.2.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET ti... |
CREATE TABLE `order` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`customer_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (61,32,DATE'2014-09-16','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',13.86)
;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","I... |
{{ config({
"materialized":"table",
"schema": "analytics"
})
}}
WITH greenhouse_stage_intermediate AS (
SELECT *
FROM {{ ref ('greenhouse_stage_intermediate') }}
), final AS (
SELECT
unique_key,
application_stage,
is_milestone_stage,
DATE_TRUNC(week, stage_entered... |
<reponame>Shuttl-Tech/antlr_psql
-- file:strings.sql ln:302 expect:true
SELECT 'hawkeye' NOT ILIKE 'h%' AS "false"
|
<gh_stars>10-100
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.1.63-community - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL version: 7.0.0.4053
-- Date/time: 201... |
<reponame>HLoveMe/HWMBBF_Serve
-- MySQL dump 10.13 Distrib 5.7.9, for osx10.9 (x86_64)
--
-- Host: localhost Database: HWMBBF
-- ------------------------------------------------------
-- Server version 5.7.13
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=... |
SELECT
artist,
COUNT(*) as song_count
FROM (
SELECT
artist
FROM
`RapCaviar.artists`
UNION ALL
SELECT
artist
FROM
`RockThis.artists`
UNION ALL
SELECT
artist
FROM
`todays_top_hits.artists`)
GROUP BY
1
ORDER BY
2 DESC
|
select
name,
id
from
aws.aws_auditmanager_assessment
where
id = 'f6e7823d-7324-4c88-812a-f4237c8fb95f'; |
DROP TABLE Blog;
DROP TABLE Post_tags_Many;
DROP TABLE Post;
DROP TABLE Tag; |
<reponame>lockss/laaws-daemon<gh_stars>0
/* Version 1 */
CREATE TABLE IF NOT EXISTS tables (
/* A unique row ID */
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
/* A required table name */
name VARCHAR(63) NOT NULL,
/* A required version */
version INTEGER UNSIGNED NOT NULL
... |
DROP DATABASE IF EXISTS employeetracker_db;
CREATE DATABASE employeetracker_db;
USE employeetracker_db;
CREATE TABLE departments (
id INTEGER(10) NOT NULL AUTO_INCREMENT,
name VARCHAR(30) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE roles (
id INTEGER(10) NOT NULL AUTO_INCREMENT,
title VARCHAR(30) NOT NULL,... |
BEGIN TRANSACTION;
CREATE TABLE "TORNEO" (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`nombre` TEXT,
`imagen` TEXT,
`rondas` INTEGER,
`ponderacion` INTEGER,
`puntuacion_inicial` INTEGER
);
CREATE TABLE "EQUIPO" (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`nombre` TEXT,
`imagen` TEXT,
... |
--postgresql setup
--CREATE DATABASE hamshackradio
-- initial set of tables and procedures
CREATE TABLE Sales (SalesID INT PRIMARY KEY NOT NULL,
SalesDate TIMESTAMP);
CREATE OR REPLACE PROCEDURE public.SalesInfo ()
LANGUAGE plpgsql
AS $$
BEGIN
SELECT *
FROM public.Sales AS s;
END;
$$;
CRE... |
<reponame>LeiShi1313/tt-rss-pi
drop table if exists ttrss_error_log;
drop table if exists ttrss_plugin_storage;
drop table if exists ttrss_linked_feeds;
drop table if exists ttrss_linked_instances;
drop table if exists ttrss_access_keys;
drop table if exists ttrss_user_labels2;
drop table if exists ttrss_labels2;
drop ... |
<gh_stars>0
CREATE DATABASE IF NOT EXISTS `luyabaya_binary` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `luyabaya_binary`;
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: localhost Database: luyabaya_binary
-- ------------------------------------------------------
-- Server version 5.5.5... |
INSERT INTO company(id, company_name) VALUES(1, '<NAME>');
INSERT INTO company(id, company_name) VALUES(2, '<NAME>');
INSERT INTO company(id, company_name) VALUES(3, '<NAME>');
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 14, 2019 at 08:07 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... |
<reponame>glorsh66/bw317<gh_stars>0
/*Простой селект из персон*/
SELECT id FROM person
WHERE (height BETWEEN 110 and 180)
and (weight BETWEEN 50 and 250)
and sex =1
and sexual_orientation =1
and relationship =1
and education > 1
and employment = 1
and smoke = 1
and alcohol =1
and sport = 1
and health = 1
and virus_hiv ... |
<reponame>JavaFXMax/CBS
-- phpMyAdmin SQL Dump
-- version 4.0.10.14
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Nov 07, 2016 at 11:47 AM
-- Server version: 5.5.52-cll-lve
-- PHP Version: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<reponame>DanielQA123/ims-demo
drop database if exists ims_test;
create database if not exists ims_test;
create table ims_test.customers(id int primary key auto_increment, first_name varchar(40), surname varchar(40));
create table if not exists ims_test.items(id int primary key auto_increment, item_name varchar(100), p... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 17, 2020 at 05:42 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
/*
Queries to Produce trafficSense Experimental Tables from Imported OSM Data.
--------------------------------------
-- WARNING: A L P H A VERSION ----------
--------------------------------------
***** ***
*** *** ***
*** *** ***
*********** ***
... |
ALTER TABLE Users
DROP CONSTRAINT PK_Users
ALTER TABLE Users
ADD CONSTRAINT PK_Id PRIMARY KEY(Id)
ALTER TABLE Users
ADD CONSTRAINT CHK_Username CHECK(LEN(UserName) >= 3)
ALTER TABLE Users
ADD CONSTRAINT UNQ_UserName UNIQUE(UserName)
ALTER TABLE Users
DROP CONSTRAINT US_Unique
SELECT * FROM Users |
<reponame>ozzyasmara/example
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 17, 2019 at 06:01 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.2.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone ... |
create table views.cenapi_evento_by_month as
SELECT
m.cve_geoid,
m.cve_ent,
m.cve_mun,
m.nom_mun,
m.nom_ent,
extract(year from c.fecha_evento) as year,
extract(month from c.fecha_evento) as month,
extract(epoch
from make_date(extract(year from c.fecha_evento)::int, extract(month from c.fecha_event... |
USE [VipunenTK_DW]
GO
/****** Object: StoredProcedure [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] Script Date: 7.7.2017 13:56:49 ******/
DROP PROCEDURE IF EXISTS [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18]
GO
/****** Object: StoredProcedure [dbo].[p_lataa_f_elakkeelle_siirty... |
<filename>src/Security/AzureCRM/Security/UserWithPassword1.sql
-- WITH PASSWORD
-- Specifies the password for the user that is being created.
-- Can only be used in a contained database.
CREATE USER [UserWithPassword1]
WITH PASSWORD = <PASSWORD>'
GO
GRANT CONNECT TO [UserWithPassword1]
-- https://docs.microsoft... |
<reponame>dotnetcloudbase/micro-commerce<filename>src/Services/Identity/Shared/MicroCommerce.Identity.EntityFramework.Npgsql/scripts/AdminIdentity/V1.1__Init.sql<gh_stars>10-100
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varyin... |
ALTER TABLE place
ADD COLUMN s2_cell BIGINT UNSIGNED NOT NULL,
ADD INDEX (s2_cell);
|
<reponame>Shuttl-Tech/antlr_psql
-- file:timestamptz.sql ln:179 expect:true
SELECT '' AS one, d1 FROM TIMESTAMPTZ_TBL
WHERE d1 = timestamp with time zone '1997-01-02'
|
-- file:subselect.sql ln:363 expect:true
create temp view view_a as select * from table_a
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.