text
stringlengths
6
9.38M
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.1.73-1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */...
ALTER TABLE `applications_versions` MODIFY `application_id` int(10) unsigned NOT NULL, MODIFY `version_id` int(10) unsigned NOT NULL, MODIFY `min` int(10) unsigned NOT NULL, MODIFY `max` int(10) unsigned NOT NULL, DROP FOREIGN KEY `applications_versions_ibfk_4`, /* `version_id` */ DROP FOREIGN ...
insert into Roles values ('Admin', 'administrátor'), ('Hráč', 'registrovaný uživatel bez placeného účtu'), ('Patron', 'registrovaný uživatel s placeným účtem'), ('Moderátor', 'administrátor fór'), ('Ekonom', 'administrátor obchodů'), ('Dozorce', 'administrátor dobrodružství'), ('VIP', 'čestná role')
#sql("findUserByName") select * from user t where t.user_name = #para(0) #end
use employees; EXPLAIN SELECT E.emp_no, CONCAT(first_name, ' ',last_name), from_date, to_date, title FROM employees E, titles T WHERE E.emp_no=T.emp_no ORDER BY E.emp_no, from_date
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table member ( id bigint not null, team_id bigint, number varchar(255), last_update timestamp not null, c...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2020 at 08:43 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
with ada as ( select 'key' as key_to_match, e.model, e.experiment, e.fold, e.param_config, p.alert, p.label, p.score, row_number() over (partition by e.model order by p.score desc) as row_n from results.predictions p join results.experiments e on p.model = e.model where e.fold = 13 and (e.algorithm ilike '%ada%' an...
/* Formatted on 21/07/2014 18:44:12 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_FEN_RETT_UCPCONT_POS ( COD_ABI, COD_NDG, COD_SNDG, COD_FILIALE_AREA, FLG_GAR_REALI_PERSONALI, FLG_GAR_REALI, VAL_DRC_ULTIMO_MESE_CONT ) AS WITH ...
select a.id as ID, a.name as UserName, b.name as ParentUserName from user a left join user b on b.id = a.parent
CREATE OR REPLACE FUNCTION jslibs.s2.ST_S2_BOUNDARY(key STRING) AS ( ST_GEOGFROMGEOJSON(jslibs.s2.keyToCornerLatLngs(key)) );
SELECT c.NOME_COLABORADOR AS 'Colaborador/UF', SUM(s.VALOR_PAGO) as 'Valor' FROM LOCAL_DE_TRABALHO l JOIN COLABORADORES c ON l.ID_COLABORADOR = c.ID_COLABORADOR JOIN SALARIOS s ON s.ID_COLABORADOR = c.ID_COLABORADOR WHERE DATEPART(YEAR,s.[DATA]) = 2014 GROUP BY c.NOME UNION SELECT ...
INSERT INTO product (price, image, name ,product_type_id) VALUES (370.000,'img/Product/dautrive.jpg','DẦU TẮM TRỊ VE RICHARD ORGANIC', 2); INSERT INTO product (price, image, name ,product_type_id) VALUES (25.000,'img/Product/patemeo.jpg','PATE MEOWOW', 2); INSERT INTO product (price, image, name ,product_type_id) VALUE...
SELECT T1.INVOICE_ID AS hInvoiceId, --债权ID T1.INVOICE_NO AS hInvoiceNo, --债权号 T1.FINANCING_AMOUNT AS hFinancingAmount, --放款额 T1.INTEREST AS hInterest, --融资利息 T1.WITHDRAW_EXTENSION_RATES AS hWinthrawExtensionRates, --回收延长利息 T1.UNPAID_MANAGEMENT_FEE AS hUnpaidManagementFee, --未收管理费 T1.UNPAID_HANDLING_FEE AS hUnp...
INSERT INTO AIRPLANE_TYPE VALUES ('Boeing747', 4, 450); INSERT INTO AIRPLANE_TYPE VALUES ('Boeing737', 4, 300); INSERT INTO AIRPLANE_TYPE VALUES ('Boeing767', 5, 500); INSERT INTO AIRPLANE_TYPE VALUES ('Boeing727', 3, 220); INSERT INTO AIRPLANE_TYPE VALUES ('Boeing707', 2, 120); INSERT INTO AIRPLANE_TYPE...
-- 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. -- Tables: CREATE TABLE player ( id SERIAL PRI...
-- -- Script was generated by Devart dbForge Studio 2019 for MySQL, Version 8.2.23.0 -- Product home page: http://www.devart.com/dbforge/mysql/studio -- Script date 26.08.2019 3:07:38 -- Server version: 8.0.17 -- Client version: 4.1 -- -- -- Disable foreign keys -- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@F...
SELECT * FROM posts WHERE seller_id = $1 AND active = true AND approved = true;
SELECT serialized FROM transactions WHERE block_id = ${id} ORDER BY sequence ASC
 DO $$ BEGIN IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20190904151533_v1.27') THEN ALTER TABLE org_branches ADD create_dls boolean NOT NULL DEFAULT FALSE; END IF; END $$; DO $$ BEGIN IF NOT EXISTS(SELECT 1 FROM "__EFMigrationsHistory" WHERE "MigrationId" = '20190904151...
/** * SQL for check exist shisetsu customer voice when reflect shisetsu to Front System * @author TuyenVHA * @version $Id: ShisetsuDashboardService_checkExistShisetsuCustomerVoice_Sel_01.sql 9294 2014-06-28 09:57:05Z p__toen $ */ SELECT BSCV.CUSTOMER_VOICE_ID FROM BY_SHISETSU_CUSTOMER_VOICE BSCV WHERE BSCV.SHIS...
CREATE TABLE if not exists students ( id INT PRIMARY KEY, first_name VARCHAR, last_name VARCHAR, gender VARCHAR(2), gpa REAL ); INSERT INTO students (id, first_name, last_name, gender, gpa) VALUES (1, "Jerry", "Garcia", 2.3, "M"), (2, "Penelope", "Cruz", 3.1, "F"), (3, "Bob", "Saget", 3.2, "...
-- MariaDB dump 10.17 Distrib 10.4.11-MariaDB, for Win64 (AMD64) -- -- Host: us-cdbr-east-03.cleardb.com Database: heroku_2fd7018fa458a0f -- ------------------------------------------------------ -- Server version 5.6.50-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
create table TB_BASE_MENU ( menu_id NUMBER not null, menu_name VARCHAR2(200), parent_id NUMBER, menu_level CHAR(1), action_name VARCHAR2(200) ) insert into TB_BASE_MENU (MENU_ID, MENU_NAME, PARENT_ID, MENU_LEVEL, ACTION_NAME) values (1, '系统管理', 0, '1', null); insert into TB_BASE_MENU (MENU_ID, MENU...
ALTER TABLE `entry` DROP `link`;
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50723 Source Host : localhost:3306 Source Schema : jingdong_test Target Server Type : MySQL Target Server Version : 50723 File Encoding : 65001 Date: 11/09/2020 13:...
-- ========================================================================================== -- Entity Name: ERP.Usp_Upd_Receta_Activar -- Author: Omar Rodriguez -- Create date: 12/7/2018 2:50:47 p. m. -- Description: Activar una receta del sistema -- =====================================================...
 create PROC [ERP].[Usp_Sel_Almacen_Borrador_Pagination] @IdEmpresa INT AS BEGIN SELECT A.ID, A.Nombre, E.ID IdEstablecimiento, E.Nombre NombreEstablecimiento, E.Direccion, A.FechaRegistro FROM ERP.Almacen A INNER JOIN ERP.Establecimiento E ON E.ID = A.IdEstablecimiento WHERE A.Id...
CREATE TABLE `db_version` ( `version` INT NOT NULL); INSERT INTO `db_version` VALUES (0); SELECT version FROM `db_version`;
DELETE FROM `vendors` WHERE `entry` NOT IN (SELECT `entry` FROM `creature_proto`); DELETE FROM `vendors` WHERE `item` NOT IN (SELECT `entry` FROM `items`); DELETE FROM `creature_waypoints` WHERE `spawnid` NOT IN (SELECT `id` FROM `creature_spawns`); DELETE FROM `trainer_spells` WHERE `entry` NOT IN (SELECT `entry` FR...
-- Table: reviews -- DROP TABLE reviews; CREATE TABLE reviews ( review_id integer NOT NULL DEFAULT nextval('reviews_review_id_seq'::regclass), user_id integer NOT NULL, message character varying(1000) COLLATE pg_catalog."default" NOT NULL, rating character varying(100) COLLATE pg_catalog."default" NOT...
select first_name, last_name, salary from employees where 12000 < salary order by salary desc fetch first 5 rows only /
SELECT TOP 1000 sb.LastName, sb.FirstName, e.EmailAddress, sb.Phone, a.Address1, a.City, a.State, a.ZipCode, sb.SubscriberID FROM GI_Subscription.dbo.gs_Subscriber sb (NOLOCK) JOIN GI_Subscription.dbo.gs_EmailAddress e (NOLOCK) ON sb.SubscriberID = e.SubscriberID JOIN GI_Subscription.dbo.gs_Address a (NOLOCK) ON ...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2020 at 08:58 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 SET @OLD_CHARACTER_SET_CLIE...
CREATE DATABASE IF NOT EXISTS `test_db` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE `test_db`; DROP TABLE IF EXISTS `user_info`; CREATE TABLE `user_info` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户id', `username` varchar(20) NOT NULL COMMENT '用户名', `password` varchar(50) NOT NULL COMMENT '密码'...
INSERT INTO `user` VALUES (1, 'admin', 'admin', 1); INSERT INTO `user` VALUES (2, 'user', 'user', 0); INSERT INTO `user` VALUES (3, 'tom', '1234', 2); INSERT INTO `user` VALUES (4, '张三', '76589', 1); INSERT INTO `user` VALUES (5, 'Marry', '1111', 2); INSERT INTO `user` VALUES (6, '李四', '2222', 0); INSERT INTO `user` VA...
select word, count(*) from ( -- get 1st words select split_part(title, ' ', 1) as word from songs union all -- get 2nd words select split_part(title, ' ', 2) as word from songs union all -- get 3rd words select split_part(title, ' ', 3) as word from songs union all ...
-- phpMyAdmin SQL Dump -- version 4.0.8 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014-03-19 08:46:27 -- 服务器版本: 5.5.34 -- PHP 版本: 5.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_...
select count(*),ua.unit_administrator_type_code from unit_administrator ua group by unit_administrator_type_code; create table unit_administrator_bk as select * from unit_administrator; create table unit_administrator_test as select * from unit_administrator; delete from unit_administrator_test; select ua.unit_nu...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:3306 -- Généré le : mer. 07 juil. 2021 à 14:19 -- Version du serveur : 8.0.25-0ubuntu0.20.04.1 -- Version de PHP : 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
CREATE TABLE notice( n_num INT PRIMARY KEY, n_writer VARCHAR(20) NOT NULL, n_title VARCHAR(300) NOT NULL, n_content VARCHAR(10000) NOT NULL, n_regdate DATETIME NOT NULL); INSERT INTO notice(n_num,n_writer,n_title,n_content,n_regdate) VALUES(1,'성영한','제목','내용',NOW()); SELECT n_num,n_writer,n_title,n_content,n_regdate,...
DROP TABLE IF EXISTS books; CREATE TABLE books ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(250) NOT NULL, price INTEGER NOT NULL, author VARCHAR(250) DEFAULT NULL );
drop table if exists Admits; CREATE TABLE Admits ( employeeID integer, patientID integer, diagnosisID integer, timeAdmitted datetime, PRIMARY KEY (patientID, employeeID), FOREIGN KEY (employeeID) REFERENCES Worker (employeeID), FOREIGN KEY (patientID) REFERENCES Patient (patientID) );
-- LSNBLDR-227 alter table lesson_builder_groups add siteId varchar(250); alter table lesson_builder_items modify description text; alter table lesson_builder_items modify groups text; create table if not exists lesson_builder_properties ( id bigint not null auto_increment, attribute varchar(255) not null u...
--DROP wepon_dataset3 DROP TABLE wepon_dataset3; --CREATE AND INSERT wepon_dataset3 create table wepon_dataset3 as select * from prediction_stage2; ----------------------------------------------------------------------- --DROP wepon_feature3 DROP TABLE wepon_feature3; --CREATE AND INSERT wepon_feature3 CREATE TABLE wep...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-07-2016 a las 17:36:37 -- Versión del servidor: 10.1.10-MariaDB -- Versión de PHP: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.31-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 11.0.0.5919 -- -----------------------------------------------...
SET FOREIGN_KEY_CHECKS=0; truncate clients; truncate products; truncate orders; truncate orders_has_products; #all the clients and products are already in our database insert into clients values(1, "Thiago", NOW(), NOW()); insert into clients values(2, "Alex", NOW(), NOW()); insert into clients values(3, "Zé", NOW...
SELECT COUNT(*) FROM SCORING_CARD_TEMP WHERE SEQ_NO = /*sessionId*/''
/* Navicat MySQL Data Transfer Source Server : 1131 Source Server Version : 50528 Source Host : 192.168.1.12:3306 Source Database : food Target Server Type : MYSQL Target Server Version : 50528 File Encoding : 65001 Date: 2019-11-07 10:16:48 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
CREATE TABLE IF NOT EXISTS admin_contest ( `iContestID` INT NOT NULL AUTO_INCREMENT, `dDated` DATETIME, `iUserID` INT NOT NULL, `cContest` VARCHAR(150), PRIMARY KEY(`iContestID`), INDEX(`iUserID`) ); ALTER TABLE `users_groups` ADD COLUMN `bAdmin` BOOL NOT NULL; ALTER TABLE `users_groups` ADD INDEX (`bAdmin`); UP...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.34) # Database: booking_system # Generation Time: 2017-03-30 15:41:59 +0000 # ****************************************...
-- Create table create global temporary table FUN_OUT_PARAMETER_TMP ( HTTP_SESSION_ID VARCHAR2(100) not null, SQL_XML_PATH_ACTION VARCHAR2(1000) not null, PARAMETER_CODE VARCHAR2(1000), PARAMETER_VALUE VARCHAR2(4000), INDEX_S NUMBER ) on commit preserve rows; -- Add comments to the co...
USE 5c_Merendine; -- Creazione tabella Merende CREATE TABLE IF NOT EXISTS `Merende` ( `CodMerenda` VARCHAR(5) NOT NULL, `NomeMerenda` VARCHAR(30) NULL, `Prezzo` FLOAT NULL, PRIMARY KEY (`CodMerenda`) ); -- Creazione tabella Macchinette CREATE TABLE IF NOT EXISTS `Macchinette` ( `CodMacchinetta` VARCHAR(5) NOT N...
create database acnhvillagers_db; use acnhvillagers_db; CREATE TABLE villagers ( id int NOT NULL AUTO_INCREMENT, villager_name varchar(255) NOT NULL, dreamy BOOLEAN DEFAULT false, PRIMARY KEY (id) );
-- Define Medical laboratory services ALTER TABLE `m_staff` ADD COLUMN `is_active` boolean NOT NULL default true COMMENT 'check if this staff is active', ADD COLUMN `is_available` boolean NOT NULL default true COMMENT 'check if this staff is available'; ALTER TABLE `users` ADD COLUMN `is_self_s...
SELECT AVG(speed) as avg_speed FROM PC;
insert into order_product(order_id,product_id,quantity,total) values($1,$2,$3,$4)
--create SERVER oradb FOREIGN DATA WRAPPER oracle_fdw -- OPTIONS (dbserver '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ECODWH.UR.RT.RU)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ecodwh.ur.rt.ru)))') --GRANT USAGE ON FOREIGN SERVER oradb TO postgres --CREATE USER MAPPING FOR postgres SERVER oradb -- ...
@"C:\Users\student.OSLAB-1031\Desktop\Kaustav C29\DBMS LAB\Main University Files\University DB\DDL+drop.sql" @"C:\Users\student.OSLAB-1031\Desktop\Kaustav C29\DBMS LAB\Main University Files\University DB\smallRelationsInsertFile.sql" SET SERVEROUTPUT ON; set linesize 250 cl scr -- q1 CREATE TABLE salary_raise ...
-- MySQL dump 10.13 Distrib 5.5.38, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.5.38-0ubuntu0.14.04.1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@...
------------------------------------------------------------------------------- -- -- File: $RCSFile$ -- Revision: $Revision: 1.1 $ -- Description: This file creates the MAPS database. -- Author: Andrew@DeFaria.com -- Created: Tue May 13 13:28:18 PDT 2003 -- Modified: $Date: 2013/06/12 14:05:47 $ ...
begin transaction update ctc.event_attendance set event_attendance_type_id = 3 where event_id in(select e.event_id from ctc.events e where upper(substring(e.apr_code,1,1)) = 'S') and ctc_id is null commit transaction
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Gegenereerd op: 16 mrt 2016 om 19:05 -- Serverversie: 10.1.10-MariaDB -- PHP-versie: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
--Run Operation script first -- Run ExternalNotification and ExternalBatchNotification first --0001 Notification DO $$ Declare NcTID uuid; Declare NcTVN integer; Declare NcResID uuid; Declare OrgEmployeeRoleID uuid; Declare UserUserTypeID uuid; Begin NcTVN := 1; NcTID := (select uuid_generate_v1()); NcResID := (sele...
INSERT INTO Ticket (title, description ,user,status) VALUES ('Title number 3','d1','e10002001-0@yahoo.com','New'), ('Title number 1','d2','test@example.com','Completed'), ('Title number 3','d1','e10002001-0@yahoo.com','New'), ('Title number 1','d2','test@example.com','Completed'), ('Title number 3','d1','e1000200...
CREATE DATABASE IF NOT EXISTS qatask2; USE qatask2; -- Create a ‘person’ table. The minimum fields within this should be a primary key of personID, full name, favourite colour (choose from: blue, red, yellow, green, orange, purple, black, white), birthday, favourite number between 1 and 10, and catchphrase CREATE TABL...
USE regalonatural; DELETE FROM regalonatural.ps_cart_rule_combination;
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 19. Dez 2019 um 14:36 -- Server-Version: 10.1.37-MariaDB -- PHP-Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 30, 2016 at 07:28 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
-- SQL - More queries -- creates the MySQL server user user_0d_1 CREATE DATABASE IF NOT EXISTS hbtn_0d_usa; CREATE TABLE IF NOT EXISTS hbtn_0d_usa.cities ( id INT UNIQUE AUTO_INCREMENT NOT NULL PRIMARY KEY, state_id INT NOT NULL REFERENCES states(id), name VARCHAR(256) NOT NULL );
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.12-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -----------------------------------------------...
SELECT t.date_time AS year_month_id, IFNULL(a.new, 0) AS NEW, IFNULL(b.active, 0) AS active, IFNULL(b.login, 0) AS login, IFNULL(c.retention, 0) AS retention, '${GATHER_SYS_TIME}' AS time_stamp FROM ( (SELECT DATE_FORMAT(regist_time, '%Y-%m') AS date_time FROM yz_sys_...
use cadastro; desc gafanhotos; alter table gafanhotos add column cursopreferido int; alter table gafanhotos add foreign key (cursopreferido) references cursos(idcurso); select * from gafanhotos; select * from cursos; update gafanhotos set cursopreferido = '6' where id = '1'; delete from cursos where idcurso = '7'...
DECLARE TYPE nested_typ IS TABLE OF NUMBER; nt1 nested_typ := nested_typ(); ind number; procedure print_list(t in nested_typ) is begin for i in t.first .. t.last loop dbms_output.put_line(t(i)); end loop; end; BEGIN -- dbms_output.put_line(nt1.count); nt1.extend...
CREATE TABLE MyUsers ( firstname varchar(25), lastname varchar(25) ); GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';
CREATE TABLE [ERP].[PlanCuentaDestino] ( [ID] INT IDENTITY (1, 1) NOT NULL, [IdPlanCuentaOrigen] INT NULL, [IdPlanCuentaDestino1] INT NULL, [IdPlanCuentaDestino2] INT NULL, [Porcentaje] DECIMAL (14, 5) NULL, [IdEmpres...
SELECT * FROM product ORDER BY name
alter table RequestInfo add column priority integer; alter table ProcessInstanceLog add column processType integer; update ProcessInstanceLog set processType = 1; update RequestInfo set priority = 5; create table CaseIdInfo ( id bigint not null auto_increment, caseIdPrefix varchar(255), currentValue bigin...
-- MySQL dump 10.13 Distrib 5.7.24, for osx10.14 (x86_64) -- -- Host: localhost Database: hackerrank -- ------------------------------------------------------ -- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
-- some script AFTER -- line 1 -- line 2 -- line 3 -- line 4
CREATE TABLE IF NOT EXISTS Races ( ID integer PRIMARY KEY, CreatedAT datetime default current_timestamp, Name varchar(255) NOT NULL, Location varchar(255) NOT NULL ); CREATE TABLE IF NOT EXISTS Clubs ( ID integer PRIMARY KEY, CreatedAT datetime default current_timestamp, ...
DROP TABLE RWA_PercentDiscountCoupons; DROP TABLE RWA_InventorySales; DROP TABLE RWA_Sales; DROP TABLE RWA_CouponApplicableItems; DROP TABLE RWA_BuySomeGetSomeCoupons; DROP TABLE RWA_Inventory; DROP TABLE RWA_Employees; DROP TABLE RWA_Coupons;
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : lun. 28 jan. 2019 à 09:30 -- Version du serveur : 10.1.31-MariaDB -- Version de PHP : 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; DROP DAT...
-- ------------------------------------------- -- View que retorna os chamados com status 0 -- ------------------------------------------- CREATE OR REPLACE VIEW avaliacao1.v_status AS (SELECT chamado, status FROM avaliacao1.chamados WHERE status = '0' ORDER BY chamado); SELECT * FROM avaliacao1.v_status;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 04 Mei 2018 pada 20.19 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
/* Navicat MySQL Data Transfer Source Server : yii2 Source Server Version : 50553 Source Host : localhost:3306 Source Database : zerg Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-12-20 22:19:27 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
insert into attr_data_type values(6,'Dummy'); delete from attr_data_type where Data_Type_ID=6;
select * from ( select to_char(to_timestamp(receipt_included_in_block_timestamp / 1000000000), 'yyyy-MM-dd"T"HH24:MI:SS.US"Z"') as ts, receipt_id, index_in_action_receipt, action_kind, args->>'deposit' as deposit, args->>'method_name' as method_name, args->>'args_json' as args_json, args->'args_json'-...
CREATE TABLE item( id serial primary key not null, name varchar(200), description varchar(200), time TIMESTAMP );
def outofseq([lastseq, oos_count], [tcpseq, payloadlen]): if lastseq != tcpseq { oos_count = oos_count + 1; } tmp = tcpseq + payloadlen; lastseq = tmp; tcp_pkts = filter(T, proto == 6); oos_query = groupby(tcp_pkts, [srcip, switch, dstip, srcport, dstport, proto], outofseq...
 -- Personal Organisation DO $$ Declare DoTemplateID uuid; Declare DoVersionNumber integer; Declare UserRoleID uuid; Declare OrganisationTypeID integer; Declare userUser uuid; Declare adminUser uuid; Begin -- declare variables UserRoleID := (select "RoleID" from "Role" where "RoleName" = 'User' limit 1); Organisation...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 23, 2018 at 01:56 PM -- Server version: 5.7.19 -- 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_CH...
################ # TRANSACTIONS ################ SHOW TABLE STATUS WHERE Name = 'Categories'; SELECT * FROM information_schema.TABLES; SELECT TABLE_NAME FROM information_schema.TABLES WHERE ENGINE = 'MyISAM' AND TABLE_SCHEMA = 'apoiriel_SalesOrders'; SELECT CONCAT('ALTER TABLE ', TABLE_NAME, ' ENGINE = InnoDB;') F...
/*!40101 SET NAMES binary*/; /*!40014 SET FOREIGN_KEY_CHECKS=0*/; CREATE TABLE `Persona` ( `DNI` int(11) NOT NULL, `Nombre` varchar(45) DEFAULT NULL, `Apellido` varchar(45) DEFAULT NULL, `Sexo` char(1) DEFAULT NULL, PRIMARY KEY (`DNI`), UNIQUE KEY `DNI_UNIQUE` (`DNI`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE PERSON_SIGNATURE ADD CONSTRAINT UQ_PERSON_SIGNATURE UNIQUE (PERSON_ID) /
ALTER TABLE t_sent_email ADD timestamp TIMESTAMP;
/** * Used at method ShisetsuDetailService.updateDetailShisetsuFacility() * @author ThuanLM * @version $Id: ShisetsuDetailService_updateDetailShisetsuFacility_Ins_01.sql 8202 2014-06-25 07:09:34Z p_re_mintoan $ */ INSERT INTO BY_SHISETSU_FACILITY SF ( SF.SHISETSU_CD ,SF.SHISETSU_FACILITY_KBN ,SF.DELETE_FLG ...
-- -- Copyright 2009 Denys Pavlov, Igor Azarnyi -- -- 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 requ...
/* Navicat Premium Data Transfer Source Server : bendi Source Server Type : MySQL Source Server Version : 50722 Source Host : localhost:3306 Source Schema : online-course Target Server Type : MySQL Target Server Version : 50722 File Encoding : 65001 Date: 03/08/2018 ...