sql stringlengths 6 1.05M |
|---|
<filename>rest/taskana-rest-spring-base/src/main/resources/sql/sample-data/check-history-event-exist.sql
SELECT 1 FROM HISTORY_EVENTS LIMIT 1;
|
create or replace package tq84_test as
-- $Id: tq84_test.pks 15445 2014-05-16 08:12:50Z rene $
end tq84_test;
/
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 27, 2017 at 03:35 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET... |
SELECT 'MORPHOLOGY' AS section;
SELECT 'lemma from morph' AS comment;
SELECT *
FROM morphology
WHERE morph = 'better';
SELECT 'morph from lemma' AS comment;
SELECT *
FROM morphology
WHERE lemma = 'good';
SELECT 'chivy-chevied,chevies,chevying,chivied,chivvied,chivvies,chivvying' AS comment;
SELECT lemma,pos,morph
... |
-- noinspection SqlNoDataSourceInspectionForFile
-- noinspection SqlResolveForFile
-- Instructions:
/*
In your application, there is a section for adults only.
You need to get a list of names and ages of users from the users table, who are 18 years old or older.
users table schema
name
age
NOTE: Your solution sh... |
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 14, 2020 at 04:13 PM
-- Server version: 5.7.29-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 22, 2019 at 09:44 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4... |
<filename>create_tables.sql
/**
SCRIPT PARA A CREACIÓN DA BASE DE DATOS
Opción 2: Loxística
Autor: <NAME> (<EMAIL>)
Grupo: 1.4
*/
drop table pasapor purge;
drop table descarga purge;
drop table viaxe purge;
drop table conten purge;
drop table entrega purge;
drop table lineacompra purge;
drop table compra p... |
version https://git-lfs.github.com/spec/v1
oid sha256:ad1429546105862c2d3e8e13e4a04aa60eb4cff06a645aebdd039a22d0ebdb54
size 21393021
|
<filename>EmployeeApp_Priyal/EmployeePriyal.sql
-- MySQL dump 10.13 Distrib 5.7.30, for Linux (x86_64)
--
-- Host: localhost Database: EmployeePriyal
-- ------------------------------------------------------
-- Server version 5.7.30-0ubuntu0.18.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;... |
<filename>Part3-Data Wrangling/20201610-SQLTraining/WildCards_RegularExpressions.sql
use DSTRAINING
GO
Select * from [P12-ListOfOrders]
/*
The goal is to get only the orderID that have ES in the begining
Using regular expressions (LIKE OPERATOR)
*/
SELECT * FROM [P12-ListOfOrders]
WHERE [ORDER ID] LIKE 'ES%'
... |
<gh_stars>0
${ignoreIfLocal}DO $$
${ignoreIfLocal} BEGIN
${ignoreIfLocal} IF EXISTS
${ignoreIfLocal} ( SELECT 1 from pg_roles where rolname='cloudsqliamuser')
${ignoreIfLocal} THEN
${ignoreIfLocal} GRANT SELECT ON ALL TABLES IN SCHEMA public TO cloudsqliamuser;
${ignoreIfLocal} ... |
<reponame>tushartushar/dbSmellsData
SELECT project_id, version, flow_id, modified_time, encoding_type, json FROM project_flows WHERE project_id=? AND version=?
SELECT COUNT(1) FROM execution_flows
SELECT COUNT(1) FROM project_events
CREATE INDEX executor_connection ON executors(
SELECT output_params FROM execution_jobs... |
<reponame>nicode-io/The_Junior_Way
-- MODULE 5 --
-- 5.1 --
-- Cr�er une proc�dure qui remplace la fonction de r�cup�ration de la date en l�affichant
-- directement � l��cran. L�appel de cette proc�dure permet donc d�un seul coup de
-- r�cup�rer la date et l�heure du syst�me, sans passer par � getDate() � ou
-- � ... |
<filename>demos/guestbook/schema.sql
CREATE TABLE greeting (
id INTEGER PRIMARY KEY AUTOINCREMENT,
created_on TIMESTAMP NOT NULL,
author TEXT,
message TEXT NOT NULL
);
|
-- file:plpgsql.sql ln:328 expect:true
COMMENT ON FUNCTION tg_hub_adjustslots_wrong(bpchar, integer, integer) IS 'function with args'
|
<reponame>Shuttl-Tech/antlr_psql
-- file:float8.sql ln:40 expect:true
SELECT 'Infinity'::float8 + 100.0
|
<reponame>rohankhera/dicom-server
/*************************************************************
The user defined type for AddExtendedQueryTagsInput
*************************************************************/
CREATE TYPE dbo.AddExtendedQueryTagsInputTableType_1 AS TABLE
(
TagPath VARCHAR... |
SELECT obj.name AS FK_NAME,
sch.name AS [schema_name],
tab1.name AS [table],
col1.name AS [column],
tab2.name AS [referenced_table],
col2.name AS [referenced_column],
TY.[name] AS system_data_type, col1.[max_length],col1.[precision], col1.[scale], col1.[is_nullable], col1.[is_ansi_padded]
FROM ... |
CREATE DATABASE IF NOT EXISTS `cmta` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `cmta`;
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
--
-- Host: localhost Database: cmta
-- ------------------------------------------------------
-- Se... |
ALTER TABLE users ADD language_id INT
GO
UPDATE users SET language_id = (SELECT language_id FROM organizations o WHERE o.id = users.organization_id)
GO
/*
DECLARE @role_id INT
DECLARE @user_id INT
DECLARE @id INT
SET @id = 1
DECLARE db_cursor CURSOR FOR
SELECT role_id, user_id
FROM roles_users
... |
<reponame>FINGOWER/Admin<gh_stars>1-10
-- drop tables
DROP TABLE user_config;
DROP TABLE txlog;
DROP TABLE transactions;
DROP TABLE devices;
DROP TABLE pairing_tokens;
DROP TABLE users;
|
BEGIN;
DROP INDEX check_build_events_build_id_event_id;
DROP TABLE check_build_events;
COMMIT;
|
<reponame>tOba1357/ShareSchedule<filename>conf/evolutions/default/1.sql
# --- !Ups
create table tblremarks (
id integer auto_increment not null,
description varchar(255),
date date,
constraint pk_tblremarks primary key (id)
);
create table ... |
CREATE TABLE USER (
id BIGINT GENERATED BY DEFAULT AS IDENTITY,
first_name varchar(50) not null,
last_name varchar(50) not null,
email varchar(255) not null
);
|
# ------------------------------------------------------------------------------
# Aggregate Permissions into a Permission Wildcard format
# ------------------------------------------------------------------------------
SELECT (
CASE
WHEN DOMAIN.name IS NULL THEN '*'
ELSE DOMAIN.name
... |
drop table if exists `t_user`;
drop table if exists `t_group`;
CREATE TABLE `t_group` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`desc` varchar(40) NOT NULL DEFAULT '' COMMENT '描述',
`menus` varchar(255) NOT NULL DEFAULT '' COMMENT '菜单列表',
`auths` varchar(1024) NOT NULL DEFAULT '' COMMENT '权限url列表',
P... |
select * from city where COUNTRYCODE="JPN"; |
<reponame>AjabShahar/Ajab-Shahar-TW<filename>src/main/resources/migrations/0007_CREATE_SPLASH_SCREEN_OPTIONS_TABLE.sql<gh_stars>1-10
--liquibase formatted sql
--changeset PADMA:7
CREATE TABLE splash_screen
(
id serial NOT NULL,
url character varying(300),
image_url character varying(300),
format character vary... |
CREATE LANGUAGE plpgsql;
CREATE SCHEMA "command prompt";
CREATE SCHEMA "123' junk";
CREATE TABLE "command prompt"."public projects"(id integer primary key, name varchar, active bool);
CREATE TABLE "command prompt"."secret projects"(id integer, name varchar, active bool);
CREATE TABLE "123' junk"."root passwords"(id in... |
CREATE TABLE omnify.users (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name varchar(255) NULL,
email varchar(255) NULL,
google_id TEXT NULL,
refresh_token TEXT NULL,
needs_events_refresh BOOL DEFAULT false NULL,
resource_id varchar(255) NULL,
access_token TEXT NULL,
created_at TIMESTAMP NULL,
CONSTR... |
<gh_stars>1-10
--test '+','-' operators by operating between DATE,TIME,TIMESTAMP data type
create class func_02(
a date,
b time,
c timestamp
);
insert into func_02 values ( DATE '08/14/1977', TIME '02:10:00', TIMESTAMP '08/14/1977 5:35:00 pm');
insert into func_02 values ( DATE '08/14/1977', TIME '02:1... |
-- @testpoint:opengauss关键字security(非保留),作为数据库名
--关键字不带引号-成功
drop database if exists security;
create database security;
drop database security;
--关键字带双引号-成功
drop database if exists "security";
create database "security";
drop database "security";
--关键字带单引号-合理报错
drop database if exists 'security';
create database 's... |
<reponame>jhordanjes/flexpeak
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 18-Mar-2019 às 12:24
-- Versão do servidor: 10.1.31-MariaDB
-- PHP Version: 7.2.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone =... |
create index idx_ttm_train_name on train_timetable_master(`train_name`);
create index idx_ttm_train_class on train_timetable_master(`train_class`);
create index idx_ttm_train_name on train_timetable_master(`train_name`);
create index idx_ttm_station on train_timetable_master(`station`);
create index idx_tm_date on tra... |
<filename>tests/FileLoaderTest/Test5.sql
SELECT COUNT(*) AS `items;count` FROM `t1`;
SELECT * FROM `t2` WHERE `a` LIKE '%;%';
|
--
-- Current Database: `car_selling`
--
CREATE DATABASE /*!32312 IF NOT EXISTS */ `car_selling` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_czech_ci */;
USE `car_selling`;
-- -----------------------------------------------------
-- Table `car_selling`.`car`
-- ---------------------------------------------------... |
<filename>sql/world/base/vanilla_gold_values.sql<gh_stars>0
-- These mobs have their min and max gold reversed.
UPDATE `creature_template` SET `mingold`=0, `maxgold`=0 WHERE `entry` IN (16194, 16215, 16216);
UPDATE `creature_template` SET `mingold`=1404186, `maxgold`=11012303 WHERE `entry`=15547;
-- Up... |
with base as (
select *
, case when previous_month is NULL then 1 else 0 end is_acquired
, case
when (DATE_PART('month', start_date::date) - DATE_PART('month', previous_month::date)) = 1
then 1 else 0
end is_retained
, case
when next_month is NULL and end_date < '2020-09-01'
then 1 el... |
<reponame>jgebal/bitmap_set_index
BEGIN EXECUTE IMMEDIATE 'DROP PACKAGE bmap_oper'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
BEGIN EXECUTE IMMEDIATE 'DROP PACKAGE bmap_maint'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
BEGIN EXECUTE IMMEDIATE 'DROP PACKAGE bmap_persist'; EXCEPTION WHEN OTHERS THEN NULL; END;
/
BEGIN EXECUT... |
<gh_stars>1-10
DROP TABLE IF EXISTS user;
DROP TABLE IF EXISTS account;
|
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86)
--
-- Host: localhost Database: mydb
-- ------------------------------------------------------
-- Server version 5.6.23-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40... |
<filename>src/Cms/Resource/incremental/mysql/0025_update_hash_next_incremental.sql
UPDATE `mmi_changelog` SET `md5` = '8ba0078da198986120a39eb09fc08ba5' WHERE `filename` = '0026_default_value_attribute_relation.sql'; |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 30, 2020 at 04:11 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<filename>tests/project/test_list.sql
create or replace function project.test_list() returns void as $$
declare
i int;
_project_owner_id int;
begin
_project_owner_id = users.add('login', 'password', '<PASSWORD>', '<EMAIL>', true);
IF assert.not_null(_project_owner_id) THEN
... |
DROP DATABASE IF EXISTS `h2l_tests`;
CREATE DATABASE `h2l_tests`;
USE `h2l_tests`;
CREATE TABLE `tests` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `name` VARCHAR(256) NOT NULL DEFAULT '<NAME>' , `age` INT UNSIGNED NOT NULL DEFAULT '69' , PRIMARY KEY (`id`)) ENGINE = InnoDB;
|
ALTER TABLE passes ADD COLUMN blocked BOOLEAN; |
CREATE TABLE public.pessoa
(
id bigint NOT NULL DEFAULT nextval('pessoa_id_seq'::regclass),
nome_fantasia character varying(150) COLLATE pg_catalog."default",
sobrenome_razao character varying(150) COLLATE pg_catalog."default",
cpf_cnpj character varying(40) COLLATE pg_catalog."default",
rg_ie chara... |
-- randexpr1.test
--
-- db eval {SELECT (abs(case when +a*t1.e+(abs(t1.e & 11+coalesce((select max(d) from t1 where (not not b<coalesce((select e from t1 where e<>19),17)) and t1.b>13 and d=t1.a and 13 in (d,t1.a,11)),t1.e)*d)/abs(11+t1.a-19))=c or b<>c then t1.e when b<>19 then 17 else b end)/abs(11)) FROM t1 WHERE (... |
-- corrupt3.test
--
-- execsql {
-- PRAGMA auto_vacuum=OFF;
-- PRAGMA page_size=1024;
-- CREATE TABLE t1(x);
-- INSERT INTO t1 VALUES(bigstring);
-- }
PRAGMA auto_vacuum=OFF;
PRAGMA page_size=1024;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(bigstring);
|
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/tables/OSP$BUD_PER_SAL_DET_PRN_TMP.sql
CREATE TABLE OSP$BUD_PER_SAL_DET_PRN_TMP (
SESSION_ID VARCHAR2 (50) NOT NULL,
PERSON_ID VARCHAR2 (9),
PERSON_NAME VARCHAR2 (90),
PROJ_ROLE ... |
<gh_stars>0
ALTER TABLE db_version CHANGE COLUMN required_11852_01_mangos_gossip_menu required_11876_01_mangos_creature_linking_template bit;
ALTER TABLE `creature_linking_template` CHANGE COLUMN `entry` `entry` mediumint(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'creature_template.entry of the slave mob that is linked';... |
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE __diesel_schema_migrations (version VARCHAR(50) PRIMARY KEY NOT NULL,run_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP);
INSERT INTO __diesel_schema_migrations VALUES('20180114171611','2021-03-15 19:48:14');
INSERT INTO __diesel_schema_migrations VALUES('201802... |
/****** Object: Table [dbo].[Users] Script Date: 6/11/2015 9:44:33 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Roles](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](255) NOT NULL,
CreatedBy int not null,
CreatedDateTime datetime2 not null,
[IsDeleted] [bit] NOT NUL... |
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50722
Source Host : localhost:3306
Source Schema : blog
Target Server Type : MySQL
Target Server Version : 50722
File Encoding : 65001
Date: 30/03/2020 11:59... |
select count(*) from j1 where c_boolean not in ( select c_boolean from j7) ;
|
<reponame>gruxic/SQL_basics<filename>5_1time.sql
/*various timestamps*/
SELECT CURRENT_DATE
SHOW TIMEZONE
SELECT NOW()
SELECT TIMEOFDAY()
SELECT CURRENT_TIME |
<gh_stars>1-10
/****** Object: StoredProcedure [dbo].[DoRequestedRunBatchOperation] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE Procedure dbo.DoRequestedRunBatchOperation
/****************************************************
**
** Desc:
** Perform operations on requested run batches
** ... |
/*DRUG --> Condition*/
SELECT DISTINCT
SOURCE_ID,
'DESCENDANT' AS MAPPING_TYPE,
u.CONDITION_CONCEPT_ID AS CONCEPT_ID,
u2.UNIQUE_IDENTIFIER
FROM EVIDENCE.NC_LU_CONCEPT_UNIVERSE u
JOIN VOCABULARY.CONCEPT_ANCESTOR ca
ON u.CONDITION_CONCEPT_ID = ca.ANCESTOR_CONCEPT_ID
JOIN EVIDENCE.CEM_UNIFIED u2
ON u2.CONCE... |
<filename>migrations/controller/1584062803_update_default_domain.up.sql
UPDATE domain SET "assignment" = 'default'
FROM(
SELECT
d.id
FROM
domain as d
FULL JOIN
custom_domain as cd
ON
d.domain = cd.domain
WHERE
cd.id IS NULL
) AS sub
WHERE domain.id = sub.id;
|
<gh_stars>1-10
# --- !Ups
ALTER TABLE user ADD grafana_user_id varchar(20);
# --- !Downs
ALTER TABLE user DROP COLUMN grafana_user_id;
|
<reponame>totemtang/postgresql-iqp<gh_stars>0
set enable_incremental to off;
set tpch_updates to 'supplier,customer,orders,lineitem';
set max_parallel_workers_per_gather to 0;
set work_mem to 1000000;
set enable_nestloop to off;
set enable_indexscan to off;
set enable_mergejoin to off;
set dbt_query to 'q5';
set enabl... |
CREATE TABLE IF NOT EXISTS `user_role` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`role_id` VARCHAR(255) NOT NULL,
`is_default` TINYINT(1) NOT NULL DEFAULT 0,
`parent_id` INT(11) NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `unique_role` (`role_id` ASC),
INDEX `idx_parent_id` (`parent_id` ASC),
CONSTRAINT `fk_p... |
<reponame>mikhan808/rsyntaxtextarea-antlr4-extension<filename>third_party/antlr_grammars_v4/sql/plsql/examples/merge05.sql
-- MERGE INTO with a rowtype variable as "insert values" parameter
MERGE INTO salesfront.SF_FORM_REFERENCE_CHOICES_DEF target
USING (select null from dual)
ON (recChoicesDef.id = target.id)
WHEN ... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 12, 2020 at 08:13 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
CREATE TABLE employee
(
id SERIAL NOT NULL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
surname VARCHAR(255),
email VARCHAR(255),
position_id INTEGER REFERENCES employee_position,
salary INTEGER NOT NULL
);
COMMENT ON TABLE employee IS 'A table to contain all employees'; |
<filename>database/data.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 02, 2019 at 07:59 PM
-- Server version: 5.7.23
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `cms`
--
-- ----... |
USE [D:\C#\C# FINAL PROJECT\HMSFINAL\HOSPITALMGMTSYS\HOSPITALMGMTSYS\HMS.MDF]
GO
/****** Object: Table [dbo].[medicine] Script Date: 4/25/2019 10:03:39 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[medicine] (
[medicineid] INT IDENTITY (1, 1) NOT NULL,
[medicinena... |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
<<<<<<< HEAD
-- Thời gian đã tạo: Th8 18, 2017 lúc 05:33 CH
-- Phiên bản máy phục vụ: 10.1.21-MariaDB
-- Phiên bản PHP: 5.6.30
=======
-- Thời gian đã tạo: Th8 24, 2017 lúc 06:50 AM
-- Phiên bản máy phục vụ: 10.1.22-MariaDB
... |
<filename>nominwin.sql
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 16-03-2019 a las 22:15:02
-- Versión del servidor: 5.7.14
-- Versión de PHP: 7.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
create table if not exists additional_day_off(
id int primary key auto_increment,
day_off date UNIQUE not null
) engine=InnoDB;
create table if not exists additional_workday(
id int primary key auto_increment,
workday date UNIQUE not null
) engine=InnoDB; |
create table `user`
(
id int primary key not null,
username varchar(255) null,
password varchar(255) null,
name varchar(255) null
);
create table `hero`
(
id int primary key not null,
name varchar(255) null,
pic varchar(255) null,
words varchar(255) null
);
INSERT INTO `user` VALUES (1,... |
SELECT *
FROM professor
WHERE id_professor = ${id_professor} |
/* Table to hold default values for some of the fields.
Procedure for updating the defaults table.
Populate table with values which can have default values. */
CREATE TABLE IF NOT EXISTS `default_values`(
`item_key` VARCHAR(100) NOT NULL PRIMARY KEY,
`item_value` VARCHAR(5000) NULL
);
DELIMITER $$
CREATE PROC... |
<gh_stars>0
-- MySQL dump 10.16 Distrib 10.1.25-MariaDB, for Win32 (AMD64)
--
-- Host: localhost Database: bd_sigupsues
-- ------------------------------------------------------
-- Server version 10.1.25-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESUL... |
-- MAINTENANCE // WRAPPER FUNCTION
-- returns:
-- { activated_count: 1, rescheduled_count: 1, killed_count: 1 }
DROP FUNCTION IF EXISTS fetchq_mnt_run(CHARACTER VARYING, INTEGER);
CREATE OR REPLACE FUNCTION fetchq_mnt_run (
PAR_queue VARCHAR,
PAR_limit INTEGER,
OUT activated_count INTEGER,
OUT rescheduled_count INT... |
alter PROC GET_ALL_CUSTOMERS
AS
SELECT [ID_CUSTOMER]
,[FIRST_NAME] AS '<NAME>'
,[LAST_NAME] AS '<NAME>'
,[TEL] AS 'رقم الهاتف'
,[EMAIL]AS 'البريد الإلكتروني'
,[IMAGE_CUSTOMER] as 'صورة العميل'
FROM [dbo].[CUSTOMERS]
|
<filename>src/main/resources/sql/mysql-update-v1.sql
--
-- Database v1
--
CREATE TABLE moany.accounts (
uuid varchar(255) NOT NULL,
account_num varchar(255) NOT NULL,
name varchar(255) NOT NULL,
type varchar(255) NOT NULL,
starting_balance decimal(20,2) DEFAULT NULL,
start_date date DEFAULT NULL,
PRIMARY... |
<filename>migrations/20171010203446_create_files_table/up.sql
CREATE TABLE files (
id SERIAL PRIMARY KEY,
name VARCHAR(128) NOT NULL,
file_name VARCHAR(128) NOT NULL,
folder_id INT4 references folders(id) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT now(),
updated_at TIMESTAMP NOT NULL DEFAUL... |
<filename>crowdsource-api/migrations/sql/20210227100906-materializedViewForContributionsAndDemoStats-down.sql<gh_stars>10-100
/* Replace with your SQL commands */
DROP MATERIALIZED VIEW IF EXISTS contributions_and_demo_stats;
|
<gh_stars>100-1000
-- Step 3
---------
EXECUTE sp_set_database_firewall_rule @name = N'ContosoFirewallRule',
@start_ip_address = 'n.n.n.n', @end_ip_address = 'n.n.n.n'
-- Step 4
---------
CREATE USER containeddemo WITH PASSWORD = '<PASSWORD>!'
-- Step 11
----------
SELECT SUERS_NAME(); |
/*
Query para publicar a tabela.
Esse é o lugar para:
- modificar nomes, ordem e tipos de colunas
- dar join com outras tabelas
- criar colunas extras (e.g. logs, proporções, etc.)
Qualquer coluna definida aqui deve também existir em `table_config.yaml`.
# Além disso, sinta-se à vontade para alterar alg... |
<reponame>captainangela/cleverclosets<filename>database.sql
-- NOTE that sqlalchemy/database.sql is a symbolic link to sql/database.sql.
-- ALL changes will be reflected in the sqlalchemy assessment.
CREATE TABLE users (
username VARCHAR(30) PRIMARY KEY,
password VARCHAR(64) NOT NULL,
fname VARCHAR(50),
... |
DROP PROCEDURE IF EXISTS `users_select_all`;
DELIMITER $$
CREATE PROCEDURE `users_select_all` ()
BEGIN
SELECT users.userId,username,firstName,lastName ,(SELECT GROUP_CONCAT(roles.name) FROM userRoles
inner join roles on userRoles.roleid = roles.roleId
where userRoles.userId = users.userId) 'role',createdOn 'regist... |
<filename>sql/select_auto_build.sql
select
auto_builds.created,
auto_builds.updated,
auto_builds.auto_build,
auto_builds.repo,
auto_builds.branch,
case when features.feature is null then false else true end as auto_deploy,
auto_builds.wait_on_status_checks,
authorizations.authorization,
auto_buil... |
<reponame>iTechJavaTeach/play-framework
# --- Adding users
# --- !Ups
create table user (
id bigint not null AUTO_INCREMENT,
name varchar(255) not null,
password varchar(255) not null,
role varchar(100) not null,
constraint pk... |
-- Both of these queries should return zero rows,
-- eg, the original table should have the exact same contents as the one
-- we created via the binary export/import process
SELECT * FROM example
EXCEPT ALL
SELECT * FROM example_2;
SELECT * FROM example_2
EXCEPT ALL
SELECT * FROM example;
|
<filename>DB/DB1.sql
-- generic
INSERT INTO generic.egdcr_sub_feature_colorcode (id,feature,subfeature,colorcode,ordernumber) VALUES
(57,'HeightOfRoom','Stilt Floor',38,7);
INSERT INTO generic.egdcr_sub_feature_colorcode (id,feature,subfeature,colorcode,ordernumber) VALUES
(58,'HeightOfRoom','Service Floor',39,7)... |
<reponame>SriAdiC/scholl-finder
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 07 Agu 2020 pada 13.53
-- Versi server: 10.4.8-MariaDB
-- Versi PHP: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+0... |
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 03, 2018 at 12:16 PM
-- Server version: 5.5.32
-- PHP Version: 5.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 17, 2022 at 11:11 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... |
<filename>database/old/V1.0.1/invoice_items.sql<gh_stars>0
/*
* Copyright <NAME> (c) 2020.
*/
CREATE TABLE IF NOT EXISTS invoice_items
(
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
invoice_id INT NOT NULL,
name varchar(50) NOT NULL,
price INT... |
<reponame>adrianoBP/RFIDreader<filename>DB/SCRIPTS CREATE TABLE/accesses.sql<gh_stars>0
CREATE TABLE `accesses` (
`id` INTEGER NOT NULL,
`logDateTime` DATETIME NOT NULL DEFAULT (datetime(CURRENT_TIMESTAMP,'localtime')),
`rfids_id` INTEGER NOT NULL,
`rfidActive` INTEGER NOT NULL DEFAULT 0,
`processed` BOOLEAN NOT N... |
<gh_stars>0
ALTER TABLE revurdering
ADD COLUMN IF NOT EXISTS
fritekstTilBrev text;
|
<filename>INFO/Books Codes/Oracle Database 10g PLSQL/Code/Chapter9/OracleErrors.sql
/*
* OracleErrors.sql
* Chapter 9, Oracle10g PL/SQL Programming
* by <NAME>, <NAME> and <NAME>
*
* This script demonstrates the use of a pipelined table function.
*/
DROP TYPE OracleErrors;
CREATE OR REPLACE TYPE OracleError AS ... |
insert into anuncios (cliente, data_fim, data_inicio, investimento_diario, nome_anuncio) values ('Magazine Cissa', '2021-05-25', '2021-05-10',500, 'Placas de vídeo');
insert into anuncios (cliente, data_fim, data_inicio, investimento_diario, nome_anuncio) values ('Carrefour', '2021-05-10', '2021-05-05',500, 'Carnes e ... |
<reponame>lgcarrier/AFW
SET DEFINE OFF;
CREATE INDEX AFW_01_MESG_FK1 ON AFW_01_MESG
(REF_PRODT)
LOGGING
/
|
<reponame>nanomw/nano-map
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
-- --------------------------------------------------------
--
-- Table structure for table `active_nodes`
--
CREATE TABLE `active_nodes` (
`id` bigint(20) NOT NULL,
`ip` binary(16) ... |
<reponame>aditya1962/restaurant-app
use Restaurant;
INSERT INTO `item_category` (`category_id`, `category`, `sub_category`) VALUES (NULL, 'Starters', 'Soups');
INSERT INTO `item_category` (`category_id`, `category`, `sub_category`) VALUES (NULL, 'Starters', 'Appetizers');
INSERT INTO `item_category` (`category_id`, `c... |
update eg_action set displayname='Edit Demand' where name='Edit demand provision for GRP Properties';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.