sql
stringlengths
6
1.05M
# Host: 192.168.64.128 (Version 5.6.36-debug) # Date: 2017-09-24 14:06:27 # Generator: MySQL-Front 6.0 (Build 1.176) # # Structure for table "article" # CREATE TABLE `article` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `article_name` varchar(100) NOT NULL DEFAULT '', `article_abstract` varchar(255) NOT NULL DE...
<reponame>shrikantbag/scott_show -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 13, 2022 at 11:38 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!...
CREATE TABLE keystore_profile( id BIGINT PRIMARY KEY NOT NULL, keystore_type TEXT NOT NULL, creation_time DATE NOT NULL, passphrase TEXT NOT NULL );
create or replace package body ut_compound_data_helper is /* utPLSQL - Version 3 Copyright 2016 - 2018 utPLSQL Project 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.a...
# --- !Ups CREATE TABLE clicks( click_id serial PRIMARY KEY, user_id int NOT NULL REFERENCES users, leaf_id int NOT NULL REFERENCES leafs, click_lat numeric(10,7) NOT NULL, click_lng numeric(10,7) NOT NULL, UNIQUE(user_id, leaf_id) );; # --- !Downs DROP TABLE IF EXISTS clicks;;
-- mail preferences alter table o_user add (receiverealmail varchar(16 char)); -- mail system create table o_mail ( mail_id number(20) not null, meta_mail_id varchar(64 char), creationdate date, lastmodified date, resname varchar(50 char), resid number(20), ressubpath varchar(2048 char), businesspath v...
<gh_stars>1-10 -- update EmulatedMachine value to rhel6.2.0 select fn_db_update_config_value('EmulatedMachine','rhel6.2.0','3.0');
<filename>store/queries/validators_epochs_import.sql INSERT INTO validator_epochs ( account_address, epoch, validator_fee ) VALUES @values ON CONFLICT (account_address, epoch) DO UPDATE SET validator_fee = excluded.validator_fee
set echo on alter system flush shared_pool; DECLARE l_plans_dropped PLS_INTEGER; BEGIN FOR REC IN (SELECT DISTINCT SQL_HANDLE FROM DBA_SQL_PLAN_BASELINES where sql_text like '%HELLO%') LOOP L_PLANS_DROPPED := DBMS_SPM.DROP_SQL_PLAN_BASELINE ( sql_handle => rec.sql_handle, PLAN_NAME => NUL...
CREATE TABLE "source_collector"."Schema" ( "Id" UUID NOT NULL DEFAULT gen_random_uuid(), "Stamp" timestamptz NOT NULL DEFAULT now(), "SchemaMap" jsonb NOT NULL, PRIMARY KEY ("Id"), UNIQUE ("Id") );
<reponame>Likuisa13/outbond-Yii2 /* SQLyog Community v13.1.5 (64 bit) MySQL - 5.6.21 : Database - outbond ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET...
# --- DB evalulation for anorm db access # --- !Ups CREATE TABLE Tokens ( id varchar(36) NOT NULL, email varchar(255) NOT NULL, creationTime TIMESTAMP NOT NULL, expirationTime TIMESTAMP NOT NULL, isSignUp boolean NOT NULL, PRIMARY KEY (id) ); # --- !Downs DROP TABLE Tokens;
<filename>Redshift Imports/Canvas_Nightly_Imports_DDL.sql create or replace table ASSIGNMENT_DIM ( ID DECIMAL(18), CANVAS_ID DECIMAL(18), COURSE_ID DECIMAL(18), TITLE VARCHAR(256) UTF8, DESCRIPTION VARCHAR(500000) UTF8, DUE_AT TIMESTAMP, UNLOCK_AT TIMESTAMP, LOCK_AT TIMESTAMP, POINTS_POSSIBLE DECIMAL(18,3), ...
-- DropForeignKey ALTER TABLE `matchinfodto` DROP FOREIGN KEY `matchinfodto_ibfk_1`; -- DropForeignKey ALTER TABLE `matchmetadatadto` DROP FOREIGN KEY `matchmetadatadto_ibfk_1`; -- DropForeignKey ALTER TABLE `objectivedto` DROP FOREIGN KEY `objectivedto_ibfk_1`; -- DropForeignKey ALTER TABLE `objectivedto` DROP FORE...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2020 at 07:13 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>server/utils/sql_dump.sql -- SCHEMA CREATE TABLE IF NOT EXISTS Users ( id int AUTO_INCREMENT, display_name varchar(255), slack_id varchar(255), PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS Stories ( id int AUTO_INCREMENT, max_lines int DEFAULT 10, locked bool DEFAULT FALSE, locked_by int ...
/* 180. Consecutive Numbers Table: Logs +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | num | varchar | +-------------+---------+ id is the primary key for this table. Write an SQL query to find all numbers that appear at least three times consecutiv...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2021 at 02:32 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE [dbo].[JinglesOnAir] ( [JingleID] INT NOT NULL, [StartingDate] DATETIME CONSTRAINT [DF_JinglesOnAir_StartingDate] DEFAULT (((1990)-(1))-(1)) NULL, [EndingDate] DATETIME CONSTRAINT [DF_JinglesOnAir_EndingDate] DEFAULT (((2500)-(12))-(31)) NULL, [keyID] ...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 11, 2021 at 11:07 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>ZakarFin/kartta.paikkatietoikkuna.fi UPDATE oskari_statistical_datasource SET config='{ "url": "https://statdb.luke.fi/pxweb/api/v1/{language}/LUKE", "info": { "url": "https://stat.luke.fi/" }, "regionKey": "ELY-keskus" }' where locale LIKE '%Luonnonvarakeskus%';
UPDATE config SET version = 'v1.2.0';
<reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5480910_sys_gh3227-app_perf_indices.sql CREATE UNIQUE INDEX IF NOT EXISTS ad_attachment_record_id_ad_table_id ON public.ad_attachment USING btree (record_id, ad_table_id); DROP...
-- -- Copyright 2004-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...
<reponame>bryan-gilbert/assignments # use bookazon; # source Bookazon.sql; # b. Who is the best-selling author in each of the last 5 years, by unit volume (the number of books sold), # and by sales volume (the total value of their sales) in the category Fiction > Thrillers > Spy Novels SET @cat = 'Fiction > Thrillers ...
-- 初始化表25 :菜单审核状态字典表数据 insert into dic_jinlong_system_menu_examine_state (value, name) values (1, '未审核'); insert into dic_jinlong_system_menu_examine_state (value, name) values (2, '审核通过'); insert into dic_jinlong_system_menu_examine_state (value, name) values (3, '审核未通过'); insert into dic_jinlong_system_menu_examine_s...
<gh_stars>0 -- logic for upgrading the SGAS PostgreSQL schema from version 3.3 to 3.4 -- SGAS should be stopped when performing this upgrade -- add hash index for insert_time in order to reduce the load on the system when performing updates CREATE INDEX insert_time_date_hash_idx ON usagedata USING HASH (date(insert_...
<reponame>primesoftpro/exhibition-db INSERT INTO persons(organizationid, photo, phone, email, site) VALUES (@org1_firstid + 3, 'http://www.tulamash.ru/media/uploads/boss.jpg', '+7 (4872) 55-87-13', '<EMAIL>', 'http://www.tulamash.ru/page/contacts'); SET @person_firstid := @last_inserted_id; INSERT INTO persons(organiza...
<filename>src/main/resources/jpa/data.sql<gh_stars>0 INSERT INTO user (gmt_create, gmt_modified, password, username) VALUES ('2018-04-23 12:05:59', '2018-04-23 12:05:59', '$2a$10$FPlXhfeUqClE9wTqMZMyCO/myeLynAkuYr1Z9v/atFze9qyWDSAIS', 'admin'); INSERT INTO user (gmt_create, gmt_modified, password, username) VALUES ('20...
<gh_stars>0 use mansi create table EmpPayHistPart ( EmployeeId int, RateChangeDate datetime, Rate money, PayFrequency tinyint, ModifiedDate datetime )on RateChngDate(RateChangeDate) select * from EmpPayHistPart
<gh_stars>0 CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE; CREATE TABLE IF NOT EXISTS "public".ticks ( time TIMESTAMPTZ, exchange varchar NOT NULL , pair varchar NOT NULL , opening_price double PRECISION NULL , highest_price double PRECISION NULL , lowest_price double PRECISION NULL , closing_price double P...
CREATE TABLE [dbo].[WutLink] ( [WutLinkId] INT IDENTITY (1, 1) NOT NULL, [ShortUrl] NVARCHAR (128) NOT NULL, [CreateDate] DATETIME NOT NULL, [CreatedByIp] VARCHAR (64) NULL, [IsProtected] BIT NOT NULL, [RealUrl] NVARCHAR (MAX) NOT NULL, [Comments] ...
<gh_stars>1-10 ALTER TABLE packages DROP COLUMN IF EXISTS jsonb, ALTER COLUMN id TYPE VARCHAR (50), ADD COLUMN IF NOT EXISTS name VARCHAR (200) NOT NULL, ADD COLUMN IF NOT EXISTS content_type VARCHAR (50); CREATE INDEX IF NOT EXISTS package_name_index ON packages (name);
<filename>tests/queries/0_stateless/01701_if_tuple_segfault.sql DROP TABLE IF EXISTS agg_table; CREATE TABLE IF NOT EXISTS agg_table ( time DateTime CODEC(DoubleDelta, LZ4), xxx String, two_values Tuple(Array(UInt16), UInt32), agg_simple SimpleAggregateFunction(sum, UInt64), agg SimpleAggregateFunc...
-- @testpoint:opengauss关键字sql(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists sql; create group sql with password '<PASSWORD>'; drop group sql; --关键字带双引号-成功 drop group if exists "sql"; create group "sql" with password '<PASSWORD>'; drop group "sql"; --关键字带单引号-合理报错 drop group if exists 'sql'; create group 'sql' with ...
<reponame>LahiruChaminda/safe-drive -- Adminer 4.2.3 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 `migrations`; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLA...
<gh_stars>0 SELECT Wands.id, Wands_Property.age, Wands.coins_needed, Wands.power FROM Wands INNER JOIN Wands_Property ON Wands.code = Wands_Property.code WHERE Wands_Property.is_evil = 0 AND Wands.coins_needed = ( SELECT MIN(Wands_2.coins_needed) FROM Wands AS Wands_2 ...
-- <Migration ID="95d17735-5e39-4c1c-90e5-cf2b6c891ae2" /> GO /**************************************************************************************************************** ** CREATED BY: <NAME> ** CREATED DATE: 2019.05.08 ** CREATED FOR: PBI 437 ** CREATED: Baseline code for AdventureWorks SQL Change Automa...
<reponame>ingscarrero/dotNet CREATE PROCEDURE [dbo].[spSCMSGetMobileAppMenuItems] @token_id nvarchar(50), @app_id nvarchar(50) AS SELECT TBL_SCMS_VIEW.name as "item_view", TBL_SCMS_MOBILE_MENU.item_caption, TBL_SCMS_MOBILE_MENU.item_title, TBL_SCMS_MOBILE_MENU.item_image_url, TBL_SCMS_MOBILE_MENU.item_id, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Feb 07, 2020 at 03:04 PM -- Server version: 5.7.26 -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `activelearning` -- -- -------------------...
<reponame>josheramirez/movil -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Sep 07, 2020 at 04:07 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
/* AL2Prog */ DELIMITER $$ CREATE DEFINER=`root`@`localhost` FUNCTION `AL2Prog`(alstream VARCHAR(30), program VARCHAR(5), c_id INT) RETURNS bit(1) NO SQL BEGIN if program = "SOF" || program = "NET" || program = "MMW" then if alstream = "Commerce" || alstream = "Engineering Technology" || alstream = ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 27, 2019 at 02:01 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.2.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
/* *********************************** Development high seas product v1 00_merge_land.sql Run in pgadmin 4.4 salvadorf 2020-05-11 ************************************* */ -- 1. Merge all the countries in EEZ_Land. Takes around 1h. CREATE TABLE high_seas_00 (the_geom geometry); INSERT INTO public.high_seas_00 SE...
SELECT * FROM "Contacts" WHERE id < ?last_seen_id ORDER BY id DESC FETCH FIRST "10" ROWS ONLY;
#1 Create a new file named order_by_exercises.sql and copy in the contents of your exercise from the previous lesson. -------------------------- #1 Create a file named where_exercises.sql. Make sure to use the employees database. USE employees; SHOW tables; #2 Find all current or previous employees with first names ...
ALTER TABLE product_stock_and_price ADD COLUMN reserved_stock integer;
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 21, 2021 at 06:31 PM -- Server version: 5.7.27-30 -- PHP Version: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
-------------------------------------------------------- -- DDL for Table LOGIN -------------------------------------------------------- CREATE TABLE "HULAHULA"."LOGIN" ( "EMPLOYEE_ID" NUMBER, "DEPARTMENT_ID" VARCHAR2(20 BYTE), "USERNAME" VARCHAR2(100 BYTE), "PASSWORD" VARCHAR2(20 BYTE) ) SEGMENT CREAT...
<gh_stars>1-10 CREATE TABLE [dbo].[States] ( [StateId] INT NOT NULL, [StateName] VARCHAR (50) NOT NULL, CONSTRAINT [PK_States] PRIMARY KEY CLUSTERED ([StateId] ASC) );
<reponame>AbdelrahmanBayoumi/Azkar-App CREATE TABLE "onboarding" ( "isFirstTimeOpened" INTEGER NOT NULL DEFAULT 0 ); INSERT INTO "onboarding" ("isFirstTimeOpened") VALUES (1);
-- this is a short term fix to correct a coding error where the code C was used for caucuses and conventions create or replace function expand_election_type_caucus_convention_clean(trc_election_type_id text, trc_election_id numeric) returns text as $$ begin return case when trc_election_id in (1...
<filename>scripts/psql.data.transposed.sql CREATE EXTENSION IF NOT EXISTS postgis; CREATE TABLE timeseries ( id integer NOT NULL, key varchar(180) NOT NULL, date date, fips char(5) NOT NULL, adm3 varchar(60) NOT NULL, adm2 varchar(60) NOT NULL, adm1 varchar(60) NOT NULL, lat NUMERIC(9, 6),...
<reponame>vrattant/followup -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 10, 2017 at 02:16 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
<reponame>jayantchen96/Java-Advanced<gh_stars>0 # 6.(必做)基于电商交易场景(用户、商品、订单),设计一套简单的表结构,提交 DDL 的 SQL 文件到 Github # 创建数据库 create database if not exists emall; # 使用数据库 use emall; # 创建用户表 create table `user` ( `id` int auto_increment not null comment '用户ID', `username` varchar(32) not null comment '用户名', `passwo...
-- ----------------------------------------------------- -- Table `prod`.`data` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `prod`.`data` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `created_date` DATETIME NOT NULL, `last_modified_date` DATETIME ...
<reponame>universal-pictures/codeservice ALTER TABLE udccs.master_code ADD COLUMN expires_on datetime DEFAULT NULL;
<filename>inspector/summary_views/union_ndt_one.sql -- from .../analysis/inspector/summary_views/{{query}} -- SELECT * FROM ( (SELECT * FROM `{{ProjectID}}.inspector.summarize_ndt_{{Datasource}}_ndt7_downloads`) UNION ALL (SELECT * FROM `{{ProjectID}}.inspector.summarize_ndt_{{Datasource}}_ndt7_uploads`) UNION ALL...
<gh_stars>0 -- @testpoint:opengauss关键字size(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists size; create data source size; drop data source size; --关键字带双引号-成功 drop data source if exists "size"; create data source "size"; drop data source "size"; --关键字带单引号-合理报错 drop data source if exists 'size'; create data sou...
<reponame>igorcaf3/PDO-CONNECTIONS<filename>MySQL/script-sql/query.sql USE mysql; DROP DATABASE IF EXISTS PDO; CREATE DATABASE PDO; USE PDO; DROP TABLE IF EXISTS Vendas; CREATE TABLE Vendas ( Id INT AUTO_INCREMENT PRIMARY KEY, DtVenda TIMESTAMP, Nome VARCHAR(50) NOT NULL, Qtd INT, Val...
use crhdybcsctttyd85; create table if not exists Bioware ( bioware_id varchar(36) not null primary key, bioware_name varchar(36) not null, bioware_max_rating int not null, bioware_rate_mult tinyint(1) not null, bioware_ess float not null, bioware_avail varchar(5) not null, bioware_cost int not null, bi...
<gh_stars>0 -- Apagar o banco de dados em desenvolvimento DROP DATABASE IF EXISTS sitephp; -- Cria banco de dados CREATE DATABASE sitephp CHARACTER SET utf8 COLLATE utf8_general_ci; -- Cria tabela que armazena os contatos CREATE TABLE contatos ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, data TIMESTAMP NOT NUL...
<reponame>kbario/employeeDatabaseCLI USE cafe_db; INSERT INTO departments (id, department_name) VALUES (001, "Front-of-House"), (002, "Kitchen"), (003, "Deliveries"); INSERT INTO roles (id, title, salary, department_id) VALUES (001, "Barista", 50000, 001), (002, "Till", 40000, 001), (003, ...
<reponame>avazquezcendron/star-me-app USE [StarMeAppDB] GO /****** Object: Table [dbo].[Star] Script Date: 8/23/2020 12:58:59 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Star]( [IdStar] [numeric](14, 0) IDENTITY(1,1) NOT NULL, [Title] [varchar](30) NOT NULL, [Summary] [varc...
ALTER TABLE `submenu` ADD `linked` VARCHAR(100) NOT NULL AFTER `submenu`;
CREATE TABLE /*$wgDBprefix*/patreon_tierchange ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, patreon_id DECIMAL(25,0) unsigned NOT NULL, oldTier TINYTEXT NOT NULL, newTier TINYTEXT NOT NULL, date TIMESTAMP NOT NULL, KEY(patreon_id) ) /*$wgDBTableOptions*/;
<reponame>mattdood/graph-ein UPDATE {{schema_name}}_edges SET properties = json(?) WHERE source = ? AND target = ? ;
cat <<EOF .mode csv .headers on .import csv input SELECT duration_s / 60 AS duration_m, AVG($column) AS $column FROM input GROUP BY duration_s / 60 HAVING duration_m > 0 AND duration_m < $max_duration_m ORDER BY duration_m; EOF
<reponame>danieldiamond/gitlab-analytics<filename>transform/snowflake-dbt/tests/zuora/zuora_assert_no_self_reference.sql -- Asserts that a subscription is not linked to itself as a renewal subscription SELECT * FROM {{ ref('zuora_subscription_xf') }}, LATERAL flatten(input => zuora_renewal_subscription_name_sl...
SELECT OBJECT_NAME(dps.object_id) AS object_name, i.name AS index_name, dps.used_page_count * 8.0 / 1024 AS used_page_MB, dps.reserved_page_count * 8.0 / 1024 AS reserved_page_MB, dps.row_count FROM sys.dm_db_partition_stats AS dps LEFT JOIN sys.indexes as i ON i.object_id =...
<filename>layouts/db/mysql/schema/2015-06-16_16-16-14_u_rolle2usedlayer_gle_view.sql BEGIN; ALTER TABLE `u_rolle2used_layer` ADD `gle_view` BOOLEAN NULL DEFAULT NULL AFTER `queryStatus`; COMMIT;
<gh_stars>0 -- $Id$ -- Description: alter table WF_PROC add column AVAILABLE_ROLE_ID uuid^ alter table WF_PROC add constraint WF_PROC_AVAILABLE_ROLE_ID foreign key (AVAILABLE_ROLE_ID) references SEC_ROLE(ID)^
create table License ( id integer generated by default as identity unique, name varchar(255), value varchar(255) not null unique, primary key (id) ); create table Status ( id integer generated by default as identity unique, name varchar(255), value varchar(255) not null unique, primary ...
<filename>aurum_etl_ndorms/sql_scripts/map_in_chunks_main.sql drop index if exists {TARGET_SCHEMA}.idx_stem_source_concept_id; --insert into temp table from observation insert into {TARGET_SCHEMA}.stem_source(person_id, visit_occurrence_id, visit_detail_id, provider_id, source_value, source_concept_id, type_conc...
<reponame>bllewell/yugabyte-db DO $$ BEGIN IF EXISTS (SELECT * FROM information_schema.tables WHERE table_name = 'schema_version') THEN -- Fix migration 68 UPDATE schema_version SET type = 'JDBC', checksum = NULL, description = 'Create New Alert Definitions Extra Migration', script = 'db.migra...
<filename>SQLscrpts/Modify_TableCourse20061007.sql use brihaspati; ALTER TABLE COURSES ADD LASTACCESS DATE NOT NULL;
<reponame>k8scommerce/k8scommerce -- +goose Up -- +goose StatementBegin CREATE TABLE archetype_option ( archetype_id bigint, option_id bigint, PRIMARY KEY (archetype_id, option_id), FOREIGN KEY (archetype_id) REFERENCES archetype (id), FOREIGN KEY (option_id) REFERENCES option (id) ); -- +goose Sta...
<filename>openGaussBase/testcase/SQL/DATATYPE/jsonb/Opengauss_Function_Datatype_Jsonb_Case0086.sql -- @testpoint: json额外支持操作函数:json_agg(将值聚集为json类型的数组,当入参不合理时,合理报错) --合理入参 drop table if exists classes; create table classes(class int,name varchar,score float); insert into classes values(1,'xiaoming',87.5),(3,'xiaowang'...
<gh_stars>0 CREATE TABLE [base].[Operation] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [Scope] NVARCHAR(16) NOT NULL, [ContextName] NVARCHAR(512) NOT NULL, [UserId] INT NULL, [IsSystemA...
select * from( select count(ip) as invasion_qty, ip,toport,hostname, (cast(((max(tstamp) - min(tstamp)) / 1000) as UNSIGNED)) as epoch_dur, floor(((max(tstamp) - min(tstamp)) / 1000) / 86400) as day_span, SEC_TO_TIME(cast(mod(((max(tstamp) - min(tstamp)) / 1000), 86400) as UNSIGNED...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 01, 2019 at 12:30 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* Navicat SQL Server Data Transfer Source Server : localhost Source Server Version : 140000 Source Host : localhost:1433 Source Database : opennos Source Schema : dbo Target Server Type : SQL Server Target Server Version : 140000 File Encoding : 65001 Date: 2018-01-03 22:5...
/* Deployment script for ObservationsTest This code was generated by a tool. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. */ GO SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON; SET NUMERIC_ROUNDABORT OFF; GO :...
<filename>sql/mysql_setup.sql create database dev; use dev; create table people ( id int, name text, birth_date date ); insert into people values (1, 'Brunon', '1801-02-03'), (2, 'Cedryk', '1885-06-05'), (3, 'Kleofas', '1890-11-23'); alter table people add constraint prima...
CREATE TABLE IF NOT EXISTS public.enrolable__enrolable ( id UUID PRIMARY KEY, type VARCHAR NOT NULL ); -- type: program CREATE TABLE IF NOT EXISTS public.enrolable__program ( id UUID PRIMARY KEY REFERENCES enrolable__enrolable(id) ON DELETE CASCADE ); -- type:...
insert ignore into person_schedule_info (sched_id, person_id, department, day1, day2, day3, day4, day5, day6, day7, day8, day9, day10, day11, day12, day13, day14, day15, day16, day17, day18, day19, day20, day21, day22, day23, day24, day25, day26, day27, day28, day29, day30) values (null, 853, 'Gislason Inc', 0, 3, 2, 5...
DEFINE RECORD CDD$TOP.PR.PR_CERT_MIN_WAGE DESCRIPTION IS /*Certificate of Minimum Wage*/. PR_CERT_MIN_WAGE_CDD STRUCTURE. /* Element = DATE Description = Date */ EFF_DATE DATATYPE IS TEXT SIZE IS 8. /* Element = Description = Minimum wage rate *...
<reponame>Shuttl-Tech/antlr_psql -- file:triggers.sql ln:1019 expect:true create trigger depth_b_tr before insert on depth_b for each row execute procedure depth_b_tf()
-- file:rowtypes.sql ln:256 expect:true select row_to_json(i) from vv1 i(x,y)
-- -- Create the extension and server for tests -- CREATE DATABASE kvtest; \c kvtest CREATE EXTENSION kv_fdw; CREATE SERVER kv_server FOREIGN DATA WRAPPER kv_fdw;
INSERT INTO test_data (sample) VALUES ('A sample text seed.'); INSERT INTO test_data (sample) VALUES ('${a}'); INSERT INTO test_data (sample) VALUES ('${b}');
<reponame>Memor1es/VoidRP-FIveM-Server INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('lockpick', 'Lock Pick', -1, 0, 1), ('darknet', 'Dark Net', 1, 0, 1), ('drill', 'Drill', 1, 0, 1), ('binoculars', 'Binoculars', 1, 0, 1), ('oxygen_mask', 'Oxygen Mask', -1, 0, 1), ('bulletproof', 'B...
<reponame>babbaabbbaaa/modbus-plc<filename>src/main/resources/db/migration/V1__Add_Qualified_Columns.sql alter table plc.plc_data add column qualified varchar(10); alter table plc.plc_pattern_config add column qualified_start int not null default 1; alter table plc.plc_pattern_config add column qualified_end int not ...
<reponame>project-asap/Profiler DROP TABLE IF EXISTS part_agg; CREATE TABLE part_agg AS SELECT l_partkey AS agg_partkey, 0.2 * AVG(l_quantity) AS avg_quantity FROM lineitem GROUP BY l_partkey ;
<filename>wwwroot/ewcommon/sqlUpdate/toV4/4.1.1.9/fxn_GetMembers_Sub.sql /****** Object: UserDefinedFunction [dbo].[fxn_getMembers_Sub] Script Date: 02/05/2009 15:30:55 ******/ IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[fxn_getMembers_Sub]') AND xtype in (N'FN', N'IF', N'TF')) DROP FUNC...
<filename>flinkx-examples/sql/sqlservercdc/sqlservercdc_stream.sql CREATE TABLE source ( id int, name varchar(22), day1 date, day2 timestamp, sale decimal(10,3) ) WITH ( 'connector' = 'sqlservercdc-x' ,'username' = 'test' ,'password' = '<PASSWORD>' ,'cat' = 'insert,delete,up...
<gh_stars>10-100 BEGIN; ALTER TABLE cluster ADD COLUMN terraform_state bytea; ALTER TABLE cluster ADD COLUMN credentials_secret_name varchar(256) NOT NULL default ''; CREATE TABLE gcp_config ( id uuid PRIMARY KEY CHECK (id <> '00000000-0000-0000-0000-000000000000'), cluster_id uuid NOT NULL, name varchar(...
<reponame>UAMS-DBMI/PosdaTools -- Name: GetMaxFileIdForDicomEditCompare -- Schema: posda_files -- Columns: ['file_id'] -- Args: ['subprocess_invocation_id'] -- Tags: ['used_in_file_import_into_posda', 'used_in_file_migration'] -- Description: Get count of files relative to storage root -- select max(file_id) as file...
ALTER TABLE `addons_collections` MODIFY `created` datetime(6) NOT NULL, MODIFY `modified` datetime(6) NOT NULL, MODIFY `addon_id` int(10) unsigned NOT NULL, MODIFY `collection_id` int(10) unsigned NOT NULL, MODIFY `comments` int(10) unsigned DEFAULT NULL, MODIFY `ordering` int(10) unsigned NOT ...
create table tab1(id int, num int); create table tab2(id int); create table tab3(text varchar(80)); insert into tab1 values (0,0),(0,1),(0,2),(0,3),(0,4); insert into tab1 values (1,0),(1,1),(1,2),(1,3),(1,4); insert into tab1 values (2,0),(2,1),(2,2),(2,3),(2,4); insert into tab1 values (3,0),(3,1),(3,2),(3,3),(3,4)...