sql
stringlengths
6
1.05M
<filename>drop_tables.sql SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS Advisor; DROP TABLE IF EXISTS Class; DROP TABLE IF EXISTS Course; DROP TABLE IF EXISTS Department; DROP TABLE IF EXISTS Grade; DROP TABLE IF EXISTS Instructor; DROP TABLE IF EXISTS InstructorDepartment; DROP TABLE IF EXISTS Prerequisite; DROP T...
<reponame>SIE-Solutions/APEXFramework set define off; prompt Table SIE_01_ATRIB_MODL_COMNC; create table sie_01_atrib_modl_comnc ( seqnc number (10) not null, code varchar2 (23 byte) not null, nom varchar2 (6...
-- -- CzechIdM 11 Flyway script -- BCV solutions s.r.o. -- -- addorder for form definitions ALTER TABLE idm_form_definition ADD seq smallint NULL; ALTER TABLE idm_form_definition_a ADD seq smallint NULL; ALTER TABLE idm_form_definition_a ADD seq_m bit NULL;
<filename>HackerRank/SQL/Revising Aggregations - The Count Function.sql<gh_stars>1-10 select count(*) from city where population > 100000;
<reponame>mezidia/booking-project USE [Hotels_DB] GO /****** Object: StoredProcedure [dbo].[GetHotel] Script Date: 16.12.2020 16:59:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: ...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 09 Nis 2017, 12:54:52 -- Sunucu sürümü: 5.6.17 -- PHP Sürümü: 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 */; /...
<reponame>NowinskiK/ssdt-training CREATE TABLE [dbo].[PostLinks] ( [Id] INT NOT NULL, [CreationDate] DATETIME NOT NULL, [PostId] INT NOT NULL, [RelatedPostId] INT NOT NULL, [LinkTypeId] INT NOT NULL, CONSTRAINT [PK_PostLinks__Id] PRIMARY KEY CLUSTERED (...
<reponame>Raheeqalaa96/final_project<filename>project.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: mysql5040.site4now.net -- Generation Time: Dec 26, 2020 at 12:32 PM -- Server version: 5.6.46-log -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION;...
<gh_stars>0 INSERT INTO departments (dept_name) VALUES ('management'), ('it'), ('administration'), ('mortgages'), ('real estate'), ('leasing'); INSERT INTO roles (title, salary, dept_id) VALUES ('president', 100000, 1), ('vice president', 80000, 1), ('it specialist', 70000, 2), ...
<filename>src/main/resources/hive.information_schema/CONSTRAINT_COLUMN_USAGE.sql SELECT NULLIF(1, 1) AS CONSTRAINT_CATALOG, STRIP(SYSCAT.KEYCOLUSE.TABSCHEMA) AS CONSTRAINT_SCHEMA, STRIP(SYSCAT.KEYCOLUSE.CONSTNAME) AS CONSTRAINT_NAME, NULLIF(1, 1) AS TABLE_CATALOG, STRIP(SYSCAT.KEYCOLUSE.TABSCHEMA) AS TAB...
<reponame>Reto7/javaPlayCrud<gh_stars>0 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table product_jpa ( id serial not null, ean varchar(255), name varchar...
SELECT "username", "education" FROM "users" WHERE "education" = { "school_name": 'Big Data University', "graduation_year": 2003 };
select id,nombre,fecha_creacion from usuario
/* Copyright © 2012 - 2021 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
-- Demonstration 14 - Scalar Function -- Step 1 - Open a new query window against the tempdb database. USE tempdb; GO -- Step 2 - Create a function -- Note that SQL Server 2012 now includes a new function -- for calculating the end of the current month (EOMONTH) CREATE FUNCTION dbo.EndOfPreviousMo...
<reponame>Eomm/covid-green-backend-api ALTER TABLE enx_onboarding_requests ALTER COLUMN event_date SET DATA TYPE TIMESTAMPTZ, ADD UNIQUE (event_date);
-- MySQL Script generated by MySQL Workbench -- Tue Jul 25 11:29:06 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...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 21, 2020 lúc 04:37 PM -- Phiên bản máy phục vụ: 10.4.8-MariaDB -- Phiên bản PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<gh_stars>0 CREATE TABLE books( id INT AUTO_INCREMENT PRIMARY KEY, book_series VARCHAR(100), book_name VARCHAR(100), book_order INT );
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 31 Des 2018 pada 07.52 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>AhmedDuraid/ADH-Medical-System -- ============================================= -- Author: dbo -- Create date: 2020-10-17 -- Description: Delete progress // admin -- ============================================= CREATE PROCEDURE spPatientProgress_DeleteByID @ProgressId nvarchar(128) AS BEGIN SET NOCOUNT ...
<filename>movies.sql -- Drop the existing tables DROP TABLE ROLURI CASCADE CONSTRAINTS; DROP TABLE MOVIES_AWARDS CASCADE CONSTRAINTS; DROP TABLE MOVIE_RATING CASCADE CONSTRAINTS; DROP TABLE MOVIE_FORMAT CASCADE CONSTRAINTS; DROP TABLE PERSONS_AWARDS CASCADE CONSTRAINTS; DROP TABLE GENRE CASCADE CONSTRAINTS; DROP TABLE...
<reponame>313183373/reddit INSERT INTO link (id, creation_date, last_modified_date, created_by, last_modified_by, title, url) VALUES (1, NOW(), NOW(), null, null,'Getting Started With Spring Boot 2', 'https://therealdanvega.com/spring-boot-2'); INSERT INTO comment(id, created_by, last_modified_by, creation_date, last_...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 03, 2015 at 09:59 AM -- Server version: 5.6.24 -- PHP Version: 5.5.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
SET DEFINE OFF; ALTER TABLE AFW_25_ENGIN_VERSN_PUBLC ADD ( CONSTRAINT AFW_25_ENGIN_VERSN_PUBLC_UK1 UNIQUE (REF_VERSN_PUBLC, REF_ENGIN, DNR_REF_PRODT) ENABLE VALIDATE) /
<reponame>jakefeasel/sqlfiddle2 USE [master] GO /****** Object: StoredProcedure [dbo].[clearDBUsers] Script Date: 8/25/2012 8:39:29 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[clearDBUsers] @dbName SYSNAME AS BEGIN SET NOCOUNT ON DECLARE @spid INT, ...
update eg_wf_states set sla=(createddate + interval '1 day' * (select value from eg_appconfig_values where key_id =(select id from eg_appconfig where key_name ='SLAFORMARRIAGEREGISTRATION')):: Integer) where id in (select state_id from egmrs_registration); update eg_wf_state_history set sla=(createddate + interval '...
<filename>store/api/lineitem_add.sql -- person_id, item_id, quantity create or replace function store.lineitem_add(integer, integer, integer, out status smallint, out js json) as $$ declare cart_id integer; line_id integer; e6 text; e7 text; e8 text; e9 text; begin select id into cart_id from store.cart_get_id($1)...
<reponame>openmsupply/application-manager-server -- FUNCTION to auto-add application_id to review CREATE OR REPLACE FUNCTION public.review_application_id (review_assignment_id int) RETURNS int AS $$ SELECT application_id FROM review_assignment WHERE id = $1; $$ LANGUAGE SQL ...
<gh_stars>1-10 -- -- Version: Each entry records a health event observed on a day in time. Supports Azure SQL Server. -- URL: http://ostlog.org/schema/Health_log.json -- CREATE TABLE [dbo].[Health log] ( [id] INT IDENTITY (1,1) NOT NULL, [meta_id] INT NULL, [observation_date_id] INT DEFAULT CONVERT (char(8), GET...
SELECT prisons.name AS prison_name, prisons.id AS prison_id, (v.created_at::TIMESTAMPTZ AT TIME ZONE 'Europe/London')::date AS date, PERCENTILE_DISC(ARRAY[0.95, 0.5]) WITHIN GROUP (ORDER BY ROUN...
<filename>src/SFA.DAS.AssessorService.Database/Tables/OrganisationStandardDeliveryArea.sql  CREATE TABLE [OrganisationStandardDeliveryArea] ( [Id] [int] IDENTITY (1,1) PRIMARY KEY, [OrganisationStandardId] INT NOT NULL, [DeliveryAreaId] [int] NOT NULL, [Comments] [NVARCHAR] (500) NULL, [Status] [nvarchar](10) NO...
<filename>src/test/resources/sql/explain/c47f3c58.sql<gh_stars>10-100 -- file:rowsecurity.sql ln:293 expect:true EXPLAIN (COSTS OFF) SELECT * FROM t1 WHERE f_leak(b) FOR SHARE
<reponame>chengwenxin/sqlite-parser -- original: boundary1.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test SELECT a FROM t1 WHERE rowid >= -36028797018963968 ORDER BY rowid ;SELECT a FROM t1 WHERE rowid >= -36028797018963968 ORDER BY rowid DESC ;SELECT a FROM t1 WHERE rowid >= -36028797018963968 OR...
<gh_stars>1-10 -- count tweets by hour create table tweet_count_hour ( user_id varchar(128) not null, hour int unsigned default 0, total_count float default 0, primary key(user_id,hour) )engine=innodb default charset=utf8; ALTER TABLE tweet_count_hour ADD INDEX index_tweetcounthour (user_id,hour); create table...
<gh_stars>1000+ -- 2021-07-14T20:57:23.424Z -- URL zum Konzept DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=541911 ; -- 2021-07-14T20:57:23.647Z -- URL zum Konzept DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=541911 ;
<reponame>dram/metasfresh -- 2021-07-14T13:29:01.707Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579488,0,'RepairOrderSummary',TO_TIMESTAMP('20...
<gh_stars>0 create table ocorrencia ( id bigint not null auto_increment, entrega_id bigint not null, descricao text not null, data_registro datetime not null, primary key (id) ); alter table ocorrencia add constraint fk_ocorrencia_entrega foreign key (entrega_id) references entrega (id);
<gh_stars>0 /* Arbitrary text field, optional. */ ALTER TABLE secrets ADD COLUMN description text; /* Required text field, username of creator. Skipping not null because of existing records. */ ALTER TABLE secrets ADD COLUMN createdBy text; /* Required update timestamp. Defaults to creation time. */ ALTER TABLE ...
<reponame>bernardjason/tracking # SELECT datetime( (request_start_date/1000), 'unixepoch','localtime') , datetime( (request_required_for_date/1000), 'unixepoch','localtime') from request # --- !Ups create table "USER" ( "USER_ID" INTEGER PRIMARY KEY, "USER_NAME" VARCHAR NOT NULL, "USER_PASSWORD" VARCHAR NOT NULL, "U...
-- auto-generated definition CREATE TABLE gps_data ( sensor_id VARCHAR(255) NOT NULL PRIMARY KEY, latitude FLOAT NULL, longitude FLOAT NULL, CONSTRAINT gps_data_sensor_id_uindex UNIQUE (sensor_id) ) ENGINE = InnoDB;
<filename>INDEX/COLL_EVENT_IDX_VERBLONG.sql CREATE INDEX "COLL_EVENT_IDX_VERBLONG" ON "COLLECTING_EVENT" ("VERBATIMLONGITUDE")
INSERT INTO MyEntityTable(id, name) VALUES(1, 'default sql load script entity'); INSERT INTO MyEntityTable(id, name) VALUES(2, 'import.sql load script entity'); alter sequence myEntitySeq restart with 3;
<gh_stars>1-10 -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore alter table pg2_co_table_for_alter_template set tablespace pg2_co_ts2_template;
<reponame>onlyten/weimei /* Navicat MySQL Data Transfer Source Server : serv2 Source Server Version : 50148 Source Host : qdm102668679.my3w.com:3306 Source Database : qdm102668679_db Target Server Type : MYSQL Target Server Version : 50148 File Encoding : 65001 Date: 2016-01-20 10:...
CREATE TABLE World ( id INTEGER PRIMARY KEY, randomnumber INTEGER NOT NULL ); INSERT INTO World (id, randomnumber) VALUES (1, 101); INSERT INTO World (id, randomnumber) VALUES (2, 102); INSERT INTO World (id, randomnumber) VALUES (3, 103); INSERT INTO World (id, randomnumber) VALUES (4, 104); INSERT INTO World...
<gh_stars>0 -- @testpoint:opengauss关键字defaults(非保留),作为视图名 --关键字defaults作为视图名,不带引号,创建成功 CREATE or replace VIEW defaults AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view defaults; --关键字defaults作为视图名,加双引号,创建成功 CREATE or replace VIEW "defaults" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_d...
<filename>db/seed.sql use burgerdb1; INSERT INTO burgers (burger_name, burger_details) VALUES ('The Mighty', 'Grass-fed beef pattie with crispy bacon, free-range egg, tasty cheese, beetroot, cos lettuce, tomato, Spanish onion, relish & herbed mayo.'); INSERT INTO burgers (burger_name, burger_details) VALUES ("Simply Gr...
<filename>db/scripts/002_create_database.sql /* Script to create database tables */ SET search_path TO myschema,public,core; /* ADMINS TABLE */ CREATE TABLE core.sample_table( id SERIAL NOT NULL, value_1 VARCHAR(255) NOT NULL, value_2 VARCHAR(255) NOT NULL, value_3 VARCHAR(255) NOT NULL, value_4 V...
-- Valentina Studio -- -- MySQL dump -- -- --------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40014 SET @OLD...
<gh_stars>0 CREATE PROCEDURE [auth].[auth_GroupUsers_ApiUserId] @ApiUserId int AS SELECT [GroupId], [ApiUserId], [CreatedByUserId], [CreatedByClientId], [CreatedDate], [UpdatedByUserId], [UpdatedByClientId], [UpdatedDate] FROM [GroupUsers] WHERE [ApiUserId]=@ApiUserId
create table event ( id bigint not null primary key, creator bigint null, date datetime(6) null, description varchar(255) null, picture varchar(255) null, place varchar(255) null, title varchar(255) null, type varchar(255) n...
/* Drop database objects for the Moip Integration Sample app (PostgreSQL). */ DROP TABLE IF EXISTS order_product; DROP TABLE IF EXISTS product; DROP TABLE IF EXISTS client; DROP TABLE IF EXISTS "order"; DROP SEQUENCE IF EXISTS product_id_seq; DROP SEQUENCE IF EXISTS client_id_seq; DROP SEQUENCE IF EXISTS order_id_seq...
<gh_stars>0 INSERT INTO `menus` (`parent_id`, `uri`, `label`, `icon`, `role`, `sort`, `created_at`, `updated_at`) VALUES (0, 'dashboard', 'ภาพรวม', 'fa fa-star-o', 'super-admin,admin,user', 0, '2017-10-17 11:41:16', '2017-10-17 11:41:16'), (0, 'car-register', 'นำเข้าข้อมูลจดทะเบียน', 'fa fa-edit', 'super-admin,admin,u...
------------------Input for testing ------------------------------------------------------------------------------ -- hidden var 'defaultDB' defaultDB_KMEANS2; -- hidden var 'x' 'lefthippocampus,righthippocampus'; -- var 'centers' ''; -- var 'k' ''; -- drop table if exists inputdata; -- create table inputdata as -- sel...
<filename>gadogadoid.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 13, 2020 at 02:46 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
/* SQLyog Professional v13.1.7 (64 bit) MySQL - 8.0.21 : Database - asc_world_new ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_...
<reponame>vearne/chat<gh_stars>1-10 -- 2019-11-18 CREATE TABLE `account` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `nickname` varchar(30) DEFAULT NULL, `status` int(11) DEFAULT NULL, `broker` varchar(255) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `modified_at` timestamp NULL DEFAULT NUL...
<filename>notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/HackerRank/SQL/Alternative Queries/Draw-the-Triangle-1.sql /* Enter your query here. */ set @counter := 21; select repeat('* ', @counter:=@counter-1) from information_schema.tables;
EXECUTE AS USER = 'asa.sql.highperf' IF OBJECT_ID(N'[wwi_perf].[Sale_Index]', N'U') IS NOT NULL DROP TABLE [wwi_perf].[Sale_Index] CREATE TABLE [wwi_perf].[Sale_Index] WITH ( DISTRIBUTION = HASH ( [CustomerId] ), CLUSTERED INDEX (CustomerId) ) AS SELECT * FROM [wwi_perf].[Sale_Heap] OPTION (LABEL = 'CTAS :...
<filename>db/pgsql/db-scripts/create-fs-20/sql/create_mals_01_tables.sql<gh_stars>0 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', 'mals_app', true); SET check_function_bodies = false; SET client_min_messag...
/*!40101*/select number from numbers_mt(2) ORDER BY number; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101*/select number from numbers_mt(1) ORDER BY number;
<filename>src/main/resources/sql_updates/2017-08-28.sql<gh_stars>0 /* * 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: grupot * Created: 28/08/2017 */ ALTER TABLE `mar...
<reponame>crossnoire/project-advisingver2 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 30, 2018 at 06:05 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
MATCH (o:Organization)-[:PERFORMS]->(a:Activity)-[:PRODUCES]->(p:Product)-[rel:CONSISTS_OF]->(c:Product) // match the desired product, for instance by id WHERE ID(p) = 4448 // create the product that has to sit in between MERGE (p2:Product {name: 'New Product'}) // create the new relation based on the old activity MERG...
<reponame>viswaratha12/dbwarden<gh_stars>1-10 /****** Object: StoredProcedure [dbo].[UpdateUserPermissions] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE dbo.UpdateUserPermissions /**************************************************** ** ** Desc: Updates user permissions in the cur...
<reponame>youyiio/beyongx update cms_config set value = 'v1.1.5' where `name` = 'beyong_cms_version';
<reponame>isabella232/terraform-google-log-export<gh_stars>10-100 # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2...
{{ config(enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_forward_enabled'])) }} with base as ( select * from {{ ref('stg_hubspot__email_event_forward_tmp') }} ), macro as ( select {{ fivetran_utils.fill_staging_colu...
<gh_stars>1000+ DROP INDEX index_crates_name_tgrm; DROP EXTENSION pg_trgm;
<filename>sql/usuario.sql CREATE TABLE usuario ( id int NOT NULL identity(1,1) primary key, nome varchar(20) not null default '', identidade varchar(12) not null default '', datanascimento date not null default '', datavalidade date not null default eomonth(getdate(),1), ativo char(1) not null default '1',...
<reponame>aTiKhan/postgrest<gh_stars>0 CREATE ROLE db_config_authenticator LOGIN NOINHERIT; -- reloadable config options ALTER ROLE db_config_authenticator SET pgrst.jwt_aud = 'https://example.org'; ALTER ROLE db_config_authenticator SET pgrst.openapi_server_proxy_uri = 'https://example.org/api'; ALTER ROLE db_config_...
<filename>dbo/Tables/Schema.sql CREATE TABLE [dbo].[Schema] ( [SchemaID] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (255) NOT NULL, [DatabaseID] INT NOT NULL, [IsDeleted] INT CONSTRAINT [DF_Schema_IsDeleted] DEFAULT ((0)) NOT NULL, [Modified] DATETIME ...
UPDATE pa_t_asset_data SET building_area='',building_area_value=0 WHERE deleted_at IS NULL AND org_name='济南高新技术产业开发区物业管理总公司';
CREATE TABLE foo (bar text); -- name: Coalesce :many SELECT coalesce(bar, '') as login FROM foo;
-- Kontsioti, Maskell, Dutta & Pirmohamed, A reference set of clinically relevant adverse drug-drug interactions (2021) set search_path = drug_interaction_compendia; drop table if exists micromedex_with_mapped_drugnames ; create table micromedex_with_mapped_drugnames as select a.drugname_1_original , a.d...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- 主機: localhost:3306 -- 產生時間: 2019 年 10 月 16 日 02:06 -- 伺服器版本: 10.3.16-MariaDB -- PHP 版本: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE games ( id varchar(255) PRIMARY KEY, name varchar(255) NOT NULL, metadata JSONB NOT NULL DEFAULT '{}'::JSONB, created_at timestamp WITH TIME ZONE NOT NULL DEFAULT NOW(), updated_at timestamp WITH TIME ZONE NULL );
<filename>VIEWS/api/user_resources.sql CREATE OR REPLACE VIEW api.user_resources WITH (security_barrier) AS SELECT resource_id, resource_type, resource_name, resource_path FROM resources WHERE check_resource_access(resource_id);
<reponame>inbo/etn-occurrences<gh_stars>1-10 SELECT -- eventID -- eventID includes a reference to the specific animal project and the identifier of the specific animal (id_pk) involved in the capture event 'etn:' || projectcode || ':' || id_pk || ':event-capture' AS eventID, -- occurrenecID -- occurrenceID i...
-- file:jsonb.sql ln:545 expect:true SELECT * FROM jsonb_populate_record(row('x',3,'2012-12-31 15:30:56')::jbpop, '{}') q
CREATE TEMP TABLE test ( id serial primary key, "start" timestamp without time zone, "end" timestamp without time zone, CONSTRAINT CHECK rangeunique UNIQUE("start","end"), CONSTRAINT CHECK rangecheck (select count(*) from test where VALUE between start and "end")=0 ); --INSERT INTO test(start,"end") VALUES(CURRENT_TIM...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table area ( name varchar(255), tags varchar(255)) ; create table booth_description ( product_id varchar(255) not null, pro...
<gh_stars>0 /* Infrequent (eg, pre fiscal year) merge processing if EdFiXFinance extension Be advised that the collation of the source system is *_BIN, that is case-sensitive binary Implementation Note: Before running in your environment, replace the LEA Id (line 15) with your LocalEducationAgency Ed-Fi identifie...
CREATE TABLE [dbo].[GiftCertificate] ( [GiftCertificateID] INT IDENTITY (1, 1) NOT NULL, [GiftDate] DATETIME NOT NULL, [DonorID] INT NOT NULL, [SINumber] NVARCHAR (50) NOT NULL, [ReferenceNo] NVARCHAR (50) NOT NULL, ...
with ns as ( select oid, nspname from pg_namespace where true and nspname !~ '^pg_' and nspname !~ '^wrk_dd_' and nspname <> 'information_schema' ) select lower(ns.nspname) as schema_name, lower(cl.relname) as table_name, ...
<filename>migrations/V42__Rename_To_Withdrawn_Status.sql ALTER TYPE system_intake_status RENAME VALUE 'ARCHIVED' to 'WITHDRAWN';
/* Navicat MySQL Data Transfer Source Server : www Source Server Version : 50527 Source Host : localhost:3306 Source Database : yii2demo Target Server Type : MYSQL Target Server Version : 50527 File Encoding : 65001 Date: 2020-08-30 08:34:59 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
<gh_stars>0 -- Edit this SQL script so that it contains only those entries you wish to -- have in your project's interwiki table. You can borrow from interwiki.sql, -- wictionary-interwiki.sql and wikipedia-interwiki.sql, but be sure to edit the -- final 'iw_local' value (0 means it's not local to your project). --...
{{define "test1"}}test1{{end}} {{define "test4"}}test4{{end}} {{define "test5"}}test5{{end}}
<reponame>dgutierrez0563/basic_pdo<filename>admin.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 05, 2018 at 04:20 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRA...
<reponame>vytsci/forkcms-module-orders DROP TABLE IF EXISTS `orders`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `orders` ( `id` int(11) NOT NULL AUTO_INCREMENT, `supplier_profile_id` int(11) DEFAULT NULL, `customer_profile_id` int(11) ...
match (e:Employee) --> (:CostCenter{code: "cc1"}) return e; match (e:Employee) -- (:CostCenter{code: "cc1"}) return e; match (e:Employee) -[r]- (:CostCenter{code: "cc1"}) return e.name, e.surname, type(r), r; match (e) -- (:CostCenter{code: "cc1"}) return e;
CREATE TABLE input (value INT); INSERT INTO input VALUES (1788); INSERT INTO input VALUES (1627); INSERT INTO input VALUES (1883); INSERT INTO input VALUES (1828); INSERT INTO input VALUES (1924); INSERT INTO input VALUES (1993); INSERT INTO input VALUES (972); INSERT INTO input VALUES (1840); INSERT INTO input VALUES...
/**/ INSERT INTO trabalho_ihc.users (matricula,senha,nome) VALUES (100000,"$2y$10$BafJ8AF4shGoIs22BzzxlehiuM9yCDDm46WaGjZThNDtsKZzc9d7K","<NAME>"),(100173,sha1("tqQfSaS"),"<NAME>"),(100346,sha1("xsqKJVq"),"<NAME>"),(100519,sha1("KrrbVQt"),"<NAME>"),(100692,sha1("fkVbdUe"),"<NAME>"),(100865,sha1("iynEmSP"),"<NAME>"),(1...
<filename>er/dominio.sql BEGIN; CREATE SCHEMA dominio; CREATE TABLE dominio.tipo_posto_grad( code SMALLINT NOT NULL PRIMARY KEY, nome VARCHAR(255) NOT NULL, nome_abrev VARCHAR(255) NOT NULL ); INSERT INTO dominio.tipo_posto_grad (code, nome,nome_abrev) VALUES (1, 'Civil', 'Civ'), (2, 'Mão de Obra Temporária', 'MO...
<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 12.1 (Debian 12.1-1.pgdg100+1) -- Dumped by pg_dump version 12.1 (Debian 12.1-1.pgdg100+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_s...
-- DBO.[ROUTINGRULEDEFINITION] (BEGIN) /* IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_NAME = 'RoutingRuleDefinition') AND (TABLE_SCHEMA = 'dbo')) DROP TABLE dbo.[RoutingRuleDefinition] GO */ CREATE TABLE dbo.[RoutingRuleDefinition] ( RoutingRuleId ...
<reponame>pBouillon/Telecom_PPII CREATE TABLE PLANE ( id NUMBER NOT NULL, id_plane_type NUMBER NOT NULL, consumption NUMBER, freight NUMBER, iata_code VARCHAR2(3), icao_code VARCHAR2(4) NOT NULL, model VARCHAR2(30) NOT NULL,...
<reponame>rickyork/Hot-Toddy CREATE TABLE `hContactInternetAccounts` ( `hContactId` int(11) NOT NULL default '0', `hContactInternetAccountId` int(11) NOT NULL auto_increment, `hContactAddressId` int(11) NOT NULL default '0', `hC...