oracle9i数据库 sql = "SELECT distinct substr(name,1,8) as name,caption,type,INPUTORDER from S_table where type <> 1 ORDER BY INPUTORDER" SET RS1 = SERVER.CreateObject("ADODB.RECORDSET") RS1.OPEN SQL1,CONN,1,1 for i = 0 to rs1.fields.count-1 response.write(rs1.fields(i).name&",")//显示的是后面三列的字段名称 next 若将distinct去掉则可以正确显示