sql
stringlengths
6
1.05M
-- installation script for Finite State Machine implementation in PL/SQL -- This script allows an abbreviation (please use 3 to 5 characters max) for the Finite State Machine -- Default toolkit name. Please change with caution! Before changing it, remove any existing installation -- within the same schema. define TOOL...
<reponame>PhilippeBinggeli/Hands-On-Data-Science-with-SQL-Server-2017<gh_stars>1-10 CREATE TABLE TestResults ( Id int NOT NULL IDENTITY CONSTRAINT pk_TestResults PRIMARY KEY , StudentName nvarchar(10) NOT NULL , Score tinyint NOT NULL ) INSERT TestResults (StudentName, Score) VALUES ('Adam', 4), ('Bob', 4), ('Chris', ...
-- 移动端用户表 CREATE TABLE iam_member ( id bigserial not null, tenant_id bigint default 0 not null, org_id bigint default 0 not null, user_id bigint default 0 not null, user_type VARCHAR(100) NOT NULL DEFAULT 'IamUser', openid VARCHAR(50) NOT NULL, nickname VARCHAR(100), avatar_url VARCHAR(255), country ...
ALTER TABLE character_db_version CHANGE COLUMN required_7324_02_characters_character_aura required_7544_02_characters_uptime bit; -- -- Table structure for table `uptime` -- DROP TABLE IF EXISTS `uptime`; CREATE TABLE `uptime` ( `starttime` bigint(20) unsigned NOT NULL default '0', `startstring` varchar(64) NOT N...
# @Deprecated--- This part is only for mysql tests and should be moved out of TCK tests --- DROP TABLE IF EXISTS collectorTest; CREATE TABLE collectorTest ( id INT NOT NULL PRIMARY KEY, `Int2` SMALLINT, `Int3` MEDIUMINT, `Int4` INT, `Int8` BIGINT, `Float` FLOAT, `Double` DOUBLE, `V...
create table LEC_cpi ( lec_year int not null, lec_cpi double); alter table LEC_cpi add constraint LEC_cpiPK PRIMARY KEY (lec_year); create table LEC_exchange ( lec_year int not null, lec_rate double); alter table LEC_exchange add constraint LEC_exchangePK PRIMARY KEY (lec_year); CREATE TABLE event...
<reponame>githotirado/databricks_archives<gh_stars>0 select con.contest_id ,con.hacker_id ,con.name ,query2.total_submissions ,query2.total_accepted_submissions ,sum(vst.total_views) ,sum(vst.total_unique_views) from contests con ,colleges col ,challenges cha ...
-- multiple partitions : all have order by clause, partition by on a single (different) column SELECT * FROM ( SELECT count(*) OVER (PARTITION BY c_date ORDER BY c_time) + sum(c_integer) OVER (PARTITION BY c_bigint ORDER BY c_time) AS total, count(*) OVER (PARTITION BY c_integer ORDER BY c_time) AS count1,...
<filename>galleria-ejb/src/main/sql/20110721182056_create_table_GROUPS.sql CREATE TABLE GROUPS ( GROUPID VARCHAR(20) NOT NULL ); --//@UNDO DROP TABLE GROUPS;
=== RUN TestCompileInsert === RUN TestCompileInsert/simpleInsert WITH "_sg_input" AS (SELECT $1 :: json AS j), "users" AS (INSERT INTO "users" ("full_name", "email") SELECT CAST( i.j ->>'full_name' AS character varying), CAST( i.j ->>'email' AS character varying) FROM "_sg_input" i RETURNING *) SELECT jsonb_build_o...
SET foreign_key_checks = 0; TRUNCATE TABLE ATTRIBUTE; TRUNCATE TABLE ATTRIBUTE_PATH; TRUNCATE TABLE ATTRIBUTE_PATHS_ATTRIBUTES; TRUNCATE TABLE ATTRIBUTE_PATH_INSTANCE; TRUNCATE TABLE CLASS; TRUNCATE TABLE COMPONENT; TRUNCATE TABLE CONFIGURATION; TRUNCATE TABLE CONFIGURATIONS_RESOURCES; TRUNCATE TABLE CONTENT_SCHEMA; TR...
<filename>test/rdb2rdf-compliance/src/test/resources/D011/create.sql CREATE TABLE "Student" ( "ID" integer PRIMARY KEY, "FirstName" varchar(50), "LastName" varchar(50) ); CREATE TABLE "Sport" ( "ID" integer PRIMARY KEY, "Description" varchar(50) ); CREATE TABLE "Student_Sport" ( "ID_Student" integer, "ID_Spo...
CREATE TABLE hdb_catalog.hdb_computed_field ( table_schema TEXT, table_name TEXT, computed_field_name TEXT, definition JSONB NOT NULL, comment TEXT NULL, PRIMARY KEY (table_schema, table_name, computed_field_name), FOREIGN KEY (table_schema, table_name) REFERENCES hdb_catalog.hdb_table(table_sche...
<filename>src/backend/catalog/system_views.sql /* * PostgreSQL System Views * * Portions Copyright (c) 2006-2010, Greenplum inc. * Portions Copyright (c) 2012-Present Pivotal Software, Inc. * Copyright (c) 1996-2014, PostgreSQL Global Development Group * * src/backend/catalog/system_views.sql */ CREATE VIEW pg...
CREATE TABLE IF NOT EXISTS entities ( entity_id blob, replica_set bigint, created_on bigint, edited_on bigint, PRIMARY KEY ((entity_id)) );
<reponame>zayfen/emacs.d<gh_stars>0 begin transaction; create table my_table ( id text ); select id from my_table; commit; begin transaction; create table my_table ( id text ); select id from my_table; commit; begin -- a comment transaction; create table my_table ( id text ); select id from my_table; commit;
SELECT SUBSTRING(FirstName, 1, 1) AS FirstLetter FROM WizzardDeposits WHERE DepositGroup = 'Troll Chest' GROUP BY LEFT(FirstName, 1) ORDER BY FirstLetter
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 07, 2017 at 08:16 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
<reponame>Ionplus-AG/brahma<filename>schema/projects/project_advisor.sql # # copyright (c) Ionplus AG and contributors. all rights reserved. # licensed under the mit license. see license file in the project root for details. # create table project_advisor ( name varchar(20) primary key, sort_order int n...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 8.0.17 - MySQL Community Server - GPL -- Server OS: Win64 -- HeidiSQL Version: 10.3.0.5771 -- -------------------------------------------------------- /...
<reponame>zwan2016/LibrarySystem<filename>backup/Users.sql USE Wan_0c49; truncate table Users; INSERT INTO Users VALUES (1,'<EMAIL>','e3afed0047b08059d0fada10f400c1e5',1,'Zicheng','Wan',23,'8646246828','240 Campus Drive Apt.E'); INSERT INTO Users VALUES (2,'<EMAIL>','0cbc6611f5540bd0809a388dc95a615b',0,'Sherry','Lyu',2...
alter table "public"."default_socle_container" add constraint "default_socle_container_container_id_fkey" foreign key ("container_id") references "public"."default_socle_container" ("id") on update cascade on delete cascade;
<filename>src/Yaos.Sql.Database/Production/Tables/ProductInventory.sql<gh_stars>0 CREATE TABLE [Production].[ProductInventory] ( [ProductID] INT NOT NULL, [LocationID] SMALLINT NOT NULL, [Shelf] NVARCHAR (10) NOT NULL, [Bin] TINYINT NOT NULL, [Q...
<reponame>MarcPlaying/GGiveaways -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 23. Feb 2019 um 21:44 -- Server-Version: 10.1.36-MariaDB -- PHP-Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpg...
<filename>src/main/resources/db/migration/V3__Create_Memory_Table_Ong.sql CREATE MEMORY TABLE "PUBLIC"."ONG"( "ID" INTEGER DEFAULT NEXT VALUE FOR "PUBLIC"."SYSTEM_SEQUENCE_DCC965DD_D94B_4FFC_9F50_A026DB2FF8B3" NOT NULL NULL_TO_DEFAULT SEQUENCE "PUBLIC"."SYSTEM_SEQUENCE_DCC965DD_D94B_4FFC_9F50_A026DB2FF8B3", "CI...
-- some setting to make the output less verbose \set QUIET on \set ON_ERROR_STOP on set client_min_messages to warning; -- load some variables from the env \setenv base_dir :DIR \set base_dir `if [ $base_dir != ":"DIR ]; then echo $base_dir; else echo "/docker-entrypoint-initdb.d"; fi` \set anonymous `echo $DB_ANON_RO...
<filename>Oqtane.Server/Scripts/Tenant.02.00.02.02.sql<gh_stars>1-10 /* Version 2.0.2 Tenant migration script */ UPDATE [dbo].[Site] SET DefaultContainerType = 'Oqtane.Themes.OqtaneTheme.DefaultTitle, Oqtane.Client' WHERE DefaultContainerType = 'Oqtane.Themes.OqtaneTheme.Container, Oqtane.Client'; GO UPDATE [dbo]....
-- -- Migration @ 15-08-14 | Table "comments" -- -- -- Name: comments; Type: TABLE; Schema: schema_name; Owner: pgadmin; Tablespace: -- CREATE TABLE schema_name.comments ( id integer NOT NULL, xmi_id character varying, "isSpecification" boolean, body character varying, class_id character varying,...
-- file:enum.sql ln:194 expect:true SELECT 'purple'::rainbow::rgb
CREATE OR REPLACE VIEW USR_RELGER_TES.MAG_V_NOTAFISCAL_VENDA_NOVA AS SELECT NF.FILIAL_EMISSAO_NF, NF.NUMERO_NF, NF.SERIE_NF, NF.TIPO_NOTA, NF.DATA_NF, NF.CODIGO_CLIENTE, NF.VENDEDOR_NUMERO, NF.FILIAL_VENDA, NF.FILIAL_SAIDA, NF.FILIAL_ENTREGA, NF.DATA...
CREATE VIEW [app].[StandbetreiberView] AS Select Mitglied.Name, Adresse.StrasseFull, Ort.PLZ, Ort.Bezeichnung, Mitglied.Email, Mitglied.Telefon, Mitglied.Geburtsdatum, Mitglied.ProvisorischesMitglied, Mitglied.ProbezeitVon, Mitglied.ProbezeitBis from app.Standbetreiber as Standbetreiber inner join app.Mitglied as Mit...
-- -- 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 ma...
create table money_transactions ( id text not null constraint money_transactions_pk primary key, user_id text not null references users(id), date date not null, category varchar not null, payee varchar, comment varchar, outcome_account varchar, outcome_amount double precision, outcome_currency varchar, income...
CREATE TABLE sys_user ( id BIGINT NOT NULL AUTO_INCREMENT COMMENT '用户ID', user_name VARCHAR(50) COMMENT '用户名', user_password VARCHAR(50) COMMENT '密码', user_email VARCHAR(50) COMMENT '邮箱', user_info TEXT COMMENT '简介', head_img BLOB COMMENT '头像', create_time DATETIME COMMENT '...
CREATE TABLE [SqlTest].[FIleTable01] AS FILETABLE WITH (FileTable_Directory = 'FileTable01')
<reponame>zhengant/verdictdb<filename>src/test/resources/tpch_test_query/query8_postgres.sql<gh_stars>0 select o_year, sum(case when nation = 'PERU' then volume else 0 end) as numerator, sum(volume) as demoninator from ( select substr(cast(o_orderdate AS TEXT),1,4) as o_year, l_extendedp...
delete from Log; delete from Status; delete from Branch; delete from Repository; delete from RepositoryGroup;
drop procedure if exists ui_get_mapped_group_actions_list; delimiter $$ create procedure ui_get_mapped_group_actions_list(i_start_from int(10), i_records_count int(10), i_order_field_number int(10), ...
-- data generated by /usr/local/bin/datafiller version 2.0.0 (r792 on 2014-03-23) for postgresql -- fill table enum_value (5) \echo # filling table enum_value (5) COPY enum_value (enum_value_id) FROM STDIN (ENCODING 'utf-8'); 3000 3001 3002 3000 3001 \. -- fill table place (10) \echo # filling table place (10) COPY ...
INSERT INTO MOVIE_TICKET_SALES (title, sale_ts, ticket_total_value) VALUES ('Aliens', '2019-07-18T10:00:00Z', 10); INSERT INTO MOVIE_TICKET_SALES (title, sale_ts, ticket_total_value) VALUES ('Die Hard', '2019-07-18T10:00:00Z', 12); INSERT INTO MOVIE_TICKET_SALES (title, sale_ts, ticket_total_value) VA...
<gh_stars>1-10 {### Clear breakpoints for debugging ###} {% if session_id %} SELECT * FROM pldbg_drop_breakpoint({{session_id}}::int, {{foid}}::OID, {{line_number}}::int) {% endif %}
CREATE TABLE ao_table (id int, fname text, lname text, address1 text, address2 text, city text, state text, zip text) WITH (appendonly=true, orientation=column) DISTRIBUTED BY (id); CREATE INDEX ON ao_table (id); -- Bunch insert into AOCS table that affects auxiliary relations INSERT INTO ao_table (id, fname, l...
<filename>src/test/regress/sql/olap_window.sql -- -- Exercise outfuncs -- set Debug_print_parse=on; set Debug_print_plan=on; -- -- OLAP_WINDOW -- -- Changes here should also be made to olap_window_seq.sql ---- 1 -- Null window specification -- OVER () ---- select row_number() over (), cn,pn,vn from sale; -- mvd 1...
<reponame>jgonzales9945/CapstoneSite<gh_stars>0 INSERT INTO schools(name, information, file_directory) VALUES('Advanced Course Statistics','This table displays the percentage of kids across grades 9 through 12 who complete advanced or dual credit courses, and is categorized by school district and ethnicity. ', "resourc...
<gh_stars>0 -- insert default values for table: module INSERT INTO "module" ( "module", "enabled" ) VALUES ( 'Grid\FacebookComment', FALSE ); -- update default values for table: user_right DO LANGUAGE plpgsql $$ BEGIN IF NOT EXISTS ( SELECT * FROM "user_right" WHE...
<reponame>jpascale/pg-query-parser SELECT array_agg(players), player_teams FROM (SELECT DISTINCT t1.t1player AS players_dist, t1.player_teams FROM (SELECT p.playerid AS t1id, concat(p.playerid, ':', p.playername, ' ') AS t1player, array_agg(pl.teamid ORDER BY pl.teamid) AS player_t...
---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION @@RS_PREFIX@@carto.__S2_TOCHILDREN (id INT8, resolution INT4) RETURNS VARCHAR(MAX) STABLE AS $$ from @@RS_PREFIX@@s2Lib import to_children if id is None or resolution is None: raise Excepti...
-- create table of range partition on char field having boundary values and unite two partition to one partition create table range_test(id int not null , test_int int, test_char char(50), test_varchar varchar(2000), test_datetime timestamp,primary key(id,test_char)) PARTITION BY RANGE (test_char) ( P...
<filename>database/write_peopleskills_table.sql -- name: write_peopleskills_table.sql -- version: 0.0.1 -- date: 20201128 -- author: <NAME> -- desc: Create a matrix of skills to people. .headers on .nullvalue [NULL] DROP TABLE IF EXISTS peopleskills; CREATE TABLE peopleskills ( idx INTEGER NOT...
-- MySQL dump 10.13 Distrib 5.7.11, for osx10.11 (x86_64) -- -- Host: localhost Database: italia -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
<filename>626.Exchange Seats/scheme.sql # Write your MySQL query statement below SELECT @i := @i + 1 as id, t.student FROM (SELECT id, student,IF(id&1, id+1, id-1) as weight FROM seat ORDER BY weight) as t ,(SELECT @i := 0) as tmp
<filename>nodejs/app/src/sql/delivery.sql create table `delivery` ( `idx` int(12) NOT NULL, `delivery_type` varchar(255) NOT NULL, `delivery_init_time` varchar(255) NOT NULL, `delivery_start_time` varchar(255) NOT NULL, `delivery_end_time` varchar(255) NOT NULL, `delivery_status` varchar(2...
<reponame>daicang/Leetcode select Email from (select Email, count(*) c from Person group by Email) as t where c>1;
<filename>Advance Tunning Scripts/create_xviews.sql ------------------------------------------------------------------------------- -- -- Script: create_xviews.sql -- Purpose: to create views on the x$ tables -- -- Copyright: (c) Ixora Pty Ltd -- Author: <NAME> -- -- Comment: Must be executed as SYS via SQL*Plus. -- --...
<filename>mavela.sql -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : Dim 16 juin 2019 à 20:27 -- Version du serveur : 10.1.34-MariaDB -- Version de PHP : 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
<filename>database/dbDatabase/20180510V2.sql -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost -- Thời gian đã tạo: Th5 10, 2018 lúc 05:53 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; STA...
CREATE TABLE [dbo].[VersionInfo] ( [Version] INT DEFAULT ((0)) NOT NULL, [Date] DATE NOT NULL );
<filename>services/scene/schema/mock_data.sql USE home_automation; INSERT INTO `service_scene_scenes` (`id`, `name`, `owner_id`) VALUES (1, 'Hue light test', 1); INSERT INTO `service_scene_actions` (`scene_id`, `stage`, `sequence`, `func`, `controller_name`, `device_id`, `command`, `property`, `property_value`, `prop...
INSERT INTO KRCR_NMSPC_T (NMSPC_CD, OBJ_ID, VER_NBR, NM, ACTV_IND, APPL_ID) VALUES ('KC-S2S', SYS_GUID(), 1, 'Kuali Coeus System to System', 'Y', 'KC') / INSERT INTO KRCR_PARM_T(NMSPC_CD,CMPNT_CD,PARM_NM,OBJ_ID,VER_NBR,PARM_TYP_CD,VAL,PARM_DESC_TXT,EVAL_OPRTR_CD,APPL_ID) VALUES ('KC-S2S','All','MULTI_CAMPUS_ENABLED',SY...
-- ## Compile with PL/Scope -- ### Enable PL/Scope in the current session ALTER SESSION SET plscope_settings='identifiers:all, statements:all'; -- ### Create/compile a procedure CREATE OR REPLACE PROCEDURE load_from_tab IS BEGIN INSERT INTO deptsal (dept_no, dept_name, salary) SELECT /*+ordered */ d...
<reponame>zuesgooogle/game-server /* Source Server : game server Source Server Version : 1 Source Host : 127.0.0.1:3306 Target Server Type : MYSQL Target Server Version : 1 File Encoding : UTF-8 Mysql Engine : InnoDB Author: <NAME> Email : <EMAIL> Date : 2015-05-24 18:54...
-- AUTHORIZATION -- -- add grant authorizations for group camunda-admin: INSERT INTO ACT_RU_AUTHORIZATION (ID_, TYPE_, GROUP_ID_, RESOURCE_TYPE_, RESOURCE_ID_, PERMS_, REV_) VALUES ('camunda-admin-grant-drd', 1, 'camunda-admin', 14, '*', 2147483647, 1); -- decision requirements definition -- ALTER TABLE ACT_RE_D...
<gh_stars>1-10 # Quote all table names with '{' and '}', and prefix all system tables with 'core.' CREATE TABLE `{test}` ( `id` int(10) unsigned NOT NULL auto_increment, `message` varchar(255) NOT NULL default '', `active` tinyint(1) NOT NULL default '1', ...
<filename>src/main/resources/db/delta-scripts/000_add_new_versioning_mechanism.sql -- Necessary line in order to document the change. INSERT INTO disturbance.schema_history (schema_version,comment,applied) VALUES ('000','Applied versioning of schema', NOW());
<filename>employees.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 27, 2021 at 06:32 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 11, 2022 at 05:36 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>Database/AdventureWorks2014/Security/Schemas/Person.sql CREATE SCHEMA [Person] AUTHORIZATION [dbo] GO EXEC sp_addextendedproperty N'MS_Description', N'Contains objects related to names and addresses of customers, vendors, and employees', 'SCHEMA', N'Person', NULL, NULL, NULL, NULL GO
<reponame>sadambaig/heavestack -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Dec 26, 2020 at 02:49 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"; /...
insert into webhooks(webhook_sid, url, username, password) values('<PASSWORD>', 'http://127.0.0.1:4000/auth', 'foo', 'bar'); insert into service_providers (service_provider_sid, name, root_domain, registration_hook_sid) values ('3f35518f-5a0d-4c2e-90a5-2407bb3b36f0', 'SP A', 'jambonz.org', '90dda62e-0ea2-47d1-8164-5b...
--- name: srv_mailbox description: Lists all mailboxes templates: - backend.backend returns: TABLE returns_columns: - name: localpart type: email.t_localpart - name: domain type: dns.t_hostname - name: password type: commons.t_password - name: uid type: integer - name: quota type: integer -...
DROP TABLE EVENTTABLE IF EXISTS; CREATE TABLE EVENTTABLE ( E_NAME VARCHAR(255) NOT NULL UNIQUE, E_DESC VARCHAR(255) NOT NULL, E_EMAIL VARCHAR(255) NOT NULL, E_ADDRESS VARCHAR(255) NOT NULL, E_CITY VARCHAR(255) NOT NULL, E_STATE VARCHAR(255) NOT NULL, E_ZIP VARCHAR...
<gh_stars>1-10 -- AlterTable ALTER TABLE `account_ban_history` MODIFY `account_id` INTEGER UNSIGNED; -- AlterTable ALTER TABLE `account_bans` MODIFY `account_id` INTEGER UNSIGNED; -- AlterTable ALTER TABLE `account_viplist` MODIFY `account_id` INTEGER UNSIGNED; -- AlterTable ALTER TABLE `coins_transactions` MODIFY `...
<filename>db/db_structure.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 08, 2015 at 01:32 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Data...
USE [ANTERO] GO ALTER TABLE [sa].[sa_arvo_uraseuranta] ALTER COLUMN [jarjestys] [varchar](10) NULL
<gh_stars>10-100 INSERT INTO author (id, firstname, lastname, version) VALUES (12, 'Thorben', 'Janssen', 0); INSERT INTO book (id, publishingdate, title, version) VALUES (7, '2017-04-04', 'Hibernate Tips', 0); INSERT INTO bookauthor (bookid, authorid) VALUES (7, 12);
/* Author: <NAME> Date: November 9, 2019 Purpose: Identify the top 10 community areas that have the highest number of crimes in 2019. Note: This data set contains arrests so we're using arrests as a proxy for criminal activity across the city. */ -- B...
<gh_stars>0 DROP DATABASE IF EXISTS hotel; CREATE DATABASE hotel; USE hotel; CREATE TABLE Setor ( CodSetor int unsigned PRIMARY KEY auto_increment, NomeSetor varchar(30) not null ); CREATE TABLE Produto ( Cod_Produto int unsigned PRIMARY KEY auto_increment, Nome_Produto varchar(40) not null, Valor_Produto decimal (10...
CREATE OR REPLACE TRIGGER BEFOREUPDATEPROFESSOR -- 【1-⑥】 BEFORE UPDATE ON professor FOR EACH ROW DECLARE pwd_str VARCHAR2(100) := ''; pwd_num VARCHAR2(100) := ''; BEGIN /* 패스워드는 문자와 숫자를 조합하여 입력해야 함 */ IF REGEXP_LIKE(:NEW.p_pwd, '[^[:digit:]]') != true OR REGEXP_LIKE(:NEW.p_pwd, '[^[:alpha:]]') != true T...
<reponame>CoderSong2015/Apache-Trafodion -- @@@ START COPYRIGHT @@@ -- -- 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 -- t...
library TestChoiceTypes using QDM version '5.6' parameter "Measurement Period" Interval<DateTime> context Patient define TestIntegerChoice: ["Laboratory Test, Performed"] L where L.result = 1 define TestDecimalChoice: ["Laboratory Test, Performed"] L where L.result = 1.0 define TestQuantityChoice: [...
-- 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. IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.VIEWS...
<filename>test/trace_processor/parsing/oom_kill.sql SELECT ts, instant.name, process.pid, process.name FROM instant JOIN process ON instant.ref = process.upid WHERE instant.ref_type = 'upid';
<reponame>SKalt/pg_sql_parser_tests void aminitparallelscan (void *target);
CREATE TABLE `black_lists` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '黑名单类型(1 晒单评论)', `user_id` int(11) NOT NULL DEFAULT 0 COMMENT '用户ID', `created_at` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `user_id_type` (`user_id`, `type`) )ENGINE=InnoDB DEFAULT...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 13, 2021 at 11:06 AM -- Server version: 5.7.33 -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
-- @testpoint:opengauss关键字passing(非保留),作为角色名 --关键字不带引号-成功 drop role if exists passing; create role passing with password '<PASSWORD>' valid until '2020-12-31'; drop role passing; --关键字带双引号-成功 drop role if exists "passing"; create role "passing" with password '<PASSWORD>' valid until '2020-12-31'; drop role "passing...
<filename>src/main/resources/com/openbravo/pos/scripts/Oracle-upgrade-3.50.sql -- uniCenta oPOS - Touch Friendly Point Of Sale -- Copyright (C) 2009-2015 uniCenta -- http://www.unicenta.net -- -- This file is part of uniCenta oPOS. -- -- uniCenta oPOS is free software: you can redistribute it and/or modi...
-- SEED VALUES INSERT INTO DEPARTMENTS (DEPARTMENT_NAME) VALUES ('Sales'), ('Legal'), ('Marketing'), ('Engineering'), ('Office Support'), ('Finance'); -- new database so the harc coded values for the relative ids __should__ be correct INSERT INTO ROLES (TITLE, SALARY, DEPARTMENT_ID) VALUES ('Sales Lead', 10000, 1), ...
CREATE TABLE IF NOT EXISTS `workflow_routines` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dss1` int(11) DEFAULT NULL COMMENT 'rule id related to wrf', `dss2` int(11) DEFAULT NULL COMMENT 'rule id related to hechms', `dss3` int(11) DEFAULT NULL COMME...
<reponame>CalgaryMichael/branchdb-python<filename>branchdb/engines/postgres/commands/all_databases.sql SELECT datname FROM pg_database
<filename>NH4H_2021/Script.PostDeployment_LookupData.sql /* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-depl...
--Criando tabela de cidades create table if not exists cidades( id int unsigned not null auto_increment, nome varchar(255) not null, estado_id int unsigned not null, area decimal(10,2), primary key (id), foreign key (estado_id) references estados (id) );
----- Criacao da tabela medida ----- CREATE TABLE IF NOT EXISTS medida ( data_hora text, peso real, sistolica interger, diastolica interger, pulsacao interger ); ----- Consulta da tabela medida ----- select * from medida;
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 08, 2021 at 08:43 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>Mercury.Database/Mercury.Database.Environment/Schema Objects/Schemas/dbo/Tables/ProblemStatement.table.sql<gh_stars>0 -- DBO.[PROBLEMSTATEMENT] (BEGIN) /* IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_NAME = 'ProblemStatement') AND (TABLE_SCHEMA = 'dbo')) DROP TABLE dbo.[Probl...
<gh_stars>0 -- +goose Up CREATE TABLE instrument_json ( id SERIAL, name VARCHAR(80) NOT NULL, description VARCHAR(255), datum JSONB, audit JSONB, currency_id INTEGER, from_date ...
<gh_stars>0 select cast(id as uuid) as id, first_name, last_name, email, gender from {{ ref('stg_customers',) }}
<gh_stars>0 /* Warnings: - A unique constraint covering the columns `[oauthId]` on the table `User` will be added. If there are existing duplicate values, this will fail. */ -- CreateIndex CREATE UNIQUE INDEX "User.oauthId_unique" ON "User"("oauthId");
<gh_stars>1-10 USE tempdb; GO IF OBJECT_ID(N'dbo.myTable', N'U') IS NOT NULL DROP TABLE dbo.myTable; GO CREATE TABLE dbo.myTable ( Id INT IDENTITY, ItemName VARCHAR(255) ) INSERT dbo.myTable VALUES ('Orange'); SELECT SCOPE_IDENTITY() AS SCOPE_IDENTITY, --< Last identity value generated in a session in th...