sql
stringlengths
6
1.05M
<filename>dbscript/student_manager.sql /* Navicat MySQL Data Transfer Source Server : 192.168.8.188 Source Server Version : 50632 Source Host : 192.168.8.188:3306 Source Database : student_manager Target Server Type : MYSQL Target Server Version : 50632 File Encoding : 65001 Date: ...
INSERT INTO pos_itemtemp VALUES("IATT190001855","193084","191001","192001","30000","1","30000","0","30000","1","1","1","IAT0908190857","NHO2018000007","PAID","lvl 1","PEDAS"), ("IATT190001855","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT0908190857","NHO2018000007","PAID","","193046"), ("I...
<filename>01springboot/src/main/resources/schema.sql CREATE TABLE topic ( id BIGINT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(250) NOT NULL, description VARCHAR(250) NOT NULL );
CREATE TABLE sys.sysindexes ( id int NOT NULL, status int, first binary(6), indid smallint, root binary(6), minlen smallint, keycnt smallint, groupid smallint, dpages int, reserved int, used int, rowcnt bigint, rowmodctr int, reserved3 tinyint, reserved4 tinyi...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 1172.16.17.32 -- Tiempo de generación: 30-07-2014 a las 21:17:59 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
-- INSERT INTO `adm_grp_action_access` (`controller_name`, `action_name`, `is_ajax`, `description`) VALUES ('tv-channels', 'epg-check-prefix', 1, 'Check EPG-prefix for uniqueness'); --//@UNDO --
CREATE SCHEMA Production;
DELETE FROM order_products; DELETE FROM orders; ALTER TABLE orders ADD COLUMN order_date timestamp without time zone NOT NULL;
<gh_stars>1000+ alter table SYS_CATEGORY_ATTR add WIDTH varchar(20)^ alter table SYS_CATEGORY_ATTR add ROWS_COUNT integer^
-- -- $Id: //Infrastructure/GitHub/Database/avo/web/sql/sql_plan_baseline_drop.sql#2 $ -- DECLARE l_dropped_count INT := 0; l_s VARCHAR2(1) := ''; l_sql_handle VARCHAR2(100) := :param1; l_sql_plan_name VARCHAR2(100) := :param2; PROCEDURE p(p_str VARCHAR) IS BEGIN DBMS_OUTPUT.PUT_LI...
<reponame>opengauss-mirror/Yat -- @testpoint:opengauss关键字rule(非保留),作为字段数据类型(合理报错) --前置条件 drop table if exists explain_test cascade; --关键字不带引号-合理报错 create table explain_test(id int,name rule); --关键字带双引号-合理报错 create table explain_test(id int,name "rule"); --关键字带单引号-合理报错 create table explain_test(id int,name 'rule');...
<gh_stars>0 -- designed for individual file test -- psql --quiet -v ON_ERROR_STOP=1 -U postgres -d postgres -f /test.sql -v test_file=file-to-test.sql --------------------------------------------------------------------------- set client_min_messages to warning; -- \echo '-- test for' :test_file ------------...
<reponame>Ancymonek/gugik2osm-1 create unlogged table if not exists bdot.stg_budynki_ogolne_poligony ( lokalnyid text, wersjaid text, x_kod text, x_skrkarto text, x_katistnienia text, x_aktualnoscg text, x_aktualnosca ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 07, 2021 at 12:34 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
INSERT INTO TICKET_MEMBERS (ticketId, email) SELECT T.id, U.email FROM TICKETS T LEFT JOIN USERS U on T.ownerId = U.id;
<reponame>lbandc/cv19api CREATE TABLE death_records_by_age ( id VARCHAR NOT NULL, created_at TIMESTAMP NOT NULL, recorded_on DATE NOT NULL, day_of_death DATE NOT NULL, deaths INT NOT NULL, age_range VARCHAR NOT NULL, source_id VARCHAR NOT NULL, UNIQUE (age_range, recorded_on, day_of_deat...
<filename>Problems/Databases/MySQL/Solutions.sql -- Product Sales Analysis II -- https://leetcode.com/problems/product-sales-analysis-ii/ SELECT Sales.product_id, SUM(Sales.quantity) AS total_quantity FROM Sales GROUP BY product_id; -- Unique Orders and Customers per Month -- https://leetcode.com/problems/unique-orde...
SELECT q.site, q.question, q.hotness, (LEAST(COUNT(a.*), 10) * (q.up_votes - q.down_votes) / 5.0 + SUM(a.up_votes - a.down_votes)) / (GREATEST(DATE_PART('day', q.timestamp - qq.createddate) * 24 + DATE_PART('hour', q.timestamp - qq.createddate) + 1, 6) ^ 1.4) * CASE q.site WHEN 'workplace' THEN...
<reponame>kblomster/go-structured-query<filename>testdata/postgres/views/v_team_evaluations.sql DROP VIEW IF EXISTS app.v_team_evaluations; CREATE OR REPLACE VIEW app.v_team_evaluations AS WITH pairs AS ( SELECT t1.cohort ,tep.evaluatee_team_id ,t1.team_name AS evaluatee_team_name ,t...
<filename>src/test/resources/cast.test_49.sql -- cast.test -- -- execsql {SELECT CAST('123abc' AS integer)} SELECT CAST('123abc' AS integer)
SET @sPluginName = 'aqb_mls'; SET @iOrder = (SELECT MAX(`order`) FROM `sys_menu_admin` WHERE `parent_id`='2'); INSERT INTO `sys_menu_admin`(`parent_id`, `name`, `title`, `url`, `description`, `icon`, `icon_large`, `check`, `order`) VALUES (2, @sPluginName, '_aqb_mls_am_item', CONCAT('{siteUrl}modules/?r=', @sPlugi...
set client_min_messages to ERROR; SELECT topology.CreateTopology('tt') > 0; SELECT topology.ST_GetFaceEdges(null, null); SELECT topology.ST_GetFaceEdges('tt', null); SELECT topology.ST_GetFaceEdges(null, 1); SELECT topology.ST_GetFaceEdges('', 1); SELECT topology.ST_GetFaceEdges('NonExistent', 1); SELECT 'E'||topolo...
CREATE TABLE reassurancelang ( id CHAVE NOT NULL, id_reassurance CHAVE NOT NULL, id_lang CHAVE NOT NULL, text CHARACTER VARYING(300) NOT NULL, CONSTRAINT pk_reassurancelang PRIMARY KEY (id) );
<reponame>xmudrii/invoices<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: db -- Generation Time: Jan 28, 2021 at 09:25 PM -- Server version: 5.7.31 -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
SELECT DISTINCT CASE WHEN EXISTS ( SELECT work_code_type FROM work_code wc JOIN invoice_line il ON il.WORK_CODE_ID = wc.WORK_CODE_ID WHERE il.INVOICE_ID = %IN AND wc.work_code_type IN ('D') AND %LA = 3) THEN 'External services' WHEN EXISTS ( S...
-- nested_table.plsql (symlinked as collections.plsql) -- See also associative_array_table_indexby.plsql, varray.plsql, nested_table_multiset.plsql, type.plsql -- -- Created: Fri 02 Aug 2019 (<NAME>) -- Modified: 04-Jun-2020 (<NAME>) -- Associative arrays are particularly good with sparse collections. -- Nes...
<gh_stars>1-10 /****** Object: Table [T_Residues_Change_History] ******/ /****** RowCount: 33 ******/ SET IDENTITY_INSERT [T_Residues_Change_History] ON INSERT INTO [T_Residues_Change_History] (Event_ID, Residue_ID, Residue_Symbol, Description, Average_Mass, Monoisotopic_Mass, Num_C, Num_H, Num_N, Num_O, Num_S, Mon...
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func356.sql CREATE FUNCTION func356() RETURNS integer LANGUAGE plpgsql AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE198);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE26);val:=(SELEC...
-- -------------------------------------------------------- -- -------------------------------------------------------- CREATE TABLE IF NOT EXISTS users ( username varchar(255) PRIMARY KEY NOT NULL, password varchar(255) NOT NULL ); -- -------------------------------------------------------- -- ---------------...
-- View: vw_rco_publiclands_acq_dnr DROP VIEW IF EXISTS vw_rco_publiclands_acq_dnr CASCADE; CREATE OR REPLACE VIEW vw_rco_publiclands_acq_dnr AS SELECT vw_big_dataset.gid, vw_big_dataset.geom, vw_big_dataset.prov1 AS dataproviderid, vw_big_dataset.owner, vw_big_dataset.acqyear AS acquisition_year, vw_big_dataset.ow...
-- -- ER/Studio 8.0 SQL Code Generation -- Company : HP Inc. -- Project : sistema facturacion.DM1 -- Author : <EMAIL> -- -- Date Created : Saturday, October 24, 2020 15:49:25 -- Target DBMS : PostgreSQL 8.0 -- -- -- TABLE: categoria -- CREATE TABLE categoria( id_categoria serial N...
-- @testpoint:opengauss关键字preorder(非保留),作为视图名 --关键字preorder作为视图名,不带引号,创建成功 CREATE or replace VIEW preorder AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view preorder; --关键字preorder作为视图名,加双引号,创建成功 CREATE or replace VIEW "preorder" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; dro...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Okt 2019 pada 04.32 -- Versi server: 10.1.32-MariaDB -- Versi PHP: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Agu 2021 pada 00.43 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<reponame>bogdanghita/public_bi_benchmark-master_project<filename>benchmark/IGlocations1/queries-vectorwise-disabled/14.sql --SELECT (CASE WHEN (locate('cliff',LOWER("IGlocations1_1"."caption"))>0) THEN 'cliff' WHEN (locate('peak',LOWER("IGlocations1_1"."caption"))>0) THEN 'peak' WHEN (locate('mountain',LOWER("IGlocati...
INSERT INTO USER (USERNAME, PASSWORD) VALUES ('<PASSWORD>', 'password'); INSERT INTO USER (USERNAME, PASSWORD) VALUES ('jdoe', '<PASSWORD>');
<reponame>rickycohen88/EmployeeTracker update department set department.operating_budget = ( SELECT sum( employee_cms.job.salary) FROM employee_cms.job WHERE department_id =4) where id =4;
<reponame>jeremiahsmall/FMPDO # ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.1.66) # Database: fmpdo # Generation Time: 2013-12-15 17:26:21 -0800 # *********************...
CREATE TABLE IF NOT EXISTS appuser ( id bigint not null constraint appuser_pkey primary key, active integer, email varchar(255), last_name varchar(255), name varchar(255), password varchar(255) ); create sequence IF NOT EXISTS user_seq START WITH 3; alter sequence user_seq i...
<reponame>isragaytan/bankaya CREATE DATABASE IF NOT EXISTS BANKAYA; USE BANKAYA; CREATE TABLE IF NOT EXISTS CUSTOMER( id INT PRIMARY KEY AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, phone_number VARCHAR(30), curp VARCHAR(30), rfc VARCHAR (30) NOT NULL, add...
with dates as ( select '2018-07-20'::date as _start, '2018-10-31'::date as _end ) select * from crosstab ( 'select date,device,count(*) from logs.log group by 1,2 order by 1,2', 'select distinct device from logs.log order by 1' ) as ct (date date,firewall int, pfsense int, pfsense2 int, router i...
<gh_stars>0 /* Warnings: - Added the required column `updatedAt` to the `User` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "User" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, ADD COLUMN "updatedAt" TIMESTAMP(3) NOT ...
-- Created information to seed the database INSERT INTO department (name) VALUES ("accounting"), ("administration"), ("sales"), ("customer_service"), ("legal"); INSERT INTO roles (title, salary, department_id) VALUES ("Accountant", 25000, 1 ), ("Admin", 25000, 2), ...
CREATE TABLE IF NOT EXISTS bridge_healthdatarecord3_<dateSuffix> ( id CHAR(36) ENCODE RAW NOT NULL, healthCode CHAR(36) ENCODE RAW NOT NULL, createdOn BIGINT ENCODE DELTA32k , studyId VARCHAR(50) ENC...
<reponame>adjust/pg-numhstore<gh_stars>1-10 --additional types for numhstore CREATE TYPE inthstore; CREATE FUNCTION hstore_out(inthstore) RETURNS cstring AS '$libdir/hstore', 'hstore_out' LANGUAGE c IMMUTABLE STRICT COST 1; CREATE FUNCTION hstore_send(inthstore) RETURNS bytea AS '$libdir/hstore', 'hstore_send' LANGU...
<gh_stars>1-10 SELECT CAST(SUBSTRING(proc_numero, 5, 5) AS INTEGER) num_serial FROM {schema_opengeo}.seg_pub_in_pol_procedimento WHERE year(proc_data) = year(now()) AND CAST(SUBSTRING(proc_numero, 1, 3) AS INTEGER) = :num_delegacia ORDER BY proc_numero
SELECT COUNT(name) AS products, country FROM products WHERE country IN ('United States of America', 'Canada') GROUP BY country ORDER BY products DESC;
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: crunchbutton-1.cluster-cstvhlbo53mv.us-east-1.rds.amazonaws.com (MySQL 5.6.10) # Database: crunchbutton # Generation Time: 2016-10-17 01:59...
<reponame>forgottenlands/ForgottenCore406 DELETE FROM `spell_script_names` WHERE `spell_id` = (53600);
<gh_stars>1-10 create or replace procedure lab_create_user ( user_name in varchar2 default 'moviestream' ) as kill_session varchar2(200); begin -- Disconnect all moviestream sessions moviestream_write(systimestamp || ' - disconnecting ' || user_name); for c in ( select s.sid, s.se...
<gh_stars>1-10 SELECT min (((ship.latitude - port.latitude) ^ 2 + (ship.longitude - port.longitude) ^ 2) ^ 0.5 / ship.max_speed) FROM ship, port, berth WHERE port.available AND berth.port_id = port.port_id AND ship.length <= berth.berthlength AND ((ship.latitude - port.latitude) ^ 2 + (ship.longitude ...
ALTER TABLE T_CM_USER2ROLES ADD CONSTRAINT FK_CM_USER2ROLES_UID FOREIGN KEY (USER_ID) REFERENCES T_CM_USER (ID) ON DELETE CASCADE; ALTER TABLE T_CM_USER2ROLES ADD CONSTRAINT FK_CM_USER2ROLES_RID FOREIGN KEY (ROLE_ID) REFERENCES T_CM_ROLE (ID);
<reponame>youyingxiang/php_cms -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 25, 2018 at 11:55 PM -- Server version: 5.6.35 -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `tb_officebc...
<reponame>viswaratha12/dbwarden /****** Object: View [dbo].[V_Analysis_Job_Request_List_Report] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Analysis_Job_Request_List_Report] AS SELECT AJR.AJR_requestID AS Request, AJR.AJR_requestName AS Name, AJRS.StateName AS...
<gh_stars>0 CREATE TEMPORARY TABLE t_cm_temp_atm_group_list (id NUMERIC(9)) ON COMMIT DELETE ROWS; COMMENT ON TABLE t_cm_temp_atm_group_list IS 'This table contains temporary list of ATM Groups for user selection'; COMMENT ON COLUMN t_cm_temp_atm_group_list.id IS 'Unique ID identifying ATM Group';
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50621 Source Host : localhost:3306 Source Database : bootdo Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2017-11-22 17:40:53 */ SET FOREIGN_KEY_CHECKS=0; ...
ALTER TABLE `blocks` CHANGE `share_id` `share_id` BIGINT( 30 ) NULL DEFAULT NULL ; INSERT INTO `settings` (`name`, `value`) VALUES ('DB_VERSION', '0.0.7') ON DUPLICATE KEY UPDATE `value` = '0.0.7';
<filename>go/src/socialapi/db/sql/migrations/0013_add-channelmessage-activity-type.up.sql -- -- We need "activity" type constant for channel message table, for storing user -- activities -- -- ALTER TYPE "api"."channel_message_type_constant_enum" ADD VALUE IF NOT EXISTS 'activity'; -- this is just a stub Select 1 from ...
------------------------------------------------------------------------------------------------- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CodegenTestResultSetTypesAllNull]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].[CodegenTestResultSetTypesAllNull] GO --------------...
<filename>migrations/sqls/20210306200257-categoria-item-quarto-down.sql DROP TABLE public.categoria_item_quarto CASCADE;
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.34-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- ------------------------------------------------...
<reponame>devsceuma/TemplateRestfulSpring INSERT INTO `users` (`USER_ID`, `PASSWORD`,`USERNAME`) VALUES (1,'password','<PASSWORD>'); INSERT INTO `users` (`USER_ID`, `PASSWORD`,`USERNAME`) VALUES (2,'password','<PASSWORD>');
ALTER TABLE Experiment ADD ( `solverOutputPreserveFirst` INT NULL , `solverOutputPreserveLast` INT NULL , `watcherOutputPreserveFirst` INT NULL , `watcherOutputPreserveLast` INT NULL , `verifierOutputPreserveFirst` INT NULL , `verifierOutputPreserveLast` INT NULL ); ALTER TABLE ExperimentResults DRO...
-- Deploy tome:artifactdatadrop to pg -- requires: appschema BEGIN; ALTER TABLE "artifacts" DROP "artifact_data"; COMMENT ON TABLE "artifacts" IS ''; COMMIT;
-- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 17, 2019 at 10:28 AM -- Server version: 5.5.20 -- PHP Version: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
<reponame>Fhernd/MySQL-Ejercicios DROP TABLE IF EXISTS prestamos; CREATE TABLE prestamos( titulo VARCHAR(40) NOT NULL, documento CHAR(8) NOT NULL, fechaprestamo DATE NOT NULL, fechadevolucion DATE, devuelto CHAR(1) DEFAULT 'n' ); INSERT INTO prestamos (titulo,documento,fechaPrestamo,fechaDevolucion) VALU...
<filename>srv/migrations/2018-02-20-165638_create_sessions/down.sql DROP TABLE public.sessions;
select 'IOSTAT_FUNCTION_DETAIL' CNAME, to_char(systimestamp, 'yyyy-mm-dd"T"hh24:mi:ss.ff') CTIMESTAMP, v$iostat_function_detail.* from v$iostat_function_detail /
<filename>install.sql @ws_dates.pks @ws_dates.pkb
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 18 Sep 2021 pada 05.20 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
DROP TABLE IF EXISTS circulation_cancellation_reasons; CREATE TABLE circulation_cancellation_reasons AS SELECT id::varchar(36), jsonb_extract_path_text(jsonb, 'description')::varchar(65535) AS description, jsonb_extract_path_text(jsonb, 'name')::varchar(65535) AS name, jsonb_extract_path_text(jsonb, 'p...
create table customer(cid int, name varchar(128), balance bigint, primary key(cid)); create table orders(oid int, cid int, mname varchar(128), pid int, price int, primary key(oid));
-- [er]alert table add constraint foreign key on a field of create table and references a table which create create table pt (i int, j int, k int, primary key(i)); create table ft (i int, j int, k int); alter table ft add constraint f_pt foreign key (i) references pt (i,j,k); drop pt; drop ft;
<gh_stars>0 -- @testpoint: 子对象删除,触发器依赖外部PLPGSQL函数 --step1: 查询enable_recyclebin默认值; expect:显示默认值off show enable_recyclebin; --step2: 修改enable_recyclebin为on; expect:修改成功 alter system set enable_recyclebin to on; select pg_sleep(2); show enable_recyclebin; --step3: 如果表存在清除表且清除回收站; expect:表清除成功且回收站清除成功 drop table if exi...
-- @testpoint:opengauss关键字admin(非保留),作为游标名 --前置条件 drop table if exists admin_test cascade; create table admin_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor admin for select * from admin_test order by 1; close admin; end; --关键字带双引号-成功 start transaction; cursor "admin" for select * from admin_test orde...
<gh_stars>0 -- @testpoint: range_range二级分区表:相关系统表pg_partition/pg_depend/pg_class,部分测试点合理报错 --step1: 创建表空间; expect:成功 drop table if exists t_subpartition_0286; drop tablespace if exists ts_subpartition_0286; create tablespace ts_subpartition_0286 relative location 'subpartition_tablespace/subpartition_tablespace_0286';...
CREATE UNIQUE INDEX IXTROL01 ON TROL (CODROL) LOGGING NOPARALLEL;
<gh_stars>0 <%# .Synopsis Gets the length of a character string. .Parameter Server The server to get the length in. .Parameter Body The string expression to find the length of. -%> <%- switch -regex ($Server) { 'ORA.*' { -%> LENGTH(<%= $Body %>)<% -%> <%- } 'SS\d\d.*' { -%> LEN(...
CREATE TABLE t1(c1 INT, c2 INT, c3 INT); CREATE TABLE t2(c1 INT, c2 INT, c3 INT); CREATE TABLE t3(c1 INT, c2 INT, c3 INT); CREATE TABLE t4(c1 INT, c2 INT, c3 INT); CREATE TABLE t5(c1 INT, c2 INT, c3 INT); CREATE TABLE t6(c1 INT, c2 INT, c3 INT);
WITH CTE AS (SELECT [TodaysDate],[databaseName],[SchemaName],[TableName],[RecordCount],[Ddifference],ROW_NUMBER() OVER (ORDER BY DatabaseName,SchemaName,TableName,TodaysDate) AS ROW_Num FROM [tableRowCountDownstreamFeedsV15] t1 WHERE TableName LIKE 'AftSch_Profile_WorkTbl' AND SchemaName LIKE 'dbo') UPDATE t SET t.Ddif...
ALTER TABLE `tbl_mastergame` ADD COLUMN `AnnouncementDate` DATE NULL DEFAULT NULL AFTER `InternationalReleaseDate`; ALTER TABLE `tbl_caching_mastergameyear` ADD COLUMN `AnnouncementDate` DATE NULL DEFAULT NULL AFTER `InternationalReleaseDate`; UPDATE `fantasycritic`.`tbl_mastergame_tag` SET `HasCustomCode`=b'1' WHER...
INSERT INTO department (department_name) VALUES ("Engineering"), ("Finance"), ("Legal"), ("Sales"); INSERT INTO role (title, department_id, salary) VALUES ("Sales Lead", 4, 100000), ("Sales Person", 4, 80000), ("Lead Engineer", 1, 150000), ("Software Engineer", 1, 120000), ...
 -- to check if the @value has been set or not -- String not set value: <notset> -- Int not set value: -1 -- datetime not set value: '1753-01-01 CREATE FUNCTION [dspUtil].[IsParamSetString] (@Value TBIGSTRING) RETURNS BIT AS BEGIN DECLARE @Value2 TSTRING = @Value; RETURN dspUtil.IsParamSet(@Value2); END;
<filename>db/schema.sql<gh_stars>0 DROP DATABASE IF EXISTS collegeDB; CREATE DATABASE collegeDB; USE collegeDB; DROP TABLE IF EXISTS users; CREATE TABLE users ( user_Id INT PRIMARY KEY AUTO_INCREMENT, user_name VARCHAR(16) UNIQUE NOT NULL, first_Name VARCHAR(16) NOT NULL, last_Name VARCHAR(16) NOT NUL...
-- CreateTable CREATE TABLE "Gift" ( "id" SERIAL NOT NULL, "name" TEXT, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "Gift_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "GiftOnEvents" ( "eventId" INTEGER NOT NULL, "giftId" INTEGER NOT NULL, CONSTRAINT ...
<reponame>uranusjr/mosql drop table if exists details; drop table if exists users; drop table if exists detail; drop table if exists person; create table person ( person_id varchar(128) primary key, name varchar(256) ); create table detail ( detail_id serial primary key, person_id varchar(128) r...
INSERT INTO departments (department_name) VALUES ("Software Development"), ("Finance"), ("Legal"), ("Sales"); INSERT INTO roles (job_title, department_id, salary) VALUES ("Head of Marketing", 4, 120000), ("Accountant", 2, 100000), ("Software Engineer", 1, 90000), ("Lawyer", 3,...
<filename>sql/yjbb/603165.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'603165',@CutoffDate = N'2017-09-30',@EPS = N'2.24',@EPSDeduct = N'0',@Revenue = N'14.90亿',@RevenueYoy = N'132.31',@RevenueQoq = N'30.52',@Profit = N'2.76亿',@ProfitYoy = N'284.12',@ProfiltQoq = N'11.81',@NAVPerUnit = N'7.4777',@ROE = N'35.07',@CashPerUni...
-- e_fkey.test -- -- execsql { -- CREATE TABLE artist( -- artistid INTEGER PRIMARY KEY, -- artistname TEXT -- ); -- CREATE TABLE track( -- trackid INTEGER, -- trackname TEXT, -- trackartist INTEGER DEFAULT 0 REFERENCES artist(artistid) ON DELETE SET DEFAULT -- ...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 30, 2018 at 03:11 AM -- Server version: 5.7.21 -- 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 @OLD_CH...
<filename>data-management-library/autonomous-transaction-processing/dedicated/scripts/600/ATPDnode-master/initial_schema.sql create user nodeuser identified by xxxxxxxx; grant create session to nodeuser; alter session set current_schema=nodeuser; CREATE TABLE DEPT (DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY, D...
-- phpMyAdmin SQL Dump -- version 4.0.10.7 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: May 05, 2016 at 01:50 PM -- Server version: 10.0.23-MariaDB -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
<reponame>nahid-hridoy/irina -- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Mar 16, 2018 at 02:01 PM -- Server version: 10.1.24-MariaDB-cll-lve -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 S...
<reponame>Yggdrasil-0/OnlineInformationSystem /* * File name: ProjectSetup.sql * Function: to drop & create triggers,indexs, and get ready for * the Radiology Information System. */ CREATE OR REPLACE TRIGGER checkEmail BEFORE INSERT ON persons FOR EACH ROW DECLARE dummy INTEGER; PRAGMA AUTONOMOUS_TRANSACTI...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Erstellungszeit: 30. Dez 2016 um 17:43 -- Server-Version: 5.6.33 -- PHP-Version: 7.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Datenbank: `Winetime` -- -- ---------------------------------...
column action_goal_list format A40 column action_option_list format A400 column module_name format A30 column repository_name format A30 column svn_path format A70 column svn_root format A60 column svn_version_info format A30
-- 创建account_config的table -- 本表内容较小,预计会全缓存在数据库内存区,因此索引作为查找项并无实际意义 USE wechat_dev; DROP TABLE IF EXISTS `account_config`; CREATE TABLE `account_config` ( `id` varchar(45) NOT NULL COMMENT '公众号,服务号,企业号id', `account_type` varchar(10) NOT NULL COMMENT '账户类型', `agent_id` int DEFAULT NULL COMMENT '企业应用id,公众号...
create table Customer ( cust_id VARCHAR(50), cust_name VARCHAR(50), customer_city VARCHAR(50), cust_phone VARCHAR(50), branch_id VARCHAR(50), PRIMARY KEY (cust_id), FOREIGN KEY (branch_id) references Branch(branch_id) ); insert into Customer (cust_id, cust_name, customer_city, cust_phone, branch_id) values...
<gh_stars>0 CREATE TABLE [media].[ContactPhoneNumber] ( [Id] UNIQUEIDENTIFIER NOT NULL, [ContactId] UNIQUEIDENTIFIER NOT NULL, [PhoneNumber] VARCHAR (50) NOT NULL, [PhoneTypeId] UNIQUEIDENTIFIER NOT NULL, [CreationDate] DATETIME NOT NULL, [Modif...
<gh_stars>1-10 /* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "Lic...