text
stringlengths
6
9.38M
CREATE TABLE CUSTOMER ( custkey int, name string, address string, nationkey int, phone string, acctbal float, mktsegment string, comment string ) FROM FILE 'customer.tbl' USING TPCH('customer'); CREATE TABLE ORDERS ( orderkey int, custkey int, orderstatus string, totalprice float, orderdate ...
CALL AddCompany( 'Bourns' ); CALL AddResistor( 'Bourns', 'CR0603-FX-10R0ELF', '0603(1608)', 'RESISTOR', 10.000000, 0.010000 ); CALL AddResistor( 'Bourns', 'CR0603-FX-10R2ELF', '0603(1608)', 'RESISTOR', 10.200000, 0.010000 ); CALL AddResistor( 'Bourn...
-- This file can be executed on any reasonably recent version of MySQL or MariaDB. -- Some of the routines may be overwritten when executing more specific files. CREATE DATABASE IF NOT EXISTS _; USE _; /* Generic Routines ================ */ DELIMITER || DROP FUNCTION IF EXISTS quote_name; CREATE FUNCTION ...
alter user KCDEV30A Account unlock;
--drop table tmp_product purge; --drop table tmp_sales_territory purge; --drop table tmp_trade_channel purge; --drop table tmp_Detail_Node purge; --drop table tmp_Agg_Node purge; --drop table tmp_cdt purge; --drop table tmp_AggNodeRule purge; --session level create global temporary table tmp_product(ProductID number) ...
DROP TABLE PESSOA DROP TABLE ITEM
INSERT INTO acl_sid (id, # primary key principal, # is principal(like user) or authority(like role) sid # principal or authority name ) VALUES (1, 1, 'manager'), (2, 1, 'hr'), (3, 0, 'ROLE_EDITOR'); INSERT INTO acl_class (id, ...
/*Section 13. MySQL data types MySQL data types – show you various data types in MySQL so that you can apply them effectively in designing database tables. INT – show you how to use integer data type. DECIMAL – show you how to use DECIMAL data type to store exact values in decimal format. BIT – introduce you BIT data ...
insert into @key_columns(col) values ({Column});
.headers on .nullvalue '-null-' .mode csv -- -- 01 SELECT name FROM Site;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 31, 2021 at 03:52 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
INSERT INTO burgers (burger_name, devoured) VALUES ('Cheese Burger', true); INSERT INTO burgers (burger_name, devoured) VALUES ('Avocado Burger', true); INSERT INTO burgers (burger_name, devoured) VALUES ('Hummus Burger', false);
metadata :name => "sslappl", :description => "Agent for SSL components", :author => "Cristian Roldan", :license => "ASL v2", :version => "1.0", :url => "http://projects.puppetlabs.com/projects/mcollective-plugins/wiki", :timeout ...
/********************************************************** * SQL Query & Function Example1 **********************************************************/ /** -- Employees Table Columns -- EMPLOYEE_ID -- FIRST_NAME -- LAST_NAME -- EMAIL -- PHONE_NUMBER -- HIRE_DATE -- JOB_ID -- SALARY -- COMMISSION_PCT -- MA...
INSERT INTO BATCH_JOB_ERROR_CODE (ERROR_CODE, DESCRIPTION, SOLUTION, CATEGORY, REG_DATE, MOD_DATE) VALUES ('JOB999', '정의되지 않은 오류가 발생하였습니다.', '오류내용 또는 로그 정보를 확인하여 조치하여 주십시오.', 'W', '20130120111023', '20130120111023'); INSERT INTO BATCH_JOB_ERROR_CODE (ERROR_CODE, DESCRIPTION, SOLUTION, CATEGORY, REG_DATE, MOD_DAT...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 12, 2018 at 04:59 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
CREATE PROC SEL_SOCIOFEBRERO AS SELECT E.NOMBRE,CD.NOMBRE,C.Observacion,cast(isnull (C.TOTAL,0) AS DECIMAL(18,2)) AS TOTAL FROM ERP.COMPROBANTE C INNER JOIN ERP.ComprobanteDetalle CD ON C.ID = CD.IDCOMPROBANTE INNER JOIN ERP.Cliente CL ON CL.ID=C.IdCliente INNER JOIN ERP.Entida...
/* Copyright 2020-2021 Snowplow Analytics Ltd. All rights reserved. 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...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 21, 2016 at 08:31 PM -- Server version: 5.5.46-0ubuntu0.14.04.2 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- works like MINUS operator select a.id from table1 as a where <condition> AND a.id NOT IN (select b.id from table2 as b where <condition>); -- attendence query SELECT c.c_fname, c.c_gender, c.c_lname, c.c_grade, TIMESTAMPDI...
CREATE TABLE tx_f2portfolio_domain_model_project ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, name tinytext, description tinytext, outstanding tinyint(1) unsigned DEFAULT '0' NOT NULL, date int(11) DEFAULT '0' NOT NULL, tags int(11) unsigned DEFAULT '0' NOT NULL, images varchar(1...
SELECT CONTRACT_INFO.CONTRACT_NO, CASE WHEN CONTRACT_INFO.CONTRACT_CONDITION <= /*constDto.contractConditionFrom*/'20' ----------------------------------------------------------------------------------------------------mult --OR CONTRACT_INFO.ACCEPTANCE_CHECK_DATE > OR CONVERT(...
REM REM This is where you can put your own synchronizing for a PDB based on APPLICATIOM CONTAINER REM alter pluggable database application DB_APP sync; REM alter pluggable database application APEX sync; exit
create table file_data( id int primary key auto_increment not null, filename varchar(200) not null, filesize int not null, server_path varchar(200) not null, metadata text default null, create_date datetime not null );
--MEMBERS-- --city council district select city_council_district ,count(distinct enterprise_id) from analytics.members where city_council_district in ('CT01','CT03','CT05','CT07','CT09') and reg_addr_state = 'NM' and reg_addr_city = 'ALBUQUERQUE' and is_member is true and is_registered is true --likely voters--- and ...
-- MySQL dump 10.13 Distrib 5.5.59, for Linux (x86_64) -- -- Host: localhost Database: moodle -- ------------------------------------------------------ -- Server version 5.5.59 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : wk Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 10/11/2018 11:41:16 */ S...
insert into users (email, phone, pass) values ('ndaborn0@digg.com', '682-387-5547', '6c8f49934f14e6f02119487778b6395476ffdd33'); insert into users (email, phone, pass) values ('gbonnette1@barnesandnoble.com', '313-304-6381', '6c8f49934f14e6f02119487778b6395476ffdd33'); insert into users (email, phone, pass) values ('bb...
# Host: localhost (Version: 5.5.53) # Date: 2018-01-18 20:36:57 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "ih_goods" # DROP TABLE IF EXISTS `ih_goods`; CREATE TABLE `ih_goods` ( `goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cat_id` int(11) NOT NULL,...
select ID, coalesce(caption, '') as caption, name, edrpou, inn, email from org_organization where record_state <> 4
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 10, 2017 at 12:51 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
USE regalonatural; DELETE FROM regalonatural.ps_cart_rule_product_rule; INSERT INTO `ps_cart_rule_product_rule` VALUES (1,1,'products');
SELECT F.COST_PERIOD_ID, --社内コスト期間 CODE_MASTER.CODE_NAME AS COST_PERIOD_NAME --社内コスト期間名 FROM FUNDING_COST_MST F --社内コストマスタ LEFT JOIN CODE_MASTER ON CODE_MASTER.CODE_TYPE = CAST(/*fFundingCostMstKbn*/ AS CHAR(3)) AND CODE_MASTER.CODE_ID = F.COST_PERIOD_ID AND CODE_MASTER.COUNTRY_ID = /*countryId*/ WHERE 1 = 1 ...
use native_db; CREATE table sample_content ( id INT(10) auto_increment primary key, item_title varchar(100), group_name varchar(100), notes text, main_desc text, long_desc text, note_context text, research_notes text, display text, prim_doc text );
-- Create moderation_queues table DROP TABLE IF EXISTS moderation.distributed_moderation_queues; CREATE TABLE IF NOT EXISTS moderation.distributed_moderation_queues ( user_id UInt64, campaign_id Array(UInt64), advert_group_id UInt64 DEFAULT 0, advert_id UInt64 DEFAULT 0, object_id ...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 23, 2019 at 07:55 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* SQLyog Ultimate v9.10 MySQL - 5.1.73-community : Database - file_manage ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_C...
-- Your SQL goes here -- this directory was made hidden so that the game_mode_option_table can be setup first! CREATE TABLE interaction_history ( id BIGSERIAL PRIMARY KEY, person BIGSERIAL REFERENCES users(id), enjoyed_interaction BOOL, start_date TIMESTAMP NOT NULL, start_time TIMESTAMP NOT NULL,...
-- MySQL dump 10.13 Distrib 5.5.46, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: exp_sys -- ------------------------------------------------------ -- Server version 5.5.46-0ubuntu0.14.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
/* database: ecoai */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `observation_met_city` -- ---------------------------- DROP TABLE IF EXISTS `observation_met_city`; CREATE TABLE `observation_met_city` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `city_id` int...
CREATE DATABASE IF NOT EXISTS `storyproject` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; USE `storyproject`; CREATE TABLE `searchresults` ( `id` int(10) UNSIGNED NOT NULL, `searchedterm` varchar(128) NOT NULL, `searchedtime` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Table f...
/* create database if not exists bookshop; use bookshop; */ drop table if exists books; CREATE TABLE IF NOT EXISTS books ( item_number INT NOT NULL, title VARCHAR(120) NOT NULL, author VARCHAR(30) NOT NULL, description VARCHAR(100), retail_cost FLOAT NOT NULL, publication_date INT ); alter table...
INSERT INTO LEAVE3 VALUES('011a1', 'CL', '23-MAR-10', '25-MAR-10'); INSERT INTO LEAVE3 VALUES('012a1', 'CL', '23-APR-10', '25-APR-10'); INSERT INTO LEAVE3 VALUES('013a1', 'EL', '23-MAR-10', '25-APR-10'); INSERT INTO LEAVE3 VALUES('014a1', 'ML', '01-MAR-10', '25-MAR-10');
DROP TABLE IF EXISTS r_alert_picture CASCADE; DROP TABLE IF EXISTS pictures CASCADE; DROP TABLE IF EXISTS url CASCADE; DROP TABLE IF EXISTS pest CASCADE; DROP TABLE IF EXISTS crop CASCADE; DROP TABLE IF EXISTS disease CASCADE; DROP TABLE IF EXISTS harvest CASCADE; -- table pest CREATE TABLE pest ( id_pest serial P...
alter table [GIRLPOWER].Rendicion add NroRendicion numeric (18,0) not null insert into [GIRLPOWER].Rendicion (IDTurno,IDChofer,Fecha,ImporteTotal,NroRendicion) (select distinct t.IDTurno,c.IDChofer,m.Rendicion_Fecha,0,m.Rendicion_Nro from gd_esquema.Maestra m inner join [GIRLPOWER].Turno t on t.Descripcion=m.Turno_Des...
/** * SQL for Delete FR_SHISETSU_MEDICAL_TYPE by SHISETSU_CD * @author TuyenVHA * @version $Id: ShisetsuDashboardService_deleteFrShisetsuMedicalType_Del_01.sql 8499 2014-06-26 02:50:34Z p__toen $ */ DELETE FROM FR_SHISETSU_MEDICAL_TYPE FSMT WHERE FSMT.SHISETSU_CD = /*shisetsuCd*/'111111111'
CREATE INDEX idx_da_state_1 ON public.da_state USING btree (dw_last_updated_dt, dw_facility_cd); CREATE UNIQUE INDEX uk_da_state ON public.da_state USING btree (dw_row_id, dw_facility_cd); CREATE UNIQUE INDEX uk_da_state_2 ON public.da_state USING btree (state_cd, dw_facility_cd);
CREATE PROC ERP.Usp_Del_AjusteCuentaCobrar @ID INT AS BEGIN DELETE FROM [ERP].[AjusteCuentaCobrar] WHERE ID = @ID END
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Jul 09, 2016 at 01:13 AM -- Server version: 10.1.9-MariaDB-log -- PHP Version: 5.6.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
-- phpMyAdmin SQL Dump -- version 3.5.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 18, 2013 at 02:02 PM -- Server version: 5.5.29 -- PHP Version: 5.4.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Table structure for table `templates` -- CREATE TABLE IF NOT ...
CREATE TABLE `domains` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL, `user_id` int(11) NOT NULL, `customer` varchar(255) default NULL, `responsible` varchar(255) default 'ii-tech', `price_plan` varchar(255) default 'special', `registry` varchar(255) default 'Providerdomain', `sta...
-- script that lists the number of records with the same -- score in the table second_table of the database -- hbtn_0c_0 in your MySQL server. SELECT score, COUNT(*) AS number FROM second_table GROUP BY score ORDER BY score DESC;
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Янв 10 2017 г., 10:35 -- Версия сервера: 5.6.16 -- Версия PHP: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Creato il: Dic 21, 2015 alle 12:33 -- Versione del server: 5.6.26 -- Versione PHP: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 09, 2020 at 01:45 AM -- Server version: 5.6.46-cll-lve -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
alter table party enable row level security; create policy party_select_admin on party for select using ( is_admin() ); alter table address enable row level security; alter table "user" enable row level security; drop policy if exists user_select_all on "user"; create policy user_select_admin on "user" for selec...
/* Alle status Einträge selektieren, es werden alle Zeilen zurückgegeben */ SELECT status FROM `orders` /* Wenn jeder Status nur einmal ermittelt werden soll, lassen wir die Ergebnisse gruppieren GROUP BY Alternativ zu dem unten angegebenen Statement: SELECT DISTINCT status FROM `orders` Jed...
insert into users (id,uname,pwd,name_surname,email) values (1000,''temelt'',''123'',''Taner TEMEL'',''tanertemel@outlook.com''); insert into project(id,created_at,status,project_code,project_name,manager_user_id) values (1000,now(),true,''ISMAN'',''Issue Management System'',1000); insert into issue (id,created_at,sta...
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 23-05-2020 a las 20:35:58 -- Versión del servidor: 10.1.33-MariaDB -- Versión de PHP: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
insert into Autores (ApePaAutor,ApeMAAutor,NomAutor,PsedoAutor) values ('Acevedo','Caceres','Javier Ignacio','Sr.Cthulhu'), ('Silva','Nuñez','Susana Sofia','Popi'), ('Monardez','Muñoz','Catalina Fernanda','Pin'), ('Manriquez','Ibarra','Álvaro Matias','Sasso') ; insert into Editoriales(NomEditorial) values ('Aremen')...
-- ============================================= -- Author: Cláudio Teixeira -- Create date: 28/10/2017 -- Description: Devolve a contagem de Pessoas Laureados Nobel, agrupados por pais atual (de nascimento) -- Devolve a contagem de laureados e não a contagem de prémios atribuídos -- ==============================...
DELETE Parametro; DELETE Origen; DELETE ProductoOportunidad; DELETE Recordatorio; DELETE Accion; DELETE OportunidadDeVenta; DELETE Estatus; DELETE Producto; DELETE Actividad; DELETE PermisoUsuario; DELETE UsuarioEquipo; DELETE Equipo; DELETE Permiso; DELETE Usuario; DELETE Rol; DBCC CHECKIDENT (Parametro, RESEED, 0)...
SELECT * FROM (SELECT * FROM (SELECT t.transaction_id, t.currency, DATE_FORMAT(t.create_time, '%Y-%m-%d') AS create_time, s.salesperson_code, t.total_profit, t.received+t.received2 AS revenue, t.expense, c.code, t.coupon, cs.source_name, t.clear_status, t.lock_status, t.note FROM Transactions t JOIN CouponCod...
CRATE TABLE users ( user_id serial PRIMARY KEY, username VARCHAR (50) UNIQUE NOT NULL, password VARCHAR (50) NOT NULL, email VARCHAR (355) UNIQUE NOT NULL, created_on DATE, last_login TIMESTAMP )
create table Breeds ( breedID int auto_increment, breedName varchar(255) not null, type enum ('dog', 'cat', 'other') default 'cat' not null, constraint Breeds_breedID_uindex unique (breedID) ); create index Breeds_type_index on Breeds (type); alter tabl...
SELECT --a.申請番号 A.APPLY_NO, --a.取得総額 A.OBTAIN_SUM_TOTAL, --a.回収総額 A.WITHDRAW_SUM_TOTAL, --a.回収回数 A.WITHDRAW_FREQUENCY, --a.顧客_取引先コード A.CUSTOMER_CODE AS LESSEE_CODE, --a.顧客_名称 A.CUSTOMER_NAME AS LESSEE_NAME, --a.申請状況 A.APPLY_STATE, --b.案件调查报告号 B.REPORT_NO, --b.报告书作成状态 B.REPORT_CREATE_STATE, --...
# TODO: STORE BY USER && INST_BOOK_ID. These two values will combine to be unique keys for # identifying valueable data. DROP TABLE IF EXISTS opendsa.example_users; # Attempts per day, num_correct per day CREATE TABLE opendsa.example_users( user_id INT, inst_book_id INT, inst_section_id INT, attempts INT...
SELECT CONCAT(MONTH(ShippedDate), ' / ', YEAR(ShippedDate) - 1900) AS 'Shipped Date', AVG(DAY(ShippedDate)) AS 'Average Shipping Day' FROM [Order Details] JOIN Orders ON Orders.OrderID = [Order Details].OrderID GROUP BY MONTH(ShippedDate), YEAR(ShippedDate) HAVING YEAR(ShippedDate) IS NOT NULL
-- Define self service privileges -- Create new role privileges -- Create new role for self-service ALTER TABLE `users`add constraint unique_username_email unique (`id`,`username`,`email`); INSERT INTO `m_roles` ( `name`) VALUES ("SELF SERVICE"); SET @roleId = (SELECT `id` FROM `m_roles` WHERE `name` = "SELF SERVICE"...
 CREATE PROCEDURE cpr.PlanificacionRutasDeleteOrdenes @usuario VARCHAR(50) AS BEGIN SET NOCOUNT ON; DELETE t FROM tactic.id_toursolver.planificacion_rutas_ordenes t WHERE t.usuario = @usuario END
use moviedb; select t.* from ( select distinct count(*) OVER() AS total_rows, movies.id as movie_id, movies.title, movies.year, movies.director, rating, group_concat(distinct genres.name SEPARATOR ', ') AS listGenres, group_concat(distinct stars.id ORDER BY stars.name separator ', ') AS listStarsId, group_conc...
CREATE TABLE public.murmurs ( id integer NOT NULL, user_id integer NOT NULL, text text NOT NULL, create_at timestamp without time zone DEFAULT now() NOT NULL, room_key text NOT NULL ); CREATE TABLE public.users ( id integer NOT NULL, name text NOT NULL, create_at timestamp without time ...
Create table AVIS (identifiant int IDENTITY(1,1) CONSTRAINT PK_AVIS PRIMARY KEY, description varchar(150) not null, note tinyint NOT NULL CONSTRAINT CK_AVIS_NOTE CHECK(note between 1 and 5) );
TRUNCATE TABLE OLE_CAT_SRC_TRM_T DROP STORAGE / INSERT INTO OLE_CAT_SRC_TRM_T (SRC_TRM_ID,SRC_TRM_CD,SRC_TRM_NM,SRC,SRC_DT,ROW_ACT_IND,OBJ_ID,VER_NBR) VALUES ('8','pda','Preservation and digitization actions: terminology for MARC 21 Field 583','http://www.loc.gov/standards/sourcelist/resource-action.html',TO_DATE( '2...
SELECT EXISTS(SELECT * FROM boundary WHERE ST_Contains(the_geom,ST_GeomFromText('POINT(-87.64581 41.92683)', 4326))); SELECT EXISTS(SELECT * FROM boundary WHERE ST_Contains(the_geom,ST_GeomFromText('POINT(-87.843113 41.632342)', 4326))); SELECT pri_neigh AS Neighborhood FROM hoods WHERE ST_Contains(the_geom,ST_Geo...
-- 26/10/2019 - Addresses and companies info CREATE TABLE `addresses` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `address` varchar(255), `district` varchar(100), `building` varchar(255), `lat` decimal(10,6), `lng` decimal(10,6), `distance` varchar(5), `description...
-- phpMyAdmin SQL Dump -- version 4.0.10.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 31, 2015 at 10:07 PM -- Server version: 5.6.22-72.0-log -- PHP Version: 5.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
/* Navicat MySQL Data Transfer Source Server : discuz Source Server Version : 50717 Source Host : 103.45.101.109:4406 Source Database : test2 Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-06-05 14:35:39 */ SET FOREIGN_KEY_CHECKS=0; -- -...
WITH --Gather contact and academic term data to join with COVI data to set reporting groups gather_at_data AS ( SELECT full_name_c, at_id, contact_id, AY_Name, site_short, Ethnic_background_c, Gender_c FROM `data-warehouse-289815.salesforce_clean.contact_at_template` WHERE College_Track_St...
-- Script generated by com.jnj.gtsc.harmony.migration.script.migrate.MigrateAccessRightsScript -- Script generated on 28/May/2013 00:12:48 -- Source = jdbc:oracle:thin:@hpxc83p05.ncsbe.eu.jnj.com:2666:PRDUX153 -- Set ampersand definitions off set define off; begin -- Set larger dbms output buffer ...
USE shedule; DROP TABLE istakingplace; DROP TABLE subgroup; DROP TABLE note; DROP TABLE auditorium; DROP TABLE couple; DROP TABLE subject; DROP TABLE student; DROP TABLE `group`; DROP TABLE teacher; DROP TABLE department; DROP TABLE faculty; DROP TABLE user; DROP DATABASE shedule;
INSERT INTO HOGE (id) VALUES (1); INSERT INTO HOGE (id) VALUES (2); INSERT INTO HOGE (id) VALUES (3);
create database blog; create user 'blog'@'localhost' identified by 'password'; grant all privileges on * . * to 'blog'@'localhost'; drop table Comentarii; drop table Voturi; drop table Taguri; drop table Articole; drop table Utilizatori; create table Utilizatori( id_utilizator int auto_increment primary key, num...
DROP DATABASE IF EXISTS california_users; CREATE DATABASE california_users; \c california_users; CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR NOT NULL UNIQUE, email VARCHAR NOT NULL UNIQUE, phone_number VARCHAR NOT NULL UNIQUE ); CREATE TABLE photos ( id SERIAL PRIMARY KEY, url VARCHAR NO...
# # phpOpenTracker # # Copyright (c) 2000-2009, Sebastian Bergmann <sb@sebastian-bergmann.de> and # Copyright (c) 2009, Arne Blankerts <arne@blankerts.de>. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditi...
-- SAMPLE_ATTRIBUTE -- select sa.* from ifx_projects. project p, ifx_projects. sample_attribute sa where p.projet_is_public = 1 and p.projet_id = sa.sampla_projet_id; SELECT 'INSERT INTO sample_attribute ( sampla_id, sampla_projet_id, sampla_lkuvlu_attribute_id, sampla_sample_id, sampla_attribute_date, sampla_...
-- INSERT PSEUDO USERS DATA INTO OUR DATABASE INSERT INTO users ( first_name, last_name, age, gender, email, password, phone, city, occupation, bio) VALUES ( 'Billy','Bob', 33, 'male', 'billybobjoe@gmail.com', '$2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u.', '+14165550015', 'Philadelphia'...
CREATE TABLE [etl].[tipos_archivos_campos_llave] ( [id_tipo_archivo] [bigint] NOT NULL, [llave] [varchar](50) NOT NULL, [id_campo] [bigint] NOT NULL CONSTRAINT [PK_tipos_archivos_campos_llave] PRIMARY KEY CLUSTERED ( [id_tipo_archivo] ASC ,[llave] ASC,[id_campo] ASC ) ON [INDEXES], CONSTRAINT [FK_tipos_arch...
/* 2. Удалите 1 запись из Customers, которая была вами добавлена. */ DELETE FROM Sales.Customers WHERE CustomerName = 'Giordano Bruno'
Select a.award_id, a.award_number, a.Document_Number, a.Sequence_Number , a.Update_Timestamp, a.Update_User, t.Crte_DT as Create_Date , fp.proposal_id from mgprod.award a ,mgprod.krew_doc_hdr_t doc ,mgprod.krew_actn_rqst_t t ,award_funding_proposals...
.@classpath mysql ../drivers/mysql-connector-java-5.1.39-bin.jar .open -u root mysql://localhost/?useUnicode=true&characterEncoding=utf-8&useSSL=false
CREATE TABLE IF NOT EXISTS `luffy_etl` ( `etl_id` int(11) NOT NULL AUTO_INCREMENT, `tag` varchar(40) NOT NULL COMMENT '分类标签', `etl_name` varchar(50) NOT NULL COMMENT '任务名称', `code` varchar(4000) DEFAULT NULL COMMENT 'JSON配置代码', `is_enabled` int(11) NOT NULL DEFAULT '0' COMMENT '是否启动 ', `is_extr...
/* Formatted on 21/07/2014 18:44:06 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_FEN_PTF_DETT_TEST ( VAL_ANNOMESE, COD_ABI, COD_NDG, COD_SNDG, COD_MATR_PRATICA, COD_UO_PRATICA, DTA_APERTURA, DTA_PASSAGGIO_SOFF, COD_STATO_RISCHIO, COD_FILIALE, SCSB_UTI_TOT, ...
create table play_clean_scala.user ( id varchar(255) not null primary key, name varchar(255) null, role int null );
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `dict_field`; CREATE TABLE `dict_field` ( `id` int(11) NOT NULL AUTO_INCREMENT, `field` varchar(40) NOT NULL COMMENT '属性名', `multi` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否多选值,默认不多选,多选必须是数据项值定义为二进制只有一个位为1的整数', `groupId` int(11) NOT NULL COMMENT '分组', PRIMARY ...
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 02, 2014 at 06:39 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
create table matchresult( mrno int not null AUTO_INCREMENT primary key, mcode int not null, hpoint int null, apoint int null )ENGINE=MyISAM DEFAULT CHARSET="UTF8"; select * from matchresult drop table matchresult; select input from matchresult where mcode=2 SELECT writer, shooting, stamina, manner, pass, commen...
create table if not exists widgets ( id integer primary key, color varchar(10) not null, size integer ); create index if not exists idx_color on widgets (color); create index if not exists idx_size on widgets (size); create table if not exists prices ( widget_id integer primary key, price integer ); create inde...
CREATE TABLE users ( id INTEGER AUTO_INCREMENT PRIMARY KEY, email VARCHAR(64) UNIQUE NOT NULL, firstname VARCHAR(64) NOT NULL, lastname VARCHAR(64) NOT NULL, password VARCHAR(64) NOT NULL);
create sequence BURI_WAITING_SEQ start with 2 increment by 1;