sql
stringlengths
6
1.05M
<gh_stars>1000+ CREATE OR REPLACE FUNCTION getDaysFromGuaranteeMonths(p_months text) RETURNS INTEGER AS $BODY$ BEGIN if (p_months = '12') then RETURN 365; elseif (p_months = '24') then RETURN 730; elseif (p_months = '36') then RETURN 1095; END if; RETURN NULL; END; $BODY$ LANGUAGE plpgsql; ...
WITH ranked_emp AS ( SELECT emp_name ,dept_id ,salary ,DENSE_RANK() OVER (PARTITION BY dept_id ORDER BY salary ) ranking FROM emp ) SELECT dept_id ,ranking ,emp_name ,salary FROM ranked_emp WHERE ranking <= 2 ORDER BY dept_id, ranking;
<gh_stars>0 INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1030292142420144130', 'messageBoard', 'sysmessageboard', '[0],[sysmessageboard],', '咨询留言板', '', '/messageBoard', '99', '2', '1', NULL, '1', '0'); INSERT INTO...
<filename>www/upgrade/17/pgsql.sql ALTER TABLE %DB_TBL_PREFIX%repeat ADD COLUMN status smallint DEFAULT 0 NOT NULL;
<filename>connect-database/src/main/resources/db/plsql/sp2_execute_add_two_numbers.sql set serveroutput on declare v_output number; begin v_output := multiply_two_numbers(3, 2); dbms_output.put_line(v_output); exception when others then dbms_output.put_line('has exception'); end;
<reponame>kanish671/goalert<filename>migrate/migrations/20170619123628-add-constraints.sql -- +migrate Up ALTER TABLE escalation_policy ADD UNIQUE(name); ALTER TABLE service ADD UNIQUE(name); -- +migrate Down ALTER TABLE escalation_policy DROP CONSTRAINT UNIQUE(name); ALTER TABLE service DROP CONSTRAINT UNIQUE(name)...
<reponame>bcgov/cas-ggircs -- Verify ggircs-app:triggers/update_timestamps on pg begin; select pg_get_functiondef('ggircs_app_private.update_timestamps()'::regprocedure); rollback;
ALTER TABLE `user_details` ADD `attributes` JSON NULL AFTER `online_status`;
<filename>src/test/isolation2/sql/reindex/vacuum_analyze_while_reindex_ao_btree.sql<gh_stars>10-100 DROP TABLE IF EXISTS reindex_ao; CREATE TABLE reindex_ao (a INT) WITH (appendonly=true); insert into reindex_ao select generate_series(1,1000); select 1 as reltuples_same_as_count from pg_class where relname = 'reindex_...
CREATE TABLE airports(LocationID Text,ARPLatitude float,ARPLongitude float,Type Text,FacilityName Text,Use Text,FSSPhone Text,Manager Text,ManagerPhone Text,ARPElevation Text,MagneticVariation Text,TrafficPatternAltitude Text,FuelTypes Text,Customs Text,Beacon Text,LightSchedule Text,SegCircle Text,ATCT Text,UNICOMFreq...
<reponame>kurokage87/point-of-sale -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Sep 30, 2018 at 01:20 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ti...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.4 -- Dumped by pg_dump version 9.6.4 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
create table tb_produtos ( id int not null primary key auto_increment, descricao varchar(200) not null, preco float(8,2) not null ); insert into tb_produtos(descricao, preco)values('Sofá', 1250.75); insert into tb_produtos(descricao, preco)values('Cadeira', 378.99); insert into tb_produtos(descricao, preco)values('...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 28-09-2020 a las 22:08:17 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
CREATE TABLE `temp_regimen_service_type` ( `id` int(5) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `active` varchar(2) NOT NULL DEFAULT '1', `ccc_store_sp` int(11) NOT NULL DEFAULT '2', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1// INSERT INTO `temp_regimen_service_type` (`name`, `act...
-- -- Database: `catalog` -- USE `catalog`; -- -------------------------------------------------------- -- -- CREATE TABLE statements -- CREATE TABLE `Location` ( `ip` VARCHAR(15) NOT NULL PRIMARY KEY, `longitude` FLOAT DEFAULT NULL, `latitude` FLOAT DEFAULT NULL, `city` VARCHAR(254) DEFAULT NULL, `distri...
<filename>net-core/sql/Tree/SQL Server/Tree.Axis.Parent.sql -- Axis Parent with cte_Input as ( select Id RootId from dbo.DummyTree where [Name] = 'Name-1-1' ) select t1.* from dbo.DummyTree t1 inner join dbo.DummyTree t2 on t1.Id = t2.ParentId cross join cte_Input where t2.Id = cte_Input.RootId ;
<reponame>nsattes/hottahue<gh_stars>0 -- MySQL Script generated by MySQL Workbench -- Mon Oct 2 20:18:32 2017 -- 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 ...
<gh_stars>0 SELECT Name as Customers FROM( SELECT Customers.Id, Name, CustomerId FROM Customers LEFT JOIN Orders ON Customers.Id = Orders.CustomerId GROUP BY Customers.Id, Name, CustomerId HAVING CustomerId IS NULL; )
<reponame>diabetes-assistant/diabetes-assistant-backend<filename>src/main/resources/db/migration/V1006__Alter-user-table-include-dates.sql<gh_stars>0 ALTER TABLE users ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE users ADD COLUMN last_login_at TIMESTAMP;
<gh_stars>0 select top 100 * from warehouse where w_warehouse_sk=-100 order by w_warehouse_id desc
USE [corredora] GO /****** Object: StoredProcedure [dbo].[sp_ArrendatariosMorosos] Script Date: 25-04-2015 00:44:06 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 24-04-2015 -- Description: Valida que el Estado de Pago Exis...
<gh_stars>0 SELECT firstname, lastname FROM Elves WHERE firstname LIKE "%tegil%" OR lastname LIKE "%astar%"
truncate schema public restart identity and commit no check insert into User (id, username, password, failedLogins) values (0, 'John', 'Doe', 0); insert into Role (id,role) values (0, 'admin'); --insert into user_roles (roles_id, user_id) values (0, 0); --insert into roles_user (roles_id, user_id) values (0, ...
drop table if exists tmp.flarp; create table tmp.flarp select 3 as id, 'josh' as name;
--- { section: '入力データ' } create table 利用者(id serial primary key, 氏名 text not null, 年齢 integer); --- { section: '期待する出力' } CREATE TABLE 利用者 ( id SERIAL PRIMARY KEY, 氏名 TEXT, 年齢 INTEGER ); --- { section: '期待する出力', option { valign: 1 } } CREATE TABLE 利用者 ( id SERIAL PRIMARY KEY, 氏名 TEXT, 年齢 INTEGER );
<gh_stars>1-10 SET DEFINE OFF; ALTER TABLE AFW_12_DOMN ADD ( CONSTRAINT AFW_12_DOMN_FK4 FOREIGN KEY (REF_PROFL_COURL_NOTFC) REFERENCES AFW_17_PROFL_COURL (SEQNC) ENABLE VALIDATE) /
<reponame>swayzetrain/InvServices CREATE DATABASE inventory; CREATE TABLE users ( user_Id int AUTO_INCREMENT, username varchar(25) UNIQUE NOT NULL, password varchar(255) NOT NULL, enabled bit NOT NULL DEFAULT 1, date_Created datetime DEFAULT CURRENT_TIMESTAMP NOT NULL, date_Modified datetime DEFAULT CURRENT_TIMESTAMP ...
CREATE TABLE [dbo].[Job] ( [JobId] UNIQUEIDENTIFIER NOT NULL, [IntegrationId] UNIQUEIDENTIFIER NOT NULL, [CreatedDate] DATETIME NOT NULL, [UpdatedDate] DATETIME NOT NULL, [IsDeleted] BIT NOT NULL, [Name] ...
<reponame>LeoWyatt666/nestable-php<gh_stars>1-10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; DROP TABLE IF EXISTS `menu`; CREATE TABLE IF NOT EXISTS `menu` ( `id` int(11) NOT NULL AUTO_INCREMENT, `rang` int(11) NOT NULL, `parent_id` int(11) NOT NULL, `name` varchar(256) NOT NULL, `description` varchar(256) NOT NUL...
-- file:rules.sql ln:395 expect:true insert into rtest_nothn4 values (20, 'want this')
CREATE TABLE IF NOT EXISTS warn ( id integer primary key asc, moderator integer not null, usr integer not null, reason text, create_date datetime ); CREATE TABLE IF NOT EXISTS mute ( id integer primary key asc, guildid integer not null, moderator integer not null, usr integer not nu...
<reponame>Pioreactor/pioreactor INSERT OR IGNORE INTO experiments (timestamp, experiment, description) VALUES (STRFTIME('%Y-%m-%dT%H:%M:%fZ', 'NOW'), 'Demo experiment', 'This is a demo experiment. Feel free to click around. When you are ready, click the "New experiment" above.');
-- member table CREATE TABLE members ( id INTEGER PRIMARY KEY, name TEXT, age INTEGER, email TEXT );
<reponame>dram/metasfresh -- 2018-06-08T14:52:39.181 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,...
CREATE DATABASE webapp_test CHARACTER SET utf8; CREATE USER IF NOT EXISTS 'webapp_test'@'localhost' IDENTIFIED BY 'webapp_test'; GRANT ALL PRIVILEGES ON webapp_test.* TO 'webapp_test'@'localhost';
<filename>sql/updates/world/12_03_17_01_world_sai.sql<gh_stars>10-100 /* Dungeon Normal-Heroic for 5 people */ /* Bosses */ -- Tavarok SET @ENTRY := 18343; UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY; DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY; INSER...
<filename>www7/cp/admin/db/ver-7.2.11/schema-addons-7.2.11.sql ALTER TABLE `pattachments` ADD `datein` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `code`; CREATE TABLE IF NOT EXISTS `difprodlogs` ( `id` int(11) NOT NULL, `datein` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP O...
CREATE TABLE BATCH_JOB_INSTANCE ( JOB_INSTANCE_ID NUMBER(19,0) NOT NULL, VERSION NUMBER(19,0), JOB_NAME VARCHAR2(100 CHAR) NOT NULL, JOB_KEY VARCHAR2(32 CHAR) NOT NULL ); ALTER TABLE BATCH_JOB...
<reponame>unchartedsoftware/influent create table TopicSummary (idx int, topic_score real, doc_purity real, name varchar(100), topic_list varchar(MAX), PRIMARY KEY (idx)); create table TopicScores (EmailRecNo varchar(255), idx int, score real, PRIMARY KEY (EmailRecNo, idx));
INSERT INTO item ("name", category_id, needed, bought, "comment") VALUES ('Продукт', 2, false, false, '');
/* Copyright 2021 Snowplow Analytics Ltd. All rights reserved. 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 a...
/* Navicat MySQL Data Transfer Source Server : vm Source Server Version : 50723 Source Host : 127.0.0.1:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2019-03-13 10:00:05 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
create table if not exists city ( name varchar(255) not null, state int not null ); insert into city (name, state) values ('Mumbai', 1); insert into city (name, state) values ('Pune', 1); insert into city (name, state) values ('Bhopal', 2); insert into city (name, state) values ('Indore', 2); in...
<filename>db/deploy/appschema.sql -- Deploy nasa-apt:appschema to pg BEGIN; CREATE ROLE app_user; GRANT app_user TO masteruser; CREATE SCHEMA apt; GRANT USAGE ON SCHEMA apt TO app_user; GRANT CONNECT ON DATABASE nasadb TO app_user; GRANT USAGE ON SCHEMA apt TO app_user; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABL...
<reponame>pdv-ru/ClickHouse<filename>tests/queries/0_stateless/01412_optimize_deduplicate_bug.sql drop table if exists tesd_dedupl; create table tesd_dedupl (x UInt32, y UInt32) engine = MergeTree order by x; insert into tesd_dedupl values (1, 1); insert into tesd_dedupl values (1, 1); OPTIMIZE TABLE tesd_dedupl DEDU...
/* Navicat Premium Data Transfer Source Server : mysql Source Server Type : MySQL Source Server Version : 50711 Source Host : localhost Source Database : smart_community Target Server Type : MySQL Target Server Version : 50711 File Encoding : utf-8 Date: 05/20/2016 18:...
--Test index with asc/desc keyword ,datatype:char, varchar, nchar, numeric and unique constraint create class ddl_0001(col1 int unique, col2 string unique, col3 char(10) unique, col4 varchar(10) unique); insert into ddl_0001 values(101,'101','10001','1000001'); insert into ddl_0001 values(102,'102','10002','1000002')...
-- MySQL Script generated by MySQL Workbench -- Fri Aug 14 17:59:29 2015 -- 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='TR...
<reponame>jamesfulford/tutoring-database-scripts<filename>initialization/3grantRightsToTables/grantRightsToRoles-expenseList.sql GRANT ALL ON expenseList TO accountant; GRANT SELECT ON expenseList TO administrator; GRANT SELECT ON expenseList TO marketer; GRANT SELECT ON expenseList TO researcher; GRANT SELECT ON ...
<filename>dbase/dishub.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Okt 2020 pada 16.29 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<reponame>CarloMicieli/trenako-web-api -- migrate:up CREATE TABLE public.shops ( shop_id uuid NOT NULL, name varchar(50) NOT NULL, slug varchar(50) NOT NULL, website_url varchar(100), phone_number varchar(50), email varchar(100), address_line1 varchar(255), address_line2 varchar(255), ...
CREATE PROCEDURE [game].[PrintLogo] AS BEGIN DECLARE @printLabel AS NVARCHAR(MAX), @starLine AS NVARCHAR(80); SET @printLabel = ' ______ _ _ _ _____ _ _ | ___ \ | | | | | | / ___| | (_) | |_/ / __ _| |_| |_| | ___ \ `--.| |__ _ _ __ | ___ \/ _` | __| __| |...
<reponame>famousuni/storefront-backend DROP TABLE product_categories;
 CREATE proc SingleValue.[usp_Get_Number](@MinValue int = 1, @MaxValue int = 9, @Number int out) as begin /* Declare @Number int exec SingleValue.usp_Get_Number @Number = @Number out Select @Number Declare @Number int exec SingleValue.usp_Get_Number @MinValue = 95, @MaxValue = 100, @Number = @Number out Select @Nu...
<reponame>oscm/admin-go /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50725 Source Host : 127.0.0.1:3306 Source Schema : admin-go-api Target Server Type : MySQL Target Server Version : 50725 File Encoding ...
<reponame>Jamscare/polycash ALTER TABLE `game_escrow_accounts` DROP `account_id`; ALTER TABLE `game_escrow_accounts` DROP `time_created`; ALTER TABLE `game_escrow_accounts` ADD `amount` DOUBLE NULL DEFAULT NULL AFTER `game_id`; RENAME TABLE `game_escrow_accounts` TO `game_escrow_amounts`; ALTER TABLE `game_escrow_amoun...
-- -- =========================================================================== -- -- set up actions, parameter defs -- -- =========================================================================== insert into vw_calculation_def (short_name, calc_definition, systemtool_uuid, description, in_source_uuid, in_ty...
<reponame>Control-Alt-Sistemas/sqlserver-kit<gh_stars>1000+ USE master; GO IF (OBJECT_ID('dbo.sp_help_permissions') IS NULL) EXEC('CREATE PROCEDURE dbo.sp_help_permissions AS --'); GO /* This script lists all permissions by principal, securable and permission. Optionally, you can filter these objects using the @princi...
<filename>src/main/resources/db/migration/V1__CREATE_TABLES.sql CREATE TABLE IF NOT EXISTS BEHOV ( id VARCHAR(64) NOT NULL, regel VARCHAR(20), data JSONB NOT NULL, PRIMARY KEY (id), created TIMESTAMP WITH TIME ZONE NOT NULL default (now() at time zone 'utc') ); CREAT...
<gh_stars>0 /** * <feature scope="SanteDB.Persistence.Data.ADO.Performance" id="ZZ-PARTITION-PGSQL10" name="Performance: Partition PostgreSQL" applyRange="1.0.0.3-1.0.0.0" invariantName="npgsql"> * <summary>Performance: Enhances performance of large SanteDB databases by partitioning certain tables</summary> * <re...
SELECT * FROM psdb.employees WHERE first_name LIKE '%zette' AND gender = 'M';
<filename>Projeto/scripts/Tabelas.sql<gh_stars>0 USE Projeto if not exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Utente]') ) begin CREATE TABLE Utente ( UtenteID int NOT NULL CHECK (UtenteID >= 1), -- constraint type: check Nome nvarchar(100) NOT N...
<reponame>Toajmgh/springside4 #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) drop table if exists ${tablePrefix}task; drop table if exists ${tablePrefix}user; create table ${tablePrefix}task ( id bigint auto_increment, title varchar(128) not null, description varchar(255), us...
CREATE TABLE [dbo].[decimal_table] ( id BIGINT IDENTITY PRIMARY KEY NOT NULL, [value] DECIMAL(18,2) ); CREATE TABLE [dbo].[numeric_table] ( id BIGINT IDENTITY PRIMARY KEY NOT NULL, [value] NUMERIC(18,2) );
<reponame>SocialGouv/emjpm<filename>packages/hasura/migrations/default/1622879006250_alter_table_public_mandataire_tis_alter_column_mandataire_id/down.sql alter table "public"."mandataire_tis" alter column "mandataire_id" drop not null;
/* SQLyog Ultimate v11.33 (32 bit) MySQL - 5.5.25a : Database - digigames ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
BEGIN TRANSACTION; CREATE TABLE "Account" ( "Id" VARCHAR(255) NOT NULL, "Name" VARCHAR(255), PRIMARY KEY ("Id") ); INSERT INTO "Account" VALUES('0015600000Sl5b1AAB','Harrison Household'); INSERT INTO "Account" VALUES('0015600000Sl5b2AAB','van Hoop Household'); INSERT INTO "Account" VALUES('0015600000Sl5eqAAB','Reg...
<reponame>cheburan/api-server<gh_stars>1-10 WITH v AS( SELECT (SELECT id FROM locales WHERE id={locale_id}) as locale_id ), t AS( SELECT v.locale_id, id, description, local_description FROM v CROSS JOIN food_groups LEFT JOIN food_groups_local ON food_groups_local.food_group_id = food_groups.id AND...
DROP TABLE IF EXISTS zipcode_data; CREATE TABLE zipcode_data ( zip text, type TEXT, decommissioned text, primary_city text, acceptable_cities text, unacceptable_cities text, state text, county text, timezone text, area_codes text, world_region text, country text, lat...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03 Jun 2018 pada 08.42 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Nov 26, 2020 at 06:32 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- Given the CITY and COUNTRY tables, query the names of all cities where the CONTINENT is 'Africa'. SELECT city.name FROM city LEFT JOIN country ON city.countrycode = country.code WHERE continent = 'africa';
insert into "Payment" values (293, 5233.27, '13-May-74', 3002, 'Penalty'); insert into "Payment" values (294, 2637.83, '08-Jun-83', 3004, 'Penalty'); insert into "Payment" values (295, 5233.27, '19-Feb-17', 3007, 'Penalty'); insert into "Payment" values (296, 6566.57, '20-Jun-13', 3008, 'Penalty'); insert into "Pay...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Waktu pembuatan: 30 Jul 2021 pada 19.28 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
<gh_stars>0 desc cursos; select * from gafanhotos; /* Essa aula foi mais de demostração do console e phpMyAdmin */ show create table amigos; #usar no console
CREATE TABLE book ( book_id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(50), author VARCHAR(30), price DECIMAL(8, 2), amount INT );
<filename>plsql/xutl_xlsb.pks create or replace package xutl_xlsb is /* ====================================================================================== MIT License Copyright (c) 2018-2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
USE employee_db; INSERT INTO department (name) VALUES ('Sales'), ('Finance'), ('Legal'); USE employee_db; INSERT INTO role (title, salary, department_id) VALUES ('Lawyer', 100000, 3), ('Accountant', 50000, 2), ('Sales Lead', 75000, 1); USE employee_db; INSERT INTO employee (first_name, last_name, role_id, manager_id)...
CREATE PROC AuthorInfoByPagesCountAndPublishCode @PagesCountMin AS INT, @PublishCodeMin AS INT, @PublishCodeMax AS INT AS SELECT Authors.Code_author, Authors.name_author FROM Authors JOIN Books on Books.Code_author = Authors.Code_author WHERE Books.Pages > @PagesCountMin AND Books.Code_pu...
DROP DATABASE IF EXISTS etracking; CREATE DATABASE etracking; USE etracking;
USE [warehouse_management] GO /****** Object: Table [dbo].[permissions] Script Date: 6/22/2021 4:12:03 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[permissions]( [id] [uniqueidentifier] NOT NULL, [action_id] [int] NOT NULL, [object_id] [int] NOT NULL, CONSTRAINT [PK_permiss...
<reponame>msaint72/gonullu insert into causes(id,name) values(30001,'İnsan Hakları'); insert into causes(id,name) values(30002,'Dini Kurumlar'); insert into causes(id,name) values(30003,'Sağlık'); insert into causes(id,name) values(30004,'Çevre'); insert into causes(id,name) values(30005,'Hayvanlar'); insert into cause...
USE "SoftUni"; UPDATE "Employees" SET Salary = Salary * 1.1; SELECT [Salary] FROM "Employees";
<gh_stars>0 /* No SQL se chama tabela */ /* No NoSQL se chama coleção */ /* No SQL se chama registro*/ /* No NoSQL se chama documento*/ /*C:\Program Files\MongoDB\Server\4.4\data # C:\Program Files\MongoDB\Server\4.4\bin # C:\Program Files\MongoDB\Server\4.4\log*/ /* MongoDB -> Documento*/ /* Neo4j -> Grafos React ...
-- For H2 Database create table schedules ( id bigserial not null primary key, planned_schedule_id bigint not null, start timestamp not null, end timestamp, other_details varchar(512), created_at timestamp not null, updated_at timestamp not null )
ALTER TABLE reports DROP COLUMN isBlue
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2019 at 03:33 AM -- 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"; /*...
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.1.29-MariaDB : Database - cms_codeigniter ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET ...
<filename>sqitch/verify/data/resigning-from-the-perl-foundation.sql -- Verify ovid:data/resigning-from-the-perl-foundation on sqlite BEGIN; -- XXX Add verifications here. ROLLBACK;
<gh_stars>100-1000 CREATE TABLE site_rss ( site_id int(11) NOT NULL, feed_url varchar(1024) NOT NULL, last_modified DATETIME NOT NULL, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`site_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE subdivision_TJ (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_TJ" ("id", "name", "level") VALUES (E'TJ-GB', E'Gorno-Badakhshan Autonomous Province', E'autonomous region'); INSERT INTO "subdivision_TJ" ("id", "name", "level") VALUES (E'TJ-...
<gh_stars>1-10 INSERT INTO sqlexec.src(title) VALUES(${title})
/* Navicat Premium Data Transfer Source Server : gp-local Source Server Type : SQL Server Source Server Version : 13004001 Source Host : localhost:1433 Source Catalog : gp Source Schema : dbo Target Server Type : SQL Server Target Server Version : 13004001 File Encodin...
SELECT * FROM DA WHERE date BETWEEN '2020-12-31' AND '2021-01-02'
<gh_stars>10-100 ALTER TABLE guild_rank CHANGE COLUMN rid rid TINYINT(1) UNSIGNED NOT NULL; ALTER TABLE guild_bank_right CHANGE COLUMN rid rid TINYINT(1) UNSIGNED NOT NULL DEFAULT 0;
-- DB/TARGER POSITION: Fix all target position erros on startup -- After a while I dono why this spell targer are there, sobetter delete it, maybe is for 4.1 or orther clients DELETE FROM `spell_target_position` WHERE `id` IN (11011,35376,35727,55554,88775);
<reponame>samuraitruong/core4r<filename>Sources/Databases/Core4R.Db.Sql/Tables/UserProfile.sql<gh_stars>0 /* The database must have a MEMORY_OPTIMIZED_DATA filegroup before the memory optimized object can be created. The bucket count should be set to about two times the maximum expected number of distinct values in ...
<gh_stars>0 ALTER DATABASE mmcpherson5 CHARACTER SET utf8 COLLATE utf8_unicode_ci; DROP TABLE IF EXISTS comment; DROP TABLE IF EXISTS pen; DROP TABLE IF EXISTS profile; CREATE TABLE profile ( profileId BINARY(16) NOT NULL, profileActivationToken CHAR(32), -- Avatars stored in file system, DB stores the FILEPATH -...
/* Navicat MySQL Data Transfer Source Server : hui_project Source Server Version : 50628 Source Host : localhost:3306 Source Database : hui_project Target Server Type : MYSQL Target Server Version : 50628 File Encoding : 65001 Date: 2018-05-20 22:05:50 */ SET FOREIGN_KEY_CHECKS=0;...