String sql2="select count(0) from user_info where user_name='"+name+"'and password='"+password+"'"

这个语句中的count(0)是什么意思?如果是统计列的话不是count(*)吗

count()函数传入任何常量是不影响统计结果的
也就是说count('0')或count(*)或是count('abc')都一样
温馨提示:答案为网友推荐,仅供参考
相似回答