sql
stringlengths
6
1.05M
create table department ( id int auto_increment primary key, name varchar(150) not null ); create table person ( id int auto_increment primary key, first_name varchar(150) not null, last_name varchar(150) null, department_id int null, constraint ...
<filename>SQL/structure/01/12/04-Prospection.sql #------------------------------------------------------------------------------ # Table des prospections #------------------------------------------------------------------------------ CREATE TABLE `game_ressource_prospection` ( `id` int(11) NOT NULL AUTO_I...
<filename>src/EA.Iws.Database/scripts/Update/0001-Release1/Sprint25/20160114-143700-add-unlocked-status.sql INSERT INTO [Lookup].[NotificationStatus] ( [Id], [Description] ) VALUES (12, 'Change required');
use studyin; CREATE TABLE `HUJI` ( `SFZH` varchar(50 ), `MINZU` varchar(20 ), `ZHUZHI1` varchar(100 ), `ZHUZHI2` varchar(100 ), `QIXIAN1` varchar(20 ), `QIXIAN2` varchar(30 ), `JIGUAN` varchar(100 ), `TIME` DATE, PRIMARY KEY (`SFZH`), UNIQUE KEY `ordinal_UNIQUE` (`SFZH`) ) ENGINE=InnoDB DEFAUL...
<filename>chapter_007/data/shop.sql --drop table type CASCADE; --drop table product CASCADE; /* CREATE TABLE type( id serial primary key, name varchar(2000) ); CREATE TABLE product( id serial primary key, name varchar(2000), type_id integer references type(id), expired_date timestamp, price integer, quantity...
# --- !Ups create table "elements" ("id" BIGSERIAL NOT NULL PRIMARY KEY,"path" VARCHAR(254) NOT NULL,"category" INTEGER NOT NULL,"explicit" BOOLEAN NOT NULL,"level" INTEGER NOT NULL,"inchallenge" BOOLEAN NOT NULL,"user_id" BIGINT NOT NULL); create unique index "IDX_PATH" on "elements" ("path"); create table "users" ("...
update vds_static set ssh_username='root' where ssh_username is null; update vds_static set ssh_port=22 where ssh_port is null;
DROP FUNCTION IF EXISTS sales.refresh_materialized_views(_user_id integer, _login_id bigint, _office_id integer, _value_date date); CREATE FUNCTION sales.refresh_materialized_views(_user_id integer, _login_id bigint, _office_id integer, _value_date date) RETURNS void AS $$ BEGIN REFRESH MATERIALIZED VIEW f...
<reponame>ashlyrclark/docs.particular.net startcode CreateQueueTextSql IF EXISTS ( SELECT * FROM {1}.sys.objects WHERE object_id = OBJECT_ID(N'{0}') AND type in (N'U')) RETURN EXEC sp_getapplock @Resource = '{0}_lock', @LockMode = 'Exclusive' IF EXISTS ( SELECT * FROM {1}.sys...
alter table `drop` add column partially_imported bit not null default false; alter table translation_kit add column imported bit not null default false;
-- -- List SQL plan baselines -- column enabled format a10 column sql_text format a70 column plan_name format a40 column sql_handle format a25 column accepted format a10 column signature format 999999999999999999999999 set linesize 200 SELECT sql_text,sql_handle, plan_name, signature FROM dba_sql_plan_baselines ord...
<filename>openGaussBase/testcase/KEYWORDS/read/Opengauss_Function_Keyword_Read_Case0021.sql -- @testpoint:opengauss关键字read(非保留),作为函数名 --关键字不带引号-成功 drop function if exists read; create function read(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / drop function read; --关键字带双引号-成功 drop...
<filename>SQLQuery (Stored Procedure Custom Report).sql<gh_stars>0 GO CREATE PROCEDURE ClientDateDeliveredSearch (@Char VARCHAR(20), @BeginDate DATETIME, @EndDate DATETIME) AS BEGIN SELECT HR.HaulRecordID, HR.Client, HM.Item, HM.ItemDescription, HR.DateDelivered, D.DriverID, T.TruckID FROM HaulRecord AS H...
ALTER TABLE `item` DROP FOREIGN KEY `fk_item_4`; ALTER TABLE `item` ADD CONSTRAINT `fk_item_4` FOREIGN KEY (`grading_policy_id`) REFERENCES `grading_policy` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
drop table if exists `window1`; create table `window1` ( `id` char(4) not null UNIQUE, `cat` char(4) not null, `date` date not null, `val` int not null, key `index1` (`id`, `cat`) ); insert into `window1` values ('0001', 'a001', '2021-05-01', 1000), ('0002', 'b001', '2020-03-01', 1200), ...
--01. Examine the Databases --Download and get familiar with the SoftUni, Diablo and Geography database schemas and tables. --You will use them in the current and following exercises to write queries.
DROP VIEW Report CASCADE; DROP FUNCTION api.add_report(uuid, uuid, uuid, uuid, text, text, text, jsonb); DROP FUNCTION api.update_report(uuid, uuid, uuid, uuid, uuid, text, text, text, jsonb); DROP FUNCTION CreateReport(uuid, uuid, uuid, uuid, text, text, text, jsonb); DROP FUNCTION EditReport(uuid, uuid, uuid, uuid,...
CREATE DATABASE IF NOT EXISTS `addressbook` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `addressbook`; -- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686) -- -- Host: localhost Database: addressbook -- ------------------------------------------------------ -- Server version 5.5.29-0ubuntu0.12.10.1 /...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600350',@CutoffDate = N'2017-09-30',@EPS = N'0.553',@EPSDeduct = N'0',@Revenue = N'51.72亿',@RevenueYoy = N'9.40',@RevenueQoq = N'4.15',@Profit = N'26.61亿',@ProfitYoy = N'8.03',@ProfiltQoq = N'98.98',@NAVPerUnit = N'5.5358',@ROE = N'10.30',@CashPerUnit = N'0.4981',@GrossProfitRate = ...
CREATE DATABASE `gatorbarter`; USE `gatorbarter`; CREATE TABLE `user` ( `u_id` bigint NOT NULL AUTO_INCREMENT, `u_email` varchar(128) NOT NULL, `u_pass` TEXT(256) NOT NULL, `u_is_admin` int NOT NULL DEFAULT '0', `u_created_ts` TIMESTAMP NULL DEFAULT NULL, `u_updated_ts` TIMESTAMP NULL DEFAULT NULL, `u_fname` va...
-- Update addresses to adhere to OSM's style. -- This is largely based on http://git.io/qM401g drop table if exists addresses_final; -- Create a new intermediate table from our exiting addresses table so we can -- alter the columns and values without mutating our "clean" data. create temporary table addresses_intermed...
<filename>data/open-source/extracted_sql/18F_C2.sql UPDATE gsa18f_procurements SET purchase_type = 0 WHERE purchase_type IS NULL UPDATE steps SET status = completed WHERE status = approved UPDATE versions SET item_type = Steps WHERE item_type = Approval UPDATE users SET timezone=Eastern WHERE timezone = UTC UPDATE g...
INSERT INTO mytable VALUES (%s, %s, %s) SELECT * FROM thingrel INSERT INTO test_fetch VALUES(%s) insert into table1 values (%s) SELECT * FROM test_oid WHERE oid = %s INSERT INTO t VALUES (%(foo)s) select oid from pg_type where typname = 'json' insert into invname values (%s) INSERT INTO table1 VALUES (1, 'hello') inser...
-- Deposit Procedure CREATE PROC p_Deposit @AccountId INT, @Amount DECIMAL(15, 2) AS UPDATE Accounts SET BALANCE += @Amount WHERE Id = @AccountId -- Executing Procedure EXEC p_Deposit 1, 25
<filename>Security/WebSecurityExample-N03/src/main/resources/script.sql create database securityrealm; use securityrealm; create table users ( user_name varchar(15) not null primary key, user_pass varchar(15) not null ); create table user_roles ( user_name varchar(15) not null...
<reponame>fbb-oc/sqlfluff<filename>test/fixtures/dialects/postgres/postgres_create_table.sql -- Test qualifying datatype with schema CREATE TABLE counters ( my_type public.MY_TYPE ); --CREATE TABLE films ( -- code char(5) CONSTRAINT firstkey PRIMARY KEY, -- title varchar(40) NOT NULL, -- did ...
select * from ( select "Country", RANK() OVER( order by "id" ) rank /* rank column name */ FROM public.view_table_first where "Country" = 'India' ) src /* sub query alias */ where rank > 1; /* ranks to consider */
<reponame>rogeruiz/tick CREATE TABLE timers ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, start_time INTEGER NOT NULL, end_time INTEGER NOT NULL DEFAULT 0, start_entry TEXT NOT NULL DEFAULT '', end_entry TEXT NOT NULL DEFAULT '', running INTEGER NOT NULL DEFAULT 0 )
<gh_stars>10-100  USE [MDS] GO /****** Object: UserDefinedFunction [dbo].[f_FA_UID2] Script Date: 5/15/2015 4:38:12 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[f_FA_UID2] ( @Code varchar(MAX), @Num varchar(MAX) ) RETURNS varchar(MAX) AS BEGIN RETURN replace(upper(@Code)+'...
<gh_stars>1-10 CREATE TABLE [Integration].[TransactionType_Staging] ( [Transaction Type Staging Key] INT IDENTITY (1, 1) NOT NULL, [WWI Transaction Type ID] INT NOT NULL, [Transaction Type] NVARCHAR (50) NOT NULL, [Valid From] DATETIME2 (7) NOT NUL...
<filename>lab_08/src/query.sql<gh_stars>1-10 \c dbcourse CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; DROP TABLE IF EXISTS shops_logs; CREATE TABLE shops_logs( id UUID PRIMARY KEY DEFAULT uuid_generate_v4() , filename TEXT NOT NULL , contents TEXT );
-- file:rowsecurity.sql ln:710 expect:true CREATE POLICY p2 ON document FOR INSERT WITH CHECK (dauthor = current_user)
<reponame>seelang2/ClassArchive CREATE TABLE IF NOT EXISTS `c_messages` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `comment_timestamp` bigint(20) unsigned NOT NULL DEFAULT '0', `comment` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET...
-- load sat.channel tables COPY stns.countyclustwfo (wfo, clustername, cntyfipscode) FROM stdin; AKQ Southampton+Franklin,VA 51175+51620 AKQ Hampton+Newport_News,VA 51650+51700 AKQ Prince_George+Hopewell,VA 51149+51670 AKQ York+Poquoson,VA 51199+51735 AKQ Henrico+Richmond,VA 51087+51760 AKQ James_City+Williamsburg,VA ...
-- Adminer 4.6.3 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `bbq`; CREATE DATABASE `bbq` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `bbq`; DROP TABLE IF EXISTS `accesstoken_log`; CREATE TABLE `accesstoken_log` ( ...
<reponame>kkrakovych/database-maven-plugin start transaction; insert into deploy$scripts ( build_version , build_timestamp , script_directory , script_name , script_checksum , script_start_timestamp , script_finish_timestamp , deploy_status ) values ( 'test' , to...
create database if not exists shard_0; create database if not exists shard_1; drop table if exists dist_01850; drop table if exists shard_0.data_01850; create table shard_0.data_01850 (key Int) engine=Memory(); create table dist_01850 (key Int) engine=Distributed('test_cluster_two_replicas_different_databases', /* de...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50553 Source Host : localhost:3306 Source Database : evo_maa Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-02-28 21:35:56 */ SET FOREIGN_KEY_CHECKS=0; -- -...
--- pg_window table --- \echo -- start_ignore select * from pg_window; \echo -- end_ignore
<filename>db/MyDB_SQL.sql /* SQLyog v10.2 MySQL - 5.6.21-log : Database - ebdb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_K...
--check lock release after semantic error create class a ( a int primary key ); select * from a where a = 'a'; insert into a values(1); select * from a; drop a;
<filename>openGaussBase/testcase/KEYWORDS/Command_Function/Opengauss_Function_Keyword_Command_Function_Case0034.sql<gh_stars>0 -- @testpoint: opengauss关键字command_function(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists command_function_test cascade; create table command_function_test(cid int,fid int); --关键字不带引号-成功 s...
<gh_stars>0 CREATE TABLE foo ( bar text NOT NULL ); CREATE TABLE bar ( baz text NOT NULL ); SELECT bar FROM foo; DROP TABLE bar; DROP TABLE IF EXISTS bar; DROP TABLE IF EXISTS baz; CREATE TABLE baz (name text); ALTER TABLE baz ADD COLUMN email text;
-- -- PGVER install script -- -- Can be executed multiple times -- CREATE SCHEMA IF NOT EXISTS pgver; -------------------------------------------------------------------------------- DO $BODY$ -- -- Create functional role -- BEGIN IF NOT EXISTS ( SELECT -- SELECT list can stay empty for th...
<filename>calendso/prisma/migrations/20211229155442_scheduling_groups_candidates_fixes/migration.sql /* Warnings: - You are about to drop the column `pac` on the `SchedulingGroupsCandidates` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "SchedulingGroupsCandidates" DROP COLUMN "pac"...
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: mkm_test -- ------------------------------------------------------ -- Server version 5.6.49-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : laravel Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 1...
/* Warnings: - You are about to drop the `UsersRoles` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE `UsersRoles` DROP FOREIGN KEY `UsersRoles_roleId_fkey`; -- DropForeignKey ALTER TABLE `UsersRoles` DROP FOREIGN KEY `UsersRoles_userId_fkey`; -- DropTab...
CREATE DATABASE IF NOT EXISTS ps-api
-- #Table: Employees -- # -- # -- #+-------------+----------+ -- #| Column Name | Type | -- #+-------------+----------+ -- #| employee_id | int | -- #| name | varchar | -- #| reports_to | int | -- #| age | int | -- #+-------------+----------+ -- #employee_id is the primary key for th...
<gh_stars>10-100 -- file:jsonb.sql ln:675 expect:true select * from jsonb_to_record('{"ia": [1, "2", null, 4]}') as x(ia _int4)
<reponame>gmrodgers/bosh<filename>src/spec/assets/upgrade/bosh-v264.8-c2b5bf268ea6420e4a3f1f657dc45b7db3720216/mysql_db_snapshot.sql -- MySQL dump 10.13 Distrib 5.7.20, for osx10.13 (x86_64) -- -- Host: localhost Database: <KEY> -- ------------------------------------------------------ -- Server version 5.7.20 /*!...
-- View: de_metas_purchasecandidate.C_PurchaseCandidate_Enqueued -- DROP VIEW de_metas_purchasecandidate.C_PurchaseCandidate_Enqueued; CREATE OR REPLACE VIEW "de_metas_purchasecandidate".C_PurchaseCandidate_Enqueued AS SELECT wp.c_queue_workpackage_id, wp.processed AS wp_processed, wp.iserror AS wp_e...
select descripcion, valor from pagos_detalle where id_pago = :idPago
CREATE TABLE PUB_MSG_CHANNEL_APP ( ID VARCHAR2(32 CHAR) NOT NULL , CODE VARCHAR2(4 CHAR) NOT NULL , APP_NAME VARCHAR2(50 CHAR) NOT NULL , CHANNEL_CODE VARCHAR2(2 CHAR) NOT NULL , ACCESS_KEY_ID VARCHAR2(100 CHAR) NOT NULL , ACCESS_KEY_SECRET VARCHAR2(200 CHAR) NOT NULL , CREATE_TIME TIMESTAMP(6) NOT NULL...
<gh_stars>100-1000 DELIMITER ;; DROP FUNCTION IF EXISTS simpleFunction;; CREATE FUNCTION simpleFunction() RETURNS varchar(100) READS SQL DATA begin declare message varchar(100) default 'Hello Word'; return message; end ;; DELIMITER ; select simpleFunction();
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 */; /*!40101 SET NAMES utf8mb4 */; -- -- Datenbank: `f...
<filename>Database/raja_kost.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 16, 2020 at 03:34 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 8/17/2018 7:33:53 PM */ /*==============================================================*/ drop table if exists BARANG_HPEMBELIAN; drop tabl...
CREATE DATABASE `snnbot` /*!40100 DEFAULT CHARACTER SET latin1 */; CREATE TABLE `snnbot.proxy` ( `id` varchar(255) NOT NULL, -- full proxy string `country` varchar(45) DEFAULT NULL, `scheme` varchar(45) DEFAULT NULL, `ip` varchar(45) DEFAULT NULL, `port` varchar(45) DEFAULT NULL, `__from` varchar(255) DEFA...
/* -------------------------------------------------------------------------- */ /* Create DB */ /* -------------------------------------------------------------------------- */ -- Used to create DB -- DROP DATABASE IF EXISTS moniker_db; CREAT...
SELECT e.`department_id`, MIN(e.`salary`) AS 'minimum_salary' FROM `employees` AS e WHERE e.`department_id` IN(2, 5, 7) AND e.`hire_date` > '2000/01/01' GROUP BY e.`department_id` ORDER BY e.`department_id`;
DROP TABLE vacaciones; DROP TABLE observaciones; DROP TABLE decreto; DROP TABLE hijo; DROP TABLE horas_extras; DROP TABLE francos_ganados; DROP TABLE conyuge; DROP TABLE licencia; DROP TABLE empleado; \i ~/dev/personal/db/empleado.sql \i ~/dev/personal/db/licencia.sql \i ~/dev/personal/db/conyuge.sql \i ~/dev/personal...
insert into tStaticEntity values ('Domain') insert into tStaticEntity values ('Groupe') insert into tStaticEntity values ('Mail') insert into tStaticEntity values ('Pseudo')
DROP TABLE IF EXISTS `admins`; CREATE TABLE `admins` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', `loginname` char(255) NOT NULL COMMENT '管理员用户名', `realname` char(255) NOT NULL COMMENT '管理员真实名称', `password` char(255) NOT NULL COMMENT '<PASSWORD>', `slat` char(255) NOT NULL COMMENT '管理员密码盐值', `ema...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Jun 04, 2021 at 04:51 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
SET SQL_SAFE_UPDATES = 0; delete FROM heat.event; delete FROM heat.resource; delete FROM heat.stack;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 20, 2020 at 08:57 PM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : Mysql_local Source Server Version : 50621 Source Host : localhost:3306 Source Database : sedan Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2016-03-21 10:17:05 */ SET FOREIGN_KEY_CHE...
--- Filter Settings schema # --- !Ups CREATE TABLE filter_settings ( guild_id BIGINT NOT NULL CONSTRAINT filter_settings_pkey PRIMARY KEY CONSTRAINT filter_settings_bot_instances_guild_id_fk REFERENCES bot_instances ON UPDATE CASCADE ON DELETE CASCADE, caps_filter_enabled BOOLEA...
<gh_stars>0 -- CreateTable CREATE TABLE "Review" ( "id" SERIAL NOT NULL, "userId" INTEGER NOT NULL, "showId" INTEGER NOT NULL, "rating" INTEGER, "title" TEXT, "content" TEXT, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, CONSTRAINT "...
<reponame>Control-Alt-Sistemas/sqlserver-kit /* <documentation> <summary>Get memory for all objects in all databases</summary> <returns>Temp table #obd with memory consumption by objects</returns> <created>2019-08-02 by <NAME></created> <modified>2020-02-05 by <NAME></modified> <version>1.2</version> ...
{#-- Cloned from https://github.com/dbt-labs/dbt-utils/blob/a7290442b401cdfb930d1f527cb9782022d867d9/macros/schema_tests/relationships_where.sql#} {% macro test_relationship_where(model, column_name, to, field, from_condition="1=1", to_condition="1=1") %} select left_table.id, right_table.id as right...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 27, 2019 at 02:21 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2021 at 08:55 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 INSERT INTO `player_factionchange_items` (`race_A`, `alliance_id`, `commentA`, `race_H`, `horde_id`, `commentH`) VALUES ('0', '47711', 'Girdle of the Nether Champion', '0', '47870', 'Belt of the Nether Champion');
USE [EdenSSO-STG] SELECT OMB.* FROM dbo.UserProfile UPR LEFT JOIN dbo.UserMembership UMB ON UMB.UserId = UPR.UserId LEFT JOIN dbo.OrganisationMembership OMB ON OMB.UserId = UPR.UserId LEFT JOIN dbo.Organisation ORG ON ORG.OrganisationId = OMB.OrganisationId WHERE UPR.Email = '<...
<reponame>balsa-project/balsa<filename>queries/join-order-benchmark-extended/e12a.sql<gh_stars>0 SELECT n.name FROM title AS t, name AS n, cast_info AS ci, movie_info AS mi, info_type AS it1, info_type AS it2, person_info AS pi WHERE t.id = ci.movie_id AND t.id = mi.movie_id ...
<filename>resources/3dcitydb/postgresql/SQLScripts/MIGRATION/V2_to_V4/DROP_DB_V2.sql -- 3D City Database - The Open Source CityGML Database -- http://www.3dcitydb.org/ -- -- Copyright 2013 - 2019 -- Chair of Geoinformatics -- Technical University of Munich, Germany -- https://www.gis.bgu.tum.de/ -- -- The 3D City Dat...
EXEC tSQLt.NewTestClass 'RemoveAssemblyKeyTests'; GO CREATE PROCEDURE RemoveAssemblyKeyTests.RemoveKeyTestUser AS BEGIN DECLARE @cmd NVARCHAR(MAX); SET @cmd = 'IF(SUSER_ID(''RemoveAssemblyKeyTestsUser1'')) IS NOT NULL DROP LOGIN RemoveAssemblyKeyTestsUser1;'; EXEC master.sys.sp_executesql @cmd; SET @cmd = 'IF(S...
-- af.group -- CREATE TABLE af.f_group ( id BIGSERIAL NOT NULL, group_id CHARACTER VARYING NOT NULL, priority BIGINT NOT NULL, template_id CHARACTER VARYING NOT NULL, CONSTRAINT f_group_pkey PRIMARY KEY (id), CONSTRAINT f_group_uniq_group_template UNIQUE (group_...
BEGIN; CREATE EXTENSION tinyint SCHEMA public; CREATE EXTENSION sys_syn; CREATE SCHEMA user_data AUTHORIZATION postgres; CREATE TABLE user_data.test_table ( test_table_id integer NOT NULL, test_table_text varchar(255), test_table_date date, test_table_datetime timestamp with time ...
-- ETF distribution is the same as underlying source table -- Should not have redistribution motion, except for SCATTER RANDOMLY -- Table t1 is distributed by column a -- Table t3 is distributed by columns a and e -- Table t4 is distributed randomly DROP TABLE IF EXISTS t3; CREATE TABLE t3 (a int, b int, c int...
-- -- The contents of this file are subject to the license and copyright -- detailed in the LICENSE and NOTICE files at the root of the source -- tree and available online at -- -- http://www.dspace.org/license/ -- ------------------------------------------------------ -- DS_3378 Lost oracle indexes ------------------...
SELECT 'All Reviewers' AS `Group`, IFNULL(FORMAT(SUM(aa.weight), 0), '-') AS `Total Risk`, IFNULL(FORMAT(AVG(aa.weight), 2), '-') AS `Average Risk`, FORMAT(COUNT(*), 0) AS `Add-ons Reviewed` FROM `reviewer_scores` `rs` LEFT JOIN `editors_autoapprovalsummary` `aa` ON `aa`.`version_id` = `rs`.`versio...
comment on column "schedule"."Continuation"."fromShuffleRoom" is E'A continuation from the end of an event or shuffle room to the next thing. Enables organisers to create a guided flow for attendees. It is possible to specify multiple continuations from the same point, giving attendees a choice of where to go.'; alter ...
-- @testpoint:opengauss关键字variadic(保留),作为数据库名 --关键字不带引号-失败 create database variadic; --关键字带双引号-成功 create database "variadic"; drop database if exists "variadic"; --关键字带单引号-合理报错 create database 'variadic'; --关键字带反引号-合理报错 drop database if exists `variadic`; create database `variadic`;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 10-Fev-2020 às 20:08 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.1.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
<reponame>valeur-ko/Semi_Project<filename>WebMarket17/WebContent/sql/sql1.sql select * from product; update product set p_condition='New'; select concat('P',cast(substr(max(p_id),2) as unsigned)+1) from product; select distinct p_category from product; /* 카테고리 테이블 생성*/ create table category( seq int not null auto_in...
<filename>db/update.sql UPDATE lists SET company_name = 'T4', job_title = 'barista', city = 'Milpitas', website = null, apply_date = null, app_status = 'applied', interview_date = null, notes = 'testing testing 123' WHERE user_id = '1' AND company_name = 'McDonalds'AND job_title = 'Hamburger Flipper' AND city ...
/* Para borrar todas las tablas*/ DROP SCHEMA public CASCADE; CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public; /* te permite cambiar la variable de entorno en el formato dd/mm/yyyy*/ SET DATESTYLE TO 'European'; CREATE TABLE ofj_lugar ( codigo SERIAL NOT NULL, ...
<gh_stars>0 -- ldap connection INSERT INTO ldap_connection(id, uuid, label, provider_url, security_auth, security_principal, security_credentials, creation_date, modification_date) VALUES (50, 'a9b2058f-811f-44b7-8fe5-7a51961eb098', 'baseLDAP', 'ldap://localhost:33389', 'simple', null, null, now(), now()); -- user do...
<reponame>dienlancer/superstore<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th3 18, 2018 lúc 07:55 PM -- Phiên bản máy phục vụ: 10.1.29-MariaDB -- Phiên bản PHP: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START ...
<filename>demo/src/test/resources/sql/redd_stats_calculator.sql DROP FUNCTION IF EXISTS redd_stats_run (integer, varchar) ; --- CREATE OR REPLACE FUNCTION redd_stats_run(IN indicators_id integer, IN dbSchema character varying) RETURNS bool AS $BODY$ DECLARE indicador RECORD; BEGIN FOR indicador IN EXECUTE format('...
<reponame>Quebe/Mercury-Care-Management -- DBO.[ROLEPERMISSION] (BEGIN) /* IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_NAME = 'RolePermission') AND (TABLE_SCHEMA = 'dbo')) DROP TABLE dbo.[RolePermission] GO */ CREATE TABLE dbo.[RolePermission] ( RoleId ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 29, 2021 at 09:29 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
delete from intrebari; insert into intrebari values (1, 'Cine a spus "Zarurile au fost aruncate"?', 2, 'Einstein', 'Caesar', 'Vadim'); insert into intrebari values (2, 'In ce oras au fost executati sotii Ceausescu?', 2, 'Bucuresti', 'Targoviste', 'Alba-Iulia'); insert into intrebari values (3, 'In ce an a aderat Roman...
<reponame>zanio/quizapi INSERT INTO "option" ("id","question_id", "value","date_created",correct) VALUES (1,1, '<NAME>',now(),true); INSERT INTO "option" ("id","question_id", "value","date_created",correct) VALUES (2,1, '<NAME>',now(),false); INSERT INTO "option" ("id","question_id", "value","date_created",correct) VAL...
-- 外国语学院(国际教育学院),文学与新闻传播学院,法律与知识产权学院,商学院,计算机科学与工程学院,建筑学院,机械与电气工程学院,土木工程学院,电子信息工程学院,文化产业与旅游管理学院,艺术学院 (演艺学院),马克思主义学院,体育部,创新创业学院,数理部 INSERT INTO wch_Department VALUES ('外国语学院(国际教育学院)') INSERT INTO wch_Department VALUES ('文学与新闻传播学院') INSERT INTO wch_Department VALUES ('法律与知识产权学院') INSERT INTO wch_Department VALUES ('商学院')...
select 'Carros' as 'Carros', SUM(Temp.Media) as 'Vendas', Temp.AnoVenda from (select Modelo, Ano, (SUM(Vendas) / COUNT (*)) as 'Media', YEAR(DataVenda) as 'AnoVenda' from TabelaCarros group by MODELO, ANO, YEAR(DataVenda)) Temp group by Temp.AnoVenda