sql
stringlengths
6
1.05M
-- @testpoint:opengauss关键字column_name(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists column_name_test cascade; --关键字不带引号-合理报错 create table column_name_test(id int,name column_name); --关键字带双引号-合理报错 create table column_name_test(id int,name "column_name"); --关键字带单引号-合理报错 create table column_name_test(id int,name 'c...
<gh_stars>0 -- @testpoint: opengauss关键字simple(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists simple; create function simple(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / drop function if exists simple; --关键字带双引号-成功 drop function if exists "simple"; create function "simpl...
<reponame>kristianmikhael667/Ecommerce<filename>loverrd300nx.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 18 Des 2019 pada 08.41 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.2.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STAR...
-- Deploy database-message-store:roles/reader to pg BEGIN; CREATE ROLE message_store_reader WITH NOLOGIN NOINHERIT; COMMIT;
<gh_stars>0 CREATE DATABASE OpenSeasBank; USE OpenSeasBank; DROP TABLE IF EXISTS systemAdmin; DROP TABLE IF EXISTS customer; DROP TABLE IF EXISTS checkingAccount; DROP TABLE IF EXISTS savingsAccount; DROP TABLE IF EXISTS cusContact; DROP TABLE IF EXISTS cusAddess; DROP TABLE IF EXISTS cusTransaction; -- systemAdmin ...
<filename>oracle/tablespace size.sql set lines 9999 set pages 9999 SELECT a.tablespace_name, ROUND (a.bytes_alloc / 1024 / 1024) megs_alloc, ROUND (NVL (b.bytes_free, 0) / 1024 / 1024) megs_free, ROUND ( (a.bytes_alloc - NVL (b.bytes_free, 0)) / 1024 / 1024) megs_used, ROUND ( (N...
-- phpMyAdmin SQL Dump -- version 4.4.15.9 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 01, 2018 at 09:05 AM -- Server version: 5.6.37 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
DELETE FROM department where id >4; DELETE FROM role where id >8; DELETE FROM employee where id >8; ALTER TABLE department AUTO_INCREMENT=1; ALTER TABLE role AUTO_INCREMENT=1; ALTER TABLE employee AUTO_INCREMENT=1;
/** * @author: KentProjects <<EMAIL>> * @license: Copyright KentProjects * @link: http://kentprojects.com */ CREATE TABLE IF NOT EXISTS `User_Year_Map` ( `year` INT(4) UNSIGNED NOT NULL, `user_id` INT UNSIGNED NOT NULL, `role_convener` BOOLEAN NOT NULL DEFAULT FALSE COMMENT 'User is convener for this year.', `r...
<gh_stars>1-10 CREATE TABLE country (id NVARCHAR(2) NOT NULL, name NVARCHAR(64) NOT NULL, PRIMARY KEY (id)); INSERT INTO [country] ([id], [name]) VALUES ('AG', 'Aintíge agus Barbúda'); INSERT INTO [country] ([id], [name]) VALUES ('ET', 'An Aetóip'); INSERT INTO [country] ([id], [name]) VALUES ('AF', 'An Afganastáin');...
ALTER TABLE onetime_token DROP CONSTRAINT onetime_token_pkey; ALTER TABLE onetime_token ADD COLUMN id SERIAL PRIMARY KEY;
-- DELETE THE TEMP STORED PROCEDURES IF THEY EXIST IF OBJECT_ID('tempdb..#createPayment') IS NOT NULL BEGIN DROP PROC #createPayment END GO IF OBJECT_ID('tempdb..#createCoursePaymentsForAccount') IS NOT NULL BEGIN DROP PROC #createCoursePaymentsForAccount END GO IF OBJECT_ID('tempdb..#createTransfer') IS NOT ...
CREATE PROCEDURE [Demo].[spPersonGetByArgs] @FirstName AS NVARCHAR(50) NULL = NULL, @LastName AS NVARCHAR(50) NULL = NULL, @GenderIds AS [dbo].[udtUniqueIdentifierList] READONLY, @PagingSkip AS INT = 0, @PagingTake AS INT = 250, @PagingCount AS BIT = NULL AS BEGIN /* * This is automatically generated; ...
GO DELETE pgp FROM uCommerce_PriceGroupPrice pgp INNER JOIN (SELECT pgp1.PriceGroupPriceId,pgp1.ProductId,pgp1.PriceGroupId, ROW_NUMBER() OVER(PARTITION BY pgp1.ProductId,pgp1.PriceGroupId ORDER BY pgp1.ProductId,pgp1.PriceGroupId) AS RowRank FROM uCommerce_PriceGroupPrice pgp1 ...
<filename>src/test/resources/sql/create_table/3711dec8.sql<gh_stars>10-100 -- file:alter_table.sql ln:1382 expect:true CREATE TABLE test_type_diff2_c1 (int_four int4, int_eight int8, int_two int2)
USE gold; GO DROP PROCEDURE IF EXISTS [create_gold_tables]; GO CREATE PROCEDURE [create_gold_tables] @goldns varchar(50) , @format varchar(50), @extds varchar(50) AS BEGIN DECLARE @sqlcmd nvarchar(MAX) EXEC sp_executesql N'IF EXISTS ( SELECT * FROM sys.external_tables WHERE object_id = OBJECT_ID(''ext_aggr...
<reponame>lordexilon/testerp<filename>apps/dolibarr/htdocs/install/mysql/migration/3.0.0-3.1.0.sql -- -- Be carefull to requests order. -- This file must be loaded by calling /install/index.php page -- when current version is 3.0.0 or higher. -- -- To rename a table: ALTER TABLE llx_table RENAME TO llx_table_new...
<reponame>Arkania/ArkCORE /* Dungeon Normal-Heroic for 5 people */ /* Bosses */ -- <NAME> SET @ENTRY := 3887; UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; INSERT INTO `smart_scripts` (`entryorguid`,`source_...
<reponame>davidfernandesdf12/Crud-de-Produtos<filename>Banco_produtos/crud_produto.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03-Set-2018 às 00:52 -- Versão do servidor: 10.1.35-MariaDB -- versão do PHP: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZE...
<filename>mybatis-plus-core/src/test/resources/h2/addr.insert.sql insert into h2address(addr_id,addr_name,test_id) values(1,'Suzhou', 101); insert into h2address(addr_id,addr_name,test_id) values(2,'Beijing', 101); insert into h2address(addr_id,addr_name,test_id) values(3,'Shanghai', 101); insert into h2address(addr_id...
 CREATE PROCEDURE [sp_sel_Period] AS SELECT [PeriodID], [Year], [Month] FROM [dbo].[Period]
INSERT INTO databasir.login (user_id, access_token, refresh_token, access_token_expire_at, refresh_token_expire_at) VALUES (-1000, '<KEY>', '<PASSWORD>', DATE_SUB(NOW(), INTERVAL 2 MINUTE), DATE_ADD(NOW(), INTERVAL 1 HOUR));
CREATE TABLE AssetGroup( GroupID INT NOT NULL, ScannerSourceID VARCHAR(36) NOT NULL, CloudSourceID VARCHAR(36) NULL, PRIMARY KEY (GroupID, ScannerSourceID), CONSTRAINT `fk_vm_agss_s` FOREIGN KEY (`ScannerSourceID`) REFERENCES `Source` (`ID`), CONSTRAINT `fk_vm_agcs_s` FOREIGN ...
<reponame>archzi/druid select * from (select customer_id, product_code, quantity from pivot_test) pivot xml (sum(quantity) as sum_quantity for (product_code) in (select distinct product_code from pivot_test))
-- Simple test to verify accessibility of the OLD and NEW trigger variables create table testtr (a int, b text); create function testtr_trigger() returns trigger language plpgsql as $$begin raise notice 'tg_op = %', tg_op; raise notice 'old(%) = %', old.a, row(old.*); raise notice 'new(%) = %', new.a, row(new.*...
<reponame>fermi-lat/calibUtil # $Header: $ # File for creating history table. A row is added to this table every # time a structural change is made to the calibration metadata table # or a new version of the metadata table is created use calib; create table history (ser_no mediumint not null auto_increment pri...
-- ------------------------------------------------------------- -- TablePlus 3.11.0(352) -- -- https://tableplus.com/ -- -- Database: HeadHunter -- Generation Time: 2021-05-08 16:10:48.9360 -- ------------------------------------------------------------- CREATE PROCEDURE [dbo].[SearchAppliances] @Login sysname ...
--[er]test the 'some' keyword with subseteq operator create class DML_0001 ( int_col integer, var_col varchar(20), set_col set (int, varchar(10)) ); insert into DML_0001 values (1,'test1', {1,'test1'}); insert into DML_0001 values (2,'test1', {1,'test1'}); insert into DML_0001 values (3,'test2', {1,'test2'}); inser...
<filename>openGaussBase/testcase/SQL/INNERFUNC/pattern_match/Opengauss_Function_Innerfunc_Posix_Case0014.sql -- @testpoint: 模式匹配POSIX正则表达式,对元字符$进行匹配 DROP TABLE IF EXISTS type_char; CREATE TABLE type_char (string1 varchar(100)); insert into type_char values ('@1$'); SELECT * from type_char where string1 ~ '@1[$]'; DROP...
<filename>migrations/1615407313244_alter_project_pitches_users_foreign_key/down.sql<gh_stars>0 -- Drop columns added to project pitches table ALTER TABLE project_pitches DROP COLUMN user_id; ALTER TABLE project_pitches DROP COLUMN reviewer_id;
<filename>test_crud.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2018 at 02:38 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...
<filename>DigitalDecoupling/CustomerService/CustomerDatabase/StoredProcedures/SimpleSaveNewCustomer.sql<gh_stars>0 CREATE PROCEDURE [dbo].[spSimpleSaveNewCustomer] ( @Id INT OUTPUT, @Name VARCHAR(500) NOT NULL, @Address1 VARCHAR(500), @Address2 VARCHAR(500), @Address3 VARCHAR(500), @TownCity VARCHAR(200), @Cou...
prompt .. Creating package PLU_STACK @@package/plu_stack.pks
SELECT doctor, professor, singer, actor FROM (SELECT * FROM (SELECT name, occupation, (ROW_NUMBER() OVER (PARTITION BY occupation ORDER BY name)) AS row_num FROM occupations) PIVOT (MIN(name) for occupation IN ('Doctor' as doctor, 'Professor' as professor,...
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: localhost Database: daotong -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 24, 2019 at 03:26 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
CREATE TABLE IF NOT EXISTS guilds(guild_id BIGINT PRIMARY KEY); INSERT INTO guilds SELECT guild_id FROM perms ON CONFLICT DO NOTHING; ALTER TABLE perms ADD CONSTRAINT fk_guilds FOREIGN KEY (guild_id) REFERENCES guilds (guild_id) ON DELETE CASCADE;
<filename>landmarks-api/src/test/resources/data.sql DELETE FROM city; DELETE FROM country; INSERT INTO country(id, name) VALUES ('11111111-1111-1111-1111-111111111111', 'Country'); INSERT INTO city(id, name, country_id) VALUES ('11111111-1111-1111-1111-111111111111', 'City', '11111111-1111-1111-1111-111111111111');
<reponame>aliostad/deep-learning-lang-detection use wigi; drop view if exists view_user_cellphones; CREATE VIEW view_user_cellphones AS SELECT user_id,mobile_id,cellphone from user_mobile where status = '1'; drop view if exists view_credit_cards; CREATE VIEW view_credit_cards AS SELECT user_credit_card_id as id,user_...
CREATE TABLE manifest ( "manifest_url" varchar(64), "manifest_id" varchar(64), "tx_id" varchar(64), "path" text, PRIMARY KEY("manifest_id", "tx_id") );
{{ config(schema="_airbyte_test_normalization", tags=["nested-intermediate"]) }} -- SQL model to build a hash column based on the values of this record select {{ dbt_utils.surrogate_key([ '_airbyte_unnest_alias_hashid', 'ab_id', 'owner', ]) }} as _airbyte_children_hashid, tmp.* from ...
<filename>load_scripts/SQL/create_and_load_ts_2013.sql DROP TABLE IF EXISTS hmda_public.ts_2013; CREATE TABLE ts_2013 ( activity_year VARCHAR, agency_code VARCHAR, respondent_id VARCHAR, respondent_name VARCHAR, respondent_address VARCHAR, respondent_city VARCHAR, respondent_state VARCHAR, respondent_zip VARCHA...
/* Monitor if the SQL -> GQL type map changes */ select pt.typname sql_type, graphql.sql_type_to_graphql_type(pt.typname) as graphql_type from pg_type pt where substring(pt.typname, 1, 1) <> '_' and pt.typname not like '%[]' and pt.typname not like 'pg_%' and pt.typname not like 'view_%' ...
<reponame>zlab/jfinal-admin -- 用户 TRUNCATE sys_oper; INSERT INTO sys_oper (operid, username, password, name, gender) VALUES (1, 'admin', '2<PASSWORD>', '超级管理员', '1'); -- 部门 TRUNCATE sys_dept; INSERT INTO sys_dept (deptid, name) VALUES (11, '湖南分公司'); INSERT INTO sys_dept (deptid, name, parentid) VALUES (111, '长...
<reponame>schmidtuzar/bee-p CREATE TABLE IF NOT EXISTS transactions ( signature_or_message BYTEA NOT NULL, address BYTEA NOT NULL, value INTEGER NOT NULL, obsolete_tag BYTEA, timestamp INTEGER NOT NULL, current_index SMALLINT NOT NULL, last_index SMALLINT NOT NULL, bundle BYTEA NOT NULL, trunk BYTEA N...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : smart_info Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-05-30 15:21:51 */ SET FOREIGN_KEY_CHECKS=0; -...
USE sentigram; insert into `label_`(`ID_`,`DESC_`) values (0,'UNLABELED'); insert into `label_`(`ID_`,`DESC_`) values (1,'PRAHA_POS'); insert into `label_`(`ID_`,`DESC_`) values (2,'PRAHA_NEG'); insert into `label_`(`ID_`,`DESC_`) values (3,'JKWJK_POS'); insert into `label_`(`ID_`,`DESC_`) values (4,'JKWJK_NEG')...
<reponame>ArvinSiChuan/SupperSaller /* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 12.0 */ /* Created On : 30-05-2017 16:23:08 */ /* DBMS : Oracle */ /* Grammer Checked and Tested */ /* ------------------------------------------------...
# Get variant level metadata for variants within BRCA1. SELECT contig, position, GROUP_CONCAT(id) WITHIN RECORD AS ids, reference_bases AS ref, GROUP_CONCAT(alternate_bases) WITHIN RECORD AS alt, quality, GROUP_CONCAT(filter) WITHIN RECORD AS filters, vt, FROM [google.com:biggene:1000genomes.variants1...
ALTER TABLE HOMEINSURANCE.CLAIM ADD CONSTRAINT PK_CLAIM PRIMARY KEY (CLAIM_ID); ALTER TABLE HOMEINSURANCE.CUSTOMER ADD CONSTRAINT PK_CUSTOMER PRIMARY KEY (CUSTOMER_ID); ALTER TABLE HOMEINSURANCE.POLICY ADD CONSTRAINT PK_POLICY PRIMARY KEY (POLICY_ID); ALTER TABLE HOMEINSURANCE.CLAIM ADD CONSTRAINT FK_CLAIM_POLICY FORE...
CREATE TABLE scm_social_event( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n3.core.Container$About * param: org.kyojo.schemaorg.m3n3.core.Clazz$Thing */ about VARCHAR(100) NULL, /** * type: org.kyojo.schemaorg.m3n3.core.Container$Actor * param: org.kyojo.schemaorg.m3n3.cor...
-- 3D City Database - The Open Source CityGML Database -- http://www.3dcitydb.org/ -- -- Copyright 2013 - 2018 -- Chair of Geoinformatics -- Technical University of Munich, Germany -- https://www.gis.bgu.tum.de/ -- -- The 3D City Database is jointly developed with the following -- cooperation partners: -- -- virtual...
<gh_stars>10-100 SELECT tab0.v0 AS v0 , tab1.v2 AS v2 FROM (SELECT sub AS v0 FROM og__tag$$1$$ WHERE obj = 'wsdbm:Topic24' ) tab0 JOIN (SELECT sub AS v0 , obj AS v2 FROM sorg__caption$$2$$ ) tab1 ON(tab0.v0=tab1.v0) ++++++Tables Statistic sorg__caption$$2$$ 1 SS sorg__caption/og__tag VP <sorg_...
<reponame>williamhatch/zombodb DROP FUNCTION zdb.visibility_clause; DROP FUNCTION zdb.vac_by_xmin; DROP FUNCTION zdb.vac_by_xmax; DROP FUNCTION zdb.vac_aborted_xmax; DROP FUNCTION dsl.should; DROP FUNCTION dsl.must; DROP FUNCTION dsl.must_not; DROP FUNCTION dsl.filter; -- -- query dsl changes to should/must/must_n...
<gh_stars>100-1000 SELECT * FROM TEMPLATE_MASTERS WHERE DELETE_FLAG = 0 ORDER BY INSERT_DATETIME %s LIMIT ? OFFSET ?;
<gh_stars>0 ----- -- do not init TOAST table if table does not consists non-index keys varlens ----- CREATE EXTENSION orioledb; CREATE TABLE o_test1 ( id integer NOT NULL, t text NOT NULL, PRIMARY KEY(id) ) USING orioledb; CREATE INDEX o_test1_reg on o_test1 (t); SELECT orioledb_tbl_structure('o_te...
-- complain if script is sourced in psql, rather than via CREATE EXTENSION --\echo Use "CREATE EXTENSION powa" to load this file. \quit SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = pu...
<reponame>yixingseo/thinkcms -- -- MySQL database dump -- Created by DbManage class, Power By yanue. -- http://yanue.net -- -- 主机: localhost -- 生成日期: 2016 年 03 月 04 日 16:28 -- MySQL版本: 5.5.20-log -- PHP 版本: 5.3.10 -- -- 数据库: `thinkcms` -- -- ------------------------------------------------------- -- -- 表的结构t_arti...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [Profile.Data].[Person.Affiliation]( [PersonAffiliationID] [int] IDENTITY(1,1) NOT NULL, [PersonID] [int] NULL, [SortOrder] [int] NULL, [IsActive] [bit] NULL, [IsPrimary] [bit] NULL, [InstitutionID] [int] NULL, [DepartmentID] [int] NULL, [DivisionID]...
-- Must have PostGIS extensions enabled -- At the prompt: -- some_db=# \i d:/path_to/sql/pg_tsp_nodes_table.sql -- Note to self: "Vertex = Node" (they are synonyms). DROP TABLE spt_tsp_nodes; -- Should id be generate by the database?, e.g. -- id SERIAL PRIMARY KEY, -- or: -- id INTEGER PRIMARY KEY, C...
CREATE TABLE "system"."Configuration"("key" text NOT NULL, "value" jsonb NOT NULL, PRIMARY KEY ("key") , FOREIGN KEY ("key") REFERENCES "system"."ConfigurationKey"("name") ON UPDATE cascade ON DELETE restrict);
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 09-09-2020 a las 20:21:30 -- Versión del servidor: 5.7.31 -- Versión de PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
<reponame>Quebe/Mercury-Care-Management CREATE INDEX [EntityContact_EntityId] ON EntityContact (EntityId, EntityContactId)
INSERT INTO public.value_domain (value_domain) VALUES ('Count');
<reponame>anqh/anqh CREATE TABLE "public"."users" ( "id" SERIAL, "username" VARCHAR(30) NOT NULL, "hash" BIGINT DEFAULT 0 NOT NULL, "name" VARCHAR(50), "email" VARCHAR(150) NOT NULL, "homepage" VARCHAR(250), "picture" VARCHAR(250), "description" TEXT, "city_name" VARCHAR(30), "login_count" INTEGER D...
/*------------------------------------------------ DBMS Maintenance --------------------------------------------------*/ /******** This script presents a wide variety of scripts I use for database analyze, maintenance, and clean-up *******/ -- important not only for storage monitoring, but also performance op...
<filename>databaseBackup.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 09, 2015 at 06:15 AM -- Server version: 5.5.40-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
<reponame>jonasrla/desafio_youse<filename>parte_2/Database/clients_declaration.sql<gh_stars>0 CREATE TABLE clients ( id TEXT PRIMARY KEY, name TEXT NOT NULL, phone TEXT NOT NULL, email TEXT NOT NULL );
<filename>627. Swap Salary.sql<gh_stars>0 627. Swap Salary 交换性别 表salary | id | name | sex | salary | |----|------|-----|--------| | 1 | A | m | 2500 | | 2 | B | f | 1500 | | 3 | C | m | 5500 | | 4 | D | f | 500 | 返回 | id | name | sex | salary | |----|------|-----|--------| | 1 | A ...
<filename>ecliptic/scripts/remote_job_types.sql INSERT IGNORE INTO remote_jobs_remotejobtype VALUES (1, "Remote Query", NOW());
select eqp.query_plan , o.name , DBName = DB_NAME(eps.database_id) , eps.TYPE_desc , cached_time , last_execution_time, execution_count , total_worker_time, last_worker_time, min_worker_time, max_worker_time , total_physical_reads, last_physical_reads, min_physical_reads, max_physical_reads , total_logical_writes, l...
CREATE TABLE three ( id int NOT NULL AUTO_INCREMENT, name varchar(256) not null, date datetime not null, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- This file should undo anything in `up.sql` -- DROP TABLE health; -- DROP TABLE stock_transactions; -- DROP TABLE stocks; -- DROP TABLE events; DROP TABLE bq_user;
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[SQLCop].[test Procedures with @@Identity]') AND type in (N'P', N'PC')) DROP PROCEDURE [SQLCop].[test Procedures with @@Identity] GO CREATE PROCEDURE [SQLCop].[test Procedures with @@Identity] AS BEGIN -- Written by <NAME> -- February 25, 201...
<gh_stars>100-1000 CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('aaa', 'aaa'); INSERT INTO "list" ("id", "value") VALUES ('aarp', 'aarp'); INSERT INTO "list" ("id", "value") VALUES ('abarth', 'abarth'); INSERT INTO "list" ("id", "v...
<filename>src/test/resources/sql/select/e8ac7a5d.sql -- file:tinterval.sql ln:53 expect:true SELECT '' AS one, t.* FROM TINTERVAL_TBL t WHERE t.f1 #<= '@ 1 month'
<reponame>pntone/apex-flowsforapex prompt --application/shared_components/logic/application_computations/app_name_title begin -- Manifest -- APPLICATION COMPUTATION: APP_NAME_TITLE -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_...
DROP DATABASE IF EXISTS tech_talk; CREATE DATABASE tech_talk;
CREATE OR REPLACE PROCEDURE update_coord_model_run_keyval (old_model_run_id_in IN number, new_model_run_id_in IN number, old_key_name_in IN varchar2, new_key_name_in IN varchar2, key_value_in IN varchar2, date_time_loaded_in IN date) ...
<reponame>yueya/pms<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: pms -- ------------------------------------------------------ -- Server version 5.7.21-1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@...
<reponame>bobsmith947/recsforme<gh_stars>1-10 /* * Copies data from a full MusicBrainz database dump. * Downloads are available from: http://ftp.musicbrainz.org/pub/musicbrainz/data/ */ \cd \! curl "ftp.musicbrainz.org/pub/musicbrainz/data/fullexport/LATEST" | curl -O "ftp.musicbrainz.org/pub/musicbrainz/data/fulle...
<reponame>itachizhu/cms CREATE DATABASE IF NOT EXISTS `cms` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `cms`; -- MySQL dump 10.13 Distrib 5.6.24, for osx10.8 (x86_64) -- -- Host: 127.0.0.1 Database: cms -- ------------------------------------------------------ -- Server version 5.7.17 /*!40101 SET @OLD_CHARACTER...
CREATE EXTENSION IF NOT EXISTS dblink; DO $do$ DECLARE _db TEXT := 'hmily'; _user TEXT := 'userName'; _password TEXT := 'password'; _tablelock INTEGER :=0; BEGIN IF EXISTS (SELECT 1 FROM pg_database WHERE datname = _db) THEN RAISE NOTICE 'Database already exists'; ELSE PERFORM public.dblink_connect('...
<reponame>artemy63/ldap-addon create table LDAP_LDAP_CONFIG ( ID uniqueidentifier, UPDATE_TS datetime2, UPDATED_BY varchar(50), VERSION integer not null, -- SCHEMA_BASE varchar(255), DEFAULT_ACCESS_GROUP_NAME varchar(255), LDAP_USER_OBJECT_CLASSES varchar(2000), OBJECT_CLASS_PROPERTY...
/* Copyright 2011 tSQLt 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 applicable law or agreed to in ...
<reponame>vikrum/pgFormatter<gh_stars>0 -- -- Test for ALTER some_object {RENAME TO, OWNER TO, SET SCHEMA} -- -- Clean up in case a prior regression run failed SET client_min_messages TO 'warning'; DROP ROLE IF EXISTS regress_alter_generic_user1; DROP ROLE IF EXISTS regress_alter_generic_user2; DROP ROLE IF EXISTS ...
<reponame>helderalex1/InsideBudgetWeb<filename>base de dados/projetodb_teste.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Tempo de geração: 21-Fev-2022 às 06:52 -- Versão do servidor: 5.7.36 -- versão do PHP: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON...
<gh_stars>0 -- @testpoint:opengauss关键字select(保留),作为函数名 --关键字不带引号-合理报错 create function select(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 create function "select"(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop functio...
DROP PROCEDURE IF EXISTS PRD_ENVIAR_NOTIFICACION; DELIMITER $$ CREATE PROCEDURE PRD_ENVIAR_NOTIFICACION(IN automovilId INT, IN cantidad INT) BEGIN DECLARE cursor_List_isdone BOOLEAN DEFAULT FALSE; DECLARE cur_usuarioId, cur_propietarioId, cur_empresaId INT; DECLARE cur_canalHabilitado BOOLEAN; DECLARE cur_...
<gh_stars>0 CREATE TABLE Member ( userid VARCHAR(20), passwd VARCHAR(20) NOT NULL, name VARCHAR(20) NOT NULL, age TINYINT NOT NULL, gender CHAR(1) NOT NULL, city VARCHAR(30) NOT NULL, CONSTRAINT member_userid_pk PRIMARY KEY(userid), CONSTRAINT member_age_ck CHECK(age BETWEEN 20 AND 65), CONSTRAINT member_gend...
-- MySQL dump 10.13 Distrib 8.0.23, for Linux (x86_64) -- -- Host: localhost Database: db_telsen_prod -- ------------------------------------------------------ -- Server version 8.0.23-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
<gh_stars>0 declare @fromDate date = '2014-04-01', @toDate date = '2015-03-31'; with tblDateList as ( select @fromDate value union all select dateadd(day, 1, value) from tblDateList where value < @toDate ), tblYearMonthList as ( select year(l.value) year, month(l.value) month from tblDateList l gr...
<reponame>fsevilla/todo-laravel-api<gh_stars>0 DROP TABLE IF EXISTS role_permissions;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 15, 2021 at 06:38 PM -- Server version: 5.6.17 -- 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_CHA...
 CREATE procedure GetPersonIncidentHistory( @person_id int, @activity_type int, @page int = 2, @pagesize int = 10 ) as begin select * from vwIncident where id in ( SELECT i.id FROM incident i (nolock) join person_incident pic (nolock) on pic.incident_id = i.id join enum_incident_type eit (nolock) on...
<filename>katalog.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 18, 2021 at 05:27 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
DO $$ BEGIN BEGIN ALTER TABLE cd_profiles ALTER COLUMN projects TYPE character varying; EXCEPTION WHEN OTHERS THEN RAISE NOTICE 'The transaction is in an uncommittable state. ' 'Transaction was rolled back'; RAISE NOTICE 'Details: % ...
-- Update 6 -- -- Add speaks_for table -- -- ---------------------------------------------------------------------- -- speaks for -- -- Record a speaks for credential for users. -- ---------------------------------------------------------------------- DROP TABLE IF EXISTS speaks_for; CREATE TABLE speaks_for ( id S...
/** * The p21 stored procedure for inv bin deletion cleans up * inv bin records with 0 quantity linked. From the P21 * desktop, you can do this on a more granular basis. * * This script will loop through all active locations with lot/bin * integration enabled and execute the p21 stored proc for each location * ...
CREATE SCHEMA iam; CREATE TABLE public.user ( id VARCHAR NOT NULL UNIQUE PRIMARY KEY ); CREATE UNIQUE INDEX user_id ON public.user(id); CREATE TABLE public.entry ( id SERIAL NOT NULL UNIQUE PRIMARY KEY, date TIMESTAMP, weight REAL, note TEXT, year SMALLINT, week SMALLINT, user_id ...