sql
stringlengths
6
1.05M
CREATE TABLE `sys_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `user_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '用户名', `login_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '登录名', `password` ...
insert into user values(1,TRUE, '<EMAIL>', 'admin', '$2a$10$qE8OR/FNG7XXfKmCJIjGfuEQEZdBkWCJ2kb0WvJwibg5q2DR8Z2ry'); insert into user values(2,FALSE, '<EMAIL>', 'user', '$2a$10$qE8OR/FNG7XXfKmCJIjGfuEQEZdBkWCJ2kb0WvJwibg5q2DR8Z2ry');
USE [master] GO /****** Object: Database [FPFL] Script Date: 9/24/2021 7:21:52 AM ******/ DROP DATABASE [FPFL] GO /****** Object: Database [FPFL] Script Date: 9/24/2021 7:21:52 AM ******/ CREATE DATABASE [FPFL] CONTAINMENT = NONE ON PRIMARY ( NAME = N'FPFL', FILENAME = N'C:\Program Files\Microsoft SQL Ser...
SET DEFINE OFF; CREATE UNIQUE INDEX AFW_13_RESRC_PK ON AFW_13_RESRC (SEQNC) LOGGING /
<reponame>coderbunker/timesheet-backend -- snapshot api and store \ir api/schema.sql \ir api/snapshot.sql \ir api/warnings.sql \ir api/functions.sql
--liquibase formatted sql --changeset uk.gov.pay:add_column_gateway_account_id_on_products ALTER TABLE products ADD COLUMN gateway_account_id BIGINT NOT NULL DEFAULT 0; --rollback alter table products drop column gateway_account_id;
<gh_stars>10-100 CREATE PROCEDURE __NAME__() BEGIN END
SELECT t.Owner, t.Tablespace_Name, t.Table_Name, t.Row_Movement, o.CREATED, t.Temporary, 'alter table '||t.owner||'.'||t.table_name||' ENABLE ROW MOVEMENT;' FROM All_Objects o, All_Tables t WHERE 1 = 1 AND o.Object_Type = 'TABLE' AND o.Object_Name = t.Table_N...
-- 1004 Number of persons with at least one condition occurrence, by condition_concept_id by calendar year by gender by age decile --HINT DISTRIBUTE_ON_KEY(stratum_1) WITH rawData AS ( select ce1.condition_concept_id as stratum_1, YEAR(condition_era_start_datetime) as stratum_2, p1.gender_concept_id as s...
<gh_stars>0 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 values (1,'Samsung'), (2,'Apple'), (3,'Meizu'...
WITH validator_fees AS ( SELECT DISTINCT ON(account_address) account_address, validator_fee FROM validator_epochs ORDER BY account_address, epoch DESC ) SELECT validators.public_key, validators.identity_name, validators.start_height, validators.start_time, validators.last_height, validators.last_time,...
<filename>benchmark/hive/define_schema.sql create table hits_10m_raw ( WatchID BIGINT, JavaEnable SMALLINT, Title STRING, GoodEvent SMALLINT, EventTime TIMESTAMP, EventDate TIMESTAMP, CounterID BIGINT, ClientIP BIGINT, RegionID BIGINT, UserID BIGINT, CounterClass TINYINT, ...
<gh_stars>0 ALTER TABLE pgweb ADD COLUMN textsearchable_index_col tsvector GENERATED ALWAYS AS (to_tsvector('english', coalesce(title, '') || ' ' || coalesce(body, ''))) STORED;
DELIMITER // DROP PROCEDURE IF EXISTS getAllLinks // CREATE PROCEDURE getAllLinks() BEGIN SELECT * FROM links; END // DELIMITER ;
<gh_stars>0 DROP DATABASE IF EXISTS inspire; CREATE DATABASE inspire; USE inspire; CREATE TABLE quotes ( id SERIAL, quote VARCHAR(255), PRIMARY KEY(id) );
CREATE ALGORITHM = UNDEFINED DEFINER = `admin`@`192.168.1.2` SQL SECURITY DEFINER VIEW `user_vw` AS SELECT `u`.`id` AS `UserID`, `u`.`uid` AS `UserUID`, `up`.`name` AS `Role` FROM (`user` `u` JOIN `user_permission` `up` ON ((`up`.`id` = `u`.`user_permissio...
/* Navicat PGSQL Data Transfer Source Server : local Source Server Version : 100500 Source Host : localhost:5432 Source Database : ConsultaCiudadana Source Schema : public Target Server Type : PGSQL Target Server Version : 100500 File Encoding : 65001 Date: 2018-11-15 10:00...
<gh_stars>0 -- Watersheds for larger basins in BC -- Similar to https://catalogue.data.gov.bc.ca/dataset/bc-major-basins-river-forecast-centre -- but - Based on FWA linework and includes additional smaller units. -- Currently only used to speed generation of watershed polygons -- todo: add more basins for greater utili...
CREATE TABLE IF NOT EXISTS `sys_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(20) NOT NULL, `name` varchar(200) NOT NULL, `code` varchar(50) NOT NULL, `description` varchar(1000) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; INSERT INTO `tms`.`sys_...
<reponame>dataElisabeth/PShell_runTSQL<filename>Scripts/admin/backupStatus.sql<gh_stars>0 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SET NOCOUNT ON SELECT COALESCE(SERVERPROPERTY('InstanceName'),@@SERVERNAME) AS instance, D.[name] AS [database_name] , D.[recovery_model_desc] , BS1.[last_log_backup_date]...
<gh_stars>1-10 CREATE TABLE [dbo].[CalendarEventField] ( [Id] INT NOT NULL, [Name] NVARCHAR (250) NOT NULL, [FieldString] NVARCHAR (250) NOT NULL, CONSTRAINT [PK_LocalCalendarEventField] PRIMARY KEY CLUSTERED ([Id] ASC) );
insert into EG_MODULE (ID,NAME,ENABLED,CONTEXTROOT,PARENTMODULE,DISPLAYNAME,ORDERNUMBER) VALUES (NEXTVAL('SEQ_EG_MODULE'),'WorksEstimatePhotograph','true',null,(select id from eg_module where name = 'Works Management'),'Physical Progress Tracker', 3); insert into EG_ACTION (ID,NAME,URL,QUERYPARAMS,PARENTMODULE,ORDERNU...
-- file:numeric_big.sql ln:471 expect:true INSERT INTO num_exp_log10 VALUES (9,'7.7392833542617512836252234334562849055609318054287596814119704578122795442504323895113822634393240856897347101880410490466604805759586868599429805995950367690907477813592172483015445874340773768122930348484182048343885041691663507702572488...
<gh_stars>1-10 # ----------------------------------------------------------------------- # AP_AUTO_APRV_EXCL_T # ----------------------------------------------------------------------- drop table if exists AP_AUTO_APRV_EXCL_T / CREATE TABLE AP_AUTO_APRV_EXCL_T ( FIN_COA_CD VARCHAR(2) , ACCOUNT_NBR VARCH...
<gh_stars>0 SET VERIFY OFF spool /opt/oracle/crdb/postDBCreation.log append host perl /opt/oracle/product/12.1.0.2/dbhome_1/rdbms/admin/catcon.pl -n 1 -l /opt/oracle/crdb -b catbundleapply /u01/app/oracle/product/12.1.0.2/dbhome_1/rdbms/admin/catbundleapply.sql; conn /as sysdba set echo on create spfile FROM pfile='/op...
<reponame>gil0109/corteza-server ALTER TABLE `sys_user` DROP INDEX `uid_satosa`, ADD INDEX `uid_satosa` (`satosa_id`) USING BTREE;
CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` varchar(20) NOT NULL, `stu_no` BIGINT NOT NULL COMMENT '学号', `create_time` datetime COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `student`(`name`, `stu_no`) VALUES ('aaa', 1001), ('bbb', 1...
<gh_stars>1-10 CREATE SEQUENCE safeseed.seqnum INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 31 CACHE 1; CREATE TABLE safeseed.system_setting ( system_setting VARCHAR(20) NOT NULL , value TEXT , enabled BOOLEAN , PRIMARY KEY (system_setting) ); CREATE TABLE safeseed.audit ( ...
CREATE PROCEDURE [dbo].[SecurityKeys_BulkCreate] @groupId int, @keys XML /* example: <keys> <key name="manage-users" value="1" isplatform="1"></key> <key name="manage-security" value="1" isplatform="1"></key> <key name="upload" value="0" isplatform="1"></key> </keys> */ AS DECLARE @hdoc INT DECL...
-- Add new field [allow_password_reset] to table [account] alter table account add allow_password_reset boolean NOT NULL DEFAULT false; -- Add new field [allow_password_reset] to table [account] alter table password_reset_token add pin character varying(20);
-- +migrate Up UPDATE client_identity SET metadata = text( json_build_object( 'redirectURLs', json(json(metadata)->>'redirectURLs'), 'redirect_uris', json(json(metadata)->>'redirectURLs') ) ) WHERE (json(metadata)->>'redirect_uris') IS NULL;
alter table micromall_goods AUTO_INCREMENT=100000; alter table micromall_brand AUTO_INCREMENT=100000; alter table micromall_category AUTO_INCREMENT=100000; alter table micromall_issue AUTO_INCREMENT=100000;
<gh_stars>10-100 START TRANSACTION; -- update the version UPDATE sec_schema_version SET version_value='46' WHERE version_key='schema_patch'; -- update fx digitals ALTER TABLE sec_fxdigitaloption ADD COLUMN payment_currency_id BIGINT; -- copy put ccy to payment ccy for existing securities UPDATE sec_fxdig...
<gh_stars>10-100 select col1, col2, col3 from table1 order by col1, col2, col3;
INSERT INTO client_credentials (id, username, pin) VALUES (1, 'arthur1', '4847383748'); INSERT INTO client_credentials (id, username, pin) VALUES (2, 'arthur2', '12345'); INSERT INTO client_credentials (id, username, pin) VALUES (3, 'zaphod', '1234567890'); INSERT INTO client_credentials (id, username, pin) VALUES (4, ...
<gh_stars>1-10 /* ----------------------------------------------------------------------------- Delete all data from the PIMS_LEASE_PURPOSE_TYPE table and repopulate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Author Date Comment ------------ ----------- ----------...
CREATE TEMP TABLE IF NOT EXISTS taxes_data ( id integer, ident_id integer, name character varying(80), tax_classification tax_classification_t, start_date date, end_date date, CONSTRAINT taxes_data_pkey PRIMARY KEY (id) ); -- No rows found INSERT INTO data.taxes(id, ident_id, name, tax_classification, s...
<reponame>Bhaskers-Blu-Org1/BlueMatter /* Copyright 2001, 2019 IBM Corporation * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this lis...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 22 2019 г., 20:21 -- Версия сервера: 5.7.24 -- Версия PHP: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>0 INSERT INTO `menu` (`uuid`, `name`, `link`, `parentid`, `displayorder`, `createdby`, `modifiedby`, `creationdate`, `modifieddate`, ...
ALTER TABLE orders ADD platform TEXT;
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字to(保留),作为外部数据源名 --关键字不带引号-合理报错 create data source to; --关键字带双引号-成功 drop data source if exists "to"; create data source "to"; drop data source "to"; --关键字带单引号-合理报错 drop data source if exists 'to'; create data source 'to'; --关键字带反引号-合理报错 drop data source if ex...
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.1.41 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */...
-- move data containing tables ALTER TABLE events RENAME TO tmp_events; ALTER TABLE plots RENAME TO tmp_plots; -- recreate the tables we want CREATE TABLE public.events ( id integer NOT NULL, sweeper_id bigint, "timestamp" timestamp WITHOUT TIME ZONE, event_type public.eventtype, ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Apr 2020 pada 09.36 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
/* SQLyog Ultimate v8.55 MySQL - 5.5.5-10.4.11-MariaDB : Database - db_mon ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 30, 2018 at 06:02 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* Navicat Premium Data Transfer Source Server : maria 7.3 Source Server Type : MariaDB Source Server Version : 100410 Source Host : localhost:3306 Source Schema : yemoncash Target Server Type : MariaDB Target Server Version : 100410 File Encoding : 65001 Date: 08/06...
CREATE TABLE `empresa` ( `empr_id` bigint(20) NOT NULL AUTO_INCREMENT, `cnpj` varchar(255) NOT NULL, `data_atualizacao` datetime NOT NULL, `data_criacao` datetime NOT NULL, `razao_social` varchar(255) NOT NULL, primary key(empr_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `funcionario` ( `func_...
<filename>hive/5-select-max-min-prices.sql SET hive.vectorized.execution.enabled=true; SET hive.vectorized.execution.reduce.enabled=true; SELECT company, day, maxHigh, minLow FROM max_min_prices_by_day;
SET DEFINE OFF; ALTER TABLE AFW_30_ITEM_CARNT_PRODT ADD ( CONSTRAINT AFW_30_ITEM_CARNT_PRODT_FK2 FOREIGN KEY (REF_CAS_UTILS) REFERENCES AFW_30_CAS_UTILS (SEQNC) ON DELETE CASCADE ENABLE VALIDATE) /
<reponame>icrc-fdeniger/waterboard -- * -- Create superuser `<EMAIL>` with password `<PASSWORD>` -- * INSERT INTO public.webusers_webuser (id, password, last_login, email, full_name, is_active, is_staff, is_readonly) VALUES (1, 'pbkdf2_sha256$36000$sY5yuQ0CPLoY$nIMAXnQnL5IhxLwqAWQwL6SQ1IPp0X4yNd20trNiR+8=', null, '<EMA...
INSERT INTO `Settings` (`name`, `value`, `description`, `meta`) VALUES ('System: Default Country', '0', 'Set the default Country','[ "value", {"label":"Country","type":"select2","remote-source":["Country","code","name"]}]'); INSERT INTO `Settings` (`name`, `value`, `description`, `meta`) VALUES ('Attendance: Overt...
CREATE TABLE "Artist" ( "ArtistId" SERIAL, "Name" VARCHAR(120) NULL, CONSTRAINT PK_Artist PRIMARY KEY ("ArtistId") ); CREATE TABLE "Album" ( "AlbumId" SERIAL, "Title" VARCHAR(160) NOT NULL, "ArtistId" INT NOT NULL, CONSTRAINT PK_Album PRIMARY KEY ("AlbumId"), CONSTRAINT FK_AlbumAr...
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Version : 50532 Source Host : localhost:3306 Source Database : bibtex Target Server Type : MYSQL Target Server Version : 50532 File Encoding : 65001 Date: 2014-02-16 12:21:27 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
<filename>InMemoryOltpTestDb/Queue_Schema_Name/Stored Procedures/FindSubscription.sql  CREATE PROCEDURE [Queue_Schema_Name].[FindSubscription] @name nvarchar(255) WITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNER AS BEGIN ATOMIC WITH (TRANSACTION ISOLATION LEVEL = SNAPSHOT, LANGUAGE = N'us_englis...
<reponame>JamesMarino/CSCI235 SET ECHO ON; SPOOL task4.lst; -- Question 1 SELECT DEPARTMENT.DNAME, DEPARTMENT.BUDGET, DEPTLOC.CITY, DEPTLOC.STREET#, DEPTLOC.BLDG#, DEPTLOC.LEVEL# FROM DEPTLOC JOIN DEPARTMENT ON DEPARTMENT.DNAME = DEPTLOC.DNAME; -- Question 2 SELECT DEPARTMENT.DNAME, PROJECT.TITLE FROM DEPARTMENT JOIN...
<reponame>chrisoldwood/SS-Unit /** * \file * \brief Unit tests for the ReportCondition enumeration. * \author <NAME> */ create procedure test._@Test@_ReportCondition_IsValid_ShouldReturnTrue_WhenValid as declare @true bit = 1; declare @actual bit; set @actual = ssunit.ReportCondition_IsValid(ssunit.ReportCond...
LOAD DATA INFILE '/var/lib/mysql-files/I80_sample.txt' INTO TABLE I80Davis FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (date_time, station_id, @vcol3, @vcol4, @vcol5, @vcol6, @vcol7, @vcol8, @vcol9, @vcol10, @vcol11, @vcol12, @vcol13, @vcol14, @vcol15, @vcol16, @vcol17, @vcol18, @vcol19, @vcol20, @vcol21, @v...
<reponame>futurewei-cloud/qpmodel -- start query 89 in stream 0 using template query89.tpl select * from( select i_category, i_class, i_brand, s_store_name, s_company_name, d_moy, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) over (partition by i_category, i_brand, s_stor...
/* MySQL Database Server Type : MYSQL Server Version : 50541 File Encoding : 65001 Date: 2015-05-11 11:54:02 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `programmers` -- ---------------------------- DROP TABLE IF EXISTS `programmers`; CREATE TABLE `programmers` ( `id` i...
-- count.test -- -- execsql { -- INSERT INTO t1 VALUES(1, 2); -- INSERT INTO t1 VALUES(3, 4); -- SELECT count(*) FROM t1; -- } INSERT INTO t1 VALUES(1, 2); INSERT INTO t1 VALUES(3, 4); SELECT count(*) FROM t1;
-- file:float4.sql ln:42 expect:true SELECT 'nan'::float4 / 'nan'::float4
ALTER TABLE workflow ADD workflowBody jsonb;
<filename>app/TW.Vault.Migration/res/New_Conquer_Update.sql DECLARE access_group RECORD; army_id_stationed int8; army_id_traveling int8; army_id_owned int8; army_id_losses int8; army_id_at_home int8; army_id_supporting int8; agid int8; BEGIN FOR access_group IN SELECT id FROM security.access_group WHERE w...
-- * Copyright 2017 Makoto Consulting Group, Inc. -- * -- * 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...
UPDATE creature_template SET ScriptName='npc_tracy_proudwell' WHERE entry=18266;
<gh_stars>100-1000 /************************************************************************** * Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obta...
DROP TABLE IF EXISTS tab; CREATE TABLE tab (haystack String, pattern String) engine = MergeTree() ORDER BY haystack; INSERT INTO tab VALUES ('haystack', 'pattern\\'); -- const pattern SELECT haystack LIKE 'pattern\\' from tab; -- { serverError 25 } -- non-const pattern SELECT haystack LIKE pattern from tab; -- { se...
<filename>dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql SET enable_debug_queries = 1; SET enable_optimize_predicate_expression = 0; SET joined_subquery_requires_alias = 0; DROP TABLE IF EXISTS t1_00849; DROP TABLE IF EXISTS t2_00849; DROP TABLE IF EXISTS t3_00849; DROP TABLE IF EXISTS t4_00849; CREATE ...
<filename>communote/persistence/src/main/resources/com/communote/server/liquibase/update/v1.1.3/mysql/InnoDB_5_Change_Engine.sql<gh_stars>10-100 ALTER TABLE channel_configuration ENGINE InnoDB; ALTER TABLE configuration ENGINE InnoDB; ALTER TABLE configuration_client ENGINE InnoDB; ALTER TABLE configuration_confluen...
<filename>engine/src/test/resources/org/opencds/cqf/cql/engine/execution/ExpressionCacheTest.cql library ExpressionCacheTest include ExpressionCacheTestCommon called "Common" define "Expression": 5 define "IncludedExpression": "Common"."Expression"
<gh_stars>0 USE [bisolutions_vvcb] GO /****** Object: StoredProcedure [dbo].[BCOLLECTCHARGESFROMACCOUNT_GetByCodeDebit] Script Date: 03/10/2014 1:21:19 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[BCOLLECTCHARGESFROMACCOUNT_GetByCodeDebit](@DebitCode nvarchar(30))...
/* contrib/cube/cube--1.0.sql */ -- Create the user-defined type for N-dimensional boxes CREATE FUNCTION cube_in(cstring) RETURNS cube AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT; CREATE FUNCTION cube(float8[], float8[]) RETURNS cube AS 'MODULE_PATHNAME', 'cube_a_f8_f8' LANGUAGE C IMMUTABLE STRICT; CREATE FUNC...
<reponame>xiaoyangren6514/myoa<gh_stars>0 -- MySQL dump 10.13 Distrib 5.6.12, for Win32 (x86) -- -- Host: localhost Database: myoa -- ------------------------------------------------------ -- Server version 5.6.12-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET...
<reponame>jqueguiner/cds -- +migrate Up ALTER TABLE services ADD COLUMN config jsonb; -- +migrate Down ALTER TABLE services DROP COLUMN config;
<reponame>spabata0/assignmentdoctor<filename>assignmentdoctor.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Mar 10, 2021 at 03:39 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; S...
<reponame>AntoniyaIvanova/SoftUni CREATE TABLE Categories( Id INT PRIMARY KEY NOT NULL, CategoryName NVARCHAR(50) NOT NULL, DailyRate DECIMAL(10,2) NOT NULL, WeeklyRate DECIMAL(10,2) NOT NULL, MonthlyRate DECIMAL(10,2) NOT NULL, WeekendRate DECIMAL(10,2) NOT NULL ) INSERT INTO Categories (Id, CategoryName, ...
CREATE TABLE addresses ( address_id UUID DEFAULT uuid_generate_v4 (), country character VARYING(60) NOT NULL, state character VARYING(60) NOT NULL, city character VARYING(60) NOT NULL, zip_code character VARYING(10) NOT NULL, street_address character VARYING(120) NOT NULL, apartment_number c...
USE employeeDB; INSERT INTO department (name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal"); INSERT INTO role (title, salary, department_id) VALUES ("Sales Lead", 100000, 1),("Salesperson",80000,1), ("Lead Engineer", 150000, 2), ("Software Engineer", 120000, 2), ("Accountant", 125000, 3), ("Legal Team L...
<reponame>dario-gms/Modelagem-de-Dados<filename>Script2.3.sql SELECT * FROM tb_funcionario WHERE SEXO = 'F'; SELECT * FROM tb_object_funcionario WHERE SEXO = 'F'; SELECT * FROM tb_object_funcionario WHERE JSON_EXTRACT(`JSON`,"$.Sexo") = 'F'; SELECT REPLACE(JSON_EXTRACT(`JSON`,"$.Cpf"),"""","") AS CPF, REPLACE(JSON_EXT...
<gh_stars>0 DROP DATABASE IF EXISTS employeeTracker_DB; CREATE DATABASE employeeTracker_DB; USE employeeTracker_DB; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE role( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary ...
<reponame>palivodak/crid-test CREATE SCHEMA `test` DEFAULT CHARACTER SET utf8; CREATE TABLE `test`.`user` ( `ID` INT(8) NOT NULL AUTO_INCREMENT PRIMARY KEY, `NAME` VARCHAR(255) NOT NULL, `AGE` INT NOT NULL, `IS_ADMIN` BIT(1) NOT NULL DEFAULT false, `CREATED_DATE` TIMESTAMP DEFAULT CURRENT_TIMESTAMP); INSERT INTO `tes...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Vært: localhost -- Genereringstid: 08. 03 2020 kl. 18:57:08 -- Serverversion: 10.4.11-MariaDB -- PHP-version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
BEGIN; CREATE TABLE IF NOT EXISTS server ( id SERIAL PRIMARY KEY, name TEXT, processor_id INTEGER REFERENCES processor(id), cores INTEGER, threads INTEGER, memory INTEGER, storage_id INTEGER REFERENCES storage(id), price DECIMAL ); INSERT INTO server (name, processor_id, cores, threads, memory, storag...
<reponame>liveprojects-melman/gaddum_app DELETE from playlists WHERE playlists.id = "replacement_parameter_id";
SET DEFINE OFF; CREATE UNIQUE INDEX AFW_17_COURL_ENTRA_PK ON AFW_17_COURL_ENTRA (SEQNC) LOGGING /
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Jul 19, 2018 at 05:16 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<reponame>Akshu41/ci_demo<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 04, 2020 at 09:25 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
create table "postgres"._airbyte_test_normalization."dedup_exchange_rate_stg" as ( with __dbt__cte__dedup_exchange_rate_ab1 as ( -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema -- depends_on: "postgres".test_normaliza...
<filename>db_DataHandwerk/repo/Views/RepoObject_gross2.sql  CREATE View repo.RepoObject_gross2 As Select ro.RepoObject_guid , ro.RepoObject_schema_name , ro.RepoObject_name , ro.RepoObject_type , ro.RepoObject_type_name , ro.has_different_sys_names , ro.has_execution_plan_issue , ro.has_get_reference...
INSERT INTO `admin_menu` ( `parent_id`, `order`, `title`, `icon`, `uri`, `permission`, `created_at`, `updated_at`) VALUES ( 0, 1, 'تنظیمات سایت', 'fa-bars', 'page-settings', NULL, '2020-03-12 16:37:59', '2020-03-12 16:41:47'), ( 0, 2, 'لوگوی سایت', 'fa-bars', 'page-settings/1/edit', NULL, '2020-03-12 16:38:32', '2020...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 24, 2014 at 02:31 PM -- 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 */; /...
create table bv.lineitem ( l_orderkey integer not null, l_partkey integer not null, l_suppkey integer not null, l_linenumber integer not null, l_quantity decimal(15, 2) not null, l_extendedprice decimal(15, 2) not null, l_discount dec...
-- migrations to fix a number of "Lazy MySQL" issues so we can export our data into postgres UPDATE restaurant_payment_type SET payment_method = NULL WHERE payment_method = ''; -- remove NOT NULL restriction ALTER TABLE `order` MODIFY `processor` enum('stripe','balanced') DEFAULT 'stripe'; UPDATE `order` SET proces...
<reponame>Shuttl-Tech/antlr_psql -- file:alter_table.sql ln:369 expect:true create table nv_child_2010 () inherits (nv_parent)
create secure view cool_view as select column_1, column_2 from some_table
<reponame>jsecomb/Homework12<filename>schema.sql DROP DATABASE IF EXISTS employees; CREATE DATABASE employees; USE employees; CREATE TABLE departments ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, department VARCHAR(30) UNIQUE NOT NULL ); CREATE TABLE roles ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, titl...
<filename>src/main/resources/schema-h2.sql CREATE TABLE USER ( user_id NUMBER(19) IDENTITY PRIMARY KEY, user_email VARCHAR2(50) NOT NULL, username VARCHAR2(50) NOT NULL, user_password VARCHAR2(64) NOT NULL );
<filename>conf/evolutions/default/3.sql # --- !Ups alter table "EVENT" ADD COLUMN "DINING_OPTIONAL" boolean DEFAULT FALSE; # --- !Downs