sql
stringlengths
6
1.05M
-- 2018-06-07T15:25:49.948 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AllowZoomTo,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,Description,EntityType,FieldLength,Help,IsActive,IsAdvance...
<filename>tables.sql<gh_stars>0 CREATE TABLE golfer ( id int auto_increment not null, first_name varchar(128) not null, last_name varchar(128) not null, middle_name varchar(128), email varchar(256), city varchar(128), state varchar(128), zip ...
<reponame>MaikMichel/utPLSQL /* utPLSQL - Version 3 Copyright 2016 - 2021 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.apache.org/licenses/LICENSE-2.0 ...
\o @path@/expected/results/st_equals.out select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((2 2, 9 2, 9 9, 2 9, 2 2))'::geometry) as geos; select st_equals('POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry, 'POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))'::geometry) as geos; select st_equals('POLYGON ((1 1...
<gh_stars>1-10 CREATE SCHEMA [Setting] AUTHORIZATION [dbo];
<gh_stars>1-10 -- 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. SET ROLE :ROLE_CLUSTER_SUPERUSER; -- cleanup from previous tests DROP DATABASE IF EXISTS data_node_1; DROP DATABASE IF E...
-- This package is not accepted by greenwood because -- it has two "elm-version" fields INSERT INTO packages (timestamp, major, minor, patch, author, name, summary, license, elm_version, dependencies, format ) VALUES (1540223747, 1, 0, 0, 'alex-tan', 'loadable',...
<gh_stars>0 /* Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the following statements for each record in the table: Equilateral: It's a triangle with 3 sides of equal length. Isosceles: It's a triangle with 2 sides of equal length. Scalene: It's a t...
CREATE DEFINER=`root`@`localhost` PROCEDURE `insertHubunganCustomer`( in customer1 int, in customer2 int, in hubungan int ) BEGIN INSERT INTO hubunganCustomer (idcustomer1, idCustomer2, idHubungan,isValid, idHubSebelum) SELECT customer1, customer2, hubungan, 1, ...
<gh_stars>0 Use Ratemanagement3; INSERT INTO `tblGateway` (`GatewayID`, `Title`, `Name`, `Status`, `CreatedBy`, `created_at`, `ModifiedBy`, `updated_at`) VALUES (14, 'VOS5000', 'VOS5000', 1, 'RateManagementSystem', '2017-12-30 13:06:00', NULL, NULL); INSERT INTO `tblGatewayConfig` (`GatewayConfigID`, `GatewayID`, `Ti...
<gh_stars>0 DROP TABLE if exists public.speakers; CREATE TABLE if not exists public.speakers ( speaker jsonb NOT NULL, speaker_id text COLLATE pg_catalog."default", identifier text COLLATE pg_catalog."default", speaker_name text COLLATE pg_catalog."default", last_name text COLLATE pg_catalog."defaul...
DROP INDEX node_path_gin; DROP TABLE node;
<reponame>meszike91/freshproject<filename>laravel6.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Gép: 1172.16.58.3 -- Létrehozás ideje: 2020. Sze 14. 11:28 -- Kiszolgáló verziója: 10.4.11-MariaDB -- PHP verzió: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START ...
-------------------------------------------------------- -- DDL for Materialized View GS_EDIT_LOG -------------------------------------------------------- CREATE MATERIALIZED VIEW "GROUNDFISH"."GS_EDIT_LOG" ("MISSION", "SETNO", "SPEC", "FSHNO", "FSEX", "FLEN", "TABLE_NAME", "FIELD_NAME", "MESSAGE_NUMBER", "CALCULAT...
<reponame>navikt/sykepengesoknad-arkivering-oppgave<gh_stars>0 ALTER TABLE oppgavefordeling ADD COLUMN korrigert_av VARCHAR(100) NULL;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Mar 2021 pada 12.47 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
CREATE VIEW [dbo].[hlsyspersonphonenumbervw] AS SELECT CAST(0 AS INT) AS [personid] , CAST(0 AS INT) AS [persondefid] , CAST(0 AS NVARCHAR(255)) AS [phonenumber] , CAST(0 AS BIT) AS [isdefault] FROM (VALUES(CAST(N'### DB ARTIFACTS WERE NOT REBUILT AFTER DEPLOY! ###' AS BIT))...
<gh_stars>1-10 --- Extraindo dados de FATO_Venda da Fonte/Source --- Fonte: Banco de dados Firebird SELECT V2."DATA" , v.CODIGOMESTRE AS COD_VENDA, V2.OPERADOR AS VENDEDOR, v2.CLIENTE , V."QUANTIDADE" , V.PRODUTO, V.UNITARIO , V.DESCONTO , V.SUBTOTAL , (v.SUBTOTAL - v.DESCONTO ) AS TOTALPAGO, V2.PARCELADO , V...
create materialized view notes_customers_view as select n.id, -- Customer case when count(c) = 0 then null else to_json(( c.id, c.name, c.email, c.is_blacklisted, to_char(c.created_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') ...
<filename>data/en/mysql/subdivisions_TJ.mysql.sql<gh_stars>10-100 CREATE TABLE subdivision_TJ (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_TJ` (`id`, `name`, `level`) VALUES...
<gh_stars>100-1000 -- where.test -- -- execsql { -- CREATE TABLE t99(Dte INT, X INT); -- DELETE FROM t99 WHERE (Dte = 2451337) OR (Dte = 2451339) OR -- (Dte BETWEEN 2451345 AND 2451347) OR (Dte = 2451351) OR -- (Dte BETWEEN 2451355 AND 2451356) OR (Dte = 2451358) OR -- (Dte = 2451362) OR (Dte = 2...
<gh_stars>10-100 -- file:rules.sql ln:409 expect:true insert into rtest_nothn4 values (10, 'too small')
<gh_stars>1-10 -- View: edi_cctop_901_991_v DROP VIEW IF EXISTS edi_cctop_901_991_v; CREATE OR REPLACE VIEW edi_cctop_901_991_v AS SELECT i.c_invoice_id AS edi_cctop_901_991_v_id, i.c_invoice_id, i.c_invoice_id AS edi_cctop_invoic_v_id, it.taxamt + it.taxbaseamt AS totalamt, it.taxamt, it.taxbasea...
<gh_stars>1000+ -- 2018-01-31T14:17:00.493 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDLM,IsHighVol...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 05/24/2018 21:19:31 -- Generated from EDMX file: D:\git\nangular\server\NAngular.DataAccess\AppDataModel.edmx -- ---...
DELIMITER // -- Trigger/Proceduer section 1: Verify book rating and book reviews CREATE OR REPLACE TRIGGER `verifyBookRating` before insert on `audiobook_reviews` for each row begin if (NEW.rating > 6 OR NEW.rating < 0) then SIGNAL sqlstate '45001' set message_text = "The rating has to be between 1 and 5"; ...
/* * Copyright (c) 2017 LabKey Corporation * * 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...
<reponame>MCZbase/DDL CREATE UNIQUE INDEX "SYS_C0014332" ON "PLSQL_PROFILER_RUNS" ("RUNID")
SELECT * FROM nested_test
SELECT e.ssn, e.fname, e.lname FROM Employee e WHERE e.super_ssn IS NOT NULL AND e.ssn IN (SELECT super_ssn FROM Employee);
<reponame>VictorGMBraga/clowdr<filename>hasura/migrations/default/1632093882626_alter_table_video_EventParticipantStream_update_comment/up.sql comment on TABLE "video"."EventParticipantStream" is E'Current streams in Vonage sessions.';
<filename>openGaussBase/testcase/KEYWORDS/Datetime_Interval_Code/Opengauss_Function_Keyword_Datetime_Interval_Code_Case0032.sql -- @testpoint:opengauss关键字datetime_interval_code(非保留),作为用户名 --关键字datetime_interval_code作为用户名不带引号,创建成功 drop user if exists datetime_interval_code; CREATE USER datetime_interval_code PASSWORD ...
BEGIN; ALTER TABLE poster ADD COLUMN access_log boolean, ADD COLUMN author_online_only boolean; UPDATE poster SET access_log = false, author_online_only = false; ALTER TABLE poster ALTER COLUMN access_log SET NOT NULL, ALTER COLUMN author_online_only SET NOT NULL; ALTER T...
<reponame>VazgenMatevosyan/Learning<gh_stars>0 Insert INTO Courses ([title],[description]) Values ('C++','C++') Insert INTO Courses ([title],[description]) Values ('Math','Math') Insert INTO Courses ([title],[description]) Values ('Physic','Physic') Insert Into Students([name],[surname],[SSN]) Values ('Hrant'...
<reponame>jhein420/php_CRUD -- -- Table structure for table `products` -- CREATE TABLE IF NOT EXISTS `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `description` text NOT NULL, `price` double NOT NULL, `created` datetime NOT NULL, `modified` timestamp NOT NULL DEFAULT CUR...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2021 at 09:24 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
--wait type reference: http://msdn.microsoft.com/en-us/library/ms179984.aspx --All waits by total wait time select wait_type, wait_time_ms AS total_wait_time_ms, waiting_tasks_count, max_wait_time_ms, signal_wait_time_ms from sys.dm_os_wait_stats order by wait_time_ms DESC --Lock waits by max wait select wait_type, m...
<filename>sql_database/alter_tablet_atencion_20181123_090300.sql ALTER TABLE `atenciones` ADD `pago_com_tec` INT NULL DEFAULT NULL AFTER `pagado_com`;
DROP TABLE IF EXISTS PROJECT; DROP TABLE IF EXISTS JWT; DROP TABLE IF EXISTS USERS; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE USERS( id uuid DEFAULT uuid_generate_v4 () PRIMARY KEY, user_name VARCHAR(100) UNIQUE, hashed_password VARCHAR(250) NOT NULL, email VARCHAR(150) NOT NULL UNIQUE, is_ad...
CREATE DATABASE jurassite; USE jurassite; CREATE TABLE site( `id` INT AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(255) NOT NULL, `longitude` VARCHAR(255) NOT NULL, `latitude` VARCHAR(255) NOT NULL, `manager` VARCHAR(255) NOT NULL, `phone` INT NOT NULL ); CREATE TABLE notes( `id` INT NOT N...
CONNECT 'jdbc:derby://10.11.1.111:1527/product-db;create=true;user=APP;password=<PASSWORD>'; CREATE TABLE PRODUCT( ID INT NOT NULL, DESCRIPTION VARCHAR(32), PRICE INT, PRIMARY KEY( ID ) ); INSERT INTO PRODUCT(ID, DESCRIPTION, PRICE) VALUES(1, 'Prodotto 1', 10); INSERT INTO PRODUCT(ID, DESCRIPTION, ...
SELECT Username, Age FROM Users ORDER BY Age, Username DESC
-- Create a temporary table that stores the card IDs of cards that match the search parameters. WITH found_cards_ids AS (SELECT cards.card_id FROM cards LEFT JOIN taggings ON cards.card_id = taggings.card_id LEFT JOIN tags ...
<gh_stars>10-100 CREATE TABLE subdivision_MT (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-04', 'Біркіркара', 'local council'); INSERT INTO "subdivision_MT" ("id", "name", "level") VALUES ('MT-09', 'Флоріана', ...
<filename>server/schema.sql<gh_stars>100-1000 CREATE TABLE IF NOT EXISTS flags ( flag TEXT PRIMARY KEY, sploit TEXT, team TEXT, time INTEGER, status TEXT, checksystem_response TEXT ); CREATE INDEX IF NOT EXISTS flags_sploit ON flags(sploit); CREATE INDEX IF NOT EXISTS flags_team ON flags(team);...
-- file:updatable_views.sql ln:647 expect:true SELECT * FROM information_schema.views WHERE table_name = 'rw_view1'
<filename>src/test/resources/sql/select/25160a08.sql -- file:select.sql ln:223 expect:true select unique2 from onek2 where unique2 = 11 and stringu1 < 'B'
<gh_stars>100-1000 SELECT trim_wspace('\n \nquick fox\tbrown dog\t\t ') = 'quick fox\tbrown dog' ;
<reponame>sungshikbaik/BOOKS<filename>CsharpBasic/RoadBook.CsharpBasic.Chapter08/SQL/SQL006.sql USE testdb DELETE FROM TB_USER WHERE ID = 'U001'
-- 31.01.2017 17:03 -- URL zum Konzept INSERT INTO AD_Index_Table (AD_Client_ID,AD_Index_Table_ID,AD_Org_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsUnique,Name,Processing,Updated,UpdatedBy,WhereClause) VALUES (0,540394,0,298,TO_TIMESTAMP('2017-01-31 17:03:25','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment....
<gh_stars>0 --! Previous: sha1:c74494aa5cadafb887de99310ede54fecfec11b5 --! Hash: sha1:2b7a395a8bebd239d0431876f545a4c98f91cda5 --! split: 1-current.sql create or replace function app_public.accept_friend_request(user_id uuid) returns void language plpgsql security definer set search_path to 'pg_catalog', 'publi...
<gh_stars>0 -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.7.19 - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.5.0.5196 -- -------------------------------------------...
USE RLCO GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF OBJECT_ID('dbo.daily_price', 'U') IS NOT NULL DROP TABLE dbo.daily_price CREATE TABLE dbo.daily_price ( price_time date NOT NULL, ticker varchar(10) NOT NULL, price_open money NOT NULL, price_high money NOT NULL, price_low money NOT NULL, ...
<reponame>scala-steward/switchmap<filename>src/main/resources/db/migration/V5__Remove_unused_columns.sql<gh_stars>0 ALTER TABLE switches DROP COLUMN ports_number; ALTER TABLE switches DROP CONSTRAINT fk_switch; ALTER TABLE switches DROP COLUMN up_switch_mac;
-- Create the database, let's call it 'tutorial' CREATE database tutorial; -- Extend the database with TimescaleDB CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;
<filename>src/Test/DbScripts/MySql/T_user_ddl.sql -- 测试环境 -- MySQL 5.7.21 CREATE TABLE `smartsqltestdb`.`t_user` ( `id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '长整型主键,自增', `UserName` VARCHAR(50) NULL, `Status` SMALLINT NULL, PRIMARY KEY (`id`)) COMMENT = 'SmartSql测试用表';
<filename>atc/db/migration/migrations/1579713188_add_rerun_of_builds.down.sql BEGIN; ALTER TABLE builds DROP COLUMN "rerun_of", DROP COLUMN "rerun_number"; ALTER TABLE successful_build_outputs DROP COLUMN "rerun_of"; COMMIT;
<gh_stars>1-10 -- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. \c :TEST_DBNAME --list all extension functions in public schema SELECT DISTINCT proname FROM pg_proc WHERE OID IN ( S...
<filename>applications/credhub-api/src/main/resources/db/migration/h2/V4__add_canary_table.sql<gh_stars>100-1000 CREATE SEQUENCE SYSTEM_SEQUENCE_NAMED_CANARY START WITH 1 BELONGS_TO_TABLE; CREATE CACHED TABLE NAMED_CANARY( ID BIGINT DEFAULT (NEXT VALUE FOR SYSTEM_SEQUENCE_NAMED_CANARY) NOT NULL NULL_TO_DEFAULT SEQ...
SELECT pt_temporal_bbox(ptime) FROM pt_simpleio_table; SELECT pt_centroid('2013'); SELECT pt_centroid('2013-2-2T12:30:40.123'); SELECT pt_centroid('CAL0022013-2-2T12:30:40.123'); SELECT pt_centroid('R21/2014-2-3/P1D/P2D'); SELECT pt_centroid('R86/2014-2-3/P1DT2.123S'); SELECT pt_centroid('2013-2-2T12:30:40.123/2013-2-...
@@rooms.sql @@remove_rooms_by_name.sql @@test_remove_rooms_by_name.pkg set serveroutput on size unlimited format truncated exec ut.run(user||'.test_remove_rooms_by_name'); drop package test_remove_rooms_by_name; drop procedure remove_rooms_by_name; drop table room_contents; drop table rooms;
<filename>repl/q/asnqspcreate.sql DROP PROCEDURE SPSAMPLE (integer, VARCHAR(10) , char(10) for bit data , timestamp, varchar(30), varchar(30), float, char(3) )...
<filename>src/init_sql/v1.6.1_v1.6.2.sql -- 资源组和用户关联表 CREATE TABLE `resource_group_user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `resource_group_id` int(11) NOT NULL COMMENT '资源组', `user_id` int(11) NOT NULL COMMENT '用户', `create_time` datetime(6) NOT NULL COMMENT '创建时间', PRIMARY KEY (`id`), KE...
<reponame>lintzc/GPDB<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_udf/gptoolkit_sql/gptoolkit_setup.sql -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore DROP TABLE IF EXISTS foo; CREATE TABLE foo (a INT, b INT) WITH (appendonly=true); INSERT INTO foo SELECT i as a, i...
SELECT '#1 ' as run, ST_AsText((gval).geom), (gval).val::text FROM (SELECT ST_DumpAsPolygons(ST_Union(rast) ) As gval FROM ( SELECT i As rid, ST_AddBand( ST_MakeEmptyRaster(10, 10, 10*i, 10*i, 2, 2, 0, 0, ST_SRID(ST_Point(0,0) )), '8BUI'::text, 10*i, 0) As rast ...
<filename>yii2boke.sql<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : root Source Server Version : 50553 Source Host : localhost:3306 Source Database : yii2boke Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-03-17 13:06:05 */ S...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 05, 2019 at 01:59 PM -- Server version: 5.7.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
-- dbengineer INSERT INTO user_account (first_name, last_name, email, phone_number, password, credit) VALUES('Moshiur', 'Rahman', '<EMAIL>', '+8801234567890', '$2b$10$cA33yKydRaExhkl4lqExNeKcC1KEPdsMBWapOyBe1D7cqDKInBguS', 500); -- backendengineer INSERT INTO user_account (first_name, last_name, email, phone_number, pa...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2021 at 06:10 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
INSERT INTO movies (movies_name) VALUES ("Intro to JavaScript"), ("Data Science"), ("Linear Algebra"), ("History of the Internet"), ("Machine Learning"), ("Game Design"), ("Cloud Development"); INSERT INTO reviews (movie_id,review) VALUES (1,"GREAT movie")...
<gh_stars>1-10 UPDATE cms_portlets SET type = DeprecatedPlaceholder WHERE type = ResetPasswordPortlet UPDATE portlets SET type = DynamicPortlet where type != DynamicPortlet SELECT * FROM #{Cms::HtmlBlock.table_name} where id = #{@block.id}
<gh_stars>1-10 -- ---------------------------------------------------------------- -- -- This is a script to add the MIMIC-III constraints for MySQL. -- -- ---------------------------------------------------------------- -- The below command defines the schema where the data should reside use mimiciiiv14; -- Restori...
ALTER TABLE posts ADD COLUMN is_active TINYINT DEFAULT 0 NOT NULL; ALTER TABLE posts ADD COLUMN image_url VARCHAR(1000);
<reponame>skriems/rust-actix-graphql-sqlx-postgresql CREATE TABLE skill ( id UUID NOT NULL DEFAULT gen_random_uuid(), title VARCHAR(50) NOT NULL, description VARCHAR(100) NOT NULL, coder_id UUID NOT NULL, created_at TIMESTAMPTZ NOT NULL DEFAULT 'NOW'::timestamptz, PRIMARY KEY (id), CONSTRAIN...
<reponame>heromark/x-pipe<filename>redis/redis-console/src/main/resources/sql/h2/xpipedemodbinitdata.sql insert into DC_TBL (id,dc_name,dc_active,dc_description,dc_last_modified_time) values (1,'A',1,'DC:A','0000000000000000'); insert into DC_TBL (id,dc_name,dc_active,dc_description,dc_last_modified_time) values (2,'B'...
CREATE TABLE `gin`.`relation` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `parent_entity_id` INT NOT NULL, `child_entity_id` INT NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), INDEX `id` (`id` ASC) VISIBLE, INDEX `pare...
<reponame>FrancoLiuDev/funtional-location-cn CREATE TABLE area ( id INTEGER PRIMARY KEY, name NVARCHAR(32), area_id INTEGER, city_id INTEGER, longitude FLOAT, latitude FLOAT ); CREATE TABLE city ( id INTEGER PRIMARY KEY AUTOINCREMENT, city_id INTEGER, name NVARCHAR(16), province_...
<gh_stars>10-100 SHOW DATABASES LIKE ?; SHOW TABLES FROM ??;
CREATE TABLE songs ( id int NOT NULL, title varchar(80) NOT NULL, artist int NOT NULL, PRIMARY KEY (id) )
<gh_stars>0 drop if exists t; create table t( a int, b date on update current_timestamp, c time on update current_timestamp, d timestamp on update current_timestamp, e datetime on update current_timestamp, f timestampltz on update current_timestamp, g timestamptz on update current_timestamp, h datetimeltz on update cu...
CREATE TABLE tom_project ( id INTEGER NOT NULL, name TEXT, PRIMARY KEY (id) ); insert into tom_project (id, name) values (1, 'Projekt'); insert into tom_project (id, name) values (2, 'Projekt 2'); insert into tom_project (id, name) values (3, 'Projekt 3'); CREATE TABLE tom_task ( id INTEGER NOT NULL, project_id ...
-- +migrate Up ALTER TABLE "task" ADD COLUMN "tags" JSONB NOT NULL DEFAULT 'null'; ALTER TABLE "task_template" ADD COLUMN "tags" JSONB NOT NULL DEFAULT 'null'; -- See section 8.14.4 relative to jsonb indexing: -- https://www.postgresql.org/docs/9.4/datatype-json.html CREATE INDEX "task_tags_idx" ON "task" USING gin (...
-- @testpoint: 关键字valid,设置指定账号的有效期 --指定用户有效期的起止时间 drop user if exists valid_test_01; create user valid_test_01 with login password '<PASSWORD>' valid begin '2010-01-01' valid until '2030-12-31'; --指定用户有效期的开始时间 drop user if exists valid_test_02; create user valid_test_02 with login password '<PASSWORD>' valid begin '2...
USE fujiji -- -- To fetch all attributes from the fujiji_user table in the fujiji db: SELECT * FROM fujiji_user; -- -- To fetch attributes from the fujiji_token table in the fujiji db: SELECT * FROM fujiji_token; -- -- To fetch attributes from the fujiji_listing table in the fujiji db: SELECT * FROM fujiji_listing; ...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: May 20, 2019 at 02:24 AM -- Server version: 5.7.25 -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE DATABASE `cred10`; USE `cred10`; DROP TABLE IF EXIST...
CREATE KEYSPACE IF NOT EXISTS logger WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; USER logger; CREATE TABLE IF NOT EXISTS logs ( id int, created_datetime timestamp, action text, log_text text, ip text, user_id uuid, PRIMARY KEY (id) );
<filename>09. Exam Prep/03. Exam - 03 January 2018/19. Move the Tally/Move the Tally.sql CREATE OR ALTER TRIGGER tr_AddMileageOnOrderUpdate ON Orders AFTER UPDATE AS BEGIN UPDATE Vehicles SET Mileage += (SELECT TotalMileage FROM inserted WHERE VehicleId = inserted.VehicleId) WHERE Id IN (SELECT i.VehicleId ...
<filename>SQL/TSQL/Get-memorypressure.sql /* -- Get the Instance Name of the Current Connection -- */ DECLARE @instancename AS VARCHAR(20) = ( SELECT @@SERVICENAME ) /* -- Take a 10 second sample of read/write activities -- */ DECLARE @PageReads BIGINT DECLARE @PageWrites BIGINT DECLARE @LazyWrites BIG...
DROP DATABASE IF EXISTS fplanalysis; CREATE DATABASE IF NOT EXISTS fplanalysis; USE fplanalysis; CREATE TABLE players_standard_stats ( id INTEGER PRIMARY KEY, player TEXT NOT NULL, nation TEXT NOT NULL, pos TEXT, primary_pos TEXT, age TEXT, mp INT, starts INT, min INT, 90s TEXT,...
<reponame>jorgeibarra87/Sitpac<filename>sitpac.sql -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-10-2015 a las 23:01:07 -- Versión del servidor: 5.6.20 -- Versión de PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"...
INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'guestG', 'false', 'true') INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'admins', 'false', 'false') INSERT INTO ren_cms_PermissionGroups (groupName, isDefaultGroup, isGuestGroup) VALUES( 'reg...
<filename>static/sql/who_is_discussing_each_language_the_most.sql SELECT hashtag, HashTagCount, screen_name FROM ( SELECT hashtag, screen_name, HashTagCount, rank() OVER (PARTITION BY hashtag ORDER BY HashTagCount DESC, screen_name) AS pos FROM ( SELECT hashtag, screen_name, COUNT(hashtag) as HashTagCount FROM (...
CREATE DATABASE dynamic_form_algorithm2; CREATE TABLE basicInfo ( id int not null AUTO_INCREMENT PRIMARY KEY, birthName char(255) not null, familyName char(255) not null, email char(255) not null, phone char(255) not null ); CREATE TABLE homeAddress ( id int not null...
-- DOWN DROP PROCEDURE IF EXISTS link_insert; -- UP DELIMITER // CREATE OR REPLACE PROCEDURE link_insert ( IN TYPE_ID INT, IN OWNER_TYPE_ID INT, IN OWNER_ID INT, IN A_TYPE_ID INT, IN A_ID INT, IN B_TYPE_ID INT, IN B_ID INT, OUT LINK_ID INT ) BEGIN INSERT INTO link (...
ALTER TABLE dbo.SystemUser ADD CONSTRAINT PK_C_SystemUser_SystemUserId PRIMARY KEY (SystemUserId) GO
<reponame>meerkat-code/meerkat_country_server CREATE DATABASE odk_db; CREATE ROLE odk_user WITH PASSWORD 'password'; ALTER ROLE odk_user WITH login; GRANT ALL PRIVILEGES ON DATABASE odk_db TO odk_user; ALTER DATABASE odk_db owner TO odk_user; \c odk_db; CREATE SCHEMA odk_db; GRANT ALL PRIVILEGES ON schema odk_db TO...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-05-2021 a las 04:29:10 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Feb 2019 pada 13.37 -- Versi Server: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 29, 2015 at 10:01 PM -- Server version: 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 */;...
-- file_clearupone function deletes one temporary file which has not been added to an entity CREATE OR REPLACE FUNCTION _file_storage.file_clearupone(i_file_id uuid) RETURNS SETOF _file_storage."Files" AS $$ UPDATE _file_storage."Files" SET "deletedAt"=now() WHERE "id" = i_file_id AND "ownerUserId" = _auth.curre...