sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Client: localhost:3306 -- Généré le: Lun 06 Mars 2017 à 10:27 -- Version du serveur: 5.5.54-cll -- Version de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
CREATE TABLE if not exists guests( email text PRIMARY KEY, first_name text, last_name text, address text, phone text, table_name text, rsvp boolean );
<reponame>epmd-edp/admin-console create table if not exists stage_codebase_docker_stream ( cd_stage_id integer not null constraint cd_stage_fk references cd_stage, input_codebase_docker_stream_id integer not null constraint input_codebase_docker_stream_fk references codebas...
<filename>kata-files/lesson2/hsql/expected/MYLARGESCHEMA/sp/SP519.sql CREATE PROCEDURE SP519(OUT MYCOUNT INTEGER) SPECIFIC SP519_31657 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE247;SELECT COUNT(*)INTO MYCOUNT FROM TABLE242;SELE...
-- @Description UAOCS MVCC readserial and alter + vacuum -- Transaction 1 of 2 (alter) -- insert into sto_uaocs_mvcc_status (workload, script) values('readserial_concurr_alter_vacuum', 't1_alter_tuples'); select count(*) as only_visi_rows from sto_uaocs_mvcc_vacuum_alter_serial; set gp_select_invisible = true; sel...
<gh_stars>0 SELECT t2.b FROM t1, t2 WHERE t1.a = t2.a; UPDATE t1 SET b = t2.b FROM t2 WHERE t1.a = t2.a;
<filename>yii2viorg.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Фев 03 2021 г., 13:30 -- Версия сервера: 10.4.11-MariaDB -- Версия PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jan 17, 2022 at 11:33 PM -- 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_CHARACTER_S...
-- MySQL Workbench Synchronization -- Generated: 2016-09-14 13:47 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Fredy 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>software/cabio-database/scripts/sql_loader/no_longer_used/indexes/zstg_interactions.lower.sql /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ create index ZSTG_INTIONS_SOURCE_NAM_lwr on ZSTG_INTERACTION...
<filename>openGaussBase/testcase/SQL/DDL/partition/Hash/Opengauss_Function_DDL_Partition_Hash_Case0064.sql<gh_stars>0 -- @testpoint: Hash分区表结合 with 子句(COMPRESSION=YES)合理报错 --step1:创建hash分区表 expect:合理报错 drop table if exists t_partition_hash_0064_01; create table t_partition_hash_0064_01 (id numb...
-- @testpoint: Hash分区表结合列约束(default)默认值和数据类型匹配 --step1:创建hash分区表 expect:成功 drop table if exists partition_hash_tab; create table partition_hash_tab (id int default '123', name varchar2(20), filename varchar2(255), text varchar2(2000)) partition by hash(id) (partiti...
-- @testpoint:opengauss关键字sqlwarning(非保留),作为视图名 --关键字explain作为视图名,不带引号,创建成功 CREATE or replace VIEW sqlwarning AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view sqlwarning; --关键字explain作为视图名,加双引号,创建成功 CREATE or replace VIEW "sqlwarning" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default...
<filename>pg.sql BEGIN; CREATE TABLE IF NOT EXISTS settings ( usertype text, userid text, settings jsonb, PRIMARY KEY(usertype, userid) ); CREATE TABLE IF NOT EXISTS auditlog ( entitytype text, entityid text, metadata jsonb, PRIMARY KEY(entitytype, entityid) ); CREATE INDEX IF NOT EXISTS auditlog_tea...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 07, 2018 at 06:37 AM -- Server version: 10.1.8-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
-- Vile Familiars UPDATE `creature_template` SET `faction`=14 WHERE `entry`=3101; -- Felstalker UPDATE `creature_template` SET `faction`=14 WHERE `entry`=3102; -- Dwukk <Journeyman Blacksmith> UPDATE `creature_template` SET `subname`='Journeyman Blacksmith' WHERE `entry`=3174; -- Krunn <Miner> UPDATE `creature_templ...
<filename>sql/6.sql<gh_stars>0 /* More_JOIN_operations */ # 1 SELECT id, title FROM movie WHERE yr=1962 # 2 SELECT yr FROM movie WHERE title='Citizen Kane' # 3 SELECT id, title, yr FROM movie WHERE title LIKE '%Star Trek%' ORDER BY yr # 4 SELECT id FROM actor WHERE name = '<NAME>' # 5 SELECT id FROM...
<reponame>Chandler8/On-Stage /* Warnings: - The migration will add a unique constraint covering the columns `[email]` on the table `User`. If there are existing duplicate values, the migration will fail. - The migration will add a unique constraint covering the columns `[username]` on the table `User`. If there ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Sep 2021 pada 10.11 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<reponame>Kabhishek18/fastofresh -- phpMyAdmin SQL Dump -- version 4.6.6deb5ubuntu0.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 27, 2021 at 05:05 PM -- Server version: 5.7.32-0ubuntu0.18.04.1 -- PHP Version: 7.2.24-0ubuntu0.18.04.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET tim...
CREATE TABLE `user_site` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `identity_id` int(11) unsigned NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `identity_id` (`identity_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
<reponame>Phyrra/JavaSql<filename>src/test/resources/grammar/query/SelectMultExpression.sql select 1 * 2
CREATE TABLE Conversations ( Convo_num int NOT NULL AUTO_INCREMENT, Client_ID varchar(8), WS_Version varchar(16), First_name varchar(255), Last_name varchar(255), Patient_choice int, Input_method varchar(8), Mic varchar(8), Exp_group varchar(16), Raw_score TEXT, Uuid varchar(...
create table public.TAB_QUESTION ( "COL_ID" INT, "COL_USER_ID" INT, "COL_RATING" INT, "COL_TITLE" TEXT, "COL_DESCRIPTION" TEXT, "COL_NUM_ANSWER" INT, "COL_CORRECT_ANSWER" INT, "COL_VIEWS" INT, "COL_CREATED" DATE, "COL_MODIFIED" DATE ); insert into public.TAB_QUESTION ("COL_ID", "COL_USER_ID", "COL_RATING", "...
<filename>scripts/drop-perf.sql<gh_stars>1-10 -- offers api -- https://github.com/topfreegames/offers -- -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license -- Copyright © 2017 Top Free Games <<EMAIL>> REVOKE ALL ON SCHEMA public FROM offers_perf; DROP DATABASE IF EXISTS offers_perf; ...
<filename>resources/migrations/20200917070453-remove-linked-profiles.down.sql<gh_stars>1-10 ALTER TABLE users DROP COLUMN google_profiles_id; --;; CREATE TABLE IF NOT EXISTS linked_profiles( id bigserial primary key, user_id bigint not null references users(id), profile_type text not null, profile_id bi...
<filename>QueryPreprocessing/queries/train/X_train_sql/13c.sql SELECT MIN(cn.name) AS producing_company, MIN(miidx.info) AS rating, MIN(t.title) AS movie_about_winning FROM company_name AS cn, company_type AS ct, info_type AS it, info_type AS it2, kind_type AS kt, movie_companies AS mc, movie_info AS mi, movie_info_id...
<reponame>Zyres/AE_OneDB /* SQLyog Professional v13.1.7 (64 bit) MySQL - 8.0.21 : Database - asc_world_new ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /...
SELECT sum(salary) FROM Employee;
<gh_stars>1-10 CREATE TABLE `etags` ( `path` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_unicode_ci', `etag` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_unicode_ci', `cached_until` DATETIME NOT NULL, `created_at` DATETIME NOT NULL, `updated_at` DATETIME NOT NULL, PRIMARY KEY (`path`) USING BTREE ) COLLATE = 'utf8mb4_unicod...
<filename>disc/disc12.sql -- 2.1 SELECT Name FROM records WHERE Supervisor = "<NAME>"; -- 2.2 SELECT * FROM records WHERE Supervisor = name -- 2.3 SELECT Name FROM records WHERE Salary > 50000 ORDER BY Name; -- 3.1 SELECT m.Day, m.time FROM records as r, meetings as m WHERE r.division = m.division AND r.Supervisor...
alter table honor add index honor_name(`name`);
<filename>src/test/resources/sql/_unknown/199f5cf3.sql -- file:brin.sql ln:347 expect:false count := array_length(idx_ctids, 1)
-- Local test migration. -- This will be run on development environments. -- It should mirror what you intend to apply on prod/staging/experimental -- DO NOT include any sensitive data. -- This migration allows a cert to have read/write access to all orders and the prime API. -- The Orders API and the Prime API use cl...
INSERT INTO users (username, password, role, enabled, account_locked, first_name, last_name, email, deleted, created_at, account_activated) VALUES ('system', '', 'SYSTEM', true, false, 'SYSTEM', UPPER('appstract'), '', false, '2000-01-01', true); -- haslo: test INSERT INTO users (username, password, role, enabled, acc...
--============================================================================== -- GPI - <NAME> -- desc get all deployed target types in the Repository --============================================================================== set verify off set linesize 130 pagesize 300 recsep off prompt prompt get all...
USE QLBongDa GO -- 2A.1 SELECT MACT, HOTEN, SO, VITRI, NGAYSINH, DIACHI FROM CAUTHU -- 2A.2 SELECT MACT, HOTEN, SO, VITRI, NGAYSINH, DIACHI FROM CAUTHU WHERE SO = 7 AND VITRI = N'Tiền vệ' -- 2A.3 SELECT TENHLV, NGAYSINH, DIACHI, DIENTHOAI FROM HUANLUYENVIEN -- 2A.4 SELECT MACT, HOTEN, SO, VITRI, NGA...
DELIMITER / ALTER TABLE COMM_BATCH_CORRESP ADD CONSTRAINT COMM_BAT_CORR_IAC_BAT_CORR_FK FOREIGN KEY (IACUC_BATCH_CORRESP_TYPE_CODE) REFERENCES IACUC_BATCH_CORRESPONDENCE (BATCH_CORRESPONDENCE_TYPE_CODE) / DELIMITER ;
-- etldoc: layer_water_name[shape=record fillcolor=lightpink, style="rounded,filled", -- etldoc: label="layer_water_name | <z0_8> z0_8 | <z9_13> z9_13 | <z14_> z14+" ] ; CREATE OR REPLACE FUNCTION layer_water_name ( bbox geometry, zoom_level integer, pixel_width numeric, pixel_height numeric ) ...
/* Source Server : guanshan Source Server Version : 50543 Source Host : 172.16.17.32:3306 Source Database : creditcard_survey Target Server Type : MYSQL Target Server Version : 50543 File Encoding : 65001 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- --...
<reponame>591384568/soft173<filename>tb_class.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: 127.0.0.1:3306 -- 生成日期: 2020-06-11 03:02:48 -- 服务器版本: 5.7.26 -- PHP 版本: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
/* [df:title] Example for Cursor and Paging select [df:description] This SQL is an example for both cursor-select and manual-paging of outside-SQL */ -- #df:entity# -- +cursor+ -- !df:pmb extends Paging! -- !!AutoDetect!! /*IF pmb.isPaging()*/ select pc.PURCHASE_ID , pc.MEMBER_ID , mb.MEMBER_NAME ...
<reponame>Gifar/aplikasi-tagihan -- tagihan duplikat select d.nomor_debitur, d.nama, t.status_pembayaran, t.nomor, t.nilai_tagihan, t.status_tagihan, v.nomor, t.id from debitur d inner join tagihan t on t.id_debitur = d.id inner join virtual_account v on v.id_tagihan = t.id where v.nomor in (select nomor from virtual_a...
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
BEGIN TRANSACTION; CREATE TEMPORARY TABLE floating_ips_backup ( created_at DATETIME, updated_at DATETIME, deleted_at DATETIME, deleted BOOLEAN, id INTEGER NOT NULL, address VARCHAR(255), fixed_ip_id INTEGER, project_id VARCHAR(255), host VARCHA...
<filename>SEQUENCE/IDENTIFICATION_AGENT_SEQ.sql CREATE SEQUENCE "IDENTIFICATION_AGENT_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1363650 CACHE 20 NOORDER NOCYCLE
-------------------------------------------------------------------------------------------------------------------- -- Database trigger to audit all of the DDL changes made to the database. -------------------------------------------------------------------------------------------------------------------- CREATE TRIG...
drop table if exists dist_01670; drop table if exists data_01670; create table data_01670 (key Int) engine=Null(); create table dist_01670 (key Int) engine=Distributed(test_shard_localhost, currentDatabase(), data_01670) settings bytes_to_throw_insert=1; system stop distributed sends dist_01670; -- first batch is alwa...
<gh_stars>1-10 CREATE DATABASE IF NOT EXISTS `cncounter` DEFAULT CHARACTER SET utf8mb4; USE `cncounter`; DROP USER IF EXISTS 'cncounter'; CREATE USER 'cncounter'@'%' IDENTIFIED BY 'cncounter'; -- grant all privileges on cncounter.* to 'cncounter'@'%' identified by 'cncounter'; grant all privileges on cncounter.* to cnc...
<reponame>kuro-channel/knowledge-1 SELECT * FROM SURVEY_CHOICES ORDER BY INSERT_DATETIME %s;
<reponame>ynsingh/brihCI use login; alter table authorities add code varchar(255) after id; update authorities set code='D' where id=1; update authorities set code='FO' where id=2; update authorities set code='DRA' where id=3; update authorities set code='ARA' where id=4; update authorities set code='ACC' whe...
<filename>openGaussBase/testcase/SQL/CAST/Opengauss_Function_Cast_Case0007.sql -- @testpoint: int2类型转换 --查询源数据类型和目标数据类型间的转化方式: --'e':表示只能进行显式转化(使用CAST或::语法)。 --'i':表示只能进行隐式转化。 --'a':表示类型间同时支持隐式和显式转化。 --转化方法: --'f':使用castfunc字段中指定的函数进行转化。 --'b':类型间是二进制强制转化,不使用castfunc。 select typname,proname,castcontext,castmethod from...
-- Task 2: Determine the origin points for your fishnet. SELECT ST_XMin(ST_Extent(geom)) AS xmin, ST_YMin(ST_Extent(geom)) AS ymin FROM wq.water_bodies where gid=2; --Write your answers below: --"-87.191764154002" --"30.446688493003" -- Task 4: Calculate the lengths of each side of the individual cells within your ...
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: micool -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
<reponame>harliyan/herdianto -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 15, 2019 at 04:27 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone =...
<reponame>ryo-manba/sql-study -- 5.2 INSERT文の実行結果の予測 INSERT INTO ViewRenshu5_1 VALUES ('ナイフ', 300, '2009-11-02'); -- A.商品idがNULLなのでnot NULL制約を満たさずにエラーを返す
<gh_stars>0 USE [explorer] GO /****** Oggetto: SqlProcedure [dbo].[spexp_DeleteExplorerTasks] Data script: 09/02/2021 00:46:46 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO DROP PROCEDURE [dbo].[spexp_DeleteExplorerTasks]; GO CREATE PROCEDURE [dbo].[spexp_DeleteExplorerTasks] @id int = 0 , @keyid ...
use rollAut; update rollout set name = "A very new Rollout (Change #3)" where id = 120; commit;
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 24, 2017 at 11:14 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
-- phpMyAdmin SQL Dump -- version 5.1.3 -- https://www.phpmyadmin.net/ -- -- Host: mariadb:3306 -- Creato il: Apr 23, 2022 alle 14:55 -- Versione del server: 10.4.6-MariaDB-1:10.4.6+maria~bionic -- Versione PHP: 8.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
insert into person (id,name,lastname,ssh_key) values (1,'John','Wayne','SSH:KEY'); insert into contact_info (id, person_id, description) values (1,1,'+1 123 123 123'), (2,1,'<EMAIL>');
<filename>GRA.Database/dbo/Stored Procedures/GetTotalPatrons.sql<gh_stars>0  CREATE PROCEDURE [dbo].[GetTotalPatrons] ( @startRowIndex INT = 0, @maximumRows INT = 0, @sortString VARCHAR(200) = 'p.PID desc', @searchFirstName VARCHAR(50) = '', @searchLastName VARCHAR(50) = '', @searchUsername VARCHAR(50) = '', @s...
<reponame>darm102/ampera -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 12 Mei 2017 pada 04.58 -- Versi Server: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
--! Previous: - --! Hash: sha1:121d1fa536a1a49dc1b1a10113d5e7b2fdfa0037 --- Schemas --- -- Directly exposed drop schema if exists app_public cascade; create schema app_public; comment on schema app_public is 'Core public interface and schema for GraphQL'; -- Indirectly exposed drop schema if exists app_hidden cascad...
<filename>scripts/data_updates.sql UPDATE garmin_corrections_laps SET summary_id = ( SELECT id FROM garmin_summary a WHERE a.begin_datetime = start_time ) WHERE summary_id IS NULL; UPDATE fitbit_activities SET summary_id = ( SELECT id FROM garmin_summary a WHERE to_char(a.begin_datetime, 'YYYY-MM-DD HH...
ALTER TABLE qr_code DROP COLUMN slug, DROP COLUMN generation_data;
CREATE TEMP FUNCTION check4Typing(arr ARRAY<STRING>) RETURNS BOOL LANGUAGE js AS """ return arr && arr.some(function(ele) { return ele.startsWith("import typing") || ele.startsWith("from typing import") || ele.includes("# type: ") ; }); """; WITH typedRepos AS ( SELECT sample_repo_name AS repo FROM `fh-b...
<reponame>WHUT-XGP/asoul-video<filename>migrations/9_create_comments_table.down.sql BEGIN; DROP TABLE IF EXISTS comments; COMMIT;
<reponame>Erdigergeist/ADB /* Fix Anger Capacitor (Tiny Abomination in a Jar Proc) */ UPDATE spell_proc_event SET procFlags = 0x00000004 | 0x00000010 | 0x00040000 WHERE `entry` IN (71406);
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50724 Source Host : localhost:3306 Source Schema : spring-boot-upload Target Server Type : MySQL Target Server Version : 50724 File Encoding : 6500...
<gh_stars>0 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.5-10.1.13-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 8.3.0.4694 -- ------------------------------...
<gh_stars>0 PROMPT Invoke beforeeach procedure --Arrange declare simple_test ut_test := ut_test( a_object_name => 'ut_example_tests' ,a_name => 'ut_passing_test' ,a_before_each_proc_name => 'beforeeach' ); listener ut_event_listener := ut_event_listener(ut_reporters()); begin ut_e...
INVALID TEST Liquibase Core does not support adding unique constraint for Sqlite See https://docs.liquibase.com/change-types/community/add-unique-constraint.html
---------------------------------------------------------------------------- -- (c) Copyright IBM Corp. 2007 All rights reserved. -- -- The following sample of source code ("Sample") is owned by International -- Business Machines Corporation or one of its subsidiaries ("IBM") and is -- copyrighted and licensed, not ...
Create Table filter AS select * from record where types="21,22"
SET search_path = v1; CREATE OR REPLACE FUNCTION insert_project_fact_history() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE fact_recorded_by TEXT; fact_project_type TEXT; fact_score INTEGER; fact_weight NUMERIC(5,2); BEGIN SELECT project_type INTO fact_project_type ...
CREATE SCHEMA enc_schema; SET search_path TO enc_schema; -- Encrpting locally, that's why we don't need to reference the key here. create table enc_schema.__person__pgp ( id bigint, source varchar(8), partial_ssn varchar(4), -- Non encrypted field for other fast search purposes ssn byte...
<reponame>Kratos1702/face_mask_detector<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 19, 2021 at 10:48 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone...
CREATE TABLE ´empresa´( ´id´ bigint(20) not null, ´cnpj´ varchar(255) not null, ´data_atualizacao´ datetime not null, ´data_criacao´ datetime not null, ´razao_social´ varchar(255) not null )ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE ´funcionario´ ( ´id´ bigint(20) not null, ´cpf´ varchar(255) not null, ´data_at...
\copy rooms(id, number, capacity) FROM './rooms.csv' DELIMITER ',' CSV HEADER; \copy guests(id, name, email) FROM './guests.csv' DELIMITER ',' CSV HEADER; \copy bookings(id, room_id, guest_id, check_in, check_out) FROM './bookings.csv' DELIMITER ',' CSV HEADER; CREATE VIEW availability AS SELECT rooms.number, rooms....
-- MySQL dump 10.13 Distrib 5.7.35, for Linux (x86_64) -- -- Host: localhost Database: incomr -- ------------------------------------------------------ -- Server version 5.7.35-0ubuntu0.18.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 05, 2018 at 10:17 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 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.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2017-03-19 16:47:42 -- 服务器版本: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS...
DROP PROCEDURE IF EXISTS sp_tblToilet_Master; CREATE PROCEDURE sp_tblToilet_Master() BEGIN CREATE TABLE IF NOT EXISTS toilet_master( `id` int(11) NOT NULL AUTO_INCREMENT, `toilet_name` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `total_seats` int(11) DEFAU...
<gh_stars>1-10 --criar tabela CREATE TABLE nomeTabela ( nomeColuna tipo, nomeColuna tipo ) --deletar tabela DROP TABLE nomeTabela --inserir dados na tabela INSERT INTO nomeTabela (nomeColuna, nomeColuna, nomeColuna) VALUES (valorColuna, valorColuna, valorColuna); --selecionar algo na tabela SELECT nomeColu...
insert into Coach (coachId, name, age) values ('39f1b1de-bb50-4d70-ab70-50ddf3e0fc3f', '<NAME>', 100); insert into Coach (coachId, name, age) values ('4decfaa1-86a4-4f06-bd36-6f5b20422a1a', '<NAME>', 46); insert into Coach (coachId, name, age) values ('5ae1ced5-8ef8-4f66-b7cc-7fadf08d52df', '<NAME>', 39); insert into C...
DROP TABLE IF EXISTS f_transactions_events; DROP TABLE IF EXISTS d_user_profile;
-- file:publication.sql ln:50 expect:true DROP TABLE testpub_tbl2
-- file:create_table_like.sql ln:78 expect:true COMMENT ON CONSTRAINT ctlt1_a_check ON ctlt1 IS 't1_a_check'
DROP DATABASE IF EXISTS employee_DB; CREATE DATABASE employee_DB; USE employee_DB; CREATE TABLE department ( department_id INT NOT NULL AUTO_INCREMENT, department_name VARCHAR(30) NOT NULL, PRIMARY KEY (department_id) ); CREATE TABLE roles ( roles_id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30)...
<reponame>EngrSaad2/Python-100-Days drop database if exists mooc1706; create database mooc1706 default charset utf8; use mooc1706; create table tb_course_catalog ( catid integer not null auto_increment, catname varchar(20) not null, catparent integer, primary key (catid) ); alter table tb_course_catalog add constrai...
UPDATE selfservice_errors SET seen_at = '1980-01-01 00:00:00' WHERE seen_at = NULL; ALTER TABLE "selfservice_errors" RENAME COLUMN "seen_at" TO "_seen_at_tmp";COMMIT TRANSACTION;BEGIN TRANSACTION; ALTER TABLE "selfservice_errors" ADD COLUMN "seen_at" timestamp;COMMIT TRANSACTION;BEGIN TRANSACTION; UPDATE "selfservice_e...
/* contrib/spi/refint--unpackaged--1.0.sql */ ALTER EXTENSION refint ADD function check_primary_key(); ALTER EXTENSION refint ADD function check_foreign_key();
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FORE...
insert into accounts (username, balance) values ('tegalton0', 88000); insert into accounts (username, balance) values ('dparnell1', 183000); insert into accounts (username, balance) values ('hthurling2', 161000); insert into accounts (username, balance) values ('szanini3', 64000); insert into accounts (username, balanc...
ALTER TABLE customers ADD COLUMN birthday date;
<filename>src/main/resources/db/migration/V11__ADD_JOBS.sql -- Table: job_jobscheduler -- DROP TABLE job_jobscheduler; CREATE TABLE job_jobscheduler ( id_job bigint NOT NULL, id_jobscheduler bigint NOT NULL, id bigint NOT NULL, "position" integer, CONSTRAINT job_jobscheduler_pkey PRIMARY KEY (id), CONSTRA...
INSERT INTO `news_category` (`id`, `category_name`, `status`) VALUES (NULL, 'Stories', 'Active'), (NULL, 'Posts', 'Active'), (NULL, 'Events', 'Active'); ALTER TABLE `user_master` CHANGE `otp` `otp` VARCHAR(6) NOT NULL; ALTER TABLE nf_comments ADD nf_id INT NOT NULL AFTER user_id; ALTER TABLE `news_feed` CHANGE `news_...
<filename>resources/migrations/000002_create_members_table.up.sql -- member code example: m-20210617-avcd02 CREATE TABLE members ( id serial PRIMARY KEY, member_code varchar(28) unique not null, name varchar(50) NOT NULL, username varchar(50) UNIQUE NOT NULL, email varchar(100) UNIQUE NOT NULL, phone varchar(15) ...
SELECT author,title FROM classics WHERE author LIKE "Charles%" AND author LIKE "%Darwin"; SELECT author,title FROM classics WHERE author LIKE "%<NAME>%" OR author LIKE "%<NAME>%"; SELECT author,title FROM classics WHERE author LIKE "Charles%" AND author NOT LIKE "%Darwin";