sql
stringlengths
6
1.05M
<reponame>pribtech/nodete update Y2004_2 set txdate = 4 where txdate = 7; select * from Y2004_2;
<gh_stars>0 create table ACT_RU_JOB ( ID_ varchar(64) NOT NULL, REV_ integer, CATEGORY_ varchar(255), TYPE_ varchar(255) NOT NULL, LOCK_EXP_TIME_ timestamp, LOCK_OWNER_ varchar(255), EXCLUSIVE_ boolean, EXECUTION_ID_ varchar(64), PROCESS_INSTANCE_ID_ varchar(64), PROC_DEF_ID_ var...
<filename>posda/posdatools/queries/sql/SubprocessesByUser.sql -- Name: SubprocessesByUser -- Schema: posda_queries -- Columns: ['subprocess_invocation_id', 'when_script_started', 'when_background_entered', 'when_script_ended', 'user_to_notify', 'button_name', 'operation_name', 'num_reports'] -- Args: ['invoking_user'] ...
-- -- PostgreSQL database dump -- SET client_encoding = 'UTF8'; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: another_triggers; Type: SCHEMA; Schema: -; Owner: postgres -- CREATE SCHEMA another_triggers; ALTER SCHEMA another_triggers OWNER TO postgres; -- -- Name: plpgsql; Type...
-- -- JOIN -- Test JOIN clauses -- CREATE TABLE J1_TBL ( i integer, j integer, t text ); CREATE TABLE J2_TBL ( i integer, k integer ); INSERT INTO J1_TBL VALUES (1, 4, 'one'); INSERT INTO J1_TBL VALUES (2, 3, 'two'); INSERT INTO J1_TBL VALUES (3, 2, 'three'); INSERT INTO J1_TBL VALUES (4, 1, 'four'); INSE...
-- -- File generated with SQLiteStudio v3.2.1 on seg mai 4 08:47:27 2020 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: gene CREATE TABLE gene ( organism TEXT NOT NULL, locus_tag TEXT NOT NULL, name TEXT NOT NULL, is_tf INTEGER DEFAULT 0, ...
Nestloop -> Index Scan using comp_manufidx on computer -> Index Scan using soft_hostidx on software
-- @testpoint:opengauss关键字union(保留),作为角色名 --关键字不带引号-失败 drop role if exists union; create role union with password '<PASSWORD>' valid until '2020-12-31'; --关键字带双引号-成功 drop role if exists "union"; create role "union" with password '<PASSWORD>' valid until '2020-12-31'; drop role "union"; --关键字带单引号-合理报错 drop role if e...
<filename>StarTrek/StarTrekData/dbo/Tables/XMLwithOpenXML.sql<gh_stars>0 CREATE TABLE [dbo].[XMLwithOpenXML] ( [Id] INT IDENTITY (1, 1) NOT NULL, [XMLData] XML NULL, [LoadedDateTime] DATETIME NULL, PRIMARY KEY CLUSTERED ([Id] ASC) );
prompt Importing table t_migraciones... set feedback off set define off insert into t_migraciones (ID_MIGRACION, DESCRIPCION) values ('mig_000035', 'Mejoras en Plantilla de Notificación General.'); prompt Done.
<filename>EasyWrapper/Assets/ILR/1718/Reporting/Stored Procedures/PopulatePFRSummaryReport.sql<gh_stars>0 IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Report].[PopulatePFRSummaryReport]') AND type in (N'P', N'PC')) DROP PROCEDURE [Report].[PopulatePFRSummaryReport] GO CREATE PROCEDURE [Report]...
<reponame>08162021-dotnet-uta/P2_Group2<filename>Project2DDL.sql --DDL for P2Group2SocialGame --Still need to add the on delete cascades and set nulls CREATE DATABASE P2_NotFightClub Go USE P2_NotFightClub Go CREATE TABLE UserInfo( UserId uniqueidentifier not null default newId() primary key, UserName nvarchar(50) n...
/* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 100131 Source Host : localhost:3306 Source Schema : ges Target Server Type : MySQL Target Server Version : 100131 File Encoding : 65001 Date: 03/04/2020...
<reponame>noms-digital-studio/custody-api INSERT INTO OFFENDER_RELEASE_DETAILS (OFFENDER_BOOK_ID, RELEASE_DATE, MOVEMENT_TYPE, MOVEMENT_REASON_CODE, EVENT_ID) VALUES ( -1, TO_DATE('2018-04-23', 'YYYY-MM-DD'), 'REL', 'DD', 1); INSERT INTO OFFENDER_RELEASE_DETAILS (OFFENDER_BOOK_ID, RELEASE_DATE, MOVEMENT_TYPE, MOVEMENT_...
ALTER TABLE `cqdata`.`stats` CHANGE COLUMN `target` `target` TEXT NULL DEFAULT NULL ;
SELECT count(*) FROM pTab SELECT parentnode FROM '%q'.'%q_parent' WHERE nodeno = :1 CREATE TABLE Ex1(c1 int, c2 int, c3 text) SELECT max(blockid) FROM %Q.'%q_segments') + 1, 1) CREATE TABLE %_node(nodeno INTEGER PRIMARY KEY, data BLOB) SELECT col FROM tbl); CREATE TABLE ex1(** a INTEGER PRIMARY KEY,** b INTEGER CONSTRA...
<reponame>ef-gy/blog create table fsm( state integer not null, -- current state trans char(1), -- transition character to_ integer, -- new state after transition final integer not null, -- 1 = the new state is an accepting state, 0 otherwise check(final in (0,1)) ); create table word( pos integer ...
 DROP TABLE IF EXISTS public.export_all_paris_road_name2 ; CREATE TABLE IF NOT EXISTS public.export_all_paris_road_name2 AS SELECT DISTINCT ON (cname) woparis AS road_name FROM historical_geocoding.rough_localisation , geohistorical_object.clean_text(normalised_name) AS cname , regexp_replace( normalised_name,...
# 최솟값 구하기 SELECT MIN(DATETIME) FROM ANIMAL_INS;
INSERT INTO comment__category_group (id, description, url, is_quiet) VALUES (701, 'Test Category', '/discussion', 0); INSERT INTO comment__category (id, group_id, author_user_id, name, description, created_at, deleted_at, sort, is_quiet) VALUES (101, 701, 10144, 'General', 'Description', '2010-10-02 00:00:00', null, n...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 20, 2020 at 04:51 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<reponame>difo23/bd_sql_practico_postgres /** * RETO: Extraer los campos de hora de una fecha */ -- Extract -- SELECT EXTRACT(HOUR FROM fecha_incorporacion) AS hora_incorporacion, EXTRACT(MINUTE FROM fecha_incorporacion) AS minuto_incorporacion, EXTRACT(SECOND FROM fecha_incorporacion) AS segundo_incorporacion ...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[MetricValueStats]( [ServerID] [int] NOT NULL, [MetricSetID] [int] NOT NULL, [MetricID] [int] NOT NULL, [GrHours] [tinyint] NOT NULL, [GrNumber] [tinyint] NOT NULL, [DayInWeek] [tinyint] NOT NULL, [StartTimeID] [smallint] NOT NULL, [EndTimeID] ...
-- fts4aa.test -- -- db eval { -- DELETE FROM t1 WHERE docid!=1050026; -- SELECT hex(size) FROM t1_docsize; -- SELECT hex(value) FROM t1_stat; -- } DELETE FROM t1 WHERE docid!=1050026; SELECT hex(size) FROM t1_docsize; SELECT hex(value) FROM t1_stat;
<filename>src/test/resources/sql/select/60e90d5b.sql -- file:float8.sql ln:42 expect:true SELECT 'nan'::float8 / 'nan'::float8
-- file:regex.linux.utf8.sql ln:34 expect:true SELECT 'a⓪' ~ 'a[a-ⓩ]' AS f
<reponame>xlm1226/A-Definitive-Guide-to-Apache-ShardingSphere INSERT INTO table_name (column1,...) VALUES (value1...) /*foo:bar,...*/;
CREATE TABLE auth_tokens ( id BIGINT AUTO_INCREMENT PRIMARY KEY, user BIGINT, token TEXT, expiration BIGINT, created BIGINT )
<reponame>GrantBirki/iphonebackuptools CREATE TABLE ZACCOUNT ( Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER, Z_OPT INTEGER, ZDIDCHOOSETOMIGRATE INTEGER, ZTYPE INTEGER, ZDEFAULTSTORE INTEGER, ZACCOUNTIDENTIFIER VARCHAR, ZCONSTRAINTSPATH VARCHAR, ZNAME VARCHAR ); CREATE TABLE ZNEXTID ( ...
IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END; BEGIN TRANSACTION; IF NOT EXISTS(SELE...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.52-0ubuntu0.14.04.1) # Database: lingyun_lyadmin # Generation Time: 2017-10-24 16:43:32 +0000 # **********************...
<reponame>attilakreiner/cassandra-homework<filename>01-create-script.sql -- Fix the following Cassandra DDL, so that all queries from the files below can be executed without changes -- 02-upsert-readonly.sql and -- 03-query-readonly.sql -- Create keyspace (press TAB for autocomplete in cqlsh) CREATE KEYSPACE homewor...
<reponame>Gemplify/App -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:8889 -- Tiempo de generación: 24-05-2021 a las 15:39:59 -- Versión del servidor: 5.6.38 -- Versión de PHP: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
CREATE TABLE tb_estado ( codigo BIGINT(20) PRIMARY KEY, id_estado_ibge BIGINT(20) NOT NULL, nome VARCHAR(50) NOT NULL, sigla VARCHAR(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE tb_cidade ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, codigo_est...
CREATE TABLE `botkit_user` ( `id` char(9) NOT NULL, `access_token` varchar(51) NOT NULL, `scopes` varchar(500) NOT NULL, `team_id` char(9) NOT NULL, `user` varchar(36) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `botkit_team` ( `id` char(9) NOT NULL, `createdBy` cha...
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. \ir include/insert_two_partitions.sql SELECT * FROM hypertable_detailed_size('"public"."two_Partitions"'); SELECT * FROM hypertable_inde...
# Todos schema # --- !Ups CREATE TABLE Todo ( id SERIAL, title text NOT NULL, completed boolean NOT NULL, "order" int); # --- !Downs DROP TABLE Todo;
select nation, o_year, sum(amount) as sum_profit from ( select n_name as nation, extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount ...
-->-->-- src/Frapid.Web/Areas/Frapid.Account/db/SQL Server/1.x/1.0/src/01.types-domains-tables-and-constraints/tables-and-constraints.sql --<--<-- EXECUTE dbo.drop_schema 'account'; GO CREATE SCHEMA account; GO CREATE TABLE account.roles ( role_id integer PRIMARY KEY, role_name national char...
-- -- Copyright (C) 2016 Red Hat, Inc. -- -- 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 agre...
CREATE STREAM {APP_PREFIX}_SESSION_DATA ( "session_id" INT, "era" INT, "block_end" BIGINT, "validators" ARRAY < VARCHAR >, "nominators" ARRAY < VARCHAR >, "eras" VARCHAR, "block_time" BIGINT ) WITH ( kafka_topic = '{APP_PREFIX}_SESSION_DATA', value_format = 'JSON' ); CREATE STREAM...
--1. easiest , behaviour = 3, histology is not null, vocabulary = icd10cm -> to concatenate --Note, when Histology is empty the behaviour is described in ICD9/10CM code create table oemr_map_v0 as select i.concept_name as icd_name,h.concept_name as histology_name, a.*, b.concept_id as source_concept_id, b.concept_...
<filename>src/test/modules/test_shm_mq/test_shm_mq--1.0.sql /* src/test/modules/test_shm_mq/test_shm_mq--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION test_shm_mq" to load this file. \quit CREATE FUNCTION test_shm_mq(queue_size pg_catalog.int8, ...
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/aoco_compression/other_tests/ao_co_alter_table_42.sql -- @product_version gpdb: [-4.2] -- start_ignore DROP TABLE IF EXISTS like1; DROP TABLE IF EXISTS like2; DROP TABLE IF EXISTS child2; DROP TABLE IF EXISTS carpe_diem; DROP TABLE IF EXISTS cot_table11; -- end_ig...
-- -- Additional tests for combocids, for sharing the the array between QE -- processes, and for growing the array. -- -- These tests are mostly copied from the upstream 'combocid' test, but -- the SELECT queries are replaced with a more complicated query that runs -- on two slices. -- CREATE TEMP TABLE combocidtest (f...
--Inheritance DROP TABLE IF EXISTS a_t, b_t, c_t, a_b_c; CREATE class a_t(a int PRIMARY KEY, b int); CREATE class b_t(a int PRIMARY KEY, b int, c int); CREATE class c_t(b int PRIMARY KEY, d int); CREATE class a_b_c under a_t, b_t, c_t inherit a OF b_t, b OF b_t; INSERT INTO a_b_c VALUES (1,1,1,1); INSERT INTO a_t VALUE...
<filename>hasura/migrations/1612905279045_alter_table_public_AttendeeGoogleAccount_add_column_youtubeData/up.sql<gh_stars>10-100 ALTER TABLE "public"."AttendeeGoogleAccount" ADD COLUMN "youtubeData" jsonb NULL;
-- Add new field to tblhostingaddons for subscriptionid set @query = if ((select count(*) from information_schema.columns where table_schema=database() and table_name='tblhostingaddons' and column_name='subscriptionid') = 0, 'alter table `tblhostingaddons` add `subscriptionid` VARCHAR(128) COLLATE utf8_unicode_ci NOT N...
<gh_stars>0 ALTER TABLE git ADD token VARCHAR(200) NOT NULL;
<reponame>christophanneser/Bao-for-Presto SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow')) AND (t.name in ('android-canvas','a...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Des 2018 pada 17.08 -- Versi server: 10.1.34-MariaDB -- Versi PHP: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
/* Warnings: - You are about to drop the column `scheduleDate` on the `Post` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Post" DROP COLUMN "scheduleDate"; -- CreateTable CREATE TABLE "Schedule" ( "id" SERIAL NOT NULL, "title" TEXT NOT NULL, "schedule" TIMESTAMP(3) NO...
ALTER TABLE [dbo].[UnitAssociations] ADD CONSTRAINT [FK_UnitAssociations_Unit] FOREIGN KEY ([UnitID]) REFERENCES [dbo].[Unit] ([UnitID]) ON DELETE NO ACTION ON UPDATE NO ACTION;
CREATE VIEW [dbo].[vw_sqlwatch_report_fact_xes_wait_events] with schemabinding as select e.[event_time] ,ws.[wait_type] ,ws.wait_category ,e.[duration] ,e.[signal_duration] ,e.[session_id] ,e.[username] ,e.[client_hostname] ,e.[client_app_name] ,e.[sql_instance] ...
-- MySQL Workbench Forward Engineering 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'; -- ----------------------------------------------------- -- Schema health_ce...
# Problem Description at -> https://leetcode.com/problems/second-highest-salary/ -- First solution SELECT MAX(Salary) AS SecondHighestSalary FROM ((SELECT Salary FROM Employee WHERE Salary <> (SELECT MAX(Salary) FROM Employee)) AS NX); -- Second solution SELECT (SELECT DISTINCT Salary FROM Employee ORDER BY Salary ...
<gh_stars>0 DROP TABLE IF EXISTS `t_task`; CREATE TABLE `t_task` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT NULL, `schedule_date` date DEFAULT NULL, `status` bit(1) NOT NULL, `description` text DEFAULT NULL, `user_id` varchar(10) DEFAULT NULL, PRIMARY KEY( `id` ) ) ENGIN...
-- Up CREATE TABLE `playing` ( `playingID` integer NOT NULL PRIMARY KEY AUTOINCREMENT , `playingString` varchar(64) NOT NULL ); INSERT INTO playing VALUES(1,'with your emotions'); INSERT INTO playing VALUES(2,'with fire'); INSERT INTO playing VALUES(3,'with myself'); INSERT INTO playing VALUES(4,'God'); INSERT INTO ...
-- ******************************************************** -- -- Batch mode on rowstore -- See https://aka.ms/IQP for more background -- Demo scripts: https://aka.ms/IQPDemos -- This demo is on SQL Server 2019 Public Preview and coming soon to Azure SQL DB -- Email <EMAIL> for questions\feedback -- **************...
<reponame>aliostad/deep-learning-lang-detection -- ----------------------------------------------------- -- HOW TO USE THIS FILE: -- Replace all instances of #_ with your prefix -- In PHPMYADMIN or the equiv, run the entire SQL -- ----------------------------------------------------- SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CH...
ALTER TABLE asset ADD COLUMN asset_author_user_id INT NULL AFTER asset_author; UPDATE asset SET asset_author_user_id = (SELECT u.user_id FROM user u WHERE u.user_username = asset_author); ALTER TABLE asset DROP COLUMN asset_author;
CREATE TABLE BRUKERTILTAK_V2 ( AKTIVITETID VARCHAR(25) NOT NULL, AKTOERID VARCHAR(20), PERSONID VARCHAR(20), TILTAKSKODE VARCHAR(10), TILDATO TIMESTAMP, PRIMARY KEY (AKTIVITETID) ); CREATE TABLE TILTAKKODEVERKET_V2 ( KODE VARCHAR(10), VERDI VARCHAR(80), PRIMARY KEY (KOD...
<reponame>dram/metasfresh CREATE OR REPLACE FUNCTION GenerateHUAttributesKey(huId numeric) RETURNS text LANGUAGE 'sql' COST 100 STABLE AS $BODY$ -- IMPORTANT: keep in sync with other Generate*AttributesKey functions (e.g. GenerateASIStorageAttributesKey) SELECT COALESCE(string_agg(sub.keyPart, '&'), '-...
-- 2021-02-09T07:47:13.716Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Menu_Trl WHERE AD_Menu_ID=540234 ; -- 2021-02-09T07:47:13.724Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Menu WHERE AD_Menu_ID=540234 ; -- 2021-02-09T07:47:13.732Z -- I ...
<filename>packages-old/acs-kernel/sql/postgresql/acs-drop.sql -- -- packages/acs-kernel/sql/acs-drop.sql -- -- @author <EMAIL> -- @creation-date 2000-08-22 -- @cvs-id $Id: acs-drop.sql,v 1.4 2015/12/04 13:49:25 cvs Exp $ -- drop view cc_users; drop view registered_users; \t select drop_package('acs'); \t drop table ac...
/* このファイルに記述されているSQLは起動時に実行されます */ CREATE TABLE IF NOT EXISTS TODO_APP ( TODO_ID int PRIMARY KEY, TITLE varchar(30) NOT NULL, DETAIL varchar(100) NOT NULL, /* カテゴリを追加 */ CATEGORY varchar(50) NOT NULL );
create database if not exists keystone; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' \ IDENTIFIED BY 'KEYSTONE_NBI'; GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' \ IDENTIFIED BY 'KEYSTONE_NBI';
CREATE TABLE [dbo].[EmployeeDetails] ( [EmpId] [int] IDENTITY(1,1) NOT NULL, [EmpName] [nvarchar](50) NOT NULL, [EmpCity] [nvarchar](50) NOT NULL, [EmpSalary] [int] NOT NULL, CONSTRAINT [PK_EmployeeDetails] PRIMARY KEY CLUSTERED ([EmpId] ASC), CONSTRAINT [FK_EmployeeContact_EmployeeDet...
<gh_stars>1-10 -- 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. CREATE UNIQUE INDEX IF NOT EXISTS U...
<gh_stars>1000+ -- -- Test assorted system views -- -- This test is mainly meant to provide some code coverage for the -- set-returning functions that underlie certain system views. -- The output of most of these functions is very environment-dependent, -- so our ability to test with fixed expected output is pretty lim...
-- MODULE XTS741 -- SQL Test Suite, V6.0, Interactive SQL, xts741.sql -- 59-byte ID -- TEd Version # -- AUTHORIZATION CTS1 SELECT USER FROM HU.ECCO; -- RERUN if USER value does not match preceding AUTHORIZATION comment ROLLBACK WORK; -- date_time print -- TEST:7041 COUNT(ALL NULLIF...) with g...
<filename>modules/recurringinvoices/install/tablefindoptions.sql INSERT INTO `tablefindoptions` (`tabledefid`, `name`, `search`, `displayorder`, `roleid`) VALUES ('tbld:3434bf2d-1337-5cab-0a7a-25e04f1c6d8f', 'All Records', 'recurringinvoices.id!=-1', '0', '');
<reponame>Zhaojia2019/cubrid-testcases autocommit off; update shipment_c set product.descr = 'junk'; rollback;
-- @testpoint:opengauss关键字binary_integer(非保留),作为函数名 --关键字不带引号-合理报错 drop function if exists binary_integer; create function binary_integer(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function binary_integer; --关键字带双引号-成功 drop function if exists "binary_integer"; creat...
<filename>openGaussBase/testcase/KEYWORDS/timezone_hour/Opengauss_Function_Keyword_Timezone_hour_Case0031.sql -- @testpoint:opengauss关键字timezone_hour(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists explain_test cascade; --关键字不带引号-合理报错 create table explain_test(id int,name timezone_hour); --关键字带双引号-合理报错 create table...
<filename>db/seeds.sql INSERT INTO department(department_name) VALUES ("Sales"), ("HR"), ("Customer Service"), ("Engineering"), ("Legal"); INSERT INTO role(title, salary, department_id) VALUES ("Lawyer",150000.00,5), ("Human Resource Manager",65000.00,2), ("Customer Care Agent",45000.00,3), ("Sales Representati...
<gh_stars>0 CREATE TABLE "public"."project_languages" ("id" serial NOT NULL, "uuid" uuid NOT NULL, "project_id" integer NOT NULL, "language_id" integer NOT NULL, PRIMARY KEY ("id") , FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON UPDATE cascade ON DELETE cascade, FOREIGN KEY ("language_id") REFERENC...
CREATE TABLE categories ( id SERIAL PRIMARY KEY, name VARCHAR (20) UNIQUE NOT NULL ); CREATE TABLE movies ( id SERIAL PRIMARY KEY, title VARCHAR (50) NOT NULL, trailer_url VARCHAR(200) NOT NULL, original_source_url VARCHAR(200) NOT NULL, cover_url VARCHAR(200) NOT NULL, imdb_id VARCHAR(...
<filename>SQL/running_total.sql /* This code is part of my tutorial on running total (cumulative sum, running sum) in SQL Blog post: habr.com/ru/post/474458/ (in Russian) */ --- Division 0: Create testing data --- -- simpliest case: plain data, no groups create table test_simple (dt date null, ...
-- phpMyAdmin SQL Dump -- version 4.6.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 11, 2016 at 12:44 PM -- Server version: 10.0.23-MariaDB -- PHP Version: 5.6.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
INSERT INTO user ( username, password ) VALUES ( :username, :password );
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 30, 2019 at 10:42 နံနက် -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
<filename>code/wrangling/decisions_partial_churn_filter.sql<gh_stars>1-10 SELECT CASE WHEN decision='restored' THEN 'churn' WHEN next_decision = 'restored' THEN 'churn' ELSE 'use' END AS churn_flag , * FROM ( SELECT decisions_old.decision AS decision_copy ,L...
CREATE TABLE [dbo].[LinkUsersAlerts] ( [ID] BIGINT IDENTITY (1, 1) NOT NULL, [UserID] NVARCHAR (128) NOT NULL, [AlertID] BIGINT NOT NULL, CONSTRAINT [PK_LinkUsersAlerts] PRIMARY KEY CLUSTERED ([ID] ASC), FOREIGN KEY ([UserID]) REFERENCES [dbo].[AspNetUsers] ([Id]), FOREIGN...
-- P39D. FAMILY TYPE BY PRESENCE AND AGE OF RELATED CHILDREN (ASIAN ALONE HOUSEHOLDER) -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_p39d ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHA...
CREATE TABLE IF NOT EXISTS `user` ( `id` int(11) NOT NULL auto_increment, `email` varchar(255) default NULL, `username` varchar(255) default NULL, `password` varchar(255) default NULL, `name` varchar(100) default NULL, `gender` char(1) default NULL, `updated_at` datetime NOT NULL, `created_at` datetime ...
-- -- Copyright 2005-2011 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- Unless required by ap...
<reponame>joojano/flyway-jpa<gh_stars>0 INSERT INTO tbUser(username, password) VALUES ('hanote', '<PASSWORD>'); INSERT INTO tbUser(username, password) VALUES ('luan', '<PASSWORD>'); INSERT INTO tbUser(username, password) VALUES ('cris', '<PASSWORD>');
-- DROP SCHEMA posfechados; CREATE SCHEMA IF NOT EXISTS posfechados AUTHORIZATION lxzehfswwiupap; -- posfechados.bank definition -- Drop table -- DROP TABLE posfechados.bank; CREATE TABLE posfechados.bank ( id int8 NOT NULL GENERATED BY DEFAULT AS IDENTITY, creation_date timestamp NOT NULL DEFAULT CURRENT_TIME...
---------------------------------------- -- INPUTS -- location: neighborhood -- vars: -- :sigctl_search_dist=25 Search distance for traffic signals at adjacent intersection ---------------------------------------- UPDATE neighborhood_ways_intersections SET island = FALSE; UPDATE neighborhood_ways_intersectio...
<reponame>dr-pain/omniscidb DROP TABLE ##TAB##
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. column lt_type heading "TYPE" format a4 column lt_name heading "LOCK NAME" format a32 column lt_id1_tag heading "ID1 MEANING" format a25 word_...
<filename>kunlun-pg-regress/sql/lock.sql<gh_stars>10-100 -- -- Test the LOCK statement -- -- Setup CREATE SCHEMA lock_schema1; SET search_path = lock_schema1; CREATE TABLE lock_tbl1 (a BIGINT); CREATE TABLE lock_tbl1a (a BIGINT); CREATE VIEW lock_view1 AS SELECT * FROM lock_tbl1; CREATE VIEW lock_view2(a,b) AS SELECT ...
<filename>tools/Openchain.SqlServer.Schema/Types/IdTable.sql CREATE TYPE [Openchain].[IdTable] AS TABLE ( [Id] VARBINARY(512) NOT NULL PRIMARY KEY ) GO
<reponame>granadomoreno/oracle-db-examples ----------------------------------------------------------------------- -- Oracle Machine Learning for SQL (OML4SQL) 21c -- -- Clustering - O-Cluster Algorithm - dmocdemo.sql -- -- Copyright (c) 2021 Oracle Corporation and/or its affilitiates. -- -- The Universal Pe...
IF EXISTS(SELECT * FROM sys.procedures WHERE NAME = 'B_ExchangeRate_history_process') BEGIN /****** Object: StoredProcedure [dbo].[B_ExchangeRate_history_process] Script Date: 10/12/2014 8:39:08 AM ******/ DROP PROCEDURE [dbo].[B_ExchangeRate_history_process] END GO /****** Object: StoredProcedure [dbo]....
CREATE TABLE fieldkit.archive_history ( id serial PRIMARY KEY, archived timestamp NOT NULL DEFAULT now(), old_device_id bytea NOT NULL, new_device_id bytea NOT NULL );
-- WL_SUMMONFB UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + (`s`.lv - 2), `s`.lv = 2 WHERE `s`.id = 2222 AND `s`.lv > 2 AND `c`.char_id = `s`.char_id; -- WL_SUMMONBL UPDATE `char` c, `skill` s SET `c`.skill_point = `c`.skill_point + (`s`.lv - 2), `s`.lv = 2 WHERE `s`.id = 2223 AND `s`.lv > 2 AND ...
INSERT INTO burgers (burger_name) VALUES ('Cheeseburger'); INSERT INTO burgers (burger_name) VALUES ('Double bacon cheeseburger'); INSERT INTO burgers (burger_name) VALUES ('Lamb burger');
DELIMITER | /* Création d'un utilisateur */ DROP PROCEDURE IF EXISTS addUser| CREATE PROCEDURE addUser ( IN n VARCHAR(255), IN m VARCHAR(255), IN adr VARCHAR(255), IN mdp VARCHAR(255), IN isAdmin TINYINT(1), INOUT id INT) BEGIN DECLARE existsAlready BOOLEAN; START TRANSACT...