sql
stringlengths
6
1.05M
<gh_stars>0 DROP TABLE IF EXISTS `parameter`; CREATE TABLE `parameter` ( `id` smallint unsigned NOT NULL AUTO_INCREMENT, `site_name` tinytext NOT NULL, `site_description` text NOT NULL, `site_author` varchar(140) NOT NULL, PRIMARY KEY(`id`) )ENGINE=InnoDB; INSERT INTO `parameter`(`site_name`,`site_descripti...
<reponame>gitvophu/cd_web1_test1_VoNgocPhu<filename>web_root/db/fooflight_4_1_2019.sql -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 01, 2019 lúc 05:57 PM -- Phiên bản máy phục vụ: 10.1.35-MariaDB -- Phiên bản PHP: 7.2.9 SET SQL_MODE = "NO_AUTO...
UPDATE analise SET descricao = ${descricao}, datahora = ${datahora}, base = ${base}, logs = ${logs} WHERE id_analise = ${id_analise}
<filename>sql/002_core_insert.sql INSERT INTO "ilcfrance_locales" ("id", "status", "direction", "created_at", "updated_at") VALUES ('fr', 1, 'rtl', '2016-11-18 08:00:00+01', '2016-11-18 08:00:00+01'), ('en', 1, 'rtl', '2016-11-18 08:00:00+01', '2016-11-18 08:00:00+01'); INSERT INTO "ilcfrance_roles" ("id", "descriptio...
SELECT COUNT(*) FROM tag as t, site as s, question as q, tag_question as tq WHERE t.site_id = s.site_id AND q.site_id = s.site_id AND tq.site_id = s.site_id AND tq.question_id = q.id AND tq.tag_id = t.id AND (s.site_name in ('stackoverflow')) AND (t.name in ('bar-chart','converter','firemonkey','gradient','grouping','g...
-- You can begin populating the database with the following SQL statements. INSERT INTO guestbook (email, comment, created) VALUES ('<EMAIL>', 'Hello! Hope you enjoy this sample zf application!', now()); INSERT INTO guestbook (email, comment, created) VALUES ('<EMAIL>', 'Baz baz baz, baz b...
-- -- iPeer Database -- SET foreign_key_checks = 0; -- -------------------------------------------------------- -- -- Table structure for table `acos` -- DROP TABLE IF EXISTS `acos`; CREATE TABLE IF NOT EXISTS `acos` ( `id` int(10) NOT NULL AUTO_INCREMENT, `parent_id` int(10) DEFAULT NULL, `model` varchar(255...
<reponame>ligana/Ensemble-om-SpringBoot drop table if exists CIF_CONTROL_CONTACT; /*==============================================================*/ /* Table: CIF_CONTROL_CONTACT */ /*==============================================================*/ create table CIF_CONTROL_CONT...
<gh_stars>1-10 ALTER TABLE ski_lifts DROP COLUMN is_opened; ALTER TABLE ski_lifts ADD COLUMN is_opened BOOLEAN;
<reponame>CSCfi/antero USE [ANTERO] GO /****** Object: StoredProcedure [sa].[p_lataa_koski_opintojen_kulku_koko] Script Date: 30.8.2021 12:54:00 ******/ DROP PROCEDURE IF EXISTS [sa].[p_lataa_koski_opintojen_kulku_koko] GO /****** Object: StoredProcedure [sa].[p_lataa_koski_opintojen_kulku_koko] Script Date: ...
/****************************************************************************** -- Instructions for using the script *******************************************************************************/ -- 1) F5 to run script SET NOCOUNT ON GO EXEC [sp_configure] 'show advanced option', 1 RECONFIGURE with OVERRIDE EXEC...
-- file:tidscan.sql ln:12 expect:true EXPLAIN (COSTS OFF) SELECT ctid, * FROM tidscan WHERE ctid = '(0,1)'
ALTER TABLE sysinfo ADD enabledqrexternallogins text[] NULL; INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20210405074941_AddEnableQrLoginProp', '3.1.10');
<reponame>forgottenlands/ForgottenCore406<gh_stars>10-100 -- Spawn Boss BoT 10Hm 25Nm 25Hm -- By mikadmin for Arkania UPDATE `creature` SET `spawnMask` = '15' WHERE `creature`.`id` =44600; UPDATE `creature` SET `spawnMask` = '15' WHERE `creature`.`id` =45992; UPDATE `creature` SET `spawnMask` = '15' WHERE `creature`.`...
CREATE TABLE IF NOT EXISTS files ( unique_id INTEGER PRIMARY KEY AUTOINCREMENT, file_unique_id TEXT UNIQUE, file_id TEXT, owner_id INTEGER, category TEXT, file_name TEXT, extension TEXT );
drop table Class; drop table Flight; drop table Airline; drop table Airport; drop table City; CREATE TABLE City( ID SERIAL PRIMARY KEY, CityName varchar(200) NOT NULL, Country varchar(200) NOT NULL, TimeZone int NOT NULL ); CREATE TABLE Airport( ID SERIAL PRIMARY KEY, AirportCode char(3) NOT NULL, AirportNam...
set `planner.slice_target`=1; select * from `json/partsupp` order by ps_partkey, ps_availqty limit 4; reset `planner.slice_target`;
<reponame>OdinRossy/bank-system -- MySQL dump 10.13 Distrib 8.0.16, for macos10.14 (x86_64) -- -- Host: localhost Database: bank-system -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
<gh_stars>0 -- Table: public.interview_day_metadata -- DROP TABLE public.interview_day_metadata; CREATE TABLE public.interview_day_metadata ( date date NOT NULL, id serial, location text COLLATE pg_catalog."default" NOT NULL, CONSTRAINT interview_day_metadata_pkey PRIMARY KEY (id) ) WITH ( OIDS = ...
DROP TABLE votes; DROP TABLE reviews; DROP TABLE books; -- DROP TABLE users;
SELECT SOUNDEX(NULL); SELECT SOUNDEX('Hello'); SELECT SOUNDEX('hello'); SELECT SOUNDEX('Quadratically'); SELECT SOUNDEX('quadratically'); SELECT SOUNDEX('你好中国'); SELECT SOUNDEX('你好中国北京'); SELECT SOUNDEX(''); SELECT SOUNDEX('he'); SELECT SOUNDEX('hello all folks'); SELECT SOUNDEX('#3556 in bugdb'); SELECT SOUNDEX('####'...
<reponame>rorygibson/OpenACalendar-Web-Core<gh_stars>1-10 ALTER TABLE event_information ADD area_id INT NULL; ALTER TABLE event_history ADD area_id INT NULL; ALTER TABLE event_information ADD CONSTRAINT event_information_area_id FOREIGN KEY (area_id) REFERENCES area_information(id); ALTER TABLE event_history ADD CONST...
<reponame>opengauss-mirror/Yat -- @testpoint: opengauss关键字rebuild非保留),作为索引名,部分测试点合理报错 --前置条件,创建一个表 drop table if exists rebuild_test; create table rebuild_test(id int,name varchar(10)); --关键字不带引号-成功 drop index if exists rebuild; create index rebuild on rebuild_test(id); drop index rebuild; --关键字带双引号-成功 drop index if...
<reponame>GhostStf45/Laravel-7-Project CREATE DATABASE IF NOT EXISTS laravel_master; USE laravel_master; CREATE TABLE IF NOT EXISTS users ( id int(255) auto_increment not null, role varchar(20) not null, name varchar(100) not null, surname varchar(100) not n...
CREATE FUNCTION [dbo].[fnGetMessagesWithMicrosoftInEducation] ( @twitterUserNetwork nvarchar(100) ) RETURNS TABLE AS RETURN ( SELECT TA.*, [dbo].fnGetTwitterAccountUrlByUserName(Username) as TwitterProfileUrl, TUS.STATUSTEXT, TUS.CREATEDAT, TUS.STATUSURL FROM TwitterUserStatus TUS INNER JOIN TWITTERACCOUNT TA...
ALTER TABLE `role` ADD COLUMN `create_date` TIMESTAMP NOT NULL AFTER `id`; ALTER TABLE `role` ADD COLUMN `modify_date` TIMESTAMP NOT NULL AFTER `create_date`; ALTER TABLE `role` ADD COLUMN `version` INT NOT NULL AFTER `modify_date`;
--DB2 SELECT (100 + 200) * 3 AS keisan FROM SYSIBM.SYSDUMMY1;
<reponame>RuglesChaves/estoque -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 24-Jan-2019 às 21:12 -- Versão do servidor: 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_CHARACTE...
/* // Copyright (c). 2020 <NAME>, MCSD (danielanywhere) // Released for public access under the MIT License. // http://www.opensource.org/licenses/mit-license.php */ DELETE FROM CityRequest; INSERT INTO CityRequest(CityRequestID, CityRequestTicket, CityRequestName) VALUES (2, '49B26A9B-F1F2-4210-9E11-C9A0238549EE', 'Fo...
-- -- File generated with SQLiteStudio v3.3.3 on Sa Okt 16 13:45:04 2021 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: executables CREATE TABLE IF NOT EXISTS executables ( name STRING NOT NULL, exe STRING NOT NULL, cmdline STRING NOT NULL, ...
<filename>Hospital_Management_DB/backups/individualBackups/project_insurance.sql CREATE DATABASE IF NOT EXISTS `project` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `project`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: project -- ------------------------------------------...
<reponame>jaxkodex/edustats<filename>edustats-data/sql/V5__Tablas_plan_curricular.sql<gh_stars>0 create table ciclo ( id_ciclo serial not null, de_ciclo varchar(25) not null, constraint ciclo_pk primary key (id_ciclo) ); create table grado ( id_grado serial not null, nu_grado int not null, de_grado varchar...
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES'; DROP FUNCTION IF EXISTS isProvince; DELIMITER // CREATE FUNCTION isProvince ( stringparam VARBINARY(255)) RETURNS TINYINT UNSIGNED DETERMINISTIC NO SQL SQL SECURITY DEFINER COMMENT 'Returns 1 if stringparam is a Canadian province code, 0 otherwise. Not...
<reponame>jordanbean-msft/WhatTheHack /**************************************************************************************** --How can you efficiently move data from Staging to Salses area ? --Considering you still have to create prodution tables, could you define them using the proper distribution method? --Conside...
--线下多分类(不含null的) insert overwrite table user_shop_behavior_kv partition(mall_id) select row_id,kv,label,mall_id from user_shop_behavior_kv_temp a left semi join train_user_shop_behavior b on a.row_id=b.row_id; insert overwrite table evaluation_public_kv partition(mall_id) select row_id,kv,mall_id from user_shop_beh...
<filename>sql/Creditcardaccount.sql<gh_stars>0 CREATE TABLE Creditcardaccount( CreditcardaccountID INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,CreditcardaccountNAME VARCHAR(30) NOT NULL,CreditcardaccountADDRESS VARCHAR(30) NOT NULL,CreditcardaccountCITY VARCHAR(30) NOT NULL,CreditcardaccountSTATE VARCHAR(30) NOT NULL,C...
CREATE TABLE "MEDIA_CHECK" ( "PATH" VARCHAR2(4000 CHAR), "IN_MEDIA_URI" NUMBER, "IN_PREVIEW_URI" NUMBER, "LAST_CHECK" TIMESTAMP (6) )
<filename>backend/src/data-sources/sequelize-mysql/migrations/1.0.0/6_create_song_requests_table.sql CREATE TABLE song_requests ( id char(36) NOT NULL PRIMARY KEY, createdAt datetime NOT NULL, updatedAt datetime NOT NULL, roomId char(36) NOT NULL, roomUserId char(36) NOT NULL, songId char(36) NOT NULL, CO...
DROP TABLE IF EXISTS card_holder CASCADE; DROP TABLE IF EXISTS credit_card CASCADE; DROP TABLE IF EXISTS merchant_category CASCADE; DROP TABLE IF EXISTS merchant CASCADE; DROP TABLE IF EXISTS transactions CASCADE; CREATE TABLE card_holder ( card_holder_id INT PRIMARY KEY , card_holder VARCHAR(50) ); CREATE TABLE ...
<reponame>Ecotrust/cogs-priorities<filename>deploy/templates/fix_perms.sql<gh_stars>0 GRANT ALL ON spatial_ref_sys TO {{ dbname }}; GRANT ALL ON geometry_columns TO {{ dbname }}; ALTER FUNCTION cleanGeometry(geometry) OWNER TO {{ dbname }};
<reponame>valiant87/Eat-Da-Burger<filename>db/schema.sql<gh_stars>0 DROP DATABASE IF EXISTS burgers_DB; CREATE DATABASE burgers_DB; USE burgers_DB; CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR (50) NOT NULL, devoured BOOLEAN default 0, PRIMARY KEY (id) );
START TRANSACTION; SET FOREIGN_KEY_CHECKS = 0; DELETE FROM cfg_app WHERE uuid = 'bfacf76d-2ff2-42c2-854c-bb5b10d78c92'; INSERT INTO cfg_app(uuid, nome, obs, inserted, updated, estabelecimento_id, user_inserted_id, user_updated_id) VALUES ('bfacf76d-2ff2-42c2-854c-bb5b10d78c92', 'crosierapp-pcp',...
select node.* from ( select stack_link.stack_id from (SELECT stack_id, group_concat(value SEPARATOR '') as v FROM stack_text group by `stack_id`) as d inner join stack on stack.id=d.stack_id inner join stack_link on stack_link.node_id=stack.node_id where d.v like '%{searchtext}%') as d1 inner join stack on stack.id=d...
<filename>XTool/data/cyclops.facets.session.sql  SELECT a.FacetGroup, a.FacetKey, a.FacetVAlue,a.FacetGroup,a.InstanceCount FROM ( SELECT DISTINCT TOP (100) PERCENT CONVERT(nvarchar(36),[BasicToken]) as [FacetValue], 'BasicToken' AS [FacetKey],'Session' AS [FacetGroup], count([<schema>].[Session].[Id]) as [Insta...
<filename>database/attendance-fun.sql -- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 26, 2021 at 07:31 AM -- Server version: 8.0.26-0ubuntu0.20.04.2 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRA...
<filename>notebooks/data_processing/outputs/select_metadata_ages.sql with i as ( select d.response_id, (e.value->'protocol')::text as ident from identities d, jsonb_array_elements(d.identity::jsonb) e where d.identity is not null and (e.value->>'protocol' = 'ISO' or e.value->>'protocol' = 'FGDC') ) select trim(...
<reponame>JohnShandy/swganh<filename>data/sql/galaxy/scripts/skills_required_skills.sql /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_A...
<reponame>GliderWinchItems/embed -- PAYLOAD_TYPE Name of payload arrangement versus code number for calling a routine -- CANID.CAN_MSG_FMT specifies the PAYLOAD_TYPE_NAME from the following list, and -- provides a code that can be used to call a routine to parse the payload. -- -- PAYLOAD_TYPE_NAME varchar(24) PRI...
<reponame>getwasim/egov-smartcity-suites-test<gh_stars>1-10 update eg_installment_master set installment_num='201704' where id_module=(select id from eg_module where name='Trade License') and installment_year='2017-04-01';
CREATE DATABASE [{0}]
DROP TABLE IF EXISTS user; DROP TABLE IF EXISTS record; CREATE TABLE user ( username TEXT PRIMARY KEY, phone_number TEXT NOT NULL, residence TEXT NOT NULL ); CREATE TABLE record ( id INTEGER PRIMARY KEY AUTOINCREMENT, username INTEGER NOT NULL, create_time INTEGER NOT NULL, FOREIG...
<reponame>pradeepkumarcm-egov/DIGIT-Dev<filename>business-services/egf-master/src/main/resources/db/migration/main/V20170227185641__egf_Supplier_ddl.sql Create table egf_supplier( id bigint, code varchar(50) NOT NULL, name varchar(50) NOT NULL, address varchar(300), mobile varchar(10), email varchar(25), descr...
<gh_stars>1-10 SELECT count(*) FILTER (where key='type' AND value='1') AS individual , count(*) FILTER (where key='type' AND value='2') AS organization , count(*) FILTER (where key='type' AND value='3') AS network FROM nftproperties;
<gh_stars>1-10 -- ..docs/snippets/getting_started/sample_table.sql create or replace table sample_table ( col1 number(18,0), col2 number(18,0) ); insert into sample_table with sample_data as ( select uniform(1, 10, random(1)) as rand_int from table(generator(rowcount => 3)) v ) select ro...
<reponame>j-sieben/PIT<filename>PIT/tools/check_installation.sql declare l_has_invalid_items pls_integer; begin dbms_output.put_line('&s1.Recompiling schema &INSTALL_USER.'); dbms_utility.compile_schema(schema => '&INSTALL_USER.'); for i in 1 .. 3 loop select count(*) into l_has_invalid...
drop table if exists agile_quartz_job; drop table if exists agile_quartz_job_logger; /*==============================================================*/ /* table: agile_quartz_job 定时任务表 */ /*==============================================================*/ create table agile_quartz_job ( id ...
<reponame>thylacine/websub-hub<filename>src/db/postgres/sql/topic-attempts-increment.sql -- UPDATE topic SET content_fetch_attempts_since_success = content_fetch_attempts_since_success + 1, content_fetch_next_attempt = now() + ($(nextAttemptDelaySeconds) * INTERVAL '1 second') WHERE id = $(topicId)
<filename>sqlitecaching/test/resources/mappings/delete_statement_aA__to__.sql -- sqlitecaching delete table DROP TABLE "aa";
<gh_stars>0 create or replace package body test_extended_coverage is function get_block_coverage_line return clob is begin return case when ut3_tester_helper.coverage_helper.block_coverage_available then '%<lineToCover lineNumber="4" covered="true" branchesToCover="3" coveredBranches="2...
<reponame>FlorinskiyDI/survey<gh_stars>0 CREATE TABLE [dbo].[Question_Options] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT (NEWSEQUENTIALID()), [QuestionId] UNIQUEIDENTIFIER NOT NULL, [OptionChoiseId] UNIQUEIDENTIFIER NOT NULL, CONSTRAINT [FK_Question_Options_Questions] FOREIGN KEY ([QuestionId]) R...
<reponame>asokol123/ClickHouse -- Tags: no-parallel, no-fasttest, no-s3-storage -- { echo } SET enable_filesystem_cache_on_write_operations=0; DROP TABLE IF EXISTS test; CREATE TABLE test (key UInt32, value String) Engine=MergeTree() ORDER BY key SETTINGS storage_policy='s3_cache', min_bytes_for_wide_part = 10485760...
select count(*) from nulls1 where bool_0 = 0 44
<gh_stars>0 -- Fix for https://itrack.web.att.com/browse/AJSCCMDA-90 -- use camundabpmn; /* uncomment below statement and run for your db, e.g. : use camundabpmn; */ -- use <db_name>; /* Drop a archive tables */ /*-- TMP_ARCHIVING_PROCINST */ DROP TABLE IF EXISTS TMP_ARCHIVING_PROCINST; /*-- TMP_ARCHIVING_BYTEARRA...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore DROP TABLE IF EXISTS reindex_crtab_ao_gist; CREATE TABLE reindex_crtab_ao_gist (id INTEGER, box1 BOX) WITH (appendonly=true); insert into reindex_crtab_ao_gist (id, box1) VALUES (300, '( (1, 1), (2, 2) )'); insert into reindex_crtab_ao_...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50527 Source Host : localhost Source Database : f2e Target Server Type : MySQL Target Server Version : 50527 File Encoding : utf-8 Date: 01/02/2013 18:26:36 PM...
<reponame>mhconradt/analytics-toolbox-core<filename>modules/processing/bigquery/sql/ST_VORONOIPOLYGONS.sql ---------------------------- -- Copyright (C) 2021 CARTO ---------------------------- CREATE OR REPLACE FUNCTION `@@BQ_PREFIX@@carto.ST_VORONOIPOLYGONS` (points ARRAY<GEOGRAPHY>, bbox ARRAY<FLOAT64>) RETURNS ARRA...
<reponame>xoriole/EncryptedSearchNodeJs -- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 13, 2015 at 06:32 -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:3306 -- Généré le : mer. 09 fév. 2022 à 08:34 -- Version du serveur : 8.0.28-0ubuntu0.20.04.3 -- Version de PHP : 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
<reponame>ITchon/imschontech<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 22, 2021 at 06:33 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"...
<reponame>edigonzales/oereb-gretljobs DELETE FROM ${dbSchema}.so_g_v_0180822nachfuehrngskrise_gemeinde; DELETE FROM ${dbSchema}.so_g_v_0180822grundbuchkreise_grundbuchkreis;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 22, 2016 at 09:27 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
-- 班级维度 SELECT dt, course_name, study_level, grade_level FROM class_status_grade_study_daily WHERE college_name = #{college_name} AND grade_name = #{grade_name} AND class_name = #{class_name} AND course_name = #{course_name} AND dt &gt;= #{dt} AND dt &lt;= date_add( #{dt}, INTERVAL 60 DAY ) -- 学生维度 S...
<gh_stars>0 /* sql query for creating the table which we are using in seed project */ CREATE TABLE "users" ( id bigint NOT NULL DEFAULT id_generator(), name character varying(100) COLLATE pg_catalog."default", email character varying(200) COLLATE pg_catalog."default", password character varying(100...
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `economicgame2` -- -- -------------------------------------------------------- -- -- Table structure for table `datas` -- DROP TABLE IF EXISTS `datas`; CREATE TABLE IF NOT EXISTS `datas` ( `id` int(11) NOT NULL AUTO_INCREMENT, `subject_id` varchar(255) NOT N...
CREATE TABLE Countries ( Id INT PRIMARY KEY IDENTITY ,[Name] NVARCHAR(50) UNIQUE ) CREATE TABLE Customers ( Id INT PRIMARY KEY IDENTITY ,FirstName NVARCHAR(25) ,LastName NVARCHAR(25) ,Gender CHAR(1) CHECK(Gender = 'M' OR Gender = 'F') ,Age INT ,PhoneNumber VARCHAR(10) CHECK(LEN(PhoneNumber) = 10...
CREATE OR REPLACE TEMPORARY VIEW something AS SELECT A.a, B.c FROM foobar A LEFT JOIN {table_id1} B ON A.a = B.a
<reponame>PC-Axis/PxStat -- drop Jobs and dependencies -- drop StoredProcedures and dependencies -- drop Views and dependencies -- drop Types and dependencies -- alter database structure -- [ENHANCEMENT] Remove dependency flag #227 ALTER TABLE [dbo].[TD_RELEASE] DROP CONSTRAINT [DF_TD_RELEASE_RLS_DEPENDENCY_FLAG...
<filename>src/test/resources/where4.test_14.sql -- where4.test -- -- execsql { -- SELECT rowid FROM t4 WHERE x IN (1,9,NULL,2) AND y IN (1,3,2) AND z!=13; -- } SELECT rowid FROM t4 WHERE x IN (1,9,NULL,2) AND y IN (1,3,2) AND z!=13;
-- file:plpgsql.sql ln:214 expect:false ps alias for new
<gh_stars>1000+  CREATE FUNCTION Website.CalculateCustomerPrice ( @CustomerID int, @StockItemID int, @PricingDate date ) RETURNS decimal(18,2) WITH EXECUTE AS OWNER AS BEGIN DECLARE @CalculatedPrice decimal(18,2); DECLARE @UnitPrice decimal(18,2); DECLARE @LowestUnitPrice decimal(18,2); DEC...
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5486280_sys_gh3537-app_cleanup_legacy_production_stuff.sql -- remove Production window DELETE FROM AD_Menu WHERE ad_window_id=191; -- 2018-02-21T15:25:53.332 -- I forgot to set the DICTIONARY_ID_COMMENTS Syst...
<gh_stars>10-100 CREATE TABLE "user" ( id SERIAL PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, email VARCHAR(255) UNIQUE NOT NULL, password_hash TEXT NOT NULL ); CREATE TABLE book ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, year_published INTEGER NOT NULL );
DROP TABLE tblCustomers; CREATE TABLE tblCustomers ( CustKey SERIAL UNIQUE PRIMARY KEY, CustID text NOT NULL DEFAULT '', CustType integer DEFAULT 0, SSN text NOT NULL DEFAULT '', NameFirst text NOT NULL DEFAULT '', NameMiddle text NOT NULL DEFAULT '', ...
<filename>v1/populate_t_salesrep.sql --populate data script insert into t_salesrep values(1,'Rep1',10000); insert into t_salesrep values(2,'Rep2',11000); insert into t_salesrep values(3,'Rep3',12000); insert into t_salesrep values(4,'Rep4',13000); insert into t_salesrep values(5,'Rep5',14000); commit;
<filename>sqlqueries/11.sql<gh_stars>1-10 --All the cities in a district organised by largest population to smallest SELECT city.name, country.name, city.district, city.population FROM city JOIN country ON city.countrycode=country.code WHERE district = 'Bretagne' ORDER BY population DESC ;
ALTER TYPE provide_type ADD VALUE 'ESTIMATOR';
SELECT uniq(a) FROM (SELECT 1 AS a) UNION ALL SELECT uniq(b) FROM (SELECT 1 AS b);
<filename>storage/database/countries/sm.sql -- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: Quickadclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @O...
<gh_stars>0 -- a database must exist before starting migration: -- $ sudo su - postgres -- ($ dropdb 'wms_db') -- $ psql -c "CREATE USER wms PASSWORD '<PASSWORD>';" -- $ createdb wms_db -O wms -- Sequence table for database independent sequences and to cope with non-JPA manual inserts. -- Used in entities like this: -...
with recursive Fib(p, n, x) as (select 0, 1, 0 union all select n, p + n, x + 1 from Fib where x < 10) select max(p) from Fib;
<filename>Insertion.sql<gh_stars>0 --İsimler Visual Studio Code eklentisi Faker ile rastgele olarak oluşturuldu. USE BoardGameArchive INSERT INTO tblYayimci VALUES ('<NAME>', 'mail1', '2012-06-18 10:34:09', 'website1') INSERT INTO tblYayimci VALUES ('<NAME>', 'MAİL2', '2012-06-18 10:34:09', 'website2') IN...
<reponame>mfd7/dss -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 07, 2021 at 06:58 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.4.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
CREATE DATABASE IF NOT EXISTS db_forum CHARACTER SET UTF8; USE db_forum; #用户信息表 CREATE TABLE IF NOT EXISTS t_user( user_id INT(10) NOT NULL AUTO_INCREMENT COMMENT '用户id', user_name VARCHAR(30) NOT NULL UNIQUE COMMENT '用户名', password VARCHAR(30) NOT NULL DEFAULT '' COMMENT '密码', user_email VARCHAR(30) NOT NULL UNIQUE C...
<reponame>bkolonay/zignet SELECT SuiteID, ApplicationName AS App, ApplicationNameAbbreviation AS AppAbbr, SuiteName, EnvironmentNameAbbreviation AS EnvAbbr, EnvironmentName As Env FROM Suites INNER JOIN Applications ON Suites.ApplicationId = Applications.ApplicationID INNER JOIN Environments ON Suites.EnvironmentId =...
-- https://www.hackerrank.com/challenges/revising-the-select-query-2/problem SELECT NAME FROM CITY WHERE POPULATION > 120000 AND COUNTRYCODE = 'USA';
<reponame>ramyavaidy/company-cab<filename>src/main/resources/data.sql insert into droppoint values('target_headquarter'); insert into droppoint values('pointA'); insert into droppoint values('pointB'); insert into droppoint_distance values(1,'pointA','target_headquarter'); insert into droppoint_distance values(2,'point...
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 27 Kwi 2018, 08:54 -- Wersja serwera: 10.1.30-MariaDB -- Wersja PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
USE [master] GO --CREATE TRIGGER [audit_login_events] ON ALL SERVER --FOR LOGON --AS SET XACT_ABORT OFF BEGIN -- Declare Variables declare @app_name sysname = 'dbatools-test'; declare @login_name sysname = SUSER_NAME(); declare @host_name sysname = host_name(); declare @data xml; declare @ispooled bit; decl...
<filename>database_backup.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 12.3 -- Dumped by pg_dump version 12.3 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_...
<filename>SQL_KILLNONAVSESSION.sql<gh_stars>1-10 USE [master] GO /****** Object: StoredProcedure [dbo].[SP_SQL_KillNoNavSession] Script Date: 18/04/2018 15.53.50 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <NAME> -- Create date...