sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 08, 2021 at 01:49 PM -- Server version: 5.7.32-0ubuntu0.16.04.1 -- PHP Version: 7.0.33-0ubuntu0.16.04.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>duaruang/EventManagementSys -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 23 Sep 2016 pada 10.15 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
show databases; use rachel_market; CREATE TABLE users( id INT(2) UNSIGNED AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(50) NOT NULL, lastname VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, reg_date TIMESTAMP )ENGINE=InnoDB; CREATE TABLE contacts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, fullname VARCHAR(...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2018 at 12:54 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
USE CompanyDB GO IF OBJECT_ID('dbo.employees', 'U') IS NOT NULL DROP TABLE dbo.employees GO CREATE TABLE dbo.employees ( employee_id INT NOT NULL, first_name NVARCHAR(256) NOT NULL, last_name NVARCHAR(256) NOT NULL, hire_date DATE NOT NULL, termination_date DATE NULL, department_code NCHAR(4) NOT NULL CONST...
<reponame>katamb/pdf-generator<gh_stars>0 SET search_path=pdf_generator; INSERT INTO template_code (template_code) VALUES ('EDITABLE_FORM_EE') ; INSERT INTO text_block (text_block_value) VALUES ('<b>PDF vorm</b>'), ('Täida vorm ja salvesta PDF täidetud kujul. Seejärel digiallkirjasta PDF fail ja s...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.2 -- Dumped by pg_dump version 9.6.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
<reponame>jgebal/bitmap_set_index ALTER SESSION SET PLSQL_WARNINGS = 'ENABLE:ALL'; ALTER SESSION SET PLSQL_CODE_TYPE = NATIVE; / ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL = 3; / CREATE OR REPLACE PACKAGE bmap_maint AUTHID CURRENT_USER AS PROCEDURE create_index; PROCEDURE drop_index; END bmap_maint; / SHOW ERRORS...
<reponame>blt/Nomad CREATE TABLE EmailAddress ( id SERIAL NOT NULL PRIMARY KEY, address VARCHAR(254) NOT NULL UNIQUE ); CREATE TABLE ActiveEmailAddress ( e_id INTEGER NOT NULL REFERENCES EmailAddress (id), created Timestamp NOT NULL, UNIQUE (e_id, created) ); CREATE TABLE Historical...
ALTER TABLE `cms_category_widget` ADD `cacheLifetime` int NOT NULL DEFAULT '2592000';
\c socialnetwork; INSERT INTO users(login, email, password, firstname, lastname) VALUES('pandalred', '<EMAIL>', '$2a$10$KOjovT62mnqly08Gup5ToOlVdHQ2q8i8lcDihaDGscPfkoNDRk26e', 'Arnaud', 'Thomazo'); INSERT INTO users(firstname, lastname, login, email, password) VALUES('Louis', 'Vezia', 'akabay', '<EMAIL>', '$2a$10$KOjo...
/* SQL Server: Query To Get File Growth Settings And Status For All Databases In An Instance */ -- Environments: SQL Server 2008 / 2012 use master go select b.name DB_Name, a.name Logical_name, a.filename File_Name, cast((a.size * 8.00) / 1024 as numeric(12,2)) as DB_Size_in_MB, case when a.growth > 100 then 'In MB' el...
<filename>docs/database/alter_21-08.sql RENAME TABLE `business_case` TO `benefits_plan`; ALTER TABLE `benefits_plan` CHANGE `business_case_id` `benefits_plan_id` INT(11) NOT NULL AUTO_INCREMENT; CREATE TABLE IF NOT EXISTS `business_case` ( `business_case_id` INT(11) NOT NULL AUTO_INCREMENT, `business...
<reponame>aliostad/deep-learning-lang-detection CREATE TABLE "shows" ("id" serial8 primary key, "created_at" date, "name" varchar(255), "price" decimal); INSERT INTO "shows" VALUES (1, '2015-08-23 20:09:41.969902', '<NAME>', 12.99); INSERT INTO "shows" VALUES (2, '2015-08-23 20:09:41.972179', '<NAME>', 16.50); INSERT ...
<reponame>j-sieben/PIT<filename>PIT/modules/pit_apex/install.sql @init/set_folders modules/pit_apex prompt prompt &section. prompt &h1.Module PIT_APEX prompt &h2.Clean up existing installation @&install_dir.clean_up_install.sql prompt prompt &h2.Install module PIT_APEX prompt &s1.Create parameter for PIT_APEX @&tool...
<gh_stars>100-1000 -- auth.test -- -- execsql { -- REINDEX BINARY; -- } REINDEX BINARY;
<filename>src/test/resources/sql/insert/8268502e.sql -- file:updatable_views.sql ln:470 expect:true INSERT INTO base_tbl VALUES (3)
<reponame>Shuttl-Tech/antlr_psql -- file:numeric.sql ln:82 expect:true INSERT INTO num_exp_mul VALUES (1,4,'0')
/*Table structure for table attemper_arg */ CREATE TABLE attemper_arg ( ARG_NAME varchar(64) COLLATE utf8_bin NOT NULL, ARG_TYPE int(11) NOT NULL, ARG_VALUE varchar(2000) COLLATE utf8_bin DEFAULT NULL, GENERIC_TYPE int(11) DEFAULT NULL, ATTRIBUTE varchar(2000) COLLATE utf8_bin DEFAULT NULL, REMARK varchar(...
create table labeler_rating (id varchar(255) not null, labeler_id varchar(255) not null, negative integer, positive integer, project_id varchar(255) not null, primary key (id)); alter table labeler_rating add constraint fk_labeler_rating_project foreign key (project_id) references project (id);
-- 2017-09-15T18:48:46.153 -- URL zum Konzept UPDATE AD_Column SET Help='This flag will mark ref_tables that are for Relation Types with the same flag , which have no source. The ref_table will be a reference target which means it contains the columns "AD_Table_ID" and "Record_ID" or [Tablename_]Record_ID. If the targ...
-- -- Database: `testing` -- -- -------------------------------------------------------- -- -- Table structure for table `page` -- CREATE TABLE `page` ( `page_id` int(11) NOT NULL, `page_title` text NOT NULL, `page_url` text NOT NULL, `page_order` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ...
/* MySQL Data Transfer Source Host: localhost Source Database: oa Target Host: localhost Target Database: oa Date: 2018/6/14 15:59:05 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for oa_dept -- ---------------------------- CREATE DATABASE oa DEFAULT CHARACTER SET utf8 COLLATE utf8_ge...
<filename>install/mysql/tables/llx_expedition.sql -- =================================================================== -- Copyright (C) 2003-2010 <NAME> <<EMAIL>> -- Copyright (C) 2008-2010 <NAME> <<EMAIL>> -- Copyright (C) 2011-2012 <NAME> <<EMAIL>> -- Copyright (C) 2012 <NAME> <<EMAIL>> -- -- This pro...
CREATE DATABASE store; USE store; CREATE TABLE product( id INTEGER PRIMARY KEY AUTO_INCREMENT, price FLOAT, description VARCHAR(55), amount INT ); INSERT INTO product(id, price, description, amount) VALUES (default, 1.50, "vite", 50); INSERT INTO product(id, price, description, amount) VALUES (default, ...
<filename>drools_parent/out/production/ssh_web/oracle.sql Insert into SCOTT.ORDERS (ID,CREATE_TIME,IS_ADCSO,IS_ASFFS,IS_ASFIA,IS_ASFS,IS_ADTA,IS_CREATE_DELIVERY,ORDER_ID,STATUS,SUM,TYPE,UNIT,UPDATE_TIME) values (200,to_date('12-6月 -16','DD-MON-RR'),1,1,0,1,1,0,'0003',0,10,1,1,null); Insert into SCOTT.ORDERS (ID,CREATE_...
<filename>migration-scripts/migration-3.1.0_to_3.2.0/db2.sql ALTER TABLE AM_WORKFLOWS ADD WF_METADATA BLOB DEFAULT NULL ADD WF_PROPERTIES BLOB DEFAULT NULL / CREATE TABLE IF NOT EXISTS AM_GW_PUBLISHED_API_DETAILS ( API_ID varchar(255) NOT NULL, TENANT_DOMAIN varchar(255), API_PROVIDER varchar(255), API_NAM...
CREATE TABLE IF NOT EXISTS group_roles( group_id bigint REFERENCES groups, role_id bigint REFERENCES roles, PRIMARY KEY(group_id, role_id) );
CREATE TABLE IF NOT EXISTS `wp_wish_card` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `send_name` varchar(255) NULL COMMENT '发送人', `receive_name` varchar(255) NULL COMMENT '接收人', `content` text NULL COMMENT '祝福语', `create_time` int(10) NULL COMMENT ' 创建时间', `template` char(50) NULL COMMENT '...
<reponame>RakshitMuthappa/mimir_query_sampling_optimizer CREATE TABLE res_q3_maybms AS SELECT n_name, n_name2 FROM (SELECT U1.C1 AS C1, U1.W1 AS W1, U1.C2 AS C2, U1.W2 AS W2, U1.C3 AS C3, U1.W3 AS W3, U1.C4 AS C4, U1.W4 AS W4, U1.C...
<filename>presto-benchto-benchmarks/src/main/resources/sql/presto/tpch/q18.sql SELECT c.name, c.custkey, o.orderkey, o.orderdate, o.totalprice, sum(l.quantity) FROM "${database}"."${schema}"."${prefix}customer" AS c, "${database}"."${schema}"."${prefix}orders" AS o, "${database}"."${schema}"."${prefix...
<filename>samples/odps_script/multi_tower/eval_multil_tower.sql<gh_stars>100-1000 pai -name easy_rec_ext -Dconfig=oss://{OSS_BUCKET_NAME}/{EXP_NAME}/configs/multi_tower_bst.config -Dcmd=evaluate -Dtables=odps://{ODPS_PROJ_NAME}/tables/multil_tower_test_{TIME_STAMP} -Dcluster='{"worker" : {"count":1, "cpu":1000, "gpu":1...
SELECT cl.oid as value, quote_ident(nspname)||'.'||quote_ident(relname) AS label FROM pg_namespace nsp, pg_class cl WHERE relnamespace=nsp.oid AND relkind in ('r', 'p') AND nsp.nspname NOT LIKE E'pg\_temp\_%' {% if not show_sysobj %} AND (nsp.nspname NOT LIKE 'pg\_%' AND nsp.nspname NOT in ('information_schema...
<gh_stars>100-1000 CREATE TABLE synonyms ( term text, synonym text ); CREATE INDEX synonyms_term_index ON synonyms (term); DO LANGUAGE plpgsql $$ BEGIN PERFORM 1 WHERE current_setting('server_version_num')::int >= 120000; IF FOUND THEN INSERT INTO synonyms VALUES ('PGroonga', 'PGroonga'); INSERT INTO syno...
<reponame>alaevka/prizm<filename>adboard.sql -- phpMyAdmin SQL Dump -- version 4.0.10 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 03 2015 г., 14:06 -- Версия сервера: 5.5.37-log -- Версия PHP: 5.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 CREATE TABLE [dbo].[Places] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [Description] NVARCHAR(MAX) NULL, [Geography] GEOGRAPHY NULL )
use [TARGET_DATABASE] go select obj.object_id , obj.name , sts.stats_id , sts.name , sts.auto_created , sts.user_created , sts.no_recompute , sts.has_filter , sts.filter_definition , sts.is_temporary , col.name , sts_prop.rows , sts_prop.rows_sampled , sts_prop.modification_counter , sts_prop.last_updat...
ALTER TABLE dbo.TblIntervention ADD Description VARCHAR(4000) DEFAULT (NULL);
<filename>db/seed.sql USE employee_DB; INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('John', 'Sott', 1, 0); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Jim', 'Bob', 2, 1); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Robby', 'Shott...
<filename>mysql/init/init_ddl.sql create database if not exists sample_db; use sample_db; create user if not exists ojisan identified by 'password'; grant all on *.* to ojisan;
-- Drop the `CoffeeShop` table if it exists DROP TABLE IF EXISTS `CoffeeShop`; -- Create the `CoffeeShop` table CREATE TABLE `CoffeeShop` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(512) DEFAULT NULL, `city` varchar(512) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARS...
/* Navicat Premium Data Transfer Source Server : Localhost Source Server Type : MySQL Source Server Version : 100410 Source Host : localhost:3306 Source Schema : spk Target Server Type : MySQL Target Server Version : 100410 File Encoding : 65001 Date: 27/12/2019 00:3...
<reponame>fossabot/saltynote-service -- User vault table instead. drop table refresh_token;
-- --------------------------------------------- -- SOLUCIONES DEL EJERCICIO 3. TABLAS. -- --------------------------------------------- -- Creación de tablas DROP TABLE compraEntradas; DROP TABLE pases; DROP TABLE salas; DROP TABLE cine; DROP TABLE pelicula; CREATE TABLE cine ( cod NUMBER PRIMARY KEY, distrito N...
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness use DBA go if object_id('dbo.usp_ChangeJobRunningState') is null exec ('create procedure dbo.usp_ChangeJobRunningState as select 1 as dummy;'); go alter procedure dbo.usp_ChangeJobRunningState @jobs varchar(max), @state varchar(30), @verbose bit = 0, @LogToT...
<gh_stars>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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Sche...
-- ----------------------------------------------------- -- mgmt_db's schema -- Author: <NAME> (<EMAIL>) -- Date: 12/2/17 -- ----------------------------------------------------- -- ----------------------------------------------------- -- Table mgmt_db.chunk -- ----------------------------------------------------- CR...
SELECT ogc_fid AS t_id, typ, the_geom AS geometrie FROM sorkas.avt_oev_netz_kb ;
-- What if I reference a classified column in the WHERE clause only? SELECT PreferredName FROM [Application].[People] WHERE EmailAddress LIKE '%microsoft%' GO
<reponame>WeilerWebServices/PostgreSQL {% set name = o_data.name %} {% if data.name %} {% set name = data.name %} ALTER DOMAIN {{ conn|qtIdent(o_data.nspname, o_data.relname) }} RENAME CONSTRAINT {{ conn|qtIdent(o_data.name) }} TO {{ conn|qtIdent(data.name) }};{% endif -%}{% if data.convalidated %} ALTER DOMAIN {...
<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/snowflake/test_simple_streams/models/generated/airbyte_ctes/TEST_NORMALIZATION/DEDUP_EXCHANGE_RATE_AB2.sql {{ config( cluster_by = ["_AIRBYTE_EMITTED_AT"], unique_key = '_AIRBYTE_AB_ID', schema = "_AIRBYTE_TE...
-- file:case.sql ln:102 expect:true SELECT '' AS "Five", CASE WHEN ((i < 0) or (i < 0)) THEN 'small' WHEN ((i = 0) or (i = 0)) THEN 'zero' WHEN ((i = 1) or (i = 1)) THEN 'one' WHEN ((i = 2) or (i = 2)) THEN 'two' ELSE 'big' END AS "Category" FROM CASE_TBL
USE testdb; CREATE TABLE test ( nombre varchar(30), email varchar(50) ); INSERT INTO test (nombre, email) VALUES ('<NAME>', '<EMAIL>'), ('Soraya', '<EMAIL>'), ('Victor', '<EMAIL>');
<gh_stars>1-10 INSERT INTO grand_prix ( id , name , full_name , short_name , country_id , total_races_held ) VALUES ( ?.id , ?.name , ?.fullName , ?.shortName , ?.countryId , ?.totalRacesHeld );
-- -- PostgreSQL database dump -- -- Dumped from database version 12.2 -- Dumped by pg_dump version 12.2 -- Started on 2020-06-11 13:07:41 UTC SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_ca...
--liquibase formatted sql --changeset reference:create-component_environment context:ddl runOnChange:false create table public.component_environment ( component_id uuid not null constraint fk_component_environment_component_id references component(id), environment_id uuid not null constraint fk_component_envi...
insert into assets ( id, NAME, FIELD7 ) values ( :id, :name, :field7 )
create table if not exists testm1 ( keycode bigint primary key ,strv varchar(100) );
<filename>08-Advanced-SQL/homework/SQLQuery17.sql -- create a table Groups. Groups should have unique name (use unique constraint). -- Define primary key and identity column. USE TelerikAcademy CREATE TABLE Groups ( Id INT IDENTITY, Name NVARCHAR(30) UNIQUE NOT NULL, CONSTRAINT PK_Groups PRIMARY KEY(Id) ) GO
-- SELECT * FROM Customers -- SELECT * FROM PrivateCustomers -- SELECT * FROM CompanyCustomers INSERT INTO Customers (Email, Phone, Address, City, PostalCode, Country) VALUES ('<EMAIL>','1-313-551-7732','432-8058 Tempor Avenue','Poznań','46-747','Poland') INSERT INTO PrivateCustomers (CustomerID, FirstName, LastName) ...
<gh_stars>0 -- drop appsetup bundles when view is deleted; ALTER TABLE IF EXISTS portti_view_bundle_seq DROP CONSTRAINT portti_view_bundle_seq_view_id_fkey; ALTER TABLE IF EXISTS portti_view_bundle_seq ADD CONSTRAINT portti_view_bundle_seq_view_id_fkey FOREIGN KEY (view_id) REFERENCES portti_view (id) MATCH SIMPLE ON ...
-- -- Run from snaily user in madast database -- ---- START OF VERSION 1 create schema madast; create table madast.users ( id text not null constraint users_pk primary key, email text constraint users_email_key unique, firstname text, lastname text ...
--21. Write a SQL query to find all employees, along with their manager and their address. --Join the 3 tables: Employees e, Employees m and Addresses a. SELECT e.FirstName +' '+ e.LastName AS Employee, m.FirstName +' '+ m.LastName AS Manager, a.AddressText FROM dbo.Employees e LEFT OUTER JOIN dbo.Employees m -- will...
CREATE DATABASE IF NOT EXISTS scot; USE scot; source dump.sql
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Gostitelj: 127.0.0.1 -- Čas nastanka: 05. avg 2018 ob 16.04 -- Različica strežnika: 10.1.31-MariaDB -- Različica PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
<gh_stars>0 -- -- image-user-index.sql -- -- Add user/timestamp index to current image versions -- ALTER TABLE /*$wgDBprefix*/image ADD INDEX img_usertext_timestamp (img_user_text,img_timestamp);
DROP TABLE IF EXISTS locations; DROP TABLE IF EXISTS weather; DROP TABLE IF EXISTS movies; DROP TABLE IF EXISTS yelp; DROP TABLE IF EXISTS trails; CREATE TABLE locations ( id SERIAL PRIMARY KEY, search_query VARCHAR(255), formatted_query VARCHAR(255), latitude NUMERIC(10,7), longitude NUMERIC(10,7)...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2021 at 04:49 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>src/DAL/Query/Appointment0001.sql CREATE TABLE [DbVersion] ( [Id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [DbVersion] [INT] NOT NULL, [UpdateDate] [datetime] NOT NULL ); GO CREATE TABLE [MainOptions] ( [Id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, [Compa...
<gh_stars>0 -- +migrate Up DROP TRIGGER IF EXISTS `after_update_items_items`; -- +migrate StatementBegin CREATE TRIGGER `after_update_items_items` AFTER UPDATE ON `items_items` FOR EACH ROW BEGIN IF (OLD.`content_view_propagation` != NEW.`content_view_propagation` OR OLD.`upper_view_levels_propagation` != N...
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: baa -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
<filename>src/main/resources/db/migration/V7__altered_behandling_steg_tilstand.sql ALTER TABLE behandlingsstegstilstand RENAME COLUMN behandlingsstegstype TO behandlingssteg;
<gh_stars>0 SET CLIENT_ENCODING TO UTF8; SET STANDARD_CONFORMING_STRINGS TO ON; BEGIN; CREATE TABLE "public"."road" (gid serial, "fid_" int4, "fnode_" numeric(10,0), "tnode_" numeric(10,0), "lpoly_" numeric(10,0), "rpoly_" numeric(10,0), "length" float8, "road_" numeric(10,0), "road_id" numeric(10,0), "symbol" int2); A...
SELECT * FROM information_schema.constraints WHERE constraint_type='CHECK' /*if isNotEmpty(catalogName)*/ AND constraint_catalog IN /*catalogName*/('%') /*end*/ /*if isNotEmpty(schemaName)*/ AND constraint_schema IN /*schemaName*/('%') /*end*/ /*if isNotEmpty(constraintName)*/ AND constraint_name IN /*c...
DROP FUNCTION IF EXISTS public.function_source; CREATE OR REPLACE FUNCTION public.function_source(z integer, x integer, y integer, query_params json) RETURNS bytea AS $$ DECLARE mvt bytea; BEGIN RAISE NOTICE 'query_params: %', query_params; SELECT INTO mvt ST_AsMVT(tile, 'public.function_source', 4096, 'geom') F...
-- Esse script vale para o MySQL 8.x. Se seu MySQL for 5.x, precisa executar essa linha comentada: -- CREATE DATABASE IF NOT EXISTS gallery; CREATE DATABASE IF NOT EXISTS gallery DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_0900_ai_ci; USE gallery; CREATE TABLE usuario ( id_usuario int NOT NULL AUTO_INCREM...
/* Author: <NAME> Original link: https://www.sqlskills.com/blogs/jonathan/finding-implicit-column-conversions-in-the-plan-cache Desctiption: Finding Implicit Column Conversions in the Plan Cache */ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED DECLARE @dbname SYSNAME SET @dbname = QUOTENAME(DB_NAME()); ...
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:strings.sql ln:274 expect:true SELECT 'i_dio' NOT LIKE 'i$_nd_o' ESCAPE '$' AS "true"
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/7872058b.sql -- file:json.sql ln:56 expect:true SELECT 'true, false'::json
<filename>src/test/resources/sql/select/7618e32f.sql -- file:aggregates.sql ln:20 expect:true SELECT sum(gpa) AS avg_6_8 FROM ONLY student
<filename>store-services/review-service/src/main/resources/db/migration/V0__Create_Intial_Schema.sql -- Create schema is required because we are using MySQL 5.7 -- Flyway with MySQL version 8 creates the schema by default -- CREATE DATABASE `review-db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ...
<filename>INFLO-PRO/Azure/docs/Seattle Test Roadways/North and South Bound Mile Markers.sql USE [infloseattletst-db-sql] GO INSERT [dbo].[Configuration_RoadwayMileMarkers] ([RoadwayId], [MMNumber], [Latitude1], [Longitude1], [Latitude2], [Longitude2]) VALUES (N'1100', 177.8, 47.789117, -122.316765, 47.789117, -122.3167...
ALTER TABLE `item_template` CHANGE `RequiredRaputationRank` `RequiredReputationRank` INT( 30 ) unsigned NOT NULL DEFAULT '0' ;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : terror Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-05-07 23:49:01 */ SET FOREIGN_KEY_CHECKS=0; -- --...
/** * Copyright © 2017 EMBL - European Bioinformatics Institute * * 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 * * Unless required...
<gh_stars>0 -- Copyright (c) 2020 The DAML Authors. All rights reserved. -- SPDX-License-Identifier: Apache-2.0 DROP ALL OBJECTS;
/****** Object: Synonym [dbo].[S_File_Attachment] ******/ CREATE SYNONYM [dbo].[S_File_Attachment] FOR [DMS5].[dbo].[T_File_Attachment] GO GRANT VIEW DEFINITION ON [dbo].[S_File_Attachment] TO [DDL_Viewer] AS [dbo] GO GRANT SELECT ON [dbo].[S_File_Attachment] TO [DMSWebUser] AS [dbo] GO GRANT UPDATE ON [dbo].[S...
<filename>src/Frapid.Web/Areas/MixERP.Finance/db/SQL Server/2.x/2.0/src/02.functions-and-logic/finance.initialize_eod_operation.sql IF OBJECT_ID('finance.initialize_eod_operation') IS NOT NULL DROP PROCEDURE finance.initialize_eod_operation; GO CREATE PROCEDURE finance.initialize_eod_operation(@user_id integer, @off...
CREATE TABLE notification.custom_texts ( aggregate_id TEXT, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, sequence BIGINT, template TEXT, language TEXT, key TEXT, text TEXT, PRIMARY KEY (aggregate_id, template, key, language) );
<filename>posda/posdatools/migrations/posda_nicknames/addfor.sql create table for_nickname ( project_name text, site_name text, subj_id text, for_nickname text, for_instance_uid text ); create unique index for_nickname_lookup on for_nickname(project_name, site_name, subj_id, for_nickname); create unique ind...
<gh_stars>100-1000 select n_name, r_name from nation, region where n_regionkey = r_regionkey order by n_name;
<filename>migrations/20210125232317_view_validator_block_commitments.up.sql CREATE TABLE view_validator_block_commitments ( id BIGSERIAL, consensus_node_address VARCHAR NOT NULL, block_height BIGINT NOT NULL, signature VARCHAR NOT NULL, timestamp BIGINT NOT NULL, PRIMARY KEY (id) )
/** * Database schema required by yii2-admin. * * @author <NAME> <<EMAIL>> * @since 2.5 */ drop table if exists "menu"; drop table if exists "user"; create table "menu" ( "id" serial NOT NULL PRIMARY KEY, "name" varchar(128), "parent" integer, "route" varchar(256), "order" integer, "data"...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: siskitnet -- ------------------------------------------------------ -- Server version 5.7.13-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
<reponame>Illya1074/twitter-clone /* Warnings: - You are about to drop the `Like` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable PRAGMA foreign_keys=off; DROP TABLE "Like"; PRAGMA foreign_keys=on; -- CreateTable CREATE TABLE "_TweetToUser" ( "A" INTEGER NOT NULL, ...
SELECT DISTINCT first_name FROM contacts;
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 31 Mar 2020 pada 14.13 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES (2, 'App\\Domains\\Auth\\Models\\User', 7), (2, 'App\\Domains\\Auth\\Models\\User', 8), (2, 'App\\Domains\\Auth\\Models\\User', 9), (2, 'App\\Domains\\Auth\\Models\\User', 10), (2, 'App\\Domains\\Auth\\Models\\User', 11), (2, 'App\\Domains...
CREATE TABLE links( id BIGSERIAL NOT NULL PRIMARY KEY, slug VARCHAR(8) NOT NULL UNIQUE, url TEXT, visits BIGINT DEFAULT NULL, created TIMESTAMP WITH TIME ZONE DEFAULT NULL, last_visited TIMESTAMP WITH TIME ZONE DEFAULT NULL ); CREATE TABLE visits( id BIGSERIAL NOT NULL PRIMARY KEY, slug VARCHAR(8) DEFA...
<reponame>psylucidos/yumbar-production<gh_stars>0 DROP TABLE yumbarusers; DROP TABLE productiondays; DROP TABLE staffentries; DROP TABLE cuttingflavourentries; DROP TABLE packingflavourentries; DROP TABLE baseflavourentries; DROP TABLE icecreamflavourentries; DROP TABLE staffnames; DROP TABLE flavournames;