sql stringlengths 6 1.05M |
|---|
-- @testpoint: opengauss关键字transaction(非保留),作为函数名,部分测试点合理报错
--关键字不带引号-成功
drop function if exists transaction;
create function transaction(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
drop function if exists transaction;
--关键字带双引号-成功
drop function if exists "transaction";
create fu... |
<filename>openGaussBase/testcase/KEYWORDS/K/Opengauss_Function_Keyword_K_Case0022.sql<gh_stars>0
-- @testpoint:opengauss关键字K(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists K;
create group K with password '<PASSWORD>';
drop group K;
--关键字带双引号-成功
drop group if exists "K";
create group "K" with password '<PASSWORD>';
d... |
DROP TABLE IF EXISTS `user_auth`;
CREATE TABLE IF NOT EXISTS `user_auth` (
`auth_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`username` VARCHAR(40) NOT NULL,
`email` VARCHAR(128) NOT NULL,
`password` VARCHAR(100) NOT NULL,
`picture` VARCHAR(255) NOT NULL,
`birthday` DATE... |
<reponame>Seyaio/Seyabot<filename>db/init_default_func.sql
INSERT INTO `robot`.`function` (`FUNC_NAME`, `FROM_MODULE`, `TRIGGER_COMMAND`, `ARGS_MAP`, `ARGS_EXPLAIN`, `TRIGGER_TEMPLATE`, `EXCEPTION_TEMPLATE`, `FUNC_IS_ACTIVE`, `COMMENT`) VALUES ('add_default_permit', 'bot_manager', '[\"add_default_permit\",\"add_default... |
<reponame>bizmaercq/eda-reporting
set head on
set echo on
set feed on
set lines 10000
set pages 10000
set long 20000
set colsep ';'
spool C:\Sig_det.SPL
select * from svtms_acc_sig_det where branch = '043' and acc_no = '0433830204399630' and cif_sig_id = '043996'
/
spool off
|
<reponame>hub-burgan-com-tr/bbt.notification.services<filename>src/bbt.service.notification-profile/SQLQuery_2.sql
UPDATE [Consumers] SET Email = 'zstring'
WHERE Email = 'xstring' AND
[User] = 123456
--User = CAST('123456' AS bigint) |
<filename>api/db/migrations/002_create_invalid_tokens.up.sql
CREATE TABLE invalid_tokens (
token TEXT PRIMARY KEY,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
)
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 03, 2019 at 07:43 PM
-- Server version: 5.6.43-cll-lve
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET ... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: db:3306
-- Generation Time: Oct 08, 2020 at 03:30 PM
-- Server version: 5.7.31
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC... |
DROP TABLE IF EXISTS cards CASCADE;
DROP TABLE IF EXISTS categories CASCADE;
DROP TABLE IF EXISTS scores CASCADE;
DROP TABLE IF EXISTS study_sessions CASCADE;
DROP SEQUENCE IF EXISTS seq_card_id;
CREATE SEQUENCE seq_card_id;
CREATE TABLE categories(
id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name VARCHAR(100... |
<reponame>Vladislav-Zolotaryov/L2J_Levelless_Custom
CREATE TABLE IF NOT EXISTS `olympiad_nobles_eom` (
`charId` INT UNSIGNED NOT NULL default 0,
`class_id` decimal(3,0) NOT NULL default 0,
`olympiad_points` decimal(10,0) NOT NULL default 0,
`competitions_done` decimal(3,0) NOT NULL default 0,
`competitions_wo... |
DELIMITER $$
DROP PROCEDURE IF EXISTS GIT_REPO_DEL;
CREATE PROCEDURE GIT_REPO_DEL (IN p_repo BIGINT UNSIGNED)
BEGIN
DELETE from GIT_ODB where repo = p_repo;
DELETE from GIT_INDEX where repo = p_repo;
DELETE from GIT_TREE where repo = p_repo;
DELETE from GIT_REFDB where repo = p_repo;
DELETE from GIT_CONFIG where... |
<reponame>joselyto/newcode
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : lun. 01 jan. 2018 à 03:21
-- Version du serveur : 10.4.19-MariaDB
-- Version de PHP : 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!... |
SELECT
First, Last, value
FROM ABMultiValue, ABPerson
WHERE
record_id = ROWID
AND value is not null
AND First like :firstname
AND Last like :lastname
order by first |
-- +migrate Up
CREATE TABLE IF NOT EXISTS `item` (
`id` INT NOT NULL AUTO_INCREMENT,
`box_id` INT NOT NULL,
`name` VARCHAR(255) NOT NULL,
`note` TEXT NULL,
`icon` MEDIUMBLOB NULL,
`created_by` VARCHAR(255) NOT NULL,
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_by` VARCHAR(255) NOT... |
<filename>src/T-SQL/Stored Procedures/proc33_newCatalogPage.sql
create or alter procedure newCatalogPage(@strtDate int, @endDate int, @dept varchar(50), @catNumber int,
@pgNum int, @desc varchar(100), @typevarchar varchar(100))
as
begin
set nocount on;
declare @randomString char(16);
declare @sk i... |
<filename>graphql-server/migrations/1594487015736_alter_table_public_games_alter_column_allow_host_to_screen_cards/down.sql<gh_stars>100-1000
alter table "public"."games" rename column "screen_cards" to "allow_host_to_screen_cards";
|
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/40-sw01_swat/5487110_sys_gh664webui_fix_callouts.sql
-- 2018-02-27T18:13:23.984
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_ColumnCallout WHERE AD_ColumnCallout_ID=540880
;
-- 2018-02-27T18:13:32.138
... |
<filename>SQL/CREATE/CREATE SERVER/sql/CREATE SERVER name VERSION.sql<gh_stars>0
CREATE FOREIGN DATA WRAPPER dummy;
CREATE SERVER server_name VERSION 'server_version'
FOREIGN DATA WRAPPER dummy;
DROP SERVER server_name;
DROP FOREIGN DATA WRAPPER dummy; |
/*==============================================================*/
/* DBMS name: MySQL 5.0 */
/* Created on: 2014/1/4 ÐÇÆÚÁù 0:13:22 */
/*==============================================================*/
drop index Index_1 on BusNode;
drop ta... |
SELECT n.nspname,
c.relname,
pg_size_pretty(pg_total_relation_size(c.oid)) AS size
FROM pg_class c
JOIN pg_namespace n ON (n.oid = c.relnamespace)
WHERE c.relname NOT LIKE 'pg_%'
AND c.relname NOT LIKE 'information%'
AND c.relname NOT LIKE 'sql_%'
AND c.relkind = 'r'
AND n.nspname = '<schema_name>... |
delete from TAGS
delete from INGREDIENT
delete from RECIPE |
<gh_stars>0
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for carousel
-- ----------------------------
DROP TABLE IF EXISTS `carousel`;
CREATE TABLE `carousel` (
`id` varchar(64) NOT NULL COMMENT '主键',
`image_url` varchar(128) NOT NULL COMMENT '图片 图片地址',
`backg... |
{%- macro grant_usage_to_schemas() -%}
{#
This works in conjunction with the Permifrost roles.yml file.
This will only run on production and mainly covers our bases so that
new models created will be immediately available for querying to the
roles listed.
#}
{%- set non_... |
<filename>tests/queries/0_stateless/00985_merge_stack_overflow.sql
-- Tags: no-parallel
-- ^^^^^^^^^^^ otherwise you may hit TOO_DEEP_RECURSION error during querying system.columns
DROP TABLE IF EXISTS merge1;
DROP TABLE IF EXISTS merge2;
CREATE TABLE IF NOT EXISTS merge1 (x UInt64) ENGINE = Merge(currentDataba... |
<reponame>cuba-platform/cuba-thesis
-- $Id$
-- Description: remove column DESCRIPTION from SYS_JMX_INSTANCE table
do $$
begin
if not exists(select SCRIPT_NAME from SYS_DB_CHANGELOG where SCRIPT_NAME like '%131001-removeJmxInstanceDescription.sql') then
alter table SYS_JMX_INSTANCE drop column DESCRIP... |
DROP INDEX IF exists idx_posts_create_at_id; |
select name, id, title, tags, akas
from aws.aws_api_gateway_usage_plan
where akas::text = '["{{output.resource_aka.value}}"]'
|
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/switch_ckpt_serial/trigger_sql/sql/create_tablespace_template.sql
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
CREATE TABLESPACE pg2_ts1_template FILESPACE filespace_test_a;
|
/* 1. A equipe comercial da locadora está criando uma nova estratégia e pediu que você classificasse os filmes
do catálogo de acordo com seu preço de aluguel. A regra para a classificação é:
○ Aluguel menor ou igual a 0.99: Básico
○ Aluguel entre 0.99 e 2.99: Essencial
○ Aluguel maior que 2.99: Exc... |
<reponame>ruston-RnY/phone-store-admin
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 18 Jan 2022 pada 16.36
-- Versi server: 10.4.19-MariaDB
-- Versi PHP: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
... |
<reponame>supermax03/SampleApp
create table PERSON (
ID int not null,
NAME varchar(100) not null,
ADDRESS varchar(100) not null
);
|
insert into city(id, name)
values(UUID_TO_BIN('22f09c8f-8302-4dce-b80f-95a330eb7cdc'), 'Cabo San Lucas');
insert into city(id, name)
values(UUID_TO_BIN('cc4c1f05-2761-4b7d-b8db-a526f1fb3089'), 'Ciudad Constitución');
insert into city... |
CREATE DATABASE IF NOT EXISTS adminPoem;
USE adminPoem;
DROP TABLE if EXISTS `poem_sys_admin`;
CREATE TABLE `poem_sys_admin` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '姓名',
`password` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密码',... |
<reponame>doughsay/ambry
SELECT
series.id,
series.name,
(
SELECT
COUNT(*)
FROM
books_series
WHERE
books_series.series_id = series.id
) AS books,
ARRAY(
SELECT
DISTINCT (author.name, person.name) :: person_name
FROM
books_series AS series_book
INNER JOIN ... |
select icon
from item
join source using(source_id)
join "user" using(user_id)
where item_id = $1
and token = $2
|
-- tkt3461.test
--
-- execsql { SELECT a, b+1 AS b_plus_one FROM t1 WHERE a=1 }
SELECT a, b+1 AS b_plus_one FROM t1 WHERE a=1 |
ALTER TABLE public.messages DROP COLUMN public_key_id;
|
-- 12.11.2015 10:10
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,542921,0,'Parent_Activity_ID',TO_TIMESTAMP('2015-11-12 10:10:20... |
<gh_stars>0
REM INSERTING into PRMSADMIN.RESOURCEFEATURE
SET DEFINE OFF;
Insert into PRMSADMIN.RESOURCEFEATURE (RESFEAID,FEAID,LOCRESID,QUANTITY,DESCRIPTION) values (1,3,1,15,'Dont know');
Insert into PRMSADMIN.RESOURCEFEATURE (RESFEAID,FEAID,LOCRESID,QUANTITY,DESCRIPTION) values (2,2,1,6,'Dont know');
Insert into PRMS... |
<reponame>cynthiayang525/PatientLevelPrediction
/***********************************
File HospitalizationCohorts.sql
***********************************/
{DEFAULT @cdm_version = '5'}
IF OBJECT_ID('@resultsDatabaseSchema.rehospitalization', 'U') IS NOT NULL
DROP TABLE @resultsDatabaseSchema.rehospitalization;
{... |
<gh_stars>0
SELECT c_count,
count(*) AS custdist
FROM
(SELECT c_id,
count(o_id) AS c_count
FROM customer
LEFT OUTER JOIN orders ON (c_w_id = o_w_id
AND c_d_id = o_d_id
AND c_id = o_c_id
AND o_carrier_id > ... |
<gh_stars>0
SELECT petition.protocol,type,service_id,group_subs.sub
FROM
(SELECT protocol,type,service_id FROM service_petition_details WHERE id=${id} AND reviewed_at IS NULL AND tenant=${tenant}) as petition
LEFT JOIN service_details ON petition.service_id=service_details.id
LEFT JOIN group_subs USING (group_id)
... |
# --- !Ups
CREATE TABLE BOOKMARKS (
ID integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
URL varchar(512) NOT NULL,
DESCRIPTION varchar(1000),
FOLDER_NAME varchar(250)
);
INSERT INTO BOOKMARKS (URL, DESCRIPTION, FOLDER_NAME) VALUES ('http://ggia.berkeley.edu/practice/meaningful_pictures', 'Greater Good lin... |
<reponame>0x0FFF/githubgraph
create table users (
id serial,
unique_id bigint,
author_name varchar,
author_email varchar
);
insert into users(author_name, author_email)
select lower(author_name) as author_name,
lower(author_email) as author_email
from commits
group by 1... |
<#--
-- Copyright 2018 <NAME>
--
-- 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.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable la... |
library commentLirst version '1.0'
define x: 'What do ya do with a drunken sailor early in the mornin\'?'
// comment
/*
Multi-line comment
*/ |
--# Copyright IBM Corp. All Rights Reserved.
--# SPDX-License-Identifier: Apache-2.0
/*
* A sample procedure to allow users to cancel their own statements
*
* Needed because, Db2 does not allow a user to cancel their own statements otherwise
*
* This is maybe usefull in an environemnt where you are sharing use... |
CREATE FOREIGN TABLE public.testtable (
)
SERVER myserver; |
<reponame>sinise/pcloudserver
DROP TABLE IF EXISTS huge.rpi;
DROP TABLE IF EXISTS huge.userWanAsoc;
DROP TABLE IF EXISTS huge.userRpiAsoc;
DROP TABLE IF EXISTS huge.rpiStatus;
DROP TABLE IF EXISTS huge.commands;
CREATE TABLE huge.rpi(
mac VARCHAR (17) NOT NULL,
creatTime TIMESTAMP NOT NULL... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Ноя 14 2018 г., 12:29
-- Версия сервера: 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... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字character(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists character;
create schema character;
--清理环境
drop schema character;
--关键字带双引号-成功
drop schema if exists "character";
create schema "character";
--清理环境
drop schema "character";
--关键字带单引号-合理报错
drop schema if... |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 16, 2019 at 03:36 PM
-- Server version: 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 @OL... |
<filename>db/data/autotest_files/sql/student_files/bad_row_count.sql
CREATE TABLE bad_row_count AS
SELECT table1.word, table2.number
FROM table1 JOIN table2 ON table1.id = table2.foreign_id
UNION ALL
SELECT CAST('zzzz' AS varchar(50)) AS word, CAST(9.99 AS double precision) AS number;
|
<reponame>HafizAzeem/text-tile-range-marble<filename>Databasde/m_shop (1).sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 29, 2019 at 03:14 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_Z... |
<filename>mysql/moza_blog.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 09 Okt 2021 pada 10.35
-- Versi server: 5.7.33
-- Versi PHP: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40... |
<filename>INFO/Books Codes/Oracle PLSQL Tips and Techniques/OutputChapter15/15_11.sql
-- ***************************************************************************
-- File: 15_11.sql
--
-- Developed By TUSC
--
-- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant
-- that this source code... |
CREATE TABLE posts
(id INT UNSIGNED NOT NULL AUTO_INCREMENT, content TEXT NOT NULL,
PRIMARY KEY (id));
|
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 26, 2014 at 02:47 AM
-- Server version: 5.6.16
-- PHP Version: 5.5.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/... |
ALTER TABLE [dbo].[Projects]
ADD CONSTRAINT [DF_Projects_IsPublic] DEFAULT ((0)) FOR [IsPublic];
|
CREATE PROCEDURE au_info
@lastname varchar(40),
@firstname varchar(20)
AS
SELECT au_lname, au_fname, title, pub_name
FROM authors a INNER JOIN titleauthor ta
ON a.au_id = ta.au_id INNER JOIN titles t
ON t.title_id = ta.title_id INNER JOIN publishers p
ON t.pub_id = p.pub_id
WHERE au_fname = @firstn... |
<gh_stars>1-10
CREATE TABLE `hFileProperties` (
`hFileId`
int(11)
NOT NULL
default '0',
`hFileIconId`
int(11)
NOT NULL
default '0',
`hFileMIME`
varchar(100)
NOT NULL
default '',
`hFileSize`
int(22)
NOT NULL
... |
<filename>document/flight.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 15, 2021 at 05:44 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!4010... |
<reponame>billinkc/SSMSTemplates
SELECT
F.folder_id
, F.name
, P.project_id
, P.folder_id
, P.name
, P.description
-- wat?! Documentation states 1 = 2005 beta
-- http://msdn.microsoft.com/en-us/library/ff878098.aspx
, P.project_format_version
, P.deployed_by_name
, P.last_deployed_time
, P... |
CREATE TABLE `bm_web_servers` (
`id` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`host` varchar(255) NOT NULL,
`port` int(10) unsigned NOT NULL DEFAULT '3306',
`database` varchar(255) NOT NULL,
`user` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL DEFAULT '',
`console` varbinary(16) NO... |
-- SQL
, vaso\_group\_1 as
(select
distinct
--pop.hadm\_id
pop.icustay\_id
, pop.icustay\_intime
, pop.icustay\_outtime
--, pop.icustay\_outtime-pop.icustay\_intime as temp
, pop.icu\_los\_day
, first\_value(med.charttime) over (partition by pop.icustay\_id order
by med.charttime asc) as begin\_time
, first... |
<reponame>zzahti/skytools<gh_stars>100-1000
-- Section: Internal Functions
-- install & launch schema upgrade
\i functions/pgq.upgrade_schema.sql
select pgq.upgrade_schema();
-- Group: Low-level event handling
\i functions/pgq.batch_event_sql.sql
\i functions/pgq.batch_event_tables.sql
\i functions/pgq.event_retry_r... |
<reponame>askmohanty/metasfresh<gh_stars>1-10
-- 2021-11-19T08:18:13.092Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeL... |
<reponame>BrandonPearson/opioid-cds-r4
library OpioidCDS_REC_09 version '0.1.0'
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0' called FHIRHelpers
include OpioidCDS_Common version '0.1.0' called Common
include OpioidCDS_Common_Config version '0.1.0' called Config
include OpioidCDS_OpioidReviewUseful ve... |
insert into KRNS_PARM_T (APPL_NMSPC_CD,NMSPC_CD,PARM_DTL_TYP_CD,PARM_NM,PARM_TYP_CD,TXT,PARM_DESC_TXT,CONS_CD,OBJ_ID) values ('KC','KC-GEN','A','POST_DOCTORAL_COSTELEMENT','CONFG','400390','PostDoctoral CostElement','A',sys_guid());
commit; |
<reponame>sebinbabu/mailbull
use vmail;
insert into accounts (username, domain, password, quota, enabled, sendonly) values ('<USER>', '<DOMAIN>', '<PASSWORD>', <PASSWORD>, true, false);
|
CREATE TABLE IF NOT EXISTS `table1` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`f1` int(11) unsigned NOT NULL,
`f2` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `f1` (`f1`),
KEY `rel13` (`f2`),
CONSTRAINT `f1_c` FOREIGN KEY (`f1`) REFERENCES `table2` (`id`) ON UPDATE CASCADE,
CONSTRAINT `rel... |
<reponame>SacreeBandeDePote/TP-WASO<gh_stars>1-10
INSERT INTO PERSONNE (PersonneID, Civilite, Nom, Prenom, Mail) VALUES
(1024,'M.','<NAME>','Raphaël','<EMAIL>'),
(1025,'Mme','<NAME>','Nor','<EMAIL>'),
(1026,'Mme','<NAME>','Olena','<EMAIL>'),
(1027,'Mme','SING','Ainhoa','<EMAIL>'),
(1028,'M.','ABDIULLINA','<NAME>','<EMA... |
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_13_issues/_11_1h/cases/bug_bts_5079.sql<gh_stars>1-10
--+ holdcas on;
set system parameters 'dont_reuse_heap_file=yes';
create table x (a int, b int, c int, d int, e int, f int);
insert into x values (1,1,1,1,1,1);
insert into x values (10,10,10,10,10,10);
insert i... |
<gh_stars>0
CREATE TABLE [dbo].[Category]
(
[Id] INT NOT NULL ,
[Name] VARCHAR(400) NOT NULL,
CONSTRAINT [PK_Category] PRIMARY KEY CLUSTERED ([Id] ASC)
)
|
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 28, 2019 at 01:02 PM
-- Server version: 10.3.13-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<gh_stars>0
CREATE DEFINER=`root`@`localhost` PROCEDURE `prc_updateInboundRate`(
IN `p_AccountID` INT,
IN `p_processId` INT,
IN `p_tbltempusagedetail_name` VARCHAR(200),
IN `p_CLD` VARCHAR(500),
IN `p_ServiceID` INT,
IN `p_RateMethod` VARCHAR(50),
IN `p_SpecifyRate` DECIMAL(18,6)
)
BEGIN
SET @stm = CONCAT('UPD... |
create table tbl_user (
nim varchar(20),
nama varchar(30),
password varchar(20),
primary key (nim)
);
create table tbl_admin (
nim varchar(20),
key fk_nim2(nim),
constraint fk_nim2 foreign key (nim) references tbl_user(nim)
);
create table tbl_matakuliah (
kode_matakuliah varchar(15),
nama_matakuliah varch... |
<gh_stars>0
drop table if exists role;
drop table if exists user;
drop table if exists user_roles;
create table role (id bigint not null auto_increment, description varchar(255), name varchar(255), primary key (id)) engine=MyISAM;
create table user_roles (user_id bigint not null, role_id bigint not null, primary key (u... |
<reponame>iafb/greatreadingadventure<gh_stars>0
/****** Object: StoredProcedure [dbo].[app_PatronRewardCodes_GetByID] Script Date: 01/05/2015 14:43:24 ******/
--Create the Select Proc
CREATE PROCEDURE [dbo].[app_PatronRewardCodes_GetByID] @PRCID INT
AS
SELECT *
FROM [PatronRewardCodes]
WHERE PRCID = @PRCID
|
INSERT INTO Vehicle VALUES ('FUUZ-455', 15);
INSERT INTO Vehicle VALUES ('ETPV-210', 29);
INSERT INTO Vehicle VALUES ('JTIE-953', 21);
INSERT INTO Vehicle VALUES ('WXIA-017', 22);
INSERT INTO Vehicle VALUES ('VKBR-537', 2);
INSERT INTO Vehicle VALUES ('HJAD-124', 13);
INSERT INTO Vehicle VALUES ('EZSE-506', 26);... |
ALTER TABLE current ADD ice_accretion_1hr real;
ALTER TABLE current ADD ice_accretion_3hr real;
ALTER TABLE current ADD ice_accretion_6hr real;
ALTER TABLE current_log ADD ice_accretion_1hr real;
ALTER TABLE current_log ADD ice_accretion_3hr real;
ALTER TABLE current_log ADD ice_accretion_6hr real;
ALTER TABLE current_... |
<filename>backend/sql/contact_attribute/delete_item.sql
update $2~ set person_id = null where id = $1 returning id; |
insert into ingredient (ingredient_name, ingredient_description) values ('Chicken', 'The chicken is a type of domesticated fowl, a subspecies of the red junglefowl (Gallus gallus). It is one of the most common and widespread domestic animals, with a total population of more than 19 billion as of 2011. There are more ch... |
DROP FUNCTION IF EXISTS app.upsert_form(INT, TEXT, TEXT, TEXT, TEXT, TEXT);
CREATE OR REPLACE FUNCTION app.upsert_form(arg_period_id INT, arg_cohort TEXT, arg_stage TEXT, arg_milestone TEXT, arg_name TEXT, arg_subsection TEXT)
RETURNS TABLE (_form_id INT) AS $$ DECLARE
var_period_id INT;
var_form_id INT;
BEGIN
... |
set nocount on;
GO
-- delete from GRIDVIEWS_COLUMNS where GRID_NAME = 'ACLRoles.ListView'
if not exists(select * from GRIDVIEWS_COLUMNS where GRID_NAME = 'ACLRoles.ListView' and DELETED = 0) begin -- then
print 'GRIDVIEWS_COLUMNS ACLRoles.ListView';
exec dbo.spGRIDVIEWS_InsertOnly 'ACLRoles.ListView'... |
-- file:truncate.sql ln:37 expect:true
ALTER TABLE truncate_a ADD FOREIGN KEY (col1) REFERENCES trunc_c
|
<filename>Data/Create Scripts/SqlCe.sql<gh_stars>1000+
DROP TABLE Issue695
GO
DROP TABLE Issue695Parent
GO
DROP TABLE Patient
GO
DROP TABLE Doctor
GO
DROP TABLE Person
GO
DROP TABLE InheritanceParent
GO
CREATE TABLE InheritanceParent
(
InheritanceParentId int NOT NULL CONSTRAINT PK_InheritanceParent PRIMAR... |
<reponame>vagrantism/airbyte
create table
test_normalization.`exchange_rate__dbt_tmp`
as (
-- Final base SQL model
select
id,
currency,
`date`,
timestamp_col,
`HKD@spéçiäl & characters`,
hkd_special___characters,
nzd,
usd,
_airbyte_ab_id,
_airbyte_emitted_at,
... |
/* Fix images count */
UPDATE `usercounts`
LEFT JOIN (
SELECT count( `image_userid` ) as numimg,`image_userid` FROM `images`
WHERE `image_delid` = 0
GROUP BY `image_userid`
) as b
ON `count_userid` = b.`image_userid`
SET `count_images` = IFNULL( b.numimg, 0 )
UPDATE `usercounts`
LEFT JOIN (
SELECT count( `jo... |
<gh_stars>1-10
SELECT table_name as TableName, column_name as ColumnName, data_type as DataType, '' as Schema,
character_maximum_length as ColumnLength, column_default as DefaultValue,
CASE (
SELECT const2.CONSTRAINT_TYPE
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE const
... |
/*
* Copyright 2013-2016 Uncharted Software Inc.
*
* Property of Uncharted(TM), formerly Oculus Info Inc.
* https://uncharted.software/
*
* 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 Licen... |
<reponame>ynsingh/brihCI
ALTER TABLE `employee_servicedetail` ADD `empsd_authority` VARCHAR(255) NULL AFTER `empsd_orderno`;
ALTER TABLE `staff_working_arrangements_perticulars` ADD `swap_fromdate` DATE NULL AFTER `swap_wdept`, ADD `swap_todate` DATE NULL AFTER `swap_fromdate`;
|
<reponame>maiha/yahoojp-ads-downloader
CREATE TABLE IF NOT EXISTS AdGroup (
accountId Int64,
adGroupAdRotationMode_adRotationMode String,
adGroupId Int64,
adGroupName String,
adGroupTrackId Int64,
bid_bidSource String,
bid_maxCpc Int64,
campaignId Int64,
campaignName String,
campaignTrackId... |
<reponame>DirkReinemann/architect-pizza-service
CREATE DATABASE architectpizza DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
;
CREATE USER 'architectpizza'@'localhost' IDENTIFIED BY 'architectpizza'
;
GRANT ALL ON architectpizza.* TO 'architectpizza'@'localhost'
;
USE architectpizza
;
CREATE TABLE ... |
<gh_stars>0
UPDATE character_quests SET name='Q00336_CoinsOfMagic' WHERE name='336_CoinOfMagic';
UPDATE character_quests SET name='Q00343_UnderTheShadowOfTheIvoryTower' WHERE name='343_UnderTheShadowOfTheIvoryTower'; |
<reponame>PauloSpiguel/upload-s3-node-react<filename>src/db/migrations/20210324205120_init/migration.sql
/*
Warnings:
- You are about to drop the column `pathUrl` on the `images` table. All the data in the column will be lost.
- Added the required column `originalName` to the `images` table without a default val... |
-- MySQL dump 10.13 Distrib 5.7.20, for osx10.12 (x86_64)
--
-- Host: localhost Database: house
-- ------------------------------------------------------
-- Server version 5.7.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*... |
-- Run from command line: $ sqlite3 -init thop-prov.sql
.mode column
.header on
CREATE TABLE hop (S text, T text, P text);
INSERT INTO hop VALUES ("a","a", "p");
INSERT INTO hop VALUES ("a","b", "q");
INSERT INTO hop VALUES ("b","a", "r");
INSERT INTO hop VALUES ("b","c", "s");
CREATE VIEW thop AS
SELECT h1.S... |
<filename>sql/potato.sql
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 24, 2015 at 10:56 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.