sql stringlengths 6 1.05M |
|---|
vacuum;
ALTER TABLE T_STATE ADD COLUMN disp_name text;
ALTER TABLE T_TASK_MODEL_INST ADD COLUMN exec_env text;
|
<reponame>hhudson/code_standard_tracking
create or replace trigger eba_stds_app_statuses_biu
before insert or update on eba_stds_app_statuses
for each row
begin
if :new.id is null then
:new.id := eba_stds.gen_id();
end if;
end;
/
show errors
alter trigger eba_stds_app_statuses_biu enable; |
<reponame>lmullen/cchc
DROP VIEW IF EXISTS stats.table_sizes;
|
<gh_stars>0
# --- !Ups
CREATE TABLE "account"(
"id" INTEGER NOT NULL PRIMARY KEY ,
"date" varchar ,
"user" varchar,
"io" varchar(10) ,
"amount" REAL,
"balance" REAL,
"reason" varchar,
"whetherLatest" INTEGER);
---!INSERT INTO "account" values (1,'1',"收入", 1,1,'吃饭',1);
---!Downs
---!D... |
<reponame>jsilva85/Data-Design-Project
drop table if exists cart;
drop table if exists registration;
drop table if exists ticket;
drop table if exists buyer;
create table buyer (
buyerId binary (16) not null,
buyerEmail varchar(128) not null,
buyerFirstName varchar(128) not null,
buyerL... |
CREATE DATABASE [Airport]
USE [Airport]
--01.-DDL
CREATE TABLE Planes
(
Id INT PRIMARY KEY IDENTITY,
[Name] VARCHAR(30) NOT NULL,
Seats INT NOT NULL,
[Range] INT NOT NULL
)
CREATE TABLE Flights
(
Id INT PRIMARY KEY IDENTITY,
DepartureTime DATETIME,
ArrivalTime DATETIME,
Origin VARCHAR(50) NOT NULL,
Destinat... |
create table comment (
id bigint not null auto_increment,
service_order_id bigint not null,
message text not null,
created_at datetime not null,
primary key (id)
);
alter table comment add constraint fk_comment_service_order
foreign key (service_order_id) references service_order (id); |
<gh_stars>0
CREATE PROCEDURE [dbo].[pe_NL_Post_Create_AccNums]
AS
UPDATE tblTranNominalPost
SET NomPostAcc = MapTargetAcc
FROM tblTranNominalPost AS P INNER JOIN tblTranNominalMap AS M ON P.NomOrg = M.MapOrg AND P.NomSource = M.MapSource AND P.NomSection = M.MapSection
AND P.NomAccount = M.MapAccount AND P.Nom... |
ALTER TABLE feedback_templates
ADD COLUMN active boolean; |
<reponame>ECNUdbgroup/gpdb<filename>contrib/pg_upgrade/test_gpdb_pre.sql<gh_stars>0
-- WARNING
-- This file is executed against the postgres database, as that is known to
-- exist at the time of running upgrades. If objects are to be manipulated
-- in other databases, make sure to change to the correct database first.
... |
SELECT left, int_array_enum(right) FROM summary WHERE left = item;
|
--test all types as the second argument
drop table if exists all_types;
create table all_types(
c_short short,
c_int int,
c_bigint bigint,
c_numecic numeric(6, 4),
c_float float,
c_double double,
c_date date,
c_time time,
c_timestamp timestamp,
c_datetime datetime,
c_timestampltz timestamp with local time z... |
<filename>OpenSim/Data/MSSQL/Resources/001_GridStore.sql
BEGIN TRANSACTION
CREATE TABLE [dbo].[regions](
[regionHandle] [varchar](255) COLLATE Latin1_General_CI_AS NULL,
[regionName] [varchar](255) COLLATE Latin1_General_CI_AS NULL,
[uuid] [varchar](255) COLLATE Latin1_General_CI_AS NOT NULL,
[regionRecvKey] [varc... |
INSERT INTO TRANSAKSJONS_TYPE (TRANSAKSJONS_TYPE_KODE, OPPRETTET_DATO, OPPRETTET_AV)
VALUES ('FORHAANDSORIENTERING_LEST', CURRENT_TIMESTAMP, 'KASSERT'); |
CREATE DATABASE IF NOT EXISTS `db_seguridadzt` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `db_seguridad`;
-- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: db_seguridad
-- ----------------------------------------... |
<gh_stars>0
GRANT EXECUTE ON OPS$ANDES.PKG_BEN_PRESTACIONES TO UD_CONVENIOS; |
<filename>database.sql<gh_stars>0
-- ------------------------------------------------------------------------- --
-- @Project: Test Birchbox
-- @File: database.sql
-- @Author: BOULFROY Nicolas
-- ------------------------------------------------------------------------- --
-- -------------------------------------------... |
<reponame>zjr24110/-<filename>wj.sql<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : wj
Source Server Version : 80015
Source Host : localhost:3306
Source Database : wj
Target Server Type : MYSQL
Target Server Version : 80015
File Encoding : 65001
Date: 2020-04-11 21:13:43... |
<reponame>DavidBarbosa425/BancoDeDadosMySQL-CV
use cadastro;
insert into pessoas
(id, nome, nascimento, sexo, peso, altura, nacionalidade)
values
(default, 'David', '1987-06-30', 'M', '97.5', '1.80', 'Brasil'),
(default, 'Masvidal', '1984-07-20', 'M', '70.5', '1.80', 'EUA'),
(default, 'Jones', '1988-07-20', 'M', '93.5... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 12, 2018 at 06:53 AM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 7.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 30, 2018 at 10:50 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.5.35
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... |
<reponame>ligana/Ensemble-om-SpringBoot
drop table if exists DC_YEAR_PLAN_INFO ;
/*==============================================================*/
/* Table: DC_YEAR_PLAN_INFO */
/*==============================================================*/
create table DC_YEAR_PLAN_INFO ... |
-- generates runexp numbers by
-- ball/strike count
-- innings
-- base-out state
select
e.inn_ct -- current inning
, e.outs_ct -- outs before this event
, e.start_bases_cd -- base-state at beginning of event
, sum((fate_runs_ct + event_runs_ct) * p.c00) / sum(p.c00)::float as re_... |
<filename>si/load_json.sql<gh_stars>10-100
create schema si_json;
drop table if exists si_json.games;
create table si_json.games (
day date,
id integer,
recap json,
boxscore json,
play_by_play json
);
copy si_json.games from '/home/clong/basketball/si/g... |
-- Query for: 24. Computed Columns
SELECT t.name as TableName, s.name as SchemaName, c.name as ColumnName, c.definition FROM sys.computed_columns c
INNER JOIN sys.tables t on t.object_id = c.object_id
INNER JOIN sys.schemas s on s.schema_id = t.schema_id
|
-- file:guc.sql ln:180 expect:true
SHOW vacuum_cost_delay
|
-- 2018-04-17T11:39:04.357
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('AD_Client','ALTER TABLE public.AD_Client ADD COLUMN SMTPPort NUMERIC DEFAULT 25 NOT NULL')
;
-- 2018-04-17T11:40:08.010
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator... |
-- !Ups
create table tasks
(
id serial not null,
name varchar(100) not null,
description varchar(100),
PRIMARY KEY (id)
);
-- !Downs
DROP TABLE IF EXISTS tasks |
<gh_stars>0
SELECT COUNT(*) as num, IdDocFamily,
(Select F.Name FROM DocFamily F WHERE F.IdDocFamily=D.IdDocFamily) as family,
MIN(D.IdUserPost) as min_IdUserPost ,MAX(D.IdUserPost) as max_IdUserPost,
MIN(D.IdDocument) as min_id,MAX(D.IdDocument) as max_id,
MIN(D.DateCreated) as min_date,MAX... |
<filename>sqlmapper-parent/sqlmapper-core/src/test/resources/sqltemplate/inheritance_deleteByCreateAt.sql<gh_stars>0
delete from test_inheritance
/*BEGIN*/
where
/*IF createAt != null*/
create_at >= /*createAt*/
/*END*/
/*END*/ |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table favorite (
id bigint auto_increment not null,
surfer_id bigint,
user_info_id bigint,
constraint pk_favorite primary key (id))
;
... |
<filename>src/main/resources/db/2020-06-04.sql
DROP TABLE IF EXISTS `zh_mrtb`;
CREATE TABLE `zh_mrtb` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fbrq` date DEFAULT NULL COMMENT '发布日期',
`tbrq` date DEFAULT NULL COMMENT '通报日期',
`qs` varchar(50) DEFAULT NULL COMMENT '期数',
`create_time` datetime DEFAULT CURRENT_TIM... |
CREATE TABLE clientes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
nome TEXT NOT NULL,
idade INTEGER,
cpf VARCHAR(11) NOT NULL,
email TEXT NOT NULL UNIQUE,
fone TEXT,
cidade TEXT,
uf VARCHAR(2) NOT NULL,
criado_em DATETIME NOT NULL
); |
CREATE TABLE scm_job_posting(
seq BIGINT AUTO_INCREMENT PRIMARY KEY,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AdditionalType
* param: org.kyojo.schemaorg.m3n3.core.Clazz$URL
*/
additional_type VARCHAR(100) NULL,
/**
* type: org.kyojo.schemaorg.m3n3.core.Container$AlternateName
* param: org.... |
CREATE TABLE inst_group_app_users (
inst_group_id BIGSERIAL REFERENCES inst_group ON DELETE CASCADE,
app_user_id BIGSERIAL REFERENCES app_user ON DELETE CASCADE,
UNIQUE(inst_group_id,app_user_id)
); |
<filename>components/schema-migrator/migrations/kyma-environment-broker/202012150900_add_provisioning_parameters_to_operation.up.sql
ALTER TABLE operations
ADD COLUMN provisioning_parameters json;
|
-- --------------------------------------------------------
-- Hôte : 127.0.0.1
-- Version du serveur: 8.0.16 - MySQL Community Server - GPL
-- SE du serveur: Win64
-- HeidiSQL Version: 9.5.0.5196
-- --------------------------------------------------------
/*... |
<filename>devilry/project/develop/dumps/default.sql
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.1
-- Dumped by pg_dump version 10.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;... |
-- @testpoint: opengauss关键字number(非保留),作为函数名,部分测试点合理报错
--关键字不带引号
drop function if exists number;
create function number(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--关键字带双引号
drop function if exists "number";
create function "number"(i integer)
returns integer
as $$
begin
retu... |
<reponame>heisedebaise/clivia
DROP TABLE IF EXISTS t_account;
CREATE TABLE t_account
(
c_id CHAR(36) NOT NULL COMMENT '主键',
c_user CHAR(36) NOT NULL COMMENT '用户',
c_owner VARCHAR(255) DEFAULT NULL COMMENT '所有者',
c_type INT DEFAULT 0 COMMENT '类型',
c_balance BIGINT DEFAULT 0 COMMENT '余额',
c_deposit BIGINT DEF... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5beta2
-- Dumped by pg_dump version 9.5beta2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security =... |
<filename>db/migrations/000002_add_user_role.up.sql
BEGIN;
CREATE TYPE enum_user_role AS ENUM (
'admin',
'customer'
);
ALTER TABLE users
ADD COLUMN role enum_user_role;
COMMIT; |
<reponame>ahs012/resumeJumper
-- Drops the resume DB if it exists currently --
DROP DATABASE IF EXISTS resume_db;
-- Creates + Use the "resume" database --
CREATE DATABASE resume_db;
USE resume_db;
CREATE TABLE users_table(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
username VARCHAR(100) NOT NULL,
e... |
select * from commits |
<reponame>khoironi14/satpolpp<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 04, 2021 at 09:54 PM
-- Server version: 10.2.36-MariaDB-cll-lve
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRAN... |
<reponame>ivancekic/sql-data-analysis
Select Z.ORG_DEO,porganizacionideo.naziv(Z.org_deo) naziv , Z.proizvod proizv_invej ,
(SELECT UL06
FROM MAPIRANJE M
WHERE M.firma = 'INVEJ'
AND M.MODUL = 'MAGACIN'
AND M.UL02 = 'ZA_LINK'
AND M.UL03 = Z.ORG_DEO ) POSLOVNI_P,... |
DROP TABLE IF EXISTS users CASCADE;
CREATE TABLE users (
id SERIAL,
twitter_id BIGINT PRIMARY KEY,
username VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
token VARCHAR(255),
secret_token VARCHAR(255),
image_url VARCHAR(255),
settings JSON
); |
<reponame>sogis/migration-sogis-db
UPDATE alw_tiergesundheit_massnahmen.massnhmnrgsndheit_bienensperrgebiet
SET geometrie = ST_MakeValid(ST_RemoveRepeatedPoints(ST_SnapToGrid(geometrie, 0.001)))
;
|
<filename>5.2.3/Database/Indexes/AFW_19_SPECF_FONCT_FK2.sql
SET DEFINE OFF;
CREATE INDEX AFW_19_SPECF_FONCT_FK2 ON AFW_19_SPECF_FONCT
(REF_ITEM)
LOGGING
/
|
<reponame>tarkmeper/numpgsql
-- This program is open source, licensed under the MIT License.
-- For license terms, see the LICENSE file.
--
-- Copyright (C) 2019: <NAME>
-- Other functions
CREATE FUNCTION sort(anyarray) RETURNS anyarray LANGUAGE C STRICT IMMUTABLE LEAKPROOF COST 100 PARALLEL SAFE AS '$libdir/numpgsql'... |
<reponame>lenartgolob/nepremicnine<filename>nepremicnine.sql<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Gostitelj: 127.0.0.1
-- Čas nastanka: 01. okt 2019 ob 21.07
-- Različica strežnika: 10.1.28-MariaDB
-- Različica PHP: 7.1.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SE... |
/* this script creates the KisesaDSSClinicLinkSystem
DATABASE and data table and security objects.
ORIGINAL CODE BY <NAME> and <NAME> ON 2014.09.09
EDITED BY <NAME>, <NAME>, and <NAME> BEGINNING ON 2015.05.01
OBJECTS
TABLES
USERS
CERTIFICATES
SYMMETRIC KEYS
*/
-- =====================================... |
SELECT *
FROM "dUsuario"
|
DROP TABLE IF EXISTS case_type_profile;
CREATE TABLE IF NOT EXISTS case_type_profile
(
case_type TEXT NOT NULL,
profile_name VARCHAR(25) NOT NULL,
CONSTRAINT case_type_profile_idempotent UNIQUE (case_type, profile_name),
CONSTRAINT fk_case_type_profile_ctype FOREIGN KEY (case_type) REFERENCES ca... |
-- Keep a log of any SQL queries you execute as you solve the mystery.
-- Who the thief is?
-- Where the thief escaped to?
-- Who the thief's accompliance was, who helped him to escape the town?
-- What I know: Theft took place on July 28 and Theft took place on Chamberlin Street
-- Maintain a list of suspects
/*
T... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 3.1.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 09, 2015 at 10:01 AM
-- Server version: 5.1.30
-- PHP Version: 5.2.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD... |
<filename>src/main/resources/db/migration/V1__create_tables.sql
CREATE TABLE IF NOT EXISTS registry.client
(
uuid UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(),
deleted BOOLEAN NOT NULL DEFAULT false,
email VARCHAR(63),
family_name VARCHAR(31),
first_name VARCHAR(31),
login... |
CREATE OR REPLACE VIEW db.tagget_record_view AS SELECT
re.id id,
re.position position,
re.type type,
re.user_name user_name,
re.public_time public_time,
re.visible visible,
( SELECT array_agg(tl.label)
FROM db.tagget ta
LEFT JOIN dictionary.tag_... |
ALTER DATABASE ualnaji CHARACTER SET utf8 COLLATE utf8_unicode_ci;
DROP TABLE IF EXISTS review;
DROP TABLE IF EXISTS itemResult;
DROP TABLE IF EXISTS profile;
CREATE TABLE profile (
profileId BINARY (16) NOT NULL,
profileActivationToken CHAR(32),
... |
<reponame>srcarter3/awips2
copy stns.pirep_navaids (station_id, name, state, country, latitude, longitude, elevation, priority) FROM stdin with delimiter as ';' ;
AAA;ABRAHAM ;--;--;40.16;-89.34;0;0
AAF;APALACHICOLA ;--;--;29.72;-85.03;0;0
AAJ;BINGHAMPTON ;... |
CREATE TABLE IF NOT EXISTS `wp_xydzp` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `keyword` varchar(255) NOT NULL COMMENT '关键词', `start_date` int(10) NOT NULL COMMENT '开始时间', `end_date` int(10) NOT NULL COMMENT '结束日期', `cTime` int(10) NOT NULL COMMENT '活动创建时间', `states` char(10) NOT NULL DEFAULT 0 CO... |
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ, READ ONLY;
-- 1. start a new transaction
START TRANSACTION;
SELECT * FROM orders ORDER BY orderNumber DESC LIMIT 10;
COMMIT |
/* ------------------------------------ */
/* Great League Barboach, Whiscash Rank 1-25 */
/* ------------------------------------ */
/* Barboach */
INSERT INTO monsters
(`id`, `ping`, `clean`, `pokemon_id`, `form`, `distance`, `min_iv`, `max_iv`, `min_cp`, `max_cp`, `min_level`, `max_level`, `atk`, `def`, `sta`, `tem... |
-- 导入测试商品列表
insert into tb_product (pk_uuid, product_name, cover_image, price,create_time,update_time) values(1, '测试商品-001', '/products/cover/001.png', 100,CURRENT_TIMESTAMP(),CURRENT_TIMESTAMP());
insert into tb_product (pk_uuid, product_name, cover_image, price,create_time,update_time) values(2, '测试商品-002', '/product... |
<gh_stars>1-10
Create VIEW [EntityCode].[EntityAppointment]
AS
Select EA.EntityAppointmentId As [Id],
EA.EntityAppointmentKey As [Key],
EA.EntityKey,
A.AppointmentKey,
A.AppointmentName,
A.AppointmentDescription,
A.TimeRangeKey,
TR.BeginDate,
TR.E... |
select id, lifecycle_state
from oci.oci_budget_budget
where id = '{{ output.resource_id.value }}::dummy'; |
<filename>src/test/tinc/tincrepo/dml/functional/sql/joins_ao_regtab_insert_16.sql
-- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml HAWQ
-- @db_name dmldb
-- @description test16: Insert NULL with Joins
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo -... |
<filename>plugins/referers/setup/referers.install.sql<gh_stars>10-100
CREATE TABLE IF NOT EXISTS `cot_referers` (
`ref_url` varchar(255) collate utf8_unicode_ci NOT NULL default '',
`ref_date` int unsigned NOT NULL default '0',
`ref_count` int NOT NULL default '0',
PRIMARY KEY (`ref_url`)
) ENGINE=MyISAM DEFA... |
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/INNERFUNC/SysManagement/dbObject/Opengauss_Function_Sysmanagement_Dbobject_Dl_Case0001.sql<gh_stars>0
-- @testpoint: datalength(any)计算一个指定的数据需要的字节数(不考虑数据的管理空间和数据压缩,数据类型转换等情况)。
-- 数值
-- 整数
-- TINYINT
SELECT datalength(0::TINYINT);
... |
<filename>db_webmobile.sql
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 10, 2019 at 07:36 AM
-- Server version: 10.3.12-MariaDB
-- PHP Version: 7.0.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... |
DROP DATABASE IF EXISTS etracker_DB;
CREATE DATABASE etracker_DB;
USE etracker_DB;
DROP TABLE IF EXISTS Department;
DROP TABLE IF EXISTS Role;
DROP TABLE IF EXISTS Employee;
CREATE TABLE Department
(
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) NOT NULL,
CONSTRAINT UC_name UNIQUE(name)
);
... |
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 21, 2020 at 12:38 AM
-- Server version: 5.6.25
-- PHP Version: 5.6.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
SELECT COUNT(EmployeeID) AS [Count]
FROM Employees AS e
WHERE e.ManagerID IS NULL |
SET SQL_SAFE_UPDATES = 0;
/*
* Corrective script -3
* Corrective-script-2 failed for few tables due to the order of execution
* Corrected in this file
* This needs to be moved as part of migration script
* Once it is done then we need not to run any SQL scripts manually
*/
/*
* Removing test data
*/
update metadata... |
<reponame>manuGarciaMons/Simulador-Bancario<filename>DB/simuladorBancario.sql
-- 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_T... |
<reponame>feriawu/learning
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 10, 2018 at 07:16 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.1.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... |
create table divisions(
name varchar(32) primary key
);
|
-- 2017-05-04T18:13:42.940
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540474,540159,TO_TIMESTAMP('2017-05-04 18:13:42','YYYY-MM-DD HH24:MI:SS'),100,'Y'... |
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current_mysql/5.0/dml/KC_DML_01_KCIAC-18_B000.sql
DELIMITER /
INSERT INTO FP_DOC_TYPE_T (FDOC_TYP_CD,VER_NBR,FDOC_NM,FDOC_TYP_ACTIVE_CD,OBJ_ID)
VALUES('ICPR', 1, 'IACUC Protocol', 'Y', UUID())
/
INSERT INTO SPECIAL_REVIEW_USAGE (SPECIAL_REVIEW... |
IF (OBJECT_ID(N'[dbo].[tbl_Sensor_Fabric]', 'U') IS NULL)
BEGIN
CREATE TABLE [dbo].[tbl_Sensor_Fabric]
([nvc_sensor] [nvarchar](50) NULL
,[nvc_region] [nvarchar](50) NULL
,[nvc_regiontag] [nvarchar](10) NULL
,[nvc_location] [nvarchar](50) NULL
,[nvc_probe] [nvarchar](150) NULL)
END
|
IF ( EXISTS ( SELECT *
FROM [dbo].[updates]
WHERE [revision] = 5 ) )
BEGIN
BEGIN TRANSACTION
ALTER TABLE [dbo].[users]
ADD isapproved BIT NOT NULL
CONSTRAINT DF_users_IsApproved DEFAULT 1,
islocke... |
-- phpMyAdmin SQL Dump
-- version 4.0.10.6
-- http://www.phpmyadmin.net
--
-- Host: mysql-lebonc.alwaysdata.net
-- Generation Time: Jun 05, 2017 at 10:39 AM
-- Server version: 10.1.20-MariaDB
-- PHP Version: 5.6.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
CREATE TABLE users (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
username CHAR(50) NOT NULL,
email CHAR(250) NOT NULL,
password CHAR(20) NOT NULL,
name CHAR(250) NOT NULL,
avatar CHAR(250) NOT NULL
);
|
INSERT INTO offer (
offer_id, merchant_id, description,
offering_id, price, currency_code,
active_start_date, active_end_date,
status_code
) VALUES (
'repository-test-offer-id-1008', 'repository-test-merchant-id-1', 'Interesting offer 1008',
'offering-id-1', 12.34, 'GBP',
'2018-01-01', '2018-01-14 23:59:5... |
<filename>MODEL/migration/src/main/resources/game-score/migration/db/V0/V0.8/V0.8.1/V0.8.1.14__2021__final.sql
call create_game('les-armes-secretes','Orientation','orientation-2021','orientation','individuel','finale',23,34,'poteaux','patience,logique,endurance');
call create_game_participation('jonathan-2021','blanc-... |
<reponame>battery-lcf/battery-archive-sandbox
/*
Name: Filters: Max State of Charge
Data source: 1
Created By: admin
Last Update At: 2021-07-02T17:19:30.461Z
*/
select distinct soc_max as a, count(*) from test_metadata group by a order by a |
USE SSISManagement
GO
/****** Object: StoredProcedure [dbo].[spGetVariableValues] Script Date: 1/28/2016 2:25:56 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create proc [dbo].[GetVariableValues] @packageName NVARCHAR(255)
AS
SELECT VariableName, VariableValue
FROM SSISConfigurations
WHERE Package... |
<filename>p-runtime_deps.sql<gh_stars>0
\copy (SELECT DISTINCT d.project_id, p.repo_id, d.dep_id, d.project, '' AS repo_name, d.dep_name, FROM dependencies d JOIN projects p ON d.project_id = p.project_id WHERE lower(d.dep_kind) similar to 'runtime%|%provide%|["provided"]|%compile%|["compile"]|imports|["runtime"]|peer|... |
conn sts/sts
/
Delete from EXP
/
Delete from INCM
/
Delete from CLIENT_PMT
/
Delete from CLNT_ORDR_CHLN
/
Delete from CLIENT
/
Delete from PKG_RENEW
/
Delete from STURANK
/
Delete from STUD_PREV_REC
/
Delete from RPTSTUDENTS
/
Delete from QTESTBANK
/
Delete from mcqtest
/
Delete from ... |
create schema tc;
create schema tc_priv; |
<reponame>bizsoftsolution/CI_BombayFashion
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 07, 2017 at 01:30 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 S... |
CREATE PROCEDURE create_reservation
@distributor_id INT,
@product_warehouse_id INT,
@amount INT,
@reservation_id INT OUTPUT
AS
SET XACT_ABORT ON
BEGIN
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
BEGIN TRANSACTION
/*CHECKS IF amount IS NOT TO SMALL*/
IF(@amount < 1)
THROW 50006,... |
<filename>fill_script.sql
INSERT INTO agronomists (first_name,last_name)
VALUES
('Brandon','Bullock'),('Selma','Snider'),
('Kyra','Holder'),('Heather','Ramsey'),
('Marvin','Schneider'),('Mary','Morales'),
('Robin','Kirby'),('Savannah','Baldwin'),
('Ivor','Holden'),('Kennan','Swanson'),
('Lara','Roberts'),('Natalie','... |
CREATE proc Table_ConSohGIT (@xcase int,@mat nvarchar(18),@NEng nvarchar(40))
as
begin try
drop table ##tmpConSohGIT
end try
begin catch
end catch
declare @sql nvarchar(max)
set @sql = dbo.SQL_ConSohGIT(@xcase ,@mat ,@NEng)
exec (@sql) |
<reponame>jhonnyelhelou91/SQLUtility
IF EXISTS (SELECT 1 FROM sys.objects where [object_id] = OBJECT_ID('Utility.sp_tablesize'))
DROP PROCEDURE [Utility].[sp_tablesize]
GO
CREATE PROCEDURE [Utility].[sp_tablesize]
AS
BEGIN
-- TEMP TABLES FOR ANALYSIS
CREATE TABLE #ttables
(
sname NVARCHAR(max),
... |
CREATE TABLE role (
name VARCHAR(191) NOT NULL,
PRIMARY KEY (name)
) ENGINE=InnoDB CHARACTER SET=utf8mb4, COLLATE=utf8mb4_unicode_ci;
CREATE TABLE verb_roles (
verb_name VARCHAR(191) NOT NULL,
roles_name VARCHAR(191) NOT NULL,
PRIMARY KEY (verb_name, roles_name),
CONSTRAINT verb_role_1_fk FOREI... |
<gh_stars>1-10
create table t_cron_task
(
ID varchar(64) not null comment '物理主键'
primary key,
job_name varchar(64) not null comment '任务名称',
cron_expr varchar(30) not null comment 'cron表达式',
job_desc varchar(200) null comment '任务描述',
job_class varchar(60) null comment '任务执行类名',
effect_fla... |
-- file:privileges.sql ln:1059 expect:true
grant select on dep_priv_test to regress_user3 with grant option
|
<reponame>thedyarmstrong/psikologi2<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Waktu pembuatan: 17. Januari 2018 jam 13:39
-- Versi Server: 5.5.16
-- Versi PHP: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<reponame>bcgov/cas-ggircs-ciip-2018<filename>deploy/ciip/schema.sql
-- Deploy ggircs:schema_ciip to pg
begin;
create schema ciip_2018;
comment on schema ciip_2018 is 'A schema for the CleanBC Industrial Incentive Program (CIIP)';
commit;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.