select max(id) from table where order = 2
来源:百度知道 编辑:UC知道 时间:2024/09/25 20:00:25
万一查询数据库没记录,那这语句岂不会出错,怎么解决
不会吧?只是查不出任何东西而已。你用的什么数据库管理软件?
如果没有记录查询出来是NULL
你试过了吗?就说会出错
if rs.bof and rs.eof then
先判断再处理数据。
另外order=2这是什么意思啊?
select 字段 from 表 where id=max(id),这个有没有语法错误?
select * from table1 where id in (select id from table2),
SELECT * FROM
select 学号,姓名,max(数学) as max数学 from 表1 这个语句是什么意思?
select * from (select id,name from ………,高分悬赏!!这种查询我从没见过
select distinct id ,num=sum(cast((num) as int) from sy order by id desc
sql="select * from main where id="&id 这句啥意思
Set rs=conn.Execute("select *from students where id="&id&"")
有谁知道sql="Select count(id) from ip"中(id)是什么意思
"select id from SessionID where id='"&seid哪错了?