sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 24, 2018 at 01:44 PM -- Server version: 5.5.57-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
alter database set standby database to maximize performance; alter database set standby database to maximize availability; alter database set standby database to maximize protection; alter database recover managed standby database using current logfile disconnect; alter database recover managed standby database cancel...
<gh_stars>0 SELECT 'John' AS firstname, 'Doe' AS lastname
<reponame>IftekherAhmed/InterNews_Codeigniter_Application -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 01, 2020 at 03:19 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET ti...
<reponame>catstiger/catstiger-websecure<gh_stars>0 drop table if exists resources; drop table if exists roles; drop table if exists users; drop table if exists roles_resources; drop table if exists users_roles; create table resources( descn varchar(100), url varchar(120) not null unique, parent_id bigint, id bigint pr...
CREATE TABLE IF NOT EXISTS `warbadge`.`handles` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `badge_mac` VARCHAR(45) UNIQUE NOT NULL, `handle` VARCHAR(45) UNIQUE NOT NULL, PRIMARY KEY (`id`));
<reponame>markddrake/XFILES /* ================================================ * Oracle XFiles Demonstration. * * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documen...
<reponame>Sourabh333/Hacktoberfest2021-2 select CONCAT(Name,'(',SUBSTRING(Occupation,1,1),')') from Occupations Order by Name; select CONCAT("There are a total of ",count(occupation)," ",LOWER(occupation),"s.") from Occupations group by occupation order by count(occupation);
<filename>conf/data/users.sql INSERT INTO webshop.user (id, firstname, email, password, lastname, done, due_date) VALUES (1, 'user1', '<EMAIL>', '<PASSWORD>', 'achternaam', 1, null); INSERT INTO webshop.user (id, firstname, email, password, lastname, done, due_date) VALUES (2, 'user2', '<EMAIL>', '<PASSWORD>', 'achtern...
SELECT * FROM customers WHERE name LIKE 't%';
-- apply changes alter table ic.patient_disposition drop constraint if exists ck_patient_disposition_diagnosis; alter table ic.patient_disposition add constraint ck_patient_disposition_diagnosis check ( diagnosis in ('100','0','6','4','3','1','11','5','7','2','9','10','8','-1')); alter table ic.patient_disposition drop...
<reponame>viswaratha12/dbwarden /****** Object: StoredProcedure [dbo].[ProcessWaitingSpecialProcJobs] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE ProcessWaitingSpecialProcJobs /**************************************************** ** ** Desc: Examines jobs in T_Analysis_Job that...
<filename>Transgression-One-Stop/crime_portal.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 17, 2018 at 04:19 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANS...
use xbs; TRUNCATE TABLE address; TRUNCATE TABLE adm_task_template_header; TRUNCATE TABLE adm_task_template_line; TRUNCATE TABLE adm_task_type; TRUNCATE TABLE am_asset; TRUNCATE TABLE am_wo_bom; TRUNCATE TABLE am_wo_header; TRUNCATE TABLE am_wo_routing_detail; TRUNCATE TABLE am_wo_routing_line; TRUNCATE TABLE ap_payable...
create or replace function bs_blob_delete_trigger() returns trigger as $BODY$ declare result int; begin select lo_unlink(old.file_oid) into result; return new; end; $BODY$ language plpgsql volatile; -- create trigger tgr_binary_objects_delete -- before delete -- on binary_objects -- for each row -- execute pr...
-- @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_oriented_table=on; \echo --end_ignore DROP TABLE IF EXISTS mpp21090_dropcol_splitdefpt_addcol_dml_float; CR...
-- [er]create vclass using DEFAULT and not null keyword and shared create CLASS snack (serving_hours string); create vclass vsnack class attribute (meal_type string DEFAULT 'a' NOT NULL) (serving_hours string SHARED 'a') as select serving_hours from snack; drop vsnack; drop snack;
DROP TABLE clients CASCADE; DROP TABLE airports CASCADE; DROP TABLE flights CASCADE; DROP TABLE tickets CASCADE; CREATE TYPE ticket_class AS ENUM ('economy', 'business', 'first_class'); CREATE TYPE ticket_type AS ENUM ( 'W', 'S', 'B', 'K', 'L', 'M', 'N', 'V', 'G', 'J', 'C', 'D', 'P', 'F', 'A' ); CREATE TABLE I...
<gh_stars>0 DROP TABLE IF EXISTS runs; DROP TABLE IF EXISTS member; DROP TABLE IF EXISTS competes_on; DROP TABLE IF EXISTS course; DROP TABLE IF EXISTS competition; DROP TABLE IF EXISTS meet; DROP TABLE IF EXISTS age_group; DROP TABLE IF EXISTS location; DROP TABLE IF EXISTS club; DROP SEQUENCE IF EXISTS member_mem_id...
DROP TABLE [dbo].[AspNetUserClaims] DROP TABLE [dbo].[AspNetUserLogins] DROP TABLE [dbo].[AspNetUserRoles] DROP TABLE [dbo].[AspNetUsers] DROP TABLE [dbo].[AspNetRoles]
INSERT INTO ACARA VALUES ('4638997388','<NAME> PMI','<NAME>','2018/2/2','2018/2/3',TRUE), ('7776022540','<NAME>','<NAME>','2018/6/27','2018/7/7',TRUE), ('380830473','Talk Show','Diskusi Artis','2018/11/29','2018/11/30',FALSE), ('7450506765','Senam Bersama','Senam','2018/11/7','2018/11/7',TRUE), ('2526896136','<NAME>',...
INSERT INTO items (isactive, name) VALUES (1, 'Item 1'); INSERT INTO items (isactive, name, image) VALUES (1, 'Item 2', 'test-image-001.jpg'); INSERT INTO items (isactive, name) VALUES (0, 'Item 3'); INSERT INTO items (isactive, name, image) VALUES (1, 'Item 4', 'test-image-002.jpg'); INSERT INTO items (isactive, name)...
CREATE TABLE "CARS"."SUPPLIER_FUELS" ( "ID_BRAND" NUMBER, "SUPPLIER_NAME" VARCHAR2(100), "FUEL_BRAND" VARCHAR2(100), "FUEL_NAME" NVARCHAR2(50), CONSTRAINT "SUPPLIER_FUELS_PK" PRIMARY KEY ("ID_BRAND") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 M...
create or replace function delUpItemTriggerFunc() returns trigger as $$ begin if(new.i_item_sk is not NULL) then --this means updates to item table happened insert into logTable values ('logging updation to item table', current_timestamp); return new; end if; --Triggered due to a deletion in the item ...
<reponame>evdhiggins/pg-structure WITH indexes AS ( SELECT ns.nspname AS "tableSchema", t.relname AS "tableName", a.attname AS "columnName", i.relname AS "indexName", ix.indisunique AS "isUnique", ix.indisprimary AS "isPrimaryKey", ix.indisexclusion AS "isExclusion", ( SELECT ...
<filename>src/test/resources/sql/drop_table/b5bb9fa5.sql -- file:create_table.sql ln:518 expect:true DROP TABLE oids_parted, part_forced_oids
SELECT ims.condition_concept_id, c.concept_name, max(ims.evidence_exists) as evidence_exists FROM ( -- Where children of the ingredient concept are explicitly included {@condition_concept_desc != ''} ? { SELECT ms.condition_concept_id, max(ms.evidence_exists) as evidence_exists FROM @cem_schema....
<reponame>endeavourhealth-discovery/DiscoveryQueryLibrary<gh_stars>0 USE data_extracts; -- ahui 8/2/2020 DROP PROCEDURE IF EXISTS gh2execute5; DELIMITER // CREATE PROCEDURE gh2execute5() BEGIN -- Measurements -- 1 = latest -- 0 = earliest -- 3 = +/- 6 month window -- Age in years -- UPDATE cohort_gh2 d -- JOIN ...
WHENEVER SQLERROR EXIT SQL.SQLCODE SET DEFINE ON GRANT EXECUTE ON DBMS_CRYPTO TO &_vUsername -- To encrypt user Keys / GRANT SELECT ON V_$SESSION TO &_vUsername -- For remembering user login data (machine name, os user, terminal, etc) / BEGIN $IF (DBMS_DB_VERSION.VERSION=12 AND DBMS_DB_VERSION.RELEASE=2) OR DBM...
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Waktu pembuatan: 17. Januari 2013 jam 06:43 -- Versi Server: 5.5.16 -- Versi PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
library CMS146 version '2' using QUICK include CMSAll version '1' called foo valueset "Acute Pharyngitis": '2.16.840.1.113883.3.464.1003.102.12.1011' parameter MeasurementPeriod Interval<DateTime> context Patient define InDemographic: AgeInYearsAt(start of MeasurementPeriod) >= 2 and AgeInYearsAt(start of Mea...
-- Copyright 2020 MSolution.IO -- -- 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 ...
/*Last Article DO KEY*/ select mla_delivery_items_1.article_id, max(mla_delivery_items_1.created_on) as do_last_change, concat(mla_delivery_items_1.article_id,'+++',max(mla_delivery_items_1.created_on)) as article_last_do_key from ( /*Delivery Items Table*/ select mla_delivery_items.*, concat(mla_purchas...
<gh_stars>0 SELECT n.nspname AS "Schema", p.proname AS "Name", pg_catalog.pg_get_function_result(p.oid) AS "Result data type", pg_catalog.pg_get_function_arguments(p.oid) AS "Argument data types", CASE WHEN p.proisagg THEN 'agg' WHEN p.proiswindow THEN 'window' WHEN p.prorett...
<reponame>institutoreditus/reditus<filename>prisma/migrations/20210417211920_add_contribution_origin/migration.sql -- CreateEnum CREATE TYPE "contribution_origin" AS ENUM ('online', 'pgc'); -- AlterTable ALTER TABLE "contributions" ADD COLUMN "origin" "contribution_origin" NOT NULL DEFAULT E'online';
<reponame>demidenko05/beige-acc select 12 as SRTY, DAT, 'INVENTORY' as ACDB, ITMCT.NME as SADNM, ITMCT.IID as SADID, 1004 as SADTY, SUM(ITADLN.TOT) as DEBT, null as ACCR, null as SACNM, null as SACID, null as SACTY, 0.0 as CRED from ITADLN join ITM on ITM.IID=ITADLN.ITM join ITMCT on ITMCT.IID=ITM.CAT join ITMADD on IT...
INSERT INTO departments(name) VALUES ("Engineering"); INSERT INTO departments(name) VALUES ("Sales"); INSERT INTO departments(name) VALUES ("Finance"); INSERT INTO roles(title, salary, department_id) VALUES ("Lead Engineer", 120000.00, 1); INSERT INTO roles(title, salary, department_id) VALUES ("Software Engineer",...
INSERT INTO department (dept_name) VALUES ("Product/Dev"), ("Marketing"), ("Legal"), ("Human Resources"), ("Sales"); INSERT INTO role (title, salary, department_id) VALUES ("Sales Lead", 100000, 5), ("Sales Representative", 75000, 5), ("Sales Manager", 175000, 5), ("Dev Manager", 175000, 1), ("Senior Developer", 1300...
USE `ruk`; INSERT INTO `cards`(`card_number`, `card_status`, `bank_account_id`) SELECT REVERSE(`full_name`), (SELECT `card_status` FROM `cards` WHERE `id` = 1), `id` FROM `clients` WHERE `id` BETWEEN 191 AND 200;
<filename>databases/mysql/projeto4/questions.sql USE db_ecommerce; CREATE TABLE tb_products ( id_produto INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(150) NOT NULL, price INT, delivery FLOAT NOT NULL ); ALTER TABLE tb_products CHANGE price unit_value INT NOT NULL; /* * RELATORIO GERAL DE CLIENTES * * RELATO...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 16, 2020 at 05:31 PM -- Server version: 5.6.49-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
set search_path to mimic3; --- get the feature out base on the required time interval DROP FUNCTION get_pvt_sofa(bigint,integer); -- offline temporary
CREATE DATABASE GridServiceDb; GO USE GridServiceDb; CREATE TABLE GRID ( GridId int not null primary key identity(1,1) ) GO
<gh_stars>1-10 -- confusing condition added to the HAVING clause SELECT CategoryName , SubcategoryName , COUNT(*) as RecordCount FROM #src GROUP BY CategoryName, SubcategoryName HAVING COUNT(*) >= 5 AND CategoryName != 'Clothing' -- clearly writen query filtering records on right places SELECT CategoryName ,...
CREATE TABLE IF NOT EXISTS `bans` ( `id` int(30) NOT NULL AUTO_INCREMENT, `ip` varchar(255) COLLATE latin1_general_ci NOT NULL, `time` int(30) NOT NULL, `expires` int(30) NOT NULL, `exception` int(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- If the DisasterEmergencyFundCode element has a valid COVID-19 related code and TOA is blank, then -- GrossOutlayByAward_CPE cannot be blank. SELECT row_number, disaster_emergency_fund_code, transaction_obligated_amou, gross_outlay_amount_by_awa_cpe, display_tas AS "uniqueid_TAS", disaster_eme...
DELIMITER / ALTER TABLE PERSON_SIGNATURE_MODULE ADD CONSTRAINT FK_PERSON_SIGNATURE_ID FOREIGN KEY (PERSON_SIGNATURE_ID) REFERENCES PERSON_SIGNATURE (PERSON_SIGNATURE_ID) / DELIMITER ;
create table car ( id BIGSERIAL NOT NULL PRIMARY KEY, make VARCHAR(100) NOT NULL, model VARCHAR(100) NOT NULL, price NUMERIC(19,2) NOT NULL ); create table person ( id BIGSERIAL NOT NULL PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, email VARCHAR(150), gender VARCHAR(7) NOT NUL...
ALTER TABLE "selfservice_login_requests" ADD COLUMN "forced" bool NOT NULL DEFAULT 'false';
<reponame>remkolems/masimo-datacapture flush privileges; create DATABASE grafana; create user 'grafanauser'@'localhost' identified by 'aoL7iJ23ayX3FMrveS'; GRANT ALL PRIVILEGES ON grafana. * TO 'grafanauser'@'localhost' identified by 'aoL7iJ23ayX3FMrveS'; flush privileges;
<filename>sql-migrations/all/2021-01-11T21:02:22Z-add-views.sql -- CREATE VIEW vista AS SELECT 'Hello World'; CREATE OR REPLACE VIEW all_employee_names (employee_name) AS (SELECT employee_name FROM employee);
<reponame>Zhaojia2019/cubrid-testcases -- successful result SELECT elt(2, 1); -- successful result SELECT field(NULL, 'a', 'b', 'c'); -- will throw code exception when use above two together. SELECT elt(2, 1), field(NULL, 'a', 'b', 'c');
-- @testpoint: list分区个数测试,使用values in --step1:分区个数等于64;expect:成功 drop table if exists tb_plugin0011; create table tb_plugin0011(p_id int,p_name varchar,p_age int) partition by list(p_id) (partition p0 values in(0)); --step2:创建存储过程;expect:成功 create or replace procedure pro_plugin0011() as alter_str varchar; begin f...
INSERT INTO country (id, name) VALUES (1,'Brazil'); INSERT INTO championship (id, name, year, country_id) VALUES (1,'Campeonato Brasileiro',2020,1); INSERT INTO team (id, name, country_id) VALUES (1,'Cruzeiro',1); INSERT INTO team (id, name, country_id) VALUES (2,'Atlético-MG',1); INSERT INTO games (id, date, day, mont...
------------------------------------------------------------------------------- -- -- Script: lock_element_lwm.sql -- Purpose: to find the low-water mark of the lock element free list -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- ------------------------------------------------------------------------------- ...
<reponame>SilkLee/edu-server CREATE TABLE `chapter` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `video_id` int(11) DEFAULT NULL COMMENT '视频主键', `title` varchar(128) DEFAULT NULL COMMENT '章节名称', `ordered` int(11) DEFAULT NULL COMMENT '章节顺序', `create_time` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY ...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2018 at 02:26 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>joshtantan/bootcampx SELECT name, id, cohort_id FROM students WHERE email IS NULL OR phone IS NULL;
<filename>db/init.sql -- NOTE: IF TABLE'S SCHEMA IS CHANGED, REMEMBER TO UPDATE '../helpers/dbUtils.js' --install extension uuid generator CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE IF NOT EXISTS account ( id UUID PRIMARY KEY NOT NULL DEFAULT uuid_generate_v4(), username VARCHAR(20) NOT NULL UNIQUE, ...
<filename>ssisUnitLearningDB/Tables/meta.SourceSystems.sql CREATE TABLE meta.SourceSystems ( Id TINYINT NOT NULL CONSTRAINT PK_meta_SourceSystems PRIMARY KEY, Name VARCHAR(50) NULL )
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 14, 2020 at 09:19 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>1000+ -- 2017-11-22T16:07:14.016 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,543481,0,'Pharmaproductpermlaw52',TO_TIMEST...
<gh_stars>0 SELECT reference_name, start, END, bin, reference_bases, alternate_bases, case_count, control_count, allele_count, ref_count, alt_count, case_ref_count, case_alt_count, control_ref_count, control_alt_count, ROUND( POW(case_ref_count - (ref_count/allele_count)*case_count, 2)/((ref_count/allele_count)*case_co...
CREATE TABLE [IQ].[Invite] ( [Id] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [DF_Invite_Id] DEFAULT (NEWSEQUENTIALID()), [DisplayName] NVARCHAR(256) NULL, [EmailAddress] NVARCHAR(256) NULL, [TenantId] UNIQUEIDENTIFIER NOT NULL, [InviteHash] NVARCHAR(MAX) NULL, [Created] DATETIMEOFFSET NOT NULL CO...
; //~ error: unexpected token ";"
SELECT DATE(_created, '-2 day') FROM preview WHERE _batch = 0 SELECT * FROM preview LIMIT 10 -- DELETE FROM preview WHERE _batch != 0 -- SELECT COUNT(_batch) FROM preview GROUP BY _batch; -- UPDATE preview -- SET _created = DATE(_created, '-2 day') -- WHERE _batch = 0
IF (EXISTS (SELECT * FROM sys.all_columns WHERE name = 'MilestoneComments')) BEGIN EXEC sp_rename 'PatientMilestone.MilestoneComments', 'Comment', 'COLUMN'; END IF (EXISTS (SELECT * FROM sys.all_columns WHERE name = 'MilestoneAssessedId')) BEGIN EXEC sp_rename 'PatientMilestone.MilestoneAssessedId', 'TypeAssess...
<filename>sql/jira/jira_consistency_checker_attachments.sql /* XXX-#### can not be opened. The issue may have been deleted or you might not have permission to see the issue. https://confluence.atlassian.com/jirakb/issue-can-not-be-opened-error-when-trying-to-select-it-in-the-issue-navigator-376832648.html */ se...
-- Copyright 2021 Google LLC -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
DELETE FROM TEMPLATE_MASTERS WHERE TYPE_ID = ? ;
-- This code will call a section and print it. -- Param 1 = Section ID -- Param 2 = Section Name -- Param 3 = File Name DEF moat369_sec_id = '&1.' DEF moat369_sec_fl = '&2.' DEF moat369_sec_nm = '&3.' UNDEF 1 2 3 @@&&skip_tkprof.moat369_0g_tkprof.sql DEF section_id = '&&moat369_sec_id.'; DEF section_name = '&&moat36...
/* 拼团商品表 */ ALTER TABLE `hjmall_pt_goods` MODIFY COLUMN `virtual_sales` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '虚拟销量' AFTER `sort`; /* 2017-12-15 */ ALTER TABLE `hjmall_pt_goods` ADD COLUMN `buy_limit` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '限购数量' AFTER `colonel`;
<reponame>clouserw/olympia<filename>migrations/445-ratingsbodies.sql CREATE TABLE `webapps_contentrating` ( `id` int(11) unsigned AUTO_INCREMENT NOT NULL PRIMARY KEY, `created` datetime NOT NULL, `modified` datetime NOT NULL, `addon_id` int(11) unsigned NOT NULL, `ratings_body` integer UNSIGNED NOT ...
<filename>carrinho.sql /** Carrinho de compras @author ianlee */ create database carrinhodecompras; use carrinhodecompras; create table carrinho( codigo int primary key auto_increment, produto varchar(50) not null , quantidade varchar(100) not null, valor varchar(5) ); alter table carrinho modify column prod...
ALTER TABLE `dept` ADD `create_date` varchar(50) NULL DEFAULT NULL COMMENT '创建时间'; ALTER TABLE `dept` ADD `update_date` varchar(50) NULL DEFAULT NULL COMMENT '更新时间'; ALTER TABLE `major` ADD `create_date` varchar(50) NULL DEFAULT NULL COMMENT '创建时间'; ALTER TABLE `major` ADD `update_date` varchar(50) NULL ...
INSERT INTO ewb_user (username, hashed_password, salt, role, reset_token) VALUES ($1, $2, $3, $4, $5) RETURNING *
<filename>sf_sn_log_deathstar/app/feuertips_13_v1.pks<gh_stars>0 CREATE OR REPLACE PACKAGE Feuertips_13_v1 IS PROCEDURE feuertips_13_poc; END Feuertips_13_v1; / SHO ERR
<filename>src/assets/data/asset-tracker.sql -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup. -- Sequence and defined type CREATE SEQUENCE IF NOT EXISTS asset_id_seq; -- Table Definition ...
/** script do curso de banco de dados MySQL utilizando workbench**/ DROP DATABASE IF EXISTS AULA_BANCO; /** caso exista, eliminando a base de dados AULA_BANCO **/ CREATE DATABASE AULA_BANCO; /** criando a base de dados **/ USE AULA_BANCO; /** selecionando a base de dados **/ /** criando tabelas **/ CREATE TABLE...
-- MySQL dump 10.14 Distrib 5.5.50-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: CS3380GRP23 -- ------------------------------------------------------ -- Server version 5.5.50-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
<reponame>ToT-LD34/Warcredits<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Jeu 23 Février 2017 à 16:36 -- Version du serveur : 10.0.29-MariaDB-0ubuntu0.16.04.1 -- Version de PHP : 7.0.15-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO...
REVOKE ALL ON TABLE items FROM admin; GRANT UPDATE ON TABLE items TO admin; REVOKE ALL ON TABLE items FROM customer; GRANT SELECT ON TABLE items TO customer; REVOKE ALL ON TABLE items FROM webuser; GRANT INSERT, DELETE ON TABLE items TO webuser; REVOKE ALL (id) ON TABLE items FROM admin; GRANT SELECT (id) ON TABLE ...
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 23/b4nGetCategoryMenuTree_backup.sql /****** Object: Stored Procedure dbo.b4nGetCategoryMenuTree_backup Script Date: 23/06/2005 13:31:35 ******/ CREATE proc dbo.b4nGetCategoryMenuTree_backup @parentCategoryID varchar(40) as begin decl...
<filename>sports_oracle.sql CREATE TABLE requested_fixtures ( feed_name TEXT NOT NULL PRIMARY KEY, fixture_date TIMESTAMP NOT NULL, result_url TEXT NOT NULL, hours_to_wait INT DEFAULT 6, has_critical_error TINYINT DEFAULT 0, creation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE devices_havi...
CREATE DATABASE marten_test; \c marten_test CREATE EXTENSION plv8;
<filename>script/Create DB/2.Main DB/4.ListsCreateTable.sql CREATE TABLE "AwardEmployees"( "Id" BIGSERIAL NOT NULL PRIMARY KEY, "IdEmployee" BIGINT NOT NULL REFERENCES "Employee"("Id") ON UPDATE CASCADE ON DELETE CASCADE, "IdAward" BIGINT NOT NULL REFERENCES "Award"("Id"), "Amount" MONEY NOT NULL, "D...
CREATE VIEW techie_stats AS SELECT concat_ws('-', location, state) AS id, location, state, COUNT(state) FROM techies GROUP BY location, state;
<filename>multi.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2019 at 07:39 PM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2021 at 09:11 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>raboud/Measures CREATE TABLE [dbo].[Order] ( [Id] INT IDENTITY (1, 1) NOT NULL, [CustomerId] INT NOT NULL, [ProgramId] INT NOT NULL, [StoreId] INT NOT NULL, [JobStatusId] INT NULL, [PrimaryOrderId] INT ...
With V4Patients AS ( select Ptn_Pk, DoB from IQCareV4.dbo.CCCPatientsBeingMigrated) , V1Patients AS ( select Ptn_Pk, DateOfBirth from IQCareV1.dbo.Person ), LineList AS ( SELECT a.Ptn_pk , CASE WHEN a.DOB <> b.DateOfBirth THEN 1 ELSE 0 END as DoesNotMatch FROM V4Patients a LEFT JOIN V1Patients b ON a.Ptn_Pk = b.P...
------------------------------------------------------------------- -- report migration tasks ------------------------------------------------------------------- UPDATE "report" SET "reportname" = 'Customer_PaymentPreview' WHERE "reportname"='Customer_CurrentBillingDetails';
<reponame>Trase/splitgraph DROP TABLE IF EXISTS fruits; CREATE TABLE fruits ( fruit_id serial, name varchar ); DROP TABLE IF EXISTS vegetables; CREATE TABLE vegetables ( vegetable_id serial, name varchar ); INSERT INTO fruits (name) VALUES ('apple'); INSERT INTO fruits (name) VALUES ('orange'); INSER...
<filename>gaf-cloud/gaf-commons/gaf-common-base-data/src/main/resources/com/supermap/gaf/base/data/changelog/component-module-menu/gaf-map.sql<gh_stars>10-100 -- liquibase formatted sql logicalFilePath:component-module-menu/gaf-map.sql -- changeset SYS:20210426-0 INSERT INTO "sys_component"("sys_component_id", "name",...
BEGIN; DROP INDEX IF EXISTS index_on_email_on_users; DROP TABLE IF EXISTS users; COMMIT;
-- @testpoint: alter table对有空值的列设置not nul约束时合理报错 drop table if exists alter_table_tb001; create table alter_table_tb001 ( c1 int, c2 bigint, c3 varchar(20) ); insert into alter_table_tb001 values('11',null,'sss'); insert into alter_table_tb001 values('21','','sss'); insert into alter_table_tb001 values('31',66,''); in...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 14, 2022 at 06:39 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
ALTER TABLE public.curso ADD COLUMN cargahoraria integer; ALTER TABLE public.aluno_curso ADD COLUMN datainicio date; ALTER TABLE public.aluno_curso ADD COLUMN datatermino date;
<filename>db/bnpweb.sql -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 24, 2018 at 11:22 PM -- Server version: 5.6.39-cll-lve -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
-- Updated August 17, 2021 ALTER TABLE `recuperable_expense` ADD `date_recorded` DATE NULL DEFAULT '2021-08-17' AFTER `expense_amount`; ALTER TABLE `recuperable_expense` CHANGE `date_recorded` `date_recorded` DATE NULL DEFAULT NULL; -- Uploaded August 23, 2021 ALTER TABLE `artist` DROP COLUMN `starting_balance`, ADD ...