sql
stringlengths
6
1.05M
CREATE OR REPLACE ALGORITHM = UNDEFINED DEFINER = `spb`@`%` SQL SECURITY DEFINER VIEW `vwSeedAttributes` AS SELECT 'Attributes' AS `TABLE`, CONCAT('\'id\'=>\'', `attributes`.`id`, '\',', '\'attribute\'=>\'', `attributes`.`attribut...
CREATE DATABASE cms_DB; USE cms_DB; CREATE TABLE department ( id INTEGER(10) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(30) NOT NULL ); CREATE TABLE role ( id INTEGER(10) PRIMARY KEY AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary DECIMAL(8, 2) NOT NULL, department_id INTEGER(10) NOT NULL ); CREA...
<gh_stars>1-10 -- Create database CREATE DATABASE phpDemoCSVImport; USE phpDemoCSVImport; -- Create table for data CREATE TABLE tblProductData ( intProductDataId int(10) unsigned NOT NULL AUTO_INCREMENT, strProductName varchar(50) NOT NULL, strProductDesc varchar(255) NOT NULL, strProductCode varchar(10) ...
define day = "red"; -- this is a test select * from db where thing = other and this < &day; /* blah blah blah */
<reponame>RebeccaKoll/pbot_client // Create a new reference node // Note that you cannot (should not) have arrays or lists, even though it will accept it as part of the JSON CREATE (a:Reference { refid: '431d5b07caa98bec0db700748de6e918' title: 'Manual of Leaf Architecture - Morphological description...
-- Author: iElden -- Carnivals don't require population UPDATE Districts SET RequiresPopulation=0 WHERE DistrictType IN ('DISTRICT_STREET_CARNIVAL', 'DISTRICT_WATER_STREET_CARNIVAL'); -- Up Minas by +5/+5 to match battleship up UPDATE Units SET Combat=75, RangedCombat=85 WHERE UnitType='UNIT_BRAZILIAN_MINAS_GERAES';
<filename>backend/de.metas.fresh/de.metas.fresh.base/src/main/sql/postgresql/system/75-de.metas.fresh.reports/5461993_sys_gh1304_add_function_docs_purchase_InOut_Material_Disposal_page_header.sql -- Function: de_metas_endcustomer_fresh_reports.docs_purchase_inout_page_header(numeric, character varying) -- DROP FUNCTI...
<filename>bp-jenkins-scripts/tools/init.sql /* SQLyog Community v11.27 (64 bit) MySQL - 5.5.40-MariaDB : Database - wavsep ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQU...
USE [Certificate_Administration] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ====================================================================== -- Author: <NAME> -- Creation date: October 20, 2021 -- Description: Drops a certificate and all of its dependencies -- from a p...
<filename>src/main/resources/schema.sql CREATE TABLE todo ( id integer NOT NULL, name character varying(255), description character varying(255), );
ALTER FUNCTION dbo.uf_GetOrderDetails ( @OrderId INT ) RETURNS @OrderDetails TABLE ( ProductId INT NOT NULL, Quantity INT NOT NULL, Price MONEY, Discount DECIMAL(18, 2) ) AS BEGIN INSERT INTO @OrderDetails (ProductId, Quantity) SELECT ProductId, Quantity FROM OrderDetails WHERE OrderId = ...
<reponame>torre-labs/fourkeys # Incidents Table SELECT source, incident_id, MIN(IF(root.time_created < issue.time_created, root.time_created, issue.time_created)) as time_created, MAX(time_resolved) as time_resolved, ARRAY_AGG(root_cause IGNORE NULLS) changes, FROM ( SELECT source, metadata, CASE ...
create database altro_tunisia ; create table client ( login varchar(50) primary key , password varchar(50) , nom varchar(50) , prenom varchar(50) , email varchar(50) unique , date_naissance date , date_inscription date ); create table categorie ( id int primary key AUTO_INCREMENT ,...
<filename>migrations/frontend/1528395721_lsif_deleted.down.sql BEGIN; -- Drop objects that depends on this type DROP VIEW lsif_dumps_with_repository_name; DROP VIEW lsif_uploads_with_repository_name; DROP VIEW lsif_dumps; DROP INDEX lsif_uploads_repository_id_commit_root_indexer; -- Create old enum CREATE TYPE lsif_u...
ALTER TABLE "applications" ADD COLUMN IF NOT EXISTS "assessment" jsonb; COMMENT ON COLUMN applications.assessment IS 'Assessment information after it is calculated from camunda workflow in the student application.';
<filename>lubanlou-master/lubanlou-provider/lubanlou-provider-oauth2/src/main/resources/db/migration/V2021.09.01.1__rbac.sql create table `rbac_role` ( uid int primary key, name varchar(255) )ENGINE = INNODB DEFAULT CHARSET = utf8 COMMENT '角色表'; create table `rbac_permission` ( uid int primary key, n...
<gh_stars>0 CREATE SEQUENCE IF NOT EXISTS hibernate_sequence; CREATE TABLE IF NOT EXISTS USERS ( ID BIGINT NOT NULL IDENTITY PRIMARY KEY AUTO_INCREMENT, IS_ACTIVE BOOLEAN NOT NULL, USERNAME VARCHAR(50) NOT NULL UNIQUE, PASSWORD VARCHAR(100) NOT NULL ); CREATE TABLE IF NOT EXISTS I...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Vært: 127.0.0.1 -- Genereringstid: 24. 06 2019 kl. 08:35:12 -- 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.33 (64 bit) MySQL - 10.1.40-MariaDB : Database - programas_presupuestales ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOR...
CREATE TABLE public.situ_memn_areas ( ogc_fid integer PRIMARY KEY, wkb_geometry public.geometry(MultiPolygon,4326), libelle character varying(254) ); CREATE INDEX situ_memn_areas_wkb_geometry_geom_idx ON public.situ_memn_areas USING gist (wkb_geometry);
<gh_stars>0 CREATE TABLE foo_schema.foo_table ( id uuid DEFAULT public.uuid_generate_v4() NOT NULL PRIMARY KEY, name character varying NOT NULL, description character varying NOT NULL, uuid uuid DEFAULT public.uuid_generate_v4() NOT NULL ); ALTER TABLE foo_schema.foo_table OWNER TO "neighbor";
<reponame>carlosvilela/Testes-C- /* Para deletar/excluir uma tabela inmteira, não digo dados, mas sim a tabela em si, utiliza-se o comando DROP DROP TABLE <nome_tabela> */ DROP TABLE tabela;
/* Navicat Premium Data Transfer Source Server : sql Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : xy Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 13/06/2019 20:54:58 */ ...
<gh_stars>1-10 USE [SecurityDoorsApp] GO -- (!) NOTICE: Initialize UserIdentifier variable before use script -- Declare the variable to be used DECLARE @UserIdentifier NVARCHAR(450); SET @UserIdentifier = N'4e6c6e49-eac6-4d5a-9fff-f87b20f99902'; -- Insert into Cards table INSERT [org].[Cards] ([UserId], [UniqueNum...
USE [VipunenTK_DW] GO /****** Object: View [dbo].[v_opettajan_tehtavatyyppi_taiteen_perusopetuksessa] Script Date: 25.2.2020 20:40:07 ******/ DROP VIEW IF EXISTS [dbo].[v_opettajan_tehtavatyyppi_taiteen_perusopetuksessa] GO /****** Object: View [dbo].[v_opettajan_tehtavatyyppi_taiteen_perusopetuksessa] Script...
-- MySQL dump 10.13 Distrib 8.0.18, for osx10.15 (x86_64) -- -- Host: localhost Database: VideoSummarizer -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
<filename>DB/cloud.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 23 Ara 2021, 03:36:47 -- Sunucu sürümü: 10.4.21-MariaDB -- PHP Sürümü: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
-- randexpr1.test -- -- db eval {SELECT coalesce((select max(t1.e*~t1.b- -t1.b-t1.b-coalesce((select t1.a from t1 where exists(select 1 from t1 where ~d+case case when a between b and f then 13 else -17 end-13 when -19 then t1.f else d end+t1.b<>e or not t1.e between 19 and t1.a or 11 in (19,c, -19))),a)*e) from t1 ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2022 at 03:37 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
DROP TABLE transaction; DROP TABLE types; DROP TABLE account; CREATE TABLE Account ( Name VARCHAR(50) NOT NULL , Balance NUMBER NOT NULL, AccNum INTEGER PRIMARY KEY, type VARCHAR(50), feeCharged NUMBER ); CREATE TABLE Types ( typeID INTEGER generated BY DEFAULT ON NULL A...
<reponame>Geomatys/constellation INSERT INTO "Storage"."Records" ("accessionNumber","recordSet", "identifier", "title", "maintainerID", "validatorID", "profile", "updateDate", "isValidated", "isPublished", "type") VALUES (35, 'CSWCat', 'meta-id','meta resp id', 'admin', NULL, NULL, '2013-03-21', 1, 1, 'NORMALRECORD');...
<gh_stars>10-100 SELECT test_project_init();
SELECT * FROM STOCK_KNOWLEDGES ORDER BY INSERT_DATETIME %s;
<filename>sql/add-test-data.sql INSERT INTO player (id, username, email, password, gold) VALUES (1, 'xyz', '<EMAIL>', 'abc', 0), (2, 'zyx', '<EMAIL>', 'abc', 1000); INSERT INTO hero (id, name, class, xp, player_id) VALUES (1, 'Conan', 1, 4000, 1), (2, 'Legolas', 2, 3000, 1), (3, 'Thrall', 3, 2000, 1), (4, 'Sven', 1, 5...
USE [warehouse_management] GO /****** Object: Table [dbo].[personnel] Script Date: 6/12/2021 11:39:50 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[personnel]( [id] [uniqueidentifier] ROWGUIDCOL NOT NULL, [username] [nvarchar](50) NOT NULL, [password_hash] [binary](64) NOT N...
/****************************************************************************** Course videos: https://www.red-gate.com/hub/university/courses/t-sql/tsql-for-beginners Course scripts: https://litknd.github.io/TSQLBeginners Introducing SELECTs and Aliasing This is your HOMEWORK file For best results, work ...
INSERT INTO clients (name, email, birthdate, gender) VALUES ('<NAME>', '<EMAIL>', '2020-07-30', 'M'), ('<NAME>', '<EMAIL>', '2020-08-23', 'F'), ('<NAME>', '<EMAIL>', '2019-11-26', 'F'), ('<NAME>', '<EMAIL>', '2020-05-21', 'M'), ('<NAME>', '<EMAIL>', '2020-05-31', 'M'), ('<NAME>'...
CREATE TABLE IF NOT EXISTS photo.picture_control_name ( id SMALLSERIAL, name VARCHAR(50) NOT NULL, CONSTRAINT pk_photo_picture_control_name PRIMARY KEY (id), CONSTRAINT uq_photo_picture_control_name_name UNIQUE (name) ); GRANT SELECT ON photo.picture_control_name TO website;
<gh_stars>0 PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE "django_migrations" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" datetime NOT NULL); INSERT INTO "django_migrations" VALUES(1,'contenttypes','0001_initial','2021-01-21 16:53:35....
DROP DATABASE IF EXISTS blogstuff_db; CREATE DATABASE blogstuff_db;
CREATE FUNCTION [internal].[encrypt_binarydata] (@algorithmName NVARCHAR (255), @key VARBINARY (8000), @IV VARBINARY (8000), @binary_value VARBINARY (MAX)) RETURNS VARBINARY (MAX) AS EXTERNAL NAME [ISSERVER].[Microsoft.SqlServer.IntegrationServices.Server.Security.CryptoGraphy].[EncryptBinaryData]
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 22, 2017 at 09:01 AM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
USE DistribComp DECLARE @idoc int DECLARE @xmldoc nvarchar(4000) -- define the XML document SET @xmldoc = ' <ROOT> <Task TaskID="71" TaskName="307B1D39A3C76293311C020DFA457EAE" TaskCost="237" TaskStartDate="2007-04-23 00:00:00.000" TaskFinishDate="2007-04-23 00:00:00.000"/> </ROOT> ' --Load and parse...
<filename>project-mojo-backend/resources/migrations/20210122200319-created-at-index-request-table.up.sql CREATE INDEX "created_at_idx" on requests ("created_at");
alter table context.context rename to old_context; alter table context.collab rename to context;
<reponame>Coldairarrow/Colder.Admin.AntdVue<filename>docs/初始化文件/Oracle.sql /* Navicat Oracle Data Transfer Oracle Client Version : 10.2.0.5.0 Source Server : 127.0.0.1@SYSTEM Source Server Version : 110200 Source Host : 127.0.0.1:1521 Source Schema : COLDER.ADMIN.ANTDVUE Target Server Type ...
<reponame>xigadee/Microservice CREATE TABLE [Core].[Service] ( [Id] SMALLINT NOT NULL PRIMARY KEY IDENTITY(1,1) ,[Name] VARCHAR(50) NOT NULL ) GO CREATE UNIQUE INDEX [IX_Service_Id] ON [Core].[Service] ([Name]) INCLUDE ([Id]) GO
CREATE TABLE metadata_items ( id INTEGER PRIMARY KEY NOT NULL, library_section_id INTEGER, parent_id INTEGER, metadata_type INTEGER, guid TEXT, media_item_count INTEGER, title TEXT, title_sort TEXT, original_title TEXT, studio TEXT, rating REAL, rating_count INTEGER, ...
---------------------------------------------------------------- -- [user_profiles] Table -- CREATE OR REPLACE FUNCTION InsertUserProfileProperty ( v_user_id UUID, v_property_id UUID, v_property_name TEXT, v_property_type TEXT, v_property_content TEXT ) RETURNS VOID AS $PROCEDURE$ BEGIN IN...
-- It's Ok to CLEAR column when there are columns with default expression depending on it. -- But it's not Ok to DROP such column. DROP TABLE IF EXISTS test; CREATE TABLE test (x UInt8, y UInt8 DEFAULT x + 1) ENGINE = MergeTree ORDER BY tuple(); INSERT INTO test (x) VALUES (1), (2), (3); SELECT * FROM test ORDER BY x,...
<reponame>benoutram/explore-education-statistics<gh_stars>0 CREATE PROCEDURE UpsertFilterItemFootnote @FilterItemFootnote dbo.FilterItemFootnoteType READONLY AS BEGIN MERGE dbo.FilterItemFootnote AS target USING @FilterItemFootnote AS source ON (target.FilterItemId = source.FilterItemId AND target.FootnoteI...
-- ============================================= -- Author: <NAME> -- Create date: January 4, 2012 -- Description: Runs the logic that prorates the admin expenses across the relevent departments -- for both unassociated monetary and FTE amounts. -- Usages: -- EXEC usp_ProrateAdminExpenses @AdminUnit = '' or 'ADNO' o...
/* Warnings: - The values [ATIVO,COMPLETO,CANCELADO,HIATO] on the enum `ObraStatus` will be removed. If these variants are still used in the database, this will fail. - The `author` column on the `obras` table would be dropped and recreated. This will lead to data loss if there is data in the column. - The `ar...
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 11, 2022 at 12:01 PM -- Server version: 10.3.34-MariaDB -- PHP Version: 7.4.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
<filename>crush.sql create database if not exists `crushecommerce`; use `crushecommerce`; SET foreign_key_checks = 0; DROP TABLE IF EXISTS `users_roles`; CREATE TABLE `users_roles` ( `user_id` int(11), `role_id` int(11), PRIMARY KEY (`user_id`,`role_id`), FOREIGN KEY (`user_id`) REFERENCES `user` (`id`), FOR...
<reponame>huangrkul/lab-14 CREATE TABLE BOOKSHELVES (id SERIAL PRIMARY KEY, name VARCHAR(255)); -- This query will create a second table in the lab14_normal database named bookshelves. INSERT INTO bookshelves(name) SELECT DISTINCT bookshelf FROM books; -- This query will use a simple subquery to retrieve unique books...
/* Copyright (c) The dgc.network SPDX-License-Identifier: Apache-2.0 */ INSERT INTO agents VALUES ('pub123456', 'Alice'), ('pub721989', 'Bob'), ('pub752930','Carol,'), ('pub802384', 'Dan'); INSERT INTO organizations VALUES ('1', 'Patricle, Inc.', '9342 Fake Street', 'Madeup', 'ND', '33333', 'Unit...
CREATE PROCEDURE SP399(OUT MYCOUNT INTEGER) SPECIFIC SP399_40128 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE118;SELECT COUNT(*)INTO MYCOUNT FROM TABLE185;SELECT COUNT(*)INTO MYCOUNT FROM TABLE406;SELECT COUNT(*)INTO MYCOUNT FROM...
/* Columnstore Indexes Scripts Library for Azure SQLDW: Row Groups - Shows detailed information on the Columnstore Row Groups Version: 1.5.0, August 2017 Copyright 2015-2017 <NAME>, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/) Licensed under the Apache License, Version 2.0 (the "License...
<gh_stars>1000+ ALTER TABLE "identities" ADD COLUMN "nid" UUID;
<gh_stars>0 alter table targeting_sessions add column scm tinyint not null default 0 comment 'whether second community meeting has been done', add column dm tinyint not null default 0 comment 'district meeeting status', add column scm_user_id bigint comment 'user id under which the second community meeting ...
<reponame>gntyu/server<filename>schema.sql /* Target Server Type : MYSQL Target Server Version : 50638 File Encoding : 65001 Date: 2018-05-31 18:15:12 */ use `admin-template`; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for demo_category -- ---------------------------- D...
<reponame>aryomuzakki/ci3-crud-data-mahasiswa<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2021 at 03:01 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time...
<reponame>go-challenges/achievements<filename>db/migrations/20220323_add_status_to_challenges_table.down.sql ALTER TABLE challenges DROP COLUMN status; DROP TYPE challenge_statuses IF EXISTS;
<gh_stars>0 -- 关键字. SET IDENTITY_INSERT [my_help_keyword] ON GO INSERT INTO [my_help_keyword]( [keyword_id], [keyword_text] ) SELECT 1, '存储过程' UNION ALL SELECT 2, '函数' UNION ALL SELECT 3, '触发器' UNION ALL SELECT 4, '外键' UNION ALL SELECT 5, '游标' UNION ALL SELECT 6, '异常' GO SET IDENTITY_INSERT [my_help_keyword] OF...
SELECT * FROM sys.databases ORDER BY database_id;
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied -- externalCerts and identifierData were originally needed for PoP challenges -- but were never used and can safely be removed since PoP challenges were -- removed from the spec. DROP TABLE externalCerts; DROP TABLE identifierData; ALTER...
<reponame>buzhidaolvtu/mysql-parser ( (BF.ID IN (-1 ,+2,'a','cccdd',0xff) and BF.AMOUND >= 1000) AND ( FUT_RENEW.LAST_VISIT IS NULL AND ( (FUF_ALL.LAST_VISIT IS NULL AND FUF.LAST_VISIT IS NULL) OR ( FUF.LAST_VISIT IS NOT NULL AND ! (FUF.LAST_VI...
CREATE TABLE EmailTemplate ( EmailID TEXT PRIMARY KEY, Description TEXT NOT NULL, FileName TEXT NOT NUll );
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 14, 2014 at 10:41 PM -- Server version: 5.5.16 -- PHP Version: 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 */; /*!...
SELECT MAX(perday) AS int FROM ( SELECT COUNT(*) AS perday FROM savecount GROUP BY day );
<reponame>Shuttl-Tech/antlr_psql -- file:text.sql ln:46 expect:true select quote_literal(e'\\')
CREATE TABLE [data_testing].[TestExecutionResult] ( [TestExecutionResultId] BIGINT IDENTITY (1, 1) NOT NULL, [ResultGroupId] INT CONSTRAINT [DF__tmp_ms_xx__Resul__6FE99F9F] DEFAULT ((1)) NOT NULL, [TestExecutionId] BIGINT NULL, [TestAssignmentId] INT NULL...
<filename>db/get_urls.sql<gh_stars>0 select * from urls where userid = $1;
alter table widget add column life_expectancy bigint default 0;
DROP TABLE IF EXISTS Roles; DROP TABLE IF EXISTS Applications; CREATE TABLE Application ( id varchar(64), json text, PRIMARY KEY(id) );
<gh_stars>1-10 -- adds a field to the category attribute table to store the display_order for attributes alter table category_attribute add display_order integer;
<reponame>iuskye/SREWorks<gh_stars>100-1000 alter table am_product_release_task add status varchar(16) null; alter table am_product_release_task add error_message text null;
<reponame>SkyFrost07/lar_blog -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2016 at 07:05 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<reponame>MagicMumble/balanceService use testdb; create table user ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, username varchar(30) unique, balance decimal(10,2) default 0 ); create table charge ( user int not null, fromID int default -1, sum decimal(10,2) CHECK(sum>0), info varchar(100) default "no i...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Apr 2022 pada 17.53 -- Versi server: 10.4.22-MariaDB -- Versi PHP: 8.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<reponame>heisedebaise/clivia DROP TABLE IF EXISTS t_group; CREATE TABLE t_group ( c_id CHAR(36) NOT NULL COMMENT '主键', c_type INT DEFAULT 0 COMMENT '类型:0-好友;1-群组', c_name VARCHAR(255) DEFAULT NULL COMMENT '名称', c_avatar VARCHAR(255) DEFAULT NULL COMMENT '头像', c_notice TEXT DEFAULT NULL COMMENT '公告', c_join...
<reponame>Njogu-Ndegwa/stock_pwa<filename>erslenovostockPWAappconfigstock_pwa.sql commit 48bc74dc12c377b1019e01d104e7fd45ace3fe0b (HEAD -> main, origin/main, origin/HEAD) Author: xlvisben <<EMAIL>> Date: Sun Nov 7 23:05:09 2021 +0300 ...
<reponame>ronanmoriarty/cqrs-nu-tutorial<filename>src/Cafe/Docker/SqlServer/ReadModel/Scripts/006 - Add EventProjectingService Login.sql IF NOT EXISTS(SELECT 1 FROM sys.syslogins WHERE [name] = 'EventProjectingService') BEGIN CREATE LOGIN [EventProjectingService] WITH PASSWORD=$(<PASSWORD>), DEFAULT_DATABASE=[mast...
<filename>toko_fashion.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 28, 2021 at 03:22 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
CREATE TABLE IF NOT EXISTS `storage` ( `id` int(3) NOT NULL AUTO_INCREMENT, `type` varchar(8) COLLATE utf8_unicode_ci NOT NULL, `path` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `endpoint` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `access_key` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `secr...
<gh_stars>0 drop table if exists bi_stage.stg_sfdc_opportunity_line_item cascade; create table if not exists bi_stage.stg_sfdc_opportunity_line_item ( id varchar not null, opportunityid varchar not null, productcode varchar, currencyisocode varchar, netsuite_itemid__c varchar, use_case__c varchar...
<reponame>joewilson27/wilson_crud_laravel<filename>file_db/wilson_crud_laravel.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 09, 2020 at 10:18 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; S...
<filename>sql/tag-setup.sql -- Tags used to sort Posts. DROP TABLE IF EXISTS `r1k10Tag`; CREATE TABLE `r1k10Tag` ( `id` INT AUTO_INCREMENT PRIMARY KEY NOT NULL, `name` VARCHAR(20) ); INSERT INTO `r1k10Tag` (`name`) VALUES ("education"), ("government"), ("teslamotors") ;
<reponame>getwasim/egov-smartcity-suites-test<filename>egov/egov-stms/src/main/resources/db/migration/main/V20170331124422__stms_add_sla_value.sql<gh_stars>1-10 INSERT INTO eg_appconfig ( ID, KEY_NAME, DESCRIPTION, VERSION, MODULE ) VALUES (nextval('SEQ_EG_APPCONFIG'), 'SLAFORNEWSEWERAGECONNECTION', 'NEW SEWERAGE CONNE...
<reponame>tansuluu/Opentravel /* -- Query: SELECT * FROM hciproject.blog LIMIT 0, 1000 -- Date: 2019-02-06 13:33 */ INSERT INTO `blog` (`id`,`category`,`com_number`,`date`,`image`,`likes`,`photo1`,`photo2`,`photo3`,`text`,`title`,`username`,`view`,`small_text`) VALUES (113,'Nature',0,'2019-01-23 19:43:31',NULL,1,'imag...
# Create `shibboleth` database with `shibpid` and `StorageRecords` tables SET NAMES 'utf8'; SET CHARACTER SET utf8; CHARSET utf8; CREATE DATABASE IF NOT EXISTS shibboleth CHARACTER SET=utf8; USE shibboleth; CREATE TABLE IF NOT EXISTS `shibpid` ( `localEntity` VARCHAR(255) NOT NULL, `peerEntity` VARCHAR(255) NOT NU...
ALTER TABLE project_version_unsafe_downloads DROP COLUMN download_type; ALTER TABLE project_version_download_warnings RENAME expiration TO expiresAt;
UPDATE carnes SET animal = "Res" WHERE nombre = "Filete"; UPDATE carnes SET nombre = "Pernil" WHERE nombre = "Pierna"; UPDATE inventario SET producto = "Pernil" WHERE producto = "Pierna"; DELETE FROM carnes WHERE nombre = "Tenaza"; DELETE FROM inventario WHERE producto = "Tenaza";
-- incrvacuum2.test -- -- execsql { -- PRAGMA incremental_vacuum(1000); -- } PRAGMA incremental_vacuum(1000);
-- -- In this chapter, we will -- -- learn how to -- -- use window -- -- functions to perform calculations over time, including calculating running totals and moving averages, calculating intervals, and finding the maximum levels of overlap. -- Contrasting ROW_NUMBER -- (), RANK -- (), and DENSE_RANK -- () -- Among th...
<filename>soil/docs/sql/gps_update.sql<gh_stars>1-10 Update skeleton_site set latitude = 176.8422652, longitude = -39.4925466 where site_number = 1; Update skeleton_site set latitude = 176.835732, longitude = -39.561751 where site_number = 10; Update skeleton_site set latitude = 176.6561761, longitude = -39.6812026 whe...
BEGIN; ALTER TABLE xplankonverter.konvertierungen ADD COLUMN veroeffentlicht BOOLEAN NOT NULL DEFAULT FALSE; COMMIT;
USE SOCCER_DB GO -- 9. Write a query in SQL to find the 'number' of matches -- got a result by penalty shootout. (penalty_shootout) SELECT COUNT( DISTINCT match_no) FROM penalty_shootout GO
CREATE SEQUENCE sq_on_quotation_id; CREATE TABLE quotation ( id bigint DEFAULT nextval('sq_on_quotation_id') PRIMARY KEY, qid varchar(30) NOT NULL, text varchar(150) NOT NULL ); CREATE UNIQUE INDEX uk_on_quotation_qid ON quotation (qid);