sql
stringlengths
6
1.05M
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('carbon_piece', 'Mena de Carbon', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`, `price`) VALUES ('gold_piece', 'Mena de Oro', 1, 50, 0, 1); INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `c...
<gh_stars>1-10 CREATE TABLE `copy_requests` ( `id` int(10) unsigned NOT NULL, `group_id` varchar(32) NOT NULL, `num_copies` tinyint(1) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL, `request_time` datetime NOT NULL, `status` enum('new','activated','completed','rejected','cancelled') NOT NULL DEFAUL...
<gh_stars>1-10 -- -- TOC entry 341 (class 1255 OID 36777) -- Name: activatepart(text, text, text); Type: FUNCTION; Schema: public; Owner: admin -- CREATE FUNCTION activatepart(text, text, text) RETURNS boolean LANGUAGE plpgsql AS $_$DECLARE pItemNumber ALIAS FOR $1; pRevision ALIAS FOR $2; pSerialNumber...
SELECT * FROM $wpdb->postmeta WHERE post_id = %d SELECT * FROM {$this->db->posts} WHERE $in_post_ids_sql SELECT post_id FROM $wpdb->postmeta WHERE meta_key='_menu_item_menu_item_parent' AND meta_value=%s SELECT ID FROM $wpdb->posts SELECT comment_ID FROM $wpdb->comments SELECT ID FROM {$wpdb->posts} WHERE post_type = '...
<reponame>velioo/animesite<filename>assets/sql/anime_genres.sql<gh_stars>1-10 COPY anime_genres (anime_id, genre_id) FROM stdin; 1 1 1 2 1 3 1 4 1 5 1 6 2 1 2 7 2 4 2 5 3 1 3 3 3 5 4 1 4 7 4 4 4 8 4 9 4 10 5 2 5 11 5 9 6 1 6 3 6 13 7 3 7 4 7 14 8 3 8 13 8 16 9 17 9 13 10 7 10 4 10 19 10 10 10 20 10 21 11 1 11 3 11 22 1...
insert into datetime_at(id, created_at, updated_at) value(UUID_TO_BIN('17ee6fd8-1e3c-4737-9c67-5b231cc4a6b1'), '2020-06-29 19:49:35', '2020-06-29 19:49:35');
CREATE INDEX index_servers_port ON servers (server_port); CREATE INDEX index_messages_msgidtoclid_read ON messages (message_to_client_id, message_flag_read);
INSERT INTO public.partsupp VALUES (169293, 1810, 5411, 408.55, 'mpress across the quickly regular packages. slyly express deposits sublate slyly quickly regular dependencies. furiously final deposits haggle furiously according to the'); INSERT INTO public.partsupp VALUES (16355, 8857, 7832, 54.15, 'ts about the carefu...
CREATE OR REPLACE FUNCTION public.trigger_set_transferred_at() RETURNS trigger LANGUAGE plpgsql AS $function$ BEGIN IF NEW.owner_id <> OLD.owner_id THEN NEW.list_price = null, NEW.auction_start = null, NEW.auction_end = null, NEW.max_extensions = null, NEW.extension_interval = null, NEW.rese...
-- file:bit.sql ln:60 expect:false X0F X10 X1F X11 X2F X12 X3F X13 X8F X04 X000F X0010 X0123 XFFFF X2468 X2468 XFA50 X05AF X1234 XFFF5 \. SELECT a, b, ~a AS "~ a", a & b AS "a & b", a | b AS "a | b", a # b AS "a # b" FROM varbit_table
ALTER TABLE semesters ADD edyoucated_team_id TEXT;
<filename>postgres/init.sql<gh_stars>0 DROP SCHEMA IF EXISTS mythgard CASCADE; CREATE SCHEMA mythgard; CREATE OR REPLACE FUNCTION mythgard.current_user_id() RETURNS integer as $$ SELECT nullif(current_setting('jwt.claims.userId', true), '')::integer; $$ language sql stable; CREATE TYPE mythgard.rarity AS ENUM ('CO...
<filename>conf/evolutions/default/3.sql # --- !Ups create table knownRevision( branch varchar(128) primary key, revision varchar(40) ); create table defaultBenchmark( id identity primary key, branch varchar(128), benchmarkId bigint, foreign key (branch) references knownRevision (branch) on del...
<filename>newD6.sql -- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Apr 02, 2015 at 03:55 AM -- Server version: 5.5.38 -- PHP Version: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `SENG301DB` -- -- -------...
# Users schema # --- !Ups CREATE TABLE Users ( id IDENTITY PRIMARY KEY, name VARCHAR(255) NOT NULL, is_active BOOLEAN NOT NULL ); # --- !Downs DROP TABLE User;
<reponame>pauldraper/piezo<filename>worker/src/main/resources/piezo_mysql_4.sql<gh_stars>10-100 INSERT INTO trigger_monitoring_priority (trigger_name, trigger_group, priority) SELECT TRIGGER_NAME, TRIGGER_GROUP, 3 from QRTZ_TRIGGERS;
with Invoice_create_events as ( select * from {{ ref('Invoice_create_events') }} ), Invoice_payment_events as ( select * from {{ ref('Invoice_payment_events') }} ), Purchase_order_approve_events as ( select * from {{ ref('Purchase_order_approve_events') }} ), Purchase_order_change_events as ( select ...
CREATE TABLE [Accounting].[Projects] ( [ProjectID] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (50) NOT NULL, [CustomerID] INT NOT NULL, [HourlyRate] FLOAT (53) NULL, [DefaultMiles] FLOAT (53) NULL, [DefaultTermID] INT NULL, CONSTRAI...
SELECT * FROM listing WHERE checksum IN ( SELECT checksum FROM ( SELECT checksum, ROW_NUMBER() OVER (PARTITION BY checksum ORDER BY id ASC) AS Row ...
DROP PROCEDURE IF EXISTS sp_tbl_EmployeeServiceMapping; DELIMITER $$ CREATE PROCEDURE sp_tbl_EmployeeServiceMapping() BEGIN DECLARE currentSchema varchar(100); SELECT database() into currentSchema; IF NOT EXISTS( SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA ...
<reponame>Mwong228/EmployeeTracker use sql_employees; INSERT INTO department (name) VALUES ('Marketing'), ('HR'), ('Finance') ('Sales'); INSERT INTO role (title, salary, department_id) VALUES ('Sales Associate', 50000, 4), ('Business Analyst Lead', 65000, 3), ('Staff Accountant', 50000, ...
<gh_stars>0 CREATE TABLE events( ID INT NOT NULL AUTO_INCREMENT, PersonID INT, StartDate DATE, EndDate DATE, Name VARCHAR(50), PRIMARY KEY (ID) ); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDate`, `Name`) VALUES (5, '2015-12-11', '2016-12-20', '<NAME>'); INSERT INTO `events`(`PersonID`, `StartDate`, `EndDa...
<gh_stars>0 --- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "geodetic_crs" VALUES('EPSG','3819','HD1909',NULL,NULL,'geographic 2D','EPSG','6422','EPSG','1024','EPSG','1119',NULL,0); INSERT INTO "geodetic_crs" VALUES('EPSG','3821','TWD67',NULL,NULL,'geographic 2D','EPSG','6422','EPSG'...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600650',@CutoffDate = N'2017-09-30',@EPS = N'0.34',@EPSDeduct = N'0',@Revenue = N'17.89亿',@RevenueYoy = N'2.41',@RevenueQoq = N'-6.13',@Profit = N'1.87亿',@ProfitYoy = N'5.06',@ProfiltQoq = N'3.35',@NAVPerUnit = N'6.2504',@ROE = N'5.54',@CashPerUnit = N'0.3350',@GrossProfitRate = N'1...
<reponame>surviveplus/MVVM-Sample CREATE INDEX [ProductsIndex2] ON [dbo].[Products] (Publisher)
<filename>study/exception.sql -- PL/SQLの例外処理の例 -- 宣言部 DECLARE name VARCHAR2(10); noNameException EXCEPTION; -- 処理部 BEGIN name := ''; IF (name is not null) THEN DBMS_OUTPUT.PUT_LINE('名前は' || name || 'です。'); ELSE RAISE noNameException; END IF; -- 例外処理部 EXCEPTION WHEN noNameException THEN DBMS_...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2022 at 07:22 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
------------------------------------------------------------------------------- -- -- Script: reserved_pool_summary.sql -- Purpose: to get an overview of chunks in the reserved pool -- For: 7.3 -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- ------------------------------------------------------------...
<reponame>junior-ux/projetoEngenharia -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 03-Dez-2019 às 15:11 -- Versão do servidor: 10.4.8-MariaDB -- versão do PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table todo ( id bigint auto_increment not null, value varchar(1024) not null, user_id bigint, constraint pk_...
-- ---------------------------- -- Records of t_cms_article -- ---------------------------- INSERT INTO `t_cms_article` (`id`, `create_by`, `create_time`, `modify_by`, `modify_time`, `author`, `content`, `title`, `id_channel`, `img`) VALUES ('1', '1', '2019-03-09 16:24:58', '1', '2019-05-10 13:22:49', 'enilu', '<div i...
<reponame>futurewei-cloud/qpmodel -- start query 94 in stream 0 using template query94.tpl select count(distinct ws_order_number) as "order count" ,sum(ws_ext_ship_cost) as "total shipping cost" ,sum(ws_net_profit) as "total net profit" from web_sales ws1 ,date_dim ,customer_address ,web_site where ...
WITH follow_up_blood_pressures AS ( SELECT DISTINCT ON (patient_id, facility_id, user_id, month_string) p.id AS patient_id, p.gender::gender_enum as patient_gender, bp.id as visit_id, 'BloodPressure' AS visit_type, bp.facility_id, bp.user_id, bp.recorded_at AS visited_at, to_char(bp.re...
<gh_stars>10-100 -- file:cluster.sql ln:43 expect:true INSERT INTO clstr_tst (b, c) VALUES (28, 'veintiocho')
<filename>src/test/resources/sql/create/24476343.sql -- file:triggers.sql ln:1123 expect:true create or replace function parent_del_func() returns trigger language plpgsql as $$ begin delete from child where aid = old.aid
-- This will delete all recent weather records by cascade DELETE FROM sources WHERE observation_type = 'recent';
-- Persistent generated migration. CREATE FUNCTION migrate() RETURNS void AS $$ DECLARE next_version int ; BEGIN SELECT stage_two + 1 INTO next_version FROM schema_version ; IF next_version = 4 THEN EXECUTE 'ALTER TABLE "param_proposal" ALTER COLUMN "min_fee_a" TYPE word64type' ; EXECUTE 'ALTER TABLE "pa...
CREATE TABLE IF NOT EXISTS blog_post_categories ( post_id INT(12) NOT NULL, category_id INT(12) NOT NULL, UNIQUE KEY(post_id, category_id), CONSTRAINT fk_bpcatpost FOREIGN KEY (post_id) REFERENCES blog_posts(id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT fk_bpcatcategory FOREIGN KEY...
-- -- Copyright (C) 2017-2020 HERE Europe B.V. -- -- 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 ...
<filename>vpc/service/db/migrations/40_static_v2.up.sql START TRANSACTION ; alter table ip_addresses add column subnet_id_id int; update ip_addresses set subnet_id_id = subnets.id from subnets where subnets.subnet_id = ip_addresses.subnet_id; alter table ip_addresses add ipv6address inet; alter table ip_addresse...
-- -- PostgreSQL database dump -- -- Dumped from database version 11.3 (Debian 11.3-1.pgdg90+1) -- Dumped by pg_dump version 11.3 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_conf...
INSERT INTO DateEvent ( timestamp, id ) VALUES ( '16:51:58', 1 )
-- 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. CREATE PROCEDURE [dbo].[UpdatePaths] @SystemItemI...
<gh_stars>1-10 CREATE OR REPLACE FUNCTION public.mfg_model_manager_update_fn(v_model_id text) RETURNS TABLE(t_model_id character varying, t_keypart character varying, t_mask_rule character varying, t_category_id character varying, t_plant_code character varying, t_sap_changed_date character varying, t_spanish_desc cha...
CREATE TABLE IF NOT EXISTS selectors ( resource_group_id BIGINT NOT NULL, priority BIGINT NOT NULL, user_regex VARCHAR(512), source_regex VARCHAR(512), query_type VARCHAR(512), client_tags VARCHAR(512), selector_resource_estimate VARCHAR(1024), FOREIGN KEY (resource_group_id) REF...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : event Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-08-17 00:36:08 */ -- ---------------------------- -...
ALTER TABLE `jobContainer` CHANGE COLUMN `policenumber` `policenumber` VARCHAR(16) NULL DEFAULT NULL ;
update tb_ordem_servico set tp_situacao = 2 where nu_ordem_servico in (974, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1021, 1022, 1024, 1027, 1028, 1...
--test for preparestatement query including simple operation with ? (chartype) --+ holdcas on; create class xoo ( a int, b string ); insert into xoo values(1,'1'); insert into xoo values(1,'11'); insert into xoo values(1,'3'); insert into xoo values(2, '2'); insert into xoo values(3, '3'); $varchar, $1, $varchar, $1...
-- @testpoint:opengauss关键字lock(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists lock; create database lock; drop database lock; --关键字带双引号-成功 drop database if exists "lock"; create database "lock"; drop database "lock"; --关键字带单引号-合理报错 drop database if exists 'lock'; create database 'lock'; --关键字带反引号-合理报错 drop datab...
USE [CommonBookings] GO /* Common bookings upgrade script */ /* checks the upgrade_log table. if we've already run this script, it will set noexec on which means it does nothing meaningful at all */ if exists(select 0 from upgrade_log where version = '1.0.1') begin set noexec on end go /* put statements here ...
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'AdventureWorksLT 2012 Sample OLTP Database'; GO EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Primary filegroup for the AdventureWorks sample database.', @level0type = N'FILEGROUP', @level0name = N'PRIMARY';
INSERT INTO Grade VALUES('1','Intern','ITN','1','3'); INSERT INTO Grade VALUES('2','Admin Assistant','ADMIN','2','6'); INSERT INTO Grade VALUES('3','Admin Supervisor','ADMSUP','5','11'); INSERT INTO Grade VALUES('4','Admin Office Manager','ADMMGR','10','15'); INSERT INTO Grade VALUES('5','Receptionist','RECEP','3',...
<reponame>Tak-Irie/kurakichi<gh_stars>0 /* Warnings: - Changed the type of `sentAt` on the `Message` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. */ -- AlterTable ALTER TABLE "Message" DROP COLUMN "sentAt", ADD COLUMN "s...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 06 Des 2019 pada 07.08 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<gh_stars>0 SET CHARACTER SET "utf8"; CREATE DATABASE IF NOT EXISTS %db_name% DEFAULT CHARACTER SET "utf8"; CREATE TABLE IF NOT EXISTS %db_name%.mirrormx_customer_chat_user ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` CHAR( 32 ) NOT NULL , `mail` CHAR( 64 ) NOT NULL , `password` CHAR( 25...
--============================================================================ USE [TechMarket]; GO ------------------------------------------------------------------------------ IF EXISTS( SELECT * FROM sys.tables WHERE name = 'OrderStatuses' AND SCHEMA_NAME(schema_id) = 'dbo') BEGIN DROP TABLE dbo.OrderStatus...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2020 at 04:32 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
<gh_stars>0 ALTER TABLE access_management ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE access_management ADD COLUMN calling_service_name VARCHAR(100) DEFAULT NULL; ALTER TABLE services ADD COLUMN last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE resources...
INSERT INTO public."Club" (id, "createdAt", "updatedAt", name, description, address, "locationId") VALUES (1, '2021-04-12 19:43:28.747', '2021-04-12 21:43:12.000', 'SPO Radovljica', null, null, 1);
/** * Created by PhpStorm. * User: my * Date: 2017-04-16 * Time: 오후 11:41 */ CREATE TABLE nb_members( idx INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '인덱스', name VARCHAR(10) NOT NULL COMMENT '이름', nick VARCHAR(30) NOT NULL COMMENT '닉네임', id VARCHAR(15) NOT NULL UNIQUE KEY COMMENT '아이디', ...
<reponame>pnavo/sequelizedBurger INSERT INTO burgers(burger_name, devoured, date) VALUES ("Big Mac", false, "2017-07-25 04:20:00"), ("Baconator", false, "2017-07-25 16:20:00"), ("Quarter Pounder", false, "2017-07-25 16:20:01"), ("Royal with Cheese", false, "2017-07-25 04:20:20"), ("Double Double", true, "2017-0...
<filename>src/sql/messages.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 23, 2019 at 09:21 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
<filename>install/delphiscreenshottestsuite.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 20, 2017 at 04:10 PM -- Server version: 5.7.15-log -- PHP Version: 7.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
CREATE TABLE [dbo].[Tags] ( [Id] INT NOT NULL PRIMARY KEY, [Name] NVARCHAR(100) NOT NULL )
ALTER TABLE `User` ADD COLUMN `accepted_terms` TINYINT(1) NULL;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Värd: 127.0.0.1 -- Tid vid skapande: 09 aug 2018 kl 20:43 -- Serverversion: 10.1.26-MariaDB -- PHP-version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<filename>bajacalifornia_norte/settlement_bajacalifornia_norte.sql<gh_stars>1-10 insert into settlement(id, name) values(UUID_TO_BIN('ea9aeeab-c363-49a0-8770-fdd44873d125'), '1 de Diciembre'); insert into settlement(id, name) values(UUID_TO_BIN('88424d05-65b...
--liquibase formatted sql --changeset liquidbase:V_1.0.0_ms_ss_00 create TABLE application( id INTEGER NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, type VARCHAR(100) NOT NULL, state integer NOT NULL, CONSTRAINT application PRIMARY KEY (id) )
-- Revert ovid:dates-to-sequences from sqlite BEGIN; DROP TABLE articles; CREATE TABLE articles ( article_id INTEGER PRIMARY KEY, title VARCHAR(100) NOT NULL UNIQUE, slug VARCHAR(100) NOT NULL UNIQUE, directory VARCHAR(200) NOT NULL, created TEXT NOT NULL ); INSERT INTO article...
-- -- Author: <NAME> -- Date: 2020-08-06 18:07:25 +0100 (Thu, 06 Aug 2020) -- -- vim:ts=2:sts=2:sw=2:et:filetype=sql -- -- https://github.com/harisekhon/sql -- -- License: see accompanying Hari Sekhon LICENSE file -- -- If you're using my code you're welcome to connect with me on LinkedIn and optionally send me f...
-- file:timestamptz.sql ln:54 expect:true INSERT INTO TIMESTAMPTZ_TBL VALUES ('undefined')
-- 2017-07-11T17:34:30.833 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_UI_Element SET SeqNo=10,Updated=TO_TIMESTAMP('2017-07-11 17:34:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=543634 ; -- 2017-07-11T17:34:47.868 -- I forgot to set the DICTIONARY_ID_COMMENTS Syste...
/* Project file: S01_01_APP_CRT_ADMIN_AREA_V2_LOV_dml */ /* Project name: Capital Rehabilitation Tracking Reporting */ /* Author: <NAME> */ /* Script type: Database creation script */ /* Created on: ...
<reponame>jefking/Sql-Geo CREATE TABLE [Geo].[Country] ( [IsoCode] CHAR (2) NOT NULL, [Name] VARCHAR (200) NOT NULL, [Position] [sys].[geography] NOT NULL, PRIMARY KEY CLUSTERED ([IsoCode] ASC) ); GO CREATE SPATIAL INDEX [SPATIAL_Country_Position] ON [Geo].[Country] ([Posit...
-- /* -- * Licensed to the Apache Software Foundation (ASF) under one or more -- * contributor license agreements. See the NOTICE file distributed with -- * this work for additional information regarding copyright ownership. -- * The ASF licenses this file to You under the Apache License, Version 2.0 -- * (the "L...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS "job" ( "id" BIGSERIAL PRIMARY KEY, "app_name" TEXT NOT NULL, "state" TEXT NOT NULL, "attributes" HSTORE NULL DEFAULT NULL, created_at TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(), updated_at TIMESTAMP WITHOUT TIME ZONE NULL DEFAULT NULL ); CREATE TABLE IF N...
# standardSQL # Detailed upgrade headers for 20.04, 20.05 and 20.06 SELECT client, firstHtml, JSON_EXTRACT_SCALAR(payload, '$._protocol') AS protocol, IF(url LIKE 'https://%', 'https', 'http') AS http_or_https, regexp_extract(regexp_extract(respOtherHeaders, r'(?is)Upgrade = (.*)'), r'(?im)^([^=]*?)(?:, [a-z-...
create table recipetagsrelations ( id bigserial not null constraint recipetagsrelations_pkey primary key, recipe_id bigint not null constraint fk_recipetagsrelations_recipe_id_id references recipes on update cascade on delete cascade, tag_id ...
<reponame>majacQ/sharkey<gh_stars>100-1000 -- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE github_user_mappings( sso_identity VARCHAR(255) PRIMARY KEY NOT NULL UNIQUE, github_username VARCHAR(255) NOT NULL UNIQUE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- +goose Down -- SQ...
DROP TABLE IF EXISTS `tb_misc`; CREATE TABLE `tb_misc` ( `ID` BIGINT NOT NULL AUTO_INCREMENT, `M_Name` VARCHAR(64) NOT NULL DEFAULT '', `M_Value` VARCHAR(64) NOT NULL DEFAULT '', `M_Type` VARCHAR(64) NOT NULL DEFAULT '', PRIMARY KEY (`ID`) ) ENGINE=Innodb DEFAULT CHARSET=utf8; ALTER TABLE tb_misc ADD INDEX tb...
-- Could not auto-generate a down migration. -- Please write an appropriate down migration for the SQL below: -- alter table "schedule"."Event" add column "automaticParticipationSurvey" boolean -- not null default 'false';
PRAGMA journal_mode=WAL; BEGIN; CREATE TABLE rooms ( id INTEGER NOT NULL PRIMARY KEY, /* internal database id of the room */ token TEXT NOT NULL UNIQUE COLLATE NOCASE, /* case-insensitive room identifier used in URLs, etc. */ name TEXT NOT NULL, /* Publicly visible room name */ description TEXT, /* P...
CREATE TABLE user_profile ( user_id SERIAL, user_email VARCHAR(255) NOT NULL, user_name VARCHAR(255) DEFAULT NULL, login_token VARCHAR(255) NOT NULL, profile_img BYTEA DEFAULT NULL, gender VARCHAR(20) DEFAULT NULL, birthday VARCHAR(20) DEFAULT NULL, date_added TIMESTAMP WITH TIME ZONE DEFAULT NULL, date_modifi...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-12-2017 a las 05:38:53 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<reponame>commular/commular-bb-generate CREATE TABLE `CONTENT_STREAM` (`id` BIGINT AUTO_INCREMENT NOT NULL, `CONTENT` LONGBLOB NOT NULL, CONSTRAINT `PK_CONTENT_STREAM` PRIMARY KEY (`id`)); ALTER TABLE `OBJECT_DATA` ADD `CS_ID` BIGINT; ALTER TABLE `RENDITION`...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 21, 2020 at 08:43 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE locked_currency( locked_currency_id SERIAL PRIMARY KEY, character_name TEXT NOT NULL, type TEXT NOT NULL, amount INTEGER NOT NULL )
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2020 at 06:09 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
CREATE PROCEDURE down4 AS BEGIN ALTER TABLE Player DROP CONSTRAINT DF_playerAge END GO
<gh_stars>0 INSERT INTO "public"."exchange"("id", "t_username", "name", "total_mention", "url", "created_at", "updated_at", "image_url") VALUES (E'a67b7708-096d-4adb-8376-57780fc4cbdc', E'@MyvoteEOS', E'MyvoteEOS DAO', 0, null, E'2022-02-21T23:21:17.556691+00:00', E'2022-02-21T23:21:17.556691+00:00', null);
<filename>C#-DB-Fundamentals/01_Databases_Basic_MS_SQL_Server/06_Table_Relations/Exercise.sql<gh_stars>1-10 --01. ONE TO ONE --UNIQUE FORGOTTEN CREATE TABLE Passports( PassportID INT PRIMARY KEY, PassportNumber VARCHAR(50) ) CREATE TABLE Persons( PersonID INT PRIMARY KEY IDENTITY, FirstName VARCHAR(50), Salary D...
SELECT pid, locktype, datname, relation::regclass, page, tuple, virtualxid transactionid, classid::regclass, objid, objsubid, virtualtransaction, mode, granted, fastpath FROM pg_locks l LEFT OUTER JOIN pg_database d ON (l.database = d.oid) {% if did %}...
<gh_stars>1-10 CREATE TABLE `sap_bill_of_material_header_data` ( `BillOfMaterial` varchar(8) NOT NULL, `BillOfMaterialCategory` varchar(1) NOT NULL, `BillOfMaterialVariant` varchar(2) NOT NULL, `BillOfMaterialVersion` varchar(4) NOT NULL, `EngineeringChangeDoc...
-- file:numeric.sql ln:402 expect:true INSERT INTO num_exp_mul VALUES (9,4,'-194415646271340.1815956522980')
-- file:plpgsql.sql ln:948 expect:false mytype char(2)
<reponame>jmarca/postgraphile_extensions<gh_stars>0 -- Revert postgraphile_extensions:pgcrypto from pg BEGIN; drop extension pgcrypto; COMMIT;
DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `email` TEXT NOT NULL UNIQUE ); CREATE TABLE `premieres` ( `id` INTEGER NOT NULL, `released_at` INTEGER NOT NULL, `title` TEXT, `poster_url` TEXT, `details_url` TEXT, PRIMARY KEY(id) ); DROP TABLE IF ...
<gh_stars>0 SELECT date(time) as dt, (100.0 * error_log.qtd / request_log.qtd) AS perc FROM log JOIN (select date(time) AS de, count(*) AS qtd FROM log WHERE status != '200 OK' GROUP BY de) AS error_log ON date(log.time) = error_log.de JOIN (SELECT date(time) AS ds, count(...
<reponame>handharbeni/trackmenuapi -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.57-0ubuntu0.14.04.1 - (Ubuntu) -- Server OS: debian-linux-gnu -- HeidiSQL Version: 9.4.0.5125 -- ------------...