text
stringlengths
6
9.38M
DELETE FROM stores WHERE id = $1;
CREATE TABLE servico_protetico ( id int(11) NOT NULL AUTO_INCREMENT, cadastrante varchar(255) DEFAULT NULL, comissao double DEFAULT NULL, data_cadastro datetime DEFAULT NULL, data_entrega datetime DEFAULT NULL, data_pagamento datetime DEFAULT NULL, forma_pagamento varchar(255) DEFAULT NULL, observacao v...
INSERT INTO Professional (id, name, email, cell_phone) VALUES (1, 'Cleiton Sena', 'teste@teste.com', '99999999999'); INSERT INTO Category (id, description) VALUES (1, 'Assistência Técnica'); INSERT INTO Category (id, description) VALUES (2, 'Aulas'); INSERT INTO Category (id, description) VALUES (3, 'Design e Tecnolog...
USE AutoBuild_V3; DROP TABLE IF EXISTS posts; DROP TABLE IF EXISTS logs; DROP TABLE IF EXISTS sess; DROP TABLE IF EXISTS shelves; DROP TABLE IF EXISTS uploadedImages; DROP TABLE IF EXISTS publishedbuilds; DROP TABLE IF EXISTS pcBuilds; DROP TABLE IF EXISTS userAccounts; -- sessions --> userAccounts ( 1..*-> 0..1) ...
@tpt/snapper ash=sqlid+child+event+wait_class+,ash1,ash2,ash3=sqlid+plsql_eoid+plsql_esubpid+plsql_oid+plsql_subpid,stats,gather=tw &1 &2 &3 undef 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--change audit_log table message column from varchar to text. select fn_db_change_column_type('audit_log','message','varchar','text');
CREATE TABLE OPERATIONS_PLATFORM ( USERNAME VARCHAR(64) NOT NULL , PLATFORM VARCHAR(32) NOT NULL , PRIMARY KEY (USERNAME, PLATFORM) ) #
CREATE PROCEDURE usp_DeleteCollegeDetails -- Add the parameters for the stored procedure here @clg_id int AS BEGIN -- Delete statements for procedure here DELETE tbl_College WHERE clg_id = @clg_id END EXECUTE usp_DeleteCollegeDetails @clg_id =8 ; select * from tbl_College;
create table apply_company ( id int auto_increment primary key, name varchar(255) null comment '企业名称', type int null comment '租车类型0 企业长租 1 企业分时', linker varchar(255) null comment '联系人', phone varchar(255) null comment '联系电话', email varchar(255) null comment...
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
CREATE TABLE [Transform].[FactInternetSalesChangesViewPersistedForLAD] ( [CurrencyKey_DescriptionCode] VARCHAR (64) NULL, [CurrencyKey_DescriptionTypeCode] VARCHAR (64) NULL, [CustomerKey_CustomerID] VARCHAR (10) NULL, [ProductKey_ProductCode] NVARCHAR (25) NULL, ...
ALTER TABLE uo_enrich DROP CONSTRAINT uo_enrich_uo_fkey, DROP CONSTRAINT uo_enrich_enrich_fkey, ADD CONSTRAINT uo_enrich_uo_fkey FOREIGN KEY (uo) REFERENCES update_operation (id) ON DELETE CASCADE, ADD CONSTRAINT uo_enrich_enrich_fkey FOREIGN KEY (enrich) REFERENCES enrichment (id) ON DELETE CASCADE;
select ci.name as city_name, ci.population as city_p, c.name as country_name, c.population as country_p, cl.language from City ci INNER JOIN Country c ON ci.CountryCode = c.Code INNER JOIN CountryLanguage cl on ci.CountryCode = cl.CountryCode limit 5; DELETE FROM test where name='...
INSERT INTO `articletype` (`id`, `type_name`) VALUES (1, 'html'); INSERT INTO `articletype` (`id`, `type_name`) VALUES (2, 'css'); INSERT INTO `articletype` (`id`, `type_name`) VALUES (3, 'js');
DECLARE v_Id INTEGER; v_Ids NVARCHAR2(32767); v_result NUMBER; BEGIN :ErrorCode := 0; :ErrorMessage := ''; :affectedRows := 0; v_Ids := :Ids; v_Id := :Id; :SuccessResponse := EMPTY_CLOB(); --Input params check IF v_Id IS NULL AND v_Ids IS NULL THEN :ErrorMessage := 'Id can not be ...
drop database db_alumprof; create database db_alumprof; use db_alumprof; CREATE TABLE usuarios ( id int(5) NOT NULL primary key auto_increment, codigo varchar(50) NOT NULL, nombre varchar(50) NOT NULL, email varchar(50) NOT NULL, clave varchar(50) NOT NULL, tipo char(1) check (tipo='A' or tipo = 'P') ) E...
USE master -- ユーザー定義のサーバーロールからログインを削除 ALTER SERVER ROLE DBARole DROP MEMBER SimpleStoreUser01 -- ユーザー定義のサーバーロールを削除 DROP SERVER ROLE DBARole
-- mysql script -- getest in phpmyadmin CREATE DATABASE IF NOT EXISTS `pubs` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `pubs`; -- -------------------------------------------------------- -- -- Tabelstructuur voor tabel `authors` -- CREATE TABLE `authors` ( `au_id` varchar(11) NOT NULL, `au_lna...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50621 Source Host : localhost:3306 Source Database : shiro Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2015-11-05 18:23:58 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
-- コメントのイイネ drop table if exists LIKE_COMMENTS cascade; create table LIKE_COMMENTS ( NO BIGSERIAL not null , COMMENT_NO bigint not null , LIKE_CLASS integer default 1 , INSERT_USER integer , INSERT_DATETIME timestamp , UPDATE_USER integer , UPDATE_DATETIME timestamp , DELETE_FLAG integer , constraint...
CREATE TABLE `student` ( `roll_number` int(11) NOT NULL, `first_name` varchar(255) DEFAULT NULL, `last_name` varchar(255) DEFAULT NULL, PRIMARY KEY (`roll_number`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8
# SQL 명령어를 실행할 대상인 기본 데이터베이스를 univDB로 지정 use univDB; # safe mode 해제 SET SQL_SAFE_UPDATES =0; /* 공유락 - 데이터를 검색하는 select문을 실행하기 위한 읽기 전용 락 - 수정 불가 */ /* 독점락 - insert, update, delete문과 같은 데이터 변경을 위한 배타적락 - 특정 데이터에 대해 하나의 트랜잭션만 독점 락 설정 가능 - 데이터에 대한 모든 공유 락과 독점 락이 해제된 이후에만 독점 락 설정 가능 */ /* 락 단위 lock granularity - 락 잠금 대...
-- Drop and recreate the schema so we can re-create all the tables DROP SCHEMA public CASCADE; CREATE SCHEMA public;
DROP TABLE Employee; DROP TABLE Department; DROP TABLE Dept_locations; DROP TABLE Works_on; DROP TABLE Project; DROP TABLE Dependent;
------------------------------------------------------------------------- -- Script File Name: SQLMT -- Developer: Justin Hurley -- Creation Date: 09.28.2017 -- Description: Create Tables, Insert Data, and Single Table Queries ------------------------------------------------------------------------- -- **...
insert into ChungNhan(MaNv, MaMb) values ('567354612', '757'), ('567354612', '747') alter table ChuyenBay drop column dd, dxp, add dd Nvarchar(30) add dxp Nvarchar(30) drop column TtCb ALTER INDEX MaNv On ChungNhan DISABLE; ALTER TABLE ChungNhan DROP CONSTRAINT MaNv; create table ChungNhan ( MaNv int , MaMb i...
select schedule_id, to_char(travel_date, 'YYYY-MM-DD') as formattedDate from schedule order by schedule_id;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 01-Ago-2019 às 19:20 -- Versão do servidor: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DELETE FROM `gameobject` WHERE `guid` = 173899 ;
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 09-Out-2015 às 05:39 -- Versão do servidor: 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 */;...
delete from HtmlLabelIndex where id=21134 / delete from HtmlLabelInfo where indexid=21134 / INSERT INTO HtmlLabelIndex values(21134,'请先选择类型') / INSERT INTO HtmlLabelInfo VALUES(21134,'请先选择类型',7) / INSERT INTO HtmlLabelInfo VALUES(21134,'Please Choose The Type First',8) / delete from HtmlLabelIndex where id=21143 ...
CREATE TABLE user_login ( user_unique_id varchar(100) PRIMARY KEY, user_full_name char(50) NOT NULL, user_phone_no int(20) NOT NULL, user_password varchar(255) NOT NULL, user_email_id varchar(100) NOT NULL ) CREATE TABLE sensor_data ( time_stamp datetime DEFAULT current_timestamp(), sensor_user_unique_i...
create table exceptions( exception_number number (4) not null, device varchar2 (32) not null, lpt number (4,0) not null, opn number (4,0) not null, constraint exc_pk PRIMARY KEY (exception_number, device, lpt, opn) ); insert into exceptions (exception_number, device, lpt, opn...
-- Copyright 2015 Silicon Valley Data Science. -- -- 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 required by applicable la...
drop table patient; drop table cabin; drop table nurse; drop table doctor; create table doctor(dct_id integer, dct_name varchar(50), degree varchar(50), specialist varchar(50), visiting_time varchar(50), visit integer,...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2021 at 10:37 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE TABLE vin ( id INTEGER NOT NULL, cru Varchar(45) NOT NULL, annee INTEGER NOT NULL, degre FLOAT NOT NULL, PRIMARY KEY(id) ); CREATE TABLE producteur ( id INTEGER NOT NULL, nom Varchar(45) NOT NULL, prenom Varchar(45) NOT NULL, region Varchar(45) NOT NULL, PRIMARY KEY(id) ); ...
delete from HtmlLabelIndex where id=22257 / delete from HtmlLabelInfo where indexid=22257 / INSERT INTO HtmlLabelIndex values(22257,'流程被图形化编辑时签出,暂时不能使用此功能!') / INSERT INTO HtmlLabelInfo VALUES(22257,'流程被图形化编辑时签出,暂时不能使用此功能!',7) / INSERT INTO HtmlLabelInfo VALUES(22257,'This workflow is checkout, can''t edit.',8) / ...
USE FACTURACION_ANALISIS; INSERT INTO MARCA(NOMBRE) VALUES('SAMSUNG'); INSERT INTO MARCA(NOMBRE) VALUES('XPERIA'); INSERT INTO PRODUCTO(NOMBRE) VALUES ('S6'); INSERT INTO PRODUCTO(NOMBRE) VALUES ('S8'); INSERT INTO PRESENTACION(NOMBRE) VALUES('TELEFONO'); INSERT INTO UNIDAD(NOMBRE) VALUES('UNIDAD'); INSERT INTO UN...
/* Navicat Premium Data Transfer Source Server : MySql Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : springmvc Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 14/08/2017 20:5...
create database if not exists shiro; create table if not exists shiro_users ( id int primary key auto_increment, username varchar(64), password varchar(64) ); insert into shiro_users (id, username, password) values(1, 'user', 'user'); create table if not exists shiro_users_roles ( user_id int, role_id int ); inse...
# 1. How many users completed an exercise in their first month per monthly cohort? SELECT t1.year, t1.month, CONCAT(ROUND((users_ex / users)*100,2), '%') AS percent # divide user exercise cohort by total cohort, convert to % FROM (SELECT MONTH(created_at) AS month, YEAR(created_at) AS year, COUNT(user_i...
SELECT DISTINCT people.name FROM people INNER JOIN stars ON people.id=stars.person_id INNER JOIN movies ON stars.movie_id=movies.id WHERE movies.year=2004 ORDER BY people.birth ASC;
UPDATE Product SET delete_date = ?, delete_flag = 1 WHERE id IN (:strId)
/* list users sorted by last login date */ SELECT-- TOP 5 u.user_id ,u.user_name ,u.first_name + ' ' + u.last_name AS name ,u.email_address1 as email -- ,user_deleted -- ,user_domain -- ,auth_guid ,u.last_login_date -- ,last_password_change --* ,u.date_created FROM dbo.users AS...
-- 문제 1 SELECT COUNT(*) FROM employees WHERE salary < ( SELECT AVG(salary) FROM employees ); -- 문제 2 SELECT employee_id, first_name, salary, avgs, maxs FROM employees, ( SELECT round(AVG(sala...
CREATE VIEW `v_album` AS select `m_article`.`id` AS `id`, `m_article`.`title` AS `title`, `m_article`.`description` AS `description`, `m_article`.`publish_flg` AS `publishFlg`, `m_user`.`id` AS `userBean.id`, `m_user`.`nickname` AS `userBean.nickname` from ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 13, 2021 at 10:13 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE VIEW cancoes_premium AS SELECT s.song_name AS nome, COUNT(s.song_id) AS reproducoes FROM SpotifyClone.users AS u INNER JOIN SpotifyClone.plans AS p ON u.plan_id = p.plan_id INNER JOIN SpotifyClone.playback_list AS pl ON u.user_id = pl.user_id INNER JOIN SpotifyClone.songs AS s ON s.song_id = pl.song_id WHERE p....
CREATE DATABASE citizens; USE citizens; CREATE TABLE imports ( id INT NOT NULL ); INSERT INTO imports VALUES (1); CREATE TABLE import ( import_id INT NOT NULL, citizen_id INT NOT NULL, town VARCHAR(100) NOT NULL, street VARCHAR(100) NOT NULL, building VARCHAR(100) NOT NULL, apartment INT N...
{#- 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 required by applicable law or agreed to in writing, software distribute...
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 10.184.19.113 -- Generation Time: Jun 23, 2018 at 11:31 AM -- Server version: 5.6.39 -- PHP Version: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
/*querie using unon command*/ SELECT city FROM customer UNION SELECT fname FROM players ORDER BY city; /* queries using groupby command*/ SELECT COUNT(id), email FROM customer GROUP BY email ORDER BY COUNT(id) DESC; /* querir using having command */ SELECT COUNT(ID), salary FROM customer GROUP BY salary HAVING COUNT(id...
<#if ( lhSDept.id )?? && lhSDept.id ?length gt 0> /* 编号 */ and lsd.ID = :lhSDept.id </#if> <#if ( lhSDept.deptName )?? && lhSDept.deptName ?length gt 0> /* 名称 */ and lsd.DEPT_NAME = :lhSDept.deptName </#if> <#if ( lhSDept.summary )?? && lhSDept.summary ?length gt 0> /* 简介 */ and lsd...
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 11-09-2014 a las 19:51:31 -- Versión del servidor: 5.6.20 -- Versión de PHP: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
--part2.a --List the number of patients who had “tumor” (disease description), SELECT COUNT(P_ID) FROM CLINICAL_FACT WHERE DS_ID IN (SELECT DS_ID FROM DISEASE WHERE DESCRIPTION='tumor'); --List the number of patients who had “tumor” (disease description),“leukemia” (disease type), SELECT COUNT(P_ID) FROM CLINICA...
select us_aps.iadata, count(*) as load from ( select fl.origin as iadata from flights fl join airports as ap on (fl.dest = ap.iata) where fl.month >= 6 and fl.month >=1 and fl.month <= 8 and fl.month <=31 and ap.country='USA' union all select fl.dest as iadata from flights fl join air...
select distinct state."name" from state join president on president.state_id_born = state.id where president.state_id_born not in (select distinct president.state_id_born from president join administration on administration.pres_id = president.id where administration.year_inaugurated < 1900) order by "name"
update configuracion set [value]=1 where [key] = 'Paperless_Usuario1_Valida_Num_Consolidado'
USE groupflix; CREATE TABLE User ( UserID bigint(20) NOT NULL AUTO_INCREMENT, CreationDateTime datetime NOT NULL default '0000-00-00 00:00:00', EmailAddress varchar(50) NOT NULL default '', EncryptedPassword varchar(50) NOT NULL default '', Name varchar(100) NOT NULL default '', DefaultCheckoutPeriod int(1...
create table lop( id_lop int primary key auto_increment, tenlop varchar(50), nienkhoa varchar(50)); create table sinhvien( id_sv int primary key auto_increment, holot varchar(50), ten varchar(50), gioitinh varchar(10), ngaysinh date, diachi varchar(100), dienthoai varchar(50), ema...
UPDATE MAIL_CONFIGS SET HOST = ? , PORT = ? , AUTH_TYPE = ? , SMTP_ID = ? , SMTP_PASSWORD = ? , SALT = ? , FROM_ADDRESS = ? , FROM_NAME = ? , ROW_ID = ? , INSERT_USER = ? , INSERT_DATETIME = ? , UPDATE_USER = ? , UPDATE_DATETIME = ? , DELETE_FLAG = ? WHERE SYSTEM_NAME = ? ;
USE [Hotel Management] /* 1.a CREATE TABLE [Booking_Room]( [booking_id] VARCHAR(30), [room_id] VARCHAR(30), PRIMARY KEY (booking_id, room_id) ) CREATE TABLE [Customer]( [ID] int PRIMARY KEY, [first_name] NVARCHAR(40), [last_name] NVARCHAR(40), [email] NVARCHAR(MAX), [birt_date] DATE, [address_id] INT FOREIGN KEY REFE...
USE gameMW; CREATE TABLE IF NOT EXISTS gameMW.player1_hand ( id_ph2 int, name VARCHAR(15), right_hand varchar(15), left_hand varchar(15), armor varchar(15), race varchar(15), class varchar(15), min_attack TINYINT, max_attack TINYINT, defence TINYINT ); select * from characters; insert into gameMW.player1...
/* Navicat MySQL Data Transfer Source Server : yii Source Server Version : 50553 Source Host : localhost:3306 Source Database : api Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-09-22 17:40:46 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
/* Q1. How to return table from stored procedure ? Q2. What is insert bulk Q3.
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: giraffe -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
#Write an update.sql that will update user with id 1's name. UPDATE users SET user_name = "Little Miss Muffet" WHERE id = 1
/* CREATE TABLE driver_statuses ( driver_status_id serial NOT NULL, status_desc character varying(255) not null, CONSTRAINT pk_driver_status PRIMARY KEY (driver_status_id) ); */ CREATE TABLE drivers ( driver_id serial NOT NULL, firstname character varying(255), surname character varying(255), mobile_no ...
ALTER TABLE `system_mail_settings` ADD COLUMN `allow_recipient_blocking` TINYINT(4); ALTER TABLE `system_email_templates` ADD COLUMN `allow_recipient_block` TINYINT(4) NULL;
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) -- -- Host: localhost Database: SpringBootTesting -- ------------------------------------------------------ -- Server version 5.7.23-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Фев 14 2017 г., 08:26 -- Версия сервера: 5.5.50-0ubuntu0.14.04.1 -- Версия PHP: 5.5.9-1ubuntu4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
delimiter // DROP PROCEDURE IF EXISTS PeakAllCities_p2 // CREATE PROCEDURE PeakAllCities_p2 (IN time_Start VARCHAR(200), IN time_end VARCHAR(200)) BEGIN SELECT DISTINCT City_name, Pm2_5 FROM Pollution, City, (SELECT City_name, MAX(Pm2_5) AS Max FROM Pollution AS P1 GROUP BY City_name) AS Temp1 ...
#Stored Procedures USE planets DELIMITER // CREATE PROCEDURE spInsertParagraph ( IN DistanceFromSunKM int, IN LayerID Int, IN Paragraph varchar(200) ) BEGIN declare ID_s int; SELECT MAX(ID)+1 INTO ID_s FROM texts; INSERT INTO texts (ID,LayerID,Paragraph) VALUES (ID_s, @LayerID, @Paragraph); END // ...
REM INSERTING into SALESREP_INFO SET DEFINE OFF;
SELECT --R.RidershipRID, --R.Vehicle_ID, --R.Vehicle, --R.Counter, --R.Route_ID, --R.Route, --R.Route_Stop_ID, --R.RouteStop, --R.Latitude, --R.Longitude, --R.UTCTime, --R.ClientTime, --R.Entrys, --R.Exits, --R.DateTime, --R.DayofWeek, --R.TotalOnOff, --R.DateTime2,...
/*Q1*/ SELECT * FROM restaurante_db.CLI; SELECT * FROM restaurante_db.CLI WHERE Pays = "France" ORDER BY NomCli; SELECT NomCli FROM restaurante_db.CLI WHERE Pays IN ("France", "Royaume-Uni") ORDER BY NomCli; SELECT DISTINCT PRO.NomPro FROM restaurante_db.PRO AS PRO JOIN restaurante_db.DET AS DET ON PRO.NumPro = D...
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 8.0.23-0ubuntu0.20.04.1 - (Ubuntu) -- OS do Servidor: Linux -- HeidiSQL Versão: 11.2.0.6213 -- -------------------------------------------------------- ...
alter table if exists messages drop constraint messages_users_fk; alter table if exists messages add constraint messages_users_fk foreign key (user_id) references users on delete cascade; alter table if exists users_roles drop constraint users_roles_users_fk; alter table if exists users_roles add...
create table sn.u_cat_logo_de_repuestos ( sys_id nvarchar(32) primary key, sys_updated_by nvarchar(40), u_c_digo_csj nvarchar(20), sys_created_on datetimeoffset, u_tipo_de_elemento nvarchar(60), sys_mod_count integer, u_descripci_n_de_repuesto text, sys_updated_on datetimeoffset, sys_created_by nvarchar(40), u_valo...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 03, 2021 at 10:10 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2016 at 02:57 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 CREATE DATABASE iseq; USE iseq; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
/* Navicat Premium Data Transfer Source Server : 实验室服务器 Source Server Type : MySQL Source Server Version : 50718 Source Host : 192.168.1.247:3306 Source Schema : microblog Target Server Type : MySQL Target Server Version : 50718 File Encoding : 65001 Date: 01/07/2018...
select * from public.students where age(date_of_birth) > make_interval(25);
USE `hefesto`; DROP procedure IF EXISTS `spestadoInsert`; DELIMITER $$ USE `hefesto`$$ CREATE PROCEDURE `spestadoInsert` (OUT estadoId int(11), IN paisId int(11), IN nombre varchar(45)) BEGIN INSERT INTO estado ( estado.paisId,estado.nombre) VALUES ( paisId,nombre); END$$ DELIMITER ; USE `hefesto`; DROP procedu...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 07, 2020 at 05:16 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.2.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
REM delete.sql REM Version 1.0, last updated 4/30/97 REM This block illustrates the DELETE table attribute, as described in REM Chapter 3 of _Oracle8 PL/SQL Programming_ by Scott Urman. SET serveroutput on DECLARE TYPE t_ValueTable IS TABLE OF VARCHAR2(10) INDEX BY BINARY_INTEGER; v_Values t_ValueTa...
SELECT r.code AS Code, r.columnname AS ColumnName, 'Relationship' AS COLUMNTYPE ------------------------------------------- FROM vw_fom_relationship r WHERE (:Object_Id IS NULL OR (:Object_Id IS NOT NULL AND R.Sourcebo = :Object_Id )) AND (:Type IS NULL OR (:Type IS NOT NULL AND lower(:Type...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.12 -- Dumped by pg_dump version 9.5.12 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; S...
alter table workflow_base add isImportDetail char(1) /
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3308 -- Generation Time: Aug 12, 2021 at 01:40 PM -- Server version: 5.7.28 -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
SELECT B.TZ_CLASS_NAME, C.TZ_BATCH_NAME, A.TZ_PYKS_RQ, A.TZ_PYKS_SJ, A.TZ_PYJS_RQ, A.TZ_PYJS_SJ, A.TZ_CLPS_SM, A.TZ_DQPY_LUNC, A.TZ_DQPY_ZT, (SELECT D.TZ_ZHZ_DMS FROM PS_TZ_PT_ZHZXX_TBL D WHERE D.TZ_ZHZ_ID=A.TZ_DQPY_ZT AND D.TZ_ZHZJH_ID='TZ_DQPY_ZT' ) TZ_DQPY_ZT_DESC, A.TZ_MSPY_NUM,...
-- MOET AL DIE BOOKINGS WAT POSTED INVOICES HET GAAN UPDATE MET DIE REGTE RECEIPT OBJECTS. UPDATE gxweb.booking set receipts = COALESCE(( SELECT jsonb_agg(aa.*) as rec FROM (SELECT splitno, docnr, trantype FROM ( SELECT entity, docnr, trantype, splitno, amt_type, bno, tot_amt, utility.decrypt_debfdetail(trantype...
CREATE OR REPLACE FUNCTION FUNC_DRUGNAME(f_drugid IN PHARMACOLOGY_STOCK.DRUGID%TYPE) RETURN VARCHAR2 AS lv_drugname varchar2(2000) := NULL; BEGIN SELECT DRUG_NAME INTO lv_drugname FROM PHARMACOLOGY_STOCK WHERE DRUGID = f_drugid; RETURN lv_drugname; EXCEPTION WHEN NO_DATA_FOUND THEN RETURN NULL; END;
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2019 at 08:21 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.2.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP KEYSPACE IF EXISTS nagios_raw; CREATE KEYSPACE nagios_raw WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 2}; USE nagios_raw; CREATE TABLE NOTIFICATION ( id UUID, timestamp BIGINT, object_type INT, host_name TEXT, description TEXT, contact TEXT, notification_type INT, method TEXT, me...
-- MySQL Script generated by MySQL Workbench -- Thu 09 Nov 2017 06:36:34 PM -02 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
-- -- Estrutura da tabela `pessoa` -- CREATE TABLE IF NOT EXISTS `conta` ( `CODCONTA` char(32) NOT NULL DEFAULT '', `DTA` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `NOME` varchar(70) DEFAULT NULL, `EMAIL` varchar(32) DEFAULT NULL, `SENHA` char(32) DEFAULT NULL, `SEXO` char(1) DEFAULT NULL, ...
/* Navicat Premium Data Transfer Source Server : Local Server Source Server Type : MySQL Source Server Version : 100413 Source Host : localhost:3306 Source Schema : bicho Target Server Type : MySQL Target Server Version : 100413 File Encoding : 65001 Date: 06/10/2020...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 12-06-2020 a las 22:48:28 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...