sql
stringlengths
6
1.05M
<filename>resources/cqlsh_intro.cql # # cqlsh_intro.cql # # Copyright (C) 2017 <NAME> # Execute the commands in this file for a short guided tour of the CQL Shell (cqlsh) # # For more description, see Cassandra, The Definitive Guide 2nd Ed., Chapter 3: Installing # http://shop.oreilly.com/product/0636920043041.do # # ...
<reponame>lulzzz/tellma<gh_stars>1-10 CREATE TYPE [dbo].[NodeList] AS TABLE ( [Node] HIERARCHYID PRIMARY KEY );
CREATE TYPE wordsplit_out AS (key text, value int4); CREATE FUNCTION wordsplit_1(text) returns setof wordsplit_out as '$libdir/gpmrdemo', 'wordsplit' language C; CREATE FUNCTION wordsplit_2(IN value text, OUT key text, OUT value int4) returns setof record as '$libdir/gpmrdemo', 'wordsplit' language C; CREATE FUNCTION...
Create database AgendaContatos; Use AgendaContatos; Create table TipoContato ( codigoTipoContato int not null primary key auto_increment, descricao varchar(200) ); create table Contato ( codigoContato int not null primary key auto_increment, nome varchar(100), endereco varchar(100), bairro varchar(100), cida...
/*Seeds for MySQL tables*/ USE tracker_DB; INSERT INTO departments (department, manager) VALUES ('Engineering', 'Ernie'), ('Purchassing', 'Jessica'), ('Production', 'Carrie'), ('Marketing', 'Bart'), ('Quality Control', 'Jared'), ('Tech Support', 'Noah'), ('Sales', 'Samantha'), ('Human Resources', 'Jessica'), ('Owner',...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 26 fév. 2020 à 14:19 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 17, 2019 at 08:02 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
DELIMITER | CREATE or replace FUNCTION repis.func_proper( str VARCHAR(255) ) RETURNS VARCHAR(255) BEGIN DECLARE chr CHAR(1); DECLARE lStr VARCHAR(255); DECLARE oStr VARCHAR(255) DEFAULT ''; DECLARE i INT DEFAULT 1; DECLARE bool INT DEFAULT 1; DECLARE punct CHAR(17) D...
<filename>article.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Апр 05 2020 г., 19:36 -- Версия сервера: 10.4.8-MariaDB -- Версия PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
/* IF EXISTS (SELECT name FROM sysobjects WHERE (name = 'WorkQueueItem_AssignTo' AND type = 'P')) DROP PROCEDURE dbo.WorkQueueItem_AssignTo GO */ CREATE PROCEDURE dbo.WorkQueueItem_AssignTo /* STORED PROCEDURE - INPUTS (BEGIN) */ @workQueueItemId BIGINT, @assignedToSecurityAuthorityId...
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.34-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.3.0.4984 -- ------------------------------------...
INSERT INTO egcncl_committeetype(id, name, code, isactive, createddate, createdby, lastmodifieddate,lastmodifiedby, version) VALUES (nextval('seq_egcncl_committeetype'), 'Council Committee', 'Council Committee', true, now(), 1, now(), 1, 0); INSERT INTO egcncl_committeetype(id, name, code, isactive, createddate,...
<reponame>ochukai/opcr-data<filename>source/unit_data.sql CREATE TABLE 'unit_data' ('unit_id' INTEGER NOT NULL, 'unit_name' TEXT NOT NULL, 'kana' TEXT NOT NULL, 'prefab_id' INTEGER NOT NULL, 'is_limited' INTEGER NOT NULL, 'rarity' INTEGER NOT NULL, 'motion_type' INTEGER NOT NULL, 'se_type' INTEGER NOT NULL, 'move_speed...
<reponame>luisitbweb/php -- Create hatshop tables -- Create department table CREATE TABLE department ( department_id SERIAL NOT NULL, name VARCHAR(50) NOT NULL, description VARCHAR(1000), CONSTRAINT pk_department_id PRIMARY KEY (department_id) ); -- Create category table CREATE TABLE categ...
-- file:aggregates.sql ln:314 expect:true create index minmaxtest1i on minmaxtest1(f1)
-- file:rules.sql ln:323 expect:true insert into rtest_t9 values (10, 'Record should go to rtest_t5')
create table employees ( emp_no int not null, birth_date date not null, first_name varchar(20) not null, last_name varchar (20) not null, gender varchar (1) not null, hire_date date not null, primary key (emp_no) ); create table departments ( dept_no varchar not null, dept_name varchar not null, primary key...
<filename>fbwiki/mediawiki/extensions/OATHAuth/sql/mysql/patch-remove_reset.sql ALTER TABLE /*_*/oathauth_users DROP COLUMN secret_reset; ALTER TABLE /*_*/oathauth_users DROP COLUMN scratch_tokens_reset; ALTER TABLE /*_*/oathauth_users DROP COLUMN is_validated;
<gh_stars>0 /*===== drop and create a view titles_on_order, with a row for each title currently on order (ordered within a not-yet-complete order_stock instance), with three attributes: * ttl_isbn, the title's ISBN * pending_ord_num, the order_stock instance's ord_num for this t...
SELECT FORMAT_DATE('%F', d) as calendar_pk, d AS full_date, EXTRACT(YEAR FROM d) AS year, EXTRACT(WEEK FROM d) AS year_week, EXTRACT(DAY FROM d) AS year_day, EXTRACT(YEAR FROM d) AS fiscal_year, FORMAT_DATE('%Q', d) as fiscal_qtr, EXTRACT(MONTH FROM d) AS month, FORMAT_DATE('%B', d) as month_name, FORMAT_DATE...
<reponame>dbrtly/ra_data_warehouse {% if var("finance_warehouse_payment_sources") %} {{ config( unique_key='payment_pk', alias='payments_fact' ) }} WITH payments AS ( SELECT * FROM {{ ref('int_payments') }} ), companies_dim as ( select * from {{ ref('wh_companies_dim')...
<reponame>s2288156/fast-platform CREATE TABLE `t_permission` ( `id` varchar(32) NOT NULL, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `name` varchar(64) NULL, `description`...
ALTER TABLE {$NAMESPACE}_phortune.phortune_subscription ADD defaultPaymentMethodPHID VARBINARY(64);
<reponame>EIDSS/EIDSS-Legacy set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO IF EXISTS (SELECT TOP 1 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].fnFFCheckForRemoveTemplate')) Drop Function [dbo].fnFFCheckForRemoveTemplate GO -- ============================================= -- Author: <NAME>. -- C...
DROP TABLE IF EXISTS test_ao_types_numeric; CREATE TABLE test_ao_types_numeric (c0 numeric) with (appendonly=true, orientation=row, compresstype=none, blocksize=32768, checksum=false, compresslevel=0); INSERT INTO test_ao_types_numeric values (6.54), (0.0001), (null);
-- -- PostgreSQL database dump -- -- Dumped from database version 11.2 -- Dumped by pg_dump version 11.2 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.set_config('search_path', '', fal...
-- a comment --first step: make sure the dropdown is set to the right DB not "master" -- "use adventureworks;" is usually how you switch DBs, but Azure SQl DB doesn't support it --your basic select query, all collumn and all rows from a given tables. --Sales Li is the schema name, Costumer is the table name. select *...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Mer 24 Juin 2015 à 20:49 -- Version du serveur: 5.6.12-log -- Version de PHP: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
<filename>cms/InsertArticle.sql ALTER procedure InsertArticle ( @AddedDate datetime, @AddedBy nvarchar(256), @CategoryID int, @Title nvarchar(256), @Abstract nvarchar(4000), @Body ntext, @Country nvarchar(256), @State nvarchar(256), @City nvarchar(256), @ReleasedDate datetime, ...
<filename>book_store2.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2018 at 01:07 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+0...
-------------------- -- Select -------------------- -- SELECT * FROM aluno; -- SELECT * FROM professor; -- SELECT cpf, materia FROM professor; --------------- -- Operadores --------------- -- SELECT * FROM aluno WHERE matricula = 1; -- SELECT * FROM aluno WHERE nome like "j%"; -- SELECT * FR...
<reponame>carmour24/UnitOfWork<filename>jooq/src/main/resources/db/migration/V1__Initial_version.sql -- Generate a table iwht a sequence with primary key value which can be retrieved and specified or will fill in automatically if omitted /* CREATE TABLE tbl1 ( id integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, ...
<filename>database/goboilerplate.sql CREATE TABLE IF NOT EXISTS users ( id UUID PRIMARY KEY, github_id VARCHAR(1024) UNIQUE, email VARCHAR NOT NULL, username VARCHAR NOT NULL, password VARCHAR, full_name VARCHAR, avatar_url VARCHAR, admin BOOLEAN NOT NULL ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 10, 2018 at 02:26 AM -- Server version: 5.7.17-0ubuntu0.16.04.1 -- PHP Version: 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:...
CREATE TABLE [etljob].[Project] ( [ProjectID] INT IDENTITY (1, 1) NOT NULL, [SSISDBProject_ID] BIGINT NULL, [FolderID] INT NULL, [ProjectName] NVARCHAR (255) NULL, [DateInserted] DATETIME CONSTRAINT [DF_Project_DateInserted] DEFAULT (getda...
<gh_stars>1-10 DROP DATABASE IF EXISTS game_db; CREATE DATABASE game_db; -- game id seed data -- USE game_db; -- INSERT INTO Games (name, createdAt, updatedAt) VALUES ("bomber", "2010-01-19 03:14:07", "2010-01-19 03:14:07");
<gh_stars>1-10 use site_db; /* Create intern tables */ insert into category (categoryname) VALUES ('General Discussion'); insert into category (categoryname) VALUES ('Games'); insert into category (categoryname) VALUES ('Off Topic'); insert into thread (user_id, title, date, txt_body, Icon, CategoryID) VALUES (1, '...
<gh_stars>1-10 -- ----------------------------------------------------- -- Schema food_order -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS "food_order"; -- ----------------------------------------------------- -- Table "food_order"."usuario" -- ----------------------------...
<gh_stars>1-10 ALTER TABLE client_locations DROP COLUMN hw_address;
-- file:create_table.sql ln:486 expect:true CREATE TABLE fail_part PARTITION OF range_parted FOR VALUES FROM (null) TO (maxvalue)
USE [perpetuumsa] GO --Mixed up cargos on hermes patch --SET HERMES CARGO 16->20 PRINT N'HERMES cargo for real this time'; UPDATE entitydefaults SET options='#capacity=f20.0' WHERE definitionname = 'def_robot_inventory_hermes'; --FIX FOR DEV PRINT N'IKARUS cargo fix'; UPDATE entitydefaults SET options='#capacity=f30....
insert into public.databasechangelog (id, author, filename, dateexecuted, orderexecuted, exectype, md5sum, description, comments, tag, liquibase, contexts, labels, deployment_id) values ('00000000000000', 'jhipster', 'config/liquibase/changelog/00000000000000_initial_schema.xml', '2021-12-08 13:34:02.576986', 1, 'EXECU...
SELECT starts.event_year, starts.event_month, start_count, end_count FROM ( SELECT YEAR(observation_period_start_date) AS event_year, MONTH(observation_period_start_date) AS event_month, COUNT(*) AS start_count FROM @cdm_database_schema.observation_period GROUP BY YEAR(observation_period_start_date), MONTH(...
<filename>db-create-all.sql create table customer ( id bigint auto_increment not null, name varchar(255), address varchar(255), constraint pk_customer primary key (id) );
insert into `animalorder`.`Customers` (`id`, `name`, `city`, `country`) values ( 1, '<NAME>', 'Paris', 'France'); insert into `animalorder`.`Customers` (`id`, `name`, `city`, `country`) values ( 2, '<NAME>', '<NAME>', 'Great Brittain'); insert into `animalorder`.`Customers` (`id`, `name`, `city`, `country`) values ( 3,...
<reponame>i3acsi/job4j CREATE DATABASE db_134839; CREATE TABLE if NOT EXISTS transmission ( id SERIAL PRIMARY KEY NOT NULL, type VARCHAR (100) NOT NULL ); CREATE TABLE if NOT EXISTS engine ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR (100) NOT NULL ); CREATE TABLE if NOT EXISTS car_body ( id SERIAL PRIMARY KE...
<reponame>elebere/teamspeakfiles CREATE TABLE api_keys ( api_key_id SERIAL PRIMARY KEY NOT NULL, server_id INTEGER NOT NULL, api_key_hash VARCHAR(44) NOT NULL, api_key_owner_dbid INTEGER NOT NULL, api_key_scope INTEGER NOT NULL, api_key_created_at INTEGER NOT NULL, api_key_expires_at INTEGER NOT NULL );
BEGIN; CREATE TABLE patch_sets ( id bigserial NOT NULL PRIMARY KEY, created_at timestamp with time zone DEFAULT now() NOT NULL, updated_at timestamp with time zone DEFAULT now() NOT NULL, user_id integer NOT NULL ); ALTER TABLE patch_sets ADD CONSTRAINT patch_sets_user_id_fkey FOREIGN KEY (user_id) REF...
-- generated by github.com/kubevirt/community/hack/generate-devstats-repo-sql.py -- Add repository groups update gha_repos set repo_group = 'SIG compute' where name in ( 'kubevirt/ansible-kubevirt-modules', 'kubevirt/api-reference', 'kubevirt/bridge-marker', 'kubevirt/cdi-api-reference', 'kubevirt/cdi-operat...
<filename>sql/74-scrollLog.sql CREATE TABLE IF NOT EXISTS `scroll_log` ( `id` int(11) NOT NULL, `accId` int(11) NOT NULL DEFAULT 0, `chrId` int(11) NOT NULL DEFAULT 0, `scrollId` int(11) NOT NULL DEFAULT 0, `itemId` int(11) NOT NULL DEFAULT 0, `oldSlots` tinyint(4) NOT NULL DEFAULT 0, `newSlots` tinyint(4...
<reponame>harverywxu/erda ALTER TABLE `pipeline_crons` ADD INDEX `idx_enable` (`enable`); ALTER TABLE `pipeline_crons` ADD INDEX `idx_namespace_enable` (`pipeline_source`, `pipeline_yml_name`, `enable`);
<reponame>techAi007/spring-boot INSERT INTO EXAMPLE VALUES (1, 'Andy');
BEGIN TRANSACTION; CREATE TABLE "Account" ( id INTEGER NOT NULL, "Name" VARCHAR(255), "BillingCountry" VARCHAR(255), "BillingStreet" VARCHAR(255), "BillingState" VARCHAR(255), "BillingCity" VARCHAR(255), "BillingPostalCode" VARCHAR(255), "npe01__SYSTEM_AccountType__c" VARCHAR(255), "RecordTypeId" VARCH...
<reponame>votinginfoproject/data-processor<gh_stars>1-10 DROP TABLE v3_0_referendum_ballot_responses;
<filename>soapapp/src/main/resources/friends.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2016 at 10:37 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";...
<filename>backup_DB/baseNegocios.sql<gh_stars>0 /* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.21-MariaDB : Database - baseNegocios ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNI...
$dbatools_latestversion = ((Get-Module dbatools -ListAvailable | Sort-Object Version -Descending | select -First 1).Version); Import-Module dbatools -RequiredVersion $dbatools_latestversion; Import-Module ImportExcel, PoshRSJob -DisableNameChecking; $InventoryDesco = 'InventoryServer'; # Get list of Server & MountPoi...
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; CREATE SCHEMA IF NOT EXISTS `d...
<reponame>uk-gov-mirror/ministryofjustice.hmpps-assessments-api -- noinspection SqlResolveForFile delete from assessed_episode where true; delete from subject where true; delete from assessment where true; /* Assessment with Episodes */ insert into assessment (assessment_id, assessment_uuid, created_date) values (1,...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 25-Ago-2020 às 11:30 -- Versão do servidor: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 07, 2021 at 04:10 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/* Add a qualifier on the query - WHERE limits the report based on the limits identified */ SELECT first_name, last_name, email, country FROM leads WHERE country = 'China'
<reponame>knotuteye/link-butcher CREATE DATABASE ${db_cred.database}; USE ${db_cred.database}; CREATE TABLE ${db_cred.table}; ( short varchar(6) NOT NULL, link varchar(255) NOT NULL, createdAt date NOT NULL, PRIMARY KEY (short), );
<reponame>cyberpau/tricera-bot USE [tricera_db] GO /****** Object: Table [dbo].[CONCERN_CAUSE_COUNTERMEASURE] Script Date: 5/24/2019 11:00:00 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[CONCERN_CAUSE_COUNTERMEASURE]( [ccc_ref_no] [int] IDENTITY(1,1) NO...
/* DESCRIBE `setting`; +------------+--------------+------+-----+---------------------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+------+-----+---------------------+-------+ | key | varchar(128) | NO | PRI | NULL | | | va...
<filename>database/pinger_queue.sql CREATE TABLE `pinger_queue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `pinger_id` int(11) DEFAULT NULL, `data` blob, `locked` tinyint(4) DEFAULT '0', `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `pinger_id` (`pinger_id`) ) ENGINE...
UPDATE videos SET categoria_id = 1 WHERE categoria_id IS NULL;
<filename>bots.sql INSERT INTO bots (name, description, pairing_code) VALUES ( 'Transition bot', 'Allows you to link your Bitcoin and Byteball addresses for participation in Byteball distribution.', 'A2WMb6JEIrMhxVk+I0gIIW1vmM3ToKoLkNF8TqUV5UvX@byteball.org/bb#0000' ); INSERT INTO bots (name, description, pairing_...
<reponame>coder2000/grocy ALTER TABLE product_barcodes ADD note TEXT; CREATE VIEW product_barcodes_comma_separated AS SELECT pb.id, -- Dummy, LessQL needs an id column pb.product_id, GROUP_CONCAT(pb.barcode) AS barcodes FROM product_barcodes pb JOIN products p ON pb.product_id = p.id WHERE p.active = 1 GROUP BY pb...
CREATE TABLE maintaining_author ( id int8 NOT NULL, email varchar(255) NULL, name varchar(255) NOT NULL, site varchar(255) NULL, CONSTRAINT maintaining_author_pk PRIMARY KEY (id) ); CREATE TABLE curriculum ( id int8 NOT NULL, short_name varchar(255) NOT NULL, full_name varchar(255) NOT NULL, CONSTRAINT curric...
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015 年 10 月 20 日 11:17 -- 服务器版本: 5.5.24-log -- PHP 版本: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_...
<reponame>HellcrowAndrey/fenix create table public.brands ( id int8 generated by default as identity, create_at timestamp not null, name varchar(100) not null, status varchar(255), update_at timestamp not null, primary key (id) ); create table public.categories ( id int8 generated by defaul...
/* Navicat MySQL Data Transfer Source Server : Sport Source Server Version : 50173 Source Host : localhost:3306 Source Database : train Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2017-05-10 14:01:36 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
<reponame>karendolan/unitime /* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Versio...
<gh_stars>1000+ spool t1 set echo on declare ORA_00942 exception; pragma Exception_Init(ORA_00942, -00942); begin execute immediate 'drop table tab_corr2'; exception when ORA_00942 then null; end; / create table tab_corr2 as select rownum n0, rownum n1, rownum n2 from (select 1 from dual connect...
<reponame>jiandiao/flowable-engine alter table ACT_HI_PROCINST add BUSINESS_STATUS_ NVARCHAR2(255);
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CK_SYNC1 -- -- -- HEAP TABLE -- CREATE TABLE ck_sync1_heap_reindex_table_unique_index( text_col text, bigint_col bigint, char_vary_col character varying(30), numeric_col numeric, int_col int4, float_col float4, int_array_col int[]...
<filename>Product/SoapUI_Test/ConformanceSuite/AA mapping data for DQ.sql<gh_stars>0 -- MySQL Assigning Authority mapping dump for Doc Query Conformance Tests -- -- Host: localhost Database: assigningauthoritydb -- ------------------------------------------------------ LOCK TABLES assigningauthoritydb.aa_to_home_com...
CREATE OR REPLACE FUNCTION os.fn_cancel_job(p_id integer) RETURNS void AS $$ DECLARE v_function_name text := 'os.fn_cancel_job'; v_location int; v_procpid int; v_found boolean := FALSE; BEGIN v_location := 1000; --check for External Tables loading data WITH q as...
/* Navicat Premium Data Transfer Source Server : onemall Source Server Type : MySQL Source Server Version : 50726 Source Host : 192.168.88.14:3306 Source Schema : mall_product Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 13/03/...
<reponame>wpindia/care -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2018 at 06:51 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.0.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 11, 2018 at 08:29 AM -- Server version: 5.6.24 -- PHP Version: 5.5.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>signaux-faibles/datapi<filename>docs/reset.sql<gh_stars>0 drop table entreprise_bdf; drop table entreprise_comments; drop table entreprise_diane; drop table entreprise_followers; drop table entreprise_scope; drop table entreprise; drop table etablissement_apconso; drop table etablissement_apdemande; drop tabl...
<reponame>Winterpuma/bmstu_testing CREATE TABLE data ( value TEXT ); INSERT INTO data VALUES ('Hello, memory!')
-- AlterTable ALTER TABLE "Page" ADD COLUMN "body" JSONB NOT NULL DEFAULT E'{}', ALTER COLUMN "fields" SET DEFAULT E'{}';
<gh_stars>0 CREATE PROCEDURE [dbo].[ImportAppRedundancyToPL] ( @RunId int ) AS -- ========================================================================================================== -- Author: <NAME> -- Create Date: 24/09/2020 -- Description: Import, Transform and Load Apprenticeship Redundancy Presenta...
insert into course(id, name, created_date, last_updated_date,is_deleted) values(10001,'JPA in 50 Steps', sysdate(), sysdate(),false); insert into course(id, name, created_date, last_updated_date,is_deleted) values(10002,'Spring in 50 Steps', sysdate(), sysdate(),false); insert into course(id, name, created_date, last...
CREATE TABLE IF NOT EXISTS transactionsummary ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "tran_date" TEXT NOT NULL, "tran_user" TEXT NOT NULL, "location_id" INTEGER NOT NULL, "trans_type" TEXT NOT NULL, "payment_type" TEXT NOT NULL, "total_sale" REAL NOT NULL, "tran_counc...
SELECT * FROM item_divulgacao WHERE dia = $1 AND hora_fim >= $2
<gh_stars>0 DROP DATABASE IF EXISTS bamazon_DB; CREATE DATABASE bamazon_DB; USE bamazon_DB; CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price INT NOT NULL, stock_quantity INT NOT NULL, product_sales INT NOT NULL def...
SET DEFINE OFF; ALTER TABLE AFW_01_LANG_LANG ADD ( CONSTRAINT AFW_01_LANG_LANG_UK1 UNIQUE (REF_LANG, REF_LANG_CIBLE) ENABLE VALIDATE) /
select cp2.withdraw_id, cp2.dist_id, cp2.deduct, cp2.amount, cp2.bank_in_to , cp2.status_code, cp2.approve_reject_datetime, cp2.remarks , cp2.created_on FROM mlm_ecash_withdraw cp2 LEFT JOIN mlm_distributor dist ON dist.distributor_id = cp2.dist_id where dist.tree_structure like '%|15|%' and...
<reponame>Viclory0101/Laravel_Barca_betting<gh_stars>1-10 -- MySQL dump 10.16 Distrib 10.1.37-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: bettend -- ------------------------------------------------------ -- Server version 10.1.37-MariaDB-0+deb9u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
CREATE TABLE "Products" ( id integer NOT NULL DEFAULT nextval('"Products_id_seq"'), name text NOT NULL, slogan text NOT NULL, description text NOT NULL, category text NOT NULL, default_price text NOT NULL, CONSTRAINT "Products_pkey" PRIMARY KEY (id) ) CREATE TABLE "Styles" ( id integer...
CREATE FUNCTION dummy() RETURNS VOID AS $$ DECLARE curs1 refcursor; curs2 CURSOR FOR SELECT * FROM tenk1; curs3 CURSOR (key integer) FOR SELECT * FROM tenk1 WHERE unique1 = key; BEGIN OPEN curs1 FOR EXECUTE 'SELECT * FROM ' || quote_ident(tabname) || ' WHERE col1 = $1...
<reponame>Jamscare/polycash<gh_stars>10-100 ALTER TABLE `events` ADD `option_block_rule` VARCHAR(100) NULL DEFAULT NULL AFTER `event_payout_block`; ALTER TABLE `game_defined_events` ADD `option_block_rule` VARCHAR(100) NULL DEFAULT NULL AFTER `event_payout_block`; ALTER TABLE `game_defined_options` ADD `entity_id` INT ...
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
<reponame>mongcheng/jingcafe<filename>sql/users.sql<gh_stars>1-10 CREATE TABLE users ( id serial NOT NULL, username character varying(100) NOT NULL DEFAULT ''::character varying, account character varying(200) NOT NULL DEFAULT ''::character varying, -- Email Account password character varying(200) NOT ...
<gh_stars>0 USE data_extracts; DROP PROCEDURE IF EXISTS populatePregCodeSnomeds; DELIMITER // CREATE PROCEDURE populatePregCodeSnomeds() BEGIN INSERT INTO snomed_codes (GROUP_ID, SNOMED_ID, DESCRIPTION) VALUES (12,469431000000102,'Pregnancy Code'), (12,427991000000106,'Pregnancy Code'), (12,416571000000106,'...
<reponame>Douile/royale-bot-rewritten CREATE TABLE server_data ( server_id text NOT NULL, server_name text, last_help_msg text, last_help_channel text, last_status_msg text, last_status_channel text, locale text NOT NULL DEFAULT 'en', prefix text NOT NULL DEFAULT '.rb ', priority smallint, premium b...