text stringlengths 6 9.38M |
|---|
delete from HtmlLabelIndex where id=22944
/
delete from HtmlLabelInfo where indexid=22944
/
INSERT INTO HtmlLabelIndex values(22944,'创建节点才能删除附件')
/
INSERT INTO HtmlLabelInfo VALUES(22944,'创建节点才能删除附件',7)
/
INSERT INTO HtmlLabelInfo VALUES(22944,'only creater can delete the enclosures',8)
/
INSERT INTO HtmlLabelInfo... |
INSERT INTO information_types (id, description)
VALUES
(1, 'Saída Digital'),
(2, 'Saída Analógica'),
(3, 'Entrada Digital'),
(4, 'Entrada Analógica'),
(5, 'Parâmetro')
ON CONFLICT (id) DO UPDATE
SET
description = EXCLUDED.description; |
-- To avoid having to get these in the correct order.
SET FOREIGN_KEY_CHECKS = 0;
-- See: https://bugzilla.mozilla.org/show_bug.cgi?id=1003275
DROP TABLE IF EXISTS `rereview_queue_theme`;
DROP TABLE IF EXISTS `theme_locks`;
-- See: https://bugzilla.mozilla.org/show_bug.cgi?id=1005303
DROP TABLE IF EXISTS `personas`;
... |
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- 主機: 127.0.0.1
-- 產生時間: 2018-09-16 06:03:38
-- 伺服器版本: 10.1.34-MariaDB
-- PHP 版本: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE... |
select a.clos_sale_date
, a.expiration_date
, a.clos_sale_date+100
, a.*
from mssalm a
where a.sap_jour_numb is not null
and a.sale_tota_amou > isnull(a.pay_amou,0)
and a.tran_stat_flag = 0
and a.expiration_date <> a.clos_sale_date+100
--495
/*
begin tran
update mssalm
set expiration_date = clos_sal... |
DROP DATABASE IF EXISTS traveler3;
CREATE DATABASE traveler3;
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 10, 2021 at 02:21 PM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
SELECT DISTINCT network.net_code, station.sta_code FROM network
JOIN station ON (network.net_id = station.net_id )
JOIN location AS loc ON (station.loc_id = loc.loc_id)
JOIN site ON (station.sta_id = site.sta_id )
JOIN channel ON (channel.site_id = site.site_id )
JOIN receiverFunction ON (chan... |
/*
Navicat MySQL Data Transfer
Source Server : mysql5.0
Source Server Type : MySQL
Source Server Version : 50022
Source Host : localhost:3306
Source Schema : book_rental
Target Server Type : MySQL
Target Server Version : 50022
File Encoding : 65001
Date: 17/02/2021 2... |
select * from job_seeker; |
drop table if exists avg_yoga_completion;
create table avg_yoga_completion as
(with v as
(select v1.title,
(current_date::date - created_date)/30 video_age,
page_nid,
duration,
media_nid, facet_teacher_gid
from common.video_d v1
join drupal.node n on v... |
SELECT count(assistance_requests.*) as total_assistance , teachers.name
FROM assistance_requests
JOIN teachers ON teachers.id = teacher_id
WHERE teachers.name LIKE 'Waylon Boehm'
GROUP BY teachers.name;
|
use furama;
insert into rent_type(rent_type_name,rent_type_cost) values
('year',5000000) ,
('mounth',4000000) ,
('day',3000000) ,
('time',2000000) ;
insert into service_type(service_type_name) values
('Villa'),
('House'),
('Room');
insert into customer_type(customer_type_name) values
('Diamond'),
('Platinium'),
('... |
-- --------------------------------------------------
-- Generated by Enterprise Architect Version 8.0.856
-- Created On : viernes, 15 enero, 2016
-- DBMS : SQL Server 2005
-- --------------------------------------------------
CREATE TABLE ADM_TROPE (
TROPE_TROPE decimal(38) NOT NULL, -- ID tabla r... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 26, 2020 at 12:16 PM
-- Server version: 5.7.26
-- PHP Version: 7.4.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... |
set echo on
drop table t_tokens;
create table t_tokens (token varchar2(100));
create or replace and compile java source named DeepThought as
package marcin.storedproc;
public class DeepThought {
private static final int HALF_AND_MILLION_YEARS = 5000;
public static int answerUltimateQuestionOfLifeTheUniverseAndEv... |
ALTER TABLE expenses ADD FULLTEXT(item);
|
INSERT INTO ADMI_PAIS VALUES
(1,'ECUADOR','ACTIVO');
COMMIT; |
CREATE TABLE revision_review (
recommendation TEXT NOT NULL,
revision_addressed TEXT NOT NULL,
justification TEXT NOT NULL,
comments_authors TEXT NOT NULL,
confidential_comments TEXT NOT NULL,
revision_id INTEGER NOT NULL,
reviewer_id INTEGER NOT NULL,
PRIMARY KEY (revision_id, reviewer_id),
FOREIGN KE... |
select case when a+b>c and a+c>b and b+c>a then
case
when a=b and b=c then 'Equilateral'
when a=b or b=c or c=a then 'Isosceles'
else 'Scalene' end
else 'Not A Triangle' end from TRIANGLES;
|
DROP TABLE if exists project_steps;
CREATE TABLE project_steps(
id int primary key auto_increment,
description varchar(100) not null,
project_id int,
days_to_deadline bigint
);
alter table project_steps
add foreign ... |
declare
v_result number;
v_SrcTaskId Integer;
v_TrgTaskId Integer;
begin
v_SrcTaskId := :SourceTaskId;
v_TrgTaskId := :TargetTaskId;
begin
select s1.ThreadId into v_result
from
(select col_id as ThreadId, row_number() over (order by col_id desc) as RowNumber from tbl_thread
where col_threads... |
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 06-03-2017 a las 17:56:45
-- 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... |
DELIMITER $$
USE `cit_asset`$$
DROP PROCEDURE IF EXISTS `split_upload`$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `split_upload`(IN filename VARCHAR(255), IN countrow INT(6))
MODIFIES SQL DATA
BEGIN
SET @stmt = CONCAT("set @row = (select count(*) from history.",filename,")");
PREPARE stmt FROM @stmt;
EXECU... |
/**
* Author: TiramiAsu
* Created: Jun 4, 2019
*/
CREATE TABLE ICProducts(
pd_code varchar(10) primary key, -- 主鍵(產品代號)
pd_name varchar(20) not null, -- (名稱)
pd_price integer not null, -- (價錢)
pd_cost integer not null, -- (成本)
pd_unit varchar(10) ... |
USE SimpleStore
BEGIN TRANSACTION
UPDATE Product SET Price = 1
WHERE ProductId = 1;
UPDATE Product SET Price = 1
WHERE ProductId = 2;
COMMIT TRANSACTION
|
COL tablespace_name FOR a30
COL file_name FOR a30
SELECT a.tablespace_name
, a.file_name
, b.time
FROM dba_data_files a
, v$backup b
WHERE a.file_id = b.file#
AND b.status = 'ACTIVE'; |
INSERT INTO burgers
(burger_name)
VALUES
('Cheese Burger'),
('Veggie Burger'),
('Black Bean Burger'),
('Jalapeño Burger'),
('Chicken Burger')
|
drop table if exists kafkametadb.topic_requests;
drop table if exists kafkametadb.topics;
drop table if exists kafkametadb.acl_requests;
drop table if exists kafkametadb.schema_requests;
drop table if exists kafkametadb.teams;
drop table if exists kafkametadb.users;
drop table if exists kafkametadb.env;
drop table if e... |
CREATE TABLE pagetype (
id CHAVE NOT NULL,
name CHARACTER VARYING(255) NOT NULL,
CONSTRAINT pk_pagetype PRIMARY KEY (id)
); |
select sum(lo_extendedprice*lo_discount) as revenue
from lineorder, ddate
where lo_orderdate = d_datekey
and d_yearmonthnum = 199401
and lo_discount between 4 and 6
and lo_quantity between 26 and 35
|
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2017-01-08 12:29:27
-- 服务器版本: 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 */;
/*!40101 SET ... |
insert into USER_ROLE (user_id, role_id) values (1, 1);
insert into USER_ROLE (user_id, role_id) values (1, 2);
insert into USER_ROLE (user_id, role_id) values (2, 3); |
drop table if exists predict_suspicious_activity_gbt;
CREATE TABLE predict_suspicious_activity_gbt (
features varchar(10000) DEFAULT NULL,
rawprediction varchar(500) DEFAULT NULL,
probability varchar(500) DEFAULT NULL,
prediction decimal(10,3) DEFAULT NULL
);
|
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 31, 2014 at 07:56 上午
-- Server version: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... |
-- Object Count by Type.wsql
select owner "Owner",
initcap(object_type) "Object Type",
count(*) "Object Count"
from sys.all_objects
where substr(object_name,1,4) != 'BIN$'
and substr(object_name,1,3) != 'DR$'
and owner = user
group by owner, initcap(object_type);
|
-- migrate:up
CREATE TABLE stripe.events (
id text primary key,
object text,
data jsonb,
type text,
created integer,
request text,
updated integer,
livemode boolean,
api_version text,
pending_webhooks bigint
);
-- migrate:down
drop table "stripe"."events"; |
-- ## require __extensions__
-- ## require __functions__
DROP TABLE IF EXISTS "TBLPREFIX____user" CASCADE;
CREATE TABLE "TBLPREFIX____user"(
id VARCHAR(128) PRIMARY KEY DEFAULT gen_random_uuid()
, custom_id VARCHAR(255)
, type VARCHAR(255)
, email VARCHAR(255)
,... |
ALTER TABLE users ADD CONSTRAINT uc_users_phonenumber UNIQUE (phone_number); |
USE employee_mgmtDB;
SELECT * FROM employee LEFT JOIN department ON employee.department_id = department.id;
SELECT role.title, role.salary, role.department_id, department.dept_name, department.id FROM department INNER JOIN role ON role.department_id = department.id
SELECT employee.id AS 'empID', CONCAT(employee.fir... |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 2017-05-14 02:39:10
-- 服务器版本: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.5.9-log - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
... |
Select *
From PortfolioProject..CovidDeaths
where continent is not null
order by 3,4
--Select *
--From PortfolioProject..CovidVaccinations
--order by 3,4
--Select Data that we are going to be using
Select Location, date, total_cases, new_cases, total_deaths,population
From PortfolioProject..CovidDeaths
... |
CREATE TABLE tacomacabsbeds(
id SERIAL PRIMARY KEY NOT NULL
,vehicleId INTEGER NOT NULL
,Type VARCHAR(255)
,feature1 VARCHAR(255)
,feature2 VARCHAR(255)
,feature3 VARCHAR(255)
,feature4 VARCHAR(255)
,feature5 VARCHAR(255)
,feature6 VARCHAR(255)
,b... |
DELIMITER $$
CREATE DEFINER = 'sistagua'@'localhost' PROCEDURE lc_sp_guardar_cliente_natural(
IN pClienteNatural JSON,
IN pParentescos JSON,
IN pDirecciones JSON,
OUT pIdCliente BIGINT(11)
)
BEGIN
DECLARE vJsonEsValidoCliente INT;
DECLARE vJsonEsValidoParentesco INT;
DECLARE vJsonEsValido... |
prompt --application/pages/page_00012
begin
-- Manifest
-- PAGE: 00012
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.03.31'
,p_release=>'20.1.0.00.13'
,p_default_workspace_id=>20
,p_default_application_id=>8950
,p_default_id_offset=>33309244842782322
,p_default_owner=>'ORACLE'
);
w... |
-- a demo to show the info of candidates with their status
select *
from Candidates join candidateStatus
on Candidates.statusId = candidateStatus.statusId;
-- a demo to test the relationship between Jobs and JobOpenings
SELECT *
FROM Jobs JOIN JobOpenings
ON Jobs.jobId = JobOpenings.jobID
WHERE jobType = 'Full-time ... |
CREATE SCHEMA av_lokale_entzerrung
AUTHORIZATION av_verifikation;
GRANT ALL ON SCHEMA av_lokale_entzerrung TO av_verifikation;
GRANT USAGE ON SCHEMA av_lokale_entzerrung TO mspublic;
-----------------------------------------
CREATE TABLE av_lokale_entzerrung.gemeinde_operate
(
ogc_fid serial NOT NULL,
gemein... |
-- for (m in 1:M) theta[m] ~ dirichlet(alpha);
--
with "log p(theta|alpha)" as (
with "log dir(theta|alpha)" as (
with "prior__alpha" as (
select
alpha,
topic_id
from
topic
),
"posterior__theta" as (
select
theta,
document_id,
topic_id
from
docume... |
# LeetCode 178: Rank Scores
# DENSE_RANK()
SELECT
Score,
DENSE_RANK() OVER (ORDER BY Score DESC) AS 'Rank'
FROM
Scores |
DROP PROCEDURE CPI.GIPIS010_UPD_GIPI_WPOLBAS;
CREATE OR REPLACE PROCEDURE CPI.Gipis010_Upd_Gipi_Wpolbas (p_par_id IN NUMBER)
IS
/*
** Created by : Mark JM
** Date Created : 02.08.2010
** Reference By : (GIPIS010 - Item Information)
** Description : Update GIPI_WPOLBAS.
*/
v_tsi GIPI_WITEM.tsi_a... |
/**********************************************************************
* File: awr_stattrends.sql
* Type: SQL*Plus script
* Author: Tim Gorman (Evergreen Database Technologies, Inc.)
* Date: 15-Jul-2003
*
* Description:
* Query to display "trends" for specific statistics captured ... |
declare
v_result number;
v_CaseId Integer;
begin
v_CaseId := :CaseId;
v_result := 1;
insert into tbl_log(col_data1,col_data2) values(v_CaseId, 'f_DCM_processCaseDependency');
:ValidationResult := v_result;
end; |
DELIMITER /
CREATE PROCEDURE LastOrderOf(IN CompanyName VARCHAR(50))
BEGIN
SELECT MAX(Orders.OrderDate) AS "Date de dernière commande" FROM Orders JOIN Customers ON Customers.CustomerID = Orders.CustomerID WHERE customers.CompanyName = CompanyName;
END/
DELIMITER ;
------
DELIMITER /
CREATE PROCEDU... |
drop database if exists burgers_db;
create database burgers_db;
use burgers_db;
create table burgers (
id int primary key auto_increment not null,
burger_name varchar(60) not null,
devoured boolean
);
|
SET NOCOUNT ON
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- CREATE A TABLE TO HOLD THE BULK OF THE REQUIRED DATA
--------------------------... |
CREATE DATABASE ers_database;
|
CREATE TABLE IF NOT EXISTS users
(
id uuid DEFAULT uuid_generate_v4 (),
role TEXT NOT NULL default 'user',
username TEXT NOT NULL UNIQUE,
password_hash TEXT NOT NULL,
PRIMARY KEY (id)
);
|
--
-- Database: `onionCrawler`
--
-- --------------------------------------------------------
--
-- Table structure for table `bannedDomains`
--
CREATE TABLE IF NOT EXISTS `bannedDomains` (
`hostMd5Sum` varchar(32) NOT NULL,
`added` datetime NOT NULL,
`comment` text COLLATE utf8_bin NOT NULL,
UNIQUE KEY `hos... |
ALTER TABLE Sold_Tickets
ADD CONSTRAINT foreign_show_pk FOREIGN KEY(show_id) REFERENCES show(show_id); |
-- createdb -U postgres Kappa
-- psql -U postgres -d Kappa -a -f users.sql
CREATE TABLE customerstemp (
id SERIAL NOT NULL,
name VARCHAR,
age INT,
car VARCHAR,
gender VARCHAR
);
CREATE TABLE users (
id SERIAL NOT NULL PRIMARY KEY,
username VARCHAR,
password VARCHAR,
role VARCHAR
);
-- TEMP DATA
... |
insert into player(name) values('121212112');
insert into player(name) values('a1sams1a');
insert into player(name) values('agpro');
insert into player(name) values('akaseon');
insert into player(name) values('apples1309');
insert into player(name) values('appsleaf');
insert into player(name) values('asciineo');
insert... |
DROP DATABASE chat;
CREATE DATABASE chat;
USE chat;
/*
name:
text:
roomname:
createdAt:
*/
/*
CREATE TABLE table_name
(
column_name1 data_type(size),
column_name2 data_type(size),
column_name3 data_type(size),
....
);
*/
CREATE TABLE users (
id int(10) auto_increment,
username varchar(255),
primary key (id),
... |
CALL _create_tables();
CALL user_sign_up(
'USERAUTH',
'tpessia',
'thiago@pessia.com',
'123456',
'Thiago Pessia',
'public/users/avatars/_default-avatar.jpg',
'2018-06-16 20:09:00'
);
CALL user_change_password(
'USERAUTH',
'123456',
'654321'
);
CALL user_change_avatar(
'USERAUTH',
'... |
-- MySQL dump 10.13 Distrib 5.5.52, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: mytest
-- ------------------------------------------------------
-- Server version 5.5.52-0+deb8u1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... |
DELETE FROM CLOB_TABLE
WHERE
NO = ?
;
|
create table subways (
StationID primary key,
StationName varchar,
address varchar,
zipcode int,
line varchar,
notes varchar
foreign key (zipcode) references zipcodes
);
create table zipcodes (
id serial primary key,
zipcode int
);
create table boroughs (
id serial primary key,... |
# Write your MySQL query statement below
SELECT A.ID AS Id FROM WEATHER A JOIN WEATHER B ON
DATEDIFF(A.RECORDDATE, B.RECORDDATE)=1 AND A.TEMPERATURE>B.TEMPERATURE |
-- 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='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -... |
CREATE DEFINER=`root`@`localhost` PROCEDURE `loginGenerator`(
IN firstName VARCHAR(20),
IN lastName VARCHAR(40),
IN joinedYear INT,
IN password VARCHAR(255),
OUT v_id INT)
BEGIN
DECLARE v_first CHAR;
DECLARE v_login VARCHAR(20);
SET v_first = LEFT(firstName, 1); /* gets first letter of first name... |
create table user(
`user_id` int unsigned not null auto_increment,
`name` varchar(45) ,
`age` tinyint unsigned ,
primary key(`user_id`),
index(`name`)
)ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
create table article(
`article_id` int unsigned not null auto_increment,
`title` varchar(100),... |
select * from stgmgr.job j, stgmgr.job_interface ji, stgmgr.batchctl b
where j.job_name='Pkj_Hadoop_MI_Pre_Master'
and j.job_interface_id=ji.job_interface_id
and ji.job_interface_id=b.job_interface_id
order by batchctl_id desc;
select je.event_name,
jea.job_event_activity_id,
to_char(jea.create... |
----chapter1 data
insert into unit (id,name) values ('1','java_engineer');
insert into unit (id,name) values ('2','php_engineer');
insert into unit (id,name) values ('3','ios_engineer');
insert into unit (id,name) values ('4','java_senior_engineer');
----chapter2 data
insert into station (name, id) values ('jav... |
select
a.name,
sum(b.amount) balance
from
Users a
join
Transactions b
on
a.account = b.account
group by
a.account
having
balance > 10000;
/////////////
with tmp as(
select t.account, u.name, sum(amount) as balance
from Transactions t
left join Users u on t.account = u.account
group by ac... |
create database AirdndDB character set=utf8;
commit;
show databases;
use AirdndDB;
# HOME DB
create table airdnd_home(
home_idx int not null unique primary key,
place varchar(50) not null, #어딘지
title varchar(500) not null, #큰제목
isSuperHost boolean not null, #슈퍼호스트있는지
addr varchar(500) not null, #괌
lat... |
truncate table mint;
INSERT INTO mint (id, account, password, nick_name) VALUES (1, 'test1', '123456Aa', 'test1');
INSERT INTO mint (id, account, password, nick_name) VALUES (2, 'test1', '123456Aa2', 'test2');
INSERT INTO mint (id, account, password, nick_name) VALUES (3, 'test1', '123456Aa3', 'test2');
|
DROP TRIGGER IF EXISTS before_update_node;
DELIMITER ;;
CREATE DEFINER=web@localhost TRIGGER before_update_node BEFORE UPDATE ON nodes FOR EACH ROW
BEGIN
DECLARE $count INT DEFAULT NULL;
IF NEW.body != OLD.body THEN
SELECT COUNT(*) INTO $count FROM nodes WHERE hash = CRC32(NEW.body) AND uid = NEW.uid A... |
-- phpMyAdmin SQL Dump
-- version 3.4.10.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 21, 2016 at 06:46 PM
-- Server version: 5.5.49
-- PHP Version: 5.3.10-1ubuntu3.22
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE... |
drop table if exists entrada_vehiculo_patio cascade;
drop table if exists estado_vehiculo cascade;
drop table if exists modelo_vehiculo cascade;
drop table if exists clase_vehiculo cascade;
drop table if exists color_vehiculo cascade;
drop table if exists marca_vehiculo cascade;
drop table if exists vehiculo cas... |
create database gateway;
create table users(
username varchar(100) not null primary key,
first_name varchar(100) not null,
last_name varchar(100) not null,
password varchar(100) not null,
enabled boolean not null,
created_by_user varchar(100) not null,
created_at timestamp not null,
modified_by_user va... |
CREATE TABLE users (
id serial PRIMARY KEY,
name varchar
);
|
SELECT M.rating AS rating,COUNT(*) as misreportCount
FROM earningsView E, Movies M
WHERE M.movieID=E.movieID AND
M.totalEarned<>E.computedEarnings AND
2019 > ALL (SELECT M1.year
FROM Movies M1, earningsView E1
WHERE M1.movieId=E1.movieId AND
M1.totalEarned<>E1.computedEarnings AND... |
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table action (
id bigint not null,
name varchar(255),
constraint pk_action primary key (id))
;
create table chain (
id ... |
-- Moving tables from the main schema
-- The src/main/sh/migrate-bo-data.sh script can be used to migrate the not audit/txlog data
-- into these tables.
DROP TABLE IF EXISTS ACCOUNT_SESSION#
DROP TABLE IF EXISTS AUDIT_CLOSED_GAME#
DROP TABLE IF EXISTS AUDIT_CLOSED_GAME_PLAYER#
DROP TABLE IF EXISTS AUDIT_COMMAND#
DROP... |
delete from HtmlLabelIndex where id=20211
/
delete from HtmlLabelInfo where indexid=20211
/
INSERT INTO HtmlLabelIndex values(20211,'请下载模板文件,填入数据后导入!')
/
INSERT INTO HtmlLabelInfo VALUES(20211,'请下载模板文件,填入数据后导入!',7)
/
INSERT INTO HtmlLabelInfo VALUES(20211,'Please Download Templet , Filled it to Import',8)
/
INSERT... |
CREATE TABLE IF NOT EXISTS abonne (
id_abonne int(3) NOT NULL AUTO_INCREMENT,
prenom varchar(20) NOT NULL,
PRIMARY KEY (id_abonne)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS livre (
id_livre int(3) NOT NULL AUTO_INCREMENT,
auteur varchar(30) NOT NULL,
titre varchar(30) NOT NULL,
PRIMARY ... |
DROP PROCEDURE IF EXISTS reporting.SP_campaign_history_ACHD;
CREATE PROCEDURE reporting.`SP_campaign_history_ACHD`()
BEGIN
/*******************************************************************************************************************
--- NAME : SP_campaign_history_ACHD
--- DESCRIPTION: script for populate t... |
-- APAN 5310: SQL & RELATIONAL DATABASES SPRING 2019 ONCAMPUS
-------------------------------------------------------------------------
-- --
-- HONOR CODE --
-- ... |
/*The PROBLEM*/
Samantha interviews many candidates from different colleges using coding challenges and contests. Write a query to print the contest_id, hacker_id, name, and the sums of total_submissions, total_accepted_submissions, total_views, and total_unique_views for each contest sorted by contest_id. Exclude the... |
TRUNCATE TABLE [IF_F_EDASH_STATISTICSDATA_0301010002010010010030201] |
DROP TABLE IF EXISTS picture;
#@ _CREATE_TABLE_
CREATE TABLE picture
(
pict_id INT NOT NULL PRIMARY KEY,
pict_data MEDIUMBLOB
);
#@ _CREATE_TABLE_
|
-- phpMyAdmin SQL Dump
-- version 4.9.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Jun 14, 2021 at 03:11 PM
-- Server version: 5.7.32
-- PHP Version: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `clinic`
--
CREATE DATABASE IF NOT EXISTS `c... |
--
-- Estructura de tabla para la tabla `marca`
--
CREATE TABLE `marca` (
`id_marca` int(11) NOT NULL,
`marca` varchar(50) COLLATE utf8_spanish_ci DEFAULT NULL,
`estado` bit(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `marca`
--
INSERT INTO... |
UPDATE license set cversion = '4.100.0919'
/
|
CREATE or REPLACE PROCEDURE CptCapital_SCountByDataType
(datatype_1 integer,
flag out integer ,
msg out varchar2,
thecursor IN OUT cursor_define.weavercursor )
AS
begin
open thecursor for
select max(mark) from CptCapital where datatype = datatype_1 and isdata='2';
end;
/
|
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Lun 07 Avril 2014 à 11:58
-- Version du serveur: 5.6.12-log
-- Version de PHP: 5.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
create table CustomeerAndSupliers
(
cust_id char(6) primary key check(cust_id like'[CS][0-9][0-9][0-9][0-9][0-9]'),
cust_fname varchar(15) not null,
cust_lname varchar(15),
sales_amnt float check(sales_amnt>=0),
proc_amnt float check(proc_amnt>=0)
)
create table Item
(
item_id char(6) primary key ch... |
CREATE TABLE `stock` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '名称',
`count` int(11) NOT NULL COMMENT '库存',
`sale` int(11) NOT NULL COMMENT '已售',
`version` int(11) NOT NULL COMMENT '乐观锁,版本号',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CH... |
CREATE TABLE JointGroup (id PRIMARY_KEY, id_species INT, id_group INT, padding[1] char)
INSERT INTO JointGroup VALUES (1,1)
INSERT INTO JointGroup VALUES (1,7)
INSERT INTO JointGroup VALUES (2,1)
INSERT INTO JointGroup VALUES (2,7)
INSERT INTO JointGroup VALUES (3,1)
INSERT INTO JointGroup VALUES (3,7)
INSERT INTO Join... |
-- displays the number of records with id = 89 in the table first_table
-- count commands that count the once that are the words in specific in table of a databases
SELECT score, COUNT(*) AS number FROM second_table GROUP BY score ORDER BY score DESC; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.