text stringlengths 1 1.05M |
|---|
DECLARE @AlertName NVARCHAR(200) = N'%s';
EXEC msdb.dbo.sp_update_alert
@name = @AlertName,
@enabled = 0; |
delete from aspnet_UsersInRoles
delete from aspnet_Membership
delete from aspnet_Profile
delete from aspnet_Users
delete from aspnet_Roles
delete from aspnet_Applications
|
-- boundary3.test
--
-- db eval {
-- SELECT t2.a FROM t1 JOIN t2 USING(a)
-- WHERE t1.rowid <= 256 ORDER BY t2.a
-- }
SELECT t2.a FROM t1 JOIN t2 USING(a)
WHERE t1.rowid <= 256 ORDER BY t2.a |
SELECT CASE WHEN A + B > C AND A+C>B AND B+C>A THEN
CASE WHEN A = B AND B = C THEN 'Equilateral'
WHEN A = B OR B = C OR A = C THEN 'Isosceles'
WHEN A != B OR B != C OR A != C THEN 'Scalene'
END ELSE 'Not A Triangle' END
FROM TRIANGLES; |
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 10, 2020 at 06:35 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
with r1 as (
SELECT
r.routine_name as name,
r.routine_schema as schema,
r.specific_name as specific_name,
r.data_type,
r.external_language,
r.routine_definition as definition
FROM information_schema.routines r
-- SKIP_INTERN... |
SELECT
*
FROM
view_beban_barang4_juai
UNION ALL
|
create table ACT_ID_PROPERTY (
NAME_ varchar(64),
VALUE_ varchar(300),
REV_ integer,
primary key (NAME_)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE utf8_bin;
insert into ACT_ID_PROPERTY
values ('schema.version', '6.5.1.2', 1);
create table ACT_ID_BYTEARRAY (
ID_ varchar(64),
REV_ integer,
... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 07-Dez-2021 às 19:41
-- Versão do servidor: 10.4.21-MariaDB
-- versão do PHP: 8.0.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 21, 2020 at 02:47 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
ALTER TABLE account_holder
ADD COLUMN IF NOT EXISTS full_name text,
ADD COLUMN IF NOT EXISTS email text,
ADD COLUMN IF NOT EXISTS address_line_1 text,
ADD COLUMN IF NOT EXISTS address_line_2 text,
ADD COLUMN IF NOT EXISTS address_line_3 text,
ADD COLUMN IF NOT EXISTS address_line_4 text,
ADD... |
CREATE TABLE `prodproc` (
`pp_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`detail` LONGTEXT DEFAULT NULL,
PRIMARY KEY (`pp_id`)
) engine=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `empacc` (
`ea_id` int(11) NOT NULL AUTO_INCREMENT,
`emp_id` int(11) NOT NULL,
`do... |
INSERT INTO gc_cur_team (ah, teamcode, abbr, fullname, comurl, cluburl, smscode, color, teamcolor, phone, standing, tout, gc_cur_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
ALTER FUNCTION sqrt(integer) OWNER TO joe;
|
--
-- RULES
-- From Jan's original setup_ruletest.sql and run_ruletest.sql
-- - thomas 1998-09-13
--
--
-- Tables and rules for the view test
--
create table rtest_t1 (a int4, b int4) distribute by roundrobin;
create table rtest_t2 (a int4, b int4) distribute by roundrobin;
create table rtest_t3 (a int4, b int4) distr... |
prompt
accept tns_name char prompt 'Enter TNS name for database [database]: '
accept usr_schema char prompt 'Enter username for schema [schema]: ' default schema
accept pwd_schema char prompt 'Enter password for schema [&usr_schema]: ' hide default &usr_schema
|
USE [ANTERO]
GO
/****** Object: StoredProcedure [sa].[p_lataa_ehoks_osaamisen_hankkimistavat_paivat] Script Date: 27.1.2022 17:16:55 ******/
DROP PROCEDURE IF EXISTS [sa].[p_lataa_ehoks_osaamisen_hankkimistavat_paivat]
GO
/****** Object: StoredProcedure [sa].[p_lataa_ehoks_osaamisen_hankkimisjaksot_netto] Scrip... |
delete from scoreshared;
delete from playerinstancecomment;
delete from playerinstance;
delete from score;
delete from player;
delete from invitation;
update user set profile_id = null;
delete from profile;
update file set owner_Id = null;
delete from file where id <> 7 and id<> 4;
delete from user;
delete from usercon... |
SELECT tab0.v1 AS v1 , tab6.v7 AS v7 , tab4.v5 AS v5 , tab5.v6 AS v6 , tab3.v4 AS v4 , tab2.v3 AS v3 , tab1.v2 AS v2
FROM (SELECT obj AS v1
FROM sorg__contactPoint$$1$$
WHERE sub = 'wsdbm:Retailer8055'
) tab0
JOIN (SELECT sub AS v1 , obj AS v2
FROM wsdbm__likes$$2$$
) tab1
ON(tab0.v1=tab1.v1)
JO... |
CREATE DATABASE IF NOT EXISTS `working_tasks` CHARACTER SET utf8 COLLATE utf8_bin;
USE `working_tasks`;
CREATE TABLE IF NOT EXISTS `regs` (
`user_id` int(11) NOT NULL default '0',
`login` varchar(50) NOT NULL default '',
`reg_date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`user_id`)
) ENGINE=... |
#standardSQL
# Pages that opt out of FLoC
WITH response_headers AS (
SELECT
client,
page,
rank,
LOWER(JSON_VALUE(response_header, '$.name')) AS header_name,
LOWER(JSON_VALUE(response_header, '$.value')) AS header_value
FROM
`httparchive.almanac.requests`,
UNNEST(JSON_QUERY_ARRAY(respons... |
DELETE
FROM studcourses;
DELETE
FROM course;
DELETE
FROM student;
DELETE
FROM instructor;
INSERT INTO instructor (instructid, instructname)
VALUES(1, 'Sally'),
(2, 'Lucy'),
(3, 'Charlie');
INSERT INTO course (courseid, coursename, instructid)
VALUES (1, 'Data Science', 1),
(2, '... |
/* create user location stream */
CREATE STREAM user_location
(user_id VARCHAR,
t_time_stamp VARCHAR,
t_millis INTEGER,
latitude DOUBLE,
longitude DOUBLE)
WITH (KAFKA_TOPIC='location01',
VALUE_FORMAT='DELIMITED');
/* create transaction location stream */
CREATE STREAM transaction_locatio... |
--
-- STANDARD DATA FOR olap_* TESTS.
--
-- start_ignore
drop table if exists customer cascade;
drop table if exists vendor cascade;
drop table if exists product cascade;
drop table if exists sale cascade;
drop table if exists sale_ord cascade;
drop table if exists util cascade;
-- end_ignore
create table customer
(... |
CREATE EXTENSION
IF NOT EXISTS "uuid-ossp";
DROP TABLE IF EXISTS Teacher CASCADE;
DROP TABLE IF EXISTS DegreePlan CASCADE;
DROP TABLE IF EXISTS Student CASCADE;
DROP TABLE IF EXISTS Course CASCADE;
DROP TABLE IF EXISTS DegreeCourses CASCADE;
DROP TABLE IF EXISTS Registered CASCADE;
DROP TABLE IF EXISTS class CASCADE;
D... |
CREATE INDEX pick__rikishi_id_basho_id ON pick (rikishi_id, basho_id);
|
-- 秒杀执行存储过程
delimiter $$ -- ;转换为$$重新制定console的换行符
-- 参数定义: in 输入参数;out输出参数
-- row_count();用来返回上一条修改类型sql的影响行数
-- row_count() 0:未修改,>0:表示修改的行数,<0:sql错误或者未执行
create procedure `seckill`.`execute_seckill`(in v_seckill_id bigint, in v_phone bigint,
in v_kill_time timestamp, out r_result int)
begin
declare insert_count int... |
--new relationships for LOINC
DO $$
DECLARE
z int;
ex int;
pRelationship_name constant varchar(100):='Has system';
pRelationship_id constant varchar(100):='Has system';
pIs_hierarchical constant int:=0;
pDefines_ancestry constant int:=0;
pReverse_relationship_id constant varchar(100):='... |
INSERT INTO public.restaurants(
client_id, name, cuisine, address)
VALUES (1, 'Carbone', 'Italian', '{"Address":"181 Thompson St","City":"New York","State":"NY","Zip":"10012"}');
INSERT INTO public.restaurants(
client_id, name, cuisine, address)
VALUES (2, 'Loring Place', 'American', '{"Address":"21 W 8th St","City... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table telefono (
id bigint not null,
numero varchar(255),
movil boolean,
usuario_id bigint,
... |
USE [846Composer]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Tom Whitson, CompanyName
-- Create date: 10/1/2021
-- Description: Procedure to clean ERPStaging
-- =============================================
CREATE PROCEDURE [dbo].[ERPStagi... |
/*
Navicat Premium Data Transfer
Source Server : MYSQL
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : slim_doctrine_db
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 04/04/20... |
ALTER TABLE `admin` ADD `stripe_id` VARCHAR(255) NULL DEFAULT NULL AFTER `date_terminated`;
|
ALTER DATABASE news CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
drop table if exists LINKS_TO_BE_PROCESSED;
create table LINKS_TO_BE_PROCESSED
(
link varchar(2000)
);
drop table if exists LINKS_ALREADY_PROCESSED;
create table LINKS_ALREADY_PROCESSED
(
link varchar(2000)
);
drop table if exists NEWS;
... |
# symTest.sql was originally generated by the autoSql program, which also
# generated symTest.c and symTest.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#test of enum and set symbolic columns
CREATE TABLE symTest (
id int not null... |
use payroll;
ALTER TABLE employee_master ADD emp_worktype VARCHAR(255) default NULL AFTER emp_post;
ALTER TABLE employee_master change emp_type_code emp_type_code VARCHAR(255) default NULL AFTER emp_worktype;
ALTER TABLE employee_master change emp_gender emp_gender VARCHAR(255) default NULL AFTER emp_pan_no;
ALTER ... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 22, 2018 at 08:07 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... |
--@Autor: FLores Fuentes Kevin y Torres Verastegui Jose Antonio
--@Fecha creación: 15/06/2020
--@Descripción: Creacion de Entidades
Prompt Conectando como usuario Administrador..
connect fftv_proy_admin/admin
Prompt Creando Entidades y atributos:
create table entidad(
entidad_id number(10,0) constraint entidad_pk p... |
{{ config(
cluster_by = "_airbyte_emitted_at",
partition_by = {"field": "_airbyte_emitted_at", "data_type": "timestamp", "granularity": "day"},
unique_key = '_airbyte_ab_id',
schema = "_airbyte_test_normalization",
tags = [ "top-level-intermediate" ]
) }}
-- SQL model to build a hash column based on... |
CREATE TYPE public.typ_range AS RANGE (
subtype = character varying,
collation = pg_catalog."ru_RU.utf8",
SUBTYPE_OPCLASS=date_ops,
CANONICAL=daterange_canonical
);
ALTER TYPE public.typ_range OWNER TO botov_av;
CREATE TYPE public.textrange111 AS RANGE (
subtype = text,
collation = pg_catalog.... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 25, 2020 at 05:04 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
alter table "public"."links" add constraint "Regex_constraint_incoming_link" check (incoming_link ~* '^\/[-\w\/]+$'::text); |
WITH RECURSIVE
-- ...
simulation_hands (hand, packet_1, packet_2, pending_cards, war_count, winner) AS (
-- ...
UNION ALL
SELECT
hand + 1 AS hand,
( CASE simulation_hand_calculations.winner WHEN 1 THEN
simulation_hand_calculations.pending_cards || retained_packet_1
ELSE r... |
-- this script is commented due to a new quota design that
-- not requires default quota.
-- select fn_db_add_column('quota', 'is_default_quota', 'BOOLEAN');
|
CREATE TABLE IF NOT EXISTS raw_mac (
registry VARCHAR(16) DEFAULT NULL,
assignment VARCHAR(12) NOT NULL PRIMARY KEY,
organization VARCHAR(256) DEFAULT NULL,
address VARCHAR(256) DEFAULT NULL) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS raw_netbox_tenancy_tenantgroup (
id BIGINT NOT NULL PRIMARY KEY,
na... |
-- Github: github.com/RodneyShag
SELECT SUM(CITY.POPULATION)
FROM CITY, COUNTRY
WHERE CITY.COUNTRYCODE = COUNTRY.CODE AND COUNTRY.CONTINENT = 'Asia';
|
#standardSQL
# SEO stats
# Note: Canonical metrics moved to pages-canonical-stats.sql. Should be removed from here in 2022.
# returns all the data we need from _wpt_bodies
CREATE TEMPORARY FUNCTION getSeoStatsWptBodies(wpt_bodies_string STRING)
RETURNS STRUCT<
# tags
n_titles INT64,
title_words INT64,
n_met... |
ALTER TABLE IACUC_PROTOCOL_PERSONS ADD PROCEDURE_QUALIF_DESCRIPTION VARCHAR2(2000)
/
|
SELECT TOP 5
e.EmployeeID,
e.JobTitle,
e.AddressID,
a.AddressText
FROM Employees e
JOIN Addresses a ON e.AddressID = a.AddressID
ORDER BY e.AddressID ASC |
-- -----------------------------------------------------
-- Table ecommerce.commandes
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS ecommerce.commandes (
num_commande INT UNSIGNED NOT NULL AUTO_INCREMENT,
date_commande DATE NOT NULL,
date_expedition DATE ,
date_livraison DA... |
§Japanese
PROP_FONT_FILE
m+10r.bdf
################################################################################
# DO NOT EDIT THIS FILE. #
# USE https://translator.simutrans.com FOR YOUR CHANGES #
# AND DOWNLOAD THIS FILE AGAIN WITH YOUR S... |
select name, id, role_name, type, role_type, description, assignable_scopes, permissions
from azure.azure_role_definition
where name = '{{ output.resource_id.value.split("/").pop() }}'
|
-- [er]create table with SET data type and insert nchar data
CREATE CLASS t1(
col1 SET
);
INSERT INTO t1 VALUES (N'aaa');
drop t1; |
#1. FINDING TOP TRAFFIC SOURCES
SELECT
utm_source,
utm_campaign,
http_referer,
COUNT(DISTINCT website_session_id) AS sessions
FROM website_sessions
WHERE created_at < '2012-04-12'
GROUP BY
utm_source,
utm_campaign,
http_referer
ORDER BY sessions DESC
#2. TRAFFIC CONVERSION RATES
SELECT
#website_se... |
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the 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 obtain a copy of the License at
--
-- http://www.apache.org/... |
-- file:join.sql ln:1447 expect:true
SELECT * FROM b LEFT JOIN a ON (b.a_id = a.id) WHERE (a.id IS NULL OR a.id > 0)
|
USE [DefaultDBName]
GO
/****** Create the Stored Procedure for PM Template ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DROP PROCEDURE IF EXISTS train_multiclass_nn
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description... |
/* DEPOSIT MINES */
CREATE PROCEDURE procedure_miner_deposit(
IN this_user_no INTEGER,
IN this_amount double(20,2),
IN this_currency_type_id INTEGER
) BEGIN
INSERT INTO miner_deposit(
user_no ,
amount ,
currency_type_id
)VALUES(
this_user_no,
this_amount,
this_currency_type_id
);
END... |
USE appdb;
CREATE TABLE event_stream (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`aggregate_id` CHAR(36) NOT NULL,
`aggregate_version` INT(11) UNSIGNED NOT NULL,
`event_type` VARCHAR(100) NOT NULL,
`payload` JSON NOT NULL,
`created_at` DATETIME NOT NULL,
UNIQUE KEY `unique_aggreg... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 14, 2022 at 03:06 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
/* interactive-complex-9 */
select p_personid, p_firstname, p_lastname,
m_messageid, COALESCE(m_ps_imagefile,'')||COALESCE(m_content,''), m_creationdate
from
( select k_person2id
from knows
where
k_person1id = 4398046516895
union
select k2.k_person2id
from knows k1, knows k2
where
... |
-- @testpoint: interval分区,ALTER TABLE DROP PARTITION删除预定义分区
drop table if exists my_ptb1;
create table my_ptb1(
col_1 smallint,
col_2 char(30),
col_3 int,
col_4 date,
col_5 boolean,
col_6 nchar(30),
col_7 float
)
partition by range (col_4) interval ('1 month')
(partition my_ptb1_p1 values less than ('2020-03-01'),
par... |
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `hfish_colony`
-- ----------------------------
DROP TABLE IF EXISTS `hfish_colony`;
CREATE TABLE `hfish_colony` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`agent_name` varchar(20) NOT NULL DEFAULT '',
`agent_ip` varc... |
WITH
--Generate equal sized buckets in log-space between near 0 Mbps and ~1 Gbps+
buckets AS (
SELECT POW(10, x-.25) AS bucket_left, POW(10,x+.25) AS bucket_right
FROM UNNEST(GENERATE_ARRAY(0, 3.5, .5)) AS x
),
--Select the initial set of tests
dl_per_location AS (
SELECT
date,
client.Geo.ContinentCode AS... |
USE [DemoCluster]
GO
CREATE TABLE [Cluster].[OrleansQuery] (
[QueryKey] VARCHAR (64) NOT NULL,
[QueryText] VARCHAR (8000) NOT NULL,
CONSTRAINT [OrleansQuery_Key] PRIMARY KEY CLUSTERED ([QueryKey] ASC)
)
GO
CREATE TABLE [Cluster].[OrleansMembershipVersionTable]
(
[DeploymentId] NVARCHAR(150) NOT NULL,
... |
-- 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 not... |
SELECT relname, seq_tup_read + idx_tup_fetch as total
FROM pg_stat_user_tables
WHERE seq_tup_read + idx_tup_fetch > 0
ORDER BY total DESC LIMIT 10;
|
GRANT ALL PRIVILEGES ON *.* TO dbuser@"%" IDENTIFIED BY '[123456]';
CREATE DATABASE IF NOT EXISTS `awesome` DEFAULT CHARACTER SET UTF8mb4 DEFAULT COLLATE utf8mb4_bin;
USE awesome;
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SE... |
--+ holdcas on;
set system parameters 'compat_mode=mysql';
select acos(-1) from db_root;
select acos(acos(1)) from db_root;
select acos(acos(0) - field(acos(1),1,0,2,3)) from db_root;
set system parameters 'compat_mode=cubrid';commit;
--+ holdcas off;
|
-- @testpoint:openGauss关键字precision(非保留),同时作为表名和列名带引号,与union结合查询合并两个SELECT 语句查询
drop table if exists "precision";
create table "precision"(
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(... |
%%MatrixMarket matrix coordinate real general
2 1 2
1 1 100
2 1 100
|
CREATE PROCEDURE dbo.CrearUsuario
@Nombre nvarchar(40)
,@ClaveHash binary(64)
,@Nombres nvarchar(40)
,@Apellido nvarchar(40)
,@Direccion nvarchar(60)
,@Telefono nvarchar(12)
,@Correo nvarchar(30)
,@Edad tinyint
,@Activo bit
,@responseMessage NVARCHAR(250) OUTPUT
A... |
SELECT COUNT(*)
FROM site AS s,
so_user AS u1,
question AS q1,
answer AS a1,
tag AS t1,
tag_question AS tq1,
badge AS b,
account AS acc
WHERE s.site_id = q1.site_id
AND s.site_id = u1.site_id
AND s.site_id = a1.site_id
AND s.site_id = t1.site_id
AND s.site_id = tq1.site_id
A... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.3
-- Dumped by pg_dump version 9.5.3
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;
SET row_security = off;
... |
-- from acs-metadata-create.sql
create or replace function acs_attribute__create_attribute (varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,integer,integer,integer,varchar,boolean)
returns integer as '
declare
create_attribute__object_type alias for $1;
create_attribute__attribute_name... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 24, 2021 at 09:10 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
GRANT ALL PRIVILEGES ON DATABASE reefexplorer TO reefexplorer;
CREATE TABLE IF NOT EXISTS block (
block_number BIGINT NOT NULL,
finalized BOOLEAN NOT NULL,
block_author TEXT NOT NULL,
block_author_name TEXT NOT NULL,
block_hash TEXT NOT NULL,
parent_hash TEXT NOT NULL,
extrinsics_root TEXT NOT NULL,
... |
CREATE TABLE kinesis_consumer (
namespace text NOT NULL,
shard_id text NOT NULL,
sequence_number numeric NOT NULL,
CONSTRAINT kinesis_consumer_pk PRIMARY KEY (namespace, shard_id)
);
|
# --- !Ups
UPDATE tag SET tag = 'trash/recycling can' WHERE tag = 'trash can';
# --- !Downs
UPDATE tag SET tag = 'trash can' WHERE tag = 'trash/recycling can';
|
SELECT distinct
min(ct_referencenumber) as id
FROM PROD360.dbo.ct_contact
GROUP BY ct_referencenumber
HAVING (COUNT(ct_referencenumber) > 1)
order by id
|
INSERT INTO TIPO_BAIXA (ID, UID, VERSION, NOME) VALUES (nextval ('hibernate_sequence'), uuid_generate_v4(), 0, 'DINHEIRO');
INSERT INTO TIPO_BAIXA (ID, UID, VERSION, NOME) VALUES (nextval ('hibernate_sequence'), uuid_generate_v4(), 0, 'CHEQUE');
INSERT INTO TIPO_BAIXA (ID, UID, VERSION, NOME) VALUES (nextval ('hibernat... |
/* -----------------------------------------------------------------------------
Delete all data from the PIMS_INSURANCE_TYPE table and repopulate.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Author Date Comment
------------ ----------- -----------------------------... |
--
SELECT *
FROM authentication
WHERE identifier = $(identifier)
|
DROP TABLE device_identifier;
DROP TABLE device_model;
DROP TABLE user_session;
DROP TABLE users;
CREATE TABLE device_model
(
manufactur text NOT NULL,
model text NOT NULL,
name text NOT NULL,
description text NOT NULL,
CONSTRAINT "PK_DEVICE_MODEL" PRIMARY KEY (manufactur, model)
)
WITH (
OIDS=FALSE
);
AL... |
-- @testpoint:openGauss保留关键字full同时作为表名和列名带引号,并进行dml操作,full列的值最终显示为1000
drop table if exists "full";
create table "full"(
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... |
USE T20;
INSERT IGNORE INTO `jos_dp_configuration` (`config_key`, `config_value`, `config_comment`, `config_env_specific`) VALUES
('apps.packages.path', '/nethdd/Data/acpkg/Packages/files/', 'App : Place to save a copy of package files', 0);
|
--- ================================================================================
--- compte_comptable
--- ================================================================================
-- compte_comptable
-- numero libelle
-- 401 Fournisseurs
-- 411 Clients
-- 445... |
CREATE TABLE variant_durable_targeting (
id VARCHAR(128) NOT NULL,
variation VARCHAR(256) NOT NULL,
experience VARCHAR(256) NOT NULL,
created_on TIMESTAMP NOT NULL,
PRIMARY KEY (id, variation)
); |
-- BattleNetShop.Data.MySql.Salereport
CREATE TABLE `salereports` (
`vendorName` nvarchar(500) NOT NULL, -- _vendorName
`totalQuantitySold` integer NOT NULL, -- _totalQuantitySold
`totalIncomes` integer NOT NULL, -- _totalIncomes
`report_id` integer AUTO_INCREMENT NOT NULL, -- _report_id
... |
SELECT {ALIAS}.*,
CONCAT({ALIAS}.DoctorID, '') AS {ENTITY}LookupCaption,DepartmentName,GenderName,UserSignInName,UserEmail,
'' AS _Other
FROM {PREFIX}{NAME} AS {ALIAS}
/*LEFT JOIN X AS Y ON Y.YID = {ALIAS}.YID*/
LEFT JOIN hms_department AS DP ON DP.DepartmentID={ALIAS}.DepartmentID
LEFT JOIN sphp_gen... |
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
--
-- This file is licensed under the Apache License,
-- see LICENSE-APACHE at the top level directory.
\ir include/insert_single.sql
SELECT * FROM test.show_columnsp('"one_Partition".%');
SELECT * FROM "one_Partition" ORDER BY "timeCustom", device_id;
... |
create table ACT_RE_DEPLOYMENT (
ID_ varchar(64) not null,
NAME_ varchar(255),
CATEGORY_ varchar(255),
KEY_ varchar(255),
TENANT_ID_ varchar(255) default '',
DEPLOY_TIME_ timestamp,
DERIVED_FROM_ varchar(64),
DERIVED_FROM_ROOT_ varchar(64),
PARENT_DEPLOYMENT_ID_ varchar(255),
ENG... |
create database entry_task_v2_db;
create table `user_tab` (
`id` bigint unsigned not null auto_increment,
`name` varchar(64) collate utf8mb4_unicode_ci not null comment 'username',
`nickname` varchar(64) collate utf8mb4_unicode_ci not null comment 'nickname',
`profile_pic` varchar(1024) collate utf8mb4... |
--
-- 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... |
SELECT `id`, `acct_id`, `alloc_yr`, `alloc_mo`, `memo`, `target_amnt_inc_vat`, `actual_amnt_inc_vat`, `date_begin`, `date_end`, `regdate`
FROM `budget`
WHERE `brand_id` = %s AND `date_begin` >= %s AND `date_end` <= %s |
--
-- packages/acs-kernel/sql/rel-segments-create.sql
--
-- @author Oumi Mehrotra oumi@arsdigita.com
-- @creation-date 2000-11-22
-- @cvs-id $Id: rel-segments-create.sql,v 1.4 2015/12/04 13:49:25 cvs Exp $
-- Copyright (C) 1999-2000 ArsDigita Corporation
-- This is free software distributed under the terms of the GNU ... |
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
drop table if exists ${tablePrefix}task;
drop table if exists ${tablePrefix}user;
create table ${tablePrefix}task (
id bigint,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
)... |
INSERT INTO `person` (`firstname`, `lastname`, `share`) VALUES ('Humbert', 'de Lambilly', 589615.25);
INSERT INTO `person` (`firstname`, `lastname`, `share`) VALUES ('Antoine', 'de Lambilly', 294807.63);
INSERT INTO `person` (`firstname`, `lastname`, `share`) VALUES ('Laure', 'Pauvert', 98269.21);
INSERT INTO `person` ... |
CREATE TABLE `pms_product` (
`id` bigint(20) unsigned NOT NULL,
`app_id` bigint(20) unsigned NULL DEFAULT NULL ,
`brand_id` bigint(20) DEFAULT NULL,
`product_category_id` bigint(20) DEFAULT NULL,
`feight_template_id` bigint(20) DEFAULT NULL,
`product_attribute_category_id` bigint(20) DEFAULT NULL,
`name` ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.