mysql问题!

cole_白 2010-04-06 05:59:46
String sqlCount="select count(*) from usertable where username='"+
userName+"'";这句话 什么意思啊!
...全文
69 2 打赏 收藏 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
justlearn 2010-04-06
  • 打赏
  • 举报
回复
从usertable这张表中查询username(字段名)是userName(变量)的记录的数目
SealedBook 2010-04-06
  • 打赏
  • 举报
回复
这句话输出出来就是
select count(*) from usertable where username='你的变量';
一句sql的查询语句,用来执行的。

62,620

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧