text
stringlengths
1
1.05M
DELIMITER / INSERT INTO KRIM_PERM_ID_BS_S VALUES(NULL) / INSERT INTO KRIM_PERM_T (PERM_ID, OBJ_ID, VER_NBR, PERM_TMPL_ID, NMSPC_CD, NM, DESC_TXT) VALUES((SELECT (MAX(ID)) FROM KRIM_PERM_ID_BS_S), UUID(), 1, (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NM = 'Default' AND NMSPC_CD='KUALI'), 'KC-SUBAWARD', 'CREATE SUB...
-- ---------------------------- -- Table structure for `fs_user` -- ---------------------------- DROP TABLE IF EXISTS `fs_user`; CREATE TABLE `fs_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'User Id', `name` varchar(255) NOT NULL COMMENT 'Nickname', `password` varchar(32) NOT NULL COMMENT 'md5(m...
-- ============================================= -- Author: Gunther Karolyi -- Create date: 21/05/2021 -- Description: Delete User Payroll System Test -- ============================================= DECLARE @insertState AS INT DECLARE @deleteState AS INT -- Inserting New User EXEC @insertState = Payroll.dbo.User_In...
SELECT * EXCEPT (seqnum) REPLACE (foo as bar, baz foobar) FROM my_tbl; -- Catch potential bugs in unions select * except (foo) from some_table union all select * from another_table; -- Except is allowed after other fields select 1 + 2 as calculated, * except (irrelevant) from my_tbl; -- This might be redunda...
CREATE TABLE IF NOT EXISTS raw_daily_data ( id SERIAL, ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, rec_dt DATE NOT NULL, rec_territory TEXT NOT NULL, rec_value NUMERIC, CONSTRAINT unique_entry UNIQUE(rec_dt, rec_territory, rec_value) )
ALTER TABLE `pc_core_area` ADD CONSTRAINT `pc_core_area_ibfk_1` FOREIGN KEY (`Layout`) REFERENCES `pc_core_layout` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `pc_core_area_ibfk_2` FOREIGN KEY (`Previous`) REFERENCES `pc_core_area` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE `pc_core_ba...
-- phpMyAdmin SQL Dump -- version 3.5.8.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 09, 2013 at 07:08 PM -- Server version: 5.5.34-0ubuntu0.13.04.1 -- PHP Version: 5.4.9-4ubuntu2.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
SELECT mqtt_sessions.id as id, mqtt_sessions.remote_endpoint_id as remote_endpoint_id, mqtt_sessions.type as type, mqtt_sessions.client_id as client_id, mqtt_sessions.data as data FROM mqtt_sessions, remote_endpoints, apis WHERE mqtt_sessions.remote_endpoint_id = remote_endpoints.id AND remote_endpoints.api...
use StackOverflow go create or alter procedure rpt.usp_Top_100_Users_that_rarely_upvote @MinReputation int, @MinUpvotes int as begin -- https://data.stackexchange.com/stackoverflow/query/6856/high-standards-top-100-users-that-rarely-upvote -- High Standards - Top 100 Users that rarely upvote. -- Top 100 Use...
create table ldap_oc_mappings ( id integer not null primary key, name varchar(64) not null, keytbl varchar(64) not null, keycol varchar(64) not null, create_proc varchar(255), delete_proc varchar(255), expect_return tinyint not null ); create table ldap_attr_mappings ( id integer not null primary key, oc_m...
insert into SPRING_DATA_CUSTOMER(ID, FORENAME, SURNAME, DOB) values (NULL, 'John', 'Doe', '1972-05-23'); insert into SPRING_DATA_CUSTOMER(ID, FORENAME, SURNAME, DOB) values (NULL, 'Jack', 'Pott', '1979-03-19'); insert into SPRING_DATA_CUSTOMER(ID, FORENAME, SURNAME, DOB) values (NULL, 'Carl', 'Marx', '1964-09-29'); ...
create view Metadata.vUserTableTypeColumn as select o.CatalogId, o.CatalogName, s.SchemaId, s.SchemaName, o.ObjectId as TableId, tt.name as TableName, c.name as ColumnName, d.PropertyValue as ColumnDescription, c.column_id - 1 as Position, c.user_type_id as DataTypeId, t.DataTypeName, c.is_c...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 13 Nov 2018 pada 05.51 -- Versi Server: 10.1.10-MariaDB -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
drop index ACT_IDX_EXEC_BUSKEY; drop index ACT_IDX_TASK_CREATE; drop index ACT_IDX_TASK_ASSIGNEE; drop index ACT_IDX_IDENT_LNK_USER; drop index ACT_IDX_IDENT_LNK_GROUP; drop index ACT_IDX_VARIABLE_TASK_ID; drop index ACT_IDX_INC_CONFIGURATION; drop index ACT_IDX_JOB_PROCINST; drop index ACT_UNIQ_AUTH_USER; drop index A...
BEGIN; ALTER TABLE IF EXISTS ONLY user_external_accounts DROP CONSTRAINT IF EXISTS user_external_accounts_user_id_fkey; ALTER TABLE IF EXISTS ONLY user_emails DROP CONSTRAINT IF EXISTS user_emails_user_id_fkey; ALTER TABLE IF EXISTS ONLY survey_responses DROP CONSTRAINT IF EXISTS survey_responses_user_id_fkey; ALTER T...
DROP INDEX IF EXISTS clearing_event_transaction_info_uniq; CREATE UNIQUE INDEX IF NOT EXISTS clearing_event_transaction_info_uniq ON midgard.clearing_event_transaction_info(clearing_id, invoice_id, payment_id, refund_id, transaction_type, trx_version);
-- MANIPULAÇÃO DE STRINGS -- 1 SELECT UCASE('trybe'); -- 2 SELECT REPLACE('Você já ouviu falar do DuckDuckGo?', 'DuckDuckGo', 'Google'); -- 3 SELECT LENGTH('Uma frase qualquer'); -- 4 SELECT SUBSTRING('A linguagem JavaScript está entre as mais usadas', 13, 10); -- 5 SELECT LCASE('RUA NORTE 1500, SÃO PAULO, BRASIL'); --...
-- file:plpgsql.sql ln:1794 expect:false begin x := '1234'
select count(id) as answer from (select id,(value-LAG(value,3) OVER (order by id)) as difference from stdin) where difference>0;
INSERT INTO `shuyang_module` (`module`, `name`, `url`, `iscore`, `version`, `description`, `setting`, `listorder`, `disabled`, `installdate`, `updatedate`) VALUES ('tag', '标签向导', 'tag/', 0, '1.0', '标签向导', '', 0, 0, '2010-9-05', '2010-9-05');
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 24, 2020 at 06:42 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
"day" "ammount" 2013-01-24 323 2013-01-25 233 2013-01-26 433 2013-01-27 555 2013-01-28 123 2013-01-29 0 2013-01-30 221 2016-05-25 222
/* Columnstore Indexes Scripts Library for SQL Server 2016: Row Groups - Shows detailed information on the Columnstore Row Groups inside current Database Version: 1.6.0, January 2018 Copyright 2015-2018 Niko Neugebauer, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/) Licensed under the Apa...
-- Copyright (C) 2011 LedgerSMB Core Team. Licensed under the GNU General -- Public License v 2 or at your option any later version. -- Docstrings already added to this file. -- README: This module is unlike most others in that it requires most functions -- to run as superuser. For this reason it is CRITICAL that...
-- @testpoint:openGauss保留关键字Asc同时作为表名和列名带引号,并进行dml操作,Asc列的值最终显示为1000 drop table if exists "Asc"; create table "Asc"( 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_char char(50) de...
CREATE TABLE COUNTRY ( COUNTRYCODE VARCHAR2(5 BYTE) NOT NULL, COUNTRYNAME VARCHAR2(30 BYTE) NOT NULL ) TABLESPACE USERS PCTUSED 0 PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 64K MINEXTENTS 1 MAXEXTENTS 2...
-- file:jsonb.sql ln:277 expect:true SELECT jsonb_exists_any('{"a":null, "b":"qq"}', '{}'::text[])
call p_insertStudents("William", "Dice", "779 Lebanon Rd.", "Frisco", "TX", "75034", "william.dice", "williamdice");
SELECT "IGlocations2_2"."State (copy)" AS "State (copy)" FROM "IGlocations2_2" GROUP BY 1 ORDER BY "State (copy)" ASC;
-- Python for Everybody Database Handout -- https://www.py4e.com/lectures3/Pythonlearn-15-Database-Handout.txt -- Download and Install: http://sqlitebrowser.org/ -- Single Table SQL CREATE TABLE "Users" ("name" TEXT, "email" TEXT) INSERT INTO Users (name, email) VALUES ('Chuck', 'csev@umich.edu') INSERT INTO Users...
-- Code is reviewed and is in working condition /* Activity A - 1 Scenario: Let’s say that we have two customers Mike and John and two database users each for our two customers. (Created in previous exercise). You have to implement Row Level Security so each customer should only be able to view and edit their record...
-- schema.test -- -- execsql { -- DROP TRIGGER abc_trig; -- } DROP TRIGGER abc_trig;
create table test_normalization.`nested_stream_with_co__lting_into_long_names__dbt_tmp` as ( -- Final base SQL model select id, `date`, `partition`, _airbyte_emitted_at, _airbyte_nested_strea__nto_long_names_hashid from test_normalization.`nested_stream_with_co_1g_into_long_names_scd...
begin transaction; -- -- Dumping data for table competitions -- INSERT INTO competitions (compID, compName_en, compName_fr, compWeight, compResultsLink) VALUES (1, 'Scavenger Hunt / Puzzle Heros', 'Chasse au trésor / Casse-tête du Héro', 10, NULL), (2, 'Long running', 'Longue haleine', 8, NULL), (3, 'Extreme Programm...
WITH actor_categories AS ( SELECT a.actor_id, CASE WHEN COUNT(film_id) < 30 THEN 'less productive' WHEN COUNT(film_id) >= 30 THEN 'productive' END actor_category --COUNT(film_id) as film_cnt FROM actor a LEFT JOIN film_actor fa ON a.actor_id = fa.actor_id GROUP BY a....
create user 'fitness'@'%' identified by '4757'; grant all privileges on *.* to 'fitness'@'%' with grant option; create database fitness_ntf character set utf8 collate utf8_general_ci;
'''List all the NOCs (National Olympic Committees), in alphabetical order by abbreviation. These entities, by the way, are mostly equivalent to countries. But in some cases, you might find that a portion of a country participated in a particular games (e.g. one guy from Newfoundland in 1904) or some other oddball...
CREATE TABLE INTREQPR ( ID VARCHAR(45), REQNUMBER VARCHAR(45), REQTYPE VARCHAR(255), -- TIPO DE SOLICITUD REQSTATUS VARCHAR(255), -- STATUS PROCESS VARCHAR(90), -- PROCESO IMPACTADO NOTE VARCHAR(1000), -- DESCRIPCION CAUSEANALY VARCHAR(1000), -- ANALISIS DE CAUSA PEOINVOLVE VARCHAR(1000...
---- ALTER TABLE ... CHANGE COLUMN , type change -- constraints : constraints : UNIQUE KEY on multiple columns -- ordering : no order defined -- name : same or different -- type : changed --------------------- UNIQUE keys ------- type the same, name changed - only one unique on 2 columns create table t1 (d1 doub...
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('AI', 'Anikuila'); INSERT INTO "list" ("id", "value") VALUES ('AG', 'Anitikua mo Palaputa'); INSERT INTO "list" ("id", "value") VALUES ('EZ', 'Eurozone'); INSERT INTO "list" ("id", "valu...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 24 Jul 2018 pada 11.49 -- Versi Server: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- SQLite select * from user select * from tweet
CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR (20), PRIMARY KEY (PRODUCT_NAME) ); INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server'); CREATE TABLE IF NOT EXISTS IDN_OAUTH_CONSUMER_APPS ( ID INTEGER NOT NULL AUTO_INCREMENT, CONSUMER_KEY VARCHAR...
Start Transaction; Alter table registrolocalizacao add column a_processar int default 0; UPDATE registrolocalizacao TAB1 INNER JOIN ( select hashgeo,hashdata from registrolocalizacao group by hashgeo,hashdata having count(*) >1 and sum(situacao_id=3)>0 ) TAB2 ON TAB1.hashgeo = TAB2.hashgeo And TAB1.hashdata = TAB2...
insert into `designer_form_field_attribute_type`(`id`,`name`,`type`) values (1,'Integer','integer'), (2,'String','string');
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Tempo de geração: 27-Out-2020 às 20:17 -- Versão do servidor: 10.4.14-MariaDB -- versão do PHP: 7.3.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
/* SQLyog Community v13.1.5 (64 bit) MySQL - 10.2.33-MariaDB-log : Database - vitrineatma ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KE...
/* WARNINGS: - Once your backups are encrypted you CANNOT restore them to ANY other server WITHOUT a duplicate/copy of the Certificate used to encrypt your backups. Please read all instructions BEFORE execution/usage. DEPENDENCIES: - SQL Server 2014+ - SQL Server Standard Edition or Enterprise...
-- -- Структура таблицы `configs` -- CREATE TABLE IF NOT EXISTS `configs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated` timestamp NULL DEFAULT NULL, `key` varchar(50) NOT NULL, `value` text NOT NULL, PRIMARY KEY(`id`), UNIQUE KEY `key` (`...
BEGIN; CREATE TABLE IF NOT EXISTS "vulnerabilities_by_author" ( "vulnerability_id" UUID NOT NULL, "created_at" TIMESTAMP NOT NULL, "author" VARCHAR(500) NOT NULL, "workspace_id" UUID NOT NULL, "repository_id" UUID NOT NULL, "critical_vulnerability" INT NOT NULL, "critical_false_positive" IN...
CREATE TABLE [dbo].[Products] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [CategoryId] INT NOT NULL DEFAULT 0, [Name] NVARCHAR(100) NOT NULL, [Price] MONEY NOT NULL, [ImageUrl] NVARCHAR(500) NOT NULL DEFAULT 'images/products/default_dvd.jpg', CONSTRAINT [FK_Products_Categories] FOREIGN KEY ([Cat...
CREATE TABLE IF NOT EXISTS vocabulary(no serial UNIQUE, word text); CREATE TABLE IF NOT EXISTS labotter(user_name text UNIQUE, lab_in_flag int, lab_in timestamp, lab_rida timestamp, min_sum int);
CREATE TABLE visa_restrictions_index ( country_code VARCHAR (2) PRIMARY KEY, rank SMALLINT NOT NULL, acc SMALLINT NOT NULL, sharing SMALLINT DEFAULT 0 );
-- file:join.sql ln:1397 expect:true explain (costs off) select i8.* from int8_tbl i8 left join (select f1 from int4_tbl group by f1) i4 on i8.q1 = i4.f1
CREATE TABLE Zasilacz ( ID_Zasilacza INT AUTO_INCREMENT PRIMARY KEY, Nazwa VARCHAR(200), Moc_max VARCHAR(200), Standard VARCHAR(200), Certyfikat VARCHAR(200), Cena INT ); INSERT INTO zasilacz (`Nazwa`, `Moc_max`, `Standard`, `Certyfikat`, `Cena`) VALUES ('SilentiumPC Vero L3 600W 80 Plus Bronze','600 W','AT...
CREATE UNIQUE INDEX "PKEY_CTLAT_LONG_REF_SOURCE" ON "CTLAT_LONG_REF_SOURCE" ("LAT_LONG_REF_SOURCE")
INSERT INTO departments (department) VALUES("Finance"), ("Accounting"), ("Engineering"), ("Corporate"); INSERT INTO roles (title,salary,department_id) VALUES ("Junior Engineer",50000,3), ("Accountant",48000,2), ("Manager",65000,4), ("Analyst",55000,1); INSERT INTO employees (first_name,last_name,role_id,department_i...
CREATE FUNCTION [dbo].[getRankDesc]( @rank_id int ) RETURNS VARCHAR(100) AS BEGIN DECLARE @l_role_name VARCHAR(100); SELECT @l_role_name = rank_desc FROM dbo.ranks where rank_id = @rank_id RETURN @l_role_name; END;
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore \d pg2_heap_table_gist_index_c0 set enable_seqscan=off; select property from pg2_heap_table_gist_index_c0 where property='( (0,0), (1,1) )'; DROP TABLE pg2_heap_table_gist_index_c0;
-- -- patch-comment-table.sql -- -- T166732. Add a `comment` table and various columns (and temporary tables) to reference it. -- Sigh, sqlite, such trouble just to change the default value of a column. CREATE TABLE /*_*/comment ( comment_id bigint unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, comment_hash INT NOT...
INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES (485, 0, 'plg_system_privacyconsent', 'plugin', 'privacy...
create or replace view v_report_payments_by_provider_sub3 as select 1 as timeframe union select 2 as timeframe union select 3 as timeframe union select 4 as timeframe ;
CREATE TABLE `mydatabase`.`users` ( `id` INT NOT NULL AUTO_INCREMENT , `username` VARCHAR(50) NOT NULL , `password` VARCHAR(255) NOT NULL , `created_at` DATETIME NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`), UNIQUE (`username`)) ENGINE = InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci;
DO $$ DECLARE lid bigint; BEGIN lid := (SELECT id FROM i18n.languages WHERE iso_language='en') ; DELETE FROM i18n.labels l WHERE l.language_id=lid; INSERT INTO i18n.labels(language_id, key, value) VALUES --FIXME standardize label keys, either use _ or camelCase (lid, 'web.generic.title', 'Captura'), (li...
/* Navicat Premium Data Transfer Source Server : medcon server Source Server Type : MySQL Source Server Version : 100138 Source Host : 192.168.161.100:3306 Source Schema : webinarsegmi Target Server Type : MySQL Target Server Version : 100138 File Encoding :...
-- TABLES ALTER TABLE `bx_market_files` CHANGE `size` `size` bigint(20) NOT NULL; ALTER TABLE `bx_market_photos` CHANGE `size` `size` bigint(20) NOT NULL; ALTER TABLE `bx_market_photos_resized` CHANGE `size` `size` bigint(20) NOT NULL;
INSERT INTO job_opportunity (jo_name, description, contract_type,working_hours,salary_range_ini,salary_range_end,gender,availability,workplace_country,workplace_city,workplace_neighborhood,workplace_street,workplace_home_number,workplace_complement,workplace_zip_code, workplace_latitude, workplace_longitude,divu...
/* These tables coordinate scraping of Wikipedia page visit stats and store page visit counts for pages of interest (i.e. those which are epidemiologically pertinent). */ /* `wiki` is an optimized store of Wikipedia page visits per hour, per article, per language (for pre-selected article and language combinations). ...
select subject_id, cohort_definition_id, cohort_start_date, cohort_end_date from @tableQualifier.cohort where subject_id = @subjectId
/*** Script to enable Advisory Condition Evaluation Tracking *** IMPORTANT: - The SentryOne Scalability Pack must be installed first (partitioned CCI + In-mem OLTP) https://docs.sentryone.com/help/recommendations#scalabilitypack - The DynamicConditionStatus table MUST be memory-optimized. DISCLAIMER: Thes...
DROP TABLE IF EXISTS link_to_be_process; DROP TABLE IF EXISTS link_already_process; DROP TABLE IF EXISTS news; CREATE TABLE link_to_be_process(link VARCHAR(255)); CREATE TABLE link_already_process(link VARCHAR(255)); CREATE TABLE news(id int(11) PRIMARY KEY auto_increment,title text , content text , url VARCHAR(200) ,...
include: helpers/server_helpers.sql; -- Test this scenario: -- mirror has latency replaying the WAL from the primary, the master is reset -- from PANIC, master will start the DTX recovery process to recover the -- in-progress two-phase transactions. -- The FTS process should be able to continue probe and 'sync off' t...
CREATE TABLE `businesspic` ( `identity` varchar(50) NOT NULL, `businesstype` int(11) NOT NULL DEFAULT '0', `pictype` smallint(2) NOT NULL DEFAULT '0', `uploaded` tinyint(1) NOT NULL DEFAULT '0', `time` datetime NOT NULL, PRIMARY KEY (`identity`,`businesstype`,`pictype`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;...
create table url ( uri varchar(21) not null constraint url_pkey primary key, full_url varchar(255) not null constraint url_full_url_key unique, short_url varchar(255) not null constraint url_short_url_key unique, count integer );
--*************************GO-LICENSE-START********************************* -- Copyright 2014 ThoughtWorks, 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.apach...
CREATE TABLE IF NOT EXISTS User ( id integer primary key autoincrement, username text unique, password text, gender text default null, image text default "none", age integer default null, phone text default null, fav_color text default null, interests text default null, hometown ...
USE test; INSERT INTO metrics VALUES (15,2012,1,0,1405313702,2012); INSERT INTO metrics VALUES (15,2013,1,0,1405401901,2013); INSERT INTO metrics VALUES (15,2014,1,0,1405491001,2014); INSERT INTO metrics VALUES (15,2015,1,0,1405575902,2015); INSERT INTO metrics VALUES (15,2016,1,0,1405664101,2016); INSERT INTO metrics...
SELECT name from people JOIN directors ON directors.person_id = people.id JOIN ratings ON directors.movie_id = ratings.movie_id WHERE ratings.rating >= 9.0 GROUP BY people.id;
SELECT es.session_id, er.status, er.blocking_session_id, er.command, er.wait_type, er.last_wait_type, er.wait_resource, er.wait_time FROM sys.dm_exec_requests er INNER JOIN sys.dm_exec_sessions es ON er.session_id = es.session_id AND es.is_user_process = 1; GO
def Main = block header = Header tracks = Many header.track_num Track -- A tagged block of midi data def Chunk name Body = block ExactBlock 4 (Match name) ExactBlock (BE32 as uint 64) Body -------------------------------------------------------------------------------- -- MIDI Header def Header...
SELECT tab0.v0 AS v0 , tab1.v3 AS v3 , tab2.v2 AS v2 FROM (SELECT sub AS v0 FROM wsdbm__subscribes$$1$$ WHERE obj = 'wsdbm:Website3520' ) tab0 JOIN (SELECT sub AS v0 , obj AS v2 FROM wsdbm__likes$$3$$ ) tab2 ON(tab0.v0=tab2.v0) JOIN (SELECT obj AS v3 , sub AS v2 FROM sorg__caption$$2$$ ...
INSERT INTO echo(id, message) VALUES (1, 'Echo message');
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 21 Jan 2021 pada 01.53 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
ALTER TABLE [dbo].[smscenter_groups] ADD [state_sent] [smallint] NOT NULL DEFAULT 0, [state_enabled] [smallint] NOT NULL DEFAULT 0, [state_manual] [smallint] NOT NULL DEFAULT 0 GO CREATE TRIGGER [dbo].[grSmsInsertTrigger] ON [dbo].[GrRec] FOR INSERT AS INSERT INTO [dbo].[smscenter_groups] (...
INSERT INTO sys_user(pk_id,user_code,real_name,user_desc,user_type) VALUES(1234567890,'U1000001','张三','描述',1);
prompt --application/shared_components/user_interface/templates/report/badge_list begin -- Manifest -- ROW TEMPLATE: BADGE_LIST -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.10.01' ,p_release=>'20.2.0.00.20' ,p_default_workspace_id=>2601326064169245 ,p_default_application_id=>138 ,...
CREATE TABLE IF NOT EXISTS product_category( id int NOT NULL AUTO_INCREMENT PRIMARY KEY, name varchar(20) unique, description varchar(50) );
PROMPT Prepare runner for the top package procedure without sub-suites by package name for current user --Arrange declare c_path varchar2(100) := 'test_package_2.test2'; l_objects_to_run ut_suite_items; l_test0_suite ut_logical_suite; l_test1_suite ut_logical_suite; l_test_proc ut_test; begin --Act l_obje...
-- @testpoint: 隐式游标%notfound,提取不到数据 drop table if exists emp; create table emp(empno int,ename varchar(10),job varchar(10) ,sal integer); insert into emp values(1,'zhangsan','doctor1',10000),(2,'zhangsan2','doctor2',10000),(123,'zhangsan3','doctor3',10000); create or replace procedure p_emp_005(str boolean) as declar...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: mydb -- ------------------------------------------------------ -- Server version 5.5.5-10.1.36-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
prompt --application/shared_components/security/app_access_control/contributor begin -- Manifest -- ACL ROLE: Contributor -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.04.15' ,p_release=>'21.1.6' ,p_default_workspace_id=>9690978936188613 ,p_default_application_id=>122 ,p_default_id...
{{ config(materialized='view') }} with data as ( {{ dbt_ml_preprocessing.standard_scaler( ref('data_standard_scaler') ,'col_to_scale') }} ) select * from data
UPDATE SnComment SET RelationshipId = (SELECT TOP 1 Id FROM SnRelationship WHERE (SnComment.NoteId IS NULL OR SnRelationship.NoteId = SnComment.NoteId) AND (SnComment.FileId IS NULL OR SnRelationship.FileId = SnComment.FileId) AND (SnComment.AlbumId IS NULL OR SnRelationship.AlbumId = ...
CREATE TABLE "SENTRY_USER" ( "USER_ID" BIGINT NOT NULL, "USER_NAME" character varying(128) NOT NULL, "CREATE_TIME" BIGINT NOT NULL ); ALTER TABLE ONLY "SENTRY_USER" ADD CONSTRAINT "SENTRY_USER_PK" PRIMARY KEY ("USER_ID"); ALTER TABLE ONLY "SENTRY_USER" ADD CONSTRAINT "SENTRY_USER_USER_NAME_UNIQUE" UNIQUE ("U...
SELECT `T1`.`shift_time_left`, `T1`.`shift_time_right`, `T1`.`shift_time` FROM `price_seasonal` AS `T1` WHERE `T1`.`symbol` = '{strSymbol}' AND `T1`.`time_frames` = '{strTimeFrames}' AND `T1`.`samples` = {nSamples} AND `T1`.`frequency` = {nFrequency} ORDER BY `T1`.`s...
create table log.slow_expression ( id bigserial primary key, expression_source varchar(126) not null, expression_id integer not null, site_id bigint not null, site_task_id bigint not null, search_time numeric not null check (search_time > 0), ...
CREATE TABLE workflow ( workflow_id varchar(8) not null, type varchar(50) not null, state varchar(30) not null, last_update timestamp, primary key ( workflow_id ) ); CREATE TABLE workflow_history ( workflow_hist_id varchar(8) not null, workflow_id varchar(8) no...
drop procedure if exists sp_LoadCityMaster; create procedure sp_LoadCityMaster() begin declare currentSchema varchar(100) default ''; select database() into currentSchema; if exists( select 1 from information_schema.TABLES where TABLE_SCHEMA = currentSchema ...
CREATE SCHEMA `cats` ; USE cats; CREATE TABLE `cats`.`employee` ( `employeeid` VARCHAR(15) NOT NULL, `managerid` VARCHAR(15) NULL, `name` VARCHAR(45) NULL, PRIMARY KEY (`employeeid`)); CREATE TABLE `cats`.`role` ( `roleid` VARCHAR(15) NOT NULL, `name` VARCHAR(45) NULL, `description` VA...