sql
stringlengths
6
1.05M
<gh_stars>0 -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore --start_ignore DROP DATABASE sto_db1; --end_ignore CREATE DATABASE sto_db1; \c sto_db1 CREATE TABLE sto_db_tb1 ( text_col text, bigint_col bigint, char_vary_col character varying(30), numeric_col numeric ) with(app...
---------------- -- Example of getting URL data ---------------- create table raw_data(data varchar(64000), url varchar(64000)); -- fetch Vertica.com's homepage into the table insert into raw_data select http_get('http://www.vertica.com'), 'http://www.vertica.com'; COMMIT; select length(data) as len, url from raw_dat...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : xampp Source Server Version : 50505 Source Host : localhost:3306 Source Database : reservecar Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2019-08-08 12:20:46 */ SET FOREIGN_KEY_CHEC...
<filename>usuarios1.sql -- -- Script was generated by Devart dbForge Studio for MySQL, Version 192.168.3.11 -- Product home page: http://www.devart.com/dbforge/mysql/studio -- Script date 18/01/2018 16:40:57 -- Server version: 5.5.5-10.1.21-MariaDB -- Client version: 4.1 -- -- -- Definition for database usuarios1 --...
-- @testpoint:opengauss关键字sublist非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists sublist; create sequence sublist start 100 cache 50; drop sequence sublist; --关键字带双引号-成功 drop sequence if exists "sublist"; create sequence "sublist" start 100 cache 50; drop sequence "sublist"; --关键字带单引号-合理报错 drop sequence if exists ...
-- @testpoint:opengauss关键字returned_sqlstate(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists returned_sqlstate; create schema returned_sqlstate; --清理环境 drop schema returned_sqlstate; --关键字带双引号-成功 drop schema if exists "returned_sqlstate"; create schema "returned_sqlstate"; --清理环境 drop schema "returned_sqlstate"; --关键...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2018 at 09:59 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<gh_stars>0 INSERT INTO pos_itemtemp VALUES("ILBT210000122","193402","191001","192019","61818","1","61818","0","61818","1","1","1","ILB1601210930","NHO2018000014","PAID","","193402"), ("ILBT210000123","193422","191001","192019","30000","1","30000","0","30000","1","1","1","ILB1601210930","NHO2018000014","PAID","","19342...
<reponame>janelznic/msd-recruiting-task INSERT INTO `ships` (`id`, `name`, `speed`) VALUES (1, 'Enterprise D', 'Warp 9'); INSERT INTO `users` (`id`, `username`, `password`, `authority`, `status`) VALUES (1, 'admin', '$2a$10$uCzx91FdBhZl6JVygTlMSeDS0xiN5WObLlE3Hny9hFiFXx/HORjGK', 6, 1);
<gh_stars>0 DROP TABLE IF EXISTS books; CREATE TABLE books( id SERIAL PRIMARY KEY, authors VARCHAR(255), title VARCHAR(255), description TEXT, isbn VARCHAR(50), thumbnail VARCHAR(255) ); INSERT INTO books (authors, title, description, isbn, thumbnail) VALUES('<NAME>', 'Mushrooms', '"In the first...
CREATE TABLE MEDIXX_STOCK ( ID VARCHAR NOT NULL PRIMARY KEY, STOCK TEXT );
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Feb 01, 2022 at 01:44 AM -- Server version: 5.7.26 -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `Noticias1` -- -- ------------------------...
<filename>gestao_produtos/loja.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 23-Jun-2021 às 18:19 -- Versão do servidor: 10.4.19-MariaDB -- versão do PHP: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
<reponame>cscl-git/digit-bpa alter table eg_collectionindex alter column billnumber type character varying(50);
CREATE TABLE card_names ( id SERIAL PRIMARY KEY, card_id TEXT NOT NULL, name TEXT NOT NULL ); CREATE INDEX card_names_name_idx ON card_names (name); ALTER TABLE ONLY card_names ADD CONSTRAINT card_names_card_id_fkey FOREIGN KEY (card_id) REFERENCES cards (id) ON DELETE CASCADE; CREATE INDEX card_names_card...
-------------------------------------------------------------------------------- -- -- A PL/SQL chrestomathy -- -- Module: misc -- Submodule: drop_many -- Purpose: dropping many interrelated objects -- -- Copyright (c) 2014-5 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaini...
SELECT c.TABLE_SCHEMA, c.TABLE_NAME, c.COLUMN_NAME, c.ORDINAL_POSITION, c.COLUMN_TYPE, c.CHARACTER_SET_NAME, c.COLUMN_KEY, k.REFERENCED_TABLE_SCHEMA, k.REFERENCED_TABLE_NAME, k.REFERENCED_COLUMN_NAME FROM information_schema.COLUMNS c LEFT JOIN information_schema.KEY_COLUMN_USAGE ...
ALTER TABLE sunbird_courses.course_batch ADD cert_templates map<text,frozen<map<text,text>>>;
<reponame>PlanetaryTennis/equations-1 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for questions -- ---------------------------- DROP TABLE IF EXISTS `questions`; CREATE TABLE `questions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `question` varchar(255) DEFAULT NULL, PRIMARY KEY (...
-- Revert seattleflu/schema:warehouse/encounter/timestamp from pg begin; alter table warehouse.encounter drop column created, drop column modified; commit;
<filename>package/iceip.sql # Host: 127.0.0.1 (Version: 5.5.53) # Date: 2018-02-05 16:48:13 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "iceip" # DROP TABLE IF EXISTS `iceip`; CREATE TABLE `iceip` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', ...
use eing; drop table tbusuarios; create table tbusuarios( id int primary key auto_increment, nombres varchar(50), apellido varchar(50), id_sexo int, fec_nac date, dni varchar(8) not null, celular varchar(9), correo varchar(100), password varchar(20) default '<PASSWORD>', cargo varchar(100), titulo varchar(100), url_fa...
ALTER TABLE iex.user ADD "avatar" text NULL;
DROP TABLE IF EXISTS uncomparable_keys; CREATE TABLE foo (id UInt64, key AggregateFunction(max, UInt64)) ENGINE MergeTree ORDER BY key; --{serverError 549} CREATE TABLE foo (id UInt64, key AggregateFunction(max, UInt64)) ENGINE MergeTree PARTITION BY key; --{serverError 549} CREATE TABLE foo (id UInt64, key Aggregat...
<gh_stars>0 -- General setup -- Create extension CREATE EXTENSION hypopg; -- Create do_explain function CREATE OR REPLACE FUNCTION do_explain(stmt text) RETURNS table(a text) AS $_$ DECLARE ret text; BEGIN FOR ret IN EXECUTE format('EXPLAIN (FORMAT text) %s', stmt) LOOP a := ret; RETURN next ;...
<filename>zjxm.sql /* Navicat MySQL Data Transfer Source Server : 111 Source Server Version : 50709 Source Host : localhost:3306 Source Database : zjxm Target Server Type : MYSQL Target Server Version : 50709 File Encoding : 65001 Date: 2017-05-23 09:17:18 */ SET FOREIGN_KEY_CHECK...
-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 02 2016 г., 12:05 -- Версия сервера: 5.5.45 -- Версия PHP: 5.5.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
<filename>public_html/OrionBank/queries/UPDATE_USER_LASTNAME.sql UPDATE Users SET last_name = :input WHERE id = :user_id;
<reponame>Onionator/freelance_project -- -- PostgreSQL database dump -- -- Dumped from database version 11.4 -- Dumped by pg_dump version 11.4 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_cat...
-- -- Database Setup -- -- CREATE DATABASE IF NOT EXISTS `witi`; -- USE `witi`; -- DROP TABLE IF EXISTS `people`; -- DROP TABLE IF EXISTS `gadgets`; -- DROP TABLE IF EXISTS `report`; -- -- People -- CREATE TABLE IF NOT EXISTS `people` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL,...
<reponame>mikerodionov/ps_scripts<filename>K2/SQL/CheckEmptyRole.sql SELECT dq.*,dqu.[User] FROM [Server].[DestQueue] dq LEFT JOIN [Server].[DestQueueUser] dqu ON dqu.QueueID = dq.ID WHERE dqu.[user] IS NULL
<reponame>ashwins93/gocrm<filename>db/migrations/000001_init_schema.down.sql DROP TABLE IF EXISTS contacts; DROP TABLE IF EXISTS accounts;
<reponame>fumare5/phpdev2020 SELECT nazZupanija FROM zupanija WHERE LENGTH(nazZupanija) BETWEEN 13 AND 20 ORDER BY nazZupanija ASC ;
<reponame>mepler-labs/steps<gh_stars>0 -- Deploy steps:task_order_insert_trigger to pg -- requires: task_ordering BEGIN; CREATE FUNCTION assign_task_order() RETURNS trigger AS $$ DECLARE next_order INTEGER; BEGIN SELECT COALESCE(MAX("order"), -1) + 1 FROM task WHERE task.user_id = NEW.user_id INTO next_or...
SELECT TOP(5) FirstName, LastName FROM Employees ORDER BY Salary DESC
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2018 at 04:29 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...
<gh_stars>1-10 CREATE TABLE [dbo].[ecoregions] ( [id] INT NOT NULL, [name] VARCHAR (50) NOT NULL );
<reponame>mswdwk/code_test_records -- -- Definition for database log -- DROP DATABASE IF EXISTS log; CREATE DATABASE IF NOT EXISTS log CHARACTER SET utf8 COLLATE utf8_general_ci; -- -- Set default database -- USE log; -- -- Definition for table tb_log -- CREATE TABLE IF NOT EXISTS tb_log ( id bigint(20) UNSIGNE...
<filename>src/mysql_database_setup.sql CREATE DATABASE fantasy_sports; USE fantasy_sports; DROP TABLE IF EXISTS season_lineup_position_requirements; DROP TABLE IF EXISTS weekly_scores; DROP TABLE IF EXISTS player_team_records; DROP TABLE IF EXISTS weeks; DROP TABLE IF EXISTS seasons; DROP TABLE IF EXISTS players; DRO...
<reponame>varunbhanot/Habits<gh_stars>1-10 CREATE TABLE habit ( habit_id int not null auto_increment, device_id VARCHAR(128), name VARCHAR(128), question VARCHAR(4000), primary key(habit_id) );
<filename>src/Resources/NumericIdGeneratorStoredProcedure.sql CREATE PROCEDURE [{{StoredProcedureName}}] ( @TableName nvarchar(100) = '', @NumberOfItems int = 1 ) AS BEGIN set nocount on begin transaction save transaction transSavePoint begin try declare @lastId {{DataType}} SELECT @lastId = LastId FROM ...
<reponame>NathanHowell/sqlfluff fetch next from curcursor into test;
<reponame>jeevanullas/airflow-sample-dags TRUNCATE staging_product;
<reponame>fabriziomello/unique_id<gh_stars>1-10 -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION unique_id" to load this file. \quit -- unique_id_instagram CREATE FUNCTION unique_id_instagram(seqname REGCLASS, shard_id INTEGER DEFAULT 0) RETURNS bigint AS 'MODULE_P...
<reponame>Codentia/Codentia.Common.SQLScript if exists (select * from sysobjects where id = object_id(N'[dbo].[Util_PopulateTableFromCSV]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[Util_PopulateTableFromCSV] GO CREATE PROCEDURE dbo.Util_PopulateTableFromCSV @CSVList NVARCHAR(MAX) AS /* ...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 05, 2020 at 12:27 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Type : MySQL Source Server Version : 100132 Source Host : localhost:3306 Source Schema : hg_user_demo Target Server Type : MySQL Target Server Version : 100132 File Encoding : 65001 Date: 21/05/20...
<filename>migrations/20200129234455_create_users.up.sql CREATE TABLE users ( id bigserial not null PRIMARY KEY, email VARCHAR not NULL UNIQUE, encrypted_password VARCHAR not NULL );
-- Autogenerated: do not edit this file DROP TABLE IF EXISTS BATCH_STEP_EXECUTION_CONTEXT; DROP TABLE IF EXISTS BATCH_JOB_EXECUTION_CONTEXT; DROP TABLE IF EXISTS BATCH_STEP_EXECUTION; DROP TABLE IF EXISTS BATCH_JOB_EXECUTION_PARAMS; DROP TABLE IF EXISTS BATCH_JOB_EXECUTION; DROP TABLE IF EXISTS BATCH_JOB_INSTANCE...
-- print_table_2.sql -- based on the script by <NAME> @ Oracle -- this script uses and anonymous block, not a stored procedure -- pass the entire SQL to the script -- @print_table 'select * from dual' -- see http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:4845523000346615725 prompt set feed on SET...
<reponame>csil-byte/Labo3_TPFinal_LaComanda<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-10-2021 a las 00:47:01 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 7.3.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRA...
<reponame>loovien/webcron CREATE TABLE `t_task` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID', `group_id` int(11) NOT NULL DEFAULT '0' COMMENT '分组ID', `task_name` varchar(50) NOT NULL DEFAULT '' COMMENT '任务名称', `task_type` tinyint(4) NOT NULL DEFAULT '0...
<gh_stars>1-10 --REM INSERTING into BLOG_AUTHOR SET DEFINE OFF; INSERT INTO blog_author( email ,user_name ,passwd ,author_name ,author_seq ,bio ) VALUES ( '<EMAIL>' ,'ADMIN' ,blog_pw_hash('ADMIN','Or<PASSWORD>') ,'Administrator' ,1 ,'<p>' ||'<span style="margin-left:40px">Blog Generic Administrator</span>' || '<img alt...
insert into EGBPA_MSTR_CHECKLIST(id,checklisttype,servicetype,version,createdBy,createdDate) values(nextval('SEQ_EGBPA_MSTR_CHECKLIST'),'BPADCRDOCUMENTS', (select id from egbpa_mstr_servicetype where code='06'), 0,1,now()); insert into EGBPA_MSTR_CHKLISTDETAIL (id ,code,description,isactive,ismandatory,checklist,versi...
<reponame>akshat-jjain/HackerRank-SQL-Solutions<gh_stars>1-10 SELECT name from Employee ORDER BY name ;
<filename>tests/root/run__var/34/test.sql<gh_stars>100-1000 SET @s := ' foreach($x : 1:3) { var $x; } '; call run(@s); select 1;
<filename>plugins/pjBase/config/updates/update_2019_04_08_09_44_00.sql START TRANSACTION; SET @label := 'plugin_base_sms_test_invalid_method'; INSERT INTO `plugin_base_fields` (`id`, `key`, `type`, `label`, `source`, `modified`) VALUES (NULL, 'plugin_base_sms_test_invalid_method', 'backend', @label, 'plugin', NULL) ...
-- <editor-fold desc='meff-optimization'> alter table bw_data add column dtype VARCHAR(20) null default 'TOTAL'; alter table bw_data add column createDate TIMESTAMP WITH TIME ZONE null default CURRENT_TIMESTAMP; alter table bw_data add column updateDate TIMESTAMP...
CREATE DATABASE IF NOT EXISTS DB_CRANE_CITE; USE DB_CRANE_CITE; DROP TABLE IF EXISTS T_TOWER_CRANE; CREATE TABLE T_TOWER_CRANE ( `id` int auto_increment primary key, `tower_number` int not null comment '用于TCP包的识别', `password` char(16) not null comment '密码', `type` ...
/******************************************************************************** file-centric-snapshot-description-unique-id Assertion: The current Description snapshot file has unique ids. ********************************************************************************/ insert into qa_result (runid, assertion...
<filename>src/test/resources/com/foundationdb/sql/compiler/normalize/select-1.sql<gh_stars>100-1000 SELECT * FROM t WHERE a = 1
-- @testpoint:opengauss关键字modify(保留),作为游标名 --前置条件 drop table if exists modify_test cascade; create table modify_test(cid int,fid int); --关键字不带引号-失败 start transaction; cursor modify for select * from modify_test order by 1; close modify; end; --关键字带双引号-成功 start transaction; cursor "modify" for select * from modify_t...
create table CONTENT_STREAM ( id numeric(19,0) identity not null, CONTENT image not null, primary key (id) ); create table OBJECT_DATA ( id numeric(19,0) identity not null, path nvarchar(765) not null, versionLabel nvarchar(255), versionSeriesId nvar...
-- Drops the todolist if it exists currently -- DROP DATABASE IF EXISTS burgers_db; -- Creates the "todolist" database -- CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR(255) NOT NULL, devoured BOOLEAN NOT NULL, date DATETIME DEFAULT CURRENT...
ALTER TABLE facilities ADD autobackup tinyint(1) NOT NULL DEFAULT '0' AFTER map// ALTER TABLE facilities DROP lost_to_follow_up // ALTER TABLE facilities ADD lost_to_follow_up int(11) default 90 AFTER autobackup// ALTER TABLE facilities ADD service_hep int(11) NOT NULL DEFAULT '0' AFTER service_pep// ALTER TABLE facili...
<filename>report/missing.sql SELECT count(*), trim('"' FROM block::text )::int as block FROM (SELECT e->'log'->'height'::text as block from fnode0.missing_messages where e->'log'->'event'->4 is not null ) as s GROUP by s.block ORDER BY block ;
<reponame>AimMikel/Hotel-Management-System<gh_stars>0 START TRANSACTION; CREATE DATABASE IF NOT EXISTS `HOTEL`; USE `HOTEL`; CREATE TABLE IF NOT EXISTS `PROFILES`( `USER_ID` VARCHAR(35), `NAME` VARCHAR(100) NOT NULL, `USERNAME` VARCHAR(100) NOT NULL UNIQUE, `EMAIL` VARCHAR(100) NOT NULL UNIQUE, `...
<reponame>goldstar2154/dotd_tiers DROP FUNCTION web.tiers_v1(TEXT, TEXT, TEXT); CREATE FUNCTION web.tiers_v1 ( IN _name TEXT , IN _type TEXT , IN _type_o TEXT ) RETURNS JSON AS $$ DECLARE BEGIN RETURN (json_build_object('raids', (SELECT array_to_json( array_agg( json_buil...
# find all weather stations in a custom polygon in the North Atlantic Ocean SELECT stat.id, LEFT(stat.id, 2) AS country, stat.state, stat.name, stat.latitude, stat.longitude, inv.element, inv.firstyear, inv.lastyear FROM `bigquery-public-data.ghcn_d.ghcnd_stations` stat LEFT JOIN `bigquery-public-data.ghcn_d.ghcnd_in...
/* SQLyog Community v13.1.9 (64 bit) MySQL - 10.4.22-MariaDB : Database - db_hospital ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
<reponame>g7jpedro/Banco-de-Dados<filename>Mysql/exer.sql SELECT * FROM tipos_produto; INSERT INTO tipos_produto (descritipos_produtocao) VALUES ('notebook'); SELECT * FROM produtos; SELECT * FROM professores; SELECT * FROM pacientes;
<gh_stars>1-10  CREATE PROCEDURE [dbo].[Customers_GetByPartialCompanyName] @PartialName nvarchar(40) AS SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle], [ContactEmail], [AddressID], [Phone], [Fax] FROM Customers WHERE [CompanyName] LIKE '%' + @PartialName + '%'
<gh_stars>1-10 CREATE TABLE `sap_business_partner_supplier_partner_function_data` ( `Supplier` varchar(10) NOT NULL, `PurchasingOrganization` varchar(4) NOT NULL, `PartnerCounter` varchar(3) NOT NULL, `PartnerFunction` varchar(2) DEFAULT NULL, `Plant` v...
<reponame>aliostad/deep-learning-lang-detection<filename>data/test/sql/955ac021180852a3abf4499b71e2c8a3dab4a607reusable.sqls.sql truncate table new_mp_2 insert into new_mp_2 select attribute.id as attribute_id,new_mp.* from seed, attribute, new_mp where seed.seed_id = new_mp.seed_id && attribute.id = seed.attribute_id ...
create table test_normalization_namespace.`simple_stream_with_na__lting_into_long_names__dbt_tmp` as ( -- Final base SQL model select id, `date`, _airbyte_ab_id, _airbyte_emitted_at, CURRENT_TIMESTAMP as _airbyte_normalized_at, _airbyte_simple_strea__nto_long_names_hashid f...
-- fuzz.test -- -- execsql { CREATE TABLE t1(a) } CREATE TABLE t1(a)
<filename>e2e_samples/parking_sensors/sql/ddo_azuresqldw_dw/ddo_azuresqldw_dw/ext/External Tables/dim_time.sql CREATE EXTERNAL TABLE [ext].[dim_time] ( [dim_time_id] INT NOT NULL, [time_alt_key] INT NOT NULL, [time] VARCHAR (18) NULL, [time_30] VARCHAR (8) NOT NULL, [hour_30] TINYINT NOT NULL, ...
<filename>sql/updates/0.17/10353_01_mangos_mangos_string.sql ALTER TABLE db_version CHANGE COLUMN required_10350_02_mangos_command required_10353_01_mangos_mangos_string bit; DELETE FROM mangos_string WHERE entry IN (373, 374, 375); INSERT INTO mangos_string VALUES (373,'Response:\n%s ',NULL,NULL,NULL,NULL,NULL,NULL,...
<reponame>hackshields/Intranet<filename>bitrix/modules/tasks/install/db/mysql/uninstall.sql DROP TABLE IF EXISTS b_tasks; DROP TABLE IF EXISTS b_tasks_dependence; DROP TABLE IF EXISTS b_tasks_file; DROP TABLE IF EXISTS b_tasks_member; DROP TABLE IF EXISTS b_tasks_tag; DROP TABLE IF EXISTS b_tasks_template; DROP T...
SELECT b.title FROM book b EXCEPT SELECT b.title FROM book b , checkout_item c WHERE c.book_id=b.id UNION SELECT m.title FROM movie m EXCEPT SELECT m.title FROM movie m , checkout_item c WHERE c.book_id=m.id
<filename>Sql/nn.sql # 生活服务分类表 CREATE TABLE `o2o_category` ( `id` int(11) unsigned NOT NULL auto_increment, `name` VARCHAR(50) NOT NULL DEFAULT '', `parent_id` int(10) unsigned NOT NULL default 0, `list_order` int(8) unsigned NOT NULL default 0, `status` tinyint(1) NOT NULL default 0, `create_time` int(11) unsign...
<filename>sql/mysql/resursion-down.sql CREATE FUNCTION queryChildrenAreaInfo(areaId INT) RETURNS VARCHAR(4000) BEGIN DECLARE sTemp VARCHAR(4000); DECLARE sTempChd VARCHAR(4000); SET sTemp='$'; SET sTempChd = CAST(areaId AS CHAR); WHILE sTempChd IS NOT NULL DO SET sTemp= CONCAT(sTemp,',',sTempChd); SELECT ...
-- Insert country only if exists INSERT INTO territory.territories (level, name, shortname) SELECT 'country', 'France', 'FR' WHERE NOT EXISTS ( SELECT * FROM territory.territories WHERE name = 'France' ); -- Map regions to country INSERT INTO territory.territory_relation (parent_territory_id, child_terri...
<reponame>GreenFarmCsa/greenfarm DELETE FROM gf_finance_product WHERE finance_product_id =1111; DELETE FROM gf_user_finance WHERE user_finance_id = 2222;
-- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION ""babelfishpg_common"" UPDATE TO '1.1.0'" to load this file. \quit DROP OPERATOR FAMILY IF EXISTS sys.fixeddecimal_ops USING btree; DROP OPERATOR FAMILY IF EXISTS sys.fixeddecimal_ops USING hash; CREATE OPERATOR FAMIL...
<filename>DDL.sql create table UserData ( account_ID char(20), password varchar(32), name varchar(30) not null, preference varchar(500), /* JSON format */ primary key (account_ID) ) ENGINE=INNODB; create table Stuff ( stuff_ID int(20) NOT NULL AUTO_INCREMENT,...
<filename>setup/upgrade_2.0.0.RC3.sql REPLACE INTO `settings` (`name`, `value`) VALUES ('version', '2.0.0.RC3');
CREATE TABLE users (id INT UNSIGNED AUTO_INCREMENT NOT NULL, username VARCHAR(32) NOT NULL, password VARCHAR(32) NOT NULL, created_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB
-- Loads the test UDF's (user-defined functions) defined in -- UserDefinedTestFunctions.java, which use various data types, and with -- various numbers of arguments. The associated (DROP and) CREATE FUNCTION -- statements are in a separate file, UserDefinedTestFunctions-DDL.sql, -- which may be used by itself (as in JU...
<gh_stars>0 /****** Object: Schema [InsertNewSubject] Script Date: 03/02/2015 20:21:58 ******/ CREATE SCHEMA [InsertNewSubject] GO EXEC sys.sp_addextendedproperty @name = N'tSQLt.TestClass', @value = 1, @level0type = N'SCHEMA', @level0name = N'InsertNewSubject' GO
<gh_stars>0 --@Autor: <NAME> - <NAME> --@Fecha creación: 02/02/2021 --@Descripción: Proyecto Final - Habilitacion de la FRA --Calculo del tamaño de la FRA -- Agregar el calculo # --Tamaño de la FRA alter system set db_recovery_file_dest_size = 12G scope = both; --Archivos de la FRA alter system set db_recovery_file_...
----------------------------------------------------------------------------------- --Do not modify this file, instead use an alter proc to over-write the procedure.-- --Make sure you follow the same expected interface of parameters, and resultsets.-- -----------------------------------------------------------------...
<reponame>zachmueller/sql-project USE CompanyDB GO IF OBJECT_ID('dbo.je_headers', 'U') IS NOT NULL DROP TABLE dbo.je_headers GO CREATE TABLE dbo.je_headers ( je_header_id INT NOT NULL, date_posted DATETIME2 NOT NULL, created_by_employee_id INT NOT NULL CONSTRAINT fk_je_headers_created_by_employee_id FOREIGN KE...
/* SQLyog Professional v12.5.1 (32 bit) MySQL - 10.4.12-MariaDB : Database - tasik_fun ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CH...
-- get_bind_values.sql -- 10g+ col username format a15 col sid format 9999 col datatype_string format a15 head 'DATA TYPE' col child_nume format 999999 head 'CHILD|NUMBER' col position format 999 head 'POS' col name format a20 col value_string format a40 col bind_string format a40 col type_name format a15 set line...
<gh_stars>0 ALTER TABLE %PREFIX%fleets ADD `fleet_wanted_resource` tinyint(3) unsigned NOT NULL DEFAULT '0'; ALTER TABLE %PREFIX%fleets ADD `fleet_wanted_resource_amount` double(50,0) unsigned NOT NULL DEFAULT '0'; ALTER TABLE %PREFIX%fleets ADD `fleet_no_m_return` tinyint(1) unsigned NOT NULL DEFAULT '0'; ALTER TABLE ...
<gh_stars>1-10  CREATE PROCEDURE [internal].[get_user_info] @caller_name [internal].[adt_sname] OUTPUT, @caller_sid [internal].[adt_sid] OUTPUT, @context_name [internal].[adt_sname] OUTPUT, @context_sid [internal].[adt_sid] OUTPUT, @db_principal...
/* Navicat Premium Data Transfer Source Server : Postgres.app Source Server Type : PostgreSQL Source Server Version : 90304 Source Host : localhost Source Database : emaddons Source Schema : public Target Server Type : PostgreSQL Target Server Version : 90304 File Encod...
CREATE TABLE ${schema~}.transfer ( id serial PRIMARY KEY, txid text, act smallint, "from" text, "to" text, amount double precision, symbol text, memo text );
<filename>fullDB/guild_xp_for_level.sql /* SQLyog Professional v13.1.7 (64 bit) MySQL - 8.0.21 : Database - asc_world_new ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 *...