sql
stringlengths
6
1.05M
alter table sensor_model add (dynamic_static varchar(1)); update sensor_model set dynamic_static='D' where model='BL'; update sensor_model set dynamic_static='D' where model='BT'; update sensor_model set dynamic_static='D' where model='CD'; update sensor_model set dynamic_static='D' where model='CE'; update sensor_mode...
START TRANSACTION; -- version DROP FUNCTION IF EXISTS gd_version; CREATE FUNCTION gd_version() RETURNS VARCHAR(255) DETERMINISTIC RETURN '2.2.1'; -- default week start DROP FUNCTION IF EXISTS gd_week_start; CREATE FUNCTION gd_week_start() RETURNS INT DETERMINISTIC RETURN 6; -- mon=0, tue=1, wed=2, thu=3, f...
<reponame>izneus/bonfire-mysql<filename>db/oracle/bonfire_oracle.sql -- ---------------------------- -- 调度任务表 -- ---------------------------- create table SCHED_JOB ( ID VARCHAR2(64) not null constraint SYS_JOB_PK primary key, JOB_NAME VARCHAR2(100), JOB_GROUP VARCHAR2(100), JOB_METHOD VARCHAR2(100), CREATE_T...
CREATE PROCEDURE [dbo].[BugNet_IssueNotification_DeleteIssueNotification] @IssueId Int, @UserName NVarChar(255) AS DECLARE @UserId uniqueidentifier SELECT @UserId = UserId FROM Users WHERE UserName = @UserName DELETE BugNet_IssueNotifications WHERE IssueId = @IssueId AND UserId = @UserId
<gh_stars>0 USE [StudentSuccess] GO /****** Object: Table [dbo].[StudentCertification] Script Date: 5/24/2017 4:54:28 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[StudentCertification]( [student_number] [varbinary](8000) NULL, [IDType] [...
<filename>tests/queries/058-rowid-is-not-null-2.sql select count(*) from no_nulls2 where rowid is not null 99
SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; SET search_path = public, pg_catalog; DROP SCHEMA IF EXISTS public CASCADE; CREATE SCHEMA public; CREATE E...
create table if not exists users ( id serial primary key, username varchar(2000) unique not null, password varchar(2000) not null ); create table if not exists roles ( id serial primary key, name varchar(200) unique not null ); create table if not exists users_roles ( user_id int references user...
<reponame>alancnet/artifactory<filename>storage/db/src/test/resources/sql/db-props.sql INSERT INTO db_properties VALUES (1339000000000, '2-t', NULL, NULL), (1349000000000, '5-t', 12000, 1300000000000), (1348000000000, '4-t', 11000, 1200000000000);
<filename>WebAPI/src/main/resources/ddl/results/cohort_summary_stats.sql<gh_stars>10-100 IF OBJECT_ID('@results_schema.cohort_summary_stats', 'U') IS NULL CREATE TABLE @results_schema.cohort_summary_stats( cohort_definition_id int NOT NULL, base_count bigint NOT NULL, final_count bigint NOT NULL );
<filename>pkg/tests/test_migrations/sql/preinstall/001-setup.sql CREATE TABLE log (msg TEXT, id serial); INSERT INTO log VALUES('setup');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 04, 2021 at 10:57 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: bd_intec -- ------------------------------------------------------ -- Server version 8.0.22-0ubuntu0.20.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
<reponame>bricedjilo/commentMe CREATE DATABASE IF NOT EXISTS `heroku_04a54f22da0d1b9` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `heroku_04a54f22da0d1b9`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: heroku_04a54f22da0d1b9 -- ----------------------...
SET @media = 0; SELECT AVG(producto.precio) INTO @media FROM producto;
<reponame>pereiracruz2002/apiolim<gh_stars>0 ALTER TABLE `user` ADD `last_login` DATETIME NULL AFTER `publicKey`;
<reponame>smorineau/ut_mock create or replace package ut_mock as type mock_details is record (mock_code clob, mockable_package varchar2(30), mockable_name varchar2(100)); procedure use_mock(mock_package_name in varchar2, mock_name in varchar2); procedure reset_mock; function find_mock(mock_package_source...
<filename>src/main/resources/sleeve-cms.sql -- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: localhost Database: sleeve -- ------------------------------------------------------ -- Server version 8.0.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_...
<gh_stars>1-10 -- create table books create table books (title VARCHAR(150), author VARCHAR(255), total_pages INTEGER, type VARCHAR(100), summary text, id SERIAL PRIMARY KEY);
<gh_stars>10-100 -- MySQL Workbench Forward Engineering 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...
-- file:interval.sql ln:205 expect:true SELECT interval '123 11' day
<gh_stars>0 /*schema for SQL database bamazon & table products*/ DROP DATABASE IF EXISTS bamazon; /*create a database called bamazon*/ CREATE DATABASE bamazon; /*use the database called bamazon*/ USE bamazon; /*create a table called products*/ CREATE TABLE products( /*unique id for each product*/ item_id INT(11)...
<reponame>seelang2/ClassArchive -- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 18, 2009 at 03:39 PM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
<filename>src/EA.Iws.Database/scripts/Update/0001-Release1/Sprint24/20160104-145200-add-import-in-assessment-status.sql INSERT INTO [Lookup].[ImportNotificationStatus] ( [Id], [Description] ) VALUES (6, 'In assessment'); GO UPDATE [Lookup].[ImportNotificationStatus] SET [Description] = 'Notification received' WHER...
 CREATE FUNCTION [calendar].[sGetActivityInitiatives] (@ActivityId as int) returns varchar(1000) AS BEGIN DECLARE @commaDelimitedString varchar(1000) SELECT @commaDelimitedString= COALESCE(@commaDelimitedString+',' ,'') + CAST([InitiativeId] AS VARCHAR(10)) FROM ActivityInitiatives WHERE ActivityInitiatives.Acti...
<reponame>sqlzdev/surviuswebdev -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-07-2018 a las 21:45:39 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSAC...
{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name='main') %} {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%} {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%} {%- set distributed = config.get('distributed') -%} {...
/** * * @author AB * @public * @name reportQuery */ Select * From MEASURANDS t1 Where :idValue = t1.ID or :idValue is null
<reponame>chalice19/ClickHouse -- Tags: no-fasttest -- Tag no-fasttest: Depends on AWS select * from s3('http://localhost:11111/test/{a,b,c}.tsv') ORDER BY c1, c2, c3; select * from s3('http://localhost:11111/test/{a,b,c}.tsv', 'TSV') ORDER BY c1, c2, c3; select * from s3('http://localhost:11111/test/{a,b,c}.tsv', 'TS...
select * from Server_View select * from servers_and_queues select * from dpc_view exec sp_rem_queue_server_assoc 'zeus','emagicdexrsosender' select * from Server_View where server_name like 'sir%' select server_name from t_server where server_name like 'sir%' select server_name from t_server where active = '1' an...
-- CREATE SCHEMA -- ---------------------------------------------- -- DDL-Anweisungen für Tabellen -- ---------------------------------------------- CREATE TABLE "billingcontact" ( "tkey" BIGINT NOT NULL, "address" VARCHAR(255), "companyname" VARCHAR(255), "email" VARCHAR(255) NOT NULL, "orgaddressused" BOO...
<gh_stars>1-10 CREATE TABLE [dbo].[VehicleLocationTimeHistory] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT newid(), [vehicleId] UNIQUEIDENTIFIER NOT NULL, [driverId] UNIQUEIDENTIFIER NOT NULL, [dateTime] DATETIMEOFFSET NOT NULL, [latitude] NUMERIC(18, 8) NOT NULL, [longitude] NUMERIC...
DROP TABLE apidb.GeneName; DROP SEQUENCE apidb.GeneName_sq; DELETE FROM core.TableInfo WHERE lower(name) = 'genename' AND database_id IN (SELECT database_id FROM core.DatabaseInfo WHERE lower(name) = 'apidb'); exit;
<gh_stars>1000+ SELECT T1.CLASSNAME FROM T1 JOIN T2 ON T1.CLASSNAME=T2.CLASSNAME
<filename>web/xorazmdon.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 28, 2019 at 11:06 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
<gh_stars>0 -- comentario na linguagem de banco de dados - SQL --tabela usuario create table usuario ( id serial primary key, email varchar(100) not null, password varchar(100) ); --inserindo linhas insert into usuario(email, password) values('<EMAIL>', '<PASSWORD>'); insert into usuario(email, password) ...
-- Create Logs DB USE master GO CREATE DATABASE LogsDB GO USE LogsDB GO CREATE TABLE Logs(LogID int NOT NULL PRIMARY KEY IDENTITY, LogDate datetime2(7), LogText nvarchar(100))
/* Navicat MySQL Data Transfer Source Server : DEV Source Server Version : 50711 Source Host : 127.0.0.1:3306 Source Database : quey Target Server Type : MYSQL Target Server Version : 50711 File Encoding : 65001 Date: 2016-06-01 09:09:02 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 20, 2021 at 12:10 PM -- Server version: 8.0.25-0ubuntu0.20.04.1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
/* Warnings: - You are about to drop the `generos` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `jogo` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `userjogos` table. If the table is not empty, all t...
--SELECT [dbo].Func_Hof_Member_Total_Count(23, '<EMAIL>') AS MEMBER_COUNT --SELECT [dbo].Func_Hof_Member_Total_Count(24, '<EMAIL>') AS MEMBER_COUNT IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].Func_Hof_Member_Total_Count') AND type in (N'FN')) DROP FUNCTION [dbo].Func_Hof_Member_Total_Coun...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2019 at 11:56 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- MySQL Workbench Forward Engineering 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema trackdb -...
<reponame>sams134/finca2 # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.4.21-MariaDB) # Database: finca2 # Generation Time: 2022-04-23 23:32:58 +0000 # ********...
/* * immedia db structure * 180608 / 01 */ DROP DATABASE IF EXISTS immedia; CREATE DATABASE IF NOT EXISTS immedia; USE immedia; /* * im_location * Location Searches */ DROP TABLE IF EXISTS im_location; CREATE TABLE im_location ( im_location_id INT NOT NULL AUTO_INCREMENT, PRI...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `continents` ( `code` CHAR(2) NOT NULL COMMENT 'Continent code', `name` VARCHAR(255), PRIMARY KEY (`code`) ) ENGINE=InnoDB; INSERT INTO `continents` VALUES ('AF', 'Africa'), ('AS', 'Asia'), ('EU', 'Europe'), ('NA', 'North America'), ('SA', 'South America'), ('OC...
<gh_stars>1-10 create table if not exists sub_user ( sub_user_id bigint auto_increment comment '主键' primary key, user_id bigint null comment '主账号ID', app_id bigint null comment '所属应用ID', sub_user_flag tinyint null comment '子账号标志信息', sub_user_no varchar(255) null comment '子账号真实ID', sub_user_name varchar(255) nul...
<filename>db/migrations/20210526073104-seed_accounts.sql<gh_stars>1-10 -- +migrate Up INSERT INTO accounts ( account_number, customer_number, balance ) VALUES ( 555001, 1001, 10000 ), ( 555002, 1002, 15000 ); -- +migrate Down DELETE FROM acco...
<gh_stars>1-10 create table play_logs ( id int auto_increment primary key, game_name varchar(50) null, play_log_id varchar(20) null, winner varchar(50) null, usernames varchar(20000) charset utf8 null, timestamp varchar(50) null );
<filename>Chapter02/SQL/fctOrder.View.sql<gh_stars>1-10 /* Database: WideWorldImportersDW View: BI.fctOrder */ CREATE OR ALTER VIEW BI.fctOrder AS SELECT [Order Key] ,[City Key] ,[Customer Key] ,[Stock Item Key] ,[Order Date Key] ,[Picked Date Key] ,[Salesperson Key] ...
-- file:updatable_views.sql ln:1223 expect:true delete from uv_iocu_view
<filename>sql/downgrade_from_3_0_0.sql ALTER TABLE queue_classic_jobs DROP COLUMN locked_by; ALTER TABLE queue_classic_jobs DROP COLUMN created_at;
<reponame>RyosukeMurai/craftal # User schema # --- !Ups create table `role` ( `id` TINYINT UNSIGNED NOT NULL PRIMARY KEY, `name` ENUM('管理者', 'イベンター', '作家', '会員') NOT NULL, `code` ENUM('administrator', 'eventer', 'artist', 'member') NOT NULL, UNIQUE (code) ); create table `user_role` ( `id` INT UNSIGNED NOT ...
<filename>hasura/migrations/carnet_de_bord/1637072464419_alter_table_public_structure_add_unique_name_deployment_id/up.sql alter table "public"."structure" drop constraint "structure_name_key"; alter table "public"."structure" add constraint "structure_name_deployment_id_key" unique ("name", "deployment_id");
INSERT INTO `c_configuration` (`name`, `value`, `enabled`) VALUES ('age_limit_for_senior_citizen', 65, 1); INSERT INTO `c_configuration` (`name`, `value`, `enabled`) VALUES ('age_limit_for_children', 15, 1); ALTER TABLE `m_interest_rate_slab` ADD COLUMN `interest_rate_for_female` DECIMAL(19,6) NULL AFTER `annual_int...
<gh_stars>100-1000 INSERT INTO o2o_setup VALUES ('<OBJECT>', '<SCHEMA>', '<TOP_TABLE>');
ALTER TABLE "selfservice_registration_flows" RENAME COLUMN "internal_context" TO "_internal_context_tmp";
UPDATE `#__cck_core_fields` SET `options` = '_=0||Alter Original Table=1||Alter Original Field=2' WHERE `id` = 192;
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 20, 2021 at 02:29 PM -- Server version: 10.3.31-MariaDB-log-cll-lve -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<filename>data/mireavn.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2021 at 04:15 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
<gh_stars>0 DROP TABLE IF EXISTS example; CREATE TABLE example ( id INT AUTO_INCREMENT PRIMARY KEY, content VARCHAR(250) NOT NULL, insert_date date NOT NULL ); INSERT INTO example (content, insert_date) VALUES ('Example 01', CURRENT_DATE); INSERT INTO example (content, insert_date) VALUES ('Example 02', CURRE...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 18, 2020 at 10:35 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>SachiraChin/Vulcan CREATE TABLE [auth].[TimeZones] ( [Id] INT NOT NULL, [Value] VARCHAR(64) NOT NULL, [Abbr] VARCHAR(64) NOT NULL, [Offset] INT NOT NULL, [Isdst] BIT NOT NULL, [Text] VARCHAR(128) NOT NULL, constraint PK_TimeZone_ID primary key([Id]) )
if dbo.fnIndexExists('Metadata', 'Metadata_OwnerId') = 0 begin create index Metadata_OwnerId on Metadata(OwnerId) end
create table returns ( id serial primary key, reference_number reference_number not null unique, order_id integer not null references orders(id) on update restrict on delete restrict, order_ref text not null references orders(reference_number) on update restrict on delete restrict, return_type retur...
-- file:aggregates.sql ln:379 expect:true select array_agg(b order by a desc) from (values (1,4),(2,3),(3,1),(4,2)) v(a,b)
TRUNCATE TABLE "users", "address", "group", "review", "protected_review_log", "notification", "persistence_log", "company_own_request", "company_owner", "company" RESTART IDENTITY; INSERT INTO company(id, name, domain, company_size_id, it_size_id, logo_path, created_at, created_...
DROP TABLE IF EXISTS `skill_discovery_template`; CREATE TABLE `skill_discovery_template` ( `spellId` int(11) unsigned NOT NULL default '0' COMMENT 'SpellId of the discoverable spell', `reqSpell` int(11) unsigned NOT NULL default '0' COMMENT 'spell requirement', `chance` float NOT NULL default '0' COMMENT 'chance ...
drop table AppleTable if exists; create table AppleTable ( My_aaa decimal(10), My_Id int not null, My_Name varchar(20), My_Date date, My_Timestamp timestamp, My_Decimal155 decimal(15, 5), primary key (My_Id) ); comment on table AppleTable is 'xxx表'; comment on column Ap...
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/table/table461.sql //// CHANGE name=change0 CREATE TABLE table461 ( id integer NOT NULL, field1 character varying(30), usertype0field usertype0, usertype4field usertype4, usertype7field usertype7 ); GO //// CHANGE name=change1 ALTER ...
-- Renaming new Materialised View Index 2/4 ALTER INDEX space_time_view_time_idx_new RENAME TO space_time_view_time_idx
SELECT CNTRYCODE, COUNT(*) AS NUMCUST, SUM(C_ACCTBAL) AS TOTACCTBAL FROM ( SELECT SUBSTR(C_PHONE, 1, 2) AS CNTRYCODE, C_ACCTBAL FROM TPCH.CUSTOMER WHERE SUBSTR(C_PHONE, 1, 2) IN ('13', '31', '23', '29', '30', '18', '17') AND C_ACCTBAL > ( SELECT AVG(...
<reponame>MCZbase/DDL<filename>TABLE/CF_DATAENTRY_SETTINGS.sql CREATE TABLE "CF_DATAENTRY_SETTINGS" ( "USERNAME" VARCHAR2(60 CHAR) NOT NULL ENABLE, "CAT_NUM" NUMBER(1,0) DEFAULT 2, "OTHER_ID_NUM_5" NUMBER(1,0) DEFAULT 2, "OTHER_ID_NUM_TYPE_5" NUMBER(1,0) DEFAULT 2, "OTHER_ID_NUM_1" NUMBER(1,0) DEFAULT 2,...
<gh_stars>10-100 select ret1.ITEM_ID, ret1.ACH_COUNT from (select a1.ITEM_ID ITEM_ID, sum(a1.ITEM_ID) ACH_COUNT from (select r.ITEM_ID from CRECORD r, (select * from CEMPLOYEE where HIRE_DATE = (select min(HIRE_DATE) MIN_DATE from CEMPLOYEE)) h1 where r.EMP_ID = h1.EMP_ID and r.ITEM_ID = '01' ) a1 g...
CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french ); ALTER TEXT SEARCH CONFIGURATION fr ALTER MAPPING FOR hword, hword_part, word WITH unaccent, french_stem; CREATE FUNCTION geoshop.update_product_tsvector() RETURNS trigger LANGUAGE 'plpgsql' COST 100 VOLATILE NOT LEAKPROOF AS $BODY$ ...
<filename>!DATABASE/av-maps.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 24 2021 г., 05:45 -- Версия сервера: 8.0.19 -- Версия PHP: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>1-10 --TEST: test with columns with numeric --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table wb_numeric( col1 int not null, col2 short auto_increment, col3 bigint default 10000000, col4 numeric(10, 5) not null, col5 float unique, col6 double primary key, col7 monetary s...
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t (id int, a varchar(20)); create index i_t_all on t(id,a); insert into t values (1, 'dbms qa1 part'); insert into t values (2, 'dbms qa2 part'); insert into t values (3, 'dbms qa2 part'); insert into ...
<filename>openGaussBase/testcase/SQL/DML/upsert/Opengauss_Function_DML_Upsert_Case0069.sql -- @testpoint:创建表指定其中一列是主键并定义数据类型是序列型,使用insert...update语句并添加关键字EXCLUDED --预置条件enable_upsert_to_merge为off drop table if exists course_01; --建表,指定一列是主键 create table course_01 (id serial primary key, name varchar(50) ); --常规插入一条数据,...
<gh_stars>0 CREATE TABLE [Owners] ( [OwnerID] int NOT NULL IDENTITY, [OwnerName] nvarchar(max) NULL, [NetWorth] int NOT NULL, CONSTRAINT [PK_Owners] PRIMARY KEY ([OwnerID]) ); GO CREATE TABLE [Players] ( [PlayerID] int NOT NULL IDENTITY, [PlayerName] nvarchar(max) NULL, [AgentID] int NULL...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 25, 2021 at 11:58 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 19, 2020 at 08:04 AM -- Server version: 5.6.49-cll-lve -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
INSERT INTO login (email, password, first_name, last_name) VALUES('admin','$6$rounds=50000$bnRw66ofVOWEqw==$WFXlwWsePKbbC3443nltGu9kPWZgF0.gfCI6lEkMwitsUciOJS9PkqnYMPlMIg699cWlg/EuVvwgI/at2PFNG.', 'System', 'Administrator');
<filename>src/main/resources/db/migration/mysql/V3__cria_tabela_lancamento.sql<gh_stars>0 -- -- Table structure for table `lancamento` -- --DROP TABLE IF EXISTS `lancamento`; CREATE TABLE IF NOT EXISTS `lancamento` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `data` datetime NOT NULL, `data_atualizacao` datetime N...
-- ---------------------------- -- Records of article -- ---------------------------- BEGIN; INSERT INTO `article` VALUES (1, 0, 1, 'vjvu', '', 'Vjvu yutq ymafjsjp crimmjl totuokkd demfexbi siewiw ullt nysqepu oqniupccmk dvchnh eowir nirujjr kxpyhtrcq qmuppfx.', 4365, '[{\"name\":\"food.jpeg\",\"url\":\"https://fuss10...
<filename>qurandb/migrations/1613350756660_16th_data_seed/up.sql<gh_stars>0 Insert INTO word_data (word_id, word_surah, word_ayah, word_page, word_number_in_quran, word_number_in_surah, word_number_in_ayah, word_type, word_arabic, word_transliteration, word_translation) VALUES (9722, 3, 171, 72, 9078, 2933, 1, 'word', ...
BEGIN TRY BEGIN TRAN -- SQL HERE ! COMMIT TRAN END TRY BEGIN CATCH DECLARE @ErrorMessage NVARCHAR(4000); DECLARE @ErrorSeverity INT; DECLARE @ErrorState INT; SELECT @ErrorMessage = ERROR_MESSAGE() , @ErrorSeverity = ERROR_SEVERITY() , @Er...
CREATE VIEW vwConsultorios_SeleccionarTodos AS SELECT * FROM Consultorios WHERE Activo = 1
<reponame>censusreporter/census-postgres<gh_stars>10-100 SET search_path = acs2010_spt; CREATE TABLE seq0001 ( fileid varchar(6), filetype varchar(6), stusab varchar(2), chariter varchar(3), seq varchar(4), logrecno int, B01001001 double precision, B01001002 double precision, B01001003 double precision, ...
SELECT users.id, users.name, posts.description FROM posts INNER JOIN users ON users.id = posts.user_id; SELECT posts.description as post, text as comment, name FROM posts INNER JOIN comments ON posts.id = comments.post_id INNER JOIN users ON users.id = comments.user_id; SELECT ...
CREATE TABLE IF NOT EXISTS sagas_store ( id UUID, identifier_class VARCHAR NOT NULL, saga_class VARCHAR NOT NULL, payload BYTEA NOT NULL, state_id VARCHAR NOT NULL, created_at TIMESTAMP NOT NULL, expiration_date TIMESTAMP NOT NULL, closed_at TIMESTAMP, CONSTRAINT saga_identifier PRIM...
<filename>databases/schemas/ddl/enstoredb/enstoredb_views.sql<gh_stars>1-10 -- -- Name: cms_volume_with_only_deleted_files; Type: VIEW; Schema: public; Owner: enstore -- CREATE VIEW cms_volume_with_only_deleted_files AS SELECT volume.label, volume.storage_group, volume.file_family, volume.system_inhibit_1 AS stat...
DELETE FROM `spell_proc_event` WHERE `entry` IN ( 11255, 12598 ); INSERT INTO `spell_proc_event` VALUES (11255,0,0,0,3,16384,16384,0), (12598,0,0,0,3,16384,16384,0); DELETE FROM `spell_proc_event` WHERE `entry` IN ( 17793, 17796, 17801, 17802, 17803 ); INSERT INTO `spell_proc_event` VALUES (17793,0,0,593,5,1,65536,0),...
<filename>create.sql CREATE DATABASE apis; \c apis; CREATE TABLE departments ( id SERIAL PRIMARY KEY , departmentname VARCHAR, description VARCHAR, numberofemployees VARCHAR ); CREATE TABLE news ( id SERIAL PRIMARY KEY , content VARCHAR, description VARCHAR, departmentid INTEGER ); CREATE TABLE users ( id SERIAL ...
### 验证是否为超级管理员, 超级管理员的 roleId 值为固定为 1 #sql("isSuperAdmin") select accountId from account_role where accountId = #para(0) and roleId = 1 limit 1 #end ### 验证是否拥有某个 role #sql("hasRole") select ar.accountId from account_role ar inner join role r on ar.roleId = r.id where ar.accountId = #para(accountId) and ( #fo...
<reponame>Apollo1207/jdbc-hibernate-project-db-lab-4-5 CREATE DATABASE IF NOT EXISTS `fedyniak_illya_db` DEFAULT CHARACTER SET utf8; USE `fedyniak_illya_db`; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `fedyniak_illya_db`.`received_call`; DROP TABLE IF EXISTS `fedyniak_illya_db`.`person_information_report`; D...
<reponame>leongold/ovirt-engine insert into event_map (event_up_name, event_down_name) values ('VDS_ACTIVATE_MANUAL_HA', 'UNASSIGNED'); insert into event_map (event_up_name, event_down_name) values ('CLUSTER_ALERT_HA_RESERVATION_DOWN', 'UNASSIGNED');
CREATE VIEW d_testdev.myview1 AS SELECT * FROM sqlrunner.test_data;
<gh_stars>1-10 --====================================================== -- -- Author: <NAME> -- Usage: Script creates a procedure single_II_test. In order to run/test the procedure use the run.sql script that can be found in the same directory of the project. -- Database system supported/tested: SQL Server 2016 -- URL ...
<reponame>tuukkalahti/WebAPI<filename>src/main/resources/db/migration/oracle/V2.8.0.20191203200000__generation-cache-updates.sql ALTER TABLE ${ohdsiSchema}.generation_cache DROP CONSTRAINT uq_gc_result; ALTER TABLE ${ohdsiSchema}.generation_cache DROP COLUMN result_identifier; ALTER TABLE ${ohdsiSchema}.generation_cach...