text
stringlengths
1
1.05M
SELECT DISTINCT commodity_id AS id, country_id, nodes.id AS node_id, TRIM(commodities.name) AS name, TO_TSVECTOR('simple', COALESCE(TRIM(commodities.name)::TEXT, '')) AS name_tsvector, profiles.name AS profile FROM nodes_with_flows_per_year nodes JOIN commodities ON commodities.id = commodity_id LEFT JOIN p...
-- MySQL dump 10.13 Distrib 5.6.24, for Win32 (x86) -- -- Host: localhost Database: cadpaz_db -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
-- p1 ------------------------------------------------------ DELIMITER ### CREATE PROCEDURE usp_get_employees_salary_above_35000() BEGIN SELECT `first_name`, `last_name` FROM `employees` WHERE `salary` > 35000 ORDER BY `first_name`, `last_name`, `employee_id`; END ### DELIMITER ; CALL usp_get_employees_sala...
SELECT AVG(rental_rate) FROM film;
#added ϩⲓⲣⲙ 1 1 1 ϩⲱⲧ 1 1 1 #observed ⲙⲡ 1159 1 0.9991379310344828 ⲉⲩ 584 1 0.9982905982905983 ϩⲙ 554 1 0.9981981981981982 ⲛⲧⲁ 516 1 0.9980657640232108 ⲉⲧⲣⲉ 332 1 0.996996996996997 %ⲛⲛ 328 1 0.9969604863221885 %ⲉⲧ 959 3 0.9968814968814969 %ⲉⲛ 289 1 0.996551724137931 %ⲙ 1966 8 0.9959473150962512 ⲙⲛⲛ 221 1 0.995495495495...
USE `petclinic`; DROP VIEW IF EXISTS `petclinic`.`pet_details` ; CREATE VIEW `petclinic`.`pet_details` AS SELECT `a`.`id` AS `pet_id`, `a`.`name` AS `pet_name`, `a`.`birth_date` AS `birth_date`, `a`.`type_id` AS `type_id`, `a`.`owner_id` AS `owner_id`, `b`.`name` A...
ALTER TYPE public.job_type RENAME TO _job_type; CREATE TYPE public.job_type AS ENUM ( 'EXPERIMENT', 'NOTEBOOK', 'SHELL', 'COMMAND', 'TENSORBOARD' ); DELETE FROM public.jobs WHERE job_type = 'CHECKPOINT_GC' ALTER TABLE public.jobs ALTER COLUMN job_type TYPE public.job_type USING (job_type::text::job...
CREATE VIEW view49 AS SELECT 1 AS c1 FROM table360 UNION SELECT 1 AS c1 FROM table21 UNION SELECT 1 AS c1 FROM table307 UNION SELECT 1 AS c1 FROM view47 UNION SELECT 1 AS c1 FROM view53 UNION SELECT 1 AS c1 FROM view40; GO
/****** Object: Table [T_Event_Target] ******/ /****** RowCount: 14 ******/ /****** Columns: ID, Name, Target_Table, Target_ID_Column, Target_State_Column ******/ INSERT INTO [T_Event_Target] VALUES (0,'(none)','(none)','(none)','(none)') INSERT INTO [T_Event_Target] VALUES (1,'Campaign','T_Campaign','Campaign_ID'...
-- creating a procedure CREATE OR REPLACE PROCEDURE welcome_msg (p_name IN VARCHAR2) IS BEGIN dbms_output.put_line ('Welcome'|| p_name); END; / EXEC welcome_msg ('Guru99'); drop procedure welcome_msg; ---- creating a procedure CREATE OR REPLACE PROCEDURE remove_emp (employee_id NUMBER) AS tot_emps NUMBER; ...
CREATE TABLE IF NOT EXISTS order_detail ( order_created_timestamp timestamp, status varchar, price integer, discount float, id varchar, driver_id varchar, user_id varchar, restaurant_id varchar ); CREATE TABLE IF NOT EXISTS restaurant_detail ( id varchar, restaurant_name varchar...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 13, 2019 at 07:03 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
create schema office_climate; create table office_climate.user ( user_id serial primary key, name varchar(255) not null ); create table office_climate.place ( place_id serial primary key, name varchar(255) not null ); create table office_climate.temperature_report ( temperature_report_id serial primary k...
delete from users where id = #{java.util.UUID}
-- @gucs gp_create_table_random_default_distribution=off -- @product_version gpdb: [4.3.0.0- main] create table uao_part01 ( distcol int, ptcol int, subptcol int ) with(appendonly=true) distributed by (ptcol) partition by range (ptcol) subpartition by list (subptcol) subpartition template ( default subpartition suboth...
-- 932 Proportion of drug_era records outside a valid observation period -- -- stratum_1: Proportion to 6 decimal places -- stratum_2: Number of drug_era records outside a valid observation period (numerator) -- stratum_3: Number of drug_era records (denominator) -- count_value: Flag (0 or 1) indicating whether a...
-- -- NAME -- all inputs are silently truncated at NAMEDATALEN-1 (63) characters -- -- fixed-length by reference SELECT name 'name string' = name 'name string' AS "True"; SELECT name 'name string' = name 'name string ' AS "False"; -- -- -- CREATE TABLE NAME_TBL ( f1 name ); INSERT INTO NAME_TBL (f1) ...
CREATE TABLE "MOVEMENT_REASONS" ( "MOVEMENT_TYPE" VARCHAR2(12 CHAR) NOT NULL , "MOVEMENT_REASON_CODE" VARCHAR2(12 CHAR) NOT NULL , "DESCRIPTION" VARCHAR2(40 CHAR) NOT NULL , "OPEN_CONTACT_FLAG" VARCHAR2(1 CHAR...
INSERT INTO CATEGORY (NAME) VALUES ('Class'); INSERT INTO CATEGORY (NAME) VALUES ('Airlines'); INSERT INTO CATEGORY (NAME) VALUES ('Vehicle Type'); INSERT INTO CATEGORY (NAME) VALUES ('User Type'); INSERT INTO CATEGORY (NAME) VALUES ('Booking Status'); INSERT INTO CATEGORY (NAME) VALUES ('Destination'); INSERT INTO CAT...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 07, 2019 at 07:41 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE Person ( Id BIGINT IDENTITY, FirstName NVARCHAR(20) NOT NULL, LastName NVARCHAR(20) NOT NULL, CONSTRAINT PK_Person PRIMARY KEY (Id) ); CREATE TABLE PersonSettings ( Id BIGINT IDENTITY, PersonId BIGINT NOT NULL, CONSTRAINT PK_PersonSettings PRIMARY KEY (Id), CO...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 24, 2018 at 02:35 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. -- test add and remove refresh policy apis SET ROLE :ROLE_DEFAULT_PERM_USER; --TEST1 --- --basic test with count CREATE TABLE int_ta...
ALTER TABLE Users DROP CONSTRAINT [PK_Users_CompositeIdUsername] ALTER TABLE Users ADD CONSTRAINT PK_Users_Id PRIMARY KEY(Id) ALTER TABLE Users ADD CONSTRAINT CK_Users_UsernameLength CHECK(LEN(Username)>=3)
drop table if exists data; drop table if exists metaData; drop table if exists host; # # ------------------------------------The part above is for beacons and pinger website ( means administering tasks)-- # #----------------------------------------------- The part below is for collection and pinger MA-------------...
--+ holdcas on; --Create trigger with 'delete' event and retrieve the priority from virtual class db_trigger create class test_class(col1 integer, col2 varchar(20)); create class op_record(operator varchar(20), op_action varchar(50), op_time timestamp default '2008-05-27...
CREATE FUNCTION func20() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE144);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE178);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE362);val:=(SELECT COUNT(*)INTO MYCOUN...
UPDATE creature_template SET ScriptName='' WHERE entry=4863; UPDATE creature_template SET ScriptName='' WHERE entry=7228;
BEGIN; ALTER TABLE out_of_band_migrations DROP COLUMN IF EXISTS metadata; COMMIT;
PRINT N'Pre deploy' :r Script1.sql -- :z isn't a legitimate directive :z Script3.sql
BEGIN TRANSACTION CREATE TABLE dbo.Tmp_estate_users ( EstateID int NOT NULL, uuid uniqueidentifier NOT NULL ) ON [PRIMARY] IF EXISTS(SELECT * FROM dbo.estate_users) EXEC('INSERT INTO dbo.Tmp_estate_users (EstateID, uuid) SELECT EstateID, CONVERT(uniqueidentifier, uuid) FROM dbo.estate_users WITH (HOLDLOCK TA...
/* Warnings: - You are about to drop the column `channelId` on the `music_settings` table. All the data in the column will be lost. */ -- DropIndex DROP INDEX "music_settings_channelId_key"; -- AlterTable ALTER TABLE "music_settings" DROP COLUMN "channelId";
CREATE OR REPLACE PACKAGE hello_world# IS FUNCTION hello( i_name varchar2 := 'World' ) RETURN varchar2; END hello_world#; / CREATE OR REPLACE PACKAGE BODY hello_world# IS FUNCTION hello( i_name varchar2 := 'World...
-- Auto-generated SQL script #202008181336 UPDATE products.product_base SET filters='{"category": ["fish", "blue_fish"], "keywords": ["bonito"], "tags": ["diet", "a_vitamin", "b3_vitamin", "b12_vitamin", "iron", "potassium", "magnesium", "iodine", "d_vitamin"], "preparations": ["baked","grilled","charcoal_grilled","st...
-- Final SQL mapping: SELECT attribute_0,attribute_1,attribute_2,attribute_3,attribute_4,attribute_5,attribute_6,attribute_7,attribute_8,attribute_9,attribute_10,attribute_11,attribute_12,attribute_13,attribute_14,attribute_15,attribute_16,attribute_17,attribute_18,attribute_19,attribute_20,attribute_21,attribute_22,a...
/* Navicat MySQL Data Transfer Source Server : myblog Source Server Version : 50562 Source Host : localhost:3306 Source Database : egg_manager Target Server Type : MYSQL Target Server Version : 50562 File Encoding : 65001 Date: 2019-09-13 23:47:49 */ SET FOREIGN_KEY_CHECKS=0; -- ...
My Drive DETAILS ACTIVITY Select a file or folder to view its details. -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 50.62.209.110:3306 -- Generation Time: Sep 01, 2017 at 10:36 PM -- Server version: 5.5.43-37.2-log -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET ...
select name, namespace, data.key, data.value, age(current_timestamp, creation_timestamp) from kubernetes.kubernetes_config_map, jsonb_each(data) as data where namespace = '' and name = '';
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays" user_table_drop = "DROP TABLE IF EXISTS users" song_table_drop = "DROP TABLE IF EXISTS songs" artist_table_drop = "DROP TABLE IF EXISTS artists" time_table_drop = "DROP TABLE IF EXISTS time" # CREATE TABLES songplay_table_create = ("""CREATE TABLE ...
/* Navicat MySQL Data Transfer Source Server : jesse_root Source Server Version : 50713 Source Host : localhost:3306 Source Database : mall Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2017-11-26 16:23:18 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
# IP-406 - Update the web preview for invoices and quotes UPDATE ip_settings SET setting_value = 'InvoicePlane_Web' WHERE setting_key = 'public_invoice_template' AND setting_value = 'default'; UPDATE ip_settings SET setting_value = 'InvoicePlane_Web' WHERE setting_key = 'public_quote_template' AND setting_...
-- to deal with ER_NOT_SUPPORTED_AUTH_MODE error. Only run this line for local dev ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; -- create our main user for local dev CREATE USER IF NOT EXISTS 'my_user'@'%' IDENTIFIED BY 'root'; CREATE DATABASE IF NOT EXISTS `test_container` DEFAULT ...
/* Navicat MySQL Data Transfer Source Server : combat-crm Source Server Version : 50505 Source Host : localhost:3306 Source Database : sale Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-04-13 23:01:51 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
SELECT * FROM movies WHERE genre = 'romance' OR genre = 'comedy';
-- migrate:up create or replace function sg_public.electronic_music() returns sg_public.subject as $$ select * from sg_public.subject where name = 'An Introduction to Electronic Music' limit 1; $$ language sql stable; comment on function sg_public.electronic_music() is 'Grab just the single "An Introduction ...
CREATE TABLE [dbo].[dnn_HtmlTextUsers] ( [HtmlTextUserID] INT IDENTITY (1, 1) NOT NULL, [ItemID] INT NOT NULL, [StateID] INT NOT NULL, [ModuleID] INT NOT NULL, [TabID] INT NOT NULL, [UserID] INT NOT NULL, [CreatedOnDate] D...
DROP TABLE IF EXISTS regions; DROP TABLE IF EXISTS stops; DROP TABLE IF EXISTS stop_times; DROP TABLE IF EXISTS itineraries; DROP TABLE IF EXISTS itinerary_stop_times; DROP TABLE IF EXISTS proxy_stops;
SELECT mo.title, COUNT(ca.movieid) as actors FROM casting ca INNER JOIN movie mo ON ca.movieid = mo.id WHERE mo.yr = 1978 GROUP BY mo.title ORDER BY 2 DESC, 1 AS
 CREATE PROCEDURE [sp_upd_HubOwner] ( @HubOwnerID int, @Name nvarchar(50), @LongName nvarchar(500) ) AS UPDATE [dbo].[HubOwner] SET [Name] = @Name, [LongName] = @LongName WHERE ([HubOwnerID] = @HubOwnerID)
/* contrib/pgstattuple/pgstattuple--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION pgstattuple" to load this file. \quit CREATE FUNCTION pgstattuple(IN relname text, OUT table_len BIGINT, -- physical table length in bytes OUT tuple_count BIGI...
/* SQLyog Enterprise - MySQL GUI v7.15 MySQL - 5.6.42 : Database - bluenet_nap_stg ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101...
-- rename the table RENAME TABLE orcids TO orcid_attributes;
-- Source : https://leetcode.com/problems/classes-more-than-5-students/ -- Author : Charles Chen -- Date : 2018-04-03 /*************************************************************************************** * * There is a table courses with columns: student and class * * Please list out all classes which have...
-- CREATING DEFAULT VALUES IN THE TABLES FOR POSTGRES -- Create Default Customer INSERT INTO "customer_info" (id, email, name, details, createdTimestamp, lastModifiedTimestamp) values(2, 'tip-customer@tip.org', 'TIP Customer Inc.', decode('504b0304140008080800c2a4ff5000000000000000000000000001000000615d4f3d0bc23010fd2...
-- ----------------------------------------------------- -- Table `olivetnews`.`categories` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `olivetnews`.`categories` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(45) NULL , `position` INT NULL , `imgurl` VARCHAR(...
ALTER TABLE content_blocks CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE content_blocks DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE pages CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; ALTER TABLE pages DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unic...
-- file:copy2.sql ln:83 expect:false c
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2017 at 10:06 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
# --- MapRoulette Scheme # --- !Ups -- Remove unique index on Groups DROP INDEX IF EXISTS idx_groups_name; SELECT create_index_if_not_exists('groups', 'project_id_group_type', '(project_id, group_type)');; # --- !Downs
USE Geography SELECT TOP 30 CountryName, Population FROM Countries WHERE ContinentCode = 'EU' ORDER BY Population DESC
BEGIN; CREATE TABLE IF NOT EXISTS erc20.tokens ( contract_address bytea UNIQUE, symbol text, decimals integer ); DELETE FROM erc20.tokens *; COPY erc20.tokens (contract_address, symbol, decimals) FROM stdin; \\x3106a0a076bedae847652f42ef07fd58589e001f $ADS 18 \\xee06a81a695750e71a662b51066f2c74cf4478a0 $DG 18 \\...
method_name(internal) RETURNS tsm_handler
CREATE TABLE AUTHORS (id SERIAL PRIMARY KEY, name VARCHAR(255)); --Create a new authors table INSERT INTO authors(name) SELECT DISTINCT author FROM books; --Copy unique author names from books table to authors table ALTER TABLE books ADD COLUMN author_id INT; --Create an author_id column in books table and connect ea...
create table achievement_tracker ( id bigint auto_increment not null, points integer not null, current_streak integer not null, ...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versi server: 10.1.19-MariaDB - mariadb.org binary distribution -- OS Server: Win32 -- HeidiSQL Versi: 9.5.0.5225 -- ------------------------------------------------...
/* Navicat MySQL Data Transfer Source Server : Project Source Server Version : 50540 Source Host : localhost:3306 Source Database : elecrecord Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2016-06-08 14:00:38 */ SET FOREIGN_KEY...
-- -- -- CREATE OR REPLACE FUNCTION utils.updatePlacenameHierarchyTable() RETURNS bigint AS $$ DECLARE ph text; ch text; nxt utils.placename_hierarchy.nextcsid%TYPE; cnt int; BEGIN ph := ''; ch := ''; nxt := 1; cnt := 1; WHILE cnt < 100 LOOP UPDATE utils.placename_hierarchy p1 ...
-- randexpr1.test -- -- db eval {SELECT coalesce((select t1.b from t1 where not (t1.c>19) and 11<=+(abs(t1.b-19)/abs(a))+case when ((coalesce((select 13 from t1 where c in (b,t1.b,t1.d)),e))<>13) or f in ((t1.b),t1.e, -b) then 11+(c) else b end or b<>d),t1.f+t1.f+13) & - -a FROM t1 WHERE NOT (13 between t1.c and 13+~...
CREATE TABLE `paystream` ( `msgid` varchar(32) NOT NULL, `paymentdate` datetime NOT NULL, `number_from` varchar(32) NOT NULL, `numebr_to` varchar(32) NOT NULL, ...
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY -- H2 Syntax -- DROP THE NOT NULL CONSTRAINT ALTER TABLE REBIND_USER DROP USERNAME; ALTER TABLE REBIND_USER ADD USERNAME varchar(150);
CREATE TABLE map_tags( beatmapset_id INT UNSIGNED NOT NULL, filetype VARCHAR(8) NOT NULL, farm BOOLEAN DEFAULT false, streams BOOLEAN DEFAULT false, alternate BOOLEAN DEFAULT false, old BOOLEAN DEFAULT false, meme BOOLEAN DEFAULT false, hardname BOOLEAN DEFAULT false, easy BOOLEAN DE...
SELECT id, (SELECT age FROM wands_property WHERE code = w.code) AS age, coins_needed, power FROM wands w WHERE w.code IN (SELECT code FROM wands_property WHERE is_evil = 0) AND coins_needed = (SELECT MIN(coins_needed) FROM wands WHERE code = w.code AND power = w.power) ORDER BY power DESC, ag...
ALTER TABLE "selfservice_profile_management_requests" ALTER COLUMN "form" TYPE jsonb, ALTER COLUMN "form" DROP NOT NULL
/* Columnstore Indexes Scripts Library for Azure SQL Database: Cleanup - This script removes from the current database all CISL Stored Procedures that were previously installed there Version: 1.5.0, August 2017 Copyright 2015-2017 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http:...
-- file:jsonb.sql ln:487 expect:true select '{"a": {"b":{"c": "foo"}}}'::jsonb #>> array['a','b','c','d']
# --- !Ups create index `integration_token_user_index` on `integration_tokens` (`user_id`); # --- !Downs alter table `integration_tokens` drop index `integration_token_user_index`;
-- this file is a last chance to modify any database schema in hibernate (hbm2ddl) create mode with postgres-specific -- changes not possible in JPA -- column remark support in JPA does not seem to work for postgres, possible starting point https://stackoverflow.com/questions/28773022/jpa-column-annotation-to-create-c...
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: universitydb -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
-- Changeset changelog.yml::JIRA-1234-extend-model-label-max-length::Eugene Grybinnyk -- Extends (factory generated) model label max length to 40 characters. ALTER TABLE product MODIFY model_label VARCHAR(40);
COLUMN 1 NEW_VALUE 1 COLUMN 2 NEW_VALUE 2 COLUMN 3 NEW_VALUE 3 COLUMN 4 NEW_VALUE 4 COLUMN 5 NEW_VALUE 5 COLUMN 6 NEW_VALUE 6 COLUMN 7 NEW_VALUE 7 COLUMN 8 NEW_VALUE 8 COLUMN 9 NEW_VALUE 9 COLUMN 10 NEW_VALUE 10 COLUMN 11 NEW_VALUE 11 COLUMN 12 NEW_VALUE 12 COLUMN 13 NEW_VALUE 13 COLUMN 14 NEW_VALUE 14 COLUMN ...
DROP TABLE IF EXISTS "Student" cascade; CREATE TABLE "Student" ("Name" varchar(50)); INSERT INTO "Student" ("Name") VALUES ('Venus');
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 06, 2017 at 09:37 PM -- 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 */;...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2018 at 05:10 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- Create the burgers_db. CREATE DATABASE burgers_db; -- Switch to or use the burgers_db. USE burgers_db; -- Create a burgers table with these fields: -- id: an auto incrementing int that serves as the primary key. -- burger_name: a string. -- devoured: a boolean. CREATE TABLE burgers ( id int(5) NOT NULL AUTO_INCR...
update relationship set from_relationshipitemid = null, to_relationshipitemid = null where from_relationshipitemid in (select relationshipitemid from relationshipitem ri left join programstageinstance psi on ri.programstageinstanceid = psi.programstageinstanceid where psi.deleted=true ) or...
/* Navicat MySQL Data Transfer Source Server : devgame Source Server Version : 50730 Source Host : localhost:3306 Source Database : devgame Target Server Type : MYSQL Target Server Version : 50730 File Encoding : 65001 Date: 2020-09-11 16:44:42 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
-- -- NUMERIC -- CREATE TABLE num_data (id int4, val numeric(210,10)); CREATE TABLE num_exp_add (id1 int4, id2 int4, expected numeric(210,10)); CREATE TABLE num_exp_sub (id1 int4, id2 int4, expected numeric(210,10)); CREATE TABLE num_exp_div (id1 int4, id2 int4, expected numeric(210,10)); CREATE TABLE num_exp_mul (id1...
CREATE TABLE `game_types` ( `id` bigint, `table_type` varchar(20) ) engine=columnstore; CREATE TABLE `games` ( `id` bigint, `demo_file` varchar(1000), `demo_tick_rate` double, `game_tick_rate` double, `game_type` bigint ) engine=columnstore; CREATE TABLE `players` ( `id` bigint, `game_id` bigint, ...
--- -- #%L -- DeviceHive Dao RDBMS Implementation -- %% -- Copyright (C) 2016 DataArt -- %% -- 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-...
-- Additional GPDB-added tests for UNION create temp table t_union1 (a int, b int); select distinct a, null::integer as c from t_union1 union select a, b from t_union1; drop table t_union1; select null union select distinct null; select 1 union select distinct null::integer; select 1 a, NULL b, NULL c UNION SELECT ...
INSERT INTO REST_DB_ACCESS("ID", "NAME", "PASSWORD", "ROLE") VALUES (1, 'Penny', 'password', 'admin') INSERT INTO REST_DB_ACCESS("ID", "NAME", "PASSWORD", "ROLE") VALUES (2, 'Sheldon', 'password', 'user') INSERT INTO REST_DB_ACCESS("ID", "NAME", "PASSWORD", "ROLE") VALUES (3, 'Amy', 'password', 'guest') INSERT INTO RES...
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.7.17) # Database: yii2cms # Generation Time: 2017-02-07 08:22:55 +0000 # *************************************************...
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50728 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50728 File Encoding : 65001 Date: 03/12/2021 00:15:54 */ ...
-- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- Unless requi...
/* Navicat Premium Data Transfer Source Server : 10.43.1.52 Source Server Type : MySQL Source Server Version : 50729 Source Host : 10.43.1.52:3306 Source Schema : mall_ums Target Server Type : MySQL Target Server Version : 50729 File Encoding : 65001 Date: 10/07/2020 22...
--TEST: pass zero date/time values to minute function --TEST: pass zero datetime value select minute(datetime'0000-00-00 00:00:00'); select minute(datetime'00/00/0000 00:00:00'); select minute(datetime'00:00:00 00/00/0000'); select minute(datetime'00:00:00 0000-00-00'); --TEST: pass string value select minute('0000-0...
------------------------------------------------------------------------------- -- task def notification ------------------------------------------------------------------------------- CREATE TABLE TASK_DEF_NOTIFICATION( ID BIGINT NOT NULL, EVENT_NAME VARCHAR(100), RECEIVER VARCHAR(200), TYPE VARCHAR(50), TEMPL...
-- DROP SCHEMA IF EXISTS bamazon CREATE DATABASE IF NOT EXISTS bamazon; USE bamazon; -- DROP TABLE IF EXISTS bamazon.products CREATE TABLE IF NOT EXISTS bamazon.products( item_id INT AUTO_INCREMENT NOT NULL, product_name VARCHAR(128) NOT NULL, department_name VARCHAR(128) NULL, price DECIMAL(7,2) NULL...
-- file:alter_table.sql ln:844 expect:true select * from atacc1 order by a
-- insert default user insert into "forum_users" (login, password, enabled, authority_id) values ('user', '$2a$10$YU0VQz3.y3FLVPPGjoCdhufzLsiYmb1VTty8ARIlVHq7NYiUFYBQi', true, (select id from "authorities" where authority = 'ROLE_USER'));