text
stringlengths
1
1.05M
--CONNECT 'D:\university\semestr.04\DM\Lab.07\db.fdb' USER 'SYSDBA' PASSWORD 'masterkey'; -- create generators --- create employee generator CREATE GENERATOR employee_id; SET GENERATOR employee_id TO 10; --- create activity generator CREATE GENERATOR activity_id; SET GENERATOR activity_id TO 4; --- create lang gener...
--liquibase formatted sql --changeset debolin:20200609012500 Insert into Student (StudentName, StudentRoll) values ('Deb', 01) Insert into Student (StudentName, StudentRoll) values ('Avi', 02) Insert into Student (StudentName, StudentRoll) values ('Rob', 03) Insert into Student (StudentName, StudentRoll) values ('Set'...
ALTER TABLE `chatcontacts` ADD INDEX `chatuserid_index` (`chatuserid`); ALTER TABLE `chatcontactgroups` ADD INDEX `chatgroupid_index` (`chatgroupid`);
INSERT INTO TAB_USER(USR_ID, USR_USERNAME, USR_PASSWORD, USR_FIRST_NAME, USR_LAST_NAME) VALUES (1, 'admin', 'admin', 'The', 'Adminstrator'); INSERT INTO TAB_USER(USR_ID, USR_USERNAME, USR_PASSWORD, USR_FIRST_NAME, USR_LAST_NAME) VALUES (2, 'user', 'user', 'Dummy', 'User'); INSERT INTO TAB_ROLE(ROL_USR_ID, ROL_NAME) VA...
-- @testpoint:openGauss保留关键字split作为列名带引号并且排序时使用该列,建表成功,split列按字母大小排序 drop table if exists zsharding_tbl; create table zsharding_tbl( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), ...
use payroll execute p_add_time_entry @employee_id=52, @entry_date='2018-03-12 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=57, @entry_date='2018-03-12 00:00:00', @hours_worked=6 execute p_add_time_entry @employee_id=60, @entry_date='2018-03-12 00:00:00', @hours_worked=5 execute p_add_time_entry @e...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : KerasRegressor_GRU -- Dataset : freidman3 -- Database : pgsql -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH RECURSIVE keras_...
CREATE TABLE department ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) UNIQUE NOT NULL ); CREATE TABLE roles ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) UNIQUE NOT NULL, salary DECIMAL (10,2), department_id INTEGER NOT NULL, CONSTRAINT fk_departme...
SELECT u.Nickname, c.Title, l.Latitude, l.Longitude FROM Locations AS l JOIN Users AS u ON u.LocationId = l.Id JOIN UsersChats AS uc ON uc.UserId = u.Id RIGHT JOIN Chats AS c ON c.Id = uc.ChatId WHERE (CAST(l.Latitude AS NUMERIC(38, 18)) BETWEEN 41.14 AND 44.13) AND (CAST(l.Longitude AS NUMERIC(38, 18))...
CREATE TABLE IF NOT EXISTS MEMBER ( id int8 NOT NULL GENERATED BY DEFAULT AS IDENTITY, name VARCHAR UNIQUE NOT NULL, surname VARCHAR UNIQUE NOT NULL, email VARCHAR UNIQUE NOT NULL, password VARCHAR NOT NULL, CONSTRAINT MEMBER_pkey PRIMARY KEY (id) );
-- smallint sum lots SELECT vec_to_sum(smallints) FROM measurements WHERE sensor_id IN (1, 2, 3, 4); -- smallint sum none SELECT vec_to_sum(smallints) FROM measurements WHERE sensor_id = -1; -- smallint sum one null SELECT vec_to_sum(smallints) FROM measurements WHERE sensor_id = 1; -- smallint sum array of nulls SELEC...
-- @testpoint: 测试存储过程返回值类型——char/varchar类型 drop table if exists table_005; create table table_005( t1 char(100), t2 char(20), t3 varchar(4000), t4 varchar(4000), t5 char(100), t6 varchar(400), t7 char(1000) ) ; create unique index indx_t51 on table_005(t1); create index indx_t52 on table_005(t2); inser...
-- $Id$ -- Description: Adding WF_ASSIGNMENT.ITERATION field alter table WF_ASSIGNMENT add ITERATION integer;
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].spFFRemoveParameterTemplate')) DROP PROCEDURE [dbo].spFFRemoveParameterTemplate GO -- ============================================= -- Author: Leonov E.N. -- Create date: -- Descri...
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for building -- ---------------------------- DROP TABLE IF EXISTS `building`; CREATE TABLE `building` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NUL...
 -- At the moment this is questionable. create procedure ProcWithChainedParameterWriteOnlyVariablesReversed @A int -- @A is only written to and uses the setting of @B . This should be flagged as a problem as begin declare @B int -- @B is only written to . This should be flagged as a problem set @...
prompt Importing table t_rol_permisos... set feedback off set define off insert into t_rol_permisos (ID_ROL, ID_PERMISO, CONSULTAR, INSERTAR, ACTUALIZAR, ELIMINAR) values (2, 'SERVICIO:MSJ:LISTAR_NOTIFICACIONES_USUARIO', 'N', 'N', 'N', 'N'); insert into t_rol_permisos (ID_ROL, ID_PERMISO, CONSULTAR, INSERTAR, ACTUALIZ...
CREATE TABLE tag_draft ( tag_draft_id serial NOT NULL, tag_id integer NOT NULL, draft_id integer NOT NULL, PRIMARY KEY (tag_draft_id), FOREIGN KEY (tag_id) REFERENCES tag (tag_id) ON DELETE CASCADE, FOREIGN KEY (draft_id) REFERENCES draft (draft_id) ON DELETE CASCADE );
-- @testpoint:openGauss关键字owned(非保留),作为列名带反引号(合理报错) drop table if exists explain_test; create table explain_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_char char(50) defa...
-- randexpr1.test -- -- db eval {SELECT ~case when case 11*17 when f then t1.a else t1.e end in ( -coalesce((select max(case coalesce((select t1.f from t1 where exists(select 1 from t1 where t1.c in (case t1.e when -d then c else (d) end,t1.e,t1.a))), -t1.c) when 19 then 11 else t1.e end) from t1 where t1.e in (19, -...
--This script uses de database from postgresqtutorial page -- <<https://www.postgresqltutorial.com/wp-content/uploads/2018/03/printable-postgresql-sample-database-diagram.pdf>> --The queries made here are based on the silberschatz book 5 edition cap 3 and 4 --select * from category; --insert into category values (17...
SET search_path = public; CREATE ROLE "app_admin" LOGIN PASSWORD 'adminpwd' SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION VALID UNTIL 'infinity'; CREATE ROLE "app_owner" LOGIN PASSWORD 'ownerpwd' CREATEDB CREATEROLE VALID UNTIL 'infinity';
-- Generate a mobilesetup user that can configure mobile devices. -- USER INSERT INTO users (login_name, user_name, password_hash, permission_tree) VALUES('mobilesetup', 'MobileSetup', '$2a$12$D1BcIba34KKffy8B/3gSOeUFns9ziQCJO5XiMB9CcfD/orELUQSZ.', '{"Nspack": {"password": {"can_be_changed_by_user": false}}}'); -- US...
IF EXISTS (SELECT * FROM sys.indexes i JOIN sys.objects t ON i.object_id = t.object_id WHERE t.name = 'DasAccounts' AND i.name = 'IX_DasAccount_AccountId') BEGIN DROP INDEX IX_DasAccount_AccountId ON Reference.DasAccounts END GO TRUNCATE TABLE [Reference].[DasAccounts] GO INSERT INTO [Reference].[DasAccounts] SE...
USE [VipunenTK] GO /****** Object: Table [dbo].[d_tutkinto_muulla_kaste_t2ella] Script Date: 26.11.2021 17:32:50 ******/ DROP TABLE IF EXISTS [dbo].[d_tutkinto_muulla_kaste_t2ella] GO /****** Object: Table [dbo].[d_tutkinto_muulla_kala_t3lla] Script Date: 26.11.2021 17:32:50 ******/ DROP TABLE IF EXISTS [dbo]....
SET send_logs_level = 'fatal'; DROP TABLE IF EXISTS mt_with_pk; CREATE TABLE mt_with_pk ( d Date DEFAULT '2000-01-01', x DateTime, y Array(UInt64), z UInt64, n Nested (Age UInt8, Name String), w Int16 DEFAULT 10 ) ENGINE = MergeTree() PARTITION BY toYYYYMM(d) ORDER BY (x, z) SETTINGS index_granularity_byt...
CREATE TABLE IF NOT EXISTS webhook_entity ( id VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.id') STORED NOT NULL, name VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.name') NOT NULL, json JSON NOT NULL, PRIMARY KEY (id), UNIQUE KEY unique_name(name) -- No versioning, updatedAt, updatedBy, or chan...
begin; create table if not exists public.restaurants ( id uuid default uuid_generate_v4() not null, name text, phone_number text, coordinates json, address text, image text, place text, description text, created_at timestamp with time zone default timezone('utc'::text, now()) not nu...
USE DBA_Util GO IF NOT EXISTS (SELECT 1 FROM sys.tables WHERE name = 'DbVlfCountLog') BEGIN CREATE TABLE DbVlfCountLog (all_dbfiles_id INT ,vlf_count INT ,record_date_time DATETIME) END GO
INSERT INTO `competitions` (`compNum`, `compName`, `compDate`) VALUES (1, 'April Medal', '2018-04-28'), (2, 'May Medal', '2018-05-26'), (3, 'Gold Medal (blues)', '2018-06-30'), (4, 'Captain\'s Prize', '2018-07-14'), (5, 'July Medal', '2018-07-28'), (6, 'August Medal (blues) ', '2018-08-11'), (7, 'September Medal', '201...
CREATE TABLE email ( id SERIAL PRIMARY KEY, mailbox_id INTEGER NOT NULL, fromaddr VARCHAR NOT NULL, message TEXT NOT NULL, "timestamp" TIMESTAMP NOT NULL, sent_via_ssl BOOLEAN NOT NULL, read BOOLEAN NOT NULL DEFAULT FALSE ); CREATE TABLE mailbox ( id SERIAL PRIMARY KEY, address VARCHAR NOT NULL, last_activity TIMESTAM...
/* contrib/btree_gist/btree_gist--1.3--1.4.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION btree_gist UPDATE TO '1.4'" to load this file. \quit -- Add support for indexing macaddr8 columns -- define the GiST support methods CREATE FUNCTION gbt_macad8_consis...
-- 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 you under the Apache License, Version 2.0 (the -- "License"); you may...
CREATE DATABASE IF NOT EXISTS `algernon_cloud` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `algernon_cloud`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 52.202.170.133 Database: algernon_cloud -- ------------------------------------------------------ -- Server version 5.6.27-log /...
CREATE OR REPLACE FUNCTION gerarparcela() RETURNS trigger AS $BODY$ DECLARE pedido RECORD; BEGIN FOR pedido in SELECT * FROM pedidos WHERE id = NEW.id LOOP FOR i IN 1..pedido.numero_parcela LOOP INSERT INTO parcelas(id_pedido,valor_parcela,descricao,data_vencimento) VALUES ...
REPLACE INTO `system_page` (`id`, `group`, `name`, `state`, `parent_id`, `login`, `type`, `div`, `url`, `func`, `php_class`) VALUES (700, 42, 'beta', 'beta', -1, 0, 0, '#content', './sai.php?sai_mod=.SAI.saimod_beta', 'init_saimod_beta', '\\SAI\\saimod_beta'); REPLACE INTO `system_page` (`id`, `group`, `name`, `state`,...
UPDATE Employees SET Salary = Salary*0.12+Salary Where DepartmentID IN (1,2,4,11) SELECT Salary FROM Employees
-- Код создания CREATE TABLE application_area ( aa_area VARCHAR(20) PRIMARY KEY ); -- Пример ввода данных INSERT INTO application_area ( aa_area ) VALUES ( 'тест обл' ); -- Код создания CREATE TABLE programs ( prog_contract NUMBER(10) PRIMARY KEY REFERENCES products ( prod_contract ), prog_ar...
HDF5 "tfilters.h5" { DATASET "myfilter" { DATATYPE H5T_STD_I32LE DATASPACE SIMPLE { ( 20, 10 ) / ( 20, 10 ) } STORAGE_LAYOUT { CHUNKED ( 10, 5 ) SIZE 800 (1.000:1 COMPRESSION) } FILTERS { USER_DEFINED_FILTER { FILTER_ID 405 COMMENT myfilter PARAMS { 5 6 } ...
-- 2020-08-19T05:38:58.597Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2020-08-19 08:38:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=11912 ; -- 2020-08-19T06:57:13.350Z -- I forgot to set the DICTIONARY_ID_COMMENTS Syste...
SELECT t1.name, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1 WHERE q1.owner_user_id = u1.id AND a1.question_id = q1.id AND a1.owner_user_id = u1.id AND s.site_id = q1.site_id AND s.site_id = a1.site_id AND s.site_id = u1.site_id AND s.site_id = tq1.site_id AND s.s...
INSERT INTO eg_checklist_type(id, code, description, version, createdby, createddate,lastmodifiedby, lastmodifieddate) select nextval('seq_eg_checklist_type'), 'PERMITDEFAULTCONDITIONS', 'Permit Default Conditions', 0, 1, now(), 1, now() where not exists(select * from eg_checklist_type where code='PERMITDEFAULTCONDITIO...
-- file:polymorphism.sql ln:488 expect:true select myleast(variadic array[1,2,3,4,-1])
.read fa18data.sql -- Q2 CREATE TABLE obedience AS SELECT seven,denero FROM students; -- Q3 CREATE TABLE smallest_int AS SELECT time,smallest FROM students GROUPBY WHERE smallest > 13 ORDER BY smallest LIMIT 20; -- Q4 CREATE TABLE matchmaker AS SELECT a.pet, a.song, a.color, b.color FROM students AS a, stude...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 19, 2015 at 09:38 PM -- Server version: 5.5.46-0ubuntu0.14.04.2 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- -- Copyright 2009-2017 the original author or authors. -- -- 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 -- -- Unles...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-05-2019 a las 18:15:30 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2018 at 08:37 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.0.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* * PostgreSQL System Views * * Copyright (c) 1996-2019, PostgreSQL Global Development Group * * src/backend/catalog/system_views.sql * * Note: this file is read in single-user -j mode, which means that the * command terminator is semicolon-newline-newline; whenever the backend * sees that, it stops and execu...
INSERT INTO Permission (id, type, permission) VALUES (12, 'URL', 'events'); INSERT INTO Role_To_Permission (role_id, permission_id) VALUES (1,12), (2,12), (3,12);
INSERT INTO oskari_maplayer(type, url, name, dataprovider_id, locale, attributes, internal, srs_name) VALUES( 'statslayer', 'resources://regionsets/ne_110m_admin_0_countries.json', 'ne_110m_countries', (SELECT MAX(id) FROM oskari_dataprovider), '{ ...
DROP TABLE IF EXISTS Card; CREATE TABLE Card (ID VARCHAR(42) PRIMARY KEY, EMBOSSING_LINE_1 VARCHAR(40) NOT NULL, CARD_NUMBER VARCHAR(21) NOT NULL, EXPIRATION_DATE DATE NOT NULL, CVV VARCHAR(3) NOT NULL);
prompt --application/set_environment set define off verify off feedback off whenever sqlerror exit sql.sqlcode rollback -------------------------------------------------------------------------------- -- -- ORACLE Application Express (APEX) export file -- -- You should run the script connected to SQL*Plus as the Oracle...
DROP TABLE IF EXISTS at_member_info; CREATE TABLE IF NOT EXISTS at_member_info ( `member_seq` INT(10) NOT NULL AUTO_INCREMENT COMMENT '사용자시퀀스', `member_id` VARCHAR(20) NOT NULL COMMENT '아이디', `member_name` VARCHAR(20) NOT NULL COMMENT '이름', `member_nick...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 23, 2021 at 02:43 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
IF NOT EXISTS ( select * from INFORMATION_SCHEMA.COLUMNS where TABLE_SCHEMA='dw' and TABLE_NAME='d_maatjavaltiot2' and COLUMN_NAME='maanosa0_koodi' ) BEGIN ALTER TABLE dw.d_maatjavaltiot2 ADD maanosa0_koodi nvarchar(3) NULL, maanosa0_fi nvarchar(200) NULL, maanosa0_sv nvarchar(200) NULL, maanosa0_en nvar...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_svmLinear_pca -- Dataset : BreastCancer -- Database : firebird -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH...
CREATE TABLE `queue_log` ( `id` bigint(255) unsigned NOT NULL AUTO_INCREMENT, `time` varchar(26) NOT NULL DEFAULT '', `callid` varchar(40) NOT NULL DEFAULT '', `queuename` varchar(20) NOT NULL DEFAULT '', `agent` varchar(20) NOT NULL DEFAULT '', `event` varchar(20) NOT NULL DEFAULT '', `data...
-- ---------------------------- -- Table structure for sys_user -- ---------------------------- DROP TABLE IF EXISTS `sys_user`; CREATE TABLE `sys_user` ( `id` int(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '编号', `login_name` varchar(100) NOT NULL COMMENT '登录名', `password` varchar(100) NOT NULL COMMENT '密码', ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 19-01-2020 a las 12:25:11 -- Versión del servidor: 5.7.29 -- Versión de PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- -- table -- CREATE TABLE {SCHEMA}fetch_adjust_deliverables ( tracker_token character varying(189) not null, campaign character varying(6138), adgroup character varying(6138), creative character varying(6138), os_name character varying(189) not null, event_token character varying(189) not null...
-- Drops the passport_demo if it exists currently -- DROP DATABASE IF EXISTS passport_demo; -- Creates the "passport_demo" database -- CREATE DATABASE passport_demo;
CREATE TABLE scm_vinyl_format( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n4.core.Container$AdditionalType * param: org.kyojo.schemaorg.m3n4.core.Clazz$URL */ additional_type VARCHAR(100) NULL, /** * type: org.kyojo.schemaorg.m3n4.core.Container$AlternateName * param: org...
/* Warnings: - The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint. */ -- DropForeignKey ALTER TABLE "Role" DROP CONSTRAINT "Role_userId_fkey"; -- DropForeignKey ALTER TABLE "_RoleToUser" DROP CONSTRAINT "_RoleToUser_B_fkey"; -- Alt...
DROP TABLE IF EXISTS tasks; CREATE TABLE IF NOT EXISTS tasks ( id bigserial, container_id bigint REFERENCES containers(id) ON UPDATE CASCADE ON DELETE CASCADE, task_type text, status text DEFAULT 'ready'::text, status_message text, query text, data jsonb, config jsonb, created_at tim...
create table SYS_SERVER ( ID varchar(32), CREATE_TS datetime(3), CREATED_BY varchar(50), UPDATE_TS datetime(3), UPDATED_BY varchar(50), NAME varchar(190), IS_RUNNING boolean, DATA text, primary key (ID) )^ create unique index IDX_SYS_SERVER_UNIQ_NAME on SYS_SERVER (NAME)^ /********...
use assessment; drop PROCEDURE if exists upgrade_27; DELIMITER $$ CREATE PROCEDURE upgrade_27 () BEGIN declare script_version_no int; declare cur_db_version_no int; set script_version_no = 27; select max(database_version_no) into cur_db_version_no from assessment.database_version; if...
/*! SET storage_engine=INNODB */; DROP TABLE IF EXISTS bus_ext_events; CREATE TABLE bus_ext_events ( record_id int(11) unsigned NOT NULL AUTO_INCREMENT, class_name varchar(128) NOT NULL, event_json varchar(2048) NOT NULL, user_token char(36), created_date datetime NOT NULL, creating_owner char(...
SELECT tab0.v1 AS v1 , tab6.v7 AS v7 , tab4.v5 AS v5 , tab5.v6 AS v6 , tab3.v4 AS v4 , tab8.v9 AS v9 , tab2.v3 AS v3 , tab7.v8 AS v8 , tab1.v2 AS v2 FROM (SELECT obj AS v1 FROM wsdbm__follows$$1$$ WHERE sub = 'wsdbm:User5369477' ) tab0 JOIN (SELECT sub AS v1 , obj AS v2 FROM wsdbm__likes$$2$$ ) ta...
-- file:plpgsql.sql ln:3882 expect:true rollback to savepoint s1
CREATE TABLE forgotten_password ( id serial not null constraint forgotten_password_pkey primary key, token text not null, email varchar(255) not null, expiry_date timestamp with time zone not null ); create unique index forgotten_...
Begin transaction BEGIN TRY INSERT INTO oaConsumer ([Id] ,[Name] ,[Secret] ,[CallbackUrl] ,[CertificateRaw] ,[VerificationCodeFormatValue] ,[VerificationCodeLength] ,[Version]) VALUES ('8608DE51-B2A7-4920-841C-498...
DROP DATABASE ClothingStore; CREATE DATABASE ClothingStore; USE ClothingStore; CREATE TABLE Manager ( Id INT AUTO_INCREMENT NOT NULL, FullName VARCHAR(70) NOT NULL, Email VARCHAR(255) UNIQUE NOT NULL, Phone VARCHAR(15), Password VARCHAR(255) NOT NULL, Salt VARCHAR(255) NOT NULL, CreateDate DATETIME DEFAU...
drop view vw_brain_session_details; create view vw_brain_session_details as select bs.id, b.attention, b.meditation, b.delta, b.theta, b.low_alpha as lowAlpha, b.high_alpha as highAlpha, b.low_beta as lowBeta, b.high_beta as highBeta, b.low_gamma as lowGamma, b.high_gamma a...
#procedure expandSumsOverlap() * // this routine will expand the sums inserted in the monomial * // in python, and prep the expression for the IR-reduce procedure * // in FORM. * //================================================================= * // we first re-write the powers of kh in the expression * // and for...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2021 at 11:17 AM -- 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...
SELECT COUNT(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = q1.site_id AND t1.id = tq1.tag...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 14 apr 2019 om 21:28 -- Serverversie: 10.1.26-MariaDB -- PHP-versie: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
prompt --application/shared_components/files/lib_prismjs_css_prism_min_css begin -- Manifest -- APP STATIC FILES: 100 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>2400405578329584 ,p_default_application_id=>100 ,p_default_...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore CREATE TABLE cr_ao_table( phase text,a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying...
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. CREATE SCHEMA IF NOT EXISTS timescaledb_information; -- Convenience view to list all hypertables and their space usage CREATE OR REPLACE...
CREATE UNIQUE NONCLUSTERED INDEX [IX_Unique_TqPathwayAssessment] ON TqPathwayAssessment ( TqRegistrationPathwayId, AssessmentSeriesId ) WHERE ([IsOptedin] = 1 AND [EndDate] IS NULL)
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgs...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 18, 2021 at 11:44 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
SET ECHO ON; SPOOL task1.lst; SET LINESIZE 300; /* * Task 1 */ -- Question 1.1 CREATE OR REPLACE VIEW VIEW_1_1 AS SELECT DISTINCT ACADEMIC.FIRST_NAME, ACADEMIC.LAST_NAME, SUBJECT.CODE, SUBJECT.NAME FROM ACADEMIC JOIN TEACHES ON ACADEMIC.STAFF# = TEACHES.LECTURER JOIN RUNNINGSUBJECT ON TEACHES.CODE = RUNNINGS...
{% if scid and fnid %} SELECT pr.proname as name, '(' || COALESCE(pg_catalog .pg_get_function_identity_arguments(pr.oid), '') || ')' as func_args, nspname FROM pg_proc pr JOIN pg_type typ ON typ.oid=prorettype JOIN pg_namespace nsp ON nsp.oid=pr.pronamespace WHERE proisagg = FALSE AND pr...
SELECT tab0.v1 AS v1 , tab2.v0 AS v0 , tab1.v2 AS v2 FROM (SELECT obj AS v0 FROM wsdbm__likes$$3$$ WHERE sub = 'wsdbm:User9656576' ) tab2 JOIN (SELECT sub AS v0 , obj AS v2 FROM sorg__text$$2$$ ) tab1 ON(tab2.v0=tab1.v0) JOIN (SELECT obj AS v1 , sub AS v0 FROM rdf__type$$1$$ ) tab0 ON(tab1...
Select Erp.RMAHead.Company As Company, Erp.RMAHead.RMANum As RMANum, Erp.RMAHead.RMADate As RMADate, Erp.Customer.Name As CustName, (Select Erp.CustCnt.Name FROM Erp.CustCnt WHERE Erp.RMAHead.Company = CustCnt.Company AND Erp.RMAHead.ConNum = Erp.CustCnt.ConNum AND Erp.RMAHead.CustNum = Erp.CustCnt.CustNum...
/* * This SQL file needs to be executed when a new CWA database is set up. * It will create the necessary roles & restrict permissions to the CWA scope. */ /* Revoke all default access to the database */ REVOKE ALL ON DATABASE cwa FROM PUBLIC; REVOKE USAGE ON SCHEMA public FROM PUBLIC; /* Create roles */ CREATE RO...
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 80023 Source Host : localhost:3306 Source Schema : test01 Target Server Type : MySQL Target Server Version : 80023 File Encoding : 65001 Date: 16/04/2021 17:31:0...
/* Write a query to print the hacker_id, name, and the total number of challenges created by each student. Sort your results by the total number of challenges in descending order. If more than one student created the same number of challenges, then sort the result by hacker_id. If more than one student created the s...
 CREATE PROCEDURE [sp_upd_Ledger] ( @LedgerID int, @Name nvarchar(50), @LedgerTypeID int ) AS UPDATE [dbo].[Ledger] SET [Name] = @Name, [LedgerTypeID] = @LedgerTypeID WHERE ([LedgerID] = @LedgerID)
CREATE TABLE IF NOT EXISTS semantic.documents( id_llamado bigint NOT NULL, filename varchar(255) NOT NULL, is_extractable boolean NOT NULL, number_of_pages integer NOT NULL, method varchar(20) NOT NULL, PRIMARY KEY (id_llamado, filename, method) );
-- boundary1.test -- -- db eval { -- SELECT rowid, a FROM t1 WHERE x='ffffffff80000000' -- } SELECT rowid, a FROM t1 WHERE x='ffffffff80000000'
-- CreateTable CREATE TABLE `Directions` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `name` VARCHAR(191) NOT NULL, `created` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), `updatedAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), PRIMARY KEY (`id`) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8m...
CREATE QUEUE [dbo].[MessageQueue];
CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%article_slice` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `clang_id` int(10) unsigned NOT NULL, `ctype_id` int(10) unsigned NOT NULL, `priority` int(10) unsigned NOT NULL, `value1` text, `value2` text, `value3` text, `value4` text, `val...
-- @testpoint: opengauss关键字passing(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor passing for select * from explain_test order by 1; close passing; end; --关键字带双引号-成功 start transaction; cursor "passing" for sele...
CREATE TABLE IF NOT EXISTS public.item_popularity ( itemid VARCHAR(255) NOT NULL, version BIGINT NOT NULL, count BIGINT NOT NULL, PRIMARY KEY (itemid));
-- -- Copyright 2009-2014 the original author or authors. -- -- 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 -- -- Unles...