text stringlengths 1 1.05M |
|---|
-- --------------------------------------------------------
-- Servidor: 127.0.0.1
-- Versão do servidor: 10.4.18-MariaDB - mariadb.org binary distribution
-- OS do Servidor: Win64
-- HeidiSQL Versão: 11.3.0.6295
-- -----------------------------------------------... |
CREATE TABLE list (id VARCHAR(2) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
INSERT INTO `list` (`id`, `value`) VALUES ('af', 'Afrikaans');
INSERT INTO `list` (`id`, `value`) VALUES ('af_NA', 'Afrikaans (Namibia)');
INSERT INTO `list` (`id`... |
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_SUBSTITUTION';
-- --------------------------... |
CREATE TABLE [dbo].[ResumeKinds]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[Description] NVARCHAR(MAX) NOT NULL
)
|
/*
Table level check constraints that use function 'dbo.Constraint_Check_Estimated_Time'
*/
ALTER TABLE order_branch_product with NOCHECK ADD CONSTRAINT
Check_Completed_Order_insertion CHECK (dbo.Constraint_Check_Estimated_Time(order_id,order_branch_product_id)=1);
|
--
-- Type: TABLE;
-- Name: sk_emd;
--
SET statement_timeout = 0;
SET lock_timeout = 0;
--SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_m... |
-- boundary2.test
--
-- db eval {
-- SELECT r, x FROM t1 WHERE a=2
-- }
SELECT r, x FROM t1 WHERE a=2 |
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jun 25, 2020 at 10:29 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 SE... |
-- src/clojure-discord-example/db/sql/messages.sql
-- :name insert-message :! :n
-- :doc Insert a single character
insert into messages (info)
values (:message)
--WITHOUT FUNCTION AS IMPLICIT
-- :name random-message :! :n
-- :doc get a random message
select
info -> 'content' as content
from
messages
where
info -> 'a... |
update ACT_GE_PROPERTY set VALUE_ = '6.3.0.0' where NAME_ = 'identitylink.schema.version';
alter table ACT_RU_IDENTITYLINK add column SCOPE_ID_ varchar(191);
alter table ACT_RU_IDENTITYLINK add column SCOPE_TYPE_ varchar(191);
alter table ACT_RU_IDENTITYLINK add column SCOPE_DEFINITION_ID_ varchar(191);
create ... |
-- File generated by Mangos Online Translation Editor (MOTE) v2.10
SET NAMES 'utf8';
UPDATE `db_script_string` SET `content_loc5`='兄弟,這些契約是我的!很快你就將永遠從我眼前消失了!' WHERE `entry`=2000000001;
UPDATE `db_script_string` SET `content_loc5`='為你們的英雄而歡慶!就在今天,他們給了我們最可恨的一個敵人一次重擊!那個假的大酋長,雷德·黑手,已經倒下了!' WHERE `entry`=2000000002;
UPDATE ... |
-- tables
DROP TABLE IF EXISTS `[db_prefix]_main`;
DROP TABLE IF EXISTS `[db_prefix]_application_settings`;
-- admin menu
DELETE FROM `sys_menu_admin` WHERE `name` = 'Opensocial';
-- page compose pages
DELETE FROM `sys_page_compose` WHERE `Caption`='_osi_Custom_Feeds' AND `Func`='PHP';
-- special page compose page
D... |
-- CREATE TABLE SELECT
USE sii;
DROP TABLE IF EXISTS studentsBACKUP;
-- kreiramo backup tabelu students sa svim podacima iz izvorne tabele students
CREATE TABLE studentsBACKUP AS SELECT * FROM students;
DROP TABLE IF EXISTS studentsBACKUP1;
-- kreiramo backup tabelu students bez podataka iz izvorne tabele students
-- u... |
ALTER TABLE downloads DROP COLUMN last_synced;
ALTER TABLE videos ADD COLUMN last_synced timestamp DEFAULT NULL;
|
DROP TABLE moderation;
DROP TRIGGER set_updated_at ON posts;
DROP TRIGGER set_updated_at ON comments;
ALTER TABLE posts
DROP COLUMN updated_at;
ALTER TABLE comments
DROP COLUMN updated_at;
ALTER TABLE posts
DROP COLUMN rejected;
ALTER TABLE comments
DROP COLUMN rejected;
|
If Not Exists(Select * from sys.columns where Name = N'Frequency' AND Object_ID = Object_ID(N'mst_Facility'))
BEGIN
ALTER TABLE mst_Facility ADD Frequency INT CONSTRAINT DF_DEFAULT_FREQUENCY DEFAULT 1 NOT NULL;
END
go
If Exists(Select * from sys.columns where Name = N'Frequency' AND Object_ID = Object_ID(N'mst_F... |
create table TMP_CUST_ASSET_SUM_1_col
(
Party_Id VARCHAR(30) NOT NULL,
Zone_Num CHAR(5) NOT NULL,
Asset_Max_Belong_Org_Num VARCHAR(30) NOT NULL
)with(orientation = column);
insert into TMP_CUST_ASSET_SUM_1_col select * from TMP_CUST_ASSET_SUM_1;
analyze TMP_CUST_ASSET_SUM_1... |
Insert into eg_action(id,name,url,parentmodule,ordernumber,displayname,enabled,contextroot,application)
values(nextval('SEQ_EG_ACTION'),'Get edcr system approved report using dcr number','/rest/approved-report-ouput/by-edcr-number',(select id from eg_module where name='E-Application' and
parentmodule=(select id from ... |
create table if not exists MMM (time timestamp not null primary key, open float8 not null, high float8 not null, low float8 not null, close float8 not null, volume int4 not null); create table if not exists ABT (time timestamp not null primary key, open float8 not null, high float8 not null, low float8 not null, clos... |
set define off
set verify off
set feedback off
WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
begin wwv_flow.g_import_in_progress := true; end;
/
-- AAAA PPPPP EEEEEE XX XX
-- AA AA PP PP EE XX XX
-- AA AA PP PP EE XX XX
-- AAAAAAAAAA PPPPP EEEE ... |
CREATE TABLE [dbo].[TOcpAdditionalName]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[TOcpAdditionalNameId] BIGINT NOT NULL,
[Value] NVARCHAR(MAX) NOT NULL,
[Type] NVARCHAR(MAX) NOT NULL,
[Lang] NVARCHAR(MAX) NOT NULL,
CONSTRAINT [PK_TOcpAdditionalNameId] PRIMARY KEY CLUSTERED ([TOcpAdd... |
--
-- JBoss, Home of Professional Open Source
-- Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
-- contributors by the @authors tag. See the copyright.txt in the
-- distribution for a full listing of individual contributors.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
-- noinspection SqlNoDataSourceInspectionForFile
-- PostgreSQL 9.6
-- '\\' is a delimiter
-- select version() as postgresql_version
CREATE TABLE IF NOT EXISTS entities (
entity_id serial PRIMARY KEY NOT NULL,
name varchar(32) NOT NULL,
location varchar(32) NOT NULL,
deleted boolean NOT NULL DEFAULT false
)... |
-- =============================================
-- Author: Kamil Nowinski
-- Create date: 30/09/2017
-- Description: Get basic information about customer and additional info from DWH
-- =============================================
CREATE PROCEDURE [dbo].[GetCustomerDetail]
@CustomerId INT
AS
BEGIN
SELECT C.[Custo... |
Rem
Rem $Header: rdbms/demo/schema/sales_history/sh_pop3.sql /main/5 2013/07/24 08:50:34 jstenois Exp $
Rem
Rem sh_pop3.sql
Rem
Rem Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
Rem
Rem Permission is hereby granted, free of charge, to any person obtaining
Rem a copy of this software and... |
CREATE TYPE [dbo].[ErrorMessageType]
FROM NVARCHAR (500) NULL;
|
START TRANSACTION;
INSERT IGNORE INTO `fields` VALUES (NULL, 'plugin_locale_reset_search', 'backend', 'Locale plugin / Reset search', 'plugin', '2016-08-23 09:48:29');
SET @id := (SELECT LAST_INSERT_ID());
INSERT IGNORE INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'Reset search', 'plugin')... |
-- Options table
CREATE TABLE IF NOT EXISTS forward_options (
option_name VARCHAR (64) NOT NULL PRIMARY KEY,
option_value LONGTEXT
) CHARACTER SET utf8 COLLATE utf8_general_ci;
-- Sessions table
CREATE TABLE IF NOT EXISTS forward_sessions (
session_id INT (6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
user_id INT (6),
... |
CREATE TABLE A(
num INTEGER PRIMARY KEY
);
CREATE TABLE B(
tipo CHARACTER PRIMARY KEY
);
CREATE table C(
a INTEGER,
b CHARACTER,
FOREIGN KEY (a) REFERENCES A(num) MATCH SIMPLE,
FOREIGN key (b) references B(tipo) MATCH SIMPLE,
PRIMARY KEY (a,b)
);
CREATE table D(
id FLOAT,
a intege... |
CREATE TABLE [dbo].[ESpeedChanges]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[ESpeedChangesId] BIGINT NOT NULL,
[SpeedChange] SMALLINT NOT NULL,
CONSTRAINT [PK_ESpeedChangesId] PRIMARY KEY CLUSTERED ([ESpeedChangesId] ASC),
CONSTRAINT [FK_ESpeedChanges_TSpeedChange] FOREIGN KEY ([SpeedChange]) R... |
# YOUR SQL HERE |
-- file:alter_table.sql ln:805 expect:true
alter table def_test alter column c1 set default 'wrong_datatype'
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 24, 2018 at 09:33 AM
-- 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... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50711
Source Host : localhost:3306
Source Database : object
Target Server Type : MYSQL
Target Server Version : 50711
File Encoding : 65001
Date: 2017-05-07 00:51:40
*/
SET FOREIGN_KEY_CHECKS=0;
-- --... |
library mCODE version '1'
using FHIR version '1.0.2'
include FHIRHelpers version '1.0.2' called FHIRHelpers
codesystem "LOINC": 'http://loinc.org'
code "ECOG performance code": '89262-0' from "LOINC" display 'ECOG Performance Status [Interpretation]'
code "Karnofsky performance code": '89245-5' from "LOINC" display ... |
CREATE TABLE subdivision_IL (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
INSERT INTO `subdivision_IL` (`id`, `name`, `level`) VALUES ('IL-M', 'Distrito Centro', 'district');
INSERT INTO `subdivision... |
select
count(*) as failures,
count(*) != 0 as should_warn,
count(*) != 0 as should_error
from (
select
northstar_id as unique_field,
count(*) as n_records
from "quasar_prod_warehouse"."analyst_sandbox"."member_latest_messaging_status"
where northstar_id is not null
group... |
-- @testpoint:opengauss关键字binary_integer(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists binary_integer;
create group binary_integer with password 'gauss@123';
drop group binary_integer;
--关键字带双引号-成功
drop group if exists "binary_integer";
create group "binary_integer" with password 'gauss@123';
drop group "binary_integ... |
SELECT
client_addr AS client,
usename AS user,
application_name AS name,
state, sync_state AS mode,
(pg_xlog_location_diff(pg_current_xlog_location(),sent_location) / 1024)::bigint as pending,
(pg_xlog_location_diff(sent_location,write_location) / 1024)::bigint as write,
(pg_xlog_location_di... |
if not exists ( select 1 from dbo.[User])
begin
insert into dbo.[User](FirstName,LastName)
values ('Marlyson','Mendes'),
('Paulo','Oliveira'),
('Caique','Matos'),
('André','Santos'),
('Henry','Pereira')
end |
USE employee_tracker_db;
INSERT INTO department (department_name) VALUES ("Drafting");
INSERT INTO department (department_name) VALUES ("Administration");
INSERT INTO department (department_name) VALUES ("Sales");
INSERT INTO department (department_name) VALUES ("R&D");
INSERT INTO department (department_name) VALUES ... |
INSERT INTO pos_itemtemp VALUES("IATT190003261","193037","191001","192006","36000","1","36000","18000","18000","1","1","1","IAT1710190919","NHO2018000007","PAID","","PEDAS"),
("IATT190003262","193082","191001","192001","30000","1","30000","15000","15000","1","1","1","IAT1710190919","NHO2018000007","PAID","","193082"),
... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 28-06-2016 a las 03:42:55
-- Versión del servidor: 10.1.13-MariaDB
-- Versión de PHP: 5.5.35
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... |
CREATE TABLE IF NOT EXISTS `global_properties` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`modified` datetime DEFAULT NULL,
`instance_notification_topic_arn` varchar(255) NOT NULL,
`cloud_front_account_id` varchar(255) NOT NULL DEFAULT 'cloud front account id',
`cloud_front_key_id` varchar(255) NOT NULL DEFAULT 'c... |
create view _airbyte_test_normalization_namespace.`simple_stream_with_na__g_into_long_names_ab1__dbt_tmp` as (
-- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema
select
json_value(_airbyte_data,
'$."id"') as id,
json_va... |
CREATE TEMPORARY TABLE `temp_gfw_data`(
mmsi INT64,
timestamp TIMESTAMP,
lon FLOAT64,
lat FLOAT64,
speed_knots NUMERIC,
implied_speed_knots NUMERIC,
source STRING
);
INSERT INTO `temp_gfw_data`
SELECT
CAST(mmsi AS INT64) AS mmsi,
timestamp,
lon,
lat,
CAST(speed_knots AS NUMERIC) AS speed_knots,
CAST(implied_s... |
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 30, 2020 at 08:02 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... |
DROP DATABASE IF EXISTS techBlog;
CREATE DATABASE techBlog; |
CREATE TABLE BONUS (
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
SAL NUMBER,
COMM NUMBER
); |
DROP DATABASE IF EXISTS employee_tracker;
CREATE DATABASE employee_tracker;
-- using the database
USE employee_tracker;
-- Deleting if the tables already exists
DROP TABLE IF EXISTS employee;
DROP TABLE IF EXISTS role;
DROP TABLE IF EXISTS department;
-- Creating a database
-- creating department table
CREATE TABLE... |
PRAGMA foreign_keys = ON;
CREATE TABLE IF NOT EXISTS users (
user_id TEXT PRIMARY KEY,
at_name TEXT NOT NULL,
display_name TEXT NOT NULL,
tweets INTEGER NOT NULL,
following INTEGER NOT NULL,
followers INTEGER NOT NULL,
likes INTEGER NOT NULL,
verifi... |
/*
* Copyright 2013-2020 CompilerWorks
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the follow... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 26, 2017 at 06:09 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... |
CREATE TABLE public.testtable (
f1 integer,
f2 integer
);
ALTER TABLE public.testtable OWNER TO fordfrog;
CREATE INDEX testindex ON public.testtable USING btree (f1);
CREATE INDEX testindex2 ON public.testtable USING btree (f2);
ALTER TABLE public.testtable CLUSTER ON testindex2; |
CREATE TABLE [dbo].[UserProfile] (
[UserAccountId] INT NOT NULL,
[FirstName] NVARCHAR (200) NOT NULL,
[LastName] NVARCHAR (200) NOT NULL,
[GrandFatherName] NVARCHAR (200) NOT NULL,
[Email] NVARCHAR (50) NULL,
[CaseTeam] INT NULL,
CONSTR... |
----------------------------------------
--------------- VIEWS FOR JSON RESPONSES:
----------------------------------------
-- NOTE: Assumes all answers and essays are complete and usable.
-- If, some day, new answers and essays are created, update queries
-- to add "where payable is true"
DROP VIEW IF EXISTS woodegg.... |
CREATE DATABASE IF NOT EXISTS `interview`;
USE `interview`;
CREATE TABLE IF NOT EXISTS `interview`.`test` (
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`client_id` BIGINT(20) UNSIGNED,
`line_number` BIGINT(20) UNSIGNED,
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8;
TRUNCATE TABLE `interview`.`test`... |
SET DEFINE OFF;
CREATE INDEX AFW_12_HISTR_TUTRL_FK2 ON AFW_12_HISTR_TUTRL
(REF_UTILS)
LOGGING
/
|
/* populate db */
INSERT INTO Tweets VALUES (80000001,'I Love GW',102543329, 3,2, 9/8/2013, 'happy', 38.8856983,-77.031566);
INSERT INTO Tweets VALUES (80000002,'I hate GW',102543388, 0,1, 1/18/2015, 'mad', 38.8854803,-77.0398566);
INSERT INTO Tweets VALUES (80000003,'I dont Love GW',912543329, 2,12, 4/8/2015, 'neutral... |
LOAD DATA INFILE "/home/cloudera/Source/Customer/m_Customer.csv" INTO TABLE Customer.Customer COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '"' LINES TERMINATED BY '\n' IGNORE 1 LINES;
|
CREATE TABLE Users(
id INTEGER PRIMARY KEY AUTOINCREMENT,
username VARCHAR(255),
passwd VARCHAR(255)
);
INSERT INTO Users(username, passwd) VALUES("admin", "35effb8d44421ae569cfaa9a2a2d76530df35d1d29afa42f5920f9bc4074771e");
INSERT INTO Users(username, passwd) VALUES("jeanmithebest", "597f... |
DELETE FROM keys
WHERE keys.id = ?
AND keys.account_id = ?
|
create schema if not exists ct_petstore;
create table if not exists ct_petstore.pet (
pet_id uuid not null primary key default gen_random_uuid(),
create_time timestamp with time zone not null default now(),
update_time timestamp with time zone not null default now(),
name text not null,
bio text,
created_b... |
--
---- test interval partitioned index
--
drop table if exists hw_partition_index_ip;
create table hw_partition_index_ip
(
c1 int,
c2 int,
logdate date not null
)
partition by range (logdate)
INTERVAL ('1 month')
(
PARTITION hw_partition_index_ip_p0 VALUES LESS THAN ('2020-03-01'),
PARTITION hw_partition_index_i... |
UPDATE MAIL_POSTS
SET
POST_KIND = ?
, ID = ?
, SENDER = ?
, INSERT_USER = ?
, INSERT_DATETIME = ?
, UPDATE_USER = ?
, UPDATE_DATETIME = ?
, DELETE_FLAG = ?
WHERE
MESSAGE_ID = ?
;
|
Server Name (FQDN):- _____________SQL-A.Lab.com_______________________________
Instance Name: ________________DEFAULT___________________________________
Is [Lab\SQLDBA] added as Administrator on server: __________________________
SQL Server Version:- ______________2017____________________________________
SQL Serve... |
CREATE TABLE people (
empId SERIAL PRIMARY KEY,
name VARCHAR (40),
address VARCHAR (150),
bday DATE
);
CREATE TABLE companies (
comId SERIAL PRIMARY KEY,
name VARCHAR (40),
address VARCHAR (150)
);
CREATE TABLE empHistory (
histId SERIAL PRIMARY KEY,
comID INTEGER REFERENCES compa... |
create table NEWS(
id bigint primary key auto_increment,
title text,
content text,
URL varchar(1000),
create_at timestamp default now(),
modified_at timestamp default now()
)DEFAULT CHARSET=utf8mb4;
create table LINKS_TO_BE_PROCESSED(link varchar(1000));
create table LINKS_ALREADY_PROCESSED(link varchar(1000));
|
CREATE TABLE User (
userId STRING(36) NOT NULL,
name STRING(MAX) NOT NULL,
) PRIMARY KEY(userId);
CREATE TABLE UserItem (
userId STRING(36) NOT NULL,
userItemId STRING(36) NOT NULL,
count INT64 NOT NULL,
) PRIMARY KEY(userId, userItemId), INTERLEAVE IN PARENT User ON DELETE CASCADE; |
CREATE DATABASE IF NOT EXISTS `llmm_main` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `llmm_main`;
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86)
--
-- Host: localhost Database: llmm_main
-- ------------------------------------------------------
-- Server version 5.6.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT... |
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 03, 2016 at 01:03 PM
-- Server version: 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 */;... |
update fichas set nombre = 'Peon' where id_ficha = 6;
update fichas set nombre = 'peon' where id_ficha = 12;
alter table movimientos add movimiento number(3) not null; -- debe estar vacia la tabla
alter table movimientos modify notacion varchar2(12);
alter table coordenadas_tablero drop column fila;
alter table coorden... |
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not... |
CREATE OR REPLACE FUNCTION core.tf_i_src_ocean_trg_sale_i()
RETURNS INTEGER AS $$
/*
=============================================================================================================
DESCRIPTION: Insert data from stage 'ocean_*' tables into core input table sale_i
AUTHOR: ... |
CREATE TABLE [semanticinsight].[system_framework_attribute] (
[system_framework_attribute_id] INT IDENTITY (1, 1) NOT NULL,
[system_framework_id] INT NOT NULL,
[name] NVARCHAR (132) NOT NULL,
[data_type_id] INT NOT... |
BEGIN;
CREATE EXTENSION tinyint SCHEMA public;
CREATE EXTENSION sys_syn;
CREATE SCHEMA user_data
AUTHORIZATION postgres;
CREATE TABLE user_data.test_table (
test_table_id integer,
test_table_text text);
INSERT INTO sys_syn.in_groups_def VALUES ('in');
DO $$BEGIN
EXECUTE sys_syn.prepull_... |
-- PostGIS setup script for wfs 1.1 sf0 cite dataset
--
-- From OGC CITE: http://cite.opengeospatial.org/te2/wfs-1.1.0-r0/data/data-wfs-1.1.0.zip
-- With several modifications
--
-- NOTA: Datas are based on a PostGIS 2.0 dump.
--
SET client_encoding = 'UTF8';
delete from geometry_columns where f_table_name = 'Primiti... |
CREATE PROCEDURE [dbo].[dnn_AddPortalGroup]
@PortalGroupName nvarchar(100),
@PortalGroupDescription nvarchar(2000),
@MasterPortalID int,
@AuthenticationDomain nvarchar(200),
@CreatedByUserID int
AS
BEGIN
INSERT INTO dbo.dnn_PortalGroups
(
PortalGroupName ,
PortalGroupDescription ,
Ma... |
DELETE from iam_roles
WHERE
id = 'iam-members-viewer';
|
|Agencia catalogadora nacional
c|Catalogación colectiva
d|Otro
u|Desconocido
|
CREATE USER 'replication_user'@'%' IDENTIFIED WITH mysql_native_password BY 'WeiGhaif9ail6d';
GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replication_user'@'%'; |
CREATE TABLE `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL,
`credits` decimal(9,2) DEFAULT 10.00,
`last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=... |
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
INSERT INTO `list` (`id`, `value`) VALUES ('ALK', 'Albanian Lek (1946–1965)');
INSERT INTO `list` (`id`, `value`) VALUES ('ADP', 'Andorran Peseta');
INSERT INTO `... |
--
CREATE OR REPLACE FUNCTION pwaf.pub_http_request_param_get(in_request pwaf.http_request, in_param_name text)
RETURNS text AS
$BODY$
/**
* @package PWAF
* @author Karolis Strumskis (karolis@strumskis.com)
* @copyright (C) 2011-2019 postgresqlacademy.com and other contributors
* @license Licensed under the MIT L... |
-- MySQL dump 10.13 Distrib 5.6.27, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: mobisense_db
-- ------------------------------------------------------
-- Server version 5.6.27-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULT... |
SELECT session_id, login_time, host_name, program_name, reads, writes, cpu_time
FROM sys.dm_exec_sessions WHERE is_user_process = 1
GO
SELECT dr.session_id, dr.start_time, dr.status, dr.command
FROM sys.dm_exec_requests dr
JOIN sys.dm_exec_sessions de
ON dr.session_id = de.session_id
AND de.is_user_process = 1
... |
-- Prepared Statements
/*
First two tasks:
1. Create a prepared statement in a stored procedure which uses a parameter to the stored procedure
in the prepared statement.
- What happens if you don't "DEALLOCATE PREPARE" and then call the procedure multiple times.
- Try to create a prepared statement in one fu... |
CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES ('af', 'Afrikaans');
INSERT INTO "list" ("id", "value") VALUES ('af_NA', 'Afrikaans (Namibia)');
INSERT INTO "list" ("id", "value") VALUES ('af_ZA', 'Afrikaans (South Africa)');
INSERT IN... |
0|Not printed or displayed
1|Printed or displayed |
INSERT INTO eg_appconfig ( ID, KEY_NAME, DESCRIPTION, VERSION, MODULE ) VALUES
(nextval('SEQ_EG_APPCONFIG'), 'PDFHEIGHTSUBTRACTIONVALUE', 'value to be subtracted from pdf height',0, (select id from eg_module where name='BPA'));
INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION )
VALUES ... |
-- Table: public.test_table_$%{}[]()&*^!@""'`\/#
-- DROP TABLE public."test_table_$%{}[]()&*^!@""""'`\/#";
CREATE TABLE public."test_table_$%{}[]()&*^!@""""'`\/#"
(
m_col bigint
) PARTITION BY RANGE (m_col)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public."test_table_$%{}[]()&*^!@""""'`\/#"
... |
/*
determines the sizes of the databases on the server
*/
SELECT
pg_database.datname,
pg_size_pretty(pg_database_size(pg_database.datname)) AS size
FROM pg_database;
|
--[er]test casting timestamp to other type with float type
create class func_03(
varchartest varchar(20),
sinttest smallint,
inttest int,
numerictest numeric(38,10),
floattest float,
realtest real,
doublepretest double precision,
moneytest monetary,
c... |
-- Convert schema 'upgrades/Tapper-Schema-TestrunDB-2.010015-MySQL.sql' to 'Tapper::Schema::TestrunDB v2.010015':
-- No differences found
|
2 12
0 0 0 0 10 8
0 0 0 0 8 7
0 0 0 6 0 5
0 0 0 6 1 6
0 0 0 6 5 6
0 0 0 6 6 6
0 0 0 7 0 5
0 0 0 7 5 6
0 0 0 7 6 6
0 0 0 8 0 5
0 0 0 8 1 6
0 0 1 0 0 10
0 0 5 1 0 1
0 0 5 2 0 1
0 0 5 5 0 1
0 0 6 1 1 2
0 0 6 10 1 1
0 0 6 10 2 1
0 0 6 2 1 2
0 0 6 2 2 2
0 0 7 0 10 2
0 0 7 0 2 10
0 0 8 0 10 2
0 0 8 0 2 10
0 10 0 0 0 6
0 10 5... |
/*==============================================================*/
/* dbms name: mysql 5.0 */
/* created on: 2016-6-29 18:28:57 www.roncoo.com */
/*==============================================================*/
drop table if exists rp_account;
drop tab... |
-- Remove obsolete parts of the APM datamodel
--
-- @author Peter Marklund
-- *** Remove a column not needed
-- See http://openacs.org/bugtracker/openacs/bug?bug%5fnumber=555
alter table apm_packages drop column enabled_p;
-- *** Get rid of file-related data no longer used
drop table apm_package_file_types cascade co... |
INSERT INTO subscription_numberpatterns
(label, displayorder, description, numberingmethod,
label1, add1, every1, whenmorethan1, setto1, numbering1,
label2, add2, every2, whenmorethan2, setto2, numbering2,
label3, add3, every3, whenmorethan3, setto3, numbering3)
VALUES
('Number', 1, 'Simple Numberin... |
select COUNT(*) from data; |
INSERT INTO sandwiches (name, devoured)
VALUES
("Demon Burger", true),
("Bison Burger", true),
("Black Bean Burger", true); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.