sql stringlengths 6 1.05M |
|---|
<reponame>BapaLruH/job4j<filename>movie_theater/src/main/resources/dbmigration/migration.sql
create database movie_theater;
create table movies (
id serial primary key not null,
name varchar(255),
link varchar(255)
);
create table users (
id serial primary key not null,
name varchar(255),
ph... |
alter table scripts drop constraint scripts_forked_from_script_id_fkey;
alter table scripts add column description text;
grant update (name, description) on scripts to phosphor_api;
create table script_likes (
script_id uuid not null references scripts(id) on update restrict on delete restrict,
liker_id uuid n... |
<gh_stars>1000+
ALTER TABLE {$NAMESPACE}_conpherence.conpherence_thread
ADD imagePHIDs LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL AFTER title;
UPDATE {$NAMESPACE}_conpherence.conpherence_thread
SET imagePHIDS = '[]';
|
<reponame>tverona1/yugabyte-db
-- Copyright (c) YugaByte, Inc.
DROP TABLE IF EXISTS metric_label;
DROP TABLE IF EXISTS metric;
|
-- @testpoint: opengauss关键字defined(非保留),作为函数名 带单引号、反引号时 合理报错
--关键字不带引号-成功
drop function if exists defined(i integer);
create function defined(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
select defined(3);
--清理环境
drop function defined(i integer);
--关键字带双引号-成功
drop function if ex... |
-- Use this database for filling in the table
USE burgerDB;
INSERT INTO burgers (burger_name, devoured)
VALUES
("Animal Style", true),
("Protein Style", false),
("Shake Shack", false),
("Burger Supreme", true);
SELECT * FROM burgers; |
<reponame>Rob-Costello/mploy
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 14, 2018 at 02:35 PM
-- Server version: 5.6.38
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `hyperext_mploy_... |
<reponame>pi-id/etl-framework<filename>backend/domain_script.sql
-- skripta je modificirana tako da su
-- promijenjena imena tablicama i scheme kojima pripadaju
CREATE TABLE [dbo].[domain_directory](
[domain_directory_sid] [int] IDENTITY(1,1) NOT NULL,
[datasource_sid] [int] NULL,
[domain_... |
<gh_stars>0
SELECT b.*, r.cost
FROM bookings b
JOIN rides r on b.id = r.booking_id
WHERE r.car_id=?; |
/*CONTRIBUIÇÃO DE ANDREUS TIMM*/
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TI... |
DECLARE @ParentId uniqueidentifier, @StatusId uniqueidentifier, @AccountId uniqueidentifier
SELECT @ParentId = ListItemId, @StatusId = StatusId, @AccountId = LastUpdateAccountId from ListItem Where ParentID IS NULL And Name = 'ICD10'
INSERT INTO ListItem ([Name], [Description], ParentId, StatusId, LastUpdateTimestamp... |
<reponame>Dadinaks/HELPJUR
select distinct
bkdosprt.age AGENCE,
bkcli.ges code_gestionnaire,
bkcli.cli CODE_CLIENT,
trim(replace(replace(replace(replace(bkcli.nomrest,';',' '),chr(10),' '),chr(9),' '),chr(13),'')) NOM,
bkcli.qua CODE_QUALITE,
(select lib1 from bknom where ctab = '188' and cacc =... |
<filename>sql/senselink_20190829.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50617
Source Host : localhost:3306
Source Database : housemanager
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2018-09-29 23... |
<reponame>jung4891/PHP
-- MySQL dump 10.13 Distrib 5.1.71, for redhat-linux-gnu (x86_64)
--
-- Host: localhost Database: stc
-- ------------------------------------------------------
-- Server version 5.1.71
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@... |
<gh_stars>0
CREATE DATABASE car_rental;
DROP DATABASE car_rental;
CREATE TABLE categories (
id INT(14) PRIMARY KEY AUTO_INCREMENT,
category VARCHAR(250) NOT NULL,
daily_rate DECIMAL(10,2) DEFAULT 0,
weekly_rate DECIMAL(10,2) DEFAULT 0,
monthly_rate DECIMAL(10,2) DEFAULT 0,
weekend_rate DECIMAL(10,2) DEFAULT 0
... |
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : island
Source Server Type : MySQL
Source Server Version : 50505
Source Host : localhost
Source Database : island
Target Server Type : MySQL
Target Server Version : 50505
File Encoding : utf-8
Date: 05/17/2019 16... |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 20, 2017 at 10:02 AM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... |
<filename>Day 05/ex11/ex11.sql
SELECT UPPER(user_card.last_name) AS 'NAME', user_card.first_name, subscription.price
FROM user_card
INNER JOIN member
ON user_card.id_user = member.id_user_card
INNER JOIN subscription
ON member.id_sub = subscription.id_sub
WHERE subscription.price > 42
ORDER BY last_name ASC, first_name... |
-- analyze4.test
--
-- db eval {
-- SELECT idx, stat FROM sqlite_stat1 WHERE tbl='t1' ORDER BY idx;
-- }
SELECT idx, stat FROM sqlite_stat1 WHERE tbl='t1' ORDER BY idx; |
USE employeesDB;
INSERT INTO department (name)
VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal");
INSERT INTO role (title, salary, department_id)
VALUES ("CEO", "100000", "7"),
("Software Developer", "70000", "2"),
("Lawyer", "60000", "3"),
("Accountant", "70000", "6"),
("Salesperson", "40000", "1");
INS... |
<reponame>zhangbaoxi/cmssp<gh_stars>0
INSERT INTO `cmssp_point`(`id`, `tag`, `channelId`, `name`, `tone`, `effect`, `locate`, `expr`, `ext_data`) VALUES
(
"",
"",
"",
"迎香穴",
"yíng xiāng xué",
"疏散风热,通利鼻窍。",
"",
"",
"");
INSERT INTO `cmssp_point`(`id`, `tag`, `channelId`, `name`, `tone`, `effect`, `locate`, `... |
<gh_stars>0
-- +goose Up
-- +goose StatementBegin
SELECT 'up SQL query';
-- +goose StatementEnd
INSERT INTO interest (id, interests) VALUES (unhex(replace(uuid(),'-','')), 'Computer science');
INSERT INTO interest (id, interests) VALUES (unhex(replace(uuid(),'-','')), 'Software engineer');
-- +goose Down
-- +goose St... |
/* Drop Tables */
IF ObJECt_ID('[cus_equipment]') IS NOT NULL DROP TABLE [cus_equipment];
IF ObJECt_ID('[cus_custom]') IS NOT NULL DROP TABLE [cus_custom];
/* Create Tables */
CREATE TABLE [cus_custom]
(
-- 用户id
[id] varchar(50) NOT NULL,
-- 用户姓名
[name] varchar(20) NOT NULL,
-- 客户地址
[address] varchar(100),... |
<filename>328 inter to SQL/328hw6/sell_book_test.sql
/*=====
testing script for function sell_book
(note: because it runs COMMITTING transactions as
part of tests, running pop-bks.sql at beginning
and at end of testing script)
by: <NAME>
last modified: 2020-03-07
=====*/
set feedback off
start pop-bks.sq... |
<reponame>soorya54/mattermost-server<gh_stars>0
SET @preparedStatement = (SELECT IF(
NOT EXISTS(
SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = 'Threads'
AND table_schema = DATABASE()
AND column_name = 'DeleteAt'
),
'ALTER TABLE Threads ADD COLUMN DeleteAt bigint... |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... |
BEGIN;
drop index if exists sub_repo_permissions_repo_id_user_id_uindex;
create unique index sub_repo_permissions_repo_id_user_id_version_uindex
on sub_repo_permissions (repo_id, user_id, version);
create index sub_repo_perms_version ON sub_repo_permissions (version);
COMMIT;
|
<filename>contrib/spi/refint--1.0.sql
/* contrib/spi/refint--1.0.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION refint" to load this file. \quit
CREATE FUNCTION check_primary_key()
RETURNS trigger
AS 'MODULE_PATHNAME'
LANGUAGE C;
CREATE FUNCTION check_fo... |
-- MySQL dump 10.13 Distrib 5.1.73, for debian-linux-gnu (x86_64)
--
-- Host: 192.168.3.11 Database: removeduplicatelines
-- ------------------------------------------------------
-- Server version 5.6.34-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=... |
<reponame>NCIP/cabio
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
alter table ZSTG_PID_INTR_PARTPANT_LOC enable constraint SYS_C0020996;
alter table ZSTG_PID_INTR_PARTPANT_LOC enable constraint SYS_C0020997;
... |
-- date time functions
-- [SPARK-16836] current_date and current_timestamp literals
select current_date = current_date(), current_timestamp = current_timestamp();
-- [SPARK-22333]: timeFunctionCall has conflicts with columnReference
create temporary view ttf1 as select * from values
(1, 2),
(2, 3)
as ttf1(curre... |
<reponame>gabrieltr/oracle_scripts<filename>recompile.sql
spool invalid_pre.lst
select substr(owner,1,12) owner,
substr(object_name,1,30) object,
substr(object_type,1,30) type, status from
dba_objects where status <>'VALID';
spool off
-- recompile
@?/rdbms/admin/utlrp.sql
|
<filename>GitHub - Chapter 8/Excercise 8.4/ch8_excercise_8_4.sql
CREATE TABLE months (
month_number tinyint unsigned primary key,
month_name varchar(15),
CHECK (month_number <= 12)
);
DESCRIBE months;
INSERT INTO months VALUES (1, 'January');
INSERT INTO months VALUES ('February');
INSERT INTO months VALUES ('Feb... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 31, 2020 at 07:53 AM
-- Server version: 10.4.16-MariaDB
-- PHP Version: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<reponame>anders94/bitcoin-supply.com<gh_stars>0
-----------------
-- table: blocks
-----------------
CREATE TABLE IF NOT EXISTS blocks (
created TIMESTAMP NOT NULL DEFAULT now(),
block_hash TEXT,
block_size BIGINT,
stripped_size BIGINT,
weight BIGINT,
... |
select name from students where marks > 75 order by substr(name,-3) , id;
|
CREATE TABLE TypyPojazdow (id_typu_pojazdu INT PRIMARY KEY IDENTITY(1, 1), typ_pojazdu NVARCHAR(30))
CREATE TABLE Pojazdy (
id_pojazdu INT PRIMARY KEY IDENTITY(1, 1),
id_typu_pojazdu INT REFERENCES TypyPojazdow(id_typu_pojazdu),
marka NVARCHAR(30),
model NVARCHAR(30),
rok_produkcji INT,
liczba_miejsc INT... |
<gh_stars>0
-- write insert queries to populate the burgers table with at least three entries.
INSERT INTO burgers (burger_name, devoured)
VALUES
('Summer Thyme Burger', false),
('The Silentil Night Burger', true),
('Poblano Picasso Burger', false),
('Paranormal Pepper Jack-tivity Burger', false); |
<gh_stars>1-10
CREATE PROCEDURE spuHorario
@Horario_Id INT,
@Horario_De TIME(0),
@Horario_Ate TIME(0),
@DiaSemana_Id INT
AS
BEGIN
SELECT @Horario_Id AS Horario_Id,
@Horario_De AS Horario_De,
@Horario_Ate AS Horario_Ate,
@DiaSemana_Id AS DiaSemana_Id
INTO #TabParametros
UPDATE... |
<filename>dbms_bpmn_integration/s_su/grants.sql
--liquibase formatted sql
--changeset artemov_i:grants dbms:postgresql runAlways:true runOnChange:true splitStatements:false stripComments:false
--гранты на использование
GRANT USAGE ON SCHEMA pkg_json_user TO ${user.connect};
GRANT USAGE ON SCHEMA pkg_json_patcher TO $... |
<reponame>joalvm/xena_graphql<gh_stars>1-10
drop type if exists public.marital_status_types;
create type marital_status_types as enum (
'NO_ESPECIFICADO',
'SOLTERO',
'CASADO',
'CONVIVIENTE',
'DIVORCIADO',
'VIUDO'
);
|
<gh_stars>1-10
drop table boris;
create table boris (byte varchar2(8));
insert into boris(byte) values('01010100');
insert into boris(byte) values('01101000');
insert into boris(byte) values('01100101');
insert into boris(byte) values('00100000');
insert into boris(byte) values('01110010');
insert into boris(by... |
<filename>pgAdmin4/pgAdmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/packages/templates/package/ppas/9.2_plus/nodes.sql
SELECT nsp.oid, nspname AS name
FROM pg_namespace nsp
WHERE nspparent = {{scid}}::oid
AND nspobjecttype = 0
ORDER BY nspname; |
-- 1) Find the film titles that are R rated and have less than 1 hour of length.
SELECT f.title
FROM film f
WHERE f.rating = 'R'
AND f.length <= 60
-- EXTRA: Order the list of films above by length - from longer to shorter.
SELECT f.title
FROM film f
WHERE f.rating = 'R'
AND f.length <= 60
ORDER BY f.titl... |
<reponame>Shuttl-Tech/antlr_psql
-- file:rules.sql ln:442 expect:true
insert into rtest_view1 values (5, 'item 5', 't')
|
create proc cau7
@from smallint, @to smallint
as
select ProductID, ProductName, UnitPrice, UnitsInStock from Products where UnitsInStock between @from and @to
exec cau7 5, 10 |
CREATE PROC [dbo].[DatabasePermissions_Upd](@DatabasePermissions dbo.DatabasePermissions READONLY,@InstanceID INT,@SnapshotDate DATETIME2(3))
AS
SET XACT_ABORT ON
DECLARE @Ref VARCHAR(30)='DatabasePermissions'
IF NOT EXISTS(SELECT 1 FROM dbo.CollectionDates WHERE SnapshotDate>=@SnapshotDate AND InstanceID = @InstanceI... |
select id, nombre, cantidad, precio
from producto
where id = :id |
<reponame>rafaelmartinsdacosta/docker-compose-java-app
CREATE TABLE IF NOT EXISTS person (
id serial NOT NULL primary key,
address varchar(100) NOT NULL,
first_name varchar(80) NOT NULL,
gender varchar(6) NOT NULL,
last_name varchar(80) NOT NULL
) |
--
-- Table structure for table `readings`
--
CREATE TABLE `readings` (
`ID` int(11) NOT NULL,
`datetime` datetime NOT NULL,
`temp` float NOT NULL,
`hum` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `readings`
--
ALTER TABLE `readings`
AD... |
<gh_stars>1-10
INSERT INTO opm.dedeposit (id, deleted, label, deposit, interest, total, calculation_result_id) VALUES (1, false, 'PRE_10_82', 36917.15, 17687.71, 54604.86, 1);
INSERT INTO opm.dedeposit (id, deleted, label, deposit, interest, total, calculation_result_id) VALUES (2, false, 'POST_10_82', 13347.44, 36747.... |
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 5.6.21 : Database - landlords
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHEC... |
<filename>docker/timescale/007_sensor_data_rollup_tables.sql
CREATE TABLE IF NOT EXISTS sensor_data_rollup_15m (
time TIMESTAMP NOT NULL,
device_id TEXT NOT NULL,
temperature DOUBLE PRECISION,
humidity DOUBLE PRECISION,
no2 DOUBLE PRECISION,
so2 D... |
<reponame>dnaeon/cl-covid19<gh_stars>10-100
DROP VIEW time_series_per_country;
--;;
CREATE VIEW time_series_per_country
AS
SELECT
timestamp,
confirmed,
deaths,
recovered,
active,
confirmed - LAG(confirmed, 1, 0) OVER (
PARTITION BY country_id
ORDER BY timestamp
) new_confirmed,
deaths - LAG... |
CREATE TABLE TestTable1
(
TestTable1Id INT IDENTITY(1,1),
TestInt INT NOT NULL DEFAULT 1,
TestString NVARCHAR(10) NOT NULL DEFAULT 'ABCDEFGH',
TestDateTime DATETIME NOT NULL DEFAULT GETDATE(),
TestDecimal DECIMAL(20,10) NOT NULL,
TestBit BIT NOT NULL,
TestGuid UNIQUEIDENTIFIER NOT NULL DEFAULT NEWID()
)... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : jeu. 13 août 2020 à 15:31
-- Version du serveur : 10.4.11-MariaDB
-- Version de PHP : 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 S... |
-- MySQL dump 10.13 Distrib 5.7.29, for Linux (x86_64)
--
-- Host: 127.0.0.1 Database: laravel6
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.44-MariaDB-0ubuntu0.18.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULT... |
<reponame>2002-feb24-net/angelica-code
/* add at least 3 records into each table */
INSERT INTO [dbo].[Products] ([ID], [Name], [Price]) VALUES (1, "Macbook", 1000);
INSERT INTO [dbo].[Products] ([ID], [Name], [Price]) VALUES (2, "PC", 800);
INSERT INTO [dbo].[Products] ([ID], [Name], [Price]) VALUES (3, "TV", 500);
I... |
<reponame>ro-msg-spring-training/online-shop-Ducuvlad
create table if not exists Supplier_tbl(
ID int identity primary key,
name Varchar(30) not null
);
create table if not exists ProductCategory_tbl(
ID int not null identity primary key,
n... |
CREATE DATABASE TableRelations
COLLATE Cyrillic_General_100_CI_AI
GO
USE TableRelations
GO
CREATE TABLE Passports(
PassportID INT PRIMARY KEY,
PassportNumber VARCHAR(50)
)
GO
CREATE TABLE Persons(
PersonId INT NOT NULL,
FirstName NVARCHAR(50),
Salary DECIMAL(15, 2),
PassportID INT
)
GO
INSERT I... |
-- phpMyAdmin SQL Dump
-- version 3.3.2deb1ubuntu1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 28, 2016 at 11:28 AM
-- Server version: 5.1.73
-- PHP Version: 5.3.2-1ubuntu4.30
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!401... |
<filename>database.sql
USE [master]
GO
/****** Object: Database [LibraryManagement] Script Date: 7/12/2021 4:05:30 PM ******/
CREATE DATABASE [LibraryManagement]
CONTAINMENT = NONE
ON PRIMARY
( NAME = N'LibraryManagement', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.SQLEXPRESS\MSSQL\DATA\Li... |
CREATE TRIGGER deleteJson_guns
on dbo.guns
AFTER delete
as
declare
@id int
,@gunTypeId int
,@power decimal(5,2)
,@hasrapidFire bit
,@isTurret bit
,@playerId int
,@json nvarchar(max)
DECLARE guns_del_cur CURSOR FOR
SELECT * from deleted
OPEN guns_del_cur
FETCH NEXT FROM guns_del_cur
INTO @id
,@gunTypeId... |
<gh_stars>1-10
UPDATE "user" SET point = point + ? WHERE username = ?; |
<filename>contributions/sqlServer/XPKDepartment.pkey.sql
ALTER TABLE [Department]
ADD CONSTRAINT [XPKDepartment] PRIMARY KEY CLUSTERED ([department_id] ASC)
|
<filename>odmf/db/sql/views/variables.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
--
-- Name: vari... |
<reponame>jdkoren/sqlite-parser
-- crash5.test
--
-- db eval {
-- pragma auto_vacuum = 1;
-- CREATE TABLE t1(a, b, c);
-- INSERT INTO t1 VALUES('1111111111', '2222222222', c);
-- }
pragma auto_vacuum = 1;
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('1111111111', '2222222222', c);
|
<gh_stars>100-1000
-- walfault.test
--
-- db eval { PRAGMA main.journal_mode = WAL }
PRAGMA main.journal_mode = WAL |
<reponame>Shuttl-Tech/antlr_psql
-- file:publication.sql ln:31 expect:true
CREATE TABLE pub_test.testpub_nopk (foo int, bar int)
|
<gh_stars>10-100
REPLACE
INTO `chii_subject_topics`
VALUES (3934, 827, 53507, '是否能盖棺论定SD的历史地位', 1385429895, 1385745808, 28, 1, 1),
(4846, 73544, 14382, '千呼万唤始出来。', 1407665652, 1407769003, 11, 1, 0),
(5000, 93714, 143752, '垃圾片子,除了卖噱头之外一无是处。可笑nc粉还想和巨人比高。你有见过PP粉要和攻壳比高?', 1410528860, 1412335055, 240, 1, 1... |
--liquibase formatted sql
--changeset vrafael:framework_20200614_Development_06_DevRecordFind logicalFilePath:path-independent splitStatements:true endDelimiter:\nGO runOnChange:true
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
--------- framework "RecordSQL" v2 (https://github.com/vrafael/recordsql-database) -------... |
\c userservice;
INSERT INTO users (username, email, pass_hash, rank) VALUES ('admin', 'admin', '$2a$05$bfl5teobsWmSk76CiG9IHuBnt94qAirXVGOnbyupVjO9K.8sOn8CK', 2) |
<reponame>MammothGrowth/dbt-taboola<gh_stars>0
with base as (
select
id,
name,
start_date,
nullif(end_date, '9999-12-31'::DATE) as end_date,
is_active,
lower(status) as status,
spent as spend,
nullif(tracking_code, 'None') as tracking_code
f... |
/****** Object: StoredProcedure [dbo].[LookupEUSFromExperimentSamplePrep] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[LookupEUSFromExperimentSamplePrep]
/****************************************************
**
** Desc:
** Get values for EUS field from the sample p... |
/**
* Working in Nooper_Shop
*/
use `nooper_shop`
/**
* Part 1: System
*/
/**
* Part 2: Manager
*/
insert into `managers`(`id`, `role_id`, `name`, `phone`, `pwd`, `last_edit_time`, `add_time`) values
(2, 1, 'Goodman.Saul', '<PASSWORD>', SHA2('goodwin$000', 512), UNIX_TIMESTAMP(), UNIX_TIM... |
alter table category add constraint UNI_CATEGORY_NAME unique (name);
insert into category (revision, name) values (1, 'library_books') on conflict do nothing;
update translation set category_ids = array(select id from category where name = 'library_books');
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 22, 2017 at 01:47 AM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
ALTER TABLE pipeline.user ADD blocked boolean DEFAULT false;
|
update ACT_GE_PROPERTY set VALUE_ = '6.1.1.0' where NAME_ = 'schema.version';
alter table ACT_RU_JOB add column CREATE_TIME_ timestamp(3) NULL;
alter table ACT_RU_TIMER_JOB add column CREATE_TIME_ timestamp(3) NULL;
alter table ACT_RU_SUSPENDED_JOB add column CREATE_TIME_ timestamp(3) NULL;
alter table ACT_RU_DEADLETT... |
CREATE TABLE IF NOT EXISTS catalogdb.sdss_dr16_qso (
sdss_name TEXT,
ra DOUBLE PRECISION,
dec DOUBLE PRECISION,
plate INTEGER,
mjd INTEGER,
fiberid INTEGER,
autoclass_pqn TEXT,
autoclass_dr14q TEXT,
is_qso_qn INTEGER,
z_qn DOUBLE PRECISION,
random_select INTEGER,
z_10k DO... |
<filename>Ad Hoc Query/Yuki Huang/Temp List/2020-01-26 PRJ - Hard cap vs Previous Approved amount Accept% Analysis.sql
/*
Steps:
1.Accepted from PRJ Campaign
2.Find the hard cap for different state
3.Find the previous approved amount
4.Calculate the conversion% and break down by month
5.Add flags
a) If current_approv... |
CREATE TABLE [dbo].[WidgetDefinition] (
[WidgetDefinitionId] UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL,
[Name] VARCHAR (50) NOT NULL,
[AssemblyType] VARCHAR (200) NOT NULL,
CONSTRAINT [PK_WidgetDefinition] PRIMARY KEY CLUSTERED ([WidgetDefinitionId] ASC)
);
|
CREATE TABLE `block` (
`number` bigint(10) not null primary key,
`witnessid` bigint(10) not null,
`timestamp` int not null,
`parenthash` varchar(64) not null,
`witnessaddr` varchar(64) not null,
`witnesssig` varchar(128) not null
index `idx_timestamp` (`timestamp`)
) default charset=utf8;
C... |
-- ----------------------------
-- Records of 2020rg_group3_t_employeebaseinfo
-- ----------------------------
-- INSERT INTO `2020rg_group3_t_employeebaseinfo` VALUES (1, 'SBM_000001', '赵钱孙', '男', '设备管理部', '维修工', 24, '本科', '维修证', 'xxx001', '在职', '18702364788', '0');
-- INSERT INTO `2020rg_group3_t_employeebaseinfo` V... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.2 (Debian 12.2-2.pgdg100+1)
-- Dumped by pg_dump version 13.4 (Debian 13.4-2)
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... |
<gh_stars>0
-- sqls for topic[id=5617825934292598972, name=raw_pipeline_monitor]
-- drop, commented default
-- DROP TABLE IF EXISTS topic_raw_pipeline_monitor;
-- create
CREATE TABLE topic_raw_pipeline_monitor(
id_ VARCHAR(60),
data_ JSON,
tenant_id_ VARCHAR(32),
insert_time_ DATETIME,
update_time_ DATETIME,
... |
<reponame>s1018720000/asporject
-- ----------------------------
-- ElasticSearch任务表
-- ----------------------------
DROP TABLE IF EXISTS MONI_ELASTIC;
CREATE TABLE MONI_ELASTIC (
ID INT(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
ASID VARCHAR(30) DEFAULT NULL COMMENT 'ASID',
TICKET_NUMBER VARCHAR(20) DEFAULT NULL ... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Waktu pembuatan: 14 Apr 2020 pada 08.31
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 09, 2016 at 03:19 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 7.0.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 11, 2022 at 02:19 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
<filename>readonly/legacy-schema.sql
/*
This is the schema for our legacy databases. It's only in the project here for ease of access
In other legacy database situations this might be external to the project.
*/
create TABLE person (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name TEXT);
|
<gh_stars>1-10
/*
-- Query: SELECT * FROM mark
LIMIT 0, 100
-- Date: 2020-04-20 23:33
*/
INSERT INTO `mark` (`id`,`name`,`created_at`,`updated_at`,`deleted_at`,`id_provider`) VALUES (1,'JBL','2020-04-10 21:51:33',NULL,'2020-04-20 20:50:00',2);
INSERT INTO `mark` (`id`,`name`,`created_at`,`updated_at`,`deleted_at`,`id_... |
<reponame>BugsUK/FindApprenticeship<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Stored Procedures/uspTrainingProviderSelectCountByEmployerId.sql
CREATE PROCEDURE [dbo].[uspTrainingProviderSelectCountByEmployerId]
@EmployerId INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result ... |
<gh_stars>1-10
ALTER TABLE Users
DROP CONSTRAINT [PK_Users_CompositeIdUsername]
ALTER TABLE Users
ADD CONSTRAINT PK_Users_Id
PRIMARY KEY(Id)
ALTER TABLE Users
ADD CONSTRAINT CK_Users_UsernameLength
CHECK(LEN(Username)>=3)
|
USE [VipunenTK_SA]
GO
/****** Object: View [dbo].[v_sa_7_7_Ammatillisen_koulutuksen_opettajat_kelpoisuus_koulutus] Script Date: 21.2.2020 21:36:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[v_sa_7_7_Ammatillisen_koulutuksen_opettajat_kelpoisuus_koulutus]... |
CREATE USER caliper_cli;
CREATE DATABASE caliper_log WITH OWNER caliper_cli;
\c caliper_log;
\c - caliper_cli;
CREATE TABLE IF NOT EXISTS execution_logs
(
id SERIAL PRIMARY KEY,
translated INTEGER NOT NULL,
failed INTEGER NOT NULL,
last_id INTEGER NOT NULL,
date DATE NOT NULL
);
CREATE TABLE IF NO... |
create table t (i int generated by default as identity); |
<reponame>kfbow/fishbowl<filename>graphql-server/migrations/1588309975119_alter_table_public_games_alter_column_num_entries_per_player/down.sql<gh_stars>100-1000
ALTER TABLE "public"."games" ALTER COLUMN "num_entries_per_player" TYPE integer;
ALTER TABLE ONLY "public"."games" ALTER COLUMN "num_entries_per_player" DROP... |
/*
Usage:
SELECT * FROM ZGWCoreWeb.vwSearchMessages WHERE Security_Entity_SeqID = 1
*/
-- =============================================
-- Author: <NAME>
-- Create date: 08/19/2011
-- Description: Returns messages from ZGWCoreWeb.Messages
-- given the Message_SeqID. If Message_SeqID = -1
-- all messages are returne... |
-- file:tstypes.sql ln:191 expect:true
SELECT 'a:1 b:3'::tsvector @@ 'a <2> b'::tsquery AS "true"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.