sql stringlengths 6 1.05M |
|---|
SELECT "YaleLanguages_3"."Calculation_3110108110633423" AS "Calculation_3110108110633423", "YaleLanguages_3"."Patron Group" AS "Patron Group" FROM "YaleLanguages_3" WHERE ((CAST("YaleLanguages_3"."CHARGE_DATE" as DATE) >= cast('2002-01-01' as DATE)) AND ("YaleLanguages_3"."PATRON_TYPE (Pseudo vs Patron)" = 'Patron'))... |
use test_ims_db;
CREATE TABLE IF NOT EXISTS customer (
customer_id int NOT NULL AUTO_INCREMENT,
firstname varchar(50) NOT NULL,
surname varchar(50) NOT NULL,
email varchar(255) UNIQUE,
address varchar(255) NOT NULL,
PRIMARY KEY(customer_id)
);
CREATE TABLE IF NOT EXISTS item(
item_id int NOT NULL A... |
Create database content_recommender;
Use content_recommender;
Create Table users(
uname VARCHAR(100) NOT NULL PRIMARY KEY
);
Create Table products(
post_id VARCHAR(50) NOT NULL PRIMARY KEY,
tags VARCHAR(1000) NOT NULL
);
Create Table votes(
user VARCHAR(100) NOT NULL,
product VARCHAR(50) NO... |
# Exemplo 6: - "Chamando sequence em INSERT"
INSERT INTO tbAluno(pkcodalu, nomealu, mediaalu)
VALUES (exemplo_sequence.NEXTVAL, 'Ana', 8.5);
INSERT INTO tbAluno(pkcodalu, nomealu, mediaalu)
VALUES (exemplo_sequence.NEXTVAL, 'Maria', 9.2);
INSERT INTO tbAluno(pkcodalu, nomealu, mediaalu)
VALUES (exemplo_s... |
USE wcsDB;
/* DELETE USER TABLE */
DELETE FROM user
WHERE del_flag=1;
/* PAGE_OPTION */
DELETE speed,o,r
FROM page_option o
INNER JOIN page_option_page r on o.id = r.page_option_id
INNER JOIN speed_test_report speed on o.id = speed.page_option_id
WHERE o.del_flag = 1;
/* REPORT */
/* SPEED TEST */
DELETE FROM sp... |
<gh_stars>1-10
INSERT INTO price (item_id , average , delta , distr_type , quantity_per_one) VALUES
( 1 , 400 , 100 , null , 1 ),
( 2 , 900 , 200 , null , 1 ),
( 3 , 2000 , 200 , null , 1 ),
( 4 , 800 , 400 , null , 1 ),
( 5 , 300 , 50 , null , 2 ),
( 6 , 500 , 100 , null , 2 ),
( 7 , 2000 , 500 , null , 1 ),
( 8 , 220... |
USE `dalamud`;
CREATE TABLE `users_reports` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '(DC2Type:guid)',
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '(DC2Type:guid)',
`added` int(11) NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`items` longtext COL... |
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 26, 2018 at 11:31 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
-- select7.test
--
-- execsql {
-- pragma vdbe_trace = 0;
-- SELECT (CASE WHEN a=0 THEN 0 ELSE (a + 25) / 50 END) AS categ, count(*)
-- FROM t3 GROUP BY categ
-- }
pragma vdbe_trace = 0;
SELECT (CASE WHEN a=0 THEN 0 ELSE (a + 25) / 50 END) AS categ, count(*)
FROM t3 GROUP BY categ |
-- SELECT '\copy omop.' || table_name || ' FROM PROGRAM ''gzip -dc ' || table_name || '.csv.gz'' CSV HEADER NULL '''' QUOTE ''"'';'
-- FROM
-- information_schema.tables
-- WHERE
-- table_catalog = 'mimic' AND
-- table_schema = 'omop'
-- ;
drop schema if exists omop cascade;
create schema omop;
set search_pa... |
-- To find the ObjectName,CounterName,InstanceName
select ObjectName,CounterName,InstanceName from CounterDetails
JOIN CounterData ON CounterData.CounterID = CounterDetails.CounterID JOIN DisplayToID ON DisplayToID.GUID = CounterData.GUID
where ObjectName like '%Buffer%'
group by ObjectName,CounterName,InstanceNam... |
<reponame>dwfcg/yusuzhou
/*
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
// +---------------------------------------------------... |
<filename>api/db/meli-db.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 16-01-2022 a las 23:01:54
-- Versión del servidor: 8.0.21
-- Versión de PHP: 7.3.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00... |
-- 11.07.2016 19:09
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET EntityType='de.metas.rfq',Updated=TO_TIMESTAMP('2016-07-11 19:09:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=452
;
-- 11.07.2016 19:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurat... |
<reponame>seelang2/ClassArchive<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 11, 2018 at 08:43 PM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SE... |
DROP DATABASE IF EXISTS gameworm_wikipedia;
CREATE DATABASE gameworm_wikipedia
WITH OWNER = postgres
ENCODING = 'UTF8'
TABLESPACE = pg_default
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8'
CONNECTION LIMIT = -1;
\c gameworm_wikipedia;
CREATE TYPE author_role AS ENUM ('programmer', 'designer', 'composer', 'art... |
select
sum(lineitem.l_extendedprice*(1-lineitem.l_discount)*(1+lineitem.l_tax))
from
lineitem
where
lineitem.l_shipdateF <= 6910 - 900
and
lineitem.l_returnflag = 'R'
and
lineitem.l_linestatus = 'F'
;
|
create or replace package file_security authid current_user is
READ constant pls_integer := 1;
WRITE constant pls_integer := 2;
EXEC constant pls_integer := 4;
procedure grant_permission(
p_file_path in varchar2,
p_grantee in varchar2,
p_permission in pls_integer
);
procedure revoke_perm... |
-- VIRGIN OLIVE OIL
DELETE FROM loones.data_dataprice WHERE date = '2018-1-1 00:00:00.000000' AND subcategory_id = 2;
DELETE FROM loones.data_dataprice WHERE date = '2018-1-8 00:00:00.000000' AND subcategory_id = 2;
-- LAMPANTE OLIVE OIL
DELETE FROM loones.data_dataprice WHERE date = '2018-1-1 00:00:00.000000' AND subc... |
USE dashboards;
DROP PROCEDURE IF EXISTS createObservationCohort;
DELIMITER //
CREATE PROCEDURE createObservationCohort(
p_query_id INT,
p_observationTab VARCHAR(64),
p_cohortTab VARCHAR(64),
p_conceptTab VARCHAR(64),
p_schema VARCHAR(255)
)
BEGIN
DECLARE data_types VARCHAR(255)... |
<gh_stars>0
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD';
SET TRIMSPOOL ON; -- otherwise every line in the spoolfile is filled up with blanks until the linesize is reached.
SET TRIMOUT ON; -- otherwise every line in the output is filled up with blanks until the linesize is reached.
SET WRAP OFF; -- Truncates the li... |
<reponame>mickeykedia/electioncharts<filename>data/resultdayanalysis.sql
Create DATABASE resultdayanalysis;
use resultdayanalysis;
CREATE TABLE candidate_keys ( /* keys for various properties of a candidate - eg. current party, previous party, number of votes polled last time etc */
id int NOT NULL AUTO_INCREMENT,
... |
<reponame>gayyappan/timescaledb
-- This file and its contents are licensed under the Apache License 2.0.
-- Please see the included NOTICE for copyright information and
-- LICENSE-APACHE for a copy of the license.
SELECT _timescaledb_internal.current_license_key();
SELECT _timescaledb_internal.tsl_loaded();
SELECT _ti... |
USE infrastructure;
-- Stored procedures for the API DB
-- DEPRECATED:
-- Since these proved to be awkward to work with and
-- prone to errors, we will write any further queries
-- in the API service using knex.
DELIMITER $$
CREATE OR REPLACE PROCEDURE
CreateProject
(
IN id int,
... |
ALTER TABLE notification.notification DROP COLUMN context_channel_id;
|
ALTER TABLE users
ADD COLUMN tier TINYINT(4) NOT NULL DEFAULT 2 AFTER url;
|
<filename>src/test/resources/bvt/parser/antlr_grammers_v4_plsql/examples/query_factoring11.sql
with col_generator as (
select t1.batch_id, decode(t1.action, 'sent', t1.actdate) sent,
decode(t2.action,'recv', t2.actdate) received
from test t1, test t2
where t2.batch_id(+) = t1.batch_id)
select batch_id, max(sent) sent, ... |
SET search_path = pg_catalog;
DROP FUNCTION public.fn_plpgsqltestout(param_subject text, subject_scramble text, INOUT subject_char text, OUT subject_char_out text);
CREATE OR REPLACE FUNCTION public.fn_plpgsqltestout(param_subject text, INOUT subject_scramble text, INOUT subject_char text, OUT subject_char_out text) ... |
SELECT
(CASE `o`.`OrcamentoModulo`
WHEN 1 THEN 'Venda'
WHEN 2 THEN 'Serviço'
WHEN 3 THEN 'Locação'
END) AS `Tipo`,
`o`.`DataPedido` AS `DataMovimento`,
`o`.`IdOrcamento` AS `Numero`,
`c`.`IdCliente` AS `IdCliente`,
`c`.`Nome` AS `Pesso... |
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Мар 20 2018 г., 06:26
-- Версия сервера: 5.7.18-0ubuntu0.16.04.1
-- Версия PHP: 7.0.28-1+ubuntu16.04.1+deb.sury.org+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 S... |
<gh_stars>1-10
ALTER TABLE area_history ADD CONSTRAINT area_history_user_account_id FOREIGN KEY (user_account_id) REFERENCES user_account_information(id);
|
with deploys as (
select id, team_id, to_char(start_time, 'YYYY-MM-DD') ymd
from builds
where public_plan::text like '%promote%'
and status = 'succeeded'
and start_time > current_timestamp - interval '1 month'
)
select ymd, count(id) as total
from deploys
group by ymd
order by ymd
|
-- @testpoint: 插入浮点数,四舍五入
drop table if exists bigint03;
create table bigint03 (name bigint);
insert into bigint03 values (2.00000000001);
insert into bigint03 values (122.3340);
insert into bigint03 values (-2.03);
insert into bigint03 values (-122.3340);
select * from bigint03;
drop table bigint03;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 1172.16.31.10
-- Tiempo de generación: 02-05-2019 a las 21:06:51
-- Versión del servidor: 10.1.19-MariaDB
-- Versión de PHP: 7.0.13
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
CREATE SCHEMA `school`;
CREATE TABLE `school`.`family` (
`family_id` INT NOT NULL AUTO_INCREMENT,
`address` VARCHAR(50) NOT NULL,
`city` VARCHAR(20) NOT NULL,
`home_state` VARCHAR(20) NOT NULL,
`zip_code` INT NOT NULL,
PRIMARY KEY (`family_id`)
);
CREATE TABLE `school`.`user_info` (
`users_id` INT NOT NULL A... |
INSERT INTO `fpgrowth` (`id`, `nama_lengkap`, `pilihan_ruangan`, `mbti`, `warna_favorite`, `support`, `confidence`, `created_at`, `updated_at`) VALUES
(1, 'novianti', 'RU<NAME>', 'ISTJ', 'MERAH', '1', '100', '2020-06-21 00:53:53', '2020-06-21 00:53:53'),
(2, 'novianti', 'RUANG KELUARGA', 'ISTJ', 'MERAH', '1', '33.33333... |
<reponame>xander69/SkolkoDoBaniBot
insert into setting (id, name, value, default_value)
values (14, 'CROWN_LIMIT', 50, 50); |
<filename>migrations/20181203145351_add_indexes.up.sql
CREATE INDEX user_reactions_card_id_type_idx ON user_reactions (card_id, type);
CREATE INDEX cards_thread_root_id_idx ON cards (thread_root_id);
CREATE INDEX cards_owner_id_idx ON cards (owner_id);
|
<reponame>h-ssiqueira/HackerRank-problems
select name from Employee order by name asc; |
CREATE TABLE [Misc-ReportsPopUp] (
[View] SHORT ,
[ApplyToAll] BIT ,
[ReportPopupX] SHORT ,
[ReportPopupY] SHORT ,
[ShowReportPopup] BIT ,
[FormInsideHeight] LONG
)
|
-- file:alter_table.sql ln:466 expect:true
ALTER TABLE FKTABLE ADD CONSTRAINT fkdi2 FOREIGN KEY(ftest1) REFERENCES pktable
ON DELETE CASCADE ON UPDATE NO ACTION NOT DEFERRABLE
|
CREATE DATABASE `hardphp` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
use `hardphp`;
drop table if exists `dbsession`;
create table `dbsession` (
`id` int(32) not null primary key auto_increment,
`sessionid` varchar(60) not null,
`data` text not null,
`lastvisit` int(32) not null
)ENGINE=Inn... |
<reponame>dram/metasfresh
update C_PurchaseCandidate set PurchaseDateOrdered=PurchaseDatePromised where PurchaseDateOrdered is null;
|
/**************************************************************************
* Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI)
*
* 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 Li... |
<reponame>mfkdgefhn/apiadmin
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.5.5-10.2.12-MariaDB)
# Database: apiadmin_new
# Generation Time: 2018-06-10 07:00:01 +0000
... |
<filename>resources/sql/patches/034.savedheader.sql
CREATE TABLE {$NAMESPACE}_herald.herald_savedheader (
phid varchar(64) binary not null primary key,
header varchar(255) not null
) ENGINE=InnoDB; |
<filename>database/procds/spUpdateComponentCourse.sql
-- =============================================
-- Create basic stored procedure template
-- =============================================
-- Drop stored procedure if it already exists
IF EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC... |
use brihaspati;
delete from INSTITUTE_ADMIN_USER where NOT EXISTS (select INSTITUTE_ID from INSTITUTE_ADMIN_REGISTRATION where(INSTITUTE_ADMIN_USER.INSTITUTE_ID=INSTITUTE_ADMIN_REGISTRATION.INSTITUTE_ID));
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Ноя 17 2019 г., 23:36
-- Версия сервера: 5.6.37-log
-- Версия PHP: 7.1.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 S... |
<gh_stars>10-100
----------------------------
-- Copyright (C) 2021 CARTO
----------------------------
CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.PLACEKEY_ISVALID
(placekey VARCHAR(19))
RETURNS BOOLEAN
STABLE
AS $$
from @@RS_PREFIX@@placekeyLib import placekey_is_valid
return placekey_is_valid(placekey)
... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.58.3
-- Generation Time: Jul 27, 2021 at 05:27 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
-- serial_numbers --
SET SESSION sql_mode="NO_AUTO_CREATE_USER";
CREATE TABLE `phppos_items_serial_numbers` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`item_id` int(10) NOT NULL,
`serial_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`unit_price` DECIMAL(23,10) NULL DEFAULT NULL,
UNIQUE KEY `serial_... |
CREATE TABLE [Production].[ProductModelProductDescriptionCulture]
(
[ProductModelID] INT NOT NULL,
[ProductDescriptionID] INT NOT NULL,
[CultureID] NCHAR (6) NOT NULL,
[RowStatus] TINYINT NOT NULL,
[CreatedBy] UNIQUEIDENTIFIER NOT NULL,
[ModifiedBy] UNIQUEIDEN... |
INSERT INTO `blog`. `inserts` ( `name` , `created_at` )
VALUES ( '003_settings', NOW( ) );
CREATE TABLE IF NOT EXISTS `blog`.`settings` (
`object_id` int(10) unsigned NOT NULL,
`object_type` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` text COLLATE ... |
<filename>drop-ddl.sql
DROP TABLE TRANSACTIONS;
DROP TABLE CUSTOMERBANKCONN;
DROP TABLE BANKACCOUNTS;
DROP TABLE CUSTOMERS;
DROP TABLE EMPLOYEES;
DROP TABLE ADMINS; |
-- MySQL dump 10.13 Distrib 8.0.21, for macos10.15 (x86_64)
--
-- Host: 127.0.0.1 Database: asopf_db
-- ------------------------------------------------------
-- Server version 8.0.22
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... |
INSERT INTO burgers (burger_name,devoured) VALUES ('CHILLI BURGER', TRUE);
INSERT INTO burgers (burger_name,devoured) VALUES ('CRISPY CHICKEN BURGER', TRUE);
INSERT INTO burgers (burger_name,devoured) VALUES ('GRILLED CHICKEN BURGER', TRUE);
INSERT INTO burgers (burger_name,devoured) VALUES ('BACON BURGER', TRUE);
INSE... |
INSERT INTO edition (edition_sk, data) VALUES (1, '{"host_city": "Rio de Janeiro", "editionyear": 2016, "num_nations": 207, "num_athletes": 11238}');
INSERT INTO edition (edition_sk, data) VALUES (2, '{"host_city": "London", "editionyear": 2012, "num_nations": 204, "num_athletes": 10768}');
INSERT INTO edition (editio... |
SELECT
DECODE(USER_PROCEDURES.procedure_name, NULL,
USER_PROCEDURES.object_name || USER_PROCEDURES.procedure_name,
USER_PROCEDURES.procedure_name) AS ROUTINE_NAME,
USER_OBJECTS.OBJECT_TYPE AS ROUTINE_TYPE,
USER_ARGUMENTS.ARGUMENT_NAME AS PARAMETER... |
<reponame>syphoneappy/MyMlsuRepo<filename>MLSU/mlsu.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2020 at 01:44 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TR... |
<filename>deprecated/mimic_iv_vli/analysis/sql/sepsis.sql
-- ------------------------------------------------------------------
-- Description: Septic patients to be excluded.
-- Notes: /analysis/sql/hct.sql
-- MIMICIII
-- Selects septic patients according to different criteria in mimic derived table... |
\set ON_ERROR_STOP on
\set ECHO all
\if :{?schema}
SET search_path = :schema;
\endif
\include_relative lexis_nexis_tables.sql
\include_relative lexis_nexis_views.sql
\include_relative Procedures/lexis_nexis_applicants_data.sql
\include_relative Procedures/lexis_nexis_parse_abstracts.sql
\include_relative Procedures/... |
USE [VipunenTK_DW]
GO
/****** Object: StoredProcedure [dbo].[p_lataa_AVL_f_2_5_ainevalinnat_kieltenmaara_oppilasmaarat] Script Date: 24.4.2018 13:59:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[p_lataa_AVL_f_2_5_ainevalinnat_kieltenmaara_oppilasmaarat] AS
/* Lauseet siirtoon V... |
<filename>Day 1/01. Intro Lab/1-Intro queries.sql<gh_stars>1-10
-- Distributions scaling
SELECT * FROM SYS.pdw_distributions
-- list the distributions on the compute nodes
SELECT distinct pdw_node_id, MIN(distribution_id) [min_distributions_id], MAX(distribution_id) [max_distributions_id]
FROM SYS.pdw_distributi... |
<filename>src/test/resources/memdb.test_40.sql
-- memdb.test
--
-- execsql {
-- DELETE FROM t1;
-- SELECT count(*) FROM t1;
-- }
DELETE FROM t1;
SELECT count(*) FROM t1; |
-- file:triggers.sql ln:681 expect:true
CREATE TRIGGER invalid_trig BEFORE INSERT ON main_view
FOR EACH ROW EXECUTE PROCEDURE trigger_func('before_ins_row')
|
ALTER TABLE Student MODIFY COLUMN Chapter Int; |
<reponame>ddlscript/ddlscript-server<gh_stars>0
SELECT DISTINCT __P__.TIMESTAMP_CREATED
, __P__.TIMESTAMP_DELETED
, __P__.ID
, __P__.NAME
, __P__.DATABASE_TYPE
, __P__.USER_ID_CREATED
, __P__.TEMPLATE_BEFORE_ALL
, __P__.TEMPLATE_BEFORE_EACH
... |
DROP TABLE rothschild.`ContactValues`; |
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/common/uxb-service/src/main/java/tpl/sql/Parent.sql
## 更新签名介绍
#macro($updateIntroduce(userId,introduce))
UPDATE parent SET introduce = :introduce WHERE id = :userId
#end |
<filename>sql/fusion_user-11-15.sql
/*
Navicat Premium Data Transfer
Source Server : luna-aliyuncs-qiaowe
Source Server Type : MySQL
Source Server Version : 50734
Source Host : 172.16.58.3:3306
Source Schema : fusion_user
Target Server Type : MySQL
Target Server Version : 50734... |
ALTER TABLE lineage
ADD COLUMN establisher_oddrn varchar,
DROP CONSTRAINT lineage_pk;
WITH cte AS (
SELECT
DISTINCT (parent_oddrn) AS parent_oddrn,
de.specific_attributes #> '{DATA_TRANSFORMER, target_list}' AS targets_jsonb,
det.name
FROM lin... |
<filename>invoice/src/main/resources/org/killbill/billing/invoice/migration/V20180501155616__invoice_item_product_name.sql
alter table invoice_items add column product_name varchar(255) after description;
|
drop index ACT_IDX_HI_IDENT_LNK_USER on ACT_HI_IDENTITYLINK;
drop index ACT_IDX_HI_IDENT_LNK_SCOPE on ACT_HI_IDENTITYLINK;
drop index ACT_IDX_HI_IDENT_LNK_SUB_SCOPE on ACT_HI_IDENTITYLINK;
drop index ACT_IDX_HI_IDENT_LNK_SCOPE_DEF on ACT_HI_IDENTITYLINK;
drop table if exists ACT_HI_IDENTITYLINK; |
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/ct/sql/skip/ct_heap_alter_part_exchange_partlist.sql<gh_stars>1-10
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
--
-- CT HEAP TABLE 1
--
CREATE TABLE ct_heap_alter_part_exchange_partlist1 (
unique1 ... |
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Czas wygenerowania: 30 Sie 2014, 17:01
-- Wersja serwera: 5.1.41
-- Wersja PHP: 5.4.29
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET... |
<reponame>rochaandre/scripts-oracle-named
SET ECHO off
REM NAME: TFSFSSUM.SQL
REM USAGE:"@path/tfsfssum"
REM ------------------------------------------------------------------------
REM REQUIREMENTS:
REM SELECT ON DBA_FREE_SPACE< DBA_DATA_FILES
REM -----------------------------------------------------------... |
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: onlinetailoringsystem
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE... |
grant all privileges on *.* to 'root'@'localhost' identified by 'root123' with grant option;
grant all privileges on *.* to 'root'@'%' identified by 'root123' with grant option;
grant all privileges on *.* to 'root'@'controller60' identified by 'root123';
CREATE DATABASE IF NOT EXISTS keystone DEFAULT CHARACTER SE... |
<reponame>inbo/movepub
/*
Created by <NAME> (INBO)
Mapping from Camtrap DP: https://tdwg.github.io/camtrap-dp
Mapping to Audubon Media Description: https://rs.gbif.org/extension/ac/audubon_2020_10_06.xml
Y = included in DwC, N = not included in DwC
CAMTRAP DP MEDIA
mediaID Y: as link to observ... |
<filename>SQL/Views/CompanyMeetingStat.sql<gh_stars>0
-- DROP VIEW IF EXISTS da.CompanyMeetingStat;
CREATE VIEW da.CompanyMeetingStat
AS
SELECT collema.colleague_id,
courl.company_id,
COUNT(DISTINCT mtg.meeting_id) AS NumMeetings,
MIN(mtg.start_date) AS FirstMeeting,
MAX(mtg.start_date... |
/*
Warnings:
- Added the required column `roleId` to the `UsersOnTeams` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE `UsersOnTeams` ADD COLUMN `roleId` INTEGER NOT NULL;
-- CreateTable
CREATE TABLE `Role` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
... |
{{ codegen.generate_base_model(
source_name='raw',
table_name='ext_disp'
) }}
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jun 03, 2021 at 09:39 PM
-- Server version: 5.7.24
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
SELECT * FROM MiscellaneousInformation; |
<filename>Blocking Alert/BT-Live-WhoIsActive.sql
USE tempdb;
DECLARE @s VARCHAR(MAX), @t VARCHAR(MAX);
DECLARE @tableName varchar(255);
DECLARE @start_loop bit = 0;
DECLARE @DeleteFlag tinyint; /* 0 = drop, 1 = truncate, 2 = No Action */
SET @DeleteFlag = 0;
SET @tableName = 'dbo.WhoIsActive';
EXEC sp_WhoIsActive @so... |
INSERT INTO `ecommerce_database`.`CUSTOMER` SET ?; |
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE `items` (
`id` INTEGER NULL PRIMARY KEY AUTOINCREMENT,
`feed_id` INTEGER NULL,
`title` VARCHAR(255) NULL,
`author` VARCHAR(255) NULL,
`url` VARCHAR(255) NULL,
`content` TEXT NULL,
`enclosure_url` VARCHAR(255) NULL,
`enclosure_type`... |
<reponame>ajah/country-list
CREATE TABLE country (id NVARCHAR(2) NOT NULL, name NVARCHAR(64) NOT NULL, PRIMARY KEY (id));
INSERT INTO [country] ([id], [name]) VALUES ('BR', 'Brazil');
INSERT INTO [country] ([id], [name]) VALUES ('FR', 'France');
INSERT INTO [country] ([id], [name]) VALUES ('DE', 'Germany');
INSERT INT... |
<filename>DevOpsThirdPartyToolsIntegration/src/db/initData.sql
CREATE TABLE IF NOT EXISTS `employees` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) DEFAULT NULL,
`password` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT... |
<reponame>carloscasalar/sqlPlusToolBox
column MACHINE format a30
select sum(a.value) total_cur, avg(a.value) avg_cur, max(a.value) max_cur,
s.username, s.machine
from v$sesstat a, v$statname b, v$session s
where a.statistic# = b.statistic# and s.sid=a.sid
and b.name = 'opened cursors current'
group by s.username, s.ma... |
DROP TABLE IF EXISTS `submissions`;
CREATE TABLE `submissions` (
`id` bigint(20) NOT NULL,
`author_id` bigint(20) DEFAULT NULL,
`program_id` bigint(20) DEFAULT NULL,
`degree_id` bigint(20) DEFAULT NULL,
`semester` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`year` int(11) DEFAULT NULL,
`created_... |
<gh_stars>1-10
delete from orders_order_items;
delete from order_item;
delete from orders;
alter sequence hibernate_sequence restart with 200;
INSERT INTO orders (id, address, city, date, email, first_name, last_name, phone_number, post_index, total_price) VALUES (1, 'Wall street 1', 'New York', '2021-02-06', '<EMAIL... |
<reponame>liuping0822/profit<gh_stars>100-1000
PRAGMA foreign_keys = off;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "orders" (
"order_no" varchar(50) PRIMARY KEY NOT NULL,
"pay_user" varchar(50) NOT NULL,
"pay_email" varchar(100),
"pay_comment" varchar(500) NOT NULL,
"trade_no" varchar(50) NOT NULL,
"c... |
<filename>api/migrations/sqls/20160528180708-done-column-up.sql
ALTER TABLE Sprint ADD COLUMN doneColumn varchar(128);
|
if exists (select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'fnSqlDependentLevel' and ROUTINE_TYPE = 'FUNCTION')
Drop Function dbo.fnSqlDependentLevel;
GO
/**********************************************************************************************************************
* Copyright (C) 2005-... |
<reponame>podkrepi-bg/api<gh_stars>1-10
/*
The below migration is written by hand because the default migration drops and recreates tables
*/
-- RenameEnum
ALTER TYPE "report_status" RENAME TO "irregularity_status";
-- CreateEnum
CREATE TYPE "irregularity_reason" AS ENUM ('duplicate', 'inappropriate', 'illegalActivity... |
<filename>packages/workflow/sql/oracle/upgrade/upgrade-2.0.0b3-2.0.0b4.sql<gh_stars>0
--
--
--
-- @author <NAME> (<EMAIL>)
-- From bug #2210
-- @creation-date 2004-12-16
-- @arch-tag: 16d12f6e-d889-45a4-b7d5-df75388b11fe
-- @cvs-id $Id: upgrade-2.0.0b3-2.0.0b4.sql,v 1.1.1.1 2006/10/25 17:55:34 cvs Exp $
--
create o... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 14-Maio-2019 às 00:02
-- Versão do servidor: 10.1.35-MariaDB
-- versão do PHP: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... |
@src\t_hcc_orderby_advisor_log.sql
@src\pkg_hcc_orderby_advisor.sql
@src\pkg_hcc_orderby_advisor_body.sql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.