sql
stringlengths
6
1.05M
<reponame>Danial41/- DELETE FROM `#__quiz_t_qtypes` WHERE c_id = '12'; INSERT INTO #__quiz_t_qtypes (c_id, c_qtype, c_type) VALUES (12, 'Image Match', 'imgmatch'); CREATE TABLE IF NOT EXISTS `#__quiz_t_matching` ( `c_id` int(10) unsigned NOT NULL auto_increment, `c_question_id` int(10) unsigned NOT NULL default ...
COPY level5(pr_gene_id, sig_id, zscore) FROM PROGRAM 'gunzip -c /home/oleg/Documents/dbase/lincs/GSE70138/GSE70138_Broad_LINCS_Level5_COMPZ_n118050x12328_2017-03-06.list.txt.gz' WITH ( FORMAT CSV, HEADER true, NULL 'NA', DELIMITER E'\t', QUOTE '"' ); COPY level5(pr_gene_id, sig_id, zscore) FROM PROGRAM 'gunzip -c...
DELIMITER / INSERT INTO IACUC_PROTOCOL_REVIEWER_TYPE (REVIEWER_TYPE_CODE, DESCRIPTION, UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) VALUES ('1', 'primary', NOW(), 'admin', 1, UUID()) / INSERT INTO IACUC_PROTOCOL_REVIEWER_TYPE (REVIEWER_TYPE_CODE, DESCRIPTION, UPDATE_TIMESTAMP,UPDATE_USER,VER_NBR,OBJ_ID) VALUES ('2', 's...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_3_1_sp_2_logs/KCINFR-249.sql create sequence SEQ_SPONSOR_CODE INCREMENT BY 1 START WITH 100000; INSERT INTO KRNS_PARM_T (APPL_NMSPC_CD, NMSPC_CD, PARM_DTL_TYP_CD, PARM_NM, PARM_TYP_CD, TXT, PARM_DESC_TXT, CONS_CD, obj_id) VALU...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_0-CLEAN/oracle/krrelease/datasql/KR_03_KRIM_PERM_T.sql INSERT INTO KRIM_PERM_T (PERM_ID,PERM_TMPL_ID,NMSPC_CD,NM,DESC_TXT,ACTV_IND,OBJ_ID,VER_NBR) VALUES (KRIM_PERM_ID_BS_S.NEXTVAL,(SELECT PERM_TMPL_ID FROM KR...
<filename>sql/data-design.sql<gh_stars>0 DROP TABLE IF EXISTS star; DROP TABLE IF EXISTS `user`; DROP TABLE IF EXISTS property; DROP TABLE IF EXISTS crime; CREATE TABLE `user` ( userId BINARY(16) NOT NULL, userActivationToken CHAR(32), userEmail VARCHAR(128) NOT NULL, userHash CHA...
-- !Ups CREATE TYPE MAKER_PAYMENT_STATUS_TYPE AS ENUM ( 'PENDING', 'SENT', 'FAILED' ); CREATE TABLE maker_payments( maker_payment_id UUID NOT NULL, trade_id UUID NOT NULL, client_id UUID NOT NULL, amount SATOSHIS_TYPE NOT NULL, currency CURRENCY_TYPE NOT NULL, status MAKER_PAYMENT_S...
INSERT INTO libros_autores (libro, autor) VALUES (1,1); INSERT INTO libros_autores (libro, autor) VALUES (2,1); INSERT INTO libros_autores (libro, autor) VALUES (3,1); INSERT INTO libros_autores (libro, autor) VALUES (4,1); INSERT INTO libros_autores (libro, autor) VALUES (5,8); INSERT INTO libros_autores (libro, autor...
<filename>SJL_AzureAPI/src/TripJetLagAPI/SQL/spNoteByTripLeg.sql CREATE PROCEDURE [dbo].[sp_GetNoteByTripLeg] @Id int AS BEGIN SET NOCOUNT ON SELECT NoteId, Note, TripLeg.TripId, TripLeg.TripLegId, TripLeg.Segment, TripLeg.DepartureDate, TripLeg.ArrivalDate, d.AirportName AS DAirportName, a.AirportName AS AAirpor...
<gh_stars>0 DROP FUNCTION IF EXISTS char_to_uuid; CREATE FUNCTION `char_to_uuid`(`s` CHAR(36)) RETURNS binary(16) DETERMINISTIC SQL SECURITY INVOKER RETURN UNHEX(CONCAT(LEFT(s, 8), MID(s, 10, 4), MID(s, 15, 4), MID(s, 20, 4), RIGHT(s, 12))); DROP FUNCTION IF EXISTS uuid_to_char; DELIMITER $$ CREATE FUNCTION `uuid...
<gh_stars>0 -- See https://www.playframework.com/documentation/2.0/Evolutions for details on -- how database migrations (aka evolutions) work in the play framework -- To generate a schema diagram for this: -- java -jar schemaSpy_5.0.0.jar -t mysql -db textbook_finder -host localhost -u root -dp mysql-connector-java-5....
SET client_min_messages TO WARNING; drop view if exists q0; create view q0 as select count(*) from lineitem union all select count(*) from orders union all select count(*) from customer union all select count(*) from supplier union all select count(*) from part union all select count(*) from partsupp union all selec...
-- TODO: How do we make this work nicely on Snowflake too? {% if target.type == 'snowflake' %} {% set column_values = ['RED', 'BLUE'] %} {% set cmp = 'ilike' %} {% else %} {% set column_values = ['red', 'blue'] %} {% set cmp = '=' %} {% endif %} select size, {{ dbt_utils.pivot('color', column...
<filename>addons/command/install.sql CREATE TABLE IF NOT EXISTS `__PREFIX__command` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', `type` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '类型', `params` varchar(1500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT N...
<reponame>lct45/kafka-tutorials SELECT o.id AS order_id, TIMESTAMPTOSTRING(o.rowtime, 'yyyy-MM-dd HH:mm:ss', 'UTC') AS order_ts, o.total_amount, o.customer_name, s.id as shipment_id, TIMESTAMPTOSTRING(s.rowtime, 'yyyy-MM-dd HH:mm:ss', 'UTC') AS shipment_ts, s.warehouse, ...
<filename>output/tsql/1.4.19/vwTableInfo.sql /* vwTableInfo - Table Information View This view display space and storage information for every table in a SQL Server 2005 database. Columns are: Schema Name Owner (may be different from Schema) Columns (count of the max number of columns ev...
<reponame>deflaux/workbench SELECT p.person_id _id, DATE(p.YEAR_OF_BIRTH, p.MONTH_OF_BIRTH, p.DAY_OF_BIRTH) birth_datetime, p.gender_concept_id, case when gc.concept_name is null then 'Unknown' else gc.concept_name end as gender_concept_name, p.race_concept_id, case when rc.concept_name is null then 'Unknow...
<filename>sql/003-more-rt-values.sql<gh_stars>1-10 BEGIN; ALTER TABLE rt.weight ADD CONSTRAINT rt_weight_weight_unique UNIQUE (weight); ALTER TABLE rt.timescale ADD CONSTRAINT rt_timescale_time_unique UNIQUE (time); ALTER TABLE rt.action_type ADD CONSTRAINT rt_action_type_ordering_unique ...
---------------------------- -- Copyright (C) 2022 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.__QUADKEY_BBOX_INTERNAL (quadkey VARCHAR(MAX)) RETURNS VARCHAR(MAX) STABLE AS $$ from @@RS_PREFIX@@quadkeyLib import bbox_quadkey if quadkey is None: raise Exception(...
<gh_stars>0 -- @testpoint: 查看segment_size,报告当前数据库所使用的段文件大小 --通过show方式查看 show segment_size; --通过系统视图pg_settings查看 select setting from pg_settings where name='segment_size';
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: template_crudbooster -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
<filename>zvari_chemicals.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Mar 26, 2022 at 06:38 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50733 Source Host : localhost:3306 Source Schema : invo Target Server Type : MySQL Target Server Version : 50733 File Encoding : 65001 ...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'601918',@CutoffDate = N'2017-09-30',@EPS = N'0.065',@EPSDeduct = N'0',@Revenue = N'54.40亿',@RevenueYoy = N'46.08',@RevenueQoq = N'33.47',@Profit = N'1.70亿',@ProfitYoy = N'-31.67',@ProfiltQoq = N'155.70',@NAVPerUnit = N'1.8833',@ROE = N'3.61',@CashPerUnit = N'0.6702',@GrossProfitRate...
<filename>aluinch.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 28, 2019 at 10:14 AM -- Server version: 5.7.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
<filename>lecture58.sql # 2017年1月のデータのみを摘出 #select * from orders where order_time >='2017-01-01 00:00:00' and order_time < '2017-02-01 00:00:00' # 2017年1月の売上を計算する select sum(amount) from orders where order_time >='2017-01-01 00:00:00' and order_time < '2017-02-01 00:00:00'
-- DROP PROCEDURE IF EXISTS `proc_get_eid_county_hei_validation`; -- DELIMITER // -- CREATE PROCEDURE `proc_get_eid_county_hei_validation` -- (IN C_id INT(11), IN filter_year INT(11), IN from_month INT(11), IN to_year INT(11), IN to_month INT(11)) -- BEGIN -- SET @QUERY = "SELECT -- SUM(`validation_confirm...
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 22, 2016 at 06:43 AM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<reponame>brc-dd/storyzen CREATE TABLE `stories` ( `id` INT NOT NULL AUTO_INCREMENT, `title` TEXT NOT NULL, `url_title` VARCHAR(1000) NOT NULL UNIQUE, `content` TEXT NOT NULL, `date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `hits` INT NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE = MyISAM;
CREATE PROCEDURE [dbo].[uspMessageSelectByRecipientAndRecipientType] @recipientType int, @recipient int, @showDeleted bit AS BEGIN SET NOCOUNT ON BEGIN TRY Begin Select * From Message Where RecipientType = @recipientType And Reci...
INSERT INTO doctors VALUES(NULL," Aanya","Surgeon",1000,"123456701"); INSERT INTO doctors VALUES(NULL," Sunita ","Infectious disease physicians",1000,"123456789"); INSERT INTO doctors VALUES(NULL," Rishabh","Ophthalmologist",1000,"128632749"); INSERT INTO doctors VALUES(NULL," <NAME>","Gynecologist",1000,"120156789"); ...
update behandling set kategori = 'NASJONAL' where kategori = 'NATIONAL';
CREATE TABLE share_links ( id TEXT PRIMARY KEY NOT NULL, expiration INT NOT NULL, created_at INT NOT NULL ); CREATE TABLE share_link_files ( share_link_id TEXT, file_id INT ); CREATE TABLE files ( id INTEGER PRIMARY KEY AUTOINCREMENT, info TEXT, file_size BIGINT, sha256 TEXT, p...
DELIMITER $$ DROP FUNCTION IF EXISTS diaSemana$$ CREATE FUNCTION diaSemana(numero int) RETURNS VARCHAR(10) BEGIN DECLARE diaRes VARCHAR(10); CASE numero WHEN 1 THEN SET diaRes='Lunes'; WHEN 2 THEN SET diaRes='Martes'; WHEN 3 THEN SET diaRes='Miercoles'; WHEN 4 THEN SET diaRes='Jueves'; WHEN 5 THEN SET dia...
# --- !Ups delete from user; insert into user (type,email,department_id,role,name,password) values ( 'a','<EMAIL>',1,'admin','Alice Admin', 'password'); insert into user (type,email,department_id,role,name,password) values ( 'c','<PASSWORD>',1,'user','Alice Admin', 'password');
<filename>appng-core/src/main/resources/db/init/mysql/drop.sql DROP USER '<user>'@'localhost'; DROP USER '<user>'@'%'; DROP DATABASE IF EXISTS <database>;
-- The file has some overlapping with upgrade-3.2.0-to-4.0.0-alpha-2.postgres.sql SELECT 'Upgrading MetaStore schema from 3.1.3000 to 4.0.0-alpha-2'; -- HIVE-20793 ALTER TABLE "WM_RESOURCEPLAN" ADD "NS" character varying(128); UPDATE "WM_RESOURCEPLAN" SET "NS" = 'default' WHERE "NS" IS NULL; ALTER TABLE "WM_RESOURCEPL...
<filename>chapter_005/src/main/java/ru/job4j/sql/items.sql -- -- PostgreSQL database dump -- -- Dumped from database version 10.3 -- Dumped by pg_dump version 10.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_string...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2016 at 01:20 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 07, 2015 at 02:35 AM -- Server version: 5.5.41-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
/* Navicat MySQL Data Transfer Source Server : 本地连接 Source Server Version : 50711 Source Host : localhost:3306 Source Database : tp Target Server Type : MYSQL Target Server Version : 50711 File Encoding : 65001 Date: 2017-06-26 18:06:04 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
<filename>gcp-test/tests/gcp_logging_metric/test-hydrate-query.sql select name, metric_descriptor_display_name, metric_descriptor_metric_kind, metric_descriptor_type, metric_descriptor_unit, metric_descriptor_value_type, metric_descriptor_labels, filter, description, value_extractor, label_extractors from gcp.gcp_loggi...
-- start_ignore drop function if exists f(); -- end_ignore create or replace function f() returns void as $$ declare begin return; end; $$ language plpgsql; set gp_test_system_cache_flush_force = plain; comment on function f() is $$ @long_comment@ $$;
CREATE OR REPLACE FUNCTION retcomposite(IN integer, IN integer, OUT f1 integer, OUT f2 integer, OUT f3 integer) RETURNS SETOF record AS 'filename', 'retcomposite' LANGUAGE C IMMUTABLE STRICT;
insert into region(region_id, country_id, city_id, name) values (88, 3159, 0, "Крым"); insert into city(country_id, region_id, name) values (3159, 88, 'Азовское'); insert into city(country_id, region_id, name) values (3159, 88, 'Алупка'); insert into city(country_id, region_id, name) values (3159, 88, 'Алушта'); insert...
<reponame>psiopic2/psiopic2<gh_stars>0 --- Create initial user --- INSERT INTO user (user_id,user_name,user_password,user_email,user_token,user_registration,user_newpassword) VALUES ( 1, 'Admin', ':pbkdf2:sha256:10000:128:z6MSD/LNN3prz1ig8W40tg==:Kbgio2Xqqebibf56+D3rS+pSoZt6+VEPWryAatH5xzjAe6/kJ8S...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 29, 2019 at 08:51 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
WITH CTE_ClientsPerTown(ID, Names, Email, Bill, Town, [RANK]) AS ( SELECT c.Id, c.FirstName + ' ' + c.LastName, c.Email, o.Bill, t.[Name], DENSE_RANK() OVER (PARTITION BY t.[Name] ORDER BY o.Bill DESC) FROM CLIENTS AS c JOIN Orders AS o ON o.ClientId = c.Id JOIN Towns AS t ON t.Id = o.TownId WHER...
<reponame>kennj2016/test-mvc -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 03, 2020 at 09:24 PM -- Server version: 5.7.32 -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:4306 -- Generation Time: Jul 23, 2021 at 11:30 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
create table stocks( stock_id int, company_name varchar(50), symbol varchar(10), price decimal(10,2) ); insert into stocks(stock_id, company_name, symbol, price) values(1, 'Comp1', 'C1', 10.2); insert into stocks(stock_id, company_name, symbol, price) values(2, 'Comp2', 'C2', 1.5); insert into stocks(s...
<reponame>mraihanna/Sistem_Informasi_Bimbingan -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 10, 2022 at 03:20 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "...
 delete from phrases where label = 'requesttypes.hostpitalized' delete from phrases where label = 'requesttypes.missionary' delete from phrases where label = 'requesttypes.government' insert into requesttypes (title) values ( 'requesttypes.spiritualrenewal' ) INSERT INTO phrases ([id], [language_id], [label], [phras...
<gh_stars>1-10 CREATE OR REPLACE FUNCTION "public"."geoc_wgs84togcj02"("geom" "public"."geometry") RETURNS "public"."geometry" AS $BODY$ DECLARE i geometry; transform_i geometry; multiArr geometry[]; BEGIN IF st_srid(geom) != 4490 and st_srid(geom) != 4326 THEN RETURN null;...
select sys.ResourceId, sys.ResourceType, sys.Name0 as ComputerName, sys.SMS_Unique_Identifier0 as SMSID, sys.Resource_Domain_OR_Workgr0 as Domain, sys.Client0 as Client from v_R_System sys where sys.ResourceId in (select resourceid from v_CollectionMemberClientBaselineStatus cbs where cbs.boundarygroups ...
<reponame>TIBHannover/ConfIDent_schema CREATE TABLE "AcademicField" ( schema_value TEXT NOT NULL, schema_name TEXT, schema_base_uri TEXT, PRIMARY KEY (schema_value, schema_name, schema_base_uri) ); CREATE TABLE "Attendee" ( type TEXT, id TEXT NOT NULL, name TEXT, external_id TEXT, PRIMARY KEY (id) );...
/** * NOTE: This view affects following Jasper documents: Receipt, Shipment, Sales Invoice, ShippedInOuts (Rüstliste) * please do Not change if you can't make sure they all still work. */ -- View: Report.fresh_InOutLine_PI_V -- DROP VIEW Report.fresh_InOutLine_PI_V; CREATE OR REPLACE VIEW Report.fresh_InOutLine_...
CREATE DATABASE IF NOT EXISTS `helppy` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `helppy`; -- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: localhost Database: helppy -- ------------------------------------------------------ -- Server version 5.5.38 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
<filename>database.sql<gh_stars>0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLL...
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2017] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may ob...
# # Copyright and license information from original project: # Licence: https://github.com/google/trillian/blob/6127136b153156fc6becb74edd21259fe4260ddc/LICENSE # Source: https://github.com/google/trillian/blob/6127136b153156fc6becb74edd21259fe4260ddc/storage/mysql/schema/storage.sql # # Copyright SecureKey Technologi...
<reponame>ESPORTMOH/PROYECTO_ESPORT_G6 -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.17.32 -- Tiempo de generación: 22-04-2018 a las 13:36:24 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; ST...
create procedure ProcWithUninitialisedVariable as begin declare @a int -- @A is uninitialised. This should be flagged as a problem print isnull(@A, -1) end
<reponame>twotwo/spring-boot-warmup DROP TABLE IF EXISTS t_user; DROP TABLE IF EXISTS t_exam_item; DROP TABLE IF EXISTS t_order; DROP TABLE IF EXISTS t_order_item; DROP TABLE IF EXISTS t_checklist; CREATE TABLE t_user ( id BIGINT AUTO_INCREMENT COMMENT '主键ID', name VARCHAR(30) NULL DEFAULT NULL COMMENT '姓名', age IN...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License")...
-- $Id$ ------------------------------------ -- SQL Tests for Reshape exec stream ------------------------------------ create schema reshape; set schema 'reshape'; alter system set "calcVirtualMachine" = 'CALCVM_JAVA'; -- exclude the constant/cast reduction rules so we can exercise the ReshapeRel -- transforming no...
<gh_stars>1-10 BEGIN TRANSACTION SET QUOTED_IDENTIFIER ON SET ARITHABORT ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON COMMIT BEGIN TRANSACTION ALTER TABLE dbo.tbl_ewm_structure DROP CONSTRAINT FK_tbl_ewm_Structure_tbl_ewm_template COMMIT BEGIN...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-01-2018 a las 06:14:11 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 02, 2019 at 01:49 AM -- Server version: 5.7.23 -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `nutriologo` -- -- -------------------------...
<reponame>Lexa307/Kido---discord-bot<filename>DB/KidoDBInit.sql<gh_stars>0 create database if not exists kidoDB; use kidoDB; create table if not exists kidoDB.users ( `id` varchar(255) not null,-- discord userid `money` int default 0, `description` varchar(255), -- user descibes yourself `voicem` int defau...
select Nome, Materia, (((Nota1 + Nota2 + Nota3 + Nota4 + Nota5) / 5)) as 'Media', IIF (((Nota1 + Nota2 + Nota3 + Nota4 + Nota5) / 5) >= 5,'Aprovado','Reprovado') as 'Status' from Diario01 ORDER BY Status asc; go select * from Diario01;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 12, 2017 at 03:27 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
SELECT * FROM sys.foreign_keys WHERE is_disabled = 1 ORDER BY Name
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.6.26) # Database: library # Generation Time: 2015-09-09 09:02:07 +0000 # *************************************************...
create database if not exists simple_todo character set = utf8mb4 collate = utf8mb4_general_ci; -- ref to https://dev.mysql.com/doc/refman/8.0/en/create-user.html create user 'tron'@'%' identified with mysql_native_password by '<PASSWORD>' -- identified with caching_sha2_password by '<PASSWORD>' password expi...
INSERT INTO SANITY1 (FIELD1, FIELD2, FIELD3) VALUES (?, ?, ?)
<filename>EngineersHealMechanizedUnits/abilities.sql<gh_stars>0 -- engineersheal -- Author: zarch -- DateCreated: 8/16/2020 3:42:56 PM -------------------------------------------------------------- -- UnitAbilities INSERT INTO UnitAbilities (UnitAbilityType, Name, Description, Inactive, ShowFloatTextWhenEarned, Perma...
<filename>internal/db/bootstrap/0001_init.sql CREATE TABLE IF NOT EXISTS gophers ( username TEXT PRIMARY KEY, disagreement_count INTEGER DEFAULT 0 NOT NULL, assessment_count INTEGER DEFAULT 0 NOT NULL ); CREATE TABLE IF NOT EXISTS experts ( username TEXT PRIMARY KEY, assessment_count INTEGER DEFA...
<filename>internal/catchup/load.sql SELECT coalesce(max(last), 0) AS last FROM catchup WHERE name=@name LIMIT 1
DECLARE @jsonSettings NVARCHAR(MAX) DECLARE @colour NVARCHAR(32) SET @jsonSettings=N'{"settings":{"colours":[{"colour":"red"},{"colour":"amber"},{"colour":"green"}]}}'; SET @colour=JSON_VALUE(@jsonSettings,'$.settings.colours[2].colour');
<reponame>sentrionic/Notable<filename>server/db/migration/000001_init_schema.down.sql<gh_stars>1-10 DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS notes;
/****** Object: Table [S_1_W].[A_SOURCE_CALENDAR] Script Date: 28-10-2021 11:10:28 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[A_SOURCE_CALENDAR]( [calendar_id] [int] IDENTITY(1,1) NOT NULL, [category] [nvarchar](150) NULL, [domain] [nvarchar](250) NULL, [segment] [...
create table points ( x int null ); INSERT INTO leetcode_easy.points (x) VALUES (-1); INSERT INTO leetcode_easy.points (x) VALUES (0); INSERT INTO leetcode_easy.points (x) VALUES (2); INSERT INTO leetcode_easy.points (x) VALUES (4); INSERT INTO leetcode_easy.points (x) VALUES (7);
-- randexpr1.test -- -- db eval {SELECT +coalesce((select max(11) from t1 where not case d+t1.c*coalesce((select max(coalesce((select d | e from t1 where 17 not between coalesce((select (t1.d) from t1 where t1.a between (select max(t1.b+d+t1.a) from t1)-t1.e and 17),t1.a) and 11),19)) from t1 where t1.d<t1.b),d)+t1.e ...
-- file:transactions.sql ln:229 expect:true INSERT INTO savepoints VALUES (20)
<reponame>dram/metasfresh -- Sep 6, 2016 12:17 PM -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDir...
<gh_stars>0 -- Author : afad ALTER TABLE `m_savings_account` ADD `last_accrual_amount` DECIMAL(19,6) DEFAULT '0.000000'
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 11. Apr 2015 um 21:53 -- Server Version: 5.5.27 -- PHP-Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
-- join jobseekers (E+W) - Detail = Province SELECT IFNULL(e.BEROEP_CD, w.BEROEP_CD) AS BEROEP_CD, IFNULL(e.REFERENTIEBEROEP, w.REFERENTIEBEROEP) AS REFERENTIEBEROEP, IFNULL(e.BEROEPENCLUSTER_CD, w.BEROEPENCLUSTER_CD) AS BEROEPENCLUSTER_CD, IFNULL(e.BEROEPENCLUSTER, w.BEROEPENCLUSTER) AS BEROEPENCLUS...
<reponame>IvoSestren/strn-ec CREATE TABLE cmscategoryshop ( id CHAVE NOT NULL, id_cms_category CHAVE NOT NULL, id_shop CHAVE NOT NULL, CONSTRAINT pk_cmscategoryshop PRIMARY KEY (id) );
<filename>database/queries/delSong.sql DELETE FROM songs WHERE song_id=?
COPY at_poi (id, name, comment, point, campground, elevation, type) FROM stdin; 791 Springer Mountain Southern terminus of the Appalachian Trail (34.626688000000001,-84.193892000000005) \N 3782 terminus 792 Mount Katahdin Northern terminus of the Appalachian Trail (45.902951999999999,-68.926152000000002) \N 4250 termin...
BEGIN; DO $$ DECLARE tsdb_ext PG_EXTENSION%ROWTYPE; BEGIN -- To ensure we only excute this once (in case of manual executions) we will check if the TimescaleDB extension exists, and only if so -- perform this table migration SELECT * FROM pg_extension WHERE extname = 'timescaled...
<reponame>KostadinovK/CSharp-DB CREATE FUNCTION udf_GetColonistsCount(@planetName VARCHAR(30)) RETURNS INT AS BEGIN DECLARE @colonists INT = ( SELECT COUNT(*) FROM Planets p JOIN Spaceports s ON s.PlanetId = p.Id JOIN Journeys j ON j.DestinationSpaceportId = s.Id JOIN TravelCards t ON t.JourneyId = j.Id...
CREATE DATABASE `volkszaehler`; CREATE USER 'vz'@'%' IDENTIFIED BY 'demo'; GRANT select, update, insert ON volkszaehler.* TO 'vz'@'%';
IF not EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Cards]') AND type in (N'U')) begin CREATE TABLE [dbo].[Cards]( [Id] [uniqueidentifier] NOT NULL DEFAULT (newsequentialid()) primary key, [CardNo] [nvarchar](50) NOT NULL, [SecondCardNo] [nvarchar](50) NULL, [Member] [uniqueidentifier] NO...
<reponame>viswaratha12/dbwarden /****** Object: View [dbo].[V_Job_Step_Backlog_Crosstab] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Job_Step_Backlog_Crosstab] AS SELECT PivotData.Posting_Time, IsNull([DTA_Gen], 0) AS [DTA_Gen], IsNull([DTA_Refinery], 0) AS [D...
with source as ( select * from {{var('tickets_table')}} ), renamed as ( select --ids id as ticket_id, organization_id, assignee_id, brand_id, group_id, requester_id, submitter_id, --fields status, prior...
<gh_stars>1-10 -- Fehlerbehebung von Version 2.3.4.1 -- Skripte 82 und 83 wurden evtl. nicht ausgeführt -- Literatur neu einfügen DELETE FROM [Literatur]; INSERT INTO [Literatur] ([LiteraturGUID],[Name],[Abkürzung],[Pfad],[Seitenoffset],[Größe],[GrößeKomprimiert],[UrlPdf],[UrlPrint]) VALUES ('00000000-0000-0000-...
<filename>src/main/resources/dbmigrate/mysql/oss/V0_0_0_3__oss_bucket.sql ------------------------------------------------------------------------------- -- oss bucket ------------------------------------------------------------------------------- CREATE TABLE OSS_BUCKET( ID BIGINT NOT NULL, CODE VARC...