sql
stringlengths
6
1.05M
CREATE OR REPLACE FUNCTION five_minutely_aggregation(OUT start_id bigint, OUT end_id bigint) RETURNS record LANGUAGE plpgsql AS $function$ BEGIN /* determine which page views we can safely aggregate */ SELECT window_start, window_end INTO start_id, end_id FROM incremental_rollup_window('rollup_events_5min')...
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -------------------------------------------------------------------------------- -- -- File name: ses2.sql (SEssion Statistics 2) -- Purpose: ...
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 8.0.13 - MySQL Community Server - GPL -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.5.0.5196 -- -------------------------------------------------------- /*...
<filename>tutorials/012.join.sql USE `sqlin10mins`; -- 上一节中用子查询 -- 1.求订购了RGAN01这种商品的所有顾客 -- 2.求Customers表中每个客户的订单总数和 -- 实现得比较不方便,这里使用联结 -- 1. 上一节的子查询实现 select cust_id from Orders where order_num IN (select order_num from OrderItems where prod_id = 'RGAN01'); -- 本节的连接实现 ...
<reponame>cloud-native-java-with-k8s-livelessons/bootcamp create table if not exists customer ( id serial primary key, name varchar (255)) ;
<filename>hasura/migrations/1630511740827_alter_table_public_channels_stats_add_column_zone_counterparty_readable_name/up.sql ALTER TABLE "public"."channels_stats" ADD COLUMN "zone_counterparty_readable_name" varchar NOT NULL DEFAULT '';
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/DML/call_function/Opengauss_Function_DML_Call_Function_Case0002.sql<gh_stars>0 -- @testpoint: 带schema,按参数值传递,调用函数(schema已存在) drop SCHEMA if EXISTS hs; CREATE SCHEMA hs; drop FUNCTION if EXISTS hs.func_add_sql002; CREATE FUNCTION hs.func_add_sql002(num1 ...
SELECT * FROM CATEGORIES WHERE DELETE_FLAG = 0;
/* Navicat Oracle Data Transfer Oracle Client Version : 172.16.17.32.0 Source Server : local Source Server Version : 110200 Source Host : 127.0.0.1:1521 Source Schema : PERSONPAPER Target Server Type : ORACLE Target Server Version : 110200 File Encoding : 65001 Date: 2019-07-17 1...
-- Base58编码 将大整数编成字母数字混合格式 -- SELECT * FROM base58(333333); CREATE OR REPLACE FUNCTION base58(IN num bigint, OUT result text) AS $$ DECLARE alphabet char[] := ARRAY['1','2','3','4','5','6','7','8','9','A','B','C', 'D','E','F','G','H','J','K','L','M','N','P','Q','R','S','T','U','V','W', 'X','Y','Z','a','b','c','d','e...
<reponame>HoussamBenali/LastVersion -- MySQL dump 10.13 Distrib 8.0.23, for Linux (x86_64) -- -- Host: localhost Database: pokeproject -- ------------------------------------------------------ -- Server version 8.0.23-0ubuntu0.20.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
<gh_stars>0 CREATE TABLE dr16q_superset ( ------------------------------------------------------------------------------- --/H The DR16 QSO Superset Catalog (v3) -- --/T The primary DR16Q is derived from this superset of objects targeted as quasars. --/T The catalog is documented in more detail at the DR16Q VAC algori...
-- CreateTable CREATE TABLE "User" ( "usarname" TEXT NOT NULL, "password" TEXT NOT NULL, "displayName" TEXT NOT NULL, CONSTRAINT "User_pkey" PRIMARY KEY ("usarname") );
<gh_stars>0 #Uses placeholder for values DELETE ss.* FROM {table_prefix}StoredStrings ss WHERE `id` IN ( SELECT `id` FROM ( SELECT `id` FROM {table_prefix}_StoredStrings WHERE `id` NOT IN ( # Correlated subqueries to be used to get IDs everywhere strings can be used # SELECT `storedstring` FROM ...
create INDEX user_sub_good_good_id_price_state_enable_ix ON public.user_sub_good (good_id, price) where state = 1; create INDEX good_info_state_enable_ix ON public.user_sub_good (good_id) where state = 1; create INDEX user_state_enable_ix ON public."user" (id,chat_id) where state = 1;
<reponame>noir2501/lightweight<gh_stars>0 CREATE TABLE [dbo].[Role] ( [RoleUID] UNIQUEIDENTIFIER CONSTRAINT [DF_Role_RoleUID] DEFAULT (newid()) NOT NULL, [Name] NVARCHAR (50) NOT NULL, [TenantUID] UNIQUEIDENTIFIER NULL, [Icon] VARCHAR (128) NULL, [IsSystemRole] BIT ...
SELECT `e`.`employee_id`, CONCAT_WS(' ', `e`.`first_name`, `e`.`last_name`) AS `empployee_name`, CONCAT_WS(' ', `m`.`first_name`, `m`.`last_name`) AS `manager_name`, `d`.`name` AS `department_name` FROM `employees` AS `e` JOIN `employees` AS `m` ON `e`.`manager_id` = `m`.`employee_id` ...
<reponame>BracoBJB/admin<filename>querysdb/insert-entradas.sql --delete from est_post; --truncate table est_post_autor cascade; --truncate table est_post_poblacion cascade; --TRUNCATE TABLE est_post cascade; --select * from est_post; --select * from est_post_autor; --select * from est_post_poblacion; --select * from...
-- Blank migration so that Flyway can work out of the box
--DROP TABLE IF EXISTS jacl_group; --DROP TABLE IF EXISTS jacl_right_values; --DROP TABLE IF EXISTS jacl_right_values_group; --DROP TABLE IF EXISTS jacl_rights; --DROP TABLE IF EXISTS jacl_subject; --DROP TABLE IF EXISTS jacl_user_group;
<gh_stars>1-10 SELECT * FROM Employees ORDER BY Salary DESC, FirstName ASC, LastName DESC, MiddleName ASC
<reponame>AnyhowStep/typed-orm SELECT HEX(32) AS `__aliased--value`
<gh_stars>10-100 /* Warnings: - You are about to drop the column `throttle_expr` on the `Subscription` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE `Article` ADD COLUMN `source_url` VARCHAR(191), MODIFY `score` DOUBLE DEFAULT 0; -- AlterTable ALTER TABLE `ArticleRef` ADD COLUM...
DROP TABLE "cucb"."list042";
select id, name, description from test where 1 = 1 {{#id}} and id = %(id)s {{/id}} {{#name}} and name like %(name)s {{/name}}
CREATE TABLE [Pttcd].[Standards] ( [StandardCode] INT NOT NULL, [Version] INT NOT NULL, [StandardName] NVARCHAR (MAX) NOT NULL, [StandardSectorCode] NVARCHAR (MAX) NOT NULL, [NotionalEndLevel] NVARCHAR (MAX) NOT NULL,...
/******************************************************************************** ##### # # ##### ##### # # # #### # # #### ##### ##### ## ## ###### ##### # # #### ##### # # # # # ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 16, 2020 at 07:11 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<reponame>zhuwenshen/YCSB-TS -- Copyright (c) 2015 YCSB contributors. All rights reserved. -- -- 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...
<reponame>stephenfuqua/Ed-Fi-X-Fizz -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. -- Table [lms]...
USE sailmaster; CREATE USER IF NOT EXISTS 'sailmaster_user'@'localhost' IDENTIFIED BY 'password'; /*--MySQL 5.7.6 or less --GRANT ALL ON `sailmaster`.* TO 'sailmaster_user'@'localhost' IDENTIFIED BY 'password';*/ GRANT USAGE ON *.* TO 'sailmaster_user'@'localhost' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0; GRANT ALL PRI...
CREATE TABLE lepine.warehouses ( uuid uuid PRIMARY KEY, zip_code VARCHAR(255) NOT NULL UNIQUE, city VARCHAR(255) NOT NULL, province VARCHAR(64) NOT NULL, active BOOLEAN NOT NULL DEFAULT true )
<reponame>walkinlogic/cms -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 18, 2020 at 01:15 PM -- Server version: 5.7.32-cll-lve -- PHP Version: 7.3.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 27, 2017 at 03:39 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
ALTER TABLE client ADD COLUMN handbook jsonb;
<reponame>Brombe74/IT -- Inserimento Aziende INSERT INTO 191126Azienda ('id', 'Nome', 'Luogo', 'Settore', 'Tipologia') VALUES (1, 'abc', 'Mi', 'informatica', 'z'), (2, 'abc', 'Mi', 'informatica', 'z'), (3, 'hjk', 'Mi', 'informatica', 'b'), (4, 'bcz', 'Mi', 'informatica', 'z'), (5, 'ppq', 'Mi', 'informatica', 'a'), (6,...
/* DROP EXISTING DATA WAREHOUSE TABLE (DW) */ DROP TABLE IF EXISTS DW_IMDB_BASE_TITLE_EPISODE; /* CREATE DW TABLE */ CREATE TABLE DW_IMDB_BASE_TITLE_EPISODE ( P_TCONST_ID INTEGER NULL ,TCONST_NK TEXT NOT NULL-- ALPHANUMERIC IDENTIFIER OF EPISODE ,PARENTTCONST TEXT NOT NULL -- ALPHANUMERIC IDENTIFIER OF THE PARENT T...
create table prices ( itemid int(16) unsigned not null, itemname varchar(20) not null, price decimal(9,6) signed not null, sold int(16) unsigned not null DEFAULT 0, primary key (itemid) ); create table sales ( saleid int(16) unsigned not null, itemid int(16) unsigned not null, saledate date no...
<filename>sql/dump.sql CREATE DATABASE IF NOT EXISTS `mine` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mine`;
<reponame>tushartushar/dbSmellsData CREATE TABLE IF NOT EXISTS `modules` ( `id` int(16) NOT NULL AUTO_INCREMENT, `name` char(64) NOT NULL DEFAULT '', `file` tinytext NOT NULL DEFAULT '', `enabled` int(1) NOT NULL DEFAULT 1, `version` char(64) NOT NULL DEFAULT '', `developer` char(64) NOT NULL DEFAULT '', `site` tinytex...
<filename>31-Aggregation/lab11/lab11/lab11.sql .read sp20data.sql CREATE TABLE obedience AS SELECT "REPLACE THIS LINE WITH YOUR SOLUTION"; CREATE TABLE smallest_int AS SELECT "REPLACE THIS LINE WITH YOUR SOLUTION"; CREATE TABLE matchmaker AS SELECT "REPLACE THIS LINE WITH YOUR SOLUTION"; CREATE TABLE parents ...
CREATE TABLE [dbo].[tbl_MatchData]( [matchId] [bigint] NOT NULL, [matchCreation] [bigint] NOT NULL, [matchDuration] [bigint] NOT NULL, [region] [varchar](20) NULL, CONSTRAINT [PK_tbl_MatchData_1] PRIMARY KEY CLUSTERED ( [matchId] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALL...
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Aug 27, 2015 at 01:41 AM -- Server version: 5.5.42 -- PHP Version: 5.5.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<filename>accs-cassandra-twitter-timeseries-app-master/app.cql CREATE KEYSPACE tweetspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; use tweetspace; CREATE TABLE tweets ( tweeter text, tweet_id text, tweet text, created timestamp, created_date text, PRI...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : local1 Source Server Type : MySQL Source Server Version : 50725 Source Host : localhost:3306 Source Schema : PersonalManagerSystem Target Server Type : MySQL Target Server Version : 50725 File Encoding : 6500...
<filename>SEQUENCE/SQ_ENCUMBRANCE_ID.sql CREATE SEQUENCE "SQ_ENCUMBRANCE_ID" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 290 NOCACHE NOORDER NOCYCLE
INSERT INTO Question (ID, title, description, solution, value, reward) VALUES (1, 'Care student are bursa?', 'Andrei ar dori sa afle numele, prenumele si codul matricol al studentilor care au bursa.', 'SELECT nume, prenume, nr_matricol FROM studenti WHERE bursa IS NOT NULL', 10, 20); INSERT INTO Question (ID, title, d...
insert into employees( employee_id, first_name, last_name, email, phone_number, job_id, salary, commission_pct, manager_id, department_id, hire_date ) values (100, 'Steven', 'K_ing', 'SKING', '515.123.4567', 'AD_PRES', 24000.00, 0.9, 100, 90, '1992-04-03 00:00:00'), (101, 'Ne...
<reponame>qq744788292/cnsoft CREATE TABLE u101010_user_info ( puk VARCHAR(20) NOT NULL COMMENT '玩家流水ID', channel_type VARCHAR(20) COMMENT '渠道标识', register_type VARCHAR(4) COMMENT '注册方式', user_phone VARCHAR(20) COMMENT '手机号', wx_open_id VARCHAR(80) COMMENT '微信ID', qq_open_id VARCHAR(80) COMMENT '...
<reponame>devatsrs/neon.web<filename>dbv-1/data/schema/tblReseller.sql<gh_stars>0 CREATE TABLE `tblReseller` ( `ResellerID` int(11) NOT NULL AUTO_INCREMENT, `ResellerName` varchar(155) COLLATE utf8_unicode_ci NOT NULL, `CompanyID` int(11) NOT NULL, `ChildCompanyID` int(11) NOT NULL, `AccountID` int(11) NOT NU...
-- MySQL dump 10.13 Distrib 5.7.26, for osx10.10 (x86_64) -- -- Host: 127.0.0.1 Database: laraclassified -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
CREATE TABLE [Production].[ProductDocument] ( [ProductID] INT NOT NULL, [DocumentNode] [sys].[hierarchyid] NOT NULL, [RowStatus] TINYINT NOT NULL, [CreatedBy] UNIQUEIDENTIFIER NOT NULL, [ModifiedBy] UNIQUEIDENTIFIER NOT NULL, [CreatedDate] DATETIME NOT NULL, ...
<gh_stars>0 DELIMITER $$ DROP FUNCTION IF EXISTS get_player_name$$ CREATE FUNCTION get_player_name(in_playerid INT, in_type VARCHAR(10), in_guest BOOLEAN) RETURNS VARCHAR(50) BEGIN DECLARE v_name VARCHAR(50); IF in_guest = '' THEN SET in_guest = true; END IF; IF UPPER(in_type) = 'FULL' THEN SELECT IF...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 29, 2019 at 07:51 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<reponame>Simon-Chenzw/steamcalc CREATE TABLE IF NOT EXISTS buff( item_id INTEGER PRIMARY KEY, url TEXT, lowest_sell DECIMAL, highest_buy DECIMAL, update_time INTEGER ); -- CREATE TABLE IF NOT EXISTS market( item_id INTEGER PRIMARY KEY, lowest_sell DECIMAL, highest_buy DECIMAL, update_time INTEGER ); ...
<reponame>mart0vn/SoftUni-Training --4. Delete DELETE Tickets FROM Tickets AS t JOIN Flights AS fl ON fl.Id = t.FlightId WHERE fl.Destination = '<NAME>' DELETE Flights WHERE Destination = '<NAME>' DELETE Planes FROM Planes AS p JOIN Flights AS fl ON fl.Id = p.Id WHERE fl.Destination = '<NAME>'
<reponame>LukaRGB/Zbrka<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 25, 2019 at 06:41 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...
select c.Id, Title, m.Id from Chats as c inner join Messages as m on c.Id = m.ChatId where m.SentOn < '03.26.2012' and Title like '%x'
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 14, 2019 at 04:48 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<filename>Setup/setup.postinstall.user.sql INSERT INTO members (access, username, email, password, salt) VALUES ( ?, ?, ?, ?, ?);
SELECT m.MountainRange, p.PeakName, p.Elevation FROM Peaks AS p JOIN Mountains AS m ON p.MountainId = m.Id WHERE m.MountainRange = 'Rila' ORDER BY Elevation DESC
<reponame>pwinslow/DB5-SQL-Stanford-Course -- Movie-Rating Modification Exercises -- https://lagunita.stanford.edu/courses/DB/SQL/SelfPaced/courseware/ch-sql/seq-exercise-sql_movie_mod/ -- Question 1: -- Add the reviewer <NAME> to your database, with an rID of 209. INSERT INTO reviewer ( rID, name ) VALUES ( 209, ...
<filename>database-migrations/migration/V27__create_configuration_table_with_array_objects.sql drop table if exists configuration; create table configuration ( id bigint generated by default as identity, tenant varchar(10) not null unique, roles text[] default array[]::text[], numbers int[] default array ...
<reponame>rayanf/fashen-company-Data-Base -- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: proje -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
CREATE TABLE IF NOT EXISTS `TABELA_ORM` ( `ID` BIGINT(20) NOT NULL AUTO_INCREMENT, `COLUMN_STRING` VARCHAR(60) NULL, `COLUMN_INTEGER` INT(10) NULL, `COLUMN_BIGDECIMAL` DECIMAL(10, 4) NULL, `COLUMN_CALENDAR` DATETIME NULL, PRIMARY KEY (`ID`) )ENGINE = InnoDB;
<reponame>Shashikanth-Huawei/common-service<gh_stars>0 -- ---------------------------- -- Table structure for tbl_reverse_proxy -- ---------------------------- CREATE TABLE IF NOT EXISTS "tbl_reverse_proxy" ( "dest_host_ip" varchar(64) NOT NULL, "dest_host_port" int4 NOT NULL, "dest_host_pro...
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Also Purchased Max Days', 'MAX_DISPLAY_TIME_ALSO_PURCHASED', '30', 'Maximum number of days passed since products sold to display in the \'This Custo...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2018-02-01 16:05:56 -- 服务器版本: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
<gh_stars>1-10 CREATE TABLE data ( id integer NOT NULL, number integer ); INSERT INTO data VALUES (0, 0); INSERT INTO data VALUES (1, 1); INSERT INTO data VALUES (2, 2);
<gh_stars>1-10 insert into entrada (numero_funcion, precio, nombre_pelicula, fecha_funcion) values (1, 10000, 'el padrino', now()); insert into afiliado (nombre, tipo_documento, numero_documento, fecha_nacimiento, email, direccion, telefono,fecha_registro) values ('Nicolas', 'cc', '34566534536', now(), '<EMAIL>', 'dghd...
<filename>sam/sam-service-soap/src/test/resources/drop.sql drop table EVENTS; drop table EVENTS_CUSTOMINFO;
CREATE PROCEDURE SP430(OUT MYCOUNT INTEGER) SPECIFIC SP430_42703 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE160;SELECT COUNT(*)INTO MYCOUNT FROM TABLE371;SELECT COUNT(*)INTO MYCOUNT FROM TABLE457;SELECT COUNT(*)INTO MYCOUNT FROM...
CREATE MATERIALIZED VIEW raw_countries_users AS SELECT country_id, user_id, count(id) changesets FROM raw_changesets_countries JOIN raw_changesets ON raw_changesets.id = raw_changesets_countries.changeset_id GROUP BY country_id, user_id; CREATE UNIQUE INDEX raw_countries_users_country_id_user_id ON...
\c qanda; \COPY questions FROM './csv/questionsCSV.csv' WITH DELIMITER ',' CSV HEADER; \COPY answers FROM './csv/answersCSV.csv' WITH DELIMITER ',' CSV HEADER; \COPY answer_photos FROM './csv/answers_photosCSV.csv' WITH DELIMITER ',' CSV HEADER; SELECT setval(pg_get_serial_sequence('questions', 'question_id'), (SELEC...
--name: userById --tags: panel --render: RowToTable --input: string id { semType: user_id } --connection: datagrok select u.first_name, u.last_name from users u where id = @id --end
<filename>dbv-2/data/revisions/4.14/bhavin.sql USE `RMBilling3`; DROP PROCEDURE IF EXISTS `prc_getInvoice`; DELIMITER | CREATE PROCEDURE `prc_getInvoice`( IN `p_CompanyID` INT, IN `p_AccountID` INT, IN `p_InvoiceNumber` VARCHAR(50), IN `p_IssueDateStart` DATETIME, IN `p_IssueDateEnd` DATETIME, IN `p_InvoiceType`...
<reponame>furkantokac/Swamp-server # CREATE TABLES CREATE TABLE User ( username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, PRIMARY KEY (username) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; CREATE TABLE User_Account ( username VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, surname VA...
<filename>migrations/2021-10-31-135848_init_schema/up.sql<gh_stars>0 -- Your SQL goes here CREATE TABLE revenues ( day DATE PRIMARY KEY NOT NULL, value REAL NOT NULL ); CREATE TABLE net_profits ( day DATE PRIMARY KEY NOT NULL, value REAL NOT NULL );
<reponame>VanStranger/Lycms -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 10.3.12-MariaDB - mariadb.org binary distribution -- 服务器操作系统: Win64 -- HeidiSQL 版本: 11.3.0.6337 -- -------------------...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2021 at 09:23 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<reponame>gitnikk/laravel-app3<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 26, 2019 at 11:44 AM -- Server version: 5.7.25-0ubuntu0.18.04.2 -- PHP Version: 7.2.15-0ubuntu0.18.04.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET tim...
<reponame>mansoor-omrani/Locust.NET<filename>Library/Locust.Mime/mimeCSharp.sql select ', new Mime { Id = ' + cast(m.Id as varchar(10)) + ', Source = "' +isnull(m.Source, '') + '", Value = "' + isnull(m.Value, '') + '" , Compressible = ' + case when m.Compressible = 1 then 'true' else 'false' end + ', CharSet = "' +...
-- oracle CREATE SEQUENCE test_table_id_seq START WITH 1 INCREMENT BY 1 ORDER NOMAXVALUE; CREATE TABLE test_table( id NUMBER(20,0) NOT NULL, title VARCHAR2(255), an_integer INTEGER, price NUMBER(20,2), text CLOB, perex CLOB, binary_data BLOB, binary_data2 BLOB, create_date DATE, create_time DATE DE...
<filename>Resources/satellite.sql<gh_stars>1-10 -- Database: satellite -- DROP DATABASE satellite; -- CREATE DATABASE satellite -- WITH -- OWNER = postgres -- ENCODING = 'UTF8' -- LC_COLLATE = 'C' -- LC_CTYPE = 'C' -- TABLESPACE = pg_default -- CONNECTION LIMIT = -1; CREATE TABLE countr...
INSERT INTO id_generator(idname, tenantid, format, sequencenumber) VALUES ('swm.sanitationstaff.target.number', 'default', 'MH-SWM-SNTS-TRGT-[SEQ_SWM_SNTS_TRGT_NUM]', 1);
SELECT rowid, * FROM RMSData ORDER BY Department, Team
<gh_stars>100-1000 -- incrblob2.test -- -- db eval {SELECT rowid FROM t2} SELECT rowid FROM t2
USE perpetuumsa GO SET IDENTITY_INSERT [dbo].[teleportdescriptions] ON INSERT [dbo].[teleportdescriptions] ([id], [description], [sourcecolumn], [targetcolumn], [sourcezone], [sourcerange], [targetzone], [targetx], [targety], [targetz], [targetrange], [usetimeout], [listable], [active], [type], [sourcecolumnname], [...
<reponame>crudapi/crudapi-example -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- 主机: db -- 生成日期: 2022-01-11 09:17:51 -- 服务器版本: 8.0.23 -- PHP 版本: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
<filename>database_structure.sql CREATE DATABASE scrumanager CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE scrumanager; CREATE TABLE developer ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, profile VARCHAR(255), email VARCHAR(255) NOT NULL, password CHAR(41) NOT NULL, PR...
<gh_stars>1-10 Select ord.id as id, ord.customer_id as customerId, ord.seller_id as seller_id, ord.good_id as good_id, ord.comment as comment, ord.moment as moment, ord.paid as paid, ord.summ as summ, ord.destination as destination, ord.bad_data as bad_data from GoodOr...
<reponame>chhavip/debaised-analysis<gh_stars>1-10 version https://git-lfs.github.com/spec/v1 oid sha256:7b9855155e3f032dd54ea1293bb9618592a154f3df783c3d5ad1fef21cefc8d7 size 3852
<filename>jeorg-spring-5/jeorg-spring-flash/jeorg-spring-flash-set-1/jeorg-spring-flash-5/src/main/resources/schema.sql<gh_stars>1-10 CREATE SEQUENCE potatoSequence START WITH 35 INCREMENT BY 15;
ALTER TABLE user_in_site_information DROP is_interested;
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 12, 2019 at 12:11 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.1.27-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4010...
<reponame>sbenten/osm_routing_import<gh_stars>0 CREATE FUNCTION nearestwayoftype(startpoint public.geometry, highwaytype character varying, tolerence double precision DEFAULT '-1'::integer) RETURNS bigint LANGUAGE plpgsql AS $$ /* Find the closest segment of the network of the highway type specified Optionally ...
CREATE TABLE IF NOT EXISTS users ( id integer primary key AUTOINCREMENT not null, name char(50) unique not null ); CREATE TABLE IF NOT EXISTS user_fingerprints ( id integer primary key AUTOINCREMENT not null, user_id integer, fingerprint_id integer, FOREIGN KEY (user_id) REFERENCES users(id) ); CREATE TAB...
<reponame>nhuongph/laravel-5 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2016 at 11:01 AM -- 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_...
/*┌─────────────────────────────────────────────────────────────────────────────────────────────┐*\ │ TITLE: Table DDL │ │ __DATABASE_NAME__.__SCHEMA_NAME__.__TABLE_NAME__ ├───────────────────────────────────────────────────────────────...
INSERT INTO burgers (burger_name) VALUES ('Mushroom Burger'); INSERT INTO burgers (burger_name) VALUES ('Cheeseburger'); INSERT INTO burgers (burger_name) VALUES ('Bluecheese Bacon Burger');