sql
stringlengths
6
1.05M
<filename>api/sql/schema/750$transfer.payee.get.sql CREATE PROCEDURE [transfer].[payee.get] -- gets payee information @payeeId BIGINT, -- payee id in the system @meta core.metaDataTT READONLY -- information for the user that makes the operation AS DECLARE @userId BIGINT = (SELECT [auth.actorId] FROM @meta) DE...
CREATE OR REPLACE VIEW sqm.vw_bug_all_componentes AS( SELECT vw.product, vw.product_version, vw.component, count(1) as Total_Bugs FROM sqm.vw_bugs_selecionados vw group by vw.product, vw.product_version, vw.component ORDER BY vw.product ASC, vw.product_version DESC );
{\rtf1\ansi\ansicpg1252\cocoartf2511 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\expandedcolortbl;;} \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx...
<filename>phpapm/common/phpapm.sql -- phpMyAdmin SQL Dump -- version 3.4.8 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014 年 08 月 27 日 09:54 -- 服务器版本: 5.1.63 -- PHP 版本: 5.2.17p1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<gh_stars>100-1000 CREATE database if NOT EXISTS `iyydb_job` default character set utf8 collate utf8_general_ci; use `iyydb_job`; SET FOREIGN_KEY_CHECKS=0; # # Structure for table "XXL_JOB_QRTZ_CALENDARS" # CREATE TABLE `XXL_JOB_QRTZ_CALENDARS` ( `SCHED_NAME` varchar(120) NOT NULL, `CALENDAR_NAME` varchar(...
BEGIN; -- -- Create model mn_alert2action -- CREATE TABLE `portal_mn_alert2action` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `alert_name` varchar(30) NOT NULL, `alert_actions` varchar(300) NOT NULL); -- -- Create model mn_Ansible_action -- CREATE TABLE `portal_mn_ansible_action` (`id` integer AUTO_INCREMENT NO...
<filename>web/src/main/webapp/WEB-INF/update-sql/8.sql<gh_stars>100-1000 alter table `log` CHANGE COLUMN `search_content` `plain_content` longtext DEFAULT NULL;
<reponame>pdv-ru/ClickHouse select materialize(toLowCardinality('a'));
INSERT INTO AnnotatedStopPointRef (StopPointRef, CommonName, Latitude, Longitude) VALUES ('9300RAY', 'Rothesay Ferry Terminal', 0, 0); INSERT INTO AnnotatedStopPointRef (StopPointRef, CommonName, Latitude, Longitude) VALUES ('9300WMB', 'Wemyss Bay Ferry Terminal', 0, 0); INSERT INTO Route (RouteId, RouteDescription, Ro...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2018 at 05:10 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>pigeon-server/src/sql/dropTables.sql drop table t_listband; drop table t_simpleatom; drop table t_pigeontransaction; drop table t_flexobject; drop table t_ids; drop table t_testwhileidle;
create or replace function feed(_username varchar(64), per_page integer, page_offset integer) returns SETOF feed_events immutable language sql as $$ with following as ( select * from follows as f where f.follower = _username ), new_guides as ( select g.created ::timestamp as tim...
<reponame>ddydeveloper/make-a-meet<filename>_database/MeetingsSchema/Tables/Meetings.sql CREATE TABLE [dbo].[Meetings] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(0,1), [Name] NVARCHAR(100) NOT NULL, [Description] NVARCHAR(500) NULL, [Created] DATETIME NOT NULL DEFAULT (GETDATE()), [CreatedBy] INT NO...
-- totherescue /********************************************************************** * Purpose: Updates history when a user finishes a minigame. ***********************************************************************/ USE totherescue; DELIMITER $$ CREATE PROCEDURE proc_UpdateProgressHistory(MiniGameID int,Profil...
-- MySql Table Definitions DROP TABLE IF EXISTS Operator; CREATE TABLE Operator ( Id int(10) NOT NULL AUTO_INCREMENT, Username varchar(128) NOT NULL, Password varchar(128) NOT NULL, FirstName varchar(128) DEFAULT NULL, LastName varchar(128) DEFAULT NULL, LastLoginDate ...
<reponame>jfrank1500/tarefas -- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) -- -- Host: localhost Database: tarefas -- ------------------------------------------------------ -- Server version 5.7.26-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
INSERT INTO ANIMALS (color, name) VALUES ('black', 'cat');
-- Drops the trAuve if it exists currently -- DROP DATABASE IF EXISTS trauve; -- Creates the "trauve" database -- CREATE DATABASE trauve; USE trauve; CREATE TABLE Product ( id int AUTO_INCREMENT NOT NULL, type varchar(255) NOT NULL, price int NOT NULL, name varchar( 255 ) NOT NULL, description va...
<filename>src/clojure/slackbot/database/sql/stinkypinky.sql<gh_stars>0 -- Copyright © 2018 <NAME> -- -- 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/...
<reponame>Lucas-Tang/20200116<gh_stars>0 -- 菜單 CREATE TABLE sys_menu ( menu_id NUMBER(20, 0) NOT NULL, parent_id NUMBER(20, 0) NOT NULL, name varchar2(50), url varchar2(200), perms varchar2(500), type NUMBER(2, 0), icon varchar2(50), order_num int, PRIMARY KEY (menu_id) ); -- 部門 CREATE TABLE sys_dept...
USE dashboards; DROP FUNCTION IF EXISTS getTimePeriodDateRange; DELIMITER // CREATE FUNCTION getTimePeriodDateRange( p_includedDateFrom VARCHAR(20), p_includedDateTo VARCHAR(20), p_includedPeriodValue VARCHAR(20), p_includedPeriodType VARCHAR(20), p_includedPeriodOperator VARCHAR(50), p_base...
<gh_stars>1-10 CREATE SCHEMA [client];
<reponame>WNPRC-EHR-Services/wnprc-modules /* * Copyright (c) 2011-2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ select h.id, h.room, h.cage, h.cond, h.id.numRoommates.numRoommates as numRoommates, CASE WHEN (h.cond = 's' or h...
CREATE DATABASE java_a_from_z WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' CONNECTION LIMIT = -1;
<filename>9.3/Sitecore.Commerce.Engine.SDK.5.0.76/src/WebDeployUpdates/CECloud_SCCPL_Solr/CopyToRoot/CreateUser.Shared.sql  IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = 'PlaceholderForSharedDatabaseUserName') BEGIN IF (LEN('PlaceholderForSharedDatabasePassword') = 0) CREATE USER [PlaceholderFo...
select db_instance_storage, zone_id from alicloud_rds_instance where akas::text = '["{{ output.resource_aka.value }}"]';
INSERT INTO MAIL_TEMPLATES ( TEMPLATE_ID , TEMPLATE_TITLE , DESCRIPTION , INSERT_USER , INSERT_DATETIME , UPDATE_USER , UPDATE_DATETIME , DELETE_FLAG ) VALUES ( ? , ? , ? , ? , ? , ? , ? , ? );
-- 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. -- OERR functionality - list description for and ORA- error code -- The data comes from $ORACLE_HOME/rdbms/mesg/oraus.msb file -- which is a binar...
<reponame>WeilerWebServices/PostgreSQL GRANT ALL ON TABLE public."testmview_$%{}[]()&*^!/@`#" TO PUBLIC;
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int primary key, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q D...
/* For the asynchronous mysql code, change session to use a 32 character * string instead of int(11) */ ALTER TABLE `auth` CHANGE `session` `session` CHAR( 32 ) NOT NULL ; ALTER TABLE `input` CHANGE `session` `session` CHAR( 32 ) NOT NULL ; ALTER TABLE `sessions` CHANGE `id` `id` CHAR( 32 ) NOT NULL ; ALTER TABLE `tt...
<filename>webeve/sql/orgpref-mod.sql<gh_stars>0 ALTER TABLE `chofmann`.`OrgPrefs` MODIFY COLUMN `PrefType` VARCHAR(20) NOT NULL, MODIFY COLUMN `PrefValue` VARCHAR(10000); UPDATE OrgPrefs O SET PrefType = (SELECT TypeName FROM OrgPrefTypes WHERE TypeID = O.PrefType);
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2020 at 08:10 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>arianvaldivieso/pos -- payment_type_expenses -- ALTER table phppos_expenses ADD COLUMN `expense_payment_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL;
<filename>3-Customization/17-Manager can set daily fee and capacity/backend-sql/migrations/201904111130-add-columns-to-settings.sql ALTER TABLE public.settings ADD COLUMN "dailyFee" numeric(24, 2); ALTER TABLE public.settings ADD COLUMN capacity integer;
INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AMERICAN', 'American Airlines', 4, 227); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ASIANA', 'Asiana Airlines', 2, 118); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ADRIA', 'Adria Airways', 4, 196); INSERT INTO A...
<filename>barbershop.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03 Agu 2017 pada 11.21 -- Versi Server: 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_...
<reponame>MeesterVers/HU_Richrail CREATE TABLE "TRAINS" ( "ID" NUMBER, "NAME" VARCHAR2(255), CREATE UNIQUE INDEX "TRAINS_PK" ON "TRAINS" ("ID"), ALTER TABLE "TRAINS" ADD CONSTRAINT "TRAINS_PK" PRIMARY KEY ("ID") ENABLE, ALTER TABLE "TRAINS" MODIFY ("ID" NOT NULL ENABLE) ) CREATE TABLE "WAGONS" ( "ID" NUMBER, "...
<gh_stars>1-10 -- Before setting up any privileges, we revoke existing ones to make sure we -- start from a clean slate. -- Note that dropping a non-existing user produces an error that aborts the -- script, so we first grant a harmless privilege to each user to ensure it -- exists. USE mysql; GRANT USAGE ON *.* TO '...
drop table if exists lados_de_manzana; -- tabla con los ejes unidos, lados duplicado y dirigidos por -- mzad, ladod en sentido y mzai, ladoi en sentido contrario -- para respetar regla hombro derecho -- create schema if not exists carto; grant usage on schema carto to segmentador; drop view if exists carto.arcos; cre...
-- migrate up -- schema CREATE SCHEMA IF NOT EXISTS "dbr-sync-destination"; -- dbr-sync CREATE TABLE "dbr-sync-destination"."example" ( id_example TEXT NOT NULL, "name" TEXT NOT NULL, description TEXT NOT NULL, "active" BOOLEAN DEFAULT TRUE NOT NULL, created_at TIMESTAMP DEFAULT NOW(), ...
<filename>backend/src/test/resources/sql/InsertSingleUserCommand.sql<gh_stars>1-10 insert into user_command (id, user_email, command_name, command_text, created_on, modified_on, operated_on) values(99, '<EMAIL>', 'basename', 'basename -az --suffix=test /abc/xyz', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAM...
<filename>packages/api/prisma/migrations/20211102090116_/migration.sql -- CreateTable CREATE TABLE "LeoIncident" ( "id" TEXT NOT NULL, "caseNumber" SERIAL NOT NULL, "description" TEXT NOT NULL, "creatorId" TEXT NOT NULL, "firearmsInvolved" BOOLEAN NOT NULL DEFAULT false, "injuriesOrFatalities" B...
<gh_stars>100-1000 update ACT_GE_PROPERTY set VALUE_ = '6.1.0.0' where NAME_ = 'schema.version'; alter table ACT_RU_EXECUTION add START_ACT_ID_ nvarchar(255); create table ACT_RU_HISTORY_JOB ( ID_ nvarchar(64) NOT NULL, REV_ int, LOCK_EXP_TIME_ datetime NULL, LOCK_OWNER_ nvarchar(255), RETRIES_ in...
<filename>db/cookies_vs_session.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 20, 2022 at 09:22 AM -- Server version: 8.0.27 -- PHP Version: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2018 at 10:24 AM -- 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...
insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , brows...
select count(*) from j1 where c_float not in ( select c_float from j6) ;
<filename>basededatosmegamercado.sql Create Database MegaMercado go use MegaMercado go CREATE Table login( log_Usuario Varchar(15) NOT NULL, Log_Contrasena Numeric(15,0) NOT NULL, Log_Ingreso Varchar(2) NOT NULL ); Insert Into login Values ('Sonia', '1234', '1'); Insert into login values ('Ma...
<filename>account/src/main/resources/org/killbill/billing/account/migration/V20163917173936__parent_account_456.sql alter table accounts add column parent_account_id varchar(36) DEFAULT NULL after billing_cycle_day_local; alter table accounts add column is_payment_delegated_to_parent boolean DEFAULT FALSE after parent_...
<filename>server/src/main/resources/db/bootstrap/V37__tag_entity_mapping.sql<gh_stars>100-1000 DROP TABLE IF EXISTS `tag_entity_mapping`; CREATE TABLE `tag_entity_mapping` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `tag_id` BIGINT(20) DEFAULT NULL, `entity_id` BIGINT(20) DEFAULT NULL, `...
<gh_stars>10-100 -- -- Test correlated subquery in subplan with motion chooses correct scan type -- -- Given I have two distributed tables create table choose_seqscan_t1(id1 int,id2 int); create table choose_seqscan_t2(id1 int,id2 int); -- and they have some data insert into choose_seqscan_t1 select i+1,i from generate...
<gh_stars>0 SELECT ExternalUpdates.PrcId, ExternalUpdates.BFY, ExternalUpdates.BudgetLevel, ExternalUpdates.AhCode, ExternalUpdates.FundName, ExternalUpdates.FundCode, ExternalUpdates.OrgCode, ExternalUpdates.AccountCode, ExternalUpdates.BocCode, ExternalUpdates.RcCode, ExternalUpdates.BocName, ExternalUpdates.Division...
<filename>database/sql-files/Step04_createViews.sql<gh_stars>0 Use `microtope`; CREATE VIEW microtope.steps_by_user AS SELECT ps.player_id,SUM(steps) AS steps FROM players AS ps JOIN steps AS s ON ps.player_id = s.player_id GROUP BY ps.player_id ORDER BY steps DESC; CREATE VIEW microtope.coins_by_user ...
CREATE FUNCTION ufn_CashInUsersGames(@gameName NVARCHAR(MAX)) RETURNS TABLE AS RETURN SELECT SUM(Cash) AS SumCash FROM ( SELECT ug.Cash, ROW_NUMBER() OVER ( ORDER BY ug.Cash DESC ) AS RowNum FROM UsersGames AS ug INNER JOI...
CREATE TABLE [dbo].[LogActivityUser] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [NamaTable] NVARCHAR (MAX) NULL, [Message] NVARCHAR (MAX) NULL, [IdRow] BIGINT NULL, [Action] NVARCHAR (MAX) NULL, [UserBy] NVARCHAR (MAX) NULL, [Datetime] NVARCHAR (MAX) NULL, ...
<gh_stars>1-10 create database residentlog; use residentlog; create table duty ( DutyType int not null primary key, DutyDescription varchar(32) not null ); create table test_result ( TestResultType int not null primary key, TestResultDescription varchar(32...
-- FORMS UPDATE `sys_form_inputs` SET `editable`='1' WHERE `object`='bx_albums' AND `name` IN ('allow_view_to', 'location'); -- COMMENTS UPDATE `sys_objects_cmts` SET `Module`='bx_albums' WHERE `Name` IN ('bx_albums', 'bx_albums_media'); -- VOTES UPDATE `sys_objects_vote` SET `TriggerFieldAuthor`='author' WHERE `Na...
ALTER TABLE "public"."user" ADD COLUMN "name" varchar NULL;
DROP INDEX IF EXISTS messages_stream; CREATE UNIQUE INDEX messages_stream ON message_store.messages ( stream_name, position );
ALTER TABLE seq_track ADD COLUMN sample_identifier VARCHAR(255); -- fill sample_identifier UPDATE seq_track st SET sample_identifier = subquery.sample_id FROM (SELECT df.seq_track_id, -- meta_data_entry.value: -- the unfiltered meta_data_entries can hold an ODCF-guide "import identi...
<filename>code/cn.elwy.eplus/cn.elwy.eplus.core/src/main/resources/database/cn.elwy.base.data.sql /* -- -------------------------------------------------------- -- 作者:黄仕强 -- 系统版本:version 2.0 -- 创建日期:2018-02-19 20:30:00 -- 版权所有:2027-02-19 All Right Reserved IN www.elwy.cn -- 文件描述:创建数据库表、视图以及初始化系统数据 -- 表名命名规则: --...
<filename>resources/sql/autopatches/20190116.phortune.01.billing.sql ALTER TABLE {$NAMESPACE}_phortune.phortune_account ADD billingName VARCHAR(255) NOT NULL COLLATE {$COLLATE_TEXT}, ADD billingAddress LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT};
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `kwc_newsletter_queue_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `newsletter_id` smallint(6) NOT NULL, `recipient_model` varchar(255) NOT NULL, `recipient_id` varchar(255) NOT NULL, `searchtext` varchar(255) NOT NULL, `status` enum('sent','failed','usernotfound') ...
<filename>software/cabio-database/scripts/sql_loader/no_longer_used/indexes/zstg_rna_probesets_tmp.lower.sql /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ create index ZSTG_RNA_TMP_ANNOTATION_lwr on ZSTG_RNA_PR...
--TEST: error and special cases create table lead_err( col1 smallint auto_increment primary key, col2 bigint not null, col3 varchar default 'abc', col4 timestamp default CURRENT_TIMESTAMP, col5 bit(20) ); insert into lead_err(col2, col3, col4, col5) values(500, 'cubrid', '19...
ALTER TABLE guild_configs ADD COLUMN profile_size INT2; ALTER TABLE guild_configs ADD COLUMN embeds_maximized BOOL; ALTER TABLE guild_configs ADD COLUMN show_retries BOOL;
CREATE PROCEDURE usp_SwitchRoom(@TripId INT, @TargetRoomId INT) AS BEGIN DECLARE @TargetRoomHotel INT = (SELECT HotelId FROM Rooms WHERE Id = @TargetRoomId) DECLARE @TripHotel INT = (SELECT R.HotelId FROM Trips t JOIN Rooms r ON t.RoomId = r.Id WHERE t.Id = @TripId) IF(@TripHotel <> ...
--------------------------------------------------------------------- -- ALTER --1. ADD new column --2. Modify Data type of an existing column --3. DROP an existing column --------------------------------------------------------------------- USE TSQLV4 GO SELECT * FROM Test.Employees ALTER TABLE Test.Employees ADD...
<gh_stars>0 alter table "public"."frontend_store_errors" rename to "frontend_store_error";
INSERT INTO `Prix_lieu_dit`(`code_postal`, `prix_min_m2`) VALUES ('75000',9960), ('13000',2156), ('69000',4567), ('92140',5787), ('94120',3582), ('92190',3392), ('31000',2322), ('49000',2384), ('33000',4029), ('44000',2616), ('57000',1337), ('59000',2950), ('59300',1453), ('66000',923), ('77000',1597), ('75016',8860), ...
<reponame>thomthom/play-play<gh_stars>0 drop table if exists matches; create table matches ( id INTEGER PRIMARY KEY AUTOINCREMENT, game_title VARCHAR(255) NOT NULL, game_url VARCHAR(255), start_time TIMESTAMP NOT NULL, play_time_min INTEGER NOT NULL, play_time_max INTEGER, players_registered VARCHAR(512) ...
<gh_stars>0 #Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. #Your result cannot contain duplicates. #Input Format #The STATION table is described as follows: #Station (table) #Field Type #ID Number #City VARCHAR2(21) #State VARCHAR...
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 09, 2019 at 03:15 PM -- Server version: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
/* Formatted on 12-19-2018 4:33:43 PM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION RPT.GETRPTLOGMSGID (PROCSID NUMBER, PROCSTYP VARCHAR2) RETURN NUMBER AS L_RESULT NUMBER; BEGIN SELECT MSG_ID INTO L_RESULT FROM RPT.RPT_RUN_MSGS ...
-- file:limit.sql ln:12 expect:true SELECT ''::text AS two, unique1, unique2, stringu1 FROM onek WHERE unique1 > 60 AND unique1 < 63 ORDER BY unique1 LIMIT 5
<filename>src/test/resources/sql/create_rule/88896ad9.sql -- file:rules.sql ln:1110 expect:true CREATE RULE hat_upsert AS ON INSERT TO hats DO INSTEAD INSERT INTO hat_data VALUES ( NEW.hat_name, NEW.hat_color) ON CONFLICT (hat_name) DO UPDATE SET hat_name = hat_d...
CREATE SCHEMA [Purchasing] GO
<filename>fineract-provider/src/main/resources/sql/migrations/core_db/V371__alter-table-m-savings-product.sql -- Author : afad ALTER TABLE `m_savings_product` ADD `is_main_product` BOOLEAN NULL DEFAULT FALSE
<reponame>LifeWatchINBO/open-data-publication<gh_stars>0 /* Tables and fields we want to include: (datecreated, datelastchange and version are not included) allowedusers n calculatedmeasurement y - id n - latitude y - longitude ...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table area ( id integer auto_increment not null, code integer, name varchar(255), city_code ...
<reponame>aroseca15/burger_eatathon CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers( id INT NOT NULL auto_increment, name VARCHAR(75) NOT NULL, eaten BOOLEAN DEFAULT false, PRIMARY KEY (id) );
insert into value_set (id, version) values ('Influenza.Test.OID', '1'); insert into value_set_value (valueSetId, code, system) values ('Influenza.Test.OID', '76077-7', 'http://loinc.org');
-- gsutil -m cat gs://ot-snapshots/etl/outputs/21.03.1/literature/vectors/part\* | clickhouse-client -h localhost --query="insert into ot.ml_w2v_log format JSONEachRow " create database if not exists ot; create table if not exists ot.ml_w2v_log ( category String, word String, norm Float64, vector A...
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD secretKey VARCHAR(20) NOT NULL COLLATE utf8_bin; ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD verified TINYINT(1) DEFAULT 0; ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD KEY `secretKey` (secretKey);
DROP TABLE IF EXISTS south_migrationhistory; -- legacy, replaced by django_migrations table DROP FUNCTION IF EXISTS ft_date_insert() CASCADE; DROP FUNCTION IF EXISTS ft_date_update() CASCADE; DROP FUNCTION IF EXISTS ft_uuid_insert() CASCADE;
-- ---------------------------- -- 添加接口记录操作 -- ---------------------------- DROP TABLE IF EXISTS `api_log`; CREATE TABLE `api_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `controller` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT '', `action` varchar(20) NOT NULL DEFAULT '', `params` varchar(255) NOT...
<filename>hasura/migrations/1619819836722_run_sql_migration/up.sql ALTER TABLE "Role" SET SCHEMA "permissions";
USE mydb; ALTER DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; DROP TABLE IF EXISTS `usuarios`; CREATE TABLE `usuarios` ( `id` int not null primary key auto_increment, `nome` varchar(45) NOT NULL, `login` varchar(45) NOT NULL, `senha` char(32) NOT NULL ); INSERT INTO `usuarios` (`nome...
DROP TABLE Activity CASCADE CONSTRAINTS PURGE; DROP TABLE ActivityMember CASCADE CONSTRAINTS PURGE; DROP TABLE HallRoster CASCADE CONSTRAINTS PURGE; DROP TABLE Grade CASCADE CONSTRAINTS PURGE; DROP TABLE GradeMember CASCADE CONSTRAINTS PURGE; DROP TABLE PoolRoster CASCADE CONSTRAINTS PURGE; DROP TABLE Trainer CASCADE C...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.5 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 02 Juin 2015 à 19:11 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
<reponame>JoaoGuedes01/BracelHertz -- -- Server version 8.0.17 -- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZO...
<gh_stars>0 BEGIN TRANSACTION; CREATE TABLE favfoods ( id SERIAL PRIMARY KEY, name VARCHAR(255), lastname VARCHAR(255), favorite_food VARCHAR(255) ); INSERT INTO favfoods (name, lastname, favorite_food) VALUES ('Chip', 'Crawford', 'Hamburgers'), ('Julia', 'Kyung', 'Pasta'), ('Tam', 'Nguyen', 'Peperonn...
create table if not exists cursos ( nome varchar(30) not null unique, descricao text, carga int unsigned, totaulas int unsigned, ano year default '2016' ) default charset = utf8; describe cursos; alter table cursos add column idcursos int first; alter table cursos add primary key (idcursos); create table if not exi...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2017 at 01:53 AM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
USE SoftUni GO CREATE PROC usp_GetEmployeesSalaryAboveNumber(@number money) AS SELECT FirstName,LastName FROM Employees WHERE Salary >= @number GO
/* Write a query that will create the “gamebar” database. */ CREATE DATABASE gamebar; USE gamebar; /* Create Tables */ CREATE TABLE employees( id INT(11) PRIMARY KEY AUTO_INCREMENT, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL ); CREATE TABLE categories( id INT(11) PRIMARY KEY AUTO_INCREMENT, n...
CREATE PROCEDURE [employer_account].[GetAccounts_ByUserRef] @userRef UNIQUEIDENTIFIER AS SELECT a.Id, a.Name, m.[Role], a.HashedId, a.PublicHashedId FROM [employer_account].[User] u INNER JOIN [employer_account].[Membership] m ON m.UserId = u.Id INNER JOIN [employer_account].[Account] a ON m.AccountId = a.Id WHERE ...
<reponame>navikt/familie-ba-sak ALTER TABLE vedtaksbegrunnelse DROP CONSTRAINT vedtaksbegrunnelse_fk_vedtaksperiode_id_fkey, ADD CONSTRAINT vedtaksbegrunnelse_fk_vedtaksperiode_id_fkey FOREIGN KEY (fk_vedtaksperiode_id) REFERENCES vedtaksperiode (id) ON DELETE CASCADE; ALTER TAB...
-- Faça uma consulta que retorne três colunas, respectivamente, com os nomes 'A', 'Trybe' e 'de', e com valores referentes a soma de '5 + 6', a string 'de', a soma de '2 + 8'", SELECT (5 + 6) as 'A', 'de' as 'Trybe', (2 + 8) as 'eh';