sql
stringlengths
6
1.05M
SELECT RANK_ID, TARGET_COL, RANK_ORDER FROM DIR_RANKING_ORDER WHERE ID = ?;
-- DropForeignKey ALTER TABLE "Station" DROP CONSTRAINT "Station_areaOfficeId_fkey"; -- AlterTable ALTER TABLE "Station" ALTER COLUMN "areaOfficeId" DROP NOT NULL; -- AddForeignKey ALTER TABLE "Station" ADD CONSTRAINT "Station_areaOfficeId_fkey" FOREIGN KEY ("areaOfficeId") REFERENCES "AreaOffice"("id") ON DELETE SET...
<gh_stars>1-10 IF $(OneTimeLoad) = 1 BEGIN DECLARE @Translator TABLE ( TranslatorKey int NOT NULL PRIMARY KEY, TranslatorName nvarchar(100) NOT NULL, CreatedByUserKey int NOT NULL, CreatedDate datetime2(7) NOT NULL, ModifiedByUserKey int NOT NULL, ModifiedDate datetime2(7) NOT NULL ); INSERT INTO @Translator ( Tran...
-- 2021-02-23T20:49:19.248Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Table_Process WHERE AD_Table_Process_ID=540794 ; -- 2021-02-23T20:49:26.565Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Process_Trl WHERE AD_Process_ID=584664 ; -- 2021-0...
# User schema # --- !Ups insert into `event_status` (id, code) values(1, 'draft'); insert into `event_status` (id, code) values(2, 'applicable'); insert into `event_status` (id, code) values(3, 'confirmed'); insert into `event_location` (id, code) values(1, 'outdoor'); insert into `event_location` (id, code) values(2...
SET NAMES 'utf8'; ALTER TABLE `dossierdocmanquant` ADD `DATE_RECEPTION_DOC` date DEFAULT NULL;
{% macro get_source_columns() %} {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "id", "datatype": dbt_utils.type_int()}, {"name": "name", "datatype": dbt_utils.type_string()}, {"name": "source_t...
select arn, name, tags_src from aws.aws_eventbridge_bus where name = '{{ resourceName }}';
<reponame>VHAINNOVATIONS/ASRCM -- This script inserts dummy risk model configuration into the database for testing. -- SPECIALTY table INSERT INTO SPECIALTY (id, name) VALUES (1, 'General Surgery'); INSERT INTO SPECIALTY (id, name) VALUES (2, 'Neurosurgery'); INSERT INTO SPECIALTY (id, name) VALUES (3, 'Orthopedic'); ...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2021 at 09:38 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...
-- ------------------------------------------------------------------- -- MIMIC III custom mapping -- mimic-omop/etl/StandardizedVocabularies/CONCEPT/etl.sql -- ------------------------------------------------------------------- CREATE OR REPLACE TABLE `project...`.dataset....concept_iii ( concept_id INT6...
-- Rename transaction consensus_ns column to consistently uses consensus_timestamp alter table transaction rename column consensus_ns to consensus_timestamp;
/* Navicat MySQL Data Transfer Source Server : test Source Server Version : 50505 Source Host : localhost:3306 Source Database : course Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-01-09 09:16:19 */ SET FOREIGN_KEY_CHECKS...
-- @testpoint:openGauss保留关键字Analyse作为 用户名, --不带引号,合理报错 CREATE USER Analyse PASSWORD '<PASSWORD>'; --加双引号,创建成功 drop user if exists "Analyse"; CREATE USER "Analyse" PASSWORD '<PASSWORD>'; --清理环境 drop user "Analyse"; --加单引号,合理报错 CREATE USER 'Analyse' PASSWORD '<PASSWORD>'; --加反引号,合理报错 CREATE USER `Anal...
<filename>src/main/resources/data.sql INSERT INTO roles (id, name) VALUES (1, 'ADMIN'); INSERT INTO roles (id, name) VALUES (2, 'USER'); /* users data set - 50 */ insert into users (id, email, first_name, password, time_zone_id, username) values (3, '<EMAIL>', 'Rheba', '<PASSWORD>', 'Asia/Dushanbe', 'rgatesman2'); in...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 80017 Source Host : localhost:3306 Source Database : ry Target Server Type : MYSQL Target Server Version : 80017 File Encoding : 65001 Date: 2019-09-23 18:38:20 */ SET FOREIGN_KEY_CHECKS=0; -- -...
<filename>src/main/resources/db/migration/V4.1__Metamorph.sql ALTER TYPE item_type RENAME VALUE 'Rune Dagger' TO 'Rune Daggers'; ALTER TYPE item_type RENAME VALUE 'Warstaff' TO 'Warstaves'; CREATE TABLE metamorph_samples ( id serial PRIMARY KEY, name text UNIQUE NOT NULL, drop_enabled boolean ...
ALTER TABLE `custom_armor` ADD `depositable` varchar(5) NOT NULL default 'false' AFTER `tradeable`; ALTER TABLE `custom_etcitem` ADD `depositable` varchar(5) NOT NULL default 'false' AFTER `tradeable`; ALTER TABLE `custom_weapon` ADD `depositable` varchar(5) NOT NULL default 'false' AFTER `tradeable`;
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600615',@CutoffDate = N'2017-09-30',@EPS = N'0.559',@EPSDeduct = N'0',@Revenue = N'6951.41万',@RevenueYoy = N'-6.15',@RevenueQoq = N'-12.26',@Profit = N'1.05亿',@ProfitYoy = N'1175.46',@ProfiltQoq = N'-96.40',@NAVPerUnit = N'3.1369',@ROE = N'19.55',@CashPerUnit = N'0.2514',@GrossProfi...
CREATE TABLE "order"."OrderEvent" ( "dbId" integer NOT NULL DEFAULT nextval('"order"."OrderEvent_dbId_seq"'::regclass), "Id" uuid NOT NULL, "Version" integer NOT NULL, "MessageType" character varying(100) COLLATE pg_catalog."default" NOT NULL, "SerializedMessage" json NOT NULL, "Timestamp" times...
INSERT INTO `config` (`id_config`, `id_site`, `key`, `value`, `exposed`) VALUES (NULL, NULL, 'driver_change_amount', '20', '1');
DROP PROCEDURE PartitionInfoSelect IF EXISTS; load classes stored_procedures/PartitionInfoSelect/PartitionInfoSelect.jar; CREATE PROCEDURE FROM CLASS PartitionInfoSelect; DROP PROCEDURE PartitionInfoInsert IF EXISTS; load classes stored_procedures/PartitionInfoInsert/PartitionInfoInsert.jar; CREATE PROCEDURE FROM CLAS...
SELECT column_name(s) FROM table_name WHERE column_name IS NULL;
<gh_stars>0 alter table task add column created_on datetime null; alter table task add column updated_on datetime null;
GRANT ALL PRIVILEGES ON DATABASE dbuser TO db; ALTER USER dbuser PASSWORD 'password'; ALTER USER dbuser SUPERUSER;
<reponame>PauliJokinen/db-schema-updater<gh_stars>0 -- Create table: CREATE TABLE moi( transaction uuid, price numeric, transfer_date date, postcode text, property_type char(1), newly_built boolean, duration char(1), paon text, saon text, street text, locality text, city text, district text, ...
-- MySQL Script generated by MySQL Workbench -- Wed Nov 22 19:22:08 2017 -- Model: New Model Version: 1.0 -- 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='TR...
-- -- hpc_user.sql -- -- Copyright SVG, Inc. -- Copyright Leidos Biomedical Research, Inc -- -- Distributed under the OSI-approved BSD 3-Clause License. -- See http://ncip.github.com/HPC/LICENSE.txt for details. -- -- -- @author <a href="mailto:<EMAIL>"><NAME></a> -- DROP TABLE IF EXISTS public."HPC_USER"; CREATE TAB...
<filename>src/app/voltdb/voltdb_src/tests/sqlcoverage/template/default/joined-matview-default-full.sql <configure-default.sql> -- Run SELECT queries against Views, rather than Tables - the complete version, -- running against all of the defined views (may be slow) {@fromtables = "V_value[int:0,36,1]"} -- First, INSER...
<reponame>jhsveli/finn-kandidat-api<gh_stars>0 ALTER TABLE kandidat ADD COLUMN opprettet TIMESTAMP(6) DEFAULT current_timestamp; UPDATE kandidat SET opprettet = registreringstidspunkt; ALTER TABLE kandidat ALTER COLUMN opprettet SET NOT NULL;
CREATE TABLE IF NOT EXISTS users ( id VARCHAR(50) PRIMARY KEY, username VARCHAR (50) UNIQUE NOT NULL, password VARCHAR (100) NOT NULL, email VARCHAR (50) NOT NULL, role VARCHAR (50) NOT NULL ); CREATE TABLE IF NOT EXISTS secret_santa ( id VARCHAR(50) PRIMARY KEY, user_id VARCHAR(50) REFERENCES users(id) ...
<gh_stars>0 CREATE TABLE `guest` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `firstname` varchar(64) NOT NULL DEFAULT '', `lastname` varchar(64) NOT NULL DEFAULT '', `email` varchar(64) NOT NULL DEFAULT '', `comment` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/* * Diese Funktion "emuliert" die Verfuegbarkeit der Oraclefunktion "STANDARD_HASH" zur Generierung von Hashwerten. * Die Funktion steht erst ab der Datenbankversion 12c zur Verfuegung. */ CREATE OR REPLACE FUNCTION standard_hash (v_input VARCHAR2) RETURN RAW DETERMINISTIC AS --PRAGMA UDF; BEGIN RETURN dbms...
SELECT os.skraceni_naziv, pera.* FROM ( SELECT IDENT, POsSredstvo.naziv(IDENT) ident_naziv, DOK.POSLOVNA_GODINA GOD, DOK.BROJ, DOK.DATUM, DOK.ORG_DEO_NA ORG, PORGANIZACIONIDEO.NAZIV(DOK.ORG_DEO_NA) NAZIV, DOK.LOKACIJA_NA LOK, POsLokacija.NAZIV(DOK.LOKACIJA_NA) LOK_NAZIV, DOK.ZADUZIO, Pradnici....
DROP TABLE IF EXISTS `charts` ; CREATE TABLE `charts` ( `id` VARCHAR(36) NOT NULL, `created` BIGINT NOT NULL, `modified` BIGINT NOT NULL, `name` VARCHAR(256) NOT NULL, `stat` ENUM( 'none', 'received', 'accepted', 'rejected', 'started', 'finished', 'failed', 'cleaned') NOT NULL ) ;
<reponame>lgcarrier/AFW SET DEFINE OFF; CREATE INDEX AFW_19_SPECF_FONCT_FK98 ON AFW_19_SPECF_FONCT (DNR_REF_PAGE) LOGGING /
<reponame>nogo/feedbox<filename>src/Nogo/Feedbox/Resources/sql/sqlite/1373895245.sql INSERT INTO version VALUES ('1373895245'); CREATE TABLE IF NOT EXISTS users ( id INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL UNIQUE, password TEXT NOT NULL, email TEXT, active INTEGER NOT NULL DEFAULT 0, superadmin INT...
<filename>3_Experiment1/ExtractPredictors/extract_msoa_features/buildingFeatures_moa.sql DROP TABLE IF EXISTS building_polygon_visiual; CREATE TABLE building_polygon_visiual as ( SELECT * FROM osm_160101_polygon WHERE osm_160101_polygon.building is not null ); CREATE INDEX building_visiual_idx ON public.buil...
<reponame>yollelaw/FiiiCoin CREATE TABLE [dbo].[OutputList] ( [Id] BIGINT NOT NULL PRIMARY KEY IDENTITY, [Index] INT NOT NULL, [TransactionHash] VARCHAR(64) NOT NULL, [ReceiverId] VARCHAR(64) NOT NULL, [Amount] BIGINT NOT NULL DEFAULT 0, [Size] int NOT NULL DEFAULT 0, [LockScript] VARCHAR(MAX) N...
<filename>sql/insert.sql -- user(id, name, email, banned); -- room(id, name, createdIn, closedIn, createBy); -- message(id, content, sendedIn, userId, roomId); -- member(id, userId, roomId); -- usuário->Sala->Membro->Mensagem INSERT INTO userr (id, name, email, banned) VALUES (1, 'Taciano', '<EMAIL>', true), (2, 'Jo...
<reponame>MasayukiOzawa/SQLServer-Util<filename>SSMS 標準レポート/サーバーレベル/ロック数ごとの上位トランザクション.sql exec sp_executesql @stmt=N'begin try declare @db_id int declare @db_name sysname declare @resource_type nvarchar(60) declare @obj_or_hobt_id bigint declare @cnt int declare @obj_cnt int declare @cmd nvarchar(max) declare @top_tran...
<gh_stars>1-10 -- ************************************************************************************************** -- Table:ToDoStatus -- ************************************************************************************************** IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'ToDoStatus') AND...
<reponame>nasa/ML-airport-taxi-in with mfa as ( select gufi, carrier, acid, departure_stand_initial_time, aircraft_type, arrival_aerodrome_icao_name, departure_aerodrome_icao_name, case when (arrival_aerodrome_icao_name = :airport_icao) then True else False end as isArrival,...
<gh_stars>0 -- ------------------------------------------------ -- 这是一个处于开发中的版本,变化快,中途变更不兼容 -- ------------------------------------------------ -- 每次发版时注意事项 --- -- 1. datetime(0) 低版本不支持此语法,改为datetime -- 2. utf8mb4 低版本不支持此字符集,改为utf8 -- 3. 加字段后记得排查是否有insert语句,需要同步修改 -- -- ------------------------从1.0.9版本升级--------------...
CREATE TABLE IF NOT EXISTS `#__dkq_messages` ( `id` INT NOT NULL AUTO_INCREMENT, `number` INT NOT NULL, `title` VARCHAR(100), `content` VARCHAR(1024), `image` VARCHAR(255), `online_date` DATE DEFAULT NULL, `offline_date` DATE DEFAULT NULL, `version` INT(10) unsigned NOT NULL DEFAULT 1, `last_update` D...
<filename>SQL/Tables/Permission/TargetRole.sql USE [Certificate_Administration] GO DROP TABLE IF EXISTS [Permission].[TargetRole] GO CREATE TABLE [Permission].[TargetRole] ( [TargetRoleID] INT NOT NULL IDENTITY (1,1) , [TargetDatabaseID] INT NOT NULL , [role_principal_id] INT NOT NULL ...
<gh_stars>0 -- insert_system_actions_for_prgrm_mngr.sql -- insert the actions for the programs_manager service that require authorization. The other services will insert their actions as part of their installation INSERT INTO system_user_schema.system_actions (service, action, action_display_name) VALUES ('progra...
<reponame>ppd-touk/nussknacker<filename>ui/server/src/main/resources/db/migration/postgres/V1_009__AddDeployedVersionBuildInfo.sql<gh_stars>100-1000 ALTER TABLE "deployed_process_versions" ADD COLUMN "build_info" VARCHAR(5000);
CREATE OR REPLACE FUNCTION test_upsert_notification_subscription() RETURNS SETOF TEXT LANGUAGE plpgsql AS $$ DECLARE test_enterprise CONSTANT enterprises.name%TYPE = 'BigCo'; test_organization CONSTANT organizations.name%TYPE = 'BigCo Engineering'; test_project CONSTANT projects.name%TYPE = 'skunkworks'; ...
select IF(v.is_spam, "spam", "ham"), "", REPLACE(c.content, '\n', '\r'), u.email, CONCAT("https://bugs.chromium.org/p/", p.project_name, "/issues/detail?id=", i.local_id), r.email from SpamVerdict v join Comment c on c.id = v.comment_id join Project p on p.project_id = c.project_id join Issue i on i....
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50719 Source Host : 127.0.0.1:3306 Source Schema : zero Target Server Type : MySQL Target Server Version : 50719 File Encoding : 65001 Date: 03/...
<filename>psat_server_web/schema/atlas_objects.sql -- The ATLAS non-diff objects table. This table is used to tag all detections -- with an object id. The equivalent atlas_detections table, although created -- for MySQL will eventually just be a "big data" flat table. drop table if exists `atlas_objects`; create ta...
<reponame>garming/play-framework # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table users ( id bigint auto_increment not null, name varchar(255), constraint pk_users primary key (id...
<gh_stars>0 CREATE TABLE `guild_log_permission` ( `guild_id` VARCHAR(30), `message_delete` TINYINT DEFAULT 0, `message_edit` TINYINT DEFAULT 0, `role_create` TINYINT DEFAULT 0, `role_delete` TINYINT DEFAULT 0, `role_update` TINYINT DEFAULT 0, PRIMARY KEY (`guild_id`), UNIQUE KEY (`guild_id`) ); CREATE TABLE `g...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 10, 2015 at 01:55 AM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 19-01-2018 a las 16:18:51 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
--8 Data for INVENTORY INSERT INTO inventory VALUES (1, 'Fluffy Doll', 5, 2000); INSERT INTO inventory VALUES (2, 'Fluffy Doll', 1500, 500); INSERT INTO inventory VALUES (3, 'Fluffy Doll', 1000, 10); INSERT INTO inventory VALUES (4, 'Fluffy Doll', 2500, 15); INSERT INTO inventory VALUES (5, 'Fluffy Doll', 50, 25); INSE...
<filename>5.2.3/Database/Indexes/AFW_13_PAGE_IR_UK1.sql SET DEFINE OFF; CREATE UNIQUE INDEX AFW_13_PAGE_IR_UK1 ON AFW_13_PAGE_IR (REF_PAGE, LIBL_REGN) LOGGING /
SELECT veh.registration, veh.vin, lmot.odometer_value FROM vehicle veh JOIN (SELECT id, vehicle_class_id FROM model_detail WHERE vehicle_class_id = 5 -- class 5 only AND fuel_type_id = 2 -- 1 = Petrol, 2 = Diesel LIMIT 100 ) AS md ON md.id = veh.model_detail_id JOIN (SELECT vehicle_id, MAX...
<reponame>letuananh/puchikarui<gh_stars>1-10 CREATE TABLE person ( ID INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, age INTEGER );
GRANT ALL PRIVILEGES ON exesscms.* TO 'exesscms'@'%';
SELECT -- fill NULLs w/ mean values AVG(annualrevenue) AS train_avg_annualrevenue, AVG(numberofemployees) AS train_avg_numberofemployees, -- for min-max normalization MAX(annualrevenue) AS train_max_annualrevenue, MIN(annualrevenue) AS train_min_annualrevenue, MAX(numberofemployees) AS train_max_numberofemp...
SELECT ROUTINE_TYPE, ROUTINE_NAME FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA = 'nome do banco de dados aqui'; --https://pt.stackoverflow.com/q/157635/101
<reponame>rsanjabi/airbnb<filename>dbt/models/staging/stg_listings.sql WITH listings AS ( SELECT * FROM {{ source('raw_data', 'raw_listings') }} ), intermediate AS ( SELECT id AS listing_id, name AS listing_name, ...
CREATE TABLE menu_items ( label TEXT PRIMARY KEY NOT NULL, icon TEXT NOT NULL, target TEXT NOT NULL, role TEXT DEFAULT guest, position INTEGER NOT NULL DEFAULT (0) ); INSERT INTO menu_items ("label", "icon", "target", "role", "position") VALUES ('menu.main.test-scenarios', 'la la-globe', 'org.myale...
CREATE OR REPLACE FUNCTION vocabulary_pack.ParseTables ( pDDL_sql text ) RETURNS TABLE ( table_name varchar, column_name varchar, ordinal_position int, column_default varchar, is_nullable varchar, column_type varchar, character_maximum_length int ) AS $BODY$ DECLARE cDevSchema constant varchar(100):='...
-- -- Table structure for table `messages` -- CREATE TABLE `messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(64) NOT NULL, `message` text NOT NULL, `ip` varchar(15) NOT NULL, `date` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for ta...
<filename>pay/lib/sql/install.sql -- ---------------------------- -- Table structure for `config` -- ---------------------------- DROP TABLE IF EXISTS `config`; CREATE TABLE `config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `key` varchar(255) DEFAULT NULL, `value` varchar(255) DEFAULT NULL, `date_created` times...
BEGIN TRANSACTION; DELETE FROM MOVIES; DELETE FROM RECS; DELETE FROM GENRE; DELETE FROM GENRE_LIST; DELETE FROM DIRECTOR; DELETE FROM DIRECTOR_LIST; DELETE FROM ACTOR; DELETE FROM ACTOR_LIST; DELETE FROM KEYWORDS_LIST; DELETE FROM PRODUCTION; DELETE FROM PRODUCTION_LIST; DELETE FROM RATING_INFO; DELETE FROM RATING_BRE...
CREATE OR REPLACE FUNCTION "GET_PERMITS_FOR_SHIPMENT" ( SHIPMENT_ID IN NUMBER ) -- Given a shipment id return the list of permits for that shipment. -- @param shipment_id the primary key value for the shipment to look up permits for. -- @return a clob containing a pipe separated list of all the permits fo...
CREATE TABLE product_category ( id BIGSERIAL PRIMARY KEY, label VARCHAR UNIQUE NOT NULL, name VARCHAR UNIQUE NOT NULL, icon_name VARCHAR NOT NULL ); INSERT INTO product_category (label, name, icon_name) VALUES ('Inne', 'other', 'ico_earth') ON CONFLICT DO NOTHING; ALTER TABLE product ADD COLUMN...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); START TRANSACTION; DO $EF$ BEGIN IF NOT EXISTS(SELECT 1 FRO...
<reponame>evpaassen/spring-data-jdbc-repository<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS USERS ( user_name varchar(256) PRIMARY KEY, date_of_birth DATE NOT NULL, reputation INT NOT NULL, enabled BOOLEAN NOT NULL ); CREATE TABLE IF NOT EXISTS COMMENTS ( id INT AUTO_INCREMENT PRIMARY KEY, user_name varch...
<filename>openGaussBase/testcase/KEYWORDS/Including/Opengauss_Function_Keyword_Including_Case0022.sql -- @testpoint:opengauss关键字Including(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists Including; create group Including with password '<PASSWORD>'; drop group Including; --关键字带双引号-成功 drop group if exists "Including"; c...
<filename>3.sql prompt Question 3 - zhaorui (SELECT DISTINCT dl0.licence_no, p0.name FROM people p0, drive_licence dl0 WHERE p0.sin=dl0.sin AND dl0.class!='nondriving') MINUS (SELECT DISTINCT dl.licence_no, p.name FROM people p, vehicle v, owner o, drive_licence dl WHERE p.sin=o.owner_id AND v.serial_no=o.vehicle_id ...
<filename>database/create_ff_result.sql<gh_stars>0 -- DB for FF (fundamental frequency analysis) CREATE TABLE IF NOT EXISTS ff_result( id INTEGER PRIMARY KEY, songID INTEGER NOT NULL, birdID STRING, taskName ...
CREATE TABLE [dbo].[WaterQuality] ( [WaterQualityID] INT NOT NULL, [Category] NVARCHAR (MAX) NULL );
create table users ( id serial primary key, username varchar(254) unique not null, email varchar(254) unique not null, first_name varchar(512) not null, middle_names varchar(1024), last_name varchar(512) not null );
-- ATIVIDADE 12.06.13 -- Desc: implementação dos XML SCHEMAS no SGDB. -- Autor: <NAME> 407917 -- SGDB designado: DB2 -- INICIO DO BLOCO DE INICIALIZACAO DA BASE DE DADOS -- Retire o comentario da linha 12 apos a primeira execucao DROP DATABASE casaxml; CREATE DATABASE casaxml USING CODESET UTF-8 TERRITORY US; CONN...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2020 at 03:02 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
INSERT INTO burgers (burger_name, devoured) VALUES ("American Hamburger", false); INSERT INTO burgers (burger_name, devoured) VALUES ("American Cheeseburger", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Vegan Burger", false);
DELIMITER | DROP PROCEDURE IF EXISTS Trajet_GetListTrajetByIdItineraire| CREATE PROCEDURE Trajet_GetListTrajetByIdItineraire(IN idIt VARCHAR(254)) BEGIN SELECT trajet.numTrajet, trajet.distanceTrajet, trajet.dureeTrajet, trajet.numVilleD, trajet.numVilleF, trajet.numTarifBaseBillet, vd.nomVille AS VilleD, v...
INSERT INTO `uebs` (`name`,`provincia_id`, `created_at`, `updated_at`) VALUES ('<NAME>',1, '2019-10-13 14:52:07', '2019-11-13 14:52:09'); INSERT INTO `uebs` (`name`,`provincia_id`, `created_at`, `updated_at`) VALUES ('<NAME>',1, '2019-10-13 14:52:07', '2019-11-13 14:52:09'); INSERT INTO `uebs` (`name`,`provincia_id`,...
<gh_stars>1-10 INSERT INTO user_account(id, email, name, password, role) VALUES(gen_random_uuid(), 'local@domain', 'denden', '{noop}password', 'USER'); COMMIT;
<filename>sql/area_education_level_sex_vis.sql<gh_stars>10-100 -- -- PostgreSQL database dump -- 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 = warning; SET search_path = publi...
ALTER TABLE /*_*/oauth_accepted_consumer ADD oaac_oauth_version TINYINT NOT NULL DEFAULT 1;
CREATE DATABASE weather_calendar; USE weather_calendar; create table activities( id int not null auto_increment, ACTIVITY varchar(255) not null, TEMP int not null, createdAt DATETIME default null, updatedAt DATETIME default null, primary key(id) )
create or replace package test_min_grant_user is --%suite(minimum grant user tests) --%suitepath(utplsql.core) --%test(execute join by test) procedure test_join_by_cursor; --%test(execute equal test) procedure test_equal_cursor; --%test(execute not_empty test) procedure test_no...
<filename>Oracle_DB/UninstallAllOracleASPNETProviders.sql<gh_stars>0 @@UninstallOracleWebEvents.sql @@UninstallOracleSiteMap.sql @@UninstallOracleRoles.sql @@UninstallOracleProfile.sql @@UninstallOraclePersonalization.sql @@UninstallOracleMembership.sql @@UninstallOracleASPNETCommon.sql -- Uninstall OracleSe...
IF EXISTS (SELECT name FROM sysindexes WHERE name = 'ACT_IDX_HI_IDENT_LNK_USER') drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_USER; IF EXISTS (SELECT name FROM sysindexes WHERE name = 'ACT_IDX_HI_IDENT_LNK_SCOPE') drop index ACT_HI_IDENTITYLINK.ACT_IDX_HI_IDENT_LNK_SCOPE; IF EXISTS (SELECT name FROM sysindexes W...
CREATE TABLE `member_level` ( `id` bigint(20) unsigned NOT NULL, `name` varchar(100) DEFAULT NULL, `growth_point` int(11) DEFAULT NULL, `default_status` int(1) DEFAULT NULL COMMENT '是否为默认等级:0->不是;1->是', `free_freight_point` decimal(10,2) DEFAULT NULL COMMENT '免运费标准', `comment_growth_point` int(11) DEFAULT N...
<gh_stars>1-10 SELECT AVG(index ) AS index, product, ((AVG(avg_prd_incr) + AVG(avg_innovation) + AVG(avg_coll_incr) + AVG(avg_flexibility)) / 4) AS avg_impact, AVG(avg_hours_saved_week) AS avg_saved_week FROM [YOUR_PROJECT_ID:survey.impact_by_products_rates] WHERE frequency IN ('a few times a month', 'a...
<filename>migrations/sql/V2021.06.16.16.27__populate_camp_detail.sql -- The new camp_detail table has an FK to activity_detail table. Populate the new table with exisiting activity_detail data INSERT INTO camp_detail (select activity_detail_id from ((activity_summary_detail_xref asdx inner join activity_summary ast on ...
<reponame>rune/pgFormatter -- -- CREATE_CAST -- -- Create some types to test with CREATE TYPE casttesttype; CREATE FUNCTION casttesttype_in (cstring) RETURNS casttesttype AS 'textin' LANGUAGE internal STRICT IMMUTABLE; CREATE FUNCTION casttesttype_out (casttesttype) RETURNS cstring AS 'textout...
<gh_stars>0 -------------------------------------------------------------------------- -- @TITLE: Negative tests for UAO -- -------------------------------------------------------------------------- -- UAO row orientation table with compresstype = RLE_TYPE is not supported Drop table if exists sto_uao_neg_RLE; CREATE...
SELECT t1.title FROM public."Technologies" as t1 LEFT JOIN public."Categories" as t2 ON t1.tech_id = t2.tech_id WHERE t2.category='Circuits & Sensors > Hardware: Semiconductors & Integrated Circuits';
{{#has.roles}} revoke all on database {{database}} from {{roleNames}}; {{/has.roles}} {{#has.schemas}} revoke all on schema {{schemaNames}} from {{roleNames}}; revoke all on all tables in schema {{schemaNames}} from {{roleNames}}; revoke all on all sequences in schema {{schemaNames}} from {{roleNames}}; revoke all on a...
/* leave this l:see LICENSE file g:utility k:disk,drives,files,virtual,db,performance,statistics,io v:130707\s.zaglio: give info about disk io c:from <NAME> (http://www.wisesoft.co.uk) */ CREATE proc sp__info_io @opt sysname = null, @dbg int=0 as begin try -- set nocount on added to preven...
-- phpMyAdmin SQL Dump -- version 4.5.3.1 -- http://www.phpmyadmin.net -- -- 主機: 127.0.0.1 -- 產生時間: 2016-07-18 17:06:44 -- 伺服器版本: 5.6.17 -- PHP 版本: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: hobort-db-1.cqu4fxffaity.us-east-2.rds.amazonaws.com -- Generation Time: Oct 18, 2020 at 05:02 AM -- Server version: 10.3.13-MariaDB-log -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "...