sql stringlengths 6 1.05M |
|---|
SELECT id, NETWORK(ip_address) AS first_address, BROADCAST(ip_address) AS last_address
FROM connections
ORDER BY id |
-- 2019-07-29T12:05:27.897Z
-- URL zum Konzept
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,IsMultiLine,MultiLine_LinesCount,N... |
<reponame>nguyenquanghieu2000d/nodejs-tutorial
/*
Warnings:
- Added the required column `update_at` to the `mon_hoc` table without a default value. This is not possible if the table is not empty.
- Made the column `status` on table `quyen` required. This step will fail if there are existing NULL values in that c... |
SELECT json_build_object('id',sd.id,'service_name', sd.service_name,'service_description',sd.service_description,
'logo_uri',sd.logo_uri,'policy_uri',sd.policy_uri,'integration_environment',sd.integration_environment,'protocol',sd.protocol,
'country',sd.country,'website_url',sd.website_url,'tenant',sd.ten... |
ALTER TABLE diskquota.quota_config ADD COLUMN segratio float4 DEFAULT -1;
CREATE TABLE diskquota.target (
quotatype int, --REFERENCES disquota.quota_config.quotatype,
primaryOid oid,
tablespaceOid oid, --REFERENCES pg_tablespace.oid,
PRIMARY KEY (primaryOid, tablespaceOid, quotatype)
);... |
<gh_stars>1-10
USE [AIDE]
GO
/****** Object: View [dbo].[vw_BillabilityByProjectPerWeek] Script Date: 1/14/2020 9:25:51 PM ******/
SET ANSI_NULLS ON
GO
IF EXISTS (SELECT * FROM sysobjects WHERE id = object_id('dbo.vw_BillabilityByProjectPerWeek'))
BEGIN
PRINT 'Dropping old version of vw_BillabilityB... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字Load(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists Load;
CREATE USER Load PASSWORD '<PASSWORD>';
drop user Load;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "Load";
CREATE USER "Load" PASSWORD '<PASSWORD>';
drop user "Load";
--关键字explain作为用户名加... |
INSERT INTO `vms_core_repertory` (`cr_shop_id`, `cr_provider_goods_id`, `cr_num`, `cr_unit`)
VALUES
(1, 1, 0.00, 1),
(1, 2, 0.00, 1),
(1, 3, 0.00, 1),
(1, 4, 0.00, 1),
(1, 5, 0.00, 1),
(1, 6, 0.00, 1),
(1, 7, 0.00, 1),
(1, 8, 0.00, 1),
(1, 9, 0.00, 1),
(1, 10, 0.00, 1),
(1, 11, 0.00, 1),
(1, 12, 0.00, 1),
... |
TRUNCATE TABLE teams RESTART IDENTITY CASCADE;
TRUNCATE TABLE projects RESTART IDENTITY CASCADE;
TRUNCATE TABLE annotations RESTART IDENTITY;
TRUNCATE TABLE environments RESTART IDENTITY;
TRUNCATE TABLE executions RESTART IDENTITY;
|
create table activity_type (
model_id integer not null,
name text not null,
parameters merlin_parameter_set not null,
required_parameters merlin_required_parameter_set not null,
constraint activity_type_natural_key
primary key (model_id, name),
constraint activity_type_owned_by_mission_model
foreig... |
--@Autor: <NAME> y <NAME>
--@Fecha creación: 18/06/2020
--@Descripción: Procedimiento para realizar un reporte
set serveroutput on
Prompt =======================================
Prompt Prueba 1.
Prompt Prueba del procedimiento almacenado para el reporte de vehículos
Prompt ========================================
de... |
DELIMITER //
DROP PROCEDURE IF EXISTS sp_user_register //
CREATE PROCEDURE sp_user_register (
IN title VARCHAR ( 12 ),
IN firstname VARCHAR ( 255 ),
IN lastname VARCHAR ( 255 ),
IN username VARCHAR ( 64 ),
IN password VARCHAR ( 60 ),
IN email VARCHAR ( 255 ),
IN identifier CHAR ( 32... |
<gh_stars>0
USE [master]
DROP DATABASE IF EXISTS [mumsnet];
RESTORE DATABASE [mumsnet] FROM DISK = N'C:\Users\Public\mumsnet_v7.bak' WITH FILE = 1, NOUNLOAD, STATS = 5
GO
|
CREATE OR REPLACE FUNCTION nfc.f_db8obj_exist(p_object_type text, p_schema text, p_object_name text DEFAULT NULL::text, p_subobject_name text DEFAULT NULL::text)
RETURNS oid
LANGUAGE sql
STABLE SECURITY DEFINER
AS $function$
select case p_object_type when 'function' then (select t2.oid
... |
USE employees;
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES
('Michael', 'Scott', 1, null),
('Dwight', 'Schrute', 4, 1),
('Pam', 'Beesly', 2, 1),
('Jim', 'Halpert', 4, 1),
('Robert', 'California', 1, null),
('Angela', 'Martin', 3, 1);
INSERT INTO role (title, sa... |
<gh_stars>1-10
/*
This procedure cleans out old rows from the quarterly fact table and quarterly dim_explorer_value table,
but leaves the annual fact table, annual value table and the variable table (which applies to both annual
and quarterly) alone.
@var_name is a variable name like "Income"
@schema is one of 'pop_ex... |
<filename>sp_tomato.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 17, 2019 at 02:43 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:... |
CREATE SYNONYM [log4].[JournalDetail] FOR [log4Private].[JournalDetail];
|
<filename>protempa-test-suite/src/test/resources/dsb/test-schema.sql
CREATE SCHEMA "TEST";
SET SCHEMA "TEST";
CREATE TABLE "PATIENT" (
"PATIENT_KEY" NUMBER(22,0) NOT NULL ,
"FIRST_NAME" VARCHAR2(32) ,
"LAST_NAME" VARCHAR2(32) ,
"DOB" DATE ,
"LANGUAGE" VARCHAR2(32) ,
"MARITAL_STAT... |
<filename>test_and_ground/asist/prc/template/template_fm_dircmds_basic.prc
PROC $sc_$cpu_fm_dircmds_basic
;*******************************************************************************
; Test Name: FM_DirCmds_Basic
; Test Level: Build Verification
; Test Type: Functional
;
; Test Description
; The pu... |
<reponame>truRating/Piranha
DROP TABLE relation;
DROP TABLE upload;
DROP TABLE content;
DROP TABLE region;
DROP TABLE property;
DROP TABLE category;
DROP TABLE extension;
DROP TABLE page;
DROP TABLE post;
DROP TABLE permalink;
DROP TABLE regiontemplate;
DROP TABLE posttemplate;
DROP TABLE pagetemplate;
DR... |
<reponame>NCIP/cabio
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
create index AR_REFSETEIN_GENECHIP_A_lwr on AR_REFSEQ_PROTEIN(lower(GENECHIP_ARRAY)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT;
create index... |
<reponame>geovote/geovote-main
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.4 (Debian 10.4-2.pgdg90+1)
-- Dumped by pg_dump version 10.5
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
<filename>DATABASE/db_lion_system (2).sql
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 31, 2018 at 01:47 AM
-- Server version: 10.1.28-MariaDB
-- PHP Version: 5.6.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SE... |
-- ==================================================
-- CREAR DATABASE
-- ==================================================
use master
go
-- crear database
create database parking_prod
go
use parking_prod
go
-- crear database
drop database parking_prod
go |
---- 1 --- Verifier l'execution en backend pendant le eod
select
sql_text,
sesion.sid,sesion.serial#,sesion.username,sesion.osuser,
sesion.terminal,sesion.module,sesion.logon_time,sesion.last_call_et,
optimizer_mode,
hash_value,
address
from v$sqlarea sqlarea, v$session sesion
wher... |
INSERT INTO `invitation_details` VALUES (1, 'rrddfgdgffg');
|
-- --------------------------------------------------------
-- Хост: 127.0.0.1
-- Версия сервера: 5.5.23 - MySQL Community Server (GPL)
-- ОС Сервера: Win64
-- HeidiSQL Версия: 8.3.0.4694
-- --------------------------------------------------------
/*... |
BEGIN;
DROP TABLE IF EXISTS "bootflags" CASCADE;
DROP TABLE IF EXISTS "defaultbootflags" CASCADE;
DROP TABLE IF EXISTS "cpios" CASCADE;
DROP TABLE IF EXISTS "boots" CASCADE;
DROP TABLE IF EXISTS "boxen" CASCADE;
DROP TABLE IF EXISTS "images" CASCADE;
CREATE TABLE "images" (
id SERIAL NOT NULL,
... |
UPDATE thread SET state='opened' WHERE state='done'; |
SELECT
tc.constraint_catalog
, tc.constraint_schema
, tc.constraint_name
, tc.constraint_type
, tc.table_name
, kc.column_name
FROM information_schema.table_constraints tc
INNER JOIN information_schema.key_column_usage kc
ON (tc.constraint_schema=kc.constraint_schema
AND tc.constraint_name=kc.constra... |
<reponame>CslaGenFork/CslaGenFork<gh_stars>10-100
/****** Object: StoredProcedure [AddA11_City_Child] ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[AddA11_City_Child]') AND type in (N'P', N'PC'))
DROP PROCEDURE [AddA11_City_Child]
GO
CREATE PROCEDURE [AddA11_City_Child]
@Ci... |
SELECT ROUND(LONG_W, 4) FROM STATION WHERE LAT_N > 38.7780 ORDER BY LAT_N DESC LIMIT 1;
|
<filename>hasura/migrations/1613429045129_alter_table_cucb_users_add_unique_email/up.sql
alter table "cucb"."users" add constraint "users_email_key" unique ("email");
|
<reponame>Shuttl-Tech/antlr_psql
-- file:domain.sql ln:439 expect:true
select doubledecrement(1)
|
-- file:json.sql ln:433 expect:true
SELECT ia FROM json_populate_record(NULL::jsrec, '{"ia": [1, "2", null, 4]}') q
|
SET @sName = 'bx_forum';
-- TABLE
ALTER TABLE `bx_forum_files` CHANGE `remote_id` `remote_id` VARCHAR(128) NOT NULL;
ALTER TABLE `bx_forum_photos_resized` CHANGE `remote_id` `remote_id` VARCHAR(128) NOT NULL; |
-- noinspection SqlNoDataSourceInspectionForFile
-- This is a possible solution. I may have overcomplicated this one but it works.
-- Find how many columns we return and where they're displayed
-1 UNION SELECT 1,2,3,4,5,6
-- Now let's dump the schema for all tables
-1 UNION SELECT 1,2,3,4,(select group_concat(tbl_na... |
CREATE TABLE IF NOT EXISTS `transaction_history` (
`id` INTEGER,
`user_id` INTEGER NOT NULL,
`value` float(255) NOT NULL,
`message` float(255),
`iban_from` varchar(255) NOT NULL,
`iban_to` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMAR... |
<reponame>chalice19/ClickHouse
SELECT EventTime::DateTime('Asia/Dubai') FROM test.hits ORDER BY EventTime DESC LIMIT 10
|
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
`pk` BIGINT NOT NULL COMMENT 'tag:0',
`c1` BIGINT COMMENT 'tag:1',
`c2` BIGINT COMMENT 'tag:2',
`c3` BIGINT COMMENT 'tag:3',
`c4` BIGINT COMMENT 'tag:4',
`c5` BIGINT COMMENT 'tag:5',
PRIMARY KEY (`pk`)
);
INSERT INTO `test` (`pk`,`c1`,`c2`,`c3`,`c4`,`c5`)... |
<reponame>lizhichao/ClickHouse
create table ttl_01280_error (a Int, b Int, x Int64, y Int64, d DateTime) engine = MergeTree order by (a, b) ttl d + interval 1 second group by x set y = max(y); -- { serverError 450}
create table ttl_01280_error (a Int, b Int, x Int64, y Int64, d DateTime) engine = MergeTree order by (a,... |
<filename>core/src/main/resources/schema/app/20160211094219_CLOUD-48264_more_ssssd_options.sql
-- // CLOUD-48264 More SSSD options
-- Migration SQL that makes the change goes here.
ALTER TABLE sssdconfig
ADD COLUMN tlsreqcert character varying(255),
ADD COLUMN adserver character varying(255),
ADD COLUMN ke... |
DROP VIEW
invoice_or_paid_tickets
CASCADE;
CREATE VIEW
invoice_or_paid_tickets
AS
SELECT
u.id p_uid,
u.username p_username,
prof.full_name p_full_name,
prof.display_name p_display_name,
CASE
WHEN prof.full_name NOT IN ('', NULL) THEN prof.full_name
ELSE prof.display_name
END p_full_display_name,
p.id p_i... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字fixed(非保留),作为序列名
--关键字不带引号-成功
drop sequence if exists fixed;
create sequence fixed start 100 cache 50;
drop sequence fixed;
--关键字带双引号-成功
drop sequence if exists "fixed";
create sequence "fixed" start 100 cache 50;
drop sequence "fixed";
--关键字带单引号-合理报错
drop s... |
-- get the average of the values in the price column
SELECT AVG(price)
FROM purchases; |
<gh_stars>0
--
-- Despejando dados para a tabela `category`
--
INSERT INTO `category` (`idcategory`, `cat_category`, `cat_description`, `cat_type`) VALUES
(1, 'Main_Menu', 'Menu principal do site', 'MENU');
--
-- Despejando dados para a tabela `menu`
--
INSERT INTO `menu` (`idmenu`, `mnu_label`, `mnu_link`, `mnu_cate... |
<filename>laundry.sql
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 01 Okt 2020 pada 03.41
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 23-06-2021 a las 01:52:01
-- Versión del servidor: 10.4.19-MariaDB
-- Versión de PHP: 7.3.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Aug 19, 2018 at 07:22 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 7.0.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
-- PURGE DBA_RECYCLEBIN;
-- lista de objetos e colunas contendo string MAIL, CORREIO e STMP
SELECT DISTINCT I.INSTANCE_NAME AS SID, OWNER AS NOME_ESQUEMA, OBJECT_TYPE AS TIPO_OBJETO,
DECODE(COLUMN_NAME,NULL,OBJECT_NAME,OBJECT_NAME || '.' || COLUMN_NAME) AS NOME_OBJETO,
DESCRICAO
FROM ... |
<gh_stars>0
CREATE PROCEDURE [dbo].[sp_InsertComment]
@IDUser int,
@IDShop int,
@Text nvarchar(445)
AS
DECLARE @Date smalldatetime
SET @Date =GETDATE()
SET NOCOUNT ON;
INSERT INTO [dbo].[Comment] (IDUser, IDShop, [Text], [Date])
VALUES ( @IDUser,@IDShop,@Text, @Date)
GO
CREATE PROCEDURE [d... |
prompt use pete_010000
define g_pete_schema=pete_010000
@oradb_modules/pete/use.sql
|
<gh_stars>1-10
SET DEFINE OFF;
CREATE UNIQUE INDEX AFW_03_CLAS_INTER_PK ON AFW_03_CLAS_INTER
(SEQNC)
LOGGING
/
|
<gh_stars>1000+
CREATE DATABASE maindb;
USE maindb; |
<gh_stars>0
Insert into MUNICIPIO_TSJ (ID,NOMBRE,ACTIVO,ESTADO_ID,CREATED,UPDATED) values (1,'ACAMBAY',1,15,to_timestamp('2015-09-11 13:11:31','YYYY-MM-DD HH24:MI:SS'),to_timestamp('2015-09-11 13:11:31','YYYY-MM-DD HH24:MI:SS'));
Insert into MUNICIPIO_TSJ (ID,NOMBRE,ACTIVO,ESTADO_ID,CREATED,UPDATED) values (2,'ACOLMAN'... |
DECLARE
varsql varchar2(4000);
BEGIN
-- a comment is OK
dbms_output.put_line('dummy');
-- also ok an empty line
END; --do not close with forward slash, that is SQL plus syntax. space is ok
|
`tag` VARCHAR(200) COMMENT '标签',
`name` VARCHAR(45) COMMENT '方名',
`book` VARCHAR(45) COMMENT '书名(出处),书名为《伤寒论》的称为经方,出自其他书籍的为非经方',
`summary` text COMMENT '概述',
`indications` text COMMENT '主治',
`explanation` text COMMENT '方义方解',
|
<reponame>NOAA-PMEL/OAPDashboard
CREATE DEFINER = `root`@`localhost` FUNCTION `oapdashboard`.`UuidToBin`(_uuid BINARY(36))
RETURNS binary(16)
LANGUAGE SQL
DETERMINISTIC
CONTAINS SQL
SQL SECURITY INVOKER
COMMENT ''
RETURN
UNHEX(CONCAT(
SUBSTR(_uuid, 15, 4),
SUBSTR(_uuid, 10, 4),
... |
<reponame>scossin/Achilles
-- 202 Number of persons by visit occurrence start month, by visit_concept_id
--HINT DISTRIBUTE_ON_KEY(stratum_1)
WITH rawData AS (
SELECT
vo.visit_concept_id AS stratum_1,
YEAR(vo.visit_start_date) * 100 + MONTH(vo.visit_start_date) AS stratum_2,
COUNT_BIG(DISTINCT vo.person_id) AS coun... |
<reponame>poojajmehta/ym-samples
LOAD TABLE openaq.measurements
FROM ('/daily')
EXTERNAL LOCATION openaq.openaq_location;
|
<gh_stars>10-100
select cast(hr1.stratum_1 as int) - MinValue.MinValue as interval_index,
hr1.count_value as count_value,
round(1.0*hr1.count_value / denom.count_value,5) as percent_value
from (select * from @ohdsi_database_schema.heracles_results where analysis_id = 3 and cohort_definition_id in (@cohortDefinitio... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jul 20, 2020 at 09:49 AM
-- Server version: 5.6.47-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 ... |
CREATE TABLE Quacks (QuackID int NOT NULL AUTO_INCREMENT, UserID int, Quack varchar(255), CreatedTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (QuackID)); |
<filename>azure-test/tests/azure_provider/test-list-query.sql
select namespace, id
from azure.azure_provider
where namespace = 'Microsoft.Authorization'
|
-- QPool
alter table o_qp_item add column q_topic varchar(1024);
alter table o_qp_item add column q_creator varchar(1024);
alter table o_qp_item add column q_status_last_modified timestamp;
create table o_qp_item_audit_log (
id bigserial,
creationdate timestamp not null,
q_action varchar(64),
q_val_before text... |
select name, id, lifecycle_state
from oci.oci_nosql_table
where name = '{{ resourceName }}'; |
<gh_stars>10-100
--liquibase formatted sql
--changeset gary.stafford:elections-sql splitStatements:false
------------------------------------------------------
-- candidates_by_elections view
------------------------------------------------------
-- View all candidates for all elections by election
CREATE OR REPLACE V... |
<filename>migrations/013_get_categories_view.sql
CREATE OR REPLACE VIEW news.get_categories AS
WITH RECURSIVE temp2(category_id, arrcid, arrname) AS (
SELECT c1.category_id,
ARRAY[]::integer[] AS "array",
ARRAY[]::text[] AS "array"
FROM news.category c1
WHERE c1.p... |
DROP DATABASE IF EXISTS bamazon;
CREATE DATABASE bamazon;
USE bamazon;
CREATE table products (
item_id INTEGER(10) AUTO_INCREMENT,
product_name VARCHAR(255) NOT NULL,
department_name VARCHAR(255) NOT NULL,
price DECIMAL(13, 2) NOT NULL,
stock_quantity INTEGER(10),
PRIMARY KEY (item_id)
);
INSERT INTO products (produc... |
<filename>SQL/sql_study_1/page3/exercise2.sql
-- Akses semua kolom dari tabel "purchases"
SELECT *
FROM purchases; |
SET DEFINE OFF;
ALTER TABLE AFW_12_TUTRL ADD (
CONSTRAINT AFW_12_TUTRL_PK
PRIMARY KEY
(SEQNC)
ENABLE VALIDATE)
/
|
<filename>Epsilon/Epsilon.Database/dbo/Tables/Country.sql
CREATE TABLE [dbo].[Country] (
[Id] NCHAR (2) NOT NULL,
[EnglishName] NVARCHAR (64) NULL,
[LocalName] NVARCHAR (64) NULL,
[CurrencyId] NCHAR (3) NOT NULL,
[MainLanguageId] NVARCHAR (8) NOT NULL,
[Is... |
-- --------------------------------------------------------
-- Host: 10.90.199.113
-- Server version: 8.0.23 - MySQL Community Server - GPL
-- Server OS: Win64
-- HeidiSQL Version: 9.5.0.5196
-- --------------------------------------------------------... |
CREATE TABLE `khatm` (
`id` int(10) UNSIGNED NOT NULL auto_increment,
`user_id` int(10) UNSIGNED NOT NULL,
`title` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`niyat` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`type` enum('page', 'juz') NULL DEFAULT NULL,
`... |
<filename>plugins/ukos/db/postgresql/schema/2019-07-19_revision-0015d.sql
BEGIN;
ALTER TABLE ukos_okstra.verbindungspunkt DROP CONSTRAINT fk_verbindungspunkt_art_des_verbindungspunktes;
ALTER TABLE ukos_okstra.verbindungspunkt ADD CONSTRAINT fk_verbindungspunkt_art_des_verbindungspunktes FOREIGN KEY (art_des_verbindu... |
-- 2018-04-30T06:59:09.055
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,WEBUI_QuickAction,WEBUI_QuickAction_Default) VALUES (0,0,140,401,144,TO_TIMESTA... |
-- 2018-01-16T13:35:34.825
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO C_AggregationItem (AD_Client_ID,AD_Column_ID,AD_Org_ID,C_Aggregation_ID,C_AggregationItem_ID,Created,CreatedBy,EntityType,IsActive,Type,Updated,UpdatedBy) VALUES (1000000,558578,1000000,1000000,540028,TO_TIMESTAMP('... |
-- 116 Number of persons with at least one day of observation in each year by gender and age decile
-- Note: using temp table instead of nested query because this gives vastly improved performance in Oracle
select distinct
YEAR(observation_period_start_date) as obs_year
INTO
#temp_dates_116
from
@cdmDatabas... |
<reponame>ukncsc/MailCheck.Public.AggregateReport<filename>src/MailCheck.Intelligence.Migration/Scripts/2019-07-31-1030_asn_to_description.sql
CREATE TABLE public.asn_to_description_and_country
(
asn bigint NOT NULL,
description character varying NOT NULL,
country character varying NOT NULL,
CONSTRAINT asn_to_d... |
-- 18/06/2014
ALTER TABLE `customers` ADD `lat` DECIMAL(10,6) NULL AFTER `mobile`;
ALTER TABLE `customers` ADD `lng` DECIMAL(10,6) NULL AFTER `lat`;
ALTER TABLE `customers` ADD `deleted` TINYINT(1) NOT NULL DEFAULT 0;
ALTER TABLE `customers` ADD `description` VARCHAR(255) NULL AFTER `distance`;
|
<reponame>ataastar/interrogator-api
ALTER TABLE phrase ALTER COLUMN text SET NOT NULL;
call insert_word_type_form(ARRAY['harap'], 2, ARRAY[ROW('bite', 1), ROW('bit', 2), ROW('bitten', 3)]::word_type_form_phrase_data[]);
call insert_word_type_form(ARRAY['ég', 'éget'], 2, ARRAY[ROW('burn', 1), ROW('burnt', 2), ROW('burn... |
-- INSERT INTO API_users (id, registerer_ip, user_id, api_key, total_uses, rate_uses, permissionLevel, createdAt, updatedAt) VALUES (1, 'CS-Rubens', '436876982794452992', '768dfe1d-9788-48d7-8782-e20e4cdcf068', 0, 0, 9, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
-- INSERT INTO API_users (id, registerer_ip, user_id, api_key... |
<gh_stars>1-10
CREATE TEMPORARY TABLE test (d Date, dt DateTime);
INSERT INTO test VALUES (toDateTime('2000-01-01 01:02:03'), toDate('2000-01-01'));
SELECT * FROM test;
|
<reponame>PASTAplus/dex<gh_stars>1-10
create table entity
(
id integer not null primary key,
data_url text not null,
base_url text not null,
scope text not null,
identifier int not null,
version int not null,
entity text not null
);
create unique index entity_data_... |
<gh_stars>1-10
#standardSQL
# pages that animate variable font axes
CREATE TEMPORARY FUNCTION animatesVariableFonts(css STRING)
RETURNS BOOLEAN
LANGUAGE js
OPTIONS(library = "gs://httparchive/lib/css-utils.js")
AS '''
try {
var ast = JSON.parse(css);
return countDeclarations(ast.stylesheet.rules, {properties: 'tran... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.0
-- Dumped by pg_dump version 10.0
-- Started on 2017-11-15 00:08:44
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_functi... |
<reponame>hbraha/ovirt-engine
select fn_db_delete_config_value_all_versions('DnsResolverConfigurationSupported');
select fn_db_delete_config_value_all_versions('LogMaxSwapUsedThresholdInPercentage');
select fn_db_delete_config_value_all_versions('LogMinFreeSwapThresholdInMB');
|
--
-- Test queries that can lead to deadlock. This is in a different file to
-- isolate the test & quickly identify it if ICG doesn't complete for a very
-- long time.
--
create schema deadlock;
set search_path = deadlock;
-- Test "Motion deadlock hazard" when Joins have Motions in both branches.
-- see src/backend... |
<gh_stars>0
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: got
-- ------------------------------------------------------
-- Server version 5.5.49-0+deb8u1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C... |
<reponame>Fama18/CRUD-projet-banque-avec-CodeIgniter-
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : mar. 11 août 2020 à 11:05
-- Version du serveur : 10.3.16-MariaDB
-- Version de PHP : 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;... |
CREATE TABLE `nyheter` (
`id` int(2) NOT NULL,
`overskrift` varchar(60) NOT NULL,
`innhold` longtext NOT NULL,
`tidspunkt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`bilde` longtext NOT NULL,
`kategori` varchar(30) NOT NULL,
`viktighet` int(2) NOT NULL
) ENGINE=InnoDB DEF... |
<reponame>mariyast1/MS-SQL-Server
CREATE TABLE Students (
StudentID INT PRIMARY KEY NOT NULL,
Name NVARCHAR(30) NOT NULL
)
CREATE TABLE Exams (
ExamID INT PRIMARY KEY NOT NULL,
Name NVARCHAR(30) NOT NULL
)
CREATE TABLE StudentsExams (
StudentID INT FOREIGN KEY REFERENCES Students(StudentID) NOT NULL,
ExamID INT... |
CREATE TABLE [dbo].[BoloesMembrosPontos](
[NomeCampeonato] [varchar](150) NOT NULL,
[NomeFase] [varchar](50) NOT NULL,
[NomeGrupo] [varchar](20) NOT NULL,
[NomeBolao] [varchar](100) NOT NULL,
[UserName] [varchar](50) NOT NULL,
[Rodada] [int] NOT NULL,
[Posicao] [int] NULL,
[LastPosicao] [int] NULL,
[IsMultip... |
--- Get Cached queries
SELECT cp.[usecounts]
,cp.[refcounts]
,cp.[cacheobjtype]
,CASE cp.[objtype]
WHEN 'Proc'
THEN 'Stored procedure'
WHEN 'Prepared'
THEN 'Prepared statement'
WHEN 'Adhoc'
THEN 'Ad hoc query'
WHEN 'ReplProc'
TH... |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 31, 2021 at 03:52 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/... |
<filename>sql/numerics.sql
--
\set VERBOSITY terse
-- test numerics
create function lua_numexec(code text, n1 numeric, n2 numeric)
returns text
language pllua
as $$
local f,e = load("return function(n1,n2) return "..code.." end", code, "t", self)
assert(f,e)
f = f()
assert(f)
return tostrin... |
<gh_stars>10-100
DELETE FROM `my_config_tree_group`;
DELETE FROM `my_config_tree_log`;
DELETE FROM `my_config_tree` ORDER BY `ID` DESC;
DELETE FROM `my_config_group`;
--
-- Dumping data for table `mod_auth`
--
INSERT INTO `mod_auth` VALUES ('admin','<PASSWORD>');
INSERT INTO `mod_auth` VALUES ('beaver','iJdv<PASSWORD... |
-- trace.test
--
-- db eval {SELECT x'3031323334' AS x}
SELECT x'3031323334' AS x |
<reponame>j-frilot/app-tracker<filename>server/db/db.sql<gh_stars>1-10
-- MYSQL
DROP TABLE demo_job_list;
CREATE TABLE demo_job_list (
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(100) NOT NULL,
company VARCHAR(100) NOT NULL,
date_applied VARCHAR(12) NOT NULL,
date... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.