sql
stringlengths
6
1.05M
-- MySQL dump 10.13 Distrib 5.5.41, for debian-linux-gnu (i686) -- -- Host: localhost Database: bc5 -- ------------------------------------------------------ -- Server version 5.5.41-0+wheezy1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
USE devops_ci_process; SET NAMES utf8mb4; -- Stage预置标签 REPLACE INTO `T_PIPELINE_STAGE_TAG` (`ID`, `STAGE_TAG_NAME`, `WEIGHT`, `CREATOR`, `MODIFIER`, `CREATE_TIME`, `UPDATE_TIME`) VALUES ('28ee946a59f64949a74f3dee40a1bda4','Build',99,'system','system','2020-03-03 18:07:12','2020-03-19 16:29:38'), ('53b4d3f38e3e425cb1...
<filename>src/main/resources/db/migration/V20220421074932__Updates.sql<gh_stars>0 ALTER TABLE delivery_task ADD order_in_plan INTEGER; ALTER TABLE parcel_machine_locker ADD reserved BOOLEAN; ALTER TABLE delivery_task DROP COLUMN delivery_method; UPDATE parcel_machine_locker SET reserved = FALSE; INSERT INTO...
<gh_stars>0 -- Your SQL goes here create table posts ( id serial primary key, title varchar(255) not null, content text, created_at timestamp with time zone not null default current_timestamp, updated_at timestamp with time zone not null default current_timestamp ); alte...
CREATE VIEW vw_by_category as SELECT types.id, types.name, sum(product_visit.amount) as y FROM visits, product_visit, types, types WHERE visits.id = product_visit.visit_id AND profiles.id = visits.profile_id AND types.id = profiles.type_id GROUP BY type...
INSERT OVERWRITE TABLE `{{database}}`.logs PARTITION (dt = date '{{ds}}', address_hash, selector_hash) SELECT /*+ REPARTITION(1) */ log_index, transaction_hash, transaction_index, address, data, topics, block_timestamp, block_number, block_hash, topics_arr, unhex_data, ...
CREATE TABLE IF NOT EXISTS customers ( id_ IDENTITY, name_ varchar(250) NOT NULL, rebate_agreement_id bigint , status int DEFAULT 1, ins_time timestamp DEFAULT current_timestamp(), upd_time timestamp, PRIMARY KEY (id_) ); ALTER TABLE customers ADD CONSTRAINT uq_customers_name UNIQUE(name_); ALTER TABLE c...
SHOW DATABASES; CREATE DATABASE webrentalmobil; USE webrentalmobil; DROP DATABASE webrentalmobil; SHOW TABLES; DESC tbl_admin; DESC tbl_customer; DESC tbl_mobil; DESC tbl_transaksi; DESC tbl_rental; DESC tbl_type; -- Please Run This SQL!!! -- Create Type Car INSERT INTO tbl_type( kode_type, nama_type) ...
declare message varchar2(20):='hello,Wrold!'; begin dbms_output.put_line(message); end;
-- Based on insertScript.docx by paulhawit -- Requires clean tables, will surely fail otherwise USE jetson; -- Plain Text Password for Tesing: <PASSWORD> INSERT INTO user (id, username, password, salt, is_administrator) VALUES (1, 'laganier', '<PASSWORD>', '<PASSWORD>', 1); -- Plain Text API Key for Testing: <KEY> ...
<reponame>georgetown-analytics/DC-Bikeshare<gh_stars>10-100 SELECT DISTINCT trips.start_date::timestamp::date as trip_date, COUNT(*)/COUNT(DISTINCT bike_number)::float as cabi_system_util_rate FROM cabi_trips AS trips GROUP BY trips.start_date::timestamp::date;
<filename>data/add_media_views.sql CREATE TABLE IF NOT EXISTS `media_views` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `media_id` int(10) unsigned NOT NULL, `datecreated` timestamp NOT NULL, `ip_address` varchar(32) NULL, PRIMARY KEY (`id`), INDEX `media_views_media_id` (`media_id`), INDEX `media_vi...
<gh_stars>1-10 -- \c recupauto -- Suppression de la base existante DROP TABLE IF EXISTS Client CASCADE; DROP TABLE IF EXISTS Commande CASCADE; DROP TABLE IF EXISTS Pieces CASCADE; DROP TABLE IF EXISTS Categorie CASCADE; DROP TABLE IF EXISTS Voiture CASCADE; DROP TABLE IF EXISTS Station CASCADE; DROP TABLE IF EXISTS M...
<reponame>LongsightGroup/evaluation -- -- Copyright 2003 Sakai Foundation Licensed under the -- Educational Community 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.osedu.org/licenses/ECL-2.0 -- -- Unl...
<reponame>Ambal/mangos<gh_stars>1-10 ALTER TABLE `character` ADD `gmstate` tinyint(3) unsigned NOT NULL default '0';
CREATE TABLE T_CM_APPLICATION_PARAMETERS ( NAME VARCHAR(100) NOT NULL, VALUE VARCHAR(100) ); COMMENT ON TABLE T_CM_APPLICATION_PARAMETERS IS 'This table contains application parameters.'; COMMENT ON COLUMN T_CM_APPLICATION_PARAMETERS.NAME IS 'Parameter name'; COMMENT ON COLUMN T_C...
select * from files;
CREATE TABLE `d_studys` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) CHARACTER SET utf8 DEFAULT NULL, `status` varchar(50) DEFAULT NULL, `projectId` varchar(36) NOT NULL, `notes` text, `created_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `upda...
<reponame>kinglong198404/klblog /* Navicat MySQL Data Transfer Source Server : 172.16.17.32 Source Server Version : 50726 Source Host : 172.16.17.32:3306 Source Database : klblog Target Server Type : MYSQL Target Server Version : 50726 File Encoding : 65001 Date: 2019-09-02 23:11:4...
CREATE TABLE T_JING_DONG_PRODUCT ( SKU BIGINT NOT NULL, NAME VARCHAR(255), CAT_ID VARCHAR(255), CAT_NAME VARCHAR(255), DESCRIPTION VARCHAR(255), SELLER VARCHAR(255), SHOP_ID VARCHAR(255), SHOP_NAME VARCHAR(255), VENDER_ID VARCHAR(255), LAST_UPD...
<reponame>arjones/spark-vagrant CREATE KEYSPACE analytics WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}; USE analytics; CREATE TABLE bytes_transferred ( client_id text, event_timestamp text, frequency bigint, PRIMARY KEY (client_id, event_timestamp) ); CREATE TABLE page_v...
CREATE TABLE IF NOT EXISTS store_profiles ( sha256 text NOT NULL UNIQUE, CHECK (sha256 <> ''), tar BYTEA NOT NULL, info JSONB NOT NULL, metadata JSONB NOT NULL, primary key(sha256) ); CREATE INDEX idxprofilename ON store_profiles ((metadata->>'name')); CREATE INDEX idxprofilevers...
-- liquibase formatted sql logicalFilePath:gaf-data-mgt/update0_20210722 -- changeset SYS:20210722-2 UPDATE "sys_resource_datasource" SET type_code = 'HBase' WHERE type_code = 'Hbase'; UPDATE "sys_resource_datasource" SET type_code = 'SQLPlus' WHERE type_code = 'SQL_SERVER';
<filename>contrib/test_decoding/sql/decoding_into_rel.sql<gh_stars>1-10 -- test that we can insert the result of a get_changes call into a -- logged relation. That's really not a good idea in practical terms, -- but provides a nice test. -- predictability SET synchronous_commit = on; SELECT 'init' FROM pg_create_logi...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2019 at 09:03 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
-- enable the UUID extension CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- the main database schema CREATE SCHEMA IF NOT EXISTS sb; -- needed tables for creating apps CREATE TABLE IF NOT EXISTS sb.customers ( id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (), email text UNIQUE NOT NULL, stripe_id text NOT NULL, su...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 31, 2018 at 08:38 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...
--load PRAGMA foreign_keys = ON; create table movies ( id integer not null primary key, title TEXT, url TEXT, imdb_code TEXT, title_long TEXT, slug TEXT, year INTEGER, rating FLOAT, runtime INTEGER, summary TEXT, yt_trailer_code TEXT, language TEXT, mpa_rating TEXT, ...
<filename>Misc/BD sql script/a.sql<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: stockpiledryslept -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
<filename>queries/stackoverflow/q12/3f9c5989148a233d6d7cf79a610993c535dc3505.sql<gh_stars>0 SELECT t1.name, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1 WHERE q1.owner_user_id = u1.id AND a1.question_id = q1.id AND a1.owner_user_id = u1.id AND s.site_id = q1.site_...
create database myapp; use myapp; create table user( id int not null auto_increment primary key, fullname varchar(500) not null, username varchar(100) not null unique, email varchar(255) not null unique, password varchar(255) not null, created_at datetime not null );
ALTER TABLE records ADD COLUMN "note" TEXT DEFAULT '';
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 25 Apr 2020 pada 16.17 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>adjspecies/furrypoll-munger<filename>bin/other/e621.sql<gh_stars>1-10 drop table if exists submissions; drop table if exists tags; drop table if exists tagged_submissions; drop table if exists sources; drop table if exists submission_sources; drop table if exists artists; drop table if exists submission_artis...
<filename>source/DatabaseProjects/trainingDW/trainingDW/Security/Schemas/fact.sql<gh_stars>10-100 CREATE SCHEMA [fact] AUTHORIZATION [dbo]
--Create a trigger that list the table after adding a record. Create Trigger trg_listEmployeeRecords On Employees After Insert As Begin Select * From Employees End --test query insert into Employees(LastName,FirstName,Title,TitleOfCourtesy,City,Country) values('Doe','Jane','It Manager','Mrs.','Texas',...
<reponame>MySolSo/nftglee<gh_stars>10-100 ALTER TABLE "public"."artworks" ADD COLUMN "is_physical" boolean NOT NULL DEFAULT false;
-- Script SELECT na tb_product com preços maior que R$100,00 SELECT * FROM tb_product WHERE `price` > 100.00;
CREATE PROCEDURE [dbo].[spSystemUser_Get] AS begin select [Id], [FirstName], [LastName] from dbo.SystemUser; end
create table "User" ( id serial, name VARCHAR not null, username VARCHAR not null, status VARCHAR, token VARCHAR ); create unique index user_id_uindex on "User" (id); create unique index user_username_uindex on "User" (username); alter table "User" add constraint user_pk primary key (id);
UPDATE Instrument SET Mouthpiece = 'Plastic' WHERE ID = 18;
use irl_tests; select * from a order by a.id;
alter table DDCIL_LAUNCHER_CMD add column SHORTCUT varchar(255) ;
CREATE TABLE wicked.audit_log ( id character varying(128) NOT NULL UNIQUE, created_at timestamptz NOT NULL DEFAULT NOW(), data jsonb );
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- CK_SYNC1 TABLE ck_sync1_drop_column_ao_default1 -- CREATE TABLE ck_sync1_drop_column_ao_default1 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie',...
<reponame>ifvodeky24/O-Badminton-Web<filename>badminton.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 25, 2020 at 09:09 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSAC...
-- city tablosu ile country tablosunda bulunan şehir (city) ve ülke (country) isimlerini birlikte görebileceğimiz INNER JOIN sorgusunu yazınız. SELECT city.city, country.country FROM city INNER JOIN country ON city.country_id = country.country_id; -- customer tablosu ile payment tablosunda bulunan payment_id ile custo...
CREATE TABLE Bots( id bigint NOT NULL PRIMARY KEY, bot NVARCHAR(255) ); GO INSERT INTO Bots (id, bot) VALUES (1, "Production"); INSERT INTO Bots (id, bot) VALUES (2, "Test"); INSERT INTO Bots (id, bot) VALUES (3, "Local Test"); CREATE TABLE Users( id bigint NOT NULL PRIMARY KEY, firstName NVARCHAR(255), lastName...
-- Update tables so as to have reasonable outputs. UPDATE movie SET incolor = 'N' WHERE title ILIKE '%back%'; INSERT INTO studio VALUES ('Alexandra Studios', '<NAME> 5'); INSERT INTO movie VALUES ('TestTitle', 1988, 200, 'Y', 'Fox', 199); -- task 1: should only be 'Fox' SELECT s.name, s.a...
CREATE TABLE `sys_tenants` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(80) DEFAULT NULL, `schema` varchar(12) DEFAULT NULL, `active` tinyint(1) DEFAULT NULL, `deployed` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;...
CREATE TABLE Circuito_tabla OF Circuito ( id PRIMARY KEY, nombre NOT NULL, localizacion NOT NULL, numerocurvas NOT NULL, kilometros NOT NULL, numvueltas NOT NULL ); CREATE TABLE Escuderia_tabla OF Escuderia( nombre PRIMARY KEY, presupuesto NOT NULL, pais NOT NULL ); CREATE TABLE Patrocinador_tabla OF Patrocinador(...
<gh_stars>0 /* * 引数の日付が平日(月~金)であるかを判定する。 * dt: 判定する日付。 * RETURN: 平日であれば0、土日であれば1を返す。 */ CREATE OR REPLACE FUNCTION is_weekday(dt IN DATE) RETURN NUMBER -- 宣言部 IS day_of_week NUMBER(1); result NUMBER(1); -- 処理部 BEGIN SELECT TO_CHAR(dt,'D') INTO day_of_week FROM DUAL; -- 曜日を表す値に応じて、平日であるかを判定する。 -- http...
<reponame>Dvex/rustapp -- Your SQL goes here ALTER TABLE currency RENAME COLUMN currency TO iso_name;
<filename>src/sql/migrations/0000.sql CREATE TABLE personal_keys ( id integer primary key, active integer not null, public_key_id text not null UNIQUE, public_key_value text not null UNIQUE, private_key_location text UNIQUE, key_type_identifier text not null, date_added text not null ); CREATE TABLE wapm...
<gh_stars>1-10 SET DEFINE OFF; create or replace package afw_12_sesn_pkg is function obten_sesn return number; procedure creat_sesn (pva_code_utils in varchar2 ,pnu_numr_apex_aplic in number ,pnu_numr_apex_page in number); procedure suprm_sesn (pnu_n...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 08, 2018 at 03:38 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<reponame>lotfio/economat -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.3.13-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 9.5.0.5196 -- -----------------...
delete from :table: where server_id = :server_id: and group_id = :group_id:
-- 2018-04-19T16:16:57.007 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET MandatoryLogic='@IsExcludedFromSale@ = ''Y''',Updated=TO_TIMESTAMP('2018-04-19 16:16:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=559662 ; -- 2018-04-19T16:21:28.431 -- I forgot to set t...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 27, 2021 lúc 06:22 AM -- Phiên bản máy phục vụ: 10.1.37-MariaDB -- Phiên bản PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
<gh_stars>0 DROP TABLE IF EXISTS TBL_ADDRESSBOOK; CREATE TABLE IF NOT EXISTS TBL_ADDRESSBOOK ( id INT AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(250) NOT NULL, lastname VARCHAR(250) NOT NULL, street VARCHAR(250) DEFAULT NULL, zipcode VARCHAR(250) DEFAULT NULL, city VARCHAR(...
<gh_stars>0 -- Include table data insertion, updation, deletion and select scripts show tables; -- SQL query to insert into menu items. insert into menu_item(me_name,me_price,me_active,me_date_of_launch,me_category,me_free_delivery,me_image) values("Burger", 129.00, true, '2017-12-23', "Main Course", false,'htt...
<reponame>jackkiexu/dubbo-comment getAdaptiveExtension() 获取一个扩展类, 如果 @Adaptive 注解在类上, 就是一个装饰类, 如果注解在方法上就是一个动态代理类, 例如 Protocol$Adaptive 对象 getExtension(String name) 获取一个指定对象 adaptive 注解在类与方法上的区别 1. 注解在类上代表人工编码, 即实现了一个装饰类 (例如 ExtensionFactory) 2. 注解在方法上: 代表自动生成和编译一个动态的 adaptive类 (例如 Protocol$Adaptive) --> getAdaptiveEx...
create table SALES_ORDER_LINE ( ID uuid, VERSION integer not null, CREATE_TS timestamp, CREATED_BY varchar(50), UPDATE_TS timestamp, UPDATED_BY varchar(50), DELETE_TS timestamp, DELETED_BY varchar(50), -- PRODUCT_ID uuid not null, QUANTITY decimal(19, 3) not null, ORDER_I...
<filename>stegany.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 07, 2014 at 08:21 AM -- 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...
<reponame>RyCarlos/caadmin /* Navicat MySQL Data Transfer Source Server : root连接 Source Server Version : 50529 Source Host : localhost:3306 Source Database : mybackend Target Server Type : MYSQL Target Server Version : 50529 File Encoding : 65001 Date: 2020-12-02 11:30:55 */ SET F...
BEGIN TRANSACTION CREATE TABLE dbo.Tmp_prims ( UUID varchar(36) NOT NULL, RegionUUID varchar(36) NULL, ParentID int NULL, CreationDate int NULL, Name varchar(255) NULL, SceneGroupID varchar(36) NULL, Text varchar(255) NULL, Description varchar(255) NULL, SitName varchar(255) NULL, TouchName varchar(255) NUL...
<gh_stars>0 -- @testpoint:opengauss关键字plans(非保留),作为角色名 --关键字不带引号-成功 drop role if exists plans; create role plans with password '<PASSWORD>' valid until '2020-12-31'; drop role plans; --关键字带双引号-成功 drop role if exists "plans"; create role "plans" with password '<PASSWORD>' valid until '2020-12-31'; drop role "plans";...
<reponame>PierreZhang/SportsMeeting ############################### ############################### # MySQL Scripts - sportsmeeting ############################### ############################### DROP SCHEMA IF EXISTS `sportsmeeting`; CREATE SCHEMA `sportsmeeting` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; #...
/* Author: <NAME> Write a query calculating the amount of error and round it up to the next integer. Employees: ID, Name, SALARY */ SELECT CEIL(AVG(SALARY) - AVG(REPLACE(SALARY, "0",""))) FROM EMPLOYEES /* 2253 */
<reponame>HUGOHAMERGARCIAROSAS/ggbeltran<gh_stars>0 DROP DATABASE if exists grupobeltran ; create DATABASE grupobeltran; use grupobeltran; -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-07-2021 a las 07:11:49 -- Versión del servidor: 10.4.14-...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2019 at 07:21 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
USE ScaCompanyDB select SC03001 --stock code , SC01002 --DESCRIPTION , SC03002 --warehouse , SC03003 --stock balance FROM SC030100 INNER JOIN SC010100 ON SC01001=SC03001 WHERE SC03002 = '70'
-- phpMyAdmin SQL Dump -- version 4.4.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 25, 2017 at 11:59 -- Server version: 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 */; /*!...
/*---------------------------------------------------------------------------------------- -- FILE NAME : ex_crypto_aes.sql -- Generated By : Ex!lant Technologies Pvt Ltd. -- Description : Package for ex_crypto_aes Oracle based DBMS_CRYPTO encryption and -- decryption utilities -- Da...
<reponame>foundersandcoders/berkeley-homes<filename>src/server/model/queries/submit_report.sql INSERT INTO submissions ( submitter_name, location_first, location_second, location_third, description, report_type, photo_url, site ) VALUES ( $1::text, $2::text, $3::text, $4::text, $5::text, $6:...
<filename>egov/egov-works/src/main/resources/db/migration/main/V20160509204610__works_workorder_alter_table.sql ------------------START------------------ ALTER TABLE EGW_WORKORDER ADD COLUMN CANCELLATIONREASON varchar(50); ALTER TABLE EGW_WORKORDER ADD COLUMN CANCELLATIONREMARKS varchar(256); -------------------END----...
-- create table statements as a .sql file for making ERD from DDL statements CREATE TABLE IF NOT EXISTS staging_events (artist VARCHAR, auth VARCHAR, firstName VARCHAR, gender VARCHAR, itemInSession INT, lastName VARCHAR, length NUMERIC, level VARCHAR, location VARCHAR, method VARCHAR, page VARCHAR, registration NUMER...
<gh_stars>1-10 DROP TABLE item_value;
<reponame>denza/frapid<filename>src/Frapid.Web/db/SQL Server/meta/1.x/1.0/src/06.functions-and-logic/get_resource.sql IF OBJECT_ID('i18n.get_resource') IS NOT NULL DROP FUNCTION i18n.get_resource; GO CREATE FUNCTION i18n.get_resource ( @culture_code national character varying(4000), @resource_class national charac...
<filename>data/train/sql/1fd4a800f70a33c86d6d6048755c7d3ddb0c7d11delivery_items_view_up.postgresql.sql CREATE VIEW delivery_items_basic_view AS SELECT ordered_items.item_id, SUM(ordered_items.amount) as amount, orders.delivery_man_id as delivery_man_id, orders.deliver_at::date as scheduled_for FROM ordered_it...
<reponame>oguzhanKomcu/Sql_Codes_And_Examples  use tire_and_rim_shop1 ---Select : It is the command that sees the operations of pulling and selecting data from the table in the database. select*from Tires --Select bringing a column from the desired table with the select command. select TiresId, Diameter, ...
<filename>src/test/resources/sql/select/9535507a.sql -- file:inet.sql ln:114 expect:true SELECT i FROM inet_tbl WHERE i << '192.168.1.0/24'::cidr ORDER BY i
-- Remove NOT NULL constrain from atlas object foreign key and taxonomy order columns to obey JPA mappings constraints. ALTER TABLE `atlas`.`taxon` DROP FOREIGN KEY `fk_fact_object11`; ALTER TABLE `atlas`.`taxon` CHANGE COLUMN `atlasobject_id` `atlasobject_id` INT(11) NULL DEFAULT NULL , CHANGE COLUMN `taxonomy_ord...
<filename>is-lnu-sql/src/main/resources/dump/0.9.1/05_q_od_specoffersubject.sql INSERT INTO q_od_specoffersubject(specoffer_id, enrolsubject_id, ismajor, alternative, mark, weightsubject, uid, utid, uapp, status, actual, note, crtuser, crtusergroup, update_date, create_date, istrainingcourses) V...
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. COL sysm_group_name HEAD METRICGROUP FOR A30 prompt Display SYSTEM metrics from V$METRIC select (sysdate-end_time)*86400 seconds_ago -- , end...
update ${sql.tableName} set value = value*2; select count(*) from ${sql.tableName};
<reponame>kkrakovych/database-maven-plugin prompt Execute REUSABLE scripts with AFTER condition. prompt Execute /database_directory/schema_directory_second/script_directory_second/dummy_s2_reusable_after_a.sql @./database_directory/schema_directory_second/script_directory_second/dummy_s2_reusable_after_a.sql prompt Exe...
<reponame>fkleedorfer/webofneeds BEGIN; -- new indices on message_event CREATE INDEX IDX_ME_PARENT_URI_MESSAGE_TYPE on message_event (parentURI, messageType); CREATE INDEX IDX_ME_PARENT_URI_REFERENCED_BY_OTHER_MESSAGE on message_event(parentURI, referencedByOtherMessage); CREATE INDEX IDX_ME_PARENT_URI on message_event...
drop sequence UM_TENANT_SEQUENCE / drop sequence UM_DOMAIN_SEQUENCE / drop sequence UM_USER_SEQUENCE / drop sequence UM_SYSTEM_USER_SEQUENCE / drop sequence UM_USER_ATTRIBUTE_SEQUENCE / drop sequence UM_ROLE_SEQUENCE / drop sequence UM_MODULE_SEQUENCE / drop sequence UM_PERMISSION_SEQUENCE / drop sequence UM_RO...
<gh_stars>1000+ -- Copyright 2020 the Exposure Notification Server authors -- -- 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 -- -- Unle...
<gh_stars>0 IF OBJECT_ID ( 'qry_emp1', 'P' ) IS NOT NULL DROP PROCEDURE qry_emp; GO CREATE PROCEDURE qry_emp1 ( @empno decimal(4) ) AS BEGIN SELECT ename, salary FROM employee WHERE empno = @empno END GO
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2022 at 10:49 AM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>database/script.sql create database ecommerce; use ecommerce; create table marcas ( id int unsigned not null primary key auto_increment, nombre varchar(255) not null ); create table categorias ( id int unsigned not null primary key auto_increment, nombre varchar(255) not null ); create tabl...
<filename>Analysis_OLIST_online_retail_Brazil_Big_data_technologies/script/product_category.sql create Database Olist; use Olist; -- Create table Product_category CREATE TABLE Olist.products_category (UID varchar(50) COLLATE utf8_unicode_ci,product_category_name varchar(50) COLLATE utf8_unicode_ci, product_ca...
<gh_stars>0 CREATE PROCEDURE [dbo].[spPMUpdateComponentReplacement] @token_id NVARCHAR(50), @filter_cmprpl_id_Pk BIGINT = NULL, @filter_cmprpl_external_identifier NVARCHAR(500) = NULL, @filter_cmprpl_task_Fk BIGINT = NULL, @filter_cmprpl_material_Fk BIGINT = NULL, @filter_cmprpl_replaced_material_Fk BIGINT ...
/*============================================================================ File: 4.0 - Non-Uniform Data distribution.sql Summary: The script demonstrates what is the effect on the DML operations when there are a lot of indexes on the table. THIS SCRIPT IS PART OF THE Lecture: "Performance Tuning" ...
SET ANSI_NULLS ON; SET ANSI_PADDING ON; SET ANSI_WARNINGS ON; SET ANSI_NULL_DFLT_ON ON; SET CONCAT_NULL_YIELDS_NULL ON; SET QUOTED_IDENTIFIER ON; go -- Stored procedures CREATE PROCEDURE [it].[SyncData] AS BEGIN TRY BEGIN TRANSACTION DECLARE @UserName VARCHAR(50) = S...
<filename>server/midlib/SessionRedis/s_echo_builtin.sql -- "Copyright (C) <NAME>, 2009-2017." drop FUNCTION s_echo_builtin(p_ip_addr varchar, p_url varchar, p_host varchar, p_top varchar); drop FUNCTION s_echo_builtin(p_ip_addr varchar, p_url varchar, p_host varchar, p_top varchar, p_session varchar); -- Antic...
alter table "public"."users" add constraint "users_pkey" primary key ("id");