sql
stringlengths
6
1.05M
-- @testpoint: octet_length函数输入值为时间类型 SELECT octet_length('2020-12-25:23:34:33'); SELECT octet_length('2020/12/23/23/23/21');
<reponame>edwin18g/project21<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.15.8 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 15, 2017 at 12:24 PM -- Server version: 5.6.31 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<gh_stars>0  CREATE PROCEDURE [dbo].[DeletePerson] @PersonID int AS DELETE FROM Person WHERE PersonID = @PersonID;
<filename>tblRoleTypes.sql INSERT INTO `tblRoleTypes`(`strRoleType`) VALUES( "Protagonist"), ("Antagonist"), ("Ingenue"), ("Juvenile"), ("Supporting roles"), ("Principals"), ("Foil"), ("Straight part"), ("Heavy"), ("Typecasting"), ("Casting by type"), ("Ensemble"), ("Cameo"), ("Walk-on"), ("Bit part"), ("Internalizing"...
<gh_stars>0 /* SQLyog Ultimate v12.14 (64 bit) MySQL - 10.4.17-MariaDB : Database - teste_care ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET...
SELECT weather.id as 'Id' FROM weather JOIN weather w ON DATEDIFF(weather.recordDate, w.recordDate) = 1 AND weather.Temperature > w.Temperature;
<reponame>tally-it/hack-and-pay -- +migrate Up CREATE TABLE users ( user_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(191) NOT NULL, email VARCHAR(191) NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, updated_at DATETIME ...
<reponame>adjust/pg-numhstore --used for avg(hstore) first array holds hstore sum and count of keys CREATE FUNCTION hstore_accum(a inthstore[], b inthstore) RETURNS inthstore[] AS $$ BEGIN RETURN Array[hstore_add(a[1],b), hstore_add(a[2],array_count(akeys(b)))]; END; $$ LANGUAGE 'plpgsql' IMMUTABLE; CREATE FUNCTION ...
<reponame>DAppBoard/dappboard-etl<gh_stars>10-100 CREATE VIEW dapp_bounties_network_daily AS SELECT CAST("public"."dapp_bounties_network"."timestamp" AS date) AS "day", count(CASE WHEN type = 'BountyFulfilled' THEN 1 END) AS "bounty_fullfilled", count(CASE WHEN type = 'BountyKilled' THEN 1 END) AS "bounty_killed", ...
<gh_stars>1-10 create proc cau37 @min int output as begin select @min = min(t.Delay) from (select e.EmployeeID, count(IIF(ShippedDate > RequiredDate, 1, null)) as Delay from Employees e, Orders o where e.EmployeeID = o.EmployeeID group by e.EmployeeID) as t end declare @minDate int exec cau37 @min = @min...
-- MySQL Script generated by MySQL Workbench -- Tue Feb 23 08:20:50 2021 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Ven 03 Juillet 2020 à 23:50 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
-- ================================================================================ -- Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved. -- Copyright (c) 2021 Nokia Intellectual Property. All rights reserved. -- ================================================================================ -- L...
CREATE TABLE [dbo].[TransactionHistoryStep1] ( [Date] DATETIME2 (7) NOT NULL, [Description] NVARCHAR (100) NOT NULL, [Amount] FLOAT (53) NOT NULL, [Balance] FLOAT (53) NOT NULL );
<reponame>b00men/migrations<filename>migrations/27_add_project_id_log.down.sql ALTER TABLE log DROP COLUMN project_id;
# Dump of table fuel_blog_comments # ------------------------------------------------------------ CREATE TABLE `fuel_blog_comments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `post_id` int(10) unsigned NOT NULL, `parent_id` int(10) unsigned NOT NULL, `author_id` int(10) unsigned NOT NULL, `author_name`...
<reponame>adhookio/woozle<filename>database/init/03_Create_User.sql<gh_stars>1-10 --------------------------------------------------------------------- -- Initializationscript for an example User with mandator assignment --------------------------------------------------------------------- -- Translation Records fo...
<gh_stars>100-1000 # --- !Ups create table pull_request_commit ( id bigint not null, pull_request_id bigint, commit_id varchar(255), commit_short_id varchar(7), commit_message varchar(2000), created timestamp, author_date timestamp, author_email varchar(255), ...
DROP TABLE auth_assignment; CREATE TABLE `auth_assignment` ( `item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `created_at` int(11) DEFAULT NULL, PRIMARY KEY (`item_name`,`user_id`), KEY `auth_assignment_user_id_idx` (`user_id`), CONSTRAINT `a...
<filename>openGaussBase/testcase/KEYWORDS/Destructor/Opengauss_Function_Keyword_Destructor_Case0026.sql -- @testpoint:opengauss关键字destructor(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists destructor; create schema destructor; drop schema destructor; --关键字带双引号-成功 drop schema if exists "destructor"; create schema "des...
<gh_stars>0 -- -- Database: `dbName` -- -- -------------------------------------------------------- -- -- Table structure for table `Building` -- CREATE TABLE Building ( BuildingID INT PRIMARY KEY AUTO_INCREMENT, BuildingName TEXT, BuildingType SET('ACADEMIC', 'RESIDENTIAL', 'ADMINISTRATIVE', 'EXTRACURRIC...
DROP DATABASE IF EXISTS employee_tracker; CREATE DATABASE employee_tracker; USE employee_tracker; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, dept_name VARCHAR(30) ); CREATE TABLE emp_role ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, role_title VARCHAR(30), role_salary DECIMAL, ...
<filename>src/main/resources/sql/Field.sql CREATE TABLE "tap_softball"."field" ( id serial PRIMARY KEY NOT NULL, name varchar(40) NOT NULL ) ; CREATE UNIQUE INDEX field_pkey ON "tap_softball"."field"(id) ;
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 22-Nov-2017 às 20:17 -- Versão do servidor: 5.6.35 -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
DROP TABLE IF EXISTS books; CREATE TABLE books ( id SERIAL PRIMARY KEY NOT NULL, author VARCHAR(255), title VARCHAR(255), isbn VARCHAR(255), image_url VARCHAR(255), description VARCHAR );
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.37-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 11.0.0.5919 -- -----------------------------------...
INSERT INTO dbo.experiences (type, id_employee, description, degree, entity) VALUES ('work experience', 690, 'modular', 'Web Designer III', 'Universitas Nusa Cendana'); INSERT INTO dbo.experiences (type, id_employee, description, degree, entity) VALUES ('educational experience', 215, 'Implemented', 'Help Desk Operator'...
drop function GamesDB.checkGameInUser; go go create function GamesDB.checkGameInUser (@userName varchar(30), @gameID int) returns int as begin if (not exists( select * from GamesDB.[GameEventList] where UserName=@userName and GameID=@gameID ) ) return 0 return 1 end go
<gh_stars>0 CREATE TABLE sys.sysdepends ( id int NOT NULL, depid int NOT NULL, number smallint, depnumber smallint, status smallint, deptype tinyint NOT NULL, depdbid smallint, depsiteid smallint, selall bit NOT NULL, resultobj bit NOT NULL, readobj bit NOT NULL ); INSERT INT...
<filename>codeCourseLaravelApi.sql -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: codeCourseLaravelApi -- ------------------------------------------------------ -- Server version 5.7.24-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
<reponame>bhtranguet/DisplayMonkey<gh_stars>0 /*! * DisplayMonkey source file * http://displaymonkey.org * * Copyright (c) 2016 Fuel9 LLC and contributors * * Released under the MIT license: * http://opensource.org/licenses/MIT */ use DisplayMonkey -- TODO: change if DisplayMonkey database name is different GO -- cha...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 20, 2017 lúc 05:25 SA -- Phiên bản máy phục vụ: 5.7.14 -- Phiên bản PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
<filename>Allfiles/Demofiles/Mod04/Referential Integrity.sql --Create a database and change database context. USE [master]; GO IF EXISTS (SELECT * FROM sys.sysdatabases WHERE[Name] = 'Demo') BEGIN DROP DATABASE Demo END; GO CREATE DATABASE Demo; GO USE Demo; GO --Create Customers table with a primary key constr...
CREATE TABLE [dbo].[PropertyInfoAccess] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [UniqueId] UNIQUEIDENTIFIER NOT NULL, [UserId] NVARCHAR (128) NOT NULL, [AddressId] BIGINT NOT NULL, [CreatedOn] DATETIMEOFFSET ...
create or replace view `dataline-integration-testing`._airbyte_test_normalization.`nested_stream_with_complex_columns_resulting_into_long_names_partition_column___with__quotes_ab3` OPTIONS() as -- SQL model to build a hash column based on the values of this record select *, to_hex(md5(cast(concat(coale...
CREATE TABLE [Pttcd].[CourseUploadRows] ( [CourseUploadRowId] BIGINT IDENTITY CONSTRAINT [PK_CourseUploadRows] PRIMARY KEY, [CourseUploadId] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [FK_CourseUploads_VenueUpload] FOREIGN KEY REFERENCES [Pttcd].[CourseUploads] ([CourseUploadId]), [RowNumber] INT NOT NULL, [CourseUpload...
ALTER TABLE `address_keys` ADD `used_in_my_tx` TINYINT(1) NOT NULL DEFAULT '0' AFTER `address_set_id`; ALTER TABLE `address_keys` ADD INDEX (`used_in_my_tx`);
-- PAGES UPDATE `sys_pages_blocks` SET `module`='bx_photos' WHERE `object`='bx_photos_view_entry' AND `module`='bx_market' AND `title`='_bx_photos_page_block_title_entry_rating'; DELETE FROM `sys_pages_blocks` WHERE `object`='bx_photos_view_entry' AND `title`='_bx_photos_page_block_title_entry_context'; INSERT INTO `s...
<reponame>microsoft/Nonprofits<filename>Nonprofit Data Warehouse Quickstart/NonprofitDataWarehouseQuickstart/Warehouse/Warehouse/Persisted/Stored Procedures/Persisted.ObtainTransaction.sql -- Copyright (c) Microsoft Corporation. -- Licensed under the MIT License. CREATE PROC [Persisted].[ObtainTransaction] AS -- ===...
-- 2019-09-18T09:54:16.540Z -- 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_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FieldLength,IsActive,IsAdvancedText,IsAllowLog...
<reponame>mrudulpolus/kc<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/procfunpacks/FN_DEL_S2S_SUB_APPLICATION.sql create or replace FUNCTION FN_DEL_S2S_SUB_APPLICATION( AW_PROPOSAL_NUMBER IN OSP$S2S_APPLICATION.PROPOSAL_NUMBER%TYPE) return number IS BEGIN ...
<gh_stars>0 INSERT INTO TBL_EMPLOYEES (first_name, last_name, main_skill, email, title, notes) VALUES ('Rowena', 'Leeming', 'Java', '<EMAIL>', 'A', 'notes abc xy'), ('Alvinia', 'Delong', 'Java', '<EMAIL>', 'B', ''), ('Leodora', 'Burry', 'Java', '<EMAIL>', 'C', ''), ('Karen', 'Oaten', 'Java', '<EMAIL>', 'D', ''), ('Mari...
---------------------------------- -- grant for HHS_HR_RW_ROLE ---------------------------------- GRANT DELETE, INSERT, SELECT, UPDATE ON HHS_HR.LIST_SEARCH_CANDIDATE TO HHS_HR_RW_ROLE; GRANT EXECUTE ON HHS_HR.FN_GET_DISTANCE TO HHS_HR_RW_ROLE; GRANT EXECUTE ON HHS_HR.FN_GET_SEARCH_ID TO HHS_HR_RW_ROLE;
<gh_stars>100-1000 -- 1891 Number of total persons that have at least x measurements --HINT DISTRIBUTE_ON_KEY(stratum_1) SELECT 1891 AS analysis_id, CAST(m.measurement_concept_id AS VARCHAR(255)) AS stratum_1, CAST(m.meas_cnt AS VARCHAR(255)) AS stratum_2, CAST(NULL AS VARCHAR(255)) AS stratum_3, CAST(NULL AS VA...
<filename>pitalium-explorer/db/hsqldb/testdata/pitaliumExplorer_ddl.sql DROP TABLE IF EXISTS similarity; DROP TABLE IF EXISTS methods; DROP TABLE IF EXISTS shifts; DROP TABLE IF EXISTS rectangles; DROP TABLE IF EXISTS images_pairs; DROP TABLE IF EXISTS images; DROP TABLE IF EXISTS browsers; DROP TABLE IF EXISTS urls; ...
version https://git-lfs.github.com/spec/v1 oid sha256:61ef9d9558ae214ab1627b320170bb81099e1fcc803c4f3d481b4322732c743f size 353
drop index ACT_IDX_EXEC_BUSKEY; drop index ACT_IDX_VARIABLE_TASK_ID; alter table ACT_GE_BYTEARRAY drop foreign key ACT_FK_BYTEARR_DEPL; alter table ACT_RU_EXECUTION drop foreign key ACT_FK_EXE_PROCINST; alter table ACT_RU_EXECUTION drop foreign key ACT_FK_EXE_PARENT; alter table ACT_RU_EXECUTION ...
CREATE VIEW view30 AS SELECT 1 AS c1 FROM table333 UNION SELECT 1 AS c1 FROM table48 UNION SELECT 1 AS c1 FROM table152; GO
<filename>openGaussBase/testcase/KEYWORDS/inner/Opengauss_Function_Keyword_Inner_Case0028.sql -- @testpoint: opengauss关键字inner(保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists inner_test; create table inner_test(id int,name varchar(10)); --关键字不带引号-失败 drop synonym if exists inner; create synonym inner for inner_tes...
CREATE PROCEDURE [dbo].[AddCachedSPByPhysicalReads] ( @pRowCnt INT = 10, @pHTML NVARCHAR(MAX) OUTPUT ) AS BEGIN SET NOCOUNT ON; DECLARE @tOutput TABLE ( [SP Name] NVARCHAR(128), [Total Physical Reads] BIGINT, [Avg Physical Reads] BIGINT, [Execution Count] BIGINT, [Total Logical Reads] BIG...
<filename>docs/new 1.sql insert into hospital (id, name, address, specialty, emergency_phone, general_phone, registration_phone, admin_phone, department_id) values (1, 'St. Andrew Hospital', '497 Sachtjen Street', 'psychiatry', '{(384) 1100919}', '{(157) 6144145}', '{(621) 8749764}', '{(845) 5511486}', 1); insert into ...
SET GLOBAL event_scheduler = ON; CREATE EVENT etapa_producao_1 ON SCHEDULE EVERY 1 MINUTE STARTS CURRENT_TIMESTAMP ENDS CURRENT_TIMESTAMP + INTERVAL '01:00:00' HOUR_SECOND DO UPDATE etapa_producao SET tempo_restante=( SELECT DATE_SUB(tempo_restante, INTERVAL 1 minute) FROM etapa_producao WHERE id = 2 ) WHERE id = ...
<reponame>hamidabdulloh/sisfotmi -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 22 Jun 2021 pada 15.40 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "...
USE project2_db; INSERT INTO resources (link, title, description, category) VALUES ("https://developers.google.com/web/tools/chrome-devtools/?hl=en", "Chrome Developer Tools", " ", "General Tools"), ("https://medium.freecodecamp.org/", "Free Code Camp", " ", "Teaching Resource"), ("https://validator.w3.org/#validate_...
<reponame>ailyfeng/office # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.34) # Database: office # Generation Time: 2016-11-23 14:18:45 +0000 # **********************...
<reponame>nocturaf/heavlypedia -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 31, 2020 at 09:21 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Jul 18, 2020 at 11:17 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
with orgunit_values as ( select organisationunit.uid as organisationunit_uid, dataelement.uid as dataelement_uid, categoryoptioncombo.uid as categoryoptioncombo_uid, datavalue.value as datavalue_value, period.periodid as period_id from datavalue join organisationunit ON organisationunit.organ...
<reponame>sedc-codecademy/skwd8-08-aspnetwebapi CREATE DATABASE [NotesScaffoldedDb] GO USE [NotesScaffoldedDb] GO CREATE TABLE [dbo].[Users]( [Id] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY, [Username] [nvarchar](30) NOT NULL, [FirstName] [nvarchar](50) NULL, [LastName] [nvarchar](50) NULL ) GO CREATE TABLE [dbo]....
-- NOTE: To manually execute this script you must -- replace {databaseOwner} and {objectQualifier} with real values. -- Defaults is "dbo." for database owner and "" for object qualifier -- Alter tables ALTER TABLE {databaseOwner}[{objectQualifier}Documents_Documents] ALTER COLUMN [Title] nvarchar(255) NULL GO A...
<gh_stars>1-10 DROP TABLE IF EXISTS dw.f_amk_talous_4_tilikauden_tutkimusmenot_ja_rahoitus
<reponame>aliostad/deep-learning-lang-detection<filename>data/train/sql/1cae171b1cad4ac2738f9013d391ddff5e186f3dtriggers.sql -- Trigger 1: duplicates insertions to t1--which may be changed, for example if there are partial fills--into t2, which will not be changed CREATE TRIGGER PersistOrdersToT2 BEFORE INSERT ON t1 B...
-- 2019-11-04T07:01:28.041Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-11-04 09:01:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='fr_CH' AND AD_Element_ID=265 ; -- 2019-11-04T07:01:28.086Z -- I forgot to set the...
UPDATE creature_template SET type=1, scriptname='npc_lore_keeper_of_norgannon_ulduar' WHERE entry=33686; DELETE From `npc_text` WHERE `id` IN (14375, 14496); INSERT INTO `npc_text` VALUES ('14375', '', 'Greetings', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0', '0', '0', '0', '0', '0', '0', '', '', '0', '0'...
ALTER TABLE [AATF].[AATF] ADD LocalAreaId UNIQUEIDENTIFIER NULL; ALTER TABLE [AATF].[AATF] ADD PanAreaId UNIQUEIDENTIFIER NULL; ALTER TABLE [AATF].[AATF] ADD CONSTRAINT FK_AATF_LocalAreaId FOREIGN KEY (LocalAreaId) REFERENCES [Lookup].LocalArea(Id); ALTER TABLE [AATF].[AATF] ADD CONSTRAINT FK_AATF_PanAreaId FOREIGN K...
---test {{ config({ "materialized": "table", "post-hook": [ after_commit("create index index_{{this.name}}_on_id on {{this.schema}}.{{this.name}} (drug_id)"), after_commit("create index index_{{this.name}}_on_drug on {{this.schema}}.{{this.name}} (master_drug)"), after_commit("create...
<filename>sql_table_scripts/plsql/products.sql CREATE OR REPLACE PACKAGE products_pack IS PROCEDURE insert_item( p_product_name IN pbd_products.product_name%TYPE, p_price IN pbd_products.price%TYPE, p_acquired_date IN pbd_products.date_acquired%TYPE, p_available_quantity IN pbd_prod...
<filename>prisma/migrations/20220207035418_create_todo/migration.sql -- CreateTable CREATE TABLE "todos" ( "id" TEXT NOT NULL, "title" TEXT NOT NULL DEFAULT E'', "description" TEXT NOT NULL DEFAULT E'', "isDone" BOOLEAN NOT NULL DEFAULT false, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMEST...
# --- !Ups CREATE TABLE atlassian_host ( client_key VARCHAR PRIMARY KEY NOT NULL, key VARCHAR NOT NULL, public_key VARCHAR NOT NULL, oauth_client_id VARCHAR, shared_secret VARCH...
<filename>sql_scripts/Status/DiskSpace.sql DECLARE @TargetFolder NVARCHAR(255) SET @TargetFolder = '$(targetfolder)' SELECT DISTINCT SUBSTRING(volume_mount_point, 1, 1) AS volume_mount_point ,total_bytes/1024/1024 AS Total_MB ,available_bytes/1024/1024 AS Available_MB ,ROUND(CONVERT(FLOAT, available_by...
ALTER TABLE system_intake ADD COLUMN archived_at timestamp with time zone; ALTER TABLE business_case ADD COLUMN archived_at timestamp with time zone;
nextval('foo') operates on sequence foo nextval('FOO') same as above nextval('"Foo"') operates on sequence Foo nextval('myschema.foo') operates on myschema.foo nextval('"myschema".foo') same as above nextval('foo') searches search path for foo
-- @testpoint: 不支持对回收站对象执行DDL操作truncate,合理报错 --step1: 查询enable_recyclebin默认值; expect:显示默认值off show enable_recyclebin; --step2: 修改enable_recyclebin为on; expect:修改成功 alter system set enable_recyclebin to on; select pg_sleep(2); show enable_recyclebin; --step3: 如果表存在清除表且清除回收站; expect:表清除成功且回收站清除成功 drop table if exists t...
DROP DATABASE IF EXISTS employeeTracker_db; CREATE DATABASE employeeTracker_db; USE employeeTracker_db; CREATE TABLE department( id INT AUTO_INCREMENT PRIMARY KEY, department_name VARCHAR (30) NOT NULL ); CREATE TABLE employee_role ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, title_role VARCHAR(30), salary DE...
<reponame>lq150415/turismo -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-06-2017 a las 11:50:24 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SE...
DROP TABLE IF EXISTS sources; CREATE TABLE sources ( uid <%= auto_increment %> NOT NULL, name varchar(255) NOT NULL, same_as varchar(255), parent INTEGER REFERENCES sources(uid) ON UPDATE CASCADE ON DELETE SET NULL, readonly INTEGER DEFAULT 0, creator INTEGER NOT NU...
-- COLAB-2087 INSERT INTO admin_ContestTypeAttribute (name, additionalId, locale, numericValue, stringValue, realValue) VALUES ('CONTEST_NAME', 1, '', null, 'Event category', null); INSERT INTO admin_ContestTypeAttribute (name, additionalId, locale, numericValue, stringValue, realValue) VALUES ('CONTEST_NAME_PLURAL', 1...
<reponame>dmaiolli/sakspildap -- Gerado por Oracle SQL Developer Data Modeler 19.4.0.350.1424 -- em: 2020-09-02 18:38:39 BRT -- site: Oracle Database 11g -- tipo: Oracle Database 11g CREATE TABLE t_sak_bairro ( cd_bairro NUMBER(4) NOT NULL, cd_cidade NUMBER(3) NOT NULL, nm_...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-12-2021 a las 15:26:43 -- Versión del servidor: 10.4.20-MariaDB -- Versión de PHP: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE homes ( home_id SERIAL PRIMARY KEY, beds integer NOT NULL, --0-16 CHECK (beds >= 0), CHECK (beds <= 16), title varchar(60) NOT NULL, user_id integer NOT NULL, category varchar(30) NOT NULL, --'Entire Place', 'Private Room', 'Shared Room' stars DECIMAL DEFAULT NULL, --1 significant d...
<gh_stars>1-10 USE currentdb; -- users insert into users (username, password, createdAt, updatedAt) values ('mike', 'mike', now(), now()), ('darron', 'darron', now(), now()), ('mikey', 'mikey', now(), now()), ('peter', 'peter', now(), now()); -- Landlord insert into landlords (name, email, createdAt, updatedAt, user...
/****** Object: StoredProcedure [dbo].[usp1_Role_create] Script Date: 6/12/2018 12:39:56 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: omrani -- Create date: 2012/08/29 -- Description: -- ============================================= CREAT...
SELECT nknachfuehrung.t_id AS tid, nknachfuehrung.nbident, nknachfuehrung.identifikator, nknachfuehrung.beschreibung, nknachfuehrung.perimeter, to_char(nknachfuehrung.gueltigereintrag,'YYYYMMDD') AS gueltigereintrag, to_char(nknachfuehrung.datum1,'YYYYMMDD') AS datum1, cast(nknachfuehrun...
<filename>preparing/sql/create_table_tag_campaigns.sql -- -- table -- create table {SCHEMA}tag_campaigns ( company_identifier character varying(381) NOT NULL, app character varying(381) NOT NULL, channel character varying(381) NOT NULL, campaign_id character varying(765) NOT NULL, campaign_tag chara...
<reponame>eklavya11/linkcord CREATE TABLE IF NOT EXISTS linked_channels ( id bigint PRIMARY KEY, linked_to bigint NOT NULL, mirror_webhook bigint NOT NULL );
<filename>lf_keluhan.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2021 at 11:29 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
CREATE OR REPLACE PROCEDURE SOMA ( P_1 IN NUMBER, P_2 IN NUMBER) IS BEGIN DBMS_OUTPUT.PUT_LINE(P_1 + P_2); END SOMA; / execute SOMA( 2,5); DECLARE BEGIN soma(2, 5); END;
-- file:limit.sql ln:47 expect:true fetch backward 1 in c1
<filename>src/main/resources/db/migration/V1_0__atomic-def.sql -- Copyright (c) 2013-2018 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain ...
\connect lightshield; CREATE SCHEMA PLATFORM; GRANT ALL PRIVILEGES ON SCHEMA PLATFORM TO postgres;
ALTER TABLE {$NAMESPACE}_slowvote.slowvote_poll CHANGE isClosed status VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT};
<reponame>Cityopt/cityopt INSERT INTO Algorithm (algorithmId, description) VALUES (1, 'grid search'), (2, 'genetic algorithm'); INSERT INTO AlgoParam (aParamsID, algorithmID, name, defaultValue) VALUES (1, 1, 'max runtime [minutes]', '1000000'), (2, 1, 'max parallel evaluations', '100'), (3, 1, 'max scenario...
<filename>sql/arch/2016-03-06.sql CREATE TABLE wiki ( id serial NOT NULL, url character varying(500), city character varying(500), CONSTRAINT wiki_pkey PRIMARY KEY (id) ) WITH ( OIDS=FALSE ); ALTER TABLE wiki OWNER TO yarmarka_biz;
<reponame>yashpatil/GTAS INSERT INTO app_configuration (description, opt, val) VALUES ('Toggle Interpol Red Notices Watch List Hit Notification ARN', 'INTERPOL_SNS_NOTIFICATION_ARN', ''); INSERT INTO app_configuration (description, opt, val) VALUES ('Toggle Interpol Red Notices Watch List Hit Notification', 'ENABLE_INT...
<filename>sql/_13_issues/_12_2h/cases/bug_bts_9147.sql drop table if exists test; create table test (id int primary key, name string); insert into test values(1,'name1'),(2,'name2'),(3,'name3'),(4,'name4'); select * from test; --Should check the table alias already exists update test as t1,(values(1,'name1_n'),(2,'nam...
<reponame>Starlink/hdf5<filename>tools/testfiles/vds/vds-gap1.ddl HDF5 "vds-eiger.h5" { DATASET "/VDS-Eiger" { DATATYPE H5T_STD_I32LE DATASPACE SIMPLE { ( 5, 10, 10 ) / ( H5S_UNLIMITED, 10, 10 ) } DATA { (0,0,0): 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (0,1,0): 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (0,2,0): 0, 0, 0, ...
<reponame>eddyyucca/aplikasi-vaksin-covid-19-desa<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Feb 2022 pada 14.46 -- Versi server: 10.4.20-MariaDB -- Versi PHP: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_...
select top 100 * from household_demographics where hd_demo_sk=-100 order by hd_demo_sk desc
<filename>sql-imports/2018/init-scores.sql INSERT INTO `scores` (`id`, `position`, `playerName`, `compNum`, `compName`, `css`, `score`, `gotyScore`, `competitionCode`) VALUES (1104, 1, '<NAME>', 2, '<NAME>', 0, 70, 0, 'medal'), (1105, 2, '<NAME>', 2, '<NAME>', 0, 70, 0, 'medal'), (1106, 3, '<NAME>', 2, '<NAME>', 0, 72,...
<gh_stars>0 create sequence users_to_score_id_seq; create table users_to_score ( ID int primary key default nextval('users_to_score_id_seq'), OUR_PK bigint not null, SCANNED_PK bigint not null, SOURCE varchar(128), INSERT_DATE timestamp with time zone not null default current_timestamp );