sql
stringlengths
6
1.05M
<gh_stars>0 DROP DATABASE IF EXISTS gringotts; CREATE DATABASE gringotts; USE gringotts; DROP TABLE IF EXISTS client; DROP TABLE IF EXISTS client_address; DROP TABLE IF EXISTS account; DROP TABLE IF EXISTS `transaction`; DROP TABLE IF EXISTS bill_supplier; DROP TABLE IF EXISTS bill_payment; DROP TABLE IF EXISTS transfe...
INSERT INTO `ims`.`customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `ims`.`customers` (`first_name`, `surname`) VALUES ('Emre', 'Cakmak'); INSERT INTO `ims`.`item` (`itemName`, `itemPrice`,`itemQuantity`) VALUES ('spoon', 1, 10); INSERT INTO `ims`.`item` (`itemName`, `itemPrice`,`itemQua...
# Database # 1. CREATE : 생성 # 1) DATABASE SHOW DATABASES; #현재 데이터 베이스 확인 # 생성 CREATE DATABASE test; # 선택 USE test; # 현재 데이터 베이스 확인 SELECT DATABASE(); # 2) Table CREATE TABLE user1( user_id INT, name VARCHAR(20), email VARCHAR(30), age INT(3), rdate DATE ) #제약조건 포함 CREATE TABL...
SELECT FilterListId, ModifiedDateUtc - CreatedDateUtc As ProcessingTimeSecs, CreatedDateUtc, ModifiedDateUtc, WasSuccessful FROM snapshots WHERE ModifiedDateUtc - CreatedDateUtc > 30 OR IsCompleted = 0 ORDER BY ProcessingTimeSecs DESC
prompt --application/pages/page_10014 begin -- Manifest -- PAGE: 10014 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>1300871798938927 ,p_default_application_id=>101 ,p_default_id_offset=>0 ,p_default_owner=>'FLOWSDEV' ); ww...
<filename>Assignment1/Problem2/4_OTN_Public_Datasets_After_Normalization/datadump_after_norm/csci5408_a1_p1_2_otnunit_aat_detections.sql -- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: csci5408_a1_p1_2 -- ------------------------------------------------------ -- Server version...
DELETE FROM %s WHERE letter = ?;
<reponame>paulissoft/oracle-build-tools CREATE TYPE "ORACLE_TOOLS"."T_ARGUMENT_OBJECT_TAB" AS table of oracle_tools.t_argument_object; /
CREATE DATABASE IF NOT EXISTS quarry CHARACTER SET utf8; USE quarry; CREATE TABLE IF NOT EXISTS user( id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(255) BINARY NOT NULL UNIQUE, wiki_uid INT UNSIGNED NOT NULL UNIQUE ); CREATE UNIQUE INDEX IF NOT EXISTS user_username_index ON user( use...
-- original: tkt-6bfb98dfc0.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test PRAGMA page_size=512; CREATE TABLE t1(x INTEGER PRIMARY KEY, y); INSERT INTO t1 VALUES(1,randomblob(400)); INSERT INTO t1 VALUES(2,randomblob(400)); INSERT INTO t1 SELECT x+2, randomblob(400) FROM t1; IN...
CREATE DATABASE IF NOT EXISTS test; USE test; CREATE TABLE IF NOT EXISTS messages ( id INT AUTO_INCREMENT, title VARCHAR(255) NOT NULL, date VARCHAR(255), body TEXT, PRIMARY KEY (id) ); INSERT INTO messages (title, body) VALUES ("First Message", "First Body");
<filename>framework/resources/Functional/limit0/filters/plan/q12.sql explain plan for select * from ( -- not null predicate select x, y, z from ( select a1, b1, avg(a1) from t1_v t1 group by a1, b1 ) as sq(x, y, z) where x is not null) t limit 0;
<reponame>TBFY/anomaly-detection-tool -- Table: public.su_rpu -- DROP TABLE public.su_rpu; CREATE TABLE public.su_rpu ( tip text COLLATE pg_catalog."default", skupina text COLLATE pg_catalog."default", podskupina text COLLATE pg_catalog."default", sifra_pu integer, maticna text COLLATE pg_catalog....
<reponame>andotorg/minidao1.5.1 insert into employee (id,empno,name,age,birthday,salary) values ('${employee.id}', :employee.empno, :employee.name, :employee.age, :employee.birthday, :employee.salary )
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1_3306 Source Server Version : 50723 Source Host : 127.0.0.1:3306 Source Database : test2 Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2018-09-20 11:43:02 */ SET FOREIGN_KEY_CHECKS=0; -...
<reponame>DataONEorg/metrics-service ALTER TABLE CITATIONS ADD COLUMN citation_status TEXT, ADD COLUMN reporter TEXT, ADD COLUMN reviewer TEXT, ADD COLUMN relation_type TEXT; ALTER TABLE CITATION_METADATA ADD COLUMN portal_id TEXT[]; ADD COLUMN title TEXT, ADD COLUMN datePublished TEXT, ADD COLUMN date...
;WITH SUMPARTSCTE AS ( SELECT 1 AS COUNTNUMBER, 1 AS GRANDTOTAL UNION ALL SELECT COUNTNUMBER+1, GRANDTOTAL+COUNTNUMBER+1 FROM SUMPARTSCTE WHERE COUNTNUMBER < 40000 ) SELECT MAX(GRANDTOTAL) AS SUMPARTS FROM SUMPARTSCTE OPTION (MAXRECURSION 0);
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64) -- -- Host: i4d103.p.ssafy.io Database: law -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
# Write your MySQL query statement below SELECT MAX(salary) as SecondHighestSalary FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee)
-- <NAME> 216796 -- -- <NAME> 216806 -- ---------------------------------------------------------------------------------------------------------------- -- -- 1. Podłącz się do bazy jako sysdba. -- -- 2. Utwórz dwa konta użytkowników do testów: test_a i test_b z hasłem test. Domyślna przestrzeń -- tabel: users, lim...
<filename>dbstructure.sql -- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 11, 2010 at 01:50 PM -- Server version: 5.1.39 -- PHP Version: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
prompt --application/shared_components/user_interface/templates/report/timeline begin -- Manifest -- ROW TEMPLATE: TIMELINE -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.10.15' ,p_release=>'21.2.6' ,p_default_workspace_id=>18303204396897713 ,p_default_application_id=>401 ,p_default...
/*<NAME> - 2020/12/18 Emmer with polygons.*/ /*SVG drawn using Inkscape,.*/ DECLARE @tt table(id int identity(0,1), label VARCHAR(50), gg GEOMETRY) SET NOCOUNT ON /*Add a point. This point gets layered each time we need to skip*/ DECLARE @g geometry = 'POLYGON((-121.97087 37.372518,-121.97087 37.372518,-121.970863 37...
<gh_stars>0 USE [CursoASP] GO drop table Adeudos drop table Clientes drop table Localidades drop table Proveedores GO /****** Object: Table [dbo].[Proveedores] Script Date: 08/11/2017 08:50:46 a. m. ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Proveedores]( [Id] [int] IDENTITY(1,...
INSERT INTO items (id, text) VALUES (1, "one"), (2, "two"), (3, "three");
<filename>spider.sql /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80011 Source Host : localhost:3306 Source Schema : spider Target Server Type : MySQL Target Server Version : 80011 File Encoding : 65001 ...
<filename>uninstall.sql<gh_stars>1-10 prompt prompt prompt . ********************************* . prompt . SYSDATES uninstaller . prompt . <NAME> . prompt . ********************************* . prompt prompt Drop SYSDATES functions drop function sysminute; drop function syshour; drop fun...
<filename>src/test/resources/sql/drop_domain/3ae97468.sql -- file:domain.sql ln:354 expect:true drop domain ddef2 restrict
<gh_stars>10-100 -- file:numeric_big.sql ln:38 expect:true INSERT INTO num_exp_mul VALUES (0,0,'0')
-- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- Signals insert into t_signal (created, name, alias, referenceid, currency) values (now(), 'AlexProfit' , 'alexprofit' , '2474', 'US...
<reponame>riceissa/computing-data-project<gh_stars>0 insert into storage_plans(provider,name,redundancy,date_observed,region,storage_cost,download_cost,write_op_cost,read_op_cost,list_op_cost,delete_op_cost,minimum_duration) values ('Microsoft Azure','Azure Block Blob General Purpose v2 Hot','LRS','2018-07-18','Eas...
<reponame>tbowan/luchronia #------------------------------------------------------------------------------ # 1. Les compétences #------------------------------------------------------------------------------ SET @Perception = (SELECT id from game_characteristic where name = "Perception" ) ; SET @Explorer ...
<reponame>jmayfiel/prescriptiontrails<filename>users.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.0.5 -- http://www.phpmyadmin.net -- -- Host: -- Generation Time: Apr 11, 2019 at 12:12 PM -- Server version: 5.5.53-MariaDB -- PHP Version: 5.4.45-pl0-gentoo SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone ...
<reponame>mr-loop-1/projektDBMS drop table IF EXISTS stack_Compare; drop table IF EXISTS lastNode; drop table IF EXISTS lastNodeTracker; CREATE TABLE stack_Compare (i INT NOT NULL AUTO_INCREMENT, Station VARCHAR(20), PRIMARY KEY (i)); CREATE TABLE lastNode (Last_Station_ID INT, I INT); CREATE TABLE lastNodeTracker (me...
create table users ( id varchar(128) primary key, oauth_token varchar(128) NOT NULL ) ENGINE = InnoDB, DEFAULT CHARSET = utf8mb4; create table venues ( id bigint primary key auto_increment, venue_name varchar(128) NOT NULL, latitude double NOT NULL, longitude double NOT NULL, last_rainfall float NOT NULL...
CREATE DATABASE model_db WITH OWNER = airflow ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default CONNECTION LIMIT = -1; \connect model_db CREATE TABLE public.tweets( id SERIAL PRIMARY KEY, timestamp_col TIMESTAMP, tweets_org character ...
<reponame>gusgeek/HealtyServer<filename>db.sql -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.7.3-MariaDB - mariadb.org binary distribution -- SO del servidor: Win64 -- HeidiSQL Versión: 11.3.0.6295 -- -...
<gh_stars>1-10 SET QUOTED_IDENTIFIER OFF; GO USE [IndexDatastore]; GO IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]'); GO -- -------------------------------------------------- -- Creating all tables -- -------------------------------------------------- -- Creating table 'Associations' if it doesn't exis...
<reponame>teaey/test-load create database if not exists `test_load`; use test_load; DROP TABLE IF EXISTS `player`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `player` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `account` varchar(64...
insert into user(id, nickname, email, password, signature, ex, sex, create_time, phone, status, avatar) VALUES (1,"夏效雷","<EMAIL>","123","初心夏效雷",100,1,now() ,"110",1,null ); insert into user(id, nickname, email, password, signature, ex, sex, create_time, phone, status, avatar) VALUES (2,"夏效雷2","<EMAIL>","123","初心夏效雷"...
select -- Required Columns vm.id as resource, case when managed_disk_id is null then 'alarm' else 'ok' end as status, case when managed_disk_id is null then vm.name || ' VM not utilizing managed disks.' else vm.name || ' VM utilizing managed disks.' end as reason, -- Additional Dimensions ...
<reponame>jonathansantilli/cassandra /* # 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, Vers...
-- hypothetical hash indexes, pg10+ -- Remove all the hypothetical indexes if any SELECT hypopg_reset(); -- Create normal index SELECT COUNT(*) AS NB FROM hypopg_create_index('CREATE INDEX ON hypo USING hash (id)'); -- Should use hypothetical index using a regular Index Scan SELECT COUNT(*) FROM do_explain('SELECT v...
select fd.dim_date , fd.website_id , max(case when fsp.website_id is not null then 1 else 0 end) as has_active_subscription , max(item_charge_net_eur_monthly) as item_charge_net_eur_monthly from blah_foo fd left join _finance_service_period_monthly fsp on to_date(fd.dim_date, 'YYYYMM') between to_date(servic...
<reponame>mat8392/yiihermo<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.25 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.2.0.4947 -- ----------------------...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.3.14 -- Dumped by pg_dump version 9.3.14 -- Started on 2021-04-05 09:48:05 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...
<filename>database/u1554969.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2017 at 08:38 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
-- ===================================================================================================== -- Generated by Data Dictionary Version 1.0.0.0 -- Date: 21 July 2015 10:40 -- Profile: 1516 Test Harness Validation -- Rulebase Version: DCSS 1516 Validation FD 1516, Drop 000, Version 1516.04 -- ==================...
INSERT INTO machines (name, cpu_count, total_disk_space) VALUES ('Ubuntu VM', 4, 17179869184), ('Windows VM', 2, 21474836480); INSERT INTO disks (machine_id, capacity) VALUES (1, 17179869184), (2, 17179869184), (2, 4294967296), (NULL, 8589934592);
-- DB versioning CREATE TABLE DBVERSION ( VALUE INTEGER NOT NULL, UPDATED TIMESTAMP NOT NULL ); -- Accounts CREATE TABLE ACCOUNT ( ID INTEGER NOT NULL AUTO_INCREMENT, IDENTIFIER VARCHAR(80) NOT NULL, NAME VARCHAR(80) NOT NULL, ADMIN BOOLEAN NOT NULL DEFAULT FALSE, AUTH_MODE VARCHAR(10) NOT NULL, AUTH_CREDENTIA...
-- 7 - Afficher la liste des hôtels avec leur station Le résultat doit faire apparaître le nom de la station, le nom de l’hôtel, la catégorie, la ville) SELECT hotel.hot_nom, hotel.hot_sta_id, hotel.hot_categorie, hotel.hot_ville, station.sta_nom, station.sta_id From hotel, station -- ou SELECT cha_numero, hot_nom, hot...
<reponame>R7L208/sqlfluff select SQL_BIG_RESULT * from table1;
CREATE OR REPLACE FUNCTION ts.insertaggregatesampleages(_aggregatedatasetid integer, _aggregatechronid integer) RETURNS void LANGUAGE plpgsql AS $function$ DECLARE _nrows int; _currentid int = 0; _sampleageid int; _count int; BEGIN CREATE TEMPORARY TABLE _sampleageids ( id SERIAL, sampleageid int...
<reponame>everdreamsoft/counterparty2mysql<filename>sql/storage.sql DROP TABLE IF EXISTS storage; CREATE TABLE storage ( contract_id INTEGER UNSIGNED, -- id of record in index_contracts `key` BLOB, `value` BLOB ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE INDEX contract_id...
<filename>mamakriau_nsm.sql -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 18 Sep 2021 pada 08.04 -- Versi server: 10.3.24-MariaDB-cll-lve -- Versi PHP: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...
<filename>src/test/resources/tkt3080.test_5.sql -- tkt3080.test -- -- execsql { -- INSERT INTO t1 VALUES('CREATE TABLE t3(z); DROP TABLE t3;'); -- } INSERT INTO t1 VALUES('CREATE TABLE t3(z); DROP TABLE t3;');
<reponame>Shuttl-Tech/antlr_psql -- file:plpgsql.sql ln:1437 expect:false RETURN rslt
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2017-12-04 10:48:49 -- 服务器版本: 5.7.18-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
SELECT * FROM DGB_FILES WHERE FILE_PATH LIKE ? AND FILE_PATH LIKE ?
CREATE OR REPLACE PACKAGE BODY json_filters IS /* Copyright 2018 <NAME> 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.apach...
<filename>data/sql/b2743be3b1e05d043188b4eb5031b2a9_creature_changes.sql -- stream UPDATE `creature` SET `spawntimesecs`= 60 where `id` = 17954; Delete from `creature_onkill_reputation` where `creature_id` = 17954; update creature_template set mechanic_immune_mask = 113983323 where entry in (17797,17796,17798); -- bot...
<reponame>informaticslab/site ALTER TABLE /*_*/transcache MODIFY tc_time binary(14); UPDATE /*_*/transcache SET tc_time = DATE_FORMAT(FROM_UNIXTIME(tc_time), "%Y%c%d%H%i%s"); INSERT INTO /*_*/updatelog VALUES ('convert transcache field');
DELETE FROM AUTO_NO WHERE NO = ? ;
USE master GO IF EXISTS(SELECT * FROM sys.databases WHERE name='jodd_test') DROP DATABASE jodd_test GO CREATE DATABASE jodd_test GO
<filename>admin/sql/documentation/SetSequences.sql -- Automatically generated, do not edit. \unset ON_ERROR_STOP
ALTER TABLE events ADD slug VARCHAR(255); CREATE UNIQUE INDEX index_events_slug ON events (slug); UPDATE events SET slug = CONCAT(SUBSTR(LOWER(REPLACE(name, ' ', '-')), 0, 249), '-', SUBSTR(MD5(RANDOM()::TEXT), 0, 6)); ALTER TABLE events ALTER slug SET NOT NULL;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 16, 2018 at 11:43 AM -- Server version: 5.7.19 -- PHP Version: 5.6.31 SET FOREIGN_KEY_CHECKS = 0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
<filename>nf/left2/q1.sql EXPLAIN ANALYZE (SELECT P.x, P.y FROM P) EXCEPT (SELECT P.x, P.y FROM P, Q WHERE P.x = Q.x)
SELECT 'INSERT INTO public.metadata' || ' (db_description, db_date_built, median_ncpd_tested, median_nsub_tested, median_nass_tested, median_nsam_tested )' || ' VALUES (' || E'\'' || db_description || E'\',' || ' CURRENT_TIMESTAMP,' || median_ncpd_tested || ',' || median_nsub_tested || ',' || median_nass_tested...
<gh_stars>1-10 create table num_t(one int, zero int, null_c int, unk_c int); insert into num_t values (1, 0, NULL, UNKNOWN); select 1 from num_t where one IS TRUE; select 1 from num_t where one IS FALSE; select 1 from num_t where one IS UNKNOWN; select 1 from num_t where zero IS TRUE; select 1 from num_t where zero I...
create table monitoringpointreport ( ID NVARCHAR2(255) NOT NULL, STUDENT NVARCHAR2(100) NOT NULL, STUDENT_COURSE_DETAILS_ID NVARCHAR2(20) NOT NULL, STUDENT_COURSE_YEAR_DETAILS_ID NVARCHAR2(250) NOT NULL, CREATEDDATE TIMESTAMP(6) NOT NULL, PUSHEDDATE TIMESTAMP(6) NULL, MONITORINGPERIOD NVARCHAR2(100) NOT N...
<filename>book.sql drop table books; CREATE TABLE books ( id serial PRIMARY KEY, author VARCHAR ( 255 ) , title VARCHAR ( 255 ) , isbn VARCHAR(255), imge_url VARCHAR(255), description VARCHAR ); CREATE TABLE AUTHORS (id SERIAL PRIMARY KEY, name VARCHAR(255)); ALTER TABLE books ADD CONSTRAINT fk_authors ...
use ObservationsSACTN Select SiteName, StationName, InstrumentName, SensorName, PhenomenonName, OfferingName, UnitOfMeasureUnit, ValueDate, DataValue, Latitude, Longitude, Elevation from vObservationExpansion where (StationName like 'SACTN%') and (SensorName like '% Hourly %') order by SiteName, StationName, I...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: 14-Dez-2020 às 18:11 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
INSERT INTO `user_mgmt`.`user_info` VALUES ('adsdsa-asdsadsa-asdad', NOW(), NOW(),"<EMAIL>", "<NAME>"); INSERT INTO `user_mgmt`.`user_info` VALUES ('adsdsa-asdsadsa-asdaf', NOW(), NOW(),"<EMAIL>", "<NAME>"); INSERT INTO `user_mgmt`.`user_info` VALUES ('adsdsa-asdsadsa-asdag', NOW(), NOW(),"<EMAIL>", "<NAME>");
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date: 05/08/2020 00:22:44 */ ...
-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Gostitelj: 127.4.102.130:3306 -- Čas nastanka: 06. nov 2015 ob 10.54 -- Različica strežnika: 5.5.45 -- Različica PHP: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
<filename>report/form/table.sql -------------------------------------------------------------------------------- -- REPORT ---------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------...
select prayer_id, petition_date, user_id, message from discord.prayer_petitions where prayer_id = ${prayerId}
<filename>src/main/resources/db/migration/V1__create_table.sql<gh_stars>0 CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; create table narmeste_leder ( narmeste_leder_id uuid DEFAULT uuid_generate_v4 () primary key, orgnummer VARCHAR not null, bruker_fnr ...
<filename>data/open-source/extracted_sql/nextras_dbal.sql SELECT * FROM "books" WHERE "author_id" = 1; INSERT INTO dates_write2 VALUES (%dts, %dt) CREATE TABLE dates_read ( a timestamp, b timestamptz ) SELECT name, age FROM ...'); CREATE TABLE tag_followers ( tag_id int NOT NULL, author_id int NOT NULL, created...
<reponame>vmbatlle/UrlShortener -- Clean database -- DROP TABLE CLICK IF EXISTS; -- DROP TABLE SHORTURL IF EXISTS; -- ShortURL CREATE TABLE IF NOT EXISTS SHORTURL ( HASH VARCHAR(30) PRIMARY KEY, -- Key TARGET VARCHAR(1024), -- Original URL SPONSOR VARCHAR(1024), -- Sponsor URL ...
<filename>https.sql -- oracle 12.2.0.1 DECLARE p_url VARCHAR2(256); l_http_request UTL_HTTP.req; l_http_response UTL_HTTP.resp; l_blob BLOB; l_buf RAW(32767); BEGIN DBMS_OUTPUT.enable(100000); p_url := 'https://www.google.com'; -- orapki wallet create -wallet /ORCL/wal...
drop table if exists topics; drop table if exists coaches_topics; drop table if exists coaching_topic; drop table if exists coaching_topic_grades; create sequence topic_seq increment by 1 start with 1; create table topic ( id integer not null, name varchar(255) not null, profile_id integer, primary key...
ALTER TABLE `cola_sys_resource` CHANGE COLUMN `portal_url` `route` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL AFTER `description`, ADD COLUMN `service_id` varchar(100) NULL AFTER `description`;
create table t1(id int primary key, name text); insert into t1(name) values('A'); insert into t1(name) values('B'); insert into t1(name) values('C'); insert into t1(name) values('D'); select * from t1 where id is NULL;
<reponame>oev81/dbt-clickhouse {% macro clickhouse__snapshot_hash_arguments(args) -%} halfMD5({%- for arg in args -%} coalesce(cast({{ arg }} as varchar ), '') {% if not loop.last %} || '|' || {% endif %} {%- endfor -%}) {%- endmacro %} {% macro clickhouse__snapshot_string_as_time(timestamp) -%} {%- set ...
<gh_stars>0 CREATE TABLE COMPANY( SID TEXT PRIMARY KEY NOT NULL, NAME TEXT NOT NULL, ADDRESS CHAR(50), AGE TEXT NOT NULL );
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 31, 2020 at 05:25 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>Kast0rTr0y/ao<filename>activeobjects-core/test/net/java/ao/db/h2/create-index.sql CREATE INDEX PUBLIC.index_person_companyid ON PUBLIC.person(companyID)
CREATE TABLE rti.kpi_aaa ( id bigint not null, subscriber_id varchar(64) not null, cell_id varchar(30), tac varchar(8), time_from timestamp not null, aggregation_interval int, input_octets bigint, output_octets bigint, input_packets bigint, output_packets bigint, count_2g int, count_3g int, count_4g int, time_new time...
<reponame>mvachhani/incubator-gobblin -- -- 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...
<gh_stars>1-10 DECLARE @COMMAND NVARCHAR(200);SELECT TOP 1 @COMMAND= 'ALTER TABLE UM_ROLE_PERMISSION DROP CONSTRAINT ' + RC.CONSTRAINT_NAME + ';' FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS RC JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE KF ON RC.CONSTRAINT_NAME = KF.CONSTRAINT_NAME JOIN INFORMATION_SCHEMA.KEY_COLUMN_U...
--Test For instrb set compatible_mode to 'oracle'; set datestyle to ISO,YMD; SELECT instrb(20121209,12::int, 1::text, 2, 4) "instrb"; SELECT instrb(20121209,12::int, 1::text, '2') "instrb"; SELECT instrb(20121209,12::int, 1::text, 2, '4', 5) "instrb"; SELECT instrb(20121209) "instrb"; SELECT instrb(20121209,12, 1, 2) "...
<gh_stars>0 -- :name create-attendances-table :! create table attendances ( day date, id integer references members(id), primary key (day, id) ); -- :name drop-attendances-table :! drop table if exists attendances; -- :name insert-attendance-by-id :! :n -- CAREFUL this may re-add people that already signed off ...
DROP TABLE IF EXISTS "table_versions"; DROP TABLE IF EXISTS "game_servers"; DROP TABLE IF EXISTS "bans"; DROP TABLE IF EXISTS "accounts"; CREATE TABLE "accounts" ( "id" serial NOT NULL, "username" TEXT NOT NULL UNIQUE, "access_level" integer NOT NULL DEFAULT '1', "creation_date" DATE NOT NULL DEFAULT C...
<reponame>opengauss-mirror/Yat -- @testpoint: justify_days 分钟超过60 drop table if exists test_date01; create table test_date01 (clo1 interval ); insert into test_date01 values ('1 year 33 months 30 days 55 hours 70 m 4 s'); select justify_days(clo1) from test_date01; SELECT justify_days(interval '1 year 33 months 30 da...
<filename>openGaussBase/testcase/KEYWORDS/locator/Opengauss_Function_Keyword_Locator_Case0029.sql -- @testpoint:opengauss关键字locator(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists locator; CREATE TABLESPACE locator RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace locator; --关键字带双引号,创建成功 ...
<filename>templates/nmintra/update/sql_scripts/07.08.02.migrate.sql ALTER TABLE v1_archief ADD INDEX version_index (original_node,datum);
CREATE TABLE ABS (a INT); -- error 42601: syntax error: table name cannot be reserved word: ABS CREATE TABLE ACOS (a INT); -- error 42601: syntax error: table name cannot be reserved word: ACOS CREATE TABLE ALL (a INT); -- error 42601: syntax error: table name cannot be reserved word: ALL CREATE TABLE ALLOCATE (a IN...