Topic: 请问setString(1,username)含义

  Print this page

1.请问setString(1,username)含义 Copy to clipboard
Posted by: athen
Posted on: 2005-02-28 00:49

conn = DriverManager.getConnection(sConnStr);
      PreparedStatement prepStmt = conn.prepareStatement(sql);
      
      prepStmt.setString(1,userName);
这里的prepStmt.setString(1,userName);是什么意思 感激

2.Re:请问setString(1,username)含义 [Re: athen] Copy to clipboard
Posted by: liuyxit
Posted on: 2005-03-04 15:08

将SQL语名的第一个参数(字符串中的问号)设为变量userName

3.Re:请问setString(1,username)含义 [Re: athen] Copy to clipboard
Posted by: another
Posted on: 2005-03-18 11:23

athen wrote:
conn = DriverManager.getConnection(sConnStr);
      PreparedStatement prepStmt = conn.prepareStatement(sql);
      
      prepStmt.setString(1,userName);
这里的prepStmt.setString(1,userName);是什么意思 感激


同楼下,而且这个是String类型的参数


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923