sql
stringlengths
6
1.05M
-- @testpoint: instr函数参数与concat函数结合使用 SELECT instr(concat('adf$k...jsg$$$#',215478.33),'$',3,3) from sys_dummy;
<filename>04-Numeric data types and summary functions.sql -- Select average revenue per employee by sector SELECT sector, AVG(revenues/employees::numeric) AS avg_rev_employee FROM fortune500 GROUP BY sector -- Use the column alias to order the results ORDER BY avg_rev_employee; -- Divide unanswered_count...
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 8.0.27 - MySQL Community Server - GPL -- SO del servidor: Linux -- HeidiSQL Versión: 11.3.0.6295 -- -----------------------------------------------...
--19. Write a SQL query to find all employees and their address. Use equijoins (conditions in the WHERE clause). SELECT FirstName, LastName, e.AddressID, a.AddressID, a.AddressText FROM dbo.Employees e, dbo.Addresses a WHERE e.AddressID = a.AddressID
SELECT TOP(5) C.CountryName, R.RiverName FROM Countries AS C LEFT OUTER JOIN CountriesRivers AS CR ON C.CountryCode = CR.CountryCode LEFT OUTER JOIN Rivers AS R ON CR.RiverId = R.Id WHERE C.ContinentCode = 'AF' ORDER BY C.CountryName
-- Query the list -- of CITY names from STATION that do not start -- with vowels and do not -- end -- with vowels. Your result cannot contain duplicates. select distinct CITY from STATION where not (CITY like '%A' or CITY like '%E' or CITY like '%I' or CITY like '%O' or CITY like '%U') and not (CITY ...
<filename>belajar_ci.sql -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.37-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- -----------------------...
<reponame>arechesk/PythonHW SELECT * FROM workers WHERE salary < 30000; SELECT * FROM workers WHERE position = "программист" AND salary < 30000;
<filename>apex/5.0/f179/application/shared_components/user_interface/templates/button.sql prompt --application/shared_components/user_interface/templates/button begin wwv_flow_api.create_button_templates( p_id=>wwv_flow_api.id(327293119580455584) ,p_template_name=>'Icon' ,p_internal_name=>'ICON' ,p_template=>'<button ...
/****** Object: StoredProcedure [dbo].[DeleteNode] Script Date: 4/13/2017 2:42:20 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF OBJECT_ID('dbo.DeleteNode') IS NULL -- Check if SP Exists EXEC('CREATE PROCEDURE dbo.InsertNode AS SET NOCOUNT ON;') -- Create dummy/empty SP GO -- ================...
<filename>schema/scripts/20140521-092810.sql update users set email = '<EMAIL>' where email = '<EMAIL>' and deleted_at is null; update services set deleted_at = now(), deleted_by_guid = (select guid from users where deleted_at is null and email='<EMAIL>') where deleted_at is null and created_at < ...
--DECLARE @FirstfileName sysname --SELECT @FirstfileName=name FROM tempdb..sysfiles WHERE fileid = 1 --IF @FirstfileName = 'tempdev' --BEGIN -- ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N'tempdev', NEWNAME=N'tempdev1') -- ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N'tempdev1', SIZE = ##TempDBEachDataFileSize##KB ,...
<gh_stars>1-10 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
<filename>phoenix-scala/sql/V2.003__update_promotion_discount_links_view.sql drop index promotions_search_view_idex; drop materialized view promotions_search_view; drop index promotion_discount_links_view_idex; drop materialized view promotion_discount_links_view; create materialized view promotion_discount_links_vie...
/** * \file * \brief The AssertFail stored procedure. * \author <NAME> */ if (object_id('ssunit.AssertFail') is not null) drop procedure ssunit.AssertFail; go /** * Asserts that the test has failed for some reason. * NB: All other asserts are implemented in terms of this assert. */ create procedure ssunit.A...
CALL moduleAddNewByPath( "Multiselection", 1, 1, "administrator/headmod_System/modules/mod_User/DisplayAll/Multiselection/Multiselection.php", "DisplayAll", "root/administrator/System/User/DisplayAll", @newModuleId ); INSERT INTO SystemGroupModuleRights (groupId, moduleId) VALUES (3, @newModuleId); CALL moduleAdd...
<gh_stars>100-1000 -- in.test -- -- execsql { -- INSERT INTO t1 VALUES('hello', 'world'); -- SELECT * FROM t1 -- WHERE a IN ( -- 'Do','an','IN','with','a','constant','RHS','but','where','the', -- 'has','many','elements','We','need','to','test','that', -- 'collisions','hash','table','ar...
CREATE VIEW [View1] AS SELECT Table1.* FROM Table1 WITH (nolock) INNER JOIN dbo.Table2 t2 ON 1 = 1 AND dbo.Table1.[Table1Id] = t2.[Tbl1Id] AND dbo.Table1.[Table1Id] = t2.[Tbl1Id] AND GETDATE() > GETDATE() - 1 AND LEFT(dbo.Table1.[Table1Id], 20) = LEFT(t2.[Tbl1Id], 20)
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:arrays.sql ln:349 expect:true SELECT NULL::text[]::int[] AS "NULL"
<reponame>jermiy/services-core -- Your SQL goes here CREATE OR REPLACE FUNCTION project_service._serialize_reward_basic_data(json) RETURNS json LANGUAGE plpgsql IMMUTABLE AS $function$ declare _result json; begin select json_build_object( 'current_ip', ($1->>'...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: golden-xchange -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RES...
<filename>db_code/data.sql<gh_stars>0 SELECT * FROM agriplus.weather_data; select date(timestamp), avg(temp_avg), min(temp_avg), max(temp_avg), count(if(sol_rad_avg>0,1,null))/4 from weather_data group by date(timestamp);
<reponame>vvd170501/ClickHouse<gh_stars>1000+ DROP TABLE IF EXISTS tab; CREATE TABLE tab (x UInt32, y UInt32) ENGINE = MergeTree() ORDER BY x; INSERT INTO tab VALUES (1,1),(1,2),(1,3),(1,4),(1,5); INSERT INTO tab VALUES (2,6),(2,7),(2,8),(2,9),(2,0); SELECT * FROM tab ORDER BY x LIMIT 3 SETTINGS optimize_read_in_or...
--------------------------------------------------------------------- -- LAB 04 -- -- Exercise 4 --------------------------------------------------------------------- USE TSQL; GO --------------------------------------------------------------------- -- Task 1 -- -- copy-paste text about lab from doc file -----------...
<gh_stars>1-10 --SET spark.sql.ansi.enabled = false --IMPORT timestamp.sql
<reponame>lintzc/GPDB<gh_stars>1-10 -- @description varying_join_now.sql -- @db_name builtin_functionproperty -- @author tungs1 -- @modified 2013-04-17 12:00:00 -- @created 2013-04-17 12:00:00 -- @executemode NORMAL -- @tags functionPropertiesBuiltin HAWQ SELECT count(distinct i ) FROM now() i, foo j;
<reponame>ChristopherBiscardi/superhuman-registry<gh_stars>1-10 -- Verify sr:appschema on pg BEGIN; SELECT pg_catalog.has_schema_privilege('sr', 'usage'); ROLLBACK;
<reponame>Zhaojia2019/cubrid-testcases --Test db_class using create virtual class and retrieve relative information --Create test class create class test_class(col1 integer, col2 varchar(10), col3 date); insert into test_class values(999, 'nhncorp', sysdate); insert into test_class values(999, 'nhncorp', sysdate); ...
-- @testpoint:opengauss关键字or(保留),作为角色名 --关键字不带引号-合理报错 drop role if exists or; create role or with password '<PASSWORD>' valid until '2020-12-31'; --关键字带双引号-成功 drop role if exists "or"; create role "or" with password '<PASSWORD>' valid until '2020-12-31'; --清理环境 drop role "or"; --关键字带单引号-合理报错 drop role if exists 'o...
Rem Rem $Header: statsauto.sql 06-dec-99.18:32:45 cdialeri Exp $ Rem Rem statsauto.sql Rem Rem Copyright (c) Oracle Corporation 1999. All Rights Reserved. Rem Rem NAME Rem statsauto.sql Rem Rem DESCRIPTION Rem SQL*PLUS command file to automate the collection of STATPACK Rem ...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.3.9-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------...
<reponame>diPhantxm/hospital-rest-api CREATE TABLE visits( id int primary key identity(1, 1), patientId int not null foreign key references patients(id), diseaseId int not null foreign key references diseases(id), doctorId int not null foreign key references doctors(id), visitDate date not null );
<gh_stars>0 SELECT * FROM CITY WHERE POPULATION >100000 AND COUNTRYCODE = 'USA';
-- Table: inntektspost -- DROP TABLE ainntektspost; CREATE TABLE IF NOT EXISTS ainntektspost ( inntektspost_id integer NOT NULL GENERATED BY DEFAULT AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ), inntekt_id integer NOT NULL, utbetalingsperiode char(7), opptjeningsperiode_f...
--성적테이블 삭제 DROP TABLE sungjuk; --성적테이블 생성 CREATE TABLE sungjuk ( sno NUMBER NOT NULL ,uname VARCHAR(20) ,kor INT NOT NULL ,eng INT NOT NULL ,mat INT NOT NULL ,aver INT ,addr VARCHAR(50) ,wdate DATE ); --모든 행 삭제 DELETE FROM sungjuk; --행 갯수 SELECT COUNT(*) FROM sungjuk; --사용자에게 입력...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-03-2022 a las 05:46:44 -- Versión del servidor: 10.4.22-MariaDB -- Versión de PHP: 8.1.2 INSERT INTO `agentes` (`id`, `nomina`, `nombre`, `asignacion`, `ingreso`, `nds`, `telefonos`, `beneficia...
<reponame>moorejandy/Burger INSERT INTO burgers (burger_name) VALUES ('The Everthing'), ("Beyond"), ("Double Patty w/ Cheese"), ("Bacon Barbecue"); INSERT INTO burgers (burger_name, devoured) VALUES ("Avocado", true);
<filename>WINTERS_ARG_sql/3020_TII_WIN_ART_VEND_X_PROV.sql USE [DYNAMICS] GO /****** Object: StoredProcedure [dbo].[TII_WIN_ART_VEND_X_PROV] Script Date: 28/8/2018 16:34:19 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[TII_WIN_ART_VEND_X_PROV] @FDDE DATETIME, @FHTA d...
-- pagerfault.test -- -- execsql { PRAGMA cache_size = 10 } PRAGMA cache_size = 10
<gh_stars>1-10 USE [VipunenTK_DW] GO /****** Object: Table [dbo].[f_4_3_Tutkinnon_suorittaneiden_paaasiallinen_toiminta] Script Date: 20.11.2020 9:11:39 ******/ DROP TABLE [dbo].[f_4_3_Tutkinnon_suorittaneiden_paaasiallinen_toiminta] GO /****** Object: Table [dbo].[f_4_3_Tutkinnon_suorittaneiden_paaasiallinen_to...
IF OBJECT_ID ( N'dbo.ScalarFunc', 'P' ) IS NOT NULL DROP PROCEDURE dbo.ScalarFunc GO CREATE PROCEDURE ScalarFunc @Amount INT OUTPUT AS BEGIN DECLARE @funcname varchar(200), @Par varchar(200); SET NOCOUNT ON; DECLARE funcName_Cursor CURSOR FOR SELECT DISTINCT sys.objects.object_id FROM sys.objects...
<reponame>unix1/DNSAuth<gh_stars>1-10 -- Opening the CLI psql -h localhost -p 5432 -d pipeline -- Creating the customer table DROP TABLE ns_customers; CREATE TABLE ns_customers( ip TEXT PRIMARY KEY NOT NULL, name TEXT, asn BOOL, prefix BOOL ); -- Inserting some customers.. INSERT INTO ns_customers VALUE...
# data for created schema in schema-test.sql USE budget_monitor_test; INSERT INTO roles (rolename) VALUES ('USER'), ('ADMIN'); INSERT INTO categories (idCategory, idSuperCategory, owner, name, color) VALUES (1, NULL, NULL, 'ROOT_CATEGORY', NULL), (2, 1, NULL, 'INCOME_CATEGORY', NULL), (3, 1, NUL...
INSERT INTO g2application VALUES (20001, 2401, 'ACCEPTED', 'Personal Injury Protection', 2001) ; INSERT INTO g2application VALUES (20002, 2402, 'PENDING', 'Collision Coverage', 2002) ; INSERT INTO g2application VALUES (20003, 2403, 'PENDING', 'Liability Coverage', 2003) ; INSERT INTO g2application VALUES (20004, 2404, ...
CREATE TABLE accounts ( qq INTEGER PRIMARY KEY, code CHAR(9), created_time TIMESTAMP DEFAULT (datetime('now', 'localtime')), is_active BOOL DEFAULT true, recent_type CHAR(10) DEFAULT 'text', b30_type CHAR(10) DEFAULT 'theme_default' );
<gh_stars>1-10 update email_record set complaint = 'true' where message_id = $1 returning user_id;
<reponame>rainmaple/duckdb<gh_stars>1-10 SELECT ( SELECT l_linestatus FROM main.lineitem LIMIT 1 offset 4) AS c0, subq_0.c1 AS c1, subq_0.c0 AS c2, subq_0.c1 AS c3, subq_0.c0 AS c4, CASE WHEN subq_0.c1 IS NULL THEN subq_0.c1 ELSE ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 13, 2021 at 06:08 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/* Copyright 2019 Google LLC * * 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 ...
--<ScriptOptions statementTerminator=";"/> CREATE TABLE MANUFACTURER ( _id INTEGER PRIMARY KEY AUTOINCREMENT, uuid TEXT NOT NULL, name TEXT NOT NULL, logo TEXT ); CREATE UNIQUE INDEX manufacturer_uuid_idx ON MANUFACTURER (uuid); CREATE TABLE BRAND ( _id INTEGER PRIMARY KEY AUTOINCREMENT, u...
INSERT INTO positions (name, deleted) VALUES ('Table tennis instructor', true);
<reponame>NarasimhaRajuKotnala/a2si-appointmentbooking-poc<filename>ccri-database/src/main/resources/db/postgreSQL/V1.7__Sample Location.sql INSERT INTO Location (LOCATION_ID,RES_DELETED,RES_CREATED,RES_MESSAGE_REF,RES_UPDATED,ENT_NAME,status,MANAGING_ORGANISATION_ID,physicalType,TYPE_CONCEPT_ID) VALUES (1,NULL,NULL,N...
-- @author ojourmel -- schema for imsi database DROP FUNCTION IF EXISTS insertrole(_name TEXT); DROP TABLE IF EXISTS creationcollection; DROP TABLE IF EXISTS creationcreatorrole; DROP TABLE IF EXISTS creationrole; DROP TABLE IF EXISTS creation; DROP TABLE IF EXISTS creator; DROP TABLE IF EXISTS role; CREATE TABLE ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 06, 2018 at 11:20 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<filename>siakad.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 29, 2020 at 11:59 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 18 Jan 2022 pada 22.29 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 03, 2020 at 08:04 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>EvanGertis/AlgorithmicIntuition<gh_stars>0 UPDATE exercise SET exercise = 'DFS.PNG' WHERE id = 1;
<gh_stars>1-10 CREATE TABLE [dbo].[town]( [KEN] [nvarchar](2) NOT NULL, [CITY] [nvarchar](3) NOT NULL, [SEQ_NO2] [int] NOT NULL, [KEN_NAME] [nvarchar](5) NOT NULL, [SITYO_NAME] [nvarchar](10) NOT NULL, [GST_NAME] [nvarchar](10) NOT NULL, [CSS_NAME] [nvarchar](10) NOT NULL, [MOJI] [nvarchar](20) NOT NULL, [HCOD...
<filename>JobExecutionFramework/ConfigDB/etljob/Tables/JobStepCluster.sql CREATE TABLE [etljob].[JobStepCluster] ( [JobStepClusterID] INT IDENTITY (1, 1) NOT NULL, [JobStepCluster] NVARCHAR (255) CONSTRAINT [DF_JobStepCluster_JobStepCluster] DEFAULT ('') NOT NULL, [JobID] INT ...
<gh_stars>1-10 -- -------------------------------------------------------- -- -- Estrutura da tabela `tb_bairro` -- CREATE TABLE `tb_bairro` ( `Codigo` int(11) NOT NULL, `Nome` varchar(200) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Extraindo dados da tabela `tb_bairro` -- INSERT INTO `tb_bairr...
/****** Object: User Defined Function dbo.FreeLand Script Date: 5/1/2004 6:12:47 PM ******/ CREATE FUNCTION dbo.FreeLand ( @kdID int ) RETURNS int BEGIN RETURN(dbo.KingdomLand(@kdID) - (SELECT SUM(Built) + SUM(dbo.UnderConstruction(kdID, BuildingType)) FROM Buildings WHERE kdID = @kdID)) END
<reponame>piotrgredowski/poor-mans-t-sql-formatter-vscode-extension SELECT 1 FROM a.b; WITH CTE AS ( SELECT * FROM a cross join b) select * from cte
<reponame>GuKKDevel/ImkerDB -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 06. Mrz 2016 um 06:52 -- Server Version: 5.5.47-0ubuntu0.14.04.1 -- PHP-Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101...
<reponame>puppetlabs/phabricator<gh_stars>1-10 ALTER TABLE phabricator_file.file ADD COLUMN authorPHID VARCHAR(64) BINARY, ADD KEY (authorPHID);
<gh_stars>1-10 add jar commons-pool2-2.4.2.jar hamcrest-core-1.3.jar jopt-simple-5.0.3.jar kafka_2.11-0.11.0.0.jar lz4-1.3.0.jar scala-library-2.11.11.jar slf4j-api-1.6.1.jar zkclient-0.10.jar data-hive-udfs-0.0.2.jar jedis-2.9.0.jar junit-4.12.jar kafka-clients-0.11.0.0.jar metrics-core-2.2.0.jar scala-parser-combinat...
/****** Object: StoredProcedure [dbo].[GetProteinCollectionMemberCount] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE GetProteinCollectionMemberCount /**************************************************** ** ** Desc: Gets Collection Member count for given Collection_ID ** ** ** P...
-- explain select dg_utils.transducer_column_float4(1) as accuracy, dg_utils.transducer($PHIWORKER$PhiExec python2 --task_index=#SEGID# import vitessedata.phi import tensorflow.python.platform import time import numpy as np import tensorflow as tf vitessedata.phi.DeclareTypes(''' // // BEGIN INPUT TYPES // tag int32 ...
UPDATE "selfservice_verification_flows" SET "nid" = "_nid_tmp";
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 19, 2019 at 01:12 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>UserOfficeProject/user-office-backend<filename>db_patches/0103_FixUniqueKeyForVisits.sql DO $$ BEGIN IF register_patch('FixUniqueKeyForVisits.sql', '<NAME>', 'Fix UNIQUE constraint for the visit table', '2021-08-02') THEN BEGIN DROP INDEX visits_proposal_pk; ALTER TABLE visits add CONSTRAINT visits_s...
--test encryption functions with timestamp(l)tz types drop table if exists tz_test; create table tz_test(id int primary key, ts timestamp, tsltz timestamp with local time zone, tstz timestamp with time zone, gid int); insert into tz_test values(1, timestamptz'1971-01-01 00:00:00 America/Denver', timestamptz'1971-01-...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/Drop/Opengauss_Function_Keyword_Drop_Case0032.sql<gh_stars>0 -- @testpoint:opengauss关键字drop(非保留),作为用户名 --关键字drop作为用户名不带引号,创建成功 drop user if exists drop; CREATE USER drop PASSWORD '<PASSWORD>'; drop user drop; --关键字drop作为用户名加双引号,创建成功 drop user if...
<gh_stars>0 -- @testpoint: Hash分区表结合COLLATE子句(default) --step1:创建hash分区表,指定COLLATE子句(default) expect:成功 drop table if exists partition_hash_tab; create table partition_hash_tab( p_id int, p_name varchar(10) COLLATE "default") partition by hash(p_id) (partition p1, partition p2); --step2:插入数据 expect:成功 insert into pa...
-- @testpoint: 参数为非boolean类型,获取update触发器的定义信息,合理报错 -- @modified at: 2020-12-21 --创建源表和触发表 DROP TABLE IF EXISTS test_trigger_src_tbl; DROP TABLE IF EXISTS test_trigger_des_tbl; CREATE TABLE test_trigger_src_tbl(id1 INT, id2 INT, id3 INT); CREATE TABLE test_trigger_des_tbl(id1 INT, id2 INT, id3 INT); --创建触发器函数 CREATE O...
<filename>install/toempty.sql /****** Objeto: ForeignKey [FK_analiticaindicador_indicadorclasificacion] Fecha de la secuencia de comandos: 04/27/2016 12:38:21 ******/ IF NOT EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_analiticaindicador_indicadorclasificacion]') AND parent_object_...
<gh_stars>0 INSERT INTO `sys_objects_search` (`ObjectName`, `Title`, `ClassName`, `ClassPath`) VALUES ('bx_sites', '_bx_sites', 'BxSitesSearchResult', 'modules/boonex/sites/classes/BxSitesSearchResult.php'); UPDATE `sys_modules` SET `version` = '1.0.3' WHERE `uri` = 'sites' AND `version` = '1.0.2';
ALTER TABLE `entities` CHANGE COLUMN `status_row` `status_row` ENUM('DELETED', 'ENABLED', 'DISABLED') CHARACTER SET 'latin1' COLLATE 'latin1_spanish_ci' NULL DEFAULT 'ENABLED' COMMENT 'Indica el borrado lógico' , DROP INDEX `breadcrumb` ; ALTER TABLE `entities` ADD INDEX `breadcrumb` (`breadcrumb`(500) ASC);
<filename>schema.sql DROP DATABASE IF EXISTS nsuns_db; CREATE DATABASE nsuns_db; USE nsuns_db; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; CREATE TABLE workouts ( id INT NOT NULL AUTO_INCREMENT, exercise VARCHAR(40), pounds INTEGER(20), reps INTEGER(20), sets INTEGER(20), PRIMAR...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 04-Set-2018 às 20:52 -- Versão do servidor: 10.1.26-MariaDB -- PHP Version: 7.0.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
INSERT INTO `laravel`.`productos` (`id`, `id_tienda`, `producto`, `codigo,13`, `precio`, `categoria`, `created_at`, `updated_at`) VALUES ('3', '3', 'prod 2', 'sku002', '985', 'categoria1', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); INSERT INTO `laravel`.`productos` (`id`, `id_tienda`, `producto`, `codigo,13`, `prec...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2021 at 04:02 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
DROP TABLE IF EXISTS department; DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; CREATE TABLE department ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) ); CREATE TABLE role( id INTEGER AUTO_INCREMENT PRIMARY KEY, title VARCHAR (30) NOT NULL, salary DECIMAL , department_id INT, FOREIGN ...
{{ re_data.final_metric('missing_percent') }}
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Apr 2020 pada 16.47 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<filename>prisma/migrations/20220323030043_alter_table_delivery/migration.sql -- DropForeignKey ALTER TABLE "delivery" DROP CONSTRAINT "delivery_id_deliveryman_fkey"; -- AlterTable ALTER TABLE "delivery" ALTER COLUMN "id_deliveryman" DROP NOT NULL; -- AddForeignKey ALTER TABLE "delivery" ADD CONSTRAINT "delivery_id_d...
<reponame>FajarAdiSetyawan/Company-Profile<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 02 Bulan Mei 2021 pada 11.22 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_z...
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Máquina: localhost -- Data de Criação: 03-Abr-2018 às 19:26 -- Versão do servidor: 5.6.12-log -- versão do PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<filename>smart_garden (1).sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Gegenereerd op: 21 okt 2016 om 08:28 -- Serverversie: 10.1.16-MariaDB -- PHP-versie: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2020 at 02:25 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.2.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
--Part 1: Gathering metrics --Memory queries SELECT * FROM sys.dm_os_performance_counters AS dopc WHERE dopc.counter_name = 'Page Life Expectancy' --AND dopc.object_name = 'MSSQL$RANDORI:Buffer Manager'; --Ring buffers WITH RingBuffer AS (SELECT CAST(dorb.record AS XML) AS xRecord, dorb.timestamp ...
CREATE TABLE categories (id INT(2) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(20) NOT NULL); CREATE TABLE stocks (id INT(7) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL, quantity INT(7) DEFAULT 0, category INT(2) NOT NULL, unit_price INT(7) NOT NULL, image VARCHAR(15) NOT NULL, FOREIGN KEY (category) REFERENCES ...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Read date: 22 Oct 2018 -- Description: Reads record(s) from the TD_Release & dependent tables -- exec Data_Release_Read 'okeeffene',35 -- ============================================= CREATE OR --...
SET ECHO ON; SPOOL task2.lst; -- 1. add information about a manager of each project, assume that information -- about all managers must be included in a relational table EMPLOYEE, ALTER TABLE PROJECT ADD MANAGER# NUMBER(4); -- 2. add information about the hobbies possessed by the employees; an employee -- possesse...
<reponame>fcmpeixoto/msicurso<filename>database/msicurso.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 11, 2021 at 08:06 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET...
SELECT s.series_id, s.name, e.eid FROM series s JOIN eids e ON s.ref_id = e.ref_id WHERE e.eid = :eid;
<reponame>Danial41/-<filename>public_html/administrator/components/com_admin/sql/updates/sqlazure/3.9.16-2020-03-04.sql DROP INDEX [username] ON [#__users]; CREATE UNIQUE INDEX [idx_username] ON [#__users] ( [username] ASC )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF);
<gh_stars>10-100 -- +----------------------------------------------------------------------------+ -- | <NAME> | -- | <EMAIL> | -- | www.idevelopment.info | -- |...
SELECT id, buildJobName, sourceCodeRepositoryUrl FROM JenkinsBuildJob WHERE buildJobName = ?
<gh_stars>0 # Account DROP SCHEMA IF EXISTS db_account; CREATE SCHEMA db_account; USE db_account; CREATE TABLE `account_tbl` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `user_id` VARCHAR(255) DEFAULT NULL, `money` INT(11) DEFAULT 0, `money_on_hold` INT(11) DEFAULT 0, ...