急急急!我想应聘一个超市的网络管理,...
需要那些实际应用知识
作者 gasgas 发布于 2003-08-00 分类:php基础编程
$sql="select text, time from content where id=max(id)";
逛论坛交流:这样为什么会有错
$sql="select text, time from content where id=‘max(id)’";
这样行吗?
谢谢
在WHERE条件后不能直接使用集合函数
select text, time from content where id=(select max(id) from content)
time是不是属于保留字呀,数据库里,time有数据吗?
确实有time数据类型,不要起这个名字吧
谢谢各位大侠
6 条回复
回复