sql
stringlengths
6
1.05M
<reponame>Minh0302/website_photos<filename>public/pinterest.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 08, 2022 lúc 05:23 PM -- Phiên bản máy phục vụ: 10.4.13-MariaDB -- Phiên bản PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZE...
<reponame>Santa69/evalju<filename>dump.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.5.54, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: library -- ------------------------------------------------------ -- Server version 5.5.54-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
SELECT COUNT(*) as count FROM sqlite_master WHERE type = 'table' AND name = 'elastic_logs'
SET DEFINE OFF; ALTER TABLE AFW_21_PLUGN_ARBRE_NOEUD ADD ( CONSTRAINT AFW_21_PLUGN_ARBRE_NOEUD_CK3 CHECK (INDIC_OUVRI_NOEUD in ('O','N')) ENABLE VALIDATE) /
<filename>SQL/t_lock.sql /* Navicat MySQL Data Transfer Source Server : conn Source Server Version : 50624 Source Host : cysoft.uicp.net:3306 Source Database : QueueDB Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2018-03-13 15:48:21 */ SET F...
<filename>scripts/utils/dm_create_study_roles.sql CREATE OR REPLACE FUNCTION openclinica_fdw.dm_create_study_roles( filter_study_name TEXT DEFAULT $$$$ ) RETURNS TEXT AS $BODY$ DECLARE r RECORD; study_username VARCHAR; study_name VARCHAR; BEGIN FOR r IN ...
<filename>SQL/user/form/translation/SPC_TRANSLATION_LST1.sql IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SPC_TRANSLATION_LST1]') AND type IN (N'P', N'PC')) /****** Object: StoredProcedure [dbo].[SPC_M001L_FND1] Script Date: 2017/11/23 16:46:46 ******/ DROP PROCEDURE [dbo].[SPC_TRANS...
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/fts1b.test_10.sql -- fts1b.test -- -- db eval { -- CREATE VIRTUAL TABLE t4 USING fts1([norm],'plusone',"invert"); -- } CREATE VIRTUAL TABLE t4 USING fts1([norm],'plusone',"invert");
<reponame>aman-gupta-1995/SQL-Data-Analysis-and-Data-Visualisation-Projects /**************************************/ /* Stored Procedures */ /**************************************/ DELIMITER $$ CREATE PROCEDURE get_clients() BEGIN SELECT * FROM clients; END $$ DELIMITER ; /**************************...
<reponame>smith750/kc<gh_stars>0 INSERT INTO KRIM_ROLE_T (ACTV_IND,DESC_TXT,KIM_TYP_ID,LAST_UPDT_DT,NMSPC_CD,OBJ_ID,ROLE_ID,ROLE_NM,VER_NBR) VALUES ('Y','COI Administrator',(SELECT KIM_TYP_ID FROM KRIM_TYP_T WHERE NM = 'UnitHierarchy'),sysdate,'KC-COIDISCLOSURE',SYS_GUID(),KRIM_ROLE_ID_BS_S.NEXTVAL,'COI Administrato...
:setvar Login N'REDMOND\glenga' :setvar Password N'<PASSWORD>' --<snippetsp_MergeDynamicPubPlusPartition> -- To avoid storing the login and password in the script file, the value -- is passed into SQLCMD as a scripting variable. For information about -- how to use scripting variables on the command line and in...
DO $$ BEGIN IF EXISTS(SELECT column_name FROM information_schema.columns WHERE table_name = 'jobs' AND column_name = 'last_modified') THEN ALTER TABLE jobs DROP last_modified; END IF; END $$
<reponame>amadeoas/spring-customerproducts<filename>src/main/resources/db/hsqldb/populateDB.sql INSERT INTO locations VALUES (1, ''); INSERT INTO locations VALUES (2, 'LONDON'); INSERT INTO locations VALUES (3, 'LIVERPOOL'); INSERT INTO customers VALUES (1, 1, 'James', 'Carter'); INSERT INTO customers VALUES (2, 2, 'H...
<gh_stars>10-100 GRANT all privileges on *.* to 'test@%' IDENTIFIED BY 'test'; flush privileges; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<PASSWORD>'); exit
<gh_stars>1-10 prompt prompt === Deploy Schema [schema_b] prompt connect &usr_schema_b/&pwd_schema_b@&tns_name @./.service/sqlplus_setup.sql @./.service/check_service_tables.sql @./.service/deploy_start.sql @./.service/drop_source_code.sql prompt Deploy source code. @./.service/install_object_1_schema_b_1_FUNCTION.sql ...
<reponame>eliana-flo/folio-analytics<filename>sql/report_queries/erm/erm_order_status.sql /** Documentation of ERM ORDER STATUS QUERY PURPOSE This report cluster covers reports on the status of purchase orders. Check for currently open orders, as well as Pending "Not Yet Published" titles and were updated in the last ...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 21, 2016 at 02:07 AM -- Server version: 5.7.9 -- PHP Version: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
<reponame>dineshkummarc/cuyahoga-1<filename>Web/Install/Core/Database/mssql2000/0.8.2.sql CREATE TABLE cuyahoga_user( userid int identity(1,1) NOT NULL CONSTRAINT PK_cuyahoga_user1 PRIMARY KEY, username varchar(50) NOT NULL, password varchar(100) NOT NULL, firstname varchar(100) NULL, lastname varchar(100) NULL,...
<filename>openGaussBase/testcase/KEYWORDS/Declare/Opengauss_Function_Keyword_Declare_Case0018.sql -- @testpoint:opengauss关键字declare(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists declare; create database declare; drop database declare; --关键字带双引号-成功 drop database if exists "declare"; create database "declare"; drop...
<gh_stars>0 USE [SFA_CourseDirectory] GO /****** Object: StoredProcedure [dbo].[dfc_GetProviderUKPRNs] Script Date: 01/02/2019 15:32:13 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Descript...
<reponame>vitordorneless/kids<gh_stars>0 select * from log;
<reponame>ishajoglekar/Blog-Management -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 29, 2020 at 01:43 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; ...
INSERT INTO user VALUES(1, "<EMAIL>", "$2y$10$/79rg6hm3pA5VK4416RloufmuPj7CNTqtA6HaOEkHyPmqbyycruhO", "Andrew", "Moore", "Hey!", 2, 0, 1); INSERT INTO user VALUES(2, "<EMAIL>", "$2y$10$A0T.uIw.JNvnf1ChY/wCxedZ6Y/ht.RfSKkVWBjnbgtDAFLgR74ri", "Amy", "Mathis", "Hello, I am the Programme Leader for Computing courses!", NUL...
<gh_stars>0 insert into habitacion (id_habitacion, id_casa, area, amoblado, precio) values (1, 5, 348, 'Aliquam quis turpis eget elit sodales scelerisque. Mauris sit amet eros. Suspendisse accumsan tortor quis turpis.', '6229799.58'); insert into habitacion (id_habitacion, id_casa, area, amoblado, precio) values (2, 26...
CREATE TABLE IF NOT EXISTS People ( id INTEGER PRIMARY KEY AUTOINCREMENT, cpf INTEGER UNIQUE, name TEXT NOT NULL, birthday INTEGER ); CREATE TABLE IF NOT EXISTS Question ( id INTEGER PRIMARY KEY AUTOINCREMENT, statement TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS Alternative ( id INTEGER ...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "players" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "goals" integer, "height" integer, "country_id" integer, "previous_team_id" integer); INSERT INTO players VALUES(1,'Will',14,178,2,NULL); INSERT INTO players VALUES(2,'Takuy...
<reponame>ConjureLabs/db<filename>test/helpers/fixtures/tables/accounts.sql CREATE TABLE account ( id SERIAL PRIMARY KEY, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, added TIMESTAMP WITH TIME ZONE NOT NULL );
<reponame>dvsa/poc-new-selenium select ifnull(MAX(person.username), 'VARC0000') as username from person where person.username like "VARC%"
delete from eg_roleaction where roleid in (select id from eg_role where upper(name) = 'ULB OPERATOR') and actionid in (select id from eg_action where name in('CollectionPTIS','Property Tax Collection','CollectTax-Form', 'Generate Collection Bill', 'Mutation Fee Payment', 'Mutation Fee Payment Search', 'Mutation Fee Pa...
<reponame>jerelynlee/census<gh_stars>10-100 -- PCT15. HUSBAND-WIFE AND UNMARRIED-PARTNER HOUSEHOLDS BY SEX OF PARTNER BY PRESENCE OF RELATED AND OWN CHILDREN UNDER 18 YEARS -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_pct15 ( geoid VARCHAR(1...
<reponame>PhilippeBinggeli/Hands-On-Data-Science-with-SQL-Server-2017 SELECT 1 / 2 -- result is NOT 0.5 but 0
-- SELECTion Box -- SELECT statements -- to retrieve data from one or more columns. You'll also learn how to apply filters to both numeric and text data, and sort the results. -- SELECT the country column FROM the eurovision table SELECT country FROM eurovision; -- Now -- that you've practiced how to select one colum...
-- 2018-01-19T17:31:36.215 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,831,540599,TO_TIMESTAMP('2018-01-19 17:31:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',1...
<gh_stars>0 INSERT INTO KRIM_ENTITY_T (ENTITY_ID,ACTV_IND,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES (KRIM_ENTITY_ID_S.NEXTVAL,'Y',SYSDATE,SYS_GUID(),1) / INSERT INTO KRIM_ENTITY_NM_T (ENTITY_NM_ID,ENTITY_ID,FIRST_NM,LAST_NM,NM_TYP_CD,DFLT_IND,ACTV_IND,LAST_UPDT_DT,OBJ_ID,VER_NBR) VALUES (KRIM_ENTITY_NM_ID_S.NEXTVA...
USE employee_db; INSERT INTO department (name) VALUES ("Enginner"), ("Intern"), ("Manager"); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("John", "Dee", 1, 1), ("James", "Bond", 2, 1), ("Roy", "Nugget", 3, 1); INSERT INTO role (title, salary, role_id) VALUES ("Engineer", 80000.00, 1), (...
 CREATE PROCEDURE [tSQLt].[Private_Run] @TestName NVARCHAR(MAX), @TestResultFormatter NVARCHAR(MAX) AS BEGIN SET NOCOUNT ON; DECLARE @FullName NVARCHAR(MAX); DECLARE @TestClassId INT; DECLARE @IsTestClass BIT; DECLARE @IsTestCase BIT; DECLARE @IsSchema BIT; DECLARE @SetUp NVARCHAR(MAX);SE...
ALTER TABLE transactions DROP COLUMN block_id
<reponame>viswaratha12/dbwarden /****** Object: Table [dbo].[T_Archived_Output_File_Collections_XRef] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Archived_Output_File_Collections_XRef]( [Archived_File_Member_ID] [int] IDENTITY(1,1) NOT NULL, [Archived_File_ID] [int] NOT NULL...
<filename>month02/day08/exercise03.sql 编写一个存储过程,传入一个学生姓名,打印出这个学生的信息,并且在爱好表中加入这个学生,喜欢画画 create procedure like_draw1(in sname varchar(30)) begin select * from cls where name=sname; insert into hobby(name,hobby,price) values(sname,"draw",188000); end $$
BEGIN; DROP SCHEMA IF EXISTS fb CASCADE; CREATE SCHEMA fb; SET search_path TO fb,"$user",public; CREATE EXTENSION "uuid-ossp"; CREATE TABLE "user" ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), created timestamptz NOT NULL DEFAULT now(), full_name text NOT NULL DEFAULT '' ); CREATE TA...
<gh_stars>100-1000 # Quote all table names with '{' and '}', and prefix all system tables with 'core.' CREATE TABLE `{page}` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL DEFAULT '', `name` VARCHAR(64) DEF...
<filename>hasura/migrations/1608842153339_add_expired_JobStatus/down.sql DELETE FROM "JobStatus" WHERE "name" = 'EXPIRED';
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2017 at 10:03 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
declare @dstart datetime declare @dend datetime DECLARE @yy INT DECLARE @mm INT DECLARE @dd INT DECLARE @getmm INT DECLARE @getdd INT set @dstart = getdate() set @dend = '2017-11-29' SET @yy = DATEDIFF(yy, @dstart, @dend) SET @mm = DATEDIFF(mm, @dstart, @dend) SET @dd = DATEDIFF(dd, @dstart, @dend) SET @getmm =...
<filename>webapp/mysql/db/4_Add_Chair.sql ALTER TABLE chair ADD ngpopularity INTEGER AS (-popularity) NOT NULL; ALTER TABLE chair ADD INDEX index_ngpopularity_id (ngpopularity,id); ALTER TABLE chair ADD INDEX index_price_id (price,id); ALTER TABLE chair ADD INDEX index_price_stock (price,stock); ALTER TABLE chair ADD ...
<filename>dump.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 11.3 -- Dumped by pg_dump version 11.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set...
create database usuarios; use usuarios; create table usuarios ( usuario_id INT NOT NULL AUTO_INCREMENT, usuario VARCHAR (30), senha VARCHAR(35), email VARCHAR(35), data_cadastro DATETIME NOT NULL, PRIMARY KEY(usuario_id));
SELECT * FROM Questions
<filename>modules/Admin/Database/Seeders/config_settings.sql INSERT INTO `config_settings` (`id`, `config_constant`, `config_value`, `description`, `config_category_id`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES (1, 'C_META_DESC', 'VLCC Health Care Ltd.', 'Home Page Meta Description', 1, 1, 1, '201...
<gh_stars>0 # **************************************************** # MySQL Ver 14.14 Distrib 5.7.17 # # Host: 127.0.0.1 # Database: manage_platform # # Time: 2017-5-5 # # *************************************************** # Dump of table user # ------------------------------------------------------------ -- Create s...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: -- 伺服器版本: 10.1.38-MariaDB -- PHP 版本: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
<filename>db/adresni_posta_schema.sql<gh_stars>1-10 CREATE TABLE adresni_posta ( id integer NOT NULL, psc integer, nazev character varying(255), plati_od timestamp without time zone, plati_do timestamp without time zone, created_at timestamp without time zone, updated_at timestamp without ti...
<reponame>a-fandy/U-KK -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2019 at 10:29 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:0...
-- get command, text and ETA for every command but this one SELECT session_id as SPID, command, a.text AS Query, start_time, percent_complete, dateadd(second,estimated_completion_time/1000, getdate()) as estimated_completion_time FROM sys.dm_exec_requests r CROSS APPLY sys.dm_exec_sql_text(r.sql_han...
<reponame>hifi/matrix-media-repo -- MEDIA CREATE TABLE IF NOT EXISTS media ( origin TEXT NOT NULL, media_id TEXT NOT NULL, upload_name TEXT NOT NULL, content_type TEXT NOT NULL, user_id TEXT NOT NULL, sha256_hash TEXT NOT NULL, size_bytes BIGINT NOT NULL, location TEXT NOT NULL, creation_ts BIGINT NOT NULL ); ...
-- 2017-09-04T12:10:01.789 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,544485,0,TO_TIMESTAMP('2017-09-04 12:10:01','YYYY-MM-DD HH24:MI:SS'),100,'de....
<reponame>cniesen/kpme<filename>core/impl/src/test/config/sql/PrincipalAccrualRanServiceTest.sql -- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain ...
-- Select the employee number, last name, first name, sex, and salary of all employees, ordered by employee number --Below query retrieves all employees along their names, gender and salary. SELECT e.employee_no as "employee number", e.last_name as "last name", e.first_name as "first name", e.sex, s.emp_salary...
alter type shared.digital_contract_history_state rename to digital_contract_history_state_old; create type shared.digital_contract_history_state as enum ('INTERNAL_CREATED', 'DOCUSIGN_CREATED', 'DOCUSIGN_CREATE_FAILED', 'INTERNAL_UPDATED', 'DOCUSIGN_UPDATED', 'DOCUSIGN_UPDATE_FAILED', 'DOCUSIGN_SENT', 'DOCU...
<filename>administrator/components/com_virtuemart/install/uninstall_required_data.sql<gh_stars>0 -- Remove all required data DELETE FROM `#__virtuemart_permgroups`; DELETE FROM `#__virtuemart_countries`; DELETE FROM `#__virtuemart_currencies`; DELETE FROM `#__virtuemart_paymentmethods`; DELETE FROM `#__virtuemart_ship...
<filename>talend/di/cdc/cdc_dwh.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.1.61, for Win64 (unknown) -- -- Host: localhost Database: cdc_dwh -- ------------------------------------------------------ -- Server version 5.1.61-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
<filename>src/main/resources/db_changelog/scripts/000_create_tables.sql SET CHARACTER SET 'utf8'; -- Create tables CREATE TABLE `final_results` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `color` int(1) DEFAULT '3', PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ); CREATE TABLE ...
<reponame>resultdoo/planning-poker ALTER TABLE "public"."scrum_cards" DROP COLUMN "user_id";
DELETE FROM DRAFT_KNOWLEDGES WHERE DRAFT_ID = ? ;
<gh_stars>0 /************************* Check SQL Server version ***********************/ SELECT @@VERSION; /*** Check data allocated in memory by database **/ SELECT DB_NAME(database_id) as DB, file_id, page_id, page_type, row_count FROM sys.dm_os_buffer_descriptors ORDER BY DB_NAME(database_id); ...
<filename>database.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 28-Jun-2020 às 22:30 -- Versão do servidor: 5.7.26 -- versão do PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
BEGIN TRANSACTION; CREATE TABLE `permissions` ( `name` TEXT, PRIMARY KEY(name) ); INSERT INTO `permissions` (name) VALUES ('customer'), ('auditor'), ('manager'), ('director'), ('master'); CREATE TABLE "operations" ( `id` INTEGER, `name` TEXT, `public_name` TEXT, PRIMARY KEY(id) ); CREATE TABLE "keys" ( `valu...
<filename>prisma/migrations/20210724165407_last_login_optional/migration.sql -- AlterTable ALTER TABLE "User" ALTER COLUMN "lastLogin" DROP NOT NULL;
#E210 : L’utilisateur ‘fernand’ peut-il retirer (supprimer) l’utilisateur ‘Raoul’ du SGBD ? Si oui, écrire la requête. DROP USER 'raoul' -- Cela fonctionnera également pour TOUS LES AUTRES UTILISATEURS DUU MÊME NIVEAU
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2018 at 12:06 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
ALTER TABLE Retros_Users DROP CONSTRAINT FK_Retros_Users; ALTER TABLE Messages DROP CONSTRAINT FK_MessageRetro; ALTER TABLE Messages DROP CONSTRAINT PK_Messages_PrimaryKey; ALTER TABLE Retros DROP CONSTRAINT PK_Retros_PrimaryKey; ALTER TABLE FlowsStore DROP CONSTRAINT PK_FlowsStore_PrimaryKey; DROP TABLE Retros_Users; ...
declare -- cursor declaration cursor c_persons is select name, salary from employees where salary > 10000; -- variable declaration v_name varchar2(100); v_salary number; begin open c_persons; loop fetch c_persons into v_name, v_salary; exit when c_persons#notfound; dbms_out...
select `un_ami_pour_la_vie`.`user`.`id` AS `id`,`un_ami_pour_la_vie`.`user`.`firstName` AS `firstName`,`un_ami_pour_la_vie`.`user`.`lastName` AS `lastName`,`un_ami_pour_la_vie`.`user`.`username` AS `username`,`un_ami_pour_la_vie`.`user`.`email` AS `email`,`un_ami_pour_la_vie`.`role`.`roleName` AS `roleName` from (`un_a...
INSERT INTO sunreading.user_statistic (id, creation_time, coin, level, notes, point, read_num, test_passes) VALUES (1, '2015-04-18 12:49:28', 12, 1, 14, 51, 14, 123); INSERT INTO sunreading.user_statistic (id, creation_time, coin, level, notes, point, read_num, test_passes) VALUES (2, '2015-04-18 13:00:46', 13, 2, 31, ...
-- Row Level Security -- Create sample Trips and Customer tables DROP TABLE dbo.TripTable; CREATE TABLE dbo.TripTable ( [tripId] INT NOT NULL, [driverId] INT NOT NULL, [customerId] INT NOT NULL, [tripDate] INT, [startLocation] VARCHAR (40), [endLocation] VARCHAR (40) ) WITH ( CLUSTERED...
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/ad23ab1b.sql -- file:alter_generic.sql ln:264 expect:true SELECT nspname, opcname, amname, rolname FROM pg_opclass o, pg_am m, pg_namespace n, pg_authid a WHERE o.opcmethod = m.oid AND o.opcnamespace = n.oid AND o.opcowner = a.oid AND n.nsp...
prompt --application/shared_components/files/css_20_1_flows4apex_dark_css begin -- Manifest -- APP STATIC FILES: 100 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_workspace_id=>2400405578329584 ,p_default_application_id=>100 ,p_default_i...
<reponame>kepelrs/nestjs-prisma-crud /* Warnings: - Added the required column `password` to the `User` table without a default value. This is not possible if the table is not empty. - Added the required column `exampleForbiddenProperty` to the `Comment` table without a default value. This is not possible if the ...
SET @preparedStatement = (SELECT IF( EXISTS( SELECT 1 FROM INFORMATION_SCHEMA.STATISTICS WHERE table_name = 'Threads' AND table_schema = DATABASE() AND column_name = 'DeleteAt' ) > 0, 'ALTER TABLE Threads DROP COLUMN DeleteAt;', 'SELECT 1;' )); PREPARE removeColumnIfExis...
undefine olduser define olduser = &1 @do_tabletriggers disable r_hour -- Hourly for lc and yakima stored their end of hour period as the date hour -- UC store the begin of the hour in date hour insert into r_hour (site_datatype_id,start_date_time,end_date_time,date_time_loaded,value,source_id,validation) sele...
<filename>Sql/Schema/Indexes/IndexDownloadQueueUrls.sql BEGIN TRY CREATE INDEX [IndexDownloadQueueUrl] ON [dbo].[DownloadQueue] ([url]) END TRY BEGIN CATCH END CATCH GO
Delete FROM Station
{% macro config() %} {% endmacro %}
<gh_stars>10-100 ------------------------------------------------------------------- -- Schema and data migration changes for any decimal places support ------------------------------------------------------------------- ALTER TABLE "pricedevent" ALTER COLUMN "eventprice" TYPE NUMERIC; UPDATE "pricedevent" SET "eventpr...
<reponame>subinsoman/seahorse INSERT INTO "users" (id, created, lastmodified, version, username, password, email, authorities, givenname, familyname, active, phonenumber, verified, origin, external_id, identity_zone_id, salt, passwd_lastmodified, legacy_verification_behavior) VALUES ...
<reponame>assessorgeneral/ConQAT create or replace trigger trg_test before insert on foo for each row begin if inserting then foo (); end if; end; / Show errors;
<filename>sandiego.gov/businesses/test/query.sql attach database '../build/sandiego.gov/businesses-orig-1.0.3/businesses.db' as b; attach database '../build/sandiego.gov/businesses-orig-1.0.3/ck_addresses.db' as ck; attach database '../build/sandiego.gov/businesses-orig-1.0.3/dstk_addresses.db' as dstk; DROP VIEW IF ...
CREATE DATABASE IF NOT EXISTS blog; USE blog; CREATE TABLE IF NOT EXISTS users( id INT AUTO_INCREMENT NOT NULL, role VARCHAR(20), name VARCHAR(255), surname VARCHAR(255), email VARCHAR(255), password VARCHAR(255), image VARCHAR(255), CONSTRAINT pk_users PRIMARY KEY(id) ) ENGINE=InnoDb; CREATE TAB...
-- the last year's snowfall observations in Virginia select s.name, o.year_date, count(*) from noaa_ghcn_pds.observations o join noaa_ghcn_pds.stations s on o.id = s.id where o.year_date >= 1000 * extract(year from current_timestamp)::int and o.element = 'SNOW' and s.state = 'VA' and o.data_value > 0 group by 1, 2 orde...
<reponame>mvmaniac/basic-mybatis drop table if exists tb_board cascade; -- test db를 다른 쪽에서도 쓰기 때문에 넣음 drop table if exists tb_member cascade; create table tb_member ( seq bigint not null auto_increment, email varchar(50) not null, name varchar(30) not null, passwd ...
<reponame>windylaugit/windyland.com -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-07-08 13:07:52 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Jeu 11 Juin 2015 à 19:38 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 100121 Source Host : localhost:3306 Source Database : bengkel Target Server Type : MYSQL Target Server Version : 100121 File Encoding : 65001 Date: 2019-07-04 21:44:38 */ SET FOREIGN_KEY_CHECKS=0; --...
insert into comment (content, user_id, restaurant_id) values ('incentivize wireless deliverables', 76, 45); insert into comment (content, user_id, restaurant_id) values ('drive rich e-services', 12, 54); insert into comment (content, user_id, restaurant_id) values ('implement out-of-the-box e-business', 91, 50); insert...
select round(sum(lat_n),2), round(sum(long_w),2) from station;
/* SQLyog Community v12.4.1 (64 bit) MySQL - 10.1.22-MariaDB : Database - room_maintenance2 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_K...
<filename>admin/application/install/updates/1.2.1.mysql.sql<gh_stars>10-100 -- Secretary 1.2.1 (2015-09-03) ALTER TABLE `#__secretary_subjects` CHANGE `zip` `zip` VARCHAR(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
<reponame>Don-Cryptus/clippy -- CreateTable CREATE TABLE "Clipboard" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "type" TEXT NOT NULL, "content" TEXT, "width" INTEGER, "height" INTEGER, "size" TEXT, "blob" BLOB, "star" BOOLEAN NOT NULL DEFAULT false, "createdDate" DATETIME NOT...
-- +----------------------------------------------------------------------------+ -- | <NAME> | -- | <EMAIL> | -- | www.idevelopment.info | -- |-----------------...
<filename>III_semester/dbms/db2/triggers.sql -- trigerris tikrina ar komandoje nera uzregistruota daugiau nei 12 zaideju CREATE TRIGGER tuba7791.Zaideju_sk NO CASCADE BEFORE INSERT ON tuba7791.Zaidejas REFERENCING NEW AS Naujas FOR EACH ROW MODE DB2SQL WHEN ((SELECT COUNT(*) FROM tuba7791.Zaidejas AS Z WHER...