|
mysql数据库中的数据:
create table homework
(id int(10) unsigned not null primary key auto_increment,
question tinytext not null,
rightanswer tinytext,
difficulty int(1) not null,
unit varchar(20) not null
);
create table testpaper
(userid varchar(8) not null,
question_id int(10) unsigned not null,
answer tinytext,
note tinytext,
PRIMARY KEY(userid,question_id)
);
然后,我输入select * from homework where id!=testpaper.question_id and testpaper.userid='99091401';
然后屏幕上显示 Unknown table 'testpaper' in where clause
这是为什么呢?
请高手指点,感激不尽!!! |
|