sql
stringlengths
6
1.05M
<gh_stars>0 with xlat as ( select * from unnest($1::text[], $2::text[]) as xlat(id, new_id)), md0 as ( insert into subgraphs.ethereum_contract_source(id, address, abi, start_block, block_range) select (x.new_id || right(e.id, -40)) as id, address, abi, start_block, block_range from subgraphs.ethereum_c...
<gh_stars>0 -- MySQL Workbench Synchronization -- Generated: 2016-07-03 07:16 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Fredy 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_MOD...
<reponame>klikar3/WTFB use `wt-data`; alter TABLE mitglieder CHANGE LetzteAenderung LetzteAenderung DATETIME NULL DEFAULT NULL, CHANGE BeitrittDatum BeitrittDatum DATE NULL DEFAULT NULL, CHANGE KuendigungDatum KuendigungDatum DATE NULL DEFAULT NULL, CHANGE AustrittDatum AustrittDatum DATETIME NULL DEFAULT NULL, CHANGE ...
-- @testpoint:opengauss关键字mod(非保留),自定义数据类型名为explain --关键字explain作为数据类型不带引号,创建成功 drop type if exists mod; CREATE TYPE mod AS (f1 int, f2 text); select typname from pg_type where typname ='mod'; drop type mod; --关键字explain作为数据类型加双引号,创建成功 drop type if exists "mod"; CREATE TYPE "mod" AS (f1 int, f2 text); select typname...
create database T_Roman use T_Roman create table Professor ( IdProfessor int primary key identity ,Nome varchar (255) not null ) create table Usuario ( IdUsuario int primary key identity ,Nome varchar(255) ,Email varchar(300) ,Senha varchar(400) ,Permissao varchar(350) ) drop table Usuario create table...
CREATE TABLE [dbo].[AwardTransactions] ( [TransactionId] VARCHAR (10) NOT NULL PRIMARY KEY, [Awarded] DATETIME NOT NULL )
<reponame>vvydier/ClaimAcademy<filename>sql/insert_data.sql insert into category (category_description) values ('Clojure'); insert into category (category_description) values ('Groovy'); insert into category (category_description) values ('Java'); insert into category (category_description) values ('Scala'); inse...
<reponame>Miguel03706/PHP -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 30-Nov-2020 às 15:03 -- Versão do servidor: 10.4.14-MariaDB -- versão do PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
<reponame>Alen02T/invest-day INSERT INTO Tarea VALUES ('Tarea 1', 'Esta es una prueba de una primera tarea', '2022-03-13', 635498627, 'https://www.google.es/maps/place/Ferreter%C3%ADa+Sagar/@42.3043219,-1.9705594,17z/data=!3m1!4b1!4m5!3m4!1s0xd5a8f1bfc9d5a9b:0x7d0622f98bfb4afd!8m2!3d42.3043219!4d-1.9683707', 'http://ww...
CHECK TABLE some_table FOR UPGRADE; CHECK TABLE some_table1, some_table2 FOR UPGRADE; CHECK TABLE some_table QUICK; CHECK TABLE some_table1, some_table2 QUICK; CHECK TABLE some_table FAST; CHECK TABLE some_table1, some_table2 FAST; CHECK TABLE some_table MEDIUM; CHECK TABLE some_table1, some_table2 MEDIUM; CHEC...
<reponame>ucdavis/Keas CREATE TABLE [dbo].[GroupPermissions] ( [Id] INT IDENTITY (1, 1) NOT NULL, [GroupId] INT NOT NULL, [UserId] NVARCHAR (450) NOT NULL, CONSTRAINT [PK_GroupPermissions] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [FK_GroupPermissions_Groups_GroupId] ...
DROP SEQUENCE IF EXISTS eg_url_shorter_id; CREATE SEQUENCE eg_url_shorter_id; CREATE TABLE "eg_url_shortener" ( "id" VARCHAR(128) NOT NULL, "validform" bigint, "validto" bigint, "url" VARCHAR(1024) NOT NULL, PRIMARY KEY ("id") );
<reponame>lrwb-aou/curation SELECT concept_id FROM concept AS c WHERE c.concept_code = '98.51' AND c.invalid_reason IS NULL AND c.domain_id = 'Procedure'
### Schema CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department ( ID INT AUTO_INCREMENT, Name varchar(30) NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE role ( ID INT AUTO_INCREMENT, Title varchar(30) NOT NULL, Salary DECIMAL NOT NULL, Department_ID INT, PRIMARY KEY (id) ); CREATE TABLE...
<gh_stars>0 USE employee_tracker INSERT INTO department_name VALUES DELETE FROM department WHERE id > 4; SELECT * FROM department INSERT INTO employee (first_name, last_name, manager_id, role_id) VALUES ("test_first", ""test_last", 1, 1);
/* WATER */ truncate table vectiles.water restart identity; /* processing e_203_vooluveekogu_a */ drop table if exists vectiles.tmp_water; create table vectiles.tmp_water as select st_buffer(st_snaptogrid((st_dump(st_union(st_force2d(geom)))).geom, 0.1),0) as geom, nimetus as name from vectiles_input.e_203_vooluveeko...
<reponame>iuri/tutortronics<filename>packages/categories/sql/oracle/upgrade/upgrade-1.0d3-1.0d4.sql ----- -- Synonyms ----- create table category_synonyms ( synonym_id integer not null constraint category_synonyms_pk primary key, category_id integer not null constraint category_synonyms_cat_fk references ca...
REM INSERTING into PRMSADMIN.VISITOR SET DEFINE OFF; Insert into PRMSADMIN.VISITOR (VISID,VISNAME,VISEMAIL,VISPHONE,BADGEID,VISPURPOSE,VISCOMPANY) values (1,'<NAME>','<EMAIL>','(398)373-6576',4529246,'Do not know','JPMorgan Chase'); Insert into PRMSADMIN.VISITOR (VISID,VISNAME,VISEMAIL,VISPHONE,BADGEID,VISPURPOSE,VISCO...
create table appinstanceinfo ( app_instance_id varchar(64) not null, app_package_id varchar(64) not null, app_id varchar(64), tenant varchar(64) not null, app_name varchar(128) not null, app_descriptor varchar(256), mec_host varchar(15) not null, mepm...
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_27_banana_qa/issue_5765_timezone_support/_11_partition/cases/64_maketime.sql --wait CUBRIDSUS-17573 to be resolved set timezone 'Asia/Shanghai'; drop table if exists t; create table t (i int auto_increment, j varchar, dttz datetime with time zone, dtltz datetime with...
{{ config( materialized = 'incremental', unique_key = 'session_id', sort = 'session_start_tstamp', dist = 'session_id' )}} with sessions as ( select * from {{ref('web_sessions__initial')}} {% if is_incremental() %} where cast(session_start_tstamp as datetime) > ( select...
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. CREATE TYPE custom_type_for_compression AS (high int, low int); CREATE TABLE compress ( time TIMESTAMPTZ ...
<reponame>taolinqu/ds4p insert into social_history_status_code (id, code, display_name, code_system_name, code_system) values (1, 'active', 'active', 'ActStatus', '2.16.840.1.113883.5.14'); insert into social_history_status_code (id, code, display_name, code_system_name, code_system) values (2, 'suspended', 'suspended'...
<gh_stars>10-100 BEGIN; ALTER TABLE platforms DROP COLUMN IF EXISTS old_username; ALTER TABLE platforms DROP COLUMN IF EXISTS old_password; ALTER TABLE platforms DROP COLUMN IF EXISTS credentials_active; COMMIT;
<gh_stars>1-10 -- Verify nz-buildings:buildings_reference/functions/update_suburb_locality_changed_deleted_buildings on pg BEGIN; SELECT has_function_privilege('buildings_reference.building_outlines_update_changed_and_deleted_suburb()', 'execute'); SELECT has_function_privilege('buildings_reference.building_outlines...
<filename>WEB_URL.sql CREATE TABLE WEBURL ( ID SERIAL PRIMARY KEY, URL text NOT NULL, CREATED_AT timestamp with time zone default current_timestamp--, --COUNTER )
-- ******************** -- -- H2 -- -- ******************** -- DROP TABLE IF EXISTS BANK_ACCOUNT; CREATE TABLE BANK_ACCOUNT ( ACCOUNT_ID UUID PRIMARY KEY, OWNER VARCHAR(255) NOT NULL, BALANCE DECIMAL, CREATION_DATE DATE DEFAULT CURRENT_DATE, VERSION INTEGER --CONSTRAINT BANK_ACCOUNT_PK PRIMARY KEY (ACCOUNT_...
<filename>Database/tbl_robots.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 06, 2020 lúc 05:21 AM -- Phiên bản máy phục vụ: 10.1.32-MariaDB -- Phiên bản PHP: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSA...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `{$underscored_name}_images` ( `id` int(11) NOT NULL auto_increment, `{$underscored_name}_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `sequence` int(11) NOT NULL, `created_on` datetime NOT NULL, `edited_on` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEF...
<filename>spider/zhudao_2018-01-25.sql<gh_stars>0 # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.19) # Database: zhudao # Generation Time: 2018-01-24 17:48:09 +0000 ...
<reponame>pelallemant/cys-engine CREATE TABLE story( id INTEGER PRIMARY KEY, title VARCHAR(128) NOT NULL );
<reponame>cyle/lunch-tool<gh_stars>0 CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `votes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL, `oid` int(11) NOT NULL, `lunchd...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2020 at 09:48 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : samples_product Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 28/03...
<reponame>tecnojamn/Youtuve<filename>db/youtuve.sql -- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-09-2015 a las 18:23:33 -- Versión del servidor: 5.6.24 -- Versión de PHP: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00...
insert into MEPages_celldataitem values ( 4001 , 142 , 43 ,NULL,NULL,NULL); insert into MEPages_celldataitem_centers values ( 2001 , 4001 , 2 ); insert into MEPages_celldataitem values ( 4002 , 103 , 85 ,NULL,NULL,NULL); insert into MEPages_celldataitem_centers values ( 2002 , 4002 , 7 ); insert into MEPages_celldatait...
CREATE TABLE IF NOT EXISTS virtual_domains ( id SERIAL, name varchar(50) NOT NULL, PRIMARY KEY (id), UNIQUE (name) ); CREATE TABLE IF NOT EXISTS virtual_alias_domains ( id SERIAL, source varchar(50) NOT NULL, destination varchar(50) NOT NULL, PRIMARY KEY (id), UNIQUE (source) ); CREATE TABLE IF NOT ...
<filename>finance/egov/egov-egf/src/main/resources/db/migration/main/V20160529083120__egf_expense_billnumber_seq.sql drop sequence if exists seq_expense_billnumber_2015_16; drop sequence if exists seq_expense_billnumber_2016_17; drop sequence if exists sq_bill_ejv; create sequence seq_expense_billnumber_2016_17; cr...
CREATE TABLE FAGSAK ( ID bigint primary key, AKTOER_ID VARCHAR(50) not null, PERSON_IDENT VARCHAR(50) not null, VERSJON bigint DEFAULT 0, OPPRETTET_AV VARCHAR(20) DEFAULT 'VL', OPPRETTET_TID TIMESTAMP(3) DEFAULT localtimestamp, ENDRET_AV VARCHAR(20), ...
-- zeroblob.test -- -- db eval {SELECT x'0000' IN (zeroblob(2))} SELECT x'0000' IN (zeroblob(2))
CREATE TABLE users ( id serial PRIMARY KEY, name varchar );
<reponame>carehart/dba-dash CREATE TABLE [dbo].[DBFiles] ( [FileID] INT IDENTITY (1, 1) NOT NULL, [DatabaseID] INT NOT NULL, [file_id] INT NULL, [data_space_id] INT NULL, [name] [sysname] NOT NULL, [fi...
ALTER TABLE `tblclients` ADD `defaultgateway` TEXT NOT NULL AFTER `currency` ; ALTER TABLE `tbltickets` ADD `contactid` INT(10) NOT NULL AFTER `userid`; ALTER TABLE `tblticketreplies` ADD `contactid` INT(10) NOT NULL AFTER `userid`; ALTER TABLE `tbldownloads` ADD `hidden` TEXT NOT NULL AFTER `clientsonly`; ALTER ...
<filename>layers/park/update_park_polygon.sql ALTER TABLE osm_park_polygon ADD COLUMN IF NOT EXISTS geometry_point geometry; ALTER TABLE osm_park_polygon_gen_z13 ADD COLUMN IF NOT EXISTS geometry_point geometry; ALTER TABLE osm_park_polygon_gen_z12 ADD COLUMN IF NOT EXISTS geometry_point geometry; ALTER TAB...
<reponame>IvoSestren/strn-ec CREATE TABLE cms ( id CHAVE NOT NULL, id_cms_category CHAVE NOT NULL, position CHAVE NOT NULL, active BOOLEAN NOT NULL, indexation BOOLEAN NOT NULL, CONSTRAINT pk_cms PRIMARY KEY (id) );
<filename>tests/FIXTURES/enumdeps/expected.sql drop view if exists "public"."v"; drop view if exists "public"."v2"; alter type "public"."e" rename to "e__old_version_to_be_dropped"; create type "public"."e" as enum ('a', 'b', 'c', 'd'); create table "public"."created_with_e" ( "id" integer, "category" e ); ...
-- 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 [StudentAcademicRecor...
<filename>sql/select_org.sql select organizations.org, organizations.name, organizations.updated, organizations.created, organizations.description from organizations where organizations.name::varchar(128) = $1 and organizations.deleted = false
<reponame>diegomscoelho/ensembl-variation<filename>sql/patch_51_52_c.sql -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2021] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
<gh_stars>1-10 DROP TABLE IF EXISTS test_type_alias; CREATE TABLE test_type_alias( binary BINARY(1), dec DEC(1, 1), tinyint TINYINT, smallint SMALLINT, int INT, integer INTEGER, bigint BIGINT, float FLOAT, double DOUBLE, char CHAR, varchar VARCHAR, text TEXT, tinytext TINYTEXT, mediumtext M...
<reponame>mrk-andreev/ClickHouse DROP TABLE IF EXISTS grouping_sets; CREATE TABLE grouping_sets(fact_1_id Int32, fact_2_id Int32, fact_3_id Int32, fact_4_id Int32, sales_value Int32) ENGINE = Memory; INSERT INTO grouping_sets SELECT number % 2 + 1 AS fact_1_id, number % 5 + 1 AS fact_2_id, number % ...
<gh_stars>1-10 INSERT INTO contact("contactType", "fullName", "orgName", "orgPosition", "email", "phoneNumber","addressLine1", "addressLine2","city", "province", "country", "postalCode", "dateCreated", "dateModified") VALUES ('clientlead', 'Rob', 'AOT', 'Manager', '<EMAIL>', '123456789', '325-1207', 'Douglas Street', ...
<gh_stars>1-10 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_secu...
<reponame>Zhaojia2019/cubrid-testcases autocommit on; create table foo (a char(10), b varchar(10)); create index idx_foo_weekday_a on foo (weekday(a)); create index idx_foo_weekday_b on foo (weekday(b)); SHOW INDEXES from foo; insert into foo values ('2010-01-01','2011-01-01'); insert into foo values ('2010-01-02','...
<reponame>conductiveresearch/abstractions<filename>optimism2/ovm2/get_contracts/insert_updated_contract_info.sql -- Scan for contracts that have a missing contract name or missing project name mapping and see if we have updated data to fill in. CREATE OR REPLACE VIEW ovm2.view_get_contracts_contracts_to_update AS SE...
drop database if exists `policies`; create database `policies`; use `policies`; grant usage on policies.* to policies@localhost identified by '@policies#'; grant select, insert, update, delete, drop, alter, create temporary tables on policies.* to policies@localhost; flush privileges; drop table if exists `policies`...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 24, 2021 at 03:23 PM -- Server version: 5.7.30-0ubuntu0.18.04.1-log -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
<filename>database/imports/climbcompdb_public_ScoreSpeed.sql<gh_stars>0 INSERT INTO public."ScoreSpeed" (id, "createdAt", "updatedAt", time, "competitorId", "routeId", "commentId") VALUES (1, '2021-05-09 17:29:55.186', '2021-05-09 17:29:55.187', 12000, 1, 4, null); INSERT INTO public."ScoreSpeed" (id, "createdAt", "upd...
<reponame>evadllewop/EmployeeTracker USE employeeTracker_DB; -- Departments INSERT INTO department (name) VALUES ('User Experience'); INSERT INTO department (name) VALUES ('Development'); INSERT INTO department (name) VALUES ('Information Technology'); INSERT INTO department (name) VALUES ('Human Resources'); -- Ro...
/* Warnings: - You are about to drop the `Feedback` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `Hotel` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `User` table. If the table is not empty, all the ...
<gh_stars>0 -- 1 up DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, email TEXT NOT NULL, password_hash TEXT NOT NULL, -- BCrypt admin BOOLEAN NOT NULL DEFAULT false, registered_at TIMESTAMP WITH TIME ZONE NOT NULL, confirmed_at TIMESTA...
<gh_stars>0 CREATE OR REPLACE FUNCTION fias_address_search_not_filtered(in_q TEXT, in_regioncode VARCHAR(2) DEFAULT NULL, in_limit INT DEFAULT 50, in_exclude_huiseguid BOOL DEFAULT FALSE, in_whole_words BOOL DEFAULT FALSE) RETURNS TABLE(aoguid UUID, houseguid UUID, roomguid UUID, actual_address TEXT, rank REAL, ao_...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -------------------------------------------------------- -- -- Table structure for table `shortlinks` -- CREATE TABLE IF NOT EXISTS `shortlinks` ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `url` text NOT NULL, `desc` mediumtext NOT NULL, `ti...
<gh_stars>1-10 -- -- Drop all tables in the right order. -- DROP TABLE IF EXISTS rm_BlogPost; DROP TABLE IF EXISTS rm_BlogCategory; -- -- Tables for blog -- DROP TABLE IF EXISTS rm_BlogCategory; CREATE TABLE rm_BlogCategory ( catId INT AUTO_INCREMENT PRIMARY KEY, catName VARCHAR(20) UNIQUE NOT NULL ) ENGINE INNO...
SET DEFINE OFF; ALTER TABLE AFW_01_CONFG_EVENM_NOTFB_LANG ADD ( CONSTRAINT AFW_01_CONFG_EVENM_NOTFB_LA_PK PRIMARY KEY (SEQNC) ENABLE VALIDATE) /
<gh_stars>1-10 -- -- Host: localhost Database: letflix -- ------------------------------------------------------ -- Server version 5.7.19 -- -- Table structure for table Sessions -- CREATE TABLE "Sessions" ( "id" serial PRIMARY KEY, "sid" varchar(255) DEFAULT NULL, "data" text DEFAULT NULL ); -- -- Ta...
<gh_stars>1-10 CREATE FUNCTION preprocess(str VARCHAR(255)) RETURNS VARCHAR(10) CHARSET utf8 reads sql data RETURN REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(str,'0',''),'1',''),'2',''),'3',''),'4',''),'5',''),'6',''),'7',''),'8',''),'9',''),'.',''),'-','');
SELECT api.initialize('root'); SELECT api.create_site_configuration('DEFAULT_CONFIG_TYPE','static'); SELECT api.create_site_configuration('DEFAULT_DATACENTER','Rochester'); SELECT api.create_site_configuration('DEFAULT_GROUP','Users'); SELECT api.create_site_configuration('DEFAULT_INTERFACE_NAME','Main Interface'); SE...
<reponame>g4s8/Android-Migrator<filename>amigrator/src/test/assets/comments/2.sql INSERT INTO foo VALUES (1); -- single line comment; /* INSERT INTO foo VALUES (1); */ INSERT INTO foo VALUES (1);
use demo; drop table if exists `admins`; create table `admins` ( `id` int(11) not null auto_increment, `user_name` varchar(255) not null, `password` varchar(255) not null, `last_login_time` int(11) default '0', `last_login_ip` varchar(255) default '', primary key (`id`), unique key `user_name` (`user_nam...
<reponame>CSCfi/antero<gh_stars>1-10 USE [VipunenTK_DW] GO /****** Object: View [dbo].[v_f_5_1_Yliopistojen_tutkimushenkilökunta_yliopistoittain] Script Date: 4.12.2018 15:07:34 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO Alter view [dbo].[v_f_5_1_Yliopistojen_tutkimushenkilökunta_yliopistoittain...
ALTER TABLE eslint_rules DROP rule_type; ALTER TABLE eslint_rules DROP category; ALTER TABLE eslint_rules DROP recommended; ALTER TABLE eslint_rules DROP suggestion; ALTER TABLE eslint_rules DROP fixable; ALTER TABLE eslint_rules DROP deprecated; ALTER TABLE eslint_rules DROP replaced_by;
-- avtrans.test -- -- execsql {SELECT name FROM sqlite_master WHERE type='table' ORDER BY name} SELECT name FROM sqlite_master WHERE type='table' ORDER BY name
<gh_stars>10-100 /* relog .\DataCollector01.blg -cf cf.txt -f SQL -o "SQL:localhost!perflogs_01" USE [Perfmon] GO DROP TABLE [dbo].[CounterData] DROP TABLE [dbo].[CounterDetails] DROP TABLE [dbo].[DisplayToID] Truncate TABLE [dbo].[CounterData] Truncate TABLE [dbo].[CounterDetails] Truncate TABLE [dbo].[DisplayTo...
CREATE TABLE `users` ( `idusers` int NOT NULL AUTO_INCREMENT, `username` varchar(45) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(256) NOT NULL, `date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_login` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `role` varchar(45) NOT NULL ...
<filename>fineract-provider/src/main/resources/sql/migrations/core_db/V384__add-permission-hold-amount2.sql<gh_stars>0 -- Author : fanny.raharjo DELETE FROM `m_permission` WHERE `code`='HOLDAMOUNT_SAVINGSACCOUNT2'; INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALU...
<gh_stars>0 create index IX_93C52776 on Notifications_UserNotificationEvent (userId, actionRequired); create index IX_36E5AE4C on Notifications_UserNotificationEvent (userId, actionRequired, archived); create index IX_73C065F0 on Notifications_UserNotificationEvent (userId, delivered, actionRequired); create unique ind...
<gh_stars>0 create database store charset = UTF8; create table `store_user`( `id` int unsigned primary key auto_increment comment '主键', `phone` varchar(11) UNIQUE NOT NULL COMMENT '手机号', `username` varchar(50) not null comment '用户名', `password` varchar(80) not null comment '密码', `email` varchar (50) comment '邮箱', `adm...
<gh_stars>0 WITH cte_unnested_aws_tags AS ( SELECT DISTINCT key, value FROM hive.{{schema | sqlsafe}}.aws_line_items_daily AS aws CROSS JOIN UNNEST(cast(json_parse(resourcetags) as map(varchar, varchar))) AS tags(key, value) WHERE source = '{{aws_source_uuid | sqlsafe}}' AND year = '{{...
<gh_stars>0 COPY warnings_2018(issue,expire,wfo,eventid,status,updated,fcster,ugc,phenomena,significance,hvtec_nwsli,gid,init_expire,product_issue,is_emergency,is_pds) FROM STDIN (FORMAT CSV); 2018-06-20 17:34:00-05,2018-06-20 18:15:00-05,DMX,27,EXP,2018-06-20 18:12:00-05,REV,IAC179,TO,W,,-1,2018-06-20 18:15:00-05,2018...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50553 Source Host : localhost:3306 Source Database : o2o_shop Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-01-22 21:13:29 */ SET FOREIGN_KEY_CHECKS=0;...
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 100 INCREMENT BY 1
CREATE DATABASE powerauth; CREATE USER powerauth WITH PASSWORD '<PASSWORD>'; GRANT ALL PRIVILEGES ON DATABASE powerauth TO powerauth; \c powerauth --- --- DB Sequences --- CREATE SEQUENCE push_credentials_seq; CREATE SEQUENCE push_device_registration_seq; CREATE SEQUENCE push_message_seq; CREATE SEQUENCE push_camp...
<reponame>APIJSON/UnitAuto -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: apijson.cn Database: sys -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULT...
-- ============================================= -- Create basic stored procedure template -- ============================================= -- Drop stored procedure if it already exists IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE SPECIFIC_SCHEMA = N'dbo' AND SPECIFIC_NAME = N'spInsertBa...
-- run query 1 in stream 0 using template query11.tpl and seed 1819994127 with year_total as ( <<<<<<< HEAD select c_customer_id customer_id ,c_first_name customer_first_name ,c_last_name customer_last_name ,c_preferred_cust_flag ,c_birth_country customer_birth_country ,c_login custo...
<reponame>kmmao/KubeOperator<filename>migration/23_add_cluster_logid.up.sql ALTER TABLE ko_cluster ADD log_id VARCHAR (255) null;
<filename>project06.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 07:44 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
-- a script that lists all rows of the table first_table from the -- database hbtn_0c_0 in your MySQL server. -- All fields should be printed -- The database name will be passed as an argument of the mysql command SELECT * FROM first_table;
<reponame>ahmedosaka/HACKER_RANK<gh_stars>0 -- AB Testing Final Assignment -- We are running an experiment at an item-level, which means all users who visit -- will see the same page, but the layout of different item pages may differ. -- Compare this table to the assignment events we captured for user_level_testing. -...
<reponame>thdk/couchers -- in tests we don't always run migrations, which would create these, so we'll put it here CREATE EXTENSION IF NOT EXISTS "unaccent"; CREATE OR REPLACE FUNCTION slugify("text" TEXT) RETURNS TEXT AS $$ SELECT regexp_replace( regexp_replace( substring( regexp_replace( lower(u...
ALTER TABLE "subscribers" ADD "title" text; INSERT INTO schema_migrations (version) VALUES (20150119171514);
USE [LexisExtract] GO /****** Object: StoredProcedure [dbo].[GetUsersByFilters] Script Date: 4/7/2019 6:45:58 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 03/20/2019 -- Table: Users View -- Desc...
<filename>application/sql/bishexuanti.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-12-30 14:39:33 -- 服务器版本: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
create table if not exists c4_access_token ( id bigint auto_increment primary key, token_key varchar(255) null, token_value blob null, expiration_date datetime null, authentication_key varchar(255) null, authentication blob null, refresh_token_id bigint null, created_at datetime default CURRENT_TIME...
-- SQL tasks from sqlzoo.net /* *************************************************************** ** ** ***** ***** TUTORIAL - 2 ***** ***** ** ** ** *******************************...
DO LANGUAGE plperl $code$ my $query = sprintf "SELECT f_name, f_hash FROM files"; my $result_set = spi_exec_query( $query ); # did the query run ok? elog( EXCEPTION, "Query failed!" ) if ( $result_set->{ status } != SPI_OK_SELECT ); for my $i ( 0 .. $result_set->{ processed } - 1 ){ my $tuple = $resul...
--analyse the profit of a store for a given duration. create or alter function profitMonitoring(@startDate date, @endDate date, @givenStore int) returns @profitTable table(dt date, profit decimal(15, 2)) as begin if(@startDate>@endDate) return; declare @dateSk int; declare @dayProfit decimal (15, 2); whi...
-- file:collate.sql ln:122 expect:true SELECT a, b::testdomain_p FROM collate_test2 ORDER BY 2
<gh_stars>0 CREATE SEQUENCE SEQ_PROTO_ATTCHTYPEGRP_ID INCREMENT BY 1 START WITH 1 NOCACHE /