text
stringlengths
1
1.05M
-- ============================================= -- Author: HPCPC -- Create date: 2/9/2017 11:21:50 AM -- Description: Warning, this is auto-generated and might be over written. Do not edit. -- ============================================= CREATE PROCEDURE [dbo].[AppFeatureFind] @AppFeatureGuid UNIQUEIDENTIFIER , @Ap...
SELECT model, speed, hd FROM PC WHERE price < 500
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.20) # Database: contacts # Generation Time: 2019-03-08 07:59:59 +0000 # **********************************************...
/*L Copyright Oracle Inc, SAIC-F. Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cadsr-api/LICENSE.txt for details. L*/ -- -- Uncomment the following block if you want to drop existing CSM database objects -- begin execute immediate 'DROP TABLE CSM_PASSWORD_HISTORY...
alter table `projects` modify column `name` varchar (255) null default "name me"; update `projects` set `name`="name me" where `name` is null; alter table `projects` modify column `name` varchar (255) not null default "name me";
create table customer ( id int auto_increment comment '实例id' primary key, uuid varchar(64) not null comment '客户uuid', username varchar(64) not null comment '客户登录用户名', password_hash varchar(255) not null comment '用户登录密码', first_name varchar(255) not null comment '客户 名', last_name varchar(255) not null comment '客...
{# # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2017, The pgAdmin Development Team # This software is released under the PostgreSQL Licence #} {### We need outer SELECT & dummy column to preserve the ordering because we lose ordering when we use UNION ###} SELECT * FROM ( {% for n in range(colcnt|int) %...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 10, 2021 at 12:10 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- creates a table called first_table in the current database in your MySQL server. CREATE TABLE IF NOT EXISTS `first_table` (id INT, name VARCHAR(256));
DROP TABLE github_issues;
CREATE TABLE Song ( ID INT, Title VARCHAR(60), Artist VARCHAR(60), ReleaseYear INT, PRIMARY KEY (ID) ); INSERT INTO Song VALUES (100, 'Blinding Lights', 'The Weeknd', 2019), (200, 'One', 'U2', 1991), (300, 'You\'ve Lost That Lovin\' Feeling', 'The Righteous Brothers', 1964), (400, 'Johnny B. Goode', ...
select Code, Name from Country;
-- ============================================================================ -- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net> -- Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es> -- Copyright (C) 2016 Alexandre Spangaro <aspangaro.dolibarr@gmail.com> -- -- This progra...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2021 at 09:03 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
BEGIN; CREATE TABLE pepys.alembic_version ( version_num VARCHAR(32) NOT NULL, CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num) ); -- Running upgrade -> 5154f7db278d CREATE TABLE pepys."Changes" ( change_id UUID NOT NULL, "user" VARCHAR(150) NOT NULL, modified DATE ...
create table "domains" ( "domain_id" character varying(64) primary key, "description" character varying(512) ); create table "regions" ( "region_id" character varying(64) primary key, "description" character varying(512) ); create table "transactions" ( "transaction_id" character varyin...
select c1.concept_id as CONCEPT_ID, --all rows for all concepts, but you may split by conceptid c1.concept_name as CONCEPT_NAME, num.stratum_2 as X_CALENDAR_MONTH, -- calendar year, note, there could be blanks round(1000*(1.0*num.count_value/denom.count_value),5) as Y_PREVALENCE_1000PP --prevalence, per 1000 per...
USE [XSDtoSQL] GO INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (1, N'Left') GO INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (2, N'Right') GO INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId], [Value]) VALUES (3, N'Above') GO INSERT [dbo].[TOcpCenterSide] ([TOcpCenterSideId],...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 06, 2017 at 04:58 PM -- Server version: 5.7.9 -- PHP Version: 5.6.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
-- @testpoint: NULLIF 合理报错 --只有当value1和value2相等时,NULLIF才返回NULL。否则它返回value1 --value1和value2为同一数据类型,覆盖相等和不相等 DROP TABLE if exists test_expression_08 cascade; CREATE TABLE test_expression_08 ( NI_VALUE1 VARCHAR(10), NI_VALUE2 VARCHAR(10) ); INSERT INTO test_expression_08 VALUES('abc', 'abc'); INSERT INTO test_exp...
select account_id, akas, region, title, tags, partition from aws.aws_vpc_endpoint where vpc_endpoint_id = '{{output.resource_id.value}}:asdf'
-- @testpoint:定义两个参数模式都是VARIADIC模式,合理报错 DROP FUNCTION if EXISTS k_testfun8 (arg1 VARIADIC int[] ,arg2 VARIADIC int[]); CREATE FUNCTION k_testfun7 (arg1 VARIADIC int[],arg2 VARIADIC int[]) RETURNS integer AS $$ BEGIN RETURN arg1 + 1; END; $$ LANGUAGE plpgsql; /
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-12-2021 a las 18:10:57 -- Versión del servidor: 10.4.21-MariaDB -- Versión de PHP: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE DATABASE IF NOT EXISTS `simbpmppt` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `simbpmppt`; -- MySQL dump 10.13 Distrib 5.5.47, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: simbpmppt -- ------------------------------------------------------ -- Server version 5.5.47-0ubuntu0.14.04.1 /*!40...
DROP FUNCTION IF EXISTS de_metas_fresh_kpi.KPI_Workflow_Duration_Purchase_Invoice (IN startdate DATE, IN enddate DATE, IN laststartdate DATE, in lastenddate DATE); CREATE OR REPLACE FUNCTION de_metas_fresh_kpi.KPI_Workflow_Duration_Purchase_Invoice (IN startdate DATE, IN enddate DATE, IN laststartdate DATE, in lastend...
/* Query the Western Longitude (LONG_W)where the smallest Northern Latitude (LAT_N) in STATION is greater than . Round your answer to decimal places. */ SELECT ROUND((LONG_W), 4) FROM STATION WHERE LAT_N > 38.7780 ORDER BY LAT_N LIMIT 1;
SELECT DISTINCT tt.cla_gr_uid AS scheme_id, tt.the_te_uid AS concept_id, trim(tt.scope_note) AS scopenote FROM thesaurus_terms tt WHERE tt.status = 'P' AND tt.scope_note <> '' AND tt.cla_gr_uid IN ('eh_tmc');
USE [SMSService] GO IF OBJECT_ID('pbl.spDeleteAccount') IS NOT NULL DROP PROCEDURE pbl.spDeleteAccount GO CREATE PROCEDURE pbl.spDeleteAccount @AID UNIQUEIDENTIFIER WITH ENCRYPTION AS BEGIN SET NOCOUNT, XACT_ABORT ON; DECLARE @ID UNIQUEIDENTIFIER = @AID , @Result INT = 0 BEGIN TRY BEGIN TRAN DELETE F...
create table ACT_ID_PROPERTY ( NAME_ varchar(64), VALUE_ varchar(300), REV_ integer, primary key (NAME_) ); insert into ACT_ID_PROPERTY values ('schema.version', '6.7.0.0', 1); create table ACT_ID_BYTEARRAY ( ID_ varchar(64), REV_ integer, NAME_ varchar(255), BYTES_ bytea, primary ...
/** * database bell/ea */ -- 学期 insert into ea.term (id, start_date, start_week, mid_left, mid_right,end_week, max_week) select id, start_date, start_week, mid_left, mid_right, end_week, max_week from ea.sv_term on conflict(id) do update set start_date = EXCLUDED.start_date, start_week = EXCLUDED.start_week, mid_lef...
-- When provided, PrimaryPlaceofPerformanceZIP+4 must be in the format #####, #########, #####-####, or 'city-wide' SELECT row_number, place_of_performance_zip4a FROM detached_award_financial_assistance WHERE submission_id = {0} AND COALESCE(place_of_performance_zip4a, '') <> '' AND place_of_performance...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2018. Ápr 01. 18:08 -- Kiszolgáló verziója: 5.6.26 -- PHP verzió: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2020 at 07:01 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- 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...
DROP TABLE IF EXISTS livre; DROP TABLE IF EXISTS auteur; -- -- Structure de la table auteur -- CREATE TABLE auteur ( id_auteur int UNSIGNED NOT NULL AUTO_INCREMENT, nom varchar(255) NOT NULL, prenom varchar(255) NOT NULL, PRIMARY KEY (id_auteur) ) ENGINE=InnoDB DEFAULT CHARSET=U...
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES (E'ak', E'అకాన్'); INSERT INTO "list" ("id", "value") VALUES (E'ak_GH', E'అకాన్ (ఘనా)'); INSERT INTO "list" ("id", "value") VALUES (E'az', E'అజర్బైజాని'); INSERT INTO "list" ("id", "value"...
DROP DATABASE IF EXISTS todo_users; CREATE DATABASE todo_users CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_unicode_ci'; USE todo_users; DROP TABLE IF EXISTS users; CREATE TABLE users ( id BINARY(16) NOT NULL, email VARCHAR(250) NOT NULL, handle VARCHAR(20) NULL, alias VARCHAR(50) NULL, hasAvatar BOOL...
create or alter trigger deleteOnCities on locations instead of delete as begin declare @loc_id int select @loc_id = deleted.location_id from deleted; if (@loc_id < 2) begin print('u thirr triggeri'); RAISERROR('nuk mund t fshish city me id < 4',16,1); end; end; delete from locations where lo...
-- phpMyAdmin SQL Dump -- version 4.4.13.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 25, 2016 at 01:12 AM -- Server version: 5.6.30-0ubuntu0.15.10.1 -- PHP Version: 5.6.11-1ubuntu3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
INSERT INTO `flyway`.`person`( `name`, `age`, `email`, `status`, `info`) VALUES ( 'Jack-28', 28, 'test2@163.com', 0, '[{\"id\": 1}]');
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t (i1 int, i2 int, i3 int); create index i_t_123 on t(i1, i2, i3); insert into t values (0, 0, 00), (0, 1, 01), (0, 2, 02), (0, 3, 03), (0, 4, 04); insert into t values (1, 0, 10), (1, 1, 11), (1, 2, 12), (1, 3, 13), (1, 4, 14); insert into ...
INSERT INTO movie (`Title`, `Plot`, `Year`, `Length`, `Director`, `BackgroundImage`, `CoverImage`, `MainColor`) VALUES ("Bright", "Set in a world where fantasy creatures live side by side with humans. A human cop is forced to work with an Orc to find a weapon everyone is prepared to kill for.", 2017, 117, "David Ayer"...
CREATE TABLE MycoKeyPictures ( _id varchar(255), path varchar(255) ) ENGINE = InnoDB DEFAULT CHARSET= UTF8; -- import csv from filemaker (DkIndexNumber, MycoKeyHtmlReference) UPDATE MycoKeyPictures SET _id= NULL where _id = ""; ALTER TABLE MycoKeyPictures MODIFY COLUMN _id INT(11); ALTER TABLE MycoKeyPictures ADD FU...
/* Navicat MySQL Data Transfer Source Server : company Source Server Version : 50553 Source Host : 192.168.42.1:3306 Source Database : bs Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2020-01-02 13:19:45 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
CREATE SEQUENCE points_id_seq INCREMENT BY 1 MINVALUE 1 START 1; CREATE TABLE points (id INT NOT NULL, text TEXT NOT NULL, tsvector TSVECTOR NOT NULL, geography geography(GEOMETRY, 4326) NOT NULL, point_geography_2d geography(POINT) NOT NULL, point_geography_2d_srid geography(POINT, 4326) NOT NULL, PRIMARY KEY(id)); S...
/* MySQL Backup Database: scheduled_demo Backup Time: 2021-12-16 11:13:58 */ SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `shedlock`; CREATE TABLE `shedlock` ( `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `lock_until` timestamp(3) NULL DEFAULT NULL, `locked_at` timestamp(3) NUL...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 10, 2019 at 09:11 PM -- Server version: 5.7.21 -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `leader_card_id` int NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `token` (`token`) ); DROP TABLE IF EXISTS `room`; CREATE TABLE `room` ( `id` bigint NOT NULL A...
-- BORRAR BASE DE DATOS DAW203DBDepartamentos DROP DATABASE DAW203DBProyectoTema5; -- BORRAR USUARIO usuarioDAW203DBDepartamentos DROP USER usuarioDAW203DBProyectoTema5;
USE burger_db; INSERT INTO burgers (burger_name, devoured)VALUES ("Cheeseburger", false), ("Bacon burger", true), ("Impossible Burger", false);
insert into `mihua_area` (`key`, `pid`, `title`, `level`, `status`) VALUES (110000, 0, '北京市', 1, 1), (110100, 110000, '市辖区', 2, 1), (110101, 110100, '东城区', 3, 1), (110102, 110100, '西城区', 3, 1), (110105, 110100, '朝阳区', 3, 1), (110106, 110100, '丰台区', 3, 1), (110107, 110100, '石景山区', 3, 1), (110108, 110100, ...
CREATE INDEX "IDX_FLAT_COLLECTION_CDE" ON "FLAT" ("COLLECTION_CDE")
create table ability_honor ( id bigint unsigned auto_increment, name varchar(10) null, school_number int null, pass tinyint null, teacher_id bigint unsigned null, teacher_name int null, ability_type bigint unsigned null, gmt_create datetime null, gmt_modified datetime null, const...
ALTER TABLE certificate_credential RENAME COLUMN generated TO certificate_generated;
CREATE TABLE STATION (ID INTEGER PRIMARY KEY, CITY TEXT, STATE TEXT, LAT_N REAL, LONG_W REAL ); INSERT INTO STATION VALUES (13,' Phoenix', 'AZ', 33, 112); INSERT INTO STATION VALUES (44, 'Denver', 'CO', 40, 105); INSERT INTO STATION VALUES (66, 'Caribou', 'ME', 47, 68); CREATE TABLE STATS (ID INTEGER REFERENCES STA...
select gbs.GENE_ID, g.NAME, count(gbs.NCBI_SEQ_ID) from GENE_BLO_SEQS gbs join genes g on g.ID = gbs.GENE_ID group by gbs.GENE_ID, g.NAME select tg.PROK_GROUP_ID, pg.NAME, count(*) as cnt from GENE_BLO_SEQS gbs join NCBI_SEQS ns on ns.ID = gbs.NCBI_SEQ_ID join TAXON_GROUPS tg on ...
DROP TABLE `crew`; CREATE TABLE `test2` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(300) NOT NULL, PRIMARY KEY (`id`) );
REM ############################################################### REM # Author: Habib Rangoonwala REM # Created: 16-Mar-2007 REM # Updated: 05-FEB-2010 REM ############################################################### SELECT (SELECT instance_name FROM v$instance)||CHR(9)|| e.profile_option_name||CHR(9)|| DECODE(a....
-- 设置界定符 DELIMITER $$ DROP PROCEDURE IF EXISTS `proJsonDemo`; -- JSON操作 CREATE DEFINER=`root`@`localhost` PROCEDURE `proJsonDemo`(IN userID int,IN userInfo varchar(200)) proJson:BEGIN if !json_valid(userInfo) then select "JSON不合法" as error; LEAVE proJson; end if; set @json=json_extract(...
DROP TABLE IF EXISTS County CASCADE; DROP TABLE IF EXISTS CountyConfirmed CASCADE; DROP TABLE IF EXISTS CountyDeaths CASCADE; DROP TABLE IF EXISTS CountyData CASCADE; CREATE TABLE County ( stateName VARCHAR(127), countyName VARCHAR(127), lat NUMERIC(7,3), long NUMERIC(7,3), PRIMARY KEY(stateName, countyName) );...
INSERT INTO `food_types` (`id`, `food_type_name`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES (null, 'Other', 1, 1, NULL, '2017-09-13 18:30:00', NULL);
CREATE TABLE version ( id VARCHAR(100) PRIMARY KEY ); ALTER TABLE application ADD COLUMN version_id VARCHAR(100) REFERENCES version(id);
-- migrations/1607123758-transfer_hotspot.sql -- :up ALTER TYPE transaction_type ADD VALUE 'transfer_hotspot_v1';
-- insert roles for admins and clients INsERT INTO role(role_name, description) VALUES ('admin', 'role for admins'), ('client', 'role for clients');
-- Name: GetListOfUnprocessedStructureSetsInActivity -- Schema: posda_files -- Columns: ['file_id', 'path'] -- Args: ['activity_id'] -- Tags: ['NotInteractive', 'used_in_processing_structure_set_linkages'] -- Description: Get the file_storage root for newly created files -- select file_id, root_path || '/' || rel_...
-- -- insert with DEFAULT in the target_list -- create table inserttest (col1 int4, col2 int4 NOT NULL, col3 text default 'testing'); insert into inserttest (col1, col2, col3) values (DEFAULT, DEFAULT, DEFAULT); insert into inserttest (col2, col3) values (3, DEFAULT); insert into inserttest (col1, col2, col3) values (D...
/* Navicat MySQL Data Transfer Source Server : 10.20.13.7 Source Server Version : 50717 Source Host : 10.20.13.7:3306 Source Database : studio Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-05-01 22:45:04 */ SET FOREIGN_KEY_CHECKS=0; -- ...
-- @testpoint:openGauss保留关键字 cross 作为列名带引号并且更新时使用该列,建表成功,cross的值更新为100 drop table if exists test_tbl; create table test_tbl( 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 ...
{%- macro column_selection(source_ctes, column_count, partial=False) -%} {#/* The dimensional merge entrypoint where final select columns are defined. Note: this is intended to be used as a callback for a `call` block with a SELECT partial. Args: source_ctes: a list of CTE names either m...
CREATE OR REPLACE TYPE strlist IS TABLE OF VARCHAR2(32767); / CREATE OR REPLACE procedure remove_duplicates ( table_name VARCHAR2, ignore_cols IN strlist DEFAULT strlist('') ) --RETURN NUMBER IS resource_busy EXCEPTION; PRAGMA exception_init ( resource_busy, -00054 ); v_cur...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-04-2017 a las 06:27:57 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.5.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
INSERT INTO specification VALUES ( 1, 1, 'Computing' ); INSERT INTO specification VALUES ( 2, 1, 'Networking' ); INSERT INTO specification VALUES ( 3, 1, 'Multimedia' ); INSERT INTO specification VALUES ( 4, 2, 'International Business' ); INSERT INTO specification VALUES ( 5, 4, 'Computer Science' ); -- IN...
CREATE SCHEMA [alert]
DROP PROCEDURE IF EXISTS `proc_get_regional_sustxfail_gender`; DELIMITER // CREATE PROCEDURE `proc_get_regional_sustxfail_gender` (IN C_id INT(11), IN filter_year INT(11), IN from_month INT(11), IN to_year INT(11), IN to_month INT(11)) BEGIN SET @QUERY = "SELECT `gn`.`name`, ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2019 at 01:26 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- @testpoint:opengauss关键字maxsize(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists maxsize; create data source maxsize; drop data source maxsize; --关键字带双引号-成功 drop data source if exists "maxsize"; create data source "maxsize"; drop data source "maxsize"; --关键字带单引号-合理报错 drop data source if exists 'maxsize'; cre...
SELECT con.contest_id, con.hacker_id, con.name, SUM(sg.total_submissions), SUM(sg.total_accepted_submissions), SUM(vg.total_views), SUM(vg.total_unique_views) FROM Contests AS con JOIN Colleges AS col ON con.contest_id = col.contest_id JOIN Challenges AS cha ON cha.college_id = col.college_id LEFT JOIN (SELECT ss.cha...
DROP TABLE IF EXISTS attendance_groups;
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.32) # Database: olhus # Generation Time: 2016-10-22 10:46:27 +0000 # *************************************************...
SET client_min_messages TO 'warning'; INSERT INTO label (id, gid, name) VALUES (2, '945c079d-374e-4436-9448-da92dedef3cf', 'Label Name'); INSERT INTO area (id, gid, name, type) VALUES (221, '8a754a16-0027-3a29-b6d7-2b40ea0481ed', 'United Kingdom', 1); INSERT INTO country_area (area) VALUES (221); INSERT INTO is...
select cast('12345.6789' as decimal(9,4)) / cast('0.000000000000000000000000001' as decimal(28,28)) from data limit 1;
NCVOG1069-consensus NODE_738_length_8833_cov_5.433417 28.15 405 202 89 92 423 4305 5468 6.3e-16 87.9 NCVOG0321-consensus NODE_311_length_27477_cov_4.866825 31.80 327 198 25 190 503 4544 3603 6.7e-33 146.1 NCVOG0321-consensus NODE_345_length_24030_cov_5.478604 33.62 232 141 13 274 503 22963 23622 1.3e-20 105.0 NCVOG0669...
ALTER TABLE `qb_msg` DROP INDEX `touid` ,ADD INDEX `touid` ( `touid` , `ifread` ); ALTER TABLE `qb_hook_plugin` ADD `version` VARCHAR( 60 ) NOT NULL COMMENT '版本信息',ADD `version_id` MEDIUMINT( 7 ) NOT NULL COMMENT '云端对应的ID';
-- Database export via SQLPro (https://www.sqlprostudio.com/allapps.html) -- Exported by carter at 15-04-2021 15:47. -- WARNING: This file may contain descructive statements such as DROPs. -- Please ensure that you are running the script at the proper location. -- BEGIN TABLE briefs DROP TABLE IF EXISTS briefs; CREAT...
-- create database planner; create table if not exists test_plan ( id bigint not null constraint test_plan_pkey primary key, description varchar(255), index integer not null, nsd oid, package_id varchar(255), service_uuid varchar(255), ...
/* src/pl/plpython/plpythonu--unpackaged--1.0.sql */ ALTER EXTENSION plpythonu ADD PROCEDURAL LANGUAGE plpythonu; -- ALTER ADD LANGUAGE doesn't pick up the support functions, so we have to. ALTER EXTENSION plpythonu ADD FUNCTION plpython_call_handler(); ALTER EXTENSION plpythonu ADD FUNCTION plpython_inline_handler(in...
-- 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'Dropping [edfi].[SectionClassPeriod_DF_Cre...
select pl.Play_ID, us.User_ID, us.User_Name, pl.Play_FirstName, pl.Play_LastName, tp.Type_Name, tp.Type_StartGebuehr, tpl.IsInNuLiga from typeperplayer tpl inner join player pl on tpl.typl_play_id = pl.Play_ID inner join type tp on tpl.typl_type_id = tp.Type_ID inner join user us on pl.Play_User_ID = us.User_ID where ...
-- name: CreateProfile :one INSERT INTO profiles (user_id, first_name, last_name, dob, address_line1, address_line2, city, state, country, postal_code, primary_phone, secondary_phone, primary_email, secondary_email, created_at, updated_at) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16...
CREATE TABLE IF NOT EXISTS t_warehouse ( id INT(11) NOT NULL AUTO_INCREMENT, productId INT(12) DEFAULT NULL, quantity DECIMAL(12,2) DEFAULT NULL, created DATETIME DEFAULT NULL, createdBy VARCHAR(50) DEFAULT NULL, updated DATETIME DEFAULT NULL, updatedBy VARCHAR(50) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB...
/** * Escreva a sua solução aqui * Code your solution here * Escriba su solución aquí */ SELECT name FROM customers WHERE state = 'RS' ;
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] 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 ob...
CREATE TABLE hardware ( id integer primary key autoincrement, provider text not null, name text not null); INSERT INTO hardware(provider, name) VALUES ('Amazon', 'c5'); INSERT INTO hardware(provider, name) VALUES ('Azure', 'H16mr');
DO $users$ BEGIN IF NOT EXISTS (SELECT * FROM pg_catalog.pg_user WHERE usename = 'timetracker') THEN CREATE ROLE timetracker; ALTER ROLE timetracker WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN PASSWORD 'md5b7527c0bc09856308b5108ccf6889848'; CREATE ROLE timezilla; END IF; END $...
DECLARE p_application gzrerrl.gzrerrl_application%TYPE := 'Test Upload App'; p_process gzrerrl.gzrerrl_process%TYPE := 'INSERT_TEST_TABLE'; p_action gzrerrl.gzrerrl_action%TYPE := 'INSERT'; p_error gzrerrl.gzrerrl_error%TYPE; p_message gzrerrl.gzrerrl_message%TYPE; BEGIN INSERT INTO EBACHLE.TEST_TABLE VALUES (2);...
-- https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-connect-msi CREATE USER [<jgraph-app-name>] FROM EXTERNAL PROVIDER; ALTER ROLE db_datareader ADD MEMBER [<jgraph-app-name>]; ALTER ROLE db_datawriter ADD MEMBER [<jgraph-app-name>]; -- Enable this role if you want the app to create a sql sc...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 11, 2018 at 09:24 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE SCHEMA meta; CREATE TABLE meta.series ( id SERIAL, name VARCHAR(100), catalog_prefix CHAR(7) UNIQUE NOT NULL, summary TEXT, thumbnail VARCHAR(255), imdbid CHAR(10) ) ENGINE INNODB; CREATE UNIQUE INDEX by_series_name ON meta.series(name); CREATE UNIQUE INDEX by_catalog_prefix ON meta.series(catalog...
-- name: do-create-patch<! INSERT INTO patch (short_id, patch_data) VALUES (:short_id, :patch_data); -- name: do-save-patch! UPDATE patch SET patch_data = :patch_data WHERE short_id = :short_id; -- name: do-update-visited-at! UPDATE patch SET last_visited_at = NOW() WHERE short_id = :short_id; -- name: do-get-pat...
INSERT INTO o2oeshop.o2oeshop_featured (title, type, image, url, description, listorder, status, create_time, update_time) VALUES ('滑天下之大稽', 0, '/upload\\20170923\\678d32801603a3aaf895a70a74e101cb.jpg', 'http://www.jesbrian.cn/index', '滑天下之大稽', 0, 1, 1506164763, 1506169971); INSERT INTO o2oeshop.o2oeshop_featured (titl...