sql
stringlengths
6
1.05M
<reponame>AaronMorelli/ChiRho /* Copyright 2016 <NAME> 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/licenses/LICENSE-2.0 Unless required by applicabl...
/* Navicat MySQL Data Transfer Source Server : guo Source Server Version : 50140 Source Host : localhost:3306 Source Database : search_web Target Server Type : MYSQL Target Server Version : 50140 File Encoding : 65001 Date: 2016-05-21 00:43:45 */ SET FOREIGN_KEY_CHE...
<gh_stars>1-10 DROP TABLE IF EXISTS invoice_transactions;
<gh_stars>10-100 with base as ( select * from {{ ref('stg_dbt__artifacts') }} ), manifests as ( select * from base where artifact_type = 'manifest.json' ), flatten as ( select command_invocation_id, dbt_cloud_run_id, generated_at as artifact_generated_at, n...
--drop table if exists test.PaymentEvents ; CREATE TABLE test.PaymentEvents ( entityId ASCII, version INT, eventType ASCII, opId ASCII, opDate TIMESTAMP, status ASCII, auditinfo ASCII, eventData VARCHAR, PRIMARY KEY (entityId, version) ); CREATE MATERIALIZED VIEW test.PaymentEvents_byO...
<filename>macros/edr/data_monitoring/anomaly_detection/get_anomaly_scores_query.sql<gh_stars>10-100 {% macro get_anomaly_scores_query(test_metrics_table_relation, full_monitored_table_name, sensitivity, backfill_days, monitors, column_name = none, columns_only=false) %} {%- set global_min_bucket_end = elementary.g...
ALTER TABLE `lh_users` ADD `disabled` tinyint(0) NOT NULL, COMMENT='';
CREATE TABLE readings ( katakana text ); INSERT INTO readings VALUES ('ポストグレスキューエル'); INSERT INTO readings VALUES ('グルンガ'); INSERT INTO readings VALUES ('ピージールンガ'); INSERT INTO readings VALUES ('ピージーロジカル'); SET enable_seqscan = on; SET enable_indexscan = off; SET enable_bitmapscan = off; SELECT katakana FROM rea...
<reponame>victorserem/meWriter -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 08, 2018 at 03:46 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 22 Nov 2021 pada 15.34 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
<filename>Homeworks/09. Databases/07. Intro to SQL/Solutions/16. FindAllEmployeesAlongWithTheirAddress. .sql --Write a SQL query to find all employees and their address. Use equijoins (conditions in the WHERE clause). USE TelerikAcademy SELECT e.FirstName + ' ' + e.LastName AS [Full Name], a.AddressText FROM dbo.Empl...
<filename>configuration/scripts/post_run/configureAgeRanges.sql delete from reporting_age_group; insert into reporting_age_group ( id, name, report_group_name, min_years, min_days, max_years, max_days, sort_order ) values (1, "All", "All Ages", 0,0,200,0,0); insert into reporting_age_group ( id, name, report_group_name...
/* Navicat Premium Data Transfer Source Server : 111 Source Server Type : MySQL Source Server Version : 100406 Source Host : localhost:3306 Source Schema : hzt Target Server Type : MySQL Target Server Version : 100406 File Encoding : 65001 Date: 09/04/2021 06:43:48 *...
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
-- 3.4.1 创建订单表 drop table if exists dwd_order_info; create external table dwd_order_info ( `id` string comment '', `total_amount` decimal(10, 2) comment '', `order_status` string comment ' 1 2 3 4 5', `user_id` string comment 'id', `payment_way` string comment '', `out_trade_no` ...
-- As operações precisam de ';' no final, ao utilizar o H2 insert into TB001_PRODUCT ( NAME, PRICE ) values ('Miojo', 3.50), ('Feijão', 7.80), ('Macarrão', 4.20), ('Alface', 1.10);
<reponame>zdergatchev/Database-Basic SELECT DISTINCT c.customer_id, CONCAT(c.first_name, ' ' , c.last_name) AS `full_name`, t.town_name FROM customers AS c INNER JOIN towns AS t ON c.home_town_id = t.town_id INNER JOIN tickets AS ti ON ti.customer_id = c.customer_id INNER JOIN flights AS f ON ti.flight_id = f.fligh...
-- MENUS DELETE FROM `sys_menu_items` WHERE `set_name`='bx_files_view_actions' AND `name` IN ('social-sharing', 'social-sharing-facebook', 'social-sharing-twitter', 'social-sharing-pinterest'); INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `ad...
<reponame>dustin2906/dustin -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2018 at 12:31 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "...
use db_name go if not object_id('procedure_default') is null drop procedure dbo.procedure_default go create procedure dbo.procedure_default ( --//parametros @begin int --,@param0 int --,@param1 varchar(xvalue) --,@param2 bigint --,@param3 bit ) as begin declare @codret int; --//codigo re...
USE [Sample] GO /****** Object: Table [dbo].[Students] Script Date: 6/20/2019 10:00:40 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Students]( [StudentId] [uniqueidentifier] NOT NULL, [Name] [varchar](100) NULL, [RollNumber] [varchar](100) NULL, [ProfessorId] [uniqueidentif...
<reponame>BugsUK/FindApprenticeship<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Tables/CandidateDisability.sql CREATE TABLE [dbo].[CandidateDisability] ( [CandidateDisabilityId] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL, [Codename] NVARCHAR (3) NOT NULL, [ShortName...
DROP TABLE IF EXISTS `XXX_rss_feed_config`; ##b_dump## CREATE TABLE `XXX_rss_feed_config` ( `rss_feed_id` int(11) NOT NULL , `rss_feedtitle` varchar(255) NULL , `rss_feeddesc` varchar(255) NULL , `rss_feedcount` varchar(255) NULL , `rss_feedlang` varchar(255) NULL , `rss_feedprefix` text NULL ) ENGINE=My...
<gh_stars>10-100 CREATE TABLE subdivision_IE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-CW', E'Carlow', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-CN', E'Cavan', E'county'...
<gh_stars>10-100 -- file:hash_index.sql ln:158 expect:true CREATE TABLE hash_split_heap (keycol INT)
<filename>backend/de.metas.dunning/src/main/sql/postgresql/system/50-de.metas.dunning/5501980_sys_gh4615-app_turn_dunning_doc_table_into_Document.sql -- 2018-09-19T15:16:57.523 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Reference_ID,DefaultValue,FieldLength,Version,IsKey...
<filename>sx_adminsql.sql<gh_stars>0 CREATE DATABASE IF NOT EXISTS `sx_database`; -- Extra, you have to remove it if you use another database USE `sx_database`; -- Extra, you have to change it if you use another database CREATE TABLE sx_adminclients ( ID int NOT NULL AUTO_INCREMENT, fristtime boolean DEFAU...
<reponame>tlayson/MySC -- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will n...
<reponame>uk-gov-mirror/defra.prsd-weee EXEC sp_RENAME '[AATF].[Return].[Status]', 'ReturnStatus', 'COLUMN'
create database if not exists `gen_db`; use `gen_db`; drop table if exists `order_records`; drop table if exists `direction`; drop table if exists `status`; create table `direction`( id int unsigned NOT NULL auto_increment, title char(16) NOT NULL, primary key(id) )DEFAULT CHARSET=utf8; create table `...
<reponame>AnandEmbold/biscuit_5 set termout off create or replace package tst_package_to_be_dropped as --%suite(A suite description, though with comma, is assigned by suite_manager) --%test(A test description, though with comma, is assigned by suite_manager) procedure test1; --%test --%displayname(A test de...
CREATE TABLE SPEAKERS ( COMPANY VARCHAR , FIRSTNAME VARCHAR , ID NUMERIC NOT NULL, LASTNAME VARCHAR , BIO VARCHAR , CONSTRAINT SPEAKERS_PK PRIMARY KEY(ID) ); CREATE TABLE SESSIONS ( ABSTRACT1 VARCHAR , CONTENT_LEVEL NUMERIC , DAY VARCHAR , END_TIME VARCHA...
<filename>apps/dolibarr/htdocs/install/mysql/data/llx_accounting_account_be.sql -- Copyright (C) 2001-2004 <NAME> <<EMAIL>> -- Copyright (C) 2003 <NAME> <<EMAIL>> -- Copyright (C) 2004-2009 <NAME> <<EMAIL>> -- Copyright (C) 2004 <NAME> <<EMAIL>> -- Copyright (C) 2004 <NAME> <<EMAIL>> -- Copyrig...
-- FUNCTION: public.create_geodesic_line(geometry, geometry) -- DROP FUNCTION public.create_geodesic_line(geometry, geometry); CREATE OR REPLACE FUNCTION public.appgis_create_geodesic_line( g1 geometry, g2 geometry) RETURNS geometry LANGUAGE 'plpgsql' COST 100 VOLATILE AS $BODY$ DECLARE r geometr...
SELECT * FROM Orders WHERE CreatedDate BETWEEN '2017-01-01' AND '2017-06-30'
-- Revert <%- projectName %>:trigger_functions/set_user_id from pg begin; drop function <%- schemaName %>_private.set_user_id; commit;
-- This test (SELECT) without cache can take tens minutes DROP TABLE IF EXISTS dict_string; DROP TABLE IF EXISTS dict_ui64; DROP TABLE IF EXISTS video_views; CREATE TABLE video_views ( entityIri String, courseId UInt64, learnerId UInt64, actorId UInt64, duration UInt16, fullWatched UInt8, f...
<reponame>sqljared/qdstoolbox ---------------------------------------------------------------------------------- -- Table Name: [dbo].[ServerTopQueriesStore] -- -- Desc: This table is used by the procedure [dbo].[ServerTopQueries] to store the details returned by the execution of [dbo].[ServerTopQueries] -- -- [Report...
SELECT 'Into String'; SELECT reinterpretAs(49, 'String'); SELECT 'Into FixedString'; SELECT reinterpretAs(49, 'FixedString(1)'); SELECT reinterpretAs(49, 'FixedString(2)'); SELECT reinterpretAs(49, 'FixedString(3)'); SELECT reinterpretAs(49, 'FixedString(4)'); SELECT reinterpretAsFixedString(49); SELECT 'Into Numeric R...
(select aa1.analysis_name as attribute_name, ar1.stratum_1 as attribute_value from @results_database_schema.ACHILLES_analysis aa1 inner join @results_database_schema.achilles_results ar1 on aa1.analysis_id = ar1.analysis_id where aa1.analysis_id = 0 union select aa1.analysis_name as attribute_name, cast(ar1.count_v...
<filename>dbal/stub/b/2.sql<gh_stars>10-100 -- b_2 -- +migrate Up SELECT 1; -- +migrate Down SELECT 1;
-- 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 SCHEMA IF NOT EXISTS _timescaledb_catalog; CREATE SCHEMA IF NOT EXISTS _timescaledb_internal; CREATE SCHEMA IF NOT EXISTS _timesca...
<gh_stars>0 ALTER TABLE db_version CHANGE COLUMN required_12378_14_mangos_gossip_menu_option required_12388_01_mangos_creature_template bit; ALTER TABLE creature_template DROP COLUMN spell1, DROP COLUMN spell2, DROP COLUMN spell3, DROP COLUMN spell4;
CREATE PROC [dspUtil].[CopyObjects] @SourceDB TSTRING, @DestinationDB TSTRING, @SchemaName TSTRING AS BEGIN --Delete schema objects; left schema and its security info EXEC dspUtil.DropSchema @SchemaName = @SchemaName, @DbName = @DestinationDB, @IsDropObjectOnly = 1; -- Copy objects to destination DECLARE @Object...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Mar-2020 às 07:52 -- Versão do servidor: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>queries/stackoverflow/q16/982aab93c74c010055087fa5e3bbbddc66ba3c1e.sql SELECT COUNT(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id...
<reponame>marcus1337/InviwoTemporalTreeMapsMOD ############################# output for 'h5watch --dim TEST.h5/DSET_ONE' ############################# Opened "TEST.h5" with sec2 driver. Monitoring dataset /DSET_ONE... dimension 0: 10->13 (increases) dimension 0: 13->12 (decreases) dimension 0: 12->1 (decreases) dimens...
USE [QL_DH_GH_ONLINE] GO EXEC DT_CAPNHATSL 'SP001', 50
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 30, 2017 at 02:51 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2022 at 03:35 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: edu -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4010...
<reponame>ACenterAInc/acentera # Add project roles indexing # --- !Ups CREATE INDEX `IDX_ROLE` ON PROJECT_USER_ROLES ( `USER_ID`,`PROJECT_TAGS_ID`,`PROJECT_ID`); create index idx_unique_active_user on `project_user` (`project_id`,`user_id`,`disable_date`); # --- !Downs ALTER TABLE PROJECT_USER_ROLES DROP INDEX ID...
CREATE TABLE T_LEADER ( ID BIGINT NOT NULL AUTO_INCREMENT, CODE VARCHAR(255), NAME VARCHAR(255), R_COUNTRY VARCHAR(255), EVENT VARCHAR(255), BEGIN INTEGER, END INTEGER, `RANK` VARCHAR(255), MANOEUVRE INTEGER, FIRE INTEGER, SHOCK INTEGER, SIEGE INTEGER, TYPE VARCHAR(255), ROTW BIT, AS...
<filename>src/sql/gazetteer_web_functions.sql<gh_stars>1-10 -- ################################################################################ -- -- New Zealand Geographic Board gazetteer application, -- Crown copyright (c) 2020, Land Information New Zealand on behalf of -- the New Zealand Government. -- -- This f...
CREATE TABLE settings( id BIGSERIAL PRIMARY KEY, key VARCHAR(255) NOT NULL, value BYTEA NOT NULL, salt BYTEA, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP NOT NULL ); CREATE UNIQUE INDEX idx_settings_key ON settings(key);
SET NOCOUNT ON /****** Object: StoredProcedure [dbo].[polymon_ins_MonitorEventCounter] Script Date: 05/08/2008 18:32:53 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO CREATE PROCEDURE [dbo].[polymon_ins_MonitorEventCounter] @EventID int, @MonitorID int, @CounterName varchar(255), @CounterVa...
DROP DATABASE IF EXISTS users_db; CREATE DATABASE users_db;
<reponame>todorkrastev/softuni-software-engineering<filename>DBMS/M01_MySQL/L01_DataDefinitionAndDataTypes/Exercises/Solutions/P09_SetDefaultValueOfField.sql ALTER TABLE `users` MODIFY COLUMN `last_login_time` DATETIME DEFAULT NOW();
<gh_stars>10-100 CREATE TABLE subdivision_BE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_BE" ("id", "name", "level") VALUES ('BE-VAN', 'אנטוורפן', 'province'); INSERT INTO "subdivision_BE" ("id", "name", "level") VALUES ('BE-BRU', 'בריסל', 'capital...
/* Navicat MySQL Data Transfer Source Server : localbase Source Server Version : 50726 Source Host : localhost:3306 Source Database : sgdb Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2020-02-15 09:12:52 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
<gh_stars>100-1000 create table ACT_GE_PROPERTY ( NAME_ nvarchar(64), VALUE_ nvarchar(300), REV_ int, primary key (NAME_) ); insert into ACT_GE_PROPERTY values ('schema.version', 'fox', 1); insert into ACT_GE_PROPERTY values ('schema.history', 'create(fox)', 1); insert into ACT_GE_PROPERTY values ('...
<gh_stars>0 -- ============================================================================ -- Copyright (C) 2015 <NAME> <<EMAIL>> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either ...
<reponame>teacurran/distroy.com<gh_stars>0 -- // create store -- Migration SQL that makes the change goes here. CREATE TABLE `tbCart` ( `inId` int(11) NOT NULL, `inSessionId` int(11) NOT NULL, `vcSessionCode` varchar(10) NOT NULL, `inUserId` int(11) DEFAULT NULL, `inProductVariationId` int(11) NOT NULL, `i...
<filename>src/main/resources/treasure_hunt-1.0.1.sql -- 2018/07/31 by linying start -- ALTER TABLE `activity_statistics` ADD `is_top` tinyint(4) NOT NULL DEFAULT '0' COMMENT '置顶0否1是' AFTER `status`; UPDATE `activity_type` SET `name` = '同城宝藏' WHERE `id` = 1; UPDATE `activity_type` SET `name` = '签到藏点' WHERE `id` = 2; UPD...
-- Table Name: AnsibleControllers -- Table Description: ansible control node that will execute ansible script -- columes : -- - id (Numberic) -- - Name (String) -- - hostIp (String) -- - userId (String) -- - userPw (Password)*/ -- - hostsFile (Blob) -- we don't know how to generate schema PUBLIC (class S...
CREATE TABLE IF NOT EXISTS `%s` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` tinyint(4) NOT NULL, `username` varchar(16) NOT NULL DEFAULT '', `ip` varbinary(16) NOT NULL DEFAULT '0', `reason` varchar(255) NOT NULL DEFAULT '', `admin` varchar(16) NOT NULL DEFAULT 'CONSOLE', `timestamp` timestamp NOT NULL...
<reponame>Geomatys/examind-community<gh_stars>1-10 ALTER TABLE "$SCHEMAom"."procedure_descriptions" ALTER COLUMN "field_name" TYPE character varying(63); UPDATE "$SCHEMAom"."version" SET "number"='1.0.9';
<filename>src/test/tinc/tincrepo/dml/functional/sql_partition/mpp21090_drop_firstcol_dml_boolean_ao.sql -- @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_ori...
<reponame>git-the-cpan/DBIx-SchemaChecksum -- preSHA1sum: e63a31c18566148984a317006dad897b75d8bdbe -- postSHA1sum: b1387d808800a5969f0aa9bcae2d89a0d0b4620b alter table yat add column foo text;
CREATE TABLE if not exists gems__staff2groups ( gs2g_id_user bigint unsigned not null references gems__staff (gsf_id_user), gs2g_id_group bigint unsigned not null references gems__groups (ggp_id_group), gs2g_active boolean not null default 1, gs2g_changed timestamp not null def...
<filename>software/cabio-database/scripts/sql_loader/unigene/clone/cloneTables_postprocess.sql /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ VAR V_MAXROW NUMBER; COLUMN V_MAXROW NEW_VALUE V_MAXROW; SELECT MAX(ID) + 1...
GRANT USAGE ON SCHEMA delegation TO platform_authorization; GRANT SELECT,INSERT,UPDATE,REFERENCES,DELETE,TRUNCATE,TRIGGER ON ALL TABLES IN SCHEMA delegation TO platform_authorization; GRANT ALL ON ALL SEQUENCES IN SCHEMA delegation TO platform_authorization;
<filename>openGaussBase/testcase/KEYWORDS/cache/Opengauss_Function_Keyword_Cache_Case0032.sql -- @testpoint:opengauss关键字cache(非保留),作为用户名 --关键字cache作为用户名不带引号,创建成功 drop user if exists cache; CREATE USER cache PASSWORD '<PASSWORD>'; --清理环境 drop user cache; --关键字cache作为用户名加双引号,创建成功 drop user if exists "cache"; CREATE US...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Värd: localhost:3306 -- Tid vid skapande: 08 feb 2020 kl 15:41 -- Serverversion: 5.7.26 -- PHP-version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Databas: `weekloggr` -- -- -----------------------------...
-- Implementation of the weighted degree centrality on hypergraph EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON) SELECT t.term_text, SUM(weights.weight) as total FROM entity_hyperedges eh, terms t, (SELECT edge_id, 1.0/COUNT(edge_id) as weight FROM entity_hyperedges GROUP BY edge_id) as weight...
<filename>plugins/testimonial_module/uninstall/query.sql SET foreign_key_checks = 0; DROP TABLE IF EXISTS `testimonials`; SET foreign_key_checks = 1;
<filename>src/main/resources/db/migration/V5__report_user_details.sql INSERT INTO configs (key, value, mm_user_name) VALUES ('command.report.user.prefix', '!report user', 'default'); INSERT INTO configs (key, value, mm_user_name) VALUES ('command.report.user.allow.user', '', 'default'); INSERT INTO configs (key, value,...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 04, 2021 at 10:52 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<filename>gretljobs/agi_mopublic_pub/agi_mopublic_pub_mopublic_gemeindegrenze_proj.sql SELECT gemeinde.aname AS gemeindename, CAST(gemeinde.t_datasetname AS INT) AS bfs_nr, aimport.importdate AS importdatum, nachfuehrung.gueltigereintrag AS nachfuehrung, ST_CurveToLine(grenze.geometrie, 0.002, 1...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 14 Eyl 2021, 23:29:25 -- Sunucu sürümü: 10.4.18-MariaDB -- PHP Sürümü: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
CREATE TABLE VISITACURSO (ID NUMBER,IDCURSO NUMBER,IDPERSONA NUMBER,FECHA DATE); ALTER TABLE VISITACURSO ADD CONSTRAINT pk_VisitaCurso PRIMARY KEY (id) USING INDEX TABLESPACE libertad_Indexes; ALTER TABLE VISITACURSO ADD CONSTRAINT fk_VisitaCurso_Curso FOREIGN KEY (idCurso) REFERENCES Curso(id); ...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 18, 2017 at 07:47 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>chumy/poleCampeonato /* getClasificacionEscuderias */ select @rowid:=@rowid+1 as posicion, id , escuderia, puntos, campeonato_id from ( select escuderias.id, escuderias.nombre escuderia, carrera_participante.campeonato_id, sum( if(carrera_participante.abandono, 0, carrera_participante.posicion ) ) puntos /*,...
declare va_job number; begin dbms_job.submit(job => va_job, what => 'begin pkg_cron.prc_dispara_agendamento; end;', next_date => trunc(sysdate,'mi') + 1/1440, interval => 'trunc(sysdate,''mi'') + 1/1440'); commit; end; /
update eg_module set enabled=false where name='Council Management' and contextroot='council'; ALTER TABLE egcncl_members ALTER COLUMN filestoreid DROP NOT NULL; insert into egcncl_designation(id,name,isactive,createddate,createdby,lastmodifieddate,lastmodifiedby,version,code) values( nextval('seq_egcncl_designa...
<filename>server_restapi/source/database/function/sp_designerTreeItem_write.sql -- clean up DROP PROCEDURE IF EXISTS sp_designerTreeItem_write; -- go CREATE PROCEDURE sp_designerTreeItem_write ( p_designerTreeId BIGINT , p_businessId BIGINT , p_idx SMALLINT UNSIGNED , p_fill ...
<filename>nordb/sql/fap_response_policies.sql<gh_stars>1-10 /* +---------------------+ |FAP RESPONSE POLICIES| +---------------------+ This file contains the sql commands for creating the correct policies for fap_response and fap table. */ /* ADMIN POLICIES -------------- */ --Admin policy. Allow admins to access fa...
WITH source AS ( SELECT * FROM {{ source('sheetload','osat') }} ), renamed AS ( SELECT TRY_TO_TIMESTAMP_NTZ("TIMESTAMP")::DATE AS completed_date, "EMPLOYEE_NAME"::VARCHAR AS employee_name, "DIVISION"::VARCHAR ...
-- fkey2.test -- -- execsql { PRAGMA foreign_keys = off } PRAGMA foreign_keys = off
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SE...
USE employee_tracker; INSERT INTO department (id, name) VALUES (1, 'Engineering'), (2, 'Accounting'), (3, 'Shipping'), (4, 'Leadership'); INSERT INTO role (id, title, salary, department_id) VALUES (1, 'Front End', 5.00, 1), (2, 'Back End', 5.00, 1), (3, 'Accountant', 3.50, 2), ...
explain plan for select * from ( -- group by 2 columns select count(distinct a1), sum(a1), count(b1) from t1_v t1 group by b1, c1 order by b1 ) t limit 0;
CREATE TABLE people( id VARCHAR(255) PRIMARY KEY, nombre VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL );
Create Certificate HRM001 With Subject = 'Employee Social Security Numbers';
load data local infile '~/repos/graph-examples/fraud/data/customers.csv' into table fraud.customers fields terminated by '|' escaped by '' ignore 1 lines; load data local infile '~/repos/graph-examples/fraud/data/customerAddresses.csv' into table fraud.customer_addresses fields terminated by '|' escaped by '' ignore 1...
<filename>posda/posdatools/queries/sql/InsertCollectionCountPerRound.sql -- Name: InsertCollectionCountPerRound -- Schema: posda_backlog -- Columns: [] -- Args: ['collection', 'num_files'] -- Tags: ['NotInteractive', 'Backlog'] -- Description: Insert a row into collection count per round insert into collection_count_p...
CREATE PROCEDURE SP1(OUT MYCOUNT INTEGER) SPECIFIC SP1_72813 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE486;SELECT COUNT(*)INTO MYCOUNT FROM TABLE125;SELECT COUNT(*)INTO MYCOUNT FROM TABLE122;SELECT COUNT(*)INTO MYCOUNT FROM VIE...
/*FIELDS INCLUDED IN SAMPLE: Items table Item ID Item permanent location (filter) Item temporary location (filter) Item status (filter) Date range (filter) Item Transit destination service point name (filter) Item barcode Item material type ID Item call number Item holdings record ID Item volume...
<filename>seata/scripts/seata_product.sql /* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 80013 Source Host : localhost:3306 Source Schema : seata_product Target Server Type : MySQL Target Server Version : 80013 File En...
<reponame>qq280075924/sophia_scaffolding<filename>v1/sophia_scaffolding/db/sophia.sql /* Navicat Premium Data Transfer Source Server : mysql_localhost_root Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : sophia Target Server Typ...