sql
stringlengths
6
1.05M
CREATE TABLE "ENTITY_A" ( "ID" NUMBER(9,0) NOT NULL, "NAME" VARCHAR2(16 BYTE) NOT NULL, "ENTITY_B_ID" NUMBER(9,0), "CREATED_ON" DATE, "CREATED_BY" VARCHAR2(16 BYTE), "UPDATED_ON" DATE, "UPDATED_BY" VARCHAR2(16 BYTE), "VERSION" NUMBER(9,0), CONSTRAINT "ENTITY_A_PK" PRIMARY KEY ("ID") USING INDEX, CONST...
-- +++ -- parent: 1000000014 -- +++ BEGIN; ALTER TABLE dashboard ADD COLUMN IF NOT EXISTS save BOOLEAN NOT NULL DEFAULT FALSE; COMMENT ON COLUMN dashboard.save IS 'TEMPORARY Do not delete this dashboard when migrating settings.'; COMMIT;
<reponame>lj1024/flow --创建序列 DROP TABLE IF EXISTS sequence; CREATE TABLE sequence ( name VARCHAR(50) NOT NULL, current_value INT NOT NULL, increment INT NOT NULL DEFAULT 1, PRIMARY KEY (name) ) ENGINE=InnoDB; DROP FUNCTION IF EXISTS currval; DELIMITER $ CREATE FUNCTION currval (seq_name VA...
ALTER DATABASE jjain2 CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS portfolio; DROP TABLE IF EXISTS coin; DROP TABLE IF EXISTS `user`; CREATE TABLE user ( userId BINARY(16) NOT NULL, userName VARCHAR(32) NOT NULL, userEmail VARCHAR(128) NOT NULL, userSettings VARCHAR(128) NOT NULL, userSupport...
/* [df:title] Non Entity OutsideSql (Simple) [df:description] simple file name */ select mb.MEMBER_ID , mb.MEMBER_NAME from `MEMBER` mb left outer join MEMBER_STATUS stat on mb.MEMBER_STATUS_CODE = stat.MEMBER_STATUS_CODE /*BEGIN*/where /*IF pmb.memberId != null*/mb.MEMBER_ID = /...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: richa -- Create date: 2012-07-02 -- Description: Insert user access descriptor -- ============================================= USE IndexDatastore; IF OBJECT_ID('dbo.UserAccess_InsertUserAccess') IS N...
CREATE TABLE company ( id integer NOT NULL, name character varying, CONSTRAINT company_pkey PRIMARY KEY (id) ); CREATE TABLE person ( id integer NOT NULL, name character varying, company_id integer, CONSTRAINT person_pkey PRIMARY KEY (id) ); insert into company(id, name) values (1, 'Epam'); insert into company(id, na...
<gh_stars>10-100 -- Create table order if not exists CREATE TABLE IF NOT EXISTS orders( id SERIAL PRIMARY KEY, item_id integer NOT NULL, quantity integer NOT NULL, created_at timestamp NOT NULL DEFAULT current_timestamp, updated_at timestamp NOT NULL DEFAULT current_timestamp, deleted_at timestamp );
-- 1. Aggregate with a drop and recompute logic CREATE OR REPLACE TABLE {{.scratch_schema}}.session_goals_staged{{.entropy}} AS ( WITH goals AS ( SELECT sv.session_id, LOGICAL_OR(sv.screen_view_name = 'registration') AS has_started_registration, LOGICAL_OR(sv.screen_view_name = 'my_account') ...
<filename>database/migrations/postgres/1571398112_add_eks_logtypes.up.sql ALTER TABLE "amazon_eks_clusters" ADD COLUMN "log_types" json;
<filename>tests/queries/0_stateless/01504_rocksdb.sql<gh_stars>1000+ -- Tags: no-ordinary-database, no-fasttest -- Tag no-ordinary-database: Sometimes cannot lock file most likely due to concurrent or adjacent tests, but we don't care how it works in Ordinary database -- Tag no-fasttest: In fasttest, ENABLE_LIBRARIES=0...
<reponame>TheWizardAndTheWyrd/ArcanaERP<filename>ArcanaErp.Database/dbo/Tables/WebSites.sql<gh_stars>0 CREATE TABLE [dbo].[WebSites] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] VARCHAR (255) NULL, [Title] VARCHAR (255) NULL, [SubTitle] VARC...
<filename>data/ajustes/create_table_ajuste.sql /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: mica * Created: 26-sep-2018 */ create table ajuste( id integer not nu...
-- Function returning indexes for a table CREATE OR REPLACE FUNCTION @extschema@.CDB_TableIndexes(REGCLASS) RETURNS TABLE(index_name name, index_unique bool, index_primary bool, index_keys text array) AS $$ SELECT pg_class.relname as index_name, idx.indisunique as index_unique, idx.indisprimary as ...
/* creates JSONB representation of simplified booking * type passenger_record should be created PRIOR to this script run * see types subdirectory */ CREATE TYPE booking_leg_record_2 AS (booking_leg_id integer, leg_num integer, booking_id integer, flight flight_record); --create simplified booking type CREATE TYPE...
-- test delete drop table if exists t1; create table t1 (c1 int) with (storage_type=USTORE); start transaction; insert into t1(c1) values(1); insert into t1(c1) values(2); commit; select * from t1; start transaction; delete from t1 where c1 = 1; commit; select * from t1; drop table if exists t2; create table t2 (c1 i...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 20 Feb 2021 pada 02.25 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<reponame>learn2j-code/xupu-seo<filename>doc/seo_manage.sql /* Navicat MySQL Data Transfer Source Server : 192.168.3.11 Source Server Version : 50717 Source Host : 192.168.3.11:3306 Source Database : seo_manage Target Server Type : MYSQL Target Server Version : 50717 File Encoding...
<reponame>davistr/employee-tracker DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; -- DROP TABLE IF EXISTS employee; -- DROP TABLE IF EXISTS job_role; -- DROP TABLE IF EXISTS department; CREATE TABLE department ( id INTEGER AUTO_INCREMENT PRIMARY KEY, ...
UPDATE drugcode d INNER JOIN drug_unit du ON du.Name = d.unit AND du.ccc_store_sp = {destination_store_id} SET d.unit = du.id WHERE d.ccc_store_sp = {destination_store_id}// UPDATE drugcode d INNER JOIN generic_name g ON g.name = d.generic_name AND g.ccc_store_sp = {destination_store_id} SET d.generic_name = g.id WHER...
prompt --application/shared_components/navigation/lists/navigation_bar begin -- Manifest -- LIST: Navigation Bar -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.6' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id=>401 ,p_default_id_offset=...
<filename>db/tables/agency.sql DROP TABLE IF EXISTS agency; CREATE TABLE agency ( agency_id int NOT NULL AUTO_INCREMENT, code varchar(255), name varchar(255), details varchar(255), user_id int, create_by varchar(255), create_date datetime, update_by varchar(25...
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES (E'ab', E'abxaz'); INSERT INTO "list" ("id", "value") VALUES (E'ada', E'adangme dili'); INSERT INTO "list" ("id", "value") VALUES (E'ady', E'aduge dili'); INSERT INTO "list" ("id", "value"...
alter table layer add background char(1) default '0' not null check (background in ('1', '0'));
CREATE TABLE eg_language ( id BIGINT NOT NULL, name CHARACTER VARYING(100) NOT NULL, description CHARACTER VARYING(250), active BOOLEAN NOT NULL, tenantId CHARACTER VARYING(250) NOT NULL, CONSTRAINT pk_eg_language PRIMARY KEY (id), CONSTRAINT uk_eg_language_name UNIQUE (name) ); CREATE SEQUENCE seq_eg_language...
ALTER TABLE legacy_data DROP CONSTRAINT legacy_data_visit_id_lead_person_id_key; -- In sybase you must drop a column and then recreate it to remove NOT NULL ALTER TABLE legacy_data DROP lead_person_id; ALTER TABLE legacy_data ADD COLUMN lead_person_id integer;
CREATE TABLE IF NOT EXISTS background_tasks ( id SERIAL PRIMARY KEY, task TEXT NOT NULL, params JSON NOT NULL, start_ts BIGINT NOT NULL, end_ts BIGINT NULL );
<filename>tk-lm/impl/src/test/config/sql/ClockLocationRuleServiceImplTest.sql -- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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...
<reponame>DekToper/FakeTelegram -- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 05/20/2020 18:42:15 -- Generated from EDMX file: C:\Users\Діма\source\repos\WpfApp11\Serve...
CREATE OR REPLACE VIEW list_scratchpad_lists AS SELECT s.id, s.title, s.description, s.entity, s.website_id, s.expires_on FROM scratchpad_lists s WHERE s.deleted = false; CREATE OR REPLACE VIEW list_scratchpad_list_entries AS SELECT e.id, s.entity, e.scratchpad_list_id, e.entry_i...
<filename>Four2One/Four2One/Scripts/DBUpdate/1008/1423_DO_Create_Table_PatientMilestone.sql<gh_stars>0 IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PatientMilestone]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[PatientMilestone]( [id] [int] IDENTITY(1,1) NOT NULL, [PatientMasterV...
-- MySQL dump 10.13 Distrib 8.0.15, for osx10.14 (x86_64) -- -- Host: localhost Database: drseven -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
CREATE OR REPLACE VIEW v_Student AS SELECT name_0.id AS att1, name_0.name AS name FROM ( SELECT ca_0.individual AS x1 FROM concept_assertion ca_0 WHERE ca_0.concept=72 UNION SELECT ca_0.individual AS x1 FROM concept_assertion ca_0 WHERE ca_0.concept=58 UNION SELECT ca_0.individual AS x1 FROM concept_assertion ca_...
<reponame>tsqlog/tsqlog set nocount on if not exists (select 1 from sys.schemas where name = 'tlog_core') begin print 'utc_time:' + convert(varchar(23), getutcdate(), 121) + ';time:' + convert(varchar(23),getdate(),121) + ';db:' + db_name() + ';user:' + suser_sname() + ';msg: creating schema tlog_core' --- exec('cre...
CREATE FUNCTION func742() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE160);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE8);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE113);val:=(SELECT COUNT(*)INTO MYCOUNT...
<filename>output/sql/broken_sets.sql select sfmn.full_name , lrs.rune_set_name , lrs.rune_set_effect , lrs.pieces_required , count(sxr.rune_id) as 'count' from swex_runes sxr join swex_unit_list as sxul on sxr.occupied_id = sxul.unit_id left join swarfarm_monster_names as sfmn on sxul.com2us_id = sfmn.com2us_id left ...
-- MySQL dump 10.13 Distrib 5.5.34, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: mangos -- ------------------------------------------------------ -- Server version 5.5.34-0ubuntu0.13.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
<reponame>gridgentoo/gpdb -- these triggers are dedicated to HPHC of RI who -- decided that my kid's name was william not willem, and -- vigorously resisted all efforts at correction. they have -- since gone bankrupt... CREATE FUNCTION users_insert() returns trigger AS 'if TD["new"]["fname"] == None or TD["new"]["ln...
select * from test;
<gh_stars>0 USE `b5v18qhbxwrkzyx1`; DROP TABLE IF EXISTS `tacos`; CREATE TABLE `tacos` ( id INTEGER(10) auto_increment NOT NULL PRIMARY KEY UNIQUE, taco_name VARCHAR(100), devoured BOOLEAN, createdAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); SELECT * FROM `tacos`;
-- Supports all datatypes of postgresql (https://www.postgresql.org/docs/9.6/static/datatype.html) -- We don't support any user custom datatypes. DROP TABLE supported_datatypes; CREATE TABLE supported_datatypes ( -- Integer type col_bigint int8, col_bigserial bigserial, col_integer int, col_interval ...
<reponame>hellomustaq/twcoffice<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 21, 2020 at 06:37 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; S...
<reponame>RodrigoPasini/SQL-Server<filename>Sistema de Estacionamento/Procedure1.sql use Estacionamento GO CREATE PROCEDURE EnderecoCliente @Cidade varchar(50), @UF char(2) AS BEGIN SELECT * FROM Endereco WHERE Cidade = @Cidade and UF = @UF END GO EXEC EnderecoCliente @Cidade = 'Curitiba', @UF = 'PR';
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 5.7.19 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 9.4.0.5125 -- -------------------------------------------------------- /*...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2019 at 05:42 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/*用户表*/ CREATE TABLE `user` ( `uid` int(10) NOT NULL AUTO_INCREMENT, `uname` varchar(255) DEFAULT NULL, `birth` date DEFAULT NULL, KEY `uid` (`uid`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema es...
<reponame>marcela1/ConsultorioMedico -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-07-2016 a las 20:45:17 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*...
-- AlterTable ALTER TABLE "Customer" ALTER COLUMN "phoneNumber" DROP NOT NULL;
CREATE TABLE `student` ( `roll_no` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) DEFAULT NULL, `class` varchar(50) DEFAULT NULL, `division` varchar(50) DEFAULT NULL, `dob` datetime DEFAULT NULL, `parent_mobile_no` int(11) DEFAULT NULL, PRIMARY KEY (`roll_no`) );
<reponame>jasarsoft/fit-src<filename>bp2/predavanja/pred13_q16_update_value.sql USE TestDB GO SELECT ListPrice FROM Production.Product WHERE ProductID = 713 GO UPDATE Production.Product SET ListPrice = ListPrice * 1.1 WHERE ProductID = 713
USE CaseStudy; source tables_contacts.sql source tables_cal.sql source tables_parish.sql
drop database if exists :1;
SELECT [Employee ID], FirstName & " " & LastName as FullName, CostCentreCode, Department, Band FROM ((ee_Employees_t a LEFT JOIN ee_IDCostCentre b ON (a.IDCostCentre = b.IDCostCentre)) LEFT JOIN DeptIDs c ON (a.IDDept = c.TypIDdept)) LEFT JOIN BandIDs d ON (a.IDBand = d.IDBand) WHERE a.L...
DROP TABLE IF EXISTS `review`; CREATE TABLE `review` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `book_id` INTEGER NOT NULL, `link` VARCHAR(255) NOT NULL ); INSERT INTO `review` (`id`, `book_id`, `link`) VALUES (1, 1, 'http://www.nytimes.com/1996/02/04/books/virtual-realities.html'); INSERT INTO `review` (`id`, `...
<filename>hris.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2016 at 10:40 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
-- OLTP-Daily.sql WITH weekly_payments AS ( SELECT amount, EXTRACT(ISODOW FROM payment_date) AS dow, rating FROM payment p JOIN rental r ON p.rental_id = r.rental_id JOIN inventory i ON r.inventory_id = i.inventory_id JOIN film f ON i.film_id = f.film_id ORDER BY dow, rating, amou...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.26, for macos11 (x86_64) -- -- Host: localhost Database: webApp -- ------------------------------------------------------ -- Server version 8.0.26 -- -- Table structure for table `Cliente` -- DROP TABLE IF EXISTS `Cliente`; CREATE TABLE `Cliente` ( `cli_id` int NOT...
CREATE TABLE [dbo].[EventUser] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [UserId] NVARCHAR(450) NOT NULL, [EventId] INT NOT NULL, CONSTRAINT [FK_EventUsers_Event] FOREIGN KEY (EventId) REFERENCES [dbo].[Event](Id) )
INSERT INTO CARD VALUES(100); INSERT INTO CARD VALUES(101); INSERT INTO CARD VALUES(102); INSERT INTO CARD VALUES(103); INSERT INTO CARD VALUES(104);
PRELOAD TABLE t(i); PRELOAD DATABASE; PRELOAD TABLES t1,t2; PRELOAD SCHEMAS s1,s2; PRELOAD SCHEMA s1; TRUNCATE AUDIT LOGS; TRUNCATE AUDIT LOGS KEEP LAST MONTH; TRUNCATE AUDIT LOGS KEEP FROM '2019-01-01';
prompt --application/pages/page_00030 begin -- Manifest -- PAGE: 00030 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.2' ,p_default_workspace_id=>9690978936188613 ,p_default_application_id=>130 ,p_default_id_offset=>3010675395498185750 ,p_default_owner=>'ILA...
<reponame>forgottenlands/ForgottenCore406<filename>sql/updates/world/already_applied/12_01_10_03_world_Gameobject.sql<gh_stars>10-100 -- Link to Dazzling Destruction 10N delete from `spell_linked_spell` where `spell_trigger` in (86406, 86408); insert into `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `...
--set standard_concept='S' for NDC with domain_id = 'Device' update concept set standard_concept='S' where vocabulary_id = 'NDC' and domain_id = 'Device' and invalid_reason is null; --add self mappings insert into concept_relationship select concept_id, concept_id, 'Maps to', TO_DATE ('19700101', 'YYYYMMDD'), TO_DATE (...
<gh_stars>0 USE data_extracts; DROP PROCEDURE IF EXISTS executeBartsPancreas5LifestyleBP1; DELIMITER // CREATE PROCEDURE executeBartsPancreas5LifestyleBP1() BEGIN -- Lifestyle ever CALL populateDatasetBP1('bp1_lifestyledataset', '137%,136%,1462.,1463.,146E.,146F.,13c%,', 2, null, '137C.,137D.,137E.,137G.,13...
<reponame>getnacelle/ultraviolet -- CreateTable CREATE TABLE "ProductMetafield" ( "id" SERIAL NOT NULL, "productId" INTEGER, "namespace" TEXT NOT NULL, "key" TEXT NOT NULL, "value" JSONB, "helpText" TEXT, PRIMARY KEY ("id") ); -- AddForeignKey ALTER TABLE "ProductMetafield" ADD FOREIGN KEY...
<filename>src/main/resources/org/docksidestage/sqlite/dbflute/exbhv/various/pmbcheck/MemberBhv_selectMapLikeSearch.sql -- selectMapLikeSearch.sql -- !MapLikeSearchPmb! -- !!Map<String, Object> conditionMap:like!! select member.MEMBER_ID , member.MEMBER_NAME from MEMBER member /*BEGIN*/where /*IF p...
<gh_stars>0 CREATE INDEX IDX_AUTHORIZATION_CODE ON IDN_OAUTH2_AUTHORIZATION_CODE (AUTHORIZATION_CODE,CONSUMER_KEY_ID);
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: crm_haxxj_com -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
<reponame>sunsiyue/ACMEDB_MAIN<filename>java/testing/org/apache/derbyTesting/functionTests/tests/lang/predicatesIntoViews.sql -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information re...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore drop table if exists uao_visimap_test10; create table uao_visimap_test10(i int, j varchar(20), k int ) with (appendonly=true) DISTRIBUTED BY (i); insert into uao_visimap_test10 select i,'aa'||i,i+10 from generate_series(1,10) as i;
<gh_stars>10-100 alter table "public"."BroadcastContentItem" drop constraint "BroadcastContentItem_eventId_key";
-- @testpoint:opengauss关键字routine(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists routine; create database routine; --清理环境 drop database routine; --关键字带双引号-成功 drop database if exists "routine"; create database "routine"; --清理环境 drop database "routine"; --关键字带单引号-合理报错 drop database if exists 'routine'; create data...
<filename>openGaussBase/testcase/KEYWORDS/Deferred/Opengauss_Function_Keyword_Deferred_Case0026.sql<gh_stars>0 -- @testpoint:opengauss关键字deferred(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists deferred; create schema deferred; drop schema deferred; --关键字带双引号-成功 drop schema if exists "deferred"; create schema "deferr...
<gh_stars>0 /* Create a backup database of lab14 called lab14_normal */ CREATE DATABASE lab14_normal WITH TEMPLATE lab14; /* Connect to backup database */ \c lab14_normal; /* Create a new table named Authors with columns of id and name */ CREATE TABLE AUTHORS (id SERIAL PRIMARY KEY, name VARCHAR(255)); /* Get the u...
 CREATE VIEW [Loans].[SlidingBalance] AS -- SELECT [TransactionID] ,[CustomerID] ,[Credit] ,[Debit] ,[Note] ,[DateTime] ,[Currency] ,SUM(ISNULL([Credit],0) - ISNULL([Debit],0)) OVER ( PARTITION BY [CustomerID], [Currency] ORDER BY [DateTime] ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Tempo de geração: 12-Jan-2022 às 19:41 -- Versão do servidor: 10.4.19-MariaDB -- versão do PHP: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
-- setup inspire themes; INSERT INTO oskari_maplayer_group (locale) values ('{"fi":{"name":"Koordinaattijärjestelmät"}, "sv": { "name" : "Referenskoordinatsystem"},"en": { "name" : "Coordinate reference systems"}}'); INSERT INTO oskari_maplayer_group (locale) values ('{"fi":{"name":"Paikannusruudustot"}, "sv": { "name...
DROP TABLE IF EXISTS tree; CREATE TABLE tree ( id INT IDENTITY(1, 1) PRIMARY KEY, name VARCHAR(250) NOT NULL ); INSERT INTO tree (name) VALUES ('Angry'), ('Light'), ('Dark'), ('Small');
CREATE SCHEMA IF NOT EXISTS __schema__;
<filename>db-sample.sql<gh_stars>0 DROP USER IF EXISTS 'user here'@'localhost'; -- Crea el usuario CREATE USER IF NOT EXISTS 'user here'@'%' IDENTIFIED BY '<PASSWORD>'; -- Otorga todos los permisos en todos los esquemas al usuario GRANT ALL ON *.* TO 'user here'@'%';
<filename>labxm.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2019 at 08:45 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
<gh_stars>0 /* Warnings: - Added the required column `slug` to the `Poll` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "Poll" ADD COLUMN "isPrivate" BOOLEAN NOT NULL DEFAULT false, ADD COLUMN "slug" VARCHAR(8) NOT NULL;
create view vGenre( PlayTimeRank, Name, PlayTimeHours, TotalTimeHours, PlayRatio, FullName, ParentGenreID, GenreID) as select row_number() over (order by sum(a.PlayTimeHours) desc), g.Name, ifnull(round(sum(a.PlayTimeHours), 1), 0.0), round(sum(a.TotalTimeHours), 2), ifnull(round(sum(a.PlayTimeH...
WITH CTE_PeaksByCountry AS ( SELECT c.CountryName, p.PeakName, p.Elevation, m.MountainRange FROM Countries AS c JOIN MountainsCountries AS mc ON mc.CountryCode = c.CountryCode JOIN Peaks AS p ON p.MountainId = mc.MountainId JOIN Mountains As m ON m.Id = p.MountainId ) , CTE_MaxPeakElevationByCountry AS ( SELECT C...
<reponame>SPDEVGUY/CALI-AI ----------------------------------------------------------------------------------- --Do not modify this file, instead use an alter proc to over-write the procedure.-- --Make sure you follow the same expected interface of parameters, and resultsets.-- --------------------------------------...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 22, 2021 at 03:14 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
# ************************************************************ # Sequel Pro SQL dump # Version 3408 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: localhost (MySQL 5.5.25) # Database: leaderboard # Generation Time: 2013-01-23 20:22:31 +0000 # *********************************************...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 10 Jul 2019 pada 06.06 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
<gh_stars>0 SELECT e.[Id] AS [Id],s.[Name] AS [SeriesName], e.[Title] AS [Title], e.[Season] AS [Season], e.[EpisodeNumber] AS [EpisodeNumber], e.[FileName] AS [FileName], e.[Summary] AS [Summary], e.[FirstAired] AS [FirstAired], e.[DownloadStatus] AS [DownloadStatus], ...
<reponame>vuthysin5284/school<filename>doc/Eng/emp gen new.sql select * from employee_general pb where id=1
<reponame>empiricaldataman/TestRepo<filename>DBA/ExtendedProperties.sql<gh_stars>1-10 /*----------------------------------------------------------------------------------------------- NAME: ExtendedProperties.sql MODIFIED BY: <NAME> EMAIL: <EMAIL> DESCRIPTION: Use this template to display all the exten...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Apr 2021 pada 16.38 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- Insert rows into table 'Noticia' in schema '[dbo]' INSERT INTO [dbo].[Noticia] VALUES ( '¡Diviértete! Xbox invita a los fans a dejar de comparar videojuegos', '¿Forza y Gran Turismo? ¿ELDEN RING y Horizon Forbidden West? Sólo disfrútalos', 'La disputa y el trolleo en redes sociales por motivos de videojuegos no ...
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/47-de.metas.invoicecandidate/5528289_sys_gh5384-app_migration_2019-07-29_postgresql_DDL.sql --thanks to/further reading: https://stackoverflow.com/a/12608570/1012103 DO $$ BEGIN BEGIN -- 2019-07-29T14:06:53.295Z -- I forgot t...
<gh_stars>1000+ -- View: "de.metas.materialtracking".c_invoice_candidates_to_update -- DROP VIEW "de.metas.materialtracking".c_invoice_candidates_to_update; CREATE OR REPLACE VIEW "de.metas.materialtracking".c_invoice_candidates_to_update AS SELECT mt.lot, ppo_dt.name AS ppo_dt_name, ppo.documentno, ppo.pp_order_i...
ALTER TABLE EPS_PROPOSAL ADD ( ANTICIPATED_AWARD_TYPE_CODE NUMBER(3,0) ) / ALTER TABLE EPS_PROPOSAL ADD PROPOSALNUMBER_GG VARCHAR2(12) /
<gh_stars>0 # --- !Ups CREATE TABLE user ( id int(11) unsigned NOT NULL AUTO_INCREMENT, email varchar(255) NOT NULL DEFAULT '', password varchar(255) NOT NULL DEFAULT '', name varchar(255) NOT NULL DEFAULT '', created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, last_updated timestamp NOT NULL DEFAULT C...
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/other/resource/src/main/java/tpl/sql/ResourceCategory.sql<gh_stars>1-10 #macro($findLastestCode(pcode)) SELECT * FROM resource_category t WHERE t.status = 0 AND t.pcode = :pcode ORDER BY t.code DESC LIMIT 1 #end ##查询全部的资源类别 #macro($findAll()) SELEC...
INSERT INTO gnaf.locality_neighbour_lookup SELECT locality_pid, neighbour_locality_pid FROM raw_gnaf.locality_neighbour WHERE locality_pid <> neighbour_locality_pid;