社区
Java SE
帖子详情
什么方法可以处理一条数据中的一项阿
lizhilin
2005-08-14 11:41:02
现在用
Statement sql=con.createStatement();
ResultSet rs=sql.executeQuery("select * from table");
然后调用 rs.getString("...");
但是这种方法不能针对一项数据阿 比如select ID from table where ....
虽然可以得到 rs 但是用 getString处理不行啊
哪位高人给看看
...全文
71
2
打赏
收藏
什么方法可以处理一条数据中的一项阿
现在用 Statement sql=con.createStatement(); ResultSet rs=sql.executeQuery("select * from table"); 然后调用 rs.getString("..."); 但是这种方法不能针对一项数据阿 比如select ID from table where .... 虽然可以得到 rs 但是用 getString处理不行啊 哪位高人给看看
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kingfish
2005-08-15
打赏
举报
回复
为什么不行?
另外 根据ID类型调用get类型
_-_-_-_-
2005-08-15
打赏
举报
回复
select ID from table where ....
这个完全没有问题。。如果你是用SQL SERVER的话就更加应该注意SQL语句了~
32X32经典ico图标素材
下载代码方式:https://pan.quark.cn/s/c46ab641e6bc # Image2Icon 简体
中
文 | English A tool developed using WPF that allows users to convert images of various formats into Windows Icon (.ico) files containing multiple sizes of images. Features Supports conversion of PNG, JPEG and other image files into Icon format. Allows users to choose all image sizes to include in the Icon file (256x256, 128x128, 96x96, 80x80, 72x72, 64x64, 60x60, 48x48, 40x40, 32x32, 24x24, 20x20, 16x16). System Requirements Windows 7 or higher .NET Framework 4.7.2 or higher Previews Preview1 Release Note The main archive only contains the native library for the x64 architecture, if you need to run it on x86 or Arm64 architectures, please download the corresponding native lib...
VMware workstation pro17版本软件包,软件包名称:VMware-Workstation-Full-25H2u1-25219725.exe 软件包exe后缀VMware官网下载
VMware workstation pro17版本软件包仓库 ,软件包名称:VMware-Workstation-Full-25H2u1-25219725.exe FUll-25H2u1
IOS游戏源码saumya-CatchThemAll-3166601
IOS游戏源码saumya-CatchThemAll-3166601
Java SE
62,623
社区成员
307,257
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章