CREATE TABLE IF NOT EXISTS `item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`application_id` int(11) NOT NULL,
`type` varchar(255) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`alias` varchar(255) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`modified_by` int(11) NOT NULL,
`publish_up` datetime NOT NULL,
`publish_down` datetime NOT NULL,
`priority` int(11) NOT NULL,
`hits` int(11) NOT NULL,
`state` tinyint(3) NOT NULL,
`access` int(11) NOT NULL,
`created_by` int(11) NOT NULL,
`created_by_alias` varchar(255) NOT NULL,
`searchable` int(11) NOT NULL,
`elements` longtext NOT NULL,
`params` longtext NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ALIAS_INDEX` (`alias`),
UNIQUE KEY `name_2` (`name`),
KEY `PUBLISH_INDEX` (`publish_up`,`publish_down`),
KEY `STATE_INDEX` (`state`),
KEY `ACCESS_INDEX` (`access`),
KEY `CREATED_BY_INDEX` (`created_by`),
KEY `NAME_INDEX` (`name`),
KEY `APPLICATIONID_INDEX` (`application_id`),
KEY `TYPE_INDEX` (`type`),
KEY `MULTI_INDEX` (`application_id`,`access`,`state`,`publish_up`,`publish_down`),
KEY `MULTI_INDEX2` (`id`,`access`,`state`,`publish_up`,`publish_down`),
KEY `ID_APPLICATION_INDEX` (`id`,`application_id`),
FULLTEXT KEY `SEARCH_FULLTEXT` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
Таблица в которую надо скопировать.
Как я понимаю мне необходимо использовать ON DUPLICATE KEY UPDATE имя_столбца=выражение.
Мне бы просто игнорировать все и всех.