请教高手:
在mysql中,如下的语句中:
select* from [user] where UserName =? and Pwd =? [user],是什么意思?
我是想问:[user]表示的是变量user,还是说,表的名字就叫user?或者是其他的什么意思?
在mysql中,如下的语句中:
select* from [user] where UserName =? and Pwd =? [user],是什么意思?
我是想问:[user]表示的是变量user,还是说,表的名字就叫user?或者是其他的什么意思?
那就要先问你UserName 是字段名还是实体类的属性名了
你能回答这个就自己晓得:[user]是啥玩意了
String sq = "select* from [user] where UserName =? and Pwd =? ";
pstmt = conn.prepareStatement(sq);
pstmt.setString(1, uname);
pstmt.setString(2, pwd); //pstmt.setString(3, repwd);
rs=pstmt.executeQuery();这是我在java中的完整语句,请高手指教。