sql
stringlengths
6
1.05M
<reponame>ShanukaKrishan/Green-Field-Website -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Jan 05, 2021 at 05:12 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone =...
--! Previous: sha1:c6b398b4ba13a8bb86387ad079e66497bfc37d37 --! Hash: sha1:e0b31f13d939aa397e1f3af06063d822c41119d7 --! Message: create-details -- Create details table -- Undo if rerunning DROP TABLE IF EXISTS details; -- Create table CREATE TABLE details ( id SERIAL PRIMARY KEY, category_id ...
<gh_stars>0 -- ---------------------------------------------------------------------------------------------------- -- Author : <NAME> (s709081) -- Description : In Delta Loading, the Batch ID (or Batch Sequence ID) links the master_control_table -- and the job_control_table. In the Delta Loading ...
CREATE TABLE ACCOUNT(ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), USERNAME VARCHAR(10) NOT NULL PASSWORD VARCHAR(8) NOT NULL, NICKNAME VARCHAR(20) NOT NULL, DESCR VARCHAR(500), PHOTO VARCHAR(256) PRIMARY KEY (ID),UNIQUE (USERNAME, NICKNAME)); CREATE TABLE POST(ID INTEGER ...
DROP TABLE history; CREATE TABLE history ( sender_email text, receiver_email text, PRIMARY KEY (sender_email, receiver_email) )
-- MySQL dump 10.16 Distrib 10.1.41-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: FinalCourse -- ------------------------------------------------------ -- Server version 10.1.41-MariaDB-0+deb9u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
<gh_stars>10-100 CREATE TABLE `t_xt_yh_gnjs` ( `JS_DM` varchar(32) DEFAULT NULL, `YH_ID` varchar(32) DEFAULT NULL, `uuid` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`uuid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- nomenclature gpdl (parcelle) INSERT INTO gpdl VALUES ('0','la parcelle n''appartient pas à une pdl'); INSERT INTO gpdl VALUES ('1','la parcelle est référence de pdl (identifie une pdl)'); INSERT INTO gpdl VALUES ('2','la parcelle est composante de pdl mais ne l''identifie pas'); -- nomenclature gnexps (suf) IN...
BEGIN; ALTER TABLE import_dbf_b_a ADD COLUMN IF NOT EXISTS id SERIAL; ALTER TABLE import_dbf_poz ADD COLUMN IF NOT EXISTS id SERIAL; ALTER TABLE import_dbf_b_u ADD COLUMN IF NOT EXISTS id SERIAL; ALTER TABLE import_dbf_ses ADD COLUMN IF NOT EXISTS id SERIAL; ALTER TABLE import_dbf_sys ADD COLUMN IF NOT EXISTS id S...
<reponame>NCIP/cabio<gh_stars>1-10 /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ DROP PUBLIC SYNONYM CYTOGENIC_LOCATION_CYTOBAND / -- -- CYTOGENIC_LOCATION_CYTOBAND (Synonym) -- -- Dependencies: -- CYTOGENIC_LO...
CREATE TABLE ipclive.wp_ipc_representations ( `ID` int(11) NOT NULL AUTO_INCREMENT, `ProjectName` text, `CaseReference` varchar(10) DEFAULT NULL, `DataID` int(11) DEFAULT NULL, `UniqueReference` varchar(32) NOT NULL, `WebReference` int(11) DEFAULT NULL, `PersonalName` text, `Representative` varchar(255)...
CREATE VIEW [Comp].[DAS_Compliance_Report] AS SELECT CN.DASAccountID ,ISNULL(CAST(Acc.Name as nvarchar(100)),'NA') as DASAccountName ,ISNULL(LD.PayrollYear, '2999') AS PayrollYear ,ISNULL(LD.PayrollMonth, '99') AS PayrollMonth ,CN.CalendarYear ,CN.CalendarMonth ,SUM(ISNULL(LevyDeclaredInMonth, 0)...
<reponame>Divyansh1996/Travel_Beyond_Limits<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2018 at 05:58 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TR...
prompt Importing table t_migraciones... set feedback off set define off insert into t_migraciones (ID_MIGRACION, DESCRIPCION) values ('mig_000026', 'Acción de calificar aplicación de Android.-'); prompt Done.
<reponame>ayypermata/sparkup<filename>sparkup.sql<gh_stars>0 /* Navicat Premium Data Transfer Source Server : Xampp 5.4 Source Server Type : MySQL Source Server Version : 50539 Source Host : localhost:3306 Source Schema : sparkup Target Server Type : MySQL Target Server Version...
<gh_stars>0 CREATE TABLE IF NOT EXISTS tableTest (id INTEGER PRIMARY KEY, name STRING, city STRING); DELETE FROM tableTest; INSERT INTO tableTest VALUES (1, "Roger", "Oslo"); INSERT INTO tableTest VALUES (2, "Lorie", "Paris"); INSERT INTO tableTest VALUES (3, "Alphonse", "Nice"); INSERT INTO tableTest VALUES (4, "Gin...
<reponame>TechnoSpace92/tree-manager -- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 31, 2015 at 03:19 PM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2021 at 09:42 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>practice.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 18, 2019 at 11:16 PM -- Server version: 5.7.24 -- PHP Version: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
<reponame>EL-BID/nexso CREATE procedure [dbo].[dnn_Dashboard_GetDbInfo] AS SELECT ServerProperty('ProductVersion') AS ProductVersion, ServerProperty('ProductLevel') AS ServicePack, ServerProperty('Edition') AS ProductEdition, @@VERSION AS SoftwarePlatform
CREATE TABLE Binary( TestCaseName VARCHAR(500) PRIMARY KEY, NonNullableBinary BINARY NOT NULL, NonNullableVarBinary VARBINARY NOT NULL, NullableBinary BINARY, NullableVarBinary VARBINARY )
<gh_stars>1-10 DO $$ DECLARE admin_role_id INT; BEGIN INSERT INTO permission VALUES ('responsibilities.review'); SELECT id INTO admin_role_id FROM role WHERE name = 'admin'; INSERT INTO role_permission VALUES (admin_role_id, 'responsibilities.review'); END $$;
<gh_stars>1-10 -- Up CREATE VIEW TextList ( id, post, date, like, content ) AS SELECT Text.id, Post.id, Post.date, Post.like, Text.content FROM Post, Text WHERE Post.id = Text.post; CREATE VIEW FileList ( id, post, date, like, type, url ) AS S...
<gh_stars>1-10 with data as ( select * from city left join ( select cityId, sum(case when genderId = 2 then 1 else 0 end) as "Male", sum(case when genderId = 1 then 1 else 0 end) as "Female", sum(case when genderId = 3 then 1 else 0 end) as "Transgendered", sum(case when genderId = 0 the...
/* Formatted on 8/23/2012 1:52:11 PM (QP5 v5.215.12089.38647) */ CREATE TABLE PROTECT.CUSTOMATTRIBUTESRECORD_LOG AS SELECT * FROM PROTECT.CUSTOMATTRIBUTESRECORD WHERE 1 = 2; ALTER TABLE PROTECT.CUSTOMATTRIBUTESRECORD_LOG ADD (LOGTIME TIMESTAMP(6)); CREATE OR REPLACE TRIGGER PROTECT.CUSTOMATTRIBUTESRECORD_...
<reponame>Shuttl-Tech/antlr_psql -- file:create_misc.sql ln:172 expect:true INSERT INTO f_star (class, c, f) VALUES ('f', 'hi jeff'::name, '(111111,333333),(222222,444444)'::polygon)
delimiter // set names utf8 // drop procedure if exists _get_sql_token; // create procedure _get_sql_token( in p_text text charset utf8 , inout p_from int unsigned , inout p_level int , out p_token text charset utf8 , in language_mode enum ('sql', 'script', 'routine') ...
<reponame>dram/metasfresh CREATE INDEX IF NOT EXISTS m_costdetail_m_inventoryline_id ON m_costdetail (m_inventoryline_id) ; CREATE INDEX IF NOT EXISTS m_costdetail_c_invoiceline_id ON m_costdetail (c_invoiceline_id) ; CREATE INDEX IF NOT EXISTS m_costdetail_c_orderline_id ON m_costdetail (c_orderline_id)...
<filename>microservicio/src/main/resources/db/migration/DDL/V1.1__schema.sql create table cliente ( id int(11) not null auto_increment, nombre varchar(100) not null, estado varchar(45) not null, primary key (id) ); create table pelicula ( id int(11) not null auto_increment, nombre varchar(100) not null, formato...
DEFINE PERCENT_LIMIT=90 SET NEWPAGE 0 SET SPACE 2 SET PAGESIZE 9999 SET LINESIZE 9999 SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET MARKUP HTML OFF SPOOL OFF COLUMN MAX_USED% HEAD 'MAX|USED%' FORMAT 99 COLUMN ALLOC_USED% HEAD 'ALLOC|USED%' FORMAT 99 COLUMN MAXGROWTHMB HEAD 'MAXGROWTH|MB' FORMAT 999999 COLUMN USEDMB ...
<filename>sql/medium-data-design.sql CREATE TABLE profile ( profileId BINARY(16) NOT NULL, profileActivationToken CHAR(32), profileHandle VARCHAR(32) NOT NULL, profileEmail VARCHAR(128) NOT NULL, profileHash CHAR(128) NOT NULL, profileSalt CHAR(64) NOT NULL, UNIQUE(profileEmail), UNIQUE(profileHandle), PRIMARY...
DROP VIEW IF EXISTS work_info_view; CREATE OR REPLACE VIEW work_info_view AS SELECT id, guid, work_id, well_authorization_number, contracted_work_type, contracted_work_status_code, planned_start_date, planned_end_date, well_file_review, abandonment_plan,mob_demob_site,camp_lodging,permanent_plugging_wellbore, cut_and_...
<reponame>onwebbe/agile-repo CREATE DATABASE IF NOT EXISTS `agileretro` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `agileretro`; -- MySQL dump 10.13 Distrib 8.0.18, for macos10.14 (x86_64) -- -- Host: 10.129.126.28 Database: agileretro -- ------------------------------------------------------ -- Server version ...
<reponame>grmpfhmbl/SnwGateway<filename>conf/initial-data/sensor_types.sql<gh_stars>0 ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------------------------------------------------...
INSERT INTO `adm_ci_type` (`id_adm_ci_type`, `name`, `description`, `id_adm_tenement`, `table_name`, `status`, `catalog_id`, `ci_global_unique_id`, `seq_no`, `layer_id`, `zoom_level_id`, `image_file_id`,`ci_state_type`) VALUES (1, '日志', '日志', 1, 'adm_log_test', 'notCreated', 130, NULL, 1, 5, 9, 3, 162), (2, 'System',...
INSERT INTO country_region(id, short_name_cn, code) VALUES(100000000, '中国', '1'); INSERT INTO country_region(id, short_name_cn, code) VALUES(101000000, '阿尔巴尼亚', 'ALB'); INSERT INTO country_region(id, short_name_cn, code) VALUES(102000000, '阿尔及利亚', 'DZA'); INSERT INTO country_region(id, short_name_cn, code) VALUES(10300...
<gh_stars>1-10 USE EVENT_QUEUE; GO -- TABLES IF OBJECT_ID ('EVENTS_Q','U')IS NOT NULL DROP TABLE EVENTS_Q; GO CREATE TABLE EVENTS_Q ( id INT NOT NULL PRIMARY KEY IDENTITY(1,1), txt VARCHAR(100) ) GO -- PROCEDURES IF OBJECT_ID ('MASSUPDATE','P')IS NOT NULL DROP PROCEDURE MASSUPDATE; GO CREATE PROCEDURE MASSUPDAT...
<reponame>mageddo/java-examples<gh_stars>10-100 CREATE TABLE CUSTOMER ( IDT_CUSTOMER INT, NAM_CUSTOMER VARCHAR(255), COD_PASSWORD VARCHAR(255) ); CREATE TABLE CUSTOMER_ROLE( IDT_CUSTOMER INT, IND_ROLE VARCHAR(255) ); INSERT INTO customer VALUES (1, 'admin', 'admin'); INSERT INTO customer_role VALU...
-- Add repository groups update gha_repos set repo_group = name; update gha_repos set repo_group = 'IO Visor' where org_login = 'iovisor'; update gha_repos set repo_group = 'Mininet' where org_login = 'mininet'; update gha_repos set repo_group = 'Open Networking' where org_login = 'opennetworkinglab'; update gha_repos...
<gh_stars>100-1000 DROP TABLE IF EXISTS `test_step_screenshots`; CREATE TABLE `test_step_screenshots` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `test_step_id` BIGINT(20) NOT NULL, `test_step_result_id` BIGINT(20) DEFAULT NULL, `test_device_result_id` BIGINT(20) NOT NULL, `tes...
create table tree(id int, parentid int, text varchar(32)); insert into tree values(1,null,'A'); insert into tree values(2,null,'B'); insert into tree values(3,1,'AA'); insert into tree values(4,1,'AB'); insert into tree values(5,2,'BA'); insert into tree values(6,2,'BB'); insert into tree values(7,6,'BBA'); select le...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/then/Opengauss_Function_Keyword_Then_Case0019.sql -- @testpoint:opengauss关键字then(保留),作为外部数据源名 --关键字不带引号-失败 drop data source if exists then; create data source then; --关键字带双引号-成功 drop data source if exists "then"; create data source "then"; drop ...
CREATE FUNCTION [dspUtil].[RedactMobileNumber] (@MobileNumber TSTRING) RETURNS TSTRING BEGIN SET @MobileNumber = dspUtil.FormatMobileNumber(@MobileNumber); IF (@MobileNumber IS NOT NULL) RETURN '*********' + SUBSTRING(@MobileNumber, LEN(@MobileNumber) - 1, 2); RETURN NULL; END;
<filename>WebServer/BakaRoot_GanQuyenAgent.sql<gh_stars>0 ----Ngay NguoiChinhSua Version----- ----01/12/2016 <NAME>em 1.0 ----01/12/2016 <NAME> Diem 1.1 DROP PROCEDURE [dbo].[sp_FindMerchantAvailable] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE proc [dbo].[sp_FindMerchantAvailable] @AgentCod...
<reponame>geophile/sql-layer<filename>fdb-sql-layer-core/src/test/resources/com/foundationdb/sql/optimizer/rule/find-groups/simple-outer.sql<gh_stars>0 SELECT * FROM customers LEFT JOIN orders ON customers.cid = orders.cid LEFT JOIN items ON orders.oid = items.oid
-- ---------- Initialized DB and create mysql account ----------- -- --------------------------------------------------------
<reponame>beleo/devilbox-dolphin DELETE FROM `sys_objects_actions` WHERE `Type` = 'bx_articles' AND `Caption` = '{share_articles_title}'; INSERT INTO `sys_objects_actions`(`Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`, `bDisplayInSubMenuHeader`) VALUES ('{share_articles_title}', 'share', '', '{share_arti...
-- See https://stackoverflow.com/questions/21547/in-sql-server-how-do-i-generate-a-create-table-statement-for-a-given-table/18619504#18619504 -- You could try in is sqlfiddle: http://sqlfiddle.com/#!6/e3b66/3/0 SELECT obj.name ,'CREATE TABLE [' + obj.name + '] (' + LEFT(cols.list, LEN(cols.list) - 1 ) +...
CREATE OR REPLACE PACKAGE quilt AUTHID CURRENT_USER IS -- PL/SQL code coverage tool - start/stop profiling using DBMS_PROFILER -- Enables Code Coverage reporting for schema/object -- -- %param owner owner of the object -- %param object_name object name accepts LIKE expressions with \ as escape, op...
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 11, 2020 at 05:56 AM -- Server version: 5.5.54 -- PHP Version: 5.3.10-1ubuntu3.26 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
<gh_stars>1-10 INSERT INTO video(teamid, description, private, filename, category1, category2, category3, title) VALUES (1, 'Where to Kick after Point Scored?', 1, 'Clip01N.mp4', 'W Bulldogs', '', '', 'WB Kickout1'); INSERT INTO video(teamid, description, private, filename, category1, category2, category3, title) VALU...
<reponame>timshadel/subdivision-list CREATE TABLE subdivision_SI (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_SI" ("id", "name", "level") VALUES (E'SI-001', E'Ajdovšcina', E''); INSERT INTO "subdivision_SI" ("id", "name", "level") VALUES (E'SI-195',...
<reponame>dauspratama99/cofee-website -- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 09, 2021 at 09:34 PM -- Server version: 5.7.36-log -- PHP Version: 7.3.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ti...
SET @sName = 'bx_protean'; -- SETTINGS UPDATE `sys_options_types` SET `icon`='bx_protean@modules/boonex/protean/|std-icon.svg' WHERE `name`=@sName; UPDATE `sys_options` SET `value`='1024' WHERE `name`=CONCAT(@sName, '_page_width'); SET @iMixId = (SELECT `id` FROM `sys_options_mixes` WHERE `type`=@sName AND `name`='...
<reponame>CarlosSalda/taskcafe ALTER TABLE task_label DROP CONSTRAINT task_label_task_id_fkey; ALTER TABLE task_label ADD CONSTRAINT task_label_task_id_fkey FOREIGN KEY (task_id) REFERENCES task(task_id) ON DELETE CASCADE;
<gh_stars>1-10 -- 2021-10-15T06:09:38.691912100Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Table_Process SET AD_Window_ID=NULL,Updated=TO_TIMESTAMP('2021-10-15 09:09:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_Process_ID=541010 ;
<reponame>GerardoEsterilla/ConductorElegido<filename>microservicio/infraestructura/src/main/resources/sql/conductor/eliminar.sql DELETE FROM conductores WHERE id = :id;
drop table characters;
<reponame>AadityaDev/mstodo<filename>db/db.sql create database testdb; create table testdb.todo ( Id bigint unsigned auto_increment, Description varchar(255), Completed smallint, primary key (Id) ); INSERT INTO `testdb`.`todo` (`Description`) VALUES ('fd');
<reponame>tycooon/pg_roaringbitmap<filename>sql/roaringbitmap.sql -- -- Test roaringbitmap extension -- CREATE EXTENSION if not exists roaringbitmap; -- Test input and output set roaringbitmap.output_format='array'; set extra_float_digits = 0; select '{}'::roaringbitmap; select ' { } '::roaringbitmap; select...
ALTER TABLE poster DROP COLUMN file_size; ALTER TABLE comment_to_person DROP COLUMN read;
CREATE TABLE `tblCurrency` ( `CurrencyId` int(11) NOT NULL AUTO_INCREMENT, `CompanyId` int(11) NOT NULL, `Code` varchar(3) COLLATE utf8_unicode_ci NOT NULL, `Description` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `Status` tinyint(3) unsigned NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT ...
<reponame>sevdalin/Software-University-SoftUni<gh_stars>0 SELECT COUNT(Id) FROM WizzardDeposits
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 20, 2016 at 08:58 PM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
USE msdb ; GO EXEC dbo.sp_add_job @job_name = N'NightlyBackups' ; GO
[15] /*SQL LIKE Operator*/ /*The SQL LIKE Operator The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards often used in conjunction with the LIKE operator: % - The percent sign represents zero, one, or multiple characters _ - The underscore represents a singl...
create table users ( id serial primary key, user_name varchar(255) not null, password varchar(20) not null, type char not null, unique (user_name), check (type in('A', 'P')) ); alter table users drop column password; alter table users add column password int; update users set password=<PASSWO...
# Distribution: distribution en
<gh_stars>1-10 SELECT DISTINCT `d`.`hDirectoryId`, `d`.`hDirectoryPath`, `d`.`hDirectoryCreated`, `d`.`hDirectoryLastModified`, `hDirectoryProperties`.`hDirectoryIsApplication`, `hDirectoryProperties`.`hFileIconId`, `hDirectoryProperties`....
CREATE TABLE clientes ( clientes int identity(1,1), nombre varchar (20) not null, apellido varchar (50) not null, Edad varchar (3), Activo bit, cedula date, sexo varchar (1), pago decimal (9,2), telefono decimal (11), PRIMARY KEY (clientes), ) --FOREING KEY (campo_llave) REFERENCE tabla2 (campo_llave*tabla2) drop table...
<reponame>aliostad/deep-learning-lang-detection<gh_stars>10-100 INSERT INTO models(id,brands_id,model) VALUES (1,1,'Kalina'); INSERT INTO models(id,brands_id,model) VALUES (2,1,'Granta'); INSERT INTO models(id,brands_id,model) VALUES (3,2,'M3'); INSERT INTO models(id,brands_id,model) VALUES (4,3,'A6'); INSERT INTO mode...
CREATE USER qatrack_reports WITH PASSWORD '<PASSWORD>';
<gh_stars>0 create database jsk_test template jsk; \c jsk_test;
<filename>training-php-1-php-202109-1-master/database/app_web1.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3306 -- Thời gian đã tạo: Th4 20, 2022 lúc 09:44 AM -- Phiên bản máy phục vụ: 10.4.10-MariaDB -- Phiên bản PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO...
<gh_stars>0 select myname from (select st.name myname, sal.salary mysal, fr.friend_id frid, fsal.salary frsal from students st join packages sal on st.id=sal.id join friends fr on st.id=fr.id join packages fsal on fr.friend_id = fsal.id) as sf where sf.frsal > sf.mysal order by sf.frsal;
<reponame>tharangar/k8s-webserver<gh_stars>1-10 DELETE FROM labels WHERE module = 'StudentBehaviours' and field = 'openemis_no' and en = 'OpenEMIS ID'; DELETE FROM labels WHERE module = 'StaffBehaviours' and field = 'openemis_no' and en = 'OpenEMIS ID'; DELETE FROM `db_patches` WHERE `issue` = 'PHPOE-1592'; -- revert...
DROP DATABASE go_rest_api; CREATE DATABASE go_rest_api; USE go_rest_api; CREATE TABLE users ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, password VARCHAR(120) NOT NULL, age INT NOT NULL ); CREATE UNIQUE INDEX uidx_email ON users (email);
-- ====================================================================== -- geonames-sqlite.sql : Script for creating tables from geonames.org -- ====================================================================== -- V 1.2 2017 by <NAME> <<EMAIL>> -- ============================================================...
<filename>database/altertablesis-20170912.sql<gh_stars>0 use payroll; ALTER TABLE employee_master ADD emp_uocuserid int(11) NOT NULL AFTER emp_uocid; ALTER TABLE employee_master ADD emp_ddouserid int(11) NOT NULL AFTER emp_uocuserid;
CREATE TABLE `mst_mediaprog` ( `mediaprog_id` varchar(14) NOT NULL , `mediaprog_name` varchar(90) NOT NULL , `mediaprog_descr` varchar(90) , `mediaprog_season` int(4) NOT NULL DEFAULT 0, `mediaprog_episode` int(4) NOT NULL DEFAULT 0, `mediaprog_isdisabled` tinyint(1) NOT NULL DEFAULT 0, `projbudget...
ALTER TABLE "public"."Group" ADD COLUMN "accessStart" timestamptz; ALTER TABLE "public"."Group" ALTER COLUMN "accessStart" DROP NOT NULL;
-- Apague de emp2 os empregados que recebam menos que a média de salários dos -- empregados do seu departamento (use subconsulta correlacionada). -- eliminacao DELETE FROM emp2 e2 WHERE e2.sal < (SELECT AVG(e1.sal) FROM emp2 e1 WHERE e1.ndep = e2.ndep) ; -- verificar tabela SELECT nemp, nome, e...
-- MySQL Workbench Synchronization -- Generated: 2017-06-05 13:29 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Daniel 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...
<filename>db/db.sql DROP DATABASE IF EXISTS PROD; CREATE DATABASE PROD; USE PROD;
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 25, 2018 at 10:10 AM -- 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_SET_CLIENT */...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Des 2020 pada 11.09 -- Versi server: 10.4.16-MariaDB -- Versi PHP: 7.3.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<filename>examples/script-part3.sql CREATE TABLE parameters ( param_id UNIT PRIMARY KEY, deadline INT, shipname TEXT ); CREATE TABLE ship ( ship_id bigserial PRIMARY KEY, name text NOT NULL, cargo bigint, latitude DOUBLE PRECISION, longitude DOUBLE PRECISION, length bigint, draft bigin...
/* Replace with your SQL commands */ CREATE TABLE games ( "id" serial NOT NULL, code text, currentRound bigint ); CREATE TABLE answers ( "id" serial NOT NULL, gameCode text, author text, answer text, round bigint );
CREATE FULLTEXT INDEX ON [HumanResources].[JobCandidate] ([Resume] LANGUAGE 1033) KEY INDEX [PK_JobCandidate_JobCandidateID] ON [AW2016FullTextCatalog]; GO CREATE FULLTEXT INDEX ON [Production].[Document] ([DocumentSummary] LANGUAGE 1033, [Document] TYPE COLUMN [FileExtension] LANGUAGE 1033) KEY ...
CREATE TABLE `transfer_tasks` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `subscription_id` bigint(20) unsigned NOT NULL, `source_id` int(11) unsigned NOT NULL, `batch_id` bigint(20) unsigned NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `transfer` (`subscription_id`), KE...
/** * Author: rellu * Created: 05.01.2021 */ SELECT bh.*, l.* FROM `rellu_essentials`.`block_history` bh INNER JOIN `rellu_essentials`.`location` l ON bh.location_fk = l.id WHERE bh.createdby = ? AND bh.deletedby IS NULL ORDER BY bh.id DESC ;
<reponame>roaddee/dulkemot<gh_stars>1-10 INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`)...
 CREATE TABLE [dbo].[hlsystemplategroup]( [id] INT NOT NULL, [name] NVARCHAR(255) NOT NULL, [sortorder] INT NOT NULL, [parentid] INT NOT NULL, [agentid] INT NOT NULL, [objectdefname] NVARCHAR(255) NOT NULL, CONSTRAINT [PK_hlsystemplategroup] PRIMARY KEY CLUSTERED ( [id] ASC ) )
USE [Hotels_DB] GO /****** Object: Table [dbo].[Users] Script Date: 07.12.2020 11:38:57 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Users]( [user_id] [int] NOT NULL, [country_id] [int] NOT NULL, [phoneNumber_int] [int] NOT NULL, [email_str] [nvarchar](max) NOT NULL, [login_s...
USE [ORMS] GO /****** Object: UserDefinedFunction [dbo].[FN_GET_MODEL_NAME] Script Date: 01/17/2011 10:14:11 ******/ SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER ON GO If Exists (Select * From sysobjects Where id = object_id(N'[dbo].[FN_GET_MODEL_NAME]') And OBJECTPROPERTY(id, N'IsScalarFunction') =...
DROP TABLE IF EXISTS "api_listomx_declaraciones_balanzacredito" CASCADE; CREATE TABLE IF NOT EXISTS "api_listomx_declaraciones_balanzacredito" ( "id" NUMERIC NULL, "tax" TEXT NULL, "credit_balance_type" TEXT NULL, "reduction_tax" TEXT NULL, "current" BOOL NULL, "filing" NUMERIC NULL, "due" DECIMAL NULL, "origination_i...
-- 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'Adding foreign keys to [edfi].[Student]' G...
{%- macro timestamp_from_parts(date_field, time_field) -%} {%- if target.type == 'snowflake' -%} timestamp_from_parts({{ date_field }}, {{ time_field }}) {%- elif target.type == 'sqlserver' -%} datetimefromparts( datepart(year, {{ date_field }}), datepart(month, {{ date_field }}), datep...
<filename>src/main/resources/data-postgresql.sql INSERT INTO public."user"(user_id, user_full_name) VALUES (0, '<NAME>'); INSERT INTO public."user"(user_id, user_full_name) VALUES (1, '<NAME>'); INSERT INTO public."user"(user_id, user_full_name) VALUES (2, '<NAME>'); INSERT INTO public."user"(user_id, user_full_name...
<reponame>guptashubham101/app1 # --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table book_issued ( id serial not null, date_of_submission timestamp, date_of_issue timestamp, is_submitted ...