text
stringlengths
1
1.05M
ALTER TABLE "public"."fileobjects" ALTER COLUMN "md5" SET NOT NULL;
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
-- Decent reference for new scheduler http://www.oradev.com/dbms_scheduler.jsp -- view job and schedule (new) select owner,job_name,job_action,program_name,repeat_interval, state,failure_count, LAST_START_DATE,LAST_RUN_DURATION,NEXT_RUN_DATE, JOB_CLASS ,schedule_name,schedule_owner from dba_scheduler_jobs where ow...
-- -- Copyright 2019 The Android Open Source Project -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applica...
SELECT "DROP DATABASE IF EXISTS ERDiagram;" AS "Eliminazione database eventualmente esistente"; DROP DATABASE IF EXISTS ERDiagram; SELECT "CREATE DATABASE IF NOT EXISTS ERDiagram;" AS "Creazione database vuoto"; CREATE DATABASE IF NOT EXISTS ERDiagram; SELECT "USE ERDiagram;" AS "Impostazione database di defaul...
-----------------------CREATION DES TUPLES------------------------------- ----------------Plant------------------------------- --insert into plant values ('A1_1',1,5); \copy plant FROM 'plant.csv' delimiter ',' CSV HEADER; -----------------Phenotypes-------------------------- --insert into phenotype values (DEFAUL...
-- 711 Number of drug exposure records with end date < start date select 711 as analysis_id, cast(null as varchar(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3, cast(null as varchar(255)) as stratum_4, cast(null as varchar(255)) as stratum_5, COUNT_BIG(de1.PE...
SELECT cols.TypeFullName, cols.NumProperties, COALESCE(ic.ItemCount, 0) as NumItems, + '/*--- CTE ---*/ ' + 'WITH Item_CTE(ID, FullName, Parent, Name, TypeID, Depth) ' + ' AS ' + '( ' + ' SELECT ID, Cast(Name as VARCHAR(MAX)) as FullName, Cast('''' as VARCHAR(MAX)) as Parent, Name, TypeID, 1 as Depth ' + ' FRO...
SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.site_id AND q1...
DROP TABLE "SERVICE"; DROP TABLE "RANK"; DROP TABLE PERSON; CREATE TABLE "PERSON" ( "SID" INTEGER PRIMARY KEY, "SURNAME" VARCHAR(64) NOT NULL, "INITIALS" VARCHAR(32), "FORENAMES" VARCHAR(128), "BIRTH" DATE, "DEATH" DATE, "BORNAFTER" DATE, "BORNBEFORE" DATE, "DIEDAFTER" DATE, "DIEDBEFORE" DATE ); CREATE INDE...
INSERT INTO `productsBarcode` (`productsBarcodeId`, `productsId`, `barcode`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,'678963100237',NULL,NULL,NULL), (2,2,'678963100299',NULL,NULL,NULL), (4,4,'678963100220',NULL,NULL,NULL), (5,5,'678963100206',NULL,NULL,NULL), (6,6,'095188011283',NULL,NULL,NULL), (7,...
#standardSQL CREATE TEMPORARY FUNCTION getShorthandProperties(css STRING) RETURNS ARRAY<STRUCT<property STRING, freq INT64>> LANGUAGE js OPTIONS (library = "gs://httparchive/lib/css-utils.js") AS ''' try { function compute(ast) { let ret = { shorthands: {}, longhands: {}, longhands_before_shorth...
select int8_1 from nulls where int8_1 <= -46 -46 -48
/* File name: E:\Docs\Documents\Unipampa\tcc\PAxSPL\Tool\db_backup\paxspl-dump.sql Creation date: 06/13/2020 Created by MySQL to PostgreSQL 5.1 [Demo] -------------------------------------------------- More conversion tools at http://www.convert-in.com */ set client_encoding to 'UTF8'; /* Table structure for table 'pu...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 30 sep 2021 om 10:53 -- Serverversie: 10.4.20-MariaDB -- PHP-versie: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 15, 2018 at 11:41 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- Document editor drop table o_wopi_access; create table o_de_access ( id number(20) generated always as identity, creationdate timestamp not null, lastmodified timestamp not null, o_editor_type varchar(64) not null, o_expires_at timestamp not null, o_mode varchar(64) not null, o_version_controlle...
-- randexpr1.test -- -- db eval {SELECT case when not (select - -count(distinct t1.f)-(max(case when e not between f and t1.b+(13)+ -d-t1.a then t1.d else 11 end))+ -max(t1.b)*cast(avg(13) AS integer)-count(*) & (max(t1.e)) from t1)<>~t1.d then b when -coalesce((select (abs(t1.e)/abs(t1.b)) from t1 where a<>b), - -1...
DELETE FROM `sys_objects_actions` WHERE `Icon`='modules/boonex/messenger/|action_im.png'; DELETE FROM `sys_injections` WHERE `name`='messenger_invitation'; DELETE FROM `sys_acl_actions` WHERE `Name`='use messenger';
CREATE SEQUENCE [dbo].[SyntheticIssueEventIdentifier] AS BIGINT START WITH 9223372036854775807 -- 1<<63 INCREMENT BY -1 MINVALUE 2147483647 -- 1<<31 NO CYCLE CACHE 10 GO
--liquibase formatted sql --changeset artemov_i:ATShowScenario.sql dbms:postgresql runOnChange:true splitStatements:false stripComments:false INSERT INTO s_mt.t_query (ck_id, cc_query, ck_provider, ck_user, ct_change, cr_type, cr_access, cn_action, cv_description) VALUES ('ATShowScenario', '/*ATShowScenario*/ select ...
use master go drop database if exists CouriersDB go create database CouriersDB collate Cyrillic_General_CI_AS GO use master go
INSERT INTO tenant_preference (id, orgId, key, data) VALUES ('19', '*', 'question-filter-view', '{"default":{"action":"question-filter-view","templateName":"filterMetaDataTemplate","fields":[{"code":"searchText","dataType":"text","description":" by question title","editable":true,"inputType":"text","label":"Search","...
-- sad story that this doesn't work. The reason is lack of nested transactions :/ so the time is same CREATE OR REPLACE FUNCTION INSERT_IN_CYCLE(INTEGER, INTEGER) RETURNS VOID AS $$ DECLARE loops ALIAS FOR $1; delay ALIAS FOR $2; BEGIN FOR i IN 1..loops LOOP INSERT INTO NOTIFICATIONS.SIMPLE_NOTIFI...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015-08-16 15:31:58 -- 服务器版本: 5.5.44-0ubuntu0.14.04.1 -- PHP 版本: 5.5.9-1ubuntu4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
running recipe recipe finished, closing ledger ledger closed -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.1 -- Dumped by pg_dump version 9.6.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_st...
{{ config( sort = "_airbyte_emitted_at", unique_key = env_var('AIRBYTE_DEFAULT_UNIQUE_KEY', '_airbyte_ab_id'), schema = "_airbyte_test_normalization", tags = [ "nested-intermediate" ] ) }} -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by ...
select count(*) from no_nulls where rowid = '1' 1
SELECT emp.EmpID , emp.Name , CASE WHEN lh.LaborHedSeq IS NULL THEN 0 ELSE 1 END AS ClockedIn , lh.LaborHedSeq AS LaborID , a.CurrentActivity , a.LaborType , a.PendingQty , sup.EMailAddress as SupervisorEmail , emp.EMailAddress as EmployeeEmail , emp.Shift , emp.JCDept as Department FROM EmpBasic emp with(n...
/* * Copyright 2017 Idaho National Laboratory. * * 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 ...
/* The Pricing Summary Report Query provides a summary pricing report for all lineitems shipped as of a given date. The date is within 60 - 120 days of the greatest ship date contained in the database. The query lists totals for extended price, discounted extended price, discounted extended price plus tax, average q...
-- get all rows that contain the string "shirt" SELECT * FROM items WHERE name LIKE "%shirt";
-- -- testdb schema -- CREATE TABLE category ( id bigserial, title text, PRIMARY KEY (id) ); CREATE TABLE item ( id bigserial, category_id bigint, title text, num int, PRIMARY KEY (id), FOREIGN KEY (category_id) REFERENCES category (id) ON DELETE SET NULL );
INSERT INTO business(id, name) VALUES (0, 'Chic-fil-a')
------------------------------------------------------------------- -- This script will create a sample database "SoftUni" in -- -- MS SQL Server and will populate sample data in its tables. -- ------------------------------------------------------------------- USE master GO create DATABASE SoftUni...
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 28, 2018 at 03:03 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
INSERT INTO kelompok_barang_108 (kode_kelompok_barang, nama_kelompok_barang) VALUES ('1.3.2.01.01','ALAT BESAR DARAT'); INSERT INTO kelompok_barang_108 (kode_kelompok_barang, nama_kelompok_barang) VALUES ('1.3.2.01.02','ALAT BESAR APUNG'); INSERT INTO kelompok_barang_108 (kode_kelompok_barang, nama_kelompok_barang) VAL...
CREATE DATABASE IF NOT EXISTS `myschema` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `myschema`; -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: myschema -- ------------------------------------------------------...
SELECT 'tourism-viewpoint' AS name, * FROM `openstreetmap-public-data-dev.osm_planet.points` WHERE EXISTS(SELECT 1 FROM UNNEST(all_tags) as tags WHERE tags.key = 'tourism' AND tags.value='viewpoint') UNION ALL SELECT 'tourism-viewpoint' AS name, * FROM `openstreetmap-public-data-dev.osm_planet.multipolygons` WHERE ...
insert into security_permission (security_permission_id, created_on_date, last_updated_date, description) values ('UPDATE_COLLEGE_ATTRIBUTE', timestamp 'now', timestamp 'now', 'Update a college attribute'), ('VIEW_COLLEGE_ATTRIBUTE', timestamp 'now', timestamp 'now', 'View a college attribute'); insert into se...
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES (E'ff', E'Fulah'); INSERT INTO "list" ("id", "value") VALUES (E'ff_CM', E'Fulah (Cameroon)'); INSERT INTO "list" ("id", "value") VALUES (E'ff_GN', E'Fulah (Guinea)'); INSERT INTO "list" ("...
-- SELECIONAR BANCO DE DADOS USE VENDAS_SUCOS; -- INSERIR 1 DADO EM 1 TABELA INSERT INTO PRODUTOS (CODIGO, DESCRITOR, SABOR, TAMANHO, EMBALAGEM, PRECO_LISTA) VALUES ('1040107', 'Light - 350 ml - Melância', 'Melância', '350 ml', 'Lata', 4.56); -- EXIBIR SELECT * FROM PRODUTOS; --------------------------------------...
ALTER TABLE sessions add column visibility text; ALTER TABLE workspaces add column visibility text;
-- 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. /************************************************...
DO $$ DECLARE jid integer; scid integer; BEGIN -- Creating a new job INSERT INTO pgagent.pga_job( jobjclid, jobname, jobdesc, jobhostagent, jobenabled ) VALUES ( 4::integer, 'test_sql_job_local_db_updated_$%{}[]()&*^!@""''`\/#'::text, 'test_job_step_schedule description updated'::text, 'test_host_update...
-- file:copydml.sql ln:83 expect:true create trigger qqqaf after insert or update or delete on copydml_test for each row execute procedure qqq_trig()
/*Questao 1*/ ALTER TABLE Pubs.dbo.authors ADD qty INT, midprice FLOAT; /*Questao 2*/ CREATE PROCEDURE calc_qty_midprice;1 AS UPDATE Pubs.dbo.authors SET Pubs.dbo.authors.qty = i.qty, Pubs.dbo.authors.midprice = i.midprice FROM ( SELECT Pubs.dbo.titleauthor.au_id,count(Pubs.dbo.titleauthor.title_id) as 'qty', a...
SELECT ges.fein, xs.dcas_01 as hbx_id, --gep.enrollment_period_ext_id as employer_enrollment_id, ges.doing_business_as as name, xs.ahi_01, xs.ddpa_01, xs.dmnd_01, xs.dtga_01, xs.gard_01, xs.ghmsi_01, xs.kfmasi_01, xs.meta_01, xs.uhic_01, xs.blhi_01 FROM GPA_ENROLLMENT_PERIOD gep join GPA_ER_SETUP ges on gep.er_setup_id...
DROP TRIGGER INSERT_ATTACH; DROP TRIGGER INSERT_CHECK_PLAN; DROP TRIGGER INSERT_MESSAGE; DROP TRIGGER INSERT_MODIFY_COM; DROP TRIGGER INSERT_MODIFY_PORDUCT; DROP TRIGGER INSERT_PRO_APPLICATION; DROP TRIGGER INSERT_KPID; DROP TRIGGER INSERT_TB_APPENDIX; DROP TRIGGER INSERT_TB_EXCHANGES; DROP TRIGGER INSERT_TB_INSCRAPT; ...
-- -- list of classes offered (all) select c.department, c.level, max(c.title) as title, json_agg( row_to_json(section.*) ) sections from course c left join ( select c1.crn, c1.semester, max(c1.department) as department, max(c1.level) as level, json_agg( row_to_json(cs.*) ...
SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, SUM(ss_ext_sales_price) sum_agg FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manufact_id = 128 AND dt.d_moy = 11 GROUP BY dt.d_year, item.i_brand, ...
--============================================================================== -- GPI - Gunther Pippèrr -- Desc: get the proxy user settings -- Date: Oktober 2013 -- --============================================================================== set verify off set linesize 130 pagesize 300 define USER_NAME = &...
CREATE TABLE cars ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(55) NOT NULL, license_no VARCHAR(160) NOT NULL UNIQUE, added_at TIMESTAMP NOT NULL ); CREATE TABLE drivers ( id INTEGER PRIMARY KEY AUTOINCREMENT, first_name VARCHAR(55) NOT NULL, last_name VARCHAR(55) NOT NULL, lice...
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: ruoyi -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- SYNC2 -- -- -- HEAP TABLE -- CREATE TABLE sync2_heap_reindex_table_unique_index( text_col text, bigint_col bigint, char_vary_col character varying(30), numeric_col numeric, int_col int4, float_col float4, int_array_col int[], drop...
ALTER TABLE ALTY UNSET PROPERTY 'text.delimiter';
alter table report add column in_library boolean;
DROP INDEX UKFTFA80663URIMM78EPNXHYOM_INDEX_C; CREATE INDEX UKFTFA80663URIMM78EPNXHYOM_INDEX_C ON SEARCHRESULT (INDEXER_ID, INDEXERGUID);
CREATE PROCEDURE SP689(OUT MYCOUNT INTEGER) SPECIFIC SP689_39608 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE257;SELECT COUNT(*)INTO MYCOUNT FROM TABLE221;SELECT COUNT(*)INTO MYCOUNT FROM TABLE316;SELECT COUNT(*)INTO MYCOUNT FROM...
create table auth (id number(19,0) generated as identity, email_confirmed number(1,0) not null, hash varchar2(255 char), salt blob, token varchar2(255 char), token_expiration_date timestamp, user_id number(19,0) not null, primary key (id)); create table orders (id number(19,0) generated as identity, count number(10,0) ...
use empresa; select * from empregado; select * from departamento; desc empregado; select codigo, nome, cpf from empregado; select nome, salario as salarioBase, salario*12 as salarioAnual, salario*1.1 as salarioReajustado from empregado; select nome, codigo_emp, sexo from dependente where sexo = 'M';...
use master go drop database sql_circular_references go
DROP DATABASE IF EXISTS coder_db; CREATE DATABASE coder_db; USE coder_db;
INSERT INTO scrum_input_predefined_values (fk_scrum_input, fk_color, value, clothing_step, ordre) VALUES (2, 33, 'En Cours', 0, 1), (2, 9, 'En Test', 0, 2), (2, 25, 'Bloqué', 0, 3), (2, 7, 'Terminé', 1, 4), (3, 18, 'Basse', 0, 1), (3, 24, 'Medium', 0, 2), (3, 25, 'Haute', 0, 3), (3, 37, 'Critique', 0, 4);
INSERT INTO films (title, year, genre, watched) VALUES ('Inception', 2010, 'sci-fi', true), ('The Lord of the Rings', 2001, 'fantasy', true), ('Tags', 2018, 'comedy', false), ('Gunfight at the O.K. Corral', 1957, 'western', false), ('Die Hard', 1988, 'action', true); INSERT INTO users (username, password, first_name, ...
DROP DATABASE IF EXISTS employee_tracker_db; CREATE DATABASE employee_tracker_db; USE employee_tracker_db; CREATE TABLE department( id INT NOT NULL AUTO_INCREMENT, department VARCHAR(30) NOT NULL, PRIMARY KEY (id)); CREATE TABLE role( id int NOT NULL AUTO_INCREMENT, PRIMARY KEY (id), title VARCHAR(30), salary DECIM...
create database if not exists ${DB}; use ${DB}; drop table if exists orders; create table orders stored as ${FILE} as select * from ${SOURCE}.orders cluster by o_orderdate ;
--CREATE DATABASE Worksheet1; GO /*CREATE TABLE orders ( order_no INT, purch_amt NUMERIC(6, 2), ord_date DATE, customer_id INT, salesman_id INT ); INSERT INTO orders(order_no, purch_amt, ord_date, customer_id, salesman_id) VALUES(70001, 150.5, CONVERT(DATETIME, '2012-10-05'), 3005, 5002), (70009, 270.65, CONVERT...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-07-2020 a las 14:57:27 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- MySQL dump 10.13 Distrib 5.7.10, for Win64 (x86_64) -- -- Host: localhost Database: OMS -- ------------------------------------------------------ -- Server version 5.7.10-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 29, 2021 at 08:04 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- @testpoint: opengauss比较操作符>=,时间日期类型 -- 时间日期类型,比较的是时间早晚 SELECT '9999-12-30'::DATE >= '9999-12-31'::DATE; SELECT '9999-12-31 23:59:59.999999'::SMALLDATETIME >= '0001-01-01 00:00:00.000000'::SMALLDATETIME; SELECT '9999-12-31 23:59:59.999998'::SMALLDATETIME >= '9999-12-31 23:59:59.999999'::SMALLDATETIME; SELECT '0001-01...
INSERT INTO message (text) VALUES ('Hello') INSERT INTO message (text) VALUES ('World')
INSERT INTO Distributors ([Name], CountryId, AddressText, Summary) VALUES ('Deloitte & Touche', 2, '6 Arch St #9757', 'Customizable neutral traveling'), ('Congress Title', 13, '58 Hancock St', 'Customer loyalty'), ('Kitchen People', 1, '3 E 31st St #77', 'Triple-buffered stable delivery'), ('General Color Co Inc', 21, ...
CREATE TYPE [dbo].[PullRequestTableType] AS TABLE ( -- Required [Id] BIGINT NOT NULL, [Number] INT NOT NULL PRIMARY KEY CLUSTERED, -- NOT ID (for ordering) [IssueId] BIGINT NULL, -- Filled by the stored procs -- In list and full respo...
-- :doc Create at 14APR2021 by Saing -- :doc Modified at 14APR2021 by Saing -- : All the schema table here ---: 1 User Information CREATE TABLE IF NOT EXISTS USERS ( ID VARCHAR (36) PRIMARY KEY, FIRST_NAME VARCHAR (50), MID_NAME VARCHAR (50), LAST_NAME VARCHAR (50), DESCRIPTION text, EMAIL VA...
--Post İsteği DECLARE @Object AS INT; DECLARE @ResponseText AS VARCHAR(8000); DECLARE @Body AS VARCHAR(8000) = '{ "service" : "ProductsApi", "method" : "list", "username" : "EBS", "password" : "EBS", }' EXEC sp_OACreate 'MSXML2.XMLHTTP', @Object OUT; EXEC sp_OAMethod @Obje...
INSERT INTO log VALUES('idempotent 2');
insert into Test4 values(1, 'Jimmy', true), (2 , 'Alex', false);
DROP OPERATOR <> (epoint, epoint); DROP OPERATOR <> (ebox, ebox); DROP OPERATOR <> (ecircle, ecircle); CREATE OPERATOR <> ( leftarg = epoint, rightarg = epoint, procedure = epoint_btree_ne, commutator = <>, negator = =, restrict = neqsel, join = neqjoinsel ); CREATE OPERATOR <> ( leftarg = ebox, rig...
DROP TABLE IF EXISTS #BackupHeader CREATE TABLE #BackupHeader( BackupName nvarchar(128), BackupDescription nvarchar(255), BackupType smallint, ExpirationDate datetime, Compressed bit, Position smallint, DeviceType tinyint, USERNAME nvarchar(128), ServerName nvarchar(128), DatabaseName nvarchar(128), Databas...
DROP TABLE IF EXISTS south_migrationhistory; -- legacy, replaced by django_migrations table DROP FUNCTION IF EXISTS ft_date_insert() CASCADE; DROP FUNCTION IF EXISTS ft_date_update() CASCADE; DROP FUNCTION IF EXISTS ft_uuid_insert() CASCADE;
/* This script will create stored procedure to do the followings: 1. uniform transactionTime to 6 digits 2. remove duplicated rows 3. tagging on account level input parameters: @untaggedtable = table of untagged transactions @fraudtable = table of fraud transactions */ set ansi_nulls on go set quoted_identifier on ...
#standardSQL # 16_06_3rd_party: Validity of Dates in Last-Modified and Date headers by party SELECT client, party, COUNT(0) AS total_requests, COUNTIF(uses_date) AS total_date, COUNTIF(uses_last_modified) AS total_last_modified, COUNTIF(uses_date AND uses_last_modified) AS total_using_both, ROUND(COUNTIF...
SELECT * FROM users;
use payroll execute p_add_time_entry @employee_id=45, @entry_date='2019-05-24 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=46, @entry_date='2019-05-24 00:00:00', @hours_worked=5 execute p_add_time_entry @employee_id=54, @entry_date='2019-05-24 00:00:00', @hours_worked=5 execute p_add_time_entry @e...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 20, 2021 at 05:30 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 08-Jan-2021 às 18:22 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
CREATE TABLE users ( id SERIAL PRIMARY KEY, email TEXT UNIQUE NOT NULL, first_name TEXT, last_name TEXT, hashed_password TEXT NOT NULL, is_active BOOLEAN DEFAULT true, is_superuser BOOLEAN DEFAULT false ); CREATE TABLE "jwtBlacklist" ( id SERIAL PRIMARY KEY, token TEXT NOT NULL, ...
CREATE TABLE users (id BIGINT AUTO_INCREMENT NOT NULL, DTYPE VARCHAR(31), email VARCHAR(255) NOT NULL UNIQUE, enabled TINYINT(1) default 0 NOT NULL, password VARCHAR(255) NOT NULL, sex INTEGER NOT NULL, user_address VARCHAR(255) NOT NULL, user_login VARCHAR(255) NOT NULL UNIQUE, user_name VARCHAR(255) NOT NULL, PRIMARY...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 17 Apr 2021 pada 09.21 -- Versi server: 5.7.24-log -- 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...
\set ON_ERROR_STOP on CREATE SEQUENCE villain.hibernate_sequence START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE villain.hibernate_sequence OWNER TO service_villain; CREATE TABLE villain.villain ( id bigint NOT NULL, level integer NOT NULL, name character va...
SET XACT_ABORT ON; SET NOCOUNT ON; SET IMPLICIT_TRANSACTIONS OFF; go WHILE (@@TranCount > 0) COMMIT TRANSACTION; go DECLARE @debug bit SET @debug = 0 DECLARE @mspeaktypepeptideid bigint SET @mspeaktypepeptideid = (SELECT id FROM mspeaktype WHERE title = 'Peptides') DECLARE @mspeaktypefragmentid bigint SET @msp...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 29, 2020 at 02:20 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
SELECT * FROM CITY WHERE ID = 1661;
DROP TABLE IF EXISTS `tx_parcel`; CREATE TABLE `tx_parcel` ( `id` bigint(20) NOT NULL COMMENT 'ID', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `modify_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `is_deleted` tinyint(1) NOT NULL DEFAULT '0' COMMENT '逻辑删...
-- update module version UPDATE `sys_modules` SET `version` = '1.3.2' WHERE `uri` = 'site_customize' AND `version` = '1.3.1';
CREATE TABLE `kwf_logs` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `type` VARCHAR( 20 ) NOT NULL , `exception` VARCHAR( 255 ) NOT NULL , `thrown` VARCHAR( 255 ) NOT NULL , `message` VARCHAR( 255 ) NOT NULL , `exception_detail` TEXT NOT NULL , `request_uri` VARCHAR( 255 ) NOT NULL , `http_re...
-- simple batch start GO DECLARE @P1 INT = 12345 EXEC sp_execute @P1, 1 GO GO begin transaction GO GO DECLARE @P1 INT = 12345 EXEC sp_execute @P1, 1 GO -- Below output is only applicable if query is special case. for example, CREATE/ALTER TRIGGER, CREATE/ALTER FUNCTION, CREATE/ALTER PROC, CREATE/ALTER VIEW etc ...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE teacher ADD COLUMN `favorite_count` int unsigned NOT NULL DEFAULT 0 AFTER `years_of_experience`; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back ALTER TABLE teacher DROP COLUMN `favorite_count...