sql
stringlengths
6
1.05M
drop index if exists idx_collmis_boundaryid; create index idx_collmis_boundaryid on egcl_collectionmis(boundary);
<filename>phoenix-scala/sql/V4.015__drop_unique_constraint_on_order_line_item_skus.sql alter table order_line_item_skus drop constraint order_line_item_skus_sku_id_key; alter table order_line_item_skus drop constraint order_line_item_skus_sku_shadow_id_key; alter table order_line_item_skus alter column sku_id set not ...
/* Formatted on 10/6/2014 2:26:16 AM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION APLAPPS.GET_BATCH_ID (P_BATCHNAME VARCHAR2, P_ORGIDNO NUMBER) RETURN NUMBER AS L_RESULT NUMBER; BEGIN L_RESULT := -1; SELECT A.BATCH_ID INTO L_RESULT...
<filename>projektowanie-systemow-bazodanowych/lab-9/create_table_lab_7.sql DROP TABLE czlonkowie_rodzin CASCADE CONSTRAINTS; DROP TABLE osoby_na_utrzymaniu CASCADE CONSTRAINTS; DROP TABLE pracownicy CASCADE CONSTRAINTS; DROP TABLE oddzialy_firmy CASCADE CONSTRAINTS; DROP SEQUENCE pracownicy_sekw; CREATE TABLE oddzial...
<reponame>obi-two/GameServer -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.1.63-community - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL version: 7.0.0.4053 -- Date/time: ...
<reponame>dram/metasfresh -- 2018-04-24T17:24:40.422 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM...
/* Copyright 2016 Disney Connected and Advanced Technologies Licensed under the Apache License, Version 2.0 (the "Apache License") with the following modification; you may not use this file except in compliance with the Apache License and the following modification to it: Section 6. Trademarks. is deleted and replace...
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: localhost Database: myblogs_app -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
<filename>database/migrations/pg/0001_create_roles_table.up.sql CREATE TABLE roles ( role_slug TEXT NOT NULL, role_name TEXT NOT NULL DEFAULT '', role_description TEXT NOT NULL DEFAULT '', created_at TIMESTAMP NOT NULL, deleted_at TIMESTAMP NOT NULL DEFAULT '0001-01-01 00:00:00', PRIMARY KEY(role_slug) );
<reponame>PavelLebed20/chess_classic CREATE OR REPLACE PROCEDURE chess.add_game_message( p_game_id bigint, p_add_user1 BIT, p_add_user2 BIT ) LANGUAGE 'plpgsql' AS $BODY$ DECLARE v_game_row chess.game%ROWTYPE; v_user1_info chess.players%ROWTYPE; v_user2_info chess.players%ROWTYPE; v_user_data ...
CREATE TABLE IF NOT EXISTS `custom_functions` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `created_at` DATETIME, `updated_at` DATETIME, `api_id` INTEGER NOT NULL, `name` TEXT NOT NULL, `description` TEXT, `active` BOOLEAN NOT NULL DEFAULT 1, 'memory' INTEGER NOT NULL, 'cpu_shares' INTEGER NOT NULL, 't...
<filename>src/main/resources/db/migration/oracle/V2.7.0.20190212154939__analysis_execution_files.sql<gh_stars>10-100 DECLARE v_col_exist NUMBER; BEGIN SELECT count(*) INTO v_col_exist FROM all_tab_cols WHERE UPPER(column_name) = 'MEDIA_TYPE' AND UPPER(table_name) = 'OUTPUT_FILES' AND owner = '${ohdsiSchema}';...
-- -- Copyright 2016-2021 Micro Focus or one of its affiliates. -- -- 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 License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore select * from uao_visimap_test10; select * from gp_aovisimap(43608); delete from uao_visimap_test10 where i < 6; select * from uao_visimap_test10; select * from gp_aovisimap(43608);
<reponame>andygarcia86/python-read-opf-files -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: bookstore -- ------------------------------------------------------ -- Server version 5.7.30 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
SELECT f.ProductId, CONCAT(c.FirstName, ' ', c.LastName) AS CustomerName, ISNULL(f.Description, '') FROM Feedbacks AS f JOIN Customers AS c ON c.Id = f.CustomerId WHERE 3<=(SELECT COUNT(*) FROM Feedbacks WHERE CustomerId = c.Id) ORDER BY f.ProductId, CustomerName, f.Id
drop table if exists dummy create table dummy( id integer not null, name varchar(255), created_at datetime not null, updated_at datetime not null );
Use RMBilling3; ALTER TABLE `tblAccountOneOffCharge` CHANGE COLUMN `Qty` `Qty` DECIMAL(18,6) NULL DEFAULT NULL AFTER `Price`; ALTER TABLE `tblPayment` ADD COLUMN `UsageStartDate` DATE NULL DEFAULT NULL AFTER `TransactionID`, ADD COLUMN `UsageEndDate` DATE NULL DEFAULT NULL AFTER `UsageStartDate`; DROP PROCEDURE...
<reponame>cmdtaz94/laravel-development-env-with-docker<gh_stars>0 -- put your sql code here CREATE DATABASE IF NOT EXISTS `db_name`; GRANT ALL ON `db_name`.* TO 'laravel_user'@'%';
<filename>src/Minsal/Sipernes/ReportesBundle/Resources/views/rpt_consultas/rpt_consulas_mejoradas/consulta_rpt_31.sql SELECT ctl_establecimiento.nombre Establecimiento, mnt_expediente.numero Expediente, (mnt_paciente.primer_nombre || ' '|| mnt_paciente.segundo_nombre) as Paciente, mnt_empleado.id CodigoEnf...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localmariadb Source Server Type : MariaDB Source Server Version : 100128 Source Host : localhost:3306 Source Schema : pos-app Target Server Type : MariaDB Target Server Version : 100128 File Encoding : 65001 ...
<reponame>Jayin/SiyuanGroup 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_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; DROP SCHEMA IF EXISTS `siyuan_test` ; CREATE SCHEMA IF NOT EXISTS `siyuan_test` DEF...
 create procedure UnPublishApp @AppID bigint as begin select 'Ok' end
/* * This post-deploy script is auto-generated code. Generated by Generator C# program which can be found at https://github.com/DrJohnT/MetadataGenerator */ set nocount on; {0}
<reponame>paschendale/ast_postgis drop table tablea; create table tablea ( id integer primary key, geom ast_polygon ); drop table tableb; create table tableb ( id integer primary key, geom ast_polygon ); CREATE TRIGGER aggregation_trigger AFTER INSERT OR UPDATE OR DELETE ON tableb FOR EACH STATEMENT ...
<gh_stars>10-100 CREATE TABLE subdivision_US (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_US" ("id", "name", "level") VALUES (E'US-AL', E'Alabama', E'state'); INSERT INTO "subdivision_US" ("id", "name", "level") VALUES (E'US-AK', E'Alaska', E'state'...
<reponame>diable201/DataBases CREATE TABLE products ( id SERIAL PRIMARY KEY, name TEXT, -- They do the same thing -- name TEXT NOT NULL, -- name TEXT CONSTRAINT asd CHECK (name IS NOT NULL), price NUMERIC DEFAULT 0.0 CHECK (price > 0) ); INSERT INTO products (name, price) VALUES ('p1', 100); S...
<gh_stars>100-1000 -- attach2.test -- -- execsql {INSERT INTO t1 VALUES(1, 2)} INSERT INTO t1 VALUES(1, 2)
-- auth2.test -- -- db eval { -- SELECT b, a FROM v2; -- } SELECT b, a FROM v2;
<filename>src/test/resources/sql/select/7256109d.sql -- file:oidjoins.sql ln:124 expect:true SELECT ctid, castsource FROM pg_catalog.pg_cast fk WHERE castsource != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type pk WHERE pk.oid = fk.castsource)
<filename>src/server/migrations/1561030715992_init.sql<gh_stars>100-1000 -- up migration CREATE TABLE "users" ( "id" INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY, "name" text, "password" text, "is_admin" BOOLEAN DEFAULT false, "created_at" TIMESTAMPTZ DEFAULT NOW(), "updated_at" TIMESTAMPTZ DEFAULT NOW...
<reponame>Ambal/mangos ALTER TABLE db_version CHANGE COLUMN required_10349_01_mangos_spell_proc_event required_10350_02_mangos_command bit; DELETE FROM command WHERE name IN ('trigger active','go trigger'); INSERT INTO command (name, security, help) VALUES ('go trigger',1,'Syntax: .go trigger (#trigger_id|$trigger_shi...
<filename>test/unit/table_facility_test.sql<gh_stars>0 set client_encoding = 'utf-8'; set client_min_messages = warning; create extension if not exists pgtap; reset client_min_messages; begin; select * from no_plan(); insert into swrs_extract.ghgr_import (xml_file) values ($$ <ReportData xmlns:xsi="http://www.w3.org/...
create table dbo.Table1 ( a int) go
<filename>tests/assets/upgradeTest/pre_upgrade1201.sql DELETE FROM accounts; DELETE FROM contacts; DELETE FROM raw_contacts; DELETE FROM data; DELETE FROM data_usage_stat; --CREATE TABLE accounts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_name TEXT, account_type TEXT, data_set TEXT); INSERT INTO "accounts" VALUES...
/****** Object: View [dbo].[x_V_Web_Collection_Member_Info] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create VIEW [dbo].[x_V_Web_Collection_Member_Info] AS SELECT dbo.T_Protein_Names_Revised.Name, CASE WHEN LEN(dbo.T_Protein_Descriptions.Description) > 100 THEN SUBSTRI...
<gh_stars>1-10 /* Copyright 2016 Georgia Institute of Technology 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 License at http://www.apache.org/licenses/LICENSE-2.0 Unless required b...
-- Remove asset_tracker sequence, index and table DROP SEQUENCE IF EXISTS foglamp.asset_tracker_id_seq; DROP TABLE IF EXISTS foglamp.asset_tracker; DROP INDEX IF EXISTS foglamp.asset_tracker_ix1; DROP INDEX IF EXISTS foglamp.asset_tracker_ix2;
<filename>Sql/schedule.sql /* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50635 Source Host : 127.0.0.1:3306 Source Schema : schedule Target Server Type : MySQL Target Server Version : 50635 File Encoding : 65001 ...
CREATE PROCEDURE [dal].[Accounts__Save] @Entities [dbo].[AccountList] READONLY, @ReturnIds BIT = 0, @UserId INT AS BEGIN SET NOCOUNT ON; DECLARE @IndexedIds [dbo].[IndexedIdList]; DECLARE @Now DATETIMEOFFSET(7) = SYSDATETIMEOFFSET(); INSERT INTO @IndexedIds([Index], [Id]) SELECT x.[Index], x.[Id] FROM ( M...
update ko_cluster_manifest set is_active=0 where is_active='1'; insert into `ko`.`ko_cluster_manifest`( `id`, `name`, `version`, `core_vars`, `network_vars`, `tool_vars`, `storage_vars`, `other_vars`, `created_at`, `updated_at`, `is_active`) VALUES ( UUID(), ...
-- restore id for any newly written events UPDATE build_events SET build_id_old = build_id WHERE build_id_old IS NULL; -- drop the indexes for the bigint column DROP INDEX build_events_build_id_event_id; -- drop the bigint column ALTER TABLE build_events DROP COLUMN build_id; -- rename everything back ALTER TABLE b...
CREATE PROCEDURE SP_Reparaciones_Update @NumeroReparacion INT, @MontoManoDeObra DECIMAL(18,3), @MontoRepuestos DECIMAL(18,3), @CedulaMecanico VARCHAR(15), @Matricula VARCHAR(9), @IdEstadoReparacion INT, @ModificadoPor VARCHAR (60), @FechaModificacion DATETIME AS BEGIN UPDATE Reparaciones SET MontoManoDeObr...
INSERT INTO pos_itemtemp VALUES("IPVT190000080","193005","191001","192001","37000","1","37000","0","37000","1","1","1","IPV0906191219","NHO2018000008","PAID","","193005"), ("IPVT190000080","193008","191001","192001","37000","1","37000","0","37000","1","1","1","IPV0906191219","NHO2018000008","PAID","chiken ","193008"), ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 26, 2020 at 06:06 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Dec 15, 2021 at 01:24 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
CREATE PROC dbo.AlertsConfig_Get( @InstanceIDs VARCHAR(MAX) = NULL ) AS DECLARE @Instances TABLE( InstanceID INT PRIMARY KEY ) IF @InstanceIDs IS NULL BEGIN INSERT INTO @Instances ( InstanceID ) SELECT InstanceID FROM dbo.Instances WHERE IsActive=1 END ELSE BEGIN INSERT INTO @Instances ( InstanceI...
<reponame>joshforester/rdboard ALTER TABLE CP_Visit_Rel ADD `is_acquired` ENUM('default','no','yes') NOT NULL DEFAULT 'no' AFTER `weight_penalty_assessed`;
-- MySQL dump 10.13 Distrib 8.0.13, for macos10.14 (x86_64) -- -- Host: 127.0.0.1 Database: comanda -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
<reponame>megavanilla/izum<gh_stars>0 -- -- Скрипт сгенерирован Devart dbForge Studio for MySQL, Версия 192.168.3.11 -- Домашняя страница продукта: http://www.devart.com/ru/dbforge/mysql/studio -- Дата скрипта: 04.10.2016 19:33:17 -- Версия сервера: 5.5.5-10.1.16-MariaDB -- Версия клиента: 4.1 -- -- -- Отключение в...
INSERT INTO Book (ISBN, title, author, edition, year, category_id, reserved) VALUES ('23472-8729', 'Exploring Peru', '<NAME>', 4, 2005, 5, 0); INSERT INTO Book (ISBN, title, author, edition, year, category_id, reserved) VALUES ('237-34823', 'Business Strategy', '<NAME>', 2, 2002, 2, 0...
<filename>credit_card.sql CREATE DATABASE IF not EXISTS CREDIT; use CREDIT; CREATE TABLE credit_card ( ID varchar(100) Not null primary key, LIMIT_BAL varchar(100) Not null, SEX varchar(100) Not null, EDUCATION varchar(100) Not null, MARRIAGE varchar(100) Not null, AGE varchar(100) Not null, P...
DROP TABLE IF EXISTS contact_tel_detail; DROP TABLE IF EXISTS contact; DROP SEQUENCE IF EXISTS contact_seq; DROP SEQUENCE IF EXISTS contact_tel_detail_seq; CREATE SEQUENCE contact_seq START 1; CREATE SEQUENCE contact_tel_detail_seq START 1; CREATE TABLE contact ( id INT NOT NULL PRIMARY KEY DEFAULT n...
<filename>Portal/Binaries/Database/Tables/WebCategory.drop.sql<gh_stars>1-10 IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF__WebCategor__Name]') AND type = 'D') BEGIN ALTER TABLE [dbo].[WebCategory] DROP CONSTRAINT [DF__WebCategor__Name] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = O...
CREATE TABLE [dbo].[Authors] ( [Id] UNIQUEIDENTIFIER NOT NULL DEFAULT NEWSEQUENTIALID(), [AuthorName] NVARCHAR(50) NOT NULL, [AuthorSurname] NVARCHAR(50) NOT NULL, [TwitterHandle] NVARCHAR(50) NOT NULL, [CreationIp] NVARCHAR(50) NULL, [CreatedOn] DATETIMEOFFSET NOT NULL, [LastUpdateIp] NVARCHAR(50) NULL,...
INSERT INTO knowledge_base (name, type, registration_number) VALUES ('Lamda Limited', 'UNIVERSITY', '10003758'); INSERT INTO knowledge_base (name, type, registration_number) VALUES ('The University of Surrey', 'UNIVERSITY', '10007160'); INSERT INTO knowledge_base (name, type, registration_number) VALUES ('University of...
CREATE TABLE subdivision_GR (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_GR" ("id", "name", "level") VALUES ('GR-13', 'Achaea', 'department'); INSERT INTO "subdivision_GR" ("id", "name", "level") VALUES ('GR-69', 'Mount Athos', 'self-governed part')...
<gh_stars>1-10 /****** COPY FROM STAGE to FINAL ******/ IF OBJECT_ID('[PH_APDEStore].[final].[mcaid_mcare_pha_elig_demo]', 'U') IS NOT NULL DROP TABLE [PH_APDEStore].[final].[mcaid_mcare_pha_elig_demo] SELECT * INTO [PH_APDEStore].[final].[mcaid_mcare_pha_elig_demo] FROM [PH_APDEStore].[stage].[mcaid_mcare_...
CREATE SEQUENCE briana_sequence START WITH 1000; CREATE TABLE addresses ( id INTEGER PRIMARY KEY DEFAULT nextval('briana_sequence'), country VARCHAR NOT NULL, city VARCHAR NOT NULL, postcode VARCHAR NOT NULL ); CREATE TABLE organizations ( id INTEGER PRIMARY KEY DEFAULT nextval(...
<reponame>SyntaxCacao/DBConstructor CREATE TABLE `dbc_workflow` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `project_id` INT UNSIGNED NOT NULL, `lasteditor_id` INT UNSIGNED NOT NULL, `label` VARCHAR(60) NOT NULL, `description` VARCHAR(150) NULL, `active` BOOLEAN NOT NULL DEFAULT FALSE, `lastu...
<filename>src/test/resources/cast.test_73.sql<gh_stars>100-1000 -- cast.test -- -- execsql {SELECT CAST('9223372036854774800' AS integer)} SELECT CAST('9223372036854774800' AS integer)
<gh_stars>10-100 create or replace package test_build authid current_user as /* * Generates test code for each Helper Template type. * * To generate *just the code*, use the `make_code()` function. * To automatically display via DBMS_OUTPUT, use the `output_code` procedure. * * The only Parameters, for ...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for spider_data -- ---------------------------- DROP TABLE IF EXISTS `spider_data`; CREATE TABLE `spider_data` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键 UUID', ...
-- 2019-02-21T14:28:33.985 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Trl WHERE AD_Process_ID=541048 ; -- 2019-02-21T14:28:33.991 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process WHERE AD_Process_ID=541048 ;
SELECT Name FROM Production.Product WHERE ProductID IN ( SELECT ProductVendor.ProductID FROM Purchasing.ProductVendor ) ORDER BY Name
<gh_stars>0 DROP TABLE IF EXISTS `qb_givemoney_member`; DROP TABLE IF EXISTS `qb_givemoney_member`; CREATE TABLE IF NOT EXISTS `qb_givemoney_member` ( `id` int(10) NOT NULL AUTO_INCREMENT, `uid` mediumint(7) NOT NULL COMMENT '赠送者的ID', `touid` int(7) NOT NULL COMMENT '受赠者的UID', `create_time` int(10) NOT NULL COM...
CREATE INDEX document_manager_document_guid_idx ON public.document_manager (document_guid);
CREATE PROCEDURE [dbo].[netsqlazman_ApplicationGroupInsert] ( @ApplicationId int, @objectSid varbinary(85), @Name nvarchar(255), @Description nvarchar(1024), @LDapQuery nvarchar(4000), @GroupType tinyint ) AS IF EXISTS(SELECT ApplicationId FROM dbo.[netsqlazman_Applications]() WHERE ApplicationId = @ApplicationI...
-- missing_data_level6 (view) SELECT run_days.report_date AS report_date, calendar.calendar_adoption AS calendar FROM ( SELECT report_date FROM [YOUR_PROJECT_ID:raw_data.daily_report_status] GROUP BY 1 ) run_days LEFT JOIN ( SELECT date, calendar_adoption FROM [YOUR_PROJECT_ID:adop...
--# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * Create Nicknames for the catalog views of all remote SQL servers registered in Db2 * */ BEGIN FOR C AS cur CURSOR WITH HOLD FOR SELECT 'CREATE NICKNAME ' || SERVERNAME || '."' || TABLE_NA...
-- Thierry : delete the references to the roles for users before deleting a role IF EXISTS (SELECT * FROM sysobjects WHERE id = object_id(N'[rb_DeleteRole]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE [rb_DeleteRole] GO CREATE PROCEDURE rb_DeleteRole ( @RoleID int ) AS DELETE FROM rb_UserRole...
<reponame>GlennCr/Blog<filename>blog.sql -- phpMyAdmin SQL Dump -- version 3.4.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 09, 2011 at 05:23 PM -- Server version: 5.1.54 -- PHP Version: 5.3.5-1ubuntu7.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>internal/test/test_migrations/mysql/second_broken/2.sql CREATE TABLEX table2 ( id int auto_increment, label varchar(50) not null, constraint product_pk primary key (id) );
<filename>SQL Queries/ByNameListV4.sql --============================================== ---------------- BY NAME LIST ---------------- --============================================== -- <NAME> -- Created 2.26.21 ------------------------------------------------- ------------------------------------------------- ---...
<reponame>genizis/shopfloor -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Tempo de geração: 02-Ago-2021 às 08:12 -- Versão do servidor: 8.0.26-0ubuntu0.20.04.2 -- versão do PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTIO...
--1 CREATE TABLE Passports ( PassportID INT PRIMARY KEY IDENTITY(101,1), PassportNumber CHAR(8) ) CREATE TABLE Persons ( PersonID INT PRIMARY KEY IDENTITY, FirstName VARCHAR(30), Salary DECIMAL(10,2), PassportID INT NOT NULL FOREIGN KEY REFERENCES Passports(PassportID) ) INSERT INTO Passports VALUES ('N34FG21B'), (...
<reponame>softask-app/softask-ddl<gh_stars>0 /*--------------------------------------------------------*\ | Task Names | | | | The number of tasks should be significantly greater than | | the number of unique task nam...
delete from UsuarioEntity; delete from ReservaEntity; delete from DeseadoEntity; insert into UsuarioEntity(id,nombre,nombreUsuario,edad,correo,genero) values (45,'<NAME>','tuTranqui123',20,'<EMAIL>',1); insert into UsuarioEntity(id,nombre,nombreUsuario,edad,correo,genero) values (46,'<NAME>','nikitaArrieta',20,'<EMAI...
<filename>ReportServerToolsDB/dbo/Tables/Subscriptions.sql CREATE TABLE [dbo].[Subscriptions] ( [SubscriptionID] UNIQUEIDENTIFIER NOT NULL, [OwnerID] UNIQUEIDENTIFIER NOT NULL, [Report_OID] UNIQUEIDENTIFIER NOT NULL, [Locale] NVARCHAR (128) COLLATE Latin1_General_100_CI...
<filename>data-mock/data-mock.sql -- ADD 20 Customer insert into customer (name, phone, mail) values ('<NAME>', '+420 374 640 9634', '<EMAIL>'); insert into customer (name, phone, mail) values ('<NAME>', '+86 346 169 9897', '<EMAIL>'); insert into customer (name, phone, mail) values ('<NAME>', '+46 364 194 6533', '<EMA...
DROP DATABASE IF EXISTS employee_register_db; CREATE DATABASE employee_register_db;
<reponame>ankeshdave/BetterMembership.Net Select total.total Total, p.[userId] UserId, p.[userName] UserName, m.[IsConfirmed] IsConfirmed, m.[lastPasswordFailureDate] LastPasswordFailureDate, m.[PasswordFailuresSinceLastSuccess] PasswordFailuresSinceLastSuccess, m.[createDate] creationDate, m.[passwordC...
<reponame>artembrdn/oracle-tasks-log-and-kill create or replace package body programs_log is l_elapse_time_last PLS_INTEGER:=null; --------------------------------------------------------------------------------------------------------------------- procedure add#( SCHEMA IN VARCHAR2 , PROGRAM_NA...
<reponame>tacitphoenix/intro-cypher<filename>scripts/basic/optional_match.cql // only Neo4j people match (p)-[:WORKS_FOR]-(c:Company{name: "Neo4j"}) return p.name, c.name; // how do people relate to Neo4j match (p:Person) optional match (p)-[:WORKS_FOR]-(c:Company{name: "Neo4j"}) return p.name, c.name;
CREATE TABLE `physmach`.`b_catigory` ( `c_id` INT(11) NOT NULL AUTO_INCREMENT , `name` VARCHAR(255) NOT NULL , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`c_id`)) ENGINE = InnoDB;
<reponame>Pachinchin/gbt-repo create view "dev"."dbt_nobodozie"."stg_customers__dbt_tmp" as ( with customers as ( select id as customer_id, first_name, last_name from "dev"."jaffle_shop"."customers" ) select * from customers ) ;
<filename>PG_SQL/academics_changes.sql<gh_stars>1-10 CREATE OR REPLACE FUNCTION aca.auto_compute_ltc_flds (p_assess_hdrid bigint , p_who_rn bigint) RETURNS text LANGUAGE 'plpgsql' COST 100 VOLATILE PARALLEL UNSAFE AS $BODY$ << outerblock >> DECLARE bid text := 'Last-To-Compute Fields Computed Successfully!'; v_T...
<reponame>Shuttl-Tech/antlr_psql -- file:macaddr8.sql ln:86 expect:true SELECT b & '00:00:00:ff:ff:ff' FROM macaddr8_data
<reponame>olukotun-ts/circleci-demo-python-django -- schema.sql -- Since we might run the import many times we'll drop if exists DROP DATABASE IF EXISTS sl_pg; CREATE DATABASE sl_pg; -- Make sure we're using our `sl_pg` database \c sl_pg; -- We can create our user table CREATE TABLE IF NOT EXISTS user ( id SERIAL ...
<gh_stars>0 INSERT INTO "VERSION" (Version_ID, Version_Number, Version_Deployment_Date) VALUES (12, 12, CURRENT_TIMESTAMP); INSERT INTO "ACTIVITY_TYPE" (activity_type_id, activity_name) VALUES (33, 'CONFIG_SWITCH_NAME_STORAGE_TYPE'), (34, 'UPDATE_SWITCH_NAME'); INSERT INTO "KILDA_PERMISSION" (PERMISSION_ID, PER...
<gh_stars>0 CREATE SEQUENCE map_vote_server_settings_seq; CREATE TABLE map_vote_server_settings ( id BIGINT NOT NULL PRIMARY KEY DEFAULT nextval('map_vote_server_settings_seq'::regclass), server_id BIGINT, enabled BOOLEAN NOT NULL, admin_channel_id BIGINT NOT NULL, us...
DROP DATABASE IF EXISTS `pig`; CREATE DATABASE `pig` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; USE `pig`; -- ---------------------------- -- Table structure for `sys_dept` -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ...
<gh_stars>1-10 /****** Object: Table [T_Creation_Option_Values] ******/ /****** RowCount: 7 ******/ SET IDENTITY_INSERT [T_Creation_Option_Values] ON INSERT INTO [T_Creation_Option_Values] (Value_ID, Value_String, Display, Description, Keyword_ID) VALUES (1,'forward','Forward','Sequences as read from the database',...
define function Recursive(a Integer): if a = 0 then a else Recursive(a - 1)
drop table if exists employees; create table employees ( id bigserial, user_name varchar(50) not null, first_name varchar(50) not null, middle_name varchar(50), last_name varchar(50) not null, email_address varchar(100) not null, day_of_birth date not ...
<gh_stars>10-100 -- 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. -- Table [samplestudenttransporta...
<reponame>adrianmahjour/db2-samples<filename>db_library/views/db_permissions.sql --# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * Lists and Row and Column Access Control (RCAC) permissions you have applied on the system (from SYSCAT.CONTORLS) */ CREATE OR REPLACE VIEW DB_PER...
select -- Required Columns arn as resource, case when block_public_acls and block_public_policy and ignore_public_acls and restrict_public_buckets then 'ok' else 'alarm' end status, case when block_public_acls and block_public_policy and ig...
-- @Description Tests basic delete feature with two AO blocks -- SELECT COUNT(*) FROM foo; DELETE FROM foo WHERE a < 4; SELECT COUNT(*) FROM foo; INSERT INTO foo SELECT i as a, i as b, 'hello world' as c FROM generate_series(11,20) AS i; SELECT COUNT(*) FROM foo; DELETE FROM foo WHERE a = 16; DELETE FROM foo WHERE a ...
CREATE TABLE Player ( name VARCHAR(50) NOT NULL PRIMARY KEY, height INT, weight INT, collage VARCHAR(50), born INT, birthCity VARCHAR(50), birthState VARCHAR(50) ); CREATE TABLE PlayerStats ( name VARCHAR(50) NOT NULL REFERENCES Player(name), year INT NOT NULL, ...