text
stringlengths
1
1.05M
-- +goose Up -- +goose StatementBegin ALTER TABLE "user" ADD COLUMN "email" VARCHAR(255) NULL; -- +goose StatementEnd -- +goose Down -- +goose StatementBegin ALTER TABLE "user" DROP COLUMN "email"; -- +goose StatementEnd
-- Problem: https://www.hackerrank.com/challenges/weather-observation-station-8 SELECT DISTINCT CITY FROM STATION WHERE REGEXP_LIKE(CITY, '^[AEIOU].*[aeiou]$');
-- INSERT INTO FNAC.Cliente (id_cliente, nome, data_nascimento, data_subscricao, email, telemovel, distrito) Use FNAC; INSERT INTO FNAC.Cliente SELECT 1,'ABIMAEL CARDOSO','1968-04-06','2014-03-11','abimael.cardoso@exemplo.com',978801951,'Aveiro'; INSERT INTO FNAC.Cliente SELECT 2,'ABNER CARVALHO','1977-03-19','2015-11-...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2020 at 12:13 PM -- 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...
create table ACT_RU_JOB ( ID_ NVARCHAR2(64) NOT NULL, REV_ INTEGER, TYPE_ NVARCHAR2(255) NOT NULL, LOCK_EXP_TIME_ TIMESTAMP(6), LOCK_OWNER_ NVARCHAR2(255), EXCLUSIVE_ NUMBER(1,0) CHECK (EXCLUSIVE_ IN (1,0)), EXECUTION_ID_ NVARCHAR2(64), PROCESS_INSTANCE_ID_ NVARCHAR2(64), PROC_DEF_ID...
CREATE TABLE {{{tablePrefix}}}{{tableName}}{{{tableSuffix}}} ({{#each_with_index columns}}{{#if index}}, {{/if}}{{{../fieldPrefix}}}{{name}}{{{../fieldSuffix}}} {{db_type}}{{/each_with_index}}) {{separator}} INSERT INTO {{{tablePrefix}}}{{tableName}}{{{tableSuffix}}} ({{#each_with_index columns}}{{#if index}}, {{/i...
CREATE DATABASE IF NOT EXISTS videoslaravel; USE videoslaravel; CREATE TABLE users( id int(255) auto_increment not null, role varchar(20), name varchar(255), surname varchar(255), email varchar(255), password varchar(255), image varchar(255), created_at datetime, updated_at datetime, remember_token va...
# ************************************************************ # Sequel Pro SQL dump # Versión 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.23) # Base de datos: library # Tiempo de Generación: 2018-10-03 14:00:23 +0000 # *************************************...
IF OBJECT_ID('[dbo].[ClmTaskStatus]') IS NULL begin print 'Creating table [dbo].[ClmTaskStatus] ...' CREATE TABLE [dbo].[ClmTaskStatus]( [clmTaskStatusId] [int] NOT NULL, [clmTaskStatusName] [nvarchar](50) NOT NULL, CONSTRAINT [PK_clmTaskStatus] PRIMARY KEY CLUSTERED ( [clmTaskStatusId] ASC )WITH (PAD_IND...
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 05. Februari 2021 jam 16:56 -- Versi Server: 5.5.8 -- Versi PHP: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET...
CREATE TABLE [dbo].[Table] ( [Id] INT NOT NULL , [CPF] NCHAR(15) NOT NULL, [Nome] NCHAR(50) NULL, [Endereco] NCHAR(100) NULL, [Telefone] NCHAR(15) NULL, PRIMARY KEY ([CPF]) )
-- INSERT INTO burgers (name) VALUES ('Cheese burger'); -- INSERT INTO burgers (name) VALUES ('Double cheese burger'); -- INSERT INTO burgers (name) VALUES ('Spicy chicken burger'); -- INSERT INTO burgers (name) VALUES ('Veggie burger'); -- INSERT INTO burgers (name) VALUES ('Fish burger'); -- INSERT INTO burgers (name...
-- 定时任务表 CREATE TABLE schedule_job ( id bigint identity, tenant_id bigint default 0 not null, job_key VARCHAR(100) not null, job_name VARCHAR(100) not null, cron VARCHAR(50), param_json VARCHAR(200), init_strategy VARCHAR(50), job_status VARCHAR...
-- create a database CREATE DATABASE univeristy; -- Set as default database to use USE university; -- Create table students (should already exist) CREATE TABLE students ( id int(11), name varchar(255), surname varchar(255), subject varchar(45), email varchar(45)); -- Adding a column to an existing table A...
--------------------------------------------------------------- -- view: vw_dashboard_membership_borrowersbyward --------------------------------------------------------------- -- drop view vw_dashboard_membership_borrowersbyward; create or replace view vw_dashboard_membership_borrowersbyward as select vu.ward_nam...
CREATE TABLE scm_river_body_of_water( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n4.core.Container$AdditionalProperty * param: org.kyojo.schemaorg.m3n4.core.Clazz$LocationFeatureSpecification * org.kyojo.schemaorg.m3n4.core.Clazz$PropertyValue */ additional_property VAR...
SELECT users.full_user_name0 AS user_displayname, users.mail0 AS user_mail, users.#Attribute_costCenter# AS user_costcenter FROM [dbo].[v_R_User] AS users WHERE users.#Attribute_costCenter# IS NOT NULL
select 1 as id union all select * from {{ ref('node_0') }} union all select * from {{ ref('node_3') }} union all select * from {{ ref('node_6') }} union all select * from {{ ref('node_263') }} union all select * from {{ ref('node_270') }} union all select * from {{ ref('node_519') }} union all select * from {{ ref('nod...
use test; drop table if exists autopk; create table if not exists autopk ( id int not null AUTO_INCREMENT, name varchar(32) default 'Employee 666', age int, magic int not null, primary key(id), unique key idx_unique_hash_magic (magic) using hash, key idx_btree_age (age) ); insert into autopk(name, age, ...
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!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' */; -- 导出 表 mlss_gzpc_bdap_uat_01.t_g...
CREATE TABLE [dbo].[Workoutlog] ( [Id] INT NOT NULL PRIMARY KEY, [FirstName] NVARCHAR(50) NULL, [LastNamee] NVARCHAR(50) NULL, [City] NVARCHAR(50) NULL, [Email] NVARCHAR(50) NULL, [politicalAffilliation] NCHAR(10) NULL, [Admin] CHAR(10) NULL )
USE [StarWars2] GO /****** Object: Table [dbo].[Vehicles] Script Date: 03/10/2020 22:23:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Vehicles]( [Id] [int] IDENTITY(1,1) NOT NULL, [Transport_ptr] [int] NOT NULL, [Vehicle_class] [nvarchar](max) NULL, [Pilots_PeopleId] [int] N...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : sharding_0000 sharding_0001 sharding_0002 sharding_0003 Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2019-03...
DROP PROCEDURE IF EXISTS sp_tbl_CountryMaster; DELIMITER $$ CREATE PROCEDURE sp_tbl_CountryMaster() BEGIN DECLARE currentSchema varchar(100); SELECT database() into currentSchema; IF NOT EXISTS( SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = currentSchema ...
LOCK TABLES `__prefix__RollGroup` WRITE; ALTER TABLE `__prefix__RollGroup` DISABLE KEYS; INSERT INTO `__prefix__RollGroup` (`id`, `academic_year`, `name`, `nameShort`, `tutor1`, `tutor2`, `tutor3`, `assistant1`, `assistant2`, `assistant3`, `facility`, `next_roll_group`, `attendance`, `website`) VALUES (143,25,'07.1','...
-- CMD DOWN -- END -- OUTPUT is down -- END -- DOWN is down
DROP TABLE space_resources;
-- 506 Distribution of age by condition_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_id) with rawData(stratum_id, count_value) as ( select p1.gender_concept_id, d1.death_year - p1.year_of_birth as count_value from @cdmDatabaseSchema.PERSON p1 inner join (select person_id, min(year(death_date)) as death_yea...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.1 -- Dumped by pg_dump version 9.6.1 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = publi...
CREATE DATABASE sales OWNER postgres; \c sales; CREATE TABLE IF NOT EXISTS films ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, did integer NOT NULL, date_prod date, kind varchar(10), len interval hour to minute ); INSERT INTO...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 13 oct. 2020 à 13:58 -- Version du serveur : 10.4.13-MariaDB -- Version de PHP : 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
Creator/Artist|2|CR_| Description words|4|DE_| Image size|50|IMS_| Record type|96|RT_| Sections|97|SE_| Subjects|3|SU_| Text words|99|TW_| Title|1|TI_| Type|8|TY_|
BEGIN TRANSACTION; DROP INDEX IF EXISTS "sponsorTimes_hashedIP", "privateDB_sponsorTimes_videoID_v2"; --!sqlite-ignore UPDATE "config" SET value = 6 WHERE key = 'version'; COMMIT;
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- -- 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/...
-- Make the old field nullable to prepare for its future removal. ALTER TABLE `addons` MODIFY COLUMN `adminreview` tinyint(1) NULL; -- Create the new table. -- Note: if the migration fails for you locally, remove the 'UNSIGNED' next to addon_id below. CREATE TABLE `addons_addonreviewerflags` ( `created` datetime(6)...
alter table scm_change_entry add column `committer` varchar(36) not null default ''; alter table scm_change_entry add column `line_added` int not null default 0; alter table scm_change_entry add column `line_deleted` int not null default 0;
set system parameters 'dont_reuse_heap_file=yes'; drop table if exists sinfo; drop table if exists sscore; drop table if exists scourse; create table sinfo(id bigint auto_increment,name varchar(20),address varchar(100) , telephone char(11)) auto_increment=07010010; insert into sinfo select null,null,null,null from db_r...
create table RunStats.ActivityMetadata ( ID bigserial primary key, UserID varchar(50) not null, DistanceMeters double precision not null, DurationSeconds bigint not null, StartTime bigint not null, UUID varchar(36) not null, UNIQUE(StartTime, UserID) );
-- 仓库表 CREATE TABLE repositories ( repo_id int NOT NULL, repo_address char(50) NOT NULL, PRIMARY KEY(repo_id) ) GO -- 门店表 CREATE TABLE stores ( stor_id int NOT NULL, stor_address char(50) NOT NULL, PRIMARY KEY(stor_id) ) GO -- 商品表 CREATE TABLE goods ( good_id int NOT NULL, PRIMARY KEY(...
CREATE OR REPLACE FUNCTION "api"."remove_libvirt_host"(input_system text) RETURNS VOID AS $$ BEGIN IF api.get_current_user_level() !~* 'ADMIN' THEN RAISE EXCEPTION 'Only admins can remove VM hosts'; END IF; DELETE FROM "libvirt"."hosts" WHERE "system_name" = input_system; END; $$ LANGUAGE 'plpgsql'; COMME...
create table IF NOT EXISTS orderDetails ( orderDetails_id INTEGER not null primary key autoincrement, orderCode TEXT not null, customerID INTEGER not null, productCode TEXT not null, orderDate DATETIME, quantity INTEGER, status TEXT );
INSERT INTO `ims`.`customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `ims`.`customers` (`first_name`, `surname`) VALUES ('jason', 'fyfe'); INSERT INTO `ims`.`customers` (`first_name`, `surname`) VALUES ('steven', 'smith'); INSERT INTO `ims`.`items` (`name`, `price`) VALUES ('xbox', '299.99...
---------------------------------------------------------------- -- [vds_statistics] Table -- CREATE OR REPLACE FUNCTION InsertVdsStatistics ( v_cpu_idle DECIMAL(18, 0), v_cpu_load DECIMAL(18, 0), v_cpu_sys DECIMAL(18, 0), v_cpu_user DECIMAL(18, 0), v_usage_cpu_percent INT, v_usage_mem_percen...
SELECT ngrams('Test', 1); SELECT ngrams('Test', 2); SELECT ngrams('Test', 3); SELECT ngrams('Test', 4); SELECT ngrams('Test', 5); SELECT ngrams('😁😈😁😈', 1); SELECT ngrams('😁😈😁😈', 2); SELECT ngrams('😁😈😁😈', 3); SELECT ngrams('😁😈😁😈', 4); SELECT ngrams('😁😈😁😈', 5); SELECT ngrams(materialize('Test'), 1); ...
CREATE TABLE employees ( emp_no Integer NOT NULL, emp_title_id VARCHAR(15) NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, sex CHAR NOT NULL, hire_date DATE NOT NULL, CONSTRAINT pk_employees PRIMARY KEY ( emp_no ) ); C...
ALTER TABLE [dbo].[AuthenticationToken] ADD CONSTRAINT [DF_AuthenticationToken_UsageCount] DEFAULT ((0)) FOR [UsageCount];
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: invoice -- ------------------------------------------------------ -- Server version 5.5.5-10.0.24-MariaDB-7 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
-- CreateTable CREATE TABLE "Token" ( "id" TEXT NOT NULL PRIMARY KEY, "professorId" INTEGER NOT NULL, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "Token_professorId_fkey" FOREIGN KEY ("professorId") REFERENCES "Professor" ("id") ON DELETE RESTRICT ON UPDATE CASCADE );
CREATE TABLE [dbo].users ( id INT NOT NULL, username VARCHAR(25) NOT NULL, enabled BIT DEFAULT 1, last_login DATETIME NOT NULL, CONSTRAINT users_pkey PRIMARY KEY (id) );
-- -------------------------------------------------------- -- -- Table structure for table `sh_appointmentdetails` -- CREATE TABLE `sh_appointmentdetails` ( `ID` int(11) NOT NULL, `Name` varchar(500) NOT NULL, `PatientID` varchar(500) NOT NULL, `MobileNo` varchar(500) NOT NULL, `Date` date NOT NULL, `Ti...
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `list` (`id`, `value`) VALUES ('ALK', 'Albanian Lek (1946–1965)'); INSERT INTO `list` (`id`, `value`) VALUES ('AOK', 'Angolan Kwanza (1977–1991)'); IN...
Sector SS Hex Name UWP Bases Remarks Zone PBG Allegiance Stars {Ix} (Ex) [Cx] Nobility W RU Zaru A 0101 ???????-? ??? ?? K0 V { } ( ) [ ] Zaru A 0106 ???????-? ??? ?? M3 V M5 V { } ( ) [ ] Zaru A 0108 ???????-? ??? ?? A2 V { } ( ) [ ] Zaru A 0109 ???????-? ??? ?...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 21, 2022 at 04:23 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; --Create DEPARTMENT TABLE-- CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); --CREATE ROLE TABLE-- CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT,...
/* Problem Statement You are given a City table with the fields described below: +-------------+----------+ | Field | Type | +-------------+----------+ | ID | int(11) | | Name | char(35) | | CountryCode | char(3) | | District | char(20) | | Population | int(11) | +-------------+------...
SELECT 'monkey', objectId, object.ra, object.dec, extendedness, object.mag_r, object.magerr_r, good FROM dp01_dc2_catalogs.object AS object JOIN dp01_dc2_catalogs.truth_match AS truth ON object.objectId = truth.match_objectId WHERE extendedness = 0 AND is_good_match = 1 AND truth_type = 2 AND object.mag_r BETWEEN {{ mi...
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for Linux (x86_64) -- -- Host: eagle Database: usda -- ------------------------------------------------------ -- Server version 10.4.13-MariaDB-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
-- @testpoint:openGauss鍏抽敭瀛梤elative(闈炰繚鐣?浣滀负鍒楀悕涓嶅甫鍙屽紩鍙凤紝relative澶у皬鍐欐贩鍚堬紝寤鸿〃鎴愬姛 drop table if exists relative_test; create table relative_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numer...
USE TelerikAcademy SELECT FirstName + ' ' + LastName AS FullName FROM Employees WHERE FirstName LIKE '%ei%'
-- Deploy nasa-apt:journal_status to pg BEGIN; CREATE TYPE apt.atbd_version_journal_status AS ENUM ( 'NO_PUBLICATION', 'PUBLICATION_INTENDED', 'PUBLICATION_REQUESTED', 'PUBLISHED' ); ALTER TABLE apt.atbd_versions ADD COLUMN journal_status apt.atbd_version_journal_status DEFAULT 'NO_PUBLICATION'; COM...
ALTER TABLE paper_feedback ADD COLUMN participants INTEGER DEFAULT 0 NOT NULL;
USE [perpetuumsa] GO --UPDATE misplaced flock from script: NPC_beta2_easy_spawns PRINT N'UPDATE misplaced flock from script: NPC_beta2_easy_spawns'; PRINT N'Spawn origin fix for: KentLao_LowLevel4_HM'; UPDATE npcflock SET spawnoriginX = 951, spawnoriginY=283 WHERE name='KentLao_LowLevel4_HM'; GO
-- @testpoint:opengauss关键字preceding(非保留),作为函数名 --关键字不带引号-成功 drop function if exists preceding; create function preceding(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / drop function preceding; --关键字带双引号-成功 drop function if exists "preceding"; create function "preceding"(i integer) ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 04, 2019 at 05:39 PM -- Server version: 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_SET_CLIENT=@@CHARACTER_SET_CLI...
SELECT * FROM Planes WHERE CHARINDEX('tr', [Name]) > 0 ORDER BY Id, [Name], Seats, [Range];
USE `job_backup`; SET NAMES utf8mb4; CREATE TABLE `archive_progress` ( `row_create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `row_update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `table_name` varchar(256) NOT NULL, `last_archived_id` BIGINT(20), `last_deleted_id...
-- Revert database-registration-view-data:tables/registrations from pg BEGIN; DROP TABLE "registration"."registrations"; COMMIT;
-- Revert userflips DROP VIEW userflips; COMMIT;
-- providing missing upgrade script in order to get rid of -- syntax seq_foo.nextval -- -- procedure acs_log__notice/2 -- CREATE OR REPLACE FUNCTION acs_log__notice( notice__log_key varchar, notice__message varchar ) RETURNS integer AS $$ DECLARE BEGIN insert into acs_logs (log_id, log_level, log_key, ...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore DROP TABLE IF EXISTS reindex_abort_ao; CREATE TABLE reindex_abort_ao (a INT) WITH (appendonly=true, orientation=column); insert into reindex_abort_ao select generate_series(1,1000); create index idx_btree_reindex_abort_ao on reindex_abo...
-- Step:1(View the existing table 'CustomerInformation' Data) select top 100 * from CustomerInformation -- Step:2 Let's confirm that there are no Dynamic Data Masking (DDM) applied on columns SELECT c.name, tbl.name as table_name, c.is_masked, c.masking_function FROM sys.masked_columns AS c JOIN sys.tables AS tb...
-- 2019-04-22T13:47:08.958 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Tab SET WhereClause='/*whereclause from AD_Tab_ID=255*/ M_Inventory.M_Inventory_ID in (select i.M_Inventory_ID from M_Inventory i join C_DocType dt on i.C_DocType_ID = dt.C_DocType_ID where dt.DocBaseType = ''MMI...
-- Show status of uploaded files SELECT cty.name, filename, (case when(cdb.cvr_file_id = uf.id) then 'CVRs' else 'manifest' end) as type, approximate_record_count AS approx_count, size, status, timestamp, computed_hash, submitted_hash FROM uploaded_file AS uf LEFT JOIN county as cty ON cty.id = ...
-- 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"); you may...
CREATE TABLE [norma].[Resources] ( [Id] INT NOT NULL IDENTITY, [Name] NVARCHAR(1024) NOT NULL, [IdModule] INT NULL, CONSTRAINT [PK_Resources] PRIMARY KEY ([Id]), CONSTRAINT [FK_Resources_Modules] FOREIGN KEY (IdModule) REFERENCES [norma].[Modules]([Id]), )
#|Not a government publication a|Autonomous or semi-autonomous component c|Multilocal f|Federal/National i|International intergovernmental l|Local m|Multistate o|Level undetermined s|State, provincial, territorial, dependent, etc. u|Unknown if item is government publication z|Other |No attempt to code
/* * This is the upgrade used to convert the sakai_person_t table which is part of the common. * This is included as part of the Sakai upgrade scripts so does not need to be run again. */ -- SAK-20598 change column type to mediumtext (On Oracle we need to copy the column content first though) alter table SAKAI_PER...
#chrom chromStart chromEnd counts AA AC AG AT CA CC CG CT GA GC GG GT TA TC TG TT value chr22 13005000 13005100 39 4 0 2 1 0 5 1 4 1 0 8 2 2 4 2 3 chr22 13005100 13005200 100 10 2 4 2 0 22 2 9 5 3 17 2 1 5 0 16 chr22 13005200 13005300 100 12 1 8 2 2 21 3 4 4 0 20 3 0 6 4 10 chr22 13005300 13005400 100 13 1 7 0 1 25 4 4...
DROP SCHEMA IF EXISTS demo CASCADE; CREATE SCHEMA demo; GRANT ALL ON SCHEMA demo TO postgres; CREATE TABLE demo."exame" ( "fkexame" bigint NOT NULL, "fkpessoa" bigint NOT NULL, "nratendimento" bigint DEFAULT null, "fkprescricao" bigint DEFAULT null, "dtexame" timestamp NOT NULL, "tpexame" varchar(100) NO...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 24, 2019 at 06:58 AM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP TABLE Users; DROP TABLE Books; CREATE TABLE Users ( user_id varchar(8) PRIMARY KEY, user_name varchar(8), password varchar(8) ); CREATE TABLE Books ( book_id varchar(8) PRIMARY KEY, author varchar(8), title varchar(100) ); GRANT ALL PRIVILEGES ON TABLE Users TO injection_role; GRANT ALL PRIVILEGES O...
create database if not exists demo; use demo; drop table if exists employees; CREATE TABLE `employees` ( `id` int(11) NOT NULL AUTO_INCREMENT, `last_name` varchar(64) DEFAULT NULL, `first_name` varchar(64) DEFAULT NULL, `email` varchar(64) DEFAULT NULL, `department` varchar(64) DEFAULT NULL, `salary` DEC...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 03, 2021 at 10:52 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- database: presto_tpcds; groups: tpcds; requires: io.prestodb.tempto.fulfillment.table.hive.tpcds.ImmutableTpcdsTablesRequirements SELECT "i_item_id" , "avg"("cs_quantity") "agg1" , "avg"("cs_list_price") "agg2" , "avg"("cs_coupon_amt") "agg3" , "avg"("cs_sales_price") "agg4" FROM catalog_sales , customer_demogra...
-- 2018-02-27T00:16:41.887 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2018-02-27 00:16:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545432 ; -- 2018-02-27T00:16:44.716 -- I forgot to set the DICTIONARY_ID_COMMENTS System...
INSERT INTO ${myuniversity}_${mymodule}.mapping_profiles (id, jsonb) values ('0d991835-fabb-4234-8472-3ae94bc7a1b3', '{ "id": "0d991835-fabb-4234-8472-3ae94bc7a1b3", "name": "MARC brief instance 1", "description": "Preliminary instance from CoolVendor MARC order record", "tags": { "tagList": [ "cool-vend...
DROP DATABASE IF EXISTS GELISH; CREATE DATABASE GELISH; USE GELISH; CREATE TABLE Usuario ( id INT(11) NOT NULL AUTO_INCREMENT, user_name VARCHAR(50) NOT NULL, pass VARCHAR(50) NOT NULL, tipo_usuario INT(11) NOT NULL, nombre VARCHAR(50) NOT NULL, apellido_paterno VARCHAR(50) NOT NULL, apellido_materno VAR...
-- SPDX-License-Identifier: MIT -- Copyright 2017 J. King, Dustin Wilson et al. -- See LICENSE and AUTHORS files for details -- Please consult the SQLite 3 schemata for commented version create table arsse_sessions ( id varchar(255) primary key, created datetime(0) not null default CURRENT_TIMESTAMP, expi...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 14, 2021 at 12:28 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
DROP TABLE IF EXISTS anime; CREATE TABLE anime ( id SERIAL PRIMARY KEY, title VARCHAR(255), image VARCHAR(255), averageRating VARCHAR(255), startDate VARCHAR(255), endDate VARCHAR(255), gener_old VARCHAR(255), subtype VARCHAR(255), status VARCHAR(255), episodeCount VARCHAR(255), episodeLen...
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 21 ное 2018 в 12:42 -- Версия на сървъра: 5.7.24-0ubuntu0.16.04.1-log -- PHP Version: 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET...
-- MySQL dump 10.13 Distrib 5.6.23, for Win32 (x86) -- -- Host: localhost Database: ybbom -- ------------------------------------------------------ -- Server version 5.5.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101...
DROP INDEX hydra_oauth2_refresh_client_id_subject_idx ON hydra_oauth2_refresh; DROP INDEX hydra_oauth2_access_client_id_subject_idx ON hydra_oauth2_access;
-- https://www.brentozar.com/askbrent/ -- Collect Data using below code EXEC master..sp_BlitzFirst @OutputDatabaseName = 'DBA', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzFirst', -- the quick diagnosis result set goes here @OutputTableNameFileStats = 'BlitzFirst_FileStats', @OutputTableNamePerfmonStats ...
-- boundary2.test -- -- db eval { -- SELECT a FROM t1 WHERE r >= -2 ORDER BY r -- } SELECT a FROM t1 WHERE r >= -2 ORDER BY r
-- @testpoint:openGauss关键字scroll(非保留),作为列名带单引号,合理报错 drop table if exists explain_test; create table explain_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(50) d...
CREATE TABLE tdm.dt_model ( id serial NOT NULL, db_engine_id int NOT NULL default 0, update_strategy_id int NOT NULL default 0, name character varying ( 60 ) NOT NULL, description character varying ( 1000 ), created_by integer, created_dt timestamp with time zone DEFAULT ( now () AT TIME ZON...
-- One admin user, named admin1 with passwor 4dm1n and authority admin INSERT INTO users(username,password,enabled) VALUES ('admin1','4dm1n',TRUE); INSERT INTO authorities VALUES ('admin1','admin'); -- One owner user, named owner1 with passwor 0wn3r INSERT INTO users(username,password,enabled) VALUES ('owner1','0wn3r',...
/*==============================================================*/ /* Database name: SQLite */ /* DBMS name: SQLite 2.8 */ /* Created on: 04.02.2003 20:01:43 */ /*==============================================...