sql stringlengths 6 1.05M |
|---|
UPDATE bugs SET cf_uuid=%s WHERE bug_id=%s
|
drop table api_keys;
drop table files;
drop table deletion_keys;
drop table pastes;
drop table users;
|
-- +goose Up
-- SQL in this section is executed when the migration is applied.
INSERT INTO am.scan_address_discovered_by (discovery_id, discovered_by) values (104, 'ns_query_nsec_walk');
-- +goose Down
-- SQL in this section is executed when the migration is rolled back.
DELETE FROM am.scan_address_discovered_by where... |
<gh_stars>1-10
/*
编写一个 SQL 查询,找出每个部门工资最高的员工。
*/
select d.Name as `Department`, e1.Name as `Employee`, e1.Salary
from Employee e1,
Department d
where e1.DepartmentId = d.Id
and e1.Salary >= ALL (
select e2.Salary
from Employee e2
where e1.DepartmentId = e2.DepartmentId
) |
<reponame>aliostad/deep-learning-lang-detection
CREATE VIRTUAL TABLE rtree_${t}_${c} USING rtree(id, minx, maxx, miny, maxy);
INSERT OR REPLACE INTO rtree_${t}_${c}
SELECT ${i}, ST_MinX(${c}), ST_MaxX(${c}), ST_MinY(${c}), ST_MaxY(${c}) FROM ${t}
WHERE NOT ST_IsEmpty(${c});
-- Conditions: Insertion of non-empty g... |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- nicio valoare nu va fi initializata cu 0
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+03:00"; -- setarea fusului orar pentru Bucuresti,Romania
CREATE TABLE `logs` (
`id` int(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`UIDresu... |
<gh_stars>100-1000
alter table player
add column tzoffset smallint;
|
<filename>backend/migrations/20191114211948-add-operation-to-tags.sql
-- +migrate Up
-- Add column and remove the unique constraint on name
ALTER TABLE tags
ADD COLUMN operation_id int AFTER id,
DROP KEY name
;
-- Insert existing tags for every existing operation_id
INSERT INTO tags
(name, color_name, created_at... |
<gh_stars>1000+
/*
Author: <NAME>
Original link: http://slavasql.blogspot.ru/2016/03/sql-server-cpu-utilization-in-graphical.html
*/
DECLARE @gc VARCHAR(MAX), @gi VARCHAR(MAX);
WITH BR_Data as (
SELECT timestamp, CONVERT(XML, record) as record
FROM sys.dm_os_ring_buffers
WHERE ring_buffer_type = N'RING_BUFFER_SCHED... |
<reponame>CarlosSalda/taskcafe
ALTER TABLE user_account ADD COLUMN profile_avatar_url TEXT;
|
CREATE TABLE `cui` (
`clientipaddress` varchar(46) NOT NULL default '',
`callingstationid` varchar(50) NOT NULL default '',
`username` varchar(64) NOT NULL default '',
`cui` varchar(32) NOT NULL default '',
`creationdate` timestamp NOT NULL default CURRENT_TIMESTAMP,
`lastaccounting` timestamp NOT NULL defa... |
<filename>MocaControls20.TestDb/Stored Procedure/IDaoDemo_Ins.sql
CREATE PROCEDURE dbo.IDaoDemo_Ins
(
@ID nvarchar(5),
@Name nvarchar(256),
@Note nvarchar(max),
@MaxCode int OUTPUT
)
AS
SELECT
@MaxCode = MAX([Code]) + 1
FROM [tbDemo]
WHERE ID=@ID
GROUP BY ID
SELECT @MaxCode = CASE WHEN @MaxCode IS NULL THEN 1... |
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... |
<reponame>leonoronha21/HateProject
-- phpMyAdmin SQL Dump
-- version 4.3.7
-- http://www.phpmyadmin.net
--
-- Host: mysql01-farm8.kinghost.net
-- Tempo de geração: 23/05/2021 às 21:17
-- Versão do servidor: 5.5.62-log
-- Versão do PHP: 5.3.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101... |
<filename>cql/src/test/resources/driver/input/prm.cql<gh_stars>1-10
set "hbase.zookeeper.quorum" = "192.168.0.2:24000,192.168.0.2:24000,192.168.0.2:24000";
set "hbase.zookeeper.property.clientPort" = "24000";
-------------------defination of input----------
create input stream transaction
(
SEQ_NO LONG,
SM_... |
-- db_patches
INSERT INTO `db_patches` VALUES ('POCOR-2445', NOW());
-- add params column to xxx_custom_fields
ALTER TABLE `custom_fields` ADD `params` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `is_unique`;
ALTER TABLE `institution_custom_fields` ADD `params` TEXT CHARACTER SET utf8 COLLA... |
<reponame>brionmario/platform-scenarios<filename>financial-solutions/tpp-as-aisp/v1.0.0/mysql/resources/aggregator_mgtdb.sql
-- MySQL dump 10.13 Distrib 5.7.18, for osx10.12 (x86_64)
--
-- Host: 127.0.0.1 Database: aggregator_mgtdb
-- ------------------------------------------------------
-- Server version 5.6.39
... |
<reponame>lukx1/Backupper
-- phpMyAdmin SQL Dump
-- version 4.2.9.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 11, 2018 at 06:16 PM
-- Server version: 5.5.55-0+deb7u1
-- PHP Version: 5.4.45-0+deb7u8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CH... |
<reponame>sisu-callum/dbt_marketo_source<gh_stars>1-10
with base as (
select *
from {{ ref('stg_marketo__email_template_history_tmp') }}
), macro as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_marketo__email_... |
USE [master]
GO
CREATE DATABASE [AutoBuyer]
GO
USE [AutoBuyer]
GO
CREATE TABLE [dbo].[Buyer](
[ItemID] [nvarchar](200) NOT NULL,
[BuyerName] [nvarchar](200) NOT NULL,
[MaximumPrice] [int] NOT NULL,
[NumberToBuy] [int] NOT NULL,
[CurrentPrice] [int] NOT NULL,
[NumberInStock] [int] NOT NULL,
[BoughtSoFar] [int]... |
#standardSQL
# Lighthouse category scores per CMS
SELECT
cms,
COUNT(DISTINCT url) AS freq,
APPROX_QUANTILES(CAST(JSON_VALUE(categories, '$.performance.score') AS NUMERIC), 1000)[OFFSET(500)] AS median_performance,
APPROX_QUANTILES(CAST(JSON_VALUE(categories, '$.accessibility.score') AS NUMERIC), 1000)[OFFSET(50... |
<reponame>JaneliaSciComp/DatabaseScripts
DROP TABLE IF EXISTS simpson_pe_mv;
CREATE OR REPLACE VIEW simpson_pe_vw AS
SELECT line_vw.name AS line
,line_vw.gene
,getGeneSynonymString(line_vw.gene) AS synonyms
,sv.name
,MAX(IF(strcmp(ov.type,'notes'),NULL,ov.value)) AS notes
,MAX(IF(str... |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 14 Okt 2020 pada 19.32
-- Versi server: 10.1.36-MariaDB
-- Versi PHP: 7.2.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
INSERT INTO physical_parameter (created_at, updated_at, engine_type_id,
name, dynamic, custom_method,
description,
allowed_values, parameter_type)
SELECT now(), now(), physical_enginetype.id,
'save', 1, null,
"Will save the DB if both the given number of seconds and the given number of write operati... |
-- @testpoint: INSERT语句后带优化器full,存在的表名
INSERT /*+FULL(hint_index_000000)*/ INTO hint_index_00000 VALUES ( 20, 0, 10, 1, 0, -1088618496, 500000, 9, 5, 8, 'a', 'def', '2003-02-28', TO_DATE('2002-03-18', 'YYYY-MM-DD') ); |
<filename>db.sql<gh_stars>0
CREATE TABLE `sensor` (
`sensor_id` TINYINT NOT NULL AUTO_INCREMENT,
`sensor_name` VARCHAR(100) NOT NULL,
PRIMARY KEY (`sensor_id`)
);
CREATE TABLE `measurementtype` (
`measurementtype_id` TINYINT NOT NULL AUTO_INCREMENT,
`measurementtype_name` VARCHAR(100) NOT NULL,
PRIMARY KEY... |
<reponame>josephchoe/database-message-store<gh_stars>0
-- Verify database-message-store:functions/write_message on pg
BEGIN;
SELECT has_function_privilege('message_store.write_message(varchar, varchar, varchar, jsonb, jsonb, bigint)', 'execute');
ROLLBACK;
|
<gh_stars>0
CREATE TABLE administrador
(
id BIGINT NOT NULL AUTO_INCREMENT,
usuario VARCHAR(8) NOT NULL unique,
senha VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 01, 2021 at 02:33 PM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
-- $$id$$ /^[0-9]+$/
SELECT * FROM MXP_Tasks WITH(nolock)
WHERE TaskID = $$id$$
|
<gh_stars>1-10
-- At database : 'sql_redis_test'
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`salary` int(11) NOT NULL,
`money` int(11) NOT NULL DEFAULT '1000'
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
INSERT INTO `use... |
<gh_stars>1-10
-- 用户密码重置表
DROP TABLE
IF EXISTS `user_password_reset`;
CREATE TABLE `user_password_reset` (
`id` bigint(20) unsigned AUTO_INCREMENT COMMENT 'id',
`user_id` bigint(20) unsigned NOT NULL COMMENT '用户 id',
`verify_from` varchar(255) NOT NULL COMMENT '用户绑定的电子邮箱或手机号码',
`verify_code` varchar(255) NOT... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DeviceTemplate](
[guid] [uniqueidentifier] NOT NULL,
[code] [nvarchar](10) NOT NULL,
[name] [nvarchar](100) NOT NULL,
[firmwareGuid] [uniqueidentifier] NULL,
[companyGuid] [uniqueidentifier] NOT NULL,
[isDeleted] [bit] NOT NULL CONSTRAINT [DF_... |
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS [Roles]
(
[Id] VARCHAR(36) NOT NULL UNIQUE CONSTRAINT [PK_Roles] PRIMARY KEY,
[Name] NVARCHAR(256) NOT NULL,
[NormalizedName] NVARCHAR(256) NOT NULL CONSTRAINT [IX_Roles_NormalizedName] UNIQUE,
[ConcurrencyStamp] NVARCHAR(4000) NOT NULL
);
COMMIT; |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `losvanillaos`
--
-- -----------------------------------------... |
UPDATE "movie" SET movie_file = ?, name = ?, movie_year = ?, description = ? WHERE movie_id = ?; |
CREATE OR REPLACE FUNCTION ti.getrelativeageunitsbyname(_relativeagescale character varying)
RETURNS TABLE(relativeagescaleid integer, relativeagescale character varying)
LANGUAGE sql
AS $function$
SELECT ras.relativeagescaleid,
ras.relativeagescale
FROM ndb.relativeagescales AS ras
WHERE (ras.r... |
--
-- CzechIdM 8 Flyway script
-- BCV solutions s.r.o.
--
-- add new persistent type fot indexed short text
ALTER TABLE idm_identity_form_value ADD COLUMN short_text_value character varying(2000);
ALTER TABLE idm_identity_form_value_a ADD COLUMN short_text_value character varying(2000);
ALTER TABLE idm_identity_form_... |
<reponame>Jason-Paprocki/IT490
create table if not exists `Forum` (
`fname` varchar(20) not null,
`lname` varchar(20) not null,
`post_id` varchar(13) not NULL,
`message_id` varchar(13),
`title` varchar(100) not null,
`message` varchar(1000) not null,
PRIMARY KEY (`post_id`)
) CHARACTER SET utf8 COLLATE utf8_general_ci |
SELECT x.* FROM
XMLTABLE('data/item' PASSING
xmlparse(Document SYSTOOLS.HTTPGETCLOB('http://www.myhofi.com/myapp/websrv02.pgm?id=1',''))
COLUMNS
Id Integer path 'id',
Name varchar(40) path 'name',
Country varchar(2) path 'country',
City varchar(40) path 'city',
Street va... |
<filename>src/test/resources/sql/create_rule/c99aae1d.sql<gh_stars>10-100
-- file:triggers.sql ln:949 expect:true
CREATE RULE european_city_delete_rule AS ON DELETE TO european_city_view
DO INSTEAD DELETE FROM city_view WHERE city_id = OLD.city_id RETURNING *
|
#------------------------------------------------------------------------------
# Table des préfectures
#------------------------------------------------------------------------------
CREATE TABLE `game_building_prefecture` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`instance` int(11) NOT NULL,
... |
SELECT
CAST(JSON_EXTRACT_SCALAR(data, '$.id') AS int64) AS id,
CAST(JSON_EXTRACT_SCALAR(data, '$.assignment_id') AS int64) AS assignment_id,
CAST(JSON_EXTRACT_SCALAR(data, '$.grading_period_id') AS int64) AS grading_period_id,
CAST(JSON_EXTRACT_SCALAR(data, '$.user_id') AS int64) AS user_id,
CAST(J... |
<reponame>15302160404/taopapa
#管理员表
create table `work_admin`(
`id` int(11) unsigned not null AUTO_INCREMENT,
`username` varchar(20) not null default '' COMMENT '姓名',
`realname` varchar(20) not null default '' COMMENT '真实姓名',
`logo` varchar(100) not null default '',
`password` varchar(32) not null default '' COMMENT ... |
CREATE TABLE prontuario (
id SERIAL PRIMARY KEY,
pressao VARCHAR(10),
data DATE,
horario TIMESTAMP,
altura DECIMAL,
peso DECIMAL,
status VARCHAR(255),
codigo_paciente BIGINT
);
alter table prontuario add constraint prontuario_paciente_fk foreign key(codigo_paciente) references paciente(cpf);
|
<reponame>VanLam2611/chuyen-de-cms<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1:3306
-- Thời gian đã tạo: Th9 22, 2021 lúc 01:07 AM
-- Phiên bản máy phục vụ: 10.4.10-MariaDB
-- Phiên bản PHP: 7.4.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;... |
<filename>data/mysql-import/auto-export/jiudouyu_core_db.core_refund_record.sql
-- MySQL dump 10.13 Distrib 5.6.34, for Linux (x86_64)
--
-- Host: rr-2zeap9jp480wx4j12.mysql.rds.aliyuncs.com Database: jiudouyu_core_db
-- ------------------------------------------------------
-- Server version 5.6.29
/*!40101 SET @... |
<reponame>endeavourhealth/EmisExtractValidator<gh_stars>0
use EMISXMaster
go
if (object_id('RemoveTrailingQuotesFromStagedExtract') is not null)
drop procedure RemoveTrailingQuotesFromStagedExtract
go
create procedure RemoveTrailingQuotesFromStagedExtract
as
set nocount on
declare @msg varchar(10... |
<filename>src/test/resources/jp/co/tis/gsp/tools/dba/mojo/GenerateEntity_test/basic/mysql/ddl/10_CREATE_INDEX_TEST3.sql
CREATE TABLE INDEX_TEST3 (
INDEX_TEST3_ID BIGINT NOT NULL COMMENT 'INDEX_TEST3_ID',
SUB_ID_1 BIGINT NOT NULL COMMENT 'SUB_ID_1',
SUB_ID_2 BIGINT NOT NULL COMMENT 'SUB_ID_2'
)
COMMENT='INDEX_T... |
BEGIN;
UPDATE changesets SET reconciler_state = 'queued' WHERE reconciler_state = 'QUEUED';
COMMIT;
|
/*
Copyright 2019 Insurance Australia Group Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... |
<gh_stars>1-10
-- Create and populate our products using a single insert with many rows
CREATE TABLE products (
id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY
(START WITH 101, INCREMENT BY 1) PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description VARCHAR(512),
weight FLOAT
);
INSERT INTO products(name,d... |
<filename>components/automate-workflow-server/schema/verify/set_users_telemetry_enabled_to_null.sql
-- Verify delivery:set_users_telemetry_enabled_to_null on pg
BEGIN;
SELECT id,
enterprise_id,
name,
ssh_pub_key,
first_name,
last_name,
email,
user_type,
teleme... |
<filename>sql/updates/Rel18/12466_01_mangos_spell_script_target.sql<gh_stars>0
ALTER TABLE db_version CHANGE COLUMN required_12458_01_mangos_dbscripts_on_creature_death required_c12466_01_mangos_spell_script_target bit;
ALTER TABLE spell_script_target ADD COLUMN `inverseEffectMask` mediumint(8) unsigned NOT NULL DEFAU... |
DROP TABLE IF EXISTS t05;
CREATE TABLE t05 (id int primary key);
-- gang creation order is important, reset any guc to force the creation
10: RESET optimizer;
20: RESET optimizer;
10: BEGIN;
20: BEGIN;
10: INSERT INTO t05 VALUES(segid(0,1));
20: INSERT INTO t05 VALUES(segid(1,1));
-- seg 0: con20 ==> con10, xid loc... |
<reponame>Evosi/ThinkSQL<filename>SQLtest/Restaurant/nameFull1.sql
SELECT
db1.
restaurant.
menu_item.
menu_item_name
FROM
db1.
restaurant.
menu_item |
<reponame>FeatureToggleStudy/halfpipe
create or replace function urlencode(in_str text, OUT _result text) returns text as $$
select
string_agg(
case
when ol>1 or ch !~ '[0-9a-za-z:/@._?#-]+'
then regexp_replace(upper(substring(ch::bytea::text, 3)), '(..)', E'%\\1', 'g')
else ch
... |
<gh_stars>0
DROP DATABASE IF EXISTS `micheal_hansen`;
CREATE DATABASE IF NOT EXISTS `micheal_hansen`;
USE `micheal_hansen`;
DROP TABLE IF EXISTS `stylists`;
CREATE TABLE `stylists` (
`StylistId` int NOT NULL AUTO_INCREMENT,
`Name` longtext,
PRIMARY KEY (`StylistId`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARS... |
--Exercice 3 : création d'une procédure stockée avec plusieurs paramètres
--Créer la procédure stockée CA_Supplier, qui pour un code fournisseur et une année entrée en paramètre,
--calcule et restitue le CA potentiel de ce fournisseur pour l'année souhaitée.
--On exécutera la requête que si le code fournisseur est val... |
<filename>migrations/20220101200410_initial_schema.up.sql
create table producers (
id integer primary key,
name text not null
) strict;
create unique index producers__name on producers(name);
create table promoting_agents (
id integer primary key,
name text not null
) strict;
create unique index promoting_ag... |
<filename>javro-jdbc-mapper/src/main/resources/sql/init-data.sql
with ben as (
insert into tbl_member (full_name, email_addr, city, state_prov, date_created)
values ('big ben', '<EMAIL>', 'London', 'Greater London, UK', now())
on conflict do nothing
returning id
)
insert into tbl_account (username, acce... |
<reponame>adaniswarad/transvision<filename>transvision-pms.sql
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 12, 2018 at 11:12 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!... |
<reponame>blackwolf197/colegio
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 08-11-2019 a las 23:50:16
-- Versión del servidor: 10.1.32-MariaDB
-- Versión de PHP: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSA... |
<filename>public/assets/migrations/2020_05_15_104938_truncate_sync_drug.sql
CREATE TABLE IF NOT EXISTS `sync_drug` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`abbreviation` varchar(255) DEFAULT NULL,
`strength` varchar(255) NOT NULL,
`packsize` int(7) DEFAULT NULL,
`formu... |
<filename>src/main/resources/db/migration/V11__Data_delete_load_skill_data.sql
--Delete previous data from skill table
DELETE FROM `skill`;
--Load new data into skill table
INSERT INTO `skill` (`id`,`skill`)
VALUES ('1','HTML'),
('2','CSS'),
('3','Java'),
('4','Python'),
('5','PhP... |
-- this part is ignored by the query loader so example parameters can be declared
-- QUERY
this part loads! |
<gh_stars>10-100
CREATE PROCEDURE [dbo].[sproc_GetPlaylistTrackDetails]
(
@PlaylistId int,
@TrackId int
)
AS
SELECT CAST((SELECT * FROM [PlaylistTrack]
WHERE
PlaylistId = @PlaylistId
AND
TrackId = @TrackId FOR JSON PATH) AS VARCHAR(MAX)) AS JSONDATA |
<gh_stars>10-100
ALTER TABLE `community` ADD COLUMN `signature` tinyint(1) unsigned NOT NULL DEFAULT 0; |
CREATE TABLE `clientes` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`nome` varchar(255) default NULL,
`email` varchar(255) default NULL,
`nascimento` varchar(255),
`cpf` varchar(255),
PRIMARY KEY (`id`)
) AUTO_INCREMENT=1;
INSERT INTO `clientes` (`nome`,`email`,`nascimento`,`cpf`) VALUES ("<NAME>... |
<filename>src/cli/bundled/sql/AdImage.sql
CREATE TABLE ad_image (
id String,
account_id String,
created_time Nullable(DateTime),
creatives Array(String),
hash Nullable(String),
height Nullable(Int64),
is_associated_creatives_in_adgroups Nullable(UInt8),
name Nullable(String),
original_height Nullable(... |
<filename>SQL Scripts/Terminology/Import.en-us.1.sql
-- Terminology generated from database [SplendidCRM5_50] on 11/18/2010 1:19:37 AM.
print 'TERMINOLOGY Import en-us';
GO
set nocount on;
GO
exec dbo.spTERMINOLOGY_InsertOnly N'ERR_DUPLICATE_FIELDS' , N'en-US', N'Import', null, nul... |
<filename>buildmimic/postgres/postgres_create_tables.sql
-- -------------------------------------------------------------------------------
--
-- Create the MIMIC-III tables
--
-- -------------------------------------------------------------------------------
--------------------------------------------------------
--... |
-- 2020-05-11T09:35:45.134Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Dienstleister für Rechnungsbearbeitung', PrintName='Dienstleister für Rechnungsbearbeitung',Updated=TO_TIMESTAMP('2020-05-11 12:35:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WH... |
insert into DETAILS_PRODUITS (detail_produitid, date_entree, produitid, qte_entree, qte_sortie) values(1, '2021-09-11', 2, 2500, 370);
insert into DETAILS_PRODUITS (detail_produitid, date_entree, produitid, qte_entree, qte_sortie) values(2, '2021-09-01', 9, 8500, 250);
insert into DETAILS_PRODUITS (deta... |
<reponame>saikrishna2409/My-First-Repo<gh_stars>0
delimiter $$
create function f2(eid int)returns varchar(20)
begin
declare nm varchar(20);
select name into nm from emp where id=eid;
return nm;
end $$;
delimiter ;
set @name=f2(103);
select @name; |
<filename>chapter-3-spring-security-oauth/chapter-3-demo21-authorization-server-on-sso/src/main/resources/oauth_data.sql
INSERT INTO oauth_client_details
(client_id, client_secret, scope, authorized_grant_types,
web_server_redirect_uri, authorities, access_token_validity,
refresh_token_validity, additional_informati... |
<filename>dependency_charts/postgresql/files/docker-entrypoint-initdb.d/initial-notarysigner.sql
CREATE DATABASE notarysigner;
CREATE USER signer;
alter user signer with encrypted password 'password';
GRANT ALL PRIVILEGES ON DATABASE notarysigner TO signer;
|
CREATE TABLE `error_logs` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`site_id` INT NOT NULL ,
`error` TEXT NOT NULL ,
`date` DATETIME NOT NULL
) ENGINE = InnoDB; |
<reponame>backwardn/timescaledb<gh_stars>1-10
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
---------------------------------------------------
-- Test compression on a distributed ... |
<reponame>killstanding/transportationtraining
INSERT INTO `sys_role`(`id`, `role`, `description`, `resource_ids`, `available`) VALUES (1, 'admin', '超级管理员', '11,21,31,41,46,59,69,70,83,411,412,413,4111,4112,4113,4121,5111,5112,5113,5121,5122,5123,5124,5131,5132,5133,5134,5135,5136,5211,5212,5221,5222,5223,5311,5312,5321... |
--
-- linkscc table used to cache link lists in easier to digest form.
-- New schema for 1.3 - removes old lcc_title column.
-- May 2004
--
ALTER TABLE /*$wgDBprefix*/linkscc DROP COLUMN lcc_title; |
<reponame>datakind/data-confidence-tool-redacted<gh_stars>1-10
-- Notebook: LT-Step-04-CHV-Level-Findings.ipynb
{{ config(materialized='view') }}
{% set schema = var("dbt_schema") %}
{% set patient_relation_prefix = var("patient_missingness_relation_prefix") %}
{% set assessment_relation_prefix = var("assessment_missi... |
<filename>piazza-commons/src/test/resources/hk.hku.cecid.piazza.commons.test.sample.HelloWorldDSDAOUnitTest/hello_world.create.sql
CREATE TABLE hello_world
(
id VARCHAR(255),
description VARCHAR(255)
);
|
CREATE TABLE member_types (
id SERIAL PRIMARY KEY NOT NULL,
name TEXT NOT NULL UNIQUE
);
INSERT INTO member_types (name) VALUES
('full'),
('alumni'),
('interm');
CREATE TABLE music (
id SERIAL PRIMARY KEY NOT NULL,
name TEXT NOT NULL
);
CREATE INDEX ON music ( name );
INSERT INTO music (nam... |
<gh_stars>100-1000
--drop table and index
drop index if exists local_exchange_table_index1;
drop table if exists exchange_table;
drop index if exists local_alter_table_index1;
drop index if exists global_alter_table_index1;
drop index if exists global_alter_table_index2;
drop table if exists alter_table;
create table ... |
<filename>reg.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50714
Source Host : localhost:3306
Source Database : leblanc
Target Server Type : MYSQL
Target Server Version : 50714
File Encoding : 65001
Date: 2018-02-09 17:48:27
*/
SET FORE... |
-Query selecting all tables without an identity column
SELECT name AS Table_Name
FROM sys.tables
WHERE OBJECTPROPERTY(OBJECT_ID,'TableHasIdentity') = 0
ORDER BY Table_Name;
--Sample Output
--Table_Name
--MSreplication_options
--spt_fallback_db
--spt_fallback_dev
--spt_fallback_usg
--s... |
<filename>afric_village.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : ven. 24 sep. 2021 à 12:12
-- Version du serveur : 10.1.38-MariaDB
-- Version de PHP : 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 8.0.22 - MySQL Community Server - GPL
-- Server OS: Win64
-- HeidiSQL Version: 11.2.0.6213
-- --------------------------------------------------------
/... |
<reponame>lejenbit/MyEnviro<gh_stars>0
/*
SQLyog Community v13.1.1 (64 bit)
MySQL - 10.3.10-MariaDB-log : Database - myenviro
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS... |
CREATE TABLE "logs" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"uri" varchar(255),
"query" varchar(255),
"body" varchar(255),
"created_at" datetime,
"updated_at" datetime
); |
CREATE TABLE Player (
PlayerID int PRIMARY KEY,
Handle char(30),
Name char(30),
Location char(30),
PlayerNumber int,
Role char(10),
Picture varchar
);
CREATE TABLE PlayersTeam (
PlayerID int REFERENCES Player(PlayerID),
TeamID int REFERENCES Team(TeamID),
PRIMARY KEY(PlayerID, T... |
ALTER TABLE `questionnaire` DROP `status`;
ALTER TABLE `test` ADD `status` INT NOT NULL DEFAULT '0' AFTER `max_value`;
ALTER TABLE `test` ADD `has_print` INT NOT NULL DEFAULT '0' AFTER `status`; |
<gh_stars>1-10
DROP TABLE IF EXISTS `oncall_weekly`;
CREATE TABLE `oncall_weekly` (
id MEDIUMINT NOT NULL AUTO_INCREMENT,
`alert_id` varchar(255) NOT NULL,
`range_start` int(10) unsigned NOT NULL,
`range_end` int(10) unsigned NOT NULL,
`timestamp` int(10) unsigned NOT NULL,
`hostname` varchar(2... |
DEFINE RECORD CDD$TOP.AR.AR_SALTAX
DESCRIPTION IS /*Sales Tax Table*/.
AR_SALTAX_CDD STRUCTURE.
/* Element = COUNTRY
Description = Country */
COUNTRY DATATYPE IS TEXT SIZE IS 2.
/* Element = STATE
Description = State */
STATE ... |
/*This SQL file is to reset all the tables records*/
/*Reset Users*/
TRUNCATE TABLE users;
INSERT INTO users (uemail,upw,uname,ugroup,ufirst_login)
VALUES
("<EMAIL>","bcf<PASSWORD>","Admin",0,1);
/*Reset Transactions*/
TRUNCATE TABLE transactions;
/*Reset mst_medicine*/
TRUNCATE TABLE mst_medicine;
INSERT INTO mst_me... |
<gh_stars>1-10
--
-- Version: Each entry records a session of screen time. Supports Azure SQL Server.
-- URL: http://ostlog.org/schema/Screen_log.json
--
CREATE TABLE [dbo].[Screen log]
(
[id] INT IDENTITY (1,1) NOT NULL,
[meta_id] INT NULL,
[start_date_id] INT DEFAULT CONVERT (char(8), GETDATE(), 112) NOT NULL,
... |
INSERT INTO roles(name)
VALUES ('admin'); |
DROP TABLE IF EXISTS usuarios CASCADE;
DROP TABLE IF EXISTS estaciones CASCADE;
DROP TABLE IF EXISTS uso CASCADE;
DROP TABLE IF EXISTS bicicletas CASCADE;
CREATE TABLE usuarios (
dni varchar(9),
nombre varchar(100) NOT NULL,
apellidos varchar (100),
direccion varchar (100),
movil varchar(15) NOT NULL,
email varc... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: 23-Fev-2016 às 16:35
-- Versão do servidor: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.