text
stringlengths
1
1.05M
--- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "compound_crs" VALUES('EPSG','3901','KKJ / Finland Uniform Coordinate System + N60 height',NULL,'EPSG','2393','EPSG','5717',0); INSERT INTO "usage" VALUES('EPSG','2881','compound_crs','EPSG','3901','EPSG','3333','EPSG','1142'); INSERT I...
BEGIN CREATE TEMP FUNCTION PARSE_V3_CREATE_LOG(data STRING, topics ARRAY<STRING>) RETURNS STRUCT<`token0` STRING, `token1` STRING, `pool` STRING> LANGUAGE js AS """ const parsedEvent = { "anonymous": false, "inputs": [ {"indexed": true, "type": "address", "name": "token0"}, ...
--For testing valid select clause elements SELECT CASE WHEN 1 = 1 THEN 'True' WHEN 1 > 1 THEN 'False' WHEN 1 < 1 THEN 'False' WHEN 1 >= 1 THEN 'True' WHEN 1 <= 1 THEN 'True' WHEN 1 <> 1 THEN 'False' WHEN 1 !< 1 THEN 'Why is this a thing?' WHEN 1 != 1 THEN 'False' WHEN 1 !> 1 THEN 'NULL Handling...
#standardSQL -- -- Compute the expected and observed homozygosity rate for each individual. -- WITH variant_calls AS ( SELECT call.call_set_name, call.genotype[ORDINAL(1)] = call.genotype[ORDINAL(2)] AS O_HOM, (SELECT SUM((SELECT COUNT(gt) FROM UNNEST(call.genotype) gt WHERE gt >= 0)) FROM v.call) AS AN, ...
CREATE PROCEDURE [dbo].[MostRecentArchetypes] @PageSize int = 10 AS BEGIN SELECT TOP (@PageSize) a.Id, a.Name, a.Url, a.Created, a.Updated, COUNT(ac.CardId) AS TotalCards FROM dbo.Archetype a INNER JOIN ArchetypeCard ac ON (a.Id = ac.ArchetypeId) GROUP BY a.Id, a.Name, a.Url, a.Created, a.Upda...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.1 -- Dumped by pg_dump version 12.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
ALTER TABLE videos ADD view_count INTEGER DEFAULT 0 NOT NULL;
/* Populate tabla clientes */ INSERT INTO regiones (id, nombre) VALUES (1, 'Sudamérica'); INSERT INTO regiones (id, nombre) VALUES (2, 'Centroamérica'); INSERT INTO regiones (id, nombre) VALUES (3, 'Norteamérica'); INSERT INTO regiones (id, nombre) VALUES (4, 'Europa'); INSERT INTO regiones (id, nombre) VALUES (5, 'As...
# ----------------------------------------------------------- # PHP-Amateur database backup files # Blog: http://blog.51edm.org # Type: 系统自动备份 # Description:当前SQL文件包含了表:jkd_access、jkd_ad、jkd_admin、jkd_case、jkd_category、jkd_company、jkd_field、jkd_images、jkd_input、jkd_link、jkd_member、jkd_message、jkd_model、jkd_nav、jkd_news...
-- @testpoint: 插入超出右边界范围值,合理报错 -- @modified at: 2020-11-25 begin drop table if exists smallserial_07; create table smallserial_07 (name smallserial); for i in 1 .. 32768 loop insert into smallserial_07 values (default); end loop; end; /
use payroll execute p_add_time_entry @employee_id=25, @entry_date='2019-06-23 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=52, @entry_date='2019-06-23 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=57, @entry_date='2019-06-23 00:00:00', @hours_worked=7 execute p_add_time_entry @e...
# 订单数据库 在服务器 192.168.88.130 set names utf8; drop database if exists `ellen_shop`; create database /*!32312 if not exists*/ `ellen_shop` /*!40100 default character set utf8 */; use ellen_shop; drop table if exists `order`; create table `order` ( `id` int unsigned auto_increment primary key, `order_no` varchar(32...
INSERT INTO message VALUES (1, 'Hello'); INSERT INTO message VALUES (2, 'Good morning'); INSERT INTO message VALUES (3, 'Good afternoon'); INSERT INTO message VALUES (4, 'Good evening'); INSERT INTO message VALUES (5, 'Bye bye');
/** * NOVIUS OS - Web OS for digital communication * * @copyright 2011 Novius * @license GNU Affero General Public License v3 or (at your option) any later version * http://www.gnu.org/licenses/agpl-3.0.html * @link http://www.novius-os.org */ ALTER TABLE `nos_page` CHANGE `page_lang` `page_cont...
-- Dumping data for table `user` LOCK TABLES `user` WRITE; INSERT INTO `user` (`id`, `name`, `created_at`, `updated_at`, `deleted_at`) VALUES (1,'Giovanni',NOW(),NOW(),NULL), (2,'Alessia',NOW(),NOW(),NULL), (3,'PHP',NOW(),NOW(),NULL), (4,'Demo',NOW(),NOW(),NULL); UNLOCK TABLES;
CREATE TABLE ACT_DMN_DATABASECHANGELOGLOCK (ID INTEGER NOT NULL, LOCKED NUMBER(1) NOT NULL, LOCKGRANTED TIMESTAMP, LOCKEDBY VARCHAR2(255), CONSTRAINT PK_ACT_DMN_DATABASECHANGELOGLO PRIMARY KEY (ID)); DELETE FROM ACT_DMN_DATABASECHANGELOGLOCK; INSERT INTO ACT_DMN_DATABASECHANGELOGLOCK (ID, LOCKED) VALUES (1, 0); UP...
insert into eg_role (id,name,code,description,createddate,createdby,lastmodifiedby,lastmodifieddate,version,tenantid)values (nextval('SEQ_EG_ROLE'),'EGF Bill Creator','EGF-BILL_CREATOR','Employee who creates Bills mainly expense bill',now(),1,1,now(),0,'pb.phagwara') ON CONFLICT (code, tenantid) DO NOTHING; insert int...
SET CLIENT_MIN_MESSAGES TO INFO; SET CLIENT_ENCODING = 'UTF8'; CREATE SCHEMA main; SET SEARCH_PATH = main;
 DROP FUNCTION IF EXISTS public.db_dependent_views(text); CREATE OR REPLACE FUNCTION public.db_dependent_views(IN p_tablename text) RETURNS TABLE(view_schema text, view_name text, depth integer, path text[]) AS $BODY$ BEGIN RETURN QUERY WITH RECURSIVE views_list AS ( SELECT DISTINCT u.view_schema::text ...
DELIMITER ;; DROP PROCEDURE IF EXISTS GetExportKey;; CREATE PROCEDURE GetExportKey( IN `in_token_id` int(11), IN `in_token_guid` varchar(64) ) BEGIN /** ********************************************************************** ** * Function generates an Export Key, allowing an Export to take place. * *...
-- @testpoint: 测试rownum在联结中的情况 drop table if exists student_bk; drop table if exists student; create table student ( id int primary key, name varchar(10) not null, class int ); create table student_bk ( id_bk int primary key, name_bk varchar(10) not null, class_bk int ); insert into student val...
select 'BUFFER_POOL_STATISTICS' CNAME, to_char(systimestamp, 'yyyy-mm-dd"T"hh24:mi:ss.ff') CTIMESTAMP, v$buffer_pool_statistics.* from v$buffer_pool_statistics /
insert into port_enc select port.port_id as port_id, port.name as name, port.latitude as latitude, port.longitude as longitude, port.offloadcapacity as offloadcapacity, port.offloadtime as offloadtime, port.harbordepth as harbordepth, port.available as available from port; insert into aggr_count...
-- MySQL dump 10.13 Distrib 5.7.24, for Win64 (x86_64) -- -- Host: localhost Database: staging -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Авг 13 2018 г., 16:43 -- Версия сервера: 10.1.34-MariaDB -- Версия PHP: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
--- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "geodetic_datum" VALUES('EPSG','1024','Hungarian Datum 1909',NULL,'EPSG','7004','EPSG','8901','1909-01-01',NULL,NULL,0); INSERT INTO "usage" VALUES('EPSG','13076','geodetic_datum','EPSG','1024','EPSG','1119','EPSG','1153'); INSERT INTO ...
CREATE TABLE badgelang ( id CHAVE NOT NULL, id_badge CHAVE NOT NULL, id_lang CHAVE NOT NULL, name CHARACTER VARYING(64), description CHARACTER VARYING(255), group_name CHARACTER VARYING(255), CONSTRAINT pk_badgelang PRIMARY KEY (id) );
DROP TABLE IF EXISTS `apps`; CREATE TABLE `apps` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `uid` bigint(20) unsigned NOT NULL DEFAULT '0', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_at` timestamp NULL DEFAULT N...
db.users.insertOne({name: 'DANDAN', email: 'dan@mail.com', passwordHash: 'password', stories: [{title: 'Something', genre: 'Triller', body: 'Enter Story'}], comments:[{name: 'Editor of All Books', comment: 'This is the best thing I have ever read!'}]}) db.users.insertOne({name: , email:, passwordHash: , stories: [], c...
-- -- Triggers to set last_modified on INSERT/UPDATE -- DROP TRIGGER IF EXISTS tgr_records_last_modified ON records; DROP TRIGGER IF EXISTS tgr_deleted_last_modified ON deleted; CREATE OR REPLACE FUNCTION bump_timestamp() RETURNS trigger AS $$ DECLARE previous TIMESTAMP; current TIMESTAMP; BEGIN previous :...
CREATE TABLE source ( appkey varchar, day_id int, channel varchar, pv int, uv int, retry_done int ) WITH ( 'connector' = 'mysql-x' ,'url' = 'jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=false' ,'table-name' = 'starrocks_test' ...
SET DEFINE OFF; Insert into MDM_OWNER.REF_GENDER (ID_PK, VERSION, CREATED_TS, UPDATED_TS, UPDATED_BY_USER, UPDATED_BY_TXN_ID, CONFIG_LANGUAGE_CODE_KEY, KEY, VALUE) Values ('1', 0, TO_TIMESTAMP('7/4/2017 5:23:00.919000 PM','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM'), TO_TIMESTAMP('7/4/2017 5:23:00.919000 PM','fmMM...
Name Length EffectiveLength TPM NumReads ENST00000303460.4 1957 1759.2 0 0 ENST00000546378.1 2035 1837.2 0 0 ENST00000243103.3 847 649.348 0 0 ENST00000243056.4 2395 2555.05 0.0173509 1 ENST00000303406.4 2305 2261.56 0.114436 5.83783 ENST00000430889.2 1665 1561.63 3.55316 125.162 ENST00000312492.2 1610 1412.2 0 0 ENST0...
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema Migohood ...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore DROP TABLE IF EXISTS ao; CREATE TABLE ao (a INT) ; insert into ao select generate_series(1, 100);
select salaries.department as Department, employee.name as Employee, salaries.salary as Salary from employee join (select d.id as DepartmentId, d.name as Department, max(e.salary) as Salary from employee e left join department d on e.departmentid = d.id group by d.id) as salaries on employee.salary = salar...
-- This file should undo anything in `up.sql` DROP TABLE news;
/****** Object: Table [auth].[Clients] Script Date: 5/3/2017 10:36:32 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'auth' AND TABLE_NAME = 'Clients') CREATE TABLE auth.[Clients] ( [Id] [int] IDENTITY(1,1) NOT NULL, ...
DEFINE RECORD CDD$TOP.PO.PO_PARTCROSS DESCRIPTION IS /*Vendor Part Cross Reference*/. PO_PARTCROSS_CDD STRUCTURE. /* Element = PRODUCT Description = Product Number */ PRODUCT DATATYPE IS TEXT SIZE IS 14. /* Element = VENDOR Description = Vendor...
CREATE TABLE IF NOT EXISTS 'Patient_Log' ( 'plkey' INTEGER PRIMARY KEY AUTOINCREMENT, 'P_NHS_number_OLD' int(10), 'P_NHS_number_NEW' int(10), 'P_first_name_OLD' varchar(20), 'P_first_name_NEW' varchar(20), 'P_middle_name_OLD' varchar(20), 'P_middle_name_NEW' varchar(20), 'P_surname_OLD' varchar(...
-- @testpoint: 指定列名,在一条insert语句中插入两列数据 -- @modify at: 2020-11-16 --建表 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), c_char...
/* */ USE [admindb]; GO IF OBJECT_ID('dbo.update_server_name','P') IS NOT NULL DROP PROC dbo.[update_server_name]; GO CREATE PROC dbo.[update_server_name] @PrintOnly bit = 1 AS SET NOCOUNT ON; -- {copyright} DECLARE @currentHostNameInWindows sysname; DECLARE @serverNameFromSysServers sysname; S...
CREATE DATABASE IF NOT EXISTS `gadugadu` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; USE `gadugadu`; -- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: gadugadu -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101...
/* Navicat Premium Data Transfer Source Server : 阿里云MySQL Source Server Type : MySQL Source Server Version : 80016 Source Host : 47.100.230.188:3306 Source Schema : db03 Target Server Type : MySQL Target Server Version : 80016 File Encoding : 65001 Date: 15/03/2020 1...
DROP TABLE IF EXISTS `suggestion_result_mapping`; CREATE TABLE `suggestion_result_mapping` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `step_result_id` BIGINT(20) DEFAULT NULL, `suggestion_id` INT(11) DEFAULT NULL, `result` VARCHAR(255) DEFAULT NULL, `message` TEXT, `meta_d...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2021 at 02:19 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 3.4.11.1deb2+deb7u8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 17, 2018 at 03:03 AM -- Server version: 5.5.60 -- PHP Version: 5.4.45-0+deb7u14 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
create table cetcal_referentiel_question ( id INT NOT NULL AUTO_INCREMENT, clef_question varchar(4) NOT NULL, question varchar(256) NOT NULL, PRIMARY KEY (id) ); INSERT INTO cetcal_referentiel_question (clef_question, question) VALUES ('s002','Vous êtes'), ('s003', 'Vous êtes installé'), ('s024','Vous êtes'),...
CREATE DATABASE CarRental USE CarRental CREATE TABLE Categories( Id INT PRIMARY KEY IDENTITY, CategoryName NVARCHAR(50) NOT NULL, DailyRate INT, WeeklyRate INT, MonthlyRate INT, WeekendRate INT ) CREATE TABLE Cars( Id INT PRIMARY KEY IDENTITY, PlateNumber NVARCHAR(10) NOT NULL, Manufacturer NVARCHAR(30) NOT...
metadata :name => "Shellsafe", :description => "Validates that a string is shellsafe", :author => "P. Loubser <pieter.loubser@puppetlabs.com>", :license => "ASL 2.0", :version => "1.0", :url => "https://docs.puppetlabs.com/mcolle...
DROP TABLE IF EXISTS `access_tokens`; CREATE TABLE `access_tokens` ( `oauth_token` varchar(40) NOT NULL, `client_id` char(36) NOT NULL, `user_id` int(11) unsigned NOT NULL, `expires` int(11) NOT NULL, `scope` varchar(255) DEFAULT NULL, PRIMARY KEY (`oauth_token`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; DROP...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : purelamo Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-11-29 00:20:17 */ SET FOREIGN_KEY_CHECKS=0; -- ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2017 at 12:48 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
/* LOOKUP TABLES. Tabelas que contêm valores válidos para vários campos empregados para a identificação de indivíduos. */ DROP TABLE IF EXISTS AREAGEOGRAFICA; DROP TABLE IF EXISTS NACIONALIDADE; DROP TABLE IF EXISTS OBITOFONTE; DROP TABLE IF EXISTS RACA; DROP TABLE IF EXISTS SEXO; DROP TABLE IF EXISTS SITUAC...
-- boundary2.test -- -- db eval { -- SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a DESC -- } SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a DESC
UPDATE [ACT_DMN_DATABASECHANGELOGLOCK] SET [LOCKED] = 1, [LOCKEDBY] = '192.168.1.5 (192.168.1.5)', [LOCKGRANTED] = '2019-03-13T21:44:43.337' WHERE [ID] = 1 AND [LOCKED] = 0 CREATE UNIQUE NONCLUSTERED INDEX ACT_IDX_DEC_TBL_UNIQ ON [ACT_DMN_DECISION_TABLE]([KEY_], [VERSION_], [TENANT_ID_]) INSERT INTO [ACT_DMN_DATABA...
/****** Object: Table [T_MiscPaths] ******/ /****** RowCount: 10 ******/ SET IDENTITY_INSERT [T_MiscPaths] ON INSERT INTO [T_MiscPaths] (TMP_ID, Server, Client, Function, Comment) VALUES (1,'na','DMS3_Xfer\','AnalysisXfer ','') INSERT INTO [T_MiscPaths] (TMP_ID, Server, Client, Function, Comment...
-- ======================================================================= -- File: pgl_spec.sql -- -- Description: -- This package contains functions and procedured used with the P&G DTCM -- -- Revisions: -- Date userid revision made -- ----------- ------ ------------------------------------------- -...
PRINT N'Adding DB Audit Columns' ALTER TABLE dbo.[PIMS_ACTIVITY_MODEL] ADD [DB_CREATE_TIMESTAMP] DATETIME NOT NULL DEFAULT GETUTCDATE() , [DB_CREATE_USERID] NVARCHAR(30) NOT NULL DEFAULT user_name() , [DB_LAST_UPDATE_TIMESTAMP] DATETIME NOT NULL DEFAULT GETUTCDATE() , [DB_LAST_UPDATE_USERID] NVARCHAR(30)...
-- boundary2.test -- -- db eval { -- SELECT a FROM t1 WHERE r < 256 ORDER BY a -- } SELECT a FROM t1 WHERE r < 256 ORDER BY a
CREATE TABLE movies (ROWKEY INT PRIMARY KEY, title VARCHAR, release_year INT) WITH (kafka_topic='movies', partitions=1, value_format='avro'); CREATE STREAM ratings (ROWKEY INT KEY, rating DOUBLE) WITH (kafka_topic='ratings', partitions=1, value_format='avro'); CREATE STREAM rated_movies WITH (kafka_topic=...
CREATE TABLE zitadel.projections.apps( id STRING, project_id STRING NOT NULL, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, resource_owner STRING NOT NULL, state INT2, sequence INT8, name STRING, PRIMARY KEY (id), INDEX idx_project_id (project_id) ); CREATE TABLE zit...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 17, 2019 at 03:55 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
#standardSQL # % sites with links to to the same page, # or javascript:void # NOTE: same_page.total includes empty hash links (#) but excludes all others (#foobar) SELECT client, COUNT(0) AS total_sites, COUNTIF(total_anchors > 0) AS sites_with_anchors, COUNTIF(same_page > 0) AS has_same_page, COUNTIF(hash_o...
/* This script deletes any duplicate metering point records in the MeteringPoint table (based on MeteringPointId) It ensures that the one metering point that has Charge Links is kept. Note: It has been verified that it is only possible to link a Charge to a metering point while there is no metering point duplicates in...
--Total loss incurred on each channel by credit risky, hihgly educated men with non-zero dependents create or alter procedure lossByEducated_risky as begin declare @web_loss decimal(15,2); declare @cat_loss decimal(15,2); declare @total_loss decimal(15,2); select @web_loss = sum(ws_net_profit) from w...
with base as ( select * from {{ source('dbt_artifacts', 'artifacts') }} ), fields as ( select data:metadata:invocation_id::string as command_invocation_id, generated_at, path, artifact_type, data from base ), duduped as ( select *, row_n...
-- database: xprofiler_logs -- CREATE DATABASE If NOT EXISTS `xprofiler_logs` CHARACTER SET UTF8; CREATE DATABASE `xprofiler_logs` CHARACTER SET UTF8; USE xprofiler_logs; -- template: `process_${MM-DD}` DROP TABLE IF EXISTS `process`; CREATE TABLE `process`( `id` INT UNSIGNED AUTO_INCREMENT COMMENT 'unique auto in...
-- Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef CREATE TYPE [dbo].[udtBigIntList] AS TABLE ( [Value] BIGINT )
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 18, 2020 lúc 04:08 PM -- Phiên bản máy phục vụ: 10.1.36-MariaDB -- Phiên bản PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
source DDL.sql; source iterate.sql; source realProf.sql; source realMod.sql; source realSup.sql; source realuser.sql; source CS4344.sql; source project.sql; source participate.sql; source enrolled.sql; source admin.sql;
CREATE TABLE PROJECTS ( PROJECT_ID INT NOT NULL IDENTITY (1, 1), NAME VARCHAR(70) NOT NULL, BUDGET FLOAT NOT NULL, BUDGET_USED FLOAT NOT NULL, CONTROLLING_DEPARTMENT INT NOT NULL, EID NUMERIC(10) NOT NULL...
SELECT p.PartId, p.Description, SUM(pn.Quantity) AS Required, AVG(p.StockQty) AS [In Stock], ISNULL(SUM(op.Quantity), 0) AS Ordered FROM Parts AS p JOIN PartsNeeded pn ON pn.PartId = p.PartId JOIN Jobs AS j ON j.JobId = pn.JobId LEFT JOIN Orders AS o ON o.JobId = j.JobId LEFT JOIN OrderPar...
-- 创建文章数据表 CREATE TABLE `final_article` ( `aid` INT(10) NOT NULL AUTO_INCREMENT COMMENT '主键', `cate_id` TINYINT NOT NULL DEFAULT 1 COMMENT '文章分类ID', `title` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '文章标题', `cover_img` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '文章封面图', `subtitle` VARCHAR(100) NOT NULL DEFAULT '...
-- Author: iElden -- Making this is like spain but s is silent -- Give x2 yield instead of x3 UPDATE ModifierArguments SET Value='2' WHERE ModifierId='TRAIT_INTERCONTINENTAL_INTERNATIONAL_FAITH' AND Name='Amount'; UPDATE ModifierArguments SET Value='3' WHERE ModifierId='TRAIT_INTERCONTINENTAL_INTERNATIONAL_GOLD' AND N...
CREATE TABLE IntrospecTbl%Machine% (ID int NOT NULL GENERATED BY DEFAULT AS IDENTITY, DBTEXT varchar(255) NOT NULL, DBINTEGER int, DBLONGINTEGER bigint, DBDECIMAL decimal(28, 8), DBBOOLEAN smallint, DBDATETIME timestamp, DBBINARYDATA blob, PRIMARY KEY (ID), CONSTRAINT CHECK_DBBOOLEAN%Machine% CHECK (DBBOOLEAN IN(0,1)))...
CREATE TABLE [dbo].[UserRoles] ( [UserId] BIGINT NOT NULL, [RoleId] BIGINT NOT NULL, CONSTRAINT [PK_UserRoles] PRIMARY KEY CLUSTERED ([UserId] ASC, [RoleId] ASC), CONSTRAINT [FK_UserRoles_Roles_RoleId] FOREIGN KEY ([RoleId]) REFERENCES [dbo].[Roles] ([Id]) ON DELETE CASCADE, CONSTRAINT [FK_UserRole...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 21 Mar 2018 pada 15.33 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
# --- !Ups ALTER chicago_walking_2po_4pgr ADD geom GEOMETRY; UPDATE chicago_walking_2po_4pgr set geom=ST_Transform(geog, 3857); CALL CreateSpatialIndex(null, 'SPATIAL', 'GEOM', '3857');
-- pager1.test -- -- execsql { -- PRAGMA page_size = 1024; -- PRAGMA auto_vacuum = full; -- PRAGMA locking_mode=exclusive; -- CREATE TABLE t1(a, b); -- INSERT INTO t1 VALUES(1, 2); -- } PRAGMA page_size = 1024; PRAGMA auto_vacuum = full; PRAGMA locking_mode=exclusive; CREATE TABLE t1(a, b); INSERT ...
insert into eg_role (id,name,code,description,createddate,createdby,lastmodifiedby,lastmodifieddate,version,tenantid)values (nextval('SEQ_EG_ROLE'),'TL Counter Employee','TL_CEMP','Counter Employee in Trade License who files TL on behalf of the citizen',now(),1,1,now(),0,'pb.amritsar') ON CONFLICT (code, tenantid) DO N...
create or replace type yatzy_num_tab is table of number; /
-- Aspect_of_the_hawk -- By Mikadmin For ARKania -- fix error consol : Scriptname:`spell_hun_aspect_of_the_beast` spell (spell_id:13161) does not exist in `Spell.dbc` UPDATE `spell_script_names` SET `spell_id` = '13165', `ScriptName` = 'spell_hun_aspect_of_the_hawk' WHERE `spell_id` =13161;
INSERT INTO gapi_configurations (id, config_key, config_value) VALUES ('5ce8297c18549b0001c370c6', 'GAPI_REQUEST_LOGS_ERRORS_DURATION_DAYS', '90')
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: izone -- ------------------------------------------------------ -- Server version 5.7.24-0ubuntu0.16.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
DECLARE l_principal VARCHAR2(20) := 'APEX_180200'; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => 'oci_object_storage_acl.xml', description => 'An ACL for the oraclecloud.com website', principal => l_principal, is_grant => TRUE, privilege => 'connect', start_date => S...
create table foo as select i a, i b from generate_series(1, 10) i; -- expect this query terminated by 'test pg_terminate_backend' 1&:create temp table t as select count(*) from foo where pg_sleep(20) is null; -- extract the pid for the previous query SELECT pg_terminate_backend(procpid,'test pg_terminate_backend') FR...
-- Copyright (c) 2017-2021 VMware, Inc. or its affiliates -- SPDX-License-Identifier: Apache-2.0 -- Alignment for the 'name' data type changed to 'char' in 8.4; -- checks tables and indexes. So, if a name data type column is not the first -- column in the table, the resultant alignment in the target cluster will be --...
CREATE OR REPLACE PROCEDURE Insert_Menu_Item(json_data JSON) LANGUAGE plpgsql AS $$ BEGIN INSERT INTO menu_items (menu_cod,item_cod) SELECT menu_cod,item_cod FROM json_populate_record( NULL::menu_items, $1 ); END $$
-- source CREATE TABLE player_source ( player_id BIGINT, team_id BIGINT, player_name VARCHAR, height DOUBLE ) WITH ( 'connector.type' = 'filesystem', 'connector.path' = 'file:///Users/chenshuai1/github/flink-sql-submit/src/main/resources/player.csv', 'format.type' = 'csv', 'format.fields.0.name' = 'play...
create table set_tag ( id uuid default gen_random_uuid(), tag set not null, set set not null, created_at timestamptz not null default now(), check(((tag).label) is not null), check(((tag).bucket).label is not null), check(((tag).bucket).audience is not null), check(((set).label) is no...
-- sort.test -- -- execsql {SELECT roman FROM t1 ORDER BY roman} SELECT roman FROM t1 ORDER BY roman
 CREATE PROCEDURE [dbo].[NewParentConfiguration] @ParentConfigurationName NVARCHAR(128) ,@Payload NVARCHAR(MAX) ,@ScriptName NVARCHAR(128) ,@ScriptPath NVARCHAR(255) AS BEGIN INSERT INTO ParentConfiguration ( ParentConfigurationName ,Payload ,ScriptName ,ScriptPath ,CreateDate ) VALUES ( @P...
prompt --application/shared_components/user_interface/templates/list/top_navigation_tabs begin -- Manifest -- REGION TEMPLATE: TOP_NAVIGATION_TABS -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.2' ,p_default_workspace_id=>9690978936188613 ,p_default_applicat...
create table proc_sfb.fa_giz_macarra_30_app as SELECT imovel.idt_imovel, imovel.cod_imovel, imovel.ind_status_imovel, imovel.ind_tipo_imovel, imovel.nom_imovel, imovel.idt_municipio, imovel.num_area_imovel, imovel.num_modulo_fiscal, imovel.dat_criacao, imovel.dat_atualizacao, imovel.fl...
ALTER TABLE users_parks ADD visited BOOLEAN; ALTER TABLE users_parks RENAME COLUMN id to passport_id;
select a.c_custkey, 123::INT8 as const_val, b.min_name from customer a left outer join ( select c_custkey, min(c_name) as min_name from customer group by c_custkey) b on a.c_custkey = b.c_custkey order by a.c_custkey;
BEGIN TRAN BEGIN TRY CREATE TABLE [PostComments] ( [Id] [int] NOT NULL IDENTITY, [AuthorName] [varchar](50), [AuthorEmail] [varchar](255), [AuthorWebsite] [varchar](200), [Comment] [varchar](max) NOT NULL, [IpAddress] [varchar](45) NOT NULL, [Avatar] [varchar](200), [CreationDate] [dat...
select 1 as id union all select * from {{ ref('node_0') }} union all select * from {{ ref('node_3') }} union all select * from {{ ref('node_6') }} union all select * from {{ ref('node_8') }} union all select * from {{ ref('node_17') }} union all select * from {{ ref('node_25') }}
-- @testpoint:openGauss关键字char(非保留),作为列名带反引号,合理报错 --创建表 drop table if exists char_test; create table char_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...