sql
stringlengths
6
1.05M
<reponame>georgeKon/enabling-personal-consent -- $ID$ -- TPC-H/TPC-R Parts/Supplier Relationship Query (Q16) -- Functional Query Definition -- Approved February 1998 :x :o select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt from partsupp, part where p_partkey = ps_partkey and p_brand <> '...
<reponame>dram/metasfresh<filename>backend/de.metas.fresh/de.metas.fresh.base/src/main/sql/postgresql/system/70-de.metas.fresh/5448830_sys_FRESH-555_M_AttributeValue_Deactivate_RefList.sql -- 28.07.2016 13:35 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Field SET IsDisplayed='N', IsDispla...
<reponame>Stanford-PERTS/triton /* triton #1641 add mset */ ALTER TABLE `program` DROP COLUMN `use_classrooms`;
<reponame>BluSapphire-net/BluGenie SELECT * FROM FormatBGEvent WHERE MsgNewProcessName LIKE '%GoogleUpdate.exe'
<reponame>damspele/SQLTraining /****** Object: Table [dbo].[GenerationProfile] Committed by VersionSQL https://www.versionsql.com ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[GenerationProfile]( [CompanyID] [int] NOT NULL, [AvailableUnits] [nvarchar](50) NULL, [InstalledCapacity] [nvar...
<gh_stars>0 SELECT city.name FROM city INNER JOIN country ON country.code = city.countrycode WHERE continent = 'Africa'
<filename>practice/SQL_W_3_Resource/Aggregate_Function.sql --SQL Exercises, Practice, Solution - Aggregate Functions -- 1. From the following table, write a SQL query to calculate total -- purchase amount of all orders. Return total purchase amount. select sum(purch_amt) "Total Purches Amount" from orders o ; --...
<gh_stars>0 SELECT d.id, d.manifest_yaml, d.manifest_json, d.apply_exit_code, d.rollout_status_exit_code, d.created_on, d.note, cb.id AS created_by_id, cb.display_name AS created_by_display_name, s.id AS service_id, s.name AS service_name, sr.id AS registry_id, sr.name AS registry_name, r.id...
<filename>db/seed.sql INSERT INTO lists (amt, item, brand, reason) VALUES (2, 'Donuts', 'Supermarket', 'Hangry'), (1, '20oz Juice', 'Juice Place', 'Thurrrsty'), (0.5, 'Pickle', '<NAME>', 'Got a pickle?');
TRUNCATE TABLE favorites RESTART IDENTITY CASCADE; TRUNCATE TABLE bookboxes RESTART IDENTITY CASCADE; TRUNCATE TABLE tokens RESTART IDENTITY CASCADE; TRUNCATE TABLE images RESTART IDENTITY CASCADE; TRUNCATE TABLE users RESTART IDENTITY CASCADE; -- TRUNCATE TABLE roles RESTART IDENTITY CASCADE;
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 17-11-2017 a las 05:58:42 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
CREATE FUNCTION getpercentslope(height double precision, length double precision) RETURNS double precision LANGUAGE plpgsql AS $$ BEGIN IF length > 0 THEN RETURN (height / length * 100); ELSE RETURN 0; END IF; END $$; ALTER FUNCTION getpercentslope(height double precision, length double precision) OWN...
CREATE TABLE Users( Id BIGINT PRIMARY KEY IDENTITY, Username VARCHAR(30) NOT NULL UNIQUE, [Password] VARCHAR(26) NOT NULL, ProfilPicture VARBINARY(900), LastLoginTime DATETIME, IsDeleted BIT DEFAULT(0) NOT NULL, ) INSERT INTO Users(Username, [Password]) VALUES('pirocorp', '<PASSWORD>') INSERT INTO Users(Usernam...
DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; DROP TABLE IF EXISTS department; CREATE TABLE department ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE ); CREATE TABLE role ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE, salary INTEGER NOT NULL, department_id INT...
<gh_stars>0 create database viagem; use viagem; create table Usuario( id int auto_increment not null primary key, nomeDeUsuario varchar(255) not null, dataDeNascimento datetime not null, login varchar(255) not null, senha varchar(255) not null, tipo int not null); create table Pacote( id int auto_increment not null p...
<gh_stars>0 CREATE DATABASE VolunteerSystem; USE VolunteerSystem; CREATE TABLE User ( userId INT NOT NULL AUTO_INCREMENT, email NVARCHAR (40) NOT NULL, password NVARCHAR (20) NOT NULL, firstName NVARCHAR(20) NOT NULL, lastName NVARCHAR(20) NOT NULL, systemRole NVARCHAR(20) NOT NULL, PRIMARY KEY(userId)...
<gh_stars>1-10 CREATE TABLE `NOTIFICATION_SETTINGS` ( `NOTIFICATION_SETTINGS_ID` INT(11) NOT NULL AUTO_INCREMENT, `USERS_ID` INT(11) NOT NULL, `AUTO_SUBSCRIBE_FLAG` BIT(1) NOT NULL, `SEND_POST_IN_EMAIL_FLAG` BIT(1) NOT NULL, `INSTANT_FLAG` BIT(1) NOT NULL, `FREQUENCY_ID` INT(11) NOT NULL DEFAULT '0', `ONLY_FIRST...
insert into sykefravar_statistikk_land (arstall, kvartal, antall_personer, tapte_dagsverk, mulige_dagsverk) values(2014, 2, 10, 5884917.287819, 112525690.888394); insert into sykefravar_statistikk_land (arstall, kvartal, antall_personer, tapte_dagsverk, mulige_dagsverk) values(2014, 3, 10, 5880571.66224 , 107409308.353...
-- -- DATABASE -- IF DB_ID('$(dbname)') IS NULL BEGIN CREATE DATABASE $(dbname) END GO use $(dbname) GO -- -- SCHEMAS -- IF NOT EXISTS (SELECT name from sys.schemas WHERE name = 'sample') BEGIN EXEC('CREATE SCHEMA sample') END GO -- -- TABLES -- IF NOT EXISTS (SELECT * FROM sys.objects WHERE obje...
<reponame>CSCfi/antero USE [VipunenTK_DW] GO /****** Object: View [dbo].[v_oppilaitostyyppi_amm] Script Date: 31.3.2020 12:16:01 ******/ DROP VIEW IF EXISTS [dbo].[v_oppilaitostyyppi_amm] GO /****** Object: View [dbo].[v_oppilaitostyyppi_amm] Script Date: 31.3.2020 12:16:01 ******/ SET ANSI_NULLS ON GO SET Q...
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:sequence.sql ln:378 expect:true ROLLBACK TO save
-- file:sequence.sql ln:59 expect:true INSERT INTO serialTest1 VALUES ('force', 100)
<gh_stars>0 -- /package/intranet-sql-selectors/sql/postgresql/intranet-sql-selectors-create.sql -- -- Copyright (c) 2003 - 2009 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- -- @author <EMAIL> -- Selectors module -- -- Defines: -- im_sql_selectors Sele...
<gh_stars>0 select * from `parquet_storage/nation.dict.parquet`;
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Database: log # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<gh_stars>0 --drop table FOC_TRANSCODE_INFO; --drop table FOC_NOBOOK_LOCK; --drop table FOC_NOBOOK; --drop table FOC_BATCH; --drop table FOC_BATCH_DETAIL; --drop table FOC_ERR_POLICY_CONFIG; --drop table FOC_ERR_POLICY_MAST; --drop table FOC_ERR_POLICY_XREF; --drop table FOC_SEND_MSG; --drop table FOC_DICT_XREF; --dro...
<reponame>MCZbase/DDL<filename>PROCEDURE/LOAD_PUBLICATION_URIS.sql<gh_stars>1-10 CREATE OR REPLACE PROCEDURE "LOAD_PUBLICATION_URIS" as numMEDIAID number; num number; cursor c1 is select x.media_uri, p.publication_id, p.publication_title from x_ent_antcite_uri x, publication p where x.publication_id = p.publicatio...
<gh_stars>0 # # Table structure for table 'tx_dbal_debuglog' # CREATE TABLE tx_dbal_debuglog ( uid int(11) unsigned NOT NULL auto_increment, tstamp int(11) unsigned DEFAULT '0', beuser_id int(11) unsigned DEFAULT '0', script varchar(255) DEFAULT '' NOT NULL, exec_time int(11) unsigned DEFAULT '0', table_join var...
<reponame>JaneliaSciComp/DatabaseScripts<gh_stars>0 -- =================== -- -- Grant Privs -- -- =================== -- GRANT ALL PRIVILEGES ON parts.* TO partsAdmin@'%'; GRANT SELECT,INSERT,UPDATE,DELETE,EXECUTE,SHOW VIEW ON parts.* TO partsApp@'%'; GRANT SELECT ON parts.* TO partsRead@'%'; GRANT ALL PRIVI...
CREATE TABLE `role` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `key` VARCHAR(20) NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `key` (`key`) ) ENGINE=InnoDB;
<filename>usercoloredtransactions/sqlcontent.sql<gh_stars>0 select t.FOLLOWUPID, t.PAYEENAME, t.TRANSDATE, t.TRANSAMOUNT , t.TRANSAMOUNT*c.BASECONVRATE as BaseAmount , c.PFX_SYMBOL, c.SFX_SYMBOL from (select p.PAYEENAME as PAYEENAME, c1.TRANSDATE as TRANSDATE, c1.FOLLOWUPID as FOLLOWUPID, (case when...
<reponame>desenv-1dl/bancotalentos BEGIN; CREATE TABLE genero( id SERIAL NOT NULL PRIMARY KEY UNIQUE, nome VARCHAR(255) UNIQUE, nome_abrev VARCHAR(255) UNIQUE ); CREATE TABLE nivel_funcional( id SERIAL NOT NULL PRIMARY KEY UNIQUE, nome VARCHAR(255) UNIQUE, ...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 22-Mar-2021 às 10:13 -- Versão do servidor: 10.4.18-MariaDB -- versão do PHP: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<gh_stars>0 -- Adminer 4.7.2 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(15) DEFAULT NULL, `password` varchar(50) DEFAULT NUL...
Use gatchitoma; INSERT INTO `users` (`email`,`password`, `online`, `createdAt`, `updatedAt`) VALUES ('<EMAIL>','$2a$<PASSWORD>/uI9OgjtAaDfD7LNuXGOoAlfWJbZhpxPcGjewSloybIPKQGNiYG',0, now(), now()); INSERT INTO `users` (`email`,`password`, `online`, `createdAt`, `updatedAt`) VALUES('<EMAIL>','$<PASSWORD>AgnSFyIVYMse<...
-- this is where the cronjob script saves its status CREATE TABLE "cron" ( 'datetime' DATETIME NOT NULL, numdeleted INT NOT NULL, errors INT NOT NULL ); -- this is where the uploaded files' metadata is stored CREATE TABLE "uploads" ( id INTEGER PRIMARY KEY AUTOINCREMENT, ip TEXT NOT NULL, 'datetime' DATETIME...
<reponame>mrmotofoto/lara_course -- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 28, 2016 at 08:45 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>net.violet.platform/src/test/java/net/violet/platform/datamodel/factories/implementations/MusicStyleFactoryImplTest_setup.sql SET FOREIGN_KEY_CHECKS = 0; delete from `user` where user_id = '103' or user_id = '104'; delete from `annu` where annu_user = '103' or annu_user = '104'; delete from `music` where mu...
-- This API is used to publish TW items -- call catalog.publish_tw_items(@err, '5', 98); -- call catalog.publish_tw_items(@err, '1, 2, 3', 1); DELIMITER $$ DROP PROCEDURE IF EXISTS catalog.publish_tw_items$$ CREATE PROCEDURE catalog.publish_tw_items( OUT error_code INT, IN item_id_in TEXT, IN modif...
<gh_stars>100-1000 alter table node add column relax_fcnt boolean not null default false;
-- +micrate Up CREATE TABLE IF NOT EXISTS "categories" ( "id" SERIAL PRIMARY KEY, "name" character varying NOT NULL UNIQUE ); -- +micrate Down DROP TABLE IF EXISTS "categories";
drop table if exists user; create table user ( user_id integer primary key autoincrement, username text not null, pw_hash text not null, creation_time integer ); drop table if exists library; create table library ( lib_id integer primary key autoincrement, paper_id text ...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 11, 2022 at 03:45 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- trigger4.test -- -- execsql { -- select * from test1; -- } select * from test1;
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:inherit.sql ln:412 expect:true create table invalid_check_con(f1 int)
--! Previous: sha1:efdae1ee1c523abceba2d0d3dd1fea4c835af8dc --! Hash: sha1:bece115c12b32dfe9e58678f029bdce0c8eff0c2 --! split: 1-current.sql -- Enter migration here CREATE INDEX ON "app_public"."item_edit_suggestions"("type_id");
-- Example Query -- Selects some data from Students, -- where GPA >= 3.0, order by GPA DESC SELECT Name, GPA FROM Students WHERE GPA >= 3.0 ORDER BY GPA DESC
INSERT INTO `kat_menu` (`kode`, `nama`, `gbr`) VALUES(1, 'Hot Drink', 'img/hot%20drink.png'); INSERT INTO `kat_menu` (`kode`, `nama`, `gbr`) VALUES(2, 'Soft Drink', 'img/soft%20drink.png'); INSERT INTO `kat_menu` (`kode`, `nama`, `gbr`) VALUES(3, 'Juice', 'img/juice.png'); INSERT INTO `kat_menu` (`kode`, `nama`, `gbr`)...
CREATE TABLE IF NOT EXISTS adoptions ( id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30), year_of_birth INT, location VARCHAR(30), ...
<reponame>PersonalGenomesOrg/bigquery-examples<gh_stars>1-10 # Count by variant type the number of variants on chromosome 17 unique for a # position and reference base SELECT vt, COUNT(vt) AS num_variant_type FROM [google.com:biggene:1000genomes.variants1kG] AS variants JOIN EACH ( SELECT contig, posit...
INSERT INTO channels (name) VALUES ('direkt'); INSERT INTO channels (name) VALUES ('profession hírdetés'); INSERT INTO channels (name) VALUES ('profession adatbázis'); INSERT INTO channels (name) VALUES ('facebook'); INSERT INTO channels (name) VALUES ('linkedin hírdetés'); INSERT INTO channels (name) VALUES ('linkedin...
<filename>table/sys_Comment.sql -- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64) -- -- Host: localhost Database: sys -- ------------------------------------------------------ -- Server version 5.7.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
insert into process_instance (id, last_modified, last_modified_from, last_modified_to, process_definition_id, status, initiator, start_date, business_key, process_definition_key) values ('0', CURRENT_TIMESTAMP, null, null, 'process_definition_id', 'Running', 'initiator',null, 'bus_key','def_key'), ('1', CURRENT_TIM...
-- -- Copyright 2002-2015 SCOOP Software GmbH -- -- 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/LICENSE-2.0 -- -- Unless required by applicable law...
<filename>sql/hmd.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Апр 29 2019 г., 11:03 -- Версия сервера: 8.0.13 -- Версия PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
alter table "job_queues"."SubmissionRequestEmailJob" drop constraint "SubmissionRequestEmailJob_personId_fkey", add constraint "SubmissionRequestEmailJob_personId_fkey" foreign key ("personId") references "collection"."ProgramPerson" ("id") on update cascade on delete set null;
<filename>sql/create_db_and_schema.sql SELECT version(); CREATE DATABASE water_quality; --Now switch to new DB CREATE EXTENSION postgis; SELECT PostGIS_full_version(); CREATE SCHEMA wq;
SELECT FirstName, LastName, City, State FROM ( Person LEFT JOIN Address ON person.PersonId = Address.PersonId; )
<reponame>Boooobbbyy/utsweb<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Dec 04, 2020 at 08:24 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+0...
SELECT e.FirstName, e.LastName, e.HireDate, d.[Name] AS [DeptName] FROM Employees e JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE e.HireDate > '1999-01-01' AND d.[Name] IN ('Sales', 'Finance') ORDER BY e.HireDate
-- -- PostgreSQL database dump -- -- Dumped from database version 9.4.6 -- Dumped by pg_dump version 9.5.0 -- Started on 2016-03-10 14:38:14 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages ...
<reponame>MEaston12/UUCB-C12<filename>queries/employee/updateRole.sql UPDATE Employee SET role_id = @role_id WHERE id = @employee_id
CREATE TABLE "clean_data"."valid_tracks" (gid serial PRIMARY KEY, tripid character varying (50), the_geom geometry(Point,28992), track_seg_point_id integer, elev double precision, time_ timestamp with time zone, desc_ character varying );
<reponame>CSC-IT-Center-for-Science/antero<filename>db_archive/sql_archive/5410__alter_proc_p_lataa_f_rekrytointihaut_yhteinen.sql USE [ANTERO] GO /****** Object: StoredProcedure [dw].[p_lataa_f_rekrytointihaut_yhteinen] Script Date: 10.1.2022 15:34:25 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO A...
/* file generation UUID: 5cc2f85170daf */ -- -- Notifier triggers for account -- CREATE OR REPLACE FUNCTION account_notf() RETURNS TRIGGER AS $functionBlock$ BEGIN PERFORM pg_notify('c_account', '{ "schema": "core", "actual_schema": "' || TG_TABLE_SCHEMA || '", "operation": "' || TG_OP || '" }' ); ...
<filename>sql/wonji/select/어린동물찾기.sql<gh_stars>1-10 SELECT animal_id, name from animal_ins where intake_condition != "aged" order by animal_id;
<reponame>joshua-software-dev/FF14AnglerParser -- SQLITE CREATE TABLE IF NOT EXISTS `fish_tug_strength` ( `fish_angler_fish_id` BIGINT NOT NULL, `tug_strength` TINYINT NOT NULL, `tug_strength_percent` DECIMAL NOT NULL, PRIMARY KEY (`fish_angler_fish_id`, `tug_strength`), FOREIGN KEY(`fish_angler_fish_id`) REFERENC...
/* * #%L * de.metas.async * %% * Copyright (C) 2022 metas GmbH * %% * 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, either version 2 of the * License, or (at your option) any later vers...
<filename>txym_credit.sql /* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50718 Source Host : 127.0.0.1:3306 Source Database : txym_credit Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2017-09-02 08:19:25 */ S...
DROP TABLE IF EXISTS orders_text_partitioned_hive; CREATE EXTERNAL TABLE orders_text_partitioned_hive ( o_orderkey INT, o_custkey INT, o_orderstatus STRING, o_totalprice DOUBLE, o_orderdate STRING, o_orderpriority STRING, o_clerk STRING, o_shippriority INT, o_comment STRING ) PARTITI...
<filename>4_IMPLEMENTACION/BASE_DE_DATOS/INSERCIONES_BD.sql<gh_stars>0 INSERT INTO usuario ("id_usuario","nombre","apellido_paterno","apellido_materno","calle","avenida","numero","colonia","codigo_postal","ciudad","telefono","email","nombre_usuario","contrasenia","tipo","estatus") VALUES (1, 'Gustavo', 'Orbezo','Herna...
--------------------------------------------------------------------- -- Inside Microsoft SQL Server 2008: T-SQL Querying (MSPress, 2009) -- Chapter 07 - Joins and Set Operations -- Copyright <NAME>, 2009 -- All Rights Reserved --------------------------------------------------------------------- ---------------------...
-- ---------------------------- -- Table structure for `transaction_record` -- ---------------------------- DROP TABLE IF EXISTS `transaction_record`; CREATE TABLE `transaction_record` ( `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `status` int DEFAULT NULL COMMENT '消息状态', `sign` int DEFAULT NUL...
-- Verify user_passwords BEGIN; SELECT id, hashed_pass, hash_type FROM user_passwords WHERE FALSE; ROLLBACK;
-- 0000.sql -- The initial database setup. CREATE TABLE Person ( Id int NOT NULL IDENTITY(1, 1), Email nvarchar(128) NOT NULL, FullName nvarchar(128) NOT NULL, CONSTRAINT PK_Person PRIMARY KEY (Id) ); -- You can separate commands using GO. They will be executed in separate batches. -- The GO command must be the ...
-- @testpoint: opengauss关键字constraint_catalog(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists constraint_catalog_test; create table constraint_catalog_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists constraint_catalog; create synonym constraint_catalog for constraint_catalog_test; insert into ...
INSERT INTO CITY VALUES ('Delhi', 110001); INSERT INTO CITY VALUES ('Kanpur', 208001); INSERT INTO CITY VALUES ('Lucknow', 226001);
SET search_path = tasker, pg_catalog ; CREATE OR REPLACE FUNCTION task_watcher__clear ( a_task_id integer, a_username varchar, a_session_username varchar ) RETURNS dml_ret SECURITY DEFINER -- Set a secure search_path SET search_path = tasker, pg_catalog, pg_temp LANGUAGE plpgsql AS $$ DECLARE l_user_id...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2014 at 11:49 AM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
<reponame>Lemurro/api-core<filename>tests/_data/database.sql<gh_stars>0 DELETE FROM access_sets WHERE name LIKE 'test access set%'; DELETE FROM info_users WHERE user_id = ( SELECT id FROM users WHERE auth_id = '<EMAIL>' ); DELETE FROM users WHERE auth_id = '<EMAIL>'; INSERT INTO users SET auth_id = '<...
INSERT INTO media VALUES ("ltr_vmx6000","letter","1827-03-02","Baltimore","MD","US","Virgil","Maxcy","","John","Calhoun","","individual","","I feel a strong sympathy for Vande Venter, who, tho' strong in conscious integrity, must nevertheless, feel a deep mortification at the impression that his abrupt dismissal from o...
SELECT attname, attndims, atttypmod, format_type(t.oid,NULL) AS datatype, format_type(t.oid, att.atttypmod) AS fulltype, attnotnull, attnum, (SELECT COUNT(1) from pg_type t2 WHERE t2.typname=t.typname) > 1 AS isdup FROM pg_attribute att JOIN pg_type t ON t.oid=atttypid JOIN pg_namespace nsp ON t...
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SPC_COM_MENU]') AND type IN (N'P', N'PC')) /****** Object: StoredProcedure [dbo].[SPC_M001L_FND1] Script Date: 2017/11/23 16:46:46 ******/ DROP PROCEDURE [dbo].[SPC_COM_MENU] GO /****** Object: StoredProcedure [dbo].[SPC_M001L_FND1] ...
CREATE TABLE subdivision_CH (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AG', E'Cantonul Argovia', E'canton'); INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AR', E'Cantonul Appenzell Exter...
<gh_stars>100-1000 SET @query := 'SELECT DISTINCT id, name AS city_name FROM world.City'; CALL _wrap_select_list_columns(@query, 3, @error); SELECT @query;
ALTER TABLE event ALTER COLUMN body SET DATA TYPE varchar(10000000);
<filename>database/atualizador/src/main/resources/db/migration/postgresql/client/V0001/V0000/V0001_0000_00000034__CreateTable_CarrierShop.sql CREATE TABLE carriershop ( id CHAVE NOT NULL, id_carrier CHAVE NOT NULL, id_shop CHAVE NOT NULL, CONSTRAINT pk_carriershop PRIMARY KEY (id) );
<reponame>betoamaya/DB-Verificacion<gh_stars>0 EXEC sp_addrolemember N'db_datawriter', N'VeriSys' GO
<gh_stars>0 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding foreign keys to [edfi]....
<reponame>EMBL-EBI-TSI/ebi-portal-clone create table IF NOT EXISTS application_deployment_parameter ( id BIGSERIAL PRIMARY KEY NOT NULL, name varchar(255), application_id bigint, foreign key (application_id) references application(id) ); create table IF NOT EXISTS deployment_assigned_parameter ( id BIGSERIAL...
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `company_config` -- ---------------------------- DROP TABLE IF EXISTS `company_config`; CREATE TABLE `company_config` ( `CONFIG_ID` int(11) NOT NULL, `COMPANY_ID` int(11) DEFAULT NULL, `CONFIG_KEY` varchar(16) NOT NULL, `CONFIG_...
-------------------------------------------------------- -- DDL for INSERT DATA -------------------------------------------------------- -- Insert sequences Insert into AweKey (KeyNam, KeyVal) values ('OpeKey', 6); Insert into AweKey (KeyNam, KeyVal) values ('ThmKey', 17); Insert into AweKey (KeyNam, KeyVal) values ('...
<filename>function.sql CREATE OR REPLACE FUNCTION gen_objectid() RETURNS text AS 'libgen_objectid.so', 'gen_objectid' LANGUAGE C STRICT;
select * from Resources
<filename>tests/test-data/initdb/archive/04_archive_schema_3.0.sql BEGIN; /* 2018-07-04 UT: add fields to candidate */ ALTER TABLE candidate ADD dsnrms FLOAT; ALTER TABLE candidate ADD ssnrms FLOAT; ALTER TABLE candidate ADD dsdiff FLOAT; ALTER TABLE candidate ADD magzpsci FLOAT; ALTER TABLE candidate ADD magzpsciunc ...
<filename>data/hus_store.sql # ************************************************************ # Sequel Pro SQL dump # Version 5446 # # https://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.6.4-MariaDB) # Database: hus_store # Generation Time: 2021-11-03 02:19:42 +0000 # *...
<reponame>lixun910/cartodb SELECT pg_catalog.pg_extension_config_dump('@extschema@.cdb_tablemetadata','');
<filename>openGaussBase/testcase/KEYWORDS/returns/Opengauss_Function_Keyword_Returns_Case0023.sql -- @testpoint: opengauss关键字returns非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists returns_test; create table returns_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists returns; create index returns on...
<filename>openGaussBase/testcase/KEYWORDS/admin/Opengauss_Function_Keyword_Admin_Case0033.sql -- @testpoint:opengauss关键字admin(非保留),作为视图名 --关键字admin作为视图名,不带引号,创建成功 CREATE or replace VIEW admin AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; --清理环境 drop view admin; --关键字admin作为视图名,加双引号,创建成功 CREATE or rep...
<filename>e-commerce (1).sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : sam. 13 juin 2020 à 22:33 -- Version du serveur : 10.4.11-MariaDB -- Version de PHP : 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...