sql
stringlengths
6
1.05M
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2016 at 11:27 AM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
START TRANSACTION; CREATE TABLE `home_footer_list` ( `id` int(11) NOT NULL, `link` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `status` int(11) NOT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, `created_at` datetime NOT ...
<filename>database/db.sql CREATE DATABASE tasksdb; CREATE TABLE task( id SERIAL PRIMARY KEY, title VARCHAR(255) UNIQUE, description VARCHAR(255) );
IF EXISTS ( SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[Results]') AND OBJECTPROPERTY(id, N'IsTable') = 1) BEGIN PRINT N'Dropping Table dbo.Results' DROP Table [dbo].[Results] END GO CREATE TABLE Results ( ResultID INT IDENTITY, TrainingSetSize INT, NGramLevel INT, NGramPercent...
BEGIN; ALTER TABLE song_requests ALTER COLUMN session_id DROP NOT NULL, ALTER COLUMN song_id DROP NOT NULL; COMMIT;
<filename>NoteBooks/Curso de SQL/Queries_Platzi/ranks.sql -- Windows Function -- Aquí wl ranking se comparte al tener n campos iguales. -- Al saltarse RNAK() deja gaps al tener campos con el mismo valor, para eliminar eso usamos DENSE_RANK SELECT *, RANK() OVER(PARTITION BY carrera_id ORDER BY colegiatura DESC) AS col...
<gh_stars>1-10 -- +migrate Up -- +migrate StatementBegin CREATE FUNCTION upper_md5(val text) RETURNS text AS $$ BEGIN RETURN upper(md5(val)); END; $$ LANGUAGE PLPGSQL; -- +migrate StatementEnd -- +migrate Down DROP FUNCTION upper_md5;
-- https://www.hackerrank.com/challenges/15-days-of-learning-sql/problem SELECT SUBMISSION_DATE, (SELECT COUNT(DISTINCT HACKER_ID) FROM SUBMISSIONS SUB2 WHERE SUB2.SUBMISSION_DATE = SUB1.SUBMISSION_DATE AND (SELECT COUNT(DISTINCT SUB3.SUBMISSION_DATE) FROM SUBMISSIONS SUB3 WHERE SUB3.HACKER_ID=SUB2.HACKER_...
<filename>sqllineage/data/tpcds/query54.sql with my_customers as ( select distinct c_customer_sk , c_current_addr_sk from (select cs_sold_date_sk sold_date_sk, cs_bill_customer_sk customer_sk, cs_item_sk item_sk from catalog_sales ...
CREATE TABLE [dbo].[DBFileSnapshot] ( [SnapshotDate] DATETIME2 (2) NOT NULL, [FileID] INT NOT NULL, [Size] BIGINT NOT NULL, [space_used] BIGINT NULL, CONSTRAINT [PK_DBFileSnapshot] PRIMARY KEY CLUSTERED ([SnapshotDate] ASC, [FileID] ASC) WITH (DATA_COMPRESSIO...
<reponame>dram/metasfresh -- -- clean up legacy AD_Column.ColumnClass -- -- 07.12.2016 15:09 -- URL zum Konzept DELETE FROM AD_Field_Trl WHERE AD_Field_ID=500062 ; -- 07.12.2016 15:09 -- URL zum Konzept DELETE FROM AD_Field WHERE AD_Field_ID=500062 ; -- 07.12.2016 15:09 -- URL zum Konzept DELETE FROM AD_Column_Trl...
ALTER TABLE signup_meetings ADD allow_attendance number(1,0) default '0' NULL; ALTER TABLE signup_ts_attendees ADD attended number(1,0) default '0' NULL;
CREATE table some_table(id int, tstamp timestamp); INSERT INTO some_table (id, tstamp) VALUES (1, current_timestamp); INSERT INTO some_table (id, tstamp) VALUES (2, current_timestamp); INSERT INTO some_table (id, tstamp) VALUES (3, current_timestamp); INSERT INTO some_table (id, tstamp) VALUES (4, current_timestamp...
##查询 #macro($taskQuery(subjectCode,classId,calDate,classIds)) select t.* from class_statistics_report t where t.subject_code=:subjectCode #if(classId) AND t.class_id=:classId #end #if(classIds) AND t.class_id in (:classIds) #end #if(calDate) AND t.cal_date=:calDate #end #end ##查询知识点分析情况 #macro($getKn...
<filename>persistence/sql/migrations/20200819163013000000_add_client_id_subject_idx_to_access_and_refresh.sqlite.up.sql -- sqlite support added later
USE [bisolutions_vvcb] GO IF EXISTS(SELECT * FROM sys.procedures WHERE NAME = 'B_Normal_Loan_CashRepayment_Subtract_To_Account') BEGIN /****** Object: StoredProcedure [dbo].[B_Normal_Loan_CashRepayment_Subtract_To_Account] Script Date: 10/13/2014 9:47:58 PM ******/ DROP PROCEDURE [dbo].[B_Normal_Loan_CashRep...
<reponame>Jamoladdin/chat<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 17 2020 г., 10:04 -- Версия сервера: 5.6.37 -- Версия PHP: 7.0.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2017 at 03:02 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
-- MySQL dump 10.13 Distrib 5.7.36, for Linux (x86_64) -- -- Host: localhost Database: recommendation_spark -- ------------------------------------------------------ -- Server version 5.7.36-google-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARA...
-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: safty_questionnaire -- ------------------------------------------------------ -- Server version 10.3.23-MariaDB-0+deb10u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CH...
-- MySQL Script generated by MySQL Workbench -- Mon Aug 19 13:30:20 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering 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='ON...
CREATE DATABASE twitter_dashboard; USE twitter_dashboard; CREATE TABLE IF NOT EXISTS users (id VARCHAR(25) NOT NULL, created_at DATETIME, PRIMARY KEY (id)); CREATE TABLE IF NOT EXISTS user_stats (id VARCHAR(100) NOT NULL, user_id VARCHAR(25) NOT NULL, last_insert_date DATETIME, description VARCHAR(300), followers_co...
<filename>agi_mopublic_pub/agi_mopublic_pub_mopublic_grenzpunkt.sql SELECT grenzpunkt.geometrie, grenzpunkt.lagegen AS lagegenauigkeit, CASE WHEN lagezuv_txt = 'ja' THEN TRUE ELSE FALSE END AS lagezuverlaessigkeit, grenzpunkt.punktzeichen, grenzpunkt.punktzeichen_txt...
### Schema CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id int(10) AUTO_INCREMENT NOT NULL , burger_name varchar(250) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) );
<filename>server/db/places.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Creato il: Gen 30, 2018 alle 18:29 -- Versione del server: 10.1.28-MariaDB -- Versione PHP: 7.1.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<gh_stars>0 CREATE TABLE IF NOT EXISTS users ( "id" uuid PRIMARY KEY, "email" varchar(64) not null unique, "hashed_password" text not null, "role" varchar(64) not null,...
<reponame>niraj8/norm select * from misspelled_employees;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 26 sep. 2017 à 22:18 -- Version du serveur : 10.1.21-MariaDB -- Version de PHP : 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
CREATE TABLE [dbo].[ridePositions] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [RideId] INT NOT NULL, [Latitude] NUMERIC (18, 10) NOT NULL, [Longitude] NUMERIC (18, 10) NOT NULL, [TS] DATETIME2 (7) NOT NULL, CONSTRAINT [PK_ridePositions] PRIMARY KEY CLUST...
<reponame>rivannurihsan/WEBPRO -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 25, 2020 at 02:38 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone ...
<gh_stars>1-10 -- ****************** SqlDBM: MySQL ******************; -- ***************************************************; -- DROP DATABASE IF EXISTS g6xs2llrd7gfjp1t; -- CREATE DATABASE g6xs2llrd7gfjp1t; -- USE g6xs2llrd7gfjp1t; -- ****************** SqlDBM: MySQL ******************; -- ************************...
-- file:json.sql ln:449 expect:true SELECT ia2 FROM json_populate_record(NULL::jsrec, '{"ia2": [1, "2", null, 4]}') q
<gh_stars>0 -- create table departments ( -- dep_no varchar(10) primary key, -- dept_name varchar(20) -- ); -- Create table dept_emp ( -- emp_no varchar(10), -- dept_no varchar(10), -- from_date date, -- to_from date -- ); -- Create table dept_managers ( -- dept_no varchar(10), -- emp_no varchar(10), -- from...
<reponame>antonyjim/open-service-management<filename>packages/install/packages/core/sql/triggers/ins_sys_user.sql /* Ensure each user has at the minimum the global app scope. */ CREATE TRIGGER ins_sys_user BEFORE INSERT ON sys_user FOR EACH ROW IF NEW.app_scope IS NULL THEN SET NEW.app_scope = 'SYS'; ...
<reponame>gianadda/ZenPRM IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspEditEntityNPIByIdent') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE uspEditEntityNPIByIdent GO /* * * uspEditEntityNPIByIdent * * */ CREATE PROCEDURE uspEditEntityNPIByIdent @intIdent BIGINT, @vcrNPI V...
-- Usage: prompt>sqlite3 test.db < test.sql -- Example: C:\myfolder>sqlite3 test.db < test.sql -- Set output to a text file if too much is displayed in the standard output -- remember, no semicolon after SQLite dot commands --.output out.txt -- Turn on column headings in SQLite .header ON -- SELECT name, city, coun...
<reponame>pedroxavier96/DBII-3rdSemester<filename>grants-classroom.sql CREATE ROLE dysf LOGIN PASSWORD '<PASSWORD>' SUPERUSER CREATEDB CREATEROLE CREATE ROLE bd2 LOGIN PASSWORD '<PASSWORD>' valid until '28-08-2018' Create schema locais authorization dysf ALTER TABLE public.cidade SET SCHEMA locais select * from lo...
<reponame>doyoulovemycat/Postgres-useful-queues-for-LT SELECT cast(total_time / 1000 as numeric(20,4)) as "TOTAL TIME (s)" , cast((total_time / (nullif(calls, 0) * 1000)) as numeric(20,4)) as "AVG TIME (s)" , cast((max_time / 1000) as numeric(20,4)) as "QUERY MAX TIME (s)...
-- -- PostgreSQL database dump -- -- Dumped from database version 10.6 (Ubuntu 10.6-1.pgdg14.04+1) -- Dumped by pg_dump version 10.3 -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; O...
INSERT INTO t1 values(20)
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; -- -- Name: oldtulp; Type: SCHEMA; Schema: -; Owner: tulp -- CREATE SCHEMA oldtulp; ...
<reponame>EternallyNocturnal/enwebstore_beta1 -- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 04, 2015 at 09:44 PM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
<reponame>geophile/sql-layer SELECT SUM(price * quan) FROM items WHERE oid = ?
REM ****************************************************************** REM Fecha : 08/05/2018 REM Realizado por : Master Zen REM Base de Datos : FS_AUWEB_US REM Script : Tipos REM ****************************************************************** PROMPT AUW_TO_MO_USMO.sql... @@AUW_TO_MO_USMO.sql PROMPT AUW_TT...
-- Run with: -- mysql -u root < sql_scripts/init.sql CREATE DATABASE sbd2; USE sbd2; CREATE TABLE USER_ROW_1 ( id INT NOT NULL AUTO_INCREMENT, username VARCHAR(50) NOT NULL, password VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, sex VARCHAR(1) NOT NULL, birthday DATE N...
<filename>asr.sql -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 21, 2020 at 02:04 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_...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 07, 2022 at 10:47 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- Creating the bookshelves table in database CREATE TABLE BOOKSHELVES (id SERIAL PRIMARY KEY, name VARCHAR(255)); -- Retrieving unique values from books table and insert into the bookshelves table INSERT INTO bookshelves(name) SELECT DISTINCT bookshelf FROM books; -- Adding a column to the books table containing the...
DEF title = 'PCT_FREE \&lt;\&gt; 10 (dba_tables)'; DEF filename = 'PctFree.html'; DEF nextpage = 'Indexes.html'; DEF prevpage = 'TableDOP.html'; @@00_begin.sql @@sql/sub/PctFree.sql SET MARK HTML OFF; PRO <h2>Comments</h2> PRO <p>PCT_FREE is the minimum percentage of free space in a block.</p> PRO <p>Win...
<gh_stars>0 CREATE DATABASE T_Gufos; USE T_Gufos CREATE TABLE Categoria ( IdCategoria int primary key identity not null ,Nome varchar (250) not null unique ); create table Eventos ( IdEvento int identity primary key not null ,Titulo varchar (250) ,Descricao text ,DataEvento datetime ,Ativo ...
<reponame>tech-team/sentiment select ttext from sentiment;
CREATE TABLE [dbo].[SubscribedSKUs_History] ( [CorrelationId] UNIQUEIDENTIFIER NOT NULL, [Id] NVARCHAR (255) NOT NULL, [CustomerId] UNIQUEIDENTIFIER NOT NULL, [SkuBusinessId] UNIQUEIDENTIFIER NOT NULL, [PartNumber] NVARCHAR (255) NOT NULL, [OfferNam...
CREATE TABLE rolemapping ( id SERIAL NOT NULL, principaltype varchar, principalid integer, roleid integer, CONSTRAINT rolemapping_pk PRIMARY KEY (id) );
CREATE TABLE phone( member_id SMALLINT UNSIGNED NOT NULL, phone VARCHAR(10) NOT NULL, FOREIGN KEY(member_id) REFERENCES members );
CREATE TABLE `gw1_missions` ( `mission_id` smallint(4) UNSIGNED NOT NULL, `missiontype_id` tinyint(2) UNSIGNED NOT NULL, `region_id` smallint(4) UNSIGNED NOT NULL, `rect` tinytext NOT NULL, `name_en` tinytext NOT NULL, `name_de` tinytext NOT NU...
-- \i /home/globi/sex_for_many/sql/video.sql -- \i /root/sex_for_many/sql/video.sql drop table if exists video; create table video( r_id int not null, -- model id nick varchar(16) unique not null references buser(bname), src text, -- video src poster text, -- video poster src crat TIMESTAMP NOT NULL default now()::tim...
-- Postgres style WITHIN GROUP window functions SELECT ARRAY_AGG(o_orderkey) WITHIN GROUP (ORDER BY o_orderkey ASC) FROM orders
-- Check views for upstream tables/materialized views before changing/using! --DROP VIEW models.ras_project_summary; CREATE OR REPLACE VIEW models.ras_project_summary AS SELECT squery.col_1 AS "1. Project Title", squery.col_2 AS "2. Description", squery.col_3 AS "3. Units", squery.col_4 AS "4. Data Collect...
<reponame>algorythmist/fluid-spring-batch create table client ( id bigint not null, gender char(10), birth_date date, district varchar(100) ); create table account ( id bigint not null, statement_frequency char(10), date_opened date, district varchar(100) ); create table client_account...
<gh_stars>1-10 DROP FUNCTION IF EXISTS dbo.[RegexMatches] GO CREATE FUNCTION [dbo].RegexMatches ( @StringToParse [nvarchar](MAX) , @Pattern nvarchar(max) ) RETURNS TABLE (RegexMatch nvarchar(max)) AS EXTERNAL NAME CLR.RegexFunctions.RegexMatches;
<filename>batch/sql/fix-provisioning-bug.sql<gh_stars>100-1000 DELIMITER $$ DROP TRIGGER IF EXISTS attempts_before_update; CREATE TRIGGER attempts_before_update BEFORE UPDATE ON attempts FOR EACH ROW BEGIN IF OLD.start_time IS NOT NULL AND (NEW.start_time IS NULL OR OLD.start_time < NEW.start_time) THEN SET NEW....
-- -- initial table design -- before normalization -- CREATE TABLE employee ( employee_id SERIAL, first_name VARCHAR(50), last_name VARCHAR(50), hire_date DATE, salary NUMERIC(9,2), manager INTEGER, dept_id INTEGER, dept_name VARCHAR(50), office_1 VARC...
<gh_stars>0 CREATE TABLE TRAINING_STIPEND_RATES ( TRAINING_STIPEND_RATES_ID DECIMAL(12,0) NOT NULL, CAREER_LEVEL VARCHAR(50) NOT NULL, EXPERIENCE_LEVEL DECIMAL(3,0) NOT NULL, STIPEND_RATE DECIMAL(12,2), EFFECTIVE_DATE DATE, DESCRIPTION VARCHAR(200), UPDATE_T...
-- 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. PRINT N'Adding foreign keys to [edfi].[PostSeconda...
#macro($listRulesByActivity(activityCode)) SELECT * FROM lottery_activity_rule WHERE activity_code=:activityCode #end
create table tab_new ( id number(15) ); comment on column tab_new.id is 'id2';
<reponame>Steague/GZMobile<gh_stars>0 ALTER TABLE `gzdata`.`players` ADD COLUMN `archetype` VARCHAR(45) NULL AFTER `name`;
psql -U postgres -p 35432 -c "CREATE ROLE blog_owner LOGIN ENCRYPTED PASSWORD '<PASSWORD>' NOSUPERUSER;" createdb -U postgres -p 35432 -O blog_owner blog psql -U postgres -p 35432 -c "CREATE ROLE blogdemo_owner LOGIN ENCRYPTED PASSWORD '<PASSWORD>' NOSUPERUSER;" createdb -U postgres -p 35432 -O blogdemo_owner ...
# --- !Ups CREATE TYPE state AS ENUM ('IN_PROGRESS', 'ON_HOLD', 'CANCELLED', 'COMPLETED'); CREATE TYPE completable_by_type AS ENUM ('EMAIL', 'GROUP'); CREATE TABLE request ( slug TEXT PRIMARY KEY, name TEXT NOT NULL, create_date TIMESTAMP WITH TIME ZONE NOT NULL, creator_email TEXT NOT NULL, state state NOT...
-- @testpoint:停用词测试 --停用词影响tsvector中的位置 SELECT to_tsvector('english','in the list of stop words'); SELECT to_tsvector('english','list stop words'); --包含和不包含停用词的文档计算出的排序是完全不同的 SELECT ts_rank_cd (to_tsvector('english','in the list of stop words'), to_tsquery('list & stop')); SELECT ts_rank_cd (to_tsvector('english','lis...
<reponame>fairhopeweb/web2project -- Updated the database fields because we really only care about the start and end *dates* not also the times. ALTER TABLE `projects` CHANGE `project_start_date` `project_start_date` DATE NULL DEFAULT NULL; ALTER TABLE `projects` CHANGE `project_end_date` `project_end_date` DATE NULL...
<reponame>ehabarman/Leetcode SELECT a.Name AS 'Employee' FROM Employee a, Employee b WHERE a.ManagerId = b.Id AND a.Salary > b.Salary;
<filename>bp2/predavanja/31.right.sql SELECT RIGHT('Headset Ball Bearings', 8)
<reponame>xiaomantou88/laravel-blog -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-05-20 17:47:04 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64) -- -- Host: localhost Database: jcarstore -- ------------------------------------------------------ -- Server version 8.0.16 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Počítač: 127.0.0.1 -- Vytvořeno: Stř 01. dub 2015, 08:38 -- Verze serveru: 5.6.21 -- Verze PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
<gh_stars>0 select * from user where pseudo like "fre%"; select * from user; select * from photo; select * from photo_type; select * from annonce; select * from commentaire; update user set wp = "259f22ddc4876510cf309100b93d84df13a9bb279c75b89a3acadf3b63049081" where id = 2; SELECT * FROM user left join user_type on...
INSERT INTO department (name) VALUES ('HR'), ('Accounting'), ('Sales'), ('IT'); INSERT INTO role (title, salary, department_id) VALUES ('HR Generalist', 50000, 1), ('HR Director', 80000, 1), ('Accountant', 75000, 2), ('Junior Accountant', 50000, 2), ('Sales Manager', 100000,...
<reponame>ScottzMC/blog<filename>blog_db(2).sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2020 at 12:31 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTIO...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-10-2015 a las 03:45:24 -- Versión del servidor: 5.6.26 -- Versión de PHP: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
DROP TABLE IF EXISTS aux.kid_wic_addresses; CREATE TABLE aux.kid_wic_addresses AS ( -- keys to link cornerstone addresses to aux.addresses WITH wic_addresses AS (select geocode_address as address, unnest(ogc_fids) as ogc_fid FROM cornerstone.addresses), -- collect linked addresses addresses AS ( ...
<filename>002.sql create or replace procedure upd_job( v_job_id jobs.job_id%type, v_job_title jobs.job_title%type) is begin update jobs set job_title =v_job_title where job_id = v_job_id; if sql%notfound then raise_application_error(-20202,'No jobs updated.'); end if; dbms_output.put_l...
<reponame>btk-jpp/xgimi /* Navicat MySQL Data Transfer Source Server : 数据库 Source Server Version : 50721 Source Host : localhost:3306 Source Database : xgimi Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2020-06-09 10:20:21 */ SET FOREIGN_KEY...
<reponame>MIa-Elsa/dms-smm695 create table people.person ( id BIGSERIAL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, email VARCHAR(50) UNIQUE, gender VARCHAR(50), dob DATE NOT NULL, PRIMARY KEY (id), CHECK(gender='Female' OR gender='Male') ); insert into people.person (first_name,...
CREATE INDEX ix_facilities_published_delivery_radius ON facilities(published, delivery_radius);
CREATE TABLE analytics ( title VARCHAR(255), value INT(11) ); INSERT INTO analytics VALUES ('visits', 0); CREATE TABLE classes ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) ); CREATE TABLE class_grps ( id INT PRIMARY KEY AUTO_INCREMENT, class_id INT(3), name VARCHAR(255) ); CREATE T...
<reponame>Arbupa/DAS_Sistemas create database BreakBad; use BreakBad; CREATE TABLE IF NOT EXISTS characters ( id INT(10) PRIMARY KEY, name VARCHAR (50), birthday VARCHAR (50), occupation VARCHAR (50), img VARCHAR (200), status VARCHAR (50), nickname VARCHAR (50), portrayed VARCHAR (50),...
<gh_stars>100-1000 insert into balance (id, created_at, status, updated_at, account_id, amount) values (1, now(), 1, null, 1001, 99.91);
CREATE OR REPLACE FUNCTION utils.get_object_image_count(objcsid VARCHAR) RETURNS INTEGER AS $$ DECLARE imagecount INTEGER; BEGIN select count(*) into imagecount from collectionobjects_common co JOIN hierarchy hrel on (co.id = hrel.id) JOIN relations_common rimg on ( hrel.name = rimg.objectcsid and ri...
<gh_stars>0 SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for budget -- ---------------------------- DROP TABLE IF EXISTS `budget`; CREATE TABLE `budget` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dtInclusion` datetime DEFAULT NULL, `total` decimal(19,2) DEFAULT NULL, `fk_cliente` ...
<reponame>ProjectKaiser/pk-qderby connect 'jdbc:derby:K:/Products/triniforce/bin/dbs/derby;create=false;upgrade=true'; select count(*) from t_tfile;
CREATE database test; CREATE TABLE `user`( id INT(11) NOT NULL AUTO_INCREMENT COMMENT '主键id', NAME VARCHAR(18) NOT NULL COMMENT '姓名', age INT(11) DEFAULT '0' COMMENT '年龄', PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHARSET=utf8;
<filename>db/create_db.sql<gh_stars>0 create database ourroots; create user ourroots with encrypted password 'password'; create user ourroots_schema with encrypted password 'password'; grant all privileges on database ourroots to ourroots_schema; -- grant all privileges on database ourroots to ourroots;
---------------------------------------------------------------------------- -- Trivadis AG, Infrastructure Managed Services -- Saegereistrasse 29, 8152 Glattbrugg, Switzerland ---------------------------------------------------------------------------- -- Name......: 03_create_scott_pdb1.sql.sql -- Author....: <NA...
create or replace package body owa_util_pkg as /* Purpose: Package contains utilities related to PL/SQL Web Toolkit (OWA) Remarks: Who Date Description ------ ---------- -------------------------------- MBR 12.06.2008 Created */ procedure htp_print_clob (p_clob in clob, ...
UPDATE district SET name = 'Palomar' WHERE ccc_id ='60';
alter system set optimizer_capture_sql_plan_baselines=TRUE scope=memory;
-- -- Copyright 2020 The Android Open Source Project -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applica...
drop extension pg_graphql; create extension pg_graphql; select graphql.resolve($${ heartbeat }$$) -> 'data' ->> 'heartbeat' like '2%';
-- @author prabhd -- @created 2014-04-01 12:00:00 -- @modified 2012-04-01 12:00:00 -- @tags dml MPP-21090 ORCA -- @product_version gpdb: [4.3-] -- @optimizer_mode on -- @description Tests for MPP-21090 \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore DROP TABLE IF EXISTS colalias_dml_fl...