sql
stringlengths
6
1.05M
<reponame>MCZbase/DDL CREATE TABLE "TRANS_AGENT_ROLE_ALLOWED" ( "TRANS_AGENT_ROLE_ALLOWED_ID" NUMBER NOT NULL ENABLE, "TRANS_AGENT_ROLE" VARCHAR2(60 CHAR) NOT NULL ENABLE, "TRANSACTION_TYPE" VARCHAR2(18 CHAR) NOT NULL ENABLE, "REQUIRED_TO_PRINT" NUMBER(*,0) DEFAULT 0, CONSTRAINT "TRANS_AGENT_ROLE_ALLOWE...
WHENEVER SQLERROR EXIT SQL.SQLCODE SET DEFINE ON ALTER SESSION SET CURRENT_SCHEMA=&_vUsername / SET DEFINE OFF CREATE OR REPLACE PACKAGE TWOFACTOR_INTERNAL AS /************************************************************************ OraTOtP - Oracle Time-based One-time Password Copyright 2016 <NAME> <http...
<gh_stars>1-10 CREATE TABLE combined( begin_id INTEGER NOT NULL, end_id INTEGER NOT NULL, CONSTRAINT combined_pkey PRIMARY KEY (begin_id, end_id) ); CREATE TABLE link( id INTEGER NOT NULL, begin_id INTEGER NOT NULL, end_id INTEGER NOT NULL, foreign key (begin_id, end_id) references combined...
<filename>lib/jdomodels/src/main/resources/schema/TableTransaction-ddl.sql CREATE TABLE IF NOT EXISTS `TABLE_TRANSACTION` ( `TRX_ID` BIGINT NOT NULL, `TABLE_ID` BIGINT NOT NULL, `STARTED_BY` BIGINT NOT NULL, `STARTED_ON` BIGINT NOT NULL, `ETAG` char(36) NOT NULL, PRIMARY KEY (`TRX_ID`), INDEX (`TABLE_ID`)...
<filename>sqleditor-other/testscripts/formatter/expected-after-formatter/002-simple-delete.sql<gh_stars>1-10 DELETE FROM EMPLOYEES as e WHERE e.inactive = true; DELETE FROM OTHERS;
<gh_stars>1-10 SELECT toInt32(-2147483648) AS min_val, toTypeName(min_val) AS min_ty, toInt32(2147483647) AS max_val, toTypeName(max_val) AS max_ty
SELECT -- 提取所需的列 rsv.reserve_id, rsv.hotel_id, rsv.customer_id, rsv.reserve_datetime, rsv.checkin_date, rsv.checkin_time, rsv.checkout_date, rsv.people_num, rsv.total_price, hotel.base_price, hotel.big_area_name, hotel.small_area_name, hotel.hotel_latitude, hotel.hotel_longitude, hotel.is_business FROM wor...
CREATE TABLE `users_userrestrictionhistory` ( `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `created` datetime(6) NOT NULL, `modified` datetime(6) NOT NULL, `restriction` smallint UNSIGNED NOT NULL, `ip_address` varchar(45) NOT NULL, `last_login_ip` varchar(45) NOT NULL, `user_id` intege...
/* This script uses procedure sp_foreachdb (credit @AaronBertrand) to find data classification recommendations for each database. */ CREATE TABLE #DataDiscoveryAndClassification ( DdacId INT IDENTITY PRIMARY KEY, DatabaseName SYSNAME, SchemaName SYSNAME, TableName SYSNAME, ColumnName SYSNAME, InformationTypeId...
<reponame>cliffano/jenkins-api-clients-generator -- -- <NAME>. -- Prepared SQL queries for 'GithubOrganization' definition. -- -- -- SELECT template for table `GithubOrganization` -- SELECT `_class`, `_links`, `jenkinsOrganizationPipeline`, `name` FROM `GithubOrganization` WHERE 1; -- -- INSERT template for table `G...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 19 Apr 2019 pada 16.42 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-04-2018 a las 12:28:46 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.0.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
<reponame>artpar/jsondb SELECT /* comment 1*/ /* comment 2 */ (t.txn_id) txn_id, max(t.amount), (t.stamp_created), 3+4, 6+5+3, concat(t.txn_id, t.txn_time), t.amount + 100 FROM data t GROUP BY stamp_created
SELECT * FROM USER_CONFIGS WHERE USER_ID = ? AND DELETE_FLAG = 0; ;
CREATE procedure [dbo].[dnn_UpdateListEntry] @EntryID int, @Value nvarchar(100), @Text nvarchar(150), @Description nvarchar(500), @LastModifiedByUserID int AS UPDATE dbo.dnn_Lists SET [Value] = @Value, [Text] = @Text, [Description] = @Description, [LastModifiedByUserID] = @LastModifiedByUse...
<reponame>theKindlyMallard/po_pzsi_schedule<filename>application/sql/kusiek.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 14 Maj 2018, 10:34 -- Wersja serwera: 10.1.30-MariaDB -- Wersja PHP: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCO...
CREATE TABLE tt_content ( easy_content text DEFAULT '' NOT NULL, );
 /* in case of cyclic references it is possible to set [workflow].[WorkflowStep].[is_PossibleReferenced] = 0 to avoid the usage as referenced procedure in worklow sortorder definition --alt Select T1.Workflow_id , T1.referenced_Procedure_RepoObject_guid , T1.referencing_Procedure_RepoObject_guid , T1.is_re...
/** * * Do something amazing but try not to destroy the entire database * in the process. * * Anytime something comes up, raises an error. * * @dialect postgresql * @name add_contact * @param contact_name: string - the name * @retmode record * @retval contact_id: number * @retval contact_name: string */ { insert ...
<filename>config/dbSchema.sql CREATE USER created_instances_user WITH PASSWORD <PASSWORD>%'; CREATE USER insert_user WITH PASSWORD <PASSWORD>%'; CREATE USER read_only_user WITH PASSWORD <PASSWORD>%'; CREATE TABLE IF NOT EXISTS "createdInstances" ( id serial primary key, userid text, ip text NOT NULL...
# Time: O(n^2) # Space: O(n) SELECT a.visited_on AS visited_on, Sum(b.day_sum) AS amount, Round(Avg(b.day_sum), 2) AS average_amount FROM (SELECT visited_on, Sum(amount) AS day_sum FROM customer GROUP BY visited_on) a LEFT JOIN (SEL...
<reponame>milesj/tournament DROP TABLE IF EXISTS `{prefix}divisions`; CREATE TABLE `{prefix}divisions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(35) NOT NULL, `created` datetime DEFAULT NULL, `modified` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
create or replace package body com_fos_image_slider as -- ============================================================================= -- -- FOS = FOEX Open Source (fos.world), by FOEX GmbH, Austria (www.foex.at) -- -- This plug-in lets you easily create different types of image sliders with -- options like autosl...
<filename>resources/migrations/201906250000111-create-links-table.down.sql DROP TABLE IF EXISTS vetd.links;
<filename>Wynter/wynterdb.sql -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 14, 2021 at 08:44 PM -- Server version: 10.3.25-MariaDB-0+deb10u1 -- PHP Version: 7.3.19-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"...
CREATE TABLE IF NOT EXISTS public.test_table ( id INTEGER PRIMARY KEY, name VARCHAR NOT NULL, address VARCHAR (50), created_at TIMESTAMP NOT NULL );
<reponame>SSTyT/transito-pesado-CABA SELECT camiones.encrypt_plate_id, reports.latitude, reports.longitude, reports.loc_time, reports.speed, reports.head FROM camiones INNER JOIN reports USING (encrypt_plate_id) Where ST_Intersects(reports.geom,st_setsrid( ST_geomfromgeojson('{ "type": "Polygon", "coordin...
<filename>BusinessManageWeb/src/sql/mysql/update_zysong.sql INSERT INTO `wb`.`sys_menu` (`MENU_ID`, `NODE_ID`, `NODE_NAME`, `NODE_URL`, `PARENT_NODE`, `SEQ_ID`, `NODE_IMG`, `RELA_FLAG`, `NODE_TARGET`, `NODE_CMD`, `NODE_VISIBLE`, `NODE_TOOLTIP`, `HAS_CHILD_FLAG`, `CRT_USER`, `CRT_TIME`, `UPD_USER`, `UPD_TIME`, `EXT`) VA...
-- Deploy ggircs:function_load_naics to pg -- requires: materialized_view_report -- requires: materialized_view_facility -- requires: materialized_view_final_report -- requires: table_naics_mapping -- requires: materialized_view_naics begin; create or replace function swrs_transform.load_naics() returns void as $fu...
<gh_stars>0 INSERT INTO `ocenter_hooks` ( `name`, `description`, `type`, `update_time`) VALUES ("afterTop", "顶部栏下方", 1, 1429511732);
<reponame>maizy/PonyLib create index fts_vectors_idx on book using gin (fts_vectors);
<filename>db/train/train_mysql.sql /* Navicat MySQL Data Transfer Source Server : localhost3306 Source Server Version : 50541 Source Host : localhost:3306 Source Database : jeesite Target Server Type : MYSQL Target Server Version : 50541 File Encoding : 65001 Date: 2017...
<reponame>lvjk/excrawler<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : 172.30.103.83(excrawler) Source Server Version : 50718 Source Host : 172.30.103.83:3306 Source Database : excra_meta Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 ...
<reponame>UAMS-DBMI/PosdaTools<gh_stars>1-10 /* Issue: PT-731 It was discovered that subprocess_invocation table has no primary key while working on this issue. */ alter table subprocess_invocation add primary key (subprocess_invocation_id);
<filename>Load/lib/sql/apidbschema/createContinents.sql CREATE TABLE ApiDB.Continents ( continent_id NUMBER(10), country varchar(50) NOT NULL, continent varchar(50) NOT NULL, MODIFICATION_DATE DATE, USER_READ NUMBER(1), USER_WRITE NUMBER(1), GROUP_READ NUMBER(1), GROUP...
column signature format 99999999999999999999 column sql_text format a80 column name format a35 set linesize 1000 set trims on select name,signature,sql_text,status from dba_sql_profiles;
-- -- Free Space Map test -- SELECT current_setting('block_size')::integer AS blocksize, current_setting('block_size')::integer / 8 AS strsize \gset CREATE TABLE fsm_check_size (num int, str text); -- Fill 3 blocks with one record each ALTER TABLE fsm_check_size SET (fillfactor=15); INSERT INTO fsm_check_size SELECT ...
DROP TABLE IF EXISTS ranking; DROP TABLE IF EXISTS supervise; DROP TABLE IF EXISTS enrolled; DROP TABLE IF EXISTS participate; DROP TABLE IF EXISTS project; DROP TABLE IF EXISTS module; DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS STEPSiteration; DROP TABLE IF EXISTS admin; set time_zone = '+08:00'; CREATE TABLE I...
<filename>src/test/resources/data.sql drop sequence hibernate_sequence if exists; create sequence hibernate_sequence start with 10 increment by 1; delete from links; delete from accounts; insert into accounts (id, username, encrypted_password) values (1, 'shortly', <PASSWORD>'); insert into links (id, url, key, acco...
<reponame>rookweb/Projet_Owo /* Navicat MySQL Data Transfer Source Server : JJ Source Server Version : 50516 Source Host : localhost:3306 Source Database : pharma Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2017-07-22 23:21:24 */ SET FOREIG...
<filename>WebServer/iRestaurant.edmx.sql -- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 09/18/2021 16:25:37 -- Generated from EDMX file: C:\Projects\iRestaurant\WebServe...
<reponame>Quebe/Mercury-Care-Management  /* IF EXISTS (SELECT name FROM sysobjects WHERE (name = 'PopulationProcess_MembershipTerminate' AND type = 'P')) DROP PROCEDURE dbo.PopulationProcess_MembershipTerminate GO */ CREATE PROCEDURE dbo.PopulationProcess_MembershipTerminate /* STORED PROCEDURE - INPUTS (...
<reponame>Lynch0001/bomms<filename>review-service/src/main/resources/db/migration/V2__Load_initial_data.sql INSERT INTO reviews (id, isbn, reviewer, comment) VALUES (1, '9780470929964', '<NAME>', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna ali...
CREATE TABLE [dbo].[Apply] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT NEWID(), [ApplicationId] UNIQUEIDENTIFIER NOT NULL, [OrganisationId] UNIQUEIDENTIFIER NOT NULL, [ApplicationStatus] NVARCHAR(20) NOT NULL DEFAULT 'New', [ApplyData] NVARCHAR(MAX) NULL, [GatewayReviewStatus] NVARCH...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2018 at 09:07 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>viacheslave/algo /* https://leetcode.com/problems/second-highest-salary/ https://leetcode.com/submissions/detail/226298078/ */ /* Write your T-SQL query statement below */ select s.SecondHighestSalary from (select 2 as row_number) a left join ( select salary as SecondHighestSalary, (row_number(...
-- INSERT INTO public.purchase( -- id, price, quantity, created_at, user_id, inventory_id) -- VALUES (?, ?, ?, ?, ?, ?); -- All purchases performed the day -- 2021-02-10 08:30:00.123456 -- mario95's purchases. His ID: 6ae7027a-4d08-49f9-890c-d0ee39168295 -- Chessboard: 079a5ea2-0e47-4df1-b81a-6af602a5d52b INSERT INT...
-- -- CzechIdM 10 Flyway script -- BCV solutions s.r.o. -- -- notification attachment CREATE TABLE idm_notification_attachment ( id bytea NOT NULL, created timestamp NOT NULL, creator varchar(255) NOT NULL, creator_id bytea NULL, modified timestamp NULL, modifier varchar(255) NULL, modifier_id bytea NULL, ori...
<filename>resources/initialize.sql CREATE TABLE IF NOT EXISTS section( x INT UNIQUE, z INT UNIQUE, world_name VARCHAR(100), owner_name VARCHAR(30), owner_prefix VARCHAR(50), group_permission BIT(3), other_permission BIT(3), share_group JSON, UNIQUE coordinate(x, z, world_name) );
-- delete from rhy_annual_statistics_state_change_event; -- delete from rhy_annual_statistics_moderator_update_event; -- delete from rhy_annual_statistics; WITH data AS ( SELECT organisation_id, years.year, 1000 * random() AS mooselike_damage_inspection_expenses, ...
<reponame>KattiaBibi/sis-tickets -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 09-06-2022 a las 20:25:59 -- Versión del servidor: 5.7.36 -- Versión de PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = ...
<gh_stars>10-100 -- file:join.sql ln:1513 expect:true select * from int8_tbl x join (int4_tbl x cross join int4_tbl y(ff)) j on q1 = f1
<filename>test-cases/RMLTC0018a-PostgreSQL/resource.sql DROP TABLE IF EXISTS Student CASCADE; CREATE TABLE Student (ID INTEGER,Name CHAR(15)); INSERT INTO Student (ID,Name) VALUES (10,'Venus'); INSERT INTO Student (ID,Name) VALUES (20,'Fernando'); INSERT INTO Student (ID,Name) VALUES (30,'David');
create function get_pictures_by_tag (tag_id varchar(100)) returns table as return ( select distinct PictureID from Tags_Pictures inner join Pictures on Pictures.ID = Tags_Pictures.PictureID inner join Tags on Tags.ID = Tags_Pictures.TagID where Tags.ID = tag_id ); go use Gallery; select * from Pictu...
<filename>cqls/AdultLiverTransplantation_decision.cql<gh_stars>0 library AdultLiverTransplantation version '1' using FHIR version '1.8' //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , cod...
-- 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'Creating primary key [EducationOrganizatio...
-- Variante von delete_feature_kill. Fehlende Objekte im Datenbestand führen hier -- nicht zu einer Exception. Hintergrund: Wenn Objekt-Geometrie ungültig war und deshalb -- nicht importiert werden konnte und anschließend geändert oder gelöscht wird, dann würde -- dies zu einem Abbruch des Imports führen. CREATE OR REP...
<gh_stars>10-100 CREATE FUNCTION func470() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE380);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE264);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE129);val:=(SELECT C...
<reponame>blinkops/blink-aws-query select name, arn, id from aws.aws_auditmanager_assessment where arn = '{{ output.assessment_arn.value }}';
<filename>dhis-2/dhis-support/dhis-support-db-migration/src/main/resources/org/hisp/dhis/db/migration/2.36/V2_36_17__Remove_referenced_relationships_from_soft_deleted_events_and_enrollments.sql update relationship set from_relationshipitemid = null, to_relationshipitemid = null where from_relationshipitemid in (se...
CREATE TABLE IF NOT EXISTS users( id integer auto_increment primary key, username varchar(20) not null , password varchar(20) not null, created_at DATETIME, updated_at DATETIME );
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 21-07-2019 a las 06:57:06 -- Versión del servidor: 10.3.15-MariaDB -- Versión de PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
UPDATE Units SET BaseMoves = 4, BuildCharges = 6 WHERE UnitType = 'UNIT_BUILDER'; UPDATE Features SET AddCivic = 'CIVIC_STATE_WORKFORCE' WHERE FeatureType = 'FEATURE_FOREST'; UPDATE Features SET RemoveTech = NULL WHERE Removable = 1; UPDATE Resource_Harvests SET PrereqTech = NULL; INSERT INTO Improvement_ValidBuildUni...
<filename>sample.sql CREATE TABLE IF NOT EXISTS test_table (u32 id, string name, bool flag, double balance); INSERT INTO test_table VALUES(0, "Testing", false, 100.55); SELECT * FROM test_table;
<reponame>georgeMatrix/SIAL_PROYECTO_GX /* Navicat MySQL Data Transfer Source Server : localhost2018 Source Server Version : 100136 Source Host : localhost:3306 Source Database : sialv2 Target Server Type : MYSQL Target Server Version : 100136 File Encoding : 65001 Date: 2019-06-19...
<reponame>evleria/shopping-list-demo CREATE TABLE "Items" ( "id" SERIAL PRIMARY KEY, "name" varchar, "created_at" timestamp default now() );
<filename>2015/DotNetCampus Roma/src/db/02 - SC - ModelSetup.sql SET NOCOUNT ON; GO USE DotNetCampusDemoDatabase_Dev1; GO IF EXISTS(SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('dbo.UserContacts')) DROP TABLE dbo.UserContacts; GO IF EXISTS(SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('dbo.Users')) D...
CREATE TABLE sys.trace_columns ( trace_column_id smallint NOT NULL, name nvarchar(128), type_name nvarchar(128), max_size int, is_filterable bit NOT NULL, is_repeatable bit NOT NULL, is_repeated_base bit NOT NULL ); INSERT INTO sys.trace_columns (trace_column_id, name, type_name, max_size, i...
<reponame>devopsmanojn/laraclassified<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.26, for osx10.10 (x86_64) -- -- Host: 127.0.0.1 Database: laraclassified -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
UPDATE tbl_noderating SET RTG1=0, RTG2=0, RTG3=0, RTG4=0, RTG5=0, CTD=?pCDT, WHERE G_NOD = ?pNode
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 04, 2022 at 05:06 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<reponame>allanfish/facetime-demo delete FROM quartz.qrtz_simple_triggers; delete FROM quartz.qrtz_cron_triggers ; delete FROM quartz.qrtz_fired_triggers; delete FROM quartz.qrtz_triggers; delete FROM quartz.qrtz_job_details;
SELECT x FROM \"releaf_i18n_entries\" a b SELECT x FROM `releaf_i18n_entries` a b
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 23/b4nGetDeliveryTypes.sql /****** Object: Stored Procedure dbo.b4nGetDeliveryTypes Script Date: 23/06/2005 13:31:40 ******/ CREATE procedure dbo.b4nGetDeliveryTypes @nCustomerId int, @nStoreId int, @nCountryId int, @nSubCountryId int as set ...
<reponame>obi-two/GameServer /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; # Dumping structure for procedure g...
<reponame>smith750/kc INSERT INTO VALID_PROTO_ACTION_ACTION (VALID_PROTO_ACTION_ACTION_ID, PROTOCOL_ACTION_TYPE_CODE, ACTION_NUMBER, FOLLOWUP_ACTION_CODE, USER_PROMPT_FLAG, USER_PROMPT, UPDATE_TIMESTAMP, UPDATE_USER, OBJ_ID) VALUES (1, 205, 1, 109, 'Y', 'Do you want to include this submission in an Agenda', NO...
<reponame>forgottenlands/ForgottenCore406<filename>sql/updates/world/already_applied/11_12_22_05_World_spell_ranks.sql DELETE FROM spell_ranks WHERE spell_id IN (89345, 89347, 89344, 89346, 89343, 89342, 69377, 86507); INSERT INTO `spell_ranks`(`first_spell_id`, `spell_id`, `rank`) VALUES (8099, 89345, 9), -- Stamina (...
<filename>test/modowa.sql<gh_stars>1-10 Rem Rem mod_owa Rem Rem Copyright (c) 1999-2019 Oracle Corporation, All rights reserved. Rem Rem The Universal Permissive License (UPL), Version 1.0 Rem Rem Subject to the condition set forth below, permission is hereby granted Rem to any person obtaining a copy of this software,...
CREATE FUNCTION example_as_of( as_of TIMESTAMP ) RETURNS TABLE ( key example_p.key%TYPE, value example_p.value%TYPE, applies_to example_p.applies_to%TYPE ) AS $$ SELECT (key, value, applies_to) FROM example_p WHERE (key, applies...
/* Navicat MySQL Data Transfer Source Server : 本机 Source Server Version : 50625 Source Host : localhost:3306 Source Database : jnote Target Server Type : MYSQL Target Server Version : 50625 File Encoding : 65001 Date: 2015-08-02 23:15:35 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- 主机: 127.0.0.1 -- 生成日期: 2017-10-13 09:04:46 -- 服务器版本: 5.1.73 -- PHP 版本: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50720 Source Host : localhost:3306 Source Schema : picturebed Target Server Type : MySQL Target Server Version : 50720 File Encoding : 65001 Date: 16/07/2019...
<reponame>MCZbase/DDL CREATE OR REPLACE TRIGGER "TR_CF_LOG_SQ" before insert ON cf_log for each row begin if :NEW.log_id is null then select sq_log_id.nextval into :new.log_id from dual; end if; if :NEW.access_date is null then :NEW.access_date:= sysdate; ...
<gh_stars>10-100 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `module` -- ---------------------------- DROP TABLE IF EXISTS `module`; CREATE TABLE `module` ( `moduleid` varchar(255) NOT NULL, `modulename` varchar(255) NOT NULL, `moduleurl` varchar(255) DEFAULT NULL, `parenti...
<reponame>yeastrc/proxl-web-app<filename>database_scripts/install/create_empty_database_add_tables.sql -- ONLY USE after file create_empty_database.sql USE proxl ; -- ----------------------------------------------------- -- Table user_mgmt_user -- ----------------------------------------------------- DROP TABLE IF ...
<reponame>DylanBaker/nfl-dbt {%- macro consolidate_team_names(team_name) -%} case when {{ team_name }} in ('JAC', 'JAX') then 'JAX/JAC' when {{ team_name }} in ('STL', 'LA') then 'LA/STL' when {{ team_name }} in ('SD', 'LAC') then 'LAC/SD' else {{ team_name }} end {%- endmacro -%}
CREATE OR REPLACE FUNCTION test_create_and_update_users() RETURNS SETOF TEXT LANGUAGE plpgsql AS $$ BEGIN -- v0 add_user tests -- RETURN QUERY SELECT is(add_user('11111111111111111111111111111111', '22222222222222222222222222222222', 'test_user_v0', ...
-- ========================================= -- DIMENSION TABLES -- ========================================= -- TPC-E Clause 2.2.8.4 CREATE TABLE zip_code ( zc_code CHAR(12) NOT NULL, zc_town VARCHAR(80) NOT NULL, zc_div VARCHAR(80) NOT NULL, PRIMARY KEY (zc_code) ); -- TPC-E Clause 2.2.8.1 CREATE TABLE ...
<reponame>adrianmahjour/db2-samples<filename>xml/clp/xmlindex.db2 ----------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of...
<reponame>sreekanth370/presto<gh_stars>1000+ -- database: presto; groups: join; tables: nation, region SELECT n_name, r_name FROM nation, region WHERE r_regionkey != n_nationkey
<gh_stars>1-10 autocommit off; select shipment_pending, sum(quantity) from inventory_c i group by shipment_pending; rollback;
create table "class5" ( "id" serial primary key, "e" text, "a" boolean, "d" text, "c" text, "b" text ); create table "class4" ( "id" serial primary key, "a" boolean, "d" text, "c" text, "b" text ); create table "class3" ( "id" serial primary key, "c" text, "b" text, "a" te...
<filename>sql/SQL_Test.sql USE [tSQLt_Example] GO ALTER PROCEDURE [AcceleratorTests].[test ready for experimentation if 2 particles] AS BEGIN --Assemble: Fake the Particle table to make sure -- it is empty and has no constraints EXEC tSQLt.FakeTable 'Accelerator.Particle'; INSERT INTO Accelerator.Pa...
<reponame>carlosrobertovelasquez/appERPL360<gh_stars>0 CREATE TABLE ADICIONAL ( ADICIONAL VARCHAR(40) NOT NULL, TIPO VARCHAR(1) NOT NULL, LONGITUD INT NULL, DECIMALES INT NULL, MODIFICABLE VARCHAR(1) NOT NULL ) go ALTER TABLE ADICIONAL ADD CONSTRAINT PKADICIONAL PRIMARY KEY (ADICIONAL) go CR...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: osticket_admin -- ------------------------------------------------------ -- Server version 5.5.5-10.4.14-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: fa_construction -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
<reponame>mitchellolsthoorn/ASE-Technical-2021-api-linkage-replication create sequence hibernate_sequence start with 1 increment by 1; create table news_entity ( id bigint not null, author_id varchar(32) not null, country varchar(255) not null, creation_time timestamp not null, text varchar(1024) not null, ...
<filename>Dosojin/Dosojin.sql DROP DATABASE IF EXISTS Dosojin; CREATE DATABASE Dosojin; CREATE TABLE percorso ( id INTEGER PRIMARY KEY AUTO_INCREMENT, nome TEXT NOT NULL, creatore INTEGER NOT NULL REFERENCES utenteEsterno (id), approvato BOOLEAN NOT NU...
SELECT COUNT(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = q1.site_id AND t1.id = tq1.tag...
PRINT 'SQL server evaluation script @ 11 July 2017 <EMAIL> ' + NCHAR(65021) DECLARE @License NVARCHAR(4000) SET @License = '---------------- MIT License Copyright (c) ' + CONVERT(VARCHAR(4),DATEPART(YEAR,GETDATE())) + ' <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar...