sql stringlengths 6 1.05M |
|---|
CREATE PROCEDURE [External].[MondayMorningBluesDeleteByRef]
@RefType NVARCHAR(50)
, @RefValue NVARCHAR(255)
AS
BEGIN
DECLARE @Id BIGINT,@ResolveStatus INT, @VersionId UNIQUEIDENTIFIER, @ExternalId UNIQUEIDENTIFIER
IF (@RefType != 'EMAIL')
RETURN 404;
EXEC @ResolveStatus = [dbo].[MondayMorningBlues_Resolve... |
delete from instrumentsummary where InstrID < 0;
delete from udstracking where InstrID < 0;
delete from instrumenttracking where InstrID < 0;
delete from instrumentnotes where InstrID < 0;
delete from visit where vid < 0;
update instrumenttracking set dcdate = ADDDATE(dcdate,1095) where not dcdate is null;
update inst... |
<filename>openGaussBase/testcase/KEYWORDS/postfix/Opengauss_Function_Keyword_Postfix_Case0031.sql<gh_stars>0
-- @testpoint:opengauss关键字postfix(非保留),作为字段数据类型(合理报错)
--前置条件
drop table if exists postfix_test cascade;
--关键字不带引号-合理报错
create table postfix_test(id int,name postfix);
--关键字带双引号-合理报错
create table postfix_test... |
<filename>src/main/resources/import.sql<gh_stars>0
INSERT INTO filter (id, enabled, evaluation_strategy, name) VALUES (0, FALSE, 'ALL_MATCH', 'default');
INSERT INTO predicate (id) VALUES (0);
INSERT INTO numerical_predicate (condition, fixed_operand, id) VALUES ('EQUAL', 0, 0);
INSERT INTO filter_predicates (filter_id... |
<filename>SQL/Basic Select/Higher Than 75 Marks.sql
SELECT NAME
FROM STUDENTS
WHERE MARKS > 75
ORDER BY RIGHT(NAME,3), ID ASC; |
<reponame>musabbir-mamun/nest-knex-mysql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 07, 2021 at 10:11 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.3.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00... |
/*
Deployment script for ExamenSql
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
*/
GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;
SET NUMERIC_ROUNDABORT OFF;
... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 15, 2021 at 08:45 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<filename>schema/dis/function/dis.greater.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path = dis, pg_catalog;
--
... |
INSERT INTO subjects (name, title)
VALUES
(
'subject_1',
hstore(ARRAY[['en', 'Subject 1'], ['fr', 'Subject 1']])
),
(
'subject_2',
hstore(ARRAY[['en', 'Subject 2'], ['fr', 'Subject 2']])
);
INSERT INTO frequencies (name, sdmx_id, title)
VALUES
(
'quarterly', 'Q',
hstore(ARRAY[['en', 'Quarterly'], ['fr', 'T... |
<filename>resources/migrations/201911180000173-create-index-idx_group_org_memberships_group_id.down.sql
DROP INDEX IF EXISTS idx_group_org_memberships_group_id |
-- file:rules.sql ln:934 expect:true
update id_ordered set name = 'update 2' where id = 2
|
INSERT INTO `Banks` (`BankId`, `Name`, `Document`, `IsDeleted`) VALUES (001,'BANCO DO BRASIL S/A', '00.000.000/0001-91', 0);
INSERT INTO `Banks` (`BankId`, `Name`, `Document`, `IsDeleted`) VALUES (002,'BANCO CENTRAL DO BRASIL', '', 0);
INSERT INTO `Banks` (`BankId`, `Name`, `Document`, `IsDeleted`) VALUES (003,'BANCO D... |
INSERT INTO CentrosEducativos
(codinfra, nombrece, departamento, municipio)
VALUES(10002, 'Centro Escolar Alfredo Espino', 'Ahuachapán', 'Ahuachapán');
INSERT INTO CentrosEducativos
(codinfra, nombrece, departamento, municipio)
VALUES(10007, 'Centro Escolar Carlota León viuda de Trigueros', 'Ahuachapán', 'Ahuachapán');... |
create database springdb;
use springdb;
drop table rules_info;
CREATE TABLE `rules_info` (
`ruleName` varchar(45) NOT NULL,
`ruleLabel` varchar(45) NOT NULL,
PRIMARY KEY (`ruleName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
create table IF NOT EXISTS OutboundVideoTrackReport (
serviceId VARCHAR(255) not null,
mediaUnitId VARCHAR(255) not null,
timestamp BIGINT not null,
callId CHAR(36) not null,
clientId CHAR(36) not null,
peerConnectionId CHAR(36) not null,
sampleSeq INTEGER not null,
ssrc BIGINT not null,
averageRtcpInterval R... |
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 04, 2016 at 08:01 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_S... |
-- Create the visualisations table
CREATE TABLE IF NOT EXISTS visualisation (
id VARCHAR(128) PRIMARY KEY,
name VARCHAR(128) NOT NULL,
description TEXT
CONSTRAINT valid_id CHECK (id ~* '^[a-z]+[a-z_]*[a-z]+$')
);
-- Create the survey_visualisation pivot table
CREATE TABLE IF NOT EXISTS survey_visualisation (
... |
<reponame>stroops/lumenshine-backend<filename>services/db/db-files/migrations_src/00022_show_memo.sql
-- +goose Up
-- SQL in this section is executed when the migration is applied.
ALTER TABLE user_profile add COLUMN show_memos boolean not null default true;
-- +goose Down
-- SQL in this section is executed when the m... |
CREATE TABLE TEST_TBL3 (
TEST_TBL3_ID BIGINT NOT NULL,
SEQTEST_AUTO BIGINT,
SEQTEST_ID BIGINT,
PRIMARY KEY (TEST_TBL3_ID)
);
COMMENT ON table TEST_TBL3 is 'テストテーブル3';
COMMENT ON column TEST_TBL3.TEST_TBL3_ID is 'TEST_TBL3_ID';
COMMENT ON column TEST_TBL3.SEQTEST_AUTO is 'SEQTEST_AUTO';
COMMENT ON column TEST_TB... |
<reponame>SocialGouv/emjpm
alter table "public"."enquete_reponses" drop constraint "enquete_reponses_mandataire_id_foreign",
add constraint "enquete_reponses_mandataire_id_fkey"
foreign key ("mandataire_id")
references "public"."mandataires"
("id") on update cascade o... |
-- start_ignore
drop function if exists recursive(int);
drop table if exists aorecursive;
-- end_ignore
create table aorecursive(id int, username text)
WITH (appendonly=true, orientation=column, compresstype=zlib, compresslevel=1, blocksize=32768)
DISTRIBUTED randomly;
insert into aorecursive(id, username) values(1... |
-- @testpoint:opengauss关键字schema_name(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists schema_name;
CREATE USER schema_name PASSWORD '<PASSWORD>';
drop user schema_name;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "schema_name";
CREATE USER "schema_name" PASSWORD '<PASSWORD>';
drop user "schema_name";
... |
<filename>database/schema.sql
DROP DATABASE IF EXISTS "tododb";
CREATE DATABASE "tododb";
\c tododb;
DROP table IF EXISTS users;
CREATE TABLE users (
user_id SERIAL NOT NULL PRIMARY KEY,
user_email TEXT NOT NULL UNIQUE
);
\COPY users (user_id, user_email) FROM './user.csv' DELIMITER ',' CSV HEADER;
DROP table IF... |
CREATE TABLE public.dim_funcionario (
sk_funcionario INTEGER NOT NULL,
nk_funcionario VARCHAR NOT NULL,
nm_func VARCHAR(20) NOT NULL,
genero CHAR(1) NOT NULL,
cod_func INTEGER NOT NULL,
CONSTRAINT sk_funcionario PRIM... |
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603067',@CutoffDate = N'2017-09-30',@EPS = N'0.27',@EPSDeduct = N'0',@Revenue = N'8.59亿',@RevenueYoy = N'36.91',@RevenueQoq = N'17.49',@Profit = N'5883.64万',@ProfitYoy = N'-19.63',@ProfiltQoq = N'-48.80',@NAVPerUnit = N'4.9001',@ROE = N'5.53',@CashPerUnit = N'-0.0014',@GrossProfitRa... |
<gh_stars>0
/*Adaptações realizadas no banco de dados
Init MYSQL inside docker
docker run --name mysql_sollos -e MYSQL_ROOT_PASSWORD='<PASSWORD>' -e MYSQL_DATABASE='sollos' -e MYSQL_USER='sollos' -e MYSQL_PASSWORD='<PASSWORD>' -d -p 3306:3306 mysql:tag --event-scheduler=ON --skip-ssl
Check
docker volume ls - do... |
<reponame>elliothanson/cs257
SELECT DISTINCT countries.NOC_region FROM countries
ORDER BY countries.NOC_region ASC;
SELECT DISTINCT athlete_names.full_name FROM athlete_names, athlete_information, countries
WHERE athlete_names.id = athlete_information.name_id AND
athlete_information.country_id = countries.id AND
... |
<reponame>brunofagner/IFComunity
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 31-Dez-2019 às 02:01
-- Versão do servidor: 10.4.6-MariaDB
-- versão do PHP: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time... |
<filename>DB/Release-3.0 December 14-ver2.sql
CREATE DATABASE IF NOT EXISTS `cso_finance` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `cso_finance`;
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64)
--
-- Host: localhost Database: cso_finance
-- ------------------------------------------------------
-- Serve... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 26, 2018 at 06:20 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE users (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
username VARCHAR NOT NULL,
public_key VARCHAR NOT NULL,
key VARCHAR NOT NULL,
salt VARCHAR NOT NULL,
login_token VARCHAR,
created_at TIMESTAMP NOT NULL DEFAULT current_timestamp,... |
<reponame>akhmetov-dev/weather-telegram-bot
CREATE DOMAIN uint64 AS bigint CHECK(VALUE >= 0 AND VALUE <= 9223372036854775807);
CREATE DOMAIN uint32 AS integer CHECK(VALUE >= 0 AND VALUE <= 2147483647);
CREATE DOMAIN uint16 AS smallint CHECK(VALUE >= 0 AND VALUE <= 32767);
CREATE TABLE User_data (
user_id uint64 PRIM... |
<reponame>AxelTerizaki/karaokemugen-app
ALTER TABLE download DROP COLUMN fk_kid UUID; |
<gh_stars>10-100
CREATE TABLE "MAPADMIN"."RPTSUMMARY"
( "RPT_CASE_ID" NUMBER,
"RPT_DATE" DATE,
"RPT_STATUS" VARCHAR2(20 BYTE),
"RPT_MATRIX" VARCHAR2(20 BYTE),
"RPT_ACTION" VARCHAR2(20 BYTE),
"RPT_CATEGORY" VARCHAR2(20 BYTE)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 25... |
copy geotargets(criteria_id, criteria_name, canonical_name, parent_id, country_code, target_type, status)
from '/db-data/geotargets-2019-05-02.csv' DELIMITER ',' CSV;
-- from '/tmp/geotargets-2019-05-02.csv' DELIMITER ',' CSV;
|
-- please create DB
--
-- CREATE DATABASE geolocation;
-- \connect geolocation
CREATE TABLE if not exists public.companies (
id integer NOT NULL,
company_token text,
created_at timestamp with time zone,
updated_at timestamp with time zone
);
CREATE SEQUENCE if not exists public.companies_id_seq
S... |
CREATE OR REPLACE
ALGORITHM = UNDEFINED VIEW `transaction_account_names` AS
select
`t`.`db_id` AS `db_id`,
`t`.`id` AS `id`,
`t`.`deadline` AS `deadline`,
`t`.`sender_public_key` AS `sender_public_key`,
... |
-- file:horology.sql ln:146 expect:true
SELECT CAST(time '01:02' AS interval) AS "+01:02"
|
<filename>functions/raise_message.sql<gh_stars>10-100
CREATE OR REPLACE FUNCTION pgl_ddl_deploy.raise_message
(p_log_level TEXT,
p_message TEXT)
RETURNS BOOLEAN
AS $BODY$
BEGIN
EXECUTE format($$
DO $block$
BEGIN
RAISE %s $pgl_ddl_deploy_msg$%s$pgl_ddl_deploy_msg$;
END$block$;
$$, p_log_level, REPLACE(p_message,'%','%... |
<reponame>kathhuynh94/SQL-Homework
# List all employees in the Sales and Development departments, including their employee number, last name, first name, and department name.
SELECT
d.dept_name,
e.emp_no,
e.first_name,
e.last_name
FROM public.employees AS e
LEFT JOIN public.salaries AS s ON s.emp_no = e.emp_... |
/* Run this file as MySQL root */
CREATE DATABASE awooga DEFAULT CHARACTER SET utf8;
USE awooga;
CREATE USER 'awooga_user'@'%' IDENTIFIED BY 'password';
GRANT
SELECT, INSERT, UPDATE, DELETE ON awooga.*
TO 'awooga_user'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
|
<filename>sql/updates/0.17/11549_01_mangos_spell_proc_event.sql
ALTER TABLE db_version CHANGE COLUMN required_11530_01_mangos_spell_proc_event required_11549_01_mangos_spell_proc_event bit;
DELETE FROM `spell_proc_event` WHERE entry = 58872;
INSERT INTO `spell_proc_event` VALUE
(58872, 0x7F, 0, 0x00000000, 0x00000000... |
use tp;CREATE TABLE `unit` (
`id` varchar(50) NOT NULL COMMENT ' public enum unittype\n {\n unknown,//未知\n all,//所有\n one,//一大队\n two,//二大队\n three,//三大队\n four,//四大队\n fushan,//福山大队\n muping,//牟平大队 10.231.53.176\n haiyang,//海阳大队 10.50.191.8\nlaiyang,//莱阳... |
-- ----------------------------
-- Alter Table release_version
-- ----------------------------
ALTER TABLE `release_version`
ADD COLUMN `fromPaasInfo` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '同步paas平台部署信息' AFTER `bindInfo`;
|
<reponame>ubibazaar/api<filename>src/main/resources/db_schema.sql
CREATE TABLE `user` (
`id` varchar(32) NOT NULL,
`name` varchar(50) NOT NULL,
`username` varchar(256) NOT NULL,
`password` varchar(60) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `UC_user_username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=la... |
<reponame>ge-enrique-cano/uaa
--
-- Cloud Foundry
-- Copyright (c) [2014] Pivotal Software, Inc. All Rights Reserved.
--
-- This product is licensed to you under the Apache License, Version 2.0 (the "License").
-- You may not use this product except in compliance with the License.
--
-- This product includes a number ... |
<gh_stars>1-10
ALTER TABLE person DROP FOREIGN KEY (companyID) REFERENCES company |
<gh_stars>1-10
insert into security_permission (security_permission_id, created_on_date, last_updated_date, description) values
('VIEW_COLLEGES_WITH_ALL_LOCATIONS', timestamp 'now', timestamp 'now', 'View colleges with all their locations, unfiltered by user location access.');
--ADMIN
insert into security_group_s... |
<gh_stars>1-10
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50635
Source Host : localhost:3306
Source Schema : ykcmf
Target Server Type : MySQL
Target Server Version : 50635
File Encoding : 65001
Date: 23/07/2... |
/* Rename sipUser to ofSipUser */
ALTER TABLE sipUser DROP CONSTRAINT sipUser_pk;
sp_rename 'sipUser', 'ofSipUser';
ALTER TABLE ofSipUser ADD CONSTRAINT ofSipUser_pk PRIMARY KEY (username);
/* Rename sipPhoneLog to ofSipPhoneLog */
sp_rename 'sipPhoneLog', 'ofSipPhoneLog';
UPDATE ofVersion set version=2 where name='s... |
--
-- Copyright 2021 The Android Open Source Project
--
-- 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
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applica... |
-- delta is set between 8 and 16 hours
SELECT
tagNumMessages.tagName AS 'tag:STRING',
8 + CAST(FLOOR(9*RANDOM()) AS INT) AS 'delta:INT'
FROM tagNumMessages
|
/*impala OMOP CDM Indices
There are no unique indices created because it is assumed that the primary key constraints have been run prior to
implementing indices.
*/
/************************
Standardized clinical data
************************/
-- impala does not support indexes
-- impala does not support inde... |
-------------------------------------------------------------------------------
--
-- PLEASE NOTE
--
-- No warranty, no liability, no support.
--
-- This script is 100% at your own risk to use.
--
-------------------------------------------------------------------------------
alter session set db_file_multiblock_read_... |
<reponame>kachristensen/Legit-Info<gh_stars>0
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "cfc_app_location" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "desc" varchar(80) NOT NULL, "date_added" datetime NOT NULL, "govlevel" varchar(80) NOT NULL, "shortname" varchar(20) NOT NULL, "hiera... |
create database carousel;
-- to connect from PHPStorm
create user 'root'@'172.17.0.1' identified by 'root';
alter user 'root'@'172.17.0.1' identified by 'root';
grant all privileges on *.* to 'root'@'172.17.0.1' with grant option;
-- mysql_secure_installation
-- alter user 'root'@'localhost' identified with mysql_nat... |
--+ holdcas on;
set names utf8;
select insert('សុមករា',1,1,'១');
select insert('សុមករា',1,1,'អ');
select insert('សុមករា',1,1,'២');
select insert('សុមករា',2,1,'១');
select insert('សុមករា',2,1,'អ');
select insert('សុមករា',2,1,'២');
select insert('សុមករា',2,5,'១');
select insert('សុមករា',2,5,'អ');
select insert('ស... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 16, 2018 at 01:25 PM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 5.5.38
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.58.3
-- Waktu pembuatan: 10 Jan 2021 pada 12.32
-- Versi server: 10.4.14-MariaDB
-- Versi PHP: 7.4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... |
show databases;
use sguessobj;
show tables;
select * from sina_status_raw_data_table order by id desc; |
-- Verify schemas/app_jobs/procedures/do_notify on pg
BEGIN;
SELECT verify_function ('app_jobs.do_notify');
ROLLBACK;
|
<gh_stars>0
SET SQL_SAFE_UPDATES = 0; |
CREATE OR REPLACE FUNCTION category(
_stream_name varchar
)
RETURNS varchar
AS $$
BEGIN
return split_part(_stream_name, '-', 1);
END;
$$ LANGUAGE plpgsql
IMMUTABLE;
|
SELECT OPRID
, VERSION
, OPRDEFNDESC
, EMPLID
, EMAILID
, OPRCLASS
, ROWSECCLASS
, ACCTLOCK
FROM PSOPRDEFN
WHERE 1=1
AND (EMPLID IN (SELECT DISTINCT EMPLID FROM PS_EMPLOYEES
WHERE BUSINESS_UNIT = '')
OR EMPLID IN (SELECT DISTINCT EMPLID ... |
-- DBO.[AUTHORIZATIONTYPE] (BEGIN)
/*
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_NAME = 'AuthorizationType') AND (TABLE_SCHEMA = 'dbo'))
DROP TABLE dbo.[AuthorizationType]
GO
*/
CREATE TABLE dbo.[AuthorizationType] (
AuthorizationTypeId ... |
CREATE TABLE IF NOT EXISTS `user_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`mobile` bigint(10) NOT NULL,
`country` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
);
--
-- Dumping data for table `user_details`
--
INSERT INTO `user_details` (`id`, `name`, `mobile`, `country`) VAL... |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `popups` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`thumbnail` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`url` varchar(191) COLLATE ... |
<reponame>WKHAllen/GreenPoll
SELECT * FROM poll WHERE id = $1;
|
insert into messages (server_id, message_from_client_id, message_from_client_uid, message_to_client_id, message_subject, message_msg, message_timestamp) values (:server_id:, :message_from_client_id:, :message_from_client_uid:, :message_to_client_id:, :message_subject:, :message_msg:, :message_timestamp:) |
USE IDI_Sandpit
IF OBJECT_ID('lib.string_strip') IS NOT NULL
DROP FUNCTION lib.string_strip
GO
-- a function to strip all the tabs, linebreaks, and spaces out of a character
-- usage is SELECT lib.string_strip(' what a lot of spaces')
CREATE FUNCTION lib.string_strip (@x VARCHAR(8000))
RETURNS CHAR(8000)
AS
BEGIN
... |
-- file:event_trigger.sql ln:105 expect:true
revoke all on table event_trigger_fire1 from public
|
-- 2017-07-19T16:27:00.381
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544448,0,TO_TIMESTAMP('2017-07-19 16:27:00','YYYY-MM-DD HH24:MI:SS'),100,'de... |
create table T(A integer primary key);
insert into T values(NULL);
insert into T values(NULL);
|
<filename>src/main/resources/ssh.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50519
Source Host : localhost:3306
Source Database : ssh
Target Server Type : MYSQL
Target Server Version : 50519
File Encoding : 65001
Date: 2018-03-08 16:28:... |
CREATE SERVICE CLASS work1_sc;
CREATE WORKLOAD work1_wl
APPLNAME('httpd.exe')
SERVICE CLASS work1_sc; |
<filename>migrations/auth/1554171675_alter_auth_provider_password.down.sql
ALTER TABLE _auth_provider_password ALTER COLUMN login_id TYPE jsonb USING login_id::text::jsonb;
ALTER TABLE _auth_provider_password RENAME COLUMN login_id TO auth_data;
ALTER TABLE _auth_provider_password DROP login_id_key;
|
-- liquibase formatted sql
-- changeset Lang:f-book-1
DROP TABLE IF EXISTS `F_BOOK`;
CREATE TABLE `F_BOOK`
(
`KEY` VARCHAR(36) COMMENT '「key」- 账本主键ID',
`NAME` VARCHAR(255) COMMENT '「name」 - 账本名称',
`CODE` VARCHAR(255) NOT NULL COMMENT '「code」 - 账本的系统编号',
`SER... |
-- Add tables for core$ScheduledTask and core$ScheduledExecution entities
create table SYS_SCHEDULED_TASK (
ID uuid not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
VERSION integer,
UPDATE_TS timestamp,
UPDATED_BY varchar(50),
DELETE_TS timestamp,
DELETED_BY varchar(50),
BEAN_... |
--ZAD9
CREATE RULE delet AS ON DELETE TO pacjenci DO ALSO DELETE FROM wizyty WHERE pacjent=OLD.pesel; |
CREATE DATABASE atividadeBD_29Agosto2021;
DROP DATABASE atividadeBD_29Agosto2021;
SHOW DATABASES;
USE atividadeBD_29Agosto2021;
SHOW TABLES;
DROP TABLE telefone;
DROP TABLE pedido;
DROP TABLE pedidoProduto;
DROP TABLE cliente;
DROP TABLE produto;
DESC telefone;
DESC pedido;
DESC pedidoProduto;
DESC cliente;
DESC ... |
-- Semantic views to connect to flattened dimensional table
--Adding Start Time
--Updating latest run stats to apollo control table
UPDATE rpt_apollo.apollo_control_table
set last_start_date = getdate()
WHERE sql_file_name = :'sqlfilename';
CREATE OR REPLACE VIEW :loadschema.v_tab_Account_Attributes AS
(
... |
SELECT COUNT(*)
FROM
tag as t,
site as s,
question as q,
tag_question as tq
WHERE
t.site_id = s.site_id
AND q.site_id = s.site_id
AND tq.site_id = s.site_id
AND tq.question_id = q.id
AND tq.tag_id = t.id
AND (s.site_name in ('stackoverflow'))
AND (t.name in ('antlr4','cell','cordova-plugins','database-trigger','derby',... |
<gh_stars>0
INSERT INTO tpalla.publication_details (publication_id, title, topic, publication_type, number_of_copies) VALUES (1, 'AARP The Magazine', 'General', 'Magazine', 1100);
INSERT INTO tpalla.publication_details (publication_id, title, topic, publication_type, number_of_copies) VALUES (2, '<NAME>', 'Fictional', ... |
-- Table to hold group descriptive information
create table groups (
id varchar(64) NOT NULL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description TEXT,
sequence_number INTEGER,
public BOOLEAN DEFAULT FALSE NOT NULL,
deleted BOOLEAN DEFAULT FALSE NOT NULL,
creation_date TIMESTAMPTZ DEFAULT NOW(),
update_... |
<reponame>rudimarboeno/Hbsis-aula<gh_stars>0
select temp.*,IIF(temp.Media >= 7, 'Aprovado','Reprovado') as 'Status' from
(Select
Nome,
Materia,
((Nota1 + Nota2 + Nota3)/3) as 'Media'
from Diario) temp; |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: December 09, 2018 at 02:02 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
-- Airline Staff:
-- 1. username: AirlineStaff password: <PASSWORD>
-- Booking Agent:
-- 1. email: <EMAIL> password: <PASSWORD... |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 14 Des 2017 pada 12.11
-- Versi Server: 10.1.25-MariaDB
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... |
<filename>production/database.setup.sql
/**
* @author: <NAME> <<EMAIL>>
* @license: Copyright KentProjects
* @link: http://kentprojects.com
*
* First off, install a MySQL server.
* Next, bind the MySQL service to the IP that you want (ideally, not a public facing one!)
* And finally, run commands like the ones b... |
<reponame>Omar20Ashraf/Mickey-Shirts<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 09, 2019 at 08:58 AM
-- Server version: 10.3.15-MariaDB
-- PHP Version: 7.2.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSAC... |
CREATE TABLE tbl_ner
AS
SELECT
tbl_kalimat.kalimat,
tbl_event.nama_event,
tbl_fac.nama_tempat,
tbl_gpe.negara,
tbl_gpe.provinsi,
tbl_gpe.kabupaten,
tbl_gpe.kota,
tbl_gpe.desa,
tbl_money.money,
tbl_org.nama_org,
tbl_org_com.nama_org_com,
tbl_person.nama_orang,
tbl_prod... |
<gh_stars>1-10
USE Superheroes
GO
SELECT p.First_Name, p.Last_Name, ae.Alter_Ego_Name
FROM Person as p JOIN
(
SELECT Person_ID, allp.Alter_Ego_ID, aae.Alter_Ego_Name
FROM Alter_Ego_Person FOR System_Time ALL as allp
JOIN Alter_Ego as aae ON allp.Alter_Ego_ID = aae.Alter_Ego_ID
) as aaep ON p.Person_ID =... |
-- -- tables
DROP TABLE capability;
DROP TABLE category;
DROP TABLE competency;
DROP TABLE phase;
DROP TABLE course;
DROP TABLE video;
DROP TABLE course_phase;
DROP TABLE video_phase;
DROP TABLE information;
DROP TABLE faq;
DROP TABLE learning_object;
DROP TABLE submission;
DROP TABLE admin;
-- -- End of file.
|
CREATE TABLE IF NOT EXISTS InformationTypes (
InformationType_ID INTEGER PRIMARY KEY,
InfoTypeIdentifier NVARCHAR (25) NOT NULL,
InfoTypeName NVARCHAR (50) NOT NULL,
BaselineConfidentiality NVARCHAR (25),
BaselineIntegrity NVARCHAR (25),
BaselineAvailability NVARCHAR (25),
EnhancedConfidenti... |
-- pager1.test
--
-- execsql {
-- CREATE TABLE t1(a, b);
-- CREATE TABLE t2(a, b);
-- PRAGMA writable_schema = 1;
-- UPDATE sqlite_master SET rootpage=5 WHERE tbl_name = 't1';
-- PRAGMA writable_schema = 0;
-- ALTER TABLE t1 RENAME TO x1;
-- }
CREATE TABLE t1(a, b);
CREATE TABLE t2(a, b);
PRAGM... |
<reponame>ldybyz/Oxite
/*
Script created by SQL Compare version 7.1.0 from Red Gate Software Ltd at 2/13/2009 11:07:13 AM
Run this script on an Oxite database from the January 5th, 2009 release (or before) to make it the
same as the Oxite schema for the February 13th, 2009 release
Please back up your database before r... |
<reponame>tweep/ensembl-variation<filename>modules/t/test-genome-DBs/homo_sapiens/core/qtl.sql
CREATE TABLE `qtl` (
`qtl_id` int(10) unsigned NOT NULL auto_increment,
`trait` varchar(255) collate latin1_bin NOT NULL default '',
`lod_score` float default NULL,
`flank_marker_id_1` int(11) default NULL,
`flank_m... |
<filename>SensateIoT.Platform.Network.Database/Security/sql_dataapi.sql
GRANT db_dataapi TO sql_dataapi; |
<reponame>dtoebe/sde
DROP DATABASE IF EXISTS doc_colab;
CREATE DATABASE doc_colab;
\connect doc_colab;
DROP TABLE IF EXISTS documnets;
CREATE TABLE documents (
id SERIAL PRIMARY KEY NOT NULL UNIQUE,
title TEXT NOT NULL,
-- slug VARCHAR(255) NOT NULL UNIQUE,
created TIMESTAMP WITHOUT TIME ZONE DEFAULT... |
<filename>src/main/resources/data.sql
-- Data for service
INSERT INTO service VALUES(1, "App for learning languages", "Vocabulary", 1);
INSERT INTO service VALUES(2, "App for personal projects", "Projects", 1);
INSERT INTO service VALUES(3, "App for education", "Education", 1);
-- Data for user
INSERT INTO user VALUES... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.