sql stringlengths 6 1.05M |
|---|
<filename>apgdiff/src/main/resources/cz/startnet/utils/pgdiff/loader/QUERY_FUNCTIONS_VERSION_9_6.sql
SELECT -- common part (functions/procedures/aggregates)
p.oid,
p.proparallel,
-- for aggregates
combinefn.proname AS combinefunc,
combinefn_n.nspname AS combinefunc_nsp,
... |
<gh_stars>0
alter table bolster add column image_src varchar(120);
alter table wheelset add column image_src varchar(120);
alter table side_frame add column image_src varchar(120);
alter table carriage add column im1 varchar(120);
alter table carriage add column im2 varchar(120); |
<reponame>taritom/bn-api<filename>db/migrations/00000000000048_make_venue_fields_not_null/up.sql
INSERT INTO regions(id, name)
VALUES ('00000000-0000-0000-0000-000000000000', 'Other');
UPDATE venueS
SET state = COALESCE(state, 'Unknown'),
region_id = COALESCE(reGion_id, '00000000-0000-0000-0000-00000000000... |
DO $$
DECLARE test_school_id uuid;
BEGIN
SELECT school.id INTO test_school_id FROM school WHERE name = 'Monkey Test School';
DELETE FROM class WHERE school_id = test_school_id;
DELETE FROM student WHERE school_id = test_school_id;
DELETE FROM login WHERE id IN (SELECT id FROM teacher WHERE teacher.school_id =... |
<gh_stars>0
CREATE OR REPLACE FUNCTION weekdow(days integer)
RETURNS text AS
$BODY$
BEGIN
IF days=0 THEN
RETURN '星期日';
ELSIF days=1 THEN
RETURN '星期一';
ELSIF days=2 THEN
RETURN '星期二';
ELSIF days=3 THEN
RETURN '星期三';
ELSIF days=4 THEN
RETURN '星期四';
ELSIF days=5 THEN
RETURN '星期五';
E... |
<reponame>tommy-diez/IT202-450
SELECT * FROM Products ORDER BY price ASC
|
<reponame>bcnActivaRepositorio/basesDades
CREATE USER 'testUser'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL PRIVILEGES ON USAirlineFlights.* TO 'testUser'@'localhost';
/* Refrescar privilegis */
FLUSH PRIVILEGES; |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 24, 2018 at 01:55 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE... |
-- examples on constraints in create table statement
alter session set current_schema = hron;
begin
drop_table_if_exists('constrained');
drop_table_if_exists('other_constrained');
end;
/
create table constrained (
pk integer primary key,
a integer,
b integer not null,
c integer unique,
d inte... |
<reponame>semihtok/TSQL-Extensions
-- DEFINING VARIABLES FOR LOOP
-- DECLARE @EXAMPLE_VARIABLE AS INT
DECLARE EXAMPLE_CURSOR_NAME CURSOR
FOR
-- HERE DEFINING QUERY FOR LOOP
OPEN EXAMPLE_CURSOR_NAME
FETCH NEXT FROM EXAMPLE_CURSOR_NAME INTO -- @EXAMPLE_VARIABLE
... |
--Students--
INSERT INTO student VALUES('D1000000A', 1);
INSERT INTO student VALUES('D2000000A', 2);
INSERT INTO student VALUES('D3000000A', 3);
INSERT INTO student VALUES('D4000000A', 4);
INSERT INTO student VALUES('D1000001A', 1);
INSERT INTO student VALUES('D2000001A', 2);
INSERT INTO student VALUES('D3000001A', 3);... |
<reponame>getwasim/egov-smartcity-suites-test<filename>egov/egov-wtms/src/main/resources/db/migration/main/V20170918120557__wcms_add_edit_demand_action.sql
Insert into EG_ACTION (ID,NAME,URL,QUERYPARAMS,PARENTMODULE,ORDERNUMBER,DISPLAYNAME,ENABLED,CONTEXTROOT,VERSION,CREATEDBY,CREATEDDATE,LASTMODIFIEDBY,LASTMODIFIEDDAT... |
INSERT INTO alimentos(nome, porcao, calorias, cod_categoria) VALUES('Blanquete de peru', '1 fatia fina (10 g)', 13, 3);
INSERT INTO alimentos(nome, porcao, calorias, cod_categoria) VALUES('Chester assado', '1 pedaço médio (60 g)', 98, 3);
INSERT INTO alimentos(nome, porcao, calorias, cod_categoria) VALUES('Estrogonofe ... |
<filename>db_migration_scripts/deploydata/FinalMigrationScript.sql
CREATE DATABASE IF NOT EXISTS `squizz_app` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `squizz_app`;
-- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64)
--
-- Host: localhost Datab... |
<gh_stars>10-100
-- file:hash_index.sql ln:185 expect:true
CREATE TEMP TABLE hash_temp_heap (x int, y int)
|
-- file:numeric_big.sql ln:73 expect:true
INSERT INTO num_exp_sub VALUES (0,9,'-54863480.346850270055080227562232820847428130202716038409416473504408608435701824373010454686700592793799034800247434526203963456374015052207863899306008830870126159933439765564724985525353178265546146966847329139555447536387264387058584816... |
<filename>[Database] SQL Problem/[SQL] Not Boring Movies.sql
# Write your MySQL query statement below
SELECT id, movie, description, rating
FROM cinema
WHERE MOD(id, 2) = 1 AND description != "boring "
ORDER BY rating DESC;
|
<reponame>sadupally/Dev
-- *********************************************************************
-- $URL: https://source.sakaiproject.org/contrib/etudes/melete/tags/2.9.1/components/src/sql/mysql/melete24_upgrade.sql $
-- $Id: melete24_upgrade.sql 56413 2008-12-19 22:20:19Z <EMAIL> $
-- ********************************... |
<filename>Sql/Schema/Stored Procedures/Articles/Articles_GetList.sql
IF EXISTS (SELECT * FROM sys.objects WHERE type = 'P' AND name = 'Articles_GetList')
DROP PROCEDURE [dbo].[Articles_GetList]
GO
CREATE PROCEDURE [dbo].[Articles_GetList]
@subjectIds nvarchar(MAX) = '',
@search nvarchar(MAX) = '',
@feedId int = 0,... |
<reponame>rimig/sql-parser
create index if not exists idx1 on table1 (geo_lat_lon(c1))
|
<filename>db/deltas.sql
alter table serie add "updated" text not null DEFAULT "";
|
<gh_stars>1-10
/****** Object: View [dbo].[V_Dataset_Archive_Path] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[V_Dataset_Archive_Path]
AS
SELECT DA.AS_Dataset_ID AS Dataset_ID,
AP.AP_network_share_path AS Archive_Path,
DA.AS_instrument_data_purged AS Instrument_... |
-- This user should be created by our create database and users script, not using flyway
--CREATE USER osgp_core_db_api_user PASSWORD '<PASSWORD>' NOSUPERUSER;
GRANT SELECT ON public.device TO osgp_core_db_api_user; |
select count(*) from nulls1 where ts_5 >= 490665600000
50
|
autocommit off;
delete from all accommodations;
rollback;
|
CREATE DATABASE IF NOT EXISTS fuzzy;
use fuzzy;
CREATE TABLE IF NOT EXISTS `usuarios`
(
`id` INT(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(64) NOT NULL ,
`senha` varchar(512) NOT NULL,
`foto` MEDIUMBLOB NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=latin1 ;
CREATE TABLE IF NOT ... |
<filename>db/users/passFromId.sql
SELECT pass FROM `users` WHERE users.id = :id;
|
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 07, 2016 at 12:41 PM
-- Server version: 10.1.10-MariaDB
-- PHP Version: 5.6.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 04, 2019 at 07:11 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
--------------------------------------------------------- START -------------------------------------------------------------------
DELETE FROM eg_roleaction where actionid IN (select id from eg_action where parentmodule = (select id from eg_module where name = 'Asset Category') and url like '%.action');
DELETE FROM eg... |
<reponame>rendiputra/aplikasi-penggajian-VB
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 29 Apr 2020 pada 13.38
-- Versi server: 10.4.6-MariaDB
-- Versi PHP: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET ti... |
SELECT DISTINCT ON (bar)
2.3 AS monkey, NULL, B'101', 1, 2::INT, b.goo::TEXT[], 'aaa', CURRENT_DATABASE(), "CURRENT_USER"(), u.*,count(distinct f1)
FROM
UNNEST(ARRAY ['a','b','c','d','e','f']) WITH ORDINALITY u
LEFT JOIN b
ON b.id = u.b
RIGHT JOIN (SELECT a + b AS sum FR... |
CREATE TABLE `hTemplateVariables` (
`hTemplateId`
int(11)
NOT NULL
default '0',
`hTemplateVariable`
varchar(255)
default NULL,
`hTemplateValue`
text
NOT NULL,
KEY `hTemplateId` (
`hTemplateId`
),
KEY `hTemplateId_hTemplateVaria... |
DROP TABLE IF EXISTS public.person;
CREATE TABLE public.person(id SERIAL PRIMARY KEY,first_name character varying(255) COLLATE pg_catalog."default",last_name character varying(255) COLLATE pg_catalog."default") TABLESPACE pg_default;
ALTER TABLE public.person OWNER to postgres;
INSERT INTO public.person (first_name,las... |
<reponame>ebunt/pulse
with sum_invoice_items as (
select
customer_id,
invoice_id,
line_id as subscription_id,
plan_id,
plan_interval,
sum(i.quantity) as quantity
from {{ref('invoice_items')}} as i
where proration = 'no'
and billing_scheme = 'tiered'
group by
customer_id,
invoice_id,
line_id,
plan_i... |
<reponame>mpreacher23/W12SMU-MySql<filename>ETseeds.sql
USE employeeTrackerDB;
/* Insert 3 Rows into your new table */
INSERT INTO Department
(name)
VALUES
("Sales"),
("Engineering"),
("Finance"),
("Legal");
INSERT INTO Role
(title, salary, department_id)
VALUES
("Sales Representative", 80... |
<reponame>GianfrancoCusmano/envelope
CREATE DATABASE IF NOT EXISTS nav;
-- Kafka offset table;
DROP TABLE IF EXISTS nav.nav_offsets;
CREATE TABLE nav.nav_offsets (
`group_id` STRING,
`topic` STRING,
`partition` INT,
`offset` BIGINT,
PRIMARY KEY (`group_id`, `topic`, `partition`)
)
STORED AS KUDU
;
-- Kudu ... |
<filename>Banco de Dados/DDL_Criação_MedicalGroup.sql
CREATE DATABASE SPMEDICAL_GROUP
USE SPMEDICAL_GROUP
CREATE TABLE TIPO_USUARIOS(
ID_TIPO_USUARIO INT PRIMARY KEY IDENTITY
,TIPO_USUARIO VARCHAR(200) NOT NULL
);
CREATE TABLE USUARIOS(
ID_USUARIO INT IDENTITY PRIMARY KEY
,ID_TIPO_USUARIO INT FOREIGN KEY REFEREN... |
<filename>news.sql (2)/news_table_dailynews_url_education.sql
-- --------------------------------------------------------
--
-- Table structure for table `dailynews_url_education`
--
CREATE TABLE `dailynews_url_education` (
`url` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for t... |
<gh_stars>10-100
/* Copyright (c) 2006-2012 Regents of the University of Minnesota.
For licensing terms, see the file LICENSE. */
/* This script updates the route table to include geofeature related columns */
BEGIN TRANSACTION;
SET CONSTRAINTS ALL DEFERRED;
/** Route table updates **/
CREATE TABLE route_type (
... |
<reponame>riddopic/chef-server
-- Deploy base
BEGIN;
CREATE TYPE auth_permission AS ENUM ('update', 'read', 'grant', 'delete', 'create');
-- Used only for permission function (be nice if we could union this with 'any' and
-- the above, but didn't see a way to do that in the PG docs):
CREATE TYPE auth_any_permission A... |
alter table "public"."direction" drop constraint "direction_user_id_type_key";
|
INSERT INTO NOTIFICATION_STATUS
(
TARGET_ID
, TYPE
, USER_ID
, STATUS
, INSERT_USER
, INSERT_DATETIME
, UPDATE_USER
, UPDATE_DATETIME
, DELETE_FLAG
) VALUES (
?
, ?
, ?
, ?
, ?
, ?
, ?
, ?
, ?
);
|
<filename>components/data/data-services/org.wso2.micro.integrator.dataservices.core/src/test/resources/sql/H2StoredFuncs.sql
CREATE ALIAS getAverageCreditLimit FOR "org.wso2.micro.integrator.dataservices.core.test.sql.h2.H2TestUtils.getAverageCreditLimit";
CREATE ALIAS getCustomerPhoneNumber FOR "org.wso2.micro.integr... |
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for operation_record
-- ----------------------------
DROP TABLE IF EXISTS `operation_record`;
CREATE TABLE `operation_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`operator` varchar(255) DEFAULT NULL COMMENT '操作人',
`type` VA... |
-- @testpoint: pg_total_relation_size(regclass)函数的异常校验,合理报错
create table test (a int)
with(orientation = column)
partition by range (a)
(
partition test_p1 values less than (88),
partition test_p2 values less than (99)
);
select pg_total_relation_size('test'::regclass,'test'::regclass,'test'::regclass... |
-- Deploy steps:message_topic to pg
-- requires: appschema
BEGIN;
ALTER TABLE message ADD COLUMN topic text;
COMMIT;
|
<reponame>thluiz/sam-apinode
CREATE TABLE [dbo].[card_commentary] (
[id] INT IDENTITY (1, 1) NOT NULL,
[card_id] INT NOT NULL,
[commentary] NVARCHAR (MAX) NULL,
[created_on] DATETIME DEFAULT (getUTCdate()) NOT NULL,
[responsible_id] INT ... |
<reponame>nabeelkhan/Oracle-DBA-Life<gh_stars>0
REM FILE NAME: hratio2.sql
REM LOCATION: Database Tuning\Buffer Cache Reports
REM FUNCTION: CREATE PLOT OF PERIOD HIT RATIO FOR 1 DAY
REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1
REM PLATFORM: non-specific
REM REQUIRES: hit_ratios, hratio.sql
REM
REM T... |
<reponame>mtdcr/e2voc
BEGIN TRANSACTION;
CREATE TABLE T_Data (event_id INTEGER NOT NULL, title_id INTEGER, short_description_id INTEGER, extended_description_id INTEGER, iso_639_language_code TEXT NOT NULL, changed DATETIME NOT NULL DEFAULT current_timestamp);
INSERT INTO "T_Data" VALUES(1,1,1,NULL,'de','2000-02-02 00:... |
SET @table_name = "sars_cov_2_genes";
CALL create_basic_table(@table_name);
CALL upsert_basic_table(@table_name, "E (orf4)", 1);
CALL upsert_basic_table(@table_name, "M (orf5)", 2);
CALL upsert_basic_table(@table_name, "N (orf9)", 3);
CALL upsert_basic_table(@table_name, "spike (orf2)", 4);
CALL upsert_basic_table(@ta... |
<filename>leetcode/problem 620/Oracle/solution 1.sql
-- Oracle에서 나머지 연산은 MOD()로 구해야 함! (%는 안 됨!)
-- 그러나 몫은 그냥 / 하면 나옴!
SELECT *
FROM cinema
WHERE
MOD(id ,2) = 1
AND description != 'boring'
ORDER BY rating DESC;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 20, 2017 at 12:09 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.5.38
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
<filename>Database Basic/Exam Preparation/Databases MSSQL Server Exam - 03 January 2018/Databases MSSQL Server Exam - 03 January 2018/14. Debt Hunter .sql
SELECT Names, Emails, Bills, TownsName
FROM (
SELECT ROW_NUMBER() OVER (PARTITION BY t.Name ORDER BY o.Bill DESC) AS OrderByHighestBill,
CONCAT(c.FirstName, ' ... |
<gh_stars>1-10
CREATE INDEX bus_events_tenant_account_record_id ON bus_events(search_key2, search_key1);
CREATE INDEX idx_get_ready ON notifications(effective_date, created_date);
CREATE TABLE notifications ( record_id serial unique, class_name varchar(256) NOT NULL, event_json varchar(2048) NOT NULL, user_token varcha... |
<gh_stars>1-10
CREATE TABLE person (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
age INT NOT NULL
); |
<filename>backend/prisma/migrations/20210212012415_dlt_profile/migration.sql
/*
Warnings:
- You are about to drop the `Profile` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "Profile" DROP CONSTRAINT "Profile_userId_fkey";
-- DropTable
DROP TABLE "Profi... |
-- start query 13 in stream 0 using template query13.tpl
select avg(ss_quantity)
,avg(ss_ext_sales_price)
,avg(ss_ext_wholesale_cost)
,sum(ss_ext_wholesale_cost)
from store_sales
,store
,customer_demographics
,household_demographics
,customer_address
,date_dim
where s_sto... |
-- misc1.test
--
-- execsql {
-- INSERT OR IGNORE INTO t6 VALUES(0.0,'x');
-- SELECT * FROM t6;
-- }
INSERT OR IGNORE INTO t6 VALUES(0.0,'x');
SELECT * FROM t6; |
<filename>database/seq/schema.sql
DROP TABLE ORGANISMS CASCADE CONSTRAINTS ;
CREATE TABLE ORGANISMS (
ID NUMBER NOT NULL,
KINGDOM VARCHAR2 (50),
PHYLUM VARCHAR2 (50),
CLASS VARCHAR2 (50),
ORDER_ VARCHAR2 (50),
FAMILY VARCHAR2 (50),
GENUS VARCHAR2 (50),
SPECIES VARCHA... |
<reponame>diev/DotNet-ORM-Cookbook
CREATE TABLE HR.EmployeeClassification
(
EmployeeClassificationKey INT NOT NULL IDENTITY(1000, 1)
CONSTRAINT PK_EmployeeClassification PRIMARY KEY,
EmployeeClassificationName VARCHAR(30) NOT NULL
CONSTRAINT UX_EmployeeClassification_EmployeeClassificationName
... |
if type_id('dbo.MapTableType') is not null drop type dbo.MapTableType
go
create type dbo.MapTableType as table
(
account_id char(2),
map_id char(8),
budget_id char(2),
regex_pattern varchar(750),
created_at dat... |
<reponame>pborne/VerticaOnMapR<gh_stars>0
drop schema ros cascade;
create schema ros;
create table ros.customer_dimension
( customer_key integer not null primary key,
customer_type varchar(16),
customer_name varchar(256),
customer_gender varchar(8),
tit... |
CREATE TABLE [dbo].[EServiceSections]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[EServiceSectionsId] BIGINT NOT NULL,
[ServiceSection] SMALLINT NOT NULL,
CONSTRAINT [PK_EServiceSectionsId] PRIMARY KEY CLUSTERED ([EServiceSectionsId] ASC),
CONSTRAINT [FK_EServiceSections_TServiceSection] FOREIGN ... |
<reponame>PNNL-Comp-Mass-Spec/DBSchema_DMS
/****** Object: Table [dbo].[T_Sample_Prep_Request] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[T_Sample_Prep_Request](
[ID] [int] IDENTITY(1000,1) NOT NULL,
[Request_Type] [varchar](16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
... |
<filename>openGaussBase/testcase/KEYWORDS/when/Opengauss_Function_Keyword_When_Case0034.sql
-- @testpoint:opengauss关键字when(保留),作为游标名
--前置条件
drop table if exists when_test cascade;
create table when_test(cid int,fid int);
--关键字不带引号-失败
start transaction;
cursor when for select * from when_test order by 1;
close when;
... |
<gh_stars>0
-- @testpoint:输入参数为无效值(合理报错)
drop table if exists acos_test_05;
create table acos_test_05(COL_ACOS double precision);
insert into acos_test_05 VALUES(1.23);
insert into acos_test_05 VALUES(-1.23);
SELECT ACOS(COL_ACOS) AS RESULT FROM acos_test_05 WHERE COL_ACOS=1.23;
SELECT ACOS(COL_ACOS) AS RESULT FROM... |
SELECT DISTINCT c.`customer_id`, CONCAT(c.`first_name`, ' ', c.`last_name`) AS 'full_name', t.`town_name` AS 'home_town'
FROM `customers` AS c
INNER JOIN `towns` AS t
ON c.`home_town_id` = t.`town_id`
INNER JOIN `tickets` AS tc
ON c.`customer_id` = tc.`customer_id`
INNER JOIN `flights` AS f
ON tc.`flight_id` = f.`fligh... |
<reponame>SBD1/grupo4-Zumbi<gh_stars>0
-- TRIGGER para validação de instancia item
-- um item pode estar ou em uma bolsa, ou em um player ou em um quadrado, nunca em 2 ou 3 ao mesmo tempo
CREATE OR REPLACE FUNCTION localizacao_item() RETURNS trigger AS $$
BEGIN
UPDATE instancia_item SET
player = old.... |
SELECT DISTINCT visits.visit_id, visits.time as 'requested_time',
visits.duration as 'requested_duration',
CONVERT(time, carer_visits.PlannedStartDateTime) as 'planned_time',
DATEDIFF(minute, carer_visits.PlannedStartDateTime,carer_visits.PlannedEndDateTime) as 'planned_duration',
CONVERT(time, carer_visits.Che... |
<reponame>LOctavio/SQL-tutorial
SELECT name FROM world
WHERE name LIKE 'Y%'
SELECT name FROM world
WHERE name LIKE '%Y'
SELECT name FROM world
WHERE name LIKE '%x%'
SELECT name FROM world
WHERE name LIKE '%land'
SELECT name FROM world
WHERE name LIKE 'C%ia'
SELECT name FROM world
WHERE name LIKE '%oo%'... |
<reponame>kancil-nakal/pos
-- MySQL dump 10.13 Distrib 5.5.62, for Win64 (AMD64)
--
-- Host: localhost Database: pos_db
-- ------------------------------------------------------
-- Server version 5.5.5-10.4.19-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET... |
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: soap
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R... |
<reponame>SashaRyder/monzomation<filename>api/prisma/migrations/20220124232953_update_auth_table/migration.sql
/*
Warnings:
- You are about to drop the column `type` on the `Auth` table. All the data in the column will be lost.
- You are about to drop the column `value` on the `Auth` table. All the data in the c... |
<gh_stars>0
ALTER TABLE MOTEDELTAKER_ARBEIDSTAKER_VARSEL
ADD COLUMN fritekst TEXT NOT NULL DEFAULT '';
ALTER TABLE TID_STED
ADD COLUMN videolink TEXT NOT NULL DEFAULT '';
|
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 18, 2020 at 01:17 AM
-- Server version: 5.7.31-cll-lve
-- PHP Version: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET ... |
DROP TRIGGER lexeme_trigger ON thoughts;
--;;
DROP FUNCTION insert_thought_lexeme();
|
<filename>projeto01.sql
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 15-Jun-2018 às 16:48
-- Versão do servidor: 10.1.32-MariaDB
-- PHP Version: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+0... |
<gh_stars>1-10
-- MySQL dump 10.15 Distrib 10.1.0-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: lilys
-- ------------------------------------------------------
-- Server version 10.1.0-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@... |
<reponame>ligana/Ensemble-om-SpringBoot<filename>db/db/3table/level/GL_RESERVE_CCY.sql
drop table if exists GL_RESERVE_CCY;
/*==============================================================*/
/* Table: GL_RESERVE_CCY */
/*=========================================================... |
<gh_stars>1-10
DROP TABLE IF EXISTS document_tag;
CREATE TABLE IF NOT EXISTS document_tag
(
id BIGSERIAL PRIMARY KEY,
uuid UUID NOT NULL,
case_type_uuid UUID NOT NULL,
tag TEXT NOT NULL,
sort_order ... |
/* REVISING AGGREGATIONS - AVERAGES */
/*
Query the average population of all cities in CITY where District is California.
select "(" + Convert(Varchar(5),ID) + ",'" + Name + "','" + CountryCode + "','" + District + "'," + Convert(varchar(10),Population) + ")," from City
*/
DECLARE @City Table (ID int, Name Varchar(20... |
<filename>sql/create.sql
CREATE TABLE employee(
employee_id SERIAL PRIMARY KEY ,
login VARCHAR(20) NOT NULL,
password VARCHAR(512)
); |
<gh_stars>0
BEGIN TRANSACTION;
CREATE TABLE Boundary
(
Id INTEGER,
Address TEXT,
Area INTEGER,
Path double,
ImagePath TEXT,
PRIMARY KEY (Id)
);
CREATE TABLE BoundaryLocations
(
BoundaryTableId INTEGER,
Longitude INTEGER,
Latitude double,
PRIMARY KEY (Bounda... |
Insert into USERS (USERNAME,PASSWORD,ENABLED) values ('system','$2a$<PASSWORD>1KgkY3PQI4w9dr2mZPbOZPEnD8PzOz0.dFUe2Tf1NfEPd0KD97u','1');
Insert into USERS (USERNAME,PASSWORD,ENABLED) values ('guest','$<PASSWORD>$oO8aBz6i7w1y///lhrdiju7sjZnJpZC6lsJnVNc/kVe8j7j2o8dzS','1');
Insert into USERS (USERNAME,PASSWORD,ENABLED) v... |
<filename>gpff-sql/procedures/aa2mcli/procUpdateAa2mcli.sql
-- DROP PROCEDURE GPSQLWEB.procUpdateAa2mcli
CREATE PROCEDURE GPSQLWEB.procUpdateAa2mcli
(
IN P_CLIEMP CHAR(2),
IN P_CLIDEL CHAR(2),
IN P_CLICLA NUMERIC(7 , 0),
IN P_CLINIF CHAR(12),
IN P_CLIASO NUMERIC(7 , 0),
IN P_CLIANA DECIMA... |
<reponame>tdilauro/circulation-core<gh_stars>1-10
-- The licensepools.self_hosted field has a default value, but the migration
-- script that added it to old servers didn't set one. Now old servers have
-- an invalid 'null' value in that field.
--
-- (see also 20200702-add-licensepool-self_hosted-field.sql)
ALTER TABLE... |
<filename>CondTools/Ecal/sql/nukedb.sql
DROP TABLE ECALPEDESTALS_M_PE_1;
DROP TABLE ECALPEDESTALS;
DROP TABLE COND__IOV_IOV;
DROP TABLE COND__IOV;
DROP TABLE METADATA;
DROP TABLE POOL_OR_MAPPING_COLUMNS;
DROP TABLE POOL_OR_MAPPING_ELEMENTS;
DROP TABLE POOL_OR_MAPPING_VERSIONS;
DROP TABLE POOL_RSS_DB;
DROP TABLE POOL... |
-- Automatically generated, do not edit.
\unset ON_ERROR_STOP
SET search_path = 'wikidocs';
ALTER TABLE wikidocs_index DROP CONSTRAINT IF EXISTS wikidocs_index_pkey;
|
IF (OBJECT_ID('fn_trimString') IS NOT NULL)
BEGIN
DROP FUNCTION fn_trimString;
END
GO
--======================================== (H I S T O R Y) =======================================================
--> Author Date Resume
--> ----------------------------- ... |
DROP TRIGGER IF EXISTS queues_clear_max_receives_on_insert ON queues;
DROP TRIGGER IF EXISTS queues_clear_max_receives_on_update ON queues;
DROP FUNCTION IF EXISTS clear_max_receives();
DROP TRIGGER IF EXISTS set_updated_at ON queues;
DROP INDEX IF EXISTS messages_queue_visible_since_idx;
DROP INDEX IF EXISTS messag... |
-- @testpoint:opengauss关键字node(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists node;
create schema node;
drop schema node;
--关键字带双引号-成功
drop schema if exists "node";
create schema "node";
drop schema "node";
--关键字带单引号-合理报错
drop schema if exists 'node';
create schema 'node';
--关键字带反引号-合理报错
drop schema if exists `nod... |
USE [SparkServer]
GO
INSERT INTO [dbo].[BlogsTags] ([BlogID], [TagID], [Active] ,[CreateDate])
VALUES (1, 1, 1, GETDATE())
GO
INSERT INTO [dbo].[BlogsTags] ([BlogID], [TagID], [Active] ,[CreateDate])
VALUES (1, 2, 1, GETDATE())
GO
INSERT INTO [dbo].[BlogsTags] ([BlogID], [TagID], [Active] ,[CreateDate])
VALUES (1, 3... |
-- delete c++ object html labs from courses
DELETE FROM courses WHERE id=901134;
DELETE FROM courses WHERE id=901214;
DELETE FROM courses WHERE id=902354;
-- insert c++ object html lab sections
INSERT INTO sections VALUES
(90113300,1,25,"12.00 AM-2.00 PM حد","اسماء عوض علي الجيزاوي","4 تم"),
(90113300,1,26,"2.00 PM-4.... |
<reponame>julixiansheng/ruoyi-juli-4.1.0
/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50724
Source Host : localhost:3306
Source Database : ruoyi-juli-4.1.0
Target Server Type : MYSQL
Target Server Version : 50724
File Encoding : 65001
Date: 2019-... |
/*
-- Query: SELECT * FROM company_db.role
LIMIT 0, 1000
-- Date: 2021-05-17 20:42
*/
INSERT INTO `` (`id`,`title`,`salary`,`department_id`) VALUES (1,'President',350000.00,1);
INSERT INTO `` (`id`,`title`,`salary`,`department_id`) VALUES (2,'CFO',275000.00,1);
INSERT INTO `` (`id`,`title`,`salary`,`department_id`) VA... |
<reponame>KartikKannapur/Data_Structures_and_Algorithms_Python
/*
<NAME> and his friends are at Ollivander's with Ron, finally replacing Charlie's old broken wand.
Hermione decides the best way to choose is by determining the minimum number of gold galleons needed to buy each non-evil wand of high power and age. Write... |
<filename>database/hospital_db.sql
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 24, 2018 at 01:00 PM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_z... |
<reponame>adiian/docker-django-conda-nginx
--
-- PostgreSQL database dump
--
-- bla bla
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 18, 2020 at 05:04 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.