text
stringlengths
6
9.38M
Set @num1=1; set @num2=1; select group_concat(number1 separator '&') from (select number1 from (select number1, case when number1%number2=0 then 1 else 0 end as divisor from (select @num1:=@num1+1 number1 from information_sch...
create table tornus_users ( id serial not null primary key, user_name varchar not null unique, visible_name varchar not null unique, state varchar not null, user_type varchar not null, data_auth jsonb, data jsonb, last_login timestamp with time zone, created_at timestamp with time zone not null defau...
-- -- Table structure for table `bnd` -- DROP TABLE IF EXISTS `bnd`; CREATE TABLE `bnd` ( `id` int(10) unsigned NOT NULL auto_increment, `gilde` int(10) unsigned NOT NULL, `bnd` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM; -- -- Table structure for table `gilde` -- DROP TABLE IF EXISTS `gi...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 13, 2021 at 05:23 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
SELECT NAME FROM STUDENTS WHERE MARKS > 75 ORDER BY SUBSTR(NAME, -3) ASC, ID ASC;
use native_db; CREATE TABLE IF NOT EXISTS `saved_searches` ( `id` int(10) primary key NOT NULL AUTO_INCREMENT, `user_id` int(10) NOT NULL, `content_id` int(10) NOT NULL, `createdAt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `updatedAt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' );
select starttime from cd.bookings WHERE memid = (SELECT memid FROM cd.members WHERE surname ILIKE '%farrell' AND firstname ILIKE '%david')
DELETE FROM reservation; DELETE FROM lending ; DELETE FROM books; DELETE FROM books_reservation; INSERT INTO books_reservation( id, next_return_date, number, possible) VALUES (-1, '2020-01-15 14:00:00' ,0, 60), (-2,'2020-01-15 14:00:00' , 2, 60), (-3, '2020-01-15 14:00:00', 2, 60), (-4, '2020-01-15 14:00:00', ...
DROP DATABASE IF EXISTS sge; CREATE database sge; connect sge; CREATE TABLE imobiliaria ( id INT NOT NULL AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, cpf VARCHAR(14) NOT NULL UNIQUE, senha VARCHAR(8) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE morador ( id INT NOT NULL AUTO_INCREMENT, nome ...
CREATE TABLE userinfo(name VARCHAR(16) NOT NULL PRIMARY KEY,password VARCHAR(16) NOT NULL) insert into userinfo values ('test','9981') insert into userinfo values ('ace','5598') insert into userinfo values ('first','9989') insert into userinfo values ('yeah','998') insert into userinfo values ('zzz','9978') insert in...
/* Navicat Premium Data Transfer Source Server : hh Source Server Type : MySQL Source Server Version : 80022 Source Host : 127.0.0.1:3306 Source Schema : blog Target Server Type : MySQL Target Server Version : 80022 File Encoding : 65001 Date: 09/08/2021 21:03:53 */ ...
CREATE TABLE IF NOT EXISTS `hammer_spam` ( `iSpamID` INT NOT NULL AUTO_INCREMENT, `cEmail` TEXT NOT NULL, `iIP` INT NOT NULL, PRIMARY KEY (`iSpamID`) ) ENGINE=InnoDB;
update houses set image_url=$2 where house_id=$1 returning *;
UPDATE BURI_STATE SET PROCESS_DATE = CURRENT_TIMESTAMP, ABORT_DATE = CURRENT_TIMESTAMP WHERE PROCESS_DATE > CURRENT_TIMESTAMP AND STATE_ID = /*savingStateId*/1 ;
#create database ROOMIE; drop table COMMENTS; drop table STUDENT; drop table ROOM; drop table PREFERENCE; drop table DORMITORY; create table PREFERENCE ( Student_ID int, Smokes bool default false, Sleep_Start_Time time, Sleep_End_Time time, Music_Preference varchar(255), Hobby varchar(255), ...
-- 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_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SU...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` text NOT NULL, `password` text NOT NULL, `hwid` text, `ban` int(11) NOT NULL DEFAULT '0', `type` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTE...
CREATE TABLE [icb].[Claim] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (50) NOT NULL, [Description] NVARCHAR (100) NOT NULL, [CreatedBy] NVARCHAR (50) NOT NULL, [CreatedOn] DATETIME CONSTRAINT [DF_Claim_CreatedOn] DEFAULT (getdate()) NOT NULL, [Mo...
-- Generated by Oracle SQL Developer Data Modeler 17.2.0.188.1104 -- at: 2017-09-06 12:36:47 CST -- site: Oracle Database 11g -- type: Oracle Database 11g CREATE TABLE asignacion_rol ( id NUMBER NOT NULL, nombre VARCHAR2(100 CHAR) NOT NULL, descripcion ...
SELECT TOP 1 PROCESS_NO, PROCESS_TEMPLATE_ID FROM PROCESS_NODE_STATUS WHERE CONTACT_KEY = /*key*/'' AND PROCESS_TYPE = CAST(/*processType*/'1' AS CHAR(2)) AND NODE_STATUS = CAST('1' AS CHAR(1))
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: ssddb.ck6ywww2iqip.sa-east-1.rds.amazonaws.com Database: DataWarehouse -- ------------------------------------------------------ -- Server version 5.7.23-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
SET search_path TO A2; -- Add below your SQL statements. -- For each of the queries below, your final statement should populate the respective answer table (queryX) with the correct tuples. It should look something like: -- INSERT INTO queryX (SELECT … <complete your SQL query here> …) -- where X is the correct in...
SELECT A.VariedadID, A.Campaña, iif(isnull(A.TotalExportacion) or A.TotalExportacion=0,0,iif(isnull(B.TotalMonto),0,B.TotalMonto)/A.TotalExportacion) AS PrecioTotal, iif(isnull(A.TotalExportacion) or A.TotalExportacion=0,0,iif(isnull(B.TotalMontoDolares),0,B.TotalMontoDolares)/A.TotalExportacion) A...
CREATE TABLE `headlines` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) DEFAULT NULL, `timestamp` datetime DEFAULT NULL, `storylink` varchar(200) DEFAULT NULL, `sport` varchar(45) DEFAULT NULL, `participants` varchar(45) DEFAULT NULL, `writer` varchar(45) DEFAULT NULL, `sitecontributor` va...
DROP TABLE IF EXISTS `PHONE_ACTIVATION_TIME_BK`; CREATE TABLE `PHONE_ACTIVATION_TIME_BK` AS SELECT `CIMEI`, `SLIVED_TIME`, `SOFTWARE_VERSION`, `EXTERNAL_MODEL`, `GROUP_TITLE`, `SUMMARY_DATE` FROM `phone_dashboard`.`PHONE_ACTIVATION_TIME` WHERE `SUMMARY_DATE` IN ( '20160122', '20160123', '2016...
select * from benn.football_conference_history
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
#script to update the submitted ppt file stored on challenges.epals.com update wp_postmeta set meta_value = replace(meta_value, '.ppt', '.mp4') where post_id in ( select uploaded_files_ids from wp_postmeta_backup as postmeta inner join ( select submit_time, ...
/** * One enumeration should be with using enum mysql type and second as a db relation. */ USE learning_through_test; CREATE TABLE Task ( task_id MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL, PRIMARY KEY(task_id), title VARCHAR(128) NOT NULL, status MEDIUMINT UNSIGNED NOT NULL, priority VARCHAR(10) NOT NULL ) EN...
(SELECT 'gender' AS TYPE, IF(sex = '' OR sex = 'null' OR sex = '(null)', '其他', sex) AS item, Ifnull(Count(*), 0) AS value, Now() AS time_stamp FROM yz_app_person_db.ps_attribute WHERE...
CREATE TABLE IF NOT EXISTS `performance` ( `id` int(11) NOT NULL AUTO_INCREMENT, `equipmentId` int(11) NOT NULL COMMENT '设备id', `intervalId` int(11) NOT NULL COMMENT '区间id', `fpt` decimal(8,2) DEFAULT NULL COMMENT '白屏时间', `tti` decimal(8,2) DEFAULT NULL COMMENT '首次可交互时间', `ready` decimal(8,2) DEFAULT NULL ...
DELETE FROM Users; ALTER TABLE Users AUTO_INCREMENT = 1; DELETE FROM IdTypes; ALTER TABLE IdTypes AUTO_INCREMENT = 1; DELETE FROM Area; ALTER TABLE Area AUTO_INCREMENT = 1; DELETE FROM Countries; ALTER TABLE Countries AUTO_INCREMENT = 1; -- IdTypes INSERT INTO IdTypes(Name) VALUES("CEDULA DE CIUDADANIA"); INSERT INTO ...
IF EXISTS(SELECT * FROM sys.tables where [name] = 'RecommendedPrices') BEGIN INSERT INTO [prod].[RecommendedPrices]([Balance], [MinPrice], [MaxPrice]) VALUES (2399, 0, 2000), (3400, 0, 2400), (4399, 0, 3400), (5499, 0, 4400), (6499, 0, 5400), (7499, 0, 6400), (9000, 0, 7400), (9999999, 0, 3400) END
ALTER TABLE `company` ADD COLUMN `COUNTRY` int(11) AFTER `ADDRESS_2`, CHANGE COLUMN `CITY` `CITY` varchar(50) CHARACTER SET cp1251 DEFAULT NULL AFTER `COUNTRY`, CHANGE COLUMN `STATE` `STATE` int(11) DEFAULT NULL AFTER `CITY`, CHANGE COLUMN `ZIP` `ZIP` varchar(10) CHARACTER SET cp1251 DEFAULT NULL AFTER `STATE`, CHANGE ...
DELETE FROM updates;
CREATE USER [dbuser] FOR LOGIN [dbuser];
/* Warnings: - You are about to drop the `Profile` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `_FamilyToUser` table. If the table is not empty, all the data it contains will be lost. */ -- DropForeignKey ALTER TABLE "Profile" DROP CONSTRAINT "Profile_use...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50539 Source Host : localhost:3306 Source Database : seckill Target Server Type : MYSQL Target Server Version : 50539 File Encoding : 65001 Date: 2016-12-08 17:55:45 */ SET FOREIGN_KEY_CHECKS=0; -- -...
DROP TABLE IF EXISTS `goods`; CREATE TABLE `goods` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `goods_name` varchar(50) DEFAULT NULL, `order_taker` varchar(50) DEFAULT NULL, `publish_man` varchar(50) DEFAULT NULL, `status` int(11) NOT NULL DEFAULT '0', `start_place` varchar(50) DEFAULT NULL, `start_p...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 19-12-2017 a las 19:08:48 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
DROP TABLE IF EXISTS Toys; DROP TABLE IF EXISTS cattoys; DROP TABLE IF EXISTS Cats; CREATE TABLE Cats ( ID SERIAL PRIMARY KEY, Name VARCHAR(255), Color VARCHAR(255), Breed VARCHAR(255) ); CREATE TABLE Toys ( ID SERIAL PRIMARY KEY, Price INT, Color VARCHAR(255), Name VARCHAR(255) ); CREATE TABLE catto...
drop table if exists opus_hack.groups; drop table if exists opus_hack.categories; drop table if exists opus_hack.param_info; drop table if exists opus_hack.images drop table if exists opus_hack.partables create table opus_hack.groups select * from groups; create table opus_hack.categories select * from categories; cre...
-- MySQL Script generated by MySQL Workbench -- 05/24/15 00:18:54 -- 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_MODE='TRADITION...
CREATE TABLE `ship` ( `shipping_id` VARCHAR(40) NOT NULL, `item_id` VARCHAR(40) NOT NULL, `quantity` INTEGER(40) NOT NULL, `weight_KG` INTEGER(40) NOT NULL, `shipper_name` VARCHAR(40) NOT NULL, `shipper_email` VARCHAR(40) NOT NULL, `receiver_name` VARCHAR(40) NOT NULL, `receiver_address`...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table payment_history ( id number(19) not null, receipt_id varchar2(255), sales_man_id number(19), sales_date timest...
select * from UserSegmentation.EngagedUsers
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Jul 2020 pada 16.12 -- 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 = "+00:00"; /*!40101 SET @OLD_CHARA...
DROP TABLE IF EXISTS clubs; CREATE TABLE clubs ( id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL, country VARCHAR(255), city VARCHAR(255), created_at DATETIME DEFAULT current_timestamp(), updated_at DATETIME DEFAULT current_timestamp() ON UPDATE current_timestamp()); CREATE...
/* We're going to introduce some data quality here that needs to be carried through when using this table: - text with less than 2 characters is skipped - images with x or y < 100 are skipped - words who's x0, x1, y0, or y1 are within 10 of the edge of the image are skipped */ CREATE TABLE text_extent SELECT occ...
SET SQL DIALECT 3; SET NAMES NONE; CREATE DATABASE '127.0.0.1:C:\Interbase_DB\MEETINGORGANIZER.GDB' USER 'SYSDBA' PASSWORD 'masterkey' PAGE_SIZE 1024 DEFAULT CHARACTER SET NONE; /******************************************************************************/ /**** Generators ...
-- MySQL Workbench Synchronization 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_MODE='TRADITIONAL'; DROP SCHEMA IF EXISTS `mydb` ; ALTER TABLE `game_of_thrones`.`AreaConnections` DROP FOREIGN KEY `f...
CREATE PROCEDURE `imp_caspio_bankinfo` () BEGIN Delete from bank_rate_grid where bank_id in (Select bank_id from imp_brg); Insert into bank_rate_grid (bank_id, brg_tier_name, brg_rate, brg_score_start,brg_score_end, brg_model_year_start, brg_model_year_end, brg_mileage_start, brg_mileage_end, brg_term, brg_FE_per...
DROP DATABASE bdgdb; CREATE DATABASE bdgdb; USE bdgdb; CREATE TABLE transactions ( txId INT PRIMARY KEY, header VARCHAR(100) NOT NULL, amount DECIMAL NOT NULL, dot DATE NOT NULL, type CHAR(20) NOT NULL );
create table zone_blog.article_info ( article_id varchar(30) not null comment '文章id' primary key, title varchar(100) null comment '标题', content_md longtext null comment '内容md', content_html longtext null comment '内容html', summary varchar(255) null, author_id varchar(30) null comment '作者id', post_time datetime ...
#host_id can be null DELIMITER // CREATE FUNCTION addEvent(location VARCHAR(30), startHr INT, startMin INT, endHr INT, endMin INT, host_id INT) RETURNS INT BEGIN DECLARE ret INT; INSERT INTO event(location, startHr, startMin, endHr, endMin, host_id) values(location, startHr, startMin, endHr, endMin, host_id); S...
INSERT INTO `ecommerce_database`.`PRODUCT` SET ?;
/* Formatted on 21/07/2014 18:44:49 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRES_WRK_TO_CALC_UO_SP_ITF ( COD_ABI, COD_AUTORIZZAZIONE, LINE ) AS SELECT -- -- 20121113 AG Creazione vista -- ...
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 15, 2012 at 03:37 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...
--Verify inserted data select * from locations;
/* create table temp_test_clients (id integer); create table temp_test_clients_1 as select * from temp_test_clients where 1=0; create table temp_test_clients_2 as select * from temp_test_clients where 1=0; insert into temp_test_clients (id) values (0); insert into temp_test_clients (id) values (1); insert into...
/* Formatted on 17/06/2014 18:14:37 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.VTMCRE0_APP_AGENDA ( ID, ID_UTENTE, COD_NDG, COD_ABI_CARTOLARIZZATO, DTA_INIZIO_APPUNTAMENTO, DESCRIZIONE, DTA_FINE_APPUNTAMENTO, DESC_NOME_CONTROPARTE, COD_GRUPPO_ECONOMICO, VAL_ANA_GRE )...
SELECT s.identifier, ROUND(AVG(ps.base_stat)) as base_stat FROM pokemon_abilities pa JOIN pokemon p ON pa.pokemon_id = p.id JOIN pokemon_stats ps ON p.id = ps.pokemon_id JOIN stats s ON ps.stat_id = s.id WHERE pa.ability_id = :id GROUP BY s.identifier
CREATE DATABASE IF NOT EXISTS Team8db; USE Team8db; CREATE TABLE IF NOT EXISTS PlayerInfo( 'id' int, 'name' varchar(32), 'count' int, 'claer' boolean, 'item_id' int ); ENGINE=InnoDB; CHARSET=utf8; TRUNCATE TABLE PlayerInfo;
/* Formatted on 21/07/2014 18:33:17 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCRE0_APP_ARCHIVIO_TRACCIATO ( DTA_UPD, COD_RAMO_CALCOLATO, COD_DIVISIONE, COD_COMPARTO, COD_ABI_CARTOLARIZZATO, COD_ABI_ISTITUTO, COD_STRUTTURA_COMPETENTE_DC, COD_STRUTTURA_COMPETENTE_RG, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 24, 2019 at 12:12 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `...
/*Task c2 Version 1 Level 2*/ /*create table propety dimension*/ drop table property_dim CASCADE CONSTRAINTS PURGE ; create table property_dim as select * from MONRE.property; /*add and update propert_dim with property_scale*/ alter table property_dim add (property_scale varchar2(15)); upd...
USE StudyTree; DROP PROCEDURE IF EXISTS get_study_groups; DELIMITER // CREATE PROCEDURE get_study_groups (IN uid INT) BEGIN SELECT c.id, c.number, d.short_name, sg.start_time, sg.end_time, sg.id group_id FROM study_groups sg join classes c ON sg.class_id = c.id join users_to_classes uc ON c.id = uc.class_i...
ALTER TABLE PERSON_FIN_INT_DISCLOSURE ADD CONSTRAINT UQ_PERSON_FIN_INT_DISCLOSURE UNIQUE (ENTITY_NUMBER, SEQUENCE_NUMBER) /
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : laravel Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 20/09/2020 19...
create table cart( num number primary key, type varchar(100), id varchar(100), item_img varchar(100), item_number varchar(100), item_name varchar(100), item_type varchar(100), item_size varchar(100), item_amount number default 0, item_price number default 0, cz_d...
/** * Used at method CommonShisetsuService.existShisetsuAvailableService() * @author ThuanLM * @version $Id: CommonShisetsuService_existShisetsuAvailableService_Sel_01.sql 10749 2014-07-03 08:01:43Z p_re_mintoan $ */ SELECT SAS.SHISETSU_CD FROM BY_SHISETSU_AVAILABLE_SERVICE SAS WHERE SAS.SHISETSU_CD = /*shi...
insert into course (course_id, course_name,creation_date,last_updated_date) values(1001, 'React Training',sysdate(),sysdate()); insert into course (course_id, course_name,creation_date,last_updated_date) values(1002, 'Swift Training',sysdate(),sysdate()); insert into course (course_id, course_name,creation_date,last_up...
CREATE TABLE IF NOT EXISTS member ( name VARCHAR(255), pass VARCHAR(255) ) CHARSET=utf8;
-- --------------------------------------------------------------------------- -- -- gEDA - GPL Electronic Design Automation -- gparts - gEDA Parts Manager -- Copyright (C) 2009 Edward C. Hennessy -- Copyright (C) 2009 gEDA Contributors (see ChangeLog for details) -- -- This program is free software; you can redistribu...
INSERT INTO camera (id, number, id_parking) VALUES (1, 'test_camera_utm', 1); INSERT INTO car (id, number, id_user) VALUES (1, 'CAB123', 1); INSERT INTO car (id, number, id_user) VALUES (2, 'CME987', 1); INSERT INTO car (id, number, id_user) VALUES (3, 'CTX436', 1);
CREATE TABLE IF NOT EXISTS experiment ( id INTEGER PRIMARY KEY, description TEXT, datetime TEXT, -- ISO8601 model TEXT, dataset TEXT, trials INTEGER, training_split REAL, optimisation_strategy TEXT, max_epochs INTEGER, optimiser TEXT, metric TEXT ); CREATE TABLE IF NOT EXIST...
-- MySQL dump 10.13 Distrib 5.7.30, for Linux (x86_64) -- -- Host: localhost Database: App_Covid -- ------------------------------------------------------ -- Server version 5.7.30-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
--liquibase formatted sql -- see: http://www.liquibase.org/ --changeset contact@contactopensource.com:9 --preconditions onFail:HALT onError:HALT --precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'geo_points' CREATE TABLE geo_points ( id uuid not null primary...
SELECT DISTINCT sudac.id, sudac.ime , sudac.prezime, rangsuca.naziv AS rang , LISTAGG((natjecanje.naziv || ' - ' || vrstaekipe.uzrast), ', ') AS natjecanje FROM sudac JOIN rangsuca ON sudac.id_rang = rangsuca.id JOIN lista ON sudac.id = lista.id_sudac JOIN natjecanje ON lista.id_natjecanje =...
CREATE DATABASE abibas_search IF NOT EXISTS; \c abibas_search CREATE TABLE IF NOT EXISTS products ( id BIGSERIAL NOT NULL PRIMARY_KEY, keyword VARCHAR, item_name VARCHAR, category VARCHAR, stars: INTEGER, pictures: VARCHAR );
SELECT -- 契約情報.全項目 C.* FROM -- 契約情報 CONTRACT_INFO C, -- T (SELECT F.CONTRACT_NO FROM FILE_NEGATION_WORKTABLE F WHERE F.SESSION_ID = /*sessionId*/'' GROUP BY F.CONTRACT_NO ) AS T WHERE -- 契約情報.契約番号 = T.契約番号 C.CONTRACT_NO = T.CONTRACT_NO
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50718 Source Host : localhost:3306 Source Database : dadamgsystem Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2017-10-24 00:02:46 */ SET FOREIGN_KEY...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Hostiteľ: 127.0.0.1 -- Čas generovania: Št 31.Dec 2015, 13:26 -- Verzia serveru: 10.1.8-MariaDB -- Verzia PHP: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
-- -- Table structure for table `note` -- DROP TABLE IF EXISTS `note`; CREATE TABLE IF NOT EXISTS `note` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for...
-- 1.Consulta contemplando contagem ou totalização -- Contabilização do total de pedidos no sistema use minha_loja_gama; SELECT count(*) from pedidos; -- 2.Consulta contemplando a junção entre 2 tabelas -- Consulta sobre o endereço de cada cliente use minha_loja_gama; SELECT * from clientes inner join enderecos on cli...
select * from pheno where category = 'procedure' or category = 'disorder' order by pheno_id; select naire_name, question_name, answer_name, pheno_name, value, body1, body2 from munjin2 where qualifier_name = 'Body structure' order by body1; update munjin2 set body1 = '传波钱' where value = '传波钱'; update munj...
/******************************************************************************* * File Name: cyfittergnu.inc * * PSoC Creator 4.2 * * Description: * * This file is automatically generated by PSoC Creator. * ******************************************************************************** * Copyright (c) 20...
DELETE FROM `weenie` WHERE class_Id IN (42852,43065,43066,43067,43020);
/************************************************ * misc table * ************************************************/ CREATE TABLE IF NOT EXISTS misc ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE NOT NULL, value TEXT, vtype TEXT...
USE `mydb`; insert into Rezervacija (datumPocetka, datumZavrsetka, idKlijenta, idTipaSobe) values ('2017/12/01', '2017/12/06', 1309990169955, 2); insert into Rezervacija (datumPocetka, datumZavrsetka, idKlijenta, idTipaSobe) values ('2017/12/09', '2017/12/16', 1309992169955, 3); insert into Rezervacija (datumPocetka, ...
SELECT * FROM city_list WHERE country like 'Brazil';
ALTER TABLE SONGS ADD COLUMN ARTIST_IMAGE_ATTRIBUTION text;
insert into inventory(customer, color_code, category, warehouse, in, out, quantity) values('customer 1', 'color code 1', 'category 1', 'warehouse 1', 100, 10, 90); insert into inventory(customer, color_code, category, warehouse, in, out, quantity) values('customer 2', 'color code 2', 'category 2', 'warehouse 2', 100, 0...
use delala; CREATE TABLE post_categories ( id VARCHAR(255) PRIMARY KEY UNIQUE NOT NULL, name VARCHAR(255) UNIQUE NOT NULL );
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.0.21-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.1.0.4867 -- ------------------------------------------------...
INSERT IGNORE INTO concept (document, id, name, description) VALUES (1, 'CM_DiscoveryCode', 'Discovery code', 'Discovery (core) coding scheme '); SELECT @scm := dbid FROM concept WHERE id = 'CM_DiscoveryCode'; INSERT IGNORE INTO concept (document, id, scheme, code, name, description) VALUES -- GENERAL/GLOBAL -- (1, '...
CREATE OR REPLACE TABLE {{.scratch_schema}}.channel_engagement_staged{{.entropy}} AS( SELECT -- get some basic info pv.page_view_id, pv.start_tstamp, pv.page_url, -- Add in our custom link click metrics lc.link_clicks, lc.first_link_clicked, lc.last_link_clicked, -- channel defin...
CREATE TABLE endpoints ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, url TEXT NOT NULL, `interval` INT NOT NULL, userId INT NOT NULL, lastCheckedAt DATETIME NULL, nextRunAt DATETI...
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: 2019-01-05 12:38:12 -- 服务器版本: 5.7.21-1 -- PHP Version: 7.1.16-1+b1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
' PB_BitmapGraphics.inc ' FUNCTION funGetBitmapSize(strBitmapFile AS STRING, _ lngWidth AS LONG, _ lngHeight AS LONG) AS LONG ' get the size of a bitmap from the file LOCAL lngFile AS LONG ' TRY lngFile = FREEFILE OPEN strBitmapFile FOR BINARY AS lngFil...