sql stringlengths 6 1.05M |
|---|
<filename>database/FLSTest/2 alter/DBUpdate_v1.9.26.sql
USE [FLSTest]
GO
PRINT 'Update SystemVersion Information'
INSERT INTO [dbo].[SystemVersion]
([VersionId]
,[MajorVersion]
,[MinorVersion]
,[BuildVersion]
,[RevisionVersion]
,[UpgradeFromVersion]
... |
<reponame>xhafan/emailmaker
use master;
DECLARE @dbname nvarchar(128)
SET @dbname = N'EmailMakerTest'
IF (EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE ('[' + name + ']' = @dbname OR name = @dbname)))
begin
ALTER DATABASE EmailMakerTest
SET Single_USER
WITH ROLLBACK IMMEDIATE;
drop database EmailMakerTe... |
<gh_stars>1-10
USE asterisk;
INSERT INTO trunks (trunkid, name, tech, keepcid, failscript, dialoutprefix, channelid, disabled)
VALUES ('2', 'TCI', 'sip', 'off', '', '', 'TCI', 'off');
INSERT INTO sip (id, keyword, data, flags)
VALUES ('tr-peer-2', 'account', 'TCI', '2');
INSERT INTO sip (id, keyword, data, flags)
VALU... |
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 15, 2019 at 08:43
-- Server version: 10.1.41-MariaDB-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @... |
<filename>db_archive/sql_archive/1636__recreate_table_sa_virta_otp_korkeakouluhaut_hakijat_tutkinnot.sql
-- Korkeakouluhakijoiden OID Tutkinnot Virrasta
IF EXISTS (
select * from INFORMATION_SCHEMA.TABLES
where TABLE_SCHEMA='sa' and TABLE_NAME='sa_virta_otp_korkeakouluhaut_hakijat_tutkinnot'
) BEGIN
DROP TABLE sa.... |
create view "postgres"._airbyte_test_normalization."dedup_cdc_excluded_ab4__dbt_tmp" as (
-- SQL model to prepare for deduplicating records based on the hash record column
select
*,
row_number() over (
partition by _airbyte_dedup_cdc_excluded_hashid
order by _airbyte_emitted_at asc
) as _airbyte_r... |
<gh_stars>1-10
create or replace package body file_status_data_api
as
--------------------------------------------------------------------------------
procedure insert_row (
i_frd_id in file_raw_data.frd_id%type,
i_filename in file_raw_data.filename%type,
i_filesize in file_raw_data.files... |
INSERT INTO `cnarea_2020`
(`level`, `parent_code`, `area_code`, `zip_code`, `city_code`, `name`, `short_name`, `merger_name`, `pinyin`, `lng`, `lat`)
VALUES
(0, 0, 100000000000, 000000, '', '中国', '中国', '中国', 'ZHONGGUO', 0.000000, 0.000000); |
<filename>create.sql
-- --------------------------------------------------------
-- 主机: 192.168.95.233
-- 服务器版本: 5.1.73 - Source distribution
-- 服务器操作系统: redhat-linux-gnu
-- HeidiSQL 版本: 9.5.0.5196
-- --------------------------------... |
DELIMITER /
INSERT INTO KRCR_PARM_T (NMSPC_CD, CMPNT_CD, PARM_NM, OBJ_ID, VER_NBR, PARM_TYP_CD, VAL, PARM_DESC_TXT, EVAL_OPRTR_CD, APPL_ID)
VALUES ('KC-B', 'Document', 'SUBCONTRACTOR_DIRECT_GT_25K', UUID(), 1, 'CONFG', '420620', 'Cost Element used to account for subcontract direct funds on budget (NIH Only) for subcont... |
LOAD DATA INFILE 'C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/newcounties.csv'
INTO TABLE county
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS; |
<gh_stars>0
CREATE TABLE IF NOT EXISTS users (
userId int(11) NOT NULL AUTO_INCREMENT,
username varchar(60) NOT NULL,
password nvarchar(250) DEFAULT NULL,
loginMethod varchar(3) DEFAULT NULL,
isActive bit(1) DEFAULT b'1',
firstName nvarchar(150) DEFAULT NULL,
lastName nvarchar(150) DEFAULT NULL,
userTok... |
version https://git-lfs.github.com/spec/v1
oid sha256:9f5ca3f75c069c931af1588338a4d21f433bd2290a73d77f41de10ac04bd5f74
size 6791
|
<gh_stars>0
DROP DATABASE IF EXISTS `gtfs-sql`;
SET GLOBAL local_infile = 1;
CREATE DATABASE IF NOT EXISTS `gtfs-sql`;
USE `gtfs-sql`;
DROP TABLE IF EXISTS AGENCY;
CREATE TABLE AGENCY (`agency_id` VARCHAR(200),
`agency_name` VARCHAR(200),
`agency_url` VARCHAR(200),
`agency_timezone` VA... |
DROP DATABASE IF EXISTS test_01191;
CREATE DATABASE test_01191 ENGINE=Atomic;
CREATE TABLE test_01191._ (n UInt64, s String) ENGINE = Memory();
CREATE DICTIONARY test_01191.dict (n UInt64, s String)
PRIMARY KEY n
LAYOUT(DIRECT())
SOURCE(CLICKHOUSE(HOST 'localhost' PORT tcpPort() USER 'default' TABLE '_' DB 'test_0119... |
DROP TABLE IF EXISTS recentsearches; |
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `mxgapi_access` (
`id` int(11) NOT NULL,
`host` varchar(255) NOT NULL,
`user_agent` varchar(255) NOT NULL,
`protocol` varchar(255) NOT NULL,
`status` varchar(255) NO... |
<reponame>yashpatil/GTAS
-- ----------------------------
-- Roles
-- ----------------------------
INSERT INTO `role` VALUES ('1', 'Admin');
INSERT INTO `role` VALUES ('2', 'Manage Queries');
INSERT INTO `role` VALUES ('3', 'View Passenger');
INSERT INTO `role` VALUES ('4', 'Manage Watch List');
INSERT INTO `role` VALUE... |
/* Replace with your SQL commands */
CREATE TABLE `seasons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`status` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `signups` (
`time` datetime NOT NULL,
`steamid` varchar(25... |
<gh_stars>0
CREATE TABLE "guild_settings" (
"guild" BIGINT PRIMARY KEY,
"prefix" TEXT
);
|
-- Write your migrate up statements here
ALTER TABLE event_role_signups RENAME TO event_role_signups_bak;
DROP TRIGGER update_event_role_signups_updated_at ON event_role_signups;
CREATE TABLE event_role_signups (
event_role_signup_id SERIAL,
PRIMARY KEY (event_role_signup_id),
guild_id CHAR(20),
event... |
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Creato il: Nov 07, 2016 alle 21:37
-- Versione del server: 5.5.42
-- Versione PHP: 7.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... |
<filename>Querys/BibliotecaDB/dbo.Usuarios.sql
CREATE TABLE [dbo].[Usuarios] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Nome] VARCHAR (100) NOT NULL,
[Login] VARCHAR (50) NOT NULL,
[Senha] VARCHAR (50) NOT NULL,
[Email] VARCHAR (100) NOT NULL,
[Ativo] BIT NOT NULL,
... |
<gh_stars>0
delete from Locations;
delete from Products;
delete from Inventory;
delete from Customers;
delete from Orders;
delete from OrderItems;
Insert into Locations (
LocationId,
LocationName)
VALUES
("sss", "Sears"),
("www", "Walmart"),
("ttt", "Target");
Insert into Products (
ProductId,
ProductName,
ProductP... |
WITH pr AS (
INSERT INTO prescription (place, date, concerns)
VALUES (
(SELECT id FROM province WHERE abbreviation = 'TN'),
'2014-09-30T11:35:08',
(SELECT F.id FROM follows F INNER JOIN person P ON F.patient = P.id WHERE P.fc = 'RDNDVD36S07B856Z')
)
RETURNING id
)
INSERT INTO hs_prescription(prescri... |
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600476',@CutoffDate = N'2017-09-30',@EPS = N'0.015',@EPSDeduct = N'0',@Revenue = N'1.66亿',@RevenueYoy = N'-20.07',@RevenueQoq = N'79.63',@Profit = N'241.43万',@ProfitYoy = N'151.18',@ProfiltQoq = N'44.88',@NAVPerUnit = N'1.2445',@ROE = N'1.21',@CashPerUnit = N'-0.3339',@GrossProfitRa... |
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50505
Source Host : localhost:3306
Source Database : attendancemanagementsystem
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2017-06-22 15:06:14
*/
SET FOR... |
<filename>Esra.Db/dbo/Tables/SalaryData_20120510.sql
CREATE TABLE [dbo].[SalaryData_20120510] (
[TITLE_CODE] NVARCHAR (255) NULL,
[TITLE_NAME] NVARCHAR (255) NULL,
[LOCATION_1] NVARCHAR (255) NULL,
[SUB_LOCATION] NVARCHAR (255) NULL,... |
CREATE PROCEDURE [dbo].[GetProviderAlertsSummary]
AS
SELECT
a.ProviderId
, p.ProviderName
, COUNT(*) AS TotalCount
, COUNT(CASE UpdateOriginator WHEN 0 THEN 1 ELSE NULL END) AS ChangesForReview
, SUM(CASE WHEN (DataLockCourse = 1 OR DataLockPrice = 1) THEN 1 ELSE 0 END) as DataMismatchCount
FROM (SELECT [Id... |
<reponame>Diomedes1990/SQL_COURSE
/*1.- Hacer un reporte que muestre el c�digo del empleado, nombre, supervisor (reportsto),
y la cantidad de ordenes por mes que el empleado ha
realizado por a�o (1996,1997,1998)*/
SELECT emp.empid AS "Codigo del Empleado", emp.FirstName AS Nombre ,emp2.FirstName AS "Supervisor",
... |
<reponame>baavga/gompiers
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: May 29, 2018 at 10:03 AM
-- Server version: 5.7.19
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:0... |
SET DATESTYLE TO PostgreSQL,European;
INSERT INTO vendas(idvendedor, idcliente, data, total) VALUES(1, 1, '01/01/2016', 8053.60);
INSERT INTO vendas(idvendedor, idcliente, data, total) VALUES(6, 185, '01/01/2016', 150.40);
INSERT INTO vendas(idvendedor, idcliente, data, total) VALUES(7, 31, '02/01/2016', 6087.00);
INS... |
<reponame>gyGil/Entanglo
/*#######################################################################################################
# TYPE: Stored Procedure #
# NAME: getusers #
# SUMMARY: Retrieves all currently active users. #
# PARAMETERS: requesting user name #
# RETURNS: qu... |
CREATE TABLE test ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(50) NOT NULL )
SELECT * FROM t3';
SELECT * FROM t2';
SELECT * FROM test WHERE id = 1');
|
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 23/10/2018
-- Description: To update a Comment
-- =============================================
CREATE
OR
ALTER PROCEDURE Workflow_Comment_Update @CcnUsername NVARCHAR(256)
,@CmmCode... |
CREATE DATABASE IF NOT EXISTS `heart-attack` /*!40100 COLLATE 'utf8_general_ci' */;
GRANT ALL ON `heart-attack`.* TO 'hdm'
|
<filename>custom/script_SoportePP/Shared_pool.sql<gh_stars>0
SQL> set linesize 300
SQL> set pagesize 9999
SQL> column inst_id format a12
... |
---
--- Tests for ST_Buffer with parameters (needs GEOS-3.2 or higher)
---
---
-- Ouput is snapped to grid to account for small floating numbers
-- differences between architectures
SELECT 'point quadsegs=2', ST_AsText(ST_SnapToGrid(st_buffer('POINT(0 0)', 1, 'quad_segs=2'), 1.0e-6));
SELECT 'line quadsegs=2', ST_AsTe... |
<reponame>paulpierre/pp_chartvisual<filename>app_server/tl/uploads/EURGBP_D1.sql<gh_stars>0
DROP TABLE IF EXISTS `EURGBP_D1`;
CREATE TABLE IF NOT EXISTS `EURGBP_D1`(
`id` int(5) NOT NULL,
`bull` varchar(10) NOT NULL,
`bear` varchar(10) NOT NULL,
`buy` varchar(10) NOT NULL,
`sell` varchar(10) NOT NULL,
`av` varch... |
SELECT
MIN(mi_idx.info) AS rating,
MIN(t.title) AS movie_title
FROM
movie_info_idx mi_idx,
movie_keyword mk,
title t
WHERE
mi_idx.info > '3.0'
AND t.production_year > 2008
AND t.id = mi_idx.movie_id
AND t.id = mk.movie_id
AND mk.movie_id = mi_idx.movie_id;
|
<reponame>ggetv/canal
CREATE DATABASE IF NOT EXISTS canal_manager;
USE canal_manager;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for canal_adapter_config
-- ----------------------------
DROP TABLE IF EXISTS `canal_adapter_config`;
CREATE TABLE `canal_adapter_conf... |
-- start query 17 in stream 0 using template query17.tpl
SELECT i_item_id,
i_item_desc,
s_state,
Count(ss_quantity) AS
store_sales_quantitycount,
Avg(ss_quantity) ... |
CREATE DATABASE IF NOT EXISTS `grafana`;
GRANT ALL PRIVILEGES ON grafana.* TO 'grafana'@'%' IDENTIFIED BY 'admin12345' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON grafana.* TO 'grafana'@'%' IDENTIFIED BY 'admin12345' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON grafana.* TO 'grafana'@'localhost' IDENTIFIED BY 'admin12345'... |
/*
Navicat MySQL Data Transfer
Source Server : 本地数据库
Source Server Version : 50624
Source Host : 127.0.0.1:3306
Source Database : kl-demo
Target Server Type : MYSQL
Target Server Version : 50624
File Encoding : 65001
Date: 2019-07-16 18:02:44
*/
SET FOREIGN_KEY_CHECKS=0;
-- -----... |
DROP TABLE :parameterEntryTableName;
DROP TABLE :levelTableName;
DROP TABLE :parameterTableName; |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License")... |
<gh_stars>1000+
-- start query 19 in stream 0 using template query19.tpl
select
i_brand_id brand_id,
i_brand brand,
i_manufact_id,
i_manufact,
sum(ss_ext_sales_price) ext_price
from
date_dim,
store_sales,
item,
customer,
customer_address,
store
where
d_date_sk = ss_sold_date_sk
and ss_item_sk ... |
<gh_stars>1-10
-- @author prabhd
-- @created 2014-04-01 12:00:00
-- @modified 2012-04-01 12:00:00
-- @tags dml MPP-21090 ORCA
-- @optimizer_mode on
-- @description Tests for MPP-21090
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS mpp21090_pttab_dropfirstcol_addpt... |
CREATE OR REPLACE FUNCTION cdb_dataservices_client._OBS_GetMeta_exception_safe(
geom_ref Geometry(Geometry, 4326),
params json,
max_timespan_rank integer DEFAULT NULL,
max_score_rank integer DEFAULT NULL,
target_geoms integer DEFAULT NULL
)
RETURNS json
AS $$
BEGIN
IF json_array_length(params) > 0 AND param... |
select * from _db_data_type where type_name='BLOB';
select * from _db_data_type where type_name='CLOB';
|
ALTER TABLE "room"."ShuffleRoom" ADD COLUMN "isEnded" boolean NOT NULL DEFAULT false;
|
<filename>src/test/regress/sql/single_node_sqlbypass.sql
set enable_seqscan=off;
set enable_bitmapscan=off;
set enable_material=off;
set enable_beta_opfusion=on;
drop table if exists t1;
create table t1 (c1 int, c2 numeric, c3 numeric, c4 int, colreal real);
create table t2 (c1 int, c2 numeric, c3 numeric, c4 int... |
<filename>Develop/db/schema.sql<gh_stars>0
DROP DATABASE IF EXISTS employee_tracker_db;
CREATE DATABASE employee_tracker_db;
USE employee_tracker_db;
CREATE TABLE department (
id INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
name VARCHAR(30) NOT NULL
);
CREATE TABLE role (
id INT AUTO_INCREMENT PRIMARY KEY,
title... |
<reponame>zidyazid/sistem_informasi_pendataan_penduduk
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 28, 2021 at 02:14 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRA... |
<gh_stars>0
-- Adminer 3.5.1 MySQL dump
SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = 'SYSTEM';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `disbo`.`users`;
CREATE TABLE `disbo`.`users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(15) NOT NULL,
`sso` varchar(100) N... |
CREATE TABLE IF NOT EXISTS `auction` (
id int(11) NOT NULL default '0',
sellerId int(11) NOT NULL default '0',
sellerName varchar(20) NOT NULL default '',
sellerClanName varchar(20) NOT NULL default '',
itemId int(11) NOT NULL default '0',
itemName varchar(40) NOT NULL default '',
startingBid int(11) NOT ... |
<gh_stars>0
INSERT INTO countries VALUES
(1, 'USA', 10),
(2, 'AT', 20),
(3, 'CH', 30),
(4, 'IT', 30),
(5, 'DE', 40)
;
INSERT INTO borders VALUES
(2, 3),
(2, 4),
(2, 5),
(3, 2),
(3, 4),
(3, 5),
(4, 2),
(4, 3),
(5, 2),
(5, 3)
;
INSERT INTO secret_agencies VALU... |
<reponame>christophanneser/Bao-for-Presto<filename>queries/stackoverflow/q11/5f4cd22bdae03426534a2ff2eea444709c3d50a8.sql
SELECT COUNT(*)
FROM
tag as t,
site as s,
question as q,
tag_question as tq
WHERE
t.site_id = s.site_id
AND q.site_id = s.site_id
AND tq.site_id = s.site_id
AND tq.question_id = q.id
AND tq.tag_id =... |
CREATE TABLE cms_block (
id INT PRIMARY KEY AUTO_INCREMENT,
name NVARCHAR(25) NOT NULL,
language_code NVARCHAR(5) NULL,
title NVARCHAR(50) NULL,
content TEXT NULL,
active_page_format BOOLEAN DEFAULT 0,
is_enabled BOOLEAN ... |
\echo 'creating "session" table'
CREATE TABLE "session" (
"sid" varchar NOT NULL COLLATE "default",
"sess" json NOT NULL,
"expire" timestamp(6) NOT NULL
)
WITH (OIDS=FALSE);
ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE;
CREATE INDEX "IDX_session_expire... |
<reponame>joaosoft/sql-history
CREATE SCHEMA history;
CREATE TYPE history.operation AS ENUM ('I', 'U', 'D');
CREATE TABLE history.example_three (
_id_history SERIAL PRIMARY KEY,
_user TEXT NOT NULL,
_operation operation NOT NULL,
_operation_at TIMESTAMP DEFAULT NOW(),
LIKE model.... |
<gh_stars>0
CREATE TABLE [dbo].[Set] (
[SetNumber] VARCHAR (100) NOT NULL,
[Name] VARCHAR (400) NOT NULL,
[SetImageUrl] VARCHAR (400) NULL,
[Theme] VARCHAR (400) NULL,
[ThemeId] INT NULL,
CONSTRAINT [PK_Set] PRIMARY KEY CLUSTERED ([SetNumber] ASC)
);
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 06, 2020 at 05:36 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
drop procedure if exists sp_addToken;
delimiter #
CREATE PROCEDURE sp_addToken(
IN paramToken VARCHAR(255),
IN paramEmail VARCHAR(255)
)
BEGIN
DECLARE _uid INT;
SELECT uID
FROM tbl_Login
WHERE email = paramEmail
INTO _uid;
INSERT INTO tbl_user_token (token, uID)
VALUES (pa... |
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 24, 2021 at 01:15 PM
-- Server version: 5.6.51-cll-lve
-- PHP Version: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
<reponame>blueriq/blueriq-plugin-dossier-sql-store<gh_stars>0
-- Oracle upgrade script for the Dossier plugin of Blueriq release 9.2.6
--
-- Adds table in which database updates are tracked.
--
-- Needs to be executed on Blueriq databases for versions equal to or before 9.2.5.
CREATE TABLE dossier_Releases (id number... |
<gh_stars>1-10
BACKUP DATABASE [SoftUni] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\Backup\SoftUni.bak' WITH NOFORMAT, NOINIT, NAME = N'SoftUni-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
|
ALTER TABLE users ADD COLUMN email VARCHAR;
DROP TABLE foo; |
INSERT INTO eg_appconfig ( ID, KEY_NAME, DESCRIPTION, VERSION, MODULE ) VALUES (nextval('SEQ_EG_APPCONFIG'), 'BUILDINGDETAILSVALIDATIONREQUIRED', 'is building floor details validation required',0, (select id from eg_module where name='BPA'));
INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION... |
<filename>packets/dba_top_tables/01_step.sql
SELECT
T.nspname,
T.relname,
T.size,
T.idxs_size,
T.total,
-- T.total_raw,
T.n_live_tup,
T.n_dead_tup,
T.n_tup_ins,
T.n_tup_upd
-- T.n_tup_hot_upd,
-- T.rel_oid,
-- T.schema_oid
FROM (
WITH pg_class_prep AS (
SELECT c_1.relname,
c_1.reln... |
-- 1. AÑADIMOS LOS campos nombreAparente8
ALTER TABLE `archivo_orden` ADD `nombreAparente8` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `archivo_proyecto` ADD `nombreAparente8` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL;
ALTER TABLE `archivo_rend` A... |
BEGIN;
CREATE TABLE IF NOT EXISTS "accounts"
(
"account_id" UUID NOT NULL,
"password" VARCHAR(255) NOT NULL,
"email" VARCHAR(255) UNIQUE NOT NULL,
"username" VARCHAR(255) NOT NULL,
"is_confirmed" BOOLEAN NOT NULL,
"created_at" DATE NOT NULL,
"updated_at" D... |
INSERT INTO `currency` (currency, rate, symbol, active) VALUES
('USD', 1.4, '$', 0),
('GBP', .8, '£', 0),
('EUR', 1, '€', 1);
|
INSERT INTO burgers (burger_name, devoured) VALUES ('Bacon Cheese Burger', true);
INSERT INTO burgers (burger_name, devoured) VALUES ('Avocado Burger', false);
INSERT INTO burgers (burger_name, devoured) VALUES ('Veggie Burger', false);
|
-- 1 Number of persons
select 1 as analysis_id,
cast(null as varchar(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3, cast(null as varchar(255)) as stratum_4, cast(null as varchar(255)) as stratum_5,
COUNT_BIG(distinct person_id) as count_value
into @scratchDataba... |
Drop table if exists User;
Create table User (user_id number , name string, overallScore number);
Drop table if exists Score;
Create table Score (id number , user_id number, category string, value number);
|
/****** Object: Table [T_Protein_Collection_States] ******/
/****** RowCount: 5 ******/
/****** Columns: Collection_State_ID, State, Description ******/
INSERT INTO [T_Protein_Collection_States] VALUES (0,'Unknown','Protein collection does not exist')
INSERT INTO [T_Protein_Collection_States] VALUES (1,'New','Newl... |
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1101350788640325633', 'chance', 'salemgr', '[0],[salemgr],', '机会管理', '', '/chance', '99', '2', '1', NULL, '1', '0');
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`... |
<filename>ash-awr/Introduction-Nov-3rd-14/120_create_snapshot.sql<gh_stars>1-10
begin
dbms_workload_repository.create_snapshot();
end;
/
|
<reponame>ZhangYuJieWord/jeesuite-config
DROP TABLE IF EXISTS `app_secret`;
DROP TABLE IF EXISTS `operate_logs`;
ALTER TABLE `app_configs`
CHANGE COLUMN `created_by` `created_by` VARCHAR(32) NULL DEFAULT NULL ,
CHANGE COLUMN `updated_by` `updated_by` VARCHAR(32) NULL DEFAULT NULL ,
ADD COLUMN `enabled` TINYINT(1) NUL... |
<reponame>tayloramurphy/dbt-extend
{%- macro n_days_ago(n, tz=None) -%}
{% set tz = var("dbt_extend:time_zone") if not tz else tz %}
{%- set n = n|int -%}
{{ dbt_utils.dateadd('day', -1 * n, dbt_extend.get_local_date(tz)) }}
{%- endmacro -%} |
DROP TABLE IF EXISTS `sys_permission`;
CREATE TABLE `sys_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`common` varchar(255) CHARACTER SET utf8 COLLATE utf8_g... |
ALTER TABLE F_HG_VAR_LINK_LEGACY ADD COLUMN ACCESS_AUTH TEXT AFTER DISP_SEQ;
ALTER TABLE F_HG_VAR_LINK_LEGACY_JNL ADD COLUMN ACCESS_AUTH TEXT AFTER DISP_SEQ;
ALTER TABLE F_HG_VAR_LINK_LEGACYROLE ADD COLUMN ACCESS_AUTH TEXT AFTER DISP_SEQ;
ALTER TABLE F_HG_VAR_LINK_LEGACYROLE_JNL ADD COLUMN ACCESS_AUTH TEXT AFTER DIS... |
<reponame>opengauss-mirror/openGauss-graph<filename>src/test/regress/sql/vec_sonic_hashjoin_othertype.sql<gh_stars>100-1000
create schema sonic_hashjoin_test_othertype;
set current_schema = sonic_hashjoin_test_othertype;
set enable_codegen to off;
set enable_nestloop to off;
set enable_mergejoin to off;
set enable_has... |
<filename>server/database/structure_v2.sql<gh_stars>0
-- #####################################
-- NOMINAL DATABASE
-- #####################################
-- REVISION: 2.0
-- DATE: 21/04/2021
-- AUTHORS
-- <NAME> (https://www.github.com/pomaretta)
-- <NAME> (https://github.com/ainarejos)
-- <... |
-- phpMyAdmin SQL Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 08, 2019 at 10:27 PM
-- Server version: 5.5.34
-- PHP Version: 5.4.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
-- Adminer 4.8.1 MySQL 8.0.23 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 `categories`;
CREATE TABLE `categories` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8m... |
<gh_stars>0
--DROP TABLE cw_cases IF EXISTS;
CREATE TABLE cw_cases (
cw_cases_id INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 100, INCREMENT BY 1) PRIMARY KEY,
cw_id BIGINT,
start_date VARCHAR(50),
description VARCHAR(200),
status VARCHAR(50),
cw_assigned_name VARCHAR(50)
); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 16, 2020 at 09:57 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<filename>wp-data/zz_set_site_address.sql
UPDATE wprb_options
SET option_value = 'http://localhost'
WHERE option_name in ('siteurl', 'home');
|
use sc_admin;
-- 用户
INSERT INTO t_sc_users (id, username, password, deleted, enabled, account_non_expired, credentials_non_expired, account_non_locked, name, mobile, created_time, updated_time, created_by, updated_by)
VALUES
(101, 'admin', <PASSWORD>', 'N', true, true, true, true,
'超级管理员', '', now(), now(), 'system',... |
<filename>db/create.sql
drop table if exists ice;
CREATE TABLE ice (
timestamp timestamp,
location geography(POINT),
concentration numeric(4, 1),
speed numeric(4, 1),
direction numeric(4, 1),
thickness numeric(4, 1),
PRIMARY KEY(timestamp, location)
);
drop table if exists weatherfile;
create table wea... |
<filename>db/slskymap.sql<gh_stars>0
-- MySQL dump 10.13 Distrib 5.6.28, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: slskymap
-- ------------------------------------------------------
-- Server version 5.6.28-0ubuntu0.15.10.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40... |
CREATE TABLE {$table_name} ( id BIGINT(20) NOT NULL AUTO_INCREMENT, mail_key varchar(40) not null, user_id INT NOT NULL, blog_id INT NOT NULL, comment_id INT NOT NULL, UNIQUE KEY id (id) )
CREATE TABLE {$table_name} ( id BIGINT(20) NOT NULL AUTO_INCREMENT, subject varchar(1000) NOT NULL,... |
<filename>data/open-source/extracted_sql/frab_frab.sql
UPDATE conference SET acronym = replace where conference_id=86
SELECT conference_id FROM call_for_papers AS cfp WHERE cfp.id=#{n.call_for_papers_id}) WHERE id=#{n.id};
SELECT * FROM event_image WHERE event_id = #{event['event_id']}
SELECT * FROM conference
SELECT t... |
-- DROP FUNCTION temporal_schema.udf_spots_timeline_get(integer,integer,integer);
CREATE OR REPLACE FUNCTION temporal_schema.udf_spots_timeline_get(
param_user_id integer,
param_rows_maximum_request integer,
param_gimme_more_rows integer)
RETURNS json AS
$BODY$
DECLARE
aux_tree_returning varchar = '';
s... |
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', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row... |
<reponame>debian-janitor/pg_fact_loader<gh_stars>1-10
COMMENT ON TABLE fact_loader.key_retrieval_sequences IS
$$How to go from a change in the queue table itself to retrieve the key
that needs to be updated in the fact table. That key specifically will be passed
to the insert/update/delete merge_proids configured in q... |
--
-- ■ ROLES
--
BEGIN;
-- ⋯ Table prerequisites
DROP TYPE IF EXISTS ROLE_TYPE;
CREATE TYPE ROLE_TYPE AS ENUM ('user', 'admin');
COMMIT;
--
-- ■ USERS ROLES
--
BEGIN;
-- ✨ Table definition
CREATE TABLE IF NOT EXISTS users_roles (
id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
user_id BIGINT RE... |
<filename>data/en/sqlite/subdivisions_MC.sqlite.sql
CREATE TABLE subdivision_MC (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_MC" ("id", "name", "level") VALUES ('MC-FO', 'Fontvieille', 'quarter');
INSERT INTO "subdivision_MC" ("id", "name", "level")... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.