| 发表于:2007-04-30 15:58:21 楼主 |
具体的代码是这样的: dim id as string = request( "userid ") dim str as string = "provider=msdaora.1;data source=kksb;user id=kksb;password=kksb2007; " dim conn as system.data.oledb.oledbconnection = new system.data.oledb.oledbconnection(str) dim dr as system.data.oledb.oledbdatareader conn.open() dim strsql as string = "select * from t_user where userid= " & id dim comm as system.data.oledb.oledbcommand = new system.data.oledb.oledbcommand(strsql,conn) dr = comm.EXECutereader() 之后怎样才能提取到各个字段的内容? |
|
|
|
|