sql
stringlengths
6
1.05M
ALTER TABLE participant ADD CONSTRAINT UNIQUE (email);
WITHIN(POLYGON((465639 4526640, 465639 4531755, 468183 4531755, 468183 4526640, 465639 4526640)),"app:geometry")
BEGIN; ALTER TABLE "device" DROP COLUMN "last_heartbeat"; COMMIT;
<filename>gwdash/gwdash-server/src/main/resources/sql/update_2020-02-18.huizong.sql<gh_stars>10-100 /* * Copyright 2020 Xiaomi * * 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 Licens...
ALTER TABLE event_type ADD COLUMN description CHARACTER VARYING; -- ALTER TABLE event_type DROP INDEX "PK_event_type_id"; ALTER TABLE event_type RENAME COLUMN id TO oldId; alter table endpoint_targets drop CONSTRAINT "FK_event_type_id_target" ; alter table endpoint_targets rename column event_type_id TO eti; -- out...
-- +migrate Up CREATE TABLE gh_installations ( id INT UNSIGNED AUTO_INCREMENT, user_id INT UNSIGNED NOT NULL, installation_id INT UNSIGNED NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE ) ENGINE=i...
CREATE TABLE appointments ( AppointmentId int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, PatientIdentifier varchar(100) NOT NULL, PatientType varchar(100) NOT NULL, AppointmentType varchar(100) NOT NULL, PatientFirstName varchar(100) NOT NULL, PatientLastName varchar(100) NOT NULL, Symptoms TEXT NOT NULL, ...
<filename>sag-sys_backup.sql /* Navicat Premium Data Transfer Source Server : cdu-sys Source Server Type : MySQL Source Server Version : 50732 Source Host : localhost:3306 Source Schema : cdu-sys Target Server Type : MySQL Target Server Version : 50732 File Encoding : ...
-- By default Global will load properties with NULL, then overlay the application specific ones INSERT into global_properties(name,value) VALUES ('uri.home','/'), ('uri.login.home','/login.jsp'), ('uri.login.target','/api/auth/login'), ('url.home.public','http://localhost:10080') ; -- su (password should never...
<gh_stars>0 create table DIALOG ( dialog_id number(19, 0) not null, aktor_id varchar(255), overskrift varchar(255), constraint DIALOG_PK primary key (dialog_id) ); create sequence DIALOG_ID_SEQ start with 1 increment by 1; CREATE INDEX DIALOG_AKTOR_IDX ON DIALOG(aktor_id); create table HENVENDELSE ( ...
-- /var/www/goggles.org/releases/20191123095224/public/output/202002011919dev_remote_edit.diff.sql SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET NAMES utf8 */; -- -- Remote editing recorded from actions by User ID 39 INSERT INTO `meeting_...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 1172.16.17.32 -- Tiempo de generación: 15-01-2017 a las 07:38:07 -- Versión del servidor: 5.7.12-log -- Versión de PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Εξυπηρετητής: 127.0.0.1 -- Χρόνος δημιουργίας: 05 Οκτ 2021 στις 15:24:42 -- Έκδοση διακομιστή: 10.4.20-MariaDB -- Έκδοση PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>halimc17/simlab<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : LOCALHOST Source Server Version : 50505 Source Host : localhost:3306 Source Database : db_simlab Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-05-23 16:02...
CREATE TABLE [dbo].[Employees] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [EmployeeName] VARCHAR(MAX) NOT NULL, [NumberOfDependents] INT NOT NULL, [Version] ROWVERSION NOT NULL )
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-08-2019 a las 04:51:06 -- Versión del servidor: 10.1.40-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
/* Navicat Premium Data Transfer Source Server : root Source Server Type : MySQL Source Server Version : 50719 Source Host : localhost:3306 Source Schema : dianping Target Server Type : MySQL Target Server Version : 50719 File Encoding : 65001 Date: 10/06/2019 15:03:...
<gh_stars>0 INSERT INTO `groupbatch_account`(`id`, `batch_id`, `balance`) VALUES (1, 1, 13); INSERT INTO `groupbatch_account`(`id`, `batch_id`, `balance`) VALUES (2, 1, 12); INSERT INTO `groupbatch_account`(`id`, `batch_id`, `balance`) VALUES (3, 1, 22); INSERT INTO `groupbatch_account`(`id`, `batch_id`, `balance`) VAL...
DROP TABLE product if exists;
DROP FUNCTION IF EXISTS public.monitoring_stat_activity_waiting(); CREATE OR REPLACE FUNCTION public.monitoring_stat_activity_waiting() RETURNS TABLE (usename name, datname name, state text, query_md5 varchar(100), query varchar(10000), "count" bigint, max_idle_seconds double precision, avg_idle_seconds double prec...
use EduWebApp; -- Test users -- real INSERT INTO users (displayName, socialMediaID, socialMediaProvider_id, privilegeLevel_id) VALUES ('<NAME>', '102562326633765021134', 1, 1); -- Google account, normal. INSERT INTO users (displayName, socialMediaID, socialMediaProvider_id, privilegeLevel_id) VALUES ('Scott, the admi...
<filename>SQL/functio1_ecomm_service.sql -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 17, 2021 at 04:42 PM -- Server version: 10.2.39-MariaDB-log-cll-lve -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START...
CREATE TABLE BRANCH ( branchID VARCHAR2(10), addressLine1 VARCHAR2(20), addressLine2 VARCHAR2(20), townCity VARCHAR2(20), postCode VARCHAR2(7), telephone1 VARCHAR2(13), telephone2 VARCHAR2(13), PRIMARY KEY (branchID)); CREATE TABLE ROOM ( roomID VARCHAR2(10), branchID VARCHAR2(10), roo...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: teste -- ------------------------------------------------------ -- Server version 5.5.5-10.1.28-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
prompt --application/shared_components/files/app_icon_svg begin -- Manifest -- APP STATIC FILES: 1000 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_workspace_id=>116577013837797376 ,p_default_application_id=>1000 ,p_default_id_offset=>0 ...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 29, 2019 at 03:21 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>database/migrations/queries/2Provider.sql ALTER TABLE Users ADD COLUMN provider VARCHAR(255);
<gh_stars>0 -- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 10.1.13-MariaDB - mariadb.org binary distribution -- OS do Servidor: Win32 -- HeidiSQL Versão: 9.5.0.5196 -- ------------------------------------...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600543',@CutoffDate = N'2017-09-30',@EPS = N'0.08',@EPSDeduct = N'0',@Revenue = N'1.50亿',@RevenueYoy = N'2.59',@RevenueQoq = N'-41.48',@Profit = N'2463.14万',@ProfitYoy = N'13.84',@ProfiltQoq = N'1112.08',@NAVPerUnit = N'3.5033',@ROE = N'2.21',@CashPerUnit = N'0.1470',@GrossProfitRat...
-- -- --AUTHOR: <NAME> --DATE: 06/03/2021 -- -- ---------------------------------------------------------- /*Dar privilegios como ADMIN PARA MANEJAR LA BASE DE DATOS*/ GRANT create session, create table, create sequence, create view TO airbnb WITH ADMIN OPTION; -- ------------------------------------------------...
<filename>examples/Models/mssql.sql -- ****************************** [Weather]************************** CREATE TABLE [Weather] ( [LocationId] int NULL , [EffectiveDate] date NOT NULL , [Revision] int NOT NULL , [MaxTemp] float NOT NULL , [MinTemp] float NOT NULL , [A...
/* MySQL Backup Source Server Version: 5.1.30 Source Database: boombang Date: 6/28/2013 06:21:38 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `baneos` -- ---------------------------- DROP TABLE IF EXISTS `baneos`; CREATE TABLE `baneos` ( `id_usuario` int(11) unsigned NOT NULL...
<gh_stars>0 ALTER TABLE whse_basemapping.fwa_assessment_watersheds_poly ADD COLUMN wscode_ltree ltree GENERATED ALWAYS AS (REPLACE(REPLACE(fwa_watershed_code, '-000000', ''), '-', '.')::ltree) STORED; ALTER TABLE whse_basemapping.fwa_assessment_watersheds_poly ADD COLUMN localcode_ltree ltree GENERATED ALWAYS AS (R...
<reponame>ryland-e-atkins/complexa DELETE FROM CF01_CASAutoGenerate; DELETE FROM CF01_AUDIT_SUM_2512; DELETE FROM CF01_AUDIT_SUM_2511; DELETE FROM CF01_Ingredient_CosmeticFormulation; DELETE FROM CF01_Brand; DELETE FROM CF01_CosmeticFormulation; DELETE FROM CF01_Category_R; DELETE FROM CF01_CategoryType_R; DELE...
create table ACEVNPRD2.T_SETTING_JOB_SCHEDULE( JOB_ID NUMBER(10,0) GENERATED ALWAYS AS IDENTITY (START WITH 1 INCREMENT BY 1) NOT NULL, JOB_NAME VARCHAR2(50) NOT NULL, DESCRIPTION VARCHAR2(100), CLASS_PATH VARCHAR2(50) NOT NULL, PARAMETER VARCHAR2(50), CRON_EXPRESSION VARCHAR2(50) NOT NULL, ...
<gh_stars>1-10 create procedure paListaMenu(id int) begin select p.nombres, p.apellidos, p.dni, p.dni, c.cargo_desc, pu.perfil_desc, m.menu_nomb, m.menu_slug, m.menu_orden, m.menu_img from personas p inner join cargos c on p.cargo_id = c.id_cargo inner join perfil_users pu on c.perfil_user_id = pu.id_perfil_user i...
<gh_stars>1-10 -- Table: public.notifications_users -- DROP TABLE public.notifications_users; CREATE TABLE public.notifications_users ( id_notifications_users integer NOT NULL DEFAULT nextval('notifications_users_id_notifications_users_seq'::regclass), id_notification integer, id_user integer, status text, ...
/*---------------------------------------------------------------------- Name : dbo.GetCreatedDate Description : returns the created date from history for a given vacancy History: -------- Date Version Author Comment 29-09-2016 ...
CREATE FUNCTION integratedb_validate_migration(max_results integer default 100) RETURNS integer AS $$ DECLARE unmet RECORD; BEGIN FOR unmet IN SELECT * from integratedb_unmet_claims(max_results) LOOP -- XXX Todo: log a useful debug trail from the unmet claim. -- RAISE NOTICE 'Unmet cl...
<filename>data/train/sql/7726ef5b3a17e7089f7e4283f953c50c83a10b48CS_CallType Show Emp-Equi Data.sql UPDATE CS_CALLTYPE SET ShowEmployee = 1, ShowEquipment = 1 WHERE ID = 9 UPDATE CS_CALLTYPE SET ShowEmployee = 1, ShowEquipment = 1 WHERE ID = 10 UPDATE CS_CALLTYPE SET ShowEmployee = 1, ShowEquipment = 1 WHERE ID = 11 UP...
-- +migrate Up update wordle_scores set guesses = 7 where guesses = 0; -- +migrate Down update wordle_scores set guesses = 0 where guesses = 7;
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: elasticsearch -- ------------------------------------------------------ -- Server version 5.7.21-1ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
UPDATE script_texts SET content_default='Frenzyheart kill you if you come back. You no welcome here no more!', comment='vekjik SAY_TEXTID_VEKJIK1' WHERE entry=-1000208;
<filename>db/init-mysql.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50718 Source Host : localhost:3306 Source Schema : api Target Server Type : MySQL Target Server Version : 50718 File Encoding : 650...
-- Modified: 01-May-2020 (<NAME>) --- update user_role set user_status='I', updated_by_patron_id='sh86800' where user_status='A' and user_patron_id in('qm97071') commit; --- -- Update target tbl (tb) using source tbl (sb) update target_bricks tb set ( tb.colour, tb.shape ) = ( select sb.colour, ...
<filename>Chinook_extended/sorting_merging.sql -- Albums does the artist Led Zeppelin have. SELECT COUNT(*) AS NAME_COUNT FROM artists INNER JOIN albums ON artists.ArtistId=albums.ArtistId WHERE artists.Name='<NAME>' -- List of album titles and the unit prices for the artist "Audioslave". SELECT UnitPrice,Title FROM...
UPDATE users USING TTL 10 SET favs['color'] = 'green' WHERE id = 'jsmith';
select cast ($1 as int) as a1, cast ($2 as int) as a2, cast ($3 as int) as a3, cast ($4 as int) as a4, cast ($5 as int) as a5, cast ($6 as int) as a6;
----------------------------------------------------------------------- -- -- Copyright (C) 2021 CARTO -- ----------------------------------------------------------------------- CREATE OR REPLACE FUNCTION `@@BQ_PROJECTID@@.@@BQ_DATASET_QUADKEY@@.QUADINT_FROMZXY`(z INT64, x INT64, y INT64) RETURNS INT64 AS (((z & 0...
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_02_type_conversions/_01_explicit_conversion/cases/_04_alter_dt_to_bbc.sql --cast DATETIME(L)TZ columns to bit/blob/clob data types, in alter statement drop table if exists tz_test; create table tz_test(a int, ts datetime, dtltz datetime with local time zone, d...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 18, 2018 at 04:25 AM -- Server version: 5.7.14 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
<filename>migrations/sqls/20220316084230-orders-table-down.sql DROP TABLE orders CASCADE;
<reponame>tokenocean/demo<gh_stars>0 alter table "public"."metadata" drop column "property_title" cascade;
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Aug 21, 2021 at 11:58 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: Tennis -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
CREATE TABLE books( id INTEGER PRIMARY KEY, title TEXT, pages INTEGER );
<reponame>Buddhimal/mynumber_admin<filename>template.sql<gh_stars>0 /* Navicat Premium Data Transfer Source Server : Localhost Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3308 Source Schema : admin_lte Target Server Type : MySQL Target Serve...
<gh_stars>0 SET NAMES 'utf8'; USE github_subscriptions; ALTER TABLE `users` ADD UNIQUE INDEX uk_username (username), ADD UNIQUE INDEX uk_email (email), ADD INDEX idx_validts (validts), ADD INDEX idx_confirmed (confirmed), ADD INDEX idx_notified (notified);
/* Navicat MySQL Data Transfer Source Server : 192.168.165.219 Source Server Version : 50619 Source Host : 192.168.165.219:3306 Source Database : dev6_om Target Server Type : MYSQL Target Server Version : 50619 File Encoding : 65001 Date: 2018-08-14 13:36:16 */ SET FOREIGN_KEY_CHE...
-- MySQL Script generated by MySQL Workbench -- to 15. syyskuuta 2016 15.37.01 -- 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_MO...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 05, 2020 at 07:52 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>VickyJFoster/my_sql_octopus_poc CREATE TABLE [dbo].[StatsCache_TagMappingsByContentItem] ( [ContentItemID] [int] NOT NULL, [AvgNumMappings] [float] NOT NULL, [StDevNumMappings] [float] NOT NULL, [NumTags] [int] NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[StatsCache_TagMappingsByContentItem] ADD CONSTRAINT [...
-- ================================================ -- ====== Create sequences for future tables ====== -- ================================================ create sequence books_seq; create sequence publishers_seq; create sequence authors_seq; create sequence sales_seq; create sequence users_seq; create sequence supply...
<reponame>Shuttl-Tech/antlr_psql -- file:conversion.sql ln:36 expect:true DROP USER regress_conversion_user
<reponame>SamDuan/kuwala SELECT poi_id, popularity, timestamp FROM {{ ref('poi') }} LEFT JOIN google_poi ON place_id = poi_google_place_id LEFT JOIN google_poi_popularity gpp on google_poi.internal_id = gpp.internal_id WHERE poi_popularity_total IS NOT NULL AND timestamp BETWEEN {{ var('start_date') }}::timesta...
<reponame>adrianmahjour/db2-samples<filename>repl/mig95/sql/asnsmz95.sql -- -- This is an optional migration. -- Edit command, changing 'capture_server' to match your environment -- before executing. -- ALTER TABLE capture_schema.IBMQREP_IGNTRAN ADD COLUMN IGNTRANTRC CHAR(1) NOT NULL DEFAULT 'Y';
<reponame>SerenityNotes/naisho -- CreateTable CREATE TABLE "Document" ( "id" TEXT NOT NULL, "activeSnapshotId" TEXT, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "Document_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Snapshot" ( "id" TEXT NOT NULL, "lates...
<reponame>alabarga/CommonDataModel<gh_stars>100-1000 /*bigquery OMOP CDM Indices There are no unique indices created because it is assumed that the primary key constraints have been run prior to implementing indices. */ /************************ Standardized clinical data ************************/ create clus...
<filename>db/dbVersion1.sql -- -- Table structure for table `version` -- CREATE TABLE `version` ( `dbVersion` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `CouponLog` ADD `CouponID` INT(11) NOT NULL AFTER `ConfirmID`; ALTER TABLE `CouponLog` ADD `Percentage` TINYINT(2) NOT NULL AFTER `Coupo...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 22, 2017 at 03:24 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: la_moses -- ------------------------------------------------------ -- Server version 5.7.27-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
create table categorytree ( parent_id int not null, child_id int not null, depth int null, constraint categorytree_ibfk_1 foreign key (parent_id) references category (id) on delete cascade, constraint categorytree_ibfk_2 foreign key (child_id) references category (id) on delete cascade ); create index c...
SET DEFINE OFF; CREATE UNIQUE INDEX AFW_25_CHAMP_UK1 ON AFW_25_CHAMP (CODE, REF_VERSN_PUBLC) LOGGING /
begin; --drop schema if exists href cascade; create schema if not exists href; commit;
<reponame>sogis/gretljobs<filename>afu_schadstoffbelastete_boeden_pub/afu_schadstoffbelastete_boeden_pub_schdstfflstt_bden_stahlbruecke.sql WITH dokumente AS ( SELECT schdstfflstt_bden_dokument.t_id, schdstfflstt_bden_dokument.t_ili_tid, schdstfflstt_bden_dokument.dokumentname, schds...
<filename>backend/de.metas.manufacturing/src/main/sql/postgresql/system/30-de.metas.adempiere.libero/5577340_sys_CostCollector_window_show_PostingError.sql -- 2021-01-22T20:33:48.774Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Field (AD_Tab_ID,IsDisplayed,DisplayLength,IsSameLine,I...
<reponame>stuenofotso/Cloud-Computing-Project-Ressources -- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: annuaire -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
/* * Copyright (c) 2017 LabKey Corporation * * 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 a...
BEGIN DECLARE MAX_EXTCOURSEID VARCHAR(100); DECLARE MIN_FCISTATE VARCHAR(100); DECLARE RESULT_ID INT; IF (NEW.sis_enrollment_id IS NULL) THEN SELECT MAX(b.EXT_COURSE_ID), MIN( CASE WHEN t.term_start_dt IS NULL THEN '0' WHEN sysdate() BETWEEN t.term_start_dt AND DATE_ADD(Date_add(t.term_start_dt,I...
<reponame>Short-T/CS3103 DELIMITER // DROP PROCEDURE IF EXISTS getImages // CREATE PROCEDURE getImages() BEGIN SELECT * FROM images; END // DELIMITER ;
CREATE INDEX IF NOT EXISTS assignments_transition_assignment ON assignments(transition_assignment);
# --- !Ups create table linked_account ( id bigint not null, user_id bigint, provider_user_id varchar(255), provider_key varchar(255), constraint pk_linked_account primary key (id)) ; create table share_file_entity ( file_path ...
alter table user_contacts drop column contact_status;
<reponame>himalayaRange/power<gh_stars>1-10 -- 存储过程修改定义者 UPDATE mysql.proc set DEFINER='root@%' WHERE NAME='P_DELETE_ROLE_REFENCE_INFO' AND db='power'; -- 删除角色关联信息表 DROP PROCEDURE if EXISTS P_DELETE_ROLE_REFENCE_INFO; CREATE PROCEDURE P_DELETE_ROLE_REFENCE_INFO(IN paramter LONG) BEGIN DECLARE tmp_role_menu_id LONG;...
-- Verify ggircs-portal:policies/emission_category_gas_policies on pg begin; -- ciip_administrator Policies select ggircs_portal_private.verify_policy('select', 'ciip_administrator_select_emission_category_gas', 'emission_category_gas', 'ciip_administrator'); select ggircs_portal_private.verify_policy('insert', 'ciip...
<reponame>rodel-talampas/gpdb CREATE ROLE mdt_db_role1 WITH SUPERUSER CREATEDB INHERIT LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD '<PASSWORD>'; CREATE ROLE mdt_db_role2 WITH NOSUPERUSER NOCREATEDB NOINHERIT NOLOGIN UNENCRYPTED PASSWORD '<PASSWORD>'; CREATE ROLE mdt_db_role3 WITH NOCREATEROLE NOCREATEUSER; CREATE R...
<reponame>GRMrGecko/ITClub /* itclub.sql IT Club Copyright (c) 2015, Mr. Gecko's Media (<NAME>) All rights reserved. The structure of the MySQL database. */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `announcements` -- ---------------------------- DROP TABL...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [Ontology.Presentation].[ConvertXML2Tables] AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; truncate table [Ontology.Presentation].[General] insert into [Ontology.Presentatio...
CREATE PROCEDURE [dbo].[newprocads] AS --Firsttest SELECT 1 RETURN 0 GO
SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow')) AND (t.name in ('applescript','base64','comparison','for-loop','http-headers'...
<filename>fuel/app/databases/ddl/20200304141000_LASHIC-871.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[agents]( [id] [int] IDENTITY(1,1) NOT NULL, [store_id] [int] NOT NULL, [agent_code] [nvarchar] (50) NOT NULL, [agent_name] [nvarchar] (50) NOT NULL, [created_at] [datetime] NULL, [up...
<reponame>VasuGoel/transact-sql -- Challenge 1: Retrieve Customer Data -- 1. Retrieve customer details SELECT * FROM SalesLT.Customer; -- 2. Retrieve customer name data SELECT Title, FirstName, MiddleName, LastName, Suffix FROM SalesLT.Customer; -- 3. Retrieve customer names and phone numbers SELECT SalesPerson, Tit...
<reponame>ariefrahman3148/pps-magnxer<filename>application/sql/magnxer (1).sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2022 at 06:53 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; STAR...
<gh_stars>1-10 create table blog.setting ( id char(36) not null primary key, name varchar(100) not null, value varchar(100) not null );
<filename>15. Databases Basics - MS SQL Server - Jan 2019/10. Exam Preparation/Exam Preparation Solutions.sql Create database ColonialJourney GO USE ColonialJourney GO --Problem_01 Create Table Planets ( Id int Identity(1,1) Primary Key, [Name] varchar(30) not null ) Create Table Spaceports ( Id int Identity(1,1) ...
<reponame>dbmdz/digitalcollections-cms UPDATE fileresources SET http_base_url = (SELECT iiif_base_url FROM fileresources_image WHERE fileresources.uuid = fileresources_image.uuid);
/* Formatted on 10/6/2014 7:42:23 PM (QP5 v5.126.903.23003) */ CREATE TABLE HOTL.ROOMS (ROOM_ID NUMBER NOT NULL, ROOM_NAME VARCHAR2 (200 BYTE), DESCRIPTION VARCHAR2 (500 BYTE), CREATED_BY VARCHAR2 (21 BYTE), ...
alter table user add type varchar(10) null default 'github'
/* ================================================ * Oracle XFiles Demonstration. * * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
-- 2019-11-21T12:17:47.977Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=591854 ; -- 2019-11-21T12:17:47.987Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Field_Trl WHERE AD_Field_ID=591854 ; -- 2019-11-21T12:17:47...