sql stringlengths 6 1.05M |
|---|
SELECT * FROM Employees; -- なにもない
|
ALTER TABLE ticket_pricing
DROP previous_ticket_pricing_id;
|
<filename>fixtures/doctests/ecpg/070/input.sql
EXEC SQL include sqlda.h;
sqlda_t *mysqlda;
EXEC SQL FETCH 3 FROM mycursor INTO DESCRIPTOR mysqlda;
|
<reponame>wardoyo/widara2<filename>web_profile.sql
-- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 23, 2018 at 04:49 PM
-- Server version: 5.6.16
-- PHP Version: 5.5.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @... |
<filename>create_db.sql<gh_stars>0
DROP DATABASE IF EXISTS forensics;
CREATE DATABASE forensics
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci; |
<filename>masjid.sql<gh_stars>0
/*
SQLyog Ultimate v12.4.3 (32 bit)
MySQL - 5.5.24-log : Database - masjid1600005
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 18, 2021 at 11:56 AM
-- Server version: 5.7.24
-- PHP Version: 7.2.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
<gh_stars>0
INSERT INTO `author` (`id_author`, `name`, `username`, `password`, `is_admin`) VALUES
(1, 'Administrator', 'admin', '<PASSWORD>', 1); |
<filename>fdb-sql-layer-core/src/test/resources/com/foundationdb/sql/optimizer/operator/coi-index/union-3.sql
select cid, name from customers
UNION
select cat, sku from categories
UNION
select iid, sku from items |
@@install_specification
@@install_implementation
|
USE [ANTERO]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF EXISTS (
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA='sa' AND TABLE_NAME='sa_ehoks_perustiedot_laajempi'
) BEGIN
DROP TABLE sa.sa_ehoks_perustiedot_laajempi
END
IF NOT EXISTS (
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TAB... |
<gh_stars>1-10
ALTER TABLE `occideas`.`Interview_Answer`
CHANGE COLUMN `answerFreetext` `answerFreetext` MEDIUMBLOB NULL DEFAULT NULL ;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1:54133
-- Generation Time: Feb 15, 2017 at 02:10 PM
-- Server version: 5.7.9
-- PHP Version: 5.5.38
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
-- file:arrays.sql ln:453 expect:true
INSERT INTO arraggtest (f1, f2, f3) VALUES
('{1,2,3}','{{grey,red},{grey,blue}}','{1.6}')
|
<gh_stars>1-10
DROP SCHEMA IF EXISTS `cedesk_prod`;
CREATE SCHEMA `cedesk_prod`
DEFAULT CHARACTER SET utf8;
CREATE USER 'cedesk'@'%'
IDENTIFIED BY 'cedesk';
GRANT ALL PRIVILEGES ON cedesk_prod.* TO 'cedesk'@'%';
|
<filename>fbwiki/mediawiki/maintenance/archives/patch-revision-actor-comment-MCR.sql
-- T161671, T184615, T215466: Drop old revision user, comment, and content fields, and
-- add the replacement actor and comment_id fields.
ALTER TABLE /*_*/revision
DROP INDEX /*i*/user_timestamp,
DROP INDEX /*i*/page_user_timestamp... |
# --- !Ups
CREATE TABLE charts (
id bigint NOT NULL,
name varchar(255) NOT NULL,
period int DEFAULT 60000,
CONSTRAINT pk_charts PRIMARY KEY (id)
);
# --- !Downs
DROP TABLE charts; |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table client (
id bigint not null,
name varchar(255),
address varchar(255),
email varchar(255),
p... |
drop function app_private.tg__add_job();
|
/****** Object: UserDefinedFunction [dbo].[JobBacklogOnDateByResultType] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION dbo.JobBacklogOnDateByResultType
/****************************************************
**
** Desc:
** returns count of number of jobs in backlog on given date
**... |
CREATE TABLE public.sys_stores (
id int8 NOT NULL,
"name" varchar(500) NOT NULL,
date_updated timestamp NOT NULL,
active int4 NOT NULL DEFAULT 1,
store_type varchar(1) NOT NULL,
CONSTRAINT sys_stores_pkey PRIMARY KEY (id)
);
INSERT INTO public.sys_stores (id,"name",date_updated,active,store_type) VALUES
(95,'0.8... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Oct 18, 2020 at 01:37 AM
-- Server version: 10.3.9-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... |
<filename>test/spec-tests/cql/CqlDateTimeOperatorsTest.cql
library CqlDateTimeOperatorsTest version '1.4.0'
using QUICK version '3.3.0'
context Patient
define "Add": Tuple{
"DateTimeAdd5Years": Tuple{
expression: DateTime(2005, 10, 10) + 5 years,
output: @2010-10-10T
},
"DateTimeAddInvalidYears": Tuple{
... |
-- Note that this may require the pg_crypto extension:
--CREATE EXTENSION pgcrypto;
-- The anonymous database produced may not yet be fully anonymous due to issues with gameboards!
CREATE OR REPLACE FUNCTION anonymise(id TEXT, salt TEXT) RETURNS TEXT AS
$$ BEGIN
RETURN encode(hmac(id, salt, 'sha256'), 'hex');
EN... |
CREATE TABLE principals (
id INTEGER PRIMARY KEY ASC,
uri TEXT,
email TEXT,
displayname TEXT,
UNIQUE(uri)
);
CREATE TABLE groupmembers (
id INTEGER PRIMARY KEY ASC,
principal_id INTEGER,
member_id INTEGER,
UNIQUE(principal_id, member_id)
);
INSERT INTO principals (uri,email,displayname) VALUES ('principal... |
-- @testpoint: opengauss关键字lower(非保留),作为存储过程名,部分测试点合理报错
--关键字不带引号-成功
create or replace procedure lower(
section number(6),
salary_sum out number(8,2),
staffs_count out integer)
is
begin
select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section;
end;
/
drop procedure lower... |
SELECT * FROM Bank_Account where Account_Type like CONCAT('%', :thing, '%') |
CREATE TABLE `gift` (
`gift_id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`have` integer NOT NULL,
`description` varchar(255),
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
CONSTRAINT pk_sample PRIMARY KEY (`gift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.5
-- Dumped by pg_dump version 11.0
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', fal... |
<reponame>sambhav228/Database-Management-Essentials
DROP TABLE ResourceTbl;
CREATE TABLE ResourceTbl (
resNo CHAR(8) NOT NULL,
resName VARCHAR(30) NOT NULL,
rate DECIMAL(8, 2) NOT NULL,
CONSTRAINT PK_ResourceTbl PRIMARY KEY (resNo)
);
|
<filename>innlevering1/droptables.sql
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS Økt;
DROP TABLE IF EXISTS Øvelse;
DROP TABLE IF EXISTS ØktHarØvelse;
DROP TABLE IF EXISTS Øvelsesgruppe;
DROP TABLE IF EXISTS Apparat;
DROP TABLE IF EXISTS ØvelseMedApparat;
DROP TABLE IF EXISTS ØvelseUtenApparat;
DROP TABLE IF EXIS... |
SELECT department_id,
CASE
WHEN department_id = 1 THEN AVG(salary) + 5000
ELSE AVG(salary)
END AS 'avg_salary'
FROM employees
WHERE salary > 30000 AND manager_id != 42
GROUP BY department_id
ORDER BY department_id;
|
<filename>www/php/update_v1.2.sql
-- update bookmarks table
-- update groups table
ALTER TABLE `groups` ADD `remarks` TEXT NOT NULL AFTER `name`;
-- update global table
INSERT INTO `global` (`key`, `value`) VALUES ('hideU1', '0'), ('hideU2', '0'), ('hideU3', '0'), ('hideU4', '0'), ('hideU5', '0'), ('hideU6', '0'), ('... |
alter table email_verifications drop column expiry;
drop trigger email_verifications_delete_old_rows_trigger on email_verifications;
drop function email_verifications_delete_old_rows;
|
<gh_stars>1-10
/* Mysql dokumentaatio tietokannan taulun muokkaamisesta.
*
* https://dev.mysql.com/doc/refman/5.7/en/alter-table.html
* https://www.w3schools.com/sql/sql_foreignkey.asp
*
* ALTER TABLE <taulun_nimi>
* ADD CONSTRAINT <viiteavaimen_nimi>
* FOREIGN KEY (<viittaava_kentta>) REFERENCES <taulun_nimi... |
# 删除重复的电子邮箱
# 编写一个 SQL 查询,来删除 Person 表中所有重复的电子邮箱,重复的邮箱里只保留 Id 最小 的那个。
# 因垂丝汀,mysql删除的where条件里面的表名不能直接保留到where条件里,需要外包一层
delete
FROM Person
WHERE id not in(
SELECT id
FROM
(
SELECT MIN(id)as id
FROM person
GROUP BY email
)t) |
<reponame>PetroslavGochev/CSharpDatabaseModule
SELECT
E.[FirstName] + ' ' + E.[LastName] AS FullName,
COUNT(U.Name) AS UsersCount
FROM Employees AS E
LEFT JOIN Reports AS R ON R.EmployeeId = E.Id
LEFT JOIN Users AS U ON U.Id = R.UserId
GROUP BY E.FirstName,E.LastName
ORDER BY UsersCount DESC, FullName ASC |
-- file:numeric.sql ln:264 expect:true
INSERT INTO num_exp_add VALUES (6,0,'93901.57763026')
|
-- file:horology.sql ln:152 expect:true
SELECT CAST(time with time zone '01:02-08' AS interval) AS "+00:01"
|
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 13 Jan 2020 pada 11.57
-- Versi server: 10.1.32-MariaDB
-- Versi PHP: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
INSERT INTO `orders`.`order` (`orderId`, `orderAmount`, `orderStatus`, `orderDateTime`, `shipToName`, `shipToAddress`, `shipToCity`, `shipToState`, `shipToZip`) VALUES ('10000001', '300', 'New', '2020-05-01T17:11:49.973Z', 'Shaina Rippin Jr.', '9578 Shanahan Extensions', 'North Vladimirside', 'Rhode Island', '97050-6... |
<filename>tests/test_data/009_Enrollment.sql<gh_stars>0
SET IDENTITY_INSERT Enrollment ON
INSERT INTO dbo.Enrollment (Id, AuthorId, ChildId, SiteId, AgeGroup, Entry, [Exit], ExitReason, UpdatedAt) VALUES (21226, 883, N'782D2A7C-CB2E-4404-4B75-08D7E6C0D989', 1072, 0, N'2019-09-02', null, null, N'2020-04-22 13:27:05.4148... |
<reponame>hsingpu5/telex<filename>o2pg/pg.sql
create table table_name
(
id int4(12),
text text (255 CHAR) not null, --char类型,一个汉字占一个长度
PID text (32 BYTE) NOT NULL, --byte类型,UTF8一个汉字占大约两个长度
status int4(1) DEFAULT 0 null, --添加默认值 如果为空默认值就为0
phoneNumber int4(11),
ca... |
SELECT
employees.name AS employee_name,
employees.role AS employee_role,
departments.name AS department_name
FROM
employee_data.employees
INNER JOIN
employee_data.departments ON
employees.department_id = departments.department_id |
<filename>db_utils/output/tbike_ike_doc_user.sql
-- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: tbike
-- ------------------------------------------------------
-- Server version 8.0.11
--
-- Table structure for table `ike_doc_user`
--
DROP TABLE IF EXISTS `ike_doc_user`;
C... |
-- labels
DELETE FROM `labels` WHERE `module` = 'BankAccounts' AND `field` = 'remarks';
DELETE FROM `labels` WHERE `module` = 'InstitutionBankAccounts' AND `field` = 'remarks';
-- db_patches
DELETE FROM `db_patches` WHERE `issue` = 'PHPOE-1787';
|
select post_id,count(distinct sub_id) number_of_comments
from (
select sub_id post_id
from Submissions
where parent_id is null) a left join Submissions b on a.post_id=b.parent_id
group by post_id
--SQL架构
--表 Submissions 结构如下:
--
--+---------------+----------+
--| 列名 | 类型 |
--+---------------+... |
<reponame>wiltonlazary/snappydata<gh_stars>1000+
update default.Student set marks = marks + 100;
update default.Student set subject = 'Multithreading and Concurrency' where subject='Maths-2';
select id,subject,marks from default.Student;
update default.Student set marks = marks - 200;
update default.Student set su... |
<filename>fixtures/doctests/contrib/000/input.sql
CREATE EXTENSION module_name;
|
<reponame>SKalt/pg_sql_parser_tests
expression from RESTRICTIVE SELECT/ALL policy 1
AND
expression from RESTRICTIVE SELECT/ALL policy 2
AND
...
AND
(
expression from PERMISSIVE SELECT/ALL policy 1
OR
expression from PERMISSIVE SELECT/ALL policy 2
OR
...
)
AND
expression from RESTRICTIVE UPDATE/ALL policy 1
AN... |
-- Modify saved sla reports tables to case sensitive
ALTER TABLE sla_config COLLATE latin1_general_cs;
ALTER TABLE sla_config_objects COLLATE latin1_general_cs;
ALTER TABLE sla_config ADD cluster_mode INT NOT NULL DEFAULT 0; |
-- @testpoint: 自定义函数同义词在触发器中调用
-- @modify at: 2020-11-25
--建表
drop table if exists SYN_TAB_009 cascade;
drop table if exists SYN_TAB_002 cascade;
create table SYN_TAB_009
(
id int,
name varchar2(10),
sal number
);
create table SYN_TAB_002
(
id int,
name varchar2(10),
sal number
);
--创建函数和同义词
drop function i... |
<reponame>HesterLim/Database-Systems-INFO20003-
-- INFO20003 transactions lab script
-- Uncomment for BYOD installs:
-- USE labs2019;
DROP TABLE IF EXISTS soundtrack;
DROP TABLE IF EXISTS movie;
CREATE TABLE movie (
movie_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
genre VARCHAR(45... |
<filename>conf/evolutions/database/1.sql
# Users schema
# --- !Ups
CREATE TABLE "user" (
"id" SERIAL PRIMARY KEY,
"first_name" TEXT NOT NULL,
"last_name" TEXT NOT NULL,
"email" VARCHAR(50) UNIQUE NOT NULL,
"isVerified" BOOLEAN NOT NULL,
"isDisabled" BOOLEAN NOT NULL,
"password" TEXT NOT NULL
);
CREATE T... |
/****** Object: StoredProcedure [dbo].[usp_emailMorningDBStatus] Script Date: 2/13/2021 12:14:59 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[usp_emailMorningDBStatus]
AS
/*******************************************************************
--
--Create 3/29/2020 ... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 13, 2021 at 02:08 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: db
-- Generation Time: Dec 12, 2020 at 04:31 AM
-- Server version: 8.0.22
-- PHP Version: 7.4.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S... |
<gh_stars>0
CREATE FUNCTION [dbo].[ufn_sqlwatch_get_file_type_desc]
(
@file_type tinyint
)
RETURNS varchar(max)
with schemabinding
AS
BEGIN
/* https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-master-files-transact-sql
File type:
0 = Rows.
1 = Log
2 = FILESTREAM
3 = Identified fo... |
-- phpMyAdmin SQL Dump
-- version 3.3.7deb7
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- Généré le : Jeu 23 Mai 2013 à 22:27
-- Version du serveur: 5.1.66
-- Version de PHP: 5.3.24-1~dotdeb.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 ... |
DELETE
FROM tournament_team
WHERE tournament_id = $1 and id = $2 AND NOT EXISTS (
SELECT team_id
FROM team_plays_in_tournament_match
WHERE team_id = $2
)
RETURNING id; |
<filename>src/sql/62.sql
ALTER TABLE `user_games` CHANGE `account_value` `account_value` DECIMAL(20,8) NOT NULL DEFAULT '0.00000000';
ALTER TABLE `user_games` ADD `faucet_claims` INT NULL DEFAULT '0' AFTER `api_access_code`; |
<filename>src/test/resources/sql/select/fdc50bb6.sql
-- file:stats.sql ln:61 expect:true
SELECT (pr.snap_ts < pg_stat_get_snapshot_timestamp()) INTO updated4
FROM prevstats AS pr
|
<reponame>AjinkyaBangale2/Leetcode-SQL-Solutions
# https://leetcode.com/problems/recyclable-and-low-fat-products/
SELECT
product_id
FROM Products
WHERE low_fats = 'Y' and recyclable = 'Y' |
<reponame>sucrose0413/das-levy-transfer-matching-api
CREATE TABLE [dbo].[PledgeLocation]
(
[Id] INT IDENTITY NOT NULL,
[PledgeId] INT NOT NULL,
[Name] VARCHAR(MAX) NOT NULL,
[Latitude] FLOAT NOT NULL,
[Longitude] FLOAT NOT NULL,
CONSTRAINT [FK_PledgeLocation_ToTable] FOREIGN KEY ([PledgeId]) R... |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 07, 2021 at 02:43 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*... |
<gh_stars>1000+
-- 2019-05-08T08:51:29.034
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplet... |
DROP DATABASE IF EXISTS tracker_DB;
CREATE DATABASE tracker_DB;
USE tracker_DB;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) NOT NULL
);
CREATE TABLE role (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(30) NOT NULL,
salary DECIMAL NOT NULL,
... |
<reponame>wanghaonanlpc/Leetcode-1<filename>database/_570.sql
select Name
from Employee as Name
where Id in
(select ManagerId
from Employee
group by ManagerId
having count(*) >= 5)
; |
<reponame>utPLSQL/utPLSQL-v2-v3-bridge
set heading off
set feedback off
def component = &&1
exec dbms_output.put_line('Installing component '||upper(regexp_substr('&&component','\/(\w*)\.',1,1,'i',1)));
@@&&component
show errors
exec dbms_output.put_line('--------------------------------------------------------------')... |
<reponame>alytics/pg_partman<gh_stars>0
-- ########## TIME STATIC TESTS ##########
-- Test p_start_partition parameter
\set ON_ERROR_ROLLBACK 1
\set ON_ERROR_STOP true
BEGIN;
SELECT set_config('search_path','partman, public',false);
SELECT plan(77);
CREATE SCHEMA partman_test;
CREATE SCHEMA partman_retention_test;
... |
<reponame>nowucca/SimpleAffableBean<filename>src/main/db/sampleData.sql
--
-- BSD 3-Clause License
--
-- Copyright (C) 2018 <NAME> <<EMAIL>>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
... |
INSERT INTO `facebook`.`fb_search_codes` (`id`, `create_time`, `update_time`, `code`, `search_status`) VALUES (NULL, NOW(), NOW(), 'ZT55ESKL', 1);
INSERT INTO `facebook`.`fb_search_codes` (`id`, `create_time`, `update_time`, `code`, `search_status`) VALUES (NULL, NOW(), NOW(), '40FYCMIM', 1);
INSERT INTO `facebook`.`fb... |
<reponame>qingbing/laravel-helper
CREATE TABLE `zf_platform` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`key` varchar(32) NOT NULL COMMENT '项目平台代码',
`name` varchar(100) NOT NULL COMMENT '平台名称',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '平台描述',
`is_enable` tinyint(2) unsig... |
<gh_stars>0
create table master_info ( username varchar(30) primary key, password varchar(30), ts_login timestamp, logged boolean);
|
--- creación de tabla destinos
CREATE TABLE destinos
(
idDestino tinyint UNSIGNED auto_increment not null primary key,
destNombre varchar(45) not null,
idRegion tinyint not null,
destPrecio float not null,
destAsientos tinyint not null,
destDisponibles tinyint not null,
destActivo boolean n... |
set echo on
begin
-- v$session.client_info
dbms_application_info.set_client_info('Test - 64 Characters Max');
end;
/
accept x prompt "Press <ENTER>"
begin
-- v$sqlarea.module
-- v$sqlarea.action
-- or dbms_application_info.read_module()
dbms_application_info.set_module(
module_name => 'Test Module',
a... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: db
-- Generation Time: Jul 24, 2019 at 04:52 PM
-- Server version: 5.7.26
-- PHP Version: 7.2.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_... |
<reponame>logikalmidia/codeigniter-blog
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 18, 2018 at 07:45 PM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET t... |
<reponame>Eeki/chat-app<filename>server/migrations/sqls/20210722174152-create-roles-up.sql
CREATE ROLE chat_postgraphile;
CREATE ROLE chat_anonymous;
CREATE ROLE chat_person;
GRANT chat_anonymous TO chat_postgraphile;
GRANT chat_person TO chat_postgraphile;
|
--film tablosunda bulunan ve film ismi (title) 'n' karakteri ile biten en uzun (length) 5 filmi sıralayınız.
SELECT title FROM film
WHERE title LIKE '%n' ORDER BY legnth DESC LIMIT 5;
--film tablosunda bulunan ve film ismi (title)
--'n' karakteri ile biten en kısa (length) ikinci(6,7,8,9,10) 5 filmi(6,7,8,9,10) s... |
/**********************************************************************************
* Descrição: Script de alteração do tipo da coluna na #{Esquema e Tabela@Digite o esquema e a tabela. Ex.: esquema.tabela}
* Autor: #{Autor@Digite o nome do Autor}
* Data Criação: #{Data@Coloque a data de criação@@date}
****************... |
--Template 22
set query_group to 'query 22';
set enable_result_cache_for_session=false;
select
cntrycode,
count(*) as numcust,
sum(c_acctbal) as totacctbal
from (
select
substring(c_phone from 1 for 2) as cntrycode,
c_acctbal
from
spectrum1000.customer
where
subst... |
SELECT id_formacio,
nom,
IFNULL(nom_curt, nom) AS nom_curt,
descripcio,
num_persones
FROM formacions
WHERE id_formacio = ?;
|
<reponame>jdkoren/sqlite-parser
-- analyze2.test
--
-- execsql {
-- DELETE FROM sqlite_stat1;
-- DELETE FROM sqlite_stat2;
-- }
DELETE FROM sqlite_stat1;
DELETE FROM sqlite_stat2; |
-- file:privileges.sql ln:512 expect:true
CREATE CAST (testdomain1 AS testdomain3a) WITH FUNCTION castfunc(int)
|
<filename>restful-clojure/migrations/2015-03-13-005900-add-password-digest-to-users.down.sql
ALTER TABLE users DROP COLUMN password_digest; |
alter table idm.users
add column reset_guid_date_created timestamp;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 09, 2020 at 06:39 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<filename>scripts/schema/ccpv2/201-apb-65-groups-shared_4.sql
/* Copyright (c) 2006-2013 Regents of the University of Minnesota
For licensing terms, see the file LICENSE. */
/* This script drops obsolete views and makes views for each of the
geofeature_layer feat_types. */
\qecho
\qecho This script drops obso... |
<reponame>opitzconsulting/orcas
create table varray_table_add
(
id number
);
|
<reponame>kwakwaversal/mojolicious-plugin-restify-example<gh_stars>1-10
-- 1 up
SET CHECK_FUNCTION_BODIES TO FALSE;
CREATE OR REPLACE FUNCTION "trig_stats_update" ()
RETURNS trigger AS
$BODY$
-- Trigger updating the stats table when games are inserted, updated or deleted.
--
DECLARE
BEGIN
IF TG_OP = 'INSERT' OR TG_... |
-- // CLOUD-76564 update gateway table
-- Migration SQL that makes the change goes here.
ALTER TABLE gateway ADD COLUMN gatewaytype varchar(255);
ALTER TABLE gateway ADD COLUMN ssotype varchar(255);
UPDATE gateway SET gatewaytype = 'INDIVIDUAL';
UPDATE gateway SET ssotype = 'NONE';
ALTER TABLE gateway ALTER COLUMN g... |
<reponame>uk-gov-mirror/SkillsFundingAgency.das-data-management
CREATE TABLE [ASData_PL].[FAT2_ProviderStandardLocation]
(
[StandardId] int NOT NULL,
[UkPrn] int NOT NULL,
[LocationId] int NOT NULL,
[DeliveryModes] varchar(260) NOT NULL,
[Radius] decimal(18,0) NOT NULL,
[National] ... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server Version: 10.4.17-MariaDB - mariadb.org binary distribution
-- Server Betriebssystem: Win64
-- HeidiSQL Version: 11.2.0.6213
-- -----------------------------------------------... |
<reponame>socheatha/bss_clinic_por_rotha<filename>clinic (4).sql
/*
Navicat MySQL Data Transfer
Source Server : Heroku DB
Source Server Version : 80020
Source Host : u6354r3es4optspf.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306
Source Database : i70znixrntrouc7k
Target Server Type : MYSQL
... |
<reponame>BizbrainzGit/doctorssapp<filename>DB/doctorss_master.sql
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 07, 2021 at 02:44 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTIO... |
<reponame>hofstede-matheus/trabalho_bd
INSERT INTO perfis(id, id_usuario) values ('be9080f7-142c-4ba7-a20a-25144ab98648', '986f57c5-e042-41ad-9d34-f04a898eabad'),
('95cc06c1-e971-4c02-8c1c-46bb37525dda', '24c0ec6a-fc72-48bd-b6c7-53e6a5f235a8'),
('6d0e0706-27fe-49c3-8092-464adf3ae895', '8a567516-1f52-4d4f-a6ca-0421a5664... |
<reponame>Raktim21/Zhivago
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 17, 2021 at 08:37 PM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 8.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 S... |
-- This file generates a second file which will be used to create the JSON output.
set serveroutput on size 1000000
set feedback off
set verify off
set termout off
set linesize 9999
define APP_ID = '&1'
define CON_NAME = '&2'
define SPOOL_FILENAME = '&3'
spool &SPOOL_FILENAME.
declare
l_sql clob;
l_sql_template... |
<gh_stars>0
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table privileges (
id integer not null,
userfrom varchar(255),
userto varchar(255),
estimated_hours ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.