text stringlengths 1 1.05M |
|---|
/*
* This test is for Linux/glibc systems and others that implement proper
* locale classification of Unicode characters with high code values.
* It must be run in a database with UTF8 encoding and a Unicode-aware locale.
*/
SET client_encoding TO UTF8;
--
-- Test the "high colormap" logic with single characters a... |
ALTER TABLE `{prefix}translations` ADD `is_new` TINYINT(3) UNSIGNED NOT NULL DEFAULT '1'
|
--
-- Server must be started with -O option (pg_ctl start -o "-O") to allow catalog modification.
-- Or, ERROR: System catalog modifications are currently disallowed.
--
SET search_path = public;
BEGIN;
CREATE FUNCTION pg_catalog.pg_sync_file(text) RETURNS void
AS '$libdir/textsearch_senna', 'pg_sync_file'
LANGUAG... |
-- Table definitions for the tournament project.
--
-- Put your SQL 'create table' statements in this file; also 'create view'
-- statements if you choose to use it.
--
-- You can write comments in this file by starting them with two dashes, like
-- these lines here.
DROP DATABASE IF EXISTS tournament;
CREATE DATABAS... |
drop table if exists map_test;
create table map_test engine=TinyLog() as (select (number + 1) as n, ([1, number], [1,2]) as map from numbers(1, 5));
select mapPopulateSeries(map.1, map.2) from map_test;
select mapPopulateSeries(map.1, map.2, toUInt64(3)) from map_test;
select mapPopulateSeries(map.1, map.2, toUInt64(1... |
DROP TABLE IF EXISTS TB_DEFEITO;
DROP TABLE IF EXISTS TB_PECA;
DROP TABLE IF EXISTS TB_VEICULO;
DROP TABLE IF EXISTS TB_REGISTRO;
DROP TABLE IF EXISTS TB_DEFEITO_PECA;
DROP TABLE IF EXISTS TB_PECA_VEICULO;
-- DEFEITO --
CREATE TABLE IF NOT EXISTS TB_DEFEITO (
id INT AUTO_INCREMENT PRIMARY KEY,
descricao VARCHAR(2... |
#Criando banco de dados
CREATE DATABASE IF NOT EXISTS `bdclientes` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `bdclientes`;
#Criando usuário rede com senha rede
CREATE USER 'rede'@'localhost' IDENTIFIED BY 'rede';
GRANT ALL PRIVILEGES ON bdclientes.* TO 'rede'@'localhost';
FLUSH PRIVILEGES;
#Criando tabela clien... |
CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES (E'AI', E'அங்கியுலா');
INSERT INTO "list" ("id", "value") VALUES (E'AO', E'அங்கோலா');
INSERT INTO "list" ("id", "value") VALUES (E'AZ', E'அசர்பைஜான்');
INSERT INTO "list" ("id", "value") ... |
CREATE DATABASE IF NOT EXISTS `lanchonete` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `lanchonete`;
-- MariaDB dump 10.17 Distrib 10.4.6-MariaDB, for Win64 (AMD64)
--
-- Host: localhost Database: lanchonete
-- ------------------------------------------------------
-- Server version 10.4.6-MariaDB
/*!40... |
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: classmysql.engr.oregonstate.edu:3306
-- Generation Time: Jun 11, 2018 at 02:20 AM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 7.0.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... |
create external table spectrum_eltblogpost.sales(
salesid integer,
listid integer,
sellerid integer,
buyerid integer,
eventid integer,
dateid smallint,
qtysold smallint,
pricepaid decimal(8,2),
commission decimal(8,2),
saletime timestamp)
row format delimited
fields terminated by '\t'
stored as textfile
location 's3://... |
-- This file should undo anything in `up.sql`
alter table payment_service.payment_status_transitions
drop constraint fk_catalog_payment_id;
alter table payment_service.subscription_status_transitions
drop constraint fk_subscription_id; |
INSERT INTO `person` (`first_name`,`last_name`,`age`,`favourite_colour`,`hobby`) VALUES("Kenneth","Adams","38","black","3D printing,Shoemaking");
INSERT INTO `person` (`first_name`,`last_name`,`age`,`favourite_colour`,`hobby`) VALUES("Ryan","Reed","36","green","LARPing,Kayaking");
INSERT INTO `person` (`first_name`,`la... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 02 Apr 2018 pada 18.48
-- Versi Server: 10.1.13-MariaDB
-- PHP Version: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... |
CREATE TABLE zones (
id SERIAL PRIMARY KEY,
name citext NOT NULL,
region_id INTEGER NOT NULL REFERENCES regions (id),
uuid UUID NOT NULL UNIQUE,
UNIQUE (name, region_id)
);
CREATE TABLE wards_zones (
ward_id INTEGER REFERENCES wards (id) NOT NULL,
zone_id INTEGER REFERENCES zones (id... |
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE GetAddrWhichGotLargestTotalInOrOut
-- Add the parameters for the stored procedure here
AS
BEGIN
-- SET NOCOUNT... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 22, 2021 at 06:31 AM
-- Server version: 10.4.10-MariaDB
-- PHP Version: 7.4.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET... |
--
-- PostgreSQL database dump
--
--
-- Data for Name: storage_pool; Type: TABLE DATA; Schema: public; Owner: engine
--
INSERT INTO storage_pool (id, name, description, storage_pool_type, storage_pool_format_type, status, master_domain_version, spm_vds_id, compatibility_version, _create_date, _update_date, quota_enfo... |
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : CaretClassifier_svmPoly
-- Dataset : FourClass_10
-- Database : mssql
-- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
-- Model deployment code
WITH kernel_i... |
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 5.7.24 : Database - qlhs
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@... |
--test ceil function with float type
create table test_number(
test_int int,
test_smallint smallint,
test_numeric numeric(38,10),
test_float float,
test_real real,
test_double double,
test_monetary monetary);
-----------------
insert into test_number values( 1,2,1940080.2381928563,763378.5813701674,638.688... |
--Test subquery in update statment
create class t1(name varchar(20), price float(2));
insert into t1 values('English', 21);
insert into t1 values('Chinese', 22);
insert into t1 values('Math', 23);
insert into t1 values('CS', 21);
insert into t1 values('Bio', 22);
update t1 set price = 25.1
where price = (select pri... |
HDF5 "taindices.h5" {
DATASET "3d" {
DATATYPE H5T_STD_I32LE
DATASPACE SIMPLE { ( 2, 10, 10 ) / ( 2, 10, 10 ) }
SUBSET {
START ( 0, 1, 2 );
STRIDE ( 1, 3, 3 );
COUNT ( 2, 2, 2 );
BLOCK ( 1, 2, 2 );
DATA {
(0,1,2): 12, 13, 15, 16,
(0,2,2): 22, 23, 25, 26,
(0,4,2)... |
--Clean up all objects related to the user
Execute DBMS_AQADM.STOP_QUEUE ( queue_name => 'plsql_userTEQ');
Execute DBMS_AQADM.drop_transactional_event_queue(queue_name =>'plsql_userTEQ',force=> TRUE);
--Cleans up all objects related to the deliverer
Execute DBMS_AQADM.STOP_QUEUE ( queue_name => 'plsql_deliveryTE... |
alter table "railroad_systems"."shipping_orders" alter column "car_loads" drop not null;
|
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Adding foreign keys to [edfi].[Interventio... |
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2017] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may ob... |
PRAGMA foreign_keys=ON;
BEGIN TRANSACTION;
CREATE TABLE person(
id INTEGER PRIMARY KEY,
name VARCHAR(255) NOT NULL,
phone VARCHAR(20),
email VARCHAR(255),
whatsapp VARCHAR(20),
person_contact INTEGER REFERENCES person(id)
);
COMMIT;
|
/*
Data Wrangling and AB Testing class
- Find the last item each user viewed, but didn't purchase
so the marketing team can send them an email to see if they want to buy it
*/
SELECT
sub_rank.user_id
, users.email_address
, sub_rank.item_id AS most_recent_viewItemId
, items.name AS item_n... |
/********** OBSERVATION **********/
--HINT DISTRIBUTE_ON_KEY(concept_id)
SELECT
obs.concept_id,
obs.concept_name,
'Observation' AS treemap,
cast(null as varchar(20)) as concept_hierarchy_type,
max(c1.concept_name) AS level1_concept_name,
max(c2.concept_name) AS level2_concept_name,
max(c3... |
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50527
Source Host : localhost:3306
Source Schema : febs_quartz
Target Server Type : MySQL
Target Server Version : 50527
File Encoding : 65001
Date: 25/12/2020 16:17... |
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : CaretRegressor_rf_pca
-- Dataset : boston
-- 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 "ADS_sca_1_OU... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 29-06-2021 a las 04:23:23
-- Versión del servidor: 10.4.11-MariaDB
-- Versión de PHP: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... |
-- tables
DROP TABLE IF EXISTS `[db_prefix]_posts`, `[db_prefix]_rating`, `[db_prefix]_voting_track`, `[db_prefix]_main`, `[db_prefix]_cmts`, `[db_prefix]_views_track`;
-- PQ statistics
DELETE FROM `sys_account_custom_stat_elements` WHERE `Label` = '_bx_blog_Blog';
-- settings
SET @iCategoryID := (SELECT `ID` ... |
-- Drop table locations
DROP TABLE locations;
-- Delete an entry from the locations table
DELETE FROM locations WHERE id=1; |
USE `essentialmode`;
INSERT INTO `addon_account` (name, label, shared) VALUES
('society_realestateagent','Agent immobilier',1)
;
INSERT INTO `jobs` (name, label) VALUES
('realestateagent','Agent immobilier')
;
INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('real... |
autocommit off;
create table test_to_date_table(
c1 varchar(500),
c2 varchar(500),
c3 varchar(500),
c4 varchar(500)
);
insert into test_to_date_table (c1,c2,c3) values('1976 09 06 11:11:11 ','yyyy mm dd hh:mm:ss','9/6/1976');
SELECT c1,c2, to_date( c1,c2) FROM test_to_date_table;
SELECT c4, to_date( c4... |
:setvar DatabaseName "DbTester_Test_ProcessHelperTest"
USE $(DatabaseName)
PRINT 'Creating Table...'
IF OBJECT_ID('dbo.Words') IS NOT NULL
BEGIN
DROP TABLE dbo.Words
END
CREATE TABLE dbo.Words(
Word nvarchar(256)
) |
-- create-db-security.sql: Security Master
-- design has one document
-- security and associated identity key
-- bitemporal versioning exists at the document level
-- each time a document is changed, a new row is written
-- with only the end instant being changed on the old row
CREATE TABLE sec_schema_version (
... |
-- file:insert.sql ln:132 expect:true
create table part_ee_ff1 partition of part_ee_ff for values from (1) to (10)
|
delete from eg_userrole where userid = (select id from eg_user where username='narasappa');
delete from eg_userrole where userid = (select id from eg_user where username='manas');
delete from eg_userrole where userid = (select id from eg_user where username='ramana');
delete from eg_userrole where userid = (select id f... |
CREATE TABLE Student (
ID integer PRIMARY KEY,
FirstName varchar(50),
LastName varchar(50)
);
CREATE TABLE Sport (
ID integer PRIMARY KEY,
Description varchar(50)
);
CREATE TABLE Student_Sport (
ID_Student integer,
ID_Sport integer,
PRIMARY KEY (ID_Student,ID_Sport),
FOREIGN KEY (ID_Student) REFERENCES Student(ID),
FOR... |
wiktionary-cldr-merge hun http://wiktionary.org/ CC BY-SA
00006032-a hun:lemma relatív
00006032-a hun:lemma viszonylagos
00011757-a hun:lemma absztrakt
00012689-a hun:lemma képzelt
00013160-a hun:lemma konkrét
00014858-a hun:lemma bőséges
00014858-a hun:lemma kiadós
00017782-a hun:lemma elfogadható
00021766-a h... |
/*
SQLyog Ultimate v12.08 (64 bit)
MySQL - 5.7.32-log : Database - zy-blog-dev
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KE... |
/*L
Copyright SAIC, Ellumen and RSNA (CTP)
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
L*/
create temporary table patient_temp as
select p.patient_pk_id
from patient p, trial_data_provenance tdp
where p.trial... |
drop table if exists versions;
create table catalogs (
version int unsigned not null primary key,
records int unsigned not null default 0,
inserted int unsigned not null default 0,
updated int unsigned not null default 0,
deleted int unsigned not null default 0
) engine=MyISAM;
drop table if exists rfcs;
cre... |
/*
Navicat PGSQL Data Transfer
Source Server : 115.28.76.20
Source Server Version : 90304
Source Host : 115.28.76.20:5432
Source Database : mydb
Source Schema : public
Target Server Type : PGSQL
Target Server Version : 90304
File Encoding : 65001
Date: 2015-10-10 14:36:42
*... |
/*
Query para publicar a tabela.
Esse é o lugar para:
- modificar nomes, ordem e tipos de colunas
- dar join com outras tabelas
- criar colunas extras (e.g. logs, proporções, etc.)
Qualquer coluna definida aqui deve também existir em `table_config.yaml`.
# Além disso, sinta-se à vontade para alterar alg... |
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 18-Jun-2022 às 01:30
-- Versão do servidor: 10.4.24-MariaDB
-- versão do PHP: 8.1.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
create sequence RESOURCE_ID_SEQ;
create sequence JOB_SEQ;
create sequence INSTANCE_ID_SEQ;
create sequence ATTACHMENT_ID_SEQ;
create sequence REVISION_SEQ;
create sequence WORKITEM_SEQ;
create table NAMED_LOCK (
"LOCK_NAME" nvarchar2(255) primary key
);
create table JOB (
"JOB_ID" integer primary key,
"... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 25, 2022 at 01:41 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
USE PeopleTracker
GO
/****** Object: Table dbo.PhoneType Script Date: 6/1/2018 8:40:57 AM ******/
IF OBJECT_ID('dbo.PhoneType', 'U') IS NOT NULL
DROP TABLE dbo.PhoneType
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE dbo.PhoneType(
PhoneTypeId int IDENTITY(1,1) NOT NULL,
Description nvarcha... |
SELECT MIN(an.name) AS cool_actor_pseudonym,
MIN(t.title) AS series_named_after_char
FROM aka_name AS an,
cast_info AS ci,
company_name AS cn,
keyword AS k,
movie_companies AS mc,
movie_keyword AS mk,
name AS n,
title AS t
WHERE cn.country_code ='[us]'
AND k.keyword ='charact... |
INSERT INTO `sys_box_download` (`title`, `url`, `onclick`, `desc`, `icon`, `order`, `disabled`) VALUES
('_bx_desktop_title', "php:return BxDolService::call('desktop', 'get_file_url');", '', '_bx_desktop_desc', 'modules/boonex/desktop/|desktop.png', 1, 0); |
DROP TABLE IF EXISTS WAREHOUSE;
CREATE TABLE WAREHOUSE (
W_ID INT NOT NULL,
W_YTD DECIMAL(12,2) NOT NULL,
W_TAX DECIMAL(4,4) NOT NULL,
W_NAME VARCHAR(10) NOT NULL,
W_STREET_1 VARCHAR(20) NOT NULL,
W_STREET_2 VARCHAR(20) NOT NULL,
W_CITY VARCHAR(20) NOT NULL,
W_STATE CHAR(2) NOT NULL,
W_ZIP CHAR(9) NOT... |
alter table if exists catalog add column owner varchar(100);
alter table if exists category add column owner varchar(100);
alter table if exists product add column owner varchar(100);
alter table if exists sku add column owner varchar(100);
alter table if exists discount add column owner varchar(100);
update catalog ... |
/* ============================================================ */
/* Database name: VIDEOCHAT */
/* DBMS name: Sybase AS Anywhere 6 */
/* Created on: 06/11/2005 23:45 */
/* =============================================... |
/* Formatted on 12-18-2018 9:11:17 AM (QP5 v5.126.903.23003) */
DROP TABLE WKF.WKF_ACTUAL_MSGS_HDR CASCADE CONSTRAINTS PURGE;
CREATE TABLE WKF.WKF_ACTUAL_MSGS_HDR (
MSG_ID NUMBER NOT NULL,
MSG_HDR VARCHAR2 (200 BYTE),
MSG_BODY CLOB,
CREATED_BY NUMBER NOT NULL,
CR... |
/* ======================================================================== */
/* PeopleRelay: node.sql Version: 0.4.3.6 */
/* */
/* Copyright 2017-2018 Aleksei Ilin & Igor Ilin */
... |
-- file:arrays.sql ln:620 expect:true
insert into t1 (f1[5].q1) values(42)
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th9 06, 2021 lúc 05:18 PM
-- Phiên bản máy phục vụ: 10.4.17-MariaDB
-- Phiên bản PHP: 7.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
IF OBJECT_ID('sales.post_sales') IS NOT NULL
DROP PROCEDURE sales.post_sales;
GO
CREATE PROCEDURE sales.post_sales
(
@office_id integer,
@user_id integer,
@login_id bigint,
@counter_id ... |
-- file:date.sql ln:14 expect:true
INSERT INTO DATE_TBL VALUES ('1997-02-29')
|
/*price category by writer
Leigh North
Formatted 10/25/2011
*/
--DROP TABLE AAD9606.GP_TRACKER_12MO;
DROP TABLE AAD9606.GP_TRACKER_WRITER;
CREATE TABLE AAD9606.GP_TRACKER_WRITER
--DROP TABLE AAD9606.GP_TRACKER_TEST;
--CREATE TABLE AAD9606.GP_TRACKER_TEST
AS
(SELECT SUBSTR (ihf.YEARMONTH, 0, 4) YYYY,
ihf.... |
-- Equal Operator
-- Filter on records where the string column, in this case minor_category, is an exact match of the given string “Harassment”.
SELECT
COUNT(*) AS num_crimes
FROM
`bigquery-public-data.london_crime.crime_by_lsoa`
WHERE
minor_category = "Harassment"
-- Not Equal Operator
-- Filter on records whe... |
DROP TABLE IF EXISTS numbers_10_00290;
SET max_block_size = 1000;
CREATE TABLE numbers_10_00290 ENGINE = Log AS SELECT * FROM system.numbers LIMIT 10000;
SET distributed_aggregation_memory_efficient = 1, group_by_two_level_threshold = 5000;
SELECT concat(toString(number), arrayStringConcat(arrayMap(x -> '.', range(num... |
INSERT INTO CentrosEducativos
(codinfra, nombrece, departamento, municipio)
VALUES(10002, 'Centro Escolar Alfredo Espino', 'Ahuachapán', 'Ahuachapán');
INSERT INTO CentrosEducativos
(codinfra, nombrece, departamento, municipio)
VALUES(10007, 'Centro Escolar Carlota León viuda de Trigueros', 'Ahuachapán', 'Ahuachapán');... |
--
-- CREATE_INDEX
-- Create ancillary data structures (i.e. indices)
--
--
-- BTREE
--
CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops);
CREATE INDEX IF NOT EXISTS onek_unique1 ON onek USING btree(unique1 int4_ops);
CREATE INDEX IF NOT EXISTS ON onek USING btree(unique1 int4_ops);
CREATE INDEX onek_... |
alter table IACUC_PROTOCOL_ACTIONS add CREATED_SUBMISSION CHAR(1)
/
UPDATE IACUC_PROTOCOL_ACTIONS SET CREATED_SUBMISSION = 'N'
/
|
select
id,
nombre,
capacidad_personas,
activo,
estado,
valor_noche,
valor_recargo_fin_semana,
fecha_creacion
from
hospedaje |
-- create table with bit VARYING data type and insert data with B and X
create class c_vb (vb bit VARYING (8));
INSERT INTO c_vb VALUES (B'0001');
INSERT INTO c_vb VALUES (X'c');
SELECT * FROM c_vb order by 1;
drop c_vb;
|
CREATE OR REPLACE PACKAGE BODY bug_ut AS
PROCEDURE before_all AS
BEGIN
-- clear log
DELETE FROM logs;
COMMIT;
-- clear log setup
DELETE FROM logs_setup
WHERE user_id = ctx.get_user_id();
COMMIT;
END;
PROCEDURE after_all AS
BEGIN
RO... |
-- https://www.hackerrank.com/challenges/japanese-cities-name/problem
-- ORACLE SOLUTION
SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN';
|
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64)
--
-- Host: localhost Database: banking
-- ------------------------------------------------------
-- Server version 5.7.30-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;... |
--
-- Table structure for table `arc_crmusercontacts`
--
CREATE TABLE `arc_crmusercontacts` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL,
`title` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`phone` varchar(20) NOT NULL,
`userid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
A... |
CREATE TABLE execution_flows (
exec_id INT NOT NULL AUTO_INCREMENT,
project_id INT NOT NULL,
version INT NOT NULL,
flow_id VARCHAR(128) NOT NULL,
status TINYINT,
submit_user VARCHAR(64),
submit_time BIGINT,
update_time BIGINT,
start_time BIGINT,
end_time... |
UPDATE Rooms
SET Price = Price * 1.14
WHERE HotelId IN (5, 7, 9) |
DO $$
BEGIN
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'city_place') THEN
CREATE TYPE city_place AS ENUM ('city', 'town', 'village', 'hamlet', 'suburb', 'neighbourhood', 'isolated_dwelling');
END IF;
END
$$;
ALTER TABLE osm_city_point ALTER COLUMN place TYPE city_place USING place::city_place... |
--+ holdcas on;
set system parameters 'dont_reuse_heap_file=yes';
--Test
create table t3(id1 integer, index idx1(id1 ASC) where id1 > 1);
SHOW INDEXES FROM t3;
--Test
alter table t3 drop index idx1;
SHOW INDEXES FROM t3;
--Test
create table t4(id1 integer, index idx1(id1 ASC) where id1 > 1, id2 varchar(255), index i... |
drop table if exists decks;
create table decls (
id integer primary key autoincrement,
title text not null unique,
cardname text not null unique,
cardcount integer,
class text not null unique,
archetype text not null unique,
season text not null unique,
gamemode text not null unique
); |
UPDATE "selfservice_settings_flows" SET "ui" = "_ui_tmp"; |
# Copyright 2017-present Open Networking Foundation
#
# 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 ag... |
CREATE TABLE Actividad(
id NUMBER(20),
descripcion VARCHAR2(30) CONSTRAINT actividad_descripcion_nn NOT NULL,
isActiva NUMBER(1)
CONSTRAINT check_isActiva CHECK (isActiva BETWEEN 0 and 1),
idTipo NUMBER(3)
);
CREATE TABLE TipoActividad(
id NUMBER(3),
descripcion VARCHAR2(30)
);
ALTER TABL... |
USE employee_db;
-- department seeds --
INSERT INTO department (name)
VALUES
('Information Systems and Technology'),
('Finance'),
('Legal'),
('Human Resources'),
('Security'),
('Sales'),
INSERT INTO role (title, salary, department_id)
VALUES
('Web Developer', 80000, 1),
('Accountant', 60000, 2),
('Paralegal', 40000, ... |
select
-- Required Columns
self_link resource,
case
when name like 'gke-%' and labels ? 'goog-gke-node' then 'skip'
when metadata -> 'items' @> '[{"key": "block-project-ssh-keys", "value": "true"}]' then 'ok'
else 'alarm'
end status,
case
when name like 'gke-%' and labels ? 'goog-gke-node'
... |
INSERT INTO Categories VALUES(null,'Beverages','Soft drinks, coffees, teas, beers, and ales',X'FFD8FFE000104A46494600010200006400640000FFEC00114475636B7900010004000000500000FFEE002641646F62650064C0000000010300150403060A0D00000A63000010E8000019F4000027A4FFDB00840002020202020202020202030202020304030202030405040404040405... |
/*
Input Format
The CITY table is described as follows:
CITY
--------------------------------------
Field | Type
--------------------------------------
ID | NUMBER
NAME | VARCHAR2(17)
COUNTRYCODE | VARCHAR2(3)
DISTRICT | VARCHAR2(20)
POPULATION |
--------------------------------------
... |
DO LANGUAGE plpgsql $proc$
BEGIN
execute format($$alter database %I
set search_path to '$user',
'public','pgtap'
$$, current_database()
);
END
$proc$;
\echo "Check database config settings"
select datname as db ,setconfig as config
from pg_database db
join pg_db_role_setting s on db.oid = s... |
DROP VIEW IF EXISTS view_buku_penerimaan_juai;
CREATE VIEW view_buku_penerimaan_juai AS
SELECT
*
FROM
view_buku_penerimaan_kabupaten
WHERE
1 = 1 AND
id_skpd = 33;
GRANT ALL PRIVILEGES ON view_buku_penerimaan_juai TO lap_juai;
REVOKE INSERT, UPDATE, DELETE ON view_buku_penerimaan_juai FROM lap_juai;
|
Create Database Configurator;
Go
Use Configurator;
Go
Create table Configuration (
Id INT IDENTITY(1,1),
ConfigurationName NVARCHAR(50),
ConfigType NVARCHAR(20),
Config NVARCHAR(MAX),
CONSTRAINT PK_Configuration PRIMARY KEY (Id)
) |
--Changes for User Story 20
alter table [dbo].[CORE_TO_PARTY_FILTER] alter column CORE_TO_PARTY_FILTER_WHERE_TEXT varchar(max) null;
--Changes for User Story 24
/****** Object: Table [dbo].[LOGIN_AUDIT_DETAILS] Script Date: 10/12/2018 2:55:19 PM ******/
DROP TABLE IF EXISTS [dbo].[LOGIN_AUDIT_DETAILS];
G... |
-- file:groupingsets.sql ln:181 expect:true
select *
from (values (1),(2)) v(x),
lateral (select a, b, sum(v.x) from gstest_data(v.x) group by rollup (a,b)) s
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 05, 2021 at 11:58 PM
-- Server version: 5.7.33
-- PHP Version: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
CREATE TABLE IF NOT EXISTS products_in_stock (
product_id VARCHAR(64) NOT NULL PRIMARY KEY,
amount INT NOT NULL DEFAULT(0)
);
CREATE TABLE IF NOT EXISTS fetched_products (
product_id VARCHAR(64) NOT NULL,
amount INT NOT NULL DEFAULT(0),
order_id VARCHAR(64) NOT NULL,
PRIMARY KEY (order_id, prod... |
-- randexpr1.test
--
-- db eval {SELECT coalesce((select max(f) from t1 where coalesce((select max(+(select cast(avg(t1.d) AS integer) from t1)*19) from t1 where (abs(t1.d*t1.c)/abs(f))+t1.e> -t1.d*t1.e-a),13-case +coalesce((select max(t1.c) from t1 where d<=d and - -t1.a<=(t1.f) or f<>19 and 17<19),(t1.c)) | c*t1.f*... |
INSERT INTO
project (
id,
creator_id,
updater_id,
name,
`key`,
workflow_type,
visibility,
tenant_mode
)
VALUES
(
3001,
101,
101,
'Test (UI)',
'TEST',
'UI',
'PUBLIC',
'DISABLED'
... |
-- Start transaction and plan tests
begin;
select plan(184);
-- Check default_text_search_config is correct
select results_eq(
$$ select current_setting('default_text_search_config')::text $$,
$$ values ('pg_catalog.simple'::text) $$,
'default_text_search_config is pg_catalog.simple'
);
-- Check pgcrypto ... |
-- =====================================================================================================
-- Generated by Data Dictionary Version 1.0.0.0
-- Date: 08 April 2016 14:18
-- Profile: 1516 Test Harness Calculation
-- Rulebase Version: DCSS 1516 ESF Funding Calc 1516, Drop 000, Version 1516.13
-- =============... |
LOAD DATA LOCAL INFILE "~/CSBSJU/Courses/CSCI331/company/department.dat"
INTO TABLE department
FIELDS ENCLOSED BY "\"" TERMINATED BY ","
;
|
-- This file should undo anything in `up.sql`
drop VIEW "notification_service_api"."user_notifications";
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.