sql
stringlengths
6
1.05M
<reponame>MuhamadRidwan96/projectmain -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 10, 2021 at 09:08 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
-- SEO Categories ALTER TABLE `dd_category` ADD COLUMN `MetaDescription` varchar(1000) NOT NULL, ADD COLUMN `MetaKeyword` varchar(160) NOT NULL; ALTER TABLE `dd_category` CHANGE COLUMN `MetaDescription` `MetaDescription` varchar(1000) NOT NULL; UPDATE `dd_category` SET `MetaDescription` = '', `MetaKeyword` = 'air con...
<reponame>tes/kubernaut<gh_stars>0 START TRANSACTION; CREATE TABLE account_roles ( id UUID PRIMARY KEY, account UUID NOT NULL REFERENCES account ON DELETE CASCADE, role UUID NOT NULL REFERENCES role ON DELETE CASCADE, subject UUID, subject_type VARCHAR(16) NOT NULL, created_on TIMESTAMP WITH TIME ZONE NOT ...
<filename>data-processing/fec/FECScraper.sql /* FEC database creation scripts: ------------------------------ By <NAME>, USA Today In this file, you'll find all the necessary scripts to create an FEC database on SQL Server, including tables and stored procedures used by the FEC Scraper and FEC Parser Python scripts to...
<gh_stars>1-10 EXEC ('DROP VIEW IF EXISTS [zno$(ZnoYear)].[SchoolsWithStudentsWith190AvgTop10]') GO CREATE VIEW [zno$(ZnoYear)].[SchoolsWithStudentsWith190AvgTop10] AS SELECT TOP (10) COUNT(DISTINCT V.OutID) AS StudentsN ,Schools.EOName FROM [zno$(ZnoYear)].PersonScoresWithAvg AS V INNER JOIN [zno$(ZnoYear)].Sc...
BACKUP DATABASE DaedalicProductDatabase TO DISK = N'DaedalicProductDatabase.bak' WITH FORMAT GO
<filename>mshopVgitsalah/eshop (2).sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 18, 2020 at 03:15 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zon...
<reponame>T-taku/kenny2automate CREATE TABLE IF NOT EXISTS guilds ( -- guild ID guild_id integer PRIMARY KEY NOT NULL, -- bad words words_censor text, -- disabled commands guild_disabled_commands text, -- disabled cogs guild_disabled_cogs text )
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Waktu pembuatan: 11 Jul 2021 pada 07.51 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<reponame>amirhnajafiz/DB-Final-Project<filename>source/sql/table/relation/movie_tag.sql CREATE TABLE "movie_tag" ( tag_id int, movie_id int, PRIMARY KEY (tag_id, movie_id), FOREIGN KEY (tag_id) REFERENCES "tag" (tag_id) ON DELETE CASCADE, FOREIGN KEY (movie_id) REFERENCES "movie" (movie_id) ON DELETE CASCADE );
SELECT SUM(downloads) FROM fake_apps;
DROP MATERIALIZED VIEW IF EXISTS pafi2 CASCADE; CREATE MATERIALIZED VIEW pafi2 as ( -- because pafi has an interaction between vent/PaO2:FiO2, we need two columns for the score -- it can happen that the lowest unventilated PaO2/FiO2 is 68, but the lowest ventilated PaO2/FiO2 is 120 -- in this case, the SOFA sco...
<reponame>DataChant/amazon-quicksight-sdk-proserve<gh_stars>10-100 CREATE OR REPLACE VIEW users AS (select Namespace, Group, User, (case when Group in ('quicksight-fed-bi-developer', 'quicksight-fed-bi-admin') then 'Author' else 'Reader' end) as author_status from "group_membership" )
-- note that our postgres 9.5. does not yet have "ADD COLUMN IF NOT EXISTS" DO $$ BEGIN -- 2019-01-25T12:25:13.098 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ ALTER TABLE public.AD_Table_Process ADD COLUMN AD_Tab_ID NUMERIC(10) ; EXCEPTION WHEN SQLSTATE '42701' THEN RAISE NOTICE 'At ...
update c_acctschema_gl set usecurrencybalancing='N', updated=now(), updatedby=99 where usecurrencybalancing='Y';
<gh_stars>1-10 ALTER TABLE `item_template` CHANGE `AllowableClass` `AllowableClass` mediumint(9) not null default '-1'; ALTER TABLE `item_template` CHANGE `AllowableRace` `AllowableRace` mediumint(9) not null default '-1'; UPDATE `item_template` SET `AllowableClass` = -1 WHERE `AllowableClass` = 0; UPDATE `item_templ...
INSERT INTO loones.data_dataprice (price, `date`, add_date, subcategory_id) VALUES(2200, '2019-07-1 00:00:00.000', '2019-07-12 00:00:00', 1); INSERT INTO loones.data_dataprice (price, `date`, add_date, subcategory_id) VALUES(2300, '2019-07-2 00:00:00.000', '2019-07-12 00:00:00', 1); INSERT INTO loones.data_dataprice (p...
ALTER TABLE [membership].[Actions] ADD CONSTRAINT [FK_Actions_Modules] FOREIGN KEY ([IdModule]) REFERENCES [membership].[Modules] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;
<gh_stars>0 -- begin LUPREVIEW_ENTITY_PROPERTY create table LUPREVIEW_ENTITY_PROPERTY ( ID varchar2(32), CREATE_TS timestamp, CREATED_BY varchar2(50 char), UPDATE_TS timestamp, UPDATED_BY varchar2(50 char), VERSION number(10) not null, -- USER_ID varchar2(32), ENTITY_NAME varchar2(25...
<gh_stars>1-10 -- ### Creating Table: country ### -- CREATE TABLE country (); ALTER TABLE country ADD COLUMN country_code VARCHAR(3) PRIMARY KEY; ALTER TABLE country ADD COLUMN description VARCHAR(100) NOT NULL; -- ### Creating Comments on table ### -- COMMENT ON TABLE country IS 'Standar...
ALTER TABLE entityav_boolean ADD created_by VARCHAR(100) DEFAULT NULL;
<filename>src/console/db/queries/entities/websites/selectByOrganizationId.sql SELECT websites.* FROM entity_graph.websites, entity_graph.organizations_websites WHERE organizations_websites.organization_id = $1 AND organizations_websites.website_id = websites.id
TRUNCATE TABLE EmployeeJobTitleRejectLog11 ; TRUNCATE TABLE EmployeeHireDateRejectLog12 ; TRUNCATE TABLE EmployeeJobTitleAllow24 ; TRUNCATE TABLE EmployeeHireDateAllow25 ; TRUNCATE TABLE PersonStaging ; TRUNCATE TABLE PersonAllNamesNullRejectLog9 ; TRUNCATE TABLE PersonTypeReject10 ; TRUNCATE TABLE PersonTypeEmptyRejec...
-- -- Table structure for table `reports` -- CREATE TABLE IF NOT EXISTS `reports` ( `report_id` int(11) NOT NULL AUTO_INCREMENT, `report_name` varchar(256) NOT NULL, PRIMARY KEY (`report_id`) );
DROP TABLE XD_JOB_REGISTRY IF EXISTS; DROP TABLE XD_JOB_REGISTRY_STEP_NAMES IF EXISTS;
create or replace function badge.register ( p_account_id badge.badge.account_id%TYPE, p_code badge.badge.reg_key%TYPE , p_displayName badge.badge.display_name%TYPE ) returns int AS $$ declare v_radio_id badge.badge.radio_id%TYPE; begin update badge.badge set account_id = p_account_id, display_name = p_dis...
<reponame>songjiangfeng/iris-blog -- MySQL dump 10.18 Distrib 10.3.27-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: iris_blog -- ------------------------------------------------------ -- Server version 10.3.27-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD...
create table `quota_limit` ( `organization_id` int not null ,`app_user_id` int not null ,`name` varchar(40) not null ,`unit` varchar(8) not null ,`date` datetime not null ,`count` int not null ,primary key(`organization_id`, `app_user_id`, `name`, `unit`, `date`) ,foreign key(`organization_id`) references `organizatio...
<gh_stars>0 -- Listing 3.13.sql -- Aufruf einer skalaren UDF in der Feldliste SELECT get_parcel_price(width, height, depth, weight ) FROM parcels;
DROP TABLE IF EXISTS flavor_stashes;
# LESSON 10 (A). # Please DO try the following queries yourselves but most importantly try different variations and always ask yourself: "Why am I getting this back?". # The INSERT INTO statement. # It is used to insert new records in a table and is possible to write it in two ways. # The first way specifies both the...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Mar 22, 2017 at 10:51 AM -- Server version: 10.1.9-MariaDB-log -- PHP Version: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Aug 23, 2020 at 02:48 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
<filename>Is-201/SQL/Mandatory4, Vigilantes.sql drop database man4; create database man4; use man4; /* Creates a table for users. */ create table `user` ( user_id varchar(5) primary key, user_name varchar(40), user_email varchar(30), user_number int(12) ); insert into `user` (user_id, user_name, user_ema...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 13 Ağu 2021, 08:19:55 -- Sunucu sürümü: 10.4.20-MariaDB -- PHP Sürümü: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
/* author:@shivkrthakur */ /* Short database description "Recycling firm": The firm owns several buy-back centers for collection of recyclable materials. Each of them receives funds to be paid to the recyclables suppliers. Data on funds received is recorded in the table Income_o(point, date, inc) The primary key is ...
<gh_stars>10-100 -- AlterTable ALTER TABLE "DiscordRoles" ADD COLUMN "whitelistedRoleId" TEXT; -- AddForeignKey ALTER TABLE "DiscordRoles" ADD CONSTRAINT "DiscordRoles_whitelistedRoleId_fkey" FOREIGN KEY ("whitelistedRoleId") REFERENCES "DiscordRole"("id") ON DELETE SET NULL ON UPDATE CASCADE;
1. LOINC_NUM,Text,10 The unique LOINC Code is a string in the format of nnnnnnnn-n. 2. COMPONENT,Text,255 First major axis-component or analyte 3. PROPERTY,Text,"30 Second major axis-property observed (e.g., mass vs. substance)" "Third major axis-timing of the measurement (e.g., point in time vs 24 4. TIME_ASPCT",Text,...
-- 2018-07-05T19:55:11.261 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2018-07-05 19:55:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=560663 ; -- 2018-07-05T19:55:13.116 -- I forgot to set the DICTIONARY_ID_COMMENTS System...
<gh_stars>10-100 create table acos ( uuid uuid not null primary key, cms_id character varying(8) unique null, name text not null, created_at timestamp with time zone not null default now(), updated_at timestamp with time zone not null default now(), client_id text null, alpha_secret text null, public_ke...
create or replace function test_nospec() returns void language plpgsql AS ''; create or replace function test_volatile() returns void language plpgsql VOLATILE AS ''; create or replace function test_immutable() returns void language plpgsql IMMUTABLE AS ''; create or replace function test_stable() returns voi...
<reponame>kevin-at-datical/liquibase-test-harness<filename>src/main/resources/liquibase/harness/change/expectedSql/oracle/19/enableCheckConstraint.sql<gh_stars>0 ALTER TABLE LBUSER.posts ADD CONSTRAINT test_check_constraint CHECK (id > 0) DISABLE ALTER TABLE LBUSER.posts ENABLE CONSTRAINT test_check_constraint
<gh_stars>0 //////////////sms select count(distinct(called)),min(send_time), sum(if(send_time >='2013-03-15 00:00:00' and send_time<'2013-03-15 01:00:00',1,0)) w0, sum(if(send_time >='2013-03-15 01:00:00' and send_time<'2013-03-15 02:00:00',1,0)) w1, sum(if(send_time >='2013-03-15 02:00:00' and send_time<'2013...
create or replace view v_foreign_keys as select FN.nspname as "Fnamespace",FR.relname as "Frelation",FA.attname as "Fcolumn", PN.nspname as "Pnamespace",PR.relname as "Prelation",PA.attname as "Pcolumn", CN.nspname as "Cnamespace",C.conname as "Cname",c.confupdtype || c.confdeltype as "ud" from pg_constraint C j...
CREATE DATABASE IF NOT EXISTS chicago; !quit
<gh_stars>100-1000 -- Deploy cookbook_version_checksums -- requires: cookbook_versions -- requires: checksums BEGIN; CREATE TABLE IF NOT EXISTS cookbook_version_checksums( cookbook_version_id CHAR(32) NOT NULL REFERENCES cookbook_versions(id), org_id CHAR(32) NOT NULL, checksum CHAR(32) NOT NULL, FOREIGN KEY ...
<gh_stars>10-100 UPDATE identity_verifiable_addresses SET expires_at = CURRENT_TIMESTAMP WHERE expires_at IS NULL
<reponame>nucleotides/event-api -- Drop this view first to then drop dependent views DROP VIEW completed_benchmark_metrics; -- No longer going to base the completed_benchmark_metrics table off of this view DROP VIEW image_task_benchmarking_state; -- -- View of numbers of tasks per benchmark instance by benchmark typ...
USE Aromatherapy GO -- Show the contents before the trigger is run SELECT * from TriggerMessages -- Issue the command that will invoke the trigger UPDATE Oils SET Description = 'New Description' WHERE OilName = '<NAME>' -- Show the contents after the trigger is run SELECT * FROM TriggerMessages
<gh_stars>0 DROP TABLE IF EXISTS `onspotmy_node_db`.`node_gateways`; CREATE TABLE `onspotmy_node_db`.`node_gateways` ( `index` INT UNSIGNED AUTO_INCREMENT NOT NULL, `lc_id` INT UNSIGNED NOT NULL, `gtwy_id` CHAR(4) NOT NULL, `fl_id` INT UNSIGNED NOT NULL, PRIMARY KEY (`lc_id`, `gtwy_id`), FOREIGN KEY ...
-- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: teste_dev.mysql.dbaas.com.br Database: teste_dev -- ------------------------------------------------------ -- Server version 5.7.32-35-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
-- +micrate Up -- SQL in section 'Up' is executed when this migration is applied CREATE SEQUENCE request_items_id_seq; CREATE TABLE request_items ( id BIGINT PRIMARY KEY NOT NULL DEFAULT nextval('request_items_id_seq'), uuid UUID NOT NULL, client_uuid UUID NOT NULL, connection_id BIGINT, remote_ip VARCHAR(200...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 03, 2019 at 06:35 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.2.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
ALTER TABLE `emailTwoFactor` DROP `userToken`, DROP `attempt`; DROP TABLE `totpToken`;
<gh_stars>100-1000 #This table contains the same data as the genemap2.txt file downloaded from OMIM CREATE TABLE omimGeneMap2 ( location varchar(255), # Cyto Location compCtyoLoc varchar(255), # Computed Cyto Location omimId int not null, # Mim Number geneSymbol varchar(255), # Gene Symbol(s) geneNa...
<gh_stars>1-10 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = dis, pg_catalog; -- -- Name: in_array(anyarray, any...
---------------------- -- Create new entities ---------------------- -- hellfrog.settings.db.h2.CommonPreferencesDAOImpl -- hellfrog.settings.db.entity.CommonPreference create table common_preferences ( key varchar(60) not null primary key, string_value varchar(64) not null, long_value bigint ...
<gh_stars>10-100 -- PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS `accounts` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` VARCHAR(255), `institution` VARCHAR(255), `ignore_transactions` TINYINT(1) DEFAULT 0, `account_id` VARCHAR(255), `item_id` VARCHAR(255), `type` VARCHAR(255), `subtype` VA...
CREATE TABLE [NTangle].[CustomerBatchTracking] ( [BatchTrackingId] BIGINT IDENTITY (1, 1) NOT NULL PRIMARY KEY CLUSTERED ([BatchTrackingId] ASC), [CreatedDate] DATETIME2 NOT NULL, [IsComplete] BIT NOT NULL, [CompletedDate] DATETIME2 NULL, [CorrelationId] NVARCHAR(127) NULL, [HasDataLoss] BIT NOT NULL, [Cu...
<reponame>DzonnyDZ/Caps ALTER TABLE [dbo].[Image] ADD CONSTRAINT [CHK_Image_NoEmptyStrings] CHECK ([RelativePath]<>'');
<gh_stars>1000+ -- DROP FUNCTION getCostPrice(numeric, numeric, numeric); CREATE OR REPLACE FUNCTION getCostPrice ( p_M_Product_ID numeric, p_AD_Client_ID numeric, p_AD_Org_ID numeric ) RETURNS numeric AS $BODY$ SELECT COALESCE(sum(cost.CurrentCostPrice), 0) FROM M_Cost cost INNER JOIN C_AcctSchema acs on acs....
<gh_stars>0 drop table if exists metaobj_form_def; create table metaobj_form_def (id varchar(36) not null, description varchar(255), documentRoot varchar(255) not null, owner varchar(255) not null, created datetime not null, modified datetime not null, systemOnly bit not null, externalType varchar(255) not null, siteId...
-------------------------------------------------------- -- File created - Tuesday-January-19-2016 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table BOOT_CAMP_TEAM1_USERS -------------------------------------------------------- ...
<reponame>acrossmountain/spring-demo-redpack /* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 80012 Source Host : localhost:3306 Source Schema : red_pack Target Server Type : MySQL Target Server Version : 80012 File Enco...
alter database glass default character set latin1 collate latin1_swedish_ci;
SELECT name FROM employees WHERE age = 32;
<gh_stars>1-10 --load select * from custom_converter where field = /*: custom =*/ 1 /**/ ; --testQueryParamter select * from person1 WHERE id = /*=*/ 1 /**/;
DELETE FROM accounts WHERE id = ?;
SELECT ((1, 2), (2, 3), (3, 4)) FORMAT TSVWithNames; SELECT ((1, 2), (2, 3), (3, 4)) FORMAT TSVWithNames SETTINGS legacy_column_name_of_tuple_literal = 1;
drop database if exists `portal_versus`; create database `portal_versus`; use `portal_versus`; grant usage on portal_versus.* to portal_versus@localhost identified by '@portal_versus#'; grant select, insert, update, delete, drop, alter, create temporary tables on portal_versus.* to portal_versus@localhost; flush priv...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Nov 2021 pada 11.48 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<filename>sql/marketplace.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 21, 2019 at 05:11 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
create database if not exists simple_seguridad; use simple_seguridad; create table if not exists perfiles ( id int not null AUTO_INCREMENT, nombre varchar(50) not null, PRIMARY KEY (id), UNIQUE KEY nombre (nombre) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE if not exists usuarios ( id int NOT NULL AUTO_...
<reponame>navikt/familie-ef-iverksett ALTER TABLE iverksett_resultat ADD COLUMN tilbakekrevingResultat JSON;
-- Script sacado de: -- http://www.agevaled.com/wp-content/uploads/provincias%20y%20localidades.txt INSERT INTO ciudad VALUES (1, 1, '25 de Mayo'), (2, 1, '3 de febrero'), (3, 1, '<NAME>'), (4, 1, '<NAME>'), (5, 1, '<NAME>'), (6, 1, 'Alberti'), (7, 1, 'Arrecifes'), (8, 1, 'Ayacucho'), (9, 1, 'Azul'), (10, 1, '<NAME>')...
CREATE TABLE IF NOT EXISTS Users ( ID INT NOT NULL UNIQUE AUTO_INCREMENT, Username VARCHAR ( 127 ) NOT NULL UNIQUE, Password VARCHAR ( 127 ) NOT NULL, PRIMARY KEY ( ID ) )
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: mysql-container -- Generation Time: Jun 21, 2019 at 07:15 AM -- Server version: 5.5.62 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<filename>sql/data-cats.sql INSERT INTO Wrogowie (nazwa_wroga, gatunek) VALUES ('Fafik', 'Pies'); INSERT INTO Wrogowie (nazwa_wroga, gatunek) VALUES ('Stefan', 'Czlowiek'); INSERT INTO Wrogowie (nazwa_wroga, gatunek) VALUES ('Ochroniarz', 'Czlowiek'); INSERT INTO Wrogowie (nazwa_wroga, gatunek) VALUES ('Andrzej', 'G...
<reponame>julyerr/wenwo INSERT INTO `wenwo_admin_user` (`id`, `in_time`, `password`, `token`, `username`, `role_id`) VALUES (1, '2018-07-18 00:00:00', '$2a$10$Tudq82ap3RQ0oG8Ts/EL2.pPiwuWe.cS.EHnSbu30lie5fU76YaWS.', '7098<PASSWORD>', 'admin', 1); INSERT INTO `wenwo_permission` (`id`, `name`, `pid`, `url`, `value`) V...
<reponame>mbogner/invoicing -- we are using uuids as default id values create extension if not exists "uuid-ossp"; -- let's use utc for sure DROP FUNCTION IF EXISTS now_utc; create or replace function now_utc() returns timestamp as $$ select now() at time zone 'utc'; $$ language sql; -- increment lock_version if not ...
-- file:create_index.sql ln:117 expect:true CREATE TABLE radix_text_tbl AS SELECT name AS t FROM road WHERE name !~ '^[0-9]'
<reponame>andresg747/baldur-app /* Warnings: - You are about to drop the column `projectId` on the `Blockchain` table. All the data in the column will be lost. - Added the required column `tokenId` to the `Blockchain` table without a default value. This is not possible if the table is not empty. */ -- DropForei...
select sys_context( 'userenv', 'current_schema' ) as "Default Schema" , user as "Current User" from dual;
DROP TABLE IF EXISTS `script_texts`; CREATE TABLE `script_texts` ( `ScriptName` varchar(255) NOT NULL default '', `Id` int(11) unsigned NOT NULL default '0', `Sound` int(11) unsigned NOT NULL default '0', `Type` int(11) unsigned NOT NULL default '0', `Language` int(11) unsigned NOT NULL default '0', `Text` varchar(255)...
DO $_$ DECLARE z text; BEGIN z:=$FUNCTIONBODY$ CREATE OR REPLACE FUNCTION vocabulary_download.get_umls_prepare (iPath text, iFilename text) RETURNS void AS $BODY$#!/bin/bash #set permissions=775 by default umask 002 && \ cd "$1/work" && \ f=$(unzip -l "$2" | awk 'NR == 4 {print $4}') && \ ...
/******************************************************** Query will feed the export ETL back to CAMP. 02.24.21 srr straight pull from snd.PkgCategories table ********************************************************/ SELECT pc.CategoryId, pc.Description, pc.Comment, pc.Active, pc.SortO...
<filename>modules/core/db/update/postgres/13/130828-addDefaultTemplate.sql alter table REPORT_REPORT add column DEFAULT_TEMPLATE_ID uuid; alter table REPORT_REPORT add constraint FK_REPORT_REPORT_TO_DEF_TEMPLATE foreign key (DEFAULT_TEMPLATE_ID) references REPORT_TEMPLATE (ID);
CREATE TABLE IF NOT EXISTS metric ( id uuid, metricId uuid, connectionErrors int, writeTimeouts int, readTimeouts int, unavailables int, otherErrors int, retries int, ignores int, knownHosts int, connectedTo int, openConnections int, reqCount int, reqMinLatency d...
INSERT INTO _log(message) SELECT concat('Database "', CURRENT_SCHEMA(), '" updated');
<gh_stars>1-10 SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Tables */ DROP TABLE IF EXISTS js_filemanager_shared; DROP TABLE IF EXISTS js_filemanager_folder; /* Create Tables */ -- 文件管理文件夹 CREATE TABLE js_filemanager_folder ( id varchar(64) NOT NULL COMMENT '编号', parent_code varchar(64) NOT NULL C...
CREATE FUNCTION func430() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE160);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE371);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE457);val:=(SELECT COUNT(*)INTO MYCOU...
<filename>store/postgres/migrations/2018-07-10-061659_create_history_tables/up.sql /************************************************************** * CREATE TABLES **************************************************************/ -- Stores the metadata from each SQL transaction CREATE TABLE IF NOT EXISTS event_meta_data (...
<filename>Data/dump.sql<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.17-log - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- ---------------------...
<filename>docs/database/dump/votoelettronico_votiespressi.sql -- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: votoelettronico -- ------------------------------------------------------ -- Server version 8.0.27 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
<gh_stars>0 --ZAD19 SELECT nazwisko, to_char(zatrudniony, 'Month, DD YYYY') as data_zatrudnienia FROM pracownicy WHERE id_zesp=20 ORDER BY id_prac ----
DROP DATABASE IF EXISTS northwind; CREATE DATABASE northwind;
<reponame>fukakai/HackerRank-Solutions<gh_stars>0 /* Author: <NAME> Github: https://github.com/fukakai Portfolio: http://romain.dalichamp.fr Contact: <EMAIL> */ select NAME from STUDENTS where MARKS > 75 order by SUBSTR(NAME,-3,3), ID ASC;
<reponame>tbuffington7/data CREATE MATERIALIZED VIEW nist.lr_mr_pred AS SELECT tr.year, tr.tr10_fid AS geoid, tr.region, tr.state, g.id AS fd_id, 'size_'::text || g.population_class::text AS fd_size, 1 AS f_located, CASE WHEN acs."B25002_002E" > 0 THEN acs."B01001_001E"::do...
<reponame>patm1987/spoilerroulette<filename>model/SELECT_t___FROM_spoilers_spoilers_t.sql<gh_stars>0 INSERT INTO spoilers.spoilers (title, body, factual) VALUES ('Jar Jar''s Past', 'Jar Jar was one of the original Knights of Ren, establishing not just a pair but a high council of Siths.', 0); INSERT INTO spoilers.spoil...
<reponame>skylarkjava/skylark-knowledge SELECT * FROM USER_ROLES WHERE USER_ID = ? ; ;