text stringlengths 1 1.05M |
|---|
/*
Navicat Oracle Data Transfer
Oracle Client Version : 11.2.0.1.0
Source Server : local
Source Server Version : 110200
Source Host : 127.0.0.1:1521
Source Schema : PERSONPAPER
Target Server Type : ORACLE
Target Server Version : 110200
File Encoding : 65001
Date: 2019-07-17 17:48... |
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 08, 2017 at 07:42 AM
-- Server version: 5.7.17
-- PHP Version: 7.1.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
INSERT INTO film_category VALUES (1,6,to_timestamp('2006-02-15 05:07:09','yyyy-mm-dd hh24:mi:ss'));
INSERT INTO film_category VALUES
(2,11,to_timestamp('2006-02-15 05:07:09','yyyy-mm-dd hh24:mi:ss'));
INSERT INTO film_category VALUES
(3,6,to_timestamp('2006-02-15 05:07:09','yyyy-mm-dd hh24:mi:ss'));
INSERT INTO film_ca... |
Create Trigger modificarPreco On Pecas
For Update
As
Begin
If (Select vl_Peca From Inserted) <> (Select vl_Peca From Deleted)
Begin
Declare @Preco Int, @Peca Int, @ValorAntigo Money, @ValorNovo Money
Set @Preco = (Select Max(cd_Preco) From Historico_Precos) + 1
Set @Preco = IsNull(@Preco, 1)
S... |
SELECT SA.SAMPLE_KEY,
COMMON_NAME,
PREFERRED_NAME,
TXG.TAXON_GROUP_NAME,
dbo.FormatEventRecorders(SA.SAMPLE_KEY),
dbo.LCReturnVagueDateShort(SA.VAGUE_DATE_START,SA.VAGUE_DATE_END,SA.VAGUE_DATE_TYPE) AS SAMPLE_DATE,
dbo.LCRe... |
---CREACION BASE DE DATOS ORIGEN
--Nota: Las tablas de la base de datos destino son iguales a la de origen, sin embargo la base de datos destino no deberia usar identity en ninguna de sus tablas., ya que id se lo pasaremos con c# al igual que el resto de columnas.
--Nombre: Victor Alfredo Matzar Say
--ID: 000085518
-... |
SELECT tab1.v1 AS v1 , tab0.v0 AS v0 , tab1.v2 AS v2
FROM (SELECT sub AS v1 , obj AS v2
FROM sorg__language$$2$$
) tab1
JOIN (SELECT obj AS v1 , sub AS v0
FROM wsdbm__friendOf$$1$$
) tab0
ON(tab1.v1=tab0.v1)
++++++Tables Statistic
sorg__language$$2$$ 0 VP sorg__language/
VP <sorg__language> 655... |
CREATE PROCEDURE [dbo].[InsertApiErrorLog]
@id varchar(50),
@exception text null
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO [dbo].[TS_ApiErrorsLog] ([ID], [Exception], [InsertDate])
VALUES (@id, @exception, SYSDATETIMEOFFSET())
END |
ALTER TABLE [dbo].[Applications]
ADD CONSTRAINT [FK_Applications_FirmTypes] FOREIGN KEY ([FirmTypeId]) REFERENCES [dbo].[FirmTypes] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;
|
select * from public.nexus where player__id=?; |
CREATE SCHEMA cicd
GO
CREATE PROCEDURE cicd.SetProperty
@n NVARCHAR(128),
@v NVARCHAR(128)
AS
DECLARE @current NVARCHAR(128)
SELECT @current = [name] FROM fn_listextendedproperty(@n, NULL, NULL, NULL, NULL, NULL, NULL)
IF(@current IS NULL)
EXEC sp_addextendedproperty @name = @n, @value = @v... |
DECLARE
booknum int;
total int;
percent int;
BEGIN
SET booknum = 10;
SET total = 0;
SET percent = booknum / total;
EXCEPTION WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Correct');
END; |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
CREATE OR REPLACE PROCEDURE SP_GET_CONSUMER_ACCESS_TOKEN
(
P_USER_ID IN NUMBER,
P_TOKEN IN VARCHAR2,
P_ROWS OUT TYPES.REF_CURSOR,
P_RESULT OUT NUMBER
)
AS
-- PROCEDURE TO Fetch the create access token, ... |
-- @testpoint:opengauss关键字nocompress(非保留),作为表空间名
--关键字不带引号,创建成功
drop tablespace if exists nocompress;
CREATE TABLESPACE nocompress RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
drop tablespace nocompress;
--关键字带双引号,创建成功
drop tablespace if exists "nocompress";
CREATE TABLESPACE "nocompress" RELATIVE LOCATI... |
SET schema "OLINGO";
-- create schema "OLINGO";
--------BUSINESS PARTNER---------------------------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."BusinessPartner"(
"ID" VARCHAR(32) CONSTRAINT Busi... |
INSERT INTO USERS (EMAIL,PSEUDO,PASSWORD,POINTS,PP,STATUS,DATES)
VALUES ( 'test@test.fr', 'jacky', '123', 1, 'sex', 1, '2019-08-15');
INSERT INTO USERS (EMAIL,PSEUDO,PASSWORD,POINTS,PP,STATUS,DATES)
VALUES ( 'tet@test.fr', 'jacky', '123', 1, 'sex', 1, '2019-08-15');
INSERT INTO USERS (EMAIL,PSEUDO,PASSWORD,POINTS,PP,S... |
INSERT INTO `pizza` (`id`, `categorie`, `code`, `nom`, `prix`, `urlImage`) VALUES
(120, 'SANS_VIANDE', 'FRO', 'La 4 fromages', '12.00', NULL),
(121, 'SANS_VIANDE', 'MAR', 'Margherita', '14.00', NULL),
(122, 'VIANDE', 'PEP', 'Pépéroni', '12.50', NULL),
(123, 'VIANDE', 'REI', 'La Reine', '11.50', NULL); |
-- --------------------------------------------------------
-- Poslužitelj: 127.0.0.1
-- Server version: 10.1.28-MariaDB - mariadb.org binary distribution
-- Server OS: Win32
-- HeidiSQL Verzija: 9.5.0.5196
-- ------------------------------------------------... |
drop index ACT_IDX_EXEC_BUSKEY on ACT_RU_EXECUTION;
drop index ACT_IDX_VARIABLE_TASK_ID on ACT_RU_VARIABLE;
drop index ACT_IDX_INFO_PROCDEF on ACT_PROCDEF_INFO;
alter table ACT_GE_BYTEARRAY
drop FOREIGN KEY ACT_FK_BYTEARR_DEPL;
alter table ACT_RU_EXECUTION
drop FOREIGN KEY ACT_FK_EXE_PROCINST;
alter table A... |
insert into event (`when`, source, owner, type, text)
values (?, ?, ?, ?, ?)
|
set search_path=bulk_msg,ml_app;
BEGIN;
-- Command line:
-- table_generators/generate.sh activity_logs_table create activity_log_zeus_bulk_messages zeus_bulk_message
CREATE TABLE activity_log_zeus_bulk_message_history (
id integer NOT NULL,
master_id integer,
zeus_bulk_messa... |
--liquibase formatted sql
--changeset artemov_i:AuthShowRole.sql dbms:postgresql runOnChange:true splitStatements:false stripComments:false
INSERT INTO s_mt.t_query (ck_id,cc_query,ck_provider,ck_user,ct_change,cr_type,cr_access,cv_description)
VALUES ('AuthShowRole','/*AuthShowRole*/
select /*Pagination*/
count... |
---Build+
GO
CREATE FUNCTION tSQLt.Private_GetExternalAccessKeyBytes()
RETURNS TABLE
AS
RETURN
SELECT
0x000000
AS ExternalAccessKeyBytes,
0x000001 AS ExternalAccessKeyThumbPrint;
GO
|
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 13, 2017 at 06:01 AM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
CREATE TABLE IF NOT EXISTS user (
id
INT(10)
UNSIGNED NOT NULL,
email
VARCHAR(64)
COLLATE latin1_general_ci NOT NULL,
password
VARCHAR(32)
COLLATE latin1_general_ci NOT NULL,
nick
VARCHAR(16)
COLLATE latin1_general_ci DEFAULT NULL,
status
ENUM('enabled', 'disabled')
COL... |
-- liquibase formatted sql
-- changeset Lang:ox-action-1
-- 操作专用表:S_ACTION
DROP TABLE IF EXISTS S_ACTION;
CREATE TABLE IF NOT EXISTS S_ACTION
(
`KEY` VARCHAR(36) COMMENT '「key」- 操作ID',
`NAME` VARCHAR(255) COMMENT '「name」- 操作名称',
`CODE` VARCHAR(255) COMMENT '「code」- 操作码',
... |
CREATE TABLE subdivision_PL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_PL" ("id", "name", "level") VALUES ('PL-WP', 'Gran Polonia', 'voivodship');
INSERT INTO "subdivision_PL" ("id", "name", "level") VALUES ('PL-KP', 'Cuiavia-Pomerania', 'voivodsh... |
-- 2019-03-08T17:30:56.628
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET Classname='de.metas.user.process.AD_User_ChangeMyPassword',Updated=TO_TIMESTAMP('2019-03-08 17:30:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=540798
;
-- 2019-03-08T17:31:14.272
-- I fo... |
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
--
-- Host: apijson.cn Database: sys
-- ------------------------------------------------------
-- Server version 5.7.19-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... |
SELECT jsonPayload.password AS passwd, COUNT(jsonPayload.password) AS cnt
FROM `gcp-honeypot-book.cowrie.cowrie_access_*`
WHERE
_TABLE_SUFFIX BETWEEN FORMAT_DATE('%Y%m%d', DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH))
AND FORMAT_DATE('%Y%m%d', CURRENT_DATE())
AND (jsonPayload.eventid = 'cowrie.login.success' OR json... |
/*
Navicat Premium Data Transfer
Source Server : Localhost
Source Server Type : MySQL
Source Server Version : 100316
Source Host : localhost:3306
Source Schema : db_ctr_order
Target Server Type : MySQL
Target Server Version : 100316
File Encoding : 65001
Date: 09/03/... |
--###############################################################
--# Migration: V1.0.0__SampleTable.sql
--#
--# Sample table create.
--#
--#################################################################
CREATE TABLE IF NOT EXISTS sample_tbl
(
id serial4 PRIMARY KEY,
text character varying(512) NOT NULL,
... |
DO $$
DECLARE
current_version TEXT;
original_message TEXT;
BEGIN
BEGIN
SELECT version
INTO STRICT current_version
FROM public.prom_schema_migrations;
EXCEPTION WHEN OTHERS THEN
GET STACKED DIAGNOSTICS original_message = MESSAGE... |
select
-- Required Columns
arn as resource,
case
when metadata_options ->> 'HttpTokens' = 'optional' then 'alarm'
else 'ok'
end as status,
case
when metadata_options ->> 'HttpTokens' = 'optional' then title || ' not configured to use Instance Metadata Service Version 2 (IMDSv2).'
else title ||... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: 23-Set-2019 às 20:51
-- Versão do servidor: 5.7.26
-- versão do PHP: 7.2.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_... |
-- @testpoint: 修改表并重命名索引,合理报错
drop table if exists table_alter_029;
CREATE TABLE table_alter_029 (c1 VARCHAR(255),c2 int);
insert into table_alter_029 values ('ddd',1);
insert into table_alter_029 values ('',2);
insert into table_alter_029 values (null,3);
insert into table_alter_029 values ('',4);
insert into table_al... |
DROP PROCEDURE sp_hospede_ver;
DELIMITER //
CREATE PROCEDURE sp_hospede_ver(
v_criterio TINYINT,
v_id_hospede INT
)
BEGIN
IF v_criterio = 1 THEN
SELECT
t1.id_hospede, t1.data_ent, t1.data_sai, t1.estado,
t2.nome,
t3.id_reserva,
t4.id_quarto,
t5.nome
FROM tb_hospede ... |
INSERT INTO User VALUES
(1, 'Peter', 22),
(2,'Says', 23),
(3,'Denim', 30); |
--- Run these SQL statements using the Oracle client sqlplus
--- to upgrade from a 3.0 Oracle ICAT to 3.1.
---
--- Note: the string 'tempZone' in the last insert should be changed
--- to your zone name. You need to do this manually for updates but
--- this is handled automatically when installing a new ICAT as the
---... |
CREATE TABLE users(
id serial PRIMARY KEY,
login varchar(30) NOT NULL,
password varchar(100) NOT NULL
); |
INSERT INTO EXCHANGE_BEAN (ID, CONVERSION_FACTOR, CURRENCY_FROM, CURRECY_TO, PORT ) VALUES (HIBERNATE_SEQUENCE.NEXTVAL, 71.4, 'USD', 'INR', 0);
INSERT INTO EXCHANGE_BEAN (ID, CONVERSION_FACTOR, CURRENCY_FROM, CURRECY_TO, PORT ) VALUES (HIBERNATE_SEQUENCE.NEXTVAL, 78.8, 'EUR', 'INR', 0);
INSERT INTO EXCHANGE_BEAN (ID,... |
create or replace package e_in_out_parameters
is
procedure some_in_nocopy_procedure( p_string in nocopy varchar2 );
end e_in_out_parameters;
/
show errors
create or replace package e_in_out_parameters
is
procedure some_out_in_procedure( p_string out in varchar2 );
end e_in_out_parameters;
/
show errors
crea... |
-- ################################################################################
--
-- New Zealand Geographic Board gazetteer application,
-- Crown copyright (c) 2020, Land Information New Zealand on behalf of
-- the New Zealand Government.
--
-- This file is released under the MIT licence. See the LICENCE file ... |
CREATE table `user_bonuses` (id int NOT NULL AUTO_INCREMENT, user_id int not null, amount int DEFAULT 0, PRIMARY KEY (id));
CREATE table `user_money` (id int NOT NULL AUTO_INCREMENT, user_id int not null, amount int DEFAULT 0, PRIMARY KEY (id));
CREATE TABLE `items` (id int NOT NULL AUTO_INCREMENT, title varchar(256) n... |
CREATE TABLE subdivision_BF (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_BF" ("id", "name", "level") VALUES ('BF-BAL', 'Balé Province', 'province');
INSERT INTO "subdivision_BF" ("id", "name", "level") VALUES ('BF-BAM', 'Bam', 'province');
INSERT IN... |
CREATE DATABASE IF NOT EXISTS todolist;
-- The "WITH mysql_native_password" portion of this query is required for some
-- older versions of MySQL. If you get a "syntax error [...] near BY" message,
-- simply remove that part and use only "IDENTIFIED BY".
CREATE USER IF NOT EXISTS 'timo'@'localhost' IDENTIFIED BY 'timo... |
SELECT
m.employee_id,
(
SELECT
sub.full_name
FROM
cp.`employee.json` as sub
WHERE
sub.full_name > 'Maya Gutierrez'
LIMIT 1
) as full_name
FROM
cp.`employee.json` as m
WHERE
m.gender LIKE 'F' LIMIT 5;
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Tempo de geração: 29/06/2018 às 01:15
-- Versão do servidor: 10.2.15-MariaDB
-- Versão do PHP: 7.1.17
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 ... |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id',
`username` varchar(16) NOT NULL COMMENT '用户名',
`nickname` varchar(16) ... |
INSERT INTO burgers (burger_name, devoured) VALUES ('Cheese Burger', FALSE);
INSERT INTO burgers (burger_name, devoured) VALUES ('Hamburger', FALSE);
INSERT INTO burgers (burger_name, devoured) VALUES ('Pizza Burger', FALSE);
select * from burgers; |
CREATE TABLE users
(
username VARCHAR(50) NOT NULL PRIMARY KEY,
password VARCHAR(255) NOT NULL,
enabled BOOLEAN NOT NULL
) ENGINE = InnoDb;
CREATE TABLE authorities
(
username VARCHAR(50) NOT NULL,
authority VARCHAR(50) NOT NULL,
FOREIGN KEY (username) REFERENCES users (usernam... |
-- Select the warehouse code and the average value of the boxes in each warehouse, but select only those warehouses where the average value of the boxes is greater than 150.
select code, avg(value) from boxes where value>150 group by code; |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 18, 2018 at 06:06 AM
-- Server version: 10.1.22-MariaDB
-- PHP Version: 7.1.4
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+0... |
-- file:transactions.sql ln:16 expect:true
SELECT a FROM xacttest WHERE a > 100
|
SELECT
sqlTypeOf(decimal_18_4) sqlTypeOf_decimal_18_4
FROM dfs.drillTestDir.`CTAS_CSV_PARQUET_DECIMAL18`;
|
create table ACT_ID_PROPERTY (
NAME_ varchar(64) not null,
VALUE_ varchar(300),
REV_ integer,
primary key (NAME_)
);
insert into ACT_ID_PROPERTY
values ('schema.version', '6.0.0.0', 1);
create table ACT_ID_BYTEARRAY (
ID_ varchar(64) not null,
REV_ integer,
NAME_ varchar(255),
BYTES_ B... |
-- start query 1 in stream 0 using template query60.tpl
with ss as (
select
i_item_id,sum(ss_ext_sales_price) total_sales
from
store_sales,
date_dim,
customer_address,
item
where
i_item_id in (select
i_item_id
from
item
where i_category in ('Children'))
and ss_item_sk... |
/*
Navicat MySQL Data Transfer
Source Server : PHPMyAdmin
Source Server Version : 50611
Source Host : 127.0.0.1:3306
Source Database : db_kanaka
Target Server Type : MYSQL
Target Server Version : 50611
File Encoding : 65001
Date: 2019-05-09 05:33:27
*/
SET FOREIGN_K... |
Create table If Not Exists Signups (user_id int, time_stamp datetime);
Create table If Not Exists Confirmations (user_id int, time_stamp datetime, action ENUM('confirmed','timeout'));
Truncate table Signups;
insert into Signups (user_id, time_stamp) values ('3', '2020-03-21 10:16:13');
insert into Signups (user_id, tim... |
-- Name: SeriesInCollectionSiteForApplicationOfPrivateDisposition
-- Schema: posda_files
-- Columns: ['patient_id', 'study_instance_uid', 'series_instance_uid']
-- Args: ['collection', 'site']
-- Tags: ['by_collection_site', 'find_files']
-- Description: Get a patient, study, series hierarchy by collection, site
selec... |
-- file:tsrf.sql ln:47 expect:true
RESET enable_hashagg
|
CREATE TABLE inventory (
inventory_id integer DEFAULT nextval('inventory_inventory_id_seq'::regclass) NOT NULL,
film_id smallint NOT NULL,
store_id smallint NOT NULL,
last_update timestamp without time zone DEFAULT now() NOT NULL
);
CREATE TABLE payment (
payment_id integer DEFAULT nextval('payment... |
create database produtos
default character set utf8
default collate utf8_general_ci;
use produtos;
CREATE TABLE refrigerante (
sabor VARCHAR(10) NOT NULL UNIQUE,
tamanho DECIMAL(2 , 1 ) NOT NULL,
lote DATE NOT NULL,
vencimento DATE NOT NULL
) DEFAULT CHARSET=UTF8;
alter table refrigerante
add column ... |
INSERT INTO Fortune(id, message) VALUES (1, 'Test value One'); |
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : CaretClassifier_svmPoly_pca
-- Dataset : FourClass_10
-- Database : sqlite
-- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
-- Model deployment code
WITH "AD... |
-- @testpoint:openGauss关键字return(非保留,作为列名不带双引号,return大小写混合,建表成功
drop table if exists return_test;
create table return_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... |
CREATE TABLE Clients (
ClientId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
Phone CHAR(12) NOT NULL
)
CREATE TABLE Mechanics (
MechanicId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
[Address] VARCHAR(255) NOT NULL
... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Czas generowania: 28 Maj 2019, 06:49
-- Wersja serwera: 10.1.38-MariaDB
-- Wersja PHP: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... |
--List the manager of each department with the following information:
--department number, department name, the manager's employee number, last name, first name.
SELECT d.dept_no,
d.dept_name,
--m.dept_no,
--m.emp_no,
e.emp_no,
e.last_name,
e.first_name
FROM departments AS d
JOIN dept_manager ... |
--
-- The MTS cds EJB project is the base framework for the CDS Framework Middle Tier Service.
--
-- Copyright (C) 2016 New York City Department of Health and Mental Hygiene, Bureau of Immunization
-- Contributions by HLN Consulting, LLC
--
-- This program is free software: you can redistribute it and/or modify it unde... |
G75*
%MOIN*%
%OFA0B0*%
%FSLAX25Y25*%
%IPPOS*%
%LPD*%
%AMOC8*
5,1,8,0,0,1.08239X$1,22.5*
%
%ADD10C,0.01000*%
%ADD11C,0.00000*%
%ADD12C,0.00039*%
D10*
X0010737Y0017333D02*
X0392863Y0017333D01*
X0392987Y0017335D01*
X0393110Y0017341D01*
X0393234Y0017350D01*
X0393356Y0017364D01*
X0393479Y0017381D01*
X0393601Y0017403D01*
X03... |
CREATE SERVICE [sqlwatch_exec]
ON QUEUE [dbo].[sqlwatch_exec]
(
[DEFAULT]
)
|
INSERT INTO USERS(username, password, email) VALUES('admin', 'admin', 'bla1');
INSERT INTO USERS(username, password, email) VALUES('John', 'admin', 'bla2');
INSERT INTO USERS(username, password, email) VALUES('Dani', 'askldjal', 'bla3');
INSERT INTO USERS(username, password, email) VALUES('Banani', 'askldjal', 'bla4');... |
INSERT INTO goflow.procdef (id, company_id, company_name, name, ver, resource, create_id, update_id, create_time, update_time, status) VALUES('1', '123', 'aaa', 'vacation apply', '1', '{
"id": "process1",
"start": {
"name": "apply vacation",
"id": "start",
"formId" :"tt-task1-form",
... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 14, 2020 at 01:59 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
create table ACT_GE_PROPERTY (
NAME_ varchar(64),
VALUE_ varchar(300),
REV_ integer,
primary key (NAME_)
);
insert into ACT_GE_PROPERTY
values ('schema.version', '5.14', 1);
insert into ACT_GE_PROPERTY
values ('schema.history', 'create(5.14)', 1);
insert into ACT_GE_PROPERTY
values ('next.dbid', '1',... |
select tags, akas, title
from aws.aws_sqs_queue
where queue_url = '{{ output.queue_url.value }}'
|
CREATE DEFINER=`cammymcn_AglAdm`@`%` PROCEDURE `searchCodeMaxPrice`(IN code varchar(3), IN price int(7))
BEGIN
SELECT DISTINCT
c.DRG,
c.Average_Total_Payments,
c.Total_Discharges,
v.Name,
v.Street_Address,
v.HRR,
z.Lattiude,
z.Longitude,
v.Zipcode
FROM
((Procedures AS c
JOIN ... |
SELECT
procpid,
START,
now() - START AS lap,
current_query
FROM
(
SELECT
backendid,
pg_stat_get_backend_pid (S.backendid) AS procpid,
pg_stat_get_backend_activity_start (S.backendid) AS START,
pg_stat_get_backend_activity (S.backendi... |
startcode MySql_TimeoutRemoveBySagaIdSql
delete from `EndpointNameTimeoutData`
where SagaId = @SagaId
endcode
|
CREATE VIEW vw_getRandomValue
AS
SELECT RAND() AS Value
GO
create function dbo.obfuscateString(@originalString nvarchar(MAX))
returns nvarchar(MAX) as
begin
declare @obfuscatedString as nvarchar(MAX) = ''
declare @length as int = LEN(@originalString)
declare @c as int = 1
declare @characterRange as nvarchar(MAX... |
CREATE TABLE "CTAGE_DET_METHOD"
( "AGE_DET_METH" VARCHAR2(255 CHAR) NOT NULL ENABLE,
"COLLECTION_CDE" VARCHAR2(10) NOT NULL ENABLE,
PRIMARY KEY ("AGE_DET_METH", "COLLECTION_CDE")
USING INDEX ENABLE
) |
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 17, 2018 at 12:23 PM
-- Server version: 5.6.35
-- 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_SET_CLIE... |
DROP TABLE version_downloads; |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jul 13, 2020 at 04:51 PM
-- Server version: 5.7.19
-- PHP Version: 7.1.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
create schema `dimpleblog-vue` collate utf8mb4_0900_ai_ci;
create table blacklist
(
id bigint auto_increment comment 'id'
primary key,
ip varchar(128) null comment 'ip地址',
description varchar(256) null comment '封禁描述',
intercept_count bigint null comment '封禁后再访问次数',
last_access_url varchar(256) null comment '上次访... |
USE [ANTERO]
GO
/****** Object: View [dw].[v_arvo_amk_uraseuranta] Script Date: 5.12.2019 10:33:54 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dw].[v_arvo_amk_uraseuranta] AS
SELECT
--AIKAMUUTTUJAT
f.valmistumisvuosi AS 'Valmistumisvuosi' --virtatiedoista "valmi... |
INSERT INTO burgers (burger_name) VALUES ("Double Cheeseburger");
INSERT INTO burgers (burger_name) VALUES ("Banzai Burger");
INSERT INTO burgers (burger_name, devoured) VALUES ("BBQ Bacon Cheeseburger", true); |
ALTER PROCEDURE dw.p_lataa_d_ohjauksenala AS
if not exists (select * from dw.d_ohjauksenala where id=-1) begin
set identity_insert dw.d_ohjauksenala on;
insert into dw.d_ohjauksenala (
id,ohjauksenala_koodi,ohjauksenala_nimi_fi,
ohjauksenala_nimi_sv,ohjauksenala_nimi_en,source
)
select -1,koodi,nimi,ni... |
create table TableOfComponents (
ComponentID varchar(37),
ComponentName varchar(50),
ComponentType varchar(15),
ComponentWebsite varchar(255),
PRIMARY KEY(ComponentID)
)
; |
CREATE TABLE lancamento(
codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT,
descricao VARCHAR(50) NOT NULL ,
data_vencimento DATE NOT NULL,
data_pagamento DATE ,
valor DECIMAL(10,2) NOT NULL,
observacao VARCHAR(100) ,
tipo VARCHAR(20) NOT NULL,
codigo_categoria BIGINT(20)NOT NULL,
codigo_pessoa BIGINT(20) NOT NUL... |
-- Create table orders
CREATE TABLE orders (
Order_no VARCHAR(10),
Order_id INT,
Order_time VARCHAR(30),
Pick_up_time VARCHAR(10),
Drop_down_time VARCHAR(10),
Pick_stop INT,
Drop_stop INT,
Travel_date DATE,
Gross_sale FLOAT,
Net_sale FLOAT,
Is_cancelled BOOL,
Cancellation_reason VARCHAR(50),
Trip_id INT);
-- Load da... |
#|Not applicable / Earliest available publisher
0|Intervening publisher
1|Current or latest publisher |
/* Class */
create table FootballClub (
id int primary key,
c_name varchar(200),
homwCourt_advantage int not null,
league enum ('ENG', 'ESP', 'GER', 'POR', 'UKR', 'BEL', 'ITA', 'FRA', 'NED', 'RUS') not null,
teamInfo int not null,
logo varchar(200)
);
create table Player (
id int primary key,
p_name varchar(200),
ag... |
WITH RECURSIVE c0(src, trg) AS ((SELECT s0.src, s3.trg FROM (SELECT trg as src, src as trg, label FROM edge) as s0, edge s1, edge s2, (SELECT trg as src, src as trg, label FROM edge) as s3 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s2.trg = s3.src AND s0.label = 10 AND s1.label = 2 AND s2.label = 8 AND s3.label = ... |
exec debugger.step
|
ALTER TABLE "public"."users" ALTER COLUMN "display_name" DROP NOT NULL;
|
-- randexpr1.test
--
-- db eval {SELECT (abs( -c+b)/abs(case when ~11 in (select t1.c from t1 union select coalesce((select t1.f from t1 where coalesce((select max(17) from t1 where coalesce((select case -t1.d when t1.e then a else b end-(t1.d) from t1 where t1.a not between -a and t1.b or t1.f<t1.e and e<=a),t1.e)*... |
CREATE DATABASE IF NOT EXISTS cabin;
CREATE USER IF NOT EXISTS 'cabin'@'%' IDENTIFIED BY 'cabin';
GRANT ALL PRIVILEGES ON cabin.* TO 'cabin'@'%';
FLUSH PRIVILEGES;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.