sql
stringlengths
6
1.05M
create table programs(programId integer primary key autoincrement, name varchar not null default 'default', channel integer not null default 9 check (channel >= 0 AND channel <= 15));
<gh_stars>1-10 INSERT INTO tbl_user (id, username, email, password, is_active, roles, prefered_language_id, token, password_requested_at) VALUES (1, 'superadmin', '<EMAIL>', 'TODO', 1, 'a:1:{i:0;s:9:\"ROLE_SUPER_ADMIN\";}', NULL, NULL, NULL), (2, 'teacher', '<EMAIL>', 'TODO', 1, 'a:1:{i:0;s:9:\"ROLE_TEACHER\";}', NULL...
<filename>db/patches/0820_orgtype.sql insert into organization_type (identifier) values ('city'), ('county'), ('regional'),('tribal');
insert into money_moved(influencer, identified_donees, identified_donors, amount, start_date, end_date, document_url, document_title,notes) values ('Giving Tuesday Facebook match', 'Against Malaria Foundation', NULL, 100199, '2018-11-27', '2018-11-27', 'https://2018.eagivingtuesday.org/donations', 'EA Giving Tuesday:...
INSERT INTO WRONG SQL `test2` (`id`, `col2`) VALUES (NULL, '100');
-- 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. DECLARE @TypeId INT = 1 IF NOT EXISTS (SELECT 1 ...
<reponame>tvdijen/OpenConext-attribute-aggregation ALTER TABLE aggregations_attributes ADD CONSTRAINT fk_aggregations_attributes_aggregation_id FOREIGN KEY (aggregation_id) REFERENCES aggregations (id); ALTER TABLE aggregations_attributes ADD CONSTRAINT fk_aggregations_attributes_attribute_id FOREIGN KEY (attribute...
DROP TABLE IF EXISTS `app_group`; CREATE TABLE IF NOT EXISTS `app_group` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `app_group_name` varchar(32) NOT NULL DEFAULT '' COMMENT '应用组名称', `operator_name` varchar(50) NOT NULL DEFAULT '' COMMENT '操作人姓名', `operator_email` varchar(50) NOT NULL DEFAULT...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Gazdă: 127.0.0.1 -- Timp de generare: dec. 02, 2021 la 06:22 AM -- Versiune server: 10.4.21-MariaDB -- Versiune PHP: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50505 Source Host : localhost:3306 Source Database : moza_yii2_business Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-06-12 13:14:22 */ SET FOREIGN_KEY_CHECKS=0...
--TEST: [Merge Statement] delete_clause does not work when merging in to a view. drop table if exists t1, t2; create table t1(a int, b char(10)); insert into t1 values(1, 'aaa'); insert into t1 values(2, 'bbb'); insert into t1 values(3, 'ccc'); create table t2(a int, b char(10)); insert into t2 values(1, 'AAA'); i...
<gh_stars>1-10 DO $$ BEGIN IF register_patch('AddProposalStatusUpdatedEvent.sql', 'martintrajanovski', 'Add proposal_status_updated event', '2021-03-19') THEN BEGIN ALTER TABLE proposal_events ADD COLUMN proposal_status_updated BOOLEAN DEFAULT FALSE; END; END IF; END; $$ LANGUAGE plpgsql;
-- @testpoint:增加文本搜索配置字串类型映射语法,多个词典名测试 --创建文本搜索配置 DROP TEXT SEARCH CONFIGURATION if exists english2; CREATE TEXT SEARCH CONFIGURATION english2 (parser=default); --创建simple字典 DROP TEXT SEARCH DICTIONARY IF EXISTS pg_dict; CREATE TEXT SEARCH DICTIONARY pg_dict (TEMPLATE = Simple); --再创建一个词典 DROP TEXT SEARCH DICTIONARY I...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Des 2020 pada 16.46 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
DROP DATABASE IF EXISTS pbs; CREATE DATABASE pbs; USE pbs; -- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'quotes' -- -- --- DROP TABLE IF EXISTS `quotes`; CREATE TABLE `quotes` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `id_customers` INTEGER N...
<filename>src/main/resources/db/migration/V1__CreateStudentTable.sql CREATE TABLE IF NOT EXISTS student ( student_id UUID PRIMARY KEY NOT NULL, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, email VARCHAR(100) NOT NULL UNIQUE, gender VARCHAR(6) NOT NULL CHECK ( gender= 'M...
<reponame>zhang0xf/mysql5 LOAD DATA LOCAL INFILE "absence.txt" INTO TABLE absence;
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2017 at 02:33 PM -- Server version: 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_SE...
DROP TABLE IF EXISTS Tag; CREATE TABLE Tag ( "id" INTEGER PRIMARY KEY NOT NULL, "tagtext" TEXT NOT NULL, "created" TIMESTAMP DEFAULT CURRENT_TIMESTAMP )
<reponame>greatbsky/GoMVC<gh_stars>0 /*==============================================================*/ /* DBMS name: MySQL 5.5 */ /* Created on: 20:23 2014/1/2 */ /*====================...
SELECT c.company_code, MAX(c.founder), COUNT(DISTINCT lmgr.lead_manager_code), COUNT(DISTINCT smgr.senior_manager_code), COUNT(DISTINCT mgr.manager_code), COUNT(DISTINCT ee.employee_code) FROM Company c LEFT JOIN Lead_Manager lmgr on lmgr.company_code = c.company_code LEFT JOIN Senior_Manager ...
SELECT population FROM world WHERE name = 'GERMANY' SELECT name, population FROM world WHERE name IN ('Sweden', 'Norway', 'Denmark'); SELECT name, area FROM world WHERE area BETWEEN 200000 AND 250000 SELECT yr, subject, winner FROM nobel WHERE yr = 1950 -- SELECT QUIZ FOR NOBEL TABLE SELECT winner FROM nobel WHER...
<filename>src/main/resources/db/migration/V1_2__AddResources.sql insert into api_resource (name, url) values ('USER_TRADES.GET_SOME_INCOMING', '/trades/incoming'); insert into api_resource (name, url) values ('USER_TRADES.GET_SOME_OUTGOING', '/trades/outgoing'); insert into api_resource (name, url) values ('ITEMS.GET_O...
<reponame>erisilva/cep<gh_stars>0 DROP DATABASE if exists `cep`; /*DEFINA O BANCO DE DADOS A SER CRIADO PELO SCRIPT*/ CREATE DATABASE `cep` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `cep`; -- -- Table structure for table `ac` -- DROP TABLE IF EXISTS `cep`; CREATE TABLE `cep` ( `id` bigint(20) NOT N...
<reponame>rethab/digester ALTER TABLE channels RENAME COLUMN url TO ext_id; ALTER TABLE channels ADD COLUMN verified BOOL NOT NULL DEFAULT FALSE, ADD COLUMN last_cleaned TIMESTAMP WITH TIME ZONE NULL; UPDATE channels SET ext_id = name WHERE channel_type = 'github_release'; ALTER TABLE updates ADD COLUMN ext_id VA...
 CREATE View [repo].[RepoObjectColumn_MissingSource_TypeV] As -- Select roc.RepoObjectColumn_guid , roc.RepoObject_guid , roc.RepoObjectColumn_name , roc.SysObjectColumn_name , roc.SysObjectColumn_column_id , roc.Repo_default_definition , roc.Repo_default_is_system_named , roc.Repo_default_name , ...
ALTER TABLE `nodes` CHANGE `ID` `id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0', CHANGE `prototype` `prototype` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, CHANGE `create_date` `creation_date` DATETIME NULL DEFAULT NULL , CHANGE `modify_date` `modification_date` DATETIME NULL DEF...
<gh_stars>10-100 # Attributes for Pets in Hotels for Los Angeles, CA, US USE eanprod; SELECT activepropertylist.EANHotelID,activepropertylist.Name,propertyattributelink.AttributeID, attributelist.Type,attributelist.SubType,attributelist.AttributeDesc,propertyattributelink.AppendTxt as Value FROM activepropertyli...
create table `TABLE1` ( c1 tinyint, c2 smallint, c4 int );
IF OBJECT_ID('dbo.usp_PrintDebug', 'P') IS NULL EXECUTE('CREATE PROCEDURE dbo.usp_PrintDebug AS SELECT 1') ; GO ALTER PROCEDURE dbo.usp_PrintDebug ( @variableName NVARCHAR(MAX) = '', @variableValue NVARCHAR(MAX) = '', @printMessage NVARCHAR(MAX) = '' ) /* EXECUTE dbo.usp_PrintDebug @variable...
/*etlmd_bus_domain.sql */ CREATE TABLE bus_domain ( bus_domain_id SERIAL NOT NULL, description varchar(256) NOT NULL, bus_domain_name varchar(45) NOT NULL, bus_domain_owner varchar(45) NOT NULL, PRIMARY KEY (bus_domain_id) ); /* etlmd_batch_status.sql */ CREATE TABLE batch_status ( batch_state_id INT...
<gh_stars>0 with payment_intent as ( select * from `dbt-package-testing`.`stripe`.`payment_intent` ), fields as ( select id as payment_intent_id, amount, amount_capturable, amount_received, application, application_fee_amount, canceled_at, cancellation_rea...
<reponame>DmitryBakalov/Capstone-Project-Calendar insert into BillPayments values ('Nascar', 34.5, '03/29/2021', '03/31/2021', 'bla bla', 'pink', 'false'); select * from BillPayments
-- Create keyspace create keyspace metrics_indexer_test with replication = {'class':'SimpleStrategy', 'replication_factor': 1}; use metrics_indexer_test; -- metric_names create table metric_names ( metric_key varchar, tag_set varchar, primary key ((metric_key), tag_set) ); -- tag_index create table tag_index (...
#standardSQL # flexbox and grid adoption WITH totals AS ( SELECT CAST('2021-07-01' AS DATE) AS yyyymmdd, _TABLE_SUFFIX AS client, COUNT(0) AS total FROM `httparchive.summary_pages.2021_07_01_*` GROUP BY client UNION ALL SELECT CAST('2020-08-01' AS DATE) AS yyyymmdd, _TABLE_SUFFIX A...
CREATE OR REPLACE VIEW ${myuniversity}_${mymodule}.instance_holdings_item_view AS SELECT instance.id as id, JSONB_BUILD_OBJECT( 'instanceId', instance.id, 'instance', instance.jsonb, 'holdingsRecords', (SELECT jsonb_agg(jsonb) FROM ${myuniversity}_${mymodule}.holdings_record ...
select 'customer ', count(*) from customer; select 'date_' , count(*) from date_; select 'lineorder', count(*) from lineorder; select 'part' , count(*) from part; select 'supplier' , count(*) from supplier;
SET NAMES UTF8; DROP DATABASE IF EXISTS xiaofeiniu; CREATE DATABASE xiaofeiniu CHARSET=UTF8; USE xiaofeiniu; /*管理员*/ CREATE TABLE xfn_admin( aid INT PRIMARY KEY AUTO_INCREMENT, anme VARCHAR(32) UNIQUE, apwd VARCHAR(64) ); INSERT INTO xfn_admin VALUES (NULL,'admin',PASSWORD('<PASSWORD>')), (NULL,'boss',PA...
<gh_stars>0 accept REPORT_MONTH_END_DT PROMPT 'Enter the Current REPORT_MONTH_END_DT (Ex: 31-MAY-2012) >' set array 1 set head on set feedback on set line 10000 set pagesize 10000 set echo on Declare Cursor C1 Is Select Ac_No ,Ac_Desc ,Gl_Code1 ,Gl_Co...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.1.21-MariaDB - mariadb.org binary distribution -- SO del servidor: Win32 -- HeidiSQL Versión: 9.4.0.5174 -- ------------------------------------------------...
<filename>db/fill_trip_headsign.sql -- fill in trip_headsign UPDATE trips SET trip_headsign=( SELECT stop_name FROM ( SELECT s.stop_name, st.trip_id, st.stop_id, MAX(stop_sequence) FROM stop_times st INNER JOIN stops s ON st.stop_id=s.stop_id WHERE st.trip_id=trips.trip_id ) ) WHERE trip_headsign='';
<filename>src/main/resources/db/migration/V1_0__init.sql<gh_stars>0 create table book ( id uuid primary key, iisbn varchar(13) UNIQUE not null, title varchar(100) not null, author varchar(100) not null, price numeric(5,2) not null, currency varchar(3) not null, publisher varchar(100) not nul...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Vært: 127.0.0.1 -- Genereringstid: 24. 06 2019 kl. 15:16:42 -- Serverversion: 5.6.24 -- PHP-version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.7.11 : Database - skeleton_database ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
<reponame>ALEX-PLATFORM/alex-database DROP TABLE IF EXISTS `payments_services`;
<reponame>rjarv/contact-web-api -- Table: address.address_book -- DROP TABLE address.address_book; CREATE TABLE address.address_book ( uid serial NOT NULL, first_name character varying(30), middle_name character varying(30), last_name character varying(30), address1 character varying(75), address2 charact...
<reponame>Subhajit25Mondal/Secret-Code-Generator -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 11, 2018 at 02:56 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTI...
<gh_stars>1-10 # drop DROP TABLE IF EXISTS bank_card; DROP TABLE IF EXISTS id_card; DROP TABLE IF EXISTS person_job; DROP TABLE IF EXISTS person; DROP TABLE IF EXISTS job; # person CREATE TABLE person( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(20) NOT NULL ); # bank_card CREATE TABLE bank_card( ...
select COALESCE(m_ps_imagefile,'')||COALESCE(m_content,'') AS content, m_creationdate from message where m_messageid = 687194767741;
/** * \file * \brief The AnalysisResult table and procedure unit tests. * \author <NAME> */ create procedure test._@Test@_$AnalysisResult$_Clear_ShouldEmptyTheTable as insert into sscop.AnalysisResult(ObjectName, HasPassed, FailureReason) values('unittest', 0, 'failed'); e...
<filename>phoenix-scala/sql/V4.120__apple_pay.sql create domain stripe_id_string text not null constraint valid_stripe_token check (length(value) > 0); create table apple_payments( id integer primary key, account_id integer null references accounts(id) on update restrict on delete restrict, stripe_token_id strip...
-- # -- # -- # -- # -- # -- Utilities -- # -- # -- # -- # -- # /* Generate a random string ID. * Used by the document write functions to populate the '_id' field * if it is missing. */ CREATE OR REPLACE FUNCTION bq_util_generate_id () RETURNS char(24) AS $$ BEGIN RETURN CAST(encode(gen_random_bytes(12), 'hex') as ...
# --- !Ups SET datestyle = "ISO, MDY";; INSERT INTO roles VALUES (1, 'LGU', '{1}'), (2, 'OCD', '{3, 5}'), (3, 'OP', '{5}'), (4, 'DPWH', '{1, 2, 3, 4, 5}'), (5, 'DBM', '{1, 5, 6}'), (6, 'NGA', '{1, 4}');; INSERT INTO gov_units VALUES (DEFAULT, 'Legacy Data', null, 1), (DEFAULT, 'Office...
<filename>movie_finder-master/break tables/insert_data_film_director.sql INSERT INTO movie_finder.film_director (`person_id`, `film_id`) VALUES ('129', '1'), ('130','2'), ('131','3'), ('132','3'), ('132','4'), ('130','5'), ('133','6'), ('135','7');
<reponame>chuxiongGitHub/resty-demo INSERT INTO sec_permission VALUES (1,'订单','*','P_ORDER','/api/v1.0/orders/**','订单访问权限',0,'2015-04-20 16:00:38',NULL,NULL),(2,'销售','*','P_SALE','/api/v1.0/sales/**','销售访问权限',0,'2015-04-20 16:00:38',NULL,NULL),(3,'财务','*','P_FINANCE','/api/v1.0/finances/**','财务访问权限',0,'2015-04-20 16:00...
create TRIGGER dbo.[TableTriggerWithUnusedVariable] ON dbo.Table1 after insert as declare @A int -- @A is unused. This should be flagged as a problem
<filename>tests/expected/sqls/st_union2.sql drop table if exists test_table; create table test_table (x_min float, y_min float, x_max float, y_max float); insert into test_table values (10.1, 91.9, 19.7, 98.3), (16.1, 93.3, 16.6, 94.0), (11.0, 88.3, 18.7, 98.2), (13.9, 82.2, 19.1, 83.4), (12.0, 81.5, 16.2, 90.6), (10....
<reponame>Hamzaelkhatri/ft_inception<filename>src/mariadb/wordpress.sql<gh_stars>1-10 -- MySQL dump 10.19 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: wordp -- ------------------------------------------------------ -- Server version 10.3.31-MariaDB-0+deb10u1 /*!40101 SET @...
<reponame>b-tapia-morales/cuidamed SELECT * FROM residence.province;
<gh_stars>10-100 CREATE TABLE `sys_log_info` ( `id` varchar(64) NOT NULL COMMENT '主键', `level` varchar(255) DEFAULT NULL COMMENT '级别', `method` varchar(255) NOT NULL COMMENT '方法名', `args` varchar(255) NOT NULL COMMENT '参数', `user_id` varchar(64) DEFAULT NULL COMMENT '操作人id', `user_name` varchar(64) DEFAULT ...
# # Table structure for table 'tt_content' # CREATE TABLE tt_content ( bullets_type tinyint(3) unsigned DEFAULT '0' NOT NULL, uploads_description tinyint(1) unsigned DEFAULT '0' NOT NULL, uploads_type tinyint(3) unsigned DEFAULT '0' NOT NULL, assets int(11) unsigned DEFAULT '0' NOT NULL, );
<reponame>overwilli/newspazios2<filename>scripts/script.sql -- CLIENTES -- ALTER TABLE `a2_clientes` ADD estado ENUM('ACTIVO','PENDIENTE','ELIMINADO') NULL; UPDATE `a2_clientes` SET estado='ACTIVO'; -- INMUEBLES -- ALTER TABLE `a2_noticias` ADD `luz` BOOLEAN NULL DEFAULT FALSE ; ALTER TABLE `a2_noticias` ADD `gas` BOO...
<reponame>shoupn/npgsqlDotnet select amount, payment_date, date_part('quarter' , payment_date) as quarter, date_part('year', payment_date) as year from payment where date_part('year', payment_date) = 2007;
use businesstemplate; DELIMITER // CREATE PROCEDURE `businesstemplate`.`usp_cartitem_GetCartCount` ( IN paramCartId INT ) BEGIN SELECT COUNT(*) AS 'NumberOfItems' FROM `cartitem` WHERE `cartitem`.`cartId` = paramCartId; END // DELIMITER ;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Ноя 14 2017 г., 10:46 -- Версия сервера: 5.7.20-0ubuntu0.16.04.1 -- Версия PHP: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET...
<reponame>felipewind/studying-quickfixj CREATE TABLE sessions ( beginstring CHAR(8) NOT NULL, sendercompid VARCHAR(64) NOT NULL, sendersubid VARCHAR(64) NOT NULL, senderlocid VARCHAR(64) NOT NULL, targetcompid VARCHAR(64) NOT NULL, targetsubid VARCHAR(64) NOT NULL, targetlocid VARCHAR(64) NOT NULL,...
WITH customer AS ( SELECT * FROM {{ ref('stg_customer') }} ), orders AS ( SELECT * FROM {{ ref('stg_orders') }} ), state_map AS ( SELECT * FROM {{ ref('stg_state') }} ), FINAL AS ( SELECT customer.customer_unique_id, orders.order_id, CASE orders.order_status ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 18, 2021 at 11:37 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<reponame>MichellRPS/curso_php7_profissional SELECT MAX(precounitario) AS maximo FROM produtos
DROP TABLE IF EXISTS public.game_covers; CREATE TABLE public.game_covers ( id integer primary key not null, game_id integer not null, alpha_channel boolean, animated boolean, checksum character varying, height integer, width integer, image_id character varying, url character varying ); alter table game_cover...
/* SQLyog Community v13.1.7 (64 bit) MySQL - 10.4.21-MariaDB : Database - admin_laravel ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_C...
DROP DATABASE IF EXISTS moviedb; CREATE DATABASE moviedb; USE moviedb; DROP TABLE IF EXISTS movies; CREATE TABLE movies ( id VARCHAR(10) NOT NULL, title VARCHAR(100) NOT NULL, year INTEGER NOT NULL, director VARCHAR(100) NOT NULL, PRIMARY KEY (id), FULLTEXT (title) ); DROP TABLE IF EXISTS star...
INSERT INTO Users (name, birthday, biography, cep, street, num, neighborhood, city, state, phone) VALUES ('Carlos', '1992-07-04', ' Say something 1', '13481353', '<NAME>','93', 'Conjunto Residencial V<NAME>', 'Limeira', 'SP', '34452078'), ('Fabiana', '1989-11-21', ' Say something 2', '13480664', 'Avenida Comendador ...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 14, 2018 lúc 06:39 PM -- Phiên bản máy phục vụ: 10.1.26-MariaDB -- Phiên bản PHP: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
CREATE TABLE `company_info` ( id int auto_increment not null, `company_id` int(15) NOT NULL, `company_name` varchar(100) NOT NULL, `company_type` varchar(50) NOT NULL, `mobile` int(20) NOT NULL, `email` varchar(50) NOT NULL, `address` varchar(200) NOT NULL, `country` varchar(50) NOT NULL, `telephone` int(30) N...
<reponame>hima1993/Manudam-Pawura<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 21, 2018 at 03:12 PM -- Server version: 5.7.18-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>1-10 CREATE TABLE irCMS_modules_irRating_settings ( creatorGroup text DEFAULT 'irRating'::text, creatorRole text DEFAULT 'Editor'::text, adminGroup text DEFAULT 'irRating'::text, adminRole text DEFAULT 'Admin'::text ); CREATE TABLE irCMS_modules_irRating_type ( typeId ser...
<reponame>BBGONE/TaskBroker USE [testDB] GO CREATE SCHEMA [PPS] GO CREATE SCHEMA [SSSB] GO CREATE TYPE [PPS].[UT_Parameter] AS TABLE( [paramID] [int] IDENTITY(1,1) NOT NULL, [name] [nvarchar](100) NOT NULL, [value] [nvarchar](max) NOT NULL, PRIMARY KEY CLUSTERED ( [paramID] ASC )WITH (IGNORE_DUP_KEY = OFF) ) GO S...
SELECT COUNT(CovidCaseKey) as count_value FROM {{ ref('CovidCase') }} HAVING NOT(COUNT(CovidCaseKey) > 0)
/* Following DML SQL commands will help you to populate the physical database which is being created for managing the employee's data on a DBMS supporting posgres. */ /* Populating Education table */ INSERT into Education(edu_level) SELECT DISTINCT education_lvl FROM proj_stg; /* Populating Employe...
CREATE TABLE IF NOT EXISTS Country ( IdCountry INTEGER PRIMARY KEY NOT NULL, Name VARCHAR(20) NOT NULL ); CREATE TABLE IF NOT EXISTS State ( IdCountry INTEGER NOT NULL, IdState INTEGER PRIMARY KEY NOT NULL, Name VARCHAR(20) NOT NULL, FOREIGN KEY (IdCountry) REFERENCES Country (IdCountry...
<gh_stars>1-10 insert into singer (first_name, last_name, birth_date) values ('John', 'Mayer', '1977-10-16'); insert into singer (first_name, last_name, birth_date) values ('Eric', 'Clapton', '1945-03-30'); insert into singer (first_name, last_name, birth_date) values ('John', 'Butler', '1975-04-01'); insert into singe...
<reponame>goodtocode/Entities -------------------------------------------------------------- -- RecordState - Global data to all products -------------------------------------------------------------- -- RecordState MERGE INTO [Entity].[RecordState] AS Target USING (VALUES (-1, N'00000000-0000-0000-0000-000000000000'...
-- Revert ggircs-portal:database_functions/verify_function_not_present from pg BEGIN; drop function ggircs_portal_private.verify_function_not_present(text); COMMIT;
<reponame>lamtrhieu/flowable-engine update ACT_ID_PROPERTY set VALUE_ = '6.3.1.0' where NAME_ = 'schema.version'; ALTER TABLE ACT_FO_FORM_DEFINITION DROP COLUMN PARENT_DEPLOYMENT_ID_; INSERT INTO act_dmn_databasechangelog (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CON...
<filename>Projects Manager/Backend/resources/DatabaseFiles/DBModel.sql CREATE TYPE IssueState AS ENUM ('open', 'closed', 'archived'); CREATE TYPE IssueLabel AS ENUM ('defect','new_functionality','exploration'); CREATE TABLE Project ( name varchar(255), description varchar(255), PRIMARY KEY(name) ); -- N:N associat...
<filename>migration/20180619-lanes-have-no-media-type.sql -- The lanes.media column is no longer set by default -- the same lanes are -- present for both ebooks and audiobooks, and an EntryPoint is used to -- filter them. -- -- We're not removing lanes.media altogether because it might be useful -- as a way of dividing...
<reponame>qiuhere/Bench<filename>core/src/main/java/site/ycsb/data_gen/TPC_DS_DataGen/v2.8.0rc4/tests/dm_cp.sql<gh_stars>100-1000 SET SERVEROUTPUT ON; DECLARE max_sk NUMBER; BEGIN FOR cp_rec IN (SELECT CP_CATALOG_PAGE_ID ,CP_START_DATE_SK ,CP_END_DATE_SK ...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-04-2020 a las 17:07:18 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
#设计数据库syt set names utf8; drop database if exists syt; create database syt charset=utf8; #创建数据库syt use syt; create table dy_50( #创建列表dy_50 did int primary key auto_increment, #电影编号 img varchar(64), ...
<filename>Database/test_db2.sql<gh_stars>0 CREATE TABLE `csc3170`.`orders` ( `orderID` INT NOT NULL, `custID` INT NOT NULL, `sellerID` INT NOT NULL, `time` DATETIME NULL, `address` VARCHAR(50) NULL, `status` INT NULL, PRIMARY KEY (`orderID`)); CREATE TABLE `csc3170`.`order_item` ( `orderID` I...
<gh_stars>0 CREATE FUNCTION [dbo].[ufn_sqlwatch_get_sql_version]() RETURNS smallint with schemabinding AS BEGIN declare @return smallint, --ProductMajorVersion is only availabl since 2012 but its quicker to parse as it returns simple number: @ProductMajorVersion tinyint = convert(tinyint,SE...
CREATE FUNCTION ufn_IsWordComprised(@setOfLetters NVARCHAR(50), @word NVARCHAR(50)) RETURNS BIT BEGIN DECLARE @count INT = 1; WHILE (@count <= LEN(@word)) BEGIN DECLARE @currentLetter CHAR(1) = SUBSTRING(@word, @count, 1) IF(CHARINDEX(@currentLetter, @setOfLetters) = 0) RETURN 0; SET @count += 1; ...
<reponame>Satur0x/raid-sl -- This file should undo anything in `up.sql` DROP TABLE signup_board_channels; ALTER TABLE raids DROP COLUMN board_message_id;
CREATE TABLE [SEIDR].[BatchProfile] ( [BatchProfileID] INT IDENTITY (1, 1) NOT NULL, [Description] VARCHAR (160) NULL, [BatchTypeCode] VARCHAR (5) NOT NULL, [ThreadID] TINYINT NULL, [DefaultPriority] TINYINT NULL, [InputFolder] V...
<filename>oracle/statistics/perfstat/log_ddl_t1.sql<gh_stars>1-10 REM SCRIPT REM log_ddl_t1.sql REM TITLE REM DDL Event Log REM HINT REM DDL Event Log REM # Script Description: REM ===================== REM * "What changed in the Database?" REM * Using Oracle's event trigger functionality,...
<filename>src/Freedom/Stored_Procedures/pr_UpdateUserPassword.sql<gh_stars>1-10 DELIMITER // CREATE OR REPLACE PROCEDURE pr_UpdateUserPassword(IN $userId VARCHAR(36), IN $encryptedPassword VARCHAR(255)) BEGIN UPDATE tb_User SET EncryptedPassword = $encryptedPas...
<filename>0x0D-SQL_introduction/2-remove_database.sql -- deletes the database hbtn_0c_0 in your MySQL server. -- If the database hbtn_0c_0 doesn't exist, your script should not fail -- You are not allowed to use the SELECT or SHOW statements DROP DATABASE IF EXISTS hbtn_0c_0;
-- Verify seattleflu/schema:receiving/clinical/indexes/processing-log on pg begin; rollback;
-- Insert any Form460FilingVersion as a FilingAction -- if filing_id/amend_id combo not in already in table INSERT INTO opencivicdata_filingaction ( id, filing_id, classification, description, date, supersedes_prior_versions, is_current, created_at, updated_at, extras, locke...