sql
stringlengths
6
1.05M
<reponame>d4v1dp3/proy-monitoreo-casa /* ------------------------------------------------------------------------ */ /* Script para carga de datos de ejemplo. */ /* Autor: <NAME> */ /* Creado : 10-Sep-2020 04:15:34 p.m. */ /* DBMS : MySql */ /* ------------------...
<reponame>atomlab/stihi-backend-1.0 CREATE TABLE delegation_balance ( id BIGSERIAL NOT NULL PRIMARY KEY, from_user_id VARCHAR(255) NOT NULL, to_user_id VARCHAR(255) NOT NULL, val_10x6 BIGINT NOT NULL, updated_at TIMESTAMP NOT NULL ); CREATE INDEX idx_delegation_balance_user1 ON delegation_...
<filename>MicroServices/01Feb2020/College.ServicesWebApi/SqlScripts/5Create_AddressBook.sql USE [webapidemo] GO /****** Object: Table [dbo].[AddressBook] Script Date: 2/2/2020 2:15:53 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[AddressBook]( [Id] [uniqueidentifier] NOT NULL, ...
SELECT keys.id as id, keys.account_id as account_id, keys.name as name, keys.key as key FROM keys WHERE keys.account_id = ? ORDER BY keys.id ASC;
Insert into AC_UI_SEQUENCER (SEQUENCER_ID,NAME, DISPLAY_NAME, VALUE) values (1,'USER', '사용자', 1); Insert into AC_UI_SEQUENCER (SEQUENCER_ID,NAME, DISPLAY_NAME, VALUE) values (2,'GROUP', '그룹', 1); Insert into AC_UI_SEQUENCER (SEQUENCER_ID,NAME, DISPLAY_NAME, VALUE) values (3,'COMPANY', '회사', 1); Insert into AC_UI_SEQUE...
INSERT INTO WeaveUser(username,password,email) VALUES('<PASSWORD>','fo<PASSWORD>','<EMAIL>'); INSERT INTO EngineWbo(userid, engine, nodeid, modified, payload) VALUES(1, 'meta', 'global', CURRENT_TIMESTAMP, '{ "engines": { "bookmarks": { "syncID": "hyE2Z4eznGJz", "version": 2 }, "clients": { "syncID": "UT_6kIqbg0db", "...
<reponame>larsjohanssonblank/dbt-utils-sqlserver<filename>integration_tests/models/cross_db_utils/test_concat.sql with data as ( select * from {{ ref('data_concat') }} ) select {{ dbt_utils_sqlserver.concat(['input_1', 'input_2']) }} as actual, output as expected from data
-- Sprachen und Schriften überarbeitet --Angramm -> Angram (Schrift) DELETE FROM Held_Talent WHERE HeldGUID in (SELECT HeldGUID FROM Held_Talent WHERE TalentGUID in ('00000000-0000-0000-007a-000000000101', '00000000-0000-0000-007a-000000000102') GROUP BY HeldGUID HAVING COUNT(*) > 1) AND TalentGUID='00000000-0000...
<gh_stars>1-10 -- Insert new category. All fields need to match what's in the constants. -- id has to be set so it matches our constants. I used +100 the desktop categories. -- addontype_id is 10 (Static Theme) -- application_id is 61 (Firefox for Android) -- weight is 0 for normal categories and 333 for 'other' (used ...
/* indices for catalogdb tables, to be run after bulk uploads psql -f gaia_dr2_wd_index.sql -U sdss sdss5db */ alter table catalogdb.gaia_dr2_wd_candidates_v1 add primary key(source_id); -- Indices CREATE INDEX CONCURRENTLY ON catalogdb.gaia_dr2_wd_candidates_v1 using BTREE (ra); CREATE INDEX CONCURRENTLY ON cata...
/* Description: https://gea.esac.esa.int/archive/documentation/GDR2/Gaia_archive/chap_datamodel/sec_dm_main_tables/ssec_dm_ruwe.html Files: https://cdn.gea.esac.esa.int/Gaia/gdr2/ruwe/csv/ */ CREATE TABLE catalogdb.gaia_dr2_ruwe ( source_id BIGINT, ruwe REAL );
drop table if exists t1,t2; create table t1 (a int, b varchar(32)); insert into t1 values (4,'aaaa' ), (7,'bb'), (1,'ccc'), (4,'dd'); insert into t1 values (3,'eee'), (7,'bb'), (1,'fff'), (4,'ggg'); create table t2 (c int); insert into t2 values (2), (4), (5), (3); with recursive t as (select a from t1 where...
<reponame>brunomgalmeida/apgdiff<filename>src/test/resources/cz/startnet/utils/pgdiff/manual_set_statistics_diff.sql<gh_stars>0 ALTER TABLE ONLY public.bruno ALTER COLUMN field1 SET (n_distinct=10, n_distinct_inherited=10);
<reponame>sauliakarina/siluni-ts -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2019 at 07:14 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
/* ?????????????????????????????????????????????????????????????????????? ?| ?| Procedure Name: ag_test_upd ?| ?| Description: Updates the table test ?| ?| @Author: Auto Generated ?| @Createdate: 2/13/2018 ?| ?| @Input Param: @test_id int = TestId ?| @application_id int = ApplicationId ?| @application_method...
<reponame>AlanSnyder99/ecommerceProject /*CREATE SCHEMA `ecommercedb` ;*/ CREATE TABLE IF NOT EXISTS `ecommercedb`.`categoria` ( `idcategoria` INT NOT NULL, `tipo` VARCHAR(200) NOT NULL, PRIMARY KEY (`idcategoria`)); CREATE TABLE IF NOT EXISTS `ecommercedb`.`localidad` ( `idlocalidad` INT NOT NULL AUTO_...
<reponame>martinnajjar12/SQLZOO -- Select the statement which lists the unfortunate directors of the movies which have caused financial loses (gross < budget) SELECT name FROM actor INNER JOIN movie ON actor.id = director WHERE gross < budget; -- Select the correct example of JOINing three tables SELECT * FROM ac...
<filename>src/creation/t.sql CREATE TABLE "EDITEURS" ( "ID" NUMBER, "NOM" VARCHAR2(20) COLLATE "USING_NLS_COMP" NOT NULL ENABLE, "ADRESSE" VARCHAR2(100) COLLATE "USING_NLS_COMP" NOT NULL ENABLE, "TELEPHONE" VARCHAR2(20) COLLATE "USING_NLS_COMP" NOT NULL ENABLE, PRIMARY KEY ("ID") USING INDEX ENABLE ...
/* drop table Endereco cascade constraints; drop table Empresa cascade constraints; drop table Pessoa cascade constraints; drop table Funcionario cascade constraints; drop table Atendente cascade constraints; drop table Vendedor cascade constraints; drop table Cliente_PF cascade constraints; drop table Venda cascade co...
<filename>AdventureWorksProject/Database1/Table2.sql CREATE TABLE [dbo].[Table2] ( [Id] INT NOT NULL PRIMARY KEY, [col1] NCHAR(10) NULL, [col2] NCHAR(10) NULL )
<filename>Database Basic/Programmability and Transactions - Exercises/Programmability and Transactions - Exercises/20. Massive Shopping.sql DECLARE @UserId INT = (SELECT Id FROM Users WHERE Username = 'Stamat') DECLARE @GameId INT = (SELECT Id FROM Games WHERE Name = 'Safflower') DECLARE @UserGameId INT = (SELECT Id FR...
CREATE EXTENSION hstore; CREATE or replace FUNCTION echo_hst(arg hstore) RETURNS hstore AS $$ if arg ~= nil then for k,v in pairs(arg) do print(tostring(k).. ' : '..tostring(v)) end arg.test = "value" arg.nulltest = NULL end return arg $$ LANGUAGE pllj; select echo_hst(hstore('avalue', 'btestst...
-- call account.create_account_message (@err, -1, 1, 'hello', 'hello account', 1, 1, @amid); DROP PROCEDURE IF EXISTS account.create_account_message; DELIMITER $$ CREATE PROCEDURE account.create_account_message(OUT error_code INT, IN user_id_in BIGINT, ...
CREATE DATABASE tiles_prod; CREATE DATABASE tiles_dev; CREATE DATABASE tiles_test;
<reponame>axfelix/frdr_harvest create index descriptions_by_record_id on descriptions(record_id, language);
<reponame>Shuttl-Tech/antlr_psql -- file:enum.sql ln:315 expect:true SELECT COUNT(*) FROM pg_type WHERE typname = 'rainbow'
-- +migrate Up CREATE TYPE provider_type AS ENUM ( 'fcm', 'apn' ); CREATE TABLE push_tokens ( id uuid NOT NULL DEFAULT uuid_generate_v4 (), token text NOT NULL, provider provider_type NOT NULL, user_id uuid NOT NULL, created_at timestamptz NOT NULL, updated_at timestamptz NOT NULL, ...
<gh_stars>10-100 /* Упражение 3 стр 41 */ SELECT LOWER(SUBSTR(NAME, 1, 1) || "."|| SURNAME) || "; место жительства-" || LOWER(city) || "; родился: " || strftime('%d-%m-%Y',birthday) AS result FROM student;
<reponame>dram/metasfresh<filename>backend/de.metas.purchasecandidate.base/src/main/sql/postgresql/system/5494560_sys_gh4033_WEBUI_PurchaseCandidates_PurchaseView_Launcher.sql -- 2018-05-27T09:19:15.121 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AD_Client_ID,IsActive,Creat...
# --- !Ups DROP TABLE IF EXISTS incidents; CREATE TABLE incidents ( id int NOT NULL AUTO_INCREMENT, #? Needs to be not null? title varchar(256) NOT NULL, description TEXT NOT NULL, #? Probably need to change max characters incident_type varchar(127) NOT NULL, status varchar(127) NOT NULL, i...
<reponame>lieftsatyamShrivastava/JavaSourceAnalyzer<filename>JavaSourcer/src/main/resources/import.sql insert into java_type (name) values ('PACKAGE'); insert into java_type (name) values ('ANNOTATION'); insert into java_type (name) values ('CLASS'); insert into java_type (name) values ('INTERFACE'); insert into java_t...
create or replace type new_varray is varray (5) of varchar2(255); / /*creeating the db table using the varray type column */ create table store_employee ( store_id number, city new_varray ); / /* inserting the record to the created table which is using the varray type column*/ insert into store_employee(sto...
Use Master Go IF EXISTS (SELECT * FROM master..sysdatabases WHERE name = N'LinqToSqlSample') DROP DATABASE LinqToSqlSample GO
<reponame>iwasingh/auxilium-db<filename>Project/sqls/triggers/0 is_resource_a_leaf.sql /* * Controllo se la risorsa in questione fa riferimento a un nodo dell'albero di tipo foglia */ CREATE OR REPLACE FUNCTION is_resource_a_leaf () RETURNS trigger AS $$ DECLARE resource_tb record; BEGIN IF NEW.re...
<reponame>lbouma/Cyclopath<gh_stars>10-100 /* Copyright (c) 2006-2012 Regents of the University of Minnesota. For licensing terms, see the file LICENSE. */ BEGIN TRANSACTION; /** Create an INSERT ONLY node_attributes table. This table MUST be truncated and recreated when new attributes are added. Upon creatio...
<filename>sql_create_tables/s_hgst_detail.sql<gh_stars>10-100 CREATE TABLE `s_hgst_detail` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `trade_date` int(10) unsigned NOT NULL COMMENT '日期:HdDate', `item_code` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', `item_name` varchar(32) COLLATE utf8mb4_u...
select * from {{ var('accounting_periods') }}
with log as ( select * from {{ var('log') }} ), fields as ( select id as log_id, time_stamp as created_at, connector_id, -- Note: the connector_id column used to erroneously equal the connector_name, NOT its id. case when transformation_id is not null and event is null t...
DROP TABLE "public"."table43";
<reponame>marcoalaura/registro-comercio-backend CREATE OR REPLACE PROCEDURE seprec.obtener_o_registrar_documento(in matricula varchar, in Establecimiento int) AS $$ declare kardex seprec.kardexs%ROWTYPE; documento seprec.documentos%ROWTYPE; fila migsrc.migsrc_emp_documentos%ROWTYPE; estadoDocumento varchar; beg...
ALTER TABLE {PREFIX}authors ADD COLUMN right_publish int2; ALTER TABLE {PREFIX}authors ALTER COLUMN right_publish SET DEFAULT '1'; UPDATE {PREFIX}authors SET right_publish=1;
-- -- Update project support policy -- ALTER TABLE project ADD support_policy VARCHAR(255); UPDATE project SET support_policy='UPSTREAM' where support_policy IS NULL; UPDATE project SET support_policy='SPRING_BOOT' where id='spring-boot';
-- @testpoint: opengauss关键字returned_octet_length非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists returned_octet_length_test; create table returned_octet_length_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists returned_octet_length; create index returned_octet_length on returned_octet_length_test...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600739',@CutoffDate = N'2017-09-30',@EPS = N'0.8059',@EPSDeduct = N'0',@Revenue = N'97.98亿',@RevenueYoy = N'61.24',@RevenueQoq = N'9.26',@Profit = N'12.33亿',@ProfitYoy = N'48.24',@ProfiltQoq = N'111.57',@NAVPerUnit = N'13.1066',@ROE = N'6.39',@CashPerUnit = N'-0.0565',@GrossProfitRa...
<filename>Mercury.Database/Mercury.Database.Environment/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/MemberService_AddManual.proc.sql<gh_stars>0 /* IF EXISTS (SELECT name FROM sysobjects WHERE (name = 'MemberService_AddManual' AND type = 'P')) DROP PROCEDURE dbo.MemberService_AddManual GO */ C...
<reponame>sandeepn26/proman DROP USER 'proman'@'localhost'; DROP DATABASE IF EXISTS proman; CREATE DATABASE proman; CREATE USER 'proman'@'localhost' IDENTIFIED BY 'proman'; GRANT ALL PRIVILEGES ON *.* TO 'proman'@'localhost' IDENTIFIED BY 'proman';
<reponame>techphernalia/updateNewsLetter create table app_users ( user_id int not null auto_increment primary key, user_email varchar(500) not null unique, user_name varchar(500) not null ); create table app_products ( product_id int not null auto_increment primary key, product_name varchar(500) not null...
<filename>db/electronify/migrations/V1649676251__add_user_level.sql ALTER TABLE electronify.users ADD COLUMN auth integer not null default 0; update electronify.users set auth = 1 where username = 'mgeorgio'; update electronify.users set auth = 2 where username = 'theodora'; update electronify.users set auth = 2 w...
<filename>migrations/2018-03-01-160107_create_posts/up.sql CREATE TABLE posts ( id INTEGER AUTO_INCREMENT PRIMARY KEY, created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, user_id INTEGER NOT NULL, modified DATETIME ON UPDATE CURRENT_TIMESTAMP, user_modified_id INTEGER, title TEXT NOT NULL, content TEXT N...
USE [MDXHelperDb] GO SET NOCOUNT ON ; DROP TABLE IF EXISTS #TempTab ; SELECT [ProjectName] = pr.[ProjectName] , [CubeName] = cb.[Name] , [ObjectName] = mm.[Name] , [ObjectCode] = mm.[FullCode] , [VISIBLE] = mm.[Visible] , [MEASGRP] = mm.[MeasureGroup] , [DISFOLD] = mm.[DisplayFolder] , [FORMATS]...
/****** Object: Table [dbo].[Flow] Script Date: 5/21/2019 4:59:23 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Flow]( [flowID] [nvarchar](50) NOT NULL, [environmentID] [nvarchar](50) NOT NULL, [displayName] [nvarchar](100) NULL, [createdTime] [datetime] NULL, [l...
CREATE TABLE public.estados ( id SERIAL PRIMARY KEY, created_at TIMESTAMPTZ DEFAULT NOW(), updated_at TIMESTAMPTZ DEFAULT NOW(), deleted_at TIMESTAMPTZ DEFAULT NULL, name TEXT NOT NULL ); INSERT INTO public.estados (name) VALUES ('Acre'); INSERT INTO public.estados (name) VALUES ('Alagoas'); INSERT INTO pu...
<gh_stars>0 -- Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; version 2 of the License. -- -- This program is ...
<filename>cmdb-backend/init.sql<gh_stars>10-100 CREATE TABLE `cmdb_app_host` ( `app_id` int(11) DEFAULT NULL, `host_id` int(11) DEFAULT NULL, `app_version` varchar(64) DEFAULT NULL, KEY `app_id` (`app_id`), KEY `host_id` (`host_id`) ) ENGINE=innodb DEFAULT CHARSET=utf8 ; CREATE TABLE `cmdb_application` (...
<filename>src/DB_Quran/quran.sql -- phpMyAdmin SQL Dump -- version 2.11.4 -- http://www.phpmyadmin.net # PLEASE DO NOT REMOVE OR CHANGE THIS COPYRIGHT BLOCK #==================================================================== # # Tanzil Quran Text (Simple, version 1.0.2) # Copyright (C) 2008-2010 Tanzil.net # Lic...
<filename>src/SFA.Apprenticeships.Data/Schemas/Vacancy/Scripts/Vacancy.TrainingType.Upsert.sql MERGE Vacancy.TrainingType AS dest USING ( SELECT 'F', 'Framework' UNION SELECT 'S', 'Sector' UNION SELECT 'U', 'Unknown' ) AS src (TrainingTypeCode, FullName) ON (dest.TrainingTypeCode = src.TrainingTypeCode) WHEN MATC...
--############################################################################## -- -- SAMPLE SCRIPTS TO ACCOMPANY "SQL SERVER 2017 ADMINISTRATION INSIDE OUT" -- -- © 2018 <NAME> -- --############################################################################## -- -- CHAPTER 12: IMPLEMENTING HIGH AVAILABILITY AND DISA...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 19, 2022 at 01:44 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<reponame>jdkoren/sqlite-parser<gh_stars>100-1000 -- whereA.test -- -- db eval { -- PRAGMA reverse_unordered_selects=1; -- VACUUM; -- SELECT * FROM t1; -- } PRAGMA reverse_unordered_selects=1; VACUUM; SELECT * FROM t1;
<filename>msgcntr/messageforums-docs/SAK-11740_mysql.sql<gh_stars>1-10 CREATE TABLE `MFR_EMAIL_NOTIFICATION_T` ( `ID` bigint(20) NOT NULL auto_increment, `VERSION` int(11) NOT NULL, `USER_ID` varchar(255) NOT NULL, `CONTEXT_ID` varchar(255) NOT NULL, `NOTIFICATION_LEVEL` varchar(255) NOT NULL, PRIMARY KEY ...
<reponame>iuri/tutortronics<gh_stars>0 -- -- acs-kernel/sql/acs-objects-drop.sql -- -- DDL commands to purge the ACS Objects data model -- -- @author <NAME> (<EMAIL>) -- @creation-date 2000-22-18 -- @cvs-id $Id: journal-drop.sql,v 1.1 2001/03/20 22:51:55 donb Exp $ -- begin acs_object_type.drop_type( object_type...
<reponame>githubsigmod2021/CodecDB CREATE TABLE part ( p_partkey INT, p_name VARBINARY(20), p_mfgr VARBINARY(20), p_brand VARBINARY(20), p_type V...
<filename>src/EA.Iws.Database/scripts/Everytime/02-Views/0007-Reports-TransitStates.sql IF OBJECT_ID('[Reports].[TransitStates]') IS NULL EXEC('CREATE VIEW [Reports].[TransitStates] AS SELECT 1 AS [NOTHING];') GO ALTER VIEW [Reports].[TransitStates] AS SELECT N.Id AS NotificationId, REPLACE(...
<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 10.2 (Debian 10.2-1.pgdg90+1) -- Dumped by pg_dump version 10.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_func...
<gh_stars>0 select col1 from `parquet_storage/drill4704` where col2=2 and col3=3;
<filename>examples/order-review-appropriateness/RadiologyAppropriateness.cql library Appropriateness version '1.0' using FHIR version '3.0.0' valueset "Extremely Appropriate": 'extremely.appropriate' valueset "Appropriate": 'appropriate' valueset "Probably Appropriate": 'probably.appropriate' valueset "Probably Uncer...
<reponame>xliangwu/com.caveup.machine_learn -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: tbike -- ------------------------------------------------------ -- Server version 8.0.11 -- -- Table structure for table `ike_doc_base_function` -- DROP TABLE IF EXISTS `ike_doc_base...
<filename>persistence/sql/migrations/sql/20210913095309000011_identity_recovery_tokens.cockroach.up.sql ALTER TABLE "identity_recovery_tokens" ALTER COLUMN "identity_id" SET NOT NULL;
<reponame>sapcc/arc -- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE agents ALTER COLUMN tags SET DEFAULT '{}'::jsonb; UPDATE agents SET tags='{}'::jsonb WHERE tags IS NULL; ALTER TABLE agents ALTER COLUMN tags SET NOT NULL; -- +goose Down -- SQL section 'Down' is executed wh...
select * from {{ var('activity_unsubscribe_email') }}
<filename>tests/queries/0_stateless/01665_test_FunctionIPv6StringToNum_mysql_compatibility.sql SELECT INET6_ATON('fc00:db20:35b:7399::5');
use `sharding_seq_opt`; -- try to update the downstream schema before applying any DML alter table t4 add column c3 int; -- at this point: -- t2(id, c1, c2) -- t3(id, c1, c2) -- t4(id, c1, c2, c3) insert into t4 (id, c1, c2, c3) values (500004, '510004', '520004', 530004); insert into t2 (id, c1, c2) va...
<filename>gui/modules/cdr/cdrs.sql -- MySQL dump 10.14 Distrib 5.5.52-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: kamailio -- ------------------------------------------------------ -- Server version 5.5.52-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
-- Tags: no-unbundled, no-fasttest DROP TABLE IF EXISTS h3_indexes; CREATE TABLE h3_indexes (h3_index UInt64) ENGINE = Memory; -- test H3 indexes from: https://github.com/uber/h3-java/blob/master/src/test/java/com/uber/h3core/TestInspection.java#L86 INSERT INTO h3_indexes VALUES (stringToH3('0x85283473fffffffL')); ...
CREATE TABLE {{product}} AS SELECT * FROM {{upstream['load']}} WHERE strftime(purchase_date) > date('2015-01-01')
select id, name, trim(split_part(characteristics, ',', 1)) as characteristic from monsters order by id
/* Navicat MySQL Data Transfer Source Server : MySQL55 Source Server Version : 50523 Source Host : localhost:3399 Source Database : yii2-brainbase Target Server Type : MYSQL Target Server Version : 50523 File Encoding : 65001 Date: 2017-03-14 00:16:18 */ SET FOREIGN_KEY_CHECKS=0; ...
-- @testpoint: opengauss关键字temporary(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor temporary for select * from explain_test order by 1; close temporary; end; --关键字带双引号-成功 start transaction; cursor "temporary" ...
-- @testpoint: 标量类型%rowtype的测试———基本类型测试 --test procedure --标量类型%type的测试———基本类型测试 drop table if exists FVT_PROC_SCALAR_ROWTYPE_table_003; CREATE TABLE FVT_PROC_SCALAR_ROWTYPE_table_003( T1 INT NOT NULL, T2 INTEGER, T3 BIGINT, T4 NUMBER DEFAULT 0.2332, T5 NUMBER(12,2), T6 NUMBER(12,6), T7 BINARY_DOUBLE,...
/* .sql query managed by QueryFirst add-in */ -- designTime - put parameter declarations and design time initialization here -- endDesignTime
DROP TABLE IF EXISTS user; CREATE TABLE user ( id INTEGER PRIMARY KEY AUTOINCEMENT, email TEXT UNIQUE NOT NULL, username TEXT UNIQUE NOT NULL, password TEXT NOT NULL, balance DECIMAL(10,5), created_at TIMESTAMP )
select * from Pracownicy
<reponame>marcalderdelma/curso-delphi-sistema-financeiro<gh_stars>0 /* SISTEMA FINACEIRO */ CREATE DATABASE financeiro; USE financeiro; CREATE TABLE usuario( idusuario INT AUTO_INCREMENT PRIMARY KEY, nome VARCHAR(50) NOT NULL, login VARCHAR(20) NOT NULL, senha VARCHAR(20) NOT NULL, data_cadastro DATE NOT NULL,...
INSERT INTO transactions(transaction_id, user_id, amount, description, created_at, updated_at) VALUES ('7f4d748e-0a53-4121-846e-3c4a307e24ff', 123, 3, 'Lorem ipsum', '2019-11-09 00:00:00.000000', '2019-11-01 00:00:00.000000'), ('6b6b3a4e-6c47-4aab-9bde-0c93138f9a4f', 123, 7, 'Lorem ipsum', '2019-11-11 00:00:00.000000',...
create database dw; use dw; create table f ( code char(4) ,name char(200) ,id_loc int ,id_age int ,id_country int ,salary decimal(5,2) ) engine=ARCHIVE; create table d_loc( id int ,code char(4) ,name char(100) ) engine=ARCHIVE; select d_loc.code, sum(salary) salary from f join d_loc on f.id_loc = d_loc.id...
DROP TABLE IF EXISTS `locations`; CREATE TABLE `locations` ( `loc_id` smallint(5) unsigned NOT NULL DEFAULT '0', `loc_x` mediumint(6) NOT NULL DEFAULT '0', `loc_y` mediumint(6) NOT NULL DEFAULT '0', `loc_zmin` mediumint(6) NOT NULL DEFAULT '0', `loc_zmax` mediumint(6) NOT NULL DEFAULT '0', `proc` tinyint(2)...
<filename>db/base_tables.sql /* this script creates the dummy database for testing purpose */ SET NAMES utf8 ; SET character_set_client = utf8mb4 ; DROP TABLE IF EXISTS `ingredients`; CREATE TABLE `ingredients` ( `ingredient_id` int(10) NOT NULL AUTO_INCREMENT, `ingredient` TEXT(5000), PRIMARY KEY (`ingredient_i...
<reponame>stefanieklogan/Homework12EmployeeTracker USE companyDB; INSERT INTO department (dept_name) VALUES ("Executive Office"), ("Food & Beverage"), ("Support"); INSERT INTO role (role, salary, department_id) VALUES ("Owner", 100000.00, 1), ("Business Manager", 50000.00, 3), ("Bakery Lead", 63000.00, 2), ("Bake...
<filename>queries/stackoverflow/q13/0dbbcb6d7ad71aeb9583527009d4c1f121e95d8b.sql SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s....
<reponame>Evil1991/bitrixdock<filename>www/html/bitrix/modules/search/install/db/mysql/stat_uninstall.sql<gh_stars>1-10 DROP TABLE if exists b_search_phrase;
create or replace function get_images_json_for_album(int) returns jsonb as $$ begin return json_agg(imgs) from (select (form.attributes ->> (shadow.attributes -> 'src' ->> 'ref')) as src, (form.attributes ->> (shadow.attributes -> 'baseUrl' ->> 'ref')) as baseUrl, (form.attribut...
USE [VipunenTK] GO ALTER TABLE [dbo].[f_aloittaneiden_lapaisy] DROP CONSTRAINT [FK_f_aloittaneiden_lapaisy_tavoitekoulutuksen_oppilaitos_d_oppilaitoksen_taustatiedot] GO ALTER TABLE [dbo].[f_aloittaneiden_lapaisy] DROP CONSTRAINT [FK_f_aloittaneiden_lapaisy_tavoitekoulutuksen_d_alueluokitus] GO ALTER TABLE [dbo].[f_...
/* Data for database tables defining legends for the MNcwixsec Well Cross-section drawing program. Tables are defined in xsec_Legend_DDL.sql. Tables and data are incomplete, but are sufficient for running MNcwixsec demonstrations. Attributes correspond with plotting attributes in Python's Matplotlib package. For th...
<reponame>DEFRA/prsd-iws GO PRINT N'Creating [Notification].[NotificationAssessment]...'; GO CREATE TABLE [Notification].[NotificationAssessment] ( [Id] UNIQUEIDENTIFIER NOT NULL, [NotificationApplicationId] UNIQUEIDENTIFIER NOT NULL, [NotificationReceivedDate] DATETIME NULL, [PaymentRecievedD...
<gh_stars>0 DROP DATABASE IF EXISTS `ZilchFilm`; CREATE DATABASE `ZilchFilm`; USE `ZilchFilm`; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `ZilchFilm_index_carousel` -- ---------------------------- DROP TABLE IF EXISTS `ZilchFilm_index_carousel`; CREATE TABLE `ZilchFilm_index_caro...
--Test 5 --Each practice has only one entry in session.sail_gp_data.. declare global temporary table session.Duplicate_alf_test5( alf_e bigint ) with replace on commit preserve ROWS! insert into session.Duplicate_alf_test5 select alf_e from "SAILHNARV"."AR_PERS" fetch first 10000 rows ONLY! ...
<gh_stars>0 create table notificacoes( id_notif serial not null, titulo_notif varchar(100) not null, texto_notif text not null, notificar boolean default FALSE, Primary Key(id_notif) );
select Id, col2 from `/drill/testdata/text_storage/drill4919.tcsv` where col1 like 'c%';
<reponame>AndrewZurn/sju-compsci-archive<gh_stars>0 DROP EVENT IF EXISTS status_event; delimiter && CREATE EVENT status_event ON SCHEDULE EVERY 1 MINUTE Do CALL update_status(); && delimiter ;
select distinct l1.Num as ConsecutiveNums from Logs l1, Logs l2, Logs l3 where l1.Id = l2.Id -1 and l2.Id = l3.Id -1 and l1.Num = l2.Num and l2.Num = l3.Num