sql stringlengths 6 1.05M |
|---|
TRUNCATE TABLE iam_route;
INSERT INTO kt.iam_route (id, application_id, name, code, component, pid, level_path, level, path, icon, hide_children,
type, sequence, status)
VALUES (2, 1, '个人页', 'account', 'RouteView', 0, '2.', 1, '', 'user', 0, 1, 700, 1);
INSERT INTO kt.iam_route (id, applicatio... |
CREATE DATABASE BANCO;
USE BANCO;
CREATE TABLE cidade
( nome VARCHAR(100),
cep VARCHAR(11) NOT NULL PRIMARY KEY,
numero_habitantes FLOAT,
capital BOOLEAN,
estado VARCHAR(2),
renda_per_capta DECIMAL(10,2),
data_fundacao DATE
);
INSERT INTO cidade (
nome,
cep,
numero_habitantes,
capital,
estado,
renda_per_capta,
data_... |
<filename>src/main/resources/import.sql
insert into medico (id, contato,crm,especialidade_medica, nome) values (1, '(81)9.8888-7777','123','Pediatra','Lucas');
insert into medico (id, contato,crm,especialidade_medica, nome) values (2, '(81)9.8888-7777','123','Pediatra','Beatriz');
insert into consulta (id, descricao_... |
<reponame>SulaimanAlabbar/discord-bot
DROP SCHEMA IF EXISTS public CASCADE;
DROP EXTENSION IF EXISTS btree_gist;
DROP EXTENSION IF EXISTS citext;
|
<reponame>MvvmFx/InterwayDocs
/*
USE [master]
GO
DECLARE @FullPathFilename AS VARCHAR(MAX)
SET @FullPathFilename = 'C:\MYDB\Backups\InterwayDocs-20160516-b.bak'
IF DB_ID('InterwayDocs') IS NOT NULL
BEGIN
ALTER DATABASE [InterwayDocs] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
END
RESTORE DATABASE [InterwayDocs]
... |
/*
-- Documentation
---- menu TABLE format
Name Null? Type
--------------- -------- ------------
MENU_ID NOT NULL VARCHAR2(5)
DESCRIPTION NOT NULL VARCHAR2(30)
PRICE NUMBER(6,2)
DATE_INTRODUCED DATE
CAT_ID VARCHAR2(5)
REMARKS VAR... |
CREATE TABLE misp2.org_name
(
id serial,
description varchar(256) NOT NULL,
lang varchar(10) NOT NULL,
org_id integer NOT NULL,
created timestamp not null default current_timestamp,
last_modified timestamp not null default current_timestamp,
username varchar(20) not null default 'admin'
... |
<reponame>clintonturner/Conventional
CREATE TABLE Persons
(
IsMarried INT NOT NULL DEFAULT 0
)
|
<gh_stars>0
CREATE TABLE users (
id SERIAL PRIMARY KEY UNIQUE NOT NULL,
role VARCHAR(100) NOT NULL,
username VARCHAR(100) UNIQUE NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL,
password VARCHAR(100) NOT NULL
);
CREATE TABLE classes (
id SERIAL PRIMARY KEY UNIQUE NOT NULL,
class_id VARCHAR(20)... |
create table address (
person_id int not null,
location varchar(100) not null
);
insert into address (person_id, location) values (1, 'Japan');
insert into address (person_id, location) values (2, 'America');
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- 主机: localhost
-- 生成日期: 2021-07-17 21:12:41
-- 服务器版本: 5.7.33
-- PHP 版本: 5.6.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... |
<reponame>radekg/yugabyte-db-example-extension
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION.
\echo Use "CREATE EXTENSION example" to load this file.\quit |
--------------------------------------------------------
-- File created - Monday-May-07-2018
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Sequence HIBERNATE_SEQUENCE
--------------------------------------------------------
CREATE SEQ... |
<filename>application/add_field.sql<gh_stars>1-10
insert into zw_field(`tablename`,`fieldname`,`fieldlabel`,`presence`,`fieldtype`,`defaultvalue`,`length`)
select 'zw_signup','name','姓名','1','varchar','','20' from dual where not exists
(select 1 from zw_field where tablename='zw_signup' and fieldname='name');
insert i... |
CREATE EXTERNAL TABLE ${0} (
title TEXT,
name RECORD (
first_name TEXT,
last_name TEXT
)
) USING JSON LOCATION ${table.path}; |
CREATE TABLE apidb.LopitResults (
lopit_result_id NUMBER(12) NOT NULL,
na_feature_id NUMBER(12) NOT NULL,
probability_mean FLOAT(126) NOT NULL,
sd FLOAT(126),
lower_CI FLOAT(126),
upper_CI FLOAT(126),
protocol_app_node_id NUMBER(10) NOT NULL,... |
drop database if exists `gtid`;
reset master;
create database `gtid`;
use `gtid`;
create table t1 (id int PRIMARY KEY);
insert into t1 values (1); |
EOA is 3000; EOF is 3077
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 03, 2021 at 03:49 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_CHARACTER_SET_CLIEN... |
CREATE TABLE routes_ref(
route_id INT IDENTITY(1,1) NOT NULL
,route_code NVARCHAR(20) NULL
,route_desc NVARCHAR(200) NULL) |
INSERT INTO burgers (burger_name, devoured) VALUES ('Classic Cheeseburger', false);
INSERT INTO burgers (burger_name, devoured) VALUES ('Turkey Burger', false);
INSERT INTO burgers (burger_name, devoured) VALUES ('Black Bean Burger', false);
INSERT INTO burgers (burger_name, devoured) VALUES ('Best-Ever Chicken Burger'... |
<gh_stars>0
-- Create a new stored procedure called 'SP_SelectAuthorById' in schema 'dbo'
-- Drop the stored procedure if it already exists
IF EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'dbo'
AND SPECIFIC_NAME = N'SP_SelectAuthorById'
)
DROP PROCEDURE dbo.SP_SelectAuthorById
GO
-- C... |
SELECT product_name,sale_price,purchase_price
FROM Product
WHERE sale_price - purchase_price >= 500;
|
<reponame>darrendanvers/integration-demo
CREATE SCHEMA CJR;
SET SCHEMA 'CJR';
CREATE TABLE CJR_TEST (
ID NUMBER NOT NULL PRIMARY KEY,
VALUE CLOB
); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 13 Feb 2020 pada 00.59
-- Versi server: 10.1.32-MariaDB
-- Versi PHP: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 ... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.4 (Ubuntu 12.4-0ubuntu0.20.04.1)
-- Dumped by pg_dump version 12.4 (Ubuntu 12.4-0ubuntu0.20.04.1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_str... |
/*
Navicat MySQL Data Transfer
Source Server : Imseam
Source Server Version : 50712
Source Host : localhost:3306
Source Database : imseam
Target Server Type : MYSQL
Target Server Version : 50712
File Encoding : 65001
Date: 2016-07-18 17:45:55
*/
SET FOREIGN_KEY_CHECKS=0;
-- -----... |
alter table device_profile
drop column geoloc_buffer_ttl,
drop column geoloc_min_buffer_size; |
CREATE TABLE `markers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`decode` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
CREATE TABLE `marker` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`proposition_id` int(11) NOT NULL,
`marker_id` int(11) NOT NULL,
`marker_t... |
CREATE VIEW agg_container_cpu
WITH (
timescaledb.continuous,
timescaledb.refresh_interval = '15m',
timescaledb.refresh_lag = '15m')
AS SELECT
lid,
time_bucket('15 minutes', time) AS "bucket",
rate_time(MAX(value), MIN(value), '15 minutes') AS delta_usage,
MAX(value) AS max_usage
FROM metric_samples
WHERE ... |
-- phpMyAdmin SQL Dump
-- version 3.1.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 19, 2015 at 04:37 PM
-- Server version: 5.5.41
-- PHP Version: 5.5.9-1ubuntu4.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `mydb`
--
-- -------------------------------------------------------... |
<reponame>graaphscom/dbmigrat<filename>fixture/auth/0.create_user_table.up.sql
create table users (id serial primary key); |
CREATE PROCEDURE [dbm].[InsertAbpUserRole]
@Id [bigint],
@TenantId [int],
@UserId [bigint],
@RoleId [int]
AS
BEGIN
INSERT [AbpUserRoles] ([Id], [TenantId], [UserId], [RoleId], [CreationTime])
VALUES (@Id, @TenantId, @UserId, @RoleId, SYSDATETIME())
END
GO
SET NOCOUNT ON
SET IDENTITY_INSERT [Abp... |
-- drop database SistemaLogin;
create database SistemaLogin;
use SistemaLogin;
create table login(
id_usuario int auto_increment,
nome_usuario varchar(30),
senha_usuario varchar(12),
primary key(id_usuario)
);
select * from login; |
<filename>S4 Migration/script_sourcedb_migration_template.sql
/*
vNEXT:
- This is all pretty happy-path - and assumes no problems/issues. So, basically, add some 'error' handling and/or various condition-checks and options for ... recovery.
(NOTE: normally... RAISERROR(xxx, 27,1) WITH LOG or whatever would be... |
-- 21.09.2016 11:46
-- URL zum Konzept
UPDATE AD_Column SET ColumnSQL=NULL,Updated=TO_TIMESTAMP('2016-09-21 11:46:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550587
;
-- 21.09.2016 11:48
-- URL zum Konzept
ALTER TABLE M_ReceiptSchedule ADD IsPackagingMaterial CHAR(1) DEFAULT NULL CHECK (IsPackagingM... |
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5488610_sys_gh3687_ChangeColumnType.sql<gh_stars>1000+
-- 2018-03-16T18:35:30.715
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=10, FieldLength=7,Updated... |
delimiter /
TRUNCATE TABLE LOCATION_TYPE
/
INSERT INTO LOCATION_TYPE (LOCATION_TYPE_CODE,LOCATION_TYPE_DESC,UPDATE_USER,UPDATE_TIMESTAMP)
VALUES (1,'Proposal Organization','admin',NOW())
/
INSERT INTO LOCATION_TYPE (LOCATION_TYPE_CODE,LOCATION_TYPE_DESC,UPDATE_USER,UPDATE_TIMESTAMP)
VALUES (2,'Performing Orga... |
<gh_stars>1-10
ALTER TABLE user_account ADD COLUMN primary_college_id varchar(100);
ALTER TABLE user_account ADD CONSTRAINT fk_primary_college
FOREIGN KEY (user_account_id, primary_college_id)
REFERENCES user_account_college(user_account_id, college_ccc_id);
alter table user_account_college drop constraint u... |
INSERT INTO ARTICLES(ARTICLEID,ARTICLEWORDCOUNT,headline,Category,PUBDATE,snippet,webURL) VALUES (2,2318,'6 Million Riders a Day, 1930s Technology','Metro','2017-01-05 04:01:00','New York’s subway is struggling with old infrastructure and overcrowding. The M.T.A.’s failure to modernize its signal system is a crucial ex... |
<reponame>pdv-ru/ClickHouse<filename>tests/queries/0_stateless/01634_uuid_fuzz.sql
SELECT toUUID(-1.1); -- { serverError 48 }
|
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/crashrecovery/abort_abort_create_needed_tests/post_sql/sql/abort_abort_create_needed_co_reindex_bitmap_index_post.sql
insert into abort_create_needed_cr_co_reindex_table_bitmap_index select i||'_'||repeat('text',100),i,i||'_'||repeat('text',3),i,i,i,'{3}',i,i,i,'2... |
<filename>tokokamera.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 24, 2018 at 02:41 PM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 7.1.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_... |
ALTER TABLE `auth_user_md5`
ADD `reset_key` VARCHAR( 32 ) ,
ADD `reset_password` VARCHAR( 32 );
|
<filename>Database Basics MS SQL/09. Practical Exam - 24 Jun 2018 - Trip Service/TripService/07. EEE-Mails.sql
SELECT a.FirstName,
a.LastName,
FORMAT(a.BirthDate, 'MM-dd-yyyy') AS BirthDate,
c.[Name] AS Hometown,
a.Email
FROM Accounts AS a
JOIN Cities AS c
ON c.Id = a.CityId
WHERE Email LIKE '... |
/******************************************************
NAME: SP_update_wishlist
FUNCTION: Update wishlist
MySql > CALL SP_update_wishlist(?,?,?)
FIRST CREATED: 20211123
UPDATED: 20211123
******************************************************/
USE cric_shop_api;
SELECT "Dr... |
CREATE TABLE ABSENCE
(
ID_ABSENCE REAL NOT NULL,
FROMDATE REAL NOT NULL,
TODATE REAL NOT NULL,
STUDENT_STUD_ID REAL
);
CREATE UNIQUE INDEX sqlite_autoindex_ABSENCE_1
ON ABSENCE (ID_ABSENCE);
CREATE TABLE GROUPSTUDENTS
(
ID_GROUPE REAL NOT NULL,
NAME TEXT NOT NULL
);
CREATE UNIQUE... |
<filename>sql/old-capstone.sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 14, 2018 at 04:28 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER... |
/*
Bearer <KEY>
*/
CREATE DATABASE CascadeDelete
GO
USE CascadeDelete
GO
CREATE TABLE ChildTable
(
IdChild int NOT NULL,
IdParent int NOT NULL,
Name varchar(200) NOT NULL,
CONSTRAINT PK_ChildTable PRIMARY KEY CLUSTERED
(
IdChild ASC
)
)
GO
CREATE TABLE GrandChildTable
(
IdGrandChild int NOT NULL,
IdChild i... |
<reponame>arisaryadamar/Project-Rice-Mills-2
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 13, 2020 at 02:06 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
... |
<filename>application/helpers/agregarColumnasaBD.sql
ALTER TABLE servicio
ADD COLUMN exento bit DEFAULT 0;
ALTER TABLE `tarifa`
ADD `rango_cobros` FLOAT NULL DEFAULT NULL AFTER `monto_tarifa`;
|
CREATE TABLE Product(
pid INT NOT NULL IDENTITY(1,1) PRIMARY KEY,
pname VARCHAR(16) NOT NULL,
hardness_level INT NOT NULL,
plant_id INT NOT NULL FOREIGN KEY REFERENCES Plant_Dates(plant_id),
alt_id INT NOT NULL FOREIGN KEY REFERENCES Altitudes(alt_id)
) |
<gh_stars>1-10
BEGIN TRANSACTION;
INSERT INTO
roles (role_name)
VALUES
('ROLE_ADMIN');
INSERT INTO
roles (role_name)
VALUES
('ROLE_USER');
INSERT INTO
access (access_type)
VALUES
('READ');
INSERT INTO
access (access_type)
VALUES
('WRITE');
-- Add Admin Users
INSERT INTO
users (username, password... |
<filename>Database1/dbo/Functions/orderwithid.sql
create function orderwithid(@order_id int)
returns table
as
return
(select order_id,item_id,product_id,quantity,list_price
from sales.order_items
where order_id=@order_id) |
<reponame>leisterfrancisco/eos-rate<filename>hasura/migrations/default/1629210777277_create_table_public_eden_ratings_stats/down.sql<gh_stars>10-100
DROP TABLE "public"."eden_ratings_stats";
|
--- Database: Redshift
--- Schema: Tuscany
--- Adding starting and ending times for each customer in the customer_feature and customer_arrays table
--- st_time: Time stamp of the first instance in the raw data for each customer
--- en_time: Time stamp of the last instance in the raw data for each customer
--- addin... |
<gh_stars>1000+
DROP FUNCTION IF EXISTS de_metas_endcustomer_fresh_reports.docs_generics_bpartner_report(org_id numeric, doctype text, bp_loc_id numeric, record_id numeric);
DROP FUNCTION IF EXISTS de_metas_endcustomer_fresh_reports.docs_generics_bpartner_report(p_org_id numeric, p_doctype text, p_bp_loc_id numeric, p_... |
-- 2019-01-14T11:05:44.310
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Window_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM,IsEnableRemo... |
<gh_stars>0
-- Copyright © 2020 <NAME>
--
-- E-Mail: <EMAIL>
-- Webseite: https://www.wpvs.de/
--
-- Dieser Quellcode ist lizenziert unter einer
-- Creative Commons Namensnennung 4.0 International Lizenz.
--------------------------------------------------------------------------------
-- Amazon Prime
---------------... |
<reponame>PBorio/hotel
CREATE TABLE `hotel`.`solicitacao_acesso` (
`id` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(45) NULL,
`email` VARCHAR(45) NOT NULL,
`data` DATETIME NOT NULL,
PRIMARY KEY (`id`)); |
SELECT count(1) FROM control_executors ; --0
SELECT count(1) FROM control_singleton ; --0
SELECT count(1) FROM control_area ; --0
SELECT count(1) FROM control_process ; --20
SELECT count(1) FROM control_processexec ; --61
SELECT count(1) FROM control_processexecparams ; --195
SELECT count(1) FROM con... |
<gh_stars>1-10
ALTER TABLE phabricator_file.file
ADD secretKey VARCHAR(20) BINARY; |
<filename>modules/core/db/update/postgres/15/150205-addSubstituteUserInScreenHistory.sql
-- $Id$
-- Description:
alter table sec_screen_history add substituted_user_id uuid;
alter table sec_screen_history add constraint FK_SEC_HISTORY_SUBSTITUTED_USER foreign key (substituted_user_id) references sec_user (id); |
<filename>tesuto-admin-services/tesuto-admin-core/src/flyway/resources/db.migration/V2.28__indexes_for_user_search.sql
create index first_name_idx on user_account (lower(first_name));
create index last_name_idx on user_account (lower(last_name));
|
<gh_stars>100-1000
library FHIRMap
using FHIR
context PATIENT
define retrieve [QUICK.Condition: code in Concept, effectiveTime during Range]
{
return
[FHIR.Condition: Concept, during Range] C
where C.status in { 'provisional', 'working', 'confirmed' }
return
tuple
{
code: C.name,
effective... |
-- Revert connectivity-intake:tables/connect_session from pg
begin;
drop table connectivity_intake_private.connect_session;
commit;
|
SELECT fn_db_add_column('vds_interface', 'ad_aggregator_id', 'integer');
|
-- ******************************
-- * Test suite for the Postgres NUMERIC data type
-- ******************************
-- Must drop tables created by short numeric test.
DROP TABLE num_data;
DROP TABLE num_exp_add;
DROP TABLE num_exp_sub;
DROP TABLE num_exp_div;
DROP TABLE num_exp_mul;
DROP TABLE num_exp_sqrt;
DROP TA... |
UPDATE promotion_files
SET promotion_end_timestamp = SYSTIMESTAMP
, status = ?
WHERE id = ? |
<reponame>mydogmandy/20-Final_Project_Presentation<gh_stars>0
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/
-- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here.
CREATE TABLE "Vehicles" (
"index" int NOT NULL,
"yearVeh" int NOT NULL,
... |
CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES (E'af', E'afrikaans');
INSERT INTO "list" ("id", "value") VALUES (E'af_NA', E'afrikaans (Namíbia)');
INSERT INTO "list" ("id", "value") VALUES (E'af_ZA', E'afrikaans (República de Sud-àfr... |
<reponame>manisero/StreamProcessing
CREATE TABLE "Dataset"
(
"DatasetId" smallint generated always as identity,
"Date" date not null,
CONSTRAINT "PK_Dataset" PRIMARY KEY ("DatasetId")
);
CREATE TABLE "ClientSnapshot"
(
"DatasetId" smallint not null,
"ClientId" int not null
) PARTITION BY L... |
-- Database generated with pgModeler (PostgreSQL Database Modeler).
-- pgModeler version: 0.9.2
-- PostgreSQL version: 12.0
-- Project Site: pgmodeler.io
-- Model Author: ---
-- Database creation must be done outside a multicommand file.
-- These commands were put in this file only as a convenience.
-- -- object: og... |
<filename>vendor/update/008.sql
ALTER TABLE `bills` CHANGE `bill_gb` `bill_quota` BIGINT( 20 ) NULL DEFAULT NULL;
|
<filename>tests/sql/13.sql
INSERT INTO test (c1, c2, c3) VALUES (1, 2, 3), ('1', '2', '3') |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Gegenereerd op: 10 mei 2017 om 07:00
-- Serverversie: 5.7.14
-- PHP-versie: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!401... |
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI... |
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 80011
Source Host : localhost:3306
Source Schema : homework
Target Server Type : MySQL
Target Server Version : 80011
File Encoding : 65001
... |
<gh_stars>0
DROP DATABASE IF EXISTS divvy_db;
CREATE database divvy_db;
USE divvy_db;
CREATE TABLE users (
id int NOT NULL AUTO_INCREMENT,
username varchar(25) NOT NULL,
email varchar(100) NOT NULL,
first_name varchar(25) NOT NULL,
last_name varchar(25) NOT NULL,
password varbinary(60) NOT NULL,
PRIMARY... |
<filename>update/core-update.v2.0.9-v2.0.10.sql
BEGIN;
CREATE OR REPLACE VIEW "liquid_feedback_version" AS
SELECT * FROM (VALUES ('2.0.10', 2, 0, 10))
AS "subquery"("string", "major", "minor", "revision");
DROP FUNCTION "delegation_info"
( "member"."id"%TYPE,
"unit"."id"%TYPE,
"area"."id"%TYPE,
"iss... |
<filename>02-selectFromWorld.sql
#01.Observe the result of running this SQL command to show the name, continent and population of all countries.
SELECT name, continent, population FROM world;
#02.Show the name for the countries that have a population of at least 200 million. 200 million is 200000000, there are eight z... |
<filename>Server/Database/Scripts/ClientProfileManagement/CreateCarTable.sql
CREATE TABLE [client].[Car] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[ClientId] INT NOT NULL,
[ModelId] INT NOT NULL,
[GovernmentPlate] NVARCHAR (9) NOT NULL,
... |
CREATE DATABASE IF NOT EXISTS `dbname` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `dbname`;
-- MySQL dump 10.13 Distrib 5.6.13, for Win32 (x86)
--
-- Host: localhost Database: dbname
-- ------------------------------------------------------
-- Server version 5.5.34
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... |
.echo OFF
drop table if exists semag;
drop table if exists semagNotes;
/* Mitzvah categories are:
0 -
1 - Miseder Nashim
2 - Issurei Maaachalos
3 -
4 - Nazir
5 -
6 - Midkash
7 -
8 -
9 - Miseder Nashim
10 - Hechsher Maachalos
11 - Nezikin
12 - Nedarim UShevuos
13 - Mikdash
*/
cr... |
<reponame>TrainingByPackt/MySQL<filename>Chapter06/Exercise6.05/Create Collation Conversion commands.sql
ALTER DATABASE `ms_access_migration` CHARACTER SET utf8 COLLATE = utf8_unicode_ci ;
SELECT CONCAT("ALTER TABLE ", TABLE_SCHEMA, '.', TABLE_NAME," CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci ;") AS Exe... |
<filename>WEEKS/wk17/CodeSignal-Solutions/CodeSignal-Solutions-master/Arcade/Databases/battleshipGameResults.sql
CREATE PROCEDURE battleshipGameResults()
BEGIN
/* Write your SQL here. Terminate each statement with a semicolon. */
WITH base AS (
SELECT l.id, ABS(
(l.upper_left_x + l.upper_left_y... |
USE [CSETWeb]
GO
/****** Object: Table [dbo].[REQUIREMENT_LEVEL_TYPE] Script Date: 11/14/2018 3:57:26 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[REQUIREMENT_LEVEL_TYPE](
[Level_Type] [varchar](5) NOT NULL,
[Level_Type_Full_Name] [varchar](50) NULL,
CONSTRAINT [PK_REQUIREMENT_... |
<filename>src/main/resources/data.sql
INSERT INTO `tournament`(`tournament_id`, `tournament_name`, `start_date`) VALUES (1, 'Australian Open 2021', '2021-10-01');
INSERT INTO `player`(`player_id`, `player_name`) VALUES (1, 'K.Anderson');
INSERT INTO `player`(`player_id`, `player_name`) VALUES (2, 'M.Berrettini');
I... |
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`username` varchar(50) COLLATE utf8mb4_bin NOT NULL COMMENT '用户名',
`password` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '密码',
`phone` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '手机号',
`email` varchar(255) CHARA... |
-- MySqlBackup.NET 2.3.1
-- Dump Time: 2019-12-09 16:00:36
-- --------------------------------------
-- Server version 8.0.18 MySQL Community Server - GPL
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_C... |
ALTER TABLE `progressions` ADD `is_active` TINYINT NOT NULL DEFAULT '1' AFTER `completed_at`;
ALTER TABLE `progressions` ADD `skipped_at` DATETIME NULL DEFAULT NULL AFTER `completed_at`;
ALTER TABLE `student_steps` ADD `skipped_at` DATETIME NULL DEFAULT NULL AFTER `completed_at`;
|
<filename>openGaussBase/testcase/SQL/INNERFUNC/Range_and_Operators/Opengauss_Function_Innerfunc_Range_and_Operators_Case0007.sql
-- @testpoint: isempty(anyrange) 描述:范围是否为空
select isempty(int4range(10,10)) as result;
select isempty(int8range(15,25)) as result;
select isempty(numrange(1.1,2.2)) as result;
select isempty... |
insert into apps (
developer_id, app_name, app_description, current_rating, iconimg, img1, img2, img3, img4, img5, img6, tags, app_link,apple_app_id
)
values(
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14
)
returning*; |
<gh_stars>0
INSERT INTO match_touchpads (
match_scores, touchpad, triggered
) VALUES (
(SELECT id FROM match_scores WHERE match == (SELECT id FROM matches WHERE key == ?) AND alliance_color == ?),
?, ?
) |
CREATE TABLE sort(
sid INT PRIMARY KEY AUTO_INCREMENT,
sname VARCHAR(100),
sprice DOUBLE,
sdesc VARCHAR(5000)
);
-- 初始化数据
INSERT INTO `sort`(sname,sprice,sdesc) VALUES ('家电',2000,'优惠的促销'),
('家具',8900,'家具价格上调,原材料涨价'),
('儿童玩具',300,'赚家长钱'),
('生鲜',500.99,'生鲜商品'),
('服装',24000,'换季销售'),
('洗涤',50,'洗发水促销')... |
<filename>db_backup.sql<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64)
--
-- Host: localhost Database: CS153
-- ------------------------------------------------------
-- Server version 5.7.18-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHA... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 17, 2020 at 01:48 PM
-- Server version: 10.4.16-MariaDB
-- PHP Version: 7.3.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
DROP TABLE IF EXISTS Especes;
DROP TABLE IF EXISTS CodesPostaux;
DROP TABLE IF EXISTS Clients;
DROP TABLE IF EXISTS Veterinaires;
DROP TABLE IF EXISTS HorairesVeto;
DROP TABLE IF EXISTS PriseEnCharge;
DROP TABLE IF EXISTS Animaux;
DROP TABLE IF EXISTS Creneaux;
DROP TABLE IF EXISTS Consultations;
CREATE TABLE Especes... |
<filename>gestion_viol.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.17.32
-- Generation Time: Sep 16, 2021 at 11:12 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!401... |
<reponame>gustavomorillo/shopping
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 03-09-2019 a las 07:10:38
-- Versión del servidor: 10.1.40-MariaDB
-- Versión de PHP: 7.3.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.