sql
stringlengths
6
1.05M
<reponame>BigSnowfr/Dutaf -- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 10 Mai 2016 à 10:45 -- Version du serveur : 5.5.44-0+deb8u1 -- Version de PHP : 5.6.12-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SE...
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Feb 09, 2021 at 11:51 AM -- Server version: 5.7.32 -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `internet-broadband-v2` -- -- -------------...
<reponame>Zubieta/CPP # https://www.hackerrank.com/challenges/binary-search-tree-1 select n, case # The parent is null. when p is null then "Root" # N is the parent of any node in the table. when n = any(select p from bst) then "Inner" else "Leaf" end from bst order ...
<filename>data/test/sql/4ab1fc06df8cbacf1bc1ebf3e2b7ef668c2a8761update-expenses.sql DROP TRIGGER IF EXISTS `expensesUpdateTrigger`; DELIMITER // CREATE TRIGGER `expensesUpdateTrigger` AFTER UPDATE ON `expenses` FOR EACH ROW BEGIN DECLARE voucherHeaderId INT; set voucherHeaderId = (SELECT `voucher_headers`.`id` FROM `v...
INSERT INTO ref.mata_pelajaran_kurikulum VALUES (513, 100014000, 12, 0, 2, 1, 0, 0, 'N', NULL, '2015-04-28 02:00:00', '2018-01-27 01:00:00', NULL, '1901-01-01 00:00:00'); INSERT INTO ref.mata_pelajaran_kurikulum VALUES (513, 100015000, 10, 0, 2, 1, 0, 0, 'N', NULL, '2015-04-28 02:00:00', '2018-01-27 01:00:00', NULL, '1...
<reponame>mrdulin/nodejs-pg-knex-samples create table if not exists geotargets ( id serial primary key not null, criteria_id varchar(50) not null, criteria_name varchar(255) not null, canonical_name varchar(255) not null, parent_id varchar(50), country_code varchar(50) not null, target_type varchar(50) no...
-- Use WideWorldImporters database -- Use WideWorldImporters database /* Take a look at existing values */ SELECT * FROM [Warehouse].[Colors]; /* Insert a new value */ INSERT INTO [Warehouse].[Colors] ([ColorID], [ColorName], [LastEditedBy]) VALUES (99, 'Unknown', 1); /* Update inserted color */ UPDATE [Wareh...
<gh_stars>100-1000 -- wal2.test -- -- execsql { -- PRAGMA journal_mode = WAL; -- CREATE TABLE t1(a); -- INSERT INTO t1 VALUES(1); -- INSERT INTO t1 VALUES(2); -- INSERT INTO t1 VALUES(3); -- INSERT INTO t1 VALUES(4); -- } PRAGMA journal_mode = WAL; CREATE TABLE t1(a); INSERT INTO t1 VALUES(1); ...
<filename>src/test/resources/sql/select/c16f28ae.sql -- file:regex.sql ln:125 expect:true select 'a' ~ '()*\1'
-- original: amatch1.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE VIRTUAL TABLE t1 USING fts4(words); --, tokenize porter) ;INSERT INTO t1(t1) VALUES('optimize'); CREATE VIRTUAL TABLE temp.t1aux USING fts4aux(main, t1); SELECT term FROM t1aux WHERE col=0 ORDER BY 1 LIMIT 5 ;SELECT...
USE [PS_GameData] GO /****** Object: StoredProcedure [dbo].[usp_Read_User_CashPoint_UsersMaster] Script Date: 1/12/2021 12:15:09 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE Proc [dbo].[usp_Read_User_CashPoint_UsersMaster] @CashPoint int OUTPUT, @UserUID int AS SET NOCOUNT ON SET @Ca...
-- 2021-02-02T13:14:13.879Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID, AD_Column_ID, AD_Element_ID, AD_Org_ID, AD_Reference_ID, AD_Table_ID, ColumnName, ColumnSQL, Created, CreatedBy, DDL_NoForeignKey, EntityType, FacetFilterSeqNo, Field...
<gh_stars>1000+ -- 2017-03-28T21:06:35.263 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53054,540092,TO_TIMESTAMP('2017-03-28 21:06:35','YYYY-MM-DD HH24:...
.mode csv .separator "|" .headers on .import --skip 1 "tmp/authority/Authority_Code_FLAT_TYPE_AUT_psv.psv" FLAT_TYPE_AUT .import --skip 1 "tmp/authority/Authority_Code_GEOCODE_TYPE_AUT_psv.psv" GEOCODE_TYPE_AUT .import --skip 1 "tmp/authority/Authority_Code_GEOCODED_LEVEL_TYPE_AUT_psv.psv" GEOCODED_LEVEL_TYPE_AUT .im...
<gh_stars>0 DROP TABLE IF EXISTS `activatorEnvironment`; CREATE TABLE `activatorEnvironment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `activatorId` int(11) NOT NULL, `envId` int(11) NOT NULL, `lastUpdated` datetime DEFAULT NULL, `isActive` tinyint(4) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `id...
<gh_stars>0 -- View: list_group_relations -- DROP VIEW list_groups; CREATE OR REPLACE VIEW list_group_relations AS SELECT gr.id, gr.from_group_id, gr.to_group_id, gr.relationship_type_id, g.website_id FROM group_relations gr JOIN groups g on g.id=gr.from_group_id and g.deleted=false WHERE gr....
<gh_stars>1-10 ALTER TABLE swampy_games_config DROP COLUMN IF EXISTS story_time_counter, ADD normal_msg_points INTEGER DEFAULT 5, ADD picture_msg_points INTEGER DEFAULT 250, ADD reaction_points INTEGER DEFAULT 7, ADD vc_points_per_minute INTEGER DEFAULT 5, ADD no_no_words_points INTEGER DEFAULT ...
-- --Copyright (C) 2016 Transaction Processing Performance Council (TPC) and/or --its contributors. -- --This file is part of a software package distributed by the TPC. -- --The contents of this file have been developed by the TPC, and/or have been --licensed to the TPC under one or more contributor license agreements....
-- -- Copyright 2019 The Android Open Source Project -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applica...
<reponame>yoshitsugu/hagemai DROP TABLE IF EXISTS `issue`; CREATE TABLE `issue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(255) NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `body` text COLLATE utf8_unicode_ci NOT NULL, `priority` int(11) NOT NULL, `deadline` date, `state` ...
<reponame>DSnod93/grocery DROP DATABASE IF EXISTS grocery_store ; CREATE DATABASE grocery_store;
<reponame>cryoelite/ChoicesRemake-Backend USE [master] GO /****** Object: User [##MS_PolicyEventProcessingLogin##] Script Date: 04-11-2021 21:21:50 ******/ CREATE USER [##MS_PolicyEventProcessingLogin##] FOR LOGIN [##MS_PolicyEventProcessingLogin##] WITH DEFAULT_SCHEMA=[dbo] GO /****** Object: User [##MS_AgentSign...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 27, 2022 at 01:39 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
TRUNCATE TABLE user; INSERT INTO USER (first_name, last_name, user_name, email, password) VALUES ('Parker','Lubowitz','<NAME>','<EMAIL>','DmFPPuM9'); INSERT INTO USER (first_name, last_name, user_name, email, password) VALUES ('Gray','Buckridge','<NAME>','<EMAIL>','<PASSWORD>'); INSERT INTO USER (first_name, last_...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.23) # Database: hcmi_20032020 # Generation Time: 2020-03-24 03:22:01 +0000 # *****************************************...
<filename>db/151227-2320.sql -- phpMyAdmin SQL Dump -- version 4.4.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 27, 2015 at 04:20 PM -- Server version: 5.5.43 -- PHP Version: 5.4.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
create or replace package body pri_vilage is procedure privs_01(v_char varchar2) is CURSOR pri_cur is select table_name ,privilege from user_tab_privs_recd; v01 varchar2(5); begin v01:=upper(v_char); if v01='SYS' then for emp in pri_cur loop dbms_output.put_line(emp.table_name ||...
DROP TABLE casesvc.response;
<gh_stars>1-10 ALTER TABLE run ADD tags map<text, text>;
<filename>Unindo_tabelas/Alias.sql SELECT func.nome as "Nome", func.cpf as "CPF", dept.descricao as "Departamento" FROM funcionarios as func JOIN departamentos as dept ON func.id_departamento = dept.id_dept;
-- file:portals_p2.sql ln:64 expect:true FETCH all in foo22
<filename>src/test/resources/sql/insert/fcd1e532.sql -- file:create_misc.sql ln:153 expect:true INSERT INTO f_star (class, a, e, f) VALUES ('f', 22, '-7'::int2, '(111,555),(222,666),(333,777),(444,888)'::polygon)
-- -- Dataset size per engine -- CREATE OR REPLACE ALGORITHM = UNDEFINED SQL SECURITY INVOKER VIEW data_size_per_engine AS SELECT ENGINE, COUNT(*) AS count_tables, SUM(DATA_LENGTH) AS data_size, SUM(INDEX_LENGTH) AS index_size, SUM(DATA_LENGTH+INDEX_LENGTH) AS total_size, SUBSTRING_INDEX(G...
<filename>mysql/D1.sql DELIMITER // CREATE FUNCTION D1(_S0 double, _X double, _t double, _r double, _q double, _s double) RETURNS double BEGIN RETURN (Ln(_S0/_X)+_t*(_r-_q+Power(_s,2)/2))/(_s*Sqrt(_t)); END // DELIMITER ;
CREATE OR REPLACE VIEW erasure_bay.view_submit_data AS SELECT "data"-> > 'nonce' AS nonce, "data"->> 'esp_version' AS esp_version, "data"->> 'filename' AS filename, "data"->> 'encryptedSymKey' AS encrypted_sym_key, "data"->> 'receiver' AS requester, "data"->> 'message' AS message, "data"->> 'proofha...
CREATE TABLE IF NOT EXISTS "cce_fracciones_arancelarias"( "fraccion" text not null, "texto" text not null, "vigencia_desde" text not null, "vigencia_hasta" text not null, "unidad" text not null, PRIMARY KEY("fraccion") );
<filename>e7c3bd1f-2cac-4223-946d-0fe1547c71fd/843c07cc-e0e2-43cf-b576-d1b227885992.sql FROM "Hello World" TO OUT
INSERT INTO EVENTO (cod_evento, organizzatore, data_evento, luogo_evento, genere_evento, durata_evento) VALUES (29189, '', '03-DIC-2019', 'Antalaha', 'Fiera', 2.1); INSERT INTO EVENTO (cod_evento, organizzatore, data_evento, luogo_evento, genere_evento, durata_evento) VALUES (21067, 'TresZap', '10-MAG-2020', 'Qarqn', '...
SELECT question_, second_choice, answer, MAX(answer_count) FROM (SELECT question.`question_`, second_choice, response.`answer`, count(response.`answer`) as answer_count from question join response on question.question_ = response.question_ where `attempt` = 0 and `response`.`answer` != question.answer GROUP BY questio...
drop table if exists users; drop table if exists users_musictypes; drop table if exists musictypes; drop table if exists addresses; drop table if exists roles; create table roles ( id smallserial primary key, name varchar(16) not null unique ); insert into roles (name) values ('administrator'), ('moderator'), ...
<reponame>earlEBI/gwas-ui<filename>goci-interfaces/goci-ui/src/main/resources/_data.sql -- GWASCOUNTRIES INSERT INTO GWASCOUNTRIES (MAJORAREA, REGION, COUNTRY) VALUES ('Latin America and the Caribbean','Central America','Mexico'); INSERT INTO GWASCOUNTRIES (MAJORAREA, REGION, COUNTRY) VALUES ('Europe','Southern Europe'...
-- $Id$ -- test datetime ddl. create schema tempo; set schema 'tempo'; create table datetime1( col1 int not null primary key, datecol date default date '2002-05-23', timecol time default time '12:09:22', timestampcol timestamp default timestamp '2002-05-23 12:09:22'); create table datetime2( col1...
<reponame>datastax/astra-sdk-java /* ------------------------------------ */ /* USERS (RBAC) */ /* ------------------------------------ */ CREATE TABLE IF NOT EXISTS user ( email text, password <PASSWORD>, firstname text, lastname text, lang_key ...
ALTER TABLE ProcessInstanceLog ADD correlationKey VARCHAR(255) go ALTER TABLE TaskEvent ADD message VARCHAR(255) go ALTER TABLE AuditTaskImpl ADD workItemId NUMERIC(19,0) go UPDATE AuditTaskImpl SET workItemId = (SELECT workItemId FROM Task WHERE id = audittaskimpl.taskId) go CREATE INDEX IDX_PInstLog_correlation on ...
<gh_stars>1000+ DROP INDEX IF EXISTS ofMucConvLog_msg_id ON ofMucConversationLog; CREATE INDEX ofMucConvLog_msg_id ON ofMucConversationLog (messageID); UPDATE ofVersion SET version = 25 WHERE name = 'openfire';
<reponame>lol768/tabula<gh_stars>0 -- TAB-4188 CREATE TABLE UPSTREAMMODULELIST ( CODE NVARCHAR2(255) NOT NULL, ACADEMICYEAR NUMBER(4,0) NOT NULL, ROUTECODE NVARCHAR2(20) NOT NULL, YEAROFSTUDY NUMBER(2,0) NOT NULL, CONSTRAINT UPSTREAMMODULELIST_PK PRIMARY KEY (CODE) ); CREATE TABLE UPSTREAMMODULELISTENTRY ( ...
<gh_stars>0 /* SQLyog Ultimate v11.11 (32 bit) MySQL - 5.7.32-ndb-7.6.16 : Database - php_isil ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET...
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3307 -- Erstellungszeit: 12. Feb 2016 um 20:15 -- Server-Version: 10.0.17-MariaDB -- PHP-Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>Dvex/rustapp -- Your SQL goes here CREATE TABLE product ( id SERIAL PRIMARY KEY, description VARCHAR NOT NULL )
--https://stackoverflow.com/questions/27543873/sqlplus-conditional-execution-with-variable-from-query set define on feedback off serveroutput on whenever sqlerror exit sql.sqlcode rollback prompt prompt Test github.com/OraMUC/table-api-generator prompt ============================================================ prom...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 01-Dez-2017 às 04:11 -- Versão do servidor: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>Demoniakillah/MicroCMS insert into author values (1, 'Georges', 'Orwell'); insert into author values (2, 'James', 'Ellroy'); insert into book values (1, '1984', '2-07-036822-X', '1984 (Nineteen Eighty-Four) est le plus célèbre roman de <NAME>, publié en 1949. Il décrit une Grande-Bretagne trente ans après un...
-- phpMyAdmin SQL Dump -- version 4.4.15.7 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 06 2017 г., 17:44 -- Версия сервера: 5.5.50 -- Версия PHP: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<reponame>AndrePantano/Terminal -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 06-Jun-2016 às 00:49 -- Versão do servidor: 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_C...
CREATE TABLE Users ( Id BIGINT PRIMARY KEY IDENTITY, Username VARCHAR(30) NOT NULL, [Password] VARCHAR(26) NOT NULL, ProfilePicture VARCHAR(MAX), LastLoginTime DATETIME, IsDeleted BIT ) INSERT INTO Users (Username, [Password], ProfilePicture, LastLoginTime, IsDeleted) VALUES ('mirela', '<PASSWORD>', 'https://g...
DROP TABLE IF EXISTS messages; DROP TABLE IF EXISTS rooms; DROP TABLE IF EXISTS admins; DROP TABLE IF EXISTS participants; CREATE TABLE admins( adminid SERIAL PRIMARY KEY, name VARCHAR(225), password VARCHAR(225) ); CREATE TABLE rooms( roomid SERIAL PRIMARY KEY, name VARCHAR(225), adminid INT, FOREIGN KEY (adminid)...
<gh_stars>1-10 USE [azurejirametrics] GO /****** Object: Table [dbo].[jira_issues] Script Date: 9/20/2019 12:14:54 PM ******/ DROP TABLE [dbo].[jira_issues] GO /****** Object: Table [dbo].[jira_issues] Script Date: 9/20/2019 12:14:54 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo...
<filename>proj_1/MailOrder/create_mail.sql // mail order database as formatted for SQL MDB // create table zipcodes ( zip int, city str); . create table employees ( eno int, ename str, zip int, hstr str); . create table parts( pno int, pname str, ...
<gh_stars>1-10 CREATE OR REPLACE FUNCTION ts.insertdatasetrepository(_datasetid integer, _repositoryid integer, _notes character varying DEFAULT NULL::character varying) RETURNS void LANGUAGE sql AS $function$ INSERT INTO ndb.repositoryspecimens(datasetid, repositoryid, notes) VALUES (_datasetid, _repositoryid, _...
-- file:int8.sql ln:206 expect:true SELECT (-9223372036854775808)::int8 / (-1)::int2
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/insert/5411fcf6.sql<gh_stars>10-100 -- file:line.sql ln:25 expect:true INSERT INTO LINE_TBL VALUES ('[1,2,3, 4')
CREATE TABLE IF NOT EXISTS public.recent_projects ( id UUID NOT NULL, user_id UUID, project_id UUID, update_date TIMESTAMP WITHOUT TIME ZONE, operation TEXT, CONSTRAINT recent_projects_pkey PRIMARY KEY (id), CONSTRAINT recent_projects_user_id_fkey FOREIGN KEY (user_id) ...
<reponame>im-loki/dbms_project insert into class values('3','a'); insert into class values('3','b'); insert into class values('6','a'); insert into class values('6','b'); insert into class values('7','a'); insert into class values('7','b'); insert into class values('8','a'); insert into class values('8','b'); insert ...
--Put SQL statements here to drop columns, tables, etc.
library OPTPrepopulation version '1.0.0' using FHIR version '4.0.0' include FHIRHelpers version '4.0.0' called FHIRHelpers codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm' codesystem "LOINC": 'http://loinc.org' codesystem "HCPCS": 'https://hcpcs.codes/' codesystem "SNOMED-CT": 'http://snomed.info/sct' cod...
alter table "process_comments" ADD COLUMN "id" NUMBER; create sequence "process_comments_id_sequence"; update "process_comments" set "id" = "process_comments_id_sequence".nextval; ALTER TABLE "process_comments" ADD CONSTRAINT "process_comments_pk" PRIMARY KEY ("id");
DROP VIEW IF EXISTS view_buku_pengeluaran_awayan; CREATE VIEW view_buku_pengeluaran_awayan AS SELECT * FROM view_buku_pengeluaran_kabupaten WHERE 1 = 1 AND id_skpd = 34; GRANT ALL PRIVILEGES ON view_buku_pengeluaran_awayan TO lap_awayan; REVOKE INSERT, UPDATE, DELETE ON view_buku_pengeluaran_awayan FROM lap_awaya...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50714 Source Host : localhost:3306 Source Database : duoliang Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2019-09-24 22:59:29 */ -- ---------...
<filename>sql/display_cursor.sql SPOOL html/FullSqlTextAndPlans.txt APPEND; SELECT * FROM TABLE(dbms_xplan.display_cursor('&1',&2,format=>'+outline +PEEKED_BINDS')); SPOOL html/FullSqlTextAndPlans.html APPEND; SET MARKUP HTML OFF PREFORMAT OFF ENTMAP OFF; PRO </b><pre class="plan&3"> SET MARKUP HTML ON PREFORMAT...
-- MySQL dump 10.13 Distrib 5.7.9, for Win32 (AMD64) -- -- Host: localhost Database: kikmidia -- ------------------------------------------------------ -- Server version 5.7.9 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
-- Number of movies released by country SELECT country_name, COUNT(*) AS moviews_released FROM movies m JOIN countries c ON m.country_id = c.id GROUP BY c.country_name ORDER BY c.country_name;
<reponame>frederickm13/data-science CREATE MASTER KEY; CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential WITH IDENTITY = 'dallasanimals', SECRET = '<AccessKeyHere>' ; CREATE EXTERNAL DATA SOURCE AnimalShelterData WITH ( TYPE = HADOOP, LOCATION = '<ContainerLocationHere>', CREDENTIAL = AzureStorageCredential...
CREATE TABLE [dbo].[Lvf_Categorie] ( [IdCategorie] INT NOT NULL PRIMARY KEY, [LibelleCategorie] TEXT NOT NULL )
<filename>sql/create_averaged_location.sql DROP TABLE IF EXISTS averaged_location; CREATE TABLE averaged_location ( device_id integer, time_stamp timestamp, -- was: integer minute integer, hour integer, year integer, day_of_week integer, day_of_year integer, longitude float, latitude float, accurac...
-- +migrate Up create table network_server ( id bigserial primary key, created_at timestamp with time zone not null, updated_at timestamp with time zone not null, name varchar(100) not null, server varchar(255) not null ); create index idx_network_server_created_at on network_server(created_at); c...
# --- !Ups INSERT INTO `books` (`id`, `title`, `author`, `meta`) VALUES (1, 'Brave New World', '<NAME>', 34503), (2, 'New Moon', '<NAME>', 33785), (3, 'Angels & Demons', '<NAME>', 33408), (4, 'The Curious Incident of the Dog in the Night-Time', '<NAME>', 32866), (5, 'Life of Pi', '<NAME>', 32101), (6, 'The Fellowshi...
<filename>Four2One/Four2One/Scripts/DBUpdate/SystemObjects/Tables/TableEdits/mst_Drug.sql If NOT Exists(Select * from sys.columns where Name = N'Abbreviation' AND Object_ID = Object_ID(N'mst_Drug')) BEGIN ALTER TABLE mst_Drug ADD Abbreviation varchar(100) null END
--liquibase formatted sql --changeset nvoxland:1 create table test1 ( id int not null primary key, name varchar(255) ); --rollback delete from test1; --changeset nvoxland:2 insert into test1 (id, name) values (1, 'name 1'); insert into test1 (id, name) values (2, 'name 2'); --changeset ryan:1 con...
CREATE TABLE exact_match_source_selectors( environment VARCHAR(128), source VARCHAR(512) NOT NULL, query_type VARCHAR(512), update_time TIMESTAMP NOT NULL, resource_group_id VARCHAR(256) NOT NULL, PRIMARY KEY (environment, source, resource_group_id), UNIQUE (source, environment, query...
INSERT INTO `sys_apis` VALUES (1, '2019-09-28 11:23:49', '2019-09-28 17:06:16', NULL, NULL, '/base/login', '用户登录', 'base', 'POST'); INSERT INTO `sys_apis` VALUES (2, '2019-09-28 11:32:46', '2019-09-28 17:06:11', NULL, NULL, '/base/register', '用户注册', 'base', 'POST'); INSERT INTO `sys_apis` VALUES (3, '2019-09-28 11:33:4...
BEGIN; \echo \echo 'tb_flights' SELECT count(*) FROM tb_flights; SELECT * FROM tb_flights LIMIT (5); \echo \echo 'tb_airports' SELECT count(*) FROM tb_airports; SELECT * FROM tb_airports LIMIT (5); \echo \echo 'tb_weather' SELECT count(*) FROM tb_weather; SELECT * FROM tb_weather LIMIT (5); \echo \echo 'tb_proyecto' SE...
<reponame>agalbrai/PIMS PRINT 'Update AdministrativeAreas' -- Copy the city name into the AdministrativeArea. INSERT INTO dbo.[AdministrativeAreas] ( [Name] , [Abbreviation] ) SELECT [Name] , [Code] FROM #Cities DROP TABLE #Cities -- Copy the municipality name into the AdministrativeArea. INSERT INTO...
select fn_db_add_column('image_transfers', 'active', 'BOOLEAN NOT NULL DEFAULT FALSE');
<reponame>rune/pgFormatter<filename>t/test-files/ex26.sql PREPARE demo AS INSERT INTO demo VALUES (1, 2, 3, 4); PREPARE demo AS SELECT * FROM demo WHERE id IN (1, 2, 3, 4); PREPARE demo AS UPDATE demo SET lbl = 'unknown' WHERE id IN (1, 2, 3, 4); PREPARE demo AS DELETE FROM demo WHERE id IN (1, 2, 3, 4);
ALTER TABLE acknowledges MODIFY acknowledgeid DEFAULT NULL; ALTER TABLE acknowledges MODIFY userid DEFAULT NULL; ALTER TABLE acknowledges MODIFY eventid DEFAULT NULL; DELETE FROM acknowledges WHERE NOT userid IN (SELECT userid FROM users); DELETE FROM acknowledges WHERE NOT eventid IN (SELECT eventid FROM events); ALTE...
<reponame>jianjunx/farcai-go CREATE TABLE `tbl_blog_user`( `uid` BIGINT(20) NOT NULL, `user_name` VARCHAR(64) NOT NULL, `passwd` VARCHAR(64) NOT NULL, `avatar` VARCHAR(64), `create_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TI...
CREATE TABLE IF NOT EXISTS Config ( userId INT(11) PRIMARY KEY AUTO_INCREMENT, logFalls BOOLEAN NOT NULL DEFAULT 1, routLogInterval TIME NOT NULL DEFAULT '24:00:00', emailLogs BOOLEAN NOT NULL DEFAULT 1, emailInterval TIME NOT NULL DEFAULT '720:00:00', alertEmailFalls BOOLEAN NOT NULL DEFAULT 1...
<gh_stars>0 CREATE TABLE users.AspNetUserClaims_History ( Id int NOT NULL, UserId int NOT NULL, ClaimType nvarchar(max) NULL, ClaimValue nvarchar(max) NULL, LastUpdated datetime2(7) NOT NULL, LastUpdatedBy int NULL, SysStartTime datetime2(0) NOT NULL, SysEndTime datetime2(0) NOT...
<reponame>navikt/bidrag-grunnlag -- Table: grunnlagspakke -- DROP TABLE grunnlagspakke; CREATE TABLE IF NOT EXISTS grunnlagspakke ( grunnlagspakke_id integer NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ), opprettet_av varchar(255) NOT NULL, oppret...
<filename>sql/Author/Views/VW_Authors/VW_Authors.create.sql<gh_stars>0 -- Create a new view called 'VW_Authors' in schema 'dbo' -- Drop the view if it already exists IF EXISTS ( SELECT * FROM sys.views JOIN sys.schemas ON sys.views.schema_id = sys.schemas.schema_id WHERE sys.schemas.name = N'dbo' AND sys.vi...
<gh_stars>1-10 create table users ( user_id uuid not null default uuid_generate_v4(), username username not null, email email not null, password text not null, primary key (user_id), unique (username), unique (email) ); select add_timestamps('users'); --- drop table users;
<gh_stars>1-10 INSERT INTO `#__jshopping_payment_method` (`name_ru-RU`, `description_ru-RU`,`name_en-GB`, `description_en-GB`, `payment_code`, `payment_class`, `payment_publish`, `payment_ordering`, `payment_params`, `payment_type`, `price`, `price_type`, `tax_id`, `show_descr_in_email`) VALUES ('Интеркасса', '','inte...
CREATE OR REPLACE FUNCTION ti.getrocktypebyname(_rocktype character varying) RETURNS TABLE(rocktypeid integer, rocktype character varying, higherrocktypeid integer, description character varying) LANGUAGE sql AS $function$ select rt.rocktypeid, rt.rocktype, rt.higherrocktypeid, rt.description from ndb.rockt...
<gh_stars>1-10 USE [ANTERO] GO /****** Object: StoredProcedure [sa].[p_lataa_sa_haku_ja_valinta_vuosikello_korkea_aste] Script Date: 8.6.2021 21:52:03 ******/ DROP PROCEDURE IF EXISTS [sa].[p_lataa_sa_haku_ja_valinta_vuosikello_korkea_aste] GO /****** Object: StoredProcedure [sa].[p_lataa_sa_haku_ja_valinta_vuos...
<filename>src/test/resources/sql/create_trigger/c56af5a1.sql -- file:with.sql ln:903 expect:true CREATE TRIGGER y_trig BEFORE INSERT ON y FOR EACH ROW EXECUTE PROCEDURE y_trigger()
-- AlterTable ALTER TABLE "MiscCadSettings" ALTER COLUMN "pairedUnitTemplate" SET DEFAULT E'1A-{callsign1}';
<reponame>newjersey/d4ad -- intentionally left blank
<gh_stars>10-100 CREATE DATABASE OpenAccounting; USE OpenAccounting; CREATE TABLE chart ( Account INTEGER PRIMARY KEY NOT NULL, Name STRING (50) NOT NULL, ActyType STRING (6) NOT NULL, Balance REAL ); CREATE TABLE journal ( [Transaction] INT PRIMARY KEY ...
CREATE TABLE `TB_MEMBER` ( `SNO` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `NAME` TEXT NOT NULL, `PASSWORD` TEXT NOT NULL, `SALT` TEXT NOT NULL, `EMAIL` TEXT NOT NULL ); CREATE TABLE `TB_SETUP` ( `PB_SNO` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `TITLE` TEXT, `SUB_TITLE` TEXT, `MAIN_PHOTO_URL` TEXT, ...
<reponame>Raven-St/a21-remote-site -- !Ups -- This is a simple join table (conceptually) of users and their starred program items. CREATE TABLE starred_items ( login_id text NOT NULL, item_id text NOT NULL ); -- Note that we specifically want a non-unique index, so it's not a primary key: CREATE INDEX star_inde...