sql
stringlengths
6
1.05M
<reponame>fdw1466/APIJSON-Demo<gh_stars>100-1000 -- SQLINES DEMO *** Distrib 5.7.17, for macos10.12 (x86_64) -- -- SQLINES DEMO *** Database: sys -- SQLINES DEMO *** ------------------------------------- -- SQLINES DEMO *** 7.33-log /* SQLINES DEMO *** ARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /* SQLINES DEMO ...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-09-2017 a las 16:15:06 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>atiqueahmedziad/addons-server<filename>src/olympia/migrations/776-blitems-guid-null.sql ALTER TABLE `blitems` MODIFY COLUMN `guid` VARCHAR(255) DEFAULT NULL;
-- @testpoint: range_list二级分区表:select 聚合函数/其他组合 --step1: 创建表空间; expect:成功 drop table if exists t_subpartition_0225_01; drop table if exists t_subpartition_0225; drop tablespace if exists ts_subpartition_0225; create tablespace ts_subpartition_0225 relative location 'subpartition_tablespace/subpartition_tablespace_0225...
CREATE DATABASE IF NOT EXISTS `expo_booking` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `expo_booking`; -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: 127.0.0.1 Database: expo_booking -- ------------------------------------------------------ -- Server version 5.6.20 /*!40101 SET @OLD_CHARACTER...
<filename>db/komisarisdireksi.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 28, 2021 at 06:24 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.0.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
CREATE TABLE Vasts ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, location VARCHAR(600) NOT NULL, vast_url VARCHAR(600), position VARCHAR(100) NOT NULL DEFAULT 'bottom_right', CONSTRAINT check_positioning CHECK ( position IN ( 'top_left', 'top_middle', 'top_right', 'middle_left', 'middle_right', 'bottom_...
USE baseball_db; CREATE TABLE SP_metric ( player_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(100), last_name VARCHAR(100), age INT, xFIP DECIMAL(4,2), Pitches INT, FBv DECIMAL(4,1), H9 DECIMAL(4,1), BB9 DECIMAL(4,1), K9 DECIMAL(4,1), HR9 DECIMAL(3,1), BB_p DE...
<filename>prisma/migrations/20210911002459_dispatcher_in_load/migration.sql -- DropForeignKey ALTER TABLE "Comment" DROP CONSTRAINT "Comment_userId_fkey"; -- DropForeignKey ALTER TABLE "Load" DROP CONSTRAINT "Load_trailerId_fkey"; -- DropForeignKey ALTER TABLE "Load" DROP CONSTRAINT "Load_truckId_fkey"; -- AlterTabl...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Jan 09, 2018 at 12:05 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
-- noinspection SqlNoDataSourceInspectionForFile -- noinspection SqlResolveForFile -- Instructions: /* Create a simple SELECT query to display student information of all ACTIVE students. students TABLE STRUCTURE: Id FirstName LastName IsActive Note: IsActive (true or false) */ -- Version 1 (SQLite): SELECT ...
-- file:strings.sql ln:261 expect:true SELECT 'h%wkeye' LIKE 'h#%%' ESCAPE '#' AS "true"
create table "public"."sce_comment_reactions" ( "id" uuid not null default uuid_generate_v4(), "created_at" timestamp with time zone default now(), "comment_id" uuid not null, "user_id" uuid not null, "reaction_type" character varying not null ); create table "public"."sce_comments" ( "id" uui...
<gh_stars>1-10 /* code/sql/HW_ProcedureExamples.sql */ DROP SCHEMA IF EXISTS HW_ProcedureExamples; CREATE SCHEMA HW_ProcedureExamples; USE HW_ProcedureExamples; /* A "procedure" is a serie of statements stored in a schema, that can easily be executed repeatedly. https://dev.mysql.com/doc/refman/8.0/en/create-proce...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding DoNotPublishIndicator to [edfi].[Pa...
-- Activity table CREATE TABLE Activity( id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp INTEGER, type INTEGER, reference TEXT, parameters BLOB, friend_reference TEXT); -- Create table last_read_activity_id CREATE TABLE last_read_activity_id ( "id" INTEGER ); INSERT INTO last_read_activity_id ("id") VALU...
<filename>conf/evolutions/default/11.sql # --- !Ups update ride set ride_gender = 'M' where ride_gender is null; # --- !Downs
<filename>db.sql -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: smn_db -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULT...
<filename>database/migrations/1550596476_create_users_table.up.sql<gh_stars>1-10 CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE users ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), username VARCHAR(100) NOT NULL, password TEXT NOT NULL, token UUID DEFAULT gen_random_uuid()...
<gh_stars>10-100 CREATE INDEX "ShufflePeriod_conferenceId" ON "room"."ShufflePeriod" ("conferenceId"); CREATE INDEX "ShufflePeriod_startAt" ON "room"."ShufflePeriod" ("startAt"); CREATE INDEX "ShufflePeriod_endAt" ON "room"."ShufflePeriod" ("endAt"); CREATE INDEX "ShuffleQueueEntry_shufflePeriodId" ON "room"."ShuffleQ...
-- @testpoint:opengauss关键字owned(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists owned; CREATE TABLESPACE owned RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace owned; --关键字带双引号,创建成功 drop tablespace if exists "owned"; CREATE TABLESPACE "owned" RELATIVE LOCATION 'hdfs_tablespace/hdfs_table...
<reponame>2013108827/china_regions<filename>sql/init.sql -- 省、市、区、街道,四张表 DROP TABLE IF EXISTS province; CREATE TABLE IF NOT EXISTS province ( id mediumint(6) UNSIGNED NOT NULL AUTO_INCREMENT, name varchar(30) NOT NULL DEFAULT '' COMMENT '省份名称', PRIMARY KEY (id) ) ENGINE=InnoDB DEFAUL...
-- This script should be executed to populate the historic values -- of this type 2 dimension and should ONLY be executed for the -- first run! -- Because we don't have the history of the type 2 dimension d_customer, -- we extract it from the history of transactions, therefore this dimension -- can only be populated a...
<filename>Listings/Listings/Kapitel 10/Listing 10.8.sql -- Listing 10.8.sql -- Code zum Testen SET 'ABAPVARCHARMODE' = 'FALSE'; SELECT 'Peter' || ' ' || 'Mueller' FROM DUMMY; SET 'ABAPVARCHARMODE' = 'TRUE'; SELECT 'Peter' || ' ' || 'Mueller' FROM DUMMY;
<reponame>ragil000/admin.pil.app -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2020 at 06:48 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
USE TelerikAcademy SELECT * FROM Departments
<filename>create_tables.sql drop table if exists FACT_COMPANY_SUMMARY; create table FACT_COMPANY_SUMMARY ( FACT_COMPANY_SUMMARY_KEY int, STATE_NAME varchar(52), DIM_NAICS_KEY char(6), DIM_YEARS_IN_BUSINESS_KEY char(3), DIM_SALES_SIZE_KEY char(3), DIM_EMPLOYMENT_SIZE_KEY char(3), PAID...
<reponame>msotiroff/Softuni-learning INSERT INTO Employees (FirstName, LastName, Gender, Birthdate, DepartmentId) VALUES ('Marlo', 'O''Malley', 'M', '9/21/1958', 1), ('Niki', 'Stanaghan', 'F', '11/26/1969', 4), ('Ayrton', 'Senna', 'M', '03/21/1960', 9), ('Ronnie', 'Peterson', 'M', '02/14/1944', 9), ('Giovanna', 'Amati...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : taobao Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-06-09 08:10:58 */ SET FOREIGN_KEY_CHECKS=0; -- --...
create database go_sql_lab; create table squareNum( number int not null primary key, squareNumber int not null )
<filename>server/db/migrate/00001_init.sql<gh_stars>1-10 -- +goose Up CREATE TABLE "users" ( "id" bigserial primary key, "email" character varying(255) NOT NULL, "name" character varying(255) NOT NULL, "image_url" text NOT NULL, "role" integer DEFAULT 0 NOT NULL, "created_at" timestamp(6) NOT NULL, ...
<reponame>uk-gov-mirror/hmcts.blob-router-service<filename>src/main/resources/db/migration/V009__Add_pending_notification_column_and_index_to_envelopes.sql<gh_stars>1-10 ALTER TABLE envelopes ADD COLUMN pending_notification BOOLEAN DEFAULT FALSE; CREATE INDEX envelopes_pending_notification_idx ON envelopes (pending_no...
<gh_stars>1-10 USE [ANTERO] GO /****** Object: View [dw].[v_koski_opiskelijavuodet] Script Date: 14.11.2018 12:27:50 ******/ DROP VIEW [dw].[v_koski_opiskelijavuodet]
<filename>modules/boonex/massmailer/updates/9.0.5_10.0.0/install/sql/enable.sql SET @sName = 'bx_massmailer'; -- MENUS UPDATE `sys_menu_items` SET `icon`='mail-bulk' WHERE `set_name`='sys_account_dashboard_manage_tools' AND `name`='massmailer-campaigns' AND `icon`=''; UPDATE `sys_menu_items` SET `icon`='mail-b...
-- +migrate Up -- Add rational price to trades table ALTER TABLE history_trades ADD price_n BIGINT; ALTER TABLE history_trades ADD price_d BIGINT; -- aggregate function for finding minimal price when price is represented as an array of two elements [n,d] CREATE OR REPLACE FUNCTION public.min_price_agg ( NUMERIC[], NU...
<reponame>mikalstill/open-kilda CREATE CONSTRAINT ON (sw:switch) ASSERT sw.name IS UNIQUE;
<reponame>carrossoni/Hive3Book select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= '1993-01-01' and l_shipdate < '1994-01-01' and l_discount between 0.06 - 0.01 and 0.06 + 0.01 and l_quantity < 25;
<reponame>DepapepeOne/mago3d drop table if exists widget cascade; -- ウィジェット create table widget( widget_id int, name varchar(100) not null , view_order int default '1', user_id varchar(32) not null, insert_date timestamp with time zone default now(), constraint widget_pk primary key (...
\o @path@/expected/results/st_within.out select st_within('POINT (1 8)'::geometry, 'POINT (1 8)'::geometry) as geos; select st_within('POINT (1 8)'::geometry, 'MULTIPOINT (1 1,3 4)'::geometry) as geos; select st_within('MULTIPOINT (1 1,3 4)'::geometry, 'POINT (1 8)'::geometry) as geos; select st_within('MULTIPOINT (1 1...
-- Deploy create_and_add_permissions -- requires: base -- requires: id_resolution_functions BEGIN; -- This is for creating an authz_entity, and also adding permissions on the entity -- to an actor (presumably the requesting actor who created it). This function will -- put a newly created actor into its own ACL if th...
<reponame>ckamtsikis/cmssw /* * Creates the procedures/functions used in the conditions DB */ @update_iov_dates_procedure @update_subrun_iov_dates_procedure
/*L Copyright Oracle Inc, SAIC, SAIC-F Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cadsr-semantic-tools/LICENSE.txt for details. L*/ PROMPT Checking for "SEQUENCE" select preferred_name, long_name, preferred_definition, definition_source, version, asl_name from object_cla...
autocommit off; delete from all inventory_v (except employees_v); rollback work; rollback;
-- <Migration ID="0cae1c24-244c-4f1b-8dcf-e878df07a6f8" /> GO /************************************************************************** ** CREATED BY: <NAME> ** CREATED DATE: 2017.08.04 ** CREATION: Add membership type table **************************************************************************/ CREATE TAB...
<gh_stars>0 /* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.21-MariaDB : Database - mine_craft_mods ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /...
<reponame>CHSR/PyramidModelWebAppIdentityDatabase CREATE TABLE [dbo].[AspNetUsers] ( [Id] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [FirstName] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [LastName] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [UpdateTime] [date...
<gh_stars>0 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT * FROM sys.objects WHERE type = 'TF' and name = 'GetCommodityChannelIndexValues') BEGIN PRINT 'Dropping "GetCommodityChannelIndexValues" function...' DROP FUNCTION GetCommodityChannelIndexValues END GO PRINT 'Creating "GetCommodityChanne...
CREATE TABLE "public"."forum_private_recipients" ( "forum_topic_id" INTEGER NOT NULL, "user_id" INTEGER NOT NULL, "forum_area_id" INTEGER NOT NULL, "unread" INTEGER DEFAULT 0 NOT NULL, "id" SERIAL, CONSTRAINT "forum_private_recipients_pkey" PRIMARY KEY("id"), CONSTRAINT "forum_private_recipients_user_id" ...
<gh_stars>1-10 INSERT INTO items (isactive, name) VALUES (0, "<NAME>"); INSERT INTO items (isactive, name) VALUES (1, "Dr. <NAME> MD"); INSERT INTO items (isactive, name) VALUES (1, "Mrs. <NAME>"); INSERT INTO items (isactive, name) VALUES (0, "Mr. <NAME> Jr."); INSERT INTO items (isactive, name) VALUES (1, "Mr. <NAME>...
DROP DATABASE IF EXISTS greatbay_db; CREATE DATABASE greatbay_db; USE greatbay_db; CREATE TABLE stuff ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, category VARCHAR(10) NOT NULL, currentBid INT(10) DEFAULT 0, PRIMARY KEY(id) ); SELECT * FROM stuff; INSERT INTO stuff (name, category, currentBid) VALU...
<gh_stars>1-10 DROP TABLE item_extra_combination;
<reponame>f10re/Prep-Work---Full-Stack-Development<filename>Week6/Day4/web/src/main/resources/data.sql insert into users(first_name, last_name, age) values('John', 'Smith', 42); insert into users(first_name, last_name, age) values('Luke', 'Skywalker', 28); insert into users(first_name, last_name, age) values('Jane', 'D...
select 100.00 * sum(case when p_type like 'PROMO%' then l_extendedprice * (1 - l_discount) else 0 end) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue from lineitem, part where l_partkey = p_partkey and l_shipdate >= date '1995-09-01' and l_shipdate < cast('1995-10-01' as date); -- Q14A
<filename>bigquery_to_exasol.sql create schema if not exists database_migration; /* This script will generate create schema, create table and create import statements to load all needed data from Google bigquery. Automatic datatype conversion is applied whenever needed. Feel free to adjust it. */ --/ c...
CREATE TYPE [RefUdt] AS TABLE ( [Id] UNIQUEIDENTIFIER, [FolderId] UNIQUEIDENTIFIER, [Title] NVARCHAR(500) NOT NULL, [Url] NVARCHAR(500) NOT NULL, [Image] NVARCHAR(500), [Priority] INT, [Date] DATETIME, [Note] NVARCHAR(2000) )
<filename>mssql/03.TableRelations/P02.OneToManyRelation.sql -- Connect to the 'TableRelations' database USE [TableRelations] GO -- Create a new table called '[Manufacturers]' in schema '[dbo]' -- Drop the table `[Models]` if it already exists IF OBJECT_ID('[dbo].[Models]', 'U') IS NOT NULL DROP TABLE [dbo].[Models] ...
<gh_stars>1000+ -- https://github.com/kyleconroy/sqlc/issues/921 CREATE TABLE authors ( id BIGSERIAL PRIMARY KEY, name text NOT NULL UNIQUE, bio text ); -- name: UpsertAuthor :exec INSERT INTO authors (name, bio) VALUES ($1, $2) ON CONFLICT (name) DO UPDATE SET bio = $2; -- name: UpsertAuthorNamed :exec...
<filename>sql/updates/0.11/6193_mangos_spell_proc_event.sql DELETE FROM `spell_proc_event` WHERE `entry` IN (39442,39438,39440,39444); INSERT INTO `spell_proc_event` VALUES (39442,0,0,0,0,0x0000000000000000,0x00020001,0), (39438,0,0,0,0,0x0000000000000000,0x00080001,0), (39440,0,0,0,0,0x0000000000000000,0x00020000,0),...
<gh_stars>0 create sequence auth_batch_jobs_job_id_seq; create table auth_batch_jobs ( job_id integer constraint auth_batch_jobs_job_id_pk primary key, job_start_time timestamptz default current_timestamp, job_end_time ...
alter table water.billing_transactions add column transaction_key text;
<reponame>ChenShuai1981/flink-sql-submit<filename>src/main/resources/sql/kafka_mysql_es.sql<gh_stars>0 -- 使用 TableEnvironment -- source CREATE TABLE player_source ( player_id INT, team_id INT, player_name VARCHAR, height DOUBLE ) WITH ( 'connector.type' = 'kafka', 'connector.version' = 'universal', ...
<reponame>thiliniish/integration-c -- -- Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. -- -- WSO2 Inc. licenses this file to you 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 ...
INSERT INTO solarnode.ocpp_socket (created, socketid, enabled) VALUES (?,?,?)
<filename>bd/covid19/covid19.sql CREATE DATABASE covid19; CREATE SCHEMA covid19; CREATE TABLE covid19.registro ( id serial primary key, codigo_verificacion character varying(50) not null, --codigo verificacion para envio SMS estado character varying(255) not null, --pre-registro, registro fecha_creacion timestamp...
<filename>src/test/java/com/google/security/zynamics/binnavi/testdata/test_disassembly/modules.sql 1 NOTEPAD.EXE x86-32 16777216 zynamics BinExport 7 7 D390B7571834331AD441461EDBFE1714 A8254E2FB0EEA308C2E9DE0D89B30A8E3578D29C 2013-07-29 16:12:31.350616 2 kernel32.dll x86-32 2088763392 zynamics BinExport 7 7 B9B4F2CA0E...
<reponame>Christian-G/terena-core -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; -- -- Name: feedback; Type: SCHEMA; Schema: -; Owne...
<filename>sql/_17_sql_extension2/_02_full_test/_09_implicit_type_conversion/_01_assignment/_01_type_conversion_by_insert/cases/bigint_conversion_insert.sql<gh_stars>1-10 --test implicit type conversion of bigint type create table bigint_conversion( col1 datetime, col2 date, col3 time, col4 timestamp, col5 doubl...
<reponame>alaksej/edX_DAT215x_Microsoft_SQL_Database_Development SET TRANSACTION ISOLATION LEVEL REPEATABLE READ GO -- Connection 1 BEGIN TRANSACTION SELECT CustomerID, Phone FROM SalesLT.Customer WHERE Phone < '111-555-2222'; GO -- Connection 2 --INSERT SalesLT.Customer --(NameStyle, Title, FirstName, MiddleName, L...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2017 at 01:14 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>rochaandre/scripts-oracle-named SELECT * FROM DICTIONARY;
CREATE PROCEDURE USP_UNITTEST_PASS ( @ID INT = 1 @NAME VARCHAR 32 = 'BOB', @NUMBER FLOAT = 3.4 ) AS TRUNCATE TABLE UNITTEST_PYODBC_RUN_SP; INSERT INTO UNITTEST_PYODBC_RUN_SP ([ID], [NAME], [NUMBER]) VALUES (@ID, @NAME, @NUMBER);
<gh_stars>0 USE mall; CREATE TABLE xz_yaopin( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(25), ); CREATE TABLE mall_products( id INT PRIMARY KEY AUTO_INCREMENT, cid INT, img_url VARCHAR(128), title VARCHAR(128), span VARCHAR(128), price DOUBLE(10,2) ); INSERT INTO mall_products VALUES(null,1,'127....
### Schema DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR(45) NULL, devoured boolean default false, PRIMARY KEY (id) );
IF OBJECT_ID('API.PersonGet', 'P') IS NOT NULL BEGIN DROP PROC API.PersonGet END GO SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON GO --------- Framework "Record" (R.Valiullin mailto:<EMAIL>) --------- CREATE PROC API.PersonGet @PersonID bigint AS BEGIN SET NOCOUNT ON DECLARE @TypeID_AccountPerson...
<gh_stars>0 /** * Author: Trygve * Created: 28 jan. 2022 */ DELETE FROM `laravel`. `users`; DELETE FROM `schedule`. `schedule`; INSERT INTO `laravel`. `users` (`id`, `name`, `authority`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) SELECT `id`, `name`, `authority`, `e...
<filename>app/panx-worker/auth-resource/roles.sql<gh_stars>0 CREATE TABLE `roles` ( `NAME_OF_ROLE` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin', `VALUE` TINYINT(3) UNSIGNED NOT NULL, `LANDING_PAGE` VARCHAR(128) NULL DEFAULT NULL COLLATE 'utf8mb4_bin', PRIMARY KEY (`VALUE`) ) COLLATE='utf8mb4_bin' ENGINE=Inno...
USE mall; CREATE TABLE mall_users( id INT PRIMARY KEY AUTO_INCREMENT, uname VARCHAR(25), upwd VARCHAR(32) ); INSERT INTO mall_users VALUES(null,'dd',md5('123456')); INSERT INTO mall_users VALUES(null,'wh',md5('123456')); INSERT INTO mall_users VALUES(null,'lily',md5('123456'));
CREATE TABLE [dbo].[AspNetRoleClaims] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [RoleId] INT NOT NULL, [ClaimType] nvarchar(max) NULL, [ClaimValue] nvarchar(max) NULL, [IsDeleted] bit NOT NULL, [CreationDate] DateTime2 NOT NULL, [UpdateDate] DateTime2 NOT NULL )
<reponame>McRaeAlex/Connector<filename>gumshoe/db/UP.sql<gh_stars>0 CREATE TABLE issues ( id SERIAL PRIMARY KEY, title VARCHAR(256) NOT NULL, body TEXT NOT NULL );
{% sql 'create_roles' %} CREATE TABLE roles ( id INT NOT NULL, title VARCHAR(100), PRIMARY KEY (id) ) {% endsql %} {% sql 'create_users', depends_on=['create_roles'] %} CREATE TABLE users ( id INT NOT NULL, role_id INT NOT NULL, name VARCHAR(100), PRIMARY KEY (id), FOREIGN KEY(rol...
CREATE INDEX BILLTIME_INDEX ON bill(BILLTIME); CREATE INDEX BILLTOTAL_INDEX ON bill(BILLTOTAL); CREATE INDEX BILLTYPE_INDEX ON bill(BILLTYPE); CREATE INDEX CANCELLED_INDEX ON bill(CANCELLED); CREATE INDEX CREATEDAT_INDEX ON bill(CREATEDAT); CREATE INDEX DEPTID_INDEX ON bill(DEPTID); CREATE INDEX DISCOUNT_INDEX ON...
SELECT * FROM Doctor WHERE Doctor_Gender='M' AND Doctor_Last_Name='Campbell';
-- randexpr1.test -- -- db eval {SELECT case when (13 in (select ~t1.c from t1 union select case when t1.a in (select t1.f-t1.e | t1.c+19 from t1 union select coalesce((select max(13) from t1 where e in (select ~19-(select case count(*)-cast(avg(c) AS integer) when cast(avg(t1.f) AS integer) then -max(d) else min(t1....
<reponame>NicholasDy/DM-Map-Selecting-Tool DROP DATABASE IF EXISTS DnD_db; CREATE DATABASE DnD_db; USE DnD_db;
-- 2019-02-18T16:54:05.075 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,576124,0,TO_TIMESTAMP('2019-02-18 16:54:04','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','An...
<reponame>yaoming2017/spidersManager-yiming<filename>data/trigger.sql<gh_stars>0 /*触发器: 1、新增事件文章(tb_event_article)数据时,事件源文章数(tb_source_article_num)新增1 */ create Trigger t_afterinsert_on__tb_event_article_add1 after insert on tb_event_article for each row begin update tb_source_article_num sn set sn.num = num + 1 whe...
/* Navicat MySQL Data Transfer Source Server : lxl Source Server Version : 50726 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2020-04-16 11:41:57 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
<filename>migrations/frontend/1528395741_create_external_service_unrestricted_column.up.sql BEGIN; ALTER TABLE external_services ADD COLUMN IF NOT EXISTS unrestricted BOOLEAN NOT NULL DEFAULT FALSE; COMMIT;
<filename>QueryTranslator/YagoQuerySet/sql_1/Q15-5--VP__yago.sql SELECT tab3.person3 AS person3 , tab4.person4 AS person4 , tab0.person1 AS person1 , tab2.person2 AS person2 , tab6.place AS place , tab5.inst AS inst , tab1.personType AS personType , tab7.url AS url FROM (SELECT sub AS personType FROM skos__pref...
<reponame>jimmy401/zeus_nb<filename>db/zeus.sql /* Navicat MySQL Data Transfer Source Server : 10.118.80.127-root Source Server Version : 50720 Source Host : 10.118.80.127:3306 Source Database : zeus Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Dat...
<gh_stars>1-10 IF OBJECT_ID('finance.cost_center_scrud_view') IS NOT NULL DROP VIEW finance.cost_center_scrud_view; GO CREATE VIEW finance.cost_center_scrud_view AS SELECT finance.cost_centers.cost_center_id, finance.cost_centers.cost_center_code, finance.cost_centers.cost_center_name FROM finance.cost...
BEGIN; -- MySQL Script generated by MySQL Workbench -- Tue Aug 25 20:48:49 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
SELECT * FROM GROUPS WHERE GROUP_ID = ? AND DELETE_FLAG = 0;
INSERT INTO "Author" (name) VALUES ('<NAME>'); INSERT INTO "Author" (name) VALUES ('<NAME>'); INSERT INTO "AuthorBooks" (authorid, bookid) VALUES (1, 1); INSERT INTO "AuthorBooks" (authorid, bookid) VALUES (1, 2); INSERT INTO "AuthorBooks" (authorid, bookid) VALUES (2, 3);
select cluster_arn, cluster_name, active_services_count, status from aws.aws_ecs_cluster where cluster_arn = '{{ output.resource_id.value }}';
<filename>migrations/708-remove-waffle-buchets.sql DELETE FROM waffle_switch_mkt WHERE name='buchets';
<filename>openGaussBase/testcase/SQL/DDL/table/Opengauss_Function_DDL_Table_Case0170.sql -- @testpoint: 创建列存表以及psort索引 drop table if exists table_2; DROP INDEX if exists table_index2; create table table_2(id int,sname char(20),course varchar(20) default 'math',score number)with (ORIENTATION=COLUMN); insert into table_2...
<filename>config/scripts/schema/migrations/2013-10-02 - allow unscheduled small group events.sql<gh_stars>0 alter table SmallGroupEvent modify ( day null, startTime null, endTime null );
<gh_stars>0 CREATE VIEW [dbo].[STUDENT_IN_CLASS] ("STUDENT", "CLASS") AS select s.SNAME as Student, e.CNAME as Class from student s join enrolled e on s.snum=e.SNUM; GO
-- You are given two tables: Students and Grades. Students contains three columns ID, Name and Marks. -- Grades contains the following data: -- Ketty gives Eve a task to generate a report containing three columns: Name, Grade and Mark. Ketty doesn't want the NAMES of those students who received a grade lower than...