sql stringlengths 6 1.05M |
|---|
<reponame>Zhaojia2019/cubrid-testcases
drop table if exists tb1;
drop table if exists tb1_new;
create table tb1(peopleid int primary key) partition by range(peopleid)(partition old values less than (50),partition middle values less than (100),partition new values less than (200),partition large values less than (1000)... |
<filename>openGaussBase/testcase/TIMECAPSULE/Opengauss_Function_Timecapsule_Case0002.sql<gh_stars>0
-- @testpoint: 逻辑删除和物理删除
--step1: 查询enable_recyclebin默认值; expect:显示默认值off
show enable_recyclebin;
--step2: 修改enable_recyclebin为on; expect:修改成功
alter system set enable_recyclebin to on;
select pg_sleep(2);
show enable_r... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.2
-- Dumped by pg_dump version 11.2
SET TIMEZONE='Asia/Kolkata';
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'SQL_ASCII';
SET standard_conforming_strings = on;
SELECT pg_catalo... |
<reponame>mrbeewer/sinatra_songs<filename>migrations.sql
CREATE DATABASE sinatra_songs;
\c sinatra_songs
CREATE TABLE song (id SERIAL PRIMARY KEY, artist TEXT, title TEXT, release_year INTEGER);
|
<reponame>Eeki/chat-app
CREATE TABLE chat.chat
(
id serial PRIMARY KEY,
picture text NOT NULL,
created_at timestamptz DEFAULT now(),
type text CHECK ( type IN ('PERSONAL', 'GROUP') )
);
|
<reponame>gauthier-scano/pgSQLPlus<gh_stars>0
CREATE FUNCTION @extschema@.create_str_insert_function(objt JSONB, _schema TEXT DEFAULT NULL, _name TEXT DEFAULT NULL)
RETURNS TEXT AS
$$
DECLARE
str TEXT := 'CREATE FUNCTION ';
query TEXT;
arg JSONB;
arg_arr TEXT[] := '{}';
var JSONB;
variabl... |
DROP DATABASE IF EXISTS 'burgers_db';
CREATE DATABASE 'burgers_db';
USE burgers_db;
CREATE TABLE burgers
(
id int NOT NULL AUTO_INCREMENT,
burger_name VARCHAR(200) NOT NULL,
isDevoured BOOLEAN DEFAULT false,
PRIMARY KEY (id)
);
|
REVOKE SELECT ON bloomreader.TimePerMonPNG FROM bloomreaderuser;
DROP VIEW bloomreader.TimePerMonPNG CASCADE;
CREATE VIEW bloomreader.TimePerMonPNG AS
SELECT a.id,
CAST((a.timestamp AT TIME ZONE 'AEST') AS date) AS timedate
FROM (SELECT * FROM bloomreader.application_opened
UNION ALL
SELECT * FROM... |
<reponame>jfeser/castor
INSERT INTO public.partsupp VALUES (18747, 1249, 4925, 698.71, 'y silent dolphins wake above the unusual foxes. finally bold requests cajole. final, ironic orbits haggle slyly above the furi');
INSERT INTO public.partsupp VALUES (18747, 3750, 9039, 179.70, 'ts according to the accounts affix sly... |
CREATE SCHEMA [nav]
AUTHORIZATION [dbo];
GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Пользовательская схема', @level0type = N'SCHEMA', @level0name = N'nav';
|
/*
Database: AdventureWorksDW
View: BI.vDim_Product
*/
SELECT
P.ProductKey as 'Product Key'
, P.Class AS 'Product Class'
, p.Color as 'Product Color'
, p.DaysToManufacture as 'Product Days to Manufacture'
, p.DealerPrice as 'Product Dealer Price'
, cast(p.StartDate as date) as 'Product Start Date'
, cast(p.EndDate as... |
SELECT Name AS Customers
From Customers
LEFT JOIN Orders
ON
Customers.Id = Orders.CustomerId
WHERE Orders.CustomerId IS NULL |
<filename>data-language-api/model/src/main/resources/db/migration/V0023__create_translation_variants_annotations_table.sql<gh_stars>0
CREATE TABLE `translation_variants_annotations`
(
`translation_variant_id` bigint unsigned NOT NULL,
`annotations_id` int UNSIGNED NOT NULL,
CONSTRAINT `translation_variants_... |
<reponame>TAUSBV/cef-data-marketplace<gh_stars>0
CREATE TABLE `product_seller_shares`
(
`id` bigint unsigned auto_increment primary key,
`seller_id` bigint unsigned NULL,
`product_id` bigint unsigned NULL,
`price` double not null,
`total_units` ... |
<gh_stars>1-10
-- DROP FUNCTION utils.concat_artists (csid VARCHAR);
--Concatenates names of artists associated with a collection item in the standard 'lastnam, first middle' format.
CREATE OR REPLACE FUNCTION utils.concat_artists(csid character varying)
RETURNS character varying
LANGUAGE plpgsql
IMMUTABLE STRI... |
<gh_stars>1-10
------
Changes required for moving to Kennerspiel
alter table weblabora_game add stage varchar(255);
alter table weblabora_user add email varchar(255);
alter table weblabora_user add email_validator varchar(255);
alter table weblabora_user add password varchar(255);
alter table weblabora_user add passw... |
insert into language_code (id, code, display_name, code_system_name, code_system) values (1, 'en', 'English', 'Internet Society Language', '2.16.840.1.113883.1.11.11526');
insert into language_code (id, code, display_name, code_system_name, code_system) values (2, 'fr', 'French', 'Internet Society Language', '2.16.840.... |
<gh_stars>1000+
DELETE
FROM user;
INSERT INTO user (id, name)
VALUES (1, 'Jone'),
(2, 'Jack'),
(3, 'Tom'),
(4, 'Sandy'),
(5, 'Billie'); |
<gh_stars>100-1000
SELECT fn_db_add_column('affinity_groups', 'priority', 'BIGINT NOT NULL DEFAULT 10000000');
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 08, 2022 at 12:23 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
-- MODULE MPA005T testreport
-- SQL Test Suite, V6.0, Interactive SQL, mpa005t.sql
-- 59-byte ID
-- TEd Version #
-- AUTHORIZATION SULLIVAN1
SELECT USER FROM HU.ECCO;
-- RERUN if USER value does not match preceding AUTHORIZATION comment
-- date_time print
-- TEST:0457 Transactions serializable - phantom read!
... |
SET search_path=v1;
CREATE TABLE IF NOT EXISTS groups (
"name" TEXT NOT NULL PRIMARY KEY,
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
created_by TEXT NOT NULL DEFAULT 'system',
last_modified_at TIMESTAMP WITH TI... |
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Aug 21, 2016 at 06:27 AM
-- Server version: 5.5.42
-- PHP Version: 7.0.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `erp`
--
-- ---------------------------------... |
SELECT tabella.country
FROM(SELECT primo.country
FROM(SELECT mt.stadium, mt.date, mt.time, mt.home AS country
FROM "Match" as mt
GROUP by mt.stadium, mt.date, mt.time, mt.home
UNION
SELECT mt.stadium, mt.date, mt.time, mt.guest AS country
FROM "Match" as mt
... |
SELECT
E.id AS '_id',
E.location AS 'address.location',
E.address AS 'address.street',
E.zip_code ... |
<reponame>rweikleenget/bom
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 19, 2019 at 01:56 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "... |
INSERT INTO Admins VALUES (1, 'Kushaj', '123456');
INSERT INTO StartIndex VALUES ('CategoryA', 0);
INSERT INTO StartIndex VALUES ('CategoryB', 0);
INSERT INTO StartIndex VALUES ('CategoryC', 0);
|
<filename>data/db/companies_queue_active.sql<gh_stars>1-10
/*
This file will queue up the retrieval of company data for all active
organisations already in the db
*/
SET foreign_key_checks = 0;
START TRANSACTION;
TRUNCATE TABLE `queue`;
TRUNCATE TABLE `companies_house_officer`;
TRUNCATE TABLE `companies_house_comp... |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Base de données : `loup-garou`
--
-- --------------------------------------------------------
--
-- Structure de la table `faction`
--
DROP TABLE IF EXISTS `faction`;
CREATE TABLE IF NOT EXISTS `faction`
... |
create or replace function get_file_lines(fh_in in utl_file.file_type)
return filetext_row_set
pipelined is
out_rec filetext_typ := filetext_typ(null);
buf varchar2(32767);
f_pos varchar2(38);
begin
while true
loop
begin
utl_file.get_line(fh_in, buf, 32767);
f_pos := to_char(utl_file.fgetpos(fh_in));
... |
<reponame>munziru3/Mastering-PHP7
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2015 at 11:52 AM
-- Server version: 5.6.21
-- PHP Version: 5.5.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET... |
IF OBJECT_ID('dbo.Maternity Register', 'V') IS NOT NULL
DROP VIEW [dbo].[Maternity Register]
GO
CREATE VIEW [dbo].[Maternity Register]
AS
SELECT a.Ptn_Pk, b.Id, b.FacilityId, c.IdentifierValue AS [Admission Number], d.VisitDate AS [Date of Admission], a.FirstName, a.MiddleName, a.LastName, a.VillageName, a.... |
<reponame>hemmerling/sql-stanford2013<gh_stars>1-10
/* Q4 Some reviewers didn't provide a date with their rating.
Find the names of all reviewers who have ratings with a NULL value for the date. */
select distinct name from Reviewer, Rating, Movie where Rating.ratingDate is null and Rating.mID = Movie.mID and Rat... |
<filename>mysql.sql
CREATE TABLE IF NOT EXISTS `pa_datos` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(36) NOT NULL DEFAULT '',
`timeJoin` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`grupo` INT(2) UNSIGNED NOT NULL DEFAULT '0',
`god` INT(1) ... |
<reponame>greenvilleassociates/fusionshellplus<gh_stars>1-10
CREATE TABLE /*_*/langlinks_tmp (
-- page_id of the referring page
ll_from int unsigned NOT NULL default 0,
-- Language code of the target
ll_lang varbinary(20) NOT NULL default '',
-- Title of the target, including namespace
ll_title varchar(25... |
<filename>p8e-migration/sql/V70__Add_Auth_Public_Key_to_Affiliate.sql
ALTER TABLE affiliate ADD COLUMN auth_public_key TEXT;
|
BEGIN;
DROP TABLE IF EXISTS bugs;
COMMIT; |
CREATE FUNCTION func387() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE11);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE194);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE250);val:=(SELECT COUNT(*)INTO MYCOUN... |
<gh_stars>1-10
INSERT INTO `migrator_test_2` (`title`) VALUES ('test2'); |
<filename>database/mysql/src/main/resources/com/intel/mtwilson/database/mysql/20120710100000_saml_cache_patch-ta_db-0.5-to-0.5.2.sql
CREATE TABLE `tbl_saml_assertion` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`saml` text,
`expiry_ts` datetime NOT NULL,
`bios_trust` tinyint(1) NOT NUL... |
<filename>sql/_23_apricot_qa/_03_i18n/tr_TR/_09_identifiers/cases/_010_identifiers_show_005.sql<gh_stars>1-10
--+ holdcas on;
set names utf8;
CREATE TABLE Çç_Ğğ_İı_Öö_Şş_Üü (
Çç_Ğğ char(10) NOT NULL default'%你好',
İı_Öö_ VARCHAR(20) default'Ğğ',
_Şş_Üü string UNIQUE
);
CREATE VIEW 视图 as S... |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 15, 2022 at 12:14 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 7.4.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
<reponame>rashmipoddar/node-db3-challenge<filename>queries.sql
-- Multi-Table Query Practice
-- Display the ProductName and CategoryName for all products in the database. Shows 77 records.
SELECT Product.ProductName, Category.CategoryName
FROM Product
JOIN Category ON Product.CategoryId = Category.Id;
-- Display t... |
<reponame>Renan-Saraiva/syspec
declare @o varchar(200); set @o = 'SysPec_c_Aplicacoes';
if object_id(@o, 'V') is not null begin
declare @d nvarchar(250); set @d = 'drop view ' + @o;
execute sp_executesql @d;
end;
go
create view SysPec_c_Aplicacoes with encryption as
select
[Aplicacao].Id [Id],
[Aplicacao].Vacina... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 14, 2016 at 09:30 AM
-- Server version: 5.7.16-0ubuntu0.16.04.1
-- PHP Version: 7.0.8-0ubuntu0.16.04.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101... |
-- phpMyAdmin SQL Dump
-- version 4.4.10
-- http://www.phpmyadmin.net
--
-- Host: localhost:8889
-- Generation Time: Sep 06, 2017 at 12:23 AM
-- Server version: 5.5.42
-- PHP Version: 5.6.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN... |
<filename>Scripts/team_statistics.sql
--------------------------------------------------------
-- File created - Friday-August-09-2019
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table TEAM_STATISTICS
---------------------------------... |
<filename>001camera.sql
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.6.17 : Database - camera
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIG... |
<reponame>elwidi/poslat<filename>dbseed/latihan.sql
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50505
Source Host : localhost:3306
Source Database : latihan
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2018-01... |
<reponame>felixvicent/parksystem
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Tempo de geração: 11/10/2021 às 17:22
-- Versão do servidor: 10.1.32-MariaDB
-- Versão do PHP: 7.0.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET tim... |
<filename>sql/schema/access_log.sql
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema access_log
--... |
<filename>Generator/Generators/Generate_Logins_Clients.sql
CREATE TABLE GENERATOR_LOGINS_CLIENTS
( "LOGIN" VARCHAR2(4000 BYTE)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jun 25, 2020 at 04:43 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_... |
<gh_stars>1-10
-- default schema taken from
-- https://github.com/akka/akka-persistence-jdbc/blob/v3.5.2/src/test/resources/postgres-application-with-hard-delete.conf
DROP TABLE IF EXISTS public.journal;
CREATE TABLE IF NOT EXISTS public.journal (
ordering BIGSERIAL,
... |
<gh_stars>100-1000
DELIMITER $$
CREATE PROCEDURE `Fuel_GetByVehicle`
(
in_vehicle VARCHAR(36)
)
BEGIN
SET @tripDistance = 0;
SELECT
`id`,
`vehicle`,
DATE_FORMAT(`date`, '%Y-%m-%dT%H:%i:%s') AS `date`,
`fuelAmount`,
`totalCost`,
`fuelUnitCost`,
`locat... |
SELECT "SalariesFrance_5"."REG_LIB" AS "REG_LIB" FROM "SalariesFrance_5" GROUP BY "SalariesFrance_5"."REG_LIB" ORDER BY "REG_LIB" ASC ;
|
<filename>SQL Programming/Total sale daywise/sample.sql
select order_date, sum(order_amount) as total_sale
from orders
group by order_date; |
<filename>test/sql/official-suite/where-1.sql
-- original: where.test
-- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test
CREATE TABLE t1(w int, x int, y int);
CREATE TABLE t2(p int, q int, r int, s int)
;INSERT INTO t1 VALUES(sub_w,sub_x,sub_y)
;INSERT INTO t2 SELECT 101-w, x, (SELECT max(y) FROM t1)+1... |
<filename>S4 Utilities/refresh_code.sql
/*
OVERVIEW:
Wrapper around calls to sp_refreshview and sp_refreshmodule - to enable quick/easy 'refresh of ALL code'.
NOTES:
- DOES NOT target DDL triggers.
*/
USE [admindb];
GO
IF OBJECT_ID('dbo.refresh_code','P') IS NOT NULL
DROP PROC dbo.[refresh_code];
GO
CREA... |
-- 2022-02-18T14:53:27.435Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET AD_UI_ElementGroup_ID=548109, SeqNo=30,Updated=TO_TIMESTAMP('2022-02-18 16:53:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=601121
;
|
-- LegalEntityForeignProvinceName must be blank for foreign recipients (i.e., when LegalEntityCountryCode = USA) and for
-- aggregate records (RecordType = 1).
SELECT
row_number,
legal_entity_country_code,
legal_entity_foreign_provi,
record_type,
afa_generated_unique AS "uniqueid_AssistanceTransacti... |
<reponame>shimingxy/mybatis-jpa-extra<gh_stars>1-10
CREATE TABLE STUDENTS
(
STDNO VARCHAR2(100),
STDNAME VARCHAR2(100),
STDGENDER VARCHAR2(100),
STDAGE NUMBER,
STDMAJOR VARCHAR2(100),
STDCLASS VARCHAR2(100),
ID VARCHAR2(100)
);
insert into STUDENTS (STDNO, STDNAME, STDGENDER, STDAGE, S... |
<filename>src/main/resources/db/migration/V1_61__CreatingGlobalPropertyForPatientIdentifierType.sql
-- JSS specific. Do not move to registration omod
-- Horror!! Show!!
-- UPDATE global_property SET property_value = '05a29f94-c0ed-11e2-94be-8c13b969e334' WHERE property='emr.primaryIdentifierType';
-- UPDATE patient_... |
<filename>src/modules/SD2/sql/updates/r2926_scriptdev2.sql
DELETE FROM script_texts WHERE entry BETWEEN -1004002 AND -1004000;
INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES
(-1004000,'Yipe! Help Hogger!',0,1,0,0,'hogger SAY_CALL_HELP'),
(-1004001,'Hogger is eating! Stop him!'... |
INSERT INTO leaderboard (postdate,osname,tester,score,testerid,addressid) VALUES ('LASTMONTH','solaris','Jost Krieger (JOST)','3022','26','4093');
INSERT INTO leaderboard (postdate,osname,tester,score,testerid,addressid) VALUES ('LASTMONTH','linux','Serguei Trouchelle (STRO)','8193','538','1742');
INSERT INTO leaderb... |
<reponame>clouserw/olympia<gh_stars>1-10
UPDATE IGNORE
addons_categories
SET
category_id = 58 -- Message Reaading
WHERE
category_id = 57; -- News Reading
|
<reponame>Zhaojia2019/cubrid-testcases
--TEST: pass exceptional data of timeltz/timestampltz/datetimeltz type to the parameter
--TEST: 1. [error] exceptional argument of date type
select addtime(date'000/000/000', '9:19:29');
select addtime(date'12\30\2009', '9:19:29');
select addtime(date'1999-10=21', '9:19:29');
... |
-- La fonction Count() permet de compter le nomùbre de lignes en correspondance avec nos critères
SELECT Emp.* FROM EMPLOYEE Emp
-- Compter le nombre de ligne dans notre table
SELECT Count(Emp.EMP_ID) AS Nb_Employes
FROM EMPLOYEE Emp
-- Affichage de la table ACCOUNT
SELECT * FROM ACCOUNT
-- Requête permettant de co... |
<reponame>kimtabilon/sfc_eboard<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 07, 2021 at 07:23 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
... |
<filename>generators/app/templates/<%= lowerName %>-services/src/test/resources/data.sql
INSERT INTO users (id, ds_name, ds_lastname, age) VALUES (1, 'Javier', 'Rodriguez', 4); |
CREATE DATABASE IF NOT EXISTS video_catalog;
CREATE DATABASE IF NOT EXISTS video_catalog_test;
|
<gh_stars>0
CREATE TABLE HR_XML (ID INT IDENTITY, Salaries XML)
GO
INSERT HR_XML VALUES(
'<Salaries>
<Marketing>
<Employee ID="1" tier="4">
<Salary>42000</Salary>
</Employee>
<Employee ID="2" tier="1">
<Salary>52000</Salary>
</Employee>
<E... |
<filename>myFuture.sql
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 27, 2018 at 04:58 PM
-- Server version: 10.0.34-MariaDB-0ubuntu0.16.04.1
-- PHP Version: 7.2.7-1+ubuntu16.04.1+deb.sury.org+1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMI... |
ALTER TABLE A DROP CONSTRAINT TC_A
ALTER TABLE B DROP CONSTRAINT TC_B
DROP INDEX IDX_A
DROP TABLE A
DROP TABLE B
DROP TABLE GrandChild
DROP TABLE Child
DROP TABLE Root
|
<filename>trip.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50711
Source Host : localhost:3306
Source Database : trip
Target Server Type : MYSQL
Target Server Version : 50711
File Encoding : 65001
Date: 2020-04-23 00:30:56
*/
SET FOREIG... |
analyse {0}; |
<reponame>paser4se/XCoLab<gh_stars>10-100
CREATE TABLE IF NOT EXISTS user__sso_client_details
(
id VARCHAR(50) PRIMARY KEY,
secret VARCHAR(50),
scope VARCHAR(50),
registeredRedirectUri VARCHAR(191)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
CREATE VIEW vwPaciente_SeleccionarTodos
AS
SELECT *
FROM Pacientes
WHERE
Activo = 1 |
-- intpkey.test
--
-- execsql {
-- INSERT INTO t1(c,b,a) VALUES('row','new',30);
-- SELECT * FROM t1 WHERE rowid>=30;
-- }
INSERT INTO t1(c,b,a) VALUES('row','new',30);
SELECT * FROM t1 WHERE rowid>=30; |
-- fkey2.test
--
-- execsql {
-- DELETE FROM pp WHERE a = 4;
-- SELECT * FROM cc;
-- }
DELETE FROM pp WHERE a = 4;
SELECT * FROM cc; |
<gh_stars>10-100
-- file:create_table.sql ln:223 expect:true
CREATE TABLE array_op_test (
seqno int4,
i int4[],
t text[]
)
|
CREATE TABLE task_checklist_item (
task_checklist_item_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
task_checklist_id uuid NOT NULL REFERENCES task_checklist(task_checklist_id) ON DELETE CASCADE,
created_at timestamptz NOT NULL,
complete boolean NOT NULL DEFAULT false,
name text NOT NULL,
position float ... |
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'ufnGetEntitySpecialtyListByEntityIdent') and xtype in (N'FN', N'IF', N'TF'))
DROP FUNCTION ufnGetEntitySpecialtyListByEntityIdent
GO
/* ufnGetEntitySpecialtyListByEntityIdent
*
* Returns a string of the active specialties concatinated together separated ... |
<gh_stars>0
CREATE TABLE WATERMARK(
WATERMARK_ID DECIMAL(12,0) NOT NULL,
STATUS_CODE VARCHAR(8) NOT NULL,
WATERMARK_TEXT VARCHAR(100) NOT NULL,
WATERMARK_STATUS CHAR(1) NOT NULL,
FONT_SIZE VARCHAR(5),
FONT_COLOUR VARCHAR(50),
UPDATE_TIMESTAMP DATE NOT NULL,
VER_NBR DECIMAL(8,0) NOT NULL,
OBJ_ID VARCHAR(36) NOT... |
-- cleanup of parameter deleted from .info files ages ago
select apm__unregister_parameter(parameter_id) from apm_parameters
where package_key = 'acs-subsite'
and parameter_name in (
'background', 'bgcolor', 'textcolor',
'EmailRandomPasswordWhenForgottenP', 'UseCustomQuestionForPasswordReset',
'R... |
#DROP TABLE if exists users;
CREATE TABLE users (
UserNbr integer unsigned NOT NULL auto_increment,
FullName varchar(255) NOT NULL,
PRIMARY KEY (UserNbr ASC)
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8
COMMENT = 'Users'
;
|
<gh_stars>0
CREATE TABLE IF NOT EXISTS `Peds` (
`Id_Ped` INT NOT NULL AUTO_INCREMENT,
`Nombre` VARCHAR(350) NOT NULL,
`Createat` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`Id_Ped`)
);
INSERT INTO `Peds` (`Nombre`) VALUES
('Quilalí'),
('Ext. Wiwilí'),
('Pantasma'),
('Jala... |
<filename>spring-demo-webapp/src/main/resources/import.sql
INSERT INTO TBL_USERS (id, first_name, last_name, email, date_of_birth) VALUES (1, 'Alex', 'London', '<EMAIL>', '1990-01-01');
INSERT INTO TBL_USERS (id, first_name, last_name, email, date_of_birth) VALUES (2, 'Brian', 'NewYork', '<EMAIL>', '1990-02-02');
INSER... |
<filename>src/main/resources/schema.sql
CREATE TABLE ISSUES (
id uuid default random_uuid() primary key,
issue_id VARCHAR(255),
description VARCHAR(255),
created VARCHAR(255),
priority VARCHAR(255),
updated VARCHAR(255),
assignee VARCHAR(255),
status VARCHAR(255) default 'P'
); |
<gh_stars>1-10
{% macro sum_if(column_name, value_true=1, value_false=0) %}
SUM(CASE WHEN {{ column_name }} THEN {{ value_true }} ELSE {{ value_false }} END)
{% endmacro %} |
CREATE USER 'scalyr_test_user'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL PRIVILEGES ON *.* TO 'scalyr_test_user'@'localhost';
CREATE DATABASE scalyr_test_db; |
select bs.keep keep, bs.keep_until keep_until
from v$backup_set bs
union all
select null keep, null keep_until
from v$backup_piece bp
|
<filename>sql/test_use_day_of_week.sql
-- parent
insert into parent (id, name) values
(1, '<NAME>');
-- profile
insert into profile (id, name, owner_code_parent_id) values
(20, 'Profil Zosi', 1);
-- child
insert into child (id, name, birth_date, code_parent_id, uuid, default_custom_code_profile_id) values
(37, 'Zosia... |
<reponame>arangda/myblog
-- phpMyAdmin SQL Dump
-- version 4.7.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2017-12-28 23:10:15
-- 服务器版本: 5.7.19
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... |
<filename>db_apotik.sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 16 Mei 2017 pada 13.39
-- Versi Server: 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... |
INSERT INTO QUESTION(adult_only, text) VALUES(1, "Have you ever fantasised about anyone in this room ?"); |
CREATE TABLE IF NOT EXISTS `event_subscription` (
`libelle` VARCHAR(80) NOT NULL,
`event_id` INT UNSIGNED NOT NULL,
PRIMARY KEY (`libelle`, `event_id`),
INDEX `idx_event_subscription` (`libelle` ASC),
INDEX `fk_event_subscription_1_idx` (`event_id` ASC),
CONSTRAINT `fk_event_subscription_1`
FOREIGN KEY ... |
<reponame>extra3/recapo.de<filename>install/page.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50616
Source Host : localhost:3306
Source Database : bachelorarbeit
Target Server Type : MYSQL
Target Server Version : 50616
File Encoding : 65001
D... |
DROP DATABASE IF EXISTS mafia_db;
CREATE DATABASE mafia_db;
USE mafia_db;
DROP TABLE IF EXISTS department;
CREATE TABLE department (
id INT AUTO_INCREMENT NOT NULL PRIMARY KEY,
name VARCHAR(30) NOT NULL
);
DROP TABLE IF EXISTS employee_role;
CREATE TABLE employee_role (
id INT AUTO_INCREMENT NOT NULL PRI... |
SELECT AddGeometryColumn ('public','points','jtsk_geometry',5514,'POINT',2);
SELECT AddGeometryColumn ('public','lines','jtsk_geometry',5514,'LINESTRING',2);
SELECT AddGeometryColumn ('public','multilinestrings','jtsk_geometry',5514,'MULTILINESTRING',2);
SELECT AddGeometryColumn ('public','multipolygons','jtsk_geometry... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.