sql stringlengths 6 1.05M |
|---|
<reponame>jwyant/redshift_streaming_minibatch
-- start sproc
CREATE OR REPLACE PROCEDURE public.sp_load_bikedata()
AS $$
DECLARE
running_sp_load_bikedata_cnt int;
manifest_uri VARCHAR(1024);
BEGIN
-- Abort if already running
SELECT INTO running_sp_load_bikedata_cnt count(*) FROM STV_INFLIGHT WHERE label = 'sp_load_... |
<gh_stars>0
SELECT COUNT(*) FROM film
WHERE title LIKE 'T%' AND rating = 'G';
|
/*
Navicat MySQL Data Transfer
Source Server : ECS
Source Server Version : 50559
Source Host : 192.168.3.11:3306
Source Database : test_byyl
Target Server Type : MYSQL
Target Server Version : 50559
File Encoding : 65001
Date: 2018-04-22 15:11:51
*/
SET FOREIGN_KEY_CHECKS=0;
-- --... |
<gh_stars>10-100
CREATE VIEW [dbo].[ProcessedEmissionsDataPointsForRender] AS
SELECT er.[FriendlyName] AS [Region]
,a.[EmissionsRegionID]
,a.DateTimeUTC
--,ce.MaxRegMarginalDate
--,ce.MaxRegSystemDate
--,DATEDIFF(dd, a.DateTimeUTC, ce.MaxRegMarginalDate) AS MargDayHistory
,(CASE WHEN (a.[Emission Type] = ... |
INSERT INTO albums VALUES((SELECT IFNULL(MAX(album_id), 0) FROM albums)+1, :name, :tracks, :discs)
UPDATE genres SET name = :name WHERE genre_id = :genre_id
UPDATE songs SET title = :title, artist_id = :artist_id WHERE song_id = :song_id
INSERT INTO artists VALUES((SELECT IFNULL(MAX(artist_id), 0) FROM artists)+1, :na... |
-- CreateTable
CREATE TABLE "users" (
"user_id" VARCHAR(255) NOT NULL,
"user_name" VARCHAR(255) NOT NULL,
"user_avatar" TEXT NOT NULL,
"user_token" TEXT NOT NULL,
"user_token_refresh" TEXT NOT NULL,
"token" TEXT NOT NULL,
"token_key" TEXT NOT NULL,
"limit" INTEGER NOT NULL DEFAULT 100,
... |
drop database if exists gsb_rv;
create database gsb_rv;
use gsb_rv;
-- MariaDB dump 10.19 Distrib 10.5.15-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: gsb_rv
-- ------------------------------------------------------
-- Server version 10.5.15-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_... |
select * from product;
select * from order_has_product;
select * from buyerorder;
drop procedure if exists checkout;
delimiter //
CREATE PROCEDURE checkout(in bid int, in payid int, in addid int)
begin
DECLARE p_id, qty, x, finished, lastorderid int;
DECLARE cart CURSOR FOR SELECT Product_ID, Quantity from sho... |
<filename>install/sql/app_sessions.sql
CREATE TABLE IF NOT EXISTS `app_sessions` (
`id` int(30) NOT NULL AUTO_INCREMENT,
`lid` int(30) NOT NULL,
`hash` varchar(255) COLLATE latin1_general_ci NOT NULL,
`ip` varchar(255) COLLATE latin1_general_ci NOT NULL,
`expires` int(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGI... |
-- Show the best scores
-- list all records with a score >= 10 in the table second_table
SELECT score, name FROM second_table WHERE score >= 10
ORDER BY score DESC;
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Jan 04, 2020 at 05:03 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `GestionEtuAWA`
--
-- ----------------------... |
<reponame>MarceloRodrigues7/Finance_StockPrice
IF EXISTS(SELECT * FROM sys.tables WHERE SCHEMA_NAME(schema_id) LIKE 'dbo' AND name like 'StockList')
DROP TABLE [dbo].[StockList];
CREATE TABLE StockList(
Id BIGINT IDENTITY(1,1) PRIMARY KEY,
Symbol VARCHAR(15),
Name VARCHAR(120),
Currency VARCHAR(20),
Exchange VA... |
CREATE KEYSPACE IF NOT EXISTS lcmap WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
-- Tiles for CONUS
CREATE TABLE IF NOT EXISTS lcmap.conus (
x int,
y int,
ubid text,
acquired timestamp,
data blob,
source text,
PRIMARY KEY ((x, y, ubid), acquired)
)
WITH COMPRE... |
/*
HackerRank SQL: Weather Observation Station 4
https://www.hackerrank.com/challenges/weather-observation-station-4
Difficulty: easy
Created on Sun Oct 28 16:29:56 2018
@author: <NAME>
*/
SELECT COUNT(CITY) - COUNT(DISTINCT CITY)
FROM STATION; |
<gh_stars>0
DROP DATABASE IF EXISTS emp_tracker_db;
CREATE DATABASE emp_tracker_db;
USE emp_tracker_db;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30) UNIQUE NOT NULL
);
CREATE TABLE role (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(30) UNIQUE NOT NULL,
... |
<reponame>rifky1994/registrasi
/*
SQLyog Ultimate v11.11 (32 bit)
MySQL - 5.6.16 : Database - registrasi
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*... |
create table TaskHistory (
Id bigint not null
, ModuleId int not null
, TaskTypeId int not null
, [Name] nvarchar(max) not null
, Body nvarchar(max) not null
, IsActive bit not null
, ChangedAtUtc datetime null
) |
ALTER TABLE rothschild.Issuances
ADD COLUMN name TEXT;
SET SQL_SAFE_UPDATES = 0;
UPDATE rothschild.Issuances
SET
name = CONCAT('issuance: ', id)
WHERE NAME IS NULL;
SET SQL_SAFE_UPDATES = 1;
ALTER TABLE rothschild.Issuances
MODIFY COLUMN name TEXT NOT NULL; |
drop table "USER" cascade;
drop table "EVENT_TEMPLATE" cascade;
drop table "ORG" cascade;
|
# --- !Ups
CREATE TABLE Widget (
id varbinary(16) primary key,
make varchar(255),
model varchar(255)
);
# --- !Downs
DROP TABLE Widget; |
-->-->-- src/Frapid.Web/Areas/MixERP.Inventory/db/PostgreSQL/2.x/2.0/src/01.types-domains-tables-and-constraints/tables-and-constraints.sql --<--<--
DROP SCHEMA IF EXISTS inventory CASCADE;
CREATE SCHEMA inventory;
CREATE TABLE inventory.units
(
unit_id SERIAL PRIMARY KEY,
... |
<gh_stars>1-10
drop table group_members CASCADE;
drop table student_class CASCADE;
drop table groups CASCADE;
drop table teacher_class CASCADE;
drop table class CASCADE;
drop table optional_course CASCADE;
drop table mandatory_course CASCADE;
drop table semester CASCADE;
drop table course CASCADE;
drop table teacher CA... |
CREATE SEQUENCE MYSEQA2
GO
|
CREATE TABLE messages (
id VARCHAR(36) NOT NULL,
message TEXT NOT NULL,
PRIMARY KEY (id)
);
|
<gh_stars>1-10
--+ holdcas on;
set names utf8;
create table t( a char(1200) collate utf8_de_exp, b varchar(1200) collate utf8_de_exp, c nchar(1200) collate utf8_de_exp, d NCHAR VARYING(1200) collate utf8_de_exp, e string collate utf8_de_exp);
insert into t values ( 'a', 'a', N'a', N'a', 'a' );
insert into t v... |
<filename>install/sql/029_system_heartbeat.sql
-- This prepares the system for better update checking, etc with the main
-- web2project.net site. The previous checker made multiple requests in the
-- same hour each week instead of a unique request each week.
DELETE FROM `config` WHERE `config_name` LIKE 'system_up... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.7
-- Dumped by pg_dump version 10.7
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... |
<filename>assets/db/absensi.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 21, 2020 at 05:31 AM
-- 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";
/*!40... |
<filename>db/seeds.sql
USE employee_tracker;
INSERT INTO department (id, name)
VALUES
(1, 'Service Department'),
(2, 'Supply Chain Department'),
(3, 'Sales Department'),
(4, 'Production Department'),
(5, 'Finance Department'),
(6, 'Information Department'),
(7, 'Engineering Department');
INSERT INTO role ( title, s... |
<reponame>yagizher/99kr-shops
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES
('cocacola', 'Coca Cola', -1, 0, 1),
('fanta', 'Fanta Exotic', -1, 0, 1),
('sprite', 'Sprite', -1, 0, 1),
('loka', 'Loka Crush', -1, 0, 1),
('cheesebows', 'OLW Ostbågar', -1, 0, 1),
('chips', 'OLW 3xLök Chi... |
<reponame>s-ritik16n/wordnetdb
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: wordnetdb
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHA... |
<reponame>TTcheng/IEMS-backend
DROP TABLE IF EXISTS `base_value_type`;
CREATE TABLE `base_value_type`
(
`id` BIGINT AUTO_INCREMENT COMMENT '主键ID',
type varchar(32) NOT NULL COMMENT '类型',
name varchar(32) ... |
<filename>database/delete_all_records.sql
--- This script will delete all existing records in the ENTIRE datbase ---
DELETE FROM msp_ping_60;
DELETE FROM msp_ping_30;
DELETE FROM msp_ping;
DELETE FROM msp_device;
DELETE FROM msp_site;
DELETE FROM msp_company; |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 26, 2017 at 11:31 AM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... |
ALTER TABLE eg_pt_propertydetail_v2
ADD COLUMN usageCategoryMinor character varying(64); |
create table if not exists pericopes (
pericope varchar(8) default null,
book varchar(16) default null,
display varchar(128) default null,
sdisplay varchar(64) default null,
desc varchar(128) default null,
preverse varchar(8) default null,
prefix varchar(255) default null,
prefixb varchar(128) d... |
-- SETTINGS
SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES
('modules', 'bx_ads', '_bx_ads', 'bx_ads@modules/boonex/ads/|std-icon.svg', IF(ISNULL(@iTypeOrder), 1, @iTypeOrder + 1));
SET @iTy... |
-- github.com/RodneyShag
SELECT salary * months AS earnings, COUNT(*)
FROM Employee
GROUP BY earnings
ORDER BY earnings DESC
LIMIT 1;
|
-- Select employee_db as the database to utilize and perform SQL operations on
USE burgers_db;
-- Insert the following items to table role
INSERT INTO burgers(burger_name)
VALUES
('Mex Burger'),
('Original Burger'),
('Impossible Burger'); |
TRUNCATE TABLE BATCH_CORRESPONDENCE DROP STORAGE
/
INSERT INTO BATCH_CORRESPONDENCE (BATCH_CORRESPONDENCE_TYPE_CODE,DESCRIPTION,DAYS_TO_EVENT_UI_TEXT,SEND_CORRESPONDENCE,FINAL_ACTION_DAY,FINAL_ACTION_TYPE_CODE,FINAL_ACTION_CORRESP_TYPE,UPDATE_USER,UPDATE_TIMESTAMP,OBJ_ID,VER_NBR)
VALUES ('1','Protocol Renewal Remi... |
<reponame>AustralianConservationFoundation/gnaf-loader<gh_stars>0
COPY (
SELECT gid, gnaf_pid, street_locality_pid, locality_pid, alias_principal,
primary_secondary, building_name, lot_number, flat_number, level_number,
number_first, number_last, street_name, street_type, street_suffix,
address... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- 主机: 127.0.0.1:3306
-- 生成日期: 2020-01-04 01:21:16
-- 服务器版本: 5.7.24
-- PHP 版本: 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_CLIENT=@@CHARACTER_S... |
<filename>database/postgres/delete-entities.sql
DROP SEQUENCE if EXISTS tickerbeats.accountsinfo_seq;
DROP SEQUENCE if EXISTS tickerbeats.tickerbeats_seq;
DROP TABLE IF EXISTS tickerbeats.signalsresult;
DROP TABLE IF EXISTS tickerbeats.signals;
DROP TABLE IF EXISTS tickerbeats.tradetransactions;
DROP TABLE IF EXISTS ti... |
<reponame>bcgov/cas-ciip-portal
-- Deploy ggircs-portal:database_functions/create_portal_app_user to pg
-- requires: database_functions/create_roles
begin;
do
$$
begin
if not exists (
select true
from pg_catalog.pg_roles
where rolname = 'portal_app') then
create user portal_app;
end if;
gra... |
SELECT * FROM KNOWLEDGE_ITEM_VALUES
WHERE
TYPE_ID = ?
AND DELETE_FLAG = 0;
|
--upgrade script : move all hosted engine disk images from unassigned status to ok
--when the vm is plugged.
--This is a fix to the state where hosted engine disk were initially set to UNASSIGNED as default
--when hosted engine was deployed and imported.
UPDATE images
SET imagestatus = 1 --OK
WHERE imagestatus = 0 --... |
CREATE TABLE [dbo].[ErrorTable]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[ErrorLine] INT NULL,
[ErrorMessage] NVARCHAR(MAX) NULL,
[TxId] BIGINT NULL,
[json] NVARCHAR(MAX) NULL
)
|
insert into rl.salt values (GEN_SALT('bf'), CURRENT_TIMESTAMP);
|
<reponame>123ngothanhtri/bandat
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 22, 2021 at 07:35 AM
-- Server version: 5.7.33
-- PHP Version: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101... |
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Waktu pembuatan: 05 Mar 2020 pada 14.38
-- Versi server: 10.1.39-MariaDB
-- Versi PHP: 7.1.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
<reponame>samurainet-antonius/egopro-camera-rental
-- phpMyAdmin SQL Dump
-- version 4.9.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 02, 2022 at 09:20 PM
-- Server version: 5.7.36-log
-- PHP Version: 7.3.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSA... |
<filename>db/migrations/20160713135801_create_tokens.sql
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
CREATE TABLE `tokens` (
`id` int NOT NULL AUTO_INCREMENT,
`token` varchar(255) NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
);
-- +goos... |
-- GEOESCRITORIO VIRTUAL V 4.0 BETA
-- CAPA I BASE DE DATOS DE PRUEBAS
-- TABLAS, VISTAS y FUNCIONES EN EL ESQUEMA "ADM"
-- AUTOR. <NAME>
-- 11/2018
-- VERSION FINAL
-- Presenta todas los departamentos de la dependencia
SELECT * FROM "ADM".vw_qry_departamento;
-- Presenta un seccion departamento selecci... |
<reponame>danishabdullah/lunatic
\echo # Creating search_userlocations functionality
set search_path = api, public;
create or replace function search_userlocations(query text) returns setof userlocations as $$
select * from userlocations where id::text like query
$$ stable language sql;
|
/*
Navicat Premium Data Transfer
Source Server : txy
Source Server Type : MySQL
Source Server Version : 80018
Source Host : 172.16.31.10:3306
Source Schema : go-gateway
Target Server Type : MySQL
Target Server Version : 80018
File Encoding : 65001
Date: ... |
<gh_stars>0
-- test.db
-- New table
CREATE TABLE test (
a INTEGER,
b TEXT
);
INSERT INTO test VALUES ( 1, 'a' );
INSERT INTO test VALUES ( 2, 'b' );
INSERT INTO test VALUES ( 3, 'c' );
SELECT * FROM test;
-- 1. DROP TABLE
CREATE TABLE test ( a TEXT, b TEXT );
INSERT INTO test VALUES ( 'one', 'two' );
SELECT * F... |
<filename>db/migrations/postgres/0021_fix_search_field_enum.up.sql
BEGIN;
ALTER TYPE recipe_field_name RENAME VALUE 'description' TO 'directions';
COMMIT;
|
CREATE TABLE IF NOT EXISTS `event_stream` ( `event_id` varchar(36) COLLATE utf8_unicode_ci NOT NULL, `version` int(11) NOT NULL, `event_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `event_class` varchar(100) COLLATE utf8_unicode_ci NOT NULL, `payload` text COLLATE utf8_unicode_ci NOT NULL, `created_at` varchar(... |
CREATE OR REPLACE FUNCTION NotifyBot()
RETURNS trigger AS $$
BEGIN
PERFORM pg_notify(CAST('bot_updates' AS TEXT), CAST(NEW.id AS TEXT));
DELETE
FROM AuthenticationRequests
WHERE handled = TRUE and (created + (30 * INTERVAL '1 minute')) > now()::timestamp;
RETURN... |
-- file:alter_generic.sql ln:152 expect:true
ALTER LANGUAGE alt_lang2 OWNER TO regress_alter_user2
|
<gh_stars>0
/*
* Queries for finding the ID ranges of our synthetic data, developed around 2021-05-20.
*
* It's worth noting that this general class of problem is commonly referred to as a "gaps and
* islands problem" and you can search for solutions to it using that term. The queries here were
* derived from thi... |
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : bigdatadb
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 16/05/2021 ... |
<gh_stars>0
CREATE OR REPLACE VIEW public.v_report_observations_wa AS
SELECT
tr.code AS trip_code,
s.code AS set_code,
tr.code || '_' || s.code AS full_code,
hab.region_name ... |
<gh_stars>0
drop table if exists _task;
drop table if exists _user;
create table _task (
id bigint,
title varchar(128) not null,
description varchar(255),
user_id bigint not null,
primary key (id)
);
create table _user (
id bigint,
login_name varchar(64) not null unique,
name varchar(64) not null,
passwor... |
<gh_stars>10-100
select name, id, description, lifecycle_state
from oci.oci_identity_tag_namespace
where id = '{{ output.resource_id.value }}aa'; |
-- A test suite for set-operations in parent side, subquery, and both predicate subquery
-- It includes correlated cases.
create temporary view t1 as select * from values
("val1a", 6S, 8, 10L, float(15.0), 20D, 20E2, timestamp '2014-04-04 01:00:00.000', date '2014-04-04'),
("val1b", 8S, 16, 19L, float(17.0), 25D, ... |
UPDATE
"DEPT"
SET
"DNAME" = :DNAME,
"LOC" = :LOC
WHERE
"DEPTNO" = :DEPTNO
/*PARAM* DEPTNO, int32, 11 *PARAM*/
/*PARAM* DNAME, string, xxx *PARAM*/
/*PARAM* LOC, string, xxx *PARAM*/
|
<reponame>grumpyguvner/soactive-wms
INSERT INTO `tabledefs` (`uuid`, `displayname`, `prefix`, `type`, `moduleid`, `maintable`, `querytable`, `editfile`, `editroleid`, `addfile`, `addroleid`, `importfile`, `importroleid`, `searchroleid`, `advsearchroleid`, `viewsqlroleid`, `deletebutton`, `canpost`, `apiaccessible`, `ha... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字Lc_Ctype(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists Lc_Ctype;
CREATE USER Lc_Ctype PASSWORD '<PASSWORD>';
drop user Lc_Ctype;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "Lc_Ctype";
CREATE USER "Lc_Ctype" PASSWORD '<PASSWORD>';
drop user "Lc_... |
<reponame>syedbilal5000/clubfoot
ALTER TABLE `followup` ADD `is_virtual` INT(1) NOT NULL DEFAULT '0' AFTER `treatment`;
ALTER TABLE `patients` ADD `out_of_city` INT(1) NOT NULL DEFAULT '0' AFTER `address2`;
ALTER TABLE `patient_diagnoses` CHANGE `pateint_diagnosis_id` `patient_diagnosis_id` INT(11) NOT NULL AUTO_INC... |
<gh_stars>0
-- MySQL dump 10.13 Distrib 5.6.23, for Win32 (x86)
--
-- Host: localhost Database: marks_attend
-- ------------------------------------------------------
-- Server version 5.6.25-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S... |
-- <Migration TransactionHandling="Custom" />
-- <Migration ID="9c2042ae-1992-4eaf-8761-6c141d965e24" />
GO
CREATE OR ALTER FUNCTION dbo.ufnLeadingZeros_native(
@Value int
)
RETURNS varchar(8)
WITH NATIVE_COMPILATION, SCHEMABINDING
AS
BEGIN ATOMIC WITH (TRANSACTION ISOLATION LEVEL = SNAPSHOT, LANGUAGE = N'Englis... |
--------------------------------------------------------------------------------
-- SQL Server & Azure SQL (Database & Instance) - Query Performance Insights
-- Author: <NAME>
--------------------------------------------------------------------------------
SET QUOTED_IDENTIFIER OFF; -- Because I use "" as a string lite... |
<filename>revisao/inserirRegistros.sql
use hospital;
desc especialidade;
insert into especialidade values
(123, 'Cardiologia'),
(234, 'Ginecologia'),
(345, 'Urologia')
;
SELECT
*
FROM
especialidade;
desc hospital;
insert hospital values
(11111111111111, '<NAME>', 'Av. Presidente Itamar Franco',
... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 27, 2022 at 07:27 AM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
CREATE DATABASE IF NOT EXISTS booking_service;
USE booking_service;
CREATE TABLE IF NOT EXISTS movie_shows (
show_id INT PRIMARY KEY AUTO_INCREMENT,
film_id INT,
start_time DATETIME,
end_time DATETIME,
price INT,
is_active BOOL
);
CREATE TABLE IF NOT EXISTS bookings (
booking_id INT PRIMA... |
<gh_stars>0
create table Homework(
homework_id int,
student_id int foreign key references Students(student_id),
date_created datetime,
homework_content text,
grade varchar(20),
other_homeowrk_details varchar(max)
primary key (homework_id)
) |
<filename>db.sql
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `CrawlDomain`;
CREATE TABLE `CrawlDomain` (
`CrawlDomainId` int(11) NOT NULL AUTO_INCREMENT,
`UserId` int(11) NOT NULL,
`DomainUri` varchar(255) NOT NULL,
`DomainId` int(11) NOT NULL,
`Creation_Date` datetime NOT NULL,
`Done` tinyint(1) NOT ... |
create table if not exists tbl_endereco(
id_end int not null auto_increment,
constraint id_end_fk primary key(id_end),
logradouro nvarchar(60) not null,
bairro nvarchar(50) not null,
cidade nvarchar(40) not null,
estado nvarchar(30) not null,
cep decimal(8) not null,
num int not null,
complemento nvarchar(200),
cpf_us... |
<filename>snapgear_linux/lib/libldap/servers/slapd/back-sql/rdbms_depend/ibmdb2/backsql_create.sql
drop table ldap_oc_mappings;
create table ldap_oc_mappings
(
id integer not null primary key,
name varchar(64) not null,
keytbl varchar(64) not null,
keycol varchar(64) not null,
create_proc varchar(255),
create_ke... |
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(45) DEFAULT NULL,
`passwd` varchar(45) DEFAULT NULL,
`age` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin |
<filename>test/ddl/0300_abc_auth_session.sql
CREATE TABLE `ABC_AUTH_SESSION` (
`ses_id` INT UNSIGNED AUTO_INCREMENT NOT NULL,
CONSTRAINT `PRIMARY_KEY` PRIMARY KEY (`ses_id`)
);
|
DROP FUNCTION cloudbilling.sel_last_report();
|
select * from test
select oid, typbasetype from pg_type where typname = 'lo'
|
<filename>content/berkas/sql/3403_1476775365.sql
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `upda... |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for... |
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 09, 2019 at 02:12 PM
-- Server version: 5.7.27-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
CREATE TABLE all_types
(
type_small_int smallint,
type_integer integer,
type_bigint bigint,
type_bit bit,
type_numeric numeric(6,4),
type_double double precision,
type_real real,
type_decimal decimal,
type_boolean boolean,
type_date date,
type_time time,
type_timestamp timestamp,
type_text tex... |
<reponame>juhi-gupta/laravel-seo-master<filename>install.sql
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`slug` varchar(255) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`order` int(11) NOT NUL... |
delete from user where userId = 1;
insert into user (userId, username, telephone, salt, password, available) values (1, 'admin', 'admin', 'admin', '<PASSWORD>', 1);
delete from role where roleId in (1, 2);
INSERT INTO `role` (`roleId`, `available`, `description`, `roleName`, `createTime`, `createUserId`, `modifyTime`,... |
<reponame>lupengyu0226/www.zhikunet.org
INSERT INTO `shuyang_module` VALUES ('link', '友情链接', '', '0', '1.0', '', 'array (\n 1 => \n array (\n \'is_post\' => \'1\',\n \'enablecheckcode\' => \'0\',\n ),\n)', '0', '0', '2010-09-06', '2010-09-06'); |
-- +++
-- parent: 1528395891
-- +++
BEGIN;
DROP TABLE IF EXISTS batch_spec_executions;
COMMIT;
|
<gh_stars>0
DROP TABLE IF EXISTS customers;
CREATE TABLE customers (
id BIGINT NOT NULL PRIMARY KEY,
name VARCHAR(50),
username VARCHAR(30),
password VARCHAR(20),
email VARCHAR(50),
street VARCHAR(50),
city VARCHAR(30),
state VARCHAR(30),
... |
<reponame>Lakeron/sqvid<gh_stars>0
-- This DB comes from the following repository:
-- https://github.com/AndrejPHP/w3schools-database
CREATE TABLE `categories` (
`CategoryID` int NOT NULL,
`CategoryName` varchar(255) DEFAULT NULL,
`Description` varchar(255) DEFAULT NULL
);
--
-- Dumping data for table `categorie... |
<gh_stars>0
create table user(
id int(11) not null primary key auto_increment,
uuid varchar(64) not null,
name varchar(255),
email varchar(255) not null,
password varchar(255) not null,
created_at datetime not null,
unique key uk_email(email)
)ENGINE=INNODB AU... |
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 04/02/2014 16:56:26
-- Generated from EDMX file: C:\Users\兵\SkyDrive\Visual Studio\Projects\Lorn.ADSP\Permissions\Lorn.Per... |
<reponame>CGATechnologies/sctp2
DROP PROCEDURE IF EXISTS runCommunityBasedTargetingRanking;
DELIMITER $$
CREATE PROCEDURE runCommunityBasedTargetingRanking(IN _session_id bigint)
comment 'This procedure will rank households based on the pmt_score from UBR. The pmt_score will be frozen for cbt until the procedure is c... |
/*L
Copyright SAIC, Ellumen and RSNA (CTP)
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
L*/
#MAKE SURE YOU DONT LEAVE A DANGLING STUDY!!!
create temporary table image_temp as
select image_pk_... |
<gh_stars>10-100
alter table "video"."ChannelStack" add column "rtmpOutputUri" text
null;
|
<reponame>kagurazakayashi/NyarukoLoginF
-- 語言表
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.