text
stringlengths
6
9.38M
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2019 年 03 月 14 日 07:55 -- 伺服器版本: 10.1.37-MariaDB -- PHP 版本: 7.1.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
# ************************************************************ # Sequel Pro SQL dump # Version 4135 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.42) # Database: angularcode_employee # Generation Time: 2015-07-23 11:41:25 +0000 # ************************************...
select distinct d.dtype, d.title, q.query_text, q.position from documents d, queries q where d.id = q.document_id and q.position > 0 and q.position < 10; select * from documents where id in (select distinct d.id from documents d, queries q where d.id = q.document_id and q.position > 0 and q.position < 10); select *...
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50626 Source Host : localhost:3306 Source Database : task Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2020-09-14 19:04:09 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
drop table kol_lankymas; create table kol_lankymas ( id integer ,token text ,uid bigint ,status text );
drop table portasset; drop table performance_statics; drop table portholding; drop table portasset_bak; drop table performance_statics_bak; drop table portholding_bak;
DROP TRIGGER IF EXISTS before_insert_user; DELIMITER ;; CREATE DEFINER=web@localhost TRIGGER before_insert_user BEFORE INSERT ON users FOR EACH ROW BEGIN DECLARE $count INT DEFAULT NULL; IF NEW.status = 0 THEN INSERT INTO spammers (email, ip, time) VALUES (NEW.email, NEW.last_access_ip, NEW.create_tim...
CREATE TABLE `news` ( `newsId` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT NULL, `content` text, `author` varchar(50) DEFAULT NULL, PRIMARY KEY (`newsId`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; CREATE TABLE `user` ( `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, ...
CREATE TABLE Kondukter ( mbr_r INTEGER NOT NULL , br_doz_kond INTEGER ) ;
# Mysql은 키워드와 구문에서 대소문자를 구분하지 않음 # 한 줄 주석 -- 한 줄 주석 /* 두 줄 이상의 주석 */ /* 주요구문 1. CREATE DATABASE 2. ALTER DATABASE 3. CREATE TABLE 4. ALTER TABLE 5. DROP TABLE 6. INSERT INTO 7. UPDATE 8. DELETE 9. SELECT 10. CREATE INDEX 11. DROP INDEX */ # 기본셋팅 CREATE TABLE Reservation(ID INT, Name VARCHAR(30), ReserveD...
-- +goose Up create table if not exists dbo.products_types ( id uuid not null primary key, name varchar(200) not null, created_at timestamp default now() not null, is_deleted bool default false not null ); alter table dbo.products_types owner to appl...
CREATE TABLE IF NOT EXISTS guild ( id varchar(255) NOT NULL, command_prefix varchar(10) NOT NULL, volume smallint NOT NULL, was_active_at timestamp NOT NULL DEFAULT now(), PRIMARY KEY (id) ); CREATE TABLE IF NOT EXISTS bind ( id SERIAL, guild_id varchar(255) NOT NULL, bind_key smallint...
CREATE TABLE users ( username VARCHAR(45) NOT NULL, password VARCHAR(60) NOT NULL, enabled BOOLEAN NOT NULL DEFAULT TRUE, accountNonExpired BOOLEAN NOT NULL DEFAULT TRUE, accountNonLocked BOOLEAN NOT NULL DEFAULT TRUE, credentialsNonExpired BOOLEAN NOT NULL DEFAULT TRUE, PRIMARY KEY (username) ); CREATE ...
DROP PROCEDURE IF EXISTS reporting.SP_dm_campaign_mapping_upd; CREATE PROCEDURE reporting.`SP_dm_campaign_mapping_upd`() BEGIN /********************************************************************************************************************************* --- NAME : SP_dm_campaign_mapping_upd --- DESCRIPTION: s...
/*Script to create moviecruiser database*/ create database if not exists moviecruiser; /*Script to use the moviecruiser database*/ use moviecruiser; /*Script to create table user*/ create table if not exists user( us_id int primary key not null auto_increment, us_name varchar(100)); /*Script to create tab...
-- MySQL dump 10.11 -- -- Host: localhost Database: allofrss -- ------------------------------------------------------ -- Server version 5.0.45-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_...
INSERT INTO products (name, price, create_at) VALUES ('Panasonic', 800, NOW()); INSERT INTO products (name, price, create_at) VALUES ('Sony', 800, NOW()); INSERT INTO products (name, price, create_at) VALUES ('Apple', 800, NOW()); INSERT INTO products (name, price, create_at) VALUES ('Sony Notebook', 800, NOW()); INSER...
delete from HtmlLabelIndex where id=21642 / delete from HtmlLabelInfo where indexid=21642 / INSERT INTO HtmlLabelIndex values(21642,'出口提示信息') / INSERT INTO HtmlLabelInfo VALUES(21642,'出口提示信息',7) / INSERT INTO HtmlLabelInfo VALUES(21642,'Tips export information',8) /
-- phpMyAdmin SQL Dump -- version 4.0.10.14 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 06-06-2016 a las 23:49:21 -- Versión del servidor: 5.5.49-cll -- Versión de PHP: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
DROP TABLE IF EXISTS records; DROP SEQUENCE IF EXISTS global_seq; CREATE SEQUENCE global_seq START 100000; CREATE TABLE records ( id INTEGER PRIMARY KEY DEFAULT nextval('global_seq'), phone VARCHAR NOT NULL, latitude VARCHAR NOT NULL, longitude VARCHAR NOT NULL, dateTime VARCHAR NOT N...
{{config(alias='cex')}} SELECT * FROM {{ ref('labels_cex_ethereum') }}
--1 Find the title of all movies directed by Steven Spielberg select title from movie where director='Steven Spielberg' --2 Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order. select distinct mo.year from rating r JOIN movie mo on mo.mid=r.mid where star...
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : ven. 28 mai 2021 à 08:56 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 5.7.9 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 9.3.0.4984 -- -------------------------------------------------------- /*!...
START TRANSACTION; CREATE TEMPORARY TABLE limited ( id INT); INSERT INTO limited SELECT id FROM posts ORDER BY created_at DESC LIMIT 5; DELETE FROM posts WHERE id NOT IN (SELECT id FROM limited); DROP TEMPORARY TABLE limited; COMMIT; select * from posts;
--关联dw_data.dw_class class表,找出年级,服务中心,教学点。 DROP TABLE IF EXISTS test.xes_pad_audition_sub_one_info; CREATE TABLE IF NOT EXISTS test.xes_pad_audition_sub_one_info AS SELECT audition_info.city_id, audition_info.city_name, audition_info.student_id, audition_info.cla_id, audition_info.class_ty...
-- MySQL dump 10.13 Distrib 5.5.54, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: STUDENT -- ------------------------------------------------------ -- Server version 5.5.54-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
CREATE VIEW chat.messages_view AS (SELECT message.id AS id, room.id AS room_id, u.id AS user_id, message.created_at AS created_at, json_build_object( 'author', u.nickname, 'number', message.id, 'text...
-- Provide a query that shows total sales made by each sales agent. SELECT e.FirstName || " " || e.LastName AS SalesAgent, SUM(i.Total) as TotalSales FROM Employee e JOIN Customer c ON c.supportRepId == e.EmployeeId JOIN Invoice i ON i.CustomerId == c.CustomerId GROUP BY SalesAgent ;
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 30, 2018 at 10:29 PM -- Server version: 5.7.24-0ubuntu0.18.04.1 -- PHP Version: 7.2.10-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
update ACT_GE_PROPERTY set VALUE_ = '6.5.0.4' where NAME_ = 'common.schema.version';
UPDATE properties SET address = $2, city = $3, state = $4, zip = $5 WHERE property_id = $1 -- insert into properties (property_name, description, address, city, state, zip, image_url, loan_amt, mortgage, rent, user_id) -- values(3, 'pink house', 'mediocre', 1234, 'Riverton', 'UT', 84343,'http', 150000, 1500, 800, 1...
/* Navicat MySQL Data Transfer Source Server : wenchen Source Server Version : 50153 Source Host : localhost:3306 Source Database : zcgl Target Server Type : MYSQL Target Server Version : 50153 File Encoding : 65001 Date: 2018-01-12 16:14:45 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
set transaction isolation level read uncommitted ; /* c.clientid ,c.fio ,c.IsFrauderChangedAt ,un.ClaimValue as IsFrauderChangedBy ,h.name as RegionName ,p.Productid ,p.StartedOn ,p.Amount ,p.StatusName ,bapi.AccountNum ,b.Name as BankName */ select distinct uc.UserId ...
ALTER TABLE LOCALES DROP COLUMN IF EXISTS DISP_NAME; ALTER TABLE LOCALES ADD COLUMN DISP_NAME character varying(128); comment on column LOCALES.DISP_NAME is '表示名'; ALTER TABLE LOCALES DROP COLUMN IF EXISTS FLAG_ICON; ALTER TABLE LOCALES ADD COLUMN FLAG_ICON character varying(24); comment on column LOCALES.FLAG_ICON is...
SELECT MAX(POPULATION) - MIN(POPULATION) AS POPULATION FROM CITY;
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE Modules(code VARCHAR(10), name VARCHAR(100)); INSERT INTO Modules VALUES('CMP020C101','Software Development 1'); INSERT INTO Modules VALUES('CMP020C102','Computer Systems'); INSERT INTO Modules VALUES('CMP020C103','Mathematics for Computer Science'); INSERT INTO ...
CREATE TABLE cookie ( user_id integer, auth varchar );
-- MySQL Script generated by MySQL Workbench -- Tue Dec 22 15:32:21 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
CREATE TABLE exchange ( id int NOT NULL AUTO_INCREMENT, abbrev varchar(32) NOT NULL, name varchar(255) NOT NULL, city varchar(255) NULL, country varchar(255) NULL, currency varchar(64) NULL, timezone_offset time NULL, created_date datetime NOT NULL, last_updated_date datetime NOT NULL, PRIMARY KEY (...
SELECT col_id AS ID, col_importstatus AS IMPORTSTATUS, col_notes AS NOTES, col_errorlog as ERRORLOG, col_error_cnt AS ERROR_CNT, col_cmspath AS CMSPATH, ------------------------------------------- F_getnamefromaccesssubject(col_createdby) AS CreatedBy_Name, F_util_getdrtnfrmnow(col_createdd...
CREATE TABLE IF NOT EXISTS Pre_Dream_Companies ( id SERIAL PRIMARY KEY, company varchar(70) UNIQUE not NULL );
-- note: this is for testing, need to integrate into db-init.sql -- DROP PROCEDURE register_user; DROP PROCEDURE IF EXISTS register_user ; delimiter // CREATE PROCEDURE register_user (IN nn CHAR(100), IN pp CHAR(30), IN aa VARCHAR(30)) BEGIN START TRANSACTION WITH CONSISTENT SNAPSHOT; IF aa <> '' THEN SET @cc = (...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2021 at 03:50 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
CREATE TABLE tweets ( ID INT NOT NULL, CONTENT VARCHAR(140) NOT NULL, POSTEDAT TIMESTAMP NOT NULL, DEVICE VARCHAR(50), AUTHOR INT REFERENCES USERs(ID), PRIMARY KEY (ID, AUTHOR) )
-- apply changes alter table users add column any varchar(255);
CREATE table IF NOT EXISTS Dream_Careers ( UID uuid REFERENCES jobseeker(uid) ON DELETE CASCADE, career_id int REFERENCES Pre_Dream_Careers(id), Ranking int NULL, PRIMARY KEY (UID, career_id) );
SELECT * FROM BONS_BUVEURS /
declare v_Source nvarchar2(255); v_Target nvarchar2(255); v_Transition nvarchar2(255); v_CaseId Integer; begin v_Source := :Source; v_Target := :Target; v_CaseId := :CaseId; begin select col_transition into v_Transition from tbl_dict_casetransition cst inner join tbl_dict_casestate csss on c...
CREATE TABLE tariff ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, minute_cost FLOAT NOT NULL, mb_cost FLOAT NOT NULL, sms_cost FLOAT NOT NULL ); CREATE TABLE device ( id SERIAL PRIMARY KEY, model VARCHAR(100) NOT NULL ); CREATE TABLE sm...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 02, 2017 at 03:41 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP FUNCTION IF EXISTS `artex_all`.`relevance`; DELIMITER $$ CREATE FUNCTION `artex_all`.`relevance`(pattern VARCHAR(255), str VARCHAR(255)) RETURNS INT(3) DETERMINISTIC BEGIN DECLARE rel INT(3); DECLARE ptrn VARCHAR(255); SET rel=0; WHILE pattern!='' DO SET ptrn=SUB...
INSERT INTO `world`.`conversion_table` (`id`, `db_name`, `hebrew_name`) VALUES ('1', 'last_name.pilots.name=\'אורי\'', 'אורי'); INSERT INTO `world`.`conversion_table` (`id`, `db_name`, `hebrew_name`) VALUES ('2', 'pilot_name.planes.name=\'שביט\'', 'שביט היום'); INSERT INTO `world`.`conversion_table` (`id`, `db_name`, ...
select fn_db_add_column('audit_log', 'quota_id', 'UUID'); select fn_db_add_column('audit_log', 'quota_name', 'VARCHAR(60)');
select * from v$sql where sql_id = 'agtmq9nq5ydfy'; select count(1) from v$session s where s.module = 'RK_RUNSTAT'; --and s.action = 'V5'; select * from v$session s where s.module = 'RK_RUNSTAT';-- and s.action = 'V5' order by status,sid; select * from v$active_session_history where module = 'RK_RUNSTAT'; select * f...
SELECT id, from_id, MAX(created_at) as updated_at FROM (SELECT id, from_id, created_at FROM messages WHERE for_id = 1 UNION SELECT id, for_id, created_at FROM messages WHERE from_id = 1 ORDER BY created_at DESC) as talks GROUP BY from_id ORDER BY created_at DESC; SELECT id, from_id, MAX(created_at) as updated_at FROM ...
CREATE PROCEDURE SelectMembersWithInfo AS SELECT SSN as 'Social security number', concat(FName, ' ', LName) as 'Full name', Phone, concat(AddressLine1 , City, ZIPID, ZipName) as 'Full Campus Address', CardID, ExpiryDate as 'Card expiry', EmpType as 'Employee Type' FROM Members Inner Join ( SELECT ...
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 20, 2021 at 12:10 PM -- Server version: 8.0.25-0ubuntu0.20.04.1 -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
-- 小美是一所中学的信息科技老师,她有一张 seat 座位表,平时用来储存学生名字和与他们相对应的座位 id。 --其中纵列的 id 是连续递增的 --小美想改变相邻俩学生的座位。 --你能不能帮她写一个 SQL query 来输出小美想要的结果呢? -- -- -- --示例: -- --+---------+---------+ --| id | student | --+---------+---------+ --| 1 | Abbot | --| 2 | Doris | --| 3 | Emerson | --| 4 | Green | --| ...
-- Applicant=================================== drop table if exists job_seeker; -- ======ADD APPLICANT insert into job_seeker (username, email, password, name , phone, github, linkedin, city, state, portfolio, languages) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11); select email, username from job_...
select isnull(c.CreditId, ui.UserId) as EntityId , ui.CompanyName , ui.UrlParameters , param.UrlXml.value('(/lead/@utm_medium)[1]', 'nvarchar(100)') as utm_medium , e.Label_en , ush.DateCreated from dbo.UtmStepHistory ush inner join dbo.UtmInfo ui on ui.Id = ush.UtmInfoId left join dbo.Enums e o...
CREATE DATABASE IF NOT EXISTS `hb_student_tracker`; USE `hb_student_tracker`; DROP TABLE IF EXISTS `student`; /* */ CREATE TABLE `student` ( `id` int(11) NOT NULL AUTO_INCREMENT, `first_name` varchar(45) DEFAULT NULL, `last_name` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, PRIMARY K...
-- lists all the cities in hbtn_0d_usa SELECT cities.id, cities.name, states.name INNER JOIN states ON cities.state_id = states.id FROM cities ORDER BY cities.id ASC;
CREATE TABLE pgdist_test_schema_2.test_table_2( id SERIAL NOT NULL, message TEXT );
delete from HtmlLabelIndex where id=24785 / delete from HtmlLabelInfo where indexid=24785 / INSERT INTO HtmlLabelIndex values(24785,'审批中的费用') / INSERT INTO HtmlLabelInfo VALUES(24785,'审批中的费用',7) / INSERT INTO HtmlLabelInfo VALUES(24785,'the expenses of approving',8) / INSERT INTO HtmlLabelInfo VALUES(24785,'審批中的費用...
create trigger trg_before_ins_cove before insert on cotizaciones_ventas for each row execute procedure f_validar_cove_ins() ; \q
CREATE TABLE TNDS_T_RCP_PHA_CO ( SEQ1_NO VARCHAR2 (10) NOT NULL ENABLE, SEQ2_NO VARCHAR2 (51) NOT NULL ENABLE, VLD_FLG NUMBER (1,0), KO_FLG NUMBER (1,0), REC_IDENT_INFO VARCHAR2 (2), CMT_CD ...
create procedure [sp_MSins_SalesSalesTerritory] @c1 int, @c2 nvarchar(50), @c3 nvarchar(3), @c4 nvarchar(50), @c5 money, @c6 money, @c7 money, @c8 money, @c9 uniqueidentifier, @c10 datetime as begin insert into [Sales].[SalesTerritory] ( [TerritoryID], [Name], [CountryR...
DROP TABLE IF EXISTS `product_video_upload_log`;
ALTER TABLE "public"."m_items" ADD COLUMN "m_group_item_id" int4, ADD COLUMN "amount_in_set" numeric;
with p as ( select --top 50 cast(p.ProductId as nvarchar(20)) as ProductId , p.StartedOn , p.StatusName , p.ClientId from stage.dbo.br16599 br left join borneo.prd.vw_product p on p.ContractNumber = br.ContractNumber where not exists ( select 1 from ...
 CREATE TABLE dbo.HtmlContent ( HtmlContentId bigint primary key identity(1,1), KeyName nvarchar(256) not null, Content nvarchar(MAX) , IsMarkDown bit default(0) not null, IsActive bit default(1) not null, IsDeleted bit default(0) not null, AddedOn datetime default(getdate()), AddedBy ...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2019 at 12:42 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
DROP TABLE IF EXISTS tabulka1 CASCADE; CREATE TABLE tabulka1 (i INT, j INT, k INT); INSERT INTO tabulka1 SELECT mod(i, 1000), mod(i, 1333), mod(i,3498) FROM generate_series(1,100000) s(i); EXPLAIN SELECT i, count(*) FROM tabulka1 GROUP BY i; EXPLAIN SELECT DISTINCT i FROM tabulka1 GROUP BY i;
CREATE DATABASE IF NOT EXISTS lodging; USE lodging; CREATE TABLE IF NOT EXISTS location ( location_id int(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, country varchar(255) NOT NULL, city varchar(255) NOT NULL, state varchar(255) NOT NULL )ENGINE=InnoDB DEFAULT CHARACTER SET = utf8; Describe location; CREATE TABLE IF NOT ...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.21 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.5.0.5288 -- -------------------------------------------------------- /*...
select Cause, count(Cause) as Quantity from Death group by(Cause) order by(Cause) desc;
drop table if exists industry_factor_simulation_stage; create table industry_factor_simulation_stage ( iteration_id integer(50), factor1 decimal(10, 2), factor2 decimal(10, 2), factor3 decimal(10, 2), factor4 decimal(10, 2), version integer(50) );
update code set code_name = '共通基盤ユーザーID' where code_bunrui = '20020' and code = '001'; update code set code_name = 'SARMSユーザーID' where code_bunrui = '20020' and code = '002';
--1.转换成两位小数 select cast(13.1252 as decimal(10,2)) --2.转换日期格式 select CONVERT(VARCHAR(19), GETDATE() ,120)
INSERT INTO topics (id, name) VALUES (1, 'Cinema & TV'); INSERT INTO topics (id, name) VALUES (2, 'General Knowledge'); INSERT INTO topics (id, name) VALUES (3, 'Geography'); INSERT INTO topics (id, name) VALUES (4, 'Israel'); INSERT INTO topics (id, name) VALUES (5, 'Music'); INSERT INTO topics (id, name) VALUES (6, '...
SET @ID := 180691; -- Scarab Coffer SET @FLAG := 2; -- locked chest -- ------------------------- UPDATE `gameobject_template` SET `flags`=@FLAG WHERE `entry`=@ID;
delete from HtmlLabelIndex where id=21737 / delete from HtmlLabelInfo where indexid=21737 / INSERT INTO HtmlLabelIndex values(21737,'自定义右键按钮') / INSERT INTO HtmlLabelInfo VALUES(21737,'自定义右键按钮',7) / INSERT INTO HtmlLabelInfo VALUES(21737,'Custom Right Menu',8) / delete from HtmlLabelIndex where id=21738 / delete ...
DROP DATABASE IF EXISTS bamazon; CREATE database bamazon; USE bamazon; CREATE TABLE products ( item_id INT(10) AUTO_INCREMENT NOT NULL, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INT (100) NOT NULL, PRIMARY KEY (item_id) ); Select * f...
SELECT * FROM SYSTEM_ATTRIBUTES ORDER BY INSERT_DATETIME %s LIMIT ? OFFSET ?;
ALTER TABLE `participant` CHANGE COLUMN `network_tier` `network_tier` VARCHAR(255) NULL DEFAULT NULL ;
declare s scanner_clob := scanner_clob ( ' IDentifier1.IDEnT2' || chr(10) || -- { '+42' || chr(13) || chr(10) || ' func(bla);' || chr(10) || ' here -- is a comment' || chr(13) || chr(10) || ' and /* another # ! ( / * ' || chr(10) || ...
CREATE TABLE [ASData_PL].[FAT2_FrameworkFundingPeriod]( [Id] [int] NOT NULL, [FrameworkId] [varchar](15) NOT NULL, [EffectiveFrom] [datetime] NOT NULL, [EffectiveTo] [datetime] NULL, [FundingCap] [int] NOT NULL, [AsDm_UpdatedDateTime] [datetime2](7) DEFAULT (getdate()) )
SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; INSERT INTO `menu_type` (`code`, `name`) VALUES ('heading', 'Nadpis'), ('html', 'HTML kód'), ('page', 'Statická stránka'), ('presenter', 'Presenter'), ('section', 'Sekce webu'), ('subject', 'Krajský orgán'), (...
SELECT t5.site_name, t5.site_id, t5.device_type, last_seen_local AS last_seen, IF(t6.start_time IS NULL, t5.last_seen_local, t6.start_time) AS last_closed, t5.ip_address, IF(last_seen_local > NOW() - INTERVAL 1 HOUR, t5.mean, 'no comm') AS status FROM (SE...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : jeu. 16 sep. 2021 à 08:21 -- Version du serveur : 10.3.29-MariaDB-0+deb10u1 -- Version de PHP : 7.3.27-1~deb10u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
create table APPL_NM ( APPL_ID NUMBER not null, APPL_NM varchar(20) not null, BUS_OWNER_DEPT varchar(30) not null ) ; create table USR_ROLE ( USR_ROLE_CD NUMBER NOT NULL, USR_ROLE_ABB varchar(6) not null, USR_ROLE_DES varchar(50) not null, CRE8_TS TIMESTAMP(0), JOB_CD_XREF varchar(6), LST_UID varchar(8), LS...
/*For Bug 256*/ INSERT INTO HtmlLabelIndex values(17370,'曾任职务') / INSERT INTO HtmlLabelInfo VALUES(17370,'曾任职务',7) / INSERT INTO HtmlLabelInfo VALUES(17370,'the former position',8) / /*CREATED BY Huang Yu On May 11th,2004 , 应聘 基本信息更新*/ CREATE or replace procedure HrmCareerApply_UpdateBasic (id_1 integer, lastn...
CREATE database lab8; CREATE TABLE actor(actor_id SERIAL PRIMARY KEY , first_name varchar(50), last_name varchar(50), email varchar(50), active_bool bool, create_date date , last_update date, active int); CREATE TABLE film_actor(actor_id SERIAL, first_name varchar(50), last_update date); INSERT I...
drop table if exists common.guide_opt_ins; create table common.guide_opt_ins as select g.*, dd.month_key from (select uid drupal_user_id, content_id guide_nid, to_timestamp(timestamp)::date opt_in_date from drupal.flag_content where fid = 11) g join common.date_d dd on g.opt_in_date...
SELECT * FROM employees WHERE salary = (SELECT salary FROM employees WHERE LOWER(last_name) = 'seo') and LOWER(last_name) != 'seo'; SELECT * FROM employees WHERE salary > (SELECT AVG(salary) FROM employees); S...
-- -- 表的结构 `think_topic` -- CREATE TABLE IF NOT EXISTS `think_topic` ( `id` int(11) NOT NULL AUTO_INCREMENT, `type` tinyint(2) NOT NULL, `userid` varchar(64) DEFAULT '', `content` text NOT NULL, `ctime` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=45 ; -- --...
production: adapter: mysql2 database: redmine_50 host: 127.0.0.1 username: root password: "" encoding: utf8mb4 development: adapter: mysql2 database: redmine_50_development host: 127.0.0.1 username: root password: "" encoding: utf8mb4 test: adapter: mysql2 database: redmine_50_test host:...
alter table notifications drop column notification_timestamp;
CREATE OR REPLACE PROCEDURE RETURNS_GUIDANCE_NAME (P_ID_STUDENT IN STUDENTS.ID%TYPE, P_GUIDING_NAME OUT TEACHERS.NAME%TYPE) IS BEGIN SELECT P.NAME INTO P_GUIDING_NAME FROM PROPOSALS INNER JOIN STUDENTS A ON A.ID = PROPOSALS.FK_AUTHOR_UID INNER JOIN TEACHERS P ON P.ID = PROPOSALS.FK_LEADER_UID WHERE A....