sql stringlengths 6 1.05M |
|---|
/****** Object: View [dbo].[V_GetAnalysisJobsForArchiveBusy] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_GetAnalysisJobsForArchiveBusy]
AS
SELECT AJ.AJ_jobID, DS.Dataset_ID, DS.Dataset_Num, DS.DS_created, DS.DS_state_ID
FROM dbo.T_Analysis_Job AJ
INNER JOIN dbo.T_D... |
<reponame>harsshi/Online-allocation-of-Cab-using-GPS
CREATE TABLE Final__Transacions
(
T_ID INT NOT NULL,
Amount INT NOT NULL,
Payment_Details INT NOT NULL,
PRIMARY KEY (T_ID)
);
INSERT INTO Final__Transacions VALUES(101,1000,PAID,)
INSERT INTO Final__Transacions VALUES(104,100,PAID)
INSERT INTO Final_... |
/*
Navicat MySQL Data Transfer
Source Server : sunyan
Source Server Version : 50517
Source Host : localhost:3306
Source Database : jstorm
Target Server Type : MYSQL
Target Server Version : 50517
File Encoding : 65001
Date: 2017-12-12 11:39:24
*/
SET FOREIGN_KEY_CHECKS=0;
-- -----... |
create table NEWS (
id bigint primary key auto_increment,
title text,
content text,
url varchar(100),
created_at timestamp default now(),
updated_at timestamp default now()
);
create table LINKS_TO_BE_PROCESSED (
link varchar(2000)
);
create table LINKS_ALREADY_PROCESSED (
link varchar... |
select name, title, auto_created, description, disk_size_gb, source_disk, akas, project
from gcp.gcp_compute_snapshot
where name = '{{ resourceName }}' |
UPDATE `sp_metric_expression` SET `enable` = 0 WHERE `id` in (SELECT `id` FROM (SELECT `id` FROM `sp_metric_expression` WHERE `enable` = 1 AND `expression` LIKE "%\"alias\":\"service_node\"%") AS `ids`);
INSERT `sp_metric_expression`(`attributes`,`expression`,`version`) VALUES("{}","{\"alias\":\"service_node\",\"filter... |
<filename>examples/demonstration/mssql/select_rev.sql<gh_stars>1-10
SELECT c, d FROM dbo."B"; |
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/unencrypted/Opengauss_Function_Keyword_Unencrypted_Case0023.sql
-- @testpoint: opengauss关键字unencrypted非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index... |
DROP KEYSPACE IF EXISTS nodespace;
CREATE KEYSPACE IF NOT EXISTS nodespace WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE TABLE nodespace.sample (
primaryRowKey text,
secondaryRowKey text,
primaryColumnKey timeuuid,
secondaryColumnKey text,
atime timestamp,
abo... |
<filename>prisma/migrations/20211005145923_changes_on_talbes/migration.sql
/*
Warnings:
- The primary key for the `perfil` table will be changed. If it partially fails, the table could be left without primary key constraint.
- You are about to drop the column `idProfile` on the `perfil` table. All the data in th... |
--film tablosunda bulunan ve film ismi (title) 'n' karakteri ile biten en uzun (length) 5 filmi sıralayınız.
--select title,length from film where title like '%n' order by length desc limit 5
--film tablosunda bulunan ve film ismi (title) 'n' karakteri ile biten en kısa (length) ikinci 5 filmi sıralayınız.
--select ti... |
insert into connectivity_information
values (2613 /*g_absperrarmatur*/, 'armaturenstellung', 'geschlossen'); |
<reponame>carolbezerra-dev/bash-exercises<gh_stars>0
-- INNER JOIN
-- 1
SELECT a.actor_id, CONCAT(a.first_name, ' ', a.last_name) AS 'Nome Completo', fa.film_id
FROM sakila.actor AS a
INNER JOIN sakila.film_actor AS fa ON a.actor_id = fa.actor_id;
-- 2
SELECT s.first_name, s.last_name, a.address
FROM sakila.staff AS s
... |
<filename>example/pgsql.sql
-- 创建表
DROP TABLE IF EXISTS public.dbcoder_table;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE public.dbcoder_table
(
id serial NOT NULL PRIMARY KEY, -- 主键(自动创建tableName_pkey自增序列)
t_smallserial smallserial,
t_bigserial ... |
<reponame>BartiDev/BartiCinemaApp
CREATE TABLE [Cinema].[Rooms] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Name] NVARCHAR (256) NOT NULL,
[CinemaId] INT NOT NULL,
[SeatsQty] INT NOT NULL,
CONSTRAINT [PK_Rooms] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [F... |
CREATE TABLE history
(
id BIGSERIAL PRIMARY KEY,
component_name VARCHAR(100),
old_status_value VARCHAR(16),
old_status_messages TEXT,
new_status_value VARCHAR(16),
new_status_messages TEXT,
timestamp BIGINT
)
|
CREATE TABLE "public"."ong" (
cnpj CHAR(18) NOT NULL PRIMARY KEY,
active BOOLEAN NOT NULL DEFAULT false,
foto VARCHAR(255) NOT NULL,
hashDelete VARCHAR(255) NOT NULL,
logradouro VARCHAR(50) NOT NULL,
razao_social VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL,
senha VARCHAR(255) NOT NULL,
numero VAR... |
<reponame>hid0/eraporsmk
INSERT INTO ref.mata_pelajaran_kurikulum VALUES (276, 300210000, 10, 0, 2, 3, 0, 0, 'A', NULL, '2014-11-07 20:00:00', '2018-08-12 23:39:17', '2016-04-08 22:30:00', '2018-08-12 23:39:17');
INSERT INTO ref.mata_pelajaran_kurikulum VALUES (276, 300210000, 11, 0, 2, 3, 0, 0, 'A', NULL, '2014-11-07 ... |
<filename>src/plugins/modeler/plsql/flow_modeler.pkb
create or replace package body flow_modeler
as
function render
(
p_region in apex_plugin.t_region
, p_plugin in apex_plugin.t_plugin
, p_is_printer_friendly in boolean
)
return apex_plugin.t_region_render_result
as
... |
--
-- Copyright 2004-2014 The Kuali Foundation
--
-- Licensed under the Educational Community License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.opensource.org/licenses/ecl2.php
--
-- Unless required by ap... |
--
-- acs-workflow/sql/sample-article-create.sql
--
-- Creates a sample article-authoring workflow to play with
--
-- @author <NAME> (<EMAIL>)
--
-- @creation-date 2000-05-18
--
-- @cvs-id $Id: sample-article-create.sql,v 1.1.1.1 2005/04/27 22:50:59 cvs Exp $
--
/* This table will hold one row for each case using this... |
-- @required(hanaMinimumVersion,4.00.000)
-- Supported only on HANA Cloud
-- ================================================================
-- APL_AREA, FORECAST
-- Description :
-- Assumption 1: the users & privileges have been created & granted (see apl_admin_ex.sql).
connect USER_APL password <PASSWORD>;
... |
<gh_stars>0
/* Create the database if it does not already exist */
CREATE DATABASE IF NOT EXISTS sliceofpy_db; |
/****** Object: Table [T_Instrument_Class] ******/
/****** RowCount: 32 ******/
/****** Columns: IN_class, is_purgable, raw_data_type, requires_preparation, x_Allowed_Dataset_Types, Params, Comment ******/
INSERT INTO [T_Instrument_Class] VALUES ('AB_Sequencer',1,'ab_sequencing_folder',0,null,null,'AB Next Gen Sequ... |
-- =============================================
-- Author: <NAME>
-- Create date: 2020-08-25
-- Updates:
-- 2020-08-25: data management for ticket HMCR-651 to addresss TH-65135, TH-64889
-- Description: - Load CONTRACT_TERM PARTY association based on the business area specified users :
-- BCeID\BCORBACH from... |
<filename>src/main/resources/liquibase/harness/change/expectedSql/postgresql/9/createSequence.sql
CREATE SEQUENCE IF NOT EXISTS public.test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1
|
<filename>sql/sql02.sql
CREATE TABLE IF NOT EXISTS `tb_torcedores` (
`id_torcedor` int(11) NOT NULL AUTO_INCREMENT,
`ds_nome` varchar(200) NOT NULL COMMENT 'Campo que armazena o nome do torcedor',
`ds_cpf` varchar(19) NOT NULL COMMENT 'Campo que armazena o cpf do torcedor',
`ds_cep` varchar(10) NOT NULL COMMENT... |
<reponame>panchaozhigithub/yii02
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50626
Source Host : localhost:3306
Source Database : yii02
Target Server Type : MYSQL
Target Server Version : 50626
File Encoding : 65001
Date: 2017-02-08 14:13:48... |
<reponame>arianvaldivieso/pos
-- appointments_can_be_any_person --
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `phppos_appointments` DROP FOREIGN KEY `phppos_appointments_ibfk_2`;
ALTER TABLE `phppos_appointments` CHANGE COLUMN `customer_id` `person_id` int(10) NULL DEFAULT NULL,
ADD CONSTRAINT `phppos_appointments_ibfk_2` ... |
<gh_stars>0
#
# Structure for table "edu_teacher"
#
drop table if exists edu_teacher;
create table edu_teacher (
id char(19) not null comment '讲师id',
name varchar(20) not null comment '讲师姓名',
intro varchar(500)... |
<gh_stars>0
-- this runs after the category_groups table is created.
-- add the new column and foreign key
alter table categories add grp tinyint unsigned after parent, add foreign key(grp) references category_groups(id);
-- copy parent categories into category_groups table
insert into category_groups (name) select c.n... |
--------------------------------------------------------
-- Constraints for Table GENRES
--------------------------------------------------------
SET VERIFY OFF
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
ALTER TABLE "GENRES" ADD CONSTRAINT "GENRES_PK" PRIMARY KEY ("GENRE_ID")
USING INDEX PCTFREE 10 INITRANS 2... |
<reponame>TinuMurani/FastTrackITFinalProject<filename>PatientsSchedule/PatientsSchedule.Data/dbo/Stored Procedures/spAppointments_Insert.sql
CREATE PROCEDURE [dbo].[spAppointments_Insert]
@PatientId int,
@AppointmentDate DATETIME2(7),
@AppointmentDuration NVARCHAR(8)
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO Appointm... |
<reponame>azist/azos-social-providers
SELECT G_OWN AS G_Owner
, G_VOL AS G_CommentVolume
, DIM AS Dimension
, CNT AS Count
, CDT AS Create_Date
FROM tbl_commentvol
WHERE G_OWN = ?pNode AND G_VOL = ?pVol |
<reponame>Balox/parking365<gh_stars>0
-- ============================================================
-- Tabla tipovehiculo
-- ============================================================
create table admin.tipovehiculo (
idtipovehiculo integer not null,
nombre varchar (100) not null,
estadoregistro char(1) defau... |
<reponame>aldiabdumalik/ben-sound<filename>database/comprof.sql
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.33 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 11.2.0.621... |
SELECT name FROM people WHERE id IN (SELECT person_id FROM directors WHERE movie_id IN (SELECT movie_id FROM ratings WHERE rating >= 9)); |
<reponame>nabeelkhan/Oracle-DBA-Life
REM FILE NAME: tx_rbs.sql
REM LOCATION: System Monitoring\Reports
REM FUNCTION: Generate a report of active rollbacks
REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1
REM PLATFORM: non-specific
REM REQUIRES: v$lock,v$process,v$rollname
REM
REM This is a part of the Kn... |
<gh_stars>0
SET foreign_key_checks = 0;
#
# TABLE STRUCTURE FOR: attributes
#
DROP TABLE IF EXISTS `attributes`;
CREATE TABLE `attributes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
`sort_order` int(11) NOT NULL,
`created_by` int(11) NOT NU... |
DROP INDEX idx_ak_created;
DROP INDEX idx_ak_serie;
DROP INDEX idx_ak_serie_singer;
DROP INDEX idx_ak_songtypes;
DROP INDEX idx_ak_songorder;
DROP INDEX idx_ak_title;
DROP INDEX idx_ak_singer;
DROP INDEX idx_ak_language;
DROP INDEX idx_ak_year;
DROP INDEX idx_ak_kid;
|
set define off verify off feedback off
whenever sqlerror exit sql.sqlcode rollback
--------------------------------------------------------------------------------
--
-- ORACLE Application Express (APEX) export file
--
-- You should run the script connected to SQL*Plus as the Oracle user
-- APEX_050000 or as the owner ... |
CREATE TABLE [WebService].[WebServiceConsumer]
(
[WebServiceConsumerId] UNIQUEIDENTIFIER NOT NULL DEFAULT NEWSEQUENTIALID(),
[WebServiceConsumerTypeCode] CHAR NOT NULL,
[ExternalSystemId] UNIQUEIDENTIFIER NOT NULL,
[ExternalSystemName] NVARCHAR(MAX) NOT NULL,
[ExternalSystemPassword] NVARCHAR(16) ... |
<reponame>BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
-- Databricks notebook source
-- MAGIC %md
-- MAGIC ## ST5: Primary diagnosis on death certificate for deceased patients
-- MAGIC > 142,224 primary diagnosis was found for the 139,818 individuals with COVID-19 on the death certificate, and 15,526 primary diagn... |
<reponame>tharangar/k8s-webserver<filename>webserver/app-moe/sql/Archive/3.5.x/3.5.3/POCOR-2863/rollback.sql
-- institution_class_students
DROP TABLE `institution_class_students`;
ALTER TABLE `z_2863_institution_class_students`
RENAME TO `institution_class_students`;
-- db_patches
DELETE FROM `db_patches` WHERE `is... |
create table DEPARTMENT(
dept_no int(3) primary key ,
dept_name varchar(30) unique,
location varchar(30)
); |
GRANT SELECT ON ne_50m_admin_0_countries TO tileserv; |
CREATE FUNCTION func114() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE105);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE321);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE184);val:=(SELECT COUNT(*)INTO MYCOU... |
SELECT
column_1,
column_2
FROM
tbl_name_1
UNION
SELECT
column_1,
column_2
FROM
tbl_name_2;
|
<reponame>jiandiao/flowable-engine
UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.5 (192.168.1.5)', LOCKGRANTED = '2019-03-13 21:03:57.423' WHERE ID = 1 AND LOCKED = 0;
ALTER TABLE ACT_CMMN_RU_PLAN_ITEM_INST ADD IS_COMPLETEABLE_ BIT(1) NULL;
ALTER TABLE ACT_CMMN_RU_CASE_INST ADD IS_COMPL... |
-- CreateTable
CREATE TABLE "Customer" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"email" TEXT NOT NULL,
CONSTRAINT "Customer_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Product" (
"id" TEXT NOT NULL,
"title" TEXT NOT NULL,
CONSTRAINT "Product_pkey" PRIMARY KEY ("id")
);
--... |
<filename>scripts/add_verification_indices.sql
/*
add_verification_indices.sql is a MySQL script intended
to add indices to primary and secondary verification tables
Version: $Revision$
Date: $Date$
(C) COPYRIGHT 2017 Ahasuerus
ALL RIGHTS RESERVED
The copyright notice above does n... |
SELECT CAST('0120101' AS DATE);
SELECT CAST('012-01-01' AS DATE);
|
<gh_stars>0
USE weather_dev;
UPDATE `user` SET password_hash = '<PASSWORD>:<PASSWORD>'; |
<filename>glavkniga/gklients/modules/core/db/update/postgres/17/170707-2-updateGkNewsImage.sql
alter table GKLIENTS_GK_NEWS_IMAGE add column RECORD_ID integer ;
|
<reponame>vcd94xt10z/zionphp
CREATE TABLE IF NOT EXISTS `zion_error_log` (
`errorid` varchar(32) NOT NULL,
`type` varchar(20) NOT NULL COMMENT 'apache,php,mysql',
`created` datetime NOT NULL,
`duration` int(5) NOT NULL,
`http_ipaddr` varchar(45) NOT NULL,
`http_method` varchar(10) NOT NULL,
`http_u... |
<reponame>RamazanOnbasi/AirlineDB<gh_stars>0
use AIRLINE;
GO
INSERT INTO AIRPORT
VALUES ('SFO', 'San-Francisco-International', 'San-Francisco', 'CA'),
('OAK', 'Oakland-International', 'Oakland', 'CA'),
('LAS', 'McCarren-International', 'Las-Vegas', 'CA'),
('HNL', 'Honolulu-International', 'Honolulu', 'HI... |
CREATE DATABASE M_SStop;
USE M_SStop;
CREATE TABLE Estilos(
IdEstilo INT PRIMARY KEY IDENTITY
,Nome VARCHAR (200) UNIQUE NOT NULL
);
CREATE TABLE Artistas(
IdArtista INT PRIMARY KEY IDENTITY
,Nome VARCHAR (200) UNIQUE NOT NULL
,IdEstilo INT FOREIGN KEY REFERENCES Estilos (IdEstilo)
); |
<reponame>computingfoundation/android-client-server-application-development
--
-- Organization Cassandra Schema
--
-- Changes required for production:
-- 1. List of data centers for NetworkTopologyStrategy will
-- have to be changed as described here:
-- <https://docs.datastax.com/en/cql/3.1/cql/cql_referen... |
/*
CREATE ASSEMBLY CTranslitKZ
FROM '<Dir>\sql-clr_Translate_KZ\sql-clr_Translate_KZ\bin\Debug\Translate_KZ.dll'
WITH PERMISSION_SET = SAFE;
sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO
USE [sql-clr_Translate_KZ]
GO
EXEC sp_changedbowner 'sa'
*/
declare @WORD NVARCHAR(max)
declare @TrWORDS NVARCHAR(max)
set ... |
<reponame>getwasim/egov-smartcity-suites-test<filename>egov/egov-ptis/src/main/resources/db/migration/main/V20170830133724__ptis_bulkboundary_actionnamechanged.sql
update eg_action set displayname='Assessment Boundary Details Updation' where name='bulkBoundaryUpdation-form';
|
<reponame>eendroroy/pg_semver<filename>test/sql/semver_test_version_bump.sql
LOAD 'pg_semver';
SELECT PG_SEMVER_BUMP('1.1.1', 0);
SELECT PG_SEMVER_BUMP('1.1.1', 1);
SELECT PG_SEMVER_BUMP('1.1.1', 2);
SELECT PG_SEMVER_BUMP('1.1.1-alpha.1', 0);
SELECT PG_SEMVER_BUMP('1.1.1-alpha.1', 1);
SELECT PG_SEMVER_BUMP('1.1.1-alp... |
<reponame>atkins126/ComparisonResearch
drop table if exists channels cascade;
drop table if exists articles cascade;
create table channels (
id serial,
title varchar(1024) not null,
description text not null,
link varchar(2048) not null,
constraint channels_pk primary key (id)
);
create... |
<reponame>timshadel/subdivision-list
CREATE TABLE subdivision_MZ (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_MZ" ("id", "name", "level") VALUES ('MZ-P', 'Cabo Delgado', 'province');
INSERT INTO "subdivision_MZ" ("id", "name", "level") VALUES ('MZ-G... |
-- name: CreateUser :one
INSERT INTO users (
name,
password
) VALUES (
$1,
$2
) RETURNING *;
-- name: GetUserByName :one
SELECT
*
FROM
users
WHERE
name = $1;
-- name: GetUserByID :one
SELECT
*
FROM
users
WHERE
id = $1;
|
<gh_stars>100-1000
-- fts3aa.test
--
-- execsql {INSERT INTO t1(rowid, content) VALUES(-1, 'three four')}
INSERT INTO t1(rowid, content) VALUES(-1, 'three four') |
<filename>scripts/odbc/microsoft sql/tree/database.sql
select
'tables' node_type,
'<i><u>Tables</u></i>' ui_name,
'fake_id' id,
cast(null as sysname) icon,
'0' sort1
union all
select
'views',
'<i><u>Views</u></i>',
null,
null,
'1'
union all
select
'proce... |
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `block_uncles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
... |
/****** Object: View [dbo].[V_Analysis_Request_Jobs_List_Report] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_Analysis_Request_Jobs_List_Report]
AS
SELECT AJ.AJ_jobID AS Job,
AJ.AJ_priority AS [Pri.],
ASN.AJS_name AS State,
Tool.AJT_toolName AS [Tool Na... |
<reponame>nschwertner/reference-apps
SET AUTOCOMMIT = 0;
START TRANSACTION;
INSERT INTO client_details (client_id, client_name, access_token_validity_seconds, logo_uri, token_endpoint_auth_method) VALUES
('meducation', 'Meducation RS', 86400, 'https://fhir-dstu2.meducation.com/images/meducation_icon.png', 'NONE');
... |
<reponame>gabrielferrado/spring-boot-project-example<filename>src/main/resources/db/h2/data.sql<gh_stars>0
INSERT INTO user VALUES (1, 'James', '<EMAIL>');
INSERT INTO user VALUES (2, 'Helen', '<EMAIL>');
INSERT INTO role VALUES (1, 'radiology');
INSERT INTO role VALUES (2, 'receptionist'); |
alter table A2_Assay add MULTICHANNEL NUMBER(1) DEFAULT 0;
|
ALTER TABLE DOWNLOAD ADD THE_SIZE NUMBER(19, 0) DEFAULT 0 NOT NULL;
|
<filename>database/oracle/scripts/info/check_consistency.sql<gh_stars>1-10
/*************************************************************************************************************
* Erstellt die View PSM.V_KONSISTENZ_ANALYSE("NAME", "INKONSISTENZ_TYP", "ANZAHL") analog zu den Inkosnsitenzprüfungen
* aus der Acces... |
<reponame>JonathanHallKJR/tSQLt
/*
Copyright 2011 tSQLt
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by... |
<reponame>SKalt/pg_sql_parser_tests<filename>fixtures/doctests/xfunc/040/input.sql
TupleDesc RelationNameGetTupleDesc(const char *relname)
|
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字localtime(保留),作为游标名
--前置条件
drop table if exists localtime_test cascade;
create table localtime_test(cid int,fid int);
--关键字不带引号-失败
start transaction;
cursor localtime for select * from localtime_test order by 1;
close localtime;
end;
--关键字带双引号-成功
start transa... |
USE `cdmx_obras`;
CREATE OR REPLACE VIEW avances_onac AS
(SELECT
P.`clv_programa`,
P.`clv_proyecto`,
H.`id_captura`,
H.`fecha_captura`,
J.`nom_proyecto`,
J.`num_contrato`,
J.`monto_contrato`,
P.`monto_convenio`,
J.`fecha_inicio_contrato`,
... |
-- create the databases
CREATE DATABASE IF NOT EXISTS library;
-- create the users for each database
CREATE USER 'librarian'@'%' IDENTIFIED BY '<PASSWORD>';
GRANT CREATE, ALTER, INDEX, LOCK TABLES, REFERENCES, UPDATE, DELETE, DROP, SELECT, INSERT ON `library`.* TO 'librarian'@'%';
FLUSH PRIVILEGES; |
<gh_stars>0
CREATE DATABASE IF NOT EXISTS `sentis` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `sentis`;
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (i686)
--
-- Host: 127.0.0.1 Database: sentis
-- ------------------------------------------------------
-- Server version 5.5.37-0ubuntu0.14.04.1
/*!4... |
<reponame>WesBAn/LoggerBotLoggingServer
# $0 - username
# $1 - user_token
SELECT *
FROM users
WHERE
username = $0 AND
user_token = $1;
|
<reponame>klightspeed/eddn-index-update<filename>database/mariadb/Stations_EDDB.sql<gh_stars>0
CREATE TABLE `Stations_EDDB` (
`Id` INT(11) NOT NULL,
`EddbStationId` INT(11) NOT NULL,
`Timestamp` DATETIME NOT NULL,
PRIMARY KEY (`EddbStationId`) USING BTREE,
INDEX `Id` (`Id`) USING BTREE
)
COLLATE='utf8_general_ci'
... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Хост: 10.12.125.155:3306
-- Время создания: Ноя 19 2018 г., 10:25
-- Версия сервера: 5.7.19
-- Версия PHP: 7.1.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 S... |
create trigger Cofoundry.Role_CascadeDelete
on Cofoundry.[Role]
instead of delete
AS
begin
set nocount on;
if not exists (select * from deleted) return
declare @DefinitionCode char(6) = 'COFROL'
-- Dependencies
delete Cofoundry.RolePermission
from Cofoundry.RolePermission e
inner join deleted d on ... |
<reponame>spyridon-ninos/card-cost
\c card_cost_db
INSERT INTO clearing_costs (country, cost)
VALUES ('US', 1);
INSERT INTO clearing_costs (country, cost)
VALUES ('GR', 2);
INSERT INTO clearing_costs (country, cost)
VALUES ('OTHERS', 3);
|
<reponame>Liu-XiaoDao/ljsm
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50716
Source Host : localhost:3306
Source Database : ljsm
Target Server Type : MYSQL
Target Server Version : 50716
File Encoding : 65001
Date: 2016-12-09 18:... |
DELETE FROM ContractError
DELETE FROM ContractIndividual
DELETE FROM Contract
|
<reponame>filippodicostanzo/unisaresearch<filename>porting/tbl_forum_utenti.sql
-- phpMyAdmin SQL Dump
-- version 3.5.8.2
-- http://www.phpmyadmin.net
--
-- Host: 172.16.17.32
-- Generato il: Giu 10, 2021 alle 12:01
-- Versione del server: 5.5.62-38.14-log
-- Versione PHP: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
S... |
--Ex.1 Table Design
CREATE TABLE users(
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(30) NOT NULL UNIQUE,
`password` VARCHAR(30) NOT NULL,
email VARCHAR(50) NOT NULL);
CREATE TABLE repositories(
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50) NOT NULL);
CREATE TABLE repositories_contribut... |
-- incrblob.test
--
-- execsql {
-- UPDATE t1 SET d = 15;
-- }
UPDATE t1 SET d = 15; |
ALTER SCHEMA [Notification]
TRANSFER [Lookup].[EntryOrExitPoint]
ALTER TABLE [Notification].[EntryOrExitPoint]
ADD RowVersion ROWVERSION NOT NULL |
USE [Rehersal]
GO
/****** Object: Table [dbo].[City] Script Date: 06.10.2020 20:20:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[City](
[CityID] [int] IDENTITY(1,1) NOT NULL,
[CityName] [nvarchar](50) NULL,
CONSTRAINT [PK_City] PRIMARY KEY CLUSTERED
(
[CityID] ASC
)WITH (PAD_I... |
-- Simulation package v. 0.1 for the 3D City Database
--
-- May 2018
--
-- 3D City Database: http://www.3dcitydb.org/
--
-- Copyright 2018
-- Austrian Institute of Technology G.m.b.H., Austria
-- Center for Energy - Smart Cities and Regions Research Field
-- http://www.a... |
/*
Navicat Premium Data Transfer
Source Server : 三问
Source Server Type : MySQL
Source Server Version : 50721
Source Host : 192.168.127.12:3306
Source Schema : sys_admin
Target Server Type : MySQL
Target Server Version : 50721
File Encoding : 65001
Date: 20/01/2020 10... |
drop table if exists account_applications;
create table account_applications
(
aaid bigint NOT NULL AUTO_INCREMENT,
account_id bigint NOT NULL,
application_id integer not null,
PRIMARY KEY (aaid)
);
insert into account_applications (account_id, application_id) values (1, 1);
insert into account_application... |
INSERT INTO department (id, name)
VALUES
(1, 'Senior Software Engineer'),
(2, 'Software Develop Engineer'),
(3, 'Intern Software Engineer'),
(4, 'Full Stack Software Engineer');
INSERT INTO roles (id, title, salary, department_id)
VALUES
(1, '<NAME>', 79999.99, 1),
(2, '501st Legion Troop... |
-- Tutaj tworze baze w ktorej beda sie znajdywac moje UDT
--create database projectdb
-- zalaczam moja baze
use projectdb
-- RECTANGLES --
create table Rectangles (shape dbo.Rectangle);
-- SQUARE --
create table Squares (shape dbo.Square)
-- CIRCLE --
create table Circles (shape dbo.Circle)
-- DIAMOND --
create ta... |
<filename>efluid-datagate-app/src/main/resources/db/migration/oracle/V13__update_apply_history_table.sql<gh_stars>1-10
-- ADD COLUMN PROJECT_ID IN APPLY_HISTORY TABLE
ALTER TABLE "APPLY_HISTORY" ADD "PROJECT_UUID" VARCHAR2(255);
|
-- +migrate Up
ALTER TABLE workflow_notification_source ADD COLUMN node_id BIGINT;
SELECT create_foreign_key_idx_cascade('FK_WORKFLOW_NOTIFICATION_NODE', 'workflow_notification_source', 'w_node', 'node_id', 'id');
-- +migrate Down
ALTER TABLE workflow_notification_source DROP COLUMN node_id;
|
/*
Navicat Premium Data Transfer
Source Server : .
Source Server Type : MySQL
Source Server Version : 50730
Source Host : localhost:3306
Source Schema : ebook
Target Server Type : MySQL
Target Server Version : 50730
File Encoding : 65001
Date: 24/09/2020 21:53:25
*/
... |
<gh_stars>0
-- @testpoint: 字符处理函数translate,入参为数值类型
select translate(4294967296123123123123123123123123123123123123123123123123123123,1234,3219);
select translate(4294967296123123123123123123123123123123123123123123123123123123,4294967296123123123123123123123123123123123123123123123123123123,1234567890);
select transla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.