sql
stringlengths
6
1.05M
create table users( username varchar(128) not null primary key, password varchar(512) not null, enabled boolean not null); create table authorities ( username varchar(128) not null, authority varchar(128) not null); create unique index idx_auth_username on authorities (username,authority...
# add manufacturer # --- !Ups CREATE TABLE `manufacturer` ( `id` INT NOT NULL AUTO_INCREMENT, `description` VARCHAR(100) NOT NULL, `link` VARCHAR(100), `expiry_date` date, PRIMARY KEY (`id`) ) ENGINE=InnoDB; ALTER TABLE `aircraft` ADD `manufacturer_Id` INT; insert into `manufacturer` (`descripti...
<reponame>luolxb/tracker-server create table question_option ( id BIGINT(19) auto_increment comment 'id' primary key, question_id BIGINT(19) null comment '题目id', option_id VARCHAR(255) null comment '选项id', option_val VARCHAR(255) null comment '选项值' ) collate = utf8_bin; INSERT...
<gh_stars>1-10 CREATE SCHEMA pladipus; USE pladipus; CREATE TABLE IF NOT EXISTS users ( `user_id` INT(11) NOT NULL AUTO_INCREMENT , `user_name` TEXT NOT NULL , `contact` TEXT NOT NULL , `password` TEXT NOT NULL , PRIMARY KEY (`user_id`) ); CREATE TABLE IF NOT EXISTS user_roles ( `user_id` I...
<gh_stars>1-10 ALTER TABLE system_table ADD COLUMN type TEXT; UPDATE system_table SET type = 'generic';
ALTER TABLE "public"."subfunders" ALTER COLUMN "uri" SET NOT NULL; COMMENT ON COLUMN "public"."subfunders"."uri" IS E'null';
<reponame>chezou/molehill -- client: molehill/0.0.1 select train_classifier( features , survived ) as (feature, weight) from ${source} ;
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_heap_isolation/sql/insert_policy.sql -- @Description Tests the AO segment file selection policy -- 1: INSERT INTO AO VALUES (1); 1: INSERT INTO AO VALUES (2); 1: BEGIN; 1: INSERT INTO AO VALUES (2); 2: BEGIN; 2: INSERT INTO AO VALUES (2); 1: COMMIT; 2: C...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Ноя 24 2015 г., 13:33 -- Версия сервера: 5.5.44 -- Версия PHP: 5.6.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
--+ holdcas on; set names binary; select 'a' || chr(0) || 'a'; select concat('a' || chr(0) || 'a'); select concat_ws(chr(0) , chr(0) , 'a'); select elt(2,chr(0),chr(0),chr(0)); select field(chr(0),chr(1),chr(0)) select bit_length(chr(0)); select char_length(chr(0)); select character_length(chr(0)); select length(chr(0)...
<reponame>Zhaojia2019/cubrid-testcases -- scenario create table t (p int, o int, v int, d varchar(20), j int); insert into t values (1, 1, 1, '-1', 1); insert into t values (1, 2, 2, '-2', 2); insert into t values (1, 3, 3, '-3', 1); insert into t values (1, 4, 4, '-4', 0); insert into t values (1, 5, 5, ...
create table events( id serial primary key, time_stamp timestamptz not null, title varchar(500), description text, event_type_id int, spass_type_id int, target_id int, team_id int, request_id int ); -- insert into events( -- time_stamp, -- title, -- description -- ) -- select -- import.master...
USE [Certificate] GO /****** Object: Table [dbo].[Cert] Script Date: 2016-09-09 09:43:09 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Cert]( [CertId] [int] IDENTITY(1,1) NOT NULL, [CommonName] [nvarchar](max) NULL, [ExpirationDate] [datetime] NULL, [Issuer] [nvar...
<reponame>SPDEVGUY/VotingInfoWebsite CREATE UNIQUE CLUSTERED INDEX [IX_Client_Candidates_CandidateId] ON [Client].[Candidates] ([CandidateId]) CREATE NONCLUSTERED INDEX [IX_Client_Candidates_ContentInspectionId] ON [Client].[Candidates] ([ContentInspectionId]) CREATE NONCLUSTERED INDEX [IX_Client_Candidates_Org...
select 'create bigfile tablespace ' || df.tablespace_name || ' datafile ''' || df.file_name || ''' size ' || df.bytes || decode(autoextensible,'N',null, ' autoextend on maxsize ' || MAXBYTES) || ' default storage ( initial ' || initial_extent || decode (next_extent, null, null, ' next ' || next_extent ) ...
<gh_stars>0 CREATE TABLE public.rate ( pair character varying(10) NOT NULL, exchange character varying(15) NOT NULL, rate character varying(30) NOT NULL, ...
<filename>schema.sql DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR (45) NOT NULL, department VARCHAR (45), price DECIMAL (13,2) NOT NULL, stock_quantity DECIMAL, PRIMARY KEY (item_id) );
---------START--------------- ALTER TABLE egw_lineestimate ALTER COLUMN adminsanctionnumber TYPE character varying(50); --rollback ALTER TABLE egw_lineestimate ALTER COLUMN adminsanctionnumber TYPE VARCHAR(50); ---------END-----------------
USE UserDb; CREATE TABLE IF NOT EXISTS users( `id` varchar(36) NOT NULL, `name` varchar(100) NOT NULL, `active` boolean NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARACTER SET = UTF8MB4 COLLATE = utf8mb4_unicode_520_ci; CREATE TABLE IF NOT EXISTS `address`( `id` varchar(36) NOT NU...
CREATE TABLE custom_audience ( id String, account_id String, approximate_count Nullable(Int64), customer_file_source Nullable(String), data_source_types Nullable(String), datafile_custom_audience_uploading_status Nullable(String), description Nullable(String), household_audience Nullable(Int64), is_ho...
/* RETURN JobHistory ID NVARCHAR(36) NOT JobID INT NOT ConfigID NVARCHAR(36) NOT StatusID INT NOT ParentJobID NVARCHAR(36) NULL Identifier NVARCHAR(100) NULL Pr...
<filename>api-server/sql/create-tables.sql -- cluster. create table k8s_cluster ( `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT, `cluster_name` varchar(100) not null, `description` varchar(1000) not null, PRIMARY KEY (`id`), UNIQUE KEY `cluster_name_unique` (`cluster_name`) ) ENGINE = InnoD...
1370,2,55000 21114,1,10000 2048,1,100000 17928,1,25000 3625,1,22000 21961,2,22000 15256,1,19000 15503,3,160000 16500,50,425 16062,2,1518 17108,1029,1240 17109,14,1705 20986,100,1583 22930,990,747 16501,20,4600 16502,71,463 16502,29,463 16502,200,463 20683,43,46300 16503,100,341 16511,1000,99 20163,360,3355 16509,120,31...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 31 Mar 2018 pada 11.53 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- @testpoint: opengauss关键字dictionary(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists dictionary_test cascade; create table dictionary_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor dictionary for select * from dictionary_test order by 1; close dictionary; end; --关键字带双引号-成功 start transaction; cursor ...
<gh_stars>0 -- Drops the application if it exists currently -- DROP DATABASE IF EXISTS employeeDir_db; -- Creates the database for the application -- CREATE DATABASE employeeDir_db;
CREATE TABLE person ( id BIGSERIAL, fnr VARCHAR(32) NOT NULL, PRIMARY KEY (id) ); create index "index_person_fnr" on person using btree (fnr); CREATE TABLE melding ( id BIGSERIAL, fnr VARCHAR(32) NOT NULL, PRIMARY KEY (id) ); CREATE INDEX "index_melding_fnr" ON melding USING btree (fnr);
DELIMITER $$ /* Get the list of missing dates of publications in a JSON format. Example of use: MariaDB [ecb-rates-db]> SELECT get_missing_dates_json(); +--------------------------------------------------------------------+ | get_missing_dates_json() | ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-05-2019 a las 00:59:27 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
-- chave primária e chave estrangeira CREATE TABLE nome_Tabela ( nomeColuna tipoDeDados PRIMARY KEY nomeColuna tipoDeDados ... ) CREATE TABLE Canal ( CanalId INT PRIMARY KEY, Nome VARCHAR(150) NOT NULL, ContagemInscritos INT DEFAULT 0, DataCriacao datetime not null ); select * from Canal CREATE TABLE Video...
DROP TABLE IF EXISTS trips CASCADE; CREATE TABLE trips( id SERIAL PRIMARY KEY NOT NULL, start_time TIMESTAMP, end_time TIMESTAMP, entry_id INTEGER REFERENCES entries(id) ON DELETE CASCADE );
# Exemplo 5: - “Exemplo do uso da estrutura de repetição LOOP” CREATE OR REPLACE PROCEDURE exemplo_loop ( fim IN INTEGER ) IS n INTEGER; BEGIN n := 1; LOOP DBMS_OUTPUT.PUT_LINE('Número é ' || n); IF n = fim THEN EXIT; END IF; n := n + 1; END LOOP; ...
SELECT * FROM Data WHERE Id = /*@ id */0
-- 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. PRINT N'Adding foreign keys to [edfi].[SectionChar...
-- Select the average value of all the boxes. select avg(value ) from boxes;
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility<gh_stars>0 -- 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 i...
WITH Pharmacy AS ( select a.ptn_pharmacy_pk , d.PatientId , d.Id PatientMasterVisitId from ord_PatientPharmacyOrder a inner join ord_visit b on a.VisitID = b.Visit_Id inner join Patient c on a.Ptn_pk = c.ptn_pk inner join PatientMasterVisit d on c.Id = d.PatientId and cast(b.visitdate as date) = cast(d.visitdate as...
<gh_stars>1-10 INSERT INTO `province` VALUES (1,'全国','quanguo','2016-10-12 11:21:54','2016-10-12 11:21:54'),(11,'北京','beijing','2016-10-12 11:21:54','2016-10-12 11:21:54'),(12,'天津','tianjing','2016-10-12 11:21:54','2016-10-12 11:21:54'),(13,'河北','hebei','2016-10-12 11:21:54','2016-10-12 11:21:54'),(14,'山西','shanxi','20...
-- start query 1 in stream 0 using template query96.tpl select count(*) from tpcds_2t_baseline.store_sales ,tpcds_2t_baseline.household_demographics ,tpcds_2t_baseline.time_dim, tpcds_2t_baseline.store where ss_sold_time_sk = time_dim.t_time_sk and ss_hdemo_sk = household_demographics.hd_demo_...
<gh_stars>1000+ -- Semi-exhaustive checking of many possible invocations of supported types -- listed at https://www.sqlite.org/datatype3.html to ensure it compiles CREATE TABLE infer_all_the_ints ( col1 INTEGER PRIMARY KEY NOT NULL, col2 INT NOT NULL, col3 INTEGER NOT NULL, col4 LOL_WHAT_EVEN_IS_THIS_TYPE_CAN_...
<gh_stars>0 -- predicates and indexing set enable_seqscan = "off"; create table ipranges_exp (r iprange, r4 ip4r, r6 ip6r) distributed by (r); insert into ipranges_exp select r, null, r from (select ip6r(regexp_replace(ls, E'(....(?!$))', E'\\1:', 'g')::ip6, regexp_replace(substring(ls for n+1)...
/* Navicat MySQL Data Transfer Source Server : t Source Server Version : 50505 Source Host : localhost:3306 Source Database : nimclinic Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-05-02 11:34:31 */ SET FOREIGN_KEY_CHECKS...
-- phpMyAdmin SQL Dump -- version 4.4.15.7 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 17 2020 г., 15:16 -- Версия сервера: 5.5.50 -- Версия PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<reponame>opengauss-mirror/Yat -- @testpoint: drop index concurrently 不支持列存表分区表 合理报错 -- create COLUMN table DROP TABLE IF EXISTS ddl_index_case0226; CREATE TABLE ddl_index_case0226(id INT, first_name text, last_name text) WITH (ORIENTATION = COLUMN); --create index create index ddl_index_case0226_idx on ddl_index_...
<filename>openGaussBase/testcase/SQL/INNERFUNC/mod/Opengauss_Function_Innerfunc_Mod_Case0005.sql -- @testpoint: mod函数入参包含注释 select mod(555555555555/*dfwerfetre*/,89) from sys_dummy; select mod(555555555555,89/*dfwerfetre*/) from sys_dummy; select mod/*dfwerfetre*/(555555555555,89) from sys_dummy; select /*dfwerfetre*/m...
<filename>migrations/00000000000000_diesel_initial_setup/down.sql<gh_stars>1-10 -- down.sql: Destroy initial database migration for AO DROP TABLE games_nationstates; DROP TABLE borders; DROP TABLE nationstates; DROP TABLE regions; DROP TABLE allegiances; DROP TABLE games; DROP TABLE activation_keys; DROP TABLE users;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 01 Apr 2019 pada 00.30 -- Versi Server: 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_CHA...
SELECT ANIMAL_ID, NAME FROM ANIMAL_INS WHERE NOT INTAKE_CONDITION = 'Aged' ORDER BY ANIMAL_ID;
CREATE VIEW dbo.vwPeriodBalanceLines AS SELECT a.BankAccountID, b.BudgetLineID, b.IsAccrued, b.IsAsset FROM dbo.BankAccounts a (NOLOCK), dbo.vwBudgetGroupCategoryLine b (NOLOCK) WHERE b.IsAsset = 1 OR b.IsAccrued = 1 GO
<filename>action-a/test.sql<gh_stars>0 SELECT * FROM geography LIMIT 1;
SELECT descricao, endereco FROM fornecedores WHERE estado = 'SP' AND (cidade IN('DIADEMA','BARUERI')); SELECT * FROM fornecedores WHERE estado = 'SP' and (cidade != 'BROTAS' AND cidade != 'SAO PAULO'); SELECT descricao, telefone FROM fornecedores WHERE (estado IN ('MG','SP')) AND (cidade != ''); SELECT * FROM fornecedo...
create table if not exists CATEGORY ( ID INT auto_increment primary key comment 'ID', PARENT_ID INT comment 'Category parent id', NAME VARCHAR(32) not null comment 'Category name', DELETED TINYINT(1) default 0 not null comment '1: dele...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 02, 2016 at 02:53 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
create table user ( id bigint auto_increment primary key, user_id bigint not null, username varchar(64) not null, password varchar(64) not null, email varchar(64) nul...
drop table if exists `tcs_cross_matches_external`; create table `tcs_cross_matches_external` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `transient_object_id` bigint(20) unsigned NOT NULL, `external_designation` varchar(60) NOT NULL, `type` varchar(40), `host_galaxy` varchar(60), `mag` float, `discoverer` varc...
DROP TABLE SITES_LOG CASCADE CONSTRAINTS; CREATE TABLE SITES_LOG ( LogId int NOT NULL , requestedPath varchar2(255) NOT NULL , responseCode int DEFAULT 500, CreatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (LogId) ); SELECT * FROM SITES_LOG; COMMIT;
<reponame>rickjm540/ship-lf -- MySQL dump 10.13 Distrib 8.0.21, for osx10.15 (x86_64) -- -- Host: 10.0.8.5 Database: ship -- ------------------------------------------------------ -- Server version 8.0.26-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- ホスト: localhost:8889 -- 生成日時: 2020 年 8 月 10 日 17:49 -- サーバのバージョン: 5.7.26 -- PHP のバージョン: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
<gh_stars>1-10 /****** Object: Stored Procedure dbo.H3GIReport_LOG_BAT Script Date: 23/06/2005 13:30:52 ******/ CREATE PROC dbo.H3GIReport_LOG_BAT /********************************************************************************************************************* * Procedure Name : H3GI...
SELECT * FROM employee WHERE name IS NULL name IS NOT NULL
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'EntityHierarchy') AND OBJECTPROPERTY(id, N'IsUserTable') = 1) DROP TABLE EntityHierarchy GO CREATE TABLE EntityHierarchy ( Ident BIGINT IDENTITY(1,1) NOT NULL , EntityIdent BIGINT NULL, HierarchyTypeIdent BIGINT NULL , FromEntityIdent BIGINT NULL , ...
<reponame>marat-gainullin/septima<gh_stars>1-10 CREATE TABLE APP_VERSION ( VERSION_VALUE numeric(18, 0) NOT NULL, CONSTRAINT APP_VERSION_PK PRIMARY KEY(VERSION_VALUE) ) #GO INSERT INTO APP_VERSION (VERSION_VALUE) VALUES (0) #GO
------------------------- -- CASSH Revocation table ------------------------- CREATE TABLE REVOCATION ( SSH_KEY TEXT PRIMARY KEY NOT NULL, REVOCATION_DATE INT NOT NULL, NAME TEXT )
ALTER TABLE workers ADD COLUMN active_volumes integer DEFAULT 0;
-- Encoding name DROP FUNCTION IF EXISTS test_encoding_name(int); CREATE OR REPLACE FUNCTION test_encoding_name(int) RETURNS text AS '$libdir/gppc_test' LANGUAGE c IMMUTABLE; SELECT test_encoding_name(0), test_encoding_name(1), test_encoding_name(2), test_encoding_name(3), test_encodi...
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; CREATE SCHEMA IF NOT EXISTS pr...
Use PaymentData; DECLARE @client_id UNIQUEIDENTIFIER = 'C6CBC26A-5B23-324C-BEBC-038AFF67DA1A' DECLARE @bank_id UNIQUEIDENTIFIER = 'C98A2183-F2E2-B8C7-2F20-01EAAFACBBF7' DECLARE @project_id UNIQUEIDENTIFIER = '1D3B4A68-4917-87EC-11DB-005ADD3F5006' DECLARE @supplier_id UNIQUEIDENTIFIER = '645F4749-760D-39B7-73B3-00...
<reponame>pindiespace/class-cms -- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 28, 2017 at 06:54 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
ALTER TABLE owned_vehicles ADD garage VARCHAR(200) DEFAULT 'A'
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 15 2016 г., 16:50 -- Версия сервера: 5.5.48 -- Версия PHP: 5.5.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<gh_stars>0 create table if not exists test.tag ( name text not null check (char_length(name) < 80), description text, created_at timestamp default now() );
SET DEFINE OFF; create or replace package afw_08_url_pkg as knu_sesn constant number default afw_12_sesn_pkg.obten_sesn; knu_app_id constant number default afw_11_aplic_pkg.obten_numr_apex_aplic; knu_app_page_id constant number default afw_13_page_pkg.obten_numr_apex_page; knu_sidf co...
<gh_stars>1-10 CREATE PROCEDURE [dbo].[dnn_GetRoleSettings] @RoleId int AS SELECT * FROM dbo.dnn_RoleSettings WHERE RoleID = @RoleId
<filename>SQL/Functions/fn_HexToChar.sql<gh_stars>1-10 /*------------------------------------------------------------------------------------------------- NAME: fn_HexToChar.sql CREATED BY: <NAME> MODIFIED BY: <NAME> EMAIL: <EMAIL> DESCRIPTION: This function will take any binary value and return the ...
---UPDATE podataka BEGIN Tran UPDATE stud SET imeStud = 'Mirko', prezStud = 'Spirko' --where mbrStud = 1121 rollback begin tran UPDATE st SET st.prezStud = RTRIM(st.prezStud) + ' (' + RTRIM(mj.nazMjesto) + ')' --SELECT * from stud st INNER JOIN mjesto mj on st.pbrRod = mj.pbr where mj.pbr = 10000 rollback comm...
<gh_stars>10-100 SELECT customer.*, row_to_json(address.*) AS address FROM tinypg.customer INNER JOIN tinypg.address ON address.customer_id = customer.customer_id WHERE customer.customer_id = :customer_id;
-- collate4.test -- -- execsql { -- PRAGMA automatic_index=OFF; -- CREATE TABLE collate4t1(a COLLATE NOCASE); -- CREATE TABLE collate4t2(b COLLATE TEXT); -- -- INSERT INTO collate4t1 VALUES('a'); -- INSERT INTO collate4t1 VALUES('A'); -- INSERT INTO collate4t1 VALUES('b'); -- INSERT INTO c...
-- file:horology.sql ln:27 expect:true SELECT timestamp with time zone 'Y2001M12D27H04M05S06.789-08'
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100 -- file:rangetypes.sql ln:483 expect:true select * from outparam_succeed(int4range(1,2))
CREATE TABLE [DemoCdc].[PostsOutbox] ( /* * This is automatically generated; any changes will be lost. */ [OutboxId] INT IDENTITY (1, 1) NOT NULL PRIMARY KEY CLUSTERED ([OutboxId] ASC), [CreatedDate] DATETIME NOT NULL, [PostsMinLsn] BINARY(10) NULL, -- Primary table: Legacy.Posts [PostsMaxLsn] BINARY(...
<gh_stars>1-10 /****** Object: StoredProcedure [dbo].[ArchiveOldManagersAndParams] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[ArchiveOldManagersAndParams] /**************************************************** ** ** Desc: Moves managers from T_Mgrs to T_OldManagers ** ...
<reponame>cero-t/sqltemplate select * from emp where 1 = 1 <#if job??> AND job = :job </#if> <#if mgr??> AND mgr = :mgr </#if> <#if deptno??> AND deptno = :deptno </#if>
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 06, 2017 at 09:12 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<filename>925_HOCD1_H1_708_G2/Course925Examples/c10-01.sql SELECT AVG(CurrentSalary) AS AvgSalary FROM Employees;
<filename>sdntestbed_deployable/script/vnetdb.sql CREATE DATABASE IF NOT EXISTS `sdn` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `sdn`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: 10.1.0.3 Database: sdn -- ------------------------------------------------------ -- Server version 5.5.25 /*!4010...
<filename>alacenapp/schema.sql drop table if exists user; create table user ( user_id integer primary key autoincrement, username text not null, email text not null, pw_hash text not null ); drop table if exists entries; create table entries ( id integer primary key autoincrement, title text not null, 't...
-- -- Transient Nameserver Requests -- -- Stores the list of tns requests sent to the transient name server -- drop table if exists `tcs_tns_requests`; create table `tcs_tns_requests` ( `id` bigint unsigned not null auto_increment, `tns_report_id` bigint unsigned, `download_attempts` smallint unsigned not null, `sta...
<reponame>loaderror/screeny SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for screenshots -- ---------------------------- DROP TABLE IF EXISTS `screenshots`; CREATE TABLE `screenshots` ( `id` INT UNSIGNED AUTO_INCREMENT, `url` VARCHAR(100) CHARSET `utf8mb4` NOT NULL, ...
--ZAD3b SELECT (SELECT nazwa FROM kategorie k WHERE k.id_kategoria=p.id_kategoria) FROM produkty p GROUP BY id_kategoria HAVING count(*)>=3
<reponame>vilislav7/PHP-WebDevelopmentBasic<gh_stars>0 select * from projects order by start_date, project_id limit 10;
<gh_stars>1-10 ------------------ -- tx start select pg_sleep(10000); -- tx end ------------------
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: i5a304.p.ssafy.io Database: kindergarden -- ------------------------------------------------------ -- Server version 8.0.26-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
<gh_stars>10-100 SELECT 'Shadowed City' AS name;
-- file:privileges.sql ln:706 expect:true select has_column_privilege(9999,'nosuchcol','select')
-- delete obsolete ones DELETE FROM AD_Ref_Table WHERE AD_Reference_ID IN (540236,540237); DELETE FROM AD_Reference WHERE AD_Reference_ID IN (540236,540237); UPDATE AD_RelationType SET InternalName= 'C_OLCandProcessor_1000000<=>C_OLCand' WHERE InternalName='C_OLCandProcessor_1000003<=>C_OLCand' ; UPDATE AD_Referenc...
INSERT INTO genatt_entry_type (id_type,title,is_group,is_comment,is_mylutece_user,class_name,plugin) VALUES (101,'Bouton radio',0,0,0,'appointment.entryTypeRadioButton','appointment'); INSERT INTO genatt_entry_type (id_type,title,is_group,is_comment,is_mylutece_user,class_name,plugin) VALUES (102,'Case à cocher',0...
<reponame>nagypet/wsstepbystep execute l ' '; execute l '--------------------------------------------------------'; execute l '-- TABLES'; execute l '--------------------------------------------------------'; execute l 'Creating table book'; execute ddl ' CREATE TABLE bookstore.book ( book_id bigint IDENTITY(1, 1)...
<filename>tajo-core-tests/src/test/resources/queries/TestWindowQuery/testWindow3.sql SELECT l_orderkey, l_quantity, sum(l_quantity) OVER (PARTITION BY l_orderkey) FROM LINEITEM;
<reponame>assessorgeneral/ConQAT PROMPT Include construct encountered in customer code @@someid.foo-bar-thing.trg @@someid.foo-baz-thing.trg -- tricky: keyword "mod" @@someid.foo-baz-mod.trg
-- -------------------------------------------------------- -- Хост: 127.0.0.1 -- Версия сервера: 5.6.26 - MySQL Community Server (GPL) -- ОС Сервера: Win32 -- HeidiSQL Версия: 9.3.0.4984 -- -------------------------------------------------------- /*...