logo

한국어

Language

there is a simpler solution for MySQL via MERGE table engine:

imagine we have table named rus_vacancies and need its English equivalent

create table eng_vacancies select * from rus_vacancies;
delete from eng_vacancies;
alter table eng_vacancies ENGINE=MERGE;
alter table eng_vacancies UNION=(rus_vacancies);

now table rus_vacancies equals to table eng_vacancies for any read-write operations

one limitation - original table must have ENGINE=MyISAM (it can be easily done by "alter table rus_vacancies ENGINE=MyISAM")

조회 수 :
13513
등록일 :
2015.10.15
14:36:21 (*.175.160.210)
엮인글 :
http://www.cubequest.org/xe/index.php?mid=sql&document_srl=165937&act=trackback&key=43e
게시글 주소 :
http://www.cubequest.org/xe/index.php?document_srl=165937
List of Articles
번호 제목 글쓴이 날짜 조회 수
49 [MYSQL]테이블 크기 확인 Cheeryj 2017-05-01 3009
48 [MYSQL]GROUP_CONCAT persona 2016-10-28 2541
47 Get size of all tables in database persona 2016-10-20 24986
46 Enterprise manager에서 한글로 바뀌는 문제 persona 2016-10-20 1270
45 View the Definition of a Stored Procedure persona 2016-08-03 3083
44 [MSSQL] 테이블 프로시저 존재 체크 persona 2016-07-28 2323
43 [MSSQL] Collation persona 2016-06-23 3895
42 [MSSQL] RESTORE할 때 오류 persona 2016-06-21 2936
41 [MSSQL] Resetting SQL Server Identity Columns: persona 2016-06-20 1725
40 [MSSQL]using SQLCMD persona 2016-06-05 6375
39 PostgreSQL 설치 & 사용법 정리 persona 2016-05-05 21865
38 [PostgreSQL]설치 persona 2016-04-30 34255
37 [MSSQL] Index 리스트 얻기 persona 2016-04-07 7539
36 MySQL EXPORT & IMPORT [1] persona 2016-02-20 4943
» MySQL via MERGE table engine: persona 2015-10-15 13513
34 MySQL charset encoding [1] persona 2015-06-12 5413
33 SQL SERVER INSTANACE LIST persona 2015-04-17 4262
32 SQL JOIN file Cheeryj 2015-03-25 4934
31 SQL SERVER SINGLE USER MODE persona 2015-03-17 5596
30 MSSQL FILESTREAM 활성화 persona 2015-03-17 5514