Home > Database > Mysql Tutorial > body text

jdbc-mysql数据库的PASSWORD函数在数据库的表中设置密码有什么限制?

WBOY
Release: 2016-06-06 09:43:19
Original
2028 people have browsed it

mysqljdbcjavapassword函数

SELECT ID,Name,PASSWORD(Pass),LoginType,CinemaID,MainAccountType from t_web_account WHERE Pass=PASSWORD( '01996666' ) and Name= 'quanguohengdian' ;同一条sql语句在mysql数据中执行有数据,在java代码中执行无数据。但我在数据库中将密码改为11996666后,java代码执行sql有记录,一切正常,求解!

初步认为PASSWORD函数中密码不能以0开头,很多密码我试了都可以。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!