sql
stringlengths
6
1.05M
-- CREATE DATABASE IF NOT EXISTS streamline; -- USE streamline; -- THE NAMES OF THE TABLE COLUMNS MUST MATCH THE NAMES OF THE CORRESPONDING CLASS MODEL FIELDS; CREATE TABLE IF NOT EXISTS dashboard ( id BIGINT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, description VARCHAR(256) NOT NULL, data TEXT N...
<reponame>97ying/abac-spring-security<gh_stars>0 INSERT INTO "cvc_permission"("id", "permission", "type") VALUES (2, 'vehicle_detail:read', 'widget'); INSERT INTO "cvc_permission"("id", "permission", "type") VALUES (1, 'vehicles_list:read', 'widget'); INSERT INTO "cvc_permission"("id", "permission", "type") VALUES (3, ...
-- { echo } SELECT toUInt32OrDefault(toNullable(toUInt32(1))) SETTINGS cast_keep_nullable=1; SELECT toUInt32OrDefault(toNullable(toUInt32(1)), toNullable(toUInt32(2))) SETTINGS cast_keep_nullable=1; SELECT toUInt32OrDefault(toUInt32(1)) SETTINGS cast_keep_nullable=1; SELECT toUInt32OrDefault(toUInt32(1), toUInt32(2)) S...
-- n9e version 5.8 for postgres CREATE TABLE users ( id bigserial, username varchar(64) not null , nickname varchar(64) not null , password varchar(128) not null default '', phone varchar(16) not null default '', email varchar(64) not null default '', portrait varchar(255) not null default ...
<reponame>apereo-tesuto/tesuto -- Re-create the faculty group role insert into "security_group" (security_group_id, created_on_date, last_updated_date, description, group_name) values (5, timestamp 'now', timestamp 'now', 'Faculty security group', 'FACULTY'); insert into security_group_security_permission (security_gr...
#standardSQL create temp function get_shas(json string) returns array<string> language js as """ try { return JSON.parse(json).commits.map(x=>x.sha); } catch(error) { return [] } """; with pushes as ( select get_shas(payload) as shas from `githubarchive.{{table}}` where type = 'PushEve...
---------------------------------------------------------------- -- [tags] Table -- CREATE OR REPLACE FUNCTION Inserttags ( v_description VARCHAR(4000), v_tag_id UUID, v_tag_name VARCHAR(50), v_parent_id UUID, v_readonly BOOLEAN, v_type INT ) RETURNS VOID AS $PROCEDURE$ BEGIN INSERT IN...
<reponame>mig5/hydra ALTER TABLE hydra_oauth2_authentication_session DROP COLUMN remember;
# source mysql.sql create table if not exists surpasser( surpasser_id int(20) not null auto_increment, name varchar(20) not null, surpass_kind varchar(20) default null, surpass_level varchar(20) default null, primary key (surpasser_id) ); create table news( id int(11) not null auto_increment, ...
<gh_stars>1-10 -- +goose Up CREATE TYPE task_status AS ENUM ( 'created', 'in_progress', 'complete_success', 'complete_error' ); CREATE TYPE task_type AS ENUM ( 'module' ); CREATE TABLE tasks ( uuid UUID PRIMARY KEY, worker TEXT NOT NULL, commit_sha BYTEA NOT NULL, type task_type NOT NULL, ...
--combination with group by and limit clause create table wb_gl( col1 int auto_increment primary key, col2 smallint, col3 char(30) default 'abc', col4 date default SYSDATE, col5 clob ); insert into wb_gl(col2, col3, col4, col5) values(500, 'cubrid', '1990-10-10', '<EMAIL>'); insert into wb_gl(col2, col3, col4,...
<reponame>KarmaScripter/BudgetX CREATE TABLE PayPeriods ( PayPeriodId INTEGER NOT NULL UNIQUE CONSTRAINT PrimaryKeyPayPeriods PRIMARY KEY, Period TEXT(255) NOT NULL, PayPeriod TEXT(255) NULL, StartDate DATETIME NULL, EndDate DATETIME NULL );
CREATE TABLE sample_data ( artist TEXT NOT NULL , album TEXT , track TEXT NOT NULL , scrobble_timestamp TIMESTAMPTZ NOT NULL ); CREATE TABLE files ( id INTEGER PRIMARY KEY NOT NULL , name TEXT NOT NULL , artist_name TEXT NOT NULL , album_name TEXT NOT NULL , track_name TEXT NOT NULL ); CREATE TABLE onsets ( fil...
-- ----------------------------------------------------------------------------------- -- File Name : https://oracle-base.com/dba/monitoring/sql_text.sql -- Author : <NAME> -- Description : Displays the SQL statement held at the specified address. -- Comments : The address can be found using v$session or ...
<filename>src/main/resources/db/migration/V200__Remove_PlaceholderAI_Flag.sql<gh_stars>1-10 ALTER TABLE `SectionGroups` DROP COLUMN `ShowPlaceholderAI`;
-- file:vacuum.sql ln:55 expect:true ANALYZE vaccluster
/* * Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-BASE 蓝鲸基础平台 is licensed under the MIT License. * * License for BK-BASE 蓝鲸基础平台: * ----------------------------------------------...
<reponame>francesco1119/QueryLauncher -- 14 Vista Top Queries and Plans (NOTE: Save this to a text file VIA "COPY ALL WITH HEADERS", not pasted into excel) -- the qs.query plan field is large and why results can't be pasted into Excel; remove this is it is a problem or not needed -- This has SQL version specific fiel...
use data_extracts; drop procedure if exists buildDatasetForBHRChildImms; DELIMITER // CREATE PROCEDURE buildDatasetForBHRChildImms() BEGIN drop table if exists dataset_bhr; create table dataset_bhr ( id bigint(20) default NULL, patient_id big...
<reponame>jwgwarren/PhenotypeData -- database: cda INSERT INTO genomic_feature (acc, db_id, symbol, name, biotype_acc, biotype_db_id, subtype_acc, subtype_db_id, seq_region_id, seq_region_start, seq_region_end, seq_region_strand, cm_position, status) VALUES ('MGI:1342291', 3, 'Rlim', 'ring finger protein, LIM doma...
SET DEFINE OFF; Insert into ORDERS (ORDR_ID, VERSION, BPAR_ID, ORDERDATE, TRACKING_NUMBER, STATUS, SHIPPING_STREET, SHIPPING_CITY, SHIPPING_STATE, SHIPPING_ZIPCODE, SHIPPING_COUNTRY) Values (1, 0, 1, TO_DATE('02/10/2016 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), '423421', '1', 'Mystreet', 'London', NULL...
begin; -- cif.cif_user should not be truncated or else all tables should be (since they all have a created_by column) truncate table cif.form_change, cif.project_revision, cif.project, cif.project_manager, cif.operator restart identity; commit;
<gh_stars>0 UPDATE Tickets SET Price *= 1.13 WHERE FlightId = (SELECT Id FROM Flights WHERE Destination = 'Carlsbad')
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 17 Des 2016 pada 05.16 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.17.32 -- Tiempo de generación: 28-07-2020 a las 21:03:43 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
<reponame>StephenDevenney/library-tracker-app<filename>library-tracker/Library.Tracker.Database/Tables/AppSettings.sql<gh_stars>0 CREATE TABLE [security].[AppSettings] ( [AppSettingsId] INT IDENTITY(1,1) PRIMARY KEY, [FK_UserId] INT NOT NULL, [FK_ThemeId] INT NOT NULL DEFAULT 1, [FK_AppIdleSecsId] INT NOT NULL, ...
--https://www.hackerrank.com/challenges/weather-observation-station-4 SELECT (SELECT COUNT(CITY) FROM STATION) - (SELECT COUNT(DISTINCT CITY) FROM STATION)
CREATE TABLE IF NOT EXISTS `[#DB_PREFIX#]app_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id', `content` text COMMENT '内容', `add_time` int(10) DEFAULT '0' COMMENT '添加时间', PRIMARY KEY (`id`) ) ENGINE=[#DB_ENGINE#] DEFAULT CHARSET=utf8 COMMENT='APP崩溃异常信息' AUTO_INCREMENT=1; INSERT IGNORE INTO `[#...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.12 -- Dumped by pg_dump version 11.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', f...
WITH tables AS ( SELECT DISTINCT TRIM(pgn.nspname) AS schema_name, TRIM(name) AS table_name, stp.id AS table_id FROM stv_tbl_perm AS stp INNER JOIN pg_class pgc ON pgc.oid = stp.id INNER JOIN pg_namespace pgn ON pgn.oid = pgc.relnamespace ) SELECT vac_start.userid, vac_start.table_id, ...
CREATE TABLE server_link (id INTEGER PRIMARY KEY, desc TEXT NOT NULL, linked_server_id INTEGER NOT NULL, environment TEXT NOT NULL, group_name TEXT CHECK(LENGTH(group_name) > 0), project_id INTEGER NOT NULL, FOREIGN KEY(linked_server_id) REFERENCES server(id) ON DELETE CASCADE, ...
-- rollback makes updated_at inaccurate but preserves SeaORM type integrity ALTER TABLE message ADD COLUMN updated_at timestamp with time zone NOT NULL DEFAULT now(); ALTER TABLE messageattempt ADD COLUMN updated_at timestamp with time zone NOT NULL DEFAULT now();
<filename>tests/suites/0_stateless/02_function/02_0029_function_strings_field.sql<gh_stars>0 -- 2 2 2 2 2 SELECT '===1==='; SELECT FIELD('3', '77', '3') FROM numbers(5) ORDER BY number; -- 0 0 2 0 0 SELECT '===2==='; SELECT FIELD('3', '77', toString(number+1)) FROM numbers(5) ORDER BY number; -- 0 0 2 0 0 SELECT '===3=...
<filename>1.32.0/var/www/html/indicia/modules/cache_builder/db/version_0_1_2/201511031951_fix_output_sref.sql -- #slow script# select co.id, get_output_sref( co.public_entered_sref, co.entered_sref_system, greatest( round(sqrt(st_area(st_transform(s.geom, sref_system_to_srid(s.entered_sref_system))))...
<filename>presto-product-tests/src/main/resources/sql-tests/testcases/aggregate/var_pop.sql -- database: presto; groups: aggregate; tables: datatype select var_pop(c_bigint), var_pop(c_double) from datatype
-- column模式 新建lamp_column, 导入base_0000.sql + extend_0000.sql + defaults.sql ,在执行本脚本 -- 新增租户编码字段 ALTER TABLE `b_order` ADD COLUMN `tenant_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '租户编码' ; ALTER TABLE `b_product` ADD COLUMN `tenant_code` varchar(20) CHARACTER SET ut...
<reponame>gopalramadugu/obevo<filename>obevo-db-impls/obevo-db-hsql/src/test/resources/reveng/hsql/expected/MYSCHEMA01/table/DYN_TABLE_D.sql<gh_stars>100-1000 //// CHANGE name=change0 CREATE MEMORY TABLE DYN_TABLE_D(D_ID INTEGER NOT NULL PRIMARY KEY) GO
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. -- This file contains tests for all features that will be used as part -- of the chunk move/copy multi-node functionality -- A table ...
create type run_status_enum as enum('submitted', 'running', 'succeeded', 'failed', 'aborted', 'starting', 'queued_in_cromwell', 'waiting_for_queue_space'); create type result_type_enum as enum('numeric', 'file', 'text'); create table run( run_id uuid primary key DEFAULT uuid_generate_v4(), test_id uuid not nu...
select distinct itn2.taxon_list_item_key, itn2.preferred_name, itn2.sort_order, itn1.recommended_taxon_list_item_key from index_taxon_name itn1 inner join index_taxon_name itn2 on itn1.recommended_taxon_list_item_key = itn2.taxon_list_item_key inner join vw_designations d on itn2.taxon_lis...
CREATE TABLE `users` ( `id` int(11) NOT NULL, `name` text COLLATE utf8_unicode_ci NOT NULL, `email` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `confirm_password` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `date_register` datetime NOT NULL DEFAU...
<reponame>andresfelipe9619/Node---Music-Player \c musica2 INSERT INTO usuario(nombre_usuario, password) VALUES ('<EMAIL>lo<EMAIL>', '<PASSWORD>'); INSERT INTO usuario(nombre_usuario, password) VALUES ('<EMAIL>', '<PASSWORD>'); INSERT INTO usuario(nombre_usuario, password, premium) VALUES ('<EMAIL>', '<PASSWORD>', T...
<gh_stars>0 -- Query to insert an admin user INSERT INTO user_account (id, account_type, username, pass, email) VALUES (1, 'admix', 'enrique.sotelo', md5('3leF4n7E'),'<EMAIL>'); -- Query to insert a client user INSERT INTO user_account (account_type, pass, email) VALUES ('clientx', md5('password'), '<EMAIL>');
<gh_stars>0 alter table GJELDENDE_MOTE_SMS add KANAL nvarchar2(255); alter table MOTE_SMS_HISTORIKK add KANAL nvarchar2(255);
SELECT `name` FROM characters ORDER BY `name`;
<reponame>crashantrax/project -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 03, 2019 at 08:02 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<filename>webapp/database-schema.sql ''' <NAME> <NAME> 2/19/2021 ''' CREATE TABLE public.spells( id integer, spell_name text, spell_description text, higher_level text, components text, material text, ritual boolean, duration text, concentration boolean, casting_time text, s...
ALTER TABLE `custom_invoice` ADD `invoice_discount` INT NOT NULL AFTER `invoice_taxes`;
INSERT IGNORE INTO roles(name) VALUES('ROLE_USER'); INSERT IGNORE INTO roles(name) VALUES('ROLE_ADMIN'); --DROP TABLE portal_store.prop_inquiry; --DROP TABLE portal_store.prop_master; --DROP TABLE portal_store.prop_basic; --DROP TABLE portal_store.prop_attachment; --DROP TABLE portal_store.prop_floor; --DROP TABLE por...
<reponame>rokoroid/harviacode /* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.6.16 : Database - harviacode ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!...
-- Strings & characters declare name varchar2(20) := '<NAME>'; x char(1) := 'o'; begin dbms_output.put_line(name); dbms_output.put_line(x); end;
INSERT INTO address_objects (id, address_id, parent_id, level, full_title, title, prefix, house_count, postal_code, address_level, region, next_address_level) VALUES ('29251dcf-00a1-4e34-98d4-5c47484a36d4', '29251dcf-00a1-4e34-98d4-5c47484a36d4', NULL, '0', 'г Москва', 'Москва', 'г', '0', NULL, 1, 77, 7), ('773...
<reponame>mshenfield/subreddit_algebra SELECT subreddit, authors, DENSE_RANK() OVER (ORDER BY authors DESC) AS rank_authors FROM (SELECT subreddit, SUM(1) as authors FROM (SELECT subreddit, author, COUNT(1) as cnt FROM [fh-bigquery:reddit_comments.all_starting_201501] WHERE author NOT IN (SELECT ...
SET DEFINE OFF; create or replace package afw_07_sql_pkg authid current_user as -- Déclaration des types publics type typ_rec_infor_coln is record ( va_indic_expor varchar2 (1) ,nu_type_don number ,va_nom varchar2 (1999) ,va_libl varchar2 (100) ,nu_largr number ...
<gh_stars>10-100 /****** Object: StoredProcedure [GetD05_SubContinent_ReChild] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GetD05_SubContinent_ReChild]') AND type in (N'P', N'PC')) DROP PROCEDURE [GetD05_SubContinent_ReChild] GO CREATE PROCEDURE [GetD05_SubContinent_ReChild] ...
<filename>sql/SchemaChanges/00000002.sql -- Add `runscript_errors` table -- This table keeps track of all runscript errors so that we can see if a -- particular node starts reporting too many errors, and try to prevent it from -- turning into a black hole for JobPairs DROP PROCEDURE IF EXISTS UpdateTo1_2 // CREATE PRO...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-11-2020 a las 01:40:51 -- Versión del servidor: 10.4.14-MariaDB -- Versión de PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.0.8 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 07-03-2016 a las 10:21:00 -- Versión del servidor: 5.1.73-community -- Versión de PHP: 5.2.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- 2020-12-03T11:19:28.324Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('ad_scheduler','FrequencyType','CHAR(1)',null,null) ; -- 2020-12-03T11:19:28.485Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('ad_sched...
/* Modifying data */ USE testdb; --T-- INSERT INTO db1.table1(field1,field2,field3) VALUES ('val1field1','val1field2','val1field3'), ('val2field1','val2field2','val2field3'); INSERT INTO sales(product_id,store_id,quantity,sales_date) VALUES (3,2,5,'2017-02-26'), (3,2,DEFAULT,CURRENT_DATE()), (1,1,...
<filename>src/event_notify.trigger.sql DROP TRIGGER IF EXISTS event_notify ON conreality.event; CREATE TRIGGER event_notify AFTER INSERT ON conreality.event FOR EACH ROW EXECUTE FUNCTION conreality.event_notify();
CREATE TABLE t_cm_intgr_trans_md (terminal_id VARCHAR(6), oper_id NUMERIC(20), datetime TIMESTAMP, oper_type NUMERIC(2), amount NUMERIC(12), note_retracted NUMERIC(4), ...
CREATE TABLE buyclicks ( timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL, txid INTEGER NOT NULL, usersessionid INTEGER NOT NULL, team INTEGER NOT NULL, userid INTEGER NOT NULL, buyid INTEGER NOT NULL, price FLOAT NOT NULL ); CREATE TABLE gameclicks ( timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL, click...
INSERT INTO users (username, password, first_name, last_name) VALUES ('admin', <PASSWORD>', 'Pavel', 'Grafkin');
<gh_stars>1-10 {# based on spark adapter: https://github.com/dbt-labs/dbt-spark/pull/166/files #} {% macro impala__load_csv_rows(model, agate_table) %} {% set batch_size = get_batch_size() %} {% set column_override = model['config'].get('column_types', {}) %} {% set statements = [] %} {% for chunk in agate_t...
-- @testpoint: BINARY类型的测试———RAW类型最大支持8000字节 drop table if exists FVT_FUNC_BINARY_TABLE_017; create table FVT_FUNC_BINARY_TABLE_017(T1 INT,T2 RAW(8000)); --创建自定义函数 create or replace function FVT_FUNC_BINARY_017(P1 RAW) return int is V_LANG RAW(8000); V_length int; BEGIN V_LANG:=P1; For I IN 1 .. 1599 LOOP...
insert into Section_XV (Section, Chapter, Heading, Subheading, Title_EN, Title_PL) values ("XV", '73', '7307', '7307.2', 'Other, of stainless steel', 'Pozostałe, ze stali nierdzewnej'); insert into Section_XV (Section, Chapter, Heading, Subheading, Title_EN, Title_PL) values ("XV", '73', '7307', '7307.21', 'Flanges', '...
CREATE PROCEDURE [App].[Get-Queue] @QueueName [dbo].[QueueNameType] AS BEGIN SET NOCOUNT ON; SELECT x.* ,(SELECT count(*) FROM [AppDbo].[ActiveQueue_View] c WHERE c.[QueueId] = x.[QueueId]) as 'QueueLength' ,(SELECT count(*) FROM [AppDbo].[Schedule_View] s WHERE s.[QueueId] = x.[Q...
# SELECT * FROM film WHERE length > 90 # SELECT * FROM film WHERE length < 90 # SELECT * FROM film WHERE length <= 90 # SELECT * FROM film WHERE length >= 90 SELECT * FROM film WHERE length <= 90 # NOT EQUAL # SELECT * FROM film WHERE length <> 90
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 14 mars 2022 à 17:12 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.18-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.3.0.4984 -- -------------------------------------------...
-- Up ALTER TABLE queries RENAME TO tmp; CREATE TABLE queries ( item_id TEXT NOT NULL, server_id TEXT NOT NULL, parser TEXT NOT NULL, hits INTEGER ); INSERT INTO queries SELECT item_id, server_id, parser, 0 FROM tmp; DROP TABLE tmp; -- Down ALTER TABLE queries RENAME TO tmp; CREA...
CREATE TABLE Paymenttypes ( ID BIGINT , Name VARCHAR(50) , receivable BOOLEAN , CONSTRAINT Paymenttypes_pk PRIMARY KEY (ID) ); CREATE TABLE CHOICE ( ID BIGINT NOT NULL, GROUPID INTEGER, GROUPCODE VARCHAR(...
alter table records alter column deleted TYPE INTEGER;
<reponame>fbiagency/instaync<gh_stars>10-100 -- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 06, 2017 at 02:14 AM -- Server version: 5.6.35 -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: ...
DROP INDEX idx_expires_at_time; DROP TABLE api_sessions;
<gh_stars>1-10 -- -- Normalization table for role names -- CREATE TABLE /*_*/slot_roles ( role_id smallint NOT NULL CONSTRAINT PK_slot_roles PRIMARY KEY IDENTITY, role_name nvarchar(64) NOT NULL ); -- Index for looking of the internal ID of for a name CREATE UNIQUE INDEX /*i*/role_name ON /*_*/slot_roles (role_nam...
/* 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 (the "License"); you may not u...
<gh_stars>0 INSERT INTO `lh_chat_config` (`identifier`, `value`, `type`, `explain`, `hidden`) VALUES ('need_help_tip_timeout','24',0,'Need help tooltip timeout, after how many hours show again tooltip?', '0'); INSERT INTO `lh_chat_config` (`identifier`, `value`, `type`, `explain`, `hidden`) VALUES ('use_secure_cookie',...
<gh_stars>1-10 create function ScalarValuedFunctionWithUnusedTableVariable() returns int as begin declare @A table (a int) -- @A is unused. This should be flagged as a problem return 2 end
DROP FUNCTION IF EXISTS sales.get_late_fee_id_by_late_fee_code(_late_fee_code national character varying(24)); CREATE FUNCTION sales.get_late_fee_id_by_late_fee_code(_late_fee_code national character varying(24)) RETURNS integer AS $$ BEGIN RETURN sales.late_fee.late_fee_id FROM sales.late_fee WH...
/**** description: Pulls business rules from a table and create a CTE for each business rule. The table which is being checked for errors is assumed to be generically types (i.e. ) parameters: validation_db - Mandatory. database context for table validation validation_schema - Mandatory. schema context for table valid...
<reponame>archzi/druid select count(*) from employees where lnnvl(commission_pct >= .2)
<filename>ecc/MaterialsMD.sql SELECT MARA.MANDT AS Client_MANDT, MARA.MATNR AS MaterialNumber_MATNR, MARA.ERSDA AS CreatedOn_ERSDA, MARA.ERNAM AS NameOfPersonWhoCreatedTheObject_ERNAM, MARA.LAEDA AS DateOfLastChange_LAEDA, MARA.AENAM AS NameOfPersonWhoChangedObject_AENAM, MARA.VPSTA AS MaintenanceStatusOf...
<filename>gpdb/contrib/postgis/raster/test/regress/create_rt_utility_test.sql<gh_stars>1-10 ----------------------------------------------------------------------- -- $Id$ -- -- Copyright (c) 2009 <NAME> <<EMAIL>> -- -- This is free software; you can redistribute and/or modify it under -- the terms of the GNU General P...
-- @testpoint:opengauss关键字nocycle(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists nocycle; create group nocycle with password '<PASSWORD>'; drop group nocycle; --关键字带双引号-成功 drop group if exists "nocycle"; create group "nocycle" with password '<PASSWORD>'; drop group "nocycle"; --关键字带单引号-合理报错 drop group if exists 'no...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 26, 2018 at 10:53 AM -- 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"; /*!40101 SET @OLD_CH...
set verify off ACCEPT sysPassword CHAR PROMPT 'Enter new password for SYS: ' HIDE ACCEPT systemPassword CHAR PROMPT 'Enter new password for SYSTEM: ' HIDE ACCEPT pdbAdminPassword CHAR PROMPT 'Enter new password for PDBADMIN: ' HIDE host C:\app\Administrator\product\19.0.0\dbhome_1\bin\orapwd.exe file=C:\app\Administrat...
<filename>sql/schema.sql<gh_stars>0 CREATE TABLE dive ( _id INTEGER PRIMARY KEY AUTOINCREMENT, dive_no INTEGER NOT NULL, dive_date TEXT NOT NULL, location TEXT, time_in TEXT, duration_bottom_time INTEGER, duration_safety_stop INTEGER, tank_pressure_before REAL, tank_pressure_after ...
CREATE TABLE [dbo].[SubAccounts] ( [Year] INT NOT NULL, [Period] CHAR (2) NOT NULL, [Chart] VARCHAR (2) NOT NULL, [Account] CHAR (7) NOT NULL, [SubAccount] CHAR (5) NOT NULL, [SubAccountName] VARCHAR (40) NULL, [ActiveInd] ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 04-Dez-2020 às 01:11 -- Versão do servidor: 10.4.13-MariaDB -- versão do PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
.mode columns .headers on .nullvalue NULL -- Which people with the same condition are taking the same medication? SELECT DISTINCT patient1 AS patient, condition1 AS condition, drugName1 AS medicationName FROM ( SELECT * FROM (SELECT name AS patient1, condition AS condition1, drugName1 FROM Person...
/* leave this l:see LICENSE file g:utility d:130517\s.zaglio:sp__clientip d:130517\s.zaglio:sp__serverip d:130517\s.zaglio:sp__parse_conn v:130517\s.zaglio:return info about this server, changed from txt to tbl v:081003\s.zaglio:old version t:select * from fn__server_info() */ CREATE f...
SELECT c.Title, m.Content FROM Messages AS m RIGHT JOIN Chats AS c ON c.Id = m.ChatId WHERE c.Id = (SELECT TOP 1 Id FROM Chats ORDER BY StartDate DESC)
select someid, somefield from sometable "; select someid, somefield from sometable create table xmlnuke_custom( customid integer identity not null, name varchar(20), value varchar(100), userid integer not null, constraint pk_custom primary key (customid), constraint fk_custom_user foreign key (userid) references xmlnu...
<reponame>nanonano-crypto/toko-online-ci-with-sb-admin-2 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 20 Mei 2020 pada 09.52 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
insert into classificators_groups (code, name) values ( 'brand', 'Brand' ), ( 'line', 'Line' ), ( 'vendor', 'Tiekėjas' ), ( 'manufacturer', 'Gamintojas' ), ( 'type', 'Tipas' ), ( 'purpose', 'Paskirtis' ), ( 'measure', 'Matas' );
<gh_stars>10-100 CREATE TABLE subdivision_KM (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `subdivision_KM` (`id`, `name`, `level`) VALUES ('KM-G', 'Grande Comore', 'island'); INSERT INTO...
DEBUG OFF; SET $metadata_database := 'mysql.qross'; IF $scrape IS UNDEFINED THEN SET $scrape := 'all'; END IF; OPEN $metadata_database; SAVE TO $metadata_database; IF $connection_name IS UNDEFINED THEN VAR $connections := SELECT id, database_type, connection_name, connection_string, jdbc_driver, username, pa...
# --- !Ups create table city ( id varchar(255) not null, name varchar(255), country varchar(255), time_zone varchar(255), primary key (id) ); # --- !Downs drop table city;