sql
stringlengths
6
1.05M
CREATE PROC sp_PharmacyModule_GetPrescriptionForm (@PatientMasterVisitId varchar(100)) AS BEGIN SELECT c.Id ClinicalDrugId , c.DrugName , b.Dose , b.Duration , b.PrescribedQuantity , b.PrescriptionComment , b.DrugFrequencyId , e.FrequencyCode , b.DispensedQuantity , d.Id BatchId , d.BatchNumber FROM PatientDrugPresc...
DROP TABLE IF EXISTS access_discipline; DELETE FROM flyway_schema_history WHERE version = '2021.02.16.01';
<reponame>li-liangshan/execSql -- trigger schema definition: CREATE [DEFINER = user] TRIGGER trigger_name trigger_time trigger_event ON tbl_name FOR EACH ROW [trigger_order] trigger_body trigger_time: { BEFORE | AFTER } trigger_event: { INSERT | UPDATE | DELETE } trigger_order: { FOLLOWS | PR...
<gh_stars>1-10 -- Drop all tables DROP TABLE TEMPLATE_SUPPORT; DROP TABLE TEMPLATE_VARIABLE_INTERPRETATION; DROP TABLE TEMPLATE; DROP TABLE TEMPLATE_PATTERN; DROP TABLE INFERENCE_MODE; DROP TABLE DOC_REF; DROP TABLE DOC; DROP TABLE INTERPRETATION_ISAS; DROP TABLE INTERPRETATION_GENLS; DROP TABLE CYCL; -- Create table...
-- ---------------------------- -- Table structure for cms_subject_product_relation -- ---------------------------- DROP TABLE IF EXISTS `cms_subject_product_relation`;
<filename>components/automate-workflow-server/schema/verify/patchsets.sql -- Verify patchsets BEGIN; SELECT id, change_id, sequence_number, submitted_at, submitter_id, verified_against_sha, is_verified, status FROM patchsets WHERE FALSE; ROLLBACK;
-- @author prabhd -- @created 2012-12-05 12:00:00 -- @modified 2012-12-05 12:00:00 -- @tags dml -- @db_name dmldb -- @description test: Boundary test for varchar \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore DROP TABLE IF EXISTS dml_var; CREATE TABLE dml_var( a varchar(10485760)) ...
-- THIS IS A GENERATED FILE. DO NOT EDIT! CREATE TYPE raw_aggregate AS (xmin xid, aggfnoid regproc, aggkind "char", aggnumdirectargs smallint, aggtransfn regproc, aggfinalfn regproc, aggcombinefn regproc, aggserialfn regproc, aggdeserialfn regproc, aggmtransfn regproc, aggminvtransfn regproc, aggmfinalfn regproc, aggf...
<reponame>kushalgandhi009/devkind<filename>DB/devkind.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 24, 2020 at 09:50 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTI...
<reponame>Shrest7/CinemaDatabase<filename>PROJECT_DEINSTALL.sql drop table aktor cascade constraints; drop table aktor_film cascade constraints; drop table bilet cascade constraints; drop table film cascade constraints; drop table gatunek cascade constraints; drop table klient cascade constraints; drop tabl...
<reponame>nabeelkhan/Oracle-DBA-Life<filename>SCRIPTS/db_parm.sql REM FILE NAME: db_parm.sql REM LOCATION: Backup Recovery\Reports REM FUNCTION: Generate list of DB parameters REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1 REM PLATFORM: non-specific REM REQUIRES: v$parameter REM REM This is a part of t...
select json_object( KEY 'col1' IS d.col1 FORMAT JSON, KEY 'col2' IS d.col2, KEY 'col3' IS 'TEXT' FORMAT JSON ) col1 from qz_demo d order by d.col1; / SELECT JSON_OBJECT ( KEY 'col1' IS d.col1, KEY 'col2' IS d.col2, KEY 'col3' IS 'TEXT' FORMAT JSON ) col1 from qz_demo d order by d.col1 / CREATE TABLE qz_json_data ( pk_c...
select * from sys.database_scoped_credentials
<filename>src/BugNET.Database/Stored Procedures/BugNet_IssueAttachment_DeleteIssueAttachment.sql CREATE PROCEDURE [dbo].[BugNet_IssueAttachment_DeleteIssueAttachment] @IssueAttachmentId INT AS DELETE FROM BugNet_IssueAttachments WHERE IssueAttachmentId = @IssueAttachmentId
#------------------------------------------------------------------------------ # Compétences pour exhumer les ruines #------------------------------------------------------------------------------ INSERT INTO game_ressource_item (`name`, `groupable`) VALUES ("ParchmentSearchOutside", 0), ("ParchmentSear...
<gh_stars>1-10 CREATE TABLE users ( email VARCHAR(255) PRIMARY KEY, firstName VARCHAR(32) NOT NULL, lastName VARCHAR(64) NOT NULL );
------------------- -- Replace the use of realm_num and topic_num with topic_id -- When created the topic_message table used separate columns for realm and num. These should be reserved for entities tables ------------------- -- create temporary function to encode integers create function encodeEntityId(shard bigint, ...
CREATE TABLE event ( id SERIAL PRIMARY KEY, counter INT );
<filename>migrations/000002_add_movies_check_constraiant.down.sql ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_runtime_check; ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_year_check; ALTER TABLE movies DROP CONSTRAINT IF EXISTS genres_length_check;
<gh_stars>10-100 DROP TABLE IF EXISTS md5s; CREATE TABLE md5s ( _id SERIAL PRIMARY KEY, md5 char(32) NOT NULL, is_protein boolean ); DROP TABLE IF EXISTS functions; CREATE TABLE functions ( _id SERIAL PRIMARY KEY, name text NOT NULL ); DROP TABLE IF EXISTS organisms_ncbi; CREATE TABLE organisms_ncbi ( _id SERIAL PRIM...
ALTER OPERATOR FAMILY integer_ops USING btree DROP -- int4 vs int2 OPERATOR 1 (int4, int2) , OPERATOR 2 (int4, int2) , OPERATOR 3 (int4, int2) , OPERATOR 4 (int4, int2) , OPERATOR 5 (int4, int2) , FUNCTION 1 (int4, int2) , -- int2 vs int4 OPERATOR 1 (int2, int4) , OPERATOR 2 (int2, int4) , OPERA...
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; drop table if exists t1; create table t1 (a int, b int, c int, d int); create index i1_a on t1(a); create index i1_ab on t1(a, b); create index i1_abc on t1(a, b,c); insert into t1 values (1,1,1,1), (2,2,2,2); -- we expect ignore index i1_a, but in f...
<reponame>lz1988/stourwebcms<filename>data/backup/1443064629/data/sline_role.sql<gh_stars>1-10 insert into sline_role values('1','系统管理员','','0','0','1');
CREATE TABLE `user_coupons` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) NOT NULL COMMENT '用户ID', `coupon_id` int(10) NOT NULL COMMENT '优惠券ID', `code` varchar(20) NOT NULL DEFAULT '' COMMENT '优惠券码', `status` int(1) DEFAULT '0' COMMENT '状态,0-可用,1-已使用,2-失效,3-过期,4-冻结', `receive_time` int(...
CREATE FUNCTION heiko.[Abc] ( @Stichtag_Version_DM_SID INT ) RETURNS TABLE AS RETURN ( WITH Cde AS ( SELECT 1 B ) SELECT 2 A )
<reponame>opengauss-mirror/Yat -- @testpoint: 插入空值 DROP TABLE IF EXISTS test_time13; CREATE TABLE test_time13 (id int,name time); INSERT INTO test_time13 VALUES (1,null); INSERT INTO test_time13 VALUES (2,''); SELECT * FROM test_time13; drop table test_time13;
INSERT [dbo].[Cards] ([Id], [Chapter], [Verse], [Description], [Synonmys], [Meaning]) VALUES (NEWID(), 8, 1, N'arjuna uvaca kim tad brahma kim adhyatmam kim karma purusottama adhibhutam ca kim proktam adhidaivam kim ucyate' , N'arjunah uvaca--Arjuna said; kim--what; tat--that; brahma--Brahman; kim- -wha...
DECLARE @responseMessage NVARCHAR(250) -- Correct login and password EXEC dbo.uspLogin @pLoginName = N'Another', @pPassword = N'<PASSWORD>', @responseMessage = @responseMessage OUTPUT SELECT @responseMessage as N'@responseMessage' -- Incorrect login EXEC dbo.uspLogin @pLoginName = N'Nonexisting_user', @pP...
WITH origin AS ( SELECT (0, 0, 0)::VEC3 AS origin ), light AS ( SELECT (-5000, 5000, -5000)::VEC3 AS position, 0.7 AS specular, 0.6 AS lambertian ), pixels AS ( SELECT * FROM GENERATE_SERIES(-70, 70) x CROSS JOIN GENERATE_SERIES(-70, 70) y CROSS JOIN LATERAL ( SELECT ||((x, y, 100)::VEC3) AS pixel_un...
-- Store values for all individual song syllables CREATE TABLE IF NOT EXISTS individual_syllable ( id INTEGER PRIMARY KEY, noteIndSession INTEGER NOT NULL, -- note index across the session noteIndFile INTEGER NOT NULL, -- note index within a file songID ...
<reponame>EL-BID/nexso CREATE PROCEDURE [dbo].[dnn_Feedback_ChangeListSortOrder] @ListID int, @ListType int, @OldSortNum int, @NewSortNum int AS DECLARE @TempListID int SELECT @TempListID = ListID FROM dbo.[dnn_FeedbackList] WHERE ListType = @ListType and SortOrder = @NewSortNum UPDATE dbo.[dnn_FeedbackList...
<filename>internal/model/table.sql<gh_stars>1-10 CREATE TABLE `user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `user_id` bigint(20) NOT NULL, `username` varchar(64) COLLATE utf8mb4_general_ci NOT NULL, `password` varchar(64) COLLATE utf8mb4_general_ci NOT NULL, `call` varchar(64) COLLATE utf8mb4_ge...
CREATE TABLE DKNavneBrug( anvendtDKNavn TEXT, anvendtSystNavn TEXT, DKIndex TEXT, kilde TEXT, kilde_fritekst TEXT, refID TEXT, side TEXT, tekst TEXT ) ENGINE = InnoDB DEFAULT CHARSET=UTF8; anvendtDKNavn;anvendtSystNavn;DKIndex;kilde;kilde fritekst;refID;side;tekst;år;FuldeNavnFraFUN LOAD DATA INFILE "/Users/thomasjep...
-- memdb.test -- -- execsql {SELECT count(*) FROM t6} SELECT count(*) FROM t6
<filename>src/test/resources/fts1o.test_8.sql -- fts1o.test -- -- execsql { -- BEGIN; -- INSERT INTO fts_t1(a, b, c) VALUES('one two three', 'one four', 'one two'); -- } BEGIN; INSERT INTO fts_t1(a, b, c) VALUES('one two three', 'one four', 'one two');
<filename>src/test/resources/sql/create_function/2cf390ac.sql -- file:case.sql ln:215 expect:true CREATE FUNCTION make_ad(int,int) returns arrdomain as 'declare x arrdomain
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/create_view/9b961afa.sql -- file:create_view.sql ln:206 expect:true CREATE VIEW mysecview5 WITH (security_barrier=100) AS SELECT * FROM tbl1 WHERE a > 100
<filename>packages/intranet-reporting-tutorial/sql/postgresql/intranet-reporting-tutorial-create.sql -- /package/intranet-reporting-tutorial/sql/postgresql/intranet-reporting-tutorial-create.sql -- -- Copyright (c) 2003-2007 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ ...
<reponame>endeavourhealth-discovery/InformationModel -- Create document INSERT INTO document (iri) VALUES ('http://DiscoveryDataService/InformationModel/dm/DMD/1.0.0'); SELECT @doc := LAST_INSERT_ID(); -- Build concept creation list DROP TABLE IF EXISTS dmd_tmp; CREATE TABLE dmd_tmp ( id VARCHAR(50) NOT NULL, ...
/* sql卸载文件 */ DROP TABLE IF EXISTS `hisi_user_group_codekey`;
<gh_stars>0 -------------------------------------------------------- -- DDL for Package CONST -------------------------------------------------------- CREATE OR REPLACE PACKAGE FRTHR_FQE.CONST AS function get_debug return number; function get_query_xml_namespace return varchar2; function get_namespace_id_...
<filename>examples/sql/0003_add_users_city_column.sql ALTER TABLE users ADD COLUMN city VARCHAR(100);
<reponame>Mephostopilis/mall INSERT INTO sys_role_menu VALUES (1, 1, 1, 2, 'admin', NULL, NULL), (2, 1, 1, 3, 'admin', NULL, NULL), (3, 1, 1, 43, 'admin', NULL, NULL), (4, 1, 1, 44, 'admin', NULL, NULL), (5, 1, 1, 45, 'admin', NULL, NULL), (6, 1, 1, 46, 'admin', NULL, NULL), (7, 1, 1, 51, 'admin', NULL, NULL), (8, 1, 1...
USE [bisolutions_vvcb] GO /****** Object: StoredProcedure [dbo].[BCOLLECTCHARGESFROMACCOUNT_Print_GetByCode] Script Date: 09/10/2014 2:03:31 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[BCOLLECTCHARGESFROMACCOUNT_Print_GetByCode] @Code nvarchar(20)...
<reponame>darthunix/gpdb -- This test validates, reader and writer both wait if lock is not -- available. There used to be a bug where reader didn't wait even if lock was -- held by some other session. -- setup 5: create table reader_waits_for_lock_table(a int, b int) distributed by (a); 5: insert into reader_waits_fo...
CREATE TABLE `classes` ( `school_id` int(11) NOT NULL, `class_id` int(11) NOT NULL AUTO_INCREMENT, `class_name` varchar(128) NOT NULL, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `trashed` int(11) NOT NULL DEFAULT '0', PRIMARY K...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/INNERFUNC/atan/Opengauss_Function_Innerfunc_Atan_Case0010.sql<gh_stars>0 -- @testpoint: 结合关键字的使用测试 drop table if exists atan_test_01; create table atan_test_01(f1 int,f2 bigint,f3 integer,f4 binary_integer,f5 bigint, f6 real,f7...
<reponame>satyamsndrm/Inventory DELIMITER $$ CREATE TRIGGER inserted_pro AFTER INSERT ON `products` FOR EACH ROW BEGIN INSERT INTO logs VALUES (NULL, CONCAT("Product ", NEW.name," is added with ", NEW.quantity), CURRENT_TIMESTAMP); END$$ DELIMITER $$ DELIMITER $$ CREATE TRIGGER updated_pro AFTER UPDATE ON `produc...
<gh_stars>0 -- DELETE -- 删除数据表中的记录 -- DELETE FROM <表名> WHERE ...; DELETE FROM students WHERE id=1; -- 删除 students表中 id=1的记录 DELETE FROM students WHERE id>=5 AND id<=7; -- 结合条件查询一次删除多条记录 DELETE FROM students WHERE id=9999; -- where语句没有匹配到任何记录,delete不会报错,也不会有任何记录被删除 DELETE FROM students; -- 整个表的所有记录都会...
UPDATE roles SET time_end=%s WHERE server_id=%s AND role_name=%s;
<reponame>wqcsimple/faycms<gh_stars>1-10 DROP TABLE IF EXISTS `{{$prefix}}oauth_apps`; CREATE TABLE `{{$prefix}}oauth_apps` ( `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, `alias` varchar(50) NOT NULL DEFAULT '' COMMENT '别名', `name` varchar(30) NOT NULL DEFAULT '' COMMENT '名称', `description` varchar(1...
INSERT INTO TABLE {provider_prefix}_consolidate_data_all PARTITION (pdt) select {arg_con}, to_date(call_time) as pdt from {provider_prefix}_preprocess
ALTER TABLE `invoices` ADD COLUMN `discount` INT(11) NOT NULL DEFAULT 0 AFTER `amount`, ADD COLUMN `tax` INT(11) NOT NULL DEFAULT 0 AFTER `discount`, ADD COLUMN `memo` TEXT NULL AFTER `tax`, ADD COLUMN `client_address_id` INT(11) NULL AFTER `bank_account_id`, ADD COLUMN `user_address_id` INT(11) NULL AFTER `client_add...
USE employees; INSERT INTO department (name) VALUES ("Sales"), ("Engineering"), ("HR"), ("IT"); INSERT INTO role (title, salary, department_id) VALUES ("Salesperson", 100000, 1), ("Mechanical Engineer", 120000, 2), ("Software Engineer", 150000, 2), ("Junior Engineer", 85000, ...
DROP TABLE IF EXISTS m1 CASCADE; DROP TABLE IF EXISTS m2 CASCADE; CREATE TABLE m1( mid bigint, value bigint, id bigint, cardinality int, predicate int); CREATE TABLE m2( mid bigint, value bigint, id bigint); INSERT INTO m1(mid, value, cardinality, predicate) VALUES (0, 0, 2, 1), ...
<filename>calendar.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 22, 2021 at 10:56 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
# Host: localhost (Version 5.7.27) # Date: 2020-06-23 23:08:48 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "documentinfo" # DROP TABLE IF EXISTS `documentinfo`; CREATE TABLE `documentinfo` ( `docId` int(11) NOT NULL AUTO_INCREMENT, `sn` varchar(20) NOT NULL DEFAULT '' COMMENT '编号', `fi...
<gh_stars>1-10 select -- Required Columns a.id as resource, case when can_use_console_password and is_mfa_activated then 'ok' else 'alarm' end as status, case when not can_use_console_password then a.name || ' password login disabled.' when is_mfa_activated then a.name || ' password login enab...
select foo, bar from baz join quz using(foo, bar)
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.58.3 -- Generation Time: Jul 18, 2021 at 01:52 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
-- @testpoint:opengauss关键字direct(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists direct; CREATE TABLESPACE direct RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace direct; --关键字带双引号,创建成功 drop tablespace if exists "direct"; CREATE TABLESPACE "direct" RELATIVE LOCATION 'hdfs_tablespace/hdfs...
<gh_stars>0 -- @testpoint:opengauss关键字rows非保留),作为序列名 --关键字不带引号-成功 drop sequence if exists rows; create sequence rows start 100 cache 50; drop sequence rows; --关键字带双引号-成功 drop sequence if exists "rows"; create sequence "rows" start 100 cache 50; drop sequence "rows"; --关键字带单引号-合理报错 drop sequence if exists 'rows'; c...
<gh_stars>1-10 DROP DATABASE IF EXISTS {0}; CREATE DATABASE {0}; USE {0}; CREATE TABLE items ( item_id int primary key auto_increment, description varchar(50) not null, brand varchar(50), price float not null, quantity int not null ); CREATE TABLE stores( store_id int primary key auto_increment, name ...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2018 at 02:05 PM -- 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...
<filename>roadshow-nn.sql -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 27, 2018 at 07:16 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
<filename>wash-box.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 21, 2021 at 12:49 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
CREATE TABLE IF NOT EXISTS donators_logs ( filename text not null, message text not null );
CREATE DATABASE IF NOT EXISTS `brothers` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `brothers`; -- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: brothers -- ------------------------------------------------------ -- Server version 8.0.19 /*!...
SELECT * FROM department; SELECT department, COUNT(id) AS number_courses FROM course_names GROUP BY department; SELECT department, SUM(total_enrolled) AS sum_enrolled FROM course_names GROUP BY department;
USE employer_managerdb; /* Insert 3 Rows into your new table */ /*dept table*/ INSERT INTO department (department_name) VALUES ("Engineering"), ("Finance"), ("Legal"), ("Sales"); /*role table*/ INSERT INTO role (title, salary, department_id) VALUES ("Sales Lead", 100000, 5); INSERT INTO role (title, salary, departm...
CREATE FUNCTION `strip_tags`( `$str` TEXT ) RETURNS text LANGUAGE SQL NOT DETERMINISTIC CONTAINS SQL SQL SECURITY DEFINER COMMENT '' BEGIN DECLARE $start, $end INT DEFAULT 1; LOOP SET $start = LOCATE("<", $str, $start); IF (!$start) THEN RETURN $str; END IF; SET $end = LOCATE(">", $str, ...
ALTER TABLE [dbo].[Surveys] ADD CONSTRAINT [DF_Surveys_IsActive] DEFAULT ((1)) FOR [IsActive];
CREATE TABLE UserPasswordHistory ( UserId varchar(50) NOT NULL, Password varchar(2048) NOT NULL, Salt varchar(2048) NOT NULL, PasswordProfileId varchar(50) NOT NULL, DateSet datetime NOT NULL, CONSTRAINT [FK_UserPasswordHistory_User] FOREIGN KEY(UserId) REFERENCES [User](Id) ) GO
<reponame>DukeMobileTech/AndroidiSEE<gh_stars>1-10 ALTER TABLE AdminSettings ADD COLUMN ShowSurveys BOOLEAN; ALTER TABLE Questions ADD COLUMN IdentifiesSurvey BOOLEAN;
-- -- table -- create table {SCHEMA}view_windows ( views character varying(6138) not null, start_date_offset int, end_date_offset int, start_date_fixed date, end_date_fixed date, window_options character varying(32768), primary key (views) ) distkey (views) sortkey (views); -- -- data -- insert into {SCH...
<reponame>pradeepkumarcm-egov/DIGIT-Dev ALTER TABLE eg_fsm_application ADD COLUMN IF NOT EXISTS possible_srv_date bigint; ALTER TABLE eg_fsm_application_auditlog ADD COLUMN IF NOT EXISTS possible_srv_date bigint ; ALTER TABLE eg_fsm_application ADD COLUMN IF NOT EXISTS dso_id character varying(64); ALTER TABLE eg_fsm_...
<reponame>CSCfi/antero<filename>db/sql/2023__alter_table_arvo_sa_luodut_vastaajatunnukset.sql USE [ARVO_SA] ALTER TABLE [sa].[sa_arvo_luodut_vastaajatunnukset] ADD [vastauskertoja] [int] NULL; USE [ANTERO]
-- CreateTable CREATE TABLE "User" ( "id" TEXT NOT NULL, "email" TEXT NOT NULL, "password" TEXT NOT NULL, "name" TEXT, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, "companyId" TEXT, CONSTRAINT "User_pkey" PRIMARY KEY ("id") ); -- Creat...
-- file:horology.sql ln:474 expect:true SELECT to_timestamp('2005527', 'YYYYIWID')
<reponame>bekuno/oc-server3 SET NAMES 'utf8'; DROP TABLE IF EXISTS `cache_desc`; CREATE TABLE `cache_desc` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uuid` varchar(36) NOT NULL, `node` tinyint(3) unsigned NOT NULL DEFAULT '0', `date_created` datetime NOT NULL COMMENT 'via Trigger (cache_desc)', `last_m...
DROP FUNCTION IF EXISTS priceuomconvert(numeric, numeric, numeric, numeric, integer); CREATE FUNCTION priceuomconvert(p_m_product_id numeric, p_price numeric, p_price_uom_id numeric, p_c_uom_to_id numeric, ...
DECLARE @channelName nvarchar(512) = 'com1://localhost'; PRINT [ChannelManager].[EnableChannelLogging] (@channelName)
select avg(cast(l_quantity * 25264513 as INT4)) as avg from lineitem where l_quantity > 0;
<gh_stars>100-1000 CREATE SCHEMA IF NOT EXISTS ${dbName}; USE ${dbName}; /* Create the User table */ CREATE TABLE user ( id CHAR(36) NOT NULL, user_name VARCHAR(256) NOT NULL, access_key VARCHAR(256) NOT NULL, data BLOB NOT NULL, PRIMARY KEY (id), INDEX access_key_index (access_key), INDEX...
INSERT INTO site_key (id, site_key, updated, inserted) VALUES (0, 'smtp_password', '<PASSWORD>', NULL);
-- View: vw_rco_publiclands_citycounty DROP VIEW IF EXISTS vw_rco_publiclands_citycounty CASCADE; CREATE OR REPLACE VIEW vw_rco_publiclands_citycounty AS SELECT vw_big_dataset.gid, vw_big_dataset.geom, vw_big_dataset.prov1 AS dataproviderid, vw_big_dataset.provide_type AS provider_type, vw_big_dataset.owner, vw_big...
<reponame>amtwo/sql-server-estate-manager DELETE pl FROM Staging.SqlPatchLevels AS pl WHERE MajorVersion = 12; INSERT INTO Staging.SqlPatchLevels (ProductVersion, MajorVersion, ProductLevel, ProductUpdateLevel, ReleaseDate, SupportEndDate) SELECT ProductVersion, MajorVersion, ProductLevel, ProductUpdateLevel, ReleaseD...
<filename>openGaussBase/testcase/KEYWORDS/system_user/Opengauss_Function_Keyword_System_user_Case0032.sql -- @testpoint:opengauss关键字system_user(非保留),作为用户名 --关键字explain作为用户名不带引号,创建成功 drop user if exists system_user; CREATE USER system_user PASSWORD '<PASSWORD>'; drop user system_user; --关键字explain作为用户名加双引号,创建成功 drop ...
<reponame>vasilvalkov/Databases -- 07. Create a stored procedure for creating a Superhero, with provided name, secret identity, bio, alignment, a planet and 3 powers (with their types) -- Powers, power types, planet and alignement should be reused, if they are already in the database USE SuperheroesUniverse GO CRE...
CREATE TABLE [Identity].[AspNetRoleClaims] ( [Id] INT NOT NULL, [RoleId] NVARCHAR(256) NOT NULL, [ClaimType] NVARCHAR(256) NOT NULL, [ClaimValue] NVARCHAR(256) NOT NULL, CONSTRAINT [PK_AspNetRoleClaims] PRIMARY KEY CLUSTERED ( [Id] ), CONSTRAINT [FK_AspNetRoleClaims_AspNetRole...
<filename>ptsp.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Jul 2019 pada 09.55 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
<reponame>juanfernandez2306/cercania_centro_salud<gh_stars>0 SELECT ROUND( ST_X(geom), 5) AS lng, ROUND( ST_Y(geom), 5) AS lat, UPPER(nombre) AS name, ROUND( ST_Distance_Sphere( geom, ST_GeomFromText(%s, 4326) ), 2) AS distance FROM establecimientos_salud WHERE ST_Contains( ST_Buffe...
SELECT * FROM SYSTEMS WHERE SYSTEM_NAME = ? AND DELETE_FLAG = 0; ;
<gh_stars>0 select mvtw_ope,mvtw_eve,mvtw_dco,mvtw_lib, Debit , Credit, sum(Credit-Debit) over (partition by mvtw_age||mvtw_cha||mvtw_cli||mvtw_suf order by mvtw_dco rows BETWEEN unbounded preceding AND current row ) as Solde, mvtw_dva,mvtw_lic,mvtw_ser from ( select mv.mvtw_ope,mv.mvtw_eve, mv.mvtw_dco,mv.mvtw_...
<reponame>luiighi2693/administrationRequeriments create table requeriments ( id int auto_increment, priority int null, idRow varchar(50) null, team varchar(250) null, deadLine varchar(50) ...
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:8889 -- Généré le : lun. 13 avr. 2020 à 13:55 -- Version du serveur : 5.7.26 -- Version de PHP : 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
<reponame>nickyrucker1979/Exasol -- Use this to create connection with the querying user's permissions import from jdbc at 'jdbc:postgresql://...' user '' identified by '' statement 'select * from requests limit 100' ; -- Create remote connection create connection canvas_redshift_nr...
UPDATE sms SET type = ? WHERE type = ? SELECT _id, type, source, body, timestamp, device_id FROM push;"); SELECT 1 FROM apns WHERE mccmnc = ? AND apn = ?", [mccmnc, apn.get("apn UPDATE thread SET snippet = ?, snippet_type = ? WHERE _id = ? UPDATE thread SET status = ?, delivery_receipt_count = ? WHERE _id = ? CREATE...
<gh_stars>10-100 # --- !Ups DROP TRIGGER users_au_trg; CREATE TRIGGER users_au_trg AFTER UPDATE ON users FOR EACH ROW BEGIN UPDATE surveys SET email = NEW.email WHERE user_id = NEW.id;; UPDATE contacts SET user = NEW.email WHERE user_id = NEW.id;; UPDATE contact_lists SET user = NEW.email WHERE user_id = NEW...
ALTER TABLE `spell_script_target` CHANGE COLUMN `targetEntry` `targetEntry` int(11) unsigned default '0', ADD UNIQUE KEY `entry_type_target` (`entry`,`type`,`targetEntry`);