CREATE TABLE `wall` ( `id` int(6) NOT NULL auto_increment, `user_id` int(6) NOT NULL, `who` int(6) NOT NULL, `time` int(11) NOT NULL, `message` text NOT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`) ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=cp1251 AUTO_INCREMENT=8 ; ALTER TABLE `users` ADD `msg_on_wall` TEXT NOT NULL ;