![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
相关问题
我编了et.jsp 和 et.html ,et.jsp是发布新的内容,et.html是一个网页显示最新的一条发布内容,数据库只定义两个:
create table newsaffiche
(
[affiche_content] [text] default '', --公告的内容
[affiche_time] [datetime] NULL , --发公告的时间
)
affiche_time已经改成时间datetime。
以上这样对不对?
但为什么:
select top affiche_content,affiche_time from newsaffiche order by affiche_time desc
运行一下会有:
服务器: 消息 170,级别 15,状态 1,行 1
第 1 行: 'affiche_content' 附近有语法错误。
这是为什么?这和数据库没有数据有没有关系?
提问者:shiyuanyuan 08-14 14:02
答复

