sql stringlengths 6 1.05M |
|---|
<reponame>paulissoft/oracle-build-tools<gh_stars>1-10
CREATE TYPE "ORACLE_TOOLS"."T_TABLE_COLUMN_DDL" authid current_user under oracle_tools.t_type_attribute_ddl
( constructor function t_table_column_ddl
( self in out nocopy oracle_tools.t_table_column_ddl
, p_obj in oracle_tools.t_schema_object
)
return self a... |
<gh_stars>100-1000
alter table room
add column lang varchar(2) NOT NULL default 'en';
|
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Queue]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[Queue](
[QueueID] [int] IDENTITY(1,1) NOT NULL,
[SchemaName] [sysname] NOT NULL,
[ObjectName] [sysname] NOT NULL,
[Para... |
create table GESTIONACTIVIDADES_ALUMNO_ACTIVIDAD_LINK (
ALUMNO_ID varchar(36) not null,
ACTIVIDAD_ID varchar(36) not null,
primary key (ALUMNO_ID, ACTIVIDAD_ID)
);
|
<reponame>solita/kuntalaisaloite
alter table municipality_initiative add column video_url text;
alter table municipality_initiative add column video_name text; |
<gh_stars>100-1000
-- Revert environments
BEGIN;
DROP TABLE goiardi.environments;
COMMIT;
|
<gh_stars>1000+
-- Copyright 2020 The Nomulus Authors. All Rights Reserved.
--
-- 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
--
-- Unle... |
alter table settings
add mode varchar(32) default 'Celery' null;
|
<reponame>alazarolop/dicsm
-- # FUNCTIONS FOR TRIGGERS
CREATE OR REPLACE FUNCTION sources.src_tb (src varchar, bd integer)
RETURNS varchar AS $$
SELECT concat(src, '_' || NULLIF(bd, 0)) ;
$$
LANGUAGE SQL
IMMUTABLE ;
COMMENT ON FUNCTION sources.src_tb (src varchar, bd integer) IS 'Naming of source raster tables' ;
... |
<reponame>mzabani/codd
-- COPY employee FROM STDIN WITH (FORMAT CSV);
-- "5","Dracula","master"
-- "6","The Grinch","master"
-- \.
SELECT 'just for fun';
COPY employee FROM STDIN WITH (FORMAT CSV);
5,Dracula,master
6,The Grinch,master
\.
COPY public.employee FROM STDIN WITH (format csv);
7,Frankenstein,junior
8,Medus... |
<gh_stars>10-100
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : KerasClassifier_LSTM
-- Dataset : BinaryClass_10
-- Database : oracle
-- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
-- Model deployment co... |
--+ holdcas on;
set @ja='[1,2, {"a":1}]';
set @jo='{"a":1, "b":[1,2,3], "c":["a","b","c"]}';
prepare st from 'SELECT JSON_ARRAY(?, ?, ?)';
execute st using @ja,@jo,100000;
execute st using @ja,@jo,100000,1;
select JSON_ARRAY(@ja,@jo,100000);
select JSON_ARRAY(cast(@ja as json),cast(@jo as json),100000);
prepar... |
--Complete tests for SPACE function
-- check NULL argument, literal arguments --
SELECT
SPACE(NULL),
'|' || SPACE(3) || '|',
LENGTH(SPACE(68423)) || '|', LENGTH(SPACE(12345678909));
-- check emtpy string returned from negative lengths, --
-- and NULL returned from lengths larger than max VARCHAR precision --
... |
<filename>openGaussBase/testcase/KEYWORDS/precision/Opengauss_Function_Keyword_Precision_Case0033.sql
-- @testpoint:opengauss关键字precision(非保留),作为视图名
--关键字precision作为视图名,不带引号,创建成功
CREATE or replace VIEW precision AS
SELECT * FROM pg_tablespace WHERE spcname = 'pg_default';
drop view precision;
--关键字precision作为视图名,加双... |
-- @testpoint:opengauss关键字null(保留),作为存储过程名
--关键字不带引号-合理报错
create or replace procedure null() is
V1 BLOB;
begin
IF V1 is NULL then
raise info 'V1 is NULL';
else
raise info 'V1 is not NULL';
end if;
end;
/
--关键字带双引号-成功
create or replace procedure "null"() is
V1 BLOB;
begin
IF V1 is NULL then
raise info '... |
<filename>src/database/dump.sql
DROP TABLE IF EXISTS `comunications`;
DROP TABLE IF EXISTS `qualitys`;
CREATE TABLE `qualitys` (
`quality_id` int(11) NOT NULL AUTO_INCREMENT,
`label` varchar(15) NOT NULL,
`description` varchar(255) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`created` datetime DEFAULT NU... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.4
-- Dumped by pg_dump version 13.3
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', fal... |
<reponame>Dedy1354/spk_ikm
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 01 Jun 2017 pada 11.18
-- Versi Server: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@... |
DROP DATABASE biblioteca;
CREATE DATABASE biblioteca;
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- S... |
CREATE TABLE trans
(
id_trans RAW(16) DEFAULT SYS_GUID() NOT NULL ,
trans_date DATE ,
customer_id_customer RAW(16) NOT NULL ,
item_id_item RAW(16) NOT NULL
) ;
ALTER TABLE trans ADD CONSTRAINT trans_PK PRIMARY KEY ( id_trans ) ; |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Tempo de geração: 18/01/2020 às 11:25
-- Versão do servidor: 5.7.23-23
-- Versão do PHP: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
<reponame>Sleeya/DatabasesBasics-MSSQL-Server
SELECT TOP(3) c.CustomerID,
CONCAT(c.FirstName,' ',c.LastName) AS FullName,
t.Price AS TicketPrice,
a.AirportName AS Destination
FROM Customers AS c
JOIN Tickets AS t
ON c.CustomerID = t.CustomerID
JOIN Flights AS f
ON t.FlightID = f.FlightID
JOIN Airports AS a
... |
<filename>Java-Kotlin/resource/183.sql
SELECT
c.NAME AS Customers
FROM
Customers c
WHERE
c.Id NOT IN ( SELECT o.CustomerId FROM Orders o );
select c.`Name` as Customers from Customers c left join Orders o on c.Id = o.CustomerId where o.CustomerId is NULL;
select `Name` as `Customers` from Customers where Id not i... |
# Write your MySQL query statement below
select Email from Person GROUP BY Email HAVING count(Email) > 1 |
<filename>src/main/resources/db/migration/V33__Migrate_to_innsendingshjemmel.sql
ALTER TABLE klage.mottak_hjemmel
ALTER COLUMN lov DROP NOT NULL;
ALTER TABLE klage.mottak_hjemmel
ADD COLUMN hjemmel_id TEXT;
--migrere det som finnes i prod fra K9
update klage.mottak_hjemmel set hjemmel_id = '1000.009' where ka... |
<gh_stars>1-10
USE [ANTERO]
GO
/****** Object: View [dw].[v_virta_otp_kvliikkuvuus] Script Date: 20.3.2020 11:23:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dw].[v_virta_otp_kvliikkuvuus] AS
SELECT
f.tilastovuosi
,d4.sukupuoli_fi AS 'Sukupuoli'
,d8.maatjavaltiot2_fi AS '... |
--Problem 17
ALTER TABLE Employees
ADD FOREIGN KEY (AddressId) REFERENCES Addresses(Id)
ALTER TABLE Employees
ADD FOREIGN KEY (DepartmentId) REFERENCES Departments(Id)
ALTER TABLE Addresses
ADD FOREIGN KEY (TownId) REFERENCES Towns(Id) |
-- This query extracts weights for adult ICU patients on their first ICU day.
-- It does *not* use any information after the first ICU day, as weight is
-- sometimes used to monitor fluid balance.
-- ** Requires the echodata view, generated by etc/echo-data.sql
DROP MATERIALIZED VIEW IF EXISTS weightfirstday CASCADE;... |
-- POUR CHARGER DANS SQLite3 :
-- sqlite3 join_algorithms_versus_sqlite3.db
-- .timer on
-- .read join_algorithms_schema.sql
drop table if exists Table1;
drop table if exists Table2;
-- Un schéma très simple, qui reprend le benchmark des 3 algos en Python qu'on rappelle ici :
--
-- def benchmark(size_1=1000, nb_val_... |
<gh_stars>0
CREATE DATABASE item_db;
CREATE TABLE role
(
id serial PRIMARY KEY,
name VARCHAR (2000)
);
CREATE TABLE rules
(
id serial PRIMARY KEY,
name VARCHAR (2000)
);
CREATE TABLE role_rules
(
id serial PRIMARY KEY,
role_id INT REFERENCES role(id),
rules_id INT REFERENCES rules(id)
);
CREATE TABLE user
(
id... |
CREATE TABLE ipc_drug_presc_h(
ID STRING,
HEALTH_SERVICE_ORG_ID STRING,
CHARGE_DATE STRING
)WITH(
type ='kafka11',
bootstrapServers ='slave2:9092',
zookeeperQuorum ='master:2181,slave2:2181,slave3:2181/kafka',
offsetReset ='latest',
topic ='ipc_drug_presc_h',
groupId='CDXT',
parallel... |
<gh_stars>0
CREATE TABLE `tb_qdjqayreum`
(
`col_gqvgqzlgna` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') DEFAULT NULL,
`col_xnynymrwbx` decimal(8, 1) DEFAULT NULL,
UNIQUE KEY `symb_znikarajci` (`<KEY>`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
--create table REG_CLUSTER_LOCK
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[REG_CLUSTER_LOCK]') AND TYPE IN (N'U'))
CREATE TABLE REG_CLUSTER_LOCK (
REG_LOCK_NAME VARCHAR (20),
REG_LOCK_STATUS VARCHAR (20),
REG_LOCKED_TIME DATETIME,
... |
<gh_stars>1-10
CREATE INDEX "IX_BIOL_RELATION_COLLOBJID" ON "BIOL_INDIV_RELATIONS" ("COLLECTION_OBJECT_ID")
|
/*
Warnings:
- The values [CREATEANY,READANY,UPDATEANY,DELETEANY,DELETEOWN,UPDATEOWN] on the enum `PermissionAction` will be removed. If these variants are still used in the database, this will fail.
*/
-- AlterEnum
BEGIN;
CREATE TYPE "PermissionAction_new" AS ENUM ('update:any', 'read:any', 'delete:own', 'delete... |
set allow_suspicious_low_cardinality_types = 1;
CREATE TABLE lc_null_int8_defnull (val LowCardinality(Nullable(Int8)) DEFAULT NULL) ENGINE = MergeTree order by tuple();
SELECT ignore(10, ignore(*), ignore(ignore(-2, 1025, *)), NULL, *), * FROM lc_null_int8_defnull AS values;
SELECT ignore(toLowCardinality(1), toLowCa... |
ALTER TABLE versions DROP COLUMN version_int;
|
CREATE TYPE my_crosstab_float8_5_cols AS (
my_row_name text,
my_category_1 float8,
my_category_2 float8,
my_category_3 float8,
my_category_4 float8,
my_category_5 float8
);
CREATE OR REPLACE FUNCTION crosstab_float8_5_cols(text)
RETURNS setof my_crosstab_float8_5_cols
AS '$libdir/tablef... |
autocommit off;
insert into rdb.employees_v (ssn, name, dept_no, salary, location)
values (555555555, '<NAME>', 5, $50000, 'birmingham');
rollback;
|
<filename>sql/_01_object/_09_partition/_005_reorganization/cases/1232.sql<gh_stars>1-10
-- alter table which create using int,time,date,timestamp to add 1 range partition on time field
create table range_test(id int not null ,
test_time time,
test_date date,
test_timestamp timestamp,primary key(id,test_time)... |
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Dec 02, 2019 at 05:43 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>Musab-Nazir/HomesForGnomes
-- File: favourites.sql
-- Author: Group 24
-- <NAME>
-- <NAME>
-- <NAME>
-- <NAME>
-- Date: 2018/12/07
-- Description: SQL file to create favourites property/value table
DROP TABLE IF EXISTS favourites;
CREATE TABLE favourites(
user_id VARCHAR(20) NOT NULL REFERENCES users(us... |
prompt --application/shared_components/user_interface/template_options
begin
-- Manifest
-- THEME OPTIONS: 105814
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2021.04.15'
,p_release=>'21.1.2'
,p_default_workspace_id=>32532315908301997117
,p_default_application_id=>105814
,p_default_id_... |
<filename>oracle/pl-sql/009-triggers/12-triggers-mutating-table-errors.sql
SET SERVEROUTPUT ON;
/*
mutating table error
- row level triggers | statemet level only in case of delete cascade
mutating table is:
a) a table that being modified
b) a table that might be update with the DELETE CASCADE
handle... |
USE Geography
SELECT TOP 30 CountryName, Population
FROM Countries
WHERE ContinentCode = 'EU'
ORDER BY Population DESC
|
alter table uttaksresultat drop column uttaksplan; |
<filename>DBMS/M01_MySQL/ExamPreparation/EP_2018-10-21/Solutions/P01_Insert.sql
USE `cjms`;
INSERT INTO `travel_cards`(`card_number`, `job_during_journey`, `colonist_id`, `journey_id`)
SELECT
(
CASE
WHEN c.`birth_date` > '1980-01-01' THEN CONCAT_WS('', YEAR(c.`birth_date`), DAY(c.`birth_dat... |
/*Departments Info*/
SELECT department_id,
COUNT(*) AS `Numbers of employees`
FROM employees
GROUP BY department_id
ORDER BY department_id, `Numbers of employees`;
/*Average salary*/
SELECT department_id,
ROUND(AVG(salary),2) AS `Average Salary`
FROM employees
GROUP BY department_id
ORDER BY department_id;
/*addr... |
<reponame>longshaww/RentApartment
INSERT INTO apartment.dbo.BenChoThue_TienNghiBenChoThue (MaBCT,MaTienNghiBCT) VALUES
(N'BCT1',N'TNBCT1'),
(N'BCT1',N'TNBCT10'),
(N'BCT1',N'TNBCT11'),
(N'BCT1',N'TNBCT12'),
(N'BCT1',N'TNBCT13'),
(N'BCT1',N'TNBCT14'),
(N'BCT1',N'TNBCT15'),
(N'BCT1',N'TNBCT16'),
(N'BCT1'... |
<reponame>opatut/migr8
this is the description for test02a
-- UP --
ALTER TABLE test01 ADD COLUMN test02a INT;
-- DOWN --
ALTER TABLE test01 DROP COLUMN test02a;
|
CREATE PROCEDURE [dbo].[ContactLink_Set]
(
@RecordId int,
@ObjectId int,
@ContactID int,
@Mode int
)
AS
SET NOCOUNT ON
DECLARE @Id int
SET @Id = (SELECT TOP 1 Id FROM ContactLink WHERE ObjectId=@ObjectId AND RecordId=@RecordId)
if(@Id is null)
begin
/* INSERT */
INSERT INTO ContactLink
... |
SELECT * FROM [nt:unstructured] WHERE [jcr:mixinTypes] = "sulu:page" AND [i18n:%s-state] = 1';
SELECT * FROM [nt:unstructured] AS a WHERE ' . implode(' AND ', $where);
SELECT locale FROM ca_category_translations WHERE idCategories = c.id LIMIT 1) WHERE default_locale = "";
SELECT u FROM SuluCoreBundle:Example u ORDER B... |
--Step 1 Let's create table
IF OBJECT_ID(N'dbo.Twitter', N'U') IS NOT NULL
BEGIN
DROP TABLE [dbo].[Twitter]
END
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Twitter]
(
[Time] [nvarchar](4000) NULL,
[Hashtag] [nvarchar](4000) NULL,
[Tweet] [nvarchar](4000) NULL,
[City] [nvarchar](4000... |
CREATE SEQUENCE IF NOT EXISTS table2_col1_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
CREATE TABLE IF NOT EXISTS table2 (
col1 integer DEFAULT nextval('table2_col1_seq'::regclass) NOT NULL
);
ALTER TABLE table2 OWNER TO fordfrog;
ALTER SEQUENCE table2_col1_seq
OWNED BY table2.col1;
|
<gh_stars>1-10
## 根据习题查询
#macro($listByQuestion(questionId))
SELECT t.* from question_metaknow t where t.question_id =:questionId
#end
## 根据习题查询
#macro($listByQuestions(questionIds))
SELECT t.* from question_metaknow t where t.question_id in (:questionIds)
#end
## 根据学科获得元知识点对应的没有新知识点习题个数
#macro($listQues... |
<gh_stars>1-10
/**
* Database schema required by \yii\i18n\DbMessageSource.
*
* @author <NAME> <<EMAIL>>
* @link http://www.yiiframework.com/
* @copyright 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @since 2.0.7
*/
drop table if exists "source_message";
drop table if ex... |
<reponame>NCIP/national-biomedical-image-archive
/*L
Copyright SAIC, Ellumen and RSNA (CTP)
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
L*/
--
-- The following entries creates a super admin application incase... |
<filename>dspace-api/src/main/resources/org/dspace/storage/rdbms/sqlmigration/oracle/V6.0_2016.07.26__DS-3277_fix_handle_assignment.sql
--
-- The contents of this file are subject to the license and copyright
-- detailed in the LICENSE and NOTICE files at the root of the source
-- tree and available online at
--
-- htt... |
<reponame>cionibe/proyect5155<filename>database/backup_db.sql<gh_stars>0
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.14
-- Dumped by pg_dump version 9.5.14
-- Started on 2018-11-28 18:25:01
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conformin... |
<reponame>loeyae/ruoyi-vue-pro
DELETE FROM "system_dept";
DELETE FROM "system_dict_data";
DELETE FROM "system_role";
DELETE FROM "system_role_menu";
DELETE FROM "system_menu";
DELETE FROM "system_user_role";
DELETE FROM "system_user_post";
DELETE FROM "system_dict_type";
DELETE FROM "system_user_session";
DELETE FROM "... |
<reponame>KarenBrissow/Portfolio
INSERT INTO TB_PRODUTOS
(PRODUTO, NOME, EMBALAGEM, TAMANHO, SABOR, PRECO_LISTA)
VALUES
('1040107','Light - 350 ml - Mel�ncia', 'Lata',
'350 ml','Mel�ncia',4.56);
SELECT * FROM TB_PRODUTOS; |
# 1 tuple insert, with no column specification.
CREATE TABLE tbl(c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, c3 INTEGER)
INSERT INTO tbl VALUES (1, 2, 3)
SELECT c1, c2, c3 from tbl
DROP TABLE tbl
# 1 tuple insert, with columns inserted in schema order
CREATE TABLE tbl(c1 INTEGER NOT NULL PRIMARY KEY, c2 INTEGER, c3 IN... |
INSERT INTO department_table (department_name)
VALUES ("Sales"), ("Engineering"), ("Accounting"), ("Legal");
INSERT INTO role_table (title, salary, department_id)
VALUES ("Sales Lead", 80000, 1), ("Sales Person", 55000, 1), ("Lead Engineer", 120000, 2), ("Software Engineer", 90000, 2),
("Account Manager", 100000, ... |
<reponame>magnuso/PoC
/*******************************************************************************
PoC Web-Application-Framwork
http://poc-online.net/
Copyright (c) 2013, PoC - <NAME>
Released under the MIT license
http://poc-online.net/license
-- pocPackage: pocCore
********************************************... |
-- Name: dataset;
CREATE TABLE dataset (
id_record serial,
id_city integer,
IntersSemafor double precision,
OV_Tra_Niv double precision,
ObraVial_Bacheo double precision,
OV_Acarreo double precision,
OV_Sumin double precision,
PrecioUnitarioBacheoProfundo double precision,
FactorUnitarioBacheoProfundo do... |
USE `fsd`;
SELECT
MAX(sd.`speed`) AS `max_speed`, t.`name` AS `town_name`
FROM
`towns` AS `t`
LEFT JOIN
`stadiums` AS `s` ON t.`id` = s.`town_id`
LEFT JOIN
`teams` AS `te` ON s.`id` = te.`stadium_id`
LEFT JOIN
`players` AS `p` ON te.`id` = p.`team_id`
LEFT JOIN
... |
IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'Posts')
BEGIN
CREATE TABLE Posts (
Id UNIQUEIDENTIFIER NOT NULL,
ReceiverId UNIQUEIDENTIFIER NOT NULL,
SenderId UNIQUEIDENTIFIER NOT NULL,
Content VARCHAR(MAX) NOT NULL,
CreatedAt DATETIME NOT NULL,
CONSTRAINT PK_Posts PRIMARY KEY (... |
<reponame>supersciencegrl/Sandbox
--Create new databases
--Requires admin
CREATE DATABASE testdb;
CREATE DATABASE dummydb;
--Check which databases exist with command:
SHOW DATABASES;
--Drop a database
--Requires admin
DROP DATABASE dummydb;
--Create full backup
BACKUP DATABASE testdb
TO DISK = 'testdb.db';
--Or back... |
USE [bmd_hst2020]
GO
/****** Object: Table [dbo].[Ta_Pengadaan_Kontrak_Rinc_HST] Created By https://github.com/UrangBanua ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Ta_Pengadaan_Kontrak_Rinc_HST](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Tahun] [int] NOT NULL,
[No_Kontr... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 10 Des 2020 pada 07.32
-- Versi Server: 10.1.19-MariaDB
-- PHP Version: 5.6.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... |
CREATE VIEW [catalog].[execution_property_override_values]
AS
SELECT [property_id],
[execution_id],
[property_path],
[property_value],
[sensitive]
FROM [internal].[execution_property_override_values]
WHERE [execution_id] in (SELECT [id] FROM [internal].[cu... |
select it from the listserv section in NYUHome or send a blank, plain text, email to <a moz-do-not-send="true" href="mailto:<EMAIL>" target="_blank"><EMAIL></a>.<p> </p></div></li><li><p><a onclick="return toggleMe('faq8')">Is the Data Services lab open at nigh... |
ALTER TABLE "public"."users" ADD COLUMN "useAvatar" boolean NOT NULL DEFAULT true; |
CREATE TABLE "plugin_sms_to_wordpress" (
"id_user" INTEGER PRIMARY KEY,
"wp_username" VARCHAR(50) NOT NULL,
"wp_password" VARCHAR(255) NOT NULL,
"wp_url" VARCHAR(100) NOT NULL
); |
drop table if exists gh_ost_test;
create table gh_ost_test (
id int auto_increment,
i int not null,
dt0 datetime(6),
dt1 datetime(6),
ts2 timestamp(6),
updated tinyint unsigned default 0,
primary key(id),
key i_idx(i)
) auto_increment=1;
drop event if exists gh_ost_test;
delimiter ;;
create event gh_os... |
-- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
-- MySQL core database, version 3.4.2
CREATE TABLE IF NOT EXISTS `activedownload` (
`activedownload_id` bigint(20) NOT NULL AUTO_INCREMENT,
`ip` varchar(100) NOT NULL DEFAULT '',
`date_creation` timestamp NOT NULL DEFAULT CURRE... |
<reponame>aravi5/drill-test-framework
select count(*) from j1 where c_timestamp not in ( select c_timestamp from j5) ;
|
DROP PROCEDURE IF EXISTS `CreateAssetGroup`;
CREATE PROCEDURE `CreateAssetGroup` (inOrgID VARCHAR(36), _GroupID INT, _ScannerSourceID NVARCHAR(36), _ScannerSourceConfigID VARCHAR(36))
#BEGIN#
INSERT INTO AssetGroup(OrganizationID, GroupID, ScannerSourceID, ScannerSourceConfigID) VALUES (inOrgID, _GroupID, _ScannerSour... |
<gh_stars>0
{{ config(
alias='mart_hubspot_email_event_click',
enabled=fivetran_utils.enabled_vars(['hubspot_marketing_enabled','hubspot_email_event_enabled','hubspot_email_event_click_enabled'])
) }}
{{ email_events_joined(var('email_event_click')) }}
|
--
-- Copyright (C) 2017-2019 HERE Europe B.V.
--
-- 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 ... |
<filename>grouper/conf/ddl/GrouperDdl_Grouper_install_postgres.sql
CREATE TABLE grouper_ddl
(
id VARCHAR(40) NOT NULL,
object_name VARCHAR(128),
db_version INTEGER,
last_updated VARCHAR(50),
history VARCHAR(4000),
PRIMARY KEY (id)
);
CREATE UNIQUE INDEX grouper_ddl_object_name_idx ON grouper_dd... |
<reponame>Rob--W/phabricator
CREATE TABLE {$NAMESPACE}_xhpastview.xhpastview_parsetree (
id int unsigned not null auto_increment primary key,
authorPHID varchar(64) binary,
input longblob not null,
stdout longblob not null,
dateCreated int unsigned not null,
dateModified int unsigned not null
);
|
<filename>fixtures/doctests/datatype/031/input.sql
SELECT 'The Fat Rats'::tsvector;
tsvector
--------------------
'Fat' 'Rats' 'The'
|
alter table "public"."Room" drop constraint "Room_videoRoomBackendName_fkey";
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 1192.168.3.11
-- Tiempo de generación: 13-09-2020 a las 01:15:33
-- Versión del servidor: 10.4.13-MariaDB
-- Versión de PHP: 7.4.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... |
-- Test 数据库.
CREATE TABLE test_abc (
id VARCHAR(32) PRIMARY KEY,
a INT,
b INT,
c INT
);
INSERT INTO test_abc(
id, a, b, c
) VALUES (
'TEST', 1,2,3
);
INSERT INTO test_abc(
id, a, b, c
) VALUES (
'TEST2', 4,5,6
); |
/*****************************************************************************
Title: Arrays and Custom Functions
Use: To demonstrate using databases with PHP & SQL.
Author: <NAME>
School: Southern Illinois University
Term: Fall 2019
Developed: 10/13/19
Tested: 10/13/19
*****************************... |
insert into routes2 (id, user_id, travel_id, transport, email_notify, cell_number_notify, active) values (500, 1, 63, 'car', false, true, true);
insert into routes2 (id, user_id, travel_id, transport, email_notify, cell_number_notify, active) values (501, 2, 249, 'car', false, false, true);
insert into routes2 (id, use... |
<gh_stars>0
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 05/22/2019 02:45:18
-- Generated from EDMX file: C:\Users\kimo\Desktop\TOTAL LAB2\---PROYECTOS----\PARAPROTOTI... |
drop table service.person;
|
SET DEFINE OFF;
CREATE UNIQUE INDEX AFW_13_PAGE_ITEM_PK ON AFW_13_PAGE_ITEM
(SEQNC)
LOGGING
/
|
<reponame>codesanook/sql-server-linux-docker
IF db_id('Codesanook') IS NULL
BEGIN
CREATE DATABASE Codesanook
END
GO |
CREATE TABLE AwardsManagers(
playerID VARCHAR(9) NOT NULL PRIMARY KEY
,awardID VARCHAR(25) NOT NULL
,yearID INTEGER NOT NULL
,lgID VARCHAR(2) NOT NULL
,tie VARCHAR(1)
,notes VARCHAR(30)
);
INSERT INTO AwardsManagers(playerID,awardID,yearID,lgID,tie,notes) VALUES ('larusto01','BBWAA Manager ... |
<reponame>LuisaRestrepo/MisionTIC2022-Ciclo2-Grupo464748<gh_stars>1-10
USE sakila;
SELECT *
FROM payment
WHERE rental_id = 14488;
DELETE
FROM payment
WHERE rental_id = 14488; |
<filename>WebRoot/install/jsprun_zh_CN.sql<gh_stars>1-10
-- --------------------------------------------------
--
-- JspRun! SQL file for installation
-- $Id: jsprun.sql utf8 10517 2007-09-04 01:15:26Z monkey $
--
-- --------------------------------------------------
DROP TABLE IF EXISTS jrun_access;
CREATE TABLE jrun... |
DROP TABLE IF EXISTS `field_group_translations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `field_group_translations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`field_group_id` int(11) NOT NULL,
`locale` varchar(255) COLLATE utf8_unicode... |
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100
-- file:rules.sql ln:366 expect:true
insert into rtest_nothn1 values (2, 'want this')
|
<filename>seeds.sql
DROP DATABASE IF EXISTS businessDB;
CREATE DATABASE businessDB;
USE businessDB;
CREATE TABLE department (
id INT AUTO_INCREMENT NOT NULL,
department_name varchar(30) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE roles (
id INT AUTO_INCREMENT NOT NULL,
title varchar(30) NOT NULL,
salar... |
<reponame>askmohanty/metasfresh<filename>backend/de.metas.contracts/src/main/sql/postgresql/system/50-de.metas.contracts/5594701_cli_gh11694_mediateOrder_doctype_printformat.sql
update c_doctype set ad_printformat_id=1000015, updatedby=99, updated='2021-10-28 16:22' where c_doctype_id=541018;
|
<reponame>jereIN/sakai
-----------------------------------------------------------------------------
-- SAKAI_REALM
-- Note: REALM_ID is the old "resource reference" string id for the realm
-- REALM_KEY is the surrogate key integer id used to crossreference the other tables
---------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.