sql
stringlengths
6
1.05M
<reponame>ntiufalara/openerp7 ------------------------------------------------------------------------- -- Pure SQL ------------------------------------------------------------------------- ------------------------------------------------------------------------- -- IR dictionary --------------------------------------...
ALTER TABLE `edu_db_document` CHANGE `file_type` `file_type` VARCHAR( 25 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL ALTER TABLE `edu_db_document` CHANGE `ext` `ext` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
<reponame>borkit/scriptdump /* SQL Server: Script To Run On A Database To List All Stored Procedures And Column Details */ -------------------------------------------------------------- -- Scriptlet to generate a list of all SPs for the current DB. -- Includes all parameters for the SPs, datatype and nullability. -- U...
<gh_stars>1-10 SELECT company, num, COUNT(*) FROM route WHERE stop=149 OR stop=53 GROUP BY Company, num HAVING COUNT(*) = 2
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 03, 2021 at 11:41 AM -- 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 */;...
<gh_stars>1-10 /* COMANDO PARA O MEU BANCO DE DADOS */ DROP SCHEMA public CASCADE ; -- apaga tudo de uma fez -- CREATE SCHEMA public; -- limpa o ckeche -- DROP DATABASE IF EXISTS launchstoreDB; CREATE DATABASE launchstoreDB; CREATE TABLE "products" ( "id" SERIAL PRIMARY KEY, "category_id" int , "user_id" i...
<filename>Scripts/Quartz.sql CREATE TABLE [dbo].[QRTZ_BLOB_TRIGGERS]( [SCHED_NAME] [nvarchar](120) NOT NULL, [TRIGGER_NAME] [nvarchar](150) NOT NULL, [TRIGGER_GROUP] [nvarchar](150) NOT NULL, [BLOB_DATA] [varbinary](max) NULL, CONSTRAINT [PK_QRTZ_BLOB_TRIGGERS] PRIMARY KEY CLUSTERED ( [SCHED_NAME] ASC, ...
<filename>Library/Tools/data/db.sql /* * db.sql -- * * Extensible Adaptable Generalized Logic Engine (Eagle) * Database CLR Assembly Setup Script * * Copyright (c) 2007-2012 by <NAME>. All rights reserved. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a D...
<reponame>camelcc/leetcode<gh_stars>1-10 Create table If Not Exists Employee (Id int, Salary int); Truncate table Employee; insert into Employee (Id, Salary) values ('1', '100'); insert into Employee (Id, Salary) values ('2', '200'); insert into Employee (Id, Salary) values ('3', '300'); CREATE FUNCTION getNthHighestS...
<filename>SQL Assignment/init.sql CREATE TABLE `product` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sku` char(6) COLLATE utf8_unicode_ci NOT NULL, `price` int(11) NOT NULL COMMENT 'in cents', `quantity` int(11) NOT NULL, `created_at` datetime NOT NULL DEFA...
INSERT INTO order_line1 (ol_o_id, ol_d_id, ol_w_id, ol_number, ol_i_id, ol_supply_w_id, ol_delivery_d, ol_quantity, ol_amount, ol_dist_info ) values ($1, $2, $3, $4, $5, $6, NOW(), $7, $8, $9 ), ($10, $11, $12, $13, $14, $15, NOW(), $16, $17, $18 ), ($19, $20, $21, $22, $23, $24, NOW(), $25, $26, $27 ), ($28, $29, $30,...
\i spec/db/setup.sql BEGIN; SELECT plan(8); SELECT lives_ok('SELECT api.purge()', 'purge all'); PREPARE p1 AS SELECT create_group_role('; DROP TABLE groups; --'); SELECT lives_ok('p1', 'can create little bobby tables group'); SELECT lives_ok('SET LOCAL ROLE TO "; DROP TABLE groups; --"', 'can switch to bob...
<gh_stars>0 INSERT INTO workspaces (title, description, admins, members) VALUES ($1, $2, $3, $4) RETURNING *
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2021 at 05:40 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
<gh_stars>0 ------------------------------------------------------------------------ /* PROGRAM: sp_Repopulate_AD419_FIS_Expenses BY: <NAME> DESCRIPTION: DELETE all Associations where ExpenseId related with an Expense with a DataSource of "FIS" DELETE all Expenses with a DataSource of "FIS" Insert all expenses from...
<reponame>NeotomaDB/api_nodetest<filename>v2.0/helpers/geopoliticalunits/gpuQuery.sql WITH gid AS (SELECT * FROM ndb.geopoliticalunits AS gpu WHERE ( ${gpid} IS NULL OR gpu.geopoliticalid = ${gpid}) AND (${gpname} IS NULL OR gpu.geopoliticalname LIKE ${gpname}) AND ( ${rank} IS NULL OR gpu.rank = ${...
<reponame>CSCfi/antero<filename>db_archive/sql_archive/155__dw_alter_procedure_p_lataa_d_organisaatio_-1.sql ALTER PROCEDURE dw.p_lataa_d_organisaatio AS if not exists (select * from dw.d_organisaatio where id=-1) begin set identity_insert dw.d_organisaatio on; insert into dw.d_organisaatio ( id, organisaat...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2017 at 12:23 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5466120_sys_gh1788-flatrate-transition-window-webui.sql -- 2017-06-24T18:36:38.921 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,A...
<gh_stars>0 INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (82705, 'spell_finkles_mixture'); INSERT INTO `creature` (`id`, `map`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealt...
<gh_stars>0 -- TRUNCATE TABLE OfficalContent; -- TRUNCATE TABLE OfficalInfo; -- TRUNCATE TABLE analysiscontent; -- TRUNCATE TABLE analysisinfo; -- TRUNCATE TABLE EnsembleContent; -- TRUNCATE TABLE EnsembleInfo; -- TRUNCATE TABLE ForecastContent; -- TRUNCATE TABLE ForecastInfo; -- TRUNCATE TABLE CentreInfo; -- TRUNCATE ...
{% if not var("enable_custom_source_2") %} {{ config( enabled=false ) }} {% endif %} WITH source AS ( select * from {{ source('custom_source_2','s_accounts' ) }} ), renamed as ( SELECT concat('custom_2-',id) AS contact_id, cast(null as string) AS contact_first_name, cast(null as str...
INSERT INTO CATEGORIA(ID, NOMBRE, DESTACADA, IMAGEN) VALUES (1, 'Portátiles', TRUE, NULL); INSERT INTO CATEGORIA(ID, NOMBRE, DESTACADA, IMAGEN) VALUES (2, 'Componentes', FALSE, NULL); INSERT INTO CATEGORIA(ID, NOMBRE, DESTACADA, IMAGEN) VALUES (3, 'Sobremesa', FALSE, NULL); INSERT INTO CATEGORIA(ID, NOMBRE, DESTACADA, ...
<filename>viki-home-core/db/migration/core/V1.0.0__Core_initialization.sql /** Core **/ /** Thing **/ CREATE TABLE core_thing( id TEXT NOT NULL, _schema TEXT NOT NULL, heartbeat INTEGER NOT NULL, PRIMARY KEY (id ASC) ); /** Property **/ CREATE TABLE core_property( thing TEXT NOT NULL, name TEXT NOT NULL, ...
select count(1) from examen where certificacion_id = :certificacionId
<gh_stars>1-10 create table plm_log_api ( id number(19) not null primary key, date timestamp not null, method varchar2(255) not null, status_code NUMBER(5) not null, body_request clob null, body_response clob null, apiName varchar2(255) not null, url ...
<reponame>MCZbase/DDL CREATE OR REPLACE FUNCTION "GET_STORAGE_PARENTAGE" ( container_id IN NUMBER) RETURN VARCHAR2 -- Given a container ID, return a concatenated list of parent storage locations for that container up to room for simple printing. -- @param container_id to lookup -- @return a colon separated string o...
#standardSQL # Image bytes on CMSs SELECT percentile, _TABLE_SUFFIX AS client, APPROX_QUANTILES(reqImg, 1000)[OFFSET(percentile * 10)] AS image_count, APPROX_QUANTILES(bytesImg, 1000)[OFFSET(percentile * 10)] / 1024 AS image_kbytes FROM `httparchive.summary_pages.2020_08_01_*` JOIN `httparchive.technologies...
-- @testpoint:opengauss关键字default(保留),自定义数据类型名为default --关键字default作为数据类型不带引号,创建失败 drop type if exists default; CREATE TYPE default AS (f1 int, f2 text); --关键字default作为数据类型加双引号,创建成功 drop type if exists "default"; CREATE TYPE "default" AS (f1 int, f2 text); select typname from pg_type where typname ='default'; drop ...
<filename>install/sql/012_v1.1_fixes.sql -- This resolves the potential performance issue in #170. These values are -- calculated as Tasks and Task Logs are updated instead of calculated at -- run time. UPDATE projects SET project_task_count = ( SELECT COUNT(*) FROM tasks WHERE task_project = project_id ); --...
create or replace package body flow_engine_util as lock_timeout exception; pragma exception_init (lock_timeout, -3006); g_step_keys_enforced boolean; function get_dgrm_id ( p_prcs_id in flow_processes.prcs_id%type ) return flow_processes.prcs_dgrm_id%type as l_prcs_dgrm_id flow_processes.pr...
<filename>db/sqlite/sql/DataModels/INSERT/InsertPayrollCostCodeUpdates.sql INSERT INTO PayrollObligations SELECT DISTINCT ExternalPayrollObligations.RPIO AS RPIO, ExternalPayrollObligations.AhCode AS AhCode, ExternalPayrollObligations.BFY AS BFY, ExternalPayrollObligations.FundCode AS FundCode, ExternalPayrollObligatio...
<filename>database/sipos_5_5_2020.sql -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 05, 2020 at 02:27 AM -- Server version: 8.0.19-0ubuntu5 -- PHP Version: 7.3.17-1+ubuntu20.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT...
INSERT INTO category(name) VALUES ('Art'); INSERT INTO category(name) VALUES ('Sculpting'); INSERT INTO category(name) VALUES ('Photography');
-- -- PostgreSQL database dump -- -- Dumped from database version 9.1.11 -- Dumped by pg_dump version 9.1.11 -- Started on 2014-02-14 16:20:06 CET SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET de...
<reponame>vasetousa/SQL-Server USE [Gringotts] SELECT * FROM (SELECT [DepositGroup], [MagicWandCreator], MIN([DepositCharge]) AS [MinDepositCharge] FROM [WizzardDeposits] GROUP BY [DepositGroup], [MagicWandCreator]) AS [DepoCreator]
<gh_stars>0 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT...
CREATE DATABASE Regional_Rail CHARACTER SET latin1 COLLATE latin1_swedish_ci; CREATE DATABASE Light_Rail CHARACTER SET latin1 COLLATE latin1_swedish_ci; CREATE DATABASE Trolley CHARACTER SET latin1 COLLATE latin1_swedish_ci; CREATE DATABASE Bus CHARACTER SET latin1 COLLATE latin1_swedish_ci;
<reponame>EliazBobadilla/Fundamentos-Bases-de-Datos SELECT estatus, COUNT(*) AS post_number FROM posts GROUP BY estatus; SELECT YEAR(publication_date) AS post_year, COUNT(*) AS post_number FROM posts GROUP BY post_year; SELECT MONTHNAME(publication_date) AS post_month, COUNT(*)...
CREATE SCHEMA IF NOT EXISTS "Covid19DataMart"; \i drop_tables.sql \i create_tables.sql \i load_data.sql
<filename>powerchart/administered_immunizations_query.sql /* administered_immunizations_query.sql ~~~~~~~~~~~~~~~~~~~~ Identifies patients who have been administered an immunization (either on the MAR or documented in the Immunization Record) */ select pt = p.name_full_formatted , event = uar_get_code_description(...
/** * \file * \brief The AssertPass stored procedure. * \author <NAME> */ if (object_id('ssunit.AssertPass') is not null) drop procedure ssunit.AssertPass; go /** * Asserts that the test has definitely passed. * NB: All other asserts are implemented in terms of this assert. */ create procedure ssunit.Assert...
/* Warnings: - A unique constraint covering the columns `[customerId]` on the table `User` will be added. If there are existing duplicate values, this will fail. - Made the column `customerId` on table `User` required. This step will fail if there are existing NULL values in that column. */ -- AlterTable ALTER ...
<filename>src/test/resources/null.test_3.sql -- null.test -- -- execsql { -- select ifnull(b*c,99) from t1; -- } select ifnull(b*c,99) from t1;
-- file:strings.sql ln:467 expect:true select md5('') = 'd41d8cd98f00b204e9800998ecf8427e' AS "TRUE"
-- file:inet.sql ln:121 expect:true SELECT i, c, i & c AS "and" FROM inet_tbl
ALTER TABLE videos ADD COLUMN transcoded bool DEFAULT false;
create table if not exists b_timeman_entries ( ID int(11) not null auto_increment, TIMESTAMP_X timestamp not null, USER_ID int(18), MODIFIED_BY int(18) null, ACTIVE char(1) null default 'Y', PAUSED char(1) null default 'N', DATE_START datetime, RECORDED_START_TIMESTAMP int(11) unsigned not null default 0, ACTU...
<gh_stars>0 /*** -- straight across copy of PM's in Legacy Access DB into CRT BEGIN TRANSACTION SET NOCOUNT ON; DECLARE @legacyId int, @itemCount int = 10; DECLARE @legacyName nvarchar(255); DECLARE pm_cursor CURSOR FOR SELECT ID , CASE WHEN [Full Name] IS NULL THEN 'None' ELSE REPLACE([Full Name], '''', ...
<gh_stars>0 00401 PLEASANTVILLE NY 00501 HOLTSVILLE NY 00544 HOLTSVILLE NY 00601 ADJUNTAS PR 00602 AGUADA PR 00603 AGUADILLA PR 00604 AGUADILLA PR 00605 AGUADILLA PR 00607 AGUAS BUENAS PR 00608 AGUIRRE PR 00609 AIBONITO PR 00610 ANASCO PR 00611 ANGELES PR 00612 ARECIBO PR 00613 ARECIBO PR ...
CREATE DATABASE /*!32312 IF NOT EXISTS*/`dogmall_oms` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `dogmall_oms`; -- AT模式需要在每个数据库中添加undo_log表 DROP TABLE IF EXISTS `undo_log`; -- 注意此处0.3.0+ 增加唯一索引 ux_undo_log CREATE TABLE `undo_log` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `branch_id` bigin...
create class test_class (date_col date, time_col time, timestamp_col timestamp, datetime_col datetimetz); insert into test_class(datetime_col) values (datetimetz '1-1-1 00:00:00.000'); insert into test_class(datetime_col) values (datetimetz '0001-01-01 00:00:00.000'); insert into test_class(datetime_col) values (datet...
<gh_stars>0 ALTER TABLE Restaurants ADD Dairy BIT DEFAULT 0 NOT NULL;
-- Use default 0 -- Artype = forest value (skogvalue) 30 is 100 -- Artype 11 + 12 is -100 DROP TYPE mess.function_2_4_1_type cascade; CREATE TYPE mess.function_2_4_1_type AS ( gid bigint, value integer ); --DROP FUNCTION mess.function_2_4_1(p_in geometry) cascade ; CREATE OR REPLACE FUNCTION mess.functi...
<reponame>PC-Axis/PxStat<filename>db/StoredProcedures/Subscription/Subscription_Channel_Read.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 02/12/2021 -- Description: Read one or all Subscription Channel -- EXEC Subscription_Cha...
<filename>Bddump/hakaton_rentalpoint.sql -- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: localhost Database: hakaton -- ------------------------------------------------------ -- Server version 8.0.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
create view raw_data_lux as select r.value as lux, rd.value as temp, r.tstamp, r.meta_id, case when r.value <= 10 then '1' when r.value <= 500 then '2' when r.value <= 2000 then '3' when r.value <= 15000 then '4' when r.value <= 20000 then '5' when r.value <= 50000 then '6' when r.value > 50000 then '7' ...
<filename>vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.4.245/test/fixtures/cross_agent_tests/sql_obfuscation/end_of_query_comment_hash.sql SELECT foo, bar FROM baz WHERE password='<PASSWORD>' # Secret
<reponame>tumluliu/osm-mmgraphdb-builder \copy (select length,speed_factor,mode_id,from_id,to_id,edge_id, null as link_id, null as osm_id from edges where mode_id != 11 and mode_id != 12 and mode_id != 17) to './csv/public_transit_edges.csv' with csv header; \copy (select out_degree as outdegree, vertex_id, null as raw...
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; DROP PROCEDURE IF EXISTS `sp_CharacterXpCreate`; DELIMITER // ...
IF((SELECT 1 FROM SYS.CHANGE_TRACKING_DATABASES WHERE DATABASE_ID = DB_ID('@DATABASENAME')) IS NULL) BEGIN ALTER DATABASE [@DATABASENAME] SET CHANGE_TRACKING = ON (CHANGE_RETENTION = 6 DAYS, AUTO_CLEANUP = ON) END
<reponame>ekmixon/cset /* Run this script on: (localdb)\v11.0.CSETWeb920 - This database will be modified to synchronize it with: (localdb)\v11.0.CSETWeb921 You are recommended to back up your database before running this script Script created by SQL Data Compare version 14.0.7.13517 from Red Gate ...
<reponame>rzinke/SYAD21 CREATE TABLE `Restaurant` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `start` TIME NOT NULL DEFAULT '08:00:00', `end` TIME NOT NULL DEFAULT '22:00:00', `address` VARCHAR(128) DEFAULT NULL, `rating` TINYINT DEFAULT 0, `name` VARCHAR(32) ); CREATE TABLE `RestaurantPoints` (...
<gh_stars>1-10 -- -- Copyright 2010 University of California at Berkeley -- Licensed under the Educational Community License (ECL), Version 2.0. -- You may not use this file except in compliance with this License. -- -- use cspace; CREATE INDEX IF NOT EXISTS index_rolename ON roles (rolename); CREATE INDEX IF NOT EXIST...
<reponame>jtwele/wawision INSERT INTO `artikelgruppen` (`id`, `bezeichnung`, `bezeichnung_en`, `shop`, `aktiv`) VALUES (1, 'Zwiebeln', 'Onions', 1, 1), (2, 'Bananen', 'Bananas', 1, 1), (3, 'Tomaten', 'Tomatos', 1, 1); INSERT INTO `artikel` (`id`, `typ`, `nummer`, `checksum`, `projekt`, `inaktiv`, `ausverkauft`, `waren...
USE TestDb GO SELECT * FROM [dbo].['14 Jul 13$'] -- Create new table for Location SELECT ChemId, UZ40 AS AmountLoaded, DateLoadedUZ40 AS DateLoaded INTO [dbo].[Jul 14th UZ40] FROM [dbo].['14 Jul 13$'] SELECT * FROM [dbo].[Jul 14th UZ40] -- Create new row in table ALTER TABLE [dbo].[Jul 14th UZ40] ...
CREATE TABLE mapping_set ( mapping_set_id INT(10) UNSIGNED NOT NULL, schema_build VARCHAR(20) NOT NULL, PRIMARY KEY(schema_build) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
<gh_stars>0 -- formerly rollup_matrix_numberic_5m -- -- PostgreSQL database dump -- SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = noit, pg_catalog; SET default_tablespace =...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: e.oulis * Created: Nov 15, 2021 */ create table users( username varchar2(100) not null primary key, passwor...
<reponame>lerna-stack/lerna-sample-payment-app<filename>docker/mariadb/initdb/10_CREATE_SERVICE_RELATION.sql<gh_stars>0 CREATE TABLE SERVICE_RELATION ( SERVICE_RELATION_ID DECIMAL NOT NULL, FOREIGN_KEY_TYPE CHAR(2) NOT NULL, CUSTOMER_ID CHAR(32) NOT NULL, INSERT_DATE DATETIME NOT NULL, INSERT_USER_ID VARCHAR(...
ALTER TABLE construct_id ALTER COLUMN qname TYPE character varying(3072);
/****** Object: Table [dbo].[as_Cache_BaseItemCollection] Script Date: 01/01/2014 00:00:00 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].as_Cache_BaseItemCollection( [FileID] [int] IDENTITY(1,1) NOT NULL, [ItemPortalID] [varchar](max) NULL, [ItemKey] [varc...
<filename>src/main/resources/org/support/project/web/dao/sql/UserAliasDao/UserAliasDao_physical_select_on_user_id.sql SELECT * FROM USER_ALIAS WHERE USER_ID = ? ;
CREATE EXTENSION pg_stat_monitor; SELECT pg_stat_monitor_reset(); CREATE TABLE foo1(a int); CREATE TABLE foo2(a int); CREATE TABLE foo3(a int); CREATE TABLE foo4(a int); SELECT pg_stat_monitor_reset(); SELECT * FROM foo1, foo2, foo3, foo4; SELECT query, relations from pg_stat_monitor ORDER BY query; SELECT pg_stat_moni...
CREATE FUNCTION pglogical.wait_for_subscription_sync_complete(subscription_name name) RETURNS void RETURNS NULL ON NULL INPUT VOLATILE LANGUAGE c AS 'MODULE_PATHNAME', 'pglogical_wait_for_subscription_sync_complete'; CREATE FUNCTION pglogical.wait_for_table_sync_complete(subscription_name name, relation regclass) RETU...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `infomation`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` INT UNSIGNED DEFAULT NULL, `title` VARCHAR(50) DEFAULT NULL, `thumb` VARCHAR(100) DEFAULT NULL, `author` CHAR(12) DEFAULT NULL, `content` TEXT DEFAULT NULL, `listorder` smallint(6) UNSIGNED NOT NULL DEFAULT '0', `c...
<filename>db_user.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 14, 2016 at 07:56 AM -- 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_...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/volatile/Opengauss_Function_Keyword_Volatile_Case0025.sql<gh_stars>0 -- @testpoint:opengauss关键字volatile(非保留),作为角色名 --关键字不带引号-成功 drop role if exists volatile; create role volatile with password '<PASSWORD>' valid until '2020-12-31'; drop role vol...
<reponame>heruprasetiyo/pagination -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Bulan Mei 2020 pada 13.59 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...
CREATE TABLE IF NOT EXISTS users ( id VARCHAR(255) NOT NULL PRIMARY KEY, name VARCHAR(255) NOT NULL, urn VARCHAR(255) NOT NULL UNIQUE, language VARCHAR(25) NOT NULL, created_at VARCHAR(20) NOT NULL, updated_at VARCHAR(20) );
<gh_stars>0 DROP TABLE IF EXISTS `skill`; CREATE TABLE `skill` ( `skill_id` BIGINT AUTO_INCREMENT PRIMARY KEY, `type` INT NOT NULL, `name` VARCHAR(250) DEFAULT NULL, `damage` INT DEFAULT NULL, `effective` BOOLEAN DEFAULT 0 );
<reponame>dfhawthorne/sql-ocm12c -- ----------------------------------------------------------------------------- -- Create extra indexes for sample SH statement -- ----------------------------------------------------------------------------- CREATE INDEX ind_prod_cat_name ON products(prod_category_id, prod_name, p...
-- phpMyAdmin SQL Dump -- version 4.0.4.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 19, 2015 at 11:11 AM -- Server version: 5.6.13 -- PHP Version: 5.4.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<filename>resources/views/tas tis tus.sql<gh_stars>0 INSERT INTO `daftar_presensis` (`id_tabel`, `id_manajer`, `id_karyawan`, `lokasi_absen`, `lokasi_real`, `lokasi_proximity`, `waktu_absen`, `waktu_logout`, `durasi_pekerjaan`, `created_at`, `updated_at`) VALUES (NULL, '2', '4', '-6.3678947,106.832719', 'Jl. Margonda R...
/* ==Paramètres de script== Version du serveur source : SQL Server 2016 (13.0.4001) Édition du moteur de base de données source : Microsoft SQL Server Enterprise Edition Type du moteur de base de données source : SQL Server autonome Version du serveur cible : SQL Server 2016 Édition du moteur d...
# ************************************************************ # Sequel Pro SQL dump # Version 4529 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.47-0ubuntu0.14.04.1) # Database: wordpress_default # Generation Time: 2016-03-02 15:43:33 +0000 # ********************...
-------------------------------------------------------------------------- -- ____ ____ _ ____ _ _____ _ -- | _ \| _ \| | / ___| ___ ___| |_ __ _ ___ | ____|___| |_ ___ __ _ _ _ ___ -- | | | | | | | | | | _ / _ \/ __| __/ _` |/ _...
USE [ANTERO] GO /****** Object: Table [dw].[f_varda_jarjestamismuoto] Script Date: 1.3.2022 10.50.23 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (select * from sysobjects where name = 'f_varda_jarjestamismuoto' and xtype='U') BEGIN; CREATE TABLE [dw].[f_varda_jarjestamismuoto]( [id]...
<gh_stars>1-10 create table if not exists wardsyearlytotals as select w.ward, w.year, sum(w.ticket_count) as ticket_count, sum(w.total_payments) as total_payments, sum(w.current_amount_due) as current_amount_due, sum(w.fine_level1_amount) as fine_level1_amount from wardsyearly w GROUP ...
<filename>Questions Level-Wise/Easy/customers-who-never-order.sql<gh_stars>1-10 # Write your MySQL query statement below SELECT Name AS Customers FROM Customers WHERE Id NOT IN (SELECT DISTINCT CustomerId FROM Orders);
create or replace package api_publicapi_staging as procedure entry_get; end api_publicapi_staging;
<filename>tests/plugins/pgsql/static/test_pgsql/custom_foo@1/0000.sql INSERT INTO foo VALUES ('custom1')
-- file:polymorphism.sql ln:315 expect:true CREATE AGGREGATE myaggn16b(BASETYPE = anyelement, SFUNC = tf2p, STYPE = anyarray, INITCOND = '{}')
-- phpMyAdmin SQL Dump -- version 3.3.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 12, 2011 at 08:15 AM -- Server version: 5.1.56 -- PHP Version: 5.3.6-pl0-gentoo SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_...
-- SCHEMA VERSION 1: 2019-12-26 -- First version introducing the migration system, therefore we add the info/version table create table info ( id int primary key not null default 1, -- enforced only equal to 1 schema_version int, constraint singleton check (id = 1) -- enforce singleton table/...
<filename>sql/3_aggregation/11_weatherobservationstation14.sql -- Solution to [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14) SELECT TRUNCATE(MAX(LAT_N), 4) FROM STATION WHERE (LAT_N < 137.2345)
-- +++ -- parent: 1528395934 -- +++ CREATE INDEX CONCURRENTLY IF NOT EXISTS repo_stars_desc_id_desc_idx ON repo USING btree (stars DESC NULLS LAST, id DESC) WHERE deleted_at IS NULL AND blocked IS NULL;
<filename>migrations/1516834731_add_saved_queries.up.sql CREATE TABLE saved_queries ( "query" text NOT NULL, "last_executed" TIMESTAMP WITH TIME ZONE NOT NULL, "latest_result" TIMESTAMP WITH TIME ZONE NOT NULL, "exec_duration_ns" bigint NOT NULL ); CREATE UNIQUE INDEX "saved_queries_query_unique" ON sav...
/****** Object: View [dbo].[V_Old_Storage_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW dbo.V_Old_Storage_Report AS SELECT T_Instrument_Name.IN_name AS Instrument, V_old_storage.SP_vol_name_client + V_old_storage.SP_path AS [Storage Path] FROM T_Instrument_Name...
<reponame>Geomatys/examind-community CREATE INDEX sensor_parent_idx ON "admin"."sensor" USING btree ("parent");