sql
stringlengths
6
1.05M
<reponame>Shakil-Mehrab/realestateweb -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 13, 2019 at 07:53 PM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_z...
update eg_appconfig_values set version=0 where key_id = (select id from eg_appconfig where key_name ='AUTOGENERATE_OWNERSHIP_NUMBER');
<filename>init/table_lexicalEntryComponent.sql DROP TABLE IF EXISTS lexicalEntryComponent; CREATE TABLE lexicalEntryComponent ( lexicalEntryID INT UNSIGNED NOT NULL, componentID INT UNSIGNED NOT NULL, position TINYINT UNSIGNED NOT NULL ); ALTER TABLE lexicalEntryComponent ADD INDEX i_lexicalEntryComponent_lexicalEntr...
--for color CREATE TABLE Colors( ColorId int PRIMARY KEY IDENTITY(1,1), ColorName nvarchar(25), ) --for brands CREATE TABLE Brands( BrandId int PRIMARY KEY IDENTITY(1,1), BrandName nvarchar(25), ) --for cars CREATE TABLE Cars( CarId int PRIMARY KEY IDENTITY(1,1), BrandId int, ColorId int, ModelYear nvarchar(...
create table address_cord( id serial primary key, cord_ref text not null unique references cords(reference_number) on delete restrict, address_id int not null references addresses(id) on delete restrict, unique (cord_ref, address_id) ); create index on address_cord (cord_ref); -- populate mapping table with d...
CREATE SCHEMA IF NOT EXISTS ovm1; DROP TABLE ovm1.user_address_daily_transactions; CREATE TABLE IF NOT EXISTS ovm1.user_address_daily_transactions ( day timestamptz, from_address bytea, to_address bytea, method_id bytea, num_transactions numeric, PRIMARY KEY(day, from_address, to_address, method_id) ); CREATE...
<reponame>Shuttl-Tech/antlr_psql -- file:macaddr8.sql ln:71 expect:true SELECT b::macaddr >= '08:00:2b:01:02:04' FROM macaddr8_data WHERE a = 1
-- file:arrays.sql ln:513 expect:true select array_fill(null::text, array[3,3])
--This is the core table. From each order you might find all other information. DROP TABLE IF EXISTS ec_data.order CASCADE; CREATE TABLE ec_data.order ( order_id TEXT, --unique identifier of the order. customer_id TEXT, --key to the ...
<filename>datawarehouse/cloop_olap.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.4.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Nov 10, 2015 at 01:45 AM -- Server version: 5.5.42 -- PHP Version: 5.6.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4010...
CREATE TABLE `users` ( `username` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, `fName` varchar(45) NOT NULL, `lName` varchar(45) NOT NULL, PRIMARY KEY (`username`), UNIQUE KEY `username_UNIQUE` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT=' ';
<reponame>wreathvine/it-automation UPDATE F_DIR_MASTER SET NOTE='Do not update since it is initial data' WHERE DIR_ID=1;
<filename>dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql DROP TABLE IF EXISTS test.index; CREATE TABLE test.index ( key Int32, name String, merge_date Date ) ENGINE = MergeTree(merge_date, key, 8192); insert into test.index values (1,'1','2016-07-07'); insert into test.index values (-1...
-- 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. USE [generate] GO /****** Object: StoredProcedur...
<filename>modules/bq-log-alerting/use-cases/disable_vpc_flow_logs.sql # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICEN...
<reponame>orekyuu/doma insert into Emp (id) values(/* dto.id */1)
<gh_stars>1-10 DROP VIEW IF EXISTS view_beban_barang3_awayan; CREATE VIEW view_beban_barang3_awayan AS SELECT *, CASE WHEN id_jenis_transaksi = 1 AND pra_saldo < 0 THEN jumlah WHEN id_jenis_transaksi = 1 AND pra_saldo < jumlah THEN (jumlah - pra_saldo) ELSE 0 END AS beban FROM view_persediaan_barang2_aw...
ALTER TABLE jforum_topics MODIFY (topic_views DEFAULT 0); -- -- Table structure for table 'jforum_mail_integration' -- CREATE TABLE jforum_mail_integration ( forum_id NUMBER(10) NOT NULL, forum_email VARCHAR2(100) NOT NULL, pop_username VARCHAR2(100) NOT NULL, pop_password VARCHAR2(100) NOT NULL, pop_host VARCHAR...
-- @ calculating samplewise protein quantification ... -- @ : calculating average protein abundances ... DROP TABLE IF EXISTS sample_quant; CREATE TEMPORARY TABLE sample_quant SELECT entry, sample_index as sample, ROUND(AVG(`top3_avg_inten`)) as inten FROM `finalquant` GROUP BY entry, `sample_index` ORDER B...
<filename>drink.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 08, 2018 at 06:00 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.1.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<filename>db/db.sql -- auto-generated definition use lxg_test; DROP TABLE IF EXISTS user; create table user ( id int auto_increment primary key, name varchar(50) null, age int null ); use lxg_test1; DROP TABLE IF EXISTS user; create table user ( id int auto_increment primary key, name var...
<gh_stars>0 GRANT REPLICATION SLAVE ON *.* TO 'repl'@'%' IDENTIFIED BY 'repl'; GRANT ALL ON *.* TO 'power'@'%' IDENTIFIED BY 'power'; ALTER USER `power`@`%` REQUIRE SSL; flush privileges;
<filename>models/db/_database.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 03, 2018 at 11:39 AM -- Server version: 5.7.19 -- PHP Version: 5.6.31 -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- SET AUTOCOMMIT = 0; -- START TRANSAC...
CREATE SEQUENCE seq_MemberId INCREMENT BY 1 START WITH 1 NOMAXVALUE CACHE 4; CREATE TABLE TABLE_1 ( MemberId INT PRIMARY KEY, Name NVARCHAR2(100), Address NVARCHAR2(100), Mesto NVARCHAR2(100), Sex VARCHAR(1) CHECK (Sex IN ('M','W')), BirthDate DATE ); CREATE TABLE TABLE_2 ( MemberId INT NOT NULL, "Date" ...
INSERT INTO `db_manager_v4`.`work_order_status_code`(`id`, `status_code`, `status_name`, `status_belong_table`) VALUES (1, 1, '待提交', 'work_order_task'); INSERT INTO `db_manager_v4`.`work_order_status_code`(`id`, `status_code`, `status_name`, `status_belong_table`) VALUES (2, 2, '审核中', 'work_order_task'); INSERT INTO `d...
drop table tags; create table tags as select jsonb_array_elements_text(tags)::text as unique_tag, count(jsonb_array_elements_text(tags)::text) as count, host as namespace from package group by unique_tag, host order by count desc; alter table tags add column id text; update tags set id=(namespace||':'||un...
<filename>kmserver-core/migrations/20191216200728.undo.dropStatsFavoritesIndex.sql CREATE UNIQUE INDEX idx_favorite_iid_kid ON stats_favorites(fk_iid, fk_kid);
<filename>queries/scraper.sql -- :name get_scraper_by_name :one SELECT scraper_id, scraper_name, data FROM scraper WHERE scraper_name = :scraper_name
<filename>backend/sql/project-fe2.sql<gh_stars>1-10 -- Created by LAV -- Date Created 19/05/2021 -- DB recipes food -- set up: Create database name is `recipes_food` CREATE TABLE account ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) not null, email VARCHAR(100) not null UNIQUE, password VARCHAR(100) not...
<gh_stars>1-10 USE [VipunenTK_lisatiedot] GO IF NOT EXISTS ( SELECT * FROM [dbo].[Vipunen_aineisto_kuutio] WHERE [aineisto_avain] IN (N'TK_R4_5', N'TK_R4_6a', N'TK_R4_6b') ) BEGIN INSERT [dbo].[Vipunen_aineisto_kuutio] ([aineisto_avain], [kuutio_avain]) VALUES (N'TK_R4_5', N'TVT_T_TAB'); INSERT [dbo].[Vipunen_...
<gh_stars>1-10 alter table attachments alter column caption drop not null;
<filename>src/plsql/engine-app/flow_p0005_api.pkb<gh_stars>1-10 create or replace package body flow_p0005_api as function get_file_name ( p_dgrm_id in number , p_include_version in varchar2 , p_include_status in varchar2 , p_include_category in varchar2 , p_include_last_change_date in varchar2 , p_do...
-- file:rowtypes.sql ln:99 expect:true select ROW(1,2) = ROW(1,2::int8)
-- file:rolenames.sql ln:220 expect:true CREATE TABLE testtab2 (a int)
<gh_stars>1-10 CREATE OR REPLACE FUNCTION create_custom_fields() RETURNS TRIGGER LANGUAGE PLPGSQL AS $$ DECLARE arow record; _id uuid; BEGIN IF new.type = 'card' THEN FOR arow IN (SELECT c.id as id from cards c left join pipelines p on c.pi...
-- Run against master database SELECT db.name [Database] , ds.edition [Edition] , ds.service_objective [Service Objective] FROM sys.database_service_objectives AS ds JOIN sys.databases AS db ON ds.database_id = db.database_id ;
-- tag::master-data-dataset[] select name as name, id as department_id from JMXRPR_LIBRARY_DEPARTMENT where id in (${selected_departments}) -- end::master-data-dataset[] -- tag::bi-dataset[] select bi.library_department_id as bi_master_data@department_id, month(bi.created_date) as bi_dynamic_header@header_id, ...
INSERT INTO department (name) VALUES ("Marketing"), ("Finance"), ("Sales"), ("Technology"); INSERT INTO role (title, salary, department_id) VALUES ("Coordinator", 100000, 1), ("Consultant", 120000, 1), ("Analyst", 90000, 2), ("Auditor", 100000, 2), ("Account Executive", 150000, 3), ("Sales Representative", 110000, 3...
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50522 Source Host : localhost:3306 Source Database : crawl Target Server Type : MYSQL Target Server Version : 50522 File Encoding : 65001 Date: 2014-12-22 18:19:44 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
<filename>release-raccoon-app/src/main/resources/db/migration/V0_0_1__add_artist_lastfmUri.sql alter table Artist add lastfmUri varchar(255) null;
<filename>posda/posdatools/queries/sql/ByDistinguishedDigest.sql -- Name: ByDistinguishedDigest -- Schema: posda_files -- Columns: ['collection', 'site', 'subject', 'series_instance_uid', 'num_sops'] -- Args: ['pixel_digest'] -- Tags: ['duplicates', 'distinguished_digest'] -- Description: Return a count of duplicate SO...
<gh_stars>100-1000 ALTER TABLE pipeline.tool ADD allow_sensitive BOOLEAN DEFAULT FALSE NOT NULL;
<filename>src/main/resources/database/postgresql/alter_11_4_x_to_11_5_0.sql alter table o_qti_assessmentitem_session add column q_coach_comment text; alter table o_as_entry add column a_num_assessment_docs int8 not null default 0;
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE TABLE [dbo].[table1]( [c1] [int] NOT NULL, [c2] [int] NOT NULL, [c3] [varchar](100) NOT NULL) GO ALTER TABLE [dbo].[table1] ADD CONSTRAINT [PK_table1] PRIMARY KEY CLUSTERED ([c1]) WITH (DATA_COMPRESSION = PAGE) ON [PRIMARY] GO ALTER TABLE [dbo]...
drop table if exists users; create table users ( username string not null, password_hash string not null ); drop table if exists topic; create table topic ( topic_id integer primary key autoincrement, subject string not null ); drop table if exists reply; create table reply ( topic_id integer not ...
CREATE VIEW "DH_INPUT"."com_sap_appint_s4_customerReturnsCount" ( "UID", "BusinessPartner", "Date", "Count" ) AS SELECT bupa."UID", cr."SoldToParty" AS "BusinessPartner", TO_DATE(cr."CustomerReturnDate") AS "Date", COUNT(cr."CustomerReturn") AS "Count" FROM "DH_INPUT"."com_sap_appint_s4_customerReturns" A...
# Every single question CREATE table emtm_questions ( mid INTEGER NOT NULL, # The place of the question in the questionnaire ordering INTEGER NOT NULL, description VARCHAR(400) NOT NULL, choices VARBINARY(500) NOT NULL , INDEX (mid), PRIMARY KEY (mid, ordering) ) CHARACTER...
<gh_stars>0 -- CreateEnum CREATE TYPE "OrderStatus" AS ENUM ('NEW', 'PROCESSING', 'COMPLETED', 'CANCELLED'); -- AlterTable ALTER TABLE "Order" ADD COLUMN "status" "OrderStatus" NOT NULL DEFAULT E'NEW';
USE [MedicalStore] GO /****** Object: Table [dbo].[Bill] Script Date: 11-05-2020 16:40:36 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[Bill]( [CustomerID] [varchar](20) NULL, [InputPrice] [float] NOT NULL, [ReturnPrice] [float] NOT NULL ) ON [PRIMARY] GO /****...
<reponame>jspilinek/oracleperf<gh_stars>0 SELECT MAX(undoblks/((end_time-begin_time)*3600*24)) as "Undo Blocks per Second" FROM v$undostat;
<gh_stars>0 CREATE MEMORY TABLE "PUBLIC"."PATIENT"( "ID" INTEGER DEFAULT NEXT VALUE FOR "PUBLIC"."SYSTEM_SEQUENCE_8941E609_75B7_4C43_BDB1_CB9D16097AD1" NOT NULL NULL_TO_DEFAULT SEQUENCE "PUBLIC"."SYSTEM_SEQUENCE_8941E609_75B7_4C43_BDB1_CB9D16097AD1", "NAME" VARCHAR(255), "GENDER" VARCHAR(255), "BIRTH" V...
/** * Author: piotr * Created: Jun 30, 2017 */ CREATE TABLE IF NOT EXISTS user ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, email VARCHAR(255) UNIQUE, hashed_password VARCHAR(255) );
CREATE PROCEDURE get_stats AS SELECT SUM(SmallBiz) as 'TotalSmallBiz', SUM(NonProfit) as 'TotalNonProfit', COUNT(*) as 'TotalPledges' FROM dbo.Pledge GO;
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-05-2018 a las 04:14:56 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<filename>SistemaUniversidad.BackEnd.BD/Functions/FN_Docentes_SeleccionarPorId.sql CREATE FUNCTION FN_Docentes_SeleccionarPorId( @Identificacion VARCHAR(20) ) RETURNS TABLE AS RETURN SELECT * FROM VW_Docentes_SeleccionarTodos AS Docentes WHERE Docentes.Identificacion = @Identificacion
UPDATE t_usuarios a SET a.prueba = 'S' WHERE a.id_usuario IN (1, 4, 5, 131);
<filename>Foundation Server/Foundation.Server/Foundation.sql DROP TABLE [dbo].[__MigrationHistory] DROP TABLE [dbo].[GameScores] DROP TABLE [dbo].[StorageObjects] DROP TABLE [dbo].[UserFacebookClaims] DROP TABLE [dbo].[UserAccounts] GO /* EF Stuff */ CREATE TABLE [dbo].[__MigrationHistory] ( [MigrationId]...
<reponame>jichang/sso<gh_stars>1-10 DROP TABLE sso.users;
SELECT IF( true, COALESCE( ( SELECT `table`.`x` FROM `table` LIMIT 1 ), 89 ), 999 ) AS `__aliased--value`
<reponame>houseofcat/Authentication USE [Identity] GO DROP PROCEDURE IF EXISTS [Identity].[UserIdentity_Delete] GO CREATE PROCEDURE [Identity].[UserIdentity_Delete] ( @UserId BIGINT ) AS BEGIN SET NOCOUNT ON; SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; DELETE FROM [Identity].[UserIdentities] ...
#匹配产品档案,得产品的人份数,目的是得到产品的人份单价,同时清洗产品编码 DROP TABLE if EXISTS shujuzu.contract_price0; CREATE TEMPORARY TABLE shujuzu.contract_price0 as SELECT a.bi_ccuscode ,a.bi_ccusname ,a.finnal_ccuscode ,a.finnal_ccusname ,b.bi_cinvcode as cinvcode ,b.bi_cinvname as cinvname ,a.new_cdefine12 a...
/* GO */ select * from test1; GO GO select * from test2; go 3 /* */ go 4
-- MySQL dump 10.13 Distrib 5.6.44, for Linux (x86_64) -- -- Host: loacalhost Database: www_cs_com -- ------------------------------------------------------ -- Server version 5.6.44-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS...
-- BP 6.1D content: domain syschar: 3 INSERT INTO S_DOM VALUES (24033248, 'interop_otherdom', 'This domain is a helper domain for domains needing to wire bridges to functions.', 0, 1); INSERT INTO S_CDT VALUES (524289, 0); INSERT INTO S_DT VALUES (524289, 24033248, 'void', ''); INSERT INTO S_CDT VALUES (52...
SELECT Phone, First_Name, Last_Name FROM CUSTOMERS, to_tsquery(?) AS q WHERE make_tsvector_cus(Phone, First_Name, Last_Name, Street, City) @@ !!q ORDER BY ts_rank(make_tsvector_cus(Phone, First_Name, Last_Name, Street, City), !!q)
<filename>Documentation/Database/Oracle/Changes/028 Exam solver parameters update.sql /* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licen...
set grammar to oracle; select to_number(89.987,'99.999') from dual; select to_number(89.987,'99.9999') from dual; select to_number(89.987,'99.000') from dual; select to_number(889.987,'099.000') from dual; select to_number(889.987,'000.000') from dual; select to_number(-889.987,'000.000') from dual; select to_number(-8...
create table child (id bigserial not null, date_created timestamp, last_updated timestamp, age int4 not null, first_name varchar(255) not null, last_name varchar(255) not null, parent_id BIGINT not null, primary key (id)); create table grand_parent (id bigserial not null, date_created timestamp, last_updated timestam...
<gh_stars>0 USE employee_tracker; INSERT INTO departments (departments_name) VALUES ("Engineering"), ("Sales"), ("Finance"), ("Management"), ("Legal"); INSERT INTO roles (title, salary, departments_id) VALUES ("Engineer", 80000, 1), ("Senior Engineer", 120000, 1), ("President", 220000, 4), ...
<reponame>geophile/sql-layer SELECT name FROM customers WHERE cid IN (2,1+1,1*2)
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Generation Time: Jan 05, 2020 at 11:22 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
create table if not exists `sequences` { `seq_id` bigint(20) NOT NULL COMMENT '全局序列号', `created_at` bigint(20) NOT NULL, `order_id` bigint(20) NOT NULL COMMENT '订单id', -- `prev_seq_id` bigint(20) NOT NULL, `symbol` varchar(32) NOT NULL COMMENT '交易对', PRIMARY KEY (`seq_id`), KEY `idx_order_id` (`order_id`)...
<gh_stars>0 create table jogo( id int primary key auto_increment, nome varchar(500) not null, imagemDir text, preco numeric(5,2) not null, lancamento date not null , classind enum ('l','10','12','14','16','18') not null, windows boolean default true, linux boolean default false, mac ...
CREATE TABLE `active_jobs` ( `job_id` int(10) unsigned NOT NULL, PRIMARY KEY (`job_id`) ); CREATE TABLE `canceled_jobs` ( `job_id` int(10) unsigned NOT NULL, PRIMARY KEY (`job_id`) ); CREATE TABLE `deleted_jobs` ( `job_id` int(10) unsigned NOT NULL, PRIMARY KEY (`job_id`) ); CREATE TABLE `jobs` ( `id`...
-- WYZWALACZE /* CREATE TRIGGER nowy_id_powiat BEFORE INSERT ON powiaty FOR EACH ROW EXECUTE PROCEDURE fun_new_id(); CREATE TRIGGER nowy_id_miej BEFORE INSERT ON miejscowosci FOR EACH ROW EXECUTE PROCEDURE fun_new_id(); CREATE TRIGGER nowy_id_wojewodz BEFORE INSERT ON wojewodztwa FOR EACH ROW ...
DECLARE undo handler for sqlexception begin select 1; end;
<reponame>askmohanty/metasfresh /* * #%L * metasfresh-material-cockpit * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the ...
select string_7 from nulls2 where string_7 glob '*0' 0 20 30 40 50 60 70 80 90
USE [master] GO /****** Object: Database [ageDB] Script Date: 31/03/2019 8:40:40 PM ******/ CREATE DATABASE [ageDB] CONTAINMENT = NONE ON PRIMARY ( NAME = N'ageDB', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\ageDB.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1...
-- POCOR-3518 INSERT INTO `db_patches` (`issue`, `created`) VALUES ('POCOR-3518', NOW()); CREATE TABLE `z_3518_config_items` LIKE `config_items`; INSERT INTO `z_3518_config_items` SELECT * FROM `config_items` WHERE `code` = 'student_prefix' OR `code` = 'staff_prefix' OR `code` = 'guardian_prefix'; DELETE FROM `confi...
/****** Object: StoredProcedure [dbo].[GetProteinCollectionID] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[GetProteinCollectionID] /**************************************************** ** ** Desc: Gets CollectionID for given FileName ** ** ** Parameters: ** ** Au...
<reponame>f0rb/doyto-service-i18n USE i18n; drop table if exists i18n_resource_group; CREATE TABLE i18n_resource_group ( id INT(11) NOT NULL AUTO_INCREMENT, groupName varchar(100) not null, label varchar(100) default '' null, createUserId varchar(100) not null, cre...
<gh_stars>1-10 ALTER TABLE OFFENDER_ATTENDANCE ADD COLUMN CREATE_DATETIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP; ALTER TABLE OFFENDER_ATTENDANCE ADD COLUMN CREATE_USER_ID VARCHAR( 32) NOT NULL DEFAULT 'SYSTEM'; ALTER TABLE OFFENDER_ATTENDANCE ADD COLUMN MODIFY_DATETIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIM...
<filename>src/test/resources/jp/co/tis/gsp/tools/dba/mojo/GenerateEntity_test/another_schema/postgresql/ddl/10_CREATE_INDEX_TEST3.sql<gh_stars>10-100 CREATE TABLE gspanother.INDEX_TEST3 ( INDEX_TEST3_ID BIGINT NOT NULL, SUB_ID_1 BIGINT NOT NULL, SUB_ID_2 BIGINT NOT NULL ); COMMENT ON table gspanother.INDEX_TEST3 ...
<filename>migrations/frontend/1528395915_remove_raw_changeset_spec.down.sql<gh_stars>1000+ BEGIN; -- We don't need to reconstruct the contents of the raw_spec column (and, -- indeed, we can't), so we'll just leave it with empty strings. ALTER TABLE changeset_specs ADD COLUMN IF NOT EXISTS raw_spec TEXT NOT NU...
ALTER TABLE `ta_service_meta` ADD COLUMN `category` varchar(64) NULL COMMENT '分类名称', ADD KEY `idx_service_code` (`service_code`), ADD KEY `idx_category` (`category`);
DROP TABLE IF EXISTS LV_PROPERTY ; CREATE TABLE LV_PROPERTY ( ID SERIAL NOT NULL, PROPERTY_NAME varchar(20) NOT NULL, PROPERTY_VALUE varchar(5000) NOT NULL, PRIMARY KEY (ID) ) ;
<filename>pkg/observer/columns.sql SELECT lower(col.table_name) , lower(col.column_name) , col.ordinal_position , col.is_nullable , upper(col.data_type) FROM information_schema.columns AS col WHERE lower(table_schema) = 'information_schema';
-- [er]create table with nchar and nchar varying data type of default length but insert data with 2 length on nchar data type CREATE CLASS ddl_0001( col1 nchar, col2 nchar varying ); INSERT INTO ddl_0001 VALUES (N'12',N'121'); drop ddl_0001;
<reponame>Eilikce/osm -- Eilikce Online Super Market Project for MySql -- create database eilikce default character set utf8; -- use eilikce; drop table users; drop table user_roles; drop table roles_permissions; drop table ADMIN; drop table RECORD_ORDER; drop table RECORD_ORDER_COMMODITY; drop table ACC...
<reponame>senkukogetsu/waterswak<filename>doc/postgis.sql<gh_stars>0 -- management select * from pg_indexes; DROP INDEX riverpoly_geom_idx; CREATE INDEX riverpoly_geom_idx ON public.riverpoly USING gist (geom) -- 水位測站 select st_no,name_c,ST_AsEWKT(geom) as ewkt from RIVWLSTA_e where tri_name in ('頭前溪','上坪溪','油羅溪')...
<reponame>NobleTyler/Ecommerce-Project -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2018 at 05:31 AM -- 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 ti...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 25, 2020 at 07:28 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>sqls/sec_1_3_b.sql select constituent , data_value , data_time from MIS_WAREHOUSE.SO_FAR_HIGHEST_MONTHLY where metric_name = 'Requirement (MW) ' AND report_month = 'month_name' GROUP BY constituent
delete report_tmp_pdf; Exec PLANIRANJE_MATBILANS_TEST_XLS.MatBilXLS ( &p_tip_id , &p_ciklus_id , &p_period_id , &p_trajanje_id , &p_broj_dok , &p_org_deo_id ...
SELECT u.`id` AS user_id, ug.`group_id`, u.`username`,u.`first_name`, g.`name` FROM ion_users u INNER JOIN ion_users_groups ug ON u.`id`=ug.`user_id` INNER JOIN ion_groups g ON g.`id`=ug.`group_id` WHERE user_id=2
create table FamilleAccueil (id int8 not null, ligneAdresseDeux varchar(255) not null, ligneAdresseUne varchar(255) not null, email varchar(255), fax varchar(255), telephone1 varchar(255), telephone2 varchar(255), nom varchar(255), prenom varchar(255), commune_code varchar(255) not null, primary key (id)); alter table ...
create or replace package pkg_{{toLowerCase table_name}} as gc_scope_prefix constant varchar2(31) := lower($$plsql_unit) || '.'; procedure save_record( {{#each columns}} pi_{{toLowerCase column_name}} in {{toLowerCase data_type}}{{#ifCond nullable '==' 'Y'}} default null {{~/ifCond}}{{#unless @last}},{{li...
DROP TABLE IF EXISTS myCities, temps; CREATE TABLE IF NOT EXISTS temps ( id SERIAL PRIMARY KEY, tempRange VARCHAR(255) ); CREATE TABLE IF NOT EXISTS myCities ( id SERIAL PRIMARY KEY, name VARCHAR(255), latitude VARCHAR(255), longitude VARCHAR(255), temp VARCHAR(255), health VARCHAR(255), property V...
-- This file should undo anything in `up.sql` delete from fileLocations where account = 'HaCoSandbox' and thirdParty = 'Joor';