text
stringlengths
1
1.05M
---------------------------------------------------------------------------------------------------- ----------------------- Stored procedures for use in the persistence system ------------------------ ---------------------------------------------------------------------------------------------------- use ArchiveS...
-- Schema -- Create food_db CREATE DATABASE food_db; -- Switch to/use food_db USE food_db; -- Create food_list table with these fields: CREATE TABLE food_list ( -- create id col as primary key, non-null, auto-incrementing, int... id INT NOT NULL AUTO_INCREMENT, -- create food_name col as non-null string.....
DROP DATABASE IF EXISTS sample; CREATE DATABASE sample DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
set serveroutput on size 1000000 set buffer 10000000 set array 1 set head on set feedback on set linesize 10000 set pagesize 50000 set echo off set trimspool on set colsep ";" set long 100000 spool /home/oracle/scripts/index_rebuild.log set buffer 100000 alter index IX01_DETB_UPLOAD_DETAIL_CASA rebuild o...
hist tissue timepoint repl mi pi mj pj pij pi_hat pj_hat I splitplot_by connected group_by colcode H3 Brain 10 months av K18me1 0.03657816 K14ac 0.2957213625 0.0288463 0.0139210247551153 2.83977603298611 3.23062982188155 Brain 10 months av 0.2957213625 H3 Brain 18 months av K18me1 0.02238689 K14ac 0.281128085 0.0138341...
-- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `accounts`; CREATE TABLE `accounts` ( `accountID` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` tinytext NOT NULL, `password` tinytext NOT NULL, ...
drop table if exists server cascade;
insert into school(name,city,state,address) values('UMD','College Park','MD','8204 baltimovre ave'); insert into school(name,city,state,address) values('GWU','DC','DC','123123 street'); insert into school(name,city,state,address) values('Skidmore College','Saratogo Spring','NY','815 N Broadway'); insert into account...
-- update default values for table: module DO LANGUAGE plpgsql $$ BEGIN IF '_template' = CURRENT_SCHEMA THEN UPDATE "module" SET "enabled" = FALSE WHERE "module" = 'Grid\FacebookLogin'; END IF; END $$;
{% macro get_guide_event_columns() %} {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "account_id", "datatype": dbt_utils.type_string()}, {"name": "app_id", "datatype": dbt_utils.type_string()}, {"name": "country", "datatype": dbt_utils.type_string()}, ...
/*************ML Out ***************************/ insert into td_leave_balance select approval_dt,trans_cd,'A',emp_code,trans_dt,recommend_dt, 0,0,0,from_dt,to_dt,amount,0,remarks,0,0,0,0,0 from td_leaves_trans where trans_dt >= '2019-07-03' and approval_status = 1 and leave_type = 'M' //HM out insert into td_lea...
CREATE TABLE dogrole ( id INT4 NOT NULL PRIMARY KEY, code VARCHAR(2) NOT NULL, description VARCHAR(60) NOT NULL, validfrom TIMESTAMP WITH TIME ZONE, validto TIMESTAMP WITH TIME ZONE, updatedby VARCHAR(60) NULL ); -- Table comment COMMENT ON TABLE dogrole IS '{"label": "Dog role", "description": "A descript...
SET NAMES utf8mb4; DROP TABLE IF EXISTS `application_logs`; CREATE TABLE `application_logs` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `pid` INT(11) NULL DEFAULT NULL, `timestamp` datetime NOT NULL, `message` TEXT NULL, `priority` ENUM('emergency','alert','critical','error','warning','notice','info...
insert into privilege(id, name, description, pos) values('calcMenu', 'Главное меню - калькулятор', '', 3); insert into privilege_action(privilege, action) values('calcMenu', 'READ'); insert into privilege(id, name, description, pos) values('TNCAdd', 'ТМЦ - добавить', '', 10000); insert into privilege_action(privilege,...
SELECT * FROM t0 JOIN t1 ON t0.c0 = t1.c0 AND t0.c1 = t1.c1 AND t0.c2 = t1.c2 LEFT JOIN t1 AS t2 ON t0.c0 = t2.c1 RIGHT JOIN t3 ON t0.c0 = t3.c0 FULL JOIN t4 ON t3.c1 = t4.c1 JOIN t5 USING (c0, c1, c2)
--netezza CDM DDL Specification for OMOP Common Data Model 5.3 --HINT DISTRIBUTE ON KEY (person_id) CREATE TABLE @cdmDatabaseSchema.PERSON ( person_id integer NOT NULL, gender_concept_id integer NOT NULL, year_of_birth integer NOT NULL, month_of_birth integer NULL, day_of_birth integer NULL, birth_da...
CREATE TABLE IF NOT EXISTS category ( id int AUTO_INCREMENT PRIMARY KEY, created_time datetime NOT NULL, description varchar(255) NOT NULL, name varchar(255) NOT NULL, CONSTRAINT UK_CATEGORY_NAME UNIQUE (name) ); CREATE TABLE IF NOT EXISTS config ( name v...
-- Deploy seattleflu/id3c-customizations:shipping/views to pg -- requires: seattleflu/schema:shipping/schema -- Hello! All shipping views are defined here. Rework this change with Sqitch -- to change a view definition or add new views. This workflow helps keep -- inter-view dependencies manageable. begin; -- This...
CREATE TABLE books ( id bigint(20) NOT NULL AUTO_INCREMENT, isbn varchar(17) NOT NULL UNIQUE, title varchar(255) NOT NULL, author varchar(20) NOT NULL, price bigint NOT NULL, PRIMARY KEY (id) );
INSERT INTO scripts (iso, name) VALUES ('Ahom', 'Ahom'); INSERT INTO scripts (iso, name) VALUES ('Arab', 'Arabic'); INSERT INTO scripts (iso, name) VALUES ('Armi', 'Imperial_Aramaic'); INSERT INTO scripts (iso, name) VALUES ('Armn', 'Armenian'); INSERT INTO scripts (iso, name) VALUES ('Avst', 'Avestan'); INSERT INTO sc...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 12, 2021 at 12:46 PM -- Server version: 5.7.33-0ubuntu0.16.04.1 -- PHP Version: 5.6.40-12+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*...
-- file:updatable_views.sql ln:97 expect:true DELETE FROM ro_view18
select TO_DATE('15-may-2006 06:00:01','dd-mon-yyyy hh24:mi:ss') from dual; TO_DATE('10-12-06','MM-DD-YY') TO_DATE('jan 2007','MON YYYY') TO_DATE('2007/05/31','YYYY/MM/DD') TO_DATE('12-31-2007 12:15','MM-DD-YYYY HH:MI') TO_DATE('2006,091,00:00:00' , 'YYYY,DDD,HH24:MI:SS') TO_DATE('15-may-2006 06:00:01'...
CREATE TABLE #Codesets ( codeset_id int NOT NULL, concept_id bigint NOT NULL ) ; INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,432870) UNION s...
/* Navicat Premium Data Transfer Source Server : dms Source Server Type : MySQL Source Server Version : 50621 Source Host : 121.42.248.249 Source Database : db_dms Target Server Type : MySQL Target Server Version : 50621 File Encoding : utf-8 Date: 11/10/2017 22:03:10 ...
CREATE TABLE `t_stock_demo`( `id` bigint(64) NOT NULL AUTO_INCREMENT, `product_no` varchar(64) NULL, `shop_code` varchar(255) NULL, `pre_stock` int(3) DEFAULT 0, `ava_stock` int(3) DEFAULT 0, `total_stock` int(3) DEFAULT 0 , `update_time` timestamp(0) NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT C...
-- SENTRY-339 ALTER TABLE SENTRY_DB_PRIVILEGE DROP CONSTRAINT "SENTRY_DB_PRIV_PRIV_NAME_UNIQ" DROP INDEX; ALTER TABLE SENTRY_DB_PRIVILEGE ADD CONSTRAINT "SENTRY_DB_PRIV_PRIV_NAME_UNIQ" UNIQUE ("SERVER_NAME","DB_NAME","TABLE_NAME","URI","ACTION","WITH_GRANT_OPTION"); ALTER TABLE SENTRY_DB_PRIVILEGE DROP COLUMN PRIVILEGE...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `authTokens` ( `id` int(11) NOT NULL, `selector` char(32) DEFAULT NULL, `token` char(64) DEFAULT NULL, `characterID` bigint(16) NOT NULL, `expires` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAU...
3 3 23 31 6 153 234 0 0 3 224 298 0 0 12 2 31 1 1 3 20 5 1 0 5 31 6
#standardSQL # Pages that use device sensors (based on event listeners) # https://stackoverflow.com/questions/65048929/bigquery-extract-keys-from-json-object-convert-json-from-object-to-key-value-a CREATE TEMP FUNCTION jsonToKeyValueArray(input STRING) RETURNS ARRAY<STRUCT<key String, value ARRAY<String>>> LANGUAGE js...
CREATE TABLE dbo.MyTable ( Id INT NOT NULL PRIMARY KEY, Name VARCHAR(200) NOT NULL ); GO CREATE FUNCTION dbo.MyFun(@Name VARCHAR(200)) RETURNS VARCHAR(200) AS BEGIN RETURN TRIM(@Name); END GO MERGE dbo.MyTable AS SOURCE USING ( SELECT Name = '', Id = 1 ) AS TARGET ON SOURCE.Id = TARGET....
USE [perpetuumsa] GO DECLARE @templateID int DECLARE @definitionID int; DECLARE @aggvalueID int; DECLARE @aggfieldID int; DECLARE @presenceID int DECLARE @flockID int; ---------Disables Arganos and Laids that are in place at the moment in NV------------- PRINT N'Alpha 1 reds'; SET @presenceID = (SELECT TOP 1 id fro...
-- remove fk checks ALTER TABLE client_authorization_tokens DROP CONSTRAINT client_authorization_tokens_account_id_gw2_account_id_fkey ; ALTER TABLE gw2_api_subtokens DROP CONSTRAINT gw2_api_subtokens_account_id_gw2_account_id_fkey ; -- migrate ALTER TABLE account_federations ALTER COLUMN issuer TYPE TEXT, ALTER COLU...
-- === logfiles table === -- -- logfiles_i -- Integer used to reference the logfiles entry; note that it is -- also referenced from nhdb configuration (nhdb-def.json)! Don't -- change this, preferably. Also, for /dev/null games, this id -- MUST be the year of the tournament. See function process_streaks() -- in nhdb-st...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-12-2021 a las 07:44:46 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
select * from userGroups
SELECT u.Username, g.Name AS [Game], MAX(CharStats.Name) AS [Character], (SUM(ItemStats.Strength) + MAX(GameTypeStats.Strength) + MAX(CharStats.Strength)) AS [Strength], (SUM(ItemStats.Defence) + MAX(GameTypeStats.Defence) + MAX(CharStats.Defence)) AS [Defence], (SUM(ItemStats.Speed) + MAX(GameTypeStats.Speed) + ...
CREATE TABLE list (id VARCHAR(2) 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 ('sq_XK', 'Albanian (Kosovo)'); INSERT INTO `list` (`id`, `value`) VALUES ('ar_SS', 'Arabic (South Sudan)'); INSERT INTO ...
DROP TABLE vet_specialties IF EXISTS; DROP TABLE vets IF EXISTS; DROP TABLE specialties IF EXISTS; DROP TABLE visits IF EXISTS; DROP TABLE pets IF EXISTS; DROP TABLE types IF EXISTS; DROP TABLE owners IF EXISTS; CREATE TABLE vets ( id INTEGER IDENTITY PRIMARY KEY, first_name VARCHAR(30), last_name VARC...
CREATE TABLE `tblPermission` ( `PermissionID` int(11) NOT NULL AUTO_INCREMENT, `role` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `action` longtext COLLATE utf8_unicode_ci, `resource` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, ...
use moon; drop table action_assignments; drop table object_assignments; drop table subject_assignments; drop table subject_scopes; drop table action_scopes; drop table object_scopes; drop table action_categories; drop table subject_categories; drop table object_categories; drop table rules; drop table sub_meta_rules; d...
CREATE TABLE users( username VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, fullname VARCHAR(50) NOT NULL, phone VARCHAR(8) NOT NULL, address VARCHAR(100) NOT NULL, PRIMARY KEY (username) ); CREATE TABLE user_roles( user_role_id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WIT...
INSERT INTO `measurements` (`started`,`uuid`,`feature`) VALUES (now(),?,?);
SELECT FirstName, LastName FROM Employees WHERE LEN(LastName) = 5
CREATE TABLE scm_continent( 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 VARCHAR(100) ...
GRANT ALL ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '1234'; GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED BY '1234'; GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY '1234';
-- -- 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 ...
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 09-Maio-2019 às 22:25 -- Versão do servidor: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- Revert seattleflu/id3c-customizations:roles/view-owner/create from pg begin; drop role "view-owner"; commit;
CREATE TABLE IF NOT EXISTS ingest_history ( ingest_id text not null, -- unique id for each ingest discovered_files int, -- the number of files discovered for ingest processed_files int, -- the number of files discovered for ingest coverage_start float not null, coverage_end float not null,...
# --------------------------------------------------- # Last Update: verified by Valminder Jan 10, 2006. # --------------------------------------------------- # # Drug Names (http://www.cfcl.com/cfcl/rick/personal/drugnames.html) # # ------------------------------------------------------------------------- # # To call ...
create database `ktorm-example`; create table t_department( id int not null primary key auto_increment, name varchar(128) not null, location varchar(128) not null ); create table t_employee( id int not null primary key auto_increment, name varchar(128) not null, job varchar(128) not null, manager_id in...
select fn_db_add_column('vds_static', 'ssh_username', 'VARCHAR(255)'); select fn_db_add_column('vds_static', 'ssh_port', 'INTEGER');
-- NOTE! Terms of use are listed in here; -- ; INSERT INTO oskari_layergroup (id, locale) values (999, '{ fi:{name:"ELF"},sv:{name:"ELF"},en:{name:"ELF"}}'); -- THIS IS AN EXAMPLE FOR ADDING WMTS LAYER ; INSERT INTO oskari_maplayer(type, name, groupId, metadataId, url, ...
CREATE FUNCTION search_etablissements(search text) RETURNS SETOF etablissements AS $$ SELECT * FROM etablissements WHERE search <% (nofinesset || ' ' || rslongue || ' ' || complrs || ' ' || compldistrib || ' ' || voie || ' ' || ligneacheminement) ORDER BY similarity(search, (nofinesset || ' ...
DROP TABLE tags_fusen_ids; DROP TABLE tags;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : radar Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2019-09-11 18:24:16 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
ALTER TABLE {$NAMESPACE}_phame.phame_post ADD views INTEGER NOT NULL;
-- Table "Priority" data INSERT INTO "Priority" ("Id", "Name", "Description", "DisplayOrder", "IsActive") VALUES ('dbf0e04f-04fb-e811-aa64-1e872cb6cb93', 'High', 'High Priority', 1, True), ('dcf0e04f-04fb-e811-aa64-1e872cb6cb93', 'Normal', 'Normal Priority', 2, True), ('784c7657-04fb-e811-aa64-1e872cb6...
prepare stm from 'prepare s from ''select ? from db_root;''; execute s using ''a''; drop prepare s;'; execute stm; drop prepare stm; prepare stm from 'prepare s from ''select ? from db_root;''; execute s using ''?''; drop prepare s;'; execute stm using 'a'; drop prepare stm; prepare stm from 'prepare s from ''?''; ex...
/* Users are separate from their auth usernames, so we can support several per user */ CREATE TABLE user ( id INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL, /* This can be for a nicer username that does not relate to the auth provider */ username VARCHAR(128) NOT NULL, access_level ENUM ('reporter', 'admin') DEFAULT ...
-- file:timestamptz.sql ln:143 expect:true INSERT INTO TIMESTAMPTZ_TBL VALUES ('Mar 01 17:32:01 1997')
declare @ntemporada varchar(255) declare @inicio date declare @fin date declare @tipo varchar(255) declare @totalTemporada float declare micursor cursor for select * from temporada print 'Informe de gastos por temporada' open micursor fetch micursor into @ntemporada,@inicio,@fin,@tipo while @@FETCH...
-- Use this to list out CLR stored procedure information -- This is a modified version of code found at -- https://stackoverflow.com/questions/3155542/sql-server-how-to-list-all-clr-functions-procedures-objects-for-assembly USE msdb; SELECT SCHEMA_NAME(so.[schema_id]) AS [schema_name], af.file_id, ...
CREATE TABLE photos( id int unsigned not null auto_increment, album_id int unsigned default '0', slug varchar(255), slug_source varchar(255), title varchar(255), content text, pic varchar(50), pic_w int, pic_h int, pic_t tinyint, pic_tn_w int, pic_tn_h int, visible tinyint unsigned default '1', top tinyin...
-- @author prabhd -- @created 2014-04-01 12:00:00 -- @modified 2012-04-01 12:00:00 -- @tags dml MPP-21090 ORCA -- @optimizer_mode on -- @description Tests for MPP-21090 \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore DROP TABLE IF EXISTS mpp21090_pttab_dropfirstcol_addpt_index_interval...
alter table renta add column if not exists process_comment varchar(255) null; do $$ begin if exists (select * from system_settings where key = 'block') then update system_settings set value = 'false' where key = 'block'; else insert into system_settings (key, value) values('block', 'false'); end if; end $$
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 25, 2021 at 06:26 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
##查询新知识点关联的题目集合 #macro($findQuestionIds(knowpointCodes,vendorId)) SELECT distinct a.question_id FROM question_knowledge a inner join question b on a.question_id = b.id and b.vendor_id=:vendorId WHERE a.knowledge_code in (:knowpointCodes) #end ##根据题目获取新知识点集合 #macro($findKnowledgePointByQuestion(questionId)) SE...
CREATE TABLE country (id VARCHAR(2) NOT NULL, name VARCHAR(64) NOT NULL, PRIMARY KEY("id")); INSERT INTO "country" ("id", "name") VALUES ('AX', 'Åland Islands'); INSERT INTO "country" ("id", "name") VALUES ('AQ', 'Antarctica'); INSERT INTO "country" ("id", "name") VALUES ('AC', 'Ascension Island'); INSERT INTO "countr...
CREATE TABLE auctions ( id SERIAL PRIMARY KEY, lastConsensusTimestamp TEXT DEFAULT '0.0', winningBid INT8 DEFAULT 0, winningAccount TEXT DEFAULT '', winningTimestamp TEXT DEFAULT '', winningTxId TEXT DEFAULT '', winningTxHash ...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2021 at 08:16 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE UNIQUE INDEX "TRANS_AGENT_ROLE_ALLOWED_PK" ON "TRANS_AGENT_ROLE_ALLOWED" ("TRANS_AGENT_ROLE_ALLOWED_ID")
merge into `dataline-integration-testing`.test_normalization.`dedup_exchange_rate` as DBT_INTERNAL_DEST using ( select * from `dataline-integration-testing`.test_normalization.`dedup_exchange_rate__dbt_tmp` ) as DBT_INTERNAL_SOURCE on DBT...
 declare @contentType NVARCHAR(MAX) = 'article'; declare @contentTypeId int = (SELECT TOP 1 nodeId FROM [cmsContentType] where alias = @contentType) declare @dateFrom datetime = '2020-10-23 00:33:17.947' /* List all current versions of documents by content type - newer than @dateFrom */ select umbdocument...
set @user_id = 120; delete from moviesdb.user where user.id = (select @user_id); delete from moviesdb.request where user_id = (select @user_id); delete from moviesdb.comment where user_id = (select @user_id); delete from moviesdb.timeline where user_id = (select @user_id); delete from moviesdb.likes where user_id = (s...
CREATE TABLE item ( id IDENTITY PRIMARY KEY, order_id INT8, product_id INT8, quantity INT, total DECIMAL(20, 2), FOREIGN KEY(order_id) REFERENCES purchase_order(id), FOREIGN KEY(product_id) REFERENCES product(id) );
-------------------------------------------------------------------------- -- @TITLE: Negative tests for UAO -- -------------------------------------------------------------------------- Drop table if exists sto_ao_neg_index; CREATE TABLE sto_ao_neg_index (id int, date date, amt decimal(10,2)) with (appendonly=true...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 21-02-2017 a las 16:18:53 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
CREATE TABLE users ( id INT unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, lastname VARCHAR(100) NOT NULL, email VARCHAR(150) NOT NULL UNIQUE, password VARCHAR(255) NOT NULL, token VARCHAR(255), created_at TIMESTAMP, updated_at TIMESTAMP )ENGINE=InnoDB DEFAULT...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 26, 2019 at 04:25 AM -- 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...
BEGIN; ALTER TABLE changeset_jobs DROP CONSTRAINT changeset_jobs_campaign_job_id_fkey, ADD CONSTRAINT changeset_jobs_campaign_job_id_fkey FOREIGN KEY (campaign_job_id) REFERENCES campaign_jobs(id) DEFERRABLE INITIALLY IMMEDIATE; ALTER TABLE changeset_jobs DROP CONSTRAINT changeset_jobs_changeset_id_fkey...
-- @testpoint:opengauss关键字parser非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists parser; create sequence parser start 100 cache 50; drop sequence parser; --关键字带双引号-成功 drop sequence if exists "parser"; create sequence "parser" start 100 cache 50; drop sequence "parser"; --关键字带单引号-合理报错 drop sequence if exists 'parser...
update markerfeedback mf set stage = 'single-marker' where stage = 'single-markersingle-marker';
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema fi...
-- file:rangefuncs.sql ln:146 expect:true CREATE FUNCTION getfoo6(int) RETURNS RECORD AS 'SELECT * FROM foo WHERE fooid = $1
-- @description query01 for Parquet with Greenplum table as a subset of the parquet file SELECT * FROM pxf_parquet_subset ORDER BY s1; -- s1, d1, vc1 are projected columns SELECT d1, vc1 FROM pxf_parquet_subset ORDER BY s1;
# Table using MariaDB's column compression SET foreign_key_checks=0; SET sql_log_bin=0; use testing CREATE TABLE colcompr( id int unsigned NOT NULL, body text compressed=zlib character set utf8mb4, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE SCHEMA `jje_erp`; USE `jje_erp`; CREATE TABLE IF NOT EXISTS pais ( id_pais INT AUTO_INCREMENT NOT NULL PRIMARY KEY, nome_pais VARCHAR(60) NOT NULL, sigla VARCHAR(10) NOT NULL ) ENGINE=InnoDB; INSERT INTO pais (nome_pais, sigla) VALUES ('Brasil', 'BR'); CREATE TABLE IF NOT EXISTS estado ( id_estado IN...
-- @testpoint:openGauss关键字Enforced(非保留),作为列名不带双引号,Enforced大小写混合,建表成功 drop table if exists Enforced_test; create table Enforced_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_...
-- -- UPDATABLE VIEWS -- -- avoid bit-exact output here because operations may not be bit-exact. SET extra_float_digits = 0; -- check that non-updatable views and columns are rejected with useful error -- messages CREATE TABLE base_tbl (a int PRIMARY KEY, b text DEFAULT 'Unspecified'); INSERT INTO base_tbl SELECT i,...
CREATE TABLE test ( `a0` UInt64 DEFAULT a1 + 1, `a1` UInt64 DEFAULT a0 + 1, `a2` UInt64 DEFAULT a3 + a4, `a3` UInt64 DEFAULT a2 + 1, `a4` UInt64 ALIAS a3 + 1 ) ENGINE = Log; -- { serverError 174 } CREATE TABLE pythagoras ( `a` Float64 DEFAULT sqrt((c * c) - (b * b)), `b` Float64 DEFAULT sqr...
CREATE PROCEDURE [dbo].[BugNet_ProjectMilestones_CreateNewMilestone] @ProjectId INT, @MilestoneName NVARCHAR(50), @MilestoneImageUrl NVARCHAR(255), @MilestoneDueDate DATETIME, @MilestoneReleaseDate DATETIME, @MilestoneNotes NVARCHAR(MAX), @MilestoneCompleted bit AS IF NOT EXISTS(SELECT MilestoneId FROM BugNet...
CREATE TABLE language_family( id SERIAL PRIMARY KEY NOT NULL, version integer DEFAULT 1, name VARCHAR(20) UNIQUE ); CREATE TABLE language( id SERIAL PRIMARY KEY NOT NULL, version integer DEFAULT 1, name VARCHAR(20), family_id integer REFERENCES language_family(id) ); INSERT INTO lan...
INSERT INTO `waffle_flag` (name, everyone, percent, superusers, staff, authenticated, rollout, note) VALUES ('allow-refund',0,NULL,0,0,0,0, 'Allow refund of paypal payments');
-- { -- "name" : "workaround_85f8v_create", -- "action_type" : "create_workaround" -- } DELIMITER ;; CREATE PROCEDURE `workaround_85f8v` ( given_table VARCHAR(64), given_index VARCHAR(64), index_stmt TEXT, index_action VARCHAR(10) ) BEGIN DECLARE IndexIsThere INTEGER; SELECT COU...
version https://git-lfs.github.com/spec/v1 oid sha256:f4c9193f7f741cfbb15189e3931751eb78ffb2ff75f4156a4baf565685dfc281 size 3316
-- name: create-table-builds CREATE TABLE IF NOT EXISTS builds ( build_id INTEGER PRIMARY KEY AUTO_INCREMENT ,build_repo_id INTEGER ,build_config_id INTEGER ,build_trigger VARCHAR(250) ,build_number INTEGER ,build_parent INTEGER ,build_status VARCHAR(50) ,build_error ...
CREATE VIEW [dbo].[STUDENT_IN_CLASS] ("STUDENT", "CLASS") AS select s.SNAME as Student, e.CNAME as Class from student s join enrolled e on s.snum=e.SNUM; GO
set client_min_messages to ERROR; \i load_topology.sql SELECT 'N'||node_id, (topology.GetNodeEdges('city_data', node_id)).* FROM city_data.node ORDER BY node_id, sequence; SELECT topology.DropTopology('city_data');