sql
stringlengths
6
1.05M
CREATE TABlE vaults ( name varchar PRIMARY KEY, amount NUMERIC(12, 4) DEFAULT 0 NOT NULL )
<gh_stars>100-1000 SELECT * FROM NOTIFICATIONS WHERE NO = ? ;
<reponame>lintzc/GPDB -- @Description Tests that DML operatins change the modification count. -- SELECT DISTINCT state, tupcount, modcount FROM gp_aocsseg_name('ao'); INSERT INTO ao VALUES (11, 11); SELECT DISTINCT state, tupcount, modcount FROM gp_aocsseg_name('ao'); DELETE FROM ao WHERE a = 11; SELECT DISTINCT stat...
<filename>sql/ddl/question_sqlite.sql -- -- Creating a Question table. -- -- -- Table Question -- DROP TABLE IF EXISTS Question; CREATE TABLE Question ( "id" INTEGER PRIMARY KEY NOT NULL, "userId" INTEGER NOT NULL, "content" TEXT, "tags" TEXT, FOREIGN KEY(userId) REFERENCES User(id) );
--- Segmenting GNSS timeseries data into trips by time --- Tablename tablename is holding the datapoints --- --- Updating a large table of data is timeconsuming, so the original table is copied to tablename_old --- Then a new table is created with tablename_old but with a new column group_id --- How To: --- 1. Updat...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Tempo de geração: 16-Abr-2021 às 14:23 -- Versão do servidor: 8.0.21 -- versão do PHP: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
CREATE TABLE `group_cluster_accounts` ( `account_id` int(11) unsigned NOT NULL, `gamespace_id` int(11) unsigned NOT NULL, `cluster_id` int(11) unsigned NOT NULL, `cluster_data` int(11) unsigned NOT NULL, PRIMARY KEY (`account_id`,`gamespace_id`,`cluster_id`,`cluster_data`), UNIQUE KEY `account_id` (`account...
<filename>db/classroom.sql -- MySQL dump 10.13 Distrib 5.7.33, for Linux (x86_64) -- -- Host: localhost Database: classroom -- ------------------------------------------------------ -- Server version 5.7.33-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
-- file:privileges.sql ln:1074 expect:true drop table dep_priv_test
<filename>src/migrations/postgresql/1526582253_add_crypto_challenge_columns_to_users_table.down.sql ALTER TABLE users DROP COLUMN eth_address; ALTER TABLE users DROP COLUMN eth_challenge; ALTER TABLE users DROP COLUMN eth_signature;
<reponame>sumesh-aot/namex -- noinspection SqlNoDataSourceInspectionForFile INSERT INTO CONFIGURATION (application, name, value, description) VALUES ('SOLR_FEEDER', 'destination_url', 'https://namex-test.pathfinder.gov.bc.ca/api/v1/feeds', NULL); GRANT INSERT ON application_log TO colin_mgr_tst; GRANT INSERT ON tr...
\o /dev/null \ir include/insert_two_partitions.sql \o SELECT * FROM "two_Partitions" ORDER BY "timeCustom", device_id; DELETE FROM "two_Partitions" WHERE series_0 = 1.5; DELETE FROM "two_Partitions" WHERE series_0 = 100; SELECT * FROM "two_Partitions" ORDER BY "timeCustom", device_id;
<reponame>FuzzyBearBTC/Exchange INSERT INTO `admin_pages` (`id`, `f_id`, `name`, `url`, `icon`, `order`, `page_map_reorders`) VALUES (91, 30, 'User History', 'user-history', '', 0, 0); INSERT INTO `admin_pages` (`id`, `f_id`, `name`, `url`, `icon`, `order`, `page_map_reorders`) VALUES (92, 30, 'History Actions', 'hist...
-- Fixed function that determines replication key to always get the oldest unique key when no primary key is available (lowest index oid value). Ensures it's more consistent when it is reused elsewhere to determine which key to use. /* * Fetches either the primary key or a valid, not-null unique index. Primary key i...
<filename>fixtures/doctests/create_type/001_as_enum/input.sql CREATE TYPE bug_status AS ENUM ('new', 'open', 'closed'); CREATE TABLE bug ( id serial, description text, status bug_status );
ALTER TABLE "room"."ShuffleRoom" DROP COLUMN "isEnded";
<gh_stars>0 -- @testpoint:opengauss关键字date(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists date; create schema date; drop schema date; --关键字带双引号-成功 drop schema if exists "date"; create schema "date"; drop schema "date"; --关键字带单引号-合理报错 drop schema if exists 'date'; create schema 'date'; --关键字带反引号-合理报错 drop schema if...
CREATE TABLE `city` ( `id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `area_code` varchar(5) DEFAULT NULL COMMENT 'Code of ''Country'' area', `city` varchar(64) NOT NULL, `description` text COMMENT 'Description', PRIMARY KEY (`id`), KEY `city_to_user_ibfk_1` (`id_user`), CONSTRAINT `ci...
<filename>schema.sql DROP DATABASE IF EXISTS employeeDB; CREATE database employeeDB; USE employeeDB; CREATE TABLE department( id INTEGER AUTO_INCREMENT NOT NULL, name VARCHAR(30), PRIMARY KEY (id) ); CREATE TABLE role ( id INTEGER AUTO_INCREMENT NOT NULL, name VARCHAR(30), PRIMARY KEY (id) ); ...
<reponame>Mercer01/arma-server-web-admin CREATE table `server` ( `id` int(11) NOT NULL AUTO_INCREMENT, `admin_password` varchar(100), `allowed_file_patching` boolean, `auto_start` server.auto_start, `battle_eye` boolean DEFAULT false, `file_patching` boolean DEFAULT false, `forcedDifficulty`...
Create table `basededatosmasivos.Base_de_Datos.Encuestas_v1` as SELECT enc.Year, con.Country, exp.Experience, enc.Id_Ocupation, sal.Salary, age.Age, gen.Gender, enc.AngularJS, enc.C, enc.CPlusPlus, enc.CSharp, enc.CSS, enc.HTML5, enc.Java, enc.JavaScript, enc.jQuery, enc.Nodejs, enc.ObjectiveC, en...
USE master; GO IF EXISTS(select * from sys.databases where name='r_demos') DROP DATABASE r_demos; go CREATE DATABASE r_demos; GO
<reponame>Scout2012/Hospital-Patient-System<filename>stored_procedure.sql --c. Create a stored procedure that gives Prescription name and the number --of patients from the city of Fullerton with that prescription. --Example --| 20 | Aspirin | --| 2 | Ciprofloxacin
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2017-03-28 14:57:52 */ /*==============================================================*/ DROP TABLE IF EXISTS SYS_BANNER; /*==============...
<gh_stars>0 INSERT OR REPLACE INTO EnglishText("Tag", "Text") VALUES ('LOC_PROMOTION_SPY_COUNTERINTELLIGENCE_NAME', 'Counter Intelligence'), ('LOC_PROMOTION_SPY_MASTERMISCHIEF_NAME', 'Master Mischief'), ('LOC_PROMOTION_SPY_DEEPNETWORK_NAME', 'Deep Network'), ('LOC_PROMOTION_SPY_MASTERTHIEF_NAME', 'Master Thief'), ...
<reponame>ysngki/SoftAirTransfer /*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2020/5/31 15:48:14 */ /*==============================================================*/ /*===============...
IF NOT exists (SELECT * FROM systypes WHERE name = N'RowPointerType') EXECUTE sp_addtype N'RowPointerType', N'uniqueidentifier', N'null' go CREATE TABLE ACCION ( ACCION int NOT NULL, NOMBREACCION VARCHAR(40) NOT NULL, DESCRIPCION VARCHAR(100) NULL, NOM...
DROP DATABASE IF EXISTS gerenciador_de_cursos; CREATE DATABASE IF NOT EXISTS gerenciador_de_cursos; USE gerenciador_de_cursos; CREATE TABLE IF NOT EXISTS curso ( id SERIAL NOT NULL, nome VARCHAR(255) NOT NULL, duracao_horas INT NOT NULL, data_criacao TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP);
<reponame>devonwesley/testing-on-express-routes DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL PRIMARY key, name TEXT NOT NULL NOT NULL );
<reponame>rhurup/laravel-cms<filename>database/migrations_sql/countries_languages_08-05-2020.sql # ************************************************************ # Sequel Pro SQL dump # Version (null) # # https://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.26) # Database: co...
<gh_stars>1-10 -- PS1 -- Q(B) CREATE DATABASE stocksdb; CREATE TABLE IF NOT EXISTS stocksdb.stock_prices ( exchng STRING, symbol STRING, ymd STRING, price_open DOUBLE, price_high DOUBLE, price_low DOUBLE, price_close DOUBLE, price_volume DOUBLE, price_adj_close DOUBLE) ROW FORMAT DELIMITED FIELDS TERMINATE...
declare @tStream varbinary(max) = (select ModelStream from Models.ModelVersions where Id = 3) declare @userId nvarchar(10) = 'u10011' , @userIndex int -- this CTE will create numbered list of user ids, the row number will be used as -- an user index ;with cte as ( select userId, row_number() over(order by use...
-- Z SELECT Z(1000000000) AS null_v1; -- \\N SELECT Z(500000000) AS v2; -- 0 SELECT Z(1000) AS v3; -- 19 SELECT Z(0) AS null_v4; -- \\N SELECT Z(NULL) AS null_v5; -- \\N
<reponame>manikanth/sql-server-samples CREATE SCHEMA [PowerBI] AUTHORIZATION [dbo]; GO EXECUTE sp_addextendedproperty @name = N'Description', @value = N'Views and stored procedures that provide the only access for the Power BI dashboard system', @level0type = N'SCHEMA', @level0name = N'PowerBI';
<filename>maximo-asset-monitor/db-scripts/DM_EntityType.ddl -- BLUADMIN.DM_CLIENTS04 definition CREATE TABLE "BLUADMIN"."DM_CLIENTS04" ( "ENTITY_ID" VARCHAR(255 OCTETS) NOT NULL , "KEY" VARCHAR(255 OCTETS) NOT NULL , "VALUE_N" DOUBLE , "VALUE_B" BOOLEAN , "VALUE_S" VARCHAR(255 OCTETS) , "VALUE...
<reponame>ggreen/IoT-connected-vehicles-showcase drop table vehicle_telemetry; drop table flyway_schema_history;
<gh_stars>1000+ CREATE TABLE {$NAMESPACE}_config.config_entry ( `id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `phid` VARCHAR(64) NOT NULL COLLATE utf8_bin, `namespace` VARCHAR(64) BINARY NOT NULL COLLATE utf8_bin, `configKey` VARCHAR(64) BINARY NOT NULL COLLATE utf8_bin, `value` LONGTEXT NOT NULL, ...
<gh_stars>1-10 BEGIN; ALTER TABLE resourcecertificate ADD COLUMN subject_public_key_id bigint; CREATE INDEX resourcecertificate_subject_public_key_id ON resourcecertificate (subject_public_key_id); ALTER TABLE resourcecertificate ADD CONSTRAINT resourcecertificate_subject_public_key_id_fkey FOREIGN KEY (subject_pu...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 19-11-2020 a las 17:54:23 -- Versión del servidor: 10.3.25-MariaDB-cll-lve -- Versión de PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; S...
<filename>old_alter_handyman_service.sql CREATE TABLE `documents` ( `id` bigint UNSIGNED NOT NULL, `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint DEFAULT '1', `is_required` tinyint DEFAULT '0', `deleted_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL,...
-- Revert ss2:function-block-insert from pg -- requires: schema -- requires: table-block BEGIN; DROP FUNCTION <%=schema%>.block_insert( jsonb, <%=schema%>.block.mined_time%TYPE, <%=schema%>.block.median_time%TYPE, BOOLEAN ); COMMIT;
-- DATABASE MODEL FOR LEADERBOARD CREATE TABLE IF NOT EXISTS `Leaderboard` ( `idLeaderboard` INT NOT NULL, `username` VARCHAR(45) NULL, `score` VARCHAR(45) NULL ) ENGINE = InnoDB;
<reponame>MNikov/MySQL-SoftUni<gh_stars>0 SELECT first_name, last_name, hire_date FROM employees ORDER BY hire_date DESC LIMIT 7;
<gh_stars>0 WITH Data AS ( SELECT [Ukprn] ,[ContractType] ,[CollectionPeriod] ,[AcademicYear] ,[LearnerReferenceNumber] ,[LearnerUln] ,[LearningAimReference] ,[LearningAimProgrammeType] ,[LearningAimStandardCode] ,[LearningAimFrameworkCode] ,[LearningAimPathwayCode] ,[LearningAimFundingLineTyp...
with data as ( select 'osm' as dataset, -- in postgis 3.0 there is a function to get bbox for xyz tile -- ST_TileEnvelope(z, x, y) bbox, ST_AsGeoJSON(ST_Transform(ST_MakeEnvelope( -20037508.34 + (x * (20037508.34*2)/(2^z)), 20037508.34 - (y * (20037508.34*2)/(2^z)), -20037508.3...
<filename>aurius-ddl/src/main/resources/postgres/dic-tables.sql DROP TABLE IF EXISTS DICDESC_DICD; CREATE TABLE DICDESC_DICD ( DICD_ID CHAR(32) NOT NULL, DICD_DESC text ) ; CREATE UNIQUE INDEX DICDESC_DICD_KEY ON DICDESC_DICD(DICD_ID); DROP TABLE IF EXISTS OPERATIVAS_OP; CREATE TABLE OPERATIVAS_OP ( OP...
<reponame>OpenDataSTL/STLCourts-api<gh_stars>1-10 DELETE FROM sms_alerts WHERE citation_number=:citationNumber AND phone_number=:phoneNumber AND date_of_birth=:dob
-- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 16-Ago-2021 às 00:08 -- Versão do servidor: 5.7.12 -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
-- AlterTable ALTER TABLE "BookingReference" ADD COLUMN "meetingId" TEXT, ADD COLUMN "meetingPassword" TEXT, ADD COLUMN "meetingUrl" TEXT;
<filename>src/test/resources/sql/begin/7bfb8d02.sql -- file:plpgsql.sql ln:3803 expect:false begin begin i := (SELECT NULL::integer)
ALTER TABLE user_account ALTER COLUMN email DROP NOT NULL; ALTER TABLE user_account ALTER COLUMN full_name DROP NOT NULL; ALTER TABLE user_account ALTER COLUMN password DROP NOT NULL; ALTER TABLE user_account ADD COLUMN user_id VARCHAR (255);
<reponame>PreetiKamble29/stacktach ALTER TABLE stacktach_instanceexists ADD send_status INTEGER; CREATE INDEX `stacktach_instanceexists_b2444339` ON `stacktach_instanceexists` (`send_status`);
/****** Object: View [dbo].[V_Helper_Prep_LC_Run_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE view [dbo].[V_Helper_Prep_LC_Run_List_Report] as SELECT ID, Tab, Instrument, [Type], LC_Column AS [LC Column], [Comment], Created, ...
<reponame>holon-platform/holon-jdbc<filename>spring/src/test/resources/two-data.sql delete from test2; INSERT INTO test2 VALUES (2, 'Two'); COMMIT;
<filename>database/demo/demo5.sql SET ECHO ON TERMOUT ON SERVEROUTPUT ON SIZE 1000000 PAGESIZE 100 LINESIZE 250 FEEDBACK ON TIMING OFF REM =========================================================================== REM 1. Asynchronous prime factorization service Calls (enqueue) REM ===============================...
<gh_stars>1-10 -- HETS-1266 - Add individual rate types to all records ALTER TABLE public."HET_RENTAL_AGREEMENT_RATE" ADD COLUMN "RATE_PERIOD_TYPE_ID" integer; ALTER TABLE public."HET_RENTAL_AGREEMENT_RATE_HIST" ADD COLUMN "SET" boolean; ALTER TABLE public."HET_RENTAL_AGREEMENT_RATE_HIST" ADD COLUMN "RATE_PERIOD_TYPE_...
<reponame>rgulanes/binarybsc<gh_stars>0 CREATE DATABASE IF NOT EXISTS `binarybsc` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `binarybsc`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: binarybsc -- ------------------------------------------------------ -- Server ver...
create table Usuario( nombre varchar(250), telefono BIGINT primary key, apellido varchar(250), contraseña varchar(250), fechaRegistro TIMESTAMP, fechaConexion TIMESTAMP, estado varchar(250) ); create table Contacto( propietario BIGINT, dirigido BIGINT, primary key(propietario, dirigido), foreign key(propiet...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 23, 2019 at 04:48 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 CREATE PROCEDURE [dbo].[Build_Modelled_PL] (@RunId bigint) AS -- ========================================================================= -- Author: <NAME> -- Create Date: 25/09/2020 -- Description: Master Stored Proc that builds Modelled Presentation Layer -- ========================================...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2021 at 06:50 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>src/sql/Employees-Earning-More-Than-Their-Managers.sql Create table If Not Exists Employee (Id int, Name varchar(255), Salary int, ManagerId int); Truncate table Employee; INSERT INTO Employee (Id, Name, Salary, ManagerId) VALUES ('1', 'Joe', '70000', '3'); INSERT...
<reponame>auscompgeek/perfectgift<gh_stars>0 -- Fake data for the wishlist database. -- NOTE: USED FOR TESTING. INSERT INTO tbl_users (rowid, fname, lname, username, email, image, password, salt, dob) VALUES (0, 'Barry', 'Schultz', 'bazS', '<EMAIL>', "0.jpg", '<PASSWORD>', "x_HCV[`/", 859816800); INSERT INTO tbl_users...
<gh_stars>0 REM PipeReceive.sql REM Chapter 12, Oracle9i PL/SQL Programming by <NAME> REM This block illustrates the use of the DBMS_PIPE package to REM receive a message. set serveroutput on DECLARE v_PipeName VARCHAR2(30) := 'MyPipe'; v_Status INTEGER; v_DateVal DATE; v_NumberVal NUMBER; v_StringVal VARCH...
<filename>my_e-bag.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 05, 2021 at 06:23 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
{{ config( re_data_monitored=true, re_data_time_filter='time_created', re_data_anomaly_detector={'name': 'z_score', 'threshold': 2.2}, ) }} select o.id, o.amount, o.status, o.time_created, o.customer_id, c.age from {{ ref('orders') }} o left join {{ ref('customers') }} c on o.cust...
<reponame>enderdwt/todo-demo # --- !Ups CREATE SEQUENCE public."TODO_id_seq" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; CREATE TABLE "TODO" ( id integer NOT NULL DEFAULT nextval('"TODO_id_seq"'::regclass), description character varying NOT NULL, done boolean NOT NULL, CONST...
ALTER TABLE ct_carte_grise ADD cg_nom_cooperative VARCHAR(100) DEFAULT NULL, ADD cg_itineraire VARCHAR(100) DEFAULT NULL, ADD cg_is_transport TINYINT(1) NOT NULL;
\copy ways FROM 'ways.txt'
ALTER TABLE `fi_clients` CHANGE `client_date_created` `client_date_created` DATETIME NOT NULL; ALTER TABLE `fi_clients` CHANGE `client_date_modified` `client_date_modified` DATETIME NOT NULL; ALTER TABLE `fi_invoices` CHANGE `invoice_date_modified` `invoice_date_modified` DATETIME NOT NULL; ALTER TABLE `fi_quotes` CHAN...
<reponame>Bad-Pop/Spring-Microservices-Architecture-Demo INSERT INTO `film` (`id`, `description_en`, `description_fr`, `title_en`, `title_fr`, `poster_id`) VALUES (1, 'An ancient Ring thought lost for centuries has been found, and through a strange twist in fate has been given to a small Hobbit named Frodo. When Gandal...
ALTER TABLE T_BILLS ADD COLUMN CREATED_AT timestamp(3) NOT NULL;
<gh_stars>1-10 DROP TABLE IF EXISTS libros; CREATE TABLE libros( codigo INT unsigned AUTO_INCREMENT, titulo VARCHAR(40), autor VARCHAR(30), editorial VARCHAR(15), precio DECIMAL(5,2), PRIMARY KEY(codigo) ); INSERT INTO libros (titulo,autor,editorial,precio) VALUES('<NAME>','Borges','Planeta',15.50); I...
CREATE TABLE CUSTOMER ( ID DECIMAL(19,0) NOT NULL PRIMARY KEY, FIRST_NAME VARCHAR(50), LAST_NAME VARCHAR(50) ); CREATE SEQUENCE CUSTOMER_SEQ START WITH 100 MINVALUE 100 MAXVALUE 9223372007; INSERT INTO CUSTOMER (ID, FIRST_NAME, LAST_NAME) VALUES (1, 'JOE', 'SMITH'); INSERT INTO CUSTOMER (ID, FIRST_NAME, LAST_NAME)...
<filename>src/main/resources/db/changelog/changes/v1.0.0/sql/2021-07-09-13__create-contribution-criteria-excluded-location-table.sql CREATE TABLE contribution_criteria_excluded_location ( contribution_criteria_id UUID NOT NULL, location_id UUID NOT NULL, CO...
<reponame>mijaros/apiman-test<gh_stars>1-10 -- -- Authentication -- CREATE TABLE qe_users ( "username" character varying NOT NULL, "password" character varying NOT NULL, PRIMARY KEY ("username") ); INSERT INTO "qe_users" VALUES ('admin', 'admin'); INSERT INTO "qe_users" VALUES ('user', 'user'); INSERT INTO...
CREATE TABLE adminapi.features ( aggregate_id TEXT, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, sequence BIGINT, default_features BOOLEAN, tier_name TEXT, tier_description TEXT, ...
-- AUTO-GENERATED BY igluctl DO NOT EDIT -- Generator: igluctl 0.2.0 -- Generated: 2017-09-19 16:16 CREATE SCHEMA IF NOT EXISTS atomic; CREATE TABLE IF NOT EXISTS atomic.com_mparticle_snowplow_userattributechange_event_1 ( "schema_vendor" VARCHAR(128) ENCODE RUNLENGTH NOT NULL, "schema_name" VA...
ALTER TABLE kun_wf_task_run ADD COLUMN queued_at timestamp ; ALTER TABLE kun_wf_task_attempt ADD COLUMN queued_at timestamp ;
<reponame>khuddlefish/gpdb -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore REINDEX INDEX cr_co_reindex_btree_idx1;
<reponame>tapper/Tapper-Schema -- Convert schema '/var/tmp/Tapper-Schema-ReportsDB-1.001-MySQL.sql' to '/var/tmp/Tapper-Schema-ReportsDB-2.010009-MySQL.sql': -- No differences found
-- MySQL dump 10.13 Distrib 5.5.32, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: tis_mbravesoft -- ------------------------------------------------------ -- Server version 5.5.32-0ubuntu0.13.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESU...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION _QUADINT_TOQUADKEY (quadint STRING) RETURNS STRING LANGUAGE JAVASCRIPT IMMUTABLE AS $$ if (!QUADINT) { throw new Error('NULL argument passed to UDF'); } @@SF_LIBRARY_CONTENT@@ retu...
<filename>csejudb.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2019 at 03:48 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
DELIMITER // CREATE PROCEDURE tbimp () BEGIN DECLARE tmptitle TEXT; DECLARE tmpdesc TEXT; DECLARE tmptag TEXT; DECLARE cur CURSOR FOR select * from tmpimport; OPEN cur; testLoop: LOOP FETCH cur INTO tmptitle, tmpdesc, tmptag; CALL ProcInsertQuestion(tmptitle, tmpdesc, tmpt...
<gh_stars>0 INSERT INTO event (name, description, identifier, active, due_date, notification_open, email_template_id) VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING *
<filename>src/main/resources/data.sql delete from User; insert into User values(1, 'User1', LOCALTIMESTAMP); insert into User values(2, 'User2', LOCALTIMESTAMP); insert into User values(3, 'User3', LOCALTIMESTAMP); insert into User values(4, 'User4', LOCALTIMESTAMP); insert into User values(5, 'User5', LOCALTIMESTAMP);...
<filename>DBMS/M01_MySQL/L07_DatabaseProgrammabilityAndTransactions/Exercises/Solutions/P09_PeopleWithBalanceHigherThan.sql USE `soft_uni`; DELIMITER $$$ CREATE PROCEDURE `usp_get_holders_with_balance_higher_than`(`number` DECIMAL(19, 4)) BEGIN SELECT ah.`first_name`, ah.`last_name` FROM `account_holders` AS ...
<reponame>kinpa200296/PL_SQL_labs set serveroutput on; create table MyTable(id number, val number); create sequence MyTable_seq;
<gh_stars>0 CREATE DATABASE MiniORM GO USE MiniORM GO CREATE TABLE Projects ( Id INT IDENTITY PRIMARY KEY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE Departments ( Id INT IDENTITY PRIMARY KEY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE Employees ( Id INT IDENTITY PRIMARY KEY, FirstName VARCHAR(50) NOT NULL, ...
<reponame>mcaerosh/aeroshproject-blog -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03 Agu 2018 pada 18.03 -- Versi Server: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<gh_stars>0 CREATE TABLE [dbo].[InvoiceAttachments] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Identifier] NVARCHAR (255) NOT NULL, [FileName] NVARCHAR (255) NOT NULL, [ContentType] NVARCHAR (255) NOT NULL, [Size] BIGINT NOT NULL, [InvoiceId] INT ...
CREATE TABLE `block_replicas` ( `block_id` bigint(20) unsigned NOT NULL, `site_id` int(10) unsigned NOT NULL, `group_id` int(11) unsigned NOT NULL, `is_custodial` tinyint(1) NOT NULL DEFAULT '0', `last_update` datetime NOT NULL, `is_complete` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`block_id`,`site_...
drop table if exists BAT_ICR_EXTSPECBUSI; /*==============================================================*/ /* Table: BAT_ICR_EXTSPECBUSI */ /*==============================================================*/ create table BAT_ICR_EXTSPECBUSI ( ACCOUNT_NO varchar(50) comment...
<reponame>mdhamid1/gffa<gh_stars>1-10 -- WARN: DROP OLD SCHEMAS ONLY DROP TABLE film_person; DROP TABLE film_planets; DROP TABLE film_species; DROP TABLE film_starships; -- DROP TABLE film_vehicle;
USE [master] GO /****** Object: Database [B2C_admin] Script Date: 01/29/2019 11:13:50 ******/ CREATE DATABASE [b2c_admin]; USE [b2c_admin] GO /****** Object: Table [dbo].[resource] Script Date: 05/26/2019 21:19:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo...
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 10, 2017 at 01:38 PM -- Server version: 5.7.18-0ubuntu0.16.04.1 -- PHP Version: 7.0.15-0ubuntu0.16.04.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
DROP TABLE orders; DROP TABLE order_events; DROP TABLE products; DROP TABLE sub_categories; DROP TABLE categories; DROP TABLE manufactureres; DROP TABLE customers; DROP TABLE cities; DROP TABLE postal_codes; DROP TABLE states; DROP TABLE regions; DROP TABLE countries;
USE [ANTERO] GO /****** Object: View [api].[koulutusluokitus] Script Date: 2.9.2020 15:37:29 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [api].[koulutusluokitus] AS SELECT * FROM [dw].[api_koulutusluokitus] GO
-- file:rowsecurity.sql ln:1037 expect:true CREATE POLICY p1 ON t1 TO regress_rls_bob USING ((a % 2) = 0)