sql
stringlengths
6
1.05M
<reponame>Kapersyx/sync-endpoint<gh_stars>1-10 IF EXISTS(select name from sys.schemas where name='odk_schema') BEGIN DECLARE @A NVARCHAR(MAX) DECLARE @DROPSQL NVARCHAR(MAX) DECLARE tbl_list CURSOR FOR select name from sys.tables where schema_id in (select schema_id from sys.schemas where name = 'odk...
-- MySQL Workbench Synchronization -- Generated: 2017-01-26 07:13 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: User 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, S...
DROP TABLE IF EXISTS v5_1_retention_contests;
-- @testpoint: opengauss关键字declare(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists declare_test; create table declare_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists declare; create synonym declare for declare_test; insert into declare values (1,'ada'),(2, 'bob'); update declare set declare.na...
<reponame>robertsantos-dfw/13-Eat-the-Burger INSERT INTO burgers (burger_name, devoured) VALUES ('Cheese Burger', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Bacon Burger', false); INSERT INTO burgers (burger_name, devoured) VALUES ('Sour Dough Melt', false); INSERT INTO burgers (burger_name, devoured)...
<gh_stars>0 INSERT INTO dbo.Cause ([Code], [Name], [Overview]) VALUES ( N'Q5384031', N'Epstein–Barr virus infection', N''), ( N'Q166231', N'infection', N''), ( N'Q21175435', N'exposure to cotton dust', N''), ( N'Q131129', N'Neisseria gonorrhoeae', N''), ( N'Q184627', N'human papillomavirus infection', N''), ( N'Q42918'...
-- <NAME> (Soil monitoring data) -- Dyp organisk + Grunn organisk : 100 -- orgjordf in (1,2) -- Kombinasjon av organisk jord og mineraljord : 0 -- orgjordf in (3) -- Default value other combinations : -100 DROP TYPE mess.function_1_6_1_type CASCADE; CREATE TYPE mess.function_1_6_1_type AS ( gid big...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1:3306 -- 生成日期: 2021-05-19 16:06:26 -- 服务器版本: 8.0.21 -- PHP 版本: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
<reponame>nhatthanh285/web360<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2017 at 06:30 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 @OL...
<reponame>niki130396/stock_market_platform_api SELECT operating_income.company_name, operating_income.industry, operating_income.sector, operating_income.fiscal_period, operating_income.value - tax_provision.value AS nopat FROM (SELECT * FROM income_statement_fields WHERE field_name = 'ope...
<reponame>dian9395/tkfinal INSERT INTO PETUGAS VALUES ('19669452178387317288',288000), ('65302985726919236090',3200000), ('39511977104706721909',2730000), ('78900250899258782002',2946000), ('9185540750118857421',3250000), ('39837692130274100256',3450000), ('12480081056580316307',2925000), ('41359624929706954422',32330...
CREATE SEQUENCE wingspan.wf_audit_id_seq INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1;
--EXECUTE dbo.Util_RunningRequests SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON SET ANSI_PADDING ON GO IF OBJECT_ID('dbo.Util_RunningRequests', 'P') IS NOT NULL DROP PROCEDURE dbo.Util_RunningRequests GO /** *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Util_RunningRequests By <NAME...
-------------------------------------------------------------------- -- view: vw_dashboard_membership_registeredactivebyageanddeprivation -------------------------------------------------------------------- -- drop view vw_dashboard_membership_registeredactivebyageanddeprivation; create or replace view vw_dashboard_me...
<reponame>pepincho/FMI -- task 3 use ships; select class, country from classes where numguns < 10; select name as shipName from ships where launched < 19181; select ship, name from outcomes, battles where result='sunk'; select name from ships where name=class; select name from ships where name like 'R%'; select n...
INSERT INTO status (name, symbol) VALUES ('not_available', '.'), ('not_available_period', '..'), ('not_applicable', '...'), ('rounded_to_zero', 's'), ('preliminary', 'p'), ('revised', 'r'), ('suppressed', 'x'), ('under_limit_of_detection', '<LOD'), ('significant_difference_ref_category', '*'), ('unreliable', 'F'), ('us...
#standardSQL SELECT * FROM `bigquery-public-data.github_repos.contents` WHERE id IN ( SELECT id FROM `typescript.tsfiles`) AND binary = FALSE AND NOT STARTS_WITH(content, '<')
<filename>doc/DesignNotes/Data Model and SQL/computing graph adjacency with SQL/rush_hour_determine_transition_states.sql /* We want a set with the structure of the puzzle_state_transition_table (puzzle id, puzzle id, piece id, piece id) We only want 4-tuples that represent legitimate state transit...
<reponame>arhamilton92/MonsTerra<filename>colorseeds.sql<gh_stars>0 //POM 0 INSERT INTO Colors (src, colorId, MonsterId, createdAt, updatedAt) VALUES ('', '1', '29', NOW(), NOW()); INSERT INTO Colors (src, colorId, MonsterId, createdAt, updatedAt) VALUES ('', '2', '29', NOW(), NOW()); INSERT INTO Colors (src, colorId, ...
# Write your MySQL query statement below SELECT unique_id, name FROM Employees LEFT JOIN EmployeeUNI USING (id)
<reponame>anneb/growapp-mdl create database locophoto owner geodb; \c locaphoto; create extension postgis; -- create as user 'geodb' create table photo (id serial primary key, filename varchar(40), width int, height int, location geometry, accuracy int, time timestamp default now(), visible boolean default(false), roo...
/* The current inferred relationship delta file is an accurate derivative of the current full file */ /* in the delta; not in the full */ insert into qa_result (runid, assertionuuid, concept_id, details) select <RUNID>, '<ASSERTIONUUID>', a.sourceid, concat('Inferred relationship: id=',a.id, ' is in delt...
<filename>Migrations/Cats.DatabaseSchema/Localization/Tables/Language.sql<gh_stars>1-10 CREATE TABLE [Localization].[Language] ( [LanguageCode] NCHAR (2) NOT NULL, [LanguageName] NVARCHAR (50) NOT NULL, CONSTRAINT [PK_Language] PRIMARY KEY CLUSTERED ([LanguageCode] ASC) );
CREATE FUNCTION func80() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE9);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE176);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE422);val:=(SELECT COUNT(*)INTO MYCOUNT ...
<filename>tests/unittests/commands/script_1.sql -------------------------------------------------------------------------- -- .script command test -------------------------------------------------------------------------- .help script .script lib/print.js .script -c utf-8 lib/print.js -- test running a script inline ...
ALTER TABLE `{$NAMESPACE}_legalpad`.legalpad_document ADD mailKey VARCHAR(20) NOT NULL COLLATE utf8_bin;
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_13_issues/_18_2h/cases/cbrd_22601.sql<gh_stars>1-10 drop table if exists test_tbl,foo1,foo2; CREATE TABLE test_tbl(groupid int,itemno int); INSERT INTO test_tbl VALUES(1,null); INSERT INTO test_tbl VALUES(1,1); INSERT INTO test_tbl VALUES(1,null); INSERT INTO test_tb...
<reponame>kevinarlo/karinda<filename>public/frontend/kbn_db.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 17, 2020 at 12:08 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTO...
SELECT setval('infolica.operateur_id_seq', (select max(id) from infolica.operateur), true); SELECT setval('infolica.cadastre_id_seq', (select max(id) from infolica.cadastre), true); SELECT setval('infolica.client_type_id_seq', (select max(id) from infolica.client_type), true); SELECT setval('infolica.client_id_seq', (s...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th9 04, 2017 lúc 09:39 CH -- Phiên bản máy phục vụ: 10.1.21-MariaDB -- Phiên bản PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<filename>Notes_33.sql #一、创建视图emp_v1, 要求查询电话号码以'011'开头的员工姓名和工资, 邮箱 CREATE OR REPLACE VIEW emp_v1 AS SELECT last_name, salary, email FROM employees WHERE phone_number LIKE '011%'; SELECT * FROM emp_v1; #二、创建视图emp_v2, 要求查询部门的最高工资高于12000的部门信息 CREATE OR REPLACE VIEW emp_v2 AS SELECT MAX(salary) AS mx_dep, department_id ...
<filename>prisma/migrations/20220124050502_initial/migration.sql -- CreateTable CREATE TABLE `User` ( `id` VARCHAR(191) NOT NULL, `baseID` VARCHAR(191) NOT NULL, `firstName` VARCHAR(191) NOT NULL, `lastName` VARCHAR(191) NOT NULL, `email` VARCHAR(191) NOT NULL, `emailVerified` DATETIME(3) NULL, ...
<filename>src/main/resources/META-INF/jp/ijufumi/sample/twitter/domain/dao/CampaignDao/selectAll.sql SELECT /*%expand*/* FROM t_campaign ORDER BY valid_end_date DESC , valid_start_date DESC
<reponame>cityofchandler/Auth<filename>Setup/db/CreateUser.sql USE [master] GO /* For security reasons the login is created disabled and with a random password. */ /****** Object: Login [mychandler] Script Date: 3/5/2019 10:54:59 AM ******/ CREATE LOGIN [mychandler] WITH PASSWORD=N'<PASSWORD>=', DEFAULT_DATABASE=[...
<reponame>ouiam05/ouiamctrl create database if not exists gestionFacture; use gestionFacture; --drop database gestionFacture; create table facture ( numF int primary key, objet varchar(50), dateF varchar(50), client varchar(50), tauxTva float, prixHt float null, tva float null, prixTtc float null ); create table d_f...
<reponame>its4land-new/publish-and-share<gh_stars>0 /* ---------------------------------------------------- */ /* Generated by Enterprise Architect Version 12.1 */ /* Created On : 17-Dec-2019 17:12:52 */ /* DBMS : PostgreSQL */ /* ---------------------------------------------------- */ /* Drop Tab...
-- reusable function logic \ir utils/schema.sql \ir utils/safe_cast.sql \ir utils/utils.sql \ir utils/disconnect.sql
create or replace package PRETIUS_APEX_CONTEXT_MENU as function render ( p_dynamic_action in apex_plugin.t_dynamic_action, p_plugin in apex_plugin.t_plugin ) return apex_plugin.t_dynamic_action_render_result; end PRETIUS_APEX_CONTEXT_MENU;
<reponame>rvflash/ds<filename>testdata/mysql/sample-myisam.sql CREATE DATABASE country; CREATE TABLE IF NOT EXISTS city ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` CHAR(35) NOT NULL DEFAULT '', `country_code` CHAR(3) NOT NULL DEFAULT '', `district` CHAR(20) NOT NULL DEFAULT '', `population` INT(11) NOT NU...
<gh_stars>1-10 SELECT DISTINCT TOP 1000 T.*, ConcertFilterId = CAST(T.ConcertId AS varchar(100)), SeatSection = S.Description, Description = S.Description + ' Seat ' + CAST(SeatNumber as VARCHAR(100)) FROM Tickets T JOIN TicketLevels L ON T.TicketLevelId = L.TicketLevelId JOIN SeatSection S O...
<gh_stars>1-10 -- Copyright (c) 2020 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, ...
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/3cd825e4.sql -- file:oidjoins.sql ln:316 expect:true SELECT ctid, opcintype FROM pg_catalog.pg_opclass fk WHERE opcintype != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type pk WHERE pk.oid = fk.opcintype)
alter table t1 alter column c1 drop not null; alter table t1 modify c2 drop default, c3 set default seq5.nextval ; alter table t1 alter c4 set data type varchar(50), column c4 drop default; alter table t1 alter c5 comment '50 character column'; ALTER TABLE xxxx.example_table MODIFY COLUMN employeeCode SET MASKING P...
<reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5490590_sys_gh478_drop_CostUpdate_process.sql -- 2018-04-12T21:48:59.660 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Menu_Trl WHERE AD_Menu_ID=313 ...
<filename>conf/db/upgrade/V0.7__schema.sql CREATE TABLE `zstack`.`IscsiFileSystemBackendPrimaryStorageVO` ( `uuid` varchar(32) NOT NULL UNIQUE COMMENT 'uuid', `hostname` varchar(255) NOT NULL UNIQUE, `sshUsername` varchar(255) NOT NULL, `sshPassword` varchar(255) NOT NULL, `filesystemType` varchar(...
<gh_stars>10-100 DROP TABLE IF EXISTS raster_value_arrays; CREATE TABLE raster_value_arrays ( id integer, val double precision[][] ); CREATE OR REPLACE FUNCTION make_value_array( rows integer DEFAULT 3, columns integer DEFAULT 3, start_val double precision DEFAULT 1, step double precision DEFAULT 1, skip_expr te...
<reponame>leonildo2/TrabalhoWeb<gh_stars>0 --DROP TABLE users IF EXISTS; CREATE TABLE users ( id INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 100, INCREMENT BY 1) PRIMARY KEY, name VARCHAR(30), email VARCHAR(50), address VARCHAR(255), password VARCHAR(20), newsletter BOOLEAN, framework VARCHAR(50...
<reponame>PNNL-Comp-Mass-Spec/DMS-Website PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE general_params ( "name" text, "value" text ); INSERT INTO "general_params" VALUES('list_report_data_table','V_Predefined_Analysis_Disabled_List_Report'); INSERT INTO "general_params" VALUES('list_report_data_sort_dir...
CREATE DATABASE firstapi; \l \c firstapi; CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(40), email TEXT ); INSERT INTO users (name, email) VALUES ('joe', '<EMAIL>'), ('ryan', '<EMAIL>'); select * from users;
<gh_stars>1-10 create or replace package body AMB_UTIL_CODE as procedure execute_ddl(p_ddl_sql clob) as begin EXECUTE IMMEDIATE p_ddl_sql; EXCEPTION WHEN OTHERS THEN RAISE; end execute_ddl; function is_object_exists(p_obj_name in varchar2) return bool...
IMPORT DTREE FROM FILE 'tpch_query12.txt'; CREATE TYPE TPCH12Payload FROM FILE 'ring/ring_tpch_query12.hpp'; CREATE STREAM LINEITEM ( orderkey INT, l_partkey INT, l_suppkey INT, l_linenumber INT, l_quantity DECIMAL, l_extendedprice DECIM...
SELECT 'Settings description should start with capital letter'; SELECT name, description FROM system.settings WHERE substring(description, 1, 1) != upper(substring(description, 1, 1));
<reponame>SKalt/pg_sql_parser_tests<filename>fixtures/doctests/rules/033/input.sql UPDATE shoelace_data SET sl_avail = 6 FROM shoelace_data shoelace_data WHERE shoelace_data.sl_name = 'sl7';
<reponame>sriharsha-kaluva/Gamify -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: db.soic.indiana.edu Database: p565f17_prbhat -- ------------------------------------------------------ -- Server version 5.5.56-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
SELECT departments.seats * religions.reservation_percentage DIV 100 AS seats_for_relegion , religions.religion_id, departments.course_name , religions.name , religions.category , religions.caste_name FROM departments JOIN religions WHERE departments.course_id = 4 AND religions.religion_id =1 ;
<reponame>Nifori/NifoBot<gh_stars>0 CREATE TABLE WARNING_T01 (OID BIGINT UNSIGNED PRIMARY KEY, UserOID BIGINT UNSIGNED, ServerOID BIGINT UNSIGNED, MESSAGE VARCHAR(30)) ;
<reponame>Johnzero/october /* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50540 Source Host : 127.0.0.1:3306 Source Database : october Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2015-04-29 16:32:02 */ SET FOREIGN...
CREATE TABLE users ( ID SERIAL PRIMARY KEY, firstName VARCHAR(30), lastName VARCHAR(30), address VARCHAR(150), email VARCHAR(50) NOT NULL UNIQUE, password VARCHAR(500), notifications BOOLEAN ); CREATE TABLE users ( ID SERIAL PRIMARY KEY, firstName VARCHAR(30), lastName VARCHAR(30), address VARCHAR(150), ...
/* SQLyog Community v13.1.1 (64 bit) MySQL - 10.1.34-MariaDB : Database - tasagents_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CH...
<gh_stars>0 ALTER TABLE REPORT ADD ACTIVE_FLAG CHAR(1) DEFAULT 'Y' NOT NULL /
library AgeRanges version '0.1.0' using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' codesystem "ISO-8601-Derived Periods": 'http://ohie.org/CodeSystem/iso-8601-derived-periods' // { 'P0Y--P1Y', 'P1Y--P5Y', ... } // Age Groups code "P0Y--P1Y": 'P0Y--P1Y' from "ISO-8601-Derived Periods" display '< 1 year...
----------------------------------------------------------------------------- -- Copyright (c) 2010-2015 <NAME> <<EMAIL>> -- https://github.com/DmitryZav/ -- -- This file is part of Constellation Kings game project. -- -- This file is subject to the terms and conditions defined in -- file 'LICENSE', which is part of th...
CREATE TABLE [dbo].[Fact_Download] ( [Id] UNIQUEIDENTIFIER NOT NULL DEFAULT NEWSEQUENTIALID(), [Dimension_Package_Id] INT NOT NULL, [Dimension_Date_Id] INT NOT NULL, [Dimension_Time_Id] INT NOT NULL, [Dimension_Operation_Id] INT NOT NULL, [Dimension_Client_Id] INT NOT NULL, [D...
<reponame>elbakerino/simple-pim create extension "uuid-ossp";
<filename>go/test/endtoend/onlineddl/vrepl_suite/testdata/fail-different-pk-new-pk-column/create.sql drop table if exists onlineddl_test; create table onlineddl_test ( uu varchar(64) not null, ts timestamp, primary key(uu) ); insert into onlineddl_test values (uuid(), now()); drop event if exists onlineddl_test...
CREATE DATABASE task_force_work CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI; USE task_force_work; CREATE TABLE categories /*Таблица категорий*/ ( id INT(11) NOT NULL AUTO_INCREMENT, /*сквозной айди*/ name VARCHAR(50) NOT NULL, /*имя категории*/ icon VARCHAR(50) NOT NULL, /*иконка*/ PRIMAR...
<gh_stars>0 -- ====================== -- -- Apply User Privileges -- ====================== -- GRANT ALL PRIVILEGES ON bonita_journal.* TO bonitaAdmin@'%'; GRANT SELECT,INSERT,UPDATE,DELETE,EXECUTE,SHOW VIEW ON bonita_journal.* TO bonitaApp@'%'; GRANT SELECT,SHOW VIEW,EXECUTE ON bonita_journal.* TO bonitaRead@'%'; GRA...
<filename>schema.sql create table if not exists psk_keys_tab(keyid text primary key, key blob, client_dh_pub raw(20), key_expiration timestamp); create table if not exists authorizations( client_dh_pub raw(20), coi string, acceptor_realm string, hostname string, apc string); create index if not exists authorizations_dh...
<gh_stars>10-100 SELECT last_name, salary, commission_pct FROM employees WHERE commission_pct IS NOT NULL ORDER BY 2, 3;
INSERT INTO users (first_name, last_name, pass_hash, user_name, is_volunteer, cohort_id) VALUES ('Jabba', 'Grand', '$2b$10$cFIl9HeKhXaTMxPyRWOhAuXqrDz95GuTRFQ7ZND5ljXmU2A/Yx9Fe','JabbaGrand', True, 1), ('Chewbacca', 'Bastila', '$2b$10$cFIl9HeKhXaTMxPyRWOhAuXqrDz95GuTRFQ7ZND5ljXmU2A/Yx9Fe','ChewbaccaBastila', True, 1...
<filename>data base/matriz riesgo Dump/matriz_riesgo_riesgo_especifico.sql -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: matriz_riesgo -- ------------------------------------------------------ -- Server version 5.5.5-10.1.28-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLI...
<filename>vue_crud.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.31.10 -- Generation Time: Sep 11, 2021 at 06:34 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
INSERT INTO `customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `items` (`title`, `value`) VALUES ('apple', 2.50); INSERT INTO `orders` (`cust_id`, `item_id`, `quantity`) VALUES (1, 3, 4);
-- -- Data for Name: cre_credentials; Type: TABLE DATA; Schema: public; Owner: postgres -- INSERT INTO public.cre_credentials (cre_username, cre_salt, cre_hashed_pwd, cre_mail, cre_is_admin, cre_last_connection, cre_validation_code, cre_insert_timestamp, cre_state) VALUES ('Admin', '<PASSWORD>', '<PASSWORD>', '<EMAIL>...
<filename>sql/tables.sql DROP SCHEMA public CASCADE; CREATE SCHEMA public; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS "pgcrypto"; SELECT * FROM pg_extension; CREATE TABLE meeting( meeting_id UUID DEFAULT gen_random_uuid(), meeting_name CHAR(50) not null, ...
<gh_stars>0 -- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_Order" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL, "userId" INTEGER NOT NULL, "state" INTEGER NOT NULL DEFAULT 0, CONSTRAINT "Or...
-- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: localhost Database: joomla -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
<filename>dlc-wallet/src/main/resources/sqlite/dlc/migration/V6__create_incoming_offers.sql<gh_stars>100-1000 CREATE TABLE incoming_offers (hash VARCHAR(64) PRIMARY KEY, received_at TIMESTAMP NOT NULL, peer VARCHAR(1024), message VARCHAR(280), offer_tlv TEXT NOT NULL); CREATE INDEX incoming_offers_peer_idx ON incoming...
<reponame>farmblox/chirpstack-network-server alter table gateway add column tls_cert bytea;
UPDATE prosess_task SET status = 'FERDIG' WHERE id IN (1024013, 1024010) AND task_type = 'vedtakEvent.lagre';
<reponame>stevencohn/Orqa -- Tablespace Quotas.sql select tablespace_name "Tablespace_Name", username "Username", bytes/1024/1024 "Megabytes", (case when max_bytes = -1 then null else max_bytes/1024/1024 end) "Max_Megabytes", (case when max_bytes = -1 then 'UNLIMITED' ...
DELIMITER // CREATE OR REPLACE PROCEDURE pr_SubtractAmountFromDebtAccountForUser(IN $debtAccountId VARCHAR(36), IN $userId VARCHAR(36), IN $amount DOUBLE) BEGIN SELECT CurrentAmou...
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/shared_err.test_24.sql -- shared_err.test -- -- execsql { -- BEGIN; -- INSERT INTO t1 VALUES(6, NULL); -- ROLLBACK; -- } BEGIN; INSERT INTO t1 VALUES(6, NULL); ROLLBACK;
-- file:strings.sql ln:166 expect:true SELECT regexp_matches(chr(10) || '1' || chr(10) || '2' || chr(10) || '3' || chr(10) || '4', '.?$', 'mg')
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspUnlockMessageQueueByIdent') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE uspUnlockMessageQueueByIdent GO /* uspUnlockMessageQueueByIdent * * Unlocks record in the MessageQueue by Ident and updates the Status * */ CREATE PROCEDURE uspU...
<filename>backend/de.metas.contracts/src/main/sql/postgresql/system/50-de.metas.contracts/5526860_sys_gh165-e2e_fix_contract_releated_trls.sql<gh_stars>1000+ -- 2019-07-08T13:15:48.757 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Element_Trl SET Name='Vertrag autom. verlängern',Updated=TO...
<filename>Packages/DZ_TESTDATA_CONSTANTS.pks<gh_stars>1-10 CREATE OR REPLACE PACKAGE dz_testdata_constants AUTHID CURRENT_USER AS ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- /* Header: DZ_TESTDATA...
<filename>server/migrations/008-sessions-csrf.up.sql -- track login state and csrf tokens in the database -- -- this allows for seamless switching between servers, and also for the api -- server to be able to authenticate requests based on session cookies without -- actually reading the session at all. -- -- One altern...
<reponame>jrharalson/almanac.httparchive.org #standardSQL # 11_06: beforeinstallprompt usage SELECT client, COUNT(DISTINCT page) AS freq, total, ROUND(COUNT(DISTINCT page) * 100 / total, 2) AS pct FROM `httparchive.almanac.summary_response_bodies` JOIN (SELECT _TABLE_SUFFIX AS client, COUNT(0) AS total FROM...
-- noinspection SqlDialectInspectionForFile -- noinspection SqlNoDataSourceInspectionForFile CREATE TABLE IF NOT EXISTS `programs` ( id INT UNSIGNED AUTO_INCREMENT, name VARCHAR(255) NOT NULL, slug VARCHAR(255) NOT NULL, type ENUM('bachelor', 'pre-master', 'master') NOT N...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017-10-19 02:23:57 -- 服务器版本: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<filename>libs/sdc_etl_libs/sql/DBT_Role/Raw_Database/Create_Ingram_views.sql -- UPDATE PLAN -- 2 TABLES ARE BEING USED BY DBT -- 0 NO_PII TABLES - CREATE THE INDIVIDUAL READ ROLES FOR THESE -- 2 PII TABLE-- 2 VIEWS NEEDED -- ADD THE read ROLES TO THE NO_PII GROUP ROLE -- ADD THE NO_PII GROUP ROLE TO BOTH DBT ROLES -...
CREATE TABLE `dmarc_entity_history` ( `id` VARCHAR(255) NOT NULL, `state` JSON NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
<filename>db/migrations/8_add_updated_at_to_templates.sql -- +migrate Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE `templates` ADD `updated_at` datetime DEFAULT NULL; -- +migrate Down -- SQL section 'Down' is executed when this migration is rolled back ALTER TABLE `templates` DROP C...
CREATE FUNCTION func57() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE403);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE397);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE131);val:=(SELECT COUNT(*)INTO MYCOUN...
CREATE TABLE [${ohdsiSchema}].[ir_analysis]( [id] [int] IDENTITY(1,1) NOT NULL, [name] [varchar](255) NOT NULL, [description] [varchar](1000) NULL, [created_by] [varchar](255) NULL, [created_date] [datetime] NULL, [modified_by] [varchar](255) NULL, [modified_date] [datetime] NULL, CONSTRAINT [PK_ir_anal...
create table sys_login_log ( id bigint auto_increment comment '编号' primary key, user_name varchar(50) null comment '用户名', status varchar(50) null comment '登录状态(online:在线,登录初始状态,方便统计在线人数;login:退出登录后将online置为login;logout:退出...
CREATE TABLE IF NOT EXISTS services( id serial PRIMARY KEY, repo_url TEXT, name VARCHAR (45) UNIQUE NOT NULL, created_at TIMESTAMP WITH TIME ZONE default now(), updated_at TIMESTAMP WITH TIME ZONE default now() ); CREATE INDEX services_name_idx ON services (name);
create table zone ( id integer primary key asc, name text, unique(name) ); create table mode ( id integer primary key asc, zoneID integer, name text, minTemp real, maxTemp real, correction real, foreign key (zoneID) references zone(id) on delete cascade, unique(zoneID, name)...
-- -- Copyright (c) 2011, The University of Southampton and the individual contributors. -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain t...