Показать сообщение отдельно

  #3  
Старый 13.08.2009, 09:31
Patronik
Познающий
Регистрация: 16.03.2009
Сообщений: 82
С нами: 9029260

Репутация: 23
По умолчанию

Цитата:
Сообщение от _StOnE_  
CREATE TABLE messages (
id_messages int PRIMARI KEY NOT NULL AUTO INCREMENT,
messages text,
user_id int not null references users(user_id),
theme_id int not null references themes(theme_id)
)

может так?!
Нет не так)) Я уже написал)
CREATE TABLE messages (
id_messages int PRIMARI KEY NOT NULL AUTO INCREMENT,
messages text,
mes_user_id int not null,
mes_theme_id int not null,
FOREIGN KEY(mes_user_id) references users(user_id),
FOREIGN KEY(mes_theme_id) references themes(theme_id)
);
 
Ответить с цитированием