sql
stringlengths
6
1.05M
-- upgrade-5.0.1.0.1-5.0.1.0.2.sql SELECT acs_log__debug('/packages/intranet-core/sql/postgresql/upgrade/upgrade-5.0.1.0.1-5.0.1.0.2.sql',''); ------------------------------------------------------------- -- Function to check for a valid date ------------------------------------------------------------- create or r...
-- /packages/intranet-agile/sql/postgresql/intranet-agile-create.sql -- -- Copyright (c) 2003 - 2009 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- -- @author <EMAIL> -- -------------------------------------------------------- -- Agile Task - Agile Releat...
<gh_stars>100-1000 -- View information about the Distributor, distribution database, -- working directory, and SQL Server Agent user account. USE master EXEC sp_helpdistributor; GO
drop view if exists dbo.Summary
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 20, 2016 at 03:11 -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
CREATE TABLE IF NOT EXISTS product_type( id uuid DEFAULT uuid_generate_v4(), description text UNIQUE NOT NULL CONSTRAINT party_type_description_not_empty CHECK (description <> ''), CONSTRAINT product_type_pk PRIMARY key(id)); create table if not exists unit_of_measure( id uuid DEFAULT uuid_generate_v4(), des...
<reponame>DistributedMonitoringSystem/open-falcon-backend ALTER TABLE nqm_agent_group_tag DROP FOREIGN KEY fk_nqm_agent_group_tag__owl_group_tag; ALTER TABLE nqm_target_group_tag DROP FOREIGN KEY fk_nqm_target_group_tag__owl_group_tag; ALTER TABLE nqm_pt_target_filter_group_tag DROP FOREIGN KEY fk_nqm_pt_target_filte...
<reponame>Pocket/curated-corpus-api -- CreateTable CREATE TABLE `ApprovedItemAuthor` ( `externalId` VARCHAR(255) NOT NULL, `name` VARCHAR(255) NOT NULL, `approvedItemId` INTEGER NOT NULL, `sortOrder` INTEGER NOT NULL DEFAULT 0, INDEX `ApprovedItemAuthor_approvedItemId_idx`(`approvedItemId`), PR...
CREATE GLOBAL TEMPORARY TABLE lotstempios ON COMMIT DELETE ROWS AS SELECT * FROM dual WHERE 1=0; EXEC LOOP INSERT /*+ APPEND */ INTO lotstempios SELECT * FROM dual; COMMIT WRITE NOWAIT; END LOOP;
<reponame>igormskru/code create table ACT_RU_INCIDENT ( ID_ nvarchar(64) not null, INCIDENT_TIMESTAMP_ datetime2 not null, INCIDENT_MSG_ nvarchar(4000), INCIDENT_TYPE_ nvarchar(255) not null, EXECUTION_ID_ nvarchar(64), ACTIVITY_ID_ nvarchar(255), PROC_INST_ID_ nvarchar(64), PROC_DEF_ID_ nvarchar(64), ...
UPDATE sp_app SET app_name = 'My Account', is_saas_app = 1, description = 'This is the my account application.' WHERE ID = (SELECT APP_ID FROM SP_INBOUND_AUTH WHERE INBOUND_AUTH_KEY = 'USER_PORTAL' AND TENANT_ID = -1234); DO $$ DECLARE con_name varchar(200); BEGIN select constraint_name into con_name from inform...
<gh_stars>1-10 BEGIN; UPDATE roa_alert_configuration SET route_validity_states = regexp_replace(route_validity_states, 'INVALID', 'INVALID_ASN,INVALID_LENGTH') WHERE route_validity_states LIKE '%INVALID%'; COMMIT;
<reponame>opengauss-mirror/Yat -- @testpoint: opengauss关键字Key(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists Key; create function Key(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "Key"; create function "Key"(i integer) returns intege...
select f_name, salary from employee where salary> (select salary from employee where f_name = 'Chitra');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Agu 2021 pada 15.00 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.3.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
-- Postgresql migration script : 1.4.0 to 1.5.0 -- this script must be run with postgres user. BEGIN; SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET client_min_messages = warning; SET default_with_oids = false; DROP EXTENSION IF EXISTS plpgsql; DROP LANGUAGE IF EXISTS plpgsql; DROP FUNCTION IF EXISTS p...
drop table if exists `vehicles_overloaded_axle_overall_reports`; create table `vehicles_overloaded_axle_overall_reports` ( `id` int auto_increment primary key, `report_json` text null ); drop table if exists `vehicles_overloaded_gvm_overall_reports`; create table `vehicles_overloaded_gvm_overall_reports` ( `id...
-- museum INSERT INTO museum (title, admission, opens, closes, opening_hours, transport, located, region, xaxis, yaxis) VALUES ('Kofukuji National Treasure Museum', '600', 'Daily', 'nil', '9am - 5pm', 'Kintetsu Nara Station', '48 Noboriōji-chō, Nara 630-8213', 'Kansai', '814', '676'); INSERT INTO museum (title, a...
<filename>QUERIES/Apply_an_aggregate.sql select count(*) from da_pronto.trip select count(*), sum(tripduration) from da_pronto.trip select to_station_name, count(*), sum(tripduration) from da_pronto.trip group by to_station_name order by sum(tripduration) asc
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 18, 2017 at 01:39 PM -- Server version: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
CREATE TABLE IF NOT EXISTS files( id SERIAL PRIMARY KEY, name TEXT NOT NULL, logical_path TEXT NOT NULL, physical_path TEXT NOT NULL, tags JSONB default '[]', description JSONB default '{}', properties JSONB default '{}', owner_id INTEGER REFERENCES users(id) ON DELETE SET NULL, uploaded_at timestamptz not...
<filename>perpusmadinatul.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2020 at 01:12 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
-- Assumes the database already exists. The spring app uses the database -- name `appservspringbank`. Create such a database before running this script. Run -- the script with the command -- mysql appservspringbank < src/main/scripts/db/create-appservspringbank-mysql.sql -p -- -- Drop all tables; -- DROP TABLE IF EXI...
-- Add an identifier attribute to store ALTER TABLE public.audit_resource ADD COLUMN resource_persistent_id VARCHAR(200); -- Add a non-unique index to the identifier attribute -- The LOWER function should not be necessary since the ids are created programmatically -- it should protect against us correcting case change...
<reponame>sogis/gretljobs SELECT wg.t_id, wg.typ, wg.bautyp, wg.fahrbahnbreite, (ST_Dump(wg.geometrie)).geom AS geometrie, wg.astatus, wg.status_datum, wg.bauabnahme_datum, wg.werksid, wg.unterhaltsid, prj.geschaeftsnummer, prj.kantonsnummer FROM alw_strukturverbe...
<reponame>CristiSima/Albion2D INSERT INTO _TAG_Items (category_ID,subcategory_ID,ID,name,tier,enchant,item_value,weight) VALUES (18,6,1,'Iron Ore',4,0,0,0.5); INSERT INTO _TAG_Items (category_ID,subcategory_ID,ID,name,tier,enchant,item_value,weight) VALUES (18,6,2,'Uncommon Iron Ore',4,1,0,0.5); INSERT INTO _TAG_Reci...
<reponame>alexinea/MySqlConnector CREATE USER 'caching-sha2-user'@'%' IDENTIFIED WITH caching_sha2_password BY '<PASSWORD>'; GRANT ALL PRIVILEGES ON *.* TO 'caching-sha2-user'@'%';
CREATE TABLE b_timeman_entries ( ID number(18) NOT NULL, TIMESTAMP_X date DEFAULT SYSDATE NOT NULL, USER_ID number(18) NOT NULL, MODIFIED_BY number(18) NOT NULL, ACTIVE CHAR(1 CHAR) DEFAULT 'Y' NOT NULL, PAUSED CHAR(1 CHAR) DEFAULT 'N' NULL, DATE_START DATE, DATE_FINISH DATE, TIME_START number(6), TIME_FINISH...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-04-2018 a las 19:19:15 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.4 -- Puerto 8080 -- Puerto MySql 3307 -- Usuario: root -- Contraseña: <PASSWORD> -- ---------...
<reponame>aravi5/drill-test-framework select voter_id, name from `hive1_parquet_part` where date_part('year', create_timestamp1)=2018;
CREATE TABLE `storage_callbacks` ( `id` bigint(22) NOT NULL, `collection` varchar(45) NOT NULL, PRIMARY KEY (`id`), FOREIGN KEY (`id`) REFERENCES `callbacks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE );
DROP INDEX IF EXISTS job_name_submitted_for_execution_uniqueness;
<reponame>ShubhamThakre/datahub CREATE DATABASE DemoData; GO USE DemoData; GO CREATE TABLE Products (ID int, ProductName nvarchar(max)); GO CREATE SCHEMA Foo; GO CREATE TABLE Foo.Items (ID int, ItemName nvarchar(max)); GO CREATE TABLE Foo.Persons ( ID int NOT NULL PRIMARY KEY, LastName varchar(255) NOT NULL, ...
INSERT INTO real_table (value) VALUES (3.14); INSERT INTO real_table (value) VALUES (3.14); UPDATE real_table SET VALUE = 6.14 WHERE ID = 2; DELETE FROM real_table WHERE ID = 2; INSERT INTO double_precision_table (value) VALUES (3.14); INSERT INTO double_precision_table (value) VALUES (3.14); UPDATE double_precision_t...
CREATE INDEX ix_nqm_target__tg_status_tg_available ON nqm_target(tg_status DESC, tg_available DESC); /** * Filters the enabled targets with ping tasks(enabled). * * 1) This view includes the empty ping tasks(without any filter). * 2) This view doesn't include the targets which are probed by all(nqm_target.tg_probe...
--HINT DISTRIBUTE_ON_KEY(subject_id) CREATE TABLE cohort ( cohort_definition_id BIGINT NOT NULL, subject_id BIGINT NOT NULL, cohort_start_date DATE NOT NULL, cohort_end_date DATE NOT NULL ); ALTER TABLE cohort ADD CONSTRAINT xpk_cohort PRIMARY KEY ( cohort_definition_id, subject_id, c...
-- ====================================================================== -- dim_trainid -- -- normalises a train TRUST id -- ====================================================================== CREATE SCHEMA report; SET search_path = report; DROP TABLE dim_trainid; CREATE TABLE dim_trainid ( id SERIAL, u...
BEGIN; ALTER TABLE visibility_labels ALTER COLUMN val SET NOT NULL; ALTER TABLE visibility_labels ADD CONSTRAINT visibility_labels_val_check CHECK (val <> ''); ALTER TABLE broker_labels ALTER COLUMN val SET NOT NULL; ALTER TABLE broker_labels ADD CONSTRAINT broker_labels_val_check CHECK (val <> ''); ALTER TABLE platfo...
<gh_stars>1-10 -- Name: GetScanInstanceById -- Schema: posda_phi_simple -- Columns: ['phi_scan_instance_id', 'start_time', 'end_time', 'description', 'num_series', 'num_series_scanned', 'file_query'] -- Args: ['phi_scan_instance_id'] -- Tags: ['adding_ctp', 'for_scripting', 'scan_status'] -- Description: Get a query_sc...
<gh_stars>1-10 CREATE SCHEMA bob; CREATE TABLE bob.country ( id int, name varchar(20) ); insert into bob.country values (1, 'India'); insert into bob.country values (2, 'Russia'); insert into bob.country values (3, 'USA'); CREATE SCHEMA alice; CREATE TABLE alice.country ( id int, name varchar(20) ...
<filename>integration_tests/models/schema_tests/series_10.sql {{ dbt_utils.generate_series(upper_bound=10) }}
-- @testpoint: rawtohex函数入参为其它函数 SELECT rawtohex(REPLACE('10','0',''));
/* * This file is used to test the function of ExecVecMergeJoin(): part 3: semi join */ set enable_hashjoin=off; set enable_nestloop=off; ---- --- case 3: MergeJoin Semi Join ---- explain (verbose on, costs off) select * from vector_mergejoin_table_01 A where A.col_int in(select B.col_int from vector_mergejoin_table_...
<reponame>gregturmel/LegacyDataStoreRiskAssessment<gh_stars>0 WITH CTE AS (SELECT [TodaysDate],[databaseName],[SchemaName],[TableName],[RecordCount],[Ddifference],ROW_NUMBER() OVER (ORDER BY DatabaseName,SchemaName,TableName,TodaysDate) AS ROW_Num ,(RecordCount - prev_RecordCount) RecordCountDifference FROM (SELECT t....
-- DropForeignKey ALTER TABLE "RefreshToken" DROP CONSTRAINT "RefreshToken_userId_fkey"; -- AddForeignKey ALTER TABLE "RefreshToken" ADD CONSTRAINT "RefreshToken_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; -- RenameIndex ALTER INDEX "User.email_unique" RENAME TO "...
<filename>naia/schema/create_naia.sql begin; create schema if not exists naia; commit;
-- -- Metadata: information about this project -- DROP TABLE IF EXISTS help_content; CREATE TABLE help_content ( topic VARCHAR(32) CHARSET ascii NOT NULL, help_message TEXT CHARSET utf8 NOT NULL, PRIMARY KEY (topic) ) ENGINE=InnoDB ;
alter table #prefix#user add column phone char(32) not null default ''; alter table #prefix#user add column address char(48) not null default ''; alter table #prefix#user add column address2 char(48) not null default ''; alter table #prefix#user add column city char(48) not null default ''; alter table #prefix#user add...
<gh_stars>1-10 -- 2021-10-07T07:35:47.889Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,ConfigurationLevel,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,541418,'C',TO_TIMESTAMP('2021-10-07 10:35:47','...
/* Navicat MySQL Data Transfer Source Server : talk Source Server Version : 80012 Source Host : localhost:3306 Source Database : talk Target Server Type : MYSQL Target Server Version : 80012 File Encoding : 65001 Date: 2019-11-06 11:07:30 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
drop table owa_tester$$ create table owa_tester ( file_name varchar2(250 BYTE) , content_type varchar2(250 BYTE) , content_size number , binary_file blob )$$ create or replace package owa_example as procedure execute( pi_request_headers in multivalued_parameter_type , pi_request_pa...
<filename>atc/db/migration/migrations/1551110547_add_indexes_for_versions_db.down.sql DROP INDEX build_resource_config_version_inputs_resource_id_idx; DROP INDEX build_resource_config_version_inputs_build_id_idx; DROP INDEX build_resource_config_version_outputs_resource_id_idx; DROP INDEX build_resource_config_versio...
<filename>db/patch38.sql -- remove the table for speaker profile info DROP TABLE speaker_profile; DROP TABLE speaker_tokens; DROP TABLE speaker_token_fields; INSERT INTO patch_history SET patch_number = 38;
-- MySQL dump 10.13 Distrib 5.6.37-82.2, for Linux (x86_64) -- -- Host: localhost Database: informal_ft -- ------------------------------------------------------ -- Server version 5.6.37-82.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
<reponame>huhuanming/test_online_system_demo CREATE TABLE `QUESTION_BANK` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `name` VARCHAR(100), PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8;
CREATE TABLE [dbo].[sqlwatch_logger_xes_deadlocks] ( [snapshot_time] datetime2(0) not null, [snapshot_type_id] tinyint not null, [sql_instance] varchar(32) not null, [activity_id] varchar(60), [event_time] datetime2(0) not null, [xml_report] xml not null, constraint pl_sqlwatch_logger_xes_deadlocks primary ...
<gh_stars>0 use BCD_VISUALIZA; DROP TABLE IF EXISTS horario; DROP TABLE IF EXISTS semestre; DROP TABLE IF EXISTS ministradoresdasdisciplinas; DROP TABLE IF EXISTS professor; DROP TABLE IF EXISTS pedidodematricula; DROP TABLE IF EXISTS disciplinascursadas; DROP TABLE IF EXISTS matricula; DROP TABLE IF EXISTS curricu...
CREATE TABLE ad ( id SERIAL PRIMARY KEY, content VARCHAR(100), link VARCHAR(1000), keywords VARCHAR(100), budget VARCHAR(100), starttime TIMESTAMP, endtime TIMESTAMP, token VARCHAR(100) );
SELECT CASE WHEN COUNT(1) > 0 THEN 'FAILED' ELSE 'SUCCESSFUL' END FROM zabbix_housekeeper WHERE status <> 'S';
<reponame>poweretl/powerappslogmonitor<gh_stars>0 create table powerapps_selogreport( id BIGINT PRIMARY KEY not null, line_number BIGINT, log_name VARCHAR(255), date TIMESTAMP, time TIME, where_occurred VARCHAR(255), user_pc_name VARCHAR(255), notification_sent VARCHAR(255) ); create table powerapps_dcl...
<filename>Sources/PLMPack_db/PLMPack_db_new.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[__MigrationHistory]( [MigrationId] [nvarchar](150) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [ContextKey] [nvarchar](300) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Model] [varbinary](max) N...
## 2. A Simple Question ## SELECT MIN(Unemployment_rate) FROM recent_grads; ## 3. Aggregate Functions ## SELECT SUM(Total) FROM recent_grads; ## 4. Order of Execution ## SELECT COUNT(Major) FROM recent_grads WHERE ShareWomen < 0.5; ## 5. Missing Values ## SELECT COUNT(*), COUNT(Unemployment_rate) FROM r...
<reponame>now2more/yiimp<filename>sql/2017-09-notifications.sql -- Recent additions to add after db init (.gz) -- mysql yaamp -p < file.sql ALTER TABLE `notifications` CHANGE `lastchecked` `lastchecked` int(10) UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE `notifications` CHANGE `lasttriggered` `lasttriggered` int(10) UN...
-- https://www.hackerrank.com/challenges/the-report/problem SELECT IF(GRADE<8, NULL, NAME), GRADE, MARKS FROM STUDENTS INNER JOIN GRADES WHERE MARKS BETWEEN MIN_MARK AND MAX_MARK ORDER BY GRADE DESC, NAME
<filename>Database/post_likes.sql<gh_stars>1-10 INSERT INTO POST_LIKES(user_id,post_id) VALUES (1,41); INSERT INTO POST_LIKES(user_id,post_id) VALUES (22,11); INSERT INTO POST_LIKES(user_id,post_id) VALUES (38,1); INSERT INTO POST_LIKES(user_id,post_id) VALUES (28,27); INSERT INTO POST_LIKES(user_id,post_id) VALUES (5,...
-- file:sequence.sql ln:122 expect:true SELECT setval('sequence_test'::text, 99, false)
prompt --application/pages/page_00001 begin -- Manifest -- PAGE: 00001 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.04.15' ,p_release=>'21.1.6' ,p_default_workspace_id=>9690978936188613 ,p_default_application_id=>123 ,p_default_id_offset=>0 ,p_default_owner=>'ILA' ); wwv_flow_api....
set define off; PROMPT eba_stds_standard_tests data declare type rec_t_data is varray(7) of varchar2(4000); type tab_t_data is table of rec_t_data index by pls_integer; l_st_data tab_t_data; l_st_row eba_stds_standard_tests%rowtype; l_general_standard eba_stds_standard_tests.standard_id%type := 1; l_ac...
CREATE TABLE IF NOT EXISTS `VERSIONS` ( `MAJOR` INT(3), `MINOR` INT(4), `UPDATED` TIMESTAMP ); CREATE TABLE IF NOT EXISTS `ACCOUNT`( `USER_NAME` VARCHAR(100) NOT NULL PRIMARY KEY, `MAIL_ADDRESS` VARCHAR(100) NOT NULL UNIQUE, `PASSWORD` VARCHAR(40) NOT NULL, `ADMINISTRATOR` BOOLEAN NOT NULL, `URL` VARCHAR(20...
<gh_stars>0 SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `users_roles`, `users`, `roles`; SET FOREIGN_KEY_CHECKS = 1; CREATE TABLE IF NOT EXISTS `users` ( `USER_ID` bigint(20) NOT NULL AUTO_INCREMENT, `FIRSTNAME` varchar(255) NOT NULL, `LASTNAME` varchar(255) NOT NULL, `USERNAME` varchar(16) NOT NULL, `P...
CREATE TABLE "CCTCOLL_OTHER_ID_TYPE7" ( "OTHER_ID_TYPE" VARCHAR2(75 CHAR) NOT NULL ENABLE, "COLLECTION_CDE" VARCHAR2(10) NOT NULL ENABLE )
<filename>database/modeling/base/team_form_tasks.sql<gh_stars>1-10 drop table if exists team_form_tasks; create table team_form_tasks ( tf_task_id serial primary key, proj_id int not null constraint team_form_tasks_proj_id_fkey references projects (proj_id), creator_id int not null ...
<gh_stars>0 ALTER TABLE `student_status` ADD `carrier_status` TINYINT(10) NOT NULL AFTER `quant_perc`, ADD `carrier_reg_created` INT NOT NULL AFTER `carrier_status`; ----------------------- UPDATE `test`.`carrier_oriented_question` SET `note` = 'Please jumble the Options and use this question as Match the following...
<filename>provisions/cluster_setup/postgres-data2/bdsetup/well_schema_ddl.sql CREATE SCHEMA IF NOT EXISTS welldata; CREATE TABLE IF NOT EXISTS welldata.productiondata ( dateprd character varying(8), well_bore_code character varying(14), npd_well_bore_code integer, npd_well_bore_name character varying(11...
<filename>application/libraries/steiner.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 27. Nov 2015 um 11:42 -- Server-Version: 10.1.8-MariaDB -- PHP-Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>0 SET search_path = tasker, pg_catalog ; CREATE OR REPLACE FUNCTION user_can_select_journal ( a_journal_id integer, a_task_id integer, a_username varchar, a_session_username varchar ) RETURNS boolean STABLE SECURITY DEFINER -- Set a secure search_path SET search_path = tasker, pg_catalog, pg_...
<reponame>manders87/Redshift-IQVIA-Data-Warehouse /*---------------------------------------------------------------------------------- SQL File: ptab_Sales_Xptrx_Nbrx.sql Table Name: rpt_apollo.ptab_sales_xptrx_nbrx_combined rpt_apollo.ptab_sales_xptrx_nbrx_combined_alignment View Name: rpt_apollo.v_tab_sale...
ALTER TABLE video.video ADD COLUMN create_date TIMESTAMP, ADD COLUMN gps_latitude REAL, ADD COLUMN gps_longitude REAL, ADD COLUMN gps_latitude_ref_id VARCHAR(2), ADD COLUMN gps_longitude_ref_id VARCHAR(2), -- add size to existing videos ADD COLUMN thumb_size INT, ADD COLUMN scaled_size ...
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: 172.16.58.3 Database: -- ------------------------------------------------------ -- Server version 5.5.5-10.3.9-MariaDB-1:10.3.9+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
<gh_stars>1-10 CREATE TABLE [dbo].[JobStepQueue] ( [JobStepInstanceId] UNIQUEIDENTIFIER NOT NULL, [JobInstanceId] UNIQUEIDENTIFIER NOT NULL, [JobStepId] UNIQUEIDENTIFIER NOT NULL, [CreatedDate] DATETIME NOT NULL, [UpdatedDate] DATETIME NOT NULL...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 05, 2020 at 01:51 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>DatabaseScripts/EasyNetQ.Scheduler/mssql/uspMarkWorkItemForPurge.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[uspMarkWorkItemForPurge]') AND type_desc IN ('SQL_STORED_PROCEDURE')) BEGIN PRINT 'Dropping procedure [dbo].[uspMarkW...
DELETE FROM AtlasEdge; DELETE FROM AtlasVertex; DELETE FROM Atlas; DELETE FROM TilingLabel tl USING Tiling t WHERE tl.tiling_id = t.id AND t.tiling_type_id = 2; DELETE FROM Tiling t WHERE t.tiling_type_id = 2; ALTER TABLE AtlasEdge ADD COLUMN sequence INT NOT NULL, ADD COLUMN neighbor_edge_id ...
<gh_stars>100-1000 -- Empty
-- trigger3.test -- -- execsql { -- INSERT INTO tbl2 VALUES (1, 2, 3); -- SELECT * FROM tbl2; -- SELECT * FROM tbl; -- } INSERT INTO tbl2 VALUES (1, 2, 3); SELECT * FROM tbl2; SELECT * FROM tbl;
<gh_stars>10-100 -- file:privileges.sql ln:448 expect:true GRANT USAGE ON FUNCTION testfunc1(int) TO regress_user3
<reponame>yblanco/chat --DROP SCHEMA registro CASCADE; CREATE SCHEMA registro AUTHORIZATION chat; GRANT ALL ON SCHEMA registro TO postgres; GRANT ALL ON SCHEMA registro TO chat; COMMENT ON SCHEMA registro IS 'Datos del Registro'; CREATE TABLE registro.usuario( pk_usu SERIAL NOT NULL, ch_nomb CHARACTER VARYING(...
-- Termlists for Groups and Individuals module -- SET search_path TO ind01,public; -- DELETE FROM termlists_terms WHERE termlist_id IN (SELECT id FROM termlists WHERE external_key = 'indicia:assoc:identifier_condition'); -- DELETE FROM meanings WHERE id NOT IN (SELECT meaning_id FROM termlists_terms); -- DELETE FROM...
-- Adminer 4.8.1 MySQL 5.5.5-10.1.38-MariaDB dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `answers`; CREATE TABLE `answers` ( `id` int(30) NOT NULL AUTO_INCREMENT, `user_id` int(30) NOT NULL, `quiz_id`...
<reponame>kulado/wealthmind -- Deploy wealthmind:dev to pg CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- the schema "1" is our versioned public API -- the schema mappa is private -- grants are done to the private schema "mappa" because -- the view needs to read from that schema with the role -- of the authenticated ...
<reponame>wangsikai/learn #macro($getByAction(action)) SELECT * FROM point_rule WHERE action = :action #end #macro($getAll()) SELECT * FROM point_rule #end
<gh_stars>10-100 -- -- Table structure for table `report_subscriptions` -- CREATE TABLE IF NOT EXISTS `report_subscriptions` ( `report_subscription_id` int(11) NOT NULL AUTO_INCREMENT, `report_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, PRIMARY KEY (`report_subscription_id`) );
update auth_sys_role set display_name = '后台系统', description = '用来作为WeCube组件间权限认证' where id = '8ab86ba0723a78fe01723a790ceb0000';
<reponame>GavinRay97/teiid /* ########################################### # START DATABASE empty ########################################### */ CREATE DATABASE empty VERSION '2'; USE DATABASE empty VERSION '2'; --############ Translators ############ --############ Servers ############ CREATE SERVER z FOREIGN DATA W...
CREATE TABLE [dbo].[OrderLineItemRelationship] ( [Id] INT IDENTITY (1, 1) NOT NULL, [OrderLineItemRelationshipTypeId] INT NULL, [Description] VARCHAR (255) NULL, [OrderLineItemIdFrom] INT NULL, [OrderLineItem...
<reponame>petersaundersConestoga/SteelDoorRecipeAPIOdata -- <NAME> -- february 26 2022 -- insert to publish state USE [CapstoneRecipeDatabase] GO INSERT INTO [dbo].[PublishState] ([Id] ,[RecipeId] ,[ReviewId] ,[State]) VALUES (1,1,0,1), (2,2,0,1),...
<gh_stars>10-100 UPDATE button SET recipe='(4) (6) I(10) f(12) (20)' WHERE id=636; UPDATE button SET recipe='(4) (8) (12) z(12) (X)' WHERE id=637; UPDATE button SET recipe='(2) (2) (6) I(10) (X)' WHERE id=639; UPDATE button SET recipe='(6) (12) I(12) (20) (X)' WHERE id=641; UPDATE button SET recipe='I(6) I(10) I(...
<filename>sql/ll_is_bitemporal_table.sql<gh_stars>10-100 CREATE OR REPLACE FUNCTION bitemporal_internal.ll_is_bitemporal_table(p_table text) RETURNS boolean immutable AS $$ DECLARE v_schemaname text; v_tablename text; BEGIN SELECT split_part(p_table, '.', 1) INTO v_schemaname; SELECT split_part(p_...
<gh_stars>0 -- @testpoint:关键字xmlparse,用作函数名(合理报错) create function xmlparse(num1 integer,num2 integer) return integer as begin return num1+num2; end; / select * from xmlparse(1,2);