text stringlengths 6 9.38M |
|---|
/*
SQLyog Ultimate v12.14 (64 bit)
MySQL - 10.4.17-MariaDB : Database - alumni
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KE... |
DROP TABLE IF EXISTS players;
DROP SEQUENCE players_id_seq;
|
with chk as
(
select name as chkname, object_name(parent_object_id) as tblname, is_not_trusted
from sys.check_constraints
where is_not_trusted = 1
union all
select name as chkname, object_name(parent_object_id) as tblname, is_not_trusted
from sys.foreign_keys
where is_not_trusted = 1
)
select 'alter ta... |
/*
Navicat MySQL Data Transfer
Source Server : Yamisaas
Source Server Version : 50508
Source Host : localhost:3306
Source Database : icore
Target Server Type : MYSQL
Target Server Version : 50508
File Encoding : 65001
Date: 2013-10-16 21:32:14
*/
SET FOREIGN_KEY_CHE... |
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: 10.0.0.100 Database: eventos
-- ------------------------------------------------------
-- Server version 5.6.27-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */... |
create table daily_sms_extract(
device varchar2 (32) not null,
technology varchar2 (32) not null,
family varchar2 (32) not null,
coordref varchar2 (16) not null,
routing varchar2 (32) not null... |
CREATE TABLE orbitmap
(
cog text
, orbiter text
);
delete from orbitmap;
INSERT INTO orbitmap (cog, orbiter) VALUES ( 'COM','B' );
INSERT INTO orbitmap (cog, orbiter) VALUES ( 'B','C' );
INSERT INTO orbitmap (cog, orbiter) VALUES ( 'C','D' );
INSERT INTO orbitmap (cog, orbiter) VALUES ( 'D','E' );
INSERT INTO orb... |
------------------------------------------------------------------------------------
CREATE TABLE road_link_4326
(
objectid integer NOT NULL primary key,
from_node_id integer NOT NULL,
to_node_id integer NOT NULL,
roadclass_c integer NOT NULL,
naviclass_c integer NOT NULL,
linkclass_c integer NOT NULL,
ro... |
ALTER TABLE accounts ADD role VARCHAR(100) ;
UPDATE accounts SET role = 'ADMIN'; |
-- !Ups
alter table object_types
add requires_signature boolean not null default false;
-- !Downs
alter table object_types drop requires_signature;
|
create database DooarsBangla_DB_Final
use DooarsBangla_DB_Final
create table Admins
(
AdminID int primary key identity(20,1) not null,
AdminName varchar(30) not null,
AdminMbl varchar(10) not null,
AdminEmail varchar(40) not null,
AdminStatus varchar(10) not null,
PasswordStatus varchar(13) not null
)
create table M... |
/* contrib/fuzzystrmatch/fuzzystrmatch--1.0.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION fuzzystrmatch" to load this file. \quit
CREATE FUNCTION levenshtein (text,text) RETURNS int
AS 'MODULE_PATHNAME','levenshtein'
LANGUAGE C IMMUTABLE STRICT;
CREATE ... |
-- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: mi
-- ------------------------------------------------------
-- Server version 8.0.15
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!4010... |
-- MySQL dump 10.13 Distrib 5.6.19, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: mtu_db
-- ------------------------------------------------------
-- Server version 5.6.19-0ubuntu0.14.04.4
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH... |
ALTER TABLE item_costo_logistico
ADD COLUMN base_fob boolean DEFAULT FALSE; |
DROP PROCEDURE CPI.CHECK_RI;
CREATE OR REPLACE PROCEDURE CPI.CHECK_RI(p_pack_par_id IN GIPI_PACK_WPOLBAS.PACK_PAR_ID%TYPE,
exist OUT NUMBER)
AS
/*
** Created by : Veronica V. Raymundo
** Date Created : 11.10.2010
** Reference By : (GIPIS0... |
DROP PROCEDURE CPI.AEG_PARAMETERS;
CREATE OR REPLACE PROCEDURE CPI.aeg_parameters (
p_tran_id IN giac_acctrans.tran_id%TYPE,
p_batch_dv_id giac_batch_dv.batch_dv_id%TYPE,
p_ri_iss_cd IN gicl_claims.iss_cd%TYPE,
p_branch_cd IN giac_acctrans.gibr_branch_cd%TYPE,
p_is... |
INSERT INTO Sector_Cuadrante (id_Sector,id_Cuadrante) VALUES ( 41 , 1 );
INSERT INTO Sector_Cuadrante (id_Sector,id_Cuadrante) VALUES ( 41 , 2 );
INSERT INTO Sector_Cuadrante (id_Sector,id_Cuadrante) VALUES ( 41 , 3 );
INSERT INTO Sector_Cuadrante (id_Sector,id_Cuadrante) VALUES ( 41 , 4 );
INSERT INTO Sector_Cuadr... |
drop TABLE `customer`;
|
insert overwrite table tmp.xxx partition(dt='20180101') select cola,colb from tmp.yyy where cola=10 or cola=20
use gdm;set hive.execution.engine=tez;insert into table dst select a as cc from tab1 union all select b as cc from tab2
insert into table dst select orz from (select a.cola,b.colb from tb1 a inner join tb2 b o... |
INSERT INTO burger(id,burger_name,Devoured,date)VALUES(NULL,"cheeseburger",true,NULL);
INSERT INTO burger(id,burger_name,Devoured,date)VALUES(NULL,"chicken burger",false,NULL);
INSERT INTO burger(id,burger_name,Devoured,date)VALUES(NULL,"vegetarian burger",true,NULL);
INSERT INTO burger(id,burger_name,Devoured,date)VAL... |
USE `symfony_training`;
DELETE from category;
-- Insert categories
INSERT INTO category (name, description) VALUES ('Macbook Pro', 'New line of powerfull laptops');
INSERT INTO category (name, description) VALUES ('Macbook Air', 'New line of low-end laptops');
INSERT INTO category (name, description) VALUES ('iMac', ... |
CREATE LOGIN [gjqPndbOerLogin_CatholicFatihFeed]
WITH PASSWORD = N'|myze$f;i|cpun;haf|#mfmdmsFT7_&#$!~<jyud&dSlx{hx';
|
drop table car if exists;
create table car (
id integer primary key GENERATED BY DEFAULT AS IDENTITY(START WITH 100),
make varchar(25) not null,
model varchar(50) not null,
price integer not null
);
drop table fence if exists;
create table fence (
id integer primary key GENERATED BY DEFAULT AS IDENTITY(START... |
INSERT INTO `choice_question` VALUES (1, 0, '你是猪吗', '不是', '是', '不确定', 'B', 'B');
INSERT INTO `choice_question` VALUES (2, 0, 'Are you pig?', 'No', 'Yes', 'Not sure.', 'B', 'B');
INSERT INTO `choice_question` VALUES (3, 0, '你是猪吗', '不是', '是', '不确定', 'B', 'B');
INSERT INTO `choice_question` VALUES (4, 0, '你是猪吗', '不是', ... |
/*
Navicat Premium Data Transfer
Source Server : liuyun
Source Server Type : MySQL
Source Server Version : 50635
Source Host : localhost:3306
Source Schema : dhjc
Target Server Type : MySQL
Target Server Version : 50635
File Encoding : 65001
Date: 25/05/2020 12:51:45... |
INSERT INTO ms_tserv(serv_name, serv_link, serv_modu) VALUES ('Crear usuario','',1);
INSERT INTO ms_tserv(serv_name, serv_link, serv_modu) VALUES ('Pool usuarios','',1); |
CREATE TABLE SPECIALITE
(code INTEGER,
titre VARCHAR2(20) NOT NULL,
description VARCHAR2(20),
CONSTRAINT PK_SPECIALITE PRIMARY KEY (code)
)
/
CREATE TABLE SALLE
(idSalle INTEGER,
nom VARCHAR2(20) NOT NULL,
CONSTRAINT PK_SALLE PRIMARY KEY (idSalle)
)
/
CREATE TABLE CATEGORIES
(IdCategorie INTEGER,
nom VARCHAR2(20) NOT... |
-- create and grants create a new user and set a privileges
-- create and grants create a new user and set a privileges
SELECT tv_genres.name,
SUM(tv_show_ratings.rate) AS rating
FROM tv_genres
JOIN tv_show_genres ON tv_show_genres.genre_id = tv_genres.id
JOIN tv_show_ratings ON tv_show_genres.show_id = tv_show_rating... |
/* 工作流创建权限检索,带代理流程是否过期判断 */
CREATE OR REPLACE PROCEDURE workflow_createlist_select
(userid_1 INTEGER,
usertype_1 INTEGER,
flag OUT INTEGER, msg OUT VARCHAR2,
thecursor IN OUT cursor_define.weavercursor)
AS
CURRENT_DATE CHAR(10);
current_time CHAR(8);
BEGIN
SELECT SUBSTR(TO_CHAR(SYSDATE, 'hh24:mm:ss'), 1, 8) I... |
set names utf8; -- Set the client side encoding to UTF-8
create table if not exists signin_user_profiles(
userid int(11) not null,
last_signin timestamp,
primary key(userid),
constraint `fk_signin_user_profile_userid` foreign key (userid) references auth_user (id)
) engine=innodb;
|
CREATE TABLE audit_expense (
id INT NOT NULL AUTO_INCREMENT,
referencedExpense VARCHAR(120),
referencedPolicy VARCHAR(120),
approvedAmount DOUBLE,
PRIMARY KEY (id)
); |
UPDATE DocSecCategoryDocProperty SET mustInput = 0 where type in (10,12)
/
UPDATE DocSecCategoryDocProperty SET mustInput = -1 where type in (1,2,3,4,5,6,7,8,9,11,13,14,15,16,17,18,19,20,21)
/
|
create proc NAME_SEARCH
@FirstName nvarchar(20) = 'blank',
@LastName nvarchar(20) = 'blank'
as
select PATIENTS.FIRST_NAME, PATIENTS.LAST_NAME, PATIENT_RECORDS.SUBMISSION_DATE,
PATIENT_RECORDS.DISCHARGE_DATE,
case
when PATIENT_RECORDS.IS_DISCHARGED = 1 then 'yes'
else 'no'
end as DISCHARGE_STATUS,
TOTAL_BILLABLE
... |
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 06-07-2016 a las 15:22:04
-- Versión del servidor: 5.5.49-0ubuntu0.14.04.1
-- Versión de PHP: 5.5.9-1ubuntu4.17
SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = ... |
/*for create users*/
INSERT INTO "public"."users"
VALUES (2147483642, 'customer1', 'customer1', 'customer1',
'$2a$10$1yKR7k9TByMPEIIxczn0duAek/hPHXNiEv.v6dysCqZCkuqsgX4Um', 'ROLE_ADMIN');
INSERT INTO "public"."users"
VALUES (2147483643, 'customer2', 'customer2', 'customer2',
'$2a$10$1yKR7k9TByMPEI... |
-- Up
CREATE TABLE Division (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
code TEXT
);
CREATE TABLE Member (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
email TEXT,
divisionId INTEGER,
FOREIGN KEY (divisionId) REFERENCES Division (id)
);
INSERT INTO Division (name, code) values ("NTQ soluti... |
-- Checklist 26
SELECT especializacao FROM tb_especializada |
SELECT COUNT(teach.name) as teachers, COUNT(teach.mobile) as mobiles
FROM teacher teach |
/*
SQLyog Job Agent v12.4.1 (64 bit) Copyright(c) Webyog Inc. All Rights Reserved.
MySQL - 5.7.19 : Database - ssm_blog
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 *... |
CREATE VIEW [Transform].[DimCustomerChangesView]
AS
WITH XMLNAMESPACES ('http://schemas.microsoft.com/sqlserver/2004/07/adventure-works/IndividualSurvey' AS cs)
,Version_CTE
AS
(
SELECT [Customer].[CustomerID]
,MAX([Version]) AS 'Version'
FROM [Model].[DimCustomer] Customer
INNER JOIN [Transform].[DimCustomerC... |
UPDATE IMP_CA
SET CAACTION='REPLACE';
COMMIT;
EXIT; |
--INSERT INTO USUARIO (ID, PASSWORD, USERNAME) VALUES (1,'HA','HA');
--INSERT INTO USUARIO (ID, PASSWORD, USERNAME) VALUES (2,'CDIGITAIS','CDIGITAIS');
--INSERT INTO USUARIO (ID, PASSWORD, USERNAME) VALUES (3,'ECM','ECM');
--INSERT INTO USUARIO (ID, PASSWORD, USERNAME) VALUES (4,'PORTAL','PORTAL');
--INSERT INTO USUARI... |
UPDATE license set cversion = '4.100.1107'
/
|
DROP TABLE IF EXISTS `timetracker_migration_temp`.`time_entries`;
-- CREATE TABLE "time_entries" ---------------------------------
CREATE TABLE `timetracker_migration_temp`.`time_entries` (
`id` Int( 11 ) AUTO_INCREMENT NOT NULL,
`uuid` Char( 36 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
-- `cre... |
select fn_db_add_column('storage_server_connections', 'nfs_version', 'smallint default null');
select fn_db_add_column('storage_server_connections', 'nfs_timeo', 'smallint default null');
select fn_db_add_column('storage_server_connections', 'nfs_retrans', 'smallint default null');
|
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 01-Nov-2017 às 14:26
-- Versão do servidor: 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 */... |
select * from cliente;
-- Actual parameter values may differ, what you see is a default string representation of values
INSERT INTO public.cliente (nombre,segundo_nombre,apellido,segundo_apellido,fecha_nacimiento,sexo,direccion)
VALUES ('Marvin','Jeovany','Zarceno','Cartagena','1992-06-10','M','Las Arboledas');
INSE... |
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Máy chủ: localhost
-- Thời gian đã tạo: Th5 05, 2018 lúc 02:09 PM
-- Phiên bản máy phục vụ: 10.1.31-MariaDB
-- Phiên bản PHP: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!... |
do not run;
DELETE FROM matchPoints;
DELETE FROM userGroupMembers;
DELETE FROM userGroupCups;
DELETE FROM userGroups;
DELETE FROM matchBets;
DELETE FROM matches;
DELETE FROM cupWinners;
DELETE FROM cupTeams;
DELETE FROM cupTeamBets;
DELETE FROM cups;
DELETE FROM jobLog;
DELETE FROM jobs;
DELETE FROM favorites;
DE... |
/* Formatted on 14/06/2013 10:16:21 a.m. (QP5 v5.163.1008.3004) */
--RAMOS
SELECT TO_NUMBER (ACARGU)
FROM CTRALTAB
WHERE ACTIAR = 4852 AND TRIM (ACARGU) <> '**'; --PATRIMONIALES
SELECT TO_NUMBER (ACARGU)
FROM CTRALTAB
WHERE ACTIAR = 4853 AND TRIM (ACARGU) <> '**'; ... |
------- 0: SELECT basics
-- 1 Show the population of Germany
SELECT population FROM world
WHERE name = 'Germany';
-- 2 Show the name and the population for 'Sweden', 'Norway' and 'Denmark'.
SELECT name, population FROM world
WHERE name IN ('Sweden', 'Norway', 'Denmark');
-- 3 Show the country and the are... |
CREATE TABLE emailTo (
IDd INT(14) NOT NULL AUTO_INCREMENT PRIMARY KEY,
MessageID VARCHAR(255),
addressTo VARCHAR(255)
); |
delete from HtmlLabelIndex where id=24835
/
delete from HtmlLabelInfo where indexid=24835
/
INSERT INTO HtmlLabelIndex values(24835,'导入日志')
/
INSERT INTO HtmlLabelInfo VALUES(24835,'导入日志',7)
/
INSERT INTO HtmlLabelInfo VALUES(24835,'Import log',8)
/
INSERT INTO HtmlLabelInfo VALUES(24835,'導入日誌',9)
/
|
use ssh;
show tables;
desc category;
insert into category values (1,"男士服装1",true),
(2,"男士服装2",false),
(3,"男士服装3",false),
(4,"男士服装4",true),
(5,"男士服装5",false),
(6,"男士服装6",true),
(7,"女士服装1",true),
(8,"女士服装6",false),
(9,"女士服装6",true);
select * from category;
|
CREATE TABLE ClientSocialProfileTBL (
ID BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
MEDPAL BIGINT UNSIGNED NOT NULL,
Smoker CHAR NULL,
CurSmoker CHAR NULL,
SmokerperDay INTEGER UNSIGNED NULL,
SmokerType VARCHAR(15) NULL,
SmokerYears INTEGER UNSIGNED NULL,
Alcohol CHAR NULL,
AlcoholperWeek INTEGER UNSIGN... |
SET ENABLE_SEQSCAN = OFF;
EXPLAIN ANALYZE VERBOSE SELECT *
FROM doc_gist
WHERE doc LIKE '%cold%';
EXPLAIN ANALYZE VERBOSE SELECT *
FROM doc_gin
WHERE doc LIKE '%cold%';
EXPLAIN ANALYZE VERBOSE SELECT *
... |
select
pay.OrderDescription
from pmt.Payment pay
inner join prd.Product pro on pro.ContractNumber = pay.ContractIdentifier
inner join prd.ShortTermCredit stc on stc.Id = pro.id
cross apply
(
select top 1 stsl.Status
from prd.ShortTermStatusLog stsl
where stsl.Product_Id = pro.Id
order by stsl.S... |
CREATE DATABASE IF NOT EXISTS `peacock` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `peacock`;
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: dev_peacock
-- ------------------------------------------------------
-- Server version 5.5.40-0ubuntu0.14.04.1
/*!40101 ... |
/* This file summarizes a finance database to allocate budgets based on
incomes and expenses.
It is composed by Julia Deacon under the tutelage of Fabian Bömer. */
/* If the database finance already exists, then kill it. */
drop database if exists finance;
create database finance; /* Make a database called financ... |
-- special case for the root user that will have permissions to do all. Initial root password will be "default"
-- email will be used as the login
INSERT INTO users (first_name, last_name, initials, email, phone_number, salt, hash) values -- root_pw #1
('Puzzle', 'Admin', '99', 'pzadmin', null,
'95a0fc6076fad... |
CREATE TABLE Type(
type VARCHAR2(20) PRIMARY KEY,
description VARCHAR2(80) NOT NULL);
CREATE TABLE FamilyPackage(
id NUMBER(4) PRIMARY KEY,
address VARCHAR2(20) NOT NULL,
phone VARCHAR2(20) UNIQUE);
CREATE TABLE RecCenterMember(
id ... |
-- Lure Them Back
-- You must not change the next 2 lines or the table definition.
SET SEARCH_PATH TO Library, public;
DROP TABLE IF EXISTS q5 cascade;
CREATE TABLE q5 (
patronID CHAR(20),
email TEXT NOT NULL,
usage INT,
decline INT,
missed INT
);
-- Do this for each of the views that define you... |
select
p.id
,p.PaymentStatus
,p.ProcessedOn
,fpi.* -- update p set p.PaymentStatus = 2
from pmt.Payment p
inner join pmt.CreditCardPaymentInfo ccpi on ccpi.PaymentId = p.id
inner join pmt.FondyPaymentInfo fpi on fpi.CreditCardPaymentInfoId = ccpi.Id
where p.ContractNumber = '1900110041'
and p.Payme... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 14, 2017 at 10:26 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET... |
CREATE TABLE intern
(
id number(20) not null ,
first_name VARCHAR2(30),
last_name VARCHAR2(30),
university VARCHAR2(60),
department VARCHAR2(30),
grade number(10),
city varchar2(30)
);
INSERT INTO intern(id,first_name,last_name,university,department,class,city)
VALUES (1,'Tolga','Catalpinar','Bilkent','Computer Eng',... |
SELECT * FROM SURVEY_ITEMS
WHERE DELETE_FLAG = 0
ORDER BY INSERT_DATETIME %s;
|
update cart
set quantity=$1+1
where item_id=$2 and user_id=$3;
select *
from cart join items i on cart.item_id=i.id
where user_id =$3
order by i.id; |
delete from HtmlLabelIndex where id=24925
/
delete from HtmlLabelInfo where indexid=24925
/
INSERT INTO HtmlLabelIndex values(24925,'»΅ΥΛ')
/
INSERT INTO HtmlLabelInfo VALUES(24925,'»΅ΥΛ',7)
/
INSERT INTO HtmlLabelInfo VALUES(24925,'Bad debts',8)
/
INSERT INTO HtmlLabelInfo VALUES(24925,'ΔΩ~',9)
/
|
/*
parameter:
@lang language
*/
SELECT monster_id AS MonsterID,
rank AS Rank,
item_id AS ItemID,
stack AS Stack,
percentage AS Percentage,
monster_reward_condition_text.name AS ConditionName,
icon_name AS IconName,
icon_color AS IconColor,
item_text.name AS Item... |
/* Here i used a select function to get category name, select(count) to get the number of products for each category
name and then a select(sum) with quantity to get the total amount of orders. I used an inner join function to join
both products and order_items with the categories table. I then grouped by category name... |
-- Table: comext_requerimientoexportacion
-- DROP TABLE comext_requerimientoexportacion;
CREATE TABLE comext_requerimientoexportacion
(
id integer NOT NULL,
fecha timestamp(0) without time zone DEFAULT NULL::timestamp without time zone,
codigo character varying(40) DEFAULT NULL::character varying,
mo... |
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
`id` int(11) NOT NULL COMMENT '订单id',
`order_num` bigint(20) NULL DEFAULT NULL COMMENT '订单编号',
`customer_id` int(11) NULL DEFAULT NULL COMMENT '下单人id',
`customer_name` varchar(50) CHARACTER SET utf8mb4 COLLATE u... |
set search_path to encuestas;
-- Table: grupos_usuarios
-- DROP TABLE grupos_usuarios;
CREATE TABLE grupos_usuarios
(
id serial NOT NULL,
grupo_id integer,
usuario_id integer,
encuesta_id integer,
created timestamp without time zone,
modified timestamp without time zone,
owner_id integer,
CONSTRAINT "... |
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
-- -----------------------------------------... |
# EMS MySQL Manager 2.8.5.1
# ---------------------------------------
# Host : localhost
# Port : 3306
# Database : vasago
SET FOREIGN_KEY_CHECKS=0;
USE `vasago`;
#
# Data for the `bancos` table (LIMIT 0,500)
#
# clave:3:49667
# numero:253:0
# banco:253:0
# importeInicial:5:32768
# impo... |
DROP TABLE public.alertSource;
CREATE TABLE public.alertSource (
id serial primary key,
name VARCHAR(100),
url VARCHAR(200),
description VARCHAR(200),
sourceTypeID integer NOT NULL,
classificationID integer NOT NULL,
trustLevel double precision,
languageId integer NOT NULL
);
DROP T... |
/*
Navicat MySQL Data Transfer
Source Server : mysql
Source Server Version : 50520
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50520
File Encoding : 65001
Date: 2016-05-03 21:23:09
*/
SET FOREIGN_KEY_CHECKS=... |
/*
Warnings:
- A unique constraint covering the columns `[title]` on the table `Book` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Book.title_unique" ON "Book"("title");
|
declare
secid_1 integer;
secMax integer;
execCount integer;
recordCount integer;
i integer;
begin
select max(id) into secMax from docseccategory;
execCount := secMax/5000+1;
i := 0;
while i<execCount
loop
for sec_cursor in(
select id from docseccategory where id>i*5000+1 and id <(i+1)*5000+1 order by ... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Мар 27 2017 г., 16:07
-- Версия сервера: 10.1.21-MariaDB
-- Версия PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
CREATE TABLE `system_email_layouts` (
`id` int(11) NOT NULL auto_increment,
`code` varchar(100) default NULL,
`content` text,
`css` text,
`name` varchar(255) default NULL,
PRIMARY KEY (`id`),
KEY `code` (`code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
CREATE TABLE `JNKS_BUILDDATA` (
`Timestamp` timestamp NULL DEFAULT NULL,
`Product` varchar(100) DEFAULT '',
`Component` varchar(100) DEFAULT '',
`BuildStatus` varchar(30) DEFAULT NULL,
`BuildNumber` int(11) DEFAULT NULL,
KEY `fk_comp` (`Product`,`Component`),
CONSTRAINT `fk_comp` FOREIGN KEY (`Product`, `... |
/*
Navicat MySQL Data Transfer
Source Server : 192.168.11.10
Source Server Version : 50730
Source Host : 192.168.11.10:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50730
File Encoding : 65001
Date: 2020-08-18 14:11:30
*/
SET FOREIGN_KEY_CHECKS=0;
... |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 11, 2020 at 11:36 AM
-- Server version: 10.4.10-MariaDB
-- PHP Version: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
select
object_name(so.parent_obj) as table_name,
so.name as constraint_name,
so.xtype
from sysconstraints c
inner join sysobjects so
on c.constid=so.id
where so.xtype != 'D' and so.xtype != 'PK' and so.xtype != 'UQ'
and objectproperty(so.id, 'CnstIsDisabled')=0
order by table_name;
|
update
AppPlatformSetting
set
SuppressSystemIdle = @SuppressSystemIdle,
UpdatedTimestamp = @UpdatedTimestamp,
UpdatedAccount = @UpdatedAccount,
UpdatedProgramName = @UpdatedProgramName,
UpdatedProgramVersion = @UpdatedProgramVersion,
UpdatedCount = UpdatedCount + 1
where
A... |
DROP TABLE IF EXISTS pollar_user;
DROP TABLE IF EXISTS polls;
DROP TABLE IF EXISTS poll_options;
DROP TABLE IF EXISTS privacy;
CREATE TABLE pollar_user (
id SERIAL PRIMARY KEY,
username TEXT UNIQUE NOT NULL,
password TEXT NOT NULL
);
CREATE TABLE privacy (
privacy_id SERIAL PRIMARY KEY,
type TEXT UNIQUE NOT ... |
CREATE TABLE IF NOT EXISTS grading_logs (
id SERIAL PRIMARY KEY,
date TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
submission_id INTEGER NOT NULL REFERENCES submissions ON DELETE CASCADE ON UPDATE CASCADE,
score DOUBLE PRECISION,
correct BOOLEAN,
feedback JSONB,
auth_user_id INTEGER R... |
DROP TABLE draw_word
IF EXISTS;
CREATE TABLE draw_word (
id INTEGER GENERATED BY DEFAULT AS IDENTITY (
START WITH 1 ),
word VARCHAR(255),
word_count SMALLINT,
word_type VARCHAR(255),
PRIMARY KEY (id)
); |
DROP TABLE IF EXISTS graph;
CREATE TABLE graph (
node_from VARCHAR,
node_to VARCHAR,
cost INT
);
INSERT INTO graph VALUES ('s', 'x', 5), ('s', 'u', 3), ('u', 'v', 6), ('u', 'x', 2), ('v', 'y', 2),
('y', 's', 3), ('y', 'v', 7), ('x', 'u', 1), ('x', 'v', 4), ('x', 'y', 6);
WITH RECURSIVE p (node_from, n... |
CREATE OR REPLACE PROCEDURE dodaj_rezerwacje(
arg_id_wycieczki wycieczki.id_wycieczki%TYPE,
arg_id_osoby osoby.id_osoby%TYPE
) AS
BEGIN
sprawdz_czy_wycieczka_istnieje(arg_id_wycieczki);
sprawdz_czy_wycieczka_jeszcze_sie_nie_odbyla(arg_id_wycieczki);
sprawdz_czy_jest_wolne_miejsce(arg_id_wycieczki);
sprawdz_czy_os... |
SELECT thid, tn, tcreatetime, thpendingautoclose, thclose, artbody, sername, name, diff, create_time1, create_time2, tsname, qname, a_body, sender
FROM
(
SELECT thid, tn, tcreatetime, thpendingautoclose, thclose, artbody, sername, name, diff, create_time1, create_time2, tsname, qname, a_body
FROM
(
SELECT thid, tn... |
-- phpMyAdmin SQL Dump
-- version 3.3.2deb1ubuntu1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 24, 2012 at 08:46 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.2-1ubuntu4.11
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `dundef`
--
-- -----------------------------------------... |
CREATE TABLE USER (
ID INT NOT NULL IDENTITY,
NAME VARCHAR(100) NOT NULL
);
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 23 Jul 2021 pada 18.02
-- Versi server: 10.4.14-MariaDB
-- Versi PHP: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... |
ALTER TABLE ADD COLUMN
estimate INTEGER
; |
-- =============================================
-- Author: Javier
-- Create date: April 2011
-- Description: <Description,,>
-- =============================================
CREATE PROCEDURE spSecurityUsersSelectPermissions
@userId INT=NULL
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- in... |
UPDATE license set cversion = '4.000.1229'
/ |
CREATE TABLE "currentten" (
"id" SERIAL PRIMARY KEY,
"problem" VARCHAR(200)
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.