sql
stringlengths
6
1.05M
ALTER TABLE pod_user ADD COLUMN is_active boolean; UPDATE pod_user SET is_active=true; ALTER TABLE pod_user ALTER COLUMN is_active SET NOT NULL; ALTER TABLE pod_user ALTER COLUMN is_active SET DEFAULT true; -- Table: pod_workspaces -- DROP TABLE pod_workspaces; CREATE TABLE pod_workspaces ( workspace_id integer NO...
<filename>egov/egov-wtms/src/main/resources/db/migration/main/V20190128140001__wcms_procedure_update_arrdemand_arrcoll.sql CREATE OR REPLACE FUNCTION wtms_updatemv_arrearsdemand() RETURNS void AS $BODY$ DECLARE props record; v_demand_amount double precision; v_demand_collection double precision; v_rebate double precis...
<reponame>SimpleContacts/mysql-simulator<gh_stars>1-10 -- -- PURPOSE -- ======= -- This tests the effects of default charsets and collations, or overriding -- them at the table or column levels. -- /* t1: All defaults t2-t16: Test overrides at the table level. Here the examples are constructed to ...
<gh_stars>10-100 -- -- CzechIdM 7 Flyway script -- BCV solutions s.r.o. -- -- Add new column to sync contract configuration "start of HR processes after sync end" ALTER TABLE sys_sync_contract_config ADD COLUMN start_hr_processes boolean; UPDATE sys_sync_contract_config SET start_hr_processes = true WHERE start_hr_pr...
UPDATE fact_queries set query = 'DECLARE @domain varchar(25); DECLARE @user varchar(15); SET @domain = ? SET @user = ? ;WITH temp (Category, Minimum, Maximum) AS (SELECT x.diagnosisCategory, MIN (x.numVisits) AS Mini, MAX (x.numVisits) AS Maxi FROM ( SELECT SUM (CASE...
<filename>resources/joplin/migrations/sql/20160408011744-create-tags.down.sql DROP TABLE IF EXISTS tags;
# Write your MySQL query statement below UPDATE salary SET sex = CHAR(ASCII(sex) ^ ASCII('m') ^ ASCII('f'));
<reponame>uk-gov-mirror/defra.water-abstraction-service alter table water.billing_transactions drop column section_126_factor; alter table water.billing_transactions drop column section_127_agreement; alter table water.billing_transactions drop column section_130_agreement;
<filename>db/migrations/20200923223826_create_sections.sql -- migrate:up CREATE TABLE 'sections' ( 'id' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, 'code' INTEGER NOT NULL, 'course_id' INTEGER, 'teacher_id' INTEGER, FOREIGN KEY(`course_id`) REFERENCES 'courses' ( 'id' ) ON DELETE CASCADE, FOREIGN KEY(`teach...
<filename>server/sql/indices-postgresql.sql -- Copyright 2014 Google Inc. All Rights Reserved. -- -- 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/LICE...
<filename>postgres/migrations/20190715015859_edit_subject.sql -- migrate:up create or replace function sg_public.update_subject( entity_id uuid, name text, tags text[], body text, parent uuid[], before uuid[] ) returns sg_public.subject_version as $$ declare xprevious sg_public.subject; xversion_...
use shibuya; CREATE TABLE IF NOT EXISTS collection_launch_history ( collection_id INT UNSIGNED NOT NULL, context varchar(20) NOT NULL, owner VARCHAR(50) NOT NULL, engines_count INT UNSIGNED, nodes_count INT UNSIGNED, started_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, end_time TIMESTAMP NULL ...
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/tabl_to_func_drop_new.sql<gh_stars>10-100 CREATE SCHEMA defval; ALTER SCHEMA defval OWNER TO levsha_aa; CREATE TABLE defval.t1 ( c2 integer, c1 text DEFAULT USER ); ALTER TABLE defval.t1 OWNER TO levsha_aa;
CREATE TABLE [dbo].[Environments] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (MAX) NOT NULL, [ProjectId] INT NOT NULL, [Description] NVARCHAR (MAX) NULL, [Secret] NVARCHAR (MAX) NULL, [MobileSecret] NVARCHAR (MAX) NULL, CONSTRAINT [PK_Environments] P...
<gh_stars>1-10 -- Verify nz-buildings:buildings_bulk_load/functions/supplied_outlines on pg BEGIN; SELECT has_function_privilege('buildings_bulk_load.supplied_outlines_insert(integer, integer, geometry)', 'execute'); ROLLBACK;
<reponame>lazarevicivica/asocijacije /** * Author: ivica * Created: 27.10.2018. */ CREATE TABLE korisnik ( id serial PRIMARY KEY, email TEXT NOT NULL UNIQUE, ime VARCHAR(50) NOT NULL, lozinka_hash TEXT, aktivan BOOLEAN NOT NULL DEFAULT FALSE, reset_kod TEXT NULL, auth_key TEXT, vrem...
drop database NLogDatabase go exec sp_droplogin 'nloguser' go
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 20, 2020 at 08:03 AM -- Server version: 5.7.24 -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<reponame>tabeldatadotcom/springboot-archetype create table example_table ( id varchar2(64) default SYS_GUID() not null primary key, name varchar2(100), created_date date default current_date, created_time timestamp default current_timestamp not null, is_active ...
BEGIN dbms_output.put_line('Hello BIT'); END; /
CREATE DATABASE gotdb; USE gotdb;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 02, 2020 at 09:48 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
SET DEFINE OFF; CREATE INDEX AFW_13_PREFR_FK1 ON AFW_13_PREFR (REF_DV_CONDT_UTILS) LOGGING /
<gh_stars>1-10 INSERT IGNORE INTO `[#DB_PREFIX#]system_setting ` (`varname`, `value`) VALUES ('wecenter_website', 's:1:"N";');
CREATE TABLE subdivision_PH (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_PH" ("id", "name", "level") VALUES (E'PH-ABR', E'Abra', E'province'); INSERT INTO "subdivision_PH" ("id", "name", "level") VALUES (E'PH-AGN', E'Agusan del Norte', E'province');...
<reponame>mohammedelzanaty/myRoad2BeFullStack<filename>Udacity/nd001-mena-nfp3/Ch-03/booksshelf/backend/setup.sql CREATE DATABASE bookshelf; CREATE DATABASE bookshelf_test; CREATE USER student WITH ENCRYPTED PASSWORD '<PASSWORD>'; GRANT ALL PRIVILEGES ON DATABASE bookshelf TO student; GRANT ALL PRIVILEGES ON DATABASE b...
/* Navicat MySQL Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50643 Source Host : localhost Source Database : test Target Server Type : MySQL Target Server Version : 50643 File Encoding : utf-8 Date: 12/02/2021 16:18:46 PM */ ...
CREATE TABLE foo (a text, b text); /* name: StarExpansion :many */ SELECT *, *, foo.* FROM foo;
connect 'jdbc:derby://localhost:1527/city_aaa'; select id,name,population,date_mod from cities; quit;
-- Verify userflips SELECT id, nickname, fullname, twitter, body, timestamp FROM flipr.userflips WHERE FALSE;
-- reduce tech boost for babylon INSERT OR IGNORE INTO Modifiers(ModifierId, ModifierType) VALUES ('BBG_TRAIT_BABYLON_EUREKA', 'MODIFIER_PLAYER_ADJUST_TECHNOLOGY_BOOST'); INSERT OR IGNORE INTO ModifierArguments(ModifierId, Name, Value, Extra) VALUES ('BBG_TRAIT_BABYLON_EUREKA', 'Amount', '45', '-1'); DELETE F...
<gh_stars>0 CREATE TABLE IF NOT EXISTS players ( uuid UUID NOT NULL PRIMARY KEY, username TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE IF NOT EXISTS verifications ( id BIGSERIAL NOT NULL PRIMARY KEY, player_uuid UUID REFERENCES players (uuid) NOT NULL, ...
-- database: presto; groups: insert; mutable_tables: datatype|created; -- delimiter: |; ignoreOrder: true; --! insert into ${mutableTables.hive.datatype} values(5 * 10, 4.1 + 5, 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16 UTC' as timestamp), TRUE); select * from ${mutableTables.hive.datatype} --! 50|...
INSERT INTO `emr_billing_component_cost` (`emr_name`, `emr_cost`) VALUES ('exploratory-sales',700), ('scheduled-sales',1000), ('exploratory-sales-test1',500);
create database jdbc_streaming_db; \c jdbc_streaming_db; create table reference_table ( ip VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL, location VARCHAR(50) NOT NULL ); DO $$ DECLARE counter INTEGER := 1 ; ipTemplate VARCHAR(50) := '10.%s.1.1'; nameTemplate VARCHAR(50...
<filename>docker/postgresql/init.sql<gh_stars>1-10 CREATE TABLE employees ( id int NOT NULL, username varchar(50) NOT NULL, name varchar(250), manager varchar(250), salary int, phoneNumber varchar(50) ); INSERT INTO employees (id, username, name, manager, salary, phoneNumber) VALUES(1, 'joffer'...
<reponame>jianchun618/springboot-learning-experience<gh_stars>100-1000 CREATE DATABASE mytest; CREATE TABLE t_user( userId INT NOT NULL PRIMARY KEY AUTO_INCREMENT, userName VARCHAR(255) NOT NULL , password VARCHAR(255) NOT NULL , phone VARCHAR(255) NOT NULL ) ENGINE=INNODB AUTO_INCREMENT=1000 DEFAULT CHARSET=u...
<reponame>rochakchauhan/commcare-hq ALTER TABLE agg_awc ADD COLUMN electricity_awc integer; ALTER TABLE agg_awc ADD COLUMN infantometer integer; ALTER TABLE agg_awc ADD COLUMN stadiometer integer;
ANALYZE TABLE orders DELETE STATISTICS; ANALYZE INDEX inv_product_ix VALIDATE STRUCTURE; ANALYZE TABLE employees VALIDATE STRUCTURE CASCADE; ANALYZE TABLE customers VALIDATE REF UPDATE; ANALYZE TABLE customers VALIDATE STRUCTURE ONLINE; ANALYZE CLUSTER personnel VALIDATE STRUCTURE CASCADE; ANALYZE TABLE orders L...
--+ holdcas on; ---- ALTER TABLE ... CHANGE COLUMN -- class attribute -- type change from int -- int to short create table t1 class attribute (c_i integer) ( i integer ) ; insert into t1 values (1),(2); update t1 set class t1.c_i=-1; select class t1.c_i, i from t1 order by 1,2; show columns in t1; alter table t...
-- Generating points from the trajectory linestring data so that -- I can compare them with cells coordinates. -- Using ST_Within I can check which points are inside the grid cells and associate them with the cell. http://postgis.net/workshops/postgis-intro/spatial_relationships.html SELECT ST_AsText( ST_PointN...
-- CreateTable CREATE TABLE "User" ( "id" TEXT NOT NULL, "officialEmail" TEXT NOT NULL, "personalEmail" TEXT, "username" TEXT NOT NULL, "staffId" TEXT NOT NULL, "password" TEXT NOT NULL, "birthdate" TIMESTAMP(3), "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt...
SELECT * FROM PROXY_CONFIGS WHERE DELETE_FLAG = 0;
SELECT geometrie, netzgebiet_name, betreiber, konflikt, konflikt_code.dispname AS konflikt_txt FROM awa_netzbetreiber_strom.netzbetrebr_strom_ebene_5 LEFT JOIN awa_netzbetreiber_strom.netzbtrbr_strom_netzbetreiber_konflikt AS konflikt_code ON konflikt = konflikt_code.ilicode ;
<gh_stars>0 -- Quais os paises cadastrados no BD? SELECT * FROM pais -- Nomes dos continentes SELECT nome FROM continente -- Continentes dos Paises Cadastrados no DB SELECT continente_id FROM pais GROUP BY continente_id -- Qual é a Capital da Finlândia? SELECT capital FROM pais p WHERE p.nome = "Finlândia" ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2020 at 11:20 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>flexsocialbox/una -- MENUS UPDATE `sys_menu_items` SET `active`='1' WHERE `set_name`='bx_organizations_snippet_meta' AND `name`='friends'; UPDATE `sys_menu_items` SET `active`='1' WHERE `set_name`='bx_organizations_snippet_meta' AND `name`='befriend'; UPDATE `sys_menu_items` SET `visibility_custom`='a:2:...
CREATE INDEX ix_releases_nzb_guid ON releases (nzbstatus, nzb_guid); UPDATE site SET value = '136' WHERE setting = 'sqlpatch';
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5483490_sys_gh3329-event-log-window-trl.sql -- 2018-01-22T07:33:07.979 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Window SET Name='Event Log',Updated=TO_TIMESTAMP('2018-01-22 07...
DROP TABLE IF EXISTS `USDCAD_D1`; CREATE TABLE IF NOT EXISTS `USDCAD_D1`( `id` int(5) NOT NULL, `open` varchar(30) NOT NULL, `high` varchar(30) NOT NULL, `close` varchar(30) NOT NULL, `low` varchar(30) NOT NULL, `time` varchar(30) NOT NULL); ALTER TABLE `USDCAD_D1` ADD PRIMARY KEY (`id`); ALTER TABLE `USDCAD_D...
<reponame>hongyuanChrisLi/RealEstateMySQL<gh_stars>0 CREATE DEFINER=`mlsuser`@`%` FUNCTION `f_city_map`(city_name VARCHAR(20)) RETURNS varchar(20) CHARSET utf8 BEGIN DECLARE map_name VARCHAR(20); IF lower(city_name) LIKE "carmel%" THEN SET map_name = 'Carmel'; ELSE SET map_name = city_name; END IF; ...
<reponame>klayantw/DbUpReboot<gh_stars>0 -- Settings and Statistics create table $schema$.Redirect( [Id] [int] identity(1,1) not null, -- constraint PK_Redirect_Id primary key NOT ENFORCED, [From] [nvarchar](255) not null, [To] [nvarchar](255) not null ) go
<gh_stars>0 select C.person_id, C.visit_start_date as start_date, C.visit_end_date as end_date, C.visit_concept_id as TARGET_CONCEPT_ID from ( select vo.*, ROW_NUMBER() over (PARTITION BY vo.person_id ORDER BY vo.visit_start_date, vo.visit_occurrence_id) as ordinal FROM @cdm_database_schema.VISIT_OCCURRENCE vo @co...
<gh_stars>1-10 insert into app_setups (app_setup, app) values ($1, $2) returning *
-- Verify connectivity-intake:functions/session on pg begin; select pg_get_functiondef('connectivity_intake_public.session()'::regprocedure); rollback;
CREATE TABLE my_option ( "id" varchar(50) NOT NULL, "key" varchar(50) NOT NULL, "value" varchar(50) NOT NULL, "desc" varchar(50) NOT NULL, "create_time" TIMESTAMP NOT NULL, "modify_time" TIMESTAMP NOT NULL )
{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_bounce_enabled'])) }} select * from {{ var('email_event_bounce') }}
<gh_stars>1-10 create or replace view competition_registration as select id, name, 'COMPETITION' as event_type, 'ACTIVE' as status, created_at, updated_at, '' as description, registration_begin as event_start, registration_end as event_end, 'COMPETITION' as object_type, id as object_id from competit...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2022 at 04:05 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>psdevdb.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Oct 12, 2017 at 07:30 PM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<reponame>nationalarchives/tdr-prototype-sangria /** Index file path in file table to optimize pagination queries */ CREATE INDEX idx_path ON file USING btree(path);
<reponame>z3z1ma/dbt-re-data {{ config(re_data_monitored=true, re_data_time_filter='creation_time', materialized='table') }} select * from {{ ref('sample_with_anomaly') }} where event_type = 'buy'
<reponame>NaturalSolutions/ecoReleve-Data USE [EcoReleve_ECWP] GO /****** Object: StoredProcedure [dbo].[sp_validate_Argos_GPS] Script Date: 18/12/2015 15:48:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[sp_validate_Argos_GPS] @listID xml, @ind int, @user int, @ptt in...
/* PLT39 - Script para relatório Create By Bitts (20/10/2016) Melhoramento do mapa de notas apresentação de todos os trimestres Exibição por disciplina e turma */ DECLARE @CODTURMA1_S VARCHAR(10) = 'EM201';-- :CODTURMA; DECLARE @CODSTATUS_M INT = 50; DECLARE @STATUS_M VARCHAR(20) = 'Matriculado'; DECLARE @SPE...
<gh_stars>10-100 -- file:plpgsql.sql ln:1268 expect:true insert into PSlot values ('PS.first.a2', 'PF1_1', '', 'WS.101.1b')
<reponame>Shuttl-Tech/antlr_psql -- file:guc.sql ln:127 expect:true SET datestyle = 'ISO, DMY'
<reponame>mr337/mymove<gh_stars>10-100 -- Local test migration. -- This will be run on development environments. It should mirror what you -- intend to apply on production, but do not include any sensitive data. CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- ---------------- -- Create a test TSP INSERT INTO public.t...
-- -- Copyright 2005-2014 The Kuali Foundation -- -- Licensed under the Educational Community License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.opensource.org/licenses/ecl2.php -- -- Unless required by ap...
CREATE TABLE ofGojaraStatistics ( logID Integer Identity NOT NULL, messageDate BIGINT NOT NULL, messageType VARCHAR(255) NOT NULL, fromJID VARCHAR(255) NOT NULL, toJID VARCHAR(255) NOT NULL, component VARCHAR(255) NOT NULL, PRIMARY KEY (logID) ); INSERT INTO ofVersion (name, version) VALU...
#standardSQL # 14_13d: Distribution of image stats per CMS SELECT percentile, _TABLE_SUFFIX AS client, app, COUNT(DISTINCT url) AS pages, APPROX_QUANTILES(reqImg, 1000)[OFFSET(percentile * 10)] AS image_count, ROUND(APPROX_QUANTILES(bytesImg, 1000)[OFFSET(percentile * 10)] / 1024, 2) AS image_kbytes FROM ...
<gh_stars>10-100 -- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- ...
CREATE TABLE tenant.person_password_reset ( id UUID NOT NULL, token_hash TEXT NOT NULL, person_id UUID NOT NULL, expires_at TIMESTAMP NOT NULL, created_at TIMESTAMP NOT NULL, used_at TIMESTAMP, CONSTRAINT person_password_reset_id PRIMARY KEY ("id"), CONSTRAINT person_password_reset_pe...
<filename>platinumGenomes/sql/sample-rare-pathenogenic-snps.sql #standardSQL -- -- Return SNPs for sample NA12878 that are: -- annotated as 'pathogenic' in ClinVar -- with observed population frequency less than 1% -- WITH sample_variants AS ( SELECT REGEXP_EXTRACT(reference_name, r'chr(.+)') AS c...
<reponame>nenadnoveljic/tpt-oracle<gh_stars>100-1000 -- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. --DROP TABLE t_intrablock_chained ; CREATE TABLE t_intrablock_chained TABLESPACE tanel_bigf...
INSERT INTO background_updates (ordering, update_name, progress_json) VALUES (5822, 'users_have_local_media', '{}');
<reponame>suryatmodulus/tidb<gh_stars>1000+ CREATE TABLE `q_config` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `key` varchar(255) NOT NULL, `value` varchar(255) NOT NULL, `type` tinyint(4) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:0...
CREATE TABLE blocked_guilds ( guild INTEGER PRIMARY KEY NOT NULL ); CREATE TABLE blocked_users ( "user" INTEGER PRIMARY KEY NOT NULL );
<filename>project.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Фев 19 2020 г., 08:40 -- Версия сервера: 10.3.13-MariaDB-log -- Версия PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `event_id` UUID NOT NULL, `payload_id` INTEGER NOT NULL, `event_timestamp` TIMESTAMP, `event_type` VARCHAR(16), `given_name` VARCHAR(16), `surname` VARCHAR(16), `email` VARCHAR(16), PRIMARY KEY (`event_id`) ); DROP TABLE IF EXISTS `user_snapshot`; CRE...
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.7.24 - MySQL Community Server (GPL) -- Операционная система: Win64 -- HeidiSQL Версия: 9.5.0.5332 -- -------------------------------------------------------- /*...
DROP TABLE IF EXISTS loans; DROP TABLE IF EXISTS users; CREATE TABLE users(id BIGINT GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY, created TIMESTAMP WITHOUT TIME ZONE, updated TIMESTAMP WITHOUT TIME ZONE, email VARCHAR(255) NOT NULL UNIQUE, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL); CR...
<gh_stars>0 DELIMITER $$ USE `atp`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `aumentar_salario`(IN porcentagem INT) BEGIN START TRANSACTION; UPDATE pessoa SET salario = (salario + (salario / 100 * porcentagem)) where tipo_pessoa in (1, 2, 3, 4, 5); COMMIT; END$$ DELIMITER ; call aumentar_salario(10); ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 04:55 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: sistemaacademico -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
 CREATE VIEW [Hours].[DetailedTimeLog] AS -- SELECT [TimeLogs].[TimeLogID] ,[TimeLogs].[InvoiceID] ,[TimeLogs].[ProjectID] ,[TimeLogs].[CarID] ,DATEPART(YEAR, [TimeLogs].[Date]) [Year] ,DATEPART(MONTH, [TimeLogs].[Date]) [Month] ,DATEPART(WEEK, [TimeLogs].[Date]) [Week] ,DATEPART(DW, [TimeLogs]...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 17-10-2020 a las 17:06:45 -- Versión del servidor: 5.7.24 -- Versión de PHP: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
--- Soil Moisture Stations CREATE TABLE sm_minute ( station char(5), valid timestamp with time zone, -- Air Temperature TAir_C_Avg real, TAir_C_Avg_qc real, TAir_C_Avg_f char(1), -- Relative Humidity rh_avg real, rh_avg_qc real, rh_avg_f char(1), -- Solar Rad total kJ over 1 minute SlrkJ_Tot ...
CREATE SEQUENCE scale_measurements_id_seq; CREATE TABLE scale_measurements ( id integer NOT NULL PRIMARY KEY DEFAULT nextval('scale_measurements_id_seq'::regclass), datetime TIMESTAMP WITH TIME ZONE NOT NULL, mass double precision NOT NULL, fat_pct double precision NOT NULL, water_pct double precis...
create or replace package body xlsx_parser is /* XLSX Parser by <NAME> https://blogs.oracle.com/apex/easy-xlsx-parser%3a-just-with-sql-and-plsql Aug 2018 Adapted to use ZIP_UTIL_PKG by <NAME> */ g_worksheets_path_prefix constant varchar2(14) := 'xl/worksheets/'; --================================...
<reponame>hbeatty/incubator-trafficcontrol /* 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 or agreed to in writin...
<gh_stars>1-10 USE employee_trackerDB; -- Query to display all employee information SELECT employee.id AS 'ID', employee.first_name AS 'First Name', employee.last_name AS '<NAME>', role.title AS 'Title', LPAD(CONCAT('$', FORMAT(role.salary, 2)), 12, ' ') AS 'Salary', department.name AS 'Department', I...
-- 2021-10-01T14:02:03.941Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsFormatExcel...
<gh_stars>0 CREATE TABLE counter ( id INT PRIMARY KEY NOT NULL, sec1 INT, min1 INT, h1 INT ); INSERT INTO `counter`(`id`, `sec1`, `min1`, `h1`) VALUES (1,0,0,0); INSERT INTO `counter`(`id`, `sec1`, `min1`, `h1`) VALUES (2,0,0,0); INSERT INTO `counter`(`id`, `sec1`, `min1`, `h1`) VALUES (3,0,0,0); INSE...
<gh_stars>0 -- --------------------------- -- Table structure for castle_doorupgrade -- --------------------------- CREATE TABLE IF NOT EXISTS castle_doorupgrade ( doorId INT NOT NULL default 0, hp INT NOT NULL default 0, pDef INT NOT NULL default 0, mDef INT NOT NULL default 0, PRIMARY KEY (doorId ) );
<filename>resources/migrations/20151124160028-create-chord-progression-table.up.sql CREATE TABLE IF NOT EXISTS chord_progressions ( chord_id SERIAL PRIMARY KEY, chord_progression TEXT ); --;;
#创建数据库 create database cishop20141117 charset utf8; #选择数据库 use cishop20141117; /*------------------------------------商品模块---------------------------------------*/ #创建商品类别表 create table cishop_category( cat_id smallint unsigned not null auto_increment primary key comment '商品类别ID', cat_name varchar(30) not null defau...
DROP TABLE fy_activity; CREATE TABLE `fy_activity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '活动表', `main_pic` varchar(255) DEFAULT NULL COMMENT '活动主图', `desc` varchar(255) DEFAULT NULL COMMENT '描述', `name` varchar(32) DEFAULT NULL COMMENT '活动名称', `start_date` int(11) DEFAULT NULL COMMENT '活动开始...
alter table "public"."lb_update_log" add column "siret" text null;
-- Rename content_cid columns to metadata_cid ALTER TABLE nft_metadata RENAME COLUMN cid TO content_cid; ALTER TABLE nft_asset RENAME COLUMN metadata_cid to content_cid; ALTER TABLE other_nft_resources RENAME COLUMN metadata_cid to content_cid; -- Rename column content to json ALTER table nft_metadata RENAME COL...
CREATE TABLE if not exists gems__episodes_of_care ( gec_episode_of_care_id bigint unsigned not null auto_increment, gec_id_user bigint unsigned not null references gems__respondents (grs_id_user), gec_id_organization bigint unsigned not null references gems__organiz...