sql stringlengths 6 1.05M |
|---|
insert into cell_info values
(36, 5, 26, 'U', false, false),
(36, 5, 27, 'I', false, false),
(36, 5, 28, 'K', false, false),
(36, 5, 29, 'M', false, false);
|
-- load varieties list (sourced from on https://github.com/collabriculture/australian-grape-vine-varieties)
insert into variety (name) values
('<NAME>'),
('Carignan'),
('Carmenere'),
('Clairette'),
('Colombard'),
('Durif'),
('Fiano'),
('Grenache'),
('Gerwurztraminer'),
('Malbec')... |
MERGE INTO Course AS Target
USING (VALUES
(1, 'Economics', 3),
(2, 'Literature', 3),
(3, 'Chemistry', 4)
)
AS Source (CourseID, Title, Credits)
ON Target.CourseID = Source.CourseID
WHEN NOT MATCHED BY TARGET THEN
INSERT (Title, Credits)
VALUES (Title, Credits);
MERGE INTO Student AS Ta... |
SELECT table_name,
column_name,
ordinal_position,
data_type,
udt_name
FROM information_schema.columns
WHERE table_schema = 'public' AND
table_name IN (
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public' AND table_type = 'BASE TABLE'
)
ORDER... |
DROP TABLE "public"."margin";
|
ALTER TABLE [ACT_FO_FORM_INSTANCE] ADD [SCOPE_ID_] [varchar](255)
GO
ALTER TABLE [ACT_FO_FORM_INSTANCE] ADD [SCOPE_TYPE_] [varchar](255)
GO
ALTER TABLE [ACT_FO_FORM_INSTANCE] ADD [SCOPE_DEFINITION_ID_] [varchar](255)
GO
INSERT INTO [ACT_DMN_DATABASECHANGELOG] ([ID], [AUTHOR], [FILENAME], [DATEEXECUTED], [ORDEREXECU... |
-- =================================================================================
-- Copyright 2014 <NAME>, <NAME>, <NAME>, <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
-- ... |
<gh_stars>1-10
-- +goose Up
CREATE TABLE blocks (
id SERIAL NOT NULL,
canonical BOOLEAN NOT NULL,
height CHAIN_HEIGHT,
time CHAIN_TIME,
hash TEXT NOT NULL,
parent_hash TEXT NOT NULL,
ledger_hash TEXT NOT NULL,
s... |
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int NOT NULL AUTO_INCREMENT,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`date_created` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB ;
LOCK TABLES `admin` WRITE;
INSERT INTO `admin` VALUES (1,'hamza',... |
<filename>sql/_23_apricot_qa/_02_performance/_02_function_based_index/cases/function_based_index_function_log10.sql
--+ holdcas on;
set system parameters 'dont_reuse_heap_file=yes';
create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int, h... |
<filename>openGaussBase/testcase/KEYWORDS/Immutable/Opengauss_Function_Keyword_Immutable_Case0022.sql
-- @testpoint:opengauss关键字Immutable(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists Immutable;
create group Immutable with password '<PASSWORD>';
drop group Immutable;
--关键字带双引号-成功
drop group if exists "Immutable";
c... |
-- @testpoint:opengauss关键字grant(保留),作为函数名
--关键字不带引号-合理报错
create function grant(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--关键字带双引号-成功
create function "grant"(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--清理环境
drop function "grant";
--关... |
-- DELETE FROM bamazon.products WHERE item_id <> 0 ;
SELECT item_id,product_name,department_name,price,stock_quantity, product_sales FROM bamazon.products;
INSERT INTO bamazon.products
(product_name,department_name,price,stock_quantity)
VALUES
('LG - 65" Class - LED - UK6090PUA Series - 2160p - Smart - 4K UHD TV wit... |
CREATE DATABASE burgers_db;
USE burgers_db;
CREATE TABLE burgers(
id INT AUTO_INCREMENT NOT NULL,
burger_name VARCHAR(100),
devoured BOOLEAN,
createdAt TIMESTAMP NOT NULL,
PRIMARY KEY(id)
);
|
<gh_stars>0
DROP TABLE `member_location`; |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 08, 2018 at 03:54 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 7.0.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
<filename>Projekt_Bazy/Podzespoly/plyty.sql
CREATE TABLE Plyty (
ID_PlytyGl INT AUTO_INCREMENT PRIMARY KEY,
Nazwa VARCHAR(200),
Socket VARCHAR(200),
Chipset VARCHAR(200),
Cena INT
);
INSERT INTO plyty (`Nazwa`, `Socket`, `Chipset`, `Cena`)
VALUES ('MSI B450 TOMAHAWK MAX','AM4','AMD B450',449),
('MSI B450 GA... |
ALTER TABLE kanban_tasks RENAME assignees TO assignee;
ALTER TABLE kanban_tasks ALTER COLUMN assignee TYPE INTEGER,
alter table kanban_tasks add constraint fk_kanban_tasks_assignee foreign key (assignee) references users (id);
|
-- @copyright Copyright(c) 2016 Webtools Ltd
-- @copyright Copyright(c) 2018 Thamtech, LLC
-- @link https://github.com/thamtech/yii2-scheduler
-- @license https://opensource.org/licenses/MIT
DROP TABLE IF EXISTS `scheduler_log` ;
DROP TABLE IF EXISTS `scheduler_task` ;
-- -----------------------------------------... |
<gh_stars>1-10
--
-- Test rxLinMod Performance on Table with Primary Key
--
-- Create procedure to insert data from XDF to SQL.
CREATE PROCEDURE [dbo].[usp_ImportXDFtoSQL]
AS
DECLARE @RScript NVARCHAR(MAX)
SET @RScript = N'library(RevoScaleR)
rxOptions(sampleDataDir = "C:/Program Files/Microsoft SQL Serve... |
<reponame>aliostad/deep-learning-lang-detection
-- Master table that stores all invocations
-- APPEND ONLY! Rows in this table should never be updated. Only INSERTED (and for clean-up purposes, DELETED)
-- Use SPROCS!
CREATE TABLE [private].[InvocationsStore]
(
[Version] BIGINT NOT NULL PRIMARY KEY IDENTITY,
[... |
<reponame>lmullen/cchc
DROP TABLE IF EXISTS stacks_books;
|
USE data_extracts;
DROP PROCEDURE IF EXISTS knowDiabetesPatientBulkBatched;
DELIMITER //
CREATE PROCEDURE knowDiabetesPatientBulkBatched()
BEGIN
/*
This procedure loops down 1000 patients at a time that have bulkSent = 0.
This procedure updates after every loop of 1000 so it can be interuppted ... |
<reponame>kevin154/cs50
SELECT name FROM movies, stars, people WHERE movies.id = stars.movie_id AND stars.person_id = people.id AND title = 'Toy Story'; |
<gh_stars>10-100
SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'; |
<gh_stars>1000+
#standardSQL
-- Copyright 2017 The Nomulus Authors. All Rights Reserved.
--
-- 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... |
DROP TABLE if exists USER;
DROP TABLE if exists PRODUCT;
DROP TABLE if exists COUNTRY;
DROP TABLE if exists MANUFACTURER;
DROP TABLE if exists PRODUCT_ORIGINAL;
DROP TABLE if exists REVIEW;
DROP TABLE if exists QUESTION;
DROP TABLE if exists ANSWER;
CREATE TABLE USER (
id INTEGER NOT NULL PRIMARY KEY ... |
#Database
CREATE TABLE `tbl_session` (
`Session_Id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`Session_Expires` datetime NOT NULL,
`Session_Data` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`Session_Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
<reponame>mutiarakasih123/Pengelolaan_Kinerja_Dosen
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 22, 2020 at 04:02 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANS... |
<filename>features/support/prodder__blog_prod.sql
ALTER DATABASE prodder__blog_prod SET custom.parameter = 1;
CREATE TABLE authors (
author_id serial primary key,
name text
);
CREATE TABLE posts (
post_id serial primary key,
author_id integer,
body text
);
CREATE TABLE comments (
comment_id serial primar... |
/* View for selecting data to be imported when editing multiple samples */
CREATE OR REPLACE VIEW `view_samples_import` AS
SELECT
samples.id AS `sample_id`,
samples.title AS `sample-title`,
samples.description AS `sample-description`,
collection.collection_year AS `collection-year`,
collection.collectio... |
CREATE USER 'semaphore'@'%' IDENTIFIED BY 'semaphore';
CREATE DATABASE IF NOT EXISTS semaphore;
GRANT ALL ON semaphore.* TO 'semaphore'@'%';
GRANT SELECT ON *.* TO 'semaphore'@'%';
FLUSH PRIVILEGES;
|
/*
* Practice > SQL > Basic Select > Weather Observation Station 10
* https://www.hackerrank.com/challenges/weather-observation-station-10/problem
*/
SELECT DISTINCT city
FROM station
WHERE city REGEXP '[^aiueo]$'
ORDER BY city ASC;
|
SELECT products.name, categories.name FROM products
JOIN categories ON categories.id = products.id_categories
WHERE products.amount > 100 AND categories.id IN (1,2,3,6,9)
ORDER BY categories.id;
|
<reponame>intershop/iom-blueprint-project
-- Function: oms.create_or_update_shop(bigint, boolean, integer, boolean, integer, boolean, character varying, integer, boolean, bigint, numeric, integer, character varying, character varying, boolean, bigint, bigint, boolean, boolean, character varying, boolean, character ... |
/* ================================================
*
* Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without... |
<gh_stars>0
CREATE DATABASE etecwitter;
USE etecwitter;
-- tabela para os usuários
CREATE TABLE usuarios (
id_usuario INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
email VARCHAR(30) NOT NULL UNIQUE,
senha VARCHAR(32) NOT NULL,
nome VARCHAR(30) NOT NULL
);
-- as senhas serão digeridas com MD... |
<reponame>kevinpetersavage/leaky-houses
# Reading schema
# --- !Ups
CREATE TABLE Reading (
id bigint(20) NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
targetTempC double NOT NULL,
postcode varchar(20) NOT NULL,
country varchar(20) NOT NULL,
externalTempC double NOT NULL,
PRIMARY KEY... |
<gh_stars>0
CREATE PROC usp_FindByExtension(@extension VARCHAR(10)) AS
BEGIN
SELECT
f.Id, f.[Name], CAST(f.Size AS VARCHAR(20)) + 'KB' AS Size
FROM Files f
WHERE CHARINDEX(@extension, f.[Name]) > 0
ORDER BY f.Id, f.[Name], f.Size
END; |
<filename>go/libraries/doltcore/sqle/logictest/regressions.sql
CREATE TABLE `nightly_dolt_results` (
`test_file` VARCHAR(255) NOT NULL,
`line_num` BIGINT NOT NULL,
`duration` BIGINT NOT NULL,
`query_string` LONGTEXT NOT NULL,
`result` LONGTEXT NOT NULL,
`error_message` LONGTEXT,
`version` VARCHAR(255) NOT... |
select
fs.corp_type_code as corp_type_code,
fs.filing_type_code as filing_type_code,
ft.description as filing_type,
fc.amount as amount,
p_fc.amount as priority_fee,
fut_fc.amount as future_effective_fee
from
(
(
(fee_schedule fs left join fee_code fc on fc.code=fs.fee_code)
left join fee_code p_fc on... |
<filename>yii2test.sql
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2016-03-11 08:30:12
-- 服务器版本: 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C... |
<filename>rename_index.sql
-- concurrent index rename for PostgreSQL < 12
CREATE FUNCTION rename_index(old_idx regclass, new_idx name, timeout int = 1000) RETURNS boolean AS $$
DECLARE
parent_table regclass;
BEGIN
PERFORM set_config('lock_timeout', $3::text, true);
SELECT
indrelid::regclass
FROM
pg_ca... |
<filename>software/cabio-database/scripts/sql_loader/no_longer_used/constraints/zstg_snp_affy.disable.sql
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
alter table ZSTG_SNP_AFFY disable constraint SYS_C005223;
... |
-- @testpoint:opengauss关键字where(保留),作为函数名
--关键字不带引号-合理报错
create function where(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--关键字带双引号-成功
create function "where"(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--清理环境
drop function "where";
--关... |
SELECT *
FROM CITY
WHERE COUNTRYCODE = 'USA'
AND POPULATION > 100000
|
<filename>sql_scripts/getLabelsForConditionSetv2.sql
/****** Object: StoredProcedure [dbo].[getpydatav2] Script Date: 6/19/2020 10:24:33 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 5/20/20
-- Description: Get data f... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 03 Jul 2020 pada 15.48
-- Versi Server: 10.1.29-MariaDB
-- PHP Version: 7.2.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 12-10-2017 a las 02:24:41
-- Versión del servidor: 10.1.25-MariaDB
-- Versión de PHP: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";... |
DROP TABLE IF EXISTS posts;
CREATE TABLE posts(
id INTEGER PRIMARY KEY AUTOINCREMENT,
post_time TIMESTAMP NOT NULL,
tweet_text TEXT NOT NULL,
origin_long FLOAT NOT NULL,
origin_lat FLOAT NOT NULL,
latitude FLOAT NOT NULL,
longitude FLOAT NOT NULL,
predicted_relevant BOOLEAN
);
|
<gh_stars>0
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
--------------------------------------------------------... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 15-11-2019 a las 03:03:54
-- Versión del servidor: 10.1.39-MariaDB
-- Versión de PHP: 7.3.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... |
<reponame>differz/perstorage<filename>storage/file/migrations/201804092357_create_table_order_links.up.sql
CREATE TABLE IF NOT EXISTS order_links ( order_id INTEGER NOT NULL, link TEXT )
|
#<NAME>
USE bostonpaper;
#a)
SELECT OrderNo, OrderDate, Amount FROM paper_order WHERE CName = 'target';
#b)
SELECT e.EmpNo, e.EmpName, Count(*)
FROM handles as h, employee as e
where h.EmpNo = e.EmpNo
GROUP BY h.EmpNO
HAVING count(OrderNo) >= 2;
#c)
SELECT BrNo, Address, Phone FROM branch WHERE cname = 'target';
... |
Drop database if exists health_db;
create database health_db;
use health_db;
drop table per_person;
create table health as (
select g.Year, g.All_persons, g.Male, g.Female, e.Less_than_high_school, e.High_school,
e.Some_college, e.Less_than_18, h.Excellent as Excellent_health, h.Very_good as VG_health,
h.Good as Go... |
<reponame>anthonyfok/opendrr-data-store<gh_stars>1-10
-- script to agg curves stats
DROP TABLE IF EXISTS psra_bc.psra_bc5920a1_src_loss_b0, psra_bc.psra_bc5920a1_src_loss_r2, psra_bc.psra_bc5920a1_src_loss CASCADE;
-- create table
CREATE TABLE psra_bc.psra_bc5920a1_src_loss_b0(
source varchar,
loss_type varchar,
loss_... |
alter table "public"."assets" rename column "privacyType" to "privacy_type";
|
<filename>DML_DATA-MANIPULATION-LANGUAGE-MYSQL.sql
/* DML - DATA MANIPULATION LANGUAGE MYSQL */
/* SELECT = PROJECAO */
SELECT * FROM TABELA
WHERE COLUNA = 'VALOR';
/* INSERT */
INSERT INTO TABELA (COLUNA1, COLUNA2)
VALUES ('VALOR1', 'VALOR2');
/* UPDATE */
/* IMPORTANTE: ANTES DE REALIZAR UPDATE, FAÇA UM S... |
INSERT INTO "tests"("id", "code", "end_date", "start_date", "start_time", "subject_id", "created_date", "updated_date", "description", "title", "status", "doing_duration") VALUES (1, 2019, '2021-12-22 20:55:00.848472', '2021-07-15 20:55:00.848472', NULL, 214352, '2021-07-15 20:53:35', '2021-07-15 20:55:00.848472', 'Mid... |
CREATE OR REPLACE FUNCTION ti.getdatasetsynonyms(_datasetid integer)
RETURNS TABLE(synonymyid integer, validname character varying, refname character varying, fromcontributor boolean, publicationid integer, notes text)
LANGUAGE sql
AS $function$
SELECT ndb.synonymy.synonymyid, ndb.taxa.taxonname AS validname, taxa_1.... |
<filename>Lectures/04_Week/SQL_Demo.sql
-- DDL
CREATE TABLE tbldepartment
(
dept_id CHAR(3) PRIMARY KEY,
dept_name CHAR(40)
);
ALTER TABLE tbldepartment
ADD dept_mgr_name CHAR(50);
ALTER TABLE tbldepartment DROP dept_mgr_name;
CREATE TABLE tblemployee
(
emp_id CHAR(3) PRIMARY KEY,
last_name CHAR(45),
first_name... |
WITH source AS (
SELECT *
FROM {{ source('zuora', 'product_rate_plan_charge') }}
), renamed AS (
SELECT
id AS product_rate_plan_charge_id,
productrateplanid AS product_rate_plan_id,
name AS product_rate_plan_charge_name
FROM source
)
SE... |
<gh_stars>100-1000
-- shared3.test
--
-- execsql {
-- BEGIN;
-- INSERT INTO t1 VALUES(10, randomblob(5000))
-- }
BEGIN;
INSERT INTO t1 VALUES(10, randomblob(5000)) |
-- randexpr1.test
--
-- db eval {SELECT case when 11 in (select max(f) from t1 union select min(19++13) | min(t1.c) from t1) and (e in (select t1.d from t1 union select t1.a | 17*case e when coalesce((select max(a) from t1 where b not in (b,f,d) or t1.a<=f),11) then t1.a else t1.b end from t1) and -a not between b an... |
<reponame>jdkoren/sqlite-parser<gh_stars>100-1000
-- savepoint.test
--
-- execsql { PRAGMA integrity_check }
PRAGMA integrity_check |
-- Connect to the 'SoftUni' database to run this snippet
USE [SoftUni]
GO
-- Select the name of all towns from the towns table
SELECT *
FROM [Towns]
-- where the first letter of the name is m, k, b or e
-- order the results alphabetically
WHERE LEFT([Name], 1) IN ('M', 'K', 'B', 'E')
ORDER BY [Name] ASC
GO
|
-- by default, holdability of ResultSet objects created using this Connection object is true. Following will set it to false for this connection.
NoHoldForConnection;
create table a (a int);
insert into a values (1);
select * from a;
drop table a;
create table b (si smallint,i int, bi bigint, r real, f floa... |
--
-- 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... |
-- Compare virtual columns on two tables
DECLARE
TYPE varcharTable IS TABLE OF VARCHAR2(32767);
column_table varcharTable;
full_table varcharTable;
uat_table varcharTable;
v_sql VARCHAR2(32767) := 'select utc1.column_name, utc1.data_default, utc2.data_default
... |
create table users (
id bigint not null auto_increment,
email varchar(255),
unique(email),
primary key (id)
);
|
<gh_stars>1000+
SELECT
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
r, b, swpd, free, buff, cache, si, so, bi, bo, "in", cs, us, sy, id, wa, st, cpu_count, load_1m, load_5m, load_15m, total_memory
from
get_vmstat();
|
create p = (mohcine:etudiant{nom:'harmouch',prenom:'mohcine',age:'21'})-[:publier]->
(rechercher:publication{contenu:'baala;alal',date:'10/10/2007'}) return p |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 21, 2021 at 05:51 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<filename>database/wynadd.sql
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.2
-- Thời gian đã tạo: Th10 12, 2017 lúc 11:12 AM
-- Phiên bản máy phục vụ: 10.1.24-MariaDB
-- Phiên bản PHP: 7.1.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
... |
<reponame>webatozexpert/Averfresh
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 30, 2020 at 01:56 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zo... |
<filename>CE2.0-create-table-query.sql<gh_stars>0
DROP TABLE Orders
DROP TABLE Stores
DROP TABLE Customers
DROP TABLE OrderDetail
DROP TABLE Inventory
DROP TABLE Products
CREATE TABLE [Customers] (
[CustomerId] int PRIMARY KEY NOT NULL IDENTITY(1, 1),
[FirstName] nvarchar(100) NOT NULL,
[LastName] nvarchar(100)... |
<gh_stars>0
/*
SQLyog Community v13.1.1 (64 bit)
MySQL - 10.1.34-MariaDB : Database - oss
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_... |
<filename>AspNetCore.Identity.Dapper.PostgreSql/Scripts/Roles.sql<gh_stars>1-10
CREATE TABLE Roles (
Id UUID PRIMARY KEY,
Name VARCHAR(32) NOT NULL,
NormalizedName VARCHAR(32) NOT NULL,
ConcurrencyStamp VARCHAR(128) NULL
); |
if exists (select * from dbo.sysobjects where id = object_id(N'[EventCalendarCategories_Get]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [EventCalendarCategories_Get]
GO
|
IF OBJECT_ID('dbo.spWriteStringToFile') IS NOT NULL
DROP PROCEDURE dbo.spWriteStringToFile
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
GO
-- ==========================================================================================================
-- Author: E-Pavlichenko
-- Create date: 1.07.2018
-- Alter date: 1.07.... |
DROP TABLE IF EXISTS log;
|
<reponame>azeng233/hgnudms<filename>src/main/resources/hgnudms.sql
/*
Navicat Premium Data Transfer
Source Server : 云数据库
Source Server Type : MySQL
Source Server Version : 80018
Source Host : mysql.zengchen233.cn:3306
Source Schema : hgnudms
Target Server Type : MySQL
Target Se... |
USE Staging_area
GO
CREATE OR ALTER PROCEDURE Create_Staging_area
AS
BEGIN
drop table Staging_area.dbo.Instructor
drop table Staging_area.dbo.OnlineCourse
drop table Staging_area.dbo.Topic
drop table Staging_area.dbo.SubTopic
drop table Staging_area.dbo.Downloaded
drop table Staging_area.dbo.OffPrice
drop tab... |
INSERT INTO "Jutsu" ("id", "name", "description", "kanji", "romaji", "portugues", "games", "mangaPanini", "tvBrasileira", "range", "rank", "handSeals") VALUES
(740, E'Flor de Cerejeira Única', E'Sakura é capaz de usar essa técnica graças ao seu preciso controle de chakra, que ela acumula em seu punho e o expulsa duran... |
select
td_time_format(time, 'yyyy-MM-dd HH:mm:ss', 'JST') as time
,resource_id as project_id
,resource_name as project_name
,user_id
,user_email
from
access
where
td_interval(time, '-1d', 'JST')
and
event_name = 'workflow_project_revision_create'
|
/*
This code sample is from https://github.com/furmangg/exact-match-agg
and should be run against Azure SQL DW on top of the AdventureWorksDW sample
*/
create table dbo.DimProductAggSignature (
ProductAggSignatureKey int not null identity(1,1)
,CountProductKey int null
,MinProductKey bigint null
,MaxProductKey bigint ... |
-- file:arrays.sql ln:284 expect:false
WHILE o IS NOT NULL
LOOP
RAISE NOTICE '%', o
|
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50720
Source Host : localhost:3306
Source Database : db2
Target Server Type : MYSQL
Target Server Version : 50720
File Encoding : 65001
Date: 2018-09-01 17:08:14
*/
CREATE DATABASE `db2` ;
USE `db2`;
S... |
<filename>schema.sql<gh_stars>0
DROP TABLE IF EXISTS actor;
DROP TABLE IF EXISTS address;
DROP TABLE IF EXISTS city;
DROP TABLE IF EXISTS country;
DROP TABLE IF EXISTS customer;
DROP TABLE IF EXISTS customer_list;
DROP TABLE IF EXISTS film;
DROP TABLE IF EXISTS film_actor;
DROP TABLE IF EXISTS inventory;
DROP ... |
-- 18.03.2016 08:10
-- URL zum Konzept
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,543828,0,TO_TIMESTAMP('2016-03-18 08:10:30','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Verbindungsproblem mit Anwendungsserver','E',TO_... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.6 (Debian 12.6-1.pgdg100+1)
-- Dumped by pg_dump version 12.6 (Debian 12.6-1.pgdg100+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;... |
DELIMITER /
CREATE TABLE S2S_USER_ATTACHED_FORM_ATT (
S2S_USER_ATTACHED_FORM_ATT_ID DECIMAL(12,0) NOT NULL,
S2S_USER_ATTACHED_FORM_ID DECIMAL(12,0) NOT NULL,
PROPOSAL_NUMBER VARCHAR(12) NOT NULL,
CONTENT_TYPE VARCHAR(100),
FILE_NAME VARCHAR(100),
CONTENT_ID VARCHAR(350),
UPDATE_USER ... |
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_1_SP4-SCRIPT/MYSQL/TABLES/KC_TBL_NOTIFICATION_TYPE_RECIPIENT.sql
ALTER TABLE NOTIFICATION_TYPE_RECIPIENT CHANGE ROLE_ID ROLE_NAME VARCHAR(125) NOT NULL; |
<reponame>Ambal/mangos<gh_stars>1-10
DELETE FROM `command` WHERE `name` = 'namego';
DELETE FROM `command` WHERE `name` = 'groupgo';
INSERT INTO `command` ( `name` , `security` , `help` ) VALUES
('namego',1,'Syntax: .namego $charactername\r\n\r\nTeleport the given character to you.'),
('groupgo',1,'Syntax: .groupgo $... |
INSERT INTO public."City" ("Id", "Name", "StateId", "CreatedBy", "CreatedDate", "UpdateBy", "UpdateDate")
VALUES
(70000, 'EL CAMBIADO',229, 'DataSeed', (SELECT now() at time zone 'utc'), 'DataSeed', (SELECT now() at time zone 'utc')),
(70001, '<NAME>',229, 'DataSeed', (SELECT now() at time zone 'utc'), 'DataSeed', (SEL... |
<filename>0610.sql
SELECT * FROM student
SELECT * FROM result
SELECT `studentno`,`studentname`FROM student
-- 可以给字段和表起别名
SELECT `studentno` AS 学号,`studentname` AS 姓名 FROM student AS s -- as 起别名
-- 函数 concat(a,b)拼接函数
SELECT CONCAT('姓名:',studentname) AS 新名字 FROM student
-- 查询一下那些同学参加了考试,成绩
SELECT * FROM result -- 查询所有成绩
... |
CREATE DATABASE kakei_log_development;
SELECT * FROM User;
# テーブル定義の確認
SHOW COLUMNS FROM User;
# ユーザIDが1の支払先
SELECT *
FROM PaymentDestination
WHERE id IN (
SELECT payment_destination_id FROM UserWithPaymentDestination WHERE user_id = 1
);
# デフォルト支払先
SELECT *
FROM PaymentDestination
WHERE id IN (
SELECT payment_... |
<filename>revert/swrs/public/table/fuel_mapping.sql
-- Revert ggircs:table_fuel_mapping from pg
begin;
drop table swrs.fuel_mapping;
commit;
|
<reponame>cckevincyh/VendingMachine<filename>database/VendingMachineDB.sql
create database VendingMachineDB;
DROP database VendingMachineDB;
create table Administrator(
username varchar(30) primary key,
passwords varchar(30) not null
);
create table Drink(
drinkId varchar(20) primary key,
... |
-- 批量插入收货地址
INSERT INTO `receive_address` (`user_id`, `receiver_name`, `telephone`, `province`, `city`, `area`, `address`, `default_address`)
VALUES(1, '张三', '13111111111', '广东省', '深圳市', '南山区', 'xxx路xxx小区xxx单元', TRUE),
(2, '李四', '13111111112', '四川省', '成都市', '锦江区', 'xxx路xxx小区xxx单元', TRUE),
(3, '王五', '131... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.