sql stringlengths 6 1.05M |
|---|
<reponame>agungdhewe/oss
CREATE TABLE `mst_corpbudget` (
`corpbudget_id` varchar(4) NOT NULL ,
`corpbudget_year` int(4) NOT NULL ,
`corpbudget_iscommit` tinyint(1) NOT NULL DEFAULT 0,
`corpbudget_commitby` varchar(14) ,
`corpbudget_commitdate` datetime ,
`corpbudget_isapprovalprogress` tinyint(1) NOT... |
<gh_stars>1-10
-- Make the icontype column nullable, preparing for its removal later.
ALTER TABLE `collections` MODIFY COLUMN `icontype` varchar(25);
|
<filename>openGaussBase/testcase/KEYWORDS/Double/Opengauss_Function_Keyword_Double_Case0025.sql
-- @testpoint:opengauss关键字double(非保留),作为角色名
--关键字不带引号-成功
drop role if exists double;
create role double with password '<PASSWORD>' valid until '2020-12-31';
drop role double;
--关键字带双引号-成功
drop role if exists "double";
cr... |
<gh_stars>100-1000
-- ----------------------------------------------------------------
-- upgrade pg_pooler_status
-- ----------------------------------------------------------------
DROP FUNCTION IF EXISTS pg_catalog.pg_stat_get_pooler_status(OUT database_name text, OUT user_name text, OUT tid int8, OUT pgoptions t... |
<filename>hw10-jpql/src/test/resources/db/migration/V1__initial_schema.sql
create table user (
id bigint(20) not null auto_increment,
name varchar(255),
age int(3)
);
create table addresses (
id_user bigint(20) not null,
street varchar(255),
foreign key (id_user) references user(id)
);
create ... |
-- There's some bits of data that we aren't sure where they are. Typically when equipment turned on, on the way to do monitoring. Going to remove it manually here.
DELETE FROM tube_air WHERE date_time BETWEEN '2016-01-27 14:03:00' AND '2016-01-27 14:13:00'; -- Martha walking to Waterloo station
DELETE FROM tube_air WH... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)
-- Dumped by pg_dump version 12.9 (Ubuntu 12.9-0ubuntu0.20.04.1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_str... |
create sequence if not exists hibernate_sequence start with 1 increment by 1;
create table if not exists accounts (
id bigint generated by default as identity(start with 1, increment by 1) primary key,
username varchar(100) not null,
encrypted_password varchar(100) not null,
constraint uk_accounts_username unique ... |
create table person (
person_id serial primary key,
person_last_name VARCHAR(40) not null,
person_first_name varchar(40) not null,
person_dob date,
gender varchar(5) not null,
email text not null
);
create table competition (
comp_id serial primary key,
comp_name varchar(255) not null,
w... |
CREATE TABLE IF NOT EXISTS accounts (
id VARCHAR(8),
pw VARCHAR(8)
); |
<gh_stars>0
CREATE TABLE subscription (
id INT NOT NULL AUTO_INCREMENT,
user_id VARCHAR(64) NOT NULL,
podcast_id INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (podcast_id) REFERENCES podcast(id)
);
|
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50625
Source Host : localhost:3306
Source Schema : smartqrm
Target Server Type : MySQL
Target Server Version : 50625
File Encoding : 65001
Date: ... |
<gh_stars>1-10
CREATE SCHEMA [config]
AUTHORIZATION [dbo];
GO
EXECUTE sp_addextendedproperty @name = N'RepoSchema_guid', @value = '1d99d297-86a3-eb11-84fa-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'config';
GO
EXEC... |
select pg_sleep(3); |
CREATE DATABASE EXERCISES
USE [EXERCISES]
CREATE TABLE [Passports](
[PassportID] INT PRIMARY KEY IDENTITY,
[PassportNumber] CHAR(10),)
CREATE TABLE [Persons](
[PersonID] INT PRIMARY KEY IDENTITY,
[FirstName] NVARCHAR(30),
[Salary] DECIMAL(10,2),
[PassportID] INT FOREIGN KEY REFERENCES [Passports]([Passport... |
<reponame>benymaxparsa/SYMPHONYC
insert into "SYMPHONYC"."user" (username, name, image_url, password) values (1, '<NAME>', 'http://dummyimage.com/159x100.png/ff4444/ffffff', 'cONhoWk');
insert into "SYMPHONYC"."user" (username, name, image_url, password) values (2, '<NAME>', 'http://dummyimage.com/214x100.png/5fa2dd/ff... |
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100
-- file:privileges.sql ln:724 expect:true
CREATE TABLE atest4 (a int)
|
CREATE VIEW [dbo].[ApplicationsDashboard]
AS
SELECT
ia.Id,
ia.DateCreated,
ia.[Status],
ia.DateSubmitted,
iaa.PlannedStartDate,
iaa.TotalIncentiveAmount,
iaa.ApprenticeshipEmployerTypeOnApproval
FROM IncentiveApplication ia
INNER JOIN IncentiveApplicationApprenticeship iaa
oN ia.Id = iaa.IncentiveAp... |
<gh_stars>1000+
SELECT materialize(toDecimal64(4,4)) - materialize(toDecimal32(2,2));
SELECT toDecimal64(4,4) - materialize(toDecimal32(2,2));
SELECT materialize(toDecimal64(4,4)) - toDecimal32(2,2);
SELECT toDecimal64(4,4) - toDecimal32(2,2);
|
<gh_stars>1-10
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
-- Loads the KEYWORDS table for auto-completion
--
-- This view is used to select from STG_KEYWORD and insert into STG_KEYWORD_AGG.
--
-- STG... |
/******************************************************
NAME: SP_fetch_bookings
FUNCTION: Fetch cart
MySql > CALL SP_fetch_bookings(?)
FIRST CREATED: 20211118
UPDATED: 20211118
******************************************************/
USE cric_shop_api;
SELECT "Dropping PROC... |
<gh_stars>0
CREATE TABLE IF NOT EXISTS songify."songs" (
"id" INT,
"title" TEXT,
"artist" TEXT,
"year" TEXT
);
INSERT INTO songify."songs" VALUES
(0,'<NAME>','Sweet','1973'),
(1,'Karn Evil 9','Emerson, Lake & Palmer','1973'),
(2,'Hello It''s Me','<NAME>','1972'),
(3,'Jane','<NA... |
<reponame>markliu2013/accounting-system<filename>server/accounting_system.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: db
-- Generation Time: May 28, 2020 at 12:31 PM
-- Server version: 5.7.30
-- PHP Version: 7.4.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANS... |
<gh_stars>0
SELECT O.PartitaIVA, COUNT(F.IdFatture) as NumeroFatture
FROM Organizzazioni as O JOIN Fatture as F
ON F.IDorganizzazioneEmittente = O.IDorganizzazione
WHERE F.Importo > 1000
GROUP BY O.PartitaIVA
HAVING NumeroFatture > 3 |
<reponame>RyanGlennersterQA/RyanGlennersterQA_Project2<gh_stars>0
drop table if exists car_park CASCADE;
create table car_park (id bigint AUTO_INCREMENT, arrival_date varchar(255), leaving_date varchar(255), make varchar(255), model varchar(255), primary key (id)); |
create procedure CorrectCardOutOfParentStep
as
begin
update c set c.current_step_id = (select top 1 id from card_step cs where cs.card_id = parent.id)
from [card] c
join [card] parent on parent.id = c.parent_id
where c.current_step_id not in (
select id from card_step cs where cs.card_id = parent.id
) and c.cur... |
<filename>data/open-source/extracted_sql/Code4Maine_beehve.sql<gh_stars>1-10
UPDATE pg_database SET datistemplate=true WHERE datname=postgis_template
|
<reponame>getwasim/egov-smartcity-suites-test
------------------START------------------
CREATE SEQUENCE SEQ_WORKORDER_ESTIMATE;
-------------------END-------------------
--rollback DROP SEQUENCE SEQ_WORKORDER_ESTIMATE;
|
SELECT
3.141592653589793 AS `__aliased--value` |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: 14 Mar 2020 pada 04.15
-- Versi Server: 5.7.29-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 S... |
CREATE TABLE pagerduty_teams
(
id varchar NOT NULL
CONSTRAINT pagerduty_teams_pk
PRIMARY KEY,
summary varchar NOT NULL,
name varchar NOT NULL,
description varchar NOT NULL
);
ALTER TABLE pagerduty_teams
OWNER TO scrapenstein;
CREATE UNIQUE INDEX pagerduty_te... |
CREATE TABLE `users` (
`username` varchar(14) NOT NULL PRIMARY KEY,
`name` varchar(150) NOT NULL,
`password` varchar(128) NOT NULL,
`email` varchar(50) NOT NULL,
`joined` timestamp(6) DEFAULT CURRENT_TIMESTAMP(6) NOT NULL,
`description` text,
INDEX `user_index` (`username`)
) ENGINE=InnoDB ... |
<reponame>relsna/sql-docs
-- This script uses sqlcmd scripting variables. They are in the form
-- $(MyVariable). For information about how to use scripting variables
-- on the command line and in SQL Server Management Studio, see the
-- "Executing Replication Scripts" section in the topic
-- "Programming Replication... |
<filename>horizon/tools/update_for_2015_11_24.sql
ALTER TABLE `cdn_domain_manager_domain` MODIFY `user_name` varchar(64);
ALTER TABLE `cdn_domain_manager_domain` MODIFY `project_name` varchar(64); |
CREATE TABLE PERSON (
id BIGINT GENERATED BY DEFAULT AS IDENTITY,
first_name varchar(255) not null,
last_name varchar(255) not null
);
insert into PERSON (first_name, last_name) values ('Peter','Gregory');
insert into PERSON (first_name, last_name) values ('George','Ballard');
insert into PERSON (first_name, last_n... |
<gh_stars>100-1000
INSERT INTO gnaf.locality_neighbour_lookup
SELECT distinct locality_pid, neighbour_locality_pid
FROM raw_gnaf.locality_neighbour
WHERE locality_pid <> neighbour_locality_pid; |
-- CreateEnum
CREATE TYPE "DesignOrigin" AS ENUM ('FIGMA_DESKTOP', 'FIGMA_WEB', 'SKETCH_DESKTOP', 'SKETCH_FILE', 'XD_DESKTOP', 'IMAGE_UPLOAD', 'UNKNOWN');
-- CreateEnum
CREATE TYPE "StorableSceneType" AS ENUM ('ANYNODE', 'SCREEN', 'COMPONENT', 'DOCS');
-- CreateTable
CREATE TABLE "SceneRecord" (
"owner" TEXT NOT ... |
DROP DATABASE IF EXISTS ctsi_dropper_s;
REVOKE ALL PRIVILEGES ON ctsi_dropper_s.* FROM 'ctsi_dropper_s'@'localhost';
DROP USER 'ctsi_dropper_s'@'localhost';
FLUSH PRIVILEGES;
|
-- @testpoint: 类型转换函数to_number,参数为非纯数字
select to_number('你好123', '99G999D9S');
select to_number('@123', '99G999D9S');
select to_number('_123', '99G999D9S');
select to_number('$#123', '99G999D9S'); |
-----------------------------------------
-- Views
-----------------------------------------
-- I made these a priori, many will be useless
-- * ABSTRACT USER, SUPPLIER, CUSTOMER
-- supplier JOIN user
CREATE OR REPLACE VIEW supplier_user AS
SELECT S.*,
U.tenant AS supplier_tenant,
U.organization AS supplier_orga... |
<reponame>sumaia97/internship<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 26, 2020 at 12:50 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00"... |
select * from stavka_dok_bckp_amb
|
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.4.17-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 11.2.0.6213
-- -----------------------------------------------... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 04, 2020 at 08:18 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
CREATE TABLE kv_jsonb (
path TEXT COLLATE "C",
key TEXT COLLATE "C",
value JSONB,
CONSTRAINT kv_jsonb_pkey PRIMARY KEY (path, key)
);
CREATE TABLE kv_json (
path TEXT COLLATE "C",
key TEXT COLLATE "C",
value JSON,
CONSTRAINT kv_json_pkey PRIMARY KEY (path, key)... |
<reponame>mario21ic/phpcart_demo<gh_stars>0
CREATE TABLE IF NOT EXISTS `moderador` (
`id` INT NOT NULL AUTO_INCREMENT,
`username` VARCHAR(45) NULL,
`password` VARCHAR(32) NULL,
`rid` INT(11) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
INSERT INTO `moderador` (`id`, `username`, `password`, `rid`) VALUES ('... |
USE [ANTERO]
IF NOT EXISTS
(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='sa' AND TABLE_NAME='sa_oiva_maaraykset_pdi')
BEGIN
CREATE TABLE sa.sa_oiva_maaraykset_pdi
(
id INT
, lupaId INT
, "kohde.tunniste" NVARCHAR(100)
, koodisto NVARCHAR(100)
, koodiarvo NVARCHAR(100)
, arvo INT
, "maaraysty... |
<filename>postgres/database/policies.sql
\ir policies/user.sql
|
CREATE TYPE [Pttcd].[ProviderLearnAimRefTable] AS TABLE
(
[ProviderUkprn] INT NOT NULL,
[LearnAimRef] VARCHAR(50) NOT NULL
)
|
/*
Select all people who don't have tickets. Select their first name, last name and age .
Order them by age (descending),
first name (ascending) and last name (ascending).
*/
select p.FirstName,
p.LastName,
p.Age
from Passengers p
left join Tickets t on t.PassengerId=p.Id
where t.Id is null
order by... |
<filename>src/migrations/sql/eav_attribute_to_shop.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 07, 2020 at 11:00 PM
-- Server version: 10.3.23-MariaDB-1
-- PHP Version: 7.4.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 28, 2021 at 01:53 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
<filename>patch/2.10.7/patch.fix-duplicate-student-examination-repproved-subjects.sql
create temporary table to_delete
(select sers.id
from student_examination_repproved_subject as sers
where mark is null and is_absent = 0
and exists
(select *
from student_examination_repproved_subject as ... |
DELETE FROM [Products]
WHERE (([ProductID] = @Original_ProductID)
AND ([ProductName] = @Original_ProductName)
AND ((@IsNull_SupplierID = 1 AND [SupplierID] IS NULL)
OR ([SupplierID] = @Original_SupplierID))
AND ((@IsNull_CategoryID = 1 AND [CategoryID] IS NULL)
OR ([CategoryID] = @Original... |
<reponame>bhardwajRahul/devtron<gh_stars>0
DROP TABLE "public"."config_map_history" CASCADE;
DROP TABLE "public"."deployment_template_history" CASCADE;
DROP TABLE "public"."app_store_charts_history" CASCADE;
DROP TABLE "public"."pre_post_ci_script_history" CASCADE;
DROP TABLE "public"."pre_post_cd_script_history" CASCA... |
USE SoftUni
--Problem - 1
SELECT TOP (5) e.EmployeeID, e.JobTitle, e.AddressID, a.AddressText
FROM Employees AS e
JOIN Addresses AS a
ON e.AddressID = a.AddressID
ORDER BY e.AddressID ASC
--Problem - 2
SELECT TOP (50) e.FirstName, e.LastName, t.[Name] AS Town, a.AddressText
FROM Employees AS e
JOIN Addresses AS... |
version https://git-lfs.github.com/spec/v1
oid sha256:c65a621ad2f9cbb774df47180e3d6e43f83a0fa5f020252e0cebf79c212b9dc6
size 133
|
<reponame>j-jordan/Ed-Fi-ODS-Implementation<filename>Application/EdFi.Ods.Extensions.TPDM/Artifacts/MsSql/Structure/Ods/0040-EXTENSION-TPDM-IdColumnUniqueIndexes.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 und... |
-- $Id$
-- Description:
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM pg_class c
JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relname = 'idx_wf_assignment_master'
AND n.nspname = 'public' -- 'public' by default
) THEN
CREATE INDEX idx_wf_assignment_master ON wf_assignment(master_as... |
<reponame>mdnazmulkarim/clinical_quality_language<filename>Src/java/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/BCSE/NCQA_Claims.cql
library NCQA_Claims version '1.0.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
include NCQA_FHIRBase version '1.0.0' cal... |
<#if qywxMessagelog.wxAgentId ?exists && qywxMessagelog.wxAgentId ?length gt 0>
/* 应用id */
and qm.wx_agent_id like CONCAT('%', :qywxMessagelog.wxAgentId ,'%')
</#if>
<#if qywxMessagelog.topartysId ?exists && qywxMessagelog.topartysId ?length gt 0>
/* 部门id */
and qm.topartys_id like CONCAT('%', ... |
<filename>src/hl7receiver-database/src/main/postgreSQL/schema/V2.2-schema.sql<gh_stars>10-100
/*
Schema V2.2: Add new organisation type
*/
insert into mapping.organisation_type (organisation_type, name) values ('SI', 'NHS Trust Site');
|
<reponame>HmhWz/incubator-linkis
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for linkis_ps_datasource_access
-- ----------------------------
DROP TABLE IF EXISTS `linkis_ps_datasource_access`;
CREATE TABLE `linkis_ps_datasource_access` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`ta... |
{% macro upload_file(local_file_path, database, table_schema, table_name) %}
{% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}
{% endmacro %} |
<filename>fixtures/doctests/installation/006/input.sql
/sbin/ldconfig -m /usr/local/pgsql/lib
|
-- Table: delegation.delegationChanges
CREATE TABLE IF NOT EXISTS delegation.delegationChanges
(
delegationChangeId bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
altinnAppId character varying COLLATE pg_catalog."default" NOT NULL,
offeredByPartyId integer NOT NULL,
coveredByPartyId integer,
coveredByUserId... |
<filename>src/test/regress/sql/hw_cipherfuncs.sql<gh_stars>100-1000
--function test
select gs_encrypt_aes128('along','1234@abc');
select gs_decrypt_aes128(gs_encrypt_aes128('along','1234@abc'),'1234@abc');
select gs_decrypt_aes128(gs_encrypt_aes128('world','1234@abc'),'abc@4321'); --difference key cause error... |
DELETE FROM `fdcevent_routes` WHERE route = 'fdc_event_participate_access' OR route = 'fdc_event_participate_partners' OR route = 'fdc_event_participate_suppliers' OR route = 'fdc_event_participate_festival';
|
# Write a SQL query to get the nth highest salary from the Employee table.
#
# +----+--------+
# | Id | Salary |
# +----+--------+
# | 1 | 100 |
# | 2 | 200 |
# | 3 | 300 |
# +----+--------+
#
# For example, given the above Employee table, the nth highest salary where n = 2 is 200. If there is no nth highes... |
INSERT INTO `user` VALUES (1,'Aslam','<EMAIL>','e10adc3949ba59abbe56e057f20f883e',NULL,NULL,'2014-01-15 19:17:29',NULL),(2,'Rajesh','<EMAIL>','e10adc3949ba59abbe56e057f20f883e',NULL,'2014-01-15 19:15:35','2014-01-15 19:15:35',NULL);
INSERT INTO `project` VALUES (1,'evolv','Develop simple task management system.',2,NUL... |
#PROBLEM 1
SELECT card_number, job_during_journey FROM travel_cards
ORDER BY card_number ASC;
#PROBLEM 2
SELECT id, CONCAT(first_name,' ', last_name) AS `full_name`, ucn FROM colonists
ORDER BY first_name,last_name,id;
#PROBLEM 3
SELECT id, journey_start,journey_end FROM journeys
WHERE purpose = 'Military'
ORDER BY ... |
IF OBJECT_ID ('ver.DELETE_VERSION', 'P' ) IS NOT NULL
DROP PROCEDURE ver.DELETE_VERSION;
--SEP--
IF OBJECT_ID('ver.VERSION_SET', 'U') IS NOT NULL
DROP TABLE ver.VERSION_SET;
--SEP--
IF OBJECT_ID ('ver.INSERT_VERSION', 'P' ) IS NOT NULL
DROP PROCEDURE ver.INSERT_VERSION;
--SEP--
IF OBJECT_ID ('ver.V_VERSIONS', 'V'... |
-- FUNCTION: public.dfo_deploy(text, text)
-- DROP FUNCTION public.dfo_deploy(text, text);
CREATE OR REPLACE FUNCTION public.dfo_deploy(
shchema_ text,
rastertable text)
RETURNS text
LANGUAGE 'plpgsql'
COST 100
VOLATILE
AS $BODY$
DECLARE
obj TEXT;
query_ text;
sounding RECORD;
n inte... |
ALTER TABLE `XXX_papoo_daten` ADD `mod_free` INT NOT NULL AFTER `mod_mime`; ##b_dump##
ALTER TABLE `XXX_plugin_fb_like_button` ADD `fb_plugin_likebutton_likeme_button_aktivieren` VARCHAR( 255 ) NOT NULL; ##b_dump##
ALTER TABLE `XXX_plugin_fb_like_button` ADD `fb_plugin_likebutton_button_unterhalb_der_berschrift_` VA... |
DROP TABLE IF EXISTS rideshare;
CREATE TABLE rideshare (
week TEXT NOT NULL,
pickup_community_area INTEGER NOT NULL,
dropoff_community_area INTEGER NOT NULL,
n_trips INTEGER NOT NULL,
n_trips_pooled_authorized INTEGER NOT NULL,
n_trips_pooled INTEGER NOT NULL,
avg_cost_no_tip_cents INTEGER N... |
<reponame>digitalfabrik/pfsense-configs<filename>scripts/radius-sql/select-rejected-logins.sql<gh_stars>1-10
SELECT username,
(SELECT `value` FROM radius.radcheck where attribute = "Max-All-Session" AND radius.radcheck.username = radius.radpostauth.username) as max_time,
(SELECT acctstarttime FROM radius.radacct where... |
-- file:subscription.sql ln:39 expect:true
SET SESSION AUTHORIZATION 'regress_subscription_user'
|
-- file:portals.sql ln:396 expect:true
DECLARE c1 CURSOR FOR SELECT * FROM uctest FOR UPDATE
|
-- file:jsonb.sql ln:28 expect:true
SELECT '[1,2,]'::jsonb
|
alter table phrase add proverb_updated datetime;
update phrase set proverb_updated = NOW() where isnull(proverb_updated) AND phrase IN (select phrase from proverb);
drop table if exists proverb;
/*==============================================================*/
/* Table: proverb ... |
<gh_stars>1-10
--Menu Categories has inserted
INSERT INTO menuCategory(categoryName,categoryDescription) VALUES ('Entrees',' small course that precedes the main course');
INSERT INTO menuCategory(categoryName,categoryDescription) VALUES ('Main Courses','the biggest dish on the menu');
INSERT INTO menuCategory(categoryN... |
# --- !Ups
alter table idproofreference add column idproofnumber varchar(255) null;
# --- !Downs
alter table idproofreference drop column idproofnumber;
|
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v34_to_v50/01 Structure/1100-AddNewTables50.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.
-- See the LICENSE ... |
<reponame>iwasingh/auxilium-db<gh_stars>1-10
INSERT INTO task (name, description, resource_id) VALUES ('ELETT_00', 'Consente di dimostrare il corretto funzionamento del gruppo elettrogeno', 6);
INSERT INTO task (name, description, resource_id) VALUES ('ELETT_01', 'Analisi elettrogeno per identificare eventuali danni', ... |
<gh_stars>1-10
update [role] set isDefault = 0
update [role] set isDefault = 1 where name = 'Template Authors' |
<reponame>strk/nz-buildings
-- Revert nz-buildings:buildings_common/default_values from pg
BEGIN;
TRUNCATE buildings_common.capture_method CASCADE;
TRUNCATE buildings_common.capture_source_group CASCADE;
COMMIT;
|
-- @testpoint: 创建普通list分区表,指定表空间
--创建表空间
drop tablespace if exists part_tabspace;
create tablespace part_tabspace relative location 'tablespace/part_tablespace';
--创建list分区表,指定表空间
drop table if exists partition_list_tab01;
create table partition_list_tab01(p_id int,p_name varchar,p_age int)
tablespace part_tabspace
p... |
{% extends "first_key_base.sql" %}
{% block select %}
SELECT {% if x %}x{% else %}y{% endif %}.{{ join_col }} AS {{ join_col }}
{% endblock %}
{% block orderby %}
ORDER BY {% if x %}x{% else %}y{% endif %}.{{ join_col }}
{% endblock %}
{% block limit %}
LIMIT {{ max_rows_column ... |
<filename>divers/bdd_schema/dumpCity/city.sql
(4657,'Aadorf',8355,1),(4658,'Aarau',5004,2),(4659,'Aarau',5000,2),(4660,'<NAME>',5032,2),(4661,'Aarberg',3270,3),(4662,'Aarburg',4663,2),(4663,'Aarwangen',4912,3),(4664,'Aathal-Seegräben',8607,4),(4665,'Aawangen',8522,1),(4666,'Abländschen',1657,3),(4667,'Abtwil AG',5646,2... |
USE `api_config`;
SELECT * FROM `workspaces_config`;
SELECT * FROM `apps_config`;
SELECT * FROM `clients_config`; |
<filename>first_file.sql
CREATE TABLE cats_one
(
cat_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50),
age INT NOT NULL
); |
<filename>db-sql/fakee_com.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50711
Source Host : 127.0.0.1
Source Database : fakee_com
Target Server Version : 50711
File Encoding : utf-8
Date: 06/04/2016 22:53:35 PM
*/
SET NAMES utf8;
SET FO... |
<reponame>nanimustiatun/CC_0212
-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- Inang: 127.0.0.1
-- Waktu pembuatan: 21 Jul 2017 pada 21.52
-- Versi Server: 5.5.27
-- Versi PHP: 5.4.7
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
<filename>data/ArTEMiS 2.6.0 Database Scheme.sql
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FORE... |
<filename>databases/ticketdb-database/src/main/resources/db/migration/V2__insert_ticket.sql
INSERT INTO TICKET(TICKET_ID,TICKET_NAME,RESERVED,SEAT_NUMBER) VALUES(3,'',FALSE,3);
INSERT INTO TICKET(TICKET_ID,TICKET_NAME,RESERVED,SEAT_NUMBER) VALUES(4,'',FALSE,4);
INSERT INTO TICKET(TICKET_ID,TICKET_NAME,RESERVED,SEAT_N... |
<filename>src/main/resources/db/migrationAks/V2_2__insert_building_location.sql
insert into
building_location(
building_location_id,
region_id,
building_location_status,
cluster_id,
epimms_id,
building_location_name,
area,
court_finder_url,
postcode,
address,
updated_time)
... |
CREATE PROCEDURE [security].[Membership_UpdatePasswordSuccessState]
(
@Username nvarchar(max)
)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Update the state for password success
UPDATE
[security].[Membership]
S... |
<filename>docs/top_games (2015-06-30).sql
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 30-06-2015 a las 22:57:58
-- Versión del servidor: 5.6.21
-- Versión de PHP: 5.5.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!4... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.2
-- Dumped by pg_dump version 12.2
-- Started on 2020-05-11 00:50:39
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_catalo... |
SELECT JsonQuery('{ "foo": "bar baz" }', 'foo');
SELECT JsonQueryString('{ "foo": "bar baz" }', 'foo');
SELECT JsonQueryUnquoted('{ "foo": "bar baz" }', 'foo');
SELECT JsonQueryString('{ "foo": 10 }', 'foo');
SELECT JsonQueryUnquoted('{ "foo": 10 }', 'foo');
SELECT JsonQuery('{ "foo": true }', 'foo')::boolean;
SELECT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.