sql
stringlengths
6
1.05M
create or replace function lsb(bit) returns int AS $$ declare len int; bitStr alias for $1; tmpBit int; BEGIN select length(bitStr) into len; for i in 1..len LOOP select get_bit(bitStr, len - i - 1) into tmpBit; if tmpBit = 1 then return i - 1; end if; end loop; END; $$ language plpgsql
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Mar 2020 pada 14.19 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<filename>tapp.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 09, 2019 at 03:31 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.1.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
-- -------------------------------------------------------- -- Host: localhost -- Versi server: 10.1.32-MariaDB - mariadb.org binary distribution -- OS Server: Win32 -- HeidiSQL Versi: 9.5.0.5196 -- ------------------------------------------------...
-- -- PostgreSQL Database -- Default users -- INSERT INTO endusers (username, password, first_name, last_name, e_mail) VALUES ('admin', 'admin', 'adminF', 'adminL', '<EMAIL>'); INSERT INTO endusers (username, password, first_name, last_name, e_mail) VALUES ('guest', 'guest', 'guestF', 'guestL', '<EMAIL>');
<reponame>Lambda-School-Labs/human-rights-first-asylim-be-b<gh_stars>1-10 SELECT * FROM users WHERE email=$1;
<gh_stars>1-10 /******************************************************************* DECLARE @count INT ,@output INT = 0 ,@fieldName VARCHAR(255) EXEC [dbo].[Driver_List] @companyGuid = 'DD73217B-CD29-4799-A6ED-59DD263EA968' ,@pageSize = 10 ,@search=null ...
<filename>Development/Core/TfsMigrationDBConsolidation/Tfs_Integration/Schema Objects/Stored Procedures/dbo.prc_UpdateChangeGroupStatus.proc.sql CREATE PROCEDURE [dbo].[prc_UpdateChangeGroupStatus] @Id int, @NewStatus int AS UPDATE [dbo].[RUNTIME_CHANGE_GROUPS] SET Status = @NewStatus WHERE Id = @Id SELECT * fr...
<gh_stars>1-10 CREATE TABLE ecritures ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, libelle VARCHAR(255) NOT NULL, montant NUMERIC(10,2) NOT NULL, sens CHAR(1) NOT NULL, date CHAR(8) NOT NULL, categorie_id INTEGER NOT NULL, compte_id INTEGER NOT NULL ); CREATE TABLE categories ( id INTEGER PRIMARY K...
/****** Object: StoredProcedure [GetG07_Country_Child] ******/ IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[GetG07_Country_Child]') AND type in (N'P', N'PC')) DROP PROCEDURE [GetG07_Country_Child] GO CREATE PROCEDURE [GetG07_Country_Child] @Country_ID1 int AS BEGIN ...
<reponame>wqyan/Roommate-Recommender-System -- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: roommatematching -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
<reponame>Shuttl-Tech/antlr_psql -- file:numeric_big.sql ln:439 expect:true INSERT INTO num_exp_sqrt VALUES (1,'291.964716019333021494947753821238960905461614737525349376826064492714634914263808902604580614735501799528494357560837535773816469841426747889103714048646989532842972129124080559131220979335403729022278994440...
<reponame>levterov101/SQL-for-Data-Analytics<gh_stars>100-1000 -- Create the countries table CREATE TABLE countries ( key INT PRIMARY KEY, name text UNIQUE, founding_year INT, capital text );
<gh_stars>1-10 ALTER TABLE `character` ADD KEY `idx_name` (`name`);
alter table lg_log add ( context_level integer , context_type_id integer , context_value_id integer , open_context_log_id integer , open_context_log_time timestamp with time zone , open_context_flag number(1) , context_typ...
CREATE DATABASE test_database; # @Create 6/27/2021 USE test_database; CREATE TABLE IF NOT EXISTS DEPARTMENTS ( department_id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, title VARCHAR(64) NOT NULL UNIQUE, description VARCHAR(255) ); USE test_database; CREATE TABLE IF NOT EXISTS EMPLOYEES ( ...
USE `adserve`; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `two_factor_authentication` tinyint(1) DEFAULT NULL, `two_factor_authentication_se...
-- MySQL dump 10.13 -- -- Host: localhost Database: persist -- ------------------------------------------------------ -- Server version 5.1.22-rc-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_...
<reponame>t-doer/tdoer-core-data<filename>sql/tdoer.table/user/organization_member_role.sql drop table if exists organization_member_role; /*==============================================================*/ /* Table: organization_member_role */ /*============================================...
SELECT _TABLE_SUFFIX AS client, AVG(bytesTotal) / 1024 AS total_kbytes, AVG(bytesHtml) / 1024 AS html_kbytes, AVG(bytesJS) / 1024 AS js_kbytes, AVG(bytesCSS) / 1024 AS css_kbytes, AVG(bytesImg) / 1024 AS img_kbytes, AVG(bytesOther) / 1024 AS other_kbytes, AVG(bytesHtmlDoc) / 1024 AS html_doc_kby...
<reponame>Dectub/dectub<filename>src/main/resources/db/migration/V0001__add_user_struct.sql<gh_stars>10-100 create table dectub_user ( id bigint not null, name varchar(200) not null, email varchar(200) not null unique, state varchar(200) not null, password varcha...
<gh_stars>1-10 -- 创建用户表 CREATE TABLE "public"."sys_user" ( "id" int8 NOT NULL, "user_name" varchar(255), "pwd" varchar(255), "adder" varchar(255) ) ; COMMENT ON COLUMN "public"."sys_user"."id" IS '主键'; COMMENT ON COLUMN "public"."sys_user"."user_name" IS '用户姓名'; COMMENT ON COLUMN "public"."sys_user"."pwd" IS...
{% macro singlestore__list_schemas(database) %} {% call statement('list_schemas', fetch_result=True, auto_begin=False) -%} select distinct schema_name from information_schema.schemata {% endcall -%} {{ return(load_result('list_schemas').table) }} {% endmacro %} {% macro singlestore__create...
<filename>fixtures/doctests/select/016/input.sql SELECT m.name AS mname, pname FROM manufacturers m, LATERAL get_product_names(m.id) pname;
<gh_stars>0 /* Use cases: - Use as an event log, for example to record being able or not being able to do something. - Record key user activity, such as authentication, password change, and so on. - Record actions taken against resources. - Support user service accounts. - Record system activity. - Record...
CREATE TABLE [UserAccounts] ( [PrincipalID] uniqueidentifier NOT NULL, [ScopeID] uniqueidentifier NOT NULL, [FirstName] [varchar](64) NOT NULL, [LastName] [varchar](64) NOT NULL, [Email] [varchar](64) NULL, [ServiceURLs] [text] NULL, [Created] [int] default NULL, PRIMARY KEY CLUSTERED ( [PrincipalID...
<filename>frontend/database/00058_coder_of_the_month_rank.sql -- Add rank column to coder of the month ALTER TABLE Coder_Of_The_Month ADD COLUMN `rank` int(11) NOT NULL COMMENT 'El lugar en el que el usuario estuvo durante ese mes'; -- Populate previous top coder of the month rank with 1 UPDATE Coder_Of_The_Month SET ...
-- @testpoint: select语句中查询当前数据库 select current_catalog;
CREATE TABLE [dbo].[VisitReason] ( [visitID] INT NOT NULL, [visitDescription] VARCHAR (255) NULL, PRIMARY KEY CLUSTERED ([visitID] ASC) );
<gh_stars>0 CREATE TABLE public.units ( id serial PRIMARY KEY, name varchar NOT NULL, symbol varchar NOT NULL ); ALTER TABLE materials ADD unit_id integer references units; ALTER TABLE materials DROP COLUMN unit_type;
INSERT INTO `languages` VALUES (1, "English", "en"), (2, "Italian", "it"), (3, "German", "de"), (4, "French", "fr"), (5, "Portuguese - Brazilian", "pt_BR"), (6, "Dutch", "nl"), (7, "Spanish", "es"), (8, "Norwegian", "nb_NO"), (9, "Danish", "da"), (10, "Japanese", "ja"), (...
-- Preppin Data -- 2021 Week 22 -- https://preppindata.blogspot.com/2021/06/2021-week-22-answer-smash.html -- SQL flavor: PostgreSQL -- TECHNIQUES LEARNED, FUNCTIONS USED, ETC. -- Split strings -- Get substring from strings -- Check position of substring in strings with POSITION -- STEP 1 -- The category dataset re...
<gh_stars>10-100 -- file:rowsecurity.sql ln:1478 expect:true CREATE TABLE r2 (a int)
<filename>backend/de.metas.externalsystem/src/main/sql/postgresql/system/80-de.metas.externalsystem/5617210_sys_gh12113_ExternalSystem_Config_Shopware_drop_BPartnerPath_column.sql /* * #%L * de.metas.externalsystem * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it ...
<reponame>smith750/kc<gh_stars>0 set @question_id = (select QUESTION_ID from QUESTION where QUESTION = 'Please select the type of degree sought during the proposed award, from the list of options provided. If the degree being sought does not appear on the list, please select the most appropriate "other" degree type fro...
-- auto-generated definition create table product_category_relationship ( Product uniqueidentifier not null constraint product_category_relationship_products_Id_fk references products on update cascade on delete cascade, Category uniqueidentifier not null constraint prod...
<filename>osgp/ikusi/src/main/resources/users_201912262208.sql INSERT INTO public.users (firts_name,last_name,username,"password") VALUES ('<NAME>','Sanchez','jesus.sanchez.ext','$2a$10$TjIM2LKS7GVmipLxO/Jk4.wWMFK.VLD9qrxcLxOz.lISXkiEmzzLq') ; INSERT INTO public.firmware_module (description) VALUES ('xmllint') ,('xm...
-- migrate create -ext sql -dir ./storage/migrations -seq create_tags_tickets_table CREATE TABLE IF NOT EXISTS tags_tickets ( id serial PRIMARY KEY, ticket_id integer NOT NULL, tag_id integer NOT NULL, UNIQUE(ticket_id, tag_id), constraint fk_ticket_id foreign key (ticket_id) REFERENCES tickets (id)...
-- begin CRUISESAMPLE_WAYPOINT alter table CRUISESAMPLE_WAYPOINT add constraint FK_CRUISESAMPLE_WAYPOINT_ROUTE foreign key (ROUTE_ID) references CRUISESAMPLE_ROUTE(ID)^ create index IDX_CRUISESAMPLE_WAYPOINT_ROUTE on CRUISESAMPLE_WAYPOINT (ROUTE_ID)^ -- end CRUISESAMPLE_WAYPOINT -- begin CRUISESAMPLE_STOP alter table C...
SET pgflake.instance_id TO 5; CREATE EXTENSION IF NOT EXISTS pgflake; CREATE TABLE simple_test (x bigint, y bigint NOT NULL DEFAULT pgflake_generate()); INSERT INTO simple_test (x) SELECT generate_series(1, 10); SELECT COUNT(1) FROM simple_test WHERE pgflake_extract_instance(y) = 5; SELECT pgflake_extract_sequence...
/* This SQL creates the tables of the DB. The Flyway tool applies this migration to create the database Follow this style guide https://about.gitlab.com/handbook/business-ops/data-team/platform/sql-style-guide/ use VARCHAR(63) for names in organization and schema Copy a version of this comment into the next migration...
/* This script demonstrates that when you have the PL/SQL optimization level set to at least 2, the PL/SQL compiler will optimize cursor FOR loops to perform comparably to using BULK COLLECT. It's a very nice, specialized optimization for a database programming language and reinforces an important rule: always use ...
<reponame>RyanTamulevicz/bluebubbles-server<filename>macos/database/samples/high-sierra/chat_message_join.sql CREATE TABLE chat_message_join ( chat_id INTEGER REFERENCES chat (ROWID) ON DELETE CASCADE, message_id INTEGER REFERENCES message (ROWID) ON DELETE CASCADE, message_date INTEGER DEFAULT 0, PRIMA...
DROP TABLE IF EXISTS LOG_T; CREATE TABLE LOG_T ( `fingerprint` UInt64, `fields` Nested( name LowCardinality(String), value String) ) ENGINE = MergeTree ORDER BY fingerprint; SELECT fields.name, fields.value FROM ( SELECT fields.name, fields.value FROM LOG_T ) WHERE ha...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/preorder/Opengauss_Function_Keyword_Preorder_Case0021.sql -- @testpoint:opengauss关键字preorder(非保留),作为函数名 --关键字不带引号-成功 drop function if exists preorder; create function preorder(i integer) returns integer as $$ begin return i+1; end; $$ languag...
<gh_stars>0 -- name: CreateRecords :one INSERT INTO records (name, status) values ($1, $2) ON CONFLICT (name) DO UPDATE SET status = EXCLUDED.status, updated_at = EXCLUDED.updated_at, RETURNING id;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 05, 2021 at 07:50 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : xampp-local-mariadb Source Server Type : MariaDB Source Server Version : 100411 Source Host : localhost:3306 Source Schema : gledger Target Server Type : MariaDB Target Server Version : 100411 File Encoding :...
<filename>conf/mysql.sql CREATE DATABASE IF NOT EXISTS traccar; GRANT ALL PRIVILEGES ON traccar.* To 'traccar'@'%' IDENTIFIED BY 'traccar';
/* Plantilla de script posterior a la implementación -------------------------------------------------------------------------------------- Este archivo contiene instrucciones de SQL que se anexarán al script de compilación. Use la sintaxis de SQLCMD para incluir un archivo en el script posterior a la imple...
/* The script to export statistics on indices and database objects for investigation by support. This is part 1 of 3-part script set for Exasol Database versions up to 7.0. Originally mentioned in article https://community.exasol.com/t5/database-features/statistics-export-for-support-v6...
/* * Copyright (c) 2017 LabKey Corporation * * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
<filename>test.sql /* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50610 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50610 File Encoding : 65001 Date: 2016-09-08 17:28:55 */ ...
CREATE TABLE IF NOT EXISTS article(id SERIAL PRIMARY KEY, title VARCHAR(1024) NOT NULL);
<filename>schema/revert/search_functions/search_certification_requests@v1.0.0-rc.5.sql -- Revert ggircs-portal:search_functions/search_certification_request from pg begin; drop function ggircs_portal.search_certification_requests; commit;
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.1 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_catalog.set_config('search_path', '', fal...
<reponame>Zhaojia2019/cubrid-testcases --TEST: pass zero date/time values to to_char function --TEST: pass zero datetime value select to_char(datetime'0000-00-00 00:00:00'); select to_char(datetime'00/00/0000 00:00:00'); select to_char(datetime'00:00:00 00/00/0000'); select to_char(datetime'00:00:00 0000-00-00'); --T...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 22, 2021 at 05:32 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>Daneugoncalves/GitC SET IDENTITY_INSERT [dbo].[Aluno] ON INSERT INTO [dbo].[Aluno] ([Id], [Nome], [Matricula], [Frequencia]) VALUES (4, N'Daniel', 1234, 1) INSERT INTO [dbo].[Aluno] ([Id], [Nome], [Matricula], [Frequencia]) VALUES (5, N'Carou', 1235, 0) INSERT INTO [dbo].[Aluno] ([Id], [Nome], [Matricula], [F...
<reponame>dfernandosales/erp-hermes-api DROP TABLE public.reserva_hospede CASCADE;
DROP TABLE IF EXISTS person; CREATE TABLE person ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(250) NOT NULL, last_name VARCHAR(250) NOT NULL, age int DEFAULT NULL, favourite_color VARCHAR(100) NOT NULL );
INSERT INTO pos_itemtemp VALUES("IATT190000001","193001","191001","192001","30000","1","30000","0","30000","1","1","1","IAT2305190946","NHO2018000007","PAID","Beef 1. Chiken 1.","193001"), ("IATT190000001","193010","191001","192001","40000","1","40000","0","40000","1","1","1","IAT2305190946","NHO2018000007","PAID","","...
<reponame>Geevaveeri/Employee-Tracker -- delets tables for testing purposes DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS roles; DROP TABLE IF EXISTS departments; -- department table CREATE TABLE departments ( id INTEGER PRIMARY KEY AUTO_INCREMENT, department_name VARCHAR(30) ); -- employee roles tabl...
DROP DATABASE IF EXISTS hotel; CREATE DATABASE hotel; USE hotel; CREATE TABLE station ( sta_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, sta_nom VARCHAR(50) NOT NULL, sta_altitude INT ); CREATE TABLE hotel ( hot_id INT AUTO_INCREMENT NOT NULL, hot_sta_id INT ...
<gh_stars>0 alter table "public"."socle_competency_subject" rename to "socle_default_competency_subject";
<reponame>gayeong1045/bigquery_ga_CDP_starter<filename>models/inter_models/inter_ga_useridmatching.sql -- 처음 로그인한 시점의 user id에 해당하는 user_pseudo_id의 리스트 -- 하나의 user_pseudo_id에 두개 이상의 user_id가 매칭되는 것을 막기 위해 발생시간이 더 짧은 것만 남기고 삭제 {{ config( materialized='view' )}} with user_info as ( select use...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 04, 2017 at 08:24 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
select count(1),count(if(order_time < date_add(now(),interval -30 minute),1,null)) from tom_orders where order_status = '0' and deleted = '0' and order_time > curdate();monitor;mysql#
update eg_action set url = '/masters/donationView' where name = 'ViewDonationMaster' and contextroot = 'stms'; update eg_action set url = '/masters/donationUpdate' where name = 'ModifyDonationMaster' and contextroot = 'stms'; update eg_action set url = '/masters/success' where name = 'DonationMasterSuccess' and context...
INSERT INTO user(user_id, username, email, pw) VALUES (1, '@malialek','<EMAIL>','$2a$10$IHdRfnhNgQesPFD5hrUcMOvyx5RrRcklkpXfs9YX4j1qXvouEeVIa'); INSERT INTO user(user_id, username, email, pw) VALUES (2, '@cudadasedacic_av','<EMAIL>','$2a$10$NlU0bdBUiegZWZvl6CGpj.wV5YfbDGZ8lYznxWp2NNE4F9cYJJFOe'); INSERT INTO user(user_...
<filename>website/DB/pocket_diary.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2016 at 10:55 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
<filename>macros/utils/column_types.sql {% macro is_datetime(column) %} {{ adapter.dispatch('is_datetime', 're_data')(column) }} {% endmacro %} {% macro default__is_datetime(column) %} case when {{column}} in ( 'timestamp without time zone', 'timestamp with time zone', 'date...
-- System privileges GRANT CREATE SCHEMA TO role1; GRANT SELECT ANY TABLE TO user1 WITH ADMIN OPTION; -- Object privileges GRANT INSERT ON my_schema.my_table TO user1, role2; GRANT SELECT ON VIEW my_schema.my_view TO user1; -- Access on my_view for all users GRANT SELECT ON my_schema.my_view TO PUBLIC; -- Roles GRANT r...
<filename>packages/intranet-cost/sql/postgresql/intranet-cost-center-create.sql -- /packages/intranet-cost/sql/postgresql/intranet-cost-center-create.sql -- -- ]project-open[ "Cost Centers" - part of Financial Base Module -- Copyright (C) 2004 - 2009 ]project-open[ -- -- All rights including reserved. To inquire licens...
CREATE TABLE parents AS SELECT "abraham" AS parent, "barack" AS child UNION SELECT "abraham" , "clinton" UNION SELECT "delano" , "herbert" UNION SELECT "fillmore" , "abraham" UNION SELECT "fillmore" , "delano" UNION SELECT "fillmore" ...
drop database if exists `all_mode`; create database `all_mode`; use `all_mode`; create table t1 (id int NOT NULL AUTO_INCREMENT, name varchar(20), PRIMARY KEY (id)); insert into t1 (id, name) values (1, 'arya'), (2, 'catelyn'); -- test sql_mode=NO_AUTO_VALUE_ON_ZERO insert into t1 (id, name) values (0, 'lalala'); -- ...
select /*%expand*/* from city order by id asc
############################################################################### # general counts of records by source ############################################################################### # visually inspect sources SELECT * FROM source; # count names per source SELECT s.sourceID, sourceName, COUNT(*) as na...
<reponame>yeastrc/proxl-web-app ALTER TABLE linker_per_search_cleaved_crosslink_mass_tbl ADD COLUMN chemical_formula VARCHAR(1000) NULL AFTER cleaved_crosslink_mass_string;
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3308 -- Thời gian đã tạo: Th1 10, 2021 lúc 11:44 AM -- Phiên bản máy phục vụ: 5.7.28 -- Phiên bản PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
ALTER TABLE exploration_access ALTER COLUMN has_proposed_bridges_or_culverts DROP DEFAULT; ALTER TABLE now_application ALTER COLUMN has_surface_disturbance_outside_tenure DROP DEFAULT; ALTER TABLE now_application ALTER COLUMN is_access_gated DROP DEFAULT; ALTER TABLE now_application ALTER COLUMN has_key_for_inspector ...
<reponame>iyerr3/gpdb -- WARNING -- This file is executed against the postgres database, as that is known to -- exist at the time of running upgrades. If objects are to be manipulated -- in other databases, make sure to change to the correct database first. DROP DATABASE IF EXISTS isolation2test; \c regression; -- G...
DROP VIEW IF EXISTS view_beban_barang_rekap_kabupaten CASCADE; CREATE VIEW view_beban_barang_rekap_kabupaten AS SELECT * FROM view_beban_barang5_awayan UNION ALL SELECT * FROM view_beban_barang5_bappeda UNION ALL SELECT * FROM view_beban_barang5_batumandi UNION ALL SELECT * FROM view_beban_barang5_bkd UNION AL...
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 14, 2017 at 12:38 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<gh_stars>0 -- @testpoint:opengauss关键字Key(非保留),作为视图名 --关键字explain作为视图名,不带引号,创建成功 CREATE or replace VIEW Key AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view Key; --关键字explain作为视图名,加双引号,创建成功 CREATE or replace VIEW "Key" AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop VIEW "Ke...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: -- サーバのバージョン: 10.4.8-MariaDB -- PHP のバージョン: 7.3.11 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_CLIE...
delete from tiles where -- make sure given bounding box is valid ST_Transform(ST_MakeEnvelope(14.0, 49.0, 24.03, 54.86, 4326), 3857) && ST_MakeEnvelope(%(xmin)s, %(ymin)s, %(xmax)s, %(ymax)s, 3857) and tiles.bbox && ST_MakeEnvelope(%(xmin)s, %(ymin)s, %(xmax)s, %(ymax)s, 3857) and z >= 13 ;
<filename>db file/laravel_crud.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 07, 2018 at 11:59 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
<reponame>vivekparasharr/Learn-Programming --test query --SELECT top 10 * FROM [tempdb].[sys].[columns] /* Create database */ CREATE DATABASE Music; GO /* Change to the Music database */ USE Music; GO /* Create tables */ CREATE TABLE Artists ( ArtistId int IDENTITY(1,1) NOT NULL PRIMARY KEY, ArtistName nvar...
<filename>src/main/resources/db/migration/V11__change_user_name.sql<gh_stars>0 ALTER TABLE users CHANGE COLUMN name firstname VARCHAR(255); ALTER TABLE users ADD COLUMN lastname VARCHAR(255) AFTER firstname;
ALTER TABLE `sys_user` CHANGE `status` `clientStatus` enum('online', 'away', 'busy', 'offline') NOT NULL DEFAULT 'offline';
/* Navicat MySQL Data Transfer Source Server : mySql Source Server Version : 50505 Source Host : localhost:3306 Source Database : per_infomation_technology Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2016-08-10 00:53:15 */ SET FOREIGN_KEY_C...
<filename>scripts_db/insert_fictive_datas.sql -- insert some users insert into foy_management.user(firstName, lastName, promo, balance, isFoysteamer) values ('sam', 'lg', 2016, 15, true); insert into foy_management.user(firstName, lastName, promo, balance, isFoysteamer) values ('Aude', 'Kissa', 2015, 0, false); inser...
select * from Win32_Group where sid = 'S-1-5-32-544'
/* Formatted on 12-20-2018 1:38:29 PM (QP5 v5.126.903.23003) */ /* "C:\Program Files (x86)\pgAdmin 4\v3\runtime\pg_dump" --host localhost --port 5432 --username postgres --verbose --table=SELF.SELF_ARTICLES --data-only --column-inserts psdc_live > SELF.SELF_ARTICLES.sql */ set define off; TRUNCATE TABLE SELF.SELF_ARTIC...
<reponame>stevewithington/predator CREATE TABLE IF NOT EXISTS reports_summary( test_id uuid, revision_id uuid, report_id text, test_configuration text, last_updated_at timestamp, start_time timestamp, test_name text, test_description text, job_id text, test_type text, notes text, phase text, PRIMARY KEY (test_id, repor...
<filename>tests/queries/0_stateless/01583_const_column_in_set_index.sql drop table if exists insub; create table insub (i int, j int) engine MergeTree order by i settings index_granularity = 1; insert into insub select number a, a + 2 from numbers(10); SET max_rows_to_read = 2; select * from insub where i in (select ...
<reponame>RyougiChan/WebDevTest /* CREATE DATABASE RoyougiChan */ CREATE DATABASE `RyougiChan` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE RyougiChan; /* CREATE TABLE R_Article */ DROP TABLE IF EXISTS `R_Article`; CREATE TABLE IF NOT EXISTS `R_Article` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `tit...
<filename>k8s-test/tests/kubernetes_cluster_role/test-list-query.sql select name, rules from kubernetes.kubernetes_cluster_role where name like '%jenkins%';
<reponame>rage/secret-project-331<filename>services/headless-lms/migrations/20210707112726_db_table_comments.down.sql -- Add down migration script here COMMENT ON TABLE organizations IS NULL; COMMENT ON TABLE courses IS NULL; COMMENT ON TABLE pages IS NULL; COMMENT ON TABLE chapters IS NULL; COMMENT ON TABLE submission...