高仿建窑窑变瓷器:select数据库一小题

来源:百度文库 编辑:高考问答 时间:2024/05/02 23:17:51
rs.Open "select a,b,c,d from config",conn,1,1
a=trim(rs("a"))
b=trim(rs("b"))
c=trim(rs("c"))
d=trim(rs("d"))
请问以上这样"select a,b,c,d from config",conn,1,1检索config,为什么不rs.Open "select * from config",conn,1,1 这样检索呢??
(其中a,b,c分别为config表中的列名)

还有我这个config表中只有一列,与多列写法有什么区别呢?还能不能用下边的写法?
rs.Open "select a,b,c,d from config",conn,1,1
a=trim(rs("a"))
b=trim(rs("b"))
c=trim(rs("c"))
d=trim(rs("d"))

不懂。。。。。。。。