sql stringlengths 6 1.05M |
|---|
<filename>SQL/ODEV3/clause4.sql
SELECT * FROM film WHERE title LIKE 'C%' AND length > 90 AND rental_rate = 2.99;
|
-------------------------------------------------------------------------------
--
-- Script: buffer_busy_waits.sql
-- Purpose: to report the block classes and tablespace affect by bbwaits
-- For: 8.1
--
-- Copyright: (c) Ixora Pty Ltd
-- Author: <NAME>
--
-----------------------------------------------------... |
CREATE USER edison_ad WITH PASSWORD 'password';;
CREATE DATABASE edison_transaction;
GRANT ALL PRIVILEGES ON DATABASE edison_transaction TO edison_ad; |
<filename>ResearchLab1.0/src/IPS/SymfonyProjectBundle/Utils/Project.sql
DROP TABLE PROJECT;
CREATE TABLE PROJECT(
ID INTEGER PRIMARY KEY AUTO_INCREMENT,
NAME VARCHAR(255),
IMPORTANCE VARCHAR(15),
DEADLINE VARCHAR(10),
DOMAIN VARCHAR(255),
COMMENT TEXT
);
INSERT INTO PROJECT(NAME,IMPORTANCE,DEAD... |
ALTER TABLE `dlayer`.`user_site_page_structure_column_responsive`
ADD CONSTRAINT `user_site_page_structure_column_responsive_fk1` FOREIGN KEY (`site_id`) REFERENCES `user_site` (`id`),
ADD CONSTRAINT `user_site_page_structure_column_responsive_fk2` FOREIGN KEY (`page_id`) REFERENCES `user_site_page` (`id`),
... |
<filename>data/open-source/extracted_sql/px4_Firmware.sql
create table len(states)
|
ALTER TABLE iay_arbeidsforhold
DROP CONSTRAINT chk_permisjon_bruk_1;
|
SELECT DISTINCT(name) FROM people
INNER JOIN stars ON people.id = stars.person_id
INNER JOIN movies ON movies.id = stars.movie_id
WHERE movies.year = 2004 ORDER BY people.birth; |
<reponame>cc-yue/IDBS-Spring20-Fudan<filename>assignments/ass1/submission/18307130104/4.sql
SELECT name
FROM employee AS X
WHERE X.age >= 25 AND X.age <=30
ORDER BY id; |
<filename>youtube/SQL-SELECT-03-case-statement.sql
use tinyu
go
select * from students
-- understanding case
select case when 2=1 then 'Yes' else 'No' end as something
/*
when gpa is >= 3.6 Chancellor's list
when gpa is >= 3.2 Dean's list
when gpa is < 2.0 Academic Warning List
*/
select student_firstname, student... |
<reponame>rhicksiii91/bcda-app
-- Update existing synthetic ACOs to have CMS IDs
-- ACO Small
UPDATE acos SET cms_id = 'A9990' WHERE uuid = '3461C774-B48F-11E8-96F8-529269fb1459';
-- ACO Medium
UPDATE acos SET cms_id = 'A9991' WHERE uuid = 'C74C008D-42F8-4ED9-BF88-CEE659C7F692';
-- ACO Large
UPDATE acos SET cms_id = 'A... |
<reponame>paullewallencom/node-978-1-7895-3966-0<gh_stars>10-100
USE todo;
CREATE TABLE user(
`id` INT PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(50),
`email` VARCHAR(100),
`password` VARCHAR(200)
);
CREATE TABLE todo(
`id` INT PRIMARY KEY AUTO_INCREMENT,
`title` VARCHAR(50),
`date_created` TIMESTAMP DE... |
<gh_stars>1-10
DROP TABLE "public"."derivatives";
|
<filename>api/src/main/resources/db/migration/v2018.08.24_15.00__EPMCMBIBPC-2329_add_price_per_hour_to_run.sql<gh_stars>100-1000
ALTER TABLE pipeline.pipeline_run ADD price_per_hour NUMERIC(2) DEFAULT 0; |
<gh_stars>1-10
CREATE TABLE [dbo].[ReportDefinitionDimensions]
(
[Id] INT CONSTRAINT [PK_ReportDefinitionDimensions] PRIMARY KEY IDENTITY,
[ReportDefinitionId] INT NOT NULL CONSTRAINT [FK_ReportDefinitionDimensions__ReportDefinitionId] REFERENCES [dbo].[ReportDefinitions] ([Id]) ON DELETE CASCADE,
[Inde... |
<reponame>pkiraly/dataverse
ALTER TABLE persistedglobalgroup ADD COLUMN IF NOT EXISTS isRegEx BOOLEAN NOT NULL DEFAULT FALSE; |
use brihaspati;
ALTER TABLE CAL_INFORMATION CHANGE START_TIME START_TIME TIME NOT NULL;
ALTER TABLE CAL_INFORMATION DROP KEYWORD;
|
<filename>sql/_13_issues/_13_2h/cases/bug_bts_11008.sql
--+ holdcas on;
drop table if exists abc;
CREATE TABLE abc(aa bit(1) NOT NULL, CONSTRAINT PRIMARY KEY("aa") );
select * from db_attribute where class_name='abc';
--the primary key can be dropt successfully.
ALTER TABLE abc DROP CONSTRAINT pk_abc_aa;
select * ... |
-- @testpoint:opengauss关键字preserve(非保留),作为用户名
--关键字preserve作为用户名不带引号,创建成功
drop user if exists preserve;
CREATE USER preserve PASSWORD '<PASSWORD>';
drop user preserve;
--关键字preserve作为用户名加双引号,创建成功
drop user if exists "preserve";
CREATE USER "preserve" PASSWORD '<PASSWORD>';
drop user "preserve";
--关键字preserve作为用户名加... |
<gh_stars>0
-- W205 Exercise 1 <NAME>
-- Make sure that best_hospitals.sql is executed first that creates the table MeasureProviderScores
-- SQL query to find out which procedures have the greatest variability between hospitals
select MEASURE_ID, AVG(log(cast(score as double))) as average_measure_score, SUM(log(cast... |
USE [explorer]
GO
/****** Oggetto: Table [dbo].[ExplorerObjects] Data script: 04/02/2021 18:21:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DROP TABLE [dbo].[ExplorerObjects];
GO
CREATE TABLE [dbo].[ExplorerObjects] (
[id] INT IDENTITY (1, 1) NOT NULL,
[Keyid] UNIQUEIDENTIFIER NOT ... |
<reponame>chrhsmt/atami<filename>src/main/resources/db/migration/V1__CreateUser.sql
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id BIGINT auto_increment primary key,
name varchar(255) not null,
updated_at timestamp not null default current_timestamp,
created_at timestamp not null default current_timestamp
... |
<reponame>scandihealth/lpr3-cda
CREATE TABLE LPR3_ACTIVE.PATIENT
(
ID char(16) for bit data PRIMARY KEY NOT NULL,
KOEN varchar(255) NOT NULL,
NAVN varchar(255)
);
INSERT INTO LPR3_ACTIVE.PATIENT (ID, KOEN, NAVN) VALUES (BLOB(x'550E94DC5F0C4F6D87A2674D6B5A0B55'), 'Mand', null);
INSERT INTO LPR3_ACTIVE.PATIEN... |
<filename>data/open-source/extracted_sql/PressForward_pressforward.sql
SELECT * FROM $wpdb->comments WHERE $post_where $approved ORDER BY $orderby $order $number
SELECT * FROM {$this->table_name}
SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_type = %s
SELECT COUNT(*) FROM {$wpdb->prefix}pf... |
insert into localities values (?,?,?,?,?,?,?,?)
Create table c.execute('''create table localities (placeID text, placename text, placetype text, population real, lat real, lon real, parentcountry text, parentdivision text)''')
CREATE TABLE localities (placeID text, placename text, placetype text, population real, lat r... |
/*
Navicat MariaDB Data Transfer
Source Server : MariaDB PHP5.6
Source Server Version : 100125
Source Host : localhost:3308
Source Database : 2017_satudatabanten
Target Server Type : MariaDB
Target Server Version : 100125
File Encoding : 65001
Date: 2017-12-13 13:49:14
*/
SET FORE... |
<reponame>eugeneradionov/stocks
BEGIN;
DROP TABLE IF EXISTS login_sessions;
DROP TRIGGER IF EXISTS set_login_sessions_timestamp ON login_sessions;
COMMIT;
|
<reponame>jdkoren/sqlite-parser
-- wal.test
--
-- execsql {
-- PRAGMA journal_mode = WAL;
-- CREATE TABLE t1(a PRIMARY KEY, b);
-- INSERT INTO t1 VALUES(randomblob(10), randomblob(100));
-- INSERT INTO t1 SELECT randomblob(10), randomblob(100) FROM t1;
-- INSERT INTO t1 SELECT randomblob(10), rando... |
/*
Warnings:
- Changed the type of `refreshTokenExpiresIn` on the `User` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
*/
-- AlterTable
ALTER TABLE "User" DROP COLUMN "refreshTokenExpiresIn",
ADD COLUMN "refreshTokenExpir... |
INSERT INTO KRIM_PERM_T(PERM_ID,PERM_TMPL_ID,NMSPC_CD,NM,DESC_TXT,ACTV_IND,OBJ_ID)
VALUES(KRIM_PERM_ID_BS_S.NEXTVAL,(SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NMSPC_CD = 'KR-NS' AND NM = 'Open Document'),
'KC-UNT','View Address Book','View Address Book','Y',SYS_GUID())
/
INSERT INTO KRIM_PERM_ATTR_DATA_T(ATTR_DA... |
REM Script: Program 5
REM asdf
create table employee(
empno varchar(10),
emp_name varchar(20),
dept varchar(10),
salary int,
dob date,
branch char(20)
);
insert into employee values('E101', 'Amit', 'Production', 45000, '12-mar-00', 'banglore');
insert into employee values('E102', 'Amit', 'HR', 45000... |
<reponame>a36943694/springboot-2<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : 192.168.1.101
Source Server Version : 80012
Source Host : 192.168.1.101:3306
Source Database : isms
Target Server Type : MYSQL
Target Server Version : 80012
File Encoding : 65001
Date: 2018-0... |
<reponame>lucidsoftware/nark<filename>conf/evolutions/main/1.sql
# patch 1
# initial setup - dashboards
# --- !Ups
CREATE TABLE `users` (
`hiddenid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`id` BINARY(16) NOT NULL,
`email` VARCHAR(100) NOT NULL,
`created` DATETIME NOT NULL,
`name` VARCHAR(100) NOT NULL,
PRIMAR... |
<filename>migration/20150925-add-contributor-biography.sql
ALTER TABLE contributors add COLUMN biography varchar;
|
<reponame>agu3rra/InfraBox<gh_stars>100-1000
ALTER TABLE test_run ADD COLUMN timestamp TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now();
|
<gh_stars>100-1000
ALTER TABLE task ADD COLUMN IF NOT EXISTS description varchar;
|
-- phpMyAdmin SQL Dump
-- version 4.3.8
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 12-04-2017 a las 10:12:54
-- Versión del servidor: 5.5.51-38.2
-- Versión de PHP: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
CREATE EXTENSION IF NOT EXISTS pgcrypto;
CREATE TABLE "job_queues"."MediaPackageHarvestJob"("id" uuid NOT NULL DEFAULT gen_random_uuid(), "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "eventId" uuid NOT NULL, "jobStatusName" text NOT NULL, "message" text NOT NULL, "me... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 06, 2020 at 11:38 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
USE [Partner]
GO
INSERT INTO [dbo].[SR_PDF_FormFill]
([TemplateID]
,[Ordinal]
,[FieldID])
VALUES
(8
,3
,3)
GO
select * from dbo.SR_PDF_FormFill where TemplateID = 8
update dbo.SR_PDF_FormFill set ordinal = 9 where id = 93 |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 27, 2017 at 10:01 PM
-- Server version: 10.1.26-MariaDB
-- PHP Version: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<gh_stars>0
RUNSCRIPT FROM 'classpath:/single-result-reader-schema.sql';
RUNSCRIPT FROM 'classpath:/clob-json-reader-schema.sql';
RUNSCRIPT FROM 'classpath:/integration-schema.sql'; |
ALTER TABLE `proposals` ADD `offer_guarantee_type` VARCHAR (10) NULL AFTER `offer_guarantee`;
ALTER TABLE `proposals` ADD `same_pro` VARCHAR (100) NULL AFTER `offer_guarantee_type`;
ALTER TABLE `proposals` ADD `deal_value` decimal (18, 2) NULL AFTER `same_pro`;
ALTER TABLE `proposals` ADD `financial_power` decimal (18... |
<reponame>choufun/Lab-Petri-1.0
/* USE
*********************************************************************/
USE labpetri_com
/* DELETE
*********************************************************************/
/*
DELETE FROM table_name
WHERE some_column=some_value;
*/
DELETE FROM users WHERE email = '<EMAIL... |
SELECT t_id AS t_id, -1::int8 AS t_basket, 'dm01vch24lv95dliegenschaften_bergwerk'::varchar(60) AS t_type, NULL::varchar(200) AS t_ili_tid,
nummerteilgrundstueck, geometrie, flaechenmass, bergwerk_von
FROM agi_dm01avso24.liegenschaften_bergwerk;
|
<filename>ToDoListDB/dbo/Stored Procedures/spToDos_Create.sql<gh_stars>0
CREATE PROCEDURE [dbo].[spToDos_Create]
@ToDotext nvarchar(100),
@IsComplete bit,
@OwnerId nvarchar(50)
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO [dbo].[ToDos] (ToDoText, OwnerId, IsComplete)
VALUES (@ToDoText, @OwnerId, @IsComplete);
END |
<reponame>Chumbaloo/postgres-scratch
CREATE DOMAIN RGBValue as
integer check (value between 0 and 255);
CREATE TABLE Teams
(
team_name text,
captain text not null,
Primary Key (team_name)
);
CREATE TABLE Players(
player_name text,
team text not null,
FOREIGN KEY (team) re... |
<filename>database/sql/fun_cargar_inventario.sql<gh_stars>1-10
/* Funcion para actualizar las cantidades iniciales automatico. */
DROP FUNCTION act_inventario() CASCADE;
CREATE FUNCTION act_inventario() RETURNS VOID AS $$
DECLARE
c_inventario REFCURSOR;
r_inventario RECORD;
cantidad DECIMAL(10,0)=100;
precio... |
<reponame>Daniel-Fonseca-da-Silva/Tr-Search-Back<filename>DBPostGreeSQL/create_user_corp.sql<gh_stars>1-10
CREATE TABLE user_corp(
id SERIAL PRIMARY KEY,
cnpj_corp CHAR(20) NOT NULL,
email_corp VARCHAR(100) NOT NULL,
login_corp VARCHAR(12) NOT NULL,
name_corp VARCHAR(40) NOT NULL,
... |
<filename>data/test/sql/cf99d989c169251992507a559e14d14bb7485ea5l_mrkfeedback.sql
SET DEFINE OFF;
CREATE TABLE L_MRKFEEDBACK
(
FEEDBACKID NUMBER(10),
RESNUMBER NUMBER(10),
CONTACTID NUMBER(10),
ADDITIONALDATA CLOB,
WHOSTAMP VARCHAR2(250 BYTE),
DATESTAMP DATE
)
LOB (ADDITIONALD... |
<reponame>nikbearbrown/INFO_6210
/* Copyright (c) 2015 <NAME>, <NAME>, <NAME>
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 restriction, including without limitation the rights
to use... |
<reponame>Korn1699/bobsql
USE [WideWorldImporters]
GO
-- The table definition for the [Sales].[Customer] table
--
DROP TABLE IF EXISTS [Sales].[Customers]
GO
CREATE TABLE [Sales].[Customers](
[CustomerID] [int] NOT NULL,
[CustomerName] [nvarchar](100) NOT NULL,
[BillToCustomerID] [int] NOT NULL,
[CustomerCategoryID... |
@../_global_scripts/disable_foreign_key_constraints.sql "table_prefix=co dry_run=false"
prompt DROP OBJECTS
prompt - view co_customer_order_products
drop view co_customer_order_products;
prompt - view co_product_orders
drop view co_product_orders;
prompt - view co_product_reviews
drop view co_product_reviews;
pro... |
select count(idTest) as nb_test_dispo
from rendezvous
where DateRdv = current_date() ; |
create or replace function fn_get_organization_name (as_organization_id in osp$organization.organization_id%TYPE)
return varchar2 is
ls_name osp$organization.organization_name%type;
begin
SELECT OSP$organization.organization_name
INTO LS_NAME
FROM OSP$organization
WHERE rtrim(ltrim(organization_id)... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table collection (
id integer auto_increment not null,
collectionaccount varchar(255),
collectionnmae varchar(255),
collectionsong ... |
drop table ssn_users;
drop table ssn_status;
drop table ssn_msgs;
|
BEGIN;
ALTER TABLE user_emails DROP COLUMN IF EXISTS last_verification_sent_at;
COMMIT;
|
<filename>Src/Entity.Database/Entity/Tables/EventOption.sql
CREATE TABLE [Entity].[EventOption] (
[EventOptionId] INT IDENTITY (1, 1) CONSTRAINT [DF_EventOption_EventOptionId] NOT NULL,
[EventOptionKey] UNIQUEIDENTIFIER CONSTRAINT [DF_EventOption_EventOptionKey] DEFAULT(NewId()) NOT NULL,
[EventKey... |
CREATE SCHEMA IF NOT EXISTS eventuate AUTHORIZATION SA;
SET SCHEMA eventuate;
DROP table IF EXISTS events;
DROP table IF EXISTS entities;
DROP table IF EXISTS snapshots;
create table events (
event_id varchar(1000) PRIMARY KEY,
event_type varchar(1000),
event_data varchar(1000) NOT NULL,
entity_type VARCHAR... |
<gh_stars>1-10
insert into camping (aceita_cartao, aceita_dinheiro, atualizado_em, barracas_para_alugar, cadastrado_por, coordenadas, data_inicial_funcionamento, descricao, email, facebook, iluminacao, inserido_em, link_imagem_capa, pias, regulamento_interno, responsavel, site, telefone, tomadas, valor_diaria, whatsapp... |
-- Copyright (c) 2019 The DAML Authors. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
---------------------------------------------------------------------------------------------------
-- V5.2: Extract event data
--
-- This schema version marks the contracts.create_event_id column as NOT NULL.
ALTER TA... |
/*
Navicat Premium Data Transfer
Source Server : dms
Source Server Type : MySQL
Source Server Version : 50621
Source Host : 172.16.58.3
Source Database : db_dms
Target Server Type : MySQL
Target Server Version : 50621
File Encoding : utf-8
Date: 11/10/2017 22:03:10 PM
... |
<gh_stars>1-10
CREATE TABLE curated_list_information (
id SERIAL NOT NULL,
site_id INTEGER NULL,
slug INTEGER NOT NULL,
title VARCHAR(255),
description TEXT,
is_deleted boolean default '0' NOT NULL,
created_at timestamp without time zone NOT NULL,
PRIMARY KEY(id)
);
ALTER TABLE curated_list_information ADD CON... |
-- phpMyAdmin SQL Dump
-- version 4.9.4
-- https://www.phpmyadmin.net/
--
-- Хост: 10.0.0.130:3306
-- Время создания: Окт 10 2020 г., 15:09
-- Версия сервера: 10.3.25-MariaDB-log
-- Версия PHP: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
DROP DATABASE IF EXISTS teamDB;
CREATE DATABASE teamDB;
USE teamDB;
CREATE TABLE department (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(30)
);
CREATE TABLE role (
id INT PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(30),
salary DECIMAL(10,2),
department_id INT NOT NULL,
FOREIGN KEY(depar... |
<gh_stars>0
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE DATABASE IF NOT EXISTS test_scx_mariadb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE test_scx_mariadb;
DROP TABLE IF EXISTS parent;
CREATE TABLE parent (
id INT(11) NOT NULL AUTO_INCREMENT,
... |
<filename>src/SQL/1-tables.sql
CREATE TABLE weather_data (
weather_timestamp DATETIME,
outdoor_temp DECIMAL(5,2),
outdoor_humidity TINYINT,
outdoor_precip DECIMAL(5,2),
outdoor_radiation SMALLINT,
greenhouse_temp DECIMAL(5,2),
greenhouse_humidity TINYINT,
g... |
use formaweb;
drop table if exists Conference;
create table Conference (
idConf integer not null primary key auto_increment,
intituleConf varchar(45) not null,
descriptionConf varchar(600) not null
) engine=innodb character set utf8 collate utf8_unicode_ci; |
<filename>extraction/dialysis.sql
-- !preview conn=DBI::dbConnect(RSQLite::SQLite())
SELECT
patientunitstayid,
dialysistotal
FROM
`physionet-data.eicu_crd.intakeoutput`
WHERE
dialysistotal >0
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 22-02-2022 a las 22:14:24
-- Versión del servidor: 10.4.13-MariaDB
-- Versión de PHP: 7.2.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>OriPekelman/dpsv
create type distribution as enum('stable', 'testing', 'unstable', 'experimental');
create type component as enum('main');
create table source (
name varchar(255) not null,
distribution distribution not null,
component component not null default 'main',
version varchar(255) no... |
INSERT INTO pos_itemtemp VALUES("IATT200005404","193076","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1702200852","NHO2018000007","PAID","","193076"),
("IATT200005404","193231","191001","192011","0","1","0","0","0","1","1","1","IAT1702200852","NHO2018000007","PAID","","193231"),
("IATT200005405","1... |
<reponame>abdulhamidsoyler/PHP_SIMPLE_LOGIN
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Anamakine: localhost
-- Üretim Zamanı: 01 May 2020, 05:14:10
-- Sunucu sürümü: 8.0.17
-- PHP Sürümü: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zo... |
-- Regions divide the clustering into subproblems
DROP TABLE IF EXISTS regions CASCADE;
CREATE UNLOGGED TABLE regions (
id serial PRIMARY KEY,
geometry geometry(Polygon, 3857) NOT NULL
);
INSERT INTO regions (geometry)
SELECT (ST_Dump(ST_Union(ST_Buffer(geometry, 30)))).geom
FROM poimps
;
CREATE INDEX... |
<filename>test.sql
SELECT campaign.id, campaign.name, ad_group.id, ad_group.name,
ad_group_criterion.criterion_id,
ad_group_criterion.keyword.text,
ad_group_criterion.keyword.match_type,
metrics.impressions, metrics.clicks, metrics.cost_micros
FROM keyword_view WHERE segments.date DURING LAST_7_DAYS
AND campaign.advert... |
CREATE TABLE IF NOT EXISTS `stats_giveaway` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`time` varchar(255) NOT NULL,
`giveaway` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`ip` varchar(255) NOT NULL,
`uid` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=lat... |
-- 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';
CREATE DATABASE `twbs-demo` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `twbs-demo`;
DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` (
`id` int(11) NOT NULL AUTO_INCREMEN... |
<filename>WWI.DB/Sequences/Sequences/PurchaseOrderID.sql
CREATE SEQUENCE [Sequences].[PurchaseOrderID]
AS INT
START WITH 2075
INCREMENT BY 1;
|
ALTER TABLE "item" RENAME TO "hackernews_item";
ALTER SEQUENCE "item_id_seq" RENAME TO "hackernews_item_id_seq";
|
<filename>migrations/framework/20200321_BeforeAfter_StateMachine/08_dbo.DatabaseObjectSetBefore.sql
--liquibase formatted sql
--changeset vrafael:framework_20200321_BeforeAfter_StateMachine_08_dboDatabaseObjectSetBefore logicalFilePath:path-independent splitStatements:true endDelimiter:\nGO runOnChange:true
SET ANSI_N... |
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_2_0_logs/KCIRB-392.sql
-- View for Coeus compatibility
CREATE OR REPLACE VIEW OSP$COMM_MEMBERSHIPS AS
SELECT
COMMITTEE_ID,
DECODE (PERSON_ID, NULL, TO_CHAR(ROLODEX_ID),
PERSON_ID) AS PERSON_ID,... |
CREATE DATABASE test;
USE test;
CREATE TABLE users (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(30) NOT NULL,
password CHAR(32) NOT NULL
);
INSERT INTO users (username, password) VALUES('user', MD5('user'));
|
select
features.app,
features.name,
features.feature,
features.created,
features.updated
from features
where
features.app = $1 and
features.deleted = false |
<reponame>shaoxt/weave<gh_stars>1-10
DROP TABLE IF EXISTS BATCH_STEP_EXECUTION_CONTEXT ;
DROP TABLE IF EXISTS BATCH_JOB_EXECUTION_CONTEXT ;
DROP TABLE IF EXISTS BATCH_STEP_EXECUTION ;
DROP TABLE IF EXISTS BATCH_JOB_EXECUTION_PARAMS ;
DROP TABLE IF EXISTS BATCH_JOB_EXECUTION ;
DROP TABLE IF EXISTS BATCH_JOB_INSTANCE ;
... |
<filename>generator-core/src/test/resources/schema-h2.sql
DROP TABLE IF EXISTS TEST;
CREATE TABLE TEST
(
ID INT PRIMARY KEY,
CODE VARCHAR(255) COMMENT '编码',
NAME VARCHAR(255) COMMENT '名称'
); |
<filename>core/lib/storage/migrations/2021-08-19-113122_token_kind/up.sql
CREATE TYPE token_kind AS ENUM ('ERC20', 'NFT', 'None');
ALTER TABLE tokens ADD COLUMN kind token_kind NOT NULL DEFAULT 'ERC20';
UPDATE tokens SET kind = 'NFT' WHERE is_nft = true;
|
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/sync2/sql/skip/sync2_ao_alter_part_split_partrange.sql
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
--
-- SYNC2 AO TABLE 1
--
create table sync2_ao_alter_part_split_partrange1 (i int) with ( appendonly='tru... |
drop materialized view if exists v5_dashboard.sources;
create table v5_dashboard.sources(
results_id int references results (id) on delete cascade,
id text,
vip_id text,
name text,
datetime text,
description text,
organization_uri text,
terms_of_use_uri text);
with
texts as (
se... |
# MySQL dump 8.22
#
# Host: localhost Database: wps
#-------------------------------------------------------
# Server version 3.23.55-nt
#
# Table structure for table 'wps_access'
#
CREATE TABLE wps_access (
id int(11) NOT NULL auto_increment,
date date NOT NULL default '0000-00-00',
wday tiny... |
/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50718
Source Host : localhost:3306
Source Database : mcgrady
Target Server Type : MYSQL
Target Server Version : 50718
File Encoding : 65001
Date: 2017-10-26 23:12:21
*/
SET FOREIGN_KEY_CHECKS=0;
-- -... |
update behandling set status = REPLACE(status, 'BEREGNET', 'BEREGNET_INNVILGET') where behandling.status = 'BEREGNET';
update behandling set status = REPLACE(status, 'BEREGNET_INVILGET', 'BEREGNET_INNVILGET') where behandling.status = 'BEREGNET_INVILGET';
|
<filename>db/seeds.sql
USE burgers_db;
INSERT INTO burgers (burger_name, devoured)
VALUES ('Deluxe', false),('Royale', false),('MegMac', false) |
<filename>database/dental.sql
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 27, 2021 at 06:08 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";
/*!401... |
-- IFS-5989 -- Change the description of the terms and conditions section for all Expression of Interest competitions
SET @eoi_competition_type = (SELECT id FROM competition_type ct WHERE ct.name='Expression of interest');
UPDATE section s
SET s.description = 'You are agreeing to these by submitting your applicat... |
<filename>5.2.3/Database/Constraints/AFW_01_ATRIB_MODL_COMNC_FK1.sql
SET DEFINE OFF;
ALTER TABLE AFW_01_ATRIB_MODL_COMNC ADD (
CONSTRAINT AFW_01_ATRIB_MODL_COMNC_FK1
FOREIGN KEY (REF_MODL_COMNC)
REFERENCES AFW_01_MODL_COMNC (SEQNC)
ON DELETE CASCADE
ENABLE VALIDATE)
/
|
Create Database TinyLibrary Character Set 'utf8';
use TinyLibrary;
/*
允许自定义昵称,但是使用学号作为主键;
SessionID存储于用户表中;
并且保存每个用户的权限信息:0表示管理员,1表示普通用户,2表示被封禁用户;
以及存储用户姓名,学院,联系方式等信息,这里要求联系方式不同。
另外,定义一个结构完全相同的用户列表,用来存储所有申请注册的用户。
*/
Create Table Users
(
UID varchar(15) Primary Key,
PassWd varchar(64) Not NULL,
SID var... |
<gh_stars>1-10
-- Without Compression
copy customer from 's3://mybucket/encrypted/customer'
iam_role 'arn:aws:iam::0123456789012:role/MyRedshiftRole'
master_symmetric_key '<master_key>'
encrypted
delimiter '|';
-- With Compression
copy customer from 's3://mybucket/encrypted/customer'
iam_role 'arn:aws:iam::012345... |
-- +migrate Up
alter table device
add column device_status_external_power_source boolean not null default false,
alter column device_status_battery type decimal(5,2);
alter table device
alter column device_status_external_power_source drop default;
-- +migrate Down
alter table device
drop column devic... |
<reponame>RuiCoreSci/Flask-Restful
create database IF NOT EXISTS flask_restful;
use flask_restful;
create table comment
(
id int auto_increment
primary key,
user_id int not null comment '评论用户的 ID',
post_id int not ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.