sql stringlengths 6 1.05M |
|---|
<filename>handlers.sql
drop type DbLogHandler;
drop type OutputLogHandler;
drop type BaseLogHandler;
create or replace type BaseLogHandler as object (
/**
* Base Handler
* Write all messages to output without formatting and cut each to 255 characters
*/
lvl number(2),
with_ctx number,
constructor functio... |
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 8.0.18 - MySQL Community Server - GPL
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 10.3.0.5771
-- --------------------------------------------------------
/... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.3.4
-- Dumped by pg_dump version 9.3.4
-- Started on 2014-09-21 03:19:26 ART
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_messag... |
INSERT INTO `agencies` VALUES (1, 'CMI', 'Conautic Maritime,Inc.', '+632 528 0409', 'Mr. <NAME>', 'Suite 312/313 Penthouse,Ermita Center Bldg.#1350 Roxas Blvd., Ermita, Manila, Philippines', 1, NULL, NULL);
INSERT INTO `agencies` VALUES (2, 'OCM', 'Oceanwide Crew Manila,Inc.', NULL, 'Linds Boughton', NULL, 0, NULL, NU... |
ALTER TABLE `#__convertforms` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `#__convertforms` CHANGE `name` `name` VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `#__convertforms` CHANGE `params` `params` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_un... |
<filename>content-resources/src/main/resources/flyway/oskari/V1_41_0__update_mapfull_template.sql
UPDATE portti_bundle SET startup='{
"bundlename" : "mapfull"
"metadata" : {
"Import-Bundle" : {
"core-base" : {
"bundlePath" : "/Oskari/packages/framework/bundle/"
},... |
<filename>开发版dev/Vue.NetCore/DB/pgsql/pgsql(含基础数据).sql
/*
Navicat Premium Data Transfer
Source Server : pgsql
Source Server Type : PostgreSQL
Source Server Version : 100013
Source Host : 172.16.31.10:5432
Source Catalog : netcoredev
Source Schema : public
Target Server Type... |
SELECT
USER_NAME() AS WhoAmI
, CAST(SERVERPROPERTY('machinename') AS sysname) + COALESCE('\' + CAST(SERVERPROPERTY('Instancename') AS nvarchar(80)), '') AS ServerInstanceName
, DB_NAME(DB_ID()) AS databaseName
, fn.entity_name
, fn.subentity_name
, fn.permission_name
FROM
sys.fn_my_permissions(NULL, '... |
<filename>User_Defined_Function/udf_ConvertRangesInIntegerList.sql
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINES.ROUTINE_NAME='ConvertRangesInIntegerList'
AND ROUTINES.ROUTINE_TYPE='function')
DROP FUNCTION dbo.ConvertRangesInIntegerList
go
CREATE FUNCTION ConvertRangesInIntegerList
(
... |
create table node_info
(
name varchar(36) not null,
unschedulable boolean not null,
out_of_disk boolean not null,
memory_pressure boolean not null,
disk_pressure boolean not null,
pid_pressure boolean not null,
ready boolean not null,
network_unavailable boolean not null,
cpu_capacity bigint not null,... |
<gh_stars>0
CREATE TABLE items (
id serial primary key NOT NULL,
name varchar NOT NULL,
price numeric(21,2) NOT NULL
);
|
DROP DATABASE IF EXISTS ponto;
CREATE DATABASE ponto;
USE ponto;
-- TABELA usuarios
DROP TABLE IF EXISTS usuarios;
CREATE TABLE usuarios (
tag VARCHAR(10) NOT NULL,
nome VARCHAR(64) NOT NULL,
foto VARCHAR(256) NOT NULL,
PRIMARY KEY (tag)
);
-- TABELA registros
DROP TABLE IF EXISTS registros;
CREATE TABLE registro... |
<reponame>hjarrell/uf-vivo-vagrant
# this is what i got from the slow_querys_log when I ran "select ?s ?p ?0 {where ?s ?p ?o.}"
# in the VIVO sparql query admin interface
#R_1.lex AS V_1_lex, R_1.datatype AS V_1_datatype, R_1.lang AS V_1_lang, R_1.type AS V_1_type,
#R_2.lex AS V_2_lex, R_2.datatype AS V_2_datatype, ... |
select i.FileSize, i.PixelWidth, i.PixelHeight, i.BitsPerPixel, i.Orientaion, i.DPIWidth, i.DPIHeight, i.ColorMode, i.HasAlpha, i.Duration, i.VideoCodec, i.FrameRate, i.AudioCodec, i.AudioSampleSize, i.AudioSampleRate, i.JPEG, i.ExifIFD0, i.ExifSubIFD, i.AppleMakernote, i.GPS, i.ExifThumbnail, i.ICCProfile, i.Huffman, ... |
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50553
Source Host : localhost:3306
Source Schema : 5study
Target Server Type : MySQL
Target Server Version : 50553
File Encoding : 65001
Date: 21/04/2019 19:33:41
*... |
select period, max(time) as dt, min(time) as mindt from sannotations_shared group by period order by dt desc;
|
CREATE TABLE [dbo].[Entries] (
[ID] INT IDENTITY (1, 1) NOT NULL,
[RecordID] INT NOT NULL,
[FundTypeID] INT NULL,
[ProjectID] INT NULL,
[FinanceAccountID] INT NULL,
[Comment] VARCHAR (256) NULL
);
|
TRUNCATE TABLE [Reference].[Providers]
GO
INSERT INTO [Reference].[Providers] (
[Ukprn],
[IlrFilename],
[IlrSubmissionDateTime]
)
SELECT
[p].[UKPRN] AS [Ukprn],
[fd].[Filename],
[fd].[SubmittedTime]
FROM ${ILR_Deds.FQ}.[Valid].[LearningProvider] p
JOIN ${ILR_Deds.FQ}.[dbo].[FileDetails] fd
... |
-- Create a database
CREATE DATABASE `gaia` DEFAULT CHARACTER SET = `utf8mb4`;
|
alter table held drop column expiration;
alter table held add column expiration timestamp;
alter table router_command_history drop column date;
alter table router_command_history add column date timestamp;
alter table version drop column updated;
alter table version add column updated timestamp;
alter table schedul... |
<filename>database/20210430.01 - Create Table - openCollectors.sql
/****** Object: Table [dbo].[openCollectors] Script Date: 30/04/2021 11:46:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 2021-04-30
-- Update date:... |
-- file:alter_generic.sql ln:389 expect:true
ALTER OPERATOR FAMILY alt_opf16 USING gist ADD FUNCTION 1 btint42cmp(int4, int2)
|
SELECT COUNT(subj_id) AS result FROM subject WHERE subj_id IN (
SELECT subj_id FROM exam_marks WHERE student_id IN (
SELECT student_id FROM (
SELECT student_id, COUNT(subj_id)
FROM exam_marks
GROUP BY student_id
HAVING COUNT(subj_id) > 20
)
)
) |
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5534470_sys_gh5602_Cashbook_Doctype_And_Rules.sql
-- 2019-10-15T14:21:10.699Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE C_DocType SET DocBaseType='CMB',Updated=TO_TIMESTAMP('2019-... |
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/45-de.metas.ordercandidate/5530790_sys_gh5469_OLCand_window_PresetDateShipped.sql
-- 2019-09-16T13:29:00.571Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD... |
CREATE TABLE `tl_user` (
`useImprovedTheme` char(1) NOT NULL default '',
`useImprovedThemeContextMenu` char(1) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
UPDATE salary
SET sex = CHAR ( ASCII(sex) ^ ASCII( 'm' ) ^ ASCII( 'f' ) );
|
create table "BOOK_TO_SHOW_SCORES"
(
"HFDID" int,
"EVENTDATE" datetime,
"EVENTTYPE" varchar,
"_ETL_FILENAME" varchar,
"_SF_INSERTEDDATETIME" datetime
);
|
<filename>macros/jinja_helpers/pretty_log_format.sql<gh_stars>0
{% macro pretty_log_format(message) %}
{{ return(adapter.dispatch('pretty_log_format', 'dbt_utils_justos')(message)) }}
{% endmacro %}
{% macro default__pretty_log_format(message) %}
{{ return( dbt_utils_justos.pretty_time() ~ ' + ' ~ message) }}
... |
<filename>Documentation/Database/MySQL/Changes/030 Room type.sql
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you ... |
{base},
Source as (
SELECT distinct REPLACE(SOURCE_CODE, '.', '') AS SOURCE_CODE, 1 as TARGET_CONCEPT_ID, TARGET_DOMAIN_ID, SOURCE_VALID_START_DATE, SOURCE_VALID_END_DATE
FROM Source_to_Source
WHERE SOURCE_VOCABULARY_ID = 'JNJ_DEATH'
)
select distinct Source.*
from Source |
<gh_stars>1-10
INSERT INTO student_data.subject_details (subject_id, subject, class_number, teacher_id)
VALUES (1, 'Kannada', 10, 1);
INSERT INTO student_data.subject_details (subject_id, subject, class_number, teacher_id)
VALUES (2, 'English', 10, 1);
INSERT INTO student_data.subject_details (subject_id, subject, clas... |
<reponame>NobiGo/coral
select `table_catalog`, `table_schema`, `table_name`, `column_name`, `data_type`, `is_nullable`, `column_default`, `comment`
from `system`.`information_schema`.`columns`
where `table_schema` <> 'jdbc'
order by `table_catalog`, `table_schema`, `table_name`, `ordinal_position` |
ALTER TABLE `network` CHANGE `ip_upper` `ip_upper` BIGINT( 64 ) UNSIGNED;
ALTER TABLE `network` CHANGE `ip_lower` `ip_lower` BIGINT( 64 ) UNSIGNED;
|
<filename>PROYECTO-REPASO/virtualmarket.sql
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 12-05-2020 a las 18:19:03
-- Versión del servidor: 10.4.8-MariaDB
-- Versión de PHP: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
S... |
CREATE TABLE History
(
Id INT IDENTITY PRIMARY KEY,
IDbuilding INT NOT NULL,
Operation NVARCHAR(200) NOT NULL,
CreateAt DATETIME NOT NULL DEFAULT GETDATE(),
); |
<reponame>PabloSzx/next.js-typescript-gqless_rust-rocket-diesel-juniper
-- Your SQL goes here
CREATE TABLE posts (
id SERIAL PRIMARY KEY,
title VARCHAR NOT NULL,
body TEXT NOT NULL,
published BOOLEAN NOT NULL DEFAULT 'f'
);
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email VARCHAR(50)... |
<reponame>OnroerendErfgoed/kvd
CREATE OR REPLACE FUNCTION FD_S_tw(x float, y float) RETURNS float AS $$
SELECT float8larger(0, $1 + $2 - 1);
$$LANGUAGE sql IMMUTABLE;
CREATE OR REPLACE FUNCTION FD_S_iw(x float, y float) RETURNS float AS $$
SELECT float8smaller(1, 1 - $1 + $2);
$$ LANGUAGE sql IMMUTABLE;
CREATE OR R... |
REM exitwhen.sql
REM Chapter 3, Oracle9i PL/SQL Programming by <NAME>
REM This block illustrates the EXIT WHEN clause.
DECLARE
v_Counter BINARY_INTEGER := 1;
BEGIN
LOOP
-- Insert a row into temp_table with the current value of the
-- loop counter.
INSERT INTO temp_table
VALUES (v_Counter, 'Loop i... |
<reponame>qua-bla/carnivora<filename>schemas/domain_reseller/functions.d/srv_registered.sql
---
name: srv_registered
description: Serves details for registered domains
templates:
- backend.backend
returns: TABLE
returns_columns:
-
name: domain
type: dns.t_hostname
-
name: registrant
type: varchar
-
name... |
SET client_min_messages TO DEBUG;
BEGIN;
ALTER TABLE files DROP COLUMN f_size;
ROLLBACK;
|
<filename>mysql-dumps/0.8.6/tanks_all_ru.sql
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... |
-- file:create_misc.sql ln:36 expect:true
INSERT INTO equipment_r (name, hobby) VALUES ('hightops', 'basketball')
|
<gh_stars>10-100
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2018 at 06:36 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@... |
-- test: simple projection
SELECT 1;
/* result:
{"1": 1}
*/
-- test: complex expression
SELECT 1 + 1 * 2 / 4;
/* result:
{"1 + 1 * 2 / 4": 1}
*/
-- test: with spaces
SELECT 1 + 1 * 2 / 4;
/* result:
{"1 + 1 * 2 / 4": 1}
*/
-- test: escaping, double quotes
SELECT '"A"';
/* result:
{`"\\"A... |
USE [perpetuumsa]
GO
-----------REVERT ERP CHANGES----------
PRINT N'REVERT ERP TO PERP 3.8.3';
DECLARE @definitionID int;
DECLARE @aggvalueID int;
DECLARE @aggfieldID int;
---------KINETIC-ERP----------
PRINT N'def_standard_kinetic_kers';
SET @definitionID = (SELECT TOP 1 definition from entitydefaults WHERE [de... |
--
-- DDL: make the description column bigger
--
-- 07.10.2016 07:20
-- URL zum Konzept
INSERT INTO t_alter_column values('ad_process','Description','VARCHAR(2000)',null,'NULL')
;
COMMIT;
-- 07.10.2016 07:20
-- URL zum Konzept
UPDATE AD_Column SET AD_Reference_ID=14, FieldLength=2000,Updated=TO_TIMESTAMP('2016-10... |
<reponame>dineshrajapakshe/scg_mv<filename>db/scg_mv.sql
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 10, 2020 at 02:21 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START T... |
<reponame>gabrielmdsantos/LMSBD
INSERT INTO USUARIO --Aqui esta inserindo os alunos
(LOGIN, SENHA)
VALUES
('GILSON.ALMEIDA', 'G1501375'),
('SEBASTIAO.RODRIGUES', 'S1602440'),
('VALDIR.CASTRO', 'V1602396'),
('LUIZ.MELO', 'L1701777'),
('FRANCISCO.JESUS', 'F1602405'),
('NELSON.MOREIRA', 'N1602128'),
('RAIMUNDO.MORA... |
<gh_stars>0
----------------------------------------------------------------
-- [async_tasks] Table
--
CREATE OR REPLACE FUNCTION Insertasync_tasks (
v_action_type INT,
v_result INT,
v_status INT,
v_user_id UUID,
v_vdsm_task_id UUID,
v_task_id UUID,
v_step_id UUID,
v_command_id UUID,
... |
INSERT INTO LINKS_TO_BE_PROCESSED (LINK) VALUES ( 'https://sina.cn' ); |
INSERT INTO SELECT_UPDATE_TEST_DATETIME_TYPES VALUES(1, CAST('2007-05-08 12:35:29.1234567 +12:15' AS date), CAST('2007-05-08 12:35:29.1234567 +12:15' AS datetimeoffset),
CAST('2007-05-08 12:35:29.123' AS datetime), CAST('2007-05-08 12:35:29.1234567 +12:15' AS datetime2(7)), CAST('2007-05-08 12:35:29.123' AS smalldateti... |
CREATE TABLE [edfi].[StudentEducationOrganizationAssociationStudentIdentificationCode] (
[OES_Litho] BIGINT NULL,
[SAID] VARCHAR (8) NULL,
[AssigningOrganizationIdentificationCode] NVARCHAR (60) NULL,
[EducationOrganizationId] ... |
CREATE DATABASE niordkc CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'niordkc'@'localhost' IDENTIFIED BY 'niordkc';
GRANT ALL PRIVILEGES ON *.* TO 'niordkc'@'localhost' WITH GRANT OPTION;
CREATE USER 'niordkc'@'%' IDENTIFIED BY 'niordkc';
GRANT ALL PRIVILEGES ON *.* TO 'niordkc'@'%' WITH GRANT OPTION;
FLUS... |
<reponame>jestevez/portfolio-trusts-funds<gh_stars>1-10
-- DROP PROCEDURE GPSQLWEB.procUpdateApoderad
CREATE PROCEDURE GPSQLWEB.procUpdateApoderad
(
IN P_ROWID BIGINT,
IN P_NUMAPO INTEGER,
IN P_NOMAPO varchar(50),
IN P_ECAPO varchar(10),
IN P_PROAPO varchar(50),
IN P_POBAPO varchar(50),
IN P_CEDAPO varc... |
<reponame>jensim/sourcegraph<filename>migrations/frontend/1528395752_extend_worker_state_enums_with_failed.down.sql
BEGIN;
-- Drop dependent views
DROP VIEW lsif_dumps_with_repository_name;
DROP VIEW lsif_indexes_with_repository_name;
DROP VIEW lsif_uploads_with_repository_name;
DROP VIEW lsif_dumps;
DROP INDEX lsif_u... |
<gh_stars>1-10
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
CREATE USER orbvct with encrypted password '<PASSWORD>';
CREATE DATABASE orbvct;
CREATE USER authresthydra with encrypted password '<PASSWORD>';
CREATE DATABASE authresthydra;
CREATE USER rpadapterhyd... |
<reponame>NickHerrig/go-futher<gh_stars>1-10
ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_runtime_check;
ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_year_check;
ALTER TABLE movies DROP CONSTRAINT IF EXISTS genres_length_check;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: mariadb
-- Generation Time: Jul 19, 2020 at 09:29 AM
-- Server version: 10.3.18-MariaDB-1:10.3.18+maria~bionic
-- PHP Version: 7.2.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_... |
<reponame>thenexxuz/phpBMS
ALTER TABLE clients CHANGE homephone homephone varchar(32);
ALTER TABLE clients CHANGE workphone workphone varchar(32);
ALTER TABLE clients CHANGE otherphone otherphone varchar(32);
ALTER TABLE clients CHANGE mobilephone mobilephone varchar(32);
ALTER TABLE clients CHANGE fax fax varchar(32);... |
<gh_stars>1-10
--Test insert on super class
create class t1 (name varchar(20), age integer);
create class sub_t1 as subclass of t1(gender char(1));
insert into t1 values('Jerry', 25);
insert into t1 values('Tom', 26);
insert into t1 values('Kitty', 27);
insert into t1 values('Cat', 23);
select * from t1 order by 1;
... |
WITH v AS(
SELECT (SELECT code FROM foods WHERE code = {food_code}) AS food_code,
(SELECT id FROM locales WHERE id = {locale_id}) AS locale_id
)
SELECT v.food_code, v.locale_id, associated_foods.id, associated_foods.locale_id AS af_locale_id, associated_food_code, associated_category_code, text, link_as_mai... |
<reponame>jithinppl/onthego
-- MySQL dump 10.13 Distrib 8.0.18, for macos10.14 (x86_64)
--
-- Host: onthegodev.cejfldd25qcf.us-west-2.rds.amazonaws.com Database: dbo
-- ------------------------------------------------------
-- Server version 5.7.22-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ... |
INSERT INTO blog_user (id,email, last_name, name, password, role_id)
VALUES (1,'aaa', 'smigunov', 'ilya', '1234', 1),
(2,'aaa', 'sviderenko', 'ilya', '12345678', 2),
(3,'aaa', 'lysenko', '<PASSWORD>', 'password', 3)
|
<filename>db_blog.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 06, 2018 at 11:03 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.1.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zo... |
<filename>java/scanr-backend/common/src/main/resources/fr/gouv/recherche/scanr/crawl_store/create_table_crawl_data.cql
CREATE TABLE IF NOT EXISTS crawl_data (
headers map<text, text>,
content text,
http_status int,
title text,
domain text,
charset text,
crawl_date timestamp,
crawl_id uui... |
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: fblaquiz
-- ------------------------------------------------------
-- Server version 8.0.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS... |
<gh_stars>0
-- Add UUID extension
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Create Project namespace
CREATE SCHEMA kuve;
-- Set timezone
-- For more information, please visit:
-- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
SET TIMEZONE="Asia/Seoul";
-- Create users table
CREATE TABLE kuve.user ... |
<gh_stars>0
UPDATE oskari_maplayer SET attributes = attributes::jsonb-'forceProxy' |
<reponame>lgcarrier/AFW
SET DEFINE OFF;
ALTER TABLE AFW_11_PRODT ADD (
CONSTRAINT AFW_11_PRODT_PK
PRIMARY KEY
(SEQNC)
ENABLE VALIDATE)
/
|
-- phpMyAdmin SQL Dump
-- version 2.11.11.3
-- http://www.phpmyadmin.net
--
-- Host: 192.168.127.12
-- Generation Time: Aug 04, 2017 at 09:58 AM
-- Server version: 5.5.43
-- PHP Version: 5.1.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_C... |
SELECT * FROM piwik_log_visit WHERE idsite = 3; |
create procedure [schema_version].[add_audit_event]
@proc_id int = @@procid
, @message nvarchar(2048)
as
begin
set nocount on;
declare @proc_name sysname;
set @proc_name = object_name(@proc_id);
print ' ->' + @proc_name + '-> ' + @message
if (xact_state()) <> -1
begin
insert in... |
INSERT INTO `{PREFIX}pages` (`title`, `alias`, `content`, `permission`, `params`, `created`, `modified`, `menu`, `icon_class`, `weight`, `url`, `uri`, `description`, `keywords`, `custom`, `fragment`, `layout`, `levels`, `provides`, `view_count`, `type`, `search`, `theme_id`, `core_content_count`) VALUES
('Credit Hom... |
<gh_stars>1-10
USE Diablo
--14. Games from 2011 and 2012 year
SELECT TOP (50) [Name], FORMAT([Start], 'yyy-MM-dd') AS [Start]
FROM Games
WHERE YEAR([Start]) BETWEEN 2011 AND 2012
ORDER BY [Start], [Name]
--15. User Email Providers
SELECT
Username
,SUBSTRING(Email, CHARINDEX('@', Email) + 1, LEN(Email)) A... |
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5627530_sys_gh12598_AD_RelationType_C_Order_C_CallOrderSummary.sql
-- 2022-02-24T11:17:14.586Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,... |
<reponame>lupengyu0226/www.zhikunet.org<gh_stars>0
DROP TABLE IF EXISTS `shuyang_weixin_article`; |
create table usuario (
id int(11) not null auto_increment,
nombre varchar(100) not null,
correo text not null,
clave varchar(45) not null,
rol varchar(100) not null,
primary key (id)
);
create table cita (
id int(11) not null auto_increment,
idUsuario int(11) not null,
fecha datetime not null,
hora int(11) n... |
SELECT D.Name AS Departmentname,
ISNULL(
CONVERT(
VARCHAR, AVG(DATEDIFF(DAY, R.Opendate, R.Closedate))
), 'no info'
) AS AverageTime
FROM Departments AS D
JOIN Categories AS C ON C.DepartmentId = D.Id
LEFT JOIN Reports AS R ON R.CategoryId = C.Id
GROUP BY D.Name
ORDER ... |
-- 数据库初始化脚本
-- select version();
-- +-----------+
-- | version() |
-- +-----------+
-- | 5.6.26 |
-- +-----------+
-- 创建数据库
CREATE DATABASE seckill;
-- 使用数据库
use seckill;
-- 创建秒杀库存表
CREATE TABLE seckill(
`seckill_id` bigint NOT NULL AUTO_INCREMENT COMMENT '商品库存id',
`name` varchar(120) NOT NULL COMMENT '商品名称',
`inven... |
set client_min_messages to warning;
create extension if not exists pgtap;
reset client_min_messages;
begin;
select plan(2);
select has_function(
'ggircs_portal', 'get_carbon_tax_data',
'Function get_carbon_tax_data should exist'
);
select * from ggircs_portal.get_carbon_tax_data() limit 1;
select isnt(
(selec... |
<reponame>phdata/streamliner<filename>src/test/resources/results/schemaScriptCommand/test14SourceDestinationDifferentTableName/scripts/DEPARTMENT/drop-snowpipe.sql
DROP PIPE IF EXISTS SANDBOX_POC1.EMPLOYEES.DEPARTMENT_pipe; |
<gh_stars>1-10
INSERT INTO `viewproperty` (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`list`,`attributes`,`required`,`label`,`quickHelp`,`propOrder`,`maxLength`,`size`,`modified`) VALUES ('*.importDefinition.allowExtremeDates','en','lava','crms',NULL,'importDefini... |
CREATE TABLE `his_task_used_time` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '序号',
`match_rate` int DEFAULT NULL COMMENT '高优业务标签',
`is_nine_trs` int DEFAULT NULL COMMENT '是否属于9种业务类型 0否 1是',
`is_corr_nod` int DEFAULT NULL COMMENT '该任务是否与该作业员处理过的一致 1是 0否',
`amount` float DEFAULT NULL COMMENT '业务金额等级... |
<reponame>Raju-Challagundla/ITCS-8160-051-Group-18<filename>sql/CampusEatsDump_20211130.sql<gh_stars>0
CREATE DATABASE IF NOT EXISTS `CampusEats_Fall_2021` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `CampusEats_Fall_2021`;
-- MySQL dump 10.13 Distrib 8... |
--
-- Truncate table before insert `participant`
--
TRUNCATE TABLE `participant`;
--
-- Dumping data for table `participant`
--
INSERT INTO `participant` (`participationid`, `personid`, `eventid`, `name_recorded`, `rank`, `role`, `date`, `sdate`, `edate`, `comment`, `contributor`, `update_dt`) VALUES
(1, 539, 313, '... |
<gh_stars>0
CREATE OR REPLACE TYPE T_ARR_ORGANISATIONS AS ARRAY(512);
CREATE TABLE OFFENDER
(
FIRST_NAME VARCHAR2(35) NOT NULL ,
OFFENDER_ID INTEGER NOT NULL ,
CRN CHAR(7) NOT NULL ,
SECOND_NAME VARCHAR2(35) NULL ,
PNC_NUMBER CHAR(13) NULL ,
CRO_NUMBER ... |
<filename>SQLStorage/functions/debtorFullSearchQueryBuilderCheckParams.sql
CREATE FUNCTION `debtorFullSearchQueryBuilderCheckParams` (
in_DBID VARCHAR(500),
in_DBTitle VARCHAR(500),
in_DBComm VARCHAR(500),
in_DBName VARCHAR(500),
in_DBAdd1 VARCHAR(500),
in_DBAdd2 VARCHAR(500),
in_DBCity VARCHAR(50... |
<reponame>CityofToronto/bdit_move_etl
CREATE SCHEMA IF NOT EXISTS location_search;
CREATE MATERIALIZED VIEW IF NOT EXISTS location_search.centreline AS
SELECT * FROM location_search_new.centreline;
CREATE UNIQUE INDEX IF NOT EXISTS ls_centreline_centreline ON location_search.centreline ("centrelineType", "centrelin... |
drop table if exists fuzz;
create unlogged table fuzz (
id serial not null,
bool bool,
int2 int2,
int4 int4,
int8 int8,
text text,
float4 real,
float8 double precision,
uuid uuid,
bool_array bool[],
int2_array int2[],
int4_array int4[],
int8_array int8[],
text_array text[],
float4_array ... |
<reponame>trangle143/webnuochoa
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th10 23, 2019 lúc 02:48 AM
-- Phiên bản máy phục vụ: 10.1.39-MariaDB
-- Phiên bản PHP: 7.3.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION... |
USE [haccDB]
GO
/****** Object: User [WebInterfaceUser] Script Date: 11/17/2020 8:31:39 PM ******/
CREATE USER [WebInterfaceUser] FOR LOGIN [WebInterfaceUser] WITH DEFAULT_SCHEMA=[dbo]
GO
/****** Object: Table [dbo].[AppointmentTbl] Script Date: 11/17/2020 8:31:40 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDEN... |
<gh_stars>1-10
SELECT id_formacio,
nom,
IFNULL(nom_curt, nom) AS nom_curt,
EXISTS(
SELECT *
FROM assajos_formacions
WHERE id_assaig = ?
AND id_formacio = f.id_formacio
) AS convocada
FROM formacions f;
|
--ARITHMETIC OPERATORS
--SELECT 11+22 AS SUM;
--SELECT 11-22 AS SUBTRACTION;
--SELECT 11*22 AS MULTIPLICATION;
--SELECT 11/2 AS DIVISION;
--SELECT 11%2 AS MODULUS;
--CONDITIONAL OPERATORS
--=, != OR <>, >, <, >=, <=, !<, !>
--CREATE TABLE MARKSHEET(M1 FLOAT, M2 FLOAT, M3 FLOAT, M4 FLOAT);
--GO
--INSERT INTO MARKSH... |
-- analyze4.test
--
-- db eval {EXPLAIN QUERY PLAN SELECT * FROM t1 WHERE a=5 AND b IS NULL}
EXPLAIN QUERY PLAN SELECT * FROM t1 WHERE a=5 AND b IS NULL |
SELECT
CP_LAST_NAME AS LastName,
CP_FIRST_NAME AS FirstName,
CP_PK AS EmployeeId,
CP_POSITION AS Title,
CP_PHONE1 AS OfficePhone,
CP_EMAIL1 AS Email,
(CASE WHEN CP_STATUS = 'ACTIVE' THEN NULL ELSE CP_AUD_TIME END) AS EndDate,
CP_MIDDLE_NAME AS middleName,
CP_UNITFK AS Unit,
CP_SUPERVISOR AS Supervisor,
CP_CELL_PHONE AS... |
delete
from servicioPrestado
where id = :id |
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/common/uxb-service/src/main/java/tpl/sql/MetaKnowpoint.sql
## [供应商]
#macro($vQuery(subjectCodes, phaseCodes, key, status))
SELECT t.* from meta_knowpoint t where 1=1
#if(subjectCodes)
AND t.subject_code in (:subjectCodes)
#end
#if(phaseCodes)
... |
-- The rationale for this script can be found here: https://github.com/cloudscribe/Announcements/issues/7
-- This script can migrate cloudscribe kvp from
-- <PackageReference Include="cloudscribe.Kvp.Storage.EFCore.pgsql" Version="3.0.1" />
-- to <PackageReference Include="cloudscribe.Kvp.Storage.EFCore.PostgreSql" Ve... |
<reponame>Mephostopilis/mall
CREATE TABLE `ums_user` (
`user_id` int(11) NOT NULL,
`app_id` bigint(20) unsigned NULL DEFAULT NULL ,
`username` varchar(64) NULL DEFAULT NULL,
`nick_name` varchar(128) NULL DEFAULT NULL,
`phone` varchar(11) NULL DEFAULT NULL,
`role_id` int(11) NULL DEFAULT NULL,
`s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.