sql
stringlengths
6
1.05M
<filename>sql/usage-alltime.sql select sum((run_time*cost)) from %DB%.accounting_view;
INSERT INTO `items` (`name`, `label`, `limit`, `rare`, `can_remove`) VALUES ('handcuffs', 'Menottes', 1, 0, 1), ('rope', 'corde', 1, 0, 1) ; INSERT INTO `shops` (store, item, price) VALUES ('TwentyFourSeven', 'handcuffs', 100), ('TwentyFourSeven', 'rope', 100) ;
drop table if exists addresses_old; alter table if exists addresses rename to addresses_old; alter table addresses_new rename to addresses; alter index addresses_geom rename to addresses_old_geom; alter index addresses_lokalnyid rename to addresses_old_lokalnyid; alter index addresses_new_geom rename to addresses_geom...
\echo Use "ALTER EXTENSION plluau UPDATE TO '2.0'" to load this file. \quit -- nothing actually needed here, the version change is cosmetic -- but we take the opportunity to fix up some dubious properties ALTER FUNCTION plluau_call_handler() VOLATILE CALLED ON NULL INPUT; ALTER FUNCTION plluau_inline_handler(internal...
<gh_stars>10-100 -- file:dependency.sql ln:76 expect:true GRANT ALL ON deptest1 TO regress_dep_user1
ALTER TASK my_task SET WAREHOUSE = my_warehouse SCHEDULE = '2 MINUTE' ALLOW_OVERLAPPING_EXECUTION = TRUE;
/*Using POSTGRESQL 13*/ CREATE TABLE users ( id_user SERIAL PRIMARY KEY NOT NULL, name_user VARCHAR(64) NOT NULL, user_email VARCHAR(256) NOT NULL, user_password VARCHAR(72), auth_type VARCHAR(128) DEFAULT 'PASSWORD', user_info VARCHAR(256) DEFAULT NULL, user_picture VARCHAR(256), user_banner VARCHAR(2...
CREATE FOREIGN DATA WRAPPER dummy CREATE FOREIGN DATA WRAPPER file HANDLER file_fdw_handler CREATE FOREIGN DATA WRAPPER mywrapper OPTIONS (debug 'true')
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 01, 2019 at 05:26 PM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
mydb=# select ts_lexize('unaccent','H&ocirc;tel'); ts_lexize ----------- {Hotel} (1 row)
<reponame>jprider63/daedalus def TwoBytes = { x = UInt8; y = UInt8 } def Main = { first = TwoBytes; second = TwoBytes; eq = ^ (first == second) }
<filename>modules/content/classes/Class/Content/Link.sql -- Database: mysql CREATE TABLE {table} ( ID integer unsigned NOT NULL AUTO_INCREMENT, Parent integer unsigned NULL, Hash varbinary(32), Name varchar(64), URL text, Body text, ImagePath varchar(128), OrderIndex integer NOT NULL, ClickCount integer defaul...
<reponame>geophile/sql-layer -- Key assertion, * expands to: -- d.departmentid, d.filler, d.departmentname, e.lastname, e.filler SELECT * FROM department JOIN employee USING(departmentid)
-- MySQL Script generated by MySQL Workbench -- 12/03/15 10:37:38 -- 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='TRADITION...
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2018. Feb 14. 19:34 -- Kiszolgáló verziója: 5.6.26 -- PHP verzió: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
CREATE TABLE IF NOT EXISTS user ( id int PRIMARY KEY AUTO_INCREMENT, name varchar(255), age int, active boolean default true ); CREATE TABLE IF NOT EXISTS topic ( id int PRIMARY KEY AUTO_INCREMENT, owner_id int, title varchar(255), archived boolean default false, date timestamp default CURRENT_TIMEST...
<reponame>tushartushar/dbSmellsData SELECT last_sync FROM tbl_sync WHERE hostname=?');
-- UNIT ART INSERT INTO ArtDefine_UnitInfos ( Type ,DamageStates ,Formation ) SELECT ('ART_DEF_UNIT_BIPLAN') ,DamageStates ,Formation FROM ArtDefine_UnitInfos WHERE (Type = 'ART_DEF_UNIT_FIGHTER'); INSERT INTO ArtDefine_UnitInfoMemberInfos ( UnitInfoType ,UnitMemberInfoType ,NumMembers ) SELECT ('ART_DEF_UNI...
<reponame>broubach/barragem.net CREATE TABLE `barragem_net`.`treino` ( `id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), CONSTRAINT `FK_treino_evento` FOREIGN KEY (`id`) REFERENCES `evento` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; alter table barragem_net.evento add column hora datetime default N...
<filename>15-07-19_19-07-19/ExerciciosdeBancoDeDados/AdicionarTurmas.sql insert into Turmas (Nome) values ('Matematica') go select * from Turmas
<filename>INF10004/assignment1.sql PROMPT *** <NAME> PROMPT *** <NAME> PROMPT *** <NAME> PROMPT *** Drop Table WorkSession *** DROP TABLE WorkSession; PROMPT *** Drop Table Allocation *** DROP TABLE Allocation; PROMPT *** Drop Table Book *** DROP TABLE Book; PROMPT *** Drop Table AUTHOR *** DROP TABLE AUTHOR; PRO...
DROP TABLE IF EXISTS `yolo_advanced_images`; CREATE TABLE `yolo_advanced_images` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `file` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT '', `keywords` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFA...
<gh_stars>1-10 USE [AdventureWorksDW2016] GO ALTER VIEW [dbo].[vReportItems] AS SELECT [ID] ,[Name] ,[Description] ,[Sort_Order] ,[Parent_ID] ,[Reporting_Category] ,[Level_of_Importance] ,[Unary_Operator] ,[Multiplication_Factor] ,[Unit_of_Measure] ,[Format_String] ,[Cal...
<gh_stars>10-100 /********************************************************************** Filename: PlanCacheByType.sql Author: <NAME> (adapted from <NAME>'s script: http://www.sqlskills.com/blogs/kimberly/plan-cache-and-optimizing-for-adhoc-workloads/) Date: 10/09/15 Comments: Returns plan ...
-- tclsqlite.test -- -- db eval {SELECT typeof(x) FROM t5} SELECT typeof(x) FROM t5
ALTER TABLE AKTIVITETER ADD VERSION NUMBER(19,0);
CREATE PROCEDURE [dbo].[InsertRoom] @Name nvarchar(50) AS INSERT INTO Room (Name) SELECT @Name WHERE NOT EXISTS (SELECT * FROM Room WHERE Name = @Name) RETURN 0
create table if not exists ua_user ( id varchar(32) primary key not null, created_at timestamp null default current_timestamp::timestamp, updated_at timestamp null default current_timestamp::timestamp, deleted_at timestamp null, username varchar(2...
<filename>src/main/resources/db/migration/V1.0.0__basic_schema.sql SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for cart -- ---------------------------- CREATE TABLE cart ( cart_number varchar(60) NOT NULL COMMENT '購物車編號', customer varchar(60) NOT NULL COMMENT '客戶名稱', amount INT N...
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 29 يونيو 2020 الساعة 15:46 -- إصدار الخادم: 10.3.16-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
/* Add the book 'The Pragmatic Programmer', and add yourself as a member. Check out 'The Pragmatic Programmer'. Use your query from question 1 to verify that you have checked it out. Also, provide the SQL used to update the database. */ insert into book(id, title) values (11,'The Pragmatic Programmer'); insert int...
INSERT INTO chapter (id, text) VALUES (1, 'Capitulo 01'); INSERT INTO subchapter (id, chapter, text) VALUES (1, 1, 'Getting Started: The Easy Problems'); INSERT INTO topic (id, subchapter, text) VALUES (1, 1, 'Super Easy'); INSERT INTO exercise (id, topic, text) VALUES (1, 1, '272 TEX Quotes'); INSERT INTO exercise (i...
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2017-07-15 11:42:13 -- 服务器版本: 5.6.29-log -- PHP Version: 5.4.45 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
<reponame>alttch/roboger<filename>roboger/resources/sql/bucket.cleanup:mysql.sql DELETE FROM bucket WHERE unix_timestamp(d) + expires < :d
<filename>sql/0.11.1.sql INSERT INTO castell_positions(name, cordon, column, part) VALUES("quint", 5, 1, "tronc"); INSERT INTO castell_positions(name, cordon, column, part) VALUES("quint", 5, 2, "tronc"); INSERT INTO castell_positions(name, cordon, column, part) VALUES("quint", 5, 3, "tronc"); INSERT INTO castell_posit...
select 15 as SRTY, DAT, WGLN.ACWGE as ACDB, EXPN.NME as SADNM, EXPN.IID as SADID, 1000 as SADTY, SUM(WGLN.GRWG-WGLN.TXEE) as DEBT, 'WAGEPAY' as ACCR, EMPCT.NME as SACNM, EMPCT.IID as SACID, 1009 as SACTY, SUM(WGLN.GRWG-WGLN.TXEE) as CRED from WGLN join WAGTY on WGLN.WGTY=WAGTY.IID join EXPN on WAGTY.EXP=EXPN.IID join W...
USE [master]; GO CREATE DATABASE [mvccore_blog] COLLATE SQL_Latin1_General_CP1_CS_AS; GO USE [mvccore_blog]; GO CREATE TABLE [dbo].[comments]( [id] [int] IDENTITY(1,1) NOT NULL, [id_post] [int] NOT NULL, [id_user] [int] NOT NULL, [created] [datetime] NULL DEFAULT (getdate()), [active] [tinyint] NULL DEFAULT 1, ...
<filename>database.sql<gh_stars>0 -- CREATE DATABASE CREATE DATABASE wargaweb_db; -- CREATE TABLE ADMIN AND WARGA CREATE TABLE admin_table ( id_admin INT auto_increment, email_admin VARCHAR (50) NOT NULL, password_admin VARCHAR (50) NOT NULL, PRIMARY KEY (id_admin) ); CREATE TABLE warga_table ( ...
<filename>Solutions/SQL/Easy/EmployeeSalaries.sql /* Write a query that prints a list of employee names (i.e.: the name attribute) for employees in Employee having a salary greater than per month who have been employees for less than months. Sort your result by ascending employee_id. Input Format The Employee table ...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2018 at 10:38 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` bigint NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `token` varchar(255) DEFAULT NULL, `leader_card_id` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `token` (`token`) ); DROP TABLE IF EXISTS `room`; CRE...
<reponame>Pixke/HBSIS<gh_stars>0 select c.Carro, COUNT (l.Carro) as 'Quantidade', year (l.DatInc) as 'Ano' from Locacao l inner join Carros c on l.Carro = c.Id where l.Devolucao between '2019/01/01' and '2019/12/31' group by c.Carro, year(l.DatInc)
-- \copy aka_name from './data/aka_name.csv' csv -- \copy aka_title from './data/aka_title.csv' csv -- \copy cast_info from './data/cast_info.csv' csv -- \copy char_name from './data/char_name.csv' csv -- \copy comp_cast_type from './data/comp_cast_type.csv' csv -- \copy company_name from './data/company_name.csv' csv ...
<filename>src/resources/data.sql insert into author (first_name,last_name) values ('Taner','TEMEL');
<filename>C#DBFundamentals/DB-Basics-MS-SQL-Server/04BuiltInFunctions/BuiltInFunctions/10. Countries Holding A.sql SELECT CountryName, IsoCode FROM Countries WHERE CountryName LIKE ('%a%a%a%') ORDER BY IsoCode SELECT c.CountryName , c.IsoCode FROM Countries AS c WHERE (LEN(c.CountryName) - LEN(replace(c.CountryName, ...
CREATE TABLE dbo.OrderItems ( Id INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_OrderItems PRIMARY KEY, OrderId INT NOT NULL CONSTRAINT FK_OrderItems_OrderId FOREIGN KEY REFERENCES dbo.Orders(Id), ProductId INT NOT NULL CONSTRAINT FK_OrderItems_ProductId FOREIGN KEY REFERENCES dbo.Products(Id), ProductName NVARCHAR(255)...
<filename>support-files/sql/0001_grafana_20201113-0000_mysql.sql create database if not exists bklog_grafana default character set utf8 collate utf8_general_ci;
CREATE DATABASE IF NOT EXISTS `kevin_kirkley_pierresAuth` ; USE `kevin_kirkley_pierresAuth`; SET NAMES utf8 ; DROP TABLE IF EXISTS `__EFMigrationsHistory`; ; SET character_set_client = utf8mb4 ; CREATE TABLE `__EFMigrationsHistory` ( `MigrationId` varchar(95) NOT NULL, `ProductVersion` varchar(32) NOT NULL, ...
<filename>sql/tables/config.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 04, 2016 at 03:52 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
-- Remove column year_of_study. ALTER TABLE sims.education_programs_offerings DROP COLUMN IF EXISTS year_of_study; -- Remove column show_year_of_study. ALTER TABLE sims.education_programs_offerings DROP COLUMN IF EXISTS show_year_of_study; -- Remove column has_offering_wil_component. ALTER TABLE sims.educ...
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility -- 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....
DROP TABLE Event IF exists; CREATE TABLE Event ( id BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL, idevent VARCHAR(20) NOT NULL, duration BIGINT NOT NULL, eventtype VARCHAR(30), host VARCHAR(10), alert BOOLEAN, PRIMARY KEY (id) );
## animal 数据库 ## 设置数据库 USE `order`; ## 创建 order 表 CREATE TABLE `order` ( order_id TINYINT(4) AUTO_INCREMENT NOT NULL COMMENT "订单id", user_no TINYINT(4) ZEROFILL NOT NULL COMMENT "用户id", amount INT UNSIGNED NOT NULL COMMENT "订单金额", create_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT "创建时间", PRI...
<reponame>ned21/aquilon INSERT INTO role (id, name, creation_date, comments) VALUES (role_id_seq.nextval, 'laf', SYSDATE, 'used for self service role'); QUIT;
<filename>integration-test-java/src/main/resources/META-INF/org/seasar/doma/it/dao/WorkerDao/selectByExample.sql<gh_stars>100-1000 select * from EMPLOYEE where /*%if worker.employeeNo > 7800*/ /*%if worker.managerId != null*/ salary >= /*worker.salary*/9999 /*%end*/ /*%end*/
ALTER TABLE scan_report DROP COLUMN result_type;
SELECT * FROM pglogical_regress_variables() \gset \c :provider_dsn SELECT * FROM pglogical.drop_node(node_name := 'test_provider'); SELECT plugin, slot_type, active FROM pg_replication_slots; SELECT count(*) FROM pg_stat_replication; \c :subscriber_dsn SELECT * FROM pglogical.drop_subscription('test_subscription'); ...
CREATE TABLE [dbo].[ApiSecrets] ( [Expiration] DATETIME2 (7) NULL, [Id] INT IDENTITY (1, 1) NOT NULL, [Description] NVARCHAR (1000) NULL, [Value] NVARCHAR (2000) NULL, [Type] NVARCHAR (250) NULL, [ApiResourceId] INT NOT NULL, CONST...
# Write your MySQL query statement below ​ select   p.product_id, round(SUM(p.price*u.units)/SUM(u.units),2) as average_price from   prices p inner join   unitssold u on   p.product_id = u.product_id and   u.purchase_date >= p.start_date and u.purchase_date <= p.end_date   group by 1
<filename>FSNEP.SQL/Schema Objects/Schemas/dbo/Tables/Keys/FK_ProjectXAccount_Projects.fkey.sql ALTER TABLE [dbo].[ProjectXUsers] ADD CONSTRAINT [FK_ProjectXAccount_Projects] FOREIGN KEY ([ProjectID]) REFERENCES [dbo].[Projects] ([ID]) ON DELETE NO ACTION ON UPDATE NO ACTION;
SELECT company, country FROM da_auto.auto_2014 UNION SELECT company, country FROM da_auto.auto_2015 UNION SELECT company, country FROM da_auto.auto_2016 with combined_years as ( select company,country from da_auto.auto_2014 union SELECT company, country FROM da_auto.auto_2015 UNION SELECT company, country ...
INSERT INTO artist (id, name) values ('3069bd76-21ec-4ca3-88a2-d2a87f16afd5', 'Prince'), ('3069bd76-21ec-4ca3-88a2-d2a87f16afe6', 'Pet Shop Boys');
<reponame>Simo2012/Fia INSERT INTO IndiceType (id, libelle) VALUES (1, 'MOYENNE'), (2, 'POURCENTAGE'), (3, 'NB_AVIS_PERIODE'), (4, 'NB_AVIS_TOTAL') ;
<filename>sql/log-switch-histogram.sql --log-switch-histogram.sql -- histogram of redo log switch times with lograw as ( select (lc.first_time - lag(lc.first_time,1) over(order by thread#, sequence#)) * 86400 seconds_since_switch from v$log_history lc ), histo as ( select seconds_since_Switch ...
<reponame>navikt/fas ALTER TABLE APPLICATIONINSTANCE ADD (selftestPagePath VARCHAR2(255 CHAR));
CREATE TABLE ontimeperformance_flights_tiny_use ( flight_id VARCHAR(100) DEFAULT NULL, carrier_code VARCHAR(50) DEFAULT NULL, -- REFERENCES ontimeperformance_airlines_use(carrier_code), flight_number INTEGER DEFAULT NULL, flight_date DATE DEFAULT NULL,
 origin VARCHAR(50) DEFAULT NULL,
 destination VARCHAR(50) DE...
<gh_stars>1-10 -----------------Role action mappings to download documents---------------------- insert into EG_ACTION (ID,NAME,URL,QUERYPARAMS,PARENTMODULE,ORDERNUMBER,DISPLAYNAME,ENABLED,CONTEXTROOT,VERSION,CREATEDBY,CREATEDDATE,LASTMODIFIEDBY,LASTMODIFIEDDATE,APPLICATION) values (NEXTVAL('SEQ_EG_ACTION'),'DownloadLi...
<reponame>Fajar-Islami/AppGudang<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 06, 2020 at 08:37 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTIO...
<filename>xa-transactions-2-phase-commit/src/main/resources/db/db1/drop-script-source.sql drop table if exists account cascade;
-- Preppin Data -- 2019 Week 23 -- https://preppindata.blogspot.com/2019/04/2019-week-23.html -- SQL flavor: T-SQL -- TECHNIQUES LEARNED, FUNCTIONS USED, ETC. -- Insert data from csv files -- CHARINDEX -- PATINDEX -- Text parsing -- STEP 1 -- Create the temporaty tables -- File 1 DROP TABLE IF EXISTS #July_15 CREA...
<reponame>hermodapp/api<gh_stars>1-10 ALTER TABLE form DROP COLUMN qr_code_id;
<filename>.github/workflows/db_structure.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -------------------------------------------------------- -- -- Tabellstr...
SELECT CAST("MLB_64"."year" AS SIGNED) AS "year" FROM "MLB_64" GROUP BY "MLB_64"."year", "MLB_64"."year";
SELECT date_trunc('hour', block_time) as hour, sum(art/1e18) as liq, sum(sum(art/1e18)) over (order by date_trunc('hour', block_time)) as total_liq , avg(p.price) as ETH_price FROM makermcd."CAT_evt_Bite" LEFT JOIN ethereum."transactions" tx ON evt_tx_hash = tx.hash INNER JOIN prices.usd p ON p.minute = date_trunc('hou...
<reponame>smith750/kc<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_0-CLEAN/oracle/kcrelease/datasql/KC_DML_01_APPOINTMENT_TYPE.sql<gh_stars>0 TRUNCATE TABLE APPOINTMENT_TYPE DROP STORAGE / INSERT INTO APPOINTMENT_TYPE (APPOINTMENT_TYPE_CODE,DESCRIPTION,DURATIO...
UPDATE sd2_db_version SET version='ScriptDev2 (for MaNGOS 8273+) ';
INSERT INTO public."user" (key, username, email, password, first_name, last_name, roles, settings, system_settings, created, last_login, deleted, challenge_code_key) VALUES (4, 'user_13', '<EMAIL>', '$S$DsO2Zyy5gdu98q5XBHbLMKVkMdayt/Y5lJLvjafCL42yUSTqF1Gh', 'Tim', 'Robertson', '{USER}...
DROP TABLE IF EXISTS test.t
-- \i E:/MMORPG/insertTreasures.sql -- 宝物类型:helmet:1\armour:2\accessory:3\weapon:4\shield:5\elixir:6 -- treasures INSERT INTO treasures(name, MainType, speedvalue, intelligencevalue, attackvalue, defensevalue) VALUES('Amulet_1', 5, 1, 1, 1, 6); INSERT INTO treasures(name, MainType, speedvalue, intelligencevalue, att...
<gh_stars>1-10 DROP TABLE "public"."reviewstates"
<filename>postgres/scripts/pglog.sql SELECT row_to_json(t) from ( SELECT * from pglog WHERE log_time > current_timestamp - interval '1 minutes' ) t;
<filename>.erda/migrations/qa/20210914-auto-test-plan-execute-api-num.sql ALTER TABLE `dice_autotest_plan` ADD `execute_api_num` BIGINT NOT NULL DEFAULT 0 COMMENT 'auto test plan execute api number';
/* Navicat MySQL Data Transfer Source Server : 测试 Source Server Version : 50553 Source Host : 127.0.0.1:3306 Source Database : blog Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2017-08-26 21:14:32 */ SET FOREIGN_KEY_CHECKS=0; -- -----------...
<filename>myrestaurants.sql<gh_stars>0 create database myrestaurants; use myrestaurants; create table `user` ( id int(11) not null AUTO_INCREMENT, name varchar(40) not null, age int(3), gender int(2), occupancy varchar(255), avatar varchar(255), phone varchar(20), email varchar(80) not null, passwor...
CREATE TABLE gc_cur_team_stats_kicking ( id INTEGER PRIMARY KEY , gc_player_id TEXT , name TEXT , totpfg INTEGER , fga INTEGER , fgm INTEGER , fgyds INTEGER , xptot INTEGER , xpa INTEGER , xpmade INTEGER , xpmissed INTEGER , xpb INTEGER , gc_cur_team_id INTEGER , FOREIGN KEY (gc_cur_team_i...
BEGIN; CREATE TABLE IF NOT EXISTS processor ( id SERIAL PRIMARY KEY, brand TEXT, name TEXT ); INSERT INTO processor (brand, name) VALUES ('AMD', 'Opteron'), ('Intel', 'Atom'), ('Intel', 'Core i3'), ('Intel', 'Core i5'), ('Intel', 'Core i7'), ('Intel', 'Xeon') ; COMMIT;
SELECT p.`name` AS "Passenger", p.`birthPlace` AS "Birth Place", p.`age` AS "Age", s.`name` AS "Ship", a.`date` AS "Arrival" FROM `scraping-passenger-list`.`passengers` AS p JOIN `scraping-passenger-list`.`arrivals` AS a ON p.`arrival` = a.`id` AND p.`ship` = a.`ship` JOIN `scraping-passenger-list`.`ships` ...
<filename>Practice/SQL/BasicSelect/WeatherObservationStation8-oracle.sql select distinct city from STATION where lower(substr(city, 1, 1)) in('a','e','i','o','u') and substr(city, length(city), 1) in('a','e','i','o','u'); -- substr은 a에서부터 몇개이므로 위의 경우 1번째 인덱스에서 1개를 의미
<reponame>FrancisDinh/Data_Analysis delete from du_lieu_ban_hang_backup where so_cuoc_goi is null
SELECT MAX(id) FROM status )');
<reponame>ZukanTheHan/ReCapProjectDay8<filename>ReCapProjectUpdated/SQLQuery1.sql Create Table Brand( Id int primary key identity(1,1), BrandName nvarchar (50), ) Create Table Color( ColorId int primary key identity(1,1), ColorName nvarchar (50), ) Create Table Car( Id int primary key identity (1,1), B...
START TRANSACTION; CREATE SCHEMA IF NOT EXISTS metabase; ALTER TYPE institution_state RENAME TO institution_state_old; CREATE TYPE institution_state AS ENUM ('unknown', 'operative', 'inoperative'); ALTER TABLE metabase.institution ALTER COLUMN "State" TYPE institution_state USING 'operative'; DROP TYPE institution_s...
CREATE TABLE func_new_entity_contact_method( change_id INTEGER NOT NULL, id INTEGER NOT NULL DEFAULT (nextval('topics')), entity_id INTEGER NOT NULL, method VARCHAR NOT NULL, mvalue VARCHAR NOT NULL ); CREATE TRIGGER func_new_entity_contact_method_bi_1 BEFORE INSERT ON func_new_entity_cont...
<filename>sql/pretty9.sql<gh_stars>10-100 SELECT * FROM t0 NATURAL JOIN t1
CREATE TABLE t1( a INTEGER PRIMARY KEY, b INT, c TEXT, d INT GENERATED ALWAYS AS (a*abs(b)) VIRTUAL, e TEXT AS (substr(c,b,b+1)) STORED );
<reponame>kccb-karp/IQCareMigration IF NOT EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Form]') AND type IN(N'U') ) BEGIN CREATE TABLE [dbo].[Form]( [Id][INT]NOT NULL IDENTITY(1,1), [Name] Varchar(300) NULL, [CreatedBy][INT] NOT NULL, [CreateDate][DateTime] NOT NU...
<reponame>shamim8888/SMSlib-ParallelPort CREATE TABLE payment_voucher ( voucher_id serial NOT NULL, pay_voucher_date date,amount float8,account_id int4, ship_id int4 , from_id int4, to_id int4, mat_one int4, mat_two int4, pay_type char(15), bank_name char(50), branch char(20), cheque_pay_date d...
UPDATE block_annot SET score = 1.0 * count / (SELECT SUM(count) FROM block_annot);
/* Copyright (c) 2006-2012 Regents of the University of Minnesota. For licensing terms, see the file LICENSE. */ /* This script will permanently remove flags from the database and cannot be undone! Run scripts 044 and 045 first. NOTE: this will result in there being multiple versions of some byways in th...
<reponame>Akash-Nayak/move2kube-demos INSERT INTO products(id, name, description) VALUES (1, 'Grog', 'A secret mixture that contains one or more of the following: Kerosene, Propylene Glycol, Artificial Sweeteners, Sulfuric Acid, Rum, Acetone, Battery Acid, red dye#2, Scumm, Axle grease and/or pepperoni.'); INSERT INTO ...