首页>代码>java web开发在线电商购物车系统(jsp+jdbc+spring mvc+bootstrap)>/Ebdb-client/src/com/dspt/dao/impl/UserDaoImpl.java
package com.dspt.dao.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;
import java.util.Date;

import com.dspt.dao.intf.I_UserDao;
import com.dspt.entity.UserBean;
import com.dspt.util.DBUtil;
/*客户端用户实现类*/
public class UserDaoImpl implements I_UserDao{
	public Connection conn;
	public ResultSet rs;
	public PreparedStatement pst;
	
	/*注册昵称查询*/
	@Override
	public Boolean finduser(String useraccount) throws Exception {
		String sql="select * from userinfo where uaccount=?";
		conn=DBUtil.getConnection();
		pst=conn.prepareStatement(sql);
		pst.setString(1,useraccount);
		rs=pst.executeQuery();
		Boolean flag=false;
		if(rs.next()){
			flag=true;//flag为true,说明该昵称被注册
		}
		return flag;
	}
}
最近下载更多
xiao1111  LV3 2024年6月18日
2036495585  LV9 2023年10月6日
lzlzyw  LV14 2022年3月24日
jdndbh  LV6 2021年12月19日
憨代写  LV2 2021年12月5日
〖怪咖〗  LV7 2021年4月11日
1771658781  LV5 2020年12月27日
Demo1111  LV30 2020年12月17日
tnrthr  LV6 2020年12月16日
uuu33442  LV4 2020年11月3日
最近浏览更多
微信网友_7309216833228800  LV1 2024年12月23日
592132324  LV4 2024年12月11日
suhe_5254 2024年12月1日
暂无贡献等级
小黄同学  LV8 2024年9月29日
xiao1111  LV3 2024年6月18日
韩韩hssfdfd 2024年6月5日
暂无贡献等级
zolscy  LV24 2024年3月25日
a2418735612  LV1 2024年1月4日
微信网友_6797846869299200  LV7 2024年1月1日
lwqzyx  LV1 2023年12月22日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友