text
stringlengths
1
1.05M
--create trigger and set trigger trace on to debug trigger create class cl1(x int); create trigger tr1 before insert on cl1 execute print 'Insert a new row to cl1)'; set trigger trace on; insert into cl1 values(1); insert into cl1 values(2); set trigger trace off; drop trigger tr1; drop class cl1;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2019 at 04:29 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.site_id AND q1...
CREATE TABLE heap_table_for_alter (phase text,a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111', col005 text DEFAULT 'pookie', col006 integer[] DEFAULT '{5, 4, 3, 2, 1}', col007 character varying(512) DEFAULT 'Now is the time', col008 character varying DEFAULT 'Now is...
CREATE TABLE product_type ( name VARCHAR(255) PRIMARY KEY NOT NULL ); CREATE TABLE product ( name VARCHAR(255) NOT NULL PRIMARY KEY, type VARCHAR(255) NOT NULL, brand VARCHAR(255) NOT NULL, description TEXT NOT NULL, FOREIGN KEY (type) REFERENCES product_type(name) ); CREATE TABLE price_type ...
SELECT pname,cname FROM names WHERE pname = 'foo' ORDER BY cname
-- select1.test -- -- execsql { -- SELECT a FROM t6 WHERE b IN -- (SELECT b FROM t6 WHERE a<='b' UNION SELECT '3' AS x -- ORDER BY x DESC LIMIT 2) -- ORDER BY a; -- } SELECT a FROM t6 WHERE b IN (SELECT b FROM t6 WHERE a<='b' UNION SELECT '3' AS x ORDER BY x DESC LIMIT 2) ORDER BY ...
select * from departmentemployee; select * from departmentmanager; select * from departments; select * from employees; select * from salaries; select * from titles; -- List the following details of each employee: employee number, last name, first name, sex, and salary. select e.emp_no, e.last_name, e.first_name, e.se...
DROP VIEW IF EXISTS view_daftar_penerimaan_bpbd; CREATE VIEW view_daftar_penerimaan_bpbd AS SELECT * FROM view_daftar_penerimaan_kabupaten WHERE 1 = 1 AND id_skpd = 39; GRANT ALL PRIVILEGES ON view_daftar_penerimaan_bpbd, sub_skpd TO lap_bpbd; REVOKE INSERT, UPDATE, DELETE ON view_daftar_penerimaan_bpbd, sub_skpd...
INSERT INTO TB_CLIENT ( CLIENT_ENTITY_ID, CLIENT_ID, CLIENT_SECRET, CLIENT_NAME, ACCESS_TOKEN_VALIDITY_SEC, REFRESH_TOKEN_VALIDITY_SEC, ID_TOKEN_VALIDITY_SEC, IS_DYNAMICALLY_REGISTERED, IS_ALLOWED_INTROSECPTION, APPLICATION_TYPE, CLIENT_URI, AUTHENTICATION_TYPE, DEFAULT_MAX_AGE, DEVICE_CODE_VALIDITY_SEC) V...
/* Julia just finished conducting a coding contest, and she needs your help assembling the leaderboard! Write a query to print the respective hacker_id and name of hackers who achieved full scores for more than one challenge. Order your output in descending order by the total number of challenges in which the hac...
-- @testpoint:opengauss关键字sqlexception(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists sqlexception; CREATE TABLESPACE sqlexception RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace sqlexception; --关键字带双引号,创建成功 drop tablespace if exists "sqlexception"; CREATE TABLESPACE "sqlexception" REL...
CREATE TABLE knownToKeggEntrez ( name varchar(255) NOT NULL default '', value varchar(255) NOT NULL default '', keggEntrez varchar(255) NOT NULL default '', KEY name (name), INDEX value (value) ) ENGINE=MyISAM;
CREATE TABLE inn_reach_transaction ( id UUID NOT NULL, tracking_id VARCHAR(32) NOT NULL, state SMALLINT NOT NULL, type SMALLINT NOT NULL, central_server_code VARCHAR(5) NOT NULL, transaction_hold_id UUID NOT NULL, created_by_userid UUID NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'...
#tags: kwf ALTER TABLE `kwf_users` ADD `activate_token` VARCHAR( 200 ) NULL;
CREATE TABLE IF NOT EXISTS `kwc_wirecard_log` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `data` text NOT NULL, `custom_order_id` varchar(200) NOT NULL, PRIMARY KEY (`id`), KEY `custom_order_id` (`custom_order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
DELETE from viewproperty where instance='lava' and scope='crms'; DELETE from hibernateproperty where instance='lava' and scope='crms'; INSERT INTO viewproperty (`messageCode`,`locale`,`instance`,`scope`,`prefix`,`entity`,`property`,`section`,`context`,`style`,`required`,`label`,`maxLength`,`size`,`indentLevel`,`attribu...
DROP DATABASE IF EXISTS helpfulsale; CREATE DATABASE helpfulsale; USE helpfulsale; CREATE TABLE leads ( Id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, userName VARCHAR(255) NOT NULL, userAddress VARCHAR(255) NOT NULL, userPhone VARCHAR(255) NOT NULL, userEmail VARCHAR (255) NOT NULL, userPref VAR...
ALTER TABLE [PCS].Scheme ADD AddressId UNIQUEIDENTIFIER NULL CONSTRAINT FK_Scheme_Address FOREIGN KEY REFERENCES [Organisation].[Address] GO UPDATE s SET s.AddressId = o.OrganisationAddressId FROM [PCS].Scheme s INNER JOIN [Organisation].Organisation o ON o.Id = s.OrganisationId GO ALTER TABLE [Organisation].[Orga...
TRUNCATE secondary_metabolism LOAD DATA LOCAL INFILE '/home/uchorostecki/users/tg/mmarcet/HGT3_proteomes/uciel/list_secondary_metabolism_clusters.txt' INTO TABLE secondary_metabolism FIELDS TERMINATED BY '\t' ENCLOSED BY '' LINES TERMINATED BY '\n' (cluster_code);
create table lesson_builder_comments ( id number(19,0) not null, itemId number(19,0) not null, pageId number(19,0) not null, timePosted timestamp not null, author varchar2(99 char) not null, commenttext clob, UUID varchar2(36 char) not null, html numb...
create database php39; use php39; set names utf8; drop table if exists p_goods; create table p_goods ( id mediumint unsigned not null auto_increment comment 'Id', goods_name varchar(150) not null comment '商品名称', market_price decimal(10,2) not null comment '市场价格', shop_price decimal(10,2) not null comment '本店价格', ...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: xserve Database: isad155_22201568 -- ------------------------------------------------------ -- Server version 5.6.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
-- @testpoint:opengauss关键字after(非保留),作为函数名 --关键字不带引号-成功 drop function if exists after; create function after(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function after; --关键字带双引号-成功 drop function if exists "after"; create function "after"(i integer) returns integer a...
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
CREATE PROC dbo.InstancesWithDDLSnapshot_Get( @TagIDs VARCHAR(MAX)=NULL ) AS SELECT I.Instance FROM dbo.InstancesMatchingTags(@TagIDs) I WHERE I.IsActive=1 AND EXISTS(SELECT 1 FROM dbo.Databases D JOIN dbo.DDLSnapshots SS ON SS.DatabaseID = D.DatabaseID WHERE D.InstanceID = I.InstanceID ) GROUP BY I.Inst...
-- Materialized View: public."V_Activty_Archive_Linestring" DROP VIEW public."V_Activity_Linestring"; CREATE VIEW public."V_Activity_Linestring" AS SELECT "Activity".act_id, "Activity".last_updated_datetime_utc, "Activity".act_type, "Activity"."act_startDate", "Activity".act_dist, "Activit...
CREATE TABLE day08 ( id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, line TEXT NOT NULL ); WITH input AS ( SELECT id, i[1] AS inputs, i[2] AS outputs FROM day08 CROSS JOIN regexp_split_to_array(line, ' \| ') AS t(i) ), counts AS ( SELECT id, j, count(*) AS count FRO...
ALTER TABLE simulation_runs DROP COLUMN location_id;
CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE "public"."ExecutedTransitions"("id" uuid NOT NULL DEFAULT gen_random_uuid(), "created_at" timestamptz NOT NULL DEFAULT now(), "updated_at" timestamptz NOT NULL DEFAULT now(), "time" timestamptz NOT NULL, "broadcastContentId" uuid NOT NULL, "fallbackBroadcastContentI...
CREATE OR REPLACE FUNCTION CDB_Gravity( IN target_query text, IN weight_column text, IN source_query text, IN pop_column text, IN target bigint, IN radius integer, IN minval numeric DEFAULT -10e307 ) RETURNS TABLE( the_geom geometry, source_id bigint, target_id bigint, di...
select * from offices where officeCode = "8"; INSERT INTO `offices` (`officeCode`,`city`,`phone`,`addressLine1`,`addressLine2`,`state`,`country`,`postalCode`,`territory`) VALUES ('8','Singapore','+65 6666 8888','abc road','Level 17',NULL,'SG','006688','APAC'); select * from offices where officeCode = "8";
CREATE OR REPLACE PACKAGE test_dd_util AUTHID CURRENT_USER IS /* * Copyright 2017 Philipp Salvisberg <philipp.salvisberg@trivadis.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
DROP VIEW IF EXISTS transaction_delta_view; CREATE VIEW transaction_delta_view AS SELECT "transaction_id", "award_id", "modification_number", "detached_award_proc_unique", "afa_generated_unique", "generated_unique_award_id", "piid", "fain", "uri", CASE WHEN "detached_award_proc_unique" IS NOT N...
-- -- Copyright (C) 2017 Dremio Corporation -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicab...
# create absence table for grade-keeping project DROP TABLE IF EXISTS absence; #@ _CREATE_TABLE_ CREATE TABLE absence ( student_id INT UNSIGNED NOT NULL, date DATE NOT NULL, PRIMARY KEY (student_id, date), FOREIGN KEY (student_id) REFERENCES student (student_id) ) ENGINE=InnoDB; #@ _CREATE_TABLE_
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 10 Des 2018 pada 03.38 -- Versi Server: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
-- MMO Games Database -- Elaheh Toulabi Nejad -- Queries : Functions and Views use master -- Run below command and execute creating each function or table separetely (one by one) USE MMOdb GO --------------------------------FUNCTIONS----------------------------------- -- a function which gets an alliance ID and...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 18, 2018 at 03:32 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
create table Recreation_2012 ( [HistoricalReservationID]varchar(50) NULL, [OrderNumber]varchar(50) NULL, [Agency]varchar(50) NULL, [OrgID]varchar(100) NULL, [CodeHierarchy]varchar(50) NULL, [RegionCode]varchar(50) NULL, [RegionDescription]varchar(50) NULL, [ParentLocationID]varchar(50) NULL, [ParentLocation]va...
CREATE TABLE IF NOT EXISTS "doc"."raw" ( "insert_ts" TIMESTAMP GENERATED ALWAYS AS current_timestamp(3), "g_ts_week" TIMESTAMP GENERATED ALWAYS AS date_trunc('week', current_timestamp(3)), "iothub_enqueuedtime" TIMESTAMP, "iothub_connection_device_id" string, "payload" OBJECT (IGNORED) ) CLUSTERED INTO 1...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 01, 2021 at 08:45 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
INSERT INTO COMMENT_LIKES(user_id,comment_id) VALUES(1 , 2); INSERT INTO COMMENT_LIKES(user_id,comment_id) VALUES(3 , 4); INSERT INTO COMMENT_LIKES(user_id,comment_id) VALUES(4 , 1); INSERT INTO COMMENT_LIKES(user_id,comment_id) VALUES(3 , 7); INSERT INTO COMMENT_LIKES(user_id,comment_id) VALUES(8 , 3); INSERT INTO COM...
ALTER TABLE project ADD COLUMN source VARCHAR(256); UPDATE project SET source = (select source from indexing where id = project.last_indexing_id) where last_indexing_id is not null; UPDATE project SET source = '_unknown_' WHERE source IS NULL;
/* Navicat Premium Data Transfer Source Server : docker Source Server Type : MySQL Source Server Version : 80017 Source Host : 127.0.0.1:3306 Source Schema : vue-element-admin Target Server Type : MySQL Target Server Version : 80017 File Encoding : 65001 Date: 07/11/...
CREATE TABLE scm_diagnostic_procedure( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n3.core.Container$AdditionalType * param: org.kyojo.schemaorg.m3n3.core.Clazz$URL */ additional_type VARCHAR(100) NULL, /** * type: org.kyojo.schemaorg.m3n3.core.Container$AlternateName * pa...
metadata :name => 'sshkey', :description => 'Security Plugin that uses ssh keys for signing', :author => 'Pieter Loubser <pieter.loubser@puppetlabs.com>', :license => 'ASL 2.0', :version => '0.5.0', :url => 'http://projects.puppetlabs.com/pr...
/* icu_ext.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION icu_ext" to load this file. \quit CREATE FUNCTION icu_version() RETURNS text AS 'MODULE_PATHNAME' LANGUAGE C; COMMENT ON FUNCTION icu_version() IS 'Version of the ICU library currently in use'; ...
DELETE FROM tbl_friendlist WHERE GDID = ?pgnode AND LID = ?plistid;
CREATE DEFINER=`admin`@`192.168.1.2` PROCEDURE `saveServantLink`(IN servant_ID SMALLINT, source_ID TINYINT, servantLink VARCHAR(100)) BEGIN DECLARE isLinkExist BOOLEAN; DECLARE servantLink_ID INT; DECLARE curr_link VARCHAR(100); SET isLinkExist = (SELECT IF((SELECT COUNT(*) FROM servant_link ...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 09, 2019 at 06:34 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
create schema if not exists metadata; create schema if not exists test_tenant_1; CREATE TABLE metadata.tenants ( id VARCHAR(255) NOT NULL, active BOOLEAN NOT NULL, createddate TIMESTAMP WITHOUT TIME ZONE NOT NULL, description VARCHAR(255), modifieddate TIMESTAMP WITHOUT TIME ZONE, CONSTRAINT "...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Jul 2021 pada 10.44 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
DROP TABLE `smartline`, `ss_user_admin`; ALTER TABLE `user` DROP `relay_enable`, DROP `relay_info`;
SELECT warehouse.state AS state, COUNT(DISTINCT order_id) AS num_orders FROM warehouse_orders.Orders orders JOIN warehouse_orders.Warehouse warehouse ON orders.warehouse_id = warehouse.warehouse_id GROUP BY warehouse.state
-- MySQL dump 10.16 Distrib 10.1.13-MariaDB, for Linux (x86_64) -- -- Host: Scotts-MacBook-Pro.local Database: wordpress-test -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=...
------------------------------------------------------------------- -- create_db_and_login.sql creates required databases and logins -- ------------------------------------------------------------------- CREATE DATABASE event_planner; CREATE DATABASE event_planner_integration; CREATE USER event_planner WITH PASSWORD ...
-- drop view vManagerData; create view vManagerData as select e.*, t.title, s.salary, d.dept_no, d.dept_name from employee e inner join title t on e.emp_title_id = t.title_id inner join salary s on e.emp_no = s.emp_no inner join department_manager dm on e.emp_no = dm.emp_no inner join department d on dm.dept_no = d.de...
create or replace view "AIRBYTE_DATABASE"._AIRBYTE_TEST_NORMALIZATION."EXCHANGE_RATE_AB1" 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 to_varchar(get_path(parse_json(_airbyte_data), '"id"')) as ID, to_var...
-- 2017-10-26T09:00:43.971 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsUpdateable='N',Updated=TO_TIMESTAMP('2017-10-26 09:00:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=540003 ; -- 2017-10-26T09:04:05.461 -- I forgot to set the DICTIONARY_ID_COMMENTS Syste...
create extension postgis; -------------------------------------------------------------------------------- -- These are built at geojson.io... -------------------------------------------------------------------------------- -- Version #1 -- drop table jefferson_park; select 'Jefferson Park' as name, st_geomfromgeoj...
requirevars 'defaultDB' 'model' 'x' 'y' 'iterationNumber' ; attach database '%{defaultDB}' as defaultDB; -- var 'model' ''; -- var 'iterationNumber' 0; -- var 'model' from select tabletojson(colname,val,classval,average,sigma,probability, "colname,val,classval,average,sigma,probability",0) as model from defaultdb.g...
-- 22.02.2017 15:35 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2017-02-22 15:35:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549283 ;
-- phpMyAdmin SQL Dump -- version 4.3.7 -- http://www.phpmyadmin.net -- -- Host: 10.123.0.91:3306 -- Generation Time: Aug 24, 2015 at 01:40 PM -- Server version: 5.5.38 -- PHP Version: 5.4.41-0+deb7u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
CREATE TABLE `alt_id` ( `alt_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `term_id` int(10) unsigned NOT NULL, `accession` varchar(64) NOT NULL, PRIMARY KEY (`alt_id`), UNIQUE KEY `term_alt_idx` (`term_id`,`alt_id`), KEY `accession_idx` (`accession`(50)) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=lat...
delimiter $$ create procedure test_proc(in p1 varchar(10), out p2 varchar(10)) begin set p2=concat('hello',p1); end$$ delimiter ;
SELECT 'n fj n', t1.x, t2.x FROM full_join_table AS t1 FULL JOIN full_join_table AS t2 ON t1.x = t2.x ORDER BY t1.x; SELECT 'n fj n', t1.x, t2.x FROM full_join_table AS t1 FULL JOIN full_join_table AS t2 ON t1.x <=> t2.x ORDER BY t1.x;
/* Navicat Premium Data Transfer Source Server : Brew_Mysql Source Server Type : MySQL Source Server Version : 50737 Source Host : localhost:3306 Source Schema : vuePoem Target Server Type : MySQL Target Server Version : 50737 File Encoding : 65001 Date: 09/05/2022 1...
SELECT full_name FROM "Users" WHERE full_name = UPPER(full_name) -- O Where vai validar se a string da coluna full_name tem strings com as letras maiusculas
--SELECT statements -- --This query lists all the information in all the fields in the patients relation SELECT * FROM patients; -- --This query outputs the first name, surname and date of birth of all patients with the surname Murphy SELECT firstName, surname, dob FROM patients WHERE surname = 'MURPHY'; -- --This quer...
ALTER TABLE categories DROP COLUMN "description", ADD COLUMN "category_description" VARCHAR;
-- ----------------------------------------------------- -- Add sample data to index_builder relation -- Author: Hoanh An (hoanhan@bennington.edu) -- Date: 12/2/17 -- ----------------------------------------------------- INSERT INTO "index_builder" VALUES (DEFAULT, '1c', '2.0.0.1', 'built'); INSERT INTO "index_builder...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 26, 2014 at 01:04 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
/****** Object: Table [dbo].[T_Collection_Organism_Xref] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Collection_Organism_Xref]( [ID] [int] IDENTITY(1,1) NOT NULL, [Protein_Collection_ID] [int] NOT NULL, [Organism_ID] [int] NOT NULL, CONSTRAINT [PK_T_Collection_Organism_X...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 26, 2019 at 04:59 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"; /*!40101 SET @OL...
select * from cidades; select * from proprietarios; select * from marcas; select nome from cidades; select nome, endereco from proprietarios; select idmarca, nome from marcas; select nome, idcidade from cidades; select * from cidades; select nome, idcidade from cidades where idcidade=1; select nome, idcidade from cidad...
CREATE TABLE subdivision_NL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_NL" ("id", "name", "level") VALUES (E'NL-AW', E'Aruba', E'country'); INSERT INTO "subdivision_NL" ("id", "name", "level") VALUES (E'NL-BQ1', E'Bonaire', E'special municipality'...
SELECT name FROM teacher WHERE dept IS NULL; SELECT teacher.name, dept.name FROM teacher INNER JOIN dept ON (teacher.dept=dept.id); SELECT teacher.name, dept.name FROM teacher LEFT JOIN dept ON (teacher.dept=dept.id); SELECT teacher.name, dept.name FROM teacher RIGHT JOIN dept ON (teacher.dept=dept.id); SELECT name...
ALTER TABLE `catering`.`menu` CHANGE COLUMN `menu` `name` VARCHAR(45) NULL DEFAULT NULL , RENAME TO `catering`.`dishes` ; ALTER TABLE `catering`.`menu` CHANGE COLUMN `idpackage_list` `description` VARCHAR(45) NULL DEFAULT NULL ; ALTER TABLE `catering`.`menu` ADD COLUMN `price` VARCHAR(45) NULL AFTER `descriptio...
DROP TYPE cert CASCADE; DROP TYPE cert_req CASCADE; DROP TYPE dsa_params CASCADE;
alter table "source_collector"."SourceNotes" drop constraint "SourceNotes_NotesId_fkey";
DELETE FROM CUSTOMER WHERE CUSTOMER_ID IN (2,5) DELETE FROM CUSTOMER WHERE CUSTOMER_ID = 5 commit
alter session set "_ORACLE_SCRIPT"=true; CREATE USER muser IDENTIFIED BY "micronaut"; GRANT CONNECT, RESOURCE TO muser; GRANT UNLIMITED TABLESPACE TO muser;
ALTER TABLE ${ohdsiSchema}.sec_permission ADD for_role_id INTEGER; GO INSERT INTO ${ohdsiSchema}.sec_permission (id, value, for_role_id) SELECT NEXT VALUE FOR ${ohdsiSchema}.sec_permission_id_seq, REPLACE(CAST(new_perms.val AS VARCHAR(255)), '%s', REPLACE(REPLACE(value, 'source:', ''), ':access', '')), role_id FROM ...
-- Create the ranking table in the first place CREATE TABLE IF NOT EXISTS ranking ( id VARCHAR(40) PRIMARY KEY, response_id VARCHAR(40) NOT NULL CONSTRAINT ranking_response_id_fkey REFERENCES survey_response, detailed BOOLEAN NOT NULL ); -- Alter survey response to reference two rankings. ALTER TABLE survey_resp...
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(45) NULL, department_name VARCHAR(45) NULL, price DECIMAL(10,2) NULL, stock_quantity INT(11) NOT NULL, PRIMARY KEY(item_id) ); INSERT INTO p...
SELECT CONCAT(emp_no, ' is a ', title) AS "Employee Title" FROM "titles" LIMIT 100; SELECT emp_no, CONCAT(first_name, ' ', last_name) AS "Full name" FROM "employees" LIMIT 100;
set foreign_key_checks=0; drop table if exists User; drop table if exists Playlist; drop table if exists Track; drop table if exists Album; drop table if exists Artist; drop table if exists Genre; drop table if exists PlaylistItem; drop table if exists AlbumItem; drop table if exists ArtistAlias; drop table if exists...
# hubSearchText.sql was originally generated by the autoSql program, which also # generated hubSearchText.c and hubSearchText.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Track hub descriptions CREATE TABLE hubSearchText ( hubUrl...
-- MySQL dump 10.13 Distrib 8.0.25, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: aspire -- ------------------------------------------------------ -- Server version 8.0.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 08, 2018 at 02:33 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- MySQL Script generated by MySQL Workbench -- Sat Mar 27 14:06:23 2021 -- 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='ON...
select misth_zpyvar.kodyvar, misth_zpyvar.kodxrisi, misth_zpyvar.descyvar from misth_zpyvar WHERE misth_zpyvar.kodxrisi = :arg_kodxrisi order by misth_zpyvar.descyvar ASC
ALTER TABLE "identities" DROP COLUMN "state_changed_at";
-- This file is automatically generated by LogicalPlanToSQLSuite. select b.key, min(b.value) from src b group by b.key having b.key in (select a.key from src a where a.value > 'val_9' and a.value = min(b.value)) order by b.key -----------------------------------------------------------...
-- 2019-05-31T14:33:25.901 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2019-05-31 14:33:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=555046 ; -- 2019-05-31T14:33:37.381 -- I forgot to set the DICTIONARY_ID_COMMENTS System ...
CREATE TABLE `contacts` ( `id` PRIMARY KEY bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `mobile` varchar(255) COL...
---------------------------------------------------------------------------------- -- View Name: [dbo].[vServerTopQueriesStore] -- -- Desc: This view is built on top of [ServerTopQueriesStore] to extract the details of the top queries identified by the execution of [dbo].[ServerTopQueries] -- -- [ReportID] BIGINT ...
CREATE OR REPLACE VIEW vw_psa_uat_sb1_ods_plansponsor AS WITH -- 04-Jan-2020,UAT-Test View A.Kapoor: created new_results AS ( SELECT --+ materialize ps.PSUID, PSUName, ClientSystemName FROM vw_psa_plan_sponsor_list ppsl JOIN ods.plansponsor ps ON ps.psuid =...
------------------------------------------------------------------------------- -- cms comment ------------------------------------------------------------------------------- CREATE TABLE CMS_COMMENT( ID BIGINT AUTO_INCREMENT, TITLE VARCHAR(200), CONTENT VARCHAR(200), STATUS INT, CREATE_TIME TI...