sql
stringlengths
6
1.05M
update tb_orders set status = 'Delivered' where id = @P1@;
<gh_stars>0 DROP TYPE kind; DROP TABLE feedbacks CASCADE;
SELECT SUM(city.population) FROM city LEFT JOIN country ON city.countrycode = country.code WHERE country.continent = 'Asia'
alter table "public"."translations" rename column "branch_language_id" to "project_language_id";
<reponame>zia/sg_local<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2016 at 07:12 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>database/migrations/4_country_table.sql CREATE TABLE IF NOT EXISTS `country` ( `id` bigint(64) NOT NULL, `name` varchar(255) NOT NULL, `created_at` timestamp NULL, `updated_at` timestamp NULL, `deleted_at` timestamp NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT...
CREATE TABLE [dbo].[User] ( [Id] INT IDENTITY (1, 1) NOT NULL, [FirstName] VARCHAR (255) NOT NULL, [LastName] VARCHAR (255) NOT NULL, [Password] VARCHAR (255) NOT NULL, [Email] VARCHAR (255) NOT NULL, [DateAdded] DATETIME2 (7) DEFAULT (getdate()) NOT NULL, [IsDeleted]...
<reponame>GGOutfitters/zato-build<filename>ansible/roles/configure_oracle/files/create_zato_db.sql CREATE DATABASE zato USER SYS IDENTIFIED BY password USER SYSTEM IDENTIFIED BY password USER zato IDENTIFIED BY zato LOGFILE GROUP 1 ('/u01/logs/zato/redo01a.log','/u02/logs/zato/redo01b.log') SIZE 100M BL...
-- 2011 to 2016 interpolation -- combination of areal and population based weighting -- w = sum (P_k / P_s)(A_kint / A_t) -------- set up source data -- set up source blocks table with source ctuid drop table if exists x_2011_db_in; CREATE TABLE x_2011_db_in AS ( SELECT dbuid, dauid, ctuid, cmauid, cast(dbpop as ...
<filename>admin/rwlschema.sql<gh_stars>10-100 -- create the RWP*Load Simulator repository user -- -- Copyright (c) 2021 Oracle Corporation -- Licensed under the Universal Permissive License v 1.0 -- as shown at https://oss.oracle.com/licenses/upl/ -- History -- bengsig 09-sep-2020 - Rename file, modify password -- b...
select CAST('1' as int)
-------------------------------------------------------- -- SAM database core data -- last update: 21/11/2021 -------------------------------------------------------- USE sam; -- Create default groups INSERT INTO sam.group (designation) VALUES ("Administrators"); INSERT INTO sam.group (designation) VALUES ("Users"); ...
-- Populating ACCESS INSERT INTO hub.ACCESS1 ( ID, DESC1 ) VALUES ( 1, 'Read' ); INSERT INTO hub.ACCESS1 ( ID, DESC1 ) VALUES ( 2, 'Write' ); -- Populating DIFFICULTY INSERT INTO hub.DIFFICULTY ( ID, DESC1 ) VALUES ( 1, '1 Major' ); INSERT INTO hub.DIFFICULTY ( ID, DESC1 ) VALUES ( 2, '2 Hard' );...
-- // CLOUD-65515 new Azure connector -- Migration SQL that makes the change goes here. UPDATE account_preferences SET platforms = replace(platforms, 'AZURE_RM', 'AZURE'); UPDATE credential SET cloudplatform='AZURE' WHERE cloudplatform='AZURE_RM'; UPDATE network SET cloudplatform='AZURE' WHERE cloudplatform='AZURE_RM'...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 06, 2018 lúc 07:10 PM -- Phiên bản máy phục vụ: 10.1.29-MariaDB -- Phiên bản PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
select concat(tables.name, concat('.', columns.name)) from sys.columns, sys.tables where columns.table_id = tables.id and system = false;
<filename>script/e6_migration/24_tickets.sql<gh_stars>100-1000 alter table tickets rename column user_id to creator_id; alter table tickets rename column ip_addr to creator_ip_addr; alter table tickets rename column admin_id to handler_id; alter table tickets rename column claim_id to claimant_id; alter table tickets a...
<gh_stars>0 SELECT b1.name, count(*) FROM site AS s, so_user AS u1, tag AS t1, tag_question AS tq1, question AS q1, badge AS b1, account AS acc WHERE s.site_id = u1.site_id AND s.site_id = b1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = q1.s...
<filename>migration/example/V02.sql ALTER TABLE `user` ADD COLUMN `username` VARCHAR(64) NOT NULL UNIQUE AFTER `id`;
<filename>unfantome.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 26, 2021 at 08:43 AM -- Server version: 5.7.31 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>0 CREATE TABLE [dbo].[Product] ( Id int identity not null, Number int not null, [Name] nvarchar(255) not null, Price decimal(10,2) not null, constraint PK_Product_Id primary key (Id), )
<reponame>MrK493/surtidor_ELPASO CREATE DATABASE IF NOT EXISTS db_surtido_r CHARACTER SET UTF8 COLLATE utf8_unicode_ci; USE db_surtido_r; CREATE TABLE IF NOT EXISTS migrations( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, migration VARCHAR(255) COLLATE utf8mb4_unicode_ci NOT NULL, batch INT NOT NULL ); CR...
--select 1; shutdown defrag;
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2021 at 08:56 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<gh_stars>1-10 insert into persons (id) values ('4234'); insert into persons (id) values ('4235'); insert into persons (id) values ('4236'); insert into persons (id) values ('4237'); insert into persons (id) values ('4238'); --down delete from persons where id = '4234'; delete from persons where id = '4235'; delete fr...
DO $$ BEGIN IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_NAME = 'fk_user_equipment__user_id') THEN ALTER TABLE user_equipment DROP CONSTRAINT fk_user_equipment__user_id; END IF; END; $$;
<filename>db/db/3table/level/MB_ACCT_AGREEMENT.sql drop table if exists MB_ACCT_AGREEMENT; /*==============================================================*/ /* Table: MB_ACCT_AGREEMENT */ /*==============================================================*/ create table MB_ACCT_A...
-- rowid.test -- -- execsql { -- INSERT INTO t2(a,b) VALUES(2147483647,99); -- INSERT INTO t2(b) VALUES(11); -- SELECT b FROM t2 ORDER BY b; -- } INSERT INTO t2(a,b) VALUES(2147483647,99); INSERT INTO t2(b) VALUES(11); SELECT b FROM t2 ORDER BY b;
<gh_stars>0 Select num_choice, alpha, concepts, answer, second_choice, media1 from question where question_ = :question_
create schema xres ; create sequence entity_id_seq ; create sequence type_id_seq ; create sequence template_id_seq ; create sequence concept_id_seq ; create sequence id_seq ; create sequence rel_id_seq minvalue 1000 ; create sequence concept_system_config_key_seq as integer maxvalue 2147483647 ; create table...
<gh_stars>0 -- ---------------------------- -- 20201019/update.sql, 20201114/update.sql, 20201126/update.sql 合并 -- ---------------------------- -- ---------------------------- -- Alter Table layout_inst -- ---------------------------- ALTER TABLE `layout_inst` ADD COLUMN `showName` varchar(30) CHARACTER SET utf8 COLL...
<reponame>AonanHe/LeetCode # Problem: Swap Salary # Difficulty: Easy # Runtime: 154 ms # Date: 2019/10/01 # Author: <NAME> # Write your MySQL query statement below UPDATE salary SET sex = CASE sex WHEN 'm' THEN 'f' ELSE 'm' END
CREATE OR REPLACE VIEW avg_pc_vpu_block AS SELECT block::NUMERIC, year, AVG(pcvpu) as avg_pcvpu FROM pc_vpu -- we use the un-truncated pcvpu because we want the construction signal at the block level GROUP BY block, year ORDER BY block, year; CREATE OR REPLACE VIEW block_neighbors AS SELECT n1.block::NUMERIC, ne...
CREATE SCHEMA IF NOT EXISTS frec CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER IF NOT EXISTS 'frec_admin'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON frec.* TO 'frec_admin'@'localhost' WITH GRANT OPTION; GRANT CREATE USER ON *.* TO 'frec_admin'@'localhost';
<reponame>jbeecham/ovirt-engine DELETE FROM roles_groups WHERE role_id = '00000000-0000-0000-0001-000000000002' -- PowerUser role AND action_group_id NOT IN (1300, -- LOGIN 1, -- CREATE_VM 200, -- CREATE_TEMPLATE 1100 -- CREATE_DISK ...
<reponame>MCZbase/DDL CREATE TABLE "TRANS" ( "TRANSACTION_ID" NUMBER NOT NULL ENABLE, "AUTH_AGENT_ID" NUMBER, "TRANS_DATE" DATE, "TRANS_ENTERED_AGENT_ID" NUMBER, "RECEIVED_AGENT_ID" NUMBER, "CORRESP_FG" NUMBER, "TRANSACTION_TYPE" VARCHAR2(18 CHAR) NOT NULL ENABLE, "NATURE_OF_MATERIAL" VARCHAR2(4000...
<gh_stars>1-10 INSERT INTO public.link (link_url, name, media_type) VALUES ('https://www.komoot.de/tour/123456','Sample Tour','KOMOOT_TOUR');
DROP TABLE IF EXISTS UNIVERSAL_PAGE
<reponame>mosoft521/lemon ALTER TABLE DISK_ACL ADD COLUMN ENTITY_REF VARCHAR(50); ALTER TABLE DISK_ACL ADD COLUMN ENTITY_CATALOG VARCHAR(50); ALTER TABLE DISK_ACL ADD COLUMN MASK INT; ALTER TABLE DISK_ACL ADD COLUMN RULE_ID BIGINT; ALTER TABLE DISK_ACL ADD CONSTRAINT FK_DISK_ACL_RULE FOREIGN KEY(RULE_ID) REFE...
-- @testpoint:openGauss保留关键字from作为作为表空间名, --不带引号,合理报错 drop tablespace if exists from; CREATE TABLESPACE from RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --加双引号,创建成功 drop tablespace if exists "from"; CREATE TABLESPACE "from" RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --清理环境 drop tablespace "fro...
<reponame>opengauss-mirror/Yat -- @testpoint: interval分区,分区方式partition_less_than_item的语法校验,合理报错 drop table if exists partition_table_001; -- 未遵循:每个分区都需要指定一个上边界。 create table partition_table_001( col_1 smallint check (col_1 > 0), col_2 char(30) default '<NAME>', col_3 int, col_4 date primary key, col_5 boolean, col_6 n...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Feb 20, 2021 at 04:19 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
<filename>database/mypos (1).sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Okt 2020 pada 16.44 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `exam_prep`; USE exam_prep; CREATE TABLE IF NOT EXISTS `users` ( `user_id` INT(11) NOT NULL AUTO_INCREMENT, `username` VARCHAR(255) NOT NULL, `password` VARCHAR(255) NOT NULL, `first_name` VARCHAR(255) NULL DEFAULT NULL, `last_name` VARCHAR(255) NULL DEFAULT NULL, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 06, 2021 at 10:40 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>CRUD-sistema-cadastrar/produto.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Tempo de geração: 02-Nov-2020 às 00:35 -- Versão do servidor: 8.0.21 -- versão do PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00...
/** * BD Instant Office * BD225179 16'17 * * @author <NAME> (ist181045) * @author <NAME> (ist181586) * @author <NAME> (ist181700) */ -- a) Quais os espaços com postos que nunca foram alugados? SELECT DISTINCT morada, codigo_espaco FROM Posto WHERE (morada, codigo) NOT IN ( SELECT DISTINCT morada, codigo F...
<gh_stars>0 DECLARE c INT; BEGIN SELECT COUNT(*) INTO c FROM all_tables t WHERE t.owner = UPPER('edw_data') AND t.table_name = UPPER('contact_advisor_l'); if c = 1 then execute immediate 'drop table edw_data.contact_advisor_l'; end if; end; / CREATE TABLE edw_data.contact_advisor_l ( hk_contact_advis...
select * from it20g2016.trafika.Menadzer where menadzerID=#[message.inboundProperties.'http.uri.params'.ID];
ALTER TABLE AGENDA ADD FK_EMPRESA INT NOT NULL; ALTER TABLE AGENDA ADD CONSTRAINT FK_EMPRESA_ID FOREIGN KEY (FK_EMPRESA) REFERENCES EMPRESA (ID);
<filename>src/test/resources/sql/insert/ba894281.sql -- file:rules.sql ln:183 expect:true insert into rtest_v1 values (2, 13)
CREATE OR REPLACE VIEW patent_family AS SELECT p.family_id as id, p.family_docket as docket, jsonb_agg(p) as patents FROM patent p WHERE p.kind = 'v' GROUP BY p.family_id, p.family_docket;
<reponame>scossin/Achilles<filename>inst/sql/sql_server/analyses/11.sql -- 11 Number of non-deceased persons by year of birth and by gender --HINT DISTRIBUTE_ON_KEY(stratum_1) select 11 as analysis_id, CAST(P.year_of_birth AS VARCHAR(255)) as stratum_1, CAST(P.gender_concept_id AS VARCHAR(255)) as stratum_2, cast...
insert into tipo (definicion, cantPersonasMax) values (:definicion, :cantPersonasMax)
<reponame>samuel14luis/LogInJava use test; create table usuario( id int primary key auto_increment, pass varchar(25), nombre varchar(50) ); insert into usuario(pass,nombre) values('<PASSWORD>','0333152014'); insert into usuario(pass,nombre) values('<PASSWORD>','0<PASSWORD>'); insert into usuario(pass,nombre) va...
<reponame>viswaratha12/dbwarden<filename>DMS5/V_Settings_Files_Entry.sql<gh_stars>1-10 /****** Object: View [dbo].[V_Settings_Files_Entry] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Settings_Files_Entry] AS SELECT ID, Analysis_Tool AS AnalysisTool, File_Name ...
BEGIN; CREATE TABLE out_of_band_migrations ( id serial primary key, team text not null, component text not null, description text not null, introduced text not null, deprecated text, progress float default 0 not null, created ...
/* Demo: Practicing with ARRAYs and STRUCTs in BigQuery based off of: https://www.youtube.com/watch?v=0d5hGVQOrQ0&feature=youtu.be&t=2228 1. Open BigQuery: https://console.cloud.google.com/bigquery 2. Create a dataset titled ecommerce (if not done already) 3. Copy and Paste the below queries and use Execute Select...
INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (11135,539,2,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (11135,562,87,0); INSERT INTO persediaan (id_transaksi, id_barang, jumlah, harga) VALUES (11135,575,440,0); INSERT INTO persediaan (id_transaksi, id_barang, juml...
-- Could not auto-generate a down migration. -- Please write an appropriate down migration for the SQL below: -- UPDATE room."Mode" -- SET name = 'VIDEO_CHAT' -- WHERE name = 'BREAKOUT';
<reponame>sozezzo/sqlwatch CREATE TYPE [dbo].[utype_sqlwatch_sys_dm_os_memory_clerks] AS TABLE ( [type] varchar(60), [memory_node_id] smallint, [single_pages_kb] bigint, [multi_pages_kb] bigint, [virtual_memory_reserved_kb] bigint, [virtual_memory_committed_kb] bigint, [awe_allocated_kb] bigint, [shared_memory...
# the main purpose of this database is to be as fast as possible # so that main engine is MyISAM with static tables everywhere # it's porbably an old style/concept but when there are # many geo-objects in it might be handy # queries and structures are also kept simple # to preserve possible portability over SQLite # or...
DELETE FROM flights WHERE price <= 20; UPDATE cities SET image = 'bratislava', info = 'Bratislava is the capital and largest city of Slovakia. Officially, the population of the city is about 440,000; however, it is estimated to be more than 660,000 - approximately 150% of the official figures. Bratislava is in ...
DROP TABLE IF EXISTS books; CREATE TABLE books( id SERIAL PRIMARY KEY, author VARCHAR(255), title VARCHAR(255), isbn VARCHAR(255), image_url VARCHAR(500), descriptions VARCHAR(2000) );
<gh_stars>0 -- ============================================================ -- 基础表格 -- ============================================================ -- 基础数据下拉菜单 ALTER TABLE `config_menu` ADD CONSTRAINT fk_config_menu FOREIGN KEY(`category_id`) REFERENCES config_category(`id`); -- 基础曲线点 ALTER TABLE `basic_curve_...
<reponame>thesandeepkushwaha/project_test<filename>test.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2019 at 10:46 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STA...
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 11-11-2014 a las 20:27:35 -- Versión del servidor: 5.5.40-0ubuntu0.14.04.1 -- Versión de PHP: 5.5.9-1ubuntu4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
<gh_stars>0 select work.name,work_type.name from work_type,work inner join( select work.type, max(length(work.name)) as mx from work group by work.type ) as newtab on newtab.type = work.type and mx = length(work.name) Where newtab.type = work_type.id order by work.type asc, work.name asc;
<reponame>axeal/contacts-ivr<filename>db.sql CREATE TABLE user ( user_id INTEGER PRIMARY KEY, username TEXT, f_name TEXT, l_name TEXT, password TEXT, msisdn TEXT, PIN TEXT ); CREATE TABLE contact ( contact_id INTEGER PRIMARY KEY, user_id INTEGER NOT NULL, f_name TEXT, l_na...
<gh_stars>10-100 create table user_fiddles ( id serial primary key, user_id int not null, schema_def_id int not null, query_id int, last_accessed timestamp without time zone default now(), num_accesses int default 1, show_in_history smallint default 1 ); ALTER TABLE ONLY user_fiddles ADD CONSTRAINT schema_...
-- exclusive2.test -- -- execsql {PRAGMA cache_size=1000;} PRAGMA cache_size=1000;
-- file:rangefuncs.sql ln:302 expect:true SELECT * FROM (VALUES (1),(2),(3)) v(r), generate_series(10+r,20-r) WITH ORDINALITY AS f(i,o)
-- -- delimiter // drop function if exists _update_mxarray_max_key // create function _update_mxarray_max_key( array_id int unsigned, array_max_key int unsigned ) returns int unsigned comment '(internal) updated max-key indicator' language SQL deterministic no sql sql security invoker main_body: begin set ...
<reponame>dram/metasfresh -- 2020-04-20T14:34:39.829Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Sequence SET CurrentNext=10000,Updated=TO_TIMESTAMP('2020-04-20 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Sequence_ID=554856 ; -- 2020-04-20T14:35:09.861Z -- I forgot to set...
CREATE TABLE tb_servico( codigo serial PRIMARY KEY NOT NULL, os INT NOT NULL, titulo VARCHAR(100) NOT NULL, dt_entrada DATE , dt_homologacao DATE , dt_commit DATE , dt_venc DATE , evento_id INT NOT NULL, id_usuario INT, FOREIGN KEY (evento_id) REFERENCES tb_status(evento_id), FOREIGN KEY (id_...
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS agg_datum_hourly_pkey_new ON solaragg.agg_datum_hourly (node_id, ts_start, source_id) TABLESPACE solarindex; ALTER INDEX da_datum_pkey RENAME TO da_datum_pkey_old; ALTER INDEX da_datum_pkey_new RENAME TO da_datum_pkey; DROP INDEX da_datum_pkey_old; /* List chunks with t...
<reponame>darylrobbins/omnibus-chef-server -- Copyright 2013 Opscode, Inc. All Rights Reserved. -- -- This file is provided to you 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....
<reponame>manelpm10/SymfonyCrm SET FOREIGN_KEY_CHECKS=0; TRUNCATE TABLE invoice_detail; TRUNCATE TABLE invoice; TRUNCATE TABLE contact; TRUNCATE TABLE company; TRUNCATE TABLE fos_user; TRUNCATE TABLE province; TRUNCATE TABLE country; #Country INSERT INTO country (id, name) VALUES (1, 'Spain'); #Province INSERT I...
<filename>getyii.sql /* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50624 Source Host : localhost:3306 Source Database : getyii Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2016-04-20 17:47:33 */ ...
CREATE TABLE precinct_early_vote_sites (results_id BIGINT REFERENCES results (id) NOT NULL, precinct_id BIGINT, early_vote_site_id BIGINT);
-- adds fieldsOrder column --- ALTER TABLE Lookup ADD fieldsOrder MEDIUMBLOB DEFAULT NULL;
<gh_stars>0 create table images ( id int auto_increment primary key, image_raw mediumblob null, filename varchar(255) null, mime varchar(255) null );
<gh_stars>0 CREATE DATABASE `cb_malldb`; USE `cb_malldb`; # 轮播图管理表 CREATE TABLE `cb_banner`( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) DEFAULT NULL COMMENT 'Banner 名称,通常作为标识', `description` VARCHAR(255) DEFAULT NULL COMMENT 'Banner 描述', `delete_time` INT(11) UNSIGNED DEFAULT NULL, `updat...
-- CreateTable CREATE TABLE `Usuarios` ( `id` INTEGER NOT NULL AUTO_INCREMENT, `nome` VARCHAR(191) NOT NULL, `sobrenome` VARCHAR(191), `email` VARCHAR(191) NOT NULL, `senha` VARCHAR(191) NOT NULL, `CPF` INTEGER NOT NULL, UNIQUE INDEX `Usuarios_nome_key`(`nome`), PRIMARY KEY (`id`) ) DEF...
USE burgers_db; INSERT INTO burgers (burger_name, devoured) VALUES ("Chili Burger", false), ("Hawaii Burger", false), ("Bacon cheeseburger", false), ("Barbecue burger", false);
CREATE TABLE IF NOT EXISTS `QueuedPresentation` ( `Id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `Created` DATETIME NULL, `LastUpdated` DATETIME NULL, `Title` NVARCHAR(256) NULL, `OrderIndex` INTEGER NOT NULL );
Drop database if exists studentmanagement; create database studentmanagement; USE studentmanagement; CREATE TABLE if not exists student ( student_id INT auto_increment PRIMARY KEY, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, contact VARCHAR(50), course VARCHAR(50) NOT NULL ...
-- -- -- AUTHOR: <NAME> -- AUTHOR: <NAME> -- DATE: 20/05/21 -- -- ---------------------------------------- CREATE OR REPLACE PACKAGE crudState IS FUNCTION getState (p_Id IN state.id%TYPE) RETURN state%ROWTYPE; FUNCTION putState (p_id IN state.id%TYPE, p_updated_at IN state.updated_at%TYPE, p_created_at IN st...
WITH NowAndPrevious AS ( SELECT TemperatureM0 = Temperature, TemperatureM1 = LAG(Temperature, 1) OVER (PARTITION BY IotHub.ConnectionDeviceId LIMIT DURATION(ss, 5) WHEN Temperature IS NOT NULL), TemperatureM2 = LAG(Temperature, 2) OVER (PARTITION BY IotHub.ConnectionDeviceId LIMIT DURATION(...
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 03-12-2019 a las 01:32:20 -- Versión del servidor: 10.1.31-MariaDB -- Versión de PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
insert into contacts values (1,"Louise","shreya","<EMAIL>","xyz","<EMAIL>"), (2,"Sumit","shreya","<EMAIL>","abc","<EMAIL>");
<gh_stars>1-10 CREATE PROCEDURE [dbo].[RetrieveUserGroupsByJoinType] ( @joinType TINYINT ) AS BEGIN SELECT UG.[Id], UG.[FullName], UG.[JoinType], UG.[NormalizedFullName], UG.[ShortName], UG.[NormalizedShortName], UG.[SlackWorkspaceId] FROM [dbo].[UserGroup] UG INNER JOIN [dbo].[JoinType] JT ON [...
INSERT INTO user(id, email, password) SELECT 1, "<EMAIL>", <PASSWORD>" WHERE NOT EXISTS (SELECT 1 FROM user where id = 1); INSERT INTO user_roles(user_id, role_id) SELECT 1, 1 WHERE NOT EXISTS (SELECT 1 FROM user_roles WHERE user_id = 1); INSERT INTO user(id, email, password) SELECT 2, "<EMAIL>", <PASSWORD>" WHERE NO...
<reponame>Edgar-Huhaoran/BackendService<filename>src/main/resources/sql/201606110008_add_column_in_vehicle.sql<gh_stars>0 ALTER TABLE vehicle ADD COLUMN car_frame varchar(1024);
version https://git-lfs.github.com/spec/v1 oid sha256:d363214c5786b8b5c13f2eb9363f6e2cd8fe6acb53336f79398498b58099ceb9 size 25222
ALTER TABLE `tec_settings` ADD `rtl` TINYINT(1) NULL, ADD `print_img` TINYINT(1) NULL; ALTER TABLE `tec_settings` CHANGE `version` `version` VARCHAR(10) NOT NULL DEFAULT '4.0.13'; UPDATE `tec_settings` SET `version` = '4.0.13' WHERE `setting_id` = 1;
/* Navicat Premium Data Transfer Date: 26/08/2021 12:56:08 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure -- ---------------------------- CREATE TABLE IF NOT EXISTS `user` ( `id` bigint(64) NOT NULL COMMENT '主键', `tenant_id` varchar(12) CHARACTER SET ut...
<reponame>sivakumar-g-liaison/alloy-conveyor-server -- -- Copyright 2014 Liaison Technologies, Inc. -- This software is the confidential and proprietary information of -- Liaison Technologies, Inc. ("Confidential Information"). You shall -- not disclose such Confidential Information and shall use it only in -- accorda...
<reponame>sagasu/AdventureWorks2019Queries --Displaying hierarchy in organization by following recursion between employee and manager With EmpHie as( select EmployeeId, ManagerId, 1 as hierarchy from [AdventureWorks2019].[HumanResources].[EmployeeDemo] where ManagerId is null union all select em.EmployeeId, ...
CREATE TABLE CODE_GENERIC ( CG_ID NUMERIC(18) NOT NULL DEFAULT nextval('S_CODE_GENERIC_PK'), TYPE VARCHAR(20) NOT NULL, NAME VARCHAR(20) NOT NULL, DESCRIPTION VARCHAR(40) NOT NULL, ACTIVE_FLAG CHAR(1) DEFAULT 'Y' NOT NULL CHECK (ACTIVE_FLAG in ('Y','N') ), ...