sql
stringlengths
6
1.05M
<reponame>Ambal/mangos<filename>sql/updates/0.15/8589_09_mangos_spell_chain.sql ALTER TABLE db_version CHANGE COLUMN required_8589_08_mangos_item_template required_8589_09_mangos_spell_chain bit; /* UnholyBlight non ranked now */ DELETE FROM spell_chain WHERE first_spell = 49194;
SELECT p.agency_type , p.call_category , p.City as 'address_city' , p.incident_Number as 'incident_number' , p.Jurisdiction as 'jurisdiction' , p.problem as 'problem' ,p.Response_Date as 'date_response' ,p.State as 'address_state' ,p.zip as 'address_zip' ,p...
CREATE TABLE refuelings2 (_id INTEGER PRIMARY KEY AUTOINCREMENT, `date` INTEGER NOT NULL, tachometer INTEGER NOT NULL, volume REAL NOT NULL, price REAL NOT NULL, `partial` INTEGER NOT NULL, note TEXT NOT NULL, cars_id INTEGER NOT NULL, fueltypes_id INTEGER DEFAULT NULL, FOREIGN KEY(cars_id) REFERENCES cars(_id) ON UPDA...
<reponame>gabrielschmith/SalesOrder<filename>docs/categorias.sql delete from categoria where categoria_pai_id is not null; delete from categoria; alter table categoria auto_increment = 19; insert into categoria (id, descricao) values (1, 'Informática'); insert into categoria (id, descricao) values (2, 'Eletrodoméstic...
<reponame>zxgbuynow/ondate CREATE TABLE IF NOT EXISTS `wp_signin_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `score` int(10) NOT NULL COMMENT '积分', `wpid` varchar(255) NOT NULL COMMENT 'wpid', `sTime` int(10) UNSIGNED NOT NULL COMMENT '签到时间', `uid` varchar(255) NOT NULL COMMENT '用户ID...
<reponame>hemmerling/sql-stanford2013 /* Compute average rating of each movie */ select Rating.mID, avg(stars) as average from Movie, Rating where Movie.mID=Rating.mID group by Rating.mID
<gh_stars>1-10 ---Merge ---PIVOT ---CTE common table expressions ----IF EXISTS (SELECT 1) FALSE INSERT TRUE UPDATE /* WITH <TABLE_EXPRESION_ORIGEN1> MERGE <TABLE_EXPRESION_ORIGEN2> WHEN MATCH TEHN UPDATE INSERT DELETE */ use cuponera go --CREATE TABLE Productos --( -- ProductId int primary key, -- ProductNam...
--https://docs.oracle.com/database/sql-developer-4.2/RPTUG/sql-developer-unit-testing.htm#RPTUG45065 create or replace procedure award_bonus (emp_id number, sales_amt number) as commission real; comm_missing exception; begin select commission_pct into commission from employees_test where employee_...
<reponame>sreekanth370/presto -- database: presto; groups: qe, horology_functions SELECT date '2012-08-08' + interval '2' day, time '01:00' + interval '3' hour, timestamp '2012-08-08 01:00' + interval '29' hour, timestamp '2012-10-31 01:00' + interval '1' month, interval '2' day + inter...
<reponame>pdv-ru/ClickHouse SELECT toStartOfDay(toDateTime('2017-12-31 00:00:00', 'UTC'), ''); -- {serverError 43} SELECT toStartOfDay(toDateTime('2017-12-31 03:45:00', 'UTC'), 'UTC'); -- success SELECT toStartOfMonth(toDateTime('2017-12-31 00:00:00', 'UTC'), ''); -- {serverError 43} SELECT toStartOfMonth(toDateTime('...
<gh_stars>0 /****** Object: Table [dbo].[BINWARD_PROC_CRE_ACCT] Script Date: 29/10/2014 5:28:58 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[BINWARD_PROC_CRE_ACCT]( [ID] [nvarchar](20) NULL, [Status] [nvarchar](5) NULL, [ClearingID] [nva...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore SELECT COUNT(*) FROM cr_ao_truncate_table; DROP TABLE cr_ao_truncate_table;
--+ holdcas on; -- Examples from https://dev.mysql.com/doc/refman/8.0/en/json-table-functions.html#function_json-table --CBRD-22415, by design SELECT * FROM JSON_TABLE( '[{"a":"3"},{"a":2},{"b":1},{"a":0},{"a":[1,2]}]', '$[*]' COLUMNS( rowid FOR ORDINALITY, ac VARCHAR(100) PATH '$.a' DEFAULT ...
<filename>medium/_02_xtests/cases/6991.sql autocommit off; create class a(y set(varchar(20))); create class b(x a); insert into b values( insert into a values({'aa', 'bb'})); insert into b values( insert into a values({'aa', 'dd', NULL})); insert into b values( insert into a values({'aa', NULL, 'ff'})); select x.y from...
<gh_stars>100-1000 CREATE TABLE binout1 ( val1 smallint NOT NULL, val2 integer NOT NULL, val3 bigint NOT NULL, val4 integer NOT NULL, val5 bigint NOT NULL, val6 real NOT NULL, val7 double precision NOT NULL, val8 text NOT NULL ); CREATE TABLE binout2 (LIKE binout1); CREATE TABLE binout3 ( val1 smalli...
<filename>src/app/voltdb/voltdb_src/tests/sqlcoverage/template/include/joined-matview-default-template.sql -- DML, purge and regenerate random data first. DELETE FROM @dmltable INSERT INTO @dmltable VALUES (@insertvals) -- INSERT some rows with some identical column values, so that equi-joins are not empty INSERT INT...
<gh_stars>0 DROP DATABASE IF EXISTS tracker; CREATE DATABASE tracker; USE tracker;
-- CreateTable CREATE TABLE `Product` ( `id` VARCHAR(191) NOT NULL, `code` VARCHAR(191) NOT NULL, `name` VARCHAR(191) NOT NULL, `quantity` INTEGER NOT NULL, `sale_value` DOUBLE NOT NULL, `buy_value` DOUBLE NOT NULL, `CategorieId` VARCHAR(191) NOT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARA...
-- Query on land cost, population, land share, and nearby airports CREATE OR REPLACE FUNCTION lookup_YrCostPopShareAir ( REF refcursor, a varchar(100), b int, c int, d decimal, e decimal ) RETURNS refcursor AS $$ BEGIN OPEN REF FOR WITH cte AS ( SELECT one.county, one.state, two.loc_id, two.commercia...
<filename>database/2203_sinauka-putrisekar-peminjaman.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2022 at 10:26 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.1.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET tim...
<gh_stars>0 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT ...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Pon 11. říj 2021, 22:44 -- Verze serveru: 10.4.10-MariaDB -- Verze PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 (Debian 10.5-1) -- Dumped by pg_dump version 10.5 (Debian 10.5-1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.s...
-- Here we can define repeatable SQL which shuld be called on each migration. -- E.g. triggers or views creation, default schema selection etc. select count(*) from users;
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: i5a304.p.ssafy.io Database: kindergarden -- ------------------------------------------------------ -- Server version 8.0.26-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
<filename>Detection_Cheating/student_test_insert.sql -- SQLite INSERT INTO students (student_number, name, video_path, packet_path, audio_path, audio_img_path, state, reason, network_result, audio_result) VALUES ("16011019", "유정한", "video_path 경로", "packet_path 경로" ,"audio_path 경로", "audio_img_path 경로", "pass", "이유", "...
<reponame>JohnCale47/el_monitorro DROP INDEX feed_items_title_publication_date_index; CREATE UNIQUE INDEX feed_items_title_publication_date_index ON feed_items(feed_id, title, publication_date);
<reponame>carehart/dba-dash<filename>DBADash/SQL/SQLServerRoleMembers.sql SELECT role_principal_id, member_principal_id FROM sys.server_role_members
<filename>uri/sql/2605.sql SELECT products.name, providers.name FROM products INNER JOIN providers ON products.id_providers = providers.id WHERE products.id_categories = 6;
<gh_stars>0 ALTER TABLE [dbo].[RequestThumbprint] ADD CONSTRAINT [FK_Request_RequestID__RequestThumbprint_Request] FOREIGN KEY ([RequestID]) REFERENCES [dbo].[Request] ([RequestID])
/* ======================================================================== */ /* PeopleRelay: check_log.sql Version: 0.4.3.6 */ /* */ /* Copyright 2017-2018 <NAME> & <NAME> */ /* ...
<filename>sql/oracle_v2/acknowledgements.sql<gh_stars>10-100 -- -- Holds acknowledgedments information. -- CREATE TABLE acknowledgements ( acknowledgement_id int NOT NULL, entry_time int NOT NULL, host_id int NOT NULL, service_id int default NULL, author varchar(64) default NULL, comment_data varchar(255) ...
<gh_stars>1-10 -- add new type DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'log_state_type') THEN CREATE TYPE log_state_type AS ENUM ('Active', 'Inactive', 'Information'); END IF; END$$; -- add version columns ALTER TABLE operations_log ADD COLUMN state log_state_type; -- set ini...
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.5.28 : Database - cash-register ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
<reponame>meroxa/debezium CREATE TABLE `customfield` ( `ENCODEDKEY` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `ID` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `CREATIONDATE` datetime DEFAULT NULL, `LASTMODIFIEDDATE` datetime DEFAULT NULL, `DATATYPE` varchar(256) CHARACTER SET u...
<filename>src/test/tinc/tincrepo/dml/functional/sql_partition/mpp21090_pttab_dropfirstcol_addpt_float.sql -- @author prabhd -- @created 2014-04-01 12:00:00 -- @modified 2012-04-01 12:00:00 -- @tags dml MPP-21090 ORCA -- @optimizer_mode on -- @description Tests for MPP-21090 \echo --start_ignore set gp_enable_column_o...
<gh_stars>1-10 set system parameters 'create_table_reuseoid=no'; autocommit off; create class temp1 (at1 int); create class temp2 (at1 temp1); drop class temp1 select * from temp2; rollback; create class xxx (abc int); create class zzz (s9 string, x9 xxx); insert into zzz values ('x', insert into xxx values (10)); sel...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600101',@CutoffDate = N'2017-09-30',@EPS = N'0.289',@EPSDeduct = N'0',@Revenue = N'11.18亿',@RevenueYoy = N'5.19',@RevenueQoq = N'25.79',@Profit = N'9367.30万',@ProfitYoy = N'4.54',@ProfiltQoq = N'175.29',@NAVPerUnit = N'6.3810',@ROE = N'4.63',@CashPerUnit = N'0.7892',@GrossProfitRate...
<filename>querys/AdventureWorks tables.sql --PRODUCT DIMENSION SELECT P.ProductKey ,p.ProductAlternateKey ,CASE WHEN C.EnglishProductCategoryName IS NULL THEN 'Without Category' ELSE C.EnglishProductCategoryName END AS Category ,CASE WHEN S.EnglishProductSubcategoryName IS NULL THEN 'Without Subcategor...
<filename>src/main/resources/sql-schema.sql<gh_stars>0 drop schema ims; CREATE SCHEMA IF NOT EXISTS `ims`; USE `ims` ; CREATE TABLE IF NOT EXISTS `ims`.`customers` ( `cid` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(40) DEFAULT NULL, `surname` VARCHAR(40) DEFAULT NULL, `house_number` INT(10) NOT NULL, ...
<reponame>asmaa3299/MindersWebsiteFinal<filename>minders.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2020 at 09:33 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMM...
<reponame>rajeevsingla780/Attendence-Management-System<filename>database/attsystem.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 07, 2018 at 03:23 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZE...
<filename>module/api/package/plu_stack.pkb create or replace package body plu_stack as ---------------------------------------------------------------------------- function get_ddl_scripts ( template_type in object_name_type, object_name_prefix in object_name_type default null ) ...
-- 通话记录 select distinct calling_party_number, called_party_number, cnt_duration, cnt_call from (select calling_party_number, called_party_number, sum(duration) as cnt_duration, count(*) as cnt_call, service_type from msc_detail where duration + 0 > 0 and service_type in ('MOC', 'MTC') group by ca...
<reponame>lynn-miller/docs-MySQL<gh_stars>0 create table document_type ( document_type_id int auto_increment, document_type varchar(20), open_with varchar(30), constraint document_type_pk primary key (document_type_id) ); insert into document_type (document_type, open_with) values ('Wo...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 30 avr. 2021 à 21:49 -- Version du serveur : 10.4.16-MariaDB -- Version de PHP : 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
INSERT INTO books (title, author, isbn, image_url, description) VALUES ( 'Dune', '<NAME>', 'ISBN_13 9780441013593', 'http://books.google.com/books/content?id=B1hSG45JCX4C&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api', 'Follows the adven...' ); INSERT INTO books (title, author, isbn, image_url, d...
<reponame>hands-agency/grandcentral -- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 13, 2015 at 03:34 PM -- Server version: 5.5.25 -- PHP Version: 5.4.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
CREATE TABLE IF NOT EXISTS residents ( id serial PRIMARY KEY, name text not null, fk_suit_name varchar(16), FOREIGN KEY( fk_suit_name ) REFERENCES suits( name ) ON DELETE SET NULL, fk_sex_name varchar(16), FOREIGN KEY( fk_sex_name ) REFERENCES sexes( name ) ON DELETE SET NULL, fk_role...
<gh_stars>1-10 -- https://www.hackerrank.com/challenges/weather-observation-station-10/problem?isFullScreen=true&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen SELECT DISTINCT CITY FROM STATION WHERE right(CITY, 1) NOT IN ('a','e','i','o','u')
UPDATE [dbo].[CalculationRule] SET name ='Elementary / Middle School - Students' WHERE calculationId = 1 AND code ='STUDENTS_ELEMENTARY';
-- file:triggers.sql ln:394 expect:true create table trigtest (i serial primary key)
DROP TABLE commands;
/* * Copyright (c) 2017 LabKey Corporation * * 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...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT EXISTS plpgs...
<gh_stars>0 IF OBJECT_ID ( 'userProcCreateBaselineByExistingBaselineID', 'P' ) IS NOT NULL DROP PROCEDURE userProcCreateBaselineByExistingBaselineID GO CREATE PROCEDURE userProcCreateBaselineByExistingBaselineID @BaselineId [uniqueidentifier], @Name [nvarchar](128), @Description [nvarchar](1028), @CreatedBy [nvar...
-- applied when database already exists, just before migration scripts. -- known versions with their associated migration script. INSERT INTO horcrux_versions (number, script) VALUES (2, 'upgrate_to_v2.sql') ON CONFLICT (number) DO UPDATE SET script = EXCLUDED.script WHERE horcrux_versions.number = EXCLUDED....
create table if not exists hacker ( id serial not null constraint hacker_pk primary key, nick varchar(255) not null, kind varchar(255) not null, character int constraint hacker_character_id_fk references character ); create unique index if ...
<reponame>Rob--W/phabricator CREATE TABLE {$NAMESPACE}_herald.herald_ruleapplied ( ruleID int unsigned not null, phid varchar(64) binary not null, PRIMARY KEY(ruleID, phid) ) ENGINE=InnoDB; ALTER TABLE {$NAMESPACE}_herald.herald_rule add repetitionPolicy int unsigned;
<gh_stars>1000+ -- Copyright (c) YugaByte, Inc. insert into alert_definition_label (definition_uuid, name, value) select uuid, 'universe_uuid', cast(universe_uuid as text) from alert_definition; insert into alert_definition_label (definition_uuid, name, value) select ad.uuid, 'universe_name', u.name from alert_definit...
-- pDeleteCommentsFromUsersIds.sql CREATE OR REPLACE FUNCTION pDeleteCommentsFromUsersIds( UsersIDs_IN INTEGER[] ) RETURNS BOOLEAN AS $$ BEGIN DELETE FROM "Comments" WHERE "UserID" = ANY(UsersIDs_IN); RETURN FOUND; END $$ LANGUAGE plpgsql;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.11 -- http://www.phpmyadmin.net -- -- Machine: localhost -- Gegenereerd op: 18 apr 2016 om 15:02 -- Serverversie: 5.5.31 -- PHP-versie: 5.5.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<reponame>iwansusanto/ijd -- MySQL dump 10.16 Distrib 10.3.9-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: ijd -- ------------------------------------------------------ -- Server version 10.3.9-MariaDB-1:10.3.9+maria~bionic /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<filename>openGaussBase/testcase/PROCEDURE/DEFINITION_SYNTAX/Opengauss_Function_Procedure_Definition_Syntax_Case0132.sql -- @testpoint:存储过程非动态语句查询语句 drop table if exists sections_t2; CREATE TABLE sections_t2 ( section NUMBER(4) , section_name VARCHAR2(30), manager_id NUMBER(6), place_id NUMB...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Jul 2020 pada 18.48 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.3.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
<filename>skripte/db_schema_definition_pub/afu_geologie_pub/v1/postscript.sql COMMENT ON SCHEMA afu_geologie_pub IS 'Geologie. Fragen: <EMAIL>' ; GRANT USAGE ON SCHEMA afu_geologie_pub TO public, gretl, ogc_server, sogis_service ; GRANT SELECT, UPDATE, INSERT, DELETE ON ALL TABLES IN SCHEMA afu_geologie_pub T...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 13, 2017 at 06:05 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_SE...
<reponame>lindseybowen/Eat-Da-Burger<gh_stars>0 INSERT INTO burgers (burger_name) VALUES ('Double Cheese Burger'); INSERT INTO burgers (burger_name) VALUES ('Regular Burger with Tomato'); INSERT INTO burgers (burger_name, hungry) VALUES ('Wopper', true); INSERT INTO burgers (burger_name, hungry) VALUES ('Sliders', true...
<gh_stars>0 -- AlterTable ALTER TABLE "Load" ADD COLUMN "vendor_rate" DECIMAL DEFAULT 0.0;
<reponame>2008PegaUSF/BatchSource<filename>SQL/day1.sql create table myfirsttable( mycol int not null ); create role chinook1 login password '<PASSWORD>' noinherit createdb; create database chinookdb; grant connect on database chinookdb to chinook1;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 29, 2021 at 02:11 PM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* leave this l:see LICENSE file g:utility,script v:130729.1000\s.zaglio:managed #objs v:121012\s.zaglio:option to remove top comments v:120730\s.zaglio:adding support for #src_def v:120717\s.zaglio:replaced {tab} with 4 spaces v:120622\s.zaglio:added related option v:120504\s.zaglio:m...
INSERT INTO product_category(category_name) VALUES ('Buty'), ('Torebki'), ('Plecaki'), ('Spodnie'), ('Bluzy');
<reponame>tildedave/cassandra-flask-sessions create keyspace "demo" with Replication={'class': 'SimpleStrategy', 'replication_factor': 2};
<gh_stars>1-10 SET DEFINE OFF; create or replace package body afw_21_actio_dynmq_pkg is function valdr_prise_charg (pva_code_plugn in varchar2) return boolean is vnu_page_sesn vd_afw_13_page.seqnc%type := afw_13_page_pkg.obten_page_sesn; vnu_page_zero_sesn vd_afw_13_page.seqnc%type := afw...
# Exemplo 1: - “Criação do cenário para testar dos exemplos” CREATE TABLE tbfuncionario ( codfunc INTEGER NOT NULL, nomefunc VARCHAR(20), salariofunc NUMBER(15,2), CONSTRAINT funcionario_PK PRIMARY KEY(codfunc) ); INSERT INTO tbfuncionario(codfunc, nomefunc, salariofunc) VALUES (1, 'Maria', 2000);...
alter table proposal drop column id;
<gh_stars>1-10 CREATE SEQUENCE tests_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 18 CACHE 1; CREATE TABLE "public"."tests" ( "id" integer DEFAULT nextval('tests_id_seq') NOT NULL, "name" character varying(256) NOT NULL, "age" integer NOT NULL ) WITH (oids = false);
SELECT * FROM __tiny_test_db.%I WHERE text = :a
<reponame>nazar-pc/CleverStyle-Framework DROP TABLE `[prefix]comments`;
<gh_stars>10-100 SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `career_school_year_period` DROP FOREIGN KEY `career_school_year_period_FK_2`; ALTER TABLE `course_subject` DROP FOREIGN KEY `course_subject_FK_2`; ALTER TABLE `division` DROP FOREIGN KEY `division_FK_2`; ALTER TABLE `student_approved_career_subject` DROP FOREIGN K...
/* This script replaces the existing unique constraint on the [Producer].[RegisteredProducer] table with a unique filtered index. Currently, the constraint prevents more the table from containing more than one active registration for the same scheme, compliance year and producer registration number. However, ...
/* SQLyog Ultimate v12.08 (64 bit) MySQL - 5.5.53 : Database - clients ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 06, 2020 lúc 07:02 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50720 Source Host : localhost:3306 Source Database : spring_security Target Server Type : MYSQL Target Server Version : 50720 File Encoding : 65001 Date: 2018-05-16 18:41:05 */ SET FOREIGN_KEY_CHECKS=...
create table oauth_client_token ( token_id VARCHAR(256) COMMENT 'MD5加密的access_token的值', token LONGBLOB COMMENT 'OAuth2AccessToken.java对象序列化后的二进制数据', authentication_id VARCHAR(256) PRIMARY KEY COMMENT 'MD5加密过的username,client_id,scope', user_name VARCHA...
<gh_stars>1-10 CREATE TYPE challenge_type AS ENUM ( 'Pwn', 'Web', 'Crypto', 'Reversing' )
-- Création des unités foncières pour Spatialite INSERT INTO geo_unite_fonciere (comptecommunal, annee, lot, geom) SELECT comptecommunal, '[ANNEE]' AS annee, '[LOT]' AS lot, CastToMultiPolygon(st_unaryunion(st_collect(a.geom))) as geom FROM v_geo_parcelle a WHERE 2>1 AND comptecommunal IS NOT NULL AND ST_IsValid(a.geom...
<reponame>labdsf/amusewiki<filename>dbicdh/SQLite/upgrade/43-44/001-auto.sql -- Convert schema '/home/melmoth/amw/AmuseWikiFarm/dbicdh/_source/deploy/43/001-auto.yml' to '/home/melmoth/amw/AmuseWikiFarm/dbicdh/_source/deploy/44/001-auto.yml':; ; BEGIN; ; ALTER TABLE custom_formats ADD COLUMN bb_start_with_empty_page ...
<filename>SCAComposite/scripts/db/typ/cas_register_it_1_0.sql create or replace type cas_register_it_1_0 force as object ( case_reference varchar2(50 char) , case_type varchar2(5 char) , case_version number , case_xml clob , intake_id number , intake_date timestamp , has_documents va...
insert into innodb_all values ( 'FIL', '2014-01-16', 'LER', '2014-01-16 10:49:20', 'FIL', '10:49:20', 'LER', NOW(), 'FIL', '2014', 'LER', 10.0, 'FIL', 10.0000000001, 'LER', 11.11111111111, 'ABC', '1234567890.1234567890', 'FIL', '1234567890.1234567890', 'LER', 0b1, 'FIL', 0b11111, 'LER', 0b1111111111, 'FIL', 10, 'LE...
<gh_stars>0 -- @testpoint:opengauss关键字minvalue(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists minvalue; create database minvalue; drop database minvalue; --关键字带双引号-成功 drop database if exists "minvalue"; create database "minvalue"; drop database "minvalue"; --关键字带单引号-合理报错 drop database if exists 'minvalue'; create...
# --- !Ups ALTER TABLE CLIENT_SUMMARY DROP COLUMN MENTAL_HEALTH_RISK; ALTER TABLE CLIENT_SUMMARY_VERSION DROP COLUMN MENTAL_HEALTH_RISK; # --- !Downs ALTER TABLE CLIENT_SUMMARY ADD COLUMN MENTAL_HEALTH_RISK BOOL NULL; ALTER TABLE CLIENT_SUMMARY_VERSION ADD COLUMN MENTAL_HEALTH_RISK BOOL NULL; CREATE INDEX IDX_CLIENT_...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Jul 01, 2021 at 03:03 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<filename>scripts/hello.sql -- Start with a clean slate: DROP SCHEMA IF EXISTS JAVA_TUTORIAL CASCADE; -- CREATE SCHEMA JAVA_TUTORIAL; --/ CREATE JAVA SCALAR SCRIPT JAVA_TUTORIAL.HELLO() RETURNS VARCHAR(20) AS class HELLO { static String run(ExaMetadata metadata, ExaIterator context) throws Exception { ...
<reponame>bhowmikp/hackerrank-sql -- Consider P(a,c) and P(b,d) to be two points on a 2D plane where (a,b) are -- the respective minimum and maximum values of Northern Latitude (LAT_N) -- and (c,d) are the respective minimum and maximum values of Western Longitude -- (LONG_W) in STATION. Query the Euclidean Distance be...
DROP TABLE IF EXISTS `links`; CREATE TABLE `links` ( `ID` int(11) unsigned NOT NULL, `links` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `links` VALUES (...
<reponame>bcvsolutions/CzechIdMng<filename>Realization/backend/core/core-impl/src/main/resources/eu/bcvsolutions/idm/core/sql/sqlserver/V11_02_003__monitoring-code.sql -- -- CzechIdM 11 Flyway script -- BCV solutions s.r.o. -- -- Add code to monitoring evaluator -- ALTER TABLE idm_monitoring ADD code nvarchar(255); AL...
-- lock.test -- -- db eval {SELECT * FROM t2} SELECT * FROM t2
<gh_stars>0 CREATE TABLE [dbo].[Table] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [Name] NVARCHAR(MAX) NOT NULL )