sql
stringlengths
6
1.05M
<reponame>mastapegs/ji-cloud alter table jig add column audio_background smallint, -- null allowed add column audio_feedback_negative smallint[] not null default '{}', add column audio_feedback_positive smallint[] not null default '{}';
<reponame>lintzc/GPDB<gh_stars>1-10 -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore CREATE INDEX pg2_ao_btree_idx1_template ON pg2_ao_table_btree_index_template (numeric_col);
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 04, 2016 at 09:49 AM -- Server version: 10.0.17-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
--For testing valid select clause elements SELECT CASE WHEN 1 = 1 THEN 'True' WHEN 1 > 1 THEN 'False' WHEN 1 < 1 THEN 'False' WHEN 1 >= 1 THEN 'True' WHEN 1 > = 1 THEN 'True' WHEN 1 <= 1 THEN 'True' WHEN 1 < = 1 THEN 'True' WHEN 1 <> 1 THEN 'False' WHEN 1 !< 1 THEN 'Why is this a thing?' WHE...
ALTER TABLE CONFIG ADD LDAP_SSL BOOLEAN; UPDATE CONFIG set version = '13.1';
/* Navicat Premium Backup Source Server : localhost Source Server Type : MySQL Source Server Version : 50550 Source Host : localhost Source Database : sys Target Server Type : MySQL Target Server Version : 50550 File Encoding : utf-8 Date: 03/30/2017 22:27:15 PM */ SE...
<filename>anthill/store/sql/tier_components.sql CREATE TABLE `tier_components` ( `component_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `tier_id` int(11) unsigned NOT NULL, `gamespace_id` int(11) NOT NULL, `component` varchar(32) NOT NULL DEFAULT '', `component_data` json NOT NULL, PRIMARY KEY (`component...
<filename>leader (2).sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 19, 2017 at 12:41 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
distinct history_schemas.identifier as identifier, reqNoEdit.method AS request_method, reqNoEdit.path AS request_path, reqNoEdit.proto AS request_proto, reqNoEdit.host AS request_host, reqNoEdit.header AS request_headers, reqNoEdit.param AS request_param, reqEdit.method AS request_edit_meth...
CREATE TABLE `categories` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `parent_id` INTEGER, `name` TEXT, `updated_at` TEXT, `created_at` TEXT, `deleted_at` TEXT DEFAULT NULL ); INSERT INTO categories (id, parent_id, name, updated_at, created_at, deleted_at) VALUES (1, null, 'root', '2018-11-22 21:11:28', '2018-1...
USE [msdb] GO /****** Object: Job [DBA - FirstResponderKit_Collect_PerformanceData] Script Date: 2/20/2019 1:18:38 AM ******/ BEGIN TRANSACTION DECLARE @ReturnCode INT SELECT @ReturnCode = 0 /****** Object: JobCategory [DBA] Script Date: 2/20/2019 1:18:38 AM ******/ IF NOT EXISTS (SELECT name FROM msdb.dbo.sys...
<filename>src/main/resources/db/migration/V2__insert_data.sql<gh_stars>0 insert into categories (id, ordinal) VALUES (1, 10), (2, 20); insert into categories_i18n (category_id, locale_language, name, pretty_url_fragment) values (1, 'en', 'Fruits', 'fruits'), (1, 'de', 'Obst', 'obst'), (2, 'en', 'Vegetables',...
<gh_stars>1-10 -- name: init-locations! CREATE TABLE IF NOT EXISTS location (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE NOT NULL);
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 20, 2018 at 04:45 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- show all shops with 'Tesco' in their name with their shop type SELECT name, shop, sum(total) as sum_total FROM ( SELECT name, osm.shop, count(*) as total FROM planet_osm_point osm WHERE name like '%Tesco%' GROUP BY osm.shop, name UNION SELECT name, osm.shop, count(*) as total FROM planet_osm_polygon osm WHE...
/* Replace with your SQL commands */ DROP VIEW stats;
<filename>Sql/ContGen/data/UPDATE__WorkerNode.sql ;with valTbl as ( select * from ( values (cast('3262C12A-2E1B-4D6D-B787-655FDD779BF9' as uniqueidentifier), 'LOCAL', 1) ) as a (workerNodeId, workerNodeName, isLocal) ) insert into WorkerNode (workerNodeId, workerNodeName, isLocal) select valTbl.* fr...
CREATE TABLE genvalue1 (id binary(16) NOT NULL, val char(32) GENERATED ALWAYS AS (hex(id)) STORED, PRIMARY KEY (id));
alter table meta modify value blob null;
SELECT * FROM CITY WHERE ID = 1661; -- everything from the table CITY is selected but printed only that matches to the given condition i.e ID = 1661
/** * \file * \brief The FormatStringNullFailure user-defined function. * \author <NAME> */ if (object_id('ssunit_impl.FormatStringNullFailure') is not null) drop function ssunit_impl.FormatStringNullFailure; go /** * Formats the message for a failed String comparison with NULL. */ create function ssunit_imp...
SET NAMES UTF8; USE db_itl; delimiter : --t_host_info的mysql信息同步到t_mysql_error_log_info,t_mysql_locked_processlist,t_mysql_innodb_deadlock_event DROP TRIGGER IF EXISTS tr_host_to_mysql_add: CREATE TRIGGER tr_host_to_mysql_add AFTER INSERT ON t_host_info FOR EACH ROW BEGIN IF(NEW.metric_name='last_log_error') THEN INSE...
CREATE EXTERNAL DATA SOURCE [ExtAW2014DataSrc] WITH ( TYPE = RDBMS, LOCATION = N'sqlplayer.database.windows.net', DATABASE_NAME = N'AdventureWorks2014', CREDENTIAL = [AW2014_Credential] );
CREATE TABLE dec2010_pl94.seq0001 ( FILEID varchar(6), STUSAB varchar(2), CHARITER varchar(3), CIFSN varchar(2), LOGRECNO varchar(7), P0010001 integer, P0010002 integer, P0010003 integer, P0010004 integer, P0010005 integer, P0010006 integer, P0010007 integer, P0010008...
<reponame>SergL77/SQLServerTools EXEC sp_helpserver; --OR EXEC sp_linkedservers; --OR SELECT @@SERVERNAME AS Server , Server_Id AS LinkedServerID , name AS LinkedServer , Product , Provider , Data_Source , Modify_Date FROM sys.servers ORDER BY name; GO
-- Dismount and disabled Mounts UPDATE instance_template SET allowMount = 1 WHERE map IN ( 757, -- Baradinhold 643, -- Throne of Tides 645, -- Blackrock Caverns 670, -- Grim Batol 644, -- Halls of Origination 657, -- Vortex Pinnacle 669, -- Blackwingdescent 671, -- Bastion of Twillight 725); -- The Stonecore -...
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 01, 2018 at 11:27 PM -- Server version: 5.6.34-log -- PHP Version: 7.1.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
<reponame>db54180/jijian<filename>public/WDgm/wg.sql /* Navicat MySQL Data Transfer Source Server : 172.16.17.32 Source Server Version : 50557 Source Host : 172.16.17.32:3306 Source Database : wg Target Server Type : MYSQL Target Server Version : 50557 File Encoding : 65001 Date: 2...
<filename>sql table bookrecommend/bookrecommend_auth_permission.sql -- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: bookrecommend -- ------------------------------------------------------ -- Server version 5.6.44-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
SELECT c1.concept_id AS concept_id, cast(num_stratum_4 * 10 AS VARCHAR) + '-' + cast((num_stratum_4 + 1) * 10 - 1 AS VARCHAR) AS trellis_name, --age decile c2.concept_name ...
<gh_stars>1-10  CREATE PROCEDURE [dbo].[ReadDocument] ( @ID UNIQUEIDENTIFIER = NULL, @Location NVARCHAR(256) = NULL ) AS BEGIN SET NOCOUNT ON DECLARE @Document TABLE ( [ID] UNIQUEIDENTIFIER NOT NULL, [ParentID] UNIQUEIDENTIFIER NULL, [Title] NVARCHAR (128) NOT NULL,...
<reponame>turbot/steampipe-plugin-oci<filename>oci-test/tests/oci_file_storage_file_system/test-get-query.sql<gh_stars>10-100 select id, display_name, lifecycle_state, availability_domain, is_clone_parent, is_hydrated, freeform_tags from oci.oci_file_storage_file_system where id = '{{ output.resource_id.value }}';
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 26 2020 г., 22:49 -- Версия сервера: 5.7.25 -- Версия PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
CREATE TABLE `users` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `url` varchar(255) DEFAULT NULL, `date_created` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; CREATE TABLE `posts` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `lang` char(2) DE...
create database ask1; use ask1; show tables; create table bookshop( name varchar(10), street varchar(30) not null, postcode int not null, number int not null, primary key (name), check (postcode>0), check (number>0) )engine=innodb; create table book( ISBN int, publicer varchar(20) not null, ...
<reponame>exegeses/introBBDD-56547<gh_stars>0 -- Relaciones entre tablas ------------------------------ -- table relation -- se iguala el campo (columna) en común SELECT destNombre, destPrecio, regNombre FROM destinos, regiones WHERE destinos.idRegion = regiones.idRegion; ----- SELECT prdNombre, prdPrecio, ...
<filename>DB - importar/prolar02.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 01-12-2021 a las 03:49:07 -- Versión del servidor: 10.4.20-MariaDB -- Versión de PHP: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : connect Source Server Type : MySQL Source Server Version : 100130 Source Host : localhost:3306 Source Schema : kereta_join Target Server Type : MySQL Target Server Version : 100130 File Encoding : 65001 Dat...
create table public.answer2answered_question ( answer_id bigint not null, answered_question_id bigint not null, constraint answer2answered_question_pk PRIMARY KEY (answer_id, answered_question_id) );
/*###################-----[01]-[SELECT]------##########################################################################################################*/ SELECT * FROM Person.Person SELECT Title FROM Person.Person SELECT FirstName, LastName FROM Person.Person /*###################-----[02]-[DISTINCT]------##########...
<reponame>EstherWaweru/SQLPractice -- Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[aeiou]$';
<filename>db/tables/ipi/IPMembershipTerritory.sql<gh_stars>0 /* Territory of a membership agreement entity A territory of a membership agreement is a single territory either within the territorial scope of the agreement or excluded from it. */ CREATE TABLE [ipi].[IPMembershipTerritory]( [MTID] [bigint] IDEN...
<gh_stars>0 /* Database initialization script that runs on every web-application redeployment. */ DROP TABLE IF EXISTS results; DROP TABLE IF EXISTS answers; DROP TABLE IF EXISTS subpages; DROP TABLE IF EXISTS questions; DROP TABLE IF EXISTS users; CREATE TABLE users ( id SERIAL PRIMARY KEY, email TEXT ...
<reponame>vuducsaobien/migration_sql_server -- SELECT is_broker_enabled FROM sys.databases WHERE name = 'migration_db'; -- ALTER DATABASE migration_db SET ENABLE_BROKER -- GO -- -- ALTER DATABASE [Database_name] SET DISABLE_BROKER; -- -- GO -- SELECT is_broker_enabled FROM sys.databases WHERE name = 'migration_db'; ...
insert into numbering (identifier, display_name) values ('O', 'Order Number'); insert into numbering (identifier, display_name) values ('M', 'Manifestation Identifier'); insert into numbering (identifier, display_name, prefix, suffix, is_padding, padding_length, padding_character, check_digit_rule) values ('I', 'Item ...
CREATE TABLE `payment_gateways` ( `id` bigint UNSIGNED NOT NULL, `title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint DEFAULT '1' COMMENT '1- Active , 0- InActive', `is_test` tinyint DEFAULT '1' COMMENT '1- Yes , 0- No', ...
<gh_stars>0 CREATE DEFINER=`root`@`localhost` PROCEDURE `prc_GetDialStrings`(IN `p_dialstringid` int, IN `p_dialstring` varchar(250), IN `p_chargecode` varchar(250), IN `p_description` varchar(250), IN `p_forbidden` INT, IN `p_PageNumber` int, IN `p_RowspPage` int, IN `p_lSortCol` VARCHAR(50), IN `p_SortOrder` VARCHAR(...
<reponame>bertog/eengineering-web INSERT INTO `posts` (`id`, `slug`, `title`, `header_image`, `body`, `published`, `user_id`, `created_at`, `updated_at`) VALUES (1, 'tube-matching', 'Tube Matching', 'tubes.jpg', '<p>Il suono di un amplificatore a valvole è fortemente influenzato dallo stato delle valvole finali e dall...
SELECT count(*) FROM logs
<filename>SupportManager/MemoEngine.Database/dbo/Tables/UserProfiles.sql<gh_stars>1-10 --[2] UserProfiles 테이블 : 회원 기타 정보, 회원(Users) = Domains + UserProfiles Create Table dbo.UserProfiles ( Id Int Identity(1, 1) Primary Key Not Null, -- 일련번호 UID Int Not Null, -- Domains 테이블의 UID값 Password NVarChar(50) Nu...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: mysql -- Generation Time: Jun 27, 2019 at 01:14 AM -- Server version: 5.7.26 -- 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_CHARACTER...
--Crearea TabelA create table TabelA( coda int primary key, a2 int unique, a3 int ) --Crearea TabelC create table TabelC( codc int primary key, coda int, constraint FK_coda foreign key(coda) references TabelA(coda) ) --Procedura de inserare in TabelA CREATE PROCEDURE uspInsereazaTabelA (@nrRanduri int)...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Read date: 18/12/2019 -- Description: Reads pending live records -- exec Workflow_ReadPendingLive 'okeeffene',null,'en','en' -- ============================================= CREATE OR ALTER PROCEDU...
<reponame>nilbrains/fantastic-guacamole<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : LocalMysql Source Server Version : 50729 Source Host : localhost:3306 Source Database : graduation Target Server Type : MYSQL Target Server Version : 50729 File Encoding : 65001 Dat...
#create database and table to run scripts in this section of the chapter CREATE SCHEMA foraltering; USE foraltering; CREATE TABLE tableforaltering ( playerID varchar(9) NOT NULL, schoolID varchar(15) NULL, yearID smallint NULL ); #insert data into the table above USE foraltering; INSERT INTO tableforaltering VA...
<reponame>NordiCelt/TraXdotNet CREATE TABLE [dbo].[Users]( [ApplicationId] [uniqueidentifier] NOT NULL, [UserId] [uniqueidentifier] NOT NULL, [UserName] [nvarchar](50) NOT NULL, [IsAnonymous] [bit] NOT NULL, [LastActivityDate] [datetime] NOT NULL, PRIMARY KEY CLUSTERED ( [UserId] ASC )WITH (STATISTICS_...
<gh_stars>0 # Identify the alternate allele counts for which the Ti/Tv ratio is outside a defined range. SELECT * FROM ( SELECT transitions, transversions, transitions/transversions AS titv, alternate_allele_count FROM ( SELECT SUM(mutation IN ('A->G', 'G->A', 'C->T', 'T->C')) AS transit...
/* Navicat MySQL Data Transfer Source Server : mysqllocalhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : mybatis Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-12-12 23:57:05 */ SET FOREIGN_KEY_CHECKS=0; ...
<reponame>pearadmin/pear-admin-golang -- name: create-admin INSERT INTO `admin` (`id`, `login_name`, `real_name`, `password`, `role_ids`, `phone`, `email`, `avatar`, `salt`, `last_ip`, `last_login`, `status`, `create_id`, `update_id`, `created_at`, `updated_at`, `level`) VALUES (1,'admin','admin','<PASSWORD>','0','','...
<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:dbd8b949ad0ec0dd6c39c80b414dd67e30debc1be9b6a2a819b4b81219a17868 size 2128
<filename>src/it/oracle-08/verify/service/deploy_start.sql prompt Start deploy version. declare c_no constant varchar2(1 char) := 'N'; c_yes constant varchar2(1 char) := 'Y'; c_not_completed constant varchar2(13 char) := 'NOT COMPLETED'; c_date_format constant varchar2(21 char) := '...
<filename>snowy-base/snowy-tenant/src/main/resources/tenant_init.sql /* Navicat Premium Data Transfer Source Server : mysql本地数据库 Source Server Type : MySQL Source Server Version : 80022 Source Host : localhost:3306 Source Schema : snowy Target Server Type : MySQL Target Server ...
<filename>sql/mysql/avail_v10_to_v11.sql ALTER TABLE avail_config ALTER COLUMN include_trends SET DEFAULT 0;
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/binary_double/Opengauss_Function_Keyword_Binary_double_Case0022.sql -- @testpoint:opengauss关键字binary_double(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists binary_double; create group binary_double with password '<PASSWORD>'; drop group binary_doubl...
<gh_stars>0 CREATE TABLE [dbo].[Salesperson] ( [SalespersonID] INT NOT NULL PRIMARY KEY, [Name] NVARCHAR(50) NOT NULL, [Age] INT NOT NULL, [Salary] MONEY NOT NULL )
<reponame>KurniaJuanSyahM/SI-Pakar_Semester6 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 04, 2021 at 06:10 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; ...
<reponame>Patrena94/Smith-Corporation-Employee-Tracker DROP DATABASE if EXISTS Employee_Tracker; CREATE DATABASE Employee_Tracker; -- use employee_tracker USE employee_Tracker; -- Drop Database employee_track DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS role; DROP TABLE IF EXISTS department; -- creating th...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 10. Feb 2021 um 17:24 -- Server-Version: 10.4.17-MariaDB -- PHP-Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
CREATE DATABASE fyyur; GRANT ALL PRIVILEGES ON DATABASE fyyur TO postgres; -- switch to melco db \c fyyur
<gh_stars>0 CREATE TABLE `jobs` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `datetime_create` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `datetime_update` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `command` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQU...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 02, 2020 at 12:39 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.2.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- -- Creating a User table. -- -- -- Table User -- DROP TABLE IF EXISTS User; CREATE TABLE User ( "id" INTEGER PRIMARY KEY NOT NULL, "username" TEXT UNIQUE NOT NULL, "password" TEXT, "email" TEXT, "created" TIMESTAMP, "updated" DATETIME, "activity" INTEGER ); -- -- Forum table -- DROP T...
CREATE DATABASE gopu; CREATE TABLE gopu.task ( id BIGINT AUTO_INCREMENT PRIMARY KEY, data VARCHAR(255) ); CREATE TABLE gopu.subtask ( task_id BIGINT NOT NULL, token VARCHAR(31) NOT NULL, is_delivered BOOLEAN NOT NULL DEFAULT FALSE, create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
CREATE TABLE tool ( id bigint auto_increment NOT NULL, title character varying(100) NOT NULL, this_link character varying(500) NOT NULL, description character varying(500), PRIMARY KEY (id), UNIQUE KEY uk_tool_title (title) ); CREATE TABLE tool_tag ( id bigint auto_increment NOT NULL, text character ...
<reponame>digitaltembo/ghost-jukebox -- table to store key/value pairs CREATE TABLE info( key TEXT, value TEXT ); -- table to store Card info CREATE TABLE cards( code TEXT, card_type INT, item_id TEXT, title TEXT ); -- table used to store the music queue, pretty straightforward C...
SELECT * FROM estate WHERE latitude between ? and ? and longitude between ? and ? and ST_Contains(ST_PolygonFromText(%s), ST_GeomFromText(%s)) ORDER BY popularity DESC, id ASC
CREATE TABLE IF NOT EXISTS products ( id text NOT NULL, shop_id text NOT NULL, stock integer NOT NULL, brand text NOT NULL, category text NOT NULL, type text NOT NULL, description text, weight integer NOT NULL, taxes integer, discount integer, subtotal integer NOT NULL, t...
<reponame>neff-a/skeleton-spring-boot create table users ( id_user int auto_increment primary key, uuid varchar(40) not null, first_name varchar(200) charset utf8mb4 not null, last_name varchar(200) charset utf8mb4 not null, ema...
DELETE FROM SUBMISSION_TYPE WHERE SUBMISSION_TYPE_CODE='131'; DELETE FROM SUBMISSION_TYPE WHERE SUBMISSION_TYPE_CODE='132'; INSERT INTO SUBMISSION_TYPE (SUBMISSION_TYPE_CODE, DESCRIPTION, UPDATE_TIMESTAMP,UPDATE_USER) VALUES ('115', 'Continuing Review/Continuation with Amendment', sysdate,'KRADEV'); INSERT INTO SUBM...
create sequence bpar_id_seq; create sequence ctgr_id_seq; create sequence item_id_seq; create sequence ordr_id_seq; create sequence orit_id_seq; create sequence tracking_number_seq;
ALTER TABLE pipeline.role ADD predefined BOOLEAN DEFAULT FALSE NOT NULL; ALTER TABLE pipeline.role ADD user_default BOOLEAN DEFAULT FALSE NOT NULL; INSERT INTO pipeline.role (id, name, predefined, user_default) VALUES (nextval('pipeline.s_role'), 'ROLE_PIPELINE_MANAGER', TRUE, TRUE); INSERT INTO pipeline.role (id, n...
CREATE TABLE {$NAMESPACE}_nuance.nuance_itemcommand ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, itemPHID VARBINARY(64) NOT NULL, authorPHID VARBINARY(64) NOT NULL, command VARCHAR(64) NOT NULL COLLATE {$COLLATE_TEXT}, parameters LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT}, KEY `key_item` (itemPHID)...
<gh_stars>1000+ select lower('aaaaaaaaaaaaaaa012345789,.!aaaa' as str) = str; select lowerUTF8('aaaaaaaaaaaaaaa012345789,.!aaaa' as str) = str; select lower('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'aaaaaaaaaaaaaaa012345789,.!aaaa'; select lowerUTF8('AaAaAaAaAaAaAaA012345789,.!aAaA') = 'aaaaaaaaaaaaaaa012345789,.!aaaa'; s...
<filename>persistence/sql/migrations/sql/20210410175418000040_network.sqlite3.down.sql ALTER TABLE "_selfservice_registration_flows_tmp" RENAME TO "selfservice_registration_flows";
<filename>fgu_data.sql -- MySQL dump 10.13 Distrib 5.6.16, for Win32 (x86) -- -- Host: localhost Database: fgu1 -- ------------------------------------------------------ -- Server version 5.6.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
--+ holdcas on; set names utf8; --test SELECT ELT(3,'string1' collate utf8_ro_cs,'Bună', 'dimineața'); --test SELECT ELT('2','Îți doresc','Mersi' collate utf8_ro_cs,' Mulţumesc'); --test SELECT ELT(-1, 'O', 'să', 'plouă?' collate utf8_ro_cs,'string2','string3'); --test SELECT ELT(3, 'O', lower('să'), upper('plouă?' c...
-- @testpoint: 分区表使用数据类型为jsonb的列创建索引,部分测试点合理报错 --step1: 创建分区表; expect:成功 drop table if exists tab121; create table tab121( col_1 smallint, col_2 jsonb, col_3 int, col_4 date not null, col_5 jsonb, col_6 nchar(30), col_7 float ) partition by range (col_4) interval ('1 month') ( partition tab121_p1 values less than ('2...
ALTER TABLE MEMBER ADD secondNationality nvarchar2(100);
<filename>camdecmpswks/tables/1-unit-fuel.sql -- Table: camdecmpswks.unit_fuel -- DROP TABLE camdecmpswks.unit_fuel; CREATE TABLE camdecmpswks.unit_fuel ( uf_id character varying(45) COLLATE pg_catalog."default" NOT NULL, unit_id numeric(38,0) NOT NULL, fuel_type character varying(7) COLLATE pg_catalog."d...
IF OBJECT_ID('dbo.SensitivityLabel', 'U') IS NULL BEGIN CREATE TABLE dbo.SensitivityLabel ( Id uniqueidentifier NOT NULL, SensitivityLabel nvarchar(100) NOT NULL, CONSTRAINT PK_SensitivityLabel_Id PRIMARY KEY CLUSTERED (Id ASC) ) INSERT INTO SensitivityLabel (Id, [Sen...
-- returns distinct identities (the most reliable so far) SELECT DISTINCT IdentityName AS ID FROM tbl_Command WHERE ISNULL(IdentityName, '') != '' AND IdentityName LIKE '<domain>%' AND IdentityName NOT LIKE '<filter>' ORDER BY 1 -- returns all access entries SELECT IdentityName AS ID, StartTime AS Last_Access_Ti...
<reponame>wapwei/cdht /* Navicat MySQL Data Transfer Source Server : dev_local_host Source Server Version : 80013 Source Host : 192.168.56.101:3306 Source Database : cdht_db Target Server Type : MYSQL Target Server Version : 80013 File Encoding : 65001 Date: 2018-11-05 18:18:10 */ ...
<filename>SQL/SQL work/SQLQuery1.sql --SELECT COUNT(*) AS "Number Of Employees in London" --FROM Employees --WHERE City = 'London' --SELECT * FROM Employees --WHERE TitleOfCourtesy = 'Dr.' --SELECT COUNT(*) AS "Number of discontinued Products" --FROM Products --WHERE Discontinued = '1' --SELECT CompanyName, City, ...
-------------------------------------------------------------------------------- -- REST ACCOUNT ---------------------------------------------------------------- -------------------------------------------------------------------------------- /** * Запрос данных в формате REST JSON API (Счёт). * @param {text} pPath -...
-- file:create_index.sql ln:115 expect:true CREATE INDEX sp_kd_ind ON kd_point_tbl USING spgist (p kd_point_ops)
<gh_stars>10-100 /* Detect Sleeping Sessions with Old Open Transactions ==================================================== Author: <NAME> Date: 2021-06-01 This script detects when there are sleeping sessions with open transactions older than 10 minutes by default. Such sessions can cause blocking and can prevent the ...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 08 avr. 2020 à 22:49 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
<filename>FUNCTIONS/major_type_5.sql CREATE OR REPLACE FUNCTION cbor.major_type_5( cbor bytea, encode_binary_format text, additional_type integer, length_bytes integer, data_value numeric ) RETURNS cbor.next_state IMMUTABLE LANGUAGE plpgsql AS $$ BEGIN IF additional_type <= 27 THEN RETURN cbor.next_map(substring(cbor...
-- LessonWorkshop CREATE TABLE WorkshopLessons ( LessonID TEXT, WorkshopID TEXT, LessonStartDate TEXT, Notes TEXT, PRIMARY KEY (WorkshopID,LessonID), FOREIGN KEY (WorkshopID) REFERENCES Workshop (WorkshopID), FOREIGN KEY (LessonID) REFERENCES Lesson (LessonID) )
GO IF OBJECT_ID('spSearchEmployeeWithSalaryByEmployeeId') IS NOT NULL DROP PROCEDURE spSearchEmployeeWithSalaryByEmployeeId GO CREATE PROCEDURE spSearchEmployeeWithSalaryByEmployeeId ( @EmployeeId VARCHAR(11) ) AS BEGIN SELECT TOP 1 CONCAT(employee.FirstName, ' ', employee.LastName) AS FullName ,salary.Value ...