sql
stringlengths
6
1.05M
<reponame>murphymoulds-palmetto/dimensional_dbt {%- macro _truncate_snapshots(source, unique_key, precision='hour') -%} {#/* reduces the snapshot granularity to the given precision, and corrects the min/max to kimball standard beginning-of-time/end-of-time Args: source: the cte name or ...
<filename>conf/evolutions/default/1.sql # --- !Ups create table "auth_tokens" ("id" VARCHAR(254) NOT NULL PRIMARY KEY,"user_id" BIGINT NOT NULL,"creation" TIMESTAMP NOT NULL,"last_used" TIMESTAMP NOT NULL,"expiration" TIMESTAMP NOT NULL); create table "dvd" ("id" SERIAL NOT NULL PRIMARY KEY,"event_id" BIGINT NOT NULL,...
with citibike_stations as ( select * from {{ ref('stg_citibike_stations') }} ), missing_region_ids as ( select * from {{ ref('seed_missing_station_region_ids')}} ), region_names as ( select * from {{ ref('seed_region_names')}} ), final as ( select citibike_stations.station...
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -------------------------------------------------------------------------------- -- -- File name: nonshared.sql -- Purpose: Print reasons...
<filename>tajo-core-tests/src/test/resources/queries/TestSQLAnalyzer/positive/select_8.sql<gh_stars>100-1000 select all id, name, age, gender from people
<gh_stars>100-1000 CREATE OR REPLACE FUNCTION test_insert_update_fetch_comments() RETURNS SETOF TEXT LANGUAGE plpgsql AS $$ DECLARE test_enterprise CONSTANT enterprises.name%TYPE = 'BigCo'; test_user CONSTANT users.name%TYPE = 'BigCo Chaos Monkey'; test_user_id CONSTANT users.id%TYPE = u(test_enterprise, test_use...
alter table ACT_RU_TASK add PARENT_TASK_ID_ nvarchar(64);
<filename>src/test/regress/bugbuster/sql/launch-tpch-loading.sql<gh_stars>1-10 \! psql -d template1 -f ./sql/tpch_load_heap.sql \! psql -d template1 -f ./sql/tpch_load_AO.sql \! psql -d template1 -f ./sql/tpch_load_CO.sql
/* contrib/ltree_plpython/ltree_plpython2u--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION ltree_plpython2u" to load this file. \quit -- make sure the prerequisite libraries are loaded LOAD 'plpython2'; SELECT NULL::ltree; CREATE FUNCTION ltree_to_p...
<gh_stars>1-10 CREATE TABLE `quoted_identifiers` ( `id` INT PRIMARY KEY, `name` VARCHAR(50) NOT NULL ); INSERT INTO `quoted_identifiers` VALUES (1, 'foo');
<reponame>Zhaojia2019/cubrid-testcases create class test_class (bigint_col bigint, char_col char(20), UNIQUE(bigint_col)); insert into test_class values(1, 'a'); insert into test_class values(2, 'b'); insert into test_class values(3, 'a'); insert into test_class values(3, 'c'); select * from test_class order by 1,2; ...
-- @testpoint:opengauss关键字Length(非保留),作为角色名 --关键字不带引号-成功 drop role if exists Length; create role Length with password '<PASSWORD>' valid until '2020-12-31'; drop role Length; --关键字带双引号-成功 drop role if exists "Length"; create role "Length" with password '<PASSWORD>' valid until '2020-12-31'; drop role "Length"; --关...
<gh_stars>0 SET NOCOUNT ON IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Users' AND COLUMN_NAME = 'AcademicField') BEGIN PRINT 'Adding Users.AcademicField' ALTER TABLE Users ADD AcademicField Nvarchar(100) NULL END GO IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 11, 2021 at 02:14 PM -- Server version: 10.3.22-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
<filename>cmd/create_postgres_db/postgres_init.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 13.2 -- Dumped by pg_dump version 13.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_str...
COMMENT ON TABLE "TSD_EXRATES_TA1"."PRDT_PRICING" IS 'Type de taux (ex: coût de fonds, taux d''assurance vie, taux affiché, taux de perte)'; CREATE INDEX "TSD_EXRATES_TA1"."FK_PRDT_PRICING_CONDTN_01" ON "TSD_EXRATES_TA1"."PRDT_PRICING" ("PRDT_CONDITION_ID") ; CREATE INDEX "TSD_EXRATES_TA1"."FK_PRDT_PRICING_R...
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-11-2015 a las 18:03:49 -- Versión del servidor: 10.0.17-MariaDB -- Versión de PHP: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>data/fr/sqlite/subdivisions_PL.sqlite.sql CREATE TABLE subdivision_PL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_PL" ("id", "name", "level") VALUES ('PL-WP', 'Voïvodie de Grande-Pologne', 'voivodship'); INSERT INTO "subdivision_PL" ("id"...
<reponame>yasir2000/brown-bear<filename>plugins/projectlinks/db/uninstall.sql DROP TABLE IF EXISTS plugin_projectlinks_link_type; DROP TABLE IF EXISTS plugin_projectlinks_relationship;
use sakila; -- comentario SELECT * FROM customer; SELECT first_name, last_name, email FROM customer; SELECT first_name, last_name, email FROM customer LIMIT 10; SELECT first_name, last_name, email, active FROM customer WHERE active = 0 LIMIT 10; SELECT first_name, last_name, email, active FROM customer WHERE active...
insert into table_2 values(1); insert into table_3 values(1,1);
CREATE TABLE review_id_table ( review_id TEXT PRIMARY KEY NOT NULL, customer_id INTEGER, product_id TEXT, product_parent INTEGER, review_date DATE -- this should be in the formate yyyy-mm-dd ); -- This table will contain only unique values CREATE TABLE products ( product_id TEXT PRIMARY KEY NOT N...
<reponame>dram/metasfresh<filename>backend/de.metas.dlm/base/src/main/sql/postgresql/system/5455170_sys_gh489_perf_M_AttributeSetInstance_ID.sql  CREATE INDEX IF NOT EXISTS m_transaction_M_AttributeSetInstance_ID ON public.m_transaction USING btree (M_AttributeSetInstance_ID); CREATE INDEX IF NOT EXISTS C_OrderLin...
GO PRINT N'Dropping FK_Producer_Scheme...'; GO ALTER TABLE [Producer].[Producer] DROP CONSTRAINT [FK_Producer_Scheme]; GO PRINT N'Dropping FK_MemberUpload_Scheme...'; GO ALTER TABLE [PCS].[MemberUpload] DROP CONSTRAINT [FK_MemberUpload_Scheme]; GO PRINT N'Dropping FK_Scheme_Organisation...'; GO ALTER TABLE ...
INSERT INTO Municipios (id_departamento, nombre) VALUES(1, 'Ahuachapán'); INSERT INTO Municipios (id_departamento, nombre) VALUES(1, 'Apaneca'); INSERT INTO Municipios (id_departamento, nombre) VALUES(1, 'Ataco'); INSERT INTO Municipios (id_departamento, nombre) VALUES(1, 'Atiquizaya'); INSERT INTO Municipios (id_depar...
alter table tb_proposal change column document document varchar(255) unique not null;
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding foreign keys to [edfi].[EducationOr...
{{ config( materialized='table' ) }} select product_id, name, price, quantity from {{ref('stg_products')}}
<gh_stars>0 PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_data_table','V_User_List_Report_2'); INSERT INTO "general_params" VALUES('list_report_data_sort_dir','DESC'); INSERT INTO "general_params" VALUES('det...
#standardSQL # page almanac favicon image types grouped by device and type M217 CREATE TEMP FUNCTION AS_PERCENT (freq FLOAT64, total FLOAT64) RETURNS FLOAT64 AS ( ROUND(SAFE_DIVIDE(freq, total), 4) ); # returns all the data we need from _almanac CREATE TEMPORARY FUNCTION get_almanac_info(almanac_string STRING) RETU...
<reponame>liguangcheng666/zfw /* Navicat Premium Data Transfer Source Server : MySQL Source Server Type : MySQL Source Server Version : 80016 Source Host : localhost:3306 Source Schema : zfw Target Server Type : MySQL Target Server Version : 80016 File Encoding : 65001...
<gh_stars>1-10 -- Name: CreateConversionEvent -- Schema: posda_files -- Columns: [] -- Args: ['who_invoked_conversion', 'conversion_program'] -- Tags: ['radcomp'] -- Description: Add a filter to a tab insert into conversion_event( time_of_conversion, who_invoked_conversion, conversion_program ) values ( now(), ?, ...
<reponame>Rob--W/phabricator<filename>resources/sql/autopatches/20161003.cal.01.utcepoch.sql ALTER TABLE {$NAMESPACE}_calendar.calendar_event ADD utcInitialEpoch INT UNSIGNED NOT NULL; ALTER TABLE {$NAMESPACE}_calendar.calendar_event ADD utcUntilEpoch INT UNSIGNED; ALTER TABLE {$NAMESPACE}_calendar.calendar_event...
<reponame>testcae/microservice-uat-testing-microservice-music -- -- Database Schema: uatTest -- Automatically generated sql script for the service uat-testing-microservice-music, created by the CAE. -- -------------------------------------------------------- -- -- Table structure for table tblMusic. -- CREATE TABLE u...
CREATE TABLE pais ( pais_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, PRIMARY KEY(pais_id), INDEX IX_pais_last_first_name(name), UNIQUE INDEX UQ_pais_identity_document(name) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
<reponame>swaranlata/sellswap -- phpMyAdmin SQL Dump -- version 4.7.8 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 31, 2018 at 06:46 AM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOC...
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : osc_summer_v2 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-05-07 06:53:02 */ SET FOREIGN_KEY_CHECKS=0;...
CREATE SCHEMA [player] AUTHORIZATION [dbo];
<gh_stars>0 WITH rent_joins AS ( SELECT proj_name , geo2010 , acs_code , acs_rent_lower.hd01_vd01 AS quartile1_neighborhood_rent , acs_rent_median.hd01_vd01 AS median_neighborhood_rent , acs_rent_upper.hd01_vd01 AS quartile3_neighborhood_rent , acs_rent_upper.data_versio...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 10, 2021 at 01:39 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
--Zestawienie liczby klientów (dla państwa), --których suma wszystkich zakupów jest większa niż średnia dla danego państwa. SELECT c.COUNTRY, COUNT(UNIQUE(c.CUSTOMERID)) as Customers FROM CUSTOMER c JOIN INVOICE i on i.CUSTOMERID = c.CUSTOMERID JOIN (SELECT i_c.COUNTRY, SUM(i_i.Total) / COUNT(UNIQUE(i_i.CUSTOMERID)) a...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 24, 2019 at 03:10 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<filename>database/Blog_system.sql DROP DATABASE IF EXISTS Blog_system; CREATE DATABASE Blog_system DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_polish_ci; USE Blog_system; CREATE TABLE Permission( id INT PRIMARY KEY, name VARCHAR(50) ); CREATE TABLE User( id INT NOT NULL PRIMARY KEY, username VARCHAR(50...
CREATE PROCEDURE [dbo].[dnn_AddTabBefore] @BeforeTabID int, @ContentItemID int, @PortalID int, @UniqueId uniqueidentifier, @VersionGuid uniqueidentifier, @DefaultLanguageGuid uniqueidentifier, @LocalizedVersionGuid uniqueidentifier, @TabName nvarchar(200), @IsVisible bi...
CREATE TABLE `fi_quotes` ( `quote_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `client_id` int(11) NOT NULL, `invoice_group_id` int(11) NOT NULL, `quote_date_created` date NOT NULL, `quote_date_modified` date NOT NULL, `quote_date_expires` date NOT NULL, `quote_number` varchar(20) NO...
<reponame>Estocy/backend -- Your SQL goes here CREATE TABLE products ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name VARCHAR NOT NULL, code INTEGER NOT NULL, description VARCHAR NOT NULL, store_name VARCHAR, store_price REAL, price REAL NOT NULL, additional_charge REAL DEFAULT 0.00, color VARCHA...
SELECT * FROM (SELECT i_manufact_id, sum(ss_sales_price) sum_sales, avg(sum(ss_sales_price)) OVER (PARTITION BY i_manufact_id) avg_quarterly_sales FROM item, store_sales, date_dim, store WHERE ss_item_sk = i_item_sk AND ss_sold_date_sk = d_date_sk AND ss_sto...
select * from :tablename: where string_id = :string_id:;
SELECT id_usuari, username, nom, cognoms, es_dona, id_persona, roles, avisos, es_actiu FROM usuaris_info WHERE ?;
-- -- Upgrade script for acs-kernel -- -- Changes wrong unique constraint on auth_driver_params table to a primary key on authority_id, impl_id, key. -- -- -- @author <NAME> (<EMAIL>) -- -- @creation-date 2003-10-16 -- -- @cvs-id $Id: upgrade-5.0.0a1-5.0.0a2.sql,v 1.1 2003/10/16 10:57:42 lars Exp $ -- alter table aut...
<reponame>JoseLuisPerez91/SIPRED /*****************************************\ Proyect : Deloitte ExcelAddIn Developer : Ing. <NAME> Stored Procedure: spObtenerIndices \*****************************************/ USE [DSAT] GO /****** Object: StoredProcedure [dbo].[spObtenerIndices] Script Date: 1...
<reponame>zhishan332/devtools /* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50631 Source Host : localhost Source Database : devtool Target Server Type : MySQL Target Server Version : 50631 File Encoding : utf-8 ...
/****** Object: Table [dbo].[T_Scripts] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Scripts]( [ID] [int] NOT NULL, [Script] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Description] [varchar](2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Enabled] [ch...
CREATE TABLE IF NOT EXISTS `DOWNLOAD_LIST_ITEM_V2` ( `PRINCIPAL_ID` BIGINT NOT NULL, `ENTITY_ID` BIGINT NOT NULL, `VERSION_NUMBER` BIGINT DEFAULT -1, `ADDED_ON` TIMESTAMP(3) NOT NULL, PRIMARY KEY (`PRINCIPAL_ID`, `ENTITY_ID`, `VERSION_NUMBER`), CONSTRAINT FOREIGN KEY (`PRINCIPAL_ID`) REFERENCES `DOWNLOAD_LI...
-- CREATE ITERABLE INTEGRATION INSERT INTO integration.integration (name, title, type_constant) VALUES ('iterable','Iterable', 'incoming'); -- CREATE KODING CHANNEL ITERABLE INTEGRATION CREATE OR REPLACE FUNCTION get_iterable_integration () RETURNS BIGINT AS $$ DECLARE iterable_integration_id BIGINT ; BEGIN SELECT ...
<filename>src/main/resources/db/migration/V2_2_0_10__i18n.sql -- -- Modification table formation -- ALTER TABLE `formation` ADD COLUMN `id_i18n_info_comp_form` INT(10) NULL DEFAULT NULL COMMENT 'i18n informations complémentaires de la formation' AFTER `preselect_lieu_form`; ALTER TABLE formation ADD INDEX fk_formation_...
--**************************************************************************** -- (c) Copyright IBM Corp. 2017 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not s...
<filename>tutorial/debezium-db2-init/db2server/startup-cdc-demo.sql<gh_stars>100-1000 VALUES ASNCDC.ASNCDCSERVICES('status','asncdc'); CALL ASNCDC.ADDTABLE('DB2INST1', 'PRODUCTS' ); CALL ASNCDC.ADDTABLE('DB2INST1', 'PRODUCTS_ON_HAND' ); CALL ASNCDC.ADDTABLE('DB2INST1', 'CUSTOMERS' ); CALL ASNCDC.ADDTABLE('DB2INST1'...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2021 at 01:29 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 22 2021 г., 22:27 -- Версия сервера: 5.7.33-log -- Версия PHP: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
<filename>blog_db.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 31 Bulan Mei 2020 pada 08.35 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `ditrabd`;
<reponame>jariolaine/APEX-Blog prompt --application/plugin_settings begin wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.6' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id=>402 ,p_default_id_offset=>0 ,p_default_owner=>'BLOG_040000' ); wwv_flow_api.create_plugi...
TRUNCATE `applicants`; TRUNCATE `applicant_position_applies`; TRUNCATE `employee_training_temps`; TRUNCATE `h_r_d_hrdcs`; TRUNCATE `h_r_d_plans`; TRUNCATE `h_r_d_plan_degrees`; TRUNCATE `h_r_d_plan_divisions`; TRUNCATE `h_r_d_plan_non_degrees`; TRUNCATE `h_r_d_plan_non_degree_areas`; TRUNCATE `h_r_d_plan_staffs`; TRUNC...
INSERT INTO pre_common_admingroup SET `admingid`='1',`alloweditpost`='1',`alloweditpoll`='1',`allowstickthread`='3',`allowmodpost`='1',`allowdelpost`='1',`allowmassprune`='1',`allowrefund`='1',`allowcensorword`='1',`allowviewip`='1',`allowbanip`='1',`allowedituser`='1',`allowmoduser`='1',`allowbanuser`='1',`allowbanvis...
# ---------------------------------------------------------------------- # # Target DBMS: MySQL 8 # # Project name: Northwind # # Author: <NAME> # # ---------------------------------------...
CREATE UNIQUE NONCLUSTERED index IDX_TAG_NAME_CTX_TYPE on tags (upper(name), contextItemName, type) GO
ALTER TABLE Customer_tbl ADD UNIQUE (username); insert into customer_tbl (firstname,lastname,username,password,emailaddress) values ('1','1','1','1','1')
<reponame>kad-simonm/dotwebstack-framework<gh_stars>0 CREATE EXTENSION postgis; CREATE SCHEMA dbeerpedia; CREATE TABLE dbeerpedia.addresses ( identifier character varying NOT NULL PRIMARY KEY, street character varying NOT NULL, city character varying NOT NULL ); INSERT INTO dbeerpedia.addresses(identifier, stre...
ALTER TABLE FELHASZNALO DROP PRIMARY KEY / ALTER TABLE FELHASZNALO ADD UNIQUE (NEV) / ALTER TABLE FELHASZNALO ADD COLUMN ID INT AUTO_INCREMENT NOT NULL / ALTER TABLE FELHASZNALO ADD PRIMARY KEY (ID) / ALTER TABLE PDF_SABLON DROP PRIMARY KEY / ALTER TABLE PDF_SABLON ADD COLUMN ID INT AUTO_INCREMENT NOT NULL / ALTE...
<filename>internal/storage/migrations/0005_profiles.down.sql drop index idx_device_activation_dev_nonce; drop index idx_device_activation_join_eui; drop index idx_device_activation_dev_eui; drop index idx_device_activation_created_at; drop table device_activation; drop index idx_device_routing_profile_id; drop ...
<reponame>jackson0720/TopskyHotelManagerSystem <<<<<<< HEAD INSERT INTO [ROOMSTATE] VALUES (0, '空房'); GO INSERT INTO [ROOMSTATE] VALUES (1, '已住'); GO INSERT INTO [ROOMSTATE] VALUES (2, '维修中'); GO INSERT INTO [ROOMSTATE] VALUES (3, '脏房'); GO INSERT INTO [ROOMSTATE] VALUES (4, '已预约'); GO ======= INSERT INTO [ROOMSTATE] V...
-- pager1.test -- -- execsql { PRAGMA journal_mode } PRAGMA journal_mode
<reponame>NGLPteam/wdp-api<gh_stars>1-10 SELECT src.entity_type AS source_type, src.entity_id AS source_id, src.system_slug AS source_slug, target.entity_type AS target_type, target.entity_id AS target_id, target.auth_path, target.system_slug, target.depth, target.title, CASE WHEN target.entity_type...
<reponame>dram/metasfresh -- 2018-02-19T11:31:37.801 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_EntityType SET ModelPackage='de.metas.order.model',Updated=TO_TIMESTAMP('2018-02-19 11:31:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_EntityType_ID=54076 ;
<gh_stars>0 -- stats.delivery_progress_reports definition CREATE DATABASE stats; USE stats; CREATE TABLE `delivery_progress_reports` ( `vendor` varchar(32) NOT NULL, `region` varchar(32) NOT NULL, `instance_id` varchar(64) NOT NULL, `bidder_code` varchar(32) NOT NULL, `line_item_id` varchar(64) NOT NULL, `...
-- Init d'une table façon TAPPLICATIONINFO - ORACLE 12c DROP TABLE "TDEMO_VERSION"; DROP TABLE "TAPPLICATIONINFO"; CREATE TABLE "TAPPLICATIONINFO" ( "ID" VARCHAR2(25 BYTE), "MODEAPPLICATION" NUMBER(2,0), "ACTEURCREATION" VARCHAR2(50 BYTE), "DATEMODIFICATION" TIMESTAMP (3), "ACTEURMODIFICATION" VARC...
<reponame>patrickfischer1/WebAPI alter table ${ohdsiSchema}.sec_permission add for_role_id int; INSERT INTO ${ohdsiSchema}.sec_permission (id, value, for_role_id) SELECT nextval('${ohdsiSchema}.sec_permission_id_seq'), REPLACE(CAST(new_perms.val AS VARCHAR(255)), '%s', REPLACE(REPLACE(value, 'source:', ''), ':access...
DROP VIEW IF EXISTS view_persediaan_barang2_perindagkop; CREATE VIEW view_persediaan_barang2_perindagkop AS SELECT *, sum(jumlah) OVER (PARTITION BY kode_barang ORDER BY serial, tanggal, id_persediaan) as pra_saldo FROM view_persediaan_barang_perindagkop WHERE 1 = 1 AND id_skpd = 16; GRANT ALL PRIVILEGES ON vi...
<filename>db_mysql/rbac_db.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.15.10 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2017-07-20 11:15:54 -- 服务器版本: 5.6.36-log -- PHP Version: 7.0.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
<filename>modules/sql/src/main/resources/db/migration/V020__Gmos_Nod_And_Shuffle.sql -- -- Adds support for GMOS nod and shuffle configuration. -- CREATE TABLE e_gmos_e_offsetting( id identifier PRIMARY KEY, description character varying(33) NOT NULL, to_boolean boolean N...
<reponame>javiercatalancas/landingWeb<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 28-01-2022 a las 19:21:23 -- Versión del servidor: 8.0.22 -- Versión de PHP: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2020 at 08:04 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = ""; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
Create DataBase Propietarios go use Propietarios go Create Table Piso (DNI char(9) UNIQUE CHECK (DNI LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][A-Z]'), nombre varchar(20), apellidos varchar(50), direccion varchar(50), CP char(5) CHECK (CP LIKE '[0-9][0-9][0-9][0-9][0-9]'), localidad varchar(50), provin...
<gh_stars>0 CREATE DATABASE teste;
<reponame>septiarrobert/uts<filename>mahasiswa.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 11, 2019 at 03:33 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.1.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSA...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Waktu pembuatan: 09 Jun 2021 pada 05.48 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
<gh_stars>1-10 CREATE TABLE [dbo].[Repository] ( [RepositoryId] INT IDENTITY (1, 1) NOT NULL, [BaseRepositoryId] INT NULL, [CreatedBy] INT NOT NULL, [ModifiedBy] INT NULL, [Name] VARCHAR (1...
<filename>students.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 08, 2019 at 07:18 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 09, 2019 at 02:29 PM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE SCHEMA `estacio` ; CREATE TABLE `estacio`.`usuarios` ( `id` INT NOT NULL AUTO_INCREMENT, `user` VARCHAR(20) NULL, `password` VARCHAR(6) NULL, PRIMARY KEY (`id`)); SELECT * FROM estacio.usuarios; INSERT INTO `estacio`.`usuarios` (`user`, `password`) VALUES ('adm', '<PASSWORD>'); INSERT INTO `estacio`.`...
SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /home/courses/w/c/wchen/admin/WCHEN/scripts/CreateDB.log append startup nomount pfile="/home/courses/w/c/wchen/admin/WCHEN/scripts/init.ora"; CREATE DATABASE "WCHEN" MAXINSTANCES 8 MAXLOGHISTORY 1 MAXLOGFILES 16 MAXLOGMEMBERS 3 MAXDATAFILES 50 DAT...
<gh_stars>1-10 -- This file should undo anything in `up.sql` DROP INDEX IF EXISTS groups_name; DROP INDEX IF EXISTS groups_status; DROP TABLE groups; DROP INDEX IF EXISTS groups_uid;
-- file:plpgsql.sql ln:3814 expect:true SELECT nonsimple_expr_test()
/* Shreds/Extracts the locking XML generated by dbo.list_transactions. DECLARE @xml xml = N' <locked_resources> <resource resource_type="DATABASE" owning_session_id="63" database="tempdb" resource_subtype="BULKOP_BACKUP_LOG"> <resource_identifier>DATABASE: 2:0</resource_identifier> <transacti...
# Write your MySQL query statement below select c.class from courses c group by c.class having count(distinct c.student) >= 5
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: <NAME> 2016 à 20:21 -- Version du serveur: 5.5.24-log -- Version de PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<filename>dev/benchmarking/ddl/1_01_table_public_cpu.sql<gh_stars>1-10 /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to ...
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: paper_haxxj_com -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
<reponame>yelite/v2<filename>database/sql/schema_version_32.sql alter table users add column entries_per_page int default 100;