sql
stringlengths
6
1.05M
<reponame>boost-entropy-azure/steampipe-plugin-azure select id, name from azure.azure_app_service_plan where name = '{{resourceName}}'
USE [AIDE] GO INSERT INTO [dbo].[CONTRIBUTORS] ([EMP_ID],[CONTRI_LVL]) VALUES (915000452,1), (915000121,1), (220002255,1), (220002229,1), (220002227,1), (220002256,2), (220002257,2), (220002254,2), (40000597,2) GO
alter table "video"."TranscriptionJob" rename column "contentItemId" to "elementId";
<filename>openGaussBase/testcase/KEYWORDS/stdin/Opengauss_Function_Keyword_Stdin_Case0026.sql -- @testpoint:opengauss关键字stdin(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists stdin; create schema stdin; drop schema stdin; --关键字带双引号-成功 drop schema if exists "stdin"; create schema "stdin"; drop schema "stdin"; --关键字带单引...
<gh_stars>0 INSERT INTO T_FOO (ID, BAR) VALUES (1, 'aaa'); INSERT INTO T_FOO (ID, BAR) VALUES (2, 'bbb'); insert into t_coffee (name, price, create_time, update_time) values ('espresso', 2000, now(), now()); insert into t_coffee (name, price, create_time, update_time) values ('latte', 2500, now(), now()); insert into ...
INSERT INTO `customers` (`first_name`, `surname`) VALUES ('jordan', 'harrison'); INSERT INTO `item` (`item_name`,`item_price`) VALUES ('test_item', 10.00); INSERT INTO `orders` (`fk_customer_id`) VALUES (1); INSERT INTO `order_items` (`fk_order_id`, `fk_item_id`) VALUES (1,1);
<filename>ch13/scorelist.sql -- phpMyAdmin SQL Dump -- version 2.11.7 -- http://www.phpmyadmin.net -- -- 主機: localhost -- 建立日期: Oct 02, 2008, 03:33 PM -- 伺服器版本: 5.0.51 -- PHP 版本: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_...
<filename>SQL/Observations Statistics.sql<gh_stars>0 Select Sensor.Name, OfferingPhenomenon.Name OfferingPhenomena, Offering.Name Offering, UOMPhenomenon.Name UnitOfMeasurePhenomenon, UnitOfMeasure.Unit, UnitOfMeasure.UnitSymbol, Count(*) Count from Observation inner join Sensor on (Observation.SensorID = Se...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 14 Mei 2017 pada 17.28 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
CREATE TABLE IF NOT EXISTS apps ( app_id TEXT PRIMARY KEY NOT NULL CHECK (valid_android_app_id(app_id)) ) WITHOUT ROWID; CREATE TABLE IF NOT EXISTS scraped_apps ( scrape_id INTEGER PRIMARY KEY, app_id TEXT NOT NULL UNIQUE REFERENCES apps(app_id), scraped_when INTEGER NOT NULL DEFAULT (CAS...
<filename>egov/egov-tl/src/main/resources/db/migration/main/V20171027185126__tl_update_categorycode.sql --update category/subcategory code update egtl_mstr_category SET code = LPAD(id::text,5,'0'); update egtl_mstr_sub_category SET code = LPAD(id::text,5,'0'); alter table egtl_mstr_category ALTER code TYPE chara...
<filename>migrations/2019-10-06-055539_create_comment/up.sql CREATE TABLE comment ( id serial PRIMARY KEY, user_id integer REFERENCES "user"(id) ON DELETE CASCADE NOT NULL, article_id integer REFERENCES article(id) ON DELETE CASCADE NOT NULL, content text NOT NULL, reply_content text, create_time timestamp without time...
SELECT name FROM mitarbeiter m2 WHERE geschlecht = "M";
CREATE OR REPLACE FUNCTION zerobyte.NUMERIC_TO_ZEROBYTE(n NUMERIC) AS ( `IF`(n IS NULL, NULL, zerobyte.STRING_TO_ZEROBYTE(CAST(n AS STRING))) );
CREATE TABLE `twitch_user_permissions` ( `twitch_user_id` VARCHAR(64) NOT NULL, `permission` VARCHAR(64) NOT NULL, PRIMARY KEY (`twitch_user_id`), UNIQUE INDEX `user_permission` (`twitch_user_id`, `permission`) ) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB ;
# divide.sql # Demonstrate use of SIGNAL when divide-by-zero error occurs. DROP FUNCTION IF EXISTS divide; delimiter $$ #@ _DEFINITION_ CREATE FUNCTION divide(numerator FLOAT, divisor FLOAT) RETURNS FLOAT DETERMINISTIC BEGIN IF divisor = 0 THEN SIGNAL SQLSTATE '22012' SET MYSQL_ERRNO = 1365, MESSAGE_...
-- I want to insert data into my burger table - the data will be a burger name and the devoured status INSERT INTO burgers (burger_name, devoured, createdAT) -- I want to insert chick pea as the burger name and flase as the devoured status VALUES ("Chick Pea Burger", FALSE, NOT NULL); INSERT INTO burgers (burger_name...
<gh_stars>1-10 ALTER TABLE "proof" DROP COLUMN provable;
use extfuncdemodb.extfuncs; -- Here's a few example UserAgent strings to send to the External Function with cte_useragents as ( select 'Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36' as useragent union select 'Mozilla/5.0 ...
/* Copyright (c) 2006-2013 Regents of the University of Minnesota For licensing terms, see the file LICENSE. */ /* Run this script once against each instance of Cyclopath @once-per-instance */ \qecho \qecho Circa Fall 2012: This script adds route reaction and route sharing. \qecho BEGIN TRANSACTION; SET CO...
-- MySQL dump 10.19 Distrib 10.3.31-MariaDB, for debian-linux-gnueabihf (armv8l) -- -- Host: localhost Database: homie-db -- ------------------------------------------------------ -- Server version 10.3.31-MariaDB-0+deb10u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/depcies/change_sequence_usr_t6_new.sql CREATE TABLE public.t6 ( c2 text, c1 integer DEFAULT nextval('public.s6'::regclass) NOT NULL, c3 integer DEFAULT public.fff(1, 2) );
REVOKE ALL ON ALL TABLES IN SCHEMA public FROM "{{user}}"; REVOKE ALL ON ALL SEQUENCES IN SCHEMA public FROM "{{user}}"; REVOKE ALL ON ALL FUNCTIONS IN SCHEMA public FROM "{{user}}"; REASSIGN OWNED BY "{{user}}" TO "{{admin_user}}"; DROP OWNED BY "{{user}}"; DROP USER "{{user}}";
CREATE TABLE partsupp ( ps_partkey INTEGER, ps_suppkey INTEGER, ps_availqty INTEGER, ps_supplycost DECIMAL(10,2), ps_comment VARCHAR(199) )
<reponame>gchiappe/dbt3 -- @(#)22.sql 2.1.8.1 -- TPC-H/TPC-R Global Sales Opportunity Query (Q22) -- Functional Query Definition -- Approved February 1998 :x :o select cntrycode, count(*) as numcust, sum(c_acctbal) as totacctbal from ( select substr(c_phone, 1, 2) as cntrycode, c_acctbal from customer ...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.3 -- Dumped by pg_dump version 12.3 -- Started on 2020-05-25 16:37:12 CEST SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_c...
<reponame>KeonaK/employee-tracker -- // * **department**: -- // * **id** - INT PRIMARY KEY -- // * **name** - VARCHAR(30) to hold department name -- // * **role**: -- // * **id** - INT PRIMARY KEY -- // * **title** - VARCHAR(30) to hold role title -- // * **salary** - DECIMAL to hold role salary -- // ...
<gh_stars>0 CREATE TABLE session_data ( session_id TEXT PRIMARY_KEY, user_id INTEGER PRIMARY KEY, last_accessed TEXT, FOREIGN KEY (user_id) REFERENCES users(id) );
<gh_stars>0 # # Makefile のプロセッサ依存部(RX65N用) # # # プロセッサ依存部ディレクトリ名の定義 # PRCDIR = $(SRCDIR)/arch/$(CORE)_$(TOOL)/$(PRC) # # コンパイルオプション # INCLUDES += -I$(PRCDIR) COPTS += -misa=v2 ASFLAGS += -misa=v2 # # カーネルに関する定義 # KERNEL_DIRS += $(PRCDIR) KERNEL_COBJS += prc_timer.o prc_kernel_impl.o KERNEL_ASMOBJS += start.o SYS...
<filename>application/migrations/20200909130145_price_rules_exclude_tiers.sql<gh_stars>0 -- price_rules_exclude_tiers -- CREATE TABLE `phppos_price_rules_tiers_exclude` ( `price_rule_id` int(10) NOT NULL, `tier_id` int(10) NOT NULL, CONSTRAINT `phppos_price_rules_tiers_ibfk_1` FOREIGN KEY (`price_rule_id`) REFER...
<reponame>dct2012/laminas-albums<gh_stars>0 CREATE TABLE album ( id INTEGER PRIMARY KEY AUTO_INCREMENT, artist varchar(100) NOT NULL, title varchar(100) NOT NULL ); INSERT INTO album (artist, title) VALUES ('The Military Wives', 'In My Dreams'); INSERT INTO album (artist, title) VALUES ('Adele', '21');...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th7 19, 2021 lúc 03:38 AM -- Phiên bản máy phục vụ: 10.4.20-MariaDB -- Phiên bản PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
set markup html on spool on entmap off spool myreport.htm select * from eom_students; exit
<gh_stars>1-10 DROP DATABASE IF EXISTS employeedb; CREATE DATABASE employeedb; USE employeedb; CREATE TABLE departments ( department_id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, name VARCHAR(30) NOT NULL ); CREATE TABLE roles ( roles_id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, title VARCHAR(30) NOT NUL...
-- tkt1873.test -- -- db eval {DETACH aux} DETACH aux
<reponame>jinlongsj/jinlong-system -- 表19 :角色流程表 DROP TABLE IF exists tbl_jinlong_system_role_process; CREATE TABLE tbl_jinlong_system_role_process ( process_id INT(11) AUTO_INCREMENT COMMENT '角色流程ID', role_id INT(11) NOT NULL COMMENT '角色ID', record_id INT(11) NOT NULL COMMENT '审核记录信息ID', process...
<filename>fineract-provider/src/main/resources/sql/migrations/core_db/V97__add_permission_for_adjust_savings_transaction.sql INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_savings', 'ADJUSTTRANSACTION_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'ADJUSTTRAN...
<filename>src/main/resources/database/oracle/alter_10_x_0_to_11_0_0_user.sql alter table o_user add u_firstname varchar2(255 char); alter table o_user add u_lastname varchar2(255 char); alter table o_user add u_email varchar2(255 char); alter table o_user add u_birthday varchar2(255 char); alter table o_user add u_grad...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2020 at 10:32 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
/** * ID: 00595 * Title: Big Countries * Difficulty: Easy * Description: Table: World * * +-------------+---------+ | Column Name | Type | +-------------+---------+ | name | varchar | | continent | varchar | | area | int | | population | int | | gdp | int | +-------------+---------+ name is the primary key col...
CREATE PROCEDURE [dbo].[uspNegotiationApplicationStatusDelete] @NegotiationApplicationStatusID uniqueidentifier AS SET NOCOUNT ON SET XACT_ABORT ON BEGIN TRAN DELETE FROM [dbo].[NegotiationApplicationStatus] WHERE [NegotiationApplicationStatusID] = @NegotiationApplicationStatusID COMMIT
<reponame>AlbAngs/SRP_ripinu /**/ INSERT INTO `Carrera` (`idCarrera`,`Carrera`) VALUES (NULL,'Informática'); INSERT INTO `Carrera` (`idCarrera`,`Carrera`) VALUES (NULL,'Agronomíia'); INSERT INTO `Carrera` (`idCarrera`,`Carrera`) VALUES (NULL,'Administración'); /**/ INSERT INTO `Tipo_proyecto` (`idTipo_proyecto`,`Nombr...
insert into users(first_name, last_name) values('Brian', 'Hotopp'); insert into restaurants(name, google_location, creator_id) values('McDonalds', 'mcdlocation', 1); insert into menuentries(restaurant_id, creator_id, name, description, price, calories, creation_date, update_date) values(1, 1, 'test menuitem 2', 'tasty...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 11, 2021 at 05:10 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
Select * FROM Answers
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Dec 11, 2020 at 07:23 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
<reponame>CRHarding/testDeployBBandIda<gh_stars>0 DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS products; DROP TABLE IF EXISTS contributor; CREATE TABLE users ( id SERIAL PRIMARY KEY, email VARCHAR(255) UNIQUE, password VARCHAR(255), date_created TIMESTAMP NOT NULL DEFAULT NOW() ); CREATE TABLE contributo...
<reponame>Tiernebre/tailgate<filename>src/main/resources/db/migration/V2020_07_16_04__Password_reset_tokens_uuid_refactor.sql ALTER TABLE IF EXISTS password_reset_tokens ALTER COLUMN token TYPE uuid USING token::uuid; ALTER TABLE IF EXISTS password_reset_tokens ALTER COLUMN token SET DEFAULT gen_random_uuid();
<filename>src/data/checkschoolroads.sql select roadsnearpublicschools1415.state_code, latitude, longitude, roadsnearpublicschools1415.route_numb, roadsnearpublicschools1415.aadt, distance, roadswithtraffic14.geom::geometry from roadsnearpublicschools1415 join roadswithtraffic14 using (gid) where ncessch in (select max(...
<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : sima Source Server Version : 50714 Source Host : localhost:3306 Source Database : j1_data Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-12-29 11:54:56 */ SET FOREIGN_KEY_CHECK...
CREATE TABLE bees ( id int PRIMARY KEY, color int, hive_id int UNIQUE REFERENCES hives(id) );
/* 创建数据库 */ create database @{full}MIS@{no} on ( name = @{full}MIS@{no}_data, filename = '@{root}\@{full}MIS@{no}.mdf', size = 10, maxsize = 50, filegrowth = 5 ) log on ( name = @{full}MIS@{no}_log, filename = '@{root}\@{full}MIS@{no}.ldf', size = 5, maxsize = 25, filegrowth = 5 ...
<reponame>mashharuki/book-4839966885<filename>6/1/6-1-4-2_create-rooms.sql CREATE TABLE IF NOT EXISTS `rooms` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `owner_id` BIGINT UNSIGNED NOT NULL, `owner_address` VARCHAR(255) DEFAULT NULL, `title` VARCHAR(255) DEFAULT NULL, `description` TEXT DEFAULT NULL, `e...
<gh_stars>1-10 WITH source AS ( SELECT * FROM {{ source('gitlab_dotcom', 'services') }} QUALIFY ROW_NUMBER() OVER (PARTITION BY id ORDER BY updated_at DESC) = 1 ), renamed AS ( SELECT id::NUMBER AS service_id, type::VARCHAR AS service_ty...
<reponame>flowsforapex/apex-flowsforapex /* -- Flows for APEX - flow_call_activities.pkb -- -- (c) Copyright Oracle Corporation and / or its affiliates, 2020,2022. -- -- Created 19-Feb-2022 <NAME> - Oracle -- Modified 22-May-2022 <NAME> (MT AG) -- */ create or replace package body flow_call_activities as ty...
<filename>backend/de.metas.externalsystem/src/main/sql/postgresql/system/80-de.metas.externalsystem/5619300_sys_gh12344_ExternalSystem_Config_GRSSignum_syncHUs_cols.sql -- 2021-12-17T06:36:13.696Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org...
library ANCDT31 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCConfig called Config include ANCConcepts called Cx include ANCDataElements called PatientData include ANCContactDataElements called ContactData context Patient /* ("Flu immunization history" = "No doses") OR ("Flu immunizat...
<filename>src/EA.Iws.Database/scripts/Everytime/02-Views/0016-Reports-DataExportNotifications.sql IF OBJECT_ID('[Reports].[DataExportNotifications]') IS NULL EXEC('CREATE VIEW [Reports].[DataExportNotifications] AS SELECT 1 AS [NOTHING];') GO ALTER VIEW [Reports].[DataExportNotifications] AS SELECT RE...
create database db1; create database db2; use db1; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键id', `userName` varchar(32) DEFAULT NULL COMMENT '用户名', `passWord` varchar(32) DEFAULT NULL COMMENT '密码', `user_sex` varchar(32) DEFAULT NULL, `nick_name`...
-- Suppression des tables drop table if exists ARTICLE cascade; drop table if exists COMMANDE cascade; drop table if exists RAYON cascade; -- Génération des tables /*==============================================================*/ /* Table : ARTICLE */ /*=================...
<filename>models/marts/core/intermediate/h_session.sql with h_session_temp as ( select * from {{ ref('stg_divolte_clickstream') }} ), final as ( select hash (sessionID||'*divolte') as HK_session_id, min (timestamp) as load_date, 'divolte' as record_source, sessionid from h_session_temp g...
--- application_configuration --- depends on: n/a INSERT INTO public.application_configuration (id, version, sub_group_order, title, help, code, sub_group_name, value, type, group_name, description, mutable) VALUES (1, 0, 1, 'Enable CEF Logging', null, 'owf.enable.cef.logging', null, 'false', 'Boolean', 'AUDITING', n...
<filename>migrations/1512998571_repo_nullable.down.sql ALTER TABLE repo ALTER COLUMN vcs SET DEFAULT '', ALTER COLUMN default_branch SET DEFAULT ''; UPDATE repo SET vcs = '' WHERE vcs IS NULL; UPDATE repo SET default_branch = '' WHERE default_branch IS NULL; ALTER TABLE repo ALTER COLUMN vcs SET NOT NULL, ALT...
<reponame>TheWintersFox/BurgerTime<gh_stars>1-10 INSERT INTO burgers (name) VALUES ('CheeseBurger'); INSERT INTO burgers (name) VALUES ('Hamburger'); INSERT INTO burgers (name, devoured) VALUES ('QuarterPounder', true);
CREATE PROCEDURE SP978(OUT MYCOUNT INTEGER) SPECIFIC SP978_131475 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE324;SELECT COUNT(*)INTO MYCOUNT FROM TABLE331;SELECT COUNT(*)INTO MYCOUNT FROM TABLE290;SELECT COUNT(*)INTO MYCOUNT FRO...
<reponame>opengauss-mirror/Yat<gh_stars>0 -- @testpoint:cursor声明游标,使用select限定条件(having)查询,指定游标返回的行; --前置条件 drop table if exists cur_test_15; create table cur_test_15(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20)); insert into cur_test_15 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(21,36...
<reponame>UsernameError3/ist-405-dev-wiki /***************************************************************************** Title: Developer Wiki Use: Final Project - Store useful snippets related to development Author: <NAME> School: Southern Illinois University Term: Fall 2019 Developed: 11/30/19 Tested:...
CREATE TABLE config ( copt VARCHAR(20) NOT NULL, cval VARCHAR(40) NOT NULL ) INSERT INTO config VALUES ('ctitle', 'Just A Forum'), ('ctadd', '10'), ('cradd', '5'), ('creg', '1') DROP TABLE config CREATE TABLE users ( -- 用户ID uid INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, -- 用户名...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2020 at 04:49 PM -- 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...
<gh_stars>0 DROP DATABASE pocket_money; CREATE DATABASE pocket_money; USE pocket_money; CREATE TABLE tasks( Id_tasks INT AUTO_INCREMENT NOT NULL, tas_name VARCHAR(50) NOT NULL, tas_description VARCHAR(255), tas_points INT NOT NULL, PRIMARY KEY(Id_tasks) ); INSERT INTO tasks (tas_name, tas_des...
SELECT EMAIL, EMAIL_VALID, NOTIFY_SERVICE, NOTIFY_ADS, UNDELIVERABLE, UNIX_TIMESTAMP(REGIST_TIME) AS REGIST_TIME FROM DIR_USER_EMAIL WHERE USER_ID = ? ORDER BY EMAIL
-- MySQL dump 10.16 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: satpro_sm -- ------------------------------------------------------ -- Server version 10.1.48-MariaDB-0+deb9u2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET...
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 15, 2020 at 03:33 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
<filename>timestamp.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 06, 2020 at 06:15 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[AEIOUaeiou]%[AEIOUaeiou]';
<gh_stars>0 REM $Id$ BOH00030.sql,v 1.7 04/07/2014 00:00:00 QDT Exp $ /***************************************************************** **** **** **** PACKAGE TEMPLATE **** **** ...
DELIMITER $ CREATE TRIGGER trg_notifikasi_panitia_pembayaran_psikotest AFTER INSERT ON pembayaran_psikotest FOR EACH ROW BEGIN INSERT INTO notifikasi_panitia (no_pendaftaran,nama_notifikasi,keterangan,status,jenis) VALUES (NEW.no_pendaftaran,'Pembayaran Psikotest',CONCAT('Pendaftar dengan nomor pendaftaran ',NEW.no_...
<filename>migrations/2021-08-23-235510_create_customer_type_discounts/up.sql CREATE TABLE customer_type_discounts ( customer_type INTEGER PRIMARY KEY, discount INTEGER NOT NULL ); insert into customer_type_discounts values (1, 0), (2, 50), (3, 30);
<reponame>duranfatih/ccd-definition-store-api<gh_stars>0 CREATE SEQUENCE public.category_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; CREATE TABLE public.category ( id integer NOT NULL DEFAULT nextval('public.category_id_seq...
<reponame>eloemosynator/YbEasyCli CREATE OR REPLACE PROCEDURE yb_chunk_dml_by_integer_highcard_p( a_table VARCHAR , a_integer_column VARCHAR , a_dml VARCHAR , a_min_chunk_size BIGINT , a_table_where_clause VARCHAR DEFAULT 'TRUE' , a_verbose ...
<gh_stars>0 CREATE TABLE SOSTA ( INDIRIZZO VARCHAR(30) PRIMARY KEY, LAT DECIMAL(10,6) NOT NULL, LNG DECIMAL(10,6) NOT NULL, RICARICA VARCHAR(2) ) ENGINE=INNODB;
<gh_stars>1-10 drop table if exists logs; create table logs ( id INTEGER primary key autoincrement, Processus TEXT NOT NULL, Type TEXT NOT NULL, Path TEXT NOT NULL, date_created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); drop table if exists reports; create table reports ( id INTEGER primary key auto...
<gh_stars>1-10 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = w...
-- Verify seattleflu/schema:roles/clinical-uploader/grants on pg begin; select 1/pg_catalog.has_database_privilege('clinical-uploader', :'DBNAME', 'connect')::int; select 1/pg_catalog.has_schema_privilege('clinical-uploader', 'receiving', 'usage')::int; select 1/pg_catalog.has_column_privilege('clinical-uploader', 'r...
<gh_stars>10-100 --- This query will give you the difference in the filestats from max snapshot tot he Min snapshot -- drop table tempDB.dbo.#TempFileStats -- drop table ##TempFileStats IF OBJECT_ID('tempDB.dbo.##TempFileStats', 'U') IS NULL select getdate() as runtime, db_name(database_id) as dbname,* into ##TempFile...
<reponame>Rocinante32/trm ALTER TABLE semesters DROP techie_key_prefix;
<filename>sql/9791.sql /* Views Per Keyword https://platform.stratascratch.com/coding/9791-views-per-keyword?python= Difficulty: Hard Tables: <facebook_posts> post_id int poster int post_text varchar post_keywords varchar post_date datetime face...
SELECT m.Name FROM Employee AS e JOIN Employee AS m ON e.ManagerId = m.Id GROUP BY m.Name HAVING COUNT(*) >= 5 ORDER BY m.Name;
--USE ContosoUniversity3Dev; --USE ContosoUniversity3; GO IF OBJECT_ID(N'__EFMigrationsHistory') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationI...
<reponame>biosan-gxl/gxl-1st -- 1. 得到分析的基础表,筛选销售中心、市场中心、技术保障中心的差旅报销记录 -- 1.1 匹配人员的二级部门 drop table if exists shujuzu.account_fy_temp01; create temporary table shujuzu.account_fy_temp01 as SELECT cpersonname ,if(fashengrq is null,dbill_date,fashengrq) as fashengrq ,case when b.second_dept is null or b.secon...
alter table "public"."post_tag" alter column "post_uuid" set not null;
ALTER TABLE `erp_adjustment_items` MODIFY COLUMN `date` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP AFTER `adjust_id`, MODIFY COLUMN `product_id` int(11) NULL AFTER `date`, MODIFY COLUMN `quantity` decimal(15, 4) NULL AFTER `option_id`, MODIFY COLUMN `warehouse_id` int(11) NULL AFTER `quantity`, MODIFY COLUMN `type` v...
ALTER TABLE avatar_datas ALTER COLUMN small_avatar_file_size TYPE bigint; ALTER TABLE avatar_datas ALTER COLUMN large_avatar_file_size TYPE bigint; ALTER TABLE avatar_datas ALTER COLUMN full_avatar_file_size TYPE bigint;
<reponame>izebit/ClickHouse SET allow_experimental_data_skipping_indices = 1; DROP TABLE IF EXISTS test.single_column_bloom_filter; CREATE TABLE test.single_column_bloom_filter (u64 UInt64, i32 Int32, i64 UInt64, INDEX idx (i32) TYPE bloom_filter GRANULARITY 1) ENGINE = MergeTree() ORDER BY u64 SETTINGS index_granula...
<filename>project_db.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 02 Mai 2017 à 23:39 -- Version du serveur : 10.1.8-MariaDB -- Version de PHP : 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 ...
<reponame>boost-entropy-repos-org/lucy-web<filename>api/api_sources/schema-migration-sql/RequestAccessSchema/RequestAccessSchema.sql -- ### Creating Table: access_request ### -- CREATE TABLE access_request (); ALTER TABLE access_request ADD COLUMN request_id SERIAL PRIMARY KEY; ALTER TABLE access_request ADD ...
<filename>db/schema.sql DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY id );
-- MATERIALIZED VIEW AND INDEXES FOR VIRUS 2697049 AND PROTEIN ORF1ab polyprotein CREATE MATERIALIZED VIEW public.epitope_2697049_orf1ab_poly TABLESPACE default_ts AS SELECT DISTINCT epi.iedb_epitope_id, epi.epitope_iri, epi.cell_type, epi.mhc_class, epi.mhc_allele, epi.response_frequency_pos, ...
<gh_stars>10-100 define column domain price_domain ( number(8,2) );
<reponame>kanish671/goalert -- +migrate Up CREATE TABLE schedule_rules ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), schedule_id UUID NOT NULL REFERENCES schedules (id) ON DELETE CASCADE, sunday BOOLEAN NOT NULL DEFAULT true, monday BOOLEAN NOT NULL DEFAULT true, tuesday BOOLEAN NOT NULL DEFAUL...