sql
stringlengths
6
1.05M
<reponame>FoxComm/highlander<filename>phoenix-scala/sql/V1.164__coupon_codes_search_view.sql create materialized view coupon_codes_search_view as select c.id, c.code, cp.form_id as coupon_id, cp.promotion_id, 0 as total_used, --this needs to be computed to_char(c.created_at, 'YYYY-MM-DD"T"HH24:M...
CREATE TABLE Shirts (id INTEGER PRIMARY KEY AUTOINCREMENT, personid INTEGER NOT NULL, color VARCHAR(8000) NOT NULL, size CHAR(1) NOT NULL, FOREIGN KEY (personid) REFERENCES People(id)); INSERT INTO Shirts VALUES(NULL, 15,'MLO58XON2EZ','L'); INSERT INTO Shirts VALUES(NULL, 66,'DKL04MBS5UH','L'); INSERT INTO Shirts VALU...
COMMENT ON COLUMN acs2012_5yr.geoheader.fileid IS 'Always equal to ACS Summary File identification'; COMMENT ON COLUMN acs2012_5yr.geoheader.stusab IS 'State Postal Abbreviation'; COMMENT ON COLUMN acs2012_5yr.geoheader.sumlevel IS 'Summary Level'; COMMENT ON COLUMN acs2012_5yr.geoheader.component IS 'Geographic Compon...
set transaction isolation level read uncommitted declare @total_execution_count float declare @total_worker_time float declare @total_elapsed_time float declare @total_logical_writes float declare @total_logical_reads float --期間指定 declare @start_at datetime = '2021/08/24 21:00' ,@end_at datetime = '2021/08/24 22...
CREATE DATABASE IF NOT EXISTS `shepherd_web`; GRANT ALL ON `shepherd_web`.* TO 'shepherd_user'@'%' IDENTIFIED BY '<PASSWORD>'; CREATE TABLE `shepherd_web`.`test_failures` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `git_commit` varchar(40) NOT NULL DEFAULT '', `test_name` varchar(255) NOT NULL DEFAULT '',...
CREATE PROCEDURE [dbo].[UpdateXmlDoc] ( @Original_id int, @thedoc xml ) AS BEGIN SET NOCOUNT OFF; UPDATE [XMLDoc] set thedoc = @thedoc WHERE (([id] = @Original_id)) END GO
delete from suscripcion where idSuscripcion = :idSuscripcion
-- Table: contact -- DROP TABLE contact; CREATE TABLE contact ( id serial NOT NULL, last_name character varying(64), first_name character varying(64), email character varying(64), rating integer, CONSTRAINT contact_pkey PRIMARY KEY (id) ) WITHOUT OIDS; ALTER TABLE contact OWNER TO feedserver...
CREATE PROCEDURE SP156(OUT MYCOUNT INTEGER) SPECIFIC SP156_108491 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE489;SELECT COUNT(*)INTO MYCOUNT FROM TABLE274;SELECT COUNT(*)INTO MYCOUNT FROM TABLE178;SELECT COUNT(*)INTO MYCOUNT FRO...
-- @testpoint:opengauss关键字unencrypted(非保留),作为视图名 --关键字explain作为视图名,不带引号,创建成功 CREATE or replace VIEW unencrypted AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view unencrypted; --关键字explain作为视图名,加双引号,创建成功 CREATE or replace VIEW "unencrypted" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_def...
<reponame>MpStyle/microservicetoolkit<filename>microservice.toolkit.connectionmanager.test/data/CreateItemPropertyUpsertProcedure.sql CREATE PROCEDURE ItemPropertyUpsert( @Id VARCHAR(256), @ItemId VARCHAR(256), @Key VARCHAR(256), @StringValue VARCHAR(MAX), @IntValue INT, @LongValue BIGINT, @...
-- name: GetAllMarkets :many SELECT * FROM market; -- name: InsertMarket :one INSERT INTO market ( provider_name,url,base_asset,quote_asset) VALUES ( $1, $2, $3, $4 ) RETURNING *;
CREATE OR REPLACE PROCEDURE insert_actividadXpersona(idActividad NUMBER,idPersona NUMBER) AS BEGIN INSERT INTO ACTIVIDADXPERSONA(id, idactividad, idpersona) VALUES(S_ACTIVIDADXPERSONA.NEXTVAL, idactividad, idpersona); END;
<reponame>corderoski/payme-dude CREATE TABLE [dbo].[Transactions] ( [Id] NVARCHAR (250) NOT NULL, [Type] INT NOT NULL, [Amount] DECIMAL (18) NOT NULL, [Description] NVARCHAR (2000) NOT NULL, [RegisterDate] DATETIMEOFFSET(7) NOT NULL DEFAULT (sysutcdatet...
alter table paciente add column no_poliza varchar(40) alter table paciente add column inicio_poliza date alter table paciente add column fin_poliza date
<filename>SQLQuery3.sql create table professor( id bigint not null, nome_professor varchar not null, turma int not null, primary key(id) ); create table materia ( id_materia bigint, nome_materia varchar, nome_professor varchar, primary key(id_materia) );
-- sqlite3 database.db < initial-data.sql -- Countries INSERT INTO country (id, name) VALUES (1, 'United States'); INSERT INTO country (id, name) VALUES (2, 'England'); INSERT INTO country (id, name) VALUES (3, 'Argentina'); INSERT INTO country (id, name) VALUES (4, 'Scotland'); -- Authors INSERT INTO author (id, cou...
-- DJS - MySQL Schema DROP TABLE IF EXISTS djs_jobtpl; CREATE TABLE djs_jobtpl ( tpl_id VARCHAR(32), PRIMARY KEY (tpl_id), tpl_desc VARCHAR(255), tpl_update_timestamp DATETIME, tpl_params TEXT ) ENGINE=InnoDB DEFAUL...
DEFINE RECORD CDD$TOP.AR.AR_LBCRJH DESCRIPTION IS /*Cash Receipts Journal*/. AR_LBCRJH_CDD STRUCTURE. /* Element = Description = Receipt Number */ RECNUM DATATYPE IS TEXT SIZE IS 8. /* Element = CUSTOMER Description = Customer Number */ ...
-- [database log] ALTER TABLE `logs` DROP `telegramdate`; ALTER TABLE `logs` DROP `smsdate`; ALTER TABLE `logs` DROP `emaildate`; -- ALTER TABLE `logs` ADD `ip` INT(10) UNSIGNED NULL DEFAULT NULL; ALTER TABLE `logs` ADD `sms` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL; ALTER TABLE `logs...
-- Get the count of all unlinked File C assistance records SELECT COUNT(*) FROM financial_accounts_by_awards WHERE piid IS NULL -- if piid is null, then fain or uri is populated per DAIMS AND award_id IS NULL ;
FUNCTION multiply(p_arg1 NUMBER, p_arg2 NUMBER) RETURN NUMBER IS v_product NUMBER; BEGIN v_product := p_arg1 * p_arg2; RETURN v_product; END;
CREATE TABLE `books` ( `CD_boock` INT(10) AUTO_INCREMENT PRIMARY KEY, `CH_author` longtext, `DT_launch_date` datetime(6) NOT NULL, `VR_price` decimal(65,2) NOT NULL, `CH_title` longtext ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/* Navicat Premium Data Transfer Source Server : 192.168.10.51 Source Server Type : MySQL Source Server Version : 50730 Source Host : 192.168.10.51:3306 Source Schema : iotplatform Target Server Type : MySQL Target Server Version : 50730 File Encoding : 65001 Date: 2...
<filename>is-lnu-sql/src/main/resources/data/0.9.1/0001_q_op_group.sql INSERT INTO q_op_group(title, description, id, status, actual, note, crtuser, crtusergroup, create_date, update_date ) VALUES ('developers', 'Role for developers from <NAME> Lviv University', 1, 'ACTIVE', 1, 'null', 'illay', 'public', now(), now()...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50711 Source Host : localhost Source Database : passhub_db Target Server Type : MySQL Target Server Version : 50711 File Encoding : utf-8 Date: 05/18/2017 16:4...
<gh_stars>1-10 CREATE TABLE `gid_config` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL DEFAULT '' COMMENT '名称', `code` varchar(64) NOT NULL DEFAULT '' COMMENT '代码,唯一键', `date_format` varchar(64) COMMENT '日期格式化:yyyyMM;用于按月生成序号的模式', `id_type` tinyint(3) unsigned NOT NULL DEFAUL...
select id, name from user order by id;
<reponame>connormcd/misc-scripts<gh_stars>10-100 REM REM Standard disclaimer - anything in here can be used at your own risk. REM REM It is very likely you'll need to edit the script for correct usernames/passwords etc. REM REM No warranty or liability etc etc etc. See the license file in the git repo root REM REM **...
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. CREATE DATABASE tournament; \c tournament; CREATE...
<gh_stars>0 -- :name update_track_url :affected update Track set Url = :Url where TrackId = :TrackId;
<gh_stars>1-10 -- Convert schema '/Users/doug/perl/cpantesters/schema/share/CPAN-Testers-Schema-0.020-SQLite.sql' to '/Users/doug/perl/cpantesters/schema/share/CPAN-Testers-Schema-0.021-SQLite.sql':; -- No differences found;
DROP view if exists view_penyusutan_pm_2017_e2 CASCADE; create view view_penyusutan_pm_2017_e2 as select nama_skpd, id_skpd, nama_lokasi_bidang, id_lokasi_bidang, nama_kabupaten, id_kabupaten, nama_provinsi, id_provinsi, id_mutasi_berkurang, mutasi_berkurang, keadaan_barang, nama_barang, register, harga, sum (harga) ...
CREATE TABLE lu_MenuCategory ( id_Category INT NOT NULL, Name VARCHAR(30) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (id_Category), INDEX (id_Category) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; CREATE TABLE lu_OrderStatus ( id_OrderStatus INT NOT NULL, Name VARCHAR(30) COLLATE utf8_u...
<reponame>ullum/perpusrpl -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 25, 2021 at 07:51 AM -- 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_zone = "+0...
<reponame>saraorbi/saraOrbi_jewelry-stor -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 03, 2020 at 05:12 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
<filename>penjadwalanfh (1).sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2019 at 02:07 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SE...
<gh_stars>0 set linesize 150 column OBJECT_NAME format a50 select OBJECT_TYPE, OBJECT_NAME, CREATED, LAST_DDL_TIME, TIMESTAMP, STATUS from dba_objects where OBJECT_NAME like '&OBJ_NAM';
<gh_stars>0 create database visitas-02 go create schema vis go
CREATE TABLE [dbo].[Sequences] ( [Id] INT NOT NULL, [SequenceName] VARCHAR (100) NULL, [SequenceOrder] INT NULL, [Config] VARCHAR (MAX) NULL, [TagData] VARCHAR (MAX) NULL ); GO CREATE CLUSTERED INDEX [ci_azure_fixup_dbo_Sequences] ON [dbo].[Sequenc...
<gh_stars>1-10 -- table create script create table transactions ( ID int not null, NAME varchar(100) not null );
<reponame>bgani/hackerrank-practice<filename>SQL/basic-join/Asian Population.sql<gh_stars>1-10 -- https://www.hackerrank.com/challenges/asian-population/problem -- INNER JOIN = JOIN, INNER is optional SELECT SUM(City.Population) FROM City INNER JOIN Country ON City.CountryCode = Country.Code AND Country.Continent = ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Jun 19, 2021 at 09:58 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.1.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
CREATE TABLE Products (id INT PRIMARY KEY IDENTITY(1,1),name NCHAR(100) not null,quantity INT not null,unit INT,unitQuantity DECIMAL(18,2),expirationDate DATE,code INT not null UNIQUE, price DECIMAL(18,2), priceForUnit BIT not null,vatId NCHAR(1) not null) CREATE TABLE Units (id INT PRIMARY KEY IDENTITY(1,1),name NCHA...
<filename>src/test/resources/sql/insert/bf9b1ef6.sql -- file:plpgsql.sql ln:1183 expect:true insert into WSlot values ('WS.003.3b', '003', '', '')
<reponame>csandersdev/execsql select 'insert into TESTTAB ( PROP ) values ( VALUE );' "SQL" from SYS.SYSTABLES where tablename = 'SYSTABLES' %
<filename>datos_abiertos_gob/catalogo/tipo_paciente.sql CREATE TABLE IF NOT EXISTS tipo_paciente( CLAVE INTEGER NOT NULL PRIMARY KEY ,DESCRIPCION VARCHAR(50) NOT NULL ); INSERT INTO tipo_paciente(CLAVE,DESCRIPCION) VALUES (1,'AMBULATORIO'); INSERT INTO tipo_paciente(CLAVE,DESCRIPCION) VALUES (2,'HOSPI...
SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET client_min_messages = warning; --HETS-974 FT-Add dated at to the Rental agreement screen -- Add the City t...
<gh_stars>0 ALTER DOMAIN public."Dom1_$%{}[]()&*^!@""'`\/#" SET DEFAULT 3;
--+ holdcas on; set names utf8; drop table if exists t; create table t(i int,s1 string, s2 string collate utf8_tr_cs); insert into t values(1,'TRY','TRY'),(2,'ş','ş'),(3,'İ','İ'),(4,'ı','ı'),(5,'i','i'),(6,'I','I'); select collation(distinct s2 collate utf8_tr_cs_uca),charset(distinct s1 collate utf8_tr_cs_uca) from t...
CREATE table alltypes( int_col INTEGER, float_col FLOAT, double_col DOUBLE, smallint_col SMALLINT, date_col DATE, time_col TIME, timestamp_col TIMESTAMP, datetime_col DATETIME, monetary_col MONETARY, numeric_col NUMERIC(12,4), char_col char(255), varchar_col varchar(255), nchar_col nchar(255), varnchar_col nchar va...
INSERT INTO `empresa` (`id`, `cnpj`, `data_atualizacao`, `data_criacao`, `razao_social`) VALUES (NULL, '82198127000121', CURRENT_DATE(), CURRENT_DATE(), 'Gallotti IT'); INSERT INTO `funcionario` (`id`, `cpf`, `data_atualizacao`, `data_criacao`, `email`, `nome`, `perfil`, `qtd_horas_almoco`, `qtd_horas_trabalho_dia`,...
-- Table: bsd_stat.interfaces -- DROP TABLE bsd_stat.interfaces; CREATE TABLE bsd_stat.interfaces ( interface_id bigint NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1 ), name character varying(200) COLLATE pg_catalog."default" NOT NULL DEFAULT 'n/a'...
CREATE TABLE [dbo].[Employee]( ID int not null identity(0,1) constraint PK_Employee primary key clustered, NodeID hierarchyid constraint UQ_Employee_NodeID unique, NodeLevel as NodeID.GetLevel(), -- smallint Name varchar(20) not null, Title varchar(20) null ) GO CREATE UNIQUE INDEX IX_EmployeeBreadth_Uniq on Emplo...
<filename>database/seeds/larabiz.sql -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Czas generowania: 22 Sty 2018, 16:06 -- Wersja serwera: 5.7.19-0ubuntu0.16.04.1 -- Wersja PHP: 7.1.12-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SE...
SELECT l.ORDEM_PRODUCAO OP , count(DISTINCT NUMERO_ORDEM) OS FROM pcpc_040 l --WHERE l.NUMERO_ORDEM = 134 GROUP BY l.ORDEM_PRODUCAO ; SELECT l.NUMERO_ORDEM OS , count(l.ORDEM_CONFECCAO) LOTES , sum(l.QTDE_PECAS_PROG) QTD FROM pcpc_040 l WHERE l.ORDEM_PRODUCAO = 309 AND l.NUMERO_ORDEM <> 0 GROUP BY l.NUMERO_O...
USE GVE; /*SELECT @@sql_mode; SET GLOBAL sql_mode = 'ERROR_FOR_DIVISION_BY_ZERO';*/ /*QUERYS DE LA PRACTICA*/ /*1. Mostrar el nombre del hospital,su dirección y el número de fallecidos por cada hospital registrado.*/ delimiter // CREATE PROCEDURE consulta1() BEGIN SELECT hospital.nombre, hospital.direccion, cou...
DROP TABLE IF EXISTS topics;
<gh_stars>0 CREATE PROCEDURE [dbo].[uspConversationDelete] @ConversationID uniqueidentifier AS SET NOCOUNT ON SET XACT_ABORT ON BEGIN TRAN UPDATE [dbo].[Conversation] SET Deleted=1, DeletedOn=GETDATE() WHERE [ConversationID] = @ConversationID; /*Updating Message As Deleted Also*/ UPDATE [Message...
<reponame>jayeshasawa001/Hospiltal-Management -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: latest -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 10, 2014 at 11:34 AM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
DROP EXTENSION IF EXISTS PostGIS; CREATE SCHEMA postgis; CREATE EXTENSION PostGIS WITH SCHEMA postgis; GRANT ALL ON postgis.geometry_columns TO PUBLIC; GRANT ALL ON postgis.spatial_ref_sys TO PUBLIC; VACUUM ANALYZE ge(hpc_bbox); CREATE TABLE public.spatial_ref_sys ( srid integer NOT NULL, auth_name character vary...
<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.5.35, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: chlink -- ------------------------------------------------------ -- Server version 5.5.35-1ubuntu1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESUL...
<reponame>Ankita2094/DataDesignAndManagement Select add.State, us.School_Name,add.City from `universities`.`us_universities` as `us` JOIN `universities`.`address` as `add` ON us.id = add.Univ_Id order by us.School_Name ASC limit 10;
<gh_stars>1-10 # Task: Write an SQL query to report the Capital gain/loss for each stock. # Problem Statement: https://leetcode.com/problems/capital-gainloss/ # Difficulty: Medium - MySQL query: SELECT stock_name, SUM(CASE WHEN operation = 'buy' THEN -price ELSE...
<reponame>ferdi1ansyah/TugasAkhir -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 17, 2021 at 09:17 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*...
define l_schema_name = &1 undefine 1 prompt .. Granting privileges to package &&g_package_name in schema &&l_schema_name prompt .. Granting CREATE PROCEDURE to &&l_schema_name grant create procedure to &&l_schema_name; prompt .. Granting CREATE TYPE to &&l_schema_name grant create type to &&l_schema_name; prompt .....
<filename>apps/backend/polly-app/src/main/resources/db/migration/V1.6__term_json_data.sql ALTER TABLE TERM ADD COLUMN DATA JSONB;
use CouriersDB go create or alter procedure usp_PackagesByCourier( @input nvarchar(50) ) as begin select o.ID as [Order ID], o.OrderDate as [Order Date], d.Name as [Dispatcher Name], d.PhoneNumber as [Dispatcher Phone], cl.Name as [Client Name], cl.PhoneNumber as [Client Phone], t.Type as [Type ...
-- file:plpgsql.sql ln:4074 expect:true create or replace function unreserved_test() returns int as $$ declare return int := 42
-- file:plpgsql.sql ln:1864 expect:true create temp table users(login text, id serial)
<gh_stars>0 -- Angreifer der Schmorschuppe DELETE FROM `creature_ai_scripts` WHERE (`creature_id`='40419'); INSERT INTO `creature_ai_scripts` VALUES ('4041901', '40419', '0', '6', '100', '31', '7000', '10000', '10000', '13000', '11', '75417', '1', '0', '', '', '', '', '', '', '', '', 'Angreifer der Schmorschuppen Scho...
-- MySQL dump 10.13 Distrib 5.5.53, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: selectadb -- ------------------------------------------------------ -- Server version 5.5.53-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@...
-- +migrate Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE `SourceNodes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `address` varchar(15) DEFAULT NULL, `createdAt` datetime NOT NULL, `updatedAt` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `source_nodes_address` (...
-- Convert schema '/var/tmp/Tapper-Schema-TestrunDB-1.002-SQLite.sql' to '/var/tmp/Tapper-Schema-TestrunDB-2.010009-SQLite.sql': BEGIN; COMMIT;
ALTER TABLE `transfers_sessions` CHANGE COLUMN `enrollment_session_id` `enrollment_session_id` BIGINT(19) NULL COMMENT 'Enrollment Session ID which the session was initiated from' AFTER `program_id`;
-- @testpoint:opengauss关键字reindex(非保留),作为角色名 --关键字不带引号-成功 drop role if exists reindex; create role reindex with password '<PASSWORD>' valid until '2020-12-31'; drop role reindex; --关键字带双引号-成功 drop role if exists "reindex"; create role "reindex" with password '<PASSWORD>' valid until '2020-12-31'; drop role "reindex...
DROP TABLE IF EXISTS followers
<filename>TraceFlags.sql<gh_stars>0 DBCC TRACEON (1204,-1) DBCC TRACEON (1222,-1) DBCC TRACESTATUS (-1) DBCC TRACEON (1499,-1) DBCC TRACESTATUS (-1) DBCC TRACEOFF (1499, -1)
<reponame>benaduggan/History-of-The-Brotherhood drop database brohodb; create database brohodb; \c brohodb BEGIN; CREATE TABLE position(id serial primary key, title text not null, description text, recurring smallint not null); CREATE TABLE person(id serial primary key, start_class text not null, first_name text n...
<filename>testschoolmanagement.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2020 at 03:57 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION...
CREATE TABLE [dbo].[Meeting] ( [MeetingId] UNIQUEIDENTIFIER CONSTRAINT [DF_Meeting_MeetingId] DEFAULT (newid()) NOT NULL, [CompanyId] UNIQUEIDENTIFIER NULL, [Name] NVARCHAR (100) NOT NULL, [CreatedDate] DATETIME2 (7) NOT NULL, [CreatedUserId] UNIQUEIDENTIFIER NOT NULL, [...
<reponame>Dmenk123/odontogram /* Navicat Premium Data Transfer Source Server : local-mysql Source Server Type : MySQL Source Server Version : 100413 Source Host : localhost:3306 Source Schema : odontogram Target Server Type : MySQL Target Server Version : 100413 File Encoding ...
<filename>usage-metrics-agent/src/main/resources/com/foilen/usagemetrics/agent/grabber/JamesGrabber-emails_count.sql SELECT count(*) FROM `JAMES_MAIL`
<filename>PostgreSQL/Courses/Relational-Database-and-SQL-Essentials.amigoscode.com/01-Creating-Database.sql -- Creating Database -- @BLOCK CREATE DATABASE learn; -- @BLOCK DROP DATABASE test;
<filename>conf/evolutions/default/1.sql<gh_stars>0 # --- !Ups -- create table "suppliers" ("id" BIGSERIAL NOT NULL PRIMARY KEY,"name" VARCHAR(254) NOT NULL,"desc" VARCHAR(254) NOT NULL); create table "users" ( "id" BIGSERIAL NOT NULL PRIMARY KEY, "login" VARCHAR(254) NOT NULL UNIQUE --unique username ); create t...
ALTER TABLE T_CM_ATM_CALENDAR_DAYS ADD CONSTRAINT FK_CM_ACD_AID FOREIGN KEY (ATM_ID) REFERENCES T_CM_ATM (ATM_ID);
<reponame>SINTEF-SIT/ADAPT-AIMS SELECT TABLE_NAME, TABLE_COLLATION FROM TABLES WHERE TABLE_SCHEMA = 'adapt'; SELECT * FROM COLUMNS WHERE TABLE_SCHEMA = 'adapt' AND TABLE_Name = 'ActivityIndexes' AND COLLATION_NAME IN('latin1_bin','latin1_general_ci','lat...
<reponame>8w/PHP.Gt<filename>Database/_CreateDatabase-002-User.sql create user :UserServer identified by :Password;
<reponame>bcgov/EDUC-STUDENT-API -- Student grade codes UPDATE STUDENT_GRADE_CODE SET LABEL = 'Secondary Ungraded', DESCRIPTION = 'Secondary ungraded' WHERE GRADE_CODE = 'SU'; UPDATE STUDENT_GRADE_CODE SET LABEL = 'Elementary Ungraded', DESCRIPTION = 'Elementary ungraded' WHERE GRADE_CODE = 'EU';
CREATE OR REPLACE TRIGGER "TBI_TAXONOMY_PUBLICATION" before insert ON taxonomy_publication for each row begin select seq_taxonomy_publication.nextval into :new.taxonomy_publication_id from dual; end; ALTER TRIGGER "TBI_TAXONOMY_PUBLICATION" ENABLE
<reponame>dylanngo95/vitess<gh_stars>1000+ drop table if exists onlineddl_test; create table onlineddl_test ( id int auto_increment, i int not null, bi bigint not null, iu int unsigned not null, biu bigint unsigned not null, primary key(id) ) auto_increment=1; drop event if exists onlineddl_test; delimiter...
CREATE OR REPLACE FUNCTION Cleanup_RemovedPosts() RETURNS void AS $$ BEGIN DELETE FROM PostRemovals WHERE Removed = 1 END; $$ LANGUAGE plpgsql;
<reponame>kane-armstrong/ef-sandbox MERGE INTO dbo.Users AS t USING ( VALUES ('26a42892-9eba-426a-822b-84c537c830cc', '<NAME>'), ('6115f347-6af9-4bcf-b431-0eb920f54882', '<NAME>') ) AS s (Id, [Name]) ON t.Id = s.Id WHEN MATCHED THEN UPDATE SET [Name] = s.[Name] WHEN NOT MATCHED BY TARGET THEN INSERT (Id, [Name]) V...
update dp6_japi_dev.sal_sale_documents_detail inner join dp6_tumipos.war_products on dp6_japi_dev.sal_sale_documents_detail.war_products_id = dp6_tumipos.war_products.id inner join dp6_tumipos.war_ms_categories on dp6_tumipos.war_ms_categories.id = dp6_tumipos.war_products.category_id set dp6_japi_dev.sal_sale_document...
alter profile DEFAULT limit PASSWORD_LIFE_TIME UNLIMITED; grant scheduler_admin to inspy_ap; grant create job to inspy_ap; grant create synonym to inspy_ap; grant execute on utl_http to inspy_ap; GRANT CREATE ANY DIRECTORY TO inspy_ap; grant create session to inspy_ap; grant create table to inspy_ap; grant create seq...
<reponame>dkrock24/lapizzeria<filename>assets/globalreport/install/sql/uninstall.sql DROP TABLE IF EXISTS trl_global_report_config; DROP TABLE IF EXISTS trl_global_report_chart; DROP TABLE IF EXISTS trl_global_report_inputs; DELETE FROM sys_menu_admin WHERE name='Global Report';
<reponame>yosef7/uip-bd2 /* Manejo de Errores ----------------- Cuando un error ocurre dentro de un procedimiento almacenado, es importante manejarlo apropiadamente, ya sea continuando o saliendo del bloque de código en ejecución y enviando un mensaje apropiado. Para declarar un manejador se usa la siguiente sentencia...
SELECT * FROM nobel WHERE winner LIKE '<NAME>'
<reponame>renol767/web-caffe-both-twenty<filename>pw2.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Jun 2021 pada 09.29 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION;...