sql
stringlengths
6
1.05M
CREATE TABLE IF NOT EXISTS remoteclusters ( remoteid VARCHAR(26) NOT NULL, remoteteamid VARCHAR(26), name VARCHAR(64) NOT NULL, displayname VARCHAR(64), siteurl VARCHAR(512), createat bigint, lastpingat bigint, token VARCHAR(26), remotetoken VARCHAR(26), topics VARCHAR(512), ...
# --- MapRoulette Scheme # --- !Ups UPDATE status_actions SET project_id = challenges.parent_id FROM challenges WHERE challenge_id = challenges.id AND challenge_id IN (select distinct challenge_id from status_actions INNER JOIN challenges ON challenges.id = status_acti...
-- @testpoint: opengauss关键字Lc_Collate(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists explain_test cascade; create table explain_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor Lc_Collate for select * from explain_test order by 1; close Lc_Collate; end; --关键字带双引号-成功 start transaction; cursor "Lc_Colla...
<reponame>MahmoudGhnnam/city_explorer_api<filename>schema.sql DROP TABLE IF EXISTS locations; CREATE TABLE locations( city_id SERIAL PRIMARY KEY, search_query VARCHAR (200), display_name VARCHAR (200), lat NUMERIC(10,7), lon NUMERIC(10,7) )
/* Voer uit nadat connection_nodes zijn aangemaakt. Dit script draait alleen de pomprichting om indien de pomprichting (gegeven de aangeleverde data) in tegengestelde richting (van/naar peilgebied) is. Is er onduidelijkheid over de te koppelen peilgebieden, of de aangeleverde data heeft een ongeldig/meerdere peilgebied...
<gh_stars>0 -- Valentina Studio -- -- MySQL dump -- -- --------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40...
<gh_stars>0 DROP TABLE IF EXISTS Shares CASCADE; CREATE TABLE IF NOT EXISTS Shares ( Owner TEXT, Issuer TEXT, Percentage REAL );
with ERZIPCODES as ( select substr(ZIPCODE, 1, 5) as ERZIPCODE from CSE532.FACILITY F inner join CSE532.FACILITYCERTIFICATION FC on F.FACILITYID = FC.FACILITYID and ATTRIBUTEVALUE = 'Emergency Department' ), ERZIPCODES_WITH_SHAPE as ( select ERZIPCODE, SHAPE as...
-- insert burgers here INSERT INTO burgers (burger_name) VALUES ("Big Mac"), ("Mama Burger"), ("Teen Burger"), ("Whopper"), ("Quarter Pounder with Cheese")
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2019 at 07:23 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<filename>man/export/testexcel.sql -- phpMyAdmin SQL Dump -- version 2.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 20, 2010 at 03:19 PM -- Server version: 5.0.45 -- PHP Version: 5.2.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `testexcel` -- -- -------...
<gh_stars>1-10 insert into projeto values (null, 'Teste Descrição - Script', 'Teste Nome - Script'); insert into historico_projeto (acao, descricao, id) values ('SALVAR', '[1 - Teste Nome - Script - Teste Descrição - Script]', null);
<filename>sensor_data_table.sql /* * */ -------------------------------------------------------------------------------- -------------------------- table definition ------------------------------------ -------------------------------------------------------------------------------- CREATE TABLE sensor_data ( device...
<filename>Queries/queries.sql -- Creating tables for PH-EmployeeDB CREATE TABLE departments ( dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); CREATE TABLE employees ( emp_no INT NOT NULL, birth_date DATE NOT NULL, first_name ...
<reponame>nozzlegear/Dijon DROP PROC [sp_ListStreamAnnouncementMessagesForStreamer]; DROP PROC [sp_ListStreamAnnouncementMessagesForGuild]; DROP PROC [sp_ListGuildAnnouncementChannels];
<reponame>Synnotech-AG/Synnotech.MsSqlServer SELECT TOP(1) * FROM Persons WHERE Id = @Id;
<gh_stars>1-10 \! echo 'Articles be_read' USE articles; SELECT * FROM be_read LIMIT 20;
<reponame>tyrasd/osmaxx<filename>osmaxx/conversion/converters/converter_gis/bootstrap/sql/filter/address/000_setup-drop_and_recreate_table.sql ----------------- -- address_p -- ----------------- DROP TABLE if exists osmaxx.address_p; CREATE TABLE osmaxx.address_p( osm_id bigint, lastchange timestamp without t...
<filename>src/test/resources/vtab1.test_81.sql -- vtab1.test -- -- execsql { -- CREATE TABLE del(d); -- CREATE VIRTUAL TABLE e2 USING echo(del); -- } CREATE TABLE del(d); CREATE VIRTUAL TABLE e2 USING echo(del);
<reponame>Zarun1/Evolve CREATE VIEW vista AS SELECT text 'Hello World' AS hello; CREATE VIEW comedies AS SELECT * FROM films WHERE kind = 'Comedy'; -- Create a recursive view CREATE RECURSIVE VIEW public.nums_1_100 (n) AS VALUES (1) UNION ALL SELECT n+1 FROM nums_1_100 WHERE n < 100;
/* Navicat MySQL Data Transfer Source Server : 测试218 Source Server Version : 50560 Source Host : 192.168.8.218:3306 Source Database : c1_hxxiaoketang Target Server Type : MYSQL Target Server Version : 50560 File Encoding : 65001 Date: 2020-07-09 15:52:57 */ SET FORE...
<reponame>luolxb/tracker-server<gh_stars>0 create table t_summary_car_daily ( id BIGINT(19) auto_increment primary key, bike_barcode VARCHAR(64) not null comment '车牌号', dept_id BIGINT(19) not null comment '辖区id', su...
-- MIGRATION_BASE CREATE TABLE `s_instance_info` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `cluster` varchar(64) DEFAULT NULL, `namespace` ...
/* Copyright (c) 2006-2012 Regents of the University of Minnesota. For licensing terms, see the file LICENSE. */ /* This script creates the initial tables needed for tagging of points and byways. Note that while tags are technically versioned features, they are immutable in the current implementation. */ BEG...
<reponame>cb-deepak/pgcodekeeper SET search_path = pg_catalog; COMMENT ON DATABASE current_database() IS 'comments database 2'; COMMENT ON CAST (integer AS bigint) IS 'test cast 2'; COMMENT ON EXTENSION test_ext IS 'test extension 2'; COMMENT ON FOREIGN DATA WRAPPER test_fdw_2 IS 'new comment'; COMMENT ON SERVER t...
select case foo when 4 then 'A' when 3 then 'B' else 'C' end from baz
INSERT INTO health_facilities2_odkx (rowETag, dataETagAtModification, deleted, createUser, formId, locale, savepointType, savepointCreator, selfUri, lastUpdateUser_health_facilities, savepointTimestamp_health_facilities, location_accuracy, location_altitude, location_latitude, location_longitude, admin_region_id, autho...
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 08, 2017 at 07:06 AM -- Server version: 5.5.54-cll -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
<filename>Spring/spring-mybatis/src/main/resources/schema.sql<gh_stars>0 CREATE TABLE person (id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255));
CREATE TABLE [dbo].[tblPO-User] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [SysName] NCHAR(255) NOT NULL, [DisplayName] NCHAR(20) NOT NULL, [Password] NCHAR(10) NULL, [DateCreated] DATETIME NULL, [LastLogin] DATETIME NULL, [FailedLogins] INT NULL ) GO EXEC sp_addextendedproperty @name = N...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2016 at 12:23 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHA...
# drop database if exists babel; drop database if exists tienda; # create database if not exists babel; create database if not exists tienda; # create database if not exists trys; # use babel; use tienda; # use trys; # CREATE USER 'jamahcs' IDENTIFIED BY '<PASSWORD>'; # GRANT ALL PRIVILEGES ON babel.* TO 'jamahcs'; # ...
<reponame>tushartushar/dbSmellsData CREATE TABLE ' . $this->table . '( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(10) NOT NULL )
CREATE TABLE IF NOT EXISTS OrderItem ( id bigint(20) NOT NULL AUTO_INCREMENT, order_id bigint(20) NOT NULL, sku_id bigint (20) NULL, product_id bigint (20) NULL, quantity int (11) NULL, price double NULL, PRIMARY KEY (id)) CREATE TABLE IF NOT EXISTS Category_Category ( parentCategoryId bigint(20) NOT NULL, childCategor...
<reponame>rabryst/sql-server-language-extensions<gh_stars>10-100 -- TSQL script for the Java regex sample on Windows EXEC sp_configure 'external scripts enabled', 1 RECONFIGURE WITH OVERRIDE GO CREATE DATABASE javatest GO USE javatest GO CREATE TABLE testdata ( id int NOT NULL, "text" nvarchar(100) NOT NULL ...
<filename>src/hackerrankSql/WeatherObservation5.sql<gh_stars>1-10 /** * problem url: https://www.hackerrank.com/challenges/weather-observation-station-5/problem * hackerrank profile url: https://www.hackerrank.com/jamsrandorjb?hr_r=1 * solved by jama */ SELECT * FROM ( SELECT CITY, MIN(LENGTH(CITY...
-- tkt3718.test -- -- execsql { -- DELETE FROM t2 WHERE a > 5; -- PRAGMA count_changes = 1; -- BEGIN; -- } DELETE FROM t2 WHERE a > 5; PRAGMA count_changes = 1; BEGIN;
do $$ declare project_entity_id integer; employee_entity_id integer; task_entity_id integer; task_to_emp_entity_id integer; project_to_emp_entity_id integer; begin insert into meta.entity (table_name, title, create_pkey) values('project', 'Projects', true); select entity_id from meta.entity where table_name ...
-- file:interval.sql ln:27 expect:true INSERT INTO INTERVAL_TBL (f1) VALUES ('6 years')
-- Full creation -- creates a table second_table in the database and add multiples rows CREATE TABLE IF NOT EXISTS second_table ( id INT, name VARCHAR(256), score INT ); INSERT INTO second_table (id, name, score) VALUES (1, "John", 10), (2, "Alex", 3), (3, "Bob", 14), (4, "George", 8);
-- 2017-10-02T15:14:46.685 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='N',Updated=TO_TIMESTAMP('2017-10-02 15:14:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=551293 ; -- 2017-10-02T15:14:49.390 -- I forgot to set the DICTIONARY_ID_COMMENTS ...
<reponame>dram/metasfresh DROP FUNCTION IF EXISTS de_metas_endcustomer_fresh_reports.Docs_Sales_DD_Order_Description (IN Record_ID numeric, IN AD_Language Character Varying(6)) ; DROP TABLE IF EXISTS de_metas_endcustomer_fresh_reports.Docs_Sales_DD_Order_Description ; CREATE TABLE de_metas_endcustomer_fresh_reports.D...
<gh_stars>0 {DEFAULT @CDM_schema = 'Alligator_CDM4_All'} {DEFAULT @HTN_Combi = 'SJ_HTN_combi'} {DEFAULT @HTN_Combi_code = 'Chan_HTN_Combi'} USE [@HTN_Combi]; -- HTN medication list SELECT * FROM [@HTN_combi_code].[dbo].HTN_med SELECT DISTINCT DRUG_CLASS FROM [@HTN_combi_code].[dbo].HTN_med ORDER BY DRUG_CLASS -- VIS...
-- -------------------------------------------------------- -- Host: localhost -- Server version: 8.0.24 - MySQL Community Server - GPL -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
<filename>mbaas-jooq/src/main/resources/db/migration/V25__client_ddl.sql CREATE TABLE client ( -- client id client_id VARCHAR(100) NOT NULL, application_id VARCHAR(100), user_id VARCHAR(100), application_user_id VARCHAR(100), client_secret VARCHAR(100), date_created ...
-- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (i686) -- -- Host: localhost Database: notes -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
DROP TABLE IF EXISTS `bm_bookmarks`; CREATE TABLE IF NOT EXISTS `bm_bookmarks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `category_id` int(11) NOT NULL, `user_id` int(11) NOT NULL DEFAULT '0', `name` varchar(64) NOT NULL, `content` text NOT NULL, `description` varchar(255) DEFAULT NULL, `logo` varchar(255) ...
<reponame>lukaszbudnik/migrator<filename>test/migrations/tenants/201602160004.sql<gh_stars>10-100 alter table {schema}.users add id_role integer;
<reponame>xiaoxiaoHe-E/gpdb<filename>contrib/pg_upgrade/test/integration/sql/heap_table.sql SHOW server_version; CREATE TABLE users (id INTEGER, name TEXT) DISTRIBUTED BY (id); INSERT INTO users VALUES (1, 'Jane'); INSERT INTO users VALUES (2, 'John'); INSERT INTO users VALUES (3, 'Joe');
<reponame>dunarel/dunphd-thesis<filename>Chapter4/Supplementary/proc_hom/sessions/hgt_par_42.sql select gbs.gene_id, count(*) from GENE_BLO_SEQS gbs group by GENE_ID order by count(*) desc select * from GENE_BLO_SEQS gbs where gbs.GENE_ID = 148
-- add url_friendly event name & talk title. Also add a talk stub. alter table talks add column stub char(5) UNIQUE; alter table talks add index (stub, active); alter table talks add column url_friendly_talk_title varchar(255) after talk_title; alter table talks add unique (url_friendly_talk_title, event_id); alter ...
alter table `output_addresses_accumulate_in` add COLUMN `output_processed` smallint unsigned not null default 0; alter table `output_addresses_accumulate_in` add COLUMN `transaction_id` varchar(50) not null default ''; alter table `output_addresses_accumulate_out` add COLUMN `transaction_id` varchar(50) not null def...
<filename>openGaussBase/testcase/SQL/DDL/Index/Opengauss_Function_DDL_Column_Unique_Index_Case0020.sql -- @testpoint: 列存范围分区表,创建非分区唯一索引,合理报错 --创建列存范围分区表 drop table if exists column_part_tab20; create table column_part_tab20(id int,name char) with(orientation=column) partition by range(id) (partition part_1 values less...
-- @testpoint:opengauss关键字ilike(保留),作为序列名 --关键字不带引号-合理报错 drop sequence if exists ilike; create sequence ilike start 100 cache 50; --关键字带双引号-成功 drop sequence if exists "ilike"; create sequence "ilike" start 100 cache 50; --清理环境 drop sequence "ilike"; --关键字带单引号-合理报错 drop sequence if exists 'ilike'; create sequence ...
<gh_stars>0 -- @testpoint: opengauss关键字map(非保留),作为同义词对象名,部分测试点合理报错 --前置条件 drop table if exists explain_test; create table explain_test(id int,name varchar(10)); --关键字不带引号-成功 drop synonym if exists map; create synonym map for explain_test; insert into map values (1,'ada'),(2, 'bob'); update map set map.name='cici' wh...
--EFA_Results_Copy insert into [$(FromILRDatabase)].Rulebase.[EFA_Cases] ( LearnRefNumber ,CaseData ) select LearnRefNumber ,CaseData from Rulebase.[EFA_Cases] go insert into [$(FromILRDatabase)].Rulebase.[EFA_global] ( UKPRN, LARSVersion, OrgVersion, PostcodeDisadvantageVersion, RulebaseVersion ) sele...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 01, 2020 at 04:25 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>business.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2021 at 12:34 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>0 -- Revert myproject:users from pg BEGIN; DROP TABLE users; COMMIT;
-- Clear table DELETE FROM `evotinggasanalysis.20200421.functionSighashes` WHERE 1=1; -- INSERT split into two part due to length concstraints INSERT INTO `evotinggasanalysis.20200421.functionSighashes` (`hash`, `signature`, `is_erc1202`) VALUES ('0xb384abef', 'vote(uint256,uint256)', true),('0x8719e8ac', 'setStatus(u...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 30, 2015 at 09:08 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
<reponame>adminiitbact/cov2-graphql<filename>hasura/migrations/1589101655190_alter_table_public_ward_drop_column_severity/down.sql<gh_stars>0 ALTER TABLE "public"."ward" ADD COLUMN "severity" int4; ALTER TABLE "public"."ward" ALTER COLUMN "severity" DROP NOT NULL;
-- View: camdecmpswks.vw_unit_program_exemption -- DROP VIEW camdecmpswks.vw_unit_program_exemption; CREATE OR REPLACE VIEW camdecmpswks.vw_unit_program_exemption AS SELECT ml.mon_loc_id, u.unit_id, u.fac_id, up.prg_cd, up.up_id, NULL::text AS upe_id, pe.exemption_type_cd AS exempt_type_cd, ...
ALTER TABLE address ALTER COLUMN postcode SET NOT NULL;
<reponame>gudy02/otbwillcataco -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-11-2018 a las 08:36:59 -- Versión del servidor: 10.1.9-MariaDB -- Versión de PHP: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101...
### Schema Create database if not exists burgerDB; Use burgerDB; Create table if not exists burgers ( id integer not null auto_increment, burger_name varchar (30) not null, devoured Boolean default false, primary key (id) );
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 05, 2021 at 11:33 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
ALTER TABLE part ADD PRIMARY KEY(p_partkey); ALTER TABLE supplier ADD PRIMARY KEY(s_suppkey); ALTER TABLE date ADD PRIMARY KEY(d_datekey); ALTER FOREIGN TABLE customer OPTIONS(ADD primary_key 'PRIMARY KEY(c_custkey)'); ALTER FOREIGN TABLE lineorder OPTIONS(ADD primary_key 'PRIMARY KEY(lo_orderkey, lo_linen...
CREATE INDEX IF NOT EXISTS "blocks_generator_public_key_height" ON ${schema~}.blocks ("generator_public_key", "height");
<reponame>goyoambrosio/RobotAtHome_API SELECT "CREATE TEMP VIEW my_view_1 AS SELECT " || ( SELECT group_concat(name, ', ') FROM pragma_table_info('raw') WHERE name != 'id') || " FROM raw";
<filename>schema/20-books.sql<gh_stars>1-10 BEGIN; -- We need this for GIST tokens on book_id INT as well as ranges. CREATE EXTENSION IF NOT EXISTS btree_gist; -- Enable trgm for indexing token ttypes for concordance LIKE search CREATE EXTENSION IF NOT EXISTS btree_gin; CREATE EXTENSION IF NOT EXISTS pg_trgm; CREAT...
SELECT exists( SELECT * FROM information_schema.tables WHERE table_name=%s )
/* Navicat Premium Data Transfer Source Server : app_db_POS Source Server Type : MariaDB Source Server Version : 100407 Source Host : localhost:3306 Source Schema : lv8panel Target Server Type : MariaDB Target Server Version : 100407 File Encoding : 65001 Date: 24/10...
<filename>User_Defined_Function/udf_RemoveNonAlphaCharacters.sql IF OBJECT_ID('dbo.udf_RemoveNonAlphaCharacters') IS NULL EXECUTE ('CREATE FUNCTION dbo.udf_RemoveNonAlphaCharacters() RETURNS NVARCHAR(MAX) AS RETURN SELECT 1 AS A;'); GO ALTER FUNCTION dbo.udf_RemoveNonAlphaCharacters( @inputString NVARCHA...
<filename>languages/modules/zhufu/install/zhufu.sql DROP TABLE IF EXISTS `shuyang_zhufu`; CREATE TABLE IF NOT EXISTS `shuyang_zhufu` ( `edi_id` int(10) NOT NULL AUTO_INCREMENT, `siteid` smallint(5) unsigned NOT NULL DEFAULT '0', `edi_class` int(10) NOT NULL, `edi_images` int(15) NOT NULL, `edi_head` varchar(1...
<reponame>clyhs/spring-boot-samples<filename>spring-boot-shiro-jwt/src/main/resources/database/import.sql INSERT INTO `t_user` (`id`,`username`,`password`) VALUES ('1', 'admin', '<PASSWORD>');
<filename>includes/tracking/eval/personsEditingTaskMetaData.sql SELECT nrOfEditors, count(taskId) nrOfTasks, count(taskId)/nrOfDistTasks perentage FROM (SELECT taskId, count(distinct user) nrOfEditors FROM track WHERE (action = 'set type' OR action = 'set progress' OR action = 'set start' OR action = 's...
<reponame>KK6AZA/reportlatency .separator ',' .import upload.csv upload .import navigation.csv navigation .import navigation_request.csv navigation_request .import update_request.csv update_request .import tag.csv tag
-- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64) -- -- Host: 192.168.3.11 Database: sys -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
<gh_stars>10-100 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE procedure [Profile.Data].[Person.AddPhoto] @PersonID INT, @Photo VARBINARY(MAX)=NULL, @PhotoLink NVARCHAR(MAX)=NULL AS BEGIN SET NOCOUNT ON; -- Only one custom photo per user, so replace any existing custom photos IF EXISTS (SELECT 1 FRO...
<filename>db/data_admin.sql USE `db_admin` ; -- -- Volcado de datos para la tabla `empresa` -- INSERT INTO `empresa` (`emp_id`, `emp_nombre`, `emp_ruc`, `emp_descripcion`, `emp_direccion`, `emp_telefono`, `emp_est_log`, `emp_fec_cre`, `emp_fec_mod`) VALUES (1, 'Medical', '1310328405001', 'Imagenes Digitales', NULL,...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字prefix非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists prefix; create sequence prefix start 100 cache 50; drop sequence prefix; --关键字带双引号-成功 drop sequence if exists "prefix"; create sequence "prefix" start 100 cache 50; drop sequence "prefix"; --关键字带单引号-合理报错 ...
ALTER TABLE "USER" ADD interests jsonb; ALTER TABLE "USER" ADD level_of_experience_primary_interest varchar(50); ALTER TABLE "USER" ADD summary varchar(200); ALTER TABLE "MENTOR" ADD mentoring_subjects jsonb; ALTER TABLE "MENTOR" ADD level_of_experience_primary_mentoring_subject varchar(50);
<reponame>kgudger/CoastalWatershedCouncil -- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 13, 2016 at 01:49 PM -- Server version: 5.5.50-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.19 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
update oppgave set status='Invalidert'::oppgavestatus where id in ( select distinct id from oppgave o left join automatisering a on a.vedtaksperiode_ref = o.vedtak_ref where o.status = 'AvventerSaksbehandler'::oppgavestatus AND a.automatisert = true );
<reponame>navikt/aap-soknad-api<filename>src/main/resources/db/migration/V1_5__oppgaver.sql<gh_stars>0 ALTER TABLE dittnavoppgaver ADD COLUMN updated TIMESTAMP; ALTER TABLE dittnavoppgaver ADD COLUMN isDone BOOLEAN; ALTER TABLE dittnavoppgaver DROP COLUMN done;
<reponame>joshuaadampoirier/jp-migrator CREATE FUNCTION _Check_Migration ( migration_name INT ) RETURNS INT DETERMINISTIC BEGIN DECLARE migration_exists BIT DEFAULT 0; SELECT CASE WHEN COUNT(1) > 0 THEN 1 ELSE 0 ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 10 Sie 2020, 10:36 -- Wersja serwera: 10.4.11-MariaDB -- Wersja PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
DROP PROCEDURE IF EXISTS `splitLastId` ; DROP PROCEDURE IF EXISTS `createrootcategory` ; DROP FUNCTION IF EXISTS `createObject`; DROP PROCEDURE IF EXISTS `createCategory`; DROP PROCEDURE IF EXISTS `listCategoriesOid`; DROP PROCEDURE IF EXISTS `listCategoriesId`; DROP PROCEDURE IF EXISTS `listWords`; DROP PROCEDURE IF...
<reponame>G-Simeone/Learning_Accident_Occurence_on_Dutch_Highways<gh_stars>1-10 DROP TABLE rws_raw.speed_15min_resolution; DROP TABLE rws_raw.flow_15min_resolution; -- create tables for speed and flow CREATE TABLE rws_raw.speed_15min_resolution( "measurementSiteReference" VARCHAR NOT NULL, "measurementSiteVersion" ...
CREATE TABLE subdivision_NE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_NE" ("id", "name", "level") VALUES (E'NE-1', E'Agadez', E'region'); INSERT INTO "subdivision_NE" ("id", "name", "level") VALUES (E'NE-2', E'Diffa', E'region'); INSERT INTO "sub...
-- ---------------------------------------- -- -- CLEAR DOWN THE TABLE -- -- ---------------------------------------- TRUNCATE TABLE `skill_fishing_base_level`; -- ---------------------------------------- -- MySQL dump 10.13 Distrib 5.5.37, for Win32 (x86) -- -- Host: localhost Database: mangos0 ...
CREATE TABLE Sales ( OrderId int, TenantId int, Product varchar(10), Qty int ); INSERT Sales VALUES (1, 1, 'Valve', 5), (2, 1, 'Wheel', 2), (3, 1, 'Valve', 4), (4, 2, 'Bracket', 2), (5, 2, 'Wheel', 5), (6, 2, 'Seat', 5); --- Grant access to AppUser GRANT SELECT, IN...
CREATE TABLE [dbo].[Player] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (50) NOT NULL, [Email] NVARCHAR (100) NOT NULL, [Stamp] ROWVERSION NOT NULL, [CreatedOn] DATETIME CONSTRAINT [DF_Player_CreatedOn] DEFAULT (getdate()) NOT NULL, CONSTRAINT ...
<filename>src/main/resources/sql/action/property/security/role/Memberships.sql DECLARE @roleId INT = ??roleId??; SELECT id = CAST(AllRoles.principal_id AS VARCHAR(10)), name = AllRoles.name, isSelected = CAST(IIF(CurrentRole.principal_id IS NOT NULL, 1, 0) AS BIT), kind = 'SERV...
CREATE TABLE `test_very_long_table_name_1234`( `id` VARCHAR(100) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `test_extract_table`( `id` INTEGER NOT NULL, `varchar_value` VARCHAR(255) NULL, `longvarchar_value` MEDIUMTEXT NULL, `timestamp_value` DATETIME, `date_value` DATE, `bit_value` ...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : myDB Source Server Version : 50717 Source Host : localhost:3306 Source Database : middle Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-02-05 23:06:29 */ SET FOREIG...
CREATE TABLE `kmrtasks`( id integer primary key, add_date date, task_from text, task_date date, section text, user_id integer, category text, title text, note text, tags text, status text ); CREATE TABLE `kmrusers`( id integer primary key, disp_name text, name text, password text, auth...
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.31-MariaDB : Database - db_kik ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
BEGIN --Bye Sequences! FOR i IN (SELECT us.sequence_name FROM USER_SEQUENCES us) LOOP EXECUTE IMMEDIATE 'drop sequence ' || i.sequence_name; END LOOP; --Bye Tables! FOR i IN (SELECT ut.table_name FROM USER_TABLES UT) LOOP EXECUTE IMMEDIATE 'drop table ' || i.table_name || ' cascade constraints pur...