sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 04, 2020 at 01:04 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>products.sql CREATE database bamazon; use bamazon; CREATE TABLE products ( item_id INTEGER(11) NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NULL, department_name VARCHAR(50) NULL, price DECIMAL(5,2), stock_quanity INTEGER(4), PRIMARY KEY (item_id) ); SELECT * from products; INSERT INTO products (pr...
-- phpMyAdmin SQL Dump -- version 4.0.6 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Сен 27 2013 г., 13:50 -- Версия сервера: 5.5.32-MariaDB-log -- Версия PHP: 5.5.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 21, 2018 at 05:09 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
--# firstName SELECT * FROM sometable GO --# second Name SELECT * FROM sometable2 GO --# third Name Test SELECT * FROM sometable3 GO
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 17, 2012 at 09:20 PM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<filename>exam/db/patch/cloudplateform_notification.sql -- id 自增加 -- user_id 用户id -- quiz_id 题目id -- created_time 题目创建时间 DROP TABLE IF EXISTS `cloudplateform_notification`; CREATE TABLE `cloudplateform_notification` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `user_id` INT(11) NOT NULL, `message_id`...
CALL sp_maxaffluence(1,@resultat); SELECT @resultat; CALL sp_maxaffluence(4,@resultat); SELECT @resultat;
<reponame>diMItuR10/CSharp-Databases<filename>DB - Table Relations/Many-To-Many Relationship.sql CREATE TABLE Students( StudentID INT PRIMARY KEY NOT NULL IDENTITY, [Name] VARCHAR(50) NOT NULL ) CREATE TABLE Exams( ExamID INT PRIMARY KEY NOT NULL IDENTITY(101,1), [Name] VARCHAR(50) NOT NULL ) CREATE TABLE StudentsExa...
CREATE TABLE subdivision_GY (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_GY" ("id", "name", "level") VALUES ('GY-BA', 'Barima-Waini', 'region'); INSERT INTO "subdivision_GY" ("id", "name", "level") VALUES ('GY-CU', 'Cuyuni-Mazaruni', 'region'); INSE...
<reponame>muk-ai/rocket-template -- Your SQL goes here ALTER TABLE users ADD COLUMN created_at timestamptz NOT NULL DEFAULT current_timestamp; ALTER TABLE tasks ADD COLUMN created_at timestamptz NOT NULL DEFAULT current_timestamp;
<reponame>lotosbin/prestashop-docker-compose<filename>prestashop/install/upgrade/sql/1.3.6.0.sql<gh_stars>10-100 SET NAMES 'utf8'; /* PHP:update_products_ecotax_v133(); */;
-- 2019-02-07T17:59:11.680 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2019-02-07 17:59:11','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Rückgriff auf Preise der Basispreisliste',PrintName='Rückgriff auf Preise der Basispreisliste' W...
select name, policy, policy_std, logging, acl, lifecycle_rules, server_side_encryption_configuration, replication, versioning_enabled, versioning_mfa_delete, bucket_policy_is_public from aws.aws_s3_bucket where name = '{{ resourceName }}'
/****** Object: StoredProcedure [dbo].[ParseUsageText] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.ParseUsageText /**************************************************** ** ** Desc: ** Parse EMSL usage text in comment into XML ** Example usage values (note that each key ca...
CREATE TABLE IF NOT EXISTS "sessions" ( signature text PRIMARY KEY, request_id text, requested_at timestamp, client_id text, scopes set<text>, granted_scopes set<text>, session_data blob, ) WITH gc_grace_seconds = 1800;
<reponame>brucelawson/almanac.httparchive.org #standardSQL # 09_31: Sites containing links and buttons with accessible text SELECT COUNT(0) AS total_sites, COUNTIF(uses_buttons) AS total_using_buttons, COUNTIF(uses_links) AS total_using_links, COUNTIF(uses_either) AS total_using_either, ROUND(COUNTIF(uses_bu...
INSERT INTO `t_server` (id, discord_id, save_deleted) values (1, '00000000000000', '0'), (2, '00000000000001', '1'); INSERT INTO t_default_role(id, server_id, discord_id) VALUES (1, 1, '0000000000000'), (2, 2, '0000000000001'); INSERT INTO t_prefix(id, server_id, prefix) VALUES (1, 1, '#'), (2, 2, '_'); ...
-- -- Copyright (c) 2013, by the California Institute of Technology. -- ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged. -- -- $Id: $ -- -- -- This SQL script creates the database objects for the DMAS Manager schema. -- CREATE TABLE tie.ing_access_role( id NUMERIC(19, 0) NOT NULL, ...
CREATE TABLE /*_*/abstract_text_type( -- Primary key att_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, -- zobject this type is from: Z999 etc. att_zobject varchar(255) NOT NULL, -- type: Z8 etc. att_type varchar(255) NOT NULL, -- type position: 0 = zobject type, 1 = return value, 2 = argument att_position int u...
<gh_stars>0 -- -- PUBLICATION -- --DDL_STATEMENT_BEGIN-- CREATE ROLE regress_publication_user LOGIN SUPERUSER; --DDL_STATEMENT_END-- --DDL_STATEMENT_BEGIN-- CREATE ROLE regress_publication_user2; --DDL_STATEMENT_END-- --DDL_STATEMENT_BEGIN-- CREATE ROLE regress_publication_user_dummy LOGIN NOSUPERUSER; --DDL_STATEMENT_...
<reponame>coldweaker/advance-template-yii2<filename>common/data/init-db.sql /* SQLyog Community v11.25 (64 bit) MySQL - 5.6.25 : Database - basic ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_...
ALTER TABLE STUDENTCOURSEYEARDETAILS ADD ( TIER4VISA NUMBER(1) );
<gh_stars>0 INSERT INTO `countries` VALUES ('1', 'AD', 'Andorra', 'Principality of Andorra', 'AND', '020', 'EU', '7'); INSERT INTO `countries` VALUES ('2', 'AE', 'United Arab Emirates', 'United Arab Emirates', 'ARE', '784', 'AS', '232'); INSERT INTO `countries` VALUES ('3', 'AF', 'Afghanistan', 'Islamic Republic of Afg...
<reponame>chili-dog-night/site<filename>sql/data/2017-06-14.sql INSERT INTO media ( title, uri, rating, viewed_at, created_at ) VALUES ('Beauty and the Beast', 'http://www.imdb.com/title/tt2771200/', 1000, '2017-06-14', now())
<gh_stars>0 --TABLA PARA GUARDAR LA INFORMACIÓN DE MATRÍCULA CREATE TABLE Matricula( NumeroMatricula INT IDENTITY(1,1), CodigoUniversidad INT NOT NULL, CodigoSede INT NOT NULL, CodigoCarrera INT NOT NULL, CodigoCurso VARCHAR(10) NOT NULL, NumeroAula VARCHAR(10) NOT NULL, CedulaProfesor VARCHAR...
-- 1 up CREATE SCHEMA ew; CREATE TABLE ew.pilots ( id CHARACTER VARYING(10) PRIMARY KEY CHECK (id ~ '^[0-9]+$' AND id::bigint < 2100000000), name TEXT NOT NULL UNIQUE ); CREATE TABLE ew.harvestable_types ( id CHARACTER VARYING(5) PRIMARY KEY NOT NULL CHECK (id ~ '^[0-9]{1,5...
CREATE DATABASE lin_cms DEFAULT CHARSET utf8mb4; USE lin_cms; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; select * from sys_roles; -- ---------------------------- -- 药店信息表 -- ---------------------------- DROP TABLE IF EXISTS fun_medicinal_store; CREATE TABLE fun_medicinal_store ( id int unsigned NOT NUL...
select * from PlayerGameStatistics pgs inner join GameStatistics gs on gs.GameId = pgs.GameId where pgs.ShootingPercentage >= 0.500 order by pgs.ShootingPercentage desc select pgs.PlayerId, COUNT(*) from PlayerGameStatistics pgs inner join GameStatistics gs on gs.GameId = pgs.GameId where pgs.Shot...
<reponame>surigao86/burger CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR(255) NOT NULL, devoured BOOLEAN NOT NULL DEFAULT 0, date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2018 at 01:25 PM -- Server version: 10.1.19-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...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 13, 2019 at 04:55 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>developersworkspace/WorldOfRations DELIMITER // CREATE PROCEDURE listFeedstuffsByUsername(p_username CHAR(128)) BEGIN SELECT `userFeedstuffs`.`id` AS `id`, `userFeedstuffs`.`name` AS `name` FROM worldofrations.userFeedstuffs as `userFeedstuffs` INNER JOIN worldofrations.users as `users` ON `userFeedstuffs`....
<reponame>BohdanLysenko/blog_bohdan INSERT INTO role (id, role_name) VALUES (1, 'admin'), (2, 'moderator'), (3, 'blogger')
<filename>migrations/2020-08-18-155222_update_airtable_timestamp/down.sql -- This file should undo anything in `up.sql` ALTER TABLE airtable DROP COLUMN created_time; ALTER TABLE airtable ADD created_time BIGINT NOT NULL;
create table Matches ( match_id int null, host_team int null, guest_team int null, host_goals int null, guest_goals int null ); INSERT INTO leetcode_medium.Matches (match_id, host_team, guest_team, host_goals, guest_goals) VALUES (1, 10, 20, 3, 0); INSERT INTO leetcode_medium.Matches (match_...
-- file:plpgsql.sql ln:2193 expect:true create or replace function execute_into_test(varchar) returns record as $$ declare _r record
<gh_stars>10-100 -- file:line.sql ln:45 expect:true SELECT lseg '[(1,1),(5,5)]' ?# line '[(0,0),(1,0)]'
<gh_stars>1-10 \c demo_primary_ds; CREATE TABLE t_order ( order_id INT PRIMARY KEY NOT NULL, user_id INT NOT NULL, status CHAR(10) NOT NULL ); INSERT INTO t_order (order_id, user_id, status) VALUES (1, 10001, 'write'), (2, 10002, 'write'), (3, 10003, 'write'), (4, 10004, 'write'), ...
-- This file should undo anything in `up.sql` DROP INDEX transactions_tx_sender_idx; DROP INDEX transactions_tx_account_idx; DROP INDEX transactions_tx_recipient_idx; DROP INDEX transactions_tx_owner_idx;
SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = ecmdb, pg_catalog; INSERT INTO profile (id, profile_enum) VALUES (996, 'SEGRETERIA_ACCOUNT_COMUNICAZIONI'); INSERT INTO profile (id, pr...
CREATE KEYSPACE IF NOT EXISTS pets WITH REPLICATION = { 'class' : 'SimpleStrategy' , 'replication_factor' : 2 }; USE pets; CREATE TABLE IF NOT EXISTS dogs ( name text, breed text, weight float, colors list<text>, PRIMARY KEY ((name, breed), weight) ); INSERT INTO dogs (name, breed, weight, colors...
CREATE DATABASE IF NOT EXISTS OSM_CALENDAR ; CREATE TABLE IF NOT EXISTS OSM_CALENDAR.PERSON ( person_id BIGINT NOT NULL, emailaddress TEXT CHARACTER SET UTF8, firstname TEXT CHARACTER SET UTF8, lastname TEXT CHARACTER SET UTF8, PRIMARY KEY (person_id) ); CREATE TABLE IF NOT EXISTS OSM_CALENDAR.SC...
CREATE FUNCTION hard_delete_for_items_open(_sku text) RETURNS void AS $$ BEGIN WITH delete_items AS ( DELETE FROM items WHERE sku = _sku RETURNING meta_id ) DELETE FROM meta WHERE id = ( SELECT meta_id FROM items WHERE sku = _sku ); END; $$ LANGUAGE pl...
select * from product where product.name='%мороженое%';
#standardSQL # 11_03b: Distribution of SW payload sizes SELECT percentile, client, APPROX_QUANTILES(respSize, 1000)[OFFSET(percentile * 10)] AS bytes FROM `httparchive.almanac.service_workers` JOIN `httparchive.almanac.requests` USING (client, page, url), UNNEST([10, 25, 50, 75, 90]) AS percentile GROUP BY ...
/* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* This script creates the cp_constraint_drop_safe fcn. */ \qecho \qecho This script creates the cp_constraint_drop_safe fcn. \qecho BEGIN TRANSACTION; SET CONSTRAINTS ALL DEFERRED; /* Run this scrip...
<gh_stars>100-1000 select l_orderkey as orderkey, l_partkey from lineitem where orderkey = 1;
------------------------------------------------------------------------------- -- (C) Copyright IBM Corp. 2021 -- -- SPDX-License-Identifier: Apache-2.0 ------------------------------------------------------------------------------- -- ---------------------------------------------------------------------------- -- Pr...
<reponame>denis82/yiitask<filename>vendor/valentinek/yii2-closure-table-behavior/src/schema/schema.sql<gh_stars>10-100 DROP TABLE IF EXISTS `category_tree`; DROP TABLE IF EXISTS `category`; CREATE TABLE IF NOT EXISTS `category` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, PRIMARY ...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 03, 2017 at 08:40 PM -- Server version: 5.6.16-1~exp1 -- PHP Version: 7.0.19-1+deb.sury.org~xenial+2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- connect "SYSTEM"/"123456"@//localhost:1521/XE grant all PRIVILEGES to sispmm with admin option;
-- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Dim 06 Avril 2014 à 19:49 -- Version du serveur: 5.5.29 -- Version de PHP: 5.4.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<reponame>holysyid/LabIMK1 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Okt 2019 pada 18.14 -- Versi server: 10.3.15-MariaDB -- Versi PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
<reponame>Shuttl-Tech/antlr_psql -- file:json.sql ln:473 expect:true SELECT c FROM json_populate_record(NULL::jsrec, '{"c": "aaaaaaaaaaaaa"}') q
CREATE TABLE qrtz_blob_triggers ( trigger_name VARCHAR(80) NOT NULL, trigger_group VARCHAR(80) NOT NULL, blob_data TEXT, sched_name VARCHAR(120) NOT NULL ); CREATE TABLE qrtz_calendars ( calendar_name VARCHAR(80) NOT NULL, calendar TEXT NOT NULL, sched_name VARCHAR(120) NOT NUL...
CREATE VIEW [Payments2].[LatestSuccessfulDataLockJobs] AS WITH Validjobs AS ( SELECT max(Ilrsubmissiontime) [IlrSubmissionTime], Ukprn, AcademicYear FROM Payments2.Job WHERE Status IN (1, 2, 3) AND Dcjobsucceeded = 1 AND Jobtype = 1 GROUP BY Ukprn, AcademicYear ...
<reponame>lucascr91/mais /* Query para publicar a tabela. Esse é o lugar para: - modificar nomes, ordem e tipos de colunas - dar join com outras tabelas - criar colunas extras (e.g. logs, proporções, etc.) Qualquer coluna definida aqui deve também existir em `table_config.yaml`. # Além disso, sinta-se à...
 CREATE View [docs].[AntoraIndexSemanticgroupPatterndatatype] As Select i.IndexSemanticGroup , i.IndexPatternColumnDatatype , rof.cultures_name , AntoraIndexSemanticgroupPatterndatatype = -- String_Agg ( Concat ( Cast(N'' As NVarchar(Max)) ...
CREATE PROC [dbo].[OSLoadedModules_Upd](@OSLoadedModules OSLoadedModules READONLY,@InstanceID INT,@SnapshotDate DATETIME2(2)) AS DECLARE @Ref VARCHAR(30)='OSLoadedModules' IF NOT EXISTS(SELECT 1 FROM dbo.CollectionDates WHERE SnapshotDate>=@SnapshotDate AND InstanceID = @InstanceID AND Reference=@Ref) BEGIN BEGIN TRA...
DELIMITER ;; DROP TRIGGER IF EXISTS UPDATE_REMOVED_PROXY_TRIGGER;; CREATE TRIGGER UPDATE_REMOVED_PROXY_TRIGGER AFTER UPDATE ON PROXY FOR EACH ROW BEGIN IF NEW.status = 3 AND NEW.instance_id IS NOT NULL AND NEW.instance_id <> '' THEN CALL mysql.lambda_async('arn:aws:lambda:ap-northeast-1:186165563103:functi...
<filename>backend/de.metas.dunning/src/main/sql/postgresql/system/50-de.metas.dunning/5437580_sys_09744_Relation_Between_DunningDoc_And_DunningCandidate.sql -- 26.01.2016 09:51 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_RelationType_ID,Create...
<filename>db_script/contact_us.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2015 at 08:47 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
CREATE USER keycloak WITH PASSWORD 'password'; CREATE DATABASE keycloak; GRANT ALL PRIVILEGES ON DATABASE keycloak TO keycloak;
<reponame>CUBRID/cubrid-testcase DROP TABLE IF EXISTS t_a, t_b; CREATE TABLE t_a ( col_a VARCHAR(100), col_b VARCHAR(100) ); CREATE TABLE t_b ( col_a VARCHAR(100), col_b VARCHAR(100) ); INSERT INTO t_a SELECT to_char(rownum mod 100) col_a, to_char(rownum) col_b FROM TABLE({0...
<filename>data/notifications.sql INSERT INTO `notifications` (`type`, `task_id`, `user_id`) VALUES ('message', 7, 8), ('message', 8, 2), ('message', 6, 8), ('message', 5, 11), ('action', 5, 8), ('action', 4, 2), ('action', 4, 1), ('action', 4, 14);
-- @testpoint: 建表时使用check约束,插入检查约束的边界值,插入21,插入成功 drop table if exists t_student; create table t_student (stu_name char(20),stu_age int check (stu_age>20),sex char(10),score int,address char(10)); insert into t_student values('lisi',21,'boy',80,'shanxi'); drop table if exists t_student;
<filename>db/schema.sql -- ==================================================== -- HomeTeam :: A team-based home chores tracker web app -- MVC with MySQL, Node, Express, Handlebars, and Sequelize ORM. -- ©2018 <NAME> -- University of Richmond (Virginia) -- Full Stack Developer Bootcamp (July 2018) -- ==================...
DROP VIEW IF EXISTS Tractor_Profits; CREATE VIEW Tractor_Profits AS SELECT trac.sale_id, trac.prod_code, pro.prod_name, trac.emp_id, trac.year_sales, trac.yearly_prod_sales, sum(trac.W1+trac.W2+ trac.W3+ trac.W4+ trac.W5+ trac.W6+ trac.W7+trac.W8+trac.W9+ trac.W10+...
<reponame>Don-Jin/BlizzCMS /* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.6.38-log : Database - blizzcms ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!...
CREATE SEQUENCE TBL_BOOKS_seq; CREATE TABLE IF NOT EXISTS TBL_BOOKS (book_id BIGINT DEFAULT NEXTVAL ('TBL_BOOKS_seq') NOT NULL, title VARCHAR(255) NOT NULL, genre VARCHAR(20) NOT NULL, author VARCHAR(40) NOT NULL, isEnabled BOOLEAN NOT NULL, PRIMARY KEY (book_id)); CREATE SEQUENCE TBL_USERS_seq; CREATE TABLE IF NOT...
CREATE DATABASE IF NOT EXISTS `zoe` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `zoe`; -- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) -- -- Host: firefly Database: zoe -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.13.10.1 /*!40101 SET @OLD_CHARACT...
INSERT INTO `afernandez`.`sismenu` (`menuName`, `menuIcon`, `menuController`, `menuView`, `menuFather`) VALUES ('Ventas_Reservas', 'fa fa-fw fa-info', 'sale', 'listado_reserva', NULL); INSERT INTO `afernandez`.`sismenuactions` (`menuId`, `actId`) VALUES ((select menuId from sismenu where menuController='sale' and menuV...
<gh_stars>0 insert into flight(id, price, date, route_Id) values(101, 2.55,'2012-01-01',101);
1. actor ve customer tablolarında bulunan first_name sütunları için tüm verileri sıralayalım. select first_name from actor union select first_name from customer 2. actor ve customer tablolarında bulunan first_name sütunları için kesişen verileri sıralayalım. select first_name from actor INTERSECT select first_name fr...
<gh_stars>0 -- upgrade -- CREATE TABLE IF NOT EXISTS "user" ( "id" SERIAL NOT NULL PRIMARY KEY, "username" VARCHAR(255) NOT NULL UNIQUE, "password" VARCHAR(255) NOT NULL UNIQUE ); CREATE TABLE IF NOT EXISTS "note" ( "id" SERIAL NOT NULL PRIMARY KEY, "title" VARCHAR(255) NOT NULL, "body" TEXT NOT...
<reponame>diMItuR10/CSharp-Databases<filename>DB - Indices and Data Aggregation/DepositsFilter.sql SELECT DepositGroup, SUM(DepositAmount) AS TotalSum FROM WizzardDeposits WHERE MagicWandCreator LIKE ('<NAME>') GROUP BY DepositGroup HAVING SUM(DepositAmount) < 150000 ORDER BY TotalSum DESC
<filename>students/y2334/Kotliarowa Sofia/Pr3.2_PostgreSQL/prac2_commands.sql -- delete from clients where id > 100 -- delete from manufacturers where name = 'name100' -- delete from orders where status = 4 -- update orders set status = 1 where status = 0 -- update mateials set type = 'gold' where type = 'bronze' -- u...
<reponame>TheJavaCoder/Capstone USE [DB_111206_clicker] GO /****** Object: StoredProcedure [dbo].[spINSERT_dbo_Items] Script Date: 3/4/2021 6:33:28 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[spINSERT_dbo_Items] @items int, @item_name varchar(50), @icon varchar(50), @ca...
<reponame>paser4se/XCoLab CREATE TABLE IF NOT EXISTS `files_FileEntry` ( `fileEntryId` bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, `createDate` datetime DEFAULT NULL, `fileEntryExtension` varchar(10) DEFAULT NULL, `fileEntryName` varchar(255) DEFAULT NULL, `fileEntrySize` int(11) DEFAULT NULL ) ENGINE=Inn...
<filename>Stored Procedures/dbo.DBA_ExtendedEventFileReader.sql<gh_stars>1-10 SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO --============================================= -- Copyright (C) 2018 <NAME>, @SQLDoubleG -- All rights reserved. -- -- You may alter this code for your own *non-commercial* purposes. You ma...
<reponame>SQLAdrian/MadeiraToolbox<filename>Utility Scripts/Shrink All Shrinkable Transaction Logs.sql /* Find All Shrinkable Transaction Logs ==================================== Author: <NAME> Date: 2021-10-16 Description: This script can be used to find all transaction log files that don't have active VLFs at thei...
<reponame>rsmsaurabh/next-auth-main<filename>test/docker/databases/mssql/setup.sql USE master; /* did you tear down the container ? */ if not exists (select name from sys.syslogins where name = 'nextauth') CREATE LOGIN nextauth WITH PASSWORD = 'password', CHECK_POLICY = OFF; GO /* did you tear down the co...
-- active_users_30da -- Review: 16/06/2017 SELECT DATE(YOUR_TIMESTAMP_PARAMETER) as date, EXACT_COUNT_DISTINCT(email) as count FROM [YOUR_PROJECT_ID:users.active_users] WHERE _PARTITIONTIME >= DATE_ADD(YOUR_TIMESTAMP_PARAMETER,-30,"DAY")
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func8.sql CREATE FUNCTION func8() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE471);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE223);val:=(SELECT C...
<reponame>fossabot/automate-1 -- Verify stage_ordering BEGIN; SELECT sequence_number, stage, phase, parallel FROM stage_ordering WHERE FALSE; ROLLBACK;
-- complain if script is sourced in psql, rather than via CREATE/ALTER EXTENSION \echo Use "ALTER EXTENSION icu_ext UPDATE TO '1.4'" to load this file. \quit CREATE OR REPLACE FUNCTION icu_strpos( string text, "substring" text ) RETURNS int4 AS 'MODULE_PATHNAME', 'icu_strpos' LANGUAGE C STRICT IMMUTABLE PARALLEL SAF...
SELECT * FROM view_beban_barang5_disporaparbud UNION ALL
<gh_stars>0 安装命令[postgres@hp apache-madlib-1.16-src]$ src/bin/madpack -p postgres install 数据库需要开启。 madpack.py: ERROR : Failed executing m4 on ... 这个原因就是没有安装m4 这个软件, 用[root@hp postgres]# yum install m4 解决 官方基本要求 Requirements for installing MADlib: gcc and g++ (For OSX, Clang will work for compiling the sourc...
<gh_stars>10-100 SELECT _allele_key, _marker_key, _strain_key, symbol, name, iswildtype FROM all_allele_view
-- values upgrade not needed create table coo(col1 int, col2 date, col3 varchar(10)) partition by range (col2) (partition p1 values less than (date'1990-12-31'), partition p2 values less than(date'2000-12-31'), partition p3 values less than(date'2010-12-31')); insert into coo values(11, date'2004-10-19', 'char1');...
<reponame>mywaylearning/waybook-api DROP TABLE IF EXISTS `Answer`;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 23, 2020 at 04:46 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_CHARACT...
CREATE TABLE [dbo].[Roles] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [Deleted] BIT NOT NULL DEFAULT 0, [Name] NVARCHAR(128) NOT NULL )
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.28, for Linux (x86_64) -- -- Host: localhost Database: lab2 -- ------------------------------------------------------ -- Server version 5.7.28-0ubuntu0.18.04.4 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
SELECT * FROM history WHERE id = $1 ;
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_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 EXISTS plpg...
# Host: localhost (Version: 5.5.47) # Date: 2017-02-27 11:06:51 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "access_token" # DROP TABLE IF EXISTS `access_token`; CREATE TABLE `access_token` ( `access_id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'access_token的id'...
BEGIN; PRAGMA cache_size = 10000; PRAGMA temp_store = MEMORY; CREATE TABLE IF NOT EXISTS qbox ( unit TEXT NOT NULL, key TEXT NOT NULL, value TEXT NOT NULL, created_at INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP, updated_at INTEGER NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (unit,key) ); CRE...
<filename>src/test/resources/sql/alter_operator/860a9fc9.sql -- file:alter_operator.sql ln:81 expect:true ALTER OPERATOR === (boolean, boolean) SET (COMMUTATOR = !==)