sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2019 at 01:31 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>data/train/sql/8af1818c84bcc1313adb4b4352ec8cf4efca1945db_number_of_images.sql SET NOCOUNT ON SELECT '* fb images' AS 'What', (SELECT Count(*) FROM [entity] WHERE new_path_c != '' AND ententitytypeid NOT IN ( 0, 24 )) AS 'Total' UNION SELECT '* images' AS 'What'...
-- Connect to the 'SoftUni' database to run this snippet USE [SoftUni] GO -- Select the first and last names from the 'Employees' table SELECT [FirstName] , [LastName] FROM [Employees] -- Where the last name is exactly 5 letters long WHERE LEN([LastName]) = 5 GO
-- file:int2.sql ln:88 expect:true SELECT (-1::int2<<15)::text
-- New SortName columns ALTER TABLE `genre` ADD sortName varchar(100) NULL;
<reponame>zyadmorsyy/Student-helper -- AlterTable ALTER TABLE "Student" ALTER COLUMN "semester" SET DEFAULT E'FALL', ALTER COLUMN "GPA" SET DEFAULT E'A', ALTER COLUMN "GPA" SET DATA TYPE TEXT, ALTER COLUMN "lastTermGPA" SET DEFAULT E'A', ALTER COLUMN "lastTermGPA" SET DATA TYPE TEXT, ALTER COLUMN "avatar" SET DEFAULT E...
# This query is to check if the 1st day of stay is the last day of the month or not SELECT `db_all_dt_4_customers`.`id_customer` AS `id_customer` , `db_all_dt_4_customers`.`prospect_id` AS `contract_id` , `db_all_dt_4_customers`.`current_date_in` , `db_all_dt_4_customers`.`current_date_out` , /* Is the Last day...
-- @testpoint: opengauss关键字directory(非保留),作为存储过程名,部分测试点合理报错 --关键字不带引号-成功 drop procedure if exists directory; create procedure directory( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = sec...
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 22, 2016 at 04:03 AM -- Server version: 5.6.11 -- PHP Version: 5.5.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2016 at 11:13 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<gh_stars>0 CREATE TABLE "procedureresult$Operation" ( id bigint NOT NULL, name character varying(255), result_id bigint ); ALTER TABLE "procedureresult$Operation" OWNER TO fordfrog; ALTER TABLE "procedureresult$Operation" ADD CONSTRAINT $1 FOREIGN KEY (result_id) REFERENCES testtable(field1) ON UPDATE RESTRICT O...
<filename>src/Applications/admin/glue-backend/prisma/migrations/20220511114113_init/migration.sql -- CreateTable CREATE TABLE `IdentityProvidersOnTenants` ( `tenantId` VARCHAR(191) NOT NULL, `identityProviderId` VARCHAR(191) NOT NULL, PRIMARY KEY (`tenantId`, `identityProviderId`) ) DEFAULT CHARACTER SET u...
USE [SlickTicket] ALTER TABLE dbo.comments ADD assigned_to INT NOT NULL REFERENCES sub_units(id) DEFAULT _REPLACE_; ALTER TABLE dbo.comments ADD priority_id INT NOT NULL REFERENCES priority(id) DEFAULT 1; ALTER TABLE dbo.comments ADD status_id INT NOT NULL REFERENCES statuses(id) DEFAULT 1; ALTER TABLE dbo...
CREATE PROCEDURE [dbo].[pContact] @Result NCHAR(50), @CallID UNIQUEIDENTIFIER, @ContactId INT = NULL, @ContactType INT = NULL, @IsBlocked BIT = NULL, @IsWatched BIT = NULL, @Standing FLOAT = NULL AS BEGIN IF @Result = 'Save' BEGIN INSERT INTO Contact (CallID,ContactId,ContactType,IsBlocked,IsWatched,Standing) ...
INSERT INTO tpalla.account_details (account_id, balance) VALUES (1, 215); INSERT INTO tpalla.account_details (account_id, balance) VALUES (2, 0); INSERT INTO tpalla.address_city (street_address, city) VALUES ('2200, A Street, NC ', 'charlotte'); INSERT INTO tpalla.address_city (street_address, city) VALUES ('2200, B S...
USE master ; ALTER DATABASE HEATSM_2014_2_1_RTBF SET RECOVERY SIMPLE ;
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 18, 2018 at 09:49 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 5.6.35 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<reponame>dolfly/semaphore<gh_stars>1-10 /* update precision of output logs - also prevents confusion when sorting the table to guarantee it is in the same order */ alter table task__output change `time` `time` datetime(6) not null;
<gh_stars>1-10 CREATE OR REPLACE FUNCTION ti.getgeochroncontrolsbychronologyid(_chronologyid integer) RETURNS TABLE(chroncontrolid integer, geochronid integer) LANGUAGE sql AS $function$ select ndb.geochroncontrols.chroncontrolid, ndb.geochroncontrols.geochronid from ndb.geochroncontrols inner join ...
<filename>src/test/resources/sql/insert/58c8944a.sql -- file:sequence.sql ln:86 expect:true INSERT INTO serialTest2 (f1, f3) VALUES ('bogus', 32768)
CREATE SCHEMA [Bootstrap];
-- Oracle DDL to create table CREATE TABLE {TABLENAME} ( {ID} number(20) NOT NULL PRIMARY KEY, entityRef varchar(255) NOT NULL, entityPrefix varchar(255) NOT NULL, propertyName varchar(255) NOT NULL, propertyValue CLOB NOT NULL); CREATE INDEX entityProp_entityRef ON {TABLENA...
ALTER TABLE db_version CHANGE COLUMN required_8909_01_mangos_spell_proc_event required_8912_01_mangos_spell_proc_event bit; DELETE FROM `spell_proc_event` WHERE `entry` IN (67353); INSERT INTO `spell_proc_event` VALUES (67353, 0x00000000, 7, 0x00008000, 0x00100500, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.00000...
<filename>data/license_abtesting.sql -- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: license -- ------------------------------------------------------ -- Server version 5.7.28-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
INSERT INTO User values(1, 'alcalde', '1234', true, true, true); INSERT INTO User values(2, 'concejal1', '1234', false, true, true); INSERT INTO User values(3, 'concejal2', '1234', true, false, true); INSERT INTO User values(4, 'concejal3', '1234', true, true, false); INSERT INTO User values(5, 'concejal4', '1234', fal...
<filename>spring-batch-core/src/main/resources/org/springframework/batch/core/migration/5.0/migration-oracle.sql ALTER SEQUENCE BATCH_STEP_EXECUTION_SEQ ORDER; ALTER SEQUENCE BATCH_JOB_EXECUTION_SEQ ORDER; ALTER SEQUENCE BATCH_JOB_SEQ ORDER; ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME TIMESTAMP DEFAULT TO_TIMESTA...
<reponame>dpanfilyonok/db.math.spbu<filename>Lira/Initialization.sql USE Lira GO -- instuments filling INSERT Instrument (InstrumentType, InspectionPeriod) VALUES (N'Лира', 60), (N'Электрогитара', 10), (N'Синтезатор', 30), (N'Барабаны', 50), (N'Флейта', 5) GO -- stock INSERT Stock (ModelName, I...
<filename>generators/entity/templates/server/src/main/resources/config/cql/changelog/_added_entity.cql CREATE TABLE IF NOT EXISTS <%= entityInstance %> ( id uuid,<% for (idx in fields) { const fieldType = fields[idx].fieldType; const fieldName = fields[idx].fieldName; const fieldNameUndersc...
CREATE DATABASE IF NOT EXISTS testdb2; USE testdb2; CREATE TABLE `FLIGHTS` ( `flightId` int(10) AUTO_INCREMENT, `airline` varchar(100), `arrivalDate` DATE, `departureDate` DATE, `dest` varchar(100), `rom` varchar(100), `price` int(10), PRIMARY KEY (flightId) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INS...
create table if not exists `event_queue_0` ( `id` bigint not null auto_increment comment '主键', `event_id` char(32) not null comment '事件id', `event_type` char(12) not null comment '事件类型', `event_time` datetime not null comment '事件发生时间', `context` mediumtext not null comment '事...
<filename>sql_dump/test_code_geek.sql<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : test_code_geek Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date:...
--test all kinds of numeric types for the 1st parameter create table soo( col1 int, col2 smallint, col3 bigint, col4 numeric(6, 4), col5 float, col6 double, col7 monetary ); insert into soo values (1, 2, 3, 4.4, 4.77, 6.1234, 7); --int select elt(col1, 'aaa', 'bbb', 'ccc', 'ddd', 'eee', 'fff', 'ggg') fro...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:opengauss关键字prepare(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists prepare; create schema prepare; drop schema prepare; --关键字带双引号-成功 drop schema if exists "prepare"; create schema "prepare"; drop schema "prepare"; --关键字带单引号-合理报错 drop schema if exists 'prepare'...
-- @testpoint:opengauss关键字parser(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists parser; create database parser; drop database parser; --关键字带双引号-成功 drop database if exists "parser"; create database "parser"; drop database "parser"; --关键字带单引号-合理报错 drop database if exists 'parser'; create database 'parser'; --关键字带反...
-- @testpoint: opengauss关键字real非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists real_test; create table real_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists real; create index real on real_test(id); drop index real; --关键字带双引号-成功 drop index if exists "real"; create index "real" on real_test(id)...
<gh_stars>0 insert into patient_checkup(pt_name, dr_name, date_of_checkup, MR_no, DC_no) values('Sarah', 'Aahil','3-31-2020', 'PTDRAAHILCOVIDDGKHAN-101','DC-123'); insert into patient_checkup(pt_name, dr_name, date_of_checkup, MR_no, DC_no) values('Naila', 'Aliyan', '4-22-2020','PTDRALIYANCOVIDMULTAN-102','DC-456'); i...
-- Verify lexicount:table.public.word_details on pg BEGIN; SET ROLE sqitch; SELECT word, part_of_speech, count FROM public.word_details; ROLLBACK;
--VISTA EN DONDE SE MUESTRAN SOLO LOS REGISTROS LLAMADOS POR EL ID QUE SE ENCUENTRAN ACTIVOS EN LA TABLA "MATRICULA" CREATE VIEW vw_Matriculas_SeleccionarUnRegistroPorId AS SELECT * FROM Matriculas WHERE CedulaEstudiante = '5-0432-0608' and activo =1
<filename>src/SqlStreamStore.MsSql/ScriptsV3/DropAll.sql DROP TABLE [dbo].[Messages]; DROP TABLE [dbo].[Streams]; DROP TYPE [dbo].[NewStreamMessages];
<gh_stars>0 CREATE PROCEDURE [Monitoring].[SP_ExpectedShiftNotificationEmails] @Trigger VARCHAR(100) ,@Activity VARCHAR(100) ,@RunID INT AS DECLARE @RowsAffected INT ,@LastRunTimestamp DATETIME ,@ProcessedTo DATETIME ,@TemplateName VARCHAR(100) = 'RequestNotification' SELECT @LastRunTimestamp = M...
<reponame>bogdanghita/public_bi_benchmark-master_project SELECT "MLB_59"."teamname" AS "teamname" FROM "MLB_59" GROUP BY 1 ORDER BY "teamname" ASC;
<filename>sql/initDB.sql # DROPPING TABLES ########################################### DROP TABLE IF EXISTS tasks_checklists; DROP TABLE IF EXISTS checklist_items; DROP TABLE IF EXISTS checklists; DROP TABLE IF EXISTS comments; DROP TABLE IF EXISTS attachments; DROP TABLE IF EXISTS tasks_labels; DROP TABLE IF EX...
DROP TABLE IF EXISTS "books"; DROP TABLE IF EXISTS "users";
CREATE DATABASE db_saa; use db_saa; CREATE TABLE usuario( id INT AUTO_INCREMENT NOT NULL, nome VARCHAR(100) NOT NULL, img VARCHAR(255) DEFAULT NULL, matricula VARCHAR(25) UNIQUE NOT NULL, email VARCHAR(100) DEFAULT NULL, senha VARCHAR(255) NOT NULL, categoria VARCHAR(25) NOT NULL, perm...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2017 at 07:01 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07-Dez-2021 às 01:22 -- Versão do servidor: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE TABLE Passports ( PassportID INT PRIMARY KEY IDENTITY(101,1), PassportNumber CHAR(8) NOT NULL ) CREATE TABLE Persons ( PersonID INT PRIMARY KEY IDENTITY, FirstName NVARCHAR(50) NOT NULL, Salary DECIMAL(10,2), PassportID INT UNIQUE FOREIGN KEY REFERENCES Passports(PassportID) ) INSERT INTO P...
BEGIN; ALTER TABLE configuration ADD COLUMN allow_archiving BOOL NOT NULL DEFAULT false; ALTER TABLE configuration ADD COLUMN allow_history_fetches BOOL NOT NULL DEFAULT false; ALTER TABLE users ADD COLUMN enable_archiving BOOL NOT NULL DEFAULT false; CREATE TABLE administrators ( id INTEGER PRIMARY KEY, jid VARCHAR ...
-- phpMyAdmin SQL Dump -- version 4.5.0.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 16, 2016 at 12:49 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
-- MySQL dump 10.13 Distrib 8.0.13, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: stusys -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
<reponame>xiaoke1256/orders delete from store; insert into store (store_no,store_name,pay_type,pay_account_no) values ('0001','华硕旗舰店','003','DDS394035348781432'); insert into store (store_no,store_name,pay_type,pay_account_no) values ('0002','弘基专卖店','003','DRS342434DE4423445'); insert into store (store_no,store_name...
USE [Campus6] GO /****** Object: StoredProcedure [custom].[DFselCodeValues] Script Date: 2021-04-22 11:49:33 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date: 2020-09-01 -- Description: Selects from certain code tables. I...
<filename>db/dilans.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 12 Mar 2020 pada 06.03 -- Versi Server: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
<reponame>zflows/wolf-notification SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[notif].[template_recipient]')) Begin CREATE TABLE [notif].[template_recipient]( [tr_id] [bigint] IDENTITY(1,1) NOT NULL, [template_id] [uniqueidentifier] NOT ...
-- vtabD.test -- -- execsql { -- CREATE TABLE t1(a, b); -- CREATE INDEX i1 ON t1(a); -- CREATE INDEX i2 ON t1(b); -- CREATE VIRTUAL TABLE tv1 USING echo(t1); -- } CREATE TABLE t1(a, b); CREATE INDEX i1 ON t1(a); CREATE INDEX i2 ON t1(b); CREATE VIRTUAL TABLE tv1 USING echo(t1);
<filename>src/test/resources/sql/select/737018fb.sql<gh_stars>10-100 -- file:strings.sql ln:126 expect:true SELECT SUBSTRING('abcdefg' FROM 'c.e') AS "cde"
<reponame>tizian/Cendric2<gh_stars>100-1000 -- Golden Goblet INSERT INTO text (text_id, text_type, english, german, swiss_german) values ('mi_goldengoblet', 'item', 'Golden Goblet','Goldener Pokal','Goldige Pokal'); INSERT INTO text (text_id, text_type, english, german, swiss_german) values ('mi_goldengoblet', 'item_d...
CREATE SEQUENCE pivotalmarkets.order_seq START 1000; CREATE SEQUENCE pivotalmarkets.item_seq START 300000; CREATE SEQUENCE pivotalmarkets.customer_seq START 10000;
CREATE TABLE IF NOT EXISTS "SPRING_SESSION"( "PRIMARY_ID" CHAR(36) NOT NULL, "SESSION_ID" CHAR(36) NOT NULL, "CREATION_TIME" BIGINT NOT NULL, "LAST_ACCESS_TIME" BIGINT NOT NULL, "MAX_INACTIVE_INTERVAL" INT NOT NULL, "EXPIRY_TIME" BIGINT NOT NULL, "PRINCIPAL_NAME" VARCHAR(100) ); CREATE TABL...
<gh_stars>1000+ ALTER TABLE {$NAMESPACE}_passphrase.passphrase_credential ADD authorPHID VARBINARY(64) NOT NULL;
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Июн 26 2017 г., 12:44 -- Версия сервера: 10.1.19-MariaDB -- Версия PHP: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
<gh_stars>0 -- -- Zrzut danych tabeli `shop` -- INSERT INTO `shop` (`id`, `name`, `slug`, `url`, `image`, `author_id`, `created_at`, `updated_at`, `status`) VALUES (2, 'House', 'house', 'http://www.house.pl', 'house.jpg', 1, '2017-12-20 21:05:55', NULL, 1), (3, 'Cropp', 'cropp', 'https://www.cropp.com', 'cropp.jpg', 1...
<filename>mudisal.sql /* SQLyog Enterprise - MySQL GUI v8.18 MySQL - 5.6.16-log : Database - purmusic_mudi ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; ...
create table Request.MaintenanceRequest( MaintenanceRequestId int primary key clustered IDENTITY(1,1) not null, MaintenanceTypeID int not null, ApartmentUnitId int not null, ManagerId int not null, Submitted datetime not null, Desctiption nvarchar(250) not null, [Guid] UNIQUEIDENTIFIER DEFAULT NEWID()...
<filename>selectQueries.sql show databases; use world_innodb; select name,population from city where name = "portland"; Select name, population from country order by population asc limit 10; Select count(*) from countrylanguage where percentage > 50; Select count(*) from city where population < 30000; Select coun...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 15, 2021 at 01:16 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- 微信支付商户信息 CREATE TABLE wechat_pay ( id INT PRIMARY KEY AUTO_INCREMENT, app_id VARCHAR(255) NOT NULL COMMENT '微信公众号id', app_secret VARCHAR(255) NOT NULL COMMENT '微信公众号密钥', mch_id VARCHAR(255) NOT NULL COMMENT '微信商户号', `key` VARCHAR(255) NOT NULL COMMENT '微信支付API安...
<gh_stars>0 CREATE TABLE notes ( id serial NOT NULL, title varchar(100), body varchar(4000) );
DROP DATABASE IF EXISTS dbtodo; CREATE DATABASE dbtodo; USE dbtodo; CREATE TABLE users ( username VARCHAR(30) NOT NULL, passwrd VARCHAR(30) NOT NULL, PRIMARY KEY(username) ) ENGINE=INNODB; CREATE TABLE tasks ( id INTEGER(4) AUTO_INCREMENT, title VARCHAR(30) NOT NULL, done BOOLEAN NOT NULL DEFA...
<filename>quanlithoigiangiangday.sql -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th5 09, 2020 lúc 04:17 PM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSA...
-- update_foregin_key_for_expenses_categories -- ALTER TABLE `phppos_expenses` DROP FOREIGN KEY `phppos_expenses_ibfk_3`; ALTER TABLE `phppos_expenses` ADD CONSTRAINT `phppos_expenses_ibfk_3` FOREIGN KEY (`category_id`) REFERENCES `phppos_expenses_categories`(`id`);
CREATE TABLE Site ( sid int PRIMARY KEY, name varchar(100) NOT NULL, phone_number varchar(11), hours varchar(1000), street varchar(100) NOT NULL, postal_code varchar(6) NOT NULL, cid int NOT NULL, province varchar(100) NOT NULL, country varchar(100) NOT NULL, service varchar(100) NOT NULL, lat var...
<reponame>makozi/World-Populations-<gh_stars>1-10 /* years are covered by the dataset*/ /* SELECT DISTINCT year FROM population_years SELECT COUNT(DISTINCT year) from population_years; /*The largest population size for Gabon in this dataset SELECT * FROM population_years WHERE country = 'Gabon' ORDER BY population...
USE clinical_merge_v5_240919; -- Our data is updated frequently, so we index it by the date of retrieval. -- Risk factor definitions are versioned on GitHub (https://github.com/zietzm/phenotype_standardization/) SET @date = '2020-06-15'; SET @version_hash = '66ec50743325ded678ab71acb1794a7f25bf8a85'; CREATE TABLE IF ...
<reponame>PapooSoftware/PapooCMS DROP TABLE IF EXISTS `XXX_plugin_301_config`; ##b_dump## CREATE TABLE `XXX_plugin_301_config` ( `redirect301_plugin_id` int(11) NOT NULL AUTO_INCREMENT, `redirect301_plugin_redirect_liste` text, PRIMARY KEY (`redirect301_plugin_id`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSE...
CREATE TABLE [Warehouse].[StockItemStockGroups]( [StockItemStockGroupID] [int] NOT NULL, [StockItemID] [int] NOT NULL, [StockGroupID] [int] NOT NULL, [LastEditedBy] [int] NOT NULL, [LastEditedWhen] [datetime2](7) NOT NULL, CONSTRAINT [PK_Warehouse_StockItemStockGroups] PRIMARY KEY CLUSTERED ( [StockItemStockGr...
CREATE TABLE [dbo].[Learner] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [Uln] BIGINT NULL, [GivenNames] NVARCHAR(250) NULL, [FamilyName] NVARCHAR(250) NULL, [UkPrn] INT NULL, [StdCode] INT NULL, [LearnStartDate] DATETIME2 NULL, [EpaOrgId] NVARCHAR(50) NULL, [FundingMod...
<filename>src/test/resources/sql/drop_role/088e476b.sql -- file:privileges.sql ln:1049 expect:true DROP ROLE regress_schemauser1
<filename>src/test/resources/sql/set/4fb93468.sql -- file:btree_index.sql ln:59 expect:true set enable_seqscan to false
<filename>src/test/resources/liquibase/harness/change/expectedSql/cloudspanner/addNotNullConstraint.sql<gh_stars>10-100 ALTER TABLE posts ALTER COLUMN inserted_date date NOT NULL
-- Add down migration script here COMMENT ON COLUMN exercise_service_info.public_spec_endpoint_path IS NULL; COMMENT ON COLUMN exercise_service_info.submission_iframe_path IS NULL; ALTER TABLE exercise_service_info DROP COLUMN public_spec_endpoint_path;
use brihaspati; ALTER TABLE TURBINE_USER DROP OBJECTDATA;
<filename>server/src/main/resources/db/migration/V1__Create_Initial_Tables.sql -- This is the SQL Script for the initial schema of the Server database. The -- Server access will be a MariaDB access that runs on a remote server. -- If developing locally use flywayMigrate gradle task to update your -- particular local M...
<gh_stars>1-10 \set VERBOSITY terse \pset format unaligned -- predictability SET synchronous_commit = on; DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t3; CREATE TABLE t1 (id int PRIMARY KEY); CREATE TABLE t2 (id int PRIMARY KEY); CREATE TABLE t3 (id int PRIMARY KEY); CREATE TABLE s1 (id in...
<gh_stars>1-10 Select * fROM green_table offset 1 row;
--[er]test upper function with decimal select upper(1.23) from db_root order by 1;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 26-Nov-2016 às 06:57 -- Versão do servidor: 10.1.16-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<filename>db/seeds.sql INSERT INTO burgers (burger_name) VALUES ("Bacon Burger"); INSERT INTO burgers (burger_name) VALUES ("Cheese Burger"); INSERT INTO burgers (burger_name) VALUES ("Onion Burger"); INSERT INTO burgers (burger_name, devoured) VALUES ("Autumn Burger", true); INSERT ...
<reponame>badal/jacman-core -- ========================================================== -- = THIS FILE IS FOR INFO ONLY !! ITS CODE IS NOT USE HERE = -- ========================================================== -- This file is a template and it content reflectS the one on drupal server SELECT smf_profile.uid ...
<filename>acs2010_5yr/import_geoheader.sql COPY acs2010_5yr.tmp_geoheader FROM '/mnt/tmp/acs2010_5yr/geog/g20105ak.txt' WITH ENCODING 'latin1'; COPY acs2010_5yr.tmp_geoheader FROM '/mnt/tmp/acs2010_5yr/geog/g20105al.txt' WITH ENCODING 'latin1'; COPY acs2010_5yr.tmp_geoheader FROM '/mnt/tmp/acs2010_5yr/geog/g20105ar.txt...
<reponame>CSCfi/antero IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'api.muu_henkilosto_amk')) EXEC dbo.sp_executesql @statement = N' CREATE VIEW api.muu_henkilosto_amk AS SELECT 1 AS a ' GO ALTER view api.muu_henkilosto_amk as select [Tilastovuosi] = vuosi ,[Henkilöstöryhmä] = null ,Koulutu...
<filename>184. Department Highest Salary/solution.sql<gh_stars>1-10 # Write your MySQL query statement below SELECT Department.Name AS Department, Employee.Name AS Employee, Salary FROM Employee JOIN Department ON Employee.DepartmentId = Department.Id WHERE (Employee.DepartmentId, Salary) IN (...
DROP TABLE IF EXISTS wallet_item;
<gh_stars>1-10 CREATE DATABASE IF NOT EXISTS `pocketponics` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `pocketponics`; -- MySQL dump 10.13 Distrib 8.0.18, for macos10.14 (x86_64) -- -- Host: localhost Database: pocketponics -- ------------------------------------------------------ -- Server version 5.7.29-0ubun...
CREATE TABLE TOWN ( ID LONG AUTO_INCREMENT NOT NULL, NAME VARCHAR(40) NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE CAR ( ID LONG AUTO_INCREMENT NOT NULL, LABEL VARCHAR(100) NOT NULL, CLEAN BOOLEAN NOT NULL, PRIMARY KEY (ID) ); CREATE TABLE PERSON_ADDRESS ( ID LONG AUTO_INCREMENT NOT NULL...
<filename>toDoList.sql CREATE TABLE NOTES(id serial primary key,note text NOT NULL,timing timestamp);
<gh_stars>0 select * from "Lores" where "key" = ${key} order by "version" desc limit 1;
USE [BOAT] GO /****** Object: Table [DV5_Controlling].[BoatExt_Authorizations] Script Date: 12.06.2021 11:18:55 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [DV5_Controlling].[BoatExt_Authorizations]( [Username] [nvarchar](70) NOT NULL, [Allowed] [bit] NOT NULL, CONSTRAIN...
<filename>itsm-account-service-provider/src/test/resources/data/postgre/import-data.sql<gh_stars>0 insert into t_um_user (id, name,passwd,login_name,phone,email,department_name,remark) values (uuid_generate_v4(),'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin', '743847333', '<EMAIL>', 'admin', '系统管理员用户'); INSERT I...
<filename>resources/fixtures.sql -- SQLite compatible INSERT INTO users (id, first_name, last_name) VALUES (1, 'Test', 'User'); INSERT INTO products (id, name) VALUES (1, 'Test Product');