sql
stringlengths
6
1.05M
<filename>test/hibernateLog/statistic.sql select * from Massnahme massnahme0_ inner join Fall fall1_ on massnahme0_.FALL_ID = fall1_.ID where fall1_.ID in (2195002840931); /* 1109518 ns acquiring 1 JDBC connections; 48017 ns releasing 1 JDBC connections; 296899 ns preparing 12 JDBC statements; 2359...
<gh_stars>1-10 GO IF OBJECT_ID('spRegisterEmployee') IS NOT NULL DROP PROCEDURE spRegisterEmployee GO CREATE PROCEDURE spRegisterEmployee ( @Id VARCHAR(11) ,@Code VARCHAR(8) ,@FirstName VARCHAR(25) ,@LastName VARCHAR(25) ,@HiringDate DATETIME ) AS BEGIN INSERT INTO Employee ( Id ,Code ,...
-- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_character_attributes" ( "character_id" INTEGER NOT NULL, "attribute_id" INTEGER NOT NULL, "value" TEXT, PRIMARY KEY ("character_id", "attribute_id"), CONSTRAINT "character_attributes_character_id_fkey" FOREIGN KEY ("character_id") REFEREN...
<filename>plugins/frs/db/install.sql CREATE TABLE IF NOT EXISTS plugin_frs_release_artifact( release_id int(11) PRIMARY KEY, artifact_id int(11) ); CREATE TABLE plugin_frs_file_upload ( id int(11) PRIMARY KEY auto_increment, expiration_date int(11) UNSIGNED, release_id int(11) NOT NULL default '0',...
<reponame>dram/metasfresh<gh_stars>1000+ -- 2020-01-06T17:04:16.652Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO C_PricingRule (AD_Client_ID,AD_Org_ID,C_PricingRule_ID,Classname,Created,CreatedBy,EntityType,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,540015,'de.metas.contracts.p...
<filename>src/DynamicParameterForm/Database/database/InsertData.sql INSERT INTO PARAMETER_FORM_DEFINITION(ID,DESCRIPTION) VALUES ('Form1', 'First Form'); INSERT INTO PARAMETER_FORM_DEFINITION(ID,DESCRIPTION) VALUES ('Form2', 'Second Form'); INSERT INTO PARAMETER_DEFINITION(ID,DESCRIPTION,DISPLAY_TYPE) VALUES('...
-- Deploy ggircs-portal:table_benchmark to pg -- requires: table_benchmark begin; create table ggircs_portal.benchmark ( id serial not null, product_id int not null references ggircs_portal.product(id), benchmark int not null, eligibility_threshold int not null, start_date timestamp with time zone, end_da...
-- -- 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")...
select "id" as id, "origin" as origin, "refreshedAt" as refreshed_at, "uid" as uid, "name" as name, "number" as number, "createdAt" as created_at, "startedAt" as started_at, "endedAt" as ended_at, "status" as status, "url" as url, "pipeline" as pipeline, "statusDetail...
--+ holdcas on; set @a='[ { "_id": "5a2a60caf582d0d0a708e0f9", "index": 0, "guid": "ef8c78c6-6a24-44f0-b48a-4a71d3e8a76b", "isActive": false, "balance": "$1,247.37", "picture": "http://placehold.it/32x32", "age": 30, "eyeColor": "brown", "name": "<NAME>", "gender": "male", ...
-- +migrate Up ALTER TABLE worker_model ADD COLUMN last_spawn_err_log TEXT; -- +migrate Down ALTER TABLE worker_model DROP COLUMN last_spawn_err_log;
DROP DATABASE IF EXISTS launchstore; CREATE DATABASE launchstore; CREATE TABLE "products" ( "id" SERIAL PRIMARY KEY, "category_id" int NOT NULL, "user_id" int, "name" text NOT NULL, "description" text NOT NULL, "old_price" int, "price" int NOT NULL, "quantity" int DEFAULT 0, "status" int DEFAULT 1, ...
<reponame>jslonim/SeleniumBettingBot /* Deployment script for MefistoDB This code was generated by a tool. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. */ GO SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON; SET ...
SELECT * FROM `mydb`.`personal_informations` WHERE `personal_informations`.`date_of_employment` < '2010-01-01' AND `personal_informations`.`date_of_birth` > '1990-01-01'; SELECT `employees`.`id`, `employees`.`departments_id` FROM `mydb`.`employees` WHERE `employees`.`salary` BETWEEN 2000 AND 6000 AND `employees`.`...
<reponame>mixmaru/my_contracts -- +migrate Up alter table bills add user_id bigint; alter table bills add constraint bills_users_id_fk foreign key (user_id) references users; UPDATE bills SET user_id = c.user_id FROM bill_details bd INNER JOIN right_to_use rtu on bd.right_to_use_id = rtu.id INNER JOIN contracts c...
<filename>contacts.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 24, 2022 at 01:52 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<reponame>notnout/stacker.news -- AlterEnum ALTER TYPE "WithdrawlStatus" ADD VALUE 'CONFIRMED';
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Nov 22, 2020 at 09:19 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
<gh_stars>0 -- CreateTable CREATE TABLE "User" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "email" TEXT NOT NULL, "name" TEXT NOT NULL, "registerDate" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ); -- CreateTable CREATE TABLE "WorkoutHistory" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT...
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 22, 2016 at 11:25 AM -- Server version: 5.5.49-0+deb8u1 -- PHP Version: 5.6.20-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>db/migrations/20181003002439_create_event_organizers.sql -- +migrate up CREATE TABLE IF NOT EXISTS "public"."ev_organizers" ( "id" serial, "event_id" integer, "user_id" integer, "created_at" timestamp without time zone, "updated_at" timestamp without time zone, FOREIGN KEY ("event_id") REFERENCES ...
<filename>srcs/mysql/create_db.sql<gh_stars>1-10 CREATE DATABASE wordpress; CREATE USER 'aherlind'@'%' IDENTIFIED BY 'aherlind'; GRANT ALL PRIVILEGES ON wordpress.* TO 'aherlind'@'%'; FLUSH PRIVILEGES;
-- -- Dumping data for table `districts` -- INSERT INTO `districts` (`id`, `regency_id`, `name`, `created_at`, `updated_at`) VALUES (1, 1, "TEUPAH SELATAN", "2019-02-24 17:19:41", "2019-02-24 17:19:41"), (2, 1, "SIMEULUE TIMUR", "2019-02-24 17:19:41", "2019-02-24 17:19:41"), (3, 1, "TEUPAH BARAT", "2019-02-24 17:19:41...
CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE "public"."artworks"("id" uuid NOT NULL DEFAULT gen_random_uuid(), "user_id" uuid NOT NULL, PRIMARY KEY ("id") , FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("id"));
<reponame>Shuttl-Tech/antlr_psql -- file:geometry.sql ln:35 expect:true SELECT '' AS two, p1.f1 FROM POINT_TBL p1 WHERE p1.f1 ?- point '(0,0)'
create table AWARD_BUDGET_LIMIT ( BUDGET_LIMIT_ID NUMBER(22,0) PRIMARY KEY, AWARD_ID NUMBER(22,0) references AWARD(AWARD_ID), BUDGET_ID NUMBER(22,0) references AWARD_BUDGET_EXT(BUDGET_ID), LIMIT_TYPE VARCHAR2(100) NOT NULL, LIMIT_AMOUNT NUMBER(12,2), VER_NBR NUMBER(8,0) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, ...
<filename>panel.sql -- phpMyAdmin SQL Dump -- version 2.10.3 -- http://www.phpmyadmin.net -- -- โฮสต์: localhost -- เวลาในการสร้าง: -- รุ่นของเซิร์ฟเวอร์: 5.0.51 -- รุ่นของ PHP: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- ฐานข้อมูล: `panel` -- -- -------------------------------------------------------- --...
<reponame>amccoy95/PhenotypeData<gh_stars>0 -- database: cda_test INSERT INTO `phenotype_pipeline` VALUES (1,'ESLIM_001',6,'EUMODIC Pipeline 1','EUMODIC Pipeline 1',1,0,1,NULL); INSERT INTO `phenotype_pipeline` VALUES (2,'ESLIM_002',6,'EUMODIC Pipeline 2','EUMODIC Pipeline 2',2,0,1,NULL); INSERT INTO `phenotype_...
<filename>StrixIT.Platform.Modules.Membership/Migrations/Scripts/Create database 1.0.sql /** * Copyright 2015 StrixIT * * 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://ww...
<gh_stars>1-10 -- 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_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,N...
ALTER TABLE AccessToken DROP COLUMN name; --//@UNDO -- unsupported
with model_executions as ( select * from {{ ref('fct_dbt_model_executions') }} ), exposures_record as ( select * from {{ ref('fct_dbt_exposures') }} ), model_updates as ( select max(compile_completed_at) as latest_update, node_id from model_executions group by node_id ), e...
DROP TABLE IF EXISTS proposal_votes;
<gh_stars>1-10 IF OBJECT_ID('[DOI].[vwPartitionFunctionPartitions]') IS NOT NULL DROP VIEW [DOI].[vwPartitionFunctionPartitions]; GO SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE VIEW [DOI].[vwPartitionFunctionPartitions] AS /* select addfilesql from DOI.vwPartitionFunctionPartitions where partitionf...
<gh_stars>10-100 SELECT "permission", "world" FROM token_permission WHERE "token_id" = ? AND "token_index" = ?;
<filename>recall--0.9.1--0.9.2.sql -- -- changes: -- - fixed PostgreSQL 9.1 compatibility (by replacing cardinality() in recall_enable()) -- - added recall_at() (and corresponding cleanup code in recall_disable() -- -- installer function -- CREATE OR REPLACE FUNCTION recall_enable(tbl REGCLASS, logInterval INTERVAL)...
CREATE DATABASE IF NOT EXISTS `cruise_one_system` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `cruise_one_system`; -- MySQL dump 10.13 Distrib 5.7.9, for osx10.9 (x86_64) -- -- Host: bisheng.8800.org Database: cruise_one_system -- ------------------------------------------------------ -- Server version 5.5.17-log ...
<filename>sql/log/01-user-agent.sql CREATE TABLE `userAgent` ( `userAgentId` binary(16) NOT NULL, `userAgentName` varchar(2048) DEFAULT NULL, PRIMARY KEY (`userAgentId`), KEY `userAgentName` (`userAgentName`(256)) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
<filename>db/seeds.sql USE employee_db; INSERT INTO department(name) VALUES ("Sales"), ("Engineer"), ("Finance"), ("Legal"); INSERT INTO role(title, salary, department_id) VALUES ("Sales Lead", 100000, 1), ("Salesperson", 80000, 1), ("Lead Engineer", 150000, 2), ("Software Engineer", 1...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 16-04-2018 a las 16:35:21 -- Versión del servidor: 5.7.19 -- Versión de PHP: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
<reponame>ark-aces/aces-ark-ethereum-contract-service CREATE TABLE contracts ( pid BIGSERIAL PRIMARY KEY, id VARCHAR(255) NOT NULL, correlation_id VARCHAR(255), status VARCHAR(255), created_at TIMESTAMP, expires_at TIMESTAMP, contract_abi_json VARCHAR, contract_code VARCHAR, gas_limit BIGINT, ark_sm...
<filename>SQL/InputData_final.sql<gh_stars>1-10 ALTER SEQUENCE users_user_id_seq RESTART WITH 1; insert into users (user_id, username, mobile, email, password, admin) values (DEFAULT, 'cs2102', '3016779446', '<EMAIL>', '123456789', true); insert into users (user_id, username, mobile, email, password, admin) values ...
SET NOCOUNT ON; SELECT tspkg.packageid AS TSID, Sum(CASE WHEN ps.targeted > 0 AND ps.targeted = ps.installed THEN 1 ELSE 0 END) AS FullyDistributed, Sum(CASE WHEN ps.failed > 0 OR ps.retrying > 0 THEN 1 ...
<gh_stars>10-100 # ************************************************************ # 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.23-1~dotdeb.3) # Database: light # Generation Time: 2015-03-28 14:38:48 +0000 # ***********************...
<reponame>UWIT-IAM/uw-redcap-client -- Revert seattleflu/schema:postgis from pg begin; drop extension postgis; commit;
ALTER TABLE "#__associations" ALTER COLUMN id TYPE integer;
<reponame>povstenko/movielens-process<gh_stars>0 DROP VIEW IF EXISTS vw_movies_ratings; CREATE VIEW vw_movies_ratings AS SELECT m.movieId, m.title, m.genres, m.year, AVG(r.rating)AS 'rating' FROM movies AS m INNER JOIN ratings AS r ON m.movieId = r.mov...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date: 28/05/2019 01:10...
-- create table with row greater than 32K -- try with just one row of data - JCC may handle those differently? create table big(c1 varchar(10000), c2 varchar(10000), c3 varchar(10000), c4 varchar(10000)); create procedure INSERTDATA1(IN a int) language java parameter style java external name 'org.apache.derbyTesting...
DECLARE @sql NVARCHAR(MAX) = N' SELECT id = N''??db??'' + N'':^%^:'' + CAST(symmetric_keys.symmetric_key_id AS NVARCHAR(MAX)), name = symmetric_keys.name, db = N''??db??'' FROM [??db??].sys.symmetric_keys WHERE @keyId = symmetric_key_id; '; EXEC sys.sp_executesql @sql, N'@keyId INT', @keyId = ??keyId...
<reponame>tridentcodesolution/jpankleshwaria.github.io<filename>projects/CRM/LedgerSMB-master/sql/coa/ar/sic/SIC_3.sql begin; -- AFIP Argentina -- CODIGO ACTIVIDADES 3 DIGITOS (SIC) INSERT INTO sic (code, description) VALUES ('001', 'Cultivos agrícolas'); INSERT INTO sic (code, description) VALUES ('002', 'Cría de anim...
<filename>SQL/Selekcija_stevilke_potomci.sql SELECT * FROM GENOTIPIZIRANE_ZIVALI gen, GOVEDO.ZIVALI_PASMA_SPADA pasma WHERE gen.ZIV_ID_SEQ =pasma.ZIV_ID_SEQ AND (pasma.PASMA_SPADA=2 OR pasma.pasma_spada =222); SELECT ziv.ZIV_ID_SEQ seq, ziv.DAT_ROJSTVO rojstvo , ziv.SIF_SPOL spol, gp.ZGP_VREDNOST kappa, pas...
<filename>Voyage.Database/dbo/Tables/ClientRole.sql CREATE TABLE [dbo].[ClientRole] ( [ClientId] nvarchar(128) NOT NULL, [RoleId] nvarchar(128) NOT NULL, [Id] NVARCHAR(128) NOT NULL, CONSTRAINT [PK_dbo.ClientRoles] PRIMARY KEY CLUSTERED ([Id]), CONSTRAINT [FK_dbo.ClientRoles_dbo.Roles_RoleId] FOREIGN KEY ...
<reponame>markramonDL/LMS-Toolkit IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'auth') EXEC sys.sp_executesql N'CREATE SCHEMA [auth]' GO IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'edfi') EXEC sys.sp_executesql N'CREATE SCHEMA [edfi]' GO IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'ut...
-- -- INFI_TB_221_SWIFT_DETALLES (Table) -- CREATE TABLE ADM_INFI.INFI_TB_221_SWIFT_DETALLES ( ID_TICKET NUMBER(12), ID_ORDEN_INFI NUMBER(12) NOT NULL, CONTENIDO_SWIFT BLOB ) TABLESPACE DATA PCTUSED 0 PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( ...
<gh_stars>100-1000 select `s_name`, count(*) as `numwait` from `nation` where `s_suppkey` = `l1`.`l_suppkey` and `o_orderkey` = `l1`.`l_orderkey` and `o_orderstatus` = 'f' and `l1`.`l_receiptdate` > `l1`.`l_commitdate` and exists (select * from `lineitem` as `l2` where `l2`.`l_orderkey` = `l1`.`l_orderkey` and `l2`.`l_...
plan = plpy.prepare("SELECT last_name FROM my_users WHERE first_name = $1", ["text"])
<reponame>Doarakko/awesomebook<filename>preprocess/008_number/07_c/sql_awesome.sql SELECT type, length, COALESCE(thickness, (SELECT AVG(thickness) FROM work.production_missn_tb)) AS thickness, fault_flg FROM work.production_missn_tb
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_03_operators/cases/_02_comparison_constant_dt.sql --test comparison operators with DATETIME(L)TZ constant values as operands --+ holdcas on; --test: test with constant values set timezone '-8:00'; select if(datetimeltz'2014-10-10 13:50:59.999'=datetimeltz'2014-...
set nocount on print '' print 'Adding reference data into ''dbo.APPLAUNCHER_APPS'' table .. ' print '' go DECLARE @rows_affected int, @errcode int, @smsg varchar(max) IF NOT EXISTS (select 1 from dbo.APPLAUNCHER_APPS where product = 'OIL' AND app_title =...
<reponame>ivconsult/eNeg CREATE TABLE [dbo].[User]( [UserID] [uniqueidentifier] NOT NULL, [EmailAddress] [nvarchar](300) NOT NULL, [PasswordHash] [nvarchar](150) NOT NULL, [PasswordSalt] [nvarchar](150) NOT NULL, [Locked] [bit] NOT NULL, [LockedDate] [datetime] NULL, [LastLoginDate] [datetime] NULL, [CreateDat...
USE [PaymentData] GO /****** Object: Trigger [dbo].[T_Payment_AI_Queue] Script Date: 22.06.2019 19:01:45 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[T_Payment_AI_Queue] ON [dbo].[Payment] AFTER INSERT, UPDATE AS -- inserted INSERT dbo.PaymentQueue ( Payer, Payee, P...
/* Warnings: - The migration will change the primary key for the `post` table. If it partially fails, the table could be left without primary key constraint. - You are about to drop the column `authorId` on the `post` table. All the data in the column will be lost. - The migration will change the primary key f...
USE [FebraSoftDB] GO /****** Object: Table [dbo].[tbNFesRecebidasItens] Script Date: 10/06/2018 04:52:13 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbNFesRecebidasItens]( [numeroNfeRecebida] [int] NOT NULL, [numeroItem] [int] NOT NULL, [codProduto] [int] NOT NULL, [cfop] [i...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 22, 2018 at 12:55 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
SELECT * FROM `pegawai` WHERE id_pgw='A0001'; SELECT COUNT(id_pgw) FROM pegawai WHERE id_pgw='A0001' AND pswd_pgw='12345nurul'; SELECT CURDATE(); SELECT * FROM transaksi_penjualan WHERE DAY(tgl_tpu) = '24' AND MONTH(tgl_tpu) = '4' AND YEAR(tgl_tpu) = '2016'; SELECT tgl_tpu FROM transaksi_penjualan WHERE tg...
<gh_stars>0 create or replace procedure add_customer( fname customer.first_name%type, lname customer.last_name%type, email_addr customer.email%type, phone_num customer.phone%type ) as begin insert into customer (first_name, last_name, email, phone) values (fname, lname, email_addr, phone_num); e...
<filename>DataBase/crudext.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-10-2017 a las 21:39:20 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACT...
\c pg_db; SET search_path TO base_0_0_1, public; BEGIN; SELECT plan(1); -- 1 SELECT has_function( 'base_0_0_1', 'is_valid_token', ARRAY[ 'TEXT', 'TEXT' ], 'Function is_valid_token(token, expected_scope)' ); -- 2 SELECT ok ( base_0_0_1.is_valid_token( '<KEY>...
BACKUP DATABASE [Bitso] TO DISK = N'/root/mssql-backups/Bitso.bak' WITH NOFORMAT, NOINIT, NAME = N'Bitso', SKIP, NOREWIND, NOUNLOAD, STATS = 10
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 172.16.4.229 -- Generation Time: Jan 03, 2016 at 08:38 PM -- Server version: 5.0.83-community -- PHP Version: 5.3.3 -- CONOR WALSH 2016 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
MATCH (n:Category) DETACH DELETE n;
alter table scm_commit_log change column committer_email committer_email varchar(255);
\ir '../../intershop/db/010-trm.sql' \timing off \set X :yellow -- turn off echo and keep things quiet. -- format the output for nice tap. \set echo none \set quiet 1 -- \pset format unaligned -- \pset tuples_only true \pset pager off -- revert all changes on failure. \set on_error_rollback 1 \set on_error_stop tru...
<reponame>kangqi0421/pg_dirtyread CREATE FUNCTION pg_dirtyread(regclass) RETURNS SETOF record AS 'MODULE_PATHNAME' LANGUAGE C;
DROP TABLE IF EXISTS worker_pool_occupancy;
DROP database if exists report; create database report DEFAULT CHARACTER SET utf8; use report; create table doctors( doctorId int auto_increment not null primary key, doctorName varchar(128) not null, password varchar(128) not null, type varchar(16), status varchar(16), modifyDate timestamp default CURRENT_TIMESTAMP ,...
-- ---------------------------- -- 日期:2018-08-01 17:07:41 -- 仅用于测试和学习,本程序不适合处理超大量数据 -- ---------------------------- -- ---------------------------- -- Table structure for `think_auth_rule` -- ---------------------------- DROP TABLE IF EXISTS `think_auth_rule`;; CREATE TABLE `think_auth_rule` ( `id` mediumin...
<reponame>darianbridge/WebAthl<filename>Projects/WebAthl/sql/constraints/drfkRules.sql ALTER TABLE Rules DROP CONSTRAINT FK_Rules_SeriesID , CONSTRAINT FK_Rules_RuleTypeID
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 05, 2017 at 06:25 AM -- Server version: 5.6.34-log -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 2.11.6-rc1 -- http://www.phpmyadmin.net -- -- Host: 192.168.3.11 -- Generation Time: Feb 07, 2012 at 07:38 PM -- Server version: 5.5.1 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
\! gs_ktool -d all \! gs_ktool -g DROP CLIENT MASTER KEY IF EXISTS colConstraintCMK CASCADE; CREATE CLIENT MASTER KEY colConstraintCMK WITH ( KEY_STORE = gs_ktool , KEY_PATH = "gs_ktool/1" , ALGORITHM = AES_256_CBC); CREATE COLUMN ENCRYPTION KEY colConstraintCEK WITH VALUES (CLIENT_MASTER_KEY = colConstraintCMK, ALGOR...
<reponame>mariopleitez/FSi-Web<gh_stars>0 -- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.19 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- ------------------...
<reponame>pirmanshah/simple_lumen_api -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 26, 2021 at 02:22 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
CREATE TABLE webauthn.assertion_challenges ( challenge bytea NOT NULL, user_name text, user_verification webauthn.user_verification_requirement NOT NULL, timeout interval NOT NULL, relying_party_id text, challenge_at timestamptz NOT NULL, PRIMARY KEY (challenge), CONSTRAINT reasonable_timeout CHECK (timeout BETWEEN '30...
<gh_stars>0 insert into tipo_paquete (id_tipo_paquete, clave, descripcion, indicaciones_generales) values (tipo_paquete_seq.nextval, 'ALIM', 'Alimentos', 'Optimized composite encryption'); insert into tipo_paquete (id_tipo_paquete, clave, descripcion, indicaciones_generales) values (tipo_paquete_seq.nextval, 'CUIDP', '...
<filename>sql/tb with trigger/master_simpanan_pokok.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Des 2019 pada 06.13 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACT...
<reponame>Vladislav-Zolotaryov/L2J_Levelless_Custom ALTER TABLE `character_skills_save` ADD `systime` BIGINT UNSIGNED NOT NULL AFTER `reuse_delay`;
USE album; DROP PROCEDURE IF EXISTS list_albums; DELIMITER // CREATE PROCEDURE list_albums () BEGIN SELECT * FROM album; SELECT * FROM track; END // DELIMITER ; CALL list_albums(); DROP PROCEDURE IF EXISTS list_albums; DELIMITER // CREATE PROCEDURE list_albums (param VARCHAR(255)) BEGIN SELECT a.artist AS a...
--example query to get rent data SELECT * FROM acs_rent_median AS mrent INNER JOIN manifest AS m ON m.snapshot_id = mrent.snapshot_id where geo_id2 = '11001004400' --TODO - we can join to the decisions table using the combo of geo_id2 AND where the absolute value of the date difference between the contract date and...
<reponame>dssg/appy-reviews -- applicants with completed applications but less than two distinct submitted letters of reference select lower(p1."Field461") as "applicant email" from survey_application_1_2020 p1 join survey_application_2_2020 p2 on (lower(p1."Field461") = lower(p2."Field461")) left outer join survey_rec...
<reponame>umaha-acid/slf-sync /** * Author: Fathoni <<EMAIL>> * Created: Apr 26, 2018 */ SELECT m.nim_mhs, A.id_admisi, sp.nm_status_pengguna, M.fd_id_reg_pd AS id_registrasi_mahasiswa, sp.fd_id_jns_keluar AS id_jenis_keluar, COALESCE(to_char(pw.tgl_sk_yudisium, 'YYYY-MM-DD'), to_char(A.tgl_keluar, '...
-- Connect to the 'Geography' database for execution of this query USE [Geography] GO -- Select the country name, highest peak name, -- highest peak elevation and mountain range from a subquery SELECT TOP 5 [c].[CountryName] , [c].[Highest Peak Name] , [c].[Highest Peak Elevation] , [c].[Mountain] FRO...
<filename>migrations/20220508122153_add_bank_hash_column/migration.sql -- AlterTable ALTER TABLE "campaigns" ADD COLUMN "bank_hash" VARCHAR(5) NULL; UPDATE "campaigns" SET "bank_hash" = 'ABCDE'; ALTER TABLE "campaigns" ALTER COLUMN "bank_hash" SET NOT NULL;
DELETE FROM strings WHERE entry IN (210); INSERT INTO strings VALUES (210,'Item \'%i\' (with extended cost %i) already in vendor list.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
<reponame>niven/taskmaster -- Adding a table so multiple people can share a domain CREATE TABLE minion_domain (minion_id INT, domain_id INT, CONSTRAINT minion_domain_minion_id_ref_minion_id_fkey FOREIGN KEY (minion_id) REFERENCES minions(id), CONSTRAINT minion_domain_domain_id_ref_domains_id_fkey FOREIGN KEY (domain_id...
<gh_stars>0 use role accountadmin; create or replace storage integration <storege_integration_name> type = external_stage storage_provider = s3 enabled = true storage_aws_role_arn = '<IAM ARN created with iam.tf>' storage_allowed_locations = ('<bucket name created with s3.tf>') ; DESC INTEGRATION <stor...
-- INSERT INTO "REF_ENTITY" (ID, OTHER, VERSION) VALUES ('1', '10999', '1'); -- loop = 1000 -- INSERT INTO "REF_ENTITY" (ID, VERSION) VALUES (REF_ENTITY_SEQ.NEXTVAL, '1');
<filename>src/main/resources/db/migration/V1.0__start.sql create sequence city_id_seq start with 1 increment by 1; create sequence product_category_id_seq start with 1 increment by 1; create sequence product_id_seq start with 1 increment by 1; create sequence order_product_id_seq start with 1 increment by 1; create seq...
<gh_stars>1-10 -- <Migration ID="2167b8d6-0133-4d34-b607-c6a28bcfcafe" /> GO PRINT N'Creating [dbo].[Vehicle]' GO CREATE TABLE [dbo].[Vehicle] ( [LicenseNumber] [nvarchar] (450) NOT NULL, [Brand] [nvarchar] (max) NULL, [OwnerId] [nvarchar] (max) NULL, [Type] [nvarchar] (max) NULL ) GO PRINT N'Creating primary key [PK...