sql stringlengths 6 1.05M |
|---|
DELETE FROM auth.menu_access_policy
WHERE menu_id IN
(
SELECT menu_id FROM core.menus
WHERE app_name = 'Frapid.Calendar'
);
DELETE FROM auth.group_menu_access_policy
WHERE menu_id IN
(
SELECT menu_id FROM core.menus
WHERE app_name = 'Frapid.Calendar'
);
DELETE FROM core.menus
WHERE app_name = 'Frapid.Calendar';
... |
<reponame>kuro-channel/knowledge-1<filename>src/main/resources/org/support/project/web/dao/sql/UsersDao/UsersDao_insert.sql
INSERT INTO USERS
(
USER_ID
, USER_KEY
, USER_NAME
, PASSWORD
, SALT
, LOCALE_KEY
, MAIL_ADDRESS
, AUTH_LDAP
, ROW_ID
, INSERT_USER
, INSERT_DATETIME
, UPDATE_USER
, UPDATE_DATETIME
... |
<filename>magazin_electronic.sql
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Дек 17 2018 г., 12:08
-- Версия сервера: 5.6.38
-- Версия PHP: 5.6.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Май 29 2019 г., 06:01
-- Версия сервера: 10.1.35-MariaDB
-- Версия PHP: 7.2.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
<filename>etc/build/config_packs/ubuntu_11_10/postfix/zpanel_postfix.sql
-- phpMyAdmin SQL Dump
-- version 3.3.10
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 23, 2011 at 03:45 AM
-- Server version: 5.0.77
-- PHP Version: 5.2.10
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CH... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字oids(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists oids;
create schema oids;
drop schema oids;
--关键字带双引号-成功
drop schema if exists "oids";
create schema "oids";
drop schema "oids";
--关键字带单引号-合理报错
drop schema if exists 'oids';
create schema 'oids';
--关键字带反引号-... |
CREATE TABLE empresa (
id BIGINT(20) NOT NULL,
cnpj VARCHAR(255) NOT NULL,
data_atualizacao DATETIME NOT NULL,
data_criacao DATETIME NOT NULL,
razao_social VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE funcionario (
id BIGINT(20) NOT NULL,
cpf VARCHAR(255) NOT NULL,
data_a... |
CREATE TABLE IF NOT EXISTS `command_log` (
`id` INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
`kind` VARCHAR(30) NOT NULL,
`full` VARCHAR(2500) NOT NULL,
`channel_id` CHAR(36) NOT NULL,
`user_id` CHAR(36) NOT NULL,
`created_at` DATETIME NOT NULL DEFAULT NOW(),
KEY `kind_idx` (`kind`),
KEY `us... |
<gh_stars>0
--
-- The MIT License (MIT)
--
-- Copyright (C) 2013-2016 tarent solutions GmbH
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limita... |
--
-- Database: `PowerballBatch`
--
-- --------------------------------------------------------
--
-- Table structure for table `PowerballTypes`
--
CREATE TABLE IF NOT EXISTS `PowerballTypes` (
`TypeID` int(11) NOT NULL,
`Description` varchar(20) NOT NULL
);
--
-- Dumping data for table `PowerballTypes`
--
INS... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Servidor: 1172.16.58.3
-- Tiempo de generación: 14-06-2016 a las 19:49:49
-- Versión del servidor: 5.7.9
-- Versión de PHP: 5.6.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... |
ALTER TABLE [Team] ADD [TeamId] int NOT NULL DEFAULT 0;
GO
ALTER TABLE [Player] ADD [PlayerId] int NOT NULL DEFAULT 0;
GO
ALTER TABLE [Competition] ADD [CompetitionId] int NOT NULL DEFAULT 0;
GO
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'20200105010843_AddSpecificId', N'2.2.6... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 1192.168.127.12
-- Generation Time: 15-Jan-2021 às 18:18
-- Versão do servidor: 10.1.38-MariaDB
-- versão do PHP: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";... |
ALTER TABLE `chatusers` DROP INDEX `type_index`;
ALTER TABLE `chatgroups` DROP INDEX `type_index`;
|
create table competition_honor
(
id bigint unsigned auto_increment,
name varchar(10) null,
school_number int null,
competition_level varchar(30) null,
competition_name varchar(40) null,
teacher_id bigint unsigned null,
honor_level varchar(40) null,
prove varchar(50) null,
pass tinyin... |
SELECT * FROM towns ORDER BY name;
SELECT * FROM departments ORDER BY name;
SELECT * FROM employees ORDER BY salary DESC; |
<filename>DBA/Sintaxe View.sql<gh_stars>1-10
CREATE OR REPLACE VIEW VIEW_JC_(NOME) AS
(SELECT);/
DROP VIEW VIEW_JC_(NOME);/
|
<filename>src/test/resources/sql/grant/7690a4ed.sql
-- file:privileges.sql ln:829 expect:true
GRANT UPDATE ON LARGE OBJECT 1006 TO regress_user3
|
create or replace table `dataline-integration-testing`.test_normalization.`nested_stream_with_complex_columns_resulting_into_long_names_partition`
OPTIONS()
as (
-- Final base SQL model
select
_airbyte_nested_stream_with_complex_columns_resulting_into_long_names_hashid,
double_array_data,
... |
<reponame>DeadorDev/furry-octo-palm-tree
CREATE TABLE country
(
id INT,
name VARCHAR(30)
); |
SELECT sa.nspname as schemaa,
ca.relname as tablea,
a.attname as columna, ta.typename,
sb.nspname as schemab,
cb.relname as tableb,
a.attname as columnb, tb.typname
FROM pg_attribute a
JOIN pg_type ta ON (ta.oid = a.atttypeid)
JOIN pg_class ca ON (ca.oid = a.attrelid)
... |
-- sklearn MultinomialNB
load libsvm.`/Users/allwefantasy/Softwares/spark-2.2.0-bin-hadoop2.7/data/mllib/sample_libsvm_data.txt` as data;
train data as SKLearn.`/tmp/model`
where pythonDescPath=""
and `kafkaParam.bootstrap.servers`="127.0.0.1:9092"
and `kafkaParam.topic`="test"
and `kafkaParam.group_id`="g_test-1"
an... |
-- @testpoint:opengauss关键字types(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists types;
create schema types;
drop schema types;
--关键字带双引号-成功
drop schema if exists "types";
create schema "types";
drop schema "types";
--关键字带单引号-合理报错
drop schema if exists 'types';
create schema 'types';
--关键字带反引号-合理报错
drop schema if ex... |
/*
Vjezbe 3 Zadatak 4 AdventureWorks2014
Prikazati ukupan broj proizvoda po modelu. Lista treba da sadrzi ID modela proizvoda i
ukupan broj proizvoda. Uslov je da proizvod pripada nekom modelu i da je ukupan broj
proizvoda po modelu veci od 1. Takodjer, prebrojati samo proizvode ciji naziv pocinje slovom 'S'.
*... |
<filename>cw-kacamatasimple.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 22, 2021 at 11:16 AM
-- Server version: 5.6.21
-- PHP Version: 5.5.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
<reponame>hibasalem/api-serverSQL
DROP TABLE IF EXISTS food;
CREATE TABLE food(
id SERIAL PRIMARY KEY,
name varchar(255),
ingridents varchar(255),
caluries smallint
); |
<filename>TestDatabase/Programmability/Stored Procedures/Character_case_conversion.RestoreData.sql
CREATE PROCEDURE [Character_case_conversion].RestoreData AS
DELETE FROM [Character_case_conversion].DS_1
INSERT INTO [Character_case_conversion].DS_1 VALUES (1, 'A', 'hello')
INSERT INTO [Character_case_conversion]... |
-- prints the full description of the table first_table from the input
-- database
SHOW CREATE TABLE first_table;
|
WITH remaining AS
(
SELECT
r.id AS r_id,
r.datecreated,
f.stateprovince,
f.postcode,
e.name AS equipment_type,
CASE
WHEN
re.supplyremaining = 'no'
AND re.supplyremaining IS NOT NULL
THEN
'0 Days'
ELSE
C... |
ALTER TABLE CaseProvider ADD AccountId uniqueidentifier;
ALTER TABLE CaseProvider ADD CONSTRAINT FK_CaseProvider_Account FOREIGN KEY (AccountId) REFERENCES Account (AccountId);
|
<reponame>parkfree/free-park
CREATE TABLE IF NOT EXISTS `access_tokens`
(
`id` INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT,
`tenant_id` INT(11) NOT NULL,
`token` VARCHAR(70) NOT NULL DEFAULT '',
`expire_at` TIMESTAMP NOT NULL,
`created_at` TIMESTAMP ... |
SELECT
dept.id,
dept.name department_name
FROM
department dept
ORDER BY
department_name |
<reponame>RollingSoftware/L2J_HighFive_Hardcore
CREATE TABLE IF NOT EXISTS `item_auction` (
`auctionId` int(11) NOT NULL,
`instanceId` int(11) NOT NULL,
`auctionItemId` int(11) NOT NULL,
`startingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`endingTime` bigint(13) unsigned NOT NULL DEFAULT '0',
`auctionS... |
<filename>demo/create_patch_delete_cal_event.sql
declare
l_event ms_graph_util_pkg.t_event;
l_token varchar2(2000);
begin
ms_graph_util_pkg.init(p_url => '', --e.g. https://graph.microsoft.com/v1.0/
p_login_url => '', --e.g. https://login.microsoftonline.com/
p_oauth2_url... |
<gh_stars>1-10
DROP DATABASE IF EXISTS dbLektion8;
CREATE DATABASE dbLektion8;
USE dbLektion8;
CREATE TABLE tblUser (
fldId INT PRIMARY KEY,
fldEmail VARCHAR(70) NOT NULL,
fldName VARCHAR(70)
);
INSERT INTO tblUser VALUES (0, '<EMAIL>', '<NAME>');
INSERT INTO tblUser VALUES (1, '', '');
INSERT INTO tblU... |
-- collate9.test
--
-- execsql {
-- SELECT y FROM xy ORDER BY y
-- }
SELECT y FROM xy ORDER BY y |
<filename>server/hexo-blog.sql
CREATE DATABASE IF NOT EXISTS 'hexo-blog' DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE T... |
<reponame>austin48/etudes-melete
alter table melete_user_preference add LICENSE_CODE number(11);
alter table melete_user_preference add CC_LICENSE_URL varchar2(275);
alter table melete_user_preference add REQ_ATTR number(1);
alter table melete_user_preference add ALLOW_CMRCL number(1);
alter table melete_user_prefe... |
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Tempo de geração: 31/10/2018 às 02:25
-- Versão do servidor: 10.1.26-MariaDB-0+deb9u1
-- Versão do PHP: 7.0.30-0+deb9u1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00"... |
drop database postit;
create database postit;
use postit;
create table `pessoajuridica` (
`IDUSUARIO` int(11) NOT NULL,
`CNPJ` varchar(30) NOT NULL
);
create table `pessoafisica` (
`IDUSUARIO` int(11) NOT NULL,
`CPF` varchar(20) NOT NULL
);
create table `usuario` (
`IDUSUARIO` int(11) NOT NULL AUTO_INCREM... |
<reponame>zencircle/cassandra-reaper
--
-- Copyright 2018-2018 <NAME>
-- Copyright 2019-2019 The Last Pickle Ltd
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www... |
<reponame>SocialGouv/emjpm
DROP TRIGGER IF EXISTS calculate_mandataire_mesures ON "mandataires";
DROP FUNCTION IF EXISTS trigger_calculate_mandataire_mesures();
|
<reponame>lmphatsi/docs
-- MySQL dump 10.13 Distrib 5.6.40, for Linux (x86_64)
--
-- Host: localhost Database: openmrs
-- ------------------------------------------------------
-- Server version 5.6.40-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C... |
<reponame>kaiosatiro/URIjudge_beecrowd
--- THAISE URI Online Judge SQL
--- Copyright URI Online Judge
--- www.urionlinejudge.com.br
--- Problem 2999
CREATE TABLE departamento(
cod_dep int,
nome varchar(50),
endereco varchar(50)
);
-- ------------------------------------------------------------
CREATE TABL... |
USE [NetBankDB]
GO
INSERT INTO ReportedCards (IssuingNetwork, CreditCardNumber, FirstName, LastName, StatusCard, ReportedDate, LastUpdatedDate) VALUES ('instapayment', '6376773337234061', '<NAME>', 'Mougeot', 'Recovered', '07/27/2021', '07/29/2021');
INSERT INTO ReportedCards (IssuingNetwork, CreditCardNumber, FirstNam... |
<filename>migrations/default/1648108740166_run_sql_migration/up.sql
CREATE TABLE public.purchase_payments_type (
id text NOT NULL,
name text NOT NULL
);
ALTER TABLE ONLY public.purchase_payments_type
ADD CONSTRAINT purchase_payments_type_name_key UNIQUE (name);
ALTER TABLE ONLY public.purchase_payments_typ... |
SELECT '**' as description,
nspname || '.' || proname as name,
CONCAT('<a href="?method=', proname, '&action=doc" target="_BLANK">Details</a>') AS detailsurl,
json_agg(
json_build_object(
'name',
(string_to_array(longstring.params, ' '))[1],
... |
<gh_stars>0
--
-- File generated with SQLiteStudio v3.1.1 on Tue May 1 16:01:34 2018
--
-- Text encoding used: System
--
PRAGMA foreign_keys = off;
BEGIN TRANSACTION;
-- Table: admissions
DROP TABLE IF EXISTS admissions;
CREATE TABLE admissions (University_ID STRING PRIMARY KEY, Name STRING, Acceptance_Rate NUMERIC, A... |
<reponame>lgcarrier/AFW
SET DEFINE OFF;
ALTER TABLE AFW_12_DOMN ADD (
CONSTRAINT AFW_12_DOMN_FK5
FOREIGN KEY (REF_PROFL_SMS_NOTFC)
REFERENCES AFW_17_COMPT_TWILI (SEQNC)
ENABLE VALIDATE)
/
|
<reponame>inderghuman/PHP-Medical-Appointment-System
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: appointment_project
-- ------------------------------------------------------
-- Server version 5.7.16-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*... |
-- Your SQL goes here
CREATE TABLE scrap (
id INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL,
site_name varchar(50) NOT NULL,
description varchar(100) NOT NULL,
headers TEXT NOT NULL,
ip_address varchar(50) NOT NULL,
html_code TEXT NOT NULL,
all_links TEXT NOT NULL,
images TEXT NOT NULL,
created_at TIME... |
CREATE DATABASE IF NOT EXISTS `samson_school_suppliers_db`;
USE `samson_school_suppliers_db`;
CREATE TABLE `staff` ( `staffID` VARCHAR(10) NOT NULL ,
`staffName` VARCHAR(255) NOT NULL ,
`staffSurname` VARCHAR(255) NOT NULL ,
`staffDOB` VARCHAR(255) NOT NULL ,
`staffEmail` VARCHAR(255) NOT NULL ,
`staffPhone` VAR... |
<filename>src/main/resources/db/schema.sql<gh_stars>0
-- Legend: Replace semi-colon with @@ symbol to signify end of sql statement.--
-- Create the account table
CREATE TABLE account (
id SERIAL PRIMARY KEY,
display_name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL,
CONSTRAINT uc_name_email UNIQUE(display_name,em... |
<filename>admin/sql/create_types.sql
CREATE TYPE action_types AS ENUM (
'hide_review',
'block_user'
);
CREATE TYPE entity_types AS ENUM (
'release_group',
'event',
'place'
);
|
<reponame>huiminxu/Alyson
delete from jeeshop1_0.t_order;
delete from jeeshop1_0.t_product;
delete from jeeshop1_0.t_catalog;
delete from jeeshop1_0.t_index_img;
delete from jeeshop1_0.t_news;
delete from jeeshop1_0.t_attribute;
delete from jeeshop1_0.t_attribute_link;
delete from jeeshop1_0.t_comment;
delete from jees... |
<gh_stars>1-10
--
insert into @resultSchema.dq_check_result
select
'C329' as check_id
,24 as stratum1
,measurement_concept_id as stratum2
,visit_concept_id as stratum3
,measurement_date as stratum4
,'measurement_concept_id montly trend check with visit_concept_id' as stratum5
,count_val
,null as num_val
,null as txt_v... |
<reponame>samwang0723/jarvis<filename>internal/db/migration/20211228095114_create_three_primary.sql
-- +goose Up
-- +goose StatementBegin
CREATE TABLE three_primary (
id bigint unsigned NOT NULL PRIMARY KEY,
stock_id varchar(8) NOT NULL,
exchange_date varchar(32) NOT NULL,
foreign_trade_shares bigint DE... |
INSERT INTO Company (id,name) VALUES (1,'Vaadin Ltd');
INSERT INTO Company (id,name) VALUES (2,'Esterin peräsin Oy');
INSERT INTO Contact (id,name,email,company_id) VALUES (3,'<NAME>','<EMAIL>',2);
INSERT INTO Contact (id,name,email,company_id) VALUES (4,'<NAME>','<EMAIL>',1);
INSERT INTO Contact (id,name,email,company... |
select
concat('user;', sub.cuser, '`', sub.repo_group, ';issues'),
round(sub.issues / {{n}}, 2) as issues
from (
select dup_user_login as cuser,
'all' as repo_group,
count(distinct id) as issues
from
gha_issues
where
created_at >= '{{from}}'
and created_at < '{{to}}'
and state = 'open'... |
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (863,21613,7,17600);
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (863,4078,14,55000);
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (863,100,4,25000);
INSERT INTO persediaan (id_transaksi, id_baran... |
<reponame>taritom/bn-api
ALTER TABLE ticket_types
ADD visibility VARCHAR(100) NOT NULL DEFAULT 'Always';
UPDATE ticket_types
SET visibility = CASE
WHEN is_private THEN 'Hide'
WHEN sold_out_behavior = 'ShowSoldOut' THEN 'Always'
WHEN sold_out_behavior =... |
ALTER FUNCTION sqlog.autoanalyze SECURITY DEFINER;
ALTER FUNCTION sqlog.duration SECURITY DEFINER;
ALTER FUNCTION sqlog.log SECURITY DEFINER;
ALTER FUNCTION sqlog.log_path SECURITY DEFINER;
ALTER FUNCTION sqlog.preparable_query SECURITY DEFINER;
ALTER FUNCTION sqlog.set_... |
<reponame>steph-ieffam/DSpace
--
-- The contents of this file are subject to the license and copyright
-- detailed in the LICENSE and NOTICE files at the root of the source
-- tree and available online at
--
-- http://www.dspace.org/license/
--
CREATE SEQUENCE deduplication_id_seq;
-----------------------------------... |
<reponame>muhamadyusuf/inventori
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 22, 2016 at 10:04 AM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.5.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
CREATE OR REPLACE FUNCTION pantry.sys_guests_set_family()
RETURNS void
LANGUAGE plpgsql
AS $function$
BEGIN
ALTER TABLE pantry.guests DISABLE TRIGGER enforce_guests_gender_trgr;
UPDATE pantry.guests SET is_family='-1' WHERE child_no>0;
UPDATE pantry.guests SET is_Family='0' WHERE (child_no<1 OR child... |
-- phpMyAdmin SQL Dump
-- version 4.1.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 12, 2016 at 06:13 PM
-- Server version: 5.1.72-community
-- PHP Version: 5.3.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C... |
CREATE TABLE plastic (
id serial NOT NULL,
name varchar(50),
CONSTRAINT pk_plastic PRIMARY KEY (id)
);
CREATE TABLE card (
id serial NOT NULL,
price decimal(10, 2) NOT NULL,
plastic_id serial NOT NULL,
CONSTRAINT pk_card PRIMARY KEY (id),
CONSTRAINT fk_card_plastic FOREIGN KEY (plastic_... |
<filename>sql/mysql/upgrade3.01-3.02.sql
CREATE TABLE taxcategories(
taxcatid tinyint( 4 ) AUTO_INCREMENT NOT NULL ,
taxcatname varchar( 30 ) NOT NULL ,
PRIMARY KEY ( taxcatid )
) TYPE=INNODB;
ALTER TABLE taxauthlevels DROP FOREIGN KEY `taxauthlevels_ibfk_2` ;
ALTER TABLE `taxauthlevels` CHANGE `dispatchtaxauthority` ... |
<filename>SQL/QueueSystem.sql
# ************************************************************
# Sequel Pro SQL dump
# Versión 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: localhost (MySQL 5.5.5-10.1.16-MariaDB)
# Base de datos: QueueSystem
# Tiempo de Generación: 2016-11-20 17:08... |
<gh_stars>0
CREATE TABLE [school].[Modules]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1),
[Code] VARCHAR(20) NOT NULL,
[Name] NVARCHAR(100) NOT NULL
)
|
alter table bot drop column active; |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Create user, the d... |
-- Verify vendproxy:create_db on mysql
BEGIN;
-- XXX Add verifications here.
ROLLBACK;
|
<reponame>gsiems/tdm
CREATE OR REPLACE procedure tdm.entity_upsert (
a_entity_id inout int default null,
a_model_id in int default NULL,
a_namespace_id in int default NULL,
a_supertype_entity_id in int default NULL,
a_entity_type_id in int default NULL,
a_entity_size_id in int default NULL,
... |
SELECT
COALESCE(SUM(idx_scan), 0) AS idx_scan,
COALESCE(SUM(seq_scan), 0) AS seq_scan,
EXTRACT(EPOCH FROM NOW()) AS "timestamp"
FROM pg_stat_user_tables;
|
<gh_stars>0
/*
* Desarrollado por : DennisM.Andino
* Contactame a mi correo : <EMAIL>
* mi canal de Youtube: CodigoCompartido
* proyecto disponible en : https://github.com/dennis-andino/GT
*/
DELIMITER $$
CREATE
DEFINER = `root`@`localhost` PROCEDURE `REGISTER_USERS`(IN `username_` VARCHAR(25),
... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 27, 2021 at 07:43 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<gh_stars>0
DROP ROLE chat_anonymous;
DROP ROLE chat_person;
DROP ROLE chat_postgraphile;
|
PRAGMA foreign_keys = ON;
ALTER TABLE nodes RENAME TO __nodes_new;
CREATE TABLE nodes (
id INTEGER PRIMARY KEY NOT NULL,
public_id INTEGER NOT NULL,
name TEXT NOT NULL UNIQUE
);
INSERT INTO nodes (id, public_id, name)
SELECT id, public_id, name FROM __nodes_new;
DROP TABLE __nodes_new;
|
<filename>kijiji_pharmacy.sql
-- phpMyAdmin SQL Dump
-- version 4.7.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Feb 09, 2018 at 10:22 AM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.2.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone =... |
<gh_stars>1-10
create table migration (
migration_id integer primary key generated by default as identity,
filename text not null,
created_at timestamp with time zone default current_timestamp
);
create table user_account (
user_account_id integer primary key generated by default as identity,
first_name text... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 12 Feb 2020 pada 01.38
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... |
INSERT INTO student(name) VALUES('Jim'),('Jade'); |
-- Regular, weekly opening hours specification.
-- Implemented with tstzrange.
-- One row per one continuous set of opening times/hours.
-- Somewhat related to https://schema.org/openingHours
-- TODO: put into another schema or something.
create domain business_opening_hours as tstzrange CHECK (
lower_inc(value) AND u... |
<filename>3.sql
# 考察点:IN
# 3. 查询在 SC 表存在成绩的学生信息
select * from student where SId in (select distinct SId from sc); |
WITH RECURSIVE c0(src, trg) AS ((SELECT s0.src, s3.trg FROM (SELECT trg as src, src as trg, label FROM edge) as s0, edge s1, (SELECT trg as src, src as trg, label FROM edge) as s2, edge s3 WHERE s0.trg = s1.src AND s1.trg = s2.src AND s2.trg = s3.src AND s0.label = datePublished AND s1.label = contentRating AND s2.lab... |
<gh_stars>10-100
-- file:comments.sql ln:9 expect:true
SELECT 'before multi-line' AS fourth
|
<filename>price-range-slider-jquery (1)/price-range-slider-jquery/db.sql
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`product` text NOT NULL,
`price` float(5,2) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` int(1) N... |
<gh_stars>0
SELECT 'x' AS this_is_a_really_really_long_identifier
go
CREATE PROCEDURE #t0022
@null_input varchar(30) OUTPUT
, @first_type varchar(30) OUTPUT
, @nullout int OUTPUT
, @varchar_tds7_out varchar(8000) OUTPUT
, @nvarchar_tds7_out nvarchar(4000) OUTPUT
, @nrows int OUTPUT
, @c_this_name_is_way_more_tha... |
<gh_stars>0
/*
* article__basicSearchWithWords
* Inverted Index Toolkit <http://code.google.com/p/inverted-index/>
* Apache License 2.0, blah blah blah.
*
* This constructs and executes a simple "AND" query, based on an input
* string of words. Rather than looking up the word IDs first, it joins
* the word tab... |
/*
-- Query: select * from survey where survey_id between 39 and 44
LIMIT 0, 1000
-- Date: 2015-04-06 13:33
*/
/* Update Survey sections */
UPDATE survey_section set display_order=4 where survey_section_id=2;
UPDATE survey_section set display_order=5 where survey_section_id=3;
UPDATE survey_section set display_order=6... |
<reponame>ituk-ttu/ITUK-API
create function trigger_set_timestamp() returns trigger
language plpgsql
as
$$
BEGIN
NEW.updated_at = NOW();
RETURN NEW;
END;
$$; |
ALTER DATABASE jmiller156 CHARACTER SET utf8 COLLATE utf8_unicode_ci;
DROP TABLE IF EXISTS commentsnap;
CREATE TABLE commentSnap(
commentId BINARY(16) NOT NULL,
commentDateTime TIMESTAMP(6) NOT NULL,
commentText VARCHAR(128),
PRIMARY KEY(commentId)
);
INSERT INTO commentSnap (commentId, commentDateTime, commentT... |
ALTER TABLE `event_types` ADD `restricted` INT(1) NOT NULL DEFAULT '0' AFTER `description`;
|
<filename>dm/tests/online_ddl/data/check.gho.db1.sql
drop database if exists `online_ddl`;
create database `online_ddl`;
use `online_ddl`;
create table check_gho_t (id bigint auto_increment, uid int, name varchar(80), info varchar(100), primary key (`id`), unique key(`uid`)) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;... |
<reponame>ThreeFx/tigerbeetle<filename>demos/protobeetle/QUERIES.sql
// prepare
1587309924652 "insert into `transferDuplicateCheck` (`hash`, `transferId`) values (?, ?)"
1587309924656 "insert into `transferParticipant` (`amount`, `ledgerEntryTypeId`, `participantCurrencyId`, `transferId`, `transferParticipantRoleTypeId... |
<reponame>hxney-pixel/nigga
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3308
-- Generation Time: Jan 25, 2021 at 11:54 AM
-- Server version: 8.0.18
-- PHP Version: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00... |
-- @testpoint:opengauss关键字translation(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists translation;
CREATE USER translation PASSWORD '<PASSWORD>';
drop user translation;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "translation";
CREATE USER "translation" PASSWORD '<PASSWORD>';
drop user "translation";
... |
<gh_stars>0
-- DROP PROCEDURE IF EXISTS `USP_USER_ANALYSIS`;
CREATE DEFINER=`root`@`localhost` PROCEDURE `usp_User_Analysis`(var_proc varchar(1000), var_custom int, var_rca int, var_mydb varchar(100))
BEGIN
/*This proc is updated on 04-Nov-2012 to add table ACT_VAL so that activity exclusion is flexible. The proc n... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF EXISTS (SELECT * FROM sys.procedures WHERE name = 'GetTestingDataset')
BEGIN
PRINT 'Dropping "GetTestingDataset" stored procedure...'
DROP PROCEDURE GetTestingDataset
END
GO
PRINT 'Creating "GetTestingDataset" stored procedure...'
GO
-- ==========================... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.