sql
stringlengths
6
1.05M
<reponame>lp1791803611/aster /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50724 Source Host : localhost:3306 Source Database : aster Target Server Type : MYSQL Target Server Version : 50724 File Encoding : 65001 Date: 2021-08-03 19:20:39 */ SET ...
/* bi-19 */ WITH RECURSIVE -- note: RECURSIVE denotes that some CTE (subquery) will be recursive below. strangers AS ( SELECT DISTINCT fp1.fp_personid AS personid FROM tagclass tc1 , tagclass tc2 , tag t1 , tag t2 , forum_tag ft1 , forum_tag ft2...
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 01, 2015 at 09:31 PM -- Server version: 5.6.24 -- PHP Version: 5.5.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>ulkeba/openolat SET FOREIGN_KEY_CHECKS = 0; create table if not exists o_forum ( forum_id bigint not null, version mediumint unsigned not null, creationdate datetime, primary key (forum_id) ); create table if not exists o_property ( id bigint not null, version mediumint unsigned not null, ...
-- json select debit_id, paramter from meihao_self_credit_request where request_type = 'acard' order by create_time desc limit 100 /* 全数值格式 'td_6m_apply_p2p_cnt', 'td_idcard_3m_contact_phone_cnt', 'consumer_apply_amount', 'td_3m_apply_bank_xiaojin_cnt', 'td_idcard_middle_risk_list', 'alipay_credit_score', 'td_6m_apply...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `sri` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `sri`; -- MySQL dump 10.13 Distrib 5.6.19, for Win32 (x86) -- -- Host: localhost Database: sri -- ------------------------------------------------------ -- Server version 5.6.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
-- $Id$ -- Description: alter table WF_CARD add PARENT_CARD_ACCESS tinyint^ update WF_CARD set PARENT_CARD_ACCESS = 0^
<reponame>jkennerley/BerfWeb --truncate table BerfClient go -- select * from Client /* select top 1000 url, Duration , convert( char(30), [Created] , 126) as 'Created' from BerfClient with (nolock) where Source = 'Navigation1' -- order by Created desc */ select * from BerfClient -- select top 10 * fro...
INSERT INTO action (act_name,act_appl_cond,act_term_cond,act_prep_spec,act_exec_steps,act_obj_num) values ('Speak','../PAR/actions/Speak.py','../PAR/actions/Speak.py','../PAR/actions/Speak.py','../PAR/actions/Speak.py',-1); INSERT INTO action_parent ((SELECT act_id from action where act_name = 'Speak'),8);
DROP VIEW IF EXISTS view_daftar_pengeluaran_dinas_pendidikan; CREATE VIEW view_daftar_pengeluaran_dinas_pendidikan AS SELECT * FROM view_daftar_pengeluaran_kabupaten WHERE 1 = 1 AND id_skpd = 1; GRANT ALL PRIVILEGES ON view_daftar_pengeluaran_dinas_pendidikan TO dinas_pendidikan; REVOKE INSERT, UPDATE, DELETE ON ...
<filename>sql/_26_features_920/issue_10161_partition_collate/cases/hash_001.sql<gh_stars>1-10 CREATE TABLE t2 ( code VARCHAR(10)) collate utf8_en_ci PARTITION BY HASH (code) PARTITIONS 4; INSERT INTO t2(code) VALUES ('A'); INSERT INTO t2(code) VALUES ('a'); INSERT INTO t2(code) VALUES ('AA'); INSERT INTO t2(code) ...
-- sample comment SELECT id, -- sample comment name, -- sample comment dob FROM -- sample comment t_user WHERE id=? -- sample comment
set names 'utf8mb4'; set character_set_database = 'utf8mb4'; set character_set_server = 'utf8mb4'; USE `game`; -- create by xzk 2019-04-16 alter table `t_player` add column `systemCompensate` int(11) NOT NULL COMMENT "是否领取进阶系统补偿奖励"; -- create by zrc 2019-04-19 alter table `t_trade_order` add column `playerName`...
<reponame>cumminsjp/Agema SELECT OBJECT_NAME(ind.OBJECT_ID) AS TableName ,OBJECT_SCHEMA_NAME(ind.OBJECT_ID) AS SchemaName ,ind.name AS IndexName ,indexstats.index_type_desc AS IndexType ,indexstats.avg_fragmentation_in_percent ,CASE WHEN indexstats.avg_fragmentation_in_percent > 30 THEN CONCAT ( 'ALTER ...
drop database fridgefoodies; create database fridgefoodies; \c fridgefoodies; create extension if not exists "pgcrypto"; drop table rating; drop table comment; drop table recipe_ingredient; drop table ingredient; drop table recipe; drop table foodie; create table foodie( foodie_id uuid primary key default gen_...
<reponame>CSCfi/antero USE [VipunenTK_DW] GO /****** Object: StoredProcedure [dbo].[p_lataa_f_aloittaneiden_lapaisy_esivalmistelu] Script Date: 11.3.2020 20:27:46 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[p_lataa_f_aloittaneiden_lapaisy_esivalmistelu] AS /* Huom. 3.3.2020 /...
-- file:guc.sql ln:63 expect:true SAVEPOINT third_sp
ALTER TABLE character_db_version CHANGE COLUMN required_9339_01_characters_group required_9349_01_characters_character_action bit; ALTER TABLE `character_action` ADD `spec` tinyint(3) unsigned NOT NULL default 0 AFTER `guid`;
<gh_stars>0 CREATE DATABASE sample_mrp_db;
<gh_stars>1-10 DELIMITER $$ CREATE PROCEDURE usp_get_author_books (IN f_name VARCHAR(255), IN l_name VARCHAR(255), OUT books_count INT) BEGIN IF f_name NOT IN (SELECT a.first_name FROM `authors` AS a) THEN ROLLBACK; SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'There is no Author wit...
/* Warnings: - You are about to drop the `Preference` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `_PreferenceToUser` table. If the table is not empty, all the data it contains will be lost. */ -- DropTable PRAGMA foreign_keys=off; DROP TABLE "Preference"...
<reponame>t-kanstantsin/docker-server<filename>docker/ftp/ftp_users.sql<gh_stars>10-100 create table ftp_users ( User varchar(16) default '' not null, status enum ('0', '1') default '0' not null, Password varchar(64) default '' not null, Uid varchar(11) default '-1' not null,...
ALTER TABLE dhs_player ADD INDEX (bw_player_id); ALTER TABLE dhs_button ADD INDEX (bw_button_id);
CREATE TABLE [dbo].[tbl_employees] ( [Id] INT IDENTITY (1, 1) NOT NULL, [first_name] VARCHAR (50) NULL, [last_name] VARCHAR (50) NULL, [job_title] VARCHAR (50) NULL, [department] VARCHAR (50) NULL, [username] VARCHAR (50) NULL, [password] VARCHAR (50) NULL, PRIMAR...
-- Mostre o departamento que não tem empregados usando o operador MINUS (EXCEPT) SELECT * FROM dep EXCEPT SELECT dep.ndep, dep.nome, dep.local FROM emp, dep WHERE emp.ndep = dep.ndep ;
CREATE TABLE [dbo].[Badge] ( [BID] INT IDENTITY (1000, 1) NOT NULL, [AdminName] NVARCHAR(255) NULL, [UserName] NVARCHAR(255) NULL, [GenNotificationFlag] BIT NULL, [NotificationSubject] VARCHAR (150) NULL, [Not...
CREATE TABLE personas ( id int(11) NOT NULL, nombre varchar(255) NOT NULL, apellido varchar(255) NOT NULL, email varchar(155) NOT NULL, edad smallint(6) NOT NULL, fecha date NOT NULL, casado enum('si','no') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE personas ADD PRIMARY KEY (id); ALT...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 10, 2021 at 07:05 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>resources/postgresql.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.8 -- Dumped by pg_dump version 9.6.8 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SEL...
<filename>src/rules.sql USE DoorDorz GO -- Bed Option rule. CREATE RULE [BedOptionsRule] AS @BedOption IN ('Single', 'Double') GO CREATE RULE [RoomTypesRule] AS @RoomType IN ('Superior', 'Deluxe', 'Premiere', 'Suite') GO sp_bindrule 'BedOptionsRule', 'Hotel.tblHotelRooms.BedOption', NULL; GO sp_bindrule 'Ro...
<filename>queries/carona/get_all.sql select * from viagem where id_viagem = $1
 CREATE VIEW [dbo].[ViewBusinessOnTraffic] AS SELECT BlockID, BlockDate, TypeOfBusinessID, COUNT(*) AS N FROM dbo.ViewTraffic GROUP BY BlockID, BlockDate, TypeOfBusinessID
<reponame>fisapo/clockin-api<filename>src/main/resources/db/migration/mysql/V1__init.sql<gh_stars>0 CREATE TABLE `company` ( `id` bigint(20) NOT NULL, `gov_id` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, `date_updated` TIMESTAMP NOT NULL, `date_created` TIMESTAMP NOT NULL ) ENGINE=InnoDB DEFAULT CHAR...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 04-Jan-2019 às 22:57 -- Versão do servidor: 5.7.21-log -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
drop index idx_node_application_id; alter table node drop column application_id; drop index idx_application_name; drop table application;
insert into settlement(id, name) values(UUID_TO_BIN('82231230-a574-4b5f-a671-033d9bd7c700'), '10 de Mayo'); insert into settlement(id, name) values(UUID_TO_BIN('6b3a019e-2689-456e-9319-d3925925a96e'), '12 de Diciembre'); insert into ...
-- ---------------------------- -- Table structure for priavte_data -- ---------------------------- DROP TABLE IF EXISTS "ntci"."priavte_data"; CREATE TABLE "ntci"."priavte_data" ( "owner" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, "name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, "key" varc...
<reponame>jdkoren/sqlite-parser -- fts3al.test -- -- db eval {CREATE VIRTUAL TABLE t4 USING fts3(content)} CREATE VIRTUAL TABLE t4 USING fts3(content)
<gh_stars>10-100 -- file:oidjoins.sql ln:532 expect:true SELECT ctid, cfgowner FROM pg_catalog.pg_ts_config fk WHERE cfgowner != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_authid pk WHERE pk.oid = fk.cfgowner)
<gh_stars>0 SELECT coalesce(${nameColumn^}, 'Unnamed') as name, SUM(adopted_budget_amount)::numeric as total FROM budget_opendata WHERE ${agencyPartial^} ${uoaPartial^} ${responsibilitycenterPartial^} ${budgetcodePartial^} AND publicationdate = '20180614' GROUP BY ${nameColumn^}
DELETE FROM script_texts WHERE entry=-1533119; INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES (-1533119,'%s spots a nearby Zombie to devour!',0,3,0,0,'gluth EMOTE_ZOMBIE');
<reponame>kirkmawa/phpqbt # -------------------------------------------------------- # Host: 192.168.17.247 # Server version: 5.1.41-3ubuntu12.10 # Server OS: debian-linux-gnu # HeidiSQL version: 6.0.0.3603 # Date/time: 2012-05-05 1...
<filename>dml/tk_call_log.sql /* Navicat Premium Data Transfer Source Server : 本地数据库 Source Server Type : MySQL Source Server Version : 50728 Source Host : localhost:3308 Source Schema : platform Target Server Type : MySQL Target Server Version : 50728 File Encoding : ...
CREATE ROLE ccp_monitoring WITH LOGIN; GRANT pg_monitor to ccp_monitoring; CREATE SCHEMA IF NOT EXISTS monitor AUTHORIZATION ccp_monitoring; -- There are currently no SECURITY DEFINER functions required as long as the "pg_monitor" role is granted to ccp_monitoring. GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA monitor ...
CREATE TABLE gspanother.D_TABLE ( D_ID SERIAL NOT NULL, TEST_NAME VARCHAR(100), TEST1 VARCHAR(100), TEST2 VARCHAR(500), TEST3 VARCHAR(500), PRIMARY KEY (D_ID) ); COMMENT ON table gspanother.D_TABLE is 'D_TABLE'; COMMENT ON column gspanother.D_TABLE.D_ID is 'D_ID'; COMMENT ON column gspanother.D_TABLE.TEST_N...
<reponame>Jawshua/pg-bifrost CREATE TABLE customers (id serial primary key, first_name text, last_name text); CREATE TABLE users (id serial primary key, first_name text, last_name text); INSERT INTO customers (first_name, last_name) VALUES ('Hello', 'World'); INSERT INTO users (first_name, last_name) VALUES ('Foo', 'B...
--liquibase formatted sql --changeset zapodot:createUserTable CREATE TABLE User ( id INT IDENTITY PRIMARY KEY, name VARCHAR(255), created TIMESTAMP NOT NULL DEFAULT (CURRENT_TIMESTAMP) ); --rollback drop table Uset; --changeset zapodot:createRolesTable CREATE TABLE Role ( id INT IDENTITY PRIMARY KEY,...
select type || ' ' || name as resource, case when (arguments ->> 'tier') = 'Standard' and (arguments ->> 'resource_type') = 'StorageAccounts' then 'ok' else 'skip' end status, name || case when (arguments ->> 'tier') = 'Standard' and (arguments ->> 'resource_type') = 'StorageAccounts' then ' Azure ...
<reponame>goldmansachs/obevo-kata //// CHANGE name=change0 CREATE TABLE table359 ( id integer NOT NULL, field1 character varying(30), usertype3field usertype3, usertype2field usertype2, usertype6field usertype6 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table359 ADD CONSTRAINT table359_...
CREATE FUNCTION func648() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE335);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE428);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE492);val:=(SELECT COUNT(*)INTO MYCOU...
<gh_stars>0 CREATE OR REPLACE VIEW V_AUTOGES_ROLES_NO_RASOS -- ============================================= -- Author: <NAME> -- ============================================= AS SELECT DISTINCT EB.CEDULA FROM EMPLEADOS_BASIC EB INNER JOIN EPL_GRUPOS EG ON EG.COD_GRU IN (SE...
<filename>src/main/resources/db/migration/V1__Init_DB.sql create table socks ( id int8 generated by default as identity, color varchar(255), cotton_part int8, quantity int8, primary key (id));
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.35) # Database: udemyProject2 # Generation Time: 2018-03-08 15:28:34 +0000 # *****************************************...
UPDATE t_ttrl_users SET picture = :picture WHERE discord_id = :discordId
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2013 年 12 月 11 日 04:43 -- 服务器版本: 5.5.31 -- PHP 版本: 5.4.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION...
CREATE table events ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, description TEXT, address TEXT); INSERT INTO events (title, description, address) VALUES("Jay-Z", "Album Release", "Las Vegas Blvd"); INSERT INTO events (title, description, address) VALUES("Nas", "Album Listening Party", "Quee...
<filename>schema.sql -- MySQL dump 10.13 Distrib 8.0.19, for osx10.15 (x86_64) -- -- Host: localhost Database: voile -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 172.16.58.3:3306 -- Erstellungszeit: 05. Dez 2021 um 18:19 -- Server-Version: 5.7.36 -- PHP-Version: 7.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
CREATE TABLE IF NOT EXISTS $$prefix$$requests ( id INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT, formid VARCHAR(63), json MEDIUMTEXT NOT NULL, yaml MEDIUMTEXT NOT NULL, mailaddress VARCHAR(255), validationkey VARCHAR(255), querykey VARCHA...
CREATE TABLE "Listings"( id int, listing_url varchar(40), scrape_id bigint, last_scraped date, name varchar(100), summary varchar(1000), space varchar(1000), description varchar(1000), experiences_offered varchar(10), neighborhood_overview varchar(1000), notes varchar(1000), transit ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2022 at 12:24 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
-------------------------------------------------------- -- DDL for Package Body AX_PLG_DROP_DOWN -------------------------------------------------------- CREATE OR REPLACE PACKAGE BODY "AX_PLG_DROP_DOWN" as gv_playground_host varchar2(100) := 'PLAYGROUND'; g_display_col constant number(1) := 1; g_re...
CREATE OR ALTER PROC usp_GetHoldersFullName AS SELECT ah.FirstName + ' ' + ah.LastName AS [Full Name] FROM AccountHolders AS ah
CREATE DATABASE numismatics; CREATE TABLE table1 (att_int INT(8) PRIMARY KEY, att_char CHAR(2)); CREATE INDEX int_index ON table1(att_int); CREATE INDEX int_index_1 ON table1(att_int);
drop database if exists confident; create database confident; use confident; CREATE TABLE usuarios ( idUsuario INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(50), apellido VARCHAR(50) ); Insert Into usuarios (nombre, apellido) Values ('Walter', 'Corrales'), ('Jon', 'Uriel'), ('Kleopatros', 'Peer...
SELECT ROUND(LONG_W,4) FROM STATION WHERE LAT_N<137.2345 ORDER BY LAT_N DESC LIMIT 1
create or replace package test_generate_customers_func as -- %suite(Generate Customers function) -- %suitepath(generate_customers) -- %rollback(manual) -- %beforeall -- %beforeeach -- %afterall procedure delete_added_customers; -- %test(Generates all requested) procedure gen_all; -...
-- file:hs_standby_disallowed.sql ln:104 expect:true REVOKE SELECT ON hs1 FROM PUBLIC
CREATE OR REPLACE VIEW compound.view_accrue_interest AS SELECT CASE WHEN t.symbol = 'WETH' THEN 'ETH' ELSE t.symbol END AS token_symbol, "interestAccumulated" / 10 ^ t.decimals AS interest_accumulated, "interestAccumulated" / 10 ^ t.decimals *p.price AS interest_accumulated_usd, "totalBorrow...
/* Original link: https://sqlundercover.com/2017/08/18/undercover-toolbox-sp_changedatabaseownership-producing-statements-to-alter-authorisation/ */ USE [master] go /********************************************** --Procedure Name: sp_ChangeDatabaseOwnerShip --Author: <NAME> --Create Date: 17/08/2017 --Description:...
<reponame>omarmrivas/Intranet<gh_stars>0 DELIMITER $$ CREATE DEFINER=`intranet`@`%` PROCEDURE `materia_profesor` (IN periodoInicial CHAR(6)) (IN periodoFinal CHAR(6)) (IN periodoPrediccion CHAR(6)) (IN parcial INT(11)) (IN `materia` CHAR(6)) READS SQL DATA DETERMINISTIC SELECT COUNT(1) from kardex K INNER JOIN ...
--------------------------------------------------------------------------------- -- These queries runs on any test instance of Databricks using spark-sql -- I tested it on Databricks Runtime 4.0, using Apache Spark 2.4, but it should -- still run on all the newer releases of Apache Spark since none of the queries ...
<gh_stars>10-100 define column domain identifier generate-unique-key (constraint-name (alias-name || "_" || column-name || "_UK")) ( varchar2(30) not null );
# --- !Ups create table api_key ( id varchar(40) not null, value varchar(255), constraint pk_api_key primary key (id) ); create index ix_api_key_value on api_key (value); # --- !Downs drop index ix_api_key_value on api_key; drop table if exists api_key;
<gh_stars>100-1000 -- This sets the MAC POOL USER role to have a user type role (role_type = 2) instead of admin role (role_type = 1) UPDATE roles SET role_type = 2 WHERE id = 'def00014-0000-0000-0000-def000000014';
<gh_stars>0 /* add_author_indexes.sql is a MySQL script intended to add a new index (author_id) to table "webpages" and a new index (author_id) to table "emails" Version: $Revision$ Date: $Date$ (C) COPYRIGHT 2016 Ahasuerus ALL RIGHTS RESERVED The copyright notice above does n...
INSERT INTO `invoicestatuses` (`uuid`, `name`, `setreadytopost`, `invoicedefault`, `defaultassignedtoid`, `inactive`, `priority`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`, `custom1`, `custom2`, `custom3`, `custom4`, `custom5`, `custom6`, `custom7`, `custom8`) VALUES ('inst:2d08635f-5341-46f5-d2a3-b0ae0...
-- per default, the working directory for scripts is the directory stored -- in the environment variable: OPAL_TOOLS_SRC_SQL_DIR -- it can be changed at runtime using the switch: --script-working-directory <directory> -- for the opal-export.sh call ---------------------------------------------------------------------...
<reponame>mtils/php-ems CREATE TABLE "project_file" ( "project_id" INTEGER, "file_id" INTEGER, FOREIGN KEY("project_id") REFERENCES "projects"("id"), FOREIGN KEY("file_id") REFERENCES "files"("id") )
<filename>43-Exercise3.sql /******************************************************************************* COM236 SQL - Knowledge Verification Labs 4 - JOIN Exercise 3 *******************************************************************************/ /***************************************************************...
<filename>database/queries/redgreen.sql<gh_stars>0 SELECT date_add(d.pricedate, INTERVAL d.period hour) AS 'time', IF( (SELECT avg(ds.price * 10.12 / 1000) FROM dayahead ds WHERE DATE_FORMAT(date_add(ds.pricedate, INTERVAL ds.period hour), "%Y-%m" ) = DATE_FORMAT(date_add(d.pricedate, INTERVAL d.period ...
USE terran; DROP TABLE IF EXISTS `banner`; CREATE TABLE `banner` ( `id` INT (11) NOT NULL AUTO_INCREMENT, `name` VARCHAR (50) DEFAULT NULL COMMENT 'Banner名称,通常作为标识', `description` VARCHAR (255) DEFAULT NULL COMMENT 'Banner描述', `delete_time` INT (11) DEFAULT NULL, `update_time` INT (11) DEFAULT NULL, PRIMARY KEY...
delimiter // create procedure promedioProductos(in id_producto int) begin select avg(calificacion) as promedio, count(id) as total, (select count(id) from comments where producto = 10 and calificacion = 1) as primero , (select count(id) from comments where producto = 10 and calificacion = 2) as segundo, (select count...
/** * ESTRUTURA DO BANCO DE DADOS E TABELAS 'SIS' */ CREATE DATABASE projeto_alicerce CHARACTER SET utf8 COLLATE utf8_general_ci; /** * USUÁRIOS */ create table projeto_alicerce.sis_usuario ( id_usuario integer not null auto_increment primary key, nome varchar(50) not null, email varchar(200) null, ...
<filename>week09/PC/query8.sql<gh_stars>1-10 SELECT MAKER, COUNT(MODEL) as number_of_pcs FROM PRODUCT WHERE TYPE = 'PC' GROUP BY MAKER HAVING number_of_pcs >= 3;
DROP FUNCTION IF EXISTS _meta.validate(type text, value text, parameter text);
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES ('0','168','82','2.01.01','2.01'...
DROP TABLE IF EXISTS `webuser`; CREATE TABLE `webuser` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(100) NOT NULL DEFAULT '', `username` VARCHAR(100) NOT NULL UNIQUE, `password` VARCHAR(100) NOT NULL, `acl` VARCHAR(1024) NOT NULL DEFAULT '', `created_at` TIMESTAMP NOT NULL DEFAULT C...
BEGIN; CREATE TYPE festival_colour AS ENUM ('none', 'red', 'blue'); ALTER TABLE guilds ADD COLUMN comment varchar(255) NOT NULL DEFAULT '', ADD COLUMN festival_colour festival_colour DEFAULT 'none', ADD COLUMN guild_hall int DEFAULT 0; END;
-- substr.test -- -- execsql { -- SELECT substr(qstr, i1, i2) -- } SELECT substr(qstr, i1, i2)
-- file:alter_generic.sql ln:47 expect:true ALTER FUNCTION alt_func2(int) SET SCHEMA alt_nsp1
<reponame>Shuttl-Tech/antlr_psql -- file:create_table.sql ln:275 expect:true DROP TABLE as_select1
{{ config( tags=['unit-test', 'bigquery'] ) }} {% call dbt_unit_testing.test('model_references_complex_query', 'sample test') %} {% call dbt_unit_testing.mock_ref ('model_a') %} select 1 as a {% endcall %} {% call dbt_unit_testing.mock_ref ('model_with_complex_query', {"mocking_strategy": "Si...
<gh_stars>0 PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_sproc','ReportDatasetInstrumentRunTime'); INSERT INTO "general_params" VALUES('list_report_data_sort_col','Seq'); INSERT INTO "general_params" VALUES(...
/* Navicat MySQL Data Transfer Source Server : ubuntu Source Server Version : 50621 Source Host : 192.168.1.63:3306 Source Database : foupa Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2014-12-17 19:05:13 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
-- upgrade -- ALTER TABLE `user` ADD `is_active` BOOL NOT NULL DEFAULT 1; -- downgrade -- ALTER TABLE `user` DROP COLUMN `is_active`;
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:opengauss关键字strict非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists strict; create sequence strict start 100 cache 50; drop sequence strict; --关键字带双引号-成功 drop sequence if exists "strict"; create sequence "strict" start 100 cache 50; drop sequence "strict"; --关键...
-- phpMyAdmin SQL Dump -- version 4.9.4deb1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 04, 2020 at 11:40 AM -- Server version: 8.0.20-0ubuntu0.19.10.1 -- PHP Version: 7.3.11-0ubuntu0.19.10.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
--liquibase formatted sql --changeset eekovtun:1.0.0/ddl/devices_seq --rollback drop sequence client.devices_seq; create sequence client.devices_seq; --changeset eekovtun:1.0.0/ddl/devices --rollback drop table client.devices; create table client.devices ( id bigint default nextval('client.devices_seq'...
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 06 Apr 2015 pada 12.06 -- Versi Server: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...