sql stringlengths 6 1.05M |
|---|
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 09-05-2017 a las 15:04:50
-- Versión del servidor: 5.7.14
-- Versión de PHP: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR... |
<gh_stars>1-10
-- @migrate/up
CREATE TABLE IF NOT EXISTS test(
ID INT AUTO_INCREMENT PRIMARY KEY
);
-- @migrate/down
DROP TABLE IF EXISTS test;
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 04, 2018 at 10:52 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<filename>db/views/student_lesson_details_v02.sql<gh_stars>1-10
SELECT s.id as student_id,
s.first_name as first_name,
s.last_name as last_name,
s.deleted_at as student_deleted_at,
l.id as lesson_id,
l.date as date,
l.deleted_at as lesson_deleted_at,
subject_id,
r... |
INSERT INTO portfolio_project(id, name, tagline, description, image_url, link_name, link_url)
VALUES ('AMIBQH',
'Counterplay',
'Grid-based strategy game',
'counterplay.md',
'images/portfolio/projects/counterplay.webp',
'GitHub',
'https://github.com/zero-sum-games/counterp... |
<gh_stars>1-10
/* Checks Status Aggregates */
Declare @MonitorID int
Declare @CheckDate datetime
set @MonitorID = 160
set @CheckDate = getdate()
Declare @TimespanID smallint
Declare @StartDT datetime
Declare @EndDT datetime
--Daily
select @TimespanID = TimespanID from TSDaily
where year=year(@CheckDat... |
<gh_stars>10-100
select t.name, t.create_date, s.name as [schema]
from sys.tables t
join sys.schemas s on s.schema_id = t.schema_id |
/*
Navicat MySQL Data Transfer
Source Server : 本机
Source Server Version : 50631
Source Host : localhost:3306
Source Database : superboot
Target Server Type : MYSQL
Target Server Version : 50631
File Encoding : 65001
Date: 2018-06-22 14:35:51
*/
SET FOREIGN_KEY_CHECKS=0;
-- ------... |
# Write your MySQL query statement below
select name, population, area
from World
where area >= 3000000 or population >= 25000000 |
ALTER TABLE `clients` ADD `isdomain` INT NOT NULL DEFAULT '0' AFTER `ip`;
UPDATE `config` SET `valuechar`='20160720001' WHERE `name`='dbversion'; |
ALTER TABLE code_framework_dubbo_reference_config RENAME COLUMN interfaceName TO interface;
ALTER TABLE code_framework_dubbo_service_config RENAME COLUMN interfaceName TO interface; |
ALTER TABLE ixsi.attribute
ADD COLUMN partner_id integer;
ALTER TABLE ixsi.attribute
ADD CONSTRAINT "FK_attribute_partner_id" FOREIGN KEY (partner_id)
REFERENCES ixsi.server_system (partner_id) ON UPDATE NO ACTION ON DELETE CASCADE;
|
CREATE TABLE [dbo].[Artist]
(
[ArtistId] INT NOT NULL IDENTITY,
[Name] NVARCHAR(120),
CONSTRAINT [PK_Artist] PRIMARY KEY CLUSTERED ([ArtistId])
); |
<reponame>crest42/hostapd
--
-- Table structure for table 'dhcpippool'
--
-- See also "procedure.sql" in this directory for
-- a stored procedure that gives much faster response.
--
CREATE TABLE dhcpstatus (
status_id int NOT NULL,
status varchar(10) NOT NULL,
PRIMARY KEY (status_id)
)
GO
INSERT INTO dhcpstatus (... |
--The population of a region
SELECT
Sum(population) AS 'population'
FROM country
WHERE region = 'Western Europe'; |
CREATE TABLE [dbo].[TAnnotation]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[TAnnotationId] SMALLINT NOT NULL,
CONSTRAINT [PK_TAnnotationId] PRIMARY KEY CLUSTERED ([TAnnotationId] ASC)
);
|
<filename>src/main/resources/db/migration/V001__init.sql
USE jrtb_db_main;
CREATE TABLE example(id INT, number INT); |
ALTER TABLE searchFormFieldValue ADD CONSTRAINT FK_sffv_ctv
FOREIGN KEY (valuetype_id) REFERENCES characteristicTypeValue(id)
ON DELETE CASCADE; |
COPY (
select
json_build_object(
'id', todo.id,
'urs_id', todo.precompute_urs_id,
'urs_taxid', todo.urs_taxid,
'model_id', r2dt.id,
'model_name', r2dt.model_name,
'model_source', r2dt.model_source,
'model_so_term', r2dt.so_term_id,
'sequence_coverage', ss.sequence_coverage,
'model_... |
CREATE TABLE state_flow
(
id BIGINT AUTO_INCREMENT PRIMARY KEY,
from_id BIGINT,
to_id BIGINT,
FOREIGN KEY (from_id) REFERENCES states(id),
FOREIGN KEY (to_id) REFERENCES states(id)
) |
<reponame>slankas/OSKE<filename>Collector/sql/local_setup_docker.sql
-- This file is designed to have the necessary configuration
------------------------------------------------------------------------------------------------
DO $$DECLARE cnt INTEGER;
BEGIN
SELECT COUNT(*) INTO cnt FROM system_user;
IF cnt = 0 TH... |
<gh_stars>1-10
-- Name: ListOfAvailableQueriesBySchema
-- Schema: posda_queries
-- Columns: ['name', 'description', 'tags']
-- Args: ['schema']
-- Tags: ['AllCollections', 'schema']
-- Description: Get a list of available queries
select
name, description,
array_to_string(tags, ',') as tags
from queries
where schem... |
--#
--# Gpu Scan OverFlow TestCases.
--#
set enable_seqscan to off;
set enable_bitmapscan to off;
set enable_indexscan to off;
set random_page_cost=1000000; --# force off index_scan.
set pg_strom.enable_gpuhashjoin to off;
set pg_strom.enable_gpupreagg to off;
set pg_strom.enable_gpusort to off;
set client_mi... |
<reponame>khuddlefish/gpdb<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/resync/sql/skip/resync_co_alter_part_exchange_default_part.sql
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
--
-- RESYNC CO TABLE 1
--
CREATE TABLE resync_co_alter_part_exchange_def... |
<filename>intADef.sql
CREATE OR REPLACE FUNCTION intADef(Str TEXT,def int[] DEFAULT '{}')
RETURNS int[]
AS
$$
DECLARE
d int[];
BEGIN
IF Str IS NULL THEN
RETURN def;
END IF;
IF trim(Str)='' THEN
RETURN def;
END IF;
RETURN trim(Str)::int[];
EXCEPTION WHEN others THEN
RETURN def;
END;
$$
LANGUAG... |
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600881',@CutoffDate = N'2017-09-30',@EPS = N'0.06',@EPSDeduct = N'0',@Revenue = N'82.84亿',@RevenueYoy = N'2.07',@RevenueQoq = N'-2.89',@Profit = N'1.71亿',@ProfitYoy = N'46.06',@ProfiltQoq = N'-62.73',@NAVPerUnit = N'4.4788',@ROE = N'1.36',@CashPerUnit = N'0.7996',@GrossProfitRate = ... |
<filename>db_sulampua.sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 07, 2020 at 07:52 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.2.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = ... |
<reponame>uk-gov-mirror/SkillsFundingAgency.tl-matching
CREATE TABLE [dbo].[Referral]
(
[Id] INT IDENTITY(1,1) NOT NULL,
[OpportunityItemId] INT NOT NULL,
[ProviderVenueId] INT NOT NULL,
[DistanceFromEmployer] DECIMAL(18, 2) NOT NULL,
[CreatedOn] DATETIME2 NOT NULL DEFAULT getutcdate(),
[CreatedBy] NVARCHAR(50)... |
-- Deploy yabon-prono:bet-with-gain to pg
BEGIN;
-- XXX Add DDLs here.
CREATE VIEW bet_with_gain AS
SELECT
bet.*,
"match".id AS matchId, "match".host_team, "match".visitor, "match".odds_1,"match".odds_2,"match".odds_draw, "match".score_host, "match".score_visitor, "match".winner,
bookmaker.id AS bookmakerId, bookma... |
-- phpMyAdmin SQL Dump
-- version 3.5.2
-- http://www.phpmyadmin.net
--
-- Inang: localhost
-- Waktu pembuatan: 03 Okt 2016 pada 14.05
-- Versi Server: 5.5.25a
-- Versi PHP: 5.4.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!4010... |
<gh_stars>0
/*
* DO NOT EDIT THIS FILE, IT IS GENERATED
*
* To change the contents of this file, edit
* phpBB/develop/create_schema_files.php and
* run it.
*/
/*
This first section is optional, however its probably the best method
of running phpBB on Oracle. If you already have a tablespace and user created
... |
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64)
--
-- Host: localhost Database: cv
-- ------------------------------------------------------
-- Server version 8.0.22
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101... |
<gh_stars>0
-- MySQL dump 10.13 Distrib 8.0.20, for macos10.15 (x86_64)
--
-- Host: localhost Database: cookingRecipe
-- ------------------------------------------------------
-- Server version 8.0.17
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 15, 2019 at 08:54 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<gh_stars>0
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600648',@CutoffDate = N'2017-09-30',@EPS = N'0.31',@EPSDeduct = N'0',@Revenue = N'56.29亿',@RevenueYoy = N'-14.73',@RevenueQoq = N'32.89',@Profit = N'3.48亿',@ProfitYoy = N'-44.13',@ProfiltQoq = N'-61.24',@NAVPerUnit = N'8.9678',@ROE = N'3.54',@CashPerUnit = N'1.0026',@Gro... |
:setvar PartitionKeyDataType datetime
GO
/*
-- Example usage:
DECLARE @MinDateValueToKeep datetime = DATEADD(year, -1, GETDATE())
EXEC dbo.[PurgePartitions_$(PartitionKeyDataType)]
@PartitionFunctionName = 'PRT_FN_MyFunction'
, @MinValueToKeep = @MinDateValueToKeep
, @TruncateOldPartitions = 1
, @DebugOnly = 0
*... |
set var1 = 5;
set var1 = ['one', 'two'];
|
SELECT Category, COUNT(ProductID) AS Products
FROM
(SELECT p.ProductID, p.Name AS Product, c.Name AS Category
FROM SalesLT.Product AS p
JOIN SalesLT.ProductCategory AS c
ON p.ProductCategoryID = c.ProductCategoryID) AS ProdCats
GROUP BY Category
ORDER BY Category;
|
<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Tables/RegionalTeamMappings.sql<gh_stars>1-10
CREATE TABLE [dbo].[RegionalTeamMappings](
[Id] [int] IDENTITY(1,1) NOT NULL,
[PostcodeStart] [varchar](6) NOT NULL,
[RegionalTeam_Id] [int] NOT NULL,
CONSTRAINT [PK_RegionalTeamMappings] PRIMARY KEY CLUSTERED
(
[Id... |
<filename>11_add_server_to_monitoring.sql
--=====================================================================================================
--
-- This script is meant to run from powershell script
--
--=============================================
-- Author: ???
-- Create date: ???
-- Description: Adds t... |
-- file:limit.sql ln:37 expect:true
select * from int8_tbl offset (case when random() < 0.5 then null::bigint end)
|
<reponame>reubenpuketapu/MSBuild.Sdk.SqlProj
PRINT N'Pre deploy'
:r Script1.sql
-- :z isn't a legitimate directive
:z Script3.sql |
CREATE PROCEDURE [dbo].[RET_ESTADO_BY_ID]
@P_TBL_ESTADO_TARJETA_ID int
AS
SELECT * from TBL_ESTADO_TARJETA
where TBL_ESTADO_TARJETA_ID = @P_TBL_ESTADO_TARJETA_ID
RETURN 0
|
CREATE DATABASE IF NOT EXISTS `mems_cardio` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `mems_cardio`;
-- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64)
--
-- Host: localhost Database: mems_cardio
-- ------------------------------------------------------
-- Server version 5.6.26-log
/*!40101 SET @OLD... |
SELECT
*
FROM [MAItems]
WHERE
[LocaleCd] != @LocaleCd
AND [ItemCd] = @ItemCd |
CREATE OR REPLACE PROCEDURE chess.add_pairings_list(
p_user_id int
)
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE
v_user_rate int;
v_pairing_row chess.pairing%rowtype;
v_pairing_list_data varchar;
v_user chess.players%rowtype;
BEGIN
SELECT chess.players.rate into v_user_rate
FROM chess.pla... |
<filename>jdbc-test/src/test/resources/settings/dbinit/create.tables.db2.sql<gh_stars>1-10
DROP TABLE TEST_SETTING;
DROP TABLE TEST_LOGGER;
DROP TABLE TEST_ROLE_CORE_INFO;
DROP TABLE TEST_USER_CORE_INFO;
DROP TABLE TEST_USER_ROLE_REF;
DROP TABLE TEST_DEPARTMENT_CORE_INFO;
CREATE TABLE TEST_SETTING (
ID VARCHAR(50) ... |
<reponame>0xnan-dev/authcore
-- migrate:up
ALTER TABLE `contacts` DROP COLUMN `verification_code`;
ALTER TABLE `contacts` DROP COLUMN `verification_token`;
ALTER TABLE `contacts` DROP COLUMN `verification_info_sent_at`;
ALTER TABLE `contacts` DROP COLUMN `failed_verification_attempts`;
ALTER TABLE `contacts` DROP COLUM... |
<filename>database/mssql/scripts/dbscripts/PSP_PIMS_S29_00/Build/34_DML_PIMS_PROJECT_STATUS_TYPE.sql
/* -----------------------------------------------------------------------------
Delete all data from the PIMS_PROJECT_STATUS_TYPE table and repopulate.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ... |
CREATE INDEX "identity_verifiable_addresses_status_via_idx" ON "identity_verifiable_addresses" (nid, via, value); |
-- sql/09-mirrors.sql SQL Migration
SET client_min_messages TO warning;
BEGIN;
CREATE TABLE mirrors (
uri URI PRIMARY KEY,
frequency TEXT NOT NULL,
location TEXT NOT NULL,
organization TEXT NOT NULL,
timezone TIMEZONE NOT NULL,
email ... |
INSERT INTO session_log (
assigned_ip,
bytes_in,
bytes_out,
client_ip,
nas_ip,
packets_in,
packets_out,
session_id,
session_time,
user,
time_added
)
SELECT
assigned_ip,
bytes_in,
bytes_out,
client_ip,
nas_ip,
packets_in,
packets_out,
session_id,
session_time,
user,
time_add... |
<reponame>browncoatssoftware/MsSqlScripts.IdentityServer4
CREATE TABLE [dbo].[ClientGrantTypes] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[GrantType] NVARCHAR (250) NOT NULL,
[ClientId] INT NOT NULL,
CONSTRAINT [PK_ClientGrantTypes] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRA... |
-- @testpoint: 列存分区表创建唯一索引,添加新的分区,部分测试点合理报错
--测试点一:创建唯一索引后,增加新的分区,插入数据
--step1:测试点一,创建列存范围分区表 expect:成功
drop table if exists t_columns_unique_index_0060_01;
create table t_columns_unique_index_0060_01(id1 int,id2 int,id3 int) with(orientation=column)
partition by range(id1)
(partition p01 values less than(1000),
pa... |
<reponame>SalubriousTechnologies/deno-oak-template
CREATE TABLE IF NOT EXISTS leads (
id serial primary key,
name VARCHAR(50),
created_at timestamptz DEFAULT (now())
) |
<filename>lib/feedtools-0.2.29/db/schema.postgresql.sql
-- Example PostgreSQL schema
CREATE TABLE cached_feeds (
id SERIAL PRIMARY KEY NOT NULL,
href varchar(255) default NULL,
title varchar(255) default NULL,
link varchar(255) default NULL,
fee... |
<gh_stars>0
--Create the Delete Proc
CREATE PROCEDURE [dbo].[app_SurveyResults_Delete] @SRID INT
AS
DELETE
FROM dbo.SurveyAnswers
WHERE SRID = @SRID
DELETE
FROM [SurveyResults]
WHERE SRID = @SRID
|
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603458',@CutoffDate = N'2017-09-30',@EPS = N'2.64',@EPSDeduct = N'0',@Revenue = N'12.93亿',@RevenueYoy = N'15.92',@RevenueQoq = N'-',@Profit = N'2.55亿',@ProfitYoy = N'117.72',@ProfiltQoq = N'-',@NAVPerUnit = N'15.1282',@ROE = N'24.99',@CashPerUnit = N'-1.3613',@GrossProfitRate = N'44... |
<filename>src/main/resources/schema.sql
CREATE TABLE `posts` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`created_date` datetime DEFAULT NULL,
`modified_date` datetime DEFAULT NULL,
`author` varchar(255) DEFAULT NULL,
`content` text NOT NULL,
`title` varchar(500) NOT NULL,
PRIMARY KEY (`id`)
);
|
<reponame>lw-schick/DWH
-- @Source: http://www.motobit.com/tips/detpg_async-execute-sql/
-- @author: <NAME>
-- @description:
-- Sometimes I need execution of some SQL command or stored procedure
-- not in-process, but as Asynchronous task, especially when I need
-- to call long running SQL command inside a tri... |
-- OBS: Use um banco de dados e execute para testar o sql.
create sequence contador start with 1 increment by 1 maxvalue=1000;
select nextval(contador);
|
IF NOT EXISTS (SELECT * FROM dbo.Faction WHERE Name = 'American Reclamation Corporation')
INSERT INTO dbo.Faction(Name, Leader, Capital, Ability)
VALUES ('American Reclamation Corporation', 'Suzanne Fielding', 'Central', 'Covert Operations are 25% faster and cause 25% more Intrigue');
IF NOT EXISTS (SELECT * FROM ... |
<reponame>jzhao11/uno
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: May 29, 2019 at 08:18 PM
-- Server version: 5.7.21
-- PHP Version: 7.1.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... |
<reponame>Backs/judge.net
IF (NOT EXISTS(SELECT 1 FROM dbo.DatabasePatches WHERE Name = N'AddUserName'))
BEGIN
UPDATE u
SET
u.Email = u.UserName
FROM Users as u
INSERT INTO dbo.DatabasePatches (Name) VALUES (N'AddUserName')
END |
<reponame>Devnician/welearn-back-end
ALTER TABLE `resource`
MODIFY `dir_path` varchar(255) NOT NULL;
ALTER TABLE `resource`
MODIFY `type` varchar(255) NOT NULL;
ALTER TABLE `resource`
MODIFY `name` varchar(255) NOT NULL;
|
<reponame>CompuMasterGmbH/cammIntegrationPortal
-- Remove all obsolete data from user table
UPDATE dbo.Benutzer
SET CurrentLoginViaRemoteIP = Null, System_SessionID = Null;
GO
-- Deactivate all active sessions for safety between user session handling phase 1 "single login" and phase 2 "multiple simultaneous logins"
... |
CREATE OR REPLACE PROCEDURE admin.roles_migration(
)
LANGUAGE PLPGSQL
AS $$
DECLARE
vProjectManagerRoleId varchar(32);
vProjectManagersGroupId varchar(32);
vRegionalDirectorRoleId varchar(32);
vRegionalDirectorsGroupId varchar(32);
vFieldOperationsDirectorRoleId varchar(32);
vFieldOperationsDirectorsGroupId... |
<filename>migrations/0001_create_post_table.sql
CREATE TABLE post (
post_id SERIAL PRIMARY KEY,
url TEXT NOT NULL UNIQUE,
title TEXT NOT NULL,
updated TIMESTAMPTZ NOT NULL,
body TEXT NOT NULL,
content_index TSVECTOR
GENERATED ALWAYS AS (to_tsvector('english', title || ' ' || body)) STOR... |
IF NOT EXISTS(SELECT * FROM sys.sysusers WHERE [name] = '[edc2019-common]')
EXEC('CREATE USER [edc2019-common] FROM EXTERNAL PROVIDER')
IF NOT EXISTS(SELECT * FROM sys.sysusers WHERE [name] = '[omnia - edc2019]')
EXEC('CREATE USER [omnia - edc2019] FROM EXTERNAL PROVIDER')
GRANT SELECT, UPDATE, INSERT, DELE... |
<gh_stars>0
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2019] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-... |
<reponame>nasa/SCRD
INSERT INTO opm.account(id, deleted, plan_type, form_type_id, account_holder_id, balance, billing_summary_id, account_status_id, grace, frozen, claim_officer, claim_officer_assignment_date, returned_from_record_date, claimant_birthdate, account_confirmation_validation_id, claim_number, last_action, ... |
<reponame>ramzitrimech/smui
# --- !Ups
-- lock_time - will be set to the date/time the migration starts, for potential handling (timeouts) of broken migrations
-- completed - shall be null or 1
create table smui_migration_lock (
migration_key varchar(32) not null primary key,
lock_time timestamp not null,
completed... |
CREATE TABLE [MessageHub].AvailableChargeReceiptData (
Id uniqueidentifier not null,
RecipientId nvarchar(35) not null,
RecipientRole int not null,
BusinessReasonCode int not null,
ReceiptStatus... |
BEGIN;
REINDEX INDEX cr_ao_reindex_bitmap_idx1;
COMMIT;
|
<filename>assets/scripts/add_game_host.sql<gh_stars>0
-- Sets a user of a game to host
UPDATE userToGame SET is_host = true WHERE game_id = ? AND user_id = ?
|
<filename>range/sql/01_simple_example.sql
-- `psql -f 01_simple_example.sql ...`
--
-- Simple range type example
-- - https://www.postgresql.jp/document/9.4/html/rangetypes.html
-- - https://www.postgresql.jp/document/9.4/html/functions-range.html#RANGE-OPERATORS-TABLE
\i 01a_create_reservations_table.sql
\i 01b_inser... |
<reponame>satriawanlaravel/simanis
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 11, 2021 at 01:49 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_... |
<gh_stars>0
CREATE TABLE tiddler (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title TEXT NOT NULL UNIQUE,
rev INTEGER NOT NULL,
meta TEXT NOT NULL,
text TEXT NOT NULL,
is_system INTEGER NOT NULL DEFAULT (0)
);
CREATE INDEX tiddler_title_idx ON tiddler (title);
CREATE INDEX tiddler_is_... |
<reponame>kspaper1/test815<filename>sql_scripts/products.sql
CREATE TABLE IF NOT EXISTS products (
`id` INT,
`name` VARCHAR(2) CHARACTER SET utf8,
`price` NUMERIC(4, 2)
);
INSERT INTO products VALUES
(1,'P1',32.99),
(2,'P2',21.5),
(3,'P3',34.99),
(4,'P4',10.99),
(5,'P5',35.49),
(6,'P... |
# 缓存表,用来保存临时数据。
DROP TABLE IF EXISTS bbs_cache;
CREATE TABLE bbs_cache (
k char(32) NOT NULL default '',
v mediumtext NOT NULL,
expiry int unsigned NOT NULL default '0', # 过期时间
PRIMARY KEY(k)
); |
CREATE DATABASE Cadastro_cliente;
USE Cadastro_cliente;
CREATE TABLE cadastros
(
id int unsigned not null auto_increment,
razao_social varchar(50) not null,
cnpj varchar (14) not null,
endereco varchar(45) not null,
numero varchar (45) not null,
cep varchar(8) noT null,
PRIMARY KEY (ID)
... |
CREATE TABLE oauth_log
(
olg_id number,
olg_osr_consumer_key varchar2(64),
olg_ost_token varchar2(64),
olg_ocr_consumer_key varchar2(64),
olg_oct_token varchar2(64),
olg_usa_id_ref number,
olg_received varchar2(500),
olg_sen... |
<reponame>Jinc0316/CUBTP
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 50527
Source Host : localhost:3306
Source Schema : cubtp
Target Server Type : MySQL
Target Server Version : 50527
File Encoding :... |
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64)
--
-- Host: localhost Database: mc
-- ------------------------------------------------------
-- Server version 8.0.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS = @@CHARACTER_SET_RESULTS */;
/*!4... |
<reponame>jerelynlee/census
-- P39E. FAMILY TYPE BY PRESENCE AND AGE OF RELATED CHILDREN (NATIVE HAWAIIAN AND OTHER PACIFIC ISLANDER ALONE HOUSEHOLDER)
-- designed to work with the IRE Census bulk data exports
-- see http://census.ire.org/data/bulkdata.html
CREATE TABLE ire_p39e (
geoid VARCHAR(11) NOT NULL,
sumlev ... |
<reponame>ph1p/gotrue
DROP FUNCTION IF EXISTS auth.uid() CASCADE; |
ALTER TABLE SITUASJON
ADD OPPFOLGING_UTGANG TIMESTAMP; |
-- file:aggregates.sql ln:90 expect:true
select ten, sum(distinct four) from onek a
group by ten
having exists (select 1 from onek b
where sum(distinct a.four + b.four) = b.four)
|
ALTER TABLE subtasks ADD COLUMN number INTEGER NOT NULL DEFAULT 1;
UPDATE subtasks SET number = (SELECT count(1) + 1 FROM subtasks AS other WHERE other.task_id = subtasks.task_id AND other.id < subtasks.id);
CREATE UNIQUE INDEX idx_subtask_number ON subtasks(task_id, number); |
<filename>files/database/stock_db/init/create_users.sql
CREATE USER stock_adm WITH ENCRYPTED PASSWORD '<PASSWORD>';
CREATE USER producers_integrator WITH ENCRYPTED PASSWORD '<PASSWORD>';
CREATE USER details_integrator WITH ENCRYPTED PASSWORD '<PASSWORD>';
CREATE USER stock_integrator WITH ENCRYPTED PASSWORD '<PASSWORD>... |
<filename>tp5_base.sql
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50633
Source Host : localhost
Source Database : tp5_base
Target Server Type : MySQL
Target Server Version : 50633
File Encoding : utf-8
... |
<gh_stars>1-10
use [IBatisNet]
INSERT INTO [Suppliers] VALUES (1, 'XYZ Pets', 'AC', '600 Avon Way', '', 'Los Angeles', 'CA', '94024', '212-947-0797')
INSERT INTO [Suppliers] VALUES (2, 'ABC Pets', 'AC', '700 Abalone Way', '', 'San Francisco', 'CA', '94024', '415-947-0797')
INSERT INTO [Categories] VALUES ('FISH', 'Fi... |
-- Verify add_down_column_nodes
BEGIN;
SELECT is_down FROM nodes WHERE 0;
ROLLBACK;
|
ALTER TABLE {$NAMESPACE}_nuance.nuance_item
DROP sourceLabel;
|
DELETE FROM identity_recovery_tokens WHERE selfservice_recovery_flow_id IS NULL |
<reponame>isuruuy429/product-ei
CREATE TABLE IF NOT EXISTS Students(
studentNumber INTEGER,
name VARCHAR(50),
phone VARCHAR(50),
state VARCHAR(50),
country VARCHAR(50)
);
CREATE UNIQUE INDEX students_pk ON Students ( studentNumber );
insert into Students values (001, '<NAME>','0094719411002', 'CMB', 'LK');
inse... |
INSERT INTO SUPPLIERS VALUES(101, 'Acme, Inc.', '99 Market Street', 'Groundsville', 'CA', '95199');
INSERT INTO SUPPLIERS VALUES(150, 'The High Ground', '100 Coffee Lane', 'Meadows', 'CA', '93966');
INSERT INTO SUPPLIERS VALUES(49, 'Superior Coffee', '1 Party Place', 'Mendocino', 'CA', '95460');
INSERT INTO COFFEES VAL... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Ноя 22 2020 г., 14:36
-- Версия сервера: 10.4.11-MariaDB
-- Версия PHP: 7.4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SE... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- 主機: localhost
-- 產生時間: 2019 年 07 月 07 日 15:09
-- 伺服器版本: 10.1.31-MariaDB
-- PHP 版本: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_... |
<gh_stars>0
SELECT t.name
FROM towns AS t
ORDER BY t.name ASC;
SELECT d.name
FROM departments AS d
ORDER BY d.name ASC;
SELECT e.first_name, e.last_name, e.job_title, e.salary
FROM employees AS e
ORDER BY salary DESC; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.