sql
stringlengths
6
1.05M
 CREATE PROCEDURE dbo.aspnet_UsersInRoles_IsUserInRole @ApplicationName nvarchar(256), @UserName nvarchar(256), @RoleName nvarchar(256) AS BEGIN DECLARE @ApplicationId uniqueidentifier SELECT @ApplicationId = NULL SELECT @ApplicationId = ApplicationId FROM aspnet_App...
<gh_stars>0 CREATE OR REPLACE FUNCTION tr_a_upd_track_mbid() RETURNS trigger AS $$ BEGIN IF NEW.track_id != OLD.track_id OR NEW.mbid != OLD.mbid OR NEW.disabled != OLD.disabled THEN UPDATE recording_acoustid SET acoustid = (SELECT gid FROM track WHERE id=NEW.track_id), recording ...
-- Mostre uma lista dos encarregados e seus subordinados. Ordene os resultados por nome -- de encarregado e depois por nome de empregado. SELECT e1.nome "NOME", e2.nome "SUBORDINADO" FROM emp e1, emp e2 WHERE e1.nemp = e2.encar ORDER BY e1.nome ASC, e2.nome ASC ;
<filename>sqlbase/sqlscript.sql create table types ( ID int primary key, name varchar(16) )$$ create table mushrooms ( ID int primary key auto_increment, type_id int, name varchar(64) )$$ create table commits ( ID int primary key auto_increment, ...
<filename>src/doc/table.sql<gh_stars>0 use boot; -- 创建用户表 create table user ( id varchar(32) primary key, username varchar(255), password varchar(255), gender varchar(10) , mobile varchar(16), email varchar(100), isEnable bit, isExpired bit, isLocked bit, createTime timestamp ...
-------------------------------------------------------------------------------- -- Initialization -------------------------------------------------------------- -------------------------------------------------------------------------------- ----------------------------------------------------------------------------...
/* ?????????????????????????????????????????????????????????????????????? ?| ?| Procedure Name: ag_application_environment_upd ?| ?| Description: Updates the table application_environment ?| ?| @Author: Auto Generated ?| @Createdate: 2/13/2018 ?| ?| @Input Param: @application_environment_id int = ApplicationEnviron...
<reponame>deshpandega/academic CREATE DATABASE IF NOT EXISTS `project` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `project`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: project -- ------------------------------------------------------ -- Server version 5.7.12-log /*!4010...
insert into tb_product(id, name, price, stock_balance, description) values ('b6ba8d2d-b471-4810-8e91-5b8185989219', 'Mac book pro 2017', 12500.00, 19, '格外轻巧纤薄的 MacBook 配备了新的第七代处理器,拥有更快的固态硬盘存储,并提供最长可达 10 小时的电池使用时间。'), ('5712afaf-3629-4d1a-8be9-b8481fdf2d9f', 'Ipad Air2', 2300.00, 38, '美国苹果公司于北京时间2013年10月23日举行发布会,正式公布了全新...
<filename>public/images/contents/pictures/jinom_reseller.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Bulan Mei 2021 pada 07.30 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STA...
<reponame>Badminton-PBO/lion-freaky<gh_stars>1-10 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -- -- TRUNCATE table before insert `lf_bp_player` -- USE `lionfreaky`; TRUNCATE TABLE `lf_bp_player`; -- -- Dumping data for table `lf_bp_player` -- INSERT INTO `lf_bp_player` (`player...
<filename>src/SFA.DAS.Data.Database/StoredProcedures/GetNumberOfApprovedApprenticeships.sql CREATE PROCEDURE [PerformancePlatform].[GetNumberOfApprovedApprenticeships] AS SELECT COUNT(1) FROM [Data_Load].[Das_Commitments] WHERE IsLatest = 1 AND AgreementStatus = 'BothAgreed'
<gh_stars>1-10 CREATE or replace FUNCTION core_utils.filter_attribute_options(attribute_key text, option_search_str text) RETURNS text STABLE LANGUAGE SQL AS $$ with attribute_options as ( SELECT ao.attribute_id, ao.option, ao.value, ao.position, ao.id from attributes_attribute aa JOIN attributes_attributeoption...
CREATE TABLE country (id VARCHAR(2) NOT NULL, name VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "country" ("id", "name") VALUES ('AR', 'Adyentina'); INSERT INTO "country" ("id", "name") VALUES ('ZA', 'Afilika Kusini'); INSERT INTO "country" ("id", "name") VALUES ('AF', 'Afuganistani'); INSERT INTO "country" ("i...
SELECT email FROM webauth_user WHERE id=:id
create table bv.lineitem ( l_orderkey integer not null, l_partkey integer not null, l_suppkey integer not null, l_linenumber integer not null, l_quantity decimal(15, 2) not null, l_extendedprice decimal(15, 2) not null, l_discount dec...
<gh_stars>1000+ -- 2017-10-25T10:21:20.831 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Reference_ID,DefaultValue,FieldLength,Version,IsKey,IsParent,IsTranslated,IsIdentifier,SeqNo,AD_Client_ID,IsActive,Created,CreatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,IsSyncD...
<gh_stars>1000+ -- 2021-08-25T07:27:19.085Z -- URL zum Konzept DELETE FROM AD_Column_Trl WHERE AD_Column_ID=575499 ; -- 2021-08-25T07:27:19.314Z -- URL zum Konzept DELETE FROM AD_Column WHERE AD_Column_ID=575499 ; -- 2021-08-25T07:30:13.710Z -- URL zum Konzept DELETE FROM AD_Element_Trl WHERE AD_Element_ID=579570 ;...
<filename>api/admin/sql/getTasksVolunteers.sql select volunteer.id, volunteer."userId", volunteer.selected, volunteer."taskComplete", midas_user.name, midas_user.username, midas_user.government_uri as "governmentUri", midas_user.bounced, midas_user."photoId" from volunteer join midas_user on midas_user.id = vol...
-- Requires manual work to split lines wrongly joined in the paste DROP TABLE cage CASCADE; CREATE TABLE cage ( CAGE_CODE TEXT, CCR_EXTRACT_CODE TEXT, REGISTRATION_DATE TEXT, -- (mmddccyy) RENEWAL_DATE TEXT, -- (mmddccyy) LEGAL_BUS_NAME TEXT, DBA_NAME TEXT, COMPANY_DIVISION TEXT, DIVISION_NUMBER TEXT, ST_ADD_1 T...
<filename>php/tc1529/tc1529.sql -- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 14, 2009 at 12:15 PM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<filename>typo3conf/ext/gridelements/ext_tables.sql # # Table structure for table 'tx_gridelements_backend_layout' # CREATE TABLE tx_gridelements_backend_layout ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 17, 2018 at 10:43 -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
<reponame>fengyuji22/CommonDataModel /********************************************************************************* # Copyright 2014 Observational Health Data Sciences and Informatics # # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
<filename>oauth-server/src/main/resources/data.sql<gh_stars>0 insert into oauth_client_details ( client_id, client_secret, scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, refresh_token_validity, additional_information, autoapprove) values ( 'fooClientIdPassword', 'secret'...
-- noinspection SqlNoDataSourceInspectionForFile CREATE TABLE numeric_table (pk SERIAL, si SMALLINT, i INTEGER, bi BIGINT, r REAL, db DOUBLE PRECISION, r_int REAL, db_int DOUBLE PRECISION, r_nan REAL, db_nan DOUBLE PRECISION, r_pinf REAL, db_pinf DOUBLE PRECISION, r_ninf REAL, db_ninf DOUBLE PRECIS...
<gh_stars>0 update channels set channel_parent_id = :parent_id: where channel_id = :channel_id: and server_id=:server_id:;
<reponame>viswaratha12/dbwarden /****** Object: View [dbo].[V_Pipeline_Step_Tools_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Pipeline_Step_Tools_List_Report] AS SELECT Name AS [Name], Type AS [Type], Description AS [Description], Shared...
DROP TABLE IF EXISTS test.json; CREATE TABLE test.json (x Enum8('browser' = 1, 'mobile' = 2), y String) ENGINE = Memory; INSERT INTO test.json (y) VALUES ('Hello'); SELECT * FROM test.json ORDER BY y; INSERT INTO test.json (y) FORMAT JSONEachRow {"y": "World 1"}; SELECT * FROM test.json ORDER BY y; INSERT INTO test....
<reponame>highmed/highmed_dsf<gh_stars>10-100 CREATE OR REPLACE FUNCTION on_structure_definitions_update() RETURNS TRIGGER AS $$ BEGIN PERFORM on_resources_update(NEW.deleted, NEW.structure_definition_id, NEW.version, NEW.structure_definition); RETURN NEW; END; $$ LANGUAGE PLPGSQL
Rem ServersideConnect.sql Rem Rem Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. Rem Rem NAME Rem ServersideConnect.sql Rem Rem DESCRIPTION Rem SQL for invoking the method which gets a server side connection to Rem internal T2 Driver Rem Rem MODIFIED (MM/DD/YY) Rem ...
DROP TABLE IF EXISTS `com_area`; CREATE TABLE `com_area` ( `id` int(10) unsigned NOT NULL auto_increment '区域: 省份/城市', `pid` int(10) unsigned default NULL, `name` varchar(100) default NULL, `lft` int(10) unsigned default NULL, `rgt` int(10) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INC...
START TRANSACTION; -- DELETE appears faster than truncate on small tables DELETE FROM audit; DELETE FROM ingress_entry_rule; DELETE FROM ingress_entry_annotation; DELETE FROM ingress_entry; DELETE FROM ingress_version; DELETE FROM cluster_ingress_host; DELETE FROM cluster_ingress_variable; DELETE FROM cluster_ingress_...
<reponame>SkillsFundingAgency/DC-Data-LARS<filename>src/ESFA.DC.Data.LARS.Database/Staging/Tables/LARS_FrameworkMetaData.sql CREATE TABLE [Staging].[LARS_FrameworkMetaData] ( [FworkCode] INT NOT NULL, [ProgType] INT NOT NULL, [PwayCode] INT NOT NULL, [Role...
<filename>RMData/dbo/Tables/Inventory.sql CREATE TABLE [dbo].[Inventory] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [ProductId] INT NOT NULL, [Quantity] INT NOT NULL DEFAULT 1, [PurchasePrice] MONEY NOT NULL, [PurchaseDate] DATETIME2 NOT NULL DEFAULT getutcdate() )
<filename>productsdemo.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 05, 2021 at 12:07 AM -- 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 ...
<reponame>rafaribe/dw -- Create Types -- create or replace type address_Type as OBJECT( country VARCHAR(50), city VARCHAR(50), address VARCHAR(100), postal_code VARCHAR(8) ); create or replace type phone_list_type as VARRAY(3) of varchar(30); / create or replace type Email_list_type as VARRAY(3) of varchar(30); / cre...
col clatch noprint new_value ulatch prompt Latches like? : set term off echo off select '&1' clatch from dual; @getlatch &ulatch
<gh_stars>0 -- 21 USE SoftUni GO SELECT * FROM [dbo].[Employees] WHERE [DepartmentID] IN (1, 2, 4, 11) UPDATE [Employees] SET [Salary] += [Salary] * 0.12 WHERE [DepartmentID] IN (1, 2, 4, 11) SELECT [Salary] FROM [Employees]
CREATE TABLE auth_player ( id VARCHAR(100) NOT NULL, provider VARCHAR(100) NOT NULL, provider_user_id VARCHAR(100) NOT NULL, locked BIT(1) NOT NULL, PRIMARY KEY (id), CONSTRAINT auth_player_unique UNIQUE (provider, provider_user_id) ); CREATE INDEX ix_auth_player_provider_provider_user_id ON a...
<reponame>lulosys/CRMMonteria<filename>respaldo_exampledb.sql -- MySQL dump 10.13 Distrib 8.0.26, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: crm_monteria -- ------------------------------------------------------ -- Server version 5.7.33 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
<filename>sql/StreamEntityPersistDb/Tables/Portfolio.sql /* The database must have a MEMORY_OPTIMIZED_DATA filegroup before the memory optimized object can be created. The bucket count should be set to about two times the maximum expected number of distinct values in the index key, rounded up to the nearest power o...
CREATE FUNCTION global_test_one() returns text AS 'if not SD.has_key("global_test"): SD["global_test"] = "set by global_test_one" if not GD.has_key("global_test"): GD["global_test"] = "set by global_test_one" return "SD: " + SD["global_test"] + ", GD: " + GD["global_test"]' LANGUAGE plpythonu; CREATE FUNCT...
<reponame>procateodor/IngineriaProgramarii-B3-Proiect insert into conturi values('gigipopescu','<EMAIL>','GigiPopescu97'); insert into conturi values('ionionescu','<EMAIL>','ionescu95'); insert into conturi values('mariaalexe','<EMAIL>','maria98'); insert into conturi values('flaviapopa','<EMAIL>','flaviapopa5'); ...
ALTER TABLE EG_UOM RENAME COLUMN lastmodified TO lastmodifieddate; ALTER TABLE EG_UOM ADD COLUMN version numeric ; update EG_UOM set version=0 where version is null; ALTER TABLE eg_uom ALTER COLUMN baseuom type boolean USING CASE WHEN baseuom = 0 THEN FALSE WHEN baseuom = 1 THEN TRUE ELSE NULL END;
DROP TABLE mvds_peers;
BEGIN; ALTER TABLE characters ADD COLUMN exp uint16, ADD COLUMN weapon uint16, ADD COLUMN last_login integer; END;
-- insert.test -- -- execsql {INSERT INTO test2(f2,f4) VALUES(-2.22,'hi!')} INSERT INTO test2(f2,f4) VALUES(-2.22,'hi!')
DROP TABLE IF EXISTS `boss_spell_table`; CREATE TABLE IF NOT EXISTS `boss_spell_table` ( `entry` mediumint(8) NOT NULL DEFAULT '0' COMMENT 'Creature entry', `spellID_N10` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell ID for 10 normal', `spellID_N25` mediumint(8) unsigned NOT NULL DEFAULT '0' ...
<gh_stars>0 select * from `filter/pushdown/DRILL_6259_test_data` t where t.complex_field.nested_complex_field.nested_array[3] is null;
<filename>presto-product-tests/src/main/resources/sql-tests/testcases/hive_tpch/q19.sql -- database: presto; groups: tpch; tables: lineitem,part SELECT sum(l_extendedprice * (1 - l_discount)) AS revenue FROM lineitem, part WHERE ( p_partkey = l_partkey AND p_brand = 'Brand#12' AND p_container IN ('SM...
create table hibernate_sequence (next_val bigint) engine=MyISAM; create table book ( id bigint not null auto_increment, book_author varchar(255), book_name varchar(255) not null, book_details varchar(255), filename varchar(255), published_in varchar(255), tag varchar(255), user_id bigin...
-- +migrate Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE ONLY stop_areas RENAME COLUMN requested_at TO next_collect_at; -- +migrate Down -- SQL section 'Down' is executed when this migration is rolled back ALTER TABLE ONLY stop_areas RENAME COLUMN next_collect_at TO requested_at...
-- Verify ggircs-portal:tables/certification_url_001 on pg BEGIN; do $$ begin if (select exists(select * from pg_trigger where tgname='_certification_request_email' and tgrelid='ggircs_portal.certification_url'::regclass)) then raise exception 'trigger _certification_request_email exists on ggircs_portal...
create table schema_tests_008.seed_failure ( favorite_color VARCHAR(10), id INTEGER, first_name VARCHAR(11), email VARCHAR(31), ip_address VARCHAR(15), updated_at TIMESTAMP WITHOUT TIME ZONE ); INSERT INTO schema_tests_008.seed_failure ("favorite_color", "id","first_name","email","ip_address","updated_at...
CREATE EXTERNAL TABLE stocksparquet ( `symbol` STRING, uuid STRING, `ts` BIGINT, `dt` BIGINT, `datetime` STRING, `open` STRING, `close` STRING, `high` STRING, `volume` STRING, `low` STRING, PRIMARY KEY (uuid,`datetime`) ) STORED AS PARQUET LOCATION '/tmp/stocks/stocks3'; # Kafka Connect ...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 16 Jun 2020 pada 09.30 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.1.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>team-chiru/likemark-backend-ts DROP TABLE IF EXISTS Likemark; CREATE TABLE IF NOT EXISTS Likemark ( id TEXT NOT NULL PRIMARY KEY, parentId TEXT NOT NULL REFERENCES Likemark(id) ON DELETE CASCADE ON UPDATE CASCADE, title TEXT NOT NULL, url TEXT );
create table userdata ( username text not null primary key, email text not null unique, password text not null, name text not null );
-- MySQL dump 10.13 Distrib 5.6.12, for Win64 (x86_64) -- -- Host: localhost Database: mada_market -- ------------------------------------------------------ -- Server version 5.6.12-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
-- MySQL Script generated by MySQL Workbench -- śro, 4 lis 2020, 15:06:25 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='T...
<reponame>danielanywhere/LocalGoods<filename>Docs/Schema/SQLite/Views/vwKeywordLocationBulletItemInIDList.sql /* // Copyright (c). 2020 <NAME>, MCSD (danielanywhere) // Released for public access under the MIT License. // http://www.opensource.org/licenses/mit-license.php */ SELECT KeywordLocation.* FROM KeywordLocatio...
\c stockexchange INSERT INTO brokers VALUES( 55, 'Zerodha', 'www.zerodha.com', '#67, High rise Tower, Bengaluru,Karnataka', 3.00 ),( 66, 'Upstox', 'www.upstox.com', '#96, Jubliee Building,Mumbai,Maharashtra', 2.85 ),( 77, 'Groww', 'www.groww.com', '#21, Bagmane T...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 15, 2021 at 05:25 PM -- Server version: 10.4.18-MariaDB-1:10.4.18+maria~focal-log -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 23, 2020 at 04:20 PM -- Server version: 8.0.17 -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<reponame>mansiSahil/AzureSynapseAnalytics<gh_stars>0 -- Lab - SQL Pool - External tables - Parquet CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<PASSWORD>'; -- Here we are using the Storage account key for authorization CREATE DATABASE SCOPED CREDENTIAL AzureStorageCredential WITH IDENTITY = 'appdatalake...
<reponame>liangzi4000/grab-share-info EXEC [EST].[Proc_yjbb_Ins] @Code = N'603386',@CutoffDate = N'2017-09-30',@EPS = N'0.31',@EPSDeduct = N'0',@Revenue = N'7.04亿',@RevenueYoy = N'22.60',@RevenueQoq = N'-',@Profit = N'4898.79万',@ProfitYoy = N'10.16',@ProfiltQoq = N'-',@NAVPerUnit = N'2.9703',@ROE = N'16.75',@CashPerUni...
insert into users (password, username) values ('<PASSWORD>', 'admin'); insert into users (password, username) values ('<PASSWORD>', 'general'); insert into roles (name) values('ADMIN'); insert into roles (name) values('USER'); insert into users_roles (user_id, role_id) values (1, 1); insert into users_roles (user_id,...
<gh_stars>0 CREATE TABLE [dbo].[AWBuildVersion] ( [SystemInformationID] TINYINT IDENTITY (1, 1) NOT NULL, [Database Version] NVARCHAR (25) NOT NULL, [VersionDate] DATETIME NOT NULL, [ModifiedDate] DATETIME CONSTRAINT [DF_AWBuildVersion_ModifiedDate] DEFAULT (getdate())...
<filename>database/sql/vidakhacten_20181021.sql -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 21, 2018 lúc 05:33 PM -- Phiên bản máy phục vụ: 10.1.34-MariaDB -- Phiên bản PHP: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; S...
<reponame>Elderx/irssimysqllogger CREATE TABLE IF NOT EXISTS `links` ( `insertime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `nick` varchar(25) NOT NULL, `target` varchar(255) NOT NULL, `line` varchar(255) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
WITH term_courses AS (SELECT v2.id AS voter_id, pdc.term, string_agg(pdc.course, ', ') AS courses FROM voters v2 INNER JOIN stage_responses s10 ON s10.voter_id = v2.id INNER JOIN program_designs pd1 ON pd1.stage_response_id = s10.id INNER JOIN program_design_courses pdc ON pdc.program_design_id = pd1.id GROUP B...
--select db_id() --CREATE TABLE sqlIndexREBUILD ( -- id int IDENTITY(1,1) NOT NULL PRIMARY KEY, -- SQLString varchar(200) NOT NULL, -- Fraglevel Decimal(19,3) NOT NULL, --) --GO --CREATE PROCEDURE dbo.spDetectIndexFragmentation --AS -- --INSERT INTO sqlIndexRebuild (SQLString, FragLevel) SELECT DISTINCT SQL = 'ALTER...
<reponame>oneandonlyflexo/the-station-server /* CREATE THE DATABASE */ DROP USER 'tmp_user'@'127.0.0.1'; CREATE USER 'tmp_user'@'127.0.0.1' IDENTIFIED BY 'tmp_pass'; DROP DATABASE IF EXISTS tmp_db; CREATE DATABASE tmp_db DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; GRANT ALL ON tmp_db.* TO 'tmp_user'@'12...
<reponame>cqpaul/boat-house create Database BoatHouse; use BoatHouse; DROP TABLE IF EXISTS `FoodCategory`; create table FoodCategory ( Id int auto_increment, Name nvarchar(50) null, Description nvarchar(1000) null, constraint FoodCategory_pk primary key (Id) ); CREATE TABLE Food ( Id INT auto_increment, CategoryId IN...
CREATE TABLE subdivision_PE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_PE" ("id", "name", "level") VALUES (E'PE-AMA', E'Amazonas', E'department'); INSERT INTO "subdivision_PE" ("id", "name", "level") VALUES (E'PE-ANC', E'Ancash Region', E'departme...
<filename>data/test/sql/21be0963c5fe8a93e16906b034440a85536dcbf8USERS_DEFAULTS_CONSTRAINT.sql -------------------------------------------------------- -- Constraints for Table USERS_DEFAULTS -------------------------------------------------------- ALTER TABLE "USERS_DEFAULTS" ADD CONSTRAINT "PK_USERS_DEFAULTS" PRIM...
CREATE TABLE public.domicilios ( id serial, listado_id integer, prov integer, nom_provincia character varying COLLATE pg_catalog."default", ups character varying COLLATE pg_catalog."default", nro_area character varying COLLATE pg_catalog."default", dpto integer, nom_dpto character varyin...
<reponame>Shuttl-Tech/antlr_psql -- file:rolenames.sql ln:55 expect:true CREATE ROLE public
<gh_stars>1-10 CREATE EXTENSION IF NOT EXISTS "pgcrypto"; CREATE EXTENSION IF NOT EXISTS citext; CREATE SCHEMA IF NOT EXISTS membership; CREATE TABLE IF NOT EXISTS membership.users ( email text NOT NULL, password text NOT NULL, PRIMARY KEY (email) ); CREATE TABLE IF NOT EXISTS membership.member_tiers...
-- ========================================================================= -- Create external data source template for Azure Synapse Analytics Database -- ========================================================================= IF EXISTS ( SELECT * FROM sys.external_data_sources WHERE name = N'<data_sourc...
<filename>examples/postgREST_tut/db/initdb.d/10_createdb.sql -- connect to api db user dba \c api dba --begin work; create schema api; create table api.todos ( id serial primary key, done boolean not null default false, task text not null, due timestamptz default now()+'2 minutes' ); insert into api.todos (ta...
<gh_stars>0 -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EXTENSION IF NOT ...
<filename>DataB/work/view.sql<gh_stars>1-10 drop view TopPosts; drop view TopRooms; drop view TopBoards; create view TopPosts as select Post.id, count(Comment2.id) as num from Post, Comment2 where Comment2.rPost = Post.id group by Post.id order by num desc ; create view TopRooms as select Roo...
<filename>tests/suites/0_stateless/02_function/02_0000_function_arithmetic.sql SELECT 1 + 1 as a, 1 - 1, 1 * 1, 1 / 2; SELECT -1, +1; SELECT 8 / 2; SELECT 20 DIV 1; SELECT 20 DIV 2; SELECT 20 DIV 3; SELECT 20 DIV 4; SELECT 20 DIV 5; SELECT 20 DIV 6; SELECT 20 DIV 7; SELECT 20 DIV 8.1; SELECT 20.1 DIV 9; SELECT typeof(-...
<filename>RosenW-OnlineShop/onlineshopsql.sql -- -- PostgreSQL database dump -- -- Dumped from database version 9.5.12 -- Dumped by pg_dump version 9.5.12 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', ''...
<filename>application/script/ats_base/tpms_ats_task_basic.sql -- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: tpms -- ------------------------------------------------------ -- Server version 5.7.24-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
set names utf8; use n9e_hbs; alter table instance add `region` varchar(32) not null default 'default' after http_port;
/* SQLyog Ultimate v12.09 (32 bit) MySQL - 5.6.27-log : Database - pacmandata ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@F...
select bp_timestamp as "timestamp", extract(epoch from bp_timestamp::timestamp with time zone at time zone 'utc')::int as "time", count(1) from monitor_data.blocking_processes where waiting and bp_timestamp > %(from_timestamp)s and bp_timestamp <= %(to_timestamp)s and bp_host_id = %(host_id)s group by ...
insert into customer (name) values ('Andy'); insert into customer (name) values ('Sebastien'); insert into customer (name) values ('Josh');
<filename>schema/deploy/util_functions/upsert_policy.sql -- Deploy cif:database_functions/upsert_policy to pg -- requires: database_functions/create_roles begin; -- upsert_policy function with 5 parameters is for select, insert, delete statements -- and update operations where the using/with check statements are equa...
<reponame>turbot/steampipe-mod-terraform-sherlock<gh_stars>1-10 select type || ' ' || name as resource, case when (arguments -> 'allow_version_upgrade') is null then 'ok' when (arguments -> 'allow_version_upgrade')::bool then 'ok' else 'ok' end status, name || case when (arguments -> 'allow_vers...
<gh_stars>1-10 -- ---------------------------------------------------------------------------------------------------------------- -- DATABASE: json_test -- ---------------------------------------------------------------------------------------------------------------- -- The integration test for this database expects...
<gh_stars>1-10 --alter class attribute and create index drop if exists ddl_0001; CREATE CLASS ddl_0001( col1 smallint, col2 smallint, col3 smallint NOT NULL, col4 smallint DEFAULT 2 NOT NULL, col5 smallint DEFAULT 2 Not Null, col6 smallint UNIQUE, col7 sma...
<reponame>Indexical-Metrics-Measure-Advisory/watchmen -- noinspection SpellCheckingInspectionForFile CREATE TABLE topic_dqc_rule_daily ( id_ DECIMAL(20), rulecode VARCHAR(50), topicid VARCHAR(50), factorid VARCHAR(50), year DECIMAL(5), month DECIMAL(3), d...
<reponame>gedzubo/gee_sql USE test; DROP TABLE IF EXISTS predecessors; CREATE TABLE predecessors ( id int, predecessor_id int ); INSERT INTO predecessors VALUES (1, 2); INSERT INTO predecessors VALUES (2, 6); INSERT INTO predecessors VALUES (3, NULL); INSERT INTO predecessors VALUES (4, NULL); INSERT INTO predecessor...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 100411 Source Host : localhost:3306 Source Database : school Target Server Type : MYSQL Target Server Version : 100411 File Encoding : 65001 Date: 2020-04-04 18:36:38 */ SET FOREIGN_KEY_CH...
<filename>legacy/bd.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Máquina: localhost -- Data de Criação: 19-Abr-2018 às 21:02 -- Versão do servidor: 5.5.54-0ubuntu0.14.04.1 -- versão do PHP: 5.5.9-1ubuntu4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
<reponame>MariusKM/M1_Poker -- MariaDB structure definition script for schema "poker" (five-card draw) -- best import using MariaDB client command "source <path to this file>" SET CHARACTER SET utf8mb4; DROP DATABASE IF EXISTS poker; CREATE DATABASE poker CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE poker; -...