sql
stringlengths
6
1.05M
-- <Migration ID="bce7836b-635b-496c-a11f-7f225f7e31d8" /> GO /************************************************************************** ** CREATED BY: <NAME> ** CREATED DATE: 2019.02.07 ** CREATION: Create Pub tables. **************************************************************************/ CREATE TABLE dbo....
<reponame>bryantorres25/concejo -- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 10.2.0.5599 -- ---------------------------...
<reponame>smarty-kiki/api_ssh_config # up create table if not exists `machine` ( `id` bigint(20) unsigned not null, `version` int(11) not null, `create_time` datetime null, `update_time` datetime null, `delete_time` datetime null, `name` varchar(30) null, `register_key` varchar(30) null, ...
<reponame>BloomBooks/analytics-postgres -- Trigger: insert_country_row -- DROP TRIGGER IF EXISTS insert_country_row ON bloomreader.questions_correct; CREATE TRIGGER insert_country_row BEFORE INSERT ON bloomreader.questions_correct FOR EACH ROW EXECUTE FUNCTION public.insert_context_ip_country_bloom_fc...
<gh_stars>0 /* Warnings: - You are about to drop the `UserExample` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable DROP TABLE "UserExample"; -- CreateTable CREATE TABLE "BoardGame" ( "id" SERIAL NOT NULL, "name" TEXT, PRIMARY KEY ("id") );
SELECT name, city, date_first, date_last FROM trip WHERE MONTH(date_first) = MONTH(date_last) ORDER BY city ASC, name ASC;
CREATE PROCEDURE [dbo].[uspNegotiationApplicationStatusSelect] @NegotiationApplicationStatusID UNIQUEIDENTIFIER AS SET NOCOUNT ON SET XACT_ABORT ON BEGIN TRAN SELECT [NegotiationApplicationStatusID], [ApplicationID], [NegotiationID], [UserID] ,[Active] FROM [dbo].[NegotiationApplicationStatus] WHERE (...
<filename>OLD_THEONLINEMCMC.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 11, 2019 at 12:02 PM -- Server version: 8.0.15 -- PHP Version: 7.2.15-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
SET DEFINE OFF; CREATE INDEX AFW_25_TYPE_TRAVL_FK1 ON AFW_25_TYPE_TRAVL (REF_DOMN) LOGGING /
SELECT depts.idd AS foo FROM "departements.csv" AS depts; [normal] foo 1 2 3 4 5 6 7 8 9 10
<gh_stars>1-10 SELECT FirstName, LastName, Age FROM Students WHERE Age >= 12 ORDER BY FirstName, LastName SELECT s.FirstName, s.LastName, COUNT(TeacherId) as TeachersCount FROM Students s LEFT JOIN StudentsTeachers st ON st.StudentId = s.Id GROUP BY s.FirstName, s.LastName SELECT CONCAT(FirstName, ' ', LastName) AS ...
<filename>src/test/resources/jrnlmode3.test_1.sql -- jrnlmode3.test -- -- db eval { -- PRAGMA journal_mode=OFF; -- PRAGMA locking_mode=EXCLUSIVE; -- CREATE TABLE t1(x); -- INSERT INTO t1 VALUES(1); -- SELECT * FROM t1; -- } PRAGMA journal_mode=OFF; PRAGMA locking_mode=EXCLUSIVE; CREATE TABLE t1(x);...
SELECT * FROM Person
<filename>schema.sql -- Blacklists -- create table if not exists blacklist_mail ( mail text primary key ) without rowid; -- Titles -- create table if not exists titles ( title_id text primary key, title_name text, bgg integer, is_hidden boolean default 0 ) without rowid; -- Users -- create table if not exi...
\set ECHO none set client_min_messages TO error; CREATE EXTENSION IF NOT EXISTS orafce; CREATE EXTENSION IF NOT EXISTS orafce_mail; set client_min_messages TO default;
<filename>conf/evolutions/default/1.sql # --- !Ups CREATE TABLE "sales" ("sale_id" BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1000) NOT NULL PRIMARY KEY, "sale_date" DATE NOT NULL); CREATE INDEX "idx_sale" ON "sales"("sale_id", "sale_date"); INSERT INTO "sales" ("sale_date") VALUES ('2022-01-01'); INSERT INTO ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 07 nov. 2018 à 11:28 -- Version du serveur : 10.1.36-MariaDB -- Version de PHP : 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
set foreign_key_checks=0; drop table if exists User; drop table if exists Playlist; drop table if exists Track; drop table if exists Album; drop table if exists Artist; drop table if exists Genre; drop table if exists PlaylistItem; drop table if exists AlbumItem; drop table if exists ArtistAlias; drop table if exists...
<filename>src/main/resources/benchmarks/tpch/ddl-sqlserver.sql -- Adapted from the Postgres schema -- Note: To use different storage layouts during --create -- switch row/column store commented lines and rebuild. DROP TABLE IF EXISTS lineitem; DROP TABLE IF EXISTS orders; DROP TABLE IF EXISTS customer; DROP TABLE IF ...
-- Total books: 969 select i.id, i.filename from item i; -- No books without titles select i.id, i.filename, title.value from item i left join item_property title on i.id = title.item_id and title.property = 'title' where title.value is null; -- 10 books with more than one title -- does it make sense? Shou...
create or replace package coverage_helper is g_run_id integer; type prof_runs_tab is table of ut3.plsql_profiler_runs%rowtype; function get_mock_run_id return integer; function get_mock_block_run_id return integer; procedure cleanup_dummy_coverage(a_run_id in integer); procedure mock_coverage_data(a_...
START TRANSACTION; UPDATE eng_schema_version SET version_value='46' WHERE version_key='schema_patch'; ALTER TABLE eng_functioncosts RENAME COLUMN function TO function_name; COMMIT;
<reponame>paullewallencom/neo4j-978-1-8385-5558-0<filename>_/section 4/section4/4.1.cql /* Here, we are using the Karate Club dataset with the modifications we introduced in previous section (ie the creation of three Teacher nodes) */ /* Triangle count and clustering coefficient */ CALL algo.triangleCount.stream('Pers...
-- MySQL Script generated by MySQL Workbench -- Mon Feb 8 09:41:16 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
<reponame>nilslice/crates.io ALTER TABLE versions ALTER COLUMN features DROP NOT NULL; ALTER TABLE versions ALTER COLUMN features DROP DEFAULT; ALTER TABLE versions ALTER COLUMN features SET DATA TYPE text;
CREATE TABLE PreguntaGeneradora( IdPreguntaGeneradora int IDENTITY(1,1), IdPregunta int null, IdOpcion int null, IdPreguntaGenerada int null, CONSTRAINT PK_PreguntaGeneradora PRIMARY KEY (IdPreguntaGeneradora), CONSTRAINT FK_PreguntaGeneradora_Pregunta FOREIGN KEY (IdPregunta) REFERENCES Pregunta (IdPregunta)...
<gh_stars>0 --- Initialise the database. --- Drop any existing data and create empty tables. DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS goals; DROP TABLE IF EXISTS progress; CREATE TABLE user ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT UNIQUE NOT NULL, PASSWORD TEXT NOT NULL ); CREATE TABLE goal...
<reponame>tsmakalagy/godana-unify<gh_stars>0 -- phpMyAdmin SQL Dump -- version 3.3.7deb5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 06, 2014 at 11:33 AM -- Server version: 5.1.49 -- PHP Version: 5.3.3-7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
<gh_stars>1-10 /* _____ _____ _ _ _____ _ | ___| _ | | | | | / ___| | | | |__ | | | | | |_| | ___ _ _ ___ ___ \ `--. _ _ ___| |_ ___ _ __ ___ | __|| | | | | _ |/ _ \| | | / __|/ _ \ `--. \ | | / ...
-- name:updateFullUser :: User -- :user :: User -- :fullUser :: FullUser UPDATE users SET email = :fullUser.fullUserEmail , languages = :fullUser.fullUserLanguages WHERE users.id = :user.userId RETURNING id , username , email , languages ;;; -- name:insertUser :: (String, String) -- :use...
<reponame>Zhaojia2019/cubrid-testcases --create class and alter class by adding some attributes,drop the specified attributes of classes CREATE CLASS ddl_0001; ALTER CLASS ddl_0001 ADD ATTRIBUTE col1 integer; ALTER CLASS ddl_0001 ADD ATTRIBUTE col2 varchar(100) nOt nUlL unique; ALTER CLASS ddl_0001 ADD ATTRIBUTE col...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2016 at 08:43 AM -- Server version: 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_SET_CLIENT */;...
<gh_stars>0 -- Note: you should not use id 1 to prevent primary key unique violation -- devices -- INSERT INTO devices VALUES (11, null, 'prise salon', 'esp32', 0, '192.168.1.9', true); -- groups -- INSERT INTO groups VALUES (11, 'salon'); INSERT INTO devices VALUES (12, 11, 'Lampe', '', 1, '192.168.1.5', true); -- ...
<reponame>giahuydo1379/bds.cuachungta -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.34-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- ----------...
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 23-Maio-2018 às 05:25 -- Versão do servidor: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>opensciencegrid/gratia-apel set autocommit=0; DELETE FROM OSG_DATA WHERE Month = 09 AND Year = 2007 ; INSERT INTO OSG_DATA VALUES ('SPRACE', 'cms', '14393', '19282', '32317', '44691', '74902', '09', '2007', '2007-09-01', '2007-09-28', '1.676', '2007-11-08 23:07:57'); INSERT INTO OSG_DATA VALUES ('SPRACE', 'us...
/****************************************************************************************** * This file was automatically generated by mingru (https://github.com/mgenware/mingru) * Do not edit this file manually, your changes will be overwritten. **********************************************************************...
CREATE TABLE /*_*/pq_score_log ( `id` int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, `page_id` int unsigned NOT NULL, `revision_id` int unsigned NOT NULL, `timestamp` int(50), `old_score` int(10), `new_score` int(10) ); CREATE INDEX /*i*/pq_score_log_index ON /*_*/pq_score_log (id);
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 24 2021 г., 22:51 -- Версия сервера: 8.0.19 -- Версия PHP: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<filename>sql/host-cpu-metric-names.sql -- host-cpu-metric-names.sql col metric_unit format a30 col metric_name format a30 col value format 999999.9 alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss'; set pagesize 60 set linesize 200 trimspool on set verify on def metric_tab='v$sysmetric_history' def met...
<gh_stars>1-10 LOAD DATA LOCAL INFILE 'routes.txt' INTO TABLE `translink_gtfs`.`routes` CHARACTER SET ascii FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (`route_id`, `route_short_name`, `route_long_name`, `route_desc`, `route_type`, `route_url`, `route_col...
# --- Created by Slick DDL # To stop Slick DDL generation, remove this comment and start using Evolutions # --- !Ups create table "ASSIGNMENT" ("PAPERID" UUID NOT NULL,"PERSONID" UUID NOT NULL,"VALUE" BOOLEAN NOT NULL,"ID" UUID NOT NULL,"UPDATEDAT" TIMESTAMP NOT NULL,"UPDATEDBY" TEXT NOT NULL); create table "BID" ("P...
<reponame>jbpion/log4mssql<filename>log4mssql/LoggerBase/Stored Procedures/Config_Retrieve.sql<gh_stars>1-10 IF OBJECT_ID('LoggerBase.Config_Retrieve') IS NOT NULL SET NOEXEC ON GO CREATE PROCEDURE LoggerBase.Config_Retrieve AS PRINT 'Stub only' GO SET NOEXEC OFF GO /************************************************...
TRUNCATE TABLE public.search_service CASCADE; ALTER SEQUENCE public.search_service_id_seq RESTART; ALTER SEQUENCE public.search_servicearea_id_seq RESTART; ALTER TABLE public.search_service ADD COLUMN slug character varying(255) UNIQUE NOT NULL; COPY public.search_service (name, description, name_cy, description_cy,...
<reponame>d-stephenson/DAT701 -- LinkedIn Learning Course -- Useful Functions -- Adventure Works -- String Functions SELECT FirstName , LastName , UPPER (FirstName) AS UpperCase , LOWER (LastName) AS LowerCase , LEN (FirstName) AS LengthOfFirstName , LEFT (LastName, 3) AS FirstThreeLetters , R...
-- randexpr1.test -- -- db eval {SELECT case (abs(case when 13 not in (t1.f,a,t1.b) then d*(abs((coalesce((select coalesce((select coalesce((select max(t1.d-t1.a) from t1 where (t1.c between 19 and (c) and c<t1.c)),17) from t1 where (11>=17)),t1.f) from t1 where t1.e between e and 17),17))-b)/abs(d)) | b+t1.b when e b...
/* Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) 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 http://www.apache.org/licenses/LICENSE-2.0...
CREATE TABLE public.report_developer_test_of_time_function ( user_email varchar NOT NULL, report_id uuid NOT NULL, developer_rank integer NOT NULL, node_id varchar NOT NULL, CONSTRAINT report_developer_ttf_email_node_report_pkey PRIMARY KEY (user_email, node_id, report_id) ) TABLESPACE pg_default; ...
delete from redirect where redirect_id = :redirectId
<gh_stars>1-10 SELECT count(*) FROM CAM_AGENDA AS t WHERE t.STAFF = 0x5186F66531C1A963C7E20A8B5BF65985 AND ((t.STARTTIME >= 1546876800000 AND t.STARTTIME <= 1546959600000) OR (t.ENDTIME >= 1546876800000 AND t.ENDTIME <= 1546959600000) OR (t.STARTTIME <= 15468768000...
<filename>components-guide/templatedb.sql CREATE DATABASE templatedb; USE templatedb; -- -------------------------------------------------------- CREATE TABLE `categories` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `category` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` times...
DROP TABLE IF EXISTS test.test; CREATE TABLE test.test (a UInt8) ENGINE = Memory; INSERT INTO test.test VALUES (1), (2), (1), (3); SELECT CASE WHEN a=1 THEN 0 END FROM test.test; DROP TABLE test.test;
CREATE TABLE dataset_publication_log ( id SERIAL PRIMARY KEY, dataset_id INT NOT NULL REFERENCES datasets(id) ON DELETE CASCADE, publication_status VARCHAR(50) NOT NULL, publication_type VARCHAR(50) NOT NULL, comments TEXT, created_by INT REFERENCES pennsieve.users(id) ON DELETE SET NULL, cr...
<reponame>asharn/full-stack-table-tennis-league -- Created by <NAME> -- Last modification date: 2021-05-08 18:55:03.182 -- tables -- Table: game_score insert into game_score (match_id, set_number, game_number, first_registration_point, second_registration_point) values (1, 1, 1, 20, 10); insert into game_score (match_i...
/* Navicat Premium Data Transfer Source Server : demo-01 Source Server Type : MySQL Source Server Version : 50711 Source Host : localhost:3306 Source Schema : cloud_mall_product Target Server Type : MySQL Target Server Version : 50711 File Encoding : 65001 Date: 01/0...
<filename>src/test/tinc/tincrepo/ddl/default_distribution/sql_default_distribution_sensitive/create_table_basic_setup.sql DROP TABLE IF EXISTS hobbies_r; CREATE TABLE hobbies_r ( name text, person text ); DROP TABLE IF EXISTS tenk1; CREATE TABLE tenk1 ( unique1 int4, unique2 int4, two int4, four int4, t...
-- @Description Tests that a update operation in progress will block all other updates -- until the transaction is committed. -- 1: BEGIN; 2: BEGIN; 2: UPDATE ao SET b = 42 WHERE a = 1; 2: SELECT * FROM locktest WHERE coalesce = 'ao'; 1&: UPDATE ao SET b = 42 WHERE a = 2; 2: COMMIT; 1<: 1: COMMIT; 3: SELECT * FROM ao...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- -- from https://stackoverflow.com/a/51600210 CREATE OR REPLACE FUNCTION `@@BQ_PREFIX@@s2.TOKEN_FROMID` (id INT64) RETURNS STRING AS (( SELECT STRING_AGG(FORMAT('%02x', id >> (byte * 8) & 0xff), '' ORDER BY byte DESC) FROM UNN...
<filename>dbaas/physical/migrations/migration_0121_up.sql UPDATE physical_vip v, physical_databaseinfra d SET v.vip_ip = SUBSTRING(d.endpoint, 1, position(':' IN d.endpoint) -1 ) WHERE d.id = v.infra_id;
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 11, 2020 at 02:30 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
alter table visit_conduct_drug add column master_valid_from date not null after iyakuhincode;
-- 初期DBを作成 CREATE DATABASE IF NOT EXISTS `db_local`; CREATE USER 'db_local'@'%' IDENTIFIED BY 'db_local'; GRANT ALL ON db_local.* TO 'db_local'@'%'; CREATE DATABASE IF NOT EXISTS `db_testing`; CREATE USER 'db_testing'@'%' IDENTIFIED BY 'db_testing'; GRANT ALL ON db_testing.* TO 'db_testing'@'%';
CREATE TABLE `ECM_JOURNALGLOBAL_REVISION` ( `REVISION_ID` bigint(20) NOT NULL, UNIQUE KEY `ECM_JOURNALGLOBAL_REVISION_IDX` (`REVISION_ID`) ) ; CREATE TABLE `ECM_JOURNALJOURNAL` ( `REVISION_ID` bigint(20) NOT NULL, `JOURNAL_ID` varchar(255) DEFAULT NULL, `PRODUCER_ID` varchar(255) DEFAULT NULL, `REVISION_...
<reponame>NeSh74/MS-SQL-September-2021 USE [WMS] GO CREATE PROCEDURE usp_PlaceOrder @jobId INT, @partSerialNumber VARCHAR(50), @quantity INT AS BEGIN IF(@quantity <= 0) BEGIN THROW 50012, 'Part quantity must be more than zero!', 1 END IF((SELECT [Status] FROM [Jobs] WHERE [JobId] = @jobId) = 'Finished') ...
--Retrieves employees job titles from HumanResources.Employee --table without duplicates. use [AdventureWorks2] select distinct JobTitle from HumanResources.Employee as JobTitlesTable
<reponame>denis2glez/moneta<filename>coin-market-cap/migrations/20211018112204_create_crypto_listings_latest_table.sql -- Create a table with the latest listings of cryptocurrencies CREATE TABLE crypto_listing ( id INTEGER REFERENCES crypto_map, num_market_pairs INTEGER, tags TEXT[], max_supply NUMERIC...
CREATE TABLE [audit].[DimChannel] ( [AuditId] INT IDENTITY (1, 1) NOT NULL, [AuditDate] DATETIME DEFAULT (getdate()) NULL, [ChannelKey] INT NOT NULL, [ChannelLabel] NVARCHAR (100) NOT NULL, [ChannelName] NVARCHAR (20) NULL, [...
<reponame>scheltwort-it-services/common_schema SELECT unquote('') = '' AND unquote('"') = '"' AND unquote('x') = 'x' AND unquote('""') = '' ;
-- 1822 Number of measurement records, by measurement_concept_id and value_as_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_1) select 1822 AS analysis_id, cast(measurement_concept_id AS varchar(255)) AS stratum_1, cast(value_as_concept_id AS varchar(255)) AS stratum_2, cast(null as varchar(255)) as stratum_3, cas...
<gh_stars>0 SELECT * FROM DATAVAULTDEMO_DB.SS.SHIPPERS --FROM DATAVAULTDEMO_DB.SS.SHIPPERS where UPDATE_TS > '2021-02-10 00:00:00.000'
<reponame>santedb/openiz /** * <update id="20180126-01" applyRange="1.0.0.0-1.0.0.0" invariantName="npgsql"> * <summary>Fixes trigger to allow obsoletion relations to exist</summary> * <remarks>This is necessary to correct older openiz databases which already had bad data in them</remarks> * <isInstalled>select c...
<filename>ddl-tpcds/bin_partitioned/analyze_web_site.sql.sql<gh_stars>0 -- Use filesystem to track stats. set hive.stats.dbclass=fs; -- Many tables have some missing partitions, deal with this by ignoring errors. set hive.cli.errors.ignore=true; ANALYZE TABLE web_site COMPUTE STATISTICS; ANALYZE TABLE web_site COMPUTE...
<gh_stars>0 create or replace function graphql.array_first(arr anyarray) returns anyelement language sql immutable as $$ -- First element of an array select arr[1]; $$;
<gh_stars>0 CREATE DATABASE `bnkmicroservice` USE `bnkmicroservice`; /*Table structure for table `account` */ DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_no` varchar(255) DEFAULT NULL, `customer_id` int(11) DEFAULT NULL, `type_id` int(11) DEFAULT N...
-- MySQL dump 10.13 Distrib 5.7.28, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: polestar -- ------------------------------------------------------ -- Server version 5.7.28-0ubuntu0.18.04.4 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
<gh_stars>0 use payroll; ALTER TABLE employee_master ADD emp_ddoid INT(11) NOT NULL AFTER emp_nhisidno; ALTER TABLE employee_master ADD emp_group VARCHAR(10) default NULL AFTER emp_ddoid; ALTER TABLE employee_master ADD emp_apporderno VARCHAR(255) default NULL AFTER emp_group; ALTER TABLE employee_master ADD emp_...
<filename>database/advanced.sql -- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2016 at 01:02 AM -- Server version: 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_...
drop database if exists andrewfharrisdb; create database andrewfharrisdb; use andrewfharrisdb; create table albums( album_id int unsigned auto_increment primary key, album_title nvarchar(255), album_desc text, credits text, release_year year, label nvarchar(50), date_created datetime default c...
<reponame>zhoukekestar/graphql-quick-start DROP TABLE IF EXISTS Story; DROP TABLE IF EXISTS User; CREATE TABLE User ( id INTEGER PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) ); CREATE TABLE Story ( id INTEGER PRIMARY KEY AUTO_INCREMENT, text TEXT, author INTEGER, FOREIGN KEY(author) REFERENCES User(id) )...
<gh_stars>0 ### Schema CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, burger_name varchar(60) NOT NULL, devoured BOOLEAN NOT NULL, PRIMARY KEY (id) );
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2019 at 07:07 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>salmazz/PortfolioWebsite -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2019 at 12:58 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_z...
/* key */ INSERT INTO props ( entity, type, datatype, value_reference ) SELECT DISTINCT CONCAT('menu_', LOWER(TRIM(REPLACE(entity_definition_keyname, '-', '_')))), '_type', 'reference', 'menu' FROM translation WHERE field = 'menu' AND entity_definition_keyname NOT LIKE 'conf-%'; /* nam...
<reponame>rfakhrifadlan/mandra -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 22, 2021 at 10:27 AM -- Server version: 5.7.34 -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "...
USE [corredora] GO /****** Object: StoredProcedure [dbo].[sp_MuestraTipoPropiedad] Script Date: 25-04-2015 02:48:45 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[sp_MuestraTipoPropiedad] @descripcion VARCHAR(50) AS BEGIN DECLARE @desc VARCHAR(50) set @desc = @descripcion IF @...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86) -- -- Host: localhost Database: actived_recrutement -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
CREATE TYPE public.account_type AS ENUM ('bank', 'wallet');
CREATE TABLE IF NOT EXISTS ri_leases ( account_id TEXT, payer_account_id TEXT, start_date DATE, end_date DATE, lease_term TEXT, availability_zone TEXT, instance_type TEXT, os TEXT, utilization TEXT, tenancy TEXT, fixed_price NUMERIC(11, 6), usage_price NUMERIC(8, 6), instance_count INT, leas...
\set ON_ERROR_STOP 1 BEGIN; ALTER TABLE area_containment ADD CONSTRAINT area_containment_fk_descendant FOREIGN KEY (descendant) REFERENCES area(id); ALTER TABLE area_containment ADD CONSTRAINT area_containment_fk_parent FOREIGN KEY (parent) REFERENCES area(id); DROP TRIGGER IF EXISTS a_ins_l_area_...
with all_emails as ( select * from {{ ref('validate_emails') }} ) select *, case when {{ re_data.valid_email('email') }} then 1 else 0 end as email_valid from all_emails
<gh_stars>1000+ -- +migrate Up CREATE TABLE identities_audit ( audit_id BIGINT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY, audit_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), audit_user TEXT NOT NULL DEFAULT USER, audit_op audit_op NOT NULL, LIKE identities ); -- +migrate StatementBegin CREATE ...
SELECT CountryTLD FROM Countries WHERE CountryName = 'Iceland'
<gh_stars>0 -- Drop, copy & recreate pushers table to change unique key -- Also add access_token column at the same time CREATE TABLE IF NOT EXISTS pushers2 ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_name TEXT NOT NULL, access_token INTEGER DEFAULT NULL, profile_tag varchar(32) NOT NULL, kind varchar(8) NOT...
<reponame>alexandre-zup/orange-talents-07-template-ecommerce CREATE TABLE usuario ( id BIGINT NOT NULL AUTO_INCREMENT, login VARCHAR(255) NOT NULL, senha VARCHAR(255) NOT NULL, criado_em DATETIME NOT NULL, PRIMARY KEY(id) );
CREATE DATABASE IF NOT EXISTS `mathdb` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mathdb`; -- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64) -- -- Host: localhost Database: mathdb -- ------------------------------------------------------ -- Server version 5.7.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<filename>modules/core/db/update/postgres/18/180226-2-updateOrderLine.sql -- update SALES_ORDER_LINE set PRODUCT_ID = <default_value> where PRODUCT_ID is null ; alter table SALES_ORDER_LINE alter column PRODUCT_ID set not null ; update SALES_ORDER_LINE set QUANTITY = 0 where QUANTITY is null ; alter table SALES_ORDER_L...
<reponame>Ivan-Masli-GDP/Play # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table account ( id bigint auto_increment not null, account_number bigint, balance bigint, constrain...
<reponame>LabKey/wnprc-modules<gh_stars>1-10 SELECT '(Breeding Colony)' AS Name UNION ALL SELECT Name FROM (SELECT DISTINCT inves AS Name FROM ehr.protocol ORDER BY inves ASC) _a
/* Navicat MySQL Data Transfer Source Server : ddddd Source Server Version : 50718 Source Host : localhost Source Database : aries Target Server Version : 50718 File Encoding : utf-8 Date: 09/04/2019 23:01:11 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- -------------...
<reponame>jamestran1/Kandu CREATE PROCEDURE [dbo].[User_GetInfo] @userId int AS SELECT * FROM Users WHERE userId=@userId