sql
stringlengths
6
1.05M
DROP TABLE IF EXISTS `gContributions`; CREATE TABLE gContributions (entity int not null AUTO_INCREMENT, owner char(255), recipeName char(255), ingredientType char(128), ingredient char(128), hopAddAt float, ibu float, srm float, gravity float, PRIMARY KEY(entity) ); INSERT INTO gContributions VALUES (null,'<EMAIL>','Ci...
CREATE TABLE "CTADDR_USE" ( "ADDR_USE" VARCHAR2(20 CHAR) NOT NULL ENABLE, CONSTRAINT "PKEY_CTADDR_USE" PRIMARY KEY ("ADDR_USE") USING INDEX ENABLE )
/* * Copyright 2017 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
<gh_stars>100-1000 with var as ( select coalesce(max(event_id), -9223372036854775808) as max_event_id, 0 as opt from gha_texts where type like '%Event' union select coalesce(max(event_id), 281474976710657) as max_event_id, 1 as opt from gha_texts where type not like '%Event' ...
DROP TABLE IF EXISTS badquota.t1; DROP TABLE IF EXISTS badbody_schema.t2; DROP ROLE IF EXISTS testbody; DROP SCHEMA IF EXISTS badquota; DROP ROLE IF EXISTS badbody; DROP SCHEMA IF EXISTS badbody_scehma; DROP SCHEMA IF EXISTS deleteschema; DROP SCHEMA IF EXISTS srs1; DROP SCHEMA IF EXISTS srr1; DROP SCHEMA IF EXISTS srE...
-- This script lists all shows contained in hbtn_0d_tvshows that -- have at least one genre linked. SELECT tv_shows.title, tv_show_genres.genre_id FROM tv_shows, tv_show_genres WHERE tv_shows.id = tv_show_genres.show_id ORDER BY tv_shows.title ASC, tv_show_genres.genre_id ASC;
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_01_object/_02_class/_003_auto_increment/cases/1016.sql --[er] create a table with an int auto_increment field,insert data to this table by no specifying the field. create table xoo (id int auto_increment, title varchar(100)); insert into xoo...
-- @testpoint:opengauss关键字class(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists class_test cascade; --关键字不带引号-合理报错 create table class_test(id int,name class); --关键字带双引号-合理报错 create table class_test(id int,name "class"); --关键字带单引号-合理报错 create table class_test(id int,name 'class'); --关键字带反引号-合理报错 create table class_...
<gh_stars>0 /* programmers : 동명 동물 수 찾기 solved by JY DATE : 2021.01.13 */ SELECT NAME, COUNT(NAME) FROM ANIMAL_INS WHERE NAME IS NOT NULL GROUP BY NAME HAVING COUNT(NAME) >= 2 ORDER BY NAME;
<filename>master/atlanta_2019-04-27.sql # ************************************************************ # Sequel Pro SQL dump # Version 4499 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.7.22) # Database: atlanta # Generation Time: 2019-04-27 13:08:15 +0000 # *******...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 29, 2019 at 09:09 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
INSERT INTO public.KATEGORI( ID, ADI, KIRILIM, UST_KATEGORI_ID) VALUES ( 1 ,'Moda', 1 , null ); INSERT INTO public.KATEGORI( ID, ADI, KIRILIM, UST_KATEGORI_ID) VALUES ( 2 ,'Elektronik', 1 , null ); INSERT INTO public.KATEGORI( ID, ADI, KIRILIM, UST_KATEGORI_ID) VALUES ( 3 ,'Ev & Yaşam', 1 , null ); INSERT INTO publi...
<reponame>tfe2012/ConnectionsBundle<filename>Tests/Functional/Fixtures/JobsCleanupServiceTest/TestCase1.sql CREATE TABLE `ongr_sync_jobs`( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, `status_shop1` boolean not null default 0, `status_shop2` boolean not null default 0, `status_shop3` boolean not null default 0 );...
<filename>object-oriented-system/Schema_Mysql_Db/India_db_sql_queries/India_db_books.sql<gh_stars>0 CREATE DATABASE IF NOT EXISTS `india_db` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `india_db`; DROP TABLE IF EXISTS `books`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_se...
<filename>2-resources/BLOG/ciriculumn/week-10/week10/round1/db-mgmt-solution/db-mgmt-solution/01-create-users.sql -- In this file, you will create some users for later exercises. -- Create the following normal users with the indicated names and passwords -- | name | password | -- |-------------------...
<gh_stars>0 CREATE TABLE [dbo].[JobLog] ( [Id] INT NOT NULL PRIMARY KEY identity(1,1), JobName varchar(50), ExecutionTime datetime constraint df_exectime default getdate() )
CREATE TABLE leaaderboard (username string, score int);
<reponame>ChairulAnamProgramming/Kecamatn-CI-Framword -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 17 Bulan Mei 2019 pada 06.52 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRAN...
DELIMITER $$; CREATE PROCEDURE usp_get_employees_by_salary_level(salary_level VARCHAR(10)) BEGIN SELECT first_name, last_name FROM employees AS e1 WHERE salary_level = ( SELECT CASE WHEN e2.salary < 30000 THEN 'Low' WHEN e2.salary BETWEEN 30000 AND 50000 THEN 'Average' ELS...
<reponame>G1enB1and/newsdata<gh_stars>1-10 CREATE OR REPLACE VIEW slug_from_path AS SELECT(REPLACE(log.path, '/article/', '')) AS slug FROM log WHERE log.path != '/';
<reponame>streamproject/stream-chrome INSERT INTO Platforms VALUES( $(id), $(user_id), $(platform_id), $(platform_type) ) RETURNING *
<filename>data/enterprise_bi_sqldw_advanced/azure/sqldw_scripts/[dbo].[CreateTable].sql EXEC [dbo].[DropProcedureIfExists] 'dbo', 'CreateTable' PRINT 'Creating procedure [dbo].[CreateTable]' GO CREATE PROCEDURE [dbo].[CreateTable] ( @SchemaName SYSNAME, @TableName SYSNAME, @ColumnDefinitions nvarchar(4000), @...
<gh_stars>1-10 /* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 10.4.11-MariaDB : Database - sipits ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIG...
<gh_stars>1-10 insert into Movie (mID, title, year, director) values (101, "Gone with the Wind", 1939, "<NAME>"), (102, "Star Wars", 1977, "<NAME>"), (103, "The sound of music", 1965, "<NAME>"); insert into Reviewer (rID, name) values (201, "<NAME>"), (202, "<NAME>"), (203, "<NAME>"); insert into R...
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 22, 2017 at 05:21 PM -- Server version: 10.0.30-MariaDB-cll-lve -- PHP Version: 7.0.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
<gh_stars>1-10 DROP DATABASE IF EXISTS hvpt_db; CREATE DATABASE hvpt_db;
<reponame>cincuranet/FirebirdDbComparer create domain number as smallint; create table t (i bigint primary key, a number); create index ix_a on t(a);
<filename>6_CSDL/db-book/3.4.sql -- person (driver id, name, address) 1 -- car (license, model, year) 1 -- accident (report number, date, location) 1 -- owns (driver id, license) 2 -- participated (report number, license, driver id, damage amount) 2 -- Find the total number of people who owned cars that were involved ...
/* MySQL Data Transfer Source Host: 127.0.0.1 Source Database: interpreterdb Target Host: 127.0.0.1 Target Database: interpreterdb Date: 1/15/2013 3:29:20 PM */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for cdosysmail_failures -- ---------------------------- DROP TABLE I...
<reponame>danadel/sakai -- This is the Oracle Sakai 2.2.1 (or later) -> 2.3.1 conversion script -- -------------------------------------------------------------------------------------------------------------------------------------- -- -- use this to convert a Sakai database from 2.2.1 (or later) to 2.3.1. Run this b...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-11-2020 a las 00:34:42 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
#standardSQL # Subresource integrity: hash function usage WITH totals AS ( SELECT _TABLE_SUFFIX AS client, COUNT(0) AS total_sri_elements FROM `httparchive.pages.2021_07_01_*`, UNNEST( JSON_EXTRACT_ARRAY(JSON_EXTRACT_SCALAR(payload, '$._security'), '$.sri-integrity')) AS sri GROUP BY client ) ...
<reponame>sunglen/op3c INSERT INTO member_config (member_id, name, value, name_value_hash) (SELECT c_member_id, "password", hashed_password, MD5(<?php echo $this->conn->expression->concat($this->conn->quote('password'), $this->conn->quote(','), 'hashed_password') ?>) FROM c_member_secure); INSERT INTO member_config (me...
# standardSQL # Distribution of unused CSS and JS SELECT percentile, APPROX_QUANTILES(CAST(JSON_EXTRACT_SCALAR(report, '$.audits.unused-javascript.details.overallSavingsBytes') AS INT64) / 1024, 1000)[OFFSET(percentile * 10)] AS js_kilobytes, APPROX_QUANTILES(CAST(JSON_EXTRACT_SCALAR(report, '$.audits.unused-css...
create function login(p_user_login_or_mail character varying, p_user_password character varying) returns integer language plpgsql as $$ DECLARE v_user_id int; v_user1_id int; v_user2_id int; v_game_id bigint; v_login_data varchar; v_user1_data varchar; v_user2_data varchar; v_game_bo...
<gh_stars>1-10 CREATE TABLE "CF_TEMP_AGENTS" ( "KEY" NUMBER NOT NULL ENABLE, "AGENT_TYPE" VARCHAR2(255 CHAR), "PREFERRED_NAME" VARCHAR2(255 CHAR), "FIRST_NAME" VARCHAR2(255 CHAR), "MIDDLE_NAME" VARCHAR2(255 CHAR), "LAST_NAME" VARCHAR2(255 CHAR), "BIRTH_DATE" DATE, "DEATH_DATE" DATE, "AGENT_REMARK...
# --- !Ups -- Add featured column to projects ALTER TABLE IF EXISTS projects ADD COLUMN featured BOOLEAN DEFAULT(false);; # --- !Downs ALTER TABLE IF EXISTS projects DROP COLUMN featured;;
<gh_stars>100-1000 -- index for deadlock problem - https://app.camunda.com/jira/browse/CAM-4440 -- create index ACT_IDX_AUTH_RESOURCE_ID on ACT_RU_AUTHORIZATION(RESOURCE_ID_);
<filename>PostgreSQL/sampledb/v1/schema/create-view.sql create or replace view sporting_event_info as select e.id as event_id , e.sport_type_name as sport , e.start_date_time as event_date_time , h.name as home_team , a.name as away_team , l.name as location , l.city as city from sporting...
<gh_stars>1-10 USE sailmaster; CREATE TABLE `ships` ( `id_type_ship` smallint(6) NOT NULL, `id_race` smallint(6) NOT NULL, `max_hp` smallint(6) NOT NULL, `max_crew` smallint(6) NOT NULL, PRIMARY KEY (`id_type_ship`), FOREIGN KEY `id_race` (`id_race`) REFERENCES `races`(`id_race`) ON DELETE CASCADE ON UPDATE...
-- View: vw_rco_publiclands_conservation DROP VIEW IF EXISTS vw_rco_publiclands_conservation CASCADE; CREATE OR REPLACE VIEW vw_rco_publiclands_conservation AS SELECT vw_big_dataset.gid, vw_big_dataset.geom, vw_big_dataset.prov1, vw_big_dataset.taxid, vw_big_dataset.landuses, vw_big_dataset.owntype, vw_big_dataset....
INSERT INTO buttonset (id, name, sort_order) VALUES (78, 'Steven Universe', 7600); INSERT INTO button (id, name, recipe, btn_special, tourn_legal, set_id, flavor_text) VALUES (707, 'Garnet', '(4) (8) (12) (20) r(2,2) r(4,4) r(6,6) r(10,10)', 0, 0, (SELECT id FROM buttonset WHERE name="Steven Universe"), 'Garnet is cur...
--+ holdcas on; --Test update statistics by common user call login('dba') on class db_user; call add_user('test_user') on class db_user; call login('test_user') on class db_user; update statistics on all classes; call login('dba') on class db_user; update statistics on all classes; call drop_user('test_user') on clas...
SELECT Name,Seats, ISNULL(COUNT(T.PassengerId) ,0) AS [Passengers Count] FROM Planes AS P LEFT JOIN Flights AS F ON F.PlaneId=P.Id LEFT JOIN Tickets AS T ON T.FlightId=F.Id GROUP BY Name,Seats ORDER BY [Passengers Count] DESC, Name,Seats
DECLARE @FizzBuzzTable TABLE (Number int, FizzBuzz varchar(10)); DECLARE @i int SET @i = 1; WHILE @i <= 100 BEGIN INSERT INTO @FizzBuzzTable (Number, FizzBuzz) SELECT @i, FizzBuzz = CASE WHEN @i % 3 = 0 AND @i % 5 = 0 THEN 'Fizz Buzz' WHEN @i % 3 = 0 THEN 'Fizz' WHEN @i % 5 = 0 THEN 'Buzz' ELSE CAST(@i AS...
select replies.rid as id, replies.criticism_id, users.name as creator_name, replies.r_content as content, replies.check_deadline as deadline, replies.rank as vote, replies.thanks_number, criticisms.is_reject as criticism_is_reject from replies join users on replies.replyer_id = users.uid...
create table execution_statuses ( id varchar(25) not null, name varchar(30) not null, constraint execution_statuses_pkey primary key (id) ); comment on table execution_statuses is 'Contains execution statuses'; comment on column execution_statuses.name is 'Status display name'; insert into execution_st...
<reponame>Konstantin751/glinv CREATE TABLE inventory_hvars ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR (100) NOT NULL, value VARCHAR (100) NOT NULL, meta BOOL DEFAULT false );
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 18, 2019 at 06:04 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<gh_stars>0 -- Just a dumb file containing a comment
<gh_stars>0 CREATE OR REPLACE VIEW view_datafile_values_per_minute AS SELECT tablespace_name, datafile_name, AVG(total) AS total, AVG(free) AS free, AVG(used) AS used, AVG(percentage_free) AS percentage_free, AVG(percentage_used) AS percentage_used, TO...
<filename>database/testdata.sql<gh_stars>0 INSERT INTO authors(first_name, last_name) VALUES('John', 'Smith'); INSERT INTO authors(first_name, last_name) VALUES('Pablo', 'Sanchez'); INSERT INTO authors(first_name, last_name) VALUES('Gwen', 'White'); INSERT INTO authors(first_name, last_name) VALUES('Test', 'This'); INS...
<gh_stars>0 -- user data USE thinkStream_user; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) AUTO_INCREMENT NOT NULL, `mail` varchar(254) NOT NULL, `username` varchar(40) NOT NULL, `password` char(60) NOT NULL, `groups` varchar(50) NOT NULL, `created` datetime DEFAULT NULL, PRIMARY KEY (`id`), IND...
<filename>EmployeeSQL/EmployeeQueries.sql<gh_stars>0 -- Data Analysis -- 1. List the following details of each employee: employee number, last name, -- first name, sex, and salary. SELECT Employees.empemp_no, Employees.last_name, Employees.first_name, Employees.sex, Salaries.salary FROM Employees INNER JOIN Salaries ...
/*Used to instantiate the database the first time*/ CREATE TABLE IF NOT EXISTS pending_meme ( user_id BIGINT NOT NULL, u_message_id BIGINT NOT NULL, g_message_id BIGINT NOT NULL, group_id BIGINT NOT NULL, PRIMARY KEY (group_id, g_message_id) ); ----- CREATE TABLE IF NOT EXISTS published_meme ( channel_id BI...
<filename>test_append/orders/update_13.sql INSERT INTO public.orders VALUES (1469221, 114988, 'F', 59844.75, '1992-01-14', '5-LOW ', 'Clerk#000000200', 0, 'lar instructions. ironic ideas affix blithely above t'); INSERT INTO public.orders VALUES (4175969, 132760, 'O', 106445.61, '1997-03-24', '2-HIGH '...
<reponame>SevdanurGENC/SQL-Project-Ideas-For-Beginners -- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Anamakine: localhost -- Üretim Zamanı: 19 Aralık 2011 saat 01:43:01 -- Sunucu sürümü: 5.5.8 -- PHP Sürümü: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>db/sql/V1.39__update_default_rolfp_value_for_existing_aws_accounts.sql UPDATE assets SET rolfp='R:1/O:1/L:1/F:1/P:1+S:2';
CREATE TABLE torrent ( info_hash TEXT PRIMARY KEY, queue_position INTEGER NOT NULL );
<gh_stars>0 DROP TABLE IF EXISTS 'cart'; DROP TABLE IF EXISTS shoe; DROP TABLE IF EXISTS customer; CREATE TABLE customer ( -- This creates the attribute for the primary key -- auto_increment tells mySQL to number them {1,2,3, ...} -- not nullmeans the attribute is required! profileId INT UNSIGNED AUTO_INCREMENT NOT N...
update facturadetalles set montoDes = montoDes / 1000000, totalDes = totalDes / 1000000
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding foreign keys to [edfi].[LearningObj...
-- @testpoint:opengauss关键字second(非保留),作为角色名 --关键字不带引号-成功 drop role if exists second; create role second with password '<PASSWORD>' valid until '2020-12-31'; drop role second; --关键字带双引号-成功 drop role if exists "second"; create role "second" with password '<PASSWORD>' valid until '2020-12-31'; drop role "second"; --关...
<filename>src/maw_database_pg/003/tables/photo.raw_conversion_mode.sql DROP TABLE IF EXISTS photo.raw_conversion_mode;
<gh_stars>0 CREATE TABLE [dbo].[AlternateNames] ( [Id] [int] NOT NULL IDENTITY, [Name] [nvarchar](255) NOT NULL, [SortOrder] [int] NOT NULL, [SeriesId] [int] NOT NULL, CONSTRAINT [PK_dbo.AlternateNames] PRIMARY KEY ([Id]) ) CREATE UNIQUE INDEX [IX_TVSeriesAlternateName] ON [dbo].[AlternateNames]([N...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 06, 2021 at 07:44 AM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
<reponame>suhairi/khairat -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Sep 30, 2016 at 02:21 PM -- Server version: 10.1.9-MariaDB-log -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
/****** Object: Stored Procedure dbo.SetWLOut Script Date: 5/1/2004 6:12:38 PM ******/ CREATE PROCEDURE dbo.SetWLOut ( @kdID int, @ReturnTime tinyint, @WLFactor real ) AS DECLARE @WL tinyint SET @WL = (SELECT TOP 1 WLID FROM WLs WHERE WLOut = 0 AND kdID = @kdID) UPDATE WLs SET WLOut = 1, WLTim...
CREATE TABLE `profiles` ( id INTEGER UNSIGNED PRIMARY KEY UNIQUE NOT NULL AUTO_INCREMENT, account_id INTEGER UNSIGNED UNIQUE, bio VARCHAR(256) NOT NULL DEFAULT '', gender ENUM('m', 'f', 't', 'a', 'o'), country VARCHAR(2), created_at TIMESTAMP DEFAULT NOW() ) Engine=InnoDB;
INSERT INTO DARWIN_SQL (patchId, statement, statementHash, processTime, finishedOn, exception) VALUES (?,?,?,?,?,?);
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for api_auth -- ---------------------------- DROP TABLE IF EXISTS `api_auth`; CREATE TABLE `api_auth` ( `idx` int(11) NOT NULL AUTO_INCREMENT, `app_code` varchar(50) NOT NULL COMMENT ' /* comment truncated */ /*系统标识*/', `api_code` var...
CREATE DATABASE IF NOT EXISTS shiftproscheduler; ALTER DATABASE shiftproscheduler DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; CREATE USER IF NOT EXISTS admin@localhost IDENTIFIED BY 'admin'; GRANT ALL PRIVILEGES ON shiftproscheduler.* TO admin@localhost; USE shiftproscheduler; CREATE TABLE IF NO...
-- 2014_10_12_000000_create_users_table: create table `users` (`id` bigint unsigned not null auto_increment primary key, `name` varchar(255) not null, `email` varchar(255) not null, `email_verified_at` timestamp null, `password` varchar(255) not null, `remember_token` varchar(100) null, `created_at` timestamp null, `up...
<filename>src/main/resources/db/migration/1001052.sql # 1.1.52 UPDATE Word SET usageCount = 0;
-- 2021-05-19T21:18:22.376Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Patient', PrintName='Patient',Updated=TO_TIMESTAMP('2021-05-20 00:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579164 AND AD_Language='de_CH' ; -- 2021-05-19T21:18:22.376Z ...
DELETE FROM TRA_ACTIVITY WHERE NAME = 'Low'; DELETE FROM TRA_ACTIVITY WHERE NAME = 'Medium'; DELETE FROM TRA_ACTIVITY WHERE NAME = 'High'; INSERT INTO TRA_ACTIVITY ([NAME], [DESCRIPTION], [INTENSITY], [DB_CREATE_TIMESTAMP], [DB_CREATE_USERID], [DB_LAST_UPDATE_TIMESTAMP], [DB_LAST_UPDATE_USERID], [CONCURRENCY_CONTROL_N...
<reponame>crunchyheath/crunchy-containers<filename>examples/standalone/custom-setup/setup.sql /* create these extensions if you want to do GIS work */ create extension postgis; create extension postgis_topology; create extension fuzzystrmatch; create extension postgis_tiger_geocoder; /* the following are required for...
<gh_stars>0 CREATE TABLE PRODUCTS( ID SERIAL PRIMARY KEY, PRODUCT_ID VARCHAR(1000), ORIGIN_COUNTRY VARCHAR(100), PRICE NUMERIC(19, 2), RATING_COUNT INTEGER, RATING_FIVE_COUNT INTEGER );
CREATE TABLE `ax_service_info` ( `id` varchar(64) NOT NULL COMMENT '编号', `service_code` varchar(128) NOT NULL COMMENT '接口服务代码', `service_name` varchar(256) DEFAULT NULL COMMENT '服务名称', `service_center_url` varchar(256) DEFAULT NULL COMMENT '服务中心地址', `service_group` varchar(256) DEFAULT NULL COMMENT '服务组名称', ...
<filename>samples/expected/ex3.sql CREATE TABLE test ( col text ); INSERT INTO test VALUES ('123'); CREATE FUNCTION fonction_reference (refcursor) RETURNS refcursor AS $$ BEGIN OPEN $1 FOR SELECT col FROM test; RETURN $1; END; $$ LANGUAGE plpgsql; BE...
<gh_stars>10-100 -- -- Creates a simple table and enables logging twice (the second call should update the interval) -- BEGIN; CREATE TABLE config ( key VARCHAR(100) PRIMARY KEY, value TEXT NOT NULL ); -- enable logging SELECT recall.enable('config', '2 months'); -- run a cleanup to make sure last_cleanup is set ...
<reponame>Pronoy999/Petcoset DROP PROCEDURE IF EXISTS sp_tbl_StateMaster; DELIMITER $$ CREATE PROCEDURE sp_tbl_StateMaster() BEGIN DECLARE currentSchema varchar(100); SELECT database() into currentSchema; IF NOT EXISTS( SELECT 1 FROM information_schema.TABLES WHERE TABLE_...
<filename>SQL/product.sql -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: product -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
<gh_stars>0 -- Create a column for postgis geometry SELECT AddGeometryColumn('location', 'geom', 4326, 'POINT', 2); ALTER TABLE location ADD COLUMN geog geometry(Geometry,4326); -- Index CREATE INDEX idx_geom_location ON location USING gist(geom); CREATE INDEX idx_geog_location ON location USING gist(geog); -- Trigge...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Client: 127.0.0.1 -- Généré le: Mar 31 Mars 2015 à 04:47 -- Version du serveur: 5.5.27 -- Version de PHP: 5.4.7 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.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 26 Sep 2020 pada 10.58 -- Versi Server: 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_SET_CL...
SET DEFINE OFF; ALTER TABLE AFW_12_GROUP_APROB ADD ( CONSTRAINT AFW_12_GROUP_APROB_UK1 UNIQUE (CODE, REF_GROUP_STAT) ENABLE VALIDATE) /
<filename>sql/data.sql<gh_stars>1-10 INSERT INTO Department (name, slogan) VALUES ('Rnd', 'We are the blurst'); INSERT INTO Employee (id, name, department) VALUES (1, 'Aniket', 1); -- ================================================================================ INSERT INTO Department (name, slogan) VALUES ('Non RN...
DROP TABLE Review, ObjectInRoute, Route, ObjectTag, Tag, ObjectCategory, Category, Object, User; CREATE TABLE User ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(128), surname VARCHAR(128), email VARCHAR(128) UNIQUE, password_hash VARCHAR(256), rights_level INT UNSIGNED, sub...
<filename>src/test/resources/corrupt.test_14.sql<gh_stars>100-1000 -- corrupt.test -- -- execsql { -- UPDATE t1 SET x = X'870400020003000400050006000700080009000A' -- WHERE rowid = 10; -- } UPDATE t1 SET x = X'870400020003000400050006000700080009000A' WHERE rowid = 10;
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-11-2015 a las 20:48:50 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
-- What is the Top Level Domain, if we want to register a domain name for Anton's -- favorite waterfall? SELECT CountryName, CountryTLD FROM Countries SELECT Country, WaterfallName FROM Waterfalls SELECT Waterfalls.WaterfallName, Countries.CountryTLD FROM Waterfalls INNER JOIN Countries ON Countries.CountryName = Wa...
<reponame>JeromeRocheteau/emit<gh_stars>1-10 UPDATE `callbacks` SET `name` = ?, `atomic` = ?,`category` = ? WHERE `id`= ? AND `user`= ?
-- -- Copyright (c) 2008, by the California Institute of Technology. -- ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged. -- -- $Id: drop_manager_oracle_package.sql 9607 2012-02-23 22:27:02Z nchung $ -- -- -- This SQL script drops the database functions and procedures for the Horizon domain schema. -- DR...
-- @testpoint: create index与insert结合:先插入数据,再建索引,再插入数据,再删除数据,再重建索引 --建普通表 DROP TABLE if EXISTS test_index_table_185 CASCADE; create table test_index_table_185( c_int int); --插入数据 begin for i in 0..30000 loop insert into test_index_table_185 values(i); end loop; end; / --建索引 explain select * from test_in...
<filename>Query.sql<gh_stars>0 SELECT `output`.`Output`, `testing`.`timelog` FROM `output`,`testing` WHERE `testing`.`idOutput`=`output`.`idOutput` ORDER BY `testing`.`timelog`; SELECT `testing`.`F1`,`testing`.`F2`,`testing`.`F3`,`testing`.`F4`,`testing`.`F5`,`testing`.`F6`, `output`.`Output` AS 'Ekpresi', DATE(`test...
DROP DATABASE IF EXISTS `example_db`; CREATE DATABASE `example_db`;
<filename>WEB/tabs.sql CREATE TABLE `tab_usuarios` ( `ID_USER` int NOT NULL AUTO_INCREMENT, `USERNAME` varchar(100) NOT NULL, `USERLOGIN` varchar(45) NOT NULL, `SENHA` varchar(45) NOT NULL DEFAULT 'A.123456', `TIPO` int NOT NULL DEFAULT '0', PRIMARY KEY (`ID_USER`), UNIQUE KEY `ID_USER_UNIQUE` (`ID_USER...
INSERT INTO EGBPA_BUILDING_CONSTRUCTIONSTAGE (ID,NAME,DESCRIPTION,active,VERSION,CREATEDBY,CREATEDDATE) VALUES (nextval('SEQ_EGBPA_BUILDING_CONSTRUCTIONSTAGE'),'Foundation','Foundation',true,0,1,now()); INSERT INTO EGBPA_BUILDING_CONSTRUCTIONSTAGE (ID,NAME,DESCRIPTION,active,VERSION,CREATEDBY,CREATEDDATE) VALUES (next...
<reponame>darkares23/holbertonschool-higher_level_programming -- script that lists all the tables of a database in your MySQL server. SHOW TABLES;