sql
stringlengths
6
1.05M
<gh_stars>0 DROP TRIGGER IF EXISTS autoreply_news; CREATE TRIGGER autoreply_news AFTER INSERT ON student FOR EACH ROW INSERT INTO onlinerequest.alertstudent (phone,text,status) VALUES (CONCAT('+2376',RIGHT(NEW.phone,8)),CONCAT(NEW.civility,' ',NEW.name,' ',NEW.surname,'(',NEW.matricule,') You informed that you...
USE data_extracts; -- ahui 10/2/2020 DROP PROCEDURE IF EXISTS gh2execute9; DELIMITER // CREATE PROCEDURE gh2execute9() BEGIN -- Medications (cardiovascular) DROP TABLE IF EXISTS gh2_MedCardioDataset; CREATE TABLE gh2_MedCardioDataset ( pseudo_id VARCHAR(255), pseudo_nhsnumber VARCHAR(...
-- ----------------------------------------------------- -- Table `custom_link_group` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `custom_link_group` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL, `description` VARCHAR(255) NOT NULL, PRIMARY KEY (`i...
/****** Object: Table [dbo].[T_EUS_Proposals] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_EUS_Proposals]( [Proposal_ID] [varchar](10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Title] [varchar](2048) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [State_ID] [int] NOT NULL...
create unique index UKcbplvmi13pc5p4el3h2c4odu3 on flight (id_tag);
USE [INFRA] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[VotacaoTarefa]( [Id] [numeric](10, 0) IDENTITY NOT NULL, [Id_tarefa] [numeric](10, 0) NOT NULL, [Id_usuario] [numeric](10, 0) NOT NULL, [Tempo] [numeric](3, 0) NOT NULL, CONSTRAINT [VotacaoTarefa_Id] PRIMARY KEY CLUSTERED ( [I...
drop database if exists procedure1; create database procedure1; use procedure1; create table cliente( codigo int auto_increment primary key, nome varchar(60) not null unique, endereco varchar(40) not null, sexo varchar(1), data_cadastro timestamp default current_timestamp ); delimiter kkkkkkkkkkkkk create procedure i...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 21, 2017 at 01:02 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
-- Your SQL goes here CREATE OR REPLACE FUNCTION public.delete_gurl(id_value INTEGER) RETURNS VOID AS $$ BEGIN DELETE FROM public.gurls WHERE id = id_value; END; $$ LANGUAGE plpgsql;
-- Exercise 1 - Part 2 SELECT product_name, list_price, date_added FROM products ORDER BY date_added;
CREATE EXTENSION IF NOT EXISTS postgres_fdw; CREATE EXTENSION IF NOT EXISTS postgis; -- create server connection on profiles end CREATE SERVER IF NOT EXISTS datastore FOREIGN DATA WRAPPER postgres_fdw OPTIONS (host 'YOUR CKAN POSTGRES HOST', dbname 'YOUR DATASTORE DBNAME', port '5432'); -- map our user accoun...
DROP TABLE IF EXISTS test_papers;
<gh_stars>0 IF EXISTS (SELECT 1 FROM sys.procedures WHERE [name] = 'DeleteFileByDirectoryID') BEGIN DROP PROCEDURE [dbo].[DeleteFileByDirectoryID] END GO CREATE PROCEDURE [dbo].[DeleteFileByDirectoryID] @DirectoryID UNIQUEIDENTIFIER AS BEGIN DECLARE @local_DirectoryID UNIQUEIDENTIFIER = @DirectoryID DELETE FROM ...
CREATE OR REPLACE FUNCTION refresh_nist_materialized_views() RETURNS void LANGUAGE plpgsql AS $$ BEGIN REFRESH MATERIALIZED VIEW nist.dept_incidents; REFRESH MATERIALIZED VIEW nist.coded_fires; REFRESH MATERIALIZED VIEW nist.casualties_fire; REFRESH MATERIALIZED VIEW nist.tract_years; REFRESH MATERI...
<reponame>dejano/banka-i-sinovi<filename>src/main/resources/model/procedures/bankAccountCancelProcedure.sql -- ============================================= -- Author: <NAME> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[cance...
-- ----------------------------------------------------- -- Table `otm1` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `otm1` ( `id2` VARCHAR(45) NOT NULL, `name1` VARCHAR(45) NOT NULL, PRIMARY KEY (`id2`)); -- ----------------------------------------------------- -- Tabl...
CREATE VIEW [rd].[AllowedUsers] AS SELECT [Dbo].AllowedUsers.[Id], [UserID], [EnviromentId], ApplicationId, AspNetUsers.UserName FROM [Dbo].AllowedUsers INNER JOIN AspNetUsers ON UserID = AspNetUsers.Id
ALTER TABLE "user" ALTER COLUMN fullname SET DEFAULT ''::text;
create table b( id int, id_a int not null, value text ); alter table b add primary key(id);
<filename>app/config/sql/structure/20090521-1-sc-donationuser.sql ALTER TABLE `donations` ADD `fname` VARCHAR( 64 ) NOT NULL , ADD `lname` VARCHAR( 64 ) NOT NULL , ADD `email` VARCHAR( 128 ) NOT NULL ;
GO DROP TABLE cmd_param GO CREATE TABLE IF NOT EXISTS `cmd_param` ( `id` int(11) AUTO_INCREMENT NOT NULL, `cmd_id` int(11) not null, `parent_id` int(11), `level` varchar(5) DEFAULT NULL, `status` varchar(1) DEFAULT '1', `woodenleg` varchar(50) DEFAULT NULL, `param_name` varc...
--Create a master key in database. You only need to create a master key once per database. CREATE MASTER KEY GO
/* 1369. Get the Second Most Recent Activity Table: UserActivity +---------------+---------+ | Column Name | Type | +---------------+---------+ | username | varchar | | activity | varchar | | startDate | Date | | endDate | Date | +---------------+---------+ This table does not contain p...
INSERT INTO department (name) VALUES ('Management'), ('Sales'), ('Warehouse'), ('Reception'), ('Human Resources'), ('Accounting'); INSERT INTO role (title, salary, department_id) VALUES ('Reginal Manager', 60000, 1), ('Salesman', 80000, 2), ('Worker', 70000, 3), ('Recep...
<reponame>soohyunkim/my-learning-analytics ALTER TABLE course ADD canvas_id CHAR(255) NOT NULL AFTER id; UPDATE course SET canvas_id = RIGHT(id,6); ALTER TABLE course DROP INDEX `PRIMARY`, ADD PRIMARY KEY (canvas_id);
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50624 Source Host : 127.0.0.1:3306 Source Database : rmdt-demo-goods Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2019-02-03 15:44:00 */ SET FOREIGN_KEY_CHECKS=0; ...
/****** Object: View [dbo].[V_Capture_Jobs_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW dbo.V_Capture_Jobs_List_Report AS SELECT J.Job, J.Priority, J.Script, JSN.Name AS Job_State_B, TX.Num_Steps AS Steps, TJSX.Step_Tool + ':' + TSSNX.Name AS Active_Step, J.Dataset, ...
-- Adminer 4.3.1 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 `demo_machine1_user`; CREATE TABLE `demo_machine1_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `phone` varchar(11) NOT NULL COMMENT '手机号码',...
<reponame>angujo/ETL-CDMBuilder<filename>CDMv4/source/Builders/org.ohdsi.cdm.builders.truven/Truven/Lookups/DeathCodes.sql select '7616', 1 union select '798', 1 union select '7980', 1 union select '7981', 1 union select '7982', 1 union select '7989', 1 union select 'E9131', 1 union select 'E978', 1
<reponame>ajayk/opstrace ALTER TABLE "public"."user" DROP COLUMN "deactivated" CASCADE;
SET enable_optimize_predicate_expression = 0; select * from system.one l cross join system.one r; DROP TABLE IF EXISTS t1_00826; DROP TABLE IF EXISTS t2_00826; CREATE TABLE t1_00826 (a Int8, b Nullable(Int8)) ENGINE = Memory; CREATE TABLE t2_00826 (a Int8, b Nullable(Int8)) ENGINE = Memory; INSERT INTO t1_00826 val...
<filename>Neo4j & kafka/From_tsv_2_neo.cql CREATE INDEX ON :Track(id); CREATE INDEX ON :Track(name); //headers: id gid name artist_credit length USING PERIODIC COMMIT 10000 LOAD CSV WITH HEADERS FROM "file:///track_wo_quotes.tsv" AS row FIELDTERMINATOR '\t' WITH DISTINCT row.id AS id, row.gid AS gid, row.name AS name, ...
create table Offline_to_Ancillary (prim_key INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, Offline_fk INT NOT NULL COMMENT 'refers to row in Parameters', Ancillary_fk INT UNSIGNED NOT NULL COMMENT 'refers to row in Ancillary', status VARCHAR(32) not null default 'active' COMMEN...
<gh_stars>1-10 -- create a vclass and using column naming as '_' starting create vclass DML_0001 ( _intcol1 integer, int_col2 integer ) ; drop vclass DML_0001;
<reponame>xeroticikot/hbr-dash -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 18, 2018 at 08:47 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
CREATE TABLE cartoons ( id SERIAL PRIMARY KEY NOT NULL, title CHARACTER VARYING(100) NOT NULL, category_id INTEGER NOT NULL, sort_local INTEGER NOT NULL, sort_general INTEGER NOT NULL, archived BOOLEAN DEFAULT false, color BOOLEAN DEFAULT false ); INSERT INTO cartoons(title, category_id, sort_local, sor...
DROP DATABASE IF EXISTS pizza_db; CREATE DATABASE pizza_db;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 04 Jan 2018 pada 02.00 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
<reponame>syahifarhmt/pi<filename>blog_profile.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 23, 2018 at 04:18 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSA...
drop table characters; create table characters (id serial primary key ,image varchar(255), name varchar(255),species varchar(255),alive varchar(255),gender varchar(255), house varchar(255),patronus varchar(255));
<filename>spesialist-felles/src/main/resources/db/migration/V135__utbetaling_type_som_varchar.sql ALTER TYPE utbetaling_type ADD VALUE 'FERIEPENGER';
<reponame>navikt/yrkesskade-kodeverk -- Ny kategori / rolletype INSERT INTO kategori (kategori_id, navn, beskrivelse) VALUES (4, 'tiltaksdeltaker', 'I tiltak regi av NAV'); -- Kategori 'I tiltak regi av NAV' / Type Tidsrom INSERT INTO kategori_type (kategori_id, type_id) VALUES (4, 0); -- Kategori 'I tiltak regi av NA...
ALTER TABLE t1 DROP COLUMN hire_date;
DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` BIGINT(19) NOT NULL COMMENT '用户ID', `username` VARCHAR(40) DEFAULT NULL COMMENT '用户名', `password` VARCHAR(68) DEFAULT NULL COMMENT '密码密文', `salt` VARCHAR(20) DEFAULT NULL COMMENT '加盐', `created_time` DATETIME DEFAULT NULL COMMENT '创建时间', `c...
DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id_role` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id_role`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/* Warnings: - Added the required column `deviceId` to the `disk` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "disk" ADD COLUMN "deviceId" INTEGER NOT NULL; -- CreateTable CREATE TABLE "extent" ( "id" SERIAL NOT NULL, "name" VARCHAR(255)...
<filename>custom-schema-location/src/test/resources/movieDao/insert-movies.sql insert into movies(name, year, director) values ('Gone Girl','2014', ' <NAME>'); insert into movies(name, year, director) values ('The Wolf of Wall Street','2013', '<NAME>'); insert into movies(name, year, director) values ('Interstellar','2...
<filename>pwaf-core/src/00_pwaf/40_functions/51_pub_controller_security_web_login.sql -- CREATE OR REPLACE FUNCTION pwaf.pub_controller_security_web_login(in_request pwaf.http_request) RETURNS pwaf.http_response AS $BODY$ /** * @package PWAF * @author <NAME> (<EMAIL>) * @copyright (C) 2013-2019 postgresqlacademy.c...
<gh_stars>1-10 -- insert values into addrtext -- Creates the two token phrases -- to do: create the phrase made from pairs of trigrams INSERT INTO phrase SELECT addr_id, (regexp_matches( regexp_replace(addr,'[^A-Z0-9]+',' ','g'), '[A-Z0-9+]+ [A-Z0-9+]+','g'))[1] FROM addrtext UNION SELECT addr_...
--■ LogReaderAgenet --★publisher-distributerの遅延を確認 INSERT INTO ReplicationCheck_Distributor_1 SELECT @@SERVERNAME ,agent_id ,name ,max(delivery_latency / (1000 * 60)) as max_latency_min ,getdate() as registDT FROM distribution.dbo.mslogreader_history WITH (NOLOCK) JOIN distribution.dbo.MSlogreader_agents with(nol...
<filename>src/DbTests/SQL/DynamicSqlWithConflictingBranches.sql<gh_stars>10-100 DECLARE @sql NVARCHAR(MAX) = 'SELECT * FROM dbo.Table1' IF 1 = 1 SET @sql += ' ORDER BY TableCol1' IF 1 = 0 SET @sql += ' ORDER BY TableCol2' EXEC sp_executesql @sql, N''
<reponame>tlayson/MySC -- ================================================ -- Template generated from Template Explorer using: -- Create Procedure (New Menu).SQL -- -- Use the Specify Values for Template Parameters -- command (Ctrl-Shift-M) to fill in the parameter -- values below. -- -- This block of comments will n...
<reponame>IvoSestren/strn-ec CREATE TABLE smartycache ( id CHAVE NOT NULL, name CHARACTER VARYING(40) NOT NULL, cache_id CHARACTER VARYING(254), modified TIMESTAMP WITH TIME ZONE NOT NULL, content TEXT NOT NULL, CONSTRAINT pk_smartycache PRIMARY KEY (id) ...
insert into planets (name,rotation_period,orbital_period,diameter,climate,gravity,terrain,surface_water,population,created,click_count)values('Tatooine','23','304','10465','arid','1 standard','desert','1','200000', now(),'0'); insert into planets (name,rotation_period,orbital_period,diameter,climate,gravity,terrain,sur...
<reponame>0102-yang/todo-list<gh_stars>0 drop table if exists user; drop table if exists remind; create table user ( user_id int primary key auto_increment, username varchar(40) not null unique, email varchar(40) not null, password varchar(108) not null ); create table remind ( remind_id ...
--use master; SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; DROP TABLE IF EXISTS TEST_CASES; CREATE TABLE TEST_CASES ( IRN NVARCHAR(255), TITLE NVARCHAR(255), URL NVARCHAR(255), DATE_UPDATED DATETIME ); INSERT INTO TEST_CASES (IRN, TITLE, URL, DATE_UPDATED) VALUES ('P0100973',...
<filename>hasura/migrations/default/1591302816313_alter_table_public_reviews_alter_column_reviewOrganization/down.sql<gh_stars>1-10 COMMENT ON COLUMN "public"."reviews"."reviewOrganization" IS E'null'; alter table "public"."reviews" rename column "review_organization_value" to "reviewOrganization";
ALTER TABLE public.message_setting ADD COLUMN send_notice boolean; ALTER TABLE public.message_setting ADD COLUMN send_email boolean; UPDATE public.message_setting SET send_notice = true WHERE info_type='NOTICE'; UPDATE public.message_setting SET send_email = true WHERE info_type='EMAIL'; UPDATE public.message_setting ...
CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, url TEXT, authorization_endpoint TEXT, token_endpoint TEXT, micropub_endpoint TEXT, micropub_media_endpoint TEXT, micropub_access_token TEXT, micropub_scope TEXT, micropub_response TEXT, micropub_slug_field TEXT default 'mp-slug', ...
CREATE SCHEMA IF NOT EXISTS ${dbName}; USE ${dbName}; ALTER TABLE recordset ADD COLUMN owner_group_id CHAR(36) NULL; CREATE INDEX owner_group_id_index ON recordset (owner_group_id);
<reponame>saurabhjdas786/mango<filename>src/test/resources/hsqldb/order.sql DROP TABLE IF EXISTS t_order; CREATE TABLE t_order ( id VARCHAR(100), uid INTEGER, price INTEGER, PRIMARY KEY (id) );
set lines 350 clear screen select replace(replace(replace(r,'X',chr(27)||'[42m'||chr(27)||'[1;'||to_char(32)||'m'||'X'||chr(27)||'[0m'), 'T',chr(27)||'[43m'||chr(27)||'[1;'||to_char(33)||'m'||'T'||chr(27)||'[0m'), '@',chr(27)||'[33m'||chr(27)||'[1;'||to_char(31)||'m'||'@'||chr(27)||'[0m') from ( select lpad(' '...
<gh_stars>0 -- Convert schema '/var/tmp/Tapper-Schema-TestrunDB-1.002-MySQL.sql' to '/var/tmp/Tapper-Schema-TestrunDB-2.010009-MySQL.sql': -- No differences found
DELETE FROM core_admin_right WHERE id_right = 'PARTICIPATORYIDEATION_MANAGEMENT'; INSERT INTO core_admin_right (id_right,name,level_right,admin_url,description,is_updatable,plugin_name,id_feature_group,icon_url,documentation_url, id_order ) VALUES ('PARTICIPATORYIDEATION_MANAGEMENT','participatoryideation.adminFeature...
/*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ create index ZSTG_GENSION_PROTEIN_ID on ZSTG_GENE2ACCESSION(PROTEIN_ID) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_GENSION_ORIENTATIO on ZSTG_G...
create table t(a monetary); insert into t values(1); insert into t values(-1); insert into t values(0); insert into t values(1.1); insert into t values(-1.1); insert into t values(0.2); select * from t order by 1; drop table t;
-- @testpoint: 强制开启表的行访问控制开关(NO FORCE ROW LEVEL SECURITY) drop table if exists alter_table_tb037; create table alter_table_tb037 ( c1 int, c2 bigint, c3 varchar(20) ); insert into alter_table_tb037 values('11',null,'sss'); insert into alter_table_tb037 values('21','','sss'); insert into alter_table_tb037 values('31',66...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 8.0.25 - MySQL Community Server - GPL -- Server OS: Win64 -- HeidiSQL Version: 11.3.0.6295 -- -------------------------------------------------------- /...
<filename>db/migrations/2002051347_add_groups_type_session.sql -- +migrate Up ALTER TABLE `groups` MODIFY COLUMN `type` enum('Class','Team','Club','Friends','Other','User','Session','Base','ContestParticipants') NOT NULL AFTER `name`, MODIFY COLUMN `open_contest` TINYINT(1) NOT NULL DEFAULT '0' ...
<reponame>synepis/javatodoapp<gh_stars>0 -- Paswords: <PASSWORD>, <PASSWORD>, <PASSWORD> insert into "user" values (default, 'user1', '$2a$10$QL45PqKz2/CnLpFaY5IDnOhdsYp.lv4/csKvreNQKY1NVJv1dnYXC', '<EMAIL>', '2018-12-22 00:00:00', null, 'ROLE_USER,ROLE_ADMIN'); insert into "user" values (default, 'user2', '$2a$10$fX0J...
<gh_stars>0 # Quickbooks Import QBI # Contribution for osC # (c) 2005 by <NAME> # Released under the GNU General Public License # # version upgrade 2.02 to 2.10 # # rev May 8, 2005 # -------------------------------------------------------- # Set last line to new version number! ALTER TABLE `qbi_config` AD...
<reponame>Bidulman/bidoyon-plus UPDATE investments SET given_apples=? WHERE user=?;
DROP DATABASE IF EXISTS G00387816_DataRepProject; CREATE DATABASE G00387816_DataRepProject; USE G00387816_DataRepProject; #Main table to be displayed CREATE TABLE Movies( MovieID int NOT NULL PRIMARY KEY, Title varchar(255) NULL, RatingID int NOT NULL ); INSERT Movies(MovieID,Title,RatingID) VALUES(1, "...
<filename>sql/migrations/migration_002.sql -- Unicode name support ALTER TABLE `results`.`facebook` CHANGE COLUMN `name` `name` VARCHAR(45) CHARACTER SET 'utf8' NULL DEFAULT NULL , CHANGE COLUMN `fname` `fname` VARCHAR(45) CHARACTER SET 'utf8' NULL DEFAULT NULL , CHANGE COLUMN `lname` `lname` VARCHAR(45) CHARACTER SET ...
INSERT INTO issues (title, preview, message, sources) VALUES ("test issue 1", "This is the first test issue", "This is the message for the first test issue", "sources for the first test issue"), ("test issue 2", "This is the second test issue, the preview is a bit longer", "This is the message for the second tes...
<gh_stars>1-10 version https://git-lfs.github.com/spec/v1 oid sha256:2f907e4fd09c280d48153c6b3143f726d44777b46c94e7685d62a2df94a23e14 size 2154
-- BUILDINGS_CITY_WORKING, TRAITS_CITY_WORKING, POLICIES_CITY_WORKING and TECHS_CITY_WORKING ALTER TABLE Traits ADD CityWorkingChange INTEGER DEFAULT 0; ALTER TABLE Policies ADD CityWorkingChange INTEGER DEFAULT 0; ALTER TABLE Technologies ADD CityWorkingChange INTEGER DEFAULT 0; ALTER TABLE Buildings A...
CREATE DATABASE IF NOT EXISTS `quiz` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */; USE `quiz`; -- MySQL dump 10.13 Distrib 8.0.14, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: quiz -- ------------------------------------------------------ -- Server version 8.0.14 /*!40101 SET...
<reponame>Raminagrobis-TPR138-G2/Raminagrobis-Event -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : ven. 04 fév. 2022 à 07:52 -- Version du serveur : 5.7.31 -- Version de PHP : 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_z...
<filename>src/test/resources/sql/select/719e2ff4.sql -- file:tsearch.sql ln:481 expect:true SELECT ts_rewrite( query, 'SELECT keyword, sample FROM test_tsquery' ) FROM to_tsquery('english', 'bar & new & qq & foo & york') AS query
<reponame>geickelb/mimiciii-antibiotics-opensource DROP MATERIALIZED VIEW IF EXISTS fio2_chartevents CASCADE; create materialized view fio2_chartevents as select SUBJECT_ID, HADM_ID, ICUSTAY_ID, CHARTTIME -- pre-process the FiO2s to ensure they are between 21-100% , max( case when itemid = ...
IF OBJECT_ID(N'[dbo].[Sales]', N'U') IS NOT NULL DROP TABLE [dbo].[Sales] CREATE TABLE [dbo].[Sales] ( [TransactionId] [nvarchar](100) NULL, [CustomerId] [int] NULL, [ProductId] [bigint] NULL, [Quantity] [int] NULL, [Price] [int] NULL, [TotalAmount] [bigint] NULL, [TransactionDate] [datetime] N...
<filename>moodmaster.sql<gh_stars>0 -- -- Table structure for table `logs` -- CREATE TABLE IF NOT EXISTS `logs` ( `id` int(10) NOT NULL AUTO_INCREMENT, `type` enum('sign-in','phrase') NOT NULL, `description` varchar(255) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`)...
<reponame>nginfo/solidbase CREATE TABLE DBVERSION ( SPEC VARCHAR(5) NOT NULL, VERSION VARCHAR(20), TARGET VARCHAR(20), STATEMENTS INTEGER NOT NULL ); CREATE TABLE DBVERSIONLOG ( TYPE VARCHAR(1) NOT NULL, SOURCE VARCHAR(20), TARGET VARCHAR(20) NOT NULL, STATEMENT INTEGER NOT NULL, STAMP TIMESTAMP...
CREATE PROCEDURE dbo.ProcWithOutRaiserror AS BEGIN THROW 51000, 'The record does not exist.', 1; -- Uses Throw. This is ok END;
<reponame>viswaratha12/dbwarden /****** Object: Schema [DMS_Analysis] ******/ CREATE SCHEMA [DMS_Analysis] GO
<reponame>RakshitMuthappa/mimir_query_sampling_optimizer<filename>test/pdbench_queries/q1_mimir_col.sql CREATE TABLE res_q1_mimir AS SELECT l_orderkey, o_orderdate, o_shippriority FROM (SELECT l_orderkey, o_orderdate, o_shippriority, lineitem_tid, customer_tid, ...
<gh_stars>1-10 /* User should have the Superuser permission */ CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; ALTER TABLE UM_TENANT ADD COLUMN UM_TENANT_UUID VARCHAR(36) NOT NULL DEFAULT uuid_generate_v4(); ALTER TABLE UM_TENANT ADD UNIQUE (UM_TENANT_UUID);
<filename>00_framework/admin/src/main/resources/sql/admin_permission_201803161820.sql INSERT INTO `admin_permission` (`id`, `title`, `name`, `parent_id`, `sort`, `description`) VALUES (2, '角色管理', 'system:role:all', 8, 0, '角色管理'); INSERT INTO `admin_permission` (`id`, `title`, `name`, `parent_id`, `sort`, `description`)...
<reponame>pgstuff/sys_syn_dblink<gh_stars>0 BEGIN; CREATE EXTENSION sys_syn_dblink; CREATE SCHEMA processor_data AUTHORIZATION postgres; SELECT dblink_connect('sys_syn_test', 'dbname=contrib_regression host=' || quote_literal(split_part((SELECT pg_settings.setting FROM pg_settings WHERE pg_settings....
set grammar to oracle; select remainder(7,5) from dual; select remainder(11.9,3) from dual; select remainder(-99.8768678,4) from dual; select remainder(-5.6,-2.5) from dual; select remainder(0,2) from dual; select remainder(0,0) from dual; select remainder(3,0) from dual; select remainder(exp(4),3) from dual; select re...
-- mapping of rich text to attachment. note that this is not intended as a MTM -- relationship, and that a given attachment ought only ever be owned by one -- "thing." however, multiple kinds of things can own attachments, so rather -- than duplicate the attachments table we just have a gentleman's agreement to -- not ...
--1. SELECT list_price, TO_CHAR(list_price, '$99,999.99') FROM Products; --2. SELECT date_added, CAST(date_added AS VARCHAR2(9)) AS "Date_added as Character" FROM Products; --3. SELECT list_price, discount_percent, TO_CHAR(ROUND(TO_NUMBER(list_price) * TO_NUMBER(discount_percent * .01) , 2), '99,999...
INSERT INTO public.categorie (id_categorie, type_categorie) VALUES ('CAT0001', 'nourriture'); INSERT INTO public.categorie (id_categorie, type_categorie) VALUES ('CAT0002', 'deplacement'); INSERT INTO public.categorie (id_categorie, type_categorie) VALUES ('CAT0003', 'loyer'); INSERT INTO public.categorie (id_categorie...
<reponame>MarkShen1992/spring-cloud-demo /* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 80016 Source Host : localhost:3306 Source Schema : provider_service Target Server Type : MySQL Target Server Version : 80016 File Enc...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 13, 2021 lúc 05:16 AM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
ALTER TABLE conn ADD COLUMN id_orig_h VARCHAR(45) AFTER `id.orig_h`; ALTER TABLE conn ADD COLUMN id_orig_p INT AFTER `id.orig_p`; ALTER TABLE conn ADD COLUMN id_resp_h VARCHAR(45) AFTER `id.resp_h`; ALTER TABLE conn ADD COLUMN id_resp_p INT AFTER `id.resp_p`; UPDATE conn SET id_orig_h = `id.orig_h`, id_orig_p = `i...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 23, 2022 at 04:03 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
CREATE PROCEDURE [dbo].[spCreateSchedule] @scheduleDate DATE, @season VARCHAR(10), @totalItems int, @totalEvents int, @totalGames int, @totalMatches int, @scheduleID int OUTPUT AS BEGIN IF NOT EXISTS (SELECT scheduleDate, season FROM tblSchedule WHERE scheduleDate = @scheduleDate AND season = @season) BEGIN...
<reponame>allacee/dumb-projects -- manager table ------------------------------------------ INSERT INTO manager (manager_id, name, surname, spec, comission) VALUES(1, 'name1', 'surname1', 'sale', 22); INSERT INTO manager (manager_id, name, surname, spec, comission) VALUES(2, 'name2', 'surname2', 'sale', 24); INSERT...