sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 20, 2020 at 06:23 AM -- Server version: 5.7.29-0ubuntu0.18.04.1 -- PHP Version: 7.2.24-0ubuntu0.18.04.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<gh_stars>0 -- tc3-sqlite3-sample-data.sql -- Copyright © 2019-2020 <NAME>. All rights reserved. -- -- Sample data. -- -- Customers insert into customers (customer_id, email, password, first_name, last_name) values (1, '<EMAIL>', '<PASSWORD>', 'Kettie', 'Skeech'); insert into customers (customer_id, email, password, ...
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Čtv 31. kvě 2018, 18:25 -- Verze serveru: 10.1.31-MariaDB -- Verze PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
CREATE TABLE IF NOT EXISTS `character_recipeshoplist` ( `charId` int(10) unsigned NOT NULL DEFAULT '0', `Recipeid` decimal(11,0) NOT NULL DEFAULT '0', `Price` bigint(20) NOT NULL DEFAULT '0', `Pos` int(5) NOT NULL DEFAULT '0', PRIMARY KEY (`charId`,`Recipeid`) );
<gh_stars>1-10 use water_middle_server; CREATE TABLE PRODUCT_INFO ( SF_CODE INTEGER(3) NOT NULL, INNER_IP VARCHAR(15) NULL, MODE CHAR(1) NULL, STATE CHAR(1) NULL, REGISTER CHAR(1) NULL, STAMP BIGINT NOT NULL ); ALTER TABLE...
USE ginger_finance; DROP FUNCTION IF EXISTS record_trigger_action; DELIMITER $$ CREATE FUNCTION record_trigger_action(vname VARCHAR(1024), vcode VARCHAR(125), vrowid INT, vstatus VARCHAR(128), vmsg VARCHAR(1024)) RETURNS TINYINT BEGIN /*触发器日志*/ INSERT INTO system_trigger_log(`name`, `code`, `row_id`, `status`...
<gh_stars>10-100 -- MySQL dump 10.13 Distrib 5.7.15, for Linux (x86_64) -- -- Host: localhost Database: Parliament_Elections -- ------------------------------------------------------ -- Server version 5.7.13-0ubuntu0.16.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
CREATE TABLE Hindi_Songs (SongID Integer PRIMARY KEY,SongName varchar(100),ArtistID Integer NOT NULL,ArtistName varchar(100), Lyrics varchar(10000),ReleaseDate Date,Rating Integer,TotalReviews Integer,GenreID Integer,MoodID Integer, FilmID Integer,SongFilePath varchar(200),Image Blob(16),FOREIGN KEY (Genre...
/* .PURPOSE Get list of Secrets and the associated secrets by Template */ SELECT * FROM ( SELECT s.SecretId ,s.SecretName ,s.SecretTypeID ,rs.ResetSecretId AS [AssociatedSecretId] ,privs.SecretName AS [AssociatedSecretName] ,rs.AssociatedSecretType FROM tbSecret s...
<reponame>NHMD/svampeatlas CREATE TABLE Naturtyper ( _id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, verbatimId CHAR NOT NULL, name VARCHAR(64) NOT NULL ) ENGINE = InnoDB DEFAULT CHARSET UTF8; INSERT INTO Naturtyper (verbatimId, name) VAlUES ('A' , 'ædel-løvskov på leret eller kalkrig bund'), ('B' ,'løvskov på morbun...
<reponame>ManavTriesStuff/anuvaad<filename>anuvaad-api/anuvaad-dashboard/user-master-service/src/main/resources/db/migration/ddl/V20191104120101__add_manager_api_actions.sql INSERT INTO actions(id,name,display_name, url, service_code, enabled, created_user, created_date, update_user, update_date) value (177,'Add Store ...
<filename>config/'dailyticks_000001_sz'.sql -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: localhost Database: stocktrading -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHAR...
## Have mysql execute these commands to get the testing environment up and ## running: ## mysql -h 127.0.0.1 -u root -p < init.sql # Recommended by datajoint SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'; # (Re-)create the user DROP USER IF EXISTS 'user'@'%'; CREATE USER 'user...
INSERT INTO t_alter_column values('edi_desadvline_pack','C_UOM_ID',null,'NOT NULL',null); -- 2020-01-10T08:33:56.914Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('edi_desadvline_pack','MovementQty','NUMERIC',null,null) ; -- 2020-01-10T08:33:56.915Z -- I forgot...
ALTER TABLE entreprise DROP COLUMN nombre_salarie; ALTER TABLE entreprise DROP COLUMN numero_cafat; ALTER TABLE entreprise ADD nombre_salarie INTEGER; ALTER TABLE entreprise ADD numero_cafat INTEGER;
select * from [MATours] where [Slug] = @Slug and [LocaleCd] = @LocaleCd and [DeleteFlag] = 0
# --- !Ups update user set mobile_verified = 'false' where mobile_verified is null; update user set is_ride_in_progress = 'false' where is_ride_in_progress is null; # --- !Downs
<reponame>blzb/gym-app-be<filename>src/main/resources/data.sql<gh_stars>0 insert INTO persona(nombre, apellido, boleta, password, sexo, carrera, fecha_nacimiento) values( 'Juan', 'Perez','2008600903','test', 'Hombre', 'Lic. en Administración Industrial', '1988-09-08'); insert into estado(fecha, estatura, peso, persona...
ALTER TABLE `dbs_dois`.`doi_client` ADD COLUMN `repository_symbol` varchar(255) CHARACTER SET 'utf8' NULL DEFAULT "." AFTER `datacite_prefix`; ALTER TABLE `dbs_dois`.`doi_client` ADD COLUMN `in_production` TINYINT NULL DEFAULT 0 AFTER `repository_symbol`;
<reponame>LanceByun/DQUEEN_OMOP_CDM_Version --barPlot__default (CDM Provider : Proportion of foreginkey (provider)) select stratum3 as cateogry ,stratum2 as stratum1 ,cast(count_val as int) as count_val from @resultSchema.dq_check_result where check_id = 'C35';
CREATE TABLE IF NOT EXISTS BILLING_FREQUENCY ( ID VARCHAR(36) UNIQUE NOT NULL, BILLING_FREQUENCY_NAME VARCHAR(500) NOT NULL, NAME VARCHAR(500) NOT NULL ); CREATE TABLE IF NOT EXISTS ACCOUNT_CONTACT_ROLE ( ACCOUNT_CONTACT_ROLE_TYPE VARCHAR(500), ID VARCHAR(36) UNIQUE NOT NULL, ACTIVE_FROM_DATE DATE, ACTIV...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS twitter CHARACTER SET utf8 COLLATE utf8_general_ci; -- Tábla szerkezet ehhez a táblához `admin` -- CREATE TABLE `admin` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, ...
--Creaet List(have no NULL value) partition with time type and retrieve infomation from db_partition create table list_test(id int not null, test_time time, test_date date, test_timestamp timestamp, primary key(id,test_time)) PARTITION BY LIST (test_time) ( PARTITION p0 VALUES IN ('...
/* SQLyog Ultimate v11.33 (64 bit) MySQL - 10.1.31-MariaDB : Database - apikk-wp ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2021 at 01:36 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, uuid VARCHAR(32) NOT NULL UNIQUE, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() );
<reponame>Jason-Turan0/nerd-dinner CREATE TABLE NERD_DINNER_DESCRIPTIONS ( NERD_DINNER_DESCRIPTION_PK INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL, NERD_DINNER_FK INT NOT NULL, LANGUAGE_CODE NVARCHAR2(10) NOT NULL, TITLE NVARCHAR2(255) NOT NULL, ...
<filename>src/SFA.DAS.ASK.Database/Tables/OrganisationContacts.sql CREATE TABLE [dbo].[OrganisationContacts]( [Id] [uniqueidentifier] NOT NULL, [FirstName] [nvarchar](250) NOT NULL, [LastName] [nvarchar](250) NOT NULL, [JobRole] [nvarchar](250) NULL, [PhoneNumber] [nvarchar](250) NOT NULL, [Email] [nvarchar](250)...
INSERT INTO price (currency, price, vehicle_id) VALUES ('dollar', 100, 1); INSERT INTO price (currency, price, vehicle_id) VALUES ('EGP', 1000, 2); INSERT INTO price (currency, price, vehicle_id) VALUES ('dollar', 10, 3); INSERT INTO price (currency, price, vehicle_id) VALUES ('Euro', 200, 4);
<filename>C# DB Module/DB Basics PL-SQL/ExamPreparations/Exam - 15 December 2016/Exam - 15 December 2016/17. Send Message.sql CREATE PROC udp_SendMessage @UresID INT, @ChatID INT, @Content VARCHAR(MAX) AS BEGIN DECLARE @IsUserInChat INT = (SELECT COUNT(*) FROM UsersChats WHERE UserId = @UresID AND ChatId = @ChatID) ...
CREATE TABLE order_product ( order_id int REFERENCES orders, product_id int REFERENCES product );
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 21, 2019 at 12:02 PM -- Server version: 5.7.24 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
<filename>SQL/Revising the Select Query I.sql /*Problem Link: https://www.hackerrank.com/challenges/revising-the-select-query/*/ SELECT * FROM CITY WHERE POPULATION>100000 AND COUNTRYCODE="USA";
CREATE SEQUENCE IF NOT EXISTS hibernate_sequence START WITH 1 INCREMENT BY 1; CREATE TABLE maltokens ( user_id UUID NOT NULL, created_at TIMESTAMP with time zone, updated_at TIMESTAMP with time zone, mal_id INTEGER, refresh_token TEXT, access_token TEXT, CONSTR...
DROP TABLE IF EXISTS departments; DROP TABLE IF EXISTS dept_emp; DROP TABLE IF EXISTS dept_manager; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS salaries; DROP TABLE IF EXISTS titles; CREATE TABLE departments ( dept_no character(50) NOT NULL, dept_name character varying(255) NOT NULL ); CREATE TABLE d...
<filename>db/patches/0630_contributor_roles.sql<gh_stars>10-100 drop table contributor_role_type cascade; alter table person add orcid varchar unique; alter table person add constraint ck_orcid check ( orcid similar to '\A\d{4}-\d{4}-\d{4}-\d{4}\Z' ); alter table person drop column email; alter table person drop c...
<filename>sql/updates/0.10/5547_mangos_mangos_string.sql DELETE FROM mangos_string WHERE entry in (290); INSERT INTO mangos_string VALUES (290,'Ticket of %s (Last updated: %s) (Category: %i):\n%s ',NULL,NULL,NULL,NULL,NULL,NULL,NULL);
create table tasks ( task_id text UNIQUE, name text not null default '', description text not null default '', is_done boolean default false, user_id text not null default '', task_status integer not null default 0, deadline timestamp with time zone default current_timestamp, created_at ...
<reponame>tharangar/k8s-webserver SET @fieldOptionOrder := 0; SELECT field_options.order INTO @fieldOptionOrder FROM field_options WHERE code = 'Nationalities'; UPDATE field_options SET field_options.order = field_options.order-1 WHERE field_options.order >= @fieldOptionOrder; DELETE FROM field_options WHERE code = 'Na...
<filename>piwheels/initdb/sql/update_piwheels_0.17_to_0.18.sql UPDATE configuration SET version = '0.18'; DELETE FROM packages WHERE skip = 'deleted'; DELETE FROM versions WHERE skip = 'deleted'; CREATE TABLE package_names ( package VARCHAR(200) NOT NULL, name VARCHAR(200) NOT NULL, seen TIMESTAMP D...
<filename>article.sql -- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Jeu 31 Mars 2016 à 02:24 -- Version du serveur : 5.6.28-0ubuntu0.15.10.1 -- Version de PHP : 5.6.11-1ubuntu3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'pa.ipv_inicio_promedio_vacacion') AND type IN ( N'S', N'U' ) ) /****** Object: Table [pa].[ipv_inicio_promedio_vacacion] Script Date: 16-01-2017 3:28:27 PM ******/ DROP TABLE [pa].[ipv_inicio_prome...
<reponame>maurinfo/sanpai<filename>dbscript/permitlist.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Jan 28, 2019 at 04:37 PM -- Server version: 5.7.21 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 20 Aug 2019 la 21:03 -- Versiune server: 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"; /*!40...
<gh_stars>1-10 DROP DATABASE IF EXISTS lego; CREATE DATABASE lego; \c lego; CREATE TABLE products ( product_id SERIAL PRIMARY KEY, product_name TEXT NOT NULL, gallery jsonb ); COPY products (product_id, product_name, gallery) FROM '/Users/rms/Desktop/HR/hrsjo/SDC/gallery/productsPostgres.csv'DELIMITER '|'CSV ...
<reponame>zidyazid/first-repository -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Apr 2020 pada 12.37 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
 create table RoomDevice ( Gateway nvarchar(16) not null, Id nvarchar(64) not null, RoomId uniqueidentifier not null, constraint PK_RoomDevice primary key (Gateway, Id), constraint FK_RoomDevice_Room foreign key (RoomId) references Room (Id) )
SELECT onetable.f1, twotable.f1 FROM onetable LEFT JOIN twotable FORCE INDEX FOR JOIN (idx_index) ON onetable.f1 = twotable.f1
-- -- Type: MATERIALIZED_VIEW; Owner: BIOMART; Name: BIO_LIT_INT_MODEL_MV -- CREATE MATERIALIZED VIEW "BIOMART"."BIO_LIT_INT_MODEL_MV" ("BIO_LIT_INT_DATA_ID", "EXPERIMENTAL_MODEL") ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS NOLOGGING TABLESPACE "BIOMART" BUILD IMMEDIATE USING ...
<filename>SQL Scripts/Data/GRIDVIEWS_COLUMNS ACLRoles.Users.1.sql<gh_stars>1-10 set nocount on; GO -- 02/11/2021 Paul. ACLRoles.Users for the React Client. -- delete from GRIDVIEWS_COLUMNS where GRID_NAME = 'ACLRoles.Users'; if not exists(select * from GRIDVIEWS_COLUMNS where GRID_NAME = 'ACLRoles.Users' and DE...
-- file:updatable_views.sql ln:827 expect:true UPDATE rw_view2 SET a = 200 WHERE a = 5
-- file:cluster.sql ln:140 expect:true INSERT INTO clstr_3 VALUES (1)
DROP TABLE IF EXISTS T_WEBUI_ViewSelection; CREATE TABLE T_WEBUI_ViewSelection ( uuid character varying(40) NOT NULL, line numeric(10,0) NOT NULL, record_id numeric(10,0) NOT NULL, created timestamp with time zone NOT NULL DEFAULT now(), CONSTRAINT T_WEBUI_ViewSelection_pkey PRIMARY KEY (uuid, line, record_i...
<reponame>forgottenlands/ForgottenCore406 /* Dungeon Normal-Heroic for 5 people */ /* Bosses */ -- Shirrak the Dead Watcher SET @ENTRY := 18371; UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; INSERT INTO `sma...
<gh_stars>0 -- liquibase formatted sql -- changeset john:Initial context:demo endDelimiter="/" CREATE OR REPLACE EDITIONABLE TRIGGER "UXI_BI_DATA_SRC_LU" before insert on "UXI_DATA_SRC_LU" for each row begin if :NEW."ID" is null then select "UXI_DATA_SRC_LU_SEQ".nextval into :NEW."ID" f...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Apr 2021 pada 23.16 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
/****************************************************************************** * * OMOP - Cloud Research Lab * * Observational Medical Outcomes Partnership * (c) Foundation for the National Institutes of Health (FNIH) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use th...
<filename>SQL/Page 2.15 of chapter-2.sql use mansi create table emplo(EmployeeId int, NationalIdNumber int, Title varchar(40), VacationHours int) insert into emplo values(3, 509647174, 'Engineering Manager', 2) insert into emplo values(12, 245797967, 'Vice President of Engineering', 6) insert into emplo values(60, 6741...
INSERT INTO BPM_CONF_OPERATION(id,value,node_id) values(101,'rollbackInitiator',14); INSERT INTO BPM_CONF_OPERATION(id,value,node_id) values(102,'transfer',14); INSERT INTO BPM_CONF_OPERATION(id,value,node_id) values(103,'delegateTask',14); INSERT INTO BPM_CONF_OPERATION(id,value,node_id) values(104,'communicate',14)...
<reponame>sdepablos/bigquery-utils /* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
-- bit check CREATE TABLE bittmp (a bit(33)); \copy bittmp from 'data/bit.data' SET enable_seqscan=on; SELECT count(*) FROM bittmp WHERE a < '011011000100010111011000110000100'; SELECT count(*) FROM bittmp WHERE a <= '011011000100010111011000110000100'; SELECT count(*) FROM bittmp WHERE a = '0110110001000101...
<filename>database/oracle/sample_db/9.partition_hash.sql -- LIST HASH DROP TABLE DEV.ORD_LIST_HASH PURGE; CREATE TABLE DEV.ORD_LIST_HASH ( ORD_NO NUMBER (10) NOT NULL , ORD_YM VARCHAR2 (6) NOT NULL , ORD_DT VARCHAR2 (8) , ORD_HMS VARCHAR2 (6) ...
<reponame>jhzao82/shop-backend -- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- 主机: 127.0.0.1:3307 -- 生成日期: 2016 年 10 月 31 日 07:36 -- 服务器版本: 5.5.32 -- PHP 版本: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<filename>openGaussBase/testcase/SQL/INNERFUNC/max/Opengauss_Function_Innerfunc_Max_Case0029.sql<gh_stars>0 -- @testpoint: 函数调用max结合group by--cidr --step1:创建表; expect:成功 drop table if exists t_max_case0029; create table t_max_case0029(id int, i cidr); --step2:创建函数; expect:成功 create or replace function f_max_case0029(...
<filename>laravalpro.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 26, 2020 at 02:50 PM -- Server version: 5.7.28-0ubuntu0.16.04.2 -- PHP Version: 7.2.25-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZE...
INSERT INTO `sections` (`sections_id`, `sections_title`, `sections_description`, `sections_image`, `sections_meta_slug`, `sections_meta_title`, `sections_meta_description`, `sections_updated_at`) VALUES (1, 'We are introducing BOOK4TRACK', 'We are introducing BOOK4TRACK', null, 'slug', 'Meta Title Home Page', 'Meta ...
<filename>pacote-download/SCRIPTS_MYSQL/UPDATE.sql<gh_stars>0 /* UTILIZANDO O UPDATE */ /* UPDATE ATUALIZA OS REGISTROS QUE JA ESTÃO NA TABELA */ /* UTILIZANDO O UPDATE PARA ATUALIZAR VALORES */ SELECT NOME, EMAIL FROM CLIENTE; /* UTILIZANDO ESSE METODO ATUALIZA TODOS OS EMAILS */ UPDATE CLIENTE SET EMAIL = '<EMA...
SELECT "MLB_44"."league" AS "league" FROM "MLB_44" GROUP BY 1 ORDER BY "league" ASC;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 06, 2021 at 12:00 PM -- Server version: 5.6.41-84.1 -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2018 at 02:55 PM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
DROP PROCEDURE IF EXISTS manageEntityPermissionListing; CREATE PROCEDURE manageEntityPermissionListing (entityName VARCHAR(1000), moduleName varchar(100), moduleId varchar(50), roleName varchar(100),forCount INT, limitFrom INT, limitTo INT ,sortIndex VARCHAR(100),sortOrder VARCHAR(20)) BEGIN SET @resultQuery = CONCA...
ALTER TABLE AKTIVITET DROP CONSTRAINT AKTIVITET_RAAD_FK; ALTER TABLE RAAD DROP CONSTRAINT RAAD_BESVARELSE_FK; ALTER TABLE SVARALTERNATIV DROP CONSTRAINT SVARALTERNATIV_SVAR_FK; ALTER TABLE SVAR DROP CONSTRAINT SVAR_BESVARELSE_FK; DROP TABLE BESVARELSE; DROP TABLE SVAR; DROP TABLE SVARALTERNATIV; DROP TABLE RAAD; DROP ...
<reponame>truthly/pg-cbor -- -- https://tools.ietf.org/html/rfc7049#appendix-A -- BEGIN; CREATE EXTENSION IF NOT EXISTS cbor; -- +------------------------------+------------------------------------+ -- | Diagnostic | Encoded | -- +------------------------------+-----...
#select * from order_information; insert into order_information (transaction_id, FK_member_transaction, FK_payment_ID, order_date, expected_Delivery, shipped_Date, order_status, FK_cart_transaction) values ('152752', '20527236', '92-7079819', '2020-03-27 03:47:29', '2020-04-06 01:01:41', '2020-04-06 01:32:11', 1, 382)...
<reponame>piougy/CzechIdMng<filename>Realization/backend/core/core-impl/src/main/resources/eu/bcvsolutions/idm/core/sql/postgresql/V7_07_005__automatic-role.sql -- -- CzechIdM 7.6 Flyway script -- BCV solutions s.r.o. -- -- create table for automatic role (super class), new automatic role by attribute, -- resolve old ...
--業務経歴 create sequence career_seq increment by 1 maxvalue 999999999 start with 1 no cycle ;
CREATE OR REPLACE PROCEDURE SP_LIST_SERVERS ( P_Q IN VARCHAR2, P_USER_ID IN NUMBER, P_ROWS OUT TYPES.REF_CURSOR, P_RESULT OUT NUMBER ) AS -- PROCEDURE TO Get a list of all consumers from the consumer r...
ALTER TABLE location ALTER COLUMN id SET DEFAULT uuid_in((md5((random())::text))::cstring); INSERT INTO location (name, address, city, country, rating, price, discount) VALUES ('Rijksmuseum', 'Museumstraat 1', 'Amsterdam', 'Netherlands',4,40,7); INSERT INTO location(name, address, city, country, rating, price, discount...
<filename>final/src/resources/product.sql CREATE DATABASE IF NOT EXISTS itmd415; USE itmd415; -- DROP TABLE IF EXISTS product; CREATE TABLE IF NOT EXISTS product ( pid INTEGER NOT NULL UNIQUE AUTO_INCREMENT, ptid INTEGER NOT NULL, ownercid INTEGER NOT NULL, carid ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 06, 2020 at 12:46 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
-- ====================================================================== -- DDL for trust performance -- -- ====================================================================== CREATE SCHEMA report; SET search_path = report; -- ====================================================================== -- perf_stanox_a...
<gh_stars>100-1000 -- // BUG-112250 Support location on environment -- Migration SQL that makes the change goes here. ALTER TABLE environment ADD COLUMN IF NOT EXISTS location varchar(255); ALTER TABLE environment ADD COLUMN IF NOT EXISTS longitude DOUBLE PRECISION; ALTER TABLE environment ADD COLUMN IF NOT EXISTS lat...
<reponame>CPHI-TVHS/ETL-CMS -- insert_provider.sql insert into cdm_synpuf_v667.dbo.provider ( provider_id, provider_name, NPI, DEA, specialty_concept_id, care_site_id, year_of_birth, gender_concept_id, provider_source_value, specialty_source_value, specialty_source_concept_id, gender_source_value, gender_source_conce...
<gh_stars>1000+ -- -- OpenAPI Petstore. -- Prepared SQL queries for 'EnumClass' definition. -- -- -- SELECT template for table `EnumClass` -- SELECT FROM `EnumClass` WHERE 1; -- -- INSERT template for table `EnumClass` -- INSERT INTO `EnumClass`() VALUES (); -- -- UPDATE template for table `EnumClass` -- UPDATE `E...
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/switch_ckpt_b/post_sql/sql/insert_co_gist_index_template_b0.sql \d pg2_co_table_gist_index_b0 set enable_seqscan=off; select property from pg2_co_table_gist_index_b0 where property='( (0,0), (1,1) )'; DROP TABLE pg2_co_table_gist_index_b0;
<reponame>NCIP/cabio /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP TABLE ZSTG_ARRAY_REPORTER_CH CASCADE CONSTRAINTS PURGE / -- -- ZSTG_ARRAY_REPORTER_CH (Table) -- CREATE TABLE ZSTG_ARRAY_REPORTER_CH ( ID NUMB...
<reponame>Zhaojia2019/cubrid-testcases drop table if exists test_mails; create table test_mails ( col1 string, col2 bigint, col3 int, col4 int, col5 int, col6 int, col7 int, col8 string, col9 string, col10 string, col11 int, col12 string, col13 string, col14 string, col15 string, col16 string, col17 string, col18 strin...
<gh_stars>0 -- @testpoint:opengauss关键字recheck(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists recheck; create schema recheck; drop schema recheck; --关键字带双引号-成功 drop schema if exists "recheck"; create schema "recheck"; drop schema "recheck"; --关键字带单引号-合理报错 drop schema if exists 'recheck'; --关键字带反引号-合理报错 drop schema...
DROP DATABASE IF EXISTS cms; CREATE DATABASE cms; USE cms; CREATE TABLE department ( id INTEGER AUTO_INCREMENT PRIMARY KEY, dept_name VARCHAR (30) NOT NULL ); CREATE TABLE roles ( id INTEGER AUTO_INCREMENT PRIMARY KEY, title VARCHAR (30), salary DECIMAL (65,5), department_id INTEGER, CONST...
<filename>src/sql/queries/get_latest_public_key_for_user.sql SELECT public_key_id, public_key_value, date_added, key_type_identifier FROM wapm_public_keys JOIN wapm_users wu ON user_key = wu.id WHERE wu.name = (?1) ORDER BY date_added DESC LIMIT 1
-- SQL script that computes the average score of all records in the table "second_table" of the database "hbtn_0c_0" SELECT AVG(score) AS average FROM second_table;
CREATE EXTENSION pg_trgm SCHEMA main; CREATE EXTENSION pgcrypto SCHEMA main;
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 15, 2016 at 06:54 AM -- Server version: 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=@@CHARACTER_SET_CLIENT */;...
<gh_stars>0 -- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.12-log - MySQL Community Server (GPL) -- 服务器操作系统: Win32 -- HeidiSQL 版本: 8.3.0.4694 -- --------------------------------------------...
USE [gestor_ongd_sps_prod] GO /****** Object: View [dbo].[voluntario] Script Date: 15/08/2017 11:40:22 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[voluntario] WITH VIEW_METADATA AS SELECT dbo.personas.id, dbo.personas.nombre, dbo.personas.apellidos, dbo.personas.direccionP...
CREATE TABLE [dbo].[Proverbs] ( [Id] [int] NOT NULL IDENTITY(1, 1), [UserId] [int] NOT NULL, [Content] [nvarchar] (2000) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [IsVisible] [bit] NOT NULL, [CreatedOn] [datetimeoffset] NOT NULL ) ON [PRIMARY] ALTER TABLE [dbo].[Proverbs] ADD CONSTRAINT [PK_Proverbs] PRIMARY KEY ...
<filename>private/database/tables/keys/user_site_content_blog_post.sql<gh_stars>1-10 ALTER TABLE `dlayer`.`user_site_content_blog_post` ADD CONSTRAINT `user_site_content_blog_post_fk1` FOREIGN KEY (`site_id`) REFERENCES `user_site` (`id`);
CREATE PROCEDURE [dbo].[dnn_GetContentWorkflowState] @StateID int AS SELECT [StateID], [WorkflowID], [StateName], [Order], [IsActive], [SendEmail], [SendMessage], [IsDisposalState], [OnCompleteMessageSubject], [OnCompleteMessageBody], [OnDiscardMessageSubject], [OnDiscardMessageBody] FROM...
-- -- PostgreSQL database dump -- -- Dumped from database version 11.1 -- Dumped by pg_dump version 11.2 -- Started on 2019-05-20 00:03:09 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_catalo...
-- -- patch-comment-table.sql -- -- T166732. Add a `comment` table and various columns (and temporary tables) to reference it. -- Sigh, sqlite, such trouble just to change the default value of a column. CREATE TABLE /*_*/comment ( comment_id bigint unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, comment_hash INT NOT...