sql stringlengths 6 1.05M |
|---|
<filename>src/db/sql/update_game_with_started_state.sql
UPDATE game_servers
SET started_server_id =
(SELECT s.id
from started_servers s
where s.address = ?1 and s.last_seen_turn = ?2)
WHERE alias = ?3;
|
<filename>laranews.sql<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 21, 2021 at 08:43 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
... |
-- file:updatable_views.sql ln:523 expect:true
INSERT INTO rw_view1 VALUES (7,-8)
|
<reponame>flexsocialbox/una
-- PAGES
DELETE FROM `sys_pages_blocks` WHERE `object`='bx_organizations_view_profile' AND `title` IN ('_bx_orgs_page_block_title_profile_subscriptions', '_bx_orgs_page_block_title_profile_subscribed_me', '_bx_orgs_page_block_title_fans', '_bx_orgs_page_block_title_admins');
INSERT INTO `sys... |
CREATE SEQUENCE public.comment_seq;
CREATE TABLE public.comment
(
id bigint NOT NULL DEFAULT nextval('public.comment_seq'),
author_username character varying(255),
created timestamp NOT NULL DEFAULT now(),
message character varying(2000) NOT NULL,
book_id bigint NOT NULL,
CONSTRAINT comment_pkey PRIMARY KE... |
<reponame>pydemo/spv_14.4
select count(*) from nulls3 where bool_0 = 0
44
|
<reponame>drsjr/AventuraTCC<filename>script/MYSQL/Aventura_Populate.sql
USE aventura_db;
## USUARIOS
INSERT INTO
Usuario (username,password,favor,ativo)
VALUES ('user','$2a$10$ZmetWuFktyIZzg24lbJrgu1kRVNYElvDD.IN3U92p/2UuHG75u6Gy',10,true);
INSERT INTO
Usuario (username,password,favor,ativo)
VALUES ('micael','$2... |
-- Revert ggircs:function_load_emission from pg
begin;
drop function swrs_transform.load_emission;
commit;
|
DROP TABLE IF EXISTS job;
DROP TABLE IF EXISTS message;
DROP TABLE IF EXISTS consumer;
DROP TABLE IF EXISTS channel;
DROP TABLE IF EXISTS producer;
|
<reponame>xia-huang-411303/EasyRec
pai -name easy_rec_ext
-Dconfig=oss://{OSS_BUCKET_NAME}/{EXP_NAME}/configs/taobao_fg.config
-Dcmd=export
-Dexport_dir=oss://{OSS_BUCKET_NAME}/{EXP_NAME}/ev/export
-Darn={ROLEARN}
-Dbuckets=oss://{OSS_BUCKET_NAME}/
-DossHost={OSS_ENDPOINT}
;
|
create table users (
id bigint not null,
account_non_expired boolean not null,
account_non_locked boolean not null,
credentials_non_expired boolean not null,
enabled boolean not null,
password varchar(255),
username varchar(255),
primary key (id));
create sequence oauth_users_sequence start with 2 incr... |
<gh_stars>0
CREATE TABLE IF NOT EXISTS "beike" (
"house_code" INT,
"card_type" TEXT,
"city_id" INT,
"resblock_id" INT,
"delegate_id" INT,
"title" TEXT,
"desc" TEXT,
"bangdan_title" TEXT,
"reco_desc" TEXT,
"total_price" TEXT,
"total_price_count" INT,
"unit_price" TEXT,
... |
/* Start of the assignment */
create schema assignment;
use assignment;
select * from bajaj_temp;
desc bajaj_temp;
/*****************************************BAJAJ AUTO STOCK*********************************************/
/* Lets create a new date column */
alter table bajaj_temp
add column date_field datetime after Da... |
<reponame>kedarshet/Library-Management-System
drop database library;
create database library;
\c library;
CREATE TABLE Reader
( R_id INT,
R_name VARCHAR(25),
R_address VARCHAR(50),
R_phone CHAR(10),
PRIMARY KEY (R_id)
);
CREATE TABLE Articles
( P_name VARCHAR(50) ,
P_author VARCHAR(25),
P_field ... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 17-Dez-2020 às 13:57
-- Versão do servidor: 10.4.14-MariaDB
-- versão do PHP: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... |
<reponame>faisalsanto007/Hakcerrank-problem-solving
SELECT RPAD('*', (21-LEVEL)*2, ' *')
FROM DUAL CONNECT BY LEVEL <= 20; |
<reponame>mmohajer9/wideworld-importers-data-warehouse<gh_stars>0
use [WWI-Staging];
GO
IF OBJECT_ID('dbo.StagingLog', 'U') IS NOT NULL
DROP TABLE dbo.StagingLog
GO
CREATE TABLE StagingLog
(
[StagingLogID] INT IDENTITY(1 , 1) PRIMARY KEY,
[ProcedureName] NVARCHAR(500),
[Action] NVARCHAR(500),
... |
delete from Movie where id=4;
SELECT * FROM top_movies_collection.movie; |
-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 15 Mei 2016 pada 08.42
-- Versi Server: 5.6.24
-- PHP Version: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!4... |
SELECT * from realm where name = 'rypock' |
/*
Warnings:
- The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint.
- You are about to drop the column `oauthId` on the `User` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "User.oauthId_unique";
-- Cre... |
Insert into egcl_servicecategory (id,name,code,isactive,version,createdby,createddate,lastmodifiedby,lastmodifieddate) values (nextval('SEQ_EG_MODULE'),'Atom Payment Gateway','ATOM',false,0,(select id from eg_role where name='SYSTEM'),now(),(select id from eg_role where name='SYSTEM'),now());
Insert into egcl_servicede... |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 16, 2019 at 06:22 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
SELECT
SUM(quantity)::FLOAT AS quantity,
SUM(value)::FLOAT AS value,
RANK() OVER (PARTITION BY year, commodity_id, activity ORDER BY SUM(quantity) DESC) AS quantity_rank,
RANK() OVER (PARTITION BY year, commodity_id, activity ORDER BY SUM(value) DESC) AS value_rank,
commodity_id,
year::SMALLINT,
iso2,
a... |
DROP TABLE IF EXISTS article;
DROP TABLE IF EXISTS secret;
CREATE TABLE article (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title VARCHAR(255) UNIQUE NOT NULL,
content TEXT NOT NULL,
created_at DATETIME NOT NULL
);
INSERT INTO article (title, content, created_at)
VALUES ('Yandex Debuts Smart Home Ecos... |
-- file:alter_table.sql ln:717 expect:true
insert into atacc1 (test,test2) values (5,4)
|
<filename>src/test/resources/sql/create_domain/d704502b.sql<gh_stars>10-100
-- file:alter_table.sql ln:1598 expect:true
create domain alter1.posint integer check (value > 0)
|
create table book
(
id integer auto_increment primary key,
title varchar(255) not null,
publishing_year integer not null,
); |
-- 2017-06-02T21:28:55.837
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET AD_Reference_ID=13, IsUpdateable='N',Updated=TO_TIMESTAMP('2017-06-02 21:28:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=5415
;
|
DROP TABLE tbl_token;
DROP TABLE tbl_client;
DROP TABLE tbl_users;
CREATE TABLE tbl_users
(
userid varchar2(20) NOT NULL,
password varchar2(20) NOT NULL,
username varchar2(40),
userno number UNIQUE
);
alter table tbl_users add constraint pk_users primary key (userid);
CREATE TABL... |
<gh_stars>0
INSERT INTO node (name, description) VALUES ('PAWS_Job_Submission', 'Protein Annotation Webservices, context \'paws\' job submissions');
INSERT INTO node_access_rule (node_id, network_address)
SELECT id, '128.95.70.*' FROM node WHERE name = 'PAWS_Job_Submission' ;
INSERT INTO node_access_rule (node_... |
<filename>InitPatientDiagnoses.sql
USE [DatabusTest]
GO
INSERT INTO [dbo].[PatientDiagnoses]
([DiagnosisID]
,[PatientID]
,[DiagnosisCode]
,[DiagnosisDescription])
VALUES
(1, 1, 'E11.9', 'Type 2 diabetes mellitus without complications')
GO
INSERT INTO [dbo].... |
--gbif_taxonomy_description
DROP TABLE IF EXISTS gbif_taxonomy_description CASCADE;
CREATE TABLE gbif_taxonomy_description
(
taxonID bigint,
type text,
language text,
description text,
source text,
creator text,
contributor text,
license text
);
--gbif_taxonomy_distribution
DROP TABLE ... |
<reponame>fossabot/automate-1
-- Deploy delivery:add_scheduler_to_jobs to pg
BEGIN;
ALTER TABLE jobs
ADD COLUMN scheduled_time timestamp DEFAULT '0001-01-01T00:00:00Z00:00',
ADD COLUMN recurrence TEXT NOT NULL DEFAULT '',
ADD COLUMN parent_id TEXT NOT NULL DEFAULT '',
ADD COLUMN job_count int NOT NULL DEFAULT... |
IndexBulkDeleteResult *
amvacuumcleanup (IndexVacuumInfo *info,
IndexBulkDeleteResult *stats);
|
<gh_stars>1-10
ALTER TABLE reviews
ADD COLUMN addon_id int(11) unsigned NULL,
ADD FOREIGN KEY (addon_id) REFERENCES addons (id),
CHANGE COLUMN version_id version_id int(11) unsigned NULL;
UPDATE reviews SET addon_id=
(SELECT addon_id FROM versions WHERE id=version_id);
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 23, 2021 at 05:40 PM
-- 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... |
CREATE TABLE IF NOT EXISTS `ci_navigation` (`navSlug` varchar(10) NOT NULL,`navTitle` text NOT NULL,`navHTML` text NOT NULL,`navEdit` text NOT NULL,FULLTEXT KEY `navigationHTML` (`navHTML`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_general_ci;~
INSERT INTO `ci_navigation` (`navSlug`, `navTitle`, `navHT... |
---
--- Renaming create_datetime coulmn to created_datetime in equipment_documents table
---
ALTER TABLE `equipment_documents` CHANGE `create_datetime` `created_datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
---
--- Renaming update_datetime column to updated_datetime in equipment_documents table
---
ALTER TABL... |
SET CLIENT_ENCODING TO UTF8;
SET STANDARD_CONFORMING_STRINGS TO ON;
BEGIN;
CREATE TABLE "public"."stadtteile" (gid serial,
"nr" varchar(80),
"__gid" varchar(80),
"name" varchar(80),
"flaeche" varchar(80),
"umfang" varchar(80));
ALTER TABLE "public"."stadtteile" ADD PRIMARY KEY (gid);
SELECT AddGeometryColumn('public','... |
ALTER TABLE OFFENDER_DELTA
ADD ACTION VARCHAR(10) NOT NULL;
|
<reponame>Qraainii/Toko_Euflowria<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.17.32
-- Generation Time: Jun 23, 2021 at 03:28 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = ... |
SELECT Own_Transfer, Class1, Class2, SUM(Value)
FROM Statements
GROUP BY Class1, Class2, Own_Transfer
|
ALTER TABLE todo RENAME COLUMN content TO body;
|
INSERT INTO User (id, firstname, lastname, username, password, salary, age) VALUES (1, 'Alex','Knr', 'alex123','$2a$04$4vwa/ugGbBVDvbWaKUVZBuJbjyQyj6tqntjSmG8q.hi97.xSdhj/2', 3456, 33);
INSERT INTO User (id, firstname, lastname, username, password, salary, age) VALUES (2, 'Tom', 'Asr', 'tom234', <PASSWORD>', 7823, 23)... |
SELECT TOP(10) ProjectID,[Name],[Description],StartDate,EndDate FROM Projects
ORDER BY StartDate , [Name] |
create or replace function update_inventory_view_from_stock_items_fn() returns trigger as $$
declare
skuCode sku_code;
begin
update inventory_search_view set
sku = new.sku,
stock_item = json_build_object(
'id', new.id,
'sku', new.sku,
'defaultUnitCost', new.de... |
<reponame>r0busta/store-data-replication
-- +migrate Up
create table order_line (
id bigint not null primary key,
order_id bigint not null,
product_id bigint,
variant_id bigint,
sku varchar(255),
name varchar(255),
title varchar(255),
variant_title varchar(255),
vendor varchar(255),
... |
-- file:arrays.sql ln:89 expect:true
SELECT b[1:1][2][2],
d[1:1][2]
FROM arrtest
|
<filename>Ora_SQLPlus_SQLcL_sql_scripts/audit_sum.sql
--==============================================================================
-- GPI - <NAME>
-- Desc: Query the audit log entries
--
-- Must be run with dba privileges
--
--==============================================================================
s... |
<reponame>robsiera/bugnet
CREATE PROCEDURE [dbo].[BugNet_Issue_GetIssueStatusCountByProject]
@ProjectId int
AS
SELECT
s.StatusName,COUNT(nt.IssueStatusId) as 'Number', s.StatusId, s.StatusImageUrl
FROM
BugNet_ProjectStatus s
LEFT OUTER JOIN
(SELECT
IssueStatusId, ProjectId
FROM
BugNet_IssuesView
WHER... |
<gh_stars>1-10
/*
Scalar function for detecting if a value is a valid integer.
Example use:
SELECT dbo.ISINTEGER('0.5') As StringFail, dbo.ISINTEGER('1') As StringPass, dbo.ISINTEGER(2) As NumericPass
*/
CREATE OR ALTER FUNCTION ISINTEGER
(
@value sql_variant
)
RETURNS BIT
AS
BEGIN
DECLARE @r... |
<filename>llvmsqlite_util/benchmarking/micro/5.sql
--- Join on indexed column
-- This allows to see if indexed joins are more / less
-- efficient in the JIT.
SELECT * FROM Sales JOIN Clients ON Sales.S_Client = Clients.C_ID;
|
/*
Navicat Premium Data Transfer
Source Server : Local
Source Server Type : MySQL
Source Server Version : 50712
Source Host : localhost:3306
Source Schema : xian_dev
Target Server Type : MySQL
Target Server Version : 50712
File Encoding : 65001
Date: 26/09/2020 16:52... |
<gh_stars>0
-- SIMPLE ROOT-USER CONFIGURATION --
ALTER USER 'root' @'localhost' IDENTIFIED BY 'root';
ALTER USER 'root' @'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
FLUSH PRIVILEGES; |
/*
Navicat Premium Data Transfer
Source Server : mysql8.0
Source Server Type : MySQL
Source Server Version : 80016
Source Host : 127.0.0.1:3306
Source Schema : study
Target Server Type : MySQL
Target Server Version : 80016
File Encoding : 65001
Date: 30/05/2019 21:11... |
<gh_stars>1-10
-- increase length of password column from 40 to 1024
ALTER TABLE "statements"."MailConnectionProfile" ALTER COLUMN "password" VARCHAR(1024);
|
<reponame>JeromeRocheteau/openbeerdb
select count(id) as size
from styles |
/**************************************
--encoding : UTF-8
--Author: <NAME>, <NAME>
--Date: 2018.09.10
@NHISNSC_rawdata : DB containing NHIS National Sample cohort DB
@NHISNSC_database : DB for NHIS-NSC in CDM format
@NHIS_JK: JK table in NHIS NSC
@NHIS_20T: 20 table in NHIS NSC
@NHIS_30T: 30 table in NHIS NS... |
CREATE FUNCTION func524() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE269);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE393);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE111);val:=(SELECT COUNT(*)INTO MYCOU... |
<gh_stars>1000+
select *
from cereals
order by calories
|
def F = Choose { A = F }
|
-- @testpoint:opengauss关键字formatter(非保留),作为表空间名
--关键字不带引号,创建成功
drop tablespace if exists formatter;
CREATE TABLESPACE formatter RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1';
drop tablespace formatter;
--关键字带双引号,创建成功
drop tablespace if exists "formatter";
CREATE TABLESPACE "formatter" RELATIVE LOCATION 'hd... |
-- @testpoint:opengauss关键字nologin(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists nologin;
create group nologin with password '<PASSWORD>';
drop group nologin;
--关键字带双引号-成功
drop group if exists "nologin";
create group "nologin" with password '<PASSWORD>';
drop group "nologin";
--关键字带单引号-合理报错
drop group if exists 'no... |
-- @testpoint: opengauss关键字Int(非保留),作为同义词对象名,部分测试点合理报错
--前置条件
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop synonym if exists Int;
create synonym Int for explain_test;
insert into Int values (1,'ada'),(2, 'bob');
update Int set Int.name='cici' where Int.id=2... |
CREATE NONCLUSTERED INDEX [IDX_dw_unidades_facturadas_busquedaavanzada] ON [dbo].[tbl_dw_unidades_facturadas]
(
[nu_vin] ASC,
[no_asesor_comercial] ASC,
[an_fabricacion] ASC,
[an_modelo] ASC,
[fe_entrega] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE =... |
DROP DATABASE domainhunter;
CREATE DATABASE domainhunter
WITH
OWNER = postgres
ENCODING = 'UTF8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
DROP TABLE public.domain;
CREATE TABLE public.domain (
id SERIAL NOT NULL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
tld VARCHAR(10) NOT NULL,
exp... |
CREATE PROCEDURE dbo.usp_GetStudentAssessment (@Id int)
AS
BEGIN
SELECT
sa.StudentId ,
sa.AssessmentTypeId ,
tcs.StudentName ,
at.AssessmentName as AssessmentTypeName
FROM
dbo.StudentAssessment sa
JOIN dbo.TeacherClassStudent tcs on sa.StudentId = tcs.Id
JOIN dbo.AssessmentType at on sa.AssessmentTyp... |
CREATE TABLE IF NOT EXISTS DAS.COMPETITION_PRODUCT_ORDER (
ID SERIAL NOT NULL PRIMARY KEY ,
COMPETITION_ID INTEGER NOT NULL REFERENCES DAS.COMPETITION(ID),
PRODUCT_ID INTEGER NOT NULL REFERENCES DAS.COMPETITION_PRODUCT(ID),
USER_ACCOUNT_ID INTEGER NOT NULL REFERENCES DAS.ACCOUNT (ID),
QUANTITY INTEGER NOT NU... |
@@autotask_sql_setup
select client_name, status from dba_autotask_client
/
|
-- phpMyAdmin SQL Dump
-- version 3.5.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 21, 2017 at 08:07 PM
-- Server version: 5.5.50
-- PHP Version: 5.4.45
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*... |
SELECT name
FROM Employee
ORDER BY name; |
DROP DATABASE IF EXISTS everything_tech_blog;
CREATE DATABASE everything_tech_blog; |
CREATE DATABASE cafe_data;
CREATE USER cafe_user WITH PASSWORD '<PASSWORD>';
GRANT ALL PRIVILEGES ON DATABASE cafe_data to cafe_user;
\c cafe_data
CREATE TABLE products (
product_id INTEGER NOT NULL,
name VARCHAR(256) NOT NULL,
bev_food VARCHAR(256) NOT NULL,
price VARCHAR(32) ... |
CREATE FUNCTION sp_lookup_user_by_email
(
userEmail VARCHAR(255)
)
RETURNS TABLE
(
jdoc JSON
) AS $$
BEGIN
RETURN QUERY
WITH result AS (
SELECT app_users.id,
app_users.email,
app_users.password,
app_users.is_active,
... |
ALTER TABLE tarjetabloque ADD FOREIGN KEY(idbloque) REFERENCES bloque(idbloque);
ALTER TABLE `tarjetabloque` DROP INDEX `idbloque`, ADD INDEX `tarjetabloque_idbloque_foreign` (`idbloque`) COMMENT '';
|
<filename>exa/read_file/TestData,0001_0001.sql
CREATE TABLE contacts
(
id INT AUTO_INCREMENT,
name VARCHAR(128),
phone VARCHAR(64),
email VARCHAR(256)
);
|
('27d6e73f-421f-43c2-9dc9-b13065c127a4', 'Darren', 'Brown', '<EMAIL>', '<PASSWORD>'),
('aec5379b-e4f3-4e5f-ac9b-bac3e3dc2e16', 'Donna', 'Karren', '<EMAIL>', 'KazDj1'),
('b4e15a1c-63e8-4f3d-880e-07771cc21d4a', 'Adam', 'Driver', '<EMAIL>', '<PASSWORD>'),
('6b7410b3-75a3-4181-b841-ad60856561e4', 'Alicia', ... |
CREATE MESSAGE TYPE [mtype_sqlwatch_end]
VALIDATION = NONE; |
<gh_stars>100-1000
CREATE TABLE IF NOT EXISTS `relay` (
`id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL,
`source_node_id` bigint(20) NOT NULL,
`dist_node_id` bigint(20) NOT NULL,
`dist_ip` text NOT NULL,
`port` int(11) NOT NULL,
`priority` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
AL... |
<gh_stars>10-100
-- file:numeric_big.sql ln:362 expect:true
INSERT INTO num_exp_mul VALUES (8,1,'724311956372274.013505025536163790671033020303665174348821300717903975651494464010862558017273741419293878941333855432798669751846308745261265895518041132700290097957434773995660017784699606374178720512200726846867438639615... |
<filename>samples/features/ssms-templates/Sql/Assembly/Create Assembly.sql
--=============================================================
-- Create Assembly Template
--=============================================================
IF EXISTS(
SELECT *
FROM sys.assemblies
WHERE name = N'<assembly_name, SYSNAME, MyC... |
<reponame>Danial41/-
DELETE FROM `#__quiz_t_qtypes` WHERE c_id = '14';
INSERT INTO #__quiz_t_qtypes (c_id, c_qtype, c_type) VALUES (14, 'Dalliclick', 'dalliclick');
CREATE TABLE IF NOT EXISTS `#__quiz_t_dalliclick` (
`c_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`c_choice` text NOT NULL,
`c_right` ch... |
INSERT INTO `course_lesson_view` (`id`, `courseId`, `lessonId`, `fileId`, `userId`, `fileType`, `fileStorage`, `fileSource`, `createdTime`) VALUES (1,6,59,2,1,'video','local','self',1432780374),(2,6,60,3,1,'video','local','self',1432780387),(3,6,61,5,1,'video','local','self',1432780400),(4,3,64,10,1,'video','local','se... |
<gh_stars>0
-- @testpoint:opengauss关键字Hour(非保留),作为字段数据类型(合理报错)
--前置条件
drop table if exists explain_test cascade;
--关键字不带引号-合理报错
create table explain_test(id int,name Hour);
--关键字带双引号-合理报错
create table explain_test(id int,name "Hour");
--关键字带单引号-合理报错
create table explain_test(id int,name 'Hour');
--关键字带反引号-合理报错
cr... |
<gh_stars>0
-- ----------------
--
-- This SQL file is a seed to set up a database for running a
-- so-called "Chinese Auction."
--
-- Supporters buy tickets packages and then can put tickets into
-- prize packages for the auction.
--
-- See the comments above each table for details.
--
-- ----------------
-- Create... |
<reponame>relay-dev/fructose-microservices
CREATE TABLE [dbo].[CustomerNote] (
[ID] BIGINT IDENTITY (1, 1) NOT NULL,
[CustomerID] BIGINT NOT NULL,
[CustomerNoteTypeID] INT NOT NULL,
[Note] VARCHAR (MAX) NOT NULL,
[IsSuppressed] BIT... |
<reponame>JYovan/AYR<gh_stars>0
USE ayr;
DROP PROCEDURE IF EXISTS SP_COPIAR_DETALLE;
DELIMITER $$
USE `ayr`$$
CREATE PROCEDURE SP_COPIAR_DETALLE (MovID INT, NuevoID INT)
BEGIN
-- Variables donde almacenamos los datos que devuelve el SELECT
DECLARE vID int;
DECLARE vPreciarioConcepto_ID int;
DECLARE vRenglon in... |
<filename>dbname.sql
-- MySQL dump 10.17 Distrib 10.3.22-MariaDB, for debian-linux-gnueabihf (armv8l)
--
-- Host: localhost Database: ttrss
-- ------------------------------------------------------
-- Server version 10.3.22-MariaDB-0+deb10u1-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!... |
CREATE TABLE [dbo].[Org] (
[Id] int NOT NULL IDENTITY(1,1) ,
[Name] nvarchar(50) NOT NULL
)
GO
-- ----------------------------
-- Indexes structure for table Org
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table Org
-- ----------------------------
ALTER TABLE [dbo].... |
<reponame>kajalbh99/event-manager<filename>public/uploads/temp/temp_2_1533729903166/153373000266.sql
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Aug 08, 2018 at 01:55 AM
-- Server version: 5.6.32-78.1
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AU... |
-- MySQL dump 10.13 Distrib 8.0.13, for Linux (x86_64)
--
-- Host: localhost Database: zimon
-- ------------------------------------------------------
-- Server version 8.0.13
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40... |
INSERT INTO `jy_region` VALUES (1, 0, '中国', 0);
INSERT INTO `jy_region` VALUES (2, 1, '北京', 1);
INSERT INTO `jy_region` VALUES (3, 1, '天津', 1);
INSERT INTO `jy_region` VALUES (4, 1, '河北省', 1);
INSERT INTO `jy_region` VALUES (5, 1, '山西省', 1);
INSERT INTO `jy_region` VALUES (6, 1, '内蒙古自治区', 1);
INSERT INTO `jy_region` VA... |
<gh_stars>10-100
/****** Object: StoredProcedure [AddF06_Country] ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AddF06_Country]') AND type in (N'P', N'PC'))
DROP PROCEDURE [AddF06_Country]
GO
CREATE PROCEDURE [AddF06_Country]
@Country_ID int OUTPUT,
@Parent_SubContinen... |
<reponame>Dani3lSun/apex-plugin-analytics
SPOOL install.log
-- create sequences
@@sequences/analytics_data_seq.sql
@@sequences/analytics_data_geolocation_seq.sql
@@sequences/apex_app_pages_seq.sql
@@sequences/custom_analytic_queries_seq.sql
-- create tables
@@tables/analytics_data_table.sql
@@tables/analytics_data_ge... |
CREATE DATABASE IF NOT EXISTS `pet` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `pet`;
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
--
-- Host: localhost Database: pet
-- ------------------------------------------------------
-- Server vers... |
ALTER TABLE public.contributions
DROP COLUMN media; |
<filename>samples/INSERT.sql
INSERT INTO artists (name, email)
VALUES('<NAME>', "<EMAIL>");
INSERT INTO artists (name, email)
VALUES('<NAME>', "<EMAIL>"),
("<NAME>", "<EMAIL>");
INSERT INTO artists (name, email, enabled)
VALUES('<NAME>', "<EMAIL>", true),
("<NAME>", "<EMAIL>", false);
INSERT INTO users (name, email)... |
ALTER TABLE actions ADD COLUMN created_by varchar(1000);
|
create table users (
id serial8 primary key,
email varchar(255) not null unique,
name varchar(255) not null,
password varchar(255) not null
);
create table artists (
id serial8 primary key,
name varchar(255) not null,
author serial8 not null,
foreign key (author) references users(id)
);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.