sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 24, 2015 at 02:44 -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
SELECT * FROM estados; SELECT nome, sigla FROM estados; SELECT sigla, nome FROM estados; SELECT Sigla, nome AS 'Nome do Estado' FROM estados; where regiao = 'Sul'; SELECT nome, regiao, populacao FROM estados WHERE populacao >= 10; SELECT nome, regiao, populacao FROM estados WHERE populacao >= 10 ORDER BY popul...
<filename>db/2104_reqta-inventory 14-06.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 14, 2021 at 09:33 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00...
INSERT INTO events ( unix_time, sensor_alias, temperature, humidity, pressure, acceleration ) VALUES ( 1574788980458, 'kitchen', 23.27, 25.0, 1008.38, 1008.5603601173308 ), ( 1574789014505, 'living-room', 19.39, 26.0, 1008.64, 992.0110886477025 ), ( 1574789162285, 'kitchen', 23.29, 25.5, 1008.37, 1006.6762140827606...
create or replace package body df_hartford_hurricane is function new ( object_id in df_hartford_hurricanes.object_id%TYPE default null, object_type in acs_objects.object_type%TYPE default 'df_hartford_hurricane', creation_date in acs_objects.creation_date%...
<filename>SourceCode/SADFM/trunk/SADFM.Data/Scripts/1.0/0.054.sql -- GetVisitsAndScores '7E6CF193-44B5-4BB4-8DB6-9143B32CF143', '08DA91B2-C6D1-43EE-A026-6DB9ADBEFC18' CREATE PROCEDURE GetVisitsAndScores @patientId uniqueidentifier, @scaleId uniqueidentifier AS SELECT VisitDate, ItemId = item.ListItemId, ItemName = i...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 13, 2020 at 07:51 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 08, 2020 at 10:32 AM -- Server version: 10.3.22-MariaDB-1ubuntu1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
create table teste(nome varchar); do $$ begin for i in 1..100000 loop insert into teste values (texto(10)); end loop; end; $$ language plpgsql; analyze teste; create index idxtext on teste(nome); explain analyze select * from teste where nome LIKE 'eQi%'; explain analyze select * from teste where nome LIKE '%eQi%'...
<reponame>guillermocastro/DBM-DB<gh_stars>0 USE [DBMDB] GO /****** Object: StoredProcedure [dbm].[DigestEngine] Script Date: 09/10/2020 15:20:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE OR ALTER PROC [dbm].[DigestEngine] @xmlstr NVARCHAR(MAX) AS BEGIN DECLARE @xml XML=CONVERT(XML,@xmlstr)...
WITH documents AS ( SELECT DISTINCT bezeichnung, typ, reservate_dokument.rechtsstatus, reservate_dokument.publiziertab, rechtsvorschrift, offiziellenr, reservate_reservat_dokument.reservat, reservate_teilgebiet.t_id AS teilgebiet_id, CASE...
<gh_stars>1-10 ALTER TABLE thoughts ADD COLUMN "archived?" BOOLEAN NOT NULL DEFAULT FALSE; --;; CREATE INDEX idx_thought_archived ON thoughts("archived?");
INSERT INTO stocks(id, name, price) VALUES ('NASDAQ:AAPL', 'Apple Inc.', 155.45); INSERT INTO stocks(id, name, price) VALUES ('NASDAQ:GOOG', 'Alphabet Inc.', 975.63); INSERT INTO stocks(id, name, price) VALUES ('NASDAQ:AMZN', 'Amazon.com, Inc.', 1006.73);
<gh_stars>1-10 CREATE TABLE state ( id serial PRIMARY KEY, state_abbrev VARCHAR(2) UNIQUE, code int ); CREATE TABLE area ( id serial PRIMARY KEY, area_name VARCHAR(128), stateid int, CONSTRAINT Area_State FOREIGN KEY (stateid) REFERENCES state(id) ); --DROP TABLE area CREATE TABLE county ( id serial PRIMAR...
CREATE OR REPLACE LOADER cameras_loader(dirpath STRING) LANGUAGE PYTHON { import json import os for subdir in os.listdir(dirpath): temp = os.path.join(dirpath, subdir) for datafile in os.listdir(temp): with open(os.path.join(temp, datafile), 'r') as f: data ...
create or replace view `dataline-integration-testing`._airbyte_test_normalization.`dedup_cdc_excluded_ab4` OPTIONS() as -- SQL model to prepare for deduplicating records based on the hash record column select *, row_number() over ( partition by _airbyte_dedup_cdc_excluded_hashid order by _airbyte_e...
<reponame>jdkoren/sqlite-parser -- randexpr1.test -- -- db eval {SELECT 11+t1.b+17+case when 13 not between t1.d*(17)+d-t1.f and 13 then t1.d when case when case when t1.f not in (t1.b,c,t1.f) and -d between d and 11 then d else 19 end not between a and e then t1.b when t1.d in (17,13,11) then 19 else t1.e end*a>e th...
<filename>scripts/postgres/tree/cluster_state.sql select 'checkpoint_state' node_type, 'Current checkpoint state' ui_name, '05' sort1 union all select 'control_file_state', 'Current control file state', '06' union all select 'cluster_initialization_state', 'Cluster initia...
SET @sName = 'bx_notifications'; -- SETTINGS UPDATE `sys_options_types` SET `icon`='bx_notifications@modules/boonex/notifications/|std-icon.svg' WHERE `name`=@sName;
<filename>etl/StandardizedClinicalDataTables/VISIT_DETAIL/etl.sql -- visit detail WITH "transfers" AS ( -- including emergency SELECT subject_id , hadm_id , curr_careunit , curr_wardid , intime , outtime , mimic_id FROM transfers WHERE even...
-- :name upsert-bayes-factor-analysis :! :n -- :doc Upsert a log file INSERT INTO bayes_factor_analysis( id, log_file_url, log_file_name, locations_file_url, locations_file_name, number_of_locations, burn_in, output_file_url ) VALUES ( :id, :log-file-url, :log-file-name, :locations-file-url, :locations-file-name, :numb...
create table users ( email text primary key, password <PASSWORD> null, token text, token_expires timestamp, pw_token text, pw_token_expires timestamp, verified boolean not null default 0, created timestamp not null default current_timestamp, updated timestamp );
-- Add the contracted work status codes. INSERT INTO contracted_work_status ( contracted_work_status_code, description, create_user, update_user ) VALUES ('WITHDRAWN','Withdrawn', 'system', 'system') ON CONFLICT DO NOTHING;
-- BP 6.1D content: domain syschar: 3 INSERT INTO S_DOM VALUES (656112, 'init2', 'This test is a helper domain for init1. It contains two initialization classes whose states are executed after the initialization classes in init1. **NOTE: This test is only a test of Model Compiler functionality and should not be r...
rem usage notes: rem sqlplus sys/change_on_install@orcl @db/create-sys-triggers.sql WHENEVER SQLERROR EXIT FAILURE CREATE OR REPLACE TRIGGER start_lucene_bg_srv AFTER STARTUP ON DATABASE DECLARE v_version VARCHAR2(4000); BEGIN -- Start the slave search process (DBMS_SCHEDULER) for i in (select JOB_NAME from d...
<gh_stars>1-10 SELECT t.* FROM stadium t LEFT JOIN stadium p1 ON t.id - 1 = p1.id LEFT JOIN stadium p2 ON t.id - 2 = p2.id LEFT JOIN stadium n1 ON t.id + 1 = n1.id LEFT JOIN stadium n2 ON t.id + 2 = n2.id WHERE (t.people >= 100 AND p1.people >= 100 AND p2.people >= 100) OR (t.people >= 100 AND n1.people >= 10...
!connect 'jdbc:hive2://{{ HIVE_HOST }}:10000/default{{ HIVE_PRINCIPAL }}' "" "" "" DROP DATABASE hive_smoke_test_database_{{ FULL_TESTNAME }} CASCADE;
<reponame>aafemt/firebird /* * PROGRAM: Firebird users migration. * MODULE: security_database.sql * DESCRIPTION: Migrate users from fb2.x format into fb3 * with random passwords. * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you ma...
<gh_stars>0 -- -- Table structure for table `brochure_requests` -- DROP TABLE IF EXISTS `brochure_requests`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `brochure_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(64) NOT NULL, `site` varchar(128) NOT NULL, `reference` varchar(128) ...
<reponame>digoal/gp_tpch -- $ID$ -- TPC-H/TPC-R Order Priority Checking Query (Q4) -- Functional Query Definition -- Approved February 1998 :x :o select o_orderpriority, count(*) as order_count from orders where o_orderdate >= date ':1' and o_orderdate < date ':1' + interval '3 month' and exists ( ...
<gh_stars>0 -- @testpoint:opengauss关键字Hierarchy(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists Hierarchy; CREATE TABLESPACE Hierarchy RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace Hierarchy; --关键字带双引号,创建成功 drop tablespace if exists "Hierarchy"; CREATE TABLESPACE "Hierarchy" RELATIVE ...
USE `stc`; DELIMITER $$$ CREATE FUNCTION `udf_courses_by_client`(`phone_num` VARCHAR(20)) RETURNS INT DETERMINISTIC BEGIN RETURN (SELECT COUNT(co.`id`) FROM `clients` AS cl JOIN `courses` AS co ON cl.`id` = co.`client_id` WHERE cl.`phone_number` = `phone_num`); END; $$$ DELIMITER ; SELECT UDF_COURSES_BY_CL...
<reponame>mikerozendo/Sql-HackerRank --link:https://www.hackerrank.com/challenges/more-than-75-marks/problem?isFullScreen=true select name from students where marks > 75 order by right(name,3), id
<filename>migrations/sql/doctrine_migration_20220207222336.sql -- Doctrine Migration File Generated on 2022-02-07 22:23:36 -- Version DoctrineMigrations\Version20220207215917 CREATE TABLE projects(id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL, description TEXT);
DROP TABLE IF EXISTS #Stage CREATE TABLE #Stage ( Direction varchar(7) NOT NULL , Val int NOT NULL ) DROP TABLE IF EXISTS #Inputs CREATE TABLE #Inputs ( Id int IDENTITY NOT NULL , Direction varchar(7) NOT NULL , Val int NOT NULL ) BULK INSERT #Stage FROM 'D:\AdventOfCode2021\Day2\Input.csv' WITH ( FIRSTROW = 1...
<reponame>mariodanilosilva/beedoo_ci_test<filename>application/dump/beedoo_dev_test_user_has_groups.sql -- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) -- -- Host: localhost Database: beedoo_dev_test -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu0.17.10.1 /*...
<filename>DataGrip/SQL/bank_open_hours.sql INSERT INTO bank.open_hours (open_hours_id, open_hours_name, open_time, close_time, day_of_week, branch_id) VALUES ('001', 'STANDARD', '9:00 AM', '5:00 PM', 'Monday', '001'); INSERT INTO bank.open_hours (open_hours_id, open_hours_name, open_time, close_time, day_of_week, branc...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 11 mars 2020 à 09:32 -- Version du serveur : 10.1.38-MariaDB -- Version de PHP : 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 10, 2016 at 07:33 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
INSERT INTO `customers` (`first_name`, `surname`) VALUES ('berkan', 'irice');
<reponame>kelsin/sqlglot<gh_stars>0 SELECT * FROM x JOIN y ON y.a = 1 JOIN z ON x.a = z.a AND y.a = z.a; SELECT * FROM x JOIN z ON x.a = z.a AND TRUE JOIN y ON y.a = 1 AND y.a = z.a; SELECT * FROM x JOIN y ON y.a = 1 JOIN z ON x.a = z.a; SELECT * FROM x JOIN y ON y.a = 1 JOIN z ON x.a = z.a; SELECT * FROM x CROSS JOI...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[AnswerChoicePicture]( [Id] [nvarchar](128) NOT NULL, [AnswerChoiceId] [nvarchar](128) NOT NULL, [Image] [image] NOT NULL, CONSTRAINT [PK_AnswerChoicePicture] PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OF...
create index versions_application_guid_not_deleted_idx on versions(application_guid) where deleted_at is null; create unique index organizations_guid_not_deleted_idx on organizations(guid) where deleted_at is null;
<gh_stars>1-10 CREATE TABLE ACL_SID ( ID BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, PRINCIPAL BOOLEAN NOT NULL, SID VARCHAR_IGNORECASE(100) NOT NULL, CONSTRAINT UNIQUE_UK_1 UNIQUE(SID,PRINCIPAL) ); CREATE TABLE ACL_CLASS( ID BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, CLASS VARCHAR_IG...
<filename>web/data/repository/sources/sql/2009a-495-SCL_edit-SD.sql SELECT d.subject_id AS "subject", p.annotation AS "task", stddev_samp(scl_edit) AS "SCL" FROM "2009-onrd-pta".daq_edit d INNER JOIN "2009-onrd-pta".protocol_subject p ON ( d.subject_id = p.subject_id AND d.unique_unix_timestamp BET...
CREATE DATABASE alunos; USE alunos; CREATE TABLE aluno (idAluno integer, nomeAluno VARCHAR(45), enderecoAluno VARCHAR(45), emailAluno VARCHAR(45)); INSERT INTO aluno VALUES (20, 'mario', '<NAME>', '<EMAIL>'), (5, 'pedro', 'ru<NAME>', '<EMAIL>'), (7, 'ana', 'ru<NAME>', '<EMAIL>'), (45, 'paula', 'ru<NAME>', '<EMAIL>');
CREATE TABLE [Tokens].[SpooledToken] ( PrintJobId UNIQUEIDENTIFIER NOT NULL ,TokenId VARCHAR(50) NOT NULL ,CONSTRAINT PK_Tokens_SpooledToken PRIMARY KEY( PrintJobId, TokenId ) ,CONSTRAINT FK_Tokens_SpooledToken_PrintJob FOREIGN KEY ( PrintJobId ) REFERENCES [Tokens].[PrintJob]( PrintJobId ) ON DELETE CASCADE ,CONSTR...
CREATE DATABASE rainbow_dash_board encoding 'UTF8' template template0; CREATE DATABASE rainbow_dash_board_test encoding 'UTF8' template template0;
ALTER TABLE draws ADD COLUMN signature VARCHAR NOT NULL DEFAULT '';
<gh_stars>1-10 create or replace function stc_remove_spike(r geometry) returns geometry as $$ /********************************************************************* * Removes possible ONE internal spike: * removes vertex, at which azimuth change is 180 *******************************************************************...
-- $ pg_dump -s py_phone_caller -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXI...
<reponame>jkvetina/BUG<filename>apex/f700/application/shared_components/user_interface/themes.sql prompt --application/shared_components/user_interface/themes begin -- Manifest -- THEME: 700 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_...
SELECT mo.id, mo.name FROM movies mo LEFT JOIN prices pr ON pr.id = mo.id_prices WHERE pr.value < 2
<reponame>axelVO/tourComperator -- SQL script to create reports database for PostgreSQL -- -- To run, type: psql template1 < reports-pgsql.sql -- -- $Id: reports-pgsql.sql,v 1.4 2007/04/16 11:02:36 mr-russ Exp $ CREATE DATABASE phppgadmin; \connect phppgadmin CREATE TABLE ppa_reports ( report_id SERIAL, report_na...
<reponame>BaiShaoqi/geospatial WITH foo AS ( SELECT postgis_raster_lib_version() ) SELECT NULL FROM foo; SET postgis.gdal_enabled_drivers = 'GTiff PNG'; /* Driver: PNG/Portable Network Graphics Files: testraster.png Size is 90, 90 Coordinate System is `' Metadata: Comment=Created with GIMP Image Structure Metadata: ...
-- ---------------------------- -- Records of metrics -- ---------------------------- INSERT INTO `metrics` VALUES (1, '已连接客户端数', 'redis_connected_clients', NULL, 1, '性能', 0, NULL, 0); INSERT INTO `metrics` VALUES (2, 'keyspace击中总数', 'redis_keyspace_hits_total', NULL, 1, '性能', 0, NULL, 0); INSERT INTO `metrics` VALUES ...
<reponame>SolarNetworkFoundation/solarnetwork-ops CREATE SCHEMA IF NOT EXISTS solarbill; ALTER DEFAULT PRIVILEGES IN SCHEMA solarbill REVOKE ALL ON TABLES FROM PUBLIC; ALTER DEFAULT PRIVILEGES IN SCHEMA solarbill REVOKE ALL ON SEQUENCES FROM PUBLIC; ALTER DEFAULT PRIVILEGES IN SCHEMA solarbill REVOKE ALL ON FUNCTIONS ...
CREATE TABLE `snmp_device` ( `id` int(11) NOT NULL AUTO_INCREMENT, `ipAddr` varchar(16) NOT NULL, `sysDescr` varchar(200) NOT NULL, `sysName` varchar(200) NOT NULL, `sysContact` varchar(200) DEFAULT NULL, `sysLocation` text, `snmp_community` varchar(100) DEFAULT NULL, `snmp_version` varchar(2) DEFAULT N...
<gh_stars>0 BEGIN TRANSACTION; CREATE TABLE temp_Boundary_534011718 ( Id INTEGER UNIQUE, Address TEXT, Area double, Path double, Comment TEXT, InitialLongitude double, InitialLatitude double, IsDeleted integer, LastModification integer, Uuid Text, PRIMARY KEY (...
select * from {{ var('opportunity_prospect') }}
CREATE DATABASE products; create table type ( id serial primary key, name character(200) ); create table product ( id serial primary key, name character(100), type_id integer references type(id), expired_date timestamp, price integer ); insert into type(name) values('Молоко'), ...
<reponame>eniware-org/org.eniware.central<gh_stars>0 DROP FUNCTION eniwareagg.calc_datum_time_slots(bigint,text[],timestamp with time zone,interval,integer,interval); CREATE OR REPLACE FUNCTION eniwareagg.calc_datum_time_slots( IN Edge bigint, IN sources text[], IN start_ts timestamp with time zone, IN span interva...
<gh_stars>10-100 -- $Id$ -- This script creates a view schema used by JDBC metadata calls !set verbose true -- create views in system-owned schema sys_boot.jdbc_metadata create or replace schema sys_boot.jdbc_metadata; set schema 'sys_boot.jdbc_metadata'; set path 'sys_boot.jdbc_metadata'; create or replace function...
CREATE TABLE logs ( id int, record jsonb ); INSERT INTO logs VALUES (1, '[]'); INSERT INTO logs VALUES (2, '[100]'); INSERT INTO logs VALUES (3, '["hello"]'); INSERT INTO logs VALUES (4, '[true]'); INSERT INTO logs VALUES (5, '[{"object": "value"}]'); INSERT INTO logs VALUES (6, '{"object": []}'); CREATE INDEX pg...
ALTER TABLE registration ADD COLUMN email TEXT;
<reponame>GMLC-TDC/helics-cli CREATE TABLE Federates ( name VARCHAR, granted DECIMAL, requested DECIMAL )
<gh_stars>1-10 --+ holdcas on; set names utf8; set system parameters 'intl_date_lang = fr_FR'; -- TIME_FORMAT SELECT TIME_FORMAT('22:23:24', '%l:%i%s %r'); SELECT TIME_FORMAT('10:23:24', '%l:%i%s %r'); set system parameters 'intl_date_lang = en_US'; set names iso88591; commit; --+ holdcas off;
<gh_stars>0 -- query66 SELECT TOP 100 w_warehouse_name, w_warehouse_sq_ft, w_city, w_county, w_state, w_country, ship_carriers, year1, Sum(jan_sales) AS jan_sales, ...
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `list` (`id`, `value`) VALUES ('AX', 'Aland orollari'); INSERT INTO `list` (`id`, `value`) VALUES ('AL', 'Albaniya'); INSERT INTO `list` (`id`, `value`...
<reponame>JLNY/HistoricalMysteryAPI --DECLARE @userId int --DECLARE @articleFeatureImage nvarchar(max) N'https://miro.medium.com/max/1600/1*uEx7CWBE3cf-IzKzNcZscQ.jpeg' --DECLARE @articleTitle nvarchar(max) --DECLARE @articleSubTitle nvarchar(max) --DECLARE @insertedArticleId int --DROP TYPE HM.ArticleContent --DROP P...
<reponame>doomkin/gender-by-name create or replace function UDO_F_GENDER_BY_NAME -- Определение пола по фамилии, имени и отчеству ( sFAMILYNAME in varchar2, -- Фамилия sFIRSTNAME in varchar2, -- Имя sLASTNAME in varchar2 -- Отчество ) return number ...
<gh_stars>0 CREATE TABLE galleries( id INTEGER NOT NULL, name TEXT NOT NULL, description TEXT NOT NULL, PRIMARY KEY(id DESC) );
INSERT INTO "guns" ("id","ammo_name","ammo_type","barrel_lenght","caliber","gun_name","nation","muzzle_velocity","pen_100","pen_300","pen_500","pen_1000","pen_1500","pen_2000","pen_2500","pen_3000")VALUES (1,'Pzgr. 39/1','APCBC',71.0,88.0,'88mm/L71 KwK 43','German',1000,222,214,206,185,167,150,132,115); INSERT INTO "gu...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 11, 2020 at 06:11 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>components/azure-timescaledb/timescaledb.sql CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE; CREATE TABLE iotdata ( ts TIMESTAMPTZ NOT NULL, dev CHAR(7) NOT NULL, dsn INTEGER NOT NULL, mod CHAR(5) NOT NULL, eid UUID ...
CREATE TABLE `madcms_tests` ( `id` int(5) NOT NULL AUTO_INCREMENT, `email` varchar(64) NOT NULL, `name` varchar(64) NOT NULL, `icq` varchar(16) NOT NULL, `skype` varchar(32) NOT NULL, `location` varchar(32) CHARACTER SET utf8 NOT NULL, `testtranslation` text CHARACTER SET utf8 NOT NULL, `timespent` int(...
<filename>empat_db.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 30, 2021 at 09:26 AM -- 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:0...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 28, 2019 at 08:15 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>L200150088/Aplikasi-Metode-Naive-Bayes-Modifikasi -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2018 at 10:26 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STA...
INSERT INTO `database`.`table` (`param1`, `param2`, `param3`) VALUES (?, '?', '?');
create or replace procedure p_belinventory_csvexp ( ncompany in number, nident in number ) as l_headers pkg_std.tstring; l_row pkg_std.tlstring; l_content clob; l_date date; l_filename pkg_std.tstring; begin l_date := sysdate; dbms_lob.createtemporary(l_content, ...
INSERT INTO eg_hierarchy_type (id, name, code, createddate, lastmodifieddate, createdby, lastmodifiedby, version, localname,tenantid) VALUES (nextval('seq_eg_hierarchy_type'), 'REVENUE', 'REVENUE', '2010-01-01 00:00:00', '2015-01-01 00:00:00', 1, 1, 0,NULL,'panavel'); INSERT INTO eg_hierarchy_type (id, name, code, crea...
<reponame>mgramin/pg_prompter select ordinal_position , column_name , data_type , is_nullable from information_schema.columns where table_schema = $1 and table_name = $2 order by ordinal_position
<filename>migrations/2019-10-06-200715_add_updated_at_trigger/up.sql SELECT diesel_manage_updated_at('balances'); SELECT diesel_manage_updated_at('payments'); SELECT diesel_manage_updated_at('stripe_charges'); SELECT diesel_manage_updated_at('stripe_connect_accounts'); SELECT diesel_manage_updated_at('stripe_connect_tr...
DELETE FROM `sys_account_custom_stat_elements` WHERE `Label` = '_bx_sites'; INSERT INTO `sys_account_custom_stat_elements` VALUES(NULL, '_bx_sites', '__bx_sites__ (<a href="modules/?r=sites/browse/my/add">__l_add__</a>)'); -- update module version UPDATE `sys_modules` SET `version` = '1.1.1' WHERE `uri` = '...
<filename>db/config/database.sql -- -- PostgreSQL database dump -- -- Dumped from database version 10.17 (Ubuntu 10.17-0ubuntu0.18.04.1) -- Dumped by pg_dump version 10.17 (Ubuntu 10.17-0ubuntu0.18.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding ...
<gh_stars>0 SELECT hId as rId, hColA as rColA, hColB as rColB FROM src WHERE hId >= $startRange AND hId < $endRange -- EXCEPT SELECT DISTINCT ... (already prepared) -- OR/ WHERE come_meta_key NOT IN (already prepared)
-- MySQL Script generated by MySQL Workbench -- 09/29/14 18:24:16 -- Model: New Model Version: 1.0 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'; -- -----------...
{% macro exit_transaction() %} {{ return(adapter.dispatch('exit_transaction', dbt_external_tables._get_dbt_external_tables_namespaces())()) }} {% endmacro %} {% macro default__exit_transaction() %} {{ return('') }} {% endmacro %} {% macro redshift__exit_transaction() %} {{ return('begin; commit;') }} {% e...
CREATE TABLE [dbo].[EControllers] ( --From MergedXSDs XSD --From 'genericRailML' Namespace [EControllersId] BIGINT NOT NULL, [Controller] SMALLINT NOT NULL, CONSTRAINT [PK_EControllersId] PRIMARY KEY CLUSTERED ([EControllersId] ASC), CONSTRAINT [FK_EControllers_TController] FOREIGN KEY ([Controller]) REFERENCE...
<gh_stars>0 -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] 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. -...
/********************************************************************************* # Copyright 2014 Observational Health Data Sciences and Informatics # # # 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 ...
<gh_stars>1-10 /* Copyright 2019 Insurance Australia Group Limited 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 by app...
-- -- Monitored services. -- CREATE TABLE rt_services ( host_id int NOT NULL, description varchar(255) NOT NULL, service_id int NOT NULL, acknowledged char(1) default NULL, acknowledgement_type smallint default NULL, active_checks char(1) default NULL, check_attempt smallint default NULL, check_command...
<gh_stars>1000+ /* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.5.27 : Database - springboot ********************************************************************* */ CREATE DATABASE `springboot`; USE `springboot`; /*Table structure for table `t_user` */ DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user...
select * from gha_actors_emails where email in ( select email from gha_actors_emails group by email having count(actor_id) > 1 ) order by email asc, actor_id asc;
-- @testpoint: opengauss关键字nocycle(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor nocycle for select * from explain_test order by 1; close nocycle; end; --关键字带双引号-成功 start transaction; cursor "nocycle" for sele...
/* Navicat MySQL Data Transfer Source Server : databes Source Server Type : MySQL Source Server Version : 100140 Source Host : localhost:3306 Source Schema : thesis Target Server Type : MySQL Target Server Version : 100140 File Encoding : 65001 Date: 03/06/2019 06:32...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 05-Jan-2018 às 23:24 -- Versão do servidor: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
SELECT order_date, sku, quan FROM orders INNER JOIN items ON orders.oid = items.oid LIMIT 30000