sql stringlengths 6 1.05M |
|---|
<filename>dbsplit/db_ddl.sql
create database if not exists test_db default charset utf8 collate utf8_general_ci;
create table user_1(
id int(11) primary key not null comment '主键',
user_name varchar(128) default null comment '名称',
user_password int(11) default null comment '用户密码'
);
create table user_2(
id int(11) p... |
<filename>supermis-admin/src/main/java/Dprelation.sql
INSERT INTO `supermis`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('979363806197145601', 'dprelation', 'api_manage', '[0],[business_manage],[api_manage],', '', '', '/dprelation', ... |
<filename>orcas_integrationstest/tests/test_xml/erzeuge_zielzustand.sql
create table xml_tabelle
(
col_xml_1 xmltype,
col_xml_2 xmltype
);
create index add_xml_ix on xml_tabelle (col_xml_1) indextype is CTXSYS.CONTEXT PARAMETERS ('');
create index add_txt_ix on xml_tabelle (col_xml_1) indextype is XDB.XMLINDEX PAR... |
<reponame>goldmansachs/obevo-kata<gh_stars>10-100
CREATE FUNCTION func980() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE324);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE206);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLAR... |
ALTER TABLE users
CHANGE `blacklist` `blocklist` TEXT CHARACTER SET utf8mb4;
ALTER TABLE users
CHANGE `whitelist` `allowlist` TEXT CHARACTER SET utf8mb4;
|
select
name,
namespace,
role_name,
role_kind,
subjects,
age(current_timestamp, creation_timestamp)
from
kubernetes.kubernetes_role_binding
where
name = ''
and namespace = ''
order by
namespace,
name;
|
--------------------------------------------------------------------------
-- @TITLE: Negative tests for UAO
--
--------------------------------------------------------------------------
Drop table if exists sto_uao_neg_index;
CREATE TABLE sto_uao_neg_index (id int, date date, amt decimal(10,2))
with (appendonly=tr... |
ALTER TABLE `cot_mavatars` ADD COLUMN `mav_text` varchar(255) NOT NULL; |
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `test`;
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: test
-- ------------------------------------------------------
-- Server version 5.5.49-0ubuntu0.14.04.1
/*!40101 SET @OLD_CH... |
<filename>db_20130412.sql
-- --------------------------------------------------------
-- Host: 172.16.17.32
-- Server version: 5.5.23-55 - Percona Server (GPL), Release rel25.3, Revision 2
-- Server OS: Linux
-- HeidiSQL version: 7.0.0.4147
-- Date/ti... |
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
DROP TABLE IF EXISTS gist_updates;
DROP TABLE IF EXISTS update;
DROP TABLE IF EXISTS updates;
DROP TABLE IF EXISTS pipes;
DROP TABLE IF EXISTS latest;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
SELEC... |
DELETE FROM Data_Load.DAS_DataLock_Errors
DELETE FROM Data_Load.DAS_DataLocks
|
<reponame>bstjean/mysql_toolkit
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES';
DROP FUNCTION IF EXISTS ascii_sort;
DELIMITER //
CREATE FUNCTION ascii_sort (stringParam VARCHAR(255))
RETURNS VARCHAR(255)
DETERMINISTIC
NO SQL
SQL SECURITY DEFINER
COMMENT 'Sorts a string based on the ASCII value of each... |
<reponame>jdkoren/sqlite-parser
-- view.test
--
-- execsql {
-- SELECT DISTINCT count(*) FROM t2 GROUP BY a ORDER BY 1 LIMIT 3;
-- }
SELECT DISTINCT count(*) FROM t2 GROUP BY a ORDER BY 1 LIMIT 3; |
-- file:oid.sql ln:19 expect:true
INSERT INTO OID_TBL(f1) VALUES (' ')
|
<filename>src/DbTests/SQL/Voption/Out.sql
SELECT @param1
|
CREATE TYPE [dbo].[NameStyle]
FROM BIT NOT NULL;
GO
|
BEGIN;
CREATE SCHEMA IF NOT EXISTS wrapped_strikers;
CREATE TABLE IF NOT EXISTS wrapped_strikers.wrapped_strikers_stats (
token_id INTEGER NOT NULL,
checklist_id INTEGER NOT NULL,
iconic VARCHAR(5) NOT NULL,
player VARCHAR(23) NOT NULL,
serial INTEGER NOT NULL,
supply I... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50724
Source Host : 127.0.0.1:3306
Source Database : licm
Target Server Type : MYSQL
Target Server Version : 50724
File Encoding : 65001
Date: 2020-04-15 20:43:50
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----... |
select substr(r_reason_desc,1,20)
,avg(ws_quantity)
,avg(wr_refunded_cash)
,avg(wr_fee)
from web_sales, web_returns, web_page, customer_demographics cd1,
customer_demographics cd2, customer_address, date_dim, reason
where ws_web_page_sk = wp_web_page_sk
and ws_item_sk = wr_item_sk
and ws_order_number = wr_order_number
... |
<filename>SQL Query Files/SQL-master/compare_db_powershell.sql
DECLARE @dbname VARCHAR(128)
DECLARE @cmd VARCHAR(MAX)
DECLARE Datadbs CURSOR FOR
SELECT name from sys.databases
WHERE name LIKE 'DMart%Data'
AND name NOT LIKE '%Template%'
ORDER BY 1
OPEN Datadbs
FETCH NEXT FROM Datadbs INTO @dbname
WHILE @@fetch_st... |
<reponame>ricpersi/ClickHouse
DROP TABLE IF EXISTS test.dst_00753;
DROP TABLE IF EXISTS test.buffer_00753;
SET send_logs_level = 'error';
CREATE TABLE test.dst_00753 (x UInt64, y UInt64) ENGINE = MergeTree ORDER BY tuple();
CREATE TABLE test.buffer_00753 (x UInt64, y UInt64) ENGINE = Buffer(test, dst_00753, 1, 99999, ... |
<filename>tests/elm/library/data.cql
// @Test: In Age Demographic
parameter MeasurementPeriod default Interval[DateTime(2013, 1, 1), DateTime(2014, 1, 1))
context Patient
define InDemographic:
AgeInYearsAt(start of MeasurementPeriod) >= 2 and AgeInYearsAt(start of MeasurementPeriod) < 18
// @Test: CommonLib
library ... |
<filename>conf/evolutions/default/1.sql
# Arrivals schema
# --- !Ups
CREATE TABLE Arrival (
id bigint(20) NOT NULL AUTO_INCREMENT,
arrival_id bigint(20) NOT NULL,
first_name varchar(255) NULL,
last_name varchar(255) NULL,
email varchar(255) NULL,
zip varchar(255) NULL,
city varchar(255) NU... |
<gh_stars>10-100
/* Copyright (c) 2006-2013 Regents of the University of Minnesota
For licensing terms, see the file LICENSE. */
/* This script adds the new access control tables to the schema. */
/* Run this script once against each instance of Cyclopath
@once-per-instance
*/
\qecho
\qecho This... |
//// CHANGE name=change0
CREATE TABLE TestTable(
[idField] [int] NOT NULL,
[stringField] [varchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[stringDateField] [date] NULL,
[dateTimeField] [datetime] NULL,
[myBooleanCol] [int] NULL,
[tinyIntCol] [tinyint] NOT NULL,
[timeUpdated] [datetime] NOT NULL,
[textF... |
<filename>modules/jk/sql/jk_zaim.sql
INSERT INTO workshop.jk_zaim (id, created_at, created_by, updated_at, updated_by, deleted_at, deleted_by, date_birth, gender, experience, family_count, family_income, area_total, area_buy, cost_total, min_id, compensation_count, compensation_years) VALUES (29, 1612189543, 603, null,... |
<gh_stars>0
CREATE OR REPLACE VIEW session_vw AS
SELECT s.id AS id
,s.name AS name
,cv.name AS cv
,cv_term.name AS type
,s.line_id AS line_id
,l.name AS line
,s.image_id AS image_id
,i.name AS image
,s.experiment... |
<reponame>dice-group/gStore-1
select ?x where
{
?x <ub:name> <FullProfessor0>.
} |
<gh_stars>0
SET SQL_SAFE_UPDATES = 0;
DROP TABLE IF EXISTS `newsAlerts`;
DROP TABLE IF EXISTS `updates`;
DROP TABLE IF EXISTS `battlePieces`;
DROP TABLE IF EXISTS `movements`;
DROP TABLE IF EXISTS `placements`;
DROP TABLE IF EXISTS `games`;
CREATE TABLE IF NOT EXISTS `games`(`gameId` int(3) NOT NULL AUTO_INCREMENT,`gam... |
<reponame>greati/iox9<filename>database/pgsql_iox9_default.sql
CREATE USER iox9 WITH PASSWORD '<PASSWORD>';
CREATE TABLE entity (
identifier VARCHAR(50) PRIMARY KEY,
registration_date DATE NOT NULL
);
CREATE TABLE io_record (
identifier_entity VARCHAR(50) NOT NULL,
instant TIMESTAMP NOT NULL,
io_type INT NOT NUL... |
<reponame>rustyrust/MotorsportSite<filename>MotorsportSite/MotorsportSite.Database/SeedScripts/TeamsPowerUnit_DataScript.sql
/*
Post-Deployment Script Template
--------------------------------------------------------------------------------------
This file contains SQL statements that will be appended to the b... |
DROP FUNCTION IF EXISTS assigncontactrole;
DELIMITER $$
CREATE FUNCTION assigncontactrole(p_contacts_id CHAR(36),p_roles_id CHAR(36)) RETURNS CHAR(36) CHARSET utf8
BEGIN
DECLARE generated_contactroles_id CHAR(36);
SELECT newid() INTO generated_contactroles_id;
INSERT INTO contactroles(id,contacts_id,roles_id) VALUES... |
<reponame>Vladislav-Zolotaryov/L2J_Levelless_Custom
ALTER TABLE characters
CHANGE `account_name` `account_name` VARCHAR(45) DEFAULT NULL,
CHANGE `obj_Id` `obj_Id` INT UNSIGNED NOT NULL DEFAULT 0,
CHANGE `char_name` `char_name` VARCHAR(35) NOT NULL,
CHANGE `level` `level` TINYINT UNSIGNED DEFAULT NULL,
CHANGE `maxHp` `... |
<filename>tasks.sql
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 29, 2017 at 01:22 PM
-- Server version: 5.7.14
-- PHP Version: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA... |
{% macro create_roles(roles) %}
{% for role in roles %}
{%- call statement('get_roles', fetch_result=True) %}
select
rolname
from pg_catalog.pg_roles
where lower(rolname) = lower('{{role}}')
{%- endcall -%}
... |
<gh_stars>1-10
--**********************************************************************************************************************
--* OBJECT Insert Trigger
--**********************************************************************************************************************
CREATE or REPLACE FUNCTION object_tr... |
<filename>vistas sql/requests_detail_view.sql
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 03-05-2018 a las 18:26:06
-- Versión del servidor: 10.1.31-MariaDB
-- Versión de PHP: 7.0.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0... |
<filename>Database Basics/Database Programmability and Transactions/Database Programmability and Transactions/17. Withdraw Money Procedure.sql<gh_stars>1-10
CREATE OR ALTER PROC usp_WithdrawMoney (@AccountId INT, @MoneyAmount DECIMAL(16, 4))
AS
BEGIN TRAN;
IF(@MoneyAmount <= 0)
BEGIN
ROLLBAC... |
-------------------------------------------------------------------------------
-- DEMO 1: Introducing the Tools
--
-------------------------------------------------------------------------------
USE AutoDealershipDemo;
GO
-----
-- Query to show data
SELECT TOP 1000 *
FROM dbo.InventoryFlat;
GO
... |
<filename>src/var/lib/conanexiles/reboot.sql<gh_stars>1-10
/* Transfer Pet and Thrall ownership ID's to our custom tables before we remove old event logs*/
drop table if exists zpet_ownership;
create table if not exists z_pet_ownership(pet_id bigint null, player_owner_id bigint null, clan_owner_id bigint null);
drop... |
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64)
--
-- Host: localhost Database: pianoRoom
-- ------------------------------------------------------
-- Server version 5.7.23-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... |
<reponame>nax2uk/nhs-virtual-visit-deploy
CREATE TABLE dbo.[facility] (
[id] int IDENTITY(1, 1) NOT NULL,
[name] nvarchar(255) NOT NULL,
[organisation_id] int NOT NULL,
[created_at] datetime NOT NULL DEFAULT GETDATE(),
[created_by] int NOT NULL,
[code] nvarchar(255) NOT NULL,
[uuid] uniqueidentifie... |
-- attach.test
--
-- execsql {
-- SELECT * FROM main.v3;
-- }
SELECT * FROM main.v3; |
-- file:rowsecurity.sql ln:257 expect:true
ALTER TABLE t3 INHERIT t1
|
#####################
# <NAME> #
# by Saiifii #
#####################
SET @NPC_GUID_START := 15810000;
SET @GOB_GUID_START := 4500000;
DELETE FROM `creature` WHERE `map` = 732;
INSERT INTO `creature` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, ... |
<reponame>IvoSestren/strn-ec
CREATE TABLE cronjobs (
id CHAVE NOT NULL,
id_module CHAVE,
description TEXT,
task TEXT,
hour INTEGER DEFAULT -1,
day INTEGER DEFAULT -1,
month INTEGER DEFAULT -1,
day_of_week INTEGER DEFAULT -1,
updated_at TIMEST... |
CREATE DATABASE IF NOT EXISTS petclinic;
ALTER DATABASE petclinic
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
-- GRANT ALL PRIVILEGES ON petclinic.* TO 'petclinic'@'%' IDENTIFIED BY 'petclinic';
CREATE USER 'petclinic'@'%' IDENTIFIED BY 'petclinic';
GRANT ALL PRIVILEGES ON *.* TO 'petclinic'@'%' W... |
<reponame>NewGraphEnvironment/bcfishpass
-- Create a view for visualizing where manual updates have been applied
-- and to track whether the manual classification agrees with the model output
-- (to keep the streams table somewhat simple, model outputs get overwritten by
-- manual classification in below updates)
DROP ... |
<gh_stars>100-1000
ALTER TABLE `site_users_balances` ADD INDEX ( `site_user` , `currency` );
UPDATE`status` SET `db_version` = '1.13.1' WHERE `status`.`id` =1;
|
<reponame>gh-oss-contributor/graphql-engine-1
ALTER TABLE hdb_catalog.hdb_relationship
ADD COLUMN comment TEXT NULL;
ALTER TABLE hdb_catalog.hdb_permission
ADD COLUMN comment TEXT NULL;
ALTER TABLE hdb_catalog.hdb_query_template
ADD COLUMN comment TEXT NULL;
UPDATE hdb_catalog.hdb_query_template
SET templa... |
<reponame>myhro/ovh-checker
DROP TABLE IF EXISTS country CASCADE;
|
DROP TABLE categories CASCADE;
CREATE TABLE IF NOT EXISTS categories (
id serial PRIMARY KEY UNIQUE NOT NULL,
name VARCHAR(255)
);
DROP TABLE patterns CASCADE;
CREATE TABLE IF NOT EXISTS patterns (
id serial PRIMARY KEY UNIQUE NOT NULL,
pattern VARCHAR(255),
category_id bigint NOT... |
<filename>SqlWatch.Monitor/Project.SqlWatch.Database/dbo/Tables/sqlwatch_stage_app_log_last_read_event.sql
CREATE TABLE [dbo].[sqlwatch_stage_app_log_last_read_event]
(
event_sequence int,
constraint pk_sqlwatch_stage_app_log_last_read_event
primary key clustered (event_sequence)
);
|
<reponame>EdwinOliveira/Restaurant-Web-Application
CREATE OR REPLACE PROCEDURE Delete_Menu_Date(arg_menu_date_cod BIGINT)
LANGUAGE plpgsql
AS $$
BEGIN
IF(select exists(select 1 From Menu_Dates where Menu_Dates.date_cod = arg_menu_date_cod)) THEN
DELETE FROM Menu_Dates
WHERE Menu_Dates.date_cod = arg_menu_date_c... |
CREATE DATABASE IF NOT EXISTS `tecnographic` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `tecnographic`;
-- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: tecnographic
-- ------------------------------------------------------
-- Server version 5.5.32
/*!40101 SET @OLD_CHARACTE... |
<gh_stars>0
UPDATE character_quests SET name='Q00236_SeedsOfChaos' WHERE name='236_SeedsOfChaos'; |
SHOW DATABASES;
USE `email_sender`;
DESCRIBE `emails`; |
define file_dir=modules/pit_file/
prompt
prompt §ion.
prompt &h1.Module PIT_FILE
prompt &h2.Clean up existing installation
@&file_dir.clean_up_install.sql
prompt
prompt &h2.Grant user rights for PIT_FILE
prompt &h3.Grant user rights to &INSTALL_USER.
@&file_dir.scripts/user_grants.sql
prompt &h2.Create types adn ... |
<reponame>weekends053/Train<filename>train.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 05, 2020 at 07:47 AM
-- Server version: 8.0.17
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACT... |
<reponame>OuhscBbmc/OuhscMunge
--Use cdw_cache_staging
DROP TABLE ou_physicians_quality_measurement.tbl_condense_date
SELECT
TOP (1000)
s.pid
,s.sdid
,s.cvx_family
, s.consecution
,MIN(s.match_first_in_sdid_cvx_family_consecution) AS cvx_out
,MIN(s.obsdate) AS obs_date
,MIN(s.obsv... |
<filename>migrations/sql/V2020.03.04_1515__Tags.sql<gh_stars>1-10
CREATE TABLE "orderlyweb_report_tag" (
"report" TEXT NOT NULL,
"tag" TEXT NOT NULL,
FOREIGN KEY ("report") REFERENCES "report" ("name"),
PRIMARY KEY("report", "tag")
);
CREATE TABLE "orderlyweb_report_version_tag" (
"report_version" TEXT NOT NULL,
"ta... |
CREATE PROCEDURE [procfwk].[SetLogPipelineFailed]
(
@ExecutionId UNIQUEIDENTIFIER,
@StageId INT,
@PipelineId INT,
@RunId UNIQUEIDENTIFIER = NULL
)
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ErrorDetail VARCHAR(500)
--mark specific failure pipeline
UPDATE
[procfwk].[CurrentExecution]
SET
[PipelineStatus] = 'Fai... |
<gh_stars>1-10
INSERT INTO `roles` VALUES (1, 'administrator', 'Administrator', 'Administrator', '2020-11-23 06:17:06', '2020-11-23 06:17:06');
INSERT INTO `roles` VALUES (2, 'lecturer', 'Lecturer', 'Lecturer', '2020-11-23 06:17:09', '2020-11-23 06:17:09');
INSERT INTO `roles` VALUES (3, 'student', 'Student', 'Student'... |
<reponame>smith750/kc<gh_stars>0
DELIMITER /
CREATE TABLE IACUC_PROTOCOL_REVIEWER_TYPE (
REVIEWER_TYPE_CODE VARCHAR(3) NOT NULL,
DESCRIPTION VARCHAR(200) NOT NULL,
UPDATE_TIMESTAMP DATE NOT NULL,
UPDATE_USER VARCHAR(60) NOT NULL,
VER_NBR DECIMAL(8,0) DEFAULT 1 NOT NULL,
OBJ_ID VARCHAR(36) N... |
<filename>mdm-plugin-referencedata/grails-app/conf/db/migration/referencedata/V3_0_0__remove_depth.sql
ALTER TABLE referencedata.reference_data_element
DROP COLUMN depth;
ALTER TABLE referencedata.reference_data_type
DROP COLUMN depth;
ALTER TABLE referencedata.reference_enumeration_value
DROP COLUMN depth; |
<reponame>TimNapierVST/dbtvault-dev
CAST(c.CUSTOMER_ID AS VARCHAR(16)) AS CUSTOMER_PK,
CAST(c.BOOKING_ID AS VARCHAR(16)) AS BOOKING_PK |
CREATE TABLE [dbo].[FileMetOvererving](
[Id] bigint IDENTITY (1,1) NOT NULL
,[RowVersion] rowversion NOT NULL
,[UId] uniqueidentifier NOT NULL CONSTRAINT [DF_{FileMetOvererving}_UId] DEFAULT NEWID()
,TestChildProp1 nvarchar(100) NOT NULL
,TestChildProp2 int NULL
,TestChildProp3 bigi... |
<gh_stars>1-10
CREATE TABLE Customers(
customerNumber INTEGER,
customerName VARCHAR(50),
contactLastName VARCHAR(50),
contactFirstName VARCHAR(50),
phone VARCHAR(50),
addressLine1 VARCHAR(50),
addressLine2 VARCHAR(50),
city VARCHAR(50),
state VARCHAR(50),
postalCode VARCHAR(15),
country VARCHAR(50... |
CREATE VIEW kname AS
SELECT u.id, u.rank, n.scientific_name, u.is_synonym, u.status, u.origin, kn.scientific_name as kingdom, u.dataset_key
FROM name_usage u
JOIN name n on u.name_fk=n.id
LEFT JOIN name_usage ku on u.kingdom_fk=ku.id
LEFT JOIN name kn on ku.name_fk=kn.id;
|
drop table if exists onlineddl_test;
create table onlineddl_test (
id int auto_increment,
i int not null,
dt0 datetime(6),
dt1 datetime(6),
ts2 timestamp(6),
updated tinyint unsigned default 0,
primary key(id),
key i_idx(i)
) auto_increment=1;
drop event if exists onlineddl_test;
delimiter ;;
create ev... |
<gh_stars>1-10
/*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 NEW_PROTEIN disable constraint SYS_C0021126;
alter table NEW_PROTEIN disable constraint SYS_C004603;
alter table NEW_PROTEIN disable co... |
-- @testpoint:opengauss关键字Length(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists Length;
create group Length with password '<PASSWORD>';
drop group Length;
--关键字带双引号-成功
drop group if exists "Length";
create group "Length" with password '<PASSWORD>';
drop group "Length";
--关键字带单引号-合理报错
drop group if exists 'Length';
... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 1172.16.58.3
-- Tiempo de generación: 11-08-2016 a las 17:11:06
-- Versión del servidor: 10.1.10-MariaDB
-- Versión de PHP: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... |
<reponame>tonykrikorian/solid-principles-examples
/*
Warnings:
- You are about to alter the column `salary` on the `periods` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `DoublePrecision`.
*/
-- AlterTable
ALTER TABLE "periods" ALTER COLUMN "salary" S... |
/* sistema_financeiro: */
CREATE TABLE users (
id_user int PRIMARY KEY,
name varchar(100),
email varchar(100),
password varchar(255),
class int
);
CREATE TABLE stocks (
id_stock int PRIMARY KEY,
ticker varchar(100),
company varchar(100)
);
CREATE TABLE transactions (
id_transactio... |
/**
Projeto de gestão de OS para oficina de motos
@author <NAME>, <NAME>, <NAME>
*/
create database oficina;
use oficina;
create table usuarios(
id int primary key auto_increment,
usuario varchar(50) not null,
login varchar(50) not null unique,
senha varchar(250) not null,
perfil varchar(50) not... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 18, 2021 at 11:17 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
IF NOT EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'prc_Repl_Publications' And ROUTINE_SCHEMA = 'dbo')
BEGIN
EXEC('CREATE Procedure dbo.prc_Repl_Publications as raiserror(''Empty Stored Procedure!!'', 10, 1) with seterror')
IF (@@error = 0)
PRINT 'Successfully created empty stored procedu... |
#Query the name of all employees with age between 25 and 30 (inclusively, ordered by ID)
select name
from employee
where age between 25 and 30
order by id; |
--REVOKE SELECT ON bloomreadertest.DayRows FROM readbloomtester;
--DROP VIEW bloomreadertest.DayRows;
CREATE VIEW bloomreadertest.DayRows AS
select COUNT(a.user_id) AS User_Count,
(SELECT d.country_name from public.ip2loc_sm_tab AS d
WHERE public.ip2ipv4(a.ip) = d.context_ip) AS Country,
a.channel, a.versio... |
<reponame>StarExecMiami/StarExec
-- gets the next page of enqueued pairs to populate the datatable on the cluster status page
-- vars
-- id The ID of the queue to get the running pairs on
SELECT job_pairs.id,
job_pairs.path,
job_pairs.primary_jobpair_data,
job_pairs.job_id,
job_pairs.be... |
-- memdb.test
--
-- execsql {
-- DELETE FROM t5 WHERE x>5;
-- SELECT * FROM t5;
-- }
DELETE FROM t5 WHERE x>5;
SELECT * FROM t5; |
<reponame>PedrinskyXV/catastro<filename>app/ThirdParty/php-sql-parser/tests/expected/creator/unaryminus.sql
SELECT -(0) |
-- quest_template
-- By Mikadmin for ARKania
-- Fix Consol error :
UPDATE `quest_template` SET `ReqCreatureOrGOId1` = 0 WHERE `entry` = 14293;
UPDATE `quest_template` SET `ReqSpellCast1` = 0 WHERE `entry` = 14276;
UPDATE `quest_template` SET `SpecialFlags` = 2 WHERE `entry` = 14154;
|
<reponame>liuzyw/study-hello
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'aaa', 'uhkj', 10, 'eda', 1);
INSERT INTO `user` VALUES (3, 'liu', '123', 23, 'dasd', 0);
INSERT INTO `user` VALUES (4, 'aaaaa', 'aaaaa', 11, 'aaaa', 0);
INSERT INTO `user` VALUE... |
SELECT
BILLC_KEY AS BILLC_KEY
,BILLC_FED_EIN AS FED_EIN
,BILLC_DEPT_NAME AS DEPT_NAME
,BILLC_SERVICE_DEPT_NO AS SERVICE_DEPT_NO
,BILLC_JOURNAL_SUFFIX AS JOURNAL_SUFFIX
,BILLC_PREPARER_NAME AS PRE... |
<reponame>SebastianGironArcila/ADN_backend_glamping<gh_stars>0
insert into usuario(id,nombre,clave,fecha_creacion) values(1,'test','1234',now());
insert into tipo(id,definicion,cantPersonasMax) values(1,'familiar',6);
insert into glamping(id,idTipoGlamping,descripcion,precio,estado) values(1,1,'Cabaña amoblada para una... |
CREATE DATABASE `dbs_statistics` /*!40100 DEFAULT CHARACTER SET utf8 */
CREATE TABLE `citations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`data_source_id` mediumint(8) unsigned NOT NULL,
`collection_count` int(11) DEFAULT '0',
`fullCitation_count` int(11) DEFAULT '0',
`citationMetadata_count` int(11) DEFAULT... |
<reponame>viswaratha12/dbwarden
/****** Object: View [dbo].[V_PDB_Organism_List_For_Tree] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW dbo.V_PDB_Organism_List_For_Tree
AS
SELECT TOP (100) PERCENT Organism_ID AS id, OG_name AS organism_name, RTRIM(CASE WHEN (OG_genus IS NOT NULL AND O... |
-- *********************************************************************
-- DDL for the Apicurio Studio Hub API - Database: PostgreSQL 9+
-- Upgrades the DB schema from version 11 to version 12.
-- *********************************************************************
UPDATE apicurio SET prop_value = 12 WHERE prop_name... |
{% macro get_campaign_history_columns() %}
{% set columns = [
{"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()},
{"name": "advertiser_id", "datatype": dbt_utils.type_numeric()},
{"name": "budget", "datatype": dbt_utils.type_float()},
{"name": "budget_mode", "datatype": dbt_utils.type... |
<reponame>singh-sukhvir/killbill-analytics-plugin<gh_stars>1-10
create or replace view v_system_report_notifications_per_queue_name as
select
search_key2 as tenant_record_id
, queue_name
, date_format(effective_date, '%Y-%m-%d') as day
, count(*) as count
from notifications
where processing_state = 'AVAILABLE'
group ... |
<reponame>cb-deepak/pgcodekeeper
CREATE FOREIGN TABLE public.mytable (
c1 integer OPTIONS (column_name 'c1') CHECK (c1 > 0)
)
SERVER myserver;
|
<gh_stars>1-10
-- Delete the flag.
DELETE FROM waffle_flag where name='new-topics';
-- Drop the M2M table.
DROP TABLE wiki_document_topics;
|
<filename>db/scripts/create_vw_user_has_reverifications.sql
CREATE view vw_user_has_reverifications as
SELECT DISTINCT u.userID
FROM users u
LEFT JOIN usersReverifications ur ON ur.userID = u.userID
AND ur.completedOn IS NULL
LEFT JOIN yodleeUserReverifications yur ON yur.userID = u.userID
AND yur.completedOn IS NULL... |
insert into Customer values ('3C11B294-3700-4B26-B8C4-07FFF4257C00', '<NAME>', '48698724560', '1998-07-08', 'M', '<EMAIL>', 'Analista de sistemas', 1, '2020-08-01', '2020-08-01')
insert into Phone values (newid(), 1, '16', '997453584', '3C11B294-3700-4B26-B8C4-07FFF4257C00', '2020-08-01', '2020-08-01')
insert into Addr... |
ALTER TABLE `mystudies_participant_datastore`.`user_details`
CHANGE COLUMN `verification_time` `verification_time` VARCHAR(255) NULL DEFAULT NULL ;
|
-- -- First table for DEPARTMENT --
-- USE management_db;
-- INSERT INTO Department(Name)
-- VALUES('Management'),('Sales'),('Accounting'),('Engineering');
-- -- Second table for ROLE --
-- INSERT INTO Role(Title, Salary, Department_id)
-- VALUES('Manager', 100000, 001),
-- ('Supervisor', 84000, 001),
-- ('Sales L... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Tempo de geração: 09-Nov-2021 às 22:49
-- Versão do servidor: 5.7.31
-- versão do PHP: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.