text
stringlengths
1
1.05M
SELECT DB_NAME(database_id) As DatabaseName, CASE WHEN mirroring_guid IS NOT NULL THEN 'Mirroring is On' ELSE 'No mirror configured' END AS IsMirrorOn, mirroring_state_desc, CASE WHEN mirroring_safety_level=1 THEN 'High Performance' WHEN mirroring_safety_level=2 THEN 'High Safety' ELSE NULL END AS MirrorSafety, mirrori...
create view "Sales by Category" AS SELECT Categories.CategoryID, Categories.CategoryName, Products.ProductName, Sum("Order Details Extended".ExtendedPrice) AS ProductSales FROM Categories INNER JOIN (Products INNER JOIN (Orders INNER JOIN "Order Details Extended" ON Orders.OrderID = "Order Details Extended"....
delete from APP.TD_INSTRUMENT_SCD; call syscs_util.import_table_ex('APP', 'TD_INSTRUMENT_SCD', '<path_prefix>/lib/ImportData/TD_INSTRUMENT_SCD.dat', '|', NULL, NULL, 0, 0, 5, 0, 'ImportOra', 'TD_INSTRUMENT_SCD.dat');
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2022 at 03:46 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.3.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE PROCEDURE [dbo].[GetAUser] @user_Id varchar(40) AS SET NOCOUNT ON; BEGIN SELECT _id, first_name, last_name, email, is_admin FROM [dbo].[users] WHERE _id = @user_Id; END;
USE [Intune]; GO SET NOCOUNT ON; /*************************************************************************************************************************** Object: dbo.v_WIP_neutralDomainResourcesInfo History: Date Version Author Notes: 04/27/2021 0.0 Benjamin Reynolds ...
CREATE TABLE [dbo].[StaffRoles] ( [Id] [uniqueidentifier] NOT NULL, [RoleId] [uniqueidentifier] NOT NULL, [StaffId] [uniqueidentifier] NOT NULL, [UserId] [uniqueidentifier] NOT NULL, [IsValid] [bit] NOT NULL CONSTRAINT [DF__StaffRole__IsVal__2DD1C37F] DEFAULT ((1)), [Version] [timestamp] NOT NULL, [ModifiedDateUtc] [da...
-- autovacuum.test -- -- execsql { -- SELECT name, rootpage FROM sqlite_master; -- } SELECT name, rootpage FROM sqlite_master;
# ************************************************************ # Sequel Pro SQL dump # Version 4529 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OL...
DROP DATABASE IF EXISTS love_monster_db; CREATE DATABASE love_monster_db;
drop table if exists test; CREATE TABLE test (sno NUMERIC(6), last_name VARCHAR(30), salary int) PARTITION BY RANGE (ceil(salary)) ( PARTITION p1 VALUES LESS THAN (5000) , PARTITION p2 VALUES LESS THAN (10000) , PARTITION p3 VALUES LESS THAN (15000) , PARTITION p4 VALUES LESS THAN...
-- -- Copyright 2009-2016 the original author or authors. -- -- 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 -- -- Unles...
-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) -- -- Host: localhost Database: oai_db -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0.17.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
CREATE TABLE workspaces ( id SERIAL PRIMARY KEY, display_order integer NOT NULL, name VARCHAR NOT NULL, tenant_id INTEGER NOT NULL REFERENCES tenants(id) )
create table Metrics.ProviderEarning( Id bigint not null identity(1,1) constraint PK_ProviderEarning primary key clustered ,SubmissionSummaryId bigint not null constraint FK_ProviderEarning__SubmissionSummary_Id foreign key references [Metrics].[SubmissionSummary] (Id) on delete cascade ,EarningsType tinyint not ...
create table t( a varchar(10)); insert into t value('SQL'); create index idx on t(a) where LOWER(a) ='sql'; select /*+ RECOMPILE */* from t where LOWER(a) = 'sql' using index idx(+); drop table t;
DROP TABLE IF EXISTS Run; DROP TABLE IF EXISTS HTTPOutput; DROP TABLE IF EXISTS OutputFile; DROP TABLE IF EXISTS CodeProblem; ALTER TABLE CuratedSnippet ADD Output TEXT
create database a1; create table itens ( id int not null auto_increment, group_id int, material_id int, item_qty decimal(10,9), item_dim_1 varchar(10), item_dim_2 varchar(10), item_dim_3 varchar (10), item_class varchar(20), primary key (id) ); SELECT * FROM itens LIMIT 0, 16000;
-- MySQL dump 10.13 Distrib 5.5.28, for Win64 (x86) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.5.28 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 ...
-- INSTALL COMMANDS EXTRACTED TO INSTALL.SQL -- Insert teacher into Teacher Table INSERT INTO Teacher (`zID`, `email`, `fname`, `lname`, `password`) VALUES (5217759, 'z5217759@ad.unsw.edu.au', 'Jarod', 'Brennfleck', '$2b$12$nBqcI4CEVdSEam8iELnJf.jXvM.oXV7BU0Zb7OAnJdrXHAAfDoY4q'); -- Password is Brennfleck ...
-- @testpoint:openGauss关键字tsfield(非保留),作为列名带引号并且排序时使用该列,建表成功,tsfield列按字母大小排序 drop table if exists explain_test; create table explain_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric...
UPDATE LocalizedText SET Text="+1 [ICON_ENVOY] Envoy when you build a wonder, including Apadana, in your cities. Grants an additional [ICON_ENVOY] Envoy when Apadana is constructed. +3 Influence points per turn towards earning city-state [ICON_Envoy] Envoys. [NEWLINE][NEWLINE]Must be built adjacent to your [ICON_CAPITA...
0|Nota en pantalla 1|Sin Nota en pantalla (Nota textual contenida en el campo 580)
DROP TABLE IF EXISTS bicycle_thefts; CREATE TABLE bicycle_thefts ( voorval_nummer character varying, kennisname character varying, mk character varying, mk_omschrijving character varying, poging character varying, district character varying, werkgebied character varying, plaats character varying, buur...
/* Copyright 2011 tSQLt 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 agreed to in writing,...
SELECT * FROM STIGIT.V_F_PERS per INNER JOIN STIGIT.V_F_PODR podr ON podr.KODZIFR = per.KODZIFR INNER JOIN STIGIT.V_USER_SECURE sec ON per.TN = sec.TN
-- @testpoint: opengauss关键字locator(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists locator; create function locator(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "locator"; create function "locator"(i integer) returns integer as $$ beg...
WITH CTE AS (SELECT [TodaysDate],[databaseName],[SchemaName],[TableName],[RecordCount],[Ddifference],ROW_NUMBER() OVER (ORDER BY DatabaseName,SchemaName,TableName,TodaysDate) AS ROW_Num FROM [tableRowCountPPROD] t1 WHERE TableName LIKE 'DisciplineCodeCorrections' AND SchemaName LIKE 'dbo') UPDATE t SET t.Ddifference = ...
CREATE PROCEDURE [AgentTests].[Test New Agent category is correctly created] AS BEGIN -- Align DECLARE @ExpectedCat SYSNAME = N'Async'; DECLARE @ActualCat NVARCHAR(128); -- Act EXEC [AsyncAgent].[Private_AddAsyncCategoryIfNotExists]; SET @ActualCat = ( SELECT TOP 1 [name] FROM [msdb].[dbo].[syscategories]...
ALTER TABLE `sync_drug` MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=245// ALTER TABLE `sync_drug` ADD `Active` varchar(2) NOT NULL DEFAULT '1'//
-- Affinity Groups Stored Procedures script file -- get All Affinity Groups CREATE OR REPLACE FUNCTION getAllFromAffinityGroups () RETURNS SETOF affinity_groups_view STABLE AS $PROCEDURE$ BEGIN RETURN QUERY SELECT affinity_groups_view.* FROM affinity_groups_view; END;$PROCEDURE$ LANGUAGE plpgsql; -- g...
SELECT last_name, salary, commission_pct FROM employees WHERE commission_pct IS NOT NULL ORDER BY 2, 3;
-- @testpoint:openGauss保留关键字current_catalog同时作为表名和列名带引号,建表成功 drop table if exists "current_catalog"; create table "current_catalog"( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_...
-- original: capi3b.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(x); INSERT INTO t1 VALUES(1); INSERT INTO t1 VALUES(2); SELECT * FROM t1 ;SELECT * FROM t1 ;BEGIN; SELECT * FROM t1 ;SELECT * FROM t1 ;SELECT * FROM t1 ;SELECT * FROM t1;
-- @testpoint: opengauss关键字character_set_name非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists character_set_name_test; create table character_set_name_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists character_set_name; create index character_set_name on character_set_name_test(id); --清理环境 drop ...
DROP TABLE IF EXISTS newtable; CREATE TABLE newtable( id SERIAL PRIMARY KEY, name VARCHAR(255), img TEXT, level VARCHAR(255) )
/****** Object: UserDefinedFunction [dbo].[GetRunRequestDatasetNameList] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[GetRunRequestDatasetNameList] /**************************************************** ** ** Desc: ** Builds a comma separated list of the datasets **...
/* Day wise logic */ create table IF NOT EXISTS student_attendance_meta ( day_1 boolean,day_2 boolean,day_3 boolean,day_4 boolean,day_5 boolean,day_6 boolean,day_7 boolean,day_8 boolean,day_9 boolean,day_10 boolean, day_11 boolean,day_12 boolean,day_13 boolean,day_14 boolean,day_15 boolean,day_16 boolean,day_17 b...
CREATE TABLE IF NOT EXISTS `mtstransfer` ( `inventoryitemid` bigint(20) UNSIGNED NOT NULL, `characterid` int(11) DEFAULT NULL, `accountid` int(11) DEFAULT NULL, `packageid` int(11) DEFAULT NULL, `itemid` int(11) NOT NULL DEFAULT 0, `inventorytype` int(11) NOT NULL DEFAULT 0, `position` int(11) NOT NULL DE...
[playlist] numberofentries=1 File1=http://ice1.somafm.com/dubstep-128-mp3 Title1=Soma FM - Dub Step Beyond Length1=-1 version=2
// // nekRS User Defined File // #include <math.h> #include "udf.hpp" static occa::kernel fillFUKernel; void userf(nrs_t *nrs, dfloat time, occa::memory o_U, occa::memory o_FU) { mesh_t* mesh = nrs->meshV; fillFUKernel(mesh->Nlocal, nrs->fieldOffset, nrs->cds->o_S, nrs->o_FU); } void UDF_LoadKernels(nrs_t *nrs)...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 06, 2020 at 10:26 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
-- Inserindo os estados e algumas cidades INSERT INTO tb05_estado (tb05_nome) values ('AC'), ('AL'), ('AP'), ('AM'), ('BA'), ('CE'), ('DF'), ('ES'), ('GO'), ('MA'), ('MT'), ('MS'), ('MG'), ('PA'), ('PR'), ('PE'), ('PI'), ('RJ'), ('RN'), ('RS'), ('RO'), ('RR'), ('SC'), ('SP'), ('SE'), ('TO');
drop table if exists foo5; create table foo5 ( a integer auto_increment ); select foo5_ai_a.next_value; drop table foo5; create serial foo5_ai_a; select foo5_ai_a.next_value; drop serial foo5_ai_a; create table foo5 ( a integer auto_increment, b int); select foo5_ai_a.next_value; alter table foo5 drop attribute a; c...
-- -- PostgreSQL database dump -- -- Dumped from database version 13.0 -- Dumped by pg_dump version 13.0 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...
CREATE TABLE country (id NVARCHAR(2) NOT NULL, name NVARCHAR(64) NOT NULL, PRIMARY KEY (id)); INSERT INTO [country] ([id], [name]) VALUES ('AF', 'Afganistan'); INSERT INTO [country] ([id], [name]) VALUES ('ZA', 'Africa de Sud'); INSERT INTO [country] ([id], [name]) VALUES ('AL', 'Albania'); INSERT INTO [country] ([id]...
# 08_43: HTTP vs HTTPS SELECT client, COUNTIF(STARTS_WITH(url, 'https://')) AS https, COUNTIF(STARTS_WITH(url, 'http://')) AS http, ROUND((COUNTIF(STARTS_WITH(url, 'https://')) / COUNT(0)) * 100, 2) AS pct_https, ROUND((COUNTIF(STARTS_WITH(url, 'http://')) / COUNT(0)) * 100, 2) AS pct_http FROM `httparchive...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 26. Jan 2020 um 20:56 -- 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_CH...
create table biz_activity ( id uuid not null constraint biz_activity_pk primary key, name varchar, create_time timestamp, js json );
{% materialization incremental, adapter='snowflake' -%} {%- set unique_key = config.get('unique_key') -%} {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%} {%- set identifier = model['alias'] -%} {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -...
-- Convert schema '/home/melmoth/amw/AmuseWikiFarm/dbicdh/_source/deploy/36/001-auto.yml' to '/home/melmoth/amw/AmuseWikiFarm/dbicdh/_source/deploy/37/001-auto.yml':; ; -- No differences found;
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 14 jan. 2021 à 17:01 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
drop table if exists sys_user; -- 用户 create table sys_user ( id bigint(20) primary key auto_increment, user_name varchar(20) not null comment '用户名', password varchar(255) not null comment '密码', telphone varchar(20) comment '手机', sex varchar(1) default '0' comment '0-男,1-女,2-位置', age int(3) comme...
-- // RMP-12837 introduce dp amabari credentials -- Migration SQL that makes the change goes here. ALTER TABLE cluster ADD COLUMN IF NOT EXISTS dpambariuser VARCHAR(255); ALTER TABLE cluster ADD COLUMN IF NOT EXISTS dpambaripassword VARCHAR(255); -- //@UNDO -- SQL to undo the change goes here. ALTER TABLE cluster DR...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: FloodReliefLive -- ------------------------------------------------------ -- Server version 5.5.56 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
-- auto Generated on 2021-07-11 DROP TABLE IF EXISTS sys_user_role; CREATE TABLE sys_user_role( user_id BIGINT (15) NOT NULL AUTO_INCREMENT COMMENT '用户id', role_id BIGINT (15) NOT NULL COMMENT '角色id', PRIMARY KEY (user_id) )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT 'sys_user_role';
-- Abrir o "CMD do MYSQL", onde se encontra o arquivo abaixo LOAD DATA LOCAL INFILE 'TabelaIBPTaxSP21.1.G.csv' INTO TABLE trib_olho_imposto CHARACTER SET latin1 FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (ncm,ex,tabela,descricao_ibpt,aliq_fede_nacional,aliq_fede_im...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 16, 2017 at 02:48 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
CREATE TABLE acs2015_5yr.tmp_seq0001 ( fileid varchar(6), filetype varchar(6), stusab varchar(2), chariter varchar(3), seq varchar(4), logrecno int, B00001001 varchar, B00002001 varchar ) WITH (autovacuum_enabled = FALSE, toast.autovacuum_enabled = FALSE); CREATE TABLE acs2015_5yr.tmp_seq0001_moe ( fileid varchar(6), ...
INSERT INTO ROLES(id, name) VALUES(0, 'ROLE_ADMIN'); INSERT INTO ROLES(id, name) VALUES(1,'ROLE_USER'); INSERT INTO ROLES(id, name) VALUES(2,'ROLE_VERIFIED'); INSERT INTO USERS(id, password, username, email) VALUES('41096c69-47db-4fdb-9a84-bef10e571546', '$argon2id$v=19$m=4096,t=3,p=1$c4QnZmuUngMznjDfDzO3Lw$IfqhldhF+n4...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.VIEWS...
--Problem URL: https://www.hackerrank.com/challenges/weather-observation-station-11/problem SELECT DISTINCT CITY FROM STATION WHERE CITY NOT REGEXP '^[AEIOU]' OR CITY NOT REGEXP '[aeiou]$';
-- studyaccess.approval_status CREATE TABLE studyaccess.approval_status ( approval_status_id NUMBER(1) PRIMARY KEY, name VARCHAR2(24) NOT NULL ); -- studyaccess.restriction_level CREATE TABLE studyaccess.restriction_level ( restriction_level_id NUMBER(1) GENERATED AS IDENTITY CONSTRAINT restr...
INSERT INTO "_selfservice_login_flows_tmp" (id, request_url, issued_at, expires_at, active_method, csrf_token, created_at, updated_at, forced, type, ui, nid) SELECT id, request_url, issued_at, expires_at, active_method, csrf_token, created_at, updated_at, forced, type, ui, nid FROM "selfservice_login_flows";
-- GROUPS INSERT INTO DB.ODCLEANSTORE.DN_RULES_GROUPS (label, description, authorId) VALUES (n'test group', n'this is a group for testing purposes', NULL); -- RULES INSERT INTO DB.ODCLEANSTORE.DN_RULES_UNCOMMITTED (id, groupId, label, description) VALUES (0, (SELECT id FROM DB.ODCLEANSTORE.DN_RULES_GROUPS WHERE label...
INSERT INTO korisnik (username, password, ime, prezime, opstina, grad, adresa, rodjendan, telefon, zaposlen, odobren, email) VALUES ('strahinja', 'f60079653bad85f8e96fda2c7e47415881d9e563', 'Strahinja', 'Vujin', 'Zrenjanin', 'Zrenjanin', 'Tamiska 20', '1995-02-15', '062/1981-953', 'zaposlen', 1, 'strahinja.vujin11@gm...
-- 26/03/2016 -- Vouchers ALTER TABLE `vouchers` CHANGE `date_time` `date_time` DATETIME NULL;
-- 1 SELECT id, title FROM movie WHERE yr=1962; -- 2 SELECT yr FROM movie WHERE title='Citizen Kane'; -- 3 SELECT id, title, yr FROM movie WHERE title LIKE 'Star Trek%' ORDER BY yr; --4 SELECT id FROM actor WHERE name = 'Glenn Close'; -- 5 SELECT id FROM movie WHERE title = 'Casablanca'; --6 SELE...
use [AdventureworksDW2016] go update [dbo].[DimDate] set [FiscalQuarter] = case when [CalendarQuarter] < 3 then [CalendarQuarter] + 2 else [CalendarQuarter] - 2 end, [FiscalYear] = case when [CalendarSemester] = 2 then [CalendarYear] + 1 else [CalendarYear] end, [FiscalSemester] = case when [Calendar...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-10-2020 a las 17:28:50 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.2.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
version https://git-lfs.github.com/spec/v1 oid sha256:f9719dc837044842831758051b6c4a8f3a724dacd182b783ee3b4c8377b1196c size 2891
-- -- CREATE_OPERATOR -- CREATE OPERATOR ## ( leftarg = path, rightarg = path, procedure = path_inter, commutator = ## ); CREATE OPERATOR <% ( leftarg = point, rightarg = widget, procedure = pt_in_widget, commutator = >% , negator = >=% ); CREATE OPERATOR @#@ ( rightarg = int8, -- left...
create table tbl_dbbackup ( field_null date, field_number number(10), field_number_precision number(10, 2), field_date date, field_blob blob, field_clob clob, field_varchar2 varchar2(200), "Field_Case" varchar2(200) ); -- TABELAS PARA TESTE DE MIGRAÇÃO create table tbl_dbbackup_mysql ( field_null dat...
.load unit.dylib select assert_equal("foo", "bar");
CREATE TABLE [dbo].[Decia_ResultSet]( [Id] [uniqueidentifier] NOT NULL, [Name] [nvarchar](max) NULL, [Description] [nvarchar](max) NULL, [Metadata_ChangeCount] [bigint] NOT NULL, [Metadata_ChangeDate] [datetime] NOT NULL, [Computation_Succeeded] [bit] NOT NULL CONSTRAINT [DF_Decia_ResultSet_Computation_Succeeded]...
define mw_prefix='{$wgDBprefix}'; ALTER TABLE &mw_prefix.ipblocks MODIFY ipb_by_text DEFAULT NULL NULL;
col value format a80 set linesize 200 trimspool on select value from v$diag_info where name = 'Default Trace File' /
/* Vjezbe 10 Zadatak 8 Kreiranom korisniku dozvoliti citanje podataka o osobama iskljucivo putem view-a. Testirati dodijeljene permisije! */ USE Edin GRANT SELECT ON OBJECT::Osobe.vOsobe TO uEdin
-- ======================================================================== -- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2009-2016 Laurent Destailleur <eldy@users.sourceforge.net> -- Copyright (C) 2011-2012 Regis Houssin <regis.houssin@inodbox.com> -- -- This program i...
DROP TABLE IF EXISTS `cc_accountsprod`; CREATE TABLE `cc_accountsprod` (`id` integer(11) NOT NULL AUTO_INCREMENT,PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;INSERT INTO cc_accountsprod () VALUES;
-- ============================================= -- Author: dbo -- Create date: 2020-10-14 -- Description: return all the Articles -- ============================================= CREATE PROCEDURE [dbo].[spArticles_FindAllArticles_show] @Show bit AS BEGIN SET NOCOUNT ON; SELECT Articles.Id ,[Titel] ...
SELECT start, `end`, reference_bases, alternate_bases, AMR1, EUR1, AFR1, SAS1, EAS1, AMR2, EUR2, AFR2, SAS2, EAS2, (AMR1+ EUR1+ AFR1+ SAS1+ EAS1+ AMR2+ EUR2+ AFR2+ SAS2+ EAS2) AS AC_Fake, AC FROM ( SELECT start, `end`, reference_bases, alternate_bases, AMR1, EUR1, ...
/** DADOS DA TABELA NPJ_REAL_ESTADO **/ INSERT INTO [NPJ_REAL_estado] (nome, sigla) VALUES ('Acre', 'AC'); /** DADOS DA TABELA NPJ_REAL_CIDADE **/ INSERT INTO [NPJ_REAL_cidade] (nome, id_estado) VALUES ('Acrelândia', 1); /** DADOS DA TABELA NPJ_REAL_ENDERECO **/ INSERT INTO [NPJ_REAL_endereco] (bairro, cep, lograd...
alter table ACT_HI_TASKINST add column SCOPE_ID_ varchar(255); alter table ACT_HI_TASKINST add column SUB_SCOPE_ID_ varchar(255); alter table ACT_HI_TASKINST add column SCOPE_TYPE_ varchar(255); alter table ACT_HI_TASKINST add column SCOPE_DEFINITION_ID_ varchar(255); create index ACT_IDX_HI_TASK_SCOPE on ACT_HI_TASKI...
update messages set message_flag_read=:message_flag_read: where message_id=:message_id: and server_id=:server_id: and message_to_client_id=:message_to_client_id:
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 26, 2020 at 07:38 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/* * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql, * including this file, may be copied, modified, propagated, or distributed except according to th...
CREATE PROC spcusomerdetails @last_name varchar(50), @customer_id int as begin SELECT * FROM sales.customers c inner join sales.orders o ON c.customer_id=o.customer_id INNER JOIN sales.order_items i ON i.order_id=o.order_id where last_name=@last_name AND c.customer_id=@customer_id ENd
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- -- 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/...
-- Add down migration script here ALTER TABLE exercise_items DROP COLUMN public_spec; ALTER TABLE exercise_items RENAME COLUMN private_spec TO spec;
DROP TABLE IF EXISTS app_blacklist; DROP VIEW view_partial_app_info;
create function bv.${query}_insert() returns void language plpgsql as $$ declare start_counter int := 1; end_counter int := 0; batch_counter int := 0; begin select max(counter) into end_counter from base_lineitem; while start_counter <= end_counter loop insert into bv.line...
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (122080,3733,5500,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (122080,2515,1200,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (122080,2522,290,0); INSERT INTO persediaan (id_transaksi, id_b...
-- Not sure if all this trickery is needed, since the init script is only -- run when an empty database directory is found. Oh, well.. CREATE EXTENSION IF NOT EXISTS dblink; DO $$ BEGIN PERFORM dblink_exec('', 'CREATE DATABASE sslr'); EXCEPTION WHEN duplicate_database THEN RAISE NOTICE '%, skipping', SQLERRM USING ER...
ALTER TABLE oauth_client_details ALTER COLUMN scope NVARCHAR(MAX); ALTER TABLE oauth_client_details ALTER COLUMN authorities NVARCHAR(MAX); ALTER TABLE revocable_tokens ALTER COLUMN scope NVARCHAR(MAX);
--Nome da Schema -- CREATE SCHEMA IF NOT EXISTS estufa; --Limpa tabelas para inserir novos dados-- DROP TABLE IF EXISTS estufa.divisao,estufa.atuador, estufa.mote, estufa.medi_atuador, estufa.regra, estufa.sensor, estufa.medi_sensor, estufa.regra_geral CASCADE ; --DIVISÃO-- CREATE TABLE IF NOT EXISTS estufa.divisao...
-- -- Database v6 -- -- remove older hibernate foreign key (pre-JPA) ALTER TABLE moany.categories DROP KEY parent_id_key; ALTER TABLE moany.transactions DROP KEY account_key; ALTER TABLE moany.transactions DROP KEY category_key; UPDATE moany.system_info SET value = '6' WHERE name = 'db_version'; COMMIT;
create table gram_audit_table ( "job_grid_id" varchar(256) primary key, "local_job_id" varchar(512), "subject_name" varchar(256) not null, "username" varchar(16) not null, "idempotence_id" varchar(128), "creation_time" timestamp not null, "queued_time" timestamp, "stage_in_grid_id" varch...
DROP VIEW IF EXISTS edfi.vw_ListAllSubCategories
create table TEST( ID integer, NAME varchar(30) ); create table COUNTRY( ID int, CCODE char(2), NAME varchar(60) );