sql
stringlengths
6
1.05M
<reponame>MuhammadFahmii/RentalMobil -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Jan 2021 pada 14.59 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
<reponame>thienkimlove/gis<filename>app/Models/SqlFunctions/postgis_store_guest_map.sql /* Stores polygon (which create from multi parallel linestring) and intersection between fertilizer map meshes and each polygons. */ -- create new type (mix : intersections, geo : geometry of polygon) DROP TYPE IF EXISTS A_Grid ...
$table->integer('itemnumber'); $table->string('orderitems'); $table->integer('itemqty'); $table->integer('freeitem'); $table->decimal('itemprice', 8, 2); $table->timestamps(); ALTER TABLE `parent` ADD CONSTRAINT `ref` FOREIGN KEY (`parent_dat...
-- Criar tabela Empresas create table if note exists empresas ( id int unsigned not null auto_increment, nome varchar(255) not null, cnpj int unsigned, primary key (id), unique key (cnpj) ); create table if not exists empresas_unidades ( empresas_id int unsigned not null, cidade_id int uns...
<gh_stars>0 DROP PROCEDURE IF EXISTS spGetUserDetails; CREATE PROCEDURE spGetUserDetails ( email varchar(50) ) Select userid,firstname from tbl_users where email = email
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Sep 07, 2021 at 11:10 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 03, 2019 at 02:51 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
IF NOT EXISTS(SELECT TOP 1 1 FROM sys.tables WHERE name='page_type' AND SCHEMA_NAME(schema_id)='dbo') BEGIN CREATE TABLE dbo.page_type ( page_type_id BIGINT NOT NULL IDENTITY, page_name NVARCHAR(255) NOT NULL, is_enabled BIT NOT NULL ) PRINT 'CREATE TABLE ...
<gh_stars>0 create database unit; grant all on unit.* to unit;
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness USE DBA GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'IndexOptimize_Modified') EXEC ('CREATE PROC dbo.IndexOptimize_Modified AS SELECT ''stub version, to be replaced''') GO ALTER PROCEDURE [dbo].[IndexOptimize_Modified] ...
# agregamos a esa tabla, global, para poder chatear todos insert into `tiporelusuarios` (`idtiporelusuarios`, `tiporelusuarios`) values ('5', 'global'); DELIMITER $$ drop procedure if exists mensajeschat $$ CREATE PROCEDURE mensajeschat(in opciones int, in nombreamigo nvarchar(100), in cormio nvarchar(100), in mensaj...
<gh_stars>0 CREATE TABLE collection_claimeditemset ( id INT NOT NULL AUTO_INCREMENT, player_id VARCHAR(100) NOT NULL, item_set_id VARCHAR(100) NOT NULL, PRIMARY KEY (id), FOREIGN KEY (item_set_id) REFERENCES collection_itemset(id) );
<filename>web/maBase/asi_police .sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 22 Janvier 2019 à 16:46 -- Version du serveur : 5.7.14 -- Version de PHP : 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>1-10 INSERT INTO `test_category`(`id`, `pid`, `name`, `status`) VALUES ('1', '0', '图书', '1'); ('2', '1', '科技','1'); ('3', '2', '计算机','1'); ('4','2', '医学', '1'); ('5', '2', '自然与科学', '1'); ('6', '0', '电脑办公', '1'); ('7','6', '电脑整机', '1'); ('8','7', '笔记本', '1'); ('9', '7','平板电脑','1'); ('10','7', '服务器','1'); ('11...
<reponame>jnware7/Pizza-Restaurant-Relational-DB-Schema-with-CRUD-API CREATE TABLE customer ( customer_id SERIAL , name VARCHAR , address VARCHAR , phone_num VARCHAR , payment_meth TEXT , PRIMARY KEY (customer_id) ); CREATE TABLE card_join ( customer_id INTEGER , card_id INTEGER ); CREATE TABLE orders_join ( custo...
insert into message (id, locale, code, message, tenantId, module, createdby) VALUES (1, 'en_US', 'module.foo_1', 'Registered successfully', 'tenant1', 'default', 0); insert into message (id, locale, code, message, tenantId, module, createdby) VALUES (2, 'en_US', 'module.foo_2', 'Error loading page', 'tenant1', 'default...
<filename>migration/007_more_decimals.sql -- +migrate Up ALTER TABLE block CHANGE COLUMN difficulty difficulty DOUBLE(50,8) NOT NULL ;
-- file:tsearch.sql ln:152 expect:true SELECT to_tsquery('simple', 'qwe & sKies ')
<reponame>litghost/symbiflow-xc-fasm2bels -- This is the database schema for relating a tile grid to a VPR routing -- graph. -- -- Terms: -- grid - A 2D matrix of tiles -- -- phy_tile - A location with the physical grid. A tile is always of a -- particular tile type. The tile type specifies what wires, pips...
<filename>XFILES/xdbpm/XDBPM_DATAGUIDE_SEARCH.sql<gh_stars>10-100 /* ================================================ * Oracle XFiles Demonstration. * * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy o...
INSERT INTO Guardian ( guardianId,FirstName,LastName, RelationshipToChild) Values (3,'Jarvis', 'Chandler', 'instructor') INTO CHILD ( childId,LastName,FirstName,CurrentAccountBalance,guardianId) Values (6,'Zandy', 'Davis',12.00,4) INSERT INTO Rewardoptions (RewardoptionId, rewardType, rewardCost, RewardDescription) V...
<reponame>dorukarslan/CryptoMarket_Database<filename>createdb.sql CREATE TABLE public.Users( User_ID int NOT NULL, Full_name varChar(100) NOT NULL, Country varChar(15), Register_Date date NOT NULL, Field varchar(100), PRIMARY KEY(User_ID) ); CREATE TABLE public.Coin( Coin_ID int NOT NULL, Coin_Nam...
<reponame>cityofaustin/transportation-vz-data -- -- PostgreSQL database dump -- -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.10 -- Started on 2019-10-15 13:53:40 CDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET...
<reponame>Swarmops/Swarmops<gh_stars>10-100 ALTER TABLE `ExpenseClaims` CHANGE COLUMN `ExpenseClaimId` `ExpenseClaimId` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT
grant hdb_meta_role to meta_data_user; grant model_priv_role to meta_data_user; alter user meta_data_user default roles connect, hdb_meta_role, model_priv_role; quit;
CREATE SEQUENCE clinic_administrator_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE clinical_center_administrator_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE AUTHORITY_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE clinic_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE patient_id_seq START WIT...
<reponame>omer-seran/sblinux -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost:3306 -- Üretim Zamanı: 15 Ara 2018, 17:50:04 -- Sunucu sürümü: 10.1.31-MariaDB-cll-lve -- PHP Sürümü: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
IF OBJECT_ID('inventory.get_account_id_by_supplier_id') IS NOT NULL DROP FUNCTION inventory.get_account_id_by_supplier_id; GO CREATE FUNCTION inventory.get_account_id_by_supplier_id(@supplier_id integer) RETURNS integer AS BEGIN RETURN ( SELECT inventory.suppliers.account_id ...
CREATE TABLE `sys_columns` ( `column_id` int(11) NOT NULL AUTO_INCREMENT , `app_id` bigint(20) unsigned NULL DEFAULT NULL , `table_id` int(11) NULL DEFAULT NULL , `column_name` varchar(128) NULL DEFAULT NULL , `column_comment` varchar(128) NULL DEFAULT NULL , `column_type` varchar(128) NULL DEFAULT NULL , `go_t...
{% macro get_bank_transaction_columns() %} {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "bank_account_id", "datatype": dbt_utils.type_string()}, {"name": "bank_transaction_id", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_batch_payme...
<filename>distro/sql/upgrade/cmmn/flowable.mysql.upgradestep.6.3.0.to.6.3.1.cmmn.sql<gh_stars>1000+ UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.5 (192.168.1.5)', LOCKGRANTED = '2019-03-13 21:04:10.536' WHERE ID = 1 AND LOCKED = 0; CREATE TABLE ACT_CMMN_HI_PLAN_ITEM_INST (ID_ VARCHAR(25...
<reponame>NCIP/national-biomedical-image-archive<gh_stars>10-100 /*L Copyright SAIC, Ellumen and RSNA (CTP) Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. L*/ CREATE SEQUENCE NCIASTG.CSM_USER_GROU_USER_GROUP_R_SE...
<gh_stars>0 -- @testpoint: 创建列类型是序列整型SERIAL的表,超出边界时合理报错 drop table if exists table_1; create table table_1(a SERIAL); insert into table_1 values(1); insert into table_1 values(1252345656); insert into table_1 values(2147483647); --ERROR: integer out of range insert into table_1 values(0); insert into table_1 values(21...
<gh_stars>100-1000 START TRANSACTION; select current_timestamp; insert into tx (select 100x,10x,x from generate_series(1,1000) as x); insert into cmpts values(2,current_timestamp); select pg_sleep(10); select current_timestamp; COMMIT; select pg_sleep(2); select count(*) from tx;
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 14-01-2020 a las 19:57:16 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2017 at 11:53 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<gh_stars>0 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; ...
{{ config(schema="_AIRBYTE_TEST_NORMALIZATION", tags=["nested-intermediate"]) }} -- SQL model to build a hash column based on the values of this record select *, {{ dbt_utils.surrogate_key([ '_AIRBYTE_CONFLICT_STREAM_ARRAY_HASHID', array_to_string('CONFLICT_STREAM_NAME'), ]) }} as _AIRBYTE_C...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 19, 2019 at 05:29 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...
ALTER TABLE organizations ADD COLUMN setting_step SMALLINT;
USE employees_db; DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE departments ( id INT AUTO_INCREMENT NOT NULL, department varchar (30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( role_id int AUTO_INCREMENT NOT NULL, title VARCHAR (30) NOT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Ned 11. říj 2020, 13:37 -- Verze serveru: 10.4.6-MariaDB -- Verze PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2016 at 10:42 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>jcarait/employee-tracker INSERT INTO department (name) VALUES ('IT'), ('Finance & Accounting'), ('Sales & Marketing'), ('Operations'); INSERT INTO role (title, salary, department_id) VALUES ('Software Ninjaneer', 110000, 1), ('Wiz Kid', 95000, 1), ('Money Maestro', 95000, 2), ('Master of Coin', 150000, 2), ...
-- MySQL dump 10.15 Distrib 10.0.21-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: blog -- ------------------------------------------------------ -- Server version 10.0.21-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
<filename>sunbird-cassandra-migration/cassandra-migration/src/main/resources/db/migration/cassandra/V1.104_cassandra.cql<gh_stars>1-10 CREATE TABLE IF NOT EXISTS sunbird.user_declarations( userid text, orgid text, persona text, userinfo map<text,text>, status text, errortype text, createdon timesta...
create keyspace aviation WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }; create table aviation.airport_carrier_departure ( airport text, carrier text, dep_delay decimal, PRIMARY KEY(airport, dep_delay, carrier) ); create table aviation.airport_airport_departure ( airport text, airp...
-- MySQL dump 10.15 Distrib 10.0.29-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: localhost -- ------------------------------------------------------ -- Server version 10.0.29-MariaDB-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
<reponame>eddielino/csit314-bug-tracking-system INSERT INTO `bug_action` VALUES (2, 1, 'new', '', 'enabled', 1600781224, 46),(3, 1, 'assigned', '', 'enabled', 1600781224, 27),(4, 1, 'fixing', '', 'enabled', 1600781224, 27),(5, 1, 'pending_review', '', 'enabled', 1600781224, 18),(6, 1, 'completed', '', 'enabled', 160078...
-- -- CzechIdM 7.0 Flyway script -- BCV solutions s.r.o. -- -- Remove constaint form audit table ALTER TABLE idm_role_a ALTER COLUMN approve_remove DROP NOT NULL;
<reponame>timshadel/subdivision-list<gh_stars>10-100 CREATE TABLE subdivision_IE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-CN', E'Cavan', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VA...
<filename>Performance/Jobs/CheckConstraints.sql SELECT 'ALTER TABLE [' + s.name + '].[' + o.name + '] WITH CHECK CHECK CONSTRAINT [' + i.name + '];' AS keyname from sys.foreign_keys i INNER JOIN sys.objects o ON i.parent_object_id = o.object_id INNER JOIN sys.schemas s ON o.schema_id = s.schema_id WHERE i.is_not_tru...
<reponame>dram/metasfresh<gh_stars>1000+ -- 2018-01-22T17:59:48.836 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 17:59:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3025 ; -- 2018-01-22T18:00:53.986 -- I forgot ...
<filename>boundary_polygon/boundary_polygon.sql -- etldoc: osm_border_polygon_linestring_gen_z0 -> osm_border_polygon_gen_z0 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z0; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z0 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_Simp...
CREATE INDEX CONCURRENTLY IF NOT EXISTS transformationcache_last_access ON transformationcache USING BTREE (last_access);
create database buses; use buses; create table modelos_buses( id int primary key auto_increment, marca varchar(255) not null, module varchar(255) not null ); alter table modelos_buses change column module modelo varchar(255) not null; create table buses( id int primary key auto_increment, matricula varchar(7...
<gh_stars>0 select count(*) from nulls where bool_0 5
<filename>SQL/SQLQuery2.sql --ASSIGNMENT --- CREATE DATABASE DEMO; USE DEMO; CREATE TABLE EMP_SAL (EID CHAR(5),DEPT VARCHAR(30),DESI VARCHAR(20), DOJ DATE,SALARY INT); INSERT INTO EMP_SAL VALUES('E0001','Marketing','General Manager','01/01/2020',10000); DROP TABLE EMP_SAL; SELECT * FROM EMP_SAL; INSE...
<filename>scripts/sql/likely-fishing.sql<gh_stars>1-10 /* # Likely Fishing MMSIs *query-version: 3* MMSIs of vessels which declare the vessel type to be 'Fishing' in type 5 or 24 Based on this query: https://github.com/GlobalFishingWatch/pleuston/issues/28 See the query committed here for the precise definition....
BEGIN; DROP TABLE IF EXISTS cm_action_jobs; COMMIT;
<reponame>christopappas/gocd-analytics-plugin<filename>src/main/resources/db/migration/V6__add_created_at_and_last_transition_time_to_pipelines.sql ALTER TABLE pipelines ADD COLUMN created_at timestamp, ADD COLUMN last_transition_time timestamp;
<reponame>deleidos/digitaledge-platform GRANT ALL ON DIMENSIONS.AIRLINE_ID TO INGEST; GRANT ALL ON DIMENSIONS.CANCELLATION TO INGEST; GRANT ALL ON DIMENSIONS.NATION TO INGEST; GRANT ALL ON DIMENSIONS.SUPPLIER TO INGEST; GRANT ALL ON DIMENSIONS.ROUTES TO INGEST; GRANT ALL ON DIMENSIONS.ORDER_INFO TO INGEST; GRANT ALL ON...
<gh_stars>1-10 DO $$ <<migrate_root_id>> DECLARE parentid_exist boolean := false; alter_fileids boolean := false; alter_props boolean := false; BEGIN SELECT count(*) != 0 INTO parentid_exist FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'parentid'; SELECT count(*)...
DROP TABLE `apilocations`; CREATE TABLE IF NOT EXISTS `apilocations` ( `itemID` BIGINT(20) NOT NULL, `itemName` VARCHAR(256) NOT NULL, `x` DOUBLE NOT NULL, `y` DOUBLE NOT NULL, `z` DOUBLE NOT NULL, `corporationID` INT(11) NOT NULL, PRIMARY KEY (`itemID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
<filename>plugins/int-generic-jobtask/jobs.sql SELECT t1.JobId, t1.Name, t1.Group_Id, t3.Group_Name, t2.TaskID, t2.TaskName FROM mc_jobs AS t1 WITH(nolock) LEFT JOIN mxpv_job_tasklink AS t2 WITH(nolock) ON t1.JobId = t2.JOBID LEFT JOIN mc_Group AS t3 WITH(nolock) ON t1.Group_Id = t3.Group_Id
<filename>database/Fix/02.fix_new/20170321/permission_role.sql /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50631 Source Host : localhost:3306 Source Database : wambi_scu Target Server Type : MYSQL Target Server Version : 50631 File Encoding ...
<reponame>keboola/db_benchmark<filename>v2_USER_CODE_Synapse/MS_test_3/microsoft_sql_CTAS/warmup_14.sql select top 100 * from reason where r_reason_sk=-100 order by r_reason_id desc
<reponame>apetraru/bookstore -- AUTHORS INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (1, 'Although she writes under the pen name <NAME>, pronounced like rolling,her name when her first Harry Potter book was published was simply <NAME>. Anticipating that the target audience of youn...
<filename>assets/docs/projeto.sql -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.11-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -------------...
<filename>GRA.Database/dbo/Tables/RegistrationSettings.sql CREATE TABLE [dbo].[RegistrationSettings] ( [RID] INT IDENTITY (1, 1) NOT NULL, [Literacy1Label] VARCHAR (50) CONSTRAINT [DF_RegistrationSettings_Literacy1Label] DEFAULT ('AR Level') NULL, [Lite...
-- #!mysql -- #{ xialotecon.bank -- #{ interest -- # { init -- # { constant_ratio CREATE TABLE IF NOT EXISTS bank_interest_constant_ratio ( interestId CHAR(34) PRIMARY KEY, accountId CHAR(34) NOT NULL, ratio DOUBLE, period DOUBLE, lastApplied TIMESTAMP DEFAULT CURRENT_TIMESTAMP, KEY (acco...
<gh_stars>1-10 INSERT INTO city (id, name, departmentId) VALUES (5001, 'Medellín', 5); INSERT INTO city (id, name, departmentId) VALUES (5002, 'Abejorral', 5); INSERT INTO city (id, name, departmentId) VALUES (5004, 'Abriaquí', 5); INSERT INTO city (id, name, departmentId) VALUES (5021, 'Alejandría', 5); INSERT INTO ci...
<gh_stars>1-10 create view "postgres"._airbyte_test_normalization."conflict_stream_scalar_ab3__dbt_tmp" as ( -- SQL model to build a hash column based on the values of this record select *, md5(cast( coalesce(cast("id" as varchar ), '') || '-' || coalesce(cast(conflict_stream_scalar as ...
drop table if exists entries; create table entries ( id integer primary key autoincrement, week integer, data1 integer, data2 integer );
<filename>src/test/resources/bigfile.test_8.sql -- bigfile.test -- -- execsql { -- CREATE TABLE t3 AS SELECT * FROM t1; -- SELECT md5sum(x) FROM t3; -- } CREATE TABLE t3 AS SELECT * FROM t1; SELECT md5sum(x) FROM t3;
<filename>src/test/resources/tkt1444.test_1.sql -- tkt1444.test -- -- execsql { -- CREATE TABLE DemoTable (x INTEGER, TextKey TEXT, DKey Real); -- CREATE INDEX DemoTableIdx ON DemoTable (TextKey); -- INSERT INTO DemoTable VALUES(9,8,7); -- INSERT INTO DemoTable VALUES(1,2,3); -- CREATE VIEW DemoVie...
<filename>src/test/resources/sql/select/95f2c090.sql -- file:collate.icu.utf8.sql ln:314 expect:true SELECT * FROM unnest((SELECT array_agg(b ORDER BY b) FROM collate_test3)) ORDER BY 1
-- file:regex.linux.utf8.sql ln:45 expect:true SELECT 'aⓜⒶ⓪' ~ '[a-z][ⓐ-ⓩ][[:alpha:]][[:graph:]]' AS t
BEGIN; -- insert seed data for basic user/platform/project/reward \i /specs/sql-support/insert_platform_user_project.sql \i /specs/sql-support/clean_sets_helpers.sql select plan(4); select function_returns('community_service_api', 'user_details', ARRAY['uuid'], 'jsonb'); prepare user_details ...
<reponame>super-vip/usql<gh_stars>1000+ -- sqlserver test script \set \set SYNTAX_HL_FORMAT terminal16m \set SYNTAX_HL true \? \copyright \set SYNTAX_HL_STYLE dracula select 'test'' ' \g \set NAME myname DROP TABLE IF EXISTS books; DROP TABLE IF EXISTS authors; CREATE TABLE authors ( author_id integer NOT NU...
<filename>IntegrationTests/RestoreSvcBrokerDbForLinux2.sql USE[SvcBrokerTest]; IF NOT EXISTS (SELECT * FROM sys.sql_logins WHERE NAME = N'tester') BEGIN CREATE LOGIN [tester] WITH PASSWORD=N'<PASSWORD>', DEFAULT_DATABASE=[SvcBrokerTest], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF; END; IF NOT EXISTS (SEL...
<filename>script01.sql CREATE TABLE public.matrizes ( id bigint NOT NULL, identificacao bigint, data_nascimento timestamp without time zone, proprietarios_id bigint ); -- -- Name: matrizes_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- ALTER TABLE public.matrizes ALTER COLUMN id ADD GENERATED BY ...
INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (1, "K. Bell Plumbing & Heating - West Haven", "1676 W. 2100 S.", "West Haven", "UT", "84401", 1000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (2, "K. Be...
<reponame>MCZbase/DDL<gh_stars>1-10 CREATE UNIQUE INDEX "U_CF_REPORT_SQL_NAME" ON "CF_REPORT_SQL" ("REPORT_NAME")
<reponame>singcha/presto -- TPC-H/TPC-R Product Type Profit Measure Query (Q9) -- Functional Query Definition -- Approved February 1998 select nation, o_year, sum(amount) as sum_profit from ( select n.name as nation, extract(year from date(o.orderdate)) as o_year, l.extendedprice * (1 - l.discount) - ps....
set system parameters 'dont_reuse_heap_file=yes'; create table t1 (a int, b int, c int); insert into t1 select rownum%2, rownum,rownum from db_class a, db_class b, db_class c, db_class d limit 100000; create index i_t1_a_b on t1(a,b); --you will see that ISS is used. That's good. select /*+ recompile INDEX_SS */ * fro...
<reponame>sgol13/restaurant-database<gh_stars>0 --> Procedury --# UpdateConstants(...) --- Aktualizuje podane stałe (nie zmieniając pozostałych). Domyślnie stałe wchodzą w życie natychmiastowo, --- ale może zostać podana określona data. CREATE OR ALTER PROCEDURE UpdateConstants( @Date datetime = NULL, @Z1 INT ...
<filename>backend/sql/init.sql -- Creation of users table CREATE TABLE IF NOT EXISTS users ( user_id INT NOT NULL, username VARCHAR(250) NOT NULL UNIQUE, hashedPassword VARCHAR(250) NOT NULL, summary VARCHAR(250) NOT NULL, token VARCHAR(250), PRIMARY KEY (user_id) ); -- Creation of readList table CREATE TA...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 01-07-2020 a las 00:25:34 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 28 2021 г., 14:23 -- Версия сервера: 5.7.33 -- Версия PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<filename>data/public/schema.sql CREATE TABLE "insulin" ( "id" int PRIMARY KEY, "timestamp" int, "amount" float, "duration" int, "type" text, "brand" text, "user_id" int ); CREATE TABLE "user" ( "id" int PRIMARY KEY, "bg_high" int, "bg_low" int, "bg_target_top" int, "bg_target_bottom" int, "h...
CREATE DATABASE IF NOT EXISTS `php_app`; USE `php_app`; CREATE TABLE IF NOT EXISTS `users` ( `id` BIGINT unsigned NOT NULL AUTO_INCREMENT COMMENT 'user id', `nickname` VARCHAR(20) NOT NULL COMMENT 'nickname', `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME NOT NULL DEFAU...
<filename>BDD -SCHEMA AND DATA/Scripts/projectDB Script3.sql CREATE OR REPLACE FUNCTION titulacion.if_modified_func() RETURNS TRIGGER AS $body$ DECLARE v_old_data TEXT; v_new_data TEXT; BEGIN IF (TG_OP = 'UPDATE') THEN v_old_data := ROW(OLD.*); v_new_data := ROW(NEW.*); INSERT INTO...
# SQL Manager 2005 Lite for MySQL 3.7.7.1 # --------------------------------------- # Host : localhost # Port : 3306 # Database : disloques SET FOREIGN_KEY_CHECKS=0; USE `disloques`; # # Data for the `parametros` table (LIMIT 0,500) # INSERT INTO `parametros` (`id_parametro`, `parametro_dias_periodo`, `pa...
<reponame>lgcarrier/AFW<gh_stars>1-10 SET DEFINE OFF; CREATE INDEX AFW_25_PARMT_TYPE_PUBLC_FK2 ON AFW_25_PARMT_TYPE_PUBLC (REF_ENGIN) LOGGING /
# Kuuzu # # @copyright (c) 2016 osCommerce; https://www.oscommerce.com # @license MIT; https://www.oscommerce.com/license/mit.txt # # @copyright Copyright (c) 2018 Kuuzu; https://kuuzu.org # @license MIT License; https://kuuzu.org/mitlicense.txt # # NOTE: * Please make any modifications to this file by hand! # * ...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION IF NOT EXISTS citext;
update egpgr_receiving_center set orderno =6 where name='Commissioner Office'; update egpgr_receiving_center set orderno =7 where name='Zonal Office'; update egpgr_receiving_center set orderno =8 where name='Complaint Cell'; update egpgr_receiving_center set orderno =9 where name='Field visits'; update egpgr_receiv...
<gh_stars>1-10 CREATE DATABASE IF NOT EXISTS scot; USE scot; source dump.sql
INSERT INTO "main"."products" ("sku", "name", "subtitle", "description", "imageUrl", "depositSku", "bundledSku", "isDeposit", "weighing", "referenceUnit", "encodingUnit", "boost", "saleRestriction", "scanMessage", "notForSale", "saleStop") VALUES ('34-tt', 'Braeburn rot', 'Apfel', '', '', '', '', '0', '1', 'kg', 'g', '...