sql stringlengths 6 1.05M |
|---|
<reponame>OpenMPDK/SMDK<filename>src/app/voltdb/voltdb_src/tests/sqlcoverage/template/int/advanced-matview-subq-nonjoin.sql
<configure-for-matview-subq-nonjoin.sql>
<advanced-matview-nonjoin-template.sql>
|
-- @testpoint: 函数bool_or,如果所有输入值只要有一个为真,则为真,否则为假。
select bool_or(100 <2500);
select bool_or(array[1.1,2.1,3.1]::int[] = array[1,2,3]);
select bool_or('a'='a');
select bool_or('a'>'a');
select bool_or('a'>'b');
select bool_or('a'<'b');
select bool_or('a=b'='b=a');
select bool_or(1);
|
<filename>usp_GetJobsscheduleNotEnabled.sql
/****** Object: StoredProcedure [dbo].[usp_GetJobsscheduleNotEnabled] Script Date: 2/13/2021 12:11:46 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[usp_GetJobsscheduleNotEnabled] (
--@output char(1), -- Not needed on this sty... |
INSERT INTO connections
( idConnections, User_idUser, Connection_idConnection )
VALUES
(1001, 1, 100001),
(1002, 2, 100001);
SELECT * FROM connections; |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 13-08-2016 a las 13:25:58
-- Versión del servidor: 5.5.24-log
-- Versión de PHP: 5.4.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 17, 2021 at 11:56 AM
-- Server version: 10.4.14-MariaDB-1:10.4.14+maria~bionic-log
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
... |
CREATE DATABASE IF NOT EXISTS `matf_2015_01_studenti` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `matf_2015_01_studenti`;
-- MySQL dump 10.13 Distrib 5.6.17, for Win64 (x86_64)
--
-- Host: localhost Database: matf_2015_01_studenti
-- ------------------------------------------------------
-- Server version 5.5.2... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 14.0
-- Dumped by pg_dump version 14.0
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', fal... |
<reponame>thomoncik/railway-management<filename>insert-carrier-trigger.sql
IF OBJECT_ID('insert_carrier') IS NOT NULL DROP TRIGGER insert_carrier
GO
CREATE TRIGGER insert_carrier
ON carrier
INSTEAD OF INSERT AS
BEGIN
DECLARE to_insert CURSOR
FOR SELECT * FROM inserted
FOR READ ONLY
DEC... |
<reponame>getwasim/egov-smartcity-suites-test
INSERT INTO eg_appconfig(id, key_name, description, module) VALUES (nextval('seq_eg_appconfig'), 'ENGINEERINCHARGE_DESIGNATION', 'Designation for loading Engineer incharge employees in Letter of acceptance screen', (select id from eg_module where name='Works Management'));
... |
<gh_stars>1-10
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS = @@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS = 0 */;
/*!40101 SET @OLD_SQL_MODE = @@SQL_MODE, SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 S... |
ALTER TABLE legacy_registrations
ADD COLUMN status text NOT NULL;
|
use photogallery;
drop table if exists department;
drop table if exists employee;
drop table if exists project;
drop table if exists workson;
CREATE TABLE department(
number varchar(50) NOT NULL PRIMARY KEY,
name varchar(200) NULL
);
CREATE TABLE employee (
number varchar(100) NOT NULL PRIMARY KEY,
name varch... |
-- file:json.sql ln:593 expect:true
SELECT json_build_object('{a,b,c}'::text[])
|
-- file:collate.sql ln:79 expect:true
CREATE TABLE collate_test10 (
a int,
x text COLLATE "C",
y text COLLATE "POSIX"
)
|
<reponame>flexsocialbox/una<gh_stars>100-1000
-- TABLES
ALTER TABLE `bx_videos_photos` CHANGE `size` `size` bigint(20) NOT NULL;
ALTER TABLE `bx_videos_videos` CHANGE `size` `size` bigint(20) NOT NULL;
ALTER TABLE `bx_videos_media_resized` CHANGE `size` `size` bigint(20) NOT NULL;
|
<reponame>IASA-GR/appdb-core<filename>sql/8.12.26-8.12.27.sql
/*
Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr)
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 o... |
<gh_stars>0
USE [master]
GO
--:setvar DatabaseName "crmdb"
:setvar __IsSqlCmdEnabled "True"
GO
IF N'$(__IsSqlCmdEnabled)' NOT LIKE N'True'
BEGIN
PRINT N'SQLCMD mode must be enabled to successfully execute this script.';
SET NOEXEC ON;
END
GO
/* Drop DB if exists */
IF EXISTS ... |
<reponame>ohdsi-studies/SvvEhden<gh_stars>1-10
-- return all the drug cohorts to be used to construct the json file
select distinct * from
(
SELECT distinct C.concept_id, C.concept_code, C.concept_name
FROM @cdm_database_schema.drug_exposure DE
INNER JOIN @cdm_database_schema.concept C ON C.concept_id = DE.drug_... |
<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50644
Source Host : localhost:3306
Source Database : zqs_admin_com
Target Server Type : MYSQL
Target Server Version : 50644
File Encoding : 65001
Date: 2020-04-25 13:43:57
*/
SET FOREIGN_K... |
<reponame>shawnsky/shiro-demo
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 5.5.13 - MySQL Community Server (GPL)
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 9.4.0.5174
-- ------------------------------... |
<gh_stars>0
INSERT INTO REQUIREMENT_TYPE_CODE (REQUIREMENT_TYPE_CODE,LABEL,DESCRIPTION,DISPLAY_ORDER,EFFECTIVE_DATE,EXPIRY_DATE) VALUES ('MCE12','Min Credits Elective 12','Algorithm identifies student courses at the grade 12 level for Adult students',10,TIMESTAMP'2021-06-14 00:00:00.0',TIMESTAMP'2099-12-31 00:00:00.0')... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table arquivo (
id varchar(255) not null,
pasta_id varchar(255) not null,
pai_id varchar(255),
name v... |
<reponame>DevTeamBK/ClickHouse
drop table if exists t;
drop table if exists mv;
create table t engine=Memory empty; -- { clientError SYNTAX_ERROR }
create table t engine=Memory empty as; -- { clientError SYNTAX_ERROR }
create table t engine=Memory as; -- { clientError SYNTAX_ERROR }
create table t engine=Memory empty... |
-- +migrate Up
-- SQL in section 'Up' is executed when this migration is applied
CREATE TABLE `Eras` (
`id` int(11) NOT NULL,
`endBlockHeight` int(11) DEFAULT NULL,
`endTimestamp` datetime DEFAULT NULL,
`protocolVersion` varchar(15) DEFAULT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datet... |
<filename>ArcanaErp.Database/dbo/Tables/AgreementPartyRole.sql<gh_stars>0
CREATE TABLE [dbo].[AgreementPartyRole] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Description] VARCHAR (255) NULL,
[AgreementId] INT NULL,
[PartyId] INT NULL,
... |
<filename>src/test/storageperf/sql/inlinecompress.sql
-- Tests with a narrow, single-column table.
CREATE /* UNLOGGED */ TABLE inlinecompress (i text);
-- Populate the table with a bunch of INSERT ... SELECT statements.
-- Measure how long it takes, and the resulting table size.
select pg_current_wal_insert_lsn() as ... |
DROP VIEW IF EXISTS view_daftar_barang_disdik;
CREATE VIEW view_daftar_barang_disdik AS
SELECT
*
FROM
view_daftar_barang_kabupaten
WHERE
1 = 1;
GRANT ALL PRIVILEGES ON view_daftar_barang_disdik TO lap_disdik;
REVOKE INSERT, UPDATE, DELETE ON view_daftar_barang_disdik FROM lap_disdik;
|
<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : l-localhost
Source Server Version : 50617
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2014-09-11 18:15:25
*/
SET FOREIGN_KEY_CHEC... |
<gh_stars>0
ALTER TABLE `item`
DROP FOREIGN KEY `fk_item_2`;
ALTER TABLE `item`
ADD CONSTRAINT `fk_item_2`
FOREIGN KEY (`parent_id`)
REFERENCES `item` (`id`)
ON DELETE CASCADE
ON UPDATE NO ACTION;
|
<reponame>sanmuganathan78/ajax_crud_datatables
CREATE TABLE IF NOT EXISTS `persons` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstName` varchar(255) NOT NULL,
`lastName` varchar(255) NOT NULL,
`gender` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`dob` date NOT NULL,
PRIMARY KEY (`id`)
) ENG... |
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 24. Mai 2020 um 22:15
-- Server-Version: 5.7.25
-- PHP-Version: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!... |
DELIMITER $$
DROP PROCEDURE IF EXISTS GetStudentByFaculty $$
CREATE PROCEDURE GetStudentByFaculty
(IN StudentName VARCHAR(255))
BEGIN
SELECT * FROM student WHERE std_fac_code = StudentName;
END$$
DELIMITER ; |
-- AlterTable
ALTER TABLE `users` ADD COLUMN `chatRoomId` INTEGER NULL;
-- AddForeignKey
ALTER TABLE `users` ADD CONSTRAINT `users_chatRoomId_fkey` FOREIGN KEY (`chatRoomId`) REFERENCES `sentences`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
ALTER TABLE `users` ADD `discord` VARCHAR(255) NULL AFTER `blog_url`; |
<gh_stars>1-10
-- MySQL Script generated by MySQL Workbench
-- Wed Jun 17 17:42:30 2020
-- Model: New Model Version: 1.0
-- 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_MOD... |
<filename>scripts/creation_statements.sql
CREATE USER {{username}} IDENTIFIED BY "{{password}}";
GRANT CONNECT TO {{name}};
GRANT CREATE SESSION to {{name}};
GRANT DBA TO {{name}};
GRANT RESOURCE TO {{name}};
|
<reponame>alphagov/pay-webhooks<gh_stars>1-10
--liquibase formatted sql
--changeset uk.gov.pay:create-table-webhooks
CREATE table webhooks (
id SERIAL PRIMARY KEY,
created_date TIMESTAMP WITHOUT TIME ZONE NOT NULL,
external_id VARCHAR(30) NOT NULL,
signing_key VARCHAR(39) NOT NULL,
service_id VARC... |
CREATE TABLE test_table
(
col1 TEXT
);
|
CREATE TABLE student
(
student_id INTEGER NOT NULL IDENTITY PRIMARY KEY,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50),
year INTEGER
); |
use burgers_db
INSERT INTO burgers (name) VALUES ("cheeseburger");
INSERT INTO burgers (name) VALUES ("hamburger");
INSERT INTO burgers (name) VALUES ("bacon burger"); |
alter table "public"."post_tag" alter column "post_id" drop not null;
alter table "public"."post_tag" add column "post_id" int4;
|
<reponame>oguzhanun/DevOpsImpl-Microservices-PetClinic<filename>spring-petclinic-visits-service/src/main/resources/db/mysql/schema.sql
CREATE DATABASE IF NOT EXISTS petclinic;
GRANT ALL PRIVILEGES ON petclinic.* TO 'root'@'%' IDENTIFIED BY 'petclinic';
USE petclinic;
CREATE TABLE IF NOT EXISTS visits (
id INT(4) UNS... |
<gh_stars>0
-- SQL maiusculo RESTANTE minusculo
CREATE DATABASE agenda;
USE agenda;
DROP TABLE IF EXISTS contatos;
-- tabelas no plural
CREATE TABLE contatos (
id_contato INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(50) NOT NULL,
sobrenome VARCHAR(50) NULL,
telefone VARCHAR(15) ... |
CREATE TABLE user_entity (
user_id VARCHAR(10) NOT NULL,
password VARCHAR (128) NOT NULL,
last_name VARCHAR (32) ,
first_name VARCHAR (32) ,
gender CHAR (1) ,
deleted_flg CHAR(1) DEFAULT '0' NOT NULL,
-- multiple "auto update timestamp column" is only supported with MySQL 5.7 or higher
-- ... |
<reponame>oharsta/OpenConext-oidc<filename>oidc-server/src/main/resources/db/migration/V2___additional_attributes.sql<gh_stars>1-10
--
-- Additional attributes to store for the UserInfo,
-- see https://wiki.surfnet.nl/pages/viewpage.action?spaceKey=P3GFeI2015&title=OpenID%20Connect%20Implementatie
--
CREATE INDEX ui_pu... |
###################################
# 多表查询
###################################
CREATE TABLE multi_person (
id INT PRIMARY KEY,
name VARCHAR(100)
);
CREATE TABLE multi_idcard (
id INT PRIMARY KEY,
num VARCHAR(100),
CONSTRAINT person_id_fk FOREIGN KEY (id) REFERENCES multi_person (id)
);
CREATE TABLE mu... |
<gh_stars>100-1000
CREATE TABLE TABLEA (
ApplicationName varchar(64) NOT NULL,
BuildNumber int NOT NULL
)
LOCK ALLPAGES
GO |
<filename>containers/examples/cluster-server-psql/db_init_scripts/5_pentaho_mart_postgresql.sql
--
-- These queries create logging datamart tables for a PostGreSQL database
--
\connect hibernate hibuser
CREATE SCHEMA pentaho_operations_mart;
--
-- SHARED between BA & DI Data Mart - pentaho_operations_mart.DIM_DATE
--... |
<reponame>blinkops/blink-aws-query
select title, akas, tags, region, account_id
from aws.aws_ssm_maintenance_window
where window_id = '{{ output.resource_id.value }}';
|
DROP TABLE IF EXISTS null_00557;
CREATE TABLE null_00557 (x UInt8) ENGINE = Null;
DESCRIBE TABLE null_00557;
ALTER TABLE null_00557 ADD COLUMN y String, MODIFY COLUMN x Int64 DEFAULT toInt64(y);
DESCRIBE TABLE null_00557;
DROP TABLE null_00557;
|
<reponame>jhoez/carnettifm
insert into calle values(1,'<NAME>');
insert into calle values(2,'CALLE PRINCIPAL');
insert into calle values(3,'<NAME>');
insert into calle values(4,'<NAME>');
insert into calle values(5,' <NAME>');
insert into calle values(6,'<NAME>');
insert into calle values(7,'<NAME>');
insert into calle... |
alter table media_file add column file_name text; |
<gh_stars>0
# Do some inserts to get us started off
insert into Site (name, jhVirtualEnv, jhOutputRoot, createdBy, creationTS) values ('SLAC', '/nfs/farm/g/lsst/u1/jobHarness/jh_inst', '/nfs/farm/g/lsst/u1/jobHarness/jh_archive', 'jrb', UTC_TIMESTAMP());
##insert into Site (name, jhVirtualEnv, jhOutputRoot, createdBy,... |
INSERT
OR IGNORE INTO "category_tbl" ("name", "emoji")
VALUES (?, ?) |
USE roomly;
-- ---
-- Globals
-- ---
-- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-- SET FOREIGN_KEY_CHECKS=0;
-- ---
-- Table 'User'
--
-- ---
DROP TABLE IF EXISTS `Users`;
CREATE TABLE `Users` (
`id` INTEGER NOT NULL,
`userName` VARCHAR(20) NULL DEFAULT NULL,
`profPic` VARCHAR(255) NULL DEFAULT NULL,
`city` ... |
ALTER TABLE dbo.tblOfferte ADD DocumentVersion VARCHAR(250);
|
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64)
--
-- Host: localhost Database: nationalfitnesschallenge1
-- ------------------------------------------------------
-- Server version 8.0.16
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHAR... |
<filename>blog.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : lun. 31 jan. 2022 à 12:12
-- Version du serveur : 10.4.19-MariaDB
-- Version de PHP : 8.0.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
#1 create database
CREATE DATABASE todo_items;
#2 connect to db
\c todo_items
|
<reponame>ddelgadoJS/BD-AuctionShop
EXEC SP_CREAR_USUARIO (ALIASv=>'wblonden0', NOMBREv=>'Wallache', APELLIDOSv=>'Blonden', DIRECCIONv=>'98 Wayridge Pass', CEDULAv=>19249480, CORREOv=>'<EMAIL>', CALIFICACIONv=>1, PASSWORDv=>'<PASSWORD>', NUMEROv=>'436-745-9263', DESCRIPCIONv=>'OFICINA', TIPOUSUARIOv=>'PARTICIPANTE');
E... |
CREATE TABLE reviews (
review_id serial PRIMARY KEY,
product_Id integer NOT NULL,
rating smallint,
date bigint NOT NULL,
summary varchar(60) NOT NULL,
body varchar(1000) NOT NULL,
recommend boolean NOT NULL DEFAULT FALSE,
reported boolean NOT NULL DEFAULT FALSE,
reviewer_name varchar... |
<reponame>musioks/smart-hotel<filename>hotel_hotel.sql
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 11, 2018 at 02:04 PM
-- Server version: 5.7.19
-- PHP Version: 7.1.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSA... |
<reponame>khandy21yo/aplus
DEFINE RECORD CDD$TOP.BA.BA_JOURNALH
DESCRIPTION IS /*Agency Journal Header*/.
BA_JOURNALH_CDD STRUCTURE.
/* Element =
Description = Billing Number */
BILLNUM DATATYPE IS TEXT SIZE IS 10.
/* Element = CUSTOMER
Descrip... |
INSERT INTO Artist (aid, name, country, age, gender) VALUES (1, '<NAME>', 'Iran', 40, 'M');
INSERT INTO Artist (aid, name, country, age, gender) VALUES (2, '<NAME>', 'Iran', 35, 'M');
INSERT INTO Artist (aid, name, country, age, gender) VALUES (3, '<NAME>', 'USA', 50, 'M');
INSERT INTO Artist (aid, name, country, age, ... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 16, 2021 at 09:10 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
CREATE TABLE codes (
code_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
date TEXT NOT NULL,
title TEXT NOT NULL,
description TEXT NOT NULL,
category TEXT NOT NULL,
content TEXT NOT NULL
); |
<gh_stars>1-10
/******************************************************************************
* This script should run against 'SitecoreCommerce9_Global' database to
* migrate data from Sitecore XC 9.1.* to 9.2.0
******************************************************************************/
-- All Commerce data is m... |
DROP TABLE student_profile;
|
<filename>SQL/createdb.sql
CREATE DATABASE `test_db ` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
--新建数据库'test_db', 字符集为'utf8' 排序为'utf8_general_ci'
|
<filename>src/test/resources/where8.test_5.sql
-- where8.test
--
-- execsql {
-- BEGIN;
-- CREATE TABLE t3(a INTEGER, b REAL, c TEXT);
-- CREATE TABLE t4(f INTEGER, g REAL, h TEXT);
-- INSERT INTO t3 VALUES('hills', NULL, 1415926535);
-- INSERT INTO t3 VALUES('and', 'of', NULL);
-- INSERT INTO ... |
ALTER TABLE pgl_ddl_deploy.set_configs
ADD COLUMN include_everything
BOOLEAN NOT NULL DEFAULT FALSE;
-- Now we have 3 configuration types
ALTER TABLE pgl_ddl_deploy.set_configs
DROP CONSTRAINT repset_tables_or_regex_inclusion;
-- Only allow one of them to be chosen
ALTER TABLE pgl_ddl_deploy.set_configs
ADD C... |
-- 2019-10-29T15:43:57.221Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_UOM (AD_Client_ID,AD_Org_ID,CostingPrecision,Created,CreatedBy,C_UOM_ID,Description,IsActive,IsDefault,Name,StdPrecision,UOMSymbol,Updated,UpdatedBy,X12DE355) VALUES (1000000,0,0,TO_TIMESTAMP('2019-10-29 16:43:57... |
DELETE FROM `spell_chain` WHERE `spell_id` IN (27168);
INSERT INTO `spell_chain` VALUES
(27168,20914,20911,5);
DELETE FROM `spell_chain` WHERE `spell_id` IN (27169);
INSERT INTO `spell_chain` VALUES
(27169,25899,25899,2);
|
UPDATE creature_template SET mechanic_immune_mask=617299803, scriptname='boss_freya' WHERE entry=32906;
|
/* proxysql user */
CREATE USER IF NOT EXISTS 'monitor'@'%' IDENTIFIED BY 'monitor';
/* mysql exporter user */
CREATE USER IF NOT EXISTS 'exporter'@'%' IDENTIFIED BY 'password' WITH MAX_USER_CONNECTIONS 3;
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO 'exporter'@'%';
FLUSH PRIVILEGES;
/* start replication */
C... |
/*
* Copyright 2015 herd contributors
*
* 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
<reponame>zero88/vertx-jooq-dsl<filename>integtest/src/test/resources/mysql_schema.sql
CREATE TABLE authors
(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(70) NOT NULL,
country VARCHAR(100) NOT NULL
);
CREATE TABLE books
(
id INT PRIMARY KEY AUTO_INCREMENT,
title ... |
<filename>docs/db/mysql_spring_boot_plus_2.0.sql
create database if not exists spring_boot_plus character set utf8mb4 COLLATE utf8mb4_general_ci;
use spring_boot_plus;
create table spring_boot_plus.foo_bar
(
id bigint not null comment 'ID'
primary key,
name varchar(20) not null comment... |
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 80012
Source Host : 127.0.0.1:3306
Source Schema : epay
Target Server Type : MySQL
Target Server Version : 80012
File Encoding : 65001
Date: 17/08/2019 12:57... |
-- Test: plperl 23
CREATE OR REPLACE FUNCTION perl_record() RETURNS record AS $$
return { f2 => 'hello', f1 => 1, f3 => 'world' };
$$ LANGUAGE plperl;
SELECT perl_record();
|
INSERT INTO e_request (id, request_type, partner_code, mobile_number, balance_before, balance_after, amount, creation_date, date_updated, status, reference_number, version)
VALUES (1234, 'Airtime Balance Enquiry', 'hot-recharge', '263774222382', 20.76, 20.76, 0.00, '2017-03-18 11:52:03', '2017-03-18 11:52:03', 'Success... |
<reponame>inform-health-informatics/try-emap
-- Demographics query
-- Created 2020-04-30
SELECT DISTINCT ON (
m.mrn)
m.mrn,
fname.value_as_string AS first_name,
mname.value_as_string AS middle_name,
lname.value_as_string AS last_name,
postcode.value_as_string AS home_postcode,
nhs.value_as_string AS nhs_... |
<reponame>opengauss-mirror/Yat<gh_stars>0
-- @testpoint: RENAME TO:修改索引名称为索引同义词名称
--创建表
DROP TABLE if EXISTS test_index_table_118 CASCADE;
create table test_index_table_118(
c_int int
) WITH (ORIENTATION = row) ;
--建索引
drop index if exists index_118_01;
create index index_118_01 on test_index_table_118(c_int);
select... |
<filename>src/main/resources/data.sql<gh_stars>0
CREATE TABLE autor (
id INT NOT NULL AUTO_INCREMENT,
nome VARCHAR,
nascimento DATE,
nacionalidade VARCHAR,
PRIMARY KEY (id)
);
INSERT INTO autor (nacionalidade, nascimento, nome) VALUES ('Brasileiro', to_date('01-09-1994', 'dd-mm-yyyy'), '<NAME>');
INSERT INTO... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 30, 2016 at 02:39 PM
-- Server version: 5.5.49-0ubuntu0.14.04.1
-- PHP Version: 5.6.20-1+deb.sury.org~trusty+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101... |
<reponame>faisal-kabir/talent_pro<filename>database/talent_pro.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 24, 2021 at 11:29 AM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTIO... |
CREATE TABLE [dbo].[ZamowieniaUslug] (
[ZamowienieIdU] INT IDENTITY (1, 1) NOT NULL,
[ModelId] INT NOT NULL,
[UslugaId] INT NOT NULL,
[CenaZamowienia] MONEY NOT NULL,
[DataZamowienia] DATE NOT NULL,
CONSTRAINT [PK_ZamowieniaUslug] PRIMARY KEY CLUSTERED ([ZamowienieIdU] ASC)... |
SELECT "Telco_1"."PACKAGE_NAME" AS "PACKAGE_NAME", SUM("Telco_1"."REVENUE_SMS_P1") AS "sum:REVENUE_SMS_P1:ok", CAST(EXTRACT(YEAR FROM "Telco_1"."RCHRG_AMT_EXP_DATE") AS BIGINT) AS "yr:RCHRG_AMT_EXP_DATE:ok" FROM "Telco_1" GROUP BY 1, 3;
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 05-05-2020 a las 00:06:20
-- Versión del servidor: 10.1.37-MariaDB
-- Versión de PHP: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 26, 2020 at 02:50 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
-- MySQL dump 10.16 Distrib 10.1.31-MariaDB, for Win32 (AMD64)
--
-- Host: localhost Database: proyekapp
-- ------------------------------------------------------
-- Server version 10.1.31-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... |
SELECT tag_id, taggable_id, created_at FROM taggings WHERE taggable_type = 'User' AND context = 'following_tags'
|
INSERT INTO AccountKeys (
accountId,
accountKey,
createDate,
updateDate)
VALUES (
@accountId,
@accountKey,
datetime('now'),
datetime('now')
);
SELECT last_insert_rowid(); |
-- ITEMIDs used:
-- CAREVUE
-- 723 as GCSVerbal
-- 454 as GCSMotor
-- 184 as GCSEyes
-- METAVISION
-- 223900 GCS - Verbal Response
-- 223901 GCS - Motor Response
-- 220739 GCS - Eye Opening
-- The code combines the ITEMIDs into the carevue itemids, then pivots those
-- So 223900 is changed to 723, ... |
<reponame>DavidWiseman/WiseSoftScripts
/*
Created By: <NAME>
Website: http://www.wisesoft.co.uk
Description:
Script databases for attach. Run this script before detaching your databases to generate an attach script for each database.
Also checks db ownership chaining, trustworthy and broker enabled settings wh... |
--======================================================
-- Usage: Lib: MoneyToWords in German
-- Notes: It DOES NOT support negative number.
-- Please concat 'negative word' into the result in that case
-- References:
-- https://www.fluentin3months.com/german-numbers/
-- History:
-- Date Author Description
-- 202... |
-- 2017-12-21T14:32:35.571
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2017-12-21 14:32:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=552556
;
-- 2017-12-21T14:37:38.909
-- I forgot to set the DICTIONARY_ID_COMMENTS System Co... |
insert into donations (donor, donee, amount, donation_date, donation_date_precision, donation_date_basis, cause_area, donor_cause_area_url, url, notes, affected_countries, affected_regions) values
('Public Welfare Foundation','Pretrial Justice Institute',10000,'2019-01-01','year','donation log','Customer/special op... |
proc $SC_$CPU_time_integration
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Purpose: The purpose of this procedure is to perform Build Integration Testing of Time Services.
;
; Note: This test only tests the time server functions
;
; History:
;
; 18AP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.