sql stringlengths 6 1.05M |
|---|
<gh_stars>0
ALTER TABLE fujiji_comments ADD modified_date DATETIME; |
<filename>backend/src/main/resources/db/migration/V2_0__milestone2.sql
-- Drop tables if they exist --
DROP TABLE IF EXISTS contracts CASCADE;
DROP TABLE IF EXISTS insurance_types CASCADE;
-- Create tables --
CREATE TABLE insurance_types (
insurance_type_id SERIAL NOT NULL,
name VARCHAR (255) NOT NULL,
PRIMARY... |
<reponame>wy1024/wechatapp-taste
CREATE TABLE [dbo].[Users]
(
[Id] INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
[UserId] NVARCHAR(MAX) NOT NULL,
[Name] NVARCHAR(MAX) NOT NULL
)
|
<filename>banco/faculdade.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50617
Source Host : localhost:3306
Source Database : faculdade
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2015-12-05 16:12:27
*/
... |
-- Add spatial support for PostGIS databases only
-- Drop everything first
DROP TABLE IF EXISTS gtfs_shape_geoms CASCADE;
BEGIN;
-- Add the_geom column to the gtfs_stops table - a 2D point geometry
SELECT AddGeometryColumn('gtfs_stops', 'the_geom', 4326, 'POINT', 2);
-- Update the the_geom column
UPDATE gtfs_stops S... |
/* ### THIS IS A SAMPLE ### */
If Not Exists(Select 1 From sys.tables Where name = 'SampleTable48')
Begin
Create Table Net48.SampleTable48
(
Id bigint Identity(1,1) NOT NULL,
CreateUserId bigint NOT NULL,
CreateDateTime dateTime NOT NULL,
ModifyUserId bigint NOT NULL,
ModifyDateTime dateTime NOT N... |
<reponame>EdsonMJV/devschool<gh_stars>1-10
DROP TABLE IF EXISTS TB_CLIENTE;
DROP TABLE IF EXISTS TB_TP_OPERACAO;
DROP TABLE IF EXISTS TB_OPERACAO;
-- CLIENTES --
CREATE TABLE TB_CLIENTE (
id INT AUTO_INCREMENT PRIMARY KEY,
nome VARCHAR(250) NOT NULL,
usuario VARCHAR(50) NOT NULL,
cpf VARCHAR(11) NOT NULL,
s... |
INSERT INTO `oc_setting` (`store_id`, `code`, `key`, `value`, `serialized`) VALUES
(0, 'config', 'config_theme', 'default', 0),
(0, 'config', 'config_processing_status', '["5","1","2","12","3"]', 1),
(0, 'config', 'config_complete_status', '["5","3"]', 1),
(0, 'config', 'config_file_ext_allowed', 'zip\r\ntxt\r\np... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 30-Mar-2022 às 13:08
-- Versão do servidor: 10.4.21-MariaDB
-- versão do PHP: 7.3.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... |
<reponame>CarlosSalda/taskcafe
INSERT INTO user_account(created_at, email, initials, username, full_name,
role_code, password_hash) VALUES (NOW(), '', 'SYS', 'system', 'System', 'owner', '');
|
<filename>scripts/Alerting Definition Sets.sql<gh_stars>0
-- Alerting Definition Sets
-- https://www.symantec.com/connect/articles/compilation-sql-queries-sepm-database#comment-12020701
-- <NAME> https://www.symantec.com/connect/user/eddie-velez
SELECT COMPUTER_NAME,
IP_ADDR1_TEXT,
CURRENT_LOGIN_USER,
AV_DEF,
IPS_D... |
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5450021_sys_FRESH-112_AD_UIs_FKs.sql
-- select * from db_columns_fk where IsMIssing='Y' and tableName like 'AD_UI%'
ALTER TABLE AD_UI_Element ADD CONSTRAINT ADField_ADUIElement FOREIGN KEY (AD_Field_ID) REFERE... |
# testscore.sql
DROP TABLE IF EXISTS testscore;
#@ _CREATE_TABLE_
CREATE TABLE testscore
(
subject INT UNSIGNED NOT NULL AUTO_INCREMENT,
age INT UNSIGNED NOT NULL,
sex ENUM('M','F') NOT NULL,
score INT,
PRIMARY KEY (subject)
);
#@ _CREATE_TABLE_
INSERT INTO testscore (age,sex,score)
VALUES
(5,... |
-- Copyright (c) 2021, Oracle and/or its affiliates.
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by appli... |
-- Antilos
SET @ENTRY := 6648;
UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_pa... |
/*==============================================================*/
/* Table: CLIENTE */
/*==============================================================*/
create table CLIENTE
(
NOME varchar(30) not null,
SNOME varcha... |
INSERT INTO WhaleRider VALUES (getdate(), 'TestPlayer', 5, 5, 5) |
<gh_stars>0
DROP TYPE IF EXISTS mood CASCADE;
CREATE TYPE mood AS ENUM ('unhappy', 'ok', 'happy');
DROP TABLE IF EXISTS World;
CREATE TABLE World (
id integer NOT NULL,
randomNumber integer NOT NULL default 0,
PRIMARY KEY (id)
);
INSERT INTO World (id, randomnumber)
SELECT x.id, random() * 10000 + 1 FROM gener... |
<reponame>slax0rr/ToB
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Erstellungszeit: 27. Apr 2017 um 20:54
-- Server-Version: 5.5.54
-- PHP-Version: 5.6.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@... |
SELECT
tagName AS 'tag:STRING',
8 + (SELECT sum(x) FROM (SELECT unicode(unnest(string_split(tagName, ''))) AS x)) % 9 AS 'delta:INT'
FROM tagNumMessages
ORDER BY md5(tagName || 'e')
LIMIT 400
|
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
INSERT INTO `commune` (`ville_id`, `ville_departement_departement_code`, `ville_slug`, `ville_nom`, `ville_nom_reel`, `ville_nom_soundex`, `ville_nom_metaphone`, `ville_code_postal`, `ville_commune`, `... |
<reponame>apereo-tesuto/tesuto
insert into "security_permission" (security_permission_id, created_on_date, last_updated_date, description) values
('CREATE_QA_OBJECTS', timestamp 'now', timestamp 'now', 'Allows user to seed data, should only be available on test and ci environments');
insert into "security_group_secu... |
/**
* Author: <NAME>
* Created: Jan 30, 2017
*/
create database `securerest`;
use `securerest`;
create table `account` (
`id` bigint not null auto_increment primary key,
`username` varchar(30) not null unique,
`password` char(60) not null,
`role` enum('USER', 'ADMIN') not null
); |
-- Name: DciodvfyErrorsStringBySeriesAndScanInstance
-- Schema: posda_phi_simple
-- Columns: ['error_string']
-- Args: ['dciodvfy_scan_instance_id', 'series_instance_uid']
-- Tags: ['tag_usage', 'dciodvfy']
-- Description: Show all the dciodvfy scans
select
dciodvf... |
-- Deploy reports
BEGIN;
CREATE TYPE goiardi.report_status AS ENUM ( 'started', 'success', 'failure' );
CREATE TABLE goiardi.reports (
id bigserial,
run_id uuid not null,
node_name varchar(255),
organization_id bigint not null default 1,
start_time timestamp with time zone,
end_time timestamp with time zone,
... |
select *
from {{ var('classes') }}
|
-- Use property 'description' as 'introduction' for collections that have no 'introduction', but have 'description'
insert into extra_prop_entry
select extra_prop_entry_seq_pk.nextval,
e.resource_id,
0,
null,
'introduction',
'<p>' || e.value || '</p>',
null,
null
from extra_prop_entry e... |
<filename>sql/_27_banana_qa/issue_5765_timezone_support/_02_type_conversions/_01_explicit_conversion/cases/_04_alter_dt_to_date_time.sql
--cast DATETIME(L)TZ columns to date/time data types, in alter statement
autocommit off;
drop table if exists tz_test;
create table tz_test(a int, ts datetime, dtltz datetime with l... |
<filename>tools/testfiles/tstr-1.ddl
HDF5 "tstr.h5" {
GROUP "/" {
DATASET "comp1" {
DATATYPE H5T_COMPOUND {
H5T_ARRAY { [8][10] H5T_STD_I32BE } "int_array";
H5T_ARRAY { [3][4] H5T_STRING {
STRSIZE 32;
STRPAD H5T_STR_SPACEPAD;
CSET H5T_CSET_ASCII;
... |
<gh_stars>0
SET QUOTED_IDENTIFIER ON
GO
IF (NOT EXISTS (SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'dbo'
AND TABLE_NAME = 'ReportJobQueue'))
BEGIN
CREATE TABLE [dbo].[ReportJobQueue](
[Id] [int] IDENTITY(1,1) NOT NULL,
[ReportName] [varchar]... |
<filename>live_tv_apis.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 01, 2020 at 04:17 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.3.17
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 ... |
<reponame>Draska/chat-and-go
USE challenge;
CREATE TABLE test(col VARCHAR(10));
INSERT INTO test(col) VALUES('ok');
|
insert into actions (name, value, type) values ('events.purgeChunks', 'paprika.actions.events.PurgeChunks.PurgeChunks', 'action');
insert into actions (name, value, type) values ('events.purgeMessages', 'paprika.actions.events.PurgeMessages.PurgeMessages', 'action');
insert into actions (name, value, type) values ('eve... |
use scc353_1;
insert into Specialized(EmployeeID, LOB)
values
(3013,'Development'),
(3012,'Cloud Services'),
(3011,'Research');
|
<gh_stars>0
-- +migrate Up
CREATE TABLE `problem_set` (
`id` VARCHAR(36) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`description` TEXT NOT NULL,
`themes` VARCHAR(255) NOT NULL,
`rating_interval` VARCHAR(255) NOT NULL,
`user_id` VARCHAR(50) NOT NULL,
`created_at` DATETIME NOT NULL,
`updated_... |
-- +goose Up
-- +goose StatementBegin
CREATE TABLE sighting (
datetime timestamp without time zone,
city text,
country text,
shape text,
duration_in_seconds integer,
duration text,
posted timestamp without time zone,
latitude numeric(9,7),
longitude numeric(10,7),
comments text,
state text,
id s... |
DROP TYPE user_level;
DROP TYPE recipe_state;
DROP TABLE app_user;
DROP TABLE app_user_settings;
DROP TABLE recipe;
DROP TABLE recipe_tag;
DROP TABLE recipe_note;
DROP TABLE recipe_rating;
DROP TABLE recipe_image;
DROP TABLE recipe_link;
|
<reponame>ckraju/CSE-Lab-Manual
-- Filling Student table with values
INSERT INTO Student VALUES
('1DS16CS735', 'Rishabh', 'DBMS', '1994-06-24'),
('1DS16CS747', 'Siddharth', 'ADA', '1993-11-9'),
('1DS16CS701', 'Aditya', 'GTC', '1994-04-28'),
('1DS16CS703', 'Amit', 'SE', '1993-10-7'),
('1DS16CS730', 'Gargi', 'DS', ... |
CREATE SEQUENCE seq_user_profile_e13cc11b_dee7_4190_8225_3c08caece235_id
AS BIGINT;
CREATE VIEW seq_user_profile_e13cc11b_dee7_4190_8225_3c08caece235_id_view
AS SELECT nextval('seq_user_profile_e13cc11b_dee7_4190_8225_3c08caece235_id')::BIGINT AS nextval;
|
<reponame>james-cantrill/funda_components<filename>system_user/system_user_database/table_definitions/system_actions.sql<gh_stars>0
DROP TABLE IF EXISTS system_user_schema.system_actions;
CREATE TABLE system_user_schema.system_actions (
service text NOT NULL,
action text NOT NULL,
action_display_name text,
UNIQUE... |
USE `leesite`;
/*Table structure for table `config_aliyun_push` */
DROP TABLE IF EXISTS `config_aliyun_push`;
CREATE TABLE `config_aliyun_push` (
`id` varchar(64) NOT NULL COMMENT '编号',
`access_key_id` varchar(64) DEFAULT NULL COMMENT 'Key',
`access_key_secret` varchar(64) DEFAULT NULL COMMENT 'Secret',
`app... |
<reponame>share-research/pace-admin
insert into type_review values ('pending');
insert into type_review values ('accepted');
insert into type_review values ('rejected');
insert into type_review values ('unsure'); |
<gh_stars>1-10
-- Created by <NAME>
-- Last modification date: 2021-05-08 18:55:03.182
-- tables
-- Table: registration_player
DROP TABLE IF EXISTS `registration_player`;
-- End of file. |
<reponame>liangry/sqlparser
RENAME COLUMN t.c TO d |
<filename>src/test/resources/com/foundationdb/sql/parser/create-table-1.sql
CREATE TABLE t2 AS (SELECT * FROM t1) WITH NO DATA |
(
select *
from {{ source('instacart_raw_data', 'order_products__prior') }}
)
UNION
(
select *
from {{ source('instacart_raw_data', 'order_products__train') }}
) |
{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}
{% if should_create %}
{{ adapter.make_date_partitioned_table(relation) }}
{% endif %}
{% for date in dates %}
{% set date = (date | string) %}
{% if verbose %}
{% set table_start_time = modules.d... |
DROP TABLE IF EXISTS a;
DROP TABLE IF EXISTS j;
CREATE TABLE a(`id` UInt32, `val` UInt32) ENGINE = Memory;
CREATE TABLE j(`id` UInt32, `val` UInt8) ENGINE = Join(ANY, LEFT, id);
INSERT INTO a VALUES (1,1)(2,2)(3,3);
INSERT INTO j VALUES (2,2)(4,4);
SELECT * FROM a ANY LEFT OUTER JOIN j USING id ORDER BY a.id, a.val ... |
<filename>gsm/db/tables/create.table.versions.sql
/**
* This table keeps track of the versions and changes
*/
CREATE SEQUENCE "seq_versions" AS INTEGER;
CREATE TABLE versions
(versionid INT DEFAULT NEXT VALUE FOR "seq_versions"
,version VARCHAR(32) NULL
,creation_ts TIMESTAMP NOT NULL
,monet_version VARCHAR... |
CREATE TABLE tst_helper (i int);
insert into tst_helper values (11),(12),(13),(14);
CREATE TABLE tst (int_col int);
insert into tst(int_col) values (1);
select * from tst;
ALTER TABLE tst ADD COLUMN timestamp_col timestamp default unix_timestamp();
select int_col, if (timestamp_col is not null, 'OK', 'NOK') from ts... |
<gh_stars>0
DROP DATABASE IF EXISTS bamazon;
CREATE DATABASE bamazon;
USE bamazon;
CREATE TABLE products (
id INT NOT NULL AUTO_INCREMENT,
product_name VARCHAR(45) NULL,
department_name VARCHAR(45) NULL,
price DECIMAL(10,2) NULL,
stock_quantity INT NULL,
PRIMARY KEY (id)
);
INSERT INTO products (product... |
<gh_stars>0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Da... |
<filename>sql-scripts/02create_db.sql<gh_stars>0
DROP SCHEMA IF EXISTS `stock_platform`;
CREATE SCHEMA `stock_platform`;
use `stock_platform`;
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`first_name` varchar(45) DEFAULT NULL,
`last_name` varchar(45) DEFAULT NULL,
... |
CREATE TABLE [dbo].[cohort] (
[cohort_definition_id] INT NOT NULL,
[subject_id] INT NOT NULL,
[cohort_start_date] DATE NOT NULL,
[cohort_end_date] DATE NOT NULL,
CONSTRAINT [xpk_cohort] PRIMARY KEY NONCLUSTERED ([cohort_definition_id] ASC, [subject_id] ASC, [cohort_start_date] A... |
create procedure [dbo].[dnn_GetAllProfiles]
AS
SELECT * FROM dbo.dnn_Profile
|
<gh_stars>1-10
-- up
CREATE TABLE IF NOT EXISTS something_new(id INTEGER);
-- down
DROP TABLE IF EXISTS something_new;
|
-- A valid identifier is alphanumeric and contains at least one letter.
select "a" as 0_is_a_legal_identifier;
select "a" as 00_is_a_legal_identifier;
select 123_is_a_legal_identifier.456_is_a_legal_identifier;
select "a" as 0is_a_legal_identifier;
select _s00.45_is_a_legal_identifier from sdf9_._234awdf;
select "a" as... |
-- randexpr1.test
--
-- db eval {SELECT case when case when case (abs(t1.b)/abs(t1.a)) when e then f else t1.a end>c then 19 else b end- -11 in (select case case count(distinct t1.f) | (max(17)) when (count(*)) then count(distinct b) else count(distinct 19) end when min(t1.f) then (count(distinct t1.f)) else count(*) ... |
<reponame>andypohl/kent<filename>src/hg/lib/genark.sql
# genark.sql was originally generated by the autoSql program, which also
# generated genark.c and genark.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#index to UCSC assembly hubs
... |
<filename>etl/StandardizedClinicalDataTables/MEASUREMENT/etl_contrib.sql
-- Derived values from labeevent
with
"patients" AS (SELECT mimic_id AS person_id, subject_id FROM patients),
"admissions" AS (SELECT mimic_id AS visit_occurrence_id, hadm_id FROM admissions),
"gcpt_lab_unit_to_concept" AS (SELECT unit as unit_so... |
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/45-de.metas.invoice/5428520_sys_09489_AllowAutoPayZeroAmt.sql
update ad_sysConfig set value = 'Y' where ad_sysConfig_ID = 50057; |
<reponame>smith750/kc
create or replace view OSP$S2S_OPP_FORMS as
select PROPOSAL_NUMBER,OPP_NAME_SPACE,FORM_NAME,MANDATORY,AVAILABLE,INCLUDE,
UPDATE_TIMESTAMP,UPDATE_USER
from S2S_OPP_FORMS; |
<gh_stars>0
INSERT IGNORE INTO biblio_framework VALUES
('SIMP', 'Grille simplifiée');
INSERT IGNORE INTO marc_tag_structure (tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, frameworkcode)
SELECT tagfield, liblibrarian, libopac, repeatable, mandatory, authorised_value, 'SIMP'
FROM marc_tag_s... |
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Sep 13, 2020 at 11:07 PM
-- Server version: 5.7.31-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
create table if not exists b_intranet_sharepoint
(
IBLOCK_ID int(11) not null,
SP_LIST_ID varchar(32) not null,
SP_URL varchar(255) not null,
SP_AUTH_USER varchar(50) null default '',
SP_AUTH_PASS varchar(50) null default '',
SYNC_DATE datetime,
SYNC_PERIOD int(11) null default 86400,
SYNC_ERRORS int(1) null de... |
-- Fill table "roles";
INSERT INTO roles(role_name)
VALUES('administrator'),('user'),('quest');
-- Fill table "rules";
INSERT INTO rules(rule_name, rule_description)
VALUES('delete', 'delete item'),
('update', 'update item'),
('create', NULL);
-- Fill addition table "rolesrules";
INSERT ... |
/*
Navicat Premium Data Transfer
Source Server : Lee
Source Server Type : MySQL
Source Server Version : 50722
Source Host : localhost:3306
Source Schema : aj
Target Server Type : MySQL
Target Server Version : 50722
File Encoding : 65001
Date: 20/06/2018 16:15:22
*/
... |
<reponame>sdgdsffdsfff/zeus<gh_stars>10-100
-- MySQL dump 10.13 Distrib 5.6.21, for Linux (x86_64)
--
-- Host: 127.0.0.1 Database: open
-- ------------------------------------------------------
-- Server version 5.6.21
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARA... |
<filename>utils/remove_board.sql
SELECT @BOARD_UUID := '220e9130-2d89-435e-96c1-49f9c88f9a18';
select @BOARD_ID := `id` from boards where uuid= @BOARD_UUID;
delete from locations where board_id=@BOARD_ID;
delete from sessions where board_id=@BOARD_ID;
delete from enabled_webservices where board_uuid=@BOARD_UUID;
del... |
-- Korrektur Basardaten: Mehrzahl zu Einzahl
ALTER TABLE [Handelsgut] ADD [Verpackungseinheit] float NULL;
UPDATE [Handelsgut] SET [Gewicht] = 0.1, [Verpackungseinheit] = 10, [Name] = 'Pergament' WHERE [HandelsgutGUID] = '00000000-0000-0000-002a-000000001950';
UPDATE [Handelsgut_Setting] SET [Preis] = '1,2' WHERE [... |
<reponame>myxzjie/cms
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for cms_ad
-- ----------------------------
CREATE TABLE `cms_ad` (
`id` bigint NOT NULL AUTO_INCREMENT,
`position_id` bigint NOT NULL COMMENT '0,站外广告;从1开始代表的是该广告所处的广告位,同表ad_postition中的字段position_... |
<reponame>rodel-talampas/gpdb
TRUNCATE TABLE cr_co_truncate_table;
|
<reponame>jmdecastel/GEOTADMIN<filename>geotrek/trekking/sql/30_views.sql
CREATE OR REPLACE VIEW rando.o_v_itineraire AS (
SELECT e.geom, i.*
FROM o_t_itineraire AS i, e_t_evenement AS e
WHERE i.evenement = e.id
AND e.supprime = FALSE
);
CREATE OR REPLACE VIEW rando.o_v_poi AS (
SELECT e.geom, i.*
FROM o_t_poi A... |
create table shops (
shop_id uuid primary key default gen_random_uuid(),
name text not null check (name <> '')
)
|
<filename>dspace-api/src/main/resources/org/dspace/storage/rdbms/sqlmigration/h2/V7.0_2020.02.20__DBMSImportFramework.sql
--
-- The contents of this file are subject to the license and copyright
-- detailed in the LICENSE and NOTICE files at the root of the source
-- tree and available online at
--
-- http://www.dspace... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 16-03-2022 a las 17:03:07
-- Versión del servidor: 5.7.33
-- Versión de PHP: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
<reponame>datagrok-ai/packages<gh_stars>0
--name: MSSQLAll
--connection: MSSQLNorthwind
select * from orders;
--end
--name: MSSQLByInt
--connection: MSSQLNorthwind
--input: int orderid
select * from orders where orderid = @orderid;
--end
--name: MSSQLByStringPatternInt
--connection: MSSQLNorthwind
--input: string shi... |
<reponame>JonathanDeBelg/eenmaal_andermaal
INSERT Items(ID,Titel,Categorie,Postcode,Locatie,Land,Verkoper,Prijs,Valuta,Conditie,Thumbnail,Beschrijving) VALUES (120978443251,'<NAME> (FEITEN , FABELS EN FASCINATIE) - G<NAME>',64193,'1601JP','Nederland','NL','haveanicedaytoday','7.5','EUR','Heel goed','img120978443251.jpg... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 31, 2017 at 07:20 PM
-- Server version: 5.7.20-0ubuntu0.16.04.1
-- PHP Version: 7.1.12-3+ubuntu16.04.1+deb.sury.org+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:... |
select department_name, count(name) as Faculty
from university.instructor
group by department_name;
|
SELECT
*, pg_size_pretty(total_bytes) AS total
, pg_size_pretty(index_bytes) AS INDEX
, pg_size_pretty(toast_bytes) AS toast
, pg_size_pretty(table_bytes) AS TABLE
FROM (
SELECT
*, total_bytes - index_bytes - COALESCE(toast_bytes, 0) AS table_bytes
FROM (
SELECT
c.oid, nspname AS tab... |
-- Your SQL goes here
CREATE TABLE locations (
id INTEGER PRIMARY KEY NOT NULL,
name TEXT NOT NULL,
path TEXT NOT NULL,
size BigInt NOT NULL
);
|
-- MySQL dump 10.13 Distrib 8.0.12, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: contactamax_prova
-- ------------------------------------------------------
-- Server version 8.0.12
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL... |
CREATE DATABASE orionx;
CREATE TABLE btc_trades(
mongo_id varchar(255) NOT NULL,
date TIMESTAMPTZ NOT NULL,
price INTEGER NOT NULL,
amount INTEGER NOT NULL,
total_cost INTEGER NOT NULL
);
CREATE EXTENSION timescaledb CASCADE;
SELECT create_hypertable('btc... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 22, 2019 at 05:21 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>avabot/abot
DROP TABLE responses;
ALTER TABLE inputs DROP COLUMN flexid;
ALTER TABLE inputs DROP COLUMN flexidtype;
ALTER TABLE inputs DROP COLUMN commands;
ALTER TABLE inputs DROP COLUMN objects;
ALTER TABLE inputs DROP COLUMN actors;
ALTER TABLE inputs DROP COLUMN times;
ALTER TABLE inputs DROP COLUMN place... |
SET DEFINE OFF;
ALTER TABLE AFW_25_PUBLC_TRAVL ADD (
CONSTRAINT AFW_25_PUBLC_TRAVL_FK2
FOREIGN KEY (REF_TRAVL)
REFERENCES AFW_25_TRAVL (SEQNC)
ON DELETE CASCADE
ENABLE VALIDATE)
/
|
<gh_stars>1-10
CREATE TABLE events (
id SERIAL PRIMARY KEY,
receiver VARCHAR(32) NOT NULL,
content TEXT NOT NULL,
author VARCHAR(32) NOT NULL,
time TIMESTAMP NOT NULL,
`repeat` BIGINT UNSIGNED NULL
)
|
<filename>code/API/target/classes/SQL/post_study_print_results.sql
###################################################################################################
# Commands to get information from the database and the participants #
#####################################################... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Dec 02, 2020 at 11:50 PM
-- Server version: 5.7.31
-- PHP Version: 7.3.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=... |
USE [ANTERO]
IF EXISTS
(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='f_eter_geographic')
BEGIN
DROP TABLE [dw].[f_eter_geographic];
END
IF NOT EXISTS
(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='f_eter_geographic')
BEGIN
CREATE TABLE [dw].[f_e... |
-- ----------------------------
-- Table structure for attachment
-- ----------------------------
CREATE TABLE "public"."attachment" (
"id" varchar(22) COLLATE "pg_catalog"."default" NOT NULL,
"key" varchar(70) COLLATE "pg_catalog"."default",
"name" varchar(50) COLLATE "pg_catalog"."default",
"description" text... |
<gh_stars>10-100
ALTER TABLE
cfds
ADD
COLUMN initial_tx_fee_rate NOT NULL DEFAULT '1';
|
-- file:numerology.sql ln:58 expect:true
INSERT INTO TEMP_GROUP
SELECT 1, (- i.f1), (- f.f1)
FROM INT4_TBL i, FLOAT8_TBL f
|
<filename>galleria-ejb/src/main/sql/20110721192453_create_fk_ALBUMS_USERID_FK.sql
ALTER TABLE ALBUMS ADD CONSTRAINT ALBUMS_USERID_FK FOREIGN KEY (USERID)
REFERENCES USERS (USERID) ON DELETE CASCADE;
--//@UNDO
ALTER TABLE ALBUMS DROP CONSTRAINT ALBUMS_USERID_FK; |
-- sqlitecaching clear table
DELETE from "aa_bb__cc_dd";
|
<gh_stars>1-10
ALTER TABLE `academic_period_levels` DROP `editable`;
DROP TABLE institution_students;
RENAME TABLE z_2588_institution_students TO institution_students;
DROP TABLE z_2588_academic_period_parent;
-- db_patches
DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2588'; |
<filename>db/deltas/7-create-article-comments.sql
CREATE TABLE article_comm (
id mediumint(8) unsigned NOT NULL auto_increment,
art_id mediumint(8) unsigned NOT NULL,
date_posted datetime NOT NULL,
posted_by varchar(32) NOT NULL,
`comment` mediumtext NOT NULL,
active tinyint(1) NOT NULL default '0',
... |
SELECT tab0.GivenName AS GivenName , tab7.a AS a , tab4.p AS p , tab6.switzerland AS switzerland , tab9.germany AS germany , tab2.scientist AS scientist , tab1.FamilyName AS FamilyName , tab8.city2 AS city2 , tab5.city AS city
FROM (SELECT sub AS switzerland
FROM skos__prefLabel$$7$$
WHERE obj = '"Switzerl... |
DROP TABLE IF EXISTS `{prefix}comment_push` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.