CREATE TABLE t_copy ENGINE=MEMORY SELECT * FROM t_original;
मैं वास्तव में यह करने की कोशिश की, यह काम करता है !!!
mysql> show create table queue\G
*************************** 1. row ***************************
Table: queue
Create Table: CREATE TABLE `queue` (
`ndx` int(11) NOT NULL AUTO_INCREMENT,
`folderid` int(11) NOT NULL,
PRIMARY KEY (`ndx`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
1 row in set (0.02 sec)
mysql> create table queue_memory engine=MEMORY as select * from queue;
Query OK, 0 rows affected (0.05 sec)<BR>
Records: 0 Duplicates: 0 Warnings: 0<BR>
[email protected] (DB test) :: show create table queue_memory\G
*************************** 1. row ***************************
Table: queue_memory
Create Table: CREATE TABLE `queue_memory` (
`ndx` int(11) NOT NULL DEFAULT '0',
`folderid` int(11) NOT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
1 row in set (0.00 sec)
इसे आज़माएं !!!
मैं नीचे नीचे इस जवाब दे दिया। आपके द्वारा दिया गया 'यह नहीं' हिस्सा लगभग करीब था। क्वेरी के पीछे बस (जैसे t_original) डालें। – RolandoMySQLDBA