sql
stringlengths
6
1.05M
<gh_stars>10-100 CREATE TABLE "TestTable" ( "TheCustomIdentityOfTestTable" BIGINT NOT NULL IDENTITY(1, 1), CONSTRAINT "TestTable_pk" PRIMARY KEY ("TheCustomIdentityOfTestTable") );
-- The prices.layer1_usd_btc table is no longer present but some queries depend on it. CREATE OR REPLACE VIEW prices.layer1_usd_btc AS SELECT * FROM prices.layer1_usd WHERE symbol = 'BTC';
-- Table: lychee_log -- DROP TABLE lychee_log; CREATE TABLE IF NOT EXISTS _PREFIX_lychee_log ( id serial NOT NULL, "time" integer NOT NULL, type character varying(11) NOT NULL, function character varying(100) NOT NULL, line integer NOT NULL, text text, CONSTRAINT pk__PREFIX_lychee_log_id PRIMARY KEY (id...
select f.numero, f.nome from funcionario f where not exists (select * from departamento d where f.numero = d.numeroFuncGer);
<filename>inst/sql/sql_server/analyses/824.sql -- 824 -- For each observation concept, find and rank the top 10 co-occurring observation concepts. -- -- HINT DISTRIBUTE_ON_KEY(stratum_1) -- Find all observation_concept_id pairs, the number of people with these pairs, -- and the number of times these pairs occur. with...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50718 Source Host : localhost:3306 Source Database : javaee Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2018-04-22 21:33:45 */ SET FOREIGN_KEY_CHECKS=0; ...
--start query 81 using template query81.tpl --@private, @projection(customer, customer_address) WITH customer_total_return AS ( SELECT cr_returning_customer_sk AS ctr_customer_sk ,ca_state AS ctr_state ,SUM(cr_return_amt_inc_tax) AS ctr_total_return FR...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
CREATE TABLE IF NOT EXISTS `frontend_user` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `uuid` VARCHAR(45) NOT NULL COMMENT '用户的id', `phone` BIGINT NOT NULL COMMENT '用户的电话和用户名', `password` VARCHAR(45) NOT NULL COMMENT '密码', `email` VARCHAR(45) NOT NULL COMMENT '用户的邮箱', `status` TINYINT NOT NULL DEFAULT 1 C...
select T1.a as inproc, T2.c as author, T3.c as booktitle, T4.c as title, T5.c as proc, T6.c as ee, T7.c as page, T8.c as url, T9.c as yr from R3 T1, R3 T2, R3 T3, R3 T4, R3 T5, R3 T6, R3 T7, R3 T8, R3 T9 WHERE T1.a=T2.a and...
<gh_stars>0 CREATE TABLE [dbo].[Tenant] ( [TenID] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR(255) NULL, [LandingName] NVARCHAR(255) NULL, [AdminName] NVARCHAR(255) NULL, [isActiveFlag] BIT CONSTRAINT [DF_Tenant...
-- <NAME> on 17 March 2015. -- Customer carriage = Particle Number, Andrew PM2.5, Microaeth 521-1204 -- Drivers area = Diana PM2.5. Broken microaeth INSERT INTO tube_diary VALUES('Piccadilly', 'Acton Town', '2015-03-17 09:24:00', '2015-03-17 09:35:00', 'platform', 'floor', 1); -- Started on the westbound leg of dat...
<reponame>khannasarthak/StealthSoftware<gh_stars>0 -- Adminer 4.1.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `stealth`; CREATE DATABASE `stealth` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `stealth`; DROP TABLE...
<reponame>ehbwoong/awesome-cheatsheets INSERT INTO `oauth_client_details`( `client_id`, `resource_ids`, `client_secret`, `scope`, `authorized_grant_types`, `web_server_redirect_uri`, `authorities`, `access_token_validity`, `refresh_token_validity`, `additional_information`, `...
<reponame>Eunoia1729/MySQL-Solutions-HackerRank<gh_stars>0 SELECT SUM(POPULATION) FROM CITY WHERE DISTRICT = 'CALIFORNIA';
INSERT INTO Professor1 VALUES (0403066,'A. (<NAME>') ,(0403066,'A. (<NAME>') ,(0403066,'A. (Jonathan) Shaw') ,(0403066,'A. (Jonathan) Shaw') ,(0403066,'A. (<NAME>') ,(0403066,'A. (Jonathan) Shaw') ,(0403066,'A. (Jonathan) Shaw') ,(2115402,'<NAME>') ,(2293243,'<NAME>') ,(2293243,'<NAME>') ,(2293243,'<NAME>') ,(2293243,...
<filename>Scripts/s-14-p-crea-vehiculo-prueba.sql --@Autor: <NAME> - <NAME> --@Fecha creación: 18/06/2020 --@Descripción: Proyecto Final 'Procedimiento registro de vehiculos Prueba' set serveroutput on alter trigger tr_actualiza_propietario disable; Prompt ================================================= ...
SET DEFINE OFF; CREATE INDEX AFW_13_PAGE_FK7 ON AFW_13_PAGE (REF_MESG_ECHEC_SPECF) LOGGING /
-- BMP — <NAME> DROP TABLE IF EXISTS `blocks`; DROP TABLE IF EXISTS `miners`; DROP TABLE IF EXISTS `actions`; DROP TABLE IF EXISTS `key_value`; CREATE TABLE `blocks` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `blockchain` char(3) NOT NULL COMMENT...
CREATE TABLE [employer_account].[TransferConnectionInvitation] ( [Id] INT IDENTITY(1, 1) NOT NULL PRIMARY KEY, [SenderAccountId] BIGINT NOT NULL, [ReceiverAccountId] BIGINT NOT NULL, [Status] INT NOT NULL, [DeletedBySender] BIT NOT NULL, [DeletedByReceiver] BIT NOT NULL, [CreatedDate] DATETIME NOT NULL, [Conne...
<reponame>plagiagia/Data-Analysis -- Category Tables CREATE TABLE categories ( CategoryID int NOT NULL IDENTITY(1,1), CategoryName VARCHAR(100), PRIMARY KEY(CategoryID) ) CREATE TABLE sub_categories ( SubCategoryID int NOT NULL IDENTITY(1,1), SubCategoryName VARCHAR(100), CategoryID int, PR...
-- progress.test -- -- db eval { -- SELECT sum(a) FROM t1 -- } SELECT sum(a) FROM t1
-- SQLs for setup of development environment -- Create test table DROP TABLE IF EXISTS table1; CREATE TABLE table1 ( tag1 char(8), val1 integer, tag2 varchar(8), val2 real ); -- Insert test data INSERT INTO table1 (tag1, val1, tag2, val2) VALUES ('hoge1', 1, 'fuga1', 0.1); INSERT INTO table1 (tag1, va...
-- 2019-03-26T17:29:06.069 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ColumnCallout WHERE AD_ColumnCallout_ID=50160 ; -- 2019-03-26T17:29:15.025 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_ColumnCallout WHERE AD_ColumnCallout_ID=50162 ; -- 201...
<gh_stars>1-10 DROP TABLE IF EXISTS `mail`; CREATE TABLE `mail` ( `id` bigint(20) unsigned NOT NULL default '0' COMMENT 'Identifier', `messageType` int(11) unsigned NOT NULL default '0', `sender` bigint(20) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', `receiver` bigint(20) unsigne...
<gh_stars>0 INSERT INTO phrases ([id], [language_id], [label], [phrase]) SELECT COUNT(*) + 1, 1, 'shared.my_account', 'My Account' FROM phrases EXEC sp_rename 'users.state_provience','state_province','COLUMN'; GO INSERT INTO updates (revision, update_date) VALUES (14, GETDATE()) GO
<reponame>discatech/migra create table example0 (a int);
<filename>database/SQL_SCRIPTS/CREATE_TABLE/CREA_DB_NOLEGGIO_OGGETTI.sql -- CREAZIONE RUOLI CREATE TABLE RUOLI( ID INTEGER PRIMARY KEY, NAME_ROLE VARCHAR(64) UNIQUE NOT NULL, DEFAULT_ROLE TINYINT DEFAULT 1, PERMISSIONS INTEGER NOT NULL ); INSERT INTO RUOL...
-- this file exists for testing statement tokenization of *.sql files CREATE DATABASE /*!32312 IF NOT EXISTS*/ `product` /*!40100 DEFAULT CHARACTER SET latin1 */; /* hello */ USE product CREATE #fun interruption TABLE `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `na``me` varchar(30) NOT NULL DE...
<reponame>linkingtd/UniAuth insert into api_permission(uri,status,method,type,comment,create_date,last_update) values('^/ws/rs/group/get-group-by-id-or-code$',0,'POST',1,'',now(),now()); insert into api_permission(uri,status,method,type,comment,create_date,last_update) values('^/ws/rs/user-work-relationship/search-b...
<filename>posda/posdatools/queries/sql/InsertActivityInboxContent.sql -- Name: InsertActivityInboxContent -- Schema: posda_queries -- Columns: [] -- Args: ['activity_id', 'user_inbox_content_id'] -- Tags: ['AllCollections', 'queries', 'activity_support'] -- Description: Get a list of available queries insert into acti...
SELECT o_year, sum(CASE WHEN nation = 'BRAZIL' THEN volume ELSE 0 END) / sum(volume) AS mkt_share FROM ( SELECT extract(YEAR FROM o.orderdate) AS o_year, l.extendedprice * (1 - l.discount) AS volume, n2.name AS nation FR...
DROP INDEX `selfservice_settings_flows_nid_idx` ON `selfservice_settings_flows`;
<gh_stars>1-10 ALTER TABLE leg_bio ADD COLUMN dob_date date; UPDATE leg_bio SET dob_date = to_date(dob,'YYYY-MM-DD'); ALTER TABLE leg_terms ADD COLUMN start_date date; UPDATE leg_terms SET start_date = to_date(start,'YYYY-MM-DD'); ALTER TABLE leg_terms ADD COLUMN end_date date; UPDATE leg_terms SET end_date = to_date(...
--+ holdcas on; set names utf8; create table list_test(id int not null primary key , test_char char(50) collate utf8_tr_cs, test_varchar varchar(2000) collate utf8_tr_cs, test_bit bit(16), test_varbit bit varying(20), test_nchar nchar(50) collate utf8_tr_cs, test_nvarchar nchar varying(2000) collate u...
<reponame>opengauss-mirror/openGauss-graph<filename>src/test/regress/sql/json_and_jsonb.sql --This file is base test of json and jsonb. select oid,* from pg_type where typname like 'json%' order by oid; select oid,* from pg_proc where proname like '%json%' order by oid; select * from pg_aggregate where aggfnoid in (31...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 16, 2021 at 08:33 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>resources/database.sql -- MySQL Script generated by MySQL Workbench -- 04/21/19 19:16:13 -- Model: New Model Version: 1.0 -- 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_MOD...
/* Warnings: - You are about to alter the column `userid` on the `fg_uploadfile` table. The data in that column could be lost. The data in that column will be cast from `Int` to `UnsignedInt`. */ -- DropIndex DROP INDEX `fg_uploadfile.name_unique` ON `fg_uploadfile`; -- DropIndex DROP INDEX `fg_uploadfile.origin...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 07 Juin 2016 à 10:58 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
<reponame>Mateorid/BI-DBS prompt #---------------------# prompt #- Pomocne procedury -# prompt #---------------------# create or replace procedure SMAZ_VSECHNY_TABULKY AS -- pokud v logu bude uvedeno, ze nektery objekt nebyl zrusen, protoze na nej jiny jeste existujici objekt stavi, spust proceduru opakovane, d...
<gh_stars>0 --SetupConfig: {"Requires": [ "CK.sGroupCreate", "CK.sGroupGroupNameSet" ]} -- CREATE PROCEDURE sCreateEventSchool ( @Name VARCHAR(256), @BegDate DATETIME2, @EndDate DATETIME2, @TimePeriodId INT, @ActorId INT, @EventId INT OUTPUT, @Status INT = 0 OUTPUT ) AS BEGIN --[beginsp] --<PreCreate /> ...
<reponame>krzdur/da-toolkit<filename>examples/queries/experiment_query.sql WITH user_stats AS ( SELECT fullVisitorId, SUM( CASE WHEN hits.eventInfo.eventAction = 'Product Click' THEN 1 END ) prod_clicks, SUM( CASE WHEN hits.eventInfo.eventAc...
CREATE TABLE [dbo].[dnn_EasyDNNNewsModuleMappings] ( [PortalID] INT NOT NULL, [oldID] INT NOT NULL, [newID] INT NOT NULL, CONSTRAINT [PK_dnn_EasyDNNNewsModuleMappings] PRIMARY KEY CLUSTERED ([PortalID] ASC, [oldID] ASC), CONSTRAINT [FK_dnn_EasyDNNNewsModuleMappings_Modules] FOREIGN KEY ([newI...
<gh_stars>1-10 /* Author: This code was generated by DALGen version 1.1.0.0 available at https://github.com/H0r53/DALGen Date: 12/12/2017 Description: Creates the item table and respective stored procedures */ USE applicationtemplate; -- ------------------------------------------------------------ -- Drop ex...
-- HOMEWORK Functions And Stored Procedures --Problem 1. Employees with Salary Above 35000 --Create stored procedure usp_GetEmployeesSalaryAbove35000 that returns all --employees’ first and last names for whose salary is above 35000. CREATE OR ALTER PROCEDURE usp_GetEmployeesSalaryAbove35000 AS SELECT FirstName, ...
<filename>test/fixtures/dialects/spark3/table_alias.sql select * from u as t ( a, b ); select * from u as t (a, b); select * from u as t(a,b); select * from u as (a,b); select * from u t ( a, b ); select * from u t (a, b); select * from u t(a,b); select * from u (a,b);
/* Formatted on 12-15-2018 8:41:05 AM (QP5 v5.126.903.23003) */ DROP TABLE ORG.ORG_SITES_LOCATIONS CASCADE CONSTRAINTS PURGE; CREATE TABLE ORG.ORG_SITES_LOCATIONS ( LOCATION_ID NUMBER NOT NULL, LOCATION_CODE_NAME VARCHAR2 (200 BYTE), ORG_ID NUMBER, IS_ENABLED VARCHAR2 (1...
-- file:insert_conflict.sql ln:93 expect:true insert into insertconflicttest values (2, 'Orange') on conflict (key, key, key) do update set fruit = excluded.fruit
<filename>test/sql/official-suite/tkt3997-1.sql -- original: tkt3997.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test create table mytext(name BLOB); INSERT INTO mytext VALUES('abc'); INSERT INTO mytext VALUES('acd'); INSERT INTO mytext VALUES('afe') ;SELECT name FROM mytext OR...
<gh_stars>0 create table T(A integer primary key, B text default 'DEF'); insert into T default values; select * from T; create table T(A integer primary key, B text default 'DEF', C text); insert into T default values; select * from T; create table T(A integer primary key, B text default 'DEF', C text unique); insert...
<gh_stars>0 DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `vista_com`(pEsquema VARCHAR(100), pVista VARCHAR(100)) RETURNS varchar(255) CHARSET latin1 COMMENT 'Obtiene comentarios de Esquema' BEGIN SET @comentario := (SELECT comentarios FROM vistas WHERE esquema = pEsquema AND vista = pVista); IF @come...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 13, 2019 at 11:21 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>sql/eladmin_2.5opt.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50719 Source Host : localhost:3306 Source Schema : eladmin Target Server Type : MySQL Target Server Version : 50719 File En...
/******************************************************************************** component-centric-snapshot-language-inactive-members Assertion: LangRefset members are active for inactive descriptions in the language refset snapshot file. *************************************************************************...
DROP DATABASE IF EXISTS peo_cur; CREATE DATABASE peo_cur; \c peo_cur; CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION IF NOT EXISTS citext; -- DROP ROLE IF EXISTS dba; CREATE ROLE dba WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD '<PASSWORD>' VALID UNTIL '2020-07-01'; CREATE SCHEMA IF N...
/* Navicat Premium Data Transfer Source Server : post Source Server Type : PostgreSQL Source Server Version : 120001 Source Host : localhost:5432 Source Catalog : goodb Source Schema : public Target Server Type : PostgreSQL Target Server Version : 120001 File Encoding ...
/* LeetCode 175. Combine Two Tables https://leetcode.com/problems/combine-two-tables/ */ SELECT firstName, lastName, city, state FROM Person LEFT JOIN Address ON Person.personId = Address.personId;
<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 13.2 -- Dumped by pg_dump version 13.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_pa...
GRANT ALL PRIVILEGES ON sandbox.* TO mysql@"localhost" IDENTIFIED BY 'mysql' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON sandbox.* TO mysql@"192.168.0.%" IDENTIFIED BY 'mysql' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON sandbox.* TO mysql@"172.17.0.%" IDENTIFIED BY 'mysql' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON sandb...
<reponame>vasetousa/SQL-Server<filename>Built in functions/9.sql --9 USE Softuni SELECT FirstName, LastName FROM Employees WHERE LEN(LastName) = 5
<reponame>2011-nov02-net/david-code<gh_stars>0 -- SQL Comment -- If nothing is highlighted, execute will run entire file -- If something is highlighted, it'll run the highlighted stuff. SELECT * FROM Customer; -- String (varchar) literal, single quotes -- semicolons are not required -- case insensitive (us...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 26, 2018 at 09:37 PM -- Server version: 5.7.23-0ubuntu0.16.04.1 -- PHP Version: 5.6.37-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+0...
<reponame>WindyOktia/SIMAS<filename>document/3ed5107a195a094b96f9f0b13e8572bd.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 05, 2020 at 03:28 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; ST...
<reponame>SynapseProject/synapse.examples -------------------------------------------------------- -- File created - Friday-April-21-2017 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Function HELLOWORLD --------------------------------...
-- Message DROP TABLE IF EXISTS message; CREATE TABLE message ( message_id INTEGER PRIMARY KEY AUTOINCREMENT, text TEXT NOT NULL, chat_id INTEGER NOT NULL, user_id INTEGER NOT NULL, creation_date INTEGER NULL, type INTEGER, is_deleted INTEGER DEFAULT ...
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 06-11-2017 a las 19:48:21 -- Versión del servidor: 5.7.17-log -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
<filename>tests/doc-kill.test.sql CREATE OR REPLACE FUNCTION fetchq_test.doc_kill_01( OUT passed BOOLEAN ) AS $$ DECLARE VAR_testName VARCHAR = 'COULD NOT KILL A DOCUMENT'; VAR_r RECORD; BEGIN -- initialize test PERFORM fetchq.queue_create('foo'); -- insert dummy data PERFORM fetchq....
CREATE TABLE IF NOT EXISTS users( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, email varchar(255) NOT NULL UNIQUE, password varchar(255) NOT NULL ); CREATE TABLE IF NOT EXISTS links( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, hash varchar(6) UNIQUE, title varchar(255) NOT...
SELECT ROUND(MIN(SQRT(POWER(p1.x - p2.x, 2) + POWER(p1.y - p2.y, 2))), 2) AS shortest FROM point_2d p1, point_2d p2 WHERE p1.x != p2.x OR p1.y != p2.y; SELECT MIN(ROUND( SQRT(POW(p1.x - p2.x, 2) + POW(p1.y - p2.y, 2)), 2)) AS shortest FROM point_2d p1, point_2d p2 WHERE NOT (p1.x = p2.x AND p1.y = p2.y);
<filename>Impl/agensgraph/load_datasets/ecommerce/create_graph.sql \c ecommerce; CREATE EXTENSION IF NOT EXISTS file_fdw; CREATE SERVER IF NOT EXISTS import_server FOREIGN DATA WRAPPER file_fdw; DROP FOREIGN TABLE IF EXISTS person; DROP FOREIGN TABLE IF EXISTS follows; DROP FOREIGN TABLE IF EXISTS hashtag; DROP FOREI...
DROP PROCEDURE sp_pagamento_add; DELIMITER // CREATE PROCEDURE sp_pagamento_add( v_id_reserva INT, v_Valor DECIMAL(6,2), v_via VARCHAR(80) ) BEGIN DECLARE v_id_pagamento INT; DECLARE v_estado VARCHAR(15) DEFAULT 'Ativo'; SELECT COUNT(id_pagamento) + 1 FROM tb_pagamento IN...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: transparencia -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESU...
<reponame>aravi5/drill-test-framework<filename>framework/resources/Functional/int96/q19.sql alter session set `store.parquet.reader.int96_as_timestamp`=true; select c_varchar,AGE(c_timestamp) - AGE(c_timestamp) from imp_t1 where c_varchar like '%000000%'; alter session set `store.parquet.reader.int96_as_timestamp`=fals...
<filename>supermis-admin/src/main/java/Patientuser.sql INSERT INTO `supermis`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('975772834016047105', 'patientuser', 'system', '[0],[system],', '普通用户信息管理', '', '/patientuser', '99', '2', '1',...
<gh_stars>1-10 CREATE OR REPLACE PROCEDURE "BULKLOADER_LOAD_RELATIONS" as cursor c1 is select * from cf_temp_relations where (fail_reason is null or fail_reason <> 'delete'); cnt number; err varchar2(255); tempID number; failed_validation exception; relatedCollObjId cataloged_item.collection_object_id%TYPE; collOb...
<reponame>ctdk/goiardi-schema -- Verify joined_cookbook_version BEGIN; SELECT major_ver, minor_ver, patch_ver, version, metadata, recipes, id, organization_id, name FROM joined_cookbook_version WHERE 0; ROLLBACK;
CREATE PROCEDURE SP382(OUT MYCOUNT INTEGER) SPECIFIC SP382_110993 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE347;SELECT COUNT(*)INTO MYCOUNT FROM TABLE342;SELECT COUNT(*)INTO MYCOUNT FROM TABLE480;SELECT COUNT(*)INTO MYCOUNT FRO...
DROP TABLE IF EXISTS zephir_records; CREATE TABLE `zephir_records` ( `autoid` integer NOT NULL PRIMARY KEY, `cid` varchar(11) DEFAULT NULL, `contribsys` varchar(25) DEFAULT NULL, `contribsys_id` varchar(100) DEFAULT NULL, `id` varchar(38) DEFAULT NULL, `source` varchar(20) DEFAULT NULL, `source_collectio...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-11-2017 a las 15:11:46 -- Versión del servidor: 5.7.14 -- Versión de PHP: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
-- auto-generated definition create table towns ( id int auto_increment primary key, town varchar(16) not null, constraint towns_town_uindex unique (town) ) comment 'a list of cities'; INSERT INTO test.towns (id, town) VALUES (6, 'Jõgeva'); INSERT INTO test.towns (id, town) VALUES (5,...
<filename>sql/changes/update-00036.sql<gh_stars>0 ALTER TABLE `ring_conversation` DROP COLUMN `from_user_id`; ALTER TABLE `ring_conversation` DROP COLUMN `to_user_id`; INSERT INTO sys_version SET id=36;
<filename>Database/seleksiyhc.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Agu 2021 pada 15.54 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
-- Your SQL goes here CREATE TABLE billing_info ( client_id INTEGER PRIMARY KEY NOT NULL, phone_number TEXT, card_info INTEGER );
<gh_stars>0 -- MySQL Script generated by MySQL Workbench -- Wed Jan 20 22:05:53 2021 -- Model: New Model Version: 1.0 -- 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, ...
-- -- Database: "kalkun" -- -- -------------------------------------------------------- -- -- Table structure for table "kalkun" -- CREATE TABLE "kalkun" ( "version" varchar(65535) NOT NULL ); -- -------------------------------------------------------- -- -- Table structure for table "sms_used" -- CREATE TABLE ...
<filename>kafka/src/test/resources/kafka-producer-record-postgres.sql<gh_stars>1-10 CREATE SEQUENCE KAFKA_PRODUCER_RECORD_ID_SEQ; CREATE TABLE KAFKA_PRODUCER_RECORD ( ID BIGINT NOT NULL PRIMARY KEY, TOPIC VARCHAR(100) NOT NULL, KEY BYTEA, VALUE...
-- 坑一: 时间类型转换bug, 解决方法修改字段类型(执行下面sql) ALTER TABLE ACT_APP_DATABASECHANGELOG MODIFY COLUMN DATEEXECUTED varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL; ALTER TABLE ACT_CMMN_DATABASECHANGELOG MODIFY COLUMN DATEEXECUTED varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL; ALTER TA...
<gh_stars>10-100 -- file:aggregates.sql ln:656 expect:true drop view aggordview1
<gh_stars>10-100 drop table "testtesttest";
# ---------------------------------------------------------------------- # # Script generated with: DeZign for Databases v6.3.3 # # Target DBMS: MySQL 5 # # Project file: rbac_nist_.dez # # Project name: ...
-- 1711140136-创建数据库 create database yefh_forum; create database yefh_forum_admin; -- 1711140136-创建表 /* 存储用户信息表 unick 用户昵称 upa 用户密码 uemail 邮箱地址 utel 电话 */ use yefh_forum; create table yefh_user ( unick varchar(10) primary key not null, upa char(32) not null, uemail varchar(35) not null, utel varchar(15) not n...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80020 Source Host : localhost:3306 Source Schema : oes-cloud-job Target Server Type : MySQL Target Server Version : 80020 File Encoding : 65001 Date: 05/08/2...
/* * Copyright 2022.1-2022 * StarWhale.ai All right reserved. This software is the confidential and proprietary information of * StarWhale.ai ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only * in accordance with the terms of the license agreement you entered i...
------------------------------------------ --Pi Wind ------------------------------------------ Declare @SupplierId int = (Select ISNULL(Max(SupplierId),0) + 1 From Supplier) Declare @ModelFamilyId int = (Select ISNULL(Max(ModelFamilyId),0) + 1 From ModelFamily) Declare @ModelId int = (Select ISNULL(Max(ModelId),0) + ...
insert into departments values (1, 'sales'); insert into departments values (2, 'purchasing'); insert into departments values (3, 'it'); insert into departments values (4, 'marketing');
<reponame>sql-boot/postgres-health-scripts /*{ "name": "extension", "title": "Extensions", "description": "Extensions", "tags": "ui" }*/ select ae.name , installed_version , default_version , case when installed_version <> default_version then 'OLD' end as is_old from pg_extension e join pg_a...
-- @testpoint:opengauss关键字nominvalue(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists nominvalue; CREATE TABLESPACE nominvalue RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace nominvalue; --关键字带双引号,创建成功 drop tablespace if exists "nominvalue"; CREATE TABLESPACE "nominvalue" RELATIVE LOCATI...
ALTER TABLE MONI_API ADD EXPECTED_CODE VARCHAR(10) AFTER CONTENT_TYPE; ALTER TABLE MONI_API_LOG ADD EXPECTED_CODE VARCHAR(10) AFTER END_TIME;
<filename>turk_final.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 20, 2022 at 04:25 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...