sql
stringlengths
6
1.05M
<reponame>dougwettlaufer/cassandra-data-apis // A sample schema containing data types that are supported // Drop and recreate the keyspace DROP KEYSPACE IF EXISTS datatypes; CREATE KEYSPACE datatypes WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; use datatypes; CREATE TABLE scalars ( ...
-- Put upgrade SQL here -- Set /app_config/api_version to v2.1 UPDATE config SET config = jsonb_set(config, '{app_config,api_version}', '"v2.1"') WHERE jsonb_extract_path(config, 'version') = '"2"'; -- Set /api_version to v2.1 UPDATE config SET config = jsonb_set(config, '{api_version}', '"v2.1"') WHERE jsonb_extract_...
<filename>lhc_web/doc/update_db/update_58.sql UPDATE `lh_chat_config` SET `identifier` = 'sync_sound_settings', `value` = 'a:15:{i:0;b:0;s:12:\"repeat_sound\";i:1;s:18:\"repeat_sound_delay\";i:5;s:10:\"show_alert\";b:0;s:22:\"new_chat_sound_enabled\";b:1;s:31:\"new_message_sound_admin_enabled\";b:1;s:30:\"new_message...
<filename>api/src/test/resources/aousynthetic/ingredient-entities-related-to-a-brand.sql SELECT ingredient_alias.concept_id AS concept_id, ingredient_alias.concept_name AS concept_name, ingredient_alias.vocabulary_id AS vocabulary_id, (SELECT vocabulary.vocabulary_name FROM `broad-tanagra-dev.aou_synthetic_SR2019q4r4`....
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 23, 2017 at 09:17 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
-- @testpoint:opengauss关键字value(非保留),作为角色名 --关键字不带引号-成功 drop role if exists value; create role value with password '<PASSWORD>' valid until '2020-12-31'; drop role value; --关键字带双引号-成功 drop role if exists "value"; create role "value" with password '<PASSWORD>' valid until '2020-12-31'; drop role "value"; --关键字带单引号-...
<gh_stars>100-1000 --cleanup DROP FOREIGN TABLE bmsql_warehouse; DROP FOREIGN TABLE bmsql_district; SET default_tablespace = ''; SET default_with_oids = false; CREATE FOREIGN TABLE bmsql_warehouse ( w_id integer not null, w_ytd decimal(12,2), w_tax decimal(4,4), w_name varchar(10), ...
<gh_stars>0 /*shop_product*/ INSERT INTO `__SC_DB_PREFIX__shop_product` (`id`, `sku`, `alias`, `image`, `brand_id`, `supplier_id`, `price`, `cost`, `stock`, `status`, `kind`, `tax_id`, `date_available`, `sold`, `minimum`) VALUES (1,'ABCZZ','demo-alias-name-product-1','/data/product/product-1.png','1','1','15000','1000...
-- -- Version 1.0 of the Tables Creation Script - by Mor. -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNE...
<reponame>LearnersGuild/timeoff DROP TABLE requests; CREATE TABLE timeoff_requests( id serial primary key, username varchar(100) NOT NULL, type_of_timeoff REASON NOT NULL, date_off DATE NOT NULL, time_start TIME NOT NULL, time_end TIME NOT NULL );
-- Revert ss2:table-output from pg -- requires: schema BEGIN; DROP TABLE IF EXISTS <%=schema%>.output CASCADE; COMMIT;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 08, 2020 at 06:34 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 -- MariaDB dump 10.19 Distrib 10.4.22-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: inventariocalidad -- ------------------------------------------------------ -- Server version 10.4.22-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-04-2021 a las 06:19:04 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
-- MySQL Script generated by MySQL Workbench -- Tue Aug 8 16:12:02 2017 -- 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='TR...
DROP TABLE "public"."user_email";
<filename>database/Fructose.Database/dbo/Tables/PersonAddress.sql CREATE TABLE [dbo].[PersonAddress] ( [ID] BIGINT IDENTITY (1, 1) NOT NULL, [PersonID] BIGINT NOT NULL, [AddressID] BIGINT NOT NULL, [IsPhysical] BIT CONSTRAINT [DF__PersonAddress__IsPhysi...
<gh_stars>0 drop database IF EXISTS test; CREATE DATABASE test; use test; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL, `name` varchar(255) DEFAULT "", `age` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `user` VALUES (1, '李四', 11); INSERT I...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 30, 2021 at 08:01 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- Auto-generated at Sun, 19 Jul 2020 21:54:23 UTC -- Please do not change the name attributes -- name: up CREATE TABLE IF NOT EXISTS locks ( name CHARACTER VARYING(255) PRIMARY KEY, record_version_number BIGINT, data BYTEA, owner CHARACTER VARYING(255) ); -- name: down DROP TABLE IF EXISTS locks;
/* Navicat MySQL Data Transfer Source Server : MYSQL57 Source Server Version : 50725 Source Host : localhost:3306 Source Database : com.kk.bookstore.bookstore Target Server Type : MYSQL Target Server Version : 50725 File Encoding : 65001 Date: 2020-04-11 20:47:19 */ SET FOREIGN_KE...
<filename>SQL/TrainModelRealtimeScoring.sql -- Stored Procedure to train a Random Forest (rxDForest implementation) or Boosted Trees (rxFastTrees implementation). -- @model_name: specify 'RF' to train a Random Forest, 'GBT' for Boosted Trees, 'FT' for Fast Trees, or 'NN' for Neural Network. -- @dataset_name: specify ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2021 at 12:02 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- MySQL dump 10.16 Distrib 10.1.29-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: suitup -- ------------------------------------------------------ -- Server version 10.4.4-MariaDB-1:10.4.4+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
create database ssrs_deploy_example; go use ssrs_deploy_example; go create table reasonsToDislikeSsrs (id int primary key identity(1,1), reason nvarchar(500)); go set nocount on; insert into reasonsToDislikeSsrs (reason) values ('for the sake of your sanity'); go 100 -- repeat the above sql 100 times
-- file:arrays.sql ln:536 expect:true select string_to_array('', '|')
--2.1 select title from titles where price = ( select max(price) from titles )
<gh_stars>1000+ {{ config(schema="test_normalization", tags=["nested"]) }} -- Final base SQL model select _airbyte_unnest_alias_hashid, ab_id, owner, _airbyte_emitted_at, _airbyte_children_hashid from {{ ref('unnest_alias_children_ab3') }} -- children at unnest_alias/children from {{ ref('unnest_ali...
delete from student_material_subject; delete from student_material; delete from subject; delete from student; delete from group_;
<reponame>Astropilot/appsy_project<gh_stars>0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; SET FOREIGN_KEY_CHECKS=0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101...
<reponame>DataPathAnalytics/KR_Developing-a-New-Audit-Methodology-for-Electronic-Public-Tenders-back --liquibase formatted sql --changeset andrey_pylypchuk:1 splitStatements:false runOnChange:true runAlways:true CREATE OR REPLACE FUNCTION update_krai_11() RETURNS VOID AS $$ DECLARE _tender RECORD; ...
<reponame>levkovalenko/DB-designed<gh_stars>1-10 --Запроос 1 --Выбрать название судна, дату отправления и прибытия --с условием, что это судно в заданную дату (_DATE_) --находится в круизе в порядке ввозрастания --дат отправления и прибытия. SELECT boat_name AS boat_name, date_depature AS date_depature, date...
IF NOT EXISTS (SELECT * FROM sysobjects WHERE id = OBJECT_ID(N'dbo.User') AND type = 'U') BEGIN CREATE TABLE dbo.[User] ( Id int identity(1,1) NOT NULL, EmailAddress varchar(256) NOT NULL, PasswordHash char(86) NOT NULL, PasswordSalt char(5) NOT NULL, Comment text NULL, IsApproved bit NOT NULL, Created...
<filename>process/building_drug_details_table_from_rxnorm.sql * Build the branded drug tables */ drop table if exists rxnorm_prescribe.rxnorm_sbd1; create table rxnorm_prescribe.rxnorm_sbd1 as select * from ( select r.RXCUI as SBD_RXCUI, r.RXAUI as SBD_RXAUI, r.STR as semantic_branded_name, rn1.atv as rxn_avail...
ALTER TABLE `pinning_service`.`pin_object` ADD COLUMN `retry_times` int NOT NULL DEFAULT 0 COMMENT 'retry order times' AFTER `deleted`;
/* SQL script to initialize of database for Resolver in version 4.3 */ /* Drop Indexes */ DROP INDEX IF EXISTS DIGITALDOCUMENT_ENTITYID; DROP INDEX IF EXISTS DIGITALINSTANCE_DIGDOCID; DROP INDEX IF EXISTS LIBRARY_REGISTRARID; DROP INDEX IF EXISTS IEIDENTIFIER_VALUE; DROP INDEX IF EXISTS URNNBN_REGISTRARCODEDOCUMENT...
SELECT COUNT(y) FROM zipf WHERE x BETWEEN 1 AND 1.1 SELECT COUNT(y) FROM zipf WHERE x BETWEEN 1.25 AND 1.35 SELECT COUNT(y) FROM zipf WHERE x BETWEEN 1.5 AND 1.6 SELECT COUNT(y) FROM zipf WHERE x BETWEEN 1.75 AND 1.85 SELECT COUNT(y) FROM zipf WHERE x BETWEEN 2 AND 2.1 SELECT COUNT(y) FROM zipf WHERE x BETWEEN 2...
<reponame>opengauss-mirror/Yat -- @testpoint: select语句参数值和列名相同,into的应该是参数值,而不是表的数据 --创建测试表 drop table if exists testauto; create table testauto(id int primary key,c_varchar varchar(20),rootid date); insert into testauto(id,c_varchar,rootid) values (100,'agjdfojpjpwqi&*22i',to_date('2020-11-24 13:14:15', 'yyyy-mm-dd hh...
/* 1. Record a vaccination for a patient. You should first ask the person for their OHIP number. If the patient doesn't exist in the database, you will need to prompt for the patient information (don't worry about spouse) and add the patient first before asking for vaccination data. - Once the patient is in the ...
/* Warnings: - Added the required column `updated_at` to the `posts` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "posts" ADD COLUMN "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, ADD COLUMN "updated_at" TIMESTAMP(3) NOT NULL;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 16-12-2021 a las 14:37:31 -- Versión del servidor: 8.0.26 -- Versión de PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<gh_stars>0 create table orders ( id serial primary key, start_date timestamp without time zone, end_date timestamp without time zone ); create table traffic ( id serial primary key, id_order integer not null references orders on delete cascade, id_prev_traffic integer references traff...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1:3306 -- 產生時間: 2018-01-18 18:57:15 -- 伺服器版本: 5.7.19 -- PHP 版本: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
<reponame>cobbertine/NAPUFIT CREATE TABLE `transfer_details` ( `unique_conn_id` varchar(45) NOT NULL DEFAULT '', `uploader_address` varchar(45) NOT NULL DEFAULT '', `downloader_address` varchar(45) NOT NULL DEFAULT '', `date_added` datetime NOT NULL, `is_ready` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (...
<filename>sql/State/StoredProcedures/SP_InsertState/SP_InsertState.create.sql -- Create a new stored procedure called 'SP_InsertState' in schema 'dbo' -- Drop the stored procedure if it already exists IF EXISTS ( SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE SPECIFIC_SCHEMA = N'dbo' AND SPECIFIC_NAME = N'SP_Inser...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : esadmin Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-02-01 12:55:28 */ SET FOREIGN_KEY_CHECKS=0; -- -...
<reponame>tushartushar/dbSmellsData CREATE TABLE featureinfo(id INTEGER PRIMARY KEY, layer, featureid)
<filename>db/blacklist_hunt.sql drop table if exists blacklist_hunt; create table blacklist_hunt ( id int primary key auto_increment, Symbol varchar(16) NOT NULL, Reason varchar(256) NOT NULL, Time datetime NOT NULL ) comment 'blacklist_hunt table';
-- move old client metrics table ALTER TABLE client_metrics RENAME TO _client_metrics_old; DROP INDEX idx_client_metrics_Address; -- create new table for storing client names CREATE TABLE client_names ( Address TEXT PRIMARY KEY DEFAULT '', ClientName TEXT DEFAULT '' ); CREATE INDEX idx_client_names_Address ON ...
-- indexedby.test -- -- execsql { -- CREATE TABLE t1(a, b); -- CREATE INDEX i1 ON t1(a); -- CREATE INDEX i2 ON t1(b); -- -- CREATE TABLE t2(c, d); -- CREATE INDEX i3 ON t2(c); -- CREATE INDEX i4 ON t2(d); -- -- CREATE TABLE t3(e PRIMARY KEY, f); -- -- CREATE VIEW v1 AS SELECT * FROM ...
<gh_stars>100-1000 -- crash8.test -- -- execsql { PRAGMA integrity_check } PRAGMA integrity_check
----------------------------------------------------- ----------------------------------------------------- --- DELITO --- Catálogo de interoperabilidad --- http://sigejupe2.pjedomex.gob.mx/sigejupe/catalogos/delitos.json --- ID homologados de acuerdo a TSJ (21/12/17) ---------------------------------------------------...
<reponame>sandeepkunichi/swiftcode<filename>conf/evolutions/default/1.sql # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table app_user ( id bigint auto_increment not null, email varchar...
drop user 'povi'@'localhost'; create user 'povi'@'localhost' identified by 'some_pass'; grant all privileges on *.* to 'povi'@'localhost' with grant option; set password for 'povi'@'localhost' = password('<PASSWORD>'); create database povi_schema;
<filename>macros/base/heap_sessions.sql {% macro heap_sessions() %} {{ adapter_macro('heap.heap_sessions') }} {% endmacro %} {% macro default__heap_sessions() %} {% set window_clause = "over (partition by session_id order by session_start_time rows between unbounded preceding and un...
{%- macro log_to_latest_nested(table, key, sort_key, nested_attributes, attribute_key) -%} SELECT deduped.* EXCEPT(row_num) FROM ( SELECT _inner.*, ROW_NUMBER() OVER (PARTITION BY {{ key }} ORDER BY {{ sort_key }} DESC, (SELECT a.value FROM UNNEST({{ nested_attributes }}) AS a WHERE a.key = ...
CREATE INDEX "IX_FLAT_CAT_NUM_SUFFIX_UP" ON "FLAT" (UPPER("CAT_NUM_SUFFIX"))
<reponame>Pennsieve/pennsieve-api ALTER TABLE user_invite ADD COLUMN first_name VARCHAR(255) DEFAULT ''; ALTER TABLE user_invite ADD COLUMN last_name VARCHAR(255) DEFAULT '';
<gh_stars>10-100 CREATE VIEW VIEW79 (C1) AS SELECT 1 FROM TABLE140 UNION SELECT 1 FROM TABLE229 UNION SELECT 1 FROM TABLE83 UNION SELECT 1 FROM VIEW60 UNION SELECT 1 FROM VIEW70 UNION SELECT 1 FROM VIEW8 GO
<reponame>adrianmahjour/db2-samples<filename>db_library/views/db_constraint_ddl.sql --# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * Generates DDL for Primary and Unique Constraints * * See db_foreign_key_ddl.sql for FK DDL */ CREATE OR REPLACE VIEW DB_CONSTRAINT_DDL AS -...
-- Adminer 4.3.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `designations`; CREATE TABLE `designations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `designation_name` varchar(100) NOT NULL, `status` int(11) NOT NULL...
<gh_stars>1-10 CREATE TABLE `wiki_document_products` ( `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `document_id` integer NOT NULL, `product_id` integer NOT NULL, UNIQUE (`document_id`, `product_id`) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; ; ALTER TABLE `wiki_document_products` ...
/* schema for gaia dr2 wd candidate list https://warwick.ac.uk/fac/sci/physics/research/astro/research/catalogues/ WDJ000000.36+490633.05,0.539516,0,Gaia DR2 393458006914856832,393458006914856832,0.0014773967973118027,0.7075813322070995,49.10918286363004,0.6641273352805627,2.476942395997654,1.2176430965201257,-4.68...
<filename>openGaussBase/testcase/KEYWORDS/Connection/Opengauss_Function_Keyword_Connection_Case0028.sql -- @testpoint: opengauss关键字connection(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists connection_test; create table connection_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists connection; cre...
-- start_ignore drop table if exists testAnalyze; drop table if exists testA; drop table if exists tmpa; drop table if exists tmpb; drop function test(); -- end_ignore -- test analyze debug create table testAnalyze(id int); insert into testAnalyze select generate_series(1, 10); set debug_udf_plan = true; analyze testA...
CREATE OR REPLACE FUNCTION Apertura_Cuenta(VARCHAR, VARCHAR, VARCHAR, VARCHAR) RETURNS INT LANGUAGE plpgsql AS $$ DECLARE cantidad int; ultimo int; BEGIN IF (EXISTS (SELECT * FROM Usuario WHERE Usuario.documento_id = $1)) THEN SELECT COUNT(*) FROM Cuenta into cantidad WHERE Cuenta.documento_id_fk = $1; IF ( ca...
<filename>PythonServer/SQL/sitedistance.sql -- -- 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; SET search_path = public, pg_catalog; SET default_ta...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 16, 2017 at 10:39 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `mr_form` ( `id` int(11) unsigned NOT NULL, `title` varchar(200) NOT NULL, `kode` varchar(20) NOT NULL, `versi` varchar(10) NOT NULL, `json_form` longtext NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; ALTER TABLE `mr_form` ADD PRIMARY KEY (`id`), ADD KE...
INSERT INTO `OPERATION_TYPE` (`operation_type_id`, `description`, `is_payment`) VALUES (1, 'COMPRA A VISTA', 0); INSERT INTO `OPERATION_TYPE` (`operation_type_id`, `description`, `is_payment`) VALUES (2, 'COMPRA PARCELADA', 0); INSERT INTO `OPERATION_TYPE` (`operation_type_id`, `description`, `is_payment`) VALUES (3,...
<filename>storage/database/geonames/countries/na.sql -- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 ...
CREATE TABLE "DBADMIN"."CRESCIMENTO_DATABASE" ("TIME" DATE, "TABLESPACE_NAME" VARCHAR2(30), "DATAFILE_NAME" VARCHAR2(257), "BYTES" NUMBER, "FREE_BYTES" NUMBER) TABLESPACE "USERS" PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 256K NEXT 256K MINEXTENTS 1 MAXEXTENTS 21474836...
alter table dbo.[products_custom_data_sparse] ADD custom_a INT SPARSE NULL GO alter table dbo.[products_custom_data_sparse] ADD custom_b DATETIME2 SPARSE NULL GO alter table dbo.[products_custom_data_sparse] ADD custom_c VARCHAR(100) SPARSE NULL GO
drop table if exists aux.kid_hcv_addresses; create table aux.kid_hcv_addresses as ( select kid_id, address_id, greatest(min(date_admitted), min(k.date_of_birth)) as date from input.hcv join aux.kid_hcvs using (hcv_id) join aux.kids k using (kid_id) -- TODO: use actual geocoder join aux...
/* Generate the following two result sets: Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASingerName(S). Query the numb...
<gh_stars>1-10 create schema if not exists ct_petstore; create table if not exists ct_petstore.pet ( pet_id uuid not null primary key default gen_random_uuid(), create_time timestamp with time zone not null default now(), update_time timestamp with time zone not null default now(), name text not null, bio te...
-- phpMyAdmin SQL Dump -- version 4.0.9deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 05, 2014 at 09:49 AM -- Server version: 5.5.40-MariaDB-1~wheezy -- PHP Version: 5.4.4-14+deb7u14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<reponame>aliostad/deep-learning-lang-detection<filename>data/train/sql/18c6ed833605ed6f77eefa82b40724d420ab1e2c2015-02-03.sql insert into acc_permissioncategory values('Application','应用管理',1) go insert into acc_permissioncategory values('MasterData','基础数据',1) go insert into ACC_PermissionCategory values('Supplier','供应...
<reponame>tanel/wardrobe-organizer<gh_stars>1-10 create table item_images( id uuid not null primary key, item_id uuid not null references items(id) on delete restrict, user_id uuid not null references users(id) on delete restrict, created_at timestamp not null, deleted_at timestamp ); create index index_item_imag...
<gh_stars>0 -- 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]....
<reponame>SAP-samples/hana-apl-apis-runtimes<filename>sql/direct/apl_samples/data_profiling/apl_profile_data.sql -- ================================================================ -- APL_AREA, PROFILE_DATA -- -- Assumption 1: the users & privileges have been created & granted (see apl_admin.sql). -- Assumption 2: the ...
<reponame>DanZDatical/liquibase-toolbox -- liquibase formatted sql --changeset SteveZ:45555-createTable_TABLE200 context:"UAT,QA,SIT" labels:Jira-166,feature1 CREATE TABLE TABLE200 ( JOB_ID VARCHAR2(10 BYTE) NOT NULL, MIN_SALARY NUMBER(6, 0), MAX_SALARY NUMBER(6, 0), CONSTRAINT JOB_ID_PK200 PRIMARY KEY (J...
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for BankAccount -- ---------------------------- CREATE TABLE bank_account ( account_number varchar(60) NOT NULL COMMENT '帳號', balance INT NOT NULL COMMENT '餘額', customer varchar(60) NOT NULL COMMENT '客戶', created_by varchar(60) NOT NU...
-- drop table constraint alter table fooby drop constraint dooby cascade
<filename>metrics/shared/hist_pr_companies.sql select sub.repo_group, sub.company, count(distinct sub.id) as prs from ( select 'hpr_comps,' || coalesce(ecf.repo_group, r.repo_group) as repo_group, a.company_name as company, pr.id from gha_repos r, gha_actors_affiliations a, gha_pull_reques...
/******************************************************************************** file-centric-snapshot-mrcm-atribute-range-valid-referencedComponentId Assertion: ReferencedComponentId value refers to valid concept identifier in MRCM ATTRIBUTE RANGE snapshot. *****************************************************...
SET allow_introspection_functions = 1; SELECT demangle('_ZNKSt3__18functionIFvvEEclEv');
<filename>dspace-api/src/main/resources/org/dspace/storage/rdbms/xmlworkflow/postgres/data_workflow_migration.sql -- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -- -- http://www.dspace.or...
-- @testpoint: opengauss关键字row_count(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists row_count; create synonym row_count for explain_test; insert into row_count values (1,'ada'),(2, 'bob'); update row_count set ...
<gh_stars>0 CREATE TABLE camddmw.transaction_block_dim ( transaction_block_id numeric(10,0) NOT NULL, transaction_id numeric(10,0) NOT NULL, start_block numeric(10,0) DEFAULT NULL::numeric, end_block numeric(10,0) DEFAULT NULL::numeric, originating_acct_number character varying(12) COLLATE pg_catalo...
<reponame>hanschrists/hannn.github.io<filename>kp_pertanian.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Waktu pembuatan: 08 Jun 2021 pada 10.35 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; S...
<filename>database/initsql/payment_plan_admin_books.sql INSERT INTO payment_plan_ranto.admin_books (code, begin, end, title, url, memo, sync_at, created_at, updated_at) VALUES ('ranto', '2018-02-01', null, '蓝托', 'http://192.168.2.156', ' ', '2018-02-03 06:05:07', '2018-02-03 14:04:56', null); INSERT INTO payment_plan_r...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 28, 2021 at 09:05 PM -- Server version: 8.0.23-0ubuntu0.20.04.1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
<reponame>adminiitbact/cov2-graphql alter table "public"."facility" drop constraint "facility_institution_type_fkey";
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateSiteMap`() BEGIN /* MIT License Copyright (c) 2020 CNY Support, LLC https://www.terrys-service.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
use db2019; drop table IF EXISTS accessLogs; drop table IF EXISTS accountslogs; drop table IF EXISTS Signatures; drop table IF EXISTS Transactions; drop table IF EXISTS Payment; drop table IF EXISTS Bill; drop table IF EXISTS Role; drop table IF EXISTS Accounts; drop table IF EXISTS Phone; drop table IF EXISTS Address...
drop view if exists detail_visit_call_report; create view detail_visit_call_report as select perusahaan.nama_perusahaan, user.nama_user, visit_call_report.* from visit_call_report inner join perusahaan on perusahaan.id_perusahaan = visit_call_report.id_perusahaan inner join user on user.id_user = visit_call_report.id_...
/*Contract Headers*/ INSERT INTO CSCHD_CONTRACT_HEADERS (CSCHD_PK,TERMINAL,REGION,ASSET_NAME,ASSET_OWNER,DEAL_NAME,DEAL_COUNTER_PARTY,BP_CONTRACT_NUM,EXTERNAL_CONTRACT_NUM,OTHER_REFERENCE_NUM,DESCRIPTION,BP_CONTRACTING_ENTITY,LEASE_TYPE,LEASE_PERCENTAGE,STATUS,CONTRACT_SIGN_DATE,CONTRACT_START_DATE,CONTRACT_END_DATE,CO...
<filename>social.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 26, 2019 at 10:43 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
<filename>Tabelas/Insert.sql -- Referencia ao banco de dados USE ClienteDB GO -- Inserindo dados na tabela INSERT INTO Cliente (Id, Nome, Telefone, Sexo) VALUES (1, "Rondinle", "199919191", M), (2, "Beatriz", "19199191919", F)