sql
stringlengths
6
1.05M
DROP VIEW detail_occurrences; CREATE OR REPLACE VIEW detail_occurrences AS SELECT o.id, o.confidential, o.comment, o.taxa_taxon_list_id, ttl.taxon_meaning_id, o.record_status, o.determiner_id, t.taxon, s.entered_sref, s.entered_sref_system, s.geom, st_astext(s.geom) AS wkt, s.location_name, s.survey_id, s.date_...
UPDATE profile SET profileHandle = "AveragePoster" WHERE profileId = UNHEX("78d500ac30794110a45e4b8d59121278"); DELETE FROM profile WHERE profileId = UNHEX("88d500ac30794110a45e4b8d59121278");
drop table if exists weather; create table weather ( id integer primary key autoincrement, temp integer not null, humidity integer not null, zipcode text not null, stamp timestamp );
<filename>packaging/dbscripts/gluster_hooks_sp.sql<gh_stars>1-10 /* ---------------------------------------------------------------- Stored procedures for database operations on Gluster Hooks related tables: - gluster_hooks - gluster_server_hooks -----------------------------------------------------------...
<filename>pkg/service/sqlitestore/sql/sqlite3/UserURLManager.Create.generated.sql -- Code generated by build_sql.awk; DO NOT EDIT. insert into user_urls (id, user_id, url_id, title, favorite, created_at, updated_at) values (:id, :user.id, :url.id, :title, :favorite, :created_at, :updated_at)
<gh_stars>100-1000 -- Verify file_checksum_org BEGIN; SELECT id, organization_id, checksum FROM file_checksums WHERE 0; ROLLBACK;
<reponame>twdroeger/ada-awa /* Copied from sysadmin-drop-postgresql.sql*/ /* File generated automatically by dynamo */
-- Description: add SYS_JMX_INSTANCE table create table SYS_JMX_INSTANCE ( ID uniqueidentifier not null, CREATE_TS datetime, CREATED_BY varchar(50), VERSION integer, UPDATE_TS datetime, UPDATED_BY varchar(50), DELETE_TS datetime, DELETED_BY varchar(50), -- CLUSTER_NODE_NAME varc...
-- -- Regression Test for Misc Permission Checks -- LOAD '$libdir/sepgsql'; -- failed
<reponame>SKalt/pg_sql_parser_tests CREATE USER MAPPING FOR local_user SERVER foreign_server OPTIONS (user 'foreign_user', password 'password');
<reponame>mhconradt/analytics-toolbox-core ---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION _H3_TOCHILDREN (index STRING, resolution DOUBLE) RETURNS ARRAY LANGUAGE JAVASCRIPT IMMUTABLE AS $$ if (!INDEX) { return []; } @@SF_LIBRARY_TOC...
<gh_stars>0 if exists (select * from sysobjects where id = object_id(N'[dbo].[TestReportSPWithParameters]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[TestReportSPWithParameters] GO CREATE PROCEDURE [dbo].[TestReportSPWithParameters] @Param1 INT, @Param2 DATETIME=NULL, ...
<filename>db/seeds.sql INSERT INTO burgers (burger_name) VALUES ('Double Bacon Cheese Burger'); INSERT INTO burgers (burger_name) VALUES ('Portabello Burger'); INSERT INTO burgers (burger_name) VALUES ('The Impossible Burger');
<reponame>nickkdb/burger INSERT INTO burgers (burger_name, devoured) VALUES ('Swiss and Mushrooms', false); INSERT INTO burgers (burger_name, devoured) VALUES ('cherry peppers and provolone', false); INSERT INTO burgers (burger_name, devoured) VALUES ('bbq and bacon', true);
/* Drop the location table if it already exists */ DROP TABLE IF EXISTS location; /* CREATE TABLE */ CREATE TABLE location( location_id DOUBLE, address_1 VARCHAR(100), address_2 VARCHAR(100), city VARCHAR(100), state VARCHAR(100), zip VARCHAR(100), county DOUBLE, location_source_value VARCHAR(100) ); /* INSERT QUERY ...
CREATE TABLE [Uran].[Vehicles] ( [gid] [uniqueidentifier] NOT NULL, [RegistrationNumber] [nvarchar](50) NULL, [id] [bigint] NOT NULL, [AuthorGID] [uniqueidentifier] NULL, [ModelGID] [uniqueidentifier] NOT NULL, [ManufacturerGID] [uniqueidentifier] NOT NULL, [ColorGID] [uniqueidentifier] NULL, [ColorTyp...
CREATE OR REPLACE FUNCTION prices.insert_approx_prices_from_dex_data(start_time timestamptz, end_time timestamptz=now()) RETURNS integer LANGUAGE plpgsql AS $function$ DECLARE r integer; BEGIN WITH hour_gs AS ( SELECT generate_series(DATE_TRUNC('hour',start_time) , DATE_TRUNC('hour',end_time) , '1 hour') AS hour ) ...
create database escola_database; use escola_database; create table usuarios( codigo INTEGER PRIMARY KEY AUTO_INCREMENT, usuario VARCHAR(50) NOT NULL, email TEXT DEFAULT 'Sem informações', pass TEXT NOT NULL );
<filename>caffin.sql -- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 07-08-2020 a las 17:18:11 -- Versión del servidor: 5.5.20 -- Versión de PHP: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
-- todos los productos SELECT DISTINCT productos2.id_producto AS id_producto,productos2.modelo AS modelo,productos2.marca AS marca, productos2.descripcion AS descripcion,productos2.precio AS precio,productos2.cantidad_existente AS cantidad_existente, productos2.estado AS estado,categorias.nombre AS categoria,subcategor...
SET DEFINE OFF; ALTER TABLE AFW_36_ATRIB_DISPN ADD ( CONSTRAINT AFW_36_ATRIB_DISPN_FK2 FOREIGN KEY (REF_TYPE_DON) REFERENCES AFW_36_TYPE_DON (SEQNC) ENABLE VALIDATE) /
/* Name: Table Profiler Author: <NAME> Purpose: Generates profile report for each column of the specified table, describing the column quantitatively and descriptively, as well as looking at frequent values and other essentials. Todo: - Add column default values. - Add computed column calculations. - Build new outpu...
<filename>OPM/GME- Product Execution/XXRD_Batch_Step_Activities.sql /*Batch Activities*/ SELECT GBSA.ACTIVITY ,GBSA.ACTIVITY_DESC ,GBSA.OFFSET_INTERVAL offset_hrs ,GBSA.PLAN_ACTIVITY_FACTOR ,GBSA.PLAN_START_DATE ,GBSA.PLAN_CMPLT_DATE ,GBSA.ACTUAL_START_DATE ...
<reponame>bettercodepaul/swt2-bsa-backend<gh_stars>1-10 -- Add Regex Column alter table configuration add configuration_regex varchar(600); -- Set SMTPEmail Regex update configuration SET configuration_regex = '[a-z0-9!#$%&''*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z...
<filename>samples/demo01/init.sql<gh_stars>1-10 -- demo01 sample -- Create the table. DROP TABLE IF EXISTS demo01; CREATE TABLE demo01 ( name TEXT NOT NULL UNIQUE, value TEXT NOT NULL ); -- Should always have comments. COMMENT ON TABLE demo01 IS 'Demo01 example table of name/value pairs'; COMMENT ON COLUMN demo0...
-- H16B. TENURE BY HOUSEHOLD SIZE (BLACK OR AFRICAN AMERICAN ALONE HOUSEHOLDER) -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_h16b ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHAR(3), ...
SELECT m.rowid as RowID, h.id AS UniqueID, m.is_from_me as Is_From_Me, CASE WHEN date > 0 then TIME(date + 978307200, 'unixepoch', 'localtime') ELSE NULL END as Time, CASE WHEN date > 0 THEN strftime('%Y%m%d', date + 978307200, 'unixepoch', 'localtime') ELSE NULL END ...
<filename>CRUDs/crudsimples/db.sql CREATE TABLE `customers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `mobile` varchar(100) NOT NULL, PRIMARY KEY (`id`) ); INSERT INTO `customers` (`id`, `name`, `email`, `mobile`) VALUES (1, '<NAME>', '<EMAIL>', '983...
CREATE TABLE ptcore.in_user_certificate ( id BIGSERIAL PRIMARY KEY NOT NULL, in_user_id BIGINT NOT NULL, created TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(), code VARCHAR(10) NOT NULL, amount_of_days INT NOT NULL, FOREIGN KEY (in_user_id) REFERENCES ptcore.in_user (id) ON UPDATE CASCADE O...
<filename>WEEKS/wk17/CodeSignal-Solutions/CodeSignal-Solutions-master/Arcade/Databases/tictactoeTournament.sql CREATE PROCEDURE tictactoeTournament() BEGIN /* Write your SQL here. Terminate each statement with a semicolon. */ SET @regx := "^((xxx.{6}|...xxx...|.{6}xxx)|((x..){3}|(.x.){3}|(..x){3})|((x...){2...
/* NOTES: - Each time dbo.backup_database is run, if there are any errors or problems, they'll be logged into this table. Otherwise, if @LogSuccessfulOutcomes = 1, then it'll also log details for successful operations as well. (But the default is to NOT log info on successful back...
-- 2020-04-21T11:11:43.418Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2020-04-21 13:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550908 ; -- 2020-04-21T11:11:45.291Z -- I forgot to set the DICTIONARY_ID_COMMENTS Syst...
<gh_stars>1-10 host dd conv=notrunc bs=1 count=2 if=/dev/zero of=/home/oracle/corruptiontest01.dbf seek=$((&block_id*8192+16))
-- Table: public.entries -- DROP TABLE public.entries; CREATE TABLE public.entries ( candidate_id integer, postcode integer, date date, firstname character varying(255) COLLATE pg_catalog."default", price_per_hour real, avg_rating real, shortname character varying(255) COLLATE pg_catalog."def...
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/07 Import Descriptors/10330 LanguageUseDescriptor.sql -- 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. --...
<reponame>SocialGouv/enfants-du-spectacle -- AlterTable ALTER TABLE "SocieteProduction" ADD COLUMN "siren" TEXT, ADD COLUMN "adresse" TEXT, ADD COLUMN "adresseCodeCommune" TEXT, ADD COLUMN "adresseCodePostal" TEXT, ADD COLUMN "formeJuridique" TEXT, ADD COLUMN "naf" TEXT, ADD COLUMN...
<filename>docker/db/docker-entrypoint-initdb.d/swdd.sql<gh_stars>10-100 CREATE SCHEMA IF NOT EXISTS "swdd"; create table if not exists swdd.swdd_vo ( "vo_id" int, "suchname" text, "name" text, "voart_id" int, "nutzungsart_id" int, "nutzbarvon" date, "nutzbarbis" date, "status" int, ...
SET allow_experimental_data_skipping_indices = 1; DROP TABLE IF EXISTS test.bloom_filter_null_array; CREATE TABLE test.bloom_filter_null_array (v Array(LowCardinality(Nullable(String))), INDEX idx v TYPE bloom_filter(0.1) GRANULARITY 1) ENGINE = MergeTree() ORDER BY v; INSERT INTO test.bloom_filter_null_array VALUE...
<filename>osgp/platform/osgp-logging/src/main/resources/db/migration/V20190410130344555__Truncates_web_service_monitor_log_table.sql<gh_stars>10-100 DO $$ BEGIN TRUNCATE web_service_monitor_log; END; $$
/* ################################################################################ Migration script to accommodate GENE_ENTREZ_GENE and GENE_ENSEMBL_GENE table, designed to model fact that genes can have multiple external database IDs. Designed for execution with Flyway database migrations tool; this should be autom...
/* Navicat Premium Data Transfer Source Server : sql Source Server Type : MySQL Source Server Version : 50640 Source Host : localhost:3306 Source Schema : shopmaster Target Server Type : MySQL Target Server Version : 50640 File Encoding : 65001 Date: 14/08/2019 15:50...
<reponame>Greengo86/xml -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Время создания: Июн 28 2018 г., 22:51 -- Версия сервера: 8.0.11 -- Версия PHP: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
\echo # Creating userlocations view set search_path = api, public; create or replace view userlocations as select id as id, latitude, longitude from data.userlocation t; alter view userlocations owner to api; -- it is important to set the correct owner to the RLS policy kicks in
<filename>dot_kernel.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 07, 2014 at 01:57 AM -- Server version: 5.5.23 -- PHP Version: 5.5.12 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `dot_kernel` -- -- ---------------------------------...
/* Warnings: - Added the required column `code` to the `Country` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "Country" ADD COLUMN "code" VARCHAR(2) NOT NULL;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 29, 2021 at 12:55 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 07, 2019 lúc 09:05 SA -- Phiên bản máy phục vụ: 5.7.14 -- Phiên bản PHP: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
DROP TABLE IF EXISTS `merchant_buylists`; CREATE TABLE `merchant_buylists` ( `item_id` decimal(9,0) NOT NULL default '0', `price` decimal(11,0) NOT NULL default '0', `shop_id` decimal(9,0) NOT NULL default '0', `order` decimal(4,0) NOT NULL default '0', `count` INT( 11 ) NOT NULL DEFAULT '-1', `currentCount...
<reponame>ryguy2407/proudcopos # ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.15-log) # Database: posapp # Generation Time: 2013-09-20 00:23:13 +0000 # ***************...
INSERT INTO roles (id, rolename) VALUES (1, 'ROLE_ADMIN'), (2, 'ROLE_USER'); INSERT INTO users (id, email, password) VALUES (3, '<EMAIL>', <PASSWORD>'), (4, '<EMAIL>', <PASSWORD>'), (5, '<EMAIL>', <PASSWORD>'); insert into user_role(user_id, role_id) values (3,1), (3,2), (4,2), ...
<filename>xml-sqlnet/test.old/get_tracefile.sql col value format a80 set linesize 200 trimspool on select value from v$diag_info where name = 'Default Trace File' /
<filename>migrations/V2017_02_20_07_52_24__channel-id.sql -- -*- sql-dialect: postgres; -*- alter table clippingsbot.team_patterns add column channel_id text not null;
create table welfare_pensions ( valid_from date not null, valid_until date not null, general decimal(1,5) not null, particular decimal(1,5) not null, child_support decimal(1,5) not null );
<filename>tests/panoramic/cli/husky/service/projection_builder/test_expectations/TestProjectionBuilder.test_basic_build_query_with_pre_filter#query.sql SELECT 'data-source' AS __data_source, sum(impressions) AS impressions, sum(spend) AS spend FROM (SELECT db_schema_metric_table_hourly_0f32eb13951cfe30.impressions AS ...
-- file:date.sql ln:191 expect:true SELECT date '4714-11-23 BC'
<reponame>plotly/electron-sql-connector CREATE DATABASE PLOTLY; USE PLOTLY; CREATE TABLE ALCOHOL_CONSUMPTION_BY_COUNTRY_2010 (LOC STRING, ALCOHOL DOUBLE) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','; LOAD DATA INPATH '/user/impala/2010_alcohol_consumption_by_country.csv' OVERWRITE INTO TABLE ALCOHOL_CONSUMPTION_BY_COU...
/* Задача 1 Отображаем все продукты и их цену для определенного заказа (макс/мин стоимость) */ SELECT products.title Продукт, products.price Цена, products_count.count "Кол-во продуктов", orders.cost "Общая стоимость заказа" FROM products_count JOIN products ON products_count.product_id=products.id ...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5460060_sys_gh1301-liefertage-webui.sql -- 2017-04-12T15:02:29.451 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,...
TRUNCATE TABLE KREW_DOC_TYP_PLCY_RELN_T DROP STORAGE / INSERT INTO KREW_DOC_TYP_PLCY_RELN_T (DOC_PLCY_NM,DOC_TYP_ID,OBJ_ID,PLCY_NM,VER_NBR) VALUES ('DEFAULT_APPROVE',2024,'61BA2DCF3BE658EEE0404F8189D80CAE',1,1) / INSERT INTO KREW_DOC_TYP_PLCY_RELN_T (DOC_PLCY_NM,DOC_TYP_ID,OBJ_ID,PLCY_NM,VER_NBR) VALUES ('DEFAULT_A...
<filename>le_chouette_coin .sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 06 mai 2021 à 09:56 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
<gh_stars>0 /** Hotelverwaltung DDL Authors: <NAME>, <NAME>, <NAME>, <NAME> **/ /* SCHEMA ERSTELLEN */ -- Schema löschen und wiederherstellen, Schema-Name 'hotel' gemäss Anforderungen DROP SCHEMA IF EXISTS hotel; CREATE SCHEMA hotel DEFAULT CHARACTER SET 'utf8'; -- Erstelltes Schema verwenden USE hotel; /* PERSONENV...
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: template -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
insert into T_TEST (NAME) values ('\$Keith\$');
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- ALWAYS BACKUP YOUR DATA BEFORE EXECUTING THIS SCRIPT -- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # This script upgrade DB schema from version 5 to version 6 ALTER TABLE environs ADD COLUMN ensure_trusted_build TINYINT(1) NOT NULL DEFAULT 0; ...
<gh_stars>1-10 CREATE TABLE tpcds.date_dim ( d_date_sk integer NOT NULL, d_date_id character varying(16) NOT NULL, d_date date, d_month_seq integer, d_week_seq integer, d_quarter_seq integer, d_year integer, d_dow integer, d_moy integer, d_dom integer, d_qoy integer, d_fy...
<reponame>apereo-tesuto/tesuto alter TABLE course alter column cid drop not NULL;
-- Deploy ggircs-portal:function_facility_has_swrs_report to pg -- requires: table_facility begin; drop function if exists ggircs_portal.facility_has_swrs_report; create or replace function ggircs_portal.facility_has_swrs_report(facility ggircs_portal.facility) returns boolean as $function$ declare current_year ...
<gh_stars>0 CREATE TABLE [dbo].[Sessions] ( [Id] INT IDENTITY (1, 1) NOT NULL, [sessiOnId] VARCHAR (255) NOT NULL, [Data] TEXT NULL, [CreatedAt] DATETIME NOT NULL, [UpdatedAt] DATETIME NOT NULL, PRIMARY KEY CLUSTERED ([Id] ASC) ); GO CREATE NONCLUSTERE...
-- -- Tests for the planner's "equivalence class" mechanism -- -- One thing that's not tested well during normal querying is the logic -- for handling "broken" ECs. This is because an EC can only become broken -- if its underlying btree operator family doesn't include a complete set -- of cross-type equality operator...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 20 2017 г., 00:05 -- Версия сервера: 5.5.53 -- Версия PHP: 5.6.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
<filename>software/cabio-database/scripts/ddl/Synonym/EVIDENCE.sql /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP PUBLIC SYNONYM EVIDENCE / -- -- EVIDENCE (Synonym) -- -- Dependencies: -- EVIDENCE (Column) ...
GRANT ALL PRIVILEGES ON DATABASE movies TO postgres; CREATE TABLE IF NOT EXISTS film_work ( id uuid PRIMARY KEY, plot TEXT, title VARCHAR(255) NOT NULL, imdb_rating REAL DEFAULT 0.0); CREATE TABLE IF NOT EXISTS genre ( id uuid PRIMARY KEY, title VARCHAR(255) NOT NULL); CREATE TABLE IF NOT EXISTS person ( id uuid PRI...
/* SQLyog Ultimate v11.33 (64 bit) MySQL - 10.1.10-MariaDB : Database - db_futsal ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN...
DELETE FROM `burgers_db`.`burgers`; INSERT INTO `burgers_db`.`burgers`(`id`, `burger_name`, `devoured`) VALUES ('1', 'Veggie Burger', True); INSERT INTO `burgers_db`.`burgers`(`burger_name`, `devoured`) VALUES ('Big Mac', False); INSERT INTO `burgers_db`.`burgers`(`burger_name`, `devoured`) VALUES ('Slider', True); INS...
<reponame>hansmodo/hackday_2017 INSERT INTO media VALUES ("ltr_hwh7050","letter","1864-02-17","Washington","MD","US","Henry","Halleck","","Ulysses","Grant","","individual","","It certainly is very much to be regretted that the fatal mistake of General Burnside has permitted Longstreet's army to winter in Tennessee.","l...
<gh_stars>0 SELECT NOW(); SELECT @@global.time_zone; SET @@global.time_zone = '-3:00'; SET time_zone = 'America/Sao_Paulo'; SELECT * FROM mysql.time_zone_name where Name like 'America%' DELIMITER $$ CREATE FUNCTION `getMes` (mes INTEGER) RETURNS VARCHAR(10) BEGIN DECLARE letreiro VARCHAR(10); IF mes = 1 T...
CREATE OR REPLACE FUNCTION achievements_hunt.f_on_player_achievements_del() RETURNS trigger LANGUAGE plpgsql AS $function$ BEGIN insert into achievements_hunt.queue_player_achievements_update(achievement_id, game_id, platform_id, player_id, operation) values (old.achievement_id, old.game_id, old.platform_id, old.p...
<filename>toko_online.sql # Host: localhost (Version 5.5.5-10.4.8-MariaDB) # Date: 2020-01-27 22:13:13 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "tb_barang" # DROP TABLE IF EXISTS `tb_barang`; CREATE TABLE `tb_barang` ( `id_barang` int(11) NOT NULL AUTO_INCREMENT, `nama_barang` varchar...
insert into cuenta_dependencias (cuenta_dependencia_codigo,cuenta_dependencia_nombre,cuenta_dependencia_descripcion) values ('PS','PS','PS'); insert into cuenta_dependencias (cuenta_dependencia_codigo,cuenta_dependencia_nombre,cuenta_dependencia_descripcion) values ('M-CM','M-CM','M-CM'); insert into cuenta_dependencia...
CREATE TABLE [Data_Load].[DAS_LoadedEvents] ( [EventFeed] NVARCHAR(50) NOT NULL PRIMARY KEY, [LastProcessedEventId] NVARCHAR(100) NOT NULL )
-- MySQL dump 10.13 Distrib 5.6.31-77.0, for Linux (x86_64) -- -- Host: localhost Database: minbazu5_coopbank -- ------------------------------------------------------ -- Server version 5.6.31-77.0-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
create table test5_00 as select * from pub.teacher grant all on test5_00 to USER201600301252 create table test5_10(test varchar(20), age numeric(3)); insert into test5_10 values('', ) 1. 88 2. 90 3. 90 4. 86 5. 90 6. 90 7. 86 8. 86 9. 76 10. 86
<gh_stars>10-100 -------------------------------------------------------- -- DDL for Table "EDM_DESIGN" -------------------------------------------------------- CREATE TABLE "PROCESS"."EDM_DESIGN" ( "DESIGN_ID" NUMBER(38,0), "EDM_NAME" VARCHAR2(256 BYTE), "EDM_VALUE" VARCHAR2(512 BYTE), "EDM_TYPE" VARC...
-- Optional proposal document for the project ALTER TABLE projects ADD proposal TEXT;
--up --down
<gh_stars>1-10 SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO --============================================= -- Copyright (C) 2018 <NAME>, @SQLDoubleG -- All rights reserved. -- -- You may alter this code for your own *non-commercial* purposes. You may -- republish altered code as long as you give due credit. -- ...
-- 1 add drp time line create or replace function start_addDrop( tc int) returns void as $$ begin insert into addDrop values (tc); delete from course_registrations; delete from pending_requests; delete from rejected_requests; end $$ language plpgsql; --EXAMPLE -- select * from start_addDrop(1214); /*-----------------...
<filename>src/test/resources/randexpr1.test_968.sql -- randexpr1.test -- -- db eval {SELECT (abs(case when (13+e in (select min(a) | case abs(min(case when t1.e in (select b from t1 union select a from t1) then t1.e when t1.b=t1.c then t1.b else c end-f)) when ~(cast(avg(c) AS integer)) then min(t1.e) else count(*) en...
-- randexpr1.test -- -- db eval {SELECT coalesce((select max(d) from t1 where coalesce((select t1.c from t1 where 17>b),d*coalesce((select max(11*19) from t1 where coalesce((select c from t1 where 19<(abs((case a when b then ~case t1.a+(select min(t1.f)+min(b) from t1) when (d) then e else t1.b end else t1.c end+f+t1....
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/select3.test_9.sql -- select3.test -- -- execsql {SELECT log, avg(n) FROM t1 GROUP BY log ORDER BY log} SELECT log, avg(n) FROM t1 GROUP BY log ORDER BY log
<reponame>pntone/CORE prompt --application/shared_components/user_interface/lovs/lov_core_pages_page_id_alias begin -- Manifest -- LOV_CORE_PAGES (PAGE_ID + ALIAS) -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.04.15' ,p_release=>'21.1.7' ,p_default_workspace_id=>9014660246496943 ,p...
-- file:timestamptz.sql ln:81 expect:true INSERT INTO TIMESTAMPTZ_TBL VALUES ('2000-03-15 03:14:04 PST+8')
/* * Migrates the AnarQ database to the latest version. */ alter table likes add created datetime not null default current_timestamp;
--============================================================================== -- GPI - <NAME> -- Desc: create AWR report from sql*Plus -- Date: 10.2015 --============================================================================== prompt prompt !!!!You need the Tuning Pack for this feature!!!! prompt ...
<reponame>riceissa/aiwatch<gh_stars>1-10 insert into organization_documents(url, title, publication_date, modified_date, author, publisher, affected_organizations, affected_people, document_scope, cause_area, notes) values ( 'https://80000hours.org/2013/11/thoughts-on-my-experience-working-at-givewell/', /* ...
-- -- Copyright 2010-2015 <NAME> -- -- 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...
ALTER TABLE db_version CHANGE COLUMN required_7061_01_mangos_spell_proc_event required_7063_01_mangos_spell_proc_event bit; -- (51474) Astral Shift (Rank 1) DELETE FROM `spell_proc_event` WHERE `entry` IN (51474); INSERT INTO `spell_proc_event` VALUES (51474, 0x00, 0, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-02-2022 a las 19:43:56 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<filename>packaging/dbscripts/upgrade/03_06_1420_add_memory_balancing_vars.sql -- Add properties for memory based balancing -- Update Optimal for equally balanced UPDATE policy_units SET custom_properties_regex='{ "CpuOverCommitDurationMinutes" : "^([1-9][0-9]*)$", "HighUtilization" : "^([5-9][0-9])$", "MaxFreeMe...
<reponame>robertosf90/oct -- -- TR_INTERFACECRM_OCT (Trigger) -- CREATE OR REPLACE TRIGGER TR_INTERFACECRM_OCT BEFORE INSERT ON INTERFACECRM_OCT REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW BEGIN -- if pc_adn_sva.desativa_interfacecrm_oct then return; end if; select to_number(to_char(sysdate,'yyyy')||t...