sql stringlengths 6 1.05M |
|---|
๏ปฟINSERT INTO Bookmarks(Url,Title) VALUES('http://www.stackoverflow.com','non, bibendum sed, est. Nunc');
INSERT INTO Bookmarks(Url,Title) VALUES('http://www.asp.net','risus. In mi pede, nonummy');
INSERT INTO Bookmarks(Url,Title) VALUES('http://www.microsoft.com','pede et risus. Quisque libero');
INSERT INTO Bookmarks(... |
ALTER TABLE oauth_client_details ALTER COLUMN scope TYPE TEXT;
ALTER TABLE oauth_client_details ALTER COLUMN authorities TYPE TEXT;
ALTER TABLE revocable_tokens ALTER COLUMN scope TYPE TEXT;
|
# Connection: localhost
# Host: 127.0.0.1
# Saved: 2004-04-09 18:53:52
#
# Host: 127.0.0.1
# Database: 3proxy
# Table: 'log'
#
CREATE TABLE `log` (
`time` datetime NOT NULL default '0000-00-00 00:00:00',
`bytesin` int(11) NOT NULL default '0',
`bytesout` int(11) NOT NULL default '0',
`username` varchar(20) NO... |
๏ปฟ-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.VIEWS... |
<filename>aws-test/tests/aws_vpc_flow_log/test-hydrate-query.sql
select flow_log_id, akas, tags, title
from aws.aws_vpc_flow_log
where flow_log_id = '{{ output.resource_id.value }}';
|
<filename>tests/routes/data/routes_a0-schema-create.sql<gh_stars>1000+
create database routes_a0;
|
create database test;
use test;
CREATE TABLE testtab
(
id INTEGER AUTO_INCREMENT,
name TEXT,
PRIMARY KEY (id)
) COMMENT='this is my test table'; |
-- create class using Constraints null,Unique and DEFAULT
create table t1 (
c1 int DEFAULT 9 Unique null
);
drop t1; |
-- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: timekeeping_sirjun
-- ------------------------------------------------------
-- Server version 10.1.26-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@... |
-- --------------------------------------------------------
-- ไธปๆบ: 127.0.0.1
-- ๆๅกๅจ็ๆฌ: 5.5.47 - MySQL Community Server (GPL)
-- ๆๅกๅจๆไฝ็ณป็ป: Win32
-- HeidiSQL ็ๆฌ: 9.3.0.4984
-- --------------------------------------------------------
/*... |
<reponame>theonesp/pzero-code<gh_stars>0
-- -------------------------------------------------------------------------------
--
-- Create covidhm tables
--
-- -------------------------------------------------------------------------------
--------------------------------------------------------
-- File created - 19/01... |
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public,pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: scount;... |
UPDATE tests SET exercise_id = 1589 WHERE course_id = 12 AND assignment_id = 211 AND exercise_id = 1376;
UPDATE tests SET exercise_id = 1594 WHERE course_id = 12 AND assignment_id = 211 AND exercise_id = 1472;
UPDATE tests SET exercise_id = 1595 WHERE course_id = 12 AND assignment_id = 211 AND exercise_id = 1473;
UPDAT... |
CREATE TRIGGER updateavgpricesingleholding1
BEFORE
INSERT
OR
UPDATE
ON
valuepaldev.holdings
FOR EACH ROW
EXECUTE PROCEDURE valuepaldev.updateavgprice2();
CREATE OR REPLACE FUNCTION valuepaldev.calcavgprice(
p_price valuepaldev.holdings.price%TYPE,
p_wallet_id valuepaldev.holdings.... |
<gh_stars>0
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `tweet_hashtags_full` AS select `d`.`tweetId` AS `tweetId`,`d`.`negative` AS `negative`,`d`.`positive` AS `positive`,`d`.`created_at` AS `created_at`,`h`.`hid` AS `hid`,`hash`.`hashtag` AS `hashtag` from ((`tweet_hashtags` `h` l... |
<reponame>treebat1/SQL
create table #table
(DBName varchar(100)
, EarliestTimeStamp datetime
, LatestTimeStamp datetime
)
exec sp_MSforeachdb
N'
USE ?
IF ''?'' not in (''master'',''distribution'',''tempdb'',''model'',''msdb'') --system
BEGIN
insert into #table
(DBName, EarliestTimeStamp, Latest... |
<filename>queries.sql
CREATE TABLE `users` (
`uid` INTEGER PRIMARY KEY AUTOINCREMENT,
`username` VARCHAR(64) NULL,
`password` VARCHAR(64) NULL,
`status` BOOLEAN
);
CREATE TABLE `punches` (
`pid` INTEGER PRIMARY KEY AUTOINCREMENT,
`uid` INTEGER NULL,
`in` TIMESTAMP NULL,
`out` TIMESTAMP ... |
๏ปฟ
CREATE PROC [unittests].[test01]
AS
BEGIN
SELECT 0 AS [testresult]
END |
<reponame>l0wskilled/odoo-manager-api
/*!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 utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHE... |
<reponame>EdwinOliveira/Restaurant-Web-Application<filename>src/database/Views/Select/All_data/Select_Comsumption_Items.sql
CREATE OR REPLACE VIEW Select_Comsumption_Items
AS
SELECT
Comsumptions.comsumption_cod AS Comsumption,
Items.designation AS Item
FROM Comsumption_Items
INNER JOIN Comsumption... |
DROP TABLE "public"."wards_history";
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2021 at 06:18 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 7.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
๏ปฟDROP TABLE IF EXISTS direct_candidates;
CREATE TABLE direct_candidates AS
SELECT n1.id AS n1id, n2.id AS n2id
FROM nodes AS n1
INNER JOIN walk_nodes AS wn1 ON wn1.id = n1.id
CROSS JOIN nodes AS n2
INNER JOIN walk_nodes AS wn2 ON wn2.id = n2.id
WHERE n1.inside = false AND n2.inside = false AND ST_Distance(n1.loc,... |
REM ============================================================================
REM Error handling
REM ============================================================================
REM Following statement causes "O/S Message: No child processes" (see
REM https://yaocm.wordpress.com/2019/10/02/technical-note-on-o-s-mess... |
<reponame>emeeks/orbis_stanford
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.0.7
-- Dumped by pg_dump version 9.1.2
-- Started on 2012-06-04 13:05:57
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min... |
-- # Problem: https://www.hackerrank.com/challenges/asian-population/problem
-- # Score: 10
SELECT SUM(city.POPULATION) FROM CITY city
JOIN COUNTRY country ON country.CODE = city.COUNTRYCODE
WHERE country.CONTINENT = 'Asia';
|
create table activity_connections_view
(
id bigint not null unique,
dimension_id integer not null,
trail_id integer,
activity_id integer,
data jsonb null,
connected_by jsonb not null,
created_at text
);
create or replace function update_activity_connections_view_insert_fn() returns trigger ... |
CREATE TABLE subdivision_TD (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
INSERT INTO `subdivision_TD` (`id`, `name`, `level`) VALUES ('TD-BA', 'Batha', 'region');
INSERT INTO `subdivision_TD` (`id`,... |
CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
CREATE TABLE public.accounts (
id integer NOT NULL,
name character varying(255) NOT NULL,
type character varying(20) NOT NULL,
entity_id integer NOT NULL,
parent_id integer,
quantity numeric(12,4) NOT NULL,
created_at timestamp with... |
SELECT count(*) AS nrows FROM `{{ params.project }}.samples.github_timeline`
|
-- avtrans.test
--
-- execsql {
-- END TRANSACTION;
-- SELECT a FROM two ORDER BY a;
-- }
END TRANSACTION;
SELECT a FROM two ORDER BY a; |
-- file:updatable_views.sql ln:755 expect:true
EXPLAIN (costs off) INSERT INTO rw_view1 VALUES (5)
|
-- #SPDX-License-Identifier: MIT
DROP INDEX "augur_data"."domain,active";
DROP INDEX "augur_data"."domain,affiliation,start_date";
ALTER TABLE "augur_data"."contributor_affiliations" ADD COLUMN "ca_last_used" timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE "augur_data"."contributor_affiliations" DROP CO... |
-- 2017-10-11T15:56:36.992
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Liefereinschrรคnkung',Updated=TO_TIMESTAMP('2017-10-11 15:56:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=560384
;
-- 2017-10-11T15:56:45.497
-- I forgot to set the DICTIONARY_ID_COMMEN... |
<filename>packages/acs-events/sql/postgresql/upgrade/upgrade-0.4d-0.4d1.sql
update acs_objects
set title = (select name
from acs_events
where event_id = object_id)
where object_type = 'acs_event';
update acs_objects
set title = (select name
from acs_activities
where ... |
<filename>scripts/customer-table-create.sql
USE sampledb;
DROP TABLE IF EXISTS customer;
CREATE TABLE IF NOT EXISTS customer
(
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
customerName VARCHAR( 255 ) NOT NULL,
effectiveDate DATE,
description TEXT,
status TINYINT NOT NULL
... |
TRUNCATE TABLE TRIPPIN.PEOPLE_STAGE;
CALL TRIPPIN.SP_COPY_INTO_PEOPLE_STAGE($FILE_NAME);
SELECT $1:rows_loaded AS ROWS_LOADED FROM TABLE(RESULT_SCAN(LAST_QUERY_ID()));
|
<reponame>suryatmodulus/tidb
create table td (
id int not null primary key clustered,
name varchar(20) not null,
size bigint not null,
unique key uni_name(name)
);
|
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 09, 2017 at 12:15 PM
-- Server version: 10.0.31-MariaDB-cll-lve
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!... |
<gh_stars>0
USE `db1`;
insert into `productline`(`product_line`,`code`) values
('Classic Cars',599302),
('Motorcycles',599302),
('Planes',433823),
('Ships',433823),
('Trains',123333),
('Trucks and Buses',569331),
('Vintage Cars',223113) ON DUPLICATE KEY UPDATE product_line=product_line;
USE `db2`;
insert i... |
<filename>Internship2019/SACT_reports/Simulacrum SACT SQL extract code/Simulacrum_SACT_Outcomes_Extract.sql
/* Written by <NAME> - 9th September 2019 */
/* Based on work by <NAME> - 17TH JANUARY 2019, and Carrie - 25th June 2018 */
/* This creates the Outcome level SAS extract from Simulacrum datasets (simulated SACT ... |
<reponame>DenisBuserski/Softuni_Java_DB_MySQL
UPDATE `employees`
SET
`salary` = 1000
WHERE
`job_title` = 'Manager';
SELECT salary from employees; |
<filename>src/main/sql/ddl.sql
CREATE TABLE student (
id varchar(255) NOT NULL,
name varchar(255) NOT NULL,
UNIQUE (id)
);
CREATE TABLE course (
id varchar(255) NOT NULL,
name varchar(255) NOT NULL,
UNIQUE (id)
);
CREATE TABLE student_course_registration (
student_course_r... |
-- phpMyAdmin SQL Dump
-- version 4.0.10.6
-- http://www.phpmyadmin.net
--
-- ะฅะพัั: 127.0.0.1:3306
-- ะัะตะผั ัะพะทะดะฐะฝะธั: ะะฟั 11 2015 ะณ., 15:33
-- ะะตััะธั ัะตัะฒะตัะฐ: 5.6.22-log
-- ะะตััะธั PHP: 5.4.35
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE... |
/* Querying Deadlocks From System_Health XEvent */
SET NOCOUNT ON;
DECLARE @SessionName SysName
SELECT @SessionName = 'system_health'
/*
SELECT Session_Name = s.name, s.blocked_event_fire_time, s.dropped_buffer_count, s.dropped_event_count, s.pending_buffers
FROM sys.dm_xe_session_targets t
INNER JOIN sys.dm_xe_... |
<reponame>Paree24/PC-Components-Catalog<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 04, 2018 at 11:40 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRA... |
๏ปฟselect o.name, s.name as [schema], o.object_id, o.create_date, o.modify_date, o.type
from [SERVER].sys.objects o
inner join [SERVER].sys.schemas s on o.schema_id = s.schema_id
where o.type in ('P', 'IF', 'FN', 'TF') and o.object_id =[OBJECT_ID_CONDITION]
|
๏ปฟ
/*
bi-directional relations between procedures
they needs to be excluded to avoid circular references in SSIS packages or in procedure calls
we need to exclude one of them in earlier steps to make this view here empty
*/
CREATE View workflow.Workflow_ProcedureDependency_T_bidirectional
As
Select
T1.Workflow_id
... |
<reponame>WeilerWebServices/PostgreSQL
{### Attach the target to port for debugging ###}
{% if port %}
SELECT * FROM pldbg_attach_to_port({{port}}::int)
{% endif %} |
<filename>src/main/resources/db/migration/V038__Add_indexes_to_process_events.sql<gh_stars>1-10
DROP INDEX process_events_container_zip_idx;
CREATE INDEX process_events_container_zip_event_idx ON process_events (container, zipfilename, event);
CREATE INDEX process_events_event_createdat_idx ON process_events (event, c... |
<filename>missing_segues.sql
select shows.uuid, shows.year, shows.month, shows.day
from shows, show_sets, songs, song_refs
where
shows.uuid = show_sets.show_uuid and
songs.show_set_uuid = show_sets.uuid and
songs.song_ref_uuid = song_refs.uuid and
song_refs.name = '<NAME>'
and segued = false
order by show... |
EXEC tSQLt.NewTestClass 'testSSPM';
|
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'ufnActivityTypeDeleteEntityEmail')
AND OBJECTPROPERTY(id, N'IsScalarFunction') = 1)
DROP FUNCTION ufnActivityTypeDeleteEntityEmail
GO
/*
*/
CREATE FUNCTION ufnActivityTypeDeleteEntityEmail()
RETURNS BIGINT
AS
BEGIN
RETURN(37)
END
GO |
-- Column: C_Payment_v.IBAN
-- 2022-04-14T12:41:03.829Z
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent... |
-- The totals by combination of TAS/program activity code provided in File C (award financial) must be a subset of, or
-- equal to, the same combinations in File B (object class program activity). For example, -10 in C and -100 in B
-- would pass.
-- This rule selects 32 distinct elements in Files B and C based on TAS/... |
SELECT d.dept_name,
ee.gender,
dm.emp_no,
dm.from_date,
dm.to_date,
e.calendar_year,
CASE
WHEN YEAR (
dm.to_date) >= e.calendar_year AND YEAR(dm.from_date) <= e.calendar_year THEN 1
ELSE 0
END
AS active
FROM
(SELECT
YEAR(hire_date) AS calen... |
<gh_stars>0
create table student (
id int not null,
name varchar (255),
lastname varchar (255),
patronymic varchar (255),
date_of_birth date,
address varchar (255),
group_id int null,
phone varchar (12),
primary key (id));
create table faculty (
faculty_id int not null AUTO_INCREMENT,
faculty_name varchar (255) not n... |
<reponame>sinkiang/light-task-scheduler
CREATE TABLE "lts_admin_jc_monitor_data" (
"id" NUMBER(11) NOT NULL PRIMARY KEY,
"gmt_created" NUMBER(20) NULL ,
"node_group" NVARCHAR2(64) NULL ,
"identity" NVARCHAR2(64) NULL ,
"submit_success_num" NUMBER(20) NULL,
"submit_failed_num" NUMBER(11) NULL,
"fail_store_num" NUMBER(2... |
DROP TABLE IF EXISTS replicated_truncate1;
DROP TABLE IF EXISTS replicated_truncate2;
CREATE TABLE replicated_truncate1 (d Date, k UInt64, i32 Int32) ENGINE=ReplicatedMergeTree('/clickhouse/tables/{database}/test_00623/truncate', 'r1', d, k, 8192);
CREATE TABLE replicated_truncate2 (d Date, k UInt64, i32 Int32) ENGINE... |
BEGIN;
SET ROLE TO postgres;
ALTER TABLE tbl_project
ADD COLUMN dependent_ticket_trigger_state enum_ticket_state
NOT NULL DEFAULT 'released';
COMMIT;
|
<reponame>Priya098098/appsmith
UPDATE users
SET status = 'APPROVED'
WHERE id = '{{ usersTable.selectedRow.id }}'; -- usersTable is an example table widget from where the id is being read. Replace it with your own Table widget or a static value. Read more at http://bit.ly/postgres-widget-docs
|
INSERT INTO ofVersion (name, version) VALUES ('fastpath', 0);
CREATE TABLE fpWorkgroup(
workgroupID INTEGER NOT NULL,
jid VARCHAR(255) NOT NULL,
displayName VARCHAR(50),
description VARCHAR(255) ,
chatserver VARCHAR(255) ,
status INTEGER NOT NULL,
modes INTEGER NOT NULL,
creationDate V... |
CREATE TABLE test_tablesample (dist int, id int, name text) WITH (fillfactor=10) DISTRIBUTED BY (dist); -- force smaller pages so we don't have to load too much data to get multiple pages
-- Changed the column length in order to match the expected results based on relation's blocksz
INSERT INTO test_tablesample SELECT... |
-- Table: users_private
\set ON_ERROR_STOP 1
DROP TABLE IF EXISTS users_private;
CREATE TABLE users_private (
login character varying(255) NOT NULL,
name text,
email text
);
ALTER TABLE ONLY users_private ADD CONSTRAINT users_private_pkey PRIMARY KEY (login);
COPY users_private FROM 'USERS_PRIVATE_FILE' WITH (... |
create index cvm_transactions_txdata_block ON cvm_transactions_txdata (block, idx);
drop index cvm_transactions_txdata_hash ON cvm_transactions_txdata;
alter table cvm_transactions_txdata DROP PRIMARY KEY, ADD PRIMARY KEY(hash);
|
-- @testpoint: opengaussๅ
ณ้ฎๅญLocal้ไฟ็)๏ผไฝไธบ็ดขๅผๅ,้จๅๆต่ฏ็นๅ็ๆฅ้
--ๅ็ฝฎๆกไปถ๏ผๅๅปบไธไธช่กจ
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--ๅ
ณ้ฎๅญไธๅธฆๅผๅท-ๆๅ
drop index if exists Local;
create index Local on explain_test(id);
drop index Local;
--ๅ
ณ้ฎๅญๅธฆๅๅผๅท-ๆๅ
drop index if exists "Local";
create index "Local" o... |
<filename>database/mobifuel (1).sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 09, 2020 at 07:27 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.1.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET ti... |
<filename>src/inttest/resources/sql/prepMapData.sql
DELETE FROM ladder_map;
DELETE FROM map_version;
DELETE FROM map;
INSERT INTO map (id, display_name, map_type, battle_type, author) VALUES
(1, 'SCMP_001', 'FFA', 'skirmish', 1),
(2, 'SCMP_002', 'FFA', 'skirmish', 1);
INSERT INTO map_version (id, description, max... |
<gh_stars>0
TRUNCATE TABLE estadisticas.fc_003;
INSERT INTO estadisticas.fc_003(id_provincia,periodo,id_linea_cuidado,cantidad,monto)
(
SELECT *
FROM dblink('dbname=sirge3 host=172.16.58.3 user=postgres password=<PASSWORD>','
SELECT
p.id_provincia
, extract (year from fecha_prestacion) :: text || lpad ... |
<filename>schema.sql
-- Drops the db if it exists currently --
DROP DATABASE IF EXISTS employee_db;
-- Creates the database --
CREATE DATABASE employee_db;
-- Makes it so all of the following code will affect db --
USE employee_db;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT,
department VARCHAR(... |
<reponame>AngusMonroe/ClearSettlementSystem
CREATE DATABASE `css` /*!40100 DEFAULT CHARACTER SET utf8 */;
CREATE TABLE `recharge` (
`requestID` varchar(50) NOT NULL,
`userID` varchar(50) NOT NULL,
`requestTime` datetime NOT NULL,
`amount` float NOT NULL,
`method` tinyint(4) NOT NULL,
PRIMARY KEY (`requestID... |
--
-- pse sp data retrieval functions
--
DROP FUNCTION IF EXISTS alsep_sp(time0 timestamp, npts int);
DROP FUNCTION IF EXISTS alsep_sp(time0 timestamp, time9 timestamp, npts int);
DROP FUNCTION IF EXISTS alsep_sp_query(time0 timestamp, time2 timestamp, dtframe int, ncarray int);
DROP TYPE IF EXISTS alsep_sp_type;
-... |
CREATE TABLE `videos` (
`id` CHAR(36) NOT NULL,
`type` VARCHAR(32) NOT NULL,
`title` VARCHAR(255) NOT NULL,
`url` VARCHAR(255) NOT NULL,
`course_id` CHAR(36) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `students` (
`id` CHAR(36) NOT NULL,
... |
<gh_stars>1-10
SELECT name
FROM employee
WHERE id=1 or id = 2;
|
CREATE TABLE `payback` ( `id` BIGINT NOT NULL AUTO_INCREMENT , `total` DECIMAL(12,2) NOT NULL , `userid` BIGINT NOT NULL , `ref_by` BIGINT NOT NULL , `ref_get` DECIMAL(12,2) NOT NULL , `datetime` BIGINT NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;
CREATE TABLE `shop` ( `id` BIGINT NOT NULL AUTO_INCREMENT , `name`... |
SELECT nonpr.nonprofits_id, nonpr.name as charity, sim.similarity
FROM giving.nonprofits_similarity_by_tweets as sim, giving.nonprofits as nonpr, giving.nonprofits as nonpr2
WHERE nonpr2.nonprofits_id = XXXXX and sim.twitter_name1 = nonpr2.twitter_name and sim.twitter_name2 = nonpr.twitter_name
UNION
SELECT nonpr.n... |
<reponame>luisespino/database-queries
-- 1. Show tables
SELECT tablename
FROM pg_catalog.pg_tables
WHERE schemaname != 'pg_catalog'
AND schemaname != 'information_schema';
-- 2. Count tuples of tables
SELECT COUNT(*)
FROM country;
SELECT COUNT(*)
FROM countrylanguage;
SELECT COUNT(*)
FROM ... |
-- 2021-10-14T14:41:40.641Z
-- URL zum Konzept
INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsFormatExcelFile,IsNotifyUserAfterExecution,IsOneInstanceOn... |
<reponame>bono-cms/Forum<filename>Storage/MySQL/schema.sql<gh_stars>0
DROP TABLE IF EXISTS `bono_module_forum_category`;
CREATE TABLE `bono_module_forum_category` (
`id` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Category ID',
`name` varchar(255) NOT NULL COMMENT 'Category name',
`order` INT NOT NUL... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table ingrediente (
id bigint not null,
nombre varchar(255),
descripcion varchar(255),
tipo v... |
<reponame>softwaregroup-bg/ut-rule
ALTER PROCEDURE [rule].[rule.edit]
@condition [rule].conditionTT READONLY,
@conditionActor [rule].conditionActorTT READONLY,
@conditionItem [rule].conditionItemTT READONLY,
@conditionProperty [rule].conditionPropertyTT READONLY,
@limit [rule].limitTT READONLY,
... |
<gh_stars>1-10
UPSERT INTO BICING_DIM_STATION
VALUES (300, 2.17690900, 41.4315930, 47, '<NAME>', 'Porta (<NAME>)', '08016', 'Carrer de Maladeta 1', 20915.43, 168181, 8.041);
UPSERT INTO BICING_DIM_STATION
VALUES (301, 2.16964400, 41.4370530, 61, '<NAME>', 'La Guineueta, Barcelona', '08042', '<NAME> 8', 20915.43, 168181... |
<reponame>towhidulmannanuae/frapid
๏ปฟDROP FUNCTION IF EXISTS core.check_parent_office_trigger() CASCADE;
CREATE FUNCTION core.check_parent_office_trigger()
RETURNS TRIGGER
AS
$$
BEGIN
IF(NEW.office_id = NEW.parent_office_id) THEN
RAISE EXCEPTION 'Same office cannot be a parent office';
END IF;
RETURN NEW;
END
$$
... |
<filename>db/migrations/sqlite/000082_add_blockchainevent_protocolid_index.down.sql
DROP INDEX blockchainevents_protocolid;
|
517,9,0
539,10,0
575,40,0
638,428,0
475,231,0
699,195,0
2505,583,0
750,43,0
927,370,0
5055,4,0
491,321,0
511,621,0
536,190,0
523,10,0
556,100,0
565,190,0
549,18,0
486,370,0
5060,12,0
499,1,0
525,310,0
584,139,0
560,7,0
520,4,0
5140,10,0
5150,8,0
601,1,0
611,375,0
5223,1,0
754,100,0
786,481,0
846,10,0
478,4,0
548,29,0
5... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Mรกy chแปง: 127.0.0.1
-- Thแปi gian ฤรฃ tแบกo: Th2 14, 2020 lรบc 04:22 AM
-- Phiรชn bแบฃn mรกy phแปฅc vแปฅ: 10.4.11-MariaDB
-- Phiรชn bแบฃn PHP: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!... |
๏ปฟCREATE TABLE [dbo].[Files]
AS FILETABLE WITH (FileTable_Directory = 'docs')
|
<filename>init_database.sql
/* Run the script to intialize diary database
Usage
-----
$ mysql -u youruser -p < setup.sql
*/
CREATE DATABASE IF NOT EXISTS diarydatabase;
USE diarydatabase;
CREATE TABLE diary (
id INT UNSIGNED AUTO_INCREMENT,
date DATE NOT NULL,
content LONGTEXT NOT NULL,
PRIMARY KEY... |
/************************
* <NAME> *
************************/
# 01) Implementar el HR Oracle Demo Schema, sin la parte de EMPLOYEES, JOBS y JOB_HISTORY
# HINT: Usar autoincremental
# 02) Insertar datos en las distintas tablas (OPCIONAL: integridad referencial)
# 03) Realizar los listados entrecruzados de todos los... |
<gh_stars>0
USE openhousescheduler
CREATE TABLE schedule
(
ID INTEGER NOT NULL AUTO_INCREMENT,
Time DATETIME NOT NULL,
Quantity INTEGER NOT NULL,
Name VARCHAR(255) NOT NULL,
MailAddress VARCHAR(255) NOT NULL,
PhoneNumber VARCHAR(255) NOT NULL,
TimeStamp DATETIME NOT NULL,
PRIMARY KEY (I... |
<gh_stars>1-10
DELIMITER //
DROP FUNCTION IF EXISTS `slugify` //
DELIMITER ;
DELIMITER //
CREATE FUNCTION `slugify` (dirty_string VARCHAR(255))
RETURNS VARCHAR(255) CHARSET latin1
DETERMINISTIC
BEGIN
DECLARE x, y , z INT;
DECLARE temp_string, new_string VARCHAR(25... |
<filename>tests/big_text_select_group_agg.sql<gh_stars>1-10
/*
pgbench script to test large text operations
Example usage:
pgbench -c 20 -j 4 -T 60 -P 15 -n \
-D scale=100 \
-f tests/big_text_select_group_agg.sql \
bench_test
*/
\set id1 random(1, :scale * 10000)
\set... |
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgs... |
-- table.test
--
-- execsql {CREATE TABLE Big(xyz foo)}
CREATE TABLE Big(xyz foo) |
<gh_stars>10-100
-- file:privileges.sql ln:144 expect:true
CREATE OPERATOR <<< (procedure = leak, leftarg = integer, rightarg = integer,
restrict = scalarltsel)
|
-- file:alter_table.sql ln:1313 expect:true
create table tab1 (a int, b text)
|
CREATE TABLE `discod_vpn_allowed` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `client_id` (`client_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 |
<reponame>Tovli/MadeiraToolbox<filename>Utility Scripts/SQLDump_File_Examine.sql
/*
Read contents of a SQLDump file's txt file
=============================================
Author: <NAME> | https://www.madeiradata.com
Date: 2020-12-08
*/
SET NOCOUNT, ARITHABORT, XACT_ABORT ON;
DECLARE @FilePath NVARCHAR(4000), @CMD NVA... |
<filename>sql/mtp-cms.sql
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2017-02-24 10:09:55
-- ๆๅกๅจ็ๆฌ๏ผ 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE... |
<filename>velociti-jpa/src/main/resources/initial_data.sql
insert into velocity_template (id, template_definition, last_modified_date) values ('sample', 'Hello ${name} from JPA!', now()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.