sql stringlengths 6 1.05M |
|---|
-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 05, 2018 at 05:11 AM
-- Server version: 5.6.24
-- PHP Version: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
<gh_stars>0
USE [master]
GO
/****** Object: Login [SoloContactsApp] ******/
IF EXISTS(SELECT * FROM sys.sql_logins WHERE name = 'SoloContactsApp')
BEGIN
DROP LOGIN [SoloContactsApp]
END
GO
CREATE LOGIN [SoloContactsApp] WITH PASSWORD=N'<PASSWORD>', DEFAULT_DATABASE=[SoloContacts], DEFAULT_LANGUAGE=[us_english],... |
<gh_stars>0
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `scoreboard` AS select `users`.`login` AS `login`,sum(`tasks`.`cost`) AS `result` from ((`accepted_requests` left join `tasks` on((`tasks`.`id` = `accepted_requests`.`task_id`))) left join `users` on((`users`.`id` = `accepted_re... |
INSERT INTO burgers (burger_name)
VALUES ('Turkey Cheeseburger'),
('California Burger'),
('Tofu Burger');
INSERT INTO burgers (burger_name, devoured)
VALUES ('Cheeseburger', 1);
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 18 Nov 2021 pada 16.31
-- Versi server: 10.4.21-MariaDB
-- Versi PHP: 8.0.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
INSERT INTO public.users (id, firstname, lastname, middlename, abhyasiid, email, password, phoneno, address, passwordmismatch, passwordresettoken, active, remember_token, created_at, updated_at) VALUES (1, 'Poovarasan', null, 'Vasudevan', 'inksad408', '<EMAIL>', '<PASSWORD>', '9789356631', '22/30 Arunachala Nagar Secon... |
CREATE TABLE [dbo].[TakeoutMenu]
(
[Id] INT IDENTITY(10000,1) NOT NULL,
[LaunchCenterId] [int] NOT NULL,
[SKU] VARCHAR(36) NOT NULL,
[Name] NVARCHAR(30)
CONSTRAINT [PK_TakeoutMenu] PRIMARY KEY CLUSTERED
(
[Id] ASC
)
)
|
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = ecmdb, pg_catalog;
/* inserisco obiettivo regionale n_0 */
INSERT INTO obiettivo (id, categoria, codice_cogeaps, nazionale, nome, versi... |
BEGIN TRANSACTION
insert into department ( dept_no, dept_name, location)
values ( 'D7', 'Research', 'Boston')
SAVE TRANSACTION a
insert into department ( dept_no, dept_name)
values ( 'D8', 'Research')
SAVE TRANSACTION b
insert into department ( dept_no, dept_name)
values ( 'D9', 'Management')
ROLLBACK TRANS... |
<reponame>svetasmirnova/mysqlcookbook
# multicolseq.sql
DROP TABLE IF EXISTS multicolseq;
CREATE TABLE multicolseq
(
c CHAR(10) NOT NULL,
i INT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY (i,c)
)
;
INSERT INTO multicolseq (c) VALUES('a'),('b'),('a'),('c'),('b'),('b');
SELECT * FROM multicolseq ORDER BY c, i;... |
DROP TABLE IF EXISTS "implementers"; |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table poll (
id bigserial not null,
score integer,
due_date timestamp,
constraint pk_poll primary key (id))
;
create tab... |
<filename>postgresql/curso/script_06_carga_em_massa.sql
-- exportando com COPY
copy municipios to 'd:\temp\backup.txt';
-- importando com COPY
drop table if exists cidades;
create table if not exists cidades as
select *
from municipios
where false;
copy cidades from 'd:\temp\backup.txt';
-- depois de importad... |
/*
The first step is to create a table which defines a graph.
The id attribute defines the current node. The neighbor attribute contains the id of a node reachable from
the current node. The arc cost field contains the cost of transitioning from the current node to the
neighboring node.
*/
CREATE TABLE NODES (
ID ... |
insert into alquiler(id,nombre,numero,fecha_pago,estado_pago,letra_local) values(1099371662,'andrés','3162878196',now(),'pendiente','a'); |
DROP TABLE IF EXISTS advertisements;
DROP TABLE IF EXISTS carcases;
DROP TABLE IF EXISTS brands;
DROP TABLE IF EXISTS users_roles;
DROP TABLE IF EXISTS roles;
DROP TABLE IF EXISTS users;
CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
name VARCHAR(50),
login VARCHAR(50),
password VARCHAR(50),... |
<reponame>piotrmsc/compass<filename>components/schema-migrator/migrations/director/202003041248_allow_tenant_deletion.up.sql
ALTER TABLE api_definitions
DROP CONSTRAINT api_definitions_tenant_id_fkey1,
ADD CONSTRAINT api_definitions_tenant_constraint
FOREIGN KEY (tenant_id)
REFERENCES business_tenant_mappings(i... |
<gh_stars>1-10
--marginal values of timestamptz/datetimetz type
--1. marginal values: timestamptz argument
--select weekday(timestamptz'00:00:00 01/01');
select if(weekday(timestamptz'00:00:00 01/01/2014')=weekday(timestampltz'00:00:00 01/01/2014'),'ok','nok');
select weekday(timestamptz'03:14:07 1/19/2038');
select... |
-- @testpoint:opengauss关键字cursor_name(非保留),作为数据库名
--关键字不带引号-成功
drop database if exists cursor_name;
create database cursor_name;
drop database cursor_name;
--关键字带双引号-成功
drop database if exists "cursor_name";
create database "cursor_name";
drop database "cursor_name";
--关键字带单引号-合理报错
drop database if exists 'cursor_n... |
<reponame>zulham724/ptkonline<filename>database/db.sql
-- Adminer 4.7.8 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `answers`;
CREATE TABLE `answers` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREME... |
<filename>Daves.DeepDateUpdater.IntegrationTests.Database/Tables/Provinces.sql
CREATE TABLE [dbo].[Provinces] (
[ID] INT IDENTITY (1, 1) NOT NULL,
[NationID] INT NOT NULL,
[Name] NVARCHAR (100) NOT NULL,
[Motto] NVARCHAR (200) NULL,
... |
DROP DATABASE IF EXISTS bamazonDB;
CREATE DATABASE bamazonDB;
USE bamazonDB;
CREATE TABLE products (
id INT NOT NULL AUTO_INCREMENT,
product_name VARCHAR(45) NOT NULL,
department_name VARCHAR(45) NOT NULL,
price INTEGER(20) NOT NULL,
stock_quantity INTEGER(20) NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO p... |
<filename>SQLScripts/AlterView/AlterView_voluntario.sql
USE [gestor_ongd_sps_prod]
GO
/****** Object: View [dbo].[voluntario] Script Date: 10/06/2017 18:22:10 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[voluntario]
AS
SELECT dbo.personas.id, dbo.personas.nombre, dbo.personas.a... |
<reponame>fatdba/oracle-script-lib
@@sesswaitu '%'
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 05, 2019 at 10:42 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 5.6.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
-- SQL script that lists all databases in the database.
SHOW DATABASES;
|
<gh_stars>0
-- Queries for fetching users who mentioned a particular word in text or links
select u.id as user_id, u.user_name, tw.email, tw.handle, 'video description' as found_in, t.text
from pepo_api_user_staging.users u, video_details v,
pepo_api_twitter_staging.twitter_users tw,
( select id, text from texts where... |
INSERT INTO eg_feature(ID,NAME,DESCRIPTION,MODULE) VALUES (NEXTVAL('seq_eg_feature'),'Sewerage Tax Reports','Sewerage Tax ALL Reports',(select id from eg_module where name = 'Sewerage Tax Management'));
INSERT INTO eg_feature_action (ACTION, FEATURE) VALUES ((select id FROM eg_action WHERE name = 'SewerageNoOfApplica... |
<gh_stars>1-10
MATCH p=(:TYPE {type:'schema:CodeRepository'})-[:isType]-(n:OBJECT)-[]-(:ANNOTATION)-[]-(o:OBJECT)-[:isType]-(:TYPE {type:'schema:CodeRepository'})
WHERE o.name CONTAINS("http") AND
o.name CONTAINS("ropensci") AND
n <> o AND
NOT n.name CONTAINS('ropensci')
RETUR... |
-- file:tstypes.sql ln:228 expect:true
SELECT array_to_tsvector(ARRAY['foo','bar','baz','bar'])
|
<gh_stars>1-10
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.6
-- Dumped by pg_dump version 10.10
-- Started on 2019-10-15 13:53:59 CDT
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = ... |
CREATE OR REPLACE PROCEDURE GetPropPersonSal
(AW_PROPOSAL_NUMBER IN OSP$BUDGET_PERIODS.PROPOSAL_NUMBER%TYPE,
AW_VERSION_NUMBER IN OSP$BUDGET.VERSION_NUMBER%TYPE,
AW_PERSONID IN OSP$PERSON.PERSON_ID%TYPE,
cur_generic IN OUT result_sets.cur_generic) is
begin
open cur_generic for
SELECT decode(sum(BD.... |
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: 172.16.31.10 Database: softwaredependency
-- ------------------------------------------------------
-- Server version 5.5.55-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=... |
-- Stores location records --
CREATE TABLE location
(
device_id INTEGER PRIMARY KEY,
employee_id TEXT,
pos_x REAL,
pos_y REAL,
pos_z REAL,
timestamp datatime default current_timestamp
);
-- Stores wifi access points information --
CREATE TABLE access_points
(
mac_addr TEXT PRIMARY KEY,
pos_x REAL,
po... |
<filename>produtos_nome.sql<gh_stars>0
insert into produtos_nome (nome) values
('Detergente'),
('Sabonete'),
('Biscoito'),
('Macarrão'),
('<NAME>'),
('<NAME>'),
('Refresco em pó'),
('Arroz tipo 1'),
('Feijão carioca'),
('Feijão preto'),
('Sabão em Pó'),
('Sabão em barra'),
('Esponja'),
('Leite Integral'),
('Leite desna... |
<filename>tests/queries/039-double-lt-2.sql
select printf('%.2f', double_6) from nulls2 where double_6 < 99.0 order by double_6 desc limit 1
49.50
|
ALTER TABLE releases
ALTER COLUMN link SET NOT NULL
|
<reponame>rashmi8105/Synapse
SET @emtid := (SELECT id FROM email_template WHERE email_key="Academic_Update_Reminder_to_Faculty");
UPDATE `email_template_lang`
SET
`body` = '<html>
<head>
<style>body {
background: none repeat scroll 0 0 #f4f4f4;
... |
USE [master]
ALTER DATABASE [Wordle] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
go
DROP DATABASE [Wordle]
GO
CREATE DATABASE Wordle;
GO
USE Wordle
GO
DROP TABLE IF EXISTS #Stage
CREATE TABLE #Stage
(
Word char(5) null
)
DROP TABLE IF EXISTS dbo.Solution
DROP TABLE IF EXISTS dbo.Available
DROP SEQUENCE IF EXISTS dbo... |
create table #prefix#polls (
id int not null auto_increment primary key,
title varchar(48) not null,
question varchar(140) not null,
created datetime not null,
creator int not null,
edited datetime not null,
editor int not null,
allowed int not null default 1,
required int not null default 1,
votable boolean ... |
CREATE OR REPLACE FUNCTION Decrypt_Card(
OUT CardNumber text,
OUT CardExpiryMonth integer,
OUT CardExpiryYear integer,
OUT CardHolderName text,
OUT CardIssueNumber integer,
OUT CardStartMonth integer,
OUT CardStartYear integer,
_CardKey text
) RETURNS RECORD AS $BODY$
DECLARE
_CardKeyHash bytea;
_CardJSON text;
_CardDa... |
-- Calculated columns for MSSQL Frac Schedules
ALTER TABLE dbo.frac_schedule
ADD days_to_fracstartdate AS datediff (day, getdate (),[fracstartdate]);
ALTER TABLE dbo.frac_schedule
ADD days_to_fracenddate AS datediff (day, getdate (),[fracenddate]);
ALTER TABLE dbo.frac_schedule
ADD status AS CASE WHEN dat... |
<filename>shellscript/plant.sql<gh_stars>0
USE mangkudmap;
SET NAMES utf8;
CREATE TABLE `plant` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`plant_name` text COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO `plant` VALUES(NULL, '... |
<reponame>NeikoGrozev/CSharpDatabase
--=====================================================--
--Problem 1. Database Design--
--=====================================================--
CREATE DATABASE Airport
USE Airport
CREATE TABLE Planes(
Id INT PRIMARY KEY IDENTITY,
[Name] VARCHAR(30) NOT NULL,
Seats INT NOT N... |
<filename>etls/etl_licencia.sql
CREATE OR REPLACE FUNCTION etl_licencia()
RETURNS character varying AS
$BODY$
DECLARE
/*
Resumen: destinado a migrar los datos de la bd de origen a la nueva bd.
Se encarga de extraer los datos de la tabla lotus_usr_exist_datos_exp_lic y los inserta en la tabla tbl_licenc... |
alter table "public"."transactions" add column "sequence" serial
not null;
|
-- wal2.test
--
-- execsql {
-- PRAGMA journal_mode = WAL;
-- PRAGMA locking_mode = exclusive;
-- BEGIN;
-- CREATE TABLE t1(x);
-- INSERT INTO t1 VALUES('Chico');
-- INSERT INTO t1 VALUES('Harpo');
-- COMMIT;
-- }
PRAGMA journal_mode = WAL;
PRAGMA locking_mode = exclusive;
BEGIN;
CREA... |
SELECT @@VERSION
|
<reponame>sgalarza419/employee_management_system
DROP DATABASE IF EXISTS employees;
CREATE DATABASE employees;
USE employees;
CREATE TABLE department (
-- CREATE id, name COLUMNS
id INT auto_increment,
department VARCHAR(30),
PRIMARY KEY (id)
);
CREATE TABLE role (
-- CREATE id AS INTERGER,
id INT auto_i... |
-- 2019-02-20T09:31:43.747
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process (AD_Client_ID,IsActive,Created,CreatedBy,Updated,IsReport,IsDirectPrint,AccessLevel,ShowHelp,IsBetaFunctionality,IsServerProcess,CopyFromProcess,UpdatedBy,AD_Process_ID,Value,AllowProcessReRun,IsUseBPartn... |
<reponame>appNG/appng
alter table property add prop_type varchar(16);
update property set prop_type='TEXT';
update property set prop_type='MULTILINE' where length(clobValue) > 0;
update property set prop_type='BOOLEAN' where lower(defaultValue) in('true','false');
update property set prop_type='DECIMAL' where defaultV... |
<filename>DataStorage/Sql/ExperimentDB/25_select_heleen_exps.sql
SELECT experiments.experiment_description
FROM experiments, staff_assignments, researchers
WHERE experiments.experiment_id = staff_assignments.experiment_id AND
staff_assignments.researcher_id = researchers.researcher_id AND
re... |
<gh_stars>0
CREATE TABLE user (
id INT PRIMARY KEY AUTO_INCREMENT,
email VARCHAR(255) UNIQUE NOT NULL,
token VARCHAR(20) DEFAULT NULL,
verified BOOL DEFAULT FALSE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP()
); |
/* Replace with your SQL commands */
ALTER TABLE "water"."picklist_items" ADD COLUMN IF NOT EXISTS hidden BOOLEAN DEFAULT false;
ALTER TABLE "water"."picklist_items" DROP CONSTRAINT IF EXISTS uniq_list_id;
CREATE UNIQUE INDEX uniq_list_id ON "water"."picklist_items" (picklist_id, LOWER(id));
ALTER TABLE "water"."... |
<filename>Create_Schemas.sql
USE DATABASE DEV_BRONZE_DB;
Create or Replace Schema LEGACY_DW COMMENT = 'Schema for LEGACY_DW related data';
Create or Replace Schema RETAIL_DATA COMMENT = 'Schema for RETAIL_DATA related data';
Create or Replace Schema FINANCE_DATA COMMENT = 'Schema for FINANCE_DATA relate... |
<reponame>tyrue/huk_server
/*
SQLyog Community v12.09 (64 bit)
MySQL - 10.1.10-MariaDB : Database - supremeplay
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!400... |
CREATE INDEX gitserver_repos_last_error_idx ON gitserver_repos(last_error) WHERE last_error IS NOT NULL;
|
# Host: localhost (Version: 5.5.47)
# Date: 2016-05-31 19:52:51
# Generator: MySQL-Front 5.3 (Build 4.234)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "zx_users"
#
DROP TABLE IF EXISTS `zx_users`;
CREATE TABLE `zx_users` (
`uid` mediumint(9) NOT NULL AUTO_INCREMENT,
`fatherid` mediumint(9) DEFAULT NUL... |
<reponame>xXJhonXx27/Version1.0
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 05-04-2018 a las 15:31:42
-- Versión del servidor: 5.7.19
-- Versión de PHP: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTIO... |
<reponame>Warglaive/Database-Basics-MS-SQL-May-2018
SELECT m.Manufacturer, m.Model, COUNT(o.Id) AS [TimesOrdered]
FROM Vehicles AS v
LEFT JOIN Models AS m
ON m.Id = v.ModelId
LEFT JOIN Orders AS o
ON o.VehicleId = v.Id
GROUP BY m.Manufacturer, m.Model
ORDER BY [TimesOrdered] DESC, m.Manufacturer DESC, m.Model |
<reponame>shahnish009/SQLqueries_SQL
SELECT c.name, telephone# FROM customers c, purchases p
WHERE c.cid = p.cid AND total_price >= 100
AND to_char(ptime, 'DD-MON-YY') LIKE '%OCT-17'
/
|
<reponame>FlameInTheDark/rebot
create table guilds
(
id serial primary key,
discord_id varchar not null unique,
command_prefix varchar not null default '!',
created_at timestamp not null default now()
); |
DROP TABLE IF EXISTS BONUS; |
<filename>image/etc/pgsql/0110_base_vino_schema.sql
\o /dev/null
\c vino
\set VERBOSITY terse
set client_min_messages=WARNING;
select createSchema('vino');
do $$
declare version abacus.version_information;
declare schemaName text;
declare tableName text;
begin
tableName := 'SERVICE_REGISTRATION';
... |
ALTER TABLE IF EXISTS security_resources
DROP COLUMN IF EXISTS available_versions;
ALTER TABLE IF EXISTS latest_security_resources
DROP COLUMN IF EXISTS available_versions;
|
<gh_stars>10-100
select * from {sc}.relationship |
<reponame>huq-industries/carto-spatial-extension
----------------------------
-- Copyright (C) 2021 CARTO
----------------------------
USE role ACCOUNTADMIN;
USE @@SF_DATABASE@@;
CREATE SHARE IF NOT EXISTS @@SF_SHARE@@;
grant usage on database @@SF_DATABASE@@ to share @@SF_SHARE@@;
grant usage on schema @@SF_DATABASE... |
<reponame>atiqueahmedziad/addons-server
DELETE FROM groups_users WHERE group_id IN (SELECT id FROM groups WHERE name = "Limited Reviewers");
DELETE FROM groups WHERE name = "Limited Reviewers";
|
drop table if exists t,t1,t2;
drop table if exists t__p__p0,t__p__p1;
CREATE TABLE t(i bigint, j SMALLINT, k NUMERIC(5,0),l FLOAT,m time,n char(200)) PARTITION BY LIST(i) (
partition p0 values in (1, 2, 3),
partition p1 values in (4, 5, 6),
partition p2 values in (7, 8, 9),
partition p3 values in (10,... |
-- CreateTable
CREATE TABLE "Student" (
"id" SERIAL NOT NULL,
"firstName" TEXT NOT NULL,
"lastName" TEXT NOT NULL,
CONSTRAINT "Student_pkey" PRIMARY KEY ("id")
);
|
<filename>data/Dump20181102/portalweb_usuario.sql<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: portalweb
-- ------------------------------------------------------
-- Server version 5.7.21-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!4... |
<filename>db/seeds.sql
USE humanResource_db;
INSERT INTO department (name)
VALUES ("Sales")
, ("Receiving")
, ("Engineering")
, ("Accounting")
, ("Customer Service")
;
INSERT INTO role (title, salary, department_id)
VALUES
("Senior Consultant", 75000, (SELECT id FROM... |
<reponame>emeraldjava/bhaa-wordpress-plugin
-- bhaaie_wp 6599
select
l2e.p2p_from as league,
leaguetype.meta_value as leaguetype,
event.ID as event,
event.post_title as eventname,
event.post_date as eventdate,
race.ID as race,
racetype.meta_value as racetype,
racedistance.meta_value as distance,
raceunit.meta_value as ... |
<gh_stars>1-10
USE [Kama.Mefa.Azmoon]
GO
IF EXISTS(SELECT 1 FROM sys.procedures WHERE [object_id] = OBJECT_ID('pbl.spGetDocumentStatistics'))
DROP PROCEDURE pbl.spGetDocumentStatistics
GO
CREATE PROCEDURE pbl.spGetDocumentStatistics
@AUserPositionID UNIQUEIDENTIFIER
WITH ENCRYPTION
AS
BEGIN
SET NOCOUNT ON;
SET X... |
<reponame>colinnewell/pcap2mysql-log<filename>test/sql/003-numeric-types.sql
USE demo;
CREATE TABLE dbtypes (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
tiny tinyint,
med MEDIUMINT,
small smallint,
basic int,
big bigint,
utiny tinyint unsigned,
umed MEDIUMINT unsigned,
usmall smalli... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50553
Source Host : localhost:3306
Source Database : qmyx_xcx
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2018-08-02 10:02:06
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... |
CREATE TABLE `domain_date_provider_ip_dkim` (
`domain` VARCHAR(255) NOT NULL,
`date` DATE NOT NULL,
`provider` VARCHAR(255) NOT NULL,
`ip` VARCHAR(255) NOT NULL,
`dkim_domain` VARCHAR(255) NOT NULL,
`dkim_selector` VARCHAR(255) NOT NULL,
`dkim_pass` BIGINT NOT NULL,
`dkim_fail` BIGINT NOT NULL,
PRIMA... |
INSERT INTO ea_settings (name, value) VALUES
('google_analytics_code', ''),
('customer_notifications', '1'),
('date_format', 'DMY'),
('require_captcha', '1');
|
<reponame>eniware-org/org.eniware.central
DELETE FROM public.plv8_modules WHERE module = 'math/calculateAverageOverHours';
INSERT INTO public.plv8_modules (module, autoload, source) VALUES ('math/calculateAverageOverHours', FALSE,
$FUNCTION$"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});... |
ALTER TABLE eventlog MODIFY COLUMN RemoteAddress VARCHAR(4096);
ALTER TABLE eventlog MODIFY COLUMN UserId VARCHAR(4096);
|
<reponame>xakml/IBatisNet
DROP TABLE IF EXISTS Accounts;
DROP TABLE IF EXISTS Orders;
DROP TABLE IF EXISTS LineItems; |
<reponame>FlashSheridan/daml
-- Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
---------------------------------------------------------------------------------------------------
-- V6: External Ledger Offset
--
-- This schema vers... |
Create Table IF NOT EXISTS Users_Source ( UserId int primary key,
UserGuid varchar(120),
PasswordSalt varchar(120),
Password varchar(240),
PasswordEncryption varchar(120),
PasswordResetFlag bit,
PasswordModifiedDate datetime(3)
);
INSERT IGNORE INTO Users_Source
... |
ALTER TABLE tokenpool DROP COLUMN decimals;
|
-- sql/05-distributions.sql SQL Migration
SET client_min_messages TO warning;
BEGIN;
CREATE TYPE relstatus AS ENUM(
'stable',
'testing',
'unstable'
);
CREATE TABLE distributions (
name TERM NOT NULL,
version SEMVER NOT NULL,
abstract TEXT NOT NULL DEFAULT '',... |
<filename>scripts/create_sfe3_authors.sql
/*
create_trans_series_table.sql is a MySQL script intended to
create a table of transliterated series names
Version: $Revision: 15 $
Date: $Date: 2019-03-05 16:32:38 -0400 (Tue, 31 Oct 2017) $
(C) COPYRIGHT 2019 Ahasuerus
ALL RIGHTS RESERVED
... |
<filename>corehq/sql_proxy_accessors/sql_templates/get_modified_case_ids.sql
DROP FUNCTION IF EXISTS get_modified_case_ids(
TEXT, TEXT[], TIMESTAMP WITH TIME ZONE, TEXT);
CREATE FUNCTION get_modified_case_ids(
domain_name TEXT,
case_ids TEXT[],
last_sync_date TIMESTAMP WITH TIME ZONE,
last_sync_id ... |
<gh_stars>0
FROM mysql:5.7.33
ENV MYSQL_ROOT_PASSWORD="<PASSWORD>"
ENV MYSQL_PASSWORD="<PASSWORD>"
ENV MYSQL_USER="dbuser"
ENV MYSQL_DATABASE="dbschema"
EXPOSE 3306
|
DROP TABLE REAP_FACILITY.CONFIG;
CREATE TABLE REAP_FACILITY.CONFIG
(
ID VARCHAR(50) NOT NULL PRIMARY KEY,
SYSTEM_CODE VARCHAR(100),
PROFILE VARCHAR(100),
LABEL VARCHAR(100),
NAME VARCHAR(1024),
VALUE VARCHAR(1024),
REMARK VARCHAR(500)
);
DROP TABLE REAP_FACILITY.ROUTE;
C... |
CREATE TABLE [Production].[ProductListPriceHistory]
(
[ProductID] INT NOT NULL,
[StartDate] DATETIME NOT NULL,
[EndDate] DATETIME NULL,
[ListPrice] MONEY NOT NULL,
[RowStatus] TINYINT NOT NULL,
[CreatedBy] UNIQUEIDENTIFIER NOT NULL,
[ModifiedBy] UNIQUEIDENTIFIER NO... |
BEGIN TRANSACTION;
INSERT INTO `fortune`(`fortune`) VALUES("A beautiful, smart, and loving person will be coming into your life.");
INSERT INTO `fortune`(`fortune`) VALUES("A dubious friend may be an enemy in camouflage.");
INSERT INTO `fortune`(`fortune`) VALUES("A feather in the hand is better than a bird in the air... |
<reponame>emmaus-5h/5Hin2-webshop-Nino-Sem
--
-- create tables
--
CREATE TABLE products (
id INTEGER PRIMARY KEY autoincrement,
artikelcode VARCHAR(15),
name VARCHAR(255),
description TEXT,
price NUMERIC(10, 2),
adviesprijs NUMERIC (10, 2),
gewicht VARCHAR (255),
voorraad_id INTEGER,
afmetingen TEXT,... |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 05-Abr-2022 às 16:12
-- Versão do servidor: 10.3.16-MariaDB
-- versão do PHP: 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
<gh_stars>0
/*
SQLyog Ultimate v12.2.1 (64 bit)
MySQL - 5.5.47-0ubuntu0.14.04.1 : Database - flyerglobal
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*... |
<gh_stars>1-10
CREATE TABLE users (
id text not null CHECK (id <> ''::text),
provider text not null CHECK (provider <> ''::text),
uid text not null CHECK (uid <> ''::text),
email text,
UNIQUE (uid, provider),
CONSTRAINT user_pk PRIMARY KEY (id)
);
CREATE TABLE webhooks (
id text not null CHECK (id <> '':... |
<gh_stars>1-10
ALTER TABLE auth_log
ALTER ip_address TYPE VARCHAR(50);
|
SET search_path TO bgachievements;
INSERT INTO hello(message) VALUES ('Message number one'), ('Message number two'), ('Message number three');
|
<filename>UPdb.sql
-----------------------------------------------------------
----------------------
-- cleaning operation
DROP TRIGGER delEventStatTRIGGER;
DROP TRIGGER delItemRowTRIGGER;
DROP TRIGGER delVehicleRowTRIGGER;
DROP TRIGGER delCentreRowTRIGGER;
DROP TRIGGER delPastShipmentStatTRIGGER;
DROP TRIGGER... |
<gh_stars>1-10
DROP DATABASE IF EXISTS covidUser_db;
CREATE DATABASE covidUser_db; |
-- The hash index is too slow to create
CREATE INDEX badges_user_id_idx on Badges USING btree (UserId)
WITH (FILLFACTOR = 100);
-- The hash index is too slow to create
CREATE INDEX badges_name_idx on Badges USING btree (Name)
WITH (FILLFACTOR = 100);
CREATE INDEX badges_date_idx on Badges USING btree (Dat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.