sql
stringlengths
6
1.05M
SELECT name, weight, price, ROUND(CAST(price / weight * 1000 AS NUMERIC), 2)::FLOAT AS price_per_kg FROM products ORDER BY price_per_kg, name ASC
CREATE TABLE 'employeedb'.'employee' ( 'id' MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT, 'firstName' VARCHAR(255) NULL, 'lastName' VARCHAR(255) NULL, 'birthdate' VARCHAR(255) NULL, PRIMARY KEY ('id') ) AUTO_INCREMENT=1;
<filename>src/main/resources/db/postgresql/find-popular-articles.sql -- Function for popular articles searching -- Author: <NAME> -- Date: 29.06.2019 create or replace function articles.find_popular_articles() returns table( article_id uuid, article_title varchar(100), article_creation_date timestamp, author_id...
create table oa_notify ( id varchar(64) not null comment '编号' primary key, type char null comment '类型', title varchar(200) null comment '标题', content varchar(2000) null comment '内容', files varchar(2000) null comment '附件', status ...
/*creates table in default dev db and loaded data into the table*/ CREATE TABLE amazon_reviews( marketplace char(2), customer_id varchar(10), review_id varchar(20), product_id varchar(15), product_parent varchar(15), product_title varchar(500), product_category varchar(30), star_rating int, he...
<filename>db/init.sql -- template: `process-${MM-DD}` DROP TABLE IF EXISTS `process`; CREATE TABLE `process`( `id` INT UNSIGNED AUTO_INCREMENT, `app` INT NOT NULL, `agent` VARCHAR(50) NOT NULL, `pid` INT NOT NULL, `uptime` INT UNSIGNED COMMENT 'prcess uptime (sec)', `log_time` DATETIME NOT NULL COMMENT 'pro...
--+ holdcas on; --select timediff(timestamp('2015-8-6',sec_to_time(82800)),timestamp('2015-8-5',sec_to_time(81000))): print error set timezone '+02:00'; set @x1=(select if(datediff(current_date,utc_date())=0,timediff(timestamp(current_date,sec_to_time(82800)),timestamp(utc_date(),sec_to_time(81000))),timediff(timestamp...
<gh_stars>0 ----------------------------------------------------------------------------------- --Do not modify this file, instead use an alter proc to over-write the procedure.-- --Make sure you follow the same expected interface of parameters, and resultsets.-- --------------------------------------------------------...
<reponame>mjochab/PZ_2019_Lab2_Gr5<filename>src/main/resources/db/migration/V1.8__AddWholeDayColumnToTask.sql ALTER TABLE `task` ADD COLUMN `whole_day_task` BIT(1) NOT NULL DEFAULT 0;
<filename>aula12.sql select * from cursos where descricao like '%dados%'; select * from cursos where descricao not like '%a_%'; select distinct nacionalidade from gafanhotos; select count(*) from cursos; select count(*) from cursos where carga > 40; select count(nome) from cursos; select max(carga) from cursos; ...
<gh_stars>0 SELECT * FROM CITY WHERE COUNTRYCODE='JPN';
<reponame>izyware/apps-sqlconsole-rekey CREATE TABLE `batchTrackingTable_izyware_sqldashboard_rekey` ( `recordid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `originalId` bigint(20) NOT NULL, `tbl` char(30) NOT NULL, `newId` bigint(20) DEFAULT NULL, `processed` timestamp NULL DEFAULT NULL, UNIQUE KEY `orig...
ALTER TABLE [dbo].[People] ADD CONSTRAINT [FK_People_CommunicationOptions] FOREIGN KEY ([CommunicationOptionId]) REFERENCES [dbo].[CommunicationOptions] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION;
declare @o varchar(200); set @o = 'SysPec_p_ListAnimaisByLote'; if object_id(@o, 'P') is not null begin declare @d nvarchar(250); set @d = 'drop procedure ' + @o; execute sp_executesql @d; end; go create procedure SysPec_p_ListAnimaisByLote( @IdLote int ) with encryption as begin select Animal.* from SysPec_...
DROP DATABASE IF EXISTS portfolio_db; CREATE DATABASE portfolio_db; DROP DATABASE IF EXISTS test_portfolio_db; CREATE DATABASE test_portfolio_db; use portfolio_db; SHOW TABLES; #DROP TABLE projects; #DROP TABLE messages; SELECT * FROM messages; SELECT * FROM projects;
-- file:union.sql ln:314 expect:true create table other_events (event_id int primary key)
<filename>backend/de.metas.handlingunits.base/src/main/sql/postgresql/system/5466421_sys_gh490webui_drop_AD_Column_IsLocalPK.sql<gh_stars>1000+ alter table AD_Column drop column IsLocalPK;
<filename>Sql-Injection-in-Java/New Project 20111207 1454.sql -- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.1.55 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
/* Copyright 2020 Curtin University 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 applicable law or agreed to in writing, so...
<gh_stars>10-100 WITH data AS ( -- SELECT "123456789012" x SELECT "202201222022222222222222210222222222221222220202222222022222222222222221222200221022222222222220222222220220202221222222222222222221222221222212022202202220222222222222222222221220222222220222222212222222022222222222222222222220220122222222222220222...
set tab on set trim on @tab @q @sql set echo on -- -- CREATE INDEX (visible) -- create index new1 on t1 (val2) deferred invalidation; create index new2 on t2 (val2) local deferred invalidation; set echo off @sql pause Press <CR> @tab @q @sql set echo on -- -- CREATE INDEX (invisible) -- create index new1 on t1 (val2)...
<filename>data/sql/a_27.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2016 at 05:41 AM -- 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_CHARACTE...
CREATE DATABASE IF NOT EXISTS `ezegarraDB` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `ezegarraDB`; -- MySQL dump 10.13 Distrib 5.6.13, for Win32 (x86) -- -- Host: mysql.cs.pitt.edu Database: ezegarraDB -- ------------------------------------------------------ -- Server version 5.0.45-community-log /*!40101 SE...
<gh_stars>1-10 -- Sequence: client_id_seq -- DROP SEQUENCE client_id_seq; CREATE SEQUENCE client_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; ALTER TABLE client_id_seq OWNER TO postgres; -- Sequence: order_id_seq -- DROP SEQUENCE order_id_seq; CREATE SEQUENCE order_id_...
<gh_stars>0 SELECT DepartmentID, Salary FROM (SELECT DepartmentId, MAX(Salary) AS Salary, DENSE_RANK() OVER (PARTITION BY DepartmentId ORDER BY Salary DESC) AS Rank FROM Employees GROUP BY DepartmentID, Salary) AS Salaries WHERE Rank = 3
/* Navicat MariaDB Data Transfer Source Server : local mariadb Source Server Version : 100122 Source Host : localhost:3307 Source Database : acceso Target Server Type : MariaDB Target Server Version : 100122 File Encoding : 65001 Date: 2019-04-12 20:12:14 */ SET FOREIGN_KEY_CHECKS...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.1.21-MariaDB - mariadb.org binary distribution -- SO del servidor: Win32 -- HeidiSQL Versión: 9.4.0.5173 -- ------------------------------------------------...
SELECT rr.id FROM room_reserve as rr WHERE (date '2021-08-09', date '2021-08-23') OVERLAPS (rr.arrival_at, rr.departure_at) ::boolean AND rr.room_id = 1
SET FOREIGN_KEY_CHECKS=0; ALTER TABLE accountgroups ADD CONSTRAINT `accountgroups_ibfk_1` FOREIGN KEY (`sectioninaccounts`) REFERENCES `accountsection` (`sectionid`); ALTER TABLE audittrail ADD CONSTRAINT `audittrail_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `www_users` (`userid`); ALTER TABLE bankaccounts ADD CO...
CREATE DATABASE IF NOT EXISTS laravel_instagram; USE laravel_instagram; CREATE TABLE IF NOT EXISTS users( id int(255) auto_increment not null, role varchar(20), name varchar(100), surname varchar(200), nick varchar(100), email varchar(255), password varchar(255), image ...
select distinct shop_name || store_name as store_name, datetime_format(receipt.date, '%Y-%m-%d') as date, total_due from stdin as receipt, ( select date, sum(price) as total_due from ( select date, counts * ceil((price + ceil(price * tax_rate)) * percentage_paid) as price ...
<reponame>ringmail/ringmail-backend SET FOREIGN_KEY_CHECKS = 0; ALTER TABLE `account_transaction` ADD CONSTRAINT `account_transaction-entity` FOREIGN KEY (`entity`) REFERENCES `payment` (`id`); ALTER TABLE `account_transaction` ADD CONSTRAINT `account_transaction-user_id` FOREIGN KEY (`user_id`) REFERENCES `ring_user`...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 31, 2017 at 08:09 AM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
DROP TABLE IF EXISTS products; CREATE TABLE products ( id int(11) NOT NULL auto_increment, name varchar(255) default NULL, description text, image varchar(255) default NULL, PRIMARY KEY (id) ); INSERT INTO products VALUES (1, 'Imperial Bonsai', 'The largest and most majestic of all Bonsai trees', '...
<filename>8.USING_NULL.sql -- List the teachers who have NULL for their department. -- You might think that the phrase dept=NULL would work here but it doesn't - you can use the phrase dept IS NULL SELECT name FROM teacher WHERE dept IS NULL -- Note the INNER JOIN misses the teachers with no department and the depar...
-- 2019-09-30 13:42:36 : change capability pk to id and slack channel id ALTER TABLE public."Capability" DROP CONSTRAINT team_pk; ALTER TABLE public."Capability" ADD CONSTRAINT capability_pk PRIMARY KEY ("Id", "SlackChannelId");
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'ufnGetEntityEmailListForNotifyByEntityIdent') and xtype in (N'FN', N'IF', N'TF')) DROP FUNCTION ufnGetEntityEmailListForNotifyByEntityIdent GO /* ufnGetEntityEmailListUnformattedByEntityIdent * * Returns a string of the active email addresses that are ma...
DROP TABLE IF EXISTS conreality.camera CASCADE; CREATE TABLE conreality.camera ( -- The camera's unique identifier. uuid uuid NOT NULL PRIMARY KEY REFERENCES conreality.object ON DELETE CASCADE, -- The camera's resolution (in 2D pixels). resolution point NULL, -- The camera's image format. format ...
<reponame>Haikson/geekbdb<filename>topic10/examples.sql -- Базы данных. Урок 10. Вебинар. Транзакции, переменные, представления -- ДЗ к уроку 8 -- 1. Добавить необходимые внешние ключи для всех таблиц базы данных vk -- (приложить команды). -- 2.По созданным связям создать ER диаграмму, используя Dbeaver (приложить гр...
<gh_stars>0 CREATE TABLE ERS_USERS ( ERS_USERS_ID NUMBER PRIMARY KEY, ERS_USERNAME VARCHAR2(50) UNIQUE NOT NULL, ERS_PASSWORD VARCHAR2(50) UNIQUE NOT NULL, USER_FIRST_NAME VARCHAR(100), USER_LAST_NAME VARCHAR(100), USER_EMAIL VARCHAR(150), USER_ROLE_ID NUMBER, CONSTRAINT USER_ROLES_FK ...
-- This schema was my interpretation of MTCProv model proposed in 2012. It is a modified version of prov -- this is supposed to work with sqlite3 so that I can integrate it in a tcl file --<NAME> is my updated schema based off of MTCProv CREATE TABLE ApplicationCatalog ( hashValue char(128) PRIMARY KEY, catalogEn...
<reponame>james-cantrill/funda_components<filename>system_user/system_user_database/action_functions/test/test_action_user_login_master.sql -- system_user_schema.action_user_login -- the json object containng the inmput data, _in_data, is defined below. -- _in_data: { -- login: -- password: -- } -- prelmin...
<filename>src/main/resources/archetype-resources/src/main/resources/import.sql --INIT USER INSERT INTO USER(USERNAME, PASSWORD, ACCOUNT_NON_EXPIRED, ACCOUNT_NON_LOCKED, CREDENTIALS_NON_EXPIRED, ENABLED, AUTHORITIES) VALUES('admin','$2a$<PASSWORD>', true, true, true, true, 'USER,ADMIN'); INSERT INTO USER(USERNAME, PASSW...
CREATE OR REPLACE FUNCTION set_var(name text, val text) RETURNS text AS $$ if ($_SHARED{$_[0]} = $_[1]) { return 'ok'; } else { return "cannot set shared variable $_[0] to $_[1]"; } $$ LANGUAGE plperl; CREATE OR REPLACE FUNCTION get_var(name text) RETURNS text AS $$ return $_SHARED{$_[0...
<filename>sql/_17_sql_extension2/_02_full_test/_03_alter_table/_01_alter_change/cases/alter_change_type_bigint.sql --+ holdcas on; --alter_table_change_type_strict --change the type of a bigint column to other types create class coo( col1 bigint, col2 bigint, col3 bigint, col4 bigint, ...
<reponame>ghudson46/employee-tracker CREATE DATABASE employee_tracker_db; USE employee_tracker_db; CREATE TABLE employee ( first_name varchar(30), last_name varchar(30), role_id int, manager_id int ); CREATE TABLE role ( id INT AUTO_INCREMENT PRIMARY KEY, title varchar(30), salary decimal, department...
UPDATE regions SET name = 'Great Britain' where id = 'GB'; DELETE FROM regions WHERE parent_id = 'GB';
CREATE DATABASE quero_assistir; USE quero_assistir; CREATE TABLE filme( id INT AUTO_INCREMENT, descricao VARCHAR(50) NOT NULL, ano INT NOT NULL, CONSTRAINT pk_quero_assistir PRIMARY KEY(id), CONSTRAINT uq_quero_assistir UNIQUE(descricao) ); INSERT INTO filme (id, descricao, ano) VALUES(1, 'Star W...
<gh_stars>0 CREATE TABLE tenant_member ( id bigserial NOT NULL PRIMARY KEY, first_name text, last_name text, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL );
 CREATE TABLE [dbo].[BoloesPontosRodadas]( [NomeCampeonato] [varchar](150) NOT NULL, [NomeFase] [varchar](50) NOT NULL, [NomeGrupo] [varchar](20) NOT NULL, [NomeBolao] [varchar](100) NOT NULL, [Posicao] [int] NOT NULL, [Titulo] [varchar](150) NULL, [Pontos] [int] NOT NULL, [DataValidacao] [datetime] NOT NULL...
<gh_stars>0 WITH einzelobjekt_flaeche AS ( SELECT DISTINCT ON (einzelobjekt.tid) einzelobjekt.tid, einzelobjekt.entstehung, einzelobjekt.art, split_part(einzelobjekt.art_txt,'.',array_upper(string_to_array(einzelobjekt.art_txt,'.'), 1)) AS art_txt, to_date(nachfue...
SELECT price * amount AS total FROM items;
<gh_stars>0 CREATE FUNCTION [SqlNet].[DateTimeBeginingOfYear] (@dateTime DATETIME) RETURNS DATETIME AS EXTERNAL NAME [SqlNet].[Sql.Net.Types.DateTimeType].[DateBeginingOfYear]
use vendas; create table usuarios ( id int not null auto_increment primary key, nome varchar(255), matricula varchar(255), senha varchar(255), status tinyint, created datetime )engine=InnoDB charset utf8; create table clientes( id int not null auto_increment primary key, usuario_id int, ...
INSERT INTO csp.user (id,username,passwordhash,created,updated,deleted) VALUES (default,'test','123',default,default,default); INSERT INTO csp.location(id,lat,lng,name,created,updated,deleted) VALUES (default,'0','0','test location',default,default,default); INSERT INTO csp.trip(id,startdate,enddate,bookinguserid,tri...
-- Code SQL pour le schéma CREATE TABLE [Chapters] ( [id] [int] PRIMARY KEY AUTOINCREMENT, [name] [VARCHAR](50) NOT NULL, [description] [VARCHAR](200) NULL, [course_id] [int] NULL ) CREATE TABLE [Classes]( [id] [int] PRIMARY KEY, [name] [VARCHAR](15) NOT...
<filename>movingcompany (1).sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 12, 2019 at 10:34 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION;...
<filename>project.sql -- CREATE EXTENSION pgcrypto; -- SET search_path TO rideshare; DROP TABLE IF EXISTS Users CASCADE; DROP TABLE IF EXISTS Cars CASCADE; DROP TABLE IF EXISTS Drivers CASCADE; DROP TABLE IF EXISTS Routes CASCADE; DROP TABLE IF EXISTS Rewards CASCADE; DROP TABLE IF EXISTS Rides CASCADE; DROP ...
-- phpMyAdmin SQL Dump -- version 4.7.8 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 27 фев 2018 в 23:52 -- Версия на сървъра: 10.1.31-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<reponame>CSCfi/antero USE [VipunenTK_lisatiedot] GO IF NOT EXISTS (SELECT * FROM [VipunenTK_lisatiedot].[dbo].[opettajat_aine] where id=57 or aine_koodi='56') BEGIN insert [VipunenTK_lisatiedot].[dbo].[opettajat_aine] (id,luotu,aine_koodi,aine,aine_SV,aine_EN,jarjestys,virhetilanne,poistettu,tietolahde,kommentti) v...
create schema other; CREATE TABLE other.entity ( uuid UUID not null, constraint pk_other_entity PRIMARY KEY (uuid) );
-- file:polymorphism.sql ln:706 expect:true drop function dfunc(varchar, numeric, date)
/* tsqllint-disable */ SET NOCOUNT ON਍ഀ ALTER PROCEDURE Foo਍ഀ
CREATE INDEX ix_category_status ON category(status); UPDATE `site` set `value` = '48' where `setting` = 'sqlpatch';
<filename>sql/create_table_plot_data.sql<gh_stars>0 CREATE TABLE IF NOT EXISTS plot_data ( plot_id integer, map_unit_id integer, transect_id integer, forb_class integer, grass_class integer, brotec_class integer );
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information....
<filename>sql/data-design.sql ALTER DATABASE rdominguez45 CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS watches; DROP TABLE IF EXISTS comments; DROP TABLE IF EXISTS `user`; DROP TABLE IF EXISTS stream; CREATE TABLE stream ( streamId BINARY(64) NOT NULL, streamName VARCHAR(32) NOT NULL, streamCa...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Dropping type reference from [edfi].[Cours...
-- -- migration INSERT INTO fieldmapper( field_class, field_name, field_value ) VALUES( "department", "CONSTR-PHD", "School of Architecture" ); -- -- end of file --
CREATE OR REPLACE PACKAGE BODY om.om_recover AS -- $Header: v01_108_001__om_recover_PackageBody 2016/11/17 1.0 <NAME> $ --*************************************************************************************************** --* --* Application: CAS Install Base (Recoveries) --* Program: om_recoveries PL/SQ...
<reponame>joellabes/dbt {{ config( materialized='table', persist_docs={ 'columns': true } ) }} select 1 field
alter table category drop constraint category_parent_id_fkey; alter table category add constraint category_parent_id_fkey foreign key (parent_id) references category(id) on delete cascade; alter table image_category drop constraint image_category_category_id_fkey; alter table image_category add constraint image_catego...
<reponame>Karan-zenocraft/parliament -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 14, 2019 at 07:50 PM -- Server version: 5.7.27-0ubuntu0.18.04.1 -- PHP Version: 7.2.19-1+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET...
<filename>openGaussBase/testcase/KEYWORDS/Destroy/Opengauss_Function_Keyword_Destroy_Case0022.sql -- @testpoint:opengauss关键字destroy(非保留),作为用户组名 --关键字不带引号-成功 drop group if exists destroy; create group destroy with password '<PASSWORD>'; drop group destroy; --关键字带双引号-成功 drop group if exists "destroy"; create group "d...
<gh_stars>0 /*User*/ insert into user (id, email, fullname, nickname, picture, role) values (1, '<EMAIL>', 'tester001', 'test1', 'none', 'USER'); insert into user (id, email, fullname, nickname, picture, role) values (2, '<EMAIL>', 'tester002', 'test2', 'none', 'USER'); insert into user (id, email, fullname, nickname, ...
CREATE SYNONYM [SqlNet].[BeginingOfWeek] FOR [SqlNet].[DateTimeBeginingOfWeek];
<filename>archive_db.sql -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 01-11-2018 a las 17:25:11 -- Versión del servidor: 5.7.24-0ubuntu0.16.04.1 -- Versión de PHP: 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VAL...
<reponame>vasquez8d/CM_VirtualClassroomServices CREATE TABLE tbl_notifications (notf_id INTEGER, notf_text VARCHAR(200), user_id INTEGER, notf_flg_view VARCHAR(1), notf_redirect VARCHAR(200), notf_icon VARCHAR(20), est_registro INTEGER, fec_registro TIMESTAMP, usu_registro VARCHAR(50), CONSTRAINT pk_tbl_notifications P...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 14, 2018 at 10:21 AM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.25-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
select name as "Media ID:Link/Media:100", media_sub_type as `Sub Type`, media_owner as "Media Owner:Data:120", external_id as `External ID::100`, tape_title as `Tape Title`, tape_standard as `Tape Standard`, tape_manufacturer as `Tape Manufacturer`, tape_runtime_mins as `Tape Runtime (mins)` from `tabMedia` where media...
<reponame>aldohardiansyah/NgobrolBuku -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 13, 2017 at 06:21 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
<reponame>KMalif/Java_CRUD_APOTEK -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Jan 2021 pada 13.41 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
<reponame>ridridku/adminlte /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50516 Source Host : localhost:3306 Source Database : cendana Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2017-10-11 08:58:57 */ SET...
<reponame>pedroetb/tajinaste-database \c tajinaste CREATE SCHEMA IF NOT EXISTS auth; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE IF NOT EXISTS auth.users ( id smallserial PRIMARY KEY, uuid uuid UNIQUE NOT NULL DEFAULT uuid_generate_v4(), email text UNIQUE NOT NULL CHECK(email ~* '^.+@.+\..+$'), pass...
SET @name = '%s'; SET @description = '%s';
<filename>migrations/2019-10-30-155718_schema/down.sql drop table users; drop table client; drop view postfix_view;
UPDATE games SET owner_id=$2, opponent_id=$3, current_player_id=$4, step_count=$5, winner_id=$6, field=$7, current_state=$8 WHERE id=$1
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 05, 2017 at 02:14 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...
<reponame>jaydeesimon/vetd-app DROP TABLE IF EXISTS vetd.form_template_prompt; --;; CREATE TABLE vetd.form_template_prompt (id bigint NOT NULL, idstr text, created timestamp with time zone, updated timestamp with time zone, deleted timestamp with time zone, form_template_id bigint, prompt_id bigint, sort integer) --;; ...
<reponame>jdkoren/sqlite-parser -- lock.test -- -- execsql { DELETE FROM t4 } DELETE FROM t4
/* vNEXT: Implement params-list/output on @Action = N'TEST' - as down in the body of the sproc */ USE [admindb]; GO IF OBJECT_ID('dbo.create_sync_check_jobs','P') IS NOT NULL DROP PROC dbo.[create_sync_check_jobs]; GO CREATE PROC dbo.[create_sync_check_jobs] @Action sysname = N'TEST...
-- 2021-06-29T08:46:43.151Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2021-06-29 11:46:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=572226 ;
<filename>backend/de.metas.acct.base/src/main/sql/postgresql/system/43-de.metas.acct/5445870_sys_FRESH_326_Org_Condition_In_Fact_Acct_EndingBalance_RebuildAll_Partition.sql<gh_stars>1000+ drop function if exists de_metas_acct.Fact_Acct_EndingBalance_RebuildAll(); create or replace function de_metas_acct.Fact_Acct_Endin...
<filename>back/snake_chatuser.sql SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `snake_chatuser`; CREATE TABLE `snake_chatuser` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(155) DEFAULT NULL, `pwd` varchar(155) DEFAULT NULL COMMENT '密码', `groupid` int(5) DEFAULT NULL COMMENT '所属的分组id', `status`...
<reponame>ptrick/hdfs-hive-sql-playground version https://git-lfs.github.com/spec/v1 oid sha256:a43a2a17a71856739693e07eae8cbef898154d670e04aa0815f2001e67108cf9 size 33251
<gh_stars>0 SELECT DISTINCT City FROM Station WHERE City LIKE '%[aeiou]';
<reponame>kainsk/kratos<filename>persistence/sql/migrations/sql/20220118104539000003_identity_fk_indexes.postgres.down.sql DROP INDEX "identity_credentials_nid_identity_id_idx";
CREATE DATABASE ACS; GO USE ACS; CREATE TABLE ACCOUNT( id int NOT NULL IDENTITY(1,1), name varchar(18) NOT NULL, pwd varchar(18) NOT NULL, PRIMARY KEY(id) ); CREATE TABLE PRIVILEGE( id int NOT NULL IDENTITY(1,1), name varchar(50) NOT NULL UNIQUE,/*[Class-Name]:[Class-Method], in fact they ...
ALTER TABLE sec.organization ALTER COLUMN code TYPE text; ALTER TABLE sec.organization ALTER COLUMN short_name TYPE text; ALTER TABLE sec.organization ALTER COLUMN full_name TYPE text; ALTER TABLE sec.organization ALTER COLUMN legal_address TYPE text; ALTER TABLE sec.organization ALTER COLUMN email TYPE text;
IF OBJECT_ID('tSQLt.Private_CreateInstallationInfo') IS NOT NULL DROP PROCEDURE tSQLt.Private_CreateInstallationInfo; GO ---Build+ GO CREATE PROCEDURE tSQLt.Private_CreateInstallationInfo -- Created as a stored procedure to make it testable. AS BEGIN DECLARE @cmd NVARCHAR(MAX); SELECT @cmd = 'ALTER FUNCTION...