sql
stringlengths
6
1.05M
-- MySQL Script generated by MySQL Workbench -- Fri Oct 23 10:59:52 2020 -- Model: New Model Version: 1.0 -- 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='ON...
SELECT [name] ,[population] ,[area] FROM [World] WHERE [area] > 3000000 OR [population] > 25000000
select fn_db_add_column('vds_statistics', 'boot_time', 'BIGINT');
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: apijson.cn Database: sys -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE...
-- empty migration
<reponame>maxsad1/oci360 -- Required: DEF oci360_in_target_table = "&&1." DEF oci360_in_source_file = "&&2." UNDEF 1 2 DEF oci360_temp_obj_prefix = "OCI360_TMP_&&oci360_user_curschema." DEF oci360_temp_table = "&&oci360_temp_obj_prefix._TABLE" DEF oci360_temp_clob = "&&oci360_temp_obj_prefix._CLOB" DEF oci360_t...
<gh_stars>0 CREATE MATERIALIZED VIEW business_license_geocoded_addresses AS SELECT DISTINCT bl.stno, bl.predir, bl.stname, bl.suffix, geo.longitude, geo.latitude FROM business_license AS bl LEFT JOIN lb_open_addresses AS geo ON geo.number = bl.stno AND geo.street = TRIM(...
<reponame>wapache-org/greenplum-gpdb -- MPP-24237 -- Security definer function causes temp table not to be dropped due to pg_toast access privileges CREATE or replace FUNCTION sec_definer_create_test() RETURNS void AS $$ BEGIN RAISE NOTICE 'Creating table'; execute 'create temporary table wmt_toast_issue_temp (nam...
<gh_stars>1-10 --+ holdcas on; set names utf8; drop table if exists t; create table t(i int,s1 string, s2 string collate binary); insert into t values(1,'TRY','TRY'),(2,'ş','ş'),(3,'İ','İ'),(4,'ı','ı'),(5,'i','i'),(6,'I','I'); select collation(distinct s2 collate binary),charset(distinct s2 collate binary) from t orde...
DROP INDEX IF EXISTS pin_chat_attendee_ids; CREATE INDEX IF NOT EXISTS pin_chat_id ON "chat"."Pin" ("chatId"); CREATE INDEX IF NOT EXISTS pin_attendee_id ON "chat"."Pin" ("attendeeId");
<reponame>rizkiaryandi/arisan-bersama -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 18, 2021 at 06:33 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
<filename>GRA.Database/dbo/Stored Procedures/app_Patron_Update.sql  CREATE PROCEDURE [dbo].[app_Patron_Update] ( @PID INT, @IsMasterAccount BIT, @MasterAcctPID INT, @Username VARCHAR(50), @Password VARCHAR(255), @DOB DATETIME, @Age INT, @SchoolGrade VARCHAR(5), @ProgID INT, @FirstName VARCHAR(50), @MiddleNa...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 14, 2017 at 11:22 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<reponame>wojtekxm/netview<filename>server/common/src/main/resources/zesp03/common/flyway/V2017_05_13_1__remove_survey_deleted.sql ALTER TABLE device_survey DROP FOREIGN KEY device_survey_ibfk_1; ALTER TABLE device_survey DROP INDEX UQ_frequency_timestamp_deleted; ALTER TABLE device_survey DROP INDEX KEY_deleted; AL...
<filename>migrations/sql/V2019.08.07.1224__AddFileName.sql alter table burden_estimate_set add column original_filename text null
SELECT DISTINCT l1.Num AS ConsecutiveNums FROM Logs l1, Logs l2, Logs l3 WHERE l3.Num = l2.Num AND l2.Num = l1.Num AND l3.Id = l2.Id + 1 AND l2.Id = l1.Id + 1;
ALTER TABLE guilds ADD COLUMN preface TEXT NOT NULL DEFAULT '', ADD COLUMN postface TEXT NOT NULL DEFAULT '';
select p.id, p.name from page p where p.inspection_id = $1 order by id;
<reponame>natanascimento/university-data-analysis<gh_stars>1-10 INSERT INTO university.cursos (cod_curso, nom_curso, cod_dpto) VALUES(26, 'Ciencia da Computacao - Tarde/Noite', 1); INSERT INTO university.cursos (cod_curso, nom_curso, cod_dpto) VALUES(35, 'Odontologia - Integral', 2); INSERT INTO university.cursos (cod_...
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50617 Source Host : localhost:3306 Source Database : pb Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2015-06-07 19:39:29 */ SET FOREIGN_KEY_CHECKS=0; -- -...
CREATE FUNCTION emp_stamp() RETURNS trigger AS $emp_stamp$ BEGIN -- Check that empname and salary are given IF NEW.empname IS NULL THEN RAISE EXCEPTION 'empname cannot be null'; END IF; IF NEW.salary IS NULL THEN RAISE EXCEPTION '% cannot have null salary', NE...
<gh_stars>0 DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; INSERT INTO department (name) VALUES ('Research'), ('Development'), ('Production'), ('Implementation'), ('Management'), ('Training'); INSERT INTO role (title, salary, department_id) VALUES (01'UI UX Designer', 105500, 2...
<filename>OnionPattern/OnionPattern.Database/Tables/GamePlatform.sql CREATE TABLE [dbo].[GamePlatform] ( Id INT NOT NULL PRIMARY KEY IDENTITY (1, 1), [GameId] INT NOT NULL REFERENCES [dbo].[Game](Id), [PlatformId] INT NOT NULL REFERENCES [dbo].[Platform](Id), UNIQUE(GameId, PlatformId) ) GO
DROP DATABASE IF EXISTS passport_demo; CREATE DATABASE passport_demo; USE passport_demo;
CREATE PROCEDURE [dbo].[sp_PageSplit] @TableName VARCHAR(200), /* table's name, only single one table */ @Fields VARCHAR(5000) = '*', /* table's fields to display, star '*', as default, means all fields */ @OrderField VARCHAR(5000), /* table's fields for ordering */ @sqlWhere VARCHAR(5000) = NULL, /* where fil...
UPDATE movies SET indexed = NULL;
DROP TABLE IF EXISTS ipmsg_log; CREATE TABLE ipmsg_log ( seq INTEGER PRIMARY KEY AUTOINCREMENT, datetime DATETIME NOT NULL, fromto TEXT NOT NULL, name TEXT NOT NULL, groupname TEXT NOT NULL, msg TEXT NOT NULL ); CREATE INDEX ipmsg_index on ipmsg_log ( datetime, fr...
<gh_stars>1-10 CREATE TABLE [dbo].[Datasweep] ( [Id] UNIQUEIDENTIFIER NOT NULL CONSTRAINT [DF_Datasweep_Id] DEFAULT (NEWSEQUENTIALID()), [Description] NVARCHAR(255) NULL, [Created] DATETIMEOFFSET NOT NULL CONSTRAINT [DF_Datasweep_Created] DEFAULT (SYSUTCDATETIME()), [CreatedBy] NVARCHAR(100) NULL CONS...
DROP TABLE public.models; DROP TABLE public.model_versions; DROP SEQUENCE public.models_id_seq; DROP SEQUENCE public.model_versions_id_seq;
<reponame>chili-dog-night/site<filename>sql/data/2016-04-06.sql INSERT INTO media ( title, uri, rating, viewed_at, created_at ) VALUES ('Jobs', 'http://www.imdb.com/title/tt2357129/', 1000, '2016-04-06', now())
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 2018-04-22 09:45:51 -- 服务器版本: 5.6.37 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
<reponame>cmate5614530/Nova -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 03, 2021 at 11:24 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
<reponame>arizawan/livetvwithyoutube /* Navicat MySQL Data Transfer Source Server : MAMP Source Server Type : MySQL Source Server Version : 50542 Source Host : localhost Source Database : 71livetv Target Server Type : MySQL Target Server Version : 50542 File Encoding : u...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-04-2020 a las 01:45:00 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
<reponame>laurynasl/sunflower-comments CREATE OR REPLACE FUNCTION on_#{table}_delete_bc() RETURNS TRIGGER AS $$ DECLARE c integer; s varchar; BEGIN SELECT INTO c COUNT(*) FROM comments WHERE parent_table = '#{table}' AND parent_id = OLD.id; IF c > 0 THEN RAISE EXCEPTION 'There are commen...
SELECT name, description, uuid_ as uuid, json_structure FROM ${schema~}.${assessments~};
<gh_stars>1-10 -- stored proc's -- bhaa stored proces -- http://www.coderrants.com/wordpress-and-stored-procedures/ -- http://wordpress.org/support/topic/how-to-call-stored-procedure-from-plugin SET GLOBAL log_bin_trust_function_creators = 1; DELIMITER $$ -- only functions return values DROP FUNCTION IF EXISTS `ge...
--might need to run this a couple of times until the randoms Ids doon't conflict DO $$ BEGIN FOR counter IN 1..1000 LOOP INSERT INTO Journey VALUES( --random id (SELECT floor(random()*(1000000-1))+0 as id), --random time (select timestamp '2017-03-01 00:00:00' + random() * (timestamp '2017-07-...
DROP TABLE IF EXISTS USERS
<reponame>gildas-allaz/signalo<gh_stars>1-10 CREATE SCHEMA IF NOT EXISTS signalo_app;
<gh_stars>1-10 USE [VipunenTK_SA] GO /****** Object: View [dbo].[v_sa_7_8_Ammatillisen_koulutuksen_opettajat_osallistuminen_täydennyskoulutukseen] Script Date: 14.2.2020 15:30:29 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_sa_7_8_Ammatillisen_koulutuksen_opett...
ALTER TABLE notification MODIFY notification_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP; ALTER TABLE notification ADD COLUMN claim_id bigint(20); ALTER TABLE notification ADD COLUMN uuid VARCHAR(36); ALTER TABLE notification DROP solver; UPDATE notification n SET claim_id = (SELECT c.id FROM...
# 2.1 数据定义 Create database if not exists DB_Exp; Create table T_FILM ( FID int NOT NULL comment 'Film ID', FNAME char(30) NOT NULL comment 'Film Name', FTYPE char(10) default 'Unknow' NOT NULL comment 'Film Type', DNAME char(30) default 'Unknow' NOT NULL comment 'Director Name', LENGTH int default '0'...
<reponame>jdkoren/sqlite-parser -- vtab_alter.test -- -- execsql { SELECT * FROM x_base; } SELECT * FROM x_base;
<gh_stars>10-100 -- --------------------------------------------------------------------------- -- SAKAI_PRESENCE -- --------------------------------------------------------------------------- CREATE TABLE SAKAI_PRESENCE ( SESSION_ID VARCHAR (36), LOCATION_ID VARCHAR (255) ); CREATE INDEX SAKAI_PRESENCE_SESSION_IND...
<gh_stars>100-1000 ALTER TABLE PIPELINE.NOTIFICATION_QUEUE ALTER COLUMN USER_IDS TYPE TEXT;
/* ----------------------------------------------------------------------------- Delete all data from the PIMS_LEASE_PMT_FREQ_TYPE table and repopulate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Author Date Comment ------------ ----------- ------------------------...
<reponame>dataclub/phalconeyeBlog -- Adminer 4.1.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE DATABASE `phalconeye` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `phalconeye`; DROP TABLE IF EXISTS `access`; CREATE TABLE `access` ( ...
<reponame>phperv5/yii2_fecshop_joyce -- phpMyAdmin SQL Dump -- version 3.3.10 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2016 年 07 月 28 日 22:22 -- 服务器版本: 5.6.14 -- PHP 版本: 5.4.34 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 18, 2019 at 11:50 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
USE [cuidaDB] GO /****** Object: Table [dbo].[tbUsuariosDocumentos] Script Date: 09/06/2019 08:58:49 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tbUsuariosDocumentos]( [codUsuario] [int] NOT NULL, [codTipoDocumento] [int] NOT NULL, [arquivo] [binary](50) NULL, [tipoArquivo] [...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost -- Üretim Zamanı: 21 Eyl 2021, 12:12:41 -- Sunucu sürümü: 5.7.31-log -- PHP Sürümü: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
<filename>Database/Security/LinkedServerLogins.sql EXECUTE sp_addlinkedsrvlogin @rmtsrvname = N'TINNYTIM', @useself = N'FALSE', @rmtuser = N'ProdDonbot'; GO EXECUTE sp_addlinkedsrvlogin @rmtsrvname = N'SIS', @useself = N'FALSE', @rmtuser = N'ops$caesdo'; GO EXECUTE sp_addlinkedsrvlogin @rmtsrvname = N'QB5FM1U0EB.D...
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: database-1.caf6lw71z7rh.ap-south-1.rds.amazonaws.com Database: senior_official -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CH...
<filename>db/access/migrations/20181122234357_alter_vw_users_states_systems.sql -- migrate:up DROP VIEW IF EXISTS vw_users_states_systems; CREATE VIEW vw_users_states_systems AS SELECT US.id, S.id AS system_id, S.name AS system, UE.id AS user_state_id, UE.name AS state, U.id AS user_id, U.user AS user, U.pass AS p...
CREATE DATABASE IF NOT EXISTS `portfolio`; USE `portfolio`;
<reponame>Zoomicon/Trafilm BEGIN TRANSACTION SET QUOTED_IDENTIFIER ON SET ARITHABORT ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON COMMIT BEGIN TRANSACTION GO CREATE TABLE [dbo].[SnGroupCategory]( [Id] [uniqueidentifier] NOT NULL, [ApplicationI...
create table user (id bigint not null auto_increment, auth_email varchar(255) not null, crypt_key varchar(255), name varchar(255), pin_code varchar(255), recovery_email varchar(255) not null, status varchar(255) not null, unlock_code varchar(255), primary key (id)) ENGINE = MEMORY; create table user_roles (user_id bigi...
-- MySQL dump 10.13 Distrib 5.6.20, for osx10.7 (x86_64) -- -- Host: localhost Database: sails_jwt_template_test -- ------------------------------------------------------ -- Server version 5.6.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
-- first time install INSERT INTO `sys_entry` (`name`, `abbr`, `code`, `buildin`, `integration`, `open`, `key`, `ip`, `logo`, `login`, `control`, `size`, `position`, `visible`, `order`) VALUES ('活动计划', '活动', 'krap', 1, 1, 'iframe', '722a7c7bd524abea0323c6ee7e2f8dcf', '*', 'theme/default/images/ips/app-krap.png', '../kr...
<reponame>adriendomoison/go-boot-api CREATE USER apigoboot; ALTER ROLE apigoboot WITH CREATEDB; CREATE DATABASE apigoboot OWNER apigoboot; ALTER USER apigoboot WITH ENCRYPTED PASSWORD '<PASSWORD>'; CREATE USER apigoboot_test; ALTER ROLE apigoboot_test WITH CREATEDB; CREATE DATABASE apigoboot_test OWNER apigoboot_test;...
<filename>sql-scripts/geocoder/test-oak-lane.sql begin; drop table if exists tmp_addresses cascade; create temporary table tmp_addresses (id serial not null primary key, addr text); insert into tmp_addresses (addr) values ('123 oak ln e n mycity ny usa'); insert into tmp_addresses (addr) values ('123 oak lane east n m...
create or replace package mt_apex_save_scroll authid current_user 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 mt_apex_save_scroll; /
<filename>scopes.sql INSERT INTO slfweb.scopes (id, name, priorite, representation, status, created_at, updated_at) VALUES (1, 'Full Time Excluding Overtime', '', 'FT-EO', 0, '2015-10-18 11:07:07', '2015-10-18 11:07:07'); INSERT INTO slfweb.scopes (id, name, priorite, representation, status, created_at, updated_at) VAL...
<gh_stars>1-10 -- ========================================================================================== -- Create Database Role template for Azure SQL Database and Azure SQL Data Warehouse Database -- ========================================================================================== -- Create the database ...
-- CREATED_AT = 17-01-2021 12:12:01 -- create table `users` with id using uuid DROP TABLE IF EXISTS public.users; CREATE TABLE public.users ( id char(36) not null constraint users_pkey primary key, name varchar(100) not null, email varchar(100) not null constraint users_email_key unique, password varcha...
-- file:triggers.sql ln:1686 expect:false DDD 42 \. drop trigger child1_insert_trig on child1
-- file:arrays.sql ln:544 expect:true select string_to_array('1,2,3,4,,6', ',', '')
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 12, 2018 at 10:17 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
desc EMP; select * from EMP; select ename, sal*12 from emp; select 2*3 from emp; desc dual; select * from DUAL; select 2*3 from DUAL; select sysdate from dual; select sysdate from emp; select ename, sal*12 annual_sal from emp; select ename, sal*12 "annual sal" from emp; select ENAME, COMM from emp; select ename, sal*12...
<gh_stars>0 SELECT DISTINCT(actor.name) FROM casting JOIN actor ON casting.actorid=actor.id JOIN (SELECT movieid FROM casting JOIN actor ON casting.actorid=actor.id WHERE name='<NAME>') as ag_movies ON ag_movies.movieid = casting.movieid WHERE actor.name != '<NAME>'
select p.ISDCode, p.SchoolYear, p.ISDName, p.BuildingName, p.EntityType, p.DistrictName, p.ReportCategory, p.SchoolLevel, p.GradeContentTested, p.Subject, p.TestType, p.NumberAssessed, p.PercentAdvanced, p.PercentProficient, p.PercentPartiallyProficient, p.PercentNotProficient, p.TotalAdvanced, p.TotalProficient...
<gh_stars>0 alter table profile rename marital to marital_status;
CREATE TABLE scm_nutrition_information( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n3.core.Container$AdditionalType * param: org.kyojo.schemaorg.m3n3.core.Clazz$URL */ additional_type VARCHAR(100) NULL, /** * type: org.kyojo.schemaorg.m3n3.core.Container$AlternateName * p...
/* insert into employee (FirstName, LastName) values ('Damaged','Jacket'), ('New','Jacket'), ('Unassinged','Jacket'), ('Missing', 'Jacket') ; */ insert into location (location_name, location_size) values ('Admin Office','Office'), ('41','Standard'), ('42', 'Standard'), ('B10', 'Big Blue'); ...
DROP DATABASE IF EXISTS "prism-integration-test"; CREATE DATABASE "prism-integration-test"; \c "prism-integration-test"; CREATE TABLE tasks ( id serial, title character varying(255) NOT NULL, description character varying(255), complete boolean NOT NULL DEFAULT false, project integer NOT NULL, owner integer, PR...
-- @testpoint:opengauss关键字parameter_specific_catalog(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists parameter_specific_catalog; create database parameter_specific_catalog; drop database parameter_specific_catalog; --关键字带双引号-成功 drop database if exists "parameter_specific_catalog"; create database "parameter_specifi...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Bulan Mei 2021 pada 16.29 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>backend/SQL/aogs_setup.sql<gh_stars>0 CREATE DATABASE <POSTGRESQL-DB-NAME>; CREATE USER <POSTGRESQL-USER> WITH PASSWORD '<<PASSWORD>>'; ALTER ROLE <POSTGRESQL-USER> SET client_encoding TO 'utf8'; ALTER ROLE <POSTGRESQL-USER> SET default_transaction_isolation TO 'read committed'; ALTER ROLE <POSTGRESQL-USER> S...
USE Diablo SELECT TOP 50 Name, REPLACE(CONVERT(VARCHAR, Start, 111),'/','-') AS [Start] FROM Games WHERE YEAR(Start) = '2011' OR YEAR(Start) = '2012' ORDER BY Start, Name
<reponame>bruno-victor32/Projeto-final-esamc-interface-humano-computador create database db_projetos; use db_projetos; show databases; create table tb_contato( id int not null auto_increment primary key, nome varchar(255) not null, sobrenome varchar(255) not null, apelido varchar(255) not null, email...
-- password = '<PASSWORD>' INSERT INTO user (username, password, name, surname, email) VALUES ('user1', '$2y$10$Re6SSHFjyr25eaddRBQHP.tvQ0nUr0EqUK05y12bGhgM.MzeHa5c6', 'Boris', 'Mastný', '<EMAIL>'); INSERT INTO user (username, password, name, surname, email) VALUES ('user2', '$2y$10$Hp2LVygvPjukidKmLHR7SeAWZHIf.54iV...
<filename>Mercury.Database/Mercury.Database.Environment/Schema Objects/Schemas/dbo/Tables/MemberServiceDetailSet.table.sql -- DBO.[MEMBERSERVICEDETAILSET] (BEGIN) /* IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_NAME = 'MemberServiceDetailSet') AND (TABLE_SCHEMA = 'dbo')) DROP TABLE dbo...
select id, concat(repeat ('-', (select count(parent.id)-1 from chapter_73 as parent where node.left_mark between parent.left_mark and parent.right_mark)), node.hts_code) as hts_code, title, left_mark, right_mark, depth from chapter_73 as node where node.left_mark between 91 and 215 order by node.left_mark; #select conc...
DELIMITER $$ DROP PROCEDURE IF EXISTS uspUpdateBackupJobFile; CREATE PROCEDURE uspUpdateBackupJobFile(IN JobId BIGINT, IN FileId BIGINT, IN Size FLOAT, IN WriteDtm CHAR(25)) BEGIN -- File is not new to the system UPDATE tblfiles files SET files.Size = Size, files.ModifiedDtm = STR_TO_DATE(WriteDtm,'%m/%d...
<filename>VS2013_PROJECT/DNN_DB/dbo/Stored Procedures/dnn_UpdateModuleControl.sql CREATE PROCEDURE [dbo].[dnn_UpdateModuleControl] @ModuleControlId int, @ModuleDefID int, @ControlKey nvarchar(50), @ControlTitle nvarchar(50), @ControlSrc nvarchar(256), @IconFile nvarchar(100), @ControlT...
update clientes set saldo = saldo-200 where id = 1; update clientes set saldo = saldo+200 where id = 2;
<reponame>igortfx/server USE [MuOnline] GO /****** Object: Table [dbo].[_nyxNews] Script Date: 22-Mar-20 14:05:24 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[_nyxNews] ( [id] [int] IDENTITY(1,1) NOT NULL, [account] [varchar](10) NOT NULL, [author] [varchar](20...
<reponame>tiagosousac/GDI-Seguradora SELECT nome_seguradora FROM seguradora WHERE cnpj_seguradora = (SELECT cnpj_seguradora FROM funcionario WHERE cpf_funcionario = '111.222.222-11' );
SET search_path TO common_oltp; CREATE INDEX IF NOT EXISTS email_address_idx ON common_oltp.email ( address ); CREATE INDEX IF NOT EXISTS user_activ_code_idx ON common_oltp.user ( activation_code ); CREATE INDEX IF NOT EXISTS user_open_id_idx ON common_oltp.user ( open_id );...
create database food_shop_db; create table type(id serial primary key, name varchar(100) ); create table product( id serial primary key, name varchar(100), type_id int references type(id), expired_date date, price dec(7,2) ); insert into type(name) values ('СЫР'); insert into type(name) values ('МОЛОКО');...
########################################################## ########################################################## ########################################################## # SQL - MySQL for Data Analytics and Business Intelligence # Lecture and Exercise Code ######################################################...
CREATE SCHEMA IF NOT EXISTS TASKANA; CREATE SCHEMA IF NOT EXISTS CUSTOMDB; CREATE TABLE IF NOT EXISTS CUSTOMDB.TEST ( ID CHAR(40) NOT NULL, NAME VARCHAR(255) NOT NULL, PRIMARY KEY (ID) ); SET SCHEMA TASKANA;
<gh_stars>1-10 /* DOQL for Discovery Scores and Job Scores. */ Select ds.updated "Timestamp" ,ds.discovery_type "Discovery Type" ,ds.sub_type "Discovery Subtype" ,js.vserverdiscovery_fk "Job ID" ,vs.job_name "Job Name" ,ds.current_mode "Mode" ,ds.status "Status" ,ds.discovery_server "Target" ,ds.port...
<gh_stars>100-1000 ALTER TABLE _auth_provider_oauth ADD COLUMN "provider_user_id" text NOT NULL;
<reponame>Marcel-Jansen/open-smart-grid-platform -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -- CREATE EX...
<filename>src/test/regress/optfunctional/sql/functionProperty_17.sql -- start_ignore create schema functionProperty_1601_1700; set search_path to functionProperty_1601_1700; CREATE TABLE foo (a int, b int); INSERT INTO foo select i, i+1 from generate_series(1,10) i; CREATE TABLE bar (c int, d int); INSERT INTO bar s...
<reponame>NobiGo/coral<filename>coral-trino/src/test/resources/product_test_cases_expected/q42_expected.sql<gh_stars>100-1000 select `dt`.`d_year`, `item`.`i_category_id`, `item`.`i_category`, sum(`ss_ext_sales_price`) from `date_dim` as `dt` where `dt`.`d_date_sk` = `store_sales`.`ss_sold_date_sk` and `store_sales`.`s...
<reponame>dhis2/metadata-assessment # Copyright (c) 2021, University of Oslo # 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 the above copyright notice...
<reponame>Zhaojia2019/cubrid-testcases -- test with reverse index and multiple ranges create table u (i int); create index i_u_i_d on u(i desc); insert into u values (1), (2), (3), (4), (5), (6), (7), (8), (9); select i from u where (i < 3) or (i > 7) order by i desc; select i from u where (i <= 3) or (i > 7) order...