sql
stringlengths
6
1.05M
SELECT name FROM world WHERE name LIKE 'Y%'
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.6.33) # Datenbank: cur # Erstellt am: 2017-01-29 13:05:52 +0000 # ******************************************************...
-- Add features type column to atlas collection. See AtlasCollection#featuresType for details. ALTER TABLE `atlas`.`atlascollection` ADD COLUMN `featuresType` VARCHAR(45) NOT NULL AFTER `definition`;
<reponame>ulkeba/openolat -- eportfolio arteafcts create table o_ep_artefact ( artefact_id int8 not null, artefact_type varchar(32) not null, version int4 not null, creationdate timestamp, collection_date timestamp, title varchar(512), description varchar(4000), signature int8 default 0, businesspath ...
<reponame>imajou/IU-F18-DMD<gh_stars>0 /* 3.1 */ select car.car_id from cars as car, orders as o, transactions as t, customers as c where c.name = (%s) AND c.customer_id = t.customer_id AND t.transaction_id = o.transaction_id AND car.car_id = o.car_id AND car.color = (%s) AND car.plate_number l...
<filename>AMDM_SQLITE/create_tables.sql<gh_stars>0 CREATE TABLE IF NOT EXISTS USER( USER_PR INTEGER PRIMARY KEY AUTOINCREMENT, USER_ARMYNUMBER CHAR(100) NOT NULL, USER_NAME CHAR(100) NOT NULL, PASSWORD CHAR(100) NOT NULL, USER_DISCHARGEDATE DATETIME, UPDATEDATE DATETIME NOT NULL ); CREATE TABLE IF NOT EXIS...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : smart_info Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-05-30 15:41:10 */ SET FOREIGN_KEY_...
<reponame>pcstout/study-explorer<filename>hbgd_data_store_server/data/sql/002_update_studies_studyfield.sql UPDATE studies_studyfield SET label = 'Study ID', field_type = 'str', big_order = -1, lil_order = -1 WHERE field_name = 'Study_ID'; UPDATE studies_studyfield SET label = 'Short Description', ...
USE library; DELETE FROM author; INSERT INTO author (id, first_names, last_name) VALUES (1, '<NAME>.', 'Montgomery'), (2, 'George', 'Eliot'), (3, 'Nathaniel', 'Philbrick'), (4, 'Oscar', 'Wilde'), (5, '<NAME>.', 'Lewis'), (6, 'Bill', 'Bryson'), (7, 'Lee', 'Child'), (8, 'Robert', 'Galbraith'), (9, '<NAME>.', 'Rowling');...
CREATE TABLE default.math_test (`dt` Float64, `sensor_id` String, `value_float` Float32, `loco_num` Int32, `section` String, `upload_id` String) ENGINE = MergeTree() PARTITION BY toMonday(toDateTime(dt)) ORDER BY (loco_num, section, upload_id, sensor_id, dt) SAMPLE BY dt SETTINGS index_granularity = 8192
DROP TABLE `selfservice_recovery_requests`
set enable_incremental to off; set tpch_updates to 'customer,orders,lineitem,supplier'; set max_parallel_workers_per_gather to 0; set work_mem to 1000000; set enable_nestloop to off; set enable_indexscan to off; set enable_mergejoin to off; set dbt_query to 'q5'; set enable_dbtoaster to on; select q5_name, su...
CREATE TABLE TABLE_INT_PARTITION ( id bigint NOT NULL, value_string varchar(50) NOT NULL, value_number1 bigint NOT NULL, value_number2 bigint NOT NULL ); PARTITION TABLE TABLE_INT_PARTITION ON COLUMN value_number1; CREATE TABLE TABLE_STRING_PARTITION ( id bigint NOT NULL, value_stri...
create table if not exists cursos ( nome varchar(30) not null unique, descricao text, carga int unsigned, totaulas int unsigned, ano year default '2016' ) default charset=utf8; alter table cursos add column idcurso int first; alter table cursos add primary key (idcurso); insert into cursos values ('1', 'HTML5', 'Cur...
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: bookstore -- ------------------------------------------------------ -- Server version 5.5.5-10.1.10-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
INSERT INTO "question" ("id", "value","date_created",active) VALUES (1, 'Which racing driver won the Formula One Belgian Grandprix Tournament?',now(),true); INSERT INTO "question" ("id", "value","date_created",active) VALUES (2, 'What is the market capitalisation (m-cap) to GDP ratio of India, as of 2021?',now(),true)...
<reponame>nateclind/coal_study create table news_tbl ( storeid bigint primary key, full_text varchar ); create table news_meta_tbl ( title varchar, abstract varchar, storeid bigint primary key, articletype char(25), authors varchar, coden char(25), companies varchar, copyright v...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 01, 2021 at 06:06 PM -- Server version: 10.3.28-MariaDB -- PHP Version: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
create table Talk_comments ( id serial primary key, talk_id integer not null references talks(id), title text not null, content text not null, author varchar(100) not null );
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS `user_contribution_sound_details` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `user_contribution_id` BIGINT NOT NULL COMMENT 'UserContributionID', `priority` INT COMMENT 'Priority', `talk_type` INT COMM...
drop database if exists grouptalkdb; create database grouptalkdb; use grouptalkdb; CREATE TABLE users ( id BINARY(16) NOT NULL, loginid VARCHAR(15) NOT NULL UNIQUE, password BINARY(16) NOT NULL, email VARCHAR(255) NOT NULL, fullname VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE user...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Aug 03, 2017 at 03:24 PM -- Server version: 5.6.28 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
DROP DATABASE IF EXISTS employee_db; CREATE database employee_db; USE employee_db; CREATE TABLE dept_table ( dept_id INT AUTO_INCREMENT NOT NULL, dept_name VARCHAR(30) NOT NULL, PRIMARY KEY (dept_id) ); CREATE TABLE role_table ( role_id INT AUTO_INCREMENT NOT NULL, title VARCHAR(30) NOT NULL, ...
CREATE PROCEDURE SProc_Pessoa_Delete ( @Id uniqueidentifier ) AS Delete from tblPessoas Where Id = @Id
CREATE procedure [dbo].[RegisterNewIncident]( @type int, @people varchar(max), @date datetime, @branch int, @value decimal(12,2) = null, ...
<gh_stars>0 set feedback off set heading off set pagesize 5000 set linesize 5000 set trim on set trimspool on set wrap on set serveroutput on size 1000000 alter session set NLS_DATE_FORMAT = 'yyyy-mm-dd hh24:mi:ss'; set numformat 99999999999.99 def _editor = 'vi' -- prompt undefine usr db col usr new_value usr col ...
update tbl1 set col1 = col2; update tbl1 as set set col1 = col2;
-- MS SQL -- Database Name: Fiesta -- ------------------------------------------------------ -- DROP DATABASE IF EXISTS FiestaDB; USE master; GO CREATE DATABASE FiestaDB GO -- -- Table structure for table `products` -- DROP TABLE IF EXISTS [Products]; CREATE TABLE Products ( [id] INT PRIMARY KEY IDENTITY (1, 1), ...
<gh_stars>1-10 CREATE TABLE [dbo].[LINK_LINK_CHANGE_ACTIONS] ( Id bigint identity(1,1) NOT NULL primary key, SessionGroupUniqueId uniqueidentifier NOT NULL, SessionUniqueId uniqueidentifier NOT NULL, SourceId uniqueidentifier NOT NULL, ActionId uniqueidentifier NOT NULL, ArtifactLinkId int NOT NULL, --IsDeferr...
--1. inner join: select records that match between two tables --2. left join: select all recors from the left table --3. right join: select all records from the right table select [customer name], quantity, total, o.orderid from customers$ as c right join orders$ as o on c.orderid=o.o...
CREATE TABLE [ExpressionsOfInterest]( [Id] [uniqueidentifier] NOT NULL DEFAULT NEWID(), [Email] [nvarchar](256) NOT NULL, [ContactName] [nvarchar](250) NULL, [ContactPhone] [nvarchar](250) NULL, [OrganisationName] [nvarchar](250) NOT NULL, [StandardReference] [nvarchar](10) NULL, [Status] [nvarchar](20) NOT NULL...
drop table if exists JSONB_ENTITIES cascade; create table JSONB_ENTITIES ( id uuid not null, documents jsonb, version int8, primary key (id) );
ALTER TABLE db_version CHANGE COLUMN required_11501_01_mangos_spell_proc_event required_11501_02_mangos_spell_bonus_data bit; DELETE FROM spell_bonus_data WHERE entry IN (64569); INSERT INTO spell_bonus_data VALUES (64569, 0, 0, 0, 0, 'Item - Blood Reserve');
<reponame>ptrick/hdfs-hive-sql-playground<filename>bin/apache-hive-3.1.2-bin/scripts/metastore/upgrade/oracle/hive-txn-schema-2.3.0.oracle.sql<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:d37a74115723a33f28b5bc159090873f37f2c67859853146999cca46138235a5 size 3931
--liquibase formatted sql --changeset platform:create-registry-schema create schema if not exists registry; alter schema registry owner to ${regOwnerName}; alter database ${dbName} set search_path to "$user", registry, public; --changeset platform:registry-schema-grants grant usage on schema registry to public; --ch...
-- Revert awesome:constantfdw from pg BEGIN; DROP FOREIGN TABLE IF EXISTS api.constant; DROP SERVER IF EXISTS awesome_constant; COMMIT;
REFRESH MATERIALIZED VIEW email_to_primary_email_booster;
<gh_stars>1-10 CREATE TABLE zitadel.projections.orgs ( id TEXT, creation_date TIMESTAMPTZ, change_date TIMESTAMPTZ, resource_owner TEXT, org_state SMALLINT, sequence BIGINT, domain TEXT, name TEXT, PRIMARY KEY (id) ); CREATE TABLE zitadel.projections.org_owners_orgs ( ...
<filename>sql/yjbb/600986.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'600986',@CutoffDate = N'2017-09-30',@EPS = N'0.35',@EPSDeduct = N'0',@Revenue = N'64.76亿',@RevenueYoy = N'31.87',@RevenueQoq = N'22.73',@Profit = N'3.20亿',@ProfitYoy = N'5.90',@ProfiltQoq = N'8.50',@NAVPerUnit = N'6.1461',@ROE = N'6.15',@CashPerUnit = N...
<gh_stars>0 INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (1, '2018-11-25 13:31:12', 'atuando', 1, 1); INSERT INTO "tb_comentarioticket"("id", "datacadastro", "comentario", "fk_usuario", "fk_ticket") VALUES (2, '2018-11-25 13:31:26', 'resolvendo', 1, 1); INSERT ...
<reponame>johanbudiman/CrudSKKNI<filename>db.sql CREATE DATABASE `dbsertifikasi` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE TABLE IF NOT EXISTS `t_data_pribadi` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `nik` CHAR(16) NOT NULL, `nama` VARCHAR(50) NOT NULL, `nohp` VARCHAR(12) NOT NULL, `...
<filename>database/schema.sql DROP DATABASE IF EXISTS express_cc; CREATE DATABASE express_cc; USE express_cc; CREATE TABLE users( userID INT NOT NULL AUTO_INCREMENT, username VARCHAR(15) NOT NULL, email VARCHAR(100) NOT NULL, password VARCHAR(60), CONSTRAINT users_uc UNIQUE (username, email), ...
<filename>migrations/2018-06-19-091723_create_abac_object_list_function/up.sql create function abac_object_list(_attrs abac_attribute[], _offset integer, _limit integer) returns setof abac_attribute as $$ begin case array_length(_attrs, 1) when 1 then return query select (t.inbound).* ...
/* ******************************************************************************/ /* QACS -- Oracle script for creating tables and relationships */ /* ******************************************************************************/ CREATE TABLE CUSTOMER( CustomerID Int NOT NULL, LastName Char(25) NOT N...
CREATE FUNCTION CalcTotalEmployeeInTeam(@PK INT) RETURNS INT AS BEGIN DECLARE @RET INT = ( SELECT COUNT(*) AS TotalEmployee FROM tblTeam T JOIN tblTeamEmployee TE ON T.TeamID = TE.TeamID JOIN tblEmployee E on TE.EmployeeID = E.EmployeeID WHERE T.TeamID = @PK ) RETURN @RET END
<gh_stars>0 create table if not exists event ( event_id INTEGER PRIMARY KEY AUTOINCREMENT, event_type TEXT, event_time TEXT );
<gh_stars>1-10 /* Author: This code was generated by DALGen version 1.1.0.0 available at https://github.com/H0r53/DALGen Date: 12/27/2017 Description: Creates the order table and respective stored procedures */ USE applicationtemplate; -- ------------------------------------------------------------ -- Drop e...
<gh_stars>1-10 --- !Ups CREATE TABLE users ( user_id SERIAL PRIMARY KEY, oauth_id VARCHAR UNIQUE NOT NULL ); CREATE INDEX idx_oauth_id ON users(oauth_id); CREATE TABLE tokens ( token UUID PRIMARY KEY, user_id INT REFERENCES users(user_id) ON DELETE CASCADE ); --- !Downs DROP TABLE IF EXISTS tokens; DROP T...
<filename>__tests__/assets/cosmo-example-1.sql SELECT * FROM Families f WHERE 1=1 AND f.id = "WakefieldFamily"
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='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `dopt` DEFAULT CHARACTER SET latin1 ; USE `dopt` ; -- ---------------------------------...
<reponame>DataHandwerk/DataHandwerk-toolkit-mssql  Create View ssas.[model_json_31111_tables_columns_descriptions_StrAgg] As Select T1.databasename , T1.tables_name , T1.tables_columns_name , T1.RepoObject_guid , T1.RepoObjectColumn_guid , descriptions_StrAgg = String_Agg ( Value, Char ( 13 ) + Char ( 10...
DROP TABLE messages_day_stat;
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/create/86de5a05.sql -- file:insert_conflict.sql ln:196 expect:true create unique index fruit_index on insertconflicttest(fruit)
-- -- DELIMITER $$ DROP function IF EXISTS _split_get_columns_count $$ CREATE function _split_get_columns_count() returns TINYINT UNSIGNED DETERMINISTIC READS SQL DATA SQL SECURITY INVOKER COMMENT '' BEGIN declare return_value TINYINT UNSIGNED; select count(*) from _split_column_names_table ...
-- +----------------------------------------------------------------------------+ -- | <NAME> | -- | <EMAIL> | -- | www.idevelopment.info | -- |-----------------...
<reponame>ytyaru/Sqlite3.NewsApi.CreateTable.20190917143552<filename>src/news_images.sql create table images( news_id integer, -- どの記事に対応した画像か url text, -- 拡張子も含めているはず。これ重要 image blob -- バイナリ );
<gh_stars>10-100 -- Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0. -- PostgreSQL database for the validation module, version 1.0.0 SET client_encoding = 'UTF8'; SET default_with_oids = FALSE; CREATE TABLE IF NOT EXISTS "validation_dashboard" ( "dashboard_id" serial PRIMARY KEY, "...
<gh_stars>0 UPDATE ACCOUNT SET Lname = 'Swift' WHERE Email = '<EMAIL>'; UPDATE POST SET Content = 'Life is so tough :<' WHERE PostID = 21; UPDATE POST SET Content = 'nvm DELL fixed my laptop for me. yay!' WHERE PostID = 23; UPDATE POST SET Content = 'oops! you saw nothing!' WHERE PostID = 24; UPDATE [MESSAGE] SET C...
<reponame>arturskk/FitApka2 CREATE CACHED TABLE PUBLIC.WEIGHT( ID INT AUTO_INCREMENT, DATE DATE NOT NULL, KILOGRAMS FLOAT8 NOT NULL, USER_ID INT ); ALTER TABLE PUBLIC.WEIGHT ADD CONSTRAINT PUBLIC.CONSTRAINT_9 PRIMARY KEY(ID); ALTER TABLE PUBLIC.WEIGHT ADD CONSTRAINT PUBLIC.UK_R4KY9E01CP3060J1HGMMQO220 ...
CREATE TABLE Productos ( IDProductos int IDENTITY(1,1) PRIMARY KEY, Titulo varchar(255) NOT NULL, Descripcion varchar(255), PrecioUnitario Decimal(7,2) NOT NULL, Existencias int NOT NULL ); CREATE TABLE Ventas ( IDVentas int IDENTITY(1,1) PRIMARY KEY, IDProductos int FOREIGN KEY REFERENCE...
<filename>section_007/db/scripts/update_002.sql CREATE table if not exists vacancies( id serial primary key, header character varying(2000), href text, date Timestamp );
<reponame>zenhomes/dbt_stripe_source<filename>models/stg_stripe_invoice.sql {{ config(enabled=var('using_invoices', True)) }} with invoice as ( select * from {{ var('invoice') }} ), fields as ( select id as invoice_id, amount_due, amount_paid, amount_remaining, attempt_coun...
<reponame>Duan-You/Java<filename>fc/flipped_classroom.sql /* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 80019 Source Host : localhost:3306 Source Schema : flipped_classroom Target Server Type : MySQL Target Se...
<filename>db.sql<gh_stars>1-10 -- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: -- ------------------------------------------------------ -- Server version 5.5.44-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_C...
<filename>src/main/sql/seckill.sql<gh_stars>1-10 -- 秒杀执行存储过程 delimiter $$ CREATE PROCEDURE seckill.execute_seckill (IN v_seckill_id BIGINT, IN v_phone BIGINT, IN v_kill_time TIMESTAMP, OUT r_result INT) BEGIN -- 记录影响行数 DECLARE insert_count INT DEFAULT 0; START TRANSACTION; insert ign...
select l_orderkey, l_linenumber from lineitem order by l_orderkey desc limit 3;
<reponame>RaulCalvoLaorden/bntoolkit<filename>sql.sql<gh_stars>10-100 /* Created: 02/22/2019 Modified: 09/11/2019 Model: PostgreSQL 10 Database: PostgreSQL 10 */ -- Create tables section ------------------------------------------------- -- Table hash CREATE TABLE hash( hash Text NOT NULL, source Text, first_see...
<gh_stars>100-1000 SELECT fn_db_add_column('vds_dynamic', 'hosted_engine_configured', 'BOOLEAN NOT NULL DEFAULT FALSE');
-- -- OpenAPI Petstore. -- Prepared SQL queries for 'inline_object_1' definition. -- -- -- SELECT template for table `inline_object_1` -- SELECT `additionalMetadata`, `file` FROM `inline_object_1` WHERE 1; -- -- INSERT template for table `inline_object_1` -- INSERT INTO `inline_object_1`(`additionalMetadata`, `file`...
<reponame>emCOMP/twitter-mysql drop database if exists `journalists`; create database `journalists` DEFAULT CHARACTER SET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; USE `journalists`; SET SQL_MODE='ALLOW_INVALID_DATES'; #===================================== # drop instance tables #==================================...
CREATE table alltypes( int_col INTEGER, float_col FLOAT, double_col DOUBLE, smallint_col SMALLINT, date_col DATE, time_col TIME, timestamp_col TIMESTAMP, datetime_col DATETIME, monetary_col MONETARY, numeric_col NUMERIC(12,4), char_col char(255), varchar_col varchar(255), nchar_col nchar(255), varnchar_col nchar varyin...
-- @testpoint:结合存储过程,隐式游标,结合create语句,属性%FOUND的使用; --前置条件 drop table if exists cur_test_148; create table cur_test_148(c_id int,c_num int,c_name varchar(10),c_city varchar(10),c_add varchar(20)); insert into cur_test_148 values(1,18,'Allen','Beijing','AAAAABAAAAA'),(2,368,'Bob','Shanghai','AAAAACAAAAA'), ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2020 at 04:37 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- Revert database-registration-view-data:privileges/registration_resource from pg BEGIN; REVOKE USAGE ON SCHEMA registration FROM registration_resource; REVOKE SELECT ON registration.registrations FROM registration_resource; COMMIT;
-- Drop the employeeDB if it already exists DROP DATABASE IF EXISTS employeeDB; -- Create the DB "employeeDB" (only works on local connections) CREATE DATABASE employeeDB; -- Use the DB employeeDB for all the rest of the script USE employeeDB; -- Create the table "employeeTable" CREATE TABLE employeeTable ( id INT...
<gh_stars>0 DEF title = 'Full SQL Text and Plans'; DEF filename = '99_FullSqlTextAndPlans.sql'; DEF nextpage = '00_oracleperf.html'; DEF prevpage = 'SqlPlanDirectives.html'; SET TERMOUT OFF; SET HEADING OFF; SET PAGESIZE 0; SET TRIMSPOOL ON; SET FEEDBACK OFF; SET LINESIZE 250; DEFINE TopNumber = 100; D...
/* SQLyog Enterprise - MySQL GUI v8.12 MySQL - 5.6.17 : Database - sximo ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*Table structure for ta...
SELECT nomeproduto, precounitario, tempoentrega FROM produtos WHERE precounitario = 12 AND tempoentrega = 5 ORDER BY precounitario ASC LIMIT 10
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 18-Jun-2021 às 22:08 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
alter table users add constraint U2_username unique (username);
create table customer( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), address1 VARCHAR(255), address2 VARCHAR(255), city VARCHAR(255), state VARCHAR(255), zip VARCHAR(255), create_timestamp TIMESTAMP, update_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP() );
<gh_stars>0 -- // drop the DB and recreate good version to use DROP DATABASE IF EXISTS bryon_employee_mgt_system CREATE DATABASE bryon_employee_mgt_system USE bryon_employee_mgt_system -- // create the table for the employees Create Table department ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50...
select id, name from users where id=1 CREATE TABLE order_header ( order_id integer NOT NULL, cust_name varchar(50) NOT NULL, PRIMARY KEY (order_id) ) create table person ( id int, firstName varchar(100), lastName varchar(100), jobTitle varchar(100), department varchar(100), personType varchar(100) DEFAULT NULL, employe...
-------- 批次转实收保费 ------- procedure P_CURSOR(O_SCCE_FLAG out number, --- 返回值 0为正确 -1为失败 --- O_ERR_MSG out varchar2 --- 错误提示信息---- ) as cursor C_POLICY is /* use_nl(tcp,tcm) ordered index(tcp uni_contract_product__pronum) index(tcm IDX_CONTRACT_MAST...
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/delete/75f6ffe8.sql -- file:vacuum.sql ln:39 expect:true DELETE FROM vactst
CREATE TABLE PERSON( PERSON_ID BIGINT PRIMARY KEY AUTO_INCREMENT, FIRST_NAME VARCHAR(64) NOT NULL, LAST_NAME VARCHAR(64) NOT NULL, EMAIL_ADDRESS VARCHAR(128) NOT NULL ); CREATE TABLE ITEM( ITEM_ID BIGINT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(64) NOT NULL, DESCRIPTION VARCHAR(256), MANUFACTURER VARCH...
<gh_stars>1-10 /* Copyright (C) 2015 IASA - Institute of Accelerating Systems and Applications (http://www.iasa.gr) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
<filename>oracleAQ/basicCleanups.sql --Clean up all objects related to the obj type: EXECUTE DBMS_AQADM.STOP_QUEUE ( queue_name => 'objType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE ( queue_name => 'objType_classicQueue'); EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'objType_classicQueueTab...
/******************************************** ACHILLES Analyses on PROCEDURE_COST table *********************************************/ -- CREATE TABLE ACHILLES_procedure_cost_raw as -- select procedure_concept_id as po1.procedure_concept_id, -- paid_copay, -- paid_coinsurance, -- paid_toward_deductible, ...
use veritabani; go create procedure sp_kategoriye_gore_film_listeleme @kategori_id int as begin select film_adi,kategori_adi from tbl_filmler join tbl_kategori on kategori_id=film_kategori_id where kategori_id=@kategori_id end exec sp_kategoriye_gore_film_listeleme 1
<reponame>yswunstoppable/cngi<filename>security/src/main/resources/sql/shreshold/shreshold.sql #sql("list") select t.* from shreshold t where t.is_deleted = 0 #end #sql("get") select * from shreshold where id = #para(id) and is_deleted = 0 #end #sql("judge") select id from shreshold where concat("`",#para(field),"`"...
<filename>Application/EdFi.Ods.Extensions.Homograph/Artifacts/MsSql/Structure/Ods/0050-EXTENSION-Homograph-ExtendedProperties.sql<gh_stars>1-10 -- 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,...
<filename>admin/sql/InsertDefaultRows.sql \set ON_ERROR_STOP 1 BEGIN; INSERT INTO artist (name, sort_name, gid) VALUES ('Various Artists', 'Various Artists', '89ad4ac3-39f7-470e-963a-56509c546377'), ('Deleted Artist', 'Deleted Artist', 'c06aa285-520e-40c0-b776-83d2c9e8a6d1'); INSERT INTO label (name, gid) VA...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 15, 2021 at 07:43 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
SELECT lidesired - lipurchased AS "Items Still Desired" FROM listitems; -- SELECT lidesired, lipurchased, lidesired - lipurchased AS "Items Still Desired" from listitems ORDER BY "Items Still Desired" DESC;
<reponame>Flaviomagalhaest/docker-facerecognition-mysql CREATE DATABASE Example; USE Example; CREATE TABLE Usuario ( id INT AUTO_INCREMENT PRIMARY KEY, nrRegistro INT, nrDocumento INT ); CREATE TABLE DadosComp ( id INT AUTO_INCREMENT PRIMARY KEY, idUsuario INT, autenticacao INT, ); ALTER TABLE DadosComp ...
CREATE TABLE IF NOT EXISTS restaurants ( `placeID` INT, `latitude` NUMERIC(9, 7), `longitude` NUMERIC(10, 7), `the_geom_meter` VARCHAR(50) CHARACTER SET utf8, `name` VARCHAR(52) CHARACTER SET utf8, `address` VARCHAR(49) CHARACTER SET utf8, `city` VARCHAR(16) CHARACTER SET utf8, `state` V...
<reponame>dipch/SQL_prediction_using_regression<gh_stars>0 create or replace package server_package as procedure insert_car_brand(id in number, name in varchar2); procedure insert_car_revenue(id in number, name in varchar2, year in number, revenue in number); procedure insert_user_update(id in number, name in varcha...
<reponame>alv21133/go_tani -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2019 at 09:52 PM -- 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 = "...
<filename>db/create-temp-schema.sql DROP TABLE IF EXISTS token_transfer_temp_ID; CREATE TABLE token_transfer_temp_ID ( "id" SERIAL PRIMARY KEY, "token_address" bytea NOT NULL, "from_address" bytea NOT NULL, "to_address" bytea NOT NULL, "value" float8 NOT NULL, "transaction_hash" bytea NOT NULL,...