sql
stringlengths
6
1.05M
insert into entrada (numero_funcion, precio, nombre_pelicula, fecha_funcion) values (:numeroFuncion, :precio, :nombrePelicula, :fechaFuncion)
<filename>configuration/amd64/mysql/port_drayage.sql -- MySQL dump 10.13 Distrib 5.7.34, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: PORT_DRAYAGE -- ------------------------------------------------------ -- Server version 5.7.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
<filename>src/FunnelWeb/DatabaseDeployer/Scripts/Script0018.sql -- Can't even remember what these columns were meant to be used for... alter table $schema$.[Entry] drop column [IsVisible] go alter table $schema$.[Revision] drop column [IsVisible] go alter table $schema$.[Revision] drop column [ChangeS...
<filename>trek/data/2020-07-12T06-21-27_bar.sql CREATE SCHEMA IF NOT EXISTS test; CREATE TABLE test.bar (id SERIAL PRIMARY KEY)
-- EXPLAIN DROP TABLE IF EXISTS hoge; CREATE TABLE hoge( pdbcode1 INTEGER NOT NULL , label_asym_id1 TEXT NOT NULL , pdbcode2 INTEGER NOT NULL , label_asym_id2 TEXT NOT NULL , score FLOAT NOT NULL ); INSERT INTO asym_pair_sum SELECT o1.pdbcode, o1.label_asym_id, o2.pdbco...
<reponame>RollingSoftware/L2J_HighFive_Hardcore ALTER TABLE `character_reco_bonus` CHANGE `task_end` `time_left` decimal(20,0) unsigned NOT NULL DEFAULT '0';
-- This script assumes that the tablespace 'ejbca_ts' exists. -- NDB support has not been verified in a very long time CREATE TABLE AccessRulesData ( pK INT(11) NOT NULL, accessRule VARCHAR(250) BINARY NOT NULL, isRecursive TINYINT(4) NOT NULL, rowProtection LONGTEXT, rowVersion INT(11) NOT NULL, ...
<reponame>SkillsFundingAgency/DC-ILR-2021-DataStore  GO --ALTER ROLE [db_datareader] ADD MEMBER [ILR2021DataStore_RO_User]; GO --ALTER ROLE [db_datawriter] ADD MEMBER [ILR2021DataStore_RW_User]; GO --ALTER ROLE [db_datareader] ADD MEMBER [ILR2021DataStore_RW_User]; GO ALTER ROLE [DataProcessing] ADD MEMBER [ILR2021Da...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 23-Abr-2018 às 03:03 -- Versão do servidor: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_S...
INSERT INTO produto (nome, preco, ativo) VALUES ('Computador All-in-one LG', '18199.90', true); INSERT INTO produto (nome, preco, ativo) VALUES ('Notebook Acer Core i3', '1299.50', true); INSERT INTO produto (nome, preco, ativo) VALUES ('Notebook Samsung Core i5', '1799.90', true); INSERT INTO produto (nome, preco, ati...
<gh_stars>0 CREATE TABLE IF NOT EXISTS `quiz_users` ( `username` varchar(64) NOT NULL PRIMARY KEY, `fullname` varchar(254) NOT NULL, `password` varchar(32) NOT NULL, `role` varchar(30) NOT NULL, `status` char(10) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_vietnamese_ci; CREATE TABLE IF ...
<filename>BolaoNet.Database.SqlServer/Tables/0028.Create_Table_BoloesRegras.sql  CREATE TABLE [dbo].[BoloesRegras]( [NomeBolao] [varchar](100) NOT NULL, [RegraID] [int] NOT NULL, [Descricao] [varchar](255) NULL, [CreatedBy] [varchar](25) NULL, [CreatedDate] [datetime] NULL, [ModifiedBy] [varchar](25) NULL, [Mod...
<filename>SQL/2_vw_todo_items.sql -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Dec 25, 2019 at 02:16 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
<reponame>phucvinhnguyen/sgnew_shop<gh_stars>0 create database sgnew_db; use sgnew_db; create table customer ( id int primary key not null auto_increment, full_name varchar(64) not null, address varchar(128), phone varchar(16) not null ); create table refraction_error ( id int primary key not null...
<filename>ph2-solutions.sql /* SQL "Sakila" database query exercises - phase 1 */ -- Database context USE sakila; -- Your solutions... --1a select first_name, last_name from actor; --1b select concat(upper(first_name), ' ',upper(last_name)) 'Actor Name' from actor; --2a select actor_id, first_name, last_name from a...
DROP DATABASE IF EXISTS yourplacedb; CREATE DATABASE IF NOT EXISTS yourplacedb; USE yourplacedb; CREATE TABLE USERS ( id VARCHAR(36) NOT NULL, fullname VARCHAR(200), dni VARCHAR(9), borndate DATE, password VARCHAR(250) NOT NULL, email VARCHAR(100) NOT NULL, verified BOOLEAN NOT NULL DEFAULT FALSE, pi...
-- convert dari tabel kehadiran v1 ke tabel kehadiran v2 insert into kehadiranv2 (id,idUser,idAgenda,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20) select kehadiran.id,kehadiran.idUser,kehadiran.idAgenda, if(kehadiran.p1=1,agenda.WaktuMulai,NULL) as p1, if(kehadiran.p2=1,agenda.WaktuMulai,NULL...
<gh_stars>0 select c1.concept_id as CONCEPT_ID, c1.concept_name as CONCEPT_NAME, cast(round((100.0*num.count_value / denom.count_value), 0) as int64) as Y_NUM_PERSONS, num.stratum_2 as X_COUNT from (select count_value from @results_database_schema.achilles_results where analysis_id = 1) denom, (select CAST(strat...
<gh_stars>1-10 -------------------------------------------------------------------------- -- Using FORMATMESSAGE to generate BACKUP CERTIFICATE STATEMENT -------------------------------------------------------------------------- -- user defined table type for encrypted name/value pair IF TYPE_ID('NAMEVALUETYPE') IS NUL...
<gh_stars>1-10 CREATE USER janitor WITH PASSWORD '<PASSWORD>'; CREATE USER janitor_dev WITH PASSWORD '<PASSWORD><'; CREATE DATABASE NWHACKS; GRANT ALL ON DATABASE NWHACKS TO janitor, janitor_dev;
<reponame>jkstill/sqlnet<filename>misc/ras_user.sql exec XS_PRINCIPAL.CREATE_USER(NAME=>'JKSTILL_RAS_USER'); exec XS_PRINCIPAL.SET_PASSWORD('<PASSWORD>','oracle');
<reponame>duncanhealy/cp-dojos-service<filename>scripts/database/pg/migrations/019.do.add-eventbrite-info.sql DO $$ BEGIN BEGIN ALTER TABLE cd_dojos ADD COLUMN eventbrite_token character varying ; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE 'column eventbrite_token alre...
alter table egbpa_mstr_servicetype add column isbuildingrequired boolean default false; alter table egbpa_mstr_servicetype rename column isAutoDcrNumberRequired to isedcrmandatory; update egbpa_mstr_servicetype set isedcrmandatory = true, isbuildingrequired=true where code in('01','03','04','06','07');
<filename>sql/migration/update_0.001_to_0.002.sql -- UPDATE 0.001 to 0.002 CREATE TABLE picture_tmp ( id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT NOT NULL, description TEXT, file VARCHAT(1), file_path TEXT, file_name TEXT, file_size TEXT, pict_width INTEGER, pict_height INTEGER, is_voted BOOLEAN...
<gh_stars>1-10 IF NOT EXISTS (select * from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='sa' and TABLE_NAME='sa_suorat_hist_yo6a_avoin_yliopisto_opetus') BEGIN create table sa.sa_suorat_hist_yo6a_avoin_yliopisto_opetus ( vuosi int , yliopisto_tunnus varchar(5) , koulutusalakoodi varchar(5) , tarjotut_pisteet_lkm de...
<gh_stars>1-10 SELECT f.Origin, f.Destination FROM Flights AS f ORDER BY f.Origin, f.Destination
CREATE TABLE IF NOT EXISTS applied_migration ( id integer NOT NULL AUTO_INCREMENT, date_applied datetime NOT NULL, name text NOT NULL, PRIMARY KEY (id) );
\set ON_ERROR_STOP on SET SERVER ROLE TO 'primary'; SET SHARDING KEY TO '1'; INSERT INTO data (id, value) VALUES (1, 'value_1'); SET SERVER ROLE TO 'replica'; SET SHARDING KEY TO '1'; SELECT * FROM data WHERE id = 1; --- SET SERVER ROLE TO 'primary'; SET SHARDING KEY TO '2'; INSERT INTO data (id, value) VALUES (2, ...
<filename>recipes/transfer/load-examples/mytbl.sql # mytbl.sql # Create test table for LOAD DATA example DROP TABLE IF EXISTS mytbl; CREATE TABLE mytbl ( c1 CHAR(20), c2 CHAR(20) ) ;
UPDATE herramientas.catalogo SET descripcion = 'caalogo1', observaciones = 'catalogo test 1', activo = true WHERE id = 1;
<gh_stars>0 INSERT INTO PERFIL(id, nome) VALUES(1, 'ROLE_USER');
<reponame>SabreJim/sportorg drop view beaches.v_programs; CREATE SQL SECURITY INVOKER VIEW beaches.v_programs as SELECT p.program_id, p.color_id, p.registration_method, f.fee_value, f.fee_id, p.location_id, l.street_address as 'location_name', p.program_name, p.is_active, p.loya...
CREATE FUNCTION [dbo].[FormatRunDate] ( @run_date int, @run_time int ) returns datetime as Begin if (@run_date = 0 or @run_time = 0 ) return null Declare @date date = cast(cast(@run_date as varchar(8)) as date) return dateadd(second, (@run_time % 100), dateadd(minute, (@run_time % 10000) / 100, dateadd(h...
CREATE PROCEDURE [dbo].[LIST_AND_UPDATE_REQUESTS_READY_TO_CANCEL] ( @LOG_NUMBER int = NULL, @LANGUAGE VARCHAR(10) = NULL ) AS BEGIN SET NOCOUNT ON BEGIN TRANSACTION ;WITH CTE_CAT AS ( SELECT CALL_CENTER_ID, CAT_CODE, [DESC] FROM dbo....
<filename>sql/data/library_test_data04.sql -- data generated by /usr/local/bin/datafiller version 2.0.0 (r792 on 2014-03-23) for postgresql -- fill table book (6) \echo # filling table book (6) COPY book (bid,title,isbn) FROM STDIN (ENCODING 'utf-8'); 1 marvel meanwhile 1 2 pens stationery expansys hilton learning tr...
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. -- DROP some chunks to test metadata cleanup DROP TABLE _timescaledb_internal._hyper_1_2_chunk; DROP TABLE _timescaledb_internal._hyper_1...
<filename>ebean-ddl-generator/src/test/resources/dbmigration/migrationtest/db2/1.2__dropsFor_1.1.sql -- Migrationscripts for ebean unittest -- apply changes alter table migtest_e_basic drop column old_boolean; alter table migtest_e_basic drop column old_boolean2; alter table migtest_e_basic drop column eref_id; alte...
<filename>code/mysql/select.sql # NOTE: You *MUST* actually do any html escaping here that is necessary. CREATE TABLE IF NOT EXISTS URLRecord ( id INT (11) NOT NULL AUTO_INCREMENT, Title VARCHAR(255) NOT NULL DEFAULT '', Description VARCHAR(255) NOT NULL DEFAULT '', URL VARCHAR(255) NOT NULL DEFAULT '', Image V...
CREATE TABLE 테이블; ALTER TABLE 테이블 ADD COLUMN 나이 INT DEFAULT 0 NOT NULL; INSERT INTO 테이블(나이) VALUES(20),(30),(40); ALTER TABLE 테이블 ADD COLUMN 이름 VARCHAR FIRST; ALTER TABLE 테이블 ADD COLUMN 신분증 INT NOT NULL AUTO_INCREMENT UNIQUE; ALTER TABLE 테이블 ADD COLUMN 전화 VARCHAR(13) DEFAULT '000-0000-0000' AFTER 이름; SELECT * FROM 테이블...
/* SQLyog Ultimate v8.55 MySQL - 5.5.54 : Database - drivegreen_db ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
<reponame>jeirosario/Tabla-de-registro-de-estudiante-y-profesores- create database itla use itla create table estudiante ( id_estu int primary key, nom_estu varchar(140), matri_estu varchar (30) ) create table profesor( id_prof int primary key, nom_prof varchar (140) ) create table estu_prof( id_prof1 int, id_estu...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 07 Gru 2021, 08:16 -- Wersja serwera: 10.4.14-MariaDB -- Wersja PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SE...
DROP TABLE IF EXISTS kommentar; DROP TABLE IF EXISTS artikkel; DROP TABLE IF EXISTS kategori; CREATE TABLE kategori ( navn VARCHAR(30) PRIMARY KEY ); CREATE TABLE artikkel ( id INT PRIMARY KEY AUTO_INCREMENT, tittel VARCHAR(150) NOT NULL, bilde VARCHAR(1024) NOT NULL, innhold VARCHAR(10240) NOT NU...
<reponame>SanjayaDev/web_worklog ALTER TABLE `assignments` ADD COLUMN `priority` ENUM('High', 'Medium', 'Low') NOT NULL AFTER `user_created`;
-- phpMyAdmin SQL Dump -- version 4.4.15.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 2017-05-23 10:39:39 -- 服务器版本: 5.5.48-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...
<filename>Services/users.sql create database users; use users; create table tb_users(id_user int primary key, nome_us varchar(30) not null, email_us varchar(50) not null, idade_us int (3) not null, login varchar(30) not null, senha_us varchar(30) not null); show tables;
-- Change the column type to text to allow larger meta data json to be stored. ALTER TABLE data_resource ALTER COLUMN metadata TYPE text;
CREATE TABLE `rights` ( `id` int(11) NOT NULL auto_increment, `short_name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO rights set short_name='admin', name='Administrator'; INSERT INTO rights set short_name='user_management', name='U...
<filename>libraryDB.sql /* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 8.0.20 : Database - librarydb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 S...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: db -- Generation Time: Jun 24, 2021 at 08:04 PM -- Server version: 10.5.11-MariaDB-1:10.5.11+maria~focal -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- Script to generate csv files for import into neo4j -- This is the affymetrix case study tracing the affy seedset of <= 1991 to the DMET Plus -- Panel of 2017 -- Author: <NAME> 2/20/2018 -- End point is the garfield_hgraph series, which contains 23 wos_ids from Garfield's microarray historiograph -- Starting point i...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 02, 2021 at 11:19 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
select product_id, sum(quantity) as total_quantity from Sales group by product_id
<gh_stars>10-100 # pour supprier le cas "-1" des places sur matelas : 0 veut dire, y'en a aps, et NULL on ne sait pas # !! ORDRE IMPORTANT !! update points set places_matelas=NULL where places_matelas=0; update points set places_matelas=0 where places_matelas=-1; ALTER TABLE "points" ALTER "places" TYPE bigint, ALTER...
<gh_stars>1-10 -------------------------------------------------------------------------- -- Drop articles from the publication. -------------------------------------------------------------------------- DECLARE @myMergePub AS sysname DECLARE @myMergeArt1 AS sysname DECLARE @myMergeArt2 AS sysname SET @myMer...
CREATE TABLE carrierlang ( id CHAVE NOT NULL, id_carrier CHAVE NOT NULL, id_shop CHAVE NOT NULL, id_lang CHAVE NOT NULL, delay CHARACTER VARYING(512), CONSTRAINT pk_carrierlang PRIMARY KEY (id) );
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[usp_read_all_datasources ] -- Add the parameters for the stored procedure here @UserName VARCHAR (50) = ...
<gh_stars>0 /* Warnings: - You are about to drop the column `instructorName` on the `FinishedCourses` table. All the data in the column will be lost. */ -- AlterTable ALTER TABLE "Course" ADD COLUMN "instructorId" INTEGER; -- AlterTable ALTER TABLE "FinishedCourses" DROP COLUMN "instructorName", ADD COLUMN ...
ALTER TABLE rpt.report RENAME party_contract_id TO party_shop_id; DELETE FROM rpt.report; DELETE FROM rpt.file_meta; UPDATE rpt.contract_meta SET last_closing_balance = null;
<reponame>blench/PraticeProject<filename>cms-simple/1.sql USE officesupplies; INSERT INTO `sys_menu` VALUES ('0', '', '/', 'menu', NULL); INSERT INTO `sys_menu` VALUES ('402881ea5d975493015d975a9f7a0002', '测试2', '/admin/news/test2', '树状菜单', '4028cdb64738c141014738c2fdbc0000'); INSERT INTO `sys_menu` VALUES ('402881ea5d...
<filename>migrations/20210208163948_add_index_on_events_height.sql -- +goose Up CREATE INDEX index_events_on_height ON events (height); -- +goose Down DROP INDEX index_events_on_height;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- SIAM_ADMIN_DATABASE -- 生成日期: 2021-05-10 14:09:31 -- 服务器版本: 5.7.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
<filename>airflow/dags/sql/create_analytics_nyc_taxi.sql create or replace transient table nyc_taxi ( vendor_id string not null, tpep_pickup_ts timestamp_ntz not null, tpep_dropoff_ts timestamp_ntz not null, tpep_pickup_date date not null, tpep_dropoff_date date not null, passenger_count in...
<reponame>Mu-L/cachecloud create or replace table app_import( id bigint auto_increment primary key, app_id bigint null comment '目标应用id', instance_info text null comment '源redis实例信息', redis_password varchar (200) null comment '源redis密码', status int null comment '迁移状态:PREPARE(0, "准备", "应用导入-未开始"),...
alter table `t_user_messages` add column `_line` int(11) NOT NULL DEFAULT 0; alter table `t_user_messages_0` add column `_line` int(11) NOT NULL DEFAULT 0; alter table `t_user_messages_1` add column `_line` int(11) NOT NULL DEFAULT 0; alter table `t_user_messages_2` add column `_line` int(11) NOT NULL DEFAULT 0; alter ...
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: db_cache_web -- ------------------------------------------------------ -- Server version 5.7.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
<reponame>Zhaojia2019/cubrid-testcases -- [er]test definition double type column with the keywords default, shared, unique in create statement CREATE CLASS ddl_0001( col1 double DEFAULT 1 SHARED UNIQUE ); drop ddl_0001;
<reponame>Zhaojia2019/cubrid-testcases --cases from dev SELECT SECOND('10:05:03'); SELECT SECOND('2000-01-01'); SELECT SECOND('2000-01-01 10:05:03'); SELECT SECOND('2000-01-01 10:05:03.1234'); --SELECT SECOND(current_date); -- test for valid date time format select second(datetime'2003-12-31 01:02:03.1234'), if (...
<gh_stars>100-1000 DROP TABLE IF EXISTS test_ao_types_bytea; CREATE TABLE test_ao_types_bytea (c0 bytea) with (appendonly=true, orientation=row, compresstype=none, blocksize=32768, checksum=false, compresslevel=0); INSERT INTO test_ao_types_bytea values ('hello world'), ('aaaaaaaaaaaaaaaaaaa'), (null);
<reponame>jedielson/database-cd -- Alter table create new camp PersonStats ALTER TABLE Person ADD Active bit not null, StandbyLimit datetime null GO ALTER TABLE [dbo].[Person] ADD CONSTRAINT PERSON_Active_Default DEFAULT ((1)) FOR [Active] GO
-- https://duneanalytics.com/queries/25300 WITH dpi_mint_burn AS ( SELECT date_trunc('day', evt_block_time) AS day, SUM("_quantity"/1e18) AS amount FROM setprotocol_v2."BasicIssuanceModule_evt_SetTokenIssued" WHERE "_setToken" = '\x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b' ...
create table ProductTypes ( Id int not null, Name nvarchar (50) not null primary key clustered ([Id] asc) );
<gh_stars>0 DROP TABLE IF EXISTS locations; CREATE TABLE locations ( id SERIAL PRIMARY KEY, search_query VARCHAR(255), formatted_query VARCHAR(255), latitude DECIMAL(12,8), longitude DECIMAL(12,8) ); INSERT INTO locations ( search_query, formatted_query, latitude, longitude) VALUES ('seattle', 'usa', 13.2,12); SE...
SELECT request_session_id AS SessionID FROM sys.dm_tran_locks WHERE resource_database_id = DB_ID('{dbName}') AND request_session_id>50
<reponame>indrapurnayasa/APIInfoKelas<filename>projectprogmob.sql<gh_stars>0 /* SQLyog Ultimate v12.5.1 (32 bit) MySQL - 10.4.14-MariaDB : Database - projekprogmob ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @...
/* SQL Server Wait Information from sys.dm_os_wait_stats Copyright (C) 2014, <NAME> Unlimited. See http://BrentOzar.com/go/eula for the End User Licensing Agreement. */ /********************************* Let's build a list of waits we can safely ignore. *********************************/ IF OBJECT_ID('tempdb..#ignora...
BEGIN TRANSACTION INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue) VALUES('MyConfiguration:SomeString', 'A value from the database.'); INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue) VALUES('MyConfiguration:SomeNumber', '1234'); INSERT INTO Stravaig.AppConfiguration(ConfigKey, ConfigValue)...
<filename>hackerrank/sql/placements.sql SELECT s.Name AS Student_Name FROM Friends AS f INNER JOIN Students AS s ON f.ID = s.ID INNER JOIN Packages AS sp ON s.ID = sp.ID INNER JOIN Packages AS fp ON f.Friend_ID = fp.ID WHERE fp.Salary > sp.Salary ORDER BY fp.Salary;
-- CREATED A QUEUE -- returns: -- { was_created: TRUE } DROP FUNCTION IF EXISTS fetchq.queue_create(CHARACTER VARYING); CREATE OR REPLACE FUNCTION fetchq.queue_create( PAR_queue VARCHAR, OUT was_created BOOLEAN, OUT queue_id INTEGER ) AS $$ DECLARE VAR_q VARCHAR; BEGIN was_created = TRUE; -- pick the queue id, ...
-- file:rolenames.sql ln:122 expect:false ALTER USER USER WITH LOGIN
<gh_stars>10-100 -- Shattered WHs statics data, gathered from ellatha.com at 2017-11-19 21:12:30.359758 UTC UPDATE wormholesystems_new SET statics='J244,N110' WHERE solarsystemid=31002505; -- J015092 UPDATE wormholesystems_new SET statics='J244,N110' WHERE solarsystemid=31002506; -- J005834; was: N110,Z060 UPDAT...
<filename>sql_scripts/queries.sql<gh_stars>10-100 SELECT * FROM ( SELECT * FROM ( SELECT * FROM user WHERE user.study_time >= ( SELECT study_time FROM user ...
<reponame>vipulnaik/donations<filename>disclosure-calculations/disclosure_focus_area.sql<gh_stars>10-100 drop temporary table if exists disclosed_donations_focus_area_summary; drop temporary table if exists donations_focus_area_summary; create temporary table disclosed_donations_focus_area_summary as select substr...
<reponame>vibrantbyte/spring-boot-starter # default 数据组 DROP DATABASE IF EXISTS `default`; CREATE DATABASE `default`; CREATE TABLE IF NOT EXISTS `default`.`t_order` ( order_id INT NOT NULL, user_id INT NOT NULL, PRIMARY KEY (order_id) ); CREATE TABLE IF NOT EXISTS `default`.`t_order_item` ( item_id I...
CREATE TABLE public."Users" ( id BIGSERIAL PRIMARY KEY, email character varying(255) NOT NULL, password character varying(255) NOT NULL, "givenName" character varying(50), surname character varying(50), "createdAt" timestamp with time zone NOT NULL, "updatedAt" timestamp with time zone NOT NULL, CONSTRA...
<gh_stars>0 # --- !Ups CREATE TABLE "PERSON" ("id" SERIAL, "name" VARCHAR(255) NOT NULL, "age" BIGINT NOT NULL); # --- !Downs DROP TABLE "PERSON";
<reponame>tharindu1st/apim-migration-resources ALTER TABLE AM_APPLICATION ADD TOKEN_TYPE VARCHAR(10); ALTER TABLE AM_API_SCOPES ADD PRIMARY KEY (API_ID, SCOPE_ID); DELETE FROM AM_ALERT_TYPES_VALUES WHERE ALERT_TYPE_ID = (SELECT ALERT_TYPE_ID FROM AM_ALERT_TYPES WHERE ALERT_TYPE_NAME = 'AbnormalRefreshAlert' AND STAKE_H...
insert into DATAVAULTDEMO_DB.SS_RAW_VLT.hub_shippers ("SHIPPER_PK", "SHIPPERID", "LOAD_DATE", "RECORD_SOURCE") ( select "SHIPPER_PK", "SHIPPERID", "LOAD_DATE", "RECORD_SOURCE" from DATAVAULTDEMO_DB.SS_RAW_VLT.hub_shippers__dbt_tmp );
<filename>migration/sql-files/109-number-column-for-iteration.sql<gh_stars>10-100 ALTER TABLE iterations ADD COLUMN number INTEGER;
/* Group 3A */ -- This is the base table for Forest Resource entity class. drop table Forest_Resource cascade constraints; create table Forest_Resource (internal_id integer, resource_type varchar2(8) check(resource_type in ('road', 'rec_area')) not null, primary key(internal_id) ); -- This is the base table f...
INSERT INTO waffle_switch_mkt (name, active) VALUES ('anonymous-free-installs', 0);
drop table if exists t; create table t(name varchar(50),id int primary key AUTO_INCREMENT) partition by range(id)( partition beforec values less than(6), partition beforef values less than(12), partition beforel values less than MAXVALUE ); insert into t values ('aaabbbcccddd',null); insert into t values ('...
-- @testpoint:opengauss关键字cascade非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists cascade; create sequence cascade start 100 cache 50; --清理环境 drop sequence cascade; --关键字带双引号-成功 drop sequence if exists "cascade"; create sequence "cascade" start 100 cache 50; --清理环境 drop sequence "cascade"; --关键字带单引号-合理报错 drop seque...
<gh_stars>0 DROP TABLE IF EXISTS day_students_details;
<filename>hasura/migrations/1589719035089_alter_table_public_ward_drop_column_covid_status/up.sql<gh_stars>0 ALTER TABLE "public"."ward" DROP COLUMN "covid_status" CASCADE;
CREATE TABLE [Person].[BusinessEntity] ( [BusinessEntityID] [int] NOT NULL IDENTITY(1, 1) NOT FOR REPLICATION, [rowguid] [uniqueidentifier] NOT NULL ROWGUIDCOL CONSTRAINT [DF_BusinessEntity_rowguid] DEFAULT (newid()), [ModifiedDate] [datetime] NOT NULL CONSTRAINT [DF_BusinessEntity_ModifiedDate] DEFAULT (getdate())...
<filename>SQL/Basic Select/weather-observation-station-12.sql SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[^aeiouAEIOU]%[^aeiouAEIOU]';
-- CREACION DE TABLAS --DROP TABLE Tarjetas CREATE TABLE Tarjetas ( Id INT IDENTITY NOT NULL, Numero NUMERIC(20) NOT NULL UNIQUE, CVV INT NOT NULL, Tipo INT NOT NULL, Mes_Expiracion INT NOT NULL, Anno_Expiracion INT NOT NULL, Fondos NUMERIC(18,2) NULL, Limite NUMERIC(18,2) NULL ); --DROP TABLE...
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS tasks; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username VARCHAR (32) UNIQUE NOT NULL, email VARCHAR (64) UNIQUE NOT NULL, hashed_password VARCHAR (512) NOT NULL ); CREATE TABLE IF NOT EXISTS tasks ( id SERIAL PRIMARY KEY, ...
COPY {{tableName}}( id_prv, events_add_section, events_add_timestamp, eflow_node, eflow_action, eflow_category, events_count, eflow_time_code, eflow_code ) FROM STDIN WITH QUOTE AS E'\x1f' CSV