sql
stringlengths
6
1.05M
<filename>setup.sql BEGIN; CREATE TABLE users ( id SERIAL PRIMARY KEY , username VARCHAR(255) NOT NULL , password VARCHAR(255) NOT NULL ); INSERT INTO users (username,password) VALUES ( 'uname1', '<PASSWORD>' ) , ( 'uname2', '<PASSWORD>' ) ; COMMIT;
<reponame>darkside/monocle -- Timestamp: 2016-10-15 00:00:00 -0300 CREATE MATERIALIZED VIEW foo AS SELECT 1;
<reponame>cookie1599/TaEvaluasi -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 16 Sep 2020 pada 14.10 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
<gh_stars>1-10 CREATE EXTENSION IF NOT EXISTS postgis;
<gh_stars>1-10 WITH RECURSIVE c0(src, trg) AS ((SELECT s0.src, s3.trg FROM (SELECT trg as src, src as trg, label FROM edge) as s0, (SELECT trg as src, src as trg, label FROM edge) as s1, (SELECT trg as src, src as trg, label FROM edge) as s2, edge s3 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s2.trg = s3.src AND s0....
CREATE OR REPLACE VIEW watchops.changes AS ( WITH all_commits AS ( SELECT source, event_type, metadata FROM watchops.events_raw WHERE event_type = 'push' ), commit AS ( SELECT index, i.source, i.event_type, element.timestamp AS tim...
<reponame>appNG/appng<filename>appng-core/src/main/resources/db/migration/mysql/V2_7_1__modify_datetime.sql alter table application modify version datetime(3); alter table authgroup modify version datetime(3); alter table database_connection modify version datetime(3); alter table permission modify version datetime(3);...
<reponame>ptrick/hdfs-hive-sql-playground version https://git-lfs.github.com/spec/v1 oid sha256:3951f72676b750a09154e8a5f17f67698da8b90880dd7aa75674ac6304051c83 size 271
<reponame>InsightsDev-dev/tajo<gh_stars>100-1000 select * FROM customer c right outer join (select n_nationkey from nation) n on n.n_nationkey = c.c_custkey join region r on r.r_regionkey = c.c_custkey;
<reponame>Madhur1997/skeema<filename>dumper/testdata/golden/posts.sql /* pre comment preserved */ CREATE TABLE `posts` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_id` bigint(20) unsigned NOT NULL, `body` varchar(150) DEFAULT NULL, `created_at` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`),...
INSERT INTO `9planner`.Course (Id, Archtype_id, Section, Type, Building, Room, Days, Start_time, End_time, Instructor) VALUES (1058, 1477, '001', 'MAIN', 'Van-Hecke-Wettach', '3031', 5, 1615, 1740, '<NAME>.'); INSERT INTO `9planner`.Course (Id, Archtype_id, Section, Type, Building, Room, Days, Start_time, End_time, Ins...
<reponame>cy-66/cy-66.github.io /* Navicat Premium Data Transfer Source Server : local.mysql.leimingyun.com Source Server Type : MySQL Source Server Version : 50725 Source Host : local.mysql.leimingyun.com Source Database : wangmarket Target Server Type : MySQL Target Server Vers...
<gh_stars>0 -- @testpoint:opengauss关键字reuse(非保留),作为用户名 --关键字reuse作为用户名不带引号,创建成功 drop user if exists reuse; CREATE USER reuse PASSWORD '<PASSWORD>'; --清理环境 drop user reuse; --关键字reuse作为用户名加双引号,创建成功 drop user if exists "reuse"; CREATE USER "reuse" PASSWORD '<PASSWORD>'; --清理环境 drop user "reuse"; --关键字reuse作为用户名加单引号,...
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 09 Sep 2015 pada 12.16 -- Versi Server: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
alter table sykmelding add column sendt_til_arbeidsgiver_dato TIMESTAMP WITH TIME ZONE null;
if object_id('[Rulebase].[NCS_VAL_Get_Cases]','p') is not null drop procedure [Rulebase].[NCS_VAL_Get_Cases] go -- ===================================================================================================== -- Generated by Data Dictionary Version 1.0.0.0 -- Date: 31 May 2017 10:50 -- Profile: DCSS Validati...
<reponame>pjfoley/pci-blackbox CREATE OR REPLACE FUNCTION Encrypt_CVC( OUT CVCKey text, _CardCVC text ) RETURNS TEXT AS $BODY$ DECLARE _CVCKeyHash bytea; _CVCData bytea; _OK boolean; BEGIN IF _CardCVC ~ '^[0-9]{3}$' THEN -- OK ELSE RAISE EXCEPTION 'ERROR_INVALID_INPUT'; END IF; CVCKey := encode(gen_random_byt...
<reponame>tushartushar/dbSmellsData<filename>data/open-source/extracted_sql/adolby_Kryvos.sql select * from tls_sessions_metadata insert into tls_sessions_metadata values(?1, ?2, ?3) select session from tls_sessions where session_id = ?1 select session from tls_sessions select session_id from tls_sessions limit ?1)");
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2016 at 10:12 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
CREATE TABLE "type_product" ( "id" SERIAL NOT NULL , "description" VARCHAR(255) NOT NULL , "percentage_imposed" NUMERIC(11,4) NULL DEFAULT 0, PRIMARY KEY ("id") ); CREATE TABLE "product" ( "id" SERIAL NOT NULL , "id_type" INTEGER NOT NULL, "description" VARCHAR(255) NOT NULL , "price" NUMERIC(11,...
CREATE TABLE "user" ( "id" SERIAL PRIMARY KEY, "username" VARCHAR(80) UNIQUE NOT NULL, "password" VARCHAR(1000) NOT NULL, "first_name" VARCHAR(255) NOT NULL, "last_name" VARCHAR(255) NOT NULL, "email" VARCHAR(500) NOT NULL, "email_messages" boolean DEFAULT false, "administrator" bool...
-- +micrate Up CREATE EXTENSION IF NOT EXISTS "citext"; CREATE EXTENSION IF NOT EXISTS "pg_trgm"; CREATE EXTENSION IF NOT EXISTS "intarray"; -- +micrate Down DROP EXTENSION IF EXISTS "citext"; DROP EXTENSION IF EXISTS "pg_trgm"; DROP EXTENSION IF EXISTS "intarray";
<reponame>GDI-RP/GeoPortal.rlp DELETE FROM mb_user WHERE is_active = False and cast(extract(epoch from now()) as integer) > timestamp_delete + 86400
-- SETTINGS SET @iCategId = (SELECT `id` FROM `sys_options_categories` WHERE `name`='bx_organizations' LIMIT 1); UPDATE `sys_options` SET `type`='select', `extra`='a:2:{s:6:"module";s:16:"bx_organizations";s:6:"method";s:22:"get_options_activation";}' WHERE `name`='bx_organizations_autoapproval'; DELETE FROM `sy...
<filename>_/9201OS_07_Code/9201OS_07_05.cql SELECT * FROM "users";
INVALID TEST Liquibase does not support setColumnRemarks change type for SQLite -- See https://docs.liquibase.com/change-types/set-column-remarks.html
<gh_stars>0 CREATE EXTENSION postgis; DROP TABLE IF EXISTS airspace; CREATE TABLE airspace ( id SERIAL PRIMARY KEY, name VARCHAR(150), astype integer, -- airspace type minMSLalt float, minAGLalt float, maxMSLalt float, maxAGLalt float, extent geography(POLYGON,4326) NOT NULL ); CREATE IND...
<filename>oracle_script/Version_DDLs/4.1/Processed/alarm_grants_to_calcdefrole.sql GRANT SELECT ON ALARM_CURRENT TO PUBLIC; GRANT UPDATE ON ALARM_CURRENT TO SAVOIR_FAIRE; GRANT SELECT ON ALARM_CURRENT TO SAVOIR_FAIRE; GRANT INSERT ON ALARM_CURRENT TO SAVOIR_FAIRE; GRANT DELETE ON ALARM_CURRENT TO SAVOIR_FAIRE; GRANT UP...
<reponame>chalice19/ClickHouse -- Tags: long, no-backward-compatibility-check:22.3.2.1 DROP TABLE IF EXISTS t_json_parallel; SET allow_experimental_object_type = 1, max_insert_threads = 20, max_threads = 20; CREATE TABLE t_json_parallel (data JSON) ENGINE = MergeTree ORDER BY tuple(); INSERT INTO t_json_parallel SELE...
<reponame>nickgros-sage/Synapse-Repository-Services<gh_stars>10-100 CREATE TABLE IF NOT EXISTS `JSON_SCHEMA_LATEST_VERSION` ( `SCHEMA_ID` BIGINT NOT NULL, `ETAG` char(36) NOT NULL, `VERSION_ID` BIGINT NOT NULL, PRIMARY KEY (`SCHEMA_ID`), CONSTRAINT FOREIGN KEY (`SCHEMA_ID`) REFERENCES `JSON_SCHEMA` (`SCHEMA_I...
/* create database and table */ create database if not exists maple; use maple; drop table if exists patterns; create table patterns(id int auto_increment primary key, class varchar(256), method varchar(256), pattern varchar(256), support int, isRequired BOOLEAN, description varchar(256), votes int default 0, downvote...
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness use distribution; set nocount on; declare @verbose bit = 0; if @verbose = 1 print 'Declaring local variables..'; declare @currentTime datetime; declare @recepients varchar(2000); declare @mailBody varchar(4000); declare @mailSubject varchar(500); declare @ag...
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: localhost Database: csc317db -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
<reponame>amokawa/carshop<filename>src/main/resources/data.sql DROP TABLE IF EXISTS car; CREATE TABLE car ( id BIGINT AUTO_INCREMENT PRIMARY KEY, brand VARCHAR(250) NOT NULL, model VARCHAR(250) NOT NULL, price DECIMAL(10,2) DEFAULT 0, created_at DATE DEFAULT CURRENT_DATE() ); INSERT INTO car (bran...
<reponame>wandreuscv/web-develop-golang<filename>000_temp/62-kelowna/07-sql-aggregate-funcs/agg.sql /* COUNT */ /* from cooking database */ SELECT COUNT(recipetitle) AS totalRecipes FROM recipes; SELECT COUNT(DISTINCT recipetitle) AS totalDistRecipes FROM recipes; /* from hollywood database*/ SELECT c.cname, m.mnam...
<reponame>f-javier/seguros CREATE TABLE `clientes` ( `id` INT(10) NULL DEFAULT NULL, `fechaalta` DATE NULL DEFAULT NULL, `fechabaja` DATE NULL DEFAULT NULL, `estado` VARCHAR(1) NULL DEFAULT NULL COMMENT '(A)ctivo, (B)aja' COLLATE 'utf8_spanish_ci', `tipodocumento` VARCHAR(1) NULL DEFAULT NULL COMMENT '(1)NIF, (2)C...
<reponame>geophile/sql-layer SELECT name, iid FROM child, items WHERE sku = '1234' AND id = quan
/* Warnings: - You are about to drop the `Business` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable DROP TABLE `Business`; -- CreateTable CREATE TABLE `Location` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `name` VARCHAR(191) NOT NULL, `description` VARCHAR(191) N...
<gh_stars>0 CREATE TABLE `users_tokens` ( `ID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `USER_ID` INT(11) UNSIGNED NOT NULL, `TOKEN` VARCHAR(63) NOT NULL COLLATE 'utf8mb4_bin', `CREATED_AT` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`ID`), INDEX `USER_ID` (`USER_ID`), INDEX `TOKEN` (`TOKEN`), C...
<filename>changelog/prod_20180207/add_column.sql ALTER TABLE `tickets` ADD COLUMN `boxId` CHAR(36) NULL AFTER `stationId`; ALTER TABLE `tickets` ADD COLUMN `isAudited` TINYINT(1) NULL DEFAULT NULL AFTER `boxId`;
CREATE TABLE subdivision (country VARCHAR(2) NOT NULL, id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision" ("country", "id", "name", "level") VALUES (E'AD', E'AD-07', E'Andorra la Vella', E'parish'); INSERT INTO "subdivision" ("country", "id", "name", "lev...
/* Warnings: - A unique constraint covering the columns `[username]` on the table `users` will be added. If there are existing duplicate values, this will fail. - A unique constraint covering the columns `[githubId]` on the table `users` will be added. If there are existing duplicate values, this will fail. - ...
<reponame>maiha/facebook.cr CREATE TABLE ad_creative_link_data_call_to_action_value ( app_destination Nullable(String), app_link Nullable(String), application Nullable(String), event_id Nullable(String), lead_gen_form_id Nullable(String), link Nullable(String), link_caption Nullable(String), link_format...
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/650e9656.sql<gh_stars>10-100 -- file:tstypes.sql ln:175 expect:true SELECT ts_rank_cd(' a:1 s:2 d g'::tsvector, 'a <-> s')
-- file:join.sql ln:661 expect:true create temp table b (x integer, y integer)
-- CREACION DE LAS TABLAS CREATE TABLE ADMINISTRATOR ( USER_ADMIN VARCHAR(20) NOT NULL, PASSWORD VARCHAR(255) NOT NULL, NAME VARCHAR(255) NOT NULL, LAST_NAME VARCHAR(255) NOT NULL, PHONE VARCHAR(9) NOT NULL, EMAIL VA...
<filename>db2te/tutorials/tutorials/AdvancedSQL/FetchFirstInSubselects/SQL/CreateAPartDescriptionTable.sql<gh_stars>0 create table Part_Description ( partno int not null, description varchar(30) ) ; insert into Part_Description values (1,'Wood Screws'), (1,'Metal Screws'), (2,'Bolts'), (3,'Nut...
<reponame>betancourtaj/MusicWebApp select artistid from p_artist_album where albumid = :albumid
<reponame>multiscripter/job4j<filename>junior/pack3_pre/p2_spring/ch1_storages/src/test/resources/junior.pack3.p2.ch1.task2.HyperSQL.sql drop table if exists users; create table users ( id integer GENERATED BY DEFAULT AS IDENTITY(START WITH 1, INCREMENT BY 1) not null primary key, name varchar (64) not null un...
<reponame>jiziwei66/gmall /* SQLyog v12.2.6 (64 bit) MySQL - 5.7.22-log : Database - guli_oms ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET...
-- Fact key table for fact-key -> type mapping create table fact (id integer primary key, name varchar unique not null , type varchar); -- Policy store create table policy (id uuid, customerid varchar not null, name varchar not null , description varchar,...
SELECT id, nombre, direccion, valor, horainicial, horafinal, imagen, created_at, updated_at FROM escenario ORDER BY id LIMIT :limit OFFSET :offSet;
<gh_stars>10-100 --drop DICTIONARY dim.dict_user_dim on cluster cluster; CREATE DICTIONARY dim.dict_user_dim on cluster cluster ( uid UInt64 , platform String default '' , country String default '' , province String default '' , isp String default '' , app_version String default '' , os_version String default ''...
<reponame>showsmall/KubeOperator ALTER TABLE `ko_user_message` ADD COLUMN `cluster_name` varchar(64) NULL AFTER `send_type`;
<reponame>AthenaModel/athena<filename>lib/athena/sql/fmt_entities.sql<gh_stars>10-100 ------------------------------------------------------------------------ -- TITLE: -- fmt_application.sql -- -- AUTHOR: -- <NAME> -- -- DESCRIPTION: -- SQL Schema: Applications Entities -- -- This file is loaded by athenad...
<gh_stars>1-10 -- This query creates the materialized view for final ICU Burden dataset -- by composing multiple concepts (views) together. -- Depends On: -- 1. Mimic-III Postgres Database -- 2. Concepts: -- age-group, -- pneumonia, -- ventilation-stats, -- survival, -- first-day-labs, ...
/*iweb在线课堂必须的数据库结构*/ /*删除数据库iweb,如果它存在的话*/ DROP DATABASE IF EXISTS iweb; /*重新创建数据库iweb*/ CREATE DATABASE iweb CHARSET=UTF8; /*进入数据库iweb*/ USE iweb; #创建校区表 CREATE TABLE iw_school( sid INT PRIMARY KEY AUTO_INCREMENT, #校区编号 #AUTO_INCREMENT:自增的主键 sname VARCHAR(32), #名称 pic VARCHAR(128), #图片URL address ...
<reponame>DanTheMinotaur/pubadvisor -- -- PostgreSQL database dump -- -- Dumped from database version 10.0 -- Dumped by pg_dump version 10.0 -- Started on 2017-12-08 22:42:10 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_confo...
<reponame>Shweta-21/California-population-Data-Analytics SELECT p.county_name, SUM(p.population) AS Male, fem_pop.Female FROM (SELECT county_name, SUM(population) AS Female FROM pop_proj WHERE date_year BETWEEN 2020 and 2030 and gender = 'Female' GROUP BY county_name ORDER BY county_name) AS fem_pop J...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 18 juin 2020 à 12:54 -- Version du serveur : 5.7.23 -- Version de PHP : 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
<reponame>r-yoshida1992/Docker-App<filename>004-go/mysql/initdb.d/01_table.sql /* ユーザーマスタ */ create table if not exists user_master ( user_id varchar(16) not null, password varchar(255), user_name varchar(255), mail_address varchar(255), authority decimal(3), last_login_date datetime, create...
create table order_promotions ( id serial primary key, cord_ref text not null references cords(reference_number) on update restrict on delete restrict, promotion_shadow_id integer not null references object_shadows(id) on update restrict on delete restrict, apply_type generic_string not null, coupon...
-- malloc5.test -- -- execsql {PRAGMA cache_size=2000} PRAGMA cache_size=2000
-- ------------------------------------------------------------------ -- Title: Count the number of patients with two specific icd9 codes -- MIMIC version: MIMIC-III v1.3 -- Notes: this query does not specify a schema. To run it on your local -- MIMIC schema, run the following command: -- SET SEARCH_PATH TO mimiciii; -...
#if( $is_postgres ) create function ${objectName}() returns trigger AS $$ #else -- trigger used for redirecting persistence to I18N description table $i18nTblName create or replace trigger $objectName instead of update or insert or delete on $i18nDetailTblName for each row #end declare i18n_row_found ${i18nTblName}%r...
--clear data TRUNCATE TABLE core.manifest CASCADE; ALTER SEQUENCE core.manifest_id_seq RESTART WITH 6; --insert data INSERT INTO core.manifest (id, json, app_version, app_id, created_at, updated_at) VALUES (1, '{"identifier": "1", "json": "{}", "createdAt": "2018-11-12T11:49:00.782", "updatedAt": "2018-11-12T11:49:00...
DROP TABLE IF EXISTS `bs_batchjobs`; DROP TABLE IF EXISTS `bs_batchjob_orders`; DROP TABLE IF EXISTS `bs_books`; DROP TABLE IF EXISTS `bs_category_languages`; DROP TABLE IF EXISTS `bs_expenses`; DROP TABLE IF EXISTS `bs_expense_books`; DROP TABLE IF EXISTS `bs_expense_categories`; DROP TABLE IF EXISTS `bs_items`; DROP ...
USE ${DB}; DROP TABLE hms_dump_${ENV}; DROP TABLE dir_size_${ENV};
-- This file is automatically generated by LogicalPlanToSQLSuite. SELECT value, MAX(key + 1) OVER (PARTITION BY key % 5 ORDER BY key % 7) AS max FROM parquet_t1 -------------------------------------------------------------------------------- SELECT `gen_attr_0` AS `value`, `gen_attr_1` AS `max` FROM (SELECT `gen_attr_0...
DECLARE numerrs PLS_INTEGER; BEGIN DBMS_MVIEW.REFRESH( LIST => 'MV_SALES', method => 'C', atomic_refresh => FALSE, parallelism => '8'); DBMS_MVIEW.REFRESH( LIST => 'MV_FILLRATE', method => 'C', ato...
<filename>HackerRank/src/main/sql/Aggregation/WeatherObservationStation19.sql<gh_stars>0 SELECT TRUNCATE( SQRT( POW( ( (SELECT MIN(LAT_N) FROM STATION) - (SELECT MAX(LAT_N) FROM STATION) ), 2 ) + POW( ( (SELE...
DROP DATABASE IF EXISTS techblog_DB; CREATE DATABASE techblog_DB;
-- https://wiki.postgresql.org/wiki/Index_Maintenance WITH RECURSIVE index_details AS ( SELECT 'pgbench_accounts_pkey'::text idx ), size_in_pages_index AS ( SELECT (pg_relation_size(idx::regclass) / (2^13))::int4 size_pages FROM index_details ), page_stats AS ( SELECT index_details.*, stats...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 28 Janvier 2015 à 23:12 -- 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=...
/****** Script for SelectTopNRows command from SSMS ******/ SELECT TOP (1000) [site_ref] ,[whse] ,[item] ,[rank] ,[loc] ,[qty_on_hand] ,[mrb_flag] ,[loc_type] ,[inv_acct] ,[unit_cost] ,[perm_flag] ,[qty_rsvd] ,[matl_cost] ,[lbr_cost] ,...
<reponame>djay1988/codeigniter_multi_site /* Navicat MySQL Data Transfer Source Server : Local Source Server Version : 50505 Source Host : localhost:3306 Source Database : pageoo Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-03-10 21:13:2...
INSERT INTO public.users(email, first_name, is_active, last_name, password, phone_number, role_id, username) VALUES ('<EMAIL>', 'Ben', true, 'Martin', '123', '9164001229', 1, 'ben'); INSERT INTO public.users(email, first_name, is_active, last_name, password, phone_number, role_id, username) VALUES ('<EMAIL>', 'Test', t...
<reponame>EcoBeko/docs -- Having communities is great, but if single user is unable to find a community of his own thoughts and ideas, what should he do? -- The answer: create and administrate his own community. create or replace procedure p_create_community( _title varchar, _image_path varchar, _description v...
<gh_stars>1-10 PRAGMA foreign_keys = ON; -- POPULATE DATABASE INSERT INTO User VALUES ( 'SherylSandberg', '<EMAIL>', '$2y$10$ukA/pcGBL72eG0NPSIK/Bunm47VwbJB863m8T5koubCmSmso.bMXK', -- facebook 'COO of Facebook. Powerhouse driving the most successful company in Silicon Valley, and arguably in the world.' ); INSERT IN...
whenever oserror exit failure whenever sqlerror exit failure set define off sqlblanklines on ALTER SESSION SET PLSQL_WARNINGS = 'ENABLE:ALL'; prompt @@R__09.PACKAGE_SPEC.CFG_INSTALL_PKG.sql @@R__09.PACKAGE_SPEC.CFG_INSTALL_PKG.sql prompt @@R__09.PACKAGE_SPEC.CFG_PKG.sql @@R__09.PACKAGE_SPEC.CFG_PKG.sql prompt @@R__14....
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: mifostenant-default -- ------------------------------------------------------ -- Server version 5.5.56-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
struct Byte { inner: U8, }
insert into public.catalog_item (image_uri, item_category, item_enabled, item_name, item_price, long_description, short_description) values ('/images/default.png', 4, true, 'Logitech', 150000, 'Long Default Description', 'Mouse Bluetooth'); insert into public.catalog_item (image_uri, item_category, item_enabled, item_n...
-- -------------------------------------------------------- -- 主機: 127.0.0.1 -- 服務器版本: 5.1.40 - Source distribution -- 服務器操作系統: Win32 -- HeidiSQL 版本: 9.4.0.5125 -- -------------------------------------------------------- ...
INSERT INTO AUTHORS(name, email, description) VALUES('Author1', '<EMAIL>', 'description');
-- note name change on foreign key constraint. ALTER TABLE ONLY surveys drop CONSTRAINT pk_surveys_owner; ALTER TABLE ONLY surveys ADD CONSTRAINT fk_surveys_owner FOREIGN KEY (owner_id) REFERENCES people(id); -- -- Language views, NB no gv_ -- DROP VIEW IF EXISTS detail_languages; DROP VIEW IF EXISTS list_language...
<filename>src/Resonance.Data.Storage.SQLite/Scripts/Playlist_Upsert.sql UPDATE [Playlist] SET UserId = @UserId, Name = @Name, Comment = @Comment, Accessibility = @Accessibility WHERE Id = @Id; INSERT INTO [Playlist] (Id, UserId, Name, Comment, Accessibility) SELECT @Id, @UserId, @Name, @Comment, @Accessibility WHERE ...
<reponame>EsupPortail/esup-ecandidat -- -- Creation d'une table temporaire pour la fiabilisation des fichiers -- CREATE TABLE `tmp_fichier_fiabilisation` ( `id_fichier_fiab` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'identifiant de fiabilisation du fichier', `id_fichier` INT(10) NOT NULL COMMENT 'identifiant du fichier...
<gh_stars>1-10 /* SQLZOO: 6 JOIN (old): http://sqlzoo.net/wiki/Old_JOIN_Tutorial */ /* ttms games color who country 1988 gold Yoo Nam-Kyu KOR 1988 silver Kim Ki Taik KOR country id name ALG Algeria ARG Argentina ... ... KOR Korea */ /* Ex1. Show the athelete (who) and the country name for medal winners in 2000. */...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2020 at 02:59 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
SELECT `productos`.`id_producto`, `productos`.`nombre`,`categorias`.`id_categoria` AS `id_categoria`,`categorias`.`nombre` AS `categoria`, `ventas`.`abreviatura` AS `unidad_medida_ventas` ,`productos`.`precio_x_unidad`,`almacen`.`abreviatura` AS `unidad_medida_almacen`,`productos`.`foto` AS `imagen` FROM `productos` LE...
<reponame>CUBRID/cubrid-testcase autocommit off; select product, quantity, location, shipment_pending from joe.inventory_c i where product.product_code > 5; insert into joe.inventory_c (product, quantity, location, shipment_pending) select product, quantity, location, shipment_pending from joe.inventory_c where p...
DROP TABLE "public"."PinnedChat";
<filename>openGaussBase/testcase/KEYWORDS/preceding/Opengauss_Function_Keyword_Preceding_Case0026.sql -- @testpoint:opengauss关键字preceding(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists preceding; create schema preceding; drop schema preceding; --关键字带双引号-成功 drop schema if exists "preceding"; create schema "preceding"...
<reponame>qeffects/ferdinandOfAragon -- AlterTable ALTER TABLE "BotConfig" ADD COLUMN "inquisition_no_more_questions_msg_id" TEXT;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 07, 2021 at 11:09 AM -- Server version: 5.7.23-23 -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
ALTER TABLE command_context DROP CONSTRAINT command_context_spleisbehov_id_fkey; ALTER TABLE command_context ADD CONSTRAINT command_context_hendelse_id_fkey FOREIGN KEY(hendelse_id) REFERENCES hendelse(id) ON DELETE CASCADE;
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2020 at 06:13 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.2.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>kbaba1001-playground/try-hugsql<gh_stars>0 -- src/try_hugsql/db/sql/characters.sql -- The Princess Bride Characters -- :name create-characters-table -- :command :execute -- :result :raw -- :doc Create characters table -- auto_increment and current_timestamp are -- H2 Database specific (adjust to your DB) C...
CREATE OR REPLACE FUNCTION dostepne_wycieczki2(kraj WYCIECZKI.KRAJ%TYPE, data_od DATE, data_do DATE) return wycieczki_t as v_ret wycieczki_t; istnieje integer; BEGIN IF data_do < data_od THEN raise_application_error(-20003, 'Nieprawidłowy przedział ...