sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Dec 19, 2021 at 04:03 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 17, 2018 at 04:16 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.1.15-1+ubuntu16.04.1+deb.sury.org+2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
<reponame>dattphan15/BRED INSERT INTO products (title, description, price, user_id, image_url, active) VALUES ('Alasitas Java Coco Natural - Espresso','The Java variety originates from Ethiopia and has a wonderful and complex flavour profile that is super unique to its variety. The Rodriguez family produces beautiful ...
<reponame>songlea/amqp -- 创建用于登录与注册的用户表 CREATE TABLE `amqp`.`amqp_user` ( `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键', `user_name` VARCHAR(32) NOT NULL COMMENT '用户名(唯一)', `email` VARCHAR(128) NOT NULL COMMENT '邮箱地址(用来找回密码)', `password` VARCHAR(64) NOT NULL COMMENT '密码', PRIMARY KEY (`id`), UNIQUE INDEX `u...
CREATE TABLE plr_modules ( modseq int4, modsrc text ); INSERT INTO plr_modules VALUES (0, 'library(Kendall)' );
CREATE DATABASE IF NOT EXISTS `travelbuddy` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `travelbuddy`; -- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: travelbuddy -- ------------------------------------------------------ -- Server version 5.5.41-log /*!40101 SET @OLD_CHARACT...
CREATE TABLE `card_game`.`s_robot` ( `id` INT NOT NULL AUTO_INCREMENT, `forTyp` VARCHAR(45) NOT NULL, `uid` INT NOT NULL, PRIMARY KEY (`id`), INDEX `index2` (`forTyp` ASC));
<filename>S5/BD/tp2/tp1/insertionParc.sql INSERT INTO segment (indIP, nomSegment, etage) VALUES ("130.120.80", "Brin RDC" , NULL), ("130.120.81", "Brin 1er etage", NULL), ("130.120.82", "Brin 2eme etage", NULL); INSERT INTO Salle (nSalle, nomSalle, nbPoste, indIP) VALUES ("s01", "Salle 1", 3, "130.120.80"),...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2021 at 06:02 AM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- name: create-peers-table CREATE TABLE peers ( id serial NOT NULL, name VARCHAR, email VARCHAR, CONSTRAINT peers_pkey PRIMARY KEY (id) ); -- name: drop-peers-table DROP TABLE peers;
<reponame>jdkoren/sqlite-parser -- types2.test -- -- execsql { -- CREATE TABLE t3(i INTEGER, n NUMERIC, t TEXT, o BLOB); -- INSERT INTO t3 VALUES(1, 1, 1, 1); -- INSERT INTO t3 VALUES(2, 2, 2, 2); -- INSERT INTO t3 VALUES(3, 3, 3, 3); -- INSERT INTO t3 VALUES('1', '1', '1', '1'); -- INSERT INTO t3 VALUES('...
<filename>src/test/resources/sql/drop_function/5d5ceade.sql -- file:plpgsql.sql ln:2271 expect:true drop function excpt_test3()
<reponame>goodtocode/Entities Create Procedure [EntityCode].[ResourceItemSave] @Id int, @Key uniqueidentifier, @ResourceName nvarchar(50), @ResourceDescription nvarchar(50), @ItemName nvarchar(50), @ItemDescription nvarchar(50) AS -- Local variables Declare @Resourc...
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: apijson.cn Database: sys -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
<reponame>dino-D42/DOQL_scripts_examples /* - Name: cloud storage - Purpose: provides details on discovered Cloud storage services. - Date Created: 10/01/20 - Changes: */ Select ci.cloudinfrastructure_name "Cloud Infrastructure Name" ,ci.account_id "Account ID" ,ci.organization "Organization" ,d.na...
<reponame>NCIP/national-biomedical-image-archive /*L Copyright SAIC, Ellumen and RSNA (CTP) Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. L*/ create table study_temp as select study_pk_id from study where study_...
CREATE TABLE `records` ( `id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT , `value` VARCHAR( 20 ) NULL, PRIMARY KEY ( `id` ) ) ENGINE = InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `users` ( `id` BIGINT( 20 ) NOT NULL AUTO_INCREMENT , `login` VARCHAR( 20 ) NULL , `password` VARCHAR( 20 ) NULL , `email` VARCHAR( 60 )...
INSERT INTO `cs122b-ins-1`.user_status (statusid, status) VALUES (1, 'ACTIVE'); INSERT INTO `cs122b-ins-1`.user_status (statusid, status) VALUES (2, 'CLOSED'); INSERT INTO `cs122b-ins-1`.user_status (statusid, status) VALUES (3, 'LOCKED'); INSERT INTO `cs122b-ins-1`.user_status (statusid, status) VALUES (4, 'REVOKED');
-- This file should undo anything in `up.sql` drop index news_guid; create unique index news_guid on news (guid);
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 13, 2020 at 11:47 AM -- Server version: 5.7.28 -- PHP Version: 7.2.24-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
CREATE TABLE `produtos` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `status` CHAR(1) NOT NULL DEFAULT 'A', `descricao` VARCHAR(50) NULL DEFAULT NULL, `estoque_minimo` INT(11) NULL DEFAULT NULL, `estoque_maximo` INT(11) NULL DEFAULT NULL, PRIMARY KEY (`id`)); CREATE TABLE `compras` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `...
<reponame>pschlump/demo-server drop FUNCTION az_login(p_email varchar, p_password varchar); CREATE or REPLACE FUNCTION az_login(p_email varchar, p_password varchar) RETURNS varchar AS $$ DECLARE l_id uuid; l_auth_token uuid; l_data varchar (150); l_fail boolean; BEGIN l_fail = false; l_id = nu...
<gh_stars>1-10 /*---------------------------------------------------------------------------------------- -- FILE NAME : uninstall_encryption.sql -- Generated By : Ex!lant Technologies Pvt Ltd. -- Description : Generic Error Logging utility -- Date : May 18, 2012 -- Author : Ex!lan...
USE AdventureWorks2016 SELECT FirstName, LastName FROM Person.Person ORDER BY LastName ASC SELECT FirstName, LastName FROM Person.Person ORDER BY LastName DESC
CREATE SCHEMA [WebService]
CREATE TABLE users( index serial PRIMARY KEY, name VARCHAR(100) NOT NULL, address TEXT NOT NULL, email VARCHAR(100) UNIQUE NOT NULL, password VARCHAR(100) NOT NULL, image TEXT NOT NULL, verified BOOLEAN NOT NULL DEFAULT FALSE );
<filename>docs/snippets/script/a-few-statements.sql -- ..docs/snippets/script/a-few-statements.sql create or replace table sample_table ( col1 number(18,0), col2 number(18,0) ); select * from sample_table;
<reponame>bssrdf/LeetCode-5<gh_stars>10-100 # Time: O(n^2) # Space: O(n) # # The Employee table holds all employees. Every employee has an Id, and there is also a column for the department Id. # # +----+-------+--------+--------------+ # | Id | Name | Salary | DepartmentId | # +----+-------+--------+--------------+...
-- delete from tvshow; -- delete from tvcharacter; insert into tvshow (title,genre,network) values ("The Simpsons","Cartoon","Fox"); insert into tvshow (title,genre,network) values ("Futurama","Cartoon","Fox"); insert into tvshow (title,genre,network) values ("Rick and Morty","Cartoon","Adult Swim"); insert into tvsho...
alter table database_connection add managed bit; update database_connection set managed=1; alter table site_plugin add deletion_mark bit not null default 0; alter table site_plugin add reload_required bit not null default 0; alter table site_plugin add active bit not null default 1; alter table site add startup_time ...
BEGIN; DROP INDEX IF EXISTS items_in_inventory_index; DROP INDEX IF EXISTS items_in_location_index; DROP INDEX IF EXISTS items_by_owner_index; ALTER TABLE items DROP COLUMN inventory_id; ALTER TABLE items DROP COLUMN location_id; ALTER TABLE items DROP COLUMN owner_id; COMMIT;
<gh_stars>0 truncate table Tests.SomeTable; insert into Tests.SomeTable(id, lastcommit, modified) values (1, '12345', current_timestamp), (2, '32413', current_timestamp);
<filename>cc_mesi.sql -- phpMyAdmin SQL Dump -- version 5.1.0-dev -- https://www.phpmyadmin.net/ -- -- l0m1s -- -- <EMAIL> -- -- Host: localhost -- Generation Time: Jul 22, 2021 at 02:41 PM -- Server version: 8.0.20-0ubuntu0.19.10.1 -- PHP Version: 7.3.11-0ubuntu0.19.10.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START...
<filename>webserver/app-moe/sql/Archive/3.2.x/3.2.2/PHPOE-1347/commit.sql UPDATE security_functions SET _execute = 'Students.excel' WHERE security_functions.id = 1012; UPDATE security_functions SET _execute = 'Staff.excel' WHERE security_functions.id = 1016; -- select * from security_functions WHERE security_functions...
<gh_stars>1-10 #standardSQL # Percentage of pages that include at least one ad resource. SELECT client, COUNT(0) AS numberOfPages, COUNTIF(numberOfAdRequests > 0) AS numberOfPagesWithAd, ROUND(COUNTIF(numberOfAdRequests > 0) * 100 / COUNT(0), 2) AS percentOfPagesWithAd FROM ( SELECT client, pageUrl, ...
/****** Object: View [dbo].[V_Manager_Entry] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_Manager_Entry] AS SELECT M_ID AS ManagerID, M_Name AS ManagerName, M_ControlFromWebsite AS ControlFromWebsite FROM T_Mgrs GO
<filename>db/tables/activity.sql -- DROP TABLE activity; CREATE TABLE activity ( id serial NOT NULL, client integer NOT NULL, sitter integer NOT NULL, date date NOT NULL, points integer NOT NULL, CONSTRAINT activity_pkey PRIMARY KEY (id), CONSTRAINT activity_client_fkey FOREIGN KEY (client) REFEREN...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2018-07-27 05:07:15 -- 服务器版本: 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=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
<reponame>goldmansachs/obevo-kata<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/view/view43.sql CREATE VIEW view43 AS SELECT 1 AS c1 FROM table425 UNION SELECT 1 AS c1 FROM table160 UNION SELECT 1 AS c1 FROM table236 UNION SELECT 1 AS c1 FROM view53 UNION SELECT 1 AS c1 FROM view10 U...
<reponame>indix/schemer<filename>schemer-registry/src/main/resources/db/migration/V1__creates_schemas.sql CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE "namespaces"( "id" UUID NOT NULL DEFAULT uuid_generate_v4(), "name" VARCHAR NOT NULL ); ALTER TABLE "namespaces" ADD CONSTRAINT "namespaces_id" PRI...
<filename>openGaussBase/testcase/SQL/DDL/Index/Opengauss_Function_DDL_Index_Case0137.sql -- @testpoint: REBUILD:设置gist索引不可用后重建 --建表 DROP TABLE if EXISTS test_index_table_137 CASCADE; create table test_index_table_137( c_point point ) WITH (ORIENTATION = row) ; begin for i in 0..10000 loop insert into tes...
<gh_stars>0 -- Create the table for the raw Gaia Mission data. CREATE TABLE gaia_source ( solution_id bigint, source_id bigint, random_index bigint, ref_epoch double precision, ra double precision, ra_error double precision, dec double precision, dec_error double precision, parallax ...
--1. Employees with Salary Above 35000 CREATE PROCEDURE usp_GetEmployeesSalaryAbove35000 AS BEGIN SELECT FirstName, LastName FROM Employees WHERE Salary > 35000 END --2. Employees with Salary Above Number CREATE PROCEDURE usp_GetEmployeesSalaryAboveNumber @Number DECIMAL(18,4) AS BEGIN SELECT FirstName, LastNa...
# dest.postreq: db/changes/1520617866_quizzes ALTER TABLE quiz DROP COLUMN status;
<reponame>treischl/so-sal-calc<gh_stars>0 INSERT OR REPLACE INTO Experience ( Years ) VALUES (?)
<reponame>mdial009/Websitev3 prompt --application/pages/page_00010 begin -- Manifest -- PAGE: 00010 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2021.04.15' ,p_release=>'21.1.2' ,p_default_workspace_id=>32532315908301997117 ,p_default_application_id=>105814 ,p_default_id_offset=>0 ,p_d...
insert into students(id, firstName, lastName, email) values(101,'MANZI','Mike','<EMAIL>'); insert into students(id, firstName, lastName, email) values(102,'Taylor','Swift','<EMAIL>'); insert into students(id, firstName, lastName, email) values(103,'Alan','Walker','<EMAIL>'); insert into students(id, firstName, lastName...
<filename>g4-challenge/ws/customers.sql /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_C...
--create tables. --create the user table. --user can be a member, a partnar or admin. --admin can modify all information. --partnar can modify specific categories' pages and messages. --members can only modify their own products and messages. CREATE TABLE `USER`( `userID` INT UNSIGNED NOT NULL AUTO_INCREMENT, `user...
CREATE TABLE IF NOT EXISTS @TABLE_NAME@ ( ID INT PRIMARY KEY NOT NULL AUTO_INCREMENT, special_rate_sk_id INT NOT NULL COMMENT 'Ozel_Oran_SK_ID', client_guid VARCHAR (255 ) NOT NULL COMMENT 'GUID', virtual_pos_id INT NOT NULL COMMENT 'SanalPOS_ID', credit_card_brand VARCHAR (50 ) NOT NULL COMMENT 'Kredi_Karti_Ba...
<filename>data/sr/sqlite/subdivisions_SK.sqlite.sql CREATE TABLE subdivision_SK (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_SK" ("id", "name", "level") VALUES ('SK-BC', 'Банскобистрички крај', 'region'); INSERT INTO "subdivision_SK" ("id", "name", ...
-- :name insert_site :insert INSERT INTO Site (airtable_id, is_active, name, type, url, config, site_info) VALUES (:airtable_id, :is_active, :name, :type, :url, :config, :site_info)
-- file:create_index.sql ln:730 expect:true INSERT INTO func_index_heap VALUES('ABCD', 'EF')
insert into donors(donor, donor_type, other_names, country, facebook_username, website, donations_url, lesswrong_username, linkedin_username, affiliated_orgs, eaf_username, eahub_username, github_username, twitter_username, predictionbook_username, philosophy_url, grant_application_process_url, donations_data_update_re...
<filename>resources/migrations/20210219195526-add-default-value-of-created-at-field.up.sql<gh_stars>1-10 ALTER TABLE schemas ALTER COLUMN created_at SET DEFAULT CURRENT_TIMESTAMP;
<gh_stars>0 create table if not EXISTS userinfo ( id int PRIMARY key AUTO_INCREMENT, name VARCHAR(30), macadd varchar(20), passwd varchar(20), ip varchar(15), token varchar(32) )
-- migrate:up create or replace function sg_public.cards_by_current_user() returns setof sg_public.card as $$ select * from sg_public.card where entity_id in ( select entity_id from sg_public.card_version where user_id = nullif(current_setting('jwt.claims.user_id', true), '')::uuid ); $$ language s...
<filename>EIDSS v5/vb/EIDSS/EIDSS_Common_Db/Database_V3/Scripts/Vet Cases for CDR.sql<gh_stars>1-10 exec dbo.sptemp_CreateVetCaseParams 2580000000, 2580000000, 2580000000, 'Itty Bitty Acres', 350000000, 10012004, 37040000000, 3370000000, 162140000000, 39690000000 exec dbo.sptemp_CreateVetCaseParams 2480000000, 2480000...
ALTER TABLE "public"."AttendeeProfile" ALTER COLUMN "timezoneUTCOffset" TYPE integer;
<filename>trimester-one/cars_management/db/tbFuel.sql USE [MastersCarManagement] GO /****** Object: Table [dbo].[tbFuel] Script Date: 12/5/2021 9:49:43 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[tbFuel]( [ID] [int] IDENTITY(1,1) NOT NULL, [Name] [var...
USE [master] GO /****** Object: Database [Contacto] Script Date: 2018/04/12 8:56:36 AM ******/ CREATE DATABASE [Contacto] CONTAINMENT = NONE ON PRIMARY ( NAME = N'Contacto', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL13.SQLEXPRESSDEV\MSSQL\DATA\Contacto.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, ...
-- Get values from every column for users who are both male and younger than 20 years old. SELECT * FROM USERS WHERE gender = 0 AND age < 20;
-- Working with missing data -- A. Missing data -- 1. Remove missing values SELECT * -- Select the appropriate table FROM airports -- Exclude the rows where airport_city is NULL WHERE airport_city IS NOT NULL SELECT * -- Select the appropriate table FROM airports -- Return only the rows where airport_city is NULL WHER...
<reponame>ivconsult/eNeg CREATE TABLE [dbo].[AccountType] ( /* This table represent all account types for eNeg users, e.g. Free or Premium */ AccountTypeID uniqueidentifier primary key, TypeName nvarchar(100) not null , TypeDescription nvarchar(200) )
CREATE DATABASE `mysql-test` CHARACTER SET utf8 COLLATE utf8_general_ci; USE `mysql-test` SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_...
CREATE TABLE users ( id BIGINT NOT NULL, guild_id BIGINT NOT NULL, username TEXT NOT NULL DEFAULT '', nickname TEXT NOT NULL DEFAULT '', roles BIGINT [] NOT NULL DEFAULT array[]::bigint[], watchlist BOOL NOT NULL DEFAULT 'f', xp BIGINT NOT NULL DEFAULT 0, last_message TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT n...
<filename>AddressFromWithdrawData.sql /* Extract address from withdraw method input string * EVM function is: * withdraw(bytes _proof, bytes32 _root, bytes32 _nullifierHash, address _recipient, address _relayer, uint256 _fee, uint256 _refund) * MethodID: 0x21a0adb6 * EVM ABI encoding is: * 4 byte method signatur...
SELECT "MLB_56"."league" AS "league" FROM "MLB_56" GROUP BY "MLB_56"."league" ORDER BY "league" ASC ;
CREATE DATABASE db_feria_vocacional; CREATE TABLE tb_user( id INTEGER AUTO_INCREMENT, email VARCHAR(300), CONSTRAINT PRIMARY KEY(id) );
<reponame>pablorrr/exercise-codes --subqueries in context limited to one table select nextcol, salary from newtable where salary > (select salary from newtable where the_job_id = 104); --subqueries in context of two tables select name, surname from countries where id in(select id from duplicate_countries where name = ...
----------------------------------------------------------------------------- -- Copyright (c) 2010-2015 <NAME> <<EMAIL>> -- https://github.com/DmitryZav/ -- -- This file is part of Constellation Kings game project. -- -- This file is subject to the terms and conditions defined in -- file 'LICENSE', which is part of th...
-- Create a basic user table CREATE TABLE user ( id IDENTITY NOT NULL PRIMARY KEY, name VARCHAR NOT NULL, email VARCHAR NOT NULL ); -- Create an example user INSERT INTO user (name, email) VALUES ('Aardvark', '<EMAIL>');
<filename>migrations/0005_create_settings_by_exercise_identifier.down.cql DROP TABLE settings_by_exercise_identifier;
<reponame>huanghuisheng/OpenSameIDP /* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50717 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-03-01 22:57:29 */ SE...
-- @testpoint:opengauss关键字current_role(保留),作为序列名 --关键字不带引号-合理报错 drop sequence if exists current_role; create sequence current_role start 100 cache 50; --关键字带双引号-成功 drop sequence if exists "current_role"; create sequence "current_role" start 100 cache 50; --清理环境 drop sequence "current_role"; --关键字带单引号-合理报错 drop se...
# SELECT DISTINCT parameter FROM table # SELECT DISTINCT CONCAT(author_fname, ' ', author_lname) FROM books; => will return all output and remove dupplications SELECT DISTINCT author_fname, author_lname FROM books; # => will result in distinct fname and lname combine if both are the same it will be ommited SELEC...
<gh_stars>0 INSERT INTO comment (id, comment_content, comment_timestamp, contributor) VALUES (1, 'comment c1', '2020-06-12 15:25:04.035000', '<NAME>'); INSERT INTO comment (id, comment_content, comment_timestamp, contributor) VALUES (2, 'comment c2', '2020-06-12 15:25:04.035000', '<NAME>'); INSERT INTO comment (id, ...
<filename>ural.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Май 07 2018 г., 05:55 -- Версия сервера: 10.1.30-MariaDB -- Версия PHP: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<gh_stars>0 -- DropIndex DROP INDEX "Purchase_certificateId_key";
DROP TABLE IF EXISTS books; CREATE TABLE books ( id SERIAL PRIMARY KEY, author varchar(255), title varchar(255), isbn varchar(255), image_url varchar(255), description TEXT, bookshelf varchar(255) ); INSERT INTO books(author,title,image_url,description) VALUES ('<NAME>','going home','...
<gh_stars>0 1.Pulls the first 5 rows and all columns from the orders table that have a dollar amount of gloss_amt_usd greater than or equal to 1000. 2.Pulls the first 10 rows and all columns from the orders table that have a total_amt_usd less than 500. 3.Filter the accounts table to include the company name, website, ...
<filename>db/seeds.sql use just_tech_news_db; insert into user(username, email, password, created_at, updated_at) values ('squidward', '<EMAIL>','$2b$10$vnPn5wNKxA49oIDLLeqGr.1oQwc5vIgmar52gog9YMFFrXMi1iow2', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), ('spongebob', '<EMAIL>', '$2b$10$z6v9E/tUCLzgTciN1OH9Rez1kz4anV...
set array 1 set head on set feedback on set line 1000 set pagesize 10000 set echo on set trimspool on set numformat 99999999999999999999.99 set colsep ";" set long 100000 spool c:\queries.spl show user Prompt ACVW_ALL_AC_ENTRIES SELECT * FROM ACVW_ALL_AC_ENTRIES WHERE EXTERNAL_REF_NO = 'FJB12219...
<filename>db/seeds.sql INSERT INTO department (name) VALUES ("Engineering"); INSERT INTO role (title, salary, department_id) VALUES ("Lead Engineer", 150000, 1), ("Engineer", 75000, 1); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("Merv", "Schneider", 1, null), ("Mary", "Sti...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2017 at 09:27 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
alter table BRUKERNOTIFIKASJON rename column SENDT to OPPRETTET; alter table BRUKERNOTIFIKASJON add BEKREFTET_SENDT timestamp(6);
<reponame>CAG9/SQL-Interview-Questions SELECT * FROM books ORDER BY copies_sold DESC LIMIT 5;
<reponame>chumpon-asaneerat/DMT.TA.TODv3 CREATE VIEW PlazaView AS SELECT Plaza.* , TSB.TSBNameEN, TSB.TSBNameTH , PlazaGroup.PlazaGroupNameEN, PlazaGroup.PlazaGroupNameTH, PlazaGroup.Direction FROM Plaza , PlazaGroup , TSB WHERE PlazaGroup.TSBId = TSB.TSBId AND Plaza.TSBId = TSB.TSBId AND ...
<reponame>edigonzales/mopublic-so-datenmodell<gh_stars>0 WITH eof AS ( SELECT DISTINCT ON (eo.tid) eo.tid, eo.entstehung, eo.art, split_part(eo.art_txt,'.',array_upper(string_to_array(eo.art_txt,'.'), 1)) AS art_txt, to_date(nf.gueltigereintrag, 'YYYYMMDD') AS nac...
SET DEFINE OFF; CREATE UNIQUE INDEX AFW_13_ETAPE_TUTRL_PK ON AFW_13_ETAPE_TUTRL (SEQNC) LOGGING /
DROP TABLE "public"."comment";
<reponame>ligana/Ensemble-om-SpringBoot<filename>db/db/3table/upright/MB_ATTR_CLASS.sql drop table if exists MB_ATTR_CLASS; /*==============================================================*/ /* Table: MB_ATTR_CLASS */ /*==========================================================...
CREATE DATABASE IF NOT EXISTS `CSC` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `CSC`; -- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: CSC -- ------------------------------------------------------ -- Server version 5.5.5-10.5.4-MariaDB-1:10.5.4+maria~buster /*!40101 ...
INSERT INTO eg_wf_matrix (id, department, objecttype, currentstate, currentstatus, pendingactions, currentdesignation, additionalrule, nextstate, nextaction, nextdesignation, nextstatus, validactions, fromqty, toqty, fromdate, todate) VALUES (nextval('seq_eg_wf_matrix'), 'ANY', 'SewerageApplicationDetails', 'Third Part...
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `sub_list`; CREATE TABLE `sub_list` ( `stdID` varchar(20) NOT NULL, `date` datetime NOT NULL, `total` mediumint(10) unsigned NOT NULL, `buyName` varcha...
<filename>tradition/goods_import.sql<gh_stars>1-10 DROP PROCEDURE IF EXISTS do_import_classify; DELIMITER // CREATE PROCEDURE do_import_classify() BEGIN DECLARE v_first_code INT; DECLARE v_first_name VARCHAR(32); DECLARE v_second_code INT; DECLARE v_second_name VARCHAR(32); DECLARE v_id INT; DECLARE s...
<gh_stars>10-100 SELECT tab1.v1 AS v1 , tab0.v0 AS v0 , tab5.v5 AS v5 , tab6.v7 AS v7 , tab4.v4 AS v4 , tab6.v6 AS v6 , tab3.v3 AS v3 , tab2.v2 AS v2 FROM (SELECT obj AS v7 , sub AS v6 FROM sorg__author$$7$$ ) tab6 JOIN (SELECT sub AS v5 , obj AS v6 FROM wsdbm__likes$$6$$ ) tab5 ON(tab6.v6=tab5.v6) J...
<gh_stars>1-10 /** * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file ...
/* Navicat Premium Data Transfer Source Server : a.youlai.store Source Server Type : MySQL Source Server Version : 80023 Source Host : a.youlai.store:3306 Source Schema : youlai Target Server Type : MySQL Target Server Version : 80023 File Encoding : 65001 Date: 01/0...