text
stringlengths
1
1.05M
#standardSQL # Cross domain image requests CREATE TEMPORARY FUNCTION get_images(images_string STRING) RETURNS ARRAY<STRUCT<url STRING>> LANGUAGE js AS ''' var result = []; try { var images = JSON.parse(images_string); for (img of images){ result.push({ url: img.url }); } } catch (e) {} return result...
--+ holdcas on; drop table if exists parent08; drop table if exists child08; create table parent08(i1 integer, s1 string) collate utf8_en_cs; show full columns from parent08; create table child08 (i2 integer) collate utf8_en_ci; alter table child08 add superclass parent08; show full columns from parent08; alter tab...
BACKUP DATABASE mawatta TO DISK='D:\mesbackupsqlserveur\autre_compress.bak' MIRROR TO unitefull WITH INIT, FORMAT, CHECKSUM, COMPRESSION
SET DEFINE OFF; ALTER TABLE AFW_12_ACTIO_AUDIT ADD ( CONSTRAINT AFW_12_ACTIO_AUDIT_UK1 UNIQUE (REF_STRUC_APLIC, CODE) ENABLE VALIDATE) /
LOAD classes sp.jar; file -inlinebatch END_OF_BATCH ------- Kafka Importer Tables ------- CREATE TABLE kafkaimporttable0 ( INSTANCE_ID BIGINT NOT NULL, SEQ BIGINT, EVENT_TYPE_ID INTEGER, EVENT_DATE TIMESTAMP default now, TRANS VARCHAR(1000), CONSTRAINT pk_...
-- https://www.fec.gov/campaign-finance-data/current-campaigns-house-and-senate-file-description/ CREATE TABLE IF NOT EXISTS house_senate_current_campaigns ( cand_id VARCHAR(9), -- CAND_ID,Candidate identification,1,N,VARCHAR2 (9),H8VA01233 cand_name VARCHAR(200), -- CAND_NAME,Candidate name,2,Y,VARCHAR2(200)...
INSERT INTO AggregateTest (DepartmentID, FirstName, LastName, Age, HireDate, Salary, IsActive ) VALUES (1, 'Fred', 'McDonald', 39, '2002-09-20 00:00:00', 36.7200, 1 ); INSERT INTO AggregateTest (DepartmentID, FirstName, LastName, Age, HireDate, Salary, IsActive ) VALUES (2, 'Michelle', 'Johnson', 35, '2004-03-05...
-- Sample employee database -- See changelog for details -- Copyright (C) 2007,2008, MySQL AB -- -- Original data created by Fusheng Wang and Carlo Zaniolo -- http://www.cs.aau.dk/TimeCenter/software.htm -- http://www.cs.aau.dk/TimeCenter/Data/employeeTemporalDataSet.zip -- -- Current schema by Giuseppe Maxi...
CREATE TABLE Manufacturers( ManufacturerID INT PRIMARY KEY NOT NULL IDENTITY, [Name] VARCHAR(20) NOT NULL, EstablishedOn VARCHAR(10) NOT NULL ) CREATE TABLE Models( ModelID INT PRIMARY KEY NOT NULL IDENTITY (101, 1), [Name] VARCHAR(20) NOT NULL, ManufacturerID INT FOREIGN KEY REFERENCES Manufacturers(ManufacturerID) N...
-- @testpoint:openGauss保留关键字where作为作为表空间名, --不带引号,合理报错 drop tablespace if exists where; CREATE TABLESPACE where RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --加双引号,创建成功 drop tablespace if exists "where"; CREATE TABLESPACE "where" RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; --清理环境 drop tablespace...
SELECT * FROM GROUPS WHERE DELETE_FLAG = 0 ORDER BY INSERT_DATETIME %s LIMIT ? OFFSET ?;
select a.clave, a.nombre, a.fecha_compra, a.vida_util, a.costo_de_compra, a.marca, a.modelo, v.numero_matricula, v.numero_motor, v.numero_chasis, v.numero_placa, v.valor_comercial, (select nombre from activosfijos.sub_grupo_activo_fijo where id=a.id_sub_grupo_activo_fijo)as nombre_s...
drop view if exists vKokoelmapeli; create view vKokoelmapeli as select kp.*, p.nimet, p.julkaisijat, p.nimi, p.julkaisija, l.verkkoosoite from kokoelmapeli as kp join (select nimet, julkaisijat, tunniste, nimi, julkaisija from peli) as p on (kp.peli=p.tunniste) left outer join lahjoittaja as l on (k...
-- -- CREATE_INDEX -- Create ancillary data structures (i.e. indices) -- -- -- BTREE -- CREATE INDEX onek_unique1 ON onek USING btree(unique1 int4_ops); CREATE INDEX IF NOT EXISTS onek_unique1 ON onek USING btree(unique1 int4_ops); CREATE INDEX IF NOT EXISTS ON onek USING btree(unique1 int4_ops); CREATE INDEX onek_...
-- @testpoint: 文本比较操作符 = ,检查两个tsquery类型的词汇是否相等4 select to_tsvector('fat cats ate rats') < to_tsvector('fat cats ate ratstt') as result;
ALTER TABLE `%prefix%tables` ADD COLUMN `meta` TEXT NULL AFTER `created_at`;
-- auto-generated definition create table EntitiesProcessAndFiles ( entity_hash BIGINT not null, uid int, customer_id int, source_id numeric(39) not n...
-- core framework tables only, create app-specific tables in database.sql /* net core sessions */ DROP TABLE IF EXISTS fwsessions; CREATE TABLE fwsessions ( Id NVARCHAR(900) NOT NULL PRIMARY KEY, Value VARBINARY(MAX) NOT NULL, ExpiresAtTime DATETIMEOFFSET(7) NOT NULL, ...
-- $Id$ -- Test MQL foreign data wrapper, but only the parts -- that don't actually access the web service so -- that this can run disconnected create schema metaweb; create or replace foreign data wrapper mql_wrapper library '${FARRAGO_HOME}/ext/mql/plugin/farrago-mql.jar' language java; create or replace server mq...
/**************************************** DROP TABLE IF EXISTS ****************************************/ DROP TABLE IF EXISTS webthemes; /**************************************** CREATE TABLE ****************************************/ CREATE TABLE webthemes ( "webthemes_id" serial PRIMARY KEY NOT NULL, "webt...
create schema crud_commands; use crud_commands; select database(); create table tweeterUsers( userID int not null auto_increment primary key, name varchar(20) not null, username varchar(20) not null, password varchar(30) not null, age int not null ); desc tweeterUsers; insert into tweeterUsers(name,...
USE [ANTERO] GO ALTER TABLE [sa].[sa_organisaatio_v3] ALTER COLUMN [loadtime] [datetime] NULL; ALTER TABLE [sa].[sa_organisaatio_v3] ALTER COLUMN [source] [nvarchar](200) NULL; ALTER TABLE [sa].[sa_organisaatio_v3] ALTER COLUMN [username] [varchar](30) NULL; GO
CREATE INDEX "PERMIT_IDX_ISSUED_DATE" ON "PERMIT" ("ISSUED_DATE")
Insert into eg_appconfig (id,key_name,description,version,createdby,lastmodifiedby,createddate,lastmodifieddate,module) values (nextval('SEQ_EG_APPCONFIG'),'REASSIGNMENT','Enable/Disable reassignment option',0,(select id from eg_user where username='egovernments'),(select id from eg_user where username='egovernments')...
-- :name query-all-books :? :* -- :doc "Selects all books" SELECT * FROM cesena_book; -- :name query-with-term :? :* -- :doc "Selects all books that match a given criteria" SELECT * FROM cesena_book WHERE title LIKE :term; -- :name query-specific-book :? :1 -- :doc "Select a specific book identified by the given id" ...
/* -- Query: SELECT * FROM maestro.tasks LIMIT 0, 1000 -- Date: 2015-07-15 02:29 */ INSERT INTO `tasks` (`id`,`friendly_name`,`task_group_id`,`status`,`resource_id`,`region_id`,`exclusivity`,`tasklet`,`parameters`,`submitted_on`,`started_on`,`progress`,`error_info`,`completed_on`,`return_value`) VALUES ('001855a4-bacc...
USE [VipunenTK] GO /****** Object: View [dbo].[v_f_tab_otv_korkeakoulut_yliopisto] Script Date: 17.1.2020 13:21:10 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_f_tab_otv_korkeakoulut_yliopisto] AS Select [Tilastovuosi] ,tilv_jatko_opiskelijat = case when Tilastovuos...
SELECT Target.targetId, cellId FROM TargetTraffic JOIN Target ON TargetTraffic.targetId = Target.targetId ORDER BY Target.targetId DESC LIMIT 500 OFFSET 30; 9999 SELECT cellId, COUNT(genderId) FROM TargetTraffic JOIN Target ON TargetTraffic.targetId = Target.targetId GROUP BY cellId; 9999 SELECT hwOsId, MIN(TargetTraff...
-- SQLServer DDL script for HelloKitto Example CREATE TABLE DOLL ( DOLL_ID NVARCHAR(32) NOT NULL, DOLL_NAME NVARCHAR(40) NOT NULL, DATE_BOUGHT DATE, HAIR_ID NVARCHAR(32), DRESS_SIZE NVARCHAR(4), MOM_ID NVARCHAR(32) NOT NULL, ASPECT NVARCHAR(1024), PICTURE IMAGE, PI...
-- phpMyAdmin SQL Dump -- version 4.5.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 07, 2016 at 12:36 PM -- Server version: 10.0.25-MariaDB -- PHP Version: 5.6.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
SELECT concat(FirstName, ' ', ISNULL(MiddleName + ' ', ''), LastName) AS [Full Name], DATEPART(YEAR, BirthDate) AS [BirthYear] FROM Accounts WHERE BirthDate >= '1992' ORDER BY BirthYear DESC, FirstName ASC
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 06, 2021 at 07:27 AM -- Server version: 10.3.31-MariaDB-log-cll-lve -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
select 1 as id union all select * from {{ ref('node_0') }} union all select * from {{ ref('node_2') }} union all select * from {{ ref('node_13') }} union all select * from {{ ref('node_28') }} union all select * from {{ ref('node_36') }} union all select * from {{ ref('node_285') }} union all select * from {{ ref('node...
BEGIN; ALTER TABLE sessions DROP COLUMN timezone; COMMIT;
-- -- Test inheritance features -- CREATE TABLE a (aa TEXT); CREATE TABLE b (bb TEXT) INHERITS (a); CREATE TABLE c (cc TEXT) INHERITS (a); CREATE TABLE d (dd TEXT) INHERITS (b,c,a); INSERT INTO a(aa) VALUES('aaa'); INSERT INTO a(aa) VALUES('aaaa'); INSERT INTO a(aa) VALUES('aaaaa'); INSERT INTO a(aa) VALUES('aaaaaa');...
----------------------------- CREATE SEQUENCES ------------------------- CREATE SEQUENCE public.permission_seq INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1; CREATE SEQUENCE public.mini_course_seq INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 9223372036854775807 CACHE 1; ...
2 8 0 0 0 0 7 7 0 0 0 1 1 1 0 0 0 1 2 1 0 0 0 1 7 1 0 0 0 5 0 7 0 0 0 7 0 2 0 0 0 7 1 1 0 0 0 7 2 1 0 0 1 0 0 4 0 0 2 0 0 4 0 0 2 0 6 7 0 0 2 2 2 5 0 0 2 4 0 7 0 0 2 7 0 7 0 0 3 0 0 0 0 0 3 0 4 7 0 0 4 0 0 3 0 0 6 0 3 5 0 0 6 0 5 5 0 0 7 0 0 4 0 0 7 0 4 5 0 0 7 0 5 5 0 1 1 2 3 3 0 1 2 6 3 3 0 1 3 2 2 2 0 1 3 3 2 2 0 1 ...
SELECT category, prod_id, price, last_value(price) OVER (PARTITION BY category ORDER BY price RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) "highest_in_category" FROM products;
-- Users table seeds here (Example) insert into users (first_name, last_name, username, email, password, avatar, created_at) values ('Lorrayne', 'Eyrl', 'plantsforever', 'leyrl0@tamu.edu', 'QReTsXhy', 'https://i.imgur.com/4BgM7yj.png', '2020-01-05'); insert into users (first_name, last_name, username, email, password, ...
CREATE TABLE subdivision_CL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_CL" ("id", "name", "level") VALUES (E'CL-AN', E'Antofagasta', E'region'); INSERT INTO "subdivision_CL" ("id", "name", "level") VALUES (E'CL-AP', E'Arica y Parinacota', E'region...
CREATE OR REPLACE TABLE dummy_v${parentIndex} ( id INT64 NOT NULL, type_id INT64 NOT NULL, event_id INT64, name STRING ); CREATE OR REPLACE TABLE summary_v${parentIndex} ( event_id STRING, uris ARRAY<STRING>, row_count INT64, completed TIMESTAMP );
CREATE OR REPLACE PACKAGE BODY "API_PKG" -- -*-coding: utf-8-*- is $if cfg_pkg.c_testing $then function called_by_utplsql return boolean is l_dynamic_depth pls_integer := utl_call_stack.dynamic_depth; begin -- API_PKG.UT_SETUP -- API_PKG.UT_SETUP_AUTONOMOUS_TRANSACTION -- API_PKG.UT_SETUP -- BNS_PKG_CPN.UT_...
/* EXAMPLE 2 OF BASIC LOOPS Printing numbers from 1 to 10 */ SET SERVEROUTPUT ON SET VERIFY OFF DECLARE xx NUMBER(10); BEGIN xx := 1; LOOP dbms_output.put_line(xx); xx := xx + 1; EXIT WHEN xx > 10; END LOOP; dbms_output.put_line('end of loop!'); END; /
-- @author prabhd -- @created 2014-04-01 12:00:00 -- @modified 2012-04-01 12:00:00 -- @tags dml MPP-21090 ORCA -- @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 mpp21090_dropcol_addcol_splitpt_dml_interval; CR...
-- this script should be used to upgrade your database from any prior version of signups to the 1.0 release. --Signup-80 ALTER TABLE `signup_meetings` ADD `category` VARCHAR(255) NOT NULL DEFAULT ''; ALTER TABLE `signup_meetings` ADD create_groups bit(1) default '\0'; ALTER TABLE `signup_ts` ADD `group_id` ...
USE StackOverflow2010 GO -- Provides input / output and run time execuiton statistics of our query SET STATISTICS IO, TIME ON -- Listing only needed columns, SQL Server uses the index efficiently SELECT DisplayName, Reputation FROM Users WHERE Location = 'San Diego, CA'; -- Using SELECT * SELECT * FROM U...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 09 Bulan Mei 2020 pada 12.07 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2016-04-28 21:58:13 -- 服务器版本: 5.5.48-log -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
{{ config( indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}], unique_key = '_airbyte_ab_id', schema = "_airbyte_test_normalization", tags = [ "nested-intermediate" ] ) }} -- SQL model to cast each column to its adequate SQL type converted from the JSON schema type select _airbyte_nested_...
 CREATE View dbeaver.DataSources_DbSchemaTable As Select -- j1.* , j2.* , VirtualModel_key = j3.[Key] , VirtualModel_json = j3.Value , VirtualModel_database = j4.[Key] , VirtualModel_database_json = j4.Value , VirtualModel_schema = j5.[Key] , VirtualModel_schema_jso...
§# !1_DEPOT_REACHED Atingis veturilejon. east Oriento west Okcidento south Sudo north Nordo p_class[0] Ĝenerala klaso p_class[1] Tria klaso p_class[2] Dua klaso p_class[3] Unua klaso p_class[4] Speciala klaso m_class[0] Normala poŝtaĵo m_class[1] Rapida poŝtaĵo set overtaking mode Agordo de pretervetura reĝimo halt mod...
//// CHANGE name=change0 CREATE TABLE table468 ( id integer NOT NULL, field1 character varying(30), usertype7field usertype7, usertype5field usertype5 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table468 ADD CONSTRAINT table468_pkey PRIMARY KEY (id); GO
/******************************************************************* DECLARE @count INT ,@output INT = 0 ,@fieldName nvarchar(255) EXEC [dbo].[Company_List] @pagesize = 30 ,@pageNumber = 1 ,@orderby = NULL ,@count = @count OUTPUT ,@invokinguser = '7D31E738-5E24-4EA2-AAEF-47BB0F3CCD41' ...
create table ACT_RU_VARIABLE ( ID_ varchar(64) not null, REV_ integer, TYPE_ varchar(255) not null, NAME_ varchar(255) not null, EXECUTION_ID_ varchar(64), PROC_INST_ID_ varchar(64), TASK_ID_ varchar(64), SCOPE_ID_ varchar(255), SUB_SCOPE_ID_ varchar(255), SCOPE_TYPE_ varchar(255...
# Vectors USE `{browser_db}`; DROP TABLE IF EXISTS `browser_vector_source_term_module`; CREATE TABLE `browser_vector_source_term_module` ( `source_id` int(11) NOT NULL, `source_type` int(11) NOT NULL, `term_id` int(11) NOT NULL, `term_type` int(11) NOT NULL, `module_id` int(11) NOT NULL, `module_type` in...
-- -- Tests for legacy cdbhash opclasses -- -- Basic sanity check of all the legacy hash opclasses. Create a table that -- uses all of them in the distribution key, and insert a value. set gp_use_legacy_hashops=on; create table all_legacy_types( int2_col int2, int4_col int4, int8_col int8, float4_col float4, ...
--test display width syntax and zerofill attribute create table tiny_int (col1 int, col2 tinyint(4), col3 tinyint(4) zerofill); insert into tiny_int values(34, 34, 34); insert into tiny_int values(-345, -345, -345); insert into tiny_int values(34.244, 34.244, 34.244); insert into tiny_int values(-5, -5, -5); insert...
USE [WatchList] GO /****** Object: Table [dbo].[WatchListTypes] Script Date: 10/23/2021 6:08:50 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[WatchListTypes]( [WatchListTypeID] [int] IDENTITY(1,1) NOT NULL, [WatchListTypeName] [varchar](80) NULL, CONSTRAINT [PK_W...
-- @testpoint:openGauss关键字Greatest(非保留),作为列名带双引号,Greatest大小写混合,建表成功 drop table if exists Explain_test; create table Explain_test( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numeric numeric(38), c_ch...
-- e_fkey.test -- -- execsql { -- CREATE UNIQUE INDEX pi ON p(c); -- REPLACE INTO p VALUES(5, 'k5', 'III'); -- SELECT * FROM c1; -- } CREATE UNIQUE INDEX pi ON p(c); REPLACE INTO p VALUES(5, 'k5', 'III'); SELECT * FROM c1;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2021 at 01: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_CHARACTER_SET_CLIE...
CREATE TABLE public.articles ( id integer NOT NULL, title text NOT NULL, created timestamp with time zone DEFAULT now() NOT NULL, length integer NOT NULL ); CREATE SEQUENCE public.article_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; CREATE TA...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2020 at 04:08 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- ------------------------------------------------------------------ -- Fixes misc errors in GNRS state_province tables -- ------------------------------------------------------------------ -- -- state_province -- UPDATE state_province SET state_province_ascii='Estado de Veracruz', state_province_std='Veracruz' WH...
-- update module version UPDATE `sys_modules` SET `version` = '1.3.1' WHERE `uri` = 'events' AND `version` = '1.3.0';
CREATE TABLE test ( dt Date, id UInt32, val Nullable(UInt32) ) ENGINE = MergeTree(dt, id, 8192); insert into test (dt, id, val) values ('2017-01-01', 1, 10); insert into test (dt, id, val) values ('2017-01-01', 1, null); insert into test (dt, id, val) values ('2017-01-01', 1, 0); SELECT count() FROM test ...
USE demo --create necessary tables DECLARE @ProductInformation AS TABLE (Color NVARCHAR(20), Size NVARCHAR(1), isActiveProduct BIT) DECLARE @Color AS TABLE(Color NVARCHAR(20)) DECLARE @Size AS TABLE(Size NVARCHAR(1)) DECLARE @isActiveProduct AS TABLE(isActiveProduct BIT) --populate component tables INSERT INTO @Color...
SELECT idx_scan AS {{ conn|qtIdent(_('Index scans')) }}, idx_tup_read AS {{ conn|qtIdent(_('Index tuples read')) }}, idx_tup_fetch AS {{ conn|qtIdent(_('Index tuples fetched')) }}, idx_blks_read AS {{ conn|qtIdent(_('Index blocks read')) }}, idx_blks_hit AS {{ conn|qtIdent(_('Index blocks hit')) }}, ...
-- incrvacuum.test -- -- execsql { -- pragma auto_vacuum = 'none'; -- pragma auto_vacuum; -- } pragma auto_vacuum = 'none'; pragma auto_vacuum;
// $Revision$ // $Date$ INSERT INTO ofVersion (name, version) VALUES ('monitoring', 4); CREATE TABLE ofConversation ( conversationID BIGINT NOT NULL, room VARCHAR(1024) NULL, isExternal INT NOT NULL, startDate BIGINT NOT NULL, ...
CREATE TABLE groups ( id INTEGER PRIMARY KEY, text TEXT NOT NULL ); ALTER TABLE answers ADD COLUMN group_ INTEGER REFERENCES groups (id); CREATE INDEX answer_group_idx ON answers (group_);
create table users ( ID int AUTO_INCREMENT, Username varchar(255), Password varchar(255), Email varchar(255), Full_Name varchar(255), Address varchar(255), Blood_Group varchar(255), Age int, API_Token varchar(255), PRIMARY KEY (ID) ); create table doctors ( ID int AUTO_INCREMENT, Username varchar(2...
-- Select the release_year column from the films table SELECT release_year FROM films; -- Get the title, release year and country for every film SELECT title, release_year, country FROM films -- Get all the different film certifications from the films table SELECT DISTINCT certification FROM films -- Count the numb...
DROP ROLE manager; --> Uprawnienia --# Manager --- Może wykonywać dowolne operacje SELECT oraz korzystać z przygotowanych procedur, funkcji i widoków. CREATE ROLE manager; GRANT SELECT ON SCHEMA::dbo TO manager; -- procedures GRANT EXEC ON dbo.CreateNewMeal TO manager; GRANT EXEC ON dbo.SetMealActive TO manager; GRAN...
/*******************************************************************************/ /*@file cohort_baseline_SCr.sql /* /*in: AKI_Initial, AKI_Scr_eGFR, All_Scr_eGFR /* /*out: AKI_Scr_base /* /*action: write /********************************************************************************/ create table AKI_Scr_base...
UPDATE external_basho_player SET name = 'YurikaT' WHERE name = 'Yurika'; UPDATE external_basho_player SET name = 'steenbless' WHERE name = 'Ryuden'; UPDATE external_basho_player SET name = 'steenbless' WHERE name = 'therecanonlybeonedragon'; UPDATE external_basho_player SET name = 'Hidoiokami' WHERE name = 'mdshields7...
# --- !Ups DROP INDEX MESSAGE_SEND_STATE; ALTER TABLE MESSAGE_SEND ADD SEND_AT TIMESTAMP(6); CREATE INDEX MESSAGE_SEND_STATE_SEND_AT_IDX ON MESSAGE_SEND(STATE, SEND_AT); # --- !Downs DROP INDEX MESSAGE_SEND_STATE_SEND_AT_IDX; ALTER TABLE MESSAGE_SEND DROP COLUMN SEND_AT; CREATE INDEX MESSAGE_SEND_STATE ON MESSAGE_SEND...
use tpcc_workload go -- Load the DISTRCT table -- BULK INSERT district FROM 'C:\demos\sqlintersectionmarch2018\sql2017fastandfurious\demo1_sqlserverisfast\tpcc_workload\inputfiles\district_8.tbl' WITH (TABLOCK, DATAFILETYPE='char', CODEPAGE='raw', FIELDTERMINATOR = '|') go
CREATE TABLE IF NOT EXISTS "users" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, "firstname" TEXT, "lastname" TEXT, "email" TEXT NOT NULL UNIQUE, "share_email" BOOLEAN DEFAULT 0, "password" TEXT NOT NULL, "password_lost" TEXT, "phone" TEXT, "share_phone" BOOLEAN DEFAULT 0, "has_whatsapp" BOOLEAN DEFAULT 0, ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 19-Ago-2021 às 16:29 -- Versão do servidor: 10.4.20-MariaDB -- versão do PHP: 7.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
# cnpSharp2.sql was originally generated by the autoSql program, which also # generated cnpSharp2.c and cnpSharp2.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #CNP data from Sharp lab CREATE TABLE cnpSharp2 ( bin smallint unsigned...
INSERT INTO tb_category (name, created_At) VALUES ('Livros', NOW()); INSERT INTO tb_category (name, created_At) VALUES ('Eletrônicos', NOW()); INSERT INTO tb_category (name, created_At) VALUES ('Computadores', NOW()); INSERT INTO tb_product (name, price, date, description, img_url) VALUES ('The Lord of the Rings', 90....
(dp0 S'gr' p1 F3.7 sS'k111' p2 NsS't111' p3 cnumpy.core.multiarray _reconstruct p4 (cnumpy ndarray p5 (I0 tp6 S'b' p7 tp8 Rp9 (I1 (I80 tp10 cnumpy dtype p11 (S'f8' p12 I0 I1 tp13 Rp14 (I3 S'<' p15 NNNI-1 I-1 I0 tp16 bI00 S'`{,\x1f\xff\xb3\xb5?+\xd3\xbds\xbe\r\xb5?\xbb\xb4\xbb\x13\x93r\xb4?\x00\xcd\x8d\xcb}\xd7\xb3?\x05...
-- -- phpVMS Installer; -- -- DO NOT MANUALLY RUN THIS FILE!!! -- To install, goto /install/install.php -- -- Manually running this will screw up your install!! ; CREATE TABLE `phpvms_adminlog` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `pilotid` INT NOT NULL , `datestamp` DATETIME NOT NULL , `message` VAR...
CREATE TABLE guilds (); CREATE TABLE users (); CREATE TABLE patrons (); CREATE TABLE members (); CREATE TABLE starboards (); CREATE TABLE overrides (); CREATE TABLE permroles (); CREATE TABLE permrole_starboards (); CREATE TABLE aschannels (); CREATE TABLE xproles (); CREATE TABLE posroles (); CREATE TABLE posrole_memb...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 16-06-2017 a las 07:12:59 -- Versión del servidor: 10.1.19-MariaDB -- Versión de PHP: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
-- ======================== -- Information -- ======================== -- Direct Link: https://www.hackerrank.com/challenges/weather-observation-station-10/problem -- Difficulty: Easy -- Max Score: 10 -- DBMS: mySQL -- ======================== -- Solution -- ======================== SELECT DISTINCT(CIT...
ALTER TABLE `XXX_papoo_mvcform` ADD `mvcform_filter_front` TINYINT( 1 ) NOT NULL DEFAULT '1' COMMENT 'Filter die Eintragungen die aus dem Frontend kommen'; ##b_dump## ALTER TABLE `XXX_papoo_mvcform` ADD `mvcform_defaulttreeviewname` TINYINT( 1 ) NOT NULL DEFAULT '0' COMMENT 'Das form-feld wessen Inhalt bei einer Bauman...
drop table if exists addresses_new; select prg.lokalnyid, prg.teryt_msc, prg.teryt_simc, coalesce(prg.osm_ulica, prg.teryt_ulica, '') teryt_ulica, prg.teryt_ulic, prg.numerporzadkowy nr, prg.pna, prg.nr nr_standaryzowany, prg.gml geom_2180 into ad...
select d.org_deo, sd.proizvod, sum(sd.kolicina*sd.faktor*sd.k_robe), z.stanje from stavka_dok sd , dokument d, zalihe z --, zalihe_analitike za Where sd.godina (+)= d.godina and sd.vrsta_dok (+)= d.vrsta_dok and sd.broj_dok (+)= d.broj_dok and z.org_deo = d.org_deo and z.proizvod = sd.proizvod and...
-- MySQL dump 10.13 Distrib 5.7.30, for Linux (x86_64) -- -- Host: localhost Database: pobox -- ------------------------------------------------------ -- Server version 5.7.30-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
/*!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 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SE...
-- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2016 年 04 月 02 日 16:25 -- 服务器版本: 5.5.40 -- PHP 版本: 5.4.33 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_CHARA...
DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL UNIQUE ); CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(40) NOT NULL UNIQUE, salary DECIMAL(10,...
ALTER TABLE stock ADD price DECIMAL(15, 2); ALTER TABLE stock_log ADD price DECIMAL(15, 2);
-- shared.test -- -- execsql { -- DROP INDEX i1; -- } DROP INDEX i1;
CREATE USER badger WITH PASSWORD 'badger'; CREATE DATABASE badger WITH OWNER badger TEMPLATE template0 ENCODING 'SQL_ASCII' TABLESPACE pg_default LC_COLLATE 'C' LC_CTYPE 'C' CONNECTION LIMIT -1;
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 01, 2021 at 07:40 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE DATABASE IF NOT EXISTS `bd_filando` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `bd_filando`; -- MariaDB dump 10.19 Distrib 10.4.21-MariaDB, for Win64 (AMD64) -- -- Host: 127.0.0.1 Database: bd_filando -- ------------------------------------------------------ -- Server version 10.4.21-MariaDB /*...
DROP TABLE IF EXISTS `element_screen_names`; CREATE TABLE `element_screen_names` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `name` VARCHAR(250) NOT NULL, `version_id` BIGINT(20) NOT NULL, `copied_from` BIGINT(20) DEFAULT NULL, `created_date` DATETIME DEFAULT CURRENT_TIMESTAMP, `up...