text
stringlengths
1
1.05M
BEGIN; DROP VIEW IF EXISTS bpp_wydawnictwo_ciagle_autorzy CASCADE; CREATE OR REPLACE VIEW bpp_wydawnictwo_ciagle_autorzy AS SELECT ARRAY [ (SELECT id FROM django_content_type WHERE django_content_type.app_label = 'bpp' AND django_content_type.model = 'wydawnictwo_ciagle'), rekord...
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50624 Source Host : localhost:3306 Source Database : temanlomba Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2018-11-24 19:19:58 */ SET FOREIGN_KEY_CHECKS=0; -- --...
-- SETTINGS SET @iTypeId = (SELECT `ID` FROM `sys_options_types` WHERE `name` = 'bx_convos' LIMIT 1); SET @iCategId = (SELECT `ID` FROM `sys_options_categories` WHERE `type_id` = @iTypeId LIMIT 1); DELETE FROM `sys_options` WHERE `category_id` = @iCategId; DELETE FROM `sys_options_categories` WHERE `type_id` = @iTypeI...
-- phpMyAdmin SQL Dump -- version 4.4.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 14, 2015 at 08:07 AM -- Server version: 5.5.42 -- PHP Version: 5.6.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `riset_doctrack` -- -- --------------------------...
DELETE FROM `Parcels`;
DROP TABLE IF EXISTS datetime; CREATE TABLE datetime (d DateTime('UTC')) ENGINE = Memory; INSERT INTO datetime(d) VALUES(toDateTime('2016-06-15 23:00:00', 'UTC')); SELECT quantile(0.2)(d) FROM datetime; SELECT quantiles(0.2)(d) FROM datetime; SELECT quantileDeterministic(0.2)(d, 1) FROM datetime; SELECT quantilesDet...
-- file:privileges.sql ln:217 expect:true GRANT SELECT ON atestv2 TO regress_user2
ALTER TABLE environments ADD COLUMN github_project_name VARCHAR(512); ALTER TABLE environments ADD COLUMN github_project_ref VARCHAR(512); ALTER TABLE environments ADD COLUMN github_project_dir VARCHAR(512);
-- TPC-H Query 15 with revenue as ( select l.suppkey as supplier_no, sum(l.extendedprice * (1 - l.discount)) as total_revenue from lineitem l where l.shipdate >= date '1996-01-01' and l.shipdate < date '1996-04-01' group by l.suppkey) select s.suppkey, s.name, s.address, s.phone, r.total_revenue f...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!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 */; -- -- 数据库: `dbooster_torrents` -- CREATE DATABASE `...
-- phpMyAdmin SQL Dump -- version 2.9.1.1 -- http://www.phpmyadmin.net -- -- Serveur: localhost -- Généré le : Vendredi 27 Juillet 2007 à 09:53 -- Version du serveur: 5.0.27 -- Version de PHP: 5.2.0 -- -- Base de données: `kvm` -- -- -------------------------------------------------------- -- -- St...
CREATE TABLE md4_csxx ( puk VARCHAR(24) DEFAULT '0' NOT NULL, k01_zjjgdm VARCHAR(40), k02 VARCHAR(40), k03 VARCHAR(80), f01_qyqc VARCHAR(200), f02_qcpym VARCHAR(80), f03_gwdz VARCHAR(200), f04_clrq VARCHAR(20), f05_zczbwy VARCHAR(20), f06_frxm VARCHAR(24), f07_frsfzid VARCHAR...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 19-11-2019 a las 11:34:37 -- Versión del servidor: 5.7.23 -- Versión de PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 27, 2018 at 09:49 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
/* * Copyright 2020 Xiaomi * * 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 applica...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Oct 25, 2019 at 04:21 AM -- Server version: 5.7.26 -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
/* * This test is intended to pass on all platforms supported by Postgres. * We can therefore only assume that the default, C, and POSIX collations * are available --- and since the regression tests are often run in a * C-locale database, these may well all have the same behavior. But * fortunately, the system do...
-- -- Run the following SQL, export it as tab delimited with no headers -- suitable for loading into MySQL. -- Because we are going to tab files, remove lines breaks, tabs and clean double spaces. -- SELECT key, trim(regexp_replace(regexp_replace(title, E'[\\n\\r]+', ' ', 'g' ), '\s+', ' ', 'g')) AS title FROM dataset ...
DROP DATABASE IF EXISTS beerservice; DROP USER IF EXISTS `beer_service`@`%`; CREATE DATABASE IF NOT EXISTS beerservice CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER IF NOT EXISTS `beer_service`@`%` IDENTIFIED WITH mysql_native_password BY 'password'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, R...
CREATE INDEX at_ahi_idx ON access_token(auth_holder_id); CREATE INDEX aha_oi_idx ON authentication_holder_authority(owner_id); CREATE INDEX ahe_oi_idx ON authentication_holder_extension(owner_id); CREATE INDEX ahrp_oi_idx ON authentication_holder_request_parameter(owner_id); CREATE INDEX ahri_oi_idx ON authentication_h...
CREATE TABLE subdivision_IN (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_IN" ("id", "name", "level") VALUES (E'IN-AN', E'Andamanen und Nikobaren', E'union territory'); INSERT INTO "subdivision_IN" ("id", "name", "level") VALUES (E'IN-AP', E'Andhra P...
CHROM POS TYPE REF ALT EVIDENCE FTYPE STRAND NT_POS AA_POS EFFECT LOCUS_TAG GENE PRODUCT reference 293 snp C T T:16 C:0 reference 302 del CT C C:15 CT:0 reference 324 ins C CAA CAA:12 C:0 reference 374 ins A ATTCTAGGGTAGACGCT ATTCTAGGGTAGACGCT:11 A:0 reference 461 complex AAAT G G:28 AAA...
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2015 at 10:50 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
alter table UTILITYLIBRARY_STATUS add constraint FK_UTILITYLIBRARY_STATUS_ON_STATUS foreign key (STATUS_ID) references SEC_USER(ID); create index IDX_UTILITYLIBRARY_STATUS_ON_STATUS on UTILITYLIBRARY_STATUS (STATUS_ID);
CREATE DATABASE IF NOT EXISTS `cadastro` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `cadastro`; -- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: localhost Database: cadastro -- ------------------------------------------------------ -- Server version 5.7.14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
CREATE OR REPLACE FUNCTION "CONCATPARTSDETAILNOTRUNC" ( collobjid in integer) return CLOB as tmp varchar2(4000); ta varchar2(4000); sep varchar2(10); ts VARCHAR2(2); ret_tmp VARCHAR2(10000); -- ADDED THIS LINE. ret CLOB; tmp_pn varchar2(...
# --- !Ups CREATE TABLE "person" ( id SERIAL PRIMARY KEY, first_name TEXT NOT NULL, last_name TEXT NOT NULL, mobile BIGINT NOT NULL, email TEXT NOT NULL ); # --- !Downs DROP TABLE "person";
alter table DASHBOARD_PERSISTENT_DASHBOARD add column IS_AVAILABLE_FOR_ALL_USERS boolean ;
-- ---------------------------- -- Records of t_cms_article -- ---------------------------- INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('1', '1', '2019-03-09 16:24:58', '1', '2019-05-10 13:22:49', 'enilu', '<div i...
{{ fivetran_utils.union_data( table_identifier='invoice_line_item', database_variable='xero_database', schema_variable='xero_schema', default_database=target.database, default_schema='xero', default_variable='invoice_line_item' ) }}
delete from articles; create table if not exists articles ( id serial primary key, text text );
/****** Object: StoredProcedure [dbo].[AddUpdateAnalysisJobRequest] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[AddUpdateAnalysisJobRequest] /**************************************************** ** ** Desc: ** Adds new analysis job request to request queue ** ** ...
CREATE TABLE IF NOT EXISTS regiao ( id INT NOT NULL, sigla VARCHAR(2) NOT NULL, nome VARCHAR(12) NOT NULL, PRIMARY KEY (id) ) ENGINE = InnoDB;
 -- ********************************************************** -- @@Verion: 1 -- SP Name: dbo.prcGetInterviewSchedule -- Author: Niraj Sinha -- Description: assigns indent, and returns data for further action -- ******************************************************** /* dbo.prcGetInterviewSchedule 1, ...
SELECT COUNT(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = q1.site_id AND t1.id = tq1.tag...
begin; CREATE UNIQUE INDEX abort_create_needed_cr_heap_unq_idx1 ON abort_create_needed_cr_heap_table_unique_index (numeric_col); insert into abort_create_needed_cr_heap_table_unique_index values ('0_zero', 0, '0_zero', 0, 0, 0, '{0}', 0, 0, 0, '2004-10-19 10:23:54', '2004-10-19 10:23:54+02', '1-1-2000'); insert into ab...
select o_year, sum(case when nation = 'PERU' then volume else 0 end) as numerator, sum(volume) as demoninator from ( select substr(cast(o_orderdate AS TEXT),1,4) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from lineitem join orders on l_or...
DROP TABLE changes_audit; DROP TABLE users_tickets; DROP TABLE tickets_bonuses; DROP TABLE tickets; DROP TABLE bonuses; DROP TABLE events; DROP TABLE event_locations; DROP TABLE event_types; DROP TABLE users;
DROP TABLE geometries.bike_lanes;
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50716 Source Host : localhost:3306 Source Database : db-mcms-open Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2016-12-29 09:43:44 */ SET FOREIGN_KEY_CHECKS=0; ...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2020 at 05:34 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
INSERT INTO `mydb`.`processlead` (`processLeadNo`, `fName`, `lName`) VALUES ('1', 'Napoleon', 'Newton'); INSERT INTO `mydb`.`processlead` (`processLeadNo`, `fName`, `lName`) VALUES ('2', 'Wellington', 'Bohr'); INSERT INTO `mydb`.`processlead` (`processLeadNo`, `fName`, `lName`) VALUES ('3', 'Patton', 'Socrates');
-- Add repository groups -- This is a stub, repo_group = repo name in gRPC update gha_repos r set alias = coalesce(( select e.dup_repo_name from gha_events e where e.repo_id = r.id order by e.created_at desc limit 1 ), name) where r.name like '%_/_%' and r.name not like '...
-- ============================================= -- Author: Manish -- Create date: 16 sep 2008 -- Description: It will return the list of SIC Codes for an employer -- ============================================= CREATE FUNCTION [dbo].[fnx_GetSICCodes] ( @EmployerId int ) RETURNS varchar(200) AS BEGIN DECLARE @SIC...
-- Create requests table CREATE TABLE IF NOT EXISTS `requests` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `correlation_id` TEXT NOT NULL, `executing_stub_id` TEXT, `request_begin_time` TEXT NOT NULL, `request_end_time` TEXT, `json` TEXT NOT N...
-- -- Copyright 2010-2017 the original author or authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unles...
select systemID, regionID, romExtensionlessFilename, romSerial from ROMs where romSerial notnull SELECT * FROM metadata WHERE key = @key AND value LIKE @likeValue SELECT * FROM metadata WHERE uuid = @metadataId LIMIT 1 SELECT * FROM metadata WHERE uuid in @guids SELECT * FROM files WHERE game IN @games; SELECT * FROM m...
-- License: MIT -- Authors: -- - Josep Bigorra (averageflow) SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `logs`; CREATE TABLE `logs` ( `uid` varchar(36) NOT NULL, `application` varchar(255) NOT NULL, `error` longtext, `time` bigint(20) NOT NULL, PRIMARY KEY (`uid`) ) ENGINE=InnoDB D...
CREATE TABLE ourdates ( id SERIAL PRIMARY KEY, place_type VARCHAR(120) NOT NULL, place_name VARCHAR(120) UNIQUE NOT NULL, description VARCHAR(1000) NOT NULL, web_ranking int, web_link VARCHAR(1000), image_url VARCHAR(1000), zip_code int, price VARCHAR(20) NOT NULL ); INSERT INTO ourdates (place_type, place_na...
use CayGiaPhaAPI --Dong bo khoa ngoai Node_Id va IdNodeCha go create trigger trg_NodeParentId on Nodes after insert, update as begin declare @parentId int, @nodeId int, @temp1 int, @temp2 int select @temp1 = Node_Id from inserted select @temp2 = IdNodeCha from inserted if(@temp1 is not null) set @parentId = ...
CREATE TABLE IF NOT EXISTS `patient_details` ( `pid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Pid as Primary Key', `lid` int(11) NOT NULL, `fname` text NOT NULL, `lname` text NOT NULL, `dob` date NOT NULL, `admitteddate` date NOT NULL, `release` date DEFAULT NULL, `outcome` varchar(250) NOT NULL, `ss...
-- TEST0012 serial number MHR almost match, AC test match data: -- draft statement CLOB empty for testing. INSERT INTO drafts(id, document_number, account_id, create_ts, registration_type_cl, registration_type, registration_number, update_ts, draft) VALUES(200000016, 'D-T-0012', 'PS12345', CURRENT_T...
-- MySQL dump 10.13 Distrib 5.7.25, for Linux (x86_64) -- -- Host: localhost Database: questionnaire -- ------------------------------------------------------ -- Server version 5.7.25-0ubuntu0.18.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
insert into formation_changes (formation_change, formation, app, created, type, command, quantity, port, size, price, healthcheck) ( select gen_random_uuid(), formation, app, now() as created, type, coalesce($6, command), coalesce($4, quantity), coalesce($5, ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 31, 2016 at 03:46 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
UPDATE NO_PK_TABLE SET AAA = /*dto.aaa*/
CREATE TABLE tabmodulepreference ( id CHAVE NOT NULL, id_employee CHAVE NOT NULL, id_tab CHAVE NOT NULL, module CHARACTER VARYING(255) NOT NULL, CONSTRAINT pk_tabmodulepreference PRIMARY KEY (id) );
/* Fix images count */ UPDATE `usercounts` LEFT JOIN ( SELECT count( `image_userid` ) as numimg,`image_userid` FROM `images` WHERE `image_delid` = 0 GROUP BY `image_userid` ) as b ON `count_userid` = b.`image_userid` SET `count_images` = IFNULL( b.numimg, 0 ) UPDATE `usercounts` LEFT JOIN ( SELECT count( `jo...
ALTER TABLE pipeline.pipeline_run ADD entities_ids BIGINT[]; CREATE INDEX pipeline_run_with_entities ON pipeline.pipeline_run USING GIN (entities_ids);
-- MySQL Script generated by MySQL Workbench -- Sat Jul 4 09:39:51 2020 -- Model: New Model Version: 1.0 -- 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='ON...
alter table gateway_profile drop column stats_interval;
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = dis_test, pg_catalog; -- -- Name: test_126_skip(); Type: FUNCTION;...
CREATE TABLE [dbo].[Missing204AccountExpenses] ( [Chart] VARCHAR (2) NOT NULL, [Account] CHAR (7) NOT NULL, [SubAccount] VARCHAR (5) NULL, [PrincipalInvestigator] VARCHAR (50) NULL, [AnnualReportCode] CHAR (6) NULL, [OpFundN...
{% macro get_locations_columns() %} {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "address", "datatype": dbt_utils.type_string()}, {"name": "address_one", "datatype": dbt_utils.type_string()}, ...
IF OBJECT_ID('purchase.item_cost_price_scrud_view') IS NOT NULL DROP VIEW purchase.item_cost_price_scrud_view; GO CREATE VIEW purchase.item_cost_price_scrud_view AS SELECT purchase.item_cost_prices.item_cost_price_id, purchase.item_cost_prices.item_id, inventory.items.item_code + ' (' + inv...
/* Write your T-SQL query statement below */ UPDATE salary SET sex = ( CASE WHEN sex = 'f' THEN 'm' ELSE 'f' end )
-- Deploy ggircs-portal:policies/form_result_policies to pg -- requires: database_functions/get_valid_applications_for_reporter -- requires: database_functions/get_valid_applications_for_certifier begin; do $policy$ declare industry_user_statement text; declare certifier_user_statement text; begin -- ciip_administrat...
select mb.*, a.denominazione as nome_ambulatorio, a.indirizzo as indirizzo_amb, a.contatto_telefonico as tel_amb, c1.nome as nome_citta, c2.nome as citta_nascita, p2.nome as provincia_nascita, p.nome as nome_provincia, ssp.nome as servizio_sanitario, u.ruolo, u.avatar_filename as avatar_path from medic...
Select p.jed_mere, k.*, k.proizvod,a.AMBALAZA,a.ZA_KOLICINU from katalog k, proizvod p, ambalaza@medela a where k.dobavljac = 1226 and k.proizvod not in (select proizvod from ambalaza) and p.sifra = k.proizvod and p.jed_mere <> JM_CENA and k.nabavna_sifra = a.proizvod
SELECT DISTINCT(city) FROM station WHERE LEFT(LOWER(city), 1) NOT IN ('a', 'i', 'u', 'e', 'o');
-- using 1511765941 as a seed to the RNG select sum(l_extendedprice * l_discount) as revenue from lineitem where l_shipdate >= date '1995-01-01' and l_shipdate < date '1995-01-01' + interval '1' year and l_discount between 0.06 - 0.01001 and 0.06 + 0.01001 and l_quantity < 24;
use CSC480database; CREATE TABLE submission(submissionId int NOT NULL,teamId int NOT NULL,submissionTime datetime NOT NULL, comments longtext NOT NULL, signOff VARCHAR(255) NOT NULL, PdfDoc mediumblob NOT NULL, seen boolean NOT NULL, isDeleted boolean NOT NULL, listOfQCWordViolations VARCHA...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th12 05, 2021 lúc 10:58 AM -- Phiên bản máy phục vụ: 10.4.21-MariaDB -- Phiên bản PHP: 7.3.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 06, 2020 at 02:34 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE TABLE "public"."table21"("name" text NOT NULL, "id" serial NOT NULL, PRIMARY KEY ("id") );
ALTER TYPE nw.fistful_cash_flow_change_type ADD VALUE 'deposit_revert';
--File is here to support unit test of PathMatchingResourcePatternResolver
<%# If this were rendered as a template, it'd be blank %>
select -- Required Columns a.id as resource, case when virtual_network_type != 'None' then 'ok' else 'alarm' end as status, a.name || ' Virtual network is set to ' || virtual_network_type as reason, -- Additional Dimensions resource_group, sub.display_name as subscription from azure_api_mana...
CREATE TEMPORARY FUNCTION hclBitcoinTransactionHash as 'org.zuinnote.hadoop.bitcoin.hive.udf.BitcoinTransactionHashUDF' USING JAR '/tmp/hadoopcryptoledger-hiveudf-1.3.0.jar'; CREATE TEMPORARY FUNCTION hclBitcoinTransactionHashSegwit as 'org.zuinnote.hadoop.bitcoin.hive.udf.BitcoinTransactionHashSegwitUDF' USING JAR '/t...
IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'api.kvliikkuvuus')) DROP VIEW api.kvliikkuvuus
-- @testpoint:openGauss关键字coalesce(非保留),作为列名不带双引号,coalesce大小写混合,建表成功 --创建表 drop table if exists coalesce_test; create table coalesce_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...
CREATE OR REPLACE TRIGGER trigger_consegna BEFORE INSERT OR UPDATE ON consegna FOR EACH ROW DECLARE trasportatore_occupato EXCEPTION; occupato NUMBER; BEGIN SELECT COUNT(*) INTO occupato FROM consegna WHERE TrasportatoreTess = :NEW.TrasportatoreTess AND DataOraTL = :NEW.Data...
ALTER TABLE `event_outcome_options` ADD `option_block_score` DOUBLE NULL DEFAULT NULL AFTER `votes`;
CREATE TABLE "public"."lists" ("name" text NOT NULL, "id" serial NOT NULL, PRIMARY KEY ("id") , UNIQUE ("id"));
DROP TABLE IF EXISTS `CheckPlanning`; CREATE TABLE `CheckPlanning` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL COMMENT '表单名', `sn` varchar(50) NOT NULL COMMENT '单号', `department_id` int(11) NOT NULL COMMENT '部门ID', `create_admin_id` int(11) NOT NULL COMMENT '创建人', `create_time` dat...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 28 Nov 2020 pada 11.14 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2017-08-15 17:13:49 -- 服务器版本: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_svmPoly_pca -- Dataset : BreastCancer -- Database : firebird -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "...
DROP TABLE IF EXISTS `posts`; CREATE TABLE `posts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` text, `body` text, `excerpt` text, `published` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, `pinged` text, `to_ping` text, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--https://www.hackerrank.com/challenges/revising-the-select-query-2/ SELECT NAME FROM CITY WHERE COUNTRYCODE = 'USA' AND POPULATION > 120000;
-- Table Definition CREATE TABLE IF NOT EXISTS ${schema~}.blocks ( "id" VARCHAR(64) PRIMARY KEY, "version" SMALLINT NOT NULL, "timestamp" INTEGER UNIQUE NOT NULL, "previous_block" VARCHAR(64) UNIQUE, "height" INTEGER UNIQUE NOT NULL, "number_of_transactions" INTEGER NOT NULL, "total_amount" ...
--test trunc(float, x) with x={smallint, int} 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.5...
-- Since we haven't started creating more than a couple of accounts, delete them then run this TRUNCATE table paid_account; ALTER TABLE paid_account ADD COLUMN uid varchar(50) not null; ALTER TABLE ONLY paid_account ADD CONSTRAINT uk_account_uid UNIQUE (uid); TRUNCATE table paid_group; ALTER TABLE paid_group ADD COLUM...
97, 116, 116, 114, 105, 98, 117, 116, 101, 32, 111, 102, 32, 114, 111, 111, 116, 32, 103, 114, 111, 117, 112, 0 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 100 "string attribute"
PRINT N'Creating [dbo].[TestTable]...'; GO CREATE TABLE [dbo].[TestTable]( [Id] [int] IDENTITY(1,1) NOT NULL, [FullName] [nvarchar](50) NULL, [value1] [int] NOT NULL, [value2] [int] NOT NULL, CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED ( [Id] ASC ) ) ON [PRIMARY] GO
SELECT DISTINCT replacement_cost FROM film;
/** * * @author mg * @name get_query */ SELECT GOODORDER.ORDER_ID, T1.AMOUNT, CUSTOMER.CUSTOMER_NAME FROM GOODORDER T1 INNER JOIN CUSTOMER ON (GOODORDER.CUSTOMER=CUSTOMER.CUSTOMER_ID) AND (GOODORDER.AMOUNT>CUSTOMER.CUSTOMER_NAME) WHERE AMOUNT=:p1
CREATE TABLE STUDENT (USN VARCHAR (10), SNAME VARCHAR (20), ADDRESS VARCHAR (20), PHONE NUMBER (10), GENDER CHAR (1), CONSTRAINT PKST PRIMARY KEY(USN)); CREATE TABLE SEMSEC (SSID VARCHAR (5), SEM NUMBER (2), SEC CHAR (1), CONSTRAINT PKSEM PRIMARY KEY(SSID)); CREATE TABLE CLASS (USN VARCHAR (10), SSID VARCH...
DELETE FROM USER; DELETE FROM BOOK; DELETE FROM SEARCH_HISTORY; DELETE FROM LIBRARY; INSERT INTO USER (EMAIL, CREATED, ENABLED, FIRST_NAME, LAST_NAME, PASSWORD) VALUES ('voyaging@naver.com', '2015-04-21 17:53:21', 1, '하나', '이', '이하나'); INSERT INTO LIBRARY (LIBRARY_CODE, CATEGORY, NAME, REGION, STATUS, TRAIT, URL) VA...