sql
stringlengths
6
1.05M
<filename>dbscripts/COLLECTION_4_CRE_CARD_PAYMENT_Update_Status.sql USE [bisolutions_vvcb] GO /****** Object: StoredProcedure [dbo].[COLLECTION_4_CRE_CARD_PAYMENT_Update_Status] Script Date: 27/09/2014 8:38:09 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[COLLECTIO...
<reponame>CoreBuilder/database-vision -- ===================================================================== -- Tabloya ait kolonlardaki null yüzdesi ile tablo ile ilgili row sayısı, -- index_size gibi bilgileri döner -- ===================================================================== SET NOCOUNT ON; DECLARE ...
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Client : localhost:3306 -- Version du serveur : 5.5.38 -- Version de PHP : 5.5.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -------------------------------------------------------- -- -- Structure de la table `...
<reponame>jakubwilkowski/lunch__GraphDB CREATE TABLE movie ( id SERIAL PRIMARY KEY, title text, release integer, tagline text ) CREATE TABLE person ( id SERIAL PRIMARY KEY, name text, born integer ) CREATE TABLE movieperson ( id SERIAL PRIMARY KEY, person_id integer REFERENCES person(id), movie_id integer REFERENCE...
<filename>src/api/v1/Teste/teste.sql SELECT D.NUMERONOTA, D.VALORTOTALCUPOM, D.CNPJCPFCLIENTE, D.EMISSAO FROM DADOSFATURAMENTO D WHERE D.EMISSAO = ? AND D.EXCLUIDO='N' GROUP BY D.NUMERONOTA, D.VALORTOTALCUPOM, D.CNPJCPFCLIENTE, D.EMISSAO ORDER BY D.NUMERONOTA
/** * Name: SELECT_CONFIG.sql * Purpose: Selects from the CONFIG table * Author: <NAME> (forgineer) */ SELECT config_id, config_text, config_value_int, config_value_flt, config_value_txt, config_value_set, user_id, create_dt_tm, create_iso_ts, updt_dt_tm, updt_iso_ts, active_ind FROM CONFIG /* Leaving out semicolon...
<filename>currency-exchange-service/src/main/resources/data.sql INSERT INTO exchange_value(id, currency_from, currency_to , conversion_multiple,port) values(100, 'USD', 'INR', 75,0); INSERT INTO exchange_value(id, currency_from, currency_to , conversion_multiple,port) values(101, 'EUR', 'INR', 95,0); INSERT INTO exchan...
<gh_stars>1-10 BEGIN; ALTER TABLE recipe_note ALTER COLUMN created_at DROP DEFAULT, ALTER COLUMN modified_at DROP DEFAULT; ALTER TABLE recipe_image ALTER COLUMN created_at DROP DEFAULT, ALTER COLUMN modified_at DROP DEFAULT; COMMIT;
-- PostDeploy\ReferenceData\AspNetRoles.sql START GO -- I drop the temporary table #TMP if it exists. IF OBJECT_ID('tempdb..#TMP') IS NOT NULL DROP TABLE #TMP GO -- I copy the schema of the source table into #TMP. SELECT * INTO #TMP FROM [dbo].[AspNetRoles] WHERE 1 = 0 INSERT INTO #TMP ([Id], [Name]) ...
-- script to agg curves stats DROP TABLE IF EXISTS psra_bc.psra_bc5920a2_agg_curves_stats_b0, psra_bc.psra_bc5920a2_agg_curves_stats_r2, psra_bc.psra_bc5920a2_agg_curves_stats CASCADE; -- create table CREATE TABLE psra_bc.psra_bc5920a2_agg_curves_stats_b0( return_period varchar, stat varchar, loss_type varchar, fsauid...
-- https://www.hackerrank.com/challenges/the-blunder/problem SELECT CEIL(AVG(Salary) - AVG(REPLACE(Salary, '0', ''))) FROM Employees;
<filename>migrations/20210315170243_add_location_column.down.sql ALTER TABLE orders DROP COLUMN location;
<reponame>aliostad/deep-learning-lang-detection USE [NavIntegrationDB] GO /****** Object: Default [DF_SwitchFeeHistory_Per_Switch_Fee] Script Date: 02/13/2012 17:15:04 ******/ ALTER TABLE [dbo].[SwitchFeeHistory] ADD CONSTRAINT [DF_SwitchFeeHistory_Per_Switch_Fee] DEFAULT ((0)) FOR [Per_Switch_Fee] GO
<filename>data/test/sql/e7ae7cd967d483837fb367c5810ffa02b9411477UserReadFeedItem.sql create table dbo.UserReadFeedItem ( Id int identity(1, 1) not null, UserAccountId int not null, FeedItemId int not null, DateCreated datetime2 not null, constraint PK_UserReadFeedItem primary key clustered ( Id asc ), ...
DROP TRIGGER IF EXISTS check_insert; DROP TRIGGER IF EXISTS check_update; DROP TRIGGER IF EXISTS check_rfinsert; DROP TRIGGER IF EXISTS check_rfupdate; DROP TRIGGER IF EXISTS insert_search; DROP TRIGGER IF EXISTS update_search; DROP TRIGGER IF EXISTS delete_search; DROP TRIGGER IF EXISTS insert_hashes; DROP TRIGGER IF ...
<filename>backend/de.metas.handlingunits.base/src/main/sql/postgresql/system/5575990_sys_gh10446_M_HU_Reservation_C_ProjectLine_ID.sql -- 2021-01-11T14:13:54.015Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD...
CREATE TABLE log_alts ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES users(id), alt_a INTEGER NOT NULL REFERENCES posts(id), alt_b INTEGER REFERENCES posts(id), timestamp TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP );
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 2.11.9.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 16, 2015 at 05:02 AM -- Server version: 5.0.67 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
<filename>WNPRC_EHR/resources/queries/study/bloodSummary.sql /* * Copyright (c) 2010-2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ SELECT bq.lsid, bq.id, bq.date, bq.minDate, -- bq.maxDate, bq.weight, bq.lastWeighDate, ...
CREATE TABLE IF NOT EXISTS metrics ( date DATE NOT NULL DEFAULT CURRENT_DATE, event TEXT NOT NULL, region TEXT NOT NULL, value INT DEFAULT 0, PRIMARY KEY (date, event, region) );
/* This script deletes any duplicate metering point records in the MeteringPoint table (based on MeteringPointId) It ensures that the one metering point that has Charge Links is kept. Note: It has been verified that it is only possible to link a Charge to a metering point while there is no metering point duplicates in...
<gh_stars>0 -- Used to baseline V1.0 -- tables used by spring security DROP TABLE IF EXISTS users; CREATE TABLE users ( username varchar(256), password varchar(256), enabled boolean ); DROP TABLE IF EXISTS authorities; create table authorities ( username varchar(256), authority varchar(256) ); --...
-- @testpoint:opengauss关键字matched非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists matched; create sequence matched start 100 cache 50; drop sequence matched; --关键字带双引号-成功 drop sequence if exists "matched"; create sequence "matched" start 100 cache 50; drop sequence "matched"; --关键字带单引号-合理报错 drop sequence if exists ...
<reponame>mahfuz978/SQL<gh_stars>0 /*1. Write a query to find the manager ID and the salary of the lowest-paid employee for that manager.*/ SELECT CONCAT(first_name, ' ', last_name) AS Name, manager_id, salary FROM employees ORDER BY salary LIMIT 1; /*2. Write a query to get the average salary for eac...
<reponame>gayong11/interview -- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: interview -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
<gh_stars>0 use kutuphane -- Sayfa sayısı en fazla olan kitaba ait bilgileri listeleyen İç İçe Select sorgusu select * from kitap where sayfasayisi in (select max(sayfasayisi) from kitap) -- Sayfa sayısı ortalama sayfa sayısından küçük olan kitapları listeleyen Sorgu select * from kitap where sayfasa...
<filename>Table Relations/5.sql<gh_stars>0 --5 USE [Table Relations] GO CREATE TABLE [ItemTypes] ( [ItemTypeID] int PRIMARY KEY IDENTITY NOT NULL, [Name] varchar(50) NOT NULL, ) CREATE TABLE [Items] ( [ItemID] int PRIMARY KEY IDENTITY NOT NULL, [Name] varchar(50) NOT NULL, [ItemTypeID] int FOREIGN KEY REFER...
<reponame>mariosker/databases-project-NTUA<gh_stars>0 INSERT INTO `products`(`store_brand`, `category`, `product_name`) VALUES (TRUE, 'Φρέσκα Προϊόντα', 'Τομάτες Χύμα Ελληνικές'), (FALSE, 'Φρέσκα Προϊόντα', 'Κολοκύθια Ελληνικά'), (FALSE, 'Φρέσκα Προϊόντα', 'Καρότα Χύμα Ελληνικά'), (TRUE, 'Φρέσκα Προϊόντα', 'Μπανάνες Ca...
1. select "Service".name, "Material".name from "materialsInOrder" inner join "Material" on material_id = "Material".id inner join "Service" on service_id = "Service".id order by "Service".name asc; 2. select "Service".name, count(material_id) from "materialsInOrder" inner join "Service" on "Service".id = service_i...
<gh_stars>0 CREATE TABLE _table_main(_id_table INTEGER PRIMARY KEY AUTOINCREMENT ,_table_id Text not null ,_table_Name Text not null ,_table_date Text not null ,_table_json Text not null ,_table_Gps Text not null ,_table_photo Text not null ,_table_status Text not null ,_delete_flag Text not null, imei Text not null )...
<reponame>BlueDress/School<gh_stars>0 update Chats set StartDate = (select min(m.SentOn) from Chats as c inner join Messages as m on c.Id = m.ChatId where c.Id = Chats.Id ) where Chats.Id in (select c.Id from Chats as c inner join Messages as m on c.Id = m.ChatId group by c.Id, c.StartDate having c.StartDate > min(m....
<reponame>tonussi/bd-organograma<gh_stars>1-10 -- codorc references orcamento (id) alter table orcamentosmateriais add constraint codorc_fkey foreign key (codorc) references orcamento (id); -- codmat references material (id) alter table orcamentosmateriais add constraint codmat_fkey foreign key (codmat) references mate...
<reponame>samanthasengsouvanh/employee-mgmt-system -- seed is used to prepopulate the table use employee_db; -- populate departments INSERT INTO departments (department_name) VALUES ("Finance"), ("Operations Management"), ("Human Resources"), ("Marketing"), ("IT"); -- populate employee_roles INSERT INTO employee_role...
COPY ( SELECT pd.id ,pd.created ,pd.modified ,'[deleted]' AS title ,'[deleted]' AS full_name -- remove last two characters of postcode so as to not uniquely ID anyone ,left(replace(upper(pd.postcode), ' ', ''), -2) AS postcode ,'[deleted]' AS street ,'...
-- Deploy tupa:sensors to pg BEGIN; CREATE TABLE sensor_source ( id SERIAL PRIMARY KEY, name TEXT UNIQUE NOT NULL, created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now() ); CREATE TABLE sensor ( id SERIAL PRIMARY KEY, source_id INTEGER REFERENCES sensor_source(id) NOT NULL, name TEXT UNIQUE NOT ...
ALTER TABLE [dbo].[ZFC_NAVIGATION_TYPES] ADD CONSTRAINT [FK_ZFC_NAVIGATION_TYPES_ZFC_NVP] FOREIGN KEY ([NVP_SEQ_ID]) REFERENCES [dbo].[ZFC_NVP] ([NVP_SEQ_ID]) ON DELETE CASCADE ON UPDATE CASCADE;
<reponame>Shuttl-Tech/antlr_psql -- file:triggers.sql ln:341 expect:true CREATE FUNCTION dummy_update_func() RETURNS trigger AS $$ BEGIN RAISE NOTICE 'dummy_update_func(%) called: action = %, old = %, new = %', TG_ARGV[0], TG_OP, OLD, NEW
<gh_stars>0 -- V�rification de l'utilisation m�moire SELECT object_name, counter_name, cntr_value FROM sys.dm_os_performance_counters WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] in ('Page life expectancy','Free list stalls/sec', 'Page reads/sec') -- Page Life Expectancy: It�s Lifetime of ...
CREATE DATABASE IF NOT EXISTS `eladmin` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; -- ---------------------------- -- Table structure for code_column_config -- ---------------------------- DROP TABLE IF EXISTS `code_column_config`; CREATE TABLE `code_column_config` ( `column_id` bigint(20) NOT NULL A...
use taller3; CREATE TABLE IF NOT EXISTS `users`( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` varchar(255) NOT NULL UNIQUE, `email` varchar(255) NOT NULL UNIQUE, `password` varchar(255) NOT NULL, `created_at` datetime default NOW(), `updated_at` datetime default NOW(), PRIMARY KEY (`...
-- // BUG-109647_remove_publicinaccount -- Migration SQL that makes the change goes here. ALTER TABLE blueprint DROP COLUMN IF EXISTS publicinaccount; ALTER TABLE clustertemplate DROP COLUMN IF EXISTS publicinaccount; ALTER TABLE constrainttemplate DROP COLUMN IF EXISTS publicinaccount; ALTER TABLE credential DROP COL...
<reponame>tonic889/mifosx ALTER TABLE `m_loan_repayment_schedule` ADD COLUMN `accrual_interest_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `interest_waived_derived`, ADD COLUMN `accrual_fee_charges_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `fee_charges_waived_derived`, ADD COLUMN `accrual_penalty_charges_der...
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func643.sql CREATE FUNCTION func643() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE176);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE308);val:=(SELE...
-- quality management alter table o_qual_context add q_location varchar(1024); create table o_qual_analysis_presentation ( id bigserial, creationdate timestamp not null, lastmodified timestamp not null, q_name varchar(256), q_analysis_segment varchar(100), q_search_params text, q_heatmap_grouping ...
<gh_stars>1-10 -- SELECT DISTINCT scaffold.id AS scafid, scaffold.smiles AS scafsmi, scaffold.natoms, compound.id AS cid FROM scaffold JOIN scafid2cid ON (scaffold.id=scafid2cid.scaffold_id) JOIN compound ON (compound.id=scafid2cid.compound_id) WHERE scafid2cid.i...
-- discids linked to releases where track 20 do not share the same recording -- track 1 2020-05: 3775 -- track 20 2020-05: 500 -- track 30 2020-05: 95 -- track 8 2021-01-13: 3009 WITH toc AS ( SELECT c.id, c.discid FROM cdtoc AS c INNER JOIN medium_cdtoc ON c.id = medium_cdtoc.cdtoc ...
<reponame>fre5/postgres_rest_api<gh_stars>0 CREATE TABLE order_products (id SERIAL PRIMARY KEY, quantity integer, order_id bigint REFERENCES orders(id), product_id bigint REFERENCES products(id));
-- *************************************************************************** -- File: 9_2.sql -- -- Developed By TUSC -- -- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant -- that this source code is error-free. If any errors are -- found in this source code, please repor...
DROP PROCEDURE IF EXISTS bookmark_add; DELIMITER ;; CREATE DEFINER=web@localhost PROCEDURE bookmark_add(IN $uid INT, IN $nid INT) COMMENT 'add a bookmark' BEGIN DECLARE $count INT DEFAULT NULL; SELECT COUNT(*) INTO $count FROM bookmarks WHERE uid=$uid AND nid=$nid; IF $count = 0 THEN INSERT INTO bookmarks (u...
-- rambler up ALTER TABLE files ALTER COLUMN sha1 DROP NOT NULL; -- rambler down ALTER TABLE files ALTER COLUMN sha1 SET NOT NULL;
<gh_stars>1-10 -- This file has been generated by an Xomega.Net generator. -- Please DO NOT EDIT it manually. Instead update the underlying model and regenerate this file. -- Otherwise your changes will be lost after this file is regenerated.
<reponame>ramjikanaujia/HackerRank-SQL-Challenges-Solutions<gh_stars>1-10 # Author: <NAME> select city,State from station;
-- file:update.sql ln:5 expect:true CREATE TABLE update_test ( a INT DEFAULT 10, b INT, c TEXT )
SELECT nsp.nspname AS schema, rel.relname AS table FROM pg_class rel JOIN pg_namespace nsp ON rel.relnamespace = nsp.oid::oid WHERE rel.oid = {{tid}}::oid
# category table CREATE TABLE category ( parent_id UUID, category_id UUID, name TEXT, image TEXT, products LIST<TEXT>, PRIMARY KEY (parent_id,category_id)); # price table CREATE TABLE price ( product_id TEXT, store_id TEXT, value DECIMAL, PRIMARY KEY(product_id,store_id)); # product ta...
select count(distinct SS_PROMO_SK) from store_sales;
<reponame>cintiaasilva/orange-talents-05-template-casa-do-codigo<filename>src/main/resources/data.sql INSERT INTO AUTOR(nome, email, descricao) VALUES('Cintia', '<EMAIL>', 'Amo escrever livros de terror'); INSERT INTO AUTOR(nome, email, descricao) VALUES('Gabriel', '<EMAIL>', 'Amo escrever livros de Ação'); INSERT INTO...
ALTER TABLE DB.ODCLEANSTORE.ONTOLOGIES ADD definition LONG NVARCHAR;
<gh_stars>1-10 /* contrib/spi/insert_username--unpackaged--1.0.sql */ ALTER EXTENSION insert_username ADD function insert_username();
<filename>02UseCases/UseCasesDocs/Queries/4.6FileBased.sql -- 4.6 FileBased /* This query shows file-based references, their attributes, units, object names, and instances, and data source for all the parameters in WaM-DaM Result: users can uses these files in their models or as a reference for more details */ ...
--[er]insert data into set column with unmatched TYPE CREATE CLASS ddl_0001( col1 SET(integer) ); insert into ddl_0001 values({'a'}); drop ddl_0001;
autocommit off; alter class joe.db_user add attribute age integer; rollback work; rollback;
<reponame>Fabio-Morais/Green-Ponic<gh_stars>0 -- schema to ESTUFA -- SET search_path TO estufa; /*definir o fuso horario*/ SET TIME ZONE 'UTC-1'; /* ****inserir valores defaults**** */ -- INSERIR DIVISAO-- INSERT INTO divisao (nome, indice, num_mots) VALUES ('exterior', 0, 1), ('alfaces', 1, ...
<gh_stars>0 -------------------------------------------------------------------------------- -- AddVerificationCode --------------------------------------------------------- -------------------------------------------------------------------------------- CREATE OR REPLACE FUNCTION AddVerificationCode ( pUserId ...
<filename>C#DbFundamentals/C#DB Basics/Data Definition/08. Create Table Users.sql CREATE TABLE Users( Id BIGINT PRIMARY KEY IDENTITY, Username varchar(30) NOT NULL, Password varchar(26) NOT NULL, ProfilePicture BINARY, LastLoginTime TIME, IsDeleted BIT ) INSERT INTO Users(Username,Password,ProfilePicture,LastLogin...
<gh_stars>0 --SELECT "AirlineSentiment_3"."TOPIC" AS "TOPIC" FROM "AirlineSentiment_3" GROUP BY 1 ORDER BY "TOPIC" ASC;
ALTER TABLE `usuario` ADD COLUMN `tipo_usuario` ENUM('ROLE_ADMIN', 'ROLE_USUARIO') NOT NULL AFTER `loja_id`; ALTER TABLE `loja` ADD COLUMN `data_cadastro` DATE NOT NULL AFTER `contato`, ADD COLUMN `data_atualizacao` DATE NULL AFTER `data_cadastro`; ALTER TABLE `usuario` CHANGE COLUMN `loja_id` `loja_id` INT(11) NO...
<reponame>shelvi31/MYSQL-Experiments -- ques: The total score of a hacker is the sum of their maximum scores for all of the challenges. -- Write a query to print the hacker_id, name, and total score of the hackers ordered by the descending score. -- If more than one hacker achieved the same total score, -- then sort...
<reponame>Soumya-Dey/PL-SQL-programs create table student( s_id int, s_first_name varchar(255), s_last_name varchar(255), primary key(s_id) );
<reponame>MacherIT/fiblo<gh_stars>1-10 insert into usuarios ("email", "nombre", "address", "activation", "hash", "createdAt", "updatedAt") values ('<EMAIL>', 'Creador Proyectos', '{}', '<KEY>', '36e7580a11a1dc893914df17f94e39495450295d86a85a082e6099b890e5c8bd127e7c7e0b595acf3c7f0d2e07eb736945d7731e8718b4f5b297b30c93e6e...
<gh_stars>1-10 INSERT INTO `hCalendarCategories` ( `hCalendarCategoryId`, `hCalendarCategoryName` ) VALUES (1, 'Press Release'), (2, 'Events'), (3, 'Blog'), (4, 'Newsletter'), (5, 'News'), (6, 'Jobs');
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; CREATE DATABASE IF NOT EXISTS `license`; USE `license`; DROP TABLE IF EXISTS `licenses`; CREATE TABLE `licenses` ( `key` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `moderator` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `tim...
CREATE TABLE member ( id SERIAL PRIMARY KEY, user_id integer NOT NULL REFERENCES users, member_number integer NOT NULL UNIQUE, created_date TIMESTAMP NOT NULL); INSERT INTO member (user_id, member_number, created_date) SELECT id, member_number, created_date FROM USERS; ALTER TABLE users DROP COLUMN member_...
-- +migrate Up -- +migrate StatementBegin ALTER TABLE comment ADD COLUMN is_pinned TINYINT(1) NOT NULL DEFAULT 0; -- +migrate StatementEnd
-- there are two types of intake extaction: plain intake and real time. -- we extract intake both ways and then we add them, in the end we combine mv and cv prioritizing metavision data -- -- # About real time intake extraction: -- This query extracts Real-time input from metavision MIMICIII on the first 24 hrs of admi...
<reponame>jacopotagliabue/paas-data-ingestion<filename>dbt/macros/models/events/select_logs.sql {% macro select_logs(from_date=False, to_date=False, alias='logs', materialized='view') -%} {{- config( alias=alias, cluster_by=['TO_DATE(request_timestamp)'], materialized=ma...
CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(32) NOT NULL, twitter_id VARCHAR(32) NOT NULL, oauth_token VARCHAR(255) NOT NULL, oauth_secret VARCHAR(255) NOT NULL ); CREATE TYPE tweet_status AS ENUM ('DRAFT', 'PLANNED', 'SENDED'); CREATE TABLE tweets ( id SERIAL PRIMARY KEY, ...
<reponame>almope/process-migration-service<filename>ddl-scripts/db2/db2-pim-drop-schema.sql<gh_stars>0 drop table migration_report_logs; drop table migration_reports; drop table migrations; drop table plan_mappings; drop table plans; drop table process_instance_ids; drop sequence MIG_REP_ID_SEQ restrict; drop sequence ...
<gh_stars>1-10 -- begin YETDEMO_SUBSCRIPTION alter table YETDEMO_SUBSCRIPTION add constraint FK_YETDEMO_SUBSCRIPTION_CUSTOMER foreign key (CUSTOMER_ID) references YETDEMO_CUSTOMER(ID)^ create index IDX_YETDEMO_SUBSCRIPTION_CUSTOMER on YETDEMO_SUBSCRIPTION (CUSTOMER_ID)^ -- end YETDEMO_SUBSCRIPTION
-- 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. -- uses 11g LISTAGG() function -- on 10g, comement out LISTAGG or implement this idea properly: -- http://www.williamrobertson.net/documents/on...
<filename>spring-integration-jdbc/src/test/resources/h2-stored-procedures.sql CREATE ALIAS IF NOT EXISTS GET_PRIME_NUMBERS FOR "org.springframework.integration.jdbc.storedproc.h2.H2StoredProcedures.getPrimes" CREATE ALIAS IF NOT EXISTS GET_RANDOM_NUMBER FOR "org.springframework.integration.jdbc.storedproc.h2.H2StoredPr...
<gh_stars>10-100 drop database if exists metabase; create database metabase; \c metabase create role metabase with password '<PASSWORD>' login noinherit; grant all on database metabase to metabase; \c objectiv grant select on table objectiv.public.data to metabase; grant temporary on database objectiv to metabase;
CREATE TABLE `datetime` ( `ref` INT NOT NULL, `pk` DATETIME(6) NOT NULL, `uk` TIMESTAMP(3) NOT NULL, PRIMARY KEY(`pk`), UNIQUE KEY(`uk`) );
<filename>SQL/2.0.04/3) Observations.2.0.0.4.publish.sql /* Deployment script for Observations This code was generated by a tool. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. */ GO SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOT...
SELECT * FROM t_m_p INNER JOIN t_proj ON t_m_p.id = t_proj.id; SELECT * FROM t_m_p NATURAL JOIN t_proj;
ALTER TABLE `crm_insurance_quotes` ADD `quote_date` DATE NOT NULL AFTER `status` ;ALTER TABLE `crm_insurance_quotes` ADD `quote_date` DATE NOT NULL AFTER `status` ; ALTER TABLE `crm_insurance_quotes` ADD `idv_2` varchar( 10 ) NULL DEFAULT NULL AFTER `idv` ; ALTER TABLE `crm_insurance_quotes` ADD `idv_3` varchar( 10 )...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 07, 2019 at 05:47 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 23, 2021 at 01:47 PM -- Server version: 5.7.24 -- PHP Version: 7.3.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
create table Persons( id SMALLSERIAL primary key, identification varchar(25), fullname varchar(300) not null, birth date not null, gender char(1) not null ); create table Children( id SMALLSERIAL primary key, fatherId int not null, motherId int not null, childId int not null, ...
<gh_stars>0 -- 创建表结构 -- -- 档案存储系统和医疗存储系统使用同一套表结构 -- -- 2020-03-20 -- 文件信息表 -- -- 这个表一行数据需要的空间: -- 8+4+32+3840+32+256+4+4+10+4+32+2+8+8+8+8+80=4340,考虑容错增大一倍 -- 为 8192。 -- -- 8192*1000万=8192*10MB=81920MB=82GB -- 8192*5000万=8192*50MB=409600MB=410GB -- 8192*1亿=8192*100MB=819200MB=820GB -- 8192*5亿=8192*500MB=4096000MB=4096...
<filename>INFO/Books Codes/Oracle9i PLSQL Programming/ch07/UserDefined.sql REM UserDefined.sql REM Chapter 7, Oracle9i PL/SQL Programming by <NAME> REM This example illustrates user defined exceptions. -- This block may raise the exception, but does not handle it. DECLARE -- Exception to indicate an error condition ...
<reponame>wingyy-tt/DbTestMonkey<gh_stars>1-10 CREATE PROCEDURE [dbo].[TestProcedure1] AS SELECT * FROM [$(TestDatabase2)].dbo.TestTable; RETURN 0
-- Email template INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES ('bx_dolcon', '_bx_dolcon_et_password_generated', 'bx_dolcon_password_generated', '_bx_dolcon_et_password_generated_subject', '_bx_dolcon_et_password_generated_body'); -- Auth objects INSERT INTO `sys_obje...
<filename>data/ro/postgres/subdivisions_SE.postgres.sql CREATE TABLE subdivision_SE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_SE" ("id", "name", "level") VALUES (E'SE-K', E'Blekinge län', E'county'); INSERT INTO "subdivision_SE" ("id", "name", "l...
INSERT OR :method INTO channels ( channel_id, channel_name, channel_profile_url, download_profile ) VALUES (?, ?, ?, ?);
drop table if exists MB_BATCH_OPEN_DETAILS; /*==============================================================*/ /* Table: MB_BATCH_OPEN_DETAILS */ /*==============================================================*/ create table MB_BATCH_OPEN_DETAILS ( BATCH_NO varchar(50) not...
-- +micrate Up CREATE TABLE ysbooks ( id bigserial primary key, nvinfo_id bigint not null default 0, btitle text not null default '', author text not null default '', voters int not null default 0, scores int not null default 0, -- book info utime bigint not null default 0, stime bigint not null ...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost -- Üretim Zamanı: 02 Kas 2021, 18:42:51 -- Sunucu sürümü: 8.0.17 -- PHP Sürümü: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
create or replace view flow_p0013_step_log_vw as select lgsf.lgsf_prcs_id , lgsf.lgsf_objt_id , lgsf.lgsf_sbfl_id , lgsf.lgsf_sbfl_process_level , lgsf.lgsf_last_completed , lgsf.lgsf_status_when_complete , lgsf.lgsf_was_current at time zone sessiontimezone as lgsf_was_curren...
<reponame>WarriorFromLongAgo/xuegao_Spring_Boot_Demo<filename>springboot_tool/doc/我自己的SQL脚本.sql create database if not exists local; use local; DROP TABLE IF EXISTS sys_userinfo; create table sys_userinfo ( `id` bigint(20) AUTO_INCREMENT NOT NULL comment '主键', `userCode` bigint(20) ...